diff --git a/node_modules/date-fns/locale/de-AT.d.cts b/node_modules/date-fns/locale/de-AT.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..55b848cf27aded0499733dcfb7a87c316f2806cb --- /dev/null +++ b/node_modules/date-fns/locale/de-AT.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) + */ +export declare const deAT: Locale; diff --git a/node_modules/date-fns/locale/de-AT.d.ts b/node_modules/date-fns/locale/de-AT.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..55b848cf27aded0499733dcfb7a87c316f2806cb --- /dev/null +++ b/node_modules/date-fns/locale/de-AT.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) + */ +export declare const deAT: Locale; diff --git a/node_modules/date-fns/locale/de-AT.js b/node_modules/date-fns/locale/de-AT.js new file mode 100644 index 0000000000000000000000000000000000000000..6b203e2dc1ecd46096717317251356ad3855e8be --- /dev/null +++ b/node_modules/date-fns/locale/de-AT.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./de/_lib/formatDistance.js"; +import { formatLong } from "./de/_lib/formatLong.js"; +import { formatRelative } from "./de/_lib/formatRelative.js"; +import { match } from "./de/_lib/match.js"; + +// difference to 'de' locale +import { localize } from "./de-AT/_lib/localize.js"; + +/** + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) + */ +export const deAT = { + code: "de-AT", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default deAT; diff --git a/node_modules/date-fns/locale/de.cjs b/node_modules/date-fns/locale/de.cjs new file mode 100644 index 0000000000000000000000000000000000000000..015bc50b4a514fb5fd32f9257e1afc6ea18d3531 --- /dev/null +++ b/node_modules/date-fns/locale/de.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.de = void 0; +var _index = require("./de/_lib/formatDistance.cjs"); +var _index2 = require("./de/_lib/formatLong.cjs"); +var _index3 = require("./de/_lib/formatRelative.cjs"); +var _index4 = require("./de/_lib/localize.cjs"); +var _index5 = require("./de/_lib/match.cjs"); + +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +const de = (exports.de = { + code: "de", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/de.d.cts b/node_modules/date-fns/locale/de.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..68c0ff4c8b2b9ce1d8b7d398caad10c4a92b0f03 --- /dev/null +++ b/node_modules/date-fns/locale/de.d.cts @@ -0,0 +1,13 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +export declare const de: Locale; diff --git a/node_modules/date-fns/locale/de.d.ts b/node_modules/date-fns/locale/de.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..68c0ff4c8b2b9ce1d8b7d398caad10c4a92b0f03 --- /dev/null +++ b/node_modules/date-fns/locale/de.d.ts @@ -0,0 +1,13 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +export declare const de: Locale; diff --git a/node_modules/date-fns/locale/de.js b/node_modules/date-fns/locale/de.js new file mode 100644 index 0000000000000000000000000000000000000000..31ede2cc9dfaa772d6a30fb8b9277ac5189c8c8a --- /dev/null +++ b/node_modules/date-fns/locale/de.js @@ -0,0 +1,32 @@ +import { formatDistance } from "./de/_lib/formatDistance.js"; +import { formatLong } from "./de/_lib/formatLong.js"; +import { formatRelative } from "./de/_lib/formatRelative.js"; +import { localize } from "./de/_lib/localize.js"; +import { match } from "./de/_lib/match.js"; + +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +export const de = { + code: "de", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default de; diff --git a/node_modules/date-fns/locale/el.cjs b/node_modules/date-fns/locale/el.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a1ccde29b3305e6ff8d8fc239f38fa29f6ab0903 --- /dev/null +++ b/node_modules/date-fns/locale/el.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.el = void 0; +var _index = require("./el/_lib/formatDistance.cjs"); +var _index2 = require("./el/_lib/formatLong.cjs"); +var _index3 = require("./el/_lib/formatRelative.cjs"); +var _index4 = require("./el/_lib/localize.cjs"); +var _index5 = require("./el/_lib/match.cjs"); + +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +const el = (exports.el = { + code: "el", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/el.d.cts b/node_modules/date-fns/locale/el.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..991adbf0420e30c6d922bec29e5af67181912c64 --- /dev/null +++ b/node_modules/date-fns/locale/el.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +export declare const el: Locale; diff --git a/node_modules/date-fns/locale/el.d.ts b/node_modules/date-fns/locale/el.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..991adbf0420e30c6d922bec29e5af67181912c64 --- /dev/null +++ b/node_modules/date-fns/locale/el.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +export declare const el: Locale; diff --git a/node_modules/date-fns/locale/el.js b/node_modules/date-fns/locale/el.js new file mode 100644 index 0000000000000000000000000000000000000000..48434cd2997115a8dcfb37e700c5763e683cf1df --- /dev/null +++ b/node_modules/date-fns/locale/el.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./el/_lib/formatDistance.js"; +import { formatLong } from "./el/_lib/formatLong.js"; +import { formatRelative } from "./el/_lib/formatRelative.js"; +import { localize } from "./el/_lib/localize.js"; +import { match } from "./el/_lib/match.js"; + +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +export const el = { + code: "el", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default el; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.cjs b/node_modules/date-fns/locale/el/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..bb1ca64e60ad42941b8636114dc9b40899f18000 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "λιγότερο από ένα δευτερόλεπτο", + other: "λιγότερο από {{count}} δευτερόλεπτα", + }, + + xSeconds: { + one: "1 δευτερόλεπτο", + other: "{{count}} δευτερόλεπτα", + }, + + halfAMinute: "μισό λεπτό", + + lessThanXMinutes: { + one: "λιγότερο από ένα λεπτό", + other: "λιγότερο από {{count}} λεπτά", + }, + + xMinutes: { + one: "1 λεπτό", + other: "{{count}} λεπτά", + }, + + aboutXHours: { + one: "περίπου 1 ώρα", + other: "περίπου {{count}} ώρες", + }, + + xHours: { + one: "1 ώρα", + other: "{{count}} ώρες", + }, + + xDays: { + one: "1 ημέρα", + other: "{{count}} ημέρες", + }, + + aboutXWeeks: { + one: "περίπου 1 εβδομάδα", + other: "περίπου {{count}} εβδομάδες", + }, + + xWeeks: { + one: "1 εβδομάδα", + other: "{{count}} εβδομάδες", + }, + + aboutXMonths: { + one: "περίπου 1 μήνας", + other: "περίπου {{count}} μήνες", + }, + + xMonths: { + one: "1 μήνας", + other: "{{count}} μήνες", + }, + + aboutXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια", + }, + + xYears: { + one: "1 χρόνο", + other: "{{count}} χρόνια", + }, + + overXYears: { + one: "πάνω από 1 χρόνο", + other: "πάνω από {{count}} χρόνια", + }, + + almostXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "σε " + result; + } else { + return result + " πριν"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/el/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/el/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.js b/node_modules/date-fns/locale/el/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..f53bd76d59f30c3d4733e63b92779ea06daf8616 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "λιγότερο από ένα δευτερόλεπτο", + other: "λιγότερο από {{count}} δευτερόλεπτα", + }, + + xSeconds: { + one: "1 δευτερόλεπτο", + other: "{{count}} δευτερόλεπτα", + }, + + halfAMinute: "μισό λεπτό", + + lessThanXMinutes: { + one: "λιγότερο από ένα λεπτό", + other: "λιγότερο από {{count}} λεπτά", + }, + + xMinutes: { + one: "1 λεπτό", + other: "{{count}} λεπτά", + }, + + aboutXHours: { + one: "περίπου 1 ώρα", + other: "περίπου {{count}} ώρες", + }, + + xHours: { + one: "1 ώρα", + other: "{{count}} ώρες", + }, + + xDays: { + one: "1 ημέρα", + other: "{{count}} ημέρες", + }, + + aboutXWeeks: { + one: "περίπου 1 εβδομάδα", + other: "περίπου {{count}} εβδομάδες", + }, + + xWeeks: { + one: "1 εβδομάδα", + other: "{{count}} εβδομάδες", + }, + + aboutXMonths: { + one: "περίπου 1 μήνας", + other: "περίπου {{count}} μήνες", + }, + + xMonths: { + one: "1 μήνας", + other: "{{count}} μήνες", + }, + + aboutXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια", + }, + + xYears: { + one: "1 χρόνο", + other: "{{count}} χρόνια", + }, + + overXYears: { + one: "πάνω από 1 χρόνο", + other: "πάνω από {{count}} χρόνια", + }, + + almostXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "σε " + result; + } else { + return result + " πριν"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.cjs b/node_modules/date-fns/locale/el/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..91bed36f746c85300497edcfa7862f9bed98b692 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "d/M/yy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} - {{time}}", + long: "{{date}} - {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.d.cts b/node_modules/date-fns/locale/el/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.d.ts b/node_modules/date-fns/locale/el/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.js b/node_modules/date-fns/locale/el/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..cd119bf0404732ff8357dd858f8da1c701f3c697 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "d/M/yy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} - {{time}}", + long: "{{date}} - {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.cjs b/node_modules/date-fns/locale/el/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a9f42db11472fae68e1dfa64452d137cdb8849d0 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 6: //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: "P", +}; + +const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") return format(date); + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/el/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/el/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.js b/node_modules/date-fns/locale/el/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..5f77d9b035d8e7560847890bc8dd922b88ecd1d5 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.js @@ -0,0 +1,23 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 6: //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: "P", +}; + +export const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") return format(date); + + return format; +}; diff --git a/node_modules/date-fns/locale/el/_lib/localize.cjs b/node_modules/date-fns/locale/el/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0f82ad02bf62ca5d6e519d56133a07c6fdd95283 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize.cjs @@ -0,0 +1,183 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["πΧ", "μΧ"], + abbreviated: ["π.Χ.", "μ.Χ."], + wide: ["προ Χριστού", "μετά Χριστόν"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Τ1", "Τ2", "Τ3", "Τ4"], + wide: ["1ο τρίμηνο", "2ο τρίμηνο", "3ο τρίμηνο", "4ο τρίμηνο"], +}; + +const monthValues = { + narrow: ["Ι", "Φ", "Μ", "Α", "Μ", "Ι", "Ι", "Α", "Σ", "Ο", "Ν", "Δ"], + abbreviated: [ + "Ιαν", + "Φεβ", + "Μάρ", + "Απρ", + "Μάι", + "Ιούν", + "Ιούλ", + "Αύγ", + "Σεπ", + "Οκτ", + "Νοέ", + "Δεκ", + ], + + wide: [ + "Ιανουάριος", + "Φεβρουάριος", + "Μάρτιος", + "Απρίλιος", + "Μάιος", + "Ιούνιος", + "Ιούλιος", + "Αύγουστος", + "Σεπτέμβριος", + "Οκτώβριος", + "Νοέμβριος", + "Δεκέμβριος", + ], +}; + +const formattingMonthValues = { + narrow: ["Ι", "Φ", "Μ", "Α", "Μ", "Ι", "Ι", "Α", "Σ", "Ο", "Ν", "Δ"], + abbreviated: [ + "Ιαν", + "Φεβ", + "Μαρ", + "Απρ", + "Μαΐ", + "Ιουν", + "Ιουλ", + "Αυγ", + "Σεπ", + "Οκτ", + "Νοε", + "Δεκ", + ], + + wide: [ + "Ιανουαρίου", + "Φεβρουαρίου", + "Μαρτίου", + "Απριλίου", + "Μαΐου", + "Ιουνίου", + "Ιουλίου", + "Αυγούστου", + "Σεπτεμβρίου", + "Οκτωβρίου", + "Νοεμβρίου", + "Δεκεμβρίου", + ], +}; + +const dayValues = { + narrow: ["Κ", "Δ", "T", "Τ", "Π", "Π", "Σ"], + short: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"], + abbreviated: ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ"], + wide: [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "πμ", + pm: "μμ", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, + abbreviated: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, + wide: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + let suffix; + + if (unit === "year" || unit === "month") { + suffix = "ος"; + } else if ( + unit === "week" || + unit === "dayOfYear" || + unit === "day" || + unit === "hour" || + unit === "date" + ) { + suffix = "η"; + } else { + suffix = "ο"; + } + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/el/_lib/localize.d.cts b/node_modules/date-fns/locale/el/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/el/_lib/localize.d.ts b/node_modules/date-fns/locale/el/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/el/_lib/localize.js b/node_modules/date-fns/locale/el/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..fa44156d27bf2bfec5fa9c0045512b4d36bd32e9 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize.js @@ -0,0 +1,181 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["πΧ", "μΧ"], + abbreviated: ["π.Χ.", "μ.Χ."], + wide: ["προ Χριστού", "μετά Χριστόν"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Τ1", "Τ2", "Τ3", "Τ4"], + wide: ["1ο τρίμηνο", "2ο τρίμηνο", "3ο τρίμηνο", "4ο τρίμηνο"], +}; + +const monthValues = { + narrow: ["Ι", "Φ", "Μ", "Α", "Μ", "Ι", "Ι", "Α", "Σ", "Ο", "Ν", "Δ"], + abbreviated: [ + "Ιαν", + "Φεβ", + "Μάρ", + "Απρ", + "Μάι", + "Ιούν", + "Ιούλ", + "Αύγ", + "Σεπ", + "Οκτ", + "Νοέ", + "Δεκ", + ], + + wide: [ + "Ιανουάριος", + "Φεβρουάριος", + "Μάρτιος", + "Απρίλιος", + "Μάιος", + "Ιούνιος", + "Ιούλιος", + "Αύγουστος", + "Σεπτέμβριος", + "Οκτώβριος", + "Νοέμβριος", + "Δεκέμβριος", + ], +}; + +const formattingMonthValues = { + narrow: ["Ι", "Φ", "Μ", "Α", "Μ", "Ι", "Ι", "Α", "Σ", "Ο", "Ν", "Δ"], + abbreviated: [ + "Ιαν", + "Φεβ", + "Μαρ", + "Απρ", + "Μαΐ", + "Ιουν", + "Ιουλ", + "Αυγ", + "Σεπ", + "Οκτ", + "Νοε", + "Δεκ", + ], + + wide: [ + "Ιανουαρίου", + "Φεβρουαρίου", + "Μαρτίου", + "Απριλίου", + "Μαΐου", + "Ιουνίου", + "Ιουλίου", + "Αυγούστου", + "Σεπτεμβρίου", + "Οκτωβρίου", + "Νοεμβρίου", + "Δεκεμβρίου", + ], +}; + +const dayValues = { + narrow: ["Κ", "Δ", "T", "Τ", "Π", "Π", "Σ"], + short: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"], + abbreviated: ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ"], + wide: [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "πμ", + pm: "μμ", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, + abbreviated: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, + wide: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + let suffix; + + if (unit === "year" || unit === "month") { + suffix = "ος"; + } else if ( + unit === "week" || + unit === "dayOfYear" || + unit === "day" || + unit === "hour" || + unit === "date" + ) { + suffix = "η"; + } else { + suffix = "ο"; + } + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/el/_lib/match.cjs b/node_modules/date-fns/locale/el/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c337e08b78b7661ad2b015decba2c08f13aa0e7c --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ος|η|ο)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(πΧ|μΧ)/i, + abbreviated: /^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, + wide: /^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i, +}; +const parseEraPatterns = { + any: [/^π/i, /^(μ|κ)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^τ[1234]/i, + wide: /^[1234]ο? τρ(ί|ι)μηνο/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ιφμαμιιασονδ]/i, + abbreviated: + /^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, + wide: /^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ι/i, + /^φ/i, + /^μ/i, + /^α/i, + /^μ/i, + /^ι/i, + /^ι/i, + /^α/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i, + ], + + any: [ + /^ια/i, + /^φ/i, + /^μ[άα]ρ/i, + /^απ/i, + /^μ[άα][ιΐ]/i, + /^ιο[ύυ]ν/i, + /^ιο[ύυ]λ/i, + /^α[ύυ]/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[κδτπσ]/i, + short: /^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, + abbreviated: /^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, + wide: /^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i, +}; +const parseDayPatterns = { + narrow: [/^κ/i, /^δ/i, /^τ/i, /^τ/i, /^π/i, /^π/i, /^σ/i], + any: [/^κ/i, /^δ/i, /^τρ/i, /^τε/i, /^π[εέ]/i, /^π[αά]/i, /^σ/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, + any: /^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^πμ|π\.\s?μ\./i, + pm: /^μμ|μ\.\s?μ\./i, + midnight: /^μεσάν/i, + noon: /^μεσημ(έ|ε)/i, + morning: /πρω(ί|ι)/i, + afternoon: /απ(ό|ο)γευμα/i, + evening: /βρ(ά|α)δυ/i, + night: /ν(ύ|υ)χτα/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/el/_lib/match.d.cts b/node_modules/date-fns/locale/el/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/el/_lib/match.d.ts b/node_modules/date-fns/locale/el/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/el/_lib/match.js b/node_modules/date-fns/locale/el/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..bea36d40ba33720d5e09bd1ef20c2135fb456204 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ος|η|ο)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(πΧ|μΧ)/i, + abbreviated: /^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, + wide: /^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i, +}; +const parseEraPatterns = { + any: [/^π/i, /^(μ|κ)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^τ[1234]/i, + wide: /^[1234]ο? τρ(ί|ι)μηνο/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ιφμαμιιασονδ]/i, + abbreviated: + /^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, + wide: /^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ι/i, + /^φ/i, + /^μ/i, + /^α/i, + /^μ/i, + /^ι/i, + /^ι/i, + /^α/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i, + ], + + any: [ + /^ια/i, + /^φ/i, + /^μ[άα]ρ/i, + /^απ/i, + /^μ[άα][ιΐ]/i, + /^ιο[ύυ]ν/i, + /^ιο[ύυ]λ/i, + /^α[ύυ]/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[κδτπσ]/i, + short: /^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, + abbreviated: /^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, + wide: /^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i, +}; +const parseDayPatterns = { + narrow: [/^κ/i, /^δ/i, /^τ/i, /^τ/i, /^π/i, /^π/i, /^σ/i], + any: [/^κ/i, /^δ/i, /^τρ/i, /^τε/i, /^π[εέ]/i, /^π[αά]/i, /^σ/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, + any: /^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^πμ|π\.\s?μ\./i, + pm: /^μμ|μ\.\s?μ\./i, + midnight: /^μεσάν/i, + noon: /^μεσημ(έ|ε)/i, + morning: /πρω(ί|ι)/i, + afternoon: /απ(ό|ο)γευμα/i, + evening: /βρ(ά|α)δυ/i, + night: /ν(ύ|υ)χτα/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/el/cdn.js b/node_modules/date-fns/locale/el/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..ab1799fdb6f47cb85bafbed66b34524c0be3ad70 --- /dev/null +++ b/node_modules/date-fns/locale/el/cdn.js @@ -0,0 +1,601 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/el/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "λιγότερο από ένα δευτερόλεπτο", + other: "λιγότερο από {{count}} δευτερόλεπτα" + }, + xSeconds: { + one: "1 δευτερόλεπτο", + other: "{{count}} δευτερόλεπτα" + }, + halfAMinute: "μισό λεπτό", + lessThanXMinutes: { + one: "λιγότερο από ένα λεπτό", + other: "λιγότερο από {{count}} λεπτά" + }, + xMinutes: { + one: "1 λεπτό", + other: "{{count}} λεπτά" + }, + aboutXHours: { + one: "περίπου 1 ώρα", + other: "περίπου {{count}} ώρες" + }, + xHours: { + one: "1 ώρα", + other: "{{count}} ώρες" + }, + xDays: { + one: "1 ημέρα", + other: "{{count}} ημέρες" + }, + aboutXWeeks: { + one: "περίπου 1 εβδομάδα", + other: "περίπου {{count}} εβδομάδες" + }, + xWeeks: { + one: "1 εβδομάδα", + other: "{{count}} εβδομάδες" + }, + aboutXMonths: { + one: "περίπου 1 μήνας", + other: "περίπου {{count}} μήνες" + }, + xMonths: { + one: "1 μήνας", + other: "{{count}} μήνες" + }, + aboutXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια" + }, + xYears: { + one: "1 χρόνο", + other: "{{count}} χρόνια" + }, + overXYears: { + one: "πάνω από 1 χρόνο", + other: "πάνω από {{count}} χρόνια" + }, + almostXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "σε " + result;else + return result + " πριν"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "d/M/yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} - {{time}}", + long: "{{date}} - {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/el/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 6:return "'το προηγούμενο' eeee 'στις' p"; + default:return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/el/_lib/localize.js +var eraValues = { + narrow: ["πΧ", "μΧ"], + abbreviated: ["π.Χ.", "μ.Χ."], + wide: ["προ Χριστού", "μετά Χριστόν"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Τ1", + "Τ2", + "Τ3", + "Τ4"], + + wide: [ + "1ο τρίμηνο", + "2ο τρίμηνο", + "3ο τρίμηνο", + "4ο τρίμηνο"] + +}; +var monthValues = { + narrow: [ + "Ι", + "Φ", + "Μ", + "Α", + "Μ", + "Ι", + "Ι", + "Α", + "Σ", + "Ο", + "Ν", + "Δ"], + + abbreviated: [ + "Ιαν", + "Φεβ", + "Μάρ", + "Απρ", + "Μάι", + "Ιούν", + "Ιούλ", + "Αύγ", + "Σεπ", + "Οκτ", + "Νοέ", + "Δεκ"], + + wide: [ + "Ιανουάριος", + "Φεβρουάριος", + "Μάρτιος", + "Απρίλιος", + "Μάιος", + "Ιούνιος", + "Ιούλιος", + "Αύγουστος", + "Σεπτέμβριος", + "Οκτώβριος", + "Νοέμβριος", + "Δεκέμβριος"] + +}; +var formattingMonthValues = { + narrow: [ + "Ι", + "Φ", + "Μ", + "Α", + "Μ", + "Ι", + "Ι", + "Α", + "Σ", + "Ο", + "Ν", + "Δ"], + + abbreviated: [ + "Ιαν", + "Φεβ", + "Μαρ", + "Απρ", + "Μαΐ", + "Ιουν", + "Ιουλ", + "Αυγ", + "Σεπ", + "Οκτ", + "Νοε", + "Δεκ"], + + wide: [ + "Ιανουαρίου", + "Φεβρουαρίου", + "Μαρτίου", + "Απριλίου", + "Μαΐου", + "Ιουνίου", + "Ιουλίου", + "Αυγούστου", + "Σεπτεμβρίου", + "Οκτωβρίου", + "Νοεμβρίου", + "Δεκεμβρίου"] + +}; +var dayValues = { + narrow: [ + "Κ", + "Δ", + "T", + "Τ", + "Π", + "Π", + "Σ"], + + short: [ + "Κυ", + "Δε", + "Τρ", + "Τε", + "Πέ", + "Πα", + "Σά"], + + abbreviated: [ + "Κυρ", + "Δευ", + "Τρί", + "Τετ", + "Πέμ", + "Παρ", + "Σάβ"], + + wide: [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο"] + +}; +var dayPeriodValues = { + narrow: { + am: "πμ", + pm: "μμ", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα" + }, + abbreviated: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα" + }, + wide: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var suffix; + if (unit === "year" || unit === "month") suffix = "ος";else + if (unit === "week" || unit === "dayOfYear" || unit === "day" || unit === "hour" || unit === "date") suffix = "η";else + suffix = "ο"; + return number + suffix; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/el.js +/** +* @category Locales +* @summary Greek locale. +* @language Greek +* @iso-639-2 ell +* @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) +* @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) +*/ +var el = { + code: "el", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ος|η|ο)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(πΧ|μΧ)/i, + abbreviated: /^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, + wide: /^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^π/i, /^(μ|κ)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^τ[1234]/i, + wide: /^[1234]ο? τρ(ί|ι)μηνο/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[ιφμαμιιασονδ]/i, + abbreviated: /^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, + wide: /^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ι/i, + /^φ/i, + /^μ/i, + /^α/i, + /^μ/i, + /^ι/i, + /^ι/i, + /^α/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i], + + any: [ + /^ια/i, + /^φ/i, + /^μ[άα]ρ/i, + /^απ/i, + /^μ[άα][ιΐ]/i, + /^ιο[ύυ]ν/i, + /^ιο[ύυ]λ/i, + /^α[ύυ]/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[κδτπσ]/i, + short: /^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, + abbreviated: /^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, + wide: /^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^κ/i, + /^δ/i, + /^τ/i, + /^τ/i, + /^π/i, + /^π/i, + /^σ/i], + + any: [ + /^κ/i, + /^δ/i, + /^τρ/i, + /^τε/i, + /^π[εέ]/i, + /^π[αά]/i, + /^σ/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, + any: /^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^πμ|π\.\s?μ\./i, + pm: /^μμ|μ\.\s?μ\./i, + midnight: /^μεσάν/i, + noon: /^μεσημ(έ|ε)/i, + morning: /πρω(ί|ι)/i, + afternoon: /απ(ό|ο)γευμα/i, + evening: /βρ(ά|α)δυ/i, + night: /ν(ύ|υ)χτα/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/el/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + el: el }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/cdn.min.js b/node_modules/date-fns/locale/el/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..242de856458532f9152991f62898261401a1d75d --- /dev/null +++ b/node_modules/date-fns/locale/el/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`σε `+r:r+` πριν`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`d/M/yy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} - {{time}}`,long:`{{date}} - {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){switch(e.getDay()){case 6:return`'το προηγούμενο' eeee 'στις' p`;default:return`'την προηγούμενη' eeee 'στις' p`}},yesterday:`'χθες στις' p`,today:`'σήμερα στις' p`,tomorrow:`'αύριο στις' p`,nextWeek:`eeee 'στις' p`,other:`P`},d=function(e,t){var n=u[e];return typeof n==`function`?n(t):n};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=t?.unit;return n+(r===`year`||r===`month`?`ος`:r===`week`||r===`dayOfYear`||r===`day`||r===`hour`||r===`date`?`η`:`ο`)},era:f({values:{narrow:[`πΧ`,`μΧ`],abbreviated:[`π.Χ.`,`μ.Χ.`],wide:[`προ Χριστού`,`μετά Χριστόν`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Τ1`,`Τ2`,`Τ3`,`Τ4`],wide:[`1ο τρίμηνο`,`2ο τρίμηνο`,`3ο τρίμηνο`,`4ο τρίμηνο`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Ι`,`Φ`,`Μ`,`Α`,`Μ`,`Ι`,`Ι`,`Α`,`Σ`,`Ο`,`Ν`,`Δ`],abbreviated:[`Ιαν`,`Φεβ`,`Μάρ`,`Απρ`,`Μάι`,`Ιούν`,`Ιούλ`,`Αύγ`,`Σεπ`,`Οκτ`,`Νοέ`,`Δεκ`],wide:[`Ιανουάριος`,`Φεβρουάριος`,`Μάρτιος`,`Απρίλιος`,`Μάιος`,`Ιούνιος`,`Ιούλιος`,`Αύγουστος`,`Σεπτέμβριος`,`Οκτώβριος`,`Νοέμβριος`,`Δεκέμβριος`]},defaultWidth:`wide`,formattingValues:{narrow:[`Ι`,`Φ`,`Μ`,`Α`,`Μ`,`Ι`,`Ι`,`Α`,`Σ`,`Ο`,`Ν`,`Δ`],abbreviated:[`Ιαν`,`Φεβ`,`Μαρ`,`Απρ`,`Μαΐ`,`Ιουν`,`Ιουλ`,`Αυγ`,`Σεπ`,`Οκτ`,`Νοε`,`Δεκ`],wide:[`Ιανουαρίου`,`Φεβρουαρίου`,`Μαρτίου`,`Απριλίου`,`Μαΐου`,`Ιουνίου`,`Ιουλίου`,`Αυγούστου`,`Σεπτεμβρίου`,`Οκτωβρίου`,`Νοεμβρίου`,`Δεκεμβρίου`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Κ`,`Δ`,`T`,`Τ`,`Π`,`Π`,`Σ`],short:[`Κυ`,`Δε`,`Τρ`,`Τε`,`Πέ`,`Πα`,`Σά`],abbreviated:[`Κυρ`,`Δευ`,`Τρί`,`Τετ`,`Πέμ`,`Παρ`,`Σάβ`],wide:[`Κυριακή`,`Δευτέρα`,`Τρίτη`,`Τετάρτη`,`Πέμπτη`,`Παρασκευή`,`Σάββατο`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`πμ`,pm:`μμ`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`},abbreviated:{am:`π.μ.`,pm:`μ.μ.`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`},wide:{am:`π.μ.`,pm:`μ.μ.`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`el`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(ος|η|ο)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^π/i,/^(μ|κ)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{el:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-AU.cjs b/node_modules/date-fns/locale/en-AU.cjs new file mode 100644 index 0000000000000000000000000000000000000000..57f3a4de74f1a7fc06347cf0edad8f651787bb83 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.enAU = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-AU/_lib/formatLong.cjs"); +var _index3 = require("./en-US/_lib/formatRelative.cjs"); +var _index4 = require("./en-US/_lib/localize.cjs"); +var _index5 = require("./en-US/_lib/match.cjs"); + +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +const enAU = (exports.enAU = { + code: "en-AU", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/en-AU.d.cts b/node_modules/date-fns/locale/en-AU.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..1a946a18d42e239927617035e92ecd7fa812ded3 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +export declare const enAU: Locale; diff --git a/node_modules/date-fns/locale/en-AU.d.ts b/node_modules/date-fns/locale/en-AU.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..1a946a18d42e239927617035e92ecd7fa812ded3 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +export declare const enAU: Locale; diff --git a/node_modules/date-fns/locale/en-AU.js b/node_modules/date-fns/locale/en-AU.js new file mode 100644 index 0000000000000000000000000000000000000000..6e3d5193e5a4b318d354366fa97a72fec8b2ade8 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatLong } from "./en-AU/_lib/formatLong.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +export const enAU = { + code: "en-AU", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default enAU; diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-AU/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..bf671063a6ac518c9bb594bf2f6e2b1b4524103f --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.js b/node_modules/date-fns/locale/en-AU/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..cc633fe89b809896bbd3b3f0b63e4d522a658a2f --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-AU/cdn.js b/node_modules/date-fns/locale/en-AU/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..c0778f44a5d9c71da4e7305e8d16b0b6a1716c40 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/en-AU.js +/** +* @category Locales +* @summary English locale (Australia). +* @language English +* @iso-639-2 eng +* @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) +*/ +var enAU = { + code: "en-AU", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-AU/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enAU: enAU }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-AU/cdn.min.js b/node_modules/date-fns/locale/en-AU/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..00ebb009da651aa2a69dab3b62f6bb780a87b478 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:f({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`en-AU`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enAU:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-CA.cjs b/node_modules/date-fns/locale/en-CA.cjs new file mode 100644 index 0000000000000000000000000000000000000000..45e72439b94ad7618ac75151467870973d5f4a72 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.enCA = void 0; +var _index = require("./en-US/_lib/formatRelative.cjs"); +var _index2 = require("./en-US/_lib/localize.cjs"); +var _index3 = require("./en-US/_lib/match.cjs"); + +var _index4 = require("./en-CA/_lib/formatDistance.cjs"); +var _index5 = require("./en-CA/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +const enCA = (exports.enCA = { + code: "en-CA", + formatDistance: _index4.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index.formatRelative, + localize: _index2.localize, + match: _index3.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/en-CA.d.cts b/node_modules/date-fns/locale/en-CA.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..daa806eae5bb4a7c8070798d3c77bbbb93da8472 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +export declare const enCA: Locale; diff --git a/node_modules/date-fns/locale/en-CA.d.ts b/node_modules/date-fns/locale/en-CA.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..daa806eae5bb4a7c8070798d3c77bbbb93da8472 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +export declare const enCA: Locale; diff --git a/node_modules/date-fns/locale/en-CA.js b/node_modules/date-fns/locale/en-CA.js new file mode 100644 index 0000000000000000000000000000000000000000..587da75ae1543b89d1fab26505e8afc111b46b47 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA.js @@ -0,0 +1,30 @@ +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatDistance } from "./en-CA/_lib/formatDistance.js"; +import { formatLong } from "./en-CA/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +export const enCA = { + code: "en-CA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default enCA; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.cjs b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1e458ec7d3cf044fc353f6c9f79df26b1b16a486 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + + xSeconds: { + one: "a second", + other: "{{count}} seconds", + }, + + halfAMinute: "half a minute", + + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + + xMinutes: { + one: "a minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "about an hour", + other: "about {{count}} hours", + }, + + xHours: { + one: "an hour", + other: "{{count}} hours", + }, + + xDays: { + one: "a day", + other: "{{count}} days", + }, + + aboutXWeeks: { + one: "about a week", + other: "about {{count}} weeks", + }, + + xWeeks: { + one: "a week", + other: "{{count}} weeks", + }, + + aboutXMonths: { + one: "about a month", + other: "about {{count}} months", + }, + + xMonths: { + one: "a month", + other: "{{count}} months", + }, + + aboutXYears: { + one: "about a year", + other: "about {{count}} years", + }, + + xYears: { + one: "a year", + other: "{{count}} years", + }, + + overXYears: { + one: "over a year", + other: "over {{count}} years", + }, + + almostXYears: { + one: "almost a year", + other: "almost {{count}} years", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return result + " ago"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.js b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..f97bbf784ced416d92c3e5ff3a41751020260b32 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + + xSeconds: { + one: "a second", + other: "{{count}} seconds", + }, + + halfAMinute: "half a minute", + + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + + xMinutes: { + one: "a minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "about an hour", + other: "about {{count}} hours", + }, + + xHours: { + one: "an hour", + other: "{{count}} hours", + }, + + xDays: { + one: "a day", + other: "{{count}} days", + }, + + aboutXWeeks: { + one: "about a week", + other: "about {{count}} weeks", + }, + + xWeeks: { + one: "a week", + other: "{{count}} weeks", + }, + + aboutXMonths: { + one: "about a month", + other: "about {{count}} months", + }, + + xMonths: { + one: "a month", + other: "{{count}} months", + }, + + aboutXYears: { + one: "about a year", + other: "about {{count}} years", + }, + + xYears: { + one: "a year", + other: "{{count}} years", + }, + + overXYears: { + one: "over a year", + other: "over {{count}} years", + }, + + almostXYears: { + one: "almost a year", + other: "almost {{count}} years", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return result + " ago"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-CA/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..838faa60412d667dbd1bd0777c41d05b75cacb0a --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, yyyy", + long: "MMMM do, yyyy", + medium: "MMM d, yyyy", + short: "yyyy-MM-dd", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.js b/node_modules/date-fns/locale/en-CA/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..9445c7647f70314f2ab7659be0cface0be3c290e --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, yyyy", + long: "MMMM do, yyyy", + medium: "MMM d, yyyy", + short: "yyyy-MM-dd", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-CA/cdn.js b/node_modules/date-fns/locale/en-CA/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..93b5fc1624b8b594e14f0ed9c73f42f4e8c24f5b --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/cdn.js @@ -0,0 +1,581 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/en-CA/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "a second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "a minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about an hour", + other: "about {{count}} hours" + }, + xHours: { + one: "an hour", + other: "{{count}} hours" + }, + xDays: { + one: "a day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about a week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "a week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about a month", + other: "about {{count}} months" + }, + xMonths: { + one: "a month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about a year", + other: "about {{count}} years" + }, + xYears: { + one: "a year", + other: "{{count}} years" + }, + overXYears: { + one: "over a year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost a year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-CA.js +/** +* @category Locales +* @summary English locale (Canada). +* @language English +* @iso-639-2 eng +* @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) +* @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) +*/ +var enCA = { + code: "en-CA", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, yyyy", + long: "MMMM do, yyyy", + medium: "MMM d, yyyy", + short: "yyyy-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-CA/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enCA: enCA }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-CA/cdn.min.js b/node_modules/date-fns/locale/en-CA/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..508815203fc36288ea4db7273480906d5603318b --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:c({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:c({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:c({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:c({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:c({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function u(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?f(s,function(e){return e.test(o)}):d(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function d(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function f(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var m={ordinalNumber:p({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},h={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`a second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`a minute`,other:`{{count}} minutes`},aboutXHours:{one:`about an hour`,other:`about {{count}} hours`},xHours:{one:`an hour`,other:`{{count}} hours`},xDays:{one:`a day`,other:`{{count}} days`},aboutXWeeks:{one:`about a week`,other:`about {{count}} weeks`},xWeeks:{one:`a week`,other:`{{count}} weeks`},aboutXMonths:{one:`about a month`,other:`about {{count}} months`},xMonths:{one:`a month`,other:`{{count}} months`},aboutXYears:{one:`about a year`,other:`about {{count}} years`},xYears:{one:`a year`,other:`{{count}} years`},overXYears:{one:`over a year`,other:`over {{count}} years`},almostXYears:{one:`almost a year`,other:`almost {{count}} years`}},g=function(e,t,n){var r,i=h[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-CA`,formatDistance:g,formatLong:{date:_({formats:{full:`EEEE, MMMM do, yyyy`,long:`MMMM do, yyyy`,medium:`MMM d, yyyy`,short:`yyyy-MM-dd`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:s,localize:l,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enCA:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-GB.cjs b/node_modules/date-fns/locale/en-GB.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d2f55e933f9def2d811641b5aad1217ecbd5136e --- /dev/null +++ b/node_modules/date-fns/locale/en-GB.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enGB = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-GB/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +const enGB = (exports.enGB = { + code: "en-GB", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/en-GB.d.cts b/node_modules/date-fns/locale/en-GB.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..c7106d7e19ad1e8537c053b4a37cf0ad215269ee --- /dev/null +++ b/node_modules/date-fns/locale/en-GB.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +export declare const enGB: Locale; diff --git a/node_modules/date-fns/locale/en-GB.d.ts b/node_modules/date-fns/locale/en-GB.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..c7106d7e19ad1e8537c053b4a37cf0ad215269ee --- /dev/null +++ b/node_modules/date-fns/locale/en-GB.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +export declare const enGB: Locale; diff --git a/node_modules/date-fns/locale/en-GB.js b/node_modules/date-fns/locale/en-GB.js new file mode 100644 index 0000000000000000000000000000000000000000..ca4a11762bd4388a393228a42c898aabcce0c2fe --- /dev/null +++ b/node_modules/date-fns/locale/en-GB.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-GB/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +export const enGB = { + code: "en-GB", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default enGB; diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-GB/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d000c006fe808ed9949402abd5b741d463c9ab80 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.js b/node_modules/date-fns/locale/en-GB/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..4cb14cc7ee8668746d015e7ceeefb59113a9c297 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-GB/cdn.js b/node_modules/date-fns/locale/en-GB/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..f69ed6aeedc73bf183dd75bf09ef5f03f97e2839 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-GB.js +/** +* @category Locales +* @summary English locale (United Kingdom). +* @language English +* @iso-639-2 eng +* @author Alex [@glintik](https://github.com/glintik) +*/ +var enGB = { + code: "en-GB", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-GB/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enGB: enGB }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-GB/cdn.min.js b/node_modules/date-fns/locale/en-GB/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..5137af1498f6dc360de563f4a567e17216095860 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-GB`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enGB:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IE.cjs b/node_modules/date-fns/locale/en-IE.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f0a3c5f9267e6024b7c92c7acda3e65a4666cf3f --- /dev/null +++ b/node_modules/date-fns/locale/en-IE.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enIE = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-GB/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +const enIE = (exports.enIE = { + code: "en-IE", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/en-IE.d.cts b/node_modules/date-fns/locale/en-IE.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..c5e5a8611412356edcb8f72099bd8d065f70457b --- /dev/null +++ b/node_modules/date-fns/locale/en-IE.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +export declare const enIE: Locale; diff --git a/node_modules/date-fns/locale/en-IE.d.ts b/node_modules/date-fns/locale/en-IE.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..c5e5a8611412356edcb8f72099bd8d065f70457b --- /dev/null +++ b/node_modules/date-fns/locale/en-IE.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +export declare const enIE: Locale; diff --git a/node_modules/date-fns/locale/en-IE.js b/node_modules/date-fns/locale/en-IE.js new file mode 100644 index 0000000000000000000000000000000000000000..1f94f70e1036a88b33358290b0f55612d08bbab2 --- /dev/null +++ b/node_modules/date-fns/locale/en-IE.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-GB/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +export const enIE = { + code: "en-IE", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default enIE; diff --git a/node_modules/date-fns/locale/en-IE/cdn.js b/node_modules/date-fns/locale/en-IE/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..0a89f6a353be6dfc355ef8e6ea76131aa89222ce --- /dev/null +++ b/node_modules/date-fns/locale/en-IE/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-IE.js +/** +* @category Locales +* @summary English locale (Ireland). +* @language English +* @iso-639-2 eng +* @author Tetiana [@tan75](https://github.com/tan75) +*/ +var enIE = { + code: "en-IE", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-IE/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enIE: enIE }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IE/cdn.min.js b/node_modules/date-fns/locale/en-IE/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..fff8e530f0fd410d24742f9e9450060ebb2744ee --- /dev/null +++ b/node_modules/date-fns/locale/en-IE/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-IE`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enIE:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IN.cjs b/node_modules/date-fns/locale/en-IN.cjs new file mode 100644 index 0000000000000000000000000000000000000000..410dbc79422d0fd85c1ba174e245ea9031ffc8db --- /dev/null +++ b/node_modules/date-fns/locale/en-IN.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enIN = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-IN/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +const enIN = (exports.enIN = { + code: "en-IN", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1, // Monday is the first day of the week. + firstWeekContainsDate: 4, // The week that contains Jan 4th is the first week of the year. + }, +}); diff --git a/node_modules/date-fns/locale/en-IN.d.cts b/node_modules/date-fns/locale/en-IN.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..90a31fa961c4674f13a7d579744c7f76eaba9dbb --- /dev/null +++ b/node_modules/date-fns/locale/en-IN.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +export declare const enIN: Locale; diff --git a/node_modules/date-fns/locale/en-IN.d.ts b/node_modules/date-fns/locale/en-IN.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..90a31fa961c4674f13a7d579744c7f76eaba9dbb --- /dev/null +++ b/node_modules/date-fns/locale/en-IN.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +export declare const enIN: Locale; diff --git a/node_modules/date-fns/locale/en-IN.js b/node_modules/date-fns/locale/en-IN.js new file mode 100644 index 0000000000000000000000000000000000000000..e97662ab1c837015a76bd86802535a4d33bb0f1e --- /dev/null +++ b/node_modules/date-fns/locale/en-IN.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-IN/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +export const enIN = { + code: "en-IN", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, // Monday is the first day of the week. + firstWeekContainsDate: 4, // The week that contains Jan 4th is the first week of the year. + }, +}; + +// Fallback for modularized imports: +export default enIN; diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-IN/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f7c1a758bf844ed990534a5a21f22322153a6575 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM, yyyy", + medium: "d MMM, yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.js b/node_modules/date-fns/locale/en-IN/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..c875ab8a6f0b6185e2e5125b4aa4f5f85ce0d510 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM, yyyy", + medium: "d MMM, yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-IN/cdn.js b/node_modules/date-fns/locale/en-IN/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..dfabd7d05e27a707fd048819253515c1f579745d --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-IN.js +/** +* @category Locales +* @summary English locale (India). +* @language English +* @iso-639-2 eng +* @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) +*/ +var enIN = { + code: "en-IN", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM, yyyy", + medium: "d MMM, yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-IN/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enIN: enIN }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IN/cdn.min.js b/node_modules/date-fns/locale/en-IN/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..3386756b80d913b92e2506f719409b534aebcc33 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-IN`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM, yyyy`,medium:`d MMM, yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enIN:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-NZ.cjs b/node_modules/date-fns/locale/en-NZ.cjs new file mode 100644 index 0000000000000000000000000000000000000000..078abaf51b385a019747441c3c4b781e5c67179f --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enNZ = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-NZ/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +const enNZ = (exports.enNZ = { + code: "en-NZ", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/en-NZ.d.cts b/node_modules/date-fns/locale/en-NZ.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..fd43adaab3b7e889650f5e4399cbcd8ea7270f38 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +export declare const enNZ: Locale; diff --git a/node_modules/date-fns/locale/en-NZ.d.ts b/node_modules/date-fns/locale/en-NZ.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..fd43adaab3b7e889650f5e4399cbcd8ea7270f38 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +export declare const enNZ: Locale; diff --git a/node_modules/date-fns/locale/en-NZ.js b/node_modules/date-fns/locale/en-NZ.js new file mode 100644 index 0000000000000000000000000000000000000000..2d51ecf3913c898d02e962090256e48d7bf7de14 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-NZ/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +export const enNZ = { + code: "en-NZ", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default enNZ; diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..bf671063a6ac518c9bb594bf2f6e2b1b4524103f --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.js b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..cc633fe89b809896bbd3b3f0b63e4d522a658a2f --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-NZ/cdn.js b/node_modules/date-fns/locale/en-NZ/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..a370a2e91860435353f74dc9b16b234087600aef --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-NZ.js +/** +* @category Locales +* @summary English locale (New Zealand). +* @language English +* @iso-639-2 eng +* @author Murray Lucas [@muntact](https://github.com/muntact) +*/ +var enNZ = { + code: "en-NZ", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-NZ/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enNZ: enNZ }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-NZ/cdn.min.js b/node_modules/date-fns/locale/en-NZ/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..cede8906e5734a150895cabeb51a003ddda71221 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-NZ`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enNZ:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US.cjs b/node_modules/date-fns/locale/en-US.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4745179ed8f8e8f17a2c4d74db7742f5f2a4394c --- /dev/null +++ b/node_modules/date-fns/locale/en-US.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enUS = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatLong.cjs"); +var _index3 = require("./en-US/_lib/formatRelative.cjs"); +var _index4 = require("./en-US/_lib/localize.cjs"); +var _index5 = require("./en-US/_lib/match.cjs"); + +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +const enUS = (exports.enUS = { + code: "en-US", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/en-US.d.cts b/node_modules/date-fns/locale/en-US.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..b0b45dc02ae70ec62cc0189c907438e318e98efd --- /dev/null +++ b/node_modules/date-fns/locale/en-US.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const enUS: Locale; diff --git a/node_modules/date-fns/locale/en-US.d.ts b/node_modules/date-fns/locale/en-US.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b0b45dc02ae70ec62cc0189c907438e318e98efd --- /dev/null +++ b/node_modules/date-fns/locale/en-US.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const enUS: Locale; diff --git a/node_modules/date-fns/locale/en-US.js b/node_modules/date-fns/locale/en-US.js new file mode 100644 index 0000000000000000000000000000000000000000..7eca37d2aa9d9267fc85912dac52739126f2952b --- /dev/null +++ b/node_modules/date-fns/locale/en-US.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatLong } from "./en-US/_lib/formatLong.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export const enUS = { + code: "en-US", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default enUS; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs b/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2af57104812b5c083936bfd4194a1bc0ea30e25d --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + + xSeconds: { + one: "1 second", + other: "{{count}} seconds", + }, + + halfAMinute: "half a minute", + + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + + xMinutes: { + one: "1 minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours", + }, + + xHours: { + one: "1 hour", + other: "{{count}} hours", + }, + + xDays: { + one: "1 day", + other: "{{count}} days", + }, + + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weeks", + }, + + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months", + }, + + xMonths: { + one: "1 month", + other: "{{count}} months", + }, + + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years", + }, + + xYears: { + one: "1 year", + other: "{{count}} years", + }, + + overXYears: { + one: "over 1 year", + other: "over {{count}} years", + }, + + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return result + " ago"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.js b/node_modules/date-fns/locale/en-US/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..7aeecef664e3997701b3990265a392a107c83b0c --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + + xSeconds: { + one: "1 second", + other: "{{count}} seconds", + }, + + halfAMinute: "half a minute", + + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + + xMinutes: { + one: "1 minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours", + }, + + xHours: { + one: "1 hour", + other: "{{count}} hours", + }, + + xDays: { + one: "1 day", + other: "{{count}} days", + }, + + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weeks", + }, + + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months", + }, + + xMonths: { + one: "1 month", + other: "{{count}} months", + }, + + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years", + }, + + xYears: { + one: "1 year", + other: "{{count}} years", + }, + + overXYears: { + one: "over 1 year", + other: "over {{count}} years", + }, + + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return result + " ago"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..240008c27d84e3dbd713d4f7dac133398a06631f --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.js b/node_modules/date-fns/locale/en-US/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..4f7fae104c029ca22a33866910444714d7bb1e59 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs b/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..83075e9dcb1799c890840685923a32b949f202c4 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.js b/node_modules/date-fns/locale/en-US/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..d6eccf48ad2405498047f87515108de29456dbc6 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.cjs b/node_modules/date-fns/locale/en-US/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..13e16396f668663bbfe8291be25113167147815b --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize.cjs @@ -0,0 +1,189 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", + ], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "W", "T", "F", "S"], + short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], + abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "st"; + case 2: + return number + "nd"; + case 3: + return number + "rd"; + } + } + return number + "th"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.d.cts b/node_modules/date-fns/locale/en-US/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.d.ts b/node_modules/date-fns/locale/en-US/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.js b/node_modules/date-fns/locale/en-US/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..7882a18ca1ff1b894e6eb5253953974293355a9d --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize.js @@ -0,0 +1,187 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", + ], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "W", "T", "F", "S"], + short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], + abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "st"; + case 2: + return number + "nd"; + case 3: + return number + "rd"; + } + } + return number + "th"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/en-US/_lib/match.cjs b/node_modules/date-fns/locale/en-US/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..8fe527f3117e05940d707ffa521c86dbea3def5e --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/en-US/_lib/match.d.cts b/node_modules/date-fns/locale/en-US/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/en-US/_lib/match.d.ts b/node_modules/date-fns/locale/en-US/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/en-US/_lib/match.js b/node_modules/date-fns/locale/en-US/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..f078792662aee1f3309cd322b941c2038c6a665a --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/en-US/cdn.js b/node_modules/date-fns/locale/en-US/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..bd2a5357f082939eb217275d44ad1fb6ca1f1137 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/cdn.js @@ -0,0 +1,581 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US.js +/** +* @category Locales +* @summary English locale (United States). +* @language English +* @iso-639-2 eng +* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) +* @author Lesha Koss [@leshakoss](https://github.com/leshakoss) +*/ +var enUS = { + code: "en-US", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-US/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enUS: enUS }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/cdn.min.js b/node_modules/date-fns/locale/en-US/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..042026c6dc1ee7e900eed34c8cba2bab7f886083 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:f({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`en-US`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enUS:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-ZA.cjs b/node_modules/date-fns/locale/en-ZA.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f4b2502fa5d7532f0963a2080bcf1b036493cd2b --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enZA = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-ZA/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +const enZA = (exports.enZA = { + code: "en-ZA", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 0, // Sunday is the first day of the week. + firstWeekContainsDate: 1, // The week that contains Jan 1st is the first week of the year. + }, +}); diff --git a/node_modules/date-fns/locale/en-ZA.d.cts b/node_modules/date-fns/locale/en-ZA.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..78b46e2a69f124ba3151e71b49d2d3d843689d4c --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +export declare const enZA: Locale; diff --git a/node_modules/date-fns/locale/en-ZA.d.ts b/node_modules/date-fns/locale/en-ZA.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..78b46e2a69f124ba3151e71b49d2d3d843689d4c --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +export declare const enZA: Locale; diff --git a/node_modules/date-fns/locale/en-ZA.js b/node_modules/date-fns/locale/en-ZA.js new file mode 100644 index 0000000000000000000000000000000000000000..73f072b97876c93352a38eedf190d0cce48e04a7 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-ZA/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +export const enZA = { + code: "en-ZA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, // Sunday is the first day of the week. + firstWeekContainsDate: 1, // The week that contains Jan 1st is the first week of the year. + }, +}; + +// Fallback for modularized imports: +export default enZA; diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4db256e9f411c646b7767f58b05837b5731cb268 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.js b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..5beed2478dff89eb4c3ab67e06e7f154e9c81671 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-ZA/cdn.js b/node_modules/date-fns/locale/en-ZA/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..48023bb0ce3a26d10a7031d969241d8920158bb4 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-ZA.js +/** +* @category Locales +* @summary English locale (South Africa). +* @language English +* @iso-639-2 eng +* @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) +*/ +var enZA = { + code: "en-ZA", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "yyyy/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-ZA/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enZA: enZA }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-ZA/cdn.min.js b/node_modules/date-fns/locale/en-ZA/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..726969766d20b1b573e2ce90adead10d5c971377 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-ZA`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, dd MMMM yyyy`,long:`dd MMMM yyyy`,medium:`dd MMM yyyy`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:_({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enZA:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo.cjs b/node_modules/date-fns/locale/eo.cjs new file mode 100644 index 0000000000000000000000000000000000000000..262aa3c378112d722bebe1c4bfc325c4b2021aea --- /dev/null +++ b/node_modules/date-fns/locale/eo.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.eo = void 0; +var _index = require("./eo/_lib/formatDistance.cjs"); +var _index2 = require("./eo/_lib/formatLong.cjs"); +var _index3 = require("./eo/_lib/formatRelative.cjs"); +var _index4 = require("./eo/_lib/localize.cjs"); +var _index5 = require("./eo/_lib/match.cjs"); + +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +const eo = (exports.eo = { + code: "eo", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/eo.d.cts b/node_modules/date-fns/locale/eo.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8d128587e559102a8f23f9ba834af0ee088a69fd --- /dev/null +++ b/node_modules/date-fns/locale/eo.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +export declare const eo: Locale; diff --git a/node_modules/date-fns/locale/eo.d.ts b/node_modules/date-fns/locale/eo.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8d128587e559102a8f23f9ba834af0ee088a69fd --- /dev/null +++ b/node_modules/date-fns/locale/eo.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +export declare const eo: Locale; diff --git a/node_modules/date-fns/locale/eo.js b/node_modules/date-fns/locale/eo.js new file mode 100644 index 0000000000000000000000000000000000000000..ab6d6d177b239b246aa58ea182df406f7e9e2b8e --- /dev/null +++ b/node_modules/date-fns/locale/eo.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./eo/_lib/formatDistance.js"; +import { formatLong } from "./eo/_lib/formatLong.js"; +import { formatRelative } from "./eo/_lib/formatRelative.js"; +import { localize } from "./eo/_lib/localize.js"; +import { match } from "./eo/_lib/match.js"; + +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +export const eo = { + code: "eo", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default eo; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.cjs b/node_modules/date-fns/locale/eo/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..fb7f9a538e3e006708189603b4a3837a6f71d9da --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "malpli ol sekundo", + other: "malpli ol {{count}} sekundoj", + }, + + xSeconds: { + one: "1 sekundo", + other: "{{count}} sekundoj", + }, + + halfAMinute: "duonminuto", + + lessThanXMinutes: { + one: "malpli ol minuto", + other: "malpli ol {{count}} minutoj", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutoj", + }, + + aboutXHours: { + one: "proksimume 1 horo", + other: "proksimume {{count}} horoj", + }, + + xHours: { + one: "1 horo", + other: "{{count}} horoj", + }, + + xDays: { + one: "1 tago", + other: "{{count}} tagoj", + }, + + aboutXMonths: { + one: "proksimume 1 monato", + other: "proksimume {{count}} monatoj", + }, + + xWeeks: { + one: "1 semajno", + other: "{{count}} semajnoj", + }, + + aboutXWeeks: { + one: "proksimume 1 semajno", + other: "proksimume {{count}} semajnoj", + }, + + xMonths: { + one: "1 monato", + other: "{{count}} monatoj", + }, + + aboutXYears: { + one: "proksimume 1 jaro", + other: "proksimume {{count}} jaroj", + }, + + xYears: { + one: "1 jaro", + other: "{{count}} jaroj", + }, + + overXYears: { + one: "pli ol 1 jaro", + other: "pli ol {{count}} jaroj", + }, + + almostXYears: { + one: "preskaŭ 1 jaro", + other: "preskaŭ {{count}} jaroj", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options?.comparison && options.comparison > 0) { + return "post " + result; + } else { + return "antaŭ " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.js b/node_modules/date-fns/locale/eo/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..aafb1b661941b6a8616cfa101ff8f01131f2e29c --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "malpli ol sekundo", + other: "malpli ol {{count}} sekundoj", + }, + + xSeconds: { + one: "1 sekundo", + other: "{{count}} sekundoj", + }, + + halfAMinute: "duonminuto", + + lessThanXMinutes: { + one: "malpli ol minuto", + other: "malpli ol {{count}} minutoj", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutoj", + }, + + aboutXHours: { + one: "proksimume 1 horo", + other: "proksimume {{count}} horoj", + }, + + xHours: { + one: "1 horo", + other: "{{count}} horoj", + }, + + xDays: { + one: "1 tago", + other: "{{count}} tagoj", + }, + + aboutXMonths: { + one: "proksimume 1 monato", + other: "proksimume {{count}} monatoj", + }, + + xWeeks: { + one: "1 semajno", + other: "{{count}} semajnoj", + }, + + aboutXWeeks: { + one: "proksimume 1 semajno", + other: "proksimume {{count}} semajnoj", + }, + + xMonths: { + one: "1 monato", + other: "{{count}} monatoj", + }, + + aboutXYears: { + one: "proksimume 1 jaro", + other: "proksimume {{count}} jaroj", + }, + + xYears: { + one: "1 jaro", + other: "{{count}} jaroj", + }, + + overXYears: { + one: "pli ol 1 jaro", + other: "pli ol {{count}} jaroj", + }, + + almostXYears: { + one: "preskaŭ 1 jaro", + other: "preskaŭ {{count}} jaroj", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options?.comparison && options.comparison > 0) { + return "post " + result; + } else { + return "antaŭ " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.cjs b/node_modules/date-fns/locale/eo/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..5c70cf60c34f50b9cbc9979355cdb62fd73ead89 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do 'de' MMMM y", + long: "y-MMMM-dd", + medium: "y-MMM-dd", + short: "yyyy-MM-dd", +}; + +const timeFormats = { + full: "Ho 'horo kaj' m:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + any: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.d.cts b/node_modules/date-fns/locale/eo/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.d.ts b/node_modules/date-fns/locale/eo/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.js b/node_modules/date-fns/locale/eo/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..d7c3559890a28258ab00090d1910b6d61909ad7a --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do 'de' MMMM y", + long: "y-MMMM-dd", + medium: "y-MMM-dd", + short: "yyyy-MM-dd", +}; + +const timeFormats = { + full: "Ho 'horo kaj' m:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + any: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.cjs b/node_modules/date-fns/locale/eo/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3fc8d807732ee59b889274aae98503e914f4cb25 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.js b/node_modules/date-fns/locale/eo/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..9d703ddb1c9789d626064dbecb5b4e422f8afe4b --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/eo/_lib/localize.cjs b/node_modules/date-fns/locale/eo/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b6cc9c5989d6e840c556cc21fa37a074e1f87d08 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize.cjs @@ -0,0 +1,139 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["aK", "pK"], + abbreviated: ["a.K.E.", "p.K.E."], + wide: ["antaŭ Komuna Erao", "Komuna Erao"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: [ + "1-a kvaronjaro", + "2-a kvaronjaro", + "3-a kvaronjaro", + "4-a kvaronjaro", + ], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "aŭg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januaro", + "februaro", + "marto", + "aprilo", + "majo", + "junio", + "julio", + "aŭgusto", + "septembro", + "oktobro", + "novembro", + "decembro", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "Ĵ", "V", "S"], + short: ["di", "lu", "ma", "me", "ĵa", "ve", "sa"], + abbreviated: ["dim", "lun", "mar", "mer", "ĵaŭ", "ven", "sab"], + wide: [ + "dimanĉo", + "lundo", + "mardo", + "merkredo", + "ĵaŭdo", + "vendredo", + "sabato", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, + abbreviated: { + am: "a.t.m.", + pm: "p.t.m.", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, + wide: { + am: "antaŭtagmeze", + pm: "posttagmeze", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + return number + "-a"; +}; + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function (quarter) { + return Number(quarter) - 1; + }, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/eo/_lib/localize.d.cts b/node_modules/date-fns/locale/eo/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eo/_lib/localize.d.ts b/node_modules/date-fns/locale/eo/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eo/_lib/localize.js b/node_modules/date-fns/locale/eo/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..32904db00afecaf59cbfbe7671f7ed9f4347954e --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize.js @@ -0,0 +1,136 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["aK", "pK"], + abbreviated: ["a.K.E.", "p.K.E."], + wide: ["antaŭ Komuna Erao", "Komuna Erao"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: [ + "1-a kvaronjaro", + "2-a kvaronjaro", + "3-a kvaronjaro", + "4-a kvaronjaro", + ], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "aŭg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januaro", + "februaro", + "marto", + "aprilo", + "majo", + "junio", + "julio", + "aŭgusto", + "septembro", + "oktobro", + "novembro", + "decembro", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "Ĵ", "V", "S"], + short: ["di", "lu", "ma", "me", "ĵa", "ve", "sa"], + abbreviated: ["dim", "lun", "mar", "mer", "ĵaŭ", "ven", "sab"], + wide: [ + "dimanĉo", + "lundo", + "mardo", + "merkredo", + "ĵaŭdo", + "vendredo", + "sabato", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, + abbreviated: { + am: "a.t.m.", + pm: "p.t.m.", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, + wide: { + am: "antaŭtagmeze", + pm: "posttagmeze", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + return number + "-a"; +}; + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function (quarter) { + return Number(quarter) - 1; + }, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/eo/_lib/match.cjs b/node_modules/date-fns/locale/eo/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1228d947f8ba46117983008d886c33414e0e3a74 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-?a)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i, +}; +const parseEraPatterns = { + any: [/^a/i, /^[kp]/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^a(u|ŭ)/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: + /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: function (index) { + return index + 1; + }, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/eo/_lib/match.d.cts b/node_modules/date-fns/locale/eo/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eo/_lib/match.d.ts b/node_modules/date-fns/locale/eo/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eo/_lib/match.js b/node_modules/date-fns/locale/eo/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..13198309eb830827f7b8892acff264febc041664 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match.js @@ -0,0 +1,138 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-?a)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i, +}; +const parseEraPatterns = { + any: [/^a/i, /^[kp]/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^a(u|ŭ)/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: + /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: function (index) { + return index + 1; + }, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/eo/cdn.js b/node_modules/date-fns/locale/eo/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..0193174a67a14ae334689bf4570dabed48ced5d4 --- /dev/null +++ b/node_modules/date-fns/locale/eo/cdn.js @@ -0,0 +1,541 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/eo/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "malpli ol sekundo", + other: "malpli ol {{count}} sekundoj" + }, + xSeconds: { + one: "1 sekundo", + other: "{{count}} sekundoj" + }, + halfAMinute: "duonminuto", + lessThanXMinutes: { + one: "malpli ol minuto", + other: "malpli ol {{count}} minutoj" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutoj" + }, + aboutXHours: { + one: "proksimume 1 horo", + other: "proksimume {{count}} horoj" + }, + xHours: { + one: "1 horo", + other: "{{count}} horoj" + }, + xDays: { + one: "1 tago", + other: "{{count}} tagoj" + }, + aboutXMonths: { + one: "proksimume 1 monato", + other: "proksimume {{count}} monatoj" + }, + xWeeks: { + one: "1 semajno", + other: "{{count}} semajnoj" + }, + aboutXWeeks: { + one: "proksimume 1 semajno", + other: "proksimume {{count}} semajnoj" + }, + xMonths: { + one: "1 monato", + other: "{{count}} monatoj" + }, + aboutXYears: { + one: "proksimume 1 jaro", + other: "proksimume {{count}} jaroj" + }, + xYears: { + one: "1 jaro", + other: "{{count}} jaroj" + }, + overXYears: { + one: "pli ol 1 jaro", + other: "pli ol {{count}} jaroj" + }, + almostXYears: { + one: "preskaŭ 1 jaro", + other: "preskaŭ {{count}} jaroj" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options !== null && options !== void 0 && options.comparison && options.comparison > 0) return "post " + result;else + return "antaŭ " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do 'de' MMMM y", + long: "y-MMMM-dd", + medium: "y-MMM-dd", + short: "yyyy-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "Ho 'horo kaj' m:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}} {{time}}" }, + defaultWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/eo/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/eo/_lib/localize.js +var eraValues = { + narrow: ["aK", "pK"], + abbreviated: ["a.K.E.", "p.K.E."], + wide: ["antaŭ Komuna Erao", "Komuna Erao"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1-a kvaronjaro", + "2-a kvaronjaro", + "3-a kvaronjaro", + "4-a kvaronjaro"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "aŭg", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januaro", + "februaro", + "marto", + "aprilo", + "majo", + "junio", + "julio", + "aŭgusto", + "septembro", + "oktobro", + "novembro", + "decembro"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "Ĵ", + "V", + "S"], + + short: [ + "di", + "lu", + "ma", + "me", + "ĵa", + "ve", + "sa"], + + abbreviated: [ + "dim", + "lun", + "mar", + "mer", + "ĵaŭ", + "ven", + "sab"], + + wide: [ + "dimanĉo", + "lundo", + "mardo", + "merkredo", + "ĵaŭdo", + "vendredo", + "sabato"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte" + }, + abbreviated: { + am: "a.t.m.", + pm: "p.t.m.", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte" + }, + wide: { + am: "antaŭtagmeze", + pm: "posttagmeze", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return Number(dirtyNumber) + "-a"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/eo.js +/** +* @category Locales +* @summary Esperanto locale. +* @language Esperanto +* @iso-639-2 epo +* @author date-fns +*/ +var eo = { + code: "eo", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?a)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^a/i, /^[kp]/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^a(u|ŭ)/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^(j|ĵ)/i, + /^v/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^ma/i, + /^me/i, + /^(j|ĵ)/i, + /^v/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/eo/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + eo: eo }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/cdn.min.js b/node_modules/date-fns/locale/eo/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..272466cdc15636a40bb5e64fc66da3e04d48cdd6 --- /dev/null +++ b/node_modules/date-fns/locale/eo/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`post `+r:`antaŭ `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, do 'de' MMMM y`,long:`y-MMMM-dd`,medium:`y-MMM-dd`,short:`yyyy-MM-dd`},defaultWidth:`full`}),time:c({formats:{full:`Ho 'horo kaj' m:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{any:`{{date}} {{time}}`},defaultWidth:`any`})},u={lastWeek:`'pasinta' eeee 'je' p`,yesterday:`'hieraŭ je' p`,today:`'hodiaŭ je' p`,tomorrow:`'morgaŭ je' p`,nextWeek:`eeee 'je' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){return Number(e)+`-a`},era:f({values:{narrow:[`aK`,`pK`],abbreviated:[`a.K.E.`,`p.K.E.`],wide:[`antaŭ Komuna Erao`,`Komuna Erao`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1-a kvaronjaro`,`2-a kvaronjaro`,`3-a kvaronjaro`,`4-a kvaronjaro`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`aŭg`,`sep`,`okt`,`nov`,`dec`],wide:[`januaro`,`februaro`,`marto`,`aprilo`,`majo`,`junio`,`julio`,`aŭgusto`,`septembro`,`oktobro`,`novembro`,`decembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`M`,`Ĵ`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`ĵa`,`ve`,`sa`],abbreviated:[`dim`,`lun`,`mar`,`mer`,`ĵaŭ`,`ven`,`sab`],wide:[`dimanĉo`,`lundo`,`mardo`,`merkredo`,`ĵaŭdo`,`vendredo`,`sabato`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`},abbreviated:{am:`a.t.m.`,pm:`p.t.m.`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`},wide:{am:`antaŭtagmeze`,pm:`posttagmeze`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "hace " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/es/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/es/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/es/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatDistance.js b/node_modules/date-fns/locale/es/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..bf4a6b272da28a47a2e7463709c535c1bf4c4382 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de un segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "medio minuto", + + lessThanXMinutes: { + one: "menos de un minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "alrededor de 1 hora", + other: "alrededor de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 día", + other: "{{count}} días", + }, + + aboutXWeeks: { + one: "alrededor de 1 semana", + other: "alrededor de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "alrededor de 1 mes", + other: "alrededor de {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "alrededor de 1 año", + other: "alrededor de {{count}} años", + }, + + xYears: { + one: "1 año", + other: "{{count}} años", + }, + + overXYears: { + one: "más de 1 año", + other: "más de {{count}} años", + }, + + almostXYears: { + one: "casi 1 año", + other: "casi {{count}} años", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "hace " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.cjs b/node_modules/date-fns/locale/es/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..68019c01f1ae9ca98fe3fd22a7ba54aa42d75f33 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'a las' {{time}}", + long: "{{date}} 'a las' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.d.cts b/node_modules/date-fns/locale/es/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.d.ts b/node_modules/date-fns/locale/es/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.js b/node_modules/date-fns/locale/es/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..4be25f37c95d22491fdf8702c2c9842a36e4066e --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'a las' {{time}}", + long: "{{date}} 'a las' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.cjs b/node_modules/date-fns/locale/es/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2118e43c0aa075582377fc3d28165ffc69c31a93 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' p", + yesterday: "'ayer a la' p", + today: "'hoy a la' p", + tomorrow: "'mañana a la' p", + nextWeek: "eeee 'a la' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'pasado a las' p", + yesterday: "'ayer a las' p", + today: "'hoy a las' p", + tomorrow: "'mañana a las' p", + nextWeek: "eeee 'a las' p", + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } else { + return formatRelativeLocale[token]; + } +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/es/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/es/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.js b/node_modules/date-fns/locale/es/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..66cf094e8671147be9ff53799b3feb3bef38b5d1 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.js @@ -0,0 +1,25 @@ +const formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' p", + yesterday: "'ayer a la' p", + today: "'hoy a la' p", + tomorrow: "'mañana a la' p", + nextWeek: "eeee 'a la' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'pasado a las' p", + yesterday: "'ayer a las' p", + today: "'hoy a las' p", + tomorrow: "'mañana a las' p", + nextWeek: "eeee 'a las' p", + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } else { + return formatRelativeLocale[token]; + } +}; diff --git a/node_modules/date-fns/locale/es/_lib/localize.cjs b/node_modules/date-fns/locale/es/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c3a064f5d22e0cd5e07c1319477d74a8ef718a68 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "después de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "ene", + "feb", + "mar", + "abr", + "may", + "jun", + "jul", + "ago", + "sep", + "oct", + "nov", + "dic", + ], + + wide: [ + "enero", + "febrero", + "marzo", + "abril", + "mayo", + "junio", + "julio", + "agosto", + "septiembre", + "octubre", + "noviembre", + "diciembre", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["do", "lu", "ma", "mi", "ju", "vi", "sá"], + abbreviated: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"], + wide: [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/es/_lib/localize.d.cts b/node_modules/date-fns/locale/es/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/es/_lib/localize.d.ts b/node_modules/date-fns/locale/es/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/es/_lib/localize.js b/node_modules/date-fns/locale/es/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..54918505f3b0097213b62625c6bc3952e3b6b7fe --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "después de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "ene", + "feb", + "mar", + "abr", + "may", + "jun", + "jul", + "ago", + "sep", + "oct", + "nov", + "dic", + ], + + wide: [ + "enero", + "febrero", + "marzo", + "abril", + "mayo", + "junio", + "julio", + "agosto", + "septiembre", + "octubre", + "noviembre", + "diciembre", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["do", "lu", "ma", "mi", "ju", "vi", "sá"], + abbreviated: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"], + wide: [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/es/_lib/match.cjs b/node_modules/date-fns/locale/es/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..65fb24eaa9b0de274a9799c0f9082880d542b4f0 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes de la era com[uú]n)/i, + /^(despu[eé]s de cristo|era com[uú]n)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[efmajsond]/i, + abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, + wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^e/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^en/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(do|lu|ma|mi|ju|vi|s[áa])/i, + abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, + wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, + any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañana/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noche/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/es/_lib/match.d.cts b/node_modules/date-fns/locale/es/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/es/_lib/match.d.ts b/node_modules/date-fns/locale/es/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/es/_lib/match.js b/node_modules/date-fns/locale/es/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..46b1cb50b3e499c3bc64bb4a654558037e6cbcc6 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match.js @@ -0,0 +1,138 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes de la era com[uú]n)/i, + /^(despu[eé]s de cristo|era com[uú]n)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[efmajsond]/i, + abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, + wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^e/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^en/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(do|lu|ma|mi|ju|vi|s[áa])/i, + abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, + wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, + any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañana/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noche/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/es/cdn.js b/node_modules/date-fns/locale/es/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..628c711963c11c7e7cb6fdfc70416105914ffef3 --- /dev/null +++ b/node_modules/date-fns/locale/es/cdn.js @@ -0,0 +1,593 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/es/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de un segundo", + other: "menos de {{count}} segundos" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos" + }, + halfAMinute: "medio minuto", + lessThanXMinutes: { + one: "menos de un minuto", + other: "menos de {{count}} minutos" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos" + }, + aboutXHours: { + one: "alrededor de 1 hora", + other: "alrededor de {{count}} horas" + }, + xHours: { + one: "1 hora", + other: "{{count}} horas" + }, + xDays: { + one: "1 día", + other: "{{count}} días" + }, + aboutXWeeks: { + one: "alrededor de 1 semana", + other: "alrededor de {{count}} semanas" + }, + xWeeks: { + one: "1 semana", + other: "{{count}} semanas" + }, + aboutXMonths: { + one: "alrededor de 1 mes", + other: "alrededor de {{count}} meses" + }, + xMonths: { + one: "1 mes", + other: "{{count}} meses" + }, + aboutXYears: { + one: "alrededor de 1 año", + other: "alrededor de {{count}} años" + }, + xYears: { + one: "1 año", + other: "{{count}} años" + }, + overXYears: { + one: "más de 1 año", + other: "más de {{count}} años" + }, + almostXYears: { + one: "casi 1 año", + other: "casi {{count}} años" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "en " + result;else + return "hace " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'a las' {{time}}", + long: "{{date}} 'a las' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/es/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' p", + yesterday: "'ayer a la' p", + today: "'hoy a la' p", + tomorrow: "'mañana a la' p", + nextWeek: "eeee 'a la' p", + other: "P" +}; +var formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'pasado a las' p", + yesterday: "'ayer a las' p", + today: "'hoy a las' p", + tomorrow: "'mañana a las' p", + nextWeek: "eeee 'a las' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getHours() !== 1) return formatRelativeLocalePlural[token];else + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/es/_lib/localize.js +var eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "después de cristo"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre"] + +}; +var monthValues = { + narrow: [ + "e", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "ene", + "feb", + "mar", + "abr", + "may", + "jun", + "jul", + "ago", + "sep", + "oct", + "nov", + "dic"], + + wide: [ + "enero", + "febrero", + "marzo", + "abril", + "mayo", + "junio", + "julio", + "agosto", + "septiembre", + "octubre", + "noviembre", + "diciembre"] + +}; +var dayValues = { + narrow: [ + "d", + "l", + "m", + "m", + "j", + "v", + "s"], + + short: [ + "do", + "lu", + "ma", + "mi", + "ju", + "vi", + "sá"], + + abbreviated: [ + "dom", + "lun", + "mar", + "mié", + "jue", + "vie", + "sáb"], + + wide: [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "º"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return Number(quarter) - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/es.js +/** +* @category Locales +* @summary Spanish locale. +* @language Spanish +* @iso-639-2 spa +* @author Juan Angosto [@juanangosto](https://github.com/juanangosto) +* @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) +* @author Fernando Agüero [@fjaguero](https://github.com/fjaguero) +* @author Gastón Haro [@harogaston](https://github.com/harogaston) +* @author Yago Carballo [@YagoCarballo](https://github.com/YagoCarballo) +*/ +var es = { + code: "es", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes de la era com[uú]n)/i, /^(despu[eé]s de cristo|era com[uú]n)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[efmajsond]/i, + abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, + wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^e/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^en/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmjvs]/i, + short: /^(do|lu|ma|mi|ju|vi|s[áa])/i, + abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, + wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^do/i, + /^lu/i, + /^ma/i, + /^mi/i, + /^ju/i, + /^vi/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, + any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañana/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noche/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/es/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + es: es }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/cdn.min.js b/node_modules/date-fns/locale/es/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..fc735dc85a187b39e30ab22aed00644fed76639a --- /dev/null +++ b/node_modules/date-fns/locale/es/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`en `+r:`hace `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'a las' {{time}}`,long:`{{date}} 'a las' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'el' eeee 'pasado a la' p`,yesterday:`'ayer a la' p`,today:`'hoy a la' p`,tomorrow:`'mañana a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},d={lastWeek:`'el' eeee 'pasado a las' p`,yesterday:`'ayer a las' p`,today:`'hoy a las' p`,tomorrow:`'mañana a las' p`,nextWeek:`eeee 'a las' p`,other:`P`},f=function(e,t,n,r){return t.getHours()===1?u[e]:d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`º`},era:p({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`después de cristo`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:p({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`ene`,`feb`,`mar`,`abr`,`may`,`jun`,`jul`,`ago`,`sep`,`oct`,`nov`,`dic`],wide:[`enero`,`febrero`,`marzo`,`abril`,`mayo`,`junio`,`julio`,`agosto`,`septiembre`,`octubre`,`noviembre`,`diciembre`]},defaultWidth:`wide`}),day:p({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`mi`,`ju`,`vi`,`sá`],abbreviated:[`dom`,`lun`,`mar`,`mié`,`jue`,`vie`,`sáb`],wide:[`domingo`,`lunes`,`martes`,`miércoles`,`jueves`,`viernes`,`sábado`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function g(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?v(s,function(e){return e.test(o)}):_(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function _(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function v(e,t){for(var n=0;n { + const usageGroup = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " pärast"; + } else { + return result + " eest"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/et/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/et/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/et/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatDistance.js b/node_modules/date-fns/locale/et/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..0f611118523785f34afe8a5173e6a77173f2c86c --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatDistance.js @@ -0,0 +1,196 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "vähem kui üks sekund", + other: "vähem kui {{count}} sekundit", + }, + withPreposition: { + one: "vähem kui ühe sekundi", + other: "vähem kui {{count}} sekundi", + }, + }, + + xSeconds: { + standalone: { + one: "üks sekund", + other: "{{count}} sekundit", + }, + withPreposition: { + one: "ühe sekundi", + other: "{{count}} sekundi", + }, + }, + + halfAMinute: { + standalone: "pool minutit", + withPreposition: "poole minuti", + }, + + lessThanXMinutes: { + standalone: { + one: "vähem kui üks minut", + other: "vähem kui {{count}} minutit", + }, + withPreposition: { + one: "vähem kui ühe minuti", + other: "vähem kui {{count}} minuti", + }, + }, + + xMinutes: { + standalone: { + one: "üks minut", + other: "{{count}} minutit", + }, + withPreposition: { + one: "ühe minuti", + other: "{{count}} minuti", + }, + }, + + aboutXHours: { + standalone: { + one: "umbes üks tund", + other: "umbes {{count}} tundi", + }, + withPreposition: { + one: "umbes ühe tunni", + other: "umbes {{count}} tunni", + }, + }, + + xHours: { + standalone: { + one: "üks tund", + other: "{{count}} tundi", + }, + withPreposition: { + one: "ühe tunni", + other: "{{count}} tunni", + }, + }, + + xDays: { + standalone: { + one: "üks päev", + other: "{{count}} päeva", + }, + withPreposition: { + one: "ühe päeva", + other: "{{count}} päeva", + }, + }, + + aboutXWeeks: { + standalone: { + one: "umbes üks nädal", + other: "umbes {{count}} nädalat", + }, + withPreposition: { + one: "umbes ühe nädala", + other: "umbes {{count}} nädala", + }, + }, + + xWeeks: { + standalone: { + one: "üks nädal", + other: "{{count}} nädalat", + }, + withPreposition: { + one: "ühe nädala", + other: "{{count}} nädala", + }, + }, + + aboutXMonths: { + standalone: { + one: "umbes üks kuu", + other: "umbes {{count}} kuud", + }, + withPreposition: { + one: "umbes ühe kuu", + other: "umbes {{count}} kuu", + }, + }, + + xMonths: { + standalone: { + one: "üks kuu", + other: "{{count}} kuud", + }, + withPreposition: { + one: "ühe kuu", + other: "{{count}} kuu", + }, + }, + + aboutXYears: { + standalone: { + one: "umbes üks aasta", + other: "umbes {{count}} aastat", + }, + withPreposition: { + one: "umbes ühe aasta", + other: "umbes {{count}} aasta", + }, + }, + + xYears: { + standalone: { + one: "üks aasta", + other: "{{count}} aastat", + }, + withPreposition: { + one: "ühe aasta", + other: "{{count}} aasta", + }, + }, + + overXYears: { + standalone: { + one: "rohkem kui üks aasta", + other: "rohkem kui {{count}} aastat", + }, + withPreposition: { + one: "rohkem kui ühe aasta", + other: "rohkem kui {{count}} aasta", + }, + }, + + almostXYears: { + standalone: { + one: "peaaegu üks aasta", + other: "peaaegu {{count}} aastat", + }, + withPreposition: { + one: "peaaegu ühe aasta", + other: "peaaegu {{count}} aasta", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + const usageGroup = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " pärast"; + } else { + return result + " eest"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.cjs b/node_modules/date-fns/locale/et/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..17b4b8e2ed8a38ff98edef28e247570076da88e4 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kell' {{time}}", + long: "{{date}} 'kell' {{time}}", + medium: "{{date}}. {{time}}", + short: "{{date}}. {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.d.cts b/node_modules/date-fns/locale/et/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.d.ts b/node_modules/date-fns/locale/et/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.js b/node_modules/date-fns/locale/et/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..f57ff58b855e0397a590c425452a3110c5c24dd7 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kell' {{time}}", + long: "{{date}} 'kell' {{time}}", + medium: "{{date}}. {{time}}", + short: "{{date}}. {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.cjs b/node_modules/date-fns/locale/et/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d4eb5e4a26f3e95dd61c78a4898ee1a364b79d60 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'eelmine' eeee 'kell' p", + yesterday: "'eile kell' p", + today: "'täna kell' p", + tomorrow: "'homme kell' p", + nextWeek: "'järgmine' eeee 'kell' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/et/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/et/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.js b/node_modules/date-fns/locale/et/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..0c186a480ae1115d3b6e2cd20f09212022bfebff --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'eelmine' eeee 'kell' p", + yesterday: "'eile kell' p", + today: "'täna kell' p", + tomorrow: "'homme kell' p", + nextWeek: "'järgmine' eeee 'kell' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/et/_lib/localize.cjs b/node_modules/date-fns/locale/et/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6436859db32cbd634c81a7d1219dd32c53ad86e5 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize.cjs @@ -0,0 +1,179 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["e.m.a", "m.a.j"], + abbreviated: ["e.m.a", "m.a.j"], + wide: ["enne meie ajaarvamist", "meie ajaarvamise järgi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "V", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jaan", + "veebr", + "märts", + "apr", + "mai", + "juuni", + "juuli", + "aug", + "sept", + "okt", + "nov", + "dets", + ], + + wide: [ + "jaanuar", + "veebruar", + "märts", + "aprill", + "mai", + "juuni", + "juuli", + "august", + "september", + "oktoober", + "november", + "detsember", + ], +}; + +const dayValues = { + narrow: ["P", "E", "T", "K", "N", "R", "L"], + short: ["P", "E", "T", "K", "N", "R", "L"], + abbreviated: [ + "pühap.", + "esmasp.", + "teisip.", + "kolmap.", + "neljap.", + "reede.", + "laup.", + ], + + wide: [ + "pühapäev", + "esmaspäev", + "teisipäev", + "kolmapäev", + "neljapäev", + "reede", + "laupäev", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/et/_lib/localize.d.cts b/node_modules/date-fns/locale/et/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/et/_lib/localize.d.ts b/node_modules/date-fns/locale/et/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/et/_lib/localize.js b/node_modules/date-fns/locale/et/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..a55a4b6cf03dc1c3a7be6108a75965fe538de088 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize.js @@ -0,0 +1,177 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["e.m.a", "m.a.j"], + abbreviated: ["e.m.a", "m.a.j"], + wide: ["enne meie ajaarvamist", "meie ajaarvamise järgi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "V", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jaan", + "veebr", + "märts", + "apr", + "mai", + "juuni", + "juuli", + "aug", + "sept", + "okt", + "nov", + "dets", + ], + + wide: [ + "jaanuar", + "veebruar", + "märts", + "aprill", + "mai", + "juuni", + "juuli", + "august", + "september", + "oktoober", + "november", + "detsember", + ], +}; + +const dayValues = { + narrow: ["P", "E", "T", "K", "N", "R", "L"], + short: ["P", "E", "T", "K", "N", "R", "L"], + abbreviated: [ + "pühap.", + "esmasp.", + "teisip.", + "kolmap.", + "neljap.", + "reede.", + "laup.", + ], + + wide: [ + "pühapäev", + "esmaspäev", + "teisipäev", + "kolmapäev", + "neljapäev", + "reede", + "laupäev", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/et/_lib/match.cjs b/node_modules/date-fns/locale/et/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3a8067ae80d3701bbd9d00bd59f6d80a2e021f11 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match.cjs @@ -0,0 +1,133 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^\d+\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i, +}; +const parseEraPatterns = { + any: [/^e/i, /^(m|p)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jvmasond]/i, + abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, + wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^v/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^v/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^juun/i, + /^juul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[petknrl]/i, + short: /^[petknrl]/i, + abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, + wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i, +}; +const parseDayPatterns = { + any: [/^p/i, /^e/i, /^t/i, /^k/i, /^n/i, /^r/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^keskö/i, + noon: /^keskp/i, + morning: /hommik/i, + afternoon: /pärastlõuna/i, + evening: /õhtu/i, + night: /öö/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/et/_lib/match.d.cts b/node_modules/date-fns/locale/et/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/et/_lib/match.d.ts b/node_modules/date-fns/locale/et/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/et/_lib/match.js b/node_modules/date-fns/locale/et/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..e6bbffcd261dbfc4744f1ce5d3c62f8ccd6011b5 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match.js @@ -0,0 +1,130 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^\d+\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i, +}; +const parseEraPatterns = { + any: [/^e/i, /^(m|p)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jvmasond]/i, + abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, + wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^v/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^v/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^juun/i, + /^juul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[petknrl]/i, + short: /^[petknrl]/i, + abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, + wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i, +}; +const parseDayPatterns = { + any: [/^p/i, /^e/i, /^t/i, /^k/i, /^n/i, /^r/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^keskö/i, + noon: /^keskp/i, + morning: /hommik/i, + afternoon: /pärastlõuna/i, + evening: /õhtu/i, + night: /öö/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/et/cdn.js b/node_modules/date-fns/locale/et/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..c449eec66472b18364b1222f42bb2df74adeeea0 --- /dev/null +++ b/node_modules/date-fns/locale/et/cdn.js @@ -0,0 +1,656 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/et/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "vähem kui üks sekund", + other: "vähem kui {{count}} sekundit" + }, + withPreposition: { + one: "vähem kui ühe sekundi", + other: "vähem kui {{count}} sekundi" + } + }, + xSeconds: { + standalone: { + one: "üks sekund", + other: "{{count}} sekundit" + }, + withPreposition: { + one: "ühe sekundi", + other: "{{count}} sekundi" + } + }, + halfAMinute: { + standalone: "pool minutit", + withPreposition: "poole minuti" + }, + lessThanXMinutes: { + standalone: { + one: "vähem kui üks minut", + other: "vähem kui {{count}} minutit" + }, + withPreposition: { + one: "vähem kui ühe minuti", + other: "vähem kui {{count}} minuti" + } + }, + xMinutes: { + standalone: { + one: "üks minut", + other: "{{count}} minutit" + }, + withPreposition: { + one: "ühe minuti", + other: "{{count}} minuti" + } + }, + aboutXHours: { + standalone: { + one: "umbes üks tund", + other: "umbes {{count}} tundi" + }, + withPreposition: { + one: "umbes ühe tunni", + other: "umbes {{count}} tunni" + } + }, + xHours: { + standalone: { + one: "üks tund", + other: "{{count}} tundi" + }, + withPreposition: { + one: "ühe tunni", + other: "{{count}} tunni" + } + }, + xDays: { + standalone: { + one: "üks päev", + other: "{{count}} päeva" + }, + withPreposition: { + one: "ühe päeva", + other: "{{count}} päeva" + } + }, + aboutXWeeks: { + standalone: { + one: "umbes üks nädal", + other: "umbes {{count}} nädalat" + }, + withPreposition: { + one: "umbes ühe nädala", + other: "umbes {{count}} nädala" + } + }, + xWeeks: { + standalone: { + one: "üks nädal", + other: "{{count}} nädalat" + }, + withPreposition: { + one: "ühe nädala", + other: "{{count}} nädala" + } + }, + aboutXMonths: { + standalone: { + one: "umbes üks kuu", + other: "umbes {{count}} kuud" + }, + withPreposition: { + one: "umbes ühe kuu", + other: "umbes {{count}} kuu" + } + }, + xMonths: { + standalone: { + one: "üks kuu", + other: "{{count}} kuud" + }, + withPreposition: { + one: "ühe kuu", + other: "{{count}} kuu" + } + }, + aboutXYears: { + standalone: { + one: "umbes üks aasta", + other: "umbes {{count}} aastat" + }, + withPreposition: { + one: "umbes ühe aasta", + other: "umbes {{count}} aasta" + } + }, + xYears: { + standalone: { + one: "üks aasta", + other: "{{count}} aastat" + }, + withPreposition: { + one: "ühe aasta", + other: "{{count}} aasta" + } + }, + overXYears: { + standalone: { + one: "rohkem kui üks aasta", + other: "rohkem kui {{count}} aastat" + }, + withPreposition: { + one: "rohkem kui ühe aasta", + other: "rohkem kui {{count}} aasta" + } + }, + almostXYears: { + standalone: { + one: "peaaegu üks aasta", + other: "peaaegu {{count}} aastat" + }, + withPreposition: { + one: "peaaegu ühe aasta", + other: "peaaegu {{count}} aasta" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + var result; + if (typeof usageGroup === "string") result = usageGroup;else + if (count === 1) result = usageGroup.one;else + result = usageGroup.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + " pärast";else + return result + " eest"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kell' {{time}}", + long: "{{date}} 'kell' {{time}}", + medium: "{{date}}. {{time}}", + short: "{{date}}. {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/et/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'eelmine' eeee 'kell' p", + yesterday: "'eile kell' p", + today: "'täna kell' p", + tomorrow: "'homme kell' p", + nextWeek: "'järgmine' eeee 'kell' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/et/_lib/localize.js +var eraValues = { + narrow: ["e.m.a", "m.a.j"], + abbreviated: ["e.m.a", "m.a.j"], + wide: ["enne meie ajaarvamist", "meie ajaarvamise järgi"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "J", + "V", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jaan", + "veebr", + "märts", + "apr", + "mai", + "juuni", + "juuli", + "aug", + "sept", + "okt", + "nov", + "dets"], + + wide: [ + "jaanuar", + "veebruar", + "märts", + "aprill", + "mai", + "juuni", + "juuli", + "august", + "september", + "oktoober", + "november", + "detsember"] + +}; +var dayValues = { + narrow: [ + "P", + "E", + "T", + "K", + "N", + "R", + "L"], + + short: [ + "P", + "E", + "T", + "K", + "N", + "R", + "L"], + + abbreviated: [ + "pühap.", + "esmasp.", + "teisip.", + "kolmap.", + "neljap.", + "reede.", + "laup."], + + wide: [ + "pühapäev", + "esmaspäev", + "teisipäev", + "kolmapäev", + "neljapäev", + "reede", + "laupäev"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/et.js +/** +* @category Locales +* @summary Estonian locale. +* @language Estonian +* @iso-639-2 est +* @author Priit Hansen [@HansenPriit](https://github.com/priithansen) +*/ +var et = { + code: "et", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^\d+\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^e/i, /^(m|p)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](\.)? kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jvmasond]/i, + abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, + wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^v/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^v/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^juun/i, + /^juul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[petknrl]/i, + short: /^[petknrl]/i, + abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, + wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^p/i, + /^e/i, + /^t/i, + /^k/i, + /^n/i, + /^r/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^keskö/i, + noon: /^keskp/i, + morning: /hommik/i, + afternoon: /pärastlõuna/i, + evening: /õhtu/i, + night: /öö/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/et/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + et: et }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/cdn.min.js b/node_modules/date-fns/locale/et/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..49bb7788c88000435fafc7016d78e9b8f2eb5421 --- /dev/null +++ b/node_modules/date-fns/locale/et/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?i+` pärast`:i+` eest`:i};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'kell' {{time}}`,long:`{{date}} 'kell' {{time}}`,medium:`{{date}}. {{time}}`,short:`{{date}}. {{time}}`},defaultWidth:`full`})},u={lastWeek:`'eelmine' eeee 'kell' p`,yesterday:`'eile kell' p`,today:`'täna kell' p`,tomorrow:`'homme kell' p`,nextWeek:`'järgmine' eeee 'kell' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={narrow:[`e.m.a`,`m.a.j`],abbreviated:[`e.m.a`,`m.a.j`],wide:[`enne meie ajaarvamist`,`meie ajaarvamise järgi`]},m={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},h={narrow:[`J`,`V`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jaan`,`veebr`,`märts`,`apr`,`mai`,`juuni`,`juuli`,`aug`,`sept`,`okt`,`nov`,`dets`],wide:[`jaanuar`,`veebruar`,`märts`,`aprill`,`mai`,`juuni`,`juuli`,`august`,`september`,`oktoober`,`november`,`detsember`]},g={narrow:[`P`,`E`,`T`,`K`,`N`,`R`,`L`],short:[`P`,`E`,`T`,`K`,`N`,`R`,`L`],abbreviated:[`pühap.`,`esmasp.`,`teisip.`,`kolmap.`,`neljap.`,`reede.`,`laup.`],wide:[`pühapäev`,`esmaspäev`,`teisipäev`,`kolmapäev`,`neljapäev`,`reede`,`laupäev`]},_={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:p,defaultWidth:`wide`}),quarter:f({values:m,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:h,defaultWidth:`wide`,formattingValues:h,defaultFormattingWidth:`wide`}),day:f({values:g,defaultWidth:`wide`,formattingValues:g,defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`},abbreviated:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`},wide:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`},abbreviated:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`},wide:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`}},defaultFormattingWidth:`wide`})};function v(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?b(s,function(e){return e.test(o)}):y(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function y(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function b(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var S={code:`et`,formatDistance:s,formatLong:l,formatRelative:d,localize:_,match:{ordinalNumber:x({matchPattern:/^\d+\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:v({matchPatterns:{narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^e/i,/^(m|p)/i]},defaultParseWidth:`any`}),quarter:v({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:v({matchPatterns:{narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:v({matchPatterns:{narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:v({matchPatterns:{any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{et:S})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu.cjs b/node_modules/date-fns/locale/eu.cjs new file mode 100644 index 0000000000000000000000000000000000000000..87a643ac1b9d2960d177a6b1a459c43a9f1ffcac --- /dev/null +++ b/node_modules/date-fns/locale/eu.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.eu = void 0; +var _index = require("./eu/_lib/formatDistance.cjs"); +var _index2 = require("./eu/_lib/formatLong.cjs"); +var _index3 = require("./eu/_lib/formatRelative.cjs"); +var _index4 = require("./eu/_lib/localize.cjs"); +var _index5 = require("./eu/_lib/match.cjs"); + +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +const eu = (exports.eu = { + code: "eu", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/eu.d.cts b/node_modules/date-fns/locale/eu.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..6872ac5a8eba416c362650a09fc0ef863d1118ec --- /dev/null +++ b/node_modules/date-fns/locale/eu.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +export declare const eu: Locale; diff --git a/node_modules/date-fns/locale/eu.d.ts b/node_modules/date-fns/locale/eu.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6872ac5a8eba416c362650a09fc0ef863d1118ec --- /dev/null +++ b/node_modules/date-fns/locale/eu.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +export declare const eu: Locale; diff --git a/node_modules/date-fns/locale/eu.js b/node_modules/date-fns/locale/eu.js new file mode 100644 index 0000000000000000000000000000000000000000..bb0557e08ba107c364c62e551aab51f7a1511dac --- /dev/null +++ b/node_modules/date-fns/locale/eu.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./eu/_lib/formatDistance.js"; +import { formatLong } from "./eu/_lib/formatLong.js"; +import { formatRelative } from "./eu/_lib/formatRelative.js"; +import { localize } from "./eu/_lib/localize.js"; +import { match } from "./eu/_lib/match.js"; + +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +export const eu = { + code: "eu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default eu; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.cjs b/node_modules/date-fns/locale/eu/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..5580afe21e65e238bfc8aececc4fe37361f85ab6 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "segundo bat baino gutxiago", + other: "{{count}} segundo baino gutxiago", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundo", + }, + + halfAMinute: "minutu erdi", + + lessThanXMinutes: { + one: "minutu bat baino gutxiago", + other: "{{count}} minutu baino gutxiago", + }, + + xMinutes: { + one: "1 minutu", + other: "{{count}} minutu", + }, + + aboutXHours: { + one: "1 ordu gutxi gorabehera", + other: "{{count}} ordu gutxi gorabehera", + }, + + xHours: { + one: "1 ordu", + other: "{{count}} ordu", + }, + + xDays: { + one: "1 egun", + other: "{{count}} egun", + }, + + aboutXWeeks: { + one: "aste 1 inguru", + other: "{{count}} aste inguru", + }, + + xWeeks: { + one: "1 aste", + other: "{{count}} astean", + }, + + aboutXMonths: { + one: "1 hilabete gutxi gorabehera", + other: "{{count}} hilabete gutxi gorabehera", + }, + + xMonths: { + one: "1 hilabete", + other: "{{count}} hilabete", + }, + + aboutXYears: { + one: "1 urte gutxi gorabehera", + other: "{{count}} urte gutxi gorabehera", + }, + + xYears: { + one: "1 urte", + other: "{{count}} urte", + }, + + overXYears: { + one: "1 urte baino gehiago", + other: "{{count}} urte baino gehiago", + }, + + almostXYears: { + one: "ia 1 urte", + other: "ia {{count}} urte", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "duela " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.js b/node_modules/date-fns/locale/eu/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..29a7ee24a766aacfa969506b41cf4a6273838fa1 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "segundo bat baino gutxiago", + other: "{{count}} segundo baino gutxiago", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundo", + }, + + halfAMinute: "minutu erdi", + + lessThanXMinutes: { + one: "minutu bat baino gutxiago", + other: "{{count}} minutu baino gutxiago", + }, + + xMinutes: { + one: "1 minutu", + other: "{{count}} minutu", + }, + + aboutXHours: { + one: "1 ordu gutxi gorabehera", + other: "{{count}} ordu gutxi gorabehera", + }, + + xHours: { + one: "1 ordu", + other: "{{count}} ordu", + }, + + xDays: { + one: "1 egun", + other: "{{count}} egun", + }, + + aboutXWeeks: { + one: "aste 1 inguru", + other: "{{count}} aste inguru", + }, + + xWeeks: { + one: "1 aste", + other: "{{count}} astean", + }, + + aboutXMonths: { + one: "1 hilabete gutxi gorabehera", + other: "{{count}} hilabete gutxi gorabehera", + }, + + xMonths: { + one: "1 hilabete", + other: "{{count}} hilabete", + }, + + aboutXYears: { + one: "1 urte gutxi gorabehera", + other: "{{count}} urte gutxi gorabehera", + }, + + xYears: { + one: "1 urte", + other: "{{count}} urte", + }, + + overXYears: { + one: "1 urte baino gehiago", + other: "{{count}} urte baino gehiago", + }, + + almostXYears: { + one: "ia 1 urte", + other: "ia {{count}} urte", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "duela " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.cjs b/node_modules/date-fns/locale/eu/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..98eca779509066347c304ae653373cbb33d3f7c5 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, y'ko' MMMM'ren' d'a' y'ren'", + long: "y'ko' MMMM'ren' d'a'", + medium: "y MMM d", + short: "yy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'tan' {{time}}", + long: "{{date}} 'tan' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.d.cts b/node_modules/date-fns/locale/eu/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.d.ts b/node_modules/date-fns/locale/eu/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.js b/node_modules/date-fns/locale/eu/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..2ad8ac856a8323cdf90103502c48e384be6816aa --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, y'ko' MMMM'ren' d'a' y'ren'", + long: "y'ko' MMMM'ren' d'a'", + medium: "y MMM d", + short: "yy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'tan' {{time}}", + long: "{{date}} 'tan' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.cjs b/node_modules/date-fns/locale/eu/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4796b81234e8c3c5dcfb312537fad1fc596ac9e8 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'joan den' eeee, LT", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'joan den' eeee, p", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P", +}; + +const formatRelative = (token, date) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.js b/node_modules/date-fns/locale/eu/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..848f7a7bc6baadcec8ee98fddc997c93a321d025 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.js @@ -0,0 +1,24 @@ +const formatRelativeLocale = { + lastWeek: "'joan den' eeee, LT", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'joan den' eeee, p", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P", +}; + +export const formatRelative = (token, date) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/eu/_lib/localize.cjs b/node_modules/date-fns/locale/eu/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..81f8f2654dd9e8a456a3446bfa21dcfc6c434394 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize.cjs @@ -0,0 +1,171 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["k.a.", "k.o."], + abbreviated: ["k.a.", "k.o."], + wide: ["kristo aurretik", "kristo ondoren"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1H", "2H", "3H", "4H"], + wide: [ + "1. hiruhilekoa", + "2. hiruhilekoa", + "3. hiruhilekoa", + "4. hiruhilekoa", + ], +}; + +const monthValues = { + narrow: ["u", "o", "m", "a", "m", "e", "u", "a", "i", "u", "a", "a"], + abbreviated: [ + "urt", + "ots", + "mar", + "api", + "mai", + "eka", + "uzt", + "abu", + "ira", + "urr", + "aza", + "abe", + ], + + wide: [ + "urtarrila", + "otsaila", + "martxoa", + "apirila", + "maiatza", + "ekaina", + "uztaila", + "abuztua", + "iraila", + "urria", + "azaroa", + "abendua", + ], +}; + +const dayValues = { + narrow: ["i", "a", "a", "a", "o", "o", "l"], + short: ["ig", "al", "as", "az", "og", "or", "lr"], + abbreviated: ["iga", "ast", "ast", "ast", "ost", "ost", "lar"], + wide: [ + "igandea", + "astelehena", + "asteartea", + "asteazkena", + "osteguna", + "ostirala", + "larunbata", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/eu/_lib/localize.d.cts b/node_modules/date-fns/locale/eu/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eu/_lib/localize.d.ts b/node_modules/date-fns/locale/eu/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eu/_lib/localize.js b/node_modules/date-fns/locale/eu/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..7bd2a985154421fdb8d3ae7144d94d88226745dd --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize.js @@ -0,0 +1,169 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["k.a.", "k.o."], + abbreviated: ["k.a.", "k.o."], + wide: ["kristo aurretik", "kristo ondoren"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1H", "2H", "3H", "4H"], + wide: [ + "1. hiruhilekoa", + "2. hiruhilekoa", + "3. hiruhilekoa", + "4. hiruhilekoa", + ], +}; + +const monthValues = { + narrow: ["u", "o", "m", "a", "m", "e", "u", "a", "i", "u", "a", "a"], + abbreviated: [ + "urt", + "ots", + "mar", + "api", + "mai", + "eka", + "uzt", + "abu", + "ira", + "urr", + "aza", + "abe", + ], + + wide: [ + "urtarrila", + "otsaila", + "martxoa", + "apirila", + "maiatza", + "ekaina", + "uztaila", + "abuztua", + "iraila", + "urria", + "azaroa", + "abendua", + ], +}; + +const dayValues = { + narrow: ["i", "a", "a", "a", "o", "o", "l"], + short: ["ig", "al", "as", "az", "og", "or", "lr"], + abbreviated: ["iga", "ast", "ast", "ast", "ost", "ost", "lar"], + wide: [ + "igandea", + "astelehena", + "asteartea", + "asteazkena", + "osteguna", + "ostirala", + "larunbata", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/eu/_lib/match.cjs b/node_modules/date-fns/locale/eu/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..303a32f2ad7b1ee8bcd4d8dfc54c044d397f098e --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match.cjs @@ -0,0 +1,158 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(k.a.|k.o.)/i, + abbreviated: /^(k.a.|k.o.)/i, + wide: /^(kristo aurretik|kristo ondoren)/i, +}; +const parseEraPatterns = { + narrow: [/^k.a./i, /^k.o./i], + abbreviated: [/^(k.a.)/i, /^(k.o.)/i], + wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]H/i, + wide: /^[1234](.)? hiruhilekoa/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[uomaei]/i, + abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, + wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^u/i, + /^o/i, + /^m/i, + /^a/i, + /^m/i, + /^e/i, + /^u/i, + /^a/i, + /^i/i, + /^u/i, + /^a/i, + /^a/i, + ], + + any: [ + /^urt/i, + /^ots/i, + /^mar/i, + /^api/i, + /^mai/i, + /^eka/i, + /^uzt/i, + /^abu/i, + /^ira/i, + /^urr/i, + /^aza/i, + /^abe/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[iaol]/i, + short: /^(ig|al|as|az|og|or|lr)/i, + abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, + wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i, +}; +const parseDayPatterns = { + narrow: [/^i/i, /^a/i, /^a/i, /^a/i, /^o/i, /^o/i, /^l/i], + short: [/^ig/i, /^al/i, /^as/i, /^az/i, /^og/i, /^or/i, /^lr/i], + abbreviated: [/^iga/i, /^ast/i, /^ast/i, /^ast/i, /^ost/i, /^ost/i, /^lar/i], + + wide: [ + /^igandea/i, + /^astelehena/i, + /^asteartea/i, + /^asteazkena/i, + /^osteguna/i, + /^ostirala/i, + /^larunbata/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, + any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^a/i, + pm: /^p/i, + midnight: /^ge/i, + noon: /^eg/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i, + }, + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^gauerdia/i, + noon: /^eguerdia/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "wide", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/eu/_lib/match.d.cts b/node_modules/date-fns/locale/eu/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eu/_lib/match.d.ts b/node_modules/date-fns/locale/eu/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eu/_lib/match.js b/node_modules/date-fns/locale/eu/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..90bb32542089635471018c72ee906efc140ab057 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match.js @@ -0,0 +1,155 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(k.a.|k.o.)/i, + abbreviated: /^(k.a.|k.o.)/i, + wide: /^(kristo aurretik|kristo ondoren)/i, +}; +const parseEraPatterns = { + narrow: [/^k.a./i, /^k.o./i], + abbreviated: [/^(k.a.)/i, /^(k.o.)/i], + wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]H/i, + wide: /^[1234](.)? hiruhilekoa/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[uomaei]/i, + abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, + wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^u/i, + /^o/i, + /^m/i, + /^a/i, + /^m/i, + /^e/i, + /^u/i, + /^a/i, + /^i/i, + /^u/i, + /^a/i, + /^a/i, + ], + + any: [ + /^urt/i, + /^ots/i, + /^mar/i, + /^api/i, + /^mai/i, + /^eka/i, + /^uzt/i, + /^abu/i, + /^ira/i, + /^urr/i, + /^aza/i, + /^abe/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[iaol]/i, + short: /^(ig|al|as|az|og|or|lr)/i, + abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, + wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i, +}; +const parseDayPatterns = { + narrow: [/^i/i, /^a/i, /^a/i, /^a/i, /^o/i, /^o/i, /^l/i], + short: [/^ig/i, /^al/i, /^as/i, /^az/i, /^og/i, /^or/i, /^lr/i], + abbreviated: [/^iga/i, /^ast/i, /^ast/i, /^ast/i, /^ost/i, /^ost/i, /^lar/i], + + wide: [ + /^igandea/i, + /^astelehena/i, + /^asteartea/i, + /^asteazkena/i, + /^osteguna/i, + /^ostirala/i, + /^larunbata/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, + any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^a/i, + pm: /^p/i, + midnight: /^ge/i, + noon: /^eg/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i, + }, + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^gauerdia/i, + noon: /^eguerdia/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "wide", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/eu/cdn.js b/node_modules/date-fns/locale/eu/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..606c4acd2fb73cd1a19ed56973e1cb2011192b09 --- /dev/null +++ b/node_modules/date-fns/locale/eu/cdn.js @@ -0,0 +1,618 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/eu/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "segundo bat baino gutxiago", + other: "{{count}} segundo baino gutxiago" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundo" + }, + halfAMinute: "minutu erdi", + lessThanXMinutes: { + one: "minutu bat baino gutxiago", + other: "{{count}} minutu baino gutxiago" + }, + xMinutes: { + one: "1 minutu", + other: "{{count}} minutu" + }, + aboutXHours: { + one: "1 ordu gutxi gorabehera", + other: "{{count}} ordu gutxi gorabehera" + }, + xHours: { + one: "1 ordu", + other: "{{count}} ordu" + }, + xDays: { + one: "1 egun", + other: "{{count}} egun" + }, + aboutXWeeks: { + one: "aste 1 inguru", + other: "{{count}} aste inguru" + }, + xWeeks: { + one: "1 aste", + other: "{{count}} astean" + }, + aboutXMonths: { + one: "1 hilabete gutxi gorabehera", + other: "{{count}} hilabete gutxi gorabehera" + }, + xMonths: { + one: "1 hilabete", + other: "{{count}} hilabete" + }, + aboutXYears: { + one: "1 urte gutxi gorabehera", + other: "{{count}} urte gutxi gorabehera" + }, + xYears: { + one: "1 urte", + other: "{{count}} urte" + }, + overXYears: { + one: "1 urte baino gehiago", + other: "{{count}} urte baino gehiago" + }, + almostXYears: { + one: "ia 1 urte", + other: "ia {{count}} urte" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "en " + result;else + return "duela " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, y'ko' MMMM'ren' d'a' y'ren'", + long: "y'ko' MMMM'ren' d'a'", + medium: "y MMM d", + short: "yy/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'tan' {{time}}", + long: "{{date}} 'tan' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/eu/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'joan den' eeee, LT", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P" +}; +var formatRelativeLocalePlural = { + lastWeek: "'joan den' eeee, p", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P" +}; +var formatRelative = function formatRelative(token, date) { + if (date.getHours() !== 1) return formatRelativeLocalePlural[token]; + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/eu/_lib/localize.js +var eraValues = { + narrow: ["k.a.", "k.o."], + abbreviated: ["k.a.", "k.o."], + wide: ["kristo aurretik", "kristo ondoren"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1H", + "2H", + "3H", + "4H"], + + wide: [ + "1. hiruhilekoa", + "2. hiruhilekoa", + "3. hiruhilekoa", + "4. hiruhilekoa"] + +}; +var monthValues = { + narrow: [ + "u", + "o", + "m", + "a", + "m", + "e", + "u", + "a", + "i", + "u", + "a", + "a"], + + abbreviated: [ + "urt", + "ots", + "mar", + "api", + "mai", + "eka", + "uzt", + "abu", + "ira", + "urr", + "aza", + "abe"], + + wide: [ + "urtarrila", + "otsaila", + "martxoa", + "apirila", + "maiatza", + "ekaina", + "uztaila", + "abuztua", + "iraila", + "urria", + "azaroa", + "abendua"] + +}; +var dayValues = { + narrow: [ + "i", + "a", + "a", + "a", + "o", + "o", + "l"], + + short: [ + "ig", + "al", + "as", + "az", + "og", + "or", + "lr"], + + abbreviated: [ + "iga", + "ast", + "ast", + "ast", + "ost", + "ost", + "lar"], + + wide: [ + "igandea", + "astelehena", + "asteartea", + "asteazkena", + "osteguna", + "ostirala", + "larunbata"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/eu.js +/** +* @category Locales +* @summary Basque locale. +* @language Basque +* @iso-639-2 eus +* @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) +*/ +var eu = { + code: "eu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(.)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(k.a.|k.o.)/i, + abbreviated: /^(k.a.|k.o.)/i, + wide: /^(kristo aurretik|kristo ondoren)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/^k.a./i, /^k.o./i], + abbreviated: [/^(k.a.)/i, /^(k.o.)/i], + wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i] + }, + defaultParseWidth: "wide" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]H/i, + wide: /^[1234](.)? hiruhilekoa/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[uomaei]/i, + abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, + wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^u/i, + /^o/i, + /^m/i, + /^a/i, + /^m/i, + /^e/i, + /^u/i, + /^a/i, + /^i/i, + /^u/i, + /^a/i, + /^a/i], + + any: [ + /^urt/i, + /^ots/i, + /^mar/i, + /^api/i, + /^mai/i, + /^eka/i, + /^uzt/i, + /^abu/i, + /^ira/i, + /^urr/i, + /^aza/i, + /^abe/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[iaol]/i, + short: /^(ig|al|as|az|og|or|lr)/i, + abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, + wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^i/i, + /^a/i, + /^a/i, + /^a/i, + /^o/i, + /^o/i, + /^l/i], + + short: [ + /^ig/i, + /^al/i, + /^as/i, + /^az/i, + /^og/i, + /^or/i, + /^lr/i], + + abbreviated: [ + /^iga/i, + /^ast/i, + /^ast/i, + /^ast/i, + /^ost/i, + /^ost/i, + /^lar/i], + + wide: [ + /^igandea/i, + /^astelehena/i, + /^asteartea/i, + /^asteazkena/i, + /^osteguna/i, + /^ostirala/i, + /^larunbata/i] + + }, + defaultParseWidth: "wide" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, + any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i + }, + defaultMatchWidth: "any", + parsePatterns: { + narrow: { + am: /^a/i, + pm: /^p/i, + midnight: /^ge/i, + noon: /^eg/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i + }, + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^gauerdia/i, + noon: /^eguerdia/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i + } + }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/eu/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + eu: eu }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/cdn.min.js b/node_modules/date-fns/locale/eu/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..7ca1856efa75b4223a42af185074947828f58076 --- /dev/null +++ b/node_modules/date-fns/locale/eu/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`en `+r:`duela `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, y'ko' MMMM'ren' d'a' y'ren'`,long:`y'ko' MMMM'ren' d'a'`,medium:`y MMM d`,short:`yy/MM/dd`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'tan' {{time}}`,long:`{{date}} 'tan' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'joan den' eeee, LT`,yesterday:`'atzo,' p`,today:`'gaur,' p`,tomorrow:`'bihar,' p`,nextWeek:`eeee, p`,other:`P`},d={lastWeek:`'joan den' eeee, p`,yesterday:`'atzo,' p`,today:`'gaur,' p`,tomorrow:`'bihar,' p`,nextWeek:`eeee, p`,other:`P`},f=function(e,t){return t.getHours()===1?u[e]:d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`.`},era:p({values:{narrow:[`k.a.`,`k.o.`],abbreviated:[`k.a.`,`k.o.`],wide:[`kristo aurretik`,`kristo ondoren`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1H`,`2H`,`3H`,`4H`],wide:[`1. hiruhilekoa`,`2. hiruhilekoa`,`3. hiruhilekoa`,`4. hiruhilekoa`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`u`,`o`,`m`,`a`,`m`,`e`,`u`,`a`,`i`,`u`,`a`,`a`],abbreviated:[`urt`,`ots`,`mar`,`api`,`mai`,`eka`,`uzt`,`abu`,`ira`,`urr`,`aza`,`abe`],wide:[`urtarrila`,`otsaila`,`martxoa`,`apirila`,`maiatza`,`ekaina`,`uztaila`,`abuztua`,`iraila`,`urria`,`azaroa`,`abendua`]},defaultWidth:`wide`}),day:p({values:{narrow:[`i`,`a`,`a`,`a`,`o`,`o`,`l`],short:[`ig`,`al`,`as`,`az`,`og`,`or`,`lr`],abbreviated:[`iga`,`ast`,`ast`,`ast`,`ost`,`ost`,`lar`],wide:[`igandea`,`astelehena`,`asteartea`,`asteazkena`,`osteguna`,`ostirala`,`larunbata`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`a`,pm:`p`,midnight:`ge`,noon:`eg`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`ge`,noon:`eg`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`eu`,formatDistance:s,formatLong:l,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(k.a.|k.o.)/i,abbreviated:/^(k.a.|k.o.)/i,wide:/^(kristo aurretik|kristo ondoren)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^k.a./i,/^k.o./i],abbreviated:[/^(k.a.)/i,/^(k.o.)/i],wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i]},defaultParseWidth:`wide`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]H/i,wide:/^[1234](.)? hiruhilekoa/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^[uomaei]/i,abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i,wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^u/i,/^o/i,/^m/i,/^a/i,/^m/i,/^e/i,/^u/i,/^a/i,/^i/i,/^u/i,/^a/i,/^a/i],any:[/^urt/i,/^ots/i,/^mar/i,/^api/i,/^mai/i,/^eka/i,/^uzt/i,/^abu/i,/^ira/i,/^urr/i,/^aza/i,/^abe/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[iaol]/i,short:/^(ig|al|as|az|og|or|lr)/i,abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i,wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i/i,/^a/i,/^a/i,/^a/i,/^o/i,/^o/i,/^l/i],short:[/^ig/i,/^al/i,/^as/i,/^az/i,/^og/i,/^or/i,/^lr/i],abbreviated:[/^iga/i,/^ast/i,/^ast/i,/^ast/i,/^ost/i,/^ost/i,/^lar/i],wide:[/^igandea/i,/^astelehena/i,/^asteartea/i,/^asteazkena/i,/^osteguna/i,/^ostirala/i,/^larunbata/i]},defaultParseWidth:`wide`}),dayPeriod:h({matchPatterns:{narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i,any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^a/i,pm:/^p/i,midnight:/^ge/i,noon:/^eg/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i},any:{am:/^a/i,pm:/^p/i,midnight:/^gauerdia/i,noon:/^eguerdia/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{eu:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR.cjs b/node_modules/date-fns/locale/fa-IR.cjs new file mode 100644 index 0000000000000000000000000000000000000000..cb1944bd32091c2b51ed49b42340a4eb114f2f88 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.faIR = void 0; +var _index = require("./fa-IR/_lib/formatDistance.cjs"); +var _index2 = require("./fa-IR/_lib/formatLong.cjs"); +var _index3 = require("./fa-IR/_lib/formatRelative.cjs"); +var _index4 = require("./fa-IR/_lib/localize.cjs"); +var _index5 = require("./fa-IR/_lib/match.cjs"); + +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +const faIR = (exports.faIR = { + code: "fa-IR", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 6 /* Saturday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/fa-IR.d.cts b/node_modules/date-fns/locale/fa-IR.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..9429c0aa6ef8dbe1f7f8a7fe4cdce4a1b4de5643 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +export declare const faIR: Locale; diff --git a/node_modules/date-fns/locale/fa-IR.d.ts b/node_modules/date-fns/locale/fa-IR.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9429c0aa6ef8dbe1f7f8a7fe4cdce4a1b4de5643 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +export declare const faIR: Locale; diff --git a/node_modules/date-fns/locale/fa-IR.js b/node_modules/date-fns/locale/fa-IR.js new file mode 100644 index 0000000000000000000000000000000000000000..8878e0775ac7958439db426d1ae6597056aa9ddb --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./fa-IR/_lib/formatDistance.js"; +import { formatLong } from "./fa-IR/_lib/formatLong.js"; +import { formatRelative } from "./fa-IR/_lib/formatRelative.js"; +import { localize } from "./fa-IR/_lib/localize.js"; +import { match } from "./fa-IR/_lib/match.js"; + +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +export const faIR = { + code: "fa-IR", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 6 /* Saturday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default faIR; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.cjs b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..5d990d7d1af5ff2825be10ba707fb24329e0dfc2 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "کمتر از یک ثانیه", + other: "کمتر از {{count}} ثانیه", + }, + + xSeconds: { + one: "1 ثانیه", + other: "{{count}} ثانیه", + }, + + halfAMinute: "نیم دقیقه", + + lessThanXMinutes: { + one: "کمتر از یک دقیقه", + other: "کمتر از {{count}} دقیقه", + }, + + xMinutes: { + one: "1 دقیقه", + other: "{{count}} دقیقه", + }, + + aboutXHours: { + one: "حدود 1 ساعت", + other: "حدود {{count}} ساعت", + }, + + xHours: { + one: "1 ساعت", + other: "{{count}} ساعت", + }, + + xDays: { + one: "1 روز", + other: "{{count}} روز", + }, + + aboutXWeeks: { + one: "حدود 1 هفته", + other: "حدود {{count}} هفته", + }, + + xWeeks: { + one: "1 هفته", + other: "{{count}} هفته", + }, + + aboutXMonths: { + one: "حدود 1 ماه", + other: "حدود {{count}} ماه", + }, + + xMonths: { + one: "1 ماه", + other: "{{count}} ماه", + }, + + aboutXYears: { + one: "حدود 1 سال", + other: "حدود {{count}} سال", + }, + + xYears: { + one: "1 سال", + other: "{{count}} سال", + }, + + overXYears: { + one: "بیشتر از 1 سال", + other: "بیشتر از {{count}} سال", + }, + + almostXYears: { + one: "نزدیک 1 سال", + other: "نزدیک {{count}} سال", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "در " + result; + } else { + return result + " قبل"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.js b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..a76f518c708846928472ed5ae8cb9a6254d1ea8d --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "کمتر از یک ثانیه", + other: "کمتر از {{count}} ثانیه", + }, + + xSeconds: { + one: "1 ثانیه", + other: "{{count}} ثانیه", + }, + + halfAMinute: "نیم دقیقه", + + lessThanXMinutes: { + one: "کمتر از یک دقیقه", + other: "کمتر از {{count}} دقیقه", + }, + + xMinutes: { + one: "1 دقیقه", + other: "{{count}} دقیقه", + }, + + aboutXHours: { + one: "حدود 1 ساعت", + other: "حدود {{count}} ساعت", + }, + + xHours: { + one: "1 ساعت", + other: "{{count}} ساعت", + }, + + xDays: { + one: "1 روز", + other: "{{count}} روز", + }, + + aboutXWeeks: { + one: "حدود 1 هفته", + other: "حدود {{count}} هفته", + }, + + xWeeks: { + one: "1 هفته", + other: "{{count}} هفته", + }, + + aboutXMonths: { + one: "حدود 1 ماه", + other: "حدود {{count}} ماه", + }, + + xMonths: { + one: "1 ماه", + other: "{{count}} ماه", + }, + + aboutXYears: { + one: "حدود 1 سال", + other: "حدود {{count}} سال", + }, + + xYears: { + one: "1 سال", + other: "{{count}} سال", + }, + + overXYears: { + one: "بیشتر از 1 سال", + other: "بیشتر از {{count}} سال", + }, + + almostXYears: { + one: "نزدیک 1 سال", + other: "نزدیک {{count}} سال", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "در " + result; + } else { + return result + " قبل"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.cjs b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7bc97c6924fa345c7675cc96b9f89e925e823600 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'در' {{time}}", + long: "{{date}} 'در' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.js b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..9dbbab8e3612eeed948f511d915df712486c5eba --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'در' {{time}}", + long: "{{date}} 'در' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6547e44096c604d5a026d1b39e22854463fe8643 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.js b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..6d8db46bdd6e2762292a8c24d1748e870e02ed74 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.cjs b/node_modules/date-fns/locale/fa-IR/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..44aa9d6ec18523e9715253a8884a7756c667a641 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.cjs @@ -0,0 +1,170 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل از میلاد", "بعد از میلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["س‌م1", "س‌م2", "س‌م3", "س‌م4"], + wide: ["سه‌ماهه 1", "سه‌ماهه 2", "سه‌ماهه 3", "سه‌ماهه 4"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["ژ", "ف", "م", "آ", "م", "ج", "ج", "آ", "س", "ا", "ن", "د"], + abbreviated: [ + "ژانـ", + "فور", + "مارس", + "آپر", + "می", + "جون", + "جولـ", + "آگو", + "سپتـ", + "اکتـ", + "نوامـ", + "دسامـ", + ], + + wide: [ + "ژانویه", + "فوریه", + "مارس", + "آپریل", + "می", + "جون", + "جولای", + "آگوست", + "سپتامبر", + "اکتبر", + "نوامبر", + "دسامبر", + ], +}; + +const dayValues = { + narrow: ["ی", "د", "س", "چ", "پ", "ج", "ش"], + short: ["1ش", "2ش", "3ش", "4ش", "5ش", "ج", "ش"], + abbreviated: [ + "یکشنبه", + "دوشنبه", + "سه‌شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه", + ], + + wide: ["یکشنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"], +}; + +const dayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش", + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش", + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.js b/node_modules/date-fns/locale/fa-IR/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..fee2f6f4fc0503474c594a58d47e801cda51073a --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.js @@ -0,0 +1,168 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل از میلاد", "بعد از میلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["س‌م1", "س‌م2", "س‌م3", "س‌م4"], + wide: ["سه‌ماهه 1", "سه‌ماهه 2", "سه‌ماهه 3", "سه‌ماهه 4"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["ژ", "ف", "م", "آ", "م", "ج", "ج", "آ", "س", "ا", "ن", "د"], + abbreviated: [ + "ژانـ", + "فور", + "مارس", + "آپر", + "می", + "جون", + "جولـ", + "آگو", + "سپتـ", + "اکتـ", + "نوامـ", + "دسامـ", + ], + + wide: [ + "ژانویه", + "فوریه", + "مارس", + "آپریل", + "می", + "جون", + "جولای", + "آگوست", + "سپتامبر", + "اکتبر", + "نوامبر", + "دسامبر", + ], +}; + +const dayValues = { + narrow: ["ی", "د", "س", "چ", "پ", "ج", "ش"], + short: ["1ش", "2ش", "3ش", "4ش", "5ش", "ج", "ش"], + abbreviated: [ + "یکشنبه", + "دوشنبه", + "سه‌شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه", + ], + + wide: ["یکشنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"], +}; + +const dayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش", + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش", + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.cjs b/node_modules/date-fns/locale/fa-IR/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..87dcae08a10faf3534d5e011385eb255774ad019 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.cjs @@ -0,0 +1,145 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, + wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^س‌م[1234]/i, + wide: /^سه‌ماهه [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[جژفمآاماسند]/i, + abbreviated: + /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, + wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^(ژ|ج)/i, + /^ف/i, + /^م/i, + /^(آ|ا)/i, + /^م/i, + /^(ژ|ج)/i, + /^(ج|ژ)/i, + /^(آ|ا)/i, + /^س/i, + /^ا/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^ژا/i, + /^ف/i, + /^ما/i, + /^آپ/i, + /^(می|مه)/i, + /^(ژوئن|جون)/i, + /^(ژوئی|جول)/i, + /^(اوت|آگ)/i, + /^س/i, + /^(اوک|اک)/i, + /^ن/i, + /^د/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[شیدسچپج]/i, + short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, + abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, + wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, +}; +const parseDayPatterns = { + narrow: [/^ی/i, /^دو/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i], + any: [ + /^(ی|1ش|یکشنبه)/i, + /^(د|2ش|دوشنبه)/i, + /^(س|3ش|سه‌شنبه)/i, + /^(چ|4ش|چهارشنبه)/i, + /^(پ|5ش|پنجشنبه)/i, + /^(ج|جمعه)/i, + /^(ش|شنبه)/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, + abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, + wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(ق|ق.ظ.|قبل‌ازظهر)/i, + pm: /^(ب|ب.ظ.|بعدازظهر)/i, + midnight: /^(‌نیمه‌شب|ن)/i, + noon: /^(ظ|ظهر)/i, + morning: /(ص|صبح)/i, + afternoon: /(ب|ب.ظ.|بعدازظهر)/i, + evening: /(ع|عصر)/i, + night: /(ش|شب)/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.js b/node_modules/date-fns/locale/fa-IR/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..e71651016e4042d73fea80e2c310b6c426c82c32 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.js @@ -0,0 +1,142 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, + wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^س‌م[1234]/i, + wide: /^سه‌ماهه [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[جژفمآاماسند]/i, + abbreviated: + /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, + wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^(ژ|ج)/i, + /^ف/i, + /^م/i, + /^(آ|ا)/i, + /^م/i, + /^(ژ|ج)/i, + /^(ج|ژ)/i, + /^(آ|ا)/i, + /^س/i, + /^ا/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^ژا/i, + /^ف/i, + /^ما/i, + /^آپ/i, + /^(می|مه)/i, + /^(ژوئن|جون)/i, + /^(ژوئی|جول)/i, + /^(اوت|آگ)/i, + /^س/i, + /^(اوک|اک)/i, + /^ن/i, + /^د/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[شیدسچپج]/i, + short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, + abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, + wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, +}; +const parseDayPatterns = { + narrow: [/^ی/i, /^دو/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i], + any: [ + /^(ی|1ش|یکشنبه)/i, + /^(د|2ش|دوشنبه)/i, + /^(س|3ش|سه‌شنبه)/i, + /^(چ|4ش|چهارشنبه)/i, + /^(پ|5ش|پنجشنبه)/i, + /^(ج|جمعه)/i, + /^(ش|شنبه)/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, + abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, + wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(ق|ق.ظ.|قبل‌ازظهر)/i, + pm: /^(ب|ب.ظ.|بعدازظهر)/i, + midnight: /^(‌نیمه‌شب|ن)/i, + noon: /^(ظ|ظهر)/i, + morning: /(ص|صبح)/i, + afternoon: /(ب|ب.ظ.|بعدازظهر)/i, + evening: /(ع|عصر)/i, + night: /(ش|شب)/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/fa-IR/cdn.js b/node_modules/date-fns/locale/fa-IR/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..3663d1d13560c0d8b12e069e46a8edea2ba08408 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/cdn.js @@ -0,0 +1,574 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fa-IR/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "کمتر از یک ثانیه", + other: "کمتر از {{count}} ثانیه" + }, + xSeconds: { + one: "1 ثانیه", + other: "{{count}} ثانیه" + }, + halfAMinute: "نیم دقیقه", + lessThanXMinutes: { + one: "کمتر از یک دقیقه", + other: "کمتر از {{count}} دقیقه" + }, + xMinutes: { + one: "1 دقیقه", + other: "{{count}} دقیقه" + }, + aboutXHours: { + one: "حدود 1 ساعت", + other: "حدود {{count}} ساعت" + }, + xHours: { + one: "1 ساعت", + other: "{{count}} ساعت" + }, + xDays: { + one: "1 روز", + other: "{{count}} روز" + }, + aboutXWeeks: { + one: "حدود 1 هفته", + other: "حدود {{count}} هفته" + }, + xWeeks: { + one: "1 هفته", + other: "{{count}} هفته" + }, + aboutXMonths: { + one: "حدود 1 ماه", + other: "حدود {{count}} ماه" + }, + xMonths: { + one: "1 ماه", + other: "{{count}} ماه" + }, + aboutXYears: { + one: "حدود 1 سال", + other: "حدود {{count}} سال" + }, + xYears: { + one: "1 سال", + other: "{{count}} سال" + }, + overXYears: { + one: "بیشتر از 1 سال", + other: "بیشتر از {{count}} سال" + }, + almostXYears: { + one: "نزدیک 1 سال", + other: "نزدیک {{count}} سال" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "در " + result;else + return result + " قبل"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "yyyy/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'در' {{time}}", + long: "{{date}} 'در' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fa-IR/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fa-IR/_lib/localize.js +var eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل از میلاد", "بعد از میلاد"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "س‌م1", + "س‌م2", + "س‌م3", + "س‌م4"], + + wide: [ + "سه‌ماهه 1", + "سه‌ماهه 2", + "سه‌ماهه 3", + "سه‌ماهه 4"] + +}; +var monthValues = { + narrow: [ + "ژ", + "ف", + "م", + "آ", + "م", + "ج", + "ج", + "آ", + "س", + "ا", + "ن", + "د"], + + abbreviated: [ + "ژانـ", + "فور", + "مارس", + "آپر", + "می", + "جون", + "جولـ", + "آگو", + "سپتـ", + "اکتـ", + "نوامـ", + "دسامـ"], + + wide: [ + "ژانویه", + "فوریه", + "مارس", + "آپریل", + "می", + "جون", + "جولای", + "آگوست", + "سپتامبر", + "اکتبر", + "نوامبر", + "دسامبر"] + +}; +var dayValues = { + narrow: [ + "ی", + "د", + "س", + "چ", + "پ", + "ج", + "ش"], + + short: [ + "1ش", + "2ش", + "3ش", + "4ش", + "5ش", + "ج", + "ش"], + + abbreviated: [ + "یکشنبه", + "دوشنبه", + "سه‌شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه"], + + wide: [ + "یکشنبه", + "دوشنبه", + "سه‌شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه"] + +}; +var dayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش" + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب" + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش" + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب" + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/fa-IR.js +/** +* @category Locales +* @summary Persian/Farsi locale (Iran). +* @language Persian +* @iso-639-2 ira +* @author Morteza Ziyae [@mort3za](https://github.com/mort3za) +*/ +var faIR = { + code: "fa-IR", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, + wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^قبل/i, /^بعد/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^س‌م[1234]/i, + wide: /^سه‌ماهه [1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[جژفمآاماسند]/i, + abbreviated: /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, + wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^(ژ|ج)/i, + /^ف/i, + /^م/i, + /^(آ|ا)/i, + /^م/i, + /^(ژ|ج)/i, + /^(ج|ژ)/i, + /^(آ|ا)/i, + /^س/i, + /^ا/i, + /^ن/i, + /^د/i], + + any: [ + /^ژا/i, + /^ف/i, + /^ما/i, + /^آپ/i, + /^(می|مه)/i, + /^(ژوئن|جون)/i, + /^(ژوئی|جول)/i, + /^(اوت|آگ)/i, + /^س/i, + /^(اوک|اک)/i, + /^ن/i, + /^د/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[شیدسچپج]/i, + short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, + abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, + wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ی/i, + /^دو/i, + /^س/i, + /^چ/i, + /^پ/i, + /^ج/i, + /^ش/i], + + any: [ + /^(ی|1ش|یکشنبه)/i, + /^(د|2ش|دوشنبه)/i, + /^(س|3ش|سه‌شنبه)/i, + /^(چ|4ش|چهارشنبه)/i, + /^(پ|5ش|پنجشنبه)/i, + /^(ج|جمعه)/i, + /^(ش|شنبه)/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, + abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, + wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^(ق|ق.ظ.|قبل‌ازظهر)/i, + pm: /^(ب|ب.ظ.|بعدازظهر)/i, + midnight: /^(‌نیمه‌شب|ن)/i, + noon: /^(ظ|ظهر)/i, + morning: /(ص|صبح)/i, + afternoon: /(ب|ب.ظ.|بعدازظهر)/i, + evening: /(ع|عصر)/i, + night: /(ش|شب)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 6, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fa-IR/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + faIR: faIR }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/cdn.min.js b/node_modules/date-fns/locale/fa-IR/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..0892660b5bce513684bd92944feb4f900223b3af --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`در `+r:r+` قبل`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'در' {{time}}`,long:`{{date}} 'در' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'گذشته در' p`,yesterday:`'دیروز در' p`,today:`'امروز در' p`,tomorrow:`'فردا در' p`,nextWeek:`eeee 'در' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل از میلاد`,`بعد از میلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`س‌م1`,`س‌م2`,`س‌م3`,`س‌م4`],wide:[`سه‌ماهه 1`,`سه‌ماهه 2`,`سه‌ماهه 3`,`سه‌ماهه 4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ژ`,`ف`,`م`,`آ`,`م`,`ج`,`ج`,`آ`,`س`,`ا`,`ن`,`د`],abbreviated:[`ژانـ`,`فور`,`مارس`,`آپر`,`می`,`جون`,`جولـ`,`آگو`,`سپتـ`,`اکتـ`,`نوامـ`,`دسامـ`],wide:[`ژانویه`,`فوریه`,`مارس`,`آپریل`,`می`,`جون`,`جولای`,`آگوست`,`سپتامبر`,`اکتبر`,`نوامبر`,`دسامبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ی`,`د`,`س`,`چ`,`پ`,`ج`,`ش`],short:[`1ش`,`2ش`,`3ش`,`4ش`,`5ش`,`ج`,`ش`],abbreviated:[`یکشنبه`,`دوشنبه`,`سه‌شنبه`,`چهارشنبه`,`پنجشنبه`,`جمعه`,`شنبه`],wide:[`یکشنبه`,`دوشنبه`,`سه‌شنبه`,`چهارشنبه`,`پنجشنبه`,`جمعه`,`شنبه`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ق`,pm:`ب`,midnight:`ن`,noon:`ظ`,morning:`ص`,afternoon:`ب.ظ.`,evening:`ع`,night:`ش`},abbreviated:{am:`ق.ظ.`,pm:`ب.ظ.`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`},wide:{am:`قبل‌ازظهر`,pm:`بعدازظهر`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ق`,pm:`ب`,midnight:`ن`,noon:`ظ`,morning:`ص`,afternoon:`ب.ظ.`,evening:`ع`,night:`ش`},abbreviated:{am:`ق.ظ.`,pm:`ب.ظ.`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`},wide:{am:`قبل‌ازظهر`,pm:`بعدازظهر`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`fa-IR`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:6,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{faIR:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi.cjs b/node_modules/date-fns/locale/fi.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6c7ee20535d46d3076f36088aeebfa5458e37dd2 --- /dev/null +++ b/node_modules/date-fns/locale/fi.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.fi = void 0; +var _index = require("./fi/_lib/formatDistance.cjs"); +var _index2 = require("./fi/_lib/formatLong.cjs"); +var _index3 = require("./fi/_lib/formatRelative.cjs"); +var _index4 = require("./fi/_lib/localize.cjs"); +var _index5 = require("./fi/_lib/match.cjs"); + +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +const fi = (exports.fi = { + code: "fi", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/fi.d.cts b/node_modules/date-fns/locale/fi.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9dc39b1f73330d824831c365a5a8ae33da59b2e --- /dev/null +++ b/node_modules/date-fns/locale/fi.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +export declare const fi: Locale; diff --git a/node_modules/date-fns/locale/fi.d.ts b/node_modules/date-fns/locale/fi.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9dc39b1f73330d824831c365a5a8ae33da59b2e --- /dev/null +++ b/node_modules/date-fns/locale/fi.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +export declare const fi: Locale; diff --git a/node_modules/date-fns/locale/fi.js b/node_modules/date-fns/locale/fi.js new file mode 100644 index 0000000000000000000000000000000000000000..25cf25279659ca8655063b568af88d019192daee --- /dev/null +++ b/node_modules/date-fns/locale/fi.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./fi/_lib/formatDistance.js"; +import { formatLong } from "./fi/_lib/formatLong.js"; +import { formatRelative } from "./fi/_lib/formatRelative.js"; +import { localize } from "./fi/_lib/localize.js"; +import { match } from "./fi/_lib/match.js"; + +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +export const fi = { + code: "fi", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default fi; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.cjs b/node_modules/date-fns/locale/fi/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..53a7faf16960c76b33d26c0ccb8bf381008e3ea5 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.cjs @@ -0,0 +1,147 @@ +"use strict"; +exports.formatDistance = void 0; + +function futureSeconds(text) { + return text.replace(/sekuntia?/, "sekunnin"); +} + +function futureMinutes(text) { + return text.replace(/minuuttia?/, "minuutin"); +} + +function futureHours(text) { + return text.replace(/tuntia?/, "tunnin"); +} + +function futureDays(text) { + return text.replace(/päivää?/, "päivän"); +} + +function futureWeeks(text) { + return text.replace(/(viikko|viikkoa)/, "viikon"); +} + +function futureMonths(text) { + return text.replace(/(kuukausi|kuukautta)/, "kuukauden"); +} + +function futureYears(text) { + return text.replace(/(vuosi|vuotta)/, "vuoden"); +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "alle sekunti", + other: "alle {{count}} sekuntia", + futureTense: futureSeconds, + }, + + xSeconds: { + one: "sekunti", + other: "{{count}} sekuntia", + futureTense: futureSeconds, + }, + + halfAMinute: { + one: "puoli minuuttia", + other: "puoli minuuttia", + futureTense: (_text) => "puolen minuutin", + }, + + lessThanXMinutes: { + one: "alle minuutti", + other: "alle {{count}} minuuttia", + futureTense: futureMinutes, + }, + + xMinutes: { + one: "minuutti", + other: "{{count}} minuuttia", + futureTense: futureMinutes, + }, + + aboutXHours: { + one: "noin tunti", + other: "noin {{count}} tuntia", + futureTense: futureHours, + }, + + xHours: { + one: "tunti", + other: "{{count}} tuntia", + futureTense: futureHours, + }, + + xDays: { + one: "päivä", + other: "{{count}} päivää", + futureTense: futureDays, + }, + + aboutXWeeks: { + one: "noin viikko", + other: "noin {{count}} viikkoa", + futureTense: futureWeeks, + }, + + xWeeks: { + one: "viikko", + other: "{{count}} viikkoa", + futureTense: futureWeeks, + }, + + aboutXMonths: { + one: "noin kuukausi", + other: "noin {{count}} kuukautta", + futureTense: futureMonths, + }, + + xMonths: { + one: "kuukausi", + other: "{{count}} kuukautta", + futureTense: futureMonths, + }, + + aboutXYears: { + one: "noin vuosi", + other: "noin {{count}} vuotta", + futureTense: futureYears, + }, + + xYears: { + one: "vuosi", + other: "{{count}} vuotta", + futureTense: futureYears, + }, + + overXYears: { + one: "yli vuosi", + other: "yli {{count}} vuotta", + futureTense: futureYears, + }, + + almostXYears: { + one: "lähes vuosi", + other: "lähes {{count}} vuotta", + futureTense: futureYears, + }, +}; + +const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + const result = + count === 1 + ? tokenValue.one + : tokenValue.other.replace("{{count}}", String(count)); + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return tokenValue.futureTense(result) + " kuluttua"; + } else { + return result + " sitten"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.js b/node_modules/date-fns/locale/fi/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..4791da95ea9d6c52ac811662833cca36e0800f5e --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.js @@ -0,0 +1,143 @@ +function futureSeconds(text) { + return text.replace(/sekuntia?/, "sekunnin"); +} + +function futureMinutes(text) { + return text.replace(/minuuttia?/, "minuutin"); +} + +function futureHours(text) { + return text.replace(/tuntia?/, "tunnin"); +} + +function futureDays(text) { + return text.replace(/päivää?/, "päivän"); +} + +function futureWeeks(text) { + return text.replace(/(viikko|viikkoa)/, "viikon"); +} + +function futureMonths(text) { + return text.replace(/(kuukausi|kuukautta)/, "kuukauden"); +} + +function futureYears(text) { + return text.replace(/(vuosi|vuotta)/, "vuoden"); +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "alle sekunti", + other: "alle {{count}} sekuntia", + futureTense: futureSeconds, + }, + + xSeconds: { + one: "sekunti", + other: "{{count}} sekuntia", + futureTense: futureSeconds, + }, + + halfAMinute: { + one: "puoli minuuttia", + other: "puoli minuuttia", + futureTense: (_text) => "puolen minuutin", + }, + + lessThanXMinutes: { + one: "alle minuutti", + other: "alle {{count}} minuuttia", + futureTense: futureMinutes, + }, + + xMinutes: { + one: "minuutti", + other: "{{count}} minuuttia", + futureTense: futureMinutes, + }, + + aboutXHours: { + one: "noin tunti", + other: "noin {{count}} tuntia", + futureTense: futureHours, + }, + + xHours: { + one: "tunti", + other: "{{count}} tuntia", + futureTense: futureHours, + }, + + xDays: { + one: "päivä", + other: "{{count}} päivää", + futureTense: futureDays, + }, + + aboutXWeeks: { + one: "noin viikko", + other: "noin {{count}} viikkoa", + futureTense: futureWeeks, + }, + + xWeeks: { + one: "viikko", + other: "{{count}} viikkoa", + futureTense: futureWeeks, + }, + + aboutXMonths: { + one: "noin kuukausi", + other: "noin {{count}} kuukautta", + futureTense: futureMonths, + }, + + xMonths: { + one: "kuukausi", + other: "{{count}} kuukautta", + futureTense: futureMonths, + }, + + aboutXYears: { + one: "noin vuosi", + other: "noin {{count}} vuotta", + futureTense: futureYears, + }, + + xYears: { + one: "vuosi", + other: "{{count}} vuotta", + futureTense: futureYears, + }, + + overXYears: { + one: "yli vuosi", + other: "yli {{count}} vuotta", + futureTense: futureYears, + }, + + almostXYears: { + one: "lähes vuosi", + other: "lähes {{count}} vuotta", + futureTense: futureYears, + }, +}; + +export const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + const result = + count === 1 + ? tokenValue.one + : tokenValue.other.replace("{{count}}", String(count)); + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return tokenValue.futureTense(result) + " kuluttua"; + } else { + return result + " sitten"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.cjs b/node_modules/date-fns/locale/fi/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a81d23f9f81ae4f08e539cfaa953a9700e085fa9 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "eeee d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "d.M.y", +}; + +const timeFormats = { + full: "HH.mm.ss zzzz", + long: "HH.mm.ss z", + medium: "HH.mm.ss", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'klo' {{time}}", + long: "{{date}} 'klo' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fi/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fi/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.js b/node_modules/date-fns/locale/fi/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..dea5bccf78983a8ebba0c3d6ca249c1142fe0e77 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "eeee d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "d.M.y", +}; + +const timeFormats = { + full: "HH.mm.ss zzzz", + long: "HH.mm.ss z", + medium: "HH.mm.ss", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'klo' {{time}}", + long: "{{date}} 'klo' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fi/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..19a33d673fee07eb8b672bb62be4fae9c96e33f4 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'viime' eeee 'klo' p", + yesterday: "'eilen klo' p", + today: "'tänään klo' p", + tomorrow: "'huomenna klo' p", + nextWeek: "'ensi' eeee 'klo' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.js b/node_modules/date-fns/locale/fi/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..8862d5537eefcee28f636681f6448c08ab57858b --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'viime' eeee 'klo' p", + yesterday: "'eilen klo' p", + today: "'tänään klo' p", + tomorrow: "'huomenna klo' p", + nextWeek: "'ensi' eeee 'klo' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fi/_lib/localize.cjs b/node_modules/date-fns/locale/fi/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ec60285abb6ba713d6cb1a20d5af3fc510763002 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize.cjs @@ -0,0 +1,170 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["eaa.", "jaa."], + abbreviated: ["eaa.", "jaa."], + wide: ["ennen ajanlaskun alkua", "jälkeen ajanlaskun alun"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartaali", "2. kvartaali", "3. kvartaali", "4. kvartaali"], +}; + +const monthValues = { + narrow: ["T", "H", "M", "H", "T", "K", "H", "E", "S", "L", "M", "J"], + abbreviated: [ + "tammi", + "helmi", + "maalis", + "huhti", + "touko", + "kesä", + "heinä", + "elo", + "syys", + "loka", + "marras", + "joulu", + ], + + wide: [ + "tammikuu", + "helmikuu", + "maaliskuu", + "huhtikuu", + "toukokuu", + "kesäkuu", + "heinäkuu", + "elokuu", + "syyskuu", + "lokakuu", + "marraskuu", + "joulukuu", + ], +}; + +const formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: monthValues.abbreviated, + wide: [ + "tammikuuta", + "helmikuuta", + "maaliskuuta", + "huhtikuuta", + "toukokuuta", + "kesäkuuta", + "heinäkuuta", + "elokuuta", + "syyskuuta", + "lokakuuta", + "marraskuuta", + "joulukuuta", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "K", "T", "P", "L"], + short: ["su", "ma", "ti", "ke", "to", "pe", "la"], + abbreviated: ["sunn.", "maan.", "tiis.", "kesk.", "torst.", "perj.", "la"], + + wide: [ + "sunnuntai", + "maanantai", + "tiistai", + "keskiviikko", + "torstai", + "perjantai", + "lauantai", + ], +}; + +const formattingDayValues = { + narrow: dayValues.narrow, + short: dayValues.short, + abbreviated: dayValues.abbreviated, + wide: [ + "sunnuntaina", + "maanantaina", + "tiistaina", + "keskiviikkona", + "torstaina", + "perjantaina", + "lauantaina", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä", + }, + abbreviated: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä", + }, + wide: { + am: "ap", + pm: "ip", + midnight: "keskiyöllä", + noon: "keskipäivällä", + morning: "aamupäivällä", + afternoon: "iltapäivällä", + evening: "illalla", + night: "yöllä", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/fi/_lib/localize.d.cts b/node_modules/date-fns/locale/fi/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fi/_lib/localize.d.ts b/node_modules/date-fns/locale/fi/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fi/_lib/localize.js b/node_modules/date-fns/locale/fi/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..7dfeb435a097f8867cc5cb6c21f5f31ec93f22d7 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize.js @@ -0,0 +1,168 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["eaa.", "jaa."], + abbreviated: ["eaa.", "jaa."], + wide: ["ennen ajanlaskun alkua", "jälkeen ajanlaskun alun"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartaali", "2. kvartaali", "3. kvartaali", "4. kvartaali"], +}; + +const monthValues = { + narrow: ["T", "H", "M", "H", "T", "K", "H", "E", "S", "L", "M", "J"], + abbreviated: [ + "tammi", + "helmi", + "maalis", + "huhti", + "touko", + "kesä", + "heinä", + "elo", + "syys", + "loka", + "marras", + "joulu", + ], + + wide: [ + "tammikuu", + "helmikuu", + "maaliskuu", + "huhtikuu", + "toukokuu", + "kesäkuu", + "heinäkuu", + "elokuu", + "syyskuu", + "lokakuu", + "marraskuu", + "joulukuu", + ], +}; + +const formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: monthValues.abbreviated, + wide: [ + "tammikuuta", + "helmikuuta", + "maaliskuuta", + "huhtikuuta", + "toukokuuta", + "kesäkuuta", + "heinäkuuta", + "elokuuta", + "syyskuuta", + "lokakuuta", + "marraskuuta", + "joulukuuta", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "K", "T", "P", "L"], + short: ["su", "ma", "ti", "ke", "to", "pe", "la"], + abbreviated: ["sunn.", "maan.", "tiis.", "kesk.", "torst.", "perj.", "la"], + + wide: [ + "sunnuntai", + "maanantai", + "tiistai", + "keskiviikko", + "torstai", + "perjantai", + "lauantai", + ], +}; + +const formattingDayValues = { + narrow: dayValues.narrow, + short: dayValues.short, + abbreviated: dayValues.abbreviated, + wide: [ + "sunnuntaina", + "maanantaina", + "tiistaina", + "keskiviikkona", + "torstaina", + "perjantaina", + "lauantaina", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä", + }, + abbreviated: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä", + }, + wide: { + am: "ap", + pm: "ip", + midnight: "keskiyöllä", + noon: "keskipäivällä", + morning: "aamupäivällä", + afternoon: "iltapäivällä", + evening: "illalla", + night: "yöllä", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/fi/_lib/match.cjs b/node_modules/date-fns/locale/fi/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3f1cdd3fd4df80612c1f57c8a5602e6db4bfc21e --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(\.)/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(e|j)/i, + abbreviated: /^(eaa.|jaa.)/i, + wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i, +}; +const parseEraPatterns = { + any: [/^e/i, /^j/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\.? kvartaali/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[thmkeslj]/i, + abbreviated: + /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, + wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i, +}; +const parseMonthPatterns = { + narrow: [ + /^t/i, + /^h/i, + /^m/i, + /^h/i, + /^t/i, + /^k/i, + /^h/i, + /^e/i, + /^s/i, + /^l/i, + /^m/i, + /^j/i, + ], + + any: [ + /^ta/i, + /^hel/i, + /^maa/i, + /^hu/i, + /^to/i, + /^k/i, + /^hei/i, + /^e/i, + /^s/i, + /^l/i, + /^mar/i, + /^j/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtkpl]/i, + short: /^(su|ma|ti|ke|to|pe|la)/i, + abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, + wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^k/i, /^t/i, /^p/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^k/i, /^to/i, /^p/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, + any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ap/i, + pm: /^ip/i, + midnight: /^keskiyö/i, + noon: /^keskipäivä/i, + morning: /aamupäivällä/i, + afternoon: /iltapäivällä/i, + evening: /illalla/i, + night: /yöllä/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/fi/_lib/match.d.cts b/node_modules/date-fns/locale/fi/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fi/_lib/match.d.ts b/node_modules/date-fns/locale/fi/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fi/_lib/match.js b/node_modules/date-fns/locale/fi/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..0c3c0aa89dfdfeb45d438cdf2c8feefa3a97add6 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(e|j)/i, + abbreviated: /^(eaa.|jaa.)/i, + wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i, +}; +const parseEraPatterns = { + any: [/^e/i, /^j/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\.? kvartaali/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[thmkeslj]/i, + abbreviated: + /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, + wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i, +}; +const parseMonthPatterns = { + narrow: [ + /^t/i, + /^h/i, + /^m/i, + /^h/i, + /^t/i, + /^k/i, + /^h/i, + /^e/i, + /^s/i, + /^l/i, + /^m/i, + /^j/i, + ], + + any: [ + /^ta/i, + /^hel/i, + /^maa/i, + /^hu/i, + /^to/i, + /^k/i, + /^hei/i, + /^e/i, + /^s/i, + /^l/i, + /^mar/i, + /^j/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtkpl]/i, + short: /^(su|ma|ti|ke|to|pe|la)/i, + abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, + wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^k/i, /^t/i, /^p/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^k/i, /^to/i, /^p/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, + any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ap/i, + pm: /^ip/i, + midnight: /^keskiyö/i, + noon: /^keskipäivä/i, + morning: /aamupäivällä/i, + afternoon: /iltapäivällä/i, + evening: /illalla/i, + night: /yöllä/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/fi/cdn.js b/node_modules/date-fns/locale/fi/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..e64176053bc701a1261dcaf3f36c0f61bf570b70 --- /dev/null +++ b/node_modules/date-fns/locale/fi/cdn.js @@ -0,0 +1,614 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fi/_lib/formatDistance.js +function futureSeconds(text) { + return text.replace(/sekuntia?/, "sekunnin"); +} +function futureMinutes(text) { + return text.replace(/minuuttia?/, "minuutin"); +} +function futureHours(text) { + return text.replace(/tuntia?/, "tunnin"); +} +function futureDays(text) { + return text.replace(/päivää?/, "päivän"); +} +function futureWeeks(text) { + return text.replace(/(viikko|viikkoa)/, "viikon"); +} +function futureMonths(text) { + return text.replace(/(kuukausi|kuukautta)/, "kuukauden"); +} +function futureYears(text) { + return text.replace(/(vuosi|vuotta)/, "vuoden"); +} +var formatDistanceLocale = { + lessThanXSeconds: { + one: "alle sekunti", + other: "alle {{count}} sekuntia", + futureTense: futureSeconds + }, + xSeconds: { + one: "sekunti", + other: "{{count}} sekuntia", + futureTense: futureSeconds + }, + halfAMinute: { + one: "puoli minuuttia", + other: "puoli minuuttia", + futureTense: function futureTense(_text) {return "puolen minuutin";} + }, + lessThanXMinutes: { + one: "alle minuutti", + other: "alle {{count}} minuuttia", + futureTense: futureMinutes + }, + xMinutes: { + one: "minuutti", + other: "{{count}} minuuttia", + futureTense: futureMinutes + }, + aboutXHours: { + one: "noin tunti", + other: "noin {{count}} tuntia", + futureTense: futureHours + }, + xHours: { + one: "tunti", + other: "{{count}} tuntia", + futureTense: futureHours + }, + xDays: { + one: "päivä", + other: "{{count}} päivää", + futureTense: futureDays + }, + aboutXWeeks: { + one: "noin viikko", + other: "noin {{count}} viikkoa", + futureTense: futureWeeks + }, + xWeeks: { + one: "viikko", + other: "{{count}} viikkoa", + futureTense: futureWeeks + }, + aboutXMonths: { + one: "noin kuukausi", + other: "noin {{count}} kuukautta", + futureTense: futureMonths + }, + xMonths: { + one: "kuukausi", + other: "{{count}} kuukautta", + futureTense: futureMonths + }, + aboutXYears: { + one: "noin vuosi", + other: "noin {{count}} vuotta", + futureTense: futureYears + }, + xYears: { + one: "vuosi", + other: "{{count}} vuotta", + futureTense: futureYears + }, + overXYears: { + one: "yli vuosi", + other: "yli {{count}} vuotta", + futureTense: futureYears + }, + almostXYears: { + one: "lähes vuosi", + other: "lähes {{count}} vuotta", + futureTense: futureYears + } +}; +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + var result = count === 1 ? tokenValue.one : tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return tokenValue.futureTense(result) + " kuluttua";else + return result + " sitten"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "eeee d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "d.M.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH.mm.ss zzzz", + long: "HH.mm.ss z", + medium: "HH.mm.ss", + short: "HH.mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'klo' {{time}}", + long: "{{date}} 'klo' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fi/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'viime' eeee 'klo' p", + yesterday: "'eilen klo' p", + today: "'tänään klo' p", + tomorrow: "'huomenna klo' p", + nextWeek: "'ensi' eeee 'klo' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fi/_lib/localize.js +var eraValues = { + narrow: ["eaa.", "jaa."], + abbreviated: ["eaa.", "jaa."], + wide: ["ennen ajanlaskun alkua", "jälkeen ajanlaskun alun"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. kvartaali", + "2. kvartaali", + "3. kvartaali", + "4. kvartaali"] + +}; +var monthValues = { + narrow: [ + "T", + "H", + "M", + "H", + "T", + "K", + "H", + "E", + "S", + "L", + "M", + "J"], + + abbreviated: [ + "tammi", + "helmi", + "maalis", + "huhti", + "touko", + "kesä", + "heinä", + "elo", + "syys", + "loka", + "marras", + "joulu"], + + wide: [ + "tammikuu", + "helmikuu", + "maaliskuu", + "huhtikuu", + "toukokuu", + "kesäkuu", + "heinäkuu", + "elokuu", + "syyskuu", + "lokakuu", + "marraskuu", + "joulukuu"] + +}; +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: monthValues.abbreviated, + wide: [ + "tammikuuta", + "helmikuuta", + "maaliskuuta", + "huhtikuuta", + "toukokuuta", + "kesäkuuta", + "heinäkuuta", + "elokuuta", + "syyskuuta", + "lokakuuta", + "marraskuuta", + "joulukuuta"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "K", + "T", + "P", + "L"], + + short: [ + "su", + "ma", + "ti", + "ke", + "to", + "pe", + "la"], + + abbreviated: [ + "sunn.", + "maan.", + "tiis.", + "kesk.", + "torst.", + "perj.", + "la"], + + wide: [ + "sunnuntai", + "maanantai", + "tiistai", + "keskiviikko", + "torstai", + "perjantai", + "lauantai"] + +}; +var formattingDayValues = { + narrow: dayValues.narrow, + short: dayValues.short, + abbreviated: dayValues.abbreviated, + wide: [ + "sunnuntaina", + "maanantaina", + "tiistaina", + "keskiviikkona", + "torstaina", + "perjantaina", + "lauantaina"] + +}; +var dayPeriodValues = { + narrow: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä" + }, + abbreviated: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä" + }, + wide: { + am: "ap", + pm: "ip", + midnight: "keskiyöllä", + noon: "keskipäivällä", + morning: "aamupäivällä", + afternoon: "iltapäivällä", + evening: "illalla", + night: "yöllä" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/fi.js +/** +* @category Locales +* @summary Finnish locale. +* @language Finnish +* @iso-639-2 fin +* @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) +* @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) +*/ +var fi = { + code: "fi", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(\.)/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(e|j)/i, + abbreviated: /^(eaa.|jaa.)/i, + wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^e/i, /^j/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\.? kvartaali/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[thmkeslj]/i, + abbreviated: /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, + wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^t/i, + /^h/i, + /^m/i, + /^h/i, + /^t/i, + /^k/i, + /^h/i, + /^e/i, + /^s/i, + /^l/i, + /^m/i, + /^j/i], + + any: [ + /^ta/i, + /^hel/i, + /^maa/i, + /^hu/i, + /^to/i, + /^k/i, + /^hei/i, + /^e/i, + /^s/i, + /^l/i, + /^mar/i, + /^j/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtkpl]/i, + short: /^(su|ma|ti|ke|to|pe|la)/i, + abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, + wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^k/i, + /^t/i, + /^p/i, + /^l/i], + + any: [ + /^s/i, + /^m/i, + /^ti/i, + /^k/i, + /^to/i, + /^p/i, + /^l/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, + any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ap/i, + pm: /^ip/i, + midnight: /^keskiyö/i, + noon: /^keskipäivä/i, + morning: /aamupäivällä/i, + afternoon: /iltapäivällä/i, + evening: /illalla/i, + night: /yöllä/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fi/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + fi: fi }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/cdn.min.js b/node_modules/date-fns/locale/fi/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..0582d4900916f9b77305ad3cbd1007e36dc0ab1a --- /dev/null +++ b/node_modules/date-fns/locale/fi/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r.futureTense(i)+` kuluttua`:i+` sitten`:i};function h(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var g={date:h({formats:{full:`eeee d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`d.M.y`},defaultWidth:`full`}),time:h({formats:{full:`HH.mm.ss zzzz`,long:`HH.mm.ss z`,medium:`HH.mm.ss`,short:`HH.mm`},defaultWidth:`full`}),dateTime:h({formats:{full:`{{date}} 'klo' {{time}}`,long:`{{date}} 'klo' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},_={lastWeek:`'viime' eeee 'klo' p`,yesterday:`'eilen klo' p`,today:`'tänään klo' p`,tomorrow:`'huomenna klo' p`,nextWeek:`'ensi' eeee 'klo' p`,other:`P`},v=function(e,t,n,r){return _[e]};function y(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var b={narrow:[`eaa.`,`jaa.`],abbreviated:[`eaa.`,`jaa.`],wide:[`ennen ajanlaskun alkua`,`jälkeen ajanlaskun alun`]},x={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartaali`,`2. kvartaali`,`3. kvartaali`,`4. kvartaali`]},S={narrow:[`T`,`H`,`M`,`H`,`T`,`K`,`H`,`E`,`S`,`L`,`M`,`J`],abbreviated:[`tammi`,`helmi`,`maalis`,`huhti`,`touko`,`kesä`,`heinä`,`elo`,`syys`,`loka`,`marras`,`joulu`],wide:[`tammikuu`,`helmikuu`,`maaliskuu`,`huhtikuu`,`toukokuu`,`kesäkuu`,`heinäkuu`,`elokuu`,`syyskuu`,`lokakuu`,`marraskuu`,`joulukuu`]},C={narrow:S.narrow,abbreviated:S.abbreviated,wide:[`tammikuuta`,`helmikuuta`,`maaliskuuta`,`huhtikuuta`,`toukokuuta`,`kesäkuuta`,`heinäkuuta`,`elokuuta`,`syyskuuta`,`lokakuuta`,`marraskuuta`,`joulukuuta`]},w={narrow:[`S`,`M`,`T`,`K`,`T`,`P`,`L`],short:[`su`,`ma`,`ti`,`ke`,`to`,`pe`,`la`],abbreviated:[`sunn.`,`maan.`,`tiis.`,`kesk.`,`torst.`,`perj.`,`la`],wide:[`sunnuntai`,`maanantai`,`tiistai`,`keskiviikko`,`torstai`,`perjantai`,`lauantai`]},T={narrow:w.narrow,short:w.short,abbreviated:w.abbreviated,wide:[`sunnuntaina`,`maanantaina`,`tiistaina`,`keskiviikkona`,`torstaina`,`perjantaina`,`lauantaina`]},E={ordinalNumber:function(e,t){return Number(e)+`.`},era:y({values:b,defaultWidth:`wide`}),quarter:y({values:x,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:y({values:S,defaultWidth:`wide`,formattingValues:C,defaultFormattingWidth:`wide`}),day:y({values:w,defaultWidth:`wide`,formattingValues:T,defaultFormattingWidth:`wide`}),dayPeriod:y({values:{narrow:{am:`ap`,pm:`ip`,midnight:`keskiyö`,noon:`keskipäivä`,morning:`ap`,afternoon:`ip`,evening:`illalla`,night:`yöllä`},abbreviated:{am:`ap`,pm:`ip`,midnight:`keskiyö`,noon:`keskipäivä`,morning:`ap`,afternoon:`ip`,evening:`illalla`,night:`yöllä`},wide:{am:`ap`,pm:`ip`,midnight:`keskiyöllä`,noon:`keskipäivällä`,morning:`aamupäivällä`,afternoon:`iltapäivällä`,evening:`illalla`,night:`yöllä`}},defaultWidth:`wide`})};function D(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?k(s,function(e){return e.test(o)}):O(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function O(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function k(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var j={code:`fi`,formatDistance:m,formatLong:g,formatRelative:v,localize:E,match:{ordinalNumber:A({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:D({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:`any`}),quarter:D({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:D({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:`any`}),day:D({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:D({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{fi:j})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CA.cjs b/node_modules/date-fns/locale/fr-CA.cjs new file mode 100644 index 0000000000000000000000000000000000000000..906a91a39938e1dd535cdf40a2a4e03730e35433 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA.cjs @@ -0,0 +1,32 @@ +"use strict"; +exports.frCA = void 0; +var _index = require("./fr/_lib/formatDistance.cjs"); +var _index2 = require("./fr/_lib/formatRelative.cjs"); +var _index3 = require("./fr/_lib/localize.cjs"); +var _index4 = require("./fr/_lib/match.cjs"); + +var _index5 = require("./fr-CA/_lib/formatLong.cjs"); // Same as fr +// Unique for fr-CA +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +const frCA = (exports.frCA = { + code: "fr-CA", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + + // Unique for fr-CA + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/fr-CA.d.cts b/node_modules/date-fns/locale/fr-CA.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..63554881eda2d63ca6dacd3cc2502a09d4d476f6 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +export declare const frCA: Locale; diff --git a/node_modules/date-fns/locale/fr-CA.d.ts b/node_modules/date-fns/locale/fr-CA.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..63554881eda2d63ca6dacd3cc2502a09d4d476f6 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +export declare const frCA: Locale; diff --git a/node_modules/date-fns/locale/fr-CA.js b/node_modules/date-fns/locale/fr-CA.js new file mode 100644 index 0000000000000000000000000000000000000000..5337512c55beef7f5aa7ba46038da5203f111641 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA.js @@ -0,0 +1,35 @@ +// Same as fr +import { formatDistance } from "./fr/_lib/formatDistance.js"; +import { formatRelative } from "./fr/_lib/formatRelative.js"; +import { localize } from "./fr/_lib/localize.js"; +import { match } from "./fr/_lib/match.js"; + +// Unique for fr-CA +import { formatLong } from "./fr-CA/_lib/formatLong.js"; + +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +export const frCA = { + code: "fr-CA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + + // Unique for fr-CA + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default frCA; diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.cjs b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2d430570014dd5187607b8b59da2df12d4d872a8 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "yy-MM-dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.js b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..450eefa2853a660bdff6eb88db7a331ced776430 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "yy-MM-dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fr-CA/cdn.js b/node_modules/date-fns/locale/fr-CA/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..2292cc9035de6734527bdccab57462c4a47543a9 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/cdn.js @@ -0,0 +1,563 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes" + }, + halfAMinute: "30 secondes", + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures" + }, + xHours: { + one: "1 heure", + other: "{{count}} heures" + }, + xDays: { + one: "1 jour", + other: "{{count}} jours" + }, + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines" + }, + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines" + }, + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois" + }, + xMonths: { + one: "1 mois", + other: "{{count}} mois" + }, + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans" + }, + xYears: { + one: "1 an", + other: "{{count}} ans" + }, + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans" + }, + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var form = formatDistanceLocale[token]; + if (typeof form === "string") result = form;else + if (count === 1) result = form.one;else + result = form.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "dans " + result;else + return "il y a " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/fr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fr/_lib/localize.js +var eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1er trim.", + "2ème trim.", + "3ème trim.", + "4ème trim."], + + wide: [ + "1er trimestre", + "2ème trimestre", + "3ème trimestre", + "4ème trimestre"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc."], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "J", + "V", + "S"], + + short: [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa"], + + abbreviated: [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return "0"; + var feminineUnits = [ + "year", + "week", + "hour", + "minute", + "second"]; + + var suffix; + if (number === 1) suffix = unit && feminineUnits.includes(unit) ? "ère" : "er";else + suffix = "ème"; + return number + suffix; +}; +var LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; +var localize = { + preprocessor: function preprocessor(date, parts) { + if (date.getDate() === 1) return parts; + if (!parts.some(function (part) {return part.isToken && LONG_MONTHS_TOKENS.includes(part.value);})) return parts; + return parts.map(function (part) {return part.isToken && part.value === "do" ? { + isToken: true, + value: "d" + } : part;}); + }, + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ième|ère|ème|er|e)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^av/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^di/i, + /^lu/i, + /^ma/i, + /^me/i, + /^je/i, + /^ve/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/fr-CA.js +/** +* @category Locales +* @summary French locale (Canada). +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +* @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) +*/ +var frCA = { + code: "fr-CA", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "yy-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fr-CA/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + frCA: frCA }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CA/cdn.min.js b/node_modules/date-fns/locale/fr-CA/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..769b6b3b4488b99d1bfeb1bd86b2775d8553df5f --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`dans `+r:`il y a `+r:r},c={lastWeek:`eeee 'dernier à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'prochain à' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},f={narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},p={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},m={narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},h={narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},g=function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},_=[`MMM`,`MMMM`],v={preprocessor:function(e,t){return e.getDate()===1||!t.some(function(e){return e.isToken&&_.includes(e.value)})?t:t.map(function(e){return e.isToken&&e.value===`do`?{isToken:!0,value:`d`}:e})},ordinalNumber:g,era:u({values:d,defaultWidth:`wide`}),quarter:u({values:f,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:p,defaultWidth:`wide`}),day:u({values:m,defaultWidth:`wide`}),dayPeriod:u({values:h,defaultWidth:`wide`})};function y(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?x(s,function(e){return e.test(o)}):b(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function b(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function x(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var C={ordinalNumber:S({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:y({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:y({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:y({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:y({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})};function w(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var T={code:`fr-CA`,formatDistance:s,formatLong:{date:w({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`yy-MM-dd`},defaultWidth:`full`}),time:w({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:w({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:v,match:C,options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{frCA:T})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH.cjs b/node_modules/date-fns/locale/fr-CH.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c331d454fd36ea84d46d3ada0e76acb33cf7d0cb --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.frCH = void 0; +var _index = require("./fr/_lib/formatDistance.cjs"); +var _index2 = require("./fr/_lib/localize.cjs"); +var _index3 = require("./fr/_lib/match.cjs"); + +var _index4 = require("./fr-CH/_lib/formatLong.cjs"); +var _index5 = require("./fr-CH/_lib/formatRelative.cjs"); // Same as fr +// Unique for fr-CH +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +const frCH = (exports.frCH = { + code: "fr-CH", + formatDistance: _index.formatDistance, + formatLong: _index4.formatLong, + formatRelative: _index5.formatRelative, + localize: _index2.localize, + match: _index3.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/fr-CH.d.cts b/node_modules/date-fns/locale/fr-CH.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..af031f599a3ab80e7dcff8e28c08c02ca685edba --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const frCH: Locale; diff --git a/node_modules/date-fns/locale/fr-CH.d.ts b/node_modules/date-fns/locale/fr-CH.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..af031f599a3ab80e7dcff8e28c08c02ca685edba --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const frCH: Locale; diff --git a/node_modules/date-fns/locale/fr-CH.js b/node_modules/date-fns/locale/fr-CH.js new file mode 100644 index 0000000000000000000000000000000000000000..0ab9f99a6ad9a0be219f86f4dfb5670e9f35c462 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH.js @@ -0,0 +1,34 @@ +// Same as fr +import { formatDistance } from "./fr/_lib/formatDistance.js"; +import { localize } from "./fr/_lib/localize.js"; +import { match } from "./fr/_lib/match.js"; + +// Unique for fr-CH +import { formatLong } from "./fr-CH/_lib/formatLong.js"; +import { formatRelative } from "./fr-CH/_lib/formatRelative.js"; + +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export const frCH = { + code: "fr-CH", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default frCH; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.cjs b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c2ce1ddf4b3751f1ea71fe0a8e5dee5fd27bf1af --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.js b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..70399c38c3eb231a5492033005113d060eb91e56 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f7f0d76e4c0b9540ee6c6af37dd2d0a45709a56c --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'la semaine dernière à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'la semaine prochaine à' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.js b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..847dbfd17c4a2f1fb65ee0044a5d969290bd70b2 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'la semaine dernière à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'la semaine prochaine à' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fr-CH/cdn.js b/node_modules/date-fns/locale/fr-CH/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..e90f1bc3ce440d11d11a726ee61f6d4f296ab7a9 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/cdn.js @@ -0,0 +1,565 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes" + }, + halfAMinute: "30 secondes", + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures" + }, + xHours: { + one: "1 heure", + other: "{{count}} heures" + }, + xDays: { + one: "1 jour", + other: "{{count}} jours" + }, + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines" + }, + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines" + }, + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois" + }, + xMonths: { + one: "1 mois", + other: "{{count}} mois" + }, + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans" + }, + xYears: { + one: "1 an", + other: "{{count}} ans" + }, + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans" + }, + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var form = formatDistanceLocale[token]; + if (typeof form === "string") result = form;else + if (count === 1) result = form.one;else + result = form.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "dans " + result;else + return "il y a " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fr/_lib/localize.js +var eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1er trim.", + "2ème trim.", + "3ème trim.", + "4ème trim."], + + wide: [ + "1er trimestre", + "2ème trimestre", + "3ème trimestre", + "4ème trimestre"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc."], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "J", + "V", + "S"], + + short: [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa"], + + abbreviated: [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return "0"; + var feminineUnits = [ + "year", + "week", + "hour", + "minute", + "second"]; + + var suffix; + if (number === 1) suffix = unit && feminineUnits.includes(unit) ? "ère" : "er";else + suffix = "ème"; + return number + suffix; +}; +var LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; +var localize = { + preprocessor: function preprocessor(date, parts) { + if (date.getDate() === 1) return parts; + if (!parts.some(function (part) {return part.isToken && LONG_MONTHS_TOKENS.includes(part.value);})) return parts; + return parts.map(function (part) {return part.isToken && part.value === "do" ? { + isToken: true, + value: "d" + } : part;}); + }, + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ième|ère|ème|er|e)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^av/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^di/i, + /^lu/i, + /^ma/i, + /^me/i, + /^je/i, + /^ve/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fr-CH/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'la semaine dernière à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'la semaine prochaine à' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/fr-CH.js +/** +* @category Locales +* @summary French locale (Switzerland). +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +* @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) +* @author Alex Hoeing [@dcbn](https://github.com/dcbn) +*/ +var frCH = { + code: "fr-CH", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fr-CH/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + frCH: frCH }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH/cdn.min.js b/node_modules/date-fns/locale/fr-CH/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..336cf34f02200de1c6fa9e67ce96c6ec3f1c9860 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`dans `+r:`il y a `+r:r};function c(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var l={narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},u={narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},d={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},f={narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},p={narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},m=function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},h=[`MMM`,`MMMM`],g={preprocessor:function(e,t){return e.getDate()===1||!t.some(function(e){return e.isToken&&h.includes(e.value)})?t:t.map(function(e){return e.isToken&&e.value===`do`?{isToken:!0,value:`d`}:e})},ordinalNumber:m,era:c({values:l,defaultWidth:`wide`}),quarter:c({values:u,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:c({values:d,defaultWidth:`wide`}),day:c({values:f,defaultWidth:`wide`}),dayPeriod:c({values:p,defaultWidth:`wide`})};function _(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?y(s,function(e){return e.test(o)}):v(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function v(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function y(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var x={ordinalNumber:b({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:_({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:_({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:_({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:_({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:_({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})};function S(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var C={date:S({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:S({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:S({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},w={lastWeek:`eeee 'la semaine dernière à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'la semaine prochaine à' p`,other:`P`},T={code:`fr-CH`,formatDistance:s,formatLong:C,formatRelative:function(e,t,n,r){return w[e]},localize:g,match:x,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{frCH:T})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr.cjs b/node_modules/date-fns/locale/fr.cjs new file mode 100644 index 0000000000000000000000000000000000000000..83466a8c1d659cb5db7aa740c630a8f92f99e49b --- /dev/null +++ b/node_modules/date-fns/locale/fr.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.fr = void 0; +var _index = require("./fr/_lib/formatDistance.cjs"); +var _index2 = require("./fr/_lib/formatLong.cjs"); +var _index3 = require("./fr/_lib/formatRelative.cjs"); +var _index4 = require("./fr/_lib/localize.cjs"); +var _index5 = require("./fr/_lib/match.cjs"); + +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +const fr = (exports.fr = { + code: "fr", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/fr.d.cts b/node_modules/date-fns/locale/fr.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8ecf5f8d506d4472417ee5659f78661e9b8e121a --- /dev/null +++ b/node_modules/date-fns/locale/fr.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +export declare const fr: Locale; diff --git a/node_modules/date-fns/locale/fr.d.ts b/node_modules/date-fns/locale/fr.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8ecf5f8d506d4472417ee5659f78661e9b8e121a --- /dev/null +++ b/node_modules/date-fns/locale/fr.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +export declare const fr: Locale; diff --git a/node_modules/date-fns/locale/fr.js b/node_modules/date-fns/locale/fr.js new file mode 100644 index 0000000000000000000000000000000000000000..68f0b54e030345c268f1f5e0efb059d9197ea73e --- /dev/null +++ b/node_modules/date-fns/locale/fr.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./fr/_lib/formatDistance.js"; +import { formatLong } from "./fr/_lib/formatLong.js"; +import { formatRelative } from "./fr/_lib/formatRelative.js"; +import { localize } from "./fr/_lib/localize.js"; +import { match } from "./fr/_lib/match.js"; + +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +export const fr = { + code: "fr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default fr; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs b/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..00ce5691370cf2ca89d8c52139fdeaf27df95526 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs @@ -0,0 +1,104 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes", + }, + + halfAMinute: "30 secondes", + + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes", + }, + + xMinutes: { + one: "1 minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures", + }, + + xHours: { + one: "1 heure", + other: "{{count}} heures", + }, + + xDays: { + one: "1 jour", + other: "{{count}} jours", + }, + + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines", + }, + + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines", + }, + + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois", + }, + + xMonths: { + one: "1 mois", + other: "{{count}} mois", + }, + + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans", + }, + + xYears: { + one: "1 an", + other: "{{count}} ans", + }, + + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans", + }, + + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + const form = formatDistanceLocale[token]; + if (typeof form === "string") { + result = form; + } else if (count === 1) { + result = form.one; + } else { + result = form.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dans " + result; + } else { + return "il y a " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.js b/node_modules/date-fns/locale/fr/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..cab7078c7b3c2008501d40a90e71f78c869db149 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.js @@ -0,0 +1,100 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes", + }, + + halfAMinute: "30 secondes", + + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes", + }, + + xMinutes: { + one: "1 minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures", + }, + + xHours: { + one: "1 heure", + other: "{{count}} heures", + }, + + xDays: { + one: "1 jour", + other: "{{count}} jours", + }, + + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines", + }, + + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines", + }, + + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois", + }, + + xMonths: { + one: "1 mois", + other: "{{count}} mois", + }, + + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans", + }, + + xYears: { + one: "1 an", + other: "{{count}} ans", + }, + + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans", + }, + + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + const form = formatDistanceLocale[token]; + if (typeof form === "string") { + result = form; + } else if (count === 1) { + result = form.one; + } else { + result = form.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dans " + result; + } else { + return "il y a " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.cjs b/node_modules/date-fns/locale/fr/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..01e3cfca73184d161323af6e6b08ccfe60d470be --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fr/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fr/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.js b/node_modules/date-fns/locale/fr/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..a3a8bad748a22abc94893274eb49e85b14ecca35 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9d6751c6ef78fd5c65420e8b85a5f37574a11ff4 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.js b/node_modules/date-fns/locale/fr/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..8090078956f97ae1ce201b93d21bfe6e186a082a --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fr/_lib/localize.cjs b/node_modules/date-fns/locale/fr/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2bec1bddb381e0f93d11c52d0b21bbfbe967da3d --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1er trim.", "2ème trim.", "3ème trim.", "4ème trim."], + wide: ["1er trimestre", "2ème trimestre", "3ème trimestre", "4ème trimestre"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc.", + ], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "J", "V", "S"], + short: ["di", "lu", "ma", "me", "je", "ve", "sa"], + abbreviated: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + + if (number === 0) return "0"; + + const feminineUnits = ["year", "week", "hour", "minute", "second"]; + let suffix; + + if (number === 1) { + suffix = unit && feminineUnits.includes(unit) ? "ère" : "er"; + } else { + suffix = "ème"; + } + + return number + suffix; +}; + +const LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; + +const localize = (exports.localize = { + preprocessor: (date, parts) => { + // Replaces the `do` tokens with `d` when used with long month tokens and the day of the month is greater than one. + // Use case "do MMMM" => 1er août, 29 août + // see https://github.com/date-fns/date-fns/issues/1391 + + if (date.getDate() === 1) return parts; + + const hasLongMonthToken = parts.some( + (part) => part.isToken && LONG_MONTHS_TOKENS.includes(part.value), + ); + + if (!hasLongMonthToken) return parts; + + return parts.map((part) => + part.isToken && part.value === "do" + ? { isToken: true, value: "d" } + : part, + ); + }, + + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/fr/_lib/localize.d.cts b/node_modules/date-fns/locale/fr/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fr/_lib/localize.d.ts b/node_modules/date-fns/locale/fr/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fr/_lib/localize.js b/node_modules/date-fns/locale/fr/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..df91862971b6a04ec3f854daddf95309937cc72c --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize.js @@ -0,0 +1,165 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1er trim.", "2ème trim.", "3ème trim.", "4ème trim."], + wide: ["1er trimestre", "2ème trimestre", "3ème trimestre", "4ème trimestre"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc.", + ], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "J", "V", "S"], + short: ["di", "lu", "ma", "me", "je", "ve", "sa"], + abbreviated: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + + if (number === 0) return "0"; + + const feminineUnits = ["year", "week", "hour", "minute", "second"]; + let suffix; + + if (number === 1) { + suffix = unit && feminineUnits.includes(unit) ? "ère" : "er"; + } else { + suffix = "ème"; + } + + return number + suffix; +}; + +const LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; + +export const localize = { + preprocessor: (date, parts) => { + // Replaces the `do` tokens with `d` when used with long month tokens and the day of the month is greater than one. + // Use case "do MMMM" => 1er août, 29 août + // see https://github.com/date-fns/date-fns/issues/1391 + + if (date.getDate() === 1) return parts; + + const hasLongMonthToken = parts.some( + (part) => part.isToken && LONG_MONTHS_TOKENS.includes(part.value), + ); + + if (!hasLongMonthToken) return parts; + + return parts.map((part) => + part.isToken && part.value === "do" + ? { isToken: true, value: "d" } + : part, + ); + }, + + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/fr/_lib/match.cjs b/node_modules/date-fns/locale/fr/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f464b2ab66ab95c65379fe53349a309028ad8dab --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ième|ère|ème|er|e)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i, +}; +const parseEraPatterns = { + any: [/^av/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/fr/_lib/match.d.cts b/node_modules/date-fns/locale/fr/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fr/_lib/match.d.ts b/node_modules/date-fns/locale/fr/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fr/_lib/match.js b/node_modules/date-fns/locale/fr/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..87a340f2fd11b1362d1e26bda3730bc61439cc8f --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ième|ère|ème|er|e)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i, +}; +const parseEraPatterns = { + any: [/^av/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/fr/cdn.js b/node_modules/date-fns/locale/fr/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..fe9794eaba430bda253511ab35d19b1ad0e9ec2d --- /dev/null +++ b/node_modules/date-fns/locale/fr/cdn.js @@ -0,0 +1,562 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes" + }, + halfAMinute: "30 secondes", + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures" + }, + xHours: { + one: "1 heure", + other: "{{count}} heures" + }, + xDays: { + one: "1 jour", + other: "{{count}} jours" + }, + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines" + }, + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines" + }, + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois" + }, + xMonths: { + one: "1 mois", + other: "{{count}} mois" + }, + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans" + }, + xYears: { + one: "1 an", + other: "{{count}} ans" + }, + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans" + }, + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var form = formatDistanceLocale[token]; + if (typeof form === "string") result = form;else + if (count === 1) result = form.one;else + result = form.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "dans " + result;else + return "il y a " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fr/_lib/localize.js +var eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1er trim.", + "2ème trim.", + "3ème trim.", + "4ème trim."], + + wide: [ + "1er trimestre", + "2ème trimestre", + "3ème trimestre", + "4ème trimestre"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc."], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "J", + "V", + "S"], + + short: [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa"], + + abbreviated: [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return "0"; + var feminineUnits = [ + "year", + "week", + "hour", + "minute", + "second"]; + + var suffix; + if (number === 1) suffix = unit && feminineUnits.includes(unit) ? "ère" : "er";else + suffix = "ème"; + return number + suffix; +}; +var LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; +var localize = { + preprocessor: function preprocessor(date, parts) { + if (date.getDate() === 1) return parts; + if (!parts.some(function (part) {return part.isToken && LONG_MONTHS_TOKENS.includes(part.value);})) return parts; + return parts.map(function (part) {return part.isToken && part.value === "do" ? { + isToken: true, + value: "d" + } : part;}); + }, + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/fr.js +/** +* @category Locales +* @summary French locale. +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +*/ +var fr = { + code: "fr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ième|ère|ème|er|e)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^av/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^di/i, + /^lu/i, + /^ma/i, + /^me/i, + /^je/i, + /^ve/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fr/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + fr: fr }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/cdn.min.js b/node_modules/date-fns/locale/fr/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..d3419ba8aa57a5b663ad34d26ae8cc152534bba8 --- /dev/null +++ b/node_modules/date-fns/locale/fr/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`dans `+r:`il y a `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'dernier à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'prochain à' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},m={narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},h={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},g={narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},_={narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},v=function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},y=[`MMM`,`MMMM`],b={preprocessor:function(e,t){return e.getDate()===1||!t.some(function(e){return e.isToken&&y.includes(e.value)})?t:t.map(function(e){return e.isToken&&e.value===`do`?{isToken:!0,value:`d`}:e})},ordinalNumber:v,era:f({values:p,defaultWidth:`wide`}),quarter:f({values:m,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:h,defaultWidth:`wide`}),day:f({values:g,defaultWidth:`wide`}),dayPeriod:f({values:_,defaultWidth:`wide`})};function x(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?C(s,function(e){return e.test(o)}):S(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function S(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function C(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var T={code:`fr`,formatDistance:s,formatLong:l,formatRelative:d,localize:b,match:{ordinalNumber:w({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:x({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:x({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:x({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:x({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:x({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{fr:T})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy.cjs b/node_modules/date-fns/locale/fy.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ad9b23053c40566e12e858914c2da43da2df9ae1 --- /dev/null +++ b/node_modules/date-fns/locale/fy.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.fy = void 0; +var _index = require("./fy/_lib/formatDistance.cjs"); +var _index2 = require("./fy/_lib/formatLong.cjs"); +var _index3 = require("./fy/_lib/formatRelative.cjs"); +var _index4 = require("./fy/_lib/localize.cjs"); +var _index5 = require("./fy/_lib/match.cjs"); + +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +const fy = (exports.fy = { + code: "fy", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/fy.d.cts b/node_modules/date-fns/locale/fy.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..69ede74577fa256620adbe8e3de7546d065bb62e --- /dev/null +++ b/node_modules/date-fns/locale/fy.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +export declare const fy: Locale; diff --git a/node_modules/date-fns/locale/fy.d.ts b/node_modules/date-fns/locale/fy.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..69ede74577fa256620adbe8e3de7546d065bb62e --- /dev/null +++ b/node_modules/date-fns/locale/fy.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +export declare const fy: Locale; diff --git a/node_modules/date-fns/locale/fy.js b/node_modules/date-fns/locale/fy.js new file mode 100644 index 0000000000000000000000000000000000000000..922784f2e6f1636f826c5654bbb7e918a4669067 --- /dev/null +++ b/node_modules/date-fns/locale/fy.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./fy/_lib/formatDistance.js"; +import { formatLong } from "./fy/_lib/formatLong.js"; +import { formatRelative } from "./fy/_lib/formatRelative.js"; +import { localize } from "./fy/_lib/localize.js"; +import { match } from "./fy/_lib/match.js"; + +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +export const fy = { + code: "fy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default fy; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.cjs b/node_modules/date-fns/locale/fy/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..eaa633366c94d16754c9fb7b4f7499f36d66c65b --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 1 sekonde", + other: "minder as {{count}} sekonden", + }, + + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekonden", + }, + + halfAMinute: "oardel minút", + + lessThanXMinutes: { + one: "minder as 1 minút", + other: "minder as {{count}} minuten", + }, + + xMinutes: { + one: "1 minút", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "sawat 1 oere", + other: "sawat {{count}} oere", + }, + + xHours: { + one: "1 oere", + other: "{{count}} oere", + }, + + xDays: { + one: "1 dei", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "sawat 1 wike", + other: "sawat {{count}} wiken", + }, + + xWeeks: { + one: "1 wike", + other: "{{count}} wiken", + }, + + aboutXMonths: { + one: "sawat 1 moanne", + other: "sawat {{count}} moannen", + }, + + xMonths: { + one: "1 moanne", + other: "{{count}} moannen", + }, + + aboutXYears: { + one: "sawat 1 jier", + other: "sawat {{count}} jier", + }, + + xYears: { + one: "1 jier", + other: "{{count}} jier", + }, + + overXYears: { + one: "mear as 1 jier", + other: "mear as {{count}}s jier", + }, + + almostXYears: { + one: "hast 1 jier", + other: "hast {{count}} jier", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "oer " + result; + } else { + return result + " lyn"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.js b/node_modules/date-fns/locale/fy/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..139a1ae5b39272a9e60df410224cb4369dbd4b8a --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 1 sekonde", + other: "minder as {{count}} sekonden", + }, + + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekonden", + }, + + halfAMinute: "oardel minút", + + lessThanXMinutes: { + one: "minder as 1 minút", + other: "minder as {{count}} minuten", + }, + + xMinutes: { + one: "1 minút", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "sawat 1 oere", + other: "sawat {{count}} oere", + }, + + xHours: { + one: "1 oere", + other: "{{count}} oere", + }, + + xDays: { + one: "1 dei", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "sawat 1 wike", + other: "sawat {{count}} wiken", + }, + + xWeeks: { + one: "1 wike", + other: "{{count}} wiken", + }, + + aboutXMonths: { + one: "sawat 1 moanne", + other: "sawat {{count}} moannen", + }, + + xMonths: { + one: "1 moanne", + other: "{{count}} moannen", + }, + + aboutXYears: { + one: "sawat 1 jier", + other: "sawat {{count}} jier", + }, + + xYears: { + one: "1 jier", + other: "{{count}} jier", + }, + + overXYears: { + one: "mear as 1 jier", + other: "mear as {{count}}s jier", + }, + + almostXYears: { + one: "hast 1 jier", + other: "hast {{count}} jier", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "oer " + result; + } else { + return result + " lyn"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.cjs b/node_modules/date-fns/locale/fy/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7e58b582a35e5544936fb7e7c1c45ebeac13af4f --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fy/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fy/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.js b/node_modules/date-fns/locale/fy/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..bb442e48de3f73cbea389e7c3587f73b6c0e44a2 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fy/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7b634caa2b62fd5bc5142fcc2753b3a5e7dc558f --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'ôfrûne' eeee 'om' p", + yesterday: "'juster om' p", + today: "'hjoed om' p", + tomorrow: "'moarn om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.js b/node_modules/date-fns/locale/fy/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..0139fff7b38305b64e42e1380aed5c4d9ab7c709 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'ôfrûne' eeee 'om' p", + yesterday: "'juster om' p", + today: "'hjoed om' p", + tomorrow: "'moarn om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fy/_lib/localize.cjs b/node_modules/date-fns/locale/fy/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..be67738411a1c2b5b7f937220fa9250943225573 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.K.", "n.K."], + abbreviated: ["f.Kr.", "n.Kr."], + wide: ["foar Kristus", "nei Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e fearnsjier", "2e fearnsjier", "3e fearnsjier", "4e fearnsjier"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mai.", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "jannewaris", + "febrewaris", + "maart", + "april", + "maaie", + "juny", + "july", + "augustus", + "septimber", + "oktober", + "novimber", + "desimber", + ], +}; + +const dayValues = { + narrow: ["s", "m", "t", "w", "t", "f", "s"], + short: ["si", "mo", "ti", "wo", "to", "fr", "so"], + abbreviated: ["snein", "moa", "tii", "woa", "ton", "fre", "sneon"], + wide: [ + "snein", + "moandei", + "tiisdei", + "woansdei", + "tongersdei", + "freed", + "sneon", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "e"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/fy/_lib/localize.d.cts b/node_modules/date-fns/locale/fy/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fy/_lib/localize.d.ts b/node_modules/date-fns/locale/fy/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fy/_lib/localize.js b/node_modules/date-fns/locale/fy/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..20d8a2dc7ec5def42bbfe514bbc9d71d9026de0c --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.K.", "n.K."], + abbreviated: ["f.Kr.", "n.Kr."], + wide: ["foar Kristus", "nei Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e fearnsjier", "2e fearnsjier", "3e fearnsjier", "4e fearnsjier"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mai.", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "jannewaris", + "febrewaris", + "maart", + "april", + "maaie", + "juny", + "july", + "augustus", + "septimber", + "oktober", + "novimber", + "desimber", + ], +}; + +const dayValues = { + narrow: ["s", "m", "t", "w", "t", "f", "s"], + short: ["si", "mo", "ti", "wo", "to", "fr", "so"], + abbreviated: ["snein", "moa", "tii", "woa", "ton", "fre", "sneon"], + wide: [ + "snein", + "moandei", + "tiisdei", + "woansdei", + "tongersdei", + "freed", + "sneon", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "e"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/fy/_lib/match.cjs b/node_modules/date-fns/locale/fy/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e4029c7f4b24894b08b30975049bf9723cd039d3 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([fn]\.? ?K\.?)/, + abbreviated: /^([fn]\. ?Kr\.?)/, + wide: /^((foar|nei) Kristus)/, +}; +const parseEraPatterns = { + any: [/^f/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e fearnsjier/i, +}; + +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, + wide: /^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^des/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(si|mo|ti|wo|to|fr|so)/i, + abbreviated: /^(snein|moa|tii|woa|ton|fre|sneon)/i, + wide: /^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^sn/i, /^mo/i, /^ti/i, /^wo/i, /^to/i, /^fr/i, /^sn/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^middei/i, + morning: /moarns/i, + afternoon: /^middeis/i, + evening: /jûns/i, + night: /nachts/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/fy/_lib/match.d.cts b/node_modules/date-fns/locale/fy/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fy/_lib/match.d.ts b/node_modules/date-fns/locale/fy/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fy/_lib/match.js b/node_modules/date-fns/locale/fy/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..45082170a42dcde7c42fa7cb29dbafa9e23e0474 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([fn]\.? ?K\.?)/, + abbreviated: /^([fn]\. ?Kr\.?)/, + wide: /^((foar|nei) Kristus)/, +}; +const parseEraPatterns = { + any: [/^f/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e fearnsjier/i, +}; + +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, + wide: /^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^des/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(si|mo|ti|wo|to|fr|so)/i, + abbreviated: /^(snein|moa|tii|woa|ton|fre|sneon)/i, + wide: /^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^sn/i, /^mo/i, /^ti/i, /^wo/i, /^to/i, /^fr/i, /^sn/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^middei/i, + morning: /moarns/i, + afternoon: /^middeis/i, + evening: /jûns/i, + night: /nachts/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/fy/cdn.js b/node_modules/date-fns/locale/fy/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..b1adecb6a6b71ba74318cc7ccc2127640296d672 --- /dev/null +++ b/node_modules/date-fns/locale/fy/cdn.js @@ -0,0 +1,536 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fy/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 1 sekonde", + other: "minder as {{count}} sekonden" + }, + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekonden" + }, + halfAMinute: "oardel minút", + lessThanXMinutes: { + one: "minder as 1 minút", + other: "minder as {{count}} minuten" + }, + xMinutes: { + one: "1 minút", + other: "{{count}} minuten" + }, + aboutXHours: { + one: "sawat 1 oere", + other: "sawat {{count}} oere" + }, + xHours: { + one: "1 oere", + other: "{{count}} oere" + }, + xDays: { + one: "1 dei", + other: "{{count}} dagen" + }, + aboutXWeeks: { + one: "sawat 1 wike", + other: "sawat {{count}} wiken" + }, + xWeeks: { + one: "1 wike", + other: "{{count}} wiken" + }, + aboutXMonths: { + one: "sawat 1 moanne", + other: "sawat {{count}} moannen" + }, + xMonths: { + one: "1 moanne", + other: "{{count}} moannen" + }, + aboutXYears: { + one: "sawat 1 jier", + other: "sawat {{count}} jier" + }, + xYears: { + one: "1 jier", + other: "{{count}} jier" + }, + overXYears: { + one: "mear as 1 jier", + other: "mear as {{count}}s jier" + }, + almostXYears: { + one: "hast 1 jier", + other: "hast {{count}} jier" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "oer " + result;else + return result + " lyn"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fy/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'ôfrûne' eeee 'om' p", + yesterday: "'juster om' p", + today: "'hjoed om' p", + tomorrow: "'moarn om' p", + nextWeek: "eeee 'om' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fy/_lib/localize.js +var eraValues = { + narrow: ["f.K.", "n.K."], + abbreviated: ["f.Kr.", "n.Kr."], + wide: ["foar Kristus", "nei Kristus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1e fearnsjier", + "2e fearnsjier", + "3e fearnsjier", + "4e fearnsjier"] + +}; +var monthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mai.", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "des."], + + wide: [ + "jannewaris", + "febrewaris", + "maart", + "april", + "maaie", + "juny", + "july", + "augustus", + "septimber", + "oktober", + "novimber", + "desimber"] + +}; +var dayValues = { + narrow: [ + "s", + "m", + "t", + "w", + "t", + "f", + "s"], + + short: [ + "si", + "mo", + "ti", + "wo", + "to", + "fr", + "so"], + + abbreviated: [ + "snein", + "moa", + "tii", + "woa", + "ton", + "fre", + "sneon"], + + wide: [ + "snein", + "moandei", + "tiisdei", + "woansdei", + "tongersdei", + "freed", + "sneon"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "e"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/fy.js +/** +* @category Locales +* @summary Western Frisian locale (Netherlands). +* @language West Frisian +* @iso-639-2 fry +* @author Damon Asberg [@damon02](https://github.com/damon02) +*/ +var fy = { + code: "fy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)e?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^([fn]\.? ?K\.?)/, + abbreviated: /^([fn]\. ?Kr\.?)/, + wide: /^((foar|nei) Kristus)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/, /^n/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e fearnsjier/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, + wide: /^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^des/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(si|mo|ti|wo|to|fr|so)/i, + abbreviated: /^(snein|moa|tii|woa|ton|fre|sneon)/i, + wide: /^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^sn/i, + /^mo/i, + /^ti/i, + /^wo/i, + /^to/i, + /^fr/i, + /^sn/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^middei/i, + morning: /moarns/i, + afternoon: /^middeis/i, + evening: /jûns/i, + night: /nachts/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fy/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + fy: fy }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/cdn.min.js b/node_modules/date-fns/locale/fy/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..4783d6da6facade6191f1b5c5b204f948a47a371 --- /dev/null +++ b/node_modules/date-fns/locale/fy/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`oer `+r:r+` lyn`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd-MM-y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'ôfrûne' eeee 'om' p`,yesterday:`'juster om' p`,today:`'hjoed om' p`,tomorrow:`'moarn om' p`,nextWeek:`eeee 'om' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`e`},era:f({values:{narrow:[`f.K.`,`n.K.`],abbreviated:[`f.Kr.`,`n.Kr.`],wide:[`foar Kristus`,`nei Kristus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e fearnsjier`,`2e fearnsjier`,`3e fearnsjier`,`4e fearnsjier`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan.`,`feb.`,`mrt.`,`apr.`,`mai.`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`jannewaris`,`febrewaris`,`maart`,`april`,`maaie`,`juny`,`july`,`augustus`,`septimber`,`oktober`,`novimber`,`desimber`]},defaultWidth:`wide`}),day:f({values:{narrow:[`s`,`m`,`t`,`w`,`t`,`f`,`s`],short:[`si`,`mo`,`ti`,`wo`,`to`,`fr`,`so`],abbreviated:[`snein`,`moa`,`tii`,`woa`,`ton`,`fre`,`sneon`],wide:[`snein`,`moandei`,`tiisdei`,`woansdei`,`tongersdei`,`freed`,`sneon`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`fy`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^([fn]\.? ?K\.?)/,abbreviated:/^([fn]\. ?Kr\.?)/,wide:/^((foar|nei) Kristus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/,/^n/]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e fearnsjier/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i,wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^des/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtwf]/i,short:/^(si|mo|ti|wo|to|fr|so)/i,abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i,wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^sn/i,/^mo/i,/^ti/i,/^wo/i,/^to/i,/^fr/i,/^sn/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^middei/i,morning:/moarns/i,afternoon:/^middeis/i,evening:/jûns/i,night:/nachts/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{fy:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd.cjs b/node_modules/date-fns/locale/gd.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1656a89fe1897153a11f9661c7e0e86c6368ddff --- /dev/null +++ b/node_modules/date-fns/locale/gd.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.gd = void 0; +var _index = require("./gd/_lib/formatDistance.cjs"); +var _index2 = require("./gd/_lib/formatLong.cjs"); +var _index3 = require("./gd/_lib/formatRelative.cjs"); +var _index4 = require("./gd/_lib/localize.cjs"); +var _index5 = require("./gd/_lib/match.cjs"); + +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +const gd = (exports.gd = { + code: "gd", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/gd.d.cts b/node_modules/date-fns/locale/gd.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..83dccb0e0035f93925c4e55e21d72b00b40d52ce --- /dev/null +++ b/node_modules/date-fns/locale/gd.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +export declare const gd: Locale; diff --git a/node_modules/date-fns/locale/gd.d.ts b/node_modules/date-fns/locale/gd.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..83dccb0e0035f93925c4e55e21d72b00b40d52ce --- /dev/null +++ b/node_modules/date-fns/locale/gd.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +export declare const gd: Locale; diff --git a/node_modules/date-fns/locale/gd.js b/node_modules/date-fns/locale/gd.js new file mode 100644 index 0000000000000000000000000000000000000000..befe339e5e1c3e0a0439c4cd5170a96887496c84 --- /dev/null +++ b/node_modules/date-fns/locale/gd.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./gd/_lib/formatDistance.js"; +import { formatLong } from "./gd/_lib/formatLong.js"; +import { formatRelative } from "./gd/_lib/formatRelative.js"; +import { localize } from "./gd/_lib/localize.js"; +import { match } from "./gd/_lib/match.js"; + +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +export const gd = { + code: "gd", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default gd; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.cjs b/node_modules/date-fns/locale/gd/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6f042c07c41a20a1814edf3a564471046c1e975c --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.cjs @@ -0,0 +1,115 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "nas lugha na diog", + other: "nas lugha na {{count}} diogan", + }, + + xSeconds: { + one: "1 diog", + two: "2 dhiog", + twenty: "20 diog", + other: "{{count}} diogan", + }, + + halfAMinute: "leth mhionaid", + + lessThanXMinutes: { + one: "nas lugha na mionaid", + other: "nas lugha na {{count}} mionaidean", + }, + + xMinutes: { + one: "1 mionaid", + two: "2 mhionaid", + twenty: "20 mionaid", + other: "{{count}} mionaidean", + }, + + aboutXHours: { + one: "mu uair de thìde", + other: "mu {{count}} uairean de thìde", + }, + + xHours: { + one: "1 uair de thìde", + two: "2 uair de thìde", + twenty: "20 uair de thìde", + other: "{{count}} uairean de thìde", + }, + + xDays: { + one: "1 là", + other: "{{count}} là", + }, + + aboutXWeeks: { + one: "mu 1 seachdain", + other: "mu {{count}} seachdainean", + }, + + xWeeks: { + one: "1 seachdain", + other: "{{count}} seachdainean", + }, + + aboutXMonths: { + one: "mu mhìos", + other: "mu {{count}} mìosan", + }, + + xMonths: { + one: "1 mìos", + other: "{{count}} mìosan", + }, + + aboutXYears: { + one: "mu bhliadhna", + other: "mu {{count}} bliadhnaichean", + }, + + xYears: { + one: "1 bhliadhna", + other: "{{count}} bliadhna", + }, + + overXYears: { + one: "còrr is bliadhna", + other: "còrr is {{count}} bliadhnaichean", + }, + + almostXYears: { + one: "cha mhòr bliadhna", + other: "cha mhòr {{count}} bliadhnaichean", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else if (count === 20 && !!tokenValue.twenty) { + result = tokenValue.twenty; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "ann an " + result; + } else { + return "o chionn " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.js b/node_modules/date-fns/locale/gd/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..dcfd7ad6b77a633e64a51287ea9889fa254d21a6 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.js @@ -0,0 +1,111 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "nas lugha na diog", + other: "nas lugha na {{count}} diogan", + }, + + xSeconds: { + one: "1 diog", + two: "2 dhiog", + twenty: "20 diog", + other: "{{count}} diogan", + }, + + halfAMinute: "leth mhionaid", + + lessThanXMinutes: { + one: "nas lugha na mionaid", + other: "nas lugha na {{count}} mionaidean", + }, + + xMinutes: { + one: "1 mionaid", + two: "2 mhionaid", + twenty: "20 mionaid", + other: "{{count}} mionaidean", + }, + + aboutXHours: { + one: "mu uair de thìde", + other: "mu {{count}} uairean de thìde", + }, + + xHours: { + one: "1 uair de thìde", + two: "2 uair de thìde", + twenty: "20 uair de thìde", + other: "{{count}} uairean de thìde", + }, + + xDays: { + one: "1 là", + other: "{{count}} là", + }, + + aboutXWeeks: { + one: "mu 1 seachdain", + other: "mu {{count}} seachdainean", + }, + + xWeeks: { + one: "1 seachdain", + other: "{{count}} seachdainean", + }, + + aboutXMonths: { + one: "mu mhìos", + other: "mu {{count}} mìosan", + }, + + xMonths: { + one: "1 mìos", + other: "{{count}} mìosan", + }, + + aboutXYears: { + one: "mu bhliadhna", + other: "mu {{count}} bliadhnaichean", + }, + + xYears: { + one: "1 bhliadhna", + other: "{{count}} bliadhna", + }, + + overXYears: { + one: "còrr is bliadhna", + other: "còrr is {{count}} bliadhnaichean", + }, + + almostXYears: { + one: "cha mhòr bliadhna", + other: "cha mhòr {{count}} bliadhnaichean", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else if (count === 20 && !!tokenValue.twenty) { + result = tokenValue.twenty; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "ann an " + result; + } else { + return "o chionn " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.cjs b/node_modules/date-fns/locale/gd/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..86cb3d9fb3988e85fb1727540a5e2f636c4568ae --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'aig' {{time}}", + long: "{{date}} 'aig' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.d.cts b/node_modules/date-fns/locale/gd/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.d.ts b/node_modules/date-fns/locale/gd/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.js b/node_modules/date-fns/locale/gd/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..f1201e1a2140b40e7c054adcb758409ebfa72a97 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'aig' {{time}}", + long: "{{date}} 'aig' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.cjs b/node_modules/date-fns/locale/gd/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7505c98d16c6ff07d1b885cb2ac420db47633704 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'mu dheireadh' eeee 'aig' p", //FIX + yesterday: "'an-dè aig' p", + today: "'an-diugh aig' p", + tomorrow: "'a-màireach aig' p", + nextWeek: "eeee 'aig' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.js b/node_modules/date-fns/locale/gd/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..cc66ae995f8239ca0b78c8e020d76c6549fda0d7 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'mu dheireadh' eeee 'aig' p", //FIX + yesterday: "'an-dè aig' p", + today: "'an-diugh aig' p", + tomorrow: "'a-màireach aig' p", + nextWeek: "eeee 'aig' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/gd/_lib/localize.cjs b/node_modules/date-fns/locale/gd/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2930c81c6f8daeee4fe21640c45d65b59f613be5 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize.cjs @@ -0,0 +1,189 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["R", "A"], + abbreviated: ["RC", "AD"], + wide: ["ro Chrìosta", "anno domini"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["C1", "C2", "C3", "C4"], + wide: [ + "a' chiad chairteal", + "an dàrna cairteal", + "an treas cairteal", + "an ceathramh cairteal", + ], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["F", "G", "M", "G", "C", "Ò", "I", "L", "S", "D", "S", "D"], + abbreviated: [ + "Faoi", + "Gear", + "Màrt", + "Gibl", + "Cèit", + "Ògmh", + "Iuch", + "Lùn", + "Sult", + "Dàmh", + "Samh", + "Dùbh", + ], + + wide: [ + "Am Faoilleach", + "An Gearran", + "Am Màrt", + "An Giblean", + "An Cèitean", + "An t-Ògmhios", + "An t-Iuchar", + "An Lùnastal", + "An t-Sultain", + "An Dàmhair", + "An t-Samhain", + "An Dùbhlachd", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "C", "A", "H", "S"], + short: ["Dò", "Lu", "Mà", "Ci", "Ar", "Ha", "Sa"], + abbreviated: ["Did", "Dil", "Dim", "Dic", "Dia", "Dih", "Dis"], + wide: [ + "Didòmhnaich", + "Diluain", + "Dimàirt", + "Diciadain", + "Diardaoin", + "Dihaoine", + "Disathairne", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "d"; + case 2: + return number + "na"; + } + } + + if (rem100 === 12) { + return number + "na"; + } + + return number + "mh"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/gd/_lib/localize.d.cts b/node_modules/date-fns/locale/gd/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gd/_lib/localize.d.ts b/node_modules/date-fns/locale/gd/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gd/_lib/localize.js b/node_modules/date-fns/locale/gd/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..d6881e0cc1fe4db8ab47897f3e36be522ba70a0b --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize.js @@ -0,0 +1,187 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["R", "A"], + abbreviated: ["RC", "AD"], + wide: ["ro Chrìosta", "anno domini"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["C1", "C2", "C3", "C4"], + wide: [ + "a' chiad chairteal", + "an dàrna cairteal", + "an treas cairteal", + "an ceathramh cairteal", + ], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["F", "G", "M", "G", "C", "Ò", "I", "L", "S", "D", "S", "D"], + abbreviated: [ + "Faoi", + "Gear", + "Màrt", + "Gibl", + "Cèit", + "Ògmh", + "Iuch", + "Lùn", + "Sult", + "Dàmh", + "Samh", + "Dùbh", + ], + + wide: [ + "Am Faoilleach", + "An Gearran", + "Am Màrt", + "An Giblean", + "An Cèitean", + "An t-Ògmhios", + "An t-Iuchar", + "An Lùnastal", + "An t-Sultain", + "An Dàmhair", + "An t-Samhain", + "An Dùbhlachd", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "C", "A", "H", "S"], + short: ["Dò", "Lu", "Mà", "Ci", "Ar", "Ha", "Sa"], + abbreviated: ["Did", "Dil", "Dim", "Dic", "Dia", "Dih", "Dis"], + wide: [ + "Didòmhnaich", + "Diluain", + "Dimàirt", + "Diciadain", + "Diardaoin", + "Dihaoine", + "Disathairne", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "d"; + case 2: + return number + "na"; + } + } + + if (rem100 === 12) { + return number + "na"; + } + + return number + "mh"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/gd/_lib/match.cjs b/node_modules/date-fns/locale/gd/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0d35a7756d3b63a2f03dab1610c9553ded987413 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(d|na|tr|mh)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(r|a)/i, + abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, + wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^c[1234]/i, + wide: /^[1234](cd|na|tr|mh)? cairteal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[fgmcòilsd]/i, + abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, + wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^f/i, + /^g/i, + /^m/i, + /^g/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^s/i, + /^d/i, + /^s/i, + /^d/i, + ], + + any: [ + /^fa/i, + /^ge/i, + /^mà/i, + /^gi/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^su/i, + /^d/i, + /^sa/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmcahs]/i, + short: /^(dò|lu|mà|ci|ar|ha|sa)/i, + abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, + wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], + any: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, + any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^f/i, + midnight: /^meadhan oidhche/i, + noon: /^meadhan là/i, + morning: /sa mhadainn/i, + afternoon: /feasgar/i, + evening: /feasgar/i, + night: /air an oidhche/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/gd/_lib/match.d.cts b/node_modules/date-fns/locale/gd/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gd/_lib/match.d.ts b/node_modules/date-fns/locale/gd/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gd/_lib/match.js b/node_modules/date-fns/locale/gd/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..6912fe0013597c67a48774cee094ca5c33c484cb --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(d|na|tr|mh)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(r|a)/i, + abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, + wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^c[1234]/i, + wide: /^[1234](cd|na|tr|mh)? cairteal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[fgmcòilsd]/i, + abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, + wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^f/i, + /^g/i, + /^m/i, + /^g/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^s/i, + /^d/i, + /^s/i, + /^d/i, + ], + + any: [ + /^fa/i, + /^ge/i, + /^mà/i, + /^gi/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^su/i, + /^d/i, + /^sa/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmcahs]/i, + short: /^(dò|lu|mà|ci|ar|ha|sa)/i, + abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, + wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], + any: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, + any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^f/i, + midnight: /^meadhan oidhche/i, + noon: /^meadhan là/i, + morning: /sa mhadainn/i, + afternoon: /feasgar/i, + evening: /feasgar/i, + night: /air an oidhche/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/gd/cdn.js b/node_modules/date-fns/locale/gd/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..fbdbad741331753b9f713aeb62f157029e23a75a --- /dev/null +++ b/node_modules/date-fns/locale/gd/cdn.js @@ -0,0 +1,588 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/gd/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "nas lugha na diog", + other: "nas lugha na {{count}} diogan" + }, + xSeconds: { + one: "1 diog", + two: "2 dhiog", + twenty: "20 diog", + other: "{{count}} diogan" + }, + halfAMinute: "leth mhionaid", + lessThanXMinutes: { + one: "nas lugha na mionaid", + other: "nas lugha na {{count}} mionaidean" + }, + xMinutes: { + one: "1 mionaid", + two: "2 mhionaid", + twenty: "20 mionaid", + other: "{{count}} mionaidean" + }, + aboutXHours: { + one: "mu uair de thìde", + other: "mu {{count}} uairean de thìde" + }, + xHours: { + one: "1 uair de thìde", + two: "2 uair de thìde", + twenty: "20 uair de thìde", + other: "{{count}} uairean de thìde" + }, + xDays: { + one: "1 là", + other: "{{count}} là" + }, + aboutXWeeks: { + one: "mu 1 seachdain", + other: "mu {{count}} seachdainean" + }, + xWeeks: { + one: "1 seachdain", + other: "{{count}} seachdainean" + }, + aboutXMonths: { + one: "mu mhìos", + other: "mu {{count}} mìosan" + }, + xMonths: { + one: "1 mìos", + other: "{{count}} mìosan" + }, + aboutXYears: { + one: "mu bhliadhna", + other: "mu {{count}} bliadhnaichean" + }, + xYears: { + one: "1 bhliadhna", + other: "{{count}} bliadhna" + }, + overXYears: { + one: "còrr is bliadhna", + other: "còrr is {{count}} bliadhnaichean" + }, + almostXYears: { + one: "cha mhòr bliadhna", + other: "cha mhòr {{count}} bliadhnaichean" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 2 && !!tokenValue.two) result = tokenValue.two;else + if (count === 20 && !!tokenValue.twenty) result = tokenValue.twenty;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "ann an " + result;else + return "o chionn " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'aig' {{time}}", + long: "{{date}} 'aig' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/gd/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'mu dheireadh' eeee 'aig' p", + yesterday: "'an-dè aig' p", + today: "'an-diugh aig' p", + tomorrow: "'a-màireach aig' p", + nextWeek: "eeee 'aig' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/gd/_lib/localize.js +var eraValues = { + narrow: ["R", "A"], + abbreviated: ["RC", "AD"], + wide: ["ro Chrìosta", "anno domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "C1", + "C2", + "C3", + "C4"], + + wide: [ + "a' chiad chairteal", + "an dàrna cairteal", + "an treas cairteal", + "an ceathramh cairteal"] + +}; +var monthValues = { + narrow: [ + "F", + "G", + "M", + "G", + "C", + "Ò", + "I", + "L", + "S", + "D", + "S", + "D"], + + abbreviated: [ + "Faoi", + "Gear", + "Màrt", + "Gibl", + "Cèit", + "Ògmh", + "Iuch", + "Lùn", + "Sult", + "Dàmh", + "Samh", + "Dùbh"], + + wide: [ + "Am Faoilleach", + "An Gearran", + "Am Màrt", + "An Giblean", + "An Cèitean", + "An t-Ògmhios", + "An t-Iuchar", + "An Lùnastal", + "An t-Sultain", + "An Dàmhair", + "An t-Samhain", + "An Dùbhlachd"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "C", + "A", + "H", + "S"], + + short: [ + "Dò", + "Lu", + "Mà", + "Ci", + "Ar", + "Ha", + "Sa"], + + abbreviated: [ + "Did", + "Dil", + "Dim", + "Dic", + "Dia", + "Dih", + "Dis"], + + wide: [ + "Didòmhnaich", + "Diluain", + "Dimàirt", + "Diciadain", + "Diardaoin", + "Dihaoine", + "Disathairne"] + +}; +var dayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche" + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche" + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche" + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche" + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "d"; + case 2:return number + "na"; + } + if (rem100 === 12) return number + "na"; + return number + "mh"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/gd.js +/** +* @category Locales +* @summary Scottish Gaelic. +* @language Scottish Gaelic +* @iso-639-2 gla +* @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) +*/ +var gd = { + code: "gd", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(d|na|tr|mh)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(r|a)/i, + abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, + wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^c[1234]/i, + wide: /^[1234](cd|na|tr|mh)? cairteal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[fgmcòilsd]/i, + abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, + wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^f/i, + /^g/i, + /^m/i, + /^g/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^s/i, + /^d/i, + /^s/i, + /^d/i], + + any: [ + /^fa/i, + /^ge/i, + /^mà/i, + /^gi/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^su/i, + /^d/i, + /^sa/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmcahs]/i, + short: /^(dò|lu|mà|ci|ar|ha|sa)/i, + abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, + wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^c/i, + /^a/i, + /^h/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^m/i, + /^c/i, + /^a/i, + /^h/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, + any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^m/i, + pm: /^f/i, + midnight: /^meadhan oidhche/i, + noon: /^meadhan là/i, + morning: /sa mhadainn/i, + afternoon: /feasgar/i, + evening: /feasgar/i, + night: /air an oidhche/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/gd/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + gd: gd }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/cdn.min.js b/node_modules/date-fns/locale/gd/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..f9bb03f3ad49b3fb2d54d6d6b617374def8f0e7c --- /dev/null +++ b/node_modules/date-fns/locale/gd/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`ann an `+r:`o chionn `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'aig' {{time}}`,long:`{{date}} 'aig' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'mu dheireadh' eeee 'aig' p`,yesterday:`'an-dè aig' p`,today:`'an-diugh aig' p`,tomorrow:`'a-màireach aig' p`,nextWeek:`eeee 'aig' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){var t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+`d`;case 2:return t+`na`}return n===12?t+`na`:t+`mh`},era:f({values:{narrow:[`R`,`A`],abbreviated:[`RC`,`AD`],wide:[`ro Chrìosta`,`anno domini`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`C1`,`C2`,`C3`,`C4`],wide:[`a' chiad chairteal`,`an dàrna cairteal`,`an treas cairteal`,`an ceathramh cairteal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`F`,`G`,`M`,`G`,`C`,`Ò`,`I`,`L`,`S`,`D`,`S`,`D`],abbreviated:[`Faoi`,`Gear`,`Màrt`,`Gibl`,`Cèit`,`Ògmh`,`Iuch`,`Lùn`,`Sult`,`Dàmh`,`Samh`,`Dùbh`],wide:[`Am Faoilleach`,`An Gearran`,`Am Màrt`,`An Giblean`,`An Cèitean`,`An t-Ògmhios`,`An t-Iuchar`,`An Lùnastal`,`An t-Sultain`,`An Dàmhair`,`An t-Samhain`,`An Dùbhlachd`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`C`,`A`,`H`,`S`],short:[`Dò`,`Lu`,`Mà`,`Ci`,`Ar`,`Ha`,`Sa`],abbreviated:[`Did`,`Dil`,`Dim`,`Dic`,`Dia`,`Dih`,`Dis`],wide:[`Didòmhnaich`,`Diluain`,`Dimàirt`,`Diciadain`,`Diardaoin`,`Dihaoine`,`Disathairne`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`m`,pm:`f`,midnight:`m.o.`,noon:`m.l.`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`},abbreviated:{am:`M.`,pm:`F.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`},wide:{am:`m.`,pm:`f.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`m`,pm:`f`,midnight:`m.o.`,noon:`m.l.`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`},abbreviated:{am:`M.`,pm:`F.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`},wide:{am:`m.`,pm:`f.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`gd`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(d|na|tr|mh)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(r|a)/i,abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,wide:/^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^c[1234]/i,wide:/^[1234](cd|na|tr|mh)? cairteal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[fgmcòilsd]/i,abbreviated:/^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i,wide:/^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^f/i,/^g/i,/^m/i,/^g/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^s/i,/^d/i,/^s/i,/^d/i],any:[/^fa/i,/^ge/i,/^mà/i,/^gi/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^su/i,/^d/i,/^sa/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[dlmcahs]/i,short:/^(dò|lu|mà|ci|ar|ha|sa)/i,abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i,wide:/^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i],any:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^m/i,pm:/^f/i,midnight:/^meadhan oidhche/i,noon:/^meadhan là/i,morning:/sa mhadainn/i,afternoon:/feasgar/i,evening:/feasgar/i,night:/air an oidhche/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{gd:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl.cjs b/node_modules/date-fns/locale/gl.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7ae8f4dba6e97ea58075b16f51d592fe9a6b93f6 --- /dev/null +++ b/node_modules/date-fns/locale/gl.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.gl = void 0; +var _index = require("./gl/_lib/formatDistance.cjs"); +var _index2 = require("./gl/_lib/formatLong.cjs"); +var _index3 = require("./gl/_lib/formatRelative.cjs"); +var _index4 = require("./gl/_lib/localize.cjs"); +var _index5 = require("./gl/_lib/match.cjs"); + +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +const gl = (exports.gl = { + code: "gl", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/gl.d.cts b/node_modules/date-fns/locale/gl.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..029b33685b7f23d8784f5e4871d05848b7f9f5e6 --- /dev/null +++ b/node_modules/date-fns/locale/gl.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +export declare const gl: Locale; diff --git a/node_modules/date-fns/locale/gl.d.ts b/node_modules/date-fns/locale/gl.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..029b33685b7f23d8784f5e4871d05848b7f9f5e6 --- /dev/null +++ b/node_modules/date-fns/locale/gl.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +export declare const gl: Locale; diff --git a/node_modules/date-fns/locale/gl.js b/node_modules/date-fns/locale/gl.js new file mode 100644 index 0000000000000000000000000000000000000000..012d8f329e3d528e3e021ed99a58f25862a713d1 --- /dev/null +++ b/node_modules/date-fns/locale/gl.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./gl/_lib/formatDistance.js"; +import { formatLong } from "./gl/_lib/formatLong.js"; +import { formatRelative } from "./gl/_lib/formatRelative.js"; +import { localize } from "./gl/_lib/localize.js"; +import { match } from "./gl/_lib/match.js"; + +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +export const gl = { + code: "gl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default gl; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.cjs b/node_modules/date-fns/locale/gl/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..17ef4c388c4b65e4684d3efe6a98c565a4bfd129 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos dun segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "medio minuto", + + lessThanXMinutes: { + one: "menos dun minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "arredor dunha hora", + other: "arredor de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 día", + other: "{{count}} días", + }, + + aboutXWeeks: { + one: "arredor dunha semana", + other: "arredor de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "arredor de 1 mes", + other: "arredor de {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "arredor dun ano", + other: "arredor de {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "máis dun ano", + other: "máis de {{count}} anos", + }, + + almostXYears: { + one: "case un ano", + other: "case {{count}} anos", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "hai " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.js b/node_modules/date-fns/locale/gl/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..de2ee133345f367ba5d8ca29f3e0cbdf9944a4a3 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos dun segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "medio minuto", + + lessThanXMinutes: { + one: "menos dun minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "arredor dunha hora", + other: "arredor de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 día", + other: "{{count}} días", + }, + + aboutXWeeks: { + one: "arredor dunha semana", + other: "arredor de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "arredor de 1 mes", + other: "arredor de {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "arredor dun ano", + other: "arredor de {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "máis dun ano", + other: "máis de {{count}} anos", + }, + + almostXYears: { + one: "case un ano", + other: "case {{count}} anos", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "hai " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.cjs b/node_modules/date-fns/locale/gl/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..36497d86860e1b54f5b4f8d234d1d419e59567d7 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'ás' {{time}}", + long: "{{date}} 'ás' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.d.cts b/node_modules/date-fns/locale/gl/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.d.ts b/node_modules/date-fns/locale/gl/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.js b/node_modules/date-fns/locale/gl/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..2eb5d65d8513bd4aba2687527096188de5c9ae61 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'ás' {{time}}", + long: "{{date}} 'ás' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.cjs b/node_modules/date-fns/locale/gl/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7a0dafa6690ea3ced7953e87aaa920be5063549e --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'o' eeee 'pasado á' LT", + yesterday: "'onte á' p", + today: "'hoxe á' p", + tomorrow: "'mañá á' p", + nextWeek: "eeee 'á' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'o' eeee 'pasado ás' p", + yesterday: "'onte ás' p", + today: "'hoxe ás' p", + tomorrow: "'mañá ás' p", + nextWeek: "eeee 'ás' p", + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.js b/node_modules/date-fns/locale/gl/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..ba03e71b1c27c1c51e33ab8846416e9d3fae6e16 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.js @@ -0,0 +1,24 @@ +const formatRelativeLocale = { + lastWeek: "'o' eeee 'pasado á' LT", + yesterday: "'onte á' p", + today: "'hoxe á' p", + tomorrow: "'mañá á' p", + nextWeek: "eeee 'á' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'o' eeee 'pasado ás' p", + yesterday: "'onte ás' p", + today: "'hoxe ás' p", + tomorrow: "'mañá ás' p", + nextWeek: "eeee 'ás' p", + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/gl/_lib/localize.cjs b/node_modules/date-fns/locale/gl/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ef02aca26a539d218f231e98aaa10ada538de455 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize.cjs @@ -0,0 +1,158 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "despois de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "xan", + "feb", + "mar", + "abr", + "mai", + "xun", + "xul", + "ago", + "set", + "out", + "nov", + "dec", + ], + + wide: [ + "xaneiro", + "febreiro", + "marzo", + "abril", + "maio", + "xuño", + "xullo", + "agosto", + "setembro", + "outubro", + "novembro", + "decembro", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["do", "lu", "ma", "me", "xo", "ve", "sa"], + abbreviated: ["dom", "lun", "mar", "mer", "xov", "ven", "sab"], + wide: ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañá", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/gl/_lib/localize.d.cts b/node_modules/date-fns/locale/gl/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gl/_lib/localize.d.ts b/node_modules/date-fns/locale/gl/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gl/_lib/localize.js b/node_modules/date-fns/locale/gl/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..df8360a3bc1e52668b889021f12eb46bfdc7571f --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize.js @@ -0,0 +1,156 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "despois de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "xan", + "feb", + "mar", + "abr", + "mai", + "xun", + "xul", + "ago", + "set", + "out", + "nov", + "dec", + ], + + wide: [ + "xaneiro", + "febreiro", + "marzo", + "abril", + "maio", + "xuño", + "xullo", + "agosto", + "setembro", + "outubro", + "novembro", + "decembro", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["do", "lu", "ma", "me", "xo", "ve", "sa"], + abbreviated: ["dom", "lun", "mar", "mer", "xov", "ven", "sab"], + wide: ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañá", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/gl/_lib/match.cjs b/node_modules/date-fns/locale/gl/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..24ae7417b79006ea1339aae8cf290ef365a73502 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match.cjs @@ -0,0 +1,139 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes da era com[uú]n)/i, + /^(despois de cristo|era com[uú]n)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[xfmasond]/i, + abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, + wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^x/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^x/i, + /^x/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^xan/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^xun/i, + /^xul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmxvs]/i, + short: /^(do|lu|ma|me|xo|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, + wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^x/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^me/i, /^xo/i, /^ve/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañ[aá]/i, + afternoon: /tarde/i, + evening: /tardiña/i, + night: /noite/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/gl/_lib/match.d.cts b/node_modules/date-fns/locale/gl/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gl/_lib/match.d.ts b/node_modules/date-fns/locale/gl/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gl/_lib/match.js b/node_modules/date-fns/locale/gl/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..d41ea3012d47173720abf20bef6217dba6c26754 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match.js @@ -0,0 +1,136 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes da era com[uú]n)/i, + /^(despois de cristo|era com[uú]n)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[xfmasond]/i, + abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, + wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^x/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^x/i, + /^x/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^xan/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^xun/i, + /^xul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmxvs]/i, + short: /^(do|lu|ma|me|xo|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, + wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^x/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^me/i, /^xo/i, /^ve/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañ[aá]/i, + afternoon: /tarde/i, + evening: /tardiña/i, + night: /noite/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/gl/cdn.js b/node_modules/date-fns/locale/gl/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..b6192e52a9f380f3c7a6675906a3f00d5d26fe4c --- /dev/null +++ b/node_modules/date-fns/locale/gl/cdn.js @@ -0,0 +1,588 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/gl/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menos dun segundo", + other: "menos de {{count}} segundos" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos" + }, + halfAMinute: "medio minuto", + lessThanXMinutes: { + one: "menos dun minuto", + other: "menos de {{count}} minutos" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos" + }, + aboutXHours: { + one: "arredor dunha hora", + other: "arredor de {{count}} horas" + }, + xHours: { + one: "1 hora", + other: "{{count}} horas" + }, + xDays: { + one: "1 día", + other: "{{count}} días" + }, + aboutXWeeks: { + one: "arredor dunha semana", + other: "arredor de {{count}} semanas" + }, + xWeeks: { + one: "1 semana", + other: "{{count}} semanas" + }, + aboutXMonths: { + one: "arredor de 1 mes", + other: "arredor de {{count}} meses" + }, + xMonths: { + one: "1 mes", + other: "{{count}} meses" + }, + aboutXYears: { + one: "arredor dun ano", + other: "arredor de {{count}} anos" + }, + xYears: { + one: "1 ano", + other: "{{count}} anos" + }, + overXYears: { + one: "máis dun ano", + other: "máis de {{count}} anos" + }, + almostXYears: { + one: "case un ano", + other: "case {{count}} anos" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "en " + result;else + return "hai " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'ás' {{time}}", + long: "{{date}} 'ás' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/gl/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'o' eeee 'pasado á' LT", + yesterday: "'onte á' p", + today: "'hoxe á' p", + tomorrow: "'mañá á' p", + nextWeek: "eeee 'á' p", + other: "P" +}; +var formatRelativeLocalePlural = { + lastWeek: "'o' eeee 'pasado ás' p", + yesterday: "'onte ás' p", + today: "'hoxe ás' p", + tomorrow: "'mañá ás' p", + nextWeek: "eeee 'ás' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getHours() !== 1) return formatRelativeLocalePlural[token]; + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/gl/_lib/localize.js +var eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "despois de cristo"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre"] + +}; +var monthValues = { + narrow: [ + "e", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "xan", + "feb", + "mar", + "abr", + "mai", + "xun", + "xul", + "ago", + "set", + "out", + "nov", + "dec"], + + wide: [ + "xaneiro", + "febreiro", + "marzo", + "abril", + "maio", + "xuño", + "xullo", + "agosto", + "setembro", + "outubro", + "novembro", + "decembro"] + +}; +var dayValues = { + narrow: [ + "d", + "l", + "m", + "m", + "j", + "v", + "s"], + + short: [ + "do", + "lu", + "ma", + "me", + "xo", + "ve", + "sa"], + + abbreviated: [ + "dom", + "lun", + "mar", + "mer", + "xov", + "ven", + "sab"], + + wide: [ + "domingo", + "luns", + "martes", + "mércores", + "xoves", + "venres", + "sábado"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañá", + afternoon: "tarde", + evening: "tarde", + night: "noite" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "º"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/gl.js +/** +* @category Locales +* @summary Galician locale. +* @language Galician +* @iso-639-2 glg +* @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) +* @author Fidel Pita [@fidelpita](https://github.com/fidelpita) +*/ +var gl = { + code: "gl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes da era com[uú]n)/i, /^(despois de cristo|era com[uú]n)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[xfmasond]/i, + abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, + wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^x/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^x/i, + /^x/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^xan/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^xun/i, + /^xul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dec/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmxvs]/i, + short: /^(do|lu|ma|me|xo|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, + wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^x/i, + /^v/i, + /^s/i], + + any: [ + /^do/i, + /^lu/i, + /^ma/i, + /^me/i, + /^xo/i, + /^ve/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañ[aá]/i, + afternoon: /tarde/i, + evening: /tardiña/i, + night: /noite/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/gl/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + gl: gl }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/cdn.min.js b/node_modules/date-fns/locale/gl/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..6c14751a39479d842ee2a0ba23dbeedf29d13c2b --- /dev/null +++ b/node_modules/date-fns/locale/gl/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`en `+r:`hai `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d 'de' MMMM y`,long:`d 'de' MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'ás' {{time}}`,long:`{{date}} 'ás' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'o' eeee 'pasado á' LT`,yesterday:`'onte á' p`,today:`'hoxe á' p`,tomorrow:`'mañá á' p`,nextWeek:`eeee 'á' p`,other:`P`},d={lastWeek:`'o' eeee 'pasado ás' p`,yesterday:`'onte ás' p`,today:`'hoxe ás' p`,tomorrow:`'mañá ás' p`,nextWeek:`eeee 'ás' p`,other:`P`},f=function(e,t,n,r){return t.getHours()===1?u[e]:d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`º`},era:p({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`despois de cristo`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`xan`,`feb`,`mar`,`abr`,`mai`,`xun`,`xul`,`ago`,`set`,`out`,`nov`,`dec`],wide:[`xaneiro`,`febreiro`,`marzo`,`abril`,`maio`,`xuño`,`xullo`,`agosto`,`setembro`,`outubro`,`novembro`,`decembro`]},defaultWidth:`wide`}),day:p({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`me`,`xo`,`ve`,`sa`],abbreviated:[`dom`,`lun`,`mar`,`mer`,`xov`,`ven`,`sab`],wide:[`domingo`,`luns`,`martes`,`mércores`,`xoves`,`venres`,`sábado`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañá`,afternoon:`tarde`,evening:`tarde`,night:`noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoite`,noon:`mediodía`,morning:`mañá`,afternoon:`tarde`,evening:`tardiña`,night:`noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoite`,noon:`mediodía`,morning:`mañá`,afternoon:`tarde`,evening:`tardiña`,night:`noite`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoite`,noon:`mediodía`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoite`,noon:`mediodía`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`gl`,formatDistance:s,formatLong:l,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{gl:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu.cjs b/node_modules/date-fns/locale/gu.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3b17f4528cbfb492495ad29c988443168a6ec901 --- /dev/null +++ b/node_modules/date-fns/locale/gu.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.gu = void 0; +var _index = require("./gu/_lib/formatDistance.cjs"); +var _index2 = require("./gu/_lib/formatLong.cjs"); +var _index3 = require("./gu/_lib/formatRelative.cjs"); +var _index4 = require("./gu/_lib/localize.cjs"); +var _index5 = require("./gu/_lib/match.cjs"); + +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +const gu = (exports.gu = { + code: "gu", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/gu.d.cts b/node_modules/date-fns/locale/gu.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..37afaf2136530ac55b1dc6356f68df558ede7573 --- /dev/null +++ b/node_modules/date-fns/locale/gu.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +export declare const gu: Locale; diff --git a/node_modules/date-fns/locale/gu.d.ts b/node_modules/date-fns/locale/gu.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..37afaf2136530ac55b1dc6356f68df558ede7573 --- /dev/null +++ b/node_modules/date-fns/locale/gu.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +export declare const gu: Locale; diff --git a/node_modules/date-fns/locale/gu.js b/node_modules/date-fns/locale/gu.js new file mode 100644 index 0000000000000000000000000000000000000000..56d963312f50c705996305ad240bffe91c4ce047 --- /dev/null +++ b/node_modules/date-fns/locale/gu.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./gu/_lib/formatDistance.js"; +import { formatLong } from "./gu/_lib/formatLong.js"; +import { formatRelative } from "./gu/_lib/formatRelative.js"; +import { localize } from "./gu/_lib/localize.js"; +import { match } from "./gu/_lib/match.js"; + +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +export const gu = { + code: "gu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default gu; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.cjs b/node_modules/date-fns/locale/gu/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b1f8239229e31d8c68da1351626592803d6833f7 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.cjs @@ -0,0 +1,106 @@ +"use strict"; +exports.formatDistance = void 0; + +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +const formatDistanceLocale = { + lessThanXSeconds: { + one: "હમણાં", // CLDR #1461 + other: "​આશરે {{count}} સેકંડ", + }, + + xSeconds: { + one: "1 સેકંડ", + other: "{{count}} સેકંડ", + }, + + halfAMinute: "અડધી મિનિટ", + + lessThanXMinutes: { + one: "આ મિનિટ", // CLDR #1448 + other: "​આશરે {{count}} મિનિટ", + }, + + xMinutes: { + one: "1 મિનિટ", + other: "{{count}} મિનિટ", + }, + + aboutXHours: { + one: "​આશરે 1 કલાક", + other: "​આશરે {{count}} કલાક", + }, + + xHours: { + one: "1 કલાક", + other: "{{count}} કલાક", + }, + + xDays: { + one: "1 દિવસ", + other: "{{count}} દિવસ", + }, + + aboutXWeeks: { + one: "આશરે 1 અઠવાડિયું", + other: "આશરે {{count}} અઠવાડિયા", + }, + + xWeeks: { + one: "1 અઠવાડિયું", + other: "{{count}} અઠવાડિયા", + }, + + aboutXMonths: { + one: "આશરે 1 મહિનો", + other: "આશરે {{count}} મહિના", + }, + + xMonths: { + one: "1 મહિનો", + other: "{{count}} મહિના", + }, + + aboutXYears: { + one: "આશરે 1 વર્ષ", + other: "આશરે {{count}} વર્ષ", + }, + + xYears: { + one: "1 વર્ષ", + other: "{{count}} વર્ષ", + }, + + overXYears: { + one: "1 વર્ષથી વધુ", + other: "{{count}} વર્ષથી વધુ", + }, + + almostXYears: { + one: "લગભગ 1 વર્ષ", + other: "લગભગ {{count}} વર્ષ", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "માં"; + } else { + return result + " પહેલાં"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.js b/node_modules/date-fns/locale/gu/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..44bb8383dbc351aa19492612a258212753b513a1 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.js @@ -0,0 +1,102 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +const formatDistanceLocale = { + lessThanXSeconds: { + one: "હમણાં", // CLDR #1461 + other: "​આશરે {{count}} સેકંડ", + }, + + xSeconds: { + one: "1 સેકંડ", + other: "{{count}} સેકંડ", + }, + + halfAMinute: "અડધી મિનિટ", + + lessThanXMinutes: { + one: "આ મિનિટ", // CLDR #1448 + other: "​આશરે {{count}} મિનિટ", + }, + + xMinutes: { + one: "1 મિનિટ", + other: "{{count}} મિનિટ", + }, + + aboutXHours: { + one: "​આશરે 1 કલાક", + other: "​આશરે {{count}} કલાક", + }, + + xHours: { + one: "1 કલાક", + other: "{{count}} કલાક", + }, + + xDays: { + one: "1 દિવસ", + other: "{{count}} દિવસ", + }, + + aboutXWeeks: { + one: "આશરે 1 અઠવાડિયું", + other: "આશરે {{count}} અઠવાડિયા", + }, + + xWeeks: { + one: "1 અઠવાડિયું", + other: "{{count}} અઠવાડિયા", + }, + + aboutXMonths: { + one: "આશરે 1 મહિનો", + other: "આશરે {{count}} મહિના", + }, + + xMonths: { + one: "1 મહિનો", + other: "{{count}} મહિના", + }, + + aboutXYears: { + one: "આશરે 1 વર્ષ", + other: "આશરે {{count}} વર્ષ", + }, + + xYears: { + one: "1 વર્ષ", + other: "{{count}} વર્ષ", + }, + + overXYears: { + one: "1 વર્ષથી વધુ", + other: "{{count}} વર્ષથી વધુ", + }, + + almostXYears: { + one: "લગભગ 1 વર્ષ", + other: "લગભગ {{count}} વર્ષ", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "માં"; + } else { + return result + " પહેલાં"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.cjs b/node_modules/date-fns/locale/gu/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..05b27776e43bace13496d3ac113eb1587d82b85d --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +//Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +const dateFormats = { + full: "EEEE, d MMMM, y", // CLDR #1825 + long: "d MMMM, y", // CLDR #1826 + medium: "d MMM, y", // CLDR #1827 + short: "d/M/yy", // CLDR #1828 +}; + +const timeFormats = { + full: "hh:mm:ss a zzzz", // CLDR #1829 + long: "hh:mm:ss a z", // CLDR #1830 + medium: "hh:mm:ss a", // CLDR #1831 + short: "hh:mm a", // CLDR #1832 +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", // CLDR #1833 + long: "{{date}} {{time}}", // CLDR #1834 + medium: "{{date}} {{time}}", // CLDR #1835 + short: "{{date}} {{time}}", // CLDR #1836 +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.d.cts b/node_modules/date-fns/locale/gu/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.d.ts b/node_modules/date-fns/locale/gu/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.js b/node_modules/date-fns/locale/gu/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..b2481ee9457d802b744af7861021b2e8eacc4779 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.js @@ -0,0 +1,40 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +//Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +const dateFormats = { + full: "EEEE, d MMMM, y", // CLDR #1825 + long: "d MMMM, y", // CLDR #1826 + medium: "d MMM, y", // CLDR #1827 + short: "d/M/yy", // CLDR #1828 +}; + +const timeFormats = { + full: "hh:mm:ss a zzzz", // CLDR #1829 + long: "hh:mm:ss a z", // CLDR #1830 + medium: "hh:mm:ss a", // CLDR #1831 + short: "hh:mm a", // CLDR #1832 +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", // CLDR #1833 + long: "{{date}} {{time}}", // CLDR #1834 + medium: "{{date}} {{time}}", // CLDR #1835 + short: "{{date}} {{time}}", // CLDR #1836 +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.cjs b/node_modules/date-fns/locale/gu/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..bc1f104001ebddd61fd42c080f9fbe760aa9ddc4 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.cjs @@ -0,0 +1,17 @@ +"use strict"; +exports.formatRelative = void 0; + +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html + +const formatRelativeLocale = { + lastWeek: "'પાછલા' eeee p", // CLDR #1384 + yesterday: "'ગઈકાલે' p", // CLDR #1409 + today: "'આજે' p", // CLDR #1410 + tomorrow: "'આવતીકાલે' p", // CLDR #1411 + nextWeek: "eeee p", // CLDR #1386 + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.js b/node_modules/date-fns/locale/gu/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..0842e0860ebe25b1ef53248fcf3046f00ce1c2d3 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.js @@ -0,0 +1,13 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html + +const formatRelativeLocale = { + lastWeek: "'પાછલા' eeee p", // CLDR #1384 + yesterday: "'ગઈકાલે' p", // CLDR #1409 + today: "'આજે' p", // CLDR #1410 + tomorrow: "'આવતીકાલે' p", // CLDR #1411 + nextWeek: "eeee p", // CLDR #1386 + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/gu/_lib/localize.cjs b/node_modules/date-fns/locale/gu/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3a6ce654d4aea9e9cd3ba6725f79b29ce7c3cd8d --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize.cjs @@ -0,0 +1,181 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1621 - #1630 +const eraValues = { + narrow: ["ઈસપૂ", "ઈસ"], + abbreviated: ["ઈ.સ.પૂર્વે", "ઈ.સ."], + wide: ["ઈસવીસન પૂર્વે", "ઈસવીસન"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1631 - #1654 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1લો ત્રિમાસ", "2જો ત્રિમાસ", "3જો ત્રિમાસ", "4થો ત્રિમાસ"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1655 - #1726 +const monthValues = { + narrow: ["જા", "ફે", "મા", "એ", "મે", "જૂ", "જુ", "ઓ", "સ", "ઓ", "ન", "ડિ"], + + abbreviated: [ + "જાન્યુ", + "ફેબ્રુ", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઈ", + "ઑગસ્ટ", + "સપ્ટે", + "ઓક્ટો", + "નવે", + "ડિસે", + ], + + wide: [ + "જાન્યુઆરી", + "ફેબ્રુઆરી", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઇ", + "ઓગસ્ટ", + "સપ્ટેમ્બર", + "ઓક્ટોબર", + "નવેમ્બર", + "ડિસેમ્બર", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1727 - #1768 +const dayValues = { + narrow: ["ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"], + short: ["ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"], + abbreviated: ["રવિ", "સોમ", "મંગળ", "બુધ", "ગુરુ", "શુક્ર", "શનિ"], + wide: [ + "રવિવાર" /* Sunday */, + "સોમવાર" /* Monday */, + "મંગળવાર" /* Tuesday */, + "બુધવાર" /* Wednesday */, + "ગુરુવાર" /* Thursday */, + "શુક્રવાર" /* Friday */, + "શનિવાર" /* Saturday */, + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1783 - #1824 +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બ.", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/gu/_lib/localize.d.cts b/node_modules/date-fns/locale/gu/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gu/_lib/localize.d.ts b/node_modules/date-fns/locale/gu/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gu/_lib/localize.js b/node_modules/date-fns/locale/gu/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..4631b5e6e8b7114ab3f7c842c1718170de346a6e --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize.js @@ -0,0 +1,179 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1621 - #1630 +const eraValues = { + narrow: ["ઈસપૂ", "ઈસ"], + abbreviated: ["ઈ.સ.પૂર્વે", "ઈ.સ."], + wide: ["ઈસવીસન પૂર્વે", "ઈસવીસન"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1631 - #1654 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1લો ત્રિમાસ", "2જો ત્રિમાસ", "3જો ત્રિમાસ", "4થો ત્રિમાસ"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1655 - #1726 +const monthValues = { + narrow: ["જા", "ફે", "મા", "એ", "મે", "જૂ", "જુ", "ઓ", "સ", "ઓ", "ન", "ડિ"], + + abbreviated: [ + "જાન્યુ", + "ફેબ્રુ", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઈ", + "ઑગસ્ટ", + "સપ્ટે", + "ઓક્ટો", + "નવે", + "ડિસે", + ], + + wide: [ + "જાન્યુઆરી", + "ફેબ્રુઆરી", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઇ", + "ઓગસ્ટ", + "સપ્ટેમ્બર", + "ઓક્ટોબર", + "નવેમ્બર", + "ડિસેમ્બર", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1727 - #1768 +const dayValues = { + narrow: ["ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"], + short: ["ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"], + abbreviated: ["રવિ", "સોમ", "મંગળ", "બુધ", "ગુરુ", "શુક્ર", "શનિ"], + wide: [ + "રવિવાર" /* Sunday */, + "સોમવાર" /* Monday */, + "મંગળવાર" /* Tuesday */, + "બુધવાર" /* Wednesday */, + "ગુરુવાર" /* Thursday */, + "શુક્રવાર" /* Friday */, + "શનિવાર" /* Saturday */, + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1783 - #1824 +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બ.", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/gu/_lib/match.cjs b/node_modules/date-fns/locale/gu/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7c47b98e7d6d3368ad39a9ceb62212b3ffef3dd8 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i, +}; +const parseEraPatterns = { + any: [/^ઈસપૂ/i, /^ઈસ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i, + abbreviated: + /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, + wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i, + ], + + any: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, + wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i, +}; +const parseDayPatterns = { + narrow: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], + any: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, + any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^મ\.?/i, + noon: /^બ/i, + morning: /સ/i, + afternoon: /બ/i, + evening: /સાં/i, + night: /રા/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/gu/_lib/match.d.cts b/node_modules/date-fns/locale/gu/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gu/_lib/match.d.ts b/node_modules/date-fns/locale/gu/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gu/_lib/match.js b/node_modules/date-fns/locale/gu/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..2c27a240ac675b8b16699ee756f6ef7dc3d2bda6 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i, +}; +const parseEraPatterns = { + any: [/^ઈસપૂ/i, /^ઈસ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i, + abbreviated: + /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, + wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i, + ], + + any: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, + wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i, +}; +const parseDayPatterns = { + narrow: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], + any: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, + any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^મ\.?/i, + noon: /^બ/i, + morning: /સ/i, + afternoon: /બ/i, + evening: /સાં/i, + night: /રા/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/gu/cdn.js b/node_modules/date-fns/locale/gu/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..eb3667a3170c8ea82ecaa76da46d2c605aae65e4 --- /dev/null +++ b/node_modules/date-fns/locale/gu/cdn.js @@ -0,0 +1,573 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/gu/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "હમણાં", + other: "​આશરે {{count}} સેકંડ" + }, + xSeconds: { + one: "1 સેકંડ", + other: "{{count}} સેકંડ" + }, + halfAMinute: "અડધી મિનિટ", + lessThanXMinutes: { + one: "આ મિનિટ", + other: "​આશરે {{count}} મિનિટ" + }, + xMinutes: { + one: "1 મિનિટ", + other: "{{count}} મિનિટ" + }, + aboutXHours: { + one: "​આશરે 1 કલાક", + other: "​આશરે {{count}} કલાક" + }, + xHours: { + one: "1 કલાક", + other: "{{count}} કલાક" + }, + xDays: { + one: "1 દિવસ", + other: "{{count}} દિવસ" + }, + aboutXWeeks: { + one: "આશરે 1 અઠવાડિયું", + other: "આશરે {{count}} અઠવાડિયા" + }, + xWeeks: { + one: "1 અઠવાડિયું", + other: "{{count}} અઠવાડિયા" + }, + aboutXMonths: { + one: "આશરે 1 મહિનો", + other: "આશરે {{count}} મહિના" + }, + xMonths: { + one: "1 મહિનો", + other: "{{count}} મહિના" + }, + aboutXYears: { + one: "આશરે 1 વર્ષ", + other: "આશરે {{count}} વર્ષ" + }, + xYears: { + one: "1 વર્ષ", + other: "{{count}} વર્ષ" + }, + overXYears: { + one: "1 વર્ષથી વધુ", + other: "{{count}} વર્ષથી વધુ" + }, + almostXYears: { + one: "લગભગ 1 વર્ષ", + other: "લગભગ {{count}} વર્ષ" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + "માં";else + return result + " પહેલાં"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM, y", + long: "d MMMM, y", + medium: "d MMM, y", + short: "d/M/yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "hh:mm:ss a zzzz", + long: "hh:mm:ss a z", + medium: "hh:mm:ss a", + short: "hh:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/gu/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'પાછલા' eeee p", + yesterday: "'ગઈકાલે' p", + today: "'આજે' p", + tomorrow: "'આવતીકાલે' p", + nextWeek: "eeee p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/gu/_lib/localize.js +var eraValues = { + narrow: ["ઈસપૂ", "ઈસ"], + abbreviated: ["ઈ.સ.પૂર્વે", "ઈ.સ."], + wide: ["ઈસવીસન પૂર્વે", "ઈસવીસન"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1લો ત્રિમાસ", + "2જો ત્રિમાસ", + "3જો ત્રિમાસ", + "4થો ત્રિમાસ"] + +}; +var monthValues = { + narrow: [ + "જા", + "ફે", + "મા", + "એ", + "મે", + "જૂ", + "જુ", + "ઓ", + "સ", + "ઓ", + "ન", + "ડિ"], + + abbreviated: [ + "જાન્યુ", + "ફેબ્રુ", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઈ", + "ઑગસ્ટ", + "સપ્ટે", + "ઓક્ટો", + "નવે", + "ડિસે"], + + wide: [ + "જાન્યુઆરી", + "ફેબ્રુઆરી", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઇ", + "ઓગસ્ટ", + "સપ્ટેમ્બર", + "ઓક્ટોબર", + "નવેમ્બર", + "ડિસેમ્બર"] + +}; +var dayValues = { + narrow: [ + "ર", + "સો", + "મં", + "બુ", + "ગુ", + "શુ", + "શ"], + + short: [ + "ર", + "સો", + "મં", + "બુ", + "ગુ", + "શુ", + "શ"], + + abbreviated: [ + "રવિ", + "સોમ", + "મંગળ", + "બુધ", + "ગુરુ", + "શુક્ર", + "શનિ"], + + wide: [ + "રવિવાર", + "સોમવાર", + "મંગળવાર", + "બુધવાર", + "ગુરુવાર", + "શુક્રવાર", + "શનિવાર"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બ.", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/gu.js +/** +* @category Locales +* @summary Gujarati locale (India). +* @language Gujarati +* @iso-639-2 guj +* @author Manaday Mavani [@ManadayM](https://github.com/manadaym) +*/ +var gu = { + code: "gu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ઈસપૂ/i, /^ઈસ/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i, + abbreviated: /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, + wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i], + + any: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, + wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ર/i, + /^સો/i, + /^મં/i, + /^બુ/i, + /^ગુ/i, + /^શુ/i, + /^શ/i], + + any: [ + /^ર/i, + /^સો/i, + /^મં/i, + /^બુ/i, + /^ગુ/i, + /^શુ/i, + /^શ/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, + any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^મ\.?/i, + noon: /^બ/i, + morning: /સ/i, + afternoon: /બ/i, + evening: /સાં/i, + night: /રા/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/gu/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + gu: gu }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/cdn.min.js b/node_modules/date-fns/locale/gu/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..794ed9a8763aa10b0f6bed3083b3430ebc800603 --- /dev/null +++ b/node_modules/date-fns/locale/gu/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+`માં`:r+` પહેલાં`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM, y`,long:`d MMMM, y`,medium:`d MMM, y`,short:`d/M/yy`},defaultWidth:`full`}),time:c({formats:{full:`hh:mm:ss a zzzz`,long:`hh:mm:ss a z`,medium:`hh:mm:ss a`,short:`hh:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'પાછલા' eeee p`,yesterday:`'ગઈકાલે' p`,today:`'આજે' p`,tomorrow:`'આવતીકાલે' p`,nextWeek:`eeee p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ઈસપૂ`,`ઈસ`],abbreviated:[`ઈ.સ.પૂર્વે`,`ઈ.સ.`],wide:[`ઈસવીસન પૂર્વે`,`ઈસવીસન`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1લો ત્રિમાસ`,`2જો ત્રિમાસ`,`3જો ત્રિમાસ`,`4થો ત્રિમાસ`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`જા`,`ફે`,`મા`,`એ`,`મે`,`જૂ`,`જુ`,`ઓ`,`સ`,`ઓ`,`ન`,`ડિ`],abbreviated:[`જાન્યુ`,`ફેબ્રુ`,`માર્ચ`,`એપ્રિલ`,`મે`,`જૂન`,`જુલાઈ`,`ઑગસ્ટ`,`સપ્ટે`,`ઓક્ટો`,`નવે`,`ડિસે`],wide:[`જાન્યુઆરી`,`ફેબ્રુઆરી`,`માર્ચ`,`એપ્રિલ`,`મે`,`જૂન`,`જુલાઇ`,`ઓગસ્ટ`,`સપ્ટેમ્બર`,`ઓક્ટોબર`,`નવેમ્બર`,`ડિસેમ્બર`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ર`,`સો`,`મં`,`બુ`,`ગુ`,`શુ`,`શ`],short:[`ર`,`સો`,`મં`,`બુ`,`ગુ`,`શુ`,`શ`],abbreviated:[`રવિ`,`સોમ`,`મંગળ`,`બુધ`,`ગુરુ`,`શુક્ર`,`શનિ`],wide:[`રવિવાર`,`સોમવાર`,`મંગળવાર`,`બુધવાર`,`ગુરુવાર`,`શુક્રવાર`,`શનિવાર`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`મ.રાત્રિ`,noon:`બ.`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},abbreviated:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},wide:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`મ.રાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},abbreviated:{am:`AM`,pm:`PM`,midnight:`મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},wide:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`gu`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ઈસપૂ/i,/^ઈસ/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{gu:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/he.cjs b/node_modules/date-fns/locale/he.cjs new file mode 100644 index 0000000000000000000000000000000000000000..507222122323dfef99196d20fa57ac8515f70756 --- /dev/null +++ b/node_modules/date-fns/locale/he.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.he = void 0; +var _index = require("./he/_lib/formatDistance.cjs"); +var _index2 = require("./he/_lib/formatLong.cjs"); +var _index3 = require("./he/_lib/formatRelative.cjs"); +var _index4 = require("./he/_lib/localize.cjs"); +var _index5 = require("./he/_lib/match.cjs"); + +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +const he = (exports.he = { + code: "he", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/he.d.cts b/node_modules/date-fns/locale/he.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bcccf7e9a27533f5603830ec2bd9515d24d23b5a --- /dev/null +++ b/node_modules/date-fns/locale/he.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +export declare const he: Locale; diff --git a/node_modules/date-fns/locale/he.d.ts b/node_modules/date-fns/locale/he.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bcccf7e9a27533f5603830ec2bd9515d24d23b5a --- /dev/null +++ b/node_modules/date-fns/locale/he.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +export declare const he: Locale; diff --git a/node_modules/date-fns/locale/he.js b/node_modules/date-fns/locale/he.js new file mode 100644 index 0000000000000000000000000000000000000000..62db49e1163bd44416701e962e075168d3540daa --- /dev/null +++ b/node_modules/date-fns/locale/he.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./he/_lib/formatDistance.js"; +import { formatLong } from "./he/_lib/formatLong.js"; +import { formatRelative } from "./he/_lib/formatRelative.js"; +import { localize } from "./he/_lib/localize.js"; +import { match } from "./he/_lib/match.js"; + +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +export const he = { + code: "he", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default he; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.cjs b/node_modules/date-fns/locale/he/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0e30cbe30493a58dc35d8de8c2c2a7a224a8ab16 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "פחות משנייה", + two: "פחות משתי שניות", + other: "פחות מ־{{count}} שניות", + }, + + xSeconds: { + one: "שנייה", + two: "שתי שניות", + other: "{{count}} שניות", + }, + + halfAMinute: "חצי דקה", + + lessThanXMinutes: { + one: "פחות מדקה", + two: "פחות משתי דקות", + other: "פחות מ־{{count}} דקות", + }, + + xMinutes: { + one: "דקה", + two: "שתי דקות", + other: "{{count}} דקות", + }, + + aboutXHours: { + one: "כשעה", + two: "כשעתיים", + other: "כ־{{count}} שעות", + }, + + xHours: { + one: "שעה", + two: "שעתיים", + other: "{{count}} שעות", + }, + + xDays: { + one: "יום", + two: "יומיים", + other: "{{count}} ימים", + }, + + aboutXWeeks: { + one: "כשבוע", + two: "כשבועיים", + other: "כ־{{count}} שבועות", + }, + + xWeeks: { + one: "שבוע", + two: "שבועיים", + other: "{{count}} שבועות", + }, + + aboutXMonths: { + one: "כחודש", + two: "כחודשיים", + other: "כ־{{count}} חודשים", + }, + + xMonths: { + one: "חודש", + two: "חודשיים", + other: "{{count}} חודשים", + }, + + aboutXYears: { + one: "כשנה", + two: "כשנתיים", + other: "כ־{{count}} שנים", + }, + + xYears: { + one: "שנה", + two: "שנתיים", + other: "{{count}} שנים", + }, + + overXYears: { + one: "יותר משנה", + two: "יותר משנתיים", + other: "יותר מ־{{count}} שנים", + }, + + almostXYears: { + one: "כמעט שנה", + two: "כמעט שנתיים", + other: "כמעט {{count}} שנים", + }, +}; + +const formatDistance = (token, count, options) => { + // Return word instead of `in one day` or `one day ago` + if (token === "xDays" && options?.addSuffix && count <= 2) { + if (options.comparison && options.comparison > 0) { + return count === 1 ? "מחר" : "מחרתיים"; + } + + return count === 1 ? "אתמול" : "שלשום"; + } + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "בעוד " + result; + } else { + return "לפני " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/he/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/he/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.js b/node_modules/date-fns/locale/he/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..7d0b655e324cfd65142dfc0ada351a714d2c44ef --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.js @@ -0,0 +1,127 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "פחות משנייה", + two: "פחות משתי שניות", + other: "פחות מ־{{count}} שניות", + }, + + xSeconds: { + one: "שנייה", + two: "שתי שניות", + other: "{{count}} שניות", + }, + + halfAMinute: "חצי דקה", + + lessThanXMinutes: { + one: "פחות מדקה", + two: "פחות משתי דקות", + other: "פחות מ־{{count}} דקות", + }, + + xMinutes: { + one: "דקה", + two: "שתי דקות", + other: "{{count}} דקות", + }, + + aboutXHours: { + one: "כשעה", + two: "כשעתיים", + other: "כ־{{count}} שעות", + }, + + xHours: { + one: "שעה", + two: "שעתיים", + other: "{{count}} שעות", + }, + + xDays: { + one: "יום", + two: "יומיים", + other: "{{count}} ימים", + }, + + aboutXWeeks: { + one: "כשבוע", + two: "כשבועיים", + other: "כ־{{count}} שבועות", + }, + + xWeeks: { + one: "שבוע", + two: "שבועיים", + other: "{{count}} שבועות", + }, + + aboutXMonths: { + one: "כחודש", + two: "כחודשיים", + other: "כ־{{count}} חודשים", + }, + + xMonths: { + one: "חודש", + two: "חודשיים", + other: "{{count}} חודשים", + }, + + aboutXYears: { + one: "כשנה", + two: "כשנתיים", + other: "כ־{{count}} שנים", + }, + + xYears: { + one: "שנה", + two: "שנתיים", + other: "{{count}} שנים", + }, + + overXYears: { + one: "יותר משנה", + two: "יותר משנתיים", + other: "יותר מ־{{count}} שנים", + }, + + almostXYears: { + one: "כמעט שנה", + two: "כמעט שנתיים", + other: "כמעט {{count}} שנים", + }, +}; + +export const formatDistance = (token, count, options) => { + // Return word instead of `in one day` or `one day ago` + if (token === "xDays" && options?.addSuffix && count <= 2) { + if (options.comparison && options.comparison > 0) { + return count === 1 ? "מחר" : "מחרתיים"; + } + + return count === 1 ? "אתמול" : "שלשום"; + } + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "בעוד " + result; + } else { + return "לפני " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.cjs b/node_modules/date-fns/locale/he/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..69156ef1f5adc3f714ddd168ec6f1d6f8d8ad26a --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d בMMMM y", + long: "d בMMMM y", + medium: "d בMMM y", + short: "d.M.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'בשעה' {{time}}", + long: "{{date}} 'בשעה' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.d.cts b/node_modules/date-fns/locale/he/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.d.ts b/node_modules/date-fns/locale/he/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.js b/node_modules/date-fns/locale/he/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..637fab64a8eef5e90ed556ad18f8597d6f5e4a6b --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d בMMMM y", + long: "d בMMMM y", + medium: "d בMMM y", + short: "d.M.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'בשעה' {{time}}", + long: "{{date}} 'בשעה' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.cjs b/node_modules/date-fns/locale/he/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..800a977c8db4e3a211f4b461cacc638bfeeeb092 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/he/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/he/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.js b/node_modules/date-fns/locale/he/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..e1d31d4d5c126a31d2f41abfaa103120d48af809 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/he/_lib/localize.cjs b/node_modules/date-fns/locale/he/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..73bb01d549127c646ea95420e3b92b59bec3393f --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize.cjs @@ -0,0 +1,211 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["לפנה״ס", "לספירה"], + abbreviated: ["לפנה״ס", "לספירה"], + wide: ["לפני הספירה", "לספירה"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["רבעון 1", "רבעון 2", "רבעון 3", "רבעון 4"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "ינו׳", + "פבר׳", + "מרץ", + "אפר׳", + "מאי", + "יוני", + "יולי", + "אוג׳", + "ספט׳", + "אוק׳", + "נוב׳", + "דצמ׳", + ], + + wide: [ + "ינואר", + "פברואר", + "מרץ", + "אפריל", + "מאי", + "יוני", + "יולי", + "אוגוסט", + "ספטמבר", + "אוקטובר", + "נובמבר", + "דצמבר", + ], +}; + +const dayValues = { + narrow: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], + short: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], + abbreviated: [ + "יום א׳", + "יום ב׳", + "יום ג׳", + "יום ד׳", + "יום ה׳", + "יום ו׳", + "שבת", + ], + + wide: [ + "יום ראשון", + "יום שני", + "יום שלישי", + "יום רביעי", + "יום חמישי", + "יום שישי", + "יום שבת", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "בצהריים", + evening: "בערב", + night: "בלילה", + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה", + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + // We only show words till 10 + if (number <= 0 || number > 10) return String(number); + + const unit = String(options?.unit); + + const isFemale = ["year", "hour", "minute", "second"].indexOf(unit) >= 0; + + const male = [ + "ראשון", + "שני", + "שלישי", + "רביעי", + "חמישי", + "שישי", + "שביעי", + "שמיני", + "תשיעי", + "עשירי", + ]; + + const female = [ + "ראשונה", + "שנייה", + "שלישית", + "רביעית", + "חמישית", + "שישית", + "שביעית", + "שמינית", + "תשיעית", + "עשירית", + ]; + + const index = number - 1; + return isFemale ? female[index] : male[index]; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/he/_lib/localize.d.cts b/node_modules/date-fns/locale/he/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/he/_lib/localize.d.ts b/node_modules/date-fns/locale/he/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/he/_lib/localize.js b/node_modules/date-fns/locale/he/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..b67807be53b15db9df88ced6a9bfe0baeeb6af5c --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize.js @@ -0,0 +1,209 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["לפנה״ס", "לספירה"], + abbreviated: ["לפנה״ס", "לספירה"], + wide: ["לפני הספירה", "לספירה"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["רבעון 1", "רבעון 2", "רבעון 3", "רבעון 4"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "ינו׳", + "פבר׳", + "מרץ", + "אפר׳", + "מאי", + "יוני", + "יולי", + "אוג׳", + "ספט׳", + "אוק׳", + "נוב׳", + "דצמ׳", + ], + + wide: [ + "ינואר", + "פברואר", + "מרץ", + "אפריל", + "מאי", + "יוני", + "יולי", + "אוגוסט", + "ספטמבר", + "אוקטובר", + "נובמבר", + "דצמבר", + ], +}; + +const dayValues = { + narrow: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], + short: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], + abbreviated: [ + "יום א׳", + "יום ב׳", + "יום ג׳", + "יום ד׳", + "יום ה׳", + "יום ו׳", + "שבת", + ], + + wide: [ + "יום ראשון", + "יום שני", + "יום שלישי", + "יום רביעי", + "יום חמישי", + "יום שישי", + "יום שבת", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "בצהריים", + evening: "בערב", + night: "בלילה", + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה", + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + // We only show words till 10 + if (number <= 0 || number > 10) return String(number); + + const unit = String(options?.unit); + + const isFemale = ["year", "hour", "minute", "second"].indexOf(unit) >= 0; + + const male = [ + "ראשון", + "שני", + "שלישי", + "רביעי", + "חמישי", + "שישי", + "שביעי", + "שמיני", + "תשיעי", + "עשירי", + ]; + + const female = [ + "ראשונה", + "שנייה", + "שלישית", + "רביעית", + "חמישית", + "שישית", + "שביעית", + "שמינית", + "תשיעית", + "עשירית", + ]; + + const index = number - 1; + return isFemale ? female[index] : male[index]; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/he/_lib/match.cjs b/node_modules/date-fns/locale/he/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..cad1bd405155cdb7605503155dab2dd537a59b89 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match.cjs @@ -0,0 +1,141 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = + /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +const parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; + +const matchEraPatterns = { + narrow: /^ל(ספירה|פנה״ס)/i, + abbreviated: /^ל(ספירה|פנה״ס)/i, + wide: /^ל(פני ה)?ספירה/i, +}; +const parseEraPatterns = { + any: [/^לפ/i, /^לס/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^רבעון [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^\d+/i, + abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, + wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1$/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ינ/i, + /^פ/i, + /^מר/i, + /^אפ/i, + /^מא/i, + /^יונ/i, + /^יול/i, + /^אוג/i, + /^ס/i, + /^אוק/i, + /^נ/i, + /^ד/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[אבגדהוש]׳/i, + short: /^[אבגדהוש]׳/i, + abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, + wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i, +}; +const parseDayPatterns = { + abbreviated: [/א׳$/i, /ב׳$/i, /ג׳$/i, /ד׳$/i, /ה׳$/i, /ו׳$/i, /^ש/i], + wide: [/ן$/i, /ני$/i, /לישי$/i, /עי$/i, /מישי$/i, /שישי$/i, /ת$/i], + any: [/^א/i, /^ב/i, /^ג/i, /^ד/i, /^ה/i, /^ו/i, /^ש/i], +}; + +const matchDayPeriodPatterns = { + any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^לפ/i, + pm: /^אחה/i, + midnight: /^ח/i, + noon: /^צ/i, + morning: /בוקר/i, + afternoon: /בצ|אחר/i, + evening: /ערב/i, + night: /לילה/i, + }, +}; + +const ordinalName = ["רא", "שנ", "של", "רב", "ח", "שי", "שב", "שמ", "ת", "ע"]; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => { + const number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + }, + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/he/_lib/match.d.cts b/node_modules/date-fns/locale/he/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/he/_lib/match.d.ts b/node_modules/date-fns/locale/he/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/he/_lib/match.js b/node_modules/date-fns/locale/he/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..61ac4f53d00f90d186fa1e5152ac3ee7a6bde85f --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match.js @@ -0,0 +1,138 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = + /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +const parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; + +const matchEraPatterns = { + narrow: /^ל(ספירה|פנה״ס)/i, + abbreviated: /^ל(ספירה|פנה״ס)/i, + wide: /^ל(פני ה)?ספירה/i, +}; +const parseEraPatterns = { + any: [/^לפ/i, /^לס/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^רבעון [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^\d+/i, + abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, + wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1$/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ינ/i, + /^פ/i, + /^מר/i, + /^אפ/i, + /^מא/i, + /^יונ/i, + /^יול/i, + /^אוג/i, + /^ס/i, + /^אוק/i, + /^נ/i, + /^ד/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[אבגדהוש]׳/i, + short: /^[אבגדהוש]׳/i, + abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, + wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i, +}; +const parseDayPatterns = { + abbreviated: [/א׳$/i, /ב׳$/i, /ג׳$/i, /ד׳$/i, /ה׳$/i, /ו׳$/i, /^ש/i], + wide: [/ן$/i, /ני$/i, /לישי$/i, /עי$/i, /מישי$/i, /שישי$/i, /ת$/i], + any: [/^א/i, /^ב/i, /^ג/i, /^ד/i, /^ה/i, /^ו/i, /^ש/i], +}; + +const matchDayPeriodPatterns = { + any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^לפ/i, + pm: /^אחה/i, + midnight: /^ח/i, + noon: /^צ/i, + morning: /בוקר/i, + afternoon: /בצ|אחר/i, + evening: /ערב/i, + night: /לילה/i, + }, +}; + +const ordinalName = ["רא", "שנ", "של", "רב", "ח", "שי", "שב", "שמ", "ת", "ע"]; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => { + const number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/he/cdn.js b/node_modules/date-fns/locale/he/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..94863627daf71b8e78dd0259f1b844a923a5f50e --- /dev/null +++ b/node_modules/date-fns/locale/he/cdn.js @@ -0,0 +1,662 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/he/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "פחות משנייה", + two: "פחות משתי שניות", + other: "פחות מ־{{count}} שניות" + }, + xSeconds: { + one: "שנייה", + two: "שתי שניות", + other: "{{count}} שניות" + }, + halfAMinute: "חצי דקה", + lessThanXMinutes: { + one: "פחות מדקה", + two: "פחות משתי דקות", + other: "פחות מ־{{count}} דקות" + }, + xMinutes: { + one: "דקה", + two: "שתי דקות", + other: "{{count}} דקות" + }, + aboutXHours: { + one: "כשעה", + two: "כשעתיים", + other: "כ־{{count}} שעות" + }, + xHours: { + one: "שעה", + two: "שעתיים", + other: "{{count}} שעות" + }, + xDays: { + one: "יום", + two: "יומיים", + other: "{{count}} ימים" + }, + aboutXWeeks: { + one: "כשבוע", + two: "כשבועיים", + other: "כ־{{count}} שבועות" + }, + xWeeks: { + one: "שבוע", + two: "שבועיים", + other: "{{count}} שבועות" + }, + aboutXMonths: { + one: "כחודש", + two: "כחודשיים", + other: "כ־{{count}} חודשים" + }, + xMonths: { + one: "חודש", + two: "חודשיים", + other: "{{count}} חודשים" + }, + aboutXYears: { + one: "כשנה", + two: "כשנתיים", + other: "כ־{{count}} שנים" + }, + xYears: { + one: "שנה", + two: "שנתיים", + other: "{{count}} שנים" + }, + overXYears: { + one: "יותר משנה", + two: "יותר משנתיים", + other: "יותר מ־{{count}} שנים" + }, + almostXYears: { + one: "כמעט שנה", + two: "כמעט שנתיים", + other: "כמעט {{count}} שנים" + } +}; +var formatDistance = function formatDistance(token, count, options) { + if (token === "xDays" && options !== null && options !== void 0 && options.addSuffix && count <= 2) { + if (options.comparison && options.comparison > 0) return count === 1 ? "מחר" : "מחרתיים"; + return count === 1 ? "אתמול" : "שלשום"; + } + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 2) result = tokenValue.two;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "בעוד " + result;else + return "לפני " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d בMMMM y", + long: "d בMMMM y", + medium: "d בMMM y", + short: "d.M.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'בשעה' {{time}}", + long: "{{date}} 'בשעה' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/he/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/he/_lib/localize.js +var eraValues = { + narrow: ["לפנה״ס", "לספירה"], + abbreviated: ["לפנה״ס", "לספירה"], + wide: ["לפני הספירה", "לספירה"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "רבעון 1", + "רבעון 2", + "רבעון 3", + "רבעון 4"] + +}; +var monthValues = { + narrow: [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12"], + + abbreviated: [ + "ינו׳", + "פבר׳", + "מרץ", + "אפר׳", + "מאי", + "יוני", + "יולי", + "אוג׳", + "ספט׳", + "אוק׳", + "נוב׳", + "דצמ׳"], + + wide: [ + "ינואר", + "פברואר", + "מרץ", + "אפריל", + "מאי", + "יוני", + "יולי", + "אוגוסט", + "ספטמבר", + "אוקטובר", + "נובמבר", + "דצמבר"] + +}; +var dayValues = { + narrow: [ + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳"], + + short: [ + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳"], + + abbreviated: [ + "יום א׳", + "יום ב׳", + "יום ג׳", + "יום ד׳", + "יום ה׳", + "יום ו׳", + "שבת"], + + wide: [ + "יום ראשון", + "יום שני", + "יום שלישי", + "יום רביעי", + "יום חמישי", + "יום שישי", + "יום שבת"] + +}; +var dayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה" + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה" + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "בצהריים", + evening: "בערב", + night: "בלילה" + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה" + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + if (number <= 0 || number > 10) return String(number); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var isFemale = [ + "year", + "hour", + "minute", + "second"]. + indexOf(unit) >= 0; + var male = [ + "ראשון", + "שני", + "שלישי", + "רביעי", + "חמישי", + "שישי", + "שביעי", + "שמיני", + "תשיעי", + "עשירי"]; + + var female = [ + "ראשונה", + "שנייה", + "שלישית", + "רביעית", + "חמישית", + "שישית", + "שביעית", + "שמינית", + "תשיעית", + "עשירית"]; + + var index = number - 1; + return isFemale ? female[index] : male[index]; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/he/_lib/match.js +var matchOrdinalNumberPattern = /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +var parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; +var matchEraPatterns = { + narrow: /^ל(ספירה|פנה״ס)/i, + abbreviated: /^ל(ספירה|פנה״ס)/i, + wide: /^ל(פני ה)?ספירה/i +}; +var parseEraPatterns = { any: [/^לפ/i, /^לס/i] }; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^רבעון [1234]/i +}; +var parseQuarterPatterns = { any: [ + /1/i, + /2/i, + /3/i, + /4/i] +}; +var matchMonthPatterns = { + narrow: /^\d+/i, + abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, + wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i +}; +var parseMonthPatterns = { + narrow: [ + /^1$/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i], + + any: [ + /^ינ/i, + /^פ/i, + /^מר/i, + /^אפ/i, + /^מא/i, + /^יונ/i, + /^יול/i, + /^אוג/i, + /^ס/i, + /^אוק/i, + /^נ/i, + /^ד/i] + +}; +var matchDayPatterns = { + narrow: /^[אבגדהוש]׳/i, + short: /^[אבגדהוש]׳/i, + abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, + wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i +}; +var parseDayPatterns = { + abbreviated: [ + /א׳$/i, + /ב׳$/i, + /ג׳$/i, + /ד׳$/i, + /ה׳$/i, + /ו׳$/i, + /^ש/i], + + wide: [ + /ן$/i, + /ני$/i, + /לישי$/i, + /עי$/i, + /מישי$/i, + /שישי$/i, + /ת$/i], + + any: [ + /^א/i, + /^ב/i, + /^ג/i, + /^ד/i, + /^ה/i, + /^ו/i, + /^ש/i] + +}; +var matchDayPeriodPatterns = { any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i }; +var parseDayPeriodPatterns = { any: { + am: /^לפ/i, + pm: /^אחה/i, + midnight: /^ח/i, + noon: /^צ/i, + morning: /בוקר/i, + afternoon: /בצ|אחר/i, + evening: /ערב/i, + night: /לילה/i + } }; +var ordinalName = [ +"רא", +"שנ", +"של", +"רב", +"ח", +"שי", +"שב", +"שמ", +"ת", +"ע"]; + +//#endregion +//#region dist/date-fns/locale/he.js +/** +* @category Locales +* @summary Hebrew locale. +* @language Hebrew +* @iso-639-2 heb +* @author Nir Lahad [@nirlah](https://github.com/nirlah) +*/ +var he = { + code: "he", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + var number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/he/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + he: he }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/cdn.min.js b/node_modules/date-fns/locale/he/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..54eb59cad4d7bdd3d5dcd7d7fa8a64292df86dee --- /dev/null +++ b/node_modules/date-fns/locale/he/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?t===1?`מחר`:`מחרתיים`:t===1?`אתמול`:`שלשום`;var r,i=o[e];return r=typeof i==`string`?i:t===1?i.one:t===2?i.two:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`בעוד `+r:`לפני `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d בMMMM y`,long:`d בMMMM y`,medium:`d בMMM y`,short:`d.M.y`},defaultWidth:`full`}),time:c({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'בשעה' {{time}}`,long:`{{date}} 'בשעה' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'שעבר בשעה' p`,yesterday:`'אתמול בשעה' p`,today:`'היום בשעה' p`,tomorrow:`'מחר בשעה' p`,nextWeek:`eeee 'בשעה' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);if(n<=0||n>10)return String(n);var r=String(t?.unit),i=[`year`,`hour`,`minute`,`second`].indexOf(r)>=0,a=[`ראשון`,`שני`,`שלישי`,`רביעי`,`חמישי`,`שישי`,`שביעי`,`שמיני`,`תשיעי`,`עשירי`],o=[`ראשונה`,`שנייה`,`שלישית`,`רביעית`,`חמישית`,`שישית`,`שביעית`,`שמינית`,`תשיעית`,`עשירית`],s=n-1;return i?o[s]:a[s]},era:f({values:{narrow:[`לפנה״ס`,`לספירה`],abbreviated:[`לפנה״ס`,`לספירה`],wide:[`לפני הספירה`,`לספירה`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`רבעון 1`,`רבעון 2`,`רבעון 3`,`רבעון 4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`ינו׳`,`פבר׳`,`מרץ`,`אפר׳`,`מאי`,`יוני`,`יולי`,`אוג׳`,`ספט׳`,`אוק׳`,`נוב׳`,`דצמ׳`],wide:[`ינואר`,`פברואר`,`מרץ`,`אפריל`,`מאי`,`יוני`,`יולי`,`אוגוסט`,`ספטמבר`,`אוקטובר`,`נובמבר`,`דצמבר`]},defaultWidth:`wide`}),day:f({values:{narrow:[`א׳`,`ב׳`,`ג׳`,`ד׳`,`ה׳`,`ו׳`,`ש׳`],short:[`א׳`,`ב׳`,`ג׳`,`ד׳`,`ה׳`,`ו׳`,`ש׳`],abbreviated:[`יום א׳`,`יום ב׳`,`יום ג׳`,`יום ד׳`,`יום ה׳`,`יום ו׳`,`שבת`],wide:[`יום ראשון`,`יום שני`,`יום שלישי`,`יום רביעי`,`יום חמישי`,`יום שישי`,`יום שבת`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`},abbreviated:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`},wide:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`בצהריים`,evening:`בערב`,night:`בלילה`},abbreviated:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`אחר הצהריים`,evening:`בערב`,night:`בלילה`},wide:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`אחר הצהריים`,evening:`בערב`,night:`בלילה`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,y=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,b={narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},x={any:[/^לפ/i,/^לס/i]},S={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},C={any:[/1/i,/2/i,/3/i,/4/i]},w={narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},T={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},E={narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},D={abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},O={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},k={any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},A=[`רא`,`שנ`,`של`,`רב`,`ח`,`שי`,`שב`,`שמ`,`ת`,`ע`],j={code:`he`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:v,parsePattern:y,valueCallback:function(e){var t=parseInt(e,10);return isNaN(t)?A.indexOf(e)+1:t}}),era:m({matchPatterns:b,defaultMatchWidth:`wide`,parsePatterns:x,defaultParseWidth:`any`}),quarter:m({matchPatterns:S,defaultMatchWidth:`wide`,parsePatterns:C,defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:w,defaultMatchWidth:`wide`,parsePatterns:T,defaultParseWidth:`any`}),day:m({matchPatterns:E,defaultMatchWidth:`wide`,parsePatterns:D,defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:O,defaultMatchWidth:`any`,parsePatterns:k,defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{he:j})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi.cjs b/node_modules/date-fns/locale/hi.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c34a8f066296a4e841ab511d1d3f86acd7c64e06 --- /dev/null +++ b/node_modules/date-fns/locale/hi.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.hi = void 0; +var _index = require("./hi/_lib/formatDistance.cjs"); +var _index2 = require("./hi/_lib/formatLong.cjs"); +var _index3 = require("./hi/_lib/formatRelative.cjs"); +var _index4 = require("./hi/_lib/localize.cjs"); +var _index5 = require("./hi/_lib/match.cjs"); + +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +const hi = (exports.hi = { + code: "hi", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/hi.d.cts b/node_modules/date-fns/locale/hi.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..114a7942149fc1f44edca792ff8e013983009b36 --- /dev/null +++ b/node_modules/date-fns/locale/hi.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +export declare const hi: Locale; diff --git a/node_modules/date-fns/locale/hi.d.ts b/node_modules/date-fns/locale/hi.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..114a7942149fc1f44edca792ff8e013983009b36 --- /dev/null +++ b/node_modules/date-fns/locale/hi.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +export declare const hi: Locale; diff --git a/node_modules/date-fns/locale/hi.js b/node_modules/date-fns/locale/hi.js new file mode 100644 index 0000000000000000000000000000000000000000..25ddc34570cbcd504a7cf45b35af1b25e2e254b1 --- /dev/null +++ b/node_modules/date-fns/locale/hi.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./hi/_lib/formatDistance.js"; +import { formatLong } from "./hi/_lib/formatLong.js"; +import { formatRelative } from "./hi/_lib/formatRelative.js"; +import { localize } from "./hi/_lib/localize.js"; +import { match } from "./hi/_lib/match.js"; + +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +export const hi = { + code: "hi", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default hi; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.cjs b/node_modules/date-fns/locale/hi/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0dbba6ed6fb5a043b13115c89b557e841eb759cd --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.cjs @@ -0,0 +1,111 @@ +"use strict"; +exports.formatDistance = void 0; +var _index = require("./localize.cjs"); + +// Source: https://www.unicode.org/cldr/charts/32/summary/hi.html + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "१ सेकंड से कम", // CLDR #1310 + other: "{{count}} सेकंड से कम", + }, + + xSeconds: { + one: "१ सेकंड", + other: "{{count}} सेकंड", + }, + + halfAMinute: "आधा मिनट", + + lessThanXMinutes: { + one: "१ मिनट से कम", + other: "{{count}} मिनट से कम", + }, + + xMinutes: { + one: "१ मिनट", // CLDR #1307 + other: "{{count}} मिनट", + }, + + aboutXHours: { + one: "लगभग १ घंटा", + other: "लगभग {{count}} घंटे", + }, + + xHours: { + one: "१ घंटा", // CLDR #1304 + other: "{{count}} घंटे", // CLDR #4467 + }, + + xDays: { + one: "१ दिन", // CLDR #1286 + other: "{{count}} दिन", + }, + + aboutXWeeks: { + one: "लगभग १ सप्ताह", + other: "लगभग {{count}} सप्ताह", + }, + + xWeeks: { + one: "१ सप्ताह", + other: "{{count}} सप्ताह", + }, + + aboutXMonths: { + one: "लगभग १ महीना", + other: "लगभग {{count}} महीने", + }, + + xMonths: { + one: "१ महीना", + other: "{{count}} महीने", + }, + + aboutXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष", // CLDR #4823 + }, + + xYears: { + one: "१ वर्ष", + other: "{{count}} वर्ष", + }, + + overXYears: { + one: "१ वर्ष से अधिक", + other: "{{count}} वर्ष से अधिक", + }, + + almostXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace( + "{{count}}", + (0, _index.numberToLocale)(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "मे "; + } else { + return result + " पहले"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..749a5360206cd0cde56f476073b6b463577c1747 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.cts @@ -0,0 +1,9 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export type FormatDistanceTokanRelativeValue = { + one: string; + other: string; +}; +export type FormatDistanceLocaleValue = + | FormatDistanceTokanRelativeValue + | string; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..749a5360206cd0cde56f476073b6b463577c1747 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.ts @@ -0,0 +1,9 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export type FormatDistanceTokanRelativeValue = { + one: string; + other: string; +}; +export type FormatDistanceLocaleValue = + | FormatDistanceTokanRelativeValue + | string; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.js b/node_modules/date-fns/locale/hi/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..6cb086456977c84016aef34107da4cb993e7c2cb --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.js @@ -0,0 +1,105 @@ +import { numberToLocale } from "./localize.js"; + +// Source: https://www.unicode.org/cldr/charts/32/summary/hi.html + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "१ सेकंड से कम", // CLDR #1310 + other: "{{count}} सेकंड से कम", + }, + + xSeconds: { + one: "१ सेकंड", + other: "{{count}} सेकंड", + }, + + halfAMinute: "आधा मिनट", + + lessThanXMinutes: { + one: "१ मिनट से कम", + other: "{{count}} मिनट से कम", + }, + + xMinutes: { + one: "१ मिनट", // CLDR #1307 + other: "{{count}} मिनट", + }, + + aboutXHours: { + one: "लगभग १ घंटा", + other: "लगभग {{count}} घंटे", + }, + + xHours: { + one: "१ घंटा", // CLDR #1304 + other: "{{count}} घंटे", // CLDR #4467 + }, + + xDays: { + one: "१ दिन", // CLDR #1286 + other: "{{count}} दिन", + }, + + aboutXWeeks: { + one: "लगभग १ सप्ताह", + other: "लगभग {{count}} सप्ताह", + }, + + xWeeks: { + one: "१ सप्ताह", + other: "{{count}} सप्ताह", + }, + + aboutXMonths: { + one: "लगभग १ महीना", + other: "लगभग {{count}} महीने", + }, + + xMonths: { + one: "१ महीना", + other: "{{count}} महीने", + }, + + aboutXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष", // CLDR #4823 + }, + + xYears: { + one: "१ वर्ष", + other: "{{count}} वर्ष", + }, + + overXYears: { + one: "१ वर्ष से अधिक", + other: "{{count}} वर्ष से अधिक", + }, + + almostXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", numberToLocale(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "मे "; + } else { + return result + " पहले"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.cjs b/node_modules/date-fns/locale/hi/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a58c7a04b78e83138f3070aa5f8d31ffd35aa0e3 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do MMMM, y", // CLDR #1787 + long: "do MMMM, y", // CLDR #1788 + medium: "d MMM, y", // CLDR #1789 + short: "dd/MM/yyyy", // CLDR #1790 +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", // CLDR #1791 + long: "h:mm:ss a z", // CLDR #1792 + medium: "h:mm:ss a", // CLDR #1793 + short: "h:mm a", // CLDR #1794 +}; + +const dateTimeFormats = { + full: "{{date}} 'को' {{time}}", // CLDR #1795 + long: "{{date}} 'को' {{time}}", // CLDR #1796 + medium: "{{date}}, {{time}}", // CLDR #1797 + short: "{{date}}, {{time}}", // CLDR #1798 +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.d.cts b/node_modules/date-fns/locale/hi/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.d.ts b/node_modules/date-fns/locale/hi/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.js b/node_modules/date-fns/locale/hi/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..dd60b1775432e04b0d7a29ccb098136af7318354 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do MMMM, y", // CLDR #1787 + long: "do MMMM, y", // CLDR #1788 + medium: "d MMM, y", // CLDR #1789 + short: "dd/MM/yyyy", // CLDR #1790 +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", // CLDR #1791 + long: "h:mm:ss a z", // CLDR #1792 + medium: "h:mm:ss a", // CLDR #1793 + short: "h:mm a", // CLDR #1794 +}; + +const dateTimeFormats = { + full: "{{date}} 'को' {{time}}", // CLDR #1795 + long: "{{date}} 'को' {{time}}", // CLDR #1796 + medium: "{{date}}, {{time}}", // CLDR #1797 + short: "{{date}}, {{time}}", // CLDR #1798 +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.cjs b/node_modules/date-fns/locale/hi/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6d14c0862644644c3b5e7e5e227e5c1bac61ced2 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.js b/node_modules/date-fns/locale/hi/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..efc65b221f62a4cc9c5b707f3bffcf163718bdee --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/hi/_lib/localize.cjs b/node_modules/date-fns/locale/hi/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0cea883dee73e474608e50e7f582a7551417715a --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize.cjs @@ -0,0 +1,231 @@ +"use strict"; +exports.localeToNumber = localeToNumber; +exports.localize = void 0; +exports.numberToLocale = numberToLocale; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const numberValues = { + locale: { + 1: "१", + 2: "२", + 3: "३", + 4: "४", + 5: "५", + 6: "६", + 7: "७", + 8: "८", + 9: "९", + 0: "०", + }, + number: { + "१": "1", + "२": "2", + "३": "3", + "४": "4", + "५": "5", + "६": "6", + "७": "7", + "८": "8", + "९": "9", + "०": "0", + }, +}; + +// CLDR #1585 - #1592 +const eraValues = { + narrow: ["ईसा-पूर्व", "ईस्वी"], + abbreviated: ["ईसा-पूर्व", "ईस्वी"], + wide: ["ईसा-पूर्व", "ईसवी सन"], +}; + +// CLDR #1593 - #1616 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ति1", "ति2", "ति3", "ति4"], + wide: ["पहली तिमाही", "दूसरी तिमाही", "तीसरी तिमाही", "चौथी तिमाही"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +// https://www.unicode.org/cldr/charts/32/summary/hi.html +// CLDR #1617 - #1688 +const monthValues = { + narrow: [ + "ज", + "फ़", + "मा", + "अ", + "मई", + "जू", + "जु", + "अग", + "सि", + "अक्टू", + "न", + "दि", + ], + + abbreviated: [ + "जन", + "फ़र", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुल", + "अग", + "सित", + "अक्टू", + "नव", + "दिस", + ], + + wide: [ + "जनवरी", + "फ़रवरी", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुलाई", + "अगस्त", + "सितंबर", + "अक्टूबर", + "नवंबर", + "दिसंबर", + ], +}; + +// CLDR #1689 - #1744 +const dayValues = { + narrow: ["र", "सो", "मं", "बु", "गु", "शु", "श"], + short: ["र", "सो", "मं", "बु", "गु", "शु", "श"], + abbreviated: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], + wide: [ + "रविवार", + "सोमवार", + "मंगलवार", + "बुधवार", + "गुरुवार", + "शुक्रवार", + "शनिवार", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return numberToLocale(number); +}; + +function localeToNumber(locale) { + const enNumber = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(enNumber); +} + +function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/hi/_lib/localize.d.cts b/node_modules/date-fns/locale/hi/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..6de289ec302a6615f4d09e37f69d36ea4d68e7c7 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize.d.cts @@ -0,0 +1,37 @@ +import type { Localize } from "../../types.ts"; +type hiLocaleNumberType = + | "\u0967" + | "\u0968" + | "\u0969" + | "\u096A" + | "\u096B" + | "\u096C" + | "\u096D" + | "\u096E" + | "\u096F" + | "\u0966"; +type enLocaleNumberType = + | "1" + | "2" + | "3" + | "4" + | "5" + | "6" + | "7" + | "8" + | "9" + | "0"; +type enHiLocaleNumberType = { + [enNumber in enLocaleNumberType]: hiLocaleNumberType; +}; +type hiLocaleEnNumberType = { + [hiNumber in hiLocaleNumberType]: enLocaleNumberType; +}; +export interface hiLocaleNumberValuesType { + locale: enHiLocaleNumberType; + number: hiLocaleEnNumberType; +} +export declare function localeToNumber(locale: string): number; +export declare function numberToLocale(enNumber: number): string; +export declare const localize: Localize; +export {}; diff --git a/node_modules/date-fns/locale/hi/_lib/localize.d.ts b/node_modules/date-fns/locale/hi/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6de289ec302a6615f4d09e37f69d36ea4d68e7c7 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize.d.ts @@ -0,0 +1,37 @@ +import type { Localize } from "../../types.ts"; +type hiLocaleNumberType = + | "\u0967" + | "\u0968" + | "\u0969" + | "\u096A" + | "\u096B" + | "\u096C" + | "\u096D" + | "\u096E" + | "\u096F" + | "\u0966"; +type enLocaleNumberType = + | "1" + | "2" + | "3" + | "4" + | "5" + | "6" + | "7" + | "8" + | "9" + | "0"; +type enHiLocaleNumberType = { + [enNumber in enLocaleNumberType]: hiLocaleNumberType; +}; +type hiLocaleEnNumberType = { + [hiNumber in hiLocaleNumberType]: enLocaleNumberType; +}; +export interface hiLocaleNumberValuesType { + locale: enHiLocaleNumberType; + number: hiLocaleEnNumberType; +} +export declare function localeToNumber(locale: string): number; +export declare function numberToLocale(enNumber: number): string; +export declare const localize: Localize; +export {}; diff --git a/node_modules/date-fns/locale/hi/_lib/localize.js b/node_modules/date-fns/locale/hi/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..612492970b0d87360acaf39b6f6e31e76d5a2ab0 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize.js @@ -0,0 +1,227 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const numberValues = { + locale: { + 1: "१", + 2: "२", + 3: "३", + 4: "४", + 5: "५", + 6: "६", + 7: "७", + 8: "८", + 9: "९", + 0: "०", + }, + number: { + "१": "1", + "२": "2", + "३": "3", + "४": "4", + "५": "5", + "६": "6", + "७": "7", + "८": "8", + "९": "9", + "०": "0", + }, +}; + +// CLDR #1585 - #1592 +const eraValues = { + narrow: ["ईसा-पूर्व", "ईस्वी"], + abbreviated: ["ईसा-पूर्व", "ईस्वी"], + wide: ["ईसा-पूर्व", "ईसवी सन"], +}; + +// CLDR #1593 - #1616 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ति1", "ति2", "ति3", "ति4"], + wide: ["पहली तिमाही", "दूसरी तिमाही", "तीसरी तिमाही", "चौथी तिमाही"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +// https://www.unicode.org/cldr/charts/32/summary/hi.html +// CLDR #1617 - #1688 +const monthValues = { + narrow: [ + "ज", + "फ़", + "मा", + "अ", + "मई", + "जू", + "जु", + "अग", + "सि", + "अक्टू", + "न", + "दि", + ], + + abbreviated: [ + "जन", + "फ़र", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुल", + "अग", + "सित", + "अक्टू", + "नव", + "दिस", + ], + + wide: [ + "जनवरी", + "फ़रवरी", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुलाई", + "अगस्त", + "सितंबर", + "अक्टूबर", + "नवंबर", + "दिसंबर", + ], +}; + +// CLDR #1689 - #1744 +const dayValues = { + narrow: ["र", "सो", "मं", "बु", "गु", "शु", "श"], + short: ["र", "सो", "मं", "बु", "गु", "शु", "श"], + abbreviated: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], + wide: [ + "रविवार", + "सोमवार", + "मंगलवार", + "बुधवार", + "गुरुवार", + "शुक्रवार", + "शनिवार", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return numberToLocale(number); +}; + +export function localeToNumber(locale) { + const enNumber = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(enNumber); +} + +export function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/hi/_lib/match.cjs b/node_modules/date-fns/locale/hi/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9364ad80fe65f681d1840a5fb819a2e90b8c0882 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); +var _index3 = require("./localize.cjs"); + +const matchOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; +const parseOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; + +const matchEraPatterns = { + narrow: /^(ईसा-पूर्व|ईस्वी)/i, + abbreviated: /^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, + wide: /^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i, +}; + +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ति[1234]/i, + wide: /^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, + abbreviated: /^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, + wide: /^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ज/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^न/i, + /^दि/i, + ], + + any: [ + /^जन/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^नव/i, + /^दिस/i, + ], +}; + +const matchDayPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[रविसोममंगलबुधगुरुशुक्रशनि]/i, + short: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + abbreviated: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + wide: /^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i, +}; +const parseDayPatterns = { + narrow: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], + + any: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, + any: /^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^पूर्वाह्न/i, + pm: /^अपराह्न/i, + midnight: /^मध्य/i, + noon: /^दो/i, + morning: /सु/i, + afternoon: /दो/i, + evening: /शा/i, + night: /रा/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: _index3.localeToNumber, + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/hi/_lib/match.d.cts b/node_modules/date-fns/locale/hi/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hi/_lib/match.d.ts b/node_modules/date-fns/locale/hi/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hi/_lib/match.js b/node_modules/date-fns/locale/hi/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..34880049793bf80f5f29ac4a3991f1311cb7ec91 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match.js @@ -0,0 +1,137 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { localeToNumber } from "./localize.js"; + +const matchOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; +const parseOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; + +const matchEraPatterns = { + narrow: /^(ईसा-पूर्व|ईस्वी)/i, + abbreviated: /^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, + wide: /^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i, +}; + +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ति[1234]/i, + wide: /^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, + abbreviated: /^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, + wide: /^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ज/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^न/i, + /^दि/i, + ], + + any: [ + /^जन/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^नव/i, + /^दिस/i, + ], +}; + +const matchDayPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[रविसोममंगलबुधगुरुशुक्रशनि]/i, + short: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + abbreviated: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + wide: /^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i, +}; +const parseDayPatterns = { + narrow: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], + + any: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, + any: /^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^पूर्वाह्न/i, + pm: /^अपराह्न/i, + midnight: /^मध्य/i, + noon: /^दो/i, + morning: /सु/i, + afternoon: /दो/i, + evening: /शा/i, + night: /रा/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: localeToNumber, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/hi/cdn.js b/node_modules/date-fns/locale/hi/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..3b7bc39c4162c021aa946c60c55ee10c39625bf2 --- /dev/null +++ b/node_modules/date-fns/locale/hi/cdn.js @@ -0,0 +1,610 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/hi/_lib/localize.js +var numberValues = { + locale: { + 1: "१", + 2: "२", + 3: "३", + 4: "४", + 5: "५", + 6: "६", + 7: "७", + 8: "८", + 9: "९", + 0: "०" + }, + number: { + "१": "1", + "२": "2", + "३": "3", + "४": "4", + "५": "5", + "६": "6", + "७": "7", + "८": "8", + "९": "9", + "०": "0" + } +}; +var eraValues = { + narrow: ["ईसा-पूर्व", "ईस्वी"], + abbreviated: ["ईसा-पूर्व", "ईस्वी"], + wide: ["ईसा-पूर्व", "ईसवी सन"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ति1", + "ति2", + "ति3", + "ति4"], + + wide: [ + "पहली तिमाही", + "दूसरी तिमाही", + "तीसरी तिमाही", + "चौथी तिमाही"] + +}; +var monthValues = { + narrow: [ + "ज", + "फ़", + "मा", + "अ", + "मई", + "जू", + "जु", + "अग", + "सि", + "अक्टू", + "न", + "दि"], + + abbreviated: [ + "जन", + "फ़र", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुल", + "अग", + "सित", + "अक्टू", + "नव", + "दिस"], + + wide: [ + "जनवरी", + "फ़रवरी", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुलाई", + "अगस्त", + "सितंबर", + "अक्टूबर", + "नवंबर", + "दिसंबर"] + +}; +var dayValues = { + narrow: [ + "र", + "सो", + "मं", + "बु", + "गु", + "शु", + "श"], + + short: [ + "र", + "सो", + "मं", + "बु", + "गु", + "शु", + "श"], + + abbreviated: [ + "रवि", + "सोम", + "मंगल", + "बुध", + "गुरु", + "शुक्र", + "शनि"], + + wide: [ + "रविवार", + "सोमवार", + "मंगलवार", + "बुधवार", + "गुरुवार", + "शुक्रवार", + "शनिवार"] + +}; +var dayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return numberToLocale(Number(dirtyNumber)); +}; +function localeToNumber(locale) { + var enNumber = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(enNumber); +} +function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/hi/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "१ सेकंड से कम", + other: "{{count}} सेकंड से कम" + }, + xSeconds: { + one: "१ सेकंड", + other: "{{count}} सेकंड" + }, + halfAMinute: "आधा मिनट", + lessThanXMinutes: { + one: "१ मिनट से कम", + other: "{{count}} मिनट से कम" + }, + xMinutes: { + one: "१ मिनट", + other: "{{count}} मिनट" + }, + aboutXHours: { + one: "लगभग १ घंटा", + other: "लगभग {{count}} घंटे" + }, + xHours: { + one: "१ घंटा", + other: "{{count}} घंटे" + }, + xDays: { + one: "१ दिन", + other: "{{count}} दिन" + }, + aboutXWeeks: { + one: "लगभग १ सप्ताह", + other: "लगभग {{count}} सप्ताह" + }, + xWeeks: { + one: "१ सप्ताह", + other: "{{count}} सप्ताह" + }, + aboutXMonths: { + one: "लगभग १ महीना", + other: "लगभग {{count}} महीने" + }, + xMonths: { + one: "१ महीना", + other: "{{count}} महीने" + }, + aboutXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष" + }, + xYears: { + one: "१ वर्ष", + other: "{{count}} वर्ष" + }, + overXYears: { + one: "१ वर्ष से अधिक", + other: "{{count}} वर्ष से अधिक" + }, + almostXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", numberToLocale(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + "मे ";else + return result + " पहले"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM, y", + long: "do MMMM, y", + medium: "d MMM, y", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'को' {{time}}", + long: "{{date}} 'को' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/hi/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/hi.js +/** +* @category Locales +* @summary Hindi locale (India). +* @language Hindi +* @iso-639-2 hin +* @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) +*/ +var hi = { + code: "hi", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^[०१२३४५६७८९]+/i, + parsePattern: /^[०१२३४५६७८९]+/i, + valueCallback: localeToNumber + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ईसा-पूर्व|ईस्वी)/i, + abbreviated: /^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, + wide: /^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ति[1234]/i, + wide: /^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, + abbreviated: /^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, + wide: /^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ज/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^न/i, + /^दि/i], + + any: [ + /^जन/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^नव/i, + /^दिस/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[रविसोममंगलबुधगुरुशुक्रशनि]/i, + short: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + abbreviated: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + wide: /^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^रवि/i, + /^सोम/i, + /^मंगल/i, + /^बुध/i, + /^गुरु/i, + /^शुक्र/i, + /^शनि/i], + + any: [ + /^रवि/i, + /^सोम/i, + /^मंगल/i, + /^बुध/i, + /^गुरु/i, + /^शुक्र/i, + /^शनि/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, + any: /^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^पूर्वाह्न/i, + pm: /^अपराह्न/i, + midnight: /^मध्य/i, + noon: /^दो/i, + morning: /सु/i, + afternoon: /दो/i, + evening: /शा/i, + night: /रा/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/hi/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + hi: hi }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/cdn.min.js b/node_modules/date-fns/locale/hi/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..99867432ff6ebcb1c8326dee9d0d5a2cae322627 --- /dev/null +++ b/node_modules/date-fns/locale/hi/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+`मे `:r+` पहले`:r};function b(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var x={date:b({formats:{full:`EEEE, do MMMM, y`,long:`do MMMM, y`,medium:`d MMM, y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:b({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:b({formats:{full:`{{date}} 'को' {{time}}`,long:`{{date}} 'को' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},S={lastWeek:`'पिछले' eeee p`,yesterday:`'कल' p`,today:`'आज' p`,tomorrow:`'कल' p`,nextWeek:`eeee 'को' p`,other:`P`},C=function(e,t,n,r){return S[e]};function w(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?E(s,function(e){return e.test(o)}):T(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function T(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function E(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var O={code:`hi`,formatDistance:y,formatLong:x,formatRelative:C,localize:_,match:{ordinalNumber:D({matchPattern:/^[०१२३४५६७८९]+/i,parsePattern:/^[०१२३४५६७८९]+/i,valueCallback:h}),era:w({matchPatterns:{narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:w({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:w({matchPatterns:{narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},defaultParseWidth:`any`}),day:w({matchPatterns:{narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},defaultParseWidth:`any`}),dayPeriod:w({matchPatterns:{narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{hi:O})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr.cjs b/node_modules/date-fns/locale/hr.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9f74fe99d581a395946edc49eecda61415fe991f --- /dev/null +++ b/node_modules/date-fns/locale/hr.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.hr = void 0; +var _index = require("./hr/_lib/formatDistance.cjs"); +var _index2 = require("./hr/_lib/formatLong.cjs"); +var _index3 = require("./hr/_lib/formatRelative.cjs"); +var _index4 = require("./hr/_lib/localize.cjs"); +var _index5 = require("./hr/_lib/match.cjs"); + +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +const hr = (exports.hr = { + code: "hr", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/hr.d.cts b/node_modules/date-fns/locale/hr.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e5e345e12cabac635bff6867eb0515a78bc5b498 --- /dev/null +++ b/node_modules/date-fns/locale/hr.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +export declare const hr: Locale; diff --git a/node_modules/date-fns/locale/hr.d.ts b/node_modules/date-fns/locale/hr.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e5e345e12cabac635bff6867eb0515a78bc5b498 --- /dev/null +++ b/node_modules/date-fns/locale/hr.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +export declare const hr: Locale; diff --git a/node_modules/date-fns/locale/hr.js b/node_modules/date-fns/locale/hr.js new file mode 100644 index 0000000000000000000000000000000000000000..90a26a176ab5bce0da4a0afd1e96d1275504679e --- /dev/null +++ b/node_modules/date-fns/locale/hr.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./hr/_lib/formatDistance.js"; +import { formatLong } from "./hr/_lib/formatLong.js"; +import { formatRelative } from "./hr/_lib/formatRelative.js"; +import { localize } from "./hr/_lib/localize.js"; +import { match } from "./hr/_lib/match.js"; + +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +export const hr = { + code: "hr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default hr; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.cjs b/node_modules/date-fns/locale/hr/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..16b991aed4531f9bc7e915907e53920a023dd1e9 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.cjs @@ -0,0 +1,194 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu", + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi", + }, + + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu", + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi", + }, + + halfAMinute: "pola minute", + + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu", + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta", + }, + + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu", + }, + dual: "{{count}} minute", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat", + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati", + }, + + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat", + }, + dual: "{{count}} sata", + other: "{{count}} sati", + }, + + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan", + }, + dual: "{{count}} dana", + other: "{{count}} dana", + }, + + aboutXWeeks: { + one: { + standalone: "oko 1 tjedan", + withPrepositionAgo: "oko 1 tjedan", + withPrepositionIn: "oko 1 tjedan", + }, + dual: "oko {{count}} tjedna", + other: "oko {{count}} tjedana", + }, + + xWeeks: { + one: { + standalone: "1 tjedan", + withPrepositionAgo: "1 tjedan", + withPrepositionIn: "1 tjedan", + }, + dual: "{{count}} tjedna", + other: "{{count}} tjedana", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec", + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci", + }, + + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec", + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci", + }, + + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu", + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina", + }, + + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu", + }, + dual: "{{count}} godine", + other: "{{count}} godina", + }, + + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu", + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina", + }, + + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu", + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "za " + result; + } else { + return "prije " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.js b/node_modules/date-fns/locale/hr/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..6e5ea0649651437b704425690ca3cd92962ed8fc --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.js @@ -0,0 +1,190 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu", + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi", + }, + + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu", + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi", + }, + + halfAMinute: "pola minute", + + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu", + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta", + }, + + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu", + }, + dual: "{{count}} minute", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat", + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati", + }, + + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat", + }, + dual: "{{count}} sata", + other: "{{count}} sati", + }, + + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan", + }, + dual: "{{count}} dana", + other: "{{count}} dana", + }, + + aboutXWeeks: { + one: { + standalone: "oko 1 tjedan", + withPrepositionAgo: "oko 1 tjedan", + withPrepositionIn: "oko 1 tjedan", + }, + dual: "oko {{count}} tjedna", + other: "oko {{count}} tjedana", + }, + + xWeeks: { + one: { + standalone: "1 tjedan", + withPrepositionAgo: "1 tjedan", + withPrepositionIn: "1 tjedan", + }, + dual: "{{count}} tjedna", + other: "{{count}} tjedana", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec", + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci", + }, + + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec", + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci", + }, + + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu", + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina", + }, + + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu", + }, + dual: "{{count}} godine", + other: "{{count}} godina", + }, + + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu", + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina", + }, + + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu", + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "za " + result; + } else { + return "prije " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.cjs b/node_modules/date-fns/locale/hr/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2944ad1f9c4127c1fbaea2c94b80a28f482220d3 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d. MMMM y.", + long: "d. MMMM y.", + medium: "d. MMM y.", + short: "dd. MM. y.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.d.cts b/node_modules/date-fns/locale/hr/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.d.ts b/node_modules/date-fns/locale/hr/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.js b/node_modules/date-fns/locale/hr/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..6adc53ecb100354f9a16bff8efc552acad723702 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d. MMMM y.", + long: "d. MMMM y.", + medium: "d. MMM y.", + short: "dd. MM. y.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.cjs b/node_modules/date-fns/locale/hr/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3be544aa23e2b706d24fdd5fc595bbdfb4920163 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošlu nedjelju u' p"; + case 3: + return "'prošlu srijedu u' p"; + case 6: + return "'prošlu subotu u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'jučer u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'iduću nedjelju u' p"; + case 3: + return "'iduću srijedu u' p"; + case 6: + return "'iduću subotu u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.js b/node_modules/date-fns/locale/hr/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..412fe56728ab7979fa0e800a45ff714bcd94adbb --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.js @@ -0,0 +1,40 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošlu nedjelju u' p"; + case 3: + return "'prošlu srijedu u' p"; + case 6: + return "'prošlu subotu u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'jučer u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'iduću nedjelju u' p"; + case 3: + return "'iduću srijedu u' p"; + case 6: + return "'iduću subotu u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/hr/_lib/localize.cjs b/node_modules/date-fns/locale/hr/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0522d12ad9c1ad7af642fde6543f91b45f0f3323 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize.cjs @@ -0,0 +1,229 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Kr.", "po. Kr."], + wide: ["Prije Krista", "Poslije Krista"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro", + ], + + wide: [ + "siječanj", + "veljača", + "ožujak", + "travanj", + "svibanj", + "lipanj", + "srpanj", + "kolovoz", + "rujan", + "listopad", + "studeni", + "prosinac", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro", + ], + + wide: [ + "siječnja", + "veljače", + "ožujka", + "travnja", + "svibnja", + "lipnja", + "srpnja", + "kolovoza", + "rujna", + "listopada", + "studenog", + "prosinca", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/hr/_lib/localize.d.cts b/node_modules/date-fns/locale/hr/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hr/_lib/localize.d.ts b/node_modules/date-fns/locale/hr/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hr/_lib/localize.js b/node_modules/date-fns/locale/hr/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..6f7cef8166c848b5d646837f40a5edd1eaec1275 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize.js @@ -0,0 +1,227 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Kr.", "po. Kr."], + wide: ["Prije Krista", "Poslije Krista"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro", + ], + + wide: [ + "siječanj", + "veljača", + "ožujak", + "travanj", + "svibanj", + "lipanj", + "srpanj", + "kolovoz", + "rujan", + "listopad", + "studeni", + "prosinac", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro", + ], + + wide: [ + "siječnja", + "veljače", + "ožujka", + "travnja", + "svibnja", + "lipnja", + "srpnja", + "kolovoza", + "rujna", + "listopada", + "studenog", + "prosinca", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/hr/_lib/match.cjs b/node_modules/date-fns/locale/hr/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2e4ef83c3e4bfd3fe680e907ad2773953e11e872 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match.cjs @@ -0,0 +1,149 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, + wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, + wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i, +}; +const parseMonthPatterns = { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i, + /5/i, + /6/i, + /7/i, + /8/i, + /9/i, + /10/i, + /11/i, + /12/i, + ], + + abbreviated: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i, + ], + + wide: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(navece|naveče)/i, + night: /(nocu|noću)/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "wide", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/hr/_lib/match.d.cts b/node_modules/date-fns/locale/hr/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hr/_lib/match.d.ts b/node_modules/date-fns/locale/hr/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hr/_lib/match.js b/node_modules/date-fns/locale/hr/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..675ea157d900c9ab15494d8306b4d8e369e55d61 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match.js @@ -0,0 +1,146 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, + wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, + wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i, +}; +const parseMonthPatterns = { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i, + /5/i, + /6/i, + /7/i, + /8/i, + /9/i, + /10/i, + /11/i, + /12/i, + ], + + abbreviated: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i, + ], + + wide: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(navece|naveče)/i, + night: /(nocu|noću)/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "wide", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/hr/cdn.js b/node_modules/date-fns/locale/hr/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..021df32ffab59e6fb66af14e514fc9774eb6ebd4 --- /dev/null +++ b/node_modules/date-fns/locale/hr/cdn.js @@ -0,0 +1,728 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/hr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu" + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi" + }, + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu" + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi" + }, + halfAMinute: "pola minute", + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu" + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta" + }, + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu" + }, + dual: "{{count}} minute", + other: "{{count}} minuta" + }, + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat" + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati" + }, + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat" + }, + dual: "{{count}} sata", + other: "{{count}} sati" + }, + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan" + }, + dual: "{{count}} dana", + other: "{{count}} dana" + }, + aboutXWeeks: { + one: { + standalone: "oko 1 tjedan", + withPrepositionAgo: "oko 1 tjedan", + withPrepositionIn: "oko 1 tjedan" + }, + dual: "oko {{count}} tjedna", + other: "oko {{count}} tjedana" + }, + xWeeks: { + one: { + standalone: "1 tjedan", + withPrepositionAgo: "1 tjedan", + withPrepositionIn: "1 tjedan" + }, + dual: "{{count}} tjedna", + other: "{{count}} tjedana" + }, + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec" + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci" + }, + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec" + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci" + }, + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu" + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina" + }, + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu" + }, + dual: "{{count}} godine", + other: "{{count}} godina" + }, + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu" + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina" + }, + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu" + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) result = tokenValue.one.withPrepositionIn;else + result = tokenValue.one.withPrepositionAgo;} else + result = tokenValue.one.standalone;} else + if (count % 10 > 1 && count % 10 < 5 && String(count).substr(-2, 1) !== "1") result = tokenValue.dual.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "za " + result;else + return "prije " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d. MMMM y.", + long: "d. MMMM y.", + medium: "d. MMM y.", + short: "dd. MM. y." + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/hr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'prošlu nedjelju u' p"; + case 3:return "'prošlu srijedu u' p"; + case 6:return "'prošlu subotu u' p"; + default:return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'jučer u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'iduću nedjelju u' p"; + case 3:return "'iduću srijedu u' p"; + case 6:return "'iduću subotu u' p"; + default:return "'prošli' EEEE 'u' p"; + } + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/hr/_lib/localize.js +var eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Kr.", "po. Kr."], + wide: ["Prije Krista", "Poslije Krista"] +}; +var quarterValues = { + narrow: [ + "1.", + "2.", + "3.", + "4."], + + abbreviated: [ + "1. kv.", + "2. kv.", + "3. kv.", + "4. kv."], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro"], + + wide: [ + "siječanj", + "veljača", + "ožujak", + "travanj", + "svibanj", + "lipanj", + "srpanj", + "kolovoz", + "rujan", + "listopad", + "studeni", + "prosinac"] + +}; +var formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro"], + + wide: [ + "siječnja", + "veljače", + "ožujka", + "travnja", + "svibnja", + "lipnja", + "srpnja", + "kolovoza", + "rujna", + "listopada", + "studenog", + "prosinca"] + +}; +var dayValues = { + narrow: [ + "N", + "P", + "U", + "S", + "Č", + "P", + "S"], + + short: [ + "ned", + "pon", + "uto", + "sri", + "čet", + "pet", + "sub"], + + abbreviated: [ + "ned", + "pon", + "uto", + "sri", + "čet", + "pet", + "sub"], + + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota"] + +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću" + } +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/hr.js +/** +* @category Locales +* @summary Croatian locale. +* @language Croatian +* @iso-639-2 hrv +* @author Matija Marohnić [@silvenon](https://github.com/silvenon) +* @author Manico [@manico](https://github.com/manico) +* @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) +*/ +var hr = { + code: "hr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, + wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^pr/i, /^(po|nova)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, + wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i, + /5/i, + /6/i, + /7/i, + /8/i, + /9/i, + /10/i, + /11/i, + /12/i], + + abbreviated: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i], + + wide: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i] + + }, + defaultParseWidth: "wide" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(navece|naveče)/i, + night: /(nocu|noću)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/hr/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + hr: hr }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/cdn.min.js b/node_modules/date-fns/locale/hr/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..dae47c96880500eac7dc7f1268bffaa846c6fb06 --- /dev/null +++ b/node_modules/date-fns/locale/hr/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+r:`prije `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d. MMMM y.`,long:`d. MMMM y.`,medium:`d. MMM y.`,short:`dd. MM. y.`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'u' {{time}}`,long:`{{date}} 'u' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){switch(e.getDay()){case 0:return`'prošlu nedjelju u' p`;case 3:return`'prošlu srijedu u' p`;case 6:return`'prošlu subotu u' p`;default:return`'prošli' EEEE 'u' p`}},yesterday:`'jučer u' p`,today:`'danas u' p`,tomorrow:`'sutra u' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'iduću nedjelju u' p`;case 3:return`'iduću srijedu u' p`;case 6:return`'iduću subotu u' p`;default:return`'prošli' EEEE 'u' p`}},other:`P`},d=function(e,t,n,r){var i=u[e];return typeof i==`function`?i(t):i};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`pr.n.e.`,`AD`],abbreviated:[`pr. Kr.`,`po. Kr.`],wide:[`Prije Krista`,`Poslije Krista`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. kv.`,`2. kv.`,`3. kv.`,`4. kv.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`sij`,`velj`,`ožu`,`tra`,`svi`,`lip`,`srp`,`kol`,`ruj`,`lis`,`stu`,`pro`],wide:[`siječanj`,`veljača`,`ožujak`,`travanj`,`svibanj`,`lipanj`,`srpanj`,`kolovoz`,`rujan`,`listopad`,`studeni`,`prosinac`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`sij`,`velj`,`ožu`,`tra`,`svi`,`lip`,`srp`,`kol`,`ruj`,`lis`,`stu`,`pro`],wide:[`siječnja`,`veljače`,`ožujka`,`travnja`,`svibnja`,`lipnja`,`srpnja`,`kolovoza`,`rujna`,`listopada`,`studenog`,`prosinca`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`U`,`S`,`Č`,`P`,`S`],short:[`ned`,`pon`,`uto`,`sri`,`čet`,`pet`,`sub`],abbreviated:[`ned`,`pon`,`uto`,`sri`,`čet`,`pet`,`sub`],wide:[`nedjelja`,`ponedjeljak`,`utorak`,`srijeda`,`četvrtak`,`petak`,`subota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`poslije podne`,evening:`navečer`,night:`noću`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`poslije podne`,evening:`navečer`,night:`noću`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`hr`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:`wide`}),day:m({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{hr:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht.cjs b/node_modules/date-fns/locale/ht.cjs new file mode 100644 index 0000000000000000000000000000000000000000..be4267848f8da4e3e4be1429766580bf86e69356 --- /dev/null +++ b/node_modules/date-fns/locale/ht.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.ht = void 0; +var _index = require("./ht/_lib/formatDistance.cjs"); +var _index2 = require("./ht/_lib/formatLong.cjs"); +var _index3 = require("./ht/_lib/formatRelative.cjs"); +var _index4 = require("./ht/_lib/localize.cjs"); +var _index5 = require("./ht/_lib/match.cjs"); + +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +const ht = (exports.ht = { + code: "ht", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/ht.d.cts b/node_modules/date-fns/locale/ht.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..123435b65a35314bc18f94189a3ce6b98c94ad2c --- /dev/null +++ b/node_modules/date-fns/locale/ht.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +export declare const ht: Locale; diff --git a/node_modules/date-fns/locale/ht.d.ts b/node_modules/date-fns/locale/ht.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..123435b65a35314bc18f94189a3ce6b98c94ad2c --- /dev/null +++ b/node_modules/date-fns/locale/ht.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +export declare const ht: Locale; diff --git a/node_modules/date-fns/locale/ht.js b/node_modules/date-fns/locale/ht.js new file mode 100644 index 0000000000000000000000000000000000000000..8f45d0cbd3abcd8e7f5801307b19ac471ad624f5 --- /dev/null +++ b/node_modules/date-fns/locale/ht.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./ht/_lib/formatDistance.js"; +import { formatLong } from "./ht/_lib/formatLong.js"; +import { formatRelative } from "./ht/_lib/formatRelative.js"; +import { localize } from "./ht/_lib/localize.js"; +import { match } from "./ht/_lib/match.js"; + +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +export const ht = { + code: "ht", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default ht; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ht/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2df4e0315af4e75e3e57c08e0e88f5970d94bed6 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mwens pase yon segond", + other: "mwens pase {{count}} segond", + }, + + xSeconds: { + one: "1 segond", + other: "{{count}} segond", + }, + + halfAMinute: "30 segond", + + lessThanXMinutes: { + one: "mwens pase yon minit", + other: "mwens pase {{count}} minit", + }, + + xMinutes: { + one: "1 minit", + other: "{{count}} minit", + }, + + aboutXHours: { + one: "anviwon inè", + other: "anviwon {{count}} è", + }, + + xHours: { + one: "1 lè", + other: "{{count}} lè", + }, + + xDays: { + one: "1 jou", + other: "{{count}} jou", + }, + + aboutXWeeks: { + one: "anviwon 1 semèn", + other: "anviwon {{count}} semèn", + }, + + xWeeks: { + one: "1 semèn", + other: "{{count}} semèn", + }, + + aboutXMonths: { + one: "anviwon 1 mwa", + other: "anviwon {{count}} mwa", + }, + + xMonths: { + one: "1 mwa", + other: "{{count}} mwa", + }, + + aboutXYears: { + one: "anviwon 1 an", + other: "anviwon {{count}} an", + }, + + xYears: { + one: "1 an", + other: "{{count}} an", + }, + + overXYears: { + one: "plis pase 1 an", + other: "plis pase {{count}} an", + }, + + almostXYears: { + one: "prèske 1 an", + other: "prèske {{count}} an", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "nan " + result; + } else { + return "sa fè " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.js b/node_modules/date-fns/locale/ht/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..3229a9d3f2bc146e4915dfc774a1c439a561338a --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mwens pase yon segond", + other: "mwens pase {{count}} segond", + }, + + xSeconds: { + one: "1 segond", + other: "{{count}} segond", + }, + + halfAMinute: "30 segond", + + lessThanXMinutes: { + one: "mwens pase yon minit", + other: "mwens pase {{count}} minit", + }, + + xMinutes: { + one: "1 minit", + other: "{{count}} minit", + }, + + aboutXHours: { + one: "anviwon inè", + other: "anviwon {{count}} è", + }, + + xHours: { + one: "1 lè", + other: "{{count}} lè", + }, + + xDays: { + one: "1 jou", + other: "{{count}} jou", + }, + + aboutXWeeks: { + one: "anviwon 1 semèn", + other: "anviwon {{count}} semèn", + }, + + xWeeks: { + one: "1 semèn", + other: "{{count}} semèn", + }, + + aboutXMonths: { + one: "anviwon 1 mwa", + other: "anviwon {{count}} mwa", + }, + + xMonths: { + one: "1 mwa", + other: "{{count}} mwa", + }, + + aboutXYears: { + one: "anviwon 1 an", + other: "anviwon {{count}} an", + }, + + xYears: { + one: "1 an", + other: "{{count}} an", + }, + + overXYears: { + one: "plis pase 1 an", + other: "plis pase {{count}} an", + }, + + almostXYears: { + one: "prèske 1 an", + other: "prèske {{count}} an", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "nan " + result; + } else { + return "sa fè " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.cjs b/node_modules/date-fns/locale/ht/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d2ced35991dd0d4199d4ca11353760d6a42c29ec --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'nan lè' {{time}}", + long: "{{date}} 'nan lè' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ht/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ht/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.js b/node_modules/date-fns/locale/ht/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..29fc5c92514f722de5ef7d5ee03ff5e777045f7b --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'nan lè' {{time}}", + long: "{{date}} 'nan lè' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ht/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9110e1a4a09b4147d539f6900a174c011b45eb4b --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'pase nan lè' p", + yesterday: "'yè nan lè' p", + today: "'jodi a' p", + tomorrow: "'demen nan lè' p'", + nextWeek: "eeee 'pwochen nan lè' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.js b/node_modules/date-fns/locale/ht/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..e6dcba2ee5ddb9bec764595097e57119489e99d3 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'pase nan lè' p", + yesterday: "'yè nan lè' p", + today: "'jodi a' p", + tomorrow: "'demen nan lè' p'", + nextWeek: "eeee 'pwochen nan lè' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ht/_lib/localize.cjs b/node_modules/date-fns/locale/ht/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..182214b4bfd105bd1442a2bdd7270fdf6328bd11 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize.cjs @@ -0,0 +1,129 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["av. J.-K", "ap. J.-K"], + abbreviated: ["av. J.-K", "ap. J.-K"], + wide: ["anvan Jezi Kris", "apre Jezi Kris"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1ye trim.", "2yèm trim.", "3yèm trim.", "4yèm trim."], + wide: ["1ye trimès", "2yèm trimès", "3yèm trimès", "4yèm trimès"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "O", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "fevr.", + "mas", + "avr.", + "me", + "jen", + "jiyè", + "out", + "sept.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "janvye", + "fevrye", + "mas", + "avril", + "me", + "jen", + "jiyè", + "out", + "septanm", + "oktòb", + "novanm", + "desanm", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "J", "V", "S"], + short: ["di", "le", "ma", "mè", "je", "va", "sa"], + abbreviated: ["dim.", "len.", "mad.", "mèk.", "jed.", "van.", "sam."], + + wide: ["dimanch", "lendi", "madi", "mèkredi", "jedi", "vandredi", "samdi"], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "swa", + night: "mat.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "maten", + afternoon: "aprèmidi", + evening: "swa", + night: "maten", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "nan maten", + afternoon: "nan aprèmidi", + evening: "nan aswè", + night: "nan maten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + if (number === 0) return String(number); + + const suffix = number === 1 ? "ye" : "yèm"; + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ht/_lib/localize.d.cts b/node_modules/date-fns/locale/ht/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ht/_lib/localize.d.ts b/node_modules/date-fns/locale/ht/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ht/_lib/localize.js b/node_modules/date-fns/locale/ht/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..4ac1d2f7c2d00a984330dba6e7b951f9283d3ebb --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize.js @@ -0,0 +1,127 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["av. J.-K", "ap. J.-K"], + abbreviated: ["av. J.-K", "ap. J.-K"], + wide: ["anvan Jezi Kris", "apre Jezi Kris"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1ye trim.", "2yèm trim.", "3yèm trim.", "4yèm trim."], + wide: ["1ye trimès", "2yèm trimès", "3yèm trimès", "4yèm trimès"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "O", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "fevr.", + "mas", + "avr.", + "me", + "jen", + "jiyè", + "out", + "sept.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "janvye", + "fevrye", + "mas", + "avril", + "me", + "jen", + "jiyè", + "out", + "septanm", + "oktòb", + "novanm", + "desanm", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "J", "V", "S"], + short: ["di", "le", "ma", "mè", "je", "va", "sa"], + abbreviated: ["dim.", "len.", "mad.", "mèk.", "jed.", "van.", "sam."], + + wide: ["dimanch", "lendi", "madi", "mèkredi", "jedi", "vandredi", "samdi"], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "swa", + night: "mat.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "maten", + afternoon: "aprèmidi", + evening: "swa", + night: "maten", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "nan maten", + afternoon: "nan aprèmidi", + evening: "nan aswè", + night: "nan maten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + if (number === 0) return String(number); + + const suffix = number === 1 ? "ye" : "yèm"; + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ht/_lib/match.cjs b/node_modules/date-fns/locale/ht/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d740f32148ed6c4f43d20e3ea1f15e03a5dd601b --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ye|yèm)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, + abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, + wide: /^(avan Jezi Kris|apre Jezi Kris)/i, +}; +const parseEraPatterns = { + any: [/^av/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](ye|yèm)? trimès/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, + wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^av/i, + /^me/i, + /^je/i, + /^ji/i, + /^ou/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|le|ma|me|je|va|sa)/i, + abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i, + wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^le/i, /^ma/i, /^mè/i, /^je/i, /^va/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, + any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /sw/i, + night: /nwit/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ht/_lib/match.d.cts b/node_modules/date-fns/locale/ht/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ht/_lib/match.d.ts b/node_modules/date-fns/locale/ht/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ht/_lib/match.js b/node_modules/date-fns/locale/ht/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..4196f1b67741779f5ebbe83cb5836bfabb5bffe1 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ye|yèm)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, + abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, + wide: /^(avan Jezi Kris|apre Jezi Kris)/i, +}; +const parseEraPatterns = { + any: [/^av/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](ye|yèm)? trimès/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, + wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^av/i, + /^me/i, + /^je/i, + /^ji/i, + /^ou/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|le|ma|me|je|va|sa)/i, + abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i, + wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^le/i, /^ma/i, /^mè/i, /^je/i, /^va/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, + any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /sw/i, + night: /nwit/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ht/cdn.js b/node_modules/date-fns/locale/ht/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..d1a563c377945bde060fe14c69604f8eeaedb0da --- /dev/null +++ b/node_modules/date-fns/locale/ht/cdn.js @@ -0,0 +1,542 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ht/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mwens pase yon segond", + other: "mwens pase {{count}} segond" + }, + xSeconds: { + one: "1 segond", + other: "{{count}} segond" + }, + halfAMinute: "30 segond", + lessThanXMinutes: { + one: "mwens pase yon minit", + other: "mwens pase {{count}} minit" + }, + xMinutes: { + one: "1 minit", + other: "{{count}} minit" + }, + aboutXHours: { + one: "anviwon inè", + other: "anviwon {{count}} è" + }, + xHours: { + one: "1 lè", + other: "{{count}} lè" + }, + xDays: { + one: "1 jou", + other: "{{count}} jou" + }, + aboutXWeeks: { + one: "anviwon 1 semèn", + other: "anviwon {{count}} semèn" + }, + xWeeks: { + one: "1 semèn", + other: "{{count}} semèn" + }, + aboutXMonths: { + one: "anviwon 1 mwa", + other: "anviwon {{count}} mwa" + }, + xMonths: { + one: "1 mwa", + other: "{{count}} mwa" + }, + aboutXYears: { + one: "anviwon 1 an", + other: "anviwon {{count}} an" + }, + xYears: { + one: "1 an", + other: "{{count}} an" + }, + overXYears: { + one: "plis pase 1 an", + other: "plis pase {{count}} an" + }, + almostXYears: { + one: "prèske 1 an", + other: "prèske {{count}} an" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "nan " + result;else + return "sa fè " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'nan lè' {{time}}", + long: "{{date}} 'nan lè' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ht/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'pase nan lè' p", + yesterday: "'yè nan lè' p", + today: "'jodi a' p", + tomorrow: "'demen nan lè' p'", + nextWeek: "eeee 'pwochen nan lè' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ht/_lib/localize.js +var eraValues = { + narrow: ["av. J.-K", "ap. J.-K"], + abbreviated: ["av. J.-K", "ap. J.-K"], + wide: ["anvan Jezi Kris", "apre Jezi Kris"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1ye trim.", + "2yèm trim.", + "3yèm trim.", + "4yèm trim."], + + wide: [ + "1ye trimès", + "2yèm trimès", + "3yèm trimès", + "4yèm trimès"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "O", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "fevr.", + "mas", + "avr.", + "me", + "jen", + "jiyè", + "out", + "sept.", + "okt.", + "nov.", + "des."], + + wide: [ + "janvye", + "fevrye", + "mas", + "avril", + "me", + "jen", + "jiyè", + "out", + "septanm", + "oktòb", + "novanm", + "desanm"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "J", + "V", + "S"], + + short: [ + "di", + "le", + "ma", + "mè", + "je", + "va", + "sa"], + + abbreviated: [ + "dim.", + "len.", + "mad.", + "mèk.", + "jed.", + "van.", + "sam."], + + wide: [ + "dimanch", + "lendi", + "madi", + "mèkredi", + "jedi", + "vandredi", + "samdi"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "swa", + night: "mat." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "maten", + afternoon: "aprèmidi", + evening: "swa", + night: "maten" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "nan maten", + afternoon: "nan aprèmidi", + evening: "nan aswè", + night: "nan maten" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + if (number === 0) return String(number); + return number + (number === 1 ? "ye" : "yèm"); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ht.js +/** +* @category Locales +* @summary Haitian Creole locale. +* @language Haitian Creole +* @iso-639-2 hat +* @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) +* @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) +*/ +var ht = { + code: "ht", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ye|yèm)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, + abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, + wide: /^(avan Jezi Kris|apre Jezi Kris)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^av/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](ye|yèm)? trimès/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, + wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^av/i, + /^me/i, + /^je/i, + /^ji/i, + /^ou/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[lmjvsd]/i, + short: /^(di|le|ma|me|je|va|sa)/i, + abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i, + wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^di/i, + /^le/i, + /^ma/i, + /^mè/i, + /^je/i, + /^va/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, + any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /sw/i, + night: /nwit/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ht/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ht: ht }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/cdn.min.js b/node_modules/date-fns/locale/ht/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..c33b85c4272e8ef9edcbbcc68dadf99585273fb2 --- /dev/null +++ b/node_modules/date-fns/locale/ht/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`nan `+r:`sa fè `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'nan lè' {{time}}`,long:`{{date}} 'nan lè' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'pase nan lè' p`,yesterday:`'yè nan lè' p`,today:`'jodi a' p`,tomorrow:`'demen nan lè' p'`,nextWeek:`eeee 'pwochen nan lè' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);return n===0?String(n):n+(n===1?`ye`:`yèm`)},era:f({values:{narrow:[`av. J.-K`,`ap. J.-K`],abbreviated:[`av. J.-K`,`ap. J.-K`],wide:[`anvan Jezi Kris`,`apre Jezi Kris`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1ye trim.`,`2yèm trim.`,`3yèm trim.`,`4yèm trim.`],wide:[`1ye trimès`,`2yèm trimès`,`3yèm trimès`,`4yèm trimès`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`O`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`fevr.`,`mas`,`avr.`,`me`,`jen`,`jiyè`,`out`,`sept.`,`okt.`,`nov.`,`des.`],wide:[`janvye`,`fevrye`,`mas`,`avril`,`me`,`jen`,`jiyè`,`out`,`septanm`,`oktòb`,`novanm`,`desanm`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`le`,`ma`,`mè`,`je`,`va`,`sa`],abbreviated:[`dim.`,`len.`,`mad.`,`mèk.`,`jed.`,`van.`,`sam.`],wide:[`dimanch`,`lendi`,`madi`,`mèkredi`,`jedi`,`vandredi`,`samdi`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`swa`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`maten`,afternoon:`aprèmidi`,evening:`swa`,night:`maten`},wide:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`nan maten`,afternoon:`nan aprèmidi`,evening:`nan aswè`,night:`nan maten`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ht`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(ye|yèm)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,wide:/^(avan Jezi Kris|apre Jezi Kris)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](ye|yèm)? trimès/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i,wide:/^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^av/i,/^me/i,/^je/i,/^ji/i,/^ou/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|le|ma|me|je|va|sa)/i,abbreviated:/^(dim|len|mad|mèk|jed|van|sam)\.?/i,wide:/^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^le/i,/^ma/i,/^mè/i,/^je/i,/^va/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,any:/^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/sw/i,night:/nwit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ht:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu.cjs b/node_modules/date-fns/locale/hu.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9ba960df23209e33b6be0d739665c59cf7d936fc --- /dev/null +++ b/node_modules/date-fns/locale/hu.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.hu = void 0; +var _index = require("./hu/_lib/formatDistance.cjs"); +var _index2 = require("./hu/_lib/formatLong.cjs"); +var _index3 = require("./hu/_lib/formatRelative.cjs"); +var _index4 = require("./hu/_lib/localize.cjs"); +var _index5 = require("./hu/_lib/match.cjs"); + +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +const hu = (exports.hu = { + code: "hu", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/hu.d.cts b/node_modules/date-fns/locale/hu.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..34355904b61ebcec8d491266fada5bfc2ac4e9fc --- /dev/null +++ b/node_modules/date-fns/locale/hu.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +export declare const hu: Locale; diff --git a/node_modules/date-fns/locale/hu.d.ts b/node_modules/date-fns/locale/hu.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..34355904b61ebcec8d491266fada5bfc2ac4e9fc --- /dev/null +++ b/node_modules/date-fns/locale/hu.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +export declare const hu: Locale; diff --git a/node_modules/date-fns/locale/hu.js b/node_modules/date-fns/locale/hu.js new file mode 100644 index 0000000000000000000000000000000000000000..dae5af29bad4d4c0b66c747ea573dfae952ad82a --- /dev/null +++ b/node_modules/date-fns/locale/hu.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./hu/_lib/formatDistance.js"; +import { formatLong } from "./hu/_lib/formatLong.js"; +import { formatRelative } from "./hu/_lib/formatRelative.js"; +import { localize } from "./hu/_lib/localize.js"; +import { match } from "./hu/_lib/match.js"; + +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +export const hu = { + code: "hu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default hu; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.cjs b/node_modules/date-fns/locale/hu/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..97bf189f592caf3c585aaebdbc200729e5461e13 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.cjs @@ -0,0 +1,86 @@ +"use strict"; +exports.formatDistance = void 0; + +const translations = { + about: "körülbelül", + over: "több mint", + almost: "majdnem", + lessthan: "kevesebb mint", +}; + +const withoutSuffixes = { + xseconds: " másodperc", + halfaminute: "fél perc", + xminutes: " perc", + xhours: " óra", + xdays: " nap", + xweeks: " hét", + xmonths: " hónap", + xyears: " év", +}; + +const withSuffixes = { + xseconds: { + "-1": " másodperccel ezelőtt", + 1: " másodperc múlva", + 0: " másodperce", + }, + halfaminute: { + "-1": "fél perccel ezelőtt", + 1: "fél perc múlva", + 0: "fél perce", + }, + xminutes: { + "-1": " perccel ezelőtt", + 1: " perc múlva", + 0: " perce", + }, + xhours: { + "-1": " órával ezelőtt", + 1: " óra múlva", + 0: " órája", + }, + xdays: { + "-1": " nappal ezelőtt", + 1: " nap múlva", + 0: " napja", + }, + xweeks: { + "-1": " héttel ezelőtt", + 1: " hét múlva", + 0: " hete", + }, + xmonths: { + "-1": " hónappal ezelőtt", + 1: " hónap múlva", + 0: " hónapja", + }, + xyears: { + "-1": " évvel ezelőtt", + 1: " év múlva", + 0: " éve", + }, +}; + +const formatDistance = (token, count, options) => { + const adverb = token.match(/about|over|almost|lessthan/i); + const unit = adverb ? token.replace(adverb[0], "") : token; + + const addSuffix = options?.addSuffix === true; + const key = unit.toLowerCase(); + const comparison = options?.comparison || 0; + + const translated = addSuffix + ? withSuffixes[key][comparison] + : withoutSuffixes[key]; + + let result = key === "halfaminute" ? translated : count + translated; + + if (adverb) { + const adv = adverb[0].toLowerCase(); + result = translations[adv] + " " + result; + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.js b/node_modules/date-fns/locale/hu/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..30e23bb26a54ba5274501bf44690cbeaf243303c --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.js @@ -0,0 +1,82 @@ +const translations = { + about: "körülbelül", + over: "több mint", + almost: "majdnem", + lessthan: "kevesebb mint", +}; + +const withoutSuffixes = { + xseconds: " másodperc", + halfaminute: "fél perc", + xminutes: " perc", + xhours: " óra", + xdays: " nap", + xweeks: " hét", + xmonths: " hónap", + xyears: " év", +}; + +const withSuffixes = { + xseconds: { + "-1": " másodperccel ezelőtt", + 1: " másodperc múlva", + 0: " másodperce", + }, + halfaminute: { + "-1": "fél perccel ezelőtt", + 1: "fél perc múlva", + 0: "fél perce", + }, + xminutes: { + "-1": " perccel ezelőtt", + 1: " perc múlva", + 0: " perce", + }, + xhours: { + "-1": " órával ezelőtt", + 1: " óra múlva", + 0: " órája", + }, + xdays: { + "-1": " nappal ezelőtt", + 1: " nap múlva", + 0: " napja", + }, + xweeks: { + "-1": " héttel ezelőtt", + 1: " hét múlva", + 0: " hete", + }, + xmonths: { + "-1": " hónappal ezelőtt", + 1: " hónap múlva", + 0: " hónapja", + }, + xyears: { + "-1": " évvel ezelőtt", + 1: " év múlva", + 0: " éve", + }, +}; + +export const formatDistance = (token, count, options) => { + const adverb = token.match(/about|over|almost|lessthan/i); + const unit = adverb ? token.replace(adverb[0], "") : token; + + const addSuffix = options?.addSuffix === true; + const key = unit.toLowerCase(); + const comparison = options?.comparison || 0; + + const translated = addSuffix + ? withSuffixes[key][comparison] + : withoutSuffixes[key]; + + let result = key === "halfaminute" ? translated : count + translated; + + if (adverb) { + const adv = adverb[0].toLowerCase(); + result = translations[adv] + " " + result; + } + + return result; +}; diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.cjs b/node_modules/date-fns/locale/hu/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b20a9970067b27c5dda965b170f9025f791ec4bd --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y. MMMM d., EEEE", + long: "y. MMMM d.", + medium: "y. MMM d.", + short: "y. MM. dd.", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.d.cts b/node_modules/date-fns/locale/hu/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.d.ts b/node_modules/date-fns/locale/hu/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.js b/node_modules/date-fns/locale/hu/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..2defb576fd66885e6952751a584d2ab0a4efa4cb --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y. MMMM d., EEEE", + long: "y. MMMM d.", + medium: "y. MMM d.", + short: "y. MM. dd.", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.cjs b/node_modules/date-fns/locale/hu/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..5e73c88e671d06f3af5f97291c2792e7c35b4444 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.cjs @@ -0,0 +1,39 @@ +"use strict"; +exports.formatRelative = void 0; + +const accusativeWeekdays = [ + "vasárnap", + "hétfőn", + "kedden", + "szerdán", + "csütörtökön", + "pénteken", + "szombaton", +]; + +function week(isFuture) { + return (date) => { + const weekday = accusativeWeekdays[date.getDay()]; + const prefix = isFuture ? "" : "'múlt' "; + return `${prefix}'${weekday}' p'-kor'`; + }; +} +const formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: "P", +}; + +const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.js b/node_modules/date-fns/locale/hu/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..27a8eb74b2033403669762689379c09849a914cc --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.js @@ -0,0 +1,35 @@ +const accusativeWeekdays = [ + "vasárnap", + "hétfőn", + "kedden", + "szerdán", + "csütörtökön", + "pénteken", + "szombaton", +]; + +function week(isFuture) { + return (date) => { + const weekday = accusativeWeekdays[date.getDay()]; + const prefix = isFuture ? "" : "'múlt' "; + return `${prefix}'${weekday}' p'-kor'`; + }; +} +const formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: "P", +}; + +export const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/hu/_lib/localize.cjs b/node_modules/date-fns/locale/hu/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0bf20d3019cfdcda1b392564999025fb67e6a735 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ie.", "isz."], + abbreviated: ["i. e.", "i. sz."], + wide: ["Krisztus előtt", "időszámításunk szerint"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. n.év", "2. n.év", "3. n.év", "4. n.év"], + wide: ["1. negyedév", "2. negyedév", "3. negyedév", "4. negyedév"], +}; + +const formattingQuarterValues = { + narrow: ["I.", "II.", "III.", "IV."], + abbreviated: ["I. n.év", "II. n.év", "III. n.év", "IV. n.év"], + wide: ["I. negyedév", "II. negyedév", "III. negyedév", "IV. negyedév"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "Á", "M", "J", "J", "A", "Sz", "O", "N", "D"], + + abbreviated: [ + "jan.", + "febr.", + "márc.", + "ápr.", + "máj.", + "jún.", + "júl.", + "aug.", + "szept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "január", + "február", + "március", + "április", + "május", + "június", + "július", + "augusztus", + "szeptember", + "október", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["V", "H", "K", "Sz", "Cs", "P", "Sz"], + short: ["V", "H", "K", "Sze", "Cs", "P", "Szo"], + abbreviated: ["V", "H", "K", "Sze", "Cs", "P", "Szo"], + wide: [ + "vasárnap", + "hétfő", + "kedd", + "szerda", + "csütörtök", + "péntek", + "szombat", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel", + }, + abbreviated: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel", + }, + wide: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "délután", + evening: "este", + night: "éjjel", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/hu/_lib/localize.d.cts b/node_modules/date-fns/locale/hu/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hu/_lib/localize.d.ts b/node_modules/date-fns/locale/hu/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hu/_lib/localize.js b/node_modules/date-fns/locale/hu/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..2a8b2bf2360a59c5b392d5491166c29fa6f0feeb --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize.js @@ -0,0 +1,138 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ie.", "isz."], + abbreviated: ["i. e.", "i. sz."], + wide: ["Krisztus előtt", "időszámításunk szerint"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. n.év", "2. n.év", "3. n.év", "4. n.év"], + wide: ["1. negyedév", "2. negyedév", "3. negyedév", "4. negyedév"], +}; + +const formattingQuarterValues = { + narrow: ["I.", "II.", "III.", "IV."], + abbreviated: ["I. n.év", "II. n.év", "III. n.év", "IV. n.év"], + wide: ["I. negyedév", "II. negyedév", "III. negyedév", "IV. negyedév"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "Á", "M", "J", "J", "A", "Sz", "O", "N", "D"], + + abbreviated: [ + "jan.", + "febr.", + "márc.", + "ápr.", + "máj.", + "jún.", + "júl.", + "aug.", + "szept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "január", + "február", + "március", + "április", + "május", + "június", + "július", + "augusztus", + "szeptember", + "október", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["V", "H", "K", "Sz", "Cs", "P", "Sz"], + short: ["V", "H", "K", "Sze", "Cs", "P", "Szo"], + abbreviated: ["V", "H", "K", "Sze", "Cs", "P", "Szo"], + wide: [ + "vasárnap", + "hétfő", + "kedd", + "szerda", + "csütörtök", + "péntek", + "szombat", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel", + }, + abbreviated: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel", + }, + wide: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "délután", + evening: "este", + night: "éjjel", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/hu/_lib/match.cjs b/node_modules/date-fns/locale/hu/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6fe309d9d8079a4c6beaf4ce4b9fbe41e817a6e0 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ie\.|isz\.)/i, + abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, + wide: /^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i, +}; +const parseEraPatterns = { + narrow: [/ie/i, /isz/i], + abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], + any: [/előtt/i, /(szerint|i. sz.)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^[1234]?\.?\s?n\.év/i, + wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i, +}; +const parseQuarterPatterns = { + any: [/1|I$/i, /2|II$/i, /3|III/i, /4|IV/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmaásond]|sz/i, + abbreviated: + /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, + wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a|á/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s|sz/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^már/i, + /^áp/i, + /^máj/i, + /^jún/i, + /^júl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^([vhkpc]|sz|cs|sz)/i, + short: /^([vhkp]|sze|cs|szo)/i, + abbreviated: /^([vhkp]|sze|cs|szo)/i, + wide: /^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i, +}; +const parseDayPatterns = { + narrow: [/^v/i, /^h/i, /^k/i, /^sz/i, /^c/i, /^p/i, /^sz/i], + any: [/^v/i, /^h/i, /^k/i, /^sze/i, /^c/i, /^p/i, /^szo/i], +}; + +const matchDayPeriodPatterns = { + any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^de\.?/i, + pm: /^du\.?/i, + midnight: /^éjf/i, + noon: /^dé/i, + morning: /reg/i, + afternoon: /^délu\.?/i, + evening: /es/i, + night: /éjj/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/hu/_lib/match.d.cts b/node_modules/date-fns/locale/hu/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hu/_lib/match.d.ts b/node_modules/date-fns/locale/hu/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hu/_lib/match.js b/node_modules/date-fns/locale/hu/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..750d090617fda9ed15f037a0341c17cf5d3d31dc --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ie\.|isz\.)/i, + abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, + wide: /^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i, +}; +const parseEraPatterns = { + narrow: [/ie/i, /isz/i], + abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], + any: [/előtt/i, /(szerint|i. sz.)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^[1234]?\.?\s?n\.év/i, + wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i, +}; +const parseQuarterPatterns = { + any: [/1|I$/i, /2|II$/i, /3|III/i, /4|IV/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmaásond]|sz/i, + abbreviated: + /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, + wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a|á/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s|sz/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^már/i, + /^áp/i, + /^máj/i, + /^jún/i, + /^júl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^([vhkpc]|sz|cs|sz)/i, + short: /^([vhkp]|sze|cs|szo)/i, + abbreviated: /^([vhkp]|sze|cs|szo)/i, + wide: /^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i, +}; +const parseDayPatterns = { + narrow: [/^v/i, /^h/i, /^k/i, /^sz/i, /^c/i, /^p/i, /^sz/i], + any: [/^v/i, /^h/i, /^k/i, /^sze/i, /^c/i, /^p/i, /^szo/i], +}; + +const matchDayPeriodPatterns = { + any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^de\.?/i, + pm: /^du\.?/i, + midnight: /^éjf/i, + noon: /^dé/i, + morning: /reg/i, + afternoon: /^délu\.?/i, + evening: /es/i, + night: /éjj/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/hu/cdn.js b/node_modules/date-fns/locale/hu/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..ac0650fd83a270bfcb3e8d2b772b9331ea2a83e5 --- /dev/null +++ b/node_modules/date-fns/locale/hu/cdn.js @@ -0,0 +1,579 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/hu/_lib/formatDistance.js +var translations = { + about: "körülbelül", + over: "több mint", + almost: "majdnem", + lessthan: "kevesebb mint" +}; +var withoutSuffixes = { + xseconds: " másodperc", + halfaminute: "fél perc", + xminutes: " perc", + xhours: " óra", + xdays: " nap", + xweeks: " hét", + xmonths: " hónap", + xyears: " év" +}; +var withSuffixes = { + xseconds: { + "-1": " másodperccel ezelőtt", + 1: " másodperc múlva", + 0: " másodperce" + }, + halfaminute: { + "-1": "fél perccel ezelőtt", + 1: "fél perc múlva", + 0: "fél perce" + }, + xminutes: { + "-1": " perccel ezelőtt", + 1: " perc múlva", + 0: " perce" + }, + xhours: { + "-1": " órával ezelőtt", + 1: " óra múlva", + 0: " órája" + }, + xdays: { + "-1": " nappal ezelőtt", + 1: " nap múlva", + 0: " napja" + }, + xweeks: { + "-1": " héttel ezelőtt", + 1: " hét múlva", + 0: " hete" + }, + xmonths: { + "-1": " hónappal ezelőtt", + 1: " hónap múlva", + 0: " hónapja" + }, + xyears: { + "-1": " évvel ezelőtt", + 1: " év múlva", + 0: " éve" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = adverb ? token.replace(adverb[0], "") : token; + var addSuffix = (options === null || options === void 0 ? void 0 : options.addSuffix) === true; + var key = unit.toLowerCase(); + var comparison = (options === null || options === void 0 ? void 0 : options.comparison) || 0; + var translated = addSuffix ? withSuffixes[key][comparison] : withoutSuffixes[key]; + var result = key === "halfaminute" ? translated : count + translated; + if (adverb) result = translations[adverb[0].toLowerCase()] + " " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "y. MMMM d., EEEE", + long: "y. MMMM d.", + medium: "y. MMM d.", + short: "y. MM. dd." + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/hu/_lib/formatRelative.js +var accusativeWeekdays = [ +"vasárnap", +"hétfőn", +"kedden", +"szerdán", +"csütörtökön", +"pénteken", +"szombaton"]; + +function week(isFuture) { + return function (date) { + var weekday = accusativeWeekdays[date.getDay()]; + return "".concat(isFuture ? "" : "'múlt' ", "'").concat(weekday, "' p'-kor'"); + }; +} +var formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: "P" +}; +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/hu/_lib/localize.js +var eraValues = { + narrow: ["ie.", "isz."], + abbreviated: ["i. e.", "i. sz."], + wide: ["Krisztus előtt", "időszámításunk szerint"] +}; +var quarterValues = { + narrow: [ + "1.", + "2.", + "3.", + "4."], + + abbreviated: [ + "1. n.év", + "2. n.év", + "3. n.év", + "4. n.év"], + + wide: [ + "1. negyedév", + "2. negyedév", + "3. negyedév", + "4. negyedév"] + +}; +var formattingQuarterValues = { + narrow: [ + "I.", + "II.", + "III.", + "IV."], + + abbreviated: [ + "I. n.év", + "II. n.év", + "III. n.év", + "IV. n.év"], + + wide: [ + "I. negyedév", + "II. negyedév", + "III. negyedév", + "IV. negyedév"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "Á", + "M", + "J", + "J", + "A", + "Sz", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "febr.", + "márc.", + "ápr.", + "máj.", + "jún.", + "júl.", + "aug.", + "szept.", + "okt.", + "nov.", + "dec."], + + wide: [ + "január", + "február", + "március", + "április", + "május", + "június", + "július", + "augusztus", + "szeptember", + "október", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "V", + "H", + "K", + "Sz", + "Cs", + "P", + "Sz"], + + short: [ + "V", + "H", + "K", + "Sze", + "Cs", + "P", + "Szo"], + + abbreviated: [ + "V", + "H", + "K", + "Sze", + "Cs", + "P", + "Szo"], + + wide: [ + "vasárnap", + "hétfő", + "kedd", + "szerda", + "csütörtök", + "péntek", + "szombat"] + +}; +var dayPeriodValues = { + narrow: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel" + }, + abbreviated: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel" + }, + wide: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "délután", + evening: "este", + night: "éjjel" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;}, + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide" + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/hu.js +/** +* @category Locales +* @summary Hungarian locale. +* @language Hungarian +* @iso-639-2 hun +* @author Pavlo Shpak [@pshpak](https://github.com/pshpak) +* @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) +* @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) +*/ +var hu = { + code: "hu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\.?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ie\.|isz\.)/i, + abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, + wide: /^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/ie/i, /isz/i], + abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], + any: [/előtt/i, /(szerint|i. sz.)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]\.?/i, + abbreviated: /^[1234]?\.?\s?n\.év/i, + wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1|I$/i, + /2|II$/i, + /3|III/i, + /4|IV/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmaásond]|sz/i, + abbreviated: /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, + wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a|á/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s|sz/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^már/i, + /^áp/i, + /^máj/i, + /^jún/i, + /^júl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^([vhkpc]|sz|cs|sz)/i, + short: /^([vhkp]|sze|cs|szo)/i, + abbreviated: /^([vhkp]|sze|cs|szo)/i, + wide: /^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^v/i, + /^h/i, + /^k/i, + /^sz/i, + /^c/i, + /^p/i, + /^sz/i], + + any: [ + /^v/i, + /^h/i, + /^k/i, + /^sze/i, + /^c/i, + /^p/i, + /^szo/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^de\.?/i, + pm: /^du\.?/i, + midnight: /^éjf/i, + noon: /^dé/i, + morning: /reg/i, + afternoon: /^délu\.?/i, + evening: /es/i, + night: /éjj/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/hu/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + hu: hu }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/cdn.min.js b/node_modules/date-fns/locale/hu/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..5a3eeafaef36d46b26033ac4f9304486e407fac0 --- /dev/null +++ b/node_modules/date-fns/locale/hu/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var d={date:u({formats:{full:`y. MMMM d., EEEE`,long:`y. MMMM d.`,medium:`y. MMM d.`,short:`y. MM. dd.`},defaultWidth:`full`}),time:u({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:u({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},f=[`vasárnap`,`hétfőn`,`kedden`,`szerdán`,`csütörtökön`,`pénteken`,`szombaton`];function p(e){return function(t){var n=f[t.getDay()];return`${e?``:`'múlt' `}'${n}' p'-kor'`}}var m={lastWeek:p(!1),yesterday:`'tegnap' p'-kor'`,today:`'ma' p'-kor'`,tomorrow:`'holnap' p'-kor'`,nextWeek:p(!0),other:`P`},h=function(e,t){var n=m[e];return typeof n==`function`?n(t):n};function g(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var _={ordinalNumber:function(e,t){return Number(e)+`.`},era:g({values:{narrow:[`ie.`,`isz.`],abbreviated:[`i. e.`,`i. sz.`],wide:[`Krisztus előtt`,`időszámításunk szerint`]},defaultWidth:`wide`}),quarter:g({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. n.év`,`2. n.év`,`3. n.év`,`4. n.év`],wide:[`1. negyedév`,`2. negyedév`,`3. negyedév`,`4. negyedév`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1},formattingValues:{narrow:[`I.`,`II.`,`III.`,`IV.`],abbreviated:[`I. n.év`,`II. n.év`,`III. n.év`,`IV. n.év`],wide:[`I. negyedév`,`II. negyedév`,`III. negyedév`,`IV. negyedév`]},defaultFormattingWidth:`wide`}),month:g({values:{narrow:[`J`,`F`,`M`,`Á`,`M`,`J`,`J`,`A`,`Sz`,`O`,`N`,`D`],abbreviated:[`jan.`,`febr.`,`márc.`,`ápr.`,`máj.`,`jún.`,`júl.`,`aug.`,`szept.`,`okt.`,`nov.`,`dec.`],wide:[`január`,`február`,`március`,`április`,`május`,`június`,`július`,`augusztus`,`szeptember`,`október`,`november`,`december`]},defaultWidth:`wide`}),day:g({values:{narrow:[`V`,`H`,`K`,`Sz`,`Cs`,`P`,`Sz`],short:[`V`,`H`,`K`,`Sze`,`Cs`,`P`,`Szo`],abbreviated:[`V`,`H`,`K`,`Sze`,`Cs`,`P`,`Szo`],wide:[`vasárnap`,`hétfő`,`kedd`,`szerda`,`csütörtök`,`péntek`,`szombat`]},defaultWidth:`wide`}),dayPeriod:g({values:{narrow:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`du.`,evening:`este`,night:`éjjel`},abbreviated:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`du.`,evening:`este`,night:`éjjel`},wide:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`délután`,evening:`este`,night:`éjjel`}},defaultWidth:`wide`})};function v(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?b(s,function(e){return e.test(o)}):y(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function y(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function b(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var S={code:`hu`,formatDistance:l,formatLong:d,formatRelative:h,localize:_,match:{ordinalNumber:x({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:v({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},defaultParseWidth:`any`}),quarter:v({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:v({matchPatterns:{narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:v({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:`any`}),dayPeriod:v({matchPatterns:{any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{hu:S})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy.cjs b/node_modules/date-fns/locale/hy.cjs new file mode 100644 index 0000000000000000000000000000000000000000..eaf5651e2156bd8523cb11a526d03f014bf46481 --- /dev/null +++ b/node_modules/date-fns/locale/hy.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.hy = void 0; +var _index = require("./hy/_lib/formatDistance.cjs"); +var _index2 = require("./hy/_lib/formatLong.cjs"); +var _index3 = require("./hy/_lib/formatRelative.cjs"); +var _index4 = require("./hy/_lib/localize.cjs"); +var _index5 = require("./hy/_lib/match.cjs"); + +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +const hy = (exports.hy = { + code: "hy", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/hy.d.cts b/node_modules/date-fns/locale/hy.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bf302c0c71a41c9b5ba954b66c29310c97aa150a --- /dev/null +++ b/node_modules/date-fns/locale/hy.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +export declare const hy: Locale; diff --git a/node_modules/date-fns/locale/hy.d.ts b/node_modules/date-fns/locale/hy.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bf302c0c71a41c9b5ba954b66c29310c97aa150a --- /dev/null +++ b/node_modules/date-fns/locale/hy.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +export declare const hy: Locale; diff --git a/node_modules/date-fns/locale/hy.js b/node_modules/date-fns/locale/hy.js new file mode 100644 index 0000000000000000000000000000000000000000..da3caffad345554396403a9765b8e0657173b54a --- /dev/null +++ b/node_modules/date-fns/locale/hy.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./hy/_lib/formatDistance.js"; +import { formatLong } from "./hy/_lib/formatLong.js"; +import { formatRelative } from "./hy/_lib/formatRelative.js"; +import { localize } from "./hy/_lib/localize.js"; +import { match } from "./hy/_lib/match.js"; + +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +export const hy = { + code: "hy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default hy; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.cjs b/node_modules/date-fns/locale/hy/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0bafee3882d4e6f3815c637c21a9a0d9e9c51d46 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "ավելի քիչ քան 1 վայրկյան", + other: "ավելի քիչ քան {{count}} վայրկյան", + }, + + xSeconds: { + one: "1 վայրկյան", + other: "{{count}} վայրկյան", + }, + + halfAMinute: "կես րոպե", + + lessThanXMinutes: { + one: "ավելի քիչ քան 1 րոպե", + other: "ավելի քիչ քան {{count}} րոպե", + }, + + xMinutes: { + one: "1 րոպե", + other: "{{count}} րոպե", + }, + + aboutXHours: { + one: "մոտ 1 ժամ", + other: "մոտ {{count}} ժամ", + }, + + xHours: { + one: "1 ժամ", + other: "{{count}} ժամ", + }, + + xDays: { + one: "1 օր", + other: "{{count}} օր", + }, + + aboutXWeeks: { + one: "մոտ 1 շաբաթ", + other: "մոտ {{count}} շաբաթ", + }, + + xWeeks: { + one: "1 շաբաթ", + other: "{{count}} շաբաթ", + }, + + aboutXMonths: { + one: "մոտ 1 ամիս", + other: "մոտ {{count}} ամիս", + }, + + xMonths: { + one: "1 ամիս", + other: "{{count}} ամիս", + }, + + aboutXYears: { + one: "մոտ 1 տարի", + other: "մոտ {{count}} տարի", + }, + + xYears: { + one: "1 տարի", + other: "{{count}} տարի", + }, + + overXYears: { + one: "ավելի քան 1 տարի", + other: "ավելի քան {{count}} տարի", + }, + + almostXYears: { + one: "համարյա 1 տարի", + other: "համարյա {{count}} տարի", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " հետո"; + } else { + return result + " առաջ"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.js b/node_modules/date-fns/locale/hy/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..8b82a7f6cabd01f82b2011d1028b1d69a3ec0b11 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "ավելի քիչ քան 1 վայրկյան", + other: "ավելի քիչ քան {{count}} վայրկյան", + }, + + xSeconds: { + one: "1 վայրկյան", + other: "{{count}} վայրկյան", + }, + + halfAMinute: "կես րոպե", + + lessThanXMinutes: { + one: "ավելի քիչ քան 1 րոպե", + other: "ավելի քիչ քան {{count}} րոպե", + }, + + xMinutes: { + one: "1 րոպե", + other: "{{count}} րոպե", + }, + + aboutXHours: { + one: "մոտ 1 ժամ", + other: "մոտ {{count}} ժամ", + }, + + xHours: { + one: "1 ժամ", + other: "{{count}} ժամ", + }, + + xDays: { + one: "1 օր", + other: "{{count}} օր", + }, + + aboutXWeeks: { + one: "մոտ 1 շաբաթ", + other: "մոտ {{count}} շաբաթ", + }, + + xWeeks: { + one: "1 շաբաթ", + other: "{{count}} շաբաթ", + }, + + aboutXMonths: { + one: "մոտ 1 ամիս", + other: "մոտ {{count}} ամիս", + }, + + xMonths: { + one: "1 ամիս", + other: "{{count}} ամիս", + }, + + aboutXYears: { + one: "մոտ 1 տարի", + other: "մոտ {{count}} տարի", + }, + + xYears: { + one: "1 տարի", + other: "{{count}} տարի", + }, + + overXYears: { + one: "ավելի քան 1 տարի", + other: "ավելի քան {{count}} տարի", + }, + + almostXYears: { + one: "համարյա 1 տարի", + other: "համարյա {{count}} տարի", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " հետո"; + } else { + return result + " առաջ"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.cjs b/node_modules/date-fns/locale/hy/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..38c92929c91aad62a06e3285a3e5b0f2bafc7ece --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "d MMMM, y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'ժ․'{{time}}", + long: "{{date}} 'ժ․'{{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.d.cts b/node_modules/date-fns/locale/hy/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.d.ts b/node_modules/date-fns/locale/hy/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.js b/node_modules/date-fns/locale/hy/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..93744fdacd576ca67b2584b121b280bfeb3f5dac --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "d MMMM, y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'ժ․'{{time}}", + long: "{{date}} 'ժ․'{{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.cjs b/node_modules/date-fns/locale/hy/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..11a19f6a156923719100fea330cca6d29ac64bcb --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.js b/node_modules/date-fns/locale/hy/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..52a229ca4fe3f097bcd8a5aee6d1924e9cf8f437 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/hy/_lib/localize.cjs b/node_modules/date-fns/locale/hy/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ed555bd7d152a14f2e12a3a62edec6ee11bff063 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize.cjs @@ -0,0 +1,180 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["Ք", "Մ"], + abbreviated: ["ՔԱ", "ՄԹ"], + wide: ["Քրիստոսից առաջ", "Մեր թվարկության"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Ք1", "Ք2", "Ք3", "Ք4"], + wide: ["1֊ին քառորդ", "2֊րդ քառորդ", "3֊րդ քառորդ", "4֊րդ քառորդ"], +}; + +const monthValues = { + narrow: ["Հ", "Փ", "Մ", "Ա", "Մ", "Հ", "Հ", "Օ", "Ս", "Հ", "Ն", "Դ"], + abbreviated: [ + "հուն", + "փետ", + "մար", + "ապր", + "մայ", + "հուն", + "հուլ", + "օգս", + "սեպ", + "հոկ", + "նոյ", + "դեկ", + ], + + wide: [ + "հունվար", + "փետրվար", + "մարտ", + "ապրիլ", + "մայիս", + "հունիս", + "հուլիս", + "օգոստոս", + "սեպտեմբեր", + "հոկտեմբեր", + "նոյեմբեր", + "դեկտեմբեր", + ], +}; + +const dayValues = { + narrow: ["Կ", "Ե", "Ե", "Չ", "Հ", "Ո", "Շ"], + short: ["կր", "եր", "եք", "չք", "հգ", "ուր", "շբ"], + abbreviated: ["կիր", "երկ", "երք", "չոր", "հնգ", "ուրբ", "շաբ"], + wide: [ + "կիրակի", + "երկուշաբթի", + "երեքշաբթի", + "չորեքշաբթի", + "հինգշաբթի", + "ուրբաթ", + "շաբաթ", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + const rem100 = number % 100; + if (rem100 < 10) { + if (rem100 % 10 === 1) { + return number + "֊ին"; + } + } + return number + "֊րդ"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/hy/_lib/localize.d.cts b/node_modules/date-fns/locale/hy/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hy/_lib/localize.d.ts b/node_modules/date-fns/locale/hy/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hy/_lib/localize.js b/node_modules/date-fns/locale/hy/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..08d06d1e168ff168e1f6b5abab7d553e7d1e6692 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize.js @@ -0,0 +1,178 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["Ք", "Մ"], + abbreviated: ["ՔԱ", "ՄԹ"], + wide: ["Քրիստոսից առաջ", "Մեր թվարկության"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Ք1", "Ք2", "Ք3", "Ք4"], + wide: ["1֊ին քառորդ", "2֊րդ քառորդ", "3֊րդ քառորդ", "4֊րդ քառորդ"], +}; + +const monthValues = { + narrow: ["Հ", "Փ", "Մ", "Ա", "Մ", "Հ", "Հ", "Օ", "Ս", "Հ", "Ն", "Դ"], + abbreviated: [ + "հուն", + "փետ", + "մար", + "ապր", + "մայ", + "հուն", + "հուլ", + "օգս", + "սեպ", + "հոկ", + "նոյ", + "դեկ", + ], + + wide: [ + "հունվար", + "փետրվար", + "մարտ", + "ապրիլ", + "մայիս", + "հունիս", + "հուլիս", + "օգոստոս", + "սեպտեմբեր", + "հոկտեմբեր", + "նոյեմբեր", + "դեկտեմբեր", + ], +}; + +const dayValues = { + narrow: ["Կ", "Ե", "Ե", "Չ", "Հ", "Ո", "Շ"], + short: ["կր", "եր", "եք", "չք", "հգ", "ուր", "շբ"], + abbreviated: ["կիր", "երկ", "երք", "չոր", "հնգ", "ուրբ", "շաբ"], + wide: [ + "կիրակի", + "երկուշաբթի", + "երեքշաբթի", + "չորեքշաբթի", + "հինգշաբթի", + "ուրբաթ", + "շաբաթ", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + const rem100 = number % 100; + if (rem100 < 10) { + if (rem100 % 10 === 1) { + return number + "֊ին"; + } + } + return number + "֊րդ"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/hy/_lib/match.cjs b/node_modules/date-fns/locale/hy/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ecbc06854858da7b4b65ef20589e11a697ad3282 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match.cjs @@ -0,0 +1,138 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)((-|֊)?(ին|րդ))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i, +}; +const parseEraPatterns = { + any: [/^ք/i, /^մ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ք[1234]/i, + wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[հփմաօսնդ]/i, + abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, + wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^հ/i, + /^փ/i, + /^մ/i, + /^ա/i, + /^մ/i, + /^հ/i, + /^հ/i, + /^օ/i, + /^ս/i, + /^հ/i, + /^ն/i, + /^դ/i, + ], + + any: [ + /^հու/i, + /^փ/i, + /^մար/i, + /^ա/i, + /^մայ/i, + /^հուն/i, + /^հուլ/i, + /^օ/i, + /^ս/i, + /^հոկ/i, + /^ն/i, + /^դ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[եչհոշկ]/i, + short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i, + abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, + wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i, +}; +const parseDayPatterns = { + narrow: [/^կ/i, /^ե/i, /^ե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + short: [/^կ/i, /^եր/i, /^եք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + abbreviated: [/^կ/i, /^երկ/i, /^երք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + + wide: [/^կ/i, /^երկ/i, /^երե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, + any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /կեսգիշեր/i, + noon: /կեսօր/i, + morning: /առավոտ/i, + afternoon: /ցերեկ/i, + evening: /երեկո/i, + night: /գիշեր/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/hy/_lib/match.d.cts b/node_modules/date-fns/locale/hy/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hy/_lib/match.d.ts b/node_modules/date-fns/locale/hy/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hy/_lib/match.js b/node_modules/date-fns/locale/hy/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..eb2275cd45ee6e3e3194ece69c986b24c1d71746 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match.js @@ -0,0 +1,135 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)((-|֊)?(ին|րդ))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i, +}; +const parseEraPatterns = { + any: [/^ք/i, /^մ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ք[1234]/i, + wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[հփմաօսնդ]/i, + abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, + wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^հ/i, + /^փ/i, + /^մ/i, + /^ա/i, + /^մ/i, + /^հ/i, + /^հ/i, + /^օ/i, + /^ս/i, + /^հ/i, + /^ն/i, + /^դ/i, + ], + + any: [ + /^հու/i, + /^փ/i, + /^մար/i, + /^ա/i, + /^մայ/i, + /^հուն/i, + /^հուլ/i, + /^օ/i, + /^ս/i, + /^հոկ/i, + /^ն/i, + /^դ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[եչհոշկ]/i, + short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i, + abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, + wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i, +}; +const parseDayPatterns = { + narrow: [/^կ/i, /^ե/i, /^ե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + short: [/^կ/i, /^եր/i, /^եք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + abbreviated: [/^կ/i, /^երկ/i, /^երք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + + wide: [/^կ/i, /^երկ/i, /^երե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, + any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /կեսգիշեր/i, + noon: /կեսօր/i, + morning: /առավոտ/i, + afternoon: /ցերեկ/i, + evening: /երեկո/i, + night: /գիշեր/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/hy/cdn.js b/node_modules/date-fns/locale/hy/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..240f8b330157b1e659d3a149ecee9a682fb84590 --- /dev/null +++ b/node_modules/date-fns/locale/hy/cdn.js @@ -0,0 +1,596 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/hy/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "ավելի քիչ քան 1 վայրկյան", + other: "ավելի քիչ քան {{count}} վայրկյան" + }, + xSeconds: { + one: "1 վայրկյան", + other: "{{count}} վայրկյան" + }, + halfAMinute: "կես րոպե", + lessThanXMinutes: { + one: "ավելի քիչ քան 1 րոպե", + other: "ավելի քիչ քան {{count}} րոպե" + }, + xMinutes: { + one: "1 րոպե", + other: "{{count}} րոպե" + }, + aboutXHours: { + one: "մոտ 1 ժամ", + other: "մոտ {{count}} ժամ" + }, + xHours: { + one: "1 ժամ", + other: "{{count}} ժամ" + }, + xDays: { + one: "1 օր", + other: "{{count}} օր" + }, + aboutXWeeks: { + one: "մոտ 1 շաբաթ", + other: "մոտ {{count}} շաբաթ" + }, + xWeeks: { + one: "1 շաբաթ", + other: "{{count}} շաբաթ" + }, + aboutXMonths: { + one: "մոտ 1 ամիս", + other: "մոտ {{count}} ամիս" + }, + xMonths: { + one: "1 ամիս", + other: "{{count}} ամիս" + }, + aboutXYears: { + one: "մոտ 1 տարի", + other: "մոտ {{count}} տարի" + }, + xYears: { + one: "1 տարի", + other: "{{count}} տարի" + }, + overXYears: { + one: "ավելի քան 1 տարի", + other: "ավելի քան {{count}} տարի" + }, + almostXYears: { + one: "համարյա 1 տարի", + other: "համարյա {{count}} տարի" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + " հետո";else + return result + " առաջ"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "d MMMM, y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd.MM.yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'ժ․'{{time}}", + long: "{{date}} 'ժ․'{{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/hy/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/hy/_lib/localize.js +var eraValues = { + narrow: ["Ք", "Մ"], + abbreviated: ["ՔԱ", "ՄԹ"], + wide: ["Քրիստոսից առաջ", "Մեր թվարկության"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Ք1", + "Ք2", + "Ք3", + "Ք4"], + + wide: [ + "1֊ին քառորդ", + "2֊րդ քառորդ", + "3֊րդ քառորդ", + "4֊րդ քառորդ"] + +}; +var monthValues = { + narrow: [ + "Հ", + "Փ", + "Մ", + "Ա", + "Մ", + "Հ", + "Հ", + "Օ", + "Ս", + "Հ", + "Ն", + "Դ"], + + abbreviated: [ + "հուն", + "փետ", + "մար", + "ապր", + "մայ", + "հուն", + "հուլ", + "օգս", + "սեպ", + "հոկ", + "նոյ", + "դեկ"], + + wide: [ + "հունվար", + "փետրվար", + "մարտ", + "ապրիլ", + "մայիս", + "հունիս", + "հուլիս", + "օգոստոս", + "սեպտեմբեր", + "հոկտեմբեր", + "նոյեմբեր", + "դեկտեմբեր"] + +}; +var dayValues = { + narrow: [ + "Կ", + "Ե", + "Ե", + "Չ", + "Հ", + "Ո", + "Շ"], + + short: [ + "կր", + "եր", + "եք", + "չք", + "հգ", + "ուր", + "շբ"], + + abbreviated: [ + "կիր", + "երկ", + "երք", + "չոր", + "հնգ", + "ուրբ", + "շաբ"], + + wide: [ + "կիրակի", + "երկուշաբթի", + "երեքշաբթի", + "չորեքշաբթի", + "հինգշաբթի", + "ուրբաթ", + "շաբաթ"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 < 10) { + if (rem100 % 10 === 1) return number + "֊ին"; + } + return number + "֊րդ"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/hy.js +/** +* @category Locales +* @summary Armenian locale +* @language Armenian +* @iso-639-2 arm +* @author Alex Igityan [@alexigityan](https://github.com/alexigityan) +*/ +var hy = { + code: "hy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)((-|֊)?(ին|րդ))?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ք/i, /^մ/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ք[1234]/i, + wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[հփմաօսնդ]/i, + abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, + wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^հ/i, + /^փ/i, + /^մ/i, + /^ա/i, + /^մ/i, + /^հ/i, + /^հ/i, + /^օ/i, + /^ս/i, + /^հ/i, + /^ն/i, + /^դ/i], + + any: [ + /^հու/i, + /^փ/i, + /^մար/i, + /^ա/i, + /^մայ/i, + /^հուն/i, + /^հուլ/i, + /^օ/i, + /^ս/i, + /^հոկ/i, + /^ն/i, + /^դ/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[եչհոշկ]/i, + short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i, + abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, + wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^կ/i, + /^ե/i, + /^ե/i, + /^չ/i, + /^հ/i, + /^(ո|Ո)/, + /^շ/i], + + short: [ + /^կ/i, + /^եր/i, + /^եք/i, + /^չ/i, + /^հ/i, + /^(ո|Ո)/, + /^շ/i], + + abbreviated: [ + /^կ/i, + /^երկ/i, + /^երք/i, + /^չ/i, + /^հ/i, + /^(ո|Ո)/, + /^շ/i], + + wide: [ + /^կ/i, + /^երկ/i, + /^երե/i, + /^չ/i, + /^հ/i, + /^(ո|Ո)/, + /^շ/i] + + }, + defaultParseWidth: "wide" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, + any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /կեսգիշեր/i, + noon: /կեսօր/i, + morning: /առավոտ/i, + afternoon: /ցերեկ/i, + evening: /երեկո/i, + night: /գիշեր/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/hy/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + hy: hy }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/cdn.min.js b/node_modules/date-fns/locale/hy/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..d39e888f1e51efdb681a51099a534d4bc0c62735 --- /dev/null +++ b/node_modules/date-fns/locale/hy/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+` հետո`:r+` առաջ`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`d MMMM, y, EEEE`,long:`d MMMM, y`,medium:`d MMM, y`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'ժ․'{{time}}`,long:`{{date}} 'ժ․'{{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'նախորդ' eeee p'֊ին'`,yesterday:`'երեկ' p'֊ին'`,today:`'այսօր' p'֊ին'`,tomorrow:`'վաղը' p'֊ին'`,nextWeek:`'հաջորդ' eeee p'֊ին'`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=n%100;return r<10&&r%10==1?n+`֊ին`:n+`֊րդ`},era:f({values:{narrow:[`Ք`,`Մ`],abbreviated:[`ՔԱ`,`ՄԹ`],wide:[`Քրիստոսից առաջ`,`Մեր թվարկության`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Ք1`,`Ք2`,`Ք3`,`Ք4`],wide:[`1֊ին քառորդ`,`2֊րդ քառորդ`,`3֊րդ քառորդ`,`4֊րդ քառորդ`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Հ`,`Փ`,`Մ`,`Ա`,`Մ`,`Հ`,`Հ`,`Օ`,`Ս`,`Հ`,`Ն`,`Դ`],abbreviated:[`հուն`,`փետ`,`մար`,`ապր`,`մայ`,`հուն`,`հուլ`,`օգս`,`սեպ`,`հոկ`,`նոյ`,`դեկ`],wide:[`հունվար`,`փետրվար`,`մարտ`,`ապրիլ`,`մայիս`,`հունիս`,`հուլիս`,`օգոստոս`,`սեպտեմբեր`,`հոկտեմբեր`,`նոյեմբեր`,`դեկտեմբեր`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Կ`,`Ե`,`Ե`,`Չ`,`Հ`,`Ո`,`Շ`],short:[`կր`,`եր`,`եք`,`չք`,`հգ`,`ուր`,`շբ`],abbreviated:[`կիր`,`երկ`,`երք`,`չոր`,`հնգ`,`ուրբ`,`շաբ`],wide:[`կիրակի`,`երկուշաբթի`,`երեքշաբթի`,`չորեքշաբթի`,`հինգշաբթի`,`ուրբաթ`,`շաբաթ`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`կեսգշ`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`},abbreviated:{am:`AM`,pm:`PM`,midnight:`կեսգիշեր`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`կեսգիշեր`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`կեսգշ`,noon:`կեսօր`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`},abbreviated:{am:`AM`,pm:`PM`,midnight:`կեսգիշերին`,noon:`կեսօրին`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`կեսգիշերին`,noon:`կեսօրին`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`hy`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)((-|֊)?(ին|րդ))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ք/i,/^մ/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},defaultParseWidth:`wide`}),dayPeriod:m({matchPatterns:{narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{hy:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.cjs b/node_modules/date-fns/locale/id/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..8e45c2f3ee9826fc78389bcf7c86d2e82d8c4ab0 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 detik", + other: "kurang dari {{count}} detik", + }, + + xSeconds: { + one: "1 detik", + other: "{{count}} detik", + }, + + halfAMinute: "setengah menit", + + lessThanXMinutes: { + one: "kurang dari 1 menit", + other: "kurang dari {{count}} menit", + }, + + xMinutes: { + one: "1 menit", + other: "{{count}} menit", + }, + + aboutXHours: { + one: "sekitar 1 jam", + other: "sekitar {{count}} jam", + }, + + xHours: { + one: "1 jam", + other: "{{count}} jam", + }, + + xDays: { + one: "1 hari", + other: "{{count}} hari", + }, + + aboutXWeeks: { + one: "sekitar 1 minggu", + other: "sekitar {{count}} minggu", + }, + + xWeeks: { + one: "1 minggu", + other: "{{count}} minggu", + }, + + aboutXMonths: { + one: "sekitar 1 bulan", + other: "sekitar {{count}} bulan", + }, + + xMonths: { + one: "1 bulan", + other: "{{count}} bulan", + }, + + aboutXYears: { + one: "sekitar 1 tahun", + other: "sekitar {{count}} tahun", + }, + + xYears: { + one: "1 tahun", + other: "{{count}} tahun", + }, + + overXYears: { + one: "lebih dari 1 tahun", + other: "lebih dari {{count}} tahun", + }, + + almostXYears: { + one: "hampir 1 tahun", + other: "hampir {{count}} tahun", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dalam waktu " + result; + } else { + return result + " yang lalu"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/id/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/id/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.js b/node_modules/date-fns/locale/id/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..f6b1882d2bf0cf0cb4044c010e8bc0f2e37511e1 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 detik", + other: "kurang dari {{count}} detik", + }, + + xSeconds: { + one: "1 detik", + other: "{{count}} detik", + }, + + halfAMinute: "setengah menit", + + lessThanXMinutes: { + one: "kurang dari 1 menit", + other: "kurang dari {{count}} menit", + }, + + xMinutes: { + one: "1 menit", + other: "{{count}} menit", + }, + + aboutXHours: { + one: "sekitar 1 jam", + other: "sekitar {{count}} jam", + }, + + xHours: { + one: "1 jam", + other: "{{count}} jam", + }, + + xDays: { + one: "1 hari", + other: "{{count}} hari", + }, + + aboutXWeeks: { + one: "sekitar 1 minggu", + other: "sekitar {{count}} minggu", + }, + + xWeeks: { + one: "1 minggu", + other: "{{count}} minggu", + }, + + aboutXMonths: { + one: "sekitar 1 bulan", + other: "sekitar {{count}} bulan", + }, + + xMonths: { + one: "1 bulan", + other: "{{count}} bulan", + }, + + aboutXYears: { + one: "sekitar 1 tahun", + other: "sekitar {{count}} tahun", + }, + + xYears: { + one: "1 tahun", + other: "{{count}} tahun", + }, + + overXYears: { + one: "lebih dari 1 tahun", + other: "lebih dari {{count}} tahun", + }, + + almostXYears: { + one: "hampir 1 tahun", + other: "hampir {{count}} tahun", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dalam waktu " + result; + } else { + return result + " yang lalu"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/id/_lib/formatLong.cjs b/node_modules/date-fns/locale/id/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..195789dfcd1ba4f2eea5867a99954bc2f060a652 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "d/M/yyyy", +}; + +const timeFormats = { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +});