diff --git a/node_modules/date-fns/locale/id.cjs b/node_modules/date-fns/locale/id.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0cb689fc21d847a6590a47b0df196c4292f305fd --- /dev/null +++ b/node_modules/date-fns/locale/id.cjs @@ -0,0 +1,30 @@ +"use strict"; +exports.id = void 0; +var _index = require("./id/_lib/formatDistance.cjs"); +var _index2 = require("./id/_lib/formatLong.cjs"); +var _index3 = require("./id/_lib/formatRelative.cjs"); +var _index4 = require("./id/_lib/localize.cjs"); +var _index5 = require("./id/_lib/match.cjs"); + +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +const id = (exports.id = { + code: "id", + 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/id.d.cts b/node_modules/date-fns/locale/id.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..6cd4d34e6353551ffed8c2cda0d3d9d5bf992e62 --- /dev/null +++ b/node_modules/date-fns/locale/id.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +export declare const id: Locale; diff --git a/node_modules/date-fns/locale/id.d.ts b/node_modules/date-fns/locale/id.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6cd4d34e6353551ffed8c2cda0d3d9d5bf992e62 --- /dev/null +++ b/node_modules/date-fns/locale/id.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +export declare const id: Locale; diff --git a/node_modules/date-fns/locale/id.js b/node_modules/date-fns/locale/id.js new file mode 100644 index 0000000000000000000000000000000000000000..56dbd847b57c0faa7686e70401ca47f29e264cbe --- /dev/null +++ b/node_modules/date-fns/locale/id.js @@ -0,0 +1,31 @@ +import { formatDistance } from "./id/_lib/formatDistance.js"; +import { formatLong } from "./id/_lib/formatLong.js"; +import { formatRelative } from "./id/_lib/formatRelative.js"; +import { localize } from "./id/_lib/localize.js"; +import { match } from "./id/_lib/match.js"; + +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +export const id = { + code: "id", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default id; diff --git a/node_modules/date-fns/locale/id/_lib/formatLong.d.cts b/node_modules/date-fns/locale/id/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/id/_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/id/_lib/formatLong.d.ts b/node_modules/date-fns/locale/id/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/id/_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/id/_lib/formatLong.js b/node_modules/date-fns/locale/id/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..8796be1d886f576290dedd6a61d5f6a6b11cc291 --- /dev/null +++ b/node_modules/date-fns/locale/id/_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: "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}}", +}; + +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/id/_lib/formatRelative.cjs b/node_modules/date-fns/locale/id/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f6c2cc3611a4d7be8a118338b569d47f0a861355 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'lalu pukul' p", + yesterday: "'Kemarin pukul' p", + today: "'Hari ini pukul' p", + tomorrow: "'Besok pukul' p", + nextWeek: "eeee 'pukul' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/id/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/id/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/id/_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/id/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/id/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/id/_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/id/_lib/formatRelative.js b/node_modules/date-fns/locale/id/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..a2edcd8447dedeb8041a7ad209be5612da030ad1 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'lalu pukul' p", + yesterday: "'Kemarin pukul' p", + today: "'Hari ini pukul' p", + tomorrow: "'Besok pukul' p", + nextWeek: "eeee 'pukul' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/id/_lib/localize.cjs b/node_modules/date-fns/locale/id/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b50c1fefc50f039581f9e791dc70b15b92d05569 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/localize.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// All data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/id.html +const eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masehi", "Masehi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["Kuartal ke-1", "Kuartal ke-2", "Kuartal ke-3", "Kuartal ke-4"], +}; + +// Note: in Indonesian, 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", + "Mei", + "Jun", + "Jul", + "Agt", + "Sep", + "Okt", + "Nov", + "Des", + ], + + wide: [ + "Januari", + "Februari", + "Maret", + "April", + "Mei", + "Juni", + "Juli", + "Agustus", + "September", + "Oktober", + "November", + "Desember", + ], +}; + +const dayValues = { + narrow: ["M", "S", "S", "R", "K", "J", "S"], + short: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], + abbreviated: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], + wide: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // Can't use "pertama", "kedua" because can't be parsed + + return "ke-" + 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/id/_lib/localize.d.cts b/node_modules/date-fns/locale/id/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/id/_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/id/_lib/localize.d.ts b/node_modules/date-fns/locale/id/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/id/_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/id/_lib/localize.js b/node_modules/date-fns/locale/id/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..bb9db18f8262bef9a99510e4c93de20c153533d1 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/localize.js @@ -0,0 +1,165 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// All data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/id.html +const eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masehi", "Masehi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["Kuartal ke-1", "Kuartal ke-2", "Kuartal ke-3", "Kuartal ke-4"], +}; + +// Note: in Indonesian, 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", + "Mei", + "Jun", + "Jul", + "Agt", + "Sep", + "Okt", + "Nov", + "Des", + ], + + wide: [ + "Januari", + "Februari", + "Maret", + "April", + "Mei", + "Juni", + "Juli", + "Agustus", + "September", + "Oktober", + "November", + "Desember", + ], +}; + +const dayValues = { + narrow: ["M", "S", "S", "R", "K", "J", "S"], + short: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], + abbreviated: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], + wide: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // Can't use "pertama", "kedua" because can't be parsed + + return "ke-" + 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/id/_lib/match.cjs b/node_modules/date-fns/locale/id/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a6a3b0fa7213964c0d145430142fa362e7f58a2b --- /dev/null +++ b/node_modules/date-fns/locale/id/_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 = /^ke-(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, + wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i, +}; +const parseEraPatterns = { + any: [/^s/i, /^(m|e)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K-?\s[1234]/i, + wide: /^Kuartal ke-?\s?[1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, + wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/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, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[srkjm]/i, + short: /^(min|sen|sel|rab|kam|jum|sab)/i, + abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, + wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i, +}; +const parseDayPatterns = { + narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pagi/i, + afternoon: /siang/i, + evening: /sore/i, + night: /malam/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/id/_lib/match.d.cts b/node_modules/date-fns/locale/id/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/id/_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/id/_lib/match.d.ts b/node_modules/date-fns/locale/id/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/id/_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/id/_lib/match.js b/node_modules/date-fns/locale/id/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..a3f24e21878fb547685ee9113036fca695ba1264 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^ke-(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, + wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i, +}; +const parseEraPatterns = { + any: [/^s/i, /^(m|e)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K-?\s[1234]/i, + wide: /^Kuartal ke-?\s?[1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, + wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/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, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[srkjm]/i, + short: /^(min|sen|sel|rab|kam|jum|sab)/i, + abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, + wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i, +}; +const parseDayPatterns = { + narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pagi/i, + afternoon: /siang/i, + evening: /sore/i, + night: /malam/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/id/cdn.js b/node_modules/date-fns/locale/id/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..ca6c729b7e8254699408bd44b7e0d1ca80c77bfa --- /dev/null +++ b/node_modules/date-fns/locale/id/cdn.js @@ -0,0 +1,576 @@ +(() => { +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/id/_lib/formatDistance.js +var 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" + } +}; +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 "dalam waktu " + result;else + return result + " yang lalu"; + 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: "d/M/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/id/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'lalu pukul' p", + yesterday: "'Kemarin pukul' p", + today: "'Hari ini pukul' p", + tomorrow: "'Besok pukul' p", + nextWeek: "eeee 'pukul' 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/id/_lib/localize.js +var eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masehi", "Masehi"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "Kuartal ke-1", + "Kuartal ke-2", + "Kuartal ke-3", + "Kuartal ke-4"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "Mei", + "Jun", + "Jul", + "Agt", + "Sep", + "Okt", + "Nov", + "Des"], + + wide: [ + "Januari", + "Februari", + "Maret", + "April", + "Mei", + "Juni", + "Juli", + "Agustus", + "September", + "Oktober", + "November", + "Desember"] + +}; +var dayValues = { + narrow: [ + "M", + "S", + "S", + "R", + "K", + "J", + "S"], + + short: [ + "Min", + "Sen", + "Sel", + "Rab", + "Kam", + "Jum", + "Sab"], + + abbreviated: [ + "Min", + "Sen", + "Sel", + "Rab", + "Kam", + "Jum", + "Sab"], + + wide: [ + "Minggu", + "Senin", + "Selasa", + "Rabu", + "Kamis", + "Jumat", + "Sabtu"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return "ke-" + 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/id.js +/** +* @category Locales +* @summary Indonesian locale. +* @language Indonesian +* @iso-639-2 ind +* @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) +* @author Benget Nata [@bentinata](https://github.com/bentinata) +* @author Budi Irawan [@deerawan](https://github.com/deerawan) +* @author Try Ajitiono [@imballinst](https://github.com/imballinst) +*/ +var id = { + code: "id", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^ke-(\d+)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, + wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^s/i, /^(m|e)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K-?\s[1234]/i, + wide: /^Kuartal ke-?\s?[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: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, + wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/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, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[srkjm]/i, + short: /^(min|sen|sel|rab|kam|jum|sab)/i, + abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, + wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^m/i, + /^s/i, + /^s/i, + /^r/i, + /^k/i, + /^j/i, + /^s/i], + + any: [ + /^m/i, + /^sen/i, + /^sel/i, + /^r/i, + /^k/i, + /^j/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pagi/i, + afternoon: /siang/i, + evening: /sore/i, + night: /malam/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/id/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), {}, { + id: id }) }); + + +//#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/id/cdn.min.js b/node_modules/date-fns/locale/id/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..e7dea86ced2876c8e38cb69000eb202c9e8de67a --- /dev/null +++ b/node_modules/date-fns/locale/id/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?`dalam waktu `+r:r+` yang lalu`: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:`d/M/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH.mm.ss`,long:`HH.mm.ss`,medium:`HH.mm`,short:`HH.mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'pukul' {{time}}`,long:`{{date}} 'pukul' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'lalu pukul' p`,yesterday:`'Kemarin pukul' p`,today:`'Hari ini pukul' p`,tomorrow:`'Besok pukul' p`,nextWeek:`eeee 'pukul' 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`ke-`+Number(e)},era:f({values:{narrow:[`SM`,`M`],abbreviated:[`SM`,`M`],wide:[`Sebelum Masehi`,`Masehi`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`Kuartal ke-1`,`Kuartal ke-2`,`Kuartal ke-3`,`Kuartal ke-4`]},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`,`Mei`,`Jun`,`Jul`,`Agt`,`Sep`,`Okt`,`Nov`,`Des`],wide:[`Januari`,`Februari`,`Maret`,`April`,`Mei`,`Juni`,`Juli`,`Agustus`,`September`,`Oktober`,`November`,`Desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`M`,`S`,`S`,`R`,`K`,`J`,`S`],short:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],abbreviated:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],wide:[`Minggu`,`Senin`,`Selasa`,`Rabu`,`Kamis`,`Jumat`,`Sabtu`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},wide:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},wide:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`}},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:`id`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^ke-(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^(m|e)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[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:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/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,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{id: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/is.cjs b/node_modules/date-fns/locale/is.cjs new file mode 100644 index 0000000000000000000000000000000000000000..93cbe9e995889a0a4968af184dc348d461c23c7b --- /dev/null +++ b/node_modules/date-fns/locale/is.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.is = void 0; +var _index = require("./is/_lib/formatDistance.cjs"); +var _index2 = require("./is/_lib/formatLong.cjs"); +var _index3 = require("./is/_lib/formatRelative.cjs"); +var _index4 = require("./is/_lib/localize.cjs"); +var _index5 = require("./is/_lib/match.cjs"); + +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +const is = (exports.is = { + code: "is", + 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/is.d.cts b/node_modules/date-fns/locale/is.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..0a91b5010b109a40bbb4ee7edc62516d572ac205 --- /dev/null +++ b/node_modules/date-fns/locale/is.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +export declare const is: Locale; diff --git a/node_modules/date-fns/locale/is.d.ts b/node_modules/date-fns/locale/is.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0a91b5010b109a40bbb4ee7edc62516d572ac205 --- /dev/null +++ b/node_modules/date-fns/locale/is.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +export declare const is: Locale; diff --git a/node_modules/date-fns/locale/is.js b/node_modules/date-fns/locale/is.js new file mode 100644 index 0000000000000000000000000000000000000000..0676eb20e456e971c27f453998ea6577e4a454cc --- /dev/null +++ b/node_modules/date-fns/locale/is.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./is/_lib/formatDistance.js"; +import { formatLong } from "./is/_lib/formatLong.js"; +import { formatRelative } from "./is/_lib/formatRelative.js"; +import { localize } from "./is/_lib/localize.js"; +import { match } from "./is/_lib/match.js"; + +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +export const is = { + code: "is", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default is; diff --git a/node_modules/date-fns/locale/is/_lib/formatDistance.cjs b/node_modules/date-fns/locale/is/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ac17bba7d051fb059bb5ac2724040bd0a5bc2ed1 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minna en 1 sekúnda", + other: "minna en {{count}} sekúndur", + }, + + xSeconds: { + one: "1 sekúnda", + other: "{{count}} sekúndur", + }, + + halfAMinute: "hálf mínúta", + + lessThanXMinutes: { + one: "minna en 1 mínúta", + other: "minna en {{count}} mínútur", + }, + + xMinutes: { + one: "1 mínúta", + other: "{{count}} mínútur", + }, + + aboutXHours: { + one: "u.þ.b. 1 klukkustund", + other: "u.þ.b. {{count}} klukkustundir", + }, + + xHours: { + one: "1 klukkustund", + other: "{{count}} klukkustundir", + }, + + xDays: { + one: "1 dagur", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "um viku", + other: "um {{count}} vikur", + }, + + xWeeks: { + one: "1 viku", + other: "{{count}} vikur", + }, + + aboutXMonths: { + one: "u.þ.b. 1 mánuður", + other: "u.þ.b. {{count}} mánuðir", + }, + + xMonths: { + one: "1 mánuður", + other: "{{count}} mánuðir", + }, + + aboutXYears: { + one: "u.þ.b. 1 ár", + other: "u.þ.b. {{count}} ár", + }, + + xYears: { + one: "1 ár", + other: "{{count}} ár", + }, + + overXYears: { + one: "meira en 1 ár", + other: "meira en {{count}} ár", + }, + + almostXYears: { + one: "næstum 1 ár", + other: "næstum {{count}} ár", + }, +}; + +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 "í " + result; + } else { + return result + " síðan"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/is/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/is/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/is/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/formatDistance.js b/node_modules/date-fns/locale/is/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..3b2b14be4e011ef87c741fa37b8ac6294d254340 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minna en 1 sekúnda", + other: "minna en {{count}} sekúndur", + }, + + xSeconds: { + one: "1 sekúnda", + other: "{{count}} sekúndur", + }, + + halfAMinute: "hálf mínúta", + + lessThanXMinutes: { + one: "minna en 1 mínúta", + other: "minna en {{count}} mínútur", + }, + + xMinutes: { + one: "1 mínúta", + other: "{{count}} mínútur", + }, + + aboutXHours: { + one: "u.þ.b. 1 klukkustund", + other: "u.þ.b. {{count}} klukkustundir", + }, + + xHours: { + one: "1 klukkustund", + other: "{{count}} klukkustundir", + }, + + xDays: { + one: "1 dagur", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "um viku", + other: "um {{count}} vikur", + }, + + xWeeks: { + one: "1 viku", + other: "{{count}} vikur", + }, + + aboutXMonths: { + one: "u.þ.b. 1 mánuður", + other: "u.þ.b. {{count}} mánuðir", + }, + + xMonths: { + one: "1 mánuður", + other: "{{count}} mánuðir", + }, + + aboutXYears: { + one: "u.þ.b. 1 ár", + other: "u.þ.b. {{count}} ár", + }, + + xYears: { + one: "1 ár", + other: "{{count}} ár", + }, + + overXYears: { + one: "meira en 1 ár", + other: "meira en {{count}} ár", + }, + + almostXYears: { + one: "næstum 1 ár", + other: "næstum {{count}} ár", + }, +}; + +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 "í " + result; + } else { + return result + " síðan"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/is/_lib/formatLong.cjs b/node_modules/date-fns/locale/is/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e380a7b2541d72d2d0b69b7bcfc9413d394a8ed2 --- /dev/null +++ b/node_modules/date-fns/locale/is/_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: "do MMM y", + short: "d.MM.y", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{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/is/_lib/formatLong.d.cts b/node_modules/date-fns/locale/is/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/formatLong.d.ts b/node_modules/date-fns/locale/is/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/formatLong.js b/node_modules/date-fns/locale/is/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..b5068e06ba47ff342270b8cbab1ab93f85427f09 --- /dev/null +++ b/node_modules/date-fns/locale/is/_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: "do MMM y", + short: "d.MM.y", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{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/is/_lib/formatRelative.cjs b/node_modules/date-fns/locale/is/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f43d83ca170696ca1dda1fa9c48c0b8c59d72905 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'síðasta' dddd 'kl.' p", + yesterday: "'í gær kl.' p", + today: "'í dag kl.' p", + tomorrow: "'á morgun kl.' p", + nextWeek: "dddd 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/is/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/is/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/is/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/formatRelative.js b/node_modules/date-fns/locale/is/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..c065cf802f5ae11cd8df873eab7fbe16ae7789b2 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'síðasta' dddd 'kl.' p", + yesterday: "'í gær kl.' p", + today: "'í dag kl.' p", + tomorrow: "'á morgun kl.' p", + nextWeek: "dddd 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/is/_lib/localize.cjs b/node_modules/date-fns/locale/is/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..35cbbe28c77bc672deb2ad9cac1b82b24a7f5175 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/localize.cjs @@ -0,0 +1,168 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["fyrir Krist", "eftir Krist"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1F", "2F", "3F", "4F"], + wide: ["1. fjórðungur", "2. fjórðungur", "3. fjórðungur", "4. fjórðungur"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "Á", "S", "Ó", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "sept.", + "okt.", + "nóv.", + "des.", + ], + + wide: [ + "janúar", + "febrúar", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "september", + "október", + "nóvember", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "Þ", "M", "F", "F", "L"], + short: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La"], + abbreviated: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."], + + wide: [ + "sunnudagur", + "mánudagur", + "þriðjudagur", + "miðvikudagur", + "fimmtudagur", + "föstudagur", + "laugardagur", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, +}; + +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/is/_lib/localize.d.cts b/node_modules/date-fns/locale/is/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/localize.d.ts b/node_modules/date-fns/locale/is/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/localize.js b/node_modules/date-fns/locale/is/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..10b815ddcd30db745837fa1b9a0645e7c2bb2171 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/localize.js @@ -0,0 +1,166 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["fyrir Krist", "eftir Krist"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1F", "2F", "3F", "4F"], + wide: ["1. fjórðungur", "2. fjórðungur", "3. fjórðungur", "4. fjórðungur"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "Á", "S", "Ó", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "sept.", + "okt.", + "nóv.", + "des.", + ], + + wide: [ + "janúar", + "febrúar", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "september", + "október", + "nóvember", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "Þ", "M", "F", "F", "L"], + short: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La"], + abbreviated: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."], + + wide: [ + "sunnudagur", + "mánudagur", + "þriðjudagur", + "miðvikudagur", + "fimmtudagur", + "föstudagur", + "laugardagur", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, +}; + +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/is/_lib/match.cjs b/node_modules/date-fns/locale/is/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d69f647286700573fc2247403c4120db23c34aeb --- /dev/null +++ b/node_modules/date-fns/locale/is/_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: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i, +}; +const parseEraPatterns = { + any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^q[1234]\.?/i, + wide: /^[1234]\.? fjórðungur/i, +}; +const parseQuarterPatterns = { + any: [/1\.?/i, /2\.?/i, /3\.?/i, /4\.?/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmásónd]/i, + abbreviated: + /^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, + wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i, +}; + +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^á/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maí/i, + /^jún/i, + /^júl/i, + /^áu/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|má|þr|mi|fi|fö|la)/i, + abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, + wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i], + any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, + any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^mi/i, + noon: /^há/i, + morning: /morgunn/i, + afternoon: /síðdegi/i, + evening: /kvöld/i, + night: /nótt/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/is/_lib/match.d.cts b/node_modules/date-fns/locale/is/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/match.d.ts b/node_modules/date-fns/locale/is/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/is/_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/is/_lib/match.js b/node_modules/date-fns/locale/is/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..5e7c5e8bb8683d349299c65d9216a535d1ebd58a --- /dev/null +++ b/node_modules/date-fns/locale/is/_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: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i, +}; +const parseEraPatterns = { + any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^q[1234]\.?/i, + wide: /^[1234]\.? fjórðungur/i, +}; +const parseQuarterPatterns = { + any: [/1\.?/i, /2\.?/i, /3\.?/i, /4\.?/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmásónd]/i, + abbreviated: + /^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, + wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i, +}; + +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^á/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maí/i, + /^jún/i, + /^júl/i, + /^áu/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|má|þr|mi|fi|fö|la)/i, + abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, + wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i], + any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, + any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^mi/i, + noon: /^há/i, + morning: /morgunn/i, + afternoon: /síðdegi/i, + evening: /kvöld/i, + night: /nótt/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/is/cdn.js b/node_modules/date-fns/locale/is/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..86e3cfc483808f001885ec919940919a74df4134 --- /dev/null +++ b/node_modules/date-fns/locale/is/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/is/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minna en 1 sekúnda", + other: "minna en {{count}} sekúndur" + }, + xSeconds: { + one: "1 sekúnda", + other: "{{count}} sekúndur" + }, + halfAMinute: "hálf mínúta", + lessThanXMinutes: { + one: "minna en 1 mínúta", + other: "minna en {{count}} mínútur" + }, + xMinutes: { + one: "1 mínúta", + other: "{{count}} mínútur" + }, + aboutXHours: { + one: "u.þ.b. 1 klukkustund", + other: "u.þ.b. {{count}} klukkustundir" + }, + xHours: { + one: "1 klukkustund", + other: "{{count}} klukkustundir" + }, + xDays: { + one: "1 dagur", + other: "{{count}} dagar" + }, + aboutXWeeks: { + one: "um viku", + other: "um {{count}} vikur" + }, + xWeeks: { + one: "1 viku", + other: "{{count}} vikur" + }, + aboutXMonths: { + one: "u.þ.b. 1 mánuður", + other: "u.þ.b. {{count}} mánuðir" + }, + xMonths: { + one: "1 mánuður", + other: "{{count}} mánuðir" + }, + aboutXYears: { + one: "u.þ.b. 1 ár", + other: "u.þ.b. {{count}} ár" + }, + xYears: { + one: "1 ár", + other: "{{count}} ár" + }, + overXYears: { + one: "meira en 1 ár", + other: "meira en {{count}} ár" + }, + almostXYears: { + one: "næstum 1 ár", + other: "næstum {{count}} ár" + } +}; +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 "í " + result;else + return result + " síðan"; + 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: "do MMM y", + short: "d.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/is/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'síðasta' dddd 'kl.' p", + yesterday: "'í gær kl.' p", + today: "'í dag kl.' p", + tomorrow: "'á morgun kl.' p", + nextWeek: "dddd 'kl.' 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/is/_lib/localize.js +var eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["fyrir Krist", "eftir Krist"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1F", + "2F", + "3F", + "4F"], + + wide: [ + "1. fjórðungur", + "2. fjórðungur", + "3. fjórðungur", + "4. fjórðungur"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "Á", + "S", + "Ó", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "sept.", + "okt.", + "nóv.", + "des."], + + wide: [ + "janúar", + "febrúar", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "september", + "október", + "nóvember", + "desember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "Þ", + "M", + "F", + "F", + "L"], + + short: [ + "Su", + "Má", + "Þr", + "Mi", + "Fi", + "Fö", + "La"], + + abbreviated: [ + "sun.", + "mán.", + "þri.", + "mið.", + "fim.", + "fös.", + "lau."], + + wide: [ + "sunnudagur", + "mánudagur", + "þriðjudagur", + "miðvikudagur", + "fimmtudagur", + "föstudagur", + "laugardagur"] + +}; +var dayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt" + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt" + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt" + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt" + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt" + } +}; +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/is.js +/** +* @category Locales +* @summary Icelandic locale. +* @language Icelandic +* @iso-639-2 isl +* @author Derek Blank [@derekblank](https://github.com/derekblank) +* @author Arnór Ýmir [@lamayg](https://github.com/lamayg) +*/ +var is = { + code: "is", + 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: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]\.?/i, + abbreviated: /^q[1234]\.?/i, + wide: /^[1234]\.? fjórðungur/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: /^[jfmásónd]/i, + abbreviated: /^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, + wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^á/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maí/i, + /^jún/i, + /^júl/i, + /^áu/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|má|þr|mi|fi|fö|la)/i, + abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, + wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^þ/i, + /^m/i, + /^f/i, + /^f/i, + /^l/i], + + any: [ + /^su/i, + /^má/i, + /^þr/i, + /^mi/i, + /^fi/i, + /^fö/i, + /^la/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, + any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^f/i, + pm: /^e/i, + midnight: /^mi/i, + noon: /^há/i, + morning: /morgunn/i, + afternoon: /síðdegi/i, + evening: /kvöld/i, + night: /nótt/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/is/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), {}, { + is: is }) }); + + +//#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/is/cdn.min.js b/node_modules/date-fns/locale/is/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..a1e86afd4eee1d978cd4378b62f356e4eb4449de --- /dev/null +++ b/node_modules/date-fns/locale/is/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+` síðan`: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:`do MMM y`,short:`d.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'síðasta' dddd 'kl.' p`,yesterday:`'í gær kl.' p`,today:`'í dag kl.' p`,tomorrow:`'á morgun kl.' p`,nextWeek:`dddd 'kl.' 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)+`.`},era:f({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`fyrir Krist`,`eftir Krist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1F`,`2F`,`3F`,`4F`],wide:[`1. fjórðungur`,`2. fjórðungur`,`3. fjórðungur`,`4. fjórðungur`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`Á`,`S`,`Ó`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apríl`,`maí`,`júní`,`júlí`,`ágúst`,`sept.`,`okt.`,`nóv.`,`des.`],wide:[`janúar`,`febrúar`,`mars`,`apríl`,`maí`,`júní`,`júlí`,`ágúst`,`september`,`október`,`nóvember`,`desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`Þ`,`M`,`F`,`F`,`L`],short:[`Su`,`Má`,`Þr`,`Mi`,`Fi`,`Fö`,`La`],abbreviated:[`sun.`,`mán.`,`þri.`,`mið.`,`fim.`,`fös.`,`lau.`],wide:[`sunnudagur`,`mánudagur`,`þriðjudagur`,`miðvikudagur`,`fimmtudagur`,`föstudagur`,`laugardagur`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`f`,pm:`e`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`},abbreviated:{am:`f.h.`,pm:`e.h.`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`},wide:{am:`fyrir hádegi`,pm:`eftir hádegi`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`f`,pm:`e`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`},abbreviated:{am:`f.h.`,pm:`e.h.`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`},wide:{am:`fyrir hádegi`,pm:`eftir hádegi`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`}},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:`is`,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:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/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:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{is: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/it-CH.cjs b/node_modules/date-fns/locale/it-CH.cjs new file mode 100644 index 0000000000000000000000000000000000000000..06e00d102c4d458b5dd08bd81089bf3065c86a5a --- /dev/null +++ b/node_modules/date-fns/locale/it-CH.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.itCH = void 0; +var _index = require("./it/_lib/formatDistance.cjs"); +var _index2 = require("./it/_lib/formatRelative.cjs"); +var _index3 = require("./it/_lib/localize.cjs"); +var _index4 = require("./it/_lib/match.cjs"); +var _index5 = require("./it-CH/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +const itCH = (exports.itCH = { + code: "it-CH", + 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/it-CH.d.cts b/node_modules/date-fns/locale/it-CH.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..af7e5e89aea0dffb206c97d6003589623fdaf372 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +export declare const itCH: Locale; diff --git a/node_modules/date-fns/locale/it-CH.d.ts b/node_modules/date-fns/locale/it-CH.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..af7e5e89aea0dffb206c97d6003589623fdaf372 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +export declare const itCH: Locale; diff --git a/node_modules/date-fns/locale/it-CH.js b/node_modules/date-fns/locale/it-CH.js new file mode 100644 index 0000000000000000000000000000000000000000..6d9a28295e7841197d14682ca6c0ab6967924f12 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./it/_lib/formatDistance.js"; +import { formatRelative } from "./it/_lib/formatRelative.js"; +import { localize } from "./it/_lib/localize.js"; +import { match } from "./it/_lib/match.js"; +import { formatLong } from "./it-CH/_lib/formatLong.js"; + +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +export const itCH = { + code: "it-CH", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default itCH; diff --git a/node_modules/date-fns/locale/it-CH/_lib/formatLong.cjs b/node_modules/date-fns/locale/it-CH/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..efa496c0a9c1c79f02f53450dca13c13541f763a --- /dev/null +++ b/node_modules/date-fns/locale/it-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/it-CH/_lib/formatLong.d.cts b/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/it-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/it-CH/_lib/formatLong.d.ts b/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/it-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/it-CH/_lib/formatLong.js b/node_modules/date-fns/locale/it-CH/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..8e729bb25d3c9f25b4abe248f72bd37e3fc58b84 --- /dev/null +++ b/node_modules/date-fns/locale/it-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/it-CH/cdn.js b/node_modules/date-fns/locale/it-CH/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..3546ea7acf7f2353216dfa2f1e790e5e5d57af17 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/cdn.js @@ -0,0 +1,804 @@ +(() => { +var _window$dateFns;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);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}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);} //#region dist/date-fns/locale/it/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "meno di un secondo", + other: "meno di {{count}} secondi" + }, + xSeconds: { + one: "un secondo", + other: "{{count}} secondi" + }, + halfAMinute: "alcuni secondi", + lessThanXMinutes: { + one: "meno di un minuto", + other: "meno di {{count}} minuti" + }, + xMinutes: { + one: "un minuto", + other: "{{count}} minuti" + }, + aboutXHours: { + one: "circa un'ora", + other: "circa {{count}} ore" + }, + xHours: { + one: "un'ora", + other: "{{count}} ore" + }, + xDays: { + one: "un giorno", + other: "{{count}} giorni" + }, + aboutXWeeks: { + one: "circa una settimana", + other: "circa {{count}} settimane" + }, + xWeeks: { + one: "una settimana", + other: "{{count}} settimane" + }, + aboutXMonths: { + one: "circa un mese", + other: "circa {{count}} mesi" + }, + xMonths: { + one: "un mese", + other: "{{count}} mesi" + }, + aboutXYears: { + one: "circa un anno", + other: "circa {{count}} anni" + }, + xYears: { + one: "un anno", + other: "{{count}} anni" + }, + overXYears: { + one: "più di un anno", + other: "più di {{count}} anni" + }, + almostXYears: { + one: "quasi un anno", + other: "quasi {{count}} anni" + } +}; +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 "tra " + result;else + return result + " fa"; + return result; +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/it/_lib/formatRelative.js +var weekdays = [ +"domenica", +"lunedì", +"martedì", +"mercoledì", +"giovedì", +"venerdì", +"sabato"]; + +function _lastWeek(day) { + switch (day) { + case 0:return "'domenica scorsa alle' p"; + default:return "'" + weekdays[day] + " scorso alle' p"; + } +} +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} +function _nextWeek(day) { + switch (day) { + case 0:return "'domenica prossima alle' p"; + default:return "'" + weekdays[day] + " prossimo alle' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + 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/it/_lib/localize.js +var eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["avanti Cristo", "dopo 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: [ + "G", + "F", + "M", + "A", + "M", + "G", + "L", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "gen", + "feb", + "mar", + "apr", + "mag", + "giu", + "lug", + "ago", + "set", + "ott", + "nov", + "dic"], + + wide: [ + "gennaio", + "febbraio", + "marzo", + "aprile", + "maggio", + "giugno", + "luglio", + "agosto", + "settembre", + "ottobre", + "novembre", + "dicembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "G", + "V", + "S"], + + short: [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab"], + + abbreviated: [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab"], + + wide: [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato"] + +}; +var dayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(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 + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(aC|dC)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^a/i, /^(d|e)/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: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^g/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^g/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ge/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mag/i, + /^gi/i, + /^l/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^g/i, + /^v/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^ma/i, + /^me/i, + /^g/i, + /^v/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/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/it-CH.js +/** +* @category Locales +* @summary Italian locale (Switzerland). +* @language Italian +* @iso-639-2 ita +* @author Mike Peyer [@maic66](https://github.com/maic66) +*/ +var itCH = { + code: "it-CH", + formatDistance: formatDistance, + 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" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/it-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), {}, { + itCH: itCH }) }); + + +//#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/it-CH/cdn.min.js b/node_modules/date-fns/locale/it-CH/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..dcae92088621da46df2f937f8c870febcc19d1b4 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(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 t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`tra `+r:r+` fa`:r},m=Symbol.for(`constructDateFrom`);function h(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&m in e?e[m](t):e instanceof Date?new e.constructor(t):new Date(t)}function g(e){var t=[...arguments].slice(1),n=h.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var _={};function v(){return _}function y(e,t){return h(t||e,e)}function b(e,t){var n,r,i=v(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=y(e,t?.in),s=o.getDay(),c=(s1&&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)}):j(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 j(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 P={ordinalNumber:N({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:A({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:`any`}),quarter:A({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:A({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:A({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:A({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:`any`})};function F(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 I={code:`it-CH`,formatDistance:p,formatLong:{date:F({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:F({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:F({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},formatRelative:D,localize:k,match:P,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{itCH:I})}),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/it.cjs b/node_modules/date-fns/locale/it.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1d352f8089e3ff344f70ebf0031a0ddbe618c271 --- /dev/null +++ b/node_modules/date-fns/locale/it.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.it = void 0; +var _index = require("./it/_lib/formatDistance.cjs"); +var _index2 = require("./it/_lib/formatLong.cjs"); +var _index3 = require("./it/_lib/formatRelative.cjs"); +var _index4 = require("./it/_lib/localize.cjs"); +var _index5 = require("./it/_lib/match.cjs"); + +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +const it = (exports.it = { + code: "it", + 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/it.d.cts b/node_modules/date-fns/locale/it.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..0c52966f9c43e1d20f50169a1a682b805ef52fe2 --- /dev/null +++ b/node_modules/date-fns/locale/it.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +export declare const it: Locale; diff --git a/node_modules/date-fns/locale/it.d.ts b/node_modules/date-fns/locale/it.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0c52966f9c43e1d20f50169a1a682b805ef52fe2 --- /dev/null +++ b/node_modules/date-fns/locale/it.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +export declare const it: Locale; diff --git a/node_modules/date-fns/locale/it.js b/node_modules/date-fns/locale/it.js new file mode 100644 index 0000000000000000000000000000000000000000..28405fd5616a1cb0295049d89ddd82ccece4bb1a --- /dev/null +++ b/node_modules/date-fns/locale/it.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./it/_lib/formatDistance.js"; +import { formatLong } from "./it/_lib/formatLong.js"; +import { formatRelative } from "./it/_lib/formatRelative.js"; +import { localize } from "./it/_lib/localize.js"; +import { match } from "./it/_lib/match.js"; + +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +export const it = { + code: "it", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default it; diff --git a/node_modules/date-fns/locale/it/_lib/formatDistance.cjs b/node_modules/date-fns/locale/it/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c54ba05baa2feeb3bd91b638c7e1c1c6fcda4934 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "meno di un secondo", + other: "meno di {{count}} secondi", + }, + + xSeconds: { + one: "un secondo", + other: "{{count}} secondi", + }, + + halfAMinute: "alcuni secondi", + + lessThanXMinutes: { + one: "meno di un minuto", + other: "meno di {{count}} minuti", + }, + + xMinutes: { + one: "un minuto", + other: "{{count}} minuti", + }, + + aboutXHours: { + one: "circa un'ora", + other: "circa {{count}} ore", + }, + + xHours: { + one: "un'ora", + other: "{{count}} ore", + }, + + xDays: { + one: "un giorno", + other: "{{count}} giorni", + }, + + aboutXWeeks: { + one: "circa una settimana", + other: "circa {{count}} settimane", + }, + + xWeeks: { + one: "una settimana", + other: "{{count}} settimane", + }, + + aboutXMonths: { + one: "circa un mese", + other: "circa {{count}} mesi", + }, + + xMonths: { + one: "un mese", + other: "{{count}} mesi", + }, + + aboutXYears: { + one: "circa un anno", + other: "circa {{count}} anni", + }, + + xYears: { + one: "un anno", + other: "{{count}} anni", + }, + + overXYears: { + one: "più di un anno", + other: "più di {{count}} anni", + }, + + almostXYears: { + one: "quasi un anno", + other: "quasi {{count}} anni", + }, +}; + +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 "tra " + result; + } else { + return result + " fa"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/it/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/it/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/it/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/formatDistance.js b/node_modules/date-fns/locale/it/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..83f0f1a8af1247aac26d30134f20de5757ec99f3 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "meno di un secondo", + other: "meno di {{count}} secondi", + }, + + xSeconds: { + one: "un secondo", + other: "{{count}} secondi", + }, + + halfAMinute: "alcuni secondi", + + lessThanXMinutes: { + one: "meno di un minuto", + other: "meno di {{count}} minuti", + }, + + xMinutes: { + one: "un minuto", + other: "{{count}} minuti", + }, + + aboutXHours: { + one: "circa un'ora", + other: "circa {{count}} ore", + }, + + xHours: { + one: "un'ora", + other: "{{count}} ore", + }, + + xDays: { + one: "un giorno", + other: "{{count}} giorni", + }, + + aboutXWeeks: { + one: "circa una settimana", + other: "circa {{count}} settimane", + }, + + xWeeks: { + one: "una settimana", + other: "{{count}} settimane", + }, + + aboutXMonths: { + one: "circa un mese", + other: "circa {{count}} mesi", + }, + + xMonths: { + one: "un mese", + other: "{{count}} mesi", + }, + + aboutXYears: { + one: "circa un anno", + other: "circa {{count}} anni", + }, + + xYears: { + one: "un anno", + other: "{{count}} anni", + }, + + overXYears: { + one: "più di un anno", + other: "più di {{count}} anni", + }, + + almostXYears: { + one: "quasi un anno", + other: "quasi {{count}} anni", + }, +}; + +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 "tra " + result; + } else { + return result + " fa"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/it/_lib/formatLong.cjs b/node_modules/date-fns/locale/it/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..8662390243458dfaed8f5fbc6b03bcd23db079f3 --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/formatLong.d.cts b/node_modules/date-fns/locale/it/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/formatLong.d.ts b/node_modules/date-fns/locale/it/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/formatLong.js b/node_modules/date-fns/locale/it/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..253895879183fb3c330c597c05087ddba7104f6d --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/formatRelative.cjs b/node_modules/date-fns/locale/it/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4422e82cb643403ccf6adf86c35c57dcc93aaca8 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatRelative.cjs @@ -0,0 +1,69 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const weekdays = [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato", +]; + +function lastWeek(day) { + switch (day) { + case 0: + return "'domenica scorsa alle' p"; + default: + return "'" + weekdays[day] + " scorso alle' p"; + } +} + +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} + +function nextWeek(day) { + switch (day) { + case 0: + return "'domenica prossima alle' p"; + default: + return "'" + weekdays[day] + " prossimo alle' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/it/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/it/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/it/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/formatRelative.js b/node_modules/date-fns/locale/it/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..c6d67c26f0d5ac2637628c10de0841c09171f284 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatRelative.js @@ -0,0 +1,66 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const weekdays = [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato", +]; + +function lastWeek(day) { + switch (day) { + case 0: + return "'domenica scorsa alle' p"; + default: + return "'" + weekdays[day] + " scorso alle' p"; + } +} + +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} + +function nextWeek(day) { + switch (day) { + case 0: + return "'domenica prossima alle' p"; + default: + return "'" + weekdays[day] + " prossimo alle' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/it/_lib/localize.cjs b/node_modules/date-fns/locale/it/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6d5cf9b14713fe7503292a1c73a80dc907a135a9 --- /dev/null +++ b/node_modules/date-fns/locale/it/_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: ["a.C.", "d.C."], + wide: ["avanti Cristo", "dopo 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: ["G", "F", "M", "A", "M", "G", "L", "A", "S", "O", "N", "D"], + abbreviated: [ + "gen", + "feb", + "mar", + "apr", + "mag", + "giu", + "lug", + "ago", + "set", + "ott", + "nov", + "dic", + ], + + wide: [ + "gennaio", + "febbraio", + "marzo", + "aprile", + "maggio", + "giugno", + "luglio", + "agosto", + "settembre", + "ottobre", + "novembre", + "dicembre", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "G", "V", "S"], + short: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], + abbreviated: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], + wide: [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return String(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/it/_lib/localize.d.cts b/node_modules/date-fns/locale/it/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/localize.d.ts b/node_modules/date-fns/locale/it/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/localize.js b/node_modules/date-fns/locale/it/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..ec7bd4cb343e32cd2b458f424c6fc5c851401b4d --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["avanti Cristo", "dopo 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: ["G", "F", "M", "A", "M", "G", "L", "A", "S", "O", "N", "D"], + abbreviated: [ + "gen", + "feb", + "mar", + "apr", + "mag", + "giu", + "lug", + "ago", + "set", + "ott", + "nov", + "dic", + ], + + wide: [ + "gennaio", + "febbraio", + "marzo", + "aprile", + "maggio", + "giugno", + "luglio", + "agosto", + "settembre", + "ottobre", + "novembre", + "dicembre", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "G", "V", "S"], + short: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], + abbreviated: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], + wide: [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return String(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/it/_lib/match.cjs b/node_modules/date-fns/locale/it/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e3909b6a8186441857a8ec4249e3113802d4966e --- /dev/null +++ b/node_modules/date-fns/locale/it/_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; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i, +}; +const parseEraPatterns = { + any: [/^a/i, /^(d|e)/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: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^g/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^g/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ge/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mag/i, + /^gi/i, + /^l/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/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/it/_lib/match.d.cts b/node_modules/date-fns/locale/it/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/match.d.ts b/node_modules/date-fns/locale/it/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/it/_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/it/_lib/match.js b/node_modules/date-fns/locale/it/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..e2b0bba5831ca5d79d14fccbbca44c88d99417a0 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/match.js @@ -0,0 +1,133 @@ +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)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i, +}; +const parseEraPatterns = { + any: [/^a/i, /^(d|e)/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: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^g/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^g/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ge/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mag/i, + /^gi/i, + /^l/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/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/it/cdn.js b/node_modules/date-fns/locale/it/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..68ef05d7d24a52ef8033983e3a1c17e5bf204c5c --- /dev/null +++ b/node_modules/date-fns/locale/it/cdn.js @@ -0,0 +1,806 @@ +(() => { +var _window$dateFns;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);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}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);} //#region dist/date-fns/locale/it/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "meno di un secondo", + other: "meno di {{count}} secondi" + }, + xSeconds: { + one: "un secondo", + other: "{{count}} secondi" + }, + halfAMinute: "alcuni secondi", + lessThanXMinutes: { + one: "meno di un minuto", + other: "meno di {{count}} minuti" + }, + xMinutes: { + one: "un minuto", + other: "{{count}} minuti" + }, + aboutXHours: { + one: "circa un'ora", + other: "circa {{count}} ore" + }, + xHours: { + one: "un'ora", + other: "{{count}} ore" + }, + xDays: { + one: "un giorno", + other: "{{count}} giorni" + }, + aboutXWeeks: { + one: "circa una settimana", + other: "circa {{count}} settimane" + }, + xWeeks: { + one: "una settimana", + other: "{{count}} settimane" + }, + aboutXMonths: { + one: "circa un mese", + other: "circa {{count}} mesi" + }, + xMonths: { + one: "un mese", + other: "{{count}} mesi" + }, + aboutXYears: { + one: "circa un anno", + other: "circa {{count}} anni" + }, + xYears: { + one: "un anno", + other: "{{count}} anni" + }, + overXYears: { + one: "più di un anno", + other: "più di {{count}} anni" + }, + almostXYears: { + one: "quasi un anno", + other: "quasi {{count}} anni" + } +}; +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 "tra " + result;else + return result + " fa"; + 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" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/it/_lib/formatRelative.js +var weekdays = [ +"domenica", +"lunedì", +"martedì", +"mercoledì", +"giovedì", +"venerdì", +"sabato"]; + +function _lastWeek(day) { + switch (day) { + case 0:return "'domenica scorsa alle' p"; + default:return "'" + weekdays[day] + " scorso alle' p"; + } +} +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} +function _nextWeek(day) { + switch (day) { + case 0:return "'domenica prossima alle' p"; + default:return "'" + weekdays[day] + " prossimo alle' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + 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/it/_lib/localize.js +var eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["avanti Cristo", "dopo 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: [ + "G", + "F", + "M", + "A", + "M", + "G", + "L", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "gen", + "feb", + "mar", + "apr", + "mag", + "giu", + "lug", + "ago", + "set", + "ott", + "nov", + "dic"], + + wide: [ + "gennaio", + "febbraio", + "marzo", + "aprile", + "maggio", + "giugno", + "luglio", + "agosto", + "settembre", + "ottobre", + "novembre", + "dicembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "G", + "V", + "S"], + + short: [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab"], + + abbreviated: [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab"], + + wide: [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato"] + +}; +var dayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(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/it.js +/** +* @category Locales +* @summary Italian locale. +* @language Italian +* @iso-639-2 ita +* @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) +* @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) +* @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) +*/ +var it = { + code: "it", + 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)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^a/i, /^(d|e)/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: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^g/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^g/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ge/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mag/i, + /^gi/i, + /^l/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^g/i, + /^v/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^ma/i, + /^me/i, + /^g/i, + /^v/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/it/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), {}, { + it: it }) }); + + +//#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/it/cdn.min.js b/node_modules/date-fns/locale/it/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..07aa0d66a6a15dcba4097befb8a3961493bba7c9 --- /dev/null +++ b/node_modules/date-fns/locale/it/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(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 t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`tra `+r:r+` fa`:r};function m(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 h={date:m({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:m({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:m({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},g=Symbol.for(`constructDateFrom`);function _(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&g in e?e[g](t):e instanceof Date?new e.constructor(t):new Date(t)}function v(e){var t=[...arguments].slice(1),n=_.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var y={};function b(){return y}function x(e,t){return _(t||e,e)}function S(e,t){var n,r,i=b(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=x(e,t?.in),s=o.getDay(),c=(s1&&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)?P(s,function(e){return e.test(o)}):N(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 N(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function P(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 I={code:`it`,formatDistance:p,formatLong:h,formatRelative:k,localize:j,match:{ordinalNumber:F({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:M({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:`any`}),quarter:M({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:M({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:M({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:M({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{it:I})}),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/ja-Hira.cjs b/node_modules/date-fns/locale/ja-Hira.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f8da0e552764bbd11830cc6c6f3926eca6d2cd17 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.jaHira = void 0; +var _index = require("./ja-Hira/_lib/formatDistance.cjs"); +var _index2 = require("./ja-Hira/_lib/formatLong.cjs"); +var _index3 = require("./ja-Hira/_lib/formatRelative.cjs"); +var _index4 = require("./ja-Hira/_lib/localize.cjs"); +var _index5 = require("./ja-Hira/_lib/match.cjs"); + +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +const jaHira = (exports.jaHira = { + code: "ja-Hira", + 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/ja-Hira.d.cts b/node_modules/date-fns/locale/ja-Hira.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..4c756f9d3d7eb9e3a3c2d928454e0ba38e806f7e --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +export declare const jaHira: Locale; diff --git a/node_modules/date-fns/locale/ja-Hira.d.ts b/node_modules/date-fns/locale/ja-Hira.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..4c756f9d3d7eb9e3a3c2d928454e0ba38e806f7e --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +export declare const jaHira: Locale; diff --git a/node_modules/date-fns/locale/ja-Hira.js b/node_modules/date-fns/locale/ja-Hira.js new file mode 100644 index 0000000000000000000000000000000000000000..e0ef775d79fa018184e765db14ca9c84b03a9b35 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./ja-Hira/_lib/formatDistance.js"; +import { formatLong } from "./ja-Hira/_lib/formatLong.js"; +import { formatRelative } from "./ja-Hira/_lib/formatRelative.js"; +import { localize } from "./ja-Hira/_lib/localize.js"; +import { match } from "./ja-Hira/_lib/match.js"; + +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +export const jaHira = { + code: "ja-Hira", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default jaHira; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e1585eb21d09f94a1880f8729b899e3c26a05382 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.cjs @@ -0,0 +1,119 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1びょうみまん", + other: "{{count}}びょうみまん", + oneWithSuffix: "やく1びょう", + otherWithSuffix: "やく{{count}}びょう", + }, + + xSeconds: { + one: "1びょう", + other: "{{count}}びょう", + }, + + halfAMinute: "30びょう", + + lessThanXMinutes: { + one: "1ぷんみまん", + other: "{{count}}ふんみまん", + oneWithSuffix: "やく1ぷん", + otherWithSuffix: "やく{{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) => { + options = options || {}; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace("{{count}}", String(count)); + } 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/ja-Hira/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/formatDistance.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..52bd1f8fb03c06d7d3ce862264627311d1ffc834 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.js @@ -0,0 +1,115 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1びょうみまん", + other: "{{count}}びょうみまん", + oneWithSuffix: "やく1びょう", + otherWithSuffix: "やく{{count}}びょう", + }, + + xSeconds: { + one: "1びょう", + other: "{{count}}びょう", + }, + + halfAMinute: "30びょう", + + lessThanXMinutes: { + one: "1ぷんみまん", + other: "{{count}}ふんみまん", + oneWithSuffix: "やく1ぷん", + otherWithSuffix: "やく{{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) => { + options = options || {}; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace("{{count}}", String(count)); + } 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/ja-Hira/_lib/formatLong.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..013b2af358ac486c0fbc334fe870a91bec8bd87f --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "yねんMがつdにちEEEE", + long: "yねんMがつdにち", + medium: "y/MM/dd", + 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/ja-Hira/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/formatLong.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..efdfaa6b8a319c88dc3b8dd3999596757841f2e4 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "yねんMがつdにちEEEE", + long: "yねんMがつdにち", + medium: "y/MM/dd", + 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/ja-Hira/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e470d1f2736f90b6cc682082c6d67e51c8b8954b --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.cjs @@ -0,0 +1,16 @@ +"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) => { + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/formatRelative.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..a2cd30dcbd48a73433cade0adb08a5bb8d4197e6 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.js @@ -0,0 +1,12 @@ +const formatRelativeLocale = { + lastWeek: "せんしゅうのeeeeのp", + yesterday: "きのうのp", + today: "きょうのp", + tomorrow: "あしたのp", + nextWeek: "よくしゅうのeeeeのp", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/localize.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..530bfdd0acbc26f15d3f8cc0363ed492d72effe5 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/localize.cjs @@ -0,0 +1,188 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["BC", "AC"], + 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: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ", + ], + + wide: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ", + ], +}; + +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); + const unit = String(options?.unit); + + switch (unit) { + case "year": + return `${number}ねん`; + case "quarter": + return `だい${number}しはんき`; + case "month": + return `${number}がつ`; + case "week": + return `だい${number}しゅう`; + case "date": + return `${number}にち`; + case "hour": + return `${number}じ`; + case "minute": + return `${number}ふん`; + case "second": + return `${number}びょう`; + default: + 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/ja-Hira/_lib/localize.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/localize.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/localize.js b/node_modules/date-fns/locale/ja-Hira/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..e85d9c45b1bcb1aa7e4914d2af1eefc934790ea8 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/localize.js @@ -0,0 +1,185 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["BC", "AC"], + 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: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ", + ], + + wide: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ", + ], +}; + +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); + const unit = String(options?.unit); + + switch (unit) { + case "year": + return `${number}ねん`; + case "quarter": + return `だい${number}しはんき`; + case "month": + return `${number}がつ`; + case "week": + return `だい${number}しゅう`; + case "date": + return `${number}にち`; + case "hour": + return `${number}じ`; + case "minute": + return `${number}ふん`; + case "second": + return `${number}びょう`; + default: + 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/ja-Hira/_lib/match.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..541c6db1fbc4f696ac21a5ef33783b8378b3c647 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/match.cjs @@ -0,0 +1,122 @@ +"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: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(きげん[前後]|せいれき)/i, + wide: /^(きげん[前後]|せいれき)/i, +}; +const parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^だい[1234一二三四1234]しはんき/i, +}; +const parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])がつ/i, + wide: /^([123456789]|1[012])がつ/i, +}; +const parseMonthPatterns = { + any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^(にち|げつ|か|すい|もく|きん|ど)/, + short: /^(にち|げつ|か|すい|もく|きん|ど)/, + abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/, + wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/, +}; +const parseDayPatterns = { + any: [/^にち/, /^げつ/, /^か/, /^すい/, /^もく/, /^きん/, /^ど/], +}; + +const matchDayPeriodPatterns = { + any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/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: function (value) { + return 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/ja-Hira/_lib/match.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/match.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_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/ja-Hira/_lib/match.js b/node_modules/date-fns/locale/ja-Hira/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..6a699f8dc65b4994051560d60fdae50c5ead7d5c --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/match.js @@ -0,0 +1,119 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = + /^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(きげん[前後]|せいれき)/i, + wide: /^(きげん[前後]|せいれき)/i, +}; +const parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^だい[1234一二三四1234]しはんき/i, +}; +const parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])がつ/i, + wide: /^([123456789]|1[012])がつ/i, +}; +const parseMonthPatterns = { + any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^(にち|げつ|か|すい|もく|きん|ど)/, + short: /^(にち|げつ|か|すい|もく|きん|ど)/, + abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/, + wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/, +}; +const parseDayPatterns = { + any: [/^にち/, /^げつ/, /^か/, /^すい/, /^もく/, /^きん/, /^ど/], +}; + +const matchDayPeriodPatterns = { + any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/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: 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/ja-Hira/cdn.js b/node_modules/date-fns/locale/ja-Hira/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..91749d3f0e8b290b47f8374b89c0db0d040b697b --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/cdn.js @@ -0,0 +1,568 @@ +(() => { +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/ja-Hira/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "1びょうみまん", + other: "{{count}}びょうみまん", + oneWithSuffix: "やく1びょう", + otherWithSuffix: "やく{{count}}びょう" + }, + xSeconds: { + one: "1びょう", + other: "{{count}}びょう" + }, + halfAMinute: "30びょう", + lessThanXMinutes: { + one: "1ぷんみまん", + other: "{{count}}ふんみまん", + oneWithSuffix: "やく1ぷん", + otherWithSuffix: "やく{{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) { + options = options || {}; + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options.addSuffix && tokenValue.oneWithSuffix) result = tokenValue.oneWithSuffix;else + result = tokenValue.one;} else + if (options.addSuffix && tokenValue.otherWithSuffix) result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (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: "yねんMがつdにちEEEE", + long: "yねんMがつdにち", + medium: "y/MM/dd", + 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/ja-Hira/_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/ja-Hira/_lib/localize.js +var eraValues = { + narrow: ["BC", "AC"], + 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: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ"], + + wide: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ"] + +}; +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); + switch (String(options === null || options === void 0 ? void 0 : options.unit)) { + case "year":return "".concat(number, "\u306D\u3093"); + case "quarter":return "\u3060\u3044".concat(number, "\u3057\u306F\u3093\u304D"); + case "month":return "".concat(number, "\u304C\u3064"); + case "week":return "\u3060\u3044".concat(number, "\u3057\u3085\u3046"); + case "date":return "".concat(number, "\u306B\u3061"); + case "hour":return "".concat(number, "\u3058"); + case "minute":return "".concat(number, "\u3075\u3093"); + case "second":return "".concat(number, "\u3073\u3087\u3046"); + default:return "".concat(number); + } +}; +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/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/ja-Hira.js +/** +* @category Locales +* @summary Japanese (Hiragana) locale. +* @language Japanese (Hiragana) +* @iso-639-2 jpn +* @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) +*/ +var jaHira = { + code: "ja-Hira", + 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: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(きげん[前後]|せいれき)/i, + wide: /^(きげん[前後]|せいれき)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/^B/i, /^A/i], + any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^だい[1234一二三四1234]しはんき/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /(1|一|1)/i, + /(2|二|2)/i, + /(3|三|3)/i, + /(4|四|4)/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])がつ/i, + wide: /^([123456789]|1[012])がつ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(にち|げつ|か|すい|もく|きん|ど)/, + short: /^(にち|げつ|か|すい|もく|きん|ど)/, + abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/, + wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^にち/, + /^げつ/, + /^か/, + /^すい/, + /^もく/, + /^きん/, + /^ど/] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/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: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ja-Hira/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), {}, { + jaHira: jaHira }) }); + + +//#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/ja-Hira/cdn.min.js b/node_modules/date-fns/locale/ja-Hira/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..f097d8bf557e5c38a4246bbd724eaff040d376bb --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/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:`yねんMがつdにちEEEE`,long:`yねんMがつdにち`,medium:`y/MM/dd`,short:`y/MM/dd`},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);switch(String(t?.unit)){case`year`:return`${n}ねん`;case`quarter`:return`だい${n}しはんき`;case`month`:return`${n}がつ`;case`week`:return`だい${n}しゅう`;case`date`:return`${n}にち`;case`hour`:return`${n}じ`;case`minute`:return`${n}ふん`;case`second`:return`${n}びょう`;default:return`${n}`}},era:f({values:{narrow:[`BC`,`AC`],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 Number(e)-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1がつ`,`2がつ`,`3がつ`,`4がつ`,`5がつ`,`6がつ`,`7がつ`,`8がつ`,`9がつ`,`10がつ`,`11がつ`,`12がつ`],wide:[`1がつ`,`2がつ`,`3がつ`,`4がつ`,`5がつ`,`6がつ`,`7がつ`,`8がつ`,`9がつ`,`10がつ`,`11がつ`,`12がつ`]},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={code:`ja-Hira`,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:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(きげん[前後]|せいれき)/i,wide:/^(きげん[前後]|せいれき)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(きげんぜん)/i,/^(せいれき|きげんご)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^だい[1234一二三四1234]しはんき/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])がつ/i,wide:/^([123456789]|1[012])がつ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(にち|げつ|か|すい|もく|きん|ど)/,short:/^(にち|げつ|か|すい|もく|きん|ど)/,abbreviated:/^(にち|げつ|か|すい|もく|きん|ど)/,wide:/^(にち|げつ|か|すい|もく|きん|ど)ようび/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^にち/,/^げつ/,/^か/,/^すい/,/^もく/,/^きん/,/^ど/]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/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:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{jaHira: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/ja.cjs b/node_modules/date-fns/locale/ja.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e5bb4f054c8030376cfaed87540b98a79e81334e --- /dev/null +++ b/node_modules/date-fns/locale/ja.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.ja = void 0; +var _index = require("./ja/_lib/formatDistance.cjs"); +var _index2 = require("./ja/_lib/formatLong.cjs"); +var _index3 = require("./ja/_lib/formatRelative.cjs"); +var _index4 = require("./ja/_lib/localize.cjs"); +var _index5 = require("./ja/_lib/match.cjs"); + +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +const ja = (exports.ja = { + code: "ja", + 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/ja.d.cts b/node_modules/date-fns/locale/ja.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..2ded1f2d4e585ba4fa0b091923d294b39cecbe18 --- /dev/null +++ b/node_modules/date-fns/locale/ja.d.cts @@ -0,0 +1,13 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ja: Locale; diff --git a/node_modules/date-fns/locale/ja.d.ts b/node_modules/date-fns/locale/ja.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2ded1f2d4e585ba4fa0b091923d294b39cecbe18 --- /dev/null +++ b/node_modules/date-fns/locale/ja.d.ts @@ -0,0 +1,13 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ja: Locale; diff --git a/node_modules/date-fns/locale/ja.js b/node_modules/date-fns/locale/ja.js new file mode 100644 index 0000000000000000000000000000000000000000..8e5e27590bfde8f62f2f3ab8879a0d46914d750d --- /dev/null +++ b/node_modules/date-fns/locale/ja.js @@ -0,0 +1,32 @@ +import { formatDistance } from "./ja/_lib/formatDistance.js"; +import { formatLong } from "./ja/_lib/formatLong.js"; +import { formatRelative } from "./ja/_lib/formatRelative.js"; +import { localize } from "./ja/_lib/localize.js"; +import { match } from "./ja/_lib/match.js"; + +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export const ja = { + code: "ja", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ja; diff --git a/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a84bc9cb50afd6e039e35180f4518c7cc52e6dbf --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs @@ -0,0 +1,119 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1秒未満", + other: "{{count}}秒未満", + oneWithSuffix: "約1秒", + otherWithSuffix: "約{{count}}秒", + }, + + xSeconds: { + one: "1秒", + other: "{{count}}秒", + }, + + halfAMinute: "30秒", + + lessThanXMinutes: { + one: "1分未満", + other: "{{count}}分未満", + oneWithSuffix: "約1分", + otherWithSuffix: "約{{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) => { + options = options || {}; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace("{{count}}", String(count)); + } 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/ja/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ja/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ja/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/formatDistance.js b/node_modules/date-fns/locale/ja/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..af862fa4d03c083026a317495ffd6e01ee7362fd --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance.js @@ -0,0 +1,115 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1秒未満", + other: "{{count}}秒未満", + oneWithSuffix: "約1秒", + otherWithSuffix: "約{{count}}秒", + }, + + xSeconds: { + one: "1秒", + other: "{{count}}秒", + }, + + halfAMinute: "30秒", + + lessThanXMinutes: { + one: "1分未満", + other: "{{count}}分未満", + oneWithSuffix: "約1分", + otherWithSuffix: "約{{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) => { + options = options || {}; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace("{{count}}", String(count)); + } 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/ja/_lib/formatLong.cjs b/node_modules/date-fns/locale/ja/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0cca449069bb10b7a5613ba957a6a206c97b55e9 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y年M月d日EEEE", + long: "y年M月d日", + medium: "y/MM/dd", + 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/ja/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ja/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ja/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/formatLong.js b/node_modules/date-fns/locale/ja/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..52fe3f7322c6ad8cdf2f280094b63e63e665c0bc --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y年M月d日EEEE", + long: "y年M月d日", + medium: "y/MM/dd", + 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/ja/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a5f901eed009ddb21b760a1b45945ef0da09fb1d --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs @@ -0,0 +1,16 @@ +"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) => { + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ja/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ja/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ja/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/formatRelative.js b/node_modules/date-fns/locale/ja/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..a534b77f2f7a9dd7952d2c827ad0285e7fcaccd6 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative.js @@ -0,0 +1,12 @@ +const formatRelativeLocale = { + lastWeek: "先週のeeeeのp", + yesterday: "昨日のp", + today: "今日のp", + tomorrow: "明日のp", + nextWeek: "翌週のeeeeのp", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/ja/_lib/localize.cjs b/node_modules/date-fns/locale/ja/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..92387f9098c53aa848887fdbab87a06d752537c6 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/localize.cjs @@ -0,0 +1,179 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["BC", "AC"], + 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: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月", + ], + + wide: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月", + ], +}; + +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); + const unit = String(options?.unit); + + switch (unit) { + case "year": + return `${number}年`; + case "quarter": + return `第${number}四半期`; + case "month": + return `${number}月`; + case "week": + return `第${number}週`; + case "date": + return `${number}日`; + case "hour": + return `${number}時`; + case "minute": + return `${number}分`; + case "second": + return `${number}秒`; + default: + 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/ja/_lib/localize.d.cts b/node_modules/date-fns/locale/ja/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/localize.d.ts b/node_modules/date-fns/locale/ja/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/localize.js b/node_modules/date-fns/locale/ja/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..0e4b91a8200bec485437ddf70a78ccb05b312a57 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/localize.js @@ -0,0 +1,177 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["BC", "AC"], + 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: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月", + ], + + wide: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月", + ], +}; + +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); + const unit = String(options?.unit); + + switch (unit) { + case "year": + return `${number}年`; + case "quarter": + return `第${number}四半期`; + case "month": + return `${number}月`; + case "week": + return `第${number}週`; + case "date": + return `${number}日`; + case "hour": + return `${number}時`; + case "minute": + return `${number}分`; + case "second": + return `${number}秒`; + default: + 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/ja/_lib/match.cjs b/node_modules/date-fns/locale/ja/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a159cac905e3bf246f55904601c294a15ccc1a4a --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/match.cjs @@ -0,0 +1,120 @@ +"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: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(紀元[前後]|西暦)/i, + wide: /^(紀元[前後]|西暦)/i, +}; +const parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(紀元前)/i, /^(西暦|紀元後)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^第[1234一二三四1234]四半期/i, +}; +const parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])月/i, + wide: /^([123456789]|1[012])月/i, +}; +const parseMonthPatterns = { + any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^[日月火水木金土]/, + short: /^[日月火水木金土]/, + abbreviated: /^[日月火水木金土]/, + wide: /^[日月火水木金土]曜日/, +}; +const parseDayPatterns = { + any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/], +}; + +const matchDayPeriodPatterns = { + any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/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, _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/ja/_lib/match.d.cts b/node_modules/date-fns/locale/ja/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/match.d.ts b/node_modules/date-fns/locale/ja/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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/ja/_lib/match.js b/node_modules/date-fns/locale/ja/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..59607cb44e5987e5ddda283918344503f267f83b --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/match.js @@ -0,0 +1,118 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(紀元[前後]|西暦)/i, + wide: /^(紀元[前後]|西暦)/i, +}; +const parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(紀元前)/i, /^(西暦|紀元後)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^第[1234一二三四1234]四半期/i, +}; +const parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])月/i, + wide: /^([123456789]|1[012])月/i, +}; +const parseMonthPatterns = { + any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^[日月火水木金土]/, + short: /^[日月火水木金土]/, + abbreviated: /^[日月火水木金土]/, + wide: /^[日月火水木金土]曜日/, +}; +const parseDayPatterns = { + any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/], +}; + +const matchDayPeriodPatterns = { + any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/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: 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/ja/cdn.js b/node_modules/date-fns/locale/ja/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..1d4bf09f0f10cdebcc49815c321e83036fb46702 --- /dev/null +++ b/node_modules/date-fns/locale/ja/cdn.js @@ -0,0 +1,572 @@ +(() => { +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/ja/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "1秒未満", + other: "{{count}}秒未満", + oneWithSuffix: "約1秒", + otherWithSuffix: "約{{count}}秒" + }, + xSeconds: { + one: "1秒", + other: "{{count}}秒" + }, + halfAMinute: "30秒", + lessThanXMinutes: { + one: "1分未満", + other: "{{count}}分未満", + oneWithSuffix: "約1分", + otherWithSuffix: "約{{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) { + options = options || {}; + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options.addSuffix && tokenValue.oneWithSuffix) result = tokenValue.oneWithSuffix;else + result = tokenValue.one;} else + if (options.addSuffix && tokenValue.otherWithSuffix) result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (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: "y年M月d日EEEE", + long: "y年M月d日", + medium: "y/MM/dd", + 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/ja/_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/ja/_lib/localize.js +var eraValues = { + narrow: ["BC", "AC"], + 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: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月"], + + wide: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月"] + +}; +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); + switch (String(options === null || options === void 0 ? void 0 : options.unit)) { + case "year":return "".concat(number, "\u5E74"); + case "quarter":return "\u7B2C".concat(number, "\u56DB\u534A\u671F"); + case "month":return "".concat(number, "\u6708"); + case "week":return "\u7B2C".concat(number, "\u9031"); + case "date":return "".concat(number, "\u65E5"); + case "hour":return "".concat(number, "\u6642"); + case "minute":return "".concat(number, "\u5206"); + case "second":return "".concat(number, "\u79D2"); + default:return "".concat(number); + } +}; +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/ja.js +/** +* @category Locales +* @summary Japanese locale. +* @language Japanese +* @iso-639-2 jpn +* @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) +* @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) +* @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) +* @author Terrence Lam [@skyuplam](https://github.com/skyuplam) +* @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) +*/ +var ja = { + code: "ja", + 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: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(紀元[前後]|西暦)/i, + wide: /^(紀元[前後]|西暦)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/^B/i, /^A/i], + any: [/^(紀元前)/i, /^(西暦|紀元後)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^第[1234一二三四1234]四半期/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /(1|一|1)/i, + /(2|二|2)/i, + /(3|三|3)/i, + /(4|四|4)/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])月/i, + wide: /^([123456789]|1[012])月/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[日月火水木金土]/, + short: /^[日月火水木金土]/, + abbreviated: /^[日月火水木金土]/, + wide: /^[日月火水木金土]曜日/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^日/, + /^月/, + /^火/, + /^水/, + /^木/, + /^金/, + /^土/] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/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: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ja/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), {}, { + ja: ja }) }); + + +//#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/ja/cdn.min.js b/node_modules/date-fns/locale/ja/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..4da09f403979ebf7427d48848dac6504c927d01d --- /dev/null +++ b/node_modules/date-fns/locale/ja/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:`y年M月d日EEEE`,long:`y年M月d日`,medium:`y/MM/dd`,short:`y/MM/dd`},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);switch(String(t?.unit)){case`year`:return`${n}年`;case`quarter`:return`第${n}四半期`;case`month`:return`${n}月`;case`week`:return`第${n}週`;case`date`:return`${n}日`;case`hour`:return`${n}時`;case`minute`:return`${n}分`;case`second`:return`${n}秒`;default:return`${n}`}},era:f({values:{narrow:[`BC`,`AC`],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 Number(e)-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`]},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=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 ( + options?.addSuffix && + options.comparison && + options.comparison > 0 + ) { + result = tokenValue.future.replace("{{count}}", String(count)); + } else if (options?.addSuffix) { + result = tokenValue.past.replace("{{count}}", String(count)); + } else { + result = tokenValue.present.replace("{{count}}", String(count)); + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ka/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ka/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ka/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/formatDistance.js b/node_modules/date-fns/locale/ka/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..097f272f8065ea2f9495f6aebf6c28a160d1a417 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatDistance.js @@ -0,0 +1,118 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + past: "{{count}} წამზე ნაკლები ხნის წინ", + present: "{{count}} წამზე ნაკლები", + future: "{{count}} წამზე ნაკლებში", + }, + + xSeconds: { + past: "{{count}} წამის წინ", + present: "{{count}} წამი", + future: "{{count}} წამში", + }, + + halfAMinute: { + past: "ნახევარი წუთის წინ", + present: "ნახევარი წუთი", + future: "ნახევარი წუთში", + }, + + lessThanXMinutes: { + past: "{{count}} წუთზე ნაკლები ხნის წინ", + present: "{{count}} წუთზე ნაკლები", + future: "{{count}} წუთზე ნაკლებში", + }, + + xMinutes: { + past: "{{count}} წუთის წინ", + present: "{{count}} წუთი", + future: "{{count}} წუთში", + }, + + aboutXHours: { + past: "დაახლოებით {{count}} საათის წინ", + present: "დაახლოებით {{count}} საათი", + future: "დაახლოებით {{count}} საათში", + }, + + xHours: { + past: "{{count}} საათის წინ", + present: "{{count}} საათი", + future: "{{count}} საათში", + }, + + xDays: { + past: "{{count}} დღის წინ", + present: "{{count}} დღე", + future: "{{count}} დღეში", + }, + + aboutXWeeks: { + past: "დაახლოებით {{count}} კვირას წინ", + present: "დაახლოებით {{count}} კვირა", + future: "დაახლოებით {{count}} კვირაში", + }, + + xWeeks: { + past: "{{count}} კვირას კვირა", + present: "{{count}} კვირა", + future: "{{count}} კვირაში", + }, + + aboutXMonths: { + past: "დაახლოებით {{count}} თვის წინ", + present: "დაახლოებით {{count}} თვე", + future: "დაახლოებით {{count}} თვეში", + }, + + xMonths: { + past: "{{count}} თვის წინ", + present: "{{count}} თვე", + future: "{{count}} თვეში", + }, + + aboutXYears: { + past: "დაახლოებით {{count}} წლის წინ", + present: "დაახლოებით {{count}} წელი", + future: "დაახლოებით {{count}} წელში", + }, + + xYears: { + past: "{{count}} წლის წინ", + present: "{{count}} წელი", + future: "{{count}} წელში", + }, + + overXYears: { + past: "{{count}} წელზე მეტი ხნის წინ", + present: "{{count}} წელზე მეტი", + future: "{{count}} წელზე მეტი ხნის შემდეგ", + }, + + almostXYears: { + past: "თითქმის {{count}} წლის წინ", + present: "თითქმის {{count}} წელი", + future: "თითქმის {{count}} წელში", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if ( + options?.addSuffix && + options.comparison && + options.comparison > 0 + ) { + result = tokenValue.future.replace("{{count}}", String(count)); + } else if (options?.addSuffix) { + result = tokenValue.past.replace("{{count}}", String(count)); + } else { + result = tokenValue.present.replace("{{count}}", String(count)); + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ka/_lib/formatLong.cjs b/node_modules/date-fns/locale/ka/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f8200f5b12a8896926023fc39154fc121e456b2f --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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: "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}} {{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/ka/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ka/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ka/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/formatLong.js b/node_modules/date-fns/locale/ka/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..a9fce548256b306d0760ea45253f5d631bc2a91a --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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: "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}} {{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/ka/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ka/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b90208ab5b3c5439765a328fe6b63122adbc2230 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ka/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ka/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/formatRelative.js b/node_modules/date-fns/locale/ka/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..b4078021b484cf01f7e53b62a17dec4d24ef1ec8 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/localize.cjs b/node_modules/date-fns/locale/ka/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..eeb8e98cdcd3e545a98c108562070b93c3186c4a --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/localize.cjs @@ -0,0 +1,189 @@ +"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: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"], + 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) => { + const number = Number(dirtyNumber); + + if (number === 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/ka/_lib/localize.d.cts b/node_modules/date-fns/locale/ka/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/localize.d.ts b/node_modules/date-fns/locale/ka/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/localize.js b/node_modules/date-fns/locale/ka/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..61624d29d928bb89e7b4f3d6263f60636f7d889c --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/localize.js @@ -0,0 +1,187 @@ +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: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"], + 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) => { + const number = Number(dirtyNumber); + + if (number === 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/ka/_lib/match.cjs b/node_modules/date-fns/locale/ka/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e7cdbc8c0cba4e85dc6cf7a87d70fd2d8ae2afcd --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/match.cjs @@ -0,0 +1,118 @@ +"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: /^[1234]-(ლი|ე)? კვ/i, + wide: /^[1234]-(ლი|ე)? კვარტალი/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i, +}; +const parseMonthPatterns = { + any: [ + /^ია/i, + /^თ/i, + /^მარ/i, + /^აპ/i, + /^მაი/i, + /^ი?ვნ/i, + /^ი?ვლ/i, + /^აგ/i, + /^ს/i, + /^ო/i, + /^ნ/i, + /^დ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, + short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, + wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i, +}; +const parseDayPatterns = { + any: [/^კვ/i, /^ორ/i, /^სა/i, /^ოთ/i, /^ხუ/i, /^პა/i, /^შა/i], +}; + +const matchDayPeriodPatterns = { + 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: "any", + 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/ka/_lib/match.d.cts b/node_modules/date-fns/locale/ka/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/match.d.ts b/node_modules/date-fns/locale/ka/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_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/ka/_lib/match.js b/node_modules/date-fns/locale/ka/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..bb1d755f7dd7ef04dad249035fe8a0767ddc0bf3 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/match.js @@ -0,0 +1,115 @@ +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: /^[1234]-(ლი|ე)? კვ/i, + wide: /^[1234]-(ლი|ე)? კვარტალი/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i, +}; +const parseMonthPatterns = { + any: [ + /^ია/i, + /^თ/i, + /^მარ/i, + /^აპ/i, + /^მაი/i, + /^ი?ვნ/i, + /^ი?ვლ/i, + /^აგ/i, + /^ს/i, + /^ო/i, + /^ნ/i, + /^დ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, + short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, + wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i, +}; +const parseDayPatterns = { + any: [/^კვ/i, /^ორ/i, /^სა/i, /^ოთ/i, /^ხუ/i, /^პა/i, /^შა/i], +}; + +const matchDayPeriodPatterns = { + 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: "any", + 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/ka/cdn.js b/node_modules/date-fns/locale/ka/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..900cdbae62166f97045b65d2b5d9c8160e176f96 --- /dev/null +++ b/node_modules/date-fns/locale/ka/cdn.js @@ -0,0 +1,559 @@ +(() => { +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/ka/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + past: "{{count}} წამზე ნაკლები ხნის წინ", + present: "{{count}} წამზე ნაკლები", + future: "{{count}} წამზე ნაკლებში" + }, + xSeconds: { + past: "{{count}} წამის წინ", + present: "{{count}} წამი", + future: "{{count}} წამში" + }, + halfAMinute: { + past: "ნახევარი წუთის წინ", + present: "ნახევარი წუთი", + future: "ნახევარი წუთში" + }, + lessThanXMinutes: { + past: "{{count}} წუთზე ნაკლები ხნის წინ", + present: "{{count}} წუთზე ნაკლები", + future: "{{count}} წუთზე ნაკლებში" + }, + xMinutes: { + past: "{{count}} წუთის წინ", + present: "{{count}} წუთი", + future: "{{count}} წუთში" + }, + aboutXHours: { + past: "დაახლოებით {{count}} საათის წინ", + present: "დაახლოებით {{count}} საათი", + future: "დაახლოებით {{count}} საათში" + }, + xHours: { + past: "{{count}} საათის წინ", + present: "{{count}} საათი", + future: "{{count}} საათში" + }, + xDays: { + past: "{{count}} დღის წინ", + present: "{{count}} დღე", + future: "{{count}} დღეში" + }, + aboutXWeeks: { + past: "დაახლოებით {{count}} კვირას წინ", + present: "დაახლოებით {{count}} კვირა", + future: "დაახლოებით {{count}} კვირაში" + }, + xWeeks: { + past: "{{count}} კვირას კვირა", + present: "{{count}} კვირა", + future: "{{count}} კვირაში" + }, + aboutXMonths: { + past: "დაახლოებით {{count}} თვის წინ", + present: "დაახლოებით {{count}} თვე", + future: "დაახლოებით {{count}} თვეში" + }, + xMonths: { + past: "{{count}} თვის წინ", + present: "{{count}} თვე", + future: "{{count}} თვეში" + }, + aboutXYears: { + past: "დაახლოებით {{count}} წლის წინ", + present: "დაახლოებით {{count}} წელი", + future: "დაახლოებით {{count}} წელში" + }, + xYears: { + past: "{{count}} წლის წინ", + present: "{{count}} წელი", + future: "{{count}} წელში" + }, + overXYears: { + past: "{{count}} წელზე მეტი ხნის წინ", + present: "{{count}} წელზე მეტი", + future: "{{count}} წელზე მეტი ხნის შემდეგ" + }, + almostXYears: { + past: "თითქმის {{count}} წლის წინ", + present: "თითქმის {{count}} წელი", + future: "თითქმის {{count}} წელში" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (options !== null && options !== void 0 && options.addSuffix && options.comparison && options.comparison > 0) result = tokenValue.future.replace("{{count}}", String(count));else + if (options !== null && options !== void 0 && options.addSuffix) result = tokenValue.past.replace("{{count}}", String(count));else + result = tokenValue.present.replace("{{count}}", String(count)); + 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/ka/_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/ka/_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) { + var number = Number(dirtyNumber); + if (number === 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/ka.js +/** +* @category Locales +* @summary Georgian locale. +* @language Georgian +* @iso-639-2 geo +* @author Lado Lomidze [@Landish](https://github.com/Landish) +* @author Nick Shvelidze [@shvelo](https://github.com/shvelo) +*/ +var ka = { + code: "ka", + 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: /^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/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: { any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: [ + /^ია/i, + /^თ/i, + /^მარ/i, + /^აპ/i, + /^მაი/i, + /^ი?ვნ/i, + /^ი?ვლ/i, + /^აგ/i, + /^ს/i, + /^ო/i, + /^ნ/i, + /^დ/i] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, + short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, + wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^კვ/i, + /^ორ/i, + /^სა/i, + /^ოთ/i, + /^ხუ/i, + /^პა/i, + /^შა/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { 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/ka/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), {}, { + ka: ka }) }); + + +//#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/ka/cdn.min.js b/node_modules/date-fns/locale/ka/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..28e9bb1233f5216f06eb8149a386a4e593d51b86 --- /dev/null +++ b/node_modules/date-fns/locale/ka/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.future.replace(`{{count}}`,String(t)):n!=null&&n.addSuffix?i.past.replace(`{{count}}`,String(t)):i.present.replace(`{{count}}`,String(t)),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:`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}} {{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){var t=Number(e);return t===1?t+`-ლი`:t+`-ე`},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:`ka`,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:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/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:{any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},defaultMatchWidth:`any`,parsePatterns:{any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{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),{},{ka: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/kk.cjs b/node_modules/date-fns/locale/kk.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3bb869bb5dacdd27277cb01816ef7fc90d2291f3 --- /dev/null +++ b/node_modules/date-fns/locale/kk.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.kk = void 0; +var _index = require("./kk/_lib/formatDistance.cjs"); +var _index2 = require("./kk/_lib/formatLong.cjs"); +var _index3 = require("./kk/_lib/formatRelative.cjs"); +var _index4 = require("./kk/_lib/localize.cjs"); +var _index5 = require("./kk/_lib/match.cjs"); + +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +const kk = (exports.kk = { + code: "kk", + 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/kk.d.cts b/node_modules/date-fns/locale/kk.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..9518a51309828d24b120c5501dad3d37b8bd3e71 --- /dev/null +++ b/node_modules/date-fns/locale/kk.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +export declare const kk: Locale; diff --git a/node_modules/date-fns/locale/kk.d.ts b/node_modules/date-fns/locale/kk.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9518a51309828d24b120c5501dad3d37b8bd3e71 --- /dev/null +++ b/node_modules/date-fns/locale/kk.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +export declare const kk: Locale; diff --git a/node_modules/date-fns/locale/kk.js b/node_modules/date-fns/locale/kk.js new file mode 100644 index 0000000000000000000000000000000000000000..6986cf27469669eff0a4e6cbfab6d8c2a7029a75 --- /dev/null +++ b/node_modules/date-fns/locale/kk.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./kk/_lib/formatDistance.js"; +import { formatLong } from "./kk/_lib/formatLong.js"; +import { formatRelative } from "./kk/_lib/formatRelative.js"; +import { localize } from "./kk/_lib/localize.js"; +import { match } from "./kk/_lib/match.js"; + +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +export const kk = { + code: "kk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default kk; diff --git a/node_modules/date-fns/locale/kk/_lib/formatDistance.cjs b/node_modules/date-fns/locale/kk/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e1a16836939effbe3a9f5e18a93105d0820a4ee3 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatDistance.cjs @@ -0,0 +1,253 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + regular: { + one: "1 секундтан аз", + singularNominative: "{{count}} секундтан аз", + singularGenitive: "{{count}} секундтан аз", + pluralGenitive: "{{count}} секундтан аз", + }, + future: { + one: "бір секундтан кейін", + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін", + }, + }, + + xSeconds: { + regular: { + singularNominative: "{{count}} секунд", + singularGenitive: "{{count}} секунд", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунд бұрын", + singularGenitive: "{{count}} секунд бұрын", + pluralGenitive: "{{count}} секунд бұрын", + }, + future: { + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін", + }, + }, + + halfAMinute: (options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "жарты минут ішінде"; + } else { + return "жарты минут бұрын"; + } + } + + return "жарты минут"; + }, + + lessThanXMinutes: { + regular: { + one: "1 минуттан аз", + singularNominative: "{{count}} минуттан аз", + singularGenitive: "{{count}} минуттан аз", + pluralGenitive: "{{count}} минуттан аз", + }, + future: { + one: "минуттан кем ", + singularNominative: "{{count}} минуттан кем", + singularGenitive: "{{count}} минуттан кем", + pluralGenitive: "{{count}} минуттан кем", + }, + }, + + xMinutes: { + regular: { + singularNominative: "{{count}} минут", + singularGenitive: "{{count}} минут", + pluralGenitive: "{{count}} минут", + }, + past: { + singularNominative: "{{count}} минут бұрын", + singularGenitive: "{{count}} минут бұрын", + pluralGenitive: "{{count}} минут бұрын", + }, + future: { + singularNominative: "{{count}} минуттан кейін", + singularGenitive: "{{count}} минуттан кейін", + pluralGenitive: "{{count}} минуттан кейін", + }, + }, + + aboutXHours: { + regular: { + singularNominative: "шамамен {{count}} сағат", + singularGenitive: "шамамен {{count}} сағат", + pluralGenitive: "шамамен {{count}} сағат", + }, + future: { + singularNominative: "шамамен {{count}} сағаттан кейін", + singularGenitive: "шамамен {{count}} сағаттан кейін", + pluralGenitive: "шамамен {{count}} сағаттан кейін", + }, + }, + + xHours: { + regular: { + singularNominative: "{{count}} сағат", + singularGenitive: "{{count}} сағат", + pluralGenitive: "{{count}} сағат", + }, + }, + + xDays: { + regular: { + singularNominative: "{{count}} күн", + singularGenitive: "{{count}} күн", + pluralGenitive: "{{count}} күн", + }, + future: { + singularNominative: "{{count}} күннен кейін", + singularGenitive: "{{count}} күннен кейін", + pluralGenitive: "{{count}} күннен кейін", + }, + }, + + aboutXWeeks: { + type: "weeks", + one: "шамамен 1 апта", + other: "шамамен {{count}} апта", + }, + + xWeeks: { + type: "weeks", + one: "1 апта", + other: "{{count}} апта", + }, + + aboutXMonths: { + regular: { + singularNominative: "шамамен {{count}} ай", + singularGenitive: "шамамен {{count}} ай", + pluralGenitive: "шамамен {{count}} ай", + }, + future: { + singularNominative: "шамамен {{count}} айдан кейін", + singularGenitive: "шамамен {{count}} айдан кейін", + pluralGenitive: "шамамен {{count}} айдан кейін", + }, + }, + + xMonths: { + regular: { + singularNominative: "{{count}} ай", + singularGenitive: "{{count}} ай", + pluralGenitive: "{{count}} ай", + }, + }, + + aboutXYears: { + regular: { + singularNominative: "шамамен {{count}} жыл", + singularGenitive: "шамамен {{count}} жыл", + pluralGenitive: "шамамен {{count}} жыл", + }, + future: { + singularNominative: "шамамен {{count}} жылдан кейін", + singularGenitive: "шамамен {{count}} жылдан кейін", + pluralGenitive: "шамамен {{count}} жылдан кейін", + }, + }, + + xYears: { + regular: { + singularNominative: "{{count}} жыл", + singularGenitive: "{{count}} жыл", + pluralGenitive: "{{count}} жыл", + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін", + }, + }, + + overXYears: { + regular: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам", + }, + future: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам", + }, + }, + + almostXYears: { + regular: { + singularNominative: "{{count}} жылға жақын", + singularGenitive: "{{count}} жылға жақын", + pluralGenitive: "{{count}} жылға жақын", + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін", + }, + }, +}; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one && count === 1) return scheme.one; + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === "function") return tokenValue(options); + + if (tokenValue.type === "weeks") { + return count === 1 + ? tokenValue.one + : tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (tokenValue.future) { + return declension(tokenValue.future, count); + } else { + return declension(tokenValue.regular, count) + " кейін"; + } + } else { + if (tokenValue.past) { + return declension(tokenValue.past, count); + } else { + return declension(tokenValue.regular, count) + " бұрын"; + } + } + } else { + return declension(tokenValue.regular, count); + } +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/kk/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/kk/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/kk/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/formatDistance.js b/node_modules/date-fns/locale/kk/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..929e679c8506c966c35132b2fa7aef0496a4730f --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatDistance.js @@ -0,0 +1,249 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + regular: { + one: "1 секундтан аз", + singularNominative: "{{count}} секундтан аз", + singularGenitive: "{{count}} секундтан аз", + pluralGenitive: "{{count}} секундтан аз", + }, + future: { + one: "бір секундтан кейін", + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін", + }, + }, + + xSeconds: { + regular: { + singularNominative: "{{count}} секунд", + singularGenitive: "{{count}} секунд", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунд бұрын", + singularGenitive: "{{count}} секунд бұрын", + pluralGenitive: "{{count}} секунд бұрын", + }, + future: { + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін", + }, + }, + + halfAMinute: (options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "жарты минут ішінде"; + } else { + return "жарты минут бұрын"; + } + } + + return "жарты минут"; + }, + + lessThanXMinutes: { + regular: { + one: "1 минуттан аз", + singularNominative: "{{count}} минуттан аз", + singularGenitive: "{{count}} минуттан аз", + pluralGenitive: "{{count}} минуттан аз", + }, + future: { + one: "минуттан кем ", + singularNominative: "{{count}} минуттан кем", + singularGenitive: "{{count}} минуттан кем", + pluralGenitive: "{{count}} минуттан кем", + }, + }, + + xMinutes: { + regular: { + singularNominative: "{{count}} минут", + singularGenitive: "{{count}} минут", + pluralGenitive: "{{count}} минут", + }, + past: { + singularNominative: "{{count}} минут бұрын", + singularGenitive: "{{count}} минут бұрын", + pluralGenitive: "{{count}} минут бұрын", + }, + future: { + singularNominative: "{{count}} минуттан кейін", + singularGenitive: "{{count}} минуттан кейін", + pluralGenitive: "{{count}} минуттан кейін", + }, + }, + + aboutXHours: { + regular: { + singularNominative: "шамамен {{count}} сағат", + singularGenitive: "шамамен {{count}} сағат", + pluralGenitive: "шамамен {{count}} сағат", + }, + future: { + singularNominative: "шамамен {{count}} сағаттан кейін", + singularGenitive: "шамамен {{count}} сағаттан кейін", + pluralGenitive: "шамамен {{count}} сағаттан кейін", + }, + }, + + xHours: { + regular: { + singularNominative: "{{count}} сағат", + singularGenitive: "{{count}} сағат", + pluralGenitive: "{{count}} сағат", + }, + }, + + xDays: { + regular: { + singularNominative: "{{count}} күн", + singularGenitive: "{{count}} күн", + pluralGenitive: "{{count}} күн", + }, + future: { + singularNominative: "{{count}} күннен кейін", + singularGenitive: "{{count}} күннен кейін", + pluralGenitive: "{{count}} күннен кейін", + }, + }, + + aboutXWeeks: { + type: "weeks", + one: "шамамен 1 апта", + other: "шамамен {{count}} апта", + }, + + xWeeks: { + type: "weeks", + one: "1 апта", + other: "{{count}} апта", + }, + + aboutXMonths: { + regular: { + singularNominative: "шамамен {{count}} ай", + singularGenitive: "шамамен {{count}} ай", + pluralGenitive: "шамамен {{count}} ай", + }, + future: { + singularNominative: "шамамен {{count}} айдан кейін", + singularGenitive: "шамамен {{count}} айдан кейін", + pluralGenitive: "шамамен {{count}} айдан кейін", + }, + }, + + xMonths: { + regular: { + singularNominative: "{{count}} ай", + singularGenitive: "{{count}} ай", + pluralGenitive: "{{count}} ай", + }, + }, + + aboutXYears: { + regular: { + singularNominative: "шамамен {{count}} жыл", + singularGenitive: "шамамен {{count}} жыл", + pluralGenitive: "шамамен {{count}} жыл", + }, + future: { + singularNominative: "шамамен {{count}} жылдан кейін", + singularGenitive: "шамамен {{count}} жылдан кейін", + pluralGenitive: "шамамен {{count}} жылдан кейін", + }, + }, + + xYears: { + regular: { + singularNominative: "{{count}} жыл", + singularGenitive: "{{count}} жыл", + pluralGenitive: "{{count}} жыл", + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін", + }, + }, + + overXYears: { + regular: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам", + }, + future: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам", + }, + }, + + almostXYears: { + regular: { + singularNominative: "{{count}} жылға жақын", + singularGenitive: "{{count}} жылға жақын", + pluralGenitive: "{{count}} жылға жақын", + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін", + }, + }, +}; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one && count === 1) return scheme.one; + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +export const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === "function") return tokenValue(options); + + if (tokenValue.type === "weeks") { + return count === 1 + ? tokenValue.one + : tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (tokenValue.future) { + return declension(tokenValue.future, count); + } else { + return declension(tokenValue.regular, count) + " кейін"; + } + } else { + if (tokenValue.past) { + return declension(tokenValue.past, count); + } else { + return declension(tokenValue.regular, count) + " бұрын"; + } + } + } else { + return declension(tokenValue.regular, count); + } +}; diff --git a/node_modules/date-fns/locale/kk/_lib/formatLong.cjs b/node_modules/date-fns/locale/kk/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ae3ee8537322f8853afdcb933bfac44e28ffbc24 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"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: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H: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/kk/_lib/formatLong.d.cts b/node_modules/date-fns/locale/kk/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/formatLong.d.ts b/node_modules/date-fns/locale/kk/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/formatLong.js b/node_modules/date-fns/locale/kk/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..df2b184ea173fd47bc34216b0b04b2c06dbffbb7 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do MMMM y 'ж.'", + long: "do MMMM y 'ж.'", + medium: "d MMM y 'ж.'", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H: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/kk/_lib/formatRelative.cjs b/node_modules/date-fns/locale/kk/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c3cd0dc542e3ab55ef798fa16c502328900c7b03 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative.cjs @@ -0,0 +1,65 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const accusativeWeekdays = [ + "жексенбіде", + "дүйсенбіде", + "сейсенбіде", + "сәрсенбіде", + "бейсенбіде", + "жұмада", + "сенбіде", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'өткен " + weekday + " сағат' p'-де'"; +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'" + weekday + " сағат' p'-де'"; +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'келесі " + weekday + " сағат' p'-де'"; +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'кеше сағат' p'-де'", + today: "'бүгін сағат' p'-де'", + tomorrow: "'ертең сағат' p'-де'", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/kk/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/kk/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/kk/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/formatRelative.js b/node_modules/date-fns/locale/kk/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..8045cc439570435900624f48ee1dac564ecfd5d2 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative.js @@ -0,0 +1,62 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const accusativeWeekdays = [ + "жексенбіде", + "дүйсенбіде", + "сейсенбіде", + "сәрсенбіде", + "бейсенбіде", + "жұмада", + "сенбіде", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'өткен " + weekday + " сағат' p'-де'"; +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'" + weekday + " сағат' p'-де'"; +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'келесі " + weekday + " сағат' p'-де'"; +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'кеше сағат' p'-де'", + today: "'бүгін сағат' p'-де'", + tomorrow: "'ертең сағат' p'-де'", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/kk/_lib/localize.cjs b/node_modules/date-fns/locale/kk/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0718658c903f969276c960457e72805753a599ef --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/localize.cjs @@ -0,0 +1,208 @@ +"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: ["Ж", "Д", "С", "С", "Б", "Ж", "С"], + short: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"], + abbreviated: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"], + wide: [ + "жексенбі", + "дүйсенбі", + "сейсенбі", + "сәрсенбі", + "бейсенбі", + "жұма", + "сенбі", + ], +}; + +const dayPeriodValues = { + narrow: { + 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: "түн", + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түсте", + morning: "таңертең", + afternoon: "күндіз", + evening: "кеште", + night: "түнде", + }, +}; + +const suffixes = { + 0: "-ші", + 1: "-ші", + 2: "-ші", + 3: "-ші", + 4: "-ші", + 5: "-ші", + 6: "-шы", + 7: "-ші", + 8: "-ші", + 9: "-шы", + 10: "-шы", + 20: "-шы", + 30: "-шы", + 40: "-шы", + 50: "-ші", + 60: "-шы", + 70: "-ші", + 80: "-ші", + 90: "-шы", + 100: "-ші", +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + const mod10 = number % 10; + const b = number >= 100 ? 100 : null; + const suffix = + suffixes[number] || suffixes[mod10] || (b && suffixes[b]) || ""; + + 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: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/kk/_lib/localize.d.cts b/node_modules/date-fns/locale/kk/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/localize.d.ts b/node_modules/date-fns/locale/kk/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/localize.js b/node_modules/date-fns/locale/kk/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..29f0b2339f97b7d2b70fa74f041384fdb5476609 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/localize.js @@ -0,0 +1,206 @@ +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: ["Ж", "Д", "С", "С", "Б", "Ж", "С"], + short: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"], + abbreviated: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"], + wide: [ + "жексенбі", + "дүйсенбі", + "сейсенбі", + "сәрсенбі", + "бейсенбі", + "жұма", + "сенбі", + ], +}; + +const dayPeriodValues = { + narrow: { + 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: "түн", + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түсте", + morning: "таңертең", + afternoon: "күндіз", + evening: "кеште", + night: "түнде", + }, +}; + +const suffixes = { + 0: "-ші", + 1: "-ші", + 2: "-ші", + 3: "-ші", + 4: "-ші", + 5: "-ші", + 6: "-шы", + 7: "-ші", + 8: "-ші", + 9: "-шы", + 10: "-шы", + 20: "-шы", + 30: "-шы", + 40: "-шы", + 50: "-ші", + 60: "-шы", + 70: "-ші", + 80: "-ші", + 90: "-шы", + 100: "-ші", +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + const mod10 = number % 10; + const b = number >= 100 ? 100 : null; + const suffix = + suffixes[number] || suffixes[mod10] || (b && suffixes[b]) || ""; + + 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: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/kk/_lib/match.cjs b/node_modules/date-fns/locale/kk/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..303b56819cf1c6c071e94f3d06acf39d16a33b72 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/match.cjs @@ -0,0 +1,160 @@ +"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: /^((б )?з\.?\s?д\.?)/i, + abbreviated: /^((б )?з\.?\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, + ], + + abbreviated: [ + /^қаң/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, + wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i, +}; +const parseDayPatterns = { + narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i], + short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i], + any: [ + /^ж[ек]/i, + /^д[үй]/i, + /^сe[й]/i, + /^сә[р]/i, + /^б[ей]/i, + /^ж[ұм]/i, + /^се[н]/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: + /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/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/kk/_lib/match.d.cts b/node_modules/date-fns/locale/kk/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/match.d.ts b/node_modules/date-fns/locale/kk/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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/kk/_lib/match.js b/node_modules/date-fns/locale/kk/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..75e28302c59f23c6f6e0221edeb123b8fcffd4f1 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/match.js @@ -0,0 +1,157 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-?(ші|шы))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((б )?з\.?\s?д\.?)/i, + abbreviated: /^((б )?з\.?\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, + ], + + abbreviated: [ + /^қаң/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, + wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i, +}; +const parseDayPatterns = { + narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i], + short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i], + any: [ + /^ж[ек]/i, + /^д[үй]/i, + /^сe[й]/i, + /^сә[р]/i, + /^б[ей]/i, + /^ж[ұм]/i, + /^се[н]/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: + /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/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/kk/cdn.js b/node_modules/date-fns/locale/kk/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..d3ba7a5a72586a32c7bf09ccb52dff84f7bf5ce2 --- /dev/null +++ b/node_modules/date-fns/locale/kk/cdn.js @@ -0,0 +1,984 @@ +(() => { +var _window$dateFns;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);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}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);} //#region dist/date-fns/locale/kk/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + regular: { + one: "1 секундтан аз", + singularNominative: "{{count}} секундтан аз", + singularGenitive: "{{count}} секундтан аз", + pluralGenitive: "{{count}} секундтан аз" + }, + future: { + one: "бір секундтан кейін", + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін" + } + }, + xSeconds: { + regular: { + singularNominative: "{{count}} секунд", + singularGenitive: "{{count}} секунд", + pluralGenitive: "{{count}} секунд" + }, + past: { + singularNominative: "{{count}} секунд бұрын", + singularGenitive: "{{count}} секунд бұрын", + pluralGenitive: "{{count}} секунд бұрын" + }, + future: { + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін" + } + }, + halfAMinute: function halfAMinute(options) { + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "жарты минут ішінде";else + return "жарты минут бұрын"; + return "жарты минут"; + }, + lessThanXMinutes: { + regular: { + one: "1 минуттан аз", + singularNominative: "{{count}} минуттан аз", + singularGenitive: "{{count}} минуттан аз", + pluralGenitive: "{{count}} минуттан аз" + }, + future: { + one: "минуттан кем ", + singularNominative: "{{count}} минуттан кем", + singularGenitive: "{{count}} минуттан кем", + pluralGenitive: "{{count}} минуттан кем" + } + }, + xMinutes: { + regular: { + singularNominative: "{{count}} минут", + singularGenitive: "{{count}} минут", + pluralGenitive: "{{count}} минут" + }, + past: { + singularNominative: "{{count}} минут бұрын", + singularGenitive: "{{count}} минут бұрын", + pluralGenitive: "{{count}} минут бұрын" + }, + future: { + singularNominative: "{{count}} минуттан кейін", + singularGenitive: "{{count}} минуттан кейін", + pluralGenitive: "{{count}} минуттан кейін" + } + }, + aboutXHours: { + regular: { + singularNominative: "шамамен {{count}} сағат", + singularGenitive: "шамамен {{count}} сағат", + pluralGenitive: "шамамен {{count}} сағат" + }, + future: { + singularNominative: "шамамен {{count}} сағаттан кейін", + singularGenitive: "шамамен {{count}} сағаттан кейін", + pluralGenitive: "шамамен {{count}} сағаттан кейін" + } + }, + xHours: { regular: { + singularNominative: "{{count}} сағат", + singularGenitive: "{{count}} сағат", + pluralGenitive: "{{count}} сағат" + } }, + xDays: { + regular: { + singularNominative: "{{count}} күн", + singularGenitive: "{{count}} күн", + pluralGenitive: "{{count}} күн" + }, + future: { + singularNominative: "{{count}} күннен кейін", + singularGenitive: "{{count}} күннен кейін", + pluralGenitive: "{{count}} күннен кейін" + } + }, + aboutXWeeks: { + type: "weeks", + one: "шамамен 1 апта", + other: "шамамен {{count}} апта" + }, + xWeeks: { + type: "weeks", + one: "1 апта", + other: "{{count}} апта" + }, + aboutXMonths: { + regular: { + singularNominative: "шамамен {{count}} ай", + singularGenitive: "шамамен {{count}} ай", + pluralGenitive: "шамамен {{count}} ай" + }, + future: { + singularNominative: "шамамен {{count}} айдан кейін", + singularGenitive: "шамамен {{count}} айдан кейін", + pluralGenitive: "шамамен {{count}} айдан кейін" + } + }, + xMonths: { regular: { + singularNominative: "{{count}} ай", + singularGenitive: "{{count}} ай", + pluralGenitive: "{{count}} ай" + } }, + aboutXYears: { + regular: { + singularNominative: "шамамен {{count}} жыл", + singularGenitive: "шамамен {{count}} жыл", + pluralGenitive: "шамамен {{count}} жыл" + }, + future: { + singularNominative: "шамамен {{count}} жылдан кейін", + singularGenitive: "шамамен {{count}} жылдан кейін", + pluralGenitive: "шамамен {{count}} жылдан кейін" + } + }, + xYears: { + regular: { + singularNominative: "{{count}} жыл", + singularGenitive: "{{count}} жыл", + pluralGenitive: "{{count}} жыл" + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін" + } + }, + overXYears: { + regular: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам" + }, + future: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам" + } + }, + almostXYears: { + regular: { + singularNominative: "{{count}} жылға жақын", + singularGenitive: "{{count}} жылға жақын", + pluralGenitive: "{{count}} жылға жақын" + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін" + } + } +}; +function declension(scheme, count) { + if (scheme.one && count === 1) return scheme.one; + var rem10 = count % 10; + var rem100 = count % 100; + if (rem10 === 1 && rem100 !== 11) return scheme.singularNominative.replace("{{count}}", String(count));else + if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) return scheme.singularGenitive.replace("{{count}}", String(count));else + return scheme.pluralGenitive.replace("{{count}}", String(count)); +} +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "function") return tokenValue(options); + if (tokenValue.type === "weeks") return count === 1 ? tokenValue.one : tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) {if (tokenValue.future) return declension(tokenValue.future, count);else + return declension(tokenValue.regular, count) + " кейін";} else + if (tokenValue.past) return declension(tokenValue.past, count);else + return declension(tokenValue.regular, count) + " бұрын";} else + return declension(tokenValue.regular, count); +}; +//#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 zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}}, {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/kk/_lib/formatRelative.js +var accusativeWeekdays = [ +"жексенбіде", +"дүйсенбіде", +"сейсенбіде", +"сәрсенбіде", +"бейсенбіде", +"жұмада", +"сенбіде"]; + +function _lastWeek(day) { + return "'өткен " + accusativeWeekdays[day] + " сағат' p'-де'"; +} +function thisWeek(day) { + return "'" + accusativeWeekdays[day] + " сағат' p'-де'"; +} +function _nextWeek(day) { + return "'келесі " + accusativeWeekdays[day] + " сағат' p'-де'"; +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'кеше сағат' p'-де'", + today: "'бүгін сағат' p'-де'", + tomorrow: "'ертең сағат' p'-де'", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + 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/kk/_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: [ + "Ж", + "Д", + "С", + "С", + "Б", + "Ж", + "С"], + + short: [ + "жс", + "дс", + "сс", + "ср", + "бс", + "жм", + "сб"], + + abbreviated: [ + "жс", + "дс", + "сс", + "ср", + "бс", + "жм", + "сб"], + + wide: [ + "жексенбі", + "дүйсенбі", + "сейсенбі", + "сәрсенбі", + "бейсенбі", + "жұма", + "сенбі"] + +}; +var dayPeriodValues = { + narrow: { + 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: "түн" + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түсте", + morning: "таңертең", + afternoon: "күндіз", + evening: "кеште", + night: "түнде" + } +}; +var suffixes = { + 0: "-ші", + 1: "-ші", + 2: "-ші", + 3: "-ші", + 4: "-ші", + 5: "-ші", + 6: "-шы", + 7: "-ші", + 8: "-ші", + 9: "-шы", + 10: "-шы", + 20: "-шы", + 30: "-шы", + 40: "-шы", + 50: "-ші", + 60: "-шы", + 70: "-ші", + 80: "-ші", + 90: "-шы", + 100: "-ші" +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var mod10 = number % 10; + var b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[mod10] || b && suffixes[b] || ""); +}; +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: "any", + 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/kk.js +/** +* @category Locales +* @summary Kazakh locale. +* @language Kazakh +* @iso-639-2 kaz +* @author Nikita Bayev [@drugoi](https://github.com/drugoi) +*/ +var kk = { + code: "kk", + 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: /^((б )?з\.?\s?д\.?)/i, + abbreviated: /^((б )?з\.?\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], + + abbreviated: [ + /^қаң/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, + wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ж/i, + /^д/i, + /^с/i, + /^с/i, + /^б/i, + /^ж/i, + /^с/i], + + short: [ + /^жс/i, + /^дс/i, + /^сс/i, + /^ср/i, + /^бс/i, + /^жм/i, + /^сб/i], + + any: [ + /^ж[ек]/i, + /^д[үй]/i, + /^сe[й]/i, + /^сә[р]/i, + /^б[ей]/i, + /^ж[ұм]/i, + /^се[н]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/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: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/kk/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), {}, { + kk: kk }) }); + + +//#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/kk/cdn.min.js b/node_modules/date-fns/locale/kk/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..ef5079ae0d4b7666dd58b05603089437b2ac1660 --- /dev/null +++ b/node_modules/date-fns/locale/kk/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(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 t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`жарты минут ішінде`:`жарты минут бұрын`:`жарты минут`},lessThanXMinutes:{regular:{one:`1 минуттан аз`,singularNominative:`{{count}} минуттан аз`,singularGenitive:`{{count}} минуттан аз`,pluralGenitive:`{{count}} минуттан аз`},future:{one:`минуттан кем `,singularNominative:`{{count}} минуттан кем`,singularGenitive:`{{count}} минуттан кем`,pluralGenitive:`{{count}} минуттан кем`}},xMinutes:{regular:{singularNominative:`{{count}} минут`,singularGenitive:`{{count}} минут`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минут бұрын`,singularGenitive:`{{count}} минут бұрын`,pluralGenitive:`{{count}} минут бұрын`},future:{singularNominative:`{{count}} минуттан кейін`,singularGenitive:`{{count}} минуттан кейін`,pluralGenitive:`{{count}} минуттан кейін`}},aboutXHours:{regular:{singularNominative:`шамамен {{count}} сағат`,singularGenitive:`шамамен {{count}} сағат`,pluralGenitive:`шамамен {{count}} сағат`},future:{singularNominative:`шамамен {{count}} сағаттан кейін`,singularGenitive:`шамамен {{count}} сағаттан кейін`,pluralGenitive:`шамамен {{count}} сағаттан кейін`}},xHours:{regular:{singularNominative:`{{count}} сағат`,singularGenitive:`{{count}} сағат`,pluralGenitive:`{{count}} сағат`}},xDays:{regular:{singularNominative:`{{count}} күн`,singularGenitive:`{{count}} күн`,pluralGenitive:`{{count}} күн`},future:{singularNominative:`{{count}} күннен кейін`,singularGenitive:`{{count}} күннен кейін`,pluralGenitive:`{{count}} күннен кейін`}},aboutXWeeks:{type:`weeks`,one:`шамамен 1 апта`,other:`шамамен {{count}} апта`},xWeeks:{type:`weeks`,one:`1 апта`,other:`{{count}} апта`},aboutXMonths:{regular:{singularNominative:`шамамен {{count}} ай`,singularGenitive:`шамамен {{count}} ай`,pluralGenitive:`шамамен {{count}} ай`},future:{singularNominative:`шамамен {{count}} айдан кейін`,singularGenitive:`шамамен {{count}} айдан кейін`,pluralGenitive:`шамамен {{count}} айдан кейін`}},xMonths:{regular:{singularNominative:`{{count}} ай`,singularGenitive:`{{count}} ай`,pluralGenitive:`{{count}} ай`}},aboutXYears:{regular:{singularNominative:`шамамен {{count}} жыл`,singularGenitive:`шамамен {{count}} жыл`,pluralGenitive:`шамамен {{count}} жыл`},future:{singularNominative:`шамамен {{count}} жылдан кейін`,singularGenitive:`шамамен {{count}} жылдан кейін`,pluralGenitive:`шамамен {{count}} жылдан кейін`}},xYears:{regular:{singularNominative:`{{count}} жыл`,singularGenitive:`{{count}} жыл`,pluralGenitive:`{{count}} жыл`},future:{singularNominative:`{{count}} жылдан кейін`,singularGenitive:`{{count}} жылдан кейін`,pluralGenitive:`{{count}} жылдан кейін`}},overXYears:{regular:{singularNominative:`{{count}} жылдан астам`,singularGenitive:`{{count}} жылдан астам`,pluralGenitive:`{{count}} жылдан астам`},future:{singularNominative:`{{count}} жылдан астам`,singularGenitive:`{{count}} жылдан астам`,pluralGenitive:`{{count}} жылдан астам`}},almostXYears:{regular:{singularNominative:`{{count}} жылға жақын`,singularGenitive:`{{count}} жылға жақын`,pluralGenitive:`{{count}} жылға жақын`},future:{singularNominative:`{{count}} жылдан кейін`,singularGenitive:`{{count}} жылдан кейін`,pluralGenitive:`{{count}} жылдан кейін`}}};function p(e,t){if(e.one&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}var m=function(e,t,n){var r=f[e];return typeof r==`function`?r(n):r.type===`weeks`?t===1?r.one:r.other.replace(`{{count}}`,String(t)):n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r.future?p(r.future,t):p(r.regular,t)+` кейін`:r.past?p(r.past,t):p(r.regular,t)+` бұрын`:p(r.regular,t)};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, do MMMM y 'ж.'`,long:`do MMMM y 'ж.'`,medium:`d MMM y 'ж.'`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:h({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:h({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},_=Symbol.for(`constructDateFrom`);function v(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function y(e){var t=[...arguments].slice(1),n=v.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var b={};function x(){return b}function S(e,t){return v(t||e,e)}function C(e,t){var n,r,i=x(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=S(e,t?.in),s=o.getDay(),c=(s=100?100:null;return n+(z[n]||z[r]||i&&z[i]||``)},era:j({values:M,defaultWidth:`wide`}),quarter:j({values:N,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:j({values:P,defaultWidth:`wide`,formattingValues:F,defaultFormattingWidth:`wide`}),day:j({values:I,defaultWidth:`wide`}),dayPeriod:j({values:L,defaultWidth:`any`,formattingValues:R,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)?U(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 U(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={code:`kk`,formatDistance:m,formatLong:g,formatRelative:A,localize:B,match:{ordinalNumber:W({matchPattern:/^(\d+)(-?(ші|шы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^б/i,/^з/i]},defaultParseWidth:`any`}),quarter:V({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:V({matchPatterns:{narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/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:V({matchPatterns:{narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/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:1,firstWeekContainsDate:1}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{kk:G})}),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/km.cjs b/node_modules/date-fns/locale/km.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4a4766bebfe4bd7fed34f9640d62f7ef16671f1b --- /dev/null +++ b/node_modules/date-fns/locale/km.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.km = void 0; +var _index = require("./km/_lib/formatDistance.cjs"); +var _index2 = require("./km/_lib/formatLong.cjs"); +var _index3 = require("./km/_lib/formatRelative.cjs"); +var _index4 = require("./km/_lib/localize.cjs"); +var _index5 = require("./km/_lib/match.cjs"); + +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +const km = (exports.km = { + code: "km", + 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/km.d.cts b/node_modules/date-fns/locale/km.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..09ed755559d28d901e9d1a83c9e77d6e102a034c --- /dev/null +++ b/node_modules/date-fns/locale/km.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +export declare const km: Locale; diff --git a/node_modules/date-fns/locale/km.d.ts b/node_modules/date-fns/locale/km.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..09ed755559d28d901e9d1a83c9e77d6e102a034c --- /dev/null +++ b/node_modules/date-fns/locale/km.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +export declare const km: Locale; diff --git a/node_modules/date-fns/locale/km.js b/node_modules/date-fns/locale/km.js new file mode 100644 index 0000000000000000000000000000000000000000..940b646d5b4a97940ed5a65b62e0ef02811b7abd --- /dev/null +++ b/node_modules/date-fns/locale/km.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./km/_lib/formatDistance.js"; +import { formatLong } from "./km/_lib/formatLong.js"; +import { formatRelative } from "./km/_lib/formatRelative.js"; +import { localize } from "./km/_lib/localize.js"; +import { match } from "./km/_lib/match.js"; + +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +export const km = { + code: "km", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default km; diff --git a/node_modules/date-fns/locale/km/_lib/formatDistance.cjs b/node_modules/date-fns/locale/km/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..fb9bf796134ea2745a5e1db692d1f771bbd595be --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatDistance.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: "តិចជាង {{count}} វិនាទី", + xSeconds: "{{count}} វិនាទី", + halfAMinute: "កន្លះនាទី", + lessThanXMinutes: "តិចជាង {{count}} នាទី", + xMinutes: "{{count}} នាទី", + aboutXHours: "ប្រហែល {{count}} ម៉ោង", + xHours: "{{count}} ម៉ោង", + xDays: "{{count}} ថ្ងៃ", + aboutXWeeks: "ប្រហែល {{count}} សប្តាហ៍", + xWeeks: "{{count}} សប្តាហ៍", + aboutXMonths: "ប្រហែល {{count}} ខែ", + xMonths: "{{count}} ខែ", + aboutXYears: "ប្រហែល {{count}} ឆ្នាំ", + xYears: "{{count}} ឆ្នាំ", + overXYears: "ជាង {{count}} ឆ្នាំ", + almostXYears: "ជិត {{count}} ឆ្នាំ", +}; + +const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + + let result = tokenValue; + + if (typeof count === "number") { + result = result.replace("{{count}}", count.toString()); + } + + 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/km/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/km/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/km/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/formatDistance.js b/node_modules/date-fns/locale/km/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..01f3befb84850a4cf15d57eb53cb20287599669a --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatDistance.js @@ -0,0 +1,38 @@ +const formatDistanceLocale = { + lessThanXSeconds: "តិចជាង {{count}} វិនាទី", + xSeconds: "{{count}} វិនាទី", + halfAMinute: "កន្លះនាទី", + lessThanXMinutes: "តិចជាង {{count}} នាទី", + xMinutes: "{{count}} នាទី", + aboutXHours: "ប្រហែល {{count}} ម៉ោង", + xHours: "{{count}} ម៉ោង", + xDays: "{{count}} ថ្ងៃ", + aboutXWeeks: "ប្រហែល {{count}} សប្តាហ៍", + xWeeks: "{{count}} សប្តាហ៍", + aboutXMonths: "ប្រហែល {{count}} ខែ", + xMonths: "{{count}} ខែ", + aboutXYears: "ប្រហែល {{count}} ឆ្នាំ", + xYears: "{{count}} ឆ្នាំ", + overXYears: "ជាង {{count}} ឆ្នាំ", + almostXYears: "ជិត {{count}} ឆ្នាំ", +}; + +export const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + + let result = tokenValue; + + if (typeof count === "number") { + result = result.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "ក្នុងរយៈពេល " + result; + } else { + return result + "មុន"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/km/_lib/formatLong.cjs b/node_modules/date-fns/locale/km/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c46823a4432cdc94e4e3f51aae8fa91008ea6f2e --- /dev/null +++ b/node_modules/date-fns/locale/km/_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: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a", + long: "h:mm:ss a", + 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/km/_lib/formatLong.d.cts b/node_modules/date-fns/locale/km/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/formatLong.d.ts b/node_modules/date-fns/locale/km/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/formatLong.js b/node_modules/date-fns/locale/km/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..7da633e3c863c2ddd7d3ecee6bf05056222cf196 --- /dev/null +++ b/node_modules/date-fns/locale/km/_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: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a", + long: "h:mm:ss a", + 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/km/_lib/formatRelative.cjs b/node_modules/date-fns/locale/km/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..78f4a624a8ac094757751e8a3ba0fa8bc38ab32b --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/km/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/km/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/formatRelative.js b/node_modules/date-fns/locale/km/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..dacd0d00b493064cbcee7f468d8f3e8d8f6bc44a --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/localize.cjs b/node_modules/date-fns/locale/km/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..67f9d413922f05124eb68d3df1472ff6eac4b627 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/localize.cjs @@ -0,0 +1,172 @@ +"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: [ + "ម.ក", + "ក.ម", + "មិ", + "ម.ស", + "ឧ.ស", + "ម.ថ", + "ក.ដ", + "សី", + "កញ", + "តុ", + "វិ", + "ធ", + ], + + 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, _) => { + const number = Number(dirtyNumber); + return number.toString(); +}; + +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/km/_lib/localize.d.cts b/node_modules/date-fns/locale/km/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/localize.d.ts b/node_modules/date-fns/locale/km/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/localize.js b/node_modules/date-fns/locale/km/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..f277613fa6af3176967620f486bfdaec0720f297 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/localize.js @@ -0,0 +1,170 @@ +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: [ + "ម.ក", + "ក.ម", + "មិ", + "ម.ស", + "ឧ.ស", + "ម.ថ", + "ក.ដ", + "សី", + "កញ", + "តុ", + "វិ", + "ធ", + ], + + 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, _) => { + const number = Number(dirtyNumber); + return number.toString(); +}; + +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/km/_lib/match.cjs b/node_modules/date-fns/locale/km/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2a71481432067ddb5864009d3ee4f3d486894028 --- /dev/null +++ b/node_modules/date-fns/locale/km/_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"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/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: /^(ត្រីមាស)(ទី)?\s?[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: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/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: function (value) { + return 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/km/_lib/match.d.cts b/node_modules/date-fns/locale/km/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/match.d.ts b/node_modules/date-fns/locale/km/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/km/_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/km/_lib/match.js b/node_modules/date-fns/locale/km/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..2e9e5408367686e2e9b7a44b03ae8981933e7685 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/match.js @@ -0,0 +1,137 @@ +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: /^(មុន)?គ\.ស/i, + wide: /^(មុន|នៃ)គ្រិស្តសករាជ/i, +}; +const parseEraPatterns = { + any: [/^(ម|មុន)គ\.?ស/i, /^(នៃ)?គ\.?ស/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^(ត្រីមាស)(ទី)?\s?[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: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/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: 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/km/cdn.js b/node_modules/date-fns/locale/km/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..d4b48b604c969b28a8af39e8604f77d6d7d3ccd0 --- /dev/null +++ b/node_modules/date-fns/locale/km/cdn.js @@ -0,0 +1,527 @@ +(() => { +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/km/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: "តិចជាង {{count}} វិនាទី", + xSeconds: "{{count}} វិនាទី", + halfAMinute: "កន្លះនាទី", + lessThanXMinutes: "តិចជាង {{count}} នាទី", + xMinutes: "{{count}} នាទី", + aboutXHours: "ប្រហែល {{count}} ម៉ោង", + xHours: "{{count}} ម៉ោង", + xDays: "{{count}} ថ្ងៃ", + aboutXWeeks: "ប្រហែល {{count}} សប្តាហ៍", + xWeeks: "{{count}} សប្តាហ៍", + aboutXMonths: "ប្រហែល {{count}} ខែ", + xMonths: "{{count}} ខែ", + aboutXYears: "ប្រហែល {{count}} ឆ្នាំ", + xYears: "{{count}} ឆ្នាំ", + overXYears: "ជាង {{count}} ឆ្នាំ", + almostXYears: "ជិត {{count}} ឆ្នាំ" +}; +var formatDistance = function formatDistance(token, count, options) { + var result = formatDistanceLocale[token]; + if (typeof count === "number") result = result.replace("{{count}}", count.toString()); + 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", + long: "h:mm:ss a", + 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/km/_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/km/_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: "ព្រឹក", + 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, _) { + return Number(dirtyNumber).toString(); +}; +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/km.js +/** +* @category Locales +* @summary Khmer locale (Cambodian). +* @language Khmer +* @iso-639-2 khm +* @author Seanghay Yath [@seanghay](https://github.com/seanghay) +*/ +var km = { + code: "km", + 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: /^(មុន)?គ\.ស/i, + wide: /^(មុន|នៃ)គ្រិស្តសករាជ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(ម|មុន)គ\.?ស/i, /^(នៃ)?គ\.?ស/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^(ត្រីមាស)(ទី)?\s?[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: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/km/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), {}, { + km: km }) }); + + +//#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/km/cdn.min.js b/node_modules/date-fns/locale/km/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..14c9c25e898f78eb89c2f0d019b8021eac808455 --- /dev/null +++ b/node_modules/date-fns/locale/km/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:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a`,long:`h:mm:ss a`,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 Number(e).toString()},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:`ព្រឹក`,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:`km`,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:/^(មុន)?គ\.ស/i,wide:/^(មុន|នៃ)គ្រិស្តសករាជ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(ម|មុន)គ\.?ស/i,/^(នៃ)?គ\.?ស/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^(ត្រីមាស)(ទី)?\s?[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:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/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:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{km: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/kn.cjs b/node_modules/date-fns/locale/kn.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3204689a36df772ece0885e0eacfe1e3d324de08 --- /dev/null +++ b/node_modules/date-fns/locale/kn.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.kn = void 0; +var _index = require("./kn/_lib/formatDistance.cjs"); +var _index2 = require("./kn/_lib/formatLong.cjs"); +var _index3 = require("./kn/_lib/formatRelative.cjs"); +var _index4 = require("./kn/_lib/localize.cjs"); +var _index5 = require("./kn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +const kn = (exports.kn = { + code: "kn", + 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/kn.d.cts b/node_modules/date-fns/locale/kn.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..43e6a95bf9a824c351cd704b5a1e45c09b38ffcd --- /dev/null +++ b/node_modules/date-fns/locale/kn.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +export declare const kn: Locale; diff --git a/node_modules/date-fns/locale/kn.d.ts b/node_modules/date-fns/locale/kn.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..43e6a95bf9a824c351cd704b5a1e45c09b38ffcd --- /dev/null +++ b/node_modules/date-fns/locale/kn.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +export declare const kn: Locale; diff --git a/node_modules/date-fns/locale/kn.js b/node_modules/date-fns/locale/kn.js new file mode 100644 index 0000000000000000000000000000000000000000..1e10e028cb7ccf0b9379d44aa596cca2cefe829a --- /dev/null +++ b/node_modules/date-fns/locale/kn.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./kn/_lib/formatDistance.js"; +import { formatLong } from "./kn/_lib/formatLong.js"; +import { formatRelative } from "./kn/_lib/formatRelative.js"; +import { localize } from "./kn/_lib/localize.js"; +import { match } from "./kn/_lib/match.js"; + +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +export const kn = { + code: "kn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default kn; diff --git a/node_modules/date-fns/locale/kn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/kn/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b98a078a45337937b49d3735bc19e5aceab0b70d --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance.cjs @@ -0,0 +1,215 @@ +"use strict"; +exports.formatDistance = void 0; + +// note: no implementation for weeks + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + }, + other: { + default: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + }, + }, + + xSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್", + future: "1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ", + past: "1 ಸೆಕೆಂಡ್ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ಸೆಕೆಂಡುಗಳು", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ", + past: "{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ", + }, + }, + + halfAMinute: { + other: { + default: "ಅರ್ಧ ನಿಮಿಷ", + future: "ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ", + past: "ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ", + }, + }, + + lessThanXMinutes: { + one: { + default: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + }, + other: { + default: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + }, + }, + + xMinutes: { + one: { + default: "1 ನಿಮಿಷ", + future: "1 ನಿಮಿಷದಲ್ಲಿ", + past: "1 ನಿಮಿಷದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ನಿಮಿಷಗಳು", + future: "{{count}} ನಿಮಿಷಗಳಲ್ಲಿ", + past: "{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ", + }, + }, + + aboutXHours: { + one: { + default: "ಸುಮಾರು 1 ಗಂಟೆ", + future: "ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ", + past: "ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳು", + future: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ", + }, + }, + + xHours: { + one: { + default: "1 ಗಂಟೆ", + future: "1 ಗಂಟೆಯಲ್ಲಿ", + past: "1 ಗಂಟೆ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ಗಂಟೆಗಳು", + future: "{{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ", + }, + }, + + xDays: { + one: { + default: "1 ದಿನ", + future: "1 ದಿನದಲ್ಲಿ", + past: "1 ದಿನದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ದಿನಗಳು", + future: "{{count}} ದಿನಗಳಲ್ಲಿ", + past: "{{count}} ದಿನಗಳ ಹಿಂದೆ", + }, + }, + + // TODO + // aboutXWeeks: {}, + + // TODO + // xWeeks: {}, + + aboutXMonths: { + one: { + default: "ಸುಮಾರು 1 ತಿಂಗಳು", + future: "ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ", + past: "ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ತಿಂಗಳು", + future: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ", + }, + }, + + xMonths: { + one: { + default: "1 ತಿಂಗಳು", + future: "1 ತಿಂಗಳಲ್ಲಿ", + past: "1 ತಿಂಗಳ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ತಿಂಗಳು", + future: "{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ", + }, + }, + + aboutXYears: { + one: { + default: "ಸುಮಾರು 1 ವರ್ಷ", + future: "ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ", + past: "ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ವರ್ಷಗಳು", + future: "ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ", + }, + }, + + xYears: { + one: { + default: "1 ವರ್ಷ", + future: "1 ವರ್ಷದಲ್ಲಿ", + past: "1 ವರ್ಷದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ವರ್ಷಗಳು", + future: "{{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "{{count}} ವರ್ಷಗಳ ಹಿಂದೆ", + }, + }, + + overXYears: { + one: { + default: "1 ವರ್ಷದ ಮೇಲೆ", + future: "1 ವರ್ಷದ ಮೇಲೆ", + past: "1 ವರ್ಷದ ಮೇಲೆ", + }, + other: { + default: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + future: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + past: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + }, + }, + + almostXYears: { + one: { + default: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + future: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + past: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + }, + other: { + default: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + future: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + }, + }, +}; + +function getResultByTense(parentToken, options) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return parentToken.future; + } else { + return parentToken.past; + } + } + return parentToken.default; +} + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + + if (tokenValue.one && count === 1) { + result = getResultByTense(tokenValue.one, options); + } else { + result = getResultByTense(tokenValue.other, options); + } + + return result.replace("{{count}}", String(count)); +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/kn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/kn/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/kn/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/formatDistance.js b/node_modules/date-fns/locale/kn/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..66a380f139d4c55f97b2cf4a4eb47ffe650e44aa --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance.js @@ -0,0 +1,211 @@ +// note: no implementation for weeks + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + }, + other: { + default: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + }, + }, + + xSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್", + future: "1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ", + past: "1 ಸೆಕೆಂಡ್ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ಸೆಕೆಂಡುಗಳು", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ", + past: "{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ", + }, + }, + + halfAMinute: { + other: { + default: "ಅರ್ಧ ನಿಮಿಷ", + future: "ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ", + past: "ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ", + }, + }, + + lessThanXMinutes: { + one: { + default: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + }, + other: { + default: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + }, + }, + + xMinutes: { + one: { + default: "1 ನಿಮಿಷ", + future: "1 ನಿಮಿಷದಲ್ಲಿ", + past: "1 ನಿಮಿಷದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ನಿಮಿಷಗಳು", + future: "{{count}} ನಿಮಿಷಗಳಲ್ಲಿ", + past: "{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ", + }, + }, + + aboutXHours: { + one: { + default: "ಸುಮಾರು 1 ಗಂಟೆ", + future: "ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ", + past: "ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳು", + future: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ", + }, + }, + + xHours: { + one: { + default: "1 ಗಂಟೆ", + future: "1 ಗಂಟೆಯಲ್ಲಿ", + past: "1 ಗಂಟೆ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ಗಂಟೆಗಳು", + future: "{{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ", + }, + }, + + xDays: { + one: { + default: "1 ದಿನ", + future: "1 ದಿನದಲ್ಲಿ", + past: "1 ದಿನದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ದಿನಗಳು", + future: "{{count}} ದಿನಗಳಲ್ಲಿ", + past: "{{count}} ದಿನಗಳ ಹಿಂದೆ", + }, + }, + + // TODO + // aboutXWeeks: {}, + + // TODO + // xWeeks: {}, + + aboutXMonths: { + one: { + default: "ಸುಮಾರು 1 ತಿಂಗಳು", + future: "ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ", + past: "ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ತಿಂಗಳು", + future: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ", + }, + }, + + xMonths: { + one: { + default: "1 ತಿಂಗಳು", + future: "1 ತಿಂಗಳಲ್ಲಿ", + past: "1 ತಿಂಗಳ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ತಿಂಗಳು", + future: "{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ", + }, + }, + + aboutXYears: { + one: { + default: "ಸುಮಾರು 1 ವರ್ಷ", + future: "ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ", + past: "ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ವರ್ಷಗಳು", + future: "ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ", + }, + }, + + xYears: { + one: { + default: "1 ವರ್ಷ", + future: "1 ವರ್ಷದಲ್ಲಿ", + past: "1 ವರ್ಷದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ವರ್ಷಗಳು", + future: "{{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "{{count}} ವರ್ಷಗಳ ಹಿಂದೆ", + }, + }, + + overXYears: { + one: { + default: "1 ವರ್ಷದ ಮೇಲೆ", + future: "1 ವರ್ಷದ ಮೇಲೆ", + past: "1 ವರ್ಷದ ಮೇಲೆ", + }, + other: { + default: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + future: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + past: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + }, + }, + + almostXYears: { + one: { + default: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + future: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + past: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + }, + other: { + default: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + future: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + }, + }, +}; + +function getResultByTense(parentToken, options) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return parentToken.future; + } else { + return parentToken.past; + } + } + return parentToken.default; +} + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + + if (tokenValue.one && count === 1) { + result = getResultByTense(tokenValue.one, options); + } else { + result = getResultByTense(tokenValue.other, options); + } + + return result.replace("{{count}}", String(count)); +}; diff --git a/node_modules/date-fns/locale/kn/_lib/formatLong.cjs b/node_modules/date-fns/locale/kn/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f31790da27076dad63ab5d5bd620b9e39eb23881 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatLong.cjs @@ -0,0 +1,43 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +const dateFormats = { + full: "EEEE, MMMM d, y", // CLDR 1816 + long: "MMMM d, y", // CLDR 1817 + medium: "MMM d, y", // CLDR 1818 + short: "d/M/yy", // CLDR 1819 +}; + +const timeFormats = { + full: "hh:mm:ss a zzzz", // CLDR 1820 + long: "hh:mm:ss a z", // CLDR 1821 + medium: "hh:mm:ss a", // CLDR 1822 + short: "hh:mm a", // CLDR 1823 +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", // CLDR 1824 + long: "{{date}} {{time}}", // CLDR 1825 + medium: "{{date}} {{time}}", // CLDR 1826 + short: "{{date}} {{time}}", // CLDR 1827 +}; + +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/kn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/kn/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/kn/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/formatLong.js b/node_modules/date-fns/locale/kn/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..0fd972e917b575b222fde00c6327b6a015f9fe4b --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatLong.js @@ -0,0 +1,41 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +const dateFormats = { + full: "EEEE, MMMM d, y", // CLDR 1816 + long: "MMMM d, y", // CLDR 1817 + medium: "MMM d, y", // CLDR 1818 + short: "d/M/yy", // CLDR 1819 +}; + +const timeFormats = { + full: "hh:mm:ss a zzzz", // CLDR 1820 + long: "hh:mm:ss a z", // CLDR 1821 + medium: "hh:mm:ss a", // CLDR 1822 + short: "hh:mm a", // CLDR 1823 +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", // CLDR 1824 + long: "{{date}} {{time}}", // CLDR 1825 + medium: "{{date}} {{time}}", // CLDR 1826 + short: "{{date}} {{time}}", // CLDR 1827 +}; + +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/kn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/kn/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c0740853ff00ef575130d662c700b3ec58a5c222 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/kn/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/kn/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/formatRelative.js b/node_modules/date-fns/locale/kn/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..07536d588000e02230ac870bef4d267f8604533d --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/localize.cjs b/node_modules/date-fns/locale/kn/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ddba345aef0d888a88d316ec1db8140f51d22887 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/localize.cjs @@ -0,0 +1,172 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +const eraValues = { + narrow: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], + abbreviated: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], // CLDR #1618, #1620 + wide: ["ಕ್ರಿಸ್ತ ಪೂರ್ವ", "ಕ್ರಿಸ್ತ ಶಕ"], // CLDR #1614, #1616 +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ತ್ರೈ 1", "ತ್ರೈ 2", "ತ್ರೈ 3", "ತ್ರೈ 4"], // CLDR #1630 - #1638 + wide: ["1ನೇ ತ್ರೈಮಾಸಿಕ", "2ನೇ ತ್ರೈಮಾಸಿಕ", "3ನೇ ತ್ರೈಮಾಸಿಕ", "4ನೇ ತ್ರೈಮಾಸಿಕ"], // CLDR #1622 - #1629 +}; + +// CLDR #1646 - #1717 +const monthValues = { + narrow: ["ಜ", "ಫೆ", "ಮಾ", "ಏ", "ಮೇ", "ಜೂ", "ಜು", "ಆ", "ಸೆ", "ಅ", "ನ", "ಡಿ"], + + abbreviated: [ + "ಜನ", + "ಫೆಬ್ರ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿ", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗ", + "ಸೆಪ್ಟೆಂ", + "ಅಕ್ಟೋ", + "ನವೆಂ", + "ಡಿಸೆಂ", + ], + + wide: [ + "ಜನವರಿ", + "ಫೆಬ್ರವರಿ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿಲ್", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗಸ್ಟ್", + "ಸೆಪ್ಟೆಂಬರ್", + "ಅಕ್ಟೋಬರ್", + "ನವೆಂಬರ್", + "ಡಿಸೆಂಬರ್", + ], +}; + +// CLDR #1718 - #1773 +const dayValues = { + narrow: ["ಭಾ", "ಸೋ", "ಮಂ", "ಬು", "ಗು", "ಶು", "ಶ"], + short: ["ಭಾನು", "ಸೋಮ", "ಮಂಗಳ", "ಬುಧ", "ಗುರು", "ಶುಕ್ರ", "ಶನಿ"], + abbreviated: ["ಭಾನು", "ಸೋಮ", "ಮಂಗಳ", "ಬುಧ", "ಗುರು", "ಶುಕ್ರ", "ಶನಿ"], + wide: [ + "ಭಾನುವಾರ", + "ಸೋಮವಾರ", + "ಮಂಗಳವಾರ", + "ಬುಧವಾರ", + "ಗುರುವಾರ", + "ಶುಕ್ರವಾರ", + "ಶನಿವಾರ", + ], +}; + +// CLDR #1774 - #1815 +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 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/kn/_lib/localize.d.cts b/node_modules/date-fns/locale/kn/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/localize.d.ts b/node_modules/date-fns/locale/kn/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/localize.js b/node_modules/date-fns/locale/kn/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..e017d318562f158f55499e0d2443af2e757738bc --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/localize.js @@ -0,0 +1,170 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +const eraValues = { + narrow: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], + abbreviated: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], // CLDR #1618, #1620 + wide: ["ಕ್ರಿಸ್ತ ಪೂರ್ವ", "ಕ್ರಿಸ್ತ ಶಕ"], // CLDR #1614, #1616 +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ತ್ರೈ 1", "ತ್ರೈ 2", "ತ್ರೈ 3", "ತ್ರೈ 4"], // CLDR #1630 - #1638 + wide: ["1ನೇ ತ್ರೈಮಾಸಿಕ", "2ನೇ ತ್ರೈಮಾಸಿಕ", "3ನೇ ತ್ರೈಮಾಸಿಕ", "4ನೇ ತ್ರೈಮಾಸಿಕ"], // CLDR #1622 - #1629 +}; + +// CLDR #1646 - #1717 +const monthValues = { + narrow: ["ಜ", "ಫೆ", "ಮಾ", "ಏ", "ಮೇ", "ಜೂ", "ಜು", "ಆ", "ಸೆ", "ಅ", "ನ", "ಡಿ"], + + abbreviated: [ + "ಜನ", + "ಫೆಬ್ರ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿ", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗ", + "ಸೆಪ್ಟೆಂ", + "ಅಕ್ಟೋ", + "ನವೆಂ", + "ಡಿಸೆಂ", + ], + + wide: [ + "ಜನವರಿ", + "ಫೆಬ್ರವರಿ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿಲ್", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗಸ್ಟ್", + "ಸೆಪ್ಟೆಂಬರ್", + "ಅಕ್ಟೋಬರ್", + "ನವೆಂಬರ್", + "ಡಿಸೆಂಬರ್", + ], +}; + +// CLDR #1718 - #1773 +const dayValues = { + narrow: ["ಭಾ", "ಸೋ", "ಮಂ", "ಬು", "ಗು", "ಶು", "ಶ"], + short: ["ಭಾನು", "ಸೋಮ", "ಮಂಗಳ", "ಬುಧ", "ಗುರು", "ಶುಕ್ರ", "ಶನಿ"], + abbreviated: ["ಭಾನು", "ಸೋಮ", "ಮಂಗಳ", "ಬುಧ", "ಗುರು", "ಶುಕ್ರ", "ಶನಿ"], + wide: [ + "ಭಾನುವಾರ", + "ಸೋಮವಾರ", + "ಮಂಗಳವಾರ", + "ಬುಧವಾರ", + "ಗುರುವಾರ", + "ಶುಕ್ರವಾರ", + "ಶನಿವಾರ", + ], +}; + +// CLDR #1774 - #1815 +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 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/kn/_lib/match.cjs b/node_modules/date-fns/locale/kn/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..396dffdef30134834ada6ba325b96b5c16b44c98 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i, + abbreviated: /^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i, + wide: /^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i, +}; +const parseEraPatterns = { + any: [/^ಪೂ/i, /^(ಶ|ಪ್ರ)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [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: /^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/kn/_lib/match.d.cts b/node_modules/date-fns/locale/kn/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/match.d.ts b/node_modules/date-fns/locale/kn/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_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/kn/_lib/match.js b/node_modules/date-fns/locale/kn/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..c18fcf2ba8ca052762dc3e6049c89a8a38f3a0da --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/match.js @@ -0,0 +1,133 @@ +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?ಶ\.?)/i, + wide: /^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i, +}; +const parseEraPatterns = { + any: [/^ಪೂ/i, /^(ಶ|ಪ್ರ)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [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: /^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/kn/cdn.js b/node_modules/date-fns/locale/kn/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..3daf2369f61d32973c9eb7ec85f56bc854a5a1d3 --- /dev/null +++ b/node_modules/date-fns/locale/kn/cdn.js @@ -0,0 +1,675 @@ +(() => { +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/kn/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ" + }, + other: { + default: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ" + } + }, + xSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್", + future: "1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ", + past: "1 ಸೆಕೆಂಡ್ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ಸೆಕೆಂಡುಗಳು", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ", + past: "{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ" + } + }, + halfAMinute: { other: { + default: "ಅರ್ಧ ನಿಮಿಷ", + future: "ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ", + past: "ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ" + } }, + lessThanXMinutes: { + one: { + default: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ" + }, + other: { + default: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ" + } + }, + xMinutes: { + one: { + default: "1 ನಿಮಿಷ", + future: "1 ನಿಮಿಷದಲ್ಲಿ", + past: "1 ನಿಮಿಷದ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ನಿಮಿಷಗಳು", + future: "{{count}} ನಿಮಿಷಗಳಲ್ಲಿ", + past: "{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ" + } + }, + aboutXHours: { + one: { + default: "ಸುಮಾರು 1 ಗಂಟೆ", + future: "ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ", + past: "ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ" + }, + other: { + default: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳು", + future: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ" + } + }, + xHours: { + one: { + default: "1 ಗಂಟೆ", + future: "1 ಗಂಟೆಯಲ್ಲಿ", + past: "1 ಗಂಟೆ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ಗಂಟೆಗಳು", + future: "{{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ" + } + }, + xDays: { + one: { + default: "1 ದಿನ", + future: "1 ದಿನದಲ್ಲಿ", + past: "1 ದಿನದ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ದಿನಗಳು", + future: "{{count}} ದಿನಗಳಲ್ಲಿ", + past: "{{count}} ದಿನಗಳ ಹಿಂದೆ" + } + }, + aboutXMonths: { + one: { + default: "ಸುಮಾರು 1 ತಿಂಗಳು", + future: "ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ", + past: "ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ" + }, + other: { + default: "ಸುಮಾರು {{count}} ತಿಂಗಳು", + future: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ" + } + }, + xMonths: { + one: { + default: "1 ತಿಂಗಳು", + future: "1 ತಿಂಗಳಲ್ಲಿ", + past: "1 ತಿಂಗಳ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ತಿಂಗಳು", + future: "{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ" + } + }, + aboutXYears: { + one: { + default: "ಸುಮಾರು 1 ವರ್ಷ", + future: "ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ", + past: "ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ" + }, + other: { + default: "ಸುಮಾರು {{count}} ವರ್ಷಗಳು", + future: "ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ" + } + }, + xYears: { + one: { + default: "1 ವರ್ಷ", + future: "1 ವರ್ಷದಲ್ಲಿ", + past: "1 ವರ್ಷದ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ವರ್ಷಗಳು", + future: "{{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "{{count}} ವರ್ಷಗಳ ಹಿಂದೆ" + } + }, + overXYears: { + one: { + default: "1 ವರ್ಷದ ಮೇಲೆ", + future: "1 ವರ್ಷದ ಮೇಲೆ", + past: "1 ವರ್ಷದ ಮೇಲೆ" + }, + other: { + default: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + future: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + past: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ" + } + }, + almostXYears: { + one: { + default: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + future: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + past: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ" + }, + other: { + default: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + future: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ" + } + } +}; +function getResultByTense(parentToken, options) { + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return parentToken.future;else + return parentToken.past; + return parentToken.default; +} +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (tokenValue.one && count === 1) result = getResultByTense(tokenValue.one, options);else + result = getResultByTense(tokenValue.other, options); + return result.replace("{{count}}", String(count)); +}; +//#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 d, y", + long: "MMMM d, y", + medium: "MMM d, 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/kn/_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/kn/_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: "ಪೂರ್ವಾಹ್ನ", + 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 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/kn.js +/** +* @category Locales +* @summary Kannada locale (India). +* @language Kannada +* @iso-639-2 kan +* @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) +*/ +var kn = { + code: "kn", + 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?ಶ\.?)/i, + wide: /^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ಪೂ/i, /^(ಶ|ಪ್ರ)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [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: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/kn/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), {}, { + kn: kn }) }); + + +//#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/kn/cdn.min.js b/node_modules/date-fns/locale/kn/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..4a84b089a934d7ad2f52ca7941bf333938e9495a --- /dev/null +++ b/node_modules/date-fns/locale/kn/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?e.future:e.past:e.default}var c=function(e,t,n){var r,i=o[e];return r=i.one&&t===1?s(i.one,n):s(i.other,n),r.replace(`{{count}}`,String(t))};function l(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 u={date:l({formats:{full:`EEEE, MMMM d, y`,long:`MMMM d, y`,medium:`MMM d, y`,short:`d/M/yy`},defaultWidth:`full`}),time:l({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:l({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},d={lastWeek:`'ಕಳೆದ' eeee p 'ಕ್ಕೆ'`,yesterday:`'ನಿನ್ನೆ' p 'ಕ್ಕೆ'`,today:`'ಇಂದು' p 'ಕ್ಕೆ'`,tomorrow:`'ನಾಳೆ' p 'ಕ್ಕೆ'`,nextWeek:`eeee p 'ಕ್ಕೆ'`,other:`P`},f=function(e,t,n,r){return 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:[`ಕ್ರಿ.ಪೂ`,`ಕ್ರಿ.ಶ`],abbreviated:[`ಕ್ರಿ.ಪೂ`,`ಕ್ರಿ.ಶ`],wide:[`ಕ್ರಿಸ್ತ ಪೂರ್ವ`,`ಕ್ರಿಸ್ತ ಶಕ`]},defaultWidth:`wide`}),quarter:p({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:p({values:{narrow:[`ಜ`,`ಫೆ`,`ಮಾ`,`ಏ`,`ಮೇ`,`ಜೂ`,`ಜು`,`ಆ`,`ಸೆ`,`ಅ`,`ನ`,`ಡಿ`],abbreviated:[`ಜನ`,`ಫೆಬ್ರ`,`ಮಾರ್ಚ್`,`ಏಪ್ರಿ`,`ಮೇ`,`ಜೂನ್`,`ಜುಲೈ`,`ಆಗ`,`ಸೆಪ್ಟೆಂ`,`ಅಕ್ಟೋ`,`ನವೆಂ`,`ಡಿಸೆಂ`],wide:[`ಜನವರಿ`,`ಫೆಬ್ರವರಿ`,`ಮಾರ್ಚ್`,`ಏಪ್ರಿಲ್`,`ಮೇ`,`ಜೂನ್`,`ಜುಲೈ`,`ಆಗಸ್ಟ್`,`ಸೆಪ್ಟೆಂಬರ್`,`ಅಕ್ಟೋಬರ್`,`ನವೆಂಬರ್`,`ಡಿಸೆಂಬರ್`]},defaultWidth:`wide`}),day:p({values:{narrow:[`ಭಾ`,`ಸೋ`,`ಮಂ`,`ಬು`,`ಗು`,`ಶು`,`ಶ`],short:[`ಭಾನು`,`ಸೋಮ`,`ಮಂಗಳ`,`ಬುಧ`,`ಗುರು`,`ಶುಕ್ರ`,`ಶನಿ`],abbreviated:[`ಭಾನು`,`ಸೋಮ`,`ಮಂಗಳ`,`ಬುಧ`,`ಗುರು`,`ಶುಕ್ರ`,`ಶನಿ`],wide:[`ಭಾನುವಾರ`,`ಸೋಮವಾರ`,`ಮಂಗಳವಾರ`,`ಬುಧವಾರ`,`ಗುರುವಾರ`,`ಶುಕ್ರವಾರ`,`ಶನಿವಾರ`]},defaultWidth:`wide`}),dayPeriod:p({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 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:`kn`,formatDistance:c,formatLong:u,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(ನೇ|ನೆ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i,abbreviated:/^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i,wide:/^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ಪೂ/i,/^(ಶ|ಪ್ರ)/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [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:h({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:h({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:h({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:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{kn: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/ko.cjs b/node_modules/date-fns/locale/ko.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f4ac12e7a67d4ea97c776001d8bcb08481074958 --- /dev/null +++ b/node_modules/date-fns/locale/ko.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.ko = void 0; +var _index = require("./ko/_lib/formatDistance.cjs"); +var _index2 = require("./ko/_lib/formatLong.cjs"); +var _index3 = require("./ko/_lib/formatRelative.cjs"); +var _index4 = require("./ko/_lib/localize.cjs"); +var _index5 = require("./ko/_lib/match.cjs"); + +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +const ko = (exports.ko = { + code: "ko", + 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/ko.d.cts b/node_modules/date-fns/locale/ko.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..a6a0b2bc5ec2855cd1f42f6da0ac0e73ce829b58 --- /dev/null +++ b/node_modules/date-fns/locale/ko.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ko: Locale; diff --git a/node_modules/date-fns/locale/ko.d.ts b/node_modules/date-fns/locale/ko.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a6a0b2bc5ec2855cd1f42f6da0ac0e73ce829b58 --- /dev/null +++ b/node_modules/date-fns/locale/ko.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ko: Locale; diff --git a/node_modules/date-fns/locale/ko.js b/node_modules/date-fns/locale/ko.js new file mode 100644 index 0000000000000000000000000000000000000000..ffb03f0ae1a990a0c2dc37f42386985406328543 --- /dev/null +++ b/node_modules/date-fns/locale/ko.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./ko/_lib/formatDistance.js"; +import { formatLong } from "./ko/_lib/formatLong.js"; +import { formatRelative } from "./ko/_lib/formatRelative.js"; +import { localize } from "./ko/_lib/localize.js"; +import { match } from "./ko/_lib/match.js"; + +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export const ko = { + code: "ko", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ko; diff --git a/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c943b7bd3d3f0160268c41fe0da57e4bba9eecea --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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: "30초", + + 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}}", count.toString()); + } + + 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/ko/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ko/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ko/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/formatDistance.js b/node_modules/date-fns/locale/ko/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..b5e928072b43cd376e1016618ed06c88c3e41149 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1초 미만", + other: "{{count}}초 미만", + }, + + xSeconds: { + one: "1초", + other: "{{count}}초", + }, + + halfAMinute: "30초", + + 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}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " 후"; + } else { + return result + " 전"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ko/_lib/formatLong.cjs b/node_modules/date-fns/locale/ko/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..061a792efcd2e59b624586c5585ac8040ffbca09 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y년 M월 d일 EEEE", + long: "y년 M월 d일", + medium: "y.MM.dd", + short: "y.MM.dd", +}; + +const timeFormats = { + full: "a H시 mm분 ss초 zzzz", + long: "a H: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/ko/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ko/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ko/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/formatLong.js b/node_modules/date-fns/locale/ko/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..ce924a80da1db1d15fd26cf7314f94c3456eb450 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y년 M월 d일 EEEE", + long: "y년 M월 d일", + medium: "y.MM.dd", + short: "y.MM.dd", +}; + +const timeFormats = { + full: "a H시 mm분 ss초 zzzz", + long: "a H: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/ko/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..21006c207ace2f556d75f0300dc5d232ca499986 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ko/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ko/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/formatRelative.js b/node_modules/date-fns/locale/ko/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..e5e322dce6805907d41df9378146cd2a01d7b513 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/localize.cjs b/node_modules/date-fns/locale/ko/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a3113d1dcdb8e9f4296d395ceeb2a197290713d9 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/localize.cjs @@ -0,0 +1,169 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["BC", "AD"], + abbreviated: ["BC", "AD"], + 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: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월", + ], + + wide: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월", + ], +}; + +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); + const unit = String(options?.unit); + + switch (unit) { + case "minute": + case "second": + return String(number); + case "date": + return number + "일"; + default: + 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/ko/_lib/localize.d.cts b/node_modules/date-fns/locale/ko/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/localize.d.ts b/node_modules/date-fns/locale/ko/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/localize.js b/node_modules/date-fns/locale/ko/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..9ac3b1ec64f4ad45a4ab6c1feec3b2e55767198a --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/localize.js @@ -0,0 +1,167 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["BC", "AD"], + abbreviated: ["BC", "AD"], + 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: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월", + ], + + wide: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월", + ], +}; + +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); + const unit = String(options?.unit); + + switch (unit) { + case "minute": + case "second": + return String(number); + case "date": + return number + "일"; + default: + 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/ko/_lib/match.cjs b/node_modules/date-fns/locale/ko/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b381b21f5ec1a06460daffe63352ea7511784a18 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/match.cjs @@ -0,0 +1,118 @@ +"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: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i, +}; +const parseEraPatterns = { + any: [/^(bc|기원전)/i, /^(ad|서기)/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: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i, +}; +const parseMonthPatterns = { + any: [ + /^1월?$/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/, +}; +const parseDayPatterns = { + any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(am|오전)/i, + pm: /^(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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ko/_lib/match.d.cts b/node_modules/date-fns/locale/ko/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/match.d.ts b/node_modules/date-fns/locale/ko/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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/ko/_lib/match.js b/node_modules/date-fns/locale/ko/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..99cba457177f5d535925dbeb0e6bcfd8cbc74259 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/match.js @@ -0,0 +1,115 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(일|번째)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i, +}; +const parseEraPatterns = { + any: [/^(bc|기원전)/i, /^(ad|서기)/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: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i, +}; +const parseMonthPatterns = { + any: [ + /^1월?$/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/, +}; +const parseDayPatterns = { + any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(am|오전)/i, + pm: /^(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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ko/cdn.js b/node_modules/date-fns/locale/ko/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..a2418fd0ac498268e192e2e67417b03edc2db820 --- /dev/null +++ b/node_modules/date-fns/locale/ko/cdn.js @@ -0,0 +1,551 @@ +(() => { +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/ko/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "1초 미만", + other: "{{count}}초 미만" + }, + xSeconds: { + one: "1초", + other: "{{count}}초" + }, + halfAMinute: "30초", + 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}}", count.toString()); + 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: "y년 M월 d일 EEEE", + long: "y년 M월 d일", + medium: "y.MM.dd", + short: "y.MM.dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "a H시 mm분 ss초 zzzz", + long: "a H: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/ko/_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/ko/_lib/localize.js +var eraValues = { + narrow: ["BC", "AD"], + abbreviated: ["BC", "AD"], + 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: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월"], + + wide: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월"] + +}; +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); + switch (String(options === null || options === void 0 ? void 0 : options.unit)) { + case "minute": + case "second":return String(number); + case "date":return number + "일"; + default: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/ko.js +/** +* @category Locales +* @summary Korean locale. +* @language Korean +* @iso-639-2 kor +* @author Hong Chulju [@angdev](https://github.com/angdev) +* @author Lee Seoyoen [@iamssen](https://github.com/iamssen) +* @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) +*/ +var ko = { + code: "ko", + 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: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(bc|기원전)/i, /^(ad|서기)/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: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^1월?$/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^일/, + /^월/, + /^화/, + /^수/, + /^목/, + /^금/, + /^토/] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^(am|오전)/i, + pm: /^(pm|오후)/i, + midnight: /^자정/i, + noon: /^정오/i, + morning: /^아침/i, + afternoon: /^오후/i, + evening: /^저녁/i, + night: /^밤/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ko/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), {}, { + ko: ko }) }); + + +//#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/ko/cdn.min.js b/node_modules/date-fns/locale/ko/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..4f4225a9a8e7903e0ae2a9e04e49e89c2cf6ff65 --- /dev/null +++ b/node_modules/date-fns/locale/ko/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:`y년 M월 d일 EEEE`,long:`y년 M월 d일`,medium:`y.MM.dd`,short:`y.MM.dd`},defaultWidth:`full`}),time:c({formats:{full:`a H시 mm분 ss초 zzzz`,long:`a H: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);switch(String(t?.unit)){case`minute`:case`second`:return String(n);case`date`:return n+`일`;default:return n+`번째`}},era:f({values:{narrow:[`BC`,`AD`],abbreviated:[`BC`,`AD`],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:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],wide:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`]},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={code:`ko`,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:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/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:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ko: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/lb.cjs b/node_modules/date-fns/locale/lb.cjs new file mode 100644 index 0000000000000000000000000000000000000000..86855eb2fe727326ad32d7c56120317f8a8394af --- /dev/null +++ b/node_modules/date-fns/locale/lb.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.lb = void 0; +var _index = require("./lb/_lib/formatDistance.cjs"); +var _index2 = require("./lb/_lib/formatLong.cjs"); +var _index3 = require("./lb/_lib/formatRelative.cjs"); +var _index4 = require("./lb/_lib/localize.cjs"); +var _index5 = require("./lb/_lib/match.cjs"); + +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +const lb = (exports.lb = { + code: "lb", + 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/lb.d.cts b/node_modules/date-fns/locale/lb.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..0ec87e7288bb37a419485fd5065da059c5844cde --- /dev/null +++ b/node_modules/date-fns/locale/lb.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +export declare const lb: Locale; diff --git a/node_modules/date-fns/locale/lb.d.ts b/node_modules/date-fns/locale/lb.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0ec87e7288bb37a419485fd5065da059c5844cde --- /dev/null +++ b/node_modules/date-fns/locale/lb.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +export declare const lb: Locale; diff --git a/node_modules/date-fns/locale/lb.js b/node_modules/date-fns/locale/lb.js new file mode 100644 index 0000000000000000000000000000000000000000..11554d5c5bbfb2df82737c584e439f457dde9762 --- /dev/null +++ b/node_modules/date-fns/locale/lb.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./lb/_lib/formatDistance.js"; +import { formatLong } from "./lb/_lib/formatLong.js"; +import { formatRelative } from "./lb/_lib/formatRelative.js"; +import { localize } from "./lb/_lib/localize.js"; +import { match } from "./lb/_lib/match.js"; + +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +export const lb = { + code: "lb", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default lb; diff --git a/node_modules/date-fns/locale/lb/_lib/formatDistance.cjs b/node_modules/date-fns/locale/lb/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..584140d1b4c5eb44cfa128106358cdfd6b5d45a4 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance.cjs @@ -0,0 +1,236 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "manner wéi eng Sekonn", + other: "manner wéi {{count}} Sekonnen", + }, + withPreposition: { + one: "manner wéi enger Sekonn", + other: "manner wéi {{count}} Sekonnen", + }, + }, + + xSeconds: { + standalone: { + one: "eng Sekonn", + other: "{{count}} Sekonnen", + }, + withPreposition: { + one: "enger Sekonn", + other: "{{count}} Sekonnen", + }, + }, + + halfAMinute: { + standalone: "eng hallef Minutt", + withPreposition: "enger hallwer Minutt", + }, + + lessThanXMinutes: { + standalone: { + one: "manner wéi eng Minutt", + other: "manner wéi {{count}} Minutten", + }, + withPreposition: { + one: "manner wéi enger Minutt", + other: "manner wéi {{count}} Minutten", + }, + }, + + xMinutes: { + standalone: { + one: "eng Minutt", + other: "{{count}} Minutten", + }, + withPreposition: { + one: "enger Minutt", + other: "{{count}} Minutten", + }, + }, + + aboutXHours: { + standalone: { + one: "ongeféier eng Stonn", + other: "ongeféier {{count}} Stonnen", + }, + withPreposition: { + one: "ongeféier enger Stonn", + other: "ongeféier {{count}} Stonnen", + }, + }, + + xHours: { + standalone: { + one: "eng Stonn", + other: "{{count}} Stonnen", + }, + withPreposition: { + one: "enger Stonn", + other: "{{count}} Stonnen", + }, + }, + + xDays: { + standalone: { + one: "een Dag", + other: "{{count}} Deeg", + }, + withPreposition: { + one: "engem Dag", + other: "{{count}} Deeg", + }, + }, + + aboutXWeeks: { + standalone: { + one: "ongeféier eng Woch", + other: "ongeféier {{count}} Wochen", + }, + withPreposition: { + one: "ongeféier enger Woche", + other: "ongeféier {{count}} Wochen", + }, + }, + + xWeeks: { + standalone: { + one: "eng Woch", + other: "{{count}} Wochen", + }, + withPreposition: { + one: "enger Woch", + other: "{{count}} Wochen", + }, + }, + + aboutXMonths: { + standalone: { + one: "ongeféier ee Mount", + other: "ongeféier {{count}} Méint", + }, + withPreposition: { + one: "ongeféier engem Mount", + other: "ongeféier {{count}} Méint", + }, + }, + + xMonths: { + standalone: { + one: "ee Mount", + other: "{{count}} Méint", + }, + withPreposition: { + one: "engem Mount", + other: "{{count}} Méint", + }, + }, + + aboutXYears: { + standalone: { + one: "ongeféier ee Joer", + other: "ongeféier {{count}} Joer", + }, + withPreposition: { + one: "ongeféier engem Joer", + other: "ongeféier {{count}} Joer", + }, + }, + + xYears: { + standalone: { + one: "ee Joer", + other: "{{count}} Joer", + }, + withPreposition: { + one: "engem Joer", + other: "{{count}} Joer", + }, + }, + + overXYears: { + standalone: { + one: "méi wéi ee Joer", + other: "méi wéi {{count}} Joer", + }, + withPreposition: { + one: "méi wéi engem Joer", + other: "méi wéi {{count}} Joer", + }, + }, + + almostXYears: { + standalone: { + one: "bal ee Joer", + other: "bal {{count}} Joer", + }, + withPreposition: { + one: "bal engem Joer", + other: "bal {{count}} Joer", + }, + }, +}; + +const EXCEPTION_CONSONANTS = ["d", "h", "n", "t", "z"]; +const VOWELS = ["a,", "e", "i", "o", "u"]; +const DIGITS_SPOKEN_N_NEEDED = [0, 1, 2, 3, 8, 9]; +const FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [40, 50, 60, 70]; + +// Eifeler Regel +function isFinalNNeeded(nextWords) { + const firstLetter = nextWords.charAt(0).toLowerCase(); + if ( + VOWELS.indexOf(firstLetter) != -1 || + EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1 + ) { + return true; + } + + // Numbers would need to converted into words for checking. + // Therefore, I have listed the digits that require a preceeding n with a few exceptions. + const firstWord = nextWords.split(" ")[0]; + const number = parseInt(firstWord); + if ( + !isNaN(number) && + DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && + FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf( + parseInt(firstWord.substring(0, 2)), + ) == -1 + ) { + return true; + } + + // Omit other checks as they are not expected here. + return false; +} + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + + const usageGroup = options?.addSuffix + ? tokenValue.withPreposition + : tokenValue.standalone; + + 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 "a" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + } else { + return "viru" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/lb/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/lb/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/lb/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/formatDistance.js b/node_modules/date-fns/locale/lb/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..20313da2fccdce2897cc6a219fbbdf084c622568 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance.js @@ -0,0 +1,232 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "manner wéi eng Sekonn", + other: "manner wéi {{count}} Sekonnen", + }, + withPreposition: { + one: "manner wéi enger Sekonn", + other: "manner wéi {{count}} Sekonnen", + }, + }, + + xSeconds: { + standalone: { + one: "eng Sekonn", + other: "{{count}} Sekonnen", + }, + withPreposition: { + one: "enger Sekonn", + other: "{{count}} Sekonnen", + }, + }, + + halfAMinute: { + standalone: "eng hallef Minutt", + withPreposition: "enger hallwer Minutt", + }, + + lessThanXMinutes: { + standalone: { + one: "manner wéi eng Minutt", + other: "manner wéi {{count}} Minutten", + }, + withPreposition: { + one: "manner wéi enger Minutt", + other: "manner wéi {{count}} Minutten", + }, + }, + + xMinutes: { + standalone: { + one: "eng Minutt", + other: "{{count}} Minutten", + }, + withPreposition: { + one: "enger Minutt", + other: "{{count}} Minutten", + }, + }, + + aboutXHours: { + standalone: { + one: "ongeféier eng Stonn", + other: "ongeféier {{count}} Stonnen", + }, + withPreposition: { + one: "ongeféier enger Stonn", + other: "ongeféier {{count}} Stonnen", + }, + }, + + xHours: { + standalone: { + one: "eng Stonn", + other: "{{count}} Stonnen", + }, + withPreposition: { + one: "enger Stonn", + other: "{{count}} Stonnen", + }, + }, + + xDays: { + standalone: { + one: "een Dag", + other: "{{count}} Deeg", + }, + withPreposition: { + one: "engem Dag", + other: "{{count}} Deeg", + }, + }, + + aboutXWeeks: { + standalone: { + one: "ongeféier eng Woch", + other: "ongeféier {{count}} Wochen", + }, + withPreposition: { + one: "ongeféier enger Woche", + other: "ongeféier {{count}} Wochen", + }, + }, + + xWeeks: { + standalone: { + one: "eng Woch", + other: "{{count}} Wochen", + }, + withPreposition: { + one: "enger Woch", + other: "{{count}} Wochen", + }, + }, + + aboutXMonths: { + standalone: { + one: "ongeféier ee Mount", + other: "ongeféier {{count}} Méint", + }, + withPreposition: { + one: "ongeféier engem Mount", + other: "ongeféier {{count}} Méint", + }, + }, + + xMonths: { + standalone: { + one: "ee Mount", + other: "{{count}} Méint", + }, + withPreposition: { + one: "engem Mount", + other: "{{count}} Méint", + }, + }, + + aboutXYears: { + standalone: { + one: "ongeféier ee Joer", + other: "ongeféier {{count}} Joer", + }, + withPreposition: { + one: "ongeféier engem Joer", + other: "ongeféier {{count}} Joer", + }, + }, + + xYears: { + standalone: { + one: "ee Joer", + other: "{{count}} Joer", + }, + withPreposition: { + one: "engem Joer", + other: "{{count}} Joer", + }, + }, + + overXYears: { + standalone: { + one: "méi wéi ee Joer", + other: "méi wéi {{count}} Joer", + }, + withPreposition: { + one: "méi wéi engem Joer", + other: "méi wéi {{count}} Joer", + }, + }, + + almostXYears: { + standalone: { + one: "bal ee Joer", + other: "bal {{count}} Joer", + }, + withPreposition: { + one: "bal engem Joer", + other: "bal {{count}} Joer", + }, + }, +}; + +const EXCEPTION_CONSONANTS = ["d", "h", "n", "t", "z"]; +const VOWELS = ["a,", "e", "i", "o", "u"]; +const DIGITS_SPOKEN_N_NEEDED = [0, 1, 2, 3, 8, 9]; +const FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [40, 50, 60, 70]; + +// Eifeler Regel +function isFinalNNeeded(nextWords) { + const firstLetter = nextWords.charAt(0).toLowerCase(); + if ( + VOWELS.indexOf(firstLetter) != -1 || + EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1 + ) { + return true; + } + + // Numbers would need to converted into words for checking. + // Therefore, I have listed the digits that require a preceeding n with a few exceptions. + const firstWord = nextWords.split(" ")[0]; + const number = parseInt(firstWord); + if ( + !isNaN(number) && + DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && + FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf( + parseInt(firstWord.substring(0, 2)), + ) == -1 + ) { + return true; + } + + // Omit other checks as they are not expected here. + return false; +} + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + + const usageGroup = options?.addSuffix + ? tokenValue.withPreposition + : tokenValue.standalone; + + 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 "a" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + } else { + return "viru" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/lb/_lib/formatLong.cjs b/node_modules/date-fns/locale/lb/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..09f0ea6ccb6725a3dd125f01caa3457bea761cbf --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatLong.cjs @@ -0,0 +1,43 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 + +const dateFormats = { + full: "EEEE, do MMMM y", // Méindeg, 7. Januar 2018 + long: "do MMMM y", // 7. Januar 2018 + medium: "do MMM y", // 7. Jan 2018 + short: "dd.MM.yy", // 07.01.18 +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{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/lb/_lib/formatLong.d.cts b/node_modules/date-fns/locale/lb/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/formatLong.d.ts b/node_modules/date-fns/locale/lb/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/formatLong.js b/node_modules/date-fns/locale/lb/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..dc6c95a38026b202a3a18b3f704a0b5b750c3f4d --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatLong.js @@ -0,0 +1,41 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 + +const dateFormats = { + full: "EEEE, do MMMM y", // Méindeg, 7. Januar 2018 + long: "do MMMM y", // 7. Januar 2018 + medium: "do MMM y", // 7. Jan 2018 + short: "dd.MM.yy", // 07.01.18 +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{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/lb/_lib/formatRelative.cjs b/node_modules/date-fns/locale/lb/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e1b31e1349ff52a2c16c1d031593061972ecc6ec --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + let result = "'läschte"; + if (day === 2 || day === 4) { + // Eifeler Regel: Add an n before the consonant d; Here "Dënschdeg" "and Donneschde". + result += "n"; + } + result += "' eeee 'um' p"; + return result; + }, + yesterday: "'gëschter um' p", + today: "'haut um' p", + tomorrow: "'moien um' p", + nextWeek: "eeee 'um' 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/lb/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/lb/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/lb/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/formatRelative.js b/node_modules/date-fns/locale/lb/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..d3e2f50b04b3c161b0f6b17726780d39488e970c --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative.js @@ -0,0 +1,27 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + let result = "'läschte"; + if (day === 2 || day === 4) { + // Eifeler Regel: Add an n before the consonant d; Here "Dënschdeg" "and Donneschde". + result += "n"; + } + result += "' eeee 'um' p"; + return result; + }, + yesterday: "'gëschter um' p", + today: "'haut um' p", + tomorrow: "'moien um' p", + nextWeek: "eeee 'um' 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/lb/_lib/localize.cjs b/node_modules/date-fns/locale/lb/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1207595c4f978a2dbbfdf0bbf873211c92597906 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["viru Christus", "no Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mäe", + "Abr", + "Mee", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez", + ], + + wide: [ + "Januar", + "Februar", + "Mäerz", + "Abrëll", + "Mee", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "D", "M", "D", "F", "S"], + short: ["So", "Mé", "Dë", "Më", "Do", "Fr", "Sa"], + abbreviated: ["So.", "Mé.", "Dë.", "Më.", "Do.", "Fr.", "Sa."], + wide: [ + "Sonndeg", + "Méindeg", + "Dënschdeg", + "Mëttwoch", + "Donneschdeg", + "Freideg", + "Samschdeg", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "mo.", + pm: "nomë.", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "mo.", + pm: "nom.", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, +}; + +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/lb/_lib/localize.d.cts b/node_modules/date-fns/locale/lb/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/localize.d.ts b/node_modules/date-fns/locale/lb/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/localize.js b/node_modules/date-fns/locale/lb/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..c965f3cf8c17324ca71e20c76aefa0589e63e145 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["viru Christus", "no Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mäe", + "Abr", + "Mee", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez", + ], + + wide: [ + "Januar", + "Februar", + "Mäerz", + "Abrëll", + "Mee", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "D", "M", "D", "F", "S"], + short: ["So", "Mé", "Dë", "Më", "Do", "Fr", "Sa"], + abbreviated: ["So.", "Mé.", "Dë.", "Më.", "Do.", "Fr.", "Sa."], + wide: [ + "Sonndeg", + "Méindeg", + "Dënschdeg", + "Mëttwoch", + "Donneschdeg", + "Freideg", + "Samschdeg", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "mo.", + pm: "nomë.", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "mo.", + pm: "nom.", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, +}; + +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/lb/_lib/match.cjs b/node_modules/date-fns/locale/lb/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..03e7862f52ada7f976563fd1b71912b76b0b75a3 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i, +}; +const parseEraPatterns = { + any: [/^v/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, + wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/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, + /^mä/i, + /^ab/i, + /^me/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smdf]/i, + short: /^(so|mé|dë|më|do|fr|sa)/i, + abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, + wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i, +}; +const parseDayPatterns = { + any: [/^so/i, /^mé/i, /^dë/i, /^më/i, /^do/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + abbreviated: + /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^n/i, + midnight: /^Mëtter/i, + noon: /^mëttes/i, + morning: /moies/i, + afternoon: /nomëttes/i, // will never be matched. Afternoon is matched by `pm` + evening: /owes/i, + night: /nuets/i, // will never be matched. Night is matched by `pm` + }, +}; + +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/lb/_lib/match.d.cts b/node_modules/date-fns/locale/lb/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/match.d.ts b/node_modules/date-fns/locale/lb/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_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/lb/_lib/match.js b/node_modules/date-fns/locale/lb/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..c8da63f23ecf84f1ba81875051acb060f16b0a33 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i, +}; +const parseEraPatterns = { + any: [/^v/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, + wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/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, + /^mä/i, + /^ab/i, + /^me/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smdf]/i, + short: /^(so|mé|dë|më|do|fr|sa)/i, + abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, + wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i, +}; +const parseDayPatterns = { + any: [/^so/i, /^mé/i, /^dë/i, /^më/i, /^do/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + abbreviated: + /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^n/i, + midnight: /^Mëtter/i, + noon: /^mëttes/i, + morning: /moies/i, + afternoon: /nomëttes/i, // will never be matched. Afternoon is matched by `pm` + evening: /owes/i, + night: /nuets/i, // will never be matched. Night is matched by `pm` + }, +}; + +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/lb/cdn.js b/node_modules/date-fns/locale/lb/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..1dd8314b1efc8aaf9a3dec4748acdc3fdf4b7a28 --- /dev/null +++ b/node_modules/date-fns/locale/lb/cdn.js @@ -0,0 +1,703 @@ +(() => { +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/lb/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "manner wéi eng Sekonn", + other: "manner wéi {{count}} Sekonnen" + }, + withPreposition: { + one: "manner wéi enger Sekonn", + other: "manner wéi {{count}} Sekonnen" + } + }, + xSeconds: { + standalone: { + one: "eng Sekonn", + other: "{{count}} Sekonnen" + }, + withPreposition: { + one: "enger Sekonn", + other: "{{count}} Sekonnen" + } + }, + halfAMinute: { + standalone: "eng hallef Minutt", + withPreposition: "enger hallwer Minutt" + }, + lessThanXMinutes: { + standalone: { + one: "manner wéi eng Minutt", + other: "manner wéi {{count}} Minutten" + }, + withPreposition: { + one: "manner wéi enger Minutt", + other: "manner wéi {{count}} Minutten" + } + }, + xMinutes: { + standalone: { + one: "eng Minutt", + other: "{{count}} Minutten" + }, + withPreposition: { + one: "enger Minutt", + other: "{{count}} Minutten" + } + }, + aboutXHours: { + standalone: { + one: "ongeféier eng Stonn", + other: "ongeféier {{count}} Stonnen" + }, + withPreposition: { + one: "ongeféier enger Stonn", + other: "ongeféier {{count}} Stonnen" + } + }, + xHours: { + standalone: { + one: "eng Stonn", + other: "{{count}} Stonnen" + }, + withPreposition: { + one: "enger Stonn", + other: "{{count}} Stonnen" + } + }, + xDays: { + standalone: { + one: "een Dag", + other: "{{count}} Deeg" + }, + withPreposition: { + one: "engem Dag", + other: "{{count}} Deeg" + } + }, + aboutXWeeks: { + standalone: { + one: "ongeféier eng Woch", + other: "ongeféier {{count}} Wochen" + }, + withPreposition: { + one: "ongeféier enger Woche", + other: "ongeféier {{count}} Wochen" + } + }, + xWeeks: { + standalone: { + one: "eng Woch", + other: "{{count}} Wochen" + }, + withPreposition: { + one: "enger Woch", + other: "{{count}} Wochen" + } + }, + aboutXMonths: { + standalone: { + one: "ongeféier ee Mount", + other: "ongeféier {{count}} Méint" + }, + withPreposition: { + one: "ongeféier engem Mount", + other: "ongeféier {{count}} Méint" + } + }, + xMonths: { + standalone: { + one: "ee Mount", + other: "{{count}} Méint" + }, + withPreposition: { + one: "engem Mount", + other: "{{count}} Méint" + } + }, + aboutXYears: { + standalone: { + one: "ongeféier ee Joer", + other: "ongeféier {{count}} Joer" + }, + withPreposition: { + one: "ongeféier engem Joer", + other: "ongeféier {{count}} Joer" + } + }, + xYears: { + standalone: { + one: "ee Joer", + other: "{{count}} Joer" + }, + withPreposition: { + one: "engem Joer", + other: "{{count}} Joer" + } + }, + overXYears: { + standalone: { + one: "méi wéi ee Joer", + other: "méi wéi {{count}} Joer" + }, + withPreposition: { + one: "méi wéi engem Joer", + other: "méi wéi {{count}} Joer" + } + }, + almostXYears: { + standalone: { + one: "bal ee Joer", + other: "bal {{count}} Joer" + }, + withPreposition: { + one: "bal engem Joer", + other: "bal {{count}} Joer" + } + } +}; +var EXCEPTION_CONSONANTS = [ +"d", +"h", +"n", +"t", +"z"]; + +var VOWELS = [ +"a,", +"e", +"i", +"o", +"u"]; + +var DIGITS_SPOKEN_N_NEEDED = [ +0, +1, +2, +3, +8, +9]; + +var FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [ +40, +50, +60, +70]; + +function isFinalNNeeded(nextWords) { + var firstLetter = nextWords.charAt(0).toLowerCase(); + if (VOWELS.indexOf(firstLetter) != -1 || EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1) return true; + var firstWord = nextWords.split(" ")[0]; + var number = parseInt(firstWord); + if (!isNaN(number) && DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf(parseInt(firstWord.substring(0, 2))) == -1) return true; + return false; +} +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + var usageGroup = options !== null && options !== void 0 && options.addSuffix ? tokenValue.withPreposition : tokenValue.standalone; + 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 "a" + (isFinalNNeeded(result) ? "n" : "") + " " + result;else + return "viru" + (isFinalNNeeded(result) ? "n" : "") + " " + 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: "do MMM y", + short: "dd.MM.yy" + }, + 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}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/lb/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var day = date.getDay(); + var result = "'läschte"; + if (day === 2 || day === 4) result += "n"; + result += "' eeee 'um' p"; + return result; + }, + yesterday: "'gëschter um' p", + today: "'haut um' p", + tomorrow: "'moien um' p", + nextWeek: "eeee 'um' 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/lb/_lib/localize.js +var eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["viru Christus", "no Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. Quartal", + "2. Quartal", + "3. Quartal", + "4. Quartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mäe", + "Abr", + "Mee", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez"], + + wide: [ + "Januar", + "Februar", + "Mäerz", + "Abrëll", + "Mee", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "D", + "M", + "D", + "F", + "S"], + + short: [ + "So", + "Mé", + "Dë", + "Më", + "Do", + "Fr", + "Sa"], + + abbreviated: [ + "So.", + "Mé.", + "Dë.", + "Më.", + "Do.", + "Fr.", + "Sa."], + + wide: [ + "Sonndeg", + "Méindeg", + "Dënschdeg", + "Mëttwoch", + "Donneschdeg", + "Freideg", + "Samschdeg"] + +}; +var dayPeriodValues = { + narrow: { + am: "mo.", + pm: "nomë.", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht" + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht" + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "mo.", + pm: "nom.", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets" + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets" + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets" + } +}; +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/lb.js +/** +* @category Locales +* @summary Luxembourgish locale. +* @language Luxembourgish +* @iso-639-2 ltz +* @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) +*/ +var lb = { + code: "lb", + 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: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/i, /^n/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/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|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, + wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/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, + /^mä/i, + /^ab/i, + /^me/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smdf]/i, + short: /^(so|mé|dë|më|do|fr|sa)/i, + abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, + wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^so/i, + /^mé/i, + /^dë/i, + /^më/i, + /^do/i, + /^f/i, + /^sa/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + abbreviated: /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^m/i, + pm: /^n/i, + midnight: /^Mëtter/i, + noon: /^mëttes/i, + morning: /moies/i, + afternoon: /nomëttes/i, + evening: /owes/i, + night: /nuets/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/lb/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), {}, { + lb: lb }) }); + + +//#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/lb/cdn.min.js b/node_modules/date-fns/locale/lb/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..2b267ade89db3c0e34ede2d7f79ffe077893b75c --- /dev/null +++ b/node_modules/date-fns/locale/lb/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?`a`+(d(r)?`n`:``)+` `+r:`viru`+(d(r)?`n`:``)+` `+r:r};function p(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 m={date:p({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.yy`},defaultWidth:`full`}),time:p({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:p({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},h={lastWeek:function(e){var t=e.getDay(),n=`'läschte`;return(t===2||t===4)&&(n+=`n`),n+=`' eeee 'um' p`,n},yesterday:`'gëschter um' p`,today:`'haut um' p`,tomorrow:`'moien um' p`,nextWeek:`eeee 'um' p`,other:`P`},g=function(e,t,n,r){var i=h[e];return typeof i==`function`?i(t):i};function _(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 v={ordinalNumber:function(e,t){return Number(e)+`.`},era:_({values:{narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`viru Christus`,`no Christus`]},defaultWidth:`wide`}),quarter:_({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:_({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mäe`,`Abr`,`Mee`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`Mäerz`,`Abrëll`,`Mee`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},defaultWidth:`wide`}),day:_({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mé`,`Dë`,`Më`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mé.`,`Dë.`,`Më.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonndeg`,`Méindeg`,`Dënschdeg`,`Mëttwoch`,`Donneschdeg`,`Freideg`,`Samschdeg`]},defaultWidth:`wide`}),dayPeriod:_({values:{narrow:{am:`mo.`,pm:`nomë.`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`},abbreviated:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`},wide:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`mo.`,pm:`nom.`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`},abbreviated:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`},wide:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`}},defaultFormattingWidth:`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={code:`lb`,formatDistance:f,formatLong:m,formatRelative:g,localize:v,match:{ordinalNumber:S({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:y({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/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:/^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i,wide:/^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/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,/^mä/i,/^ab/i,/^me/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:y({matchPatterns:{narrow:/^[smdf]/i,short:/^(so|mé|dë|më|do|fr|sa)/i,abbreviated:/^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i,wide:/^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mé/i,/^dë/i,/^më/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:y({matchPatterns:{narrow:/^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,abbreviated:/^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,wide:/^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^m/i,pm:/^n/i,midnight:/^Mëtter/i,noon:/^mëttes/i,morning:/moies/i,afternoon:/nomëttes/i,evening:/owes/i,night:/nuets/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{lb:C})}),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/lt.cjs b/node_modules/date-fns/locale/lt.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ec8bdccc8c1671fc2e5bb8de5399f41945d0c92f --- /dev/null +++ b/node_modules/date-fns/locale/lt.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.lt = void 0; +var _index = require("./lt/_lib/formatDistance.cjs"); +var _index2 = require("./lt/_lib/formatLong.cjs"); +var _index3 = require("./lt/_lib/formatRelative.cjs"); +var _index4 = require("./lt/_lib/localize.cjs"); +var _index5 = require("./lt/_lib/match.cjs"); + +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +const lt = (exports.lt = { + code: "lt", + 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/lt.d.cts b/node_modules/date-fns/locale/lt.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..4cf55a8db71eadb632d6ad05e20bd13f7998182a --- /dev/null +++ b/node_modules/date-fns/locale/lt.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +export declare const lt: Locale; diff --git a/node_modules/date-fns/locale/lt.d.ts b/node_modules/date-fns/locale/lt.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..4cf55a8db71eadb632d6ad05e20bd13f7998182a --- /dev/null +++ b/node_modules/date-fns/locale/lt.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +export declare const lt: Locale; diff --git a/node_modules/date-fns/locale/lt.js b/node_modules/date-fns/locale/lt.js new file mode 100644 index 0000000000000000000000000000000000000000..0b1c8752d03b925454e6c6aa39276f25d4b2168c --- /dev/null +++ b/node_modules/date-fns/locale/lt.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./lt/_lib/formatDistance.js"; +import { formatLong } from "./lt/_lib/formatLong.js"; +import { formatRelative } from "./lt/_lib/formatRelative.js"; +import { localize } from "./lt/_lib/localize.js"; +import { match } from "./lt/_lib/match.js"; + +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +export const lt = { + code: "lt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default lt; diff --git a/node_modules/date-fns/locale/lt/_lib/formatDistance.cjs b/node_modules/date-fns/locale/lt/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c10b8b326435c9a58f0d905473c8afa2610eaee8 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance.cjs @@ -0,0 +1,180 @@ +"use strict"; +exports.formatDistance = void 0; + +const translations = { + xseconds_other: "sekundė_sekundžių_sekundes", + xminutes_one: "minutė_minutės_minutę", + xminutes_other: "minutės_minučių_minutes", + xhours_one: "valanda_valandos_valandą", + xhours_other: "valandos_valandų_valandas", + xdays_one: "diena_dienos_dieną", + xdays_other: "dienos_dienų_dienas", + xweeks_one: "savaitė_savaitės_savaitę", + xweeks_other: "savaitės_savaičių_savaites", + xmonths_one: "mėnuo_mėnesio_mėnesį", + xmonths_other: "mėnesiai_mėnesių_mėnesius", + xyears_one: "metai_metų_metus", + xyears_other: "metai_metų_metus", + about: "apie", + over: "daugiau nei", + almost: "beveik", + lessthan: "mažiau nei", +}; + +const translateSeconds = (_number, addSuffix, _key, isFuture) => { + if (!addSuffix) { + return "kelios sekundės"; + } else { + return isFuture ? "kelių sekundžių" : "kelias sekundes"; + } +}; + +const translateSingular = (_number, addSuffix, key, isFuture) => { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +}; + +const translate = (number, addSuffix, key, isFuture) => { + const result = number + " "; + if (number === 1) { + return result + translateSingular(number, addSuffix, key, isFuture); + } else if (!addSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; + } else { + return result + (special(number) ? forms(key)[1] : forms(key)[2]); + } + } +}; + +function special(number) { + return number % 10 === 0 || (number > 10 && number < 20); +} + +function forms(key) { + return translations[key].split("_"); +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: translateSeconds, + other: translate, + }, + + xSeconds: { + one: translateSeconds, + other: translate, + }, + + halfAMinute: "pusė minutės", + + lessThanXMinutes: { + one: translateSingular, + other: translate, + }, + + xMinutes: { + one: translateSingular, + other: translate, + }, + + aboutXHours: { + one: translateSingular, + other: translate, + }, + + xHours: { + one: translateSingular, + other: translate, + }, + + xDays: { + one: translateSingular, + other: translate, + }, + + aboutXWeeks: { + one: translateSingular, + other: translate, + }, + + xWeeks: { + one: translateSingular, + other: translate, + }, + + aboutXMonths: { + one: translateSingular, + other: translate, + }, + + xMonths: { + one: translateSingular, + other: translate, + }, + + aboutXYears: { + one: translateSingular, + other: translate, + }, + + xYears: { + one: translateSingular, + other: translate, + }, + + overXYears: { + one: translateSingular, + other: translate, + }, + + almostXYears: { + one: translateSingular, + other: translate, + }, +}; + +const formatDistance = (token, count, options) => { + const adverb = token.match(/about|over|almost|lessthan/i); + const unit = adverb ? token.replace(adverb[0], "") : token; + + const isFuture = options?.comparison !== undefined && options.comparison > 0; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one( + count, + options?.addSuffix === true, + unit.toLowerCase() + "_one", + isFuture, + ); + } else { + result = tokenValue.other( + count, + options?.addSuffix === true, + unit.toLowerCase() + "_other", + isFuture, + ); + } + + if (adverb) { + const key = adverb[0].toLowerCase(); + result = translations[key] + " " + result; + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "po " + result; + } else { + return "prieš " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/lt/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/lt/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/lt/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/formatDistance.js b/node_modules/date-fns/locale/lt/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..193d938346ef1d7d0174b9b8a8592d0dea0ed1d3 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance.js @@ -0,0 +1,176 @@ +const translations = { + xseconds_other: "sekundė_sekundžių_sekundes", + xminutes_one: "minutė_minutės_minutę", + xminutes_other: "minutės_minučių_minutes", + xhours_one: "valanda_valandos_valandą", + xhours_other: "valandos_valandų_valandas", + xdays_one: "diena_dienos_dieną", + xdays_other: "dienos_dienų_dienas", + xweeks_one: "savaitė_savaitės_savaitę", + xweeks_other: "savaitės_savaičių_savaites", + xmonths_one: "mėnuo_mėnesio_mėnesį", + xmonths_other: "mėnesiai_mėnesių_mėnesius", + xyears_one: "metai_metų_metus", + xyears_other: "metai_metų_metus", + about: "apie", + over: "daugiau nei", + almost: "beveik", + lessthan: "mažiau nei", +}; + +const translateSeconds = (_number, addSuffix, _key, isFuture) => { + if (!addSuffix) { + return "kelios sekundės"; + } else { + return isFuture ? "kelių sekundžių" : "kelias sekundes"; + } +}; + +const translateSingular = (_number, addSuffix, key, isFuture) => { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +}; + +const translate = (number, addSuffix, key, isFuture) => { + const result = number + " "; + if (number === 1) { + return result + translateSingular(number, addSuffix, key, isFuture); + } else if (!addSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; + } else { + return result + (special(number) ? forms(key)[1] : forms(key)[2]); + } + } +}; + +function special(number) { + return number % 10 === 0 || (number > 10 && number < 20); +} + +function forms(key) { + return translations[key].split("_"); +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: translateSeconds, + other: translate, + }, + + xSeconds: { + one: translateSeconds, + other: translate, + }, + + halfAMinute: "pusė minutės", + + lessThanXMinutes: { + one: translateSingular, + other: translate, + }, + + xMinutes: { + one: translateSingular, + other: translate, + }, + + aboutXHours: { + one: translateSingular, + other: translate, + }, + + xHours: { + one: translateSingular, + other: translate, + }, + + xDays: { + one: translateSingular, + other: translate, + }, + + aboutXWeeks: { + one: translateSingular, + other: translate, + }, + + xWeeks: { + one: translateSingular, + other: translate, + }, + + aboutXMonths: { + one: translateSingular, + other: translate, + }, + + xMonths: { + one: translateSingular, + other: translate, + }, + + aboutXYears: { + one: translateSingular, + other: translate, + }, + + xYears: { + one: translateSingular, + other: translate, + }, + + overXYears: { + one: translateSingular, + other: translate, + }, + + almostXYears: { + one: translateSingular, + other: translate, + }, +}; + +export const formatDistance = (token, count, options) => { + const adverb = token.match(/about|over|almost|lessthan/i); + const unit = adverb ? token.replace(adverb[0], "") : token; + + const isFuture = options?.comparison !== undefined && options.comparison > 0; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one( + count, + options?.addSuffix === true, + unit.toLowerCase() + "_one", + isFuture, + ); + } else { + result = tokenValue.other( + count, + options?.addSuffix === true, + unit.toLowerCase() + "_other", + isFuture, + ); + } + + if (adverb) { + const key = adverb[0].toLowerCase(); + result = translations[key] + " " + result; + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "po " + result; + } else { + return "prieš " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/lt/_lib/formatLong.cjs b/node_modules/date-fns/locale/lt/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..45b76dedd7cdef80e487d0cbc6c0772657c41638 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y 'm'. MMMM d 'd'., EEEE", + long: "y 'm'. MMMM d 'd'.", + medium: "y-MM-dd", + short: "y-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/lt/_lib/formatLong.d.cts b/node_modules/date-fns/locale/lt/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/formatLong.d.ts b/node_modules/date-fns/locale/lt/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/formatLong.js b/node_modules/date-fns/locale/lt/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..2e1ca0d2a3beb89d0cfce2359de5567f4ed54557 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y 'm'. MMMM d 'd'., EEEE", + long: "y 'm'. MMMM d 'd'.", + medium: "y-MM-dd", + short: "y-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/lt/_lib/formatRelative.cjs b/node_modules/date-fns/locale/lt/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..dc8aac816dfcf7b098ea95a56f6517a100bc5672 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' 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/lt/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/lt/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/lt/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/formatRelative.js b/node_modules/date-fns/locale/lt/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..53575dbaec3760597a0eec44c1828c6f4bf93d3b --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' p", + nextWeek: "eeee p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/lt/_lib/localize.cjs b/node_modules/date-fns/locale/lt/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a73db625465af3f328f4b5475f402cc505327f00 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/localize.cjs @@ -0,0 +1,226 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["pr. Kr.", "po Kr."], + abbreviated: ["pr. Kr.", "po Kr."], + wide: ["prieš Kristų", "po Kristaus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I ketv.", "II ketv.", "III ketv.", "IV ketv."], + wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"], +}; + +const formattingQuarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I k.", "II k.", "III k.", "IV k."], + wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"], +}; + +const monthValues = { + narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"], + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod.", + ], + + wide: [ + "sausis", + "vasaris", + "kovas", + "balandis", + "gegužė", + "birželis", + "liepa", + "rugpjūtis", + "rugsėjis", + "spalis", + "lapkritis", + "gruodis", + ], +}; + +const formattingMonthValues = { + narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"], + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod.", + ], + + wide: [ + "sausio", + "vasario", + "kovo", + "balandžio", + "gegužės", + "birželio", + "liepos", + "rugpjūčio", + "rugsėjo", + "spalio", + "lapkričio", + "gruodžio", + ], +}; + +const dayValues = { + narrow: ["S", "P", "A", "T", "K", "P", "Š"], + short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "Št"], + abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "št"], + wide: [ + "sekmadienis", + "pirmadienis", + "antradienis", + "trečiadienis", + "ketvirtadienis", + "penktadienis", + "šeštadienis", + ], +}; + +const formattingDayValues = { + narrow: ["S", "P", "A", "T", "K", "P", "Š"], + short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "Št"], + abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "št"], + wide: [ + "sekmadienį", + "pirmadienį", + "antradienį", + "trečiadienį", + "ketvirtadienį", + "penktadienį", + "šeštadienį", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "-oji"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "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", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/lt/_lib/localize.d.cts b/node_modules/date-fns/locale/lt/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/localize.d.ts b/node_modules/date-fns/locale/lt/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/localize.js b/node_modules/date-fns/locale/lt/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..600d45717fc1d6e73ade72bf09c7c9e7cd75f9b9 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/localize.js @@ -0,0 +1,224 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr. Kr.", "po Kr."], + abbreviated: ["pr. Kr.", "po Kr."], + wide: ["prieš Kristų", "po Kristaus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I ketv.", "II ketv.", "III ketv.", "IV ketv."], + wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"], +}; + +const formattingQuarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I k.", "II k.", "III k.", "IV k."], + wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"], +}; + +const monthValues = { + narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"], + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod.", + ], + + wide: [ + "sausis", + "vasaris", + "kovas", + "balandis", + "gegužė", + "birželis", + "liepa", + "rugpjūtis", + "rugsėjis", + "spalis", + "lapkritis", + "gruodis", + ], +}; + +const formattingMonthValues = { + narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"], + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod.", + ], + + wide: [ + "sausio", + "vasario", + "kovo", + "balandžio", + "gegužės", + "birželio", + "liepos", + "rugpjūčio", + "rugsėjo", + "spalio", + "lapkričio", + "gruodžio", + ], +}; + +const dayValues = { + narrow: ["S", "P", "A", "T", "K", "P", "Š"], + short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "Št"], + abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "št"], + wide: [ + "sekmadienis", + "pirmadienis", + "antradienis", + "trečiadienis", + "ketvirtadienis", + "penktadienis", + "šeštadienis", + ], +}; + +const formattingDayValues = { + narrow: ["S", "P", "A", "T", "K", "P", "Š"], + short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "Št"], + abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "št"], + wide: [ + "sekmadienį", + "pirmadienį", + "antradienį", + "trečiadienį", + "ketvirtadienį", + "penktadienį", + "šeštadienį", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "-oji"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "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", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/lt/_lib/match.cjs b/node_modules/date-fns/locale/lt/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..62baf4a0cd4041a9c0fa7a4431895ff13a878661 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/match.cjs @@ -0,0 +1,150 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-oji)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, + abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, + wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i, +}; +const parseEraPatterns = { + wide: [/prieš/i, /(po|mūsų)/i], + any: [/^pr/i, /^(po|m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^([1234])/i, + abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, + wide: /^(I|II|III|IV)\s?ketvirtis/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/I$/i, /II$/i, /III/i, /IV/i], +}; + +const matchMonthPatterns = { + narrow: /^[svkbglr]/i, + abbreviated: + /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, + wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^s/i, + /^v/i, + /^k/i, + /^b/i, + /^g/i, + /^b/i, + /^l/i, + /^r/i, + /^r/i, + /^s/i, + /^l/i, + /^g/i, + ], + + any: [ + /^saus/i, + /^vas/i, + /^kov/i, + /^bal/i, + /^geg/i, + /^birž/i, + /^liep/i, + /^rugp/i, + /^rugs/i, + /^spal/i, + /^lapkr/i, + /^gruod/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[spatkš]/i, + short: /^(sk|pr|an|tr|kt|pn|št)/i, + abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i, + wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^a/i, /^t/i, /^k/i, /^p/i, /^š/i], + wide: [/^se/i, /^pi/i, /^an/i, /^tr/i, /^ke/i, /^pe/i, /^še/i], + any: [/^sk/i, /^pr/i, /^an/i, /^tr/i, /^kt/i, /^pn/i, /^št/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, + any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^pr/i, + pm: /^pop./i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i, + }, + any: { + am: /^pr/i, + pm: /^popiet$/i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/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/lt/_lib/match.d.cts b/node_modules/date-fns/locale/lt/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/match.d.ts b/node_modules/date-fns/locale/lt/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_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/lt/_lib/match.js b/node_modules/date-fns/locale/lt/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..f9178ed76ac2cc560b506c3e234b1e085cb088be --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/match.js @@ -0,0 +1,147 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-oji)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, + abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, + wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i, +}; +const parseEraPatterns = { + wide: [/prieš/i, /(po|mūsų)/i], + any: [/^pr/i, /^(po|m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^([1234])/i, + abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, + wide: /^(I|II|III|IV)\s?ketvirtis/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/I$/i, /II$/i, /III/i, /IV/i], +}; + +const matchMonthPatterns = { + narrow: /^[svkbglr]/i, + abbreviated: + /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, + wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^s/i, + /^v/i, + /^k/i, + /^b/i, + /^g/i, + /^b/i, + /^l/i, + /^r/i, + /^r/i, + /^s/i, + /^l/i, + /^g/i, + ], + + any: [ + /^saus/i, + /^vas/i, + /^kov/i, + /^bal/i, + /^geg/i, + /^birž/i, + /^liep/i, + /^rugp/i, + /^rugs/i, + /^spal/i, + /^lapkr/i, + /^gruod/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[spatkš]/i, + short: /^(sk|pr|an|tr|kt|pn|št)/i, + abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i, + wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^a/i, /^t/i, /^k/i, /^p/i, /^š/i], + wide: [/^se/i, /^pi/i, /^an/i, /^tr/i, /^ke/i, /^pe/i, /^še/i], + any: [/^sk/i, /^pr/i, /^an/i, /^tr/i, /^kt/i, /^pn/i, /^št/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, + any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^pr/i, + pm: /^pop./i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i, + }, + any: { + am: /^pr/i, + pm: /^popiet$/i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/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/lt/cdn.js b/node_modules/date-fns/locale/lt/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..f92495112acc88aa57fca779e67464b1d047bd32 --- /dev/null +++ b/node_modules/date-fns/locale/lt/cdn.js @@ -0,0 +1,757 @@ +(() => { +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/lt/_lib/formatDistance.js +var translations = { + xseconds_other: "sekundė_sekundžių_sekundes", + xminutes_one: "minutė_minutės_minutę", + xminutes_other: "minutės_minučių_minutes", + xhours_one: "valanda_valandos_valandą", + xhours_other: "valandos_valandų_valandas", + xdays_one: "diena_dienos_dieną", + xdays_other: "dienos_dienų_dienas", + xweeks_one: "savaitė_savaitės_savaitę", + xweeks_other: "savaitės_savaičių_savaites", + xmonths_one: "mėnuo_mėnesio_mėnesį", + xmonths_other: "mėnesiai_mėnesių_mėnesius", + xyears_one: "metai_metų_metus", + xyears_other: "metai_metų_metus", + about: "apie", + over: "daugiau nei", + almost: "beveik", + lessthan: "mažiau nei" +}; +var translateSeconds = function translateSeconds(_number, addSuffix, _key, isFuture) { + if (!addSuffix) return "kelios sekundės";else + return isFuture ? "kelių sekundžių" : "kelias sekundes"; +}; +var translateSingular = function translateSingular(_number, addSuffix, key, isFuture) { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +}; +var translate = function translate(number, addSuffix, key, isFuture) { + var result = number + " "; + if (number === 1) return result + translateSingular(number, addSuffix, key, isFuture);else + if (!addSuffix) return result + (special(number) ? forms(key)[1] : forms(key)[0]);else + if (isFuture) return result + forms(key)[1];else + return result + (special(number) ? forms(key)[1] : forms(key)[2]); +}; +function special(number) { + return number % 10 === 0 || number > 10 && number < 20; +} +function forms(key) { + return translations[key].split("_"); +} +var formatDistanceLocale = { + lessThanXSeconds: { + one: translateSeconds, + other: translate + }, + xSeconds: { + one: translateSeconds, + other: translate + }, + halfAMinute: "pusė minutės", + lessThanXMinutes: { + one: translateSingular, + other: translate + }, + xMinutes: { + one: translateSingular, + other: translate + }, + aboutXHours: { + one: translateSingular, + other: translate + }, + xHours: { + one: translateSingular, + other: translate + }, + xDays: { + one: translateSingular, + other: translate + }, + aboutXWeeks: { + one: translateSingular, + other: translate + }, + xWeeks: { + one: translateSingular, + other: translate + }, + aboutXMonths: { + one: translateSingular, + other: translate + }, + xMonths: { + one: translateSingular, + other: translate + }, + aboutXYears: { + one: translateSingular, + other: translate + }, + xYears: { + one: translateSingular, + other: translate + }, + overXYears: { + one: translateSingular, + other: translate + }, + almostXYears: { + one: translateSingular, + other: translate + } +}; +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 isFuture = (options === null || options === void 0 ? void 0 : options.comparison) !== void 0 && options.comparison > 0; + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + "_one", isFuture);else + result = tokenValue.other(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + "_other", isFuture); + if (adverb) result = translations[adverb[0].toLowerCase()] + " " + result; + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "po " + result;else + return "prieš " + 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 'm'. MMMM d 'd'., EEEE", + long: "y 'm'. MMMM d 'd'.", + medium: "y-MM-dd", + short: "y-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" + }) +}; +//#endregion +//#region dist/date-fns/locale/lt/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' 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/lt/_lib/localize.js +var eraValues = { + narrow: ["pr. Kr.", "po Kr."], + abbreviated: ["pr. Kr.", "po Kr."], + wide: ["prieš Kristų", "po Kristaus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "I ketv.", + "II ketv.", + "III ketv.", + "IV ketv."], + + wide: [ + "I ketvirtis", + "II ketvirtis", + "III ketvirtis", + "IV ketvirtis"] + +}; +var formattingQuarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "I k.", + "II k.", + "III k.", + "IV k."], + + wide: [ + "I ketvirtis", + "II ketvirtis", + "III ketvirtis", + "IV ketvirtis"] + +}; +var monthValues = { + narrow: [ + "S", + "V", + "K", + "B", + "G", + "B", + "L", + "R", + "R", + "S", + "L", + "G"], + + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod."], + + wide: [ + "sausis", + "vasaris", + "kovas", + "balandis", + "gegužė", + "birželis", + "liepa", + "rugpjūtis", + "rugsėjis", + "spalis", + "lapkritis", + "gruodis"] + +}; +var formattingMonthValues = { + narrow: [ + "S", + "V", + "K", + "B", + "G", + "B", + "L", + "R", + "R", + "S", + "L", + "G"], + + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod."], + + wide: [ + "sausio", + "vasario", + "kovo", + "balandžio", + "gegužės", + "birželio", + "liepos", + "rugpjūčio", + "rugsėjo", + "spalio", + "lapkričio", + "gruodžio"] + +}; +var dayValues = { + narrow: [ + "S", + "P", + "A", + "T", + "K", + "P", + "Š"], + + short: [ + "Sk", + "Pr", + "An", + "Tr", + "Kt", + "Pn", + "Št"], + + abbreviated: [ + "sk", + "pr", + "an", + "tr", + "kt", + "pn", + "št"], + + wide: [ + "sekmadienis", + "pirmadienis", + "antradienis", + "trečiadienis", + "ketvirtadienis", + "penktadienis", + "šeštadienis"] + +}; +var formattingDayValues = { + narrow: [ + "S", + "P", + "A", + "T", + "K", + "P", + "Š"], + + short: [ + "Sk", + "Pr", + "An", + "Tr", + "Kt", + "Pn", + "Št"], + + abbreviated: [ + "sk", + "pr", + "an", + "tr", + "kt", + "pn", + "št"], + + wide: [ + "sekmadienį", + "pirmadienį", + "antradienį", + "trečiadienį", + "ketvirtadienį", + "penktadienį", + "šeštadienį"] + +}; +var dayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis" + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis" + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis" + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis" + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "-oji"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "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", + 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/lt.js +/** +* @category Locales +* @summary Lithuanian locale. +* @language Lithuanian +* @iso-639-2 lit +* @author Pavlo Shpak [@pshpak](https://github.com/pshpak) +* @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) +*/ +var lt = { + code: "lt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-oji)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, + abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, + wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + wide: [/prieš/i, /(po|mūsų)/i], + any: [/^pr/i, /^(po|m)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^([1234])/i, + abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, + wide: /^(I|II|III|IV)\s?ketvirtis/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i], + + any: [ + /I$/i, + /II$/i, + /III/i, + /IV/i] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[svkbglr]/i, + abbreviated: /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, + wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^v/i, + /^k/i, + /^b/i, + /^g/i, + /^b/i, + /^l/i, + /^r/i, + /^r/i, + /^s/i, + /^l/i, + /^g/i], + + any: [ + /^saus/i, + /^vas/i, + /^kov/i, + /^bal/i, + /^geg/i, + /^birž/i, + /^liep/i, + /^rugp/i, + /^rugs/i, + /^spal/i, + /^lapkr/i, + /^gruod/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[spatkš]/i, + short: /^(sk|pr|an|tr|kt|pn|št)/i, + abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i, + wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^p/i, + /^a/i, + /^t/i, + /^k/i, + /^p/i, + /^š/i], + + wide: [ + /^se/i, + /^pi/i, + /^an/i, + /^tr/i, + /^ke/i, + /^pe/i, + /^še/i], + + any: [ + /^sk/i, + /^pr/i, + /^an/i, + /^tr/i, + /^kt/i, + /^pn/i, + /^št/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, + any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i + }, + defaultMatchWidth: "any", + parsePatterns: { + narrow: { + am: /^pr/i, + pm: /^pop./i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i + }, + any: { + am: /^pr/i, + pm: /^popiet$/i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i + } + }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/lt/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), {}, { + lt: lt }) }); + + +//#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/lt/cdn.min.js b/node_modules/date-fns/locale/lt/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..2d99b24e561f96a4c52d02636d1c3b516599ea94 --- /dev/null +++ b/node_modules/date-fns/locale/lt/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;n10&&e<20}function d(e){return o[e].split(`_`)}var f={lessThanXSeconds:{one:s,other:l},xSeconds:{one:s,other:l},halfAMinute:`pusė minutės`,lessThanXMinutes:{one:c,other:l},xMinutes:{one:c,other:l},aboutXHours:{one:c,other:l},xHours:{one:c,other:l},xDays:{one:c,other:l},aboutXWeeks:{one:c,other:l},xWeeks:{one:c,other:l},aboutXMonths:{one:c,other:l},xMonths:{one:c,other:l},aboutXYears:{one:c,other:l},xYears:{one:c,other:l},overXYears:{one:c,other:l},almostXYears:{one:c,other:l}},p=function(e,t,n){var r=e.match(/about|over|almost|lessthan/i),i=r?e.replace(r[0],``):e,a=n?.comparison!==void 0&&n.comparison>0,s,c=f[e];return s=typeof c==`string`?c:t===1?c.one(t,n?.addSuffix===!0,i.toLowerCase()+`_one`,a):c.other(t,n?.addSuffix===!0,i.toLowerCase()+`_other`,a),r&&(s=o[r[0].toLowerCase()]+` `+s),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`po `+s:`prieš `+s:s};function m(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 h={date:m({formats:{full:`y 'm'. MMMM d 'd'., EEEE`,long:`y 'm'. MMMM d 'd'.`,medium:`y-MM-dd`,short:`y-MM-dd`},defaultWidth:`full`}),time:m({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:m({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},g={lastWeek:`'Praėjusį' eeee p`,yesterday:`'Vakar' p`,today:`'Šiandien' p`,tomorrow:`'Rytoj' p`,nextWeek:`eeee p`,other:`P`},_=function(e,t,n,r){return g[e]};function v(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 y={ordinalNumber:function(e,t){return Number(e)+`-oji`},era:v({values:{narrow:[`pr. Kr.`,`po Kr.`],abbreviated:[`pr. Kr.`,`po Kr.`],wide:[`prieš Kristų`,`po Kristaus`]},defaultWidth:`wide`}),quarter:v({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I ketv.`,`II ketv.`,`III ketv.`,`IV ketv.`],wide:[`I ketvirtis`,`II ketvirtis`,`III ketvirtis`,`IV ketvirtis`]},defaultWidth:`wide`,formattingValues:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I k.`,`II k.`,`III k.`,`IV k.`],wide:[`I ketvirtis`,`II ketvirtis`,`III ketvirtis`,`IV ketvirtis`]},defaultFormattingWidth:`wide`,argumentCallback:function(e){return e-1}}),month:v({values:{narrow:[`S`,`V`,`K`,`B`,`G`,`B`,`L`,`R`,`R`,`S`,`L`,`G`],abbreviated:[`saus.`,`vas.`,`kov.`,`bal.`,`geg.`,`birž.`,`liep.`,`rugp.`,`rugs.`,`spal.`,`lapkr.`,`gruod.`],wide:[`sausis`,`vasaris`,`kovas`,`balandis`,`gegužė`,`birželis`,`liepa`,`rugpjūtis`,`rugsėjis`,`spalis`,`lapkritis`,`gruodis`]},defaultWidth:`wide`,formattingValues:{narrow:[`S`,`V`,`K`,`B`,`G`,`B`,`L`,`R`,`R`,`S`,`L`,`G`],abbreviated:[`saus.`,`vas.`,`kov.`,`bal.`,`geg.`,`birž.`,`liep.`,`rugp.`,`rugs.`,`spal.`,`lapkr.`,`gruod.`],wide:[`sausio`,`vasario`,`kovo`,`balandžio`,`gegužės`,`birželio`,`liepos`,`rugpjūčio`,`rugsėjo`,`spalio`,`lapkričio`,`gruodžio`]},defaultFormattingWidth:`wide`}),day:v({values:{narrow:[`S`,`P`,`A`,`T`,`K`,`P`,`Š`],short:[`Sk`,`Pr`,`An`,`Tr`,`Kt`,`Pn`,`Št`],abbreviated:[`sk`,`pr`,`an`,`tr`,`kt`,`pn`,`št`],wide:[`sekmadienis`,`pirmadienis`,`antradienis`,`trečiadienis`,`ketvirtadienis`,`penktadienis`,`šeštadienis`]},defaultWidth:`wide`,formattingValues:{narrow:[`S`,`P`,`A`,`T`,`K`,`P`,`Š`],short:[`Sk`,`Pr`,`An`,`Tr`,`Kt`,`Pn`,`Št`],abbreviated:[`sk`,`pr`,`an`,`tr`,`kt`,`pn`,`št`],wide:[`sekmadienį`,`pirmadienį`,`antradienį`,`trečiadienį`,`ketvirtadienį`,`penktadienį`,`šeštadienį`]},defaultFormattingWidth:`wide`}),dayPeriod:v({values:{narrow:{am:`pr. p.`,pm:`pop.`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`},abbreviated:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`},wide:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`pr. p.`,pm:`pop.`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`},abbreviated:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`},wide:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`}},defaultFormattingWidth:`wide`})};function b(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(s,function(e){return e.test(o)}):x(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 x(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function S(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 w={code:`lt`,formatDistance:p,formatLong:h,formatRelative:_,localize:y,match:{ordinalNumber:C({matchPattern:/^(\d+)(-oji)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:b({matchPatterns:{narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},defaultParseWidth:`any`}),quarter:b({matchPatterns:{narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:b({matchPatterns:{narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},defaultParseWidth:`any`}),day:b({matchPatterns:{narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},defaultParseWidth:`any`}),dayPeriod:b({matchPatterns:{narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{lt:w})}),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/lv.cjs b/node_modules/date-fns/locale/lv.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ea0e0c37c29f57fce155e57a9fde67d6b1fe338c --- /dev/null +++ b/node_modules/date-fns/locale/lv.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.lv = void 0; +var _index = require("./lv/_lib/formatDistance.cjs"); +var _index2 = require("./lv/_lib/formatLong.cjs"); +var _index3 = require("./lv/_lib/formatRelative.cjs"); +var _index4 = require("./lv/_lib/localize.cjs"); +var _index5 = require("./lv/_lib/match.cjs"); + +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +const lv = (exports.lv = { + code: "lv", + 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/lv.d.cts b/node_modules/date-fns/locale/lv.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..44da34fc0e321c582594b879df39cea57f86541b --- /dev/null +++ b/node_modules/date-fns/locale/lv.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +export declare const lv: Locale; diff --git a/node_modules/date-fns/locale/lv.d.ts b/node_modules/date-fns/locale/lv.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..44da34fc0e321c582594b879df39cea57f86541b --- /dev/null +++ b/node_modules/date-fns/locale/lv.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +export declare const lv: Locale; diff --git a/node_modules/date-fns/locale/lv.js b/node_modules/date-fns/locale/lv.js new file mode 100644 index 0000000000000000000000000000000000000000..755f71d12ac5d6dc02d80df3969c4579938f6d48 --- /dev/null +++ b/node_modules/date-fns/locale/lv.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./lv/_lib/formatDistance.js"; +import { formatLong } from "./lv/_lib/formatLong.js"; +import { formatRelative } from "./lv/_lib/formatRelative.js"; +import { localize } from "./lv/_lib/localize.js"; +import { match } from "./lv/_lib/match.js"; + +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +export const lv = { + code: "lv", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default lv; diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance.cjs b/node_modules/date-fns/locale/lv/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f46dd65030bcb316917f56ff6a6dbee35b006db9 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.formatDistance = void 0; + +function buildLocalizeTokenFn(schema) { + return (count, options) => { + if (count === 1) { + if (options?.addSuffix) { + return schema.one[0].replace("{{time}}", schema.one[2]); + } else { + return schema.one[0].replace("{{time}}", schema.one[1]); + } + } else { + const rem = count % 10 === 1 && count % 100 !== 11; + if (options?.addSuffix) { + return schema.other[0] + .replace("{{time}}", rem ? schema.other[3] : schema.other[4]) + .replace("{{count}}", String(count)); + } else { + return schema.other[0] + .replace("{{time}}", rem ? schema.other[1] : schema.other[2]) + .replace("{{count}}", String(count)); + } + } + }; +} + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + one: ["mazāk par {{time}}", "sekundi", "sekundi"], + other: [ + "mazāk nekā {{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm", + ], + }), + + xSeconds: buildLocalizeTokenFn({ + one: ["1 {{time}}", "sekunde", "sekundes"], + other: [ + "{{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm", + ], + }), + + halfAMinute: (_count, options) => { + if (options?.addSuffix) { + return "pusminūtes"; + } else { + return "pusminūte"; + } + }, + + lessThanXMinutes: buildLocalizeTokenFn({ + one: ["mazāk par {{time}}", "minūti", "minūti"], + other: [ + "mazāk nekā {{count}} {{time}}", + "minūte", + "minūtes", + "minūtes", + "minūtēm", + ], + }), + + xMinutes: buildLocalizeTokenFn({ + one: ["1 {{time}}", "minūte", "minūtes"], + other: ["{{count}} {{time}}", "minūte", "minūtes", "minūtes", "minūtēm"], + }), + + aboutXHours: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "stunda", "stundas"], + other: [ + "apmēram {{count}} {{time}}", + "stunda", + "stundas", + "stundas", + "stundām", + ], + }), + + xHours: buildLocalizeTokenFn({ + one: ["1 {{time}}", "stunda", "stundas"], + other: ["{{count}} {{time}}", "stunda", "stundas", "stundas", "stundām"], + }), + + xDays: buildLocalizeTokenFn({ + one: ["1 {{time}}", "diena", "dienas"], + other: ["{{count}} {{time}}", "diena", "dienas", "dienas", "dienām"], + }), + + aboutXWeeks: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "nedēļa", "nedēļas"], + other: [ + "apmēram {{count}} {{time}}", + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām", + ], + }), + + xWeeks: buildLocalizeTokenFn({ + one: ["1 {{time}}", "nedēļa", "nedēļas"], + other: [ + "{{count}} {{time}}", // TODO + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām", + ], + }), + + aboutXMonths: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "mēnesis", "mēneša"], + other: [ + "apmēram {{count}} {{time}}", + "mēnesis", + "mēneši", + "mēneša", + "mēnešiem", + ], + }), + + xMonths: buildLocalizeTokenFn({ + one: ["1 {{time}}", "mēnesis", "mēneša"], + other: ["{{count}} {{time}}", "mēnesis", "mēneši", "mēneša", "mēnešiem"], + }), + + aboutXYears: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "gads", "gada"], + other: ["apmēram {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + xYears: buildLocalizeTokenFn({ + one: ["1 {{time}}", "gads", "gada"], + other: ["{{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + overXYears: buildLocalizeTokenFn({ + one: ["ilgāk par 1 {{time}}", "gadu", "gadu"], + other: ["vairāk nekā {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + almostXYears: buildLocalizeTokenFn({ + one: ["gandrīz 1 {{time}}", "gads", "gada"], + other: ["vairāk nekā {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), +}; + +const formatDistance = (token, count, options) => { + const result = formatDistanceLocale[token](count, options); + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "pēc " + result; + } else { + return "pirms " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/lv/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/lv/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/formatDistance.js b/node_modules/date-fns/locale/lv/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..dcef1174ffa856a35e49dcbf41c7e77809d63cc7 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance.js @@ -0,0 +1,163 @@ +function buildLocalizeTokenFn(schema) { + return (count, options) => { + if (count === 1) { + if (options?.addSuffix) { + return schema.one[0].replace("{{time}}", schema.one[2]); + } else { + return schema.one[0].replace("{{time}}", schema.one[1]); + } + } else { + const rem = count % 10 === 1 && count % 100 !== 11; + if (options?.addSuffix) { + return schema.other[0] + .replace("{{time}}", rem ? schema.other[3] : schema.other[4]) + .replace("{{count}}", String(count)); + } else { + return schema.other[0] + .replace("{{time}}", rem ? schema.other[1] : schema.other[2]) + .replace("{{count}}", String(count)); + } + } + }; +} + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + one: ["mazāk par {{time}}", "sekundi", "sekundi"], + other: [ + "mazāk nekā {{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm", + ], + }), + + xSeconds: buildLocalizeTokenFn({ + one: ["1 {{time}}", "sekunde", "sekundes"], + other: [ + "{{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm", + ], + }), + + halfAMinute: (_count, options) => { + if (options?.addSuffix) { + return "pusminūtes"; + } else { + return "pusminūte"; + } + }, + + lessThanXMinutes: buildLocalizeTokenFn({ + one: ["mazāk par {{time}}", "minūti", "minūti"], + other: [ + "mazāk nekā {{count}} {{time}}", + "minūte", + "minūtes", + "minūtes", + "minūtēm", + ], + }), + + xMinutes: buildLocalizeTokenFn({ + one: ["1 {{time}}", "minūte", "minūtes"], + other: ["{{count}} {{time}}", "minūte", "minūtes", "minūtes", "minūtēm"], + }), + + aboutXHours: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "stunda", "stundas"], + other: [ + "apmēram {{count}} {{time}}", + "stunda", + "stundas", + "stundas", + "stundām", + ], + }), + + xHours: buildLocalizeTokenFn({ + one: ["1 {{time}}", "stunda", "stundas"], + other: ["{{count}} {{time}}", "stunda", "stundas", "stundas", "stundām"], + }), + + xDays: buildLocalizeTokenFn({ + one: ["1 {{time}}", "diena", "dienas"], + other: ["{{count}} {{time}}", "diena", "dienas", "dienas", "dienām"], + }), + + aboutXWeeks: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "nedēļa", "nedēļas"], + other: [ + "apmēram {{count}} {{time}}", + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām", + ], + }), + + xWeeks: buildLocalizeTokenFn({ + one: ["1 {{time}}", "nedēļa", "nedēļas"], + other: [ + "{{count}} {{time}}", // TODO + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām", + ], + }), + + aboutXMonths: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "mēnesis", "mēneša"], + other: [ + "apmēram {{count}} {{time}}", + "mēnesis", + "mēneši", + "mēneša", + "mēnešiem", + ], + }), + + xMonths: buildLocalizeTokenFn({ + one: ["1 {{time}}", "mēnesis", "mēneša"], + other: ["{{count}} {{time}}", "mēnesis", "mēneši", "mēneša", "mēnešiem"], + }), + + aboutXYears: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "gads", "gada"], + other: ["apmēram {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + xYears: buildLocalizeTokenFn({ + one: ["1 {{time}}", "gads", "gada"], + other: ["{{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + overXYears: buildLocalizeTokenFn({ + one: ["ilgāk par 1 {{time}}", "gadu", "gadu"], + other: ["vairāk nekā {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + almostXYears: buildLocalizeTokenFn({ + one: ["gandrīz 1 {{time}}", "gads", "gada"], + other: ["vairāk nekā {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), +}; + +export const formatDistance = (token, count, options) => { + const result = formatDistanceLocale[token](count, options); + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "pēc " + result; + } else { + return "pirms " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/lv/_lib/formatLong.cjs b/node_modules/date-fns/locale/lv/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9a455239fcaa2de4002feba64ba52e231d102893 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, y. 'gada' d. MMMM", + long: "y. 'gada' d. MMMM", + medium: "dd.MM.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}} 'plkst.' {{time}}", + long: "{{date}} 'plkst.' {{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/lv/_lib/formatLong.d.cts b/node_modules/date-fns/locale/lv/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/formatLong.d.ts b/node_modules/date-fns/locale/lv/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/formatLong.js b/node_modules/date-fns/locale/lv/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..faa215941c8e22b6f476a5d6b6ce9b2bd314e90e --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, y. 'gada' d. MMMM", + long: "y. 'gada' d. MMMM", + medium: "dd.MM.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}} 'plkst.' {{time}}", + long: "{{date}} 'plkst.' {{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/lv/_lib/formatRelative.cjs b/node_modules/date-fns/locale/lv/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..8841fac06bd10e2c7e50617bae803015d35deba1 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative.cjs @@ -0,0 +1,47 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const weekdays = [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā", +]; + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + const weekday = weekdays[date.getDay()]; + return "'Pagājušā " + weekday + " plkst.' p"; + }, + yesterday: "'Vakar plkst.' p", + today: "'Šodien plkst.' p", + tomorrow: "'Rīt plkst.' p", + nextWeek: (date, baseDate, options) => { + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + const weekday = weekdays[date.getDay()]; + return "'Nākamajā " + weekday + " plkst.' p"; + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/lv/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/lv/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/lv/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/formatRelative.js b/node_modules/date-fns/locale/lv/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..78fe5ec61ba942faa9303dcfe84269f67124be9f --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative.js @@ -0,0 +1,44 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const weekdays = [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā", +]; + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + if (isSameWeek(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + const weekday = weekdays[date.getDay()]; + return "'Pagājušā " + weekday + " plkst.' p"; + }, + yesterday: "'Vakar plkst.' p", + today: "'Šodien plkst.' p", + tomorrow: "'Rīt plkst.' p", + nextWeek: (date, baseDate, options) => { + if (isSameWeek(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + const weekday = weekdays[date.getDay()]; + return "'Nākamajā " + weekday + " plkst.' p"; + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/lv/_lib/localize.cjs b/node_modules/date-fns/locale/lv/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c0abeaf3444035b2f1c8118a8161e28eaf835bc3 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/localize.cjs @@ -0,0 +1,254 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["p.m.ē", "m.ē"], + abbreviated: ["p. m. ē.", "m. ē."], + wide: ["pirms mūsu ēras", "mūsu ērā"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. cet.", "2. cet.", "3. cet.", "4. cet."], + wide: [ + "pirmais ceturksnis", + "otrais ceturksnis", + "trešais ceturksnis", + "ceturtais ceturksnis", + ], +}; + +const formattingQuarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. cet.", "2. cet.", "3. cet.", "4. cet."], + wide: [ + "pirmajā ceturksnī", + "otrajā ceturksnī", + "trešajā ceturksnī", + "ceturtajā ceturksnī", + ], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "febr.", + "marts", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "janvāris", + "februāris", + "marts", + "aprīlis", + "maijs", + "jūnijs", + "jūlijs", + "augusts", + "septembris", + "oktobris", + "novembris", + "decembris", + ], +}; + +const formattingMonthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "febr.", + "martā", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "janvārī", + "februārī", + "martā", + "aprīlī", + "maijā", + "jūnijā", + "jūlijā", + "augustā", + "septembrī", + "oktobrī", + "novembrī", + "decembrī", + ], +}; + +const dayValues = { + narrow: ["S", "P", "O", "T", "C", "P", "S"], + short: ["Sv", "P", "O", "T", "C", "Pk", "S"], + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd.", + ], + + wide: [ + "svētdiena", + "pirmdiena", + "otrdiena", + "trešdiena", + "ceturtdiena", + "piektdiena", + "sestdiena", + ], +}; + +const formattingDayValues = { + narrow: ["S", "P", "O", "T", "C", "P", "S"], + short: ["Sv", "P", "O", "T", "C", "Pk", "S"], + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd.", + ], + + wide: [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "diena", + evening: "vakars", + night: "nakts", + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "pēcpusd.", + evening: "vakars", + night: "nakts", + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnakts", + noon: "pusdienlaiks", + morning: "rīts", + afternoon: "pēcpusdiena", + evening: "vakars", + night: "nakts", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "dienā", + evening: "vakarā", + night: "naktī", + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "pēcpusd.", + evening: "vakarā", + night: "naktī", + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnaktī", + noon: "pusdienlaikā", + morning: "rītā", + afternoon: "pēcpusdienā", + evening: "vakarā", + night: "naktī", + }, +}; + +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", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "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", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/lv/_lib/localize.d.cts b/node_modules/date-fns/locale/lv/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/localize.d.ts b/node_modules/date-fns/locale/lv/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/localize.js b/node_modules/date-fns/locale/lv/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..3ace4d6af7f539da9759c7596bd235914d166b14 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/localize.js @@ -0,0 +1,252 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["p.m.ē", "m.ē"], + abbreviated: ["p. m. ē.", "m. ē."], + wide: ["pirms mūsu ēras", "mūsu ērā"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. cet.", "2. cet.", "3. cet.", "4. cet."], + wide: [ + "pirmais ceturksnis", + "otrais ceturksnis", + "trešais ceturksnis", + "ceturtais ceturksnis", + ], +}; + +const formattingQuarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. cet.", "2. cet.", "3. cet.", "4. cet."], + wide: [ + "pirmajā ceturksnī", + "otrajā ceturksnī", + "trešajā ceturksnī", + "ceturtajā ceturksnī", + ], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "febr.", + "marts", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "janvāris", + "februāris", + "marts", + "aprīlis", + "maijs", + "jūnijs", + "jūlijs", + "augusts", + "septembris", + "oktobris", + "novembris", + "decembris", + ], +}; + +const formattingMonthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "febr.", + "martā", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "janvārī", + "februārī", + "martā", + "aprīlī", + "maijā", + "jūnijā", + "jūlijā", + "augustā", + "septembrī", + "oktobrī", + "novembrī", + "decembrī", + ], +}; + +const dayValues = { + narrow: ["S", "P", "O", "T", "C", "P", "S"], + short: ["Sv", "P", "O", "T", "C", "Pk", "S"], + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd.", + ], + + wide: [ + "svētdiena", + "pirmdiena", + "otrdiena", + "trešdiena", + "ceturtdiena", + "piektdiena", + "sestdiena", + ], +}; + +const formattingDayValues = { + narrow: ["S", "P", "O", "T", "C", "P", "S"], + short: ["Sv", "P", "O", "T", "C", "Pk", "S"], + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd.", + ], + + wide: [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "diena", + evening: "vakars", + night: "nakts", + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "pēcpusd.", + evening: "vakars", + night: "nakts", + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnakts", + noon: "pusdienlaiks", + morning: "rīts", + afternoon: "pēcpusdiena", + evening: "vakars", + night: "nakts", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "dienā", + evening: "vakarā", + night: "naktī", + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "pēcpusd.", + evening: "vakarā", + night: "naktī", + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnaktī", + noon: "pusdienlaikā", + morning: "rītā", + afternoon: "pēcpusdienā", + evening: "vakarā", + night: "naktī", + }, +}; + +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", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "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", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/lv/_lib/match.cjs b/node_modules/date-fns/locale/lv/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..769669e41d1b3fa5976e73c43006c30132cafb22 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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: /^(p\.m\.ē|m\.ē)/i, + abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, + wide: /^(pirms mūsu ēras|mūsu ērā)/i, +}; +const parseEraPatterns = { + any: [/^p/i, /^m/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](\. cet\.)/i, + wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i, +}; +const parseQuarterPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i], + abbreviated: [/^1/i, /^2/i, /^3/i, /^4/i], + wide: [/^p/i, /^o/i, /^t/i, /^c/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, + wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/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, + /^mai/i, + /^jūn/i, + /^jūl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[spotc]/i, + short: /^(sv|pi|o|t|c|pk|s)/i, + abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, + wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^o/i, /^t/i, /^c/i, /^p/i, /^s/i], + any: [/^sv/i, /^pi/i, /^o/i, /^t/i, /^c/i, /^p/i, /^se/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, + abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, + wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^pusn/i, + noon: /^pusd/i, + morning: /^r/i, + afternoon: /^(d|pēc)/i, + evening: /^v/i, + night: /^n/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: "wide", + 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/lv/_lib/match.d.cts b/node_modules/date-fns/locale/lv/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/match.d.ts b/node_modules/date-fns/locale/lv/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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/lv/_lib/match.js b/node_modules/date-fns/locale/lv/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..76918fe777eaedcc5658b416af583bda89d6400e --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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: /^(p\.m\.ē|m\.ē)/i, + abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, + wide: /^(pirms mūsu ēras|mūsu ērā)/i, +}; +const parseEraPatterns = { + any: [/^p/i, /^m/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](\. cet\.)/i, + wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i, +}; +const parseQuarterPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i], + abbreviated: [/^1/i, /^2/i, /^3/i, /^4/i], + wide: [/^p/i, /^o/i, /^t/i, /^c/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, + wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/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, + /^mai/i, + /^jūn/i, + /^jūl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[spotc]/i, + short: /^(sv|pi|o|t|c|pk|s)/i, + abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, + wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^o/i, /^t/i, /^c/i, /^p/i, /^s/i], + any: [/^sv/i, /^pi/i, /^o/i, /^t/i, /^c/i, /^p/i, /^se/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, + abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, + wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^pusn/i, + noon: /^pusd/i, + morning: /^r/i, + afternoon: /^(d|pēc)/i, + evening: /^v/i, + night: /^n/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: "wide", + 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/lv/cdn.js b/node_modules/date-fns/locale/lv/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..645c60386904839c444b7e12ea50e16eb2a9a72e --- /dev/null +++ b/node_modules/date-fns/locale/lv/cdn.js @@ -0,0 +1,1069 @@ +(() => { +var _window$dateFns;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);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}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);} //#region dist/date-fns/locale/lv/_lib/formatDistance.js +function buildLocalizeTokenFn(schema) { + return function (count, options) { + if (count === 1) {if (options !== null && options !== void 0 && options.addSuffix) return schema.one[0].replace("{{time}}", schema.one[2]);else + return schema.one[0].replace("{{time}}", schema.one[1]);} else + { + var rem = count % 10 === 1 && count % 100 !== 11; + if (options !== null && options !== void 0 && options.addSuffix) return schema.other[0].replace("{{time}}", rem ? schema.other[3] : schema.other[4]).replace("{{count}}", String(count));else + return schema.other[0].replace("{{time}}", rem ? schema.other[1] : schema.other[2]).replace("{{count}}", String(count)); + } + }; +} +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + one: [ + "mazāk par {{time}}", + "sekundi", + "sekundi"], + + other: [ + "mazāk nekā {{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm"] + + }), + xSeconds: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "sekunde", + "sekundes"], + + other: [ + "{{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm"] + + }), + halfAMinute: function halfAMinute(_count, options) { + if (options !== null && options !== void 0 && options.addSuffix) return "pusminūtes";else + return "pusminūte"; + }, + lessThanXMinutes: buildLocalizeTokenFn({ + one: [ + "mazāk par {{time}}", + "minūti", + "minūti"], + + other: [ + "mazāk nekā {{count}} {{time}}", + "minūte", + "minūtes", + "minūtes", + "minūtēm"] + + }), + xMinutes: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "minūte", + "minūtes"], + + other: [ + "{{count}} {{time}}", + "minūte", + "minūtes", + "minūtes", + "minūtēm"] + + }), + aboutXHours: buildLocalizeTokenFn({ + one: [ + "apmēram 1 {{time}}", + "stunda", + "stundas"], + + other: [ + "apmēram {{count}} {{time}}", + "stunda", + "stundas", + "stundas", + "stundām"] + + }), + xHours: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "stunda", + "stundas"], + + other: [ + "{{count}} {{time}}", + "stunda", + "stundas", + "stundas", + "stundām"] + + }), + xDays: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "diena", + "dienas"], + + other: [ + "{{count}} {{time}}", + "diena", + "dienas", + "dienas", + "dienām"] + + }), + aboutXWeeks: buildLocalizeTokenFn({ + one: [ + "apmēram 1 {{time}}", + "nedēļa", + "nedēļas"], + + other: [ + "apmēram {{count}} {{time}}", + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām"] + + }), + xWeeks: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "nedēļa", + "nedēļas"], + + other: [ + "{{count}} {{time}}", + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām"] + + }), + aboutXMonths: buildLocalizeTokenFn({ + one: [ + "apmēram 1 {{time}}", + "mēnesis", + "mēneša"], + + other: [ + "apmēram {{count}} {{time}}", + "mēnesis", + "mēneši", + "mēneša", + "mēnešiem"] + + }), + xMonths: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "mēnesis", + "mēneša"], + + other: [ + "{{count}} {{time}}", + "mēnesis", + "mēneši", + "mēneša", + "mēnešiem"] + + }), + aboutXYears: buildLocalizeTokenFn({ + one: [ + "apmēram 1 {{time}}", + "gads", + "gada"], + + other: [ + "apmēram {{count}} {{time}}", + "gads", + "gadi", + "gada", + "gadiem"] + + }), + xYears: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "gads", + "gada"], + + other: [ + "{{count}} {{time}}", + "gads", + "gadi", + "gada", + "gadiem"] + + }), + overXYears: buildLocalizeTokenFn({ + one: [ + "ilgāk par 1 {{time}}", + "gadu", + "gadu"], + + other: [ + "vairāk nekā {{count}} {{time}}", + "gads", + "gadi", + "gada", + "gadiem"] + + }), + almostXYears: buildLocalizeTokenFn({ + one: [ + "gandrīz 1 {{time}}", + "gads", + "gada"], + + other: [ + "vairāk nekā {{count}} {{time}}", + "gads", + "gadi", + "gada", + "gadiem"] + + }) +}; +var formatDistance = function formatDistance(token, count, options) { + var result = formatDistanceLocale[token](count, options); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "pēc " + result;else + return "pirms " + 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. 'gada' d. MMMM", + long: "y. 'gada' d. MMMM", + medium: "dd.MM.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}} 'plkst.' {{time}}", + long: "{{date}} 'plkst.' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/lv/_lib/formatRelative.js +var weekdays = [ +"svētdienā", +"pirmdienā", +"otrdienā", +"trešdienā", +"ceturtdienā", +"piektdienā", +"sestdienā"]; + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + if (isSameWeek(date, baseDate, options)) return "eeee 'plkst.' p"; + return "'Pagājušā " + weekdays[date.getDay()] + " plkst.' p"; + }, + yesterday: "'Vakar plkst.' p", + today: "'Šodien plkst.' p", + tomorrow: "'Rīt plkst.' p", + nextWeek: function nextWeek(date, baseDate, options) { + if (isSameWeek(date, baseDate, options)) return "eeee 'plkst.' p"; + return "'Nākamajā " + weekdays[date.getDay()] + " plkst.' p"; + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + 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/lv/_lib/localize.js +var eraValues = { + narrow: ["p.m.ē", "m.ē"], + abbreviated: ["p. m. ē.", "m. ē."], + wide: ["pirms mūsu ēras", "mūsu ērā"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1. cet.", + "2. cet.", + "3. cet.", + "4. cet."], + + wide: [ + "pirmais ceturksnis", + "otrais ceturksnis", + "trešais ceturksnis", + "ceturtais ceturksnis"] + +}; +var formattingQuarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1. cet.", + "2. cet.", + "3. cet.", + "4. cet."], + + wide: [ + "pirmajā ceturksnī", + "otrajā ceturksnī", + "trešajā ceturksnī", + "ceturtajā ceturksnī"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "febr.", + "marts", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec."], + + wide: [ + "janvāris", + "februāris", + "marts", + "aprīlis", + "maijs", + "jūnijs", + "jūlijs", + "augusts", + "septembris", + "oktobris", + "novembris", + "decembris"] + +}; +var formattingMonthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "febr.", + "martā", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec."], + + wide: [ + "janvārī", + "februārī", + "martā", + "aprīlī", + "maijā", + "jūnijā", + "jūlijā", + "augustā", + "septembrī", + "oktobrī", + "novembrī", + "decembrī"] + +}; +var dayValues = { + narrow: [ + "S", + "P", + "O", + "T", + "C", + "P", + "S"], + + short: [ + "Sv", + "P", + "O", + "T", + "C", + "Pk", + "S"], + + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd."], + + wide: [ + "svētdiena", + "pirmdiena", + "otrdiena", + "trešdiena", + "ceturtdiena", + "piektdiena", + "sestdiena"] + +}; +var formattingDayValues = { + narrow: [ + "S", + "P", + "O", + "T", + "C", + "P", + "S"], + + short: [ + "Sv", + "P", + "O", + "T", + "C", + "Pk", + "S"], + + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd."], + + wide: [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā"] + +}; +var dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "diena", + evening: "vakars", + night: "nakts" + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "pēcpusd.", + evening: "vakars", + night: "nakts" + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnakts", + noon: "pusdienlaiks", + morning: "rīts", + afternoon: "pēcpusdiena", + evening: "vakars", + night: "nakts" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "dienā", + evening: "vakarā", + night: "naktī" + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "pēcpusd.", + evening: "vakarā", + night: "naktī" + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnaktī", + noon: "pusdienlaikā", + morning: "rītā", + afternoon: "pēcpusdienā", + evening: "vakarā", + night: "naktī" + } +}; +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", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "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", + 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/lv.js +/** +* @category Locales +* @summary Latvian locale (Latvia). +* @language Latvian +* @iso-639-2 lav +* @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) +*/ +var lv = { + code: "lv", + 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: /^(p\.m\.ē|m\.ē)/i, + abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, + wide: /^(pirms mūsu ēras|mūsu ērā)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^p/i, /^m/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234](\. cet\.)/i, + wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i], + + abbreviated: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i], + + wide: [ + /^p/i, + /^o/i, + /^t/i, + /^c/i] + + }, + defaultParseWidth: "wide", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, + wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/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, + /^mai/i, + /^jūn/i, + /^jūl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[spotc]/i, + short: /^(sv|pi|o|t|c|pk|s)/i, + abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, + wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^p/i, + /^o/i, + /^t/i, + /^c/i, + /^p/i, + /^s/i], + + any: [ + /^sv/i, + /^pi/i, + /^o/i, + /^t/i, + /^c/i, + /^p/i, + /^se/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, + abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, + wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^pusn/i, + noon: /^pusd/i, + morning: /^r/i, + afternoon: /^(d|pēc)/i, + evening: /^v/i, + night: /^n/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/lv/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), {}, { + lv: lv }) }); + + +//#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/lv/cdn.min.js b/node_modules/date-fns/locale/lv/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..a5fdd9585c9c8495cfb094b29f44869cf9360002 --- /dev/null +++ b/node_modules/date-fns/locale/lv/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(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 t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`pēc `+r:`pirms `+r:r};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, y. 'gada' d. MMMM`,long:`y. 'gada' d. MMMM`,medium:`dd.MM.y.`,short:`dd.MM.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}} 'plkst.' {{time}}`,long:`{{date}} 'plkst.' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},_=Symbol.for(`constructDateFrom`);function v(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function y(e){var t=[...arguments].slice(1),n=v.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var b={};function x(){return b}function S(e,t){return v(t||e,e)}function C(e,t){var n,r,i=x(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=S(e,t?.in),s=o.getDay(),c=(s1&&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)}):j(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 j(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 P={code:`lv`,formatDistance:m,formatLong:g,formatRelative:D,localize:k,match:{ordinalNumber:N({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:A({matchPatterns:{narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^m/i]},defaultParseWidth:`any`}),quarter:A({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},defaultParseWidth:`wide`,valueCallback:function(e){return e+1}}),month:A({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/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,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:A({matchPatterns:{narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},defaultParseWidth:`any`}),dayPeriod:A({matchPatterns:{narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{lv:P})}),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/mk.cjs b/node_modules/date-fns/locale/mk.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4bd0610bc6e8b0f9029d40473dcacaee0e425956 --- /dev/null +++ b/node_modules/date-fns/locale/mk.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.mk = void 0; +var _index = require("./mk/_lib/formatDistance.cjs"); +var _index2 = require("./mk/_lib/formatLong.cjs"); +var _index3 = require("./mk/_lib/formatRelative.cjs"); +var _index4 = require("./mk/_lib/localize.cjs"); +var _index5 = require("./mk/_lib/match.cjs"); + +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +const mk = (exports.mk = { + code: "mk", + 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/mk.d.cts b/node_modules/date-fns/locale/mk.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..38ec60c4016f20534e1e65434cbf8317397a9cde --- /dev/null +++ b/node_modules/date-fns/locale/mk.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +export declare const mk: Locale; diff --git a/node_modules/date-fns/locale/mk.d.ts b/node_modules/date-fns/locale/mk.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..38ec60c4016f20534e1e65434cbf8317397a9cde --- /dev/null +++ b/node_modules/date-fns/locale/mk.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +export declare const mk: Locale; diff --git a/node_modules/date-fns/locale/mk.js b/node_modules/date-fns/locale/mk.js new file mode 100644 index 0000000000000000000000000000000000000000..4c50c75e6f3c2d42345909e2dcd6040aae6bd480 --- /dev/null +++ b/node_modules/date-fns/locale/mk.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./mk/_lib/formatDistance.js"; +import { formatLong } from "./mk/_lib/formatLong.js"; +import { formatRelative } from "./mk/_lib/formatRelative.js"; +import { localize } from "./mk/_lib/localize.js"; +import { match } from "./mk/_lib/match.js"; + +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +export const mk = { + code: "mk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default mk; diff --git a/node_modules/date-fns/locale/mk/_lib/formatDistance.cjs b/node_modules/date-fns/locale/mk/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0f5233e5d050fbca0395c3bfdc1984b5a47cf890 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/mk/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/mk/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/formatDistance.js b/node_modules/date-fns/locale/mk/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..e77b6ab21ef3ea485126d4dae8ff9b9686a6dc12 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/formatLong.cjs b/node_modules/date-fns/locale/mk/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3b471108f63433d0fc47f286e2b795bebeaecb74 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"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: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "H: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/mk/_lib/formatLong.d.cts b/node_modules/date-fns/locale/mk/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/formatLong.d.ts b/node_modules/date-fns/locale/mk/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/formatLong.js b/node_modules/date-fns/locale/mk/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..ac518ae93076ed1c1fb074b93d686f2b4feb402f --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "H: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/mk/_lib/formatRelative.cjs b/node_modules/date-fns/locale/mk/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..220ea4932353c882ddeea3c781194faf79a6e502 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative.cjs @@ -0,0 +1,95 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const weekdays = [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота", +]; + +function lastWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'минатата " + weekday + " во' p"; + case 1: + case 2: + case 4: + case 5: + return "'минатиот " + weekday + " во' p"; + } +} + +function thisWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'ова " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5: + return "'овој " + weekday + " вo' p"; + } +} + +function nextWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следната " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5: + return "'следниот " + weekday + " вo' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера во' p", + today: "'денес во' p", + tomorrow: "'утре во' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/mk/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/mk/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/mk/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/formatRelative.js b/node_modules/date-fns/locale/mk/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..ce9b701864afd2e4c435cd2f7c1f883095ab9b45 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative.js @@ -0,0 +1,92 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const weekdays = [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота", +]; + +function lastWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'минатата " + weekday + " во' p"; + case 1: + case 2: + case 4: + case 5: + return "'минатиот " + weekday + " во' p"; + } +} + +function thisWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'ова " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5: + return "'овој " + weekday + " вo' p"; + } +} + +function nextWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следната " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5: + return "'следниот " + weekday + " вo' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера во' p", + today: "'денес во' p", + tomorrow: "'утре во' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/mk/_lib/localize.cjs b/node_modules/date-fns/locale/mk/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2d7cb8a577553c079dc0d186432468f41272a4a3 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/localize.cjs @@ -0,0 +1,123 @@ +"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 = { + abbreviated: [ + "јан", + "фев", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "септ", + "окт", + "ноем", + "дек", + ], + + wide: [ + "јануари", + "февруари", + "март", + "април", + "мај", + "јуни", + "јули", + "август", + "септември", + "октомври", + "ноември", + "декември", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "В", "С", "Ч", "П", "С"], + short: ["не", "по", "вт", "ср", "че", "пе", "са"], + abbreviated: ["нед", "пон", "вто", "сре", "чет", "пет", "саб"], + wide: [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота", + ], +}; + +const dayPeriodValues = { + wide: { + am: "претпладне", + pm: "попладне", + midnight: "полноќ", + noon: "напладне", + morning: "наутро", + afternoon: "попладне", + evening: "навечер", + night: "ноќе", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "-ви"; + case 2: + return number + "-ри"; + case 7: + case 8: + 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", + }), +}); diff --git a/node_modules/date-fns/locale/mk/_lib/localize.d.cts b/node_modules/date-fns/locale/mk/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/localize.d.ts b/node_modules/date-fns/locale/mk/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/localize.js b/node_modules/date-fns/locale/mk/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..98b0e09b5295cb40a54eeb3ae65df10b10e14155 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/localize.js @@ -0,0 +1,121 @@ +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 = { + abbreviated: [ + "јан", + "фев", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "септ", + "окт", + "ноем", + "дек", + ], + + wide: [ + "јануари", + "февруари", + "март", + "април", + "мај", + "јуни", + "јули", + "август", + "септември", + "октомври", + "ноември", + "декември", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "В", "С", "Ч", "П", "С"], + short: ["не", "по", "вт", "ср", "че", "пе", "са"], + abbreviated: ["нед", "пон", "вто", "сре", "чет", "пет", "саб"], + wide: [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота", + ], +}; + +const dayPeriodValues = { + wide: { + am: "претпладне", + pm: "попладне", + midnight: "полноќ", + noon: "напладне", + morning: "наутро", + afternoon: "попладне", + evening: "навечер", + night: "ноќе", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "-ви"; + case 2: + return number + "-ри"; + case 7: + case 8: + 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", + }), +}; diff --git a/node_modules/date-fns/locale/mk/_lib/match.cjs b/node_modules/date-fns/locale/mk/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..18af435a9a6dbf0ce488742ae5d455f42fd196f3 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/match.cjs @@ -0,0 +1,119 @@ +"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: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\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 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 matchMonthPatterns = { + abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, + wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i, +}; +const parseMonthPatterns = { + any: [ + /^ја/i, + /^Ф/i, + /^мар/i, + /^ап/i, + /^мај/i, + /^јун/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 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/mk/_lib/match.d.cts b/node_modules/date-fns/locale/mk/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/match.d.ts b/node_modules/date-fns/locale/mk/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_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/mk/_lib/match.js b/node_modules/date-fns/locale/mk/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..8e9200da0de4ac1c221da3f2885945a8d87efcf1 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/match.js @@ -0,0 +1,116 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-?[врмт][и])?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\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 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 matchMonthPatterns = { + abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, + wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i, +}; +const parseMonthPatterns = { + any: [ + /^ја/i, + /^Ф/i, + /^мар/i, + /^ап/i, + /^мај/i, + /^јун/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, + }, +}; + +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/mk/cdn.js b/node_modules/date-fns/locale/mk/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..dc7c4a0a6e4404a8aa052c4c0cfa927254ea15f5 --- /dev/null +++ b/node_modules/date-fns/locale/mk/cdn.js @@ -0,0 +1,738 @@ +(() => { +var _window$dateFns;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);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}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);} //#region dist/date-fns/locale/mk/_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, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd 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: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}} {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/mk/_lib/formatRelative.js +var weekdays = [ +"недела", +"понеделник", +"вторник", +"среда", +"четврток", +"петок", +"сабота"]; + +function _lastWeek(day) { + var weekday = weekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'минатата " + weekday + " во' p"; + case 1: + case 2: + case 4: + case 5:return "'минатиот " + weekday + " во' p"; + } +} +function thisWeek(day) { + var weekday = weekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'ова " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5:return "'овој " + weekday + " вo' p"; + } +} +function _nextWeek(day) { + var weekday = weekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'следната " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5:return "'следниот " + weekday + " вo' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'вчера во' p", + today: "'денес во' p", + tomorrow: "'утре во' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + 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/mk/_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 = { + abbreviated: [ + "јан", + "фев", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "септ", + "окт", + "ноем", + "дек"], + + wide: [ + "јануари", + "февруари", + "март", + "април", + "мај", + "јуни", + "јули", + "август", + "септември", + "октомври", + "ноември", + "декември"] + +}; +var dayValues = { + narrow: [ + "Н", + "П", + "В", + "С", + "Ч", + "П", + "С"], + + short: [ + "не", + "по", + "вт", + "ср", + "че", + "пе", + "са"], + + abbreviated: [ + "нед", + "пон", + "вто", + "сре", + "чет", + "пет", + "саб"], + + wide: [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота"] + +}; +var dayPeriodValues = { wide: { + am: "претпладне", + pm: "попладне", + midnight: "полноќ", + noon: "напладне", + morning: "наутро", + afternoon: "попладне", + evening: "навечер", + 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 + "-ви"; + case 2:return number + "-ри"; + case 7: + case 8: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" + }) +}; +//#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/mk.js +/** +* @category Locales +* @summary Macedonian locale. +* @language Macedonian +* @iso-639-2 mkd +* @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) +* @author Altrim Beqiri [@altrim](https://github.com/altrim) +*/ +var mk = { + code: "mk", + 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: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\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: { + abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, + wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { 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: { 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: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/mk/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), {}, { + mk: mk }) }); + + +//#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/mk/cdn.min.js b/node_modules/date-fns/locale/mk/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..c3cbd2ecd9e17e1c577869306d56848264dc6efa --- /dev/null +++ b/node_modules/date-fns/locale/mk/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(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 t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`за `+r:`пред `+r:r};function m(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 h={date:m({formats:{full:`EEEE, dd MMMM yyyy`,long:`dd MMMM yyyy`,medium:`dd MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:m({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:m({formats:{any:`{{date}} {{time}}`},defaultWidth:`any`})},g=Symbol.for(`constructDateFrom`);function _(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&g in e?e[g](t):e instanceof Date?new e.constructor(t):new Date(t)}function v(e){var t=[...arguments].slice(1),n=_.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var y={};function b(){return y}function x(e,t){return _(t||e,e)}function S(e,t){var n,r,i=b(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=x(e,t?.in),s=o.getDay(),c=(s20||r<10)switch(r%10){case 1:return n+`-ви`;case 2:return n+`-ри`;case 7:case 8:return n+`-ми`}return n+`-ти`},era:A({values:{narrow:[`пр.н.е.`,`н.е.`],abbreviated:[`пред н. е.`,`н. е.`],wide:[`пред нашата ера`,`нашата ера`]},defaultWidth:`wide`}),quarter:A({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:A({values:{abbreviated:[`јан`,`фев`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`септ`,`окт`,`ноем`,`дек`],wide:[`јануари`,`февруари`,`март`,`април`,`мај`,`јуни`,`јули`,`август`,`септември`,`октомври`,`ноември`,`декември`]},defaultWidth:`wide`}),day:A({values:{narrow:[`Н`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`не`,`по`,`вт`,`ср`,`че`,`пе`,`са`],abbreviated:[`нед`,`пон`,`вто`,`сре`,`чет`,`пет`,`саб`],wide:[`недела`,`понеделник`,`вторник`,`среда`,`четврток`,`петок`,`сабота`]},defaultWidth:`wide`}),dayPeriod:A({values:{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)?P(s,function(e){return e.test(o)}):N(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 N(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function P(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 I={code:`mk`,formatDistance:p,formatLong:h,formatRelative:k,localize:j,match:{ordinalNumber:F({matchPattern:/^(\d+)(-?[врмт][и])?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:M({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\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:{abbreviated:/^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,wide:/^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:`wide`,parsePatterns:{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:{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:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{mk:I})}),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/mn.cjs b/node_modules/date-fns/locale/mn.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b8bad40e6e527f3e74864a6b047caa31b61d65d5 --- /dev/null +++ b/node_modules/date-fns/locale/mn.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.mn = void 0; +var _index = require("./mn/_lib/formatDistance.cjs"); +var _index2 = require("./mn/_lib/formatLong.cjs"); +var _index3 = require("./mn/_lib/formatRelative.cjs"); +var _index4 = require("./mn/_lib/localize.cjs"); +var _index5 = require("./mn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +const mn = (exports.mn = { + code: "mn", + 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/mn.d.cts b/node_modules/date-fns/locale/mn.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..c7f8cec7520337cb4c8afd1dcd13e786e8219380 --- /dev/null +++ b/node_modules/date-fns/locale/mn.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +export declare const mn: Locale; diff --git a/node_modules/date-fns/locale/mn.d.ts b/node_modules/date-fns/locale/mn.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..c7f8cec7520337cb4c8afd1dcd13e786e8219380 --- /dev/null +++ b/node_modules/date-fns/locale/mn.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +export declare const mn: Locale; diff --git a/node_modules/date-fns/locale/mn.js b/node_modules/date-fns/locale/mn.js new file mode 100644 index 0000000000000000000000000000000000000000..45790fc8b8f5ba759d064beffe97cba22765064f --- /dev/null +++ b/node_modules/date-fns/locale/mn.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./mn/_lib/formatDistance.js"; +import { formatLong } from "./mn/_lib/formatLong.js"; +import { formatRelative } from "./mn/_lib/formatRelative.js"; +import { localize } from "./mn/_lib/localize.js"; +import { match } from "./mn/_lib/match.js"; + +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +export const mn = { + code: "mn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default mn; diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/mn/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..beb69540e9d7e2aec19a87b90846463638792b51 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatDistance.cjs @@ -0,0 +1,143 @@ +"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) { + /** + * Append genitive case + */ + const words = result.split(" "); + const lastword = words.pop(); + result = words.join(" "); + switch (lastword) { + case "секунд": + result += " секундийн"; + break; + case "минут": + result += " минутын"; + break; + case "цаг": + result += " цагийн"; + break; + case "өдөр": + result += " өдрийн"; + break; + case "сар": + result += " сарын"; + break; + case "жил": + result += " жилийн"; + break; + case "хоног": + result += " хоногийн"; + break; + case "гаран": + result += " гараны"; + break; + case "хүрэхгүй": + result += " хүрэхгүй хугацааны"; + break; + default: + result += lastword + "-н"; + } + + if (options.comparison && options.comparison > 0) { + return result + " дараа"; + } else { + return result + " өмнө"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/mn/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/mn/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatDistance.js b/node_modules/date-fns/locale/mn/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..f90ac736fd670e0ce8e1ef0fb753c54a90d92e2c --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatDistance.js @@ -0,0 +1,139 @@ +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) { + /** + * Append genitive case + */ + const words = result.split(" "); + const lastword = words.pop(); + result = words.join(" "); + switch (lastword) { + case "секунд": + result += " секундийн"; + break; + case "минут": + result += " минутын"; + break; + case "цаг": + result += " цагийн"; + break; + case "өдөр": + result += " өдрийн"; + break; + case "сар": + result += " сарын"; + break; + case "жил": + result += " жилийн"; + break; + case "хоног": + result += " хоногийн"; + break; + case "гаран": + result += " гараны"; + break; + case "хүрэхгүй": + result += " хүрэхгүй хугацааны"; + break; + default: + result += lastword + "-н"; + } + + if (options.comparison && options.comparison > 0) { + return result + " дараа"; + } else { + return result + " өмнө"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/mn/_lib/formatLong.cjs b/node_modules/date-fns/locale/mn/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..5efff81277ed5a51f63e92747c91e0c2b6843e86 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/mn/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/mn/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatLong.js b/node_modules/date-fns/locale/mn/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..646d333aa7dca4093d25ec83df1679e58b803a4b --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/mn/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..683fe0092faf7feba5529fd759a28d6778164464 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/mn/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/mn/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/formatRelative.js b/node_modules/date-fns/locale/mn/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..1fd8b103f657fd7708710013e1b743729853a331 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/localize.cjs b/node_modules/date-fns/locale/mn/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0270e7733eb2bbfbeb73920a8c192759e1666329 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/localize.cjs @@ -0,0 +1,198 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["НТӨ", "НТ"], + abbreviated: ["НТӨ", "НТ"], + wide: ["нийтийн тооллын өмнөх", "нийтийн тооллын"], +}; + +const quarterValues = { + narrow: ["I", "II", "III", "IV"], + abbreviated: ["I улирал", "II улирал", "III улирал", "IV улирал"], + 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: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + ], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар", + ], + + wide: [ + "Нэгдүгээр сар", + "Хоёрдугаар сар", + "Гуравдугаар сар", + "Дөрөвдүгээр сар", + "Тавдугаар сар", + "Зургаадугаар сар", + "Долоодугаар сар", + "Наймдугаар сар", + "Есдүгээр сар", + "Аравдугаар сар", + "Арваннэгдүгээр сар", + "Арван хоёрдугаар сар", + ], +}; + +const formattingMonthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + ], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар", + ], + + wide: [ + "нэгдүгээр сар", + "хоёрдугаар сар", + "гуравдугаар сар", + "дөрөвдүгээр сар", + "тавдугаар сар", + "зургаадугаар сар", + "долоодугаар сар", + "наймдугаар сар", + "есдүгээр сар", + "аравдугаар сар", + "арваннэгдүгээр сар", + "арван хоёрдугаар сар", + ], +}; + +const dayValues = { + narrow: ["Н", "Д", "М", "Л", "П", "Б", "Б"], + short: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"], + abbreviated: ["Ням", "Дав", "Мяг", "Лха", "Пүр", "Баа", "Бям"], + wide: ["Ням", "Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба"], +}; + +const formattingDayValues = { + 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 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", + 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/mn/_lib/localize.d.cts b/node_modules/date-fns/locale/mn/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/localize.d.ts b/node_modules/date-fns/locale/mn/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/localize.js b/node_modules/date-fns/locale/mn/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..61a34b1bb98e3ca2e1c7184440afc15854362873 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/localize.js @@ -0,0 +1,196 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["НТӨ", "НТ"], + abbreviated: ["НТӨ", "НТ"], + wide: ["нийтийн тооллын өмнөх", "нийтийн тооллын"], +}; + +const quarterValues = { + narrow: ["I", "II", "III", "IV"], + abbreviated: ["I улирал", "II улирал", "III улирал", "IV улирал"], + 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: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + ], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар", + ], + + wide: [ + "Нэгдүгээр сар", + "Хоёрдугаар сар", + "Гуравдугаар сар", + "Дөрөвдүгээр сар", + "Тавдугаар сар", + "Зургаадугаар сар", + "Долоодугаар сар", + "Наймдугаар сар", + "Есдүгээр сар", + "Аравдугаар сар", + "Арваннэгдүгээр сар", + "Арван хоёрдугаар сар", + ], +}; + +const formattingMonthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + ], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар", + ], + + wide: [ + "нэгдүгээр сар", + "хоёрдугаар сар", + "гуравдугаар сар", + "дөрөвдүгээр сар", + "тавдугаар сар", + "зургаадугаар сар", + "долоодугаар сар", + "наймдугаар сар", + "есдүгээр сар", + "аравдугаар сар", + "арваннэгдүгээр сар", + "арван хоёрдугаар сар", + ], +}; + +const dayValues = { + narrow: ["Н", "Д", "М", "Л", "П", "Б", "Б"], + short: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"], + abbreviated: ["Ням", "Дав", "Мяг", "Лха", "Пүр", "Баа", "Бям"], + wide: ["Ням", "Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба"], +}; + +const formattingDayValues = { + 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 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", + 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/mn/_lib/match.cjs b/node_modules/date-fns/locale/mn/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..cb0d39968116914efbb3549c3f56265da58df33b --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(нтө|нт)/i, + abbreviated: /^(нтө|нт)/i, + wide: /^(нийтийн тооллын өмнө|нийтийн тооллын)/i, +}; +const parseEraPatterns = { + any: [/^(нтө|нийтийн тооллын өмнө)/i, /^(нт|нийтийн тооллын)/i], +}; + +const matchQuarterPatterns = { + narrow: /^(iv|iii|ii|i)/i, + abbreviated: /^(iv|iii|ii|i) улирал/i, + wide: /^[1-4]-р улирал/i, +}; +const parseQuarterPatterns = { + any: [/^(i(\s|$)|1)/i, /^(ii(\s|$)|2)/i, /^(iii(\s|$)|3)/i, /^(iv(\s|$)|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, + abbreviated: + /^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, + wide: /^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i$/i, + /^ii$/i, + /^iii$/i, + /^iv$/i, + /^v$/i, + /^vi$/i, + /^vii$/i, + /^viii$/i, + /^ix$/i, + /^x$/i, + /^xi$/i, + /^xii$/i, + ], + + any: [ + /^(1|нэгдүгээр)/i, + /^(2|хоёрдугаар)/i, + /^(3|гуравдугаар)/i, + /^(4|дөрөвдүгээр)/i, + /^(5|тавдугаар)/i, + /^(6|зургаадугаар)/i, + /^(7|долоодугаар)/i, + /^(8|наймдугаар)/i, + /^(9|есдүгээр)/i, + /^(10|аравдугаар)/i, + /^(11|арван нэгдүгээр)/i, + /^(12|арван хоёрдугаар)/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: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/mn/_lib/match.d.cts b/node_modules/date-fns/locale/mn/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/match.d.ts b/node_modules/date-fns/locale/mn/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_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/mn/_lib/match.js b/node_modules/date-fns/locale/mn/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..4911cd53e5391ebea03e4af7df19bca845cc5d10 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/match.js @@ -0,0 +1,133 @@ +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: /^(iv|iii|ii|i)/i, + abbreviated: /^(iv|iii|ii|i) улирал/i, + wide: /^[1-4]-р улирал/i, +}; +const parseQuarterPatterns = { + any: [/^(i(\s|$)|1)/i, /^(ii(\s|$)|2)/i, /^(iii(\s|$)|3)/i, /^(iv(\s|$)|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, + abbreviated: + /^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, + wide: /^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i$/i, + /^ii$/i, + /^iii$/i, + /^iv$/i, + /^v$/i, + /^vi$/i, + /^vii$/i, + /^viii$/i, + /^ix$/i, + /^x$/i, + /^xi$/i, + /^xii$/i, + ], + + any: [ + /^(1|нэгдүгээр)/i, + /^(2|хоёрдугаар)/i, + /^(3|гуравдугаар)/i, + /^(4|дөрөвдүгээр)/i, + /^(5|тавдугаар)/i, + /^(6|зургаадугаар)/i, + /^(7|долоодугаар)/i, + /^(8|наймдугаар)/i, + /^(9|есдүгээр)/i, + /^(10|аравдугаар)/i, + /^(11|арван нэгдүгээр)/i, + /^(12|арван хоёрдугаар)/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: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/mn/cdn.js b/node_modules/date-fns/locale/mn/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..c2e4972c7fcb1f0adbc0700ab5734ec2ae8e3aa4 --- /dev/null +++ b/node_modules/date-fns/locale/mn/cdn.js @@ -0,0 +1,663 @@ +(() => { +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/mn/_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) { + /** + * Append genitive case + */ + var words = result.split(" "); + var lastword = words.pop(); + result = words.join(" "); + switch (lastword) { + case "секунд": + result += " секундийн"; + break; + case "минут": + result += " минутын"; + break; + case "цаг": + result += " цагийн"; + break; + case "өдөр": + result += " өдрийн"; + break; + case "сар": + result += " сарын"; + break; + case "жил": + result += " жилийн"; + break; + case "хоног": + result += " хоногийн"; + break; + case "гаран": + result += " гараны"; + break; + case "хүрэхгүй": + result += " хүрэхгүй хугацааны"; + break; + default:result += lastword + "-н"; + } + 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: "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/mn/_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/mn/_lib/localize.js +var eraValues = { + narrow: ["НТӨ", "НТ"], + abbreviated: ["НТӨ", "НТ"], + wide: ["нийтийн тооллын өмнөх", "нийтийн тооллын"] +}; +var quarterValues = { + narrow: [ + "I", + "II", + "III", + "IV"], + + abbreviated: [ + "I улирал", + "II улирал", + "III улирал", + "IV улирал"], + + wide: [ + "1-р улирал", + "2-р улирал", + "3-р улирал", + "4-р улирал"] + +}; +var monthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII"], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар"], + + wide: [ + "Нэгдүгээр сар", + "Хоёрдугаар сар", + "Гуравдугаар сар", + "Дөрөвдүгээр сар", + "Тавдугаар сар", + "Зургаадугаар сар", + "Долоодугаар сар", + "Наймдугаар сар", + "Есдүгээр сар", + "Аравдугаар сар", + "Арваннэгдүгээр сар", + "Арван хоёрдугаар сар"] + +}; +var formattingMonthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII"], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар"], + + wide: [ + "нэгдүгээр сар", + "хоёрдугаар сар", + "гуравдугаар сар", + "дөрөвдүгээр сар", + "тавдугаар сар", + "зургаадугаар сар", + "долоодугаар сар", + "наймдугаар сар", + "есдүгээр сар", + "аравдугаар сар", + "арваннэгдүгээр сар", + "арван хоёрдугаар сар"] + +}; +var dayValues = { + narrow: [ + "Н", + "Д", + "М", + "Л", + "П", + "Б", + "Б"], + + short: [ + "Ня", + "Да", + "Мя", + "Лх", + "Пү", + "Ба", + "Бя"], + + abbreviated: [ + "Ням", + "Дав", + "Мяг", + "Лха", + "Пүр", + "Баа", + "Бям"], + + wide: [ + "Ням", + "Даваа", + "Мягмар", + "Лхагва", + "Пүрэв", + "Баасан", + "Бямба"] + +}; +var formattingDayValues = { + 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 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", + 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/mn.js +/** +* @category Locales +* @summary Mongolian locale. +* @language Mongolian +* @iso-639-2 mon +* @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) +*/ +var mn = { + code: "mn", + 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: /^(нийтийн тооллын өмнө|нийтийн тооллын)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(нтө|нийтийн тооллын өмнө)/i, /^(нт|нийтийн тооллын)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^(iv|iii|ii|i)/i, + abbreviated: /^(iv|iii|ii|i) улирал/i, + wide: /^[1-4]-р улирал/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^(i(\s|$)|1)/i, + /^(ii(\s|$)|2)/i, + /^(iii(\s|$)|3)/i, + /^(iv(\s|$)|4)/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, + abbreviated: /^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, + wide: /^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^i$/i, + /^ii$/i, + /^iii$/i, + /^iv$/i, + /^v$/i, + /^vi$/i, + /^vii$/i, + /^viii$/i, + /^ix$/i, + /^x$/i, + /^xi$/i, + /^xii$/i], + + any: [ + /^(1|нэгдүгээр)/i, + /^(2|хоёрдугаар)/i, + /^(3|гуравдугаар)/i, + /^(4|дөрөвдүгээр)/i, + /^(5|тавдугаар)/i, + /^(6|зургаадугаар)/i, + /^(7|долоодугаар)/i, + /^(8|наймдугаар)/i, + /^(9|есдүгээр)/i, + /^(10|аравдугаар)/i, + /^(11|арван нэгдүгээр)/i, + /^(12|арван хоёрдугаар)/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: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/mn/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), {}, { + mn: mn }) }); + + +//#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/mn/cdn.min.js b/node_modules/date-fns/locale/mn/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..b72202f6f96da4c0fbadd4d6853a1a7d2cfa435a --- /dev/null +++ b/node_modules/date-fns/locale/mn/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+` өмнө`}return 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:`y 'оны' MMMM'ын' d, EEEE 'гараг'`,long:`y 'оны' MMMM'ын' d`,medium:`y 'оны' MMM'ын' d`,short:`y.MM.dd`},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){return String(e)},era:f({values:{narrow:[`НТӨ`,`НТ`],abbreviated:[`НТӨ`,`НТ`],wide:[`нийтийн тооллын өмнөх`,`нийтийн тооллын`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`I`,`II`,`III`,`IV`],abbreviated:[`I улирал`,`II улирал`,`III улирал`,`IV улирал`],wide:[`1-р улирал`,`2-р улирал`,`3-р улирал`,`4-р улирал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`,`XI`,`XII`],abbreviated:[`1-р сар`,`2-р сар`,`3-р сар`,`4-р сар`,`5-р сар`,`6-р сар`,`7-р сар`,`8-р сар`,`9-р сар`,`10-р сар`,`11-р сар`,`12-р сар`],wide:[`Нэгдүгээр сар`,`Хоёрдугаар сар`,`Гуравдугаар сар`,`Дөрөвдүгээр сар`,`Тавдугаар сар`,`Зургаадугаар сар`,`Долоодугаар сар`,`Наймдугаар сар`,`Есдүгээр сар`,`Аравдугаар сар`,`Арваннэгдүгээр сар`,`Арван хоёрдугаар сар`]},defaultWidth:`wide`,formattingValues:{narrow:[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`,`XI`,`XII`],abbreviated:[`1-р сар`,`2-р сар`,`3-р сар`,`4-р сар`,`5-р сар`,`6-р сар`,`7-р сар`,`8-р сар`,`9-р сар`,`10-р сар`,`11-р сар`,`12-р сар`],wide:[`нэгдүгээр сар`,`хоёрдугаар сар`,`гуравдугаар сар`,`дөрөвдүгээр сар`,`тавдугаар сар`,`зургаадугаар сар`,`долоодугаар сар`,`наймдугаар сар`,`есдүгээр сар`,`аравдугаар сар`,`арваннэгдүгээр сар`,`арван хоёрдугаар сар`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Н`,`Д`,`М`,`Л`,`П`,`Б`,`Б`],short:[`Ня`,`Да`,`Мя`,`Лх`,`Пү`,`Ба`,`Бя`],abbreviated:[`Ням`,`Дав`,`Мяг`,`Лха`,`Пүр`,`Баа`,`Бям`],wide:[`Ням`,`Даваа`,`Мягмар`,`Лхагва`,`Пүрэв`,`Баасан`,`Бямба`]},defaultWidth:`wide`,formattingValues:{narrow:[`Н`,`Д`,`М`,`Л`,`П`,`Б`,`Б`],short:[`Ня`,`Да`,`Мя`,`Лх`,`Пү`,`Ба`,`Бя`],abbreviated:[`Ням`,`Дав`,`Мяг`,`Лха`,`Пүр`,`Баа`,`Бям`],wide:[`ням`,`даваа`,`мягмар`,`лхагва`,`пүрэв`,`баасан`,`бямба`]},defaultFormattingWidth:`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:`mn`,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:/^(нийтийн тооллын өмнө|нийтийн тооллын)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(нтө|нийтийн тооллын өмнө)/i,/^(нт|нийтийн тооллын)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^(iv|iii|ii|i)/i,abbreviated:/^(iv|iii|ii|i) улирал/i,wide:/^[1-4]-р улирал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(i(\s|$)|1)/i,/^(ii(\s|$)|2)/i,/^(iii(\s|$)|3)/i,/^(iv(\s|$)|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i,abbreviated:/^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i,wide:/^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i$/i,/^ii$/i,/^iii$/i,/^iv$/i,/^v$/i,/^vi$/i,/^vii$/i,/^viii$/i,/^ix$/i,/^x$/i,/^xi$/i,/^xii$/i],any:[/^(1|нэгдүгээр)/i,/^(2|хоёрдугаар)/i,/^(3|гуравдугаар)/i,/^(4|дөрөвдүгээр)/i,/^(5|тавдугаар)/i,/^(6|зургаадугаар)/i,/^(7|долоодугаар)/i,/^(8|наймдугаар)/i,/^(9|есдүгээр)/i,/^(10|аравдугаар)/i,/^(11|арван нэгдүгээр)/i,/^(12|арван хоёрдугаар)/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:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/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:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{mn: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/ms.cjs b/node_modules/date-fns/locale/ms.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b32ae4dbf99f0a6277a7e3f9c4fdbb312bca1bf4 --- /dev/null +++ b/node_modules/date-fns/locale/ms.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.ms = void 0; +var _index = require("./ms/_lib/formatDistance.cjs"); +var _index2 = require("./ms/_lib/formatLong.cjs"); +var _index3 = require("./ms/_lib/formatRelative.cjs"); +var _index4 = require("./ms/_lib/localize.cjs"); +var _index5 = require("./ms/_lib/match.cjs"); + +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +const ms = (exports.ms = { + code: "ms", + 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/ms.d.cts b/node_modules/date-fns/locale/ms.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..9b23fa90068e0ea248c55bedc91f3560fdb8d82a --- /dev/null +++ b/node_modules/date-fns/locale/ms.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +export declare const ms: Locale; diff --git a/node_modules/date-fns/locale/ms.d.ts b/node_modules/date-fns/locale/ms.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9b23fa90068e0ea248c55bedc91f3560fdb8d82a --- /dev/null +++ b/node_modules/date-fns/locale/ms.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +export declare const ms: Locale; diff --git a/node_modules/date-fns/locale/ms.js b/node_modules/date-fns/locale/ms.js new file mode 100644 index 0000000000000000000000000000000000000000..54bccea9c8033ec1a746cdd0b89b9eaa98141e4a --- /dev/null +++ b/node_modules/date-fns/locale/ms.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./ms/_lib/formatDistance.js"; +import { formatLong } from "./ms/_lib/formatLong.js"; +import { formatRelative } from "./ms/_lib/formatRelative.js"; +import { localize } from "./ms/_lib/localize.js"; +import { match } from "./ms/_lib/match.js"; + +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +export const ms = { + code: "ms", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ms; diff --git a/node_modules/date-fns/locale/ms/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ms/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e1901e8789bea2cb7126097bf632bfe8563077d5 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 saat", + other: "kurang dari {{count}} saat", + }, + + xSeconds: { + one: "1 saat", + other: "{{count}} saat", + }, + + halfAMinute: "setengah minit", + + lessThanXMinutes: { + one: "kurang dari 1 minit", + other: "kurang dari {{count}} minit", + }, + + xMinutes: { + one: "1 minit", + other: "{{count}} minit", + }, + + 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}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dalam masa " + result; + } else { + return result + " yang lalu"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ms/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ms/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ms/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/formatDistance.js b/node_modules/date-fns/locale/ms/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..79c25237570a3a40990d28d315a617e36a5ada1a --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 saat", + other: "kurang dari {{count}} saat", + }, + + xSeconds: { + one: "1 saat", + other: "{{count}} saat", + }, + + halfAMinute: "setengah minit", + + lessThanXMinutes: { + one: "kurang dari 1 minit", + other: "kurang dari {{count}} minit", + }, + + xMinutes: { + one: "1 minit", + other: "{{count}} minit", + }, + + 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}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dalam masa " + result; + } else { + return result + " yang lalu"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ms/_lib/formatLong.cjs b/node_modules/date-fns/locale/ms/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..195789dfcd1ba4f2eea5867a99954bc2f060a652 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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", + }), +}); diff --git a/node_modules/date-fns/locale/ms/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ms/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ms/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/formatLong.js b/node_modules/date-fns/locale/ms/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..8796be1d886f576290dedd6a61d5f6a6b11cc291 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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: "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}}", +}; + +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/ms/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ms/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d846ff7e80223e34d5397d6708b4378a10745f31 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'lepas pada jam' p", + yesterday: "'Semalam pada jam' p", + today: "'Hari ini pada jam' p", + tomorrow: "'Esok pada jam' p", + nextWeek: "eeee 'pada jam' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ms/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ms/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ms/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/formatRelative.js b/node_modules/date-fns/locale/ms/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..3c10e16937ddb05bb2f5b2acf676f133cbef8e8f --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'lepas pada jam' p", + yesterday: "'Semalam pada jam' p", + today: "'Hari ini pada jam' p", + tomorrow: "'Esok pada jam' p", + nextWeek: "eeee 'pada jam' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ms/_lib/localize.cjs b/node_modules/date-fns/locale/ms/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2bface7ff0db7fc1dd8101177018779f51b7fcc0 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/localize.cjs @@ -0,0 +1,164 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// Most data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/ms.html +const eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masihi", "Masihi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["S1", "S2", "S3", "S4"], + wide: ["Suku pertama", "Suku kedua", "Suku ketiga", "Suku keempat"], +}; + +// Note: in Malay, 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", "O", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mac", + "Apr", + "Mei", + "Jun", + "Jul", + "Ogo", + "Sep", + "Okt", + "Nov", + "Dis", + ], + + wide: [ + "Januari", + "Februari", + "Mac", + "April", + "Mei", + "Jun", + "Julai", + "Ogos", + "September", + "Oktober", + "November", + "Disember", + ], +}; + +const dayValues = { + narrow: ["A", "I", "S", "R", "K", "J", "S"], + short: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"], + abbreviated: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"], + wide: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tgh malam", + noon: "tgh hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + // Can't use "pertama", "kedua" because can't be parsed + return "ke-" + Number(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/ms/_lib/localize.d.cts b/node_modules/date-fns/locale/ms/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/localize.d.ts b/node_modules/date-fns/locale/ms/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/localize.js b/node_modules/date-fns/locale/ms/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..87a07f726f2efc17558e596017e51e8a45da2172 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/localize.js @@ -0,0 +1,162 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// Most data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/ms.html +const eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masihi", "Masihi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["S1", "S2", "S3", "S4"], + wide: ["Suku pertama", "Suku kedua", "Suku ketiga", "Suku keempat"], +}; + +// Note: in Malay, 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", "O", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mac", + "Apr", + "Mei", + "Jun", + "Jul", + "Ogo", + "Sep", + "Okt", + "Nov", + "Dis", + ], + + wide: [ + "Januari", + "Februari", + "Mac", + "April", + "Mei", + "Jun", + "Julai", + "Ogos", + "September", + "Oktober", + "November", + "Disember", + ], +}; + +const dayValues = { + narrow: ["A", "I", "S", "R", "K", "J", "S"], + short: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"], + abbreviated: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"], + wide: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tgh malam", + noon: "tgh hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + // Can't use "pertama", "kedua" because can't be parsed + return "ke-" + Number(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/ms/_lib/match.cjs b/node_modules/date-fns/locale/ms/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7f381f205c4e80a332a098011a6d2cfa604d0a2a --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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 = /^ke-(\d+)?/i; +const parseOrdinalNumberPattern = /petama|\d+/i; + +const matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|m\.?)/i, + wide: /^(sebelum masihi|masihi)/i, +}; +const parseEraPatterns = { + any: [/^s/i, /^(m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^S[1234]/i, + wide: /Suku (pertama|kedua|ketiga|keempat)/i, +}; +const parseQuarterPatterns = { + any: [/pertama|1/i, /kedua|2/i, /ketiga|3/i, /keempat|4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, + wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/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, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^og/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[aisrkj]/i, + short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i, +}; +const parseDayPatterns = { + narrow: [/^a/i, /^i/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^a/i, /^i/i, /^se/i, /^r/i, /^k/i, /^j/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pa/i, + afternoon: /tengah h/i, + evening: /pe/i, + night: /m/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/ms/_lib/match.d.cts b/node_modules/date-fns/locale/ms/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/match.d.ts b/node_modules/date-fns/locale/ms/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_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/ms/_lib/match.js b/node_modules/date-fns/locale/ms/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..10fd70c66fe173facb708016df170ca835ca5093 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^ke-(\d+)?/i; +const parseOrdinalNumberPattern = /petama|\d+/i; + +const matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|m\.?)/i, + wide: /^(sebelum masihi|masihi)/i, +}; +const parseEraPatterns = { + any: [/^s/i, /^(m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^S[1234]/i, + wide: /Suku (pertama|kedua|ketiga|keempat)/i, +}; +const parseQuarterPatterns = { + any: [/pertama|1/i, /kedua|2/i, /ketiga|3/i, /keempat|4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, + wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/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, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^og/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[aisrkj]/i, + short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i, +}; +const parseDayPatterns = { + narrow: [/^a/i, /^i/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^a/i, /^i/i, /^se/i, /^r/i, /^k/i, /^j/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pa/i, + afternoon: /tengah h/i, + evening: /pe/i, + night: /m/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/ms/cdn.js b/node_modules/date-fns/locale/ms/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..3ae851e0b29dc2b675f6869b0bc0cdc18c6d31d1 --- /dev/null +++ b/node_modules/date-fns/locale/ms/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/ms/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 saat", + other: "kurang dari {{count}} saat" + }, + xSeconds: { + one: "1 saat", + other: "{{count}} saat" + }, + halfAMinute: "setengah minit", + lessThanXMinutes: { + one: "kurang dari 1 minit", + other: "kurang dari {{count}} minit" + }, + xMinutes: { + one: "1 minit", + other: "{{count}} minit" + }, + 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" + } +}; +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 "dalam masa " + result;else + return result + " yang lalu"; + 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: "d/M/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ms/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'lepas pada jam' p", + yesterday: "'Semalam pada jam' p", + today: "'Hari ini pada jam' p", + tomorrow: "'Esok pada jam' p", + nextWeek: "eeee 'pada jam' 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/ms/_lib/localize.js +var eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masihi", "Masihi"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "S1", + "S2", + "S3", + "S4"], + + wide: [ + "Suku pertama", + "Suku kedua", + "Suku ketiga", + "Suku keempat"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "O", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mac", + "Apr", + "Mei", + "Jun", + "Jul", + "Ogo", + "Sep", + "Okt", + "Nov", + "Dis"], + + wide: [ + "Januari", + "Februari", + "Mac", + "April", + "Mei", + "Jun", + "Julai", + "Ogos", + "September", + "Oktober", + "November", + "Disember"] + +}; +var dayValues = { + narrow: [ + "A", + "I", + "S", + "R", + "K", + "J", + "S"], + + short: [ + "Ahd", + "Isn", + "Sel", + "Rab", + "Kha", + "Jum", + "Sab"], + + abbreviated: [ + "Ahd", + "Isn", + "Sel", + "Rab", + "Kha", + "Jum", + "Sab"], + + wide: [ + "Ahad", + "Isnin", + "Selasa", + "Rabu", + "Khamis", + "Jumaat", + "Sabtu"] + +}; +var dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tgh malam", + noon: "tgh hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return "ke-" + 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/ms.js +/** +* @category Locales +* @summary Malay locale. +* @language Malay +* @iso-639-2 msa +* @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) +*/ +var ms = { + code: "ms", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^ke-(\d+)?/i, + parsePattern: /petama|\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|m\.?)/i, + wide: /^(sebelum masihi|masihi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^s/i, /^(m)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^S[1234]/i, + wide: /Suku (pertama|kedua|ketiga|keempat)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /pertama|1/i, + /kedua|2/i, + /ketiga|3/i, + /keempat|4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, + wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/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, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^og/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[aisrkj]/i, + short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^a/i, + /^i/i, + /^s/i, + /^r/i, + /^k/i, + /^j/i, + /^s/i], + + any: [ + /^a/i, + /^i/i, + /^se/i, + /^r/i, + /^k/i, + /^j/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pa/i, + afternoon: /tengah h/i, + evening: /pe/i, + night: /m/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ms/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), {}, { + ms: ms }) }); + + +//#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/ms/cdn.min.js b/node_modules/date-fns/locale/ms/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..9fe138869e91b342f18e6426e0ebcfcd7265c08c --- /dev/null +++ b/node_modules/date-fns/locale/ms/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?`dalam masa `+r:r+` yang lalu`: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:`d/M/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH.mm.ss`,long:`HH.mm.ss`,medium:`HH.mm`,short:`HH.mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'pukul' {{time}}`,long:`{{date}} 'pukul' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'lepas pada jam' p`,yesterday:`'Semalam pada jam' p`,today:`'Hari ini pada jam' p`,tomorrow:`'Esok pada jam' p`,nextWeek:`eeee 'pada jam' 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`ke-`+Number(e)},era:f({values:{narrow:[`SM`,`M`],abbreviated:[`SM`,`M`],wide:[`Sebelum Masihi`,`Masihi`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`S1`,`S2`,`S3`,`S4`],wide:[`Suku pertama`,`Suku kedua`,`Suku ketiga`,`Suku keempat`]},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:[`Jan`,`Feb`,`Mac`,`Apr`,`Mei`,`Jun`,`Jul`,`Ogo`,`Sep`,`Okt`,`Nov`,`Dis`],wide:[`Januari`,`Februari`,`Mac`,`April`,`Mei`,`Jun`,`Julai`,`Ogos`,`September`,`Oktober`,`November`,`Disember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`A`,`I`,`S`,`R`,`K`,`J`,`S`],short:[`Ahd`,`Isn`,`Sel`,`Rab`,`Kha`,`Jum`,`Sab`],abbreviated:[`Ahd`,`Isn`,`Sel`,`Rab`,`Kha`,`Jum`,`Sab`],wide:[`Ahad`,`Isnin`,`Selasa`,`Rabu`,`Khamis`,`Jumaat`,`Sabtu`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`tgh malam`,noon:`tgh hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`}},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:`ms`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^ke-(\d+)?/i,parsePattern:/petama|\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^(m)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/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,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ms: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/mt.cjs b/node_modules/date-fns/locale/mt.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9ba0504ffb901be488914dd9327f72c01dc57124 --- /dev/null +++ b/node_modules/date-fns/locale/mt.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.mt = void 0; +var _index = require("./mt/_lib/formatDistance.cjs"); +var _index2 = require("./mt/_lib/formatLong.cjs"); +var _index3 = require("./mt/_lib/formatRelative.cjs"); +var _index4 = require("./mt/_lib/localize.cjs"); +var _index5 = require("./mt/_lib/match.cjs"); + +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +const mt = (exports.mt = { + code: "mt", + 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/mt.d.cts b/node_modules/date-fns/locale/mt.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..d5fb873b67b9ec4b8b4de6ffa0b4db6e53b8db4c --- /dev/null +++ b/node_modules/date-fns/locale/mt.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +export declare const mt: Locale; diff --git a/node_modules/date-fns/locale/mt.d.ts b/node_modules/date-fns/locale/mt.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..d5fb873b67b9ec4b8b4de6ffa0b4db6e53b8db4c --- /dev/null +++ b/node_modules/date-fns/locale/mt.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +export declare const mt: Locale; diff --git a/node_modules/date-fns/locale/mt.js b/node_modules/date-fns/locale/mt.js new file mode 100644 index 0000000000000000000000000000000000000000..6bab03ab8c3d7114357b3e5a99ce9abfd630d9e0 --- /dev/null +++ b/node_modules/date-fns/locale/mt.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./mt/_lib/formatDistance.js"; +import { formatLong } from "./mt/_lib/formatLong.js"; +import { formatRelative } from "./mt/_lib/formatRelative.js"; +import { localize } from "./mt/_lib/localize.js"; +import { match } from "./mt/_lib/match.js"; + +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +export const mt = { + code: "mt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default mt; diff --git a/node_modules/date-fns/locale/mt/_lib/formatDistance.cjs b/node_modules/date-fns/locale/mt/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..370ca1da10efcad0b47ddc67f5959a63450ea73c --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance.cjs @@ -0,0 +1,111 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "inqas minn sekonda", + other: "inqas minn {{count}} sekondi", + }, + + xSeconds: { + one: "sekonda", + other: "{{count}} sekondi", + }, + + halfAMinute: "nofs minuta", + + lessThanXMinutes: { + one: "inqas minn minuta", + other: "inqas minn {{count}} minuti", + }, + + xMinutes: { + one: "minuta", + other: "{{count}} minuti", + }, + + aboutXHours: { + one: "madwar siegħa", + other: "madwar {{count}} siegħat", + }, + + xHours: { + one: "siegħa", + other: "{{count}} siegħat", + }, + + xDays: { + one: "ġurnata", + other: "{{count}} ġranet", + }, + + aboutXWeeks: { + one: "madwar ġimgħa", + other: "madwar {{count}} ġimgħat", + }, + + xWeeks: { + one: "ġimgħa", + other: "{{count}} ġimgħat", + }, + + aboutXMonths: { + one: "madwar xahar", + other: "madwar {{count}} xhur", + }, + + xMonths: { + one: "xahar", + other: "{{count}} xhur", + }, + + aboutXYears: { + one: "madwar sena", + two: "madwar sentejn", + other: "madwar {{count}} snin", + }, + + xYears: { + one: "sena", + two: "sentejn", + other: "{{count}} snin", + }, + + overXYears: { + one: "aktar minn sena", + two: "aktar minn sentejn", + other: "aktar minn {{count}} snin", + }, + + almostXYears: { + one: "kważi sena", + two: "kważi sentejn", + other: "kważi {{count}} snin", + }, +}; + +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 { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "f'" + result; + } else { + return result + " ilu"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/mt/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/mt/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/mt/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/formatDistance.js b/node_modules/date-fns/locale/mt/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..b25ea8876cf4a4a0d4dcb999d4c42900ce793501 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance.js @@ -0,0 +1,107 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "inqas minn sekonda", + other: "inqas minn {{count}} sekondi", + }, + + xSeconds: { + one: "sekonda", + other: "{{count}} sekondi", + }, + + halfAMinute: "nofs minuta", + + lessThanXMinutes: { + one: "inqas minn minuta", + other: "inqas minn {{count}} minuti", + }, + + xMinutes: { + one: "minuta", + other: "{{count}} minuti", + }, + + aboutXHours: { + one: "madwar siegħa", + other: "madwar {{count}} siegħat", + }, + + xHours: { + one: "siegħa", + other: "{{count}} siegħat", + }, + + xDays: { + one: "ġurnata", + other: "{{count}} ġranet", + }, + + aboutXWeeks: { + one: "madwar ġimgħa", + other: "madwar {{count}} ġimgħat", + }, + + xWeeks: { + one: "ġimgħa", + other: "{{count}} ġimgħat", + }, + + aboutXMonths: { + one: "madwar xahar", + other: "madwar {{count}} xhur", + }, + + xMonths: { + one: "xahar", + other: "{{count}} xhur", + }, + + aboutXYears: { + one: "madwar sena", + two: "madwar sentejn", + other: "madwar {{count}} snin", + }, + + xYears: { + one: "sena", + two: "sentejn", + other: "{{count}} snin", + }, + + overXYears: { + one: "aktar minn sena", + two: "aktar minn sentejn", + other: "aktar minn {{count}} snin", + }, + + almostXYears: { + one: "kważi sena", + two: "kważi sentejn", + other: "kważi {{count}} snin", + }, +}; + +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 { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "f'" + result; + } else { + return result + " ilu"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/mt/_lib/formatLong.cjs b/node_modules/date-fns/locale/mt/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ee1d3ba242ae247778c9e3c17d7de2267b487520 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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}} {{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/mt/_lib/formatLong.d.cts b/node_modules/date-fns/locale/mt/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/formatLong.d.ts b/node_modules/date-fns/locale/mt/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/formatLong.js b/node_modules/date-fns/locale/mt/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..b556a58bb9ec9389212c43c3494174684b993e44 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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}} {{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/mt/_lib/formatRelative.cjs b/node_modules/date-fns/locale/mt/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..225f1184d3aeaed9e30cd7141189c20a06f25bf0 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'li għadda' 'fil-'p", + yesterday: "'Il-bieraħ fil-'p", + today: "'Illum fil-'p", + tomorrow: "'Għada fil-'p", + nextWeek: "eeee 'fil-'p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/mt/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/mt/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/mt/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/formatRelative.js b/node_modules/date-fns/locale/mt/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..556b50ac8c189b1314a397c24d664b775bf07c13 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'li għadda' 'fil-'p", + yesterday: "'Il-bieraħ fil-'p", + today: "'Illum fil-'p", + tomorrow: "'Għada fil-'p", + nextWeek: "eeee 'fil-'p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/mt/_lib/localize.cjs b/node_modules/date-fns/locale/mt/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4805e47ea8230583bac033bc1699022f4b1003d8 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["Q", "W"], + abbreviated: ["QK", "WK"], + wide: ["qabel Kristu", "wara Kristu"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1. kwart", "2. kwart", "3. kwart", "4. kwart"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "Ġ", "L", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Fra", + "Mar", + "Apr", + "Mej", + "Ġun", + "Lul", + "Aww", + "Set", + "Ott", + "Nov", + "Diċ", + ], + + wide: [ + "Jannar", + "Frar", + "Marzu", + "April", + "Mejju", + "Ġunju", + "Lulju", + "Awwissu", + "Settembru", + "Ottubru", + "Novembru", + "Diċembru", + ], +}; + +const dayValues = { + narrow: ["Ħ", "T", "T", "E", "Ħ", "Ġ", "S"], + short: ["Ħa", "Tn", "Tl", "Er", "Ħa", "Ġi", "Si"], + abbreviated: ["Ħad", "Tne", "Tli", "Erb", "Ħam", "Ġim", "Sib"], + wide: [ + "Il-Ħadd", + "It-Tnejn", + "It-Tlieta", + "L-Erbgħa", + "Il-Ħamis", + "Il-Ġimgħa", + "Is-Sibt", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, +}; + +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/mt/_lib/localize.d.cts b/node_modules/date-fns/locale/mt/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/localize.d.ts b/node_modules/date-fns/locale/mt/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/localize.js b/node_modules/date-fns/locale/mt/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..a9c7bdb326cfea849ab72d1a152bc8b4b69f6b9f --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["Q", "W"], + abbreviated: ["QK", "WK"], + wide: ["qabel Kristu", "wara Kristu"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1. kwart", "2. kwart", "3. kwart", "4. kwart"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "Ġ", "L", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Fra", + "Mar", + "Apr", + "Mej", + "Ġun", + "Lul", + "Aww", + "Set", + "Ott", + "Nov", + "Diċ", + ], + + wide: [ + "Jannar", + "Frar", + "Marzu", + "April", + "Mejju", + "Ġunju", + "Lulju", + "Awwissu", + "Settembru", + "Ottubru", + "Novembru", + "Diċembru", + ], +}; + +const dayValues = { + narrow: ["Ħ", "T", "T", "E", "Ħ", "Ġ", "S"], + short: ["Ħa", "Tn", "Tl", "Er", "Ħa", "Ġi", "Si"], + abbreviated: ["Ħad", "Tne", "Tli", "Erb", "Ħam", "Ġim", "Sib"], + wide: [ + "Il-Ħadd", + "It-Tnejn", + "It-Tlieta", + "L-Erbgħa", + "Il-Ħamis", + "Il-Ġimgħa", + "Is-Sibt", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, +}; + +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/mt/_lib/match.cjs b/node_modules/date-fns/locale/mt/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d4d27e3fc650395abcf3d2841a06ca876a411369 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/match.cjs @@ -0,0 +1,144 @@ +"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: /^(q|w)/i, + abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, + wide: /^(qabel kristu|before common era|wara kristu|common era)/i, +}; +const parseEraPatterns = { + any: [/^(q|b)/i, /^(w|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](\.)? kwart/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmaglsond]/i, + abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, + wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^ġ/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mej/i, + /^ġ/i, + /^l/i, + /^aw/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[ħteġs]/i, + short: /^(ħa|tn|tl|er|ħa|ġi|si)/i, + abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i, + wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i, +}; +const parseDayPatterns = { + narrow: [/^ħ/i, /^t/i, /^t/i, /^e/i, /^ħ/i, /^ġ/i, /^s/i], + any: [ + /^(il-)?ħad/i, + /^(it-)?tn/i, + /^(it-)?tl/i, + /^(l-)?er/i, + /^(il-)?ham/i, + /^(il-)?ġi/i, + /^(is-)?si/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, + any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^f'nofsillejl/i, + noon: /^f'nofsinhar/i, + morning: /għodwa/i, + afternoon: /wara(\s.*)nofsinhar/i, + evening: /filgħaxija/i, + night: /lejl/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/mt/_lib/match.d.cts b/node_modules/date-fns/locale/mt/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/match.d.ts b/node_modules/date-fns/locale/mt/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_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/mt/_lib/match.js b/node_modules/date-fns/locale/mt/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..325477734fd42ef1a43c34fd5779d51711652452 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/match.js @@ -0,0 +1,141 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(q|w)/i, + abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, + wide: /^(qabel kristu|before common era|wara kristu|common era)/i, +}; +const parseEraPatterns = { + any: [/^(q|b)/i, /^(w|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](\.)? kwart/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmaglsond]/i, + abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, + wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^ġ/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mej/i, + /^ġ/i, + /^l/i, + /^aw/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[ħteġs]/i, + short: /^(ħa|tn|tl|er|ħa|ġi|si)/i, + abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i, + wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i, +}; +const parseDayPatterns = { + narrow: [/^ħ/i, /^t/i, /^t/i, /^e/i, /^ħ/i, /^ġ/i, /^s/i], + any: [ + /^(il-)?ħad/i, + /^(it-)?tn/i, + /^(it-)?tl/i, + /^(l-)?er/i, + /^(il-)?ham/i, + /^(il-)?ġi/i, + /^(is-)?si/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, + any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^f'nofsillejl/i, + noon: /^f'nofsinhar/i, + morning: /għodwa/i, + afternoon: /wara(\s.*)nofsinhar/i, + evening: /filgħaxija/i, + night: /lejl/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/mt/cdn.js b/node_modules/date-fns/locale/mt/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..4d0599d0c6a797a6c435951cc50312e396c8bd05 --- /dev/null +++ b/node_modules/date-fns/locale/mt/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/mt/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "inqas minn sekonda", + other: "inqas minn {{count}} sekondi" + }, + xSeconds: { + one: "sekonda", + other: "{{count}} sekondi" + }, + halfAMinute: "nofs minuta", + lessThanXMinutes: { + one: "inqas minn minuta", + other: "inqas minn {{count}} minuti" + }, + xMinutes: { + one: "minuta", + other: "{{count}} minuti" + }, + aboutXHours: { + one: "madwar siegħa", + other: "madwar {{count}} siegħat" + }, + xHours: { + one: "siegħa", + other: "{{count}} siegħat" + }, + xDays: { + one: "ġurnata", + other: "{{count}} ġranet" + }, + aboutXWeeks: { + one: "madwar ġimgħa", + other: "madwar {{count}} ġimgħat" + }, + xWeeks: { + one: "ġimgħa", + other: "{{count}} ġimgħat" + }, + aboutXMonths: { + one: "madwar xahar", + other: "madwar {{count}} xhur" + }, + xMonths: { + one: "xahar", + other: "{{count}} xhur" + }, + aboutXYears: { + one: "madwar sena", + two: "madwar sentejn", + other: "madwar {{count}} snin" + }, + xYears: { + one: "sena", + two: "sentejn", + other: "{{count}} snin" + }, + overXYears: { + one: "aktar minn sena", + two: "aktar minn sentejn", + other: "aktar minn {{count}} snin" + }, + almostXYears: { + one: "kważi sena", + two: "kważi sentejn", + other: "kważi {{count}} snin" + } +}; +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 + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "f'" + result;else + return result + " ilu"; + 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: "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/mt/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'li għadda' 'fil-'p", + yesterday: "'Il-bieraħ fil-'p", + today: "'Illum fil-'p", + tomorrow: "'Għada fil-'p", + nextWeek: "eeee 'fil-'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/mt/_lib/localize.js +var eraValues = { + narrow: ["Q", "W"], + abbreviated: ["QK", "WK"], + wide: ["qabel Kristu", "wara Kristu"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1. kwart", + "2. kwart", + "3. kwart", + "4. kwart"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "Ġ", + "L", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Fra", + "Mar", + "Apr", + "Mej", + "Ġun", + "Lul", + "Aww", + "Set", + "Ott", + "Nov", + "Diċ"], + + wide: [ + "Jannar", + "Frar", + "Marzu", + "April", + "Mejju", + "Ġunju", + "Lulju", + "Awwissu", + "Settembru", + "Ottubru", + "Novembru", + "Diċembru"] + +}; +var dayValues = { + narrow: [ + "Ħ", + "T", + "T", + "E", + "Ħ", + "Ġ", + "S"], + + short: [ + "Ħa", + "Tn", + "Tl", + "Er", + "Ħa", + "Ġi", + "Si"], + + abbreviated: [ + "Ħad", + "Tne", + "Tli", + "Erb", + "Ħam", + "Ġim", + "Sib"], + + wide: [ + "Il-Ħadd", + "It-Tnejn", + "It-Tlieta", + "L-Erbgħa", + "Il-Ħamis", + "Il-Ġimgħa", + "Is-Sibt"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl" + } +}; +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/mt.js +/** +* @category Locales +* @summary Maltese locale. +* @language Maltese +* @iso-639-2 mlt +* @author Andras Matzon [@amatzon](@link https://github.com/amatzon) +* @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) +*/ +var mt = { + code: "mt", + 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: /^(q|w)/i, + abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, + wide: /^(qabel kristu|before common era|wara kristu|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(q|b)/i, /^(w|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](\.)? kwart/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: /^[jfmaglsond]/i, + abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, + wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^ġ/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mej/i, + /^ġ/i, + /^l/i, + /^aw/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[ħteġs]/i, + short: /^(ħa|tn|tl|er|ħa|ġi|si)/i, + abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i, + wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ħ/i, + /^t/i, + /^t/i, + /^e/i, + /^ħ/i, + /^ġ/i, + /^s/i], + + any: [ + /^(il-)?ħad/i, + /^(it-)?tn/i, + /^(it-)?tl/i, + /^(l-)?er/i, + /^(il-)?ham/i, + /^(il-)?ġi/i, + /^(is-)?si/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, + any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^f'nofsillejl/i, + noon: /^f'nofsinhar/i, + morning: /għodwa/i, + afternoon: /wara(\s.*)nofsinhar/i, + evening: /filgħaxija/i, + night: /lejl/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/mt/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), {}, { + mt: mt }) }); + + +//#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/mt/cdn.min.js b/node_modules/date-fns/locale/mt/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..65782b5df8118e0922c877285142d0c7b5f877ea --- /dev/null +++ b/node_modules/date-fns/locale/mt/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?`f'`+r:r+` ilu`: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:`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 'li għadda' 'fil-'p`,yesterday:`'Il-bieraħ fil-'p`,today:`'Illum fil-'p`,tomorrow:`'Għada fil-'p`,nextWeek:`eeee 'fil-'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)+`º`},era:f({values:{narrow:[`Q`,`W`],abbreviated:[`QK`,`WK`],wide:[`qabel Kristu`,`wara Kristu`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1. kwart`,`2. kwart`,`3. kwart`,`4. kwart`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`Ġ`,`L`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Fra`,`Mar`,`Apr`,`Mej`,`Ġun`,`Lul`,`Aww`,`Set`,`Ott`,`Nov`,`Diċ`],wide:[`Jannar`,`Frar`,`Marzu`,`April`,`Mejju`,`Ġunju`,`Lulju`,`Awwissu`,`Settembru`,`Ottubru`,`Novembru`,`Diċembru`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Ħ`,`T`,`T`,`E`,`Ħ`,`Ġ`,`S`],short:[`Ħa`,`Tn`,`Tl`,`Er`,`Ħa`,`Ġi`,`Si`],abbreviated:[`Ħad`,`Tne`,`Tli`,`Erb`,`Ħam`,`Ġim`,`Sib`],wide:[`Il-Ħadd`,`It-Tnejn`,`It-Tlieta`,`L-Erbgħa`,`Il-Ħamis`,`Il-Ġimgħa`,`Is-Sibt`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`},abbreviated:{am:`AM`,pm:`PM`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`}},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:`mt`,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:/^(q|w)/i,abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,wide:/^(qabel kristu|before common era|wara kristu|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(q|b)/i,/^(w|c)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](\.)? kwart/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:/^[jfmaglsond]/i,abbreviated:/^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i,wide:/^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^ġ/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mej/i,/^ġ/i,/^l/i,/^aw/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[ħteġs]/i,short:/^(ħa|tn|tl|er|ħa|ġi|si)/i,abbreviated:/^(ħad|tne|tli|erb|ħam|ġim|sib)/i,wide:/^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ħ/i,/^t/i,/^t/i,/^e/i,/^ħ/i,/^ġ/i,/^s/i],any:[/^(il-)?ħad/i,/^(it-)?tn/i,/^(it-)?tl/i,/^(l-)?er/i,/^(il-)?ham/i,/^(il-)?ġi/i,/^(is-)?si/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^f'nofsillejl/i,noon:/^f'nofsinhar/i,morning:/għodwa/i,afternoon:/wara(\s.*)nofsinhar/i,evening:/filgħaxija/i,night:/lejl/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{mt: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/nb.cjs b/node_modules/date-fns/locale/nb.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0f2d4ca567f21c2164c72317aa046c652f314a49 --- /dev/null +++ b/node_modules/date-fns/locale/nb.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.nb = void 0; +var _index = require("./nb/_lib/formatDistance.cjs"); +var _index2 = require("./nb/_lib/formatLong.cjs"); +var _index3 = require("./nb/_lib/formatRelative.cjs"); +var _index4 = require("./nb/_lib/localize.cjs"); +var _index5 = require("./nb/_lib/match.cjs"); + +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +const nb = (exports.nb = { + code: "nb", + 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/nb.d.cts b/node_modules/date-fns/locale/nb.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..861fb8bd7565aa8bc5d39e77663cb41bc81520d4 --- /dev/null +++ b/node_modules/date-fns/locale/nb.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +export declare const nb: Locale; diff --git a/node_modules/date-fns/locale/nb.d.ts b/node_modules/date-fns/locale/nb.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..861fb8bd7565aa8bc5d39e77663cb41bc81520d4 --- /dev/null +++ b/node_modules/date-fns/locale/nb.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +export declare const nb: Locale; diff --git a/node_modules/date-fns/locale/nb.js b/node_modules/date-fns/locale/nb.js new file mode 100644 index 0000000000000000000000000000000000000000..e4d5262ff615a4e5e6e60d2608a96f4836a5c351 --- /dev/null +++ b/node_modules/date-fns/locale/nb.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./nb/_lib/formatDistance.js"; +import { formatLong } from "./nb/_lib/formatLong.js"; +import { formatRelative } from "./nb/_lib/formatRelative.js"; +import { localize } from "./nb/_lib/localize.js"; +import { match } from "./nb/_lib/match.js"; + +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +export const nb = { + code: "nb", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default nb; diff --git a/node_modules/date-fns/locale/nb/_lib/formatDistance.cjs b/node_modules/date-fns/locale/nb/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3a38681c70b4382b06b96bac0a953dd945db89ea --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn ett sekund", + other: "mindre enn {{count}} sekunder", + }, + + xSeconds: { + one: "ett sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "et halvt minutt", + + lessThanXMinutes: { + one: "mindre enn ett minutt", + other: "mindre enn {{count}} minutter", + }, + + xMinutes: { + one: "ett minutt", + other: "{{count}} minutter", + }, + + aboutXHours: { + one: "omtrent en time", + other: "omtrent {{count}} timer", + }, + + xHours: { + one: "en time", + other: "{{count}} timer", + }, + + xDays: { + one: "en dag", + other: "{{count}} dager", + }, + + aboutXWeeks: { + one: "omtrent en uke", + other: "omtrent {{count}} uker", + }, + + xWeeks: { + one: "en uke", + other: "{{count}} uker", + }, + + aboutXMonths: { + one: "omtrent en måned", + other: "omtrent {{count}} måneder", + }, + + xMonths: { + one: "en måned", + other: "{{count}} måneder", + }, + + aboutXYears: { + one: "omtrent ett år", + other: "omtrent {{count}} år", + }, + + xYears: { + one: "ett år", + other: "{{count}} år", + }, + + overXYears: { + one: "over ett år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "nesten ett år", + other: "nesten {{count}} år", + }, +}; + +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 "om " + result; + } else { + return result + " siden"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/nb/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/nb/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/nb/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/formatDistance.js b/node_modules/date-fns/locale/nb/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..b7b22a57e4b3122c57ca09281173ec3b2f47e373 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn ett sekund", + other: "mindre enn {{count}} sekunder", + }, + + xSeconds: { + one: "ett sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "et halvt minutt", + + lessThanXMinutes: { + one: "mindre enn ett minutt", + other: "mindre enn {{count}} minutter", + }, + + xMinutes: { + one: "ett minutt", + other: "{{count}} minutter", + }, + + aboutXHours: { + one: "omtrent en time", + other: "omtrent {{count}} timer", + }, + + xHours: { + one: "en time", + other: "{{count}} timer", + }, + + xDays: { + one: "en dag", + other: "{{count}} dager", + }, + + aboutXWeeks: { + one: "omtrent en uke", + other: "omtrent {{count}} uker", + }, + + xWeeks: { + one: "en uke", + other: "{{count}} uker", + }, + + aboutXMonths: { + one: "omtrent en måned", + other: "omtrent {{count}} måneder", + }, + + xMonths: { + one: "en måned", + other: "{{count}} måneder", + }, + + aboutXYears: { + one: "omtrent ett år", + other: "omtrent {{count}} år", + }, + + xYears: { + one: "ett år", + other: "{{count}} år", + }, + + overXYears: { + one: "over ett år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "nesten ett år", + other: "nesten {{count}} år", + }, +}; + +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 "om " + result; + } else { + return result + " siden"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/nb/_lib/formatLong.cjs b/node_modules/date-fns/locale/nb/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e0de253bd45300128b97dba36bb2b2ab4ea37cec --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{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/nb/_lib/formatLong.d.cts b/node_modules/date-fns/locale/nb/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/formatLong.d.ts b/node_modules/date-fns/locale/nb/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/formatLong.js b/node_modules/date-fns/locale/nb/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..fb4ed8b77f54faf7808a20a8a76cd172cb5c8322 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{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/nb/_lib/formatRelative.cjs b/node_modules/date-fns/locale/nb/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..bd9baf18d0f3d9b10f9b13a191d5a075391055e3 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'forrige' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/nb/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/nb/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/nb/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/formatRelative.js b/node_modules/date-fns/locale/nb/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..77c6e539931a315cdfefc79da4d9d7b21ca27e8e --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'forrige' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/nb/_lib/localize.cjs b/node_modules/date-fns/locale/nb/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..db361a7cb9a2e6103deb68ccbd8bd8ada1d70ee9 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sø", "ma", "ti", "on", "to", "fr", "lø"], + abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"], + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgenen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natten", + }, +}; + +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", + }), +}); diff --git a/node_modules/date-fns/locale/nb/_lib/localize.d.cts b/node_modules/date-fns/locale/nb/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/localize.d.ts b/node_modules/date-fns/locale/nb/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/localize.js b/node_modules/date-fns/locale/nb/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..477d2f620fabef06d6f4a0e2ab8278b50e4dfb77 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sø", "ma", "ti", "on", "to", "fr", "lø"], + abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"], + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgenen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natten", + }, +}; + +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", + }), +}; diff --git a/node_modules/date-fns/locale/nb/_lib/match.cjs b/node_modules/date-fns/locale/nb/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e2a7c44884ce2d5e524efe6b8d1f008452609405 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^e/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/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, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sø|ma|ti|on|to|fr|lø)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgen/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/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/nb/_lib/match.d.cts b/node_modules/date-fns/locale/nb/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/match.d.ts b/node_modules/date-fns/locale/nb/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_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/nb/_lib/match.js b/node_modules/date-fns/locale/nb/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..88b135381c6d11305b02c012702f746456882a61 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^e/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/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, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sø|ma|ti|on|to|fr|lø)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgen/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/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/nb/cdn.js b/node_modules/date-fns/locale/nb/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..4235c93fa30f99b71ac17ef11856d4cf129ef173 --- /dev/null +++ b/node_modules/date-fns/locale/nb/cdn.js @@ -0,0 +1,530 @@ +(() => { +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/nb/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn ett sekund", + other: "mindre enn {{count}} sekunder" + }, + xSeconds: { + one: "ett sekund", + other: "{{count}} sekunder" + }, + halfAMinute: "et halvt minutt", + lessThanXMinutes: { + one: "mindre enn ett minutt", + other: "mindre enn {{count}} minutter" + }, + xMinutes: { + one: "ett minutt", + other: "{{count}} minutter" + }, + aboutXHours: { + one: "omtrent en time", + other: "omtrent {{count}} timer" + }, + xHours: { + one: "en time", + other: "{{count}} timer" + }, + xDays: { + one: "en dag", + other: "{{count}} dager" + }, + aboutXWeeks: { + one: "omtrent en uke", + other: "omtrent {{count}} uker" + }, + xWeeks: { + one: "en uke", + other: "{{count}} uker" + }, + aboutXMonths: { + one: "omtrent en måned", + other: "omtrent {{count}} måneder" + }, + xMonths: { + one: "en måned", + other: "{{count}} måneder" + }, + aboutXYears: { + one: "omtrent ett år", + other: "omtrent {{count}} år" + }, + xYears: { + one: "ett år", + other: "{{count}} år" + }, + overXYears: { + one: "over ett år", + other: "over {{count}} år" + }, + almostXYears: { + one: "nesten ett år", + other: "nesten {{count}} år" + } +}; +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 "om " + result;else + return result + " siden"; + 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: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/nb/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'forrige' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "EEEE 'kl.' 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/nb/_lib/localize.js +var eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des."], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "O", + "T", + "F", + "L"], + + short: [ + "sø", + "ma", + "ti", + "on", + "to", + "fr", + "lø"], + + abbreviated: [ + "søn", + "man", + "tir", + "ons", + "tor", + "fre", + "lør"], + + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgenen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natten" + } +}; +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" + }) +}; +//#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/nb.js +/** +* @category Locales +* @summary Norwegian Bokmål locale. +* @language Norwegian Bokmål +* @iso-639-2 nob +* @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) +* @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Dag Stuan [@dagstuan](https://github.com/dagstuan) +*/ +var nb = { + code: "nb", + 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: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/i, /^e/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[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: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/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, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtofl]/i, + short: /^(sø|ma|ti|on|to|fr|lø)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^s/i, + /^m/i, + /^ti/i, + /^o/i, + /^to/i, + /^f/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgen/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/nb/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), {}, { + nb: nb }) }); + + +//#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/nb/cdn.min.js b/node_modules/date-fns/locale/nb/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..1e28fb6cfef7a9e775fc02d32381312f9c523ecf --- /dev/null +++ b/node_modules/date-fns/locale/nb/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?`om `+r:r+` siden`: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:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'forrige' eeee 'kl.' p`,yesterday:`'i går kl.' p`,today:`'i dag kl.' p`,tomorrow:`'i morgen kl.' p`,nextWeek:`EEEE 'kl.' 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)+`.`},era:f({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`før Kristus`,`etter Kristus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},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.`,`mars`,`apr.`,`mai`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],abbreviated:[`søn`,`man`,`tir`,`ons`,`tor`,`fre`,`lør`],wide:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natten`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natten`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morgenen`,afternoon:`på ettermiddagen`,evening:`på kvelden`,night:`på natten`}},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:`nb`,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:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[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:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/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,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{nb: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/nl-BE.cjs b/node_modules/date-fns/locale/nl-BE.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3119f5d13eec59f2d3b1a600794f0823042c2da3 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE.cjs @@ -0,0 +1,30 @@ +"use strict"; +exports.nlBE = void 0; +var _index = require("./nl-BE/_lib/formatDistance.cjs"); +var _index2 = require("./nl-BE/_lib/formatLong.cjs"); +var _index3 = require("./nl-BE/_lib/formatRelative.cjs"); +var _index4 = require("./nl-BE/_lib/localize.cjs"); +var _index5 = require("./nl-BE/_lib/match.cjs"); + +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +const nlBE = (exports.nlBE = { + code: "nl-BE", + 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/nl-BE.d.cts b/node_modules/date-fns/locale/nl-BE.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..82af1f9822ac37f24af5cbce438d8c597d593ff6 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const nlBE: Locale; diff --git a/node_modules/date-fns/locale/nl-BE.d.ts b/node_modules/date-fns/locale/nl-BE.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..82af1f9822ac37f24af5cbce438d8c597d593ff6 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const nlBE: Locale; diff --git a/node_modules/date-fns/locale/nl-BE.js b/node_modules/date-fns/locale/nl-BE.js new file mode 100644 index 0000000000000000000000000000000000000000..7c1faf6efcfb108eea61ba7c83cb37f55a3c89f0 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE.js @@ -0,0 +1,31 @@ +import { formatDistance } from "./nl-BE/_lib/formatDistance.js"; +import { formatLong } from "./nl-BE/_lib/formatLong.js"; +import { formatRelative } from "./nl-BE/_lib/formatRelative.js"; +import { localize } from "./nl-BE/_lib/localize.js"; +import { match } from "./nl-BE/_lib/match.js"; + +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export const nlBE = { + code: "nl-BE", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default nlBE; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.cjs b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c460d2ead53a732835e97f6b929724dc0bebac16 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden", + }, + + halfAMinute: "een halve minuut", + + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten", + }, + + xMinutes: { + one: "een minuut", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur", + }, + + xHours: { + one: "1 uur", + other: "{{count}} uur", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weken", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maanden", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar", + }, + + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar", + }, +}; + +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 "over " + result; + } else { + return result + " geleden"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/formatDistance.js b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..2651107443a8f853ecc24cb44bb405439cb0e61c --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden", + }, + + halfAMinute: "een halve minuut", + + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten", + }, + + xMinutes: { + one: "een minuut", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur", + }, + + xHours: { + one: "1 uur", + other: "{{count}} uur", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weken", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maanden", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar", + }, + + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar", + }, +}; + +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 "over " + result; + } else { + return result + " geleden"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatLong.cjs b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b138e5fdfaf79e8cee6c220d9dbbe0b54880aed3 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/formatLong.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/formatLong.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/formatLong.js b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..3113d298e532a34446eacdf96c3f369710f7f99f --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/formatRelative.cjs b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..aa7693a363d9accf4294cc2204b470dbc9b50199 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'vorige' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen 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/nl-BE/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/formatRelative.js b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..0343e48961798bcbc539a438c169db3a4e02dfaa --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'vorige' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen 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/nl-BE/_lib/localize.cjs b/node_modules/date-fns/locale/nl-BE/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..216d42b7416cdf864c669b1f079e0a9a1cea90b9 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["Z", "M", "D", "W", "D", "V", "Z"], + short: ["zo", "ma", "di", "wo", "do", "vr", "za"], + abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"], + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s 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/nl-BE/_lib/localize.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/localize.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/localize.js b/node_modules/date-fns/locale/nl-BE/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..341c831d6468f99933709008f4a47d889a939e0e --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["Z", "M", "D", "W", "D", "V", "Z"], + short: ["zo", "ma", "di", "wo", "do", "vr", "za"], + abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"], + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s 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/nl-BE/_lib/match.cjs b/node_modules/date-fns/locale/nl-BE/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..fc6b479d094421e03eaed2e4a7c7db8667d4c617 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/match.cjs @@ -0,0 +1,134 @@ +"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: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|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: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mei/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/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/nl-BE/_lib/match.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/match.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_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/nl-BE/_lib/match.js b/node_modules/date-fns/locale/nl-BE/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..e37f5a2dfef9a026f62dbb8f2c2c44074b32dbb7 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|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: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mei/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/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/nl-BE/cdn.js b/node_modules/date-fns/locale/nl-BE/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..be68aecd2ce293d0de4d17462e35eda9255efd4b --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/cdn.js @@ -0,0 +1,539 @@ +(() => { +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/nl-BE/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden" + }, + halfAMinute: "een halve minuut", + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten" + }, + xMinutes: { + one: "een minuut", + other: "{{count}} minuten" + }, + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur" + }, + xHours: { + one: "1 uur", + other: "{{count}} uur" + }, + xDays: { + one: "1 dag", + other: "{{count}} dagen" + }, + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weken" + }, + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden" + }, + xMonths: { + one: "1 maand", + other: "{{count}} maanden" + }, + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar" + }, + xYears: { + one: "1 jaar", + other: "{{count}} jaar" + }, + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar" + }, + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar" + } +}; +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 "over " + result;else + return result + " geleden"; + 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/nl-BE/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'vorige' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen 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/nl-BE/_lib/localize.js +var eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z"], + + short: [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za"], + + abbreviated: [ + "zon", + "maa", + "din", + "woe", + "don", + "vri", + "zat"], + + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s 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/nl-BE.js +/** +* @category Locales +* @summary Dutch locale. +* @language Dutch +* @iso-639-2 nld +* @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) +* @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) +* @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) +* @author Alex Hoeing [@dcbn](https://github.com/dcbn) +*/ +var nlBE = { + code: "nl-BE", + 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: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/, /^n/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/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.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|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: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mei/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^z/i, + /^m/i, + /^d/i, + /^w/i, + /^d/i, + /^v/i, + /^z/i], + + any: [ + /^zo/i, + /^ma/i, + /^di/i, + /^wo/i, + /^do/i, + /^vr/i, + /^za/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/nl-BE/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), {}, { + nlBE: nlBE }) }); + + +//#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/nl-BE/cdn.min.js b/node_modules/date-fns/locale/nl-BE/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..6af14711fc695325cc7ce662bb330ee3e29d86f6 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/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?`over `+r:r+` geleden`: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:`'vorige' eeee 'om' p`,yesterday:`'gisteren om' p`,today:`'vandaag om' p`,tomorrow:`'morgen 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:[`v.C.`,`n.C.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`voor Christus`,`na Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e kwartaal`,`2e kwartaal`,`3e kwartaal`,`4e kwartaal`]},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.`,`mei`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`maart`,`april`,`mei`,`juni`,`juli`,`augustus`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Z`,`M`,`D`,`W`,`D`,`V`,`Z`],short:[`zo`,`ma`,`di`,`wo`,`do`,`vr`,`za`],abbreviated:[`zon`,`maa`,`din`,`woe`,`don`,`vri`,`zat`],wide:[`zondag`,`maandag`,`dinsdag`,`woensdag`,`donderdag`,`vrijdag`,`zaterdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s 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:`nl-BE`,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:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/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.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{nlBE: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/nl.cjs b/node_modules/date-fns/locale/nl.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c599dd49fd50653705cc9062700da1b3b7f6859f --- /dev/null +++ b/node_modules/date-fns/locale/nl.cjs @@ -0,0 +1,32 @@ +"use strict"; +exports.nl = void 0; +var _index = require("./nl/_lib/formatDistance.cjs"); +var _index2 = require("./nl/_lib/formatLong.cjs"); +var _index3 = require("./nl/_lib/formatRelative.cjs"); +var _index4 = require("./nl/_lib/localize.cjs"); +var _index5 = require("./nl/_lib/match.cjs"); + +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +const nl = (exports.nl = { + code: "nl", + 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/nl.d.cts b/node_modules/date-fns/locale/nl.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..9869f15b1963d6e0d948176c142c6c8cfacf252c --- /dev/null +++ b/node_modules/date-fns/locale/nl.d.cts @@ -0,0 +1,14 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +export declare const nl: Locale; diff --git a/node_modules/date-fns/locale/nl.d.ts b/node_modules/date-fns/locale/nl.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9869f15b1963d6e0d948176c142c6c8cfacf252c --- /dev/null +++ b/node_modules/date-fns/locale/nl.d.ts @@ -0,0 +1,14 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +export declare const nl: Locale; diff --git a/node_modules/date-fns/locale/nl.js b/node_modules/date-fns/locale/nl.js new file mode 100644 index 0000000000000000000000000000000000000000..c4d0e25273ea34e4ab83d3579ab1c5e09233a2eb --- /dev/null +++ b/node_modules/date-fns/locale/nl.js @@ -0,0 +1,33 @@ +import { formatDistance } from "./nl/_lib/formatDistance.js"; +import { formatLong } from "./nl/_lib/formatLong.js"; +import { formatRelative } from "./nl/_lib/formatRelative.js"; +import { localize } from "./nl/_lib/localize.js"; +import { match } from "./nl/_lib/match.js"; + +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +export const nl = { + code: "nl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default nl; diff --git a/node_modules/date-fns/locale/nl/_lib/formatDistance.cjs b/node_modules/date-fns/locale/nl/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c460d2ead53a732835e97f6b929724dc0bebac16 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden", + }, + + halfAMinute: "een halve minuut", + + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten", + }, + + xMinutes: { + one: "een minuut", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur", + }, + + xHours: { + one: "1 uur", + other: "{{count}} uur", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weken", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maanden", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar", + }, + + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar", + }, +}; + +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 "over " + result; + } else { + return result + " geleden"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/nl/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/nl/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/nl/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/formatDistance.js b/node_modules/date-fns/locale/nl/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..2651107443a8f853ecc24cb44bb405439cb0e61c --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden", + }, + + halfAMinute: "een halve minuut", + + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten", + }, + + xMinutes: { + one: "een minuut", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur", + }, + + xHours: { + one: "1 uur", + other: "{{count}} uur", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weken", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maanden", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar", + }, + + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar", + }, +}; + +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 "over " + result; + } else { + return result + " geleden"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/nl/_lib/formatLong.cjs b/node_modules/date-fns/locale/nl/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7e58b582a35e5544936fb7e7c1c45ebeac13af4f --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/formatLong.d.cts b/node_modules/date-fns/locale/nl/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/formatLong.d.ts b/node_modules/date-fns/locale/nl/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/formatLong.js b/node_modules/date-fns/locale/nl/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..bb442e48de3f73cbea389e7c3587f73b6c0e44a2 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/formatRelative.cjs b/node_modules/date-fns/locale/nl/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7e96ed4059a8280b01406e0633bba63917c43e97 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'afgelopen' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen 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/nl/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/nl/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/nl/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/formatRelative.js b/node_modules/date-fns/locale/nl/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..d43100866d2b2303f855f30d067abb6582c0eadd --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'afgelopen' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen 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/nl/_lib/localize.cjs b/node_modules/date-fns/locale/nl/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2e766204b0a959fef28114f70a5673c604cb9bb6 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["Z", "M", "D", "W", "D", "V", "Z"], + short: ["zo", "ma", "di", "wo", "do", "vr", "za"], + abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"], + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s 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/nl/_lib/localize.d.cts b/node_modules/date-fns/locale/nl/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/localize.d.ts b/node_modules/date-fns/locale/nl/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/localize.js b/node_modules/date-fns/locale/nl/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..56a3bf8aa044e6f30015da227fd251f0571f959a --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["Z", "M", "D", "W", "D", "V", "Z"], + short: ["zo", "ma", "di", "wo", "do", "vr", "za"], + abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"], + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s 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/nl/_lib/match.cjs b/node_modules/date-fns/locale/nl/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..fc6b479d094421e03eaed2e4a7c7db8667d4c617 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/match.cjs @@ -0,0 +1,134 @@ +"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: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|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: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mei/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/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/nl/_lib/match.d.cts b/node_modules/date-fns/locale/nl/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/match.d.ts b/node_modules/date-fns/locale/nl/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_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/nl/_lib/match.js b/node_modules/date-fns/locale/nl/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..e37f5a2dfef9a026f62dbb8f2c2c44074b32dbb7 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|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: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mei/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/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/nl/cdn.js b/node_modules/date-fns/locale/nl/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..d4bf78616875ba3705d6122a5cefbafbb2659f5c --- /dev/null +++ b/node_modules/date-fns/locale/nl/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/nl/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden" + }, + halfAMinute: "een halve minuut", + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten" + }, + xMinutes: { + one: "een minuut", + other: "{{count}} minuten" + }, + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur" + }, + xHours: { + one: "1 uur", + other: "{{count}} uur" + }, + xDays: { + one: "1 dag", + other: "{{count}} dagen" + }, + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weken" + }, + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden" + }, + xMonths: { + one: "1 maand", + other: "{{count}} maanden" + }, + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar" + }, + xYears: { + one: "1 jaar", + other: "{{count}} jaar" + }, + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar" + }, + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar" + } +}; +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 "over " + result;else + return result + " geleden"; + 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/nl/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'afgelopen' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen 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/nl/_lib/localize.js +var eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z"], + + short: [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za"], + + abbreviated: [ + "zon", + "maa", + "din", + "woe", + "don", + "vri", + "zat"], + + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s 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/nl.js +/** +* @category Locales +* @summary Dutch locale. +* @language Dutch +* @iso-639-2 nld +* @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) +* @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) +* @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) +* @author Edo Rivai [@edorivai](https://github.com/edorivai) +* @author Niels Keurentjes [@curry684](https://github.com/curry684) +* @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) +*/ +var nl = { + code: "nl", + 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: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/, /^n/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/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.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|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: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mei/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^z/i, + /^m/i, + /^d/i, + /^w/i, + /^d/i, + /^v/i, + /^z/i], + + any: [ + /^zo/i, + /^ma/i, + /^di/i, + /^wo/i, + /^do/i, + /^vr/i, + /^za/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/nl/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), {}, { + nl: nl }) }); + + +//#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/nl/cdn.min.js b/node_modules/date-fns/locale/nl/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..3b761451aa0bdd2528013e1131805d78d08c5de8 --- /dev/null +++ b/node_modules/date-fns/locale/nl/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?`over `+r:r+` geleden`: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:`'afgelopen' eeee 'om' p`,yesterday:`'gisteren om' p`,today:`'vandaag om' p`,tomorrow:`'morgen 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:[`v.C.`,`n.C.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`voor Christus`,`na Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e kwartaal`,`2e kwartaal`,`3e kwartaal`,`4e kwartaal`]},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.`,`mei`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`maart`,`april`,`mei`,`juni`,`juli`,`augustus`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Z`,`M`,`D`,`W`,`D`,`V`,`Z`],short:[`zo`,`ma`,`di`,`wo`,`do`,`vr`,`za`],abbreviated:[`zon`,`maa`,`din`,`woe`,`don`,`vri`,`zat`],wide:[`zondag`,`maandag`,`dinsdag`,`woensdag`,`donderdag`,`vrijdag`,`zaterdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s 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:`nl`,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:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/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.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{nl: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/nn.cjs b/node_modules/date-fns/locale/nn.cjs new file mode 100644 index 0000000000000000000000000000000000000000..99e98ba6793380e56b5f4b9df25704d2d4f1f63d --- /dev/null +++ b/node_modules/date-fns/locale/nn.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.nn = void 0; +var _index = require("./nn/_lib/formatDistance.cjs"); +var _index2 = require("./nn/_lib/formatLong.cjs"); +var _index3 = require("./nn/_lib/formatRelative.cjs"); +var _index4 = require("./nn/_lib/localize.cjs"); +var _index5 = require("./nn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +const nn = (exports.nn = { + code: "nn", + 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/nn.d.cts b/node_modules/date-fns/locale/nn.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..c4447d999c22ead35190ab1d46c25bce532dc1a1 --- /dev/null +++ b/node_modules/date-fns/locale/nn.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +export declare const nn: Locale; diff --git a/node_modules/date-fns/locale/nn.d.ts b/node_modules/date-fns/locale/nn.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..c4447d999c22ead35190ab1d46c25bce532dc1a1 --- /dev/null +++ b/node_modules/date-fns/locale/nn.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +export declare const nn: Locale; diff --git a/node_modules/date-fns/locale/nn.js b/node_modules/date-fns/locale/nn.js new file mode 100644 index 0000000000000000000000000000000000000000..ce3f7bc156f81a64c6f928ff40ca68950d2c1609 --- /dev/null +++ b/node_modules/date-fns/locale/nn.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./nn/_lib/formatDistance.js"; +import { formatLong } from "./nn/_lib/formatLong.js"; +import { formatRelative } from "./nn/_lib/formatRelative.js"; +import { localize } from "./nn/_lib/localize.js"; +import { match } from "./nn/_lib/match.js"; + +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +export const nn = { + code: "nn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default nn; diff --git a/node_modules/date-fns/locale/nn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/nn/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..44e33c1892d3a85bcbcd62d4d668bf8fca8564b2 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance.cjs @@ -0,0 +1,124 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn eitt sekund", + other: "mindre enn {{count}} sekund", + }, + + xSeconds: { + one: "eitt sekund", + other: "{{count}} sekund", + }, + + halfAMinute: "eit halvt minutt", + + lessThanXMinutes: { + one: "mindre enn eitt minutt", + other: "mindre enn {{count}} minutt", + }, + + xMinutes: { + one: "eitt minutt", + other: "{{count}} minutt", + }, + + aboutXHours: { + one: "omtrent ein time", + other: "omtrent {{count}} timar", + }, + + xHours: { + one: "ein time", + other: "{{count}} timar", + }, + + xDays: { + one: "ein dag", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "omtrent ei veke", + other: "omtrent {{count}} veker", + }, + + xWeeks: { + one: "ei veke", + other: "{{count}} veker", + }, + + aboutXMonths: { + one: "omtrent ein månad", + other: "omtrent {{count}} månader", + }, + + xMonths: { + one: "ein månad", + other: "{{count}} månader", + }, + + aboutXYears: { + one: "omtrent eitt år", + other: "omtrent {{count}} år", + }, + + xYears: { + one: "eitt år", + other: "{{count}} år", + }, + + overXYears: { + one: "over eitt år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "nesten eitt år", + other: "nesten {{count}} år", + }, +}; + +const wordMapping = [ + "null", + "ein", + "to", + "tre", + "fire", + "fem", + "seks", + "sju", + "åtte", + "ni", + "ti", + "elleve", + "tolv", +]; + +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 < 13 ? wordMapping[count] : String(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " sidan"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/nn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/nn/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/nn/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/formatDistance.js b/node_modules/date-fns/locale/nn/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..74883ee9f5860c72b94fd8a834498d43908e8119 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance.js @@ -0,0 +1,120 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn eitt sekund", + other: "mindre enn {{count}} sekund", + }, + + xSeconds: { + one: "eitt sekund", + other: "{{count}} sekund", + }, + + halfAMinute: "eit halvt minutt", + + lessThanXMinutes: { + one: "mindre enn eitt minutt", + other: "mindre enn {{count}} minutt", + }, + + xMinutes: { + one: "eitt minutt", + other: "{{count}} minutt", + }, + + aboutXHours: { + one: "omtrent ein time", + other: "omtrent {{count}} timar", + }, + + xHours: { + one: "ein time", + other: "{{count}} timar", + }, + + xDays: { + one: "ein dag", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "omtrent ei veke", + other: "omtrent {{count}} veker", + }, + + xWeeks: { + one: "ei veke", + other: "{{count}} veker", + }, + + aboutXMonths: { + one: "omtrent ein månad", + other: "omtrent {{count}} månader", + }, + + xMonths: { + one: "ein månad", + other: "{{count}} månader", + }, + + aboutXYears: { + one: "omtrent eitt år", + other: "omtrent {{count}} år", + }, + + xYears: { + one: "eitt år", + other: "{{count}} år", + }, + + overXYears: { + one: "over eitt år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "nesten eitt år", + other: "nesten {{count}} år", + }, +}; + +const wordMapping = [ + "null", + "ein", + "to", + "tre", + "fire", + "fem", + "seks", + "sju", + "åtte", + "ni", + "ti", + "elleve", + "tolv", +]; + +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 < 13 ? wordMapping[count] : String(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " sidan"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/nn/_lib/formatLong.cjs b/node_modules/date-fns/locale/nn/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e0de253bd45300128b97dba36bb2b2ab4ea37cec --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{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/nn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/nn/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/nn/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/formatLong.js b/node_modules/date-fns/locale/nn/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..fb4ed8b77f54faf7808a20a8a76cd172cb5c8322 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{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/nn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/nn/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..21cd2335495559c20edf21589a74a3e39571cb5f --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'førre' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/nn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/nn/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/nn/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/formatRelative.js b/node_modules/date-fns/locale/nn/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..e66834ee5cdd14c79e3b7c54d0d99d81e832d6d2 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'førre' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/nn/_lib/localize.cjs b/node_modules/date-fns/locale/nn/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..8aa0e2f196f40571d1e1f15a4163d92f2c7d8764 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["su", "må", "ty", "on", "to", "fr", "lau"], + abbreviated: ["sun", "mån", "tys", "ons", "tor", "fre", "laur"], + wide: [ + "sundag", + "måndag", + "tysdag", + "onsdag", + "torsdag", + "fredag", + "laurdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natta", + }, +}; + +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", + }), +}); diff --git a/node_modules/date-fns/locale/nn/_lib/localize.d.cts b/node_modules/date-fns/locale/nn/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/localize.d.ts b/node_modules/date-fns/locale/nn/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/localize.js b/node_modules/date-fns/locale/nn/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..a276dfaacd1931ebf150dd0d01780329540d10b7 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["su", "må", "ty", "on", "to", "fr", "lau"], + abbreviated: ["sun", "mån", "tys", "ons", "tor", "fre", "laur"], + wide: [ + "sundag", + "måndag", + "tysdag", + "onsdag", + "torsdag", + "fredag", + "laurdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natta", + }, +}; + +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", + }), +}; diff --git a/node_modules/date-fns/locale/nn/_lib/match.cjs b/node_modules/date-fns/locale/nn/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7855cc72b098c71ab8a63b5ad42f4f34e2161328 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/match.cjs @@ -0,0 +1,134 @@ +"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: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^e/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/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, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(su|må|ty|on|to|fr|la)/i, + abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i, + wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ty/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/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/nn/_lib/match.d.cts b/node_modules/date-fns/locale/nn/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/match.d.ts b/node_modules/date-fns/locale/nn/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_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/nn/_lib/match.js b/node_modules/date-fns/locale/nn/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..c670d4f8c3eab89f849885e3479f720e1a6191da --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^e/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/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, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(su|må|ty|on|to|fr|la)/i, + abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i, + wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ty/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/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/nn/cdn.js b/node_modules/date-fns/locale/nn/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..0d14c03e381ab5193cd1798a9282530028ffa34e --- /dev/null +++ b/node_modules/date-fns/locale/nn/cdn.js @@ -0,0 +1,543 @@ +(() => { +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/nn/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn eitt sekund", + other: "mindre enn {{count}} sekund" + }, + xSeconds: { + one: "eitt sekund", + other: "{{count}} sekund" + }, + halfAMinute: "eit halvt minutt", + lessThanXMinutes: { + one: "mindre enn eitt minutt", + other: "mindre enn {{count}} minutt" + }, + xMinutes: { + one: "eitt minutt", + other: "{{count}} minutt" + }, + aboutXHours: { + one: "omtrent ein time", + other: "omtrent {{count}} timar" + }, + xHours: { + one: "ein time", + other: "{{count}} timar" + }, + xDays: { + one: "ein dag", + other: "{{count}} dagar" + }, + aboutXWeeks: { + one: "omtrent ei veke", + other: "omtrent {{count}} veker" + }, + xWeeks: { + one: "ei veke", + other: "{{count}} veker" + }, + aboutXMonths: { + one: "omtrent ein månad", + other: "omtrent {{count}} månader" + }, + xMonths: { + one: "ein månad", + other: "{{count}} månader" + }, + aboutXYears: { + one: "omtrent eitt år", + other: "omtrent {{count}} år" + }, + xYears: { + one: "eitt år", + other: "{{count}} år" + }, + overXYears: { + one: "over eitt år", + other: "over {{count}} år" + }, + almostXYears: { + one: "nesten eitt år", + other: "nesten {{count}} år" + } +}; +var wordMapping = [ +"null", +"ein", +"to", +"tre", +"fire", +"fem", +"seks", +"sju", +"åtte", +"ni", +"ti", +"elleve", +"tolv"]; + +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 < 13 ? wordMapping[count] : String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "om " + result;else + return result + " sidan"; + 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: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/nn/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'førre' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgon kl.' p", + nextWeek: "EEEE 'kl.' 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/nn/_lib/localize.js +var eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des."], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "O", + "T", + "F", + "L"], + + short: [ + "su", + "må", + "ty", + "on", + "to", + "fr", + "lau"], + + abbreviated: [ + "sun", + "mån", + "tys", + "ons", + "tor", + "fre", + "laur"], + + wide: [ + "sundag", + "måndag", + "tysdag", + "onsdag", + "torsdag", + "fredag", + "laurdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natta" + } +}; +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" + }) +}; +//#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/nn.js +/** +* @category Locales +* @summary Norwegian Nynorsk locale. +* @language Norwegian Nynorsk +* @iso-639-2 nno +* @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) +*/ +var nn = { + code: "nn", + 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: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/i, /^e/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[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: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/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, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtofl]/i, + short: /^(su|må|ty|on|to|fr|la)/i, + abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i, + wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^s/i, + /^m/i, + /^ty/i, + /^o/i, + /^to/i, + /^f/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/nn/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), {}, { + nn: nn }) }); + + +//#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/nn/cdn.min.js b/node_modules/date-fns/locale/nn/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..52f3f836543c90245e031677aed2d9675da3da8e --- /dev/null +++ b/node_modules/date-fns/locale/nn/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?`om `+r:r+` sidan`:r};function l(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 u={date:l({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:l({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:l({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},d={lastWeek:`'førre' eeee 'kl.' p`,yesterday:`'i går kl.' p`,today:`'i dag kl.' p`,tomorrow:`'i morgon kl.' p`,nextWeek:`EEEE 'kl.' p`,other:`P`},f=function(e,t,n,r){return 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:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`før Kristus`,`etter Kristus`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apr.`,`mai`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`]},defaultWidth:`wide`}),day:p({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`su`,`må`,`ty`,`on`,`to`,`fr`,`lau`],abbreviated:[`sun`,`mån`,`tys`,`ons`,`tor`,`fre`,`laur`],wide:[`sundag`,`måndag`,`tysdag`,`onsdag`,`torsdag`,`fredag`,`laurdag`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`a`,pm:`p`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natta`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natta`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morgonen`,afternoon:`på ettermiddagen`,evening:`på kvelden`,night:`på natta`}},defaultWidth:`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:`nn`,formatDistance:c,formatLong:u,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[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:h({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/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,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{nn: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/oc.cjs b/node_modules/date-fns/locale/oc.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6d1bbca191d90930293cc5c09a787b2a6db06cb9 --- /dev/null +++ b/node_modules/date-fns/locale/oc.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.oc = void 0; +var _index = require("./oc/_lib/formatDistance.cjs"); +var _index2 = require("./oc/_lib/formatLong.cjs"); +var _index3 = require("./oc/_lib/formatRelative.cjs"); +var _index4 = require("./oc/_lib/localize.cjs"); +var _index5 = require("./oc/_lib/match.cjs"); + +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +const oc = (exports.oc = { + code: "oc", + 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/oc.d.cts b/node_modules/date-fns/locale/oc.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..46a1acdceb359ebd72abd2a27c2bd4e45b1a4aa5 --- /dev/null +++ b/node_modules/date-fns/locale/oc.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +export declare const oc: Locale; diff --git a/node_modules/date-fns/locale/oc.d.ts b/node_modules/date-fns/locale/oc.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..46a1acdceb359ebd72abd2a27c2bd4e45b1a4aa5 --- /dev/null +++ b/node_modules/date-fns/locale/oc.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +export declare const oc: Locale; diff --git a/node_modules/date-fns/locale/oc.js b/node_modules/date-fns/locale/oc.js new file mode 100644 index 0000000000000000000000000000000000000000..ea80b5f79d49e9244dca53c3416100303c869299 --- /dev/null +++ b/node_modules/date-fns/locale/oc.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./oc/_lib/formatDistance.js"; +import { formatLong } from "./oc/_lib/formatLong.js"; +import { formatRelative } from "./oc/_lib/formatRelative.js"; +import { localize } from "./oc/_lib/localize.js"; +import { match } from "./oc/_lib/match.js"; + +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +export const oc = { + code: "oc", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default oc; diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance.cjs b/node_modules/date-fns/locale/oc/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2e46bc7726f994df35c4b77afc79ee057664b74b --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mens d’una segonda", + other: "mens de {{count}} segondas", + }, + + xSeconds: { + one: "1 segonda", + other: "{{count}} segondas", + }, + + halfAMinute: "30 segondas", + + lessThanXMinutes: { + one: "mens d’una minuta", + other: "mens de {{count}} minutas", + }, + + xMinutes: { + one: "1 minuta", + other: "{{count}} minutas", + }, + + aboutXHours: { + one: "environ 1 ora", + other: "environ {{count}} oras", + }, + + xHours: { + one: "1 ora", + other: "{{count}} oras", + }, + + xDays: { + one: "1 jorn", + other: "{{count}} jorns", + }, + + aboutXWeeks: { + one: "environ 1 setmana", + other: "environ {{count}} setmanas", + }, + + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanas", + }, + + aboutXMonths: { + one: "environ 1 mes", + other: "environ {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans", + }, + + xYears: { + one: "1 an", + other: "{{count}} ans", + }, + + overXYears: { + one: "mai d’un an", + other: "mai de {{count}} ans", + }, + + almostXYears: { + one: "gaireben un an", + other: "gaireben {{count}} ans", + }, +}; + +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 "d’aquí " + result; + } else { + return "fa " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/oc/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/oc/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/formatDistance.js b/node_modules/date-fns/locale/oc/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..871d4edc7fa024a97dfd18f4f8376f4a1f5fc3b7 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mens d’una segonda", + other: "mens de {{count}} segondas", + }, + + xSeconds: { + one: "1 segonda", + other: "{{count}} segondas", + }, + + halfAMinute: "30 segondas", + + lessThanXMinutes: { + one: "mens d’una minuta", + other: "mens de {{count}} minutas", + }, + + xMinutes: { + one: "1 minuta", + other: "{{count}} minutas", + }, + + aboutXHours: { + one: "environ 1 ora", + other: "environ {{count}} oras", + }, + + xHours: { + one: "1 ora", + other: "{{count}} oras", + }, + + xDays: { + one: "1 jorn", + other: "{{count}} jorns", + }, + + aboutXWeeks: { + one: "environ 1 setmana", + other: "environ {{count}} setmanas", + }, + + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanas", + }, + + aboutXMonths: { + one: "environ 1 mes", + other: "environ {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans", + }, + + xYears: { + one: "1 an", + other: "{{count}} ans", + }, + + overXYears: { + one: "mai d’un an", + other: "mai de {{count}} ans", + }, + + almostXYears: { + one: "gaireben un an", + other: "gaireben {{count}} ans", + }, +}; + +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 "d’aquí " + result; + } else { + return "fa " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/oc/_lib/formatLong.cjs b/node_modules/date-fns/locale/oc/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f80c0f9c4d2d910dbfa01c1e6391b4544d30228b --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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}} 'a' {{time}}", + long: "{{date}} 'a' {{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/oc/_lib/formatLong.d.cts b/node_modules/date-fns/locale/oc/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/formatLong.d.ts b/node_modules/date-fns/locale/oc/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/formatLong.js b/node_modules/date-fns/locale/oc/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..8f38c403fff6d9f40fb689459b55129bfc7051a7 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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}} 'a' {{time}}", + long: "{{date}} 'a' {{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/oc/_lib/formatRelative.cjs b/node_modules/date-fns/locale/oc/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c1c5f21d15b214fe66d0dc66f53940ce53f537ee --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/oc/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/oc/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/oc/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/formatRelative.js b/node_modules/date-fns/locale/oc/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..948b4cbf17bd572abc95f3782f6cdbe8c581ad33 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/oc/_lib/localize.cjs b/node_modules/date-fns/locale/oc/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..5c9e31e3f5681a55e4594a44122fa039870cbef3 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/localize.cjs @@ -0,0 +1,205 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ab. J.C.", "apr. J.C."], + abbreviated: ["ab. J.C.", "apr. J.C."], + wide: ["abans Jèsus-Crist", "après Jèsus-Crist"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1èr trim.", "2nd trim.", "3en trim.", "4en trim."], + wide: ["1èr trimèstre", "2nd trimèstre", "3en trimèstre", "4en trimèstre"], +}; + +const monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MA", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DC", + ], + + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "mai", + "junh", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "dec.", + ], + + wide: [ + "genièr", + "febrièr", + "març", + "abril", + "mai", + "junh", + "julhet", + "agost", + "setembre", + "octòbre", + "novembre", + "decembre", + ], +}; + +const dayValues = { + narrow: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + short: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + abbreviated: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + wide: [ + "dimenge", + "diluns", + "dimars", + "dimècres", + "dijòus", + "divendres", + "dissabte", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + let ordinal; + + switch (number) { + case 1: + ordinal = "èr"; + break; + case 2: + ordinal = "nd"; + break; + default: + ordinal = "en"; + } + + // feminine for year, week, hour, minute, second + if ( + unit === "year" || + unit === "week" || + unit === "hour" || + unit === "minute" || + unit === "second" + ) { + ordinal += "a"; + } + + return number + ordinal; +}; + +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/oc/_lib/localize.d.cts b/node_modules/date-fns/locale/oc/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/localize.d.ts b/node_modules/date-fns/locale/oc/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/localize.js b/node_modules/date-fns/locale/oc/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..6a43dc94530220f59852df3d2f74c28836462112 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/localize.js @@ -0,0 +1,203 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ab. J.C.", "apr. J.C."], + abbreviated: ["ab. J.C.", "apr. J.C."], + wide: ["abans Jèsus-Crist", "après Jèsus-Crist"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1èr trim.", "2nd trim.", "3en trim.", "4en trim."], + wide: ["1èr trimèstre", "2nd trimèstre", "3en trimèstre", "4en trimèstre"], +}; + +const monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MA", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DC", + ], + + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "mai", + "junh", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "dec.", + ], + + wide: [ + "genièr", + "febrièr", + "març", + "abril", + "mai", + "junh", + "julhet", + "agost", + "setembre", + "octòbre", + "novembre", + "decembre", + ], +}; + +const dayValues = { + narrow: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + short: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + abbreviated: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + wide: [ + "dimenge", + "diluns", + "dimars", + "dimècres", + "dijòus", + "divendres", + "dissabte", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + let ordinal; + + switch (number) { + case 1: + ordinal = "èr"; + break; + case 2: + ordinal = "nd"; + break; + default: + ordinal = "en"; + } + + // feminine for year, week, hour, minute, second + if ( + unit === "year" || + unit === "week" || + unit === "hour" || + unit === "minute" || + unit === "second" + ) { + ordinal += "a"; + } + + return number + ordinal; +}; + +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/oc/_lib/match.cjs b/node_modules/date-fns/locale/oc/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..19b2f0da2feb898c1e608eae908372c88420fc90 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/match.cjs @@ -0,0 +1,130 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(èr|nd|en)?[a]?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i, +}; +const parseEraPatterns = { + any: [/^ab/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i, +}; +const parseMonthPatterns = { + any: [ + /^g/i, + /^f/i, + /^ma[r?]|MÇ/i, + /^ab/i, + /^ma[i?]/i, + /^ju[n?]|JN/i, + /^ju[l?]|JL/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i, +}; +const parseDayPatterns = { + narrow: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + short: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + abbreviated: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + + any: [ + /^dg|dime/i, + /^dl|dil/i, + /^dm|dima/i, + /^dc|dimè/i, + /^dj|dij/i, + /^dv|div/i, + /^ds|dis/i, + ], +}; + +const matchDayPeriodPatterns = { + any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/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/oc/_lib/match.d.cts b/node_modules/date-fns/locale/oc/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/match.d.ts b/node_modules/date-fns/locale/oc/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_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/oc/_lib/match.js b/node_modules/date-fns/locale/oc/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..bc9fc3e32243411c8e69322ae1b2aa2618aa492b --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/match.js @@ -0,0 +1,127 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(èr|nd|en)?[a]?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i, +}; +const parseEraPatterns = { + any: [/^ab/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i, +}; +const parseMonthPatterns = { + any: [ + /^g/i, + /^f/i, + /^ma[r?]|MÇ/i, + /^ab/i, + /^ma[i?]/i, + /^ju[n?]|JN/i, + /^ju[l?]|JL/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i, +}; +const parseDayPatterns = { + narrow: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + short: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + abbreviated: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + + any: [ + /^dg|dime/i, + /^dl|dil/i, + /^dm|dima/i, + /^dc|dimè/i, + /^dj|dij/i, + /^dv|div/i, + /^ds|dis/i, + ], +}; + +const matchDayPeriodPatterns = { + any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/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/oc/cdn.js b/node_modules/date-fns/locale/oc/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..922b4344e9085ccd8d75492332c040735d144e8e --- /dev/null +++ b/node_modules/date-fns/locale/oc/cdn.js @@ -0,0 +1,585 @@ +(() => { +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/oc/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mens d’una segonda", + other: "mens de {{count}} segondas" + }, + xSeconds: { + one: "1 segonda", + other: "{{count}} segondas" + }, + halfAMinute: "30 segondas", + lessThanXMinutes: { + one: "mens d’una minuta", + other: "mens de {{count}} minutas" + }, + xMinutes: { + one: "1 minuta", + other: "{{count}} minutas" + }, + aboutXHours: { + one: "environ 1 ora", + other: "environ {{count}} oras" + }, + xHours: { + one: "1 ora", + other: "{{count}} oras" + }, + xDays: { + one: "1 jorn", + other: "{{count}} jorns" + }, + aboutXWeeks: { + one: "environ 1 setmana", + other: "environ {{count}} setmanas" + }, + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanas" + }, + aboutXMonths: { + one: "environ 1 mes", + other: "environ {{count}} meses" + }, + xMonths: { + one: "1 mes", + other: "{{count}} meses" + }, + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans" + }, + xYears: { + one: "1 an", + other: "{{count}} ans" + }, + overXYears: { + one: "mai d’un an", + other: "mai de {{count}} ans" + }, + almostXYears: { + one: "gaireben un an", + other: "gaireben {{count}} ans" + } +}; +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 "d’aquí " + result;else + return "fa " + 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}} 'a' {{time}}", + long: "{{date}} 'a' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/oc/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' 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/oc/_lib/localize.js +var eraValues = { + narrow: ["ab. J.C.", "apr. J.C."], + abbreviated: ["ab. J.C.", "apr. J.C."], + wide: ["abans Jèsus-Crist", "après Jèsus-Crist"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1èr trim.", + "2nd trim.", + "3en trim.", + "4en trim."], + + wide: [ + "1èr trimèstre", + "2nd trimèstre", + "3en trimèstre", + "4en trimèstre"] + +}; +var monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MA", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DC"], + + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "mai", + "junh", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "dec."], + + wide: [ + "genièr", + "febrièr", + "març", + "abril", + "mai", + "junh", + "julhet", + "agost", + "setembre", + "octòbre", + "novembre", + "decembre"] + +}; +var dayValues = { + narrow: [ + "dg.", + "dl.", + "dm.", + "dc.", + "dj.", + "dv.", + "ds."], + + short: [ + "dg.", + "dl.", + "dm.", + "dc.", + "dj.", + "dv.", + "ds."], + + abbreviated: [ + "dg.", + "dl.", + "dm.", + "dc.", + "dj.", + "dv.", + "ds."], + + wide: [ + "dimenge", + "diluns", + "dimars", + "dimècres", + "dijòus", + "divendres", + "dissabte"] + +}; +var dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch" + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var ordinal; + switch (number) { + case 1: + ordinal = "èr"; + break; + case 2: + ordinal = "nd"; + break; + default:ordinal = "en"; + } + if (unit === "year" || unit === "week" || unit === "hour" || unit === "minute" || unit === "second") ordinal += "a"; + return number + ordinal; +}; +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/oc.js +/** +* @category Locales +* @summary Occitan locale. +* @language Occitan +* @iso-639-2 oci +* @author Quentin PAGÈS +*/ +var oc = { + code: "oc", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(èr|nd|en)?[a]?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ab/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/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: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^g/i, + /^f/i, + /^ma[r?]|MÇ/i, + /^ab/i, + /^ma[i?]/i, + /^ju[n?]|JN/i, + /^ju[l?]|JL/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^dg/i, + /^dl/i, + /^dm/i, + /^dc/i, + /^dj/i, + /^dv/i, + /^ds/i], + + short: [ + /^dg/i, + /^dl/i, + /^dm/i, + /^dc/i, + /^dj/i, + /^dv/i, + /^ds/i], + + abbreviated: [ + /^dg/i, + /^dl/i, + /^dm/i, + /^dc/i, + /^dj/i, + /^dv/i, + /^ds/i], + + any: [ + /^dg|dime/i, + /^dl|dil/i, + /^dm|dima/i, + /^dc|dimè/i, + /^dj|dij/i, + /^dv|div/i, + /^ds|dis/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/oc/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), {}, { + oc: oc }) }); + + +//#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/oc/cdn.min.js b/node_modules/date-fns/locale/oc/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..61ef2f95c59b75c2d743ce217182c94d85f4229d --- /dev/null +++ b/node_modules/date-fns/locale/oc/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?`d’aquí `+r:`fa `+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}} 'a' {{time}}`,long:`{{date}} 'a' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'passat a' p`,yesterday:`'ièr a' p`,today:`'uèi a' p`,tomorrow:`'deman a' p`,nextWeek:`eeee 'a' 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=t?.unit,i;switch(n){case 1:i=`èr`;break;case 2:i=`nd`;break;default:i=`en`}return(r===`year`||r===`week`||r===`hour`||r===`minute`||r===`second`)&&(i+=`a`),n+i},era:f({values:{narrow:[`ab. J.C.`,`apr. J.C.`],abbreviated:[`ab. J.C.`,`apr. J.C.`],wide:[`abans Jèsus-Crist`,`après Jèsus-Crist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1èr trim.`,`2nd trim.`,`3en trim.`,`4en trim.`],wide:[`1èr trimèstre`,`2nd trimèstre`,`3en trimèstre`,`4en trimèstre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`GN`,`FB`,`MÇ`,`AB`,`MA`,`JN`,`JL`,`AG`,`ST`,`OC`,`NV`,`DC`],abbreviated:[`gen.`,`febr.`,`març`,`abr.`,`mai`,`junh`,`jul.`,`ag.`,`set.`,`oct.`,`nov.`,`dec.`],wide:[`genièr`,`febrièr`,`març`,`abril`,`mai`,`junh`,`julhet`,`agost`,`setembre`,`octòbre`,`novembre`,`decembre`]},defaultWidth:`wide`}),day:f({values:{narrow:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],short:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],abbreviated:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],wide:[`dimenge`,`diluns`,`dimars`,`dimècres`,`dijòus`,`divendres`,`dissabte`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`},wide:{am:`ante meridiem`,pm:`post meridiem`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`}},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:`oc`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(èr|nd|en)?[a]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(abans Jèsus-Crist|après Jèsus-Crist)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ab/i,/^ap/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^T[1234]/i,abbreviated:/^[1234](èr|nd|en)? trim\.?/i,wide:/^[1234](èr|nd|en)? trimèstre/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:/^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,abbreviated:/^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,wide:/^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^g/i,/^f/i,/^ma[r?]|MÇ/i,/^ab/i,/^ma[i?]/i,/^ju[n?]|JN/i,/^ju[l?]|JL/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^d[glmcjvs]\.?/i,short:/^d[glmcjvs]\.?/i,abbreviated:/^d[glmcjvs]\.?/i,wide:/^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],short:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],abbreviated:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],any:[/^dg|dime/i,/^dl|dil/i,/^dm|dima/i,/^dc|dimè/i,/^dj|dij/i,/^dv|div/i,/^ds|dis/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/(^a)|ante meridiem/i,pm:/(^p)|post meridiem/i,midnight:/^mièj/i,noon:/^mièg/i,morning:/matin/i,afternoon:/aprèp-miègjorn/i,evening:/vèspre|ser/i,night:/nuèch/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{oc: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/pl.cjs b/node_modules/date-fns/locale/pl.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e570cd801d224a5ac0b6e6da2d2c55ca1fae3b9a --- /dev/null +++ b/node_modules/date-fns/locale/pl.cjs @@ -0,0 +1,30 @@ +"use strict"; +exports.pl = void 0; +var _index = require("./pl/_lib/formatDistance.cjs"); +var _index2 = require("./pl/_lib/formatLong.cjs"); +var _index3 = require("./pl/_lib/formatRelative.cjs"); +var _index4 = require("./pl/_lib/localize.cjs"); +var _index5 = require("./pl/_lib/match.cjs"); + +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +const pl = (exports.pl = { + code: "pl", + 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/pl.d.cts b/node_modules/date-fns/locale/pl.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..0e5c23a3e94cca3200a2cfdaf3001bee2395ad86 --- /dev/null +++ b/node_modules/date-fns/locale/pl.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +export declare const pl: Locale; diff --git a/node_modules/date-fns/locale/pl.d.ts b/node_modules/date-fns/locale/pl.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..0e5c23a3e94cca3200a2cfdaf3001bee2395ad86 --- /dev/null +++ b/node_modules/date-fns/locale/pl.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +export declare const pl: Locale; diff --git a/node_modules/date-fns/locale/pl.js b/node_modules/date-fns/locale/pl.js new file mode 100644 index 0000000000000000000000000000000000000000..606432754cc007b2b68466c6fb128058e8f26057 --- /dev/null +++ b/node_modules/date-fns/locale/pl.js @@ -0,0 +1,31 @@ +import { formatDistance } from "./pl/_lib/formatDistance.js"; +import { formatLong } from "./pl/_lib/formatLong.js"; +import { formatRelative } from "./pl/_lib/formatRelative.js"; +import { localize } from "./pl/_lib/localize.js"; +import { match } from "./pl/_lib/match.js"; + +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +export const pl = { + code: "pl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default pl; diff --git a/node_modules/date-fns/locale/pl/_lib/formatDistance.cjs b/node_modules/date-fns/locale/pl/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..250292646047b2d67616f9a9ef747c2c9a72a490 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance.cjs @@ -0,0 +1,170 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "mniej niż sekunda", + past: "mniej niż sekundę", + future: "mniej niż sekundę", + }, + twoFour: "mniej niż {{count}} sekundy", + other: "mniej niż {{count}} sekund", + }, + + xSeconds: { + one: { + regular: "sekunda", + past: "sekundę", + future: "sekundę", + }, + twoFour: "{{count}} sekundy", + other: "{{count}} sekund", + }, + + halfAMinute: { + one: "pół minuty", + twoFour: "pół minuty", + other: "pół minuty", + }, + + lessThanXMinutes: { + one: { + regular: "mniej niż minuta", + past: "mniej niż minutę", + future: "mniej niż minutę", + }, + twoFour: "mniej niż {{count}} minuty", + other: "mniej niż {{count}} minut", + }, + + xMinutes: { + one: { + regular: "minuta", + past: "minutę", + future: "minutę", + }, + twoFour: "{{count}} minuty", + other: "{{count}} minut", + }, + + aboutXHours: { + one: { + regular: "około godziny", + past: "około godziny", + future: "około godzinę", + }, + twoFour: "około {{count}} godziny", + other: "około {{count}} godzin", + }, + + xHours: { + one: { + regular: "godzina", + past: "godzinę", + future: "godzinę", + }, + twoFour: "{{count}} godziny", + other: "{{count}} godzin", + }, + + xDays: { + one: { + regular: "dzień", + past: "dzień", + future: "1 dzień", + }, + twoFour: "{{count}} dni", + other: "{{count}} dni", + }, + + aboutXWeeks: { + one: "około tygodnia", + twoFour: "około {{count}} tygodni", + other: "około {{count}} tygodni", + }, + + xWeeks: { + one: "tydzień", + twoFour: "{{count}} tygodnie", + other: "{{count}} tygodni", + }, + + aboutXMonths: { + one: "około miesiąc", + twoFour: "około {{count}} miesiące", + other: "około {{count}} miesięcy", + }, + + xMonths: { + one: "miesiąc", + twoFour: "{{count}} miesiące", + other: "{{count}} miesięcy", + }, + + aboutXYears: { + one: "około rok", + twoFour: "około {{count}} lata", + other: "około {{count}} lat", + }, + + xYears: { + one: "rok", + twoFour: "{{count}} lata", + other: "{{count}} lat", + }, + + overXYears: { + one: "ponad rok", + twoFour: "ponad {{count}} lata", + other: "ponad {{count}} lat", + }, + + almostXYears: { + one: "prawie rok", + twoFour: "prawie {{count}} lata", + other: "prawie {{count}} lat", + }, +}; + +function declensionGroup(scheme, count) { + if (count === 1) { + return scheme.one; + } + + const rem100 = count % 100; + + // ends with 11-20 + if (rem100 <= 20 && rem100 > 10) { + return scheme.other; + } + + const rem10 = rem100 % 10; + + // ends with 2, 3, 4 + if (rem10 >= 2 && rem10 <= 4) { + return scheme.twoFour; + } + + return scheme.other; +} + +function declension(scheme, count, time) { + const group = declensionGroup(scheme, count); + const finalText = typeof group === "string" ? group : group[time]; + return finalText.replace("{{count}}", String(count)); +} + +const formatDistance = (token, count, options) => { + const scheme = formatDistanceLocale[token]; + if (!options?.addSuffix) { + return declension(scheme, count, "regular"); + } + + if (options.comparison && options.comparison > 0) { + return "za " + declension(scheme, count, "future"); + } else { + return declension(scheme, count, "past") + " temu"; + } +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/pl/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/pl/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/pl/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/formatDistance.js b/node_modules/date-fns/locale/pl/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..7011d13ac21a15d5acab97b731914e6d3316e96a --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance.js @@ -0,0 +1,166 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "mniej niż sekunda", + past: "mniej niż sekundę", + future: "mniej niż sekundę", + }, + twoFour: "mniej niż {{count}} sekundy", + other: "mniej niż {{count}} sekund", + }, + + xSeconds: { + one: { + regular: "sekunda", + past: "sekundę", + future: "sekundę", + }, + twoFour: "{{count}} sekundy", + other: "{{count}} sekund", + }, + + halfAMinute: { + one: "pół minuty", + twoFour: "pół minuty", + other: "pół minuty", + }, + + lessThanXMinutes: { + one: { + regular: "mniej niż minuta", + past: "mniej niż minutę", + future: "mniej niż minutę", + }, + twoFour: "mniej niż {{count}} minuty", + other: "mniej niż {{count}} minut", + }, + + xMinutes: { + one: { + regular: "minuta", + past: "minutę", + future: "minutę", + }, + twoFour: "{{count}} minuty", + other: "{{count}} minut", + }, + + aboutXHours: { + one: { + regular: "około godziny", + past: "około godziny", + future: "około godzinę", + }, + twoFour: "około {{count}} godziny", + other: "około {{count}} godzin", + }, + + xHours: { + one: { + regular: "godzina", + past: "godzinę", + future: "godzinę", + }, + twoFour: "{{count}} godziny", + other: "{{count}} godzin", + }, + + xDays: { + one: { + regular: "dzień", + past: "dzień", + future: "1 dzień", + }, + twoFour: "{{count}} dni", + other: "{{count}} dni", + }, + + aboutXWeeks: { + one: "około tygodnia", + twoFour: "około {{count}} tygodni", + other: "około {{count}} tygodni", + }, + + xWeeks: { + one: "tydzień", + twoFour: "{{count}} tygodnie", + other: "{{count}} tygodni", + }, + + aboutXMonths: { + one: "około miesiąc", + twoFour: "około {{count}} miesiące", + other: "około {{count}} miesięcy", + }, + + xMonths: { + one: "miesiąc", + twoFour: "{{count}} miesiące", + other: "{{count}} miesięcy", + }, + + aboutXYears: { + one: "około rok", + twoFour: "około {{count}} lata", + other: "około {{count}} lat", + }, + + xYears: { + one: "rok", + twoFour: "{{count}} lata", + other: "{{count}} lat", + }, + + overXYears: { + one: "ponad rok", + twoFour: "ponad {{count}} lata", + other: "ponad {{count}} lat", + }, + + almostXYears: { + one: "prawie rok", + twoFour: "prawie {{count}} lata", + other: "prawie {{count}} lat", + }, +}; + +function declensionGroup(scheme, count) { + if (count === 1) { + return scheme.one; + } + + const rem100 = count % 100; + + // ends with 11-20 + if (rem100 <= 20 && rem100 > 10) { + return scheme.other; + } + + const rem10 = rem100 % 10; + + // ends with 2, 3, 4 + if (rem10 >= 2 && rem10 <= 4) { + return scheme.twoFour; + } + + return scheme.other; +} + +function declension(scheme, count, time) { + const group = declensionGroup(scheme, count); + const finalText = typeof group === "string" ? group : group[time]; + return finalText.replace("{{count}}", String(count)); +} + +export const formatDistance = (token, count, options) => { + const scheme = formatDistanceLocale[token]; + if (!options?.addSuffix) { + return declension(scheme, count, "regular"); + } + + if (options.comparison && options.comparison > 0) { + return "za " + declension(scheme, count, "future"); + } else { + return declension(scheme, count, "past") + " temu"; + } +}; diff --git a/node_modules/date-fns/locale/pl/_lib/formatLong.cjs b/node_modules/date-fns/locale/pl/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..93aab665dcf0c56f06779e0afa1b9b60956b53e2 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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: "do 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/pl/_lib/formatLong.d.cts b/node_modules/date-fns/locale/pl/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/formatLong.d.ts b/node_modules/date-fns/locale/pl/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/formatLong.js b/node_modules/date-fns/locale/pl/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..78403a92e2cc36dbbd46e4f7e80d3be97522a26c --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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: "do 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/pl/_lib/formatRelative.cjs b/node_modules/date-fns/locale/pl/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..339629c7c0eb2439398d8c2e73d109676405b9f4 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative.cjs @@ -0,0 +1,68 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const adjectivesLastWeek = { + masculine: "ostatni", + feminine: "ostatnia", +}; + +const adjectivesThisWeek = { + masculine: "ten", + feminine: "ta", +}; + +const adjectivesNextWeek = { + masculine: "następny", + feminine: "następna", +}; + +const dayGrammaticalGender = { + 0: "feminine", + 1: "masculine", + 2: "masculine", + 3: "feminine", + 4: "masculine", + 5: "masculine", + 6: "feminine", +}; + +function dayAndTimeWithAdjective(token, date, baseDate, options) { + let adjectives; + if ((0, _index.isSameWeek)(date, baseDate, options)) { + adjectives = adjectivesThisWeek; + } else if (token === "lastWeek") { + adjectives = adjectivesLastWeek; + } else if (token === "nextWeek") { + adjectives = adjectivesNextWeek; + } else { + throw new Error(`Cannot determine adjectives for token ${token}`); + } + + const day = date.getDay(); + const grammaticalGender = dayGrammaticalGender[day]; + + const adjective = adjectives[grammaticalGender]; + + return `'${adjective}' eeee 'o' p`; +} + +const formatRelativeLocale = { + lastWeek: dayAndTimeWithAdjective, + yesterday: "'wczoraj o' p", + today: "'dzisiaj o' p", + tomorrow: "'jutro o' p", + nextWeek: dayAndTimeWithAdjective, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(token, date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/pl/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/pl/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/pl/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/formatRelative.js b/node_modules/date-fns/locale/pl/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..d5f1f917f9640dc85d5c988ed57c94ec417912c5 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative.js @@ -0,0 +1,65 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const adjectivesLastWeek = { + masculine: "ostatni", + feminine: "ostatnia", +}; + +const adjectivesThisWeek = { + masculine: "ten", + feminine: "ta", +}; + +const adjectivesNextWeek = { + masculine: "następny", + feminine: "następna", +}; + +const dayGrammaticalGender = { + 0: "feminine", + 1: "masculine", + 2: "masculine", + 3: "feminine", + 4: "masculine", + 5: "masculine", + 6: "feminine", +}; + +function dayAndTimeWithAdjective(token, date, baseDate, options) { + let adjectives; + if (isSameWeek(date, baseDate, options)) { + adjectives = adjectivesThisWeek; + } else if (token === "lastWeek") { + adjectives = adjectivesLastWeek; + } else if (token === "nextWeek") { + adjectives = adjectivesNextWeek; + } else { + throw new Error(`Cannot determine adjectives for token ${token}`); + } + + const day = date.getDay(); + const grammaticalGender = dayGrammaticalGender[day]; + + const adjective = adjectives[grammaticalGender]; + + return `'${adjective}' eeee 'o' p`; +} + +const formatRelativeLocale = { + lastWeek: dayAndTimeWithAdjective, + yesterday: "'wczoraj o' p", + today: "'dzisiaj o' p", + tomorrow: "'jutro o' p", + nextWeek: dayAndTimeWithAdjective, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(token, date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/pl/_lib/localize.cjs b/node_modules/date-fns/locale/pl/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..81896cb78b4d14b42e6ce6ff27e4c569aa82f8aa --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/localize.cjs @@ -0,0 +1,215 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["p.n.e.", "n.e."], + abbreviated: ["p.n.e.", "n.e."], + wide: ["przed naszą erą", "naszej ery"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I kw.", "II kw.", "III kw.", "IV kw."], + wide: ["I kwartał", "II kwartał", "III kwartał", "IV kwartał"], +}; + +const monthValues = { + narrow: ["S", "L", "M", "K", "M", "C", "L", "S", "W", "P", "L", "G"], + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru", + ], + + wide: [ + "styczeń", + "luty", + "marzec", + "kwiecień", + "maj", + "czerwiec", + "lipiec", + "sierpień", + "wrzesień", + "październik", + "listopad", + "grudzień", + ], +}; +const monthFormattingValues = { + narrow: ["s", "l", "m", "k", "m", "c", "l", "s", "w", "p", "l", "g"], + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru", + ], + + wide: [ + "stycznia", + "lutego", + "marca", + "kwietnia", + "maja", + "czerwca", + "lipca", + "sierpnia", + "września", + "października", + "listopada", + "grudnia", + ], +}; + +const dayValues = { + narrow: ["N", "P", "W", "Ś", "C", "P", "S"], + short: ["nie", "pon", "wto", "śro", "czw", "pią", "sob"], + abbreviated: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota", + ], +}; +const dayFormattingValues = { + narrow: ["n", "p", "w", "ś", "c", "p", "s"], + short: ["nie", "pon", "wto", "śro", "czw", "pią", "sob"], + abbreviated: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "półn.", + noon: "poł", + morning: "rano", + afternoon: "popoł.", + evening: "wiecz.", + night: "noc", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc", + }, +}; + +const dayPeriodFormattingValues = { + narrow: { + am: "a", + pm: "p", + midnight: "o półn.", + noon: "w poł.", + morning: "rano", + afternoon: "po poł.", + evening: "wiecz.", + night: "w nocy", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy", + }, +}; + +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", + formattingValues: monthFormattingValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayFormattingValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: dayPeriodFormattingValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/pl/_lib/localize.d.cts b/node_modules/date-fns/locale/pl/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/localize.d.ts b/node_modules/date-fns/locale/pl/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/localize.js b/node_modules/date-fns/locale/pl/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..4c540901667239ca630739f25c65da5834c54e52 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/localize.js @@ -0,0 +1,213 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["p.n.e.", "n.e."], + abbreviated: ["p.n.e.", "n.e."], + wide: ["przed naszą erą", "naszej ery"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I kw.", "II kw.", "III kw.", "IV kw."], + wide: ["I kwartał", "II kwartał", "III kwartał", "IV kwartał"], +}; + +const monthValues = { + narrow: ["S", "L", "M", "K", "M", "C", "L", "S", "W", "P", "L", "G"], + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru", + ], + + wide: [ + "styczeń", + "luty", + "marzec", + "kwiecień", + "maj", + "czerwiec", + "lipiec", + "sierpień", + "wrzesień", + "październik", + "listopad", + "grudzień", + ], +}; +const monthFormattingValues = { + narrow: ["s", "l", "m", "k", "m", "c", "l", "s", "w", "p", "l", "g"], + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru", + ], + + wide: [ + "stycznia", + "lutego", + "marca", + "kwietnia", + "maja", + "czerwca", + "lipca", + "sierpnia", + "września", + "października", + "listopada", + "grudnia", + ], +}; + +const dayValues = { + narrow: ["N", "P", "W", "Ś", "C", "P", "S"], + short: ["nie", "pon", "wto", "śro", "czw", "pią", "sob"], + abbreviated: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota", + ], +}; +const dayFormattingValues = { + narrow: ["n", "p", "w", "ś", "c", "p", "s"], + short: ["nie", "pon", "wto", "śro", "czw", "pią", "sob"], + abbreviated: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "półn.", + noon: "poł", + morning: "rano", + afternoon: "popoł.", + evening: "wiecz.", + night: "noc", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc", + }, +}; + +const dayPeriodFormattingValues = { + narrow: { + am: "a", + pm: "p", + midnight: "o półn.", + noon: "w poł.", + morning: "rano", + afternoon: "po poł.", + evening: "wiecz.", + night: "w nocy", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy", + }, +}; + +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", + formattingValues: monthFormattingValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayFormattingValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: dayPeriodFormattingValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/pl/_lib/match.cjs b/node_modules/date-fns/locale/pl/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7296bcbd63daafe1d7752924d188ffc672fac48d --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i, +}; +const parseEraPatterns = { + any: [/^p/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^(I|II|III|IV)\s*kw\.?/i, + wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i], +}; + +const matchMonthPatterns = { + narrow: /^[slmkcwpg]/i, + abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, + wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^s/i, + /^l/i, + /^m/i, + /^k/i, + /^m/i, + /^c/i, + /^l/i, + /^s/i, + /^w/i, + /^p/i, + /^l/i, + /^g/i, + ], + + any: [ + /^st/i, + /^lu/i, + /^mar/i, + /^k/i, + /^maj/i, + /^c/i, + /^lip/i, + /^si/i, + /^w/i, + /^p/i, + /^lis/i, + /^g/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npwścs]/i, + short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, + abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, + wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^w/i, /^ś/i, /^c/i, /^p/i, /^s/i], + abbreviated: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pt/i, /^so/i], + + any: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pi/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, + any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^a$/i, + pm: /^p$/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i, + }, + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/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/pl/_lib/match.d.cts b/node_modules/date-fns/locale/pl/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/match.d.ts b/node_modules/date-fns/locale/pl/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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/pl/_lib/match.js b/node_modules/date-fns/locale/pl/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..58eed33c9b185c01801fb5cfa0e9f66494de2d3d --- /dev/null +++ b/node_modules/date-fns/locale/pl/_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: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i, +}; +const parseEraPatterns = { + any: [/^p/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^(I|II|III|IV)\s*kw\.?/i, + wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i], +}; + +const matchMonthPatterns = { + narrow: /^[slmkcwpg]/i, + abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, + wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^s/i, + /^l/i, + /^m/i, + /^k/i, + /^m/i, + /^c/i, + /^l/i, + /^s/i, + /^w/i, + /^p/i, + /^l/i, + /^g/i, + ], + + any: [ + /^st/i, + /^lu/i, + /^mar/i, + /^k/i, + /^maj/i, + /^c/i, + /^lip/i, + /^si/i, + /^w/i, + /^p/i, + /^lis/i, + /^g/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npwścs]/i, + short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, + abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, + wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^w/i, /^ś/i, /^c/i, /^p/i, /^s/i], + abbreviated: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pt/i, /^so/i], + + any: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pi/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, + any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^a$/i, + pm: /^p$/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i, + }, + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/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/pl/cdn.js b/node_modules/date-fns/locale/pl/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..051074666efabf97e495eda2771e5c543c251e3e --- /dev/null +++ b/node_modules/date-fns/locale/pl/cdn.js @@ -0,0 +1,974 @@ +(() => { +var _window$dateFns;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);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}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);} //#region dist/date-fns/locale/pl/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "mniej niż sekunda", + past: "mniej niż sekundę", + future: "mniej niż sekundę" + }, + twoFour: "mniej niż {{count}} sekundy", + other: "mniej niż {{count}} sekund" + }, + xSeconds: { + one: { + regular: "sekunda", + past: "sekundę", + future: "sekundę" + }, + twoFour: "{{count}} sekundy", + other: "{{count}} sekund" + }, + halfAMinute: { + one: "pół minuty", + twoFour: "pół minuty", + other: "pół minuty" + }, + lessThanXMinutes: { + one: { + regular: "mniej niż minuta", + past: "mniej niż minutę", + future: "mniej niż minutę" + }, + twoFour: "mniej niż {{count}} minuty", + other: "mniej niż {{count}} minut" + }, + xMinutes: { + one: { + regular: "minuta", + past: "minutę", + future: "minutę" + }, + twoFour: "{{count}} minuty", + other: "{{count}} minut" + }, + aboutXHours: { + one: { + regular: "około godziny", + past: "około godziny", + future: "około godzinę" + }, + twoFour: "około {{count}} godziny", + other: "około {{count}} godzin" + }, + xHours: { + one: { + regular: "godzina", + past: "godzinę", + future: "godzinę" + }, + twoFour: "{{count}} godziny", + other: "{{count}} godzin" + }, + xDays: { + one: { + regular: "dzień", + past: "dzień", + future: "1 dzień" + }, + twoFour: "{{count}} dni", + other: "{{count}} dni" + }, + aboutXWeeks: { + one: "około tygodnia", + twoFour: "około {{count}} tygodni", + other: "około {{count}} tygodni" + }, + xWeeks: { + one: "tydzień", + twoFour: "{{count}} tygodnie", + other: "{{count}} tygodni" + }, + aboutXMonths: { + one: "około miesiąc", + twoFour: "około {{count}} miesiące", + other: "około {{count}} miesięcy" + }, + xMonths: { + one: "miesiąc", + twoFour: "{{count}} miesiące", + other: "{{count}} miesięcy" + }, + aboutXYears: { + one: "około rok", + twoFour: "około {{count}} lata", + other: "około {{count}} lat" + }, + xYears: { + one: "rok", + twoFour: "{{count}} lata", + other: "{{count}} lat" + }, + overXYears: { + one: "ponad rok", + twoFour: "ponad {{count}} lata", + other: "ponad {{count}} lat" + }, + almostXYears: { + one: "prawie rok", + twoFour: "prawie {{count}} lata", + other: "prawie {{count}} lat" + } +}; +function declensionGroup(scheme, count) { + if (count === 1) return scheme.one; + var rem100 = count % 100; + if (rem100 <= 20 && rem100 > 10) return scheme.other; + var rem10 = rem100 % 10; + if (rem10 >= 2 && rem10 <= 4) return scheme.twoFour; + return scheme.other; +} +function declension(scheme, count, time) { + var group = declensionGroup(scheme, count); + return (typeof group === "string" ? group : group[time]).replace("{{count}}", String(count)); +} +var formatDistance = function formatDistance(token, count, options) { + var scheme = formatDistanceLocale[token]; + if (!(options !== null && options !== void 0 && options.addSuffix)) return declension(scheme, count, "regular"); + if (options.comparison && options.comparison > 0) return "za " + declension(scheme, count, "future");else + return declension(scheme, count, "past") + " temu"; +}; +//#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: "do 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" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/pl/_lib/formatRelative.js +var adjectivesLastWeek = { + masculine: "ostatni", + feminine: "ostatnia" +}; +var adjectivesThisWeek = { + masculine: "ten", + feminine: "ta" +}; +var adjectivesNextWeek = { + masculine: "następny", + feminine: "następna" +}; +var dayGrammaticalGender = { + 0: "feminine", + 1: "masculine", + 2: "masculine", + 3: "feminine", + 4: "masculine", + 5: "masculine", + 6: "feminine" +}; +function dayAndTimeWithAdjective(token, date, baseDate, options) { + var adjectives; + if (isSameWeek(date, baseDate, options)) adjectives = adjectivesThisWeek;else + if (token === "lastWeek") adjectives = adjectivesLastWeek;else + if (token === "nextWeek") adjectives = adjectivesNextWeek;else + throw new Error("Cannot determine adjectives for token ".concat(token)); + var grammaticalGender = dayGrammaticalGender[date.getDay()]; + return "'".concat(adjectives[grammaticalGender], "' eeee 'o' p"); +} +var formatRelativeLocale = { + lastWeek: dayAndTimeWithAdjective, + yesterday: "'wczoraj o' p", + today: "'dzisiaj o' p", + tomorrow: "'jutro o' p", + nextWeek: dayAndTimeWithAdjective, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(token, date, baseDate, options); + 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/pl/_lib/localize.js +var eraValues = { + narrow: ["p.n.e.", "n.e."], + abbreviated: ["p.n.e.", "n.e."], + wide: ["przed naszą erą", "naszej ery"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "I kw.", + "II kw.", + "III kw.", + "IV kw."], + + wide: [ + "I kwartał", + "II kwartał", + "III kwartał", + "IV kwartał"] + +}; +var monthValues = { + narrow: [ + "S", + "L", + "M", + "K", + "M", + "C", + "L", + "S", + "W", + "P", + "L", + "G"], + + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru"], + + wide: [ + "styczeń", + "luty", + "marzec", + "kwiecień", + "maj", + "czerwiec", + "lipiec", + "sierpień", + "wrzesień", + "październik", + "listopad", + "grudzień"] + +}; +var monthFormattingValues = { + narrow: [ + "s", + "l", + "m", + "k", + "m", + "c", + "l", + "s", + "w", + "p", + "l", + "g"], + + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru"], + + wide: [ + "stycznia", + "lutego", + "marca", + "kwietnia", + "maja", + "czerwca", + "lipca", + "sierpnia", + "września", + "października", + "listopada", + "grudnia"] + +}; +var dayValues = { + narrow: [ + "N", + "P", + "W", + "Ś", + "C", + "P", + "S"], + + short: [ + "nie", + "pon", + "wto", + "śro", + "czw", + "pią", + "sob"], + + abbreviated: [ + "niedz.", + "pon.", + "wt.", + "śr.", + "czw.", + "pt.", + "sob."], + + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota"] + +}; +var dayFormattingValues = { + narrow: [ + "n", + "p", + "w", + "ś", + "c", + "p", + "s"], + + short: [ + "nie", + "pon", + "wto", + "śro", + "czw", + "pią", + "sob"], + + abbreviated: [ + "niedz.", + "pon.", + "wt.", + "śr.", + "czw.", + "pt.", + "sob."], + + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "półn.", + noon: "poł", + morning: "rano", + afternoon: "popoł.", + evening: "wiecz.", + night: "noc" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc" + } +}; +var dayPeriodFormattingValues = { + narrow: { + am: "a", + pm: "p", + midnight: "o półn.", + noon: "w poł.", + morning: "rano", + afternoon: "po poł.", + evening: "wiecz.", + night: "w nocy" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy" + } +}; +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", + formattingValues: monthFormattingValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayFormattingValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: dayPeriodFormattingValues, + 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/pl.js +/** +* @category Locales +* @summary Polish locale. +* @language Polish +* @iso-639-2 pol +* @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) +* @author Just RAG [@justrag](https://github.com/justrag) +* @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) +*/ +var pl = { + code: "pl", + 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: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^p/i, /^n/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^(I|II|III|IV)\s*kw\.?/i, + wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i], + + any: [ + /^I kw/i, + /^II kw/i, + /^III kw/i, + /^IV kw/i] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[slmkcwpg]/i, + abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, + wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^l/i, + /^m/i, + /^k/i, + /^m/i, + /^c/i, + /^l/i, + /^s/i, + /^w/i, + /^p/i, + /^l/i, + /^g/i], + + any: [ + /^st/i, + /^lu/i, + /^mar/i, + /^k/i, + /^maj/i, + /^c/i, + /^lip/i, + /^si/i, + /^w/i, + /^p/i, + /^lis/i, + /^g/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npwścs]/i, + short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, + abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, + wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^n/i, + /^p/i, + /^w/i, + /^ś/i, + /^c/i, + /^p/i, + /^s/i], + + abbreviated: [ + /^n/i, + /^po/i, + /^w/i, + /^(ś|s)r/i, + /^c/i, + /^pt/i, + /^so/i], + + any: [ + /^n/i, + /^po/i, + /^w/i, + /^(ś|s)r/i, + /^c/i, + /^pi/i, + /^so/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, + any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i + }, + defaultMatchWidth: "any", + parsePatterns: { + narrow: { + am: /^a$/i, + pm: /^p$/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i + }, + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i + } + }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/pl/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), {}, { + pl: pl }) }); + + +//#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/pl/cdn.min.js b/node_modules/date-fns/locale/pl/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..2341fe69ff0e273dd109cd27d65c3fb9b88302a4 --- /dev/null +++ b/node_modules/date-fns/locale/pl/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(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 t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function m(e,t,n){var r=p(e,t);return(typeof r==`string`?r:r[n]).replace(`{{count}}`,String(t))}var h=function(e,t,n){var r=f[e];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+m(r,t,`future`):m(r,t,`past`)+` temu`:m(r,t,`regular`)};function g(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 _={date:g({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:g({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:g({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},v=Symbol.for(`constructDateFrom`);function y(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&v in e?e[v](t):e instanceof Date?new e.constructor(t):new Date(t)}function b(e){var t=[...arguments].slice(1),n=y.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var x={};function S(){return x}function C(e,t){return y(t||e,e)}function w(e,t){var n,r,i=S(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=C(e,t?.in),s=o.getDay(),c=(s1&&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)?L(s,function(e){return e.test(o)}):I(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 I(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function L(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 z={code:`pl`,formatDistance:h,formatLong:_,formatRelative:M,localize:P,match:{ordinalNumber:R({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:`any`}),quarter:F({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:F({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:`any`}),day:F({matchPatterns:{narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:F({matchPatterns:{narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{pl:z})}),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/pt-BR.cjs b/node_modules/date-fns/locale/pt-BR.cjs new file mode 100644 index 0000000000000000000000000000000000000000..508556da509489311412642d040a1afbc4a3ee36 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.ptBR = void 0; +var _index = require("./pt-BR/_lib/formatDistance.cjs"); +var _index2 = require("./pt-BR/_lib/formatLong.cjs"); +var _index3 = require("./pt-BR/_lib/formatRelative.cjs"); +var _index4 = require("./pt-BR/_lib/localize.cjs"); +var _index5 = require("./pt-BR/_lib/match.cjs"); + +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +const ptBR = (exports.ptBR = { + code: "pt-BR", + 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/pt-BR.d.cts b/node_modules/date-fns/locale/pt-BR.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..56862fb802b33bf259fa2042cd2cc91c56f99a1b --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +export declare const ptBR: Locale; diff --git a/node_modules/date-fns/locale/pt-BR.d.ts b/node_modules/date-fns/locale/pt-BR.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..56862fb802b33bf259fa2042cd2cc91c56f99a1b --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +export declare const ptBR: Locale; diff --git a/node_modules/date-fns/locale/pt-BR.js b/node_modules/date-fns/locale/pt-BR.js new file mode 100644 index 0000000000000000000000000000000000000000..6fc37c5492c059fdf0285f2dd064373b20c3acb7 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./pt-BR/_lib/formatDistance.js"; +import { formatLong } from "./pt-BR/_lib/formatLong.js"; +import { formatRelative } from "./pt-BR/_lib/formatRelative.js"; +import { localize } from "./pt-BR/_lib/localize.js"; +import { match } from "./pt-BR/_lib/match.js"; + +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +export const ptBR = { + code: "pt-BR", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ptBR; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..eb6c4becf7d44429bad7efc6f42952a912e41800 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "meio minuto", + + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "cerca de 1 hora", + other: "cerca de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dias", + }, + + aboutXWeeks: { + one: "cerca de 1 semana", + other: "cerca de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "cerca de 1 mês", + other: "cerca de {{count}} meses", + }, + + xMonths: { + one: "1 mês", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "cerca de 1 ano", + other: "cerca de {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos", + }, + + almostXYears: { + one: "quase 1 ano", + other: "quase {{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 "em " + result; + } else { + return "há " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/formatDistance.js b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..bef08d4335b8f4ef75d1e448160ba89c5d4966f9 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "meio minuto", + + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "cerca de 1 hora", + other: "cerca de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dias", + }, + + aboutXWeeks: { + one: "cerca de 1 semana", + other: "cerca de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "cerca de 1 mês", + other: "cerca de {{count}} meses", + }, + + xMonths: { + one: "1 mês", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "cerca de 1 ano", + other: "cerca de {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos", + }, + + almostXYears: { + one: "quase 1 ano", + other: "quase {{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 "em " + result; + } else { + return "há " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f592144ae14cf5726ad56fb19fe99aa3156b5955 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/yyyy", +}; + +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/pt-BR/_lib/formatLong.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/formatLong.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/formatLong.js b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..68e5da0b7e84118ed98dcb07fe772327f5bf5e57 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/yyyy", +}; + +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/pt-BR/_lib/formatRelative.cjs b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..dc42dcce189332eb4782ad39671de6c64cefd54f --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs @@ -0,0 +1,26 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const weekday = date.getDay(); + const last = weekday === 0 || weekday === 6 ? "último" : "última"; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' 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/pt-BR/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/formatRelative.js b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..bf7bba4498b06f69ce643406553050dd9f3b47e4 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js @@ -0,0 +1,22 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const weekday = date.getDay(); + const last = weekday === 0 || weekday === 6 ? "último" : "última"; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' 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/pt-BR/_lib/localize.cjs b/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f90df013e58fbe7bde25533967f4e70bcb0b82a7 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs @@ -0,0 +1,179 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "depois 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: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez", + ], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro", + ], +}; + +const dayValues = { + narrow: ["D", "S", "T", "Q", "Q", "S", "S"], + short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"], + abbreviated: [ + "domingo", + "segunda", + "terça", + "quarta", + "quinta", + "sexta", + "sábado", + ], + + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + if (options?.unit === "week") { + 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/pt-BR/_lib/localize.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/localize.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/localize.js b/node_modules/date-fns/locale/pt-BR/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..6f40a0e46d659d8d3be4827bf7e4734591b214de --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/localize.js @@ -0,0 +1,177 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "depois 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: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez", + ], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro", + ], +}; + +const dayValues = { + narrow: ["D", "S", "T", "Q", "Q", "S", "S"], + short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"], + abbreviated: [ + "domingo", + "segunda", + "terça", + "quarta", + "quinta", + "sexta", + "sábado", + ], + + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + if (options?.unit === "week") { + 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/pt-BR/_lib/match.cjs b/node_modules/date-fns/locale/pt-BR/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6e80750163ac20bcaf7980feeff9f14bed859360 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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+)[ºªo]?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i, + wide: /^(antes de cristo|depois de cristo)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^antes de cristo/i, /^depois de cristo/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: /^[jfmajsond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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, + /^fev/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dez/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(dom|[23456]ª?|s[aá]b)/i, + short: /^(dom|[23456]ª?|s[aá]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, + wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i, +}; +const parseDayPatterns = { + short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn|^meia[-\s]noite/i, + noon: /^md|^meio[-\s]dia/i, + morning: /manhã/i, + afternoon: /tarde/i, + evening: /tarde/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/pt-BR/_lib/match.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/match.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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/pt-BR/_lib/match.js b/node_modules/date-fns/locale/pt-BR/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..b2d16b24de8afb8e0180818eafcd1b9e7bbb99a1 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i, + wide: /^(antes de cristo|depois de cristo)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^antes de cristo/i, /^depois de cristo/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: /^[jfmajsond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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, + /^fev/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dez/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(dom|[23456]ª?|s[aá]b)/i, + short: /^(dom|[23456]ª?|s[aá]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, + wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i, +}; +const parseDayPatterns = { + short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn|^meia[-\s]noite/i, + noon: /^md|^meio[-\s]dia/i, + morning: /manhã/i, + afternoon: /tarde/i, + evening: /tarde/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/pt-BR/cdn.js b/node_modules/date-fns/locale/pt-BR/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..01828d5f253ec799e0329fcf15b5dd3c7a3a3af9 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/cdn.js @@ -0,0 +1,595 @@ +(() => { +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/pt-BR/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos" + }, + halfAMinute: "meio minuto", + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos" + }, + aboutXHours: { + one: "cerca de 1 hora", + other: "cerca de {{count}} horas" + }, + xHours: { + one: "1 hora", + other: "{{count}} horas" + }, + xDays: { + one: "1 dia", + other: "{{count}} dias" + }, + aboutXWeeks: { + one: "cerca de 1 semana", + other: "cerca de {{count}} semanas" + }, + xWeeks: { + one: "1 semana", + other: "{{count}} semanas" + }, + aboutXMonths: { + one: "cerca de 1 mês", + other: "cerca de {{count}} meses" + }, + xMonths: { + one: "1 mês", + other: "{{count}} meses" + }, + aboutXYears: { + one: "cerca de 1 ano", + other: "cerca de {{count}} anos" + }, + xYears: { + one: "1 ano", + other: "{{count}} anos" + }, + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos" + }, + almostXYears: { + one: "quase 1 ano", + other: "quase {{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 "em " + result;else + return "há " + 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/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}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/pt-BR/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var weekday = date.getDay(); + return "'" + (weekday === 0 || weekday === 6 ? "último" : "última") + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' 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/pt-BR/_lib/localize.js +var eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "depois 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: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez"], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro"] + +}; +var dayValues = { + narrow: [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S"], + + short: [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sab"], + + abbreviated: [ + "domingo", + "segunda", + "terça", + "quarta", + "quinta", + "sexta", + "sábado"], + + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + if ((options === null || options === void 0 ? void 0 : options.unit) === "week") 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/pt-BR.js +/** +* @category Locales +* @summary Portuguese locale (Brazil). +* @language Portuguese +* @iso-639-2 por +* @author Lucas Duailibe [@duailibe](https://github.com/duailibe) +* @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) +*/ +var ptBR = { + code: "pt-BR", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)[ºªo]?/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\.?|d\.?\s?c\.?)/i, + wide: /^(antes de cristo|depois de cristo)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ac/i, /^dc/i], + wide: [/^antes de cristo/i, /^depois de cristo/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: /^[jfmajsond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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, + /^fev/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dez/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(dom|[23456]ª?|s[aá]b)/i, + short: /^(dom|[23456]ª?|s[aá]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, + wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + short: [ + /^d/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^s[aá]/i], + + narrow: [ + /^d/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^s[aá]/i], + + any: [ + /^d/i, + /^seg/i, + /^t/i, + /^qua/i, + /^qui/i, + /^sex/i, + /^s[aá]b/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn|^meia[-\s]noite/i, + noon: /^md|^meio[-\s]dia/i, + morning: /manhã/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noite/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/pt-BR/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), {}, { + ptBR: ptBR }) }); + + +//#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/pt-BR/cdn.min.js b/node_modules/date-fns/locale/pt-BR/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..47c2b0a3d4b5d856b9776260889459799e131836 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/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?`em `+r:`há `+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/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}} 'às' {{time}}`,long:`{{date}} 'às' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){var t=e.getDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' 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){var n=Number(e);return t?.unit===`week`?n+`ª`:n+`º`},era:f({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`depois de cristo`]},defaultWidth:`wide`}),quarter:f({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:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`S`,`T`,`Q`,`Q`,`S`,`S`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sab`],abbreviated:[`domingo`,`segunda`,`terça`,`quarta`,`quinta`,`sexta`,`sábado`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`}},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:`pt-BR`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:`any`}),quarter:m({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:m({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ptBR: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/pt.cjs b/node_modules/date-fns/locale/pt.cjs new file mode 100644 index 0000000000000000000000000000000000000000..18476210bccf5a248e15cd552a5aa472f3afb477 --- /dev/null +++ b/node_modules/date-fns/locale/pt.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.pt = void 0; +var _index = require("./pt/_lib/formatDistance.cjs"); +var _index2 = require("./pt/_lib/formatLong.cjs"); +var _index3 = require("./pt/_lib/formatRelative.cjs"); +var _index4 = require("./pt/_lib/localize.cjs"); +var _index5 = require("./pt/_lib/match.cjs"); + +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +const pt = (exports.pt = { + code: "pt", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/pt.d.cts b/node_modules/date-fns/locale/pt.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..2f10501357f987f38e35a2daed817327fef25fd0 --- /dev/null +++ b/node_modules/date-fns/locale/pt.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +export declare const pt: Locale; diff --git a/node_modules/date-fns/locale/pt.d.ts b/node_modules/date-fns/locale/pt.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..2f10501357f987f38e35a2daed817327fef25fd0 --- /dev/null +++ b/node_modules/date-fns/locale/pt.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +export declare const pt: Locale; diff --git a/node_modules/date-fns/locale/pt.js b/node_modules/date-fns/locale/pt.js new file mode 100644 index 0000000000000000000000000000000000000000..f311e940b94f55c08e4defd470a6d0aaa03fb94d --- /dev/null +++ b/node_modules/date-fns/locale/pt.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./pt/_lib/formatDistance.js"; +import { formatLong } from "./pt/_lib/formatLong.js"; +import { formatRelative } from "./pt/_lib/formatRelative.js"; +import { localize } from "./pt/_lib/localize.js"; +import { match } from "./pt/_lib/match.js"; + +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +export const pt = { + code: "pt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default pt; diff --git a/node_modules/date-fns/locale/pt/_lib/formatDistance.cjs b/node_modules/date-fns/locale/pt/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..eb7b17bd8176c233e3ad73f9d1cbedb120f5c627 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "meio minuto", + + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "aproximadamente 1 hora", + other: "aproximadamente {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dias", + }, + + aboutXWeeks: { + one: "aproximadamente 1 semana", + other: "aproximadamente {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "aproximadamente 1 mês", + other: "aproximadamente {{count}} meses", + }, + + xMonths: { + one: "1 mês", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "aproximadamente 1 ano", + other: "aproximadamente {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos", + }, + + almostXYears: { + one: "quase 1 ano", + other: "quase {{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 "daqui a " + result; + } else { + return "há " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/pt/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/pt/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/pt/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/formatDistance.js b/node_modules/date-fns/locale/pt/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..0628610a20bdceaddb20be2c6430cba19695388f --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "meio minuto", + + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "aproximadamente 1 hora", + other: "aproximadamente {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dias", + }, + + aboutXWeeks: { + one: "aproximadamente 1 semana", + other: "aproximadamente {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "aproximadamente 1 mês", + other: "aproximadamente {{count}} meses", + }, + + xMonths: { + one: "1 mês", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "aproximadamente 1 ano", + other: "aproximadamente {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos", + }, + + almostXYears: { + one: "quase 1 ano", + other: "quase {{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 "daqui a " + result; + } else { + return "há " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/pt/_lib/formatLong.cjs b/node_modules/date-fns/locale/pt/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1ebb5fed17b2982323f54209e329297db6653506 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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 'de' MMM 'de' 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/pt/_lib/formatLong.d.cts b/node_modules/date-fns/locale/pt/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/formatLong.d.ts b/node_modules/date-fns/locale/pt/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/formatLong.js b/node_modules/date-fns/locale/pt/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..07a29710cbe0db1cdeda8dac5c492716e28711a8 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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 'de' MMM 'de' 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/pt/_lib/formatRelative.cjs b/node_modules/date-fns/locale/pt/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..dc42dcce189332eb4782ad39671de6c64cefd54f --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative.cjs @@ -0,0 +1,26 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const weekday = date.getDay(); + const last = weekday === 0 || weekday === 6 ? "último" : "última"; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' 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/pt/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/pt/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/pt/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/formatRelative.js b/node_modules/date-fns/locale/pt/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..bf7bba4498b06f69ce643406553050dd9f3b47e4 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative.js @@ -0,0 +1,22 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const weekday = date.getDay(); + const last = weekday === 0 || weekday === 6 ? "último" : "última"; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' 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/pt/_lib/localize.cjs b/node_modules/date-fns/locale/pt/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..85a025610923b389d06e9ea87a13c4950c9abb6b --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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: ["a.C.", "d.C."], + wide: ["antes de Cristo", "depois 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: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez", + ], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro", + ], +}; + +const dayValues = { + narrow: ["d", "s", "t", "q", "q", "s", "s"], + short: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], + abbreviated: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, +}; + +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/pt/_lib/localize.d.cts b/node_modules/date-fns/locale/pt/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/localize.d.ts b/node_modules/date-fns/locale/pt/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/localize.js b/node_modules/date-fns/locale/pt/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..2ea7861fb69db12d91abb91473a4cd85d0ce0577 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["antes de Cristo", "depois 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: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez", + ], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro", + ], +}; + +const dayValues = { + narrow: ["d", "s", "t", "q", "q", "s", "s"], + short: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], + abbreviated: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, +}; + +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/pt/_lib/match.cjs b/node_modules/date-fns/locale/pt/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..92093607de65cd9001a1f820af470d9037e1c906 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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"); + +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 comum|depois de cristo|era comum)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes da era comum)/i, + /^(depois de cristo|era comum)/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: /^[jfmasond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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, + /^ab/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dstq]/i, + short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, + any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^meia/i, + noon: /^meio/i, + morning: /manh[ãa]/i, + afternoon: /tarde/i, + evening: /noite/i, + night: /madrugada/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/pt/_lib/match.d.cts b/node_modules/date-fns/locale/pt/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/match.d.ts b/node_modules/date-fns/locale/pt/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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/pt/_lib/match.js b/node_modules/date-fns/locale/pt/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..7deb576c43a6b2ee4baeb80b685c6b75ec61dae2 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/match.js @@ -0,0 +1,137 @@ +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 comum|depois de cristo|era comum)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes da era comum)/i, + /^(depois de cristo|era comum)/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: /^[jfmasond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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, + /^ab/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dstq]/i, + short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, + any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^meia/i, + noon: /^meio/i, + morning: /manh[ãa]/i, + afternoon: /tarde/i, + evening: /noite/i, + night: /madrugada/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/pt/cdn.js b/node_modules/date-fns/locale/pt/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..16cd7a661778dee49b011ebc04de15b3d95b8f82 --- /dev/null +++ b/node_modules/date-fns/locale/pt/cdn.js @@ -0,0 +1,584 @@ +(() => { +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/pt/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos" + }, + halfAMinute: "meio minuto", + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos" + }, + aboutXHours: { + one: "aproximadamente 1 hora", + other: "aproximadamente {{count}} horas" + }, + xHours: { + one: "1 hora", + other: "{{count}} horas" + }, + xDays: { + one: "1 dia", + other: "{{count}} dias" + }, + aboutXWeeks: { + one: "aproximadamente 1 semana", + other: "aproximadamente {{count}} semanas" + }, + xWeeks: { + one: "1 semana", + other: "{{count}} semanas" + }, + aboutXMonths: { + one: "aproximadamente 1 mês", + other: "aproximadamente {{count}} meses" + }, + xMonths: { + one: "1 mês", + other: "{{count}} meses" + }, + aboutXYears: { + one: "aproximadamente 1 ano", + other: "aproximadamente {{count}} anos" + }, + xYears: { + one: "1 ano", + other: "{{count}} anos" + }, + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos" + }, + almostXYears: { + one: "quase 1 ano", + other: "quase {{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 "daqui a " + result;else + return "há " + 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 'de' MMM 'de' 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/pt/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var weekday = date.getDay(); + return "'" + (weekday === 0 || weekday === 6 ? "último" : "última") + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' 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/pt/_lib/localize.js +var eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["antes de Cristo", "depois 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: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez"], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro"] + +}; +var dayValues = { + narrow: [ + "d", + "s", + "t", + "q", + "q", + "s", + "s"], + + short: [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb"], + + abbreviated: [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb"], + + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada" + } +}; +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/pt.js +/** +* @category Locales +* @summary Portuguese locale. +* @language Portuguese +* @iso-639-2 por +* @author Dário Freire [@dfreire](https://github.com/dfreire) +* @author Adrián de la Rosa [@adrm](https://github.com/adrm) +*/ +var pt = { + code: "pt", + 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 comum|depois de cristo|era comum)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes da era comum)/i, /^(depois de cristo|era comum)/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: /^[jfmasond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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, + /^ab/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dstq]/i, + short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^s/i, + /^t/i, + /^q/i, + /^q/i, + /^s/i, + /^s/i], + + any: [ + /^d/i, + /^seg/i, + /^t/i, + /^qua/i, + /^qui/i, + /^sex/i, + /^s[áa]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, + any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^meia/i, + noon: /^meio/i, + morning: /manh[ãa]/i, + afternoon: /tarde/i, + evening: /noite/i, + night: /madrugada/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/pt/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), {}, { + pt: pt }) }); + + +//#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/pt/cdn.min.js b/node_modules/date-fns/locale/pt/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..06dfa0c034734720b9a12a4d643ad95ee27fec52 --- /dev/null +++ b/node_modules/date-fns/locale/pt/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?`daqui a `+r:`há `+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 'de' MMM 'de' 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:function(e){var t=e.getDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' 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:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`antes de Cristo`,`depois de Cristo`]},defaultWidth:`wide`}),quarter:f({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:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`d`,`s`,`t`,`q`,`q`,`s`,`s`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],abbreviated:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`}},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:`pt`,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:/^(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 comum|depois de cristo|era comum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:`any`}),quarter:m({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:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/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,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{pt: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/ro.cjs b/node_modules/date-fns/locale/ro.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ab33fd56c463dc020cde6e6e89da9f4724469640 --- /dev/null +++ b/node_modules/date-fns/locale/ro.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.ro = void 0; +var _index = require("./ro/_lib/formatDistance.cjs"); +var _index2 = require("./ro/_lib/formatLong.cjs"); +var _index3 = require("./ro/_lib/formatRelative.cjs"); +var _index4 = require("./ro/_lib/localize.cjs"); +var _index5 = require("./ro/_lib/match.cjs"); + +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +const ro = (exports.ro = { + code: "ro", + 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/ro.d.cts b/node_modules/date-fns/locale/ro.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..d83920ca9fa2868b24611cfc95d820ca5666a04a --- /dev/null +++ b/node_modules/date-fns/locale/ro.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +export declare const ro: Locale; diff --git a/node_modules/date-fns/locale/ro.d.ts b/node_modules/date-fns/locale/ro.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..d83920ca9fa2868b24611cfc95d820ca5666a04a --- /dev/null +++ b/node_modules/date-fns/locale/ro.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +export declare const ro: Locale; diff --git a/node_modules/date-fns/locale/ro.js b/node_modules/date-fns/locale/ro.js new file mode 100644 index 0000000000000000000000000000000000000000..15bc84eac9d3985358d194d4be5fa85a984108f6 --- /dev/null +++ b/node_modules/date-fns/locale/ro.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./ro/_lib/formatDistance.js"; +import { formatLong } from "./ro/_lib/formatLong.js"; +import { formatRelative } from "./ro/_lib/formatRelative.js"; +import { localize } from "./ro/_lib/localize.js"; +import { match } from "./ro/_lib/match.js"; + +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +export const ro = { + code: "ro", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ro; diff --git a/node_modules/date-fns/locale/ro/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ro/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..40f07886688c069945031421d09219c2ce145901 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mai puțin de o secundă", + other: "mai puțin de {{count}} secunde", + }, + + xSeconds: { + one: "1 secundă", + other: "{{count}} secunde", + }, + + halfAMinute: "jumătate de minut", + + lessThanXMinutes: { + one: "mai puțin de un minut", + other: "mai puțin de {{count}} minute", + }, + + xMinutes: { + one: "1 minut", + other: "{{count}} minute", + }, + + aboutXHours: { + one: "circa 1 oră", + other: "circa {{count}} ore", + }, + + xHours: { + one: "1 oră", + other: "{{count}} ore", + }, + + xDays: { + one: "1 zi", + other: "{{count}} zile", + }, + + aboutXWeeks: { + one: "circa o săptămână", + other: "circa {{count}} săptămâni", + }, + + xWeeks: { + one: "1 săptămână", + other: "{{count}} săptămâni", + }, + + aboutXMonths: { + one: "circa 1 lună", + other: "circa {{count}} luni", + }, + + xMonths: { + one: "1 lună", + other: "{{count}} luni", + }, + + aboutXYears: { + one: "circa 1 an", + other: "circa {{count}} ani", + }, + + xYears: { + one: "1 an", + other: "{{count}} ani", + }, + + overXYears: { + one: "peste 1 an", + other: "peste {{count}} ani", + }, + + almostXYears: { + one: "aproape 1 an", + other: "aproape {{count}} ani", + }, +}; + +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 "în " + result; + } else { + return result + " în urmă"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ro/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ro/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ro/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/formatDistance.js b/node_modules/date-fns/locale/ro/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..e0d56572a2808dde71d40aff3932c13ed7d9d2ff --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mai puțin de o secundă", + other: "mai puțin de {{count}} secunde", + }, + + xSeconds: { + one: "1 secundă", + other: "{{count}} secunde", + }, + + halfAMinute: "jumătate de minut", + + lessThanXMinutes: { + one: "mai puțin de un minut", + other: "mai puțin de {{count}} minute", + }, + + xMinutes: { + one: "1 minut", + other: "{{count}} minute", + }, + + aboutXHours: { + one: "circa 1 oră", + other: "circa {{count}} ore", + }, + + xHours: { + one: "1 oră", + other: "{{count}} ore", + }, + + xDays: { + one: "1 zi", + other: "{{count}} zile", + }, + + aboutXWeeks: { + one: "circa o săptămână", + other: "circa {{count}} săptămâni", + }, + + xWeeks: { + one: "1 săptămână", + other: "{{count}} săptămâni", + }, + + aboutXMonths: { + one: "circa 1 lună", + other: "circa {{count}} luni", + }, + + xMonths: { + one: "1 lună", + other: "{{count}} luni", + }, + + aboutXYears: { + one: "circa 1 an", + other: "circa {{count}} ani", + }, + + xYears: { + one: "1 an", + other: "{{count}} ani", + }, + + overXYears: { + one: "peste 1 an", + other: "peste {{count}} ani", + }, + + almostXYears: { + one: "aproape 1 an", + other: "aproape {{count}} ani", + }, +}; + +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 "în " + result; + } else { + return result + " în urmă"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ro/_lib/formatLong.cjs b/node_modules/date-fns/locale/ro/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..99e84d1f1f81af84b907399579d188ac7c9246a3 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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}} 'la' {{time}}", + long: "{{date}} 'la' {{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/ro/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ro/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ro/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/formatLong.js b/node_modules/date-fns/locale/ro/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..d89fe0e0cad4b3e8edad0343ed6d41405e310c5b --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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}} 'la' {{time}}", + long: "{{date}} 'la' {{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/ro/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ro/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c9ea4de78ba27c73193561ff4728dac923e30e2f --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'trecută la' p", + yesterday: "'ieri la' p", + today: "'astăzi la' p", + tomorrow: "'mâine la' p", + nextWeek: "eeee 'viitoare la' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ro/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ro/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ro/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/formatRelative.js b/node_modules/date-fns/locale/ro/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..49a8376b3754622945b26705ef9c13ade08fb3ae --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'trecută la' p", + yesterday: "'ieri la' p", + today: "'astăzi la' p", + tomorrow: "'mâine la' p", + nextWeek: "eeee 'viitoare la' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ro/_lib/localize.cjs b/node_modules/date-fns/locale/ro/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f689df5dc60857faceccdf68d151b491890839dc --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/localize.cjs @@ -0,0 +1,162 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["Î", "D"], + abbreviated: ["Î.d.C.", "D.C."], + wide: ["Înainte de Cristos", "După Cristos"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: [ + "primul trimestru", + "al doilea trimestru", + "al treilea trimestru", + "al patrulea trimestru", + ], +}; + +const monthValues = { + narrow: ["I", "F", "M", "A", "M", "I", "I", "A", "S", "O", "N", "D"], + abbreviated: [ + "ian", + "feb", + "mar", + "apr", + "mai", + "iun", + "iul", + "aug", + "sep", + "oct", + "noi", + "dec", + ], + + wide: [ + "ianuarie", + "februarie", + "martie", + "aprilie", + "mai", + "iunie", + "iulie", + "august", + "septembrie", + "octombrie", + "noiembrie", + "decembrie", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["du", "lu", "ma", "mi", "jo", "vi", "sâ"], + abbreviated: ["dum", "lun", "mar", "mie", "joi", "vin", "sâm"], + wide: ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "ami", + morning: "dim", + afternoon: "da", + evening: "s", + night: "n", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, +}; + +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/ro/_lib/localize.d.cts b/node_modules/date-fns/locale/ro/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/localize.d.ts b/node_modules/date-fns/locale/ro/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/localize.js b/node_modules/date-fns/locale/ro/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..87b0a716b0bf97e56916d1c1a1fb98234638b82c --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/localize.js @@ -0,0 +1,160 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["Î", "D"], + abbreviated: ["Î.d.C.", "D.C."], + wide: ["Înainte de Cristos", "După Cristos"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: [ + "primul trimestru", + "al doilea trimestru", + "al treilea trimestru", + "al patrulea trimestru", + ], +}; + +const monthValues = { + narrow: ["I", "F", "M", "A", "M", "I", "I", "A", "S", "O", "N", "D"], + abbreviated: [ + "ian", + "feb", + "mar", + "apr", + "mai", + "iun", + "iul", + "aug", + "sep", + "oct", + "noi", + "dec", + ], + + wide: [ + "ianuarie", + "februarie", + "martie", + "aprilie", + "mai", + "iunie", + "iulie", + "august", + "septembrie", + "octombrie", + "noiembrie", + "decembrie", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["du", "lu", "ma", "mi", "jo", "vi", "sâ"], + abbreviated: ["dum", "lun", "mar", "mie", "joi", "vin", "sâm"], + wide: ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "ami", + morning: "dim", + afternoon: "da", + evening: "s", + night: "n", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, +}; + +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/ro/_lib/match.cjs b/node_modules/date-fns/locale/ro/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0c007b2952a382e53999ac6b6d85eb7300f8bd01 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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"); + +const matchOrdinalNumberPattern = /^(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(Î|D)/i, + abbreviated: + /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, + wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i, +}; +const parseEraPatterns = { + any: [/^ÎC/i, /^DC/i], + wide: [ + /^(Înainte de Cristos|Înaintea erei noastre)/i, + /^(După Cristos|Era noastră)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^trimestrul [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ifmaasond]/i, + abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, + wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^i/i, + /^i/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ia/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^iun/i, + /^iul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(d|l|ma|mi|j|v|s)/i, + abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, + wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/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, /^mi/i, /^j/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, + any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /amiaza/i, + morning: /dimineaţa/i, + afternoon: /după-amiaza/i, + evening: /seara/i, + night: /noaptea/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/ro/_lib/match.d.cts b/node_modules/date-fns/locale/ro/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/match.d.ts b/node_modules/date-fns/locale/ro/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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/ro/_lib/match.js b/node_modules/date-fns/locale/ro/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..593d4043832f115e07237e4506740b2800ac9b0c --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/match.js @@ -0,0 +1,137 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(Î|D)/i, + abbreviated: + /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, + wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i, +}; +const parseEraPatterns = { + any: [/^ÎC/i, /^DC/i], + wide: [ + /^(Înainte de Cristos|Înaintea erei noastre)/i, + /^(După Cristos|Era noastră)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^trimestrul [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ifmaasond]/i, + abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, + wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^i/i, + /^i/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ia/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^iun/i, + /^iul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(d|l|ma|mi|j|v|s)/i, + abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, + wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/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, /^mi/i, /^j/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, + any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /amiaza/i, + morning: /dimineaţa/i, + afternoon: /după-amiaza/i, + evening: /seara/i, + night: /noaptea/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/ro/cdn.js b/node_modules/date-fns/locale/ro/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..eae8c70e74ed7da5f256afe7c62c4b3094490080 --- /dev/null +++ b/node_modules/date-fns/locale/ro/cdn.js @@ -0,0 +1,578 @@ +(() => { +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/ro/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mai puțin de o secundă", + other: "mai puțin de {{count}} secunde" + }, + xSeconds: { + one: "1 secundă", + other: "{{count}} secunde" + }, + halfAMinute: "jumătate de minut", + lessThanXMinutes: { + one: "mai puțin de un minut", + other: "mai puțin de {{count}} minute" + }, + xMinutes: { + one: "1 minut", + other: "{{count}} minute" + }, + aboutXHours: { + one: "circa 1 oră", + other: "circa {{count}} ore" + }, + xHours: { + one: "1 oră", + other: "{{count}} ore" + }, + xDays: { + one: "1 zi", + other: "{{count}} zile" + }, + aboutXWeeks: { + one: "circa o săptămână", + other: "circa {{count}} săptămâni" + }, + xWeeks: { + one: "1 săptămână", + other: "{{count}} săptămâni" + }, + aboutXMonths: { + one: "circa 1 lună", + other: "circa {{count}} luni" + }, + xMonths: { + one: "1 lună", + other: "{{count}} luni" + }, + aboutXYears: { + one: "circa 1 an", + other: "circa {{count}} ani" + }, + xYears: { + one: "1 an", + other: "{{count}} ani" + }, + overXYears: { + one: "peste 1 an", + other: "peste {{count}} ani" + }, + almostXYears: { + one: "aproape 1 an", + other: "aproape {{count}} ani" + } +}; +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 "în " + result;else + return result + " în urmă"; + 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: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'la' {{time}}", + long: "{{date}} 'la' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ro/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'trecută la' p", + yesterday: "'ieri la' p", + today: "'astăzi la' p", + tomorrow: "'mâine la' p", + nextWeek: "eeee 'viitoare la' 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/ro/_lib/localize.js +var eraValues = { + narrow: ["Î", "D"], + abbreviated: ["Î.d.C.", "D.C."], + wide: ["Înainte de Cristos", "După Cristos"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "primul trimestru", + "al doilea trimestru", + "al treilea trimestru", + "al patrulea trimestru"] + +}; +var monthValues = { + narrow: [ + "I", + "F", + "M", + "A", + "M", + "I", + "I", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "ian", + "feb", + "mar", + "apr", + "mai", + "iun", + "iul", + "aug", + "sep", + "oct", + "noi", + "dec"], + + wide: [ + "ianuarie", + "februarie", + "martie", + "aprilie", + "mai", + "iunie", + "iulie", + "august", + "septembrie", + "octombrie", + "noiembrie", + "decembrie"] + +}; +var dayValues = { + narrow: [ + "d", + "l", + "m", + "m", + "j", + "v", + "s"], + + short: [ + "du", + "lu", + "ma", + "mi", + "jo", + "vi", + "sâ"], + + abbreviated: [ + "dum", + "lun", + "mar", + "mie", + "joi", + "vin", + "sâm"], + + wide: [ + "duminică", + "luni", + "marți", + "miercuri", + "joi", + "vineri", + "sâmbătă"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "ami", + morning: "dim", + afternoon: "da", + evening: "s", + night: "n" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + } +}; +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/ro.js +/** +* @category Locales +* @summary Romanian locale. +* @language Romanian +* @iso-639-2 ron +* @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) +* @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) +* @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) +*/ +var ro = { + code: "ro", + 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: /^(Î|D)/i, + abbreviated: /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, + wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ÎC/i, /^DC/i], + wide: [/^(Înainte de Cristos|Înaintea erei noastre)/i, /^(După Cristos|Era noastră)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^trimestrul [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: /^[ifmaasond]/i, + abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, + wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^i/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^i/i, + /^i/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ia/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^iun/i, + /^iul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmjvs]/i, + short: /^(d|l|ma|mi|j|v|s)/i, + abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, + wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/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, + /^mi/i, + /^j/i, + /^v/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, + any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /amiaza/i, + morning: /dimineaţa/i, + afternoon: /după-amiaza/i, + evening: /seara/i, + night: /noaptea/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ro/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), {}, { + ro: ro }) }); + + +//#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/ro/cdn.min.js b/node_modules/date-fns/locale/ro/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..003ce8f99b1209e9d8f2048f7dd2957ae9e0e808 --- /dev/null +++ b/node_modules/date-fns/locale/ro/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?`în `+r:r+` în urmă`: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:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'la' {{time}}`,long:`{{date}} 'la' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'trecută la' p`,yesterday:`'ieri la' p`,today:`'astăzi la' p`,tomorrow:`'mâine la' p`,nextWeek:`eeee 'viitoare la' 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:[`Î`,`D`],abbreviated:[`Î.d.C.`,`D.C.`],wide:[`Înainte de Cristos`,`După Cristos`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`primul trimestru`,`al doilea trimestru`,`al treilea trimestru`,`al patrulea trimestru`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`I`,`F`,`M`,`A`,`M`,`I`,`I`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`ian`,`feb`,`mar`,`apr`,`mai`,`iun`,`iul`,`aug`,`sep`,`oct`,`noi`,`dec`],wide:[`ianuarie`,`februarie`,`martie`,`aprilie`,`mai`,`iunie`,`iulie`,`august`,`septembrie`,`octombrie`,`noiembrie`,`decembrie`]},defaultWidth:`wide`}),day:f({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`du`,`lu`,`ma`,`mi`,`jo`,`vi`,`sâ`],abbreviated:[`dum`,`lun`,`mar`,`mie`,`joi`,`vin`,`sâm`],wide:[`duminică`,`luni`,`marți`,`miercuri`,`joi`,`vineri`,`sâmbătă`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`ami`,morning:`dim`,afternoon:`da`,evening:`s`,night:`n`},abbreviated:{am:`AM`,pm:`PM`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`}},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:`ro`,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:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [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:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/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,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ro: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/ru.cjs b/node_modules/date-fns/locale/ru.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d234b42a323c4c2056d68910d750db28db5fc23c --- /dev/null +++ b/node_modules/date-fns/locale/ru.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.ru = void 0; +var _index = require("./ru/_lib/formatDistance.cjs"); +var _index2 = require("./ru/_lib/formatLong.cjs"); +var _index3 = require("./ru/_lib/formatRelative.cjs"); +var _index4 = require("./ru/_lib/localize.cjs"); +var _index5 = require("./ru/_lib/match.cjs"); + +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +const ru = (exports.ru = { + code: "ru", + 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/ru.d.cts b/node_modules/date-fns/locale/ru.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..f602cdc61174fd155b36e6c4a758d6dd843c00c2 --- /dev/null +++ b/node_modules/date-fns/locale/ru.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const ru: Locale; diff --git a/node_modules/date-fns/locale/ru.d.ts b/node_modules/date-fns/locale/ru.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f602cdc61174fd155b36e6c4a758d6dd843c00c2 --- /dev/null +++ b/node_modules/date-fns/locale/ru.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const ru: Locale; diff --git a/node_modules/date-fns/locale/ru.js b/node_modules/date-fns/locale/ru.js new file mode 100644 index 0000000000000000000000000000000000000000..43d83f9250212532cccf53769ade9d49391e06f0 --- /dev/null +++ b/node_modules/date-fns/locale/ru.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./ru/_lib/formatDistance.js"; +import { formatLong } from "./ru/_lib/formatLong.js"; +import { formatRelative } from "./ru/_lib/formatRelative.js"; +import { localize } from "./ru/_lib/localize.js"; +import { match } from "./ru/_lib/match.js"; + +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export const ru = { + code: "ru", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ru; diff --git a/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f55e663019f77dc0228421a48eb495ab3e4a7ec7 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs @@ -0,0 +1,250 @@ +"use strict"; +exports.formatDistance = void 0; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return (count, options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return "через " + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + " назад"; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "меньше секунды", + singularNominative: "меньше {{count}} секунды", + singularGenitive: "меньше {{count}} секунд", + pluralGenitive: "меньше {{count}} секунд", + }, + future: { + one: "меньше, чем через секунду", + singularNominative: "меньше, чем через {{count}} секунду", + singularGenitive: "меньше, чем через {{count}} секунды", + pluralGenitive: "меньше, чем через {{count}} секунд", + }, + }), + + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунду назад", + singularGenitive: "{{count}} секунды назад", + pluralGenitive: "{{count}} секунд назад", + }, + future: { + singularNominative: "через {{count}} секунду", + singularGenitive: "через {{count}} секунды", + pluralGenitive: "через {{count}} секунд", + }, + }), + + halfAMinute: (_count, options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "через полминуты"; + } else { + return "полминуты назад"; + } + } + + return "полминуты"; + }, + + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "меньше минуты", + singularNominative: "меньше {{count}} минуты", + singularGenitive: "меньше {{count}} минут", + pluralGenitive: "меньше {{count}} минут", + }, + future: { + one: "меньше, чем через минуту", + singularNominative: "меньше, чем через {{count}} минуту", + singularGenitive: "меньше, чем через {{count}} минуты", + pluralGenitive: "меньше, чем через {{count}} минут", + }, + }), + + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} минута", + singularGenitive: "{{count}} минуты", + pluralGenitive: "{{count}} минут", + }, + past: { + singularNominative: "{{count}} минуту назад", + singularGenitive: "{{count}} минуты назад", + pluralGenitive: "{{count}} минут назад", + }, + future: { + singularNominative: "через {{count}} минуту", + singularGenitive: "через {{count}} минуты", + pluralGenitive: "через {{count}} минут", + }, + }), + + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} часа", + singularGenitive: "около {{count}} часов", + pluralGenitive: "около {{count}} часов", + }, + future: { + singularNominative: "приблизительно через {{count}} час", + singularGenitive: "приблизительно через {{count}} часа", + pluralGenitive: "приблизительно через {{count}} часов", + }, + }), + + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} час", + singularGenitive: "{{count}} часа", + pluralGenitive: "{{count}} часов", + }, + }), + + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} день", + singularGenitive: "{{count}} дня", + pluralGenitive: "{{count}} дней", + }, + }), + + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} недели", + singularGenitive: "около {{count}} недель", + pluralGenitive: "около {{count}} недель", + }, + future: { + singularNominative: "приблизительно через {{count}} неделю", + singularGenitive: "приблизительно через {{count}} недели", + pluralGenitive: "приблизительно через {{count}} недель", + }, + }), + + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} неделя", + singularGenitive: "{{count}} недели", + pluralGenitive: "{{count}} недель", + }, + }), + + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} месяца", + singularGenitive: "около {{count}} месяцев", + pluralGenitive: "около {{count}} месяцев", + }, + future: { + singularNominative: "приблизительно через {{count}} месяц", + singularGenitive: "приблизительно через {{count}} месяца", + pluralGenitive: "приблизительно через {{count}} месяцев", + }, + }), + + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяца", + pluralGenitive: "{{count}} месяцев", + }, + }), + + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} года", + singularGenitive: "около {{count}} лет", + pluralGenitive: "около {{count}} лет", + }, + future: { + singularNominative: "приблизительно через {{count}} год", + singularGenitive: "приблизительно через {{count}} года", + pluralGenitive: "приблизительно через {{count}} лет", + }, + }), + + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} года", + pluralGenitive: "{{count}} лет", + }, + }), + + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больше {{count}} года", + singularGenitive: "больше {{count}} лет", + pluralGenitive: "больше {{count}} лет", + }, + future: { + singularNominative: "больше, чем через {{count}} год", + singularGenitive: "больше, чем через {{count}} года", + pluralGenitive: "больше, чем через {{count}} лет", + }, + }), + + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "почти {{count}} год", + singularGenitive: "почти {{count}} года", + pluralGenitive: "почти {{count}} лет", + }, + future: { + singularNominative: "почти через {{count}} год", + singularGenitive: "почти через {{count}} года", + pluralGenitive: "почти через {{count}} лет", + }, + }), +}; + +const formatDistance = (token, count, options) => { + return formatDistanceLocale[token](count, options); +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ru/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ru/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ru/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/formatDistance.js b/node_modules/date-fns/locale/ru/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..6d79b98b2c105b24cbef9990f771dc1526c927a1 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance.js @@ -0,0 +1,246 @@ +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return (count, options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return "через " + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + " назад"; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "меньше секунды", + singularNominative: "меньше {{count}} секунды", + singularGenitive: "меньше {{count}} секунд", + pluralGenitive: "меньше {{count}} секунд", + }, + future: { + one: "меньше, чем через секунду", + singularNominative: "меньше, чем через {{count}} секунду", + singularGenitive: "меньше, чем через {{count}} секунды", + pluralGenitive: "меньше, чем через {{count}} секунд", + }, + }), + + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунду назад", + singularGenitive: "{{count}} секунды назад", + pluralGenitive: "{{count}} секунд назад", + }, + future: { + singularNominative: "через {{count}} секунду", + singularGenitive: "через {{count}} секунды", + pluralGenitive: "через {{count}} секунд", + }, + }), + + halfAMinute: (_count, options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "через полминуты"; + } else { + return "полминуты назад"; + } + } + + return "полминуты"; + }, + + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "меньше минуты", + singularNominative: "меньше {{count}} минуты", + singularGenitive: "меньше {{count}} минут", + pluralGenitive: "меньше {{count}} минут", + }, + future: { + one: "меньше, чем через минуту", + singularNominative: "меньше, чем через {{count}} минуту", + singularGenitive: "меньше, чем через {{count}} минуты", + pluralGenitive: "меньше, чем через {{count}} минут", + }, + }), + + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} минута", + singularGenitive: "{{count}} минуты", + pluralGenitive: "{{count}} минут", + }, + past: { + singularNominative: "{{count}} минуту назад", + singularGenitive: "{{count}} минуты назад", + pluralGenitive: "{{count}} минут назад", + }, + future: { + singularNominative: "через {{count}} минуту", + singularGenitive: "через {{count}} минуты", + pluralGenitive: "через {{count}} минут", + }, + }), + + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} часа", + singularGenitive: "около {{count}} часов", + pluralGenitive: "около {{count}} часов", + }, + future: { + singularNominative: "приблизительно через {{count}} час", + singularGenitive: "приблизительно через {{count}} часа", + pluralGenitive: "приблизительно через {{count}} часов", + }, + }), + + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} час", + singularGenitive: "{{count}} часа", + pluralGenitive: "{{count}} часов", + }, + }), + + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} день", + singularGenitive: "{{count}} дня", + pluralGenitive: "{{count}} дней", + }, + }), + + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} недели", + singularGenitive: "около {{count}} недель", + pluralGenitive: "около {{count}} недель", + }, + future: { + singularNominative: "приблизительно через {{count}} неделю", + singularGenitive: "приблизительно через {{count}} недели", + pluralGenitive: "приблизительно через {{count}} недель", + }, + }), + + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} неделя", + singularGenitive: "{{count}} недели", + pluralGenitive: "{{count}} недель", + }, + }), + + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} месяца", + singularGenitive: "около {{count}} месяцев", + pluralGenitive: "около {{count}} месяцев", + }, + future: { + singularNominative: "приблизительно через {{count}} месяц", + singularGenitive: "приблизительно через {{count}} месяца", + pluralGenitive: "приблизительно через {{count}} месяцев", + }, + }), + + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяца", + pluralGenitive: "{{count}} месяцев", + }, + }), + + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} года", + singularGenitive: "около {{count}} лет", + pluralGenitive: "около {{count}} лет", + }, + future: { + singularNominative: "приблизительно через {{count}} год", + singularGenitive: "приблизительно через {{count}} года", + pluralGenitive: "приблизительно через {{count}} лет", + }, + }), + + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} года", + pluralGenitive: "{{count}} лет", + }, + }), + + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больше {{count}} года", + singularGenitive: "больше {{count}} лет", + pluralGenitive: "больше {{count}} лет", + }, + future: { + singularNominative: "больше, чем через {{count}} год", + singularGenitive: "больше, чем через {{count}} года", + pluralGenitive: "больше, чем через {{count}} лет", + }, + }), + + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "почти {{count}} год", + singularGenitive: "почти {{count}} года", + pluralGenitive: "почти {{count}} лет", + }, + future: { + singularNominative: "почти через {{count}} год", + singularGenitive: "почти через {{count}} года", + pluralGenitive: "почти через {{count}} лет", + }, + }), +}; + +export const formatDistance = (token, count, options) => { + return formatDistanceLocale[token](count, options); +}; diff --git a/node_modules/date-fns/locale/ru/_lib/formatLong.cjs b/node_modules/date-fns/locale/ru/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d043ad4a454e44ae861544ebeca33a58079f69a7 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"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: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H: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/ru/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ru/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ru/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/formatLong.js b/node_modules/date-fns/locale/ru/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..f775c7ba811501f9d3c80687e35aa5747909027a --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatLong.js @@ -0,0 +1,36 @@ +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: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H: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/ru/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..98ec613a6064b79a36dd3e2475194b4a090cf7de --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs @@ -0,0 +1,91 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const accusativeWeekdays = [ + "воскресенье", + "понедельник", + "вторник", + "среду", + "четверг", + "пятницу", + "субботу", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в прошлое " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в прошлый " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в прошлую " + weekday + " в' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + if (day === 2 /* Tue */) { + return "'во " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в следующее " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в следующий " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в следующую " + weekday + " в' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ru/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ru/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ru/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/formatRelative.js b/node_modules/date-fns/locale/ru/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..dcf893da633ee2af0c5d4d67f502c100329cb6d2 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative.js @@ -0,0 +1,88 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const accusativeWeekdays = [ + "воскресенье", + "понедельник", + "вторник", + "среду", + "четверг", + "пятницу", + "субботу", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в прошлое " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в прошлый " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в прошлую " + weekday + " в' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + if (day === 2 /* Tue */) { + return "'во " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в следующее " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в следующий " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в следующую " + weekday + " в' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/ru/_lib/localize.cjs b/node_modules/date-fns/locale/ru/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..385ceb32fe04d801ee406ac466eda2f8fc30947d --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/localize.cjs @@ -0,0 +1,212 @@ +"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: ["В", "П", "В", "С", "Ч", "П", "С"], + 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); + const unit = options?.unit; + + let suffix; + if (unit === "date") { + suffix = "-е"; + } else if (unit === "week" || unit === "minute" || unit === "second") { + 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: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ru/_lib/localize.d.cts b/node_modules/date-fns/locale/ru/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/localize.d.ts b/node_modules/date-fns/locale/ru/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/localize.js b/node_modules/date-fns/locale/ru/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..155f75419d2e951731207a0d7c52a9545eddb7f9 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/localize.js @@ -0,0 +1,210 @@ +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: ["В", "П", "В", "С", "Ч", "П", "С"], + 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); + const unit = options?.unit; + + let suffix; + if (unit === "date") { + suffix = "-е"; + } else if (unit === "week" || unit === "minute" || unit === "second") { + 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: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ru/_lib/match.cjs b/node_modules/date-fns/locale/ru/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1531aa893ed8030b900318e0011e2f308cb31006 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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: /^((до )?н\.?\s?э\.?)/i, + abbreviated: /^((до )?н\.?\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, + 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/ru/_lib/match.d.cts b/node_modules/date-fns/locale/ru/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/match.d.ts b/node_modules/date-fns/locale/ru/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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/ru/_lib/match.js b/node_modules/date-fns/locale/ru/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..91adcd706c2fca7de8476f0224865b81fe23791a --- /dev/null +++ b/node_modules/date-fns/locale/ru/_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: /^((до )?н\.?\s?э\.?)/i, + abbreviated: /^((до )?н\.?\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, + 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/ru/cdn.js b/node_modules/date-fns/locale/ru/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..f57c847a0c2a9e3287e42513543d9012a259b76d --- /dev/null +++ b/node_modules/date-fns/locale/ru/cdn.js @@ -0,0 +1,979 @@ +(() => { +var _window$dateFns;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);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}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);} //#region dist/date-fns/locale/ru/_lib/formatDistance.js +function declension(scheme, count) { + if (scheme.one !== void 0 && count === 1) return scheme.one; + var rem10 = count % 10; + var rem100 = count % 100; + if (rem10 === 1 && rem100 !== 11) return scheme.singularNominative.replace("{{count}}", String(count));else + if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) return scheme.singularGenitive.replace("{{count}}", String(count));else + return scheme.pluralGenitive.replace("{{count}}", String(count)); +} +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) {if (scheme.future) return declension(scheme.future, count);else + return "через " + declension(scheme.regular, count);} else + if (scheme.past) return declension(scheme.past, count);else + return declension(scheme.regular, count) + " назад";} else + return declension(scheme.regular, count); + }; +} +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "меньше секунды", + singularNominative: "меньше {{count}} секунды", + singularGenitive: "меньше {{count}} секунд", + pluralGenitive: "меньше {{count}} секунд" + }, + future: { + one: "меньше, чем через секунду", + singularNominative: "меньше, чем через {{count}} секунду", + singularGenitive: "меньше, чем через {{count}} секунды", + pluralGenitive: "меньше, чем через {{count}} секунд" + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд" + }, + past: { + singularNominative: "{{count}} секунду назад", + singularGenitive: "{{count}} секунды назад", + pluralGenitive: "{{count}} секунд назад" + }, + future: { + singularNominative: "через {{count}} секунду", + singularGenitive: "через {{count}} секунды", + pluralGenitive: "через {{count}} секунд" + } + }), + halfAMinute: function halfAMinute(_count, options) { + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "через полминуты";else + return "полминуты назад"; + return "полминуты"; + }, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "меньше минуты", + singularNominative: "меньше {{count}} минуты", + singularGenitive: "меньше {{count}} минут", + pluralGenitive: "меньше {{count}} минут" + }, + future: { + one: "меньше, чем через минуту", + singularNominative: "меньше, чем через {{count}} минуту", + singularGenitive: "меньше, чем через {{count}} минуты", + pluralGenitive: "меньше, чем через {{count}} минут" + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} минута", + singularGenitive: "{{count}} минуты", + pluralGenitive: "{{count}} минут" + }, + past: { + singularNominative: "{{count}} минуту назад", + singularGenitive: "{{count}} минуты назад", + pluralGenitive: "{{count}} минут назад" + }, + future: { + singularNominative: "через {{count}} минуту", + singularGenitive: "через {{count}} минуты", + pluralGenitive: "через {{count}} минут" + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} часа", + singularGenitive: "около {{count}} часов", + pluralGenitive: "около {{count}} часов" + }, + future: { + singularNominative: "приблизительно через {{count}} час", + singularGenitive: "приблизительно через {{count}} часа", + pluralGenitive: "приблизительно через {{count}} часов" + } + }), + xHours: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} час", + singularGenitive: "{{count}} часа", + pluralGenitive: "{{count}} часов" + } }), + xDays: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} день", + singularGenitive: "{{count}} дня", + pluralGenitive: "{{count}} дней" + } }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} недели", + singularGenitive: "около {{count}} недель", + pluralGenitive: "около {{count}} недель" + }, + future: { + singularNominative: "приблизительно через {{count}} неделю", + singularGenitive: "приблизительно через {{count}} недели", + pluralGenitive: "приблизительно через {{count}} недель" + } + }), + xWeeks: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} неделя", + singularGenitive: "{{count}} недели", + pluralGenitive: "{{count}} недель" + } }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} месяца", + singularGenitive: "около {{count}} месяцев", + pluralGenitive: "около {{count}} месяцев" + }, + future: { + singularNominative: "приблизительно через {{count}} месяц", + singularGenitive: "приблизительно через {{count}} месяца", + pluralGenitive: "приблизительно через {{count}} месяцев" + } + }), + xMonths: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяца", + pluralGenitive: "{{count}} месяцев" + } }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} года", + singularGenitive: "около {{count}} лет", + pluralGenitive: "около {{count}} лет" + }, + future: { + singularNominative: "приблизительно через {{count}} год", + singularGenitive: "приблизительно через {{count}} года", + pluralGenitive: "приблизительно через {{count}} лет" + } + }), + xYears: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} года", + pluralGenitive: "{{count}} лет" + } }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больше {{count}} года", + singularGenitive: "больше {{count}} лет", + pluralGenitive: "больше {{count}} лет" + }, + future: { + singularNominative: "больше, чем через {{count}} год", + singularGenitive: "больше, чем через {{count}} года", + pluralGenitive: "больше, чем через {{count}} лет" + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "почти {{count}} год", + singularGenitive: "почти {{count}} года", + pluralGenitive: "почти {{count}} лет" + }, + future: { + singularNominative: "почти через {{count}} год", + singularGenitive: "почти через {{count}} года", + pluralGenitive: "почти через {{count}} лет" + } + }) +}; +var formatDistance = function formatDistance(token, count, options) { + return formatDistanceLocale[token](count, options); +}; +//#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: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}}, {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/ru/_lib/formatRelative.js +var accusativeWeekdays = [ +"воскресенье", +"понедельник", +"вторник", +"среду", +"четверг", +"пятницу", +"субботу"]; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0:return "'в прошлое " + weekday + " в' p"; + case 1: + case 2: + case 4:return "'в прошлый " + weekday + " в' p"; + case 3: + case 5: + case 6:return "'в прошлую " + weekday + " в' p"; + } +} +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + if (day === 2) return "'во " + weekday + " в' p";else + return "'в " + weekday + " в' p"; +} +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0:return "'в следующее " + weekday + " в' p"; + case 1: + case 2: + case 4:return "'в следующий " + weekday + " в' p"; + case 3: + case 5: + case 6:return "'в следующую " + weekday + " в' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + 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/ru/_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: [ + "В", + "П", + "В", + "С", + "Ч", + "П", + "С"], + + 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); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var suffix; + if (unit === "date") suffix = "-е";else + if (unit === "week" || unit === "minute" || unit === "second") 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: "any", + 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/ru.js +/** +* @category Locales +* @summary Russian locale. +* @language Russian +* @iso-639-2 rus +* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) +* @author Lesha Koss [@leshakoss](https://github.com/leshakoss) +*/ +var ru = { + code: "ru", + 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: /^((до )?н\.?\s?э\.?)/i, + abbreviated: /^((до )?н\.?\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, + 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: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ru/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), {}, { + ru: ru }) }); + + +//#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/ru/cdn.min.js b/node_modules/date-fns/locale/ru/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..12201711cb2c1628426d412f3419fecd94e4ddfd --- /dev/null +++ b/node_modules/date-fns/locale/ru/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(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 t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function p(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?f(e.future,t):`через `+f(e.regular,t):e.past?f(e.past,t):f(e.regular,t)+` назад`:f(e.regular,t)}}var m={lessThanXSeconds:p({regular:{one:`меньше секунды`,singularNominative:`меньше {{count}} секунды`,singularGenitive:`меньше {{count}} секунд`,pluralGenitive:`меньше {{count}} секунд`},future:{one:`меньше, чем через секунду`,singularNominative:`меньше, чем через {{count}} секунду`,singularGenitive:`меньше, чем через {{count}} секунды`,pluralGenitive:`меньше, чем через {{count}} секунд`}}),xSeconds:p({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду назад`,singularGenitive:`{{count}} секунды назад`,pluralGenitive:`{{count}} секунд назад`},future:{singularNominative:`через {{count}} секунду`,singularGenitive:`через {{count}} секунды`,pluralGenitive:`через {{count}} секунд`}}),halfAMinute:function(e,t){return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?`через полминуты`:`полминуты назад`:`полминуты`},lessThanXMinutes:p({regular:{one:`меньше минуты`,singularNominative:`меньше {{count}} минуты`,singularGenitive:`меньше {{count}} минут`,pluralGenitive:`меньше {{count}} минут`},future:{one:`меньше, чем через минуту`,singularNominative:`меньше, чем через {{count}} минуту`,singularGenitive:`меньше, чем через {{count}} минуты`,pluralGenitive:`меньше, чем через {{count}} минут`}}),xMinutes:p({regular:{singularNominative:`{{count}} минута`,singularGenitive:`{{count}} минуты`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минуту назад`,singularGenitive:`{{count}} минуты назад`,pluralGenitive:`{{count}} минут назад`},future:{singularNominative:`через {{count}} минуту`,singularGenitive:`через {{count}} минуты`,pluralGenitive:`через {{count}} минут`}}),aboutXHours:p({regular:{singularNominative:`около {{count}} часа`,singularGenitive:`около {{count}} часов`,pluralGenitive:`около {{count}} часов`},future:{singularNominative:`приблизительно через {{count}} час`,singularGenitive:`приблизительно через {{count}} часа`,pluralGenitive:`приблизительно через {{count}} часов`}}),xHours:p({regular:{singularNominative:`{{count}} час`,singularGenitive:`{{count}} часа`,pluralGenitive:`{{count}} часов`}}),xDays:p({regular:{singularNominative:`{{count}} день`,singularGenitive:`{{count}} дня`,pluralGenitive:`{{count}} дней`}}),aboutXWeeks:p({regular:{singularNominative:`около {{count}} недели`,singularGenitive:`около {{count}} недель`,pluralGenitive:`около {{count}} недель`},future:{singularNominative:`приблизительно через {{count}} неделю`,singularGenitive:`приблизительно через {{count}} недели`,pluralGenitive:`приблизительно через {{count}} недель`}}),xWeeks:p({regular:{singularNominative:`{{count}} неделя`,singularGenitive:`{{count}} недели`,pluralGenitive:`{{count}} недель`}}),aboutXMonths:p({regular:{singularNominative:`около {{count}} месяца`,singularGenitive:`около {{count}} месяцев`,pluralGenitive:`около {{count}} месяцев`},future:{singularNominative:`приблизительно через {{count}} месяц`,singularGenitive:`приблизительно через {{count}} месяца`,pluralGenitive:`приблизительно через {{count}} месяцев`}}),xMonths:p({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяца`,pluralGenitive:`{{count}} месяцев`}}),aboutXYears:p({regular:{singularNominative:`около {{count}} года`,singularGenitive:`около {{count}} лет`,pluralGenitive:`около {{count}} лет`},future:{singularNominative:`приблизительно через {{count}} год`,singularGenitive:`приблизительно через {{count}} года`,pluralGenitive:`приблизительно через {{count}} лет`}}),xYears:p({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} года`,pluralGenitive:`{{count}} лет`}}),overXYears:p({regular:{singularNominative:`больше {{count}} года`,singularGenitive:`больше {{count}} лет`,pluralGenitive:`больше {{count}} лет`},future:{singularNominative:`больше, чем через {{count}} год`,singularGenitive:`больше, чем через {{count}} года`,pluralGenitive:`больше, чем через {{count}} лет`}}),almostXYears:p({regular:{singularNominative:`почти {{count}} год`,singularGenitive:`почти {{count}} года`,pluralGenitive:`почти {{count}} лет`},future:{singularNominative:`почти через {{count}} год`,singularGenitive:`почти через {{count}} года`,pluralGenitive:`почти через {{count}} лет`}})},h=function(e,t,n){return m[e](t,n)};function g(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 _={date:g({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:g({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:g({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},v=Symbol.for(`constructDateFrom`);function y(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&v in e?e[v](t):e instanceof Date?new e.constructor(t):new Date(t)}function b(e){var t=[...arguments].slice(1),n=y.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var x={};function S(){return x}function C(e,t){return y(t||e,e)}function w(e,t){var n,r,i=S(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=C(e,t?.in),s=o.getDay(),c=(s1&&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)?I(s,function(e){return e.test(o)}):F(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 F(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function I(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 R={code:`ru`,formatDistance:h,formatLong:_,formatRelative:j,localize:N,match:{ordinalNumber:L({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:P({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:P({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:P({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:P({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:P({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:1,firstWeekContainsDate:1}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{ru:R})}),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/se.cjs b/node_modules/date-fns/locale/se.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d19f46fe119b1e2ae0c8c97257fc3c814711f5dc --- /dev/null +++ b/node_modules/date-fns/locale/se.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.se = void 0; +var _index = require("./se/_lib/formatDistance.cjs"); +var _index2 = require("./se/_lib/formatLong.cjs"); +var _index3 = require("./se/_lib/formatRelative.cjs"); +var _index4 = require("./se/_lib/localize.cjs"); +var _index5 = require("./se/_lib/match.cjs"); + +/** + * @category Locales + * @summary Northern Sámi locale. + * @language Northern Sámi + * @iso-639-2 sme + * @author Audun Rundberg [@audunru](https://github.com/audunru) + */ +const se = (exports.se = { + code: "se", + 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/se.d.cts b/node_modules/date-fns/locale/se.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..338266d9a9cc18c6a22df4e37c10dae8b2bdfac3 --- /dev/null +++ b/node_modules/date-fns/locale/se.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Northern Sámi locale. + * @language Northern Sámi + * @iso-639-2 sme + * @author Audun Rundberg [@audunru](https://github.com/audunru) + */ +export declare const se: Locale; diff --git a/node_modules/date-fns/locale/se.d.ts b/node_modules/date-fns/locale/se.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..338266d9a9cc18c6a22df4e37c10dae8b2bdfac3 --- /dev/null +++ b/node_modules/date-fns/locale/se.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Northern Sámi locale. + * @language Northern Sámi + * @iso-639-2 sme + * @author Audun Rundberg [@audunru](https://github.com/audunru) + */ +export declare const se: Locale; diff --git a/node_modules/date-fns/locale/se.js b/node_modules/date-fns/locale/se.js new file mode 100644 index 0000000000000000000000000000000000000000..3000d03ee2a73740df4fa1f45375033eaba4171d --- /dev/null +++ b/node_modules/date-fns/locale/se.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./se/_lib/formatDistance.js"; +import { formatLong } from "./se/_lib/formatLong.js"; +import { formatRelative } from "./se/_lib/formatRelative.js"; +import { localize } from "./se/_lib/localize.js"; +import { match } from "./se/_lib/match.js"; + +/** + * @category Locales + * @summary Northern Sámi locale. + * @language Northern Sámi + * @iso-639-2 sme + * @author Audun Rundberg [@audunru](https://github.com/audunru) + */ +export const se = { + code: "se", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default se; diff --git a/node_modules/date-fns/locale/se/_lib/formatDistance.cjs b/node_modules/date-fns/locale/se/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ce2f6ae208840846ca28a0236cf70229800d9d7a --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "unnit go ovtta sekundda", + other: "unnit go {{count}} sekundda", + }, + + xSeconds: { + one: "sekundda", + other: "{{count}} sekundda", + }, + + halfAMinute: "bealle minuhta", + + lessThanXMinutes: { + one: "unnit go bealle minuhta", + other: "unnit go {{count}} minuhta", + }, + + xMinutes: { + one: "minuhta", + other: "{{count}} minuhta", + }, + + aboutXHours: { + one: "sullii ovtta diimmu", + other: "sullii {{count}} diimmu", + }, + + xHours: { + one: "diimmu", + other: "{{count}} diimmu", + }, + + xDays: { + one: "beaivvi", + other: "{{count}} beaivvi", + }, + + aboutXWeeks: { + one: "sullii ovtta vahku", + other: "sullii {{count}} vahku", + }, + + xWeeks: { + one: "vahku", + other: "{{count}} vahku", + }, + + aboutXMonths: { + one: "sullii ovtta mánu", + other: "sullii {{count}} mánu", + }, + + xMonths: { + one: "mánu", + other: "{{count}} mánu", + }, + + aboutXYears: { + one: "sullii ovtta jagi", + other: "sullii {{count}} jagi", + }, + + xYears: { + one: "jagi", + other: "{{count}} jagi", + }, + + overXYears: { + one: "guhkit go jagi", + other: "guhkit go {{count}} jagi", + }, + + almostXYears: { + one: "measta jagi", + other: "measta {{count}} jagi", + }, +}; + +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 "geahčen " + result; + } else { + return result + " áigi"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/se/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/se/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/se/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/formatDistance.js b/node_modules/date-fns/locale/se/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..7decbd6932c2936e382d35ae66b7ad712a011f74 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "unnit go ovtta sekundda", + other: "unnit go {{count}} sekundda", + }, + + xSeconds: { + one: "sekundda", + other: "{{count}} sekundda", + }, + + halfAMinute: "bealle minuhta", + + lessThanXMinutes: { + one: "unnit go bealle minuhta", + other: "unnit go {{count}} minuhta", + }, + + xMinutes: { + one: "minuhta", + other: "{{count}} minuhta", + }, + + aboutXHours: { + one: "sullii ovtta diimmu", + other: "sullii {{count}} diimmu", + }, + + xHours: { + one: "diimmu", + other: "{{count}} diimmu", + }, + + xDays: { + one: "beaivvi", + other: "{{count}} beaivvi", + }, + + aboutXWeeks: { + one: "sullii ovtta vahku", + other: "sullii {{count}} vahku", + }, + + xWeeks: { + one: "vahku", + other: "{{count}} vahku", + }, + + aboutXMonths: { + one: "sullii ovtta mánu", + other: "sullii {{count}} mánu", + }, + + xMonths: { + one: "mánu", + other: "{{count}} mánu", + }, + + aboutXYears: { + one: "sullii ovtta jagi", + other: "sullii {{count}} jagi", + }, + + xYears: { + one: "jagi", + other: "{{count}} jagi", + }, + + overXYears: { + one: "guhkit go jagi", + other: "guhkit go {{count}} jagi", + }, + + almostXYears: { + one: "measta jagi", + other: "measta {{count}} jagi", + }, +}; + +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 "geahčen " + result; + } else { + return result + " áigi"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/se/_lib/formatLong.cjs b/node_modules/date-fns/locale/se/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4fcdad73f80201eb8a69a2d085cb62752360d382 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE MMMM d. 'b.' y", + long: "MMMM d. 'b.' y", + medium: "MMM d. 'b.' y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "'dii.' HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'dii.' {{time}}", + long: "{{date}} 'dii.' {{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/se/_lib/formatLong.d.cts b/node_modules/date-fns/locale/se/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/formatLong.d.ts b/node_modules/date-fns/locale/se/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/formatLong.js b/node_modules/date-fns/locale/se/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..2beb4271f84c50f51860dce0630e8de2d20f0fd0 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE MMMM d. 'b.' y", + long: "MMMM d. 'b.' y", + medium: "MMM d. 'b.' y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "'dii.' HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'dii.' {{time}}", + long: "{{date}} 'dii.' {{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/se/_lib/formatRelative.cjs b/node_modules/date-fns/locale/se/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..befaf37a465447b6e6c9944c5f49ef9d9d8cf0aa --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'ovddit' eeee 'dii.' p", + yesterday: "'ikte dii.' p", + today: "'odne dii.' p", + tomorrow: "'ihtin dii.' p", + nextWeek: "EEEE 'dii.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/se/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/se/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/se/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/formatRelative.js b/node_modules/date-fns/locale/se/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..d3e161d68571f52e163825f7518bd8939193c3bc --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'ovddit' eeee 'dii.' p", + yesterday: "'ikte dii.' p", + today: "'odne dii.' p", + tomorrow: "'ihtin dii.' p", + nextWeek: "EEEE 'dii.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/se/_lib/localize.cjs b/node_modules/date-fns/locale/se/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..85380dcabc446ed2f62e4f5fb2c4e70168314c6a --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["o.Kr.", "m.Kr."], + abbreviated: ["o.Kr.", "m.Kr."], + wide: ["ovdal Kristusa", "maŋŋel Kristusa"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartála", "2. kvartála", "3. kvartála", "4. kvartála"], +}; + +const monthValues = { + narrow: ["O", "G", "N", "C", "M", "G", "S", "B", "Č", "G", "S", "J"], + abbreviated: [ + "ođđa", + "guov", + "njuk", + "cuo", + "mies", + "geas", + "suoi", + "borg", + "čakč", + "golg", + "skáb", + "juov", + ], + + wide: [ + "ođđajagemánnu", + "guovvamánnu", + "njukčamánnu", + "cuoŋománnu", + "miessemánnu", + "geassemánnu", + "suoidnemánnu", + "borgemánnu", + "čakčamánnu", + "golggotmánnu", + "skábmamánnu", + "juovlamánnu", + ], +}; + +const dayValues = { + narrow: ["S", "V", "M", "G", "D", "B", "L"], + short: ["sotn", "vuos", "maŋ", "gask", "duor", "bear", "láv"], + abbreviated: ["sotn", "vuos", "maŋ", "gask", "duor", "bear", "láv"], + wide: [ + "sotnabeaivi", + "vuossárga", + "maŋŋebárga", + "gaskavahkku", + "duorastat", + "bearjadat", + "lávvardat", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gaskaidja", + noon: "gaskabeaivi", + morning: "iđđes", + afternoon: "maŋŋel gaska.", + evening: "eahkes", + night: "ihkku", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeaivvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabea.", + evening: "eahkes", + night: "ihkku", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeavvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabeaivvi", + evening: "eahkes", + night: "ihkku", + }, +}; + +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", + }), +}); diff --git a/node_modules/date-fns/locale/se/_lib/localize.d.cts b/node_modules/date-fns/locale/se/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/localize.d.ts b/node_modules/date-fns/locale/se/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/localize.js b/node_modules/date-fns/locale/se/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..00ddee9567c05079312cd088c6d382b2652042d6 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["o.Kr.", "m.Kr."], + abbreviated: ["o.Kr.", "m.Kr."], + wide: ["ovdal Kristusa", "maŋŋel Kristusa"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartála", "2. kvartála", "3. kvartála", "4. kvartála"], +}; + +const monthValues = { + narrow: ["O", "G", "N", "C", "M", "G", "S", "B", "Č", "G", "S", "J"], + abbreviated: [ + "ođđa", + "guov", + "njuk", + "cuo", + "mies", + "geas", + "suoi", + "borg", + "čakč", + "golg", + "skáb", + "juov", + ], + + wide: [ + "ođđajagemánnu", + "guovvamánnu", + "njukčamánnu", + "cuoŋománnu", + "miessemánnu", + "geassemánnu", + "suoidnemánnu", + "borgemánnu", + "čakčamánnu", + "golggotmánnu", + "skábmamánnu", + "juovlamánnu", + ], +}; + +const dayValues = { + narrow: ["S", "V", "M", "G", "D", "B", "L"], + short: ["sotn", "vuos", "maŋ", "gask", "duor", "bear", "láv"], + abbreviated: ["sotn", "vuos", "maŋ", "gask", "duor", "bear", "láv"], + wide: [ + "sotnabeaivi", + "vuossárga", + "maŋŋebárga", + "gaskavahkku", + "duorastat", + "bearjadat", + "lávvardat", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gaskaidja", + noon: "gaskabeaivi", + morning: "iđđes", + afternoon: "maŋŋel gaska.", + evening: "eahkes", + night: "ihkku", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeaivvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabea.", + evening: "eahkes", + night: "ihkku", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeavvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabeaivvi", + evening: "eahkes", + night: "ihkku", + }, +}; + +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", + }), +}; diff --git a/node_modules/date-fns/locale/se/_lib/match.cjs b/node_modules/date-fns/locale/se/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1fc78a23712ce6f4e253d9764878cc9990648001 --- /dev/null +++ b/node_modules/date-fns/locale/se/_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; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + abbreviated: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + wide: /^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i, +}; +const parseEraPatterns = { + any: [/^o/i, /^m/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartála/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ogncmsbčj]/i, + abbreviated: + /^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i, + wide: /^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^o/i, + /^g/i, + /^n/i, + /^c/i, + /^m/i, + /^g/i, + /^s/i, + /^b/i, + /^č/i, + /^g/i, + /^s/i, + /^j/i, + ], + + any: [ + /^o/i, + /^gu/i, + /^n/i, + /^c/i, + /^m/i, + /^ge/i, + /^su/i, + /^b/i, + /^č/i, + /^go/i, + /^sk/i, + /^j/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[svmgdbl]/i, + short: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + abbreviated: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + wide: /^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^v/i, /^m/i, /^g/i, /^d/i, /^b/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i, + any: /^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^gaskai/i, + noon: /^gaskab/i, + morning: /iđđes/i, + afternoon: /maŋŋel gaskabeaivvi/i, + evening: /eahkes/i, + night: /ihkku/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/se/_lib/match.d.cts b/node_modules/date-fns/locale/se/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/match.d.ts b/node_modules/date-fns/locale/se/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/se/_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/se/_lib/match.js b/node_modules/date-fns/locale/se/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..7ae72f68642a9fa1411c4578654f457ed22eea89 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + abbreviated: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + wide: /^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i, +}; +const parseEraPatterns = { + any: [/^o/i, /^m/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartála/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ogncmsbčj]/i, + abbreviated: + /^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i, + wide: /^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^o/i, + /^g/i, + /^n/i, + /^c/i, + /^m/i, + /^g/i, + /^s/i, + /^b/i, + /^č/i, + /^g/i, + /^s/i, + /^j/i, + ], + + any: [ + /^o/i, + /^gu/i, + /^n/i, + /^c/i, + /^m/i, + /^ge/i, + /^su/i, + /^b/i, + /^č/i, + /^go/i, + /^sk/i, + /^j/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[svmgdbl]/i, + short: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + abbreviated: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + wide: /^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^v/i, /^m/i, /^g/i, /^d/i, /^b/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i, + any: /^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^gaskai/i, + noon: /^gaskab/i, + morning: /iđđes/i, + afternoon: /maŋŋel gaskabeaivvi/i, + evening: /eahkes/i, + night: /ihkku/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/se/cdn.js b/node_modules/date-fns/locale/se/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..27ea20a146b1535fe899804824b342aa45a15eb3 --- /dev/null +++ b/node_modules/date-fns/locale/se/cdn.js @@ -0,0 +1,528 @@ +(() => { +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/se/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "unnit go ovtta sekundda", + other: "unnit go {{count}} sekundda" + }, + xSeconds: { + one: "sekundda", + other: "{{count}} sekundda" + }, + halfAMinute: "bealle minuhta", + lessThanXMinutes: { + one: "unnit go bealle minuhta", + other: "unnit go {{count}} minuhta" + }, + xMinutes: { + one: "minuhta", + other: "{{count}} minuhta" + }, + aboutXHours: { + one: "sullii ovtta diimmu", + other: "sullii {{count}} diimmu" + }, + xHours: { + one: "diimmu", + other: "{{count}} diimmu" + }, + xDays: { + one: "beaivvi", + other: "{{count}} beaivvi" + }, + aboutXWeeks: { + one: "sullii ovtta vahku", + other: "sullii {{count}} vahku" + }, + xWeeks: { + one: "vahku", + other: "{{count}} vahku" + }, + aboutXMonths: { + one: "sullii ovtta mánu", + other: "sullii {{count}} mánu" + }, + xMonths: { + one: "mánu", + other: "{{count}} mánu" + }, + aboutXYears: { + one: "sullii ovtta jagi", + other: "sullii {{count}} jagi" + }, + xYears: { + one: "jagi", + other: "{{count}} jagi" + }, + overXYears: { + one: "guhkit go jagi", + other: "guhkit go {{count}} jagi" + }, + almostXYears: { + one: "measta jagi", + other: "measta {{count}} jagi" + } +}; +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 "geahčen " + result;else + return result + " áigi"; + 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 d. 'b.' y", + long: "MMMM d. 'b.' y", + medium: "MMM d. 'b.' y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "'dii.' HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'dii.' {{time}}", + long: "{{date}} 'dii.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/se/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'ovddit' eeee 'dii.' p", + yesterday: "'ikte dii.' p", + today: "'odne dii.' p", + tomorrow: "'ihtin dii.' p", + nextWeek: "EEEE 'dii.' 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/se/_lib/localize.js +var eraValues = { + narrow: ["o.Kr.", "m.Kr."], + abbreviated: ["o.Kr.", "m.Kr."], + wide: ["ovdal Kristusa", "maŋŋel Kristusa"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. kvartála", + "2. kvartála", + "3. kvartála", + "4. kvartála"] + +}; +var monthValues = { + narrow: [ + "O", + "G", + "N", + "C", + "M", + "G", + "S", + "B", + "Č", + "G", + "S", + "J"], + + abbreviated: [ + "ođđa", + "guov", + "njuk", + "cuo", + "mies", + "geas", + "suoi", + "borg", + "čakč", + "golg", + "skáb", + "juov"], + + wide: [ + "ođđajagemánnu", + "guovvamánnu", + "njukčamánnu", + "cuoŋománnu", + "miessemánnu", + "geassemánnu", + "suoidnemánnu", + "borgemánnu", + "čakčamánnu", + "golggotmánnu", + "skábmamánnu", + "juovlamánnu"] + +}; +var dayValues = { + narrow: [ + "S", + "V", + "M", + "G", + "D", + "B", + "L"], + + short: [ + "sotn", + "vuos", + "maŋ", + "gask", + "duor", + "bear", + "láv"], + + abbreviated: [ + "sotn", + "vuos", + "maŋ", + "gask", + "duor", + "bear", + "láv"], + + wide: [ + "sotnabeaivi", + "vuossárga", + "maŋŋebárga", + "gaskavahkku", + "duorastat", + "bearjadat", + "lávvardat"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gaskaidja", + noon: "gaskabeaivi", + morning: "iđđes", + afternoon: "maŋŋel gaska.", + evening: "eahkes", + night: "ihkku" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeaivvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabea.", + evening: "eahkes", + night: "ihkku" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeavvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabeaivvi", + evening: "eahkes", + night: "ihkku" + } +}; +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" + }) +}; +//#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/se.js +/** +* @category Locales +* @summary Northern Sámi locale. +* @language Northern Sámi +* @iso-639-2 sme +* @author Audun Rundberg [@audunru](https://github.com/audunru) +*/ +var se = { + code: "se", + 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: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + abbreviated: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + wide: /^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^o/i, /^m/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartála/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: /^[ogncmsbčj]/i, + abbreviated: /^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i, + wide: /^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^o/i, + /^g/i, + /^n/i, + /^c/i, + /^m/i, + /^g/i, + /^s/i, + /^b/i, + /^č/i, + /^g/i, + /^s/i, + /^j/i], + + any: [ + /^o/i, + /^gu/i, + /^n/i, + /^c/i, + /^m/i, + /^ge/i, + /^su/i, + /^b/i, + /^č/i, + /^go/i, + /^sk/i, + /^j/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[svmgdbl]/i, + short: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + abbreviated: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + wide: /^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^s/i, + /^v/i, + /^m/i, + /^g/i, + /^d/i, + /^b/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i, + any: /^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^gaskai/i, + noon: /^gaskab/i, + morning: /iđđes/i, + afternoon: /maŋŋel gaskabeaivvi/i, + evening: /eahkes/i, + night: /ihkku/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/se/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), {}, { + se: se }) }); + + +//#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/se/cdn.min.js b/node_modules/date-fns/locale/se/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..2e649f84f9e54eb1c019ab5cc446aeb2edfb8b8d --- /dev/null +++ b/node_modules/date-fns/locale/se/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?`geahčen `+r:r+` áigi`: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 d. 'b.' y`,long:`MMMM d. 'b.' y`,medium:`MMM d. 'b.' y`,short:`dd.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`'dii.' HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'dii.' {{time}}`,long:`{{date}} 'dii.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'ovddit' eeee 'dii.' p`,yesterday:`'ikte dii.' p`,today:`'odne dii.' p`,tomorrow:`'ihtin dii.' p`,nextWeek:`EEEE 'dii.' 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)+`.`},era:f({values:{narrow:[`o.Kr.`,`m.Kr.`],abbreviated:[`o.Kr.`,`m.Kr.`],wide:[`ovdal Kristusa`,`maŋŋel Kristusa`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartála`,`2. kvartála`,`3. kvartála`,`4. kvartála`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`O`,`G`,`N`,`C`,`M`,`G`,`S`,`B`,`Č`,`G`,`S`,`J`],abbreviated:[`ođđa`,`guov`,`njuk`,`cuo`,`mies`,`geas`,`suoi`,`borg`,`čakč`,`golg`,`skáb`,`juov`],wide:[`ođđajagemánnu`,`guovvamánnu`,`njukčamánnu`,`cuoŋománnu`,`miessemánnu`,`geassemánnu`,`suoidnemánnu`,`borgemánnu`,`čakčamánnu`,`golggotmánnu`,`skábmamánnu`,`juovlamánnu`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`V`,`M`,`G`,`D`,`B`,`L`],short:[`sotn`,`vuos`,`maŋ`,`gask`,`duor`,`bear`,`láv`],abbreviated:[`sotn`,`vuos`,`maŋ`,`gask`,`duor`,`bear`,`láv`],wide:[`sotnabeaivi`,`vuossárga`,`maŋŋebárga`,`gaskavahkku`,`duorastat`,`bearjadat`,`lávvardat`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`gaskaidja`,noon:`gaskabeaivi`,morning:`iđđes`,afternoon:`maŋŋel gaska.`,evening:`eahkes`,night:`ihkku`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`gaskaidja`,noon:`gaskabeaivvi`,morning:`iđđes`,afternoon:`maŋŋel gaskabea.`,evening:`eahkes`,night:`ihkku`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gaskaidja`,noon:`gaskabeavvi`,morning:`iđđes`,afternoon:`maŋŋel gaskabeaivvi`,evening:`eahkes`,night:`ihkku`}},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:`se`,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:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,abbreviated:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,wide:/^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^o/i,/^m/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartála/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:/^[ogncmsbčj]/i,abbreviated:/^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i,wide:/^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^o/i,/^g/i,/^n/i,/^c/i,/^m/i,/^g/i,/^s/i,/^b/i,/^č/i,/^g/i,/^s/i,/^j/i],any:[/^o/i,/^gu/i,/^n/i,/^c/i,/^m/i,/^ge/i,/^su/i,/^b/i,/^č/i,/^go/i,/^sk/i,/^j/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[svmgdbl]/i,short:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,abbreviated:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,wide:/^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^v/i,/^m/i,/^g/i,/^d/i,/^b/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i,any:/^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^gaskai/i,noon:/^gaskab/i,morning:/iđđes/i,afternoon:/maŋŋel gaskabeaivvi/i,evening:/eahkes/i,night:/ihkku/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{se: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/sk.cjs b/node_modules/date-fns/locale/sk.cjs new file mode 100644 index 0000000000000000000000000000000000000000..bf43c6544e48b90568e33de7e837f22027577e84 --- /dev/null +++ b/node_modules/date-fns/locale/sk.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.sk = void 0; +var _index = require("./sk/_lib/formatDistance.cjs"); +var _index2 = require("./sk/_lib/formatLong.cjs"); +var _index3 = require("./sk/_lib/formatRelative.cjs"); +var _index4 = require("./sk/_lib/localize.cjs"); +var _index5 = require("./sk/_lib/match.cjs"); + +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +const sk = (exports.sk = { + code: "sk", + 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/sk.d.cts b/node_modules/date-fns/locale/sk.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..793efb1f1c6c2fc8dfea76fddc40a5bed8f6651e --- /dev/null +++ b/node_modules/date-fns/locale/sk.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +export declare const sk: Locale; diff --git a/node_modules/date-fns/locale/sk.d.ts b/node_modules/date-fns/locale/sk.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..793efb1f1c6c2fc8dfea76fddc40a5bed8f6651e --- /dev/null +++ b/node_modules/date-fns/locale/sk.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +export declare const sk: Locale; diff --git a/node_modules/date-fns/locale/sk.js b/node_modules/date-fns/locale/sk.js new file mode 100644 index 0000000000000000000000000000000000000000..5739830e5187b68d69523bfb625e0dfcdacf5b21 --- /dev/null +++ b/node_modules/date-fns/locale/sk.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./sk/_lib/formatDistance.js"; +import { formatLong } from "./sk/_lib/formatLong.js"; +import { formatRelative } from "./sk/_lib/formatRelative.js"; +import { localize } from "./sk/_lib/localize.js"; +import { match } from "./sk/_lib/match.js"; + +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +export const sk = { + code: "sk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default sk; diff --git a/node_modules/date-fns/locale/sk/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sk/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..bb1d8669e44221ccf0d3f7a9f6e652c34f738568 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance.cjs @@ -0,0 +1,230 @@ +"use strict"; +exports.formatDistance = void 0; + +function declensionGroup(scheme, count) { + if (count === 1 && scheme.one) { + return scheme.one; + } + + if (count >= 2 && count <= 4 && scheme.twoFour) { + return scheme.twoFour; + } + + // if count === null || count === 0 || count >= 5 + return scheme.other; +} + +function declension(scheme, count, time) { + const group = declensionGroup(scheme, count); + const finalText = group[time]; + return finalText.replace("{{count}}", String(count)); +} + +function extractPreposition(token) { + const result = ["lessThan", "about", "over", "almost"].filter( + function (preposition) { + return !!token.match(new RegExp("^" + preposition)); + }, + ); + + return result[0]; +} + +function prefixPreposition(preposition) { + let translation = ""; + + if (preposition === "almost") { + translation = "takmer"; + } + + if (preposition === "about") { + translation = "približne"; + } + + return translation.length > 0 ? translation + " " : ""; +} + +function suffixPreposition(preposition) { + let translation = ""; + + if (preposition === "lessThan") { + translation = "menej než"; + } + + if (preposition === "over") { + translation = "viac než"; + } + + return translation.length > 0 ? translation + " " : ""; +} + +function lowercaseFirstLetter(string) { + return string.charAt(0).toLowerCase() + string.slice(1); +} + +const formatDistanceLocale = { + xSeconds: { + one: { + present: "sekunda", + past: "sekundou", + future: "sekundu", + }, + twoFour: { + present: "{{count}} sekundy", + past: "{{count}} sekundami", + future: "{{count}} sekundy", + }, + other: { + present: "{{count}} sekúnd", + past: "{{count}} sekundami", + future: "{{count}} sekúnd", + }, + }, + + halfAMinute: { + other: { + present: "pol minúty", + past: "pol minútou", + future: "pol minúty", + }, + }, + + xMinutes: { + one: { + present: "minúta", + past: "minútou", + future: "minútu", + }, + twoFour: { + present: "{{count}} minúty", + past: "{{count}} minútami", + future: "{{count}} minúty", + }, + other: { + present: "{{count}} minút", + past: "{{count}} minútami", + future: "{{count}} minút", + }, + }, + + xHours: { + one: { + present: "hodina", + past: "hodinou", + future: "hodinu", + }, + twoFour: { + present: "{{count}} hodiny", + past: "{{count}} hodinami", + future: "{{count}} hodiny", + }, + other: { + present: "{{count}} hodín", + past: "{{count}} hodinami", + future: "{{count}} hodín", + }, + }, + + xDays: { + one: { + present: "deň", + past: "dňom", + future: "deň", + }, + twoFour: { + present: "{{count}} dni", + past: "{{count}} dňami", + future: "{{count}} dni", + }, + other: { + present: "{{count}} dní", + past: "{{count}} dňami", + future: "{{count}} dní", + }, + }, + + xWeeks: { + one: { + present: "týždeň", + past: "týždňom", + future: "týždeň", + }, + twoFour: { + present: "{{count}} týždne", + past: "{{count}} týždňami", + future: "{{count}} týždne", + }, + other: { + present: "{{count}} týždňov", + past: "{{count}} týždňami", + future: "{{count}} týždňov", + }, + }, + + xMonths: { + one: { + present: "mesiac", + past: "mesiacom", + future: "mesiac", + }, + twoFour: { + present: "{{count}} mesiace", + past: "{{count}} mesiacmi", + future: "{{count}} mesiace", + }, + other: { + present: "{{count}} mesiacov", + past: "{{count}} mesiacmi", + future: "{{count}} mesiacov", + }, + }, + + xYears: { + one: { + present: "rok", + past: "rokom", + future: "rok", + }, + twoFour: { + present: "{{count}} roky", + past: "{{count}} rokmi", + future: "{{count}} roky", + }, + other: { + present: "{{count}} rokov", + past: "{{count}} rokmi", + future: "{{count}} rokov", + }, + }, +}; + +const formatDistance = (token, count, options) => { + const preposition = extractPreposition(token) || ""; + const key = lowercaseFirstLetter(token.substring(preposition.length)); + const scheme = formatDistanceLocale[key]; + + if (!options?.addSuffix) { + return ( + prefixPreposition(preposition) + + suffixPreposition(preposition) + + declension(scheme, count, "present") + ); + } + + if (options.comparison && options.comparison > 0) { + return ( + prefixPreposition(preposition) + + "o " + + suffixPreposition(preposition) + + declension(scheme, count, "future") + ); + } else { + return ( + prefixPreposition(preposition) + + "pred " + + suffixPreposition(preposition) + + declension(scheme, count, "past") + ); + } +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sk/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sk/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sk/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/formatDistance.js b/node_modules/date-fns/locale/sk/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..8e2813cbee5c6e8d2c230770200450dd5f95f912 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance.js @@ -0,0 +1,226 @@ +function declensionGroup(scheme, count) { + if (count === 1 && scheme.one) { + return scheme.one; + } + + if (count >= 2 && count <= 4 && scheme.twoFour) { + return scheme.twoFour; + } + + // if count === null || count === 0 || count >= 5 + return scheme.other; +} + +function declension(scheme, count, time) { + const group = declensionGroup(scheme, count); + const finalText = group[time]; + return finalText.replace("{{count}}", String(count)); +} + +function extractPreposition(token) { + const result = ["lessThan", "about", "over", "almost"].filter( + function (preposition) { + return !!token.match(new RegExp("^" + preposition)); + }, + ); + + return result[0]; +} + +function prefixPreposition(preposition) { + let translation = ""; + + if (preposition === "almost") { + translation = "takmer"; + } + + if (preposition === "about") { + translation = "približne"; + } + + return translation.length > 0 ? translation + " " : ""; +} + +function suffixPreposition(preposition) { + let translation = ""; + + if (preposition === "lessThan") { + translation = "menej než"; + } + + if (preposition === "over") { + translation = "viac než"; + } + + return translation.length > 0 ? translation + " " : ""; +} + +function lowercaseFirstLetter(string) { + return string.charAt(0).toLowerCase() + string.slice(1); +} + +const formatDistanceLocale = { + xSeconds: { + one: { + present: "sekunda", + past: "sekundou", + future: "sekundu", + }, + twoFour: { + present: "{{count}} sekundy", + past: "{{count}} sekundami", + future: "{{count}} sekundy", + }, + other: { + present: "{{count}} sekúnd", + past: "{{count}} sekundami", + future: "{{count}} sekúnd", + }, + }, + + halfAMinute: { + other: { + present: "pol minúty", + past: "pol minútou", + future: "pol minúty", + }, + }, + + xMinutes: { + one: { + present: "minúta", + past: "minútou", + future: "minútu", + }, + twoFour: { + present: "{{count}} minúty", + past: "{{count}} minútami", + future: "{{count}} minúty", + }, + other: { + present: "{{count}} minút", + past: "{{count}} minútami", + future: "{{count}} minút", + }, + }, + + xHours: { + one: { + present: "hodina", + past: "hodinou", + future: "hodinu", + }, + twoFour: { + present: "{{count}} hodiny", + past: "{{count}} hodinami", + future: "{{count}} hodiny", + }, + other: { + present: "{{count}} hodín", + past: "{{count}} hodinami", + future: "{{count}} hodín", + }, + }, + + xDays: { + one: { + present: "deň", + past: "dňom", + future: "deň", + }, + twoFour: { + present: "{{count}} dni", + past: "{{count}} dňami", + future: "{{count}} dni", + }, + other: { + present: "{{count}} dní", + past: "{{count}} dňami", + future: "{{count}} dní", + }, + }, + + xWeeks: { + one: { + present: "týždeň", + past: "týždňom", + future: "týždeň", + }, + twoFour: { + present: "{{count}} týždne", + past: "{{count}} týždňami", + future: "{{count}} týždne", + }, + other: { + present: "{{count}} týždňov", + past: "{{count}} týždňami", + future: "{{count}} týždňov", + }, + }, + + xMonths: { + one: { + present: "mesiac", + past: "mesiacom", + future: "mesiac", + }, + twoFour: { + present: "{{count}} mesiace", + past: "{{count}} mesiacmi", + future: "{{count}} mesiace", + }, + other: { + present: "{{count}} mesiacov", + past: "{{count}} mesiacmi", + future: "{{count}} mesiacov", + }, + }, + + xYears: { + one: { + present: "rok", + past: "rokom", + future: "rok", + }, + twoFour: { + present: "{{count}} roky", + past: "{{count}} rokmi", + future: "{{count}} roky", + }, + other: { + present: "{{count}} rokov", + past: "{{count}} rokmi", + future: "{{count}} rokov", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + const preposition = extractPreposition(token) || ""; + const key = lowercaseFirstLetter(token.substring(preposition.length)); + const scheme = formatDistanceLocale[key]; + + if (!options?.addSuffix) { + return ( + prefixPreposition(preposition) + + suffixPreposition(preposition) + + declension(scheme, count, "present") + ); + } + + if (options.comparison && options.comparison > 0) { + return ( + prefixPreposition(preposition) + + "o " + + suffixPreposition(preposition) + + declension(scheme, count, "future") + ); + } else { + return ( + prefixPreposition(preposition) + + "pred " + + suffixPreposition(preposition) + + declension(scheme, count, "past") + ); + } +}; diff --git a/node_modules/date-fns/locale/sk/_lib/formatLong.cjs b/node_modules/date-fns/locale/sk/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..fe0359f9ac8704da2d787d2cf5c14260bf270f39 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatLong.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1986 +const dateFormats = { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. M. y", + short: "d. M. y", +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#2149 +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1994 +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/sk/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sk/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sk/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/formatLong.js b/node_modules/date-fns/locale/sk/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..e3139c0a680cc0a506af9eb4026a6b757cdfc89b --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatLong.js @@ -0,0 +1,42 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1986 +const dateFormats = { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. M. y", + short: "d. M. y", +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#2149 +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1994 +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/sk/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sk/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..23411a1d5eab6d688dbba85b34ef21c80ab24f75 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative.cjs @@ -0,0 +1,84 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 +const accusativeWeekdays = [ + "nedeľu", + "pondelok", + "utorok", + "stredu", + "štvrtok", + "piatok", + "sobotu", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: /* Sun */ + case 3: /* Wed */ + case 6 /* Sat */: + return "'minulú " + weekday + " o' p"; + default: + return "'minulý' eeee 'o' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + if (day === 4 /* Thu */) { + return "'vo' eeee 'o' p"; + } else { + return "'v " + weekday + " o' p"; + } +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: /* Sun */ + case 4: /* Wed */ + case 6 /* Sat */: + return "'budúcu " + weekday + " o' p"; + default: + return "'budúci' eeee 'o' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'včera o' p", + today: "'dnes o' p", + tomorrow: "'zajtra o' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/sk/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sk/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sk/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/formatRelative.js b/node_modules/date-fns/locale/sk/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..8b6032fb7d26e19f6b1b4eb674128029d6127b15 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative.js @@ -0,0 +1,81 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 +const accusativeWeekdays = [ + "nedeľu", + "pondelok", + "utorok", + "stredu", + "štvrtok", + "piatok", + "sobotu", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: /* Sun */ + case 3: /* Wed */ + case 6 /* Sat */: + return "'minulú " + weekday + " o' p"; + default: + return "'minulý' eeee 'o' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + if (day === 4 /* Thu */) { + return "'vo' eeee 'o' p"; + } else { + return "'v " + weekday + " o' p"; + } +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: /* Sun */ + case 4: /* Wed */ + case 6 /* Sat */: + return "'budúcu " + weekday + " o' p"; + default: + return "'budúci' eeee 'o' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'včera o' p", + today: "'dnes o' p", + tomorrow: "'zajtra o' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/sk/_lib/localize.cjs b/node_modules/date-fns/locale/sk/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..043f5f062157d5af05cc7749796e523f35901f3c --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/localize.cjs @@ -0,0 +1,205 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1772 +const eraValues = { + narrow: ["pred Kr.", "po Kr."], + abbreviated: ["pred Kr.", "po Kr."], + wide: ["pred Kristom", "po Kristovi"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1780 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. štvrťrok", "2. štvrťrok", "3. štvrťrok", "4. štvrťrok"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1804 +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "január", + "február", + "marec", + "apríl", + "máj", + "jún", + "júl", + "august", + "september", + "október", + "november", + "december", + ], +}; +const formattingMonthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januára", + "februára", + "marca", + "apríla", + "mája", + "júna", + "júla", + "augusta", + "septembra", + "októbra", + "novembra", + "decembra", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1876 +const dayValues = { + narrow: ["n", "p", "u", "s", "š", "p", "s"], + short: ["ne", "po", "ut", "st", "št", "pi", "so"], + abbreviated: ["ne", "po", "ut", "st", "št", "pi", "so"], + wide: [ + "nedeľa", + "pondelok", + "utorok", + "streda", + "štvrtok", + "piatok", + "sobota", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1932 +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "noc", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "noc", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "polnoc", + noon: "poludnie", + morning: "ráno", + afternoon: "popoludnie", + evening: "večer", + night: "noc", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "nap.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "v n.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "napol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "v noci", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o polnoci", + noon: "napoludnie", + morning: "ráno", + afternoon: "popoludní", + evening: "večer", + night: "v noci", + }, +}; + +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/sk/_lib/localize.d.cts b/node_modules/date-fns/locale/sk/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/localize.d.ts b/node_modules/date-fns/locale/sk/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/localize.js b/node_modules/date-fns/locale/sk/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..c4ace32e4609c75eeccc29bebf991846b4cdedba --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/localize.js @@ -0,0 +1,203 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1772 +const eraValues = { + narrow: ["pred Kr.", "po Kr."], + abbreviated: ["pred Kr.", "po Kr."], + wide: ["pred Kristom", "po Kristovi"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1780 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. štvrťrok", "2. štvrťrok", "3. štvrťrok", "4. štvrťrok"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1804 +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "január", + "február", + "marec", + "apríl", + "máj", + "jún", + "júl", + "august", + "september", + "október", + "november", + "december", + ], +}; +const formattingMonthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januára", + "februára", + "marca", + "apríla", + "mája", + "júna", + "júla", + "augusta", + "septembra", + "októbra", + "novembra", + "decembra", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1876 +const dayValues = { + narrow: ["n", "p", "u", "s", "š", "p", "s"], + short: ["ne", "po", "ut", "st", "št", "pi", "so"], + abbreviated: ["ne", "po", "ut", "st", "št", "pi", "so"], + wide: [ + "nedeľa", + "pondelok", + "utorok", + "streda", + "štvrtok", + "piatok", + "sobota", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1932 +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "noc", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "noc", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "polnoc", + noon: "poludnie", + morning: "ráno", + afternoon: "popoludnie", + evening: "večer", + night: "noc", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "nap.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "v n.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "napol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "v noci", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o polnoci", + noon: "napoludnie", + morning: "ráno", + afternoon: "popoludní", + evening: "večer", + night: "v noci", + }, +}; + +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/sk/_lib/match.cjs b/node_modules/date-fns/locale/sk/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f287cddf6c1bf8b05d7a9dd95c41ba9fee45ad6e --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|n)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\. [šs]tvr[ťt]rok/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, + wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/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, + /^m[áa]j/i, + /^j[úu]n/i, + /^j[úu]l/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusšp]/i, + short: /^(ne|po|ut|st|št|pi|so)/i, + abbreviated: /^(ne|po|ut|st|št|pi|so)/i, + wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^u/i, /^s/i, /^š/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^u/i, /^st/i, /^(št|stv)/i, /^pi/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, + abbreviated: + /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, + any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /poln/i, + noon: /^(nap|(na)?pol(\.|u))/i, + morning: /^r[áa]no/i, + afternoon: /^pop/i, + evening: /^ve[čc]/i, + night: /^(noc|v n\.)/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/sk/_lib/match.d.cts b/node_modules/date-fns/locale/sk/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/match.d.ts b/node_modules/date-fns/locale/sk/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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/sk/_lib/match.js b/node_modules/date-fns/locale/sk/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..1f03a7702afaff586044a0d281b98a921448c5ec --- /dev/null +++ b/node_modules/date-fns/locale/sk/_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: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|n)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\. [šs]tvr[ťt]rok/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, + wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/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, + /^m[áa]j/i, + /^j[úu]n/i, + /^j[úu]l/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusšp]/i, + short: /^(ne|po|ut|st|št|pi|so)/i, + abbreviated: /^(ne|po|ut|st|št|pi|so)/i, + wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^u/i, /^s/i, /^š/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^u/i, /^st/i, /^(št|stv)/i, /^pi/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, + abbreviated: + /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, + any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /poln/i, + noon: /^(nap|(na)?pol(\.|u))/i, + morning: /^r[áa]no/i, + afternoon: /^pop/i, + evening: /^ve[čc]/i, + night: /^(noc|v n\.)/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/sk/cdn.js b/node_modules/date-fns/locale/sk/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..0ff71d1aa95be9fe575f5b4b5e966540e461a723 --- /dev/null +++ b/node_modules/date-fns/locale/sk/cdn.js @@ -0,0 +1,951 @@ +(() => { +var _window$dateFns;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);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}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);} //#region dist/date-fns/locale/sk/_lib/formatDistance.js +function declensionGroup(scheme, count) { + if (count === 1 && scheme.one) return scheme.one; + if (count >= 2 && count <= 4 && scheme.twoFour) return scheme.twoFour; + return scheme.other; +} +function declension(scheme, count, time) { + return declensionGroup(scheme, count)[time].replace("{{count}}", String(count)); +} +function extractPreposition(token) { + return [ + "lessThan", + "about", + "over", + "almost"]. + filter(function (preposition) { + return !!token.match(new RegExp("^" + preposition)); + })[0]; +} +function prefixPreposition(preposition) { + var translation = ""; + if (preposition === "almost") translation = "takmer"; + if (preposition === "about") translation = "približne"; + return translation.length > 0 ? translation + " " : ""; +} +function suffixPreposition(preposition) { + var translation = ""; + if (preposition === "lessThan") translation = "menej než"; + if (preposition === "over") translation = "viac než"; + return translation.length > 0 ? translation + " " : ""; +} +function lowercaseFirstLetter(string) { + return string.charAt(0).toLowerCase() + string.slice(1); +} +var formatDistanceLocale = { + xSeconds: { + one: { + present: "sekunda", + past: "sekundou", + future: "sekundu" + }, + twoFour: { + present: "{{count}} sekundy", + past: "{{count}} sekundami", + future: "{{count}} sekundy" + }, + other: { + present: "{{count}} sekúnd", + past: "{{count}} sekundami", + future: "{{count}} sekúnd" + } + }, + halfAMinute: { other: { + present: "pol minúty", + past: "pol minútou", + future: "pol minúty" + } }, + xMinutes: { + one: { + present: "minúta", + past: "minútou", + future: "minútu" + }, + twoFour: { + present: "{{count}} minúty", + past: "{{count}} minútami", + future: "{{count}} minúty" + }, + other: { + present: "{{count}} minút", + past: "{{count}} minútami", + future: "{{count}} minút" + } + }, + xHours: { + one: { + present: "hodina", + past: "hodinou", + future: "hodinu" + }, + twoFour: { + present: "{{count}} hodiny", + past: "{{count}} hodinami", + future: "{{count}} hodiny" + }, + other: { + present: "{{count}} hodín", + past: "{{count}} hodinami", + future: "{{count}} hodín" + } + }, + xDays: { + one: { + present: "deň", + past: "dňom", + future: "deň" + }, + twoFour: { + present: "{{count}} dni", + past: "{{count}} dňami", + future: "{{count}} dni" + }, + other: { + present: "{{count}} dní", + past: "{{count}} dňami", + future: "{{count}} dní" + } + }, + xWeeks: { + one: { + present: "týždeň", + past: "týždňom", + future: "týždeň" + }, + twoFour: { + present: "{{count}} týždne", + past: "{{count}} týždňami", + future: "{{count}} týždne" + }, + other: { + present: "{{count}} týždňov", + past: "{{count}} týždňami", + future: "{{count}} týždňov" + } + }, + xMonths: { + one: { + present: "mesiac", + past: "mesiacom", + future: "mesiac" + }, + twoFour: { + present: "{{count}} mesiace", + past: "{{count}} mesiacmi", + future: "{{count}} mesiace" + }, + other: { + present: "{{count}} mesiacov", + past: "{{count}} mesiacmi", + future: "{{count}} mesiacov" + } + }, + xYears: { + one: { + present: "rok", + past: "rokom", + future: "rok" + }, + twoFour: { + present: "{{count}} roky", + past: "{{count}} rokmi", + future: "{{count}} roky" + }, + other: { + present: "{{count}} rokov", + past: "{{count}} rokmi", + future: "{{count}} rokov" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var preposition = extractPreposition(token) || ""; + var scheme = formatDistanceLocale[lowercaseFirstLetter(token.substring(preposition.length))]; + if (!(options !== null && options !== void 0 && options.addSuffix)) return prefixPreposition(preposition) + suffixPreposition(preposition) + declension(scheme, count, "present"); + if (options.comparison && options.comparison > 0) return prefixPreposition(preposition) + "o " + suffixPreposition(preposition) + declension(scheme, count, "future");else + return prefixPreposition(preposition) + "pred " + suffixPreposition(preposition) + declension(scheme, count, "past"); +}; +//#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. M. 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" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/sk/_lib/formatRelative.js +var accusativeWeekdays = [ +"nedeľu", +"pondelok", +"utorok", +"stredu", +"štvrtok", +"piatok", +"sobotu"]; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'minulú " + weekday + " o' p"; + default:return "'minulý' eeee 'o' p"; + } +} +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + if (day === 4) return "'vo' eeee 'o' p";else + return "'v " + weekday + " o' p"; +} +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0: + case 4: + case 6:return "'budúcu " + weekday + " o' p"; + default:return "'budúci' eeee 'o' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'včera o' p", + today: "'dnes o' p", + tomorrow: "'zajtra o' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + 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/sk/_lib/localize.js +var eraValues = { + narrow: ["pred Kr.", "po Kr."], + abbreviated: ["pred Kr.", "po Kr."], + wide: ["pred Kristom", "po Kristovi"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. štvrťrok", + "2. štvrťrok", + "3. štvrťrok", + "4. štvrťrok"] + +}; +var monthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "január", + "február", + "marec", + "apríl", + "máj", + "jún", + "júl", + "august", + "september", + "október", + "november", + "december"] + +}; +var formattingMonthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januára", + "februára", + "marca", + "apríla", + "mája", + "júna", + "júla", + "augusta", + "septembra", + "októbra", + "novembra", + "decembra"] + +}; +var dayValues = { + narrow: [ + "n", + "p", + "u", + "s", + "š", + "p", + "s"], + + short: [ + "ne", + "po", + "ut", + "st", + "št", + "pi", + "so"], + + abbreviated: [ + "ne", + "po", + "ut", + "st", + "št", + "pi", + "so"], + + wide: [ + "nedeľa", + "pondelok", + "utorok", + "streda", + "štvrtok", + "piatok", + "sobota"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "noc" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "noc" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "polnoc", + noon: "poludnie", + morning: "ráno", + afternoon: "popoludnie", + evening: "večer", + night: "noc" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "nap.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "v n." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "napol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "v noci" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o polnoci", + noon: "napoludnie", + morning: "ráno", + afternoon: "popoludní", + evening: "večer", + night: "v noci" + } +}; +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/sk.js +/** +* @category Locales +* @summary Slovak locale. +* @language Slovak +* @iso-639-2 slk +* @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) +*/ +var sk = { + code: "sk", + 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: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^pr/i, /^(po|n)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\. [šs]tvr[ťt]rok/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|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, + wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/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, + /^m[áa]j/i, + /^j[úu]n/i, + /^j[úu]l/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npusšp]/i, + short: /^(ne|po|ut|st|št|pi|so)/i, + abbreviated: /^(ne|po|ut|st|št|pi|so)/i, + wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^n/i, + /^p/i, + /^u/i, + /^s/i, + /^š/i, + /^p/i, + /^s/i], + + any: [ + /^n/i, + /^po/i, + /^u/i, + /^st/i, + /^(št|stv)/i, + /^pi/i, + /^so/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, + abbreviated: /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, + any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /poln/i, + noon: /^(nap|(na)?pol(\.|u))/i, + morning: /^r[áa]no/i, + afternoon: /^pop/i, + evening: /^ve[čc]/i, + night: /^(noc|v n\.)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sk/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), {}, { + sk: sk }) }); + + +//#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/sk/cdn.min.js b/node_modules/date-fns/locale/sk/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..e41244c00745702456f34a96508bd11a64ccd309 --- /dev/null +++ b/node_modules/date-fns/locale/sk/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(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 t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=2&&t<=4&&e.twoFour?e.twoFour:e.other}function p(e,t,n){return f(e,t)[n].replace(`{{count}}`,String(t))}function m(e){return[`lessThan`,`about`,`over`,`almost`].filter(function(t){return!!e.match(RegExp(`^`+t))})[0]}function h(e){var t=``;return e===`almost`&&(t=`takmer`),e===`about`&&(t=`približne`),t.length>0?t+` `:``}function g(e){var t=``;return e===`lessThan`&&(t=`menej než`),e===`over`&&(t=`viac než`),t.length>0?t+` `:``}function _(e){return e.charAt(0).toLowerCase()+e.slice(1)}var v={xSeconds:{one:{present:`sekunda`,past:`sekundou`,future:`sekundu`},twoFour:{present:`{{count}} sekundy`,past:`{{count}} sekundami`,future:`{{count}} sekundy`},other:{present:`{{count}} sekúnd`,past:`{{count}} sekundami`,future:`{{count}} sekúnd`}},halfAMinute:{other:{present:`pol minúty`,past:`pol minútou`,future:`pol minúty`}},xMinutes:{one:{present:`minúta`,past:`minútou`,future:`minútu`},twoFour:{present:`{{count}} minúty`,past:`{{count}} minútami`,future:`{{count}} minúty`},other:{present:`{{count}} minút`,past:`{{count}} minútami`,future:`{{count}} minút`}},xHours:{one:{present:`hodina`,past:`hodinou`,future:`hodinu`},twoFour:{present:`{{count}} hodiny`,past:`{{count}} hodinami`,future:`{{count}} hodiny`},other:{present:`{{count}} hodín`,past:`{{count}} hodinami`,future:`{{count}} hodín`}},xDays:{one:{present:`deň`,past:`dňom`,future:`deň`},twoFour:{present:`{{count}} dni`,past:`{{count}} dňami`,future:`{{count}} dni`},other:{present:`{{count}} dní`,past:`{{count}} dňami`,future:`{{count}} dní`}},xWeeks:{one:{present:`týždeň`,past:`týždňom`,future:`týždeň`},twoFour:{present:`{{count}} týždne`,past:`{{count}} týždňami`,future:`{{count}} týždne`},other:{present:`{{count}} týždňov`,past:`{{count}} týždňami`,future:`{{count}} týždňov`}},xMonths:{one:{present:`mesiac`,past:`mesiacom`,future:`mesiac`},twoFour:{present:`{{count}} mesiace`,past:`{{count}} mesiacmi`,future:`{{count}} mesiace`},other:{present:`{{count}} mesiacov`,past:`{{count}} mesiacmi`,future:`{{count}} mesiacov`}},xYears:{one:{present:`rok`,past:`rokom`,future:`rok`},twoFour:{present:`{{count}} roky`,past:`{{count}} rokmi`,future:`{{count}} roky`},other:{present:`{{count}} rokov`,past:`{{count}} rokmi`,future:`{{count}} rokov`}}},y=function(e,t,n){var r=m(e)||``,i=v[_(e.substring(r.length))];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?h(r)+`o `+g(r)+p(i,t,`future`):h(r)+`pred `+g(r)+p(i,t,`past`):h(r)+g(r)+p(i,t,`present`)};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 d. MMMM y`,long:`d. MMMM y`,medium:`d. M. y`,short:`d. M. y`},defaultWidth:`full`}),time:b({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:b({formats:{full:`{{date}}, {{time}}`,long:`{{date}}, {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},S=Symbol.for(`constructDateFrom`);function C(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&S in e?e[S](t):e instanceof Date?new e.constructor(t):new Date(t)}function w(e){var t=[...arguments].slice(1),n=C.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var T={};function E(){return T}function D(e,t){return C(t||e,e)}function O(e,t){var n,r,i=E(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=D(e,t?.in),s=o.getDay(),c=(s1&&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)}):z(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 z(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 H={code:`sk`,formatDistance:y,formatLong:x,formatRelative:F,localize:L,match:{ordinalNumber:V({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:R({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:`any`}),quarter:R({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:R({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/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,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:R({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:R({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{sk:H})}),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/sl.cjs b/node_modules/date-fns/locale/sl.cjs new file mode 100644 index 0000000000000000000000000000000000000000..64e07765347c5663e460d2ccb770b3032ea72f26 --- /dev/null +++ b/node_modules/date-fns/locale/sl.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.sl = void 0; +var _index = require("./sl/_lib/formatDistance.cjs"); +var _index2 = require("./sl/_lib/formatLong.cjs"); +var _index3 = require("./sl/_lib/formatRelative.cjs"); +var _index4 = require("./sl/_lib/localize.cjs"); +var _index5 = require("./sl/_lib/match.cjs"); + +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +const sl = (exports.sl = { + code: "sl", + 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/sl.d.cts b/node_modules/date-fns/locale/sl.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..3f0adecad7abc904a1edbf3680ae649ce74a511f --- /dev/null +++ b/node_modules/date-fns/locale/sl.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +export declare const sl: Locale; diff --git a/node_modules/date-fns/locale/sl.d.ts b/node_modules/date-fns/locale/sl.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..3f0adecad7abc904a1edbf3680ae649ce74a511f --- /dev/null +++ b/node_modules/date-fns/locale/sl.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +export declare const sl: Locale; diff --git a/node_modules/date-fns/locale/sl.js b/node_modules/date-fns/locale/sl.js new file mode 100644 index 0000000000000000000000000000000000000000..a35cf04e4332db84e112c628d9b746ce0f1f0bae --- /dev/null +++ b/node_modules/date-fns/locale/sl.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./sl/_lib/formatDistance.js"; +import { formatLong } from "./sl/_lib/formatLong.js"; +import { formatRelative } from "./sl/_lib/formatRelative.js"; +import { localize } from "./sl/_lib/localize.js"; +import { match } from "./sl/_lib/match.js"; + +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +export const sl = { + code: "sl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default sl; diff --git a/node_modules/date-fns/locale/sl/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sl/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..a365d0747e08531b06a8dc213a21de9a9ceea9d9 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance.cjs @@ -0,0 +1,344 @@ +"use strict"; +exports.formatDistance = void 0; + +function isPluralType(val) { + return val.one !== undefined; +} + +const formatDistanceLocale = { + lessThanXSeconds: { + present: { + one: "manj kot {{count}} sekunda", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund", + }, + past: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundama", + few: "manj kot {{count}} sekundami", + other: "manj kot {{count}} sekundami", + }, + future: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund", + }, + }, + + xSeconds: { + present: { + one: "{{count}} sekunda", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund", + }, + past: { + one: "{{count}} sekundo", + two: "{{count}} sekundama", + few: "{{count}} sekundami", + other: "{{count}} sekundami", + }, + future: { + one: "{{count}} sekundo", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund", + }, + }, + + halfAMinute: "pol minute", + + lessThanXMinutes: { + present: { + one: "manj kot {{count}} minuta", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut", + }, + past: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minutama", + few: "manj kot {{count}} minutami", + other: "manj kot {{count}} minutami", + }, + future: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut", + }, + }, + + xMinutes: { + present: { + one: "{{count}} minuta", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut", + }, + past: { + one: "{{count}} minuto", + two: "{{count}} minutama", + few: "{{count}} minutami", + other: "{{count}} minutami", + }, + future: { + one: "{{count}} minuto", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut", + }, + }, + + aboutXHours: { + present: { + one: "približno {{count}} ura", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur", + }, + past: { + one: "približno {{count}} uro", + two: "približno {{count}} urama", + few: "približno {{count}} urami", + other: "približno {{count}} urami", + }, + future: { + one: "približno {{count}} uro", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur", + }, + }, + + xHours: { + present: { + one: "{{count}} ura", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur", + }, + past: { + one: "{{count}} uro", + two: "{{count}} urama", + few: "{{count}} urami", + other: "{{count}} urami", + }, + future: { + one: "{{count}} uro", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur", + }, + }, + + xDays: { + present: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni", + }, + past: { + one: "{{count}} dnem", + two: "{{count}} dnevoma", + few: "{{count}} dnevi", + other: "{{count}} dnevi", + }, + future: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni", + }, + }, + + // no tenses for weeks? + aboutXWeeks: { + one: "približno {{count}} teden", + two: "približno {{count}} tedna", + few: "približno {{count}} tedne", + other: "približno {{count}} tednov", + }, + + // no tenses for weeks? + xWeeks: { + one: "{{count}} teden", + two: "{{count}} tedna", + few: "{{count}} tedne", + other: "{{count}} tednov", + }, + + aboutXMonths: { + present: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev", + }, + past: { + one: "približno {{count}} mesecem", + two: "približno {{count}} mesecema", + few: "približno {{count}} meseci", + other: "približno {{count}} meseci", + }, + future: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev", + }, + }, + + xMonths: { + present: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} meseci", + other: "{{count}} mesecev", + }, + past: { + one: "{{count}} mesecem", + two: "{{count}} mesecema", + few: "{{count}} meseci", + other: "{{count}} meseci", + }, + future: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} mesece", + other: "{{count}} mesecev", + }, + }, + + aboutXYears: { + present: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let", + }, + past: { + one: "približno {{count}} letom", + two: "približno {{count}} letoma", + few: "približno {{count}} leti", + other: "približno {{count}} leti", + }, + future: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let", + }, + }, + + xYears: { + present: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let", + }, + past: { + one: "{{count}} letom", + two: "{{count}} letoma", + few: "{{count}} leti", + other: "{{count}} leti", + }, + future: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let", + }, + }, + + overXYears: { + present: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let", + }, + past: { + one: "več kot {{count}} letom", + two: "več kot {{count}} letoma", + few: "več kot {{count}} leti", + other: "več kot {{count}} leti", + }, + future: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let", + }, + }, + + almostXYears: { + present: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let", + }, + past: { + one: "skoraj {{count}} letom", + two: "skoraj {{count}} letoma", + few: "skoraj {{count}} leti", + other: "skoraj {{count}} leti", + }, + future: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let", + }, + }, +}; + +function getFormFromCount(count) { + switch (count % 100) { + case 1: + return "one"; + case 2: + return "two"; + case 3: + case 4: + return "few"; + default: + return "other"; + } +} + +const formatDistance = (token, count, options) => { + let result = ""; + let tense = "present"; + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + tense = "future"; + result = "čez "; + } else { + tense = "past"; + result = "pred "; + } + } + + const tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === "string") { + result += tokenValue; + } else { + const form = getFormFromCount(count); + if (isPluralType(tokenValue)) { + result += tokenValue[form].replace("{{count}}", String(count)); + } else { + result += tokenValue[tense][form].replace("{{count}}", String(count)); + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sl/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sl/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sl/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/formatDistance.js b/node_modules/date-fns/locale/sl/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..86783bafc2fcc7b0e8769c328da5d79d036cc5b3 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance.js @@ -0,0 +1,340 @@ +function isPluralType(val) { + return val.one !== undefined; +} + +const formatDistanceLocale = { + lessThanXSeconds: { + present: { + one: "manj kot {{count}} sekunda", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund", + }, + past: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundama", + few: "manj kot {{count}} sekundami", + other: "manj kot {{count}} sekundami", + }, + future: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund", + }, + }, + + xSeconds: { + present: { + one: "{{count}} sekunda", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund", + }, + past: { + one: "{{count}} sekundo", + two: "{{count}} sekundama", + few: "{{count}} sekundami", + other: "{{count}} sekundami", + }, + future: { + one: "{{count}} sekundo", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund", + }, + }, + + halfAMinute: "pol minute", + + lessThanXMinutes: { + present: { + one: "manj kot {{count}} minuta", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut", + }, + past: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minutama", + few: "manj kot {{count}} minutami", + other: "manj kot {{count}} minutami", + }, + future: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut", + }, + }, + + xMinutes: { + present: { + one: "{{count}} minuta", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut", + }, + past: { + one: "{{count}} minuto", + two: "{{count}} minutama", + few: "{{count}} minutami", + other: "{{count}} minutami", + }, + future: { + one: "{{count}} minuto", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut", + }, + }, + + aboutXHours: { + present: { + one: "približno {{count}} ura", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur", + }, + past: { + one: "približno {{count}} uro", + two: "približno {{count}} urama", + few: "približno {{count}} urami", + other: "približno {{count}} urami", + }, + future: { + one: "približno {{count}} uro", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur", + }, + }, + + xHours: { + present: { + one: "{{count}} ura", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur", + }, + past: { + one: "{{count}} uro", + two: "{{count}} urama", + few: "{{count}} urami", + other: "{{count}} urami", + }, + future: { + one: "{{count}} uro", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur", + }, + }, + + xDays: { + present: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni", + }, + past: { + one: "{{count}} dnem", + two: "{{count}} dnevoma", + few: "{{count}} dnevi", + other: "{{count}} dnevi", + }, + future: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni", + }, + }, + + // no tenses for weeks? + aboutXWeeks: { + one: "približno {{count}} teden", + two: "približno {{count}} tedna", + few: "približno {{count}} tedne", + other: "približno {{count}} tednov", + }, + + // no tenses for weeks? + xWeeks: { + one: "{{count}} teden", + two: "{{count}} tedna", + few: "{{count}} tedne", + other: "{{count}} tednov", + }, + + aboutXMonths: { + present: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev", + }, + past: { + one: "približno {{count}} mesecem", + two: "približno {{count}} mesecema", + few: "približno {{count}} meseci", + other: "približno {{count}} meseci", + }, + future: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev", + }, + }, + + xMonths: { + present: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} meseci", + other: "{{count}} mesecev", + }, + past: { + one: "{{count}} mesecem", + two: "{{count}} mesecema", + few: "{{count}} meseci", + other: "{{count}} meseci", + }, + future: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} mesece", + other: "{{count}} mesecev", + }, + }, + + aboutXYears: { + present: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let", + }, + past: { + one: "približno {{count}} letom", + two: "približno {{count}} letoma", + few: "približno {{count}} leti", + other: "približno {{count}} leti", + }, + future: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let", + }, + }, + + xYears: { + present: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let", + }, + past: { + one: "{{count}} letom", + two: "{{count}} letoma", + few: "{{count}} leti", + other: "{{count}} leti", + }, + future: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let", + }, + }, + + overXYears: { + present: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let", + }, + past: { + one: "več kot {{count}} letom", + two: "več kot {{count}} letoma", + few: "več kot {{count}} leti", + other: "več kot {{count}} leti", + }, + future: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let", + }, + }, + + almostXYears: { + present: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let", + }, + past: { + one: "skoraj {{count}} letom", + two: "skoraj {{count}} letoma", + few: "skoraj {{count}} leti", + other: "skoraj {{count}} leti", + }, + future: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let", + }, + }, +}; + +function getFormFromCount(count) { + switch (count % 100) { + case 1: + return "one"; + case 2: + return "two"; + case 3: + case 4: + return "few"; + default: + return "other"; + } +} + +export const formatDistance = (token, count, options) => { + let result = ""; + let tense = "present"; + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + tense = "future"; + result = "čez "; + } else { + tense = "past"; + result = "pred "; + } + } + + const tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === "string") { + result += tokenValue; + } else { + const form = getFormFromCount(count); + if (isPluralType(tokenValue)) { + result += tokenValue[form].replace("{{count}}", String(count)); + } else { + result += tokenValue[tense][form].replace("{{count}}", String(count)); + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sl/_lib/formatLong.cjs b/node_modules/date-fns/locale/sl/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..13a095ea85b65c8235ab648023fb52e443d735f7 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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 y", + long: "dd. MMMM y", + medium: "d. MMM y", + short: "d. MM. yy", +}; + +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/sl/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sl/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sl/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/formatLong.js b/node_modules/date-fns/locale/sl/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..69c8139210562f4482a38bbf4d6396ccbf6028ab --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, dd. MMMM y", + long: "dd. MMMM y", + medium: "d. MMM y", + short: "d. MM. yy", +}; + +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/sl/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sl/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..01d4c7b734f69c22f8d5f9b8bcc15a669ba99750 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative.cjs @@ -0,0 +1,48 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'prejšnjo nedeljo ob' p"; + case 3: + return "'prejšnjo sredo ob' p"; + case 6: + return "'prejšnjo soboto ob' p"; + default: + return "'prejšnji' EEEE 'ob' p"; + } + }, + yesterday: "'včeraj ob' p", + today: "'danes ob' p", + tomorrow: "'jutri ob' p", + nextWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'naslednjo nedeljo ob' p"; + case 3: + return "'naslednjo sredo ob' p"; + case 6: + return "'naslednjo soboto ob' p"; + default: + return "'naslednji' EEEE 'ob' 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/sl/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sl/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sl/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/formatRelative.js b/node_modules/date-fns/locale/sl/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..fde7a6cf9ff2e1f0e4a911f567cb7d4da5d738ea --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative.js @@ -0,0 +1,44 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'prejšnjo nedeljo ob' p"; + case 3: + return "'prejšnjo sredo ob' p"; + case 6: + return "'prejšnjo soboto ob' p"; + default: + return "'prejšnji' EEEE 'ob' p"; + } + }, + yesterday: "'včeraj ob' p", + today: "'danes ob' p", + tomorrow: "'jutri ob' p", + nextWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'naslednjo nedeljo ob' p"; + case 3: + return "'naslednjo sredo ob' p"; + case 6: + return "'naslednjo soboto ob' p"; + default: + return "'naslednji' EEEE 'ob' 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/sl/_lib/localize.cjs b/node_modules/date-fns/locale/sl/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..c8fd86d9dcdbe53bae4871a406d2e92d79fb0ad1 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/localize.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["pr. n. št.", "po n. št."], + abbreviated: ["pr. n. št.", "po n. št."], + wide: ["pred našim štetjem", "po našem štetju"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."], + wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "avg.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januar", + "februar", + "marec", + "april", + "maj", + "junij", + "julij", + "avgust", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["n", "p", "t", "s", "č", "p", "s"], + short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."], + abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."], + + wide: [ + "nedelja", + "ponedeljek", + "torek", + "sreda", + "četrtek", + "petek", + "sobota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "j", + afternoon: "p", + evening: "v", + night: "n", + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "poln.", + noon: "pold.", + morning: "jut.", + afternoon: "pop.", + evening: "več.", + night: "noč", + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "polnoč", + noon: "poldne", + morning: "jutro", + afternoon: "popoldne", + evening: "večer", + night: "noč", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "zj", + afternoon: "p", + evening: "zv", + night: "po", + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "opoln.", + noon: "opold.", + morning: "zjut.", + afternoon: "pop.", + evening: "zveč.", + night: "ponoči", + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "opolnoči", + noon: "opoldne", + morning: "zjutraj", + afternoon: "popoldan", + evening: "zvečer", + night: "ponoči", + }, +}; + +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/sl/_lib/localize.d.cts b/node_modules/date-fns/locale/sl/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/localize.d.ts b/node_modules/date-fns/locale/sl/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/localize.js b/node_modules/date-fns/locale/sl/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..2fdbf16620e8d2726ec9c5df3730aebd54807a0c --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/localize.js @@ -0,0 +1,165 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr. n. št.", "po n. št."], + abbreviated: ["pr. n. št.", "po n. št."], + wide: ["pred našim štetjem", "po našem štetju"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."], + wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "avg.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januar", + "februar", + "marec", + "april", + "maj", + "junij", + "julij", + "avgust", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["n", "p", "t", "s", "č", "p", "s"], + short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."], + abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."], + + wide: [ + "nedelja", + "ponedeljek", + "torek", + "sreda", + "četrtek", + "petek", + "sobota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "j", + afternoon: "p", + evening: "v", + night: "n", + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "poln.", + noon: "pold.", + morning: "jut.", + afternoon: "pop.", + evening: "več.", + night: "noč", + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "polnoč", + noon: "poldne", + morning: "jutro", + afternoon: "popoldne", + evening: "večer", + night: "noč", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "zj", + afternoon: "p", + evening: "zv", + night: "po", + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "opoln.", + noon: "opold.", + morning: "zjut.", + afternoon: "pop.", + evening: "zveč.", + night: "ponoči", + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "opolnoči", + noon: "opoldne", + morning: "zjutraj", + afternoon: "popoldan", + evening: "zvečer", + night: "ponoči", + }, +}; + +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/sl/_lib/match.cjs b/node_modules/date-fns/locale/sl/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..362f5903534f33e9813448fc06c46f5125269e7a --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/match.cjs @@ -0,0 +1,160 @@ +"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 = { + abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i, + wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|na[sš]em)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?[čc]et\.?/i, + wide: /^[1234]\. [čc]etrtletje/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\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, + wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|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, + ], + + abbreviated: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + wide: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[nptsčc]/i, + short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, + any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^d/i, + pm: /^p/i, + midnight: /^24/i, + noon: /^12/i, + morning: /^(z?j)/i, + afternoon: /^p/i, + evening: /^(z?v)/i, + night: /^(n|po)/i, + }, + any: { + am: /^dop\./i, + pm: /^pop\./i, + midnight: /^o?poln/i, + noon: /^o?pold/i, + morning: /j/i, + afternoon: /^pop\./i, + evening: /^z?ve/i, + night: /(po)?no/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/sl/_lib/match.d.cts b/node_modules/date-fns/locale/sl/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/match.d.ts b/node_modules/date-fns/locale/sl/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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/sl/_lib/match.js b/node_modules/date-fns/locale/sl/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..b3d167affa970860beadb2d760b7fa82516f9621 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/match.js @@ -0,0 +1,157 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i, + wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|na[sš]em)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?[čc]et\.?/i, + wide: /^[1234]\. [čc]etrtletje/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\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, + wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|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, + ], + + abbreviated: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + wide: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[nptsčc]/i, + short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, + any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^d/i, + pm: /^p/i, + midnight: /^24/i, + noon: /^12/i, + morning: /^(z?j)/i, + afternoon: /^p/i, + evening: /^(z?v)/i, + night: /^(n|po)/i, + }, + any: { + am: /^dop\./i, + pm: /^pop\./i, + midnight: /^o?poln/i, + noon: /^o?pold/i, + morning: /j/i, + afternoon: /^pop\./i, + evening: /^z?ve/i, + night: /(po)?no/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/sl/cdn.js b/node_modules/date-fns/locale/sl/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..966fd808ecc6c0d982b1574d3c6ce55a7c09fecc --- /dev/null +++ b/node_modules/date-fns/locale/sl/cdn.js @@ -0,0 +1,850 @@ +(() => { +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/sl/_lib/formatDistance.js +function isPluralType(val) { + return val.one !== void 0; +} +var formatDistanceLocale = { + lessThanXSeconds: { + present: { + one: "manj kot {{count}} sekunda", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund" + }, + past: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundama", + few: "manj kot {{count}} sekundami", + other: "manj kot {{count}} sekundami" + }, + future: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund" + } + }, + xSeconds: { + present: { + one: "{{count}} sekunda", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund" + }, + past: { + one: "{{count}} sekundo", + two: "{{count}} sekundama", + few: "{{count}} sekundami", + other: "{{count}} sekundami" + }, + future: { + one: "{{count}} sekundo", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund" + } + }, + halfAMinute: "pol minute", + lessThanXMinutes: { + present: { + one: "manj kot {{count}} minuta", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut" + }, + past: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minutama", + few: "manj kot {{count}} minutami", + other: "manj kot {{count}} minutami" + }, + future: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut" + } + }, + xMinutes: { + present: { + one: "{{count}} minuta", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut" + }, + past: { + one: "{{count}} minuto", + two: "{{count}} minutama", + few: "{{count}} minutami", + other: "{{count}} minutami" + }, + future: { + one: "{{count}} minuto", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut" + } + }, + aboutXHours: { + present: { + one: "približno {{count}} ura", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur" + }, + past: { + one: "približno {{count}} uro", + two: "približno {{count}} urama", + few: "približno {{count}} urami", + other: "približno {{count}} urami" + }, + future: { + one: "približno {{count}} uro", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur" + } + }, + xHours: { + present: { + one: "{{count}} ura", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur" + }, + past: { + one: "{{count}} uro", + two: "{{count}} urama", + few: "{{count}} urami", + other: "{{count}} urami" + }, + future: { + one: "{{count}} uro", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur" + } + }, + xDays: { + present: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni" + }, + past: { + one: "{{count}} dnem", + two: "{{count}} dnevoma", + few: "{{count}} dnevi", + other: "{{count}} dnevi" + }, + future: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni" + } + }, + aboutXWeeks: { + one: "približno {{count}} teden", + two: "približno {{count}} tedna", + few: "približno {{count}} tedne", + other: "približno {{count}} tednov" + }, + xWeeks: { + one: "{{count}} teden", + two: "{{count}} tedna", + few: "{{count}} tedne", + other: "{{count}} tednov" + }, + aboutXMonths: { + present: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev" + }, + past: { + one: "približno {{count}} mesecem", + two: "približno {{count}} mesecema", + few: "približno {{count}} meseci", + other: "približno {{count}} meseci" + }, + future: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev" + } + }, + xMonths: { + present: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} meseci", + other: "{{count}} mesecev" + }, + past: { + one: "{{count}} mesecem", + two: "{{count}} mesecema", + few: "{{count}} meseci", + other: "{{count}} meseci" + }, + future: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} mesece", + other: "{{count}} mesecev" + } + }, + aboutXYears: { + present: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let" + }, + past: { + one: "približno {{count}} letom", + two: "približno {{count}} letoma", + few: "približno {{count}} leti", + other: "približno {{count}} leti" + }, + future: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let" + } + }, + xYears: { + present: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let" + }, + past: { + one: "{{count}} letom", + two: "{{count}} letoma", + few: "{{count}} leti", + other: "{{count}} leti" + }, + future: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let" + } + }, + overXYears: { + present: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let" + }, + past: { + one: "več kot {{count}} letom", + two: "več kot {{count}} letoma", + few: "več kot {{count}} leti", + other: "več kot {{count}} leti" + }, + future: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let" + } + }, + almostXYears: { + present: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let" + }, + past: { + one: "skoraj {{count}} letom", + two: "skoraj {{count}} letoma", + few: "skoraj {{count}} leti", + other: "skoraj {{count}} leti" + }, + future: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let" + } + } +}; +function getFormFromCount(count) { + switch (count % 100) { + case 1:return "one"; + case 2:return "two"; + case 3: + case 4:return "few"; + default:return "other"; + } +} +var formatDistance = function formatDistance(token, count, options) { + var result = ""; + var tense = "present"; + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) { + tense = "future"; + result = "čez "; + } else { + tense = "past"; + result = "pred "; + } + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result += tokenValue;else + { + var form = getFormFromCount(count); + if (isPluralType(tokenValue)) result += tokenValue[form].replace("{{count}}", String(count));else + result += tokenValue[tense][form].replace("{{count}}", String(count)); + } + 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, dd. MMMM y", + long: "dd. MMMM y", + medium: "d. MMM y", + short: "d. MM. yy" + }, + 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/sl/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'prejšnjo nedeljo ob' p"; + case 3:return "'prejšnjo sredo ob' p"; + case 6:return "'prejšnjo soboto ob' p"; + default:return "'prejšnji' EEEE 'ob' p"; + } + }, + yesterday: "'včeraj ob' p", + today: "'danes ob' p", + tomorrow: "'jutri ob' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'naslednjo nedeljo ob' p"; + case 3:return "'naslednjo sredo ob' p"; + case 6:return "'naslednjo soboto ob' p"; + default:return "'naslednji' EEEE 'ob' 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/sl/_lib/localize.js +var eraValues = { + narrow: ["pr. n. št.", "po n. št."], + abbreviated: ["pr. n. št.", "po n. št."], + wide: ["pred našim štetjem", "po našem štetju"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1. čet.", + "2. čet.", + "3. čet.", + "4. čet."], + + wide: [ + "1. četrtletje", + "2. četrtletje", + "3. četrtletje", + "4. četrtletje"] + +}; +var monthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "avg.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januar", + "februar", + "marec", + "april", + "maj", + "junij", + "julij", + "avgust", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "n", + "p", + "t", + "s", + "č", + "p", + "s"], + + short: [ + "ned.", + "pon.", + "tor.", + "sre.", + "čet.", + "pet.", + "sob."], + + abbreviated: [ + "ned.", + "pon.", + "tor.", + "sre.", + "čet.", + "pet.", + "sob."], + + wide: [ + "nedelja", + "ponedeljek", + "torek", + "sreda", + "četrtek", + "petek", + "sobota"] + +}; +var dayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "j", + afternoon: "p", + evening: "v", + night: "n" + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "poln.", + noon: "pold.", + morning: "jut.", + afternoon: "pop.", + evening: "več.", + night: "noč" + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "polnoč", + noon: "poldne", + morning: "jutro", + afternoon: "popoldne", + evening: "večer", + night: "noč" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "zj", + afternoon: "p", + evening: "zv", + night: "po" + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "opoln.", + noon: "opold.", + morning: "zjut.", + afternoon: "pop.", + evening: "zveč.", + night: "ponoči" + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "opolnoči", + noon: "opoldne", + morning: "zjutraj", + afternoon: "popoldan", + evening: "zvečer", + night: "ponoči" + } +}; +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/sl.js +/** +* @category Locales +* @summary Slovenian locale. +* @language Slovenian +* @iso-639-2 slv +* @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) +* @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) +*/ +var sl = { + code: "sl", + 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: { + abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i, + wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^pr/i, /^(po|na[sš]em)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?[čc]et\.?/i, + wide: /^[1234]\. [čc]etrtletje/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\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, + wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|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], + + abbreviated: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + wide: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "wide" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[nptsčc]/i, + short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^n/i, + /^p/i, + /^t/i, + /^s/i, + /^[cč]/i, + /^p/i, + /^s/i], + + any: [ + /^n/i, + /^po/i, + /^t/i, + /^sr/i, + /^[cč]/i, + /^pe/i, + /^so/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, + any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i + }, + defaultMatchWidth: "any", + parsePatterns: { + narrow: { + am: /^d/i, + pm: /^p/i, + midnight: /^24/i, + noon: /^12/i, + morning: /^(z?j)/i, + afternoon: /^p/i, + evening: /^(z?v)/i, + night: /^(n|po)/i + }, + any: { + am: /^dop\./i, + pm: /^pop\./i, + midnight: /^o?poln/i, + noon: /^o?pold/i, + morning: /j/i, + afternoon: /^pop\./i, + evening: /^z?ve/i, + night: /(po)?no/i + } + }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sl/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), {}, { + sl: sl }) }); + + +//#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/sl/cdn.min.js b/node_modules/date-fns/locale/sl/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..989d88450b7fe206aaeb51cedb5a2de6d0d04d5e --- /dev/null +++ b/node_modules/date-fns/locale/sl/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=`future`,r=`čez `):(i=`past`,r=`pred `));var a=s[e];if(typeof a==`string`)r+=a;else{var l=c(t);o(a)?r+=a[l].replace(`{{count}}`,String(t)):r+=a[i][l].replace(`{{count}}`,String(t))}return r};function u(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 d={date:u({formats:{full:`EEEE, dd. MMMM y`,long:`dd. MMMM y`,medium:`d. MMM y`,short:`d. MM. yy`},defaultWidth:`full`}),time:u({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:u({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},f={lastWeek:function(e){switch(e.getDay()){case 0:return`'prejšnjo nedeljo ob' p`;case 3:return`'prejšnjo sredo ob' p`;case 6:return`'prejšnjo soboto ob' p`;default:return`'prejšnji' EEEE 'ob' p`}},yesterday:`'včeraj ob' p`,today:`'danes ob' p`,tomorrow:`'jutri ob' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'naslednjo nedeljo ob' p`;case 3:return`'naslednjo sredo ob' p`;case 6:return`'naslednjo soboto ob' p`;default:return`'naslednji' EEEE 'ob' p`}},other:`P`},p=function(e,t,n,r){var i=f[e];return typeof i==`function`?i(t):i};function m(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 h={ordinalNumber:function(e,t){return Number(e)+`.`},era:m({values:{narrow:[`pr. n. št.`,`po n. št.`],abbreviated:[`pr. n. št.`,`po n. št.`],wide:[`pred našim štetjem`,`po našem štetju`]},defaultWidth:`wide`}),quarter:m({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. čet.`,`2. čet.`,`3. čet.`,`4. čet.`],wide:[`1. četrtletje`,`2. četrtletje`,`3. četrtletje`,`4. četrtletje`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:m({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan.`,`feb.`,`mar.`,`apr.`,`maj`,`jun.`,`jul.`,`avg.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januar`,`februar`,`marec`,`april`,`maj`,`junij`,`julij`,`avgust`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:m({values:{narrow:[`n`,`p`,`t`,`s`,`č`,`p`,`s`],short:[`ned.`,`pon.`,`tor.`,`sre.`,`čet.`,`pet.`,`sob.`],abbreviated:[`ned.`,`pon.`,`tor.`,`sre.`,`čet.`,`pet.`,`sob.`],wide:[`nedelja`,`ponedeljek`,`torek`,`sreda`,`četrtek`,`petek`,`sobota`]},defaultWidth:`wide`}),dayPeriod:m({values:{narrow:{am:`d`,pm:`p`,midnight:`24.00`,noon:`12.00`,morning:`j`,afternoon:`p`,evening:`v`,night:`n`},abbreviated:{am:`dop.`,pm:`pop.`,midnight:`poln.`,noon:`pold.`,morning:`jut.`,afternoon:`pop.`,evening:`več.`,night:`noč`},wide:{am:`dop.`,pm:`pop.`,midnight:`polnoč`,noon:`poldne`,morning:`jutro`,afternoon:`popoldne`,evening:`večer`,night:`noč`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`d`,pm:`p`,midnight:`24.00`,noon:`12.00`,morning:`zj`,afternoon:`p`,evening:`zv`,night:`po`},abbreviated:{am:`dop.`,pm:`pop.`,midnight:`opoln.`,noon:`opold.`,morning:`zjut.`,afternoon:`pop.`,evening:`zveč.`,night:`ponoči`},wide:{am:`dop.`,pm:`pop.`,midnight:`opolnoči`,noon:`opoldne`,morning:`zjutraj`,afternoon:`popoldan`,evening:`zvečer`,night:`ponoči`}},defaultFormattingWidth:`wide`})};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;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 b={code:`sl`,formatDistance:l,formatLong:d,formatRelative:p,localize:h,match:{ordinalNumber:y({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:g({matchPatterns:{abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|na[sš]em)/i]},defaultParseWidth:`any`}),quarter:g({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:g({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|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],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`wide`}),day:g({matchPatterns:{narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:g({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{sl:b})}),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/sq.cjs b/node_modules/date-fns/locale/sq.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f8c87e80f052e3a4e67443fa9994a4659a5ff914 --- /dev/null +++ b/node_modules/date-fns/locale/sq.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.sq = void 0; +var _index = require("./sq/_lib/formatDistance.cjs"); +var _index2 = require("./sq/_lib/formatLong.cjs"); +var _index3 = require("./sq/_lib/formatRelative.cjs"); +var _index4 = require("./sq/_lib/localize.cjs"); +var _index5 = require("./sq/_lib/match.cjs"); + +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +const sq = (exports.sq = { + code: "sq", + 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/sq.d.cts b/node_modules/date-fns/locale/sq.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..ddf981c271c940ed981b26a006de2b4d9fba2d4a --- /dev/null +++ b/node_modules/date-fns/locale/sq.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +export declare const sq: Locale; diff --git a/node_modules/date-fns/locale/sq.d.ts b/node_modules/date-fns/locale/sq.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ddf981c271c940ed981b26a006de2b4d9fba2d4a --- /dev/null +++ b/node_modules/date-fns/locale/sq.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +export declare const sq: Locale; diff --git a/node_modules/date-fns/locale/sq.js b/node_modules/date-fns/locale/sq.js new file mode 100644 index 0000000000000000000000000000000000000000..ad6fc0fc8513f1a665249195722162d6fd5d4bbf --- /dev/null +++ b/node_modules/date-fns/locale/sq.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./sq/_lib/formatDistance.js"; +import { formatLong } from "./sq/_lib/formatLong.js"; +import { formatRelative } from "./sq/_lib/formatRelative.js"; +import { localize } from "./sq/_lib/localize.js"; +import { match } from "./sq/_lib/match.js"; + +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +export const sq = { + code: "sq", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default sq; diff --git a/node_modules/date-fns/locale/sq/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sq/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4b659ce5ecb392affe2063c8714879ec7c499a3f --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "më pak se një sekondë", + other: "më pak se {{count}} sekonda", + }, + + xSeconds: { + one: "1 sekondë", + other: "{{count}} sekonda", + }, + + halfAMinute: "gjysëm minuti", + + lessThanXMinutes: { + one: "më pak se një minute", + other: "më pak se {{count}} minuta", + }, + + xMinutes: { + one: "1 minutë", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: "rreth 1 orë", + other: "rreth {{count}} orë", + }, + + xHours: { + one: "1 orë", + other: "{{count}} orë", + }, + + xDays: { + one: "1 ditë", + other: "{{count}} ditë", + }, + + aboutXWeeks: { + one: "rreth 1 javë", + other: "rreth {{count}} javë", + }, + + xWeeks: { + one: "1 javë", + other: "{{count}} javë", + }, + + aboutXMonths: { + one: "rreth 1 muaj", + other: "rreth {{count}} muaj", + }, + + xMonths: { + one: "1 muaj", + other: "{{count}} muaj", + }, + + aboutXYears: { + one: "rreth 1 vit", + other: "rreth {{count}} vite", + }, + + xYears: { + one: "1 vit", + other: "{{count}} vite", + }, + + overXYears: { + one: "mbi 1 vit", + other: "mbi {{count}} vite", + }, + + almostXYears: { + one: "pothuajse 1 vit", + other: "pothuajse {{count}} vite", + }, +}; + +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 "në " + result; + } else { + return result + " më parë"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sq/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sq/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sq/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/formatDistance.js b/node_modules/date-fns/locale/sq/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..190c7dffb67529630443a2b1ba6b71f23abd77fb --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "më pak se një sekondë", + other: "më pak se {{count}} sekonda", + }, + + xSeconds: { + one: "1 sekondë", + other: "{{count}} sekonda", + }, + + halfAMinute: "gjysëm minuti", + + lessThanXMinutes: { + one: "më pak se një minute", + other: "më pak se {{count}} minuta", + }, + + xMinutes: { + one: "1 minutë", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: "rreth 1 orë", + other: "rreth {{count}} orë", + }, + + xHours: { + one: "1 orë", + other: "{{count}} orë", + }, + + xDays: { + one: "1 ditë", + other: "{{count}} ditë", + }, + + aboutXWeeks: { + one: "rreth 1 javë", + other: "rreth {{count}} javë", + }, + + xWeeks: { + one: "1 javë", + other: "{{count}} javë", + }, + + aboutXMonths: { + one: "rreth 1 muaj", + other: "rreth {{count}} muaj", + }, + + xMonths: { + one: "1 muaj", + other: "{{count}} muaj", + }, + + aboutXYears: { + one: "rreth 1 vit", + other: "rreth {{count}} vite", + }, + + xYears: { + one: "1 vit", + other: "{{count}} vite", + }, + + overXYears: { + one: "mbi 1 vit", + other: "mbi {{count}} vite", + }, + + almostXYears: { + one: "pothuajse 1 vit", + other: "pothuajse {{count}} vite", + }, +}; + +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 "në " + result; + } else { + return result + " më parë"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sq/_lib/formatLong.cjs b/node_modules/date-fns/locale/sq/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3cdd0131aa368092d4f06b27913f776fe9d80f5d --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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}} 'në' {{time}}", + long: "{{date}} 'në' {{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/sq/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sq/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sq/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/formatLong.js b/node_modules/date-fns/locale/sq/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..9e914553a0ae95257255b343dad7e97b26c7e6c7 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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}} 'në' {{time}}", + long: "{{date}} 'në' {{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/sq/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sq/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..91ae1618b83ac611c8305bfc244400545bd3c263 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'të' eeee 'e shkuar në' p", + yesterday: "'dje në' p", + today: "'sot në' p", + tomorrow: "'nesër në' 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/sq/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sq/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sq/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/formatRelative.js b/node_modules/date-fns/locale/sq/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..7d6a7483e8860512ec352784305f33e076dc5119 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'të' eeee 'e shkuar në' p", + yesterday: "'dje në' p", + today: "'sot në' p", + tomorrow: "'nesër në' p", + nextWeek: "eeee 'at' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/sq/_lib/localize.cjs b/node_modules/date-fns/locale/sq/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e667e20348b796240b57f772f757d1c52c0bde20 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/localize.cjs @@ -0,0 +1,168 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["P", "M"], + abbreviated: ["PK", "MK"], + wide: ["Para Krishtit", "Mbas Krishtit"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["4-mujori I", "4-mujori II", "4-mujori III", "4-mujori IV"], +}; + +// 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", "S", "M", "P", "M", "Q", "K", "G", "S", "T", "N", "D"], + abbreviated: [ + "Jan", + "Shk", + "Mar", + "Pri", + "Maj", + "Qer", + "Kor", + "Gus", + "Sht", + "Tet", + "Nën", + "Dhj", + ], + + wide: [ + "Janar", + "Shkurt", + "Mars", + "Prill", + "Maj", + "Qershor", + "Korrik", + "Gusht", + "Shtator", + "Tetor", + "Nëntor", + "Dhjetor", + ], +}; + +const dayValues = { + narrow: ["D", "H", "M", "M", "E", "P", "S"], + short: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"], + abbreviated: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Sht"], + wide: ["Dielë", "Hënë", "Martë", "Mërkurë", "Enjte", "Premte", "Shtunë"], +}; + +const dayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "mëngjes", + afternoon: "dite", + evening: "mbrëmje", + night: "natë", + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë", + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + if (options?.unit === "hour") return String(number); + + if (number === 1) return number + "-rë"; + if (number === 4) return number + "t"; + + return number + "-të"; +}; + +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/sq/_lib/localize.d.cts b/node_modules/date-fns/locale/sq/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/localize.d.ts b/node_modules/date-fns/locale/sq/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/localize.js b/node_modules/date-fns/locale/sq/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..7b2325933a33762c42f01d275c4f80636bb23df3 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/localize.js @@ -0,0 +1,166 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["P", "M"], + abbreviated: ["PK", "MK"], + wide: ["Para Krishtit", "Mbas Krishtit"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["4-mujori I", "4-mujori II", "4-mujori III", "4-mujori IV"], +}; + +// 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", "S", "M", "P", "M", "Q", "K", "G", "S", "T", "N", "D"], + abbreviated: [ + "Jan", + "Shk", + "Mar", + "Pri", + "Maj", + "Qer", + "Kor", + "Gus", + "Sht", + "Tet", + "Nën", + "Dhj", + ], + + wide: [ + "Janar", + "Shkurt", + "Mars", + "Prill", + "Maj", + "Qershor", + "Korrik", + "Gusht", + "Shtator", + "Tetor", + "Nëntor", + "Dhjetor", + ], +}; + +const dayValues = { + narrow: ["D", "H", "M", "M", "E", "P", "S"], + short: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"], + abbreviated: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Sht"], + wide: ["Dielë", "Hënë", "Martë", "Mërkurë", "Enjte", "Premte", "Shtunë"], +}; + +const dayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "mëngjes", + afternoon: "dite", + evening: "mbrëmje", + night: "natë", + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë", + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + if (options?.unit === "hour") return String(number); + + if (number === 1) return number + "-rë"; + if (number === 4) return number + "t"; + + return number + "-të"; +}; + +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/sq/_lib/match.cjs b/node_modules/date-fns/locale/sq/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..8e3d1ff0c9e05c6412e994b8427fd00dc342b4b6 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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+)(-rë|-të|t|)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p|m)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(para krishtit|mbas krishtit)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(p|m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]-mujori (i{1,3}|iv)/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jsmpqkftnd]/i, + abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, + wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^s/i, + /^m/i, + /^p/i, + /^m/i, + /^q/i, + /^k/i, + /^g/i, + /^s/i, + /^t/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^shk/i, + /^mar/i, + /^pri/i, + /^maj/i, + /^qer/i, + /^kor/i, + /^gu/i, + /^sht/i, + /^tet/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dhmeps]/i, + short: /^(di|hë|ma|më|en|pr|sh)/i, + abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i, + wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^h/i, /^m/i, /^m/i, /^e/i, /^p/i, /^s/i], + any: [/^d/i, /^h/i, /^ma/i, /^më/i, /^e/i, /^p/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, + any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^p/i, + pm: /^m/i, + midnight: /^me/i, + noon: /^dr/i, + morning: /mëngjes/i, + afternoon: /mbasdite/i, + evening: /mbrëmje/i, + night: /natë/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/sq/_lib/match.d.cts b/node_modules/date-fns/locale/sq/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/match.d.ts b/node_modules/date-fns/locale/sq/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_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/sq/_lib/match.js b/node_modules/date-fns/locale/sq/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..f545eca0c2bb7ea8548fc0e67d033c71c4ba0a3b --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-rë|-të|t|)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p|m)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(para krishtit|mbas krishtit)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(p|m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]-mujori (i{1,3}|iv)/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jsmpqkftnd]/i, + abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, + wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^s/i, + /^m/i, + /^p/i, + /^m/i, + /^q/i, + /^k/i, + /^g/i, + /^s/i, + /^t/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^shk/i, + /^mar/i, + /^pri/i, + /^maj/i, + /^qer/i, + /^kor/i, + /^gu/i, + /^sht/i, + /^tet/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dhmeps]/i, + short: /^(di|hë|ma|më|en|pr|sh)/i, + abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i, + wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^h/i, /^m/i, /^m/i, /^e/i, /^p/i, /^s/i], + any: [/^d/i, /^h/i, /^ma/i, /^më/i, /^e/i, /^p/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, + any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^p/i, + pm: /^m/i, + midnight: /^me/i, + noon: /^dr/i, + morning: /mëngjes/i, + afternoon: /mbasdite/i, + evening: /mbrëmje/i, + night: /natë/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/sq/cdn.js b/node_modules/date-fns/locale/sq/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..1848df7e00f7ca33c31252c5c694239dced7a935 --- /dev/null +++ b/node_modules/date-fns/locale/sq/cdn.js @@ -0,0 +1,577 @@ +(() => { +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/sq/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "më pak se një sekondë", + other: "më pak se {{count}} sekonda" + }, + xSeconds: { + one: "1 sekondë", + other: "{{count}} sekonda" + }, + halfAMinute: "gjysëm minuti", + lessThanXMinutes: { + one: "më pak se një minute", + other: "më pak se {{count}} minuta" + }, + xMinutes: { + one: "1 minutë", + other: "{{count}} minuta" + }, + aboutXHours: { + one: "rreth 1 orë", + other: "rreth {{count}} orë" + }, + xHours: { + one: "1 orë", + other: "{{count}} orë" + }, + xDays: { + one: "1 ditë", + other: "{{count}} ditë" + }, + aboutXWeeks: { + one: "rreth 1 javë", + other: "rreth {{count}} javë" + }, + xWeeks: { + one: "1 javë", + other: "{{count}} javë" + }, + aboutXMonths: { + one: "rreth 1 muaj", + other: "rreth {{count}} muaj" + }, + xMonths: { + one: "1 muaj", + other: "{{count}} muaj" + }, + aboutXYears: { + one: "rreth 1 vit", + other: "rreth {{count}} vite" + }, + xYears: { + one: "1 vit", + other: "{{count}} vite" + }, + overXYears: { + one: "mbi 1 vit", + other: "mbi {{count}} vite" + }, + almostXYears: { + one: "pothuajse 1 vit", + other: "pothuajse {{count}} vite" + } +}; +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 "në " + result;else + return result + " më parë"; + 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}} 'në' {{time}}", + long: "{{date}} 'në' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/sq/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'të' eeee 'e shkuar në' p", + yesterday: "'dje në' p", + today: "'sot në' p", + tomorrow: "'nesër në' 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/sq/_lib/localize.js +var eraValues = { + narrow: ["P", "M"], + abbreviated: ["PK", "MK"], + wide: ["Para Krishtit", "Mbas Krishtit"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "4-mujori I", + "4-mujori II", + "4-mujori III", + "4-mujori IV"] + +}; +var monthValues = { + narrow: [ + "J", + "S", + "M", + "P", + "M", + "Q", + "K", + "G", + "S", + "T", + "N", + "D"], + + abbreviated: [ + "Jan", + "Shk", + "Mar", + "Pri", + "Maj", + "Qer", + "Kor", + "Gus", + "Sht", + "Tet", + "Nën", + "Dhj"], + + wide: [ + "Janar", + "Shkurt", + "Mars", + "Prill", + "Maj", + "Qershor", + "Korrik", + "Gusht", + "Shtator", + "Tetor", + "Nëntor", + "Dhjetor"] + +}; +var dayValues = { + narrow: [ + "D", + "H", + "M", + "M", + "E", + "P", + "S"], + + short: [ + "Di", + "Hë", + "Ma", + "Më", + "En", + "Pr", + "Sh"], + + abbreviated: [ + "Die", + "Hën", + "Mar", + "Mër", + "Enj", + "Pre", + "Sht"], + + wide: [ + "Dielë", + "Hënë", + "Martë", + "Mërkurë", + "Enjte", + "Premte", + "Shtunë"] + +}; +var dayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "mëngjes", + afternoon: "dite", + evening: "mbrëmje", + night: "natë" + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë" + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë" + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë" + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + if ((options === null || options === void 0 ? void 0 : options.unit) === "hour") return String(number); + if (number === 1) return number + "-rë"; + if (number === 4) return number + "t"; + return number + "-të"; +}; +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/sq.js +/** +* @category Locales +* @summary Albanian locale. +* @language Shqip +* @iso-639-2 sqi +* @author Ardit Dine [@arditdine](https://github.com/arditdine) +*/ +var sq = { + code: "sq", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-rë|-të|t|)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(p|m)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(para krishtit|mbas krishtit)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(p|m)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]-mujori (i{1,3}|iv)/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: /^[jsmpqkftnd]/i, + abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, + wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^s/i, + /^m/i, + /^p/i, + /^m/i, + /^q/i, + /^k/i, + /^g/i, + /^s/i, + /^t/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^shk/i, + /^mar/i, + /^pri/i, + /^maj/i, + /^qer/i, + /^kor/i, + /^gu/i, + /^sht/i, + /^tet/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dhmeps]/i, + short: /^(di|hë|ma|më|en|pr|sh)/i, + abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i, + wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^h/i, + /^m/i, + /^m/i, + /^e/i, + /^p/i, + /^s/i], + + any: [ + /^d/i, + /^h/i, + /^ma/i, + /^më/i, + /^e/i, + /^p/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, + any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^p/i, + pm: /^m/i, + midnight: /^me/i, + noon: /^dr/i, + morning: /mëngjes/i, + afternoon: /mbasdite/i, + evening: /mbrëmje/i, + night: /natë/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sq/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), {}, { + sq: sq }) }); + + +//#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/sq/cdn.min.js b/node_modules/date-fns/locale/sq/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..5bc9ec7a73c222e9293d706767c90efbadf2d483 --- /dev/null +++ b/node_modules/date-fns/locale/sq/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?`në `+r:r+` më parë`: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}} 'në' {{time}}`,long:`{{date}} 'në' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'të' eeee 'e shkuar në' p`,yesterday:`'dje në' p`,today:`'sot në' p`,tomorrow:`'nesër në' 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);return t?.unit===`hour`?String(n):n===1?n+`-rë`:n===4?n+`t`:n+`-të`},era:f({values:{narrow:[`P`,`M`],abbreviated:[`PK`,`MK`],wide:[`Para Krishtit`,`Mbas Krishtit`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`4-mujori I`,`4-mujori II`,`4-mujori III`,`4-mujori IV`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`S`,`M`,`P`,`M`,`Q`,`K`,`G`,`S`,`T`,`N`,`D`],abbreviated:[`Jan`,`Shk`,`Mar`,`Pri`,`Maj`,`Qer`,`Kor`,`Gus`,`Sht`,`Tet`,`Nën`,`Dhj`],wide:[`Janar`,`Shkurt`,`Mars`,`Prill`,`Maj`,`Qershor`,`Korrik`,`Gusht`,`Shtator`,`Tetor`,`Nëntor`,`Dhjetor`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`H`,`M`,`M`,`E`,`P`,`S`],short:[`Di`,`Hë`,`Ma`,`Më`,`En`,`Pr`,`Sh`],abbreviated:[`Die`,`Hën`,`Mar`,`Mër`,`Enj`,`Pre`,`Sht`],wide:[`Dielë`,`Hënë`,`Martë`,`Mërkurë`,`Enjte`,`Premte`,`Shtunë`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`p`,pm:`m`,midnight:`m`,noon:`d`,morning:`mëngjes`,afternoon:`dite`,evening:`mbrëmje`,night:`natë`},abbreviated:{am:`PD`,pm:`MD`,midnight:`mesnëtë`,noon:`drek`,morning:`mëngjes`,afternoon:`mbasdite`,evening:`mbrëmje`,night:`natë`},wide:{am:`p.d.`,pm:`m.d.`,midnight:`mesnëtë`,noon:`drek`,morning:`mëngjes`,afternoon:`mbasdite`,evening:`mbrëmje`,night:`natë`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`p`,pm:`m`,midnight:`m`,noon:`d`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`},abbreviated:{am:`PD`,pm:`MD`,midnight:`mesnatë`,noon:`drek`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`},wide:{am:`p.d.`,pm:`m.d.`,midnight:`mesnatë`,noon:`drek`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`}},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:`sq`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(-rë|-të|t|)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(p|m)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(para krishtit|mbas krishtit)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(p|m)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]-mujori (i{1,3}|iv)/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:/^[jsmpqkftnd]/i,abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i,wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^s/i,/^m/i,/^p/i,/^m/i,/^q/i,/^k/i,/^g/i,/^s/i,/^t/i,/^n/i,/^d/i],any:[/^ja/i,/^shk/i,/^mar/i,/^pri/i,/^maj/i,/^qer/i,/^kor/i,/^gu/i,/^sht/i,/^tet/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[dhmeps]/i,short:/^(di|hë|ma|më|en|pr|sh)/i,abbreviated:/^(die|hën|mar|mër|enj|pre|sht)/i,wide:/^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^h/i,/^m/i,/^m/i,/^e/i,/^p/i,/^s/i],any:[/^d/i,/^h/i,/^ma/i,/^më/i,/^e/i,/^p/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i,any:/^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^p/i,pm:/^m/i,midnight:/^me/i,noon:/^dr/i,morning:/mëngjes/i,afternoon:/mbasdite/i,evening:/mbrëmje/i,night:/natë/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{sq: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/sr-Latn.cjs b/node_modules/date-fns/locale/sr-Latn.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1cd554622ac1159abff14561cd9a67468d031e06 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.srLatn = void 0; +var _index = require("./sr-Latn/_lib/formatDistance.cjs"); +var _index2 = require("./sr-Latn/_lib/formatLong.cjs"); +var _index3 = require("./sr-Latn/_lib/formatRelative.cjs"); +var _index4 = require("./sr-Latn/_lib/localize.cjs"); +var _index5 = require("./sr-Latn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +const srLatn = (exports.srLatn = { + code: "sr-Latn", + 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/sr-Latn.d.cts b/node_modules/date-fns/locale/sr-Latn.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..f25c3519dd84c64a2e89361869123286674878b3 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const srLatn: Locale; diff --git a/node_modules/date-fns/locale/sr-Latn.d.ts b/node_modules/date-fns/locale/sr-Latn.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..f25c3519dd84c64a2e89361869123286674878b3 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const srLatn: Locale; diff --git a/node_modules/date-fns/locale/sr-Latn.js b/node_modules/date-fns/locale/sr-Latn.js new file mode 100644 index 0000000000000000000000000000000000000000..b745e5a28f6b7142c0f6c1f000ae0cf459dc82b0 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./sr-Latn/_lib/formatDistance.js"; +import { formatLong } from "./sr-Latn/_lib/formatLong.js"; +import { formatRelative } from "./sr-Latn/_lib/formatRelative.js"; +import { localize } from "./sr-Latn/_lib/localize.js"; +import { match } from "./sr-Latn/_lib/match.js"; + +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export const srLatn = { + code: "sr-Latn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default srLatn; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..01263d38541799a1858d6462313cc8bfb6865123 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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 nedelju", + withPrepositionAgo: "oko 1 nedelju", + withPrepositionIn: "oko 1 nedelju", + }, + dual: "oko {{count}} nedelje", + other: "oko {{count}} nedelje", + }, + + xWeeks: { + one: { + standalone: "1 nedelju", + withPrepositionAgo: "1 nedelju", + withPrepositionIn: "1 nedelju", + }, + dual: "{{count}} nedelje", + other: "{{count}} nedelje", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mesec", + withPrepositionAgo: "oko 1 mesec", + withPrepositionIn: "oko 1 mesec", + }, + dual: "oko {{count}} meseca", + other: "oko {{count}} meseci", + }, + + xMonths: { + one: { + standalone: "1 mesec", + withPrepositionAgo: "1 mesec", + withPrepositionIn: "1 mesec", + }, + dual: "{{count}} meseca", + other: "{{count}} meseci", + }, + + 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 "pre " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/formatDistance.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..63e3fd35f7b351215c72791028d68a8b4c244e38 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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 nedelju", + withPrepositionAgo: "oko 1 nedelju", + withPrepositionIn: "oko 1 nedelju", + }, + dual: "oko {{count}} nedelje", + other: "oko {{count}} nedelje", + }, + + xWeeks: { + one: { + standalone: "1 nedelju", + withPrepositionAgo: "1 nedelju", + withPrepositionIn: "1 nedelju", + }, + dual: "{{count}} nedelje", + other: "{{count}} nedelje", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mesec", + withPrepositionAgo: "oko 1 mesec", + withPrepositionIn: "oko 1 mesec", + }, + dual: "oko {{count}} meseca", + other: "oko {{count}} meseci", + }, + + xMonths: { + one: { + standalone: "1 mesec", + withPrepositionAgo: "1 mesec", + withPrepositionIn: "1 mesec", + }, + dual: "{{count}} meseca", + other: "{{count}} meseci", + }, + + 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 "pre " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2099da34008f38f561ac970dec346d53a4d87cd2 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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 yy.", + short: "dd. MM. yy.", +}; + +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/sr-Latn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/formatLong.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..3e29d658072687e8f02833a790280c922fa3ef80 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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 yy.", + short: "dd. MM. yy.", +}; + +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/sr-Latn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e0c0b3aecb245e11447b060eb33fb919d0055eb3 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošle nedelje u' p"; + case 3: + return "'prošle srede u' p"; + case 6: + return "'prošle subote u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'sledeće nedelje u' p"; + case 3: + return "'sledeću sredu u' p"; + case 6: + return "'sledeću subotu u' p"; + default: + return "'sledeći' 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/sr-Latn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/formatRelative.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..d5892e68931c57c5bb52f718b4605622936554ea --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.js @@ -0,0 +1,40 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošle nedelje u' p"; + case 3: + return "'prošle srede u' p"; + case 6: + return "'prošle subote u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'sledeće nedelje u' p"; + case 3: + return "'sledeću sredu u' p"; + case 6: + return "'sledeću subotu u' p"; + default: + return "'sledeći' 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/sr-Latn/_lib/localize.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..dd52066ef32751e4486ca0a0773c8d355d4b5eb3 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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. Hr.", "po. Hr."], + wide: ["Pre Hrista", "Posle Hrista"], +}; + +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: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + wide: [ + "nedelja", + "ponedeljak", + "utorak", + "sreda", + "četvrtak", + "petak", + "subota", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + 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/sr-Latn/_lib/localize.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/localize.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/localize.js b/node_modules/date-fns/locale/sr-Latn/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..ab222cee0b52c6ad1cb8e031059e55eb089af4ac --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/localize.js @@ -0,0 +1,227 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Hr.", "po. Hr."], + wide: ["Pre Hrista", "Posle Hrista"], +}; + +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: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + wide: [ + "nedelja", + "ponedeljak", + "utorak", + "sreda", + "četvrtak", + "petak", + "subota", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + 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/sr-Latn/_lib/match.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..aa9442d93f8c94f51abaea208eca6b07d23be63c --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/match.cjs @@ -0,0 +1,134 @@ +"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?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Pre Hrista|pre nove ere|Posle Hrista|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: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/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: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedelja|ponedeljak|utorak|sreda|(č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|uvece|uveče|noću|posle podne|ujutru)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(posle\s|po)+podne/i, + evening: /(uvece|uveč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: "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/sr-Latn/_lib/match.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/match.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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/sr-Latn/_lib/match.js b/node_modules/date-fns/locale/sr-Latn/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..3249e010b8514a22fcddc6f760ddada0f00ebec1 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/match.js @@ -0,0 +1,131 @@ +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?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Pre Hrista|pre nove ere|Posle Hrista|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: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/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: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedelja|ponedeljak|utorak|sreda|(č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|uvece|uveče|noću|posle podne|ujutru)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(posle\s|po)+podne/i, + evening: /(uvece|uveč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: "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/sr-Latn/cdn.js b/node_modules/date-fns/locale/sr-Latn/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..14d868bab9ea67f9ae24f23e5c20410b3b81adee --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/cdn.js @@ -0,0 +1,712 @@ +(() => { +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/sr-Latn/_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 nedelju", + withPrepositionAgo: "oko 1 nedelju", + withPrepositionIn: "oko 1 nedelju" + }, + dual: "oko {{count}} nedelje", + other: "oko {{count}} nedelje" + }, + xWeeks: { + one: { + standalone: "1 nedelju", + withPrepositionAgo: "1 nedelju", + withPrepositionIn: "1 nedelju" + }, + dual: "{{count}} nedelje", + other: "{{count}} nedelje" + }, + aboutXMonths: { + one: { + standalone: "oko 1 mesec", + withPrepositionAgo: "oko 1 mesec", + withPrepositionIn: "oko 1 mesec" + }, + dual: "oko {{count}} meseca", + other: "oko {{count}} meseci" + }, + xMonths: { + one: { + standalone: "1 mesec", + withPrepositionAgo: "1 mesec", + withPrepositionIn: "1 mesec" + }, + dual: "{{count}} meseca", + other: "{{count}} meseci" + }, + 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 "pre " + 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 yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy." + }, + 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/sr-Latn/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'prošle nedelje u' p"; + case 3:return "'prošle srede u' p"; + case 6:return "'prošle subote u' p"; + default:return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'sledeće nedelje u' p"; + case 3:return "'sledeću sredu u' p"; + case 6:return "'sledeću subotu u' p"; + default:return "'sledeći' 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/sr-Latn/_lib/localize.js +var eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Hr.", "po. Hr."], + wide: ["Pre Hrista", "Posle Hrista"] +}; +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: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar"] + +}; +var formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar"] + +}; +var dayValues = { + narrow: [ + "N", + "P", + "U", + "S", + "Č", + "P", + "S"], + + short: [ + "ned", + "pon", + "uto", + "sre", + "čet", + "pet", + "sub"], + + abbreviated: [ + "ned", + "pon", + "uto", + "sre", + "čet", + "pet", + "sub"], + + wide: [ + "nedelja", + "ponedeljak", + "utorak", + "sreda", + "četvrtak", + "petak", + "subota"] + +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću" + } +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + 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/sr-Latn.js +/** +* @category Locales +* @summary Serbian latin locale. +* @language Serbian +* @iso-639-2 srp +* @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) +*/ +var srLatn = { + code: "sr-Latn", + 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?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Pre Hrista|pre nove ere|Posle Hrista|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: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/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], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedelja|ponedeljak|utorak|sreda|(č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|uvece|uveče|noću|posle podne|ujutru)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(posle\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sr-Latn/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), {}, { + srLatn: srLatn }) }); + + +//#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/sr-Latn/cdn.min.js b/node_modules/date-fns/locale/sr-Latn/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..19c06593d3ef073be2613e4aa80a774c7b4b2c7c --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/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:`pre `+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 yyyy.`,long:`d. MMMM yyyy.`,medium:`d. MMM yy.`,short:`dd. MM. yy.`},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šle nedelje u' p`;case 3:return`'prošle srede u' p`;case 6:return`'prošle subote u' p`;default:return`'prošli' EEEE 'u' p`}},yesterday:`'juče u' p`,today:`'danas u' p`,tomorrow:`'sutra u' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'sledeće nedelje u' p`;case 3:return`'sledeću sredu u' p`;case 6:return`'sledeću subotu u' p`;default:return`'sledeći' 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. Hr.`,`po. Hr.`],wide:[`Pre Hrista`,`Posle Hrista`]},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:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`jun`,`jul`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`jun`,`jul`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`U`,`S`,`Č`,`P`,`S`],short:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],abbreviated:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],wide:[`nedelja`,`ponedeljak`,`utorak`,`sreda`,`četvrtak`,`petak`,`subota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`posle podne`,evening:`uveče`,night:`noću`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`posle podne`,evening:`uveče`,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:`sr-Latn`,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?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|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:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/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],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(č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|uvece|uveče|noću|posle podne|ujutru)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveč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),{},{srLatn: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/sr.cjs b/node_modules/date-fns/locale/sr.cjs new file mode 100644 index 0000000000000000000000000000000000000000..b5e105ed0809ea9c0c82f77037a02a1ae484c2e0 --- /dev/null +++ b/node_modules/date-fns/locale/sr.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.sr = void 0; +var _index = require("./sr/_lib/formatDistance.cjs"); +var _index2 = require("./sr/_lib/formatLong.cjs"); +var _index3 = require("./sr/_lib/formatRelative.cjs"); +var _index4 = require("./sr/_lib/localize.cjs"); +var _index5 = require("./sr/_lib/match.cjs"); + +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +const sr = (exports.sr = { + code: "sr", + 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/sr.d.cts b/node_modules/date-fns/locale/sr.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..a9c4d650f474e8fa2458480fb842414353f7a746 --- /dev/null +++ b/node_modules/date-fns/locale/sr.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const sr: Locale; diff --git a/node_modules/date-fns/locale/sr.d.ts b/node_modules/date-fns/locale/sr.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a9c4d650f474e8fa2458480fb842414353f7a746 --- /dev/null +++ b/node_modules/date-fns/locale/sr.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const sr: Locale; diff --git a/node_modules/date-fns/locale/sr.js b/node_modules/date-fns/locale/sr.js new file mode 100644 index 0000000000000000000000000000000000000000..672cdb85358ec285f05f12bd345ccd5f3df62326 --- /dev/null +++ b/node_modules/date-fns/locale/sr.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./sr/_lib/formatDistance.js"; +import { formatLong } from "./sr/_lib/formatLong.js"; +import { formatRelative } from "./sr/_lib/formatRelative.js"; +import { localize } from "./sr/_lib/localize.js"; +import { match } from "./sr/_lib/match.js"; + +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export const sr = { + code: "sr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default sr; diff --git a/node_modules/date-fns/locale/sr/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sr/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3ea5b01536eacfc6da370a00384e0d4db6aa5ce9 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance.cjs @@ -0,0 +1,194 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "мање од 1 секунде", + withPrepositionAgo: "мање од 1 секунде", + withPrepositionIn: "мање од 1 секунду", + }, + dual: "мање од {{count}} секунде", + other: "мање од {{count}} секунди", + }, + + xSeconds: { + one: { + standalone: "1 секунда", + withPrepositionAgo: "1 секунде", + withPrepositionIn: "1 секунду", + }, + dual: "{{count}} секунде", + other: "{{count}} секунди", + }, + + halfAMinute: "пола минуте", + + lessThanXMinutes: { + one: { + standalone: "мање од 1 минуте", + withPrepositionAgo: "мање од 1 минуте", + withPrepositionIn: "мање од 1 минуту", + }, + dual: "мање од {{count}} минуте", + other: "мање од {{count}} минута", + }, + + xMinutes: { + one: { + standalone: "1 минута", + withPrepositionAgo: "1 минуте", + withPrepositionIn: "1 минуту", + }, + dual: "{{count}} минуте", + other: "{{count}} минута", + }, + + aboutXHours: { + one: { + standalone: "око 1 сат", + withPrepositionAgo: "око 1 сат", + withPrepositionIn: "око 1 сат", + }, + dual: "око {{count}} сата", + other: "око {{count}} сати", + }, + + xHours: { + one: { + standalone: "1 сат", + withPrepositionAgo: "1 сат", + withPrepositionIn: "1 сат", + }, + dual: "{{count}} сата", + other: "{{count}} сати", + }, + + xDays: { + one: { + standalone: "1 дан", + withPrepositionAgo: "1 дан", + withPrepositionIn: "1 дан", + }, + dual: "{{count}} дана", + other: "{{count}} дана", + }, + + aboutXWeeks: { + one: { + standalone: "око 1 недељу", + withPrepositionAgo: "око 1 недељу", + withPrepositionIn: "око 1 недељу", + }, + dual: "око {{count}} недеље", + other: "око {{count}} недеље", + }, + + xWeeks: { + one: { + standalone: "1 недељу", + withPrepositionAgo: "1 недељу", + withPrepositionIn: "1 недељу", + }, + dual: "{{count}} недеље", + other: "{{count}} недеље", + }, + + aboutXMonths: { + one: { + standalone: "око 1 месец", + withPrepositionAgo: "око 1 месец", + withPrepositionIn: "око 1 месец", + }, + dual: "око {{count}} месеца", + other: "око {{count}} месеци", + }, + + xMonths: { + one: { + standalone: "1 месец", + withPrepositionAgo: "1 месец", + withPrepositionIn: "1 месец", + }, + dual: "{{count}} месеца", + other: "{{count}} месеци", + }, + + aboutXYears: { + one: { + standalone: "око 1 годину", + withPrepositionAgo: "око 1 годину", + withPrepositionIn: "око 1 годину", + }, + dual: "око {{count}} године", + other: "око {{count}} година", + }, + + xYears: { + one: { + standalone: "1 година", + withPrepositionAgo: "1 године", + withPrepositionIn: "1 годину", + }, + dual: "{{count}} године", + other: "{{count}} година", + }, + + overXYears: { + one: { + standalone: "преко 1 годину", + withPrepositionAgo: "преко 1 годину", + withPrepositionIn: "преко 1 годину", + }, + dual: "преко {{count}} године", + other: "преко {{count}} година", + }, + + almostXYears: { + one: { + standalone: "готово 1 годину", + withPrepositionAgo: "готово 1 годину", + withPrepositionIn: "готово 1 годину", + }, + dual: "готово {{count}} године", + other: "готово {{count}} година", + }, +}; + +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 "за " + result; + } else { + return "пре " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sr/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sr/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sr/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/formatDistance.js b/node_modules/date-fns/locale/sr/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..766eb08f3c2e619828645a58a38d00896ad6e025 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance.js @@ -0,0 +1,190 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "мање од 1 секунде", + withPrepositionAgo: "мање од 1 секунде", + withPrepositionIn: "мање од 1 секунду", + }, + dual: "мање од {{count}} секунде", + other: "мање од {{count}} секунди", + }, + + xSeconds: { + one: { + standalone: "1 секунда", + withPrepositionAgo: "1 секунде", + withPrepositionIn: "1 секунду", + }, + dual: "{{count}} секунде", + other: "{{count}} секунди", + }, + + halfAMinute: "пола минуте", + + lessThanXMinutes: { + one: { + standalone: "мање од 1 минуте", + withPrepositionAgo: "мање од 1 минуте", + withPrepositionIn: "мање од 1 минуту", + }, + dual: "мање од {{count}} минуте", + other: "мање од {{count}} минута", + }, + + xMinutes: { + one: { + standalone: "1 минута", + withPrepositionAgo: "1 минуте", + withPrepositionIn: "1 минуту", + }, + dual: "{{count}} минуте", + other: "{{count}} минута", + }, + + aboutXHours: { + one: { + standalone: "око 1 сат", + withPrepositionAgo: "око 1 сат", + withPrepositionIn: "око 1 сат", + }, + dual: "око {{count}} сата", + other: "око {{count}} сати", + }, + + xHours: { + one: { + standalone: "1 сат", + withPrepositionAgo: "1 сат", + withPrepositionIn: "1 сат", + }, + dual: "{{count}} сата", + other: "{{count}} сати", + }, + + xDays: { + one: { + standalone: "1 дан", + withPrepositionAgo: "1 дан", + withPrepositionIn: "1 дан", + }, + dual: "{{count}} дана", + other: "{{count}} дана", + }, + + aboutXWeeks: { + one: { + standalone: "око 1 недељу", + withPrepositionAgo: "око 1 недељу", + withPrepositionIn: "око 1 недељу", + }, + dual: "око {{count}} недеље", + other: "око {{count}} недеље", + }, + + xWeeks: { + one: { + standalone: "1 недељу", + withPrepositionAgo: "1 недељу", + withPrepositionIn: "1 недељу", + }, + dual: "{{count}} недеље", + other: "{{count}} недеље", + }, + + aboutXMonths: { + one: { + standalone: "око 1 месец", + withPrepositionAgo: "око 1 месец", + withPrepositionIn: "око 1 месец", + }, + dual: "око {{count}} месеца", + other: "око {{count}} месеци", + }, + + xMonths: { + one: { + standalone: "1 месец", + withPrepositionAgo: "1 месец", + withPrepositionIn: "1 месец", + }, + dual: "{{count}} месеца", + other: "{{count}} месеци", + }, + + aboutXYears: { + one: { + standalone: "око 1 годину", + withPrepositionAgo: "око 1 годину", + withPrepositionIn: "око 1 годину", + }, + dual: "око {{count}} године", + other: "око {{count}} година", + }, + + xYears: { + one: { + standalone: "1 година", + withPrepositionAgo: "1 године", + withPrepositionIn: "1 годину", + }, + dual: "{{count}} године", + other: "{{count}} година", + }, + + overXYears: { + one: { + standalone: "преко 1 годину", + withPrepositionAgo: "преко 1 годину", + withPrepositionIn: "преко 1 годину", + }, + dual: "преко {{count}} године", + other: "преко {{count}} година", + }, + + almostXYears: { + one: { + standalone: "готово 1 годину", + withPrepositionAgo: "готово 1 годину", + withPrepositionIn: "готово 1 годину", + }, + dual: "готово {{count}} године", + other: "готово {{count}} година", + }, +}; + +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 "за " + result; + } else { + return "пре " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sr/_lib/formatLong.cjs b/node_modules/date-fns/locale/sr/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..01082a75256b701662080805ba30ccf3bb22def4 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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 yy.", + short: "dd. MM. yy.", +}; + +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/sr/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sr/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sr/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/formatLong.js b/node_modules/date-fns/locale/sr/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..09d808d3a3b63b3ae9b8216d5334c21eeaac402f --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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 yy.", + short: "dd. MM. yy.", +}; + +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/sr/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sr/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7afc12cdbd674da1e4523a496993c9ac4655fc47 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative.cjs @@ -0,0 +1,48 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'прошле недеље у' p"; + case 3: + return "'прошле среде у' p"; + case 6: + return "'прошле суботе у' p"; + default: + return "'прошли' EEEE 'у' p"; + } + }, + yesterday: "'јуче у' p", + today: "'данас у' p", + tomorrow: "'сутра у' p", + nextWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'следеће недеље у' p"; + case 3: + return "'следећу среду у' p"; + case 6: + return "'следећу суботу у' p"; + default: + return "'следећи' EEEE 'у' 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/sr/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sr/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sr/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/formatRelative.js b/node_modules/date-fns/locale/sr/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..8c21ead6d90e42843e8050a43d3892fda941b506 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative.js @@ -0,0 +1,44 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'прошле недеље у' p"; + case 3: + return "'прошле среде у' p"; + case 6: + return "'прошле суботе у' p"; + default: + return "'прошли' EEEE 'у' p"; + } + }, + yesterday: "'јуче у' p", + today: "'данас у' p", + tomorrow: "'сутра у' p", + nextWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'следеће недеље у' p"; + case 3: + return "'следећу среду у' p"; + case 6: + return "'следећу суботу у' p"; + default: + return "'следећи' EEEE 'у' 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/sr/_lib/localize.cjs b/node_modules/date-fns/locale/sr/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..54de2fba9a942edcced65aba03c3b8de0da56ef8 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/localize.cjs @@ -0,0 +1,229 @@ +"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: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец", + ], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец", + ], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "У", "С", "Ч", "П", "С"], + short: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"], + abbreviated: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"], + wide: [ + "недеља", + "понедељак", + "уторак", + "среда", + "четвртак", + "петак", + "субота", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + abbreviated: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу", + }, +}; + +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 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/sr/_lib/localize.d.cts b/node_modules/date-fns/locale/sr/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/localize.d.ts b/node_modules/date-fns/locale/sr/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/localize.js b/node_modules/date-fns/locale/sr/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..559e0bb8fbc35a6f50d980ac1d0782140fa86c1c --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/localize.js @@ -0,0 +1,227 @@ +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: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец", + ], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец", + ], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "У", "С", "Ч", "П", "С"], + short: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"], + abbreviated: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"], + wide: [ + "недеља", + "понедељак", + "уторак", + "среда", + "четвртак", + "петак", + "субота", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + abbreviated: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу", + }, +}; + +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 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/sr/_lib/match.cjs b/node_modules/date-fns/locale/sr/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1ac12337b4cad0917908c331f824b516c6a91528 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/match.cjs @@ -0,0 +1,134 @@ +"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?Хр\.)/i, + wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i, +}; +const parseEraPatterns = { + any: [/^пр/i, /^(по|нова)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?кв\.?/i, + wide: /^[1234]\. квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./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 = { + narrow: [/^п/i, /^у/i, /^с/i, /^ч/i, /^п/i, /^с/i, /^н/i], + any: [/^нед/i, /^пон/i, /^уто/i, /^сре/i, /^чет/i, /^пет/i, /^суб/i], +}; + +const matchDayPeriodPatterns = { + any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^поно/i, + noon: /^под/i, + morning: /ујутру/i, + afternoon: /(после\s|по)+подне/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/sr/_lib/match.d.cts b/node_modules/date-fns/locale/sr/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/match.d.ts b/node_modules/date-fns/locale/sr/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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/sr/_lib/match.js b/node_modules/date-fns/locale/sr/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..74a19fc7a89ede490a7f25184ea6db002bff252c --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/match.js @@ -0,0 +1,131 @@ +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?Хр\.)/i, + wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i, +}; +const parseEraPatterns = { + any: [/^пр/i, /^(по|нова)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?кв\.?/i, + wide: /^[1234]\. квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./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 = { + narrow: [/^п/i, /^у/i, /^с/i, /^ч/i, /^п/i, /^с/i, /^н/i], + any: [/^нед/i, /^пон/i, /^уто/i, /^сре/i, /^чет/i, /^пет/i, /^суб/i], +}; + +const matchDayPeriodPatterns = { + any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^поно/i, + noon: /^под/i, + morning: /ујутру/i, + afternoon: /(после\s|по)+подне/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/sr/cdn.js b/node_modules/date-fns/locale/sr/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..f3595a2d1fc2a8e4910af400fbff649149e82ed0 --- /dev/null +++ b/node_modules/date-fns/locale/sr/cdn.js @@ -0,0 +1,712 @@ +(() => { +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/sr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "мање од 1 секунде", + withPrepositionAgo: "мање од 1 секунде", + withPrepositionIn: "мање од 1 секунду" + }, + dual: "мање од {{count}} секунде", + other: "мање од {{count}} секунди" + }, + xSeconds: { + one: { + standalone: "1 секунда", + withPrepositionAgo: "1 секунде", + withPrepositionIn: "1 секунду" + }, + dual: "{{count}} секунде", + other: "{{count}} секунди" + }, + halfAMinute: "пола минуте", + lessThanXMinutes: { + one: { + standalone: "мање од 1 минуте", + withPrepositionAgo: "мање од 1 минуте", + withPrepositionIn: "мање од 1 минуту" + }, + dual: "мање од {{count}} минуте", + other: "мање од {{count}} минута" + }, + xMinutes: { + one: { + standalone: "1 минута", + withPrepositionAgo: "1 минуте", + withPrepositionIn: "1 минуту" + }, + dual: "{{count}} минуте", + other: "{{count}} минута" + }, + aboutXHours: { + one: { + standalone: "око 1 сат", + withPrepositionAgo: "око 1 сат", + withPrepositionIn: "око 1 сат" + }, + dual: "око {{count}} сата", + other: "око {{count}} сати" + }, + xHours: { + one: { + standalone: "1 сат", + withPrepositionAgo: "1 сат", + withPrepositionIn: "1 сат" + }, + dual: "{{count}} сата", + other: "{{count}} сати" + }, + xDays: { + one: { + standalone: "1 дан", + withPrepositionAgo: "1 дан", + withPrepositionIn: "1 дан" + }, + dual: "{{count}} дана", + other: "{{count}} дана" + }, + aboutXWeeks: { + one: { + standalone: "око 1 недељу", + withPrepositionAgo: "око 1 недељу", + withPrepositionIn: "око 1 недељу" + }, + dual: "око {{count}} недеље", + other: "око {{count}} недеље" + }, + xWeeks: { + one: { + standalone: "1 недељу", + withPrepositionAgo: "1 недељу", + withPrepositionIn: "1 недељу" + }, + dual: "{{count}} недеље", + other: "{{count}} недеље" + }, + aboutXMonths: { + one: { + standalone: "око 1 месец", + withPrepositionAgo: "око 1 месец", + withPrepositionIn: "око 1 месец" + }, + dual: "око {{count}} месеца", + other: "око {{count}} месеци" + }, + xMonths: { + one: { + standalone: "1 месец", + withPrepositionAgo: "1 месец", + withPrepositionIn: "1 месец" + }, + dual: "{{count}} месеца", + other: "{{count}} месеци" + }, + aboutXYears: { + one: { + standalone: "око 1 годину", + withPrepositionAgo: "око 1 годину", + withPrepositionIn: "око 1 годину" + }, + dual: "око {{count}} године", + other: "око {{count}} година" + }, + xYears: { + one: { + standalone: "1 година", + withPrepositionAgo: "1 године", + withPrepositionIn: "1 годину" + }, + dual: "{{count}} године", + other: "{{count}} година" + }, + overXYears: { + one: { + standalone: "преко 1 годину", + withPrepositionAgo: "преко 1 годину", + withPrepositionIn: "преко 1 годину" + }, + dual: "преко {{count}} године", + other: "преко {{count}} година" + }, + almostXYears: { + one: { + standalone: "готово 1 годину", + withPrepositionAgo: "готово 1 годину", + withPrepositionIn: "готово 1 годину" + }, + dual: "готово {{count}} године", + 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) {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 "за " + 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 yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy." + }, + 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/sr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'прошле недеље у' p"; + case 3:return "'прошле среде у' p"; + case 6:return "'прошле суботе у' p"; + default:return "'прошли' EEEE 'у' p"; + } + }, + yesterday: "'јуче у' p", + today: "'данас у' p", + tomorrow: "'сутра у' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'следеће недеље у' p"; + case 3:return "'следећу среду у' p"; + case 6:return "'следећу суботу у' p"; + default:return "'следећи' EEEE 'у' 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/sr/_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: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец"], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар"] + +}; +var formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец"], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар"] + +}; +var dayValues = { + narrow: [ + "Н", + "П", + "У", + "С", + "Ч", + "П", + "С"], + + short: [ + "нед", + "пон", + "уто", + "сре", + "чет", + "пет", + "суб"], + + abbreviated: [ + "нед", + "пон", + "уто", + "сре", + "чет", + "пет", + "суб"], + + wide: [ + "недеља", + "понедељак", + "уторак", + "среда", + "четвртак", + "петак", + "субота"] + +}; +var formattingDayPeriodValues = { + narrow: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу" + }, + abbreviated: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу" + } +}; +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 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/sr.js +/** +* @category Locales +* @summary Serbian cyrillic locale. +* @language Serbian +* @iso-639-2 srp +* @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) +*/ +var sr = { + code: "sr", + 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?Хр\.)/i, + wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^пр/i, /^(по|нова)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?кв\.?/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: /^(10|11|12|[123456789])\./i, + abbreviated: /^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i, + wide: /^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/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], + + 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: { any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^поно/i, + noon: /^под/i, + morning: /ујутру/i, + afternoon: /(после\s|по)+подне/i, + evening: /(увече)/i, + night: /(ноћу)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sr/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), {}, { + sr: sr }) }); + + +//#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/sr/cdn.min.js b/node_modules/date-fns/locale/sr/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..046afcf0ae76ac2de83753f9cdfdcdadde04cf22 --- /dev/null +++ b/node_modules/date-fns/locale/sr/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?`за `+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 yyyy.`,long:`d. MMMM yyyy.`,medium:`d. MMM yy.`,short:`dd. MM. yy.`},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:function(e){switch(e.getDay()){case 0:return`'прошле недеље у' p`;case 3:return`'прошле среде у' p`;case 6:return`'прошле суботе у' p`;default:return`'прошли' EEEE 'у' p`}},yesterday:`'јуче у' p`,today:`'данас у' p`,tomorrow:`'сутра у' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'следеће недеље у' p`;case 3:return`'следећу среду у' p`;case 6:return`'следећу суботу у' p`;default:return`'следећи' EEEE 'у' 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:[`пр.н.е.`,`АД`],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:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`јан`,`феб`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`сеп`,`окт`,`нов`,`дец`],wide:[`јануар`,`фебруар`,`март`,`април`,`мај`,`јун`,`јул`,`август`,`септембар`,`октобар`,`новембар`,`децембар`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`јан`,`феб`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`сеп`,`окт`,`нов`,`дец`],wide:[`јануар`,`фебруар`,`март`,`април`,`мај`,`јун`,`јул`,`август`,`септембар`,`октобар`,`новембар`,`децембар`]},defaultFormattingWidth:`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:`АМ`,pm:`ПМ`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},abbreviated:{am:`АМ`,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:`sr`,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?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^пр/i,/^(по|нова)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/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:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/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],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:{any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{sr: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/sv.cjs b/node_modules/date-fns/locale/sv.cjs new file mode 100644 index 0000000000000000000000000000000000000000..da828fdd3f83c29e0dc81fdf51f91dbe590d4c1a --- /dev/null +++ b/node_modules/date-fns/locale/sv.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.sv = void 0; +var _index = require("./sv/_lib/formatDistance.cjs"); +var _index2 = require("./sv/_lib/formatLong.cjs"); +var _index3 = require("./sv/_lib/formatRelative.cjs"); +var _index4 = require("./sv/_lib/localize.cjs"); +var _index5 = require("./sv/_lib/match.cjs"); + +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +const sv = (exports.sv = { + code: "sv", + 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/sv.d.cts b/node_modules/date-fns/locale/sv.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..88697d46a2612acefdaa97324a433f8fb6f607c3 --- /dev/null +++ b/node_modules/date-fns/locale/sv.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +export declare const sv: Locale; diff --git a/node_modules/date-fns/locale/sv.d.ts b/node_modules/date-fns/locale/sv.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..88697d46a2612acefdaa97324a433f8fb6f607c3 --- /dev/null +++ b/node_modules/date-fns/locale/sv.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +export declare const sv: Locale; diff --git a/node_modules/date-fns/locale/sv.js b/node_modules/date-fns/locale/sv.js new file mode 100644 index 0000000000000000000000000000000000000000..fecd17ed7a6e24978a7cc96ef0a9c6f2881d5882 --- /dev/null +++ b/node_modules/date-fns/locale/sv.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./sv/_lib/formatDistance.js"; +import { formatLong } from "./sv/_lib/formatLong.js"; +import { formatRelative } from "./sv/_lib/formatRelative.js"; +import { localize } from "./sv/_lib/localize.js"; +import { match } from "./sv/_lib/match.js"; + +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +export const sv = { + code: "sv", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default sv; diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sv/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..8461711847a90270942d4159044d212fb44333e5 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.cjs @@ -0,0 +1,124 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre än en sekund", + other: "mindre än {{count}} sekunder", + }, + + xSeconds: { + one: "en sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "en halv minut", + + lessThanXMinutes: { + one: "mindre än en minut", + other: "mindre än {{count}} minuter", + }, + + xMinutes: { + one: "en minut", + other: "{{count}} minuter", + }, + + aboutXHours: { + one: "ungefär en timme", + other: "ungefär {{count}} timmar", + }, + + xHours: { + one: "en timme", + other: "{{count}} timmar", + }, + + xDays: { + one: "en dag", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "ungefär en vecka", + other: "ungefär {{count}} veckor", + }, + + xWeeks: { + one: "en vecka", + other: "{{count}} veckor", + }, + + aboutXMonths: { + one: "ungefär en månad", + other: "ungefär {{count}} månader", + }, + + xMonths: { + one: "en månad", + other: "{{count}} månader", + }, + + aboutXYears: { + one: "ungefär ett år", + other: "ungefär {{count}} år", + }, + + xYears: { + one: "ett år", + other: "{{count}} år", + }, + + overXYears: { + one: "över ett år", + other: "över {{count}} år", + }, + + almostXYears: { + one: "nästan ett år", + other: "nästan {{count}} år", + }, +}; + +const wordMapping = [ + "noll", + "en", + "två", + "tre", + "fyra", + "fem", + "sex", + "sju", + "åtta", + "nio", + "tio", + "elva", + "tolv", +]; + +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 < 13 ? wordMapping[count] : String(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " sedan"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sv/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sv/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/formatDistance.js b/node_modules/date-fns/locale/sv/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..0633dceae642559b6c6f8462fabbbac30682f03d --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.js @@ -0,0 +1,120 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre än en sekund", + other: "mindre än {{count}} sekunder", + }, + + xSeconds: { + one: "en sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "en halv minut", + + lessThanXMinutes: { + one: "mindre än en minut", + other: "mindre än {{count}} minuter", + }, + + xMinutes: { + one: "en minut", + other: "{{count}} minuter", + }, + + aboutXHours: { + one: "ungefär en timme", + other: "ungefär {{count}} timmar", + }, + + xHours: { + one: "en timme", + other: "{{count}} timmar", + }, + + xDays: { + one: "en dag", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "ungefär en vecka", + other: "ungefär {{count}} veckor", + }, + + xWeeks: { + one: "en vecka", + other: "{{count}} veckor", + }, + + aboutXMonths: { + one: "ungefär en månad", + other: "ungefär {{count}} månader", + }, + + xMonths: { + one: "en månad", + other: "{{count}} månader", + }, + + aboutXYears: { + one: "ungefär ett år", + other: "ungefär {{count}} år", + }, + + xYears: { + one: "ett år", + other: "{{count}} år", + }, + + overXYears: { + one: "över ett år", + other: "över {{count}} år", + }, + + almostXYears: { + one: "nästan ett år", + other: "nästan {{count}} år", + }, +}; + +const wordMapping = [ + "noll", + "en", + "två", + "tre", + "fyra", + "fem", + "sex", + "sju", + "åtta", + "nio", + "tio", + "elva", + "tolv", +]; + +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 < 13 ? wordMapping[count] : String(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " sedan"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sv/_lib/formatLong.cjs b/node_modules/date-fns/locale/sv/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..448858d335c1635424ab8bfd26dd2073ed65ac12 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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: "y-MM-dd", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{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/sv/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sv/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sv/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/formatLong.js b/node_modules/date-fns/locale/sv/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..710a66fadb7df5a6ca6a996b45fb43b18076db5a --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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: "y-MM-dd", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{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/sv/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sv/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..7013808e577b515e45f05a4040e70290c0e55e25 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'i' EEEE's kl.' p", + yesterday: "'igår kl.' p", + today: "'idag kl.' p", + tomorrow: "'imorgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/sv/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sv/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sv/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/formatRelative.js b/node_modules/date-fns/locale/sv/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..2a04693cad670e6feb122d9f75d74a471667512a --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'i' EEEE's kl.' p", + yesterday: "'igår kl.' p", + today: "'idag kl.' p", + tomorrow: "'imorgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/sv/_lib/localize.cjs b/node_modules/date-fns/locale/sv/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6ab0c4b72107801cab4fe5b5a83056c1b1f8aa3a --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/localize.cjs @@ -0,0 +1,168 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["före Kristus", "efter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1:a kvartalet", "2:a kvartalet", "3:e kvartalet", "4:e kvartalet"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "maj", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "mars", + "april", + "maj", + "juni", + "juli", + "augusti", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sö", "må", "ti", "on", "to", "fr", "lö"], + abbreviated: ["sön", "mån", "tis", "ons", "tors", "fre", "lör"], + wide: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sv.html#1888 +const dayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "morg.", + afternoon: "efterm.", + evening: "kväll", + night: "natt", + }, + abbreviated: { + am: "f.m.", + pm: "e.m.", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "efterm.", + evening: "kväll", + night: "natt", + }, + wide: { + am: "förmiddag", + pm: "eftermiddag", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "eftermiddag", + evening: "kväll", + night: "natt", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten", + }, + abbreviated: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten", + }, + wide: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på eftermiddagen", + evening: "på kvällen", + night: "på natten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + case 2: + return number + ":a"; + } + } + 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", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/sv/_lib/localize.d.cts b/node_modules/date-fns/locale/sv/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/localize.d.ts b/node_modules/date-fns/locale/sv/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/localize.js b/node_modules/date-fns/locale/sv/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..2755f356b3d7cf25900d9a683a0d972d2d8be8f9 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/localize.js @@ -0,0 +1,166 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["före Kristus", "efter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1:a kvartalet", "2:a kvartalet", "3:e kvartalet", "4:e kvartalet"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "maj", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "mars", + "april", + "maj", + "juni", + "juli", + "augusti", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sö", "må", "ti", "on", "to", "fr", "lö"], + abbreviated: ["sön", "mån", "tis", "ons", "tors", "fre", "lör"], + wide: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sv.html#1888 +const dayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "morg.", + afternoon: "efterm.", + evening: "kväll", + night: "natt", + }, + abbreviated: { + am: "f.m.", + pm: "e.m.", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "efterm.", + evening: "kväll", + night: "natt", + }, + wide: { + am: "förmiddag", + pm: "eftermiddag", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "eftermiddag", + evening: "kväll", + night: "natt", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten", + }, + abbreviated: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten", + }, + wide: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på eftermiddagen", + evening: "på kvällen", + night: "på natten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + case 2: + return number + ":a"; + } + } + 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", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/sv/_lib/match.cjs b/node_modules/date-fns/locale/sv/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..fb537b85a4f7de4e239dcff261d854cf7c293d0d --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^[ev]/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](:a|:e)? kvartalet/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, + wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|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, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sö|må|ti|on|to|fr|lö)/i, + abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i, + wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /eftermiddag/i, + evening: /kväll/i, + night: /natt/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/sv/_lib/match.d.cts b/node_modules/date-fns/locale/sv/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/match.d.ts b/node_modules/date-fns/locale/sv/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_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/sv/_lib/match.js b/node_modules/date-fns/locale/sv/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..a1d8a2f9adae8fb609437f28e207d6576def184d --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^[ev]/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](:a|:e)? kvartalet/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, + wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|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, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sö|må|ti|on|to|fr|lö)/i, + abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i, + wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /eftermiddag/i, + evening: /kväll/i, + night: /natt/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/sv/cdn.js b/node_modules/date-fns/locale/sv/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..96d31dfb0b099fa07626813db96d9dc5736ee031 --- /dev/null +++ b/node_modules/date-fns/locale/sv/cdn.js @@ -0,0 +1,582 @@ +(() => { +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/sv/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre än en sekund", + other: "mindre än {{count}} sekunder" + }, + xSeconds: { + one: "en sekund", + other: "{{count}} sekunder" + }, + halfAMinute: "en halv minut", + lessThanXMinutes: { + one: "mindre än en minut", + other: "mindre än {{count}} minuter" + }, + xMinutes: { + one: "en minut", + other: "{{count}} minuter" + }, + aboutXHours: { + one: "ungefär en timme", + other: "ungefär {{count}} timmar" + }, + xHours: { + one: "en timme", + other: "{{count}} timmar" + }, + xDays: { + one: "en dag", + other: "{{count}} dagar" + }, + aboutXWeeks: { + one: "ungefär en vecka", + other: "ungefär {{count}} veckor" + }, + xWeeks: { + one: "en vecka", + other: "{{count}} veckor" + }, + aboutXMonths: { + one: "ungefär en månad", + other: "ungefär {{count}} månader" + }, + xMonths: { + one: "en månad", + other: "{{count}} månader" + }, + aboutXYears: { + one: "ungefär ett år", + other: "ungefär {{count}} år" + }, + xYears: { + one: "ett år", + other: "{{count}} år" + }, + overXYears: { + one: "över ett år", + other: "över {{count}} år" + }, + almostXYears: { + one: "nästan ett år", + other: "nästan {{count}} år" + } +}; +var wordMapping = [ +"noll", +"en", +"två", +"tre", +"fyra", +"fem", +"sex", +"sju", +"åtta", +"nio", +"tio", +"elva", +"tolv"]; + +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 < 13 ? wordMapping[count] : String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "om " + result;else + return result + " sedan"; + 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: "y-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/sv/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'i' EEEE's kl.' p", + yesterday: "'igår kl.' p", + today: "'idag kl.' p", + tomorrow: "'imorgon kl.' p", + nextWeek: "EEEE 'kl.' 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/sv/_lib/localize.js +var eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["före Kristus", "efter Kristus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1:a kvartalet", + "2:a kvartalet", + "3:e kvartalet", + "4:e kvartalet"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "maj", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januari", + "februari", + "mars", + "april", + "maj", + "juni", + "juli", + "augusti", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "O", + "T", + "F", + "L"], + + short: [ + "sö", + "må", + "ti", + "on", + "to", + "fr", + "lö"], + + abbreviated: [ + "sön", + "mån", + "tis", + "ons", + "tors", + "fre", + "lör"], + + wide: [ + "söndag", + "måndag", + "tisdag", + "onsdag", + "torsdag", + "fredag", + "lördag"] + +}; +var dayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "morg.", + afternoon: "efterm.", + evening: "kväll", + night: "natt" + }, + abbreviated: { + am: "f.m.", + pm: "e.m.", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "efterm.", + evening: "kväll", + night: "natt" + }, + wide: { + am: "förmiddag", + pm: "eftermiddag", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "eftermiddag", + evening: "kväll", + night: "natt" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten" + }, + abbreviated: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten" + }, + wide: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på eftermiddagen", + evening: "på kvällen", + night: "på natten" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1: + case 2:return number + ":a"; + } + return number + ":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", + 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/sv.js +/** +* @category Locales +* @summary Swedish locale. +* @language Swedish +* @iso-639-2 swe +* @author Johannes Ulén [@ejulen](https://github.com/ejulen) +* @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) +* @author Henrik Andersson [@limelights](https://github.com/limelights) +*/ +var sv = { + code: "sv", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(:a|:e)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/i, /^[ev]/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](:a|:e)? kvartalet/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[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, + wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|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, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtofl]/i, + short: /^(sö|må|ti|on|to|fr|lö)/i, + abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i, + wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^s/i, + /^m/i, + /^ti/i, + /^o/i, + /^to/i, + /^f/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^f/i, + pm: /^e/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /eftermiddag/i, + evening: /kväll/i, + night: /natt/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sv/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), {}, { + sv: sv }) }); + + +//#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/sv/cdn.min.js b/node_modules/date-fns/locale/sv/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..af5729c3c885c19f97f46583da04d86989f9721c --- /dev/null +++ b/node_modules/date-fns/locale/sv/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?`om `+r:r+` sedan`:r};function l(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 u={date:l({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`y-MM-dd`},defaultWidth:`full`}),time:l({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:l({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},d={lastWeek:`'i' EEEE's kl.' p`,yesterday:`'igår kl.' p`,today:`'idag kl.' p`,tomorrow:`'imorgon kl.' p`,nextWeek:`EEEE 'kl.' p`,other:`P`},f=function(e,t,n,r){return 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){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 2:return n+`:a`}return n+`:e`},era:p({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`före Kristus`,`efter Kristus`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1:a kvartalet`,`2:a kvartalet`,`3:e kvartalet`,`4:e kvartalet`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apr.`,`maj`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`mars`,`april`,`maj`,`juni`,`juli`,`augusti`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:p({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`sö`,`må`,`ti`,`on`,`to`,`fr`,`lö`],abbreviated:[`sön`,`mån`,`tis`,`ons`,`tors`,`fre`,`lör`],wide:[`söndag`,`måndag`,`tisdag`,`onsdag`,`torsdag`,`fredag`,`lördag`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`morg.`,afternoon:`efterm.`,evening:`kväll`,night:`natt`},abbreviated:{am:`f.m.`,pm:`e.m.`,midnight:`midnatt`,noon:`middag`,morning:`morgon`,afternoon:`efterm.`,evening:`kväll`,night:`natt`},wide:{am:`förmiddag`,pm:`eftermiddag`,midnight:`midnatt`,noon:`middag`,morning:`morgon`,afternoon:`eftermiddag`,evening:`kväll`,night:`natt`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på efterm.`,evening:`på kvällen`,night:`på natten`},abbreviated:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på efterm.`,evening:`på kvällen`,night:`på natten`},wide:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morgonen`,afternoon:`på eftermiddagen`,evening:`på kvällen`,night:`på natten`}},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:`sv`,formatDistance:c,formatLong:u,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/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:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|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,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{sv: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/ta.cjs b/node_modules/date-fns/locale/ta.cjs new file mode 100644 index 0000000000000000000000000000000000000000..2abf6fee826a1a3e14749a0245048d7f591edf6b --- /dev/null +++ b/node_modules/date-fns/locale/ta.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.ta = void 0; +var _index = require("./ta/_lib/formatDistance.cjs"); +var _index2 = require("./ta/_lib/formatLong.cjs"); +var _index3 = require("./ta/_lib/formatRelative.cjs"); +var _index4 = require("./ta/_lib/localize.cjs"); +var _index5 = require("./ta/_lib/match.cjs"); + +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +const ta = (exports.ta = { + code: "ta", + 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/ta.d.cts b/node_modules/date-fns/locale/ta.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..3584c26c3126ce9a330d8299f5186c03c8d5aec0 --- /dev/null +++ b/node_modules/date-fns/locale/ta.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +export declare const ta: Locale; diff --git a/node_modules/date-fns/locale/ta.d.ts b/node_modules/date-fns/locale/ta.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..3584c26c3126ce9a330d8299f5186c03c8d5aec0 --- /dev/null +++ b/node_modules/date-fns/locale/ta.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +export declare const ta: Locale; diff --git a/node_modules/date-fns/locale/ta.js b/node_modules/date-fns/locale/ta.js new file mode 100644 index 0000000000000000000000000000000000000000..2f318478f929dcd8357c7e62ec05830cbb62837e --- /dev/null +++ b/node_modules/date-fns/locale/ta.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./ta/_lib/formatDistance.js"; +import { formatLong } from "./ta/_lib/formatLong.js"; +import { formatRelative } from "./ta/_lib/formatRelative.js"; +import { localize } from "./ta/_lib/localize.js"; +import { match } from "./ta/_lib/match.js"; + +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +export const ta = { + code: "ta", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default ta; diff --git a/node_modules/date-fns/locale/ta/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ta/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6679eb6d8893fc1c30622566e987b74552b61bb6 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance.cjs @@ -0,0 +1,228 @@ +"use strict"; +exports.formatDistance = void 0; + +function isPluralType(val) { + return val.one !== undefined; +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "ஒரு வினாடிக்கு குறைவாக", + in: "ஒரு வினாடிக்குள்", + ago: "ஒரு வினாடிக்கு முன்பு", + }, + other: { + default: "{{count}} வினாடிகளுக்கு குறைவாக", + in: "{{count}} வினாடிகளுக்குள்", + ago: "{{count}} வினாடிகளுக்கு முன்பு", + }, + }, + + xSeconds: { + one: { + default: "1 வினாடி", + in: "1 வினாடியில்", + ago: "1 வினாடி முன்பு", + }, + other: { + default: "{{count}} விநாடிகள்", + in: "{{count}} வினாடிகளில்", + ago: "{{count}} விநாடிகளுக்கு முன்பு", + }, + }, + + halfAMinute: { + default: "அரை நிமிடம்", + in: "அரை நிமிடத்தில்", + ago: "அரை நிமிடம் முன்பு", + }, + + lessThanXMinutes: { + one: { + default: "ஒரு நிமிடத்திற்கும் குறைவாக", + in: "ஒரு நிமிடத்திற்குள்", + ago: "ஒரு நிமிடத்திற்கு முன்பு", + }, + other: { + default: "{{count}} நிமிடங்களுக்கும் குறைவாக", + in: "{{count}} நிமிடங்களுக்குள்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு", + }, + }, + + xMinutes: { + one: { + default: "1 நிமிடம்", + in: "1 நிமிடத்தில்", + ago: "1 நிமிடம் முன்பு", + }, + other: { + default: "{{count}} நிமிடங்கள்", + in: "{{count}} நிமிடங்களில்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு", + }, + }, + + aboutXHours: { + one: { + default: "சுமார் 1 மணி நேரம்", + in: "சுமார் 1 மணி நேரத்தில்", + ago: "சுமார் 1 மணி நேரத்திற்கு முன்பு", + }, + other: { + default: "சுமார் {{count}} மணி நேரம்", + in: "சுமார் {{count}} மணி நேரத்திற்கு முன்பு", + ago: "சுமார் {{count}} மணி நேரத்தில்", + }, + }, + + xHours: { + one: { + default: "1 மணி நேரம்", + in: "1 மணி நேரத்தில்", + ago: "1 மணி நேரத்திற்கு முன்பு", + }, + other: { + default: "{{count}} மணி நேரம்", + in: "{{count}} மணி நேரத்தில்", + ago: "{{count}} மணி நேரத்திற்கு முன்பு", + }, + }, + + xDays: { + one: { + default: "1 நாள்", + in: "1 நாளில்", + ago: "1 நாள் முன்பு", + }, + other: { + default: "{{count}} நாட்கள்", + in: "{{count}} நாட்களில்", + ago: "{{count}} நாட்களுக்கு முன்பு", + }, + }, + + aboutXWeeks: { + one: { + default: "சுமார் 1 வாரம்", + in: "சுமார் 1 வாரத்தில்", + ago: "சுமார் 1 வாரம் முன்பு", + }, + other: { + default: "சுமார் {{count}} வாரங்கள்", + in: "சுமார் {{count}} வாரங்களில்", + ago: "சுமார் {{count}} வாரங்களுக்கு முன்பு", + }, + }, + + xWeeks: { + one: { + default: "1 வாரம்", + in: "1 வாரத்தில்", + ago: "1 வாரம் முன்பு", + }, + other: { + default: "{{count}} வாரங்கள்", + in: "{{count}} வாரங்களில்", + ago: "{{count}} வாரங்களுக்கு முன்பு", + }, + }, + + aboutXMonths: { + one: { + default: "சுமார் 1 மாதம்", + in: "சுமார் 1 மாதத்தில்", + ago: "சுமார் 1 மாதத்திற்கு முன்பு", + }, + other: { + default: "சுமார் {{count}} மாதங்கள்", + in: "சுமார் {{count}} மாதங்களில்", + ago: "சுமார் {{count}} மாதங்களுக்கு முன்பு", + }, + }, + + xMonths: { + one: { + default: "1 மாதம்", + in: "1 மாதத்தில்", + ago: "1 மாதம் முன்பு", + }, + other: { + default: "{{count}} மாதங்கள்", + in: "{{count}} மாதங்களில்", + ago: "{{count}} மாதங்களுக்கு முன்பு", + }, + }, + + aboutXYears: { + one: { + default: "சுமார் 1 வருடம்", + in: "சுமார் 1 ஆண்டில்", + ago: "சுமார் 1 வருடம் முன்பு", + }, + other: { + default: "சுமார் {{count}} ஆண்டுகள்", + in: "சுமார் {{count}} ஆண்டுகளில்", + ago: "சுமார் {{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + xYears: { + one: { + default: "1 வருடம்", + in: "1 ஆண்டில்", + ago: "1 வருடம் முன்பு", + }, + other: { + default: "{{count}} ஆண்டுகள்", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + overXYears: { + one: { + default: "1 வருடத்திற்கு மேல்", + in: "1 வருடத்திற்கும் மேலாக", + ago: "1 வருடம் முன்பு", + }, + other: { + default: "{{count}} ஆண்டுகளுக்கும் மேலாக", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + almostXYears: { + one: { + default: "கிட்டத்தட்ட 1 வருடம்", + in: "கிட்டத்தட்ட 1 ஆண்டில்", + ago: "கிட்டத்தட்ட 1 வருடம் முன்பு", + }, + other: { + default: "கிட்டத்தட்ட {{count}} ஆண்டுகள்", + in: "கிட்டத்தட்ட {{count}} ஆண்டுகளில்", + ago: "கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, +}; + +const formatDistance = (token, count, options) => { + const tense = options?.addSuffix + ? options.comparison && options.comparison > 0 + ? "in" + : "ago" + : "default"; + + const tokenValue = formatDistanceLocale[token]; + + if (!isPluralType(tokenValue)) return tokenValue[tense]; + + if (count === 1) { + return tokenValue.one[tense]; + } else { + return tokenValue.other[tense].replace("{{count}}", String(count)); + } +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ta/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ta/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ta/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/formatDistance.js b/node_modules/date-fns/locale/ta/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..f87daabd1bded5ca8aacc20010974432aef82722 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance.js @@ -0,0 +1,224 @@ +function isPluralType(val) { + return val.one !== undefined; +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "ஒரு வினாடிக்கு குறைவாக", + in: "ஒரு வினாடிக்குள்", + ago: "ஒரு வினாடிக்கு முன்பு", + }, + other: { + default: "{{count}} வினாடிகளுக்கு குறைவாக", + in: "{{count}} வினாடிகளுக்குள்", + ago: "{{count}} வினாடிகளுக்கு முன்பு", + }, + }, + + xSeconds: { + one: { + default: "1 வினாடி", + in: "1 வினாடியில்", + ago: "1 வினாடி முன்பு", + }, + other: { + default: "{{count}} விநாடிகள்", + in: "{{count}} வினாடிகளில்", + ago: "{{count}} விநாடிகளுக்கு முன்பு", + }, + }, + + halfAMinute: { + default: "அரை நிமிடம்", + in: "அரை நிமிடத்தில்", + ago: "அரை நிமிடம் முன்பு", + }, + + lessThanXMinutes: { + one: { + default: "ஒரு நிமிடத்திற்கும் குறைவாக", + in: "ஒரு நிமிடத்திற்குள்", + ago: "ஒரு நிமிடத்திற்கு முன்பு", + }, + other: { + default: "{{count}} நிமிடங்களுக்கும் குறைவாக", + in: "{{count}} நிமிடங்களுக்குள்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு", + }, + }, + + xMinutes: { + one: { + default: "1 நிமிடம்", + in: "1 நிமிடத்தில்", + ago: "1 நிமிடம் முன்பு", + }, + other: { + default: "{{count}} நிமிடங்கள்", + in: "{{count}} நிமிடங்களில்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு", + }, + }, + + aboutXHours: { + one: { + default: "சுமார் 1 மணி நேரம்", + in: "சுமார் 1 மணி நேரத்தில்", + ago: "சுமார் 1 மணி நேரத்திற்கு முன்பு", + }, + other: { + default: "சுமார் {{count}} மணி நேரம்", + in: "சுமார் {{count}} மணி நேரத்திற்கு முன்பு", + ago: "சுமார் {{count}} மணி நேரத்தில்", + }, + }, + + xHours: { + one: { + default: "1 மணி நேரம்", + in: "1 மணி நேரத்தில்", + ago: "1 மணி நேரத்திற்கு முன்பு", + }, + other: { + default: "{{count}} மணி நேரம்", + in: "{{count}} மணி நேரத்தில்", + ago: "{{count}} மணி நேரத்திற்கு முன்பு", + }, + }, + + xDays: { + one: { + default: "1 நாள்", + in: "1 நாளில்", + ago: "1 நாள் முன்பு", + }, + other: { + default: "{{count}} நாட்கள்", + in: "{{count}} நாட்களில்", + ago: "{{count}} நாட்களுக்கு முன்பு", + }, + }, + + aboutXWeeks: { + one: { + default: "சுமார் 1 வாரம்", + in: "சுமார் 1 வாரத்தில்", + ago: "சுமார் 1 வாரம் முன்பு", + }, + other: { + default: "சுமார் {{count}} வாரங்கள்", + in: "சுமார் {{count}} வாரங்களில்", + ago: "சுமார் {{count}} வாரங்களுக்கு முன்பு", + }, + }, + + xWeeks: { + one: { + default: "1 வாரம்", + in: "1 வாரத்தில்", + ago: "1 வாரம் முன்பு", + }, + other: { + default: "{{count}} வாரங்கள்", + in: "{{count}} வாரங்களில்", + ago: "{{count}} வாரங்களுக்கு முன்பு", + }, + }, + + aboutXMonths: { + one: { + default: "சுமார் 1 மாதம்", + in: "சுமார் 1 மாதத்தில்", + ago: "சுமார் 1 மாதத்திற்கு முன்பு", + }, + other: { + default: "சுமார் {{count}} மாதங்கள்", + in: "சுமார் {{count}} மாதங்களில்", + ago: "சுமார் {{count}} மாதங்களுக்கு முன்பு", + }, + }, + + xMonths: { + one: { + default: "1 மாதம்", + in: "1 மாதத்தில்", + ago: "1 மாதம் முன்பு", + }, + other: { + default: "{{count}} மாதங்கள்", + in: "{{count}} மாதங்களில்", + ago: "{{count}} மாதங்களுக்கு முன்பு", + }, + }, + + aboutXYears: { + one: { + default: "சுமார் 1 வருடம்", + in: "சுமார் 1 ஆண்டில்", + ago: "சுமார் 1 வருடம் முன்பு", + }, + other: { + default: "சுமார் {{count}} ஆண்டுகள்", + in: "சுமார் {{count}} ஆண்டுகளில்", + ago: "சுமார் {{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + xYears: { + one: { + default: "1 வருடம்", + in: "1 ஆண்டில்", + ago: "1 வருடம் முன்பு", + }, + other: { + default: "{{count}} ஆண்டுகள்", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + overXYears: { + one: { + default: "1 வருடத்திற்கு மேல்", + in: "1 வருடத்திற்கும் மேலாக", + ago: "1 வருடம் முன்பு", + }, + other: { + default: "{{count}} ஆண்டுகளுக்கும் மேலாக", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + almostXYears: { + one: { + default: "கிட்டத்தட்ட 1 வருடம்", + in: "கிட்டத்தட்ட 1 ஆண்டில்", + ago: "கிட்டத்தட்ட 1 வருடம் முன்பு", + }, + other: { + default: "கிட்டத்தட்ட {{count}} ஆண்டுகள்", + in: "கிட்டத்தட்ட {{count}} ஆண்டுகளில்", + ago: "கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + const tense = options?.addSuffix + ? options.comparison && options.comparison > 0 + ? "in" + : "ago" + : "default"; + + const tokenValue = formatDistanceLocale[token]; + + if (!isPluralType(tokenValue)) return tokenValue[tense]; + + if (count === 1) { + return tokenValue.one[tense]; + } else { + return tokenValue.other[tense].replace("{{count}}", String(count)); + } +}; diff --git a/node_modules/date-fns/locale/ta/_lib/formatLong.cjs b/node_modules/date-fns/locale/ta/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..1f1c17198d205eaefe5f7129b88f68d9066a60e2 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatLong.cjs @@ -0,0 +1,45 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +// CLDR #1846 - #1849 +const dateFormats = { + full: "EEEE, d MMMM, y", + long: "d MMMM, y", + medium: "d MMM, y", + short: "d/M/yy", +}; + +// CLDR #1850 - #1853 +const timeFormats = { + full: "a h:mm:ss zzzz", + long: "a h:mm:ss z", + medium: "a h:mm:ss", + short: "a 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/ta/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ta/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ta/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/formatLong.js b/node_modules/date-fns/locale/ta/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..ea20b9501cda41caa7f0383ba0cef0d7a692e1cc --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatLong.js @@ -0,0 +1,43 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +// CLDR #1846 - #1849 +const dateFormats = { + full: "EEEE, d MMMM, y", + long: "d MMMM, y", + medium: "d MMM, y", + short: "d/M/yy", +}; + +// CLDR #1850 - #1853 +const timeFormats = { + full: "a h:mm:ss zzzz", + long: "a h:mm:ss z", + medium: "a h:mm:ss", + short: "a 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/ta/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ta/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4966ae842d85ac7729e88fa1f05192c6061c84a7 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ta/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ta/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/formatRelative.js b/node_modules/date-fns/locale/ta/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..fe29d16ec40f47a97171563d34d87b6d4923f608 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/localize.cjs b/node_modules/date-fns/locale/ta/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ddd03564ac4ddd1a081c0c90203558afb32ebee6 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/localize.cjs @@ -0,0 +1,185 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +const eraValues = { + narrow: ["கி.மு.", "கி.பி."], + abbreviated: ["கி.மு.", "கி.பி."], // CLDR #1624, #1626 + wide: ["கிறிஸ்துவுக்கு முன்", "அன்னோ டோமினி"], // CLDR #1620, #1622 +}; + +const quarterValues = { + // CLDR #1644 - #1647 + narrow: ["1", "2", "3", "4"], + // CLDR #1636 - #1639 + abbreviated: ["காலா.1", "காலா.2", "காலா.3", "காலா.4"], + // CLDR #1628 - #1631 + wide: [ + "ஒன்றாம் காலாண்டு", + "இரண்டாம் காலாண்டு", + "மூன்றாம் காலாண்டு", + "நான்காம் காலாண்டு", + ], +}; + +const monthValues = { + // CLDR #700 - #711 + narrow: ["ஜ", "பி", "மா", "ஏ", "மே", "ஜூ", "ஜூ", "ஆ", "செ", "அ", "ந", "டி"], + + // CLDR #1676 - #1687 + abbreviated: [ + "ஜன.", + "பிப்.", + "மார்.", + "ஏப்.", + "மே", + "ஜூன்", + "ஜூலை", + "ஆக.", + "செப்.", + "அக்.", + "நவ.", + "டிச.", + ], + + // CLDR #1652 - #1663 + wide: [ + "ஜனவரி", // January + "பிப்ரவரி", // February + "மார்ச்", // March + "ஏப்ரல்", // April + "மே", // May + "ஜூன்", // June + "ஜூலை", // July + "ஆகஸ்ட்", // August + "செப்டம்பர்", // September + "அக்டோபர்", // October + "நவம்பர்", // November + "டிசம்பர்", // December + ], +}; + +const dayValues = { + // CLDR #1766 - #1772 + narrow: ["ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"], + // CLDR #1752 - #1758 + short: ["ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"], + // CLDR #1738 - #1744 + abbreviated: ["ஞாயி.", "திங்.", "செவ்.", "புத.", "வியா.", "வெள்.", "சனி"], + // CLDR #1724 - #1730 + wide: [ + "ஞாயிறு", // Sunday + "திங்கள்", // Monday + "செவ்வாய்", // Tuesday + "புதன்", // Wednesday + "வியாழன்", // Thursday + "வெள்ளி", // Friday + "சனி", // Saturday + ], +}; + +// CLDR #1780 - #1845 +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: "இரவு", + }, +}; + +// CLDR #1780 - #1845 +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/ta/_lib/localize.d.cts b/node_modules/date-fns/locale/ta/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/localize.d.ts b/node_modules/date-fns/locale/ta/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/localize.js b/node_modules/date-fns/locale/ta/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..dc15f3df4fdfcf02a8106ef9c8afb419f5cd1de9 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/localize.js @@ -0,0 +1,183 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +const eraValues = { + narrow: ["கி.மு.", "கி.பி."], + abbreviated: ["கி.மு.", "கி.பி."], // CLDR #1624, #1626 + wide: ["கிறிஸ்துவுக்கு முன்", "அன்னோ டோமினி"], // CLDR #1620, #1622 +}; + +const quarterValues = { + // CLDR #1644 - #1647 + narrow: ["1", "2", "3", "4"], + // CLDR #1636 - #1639 + abbreviated: ["காலா.1", "காலா.2", "காலா.3", "காலா.4"], + // CLDR #1628 - #1631 + wide: [ + "ஒன்றாம் காலாண்டு", + "இரண்டாம் காலாண்டு", + "மூன்றாம் காலாண்டு", + "நான்காம் காலாண்டு", + ], +}; + +const monthValues = { + // CLDR #700 - #711 + narrow: ["ஜ", "பி", "மா", "ஏ", "மே", "ஜூ", "ஜூ", "ஆ", "செ", "அ", "ந", "டி"], + + // CLDR #1676 - #1687 + abbreviated: [ + "ஜன.", + "பிப்.", + "மார்.", + "ஏப்.", + "மே", + "ஜூன்", + "ஜூலை", + "ஆக.", + "செப்.", + "அக்.", + "நவ.", + "டிச.", + ], + + // CLDR #1652 - #1663 + wide: [ + "ஜனவரி", // January + "பிப்ரவரி", // February + "மார்ச்", // March + "ஏப்ரல்", // April + "மே", // May + "ஜூன்", // June + "ஜூலை", // July + "ஆகஸ்ட்", // August + "செப்டம்பர்", // September + "அக்டோபர்", // October + "நவம்பர்", // November + "டிசம்பர்", // December + ], +}; + +const dayValues = { + // CLDR #1766 - #1772 + narrow: ["ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"], + // CLDR #1752 - #1758 + short: ["ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"], + // CLDR #1738 - #1744 + abbreviated: ["ஞாயி.", "திங்.", "செவ்.", "புத.", "வியா.", "வெள்.", "சனி"], + // CLDR #1724 - #1730 + wide: [ + "ஞாயிறு", // Sunday + "திங்கள்", // Monday + "செவ்வாய்", // Tuesday + "புதன்", // Wednesday + "வியாழன்", // Thursday + "வெள்ளி", // Friday + "சனி", // Saturday + ], +}; + +// CLDR #1780 - #1845 +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: "இரவு", + }, +}; + +// CLDR #1780 - #1845 +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/ta/_lib/match.cjs b/node_modules/date-fns/locale/ta/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..615ce1385021ca6239ec28d99fd4b26d9f660c08 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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: /^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/, + wide: /^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i, +}; +const parseEraPatterns = { + any: [/கி\.?\s?மு\.?/, /கி\.?\s?பி\.?/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^காலா.[1234]/i, + wide: /^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [ + /(1|காலா.1|ஒன்றாம்)/i, + /(2|காலா.2|இரண்டாம்)/i, + /(3|காலா.3|மூன்றாம்)/i, + /(4|காலா.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: /^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ta/_lib/match.d.cts b/node_modules/date-fns/locale/ta/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/match.d.ts b/node_modules/date-fns/locale/ta/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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/ta/_lib/match.js b/node_modules/date-fns/locale/ta/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..4e075c7b606480e91b5dadc1798e6b265ec284ba --- /dev/null +++ b/node_modules/date-fns/locale/ta/_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: /^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/, + wide: /^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i, +}; +const parseEraPatterns = { + any: [/கி\.?\s?மு\.?/, /கி\.?\s?பி\.?/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^காலா.[1234]/i, + wide: /^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [ + /(1|காலா.1|ஒன்றாம்)/i, + /(2|காலா.2|இரண்டாம்)/i, + /(3|காலா.3|மூன்றாம்)/i, + /(4|காலா.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: /^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ta/cdn.js b/node_modules/date-fns/locale/ta/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..be1dce31d79869ae607482cf7f1fc5b0187af756 --- /dev/null +++ b/node_modules/date-fns/locale/ta/cdn.js @@ -0,0 +1,705 @@ +(() => { +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/ta/_lib/formatDistance.js +function isPluralType(val) { + return val.one !== void 0; +} +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "ஒரு வினாடிக்கு குறைவாக", + in: "ஒரு வினாடிக்குள்", + ago: "ஒரு வினாடிக்கு முன்பு" + }, + other: { + default: "{{count}} வினாடிகளுக்கு குறைவாக", + in: "{{count}} வினாடிகளுக்குள்", + ago: "{{count}} வினாடிகளுக்கு முன்பு" + } + }, + xSeconds: { + one: { + default: "1 வினாடி", + in: "1 வினாடியில்", + ago: "1 வினாடி முன்பு" + }, + other: { + default: "{{count}} விநாடிகள்", + in: "{{count}} வினாடிகளில்", + ago: "{{count}} விநாடிகளுக்கு முன்பு" + } + }, + halfAMinute: { + default: "அரை நிமிடம்", + in: "அரை நிமிடத்தில்", + ago: "அரை நிமிடம் முன்பு" + }, + lessThanXMinutes: { + one: { + default: "ஒரு நிமிடத்திற்கும் குறைவாக", + in: "ஒரு நிமிடத்திற்குள்", + ago: "ஒரு நிமிடத்திற்கு முன்பு" + }, + other: { + default: "{{count}} நிமிடங்களுக்கும் குறைவாக", + in: "{{count}} நிமிடங்களுக்குள்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு" + } + }, + xMinutes: { + one: { + default: "1 நிமிடம்", + in: "1 நிமிடத்தில்", + ago: "1 நிமிடம் முன்பு" + }, + other: { + default: "{{count}} நிமிடங்கள்", + in: "{{count}} நிமிடங்களில்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு" + } + }, + aboutXHours: { + one: { + default: "சுமார் 1 மணி நேரம்", + in: "சுமார் 1 மணி நேரத்தில்", + ago: "சுமார் 1 மணி நேரத்திற்கு முன்பு" + }, + other: { + default: "சுமார் {{count}} மணி நேரம்", + in: "சுமார் {{count}} மணி நேரத்திற்கு முன்பு", + ago: "சுமார் {{count}} மணி நேரத்தில்" + } + }, + xHours: { + one: { + default: "1 மணி நேரம்", + in: "1 மணி நேரத்தில்", + ago: "1 மணி நேரத்திற்கு முன்பு" + }, + other: { + default: "{{count}} மணி நேரம்", + in: "{{count}} மணி நேரத்தில்", + ago: "{{count}} மணி நேரத்திற்கு முன்பு" + } + }, + xDays: { + one: { + default: "1 நாள்", + in: "1 நாளில்", + ago: "1 நாள் முன்பு" + }, + other: { + default: "{{count}} நாட்கள்", + in: "{{count}} நாட்களில்", + ago: "{{count}} நாட்களுக்கு முன்பு" + } + }, + aboutXWeeks: { + one: { + default: "சுமார் 1 வாரம்", + in: "சுமார் 1 வாரத்தில்", + ago: "சுமார் 1 வாரம் முன்பு" + }, + other: { + default: "சுமார் {{count}} வாரங்கள்", + in: "சுமார் {{count}} வாரங்களில்", + ago: "சுமார் {{count}} வாரங்களுக்கு முன்பு" + } + }, + xWeeks: { + one: { + default: "1 வாரம்", + in: "1 வாரத்தில்", + ago: "1 வாரம் முன்பு" + }, + other: { + default: "{{count}} வாரங்கள்", + in: "{{count}} வாரங்களில்", + ago: "{{count}} வாரங்களுக்கு முன்பு" + } + }, + aboutXMonths: { + one: { + default: "சுமார் 1 மாதம்", + in: "சுமார் 1 மாதத்தில்", + ago: "சுமார் 1 மாதத்திற்கு முன்பு" + }, + other: { + default: "சுமார் {{count}} மாதங்கள்", + in: "சுமார் {{count}} மாதங்களில்", + ago: "சுமார் {{count}} மாதங்களுக்கு முன்பு" + } + }, + xMonths: { + one: { + default: "1 மாதம்", + in: "1 மாதத்தில்", + ago: "1 மாதம் முன்பு" + }, + other: { + default: "{{count}} மாதங்கள்", + in: "{{count}} மாதங்களில்", + ago: "{{count}} மாதங்களுக்கு முன்பு" + } + }, + aboutXYears: { + one: { + default: "சுமார் 1 வருடம்", + in: "சுமார் 1 ஆண்டில்", + ago: "சுமார் 1 வருடம் முன்பு" + }, + other: { + default: "சுமார் {{count}} ஆண்டுகள்", + in: "சுமார் {{count}} ஆண்டுகளில்", + ago: "சுமார் {{count}} ஆண்டுகளுக்கு முன்பு" + } + }, + xYears: { + one: { + default: "1 வருடம்", + in: "1 ஆண்டில்", + ago: "1 வருடம் முன்பு" + }, + other: { + default: "{{count}} ஆண்டுகள்", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு" + } + }, + overXYears: { + one: { + default: "1 வருடத்திற்கு மேல்", + in: "1 வருடத்திற்கும் மேலாக", + ago: "1 வருடம் முன்பு" + }, + other: { + default: "{{count}} ஆண்டுகளுக்கும் மேலாக", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு" + } + }, + almostXYears: { + one: { + default: "கிட்டத்தட்ட 1 வருடம்", + in: "கிட்டத்தட்ட 1 ஆண்டில்", + ago: "கிட்டத்தட்ட 1 வருடம் முன்பு" + }, + other: { + default: "கிட்டத்தட்ட {{count}} ஆண்டுகள்", + in: "கிட்டத்தட்ட {{count}} ஆண்டுகளில்", + ago: "கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var tense = options !== null && options !== void 0 && options.addSuffix ? options.comparison && options.comparison > 0 ? "in" : "ago" : "default"; + var tokenValue = formatDistanceLocale[token]; + if (!isPluralType(tokenValue)) return tokenValue[tense]; + if (count === 1) return tokenValue.one[tense];else + return tokenValue.other[tense].replace("{{count}}", String(count)); +}; +//#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: "a h:mm:ss zzzz", + long: "a h:mm:ss z", + medium: "a h:mm:ss", + short: "a 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/ta/_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/ta/_lib/localize.js +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 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/ta.js +/** +* @category Locales +* @summary Tamil locale (India). +* @language Tamil +* @iso-639-2 tam +* @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) +*/ +var ta = { + code: "ta", + 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?பி\.?)/, + wide: /^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/கி\.?\s?மு\.?/, /கி\.?\s?பி\.?/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^காலா.[1234]/i, + wide: /^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i], + + any: [ + /(1|காலா.1|ஒன்றாம்)/i, + /(2|காலா.2|இரண்டாம்)/i, + /(3|காலா.3|மூன்றாம்)/i, + /(4|காலா.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: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ta/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), {}, { + ta: ta }) }); + + +//#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/ta/cdn.min.js b/node_modules/date-fns/locale/ta/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..793f9638d42dbc2ce8fb89c88a57dea7f9f54d54 --- /dev/null +++ b/node_modules/date-fns/locale/ta/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`:`ago`:`default`,i=s[e];return o(i)?t===1?i.one[r]:i.other[r].replace(`{{count}}`,String(t)):i[r]};function l(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 u={date:l({formats:{full:`EEEE, d MMMM, y`,long:`d MMMM, y`,medium:`d MMM, y`,short:`d/M/yy`},defaultWidth:`full`}),time:l({formats:{full:`a h:mm:ss zzzz`,long:`a h:mm:ss z`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:l({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},d={lastWeek:`'கடந்த' eeee p 'மணிக்கு'`,yesterday:`'நேற்று ' p 'மணிக்கு'`,today:`'இன்று ' p 'மணிக்கு'`,tomorrow:`'நாளை ' p 'மணிக்கு'`,nextWeek:`eeee p 'மணிக்கு'`,other:`P`},f=function(e,t,n,r){return 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 String(e)},era:p({values:{narrow:[`கி.மு.`,`கி.பி.`],abbreviated:[`கி.மு.`,`கி.பி.`],wide:[`கிறிஸ்துவுக்கு முன்`,`அன்னோ டோமினி`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`காலா.1`,`காலா.2`,`காலா.3`,`காலா.4`],wide:[`ஒன்றாம் காலாண்டு`,`இரண்டாம் காலாண்டு`,`மூன்றாம் காலாண்டு`,`நான்காம் காலாண்டு`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`ஜ`,`பி`,`மா`,`ஏ`,`மே`,`ஜூ`,`ஜூ`,`ஆ`,`செ`,`அ`,`ந`,`டி`],abbreviated:[`ஜன.`,`பிப்.`,`மார்.`,`ஏப்.`,`மே`,`ஜூன்`,`ஜூலை`,`ஆக.`,`செப்.`,`அக்.`,`நவ.`,`டிச.`],wide:[`ஜனவரி`,`பிப்ரவரி`,`மார்ச்`,`ஏப்ரல்`,`மே`,`ஜூன்`,`ஜூலை`,`ஆகஸ்ட்`,`செப்டம்பர்`,`அக்டோபர்`,`நவம்பர்`,`டிசம்பர்`]},defaultWidth:`wide`}),day:p({values:{narrow:[`ஞா`,`தி`,`செ`,`பு`,`வி`,`வெ`,`ச`],short:[`ஞா`,`தி`,`செ`,`பு`,`வி`,`வெ`,`ச`],abbreviated:[`ஞாயி.`,`திங்.`,`செவ்.`,`புத.`,`வியா.`,`வெள்.`,`சனி`],wide:[`ஞாயிறு`,`திங்கள்`,`செவ்வாய்`,`புதன்`,`வியாழன்`,`வெள்ளி`,`சனி`]},defaultWidth:`wide`}),dayPeriod:p({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 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:`ta`,formatDistance:c,formatLong:u,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(வது)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({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:h({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:h({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:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ta: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/te.cjs b/node_modules/date-fns/locale/te.cjs new file mode 100644 index 0000000000000000000000000000000000000000..caaf420c806cccf56126a18ed572367923317289 --- /dev/null +++ b/node_modules/date-fns/locale/te.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.te = void 0; +var _index = require("./te/_lib/formatDistance.cjs"); +var _index2 = require("./te/_lib/formatLong.cjs"); +var _index3 = require("./te/_lib/formatRelative.cjs"); +var _index4 = require("./te/_lib/localize.cjs"); +var _index5 = require("./te/_lib/match.cjs"); + +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +const te = (exports.te = { + code: "te", + 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/te.d.cts b/node_modules/date-fns/locale/te.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bab046bcfa125ce22d9a928b2f69045d465b82df --- /dev/null +++ b/node_modules/date-fns/locale/te.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +export declare const te: Locale; diff --git a/node_modules/date-fns/locale/te.d.ts b/node_modules/date-fns/locale/te.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bab046bcfa125ce22d9a928b2f69045d465b82df --- /dev/null +++ b/node_modules/date-fns/locale/te.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +export declare const te: Locale; diff --git a/node_modules/date-fns/locale/te.js b/node_modules/date-fns/locale/te.js new file mode 100644 index 0000000000000000000000000000000000000000..321b0b47edc3f9b57cf6855b51e4094910945634 --- /dev/null +++ b/node_modules/date-fns/locale/te.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./te/_lib/formatDistance.js"; +import { formatLong } from "./te/_lib/formatLong.js"; +import { formatRelative } from "./te/_lib/formatRelative.js"; +import { localize } from "./te/_lib/localize.js"; +import { match } from "./te/_lib/match.js"; + +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +export const te = { + code: "te", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default te; diff --git a/node_modules/date-fns/locale/te/_lib/formatDistance.cjs b/node_modules/date-fns/locale/te/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..649fe73b560960b2ffb01e03e944ec0ffccb70fc --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance.cjs @@ -0,0 +1,203 @@ +"use strict"; +exports.formatDistance = void 0; + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "సెకను కన్నా తక్కువ", + other: "{{count}} సెకన్ల కన్నా తక్కువ", + }, + withPreposition: { + one: "సెకను", + other: "{{count}} సెకన్ల", + }, + }, + + xSeconds: { + standalone: { + one: "ఒక సెకను", // CLDR #1314 + other: "{{count}} సెకన్ల", + }, + withPreposition: { + one: "ఒక సెకను", + other: "{{count}} సెకన్ల", + }, + }, + + halfAMinute: { + standalone: "అర నిమిషం", + withPreposition: "అర నిమిషం", + }, + + lessThanXMinutes: { + standalone: { + one: "ఒక నిమిషం కన్నా తక్కువ", + other: "{{count}} నిమిషాల కన్నా తక్కువ", + }, + withPreposition: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాల", + }, + }, + + xMinutes: { + standalone: { + one: "ఒక నిమిషం", // CLDR #1311 + other: "{{count}} నిమిషాలు", + }, + withPreposition: { + one: "ఒక నిమిషం", // CLDR #1311 + other: "{{count}} నిమిషాల", + }, + }, + + aboutXHours: { + standalone: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటలు", + }, + withPreposition: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటల", + }, + }, + + xHours: { + standalone: { + one: "ఒక గంట", // CLDR #1308 + other: "{{count}} గంటలు", + }, + withPreposition: { + one: "ఒక గంట", + other: "{{count}} గంటల", + }, + }, + + xDays: { + standalone: { + one: "ఒక రోజు", // CLDR #1292 + other: "{{count}} రోజులు", + }, + withPreposition: { + one: "ఒక రోజు", + other: "{{count}} రోజుల", + }, + }, + + aboutXWeeks: { + standalone: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలు", + }, + withPreposition: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలల", + }, + }, + + xWeeks: { + standalone: { + one: "ఒక వారం", + other: "{{count}} వారాలు", + }, + withPreposition: { + one: "ఒక వారం", + other: "{{count}} వారాలల", + }, + }, + + aboutXMonths: { + standalone: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలలు", + }, + withPreposition: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలల", + }, + }, + + xMonths: { + standalone: { + one: "ఒక నెల", // CLDR #1281 + other: "{{count}} నెలలు", + }, + withPreposition: { + one: "ఒక నెల", + other: "{{count}} నెలల", + }, + }, + + aboutXYears: { + standalone: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాల", + }, + }, + + xYears: { + standalone: { + one: "ఒక సంవత్సరం", // CLDR #1275 + other: "{{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల", + }, + }, + + overXYears: { + standalone: { + one: "ఒక సంవత్సరం పైగా", + other: "{{count}} సంవత్సరాలకు పైగా", + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల", + }, + }, + + almostXYears: { + standalone: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాల", + }, + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + + 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/te/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/te/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/te/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/formatDistance.js b/node_modules/date-fns/locale/te/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..0e8fb94bb847d17f77dd002102a3e6d1c7f08782 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance.js @@ -0,0 +1,199 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "సెకను కన్నా తక్కువ", + other: "{{count}} సెకన్ల కన్నా తక్కువ", + }, + withPreposition: { + one: "సెకను", + other: "{{count}} సెకన్ల", + }, + }, + + xSeconds: { + standalone: { + one: "ఒక సెకను", // CLDR #1314 + other: "{{count}} సెకన్ల", + }, + withPreposition: { + one: "ఒక సెకను", + other: "{{count}} సెకన్ల", + }, + }, + + halfAMinute: { + standalone: "అర నిమిషం", + withPreposition: "అర నిమిషం", + }, + + lessThanXMinutes: { + standalone: { + one: "ఒక నిమిషం కన్నా తక్కువ", + other: "{{count}} నిమిషాల కన్నా తక్కువ", + }, + withPreposition: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాల", + }, + }, + + xMinutes: { + standalone: { + one: "ఒక నిమిషం", // CLDR #1311 + other: "{{count}} నిమిషాలు", + }, + withPreposition: { + one: "ఒక నిమిషం", // CLDR #1311 + other: "{{count}} నిమిషాల", + }, + }, + + aboutXHours: { + standalone: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటలు", + }, + withPreposition: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటల", + }, + }, + + xHours: { + standalone: { + one: "ఒక గంట", // CLDR #1308 + other: "{{count}} గంటలు", + }, + withPreposition: { + one: "ఒక గంట", + other: "{{count}} గంటల", + }, + }, + + xDays: { + standalone: { + one: "ఒక రోజు", // CLDR #1292 + other: "{{count}} రోజులు", + }, + withPreposition: { + one: "ఒక రోజు", + other: "{{count}} రోజుల", + }, + }, + + aboutXWeeks: { + standalone: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలు", + }, + withPreposition: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలల", + }, + }, + + xWeeks: { + standalone: { + one: "ఒక వారం", + other: "{{count}} వారాలు", + }, + withPreposition: { + one: "ఒక వారం", + other: "{{count}} వారాలల", + }, + }, + + aboutXMonths: { + standalone: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలలు", + }, + withPreposition: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలల", + }, + }, + + xMonths: { + standalone: { + one: "ఒక నెల", // CLDR #1281 + other: "{{count}} నెలలు", + }, + withPreposition: { + one: "ఒక నెల", + other: "{{count}} నెలల", + }, + }, + + aboutXYears: { + standalone: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాల", + }, + }, + + xYears: { + standalone: { + one: "ఒక సంవత్సరం", // CLDR #1275 + other: "{{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల", + }, + }, + + overXYears: { + standalone: { + one: "ఒక సంవత్సరం పైగా", + other: "{{count}} సంవత్సరాలకు పైగా", + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల", + }, + }, + + almostXYears: { + standalone: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాల", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + + 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/te/_lib/formatLong.cjs b/node_modules/date-fns/locale/te/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9fc4406d32b87631f5ed9c8302fda6467a42335a --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatLong.cjs @@ -0,0 +1,46 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +// CLDR #1807 - #1811 +const dateFormats = { + full: "d, MMMM y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd-MM-yy", +}; + +// CLDR #1807 - #1811 +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +// CLDR #1815 - #1818 +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/te/_lib/formatLong.d.cts b/node_modules/date-fns/locale/te/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/formatLong.d.ts b/node_modules/date-fns/locale/te/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/formatLong.js b/node_modules/date-fns/locale/te/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..3a63bab0d3a048c7683606a199d18f0200ad5f93 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatLong.js @@ -0,0 +1,44 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +// CLDR #1807 - #1811 +const dateFormats = { + full: "d, MMMM y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd-MM-yy", +}; + +// CLDR #1807 - #1811 +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +// CLDR #1815 - #1818 +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/te/_lib/formatRelative.cjs b/node_modules/date-fns/locale/te/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3883b2c7dd2eab57f5748a3cee2c1f4f9d31ae2f --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatRelative.cjs @@ -0,0 +1,17 @@ +"use strict"; +exports.formatRelative = void 0; + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +const formatRelativeLocale = { + lastWeek: "'గత' eeee p", // CLDR #1384 + yesterday: "'నిన్న' p", // CLDR #1393 + today: "'ఈ రోజు' p", // CLDR #1394 + tomorrow: "'రేపు' p", // CLDR #1395 + 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/te/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/te/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/te/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/formatRelative.js b/node_modules/date-fns/locale/te/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..4e39f1f6a4651674c406a154ec7b7297ba8d1ce0 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatRelative.js @@ -0,0 +1,13 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +const formatRelativeLocale = { + lastWeek: "'గత' eeee p", // CLDR #1384 + yesterday: "'నిన్న' p", // CLDR #1393 + today: "'ఈ రోజు' p", // CLDR #1394 + tomorrow: "'రేపు' p", // CLDR #1395 + nextWeek: "'తదుపరి' eeee p", // CLDR #1386 + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/te/_lib/localize.cjs b/node_modules/date-fns/locale/te/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ed331ff60797778b1424c859c928b193dd73d634 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/localize.cjs @@ -0,0 +1,175 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +// Source: https://dsal.uchicago.edu/dictionaries/brown/ + +// CLDR #1605 - #1608 +const eraValues = { + narrow: ["క్రీ.పూ.", "క్రీ.శ."], + abbreviated: ["క్రీ.పూ.", "క్రీ.శ."], + wide: ["క్రీస్తు పూర్వం", "క్రీస్తుశకం"], +}; + +// CLDR #1613 - #1628 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["త్రై1", "త్రై2", "త్రై3", "త్రై4"], + wide: ["1వ త్రైమాసికం", "2వ త్రైమాసికం", "3వ త్రైమాసికం", "4వ త్రైమాసికం"], +}; + +// CLDR #1637 - #1708 +const monthValues = { + narrow: ["జ", "ఫి", "మా", "ఏ", "మే", "జూ", "జు", "ఆ", "సె", "అ", "న", "డి"], + + abbreviated: [ + "జన", + "ఫిబ్ర", + "మార్చి", + "ఏప్రి", + "మే", + "జూన్", + "జులై", + "ఆగ", + "సెప్టెం", + "అక్టో", + "నవం", + "డిసెం", + ], + + wide: [ + "జనవరి", + "ఫిబ్రవరి", + "మార్చి", + "ఏప్రిల్", + "మే", + "జూన్", + "జులై", + "ఆగస్టు", + "సెప్టెంబర్", + "అక్టోబర్", + "నవంబర్", + "డిసెంబర్", + ], +}; + +// CLDR #1709 - #1764 +const dayValues = { + narrow: ["ఆ", "సో", "మ", "బు", "గు", "శు", "శ"], + short: ["ఆది", "సోమ", "మంగళ", "బుధ", "గురు", "శుక్ర", "శని"], + abbreviated: ["ఆది", "సోమ", "మంగళ", "బుధ", "గురు", "శుక్ర", "శని"], + wide: [ + "ఆదివారం", + "సోమవారం", + "మంగళవారం", + "బుధవారం", + "గురువారం", + "శుక్రవారం", + "శనివారం", + ], +}; + +// CLDR #1767 - #1806 +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 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/te/_lib/localize.d.cts b/node_modules/date-fns/locale/te/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/localize.d.ts b/node_modules/date-fns/locale/te/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/localize.js b/node_modules/date-fns/locale/te/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..d94e55bd72d83b05f929b7637428365b281180f5 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/localize.js @@ -0,0 +1,173 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +// Source: https://dsal.uchicago.edu/dictionaries/brown/ + +// CLDR #1605 - #1608 +const eraValues = { + narrow: ["క్రీ.పూ.", "క్రీ.శ."], + abbreviated: ["క్రీ.పూ.", "క్రీ.శ."], + wide: ["క్రీస్తు పూర్వం", "క్రీస్తుశకం"], +}; + +// CLDR #1613 - #1628 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["త్రై1", "త్రై2", "త్రై3", "త్రై4"], + wide: ["1వ త్రైమాసికం", "2వ త్రైమాసికం", "3వ త్రైమాసికం", "4వ త్రైమాసికం"], +}; + +// CLDR #1637 - #1708 +const monthValues = { + narrow: ["జ", "ఫి", "మా", "ఏ", "మే", "జూ", "జు", "ఆ", "సె", "అ", "న", "డి"], + + abbreviated: [ + "జన", + "ఫిబ్ర", + "మార్చి", + "ఏప్రి", + "మే", + "జూన్", + "జులై", + "ఆగ", + "సెప్టెం", + "అక్టో", + "నవం", + "డిసెం", + ], + + wide: [ + "జనవరి", + "ఫిబ్రవరి", + "మార్చి", + "ఏప్రిల్", + "మే", + "జూన్", + "జులై", + "ఆగస్టు", + "సెప్టెంబర్", + "అక్టోబర్", + "నవంబర్", + "డిసెంబర్", + ], +}; + +// CLDR #1709 - #1764 +const dayValues = { + narrow: ["ఆ", "సో", "మ", "బు", "గు", "శు", "శ"], + short: ["ఆది", "సోమ", "మంగళ", "బుధ", "గురు", "శుక్ర", "శని"], + abbreviated: ["ఆది", "సోమ", "మంగళ", "బుధ", "గురు", "శుక్ర", "శని"], + wide: [ + "ఆదివారం", + "సోమవారం", + "మంగళవారం", + "బుధవారం", + "గురువారం", + "శుక్రవారం", + "శనివారం", + ], +}; + +// CLDR #1767 - #1806 +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 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/te/_lib/match.cjs b/node_modules/date-fns/locale/te/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..0804444977e4c1373b08a1a1a74fc5c5edff95b6 --- /dev/null +++ b/node_modules/date-fns/locale/te/_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: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/te/_lib/match.d.cts b/node_modules/date-fns/locale/te/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/match.d.ts b/node_modules/date-fns/locale/te/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/te/_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/te/_lib/match.js b/node_modules/date-fns/locale/te/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..fc526f07ca9ef99fe79c0eaf6012d0604da097dc --- /dev/null +++ b/node_modules/date-fns/locale/te/_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: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/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: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/te/cdn.js b/node_modules/date-fns/locale/te/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..d5982bd1334ee21dd266f48d22406618b759cee2 --- /dev/null +++ b/node_modules/date-fns/locale/te/cdn.js @@ -0,0 +1,666 @@ +(() => { +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/te/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "సెకను కన్నా తక్కువ", + other: "{{count}} సెకన్ల కన్నా తక్కువ" + }, + withPreposition: { + one: "సెకను", + other: "{{count}} సెకన్ల" + } + }, + xSeconds: { + standalone: { + one: "ఒక సెకను", + other: "{{count}} సెకన్ల" + }, + withPreposition: { + one: "ఒక సెకను", + other: "{{count}} సెకన్ల" + } + }, + halfAMinute: { + standalone: "అర నిమిషం", + withPreposition: "అర నిమిషం" + }, + lessThanXMinutes: { + standalone: { + one: "ఒక నిమిషం కన్నా తక్కువ", + other: "{{count}} నిమిషాల కన్నా తక్కువ" + }, + withPreposition: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాల" + } + }, + xMinutes: { + standalone: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాలు" + }, + withPreposition: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాల" + } + }, + aboutXHours: { + standalone: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటలు" + }, + withPreposition: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటల" + } + }, + xHours: { + standalone: { + one: "ఒక గంట", + other: "{{count}} గంటలు" + }, + withPreposition: { + one: "ఒక గంట", + other: "{{count}} గంటల" + } + }, + xDays: { + standalone: { + one: "ఒక రోజు", + other: "{{count}} రోజులు" + }, + withPreposition: { + one: "ఒక రోజు", + other: "{{count}} రోజుల" + } + }, + aboutXWeeks: { + standalone: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలు" + }, + withPreposition: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలల" + } + }, + xWeeks: { + standalone: { + one: "ఒక వారం", + other: "{{count}} వారాలు" + }, + withPreposition: { + one: "ఒక వారం", + other: "{{count}} వారాలల" + } + }, + aboutXMonths: { + standalone: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలలు" + }, + withPreposition: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలల" + } + }, + xMonths: { + standalone: { + one: "ఒక నెల", + other: "{{count}} నెలలు" + }, + withPreposition: { + one: "ఒక నెల", + other: "{{count}} నెలల" + } + }, + aboutXYears: { + standalone: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాలు" + }, + withPreposition: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాల" + } + }, + xYears: { + standalone: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాలు" + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల" + } + }, + overXYears: { + standalone: { + one: "ఒక సంవత్సరం పైగా", + other: "{{count}} సంవత్సరాలకు పైగా" + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల" + } + }, + almostXYears: { + standalone: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాలు" + }, + withPreposition: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాల" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + 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-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/te/_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/te/_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: "పూర్వాహ్నం", + 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 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/te.js +/** +* @category Locales +* @summary Telugu locale +* @language Telugu +* @iso-639-2 tel +* @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) +*/ +var te = { + code: "te", + 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: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/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: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/te/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), {}, { + te: te }) }); + + +//#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/te/cdn.min.js b/node_modules/date-fns/locale/te/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..b0f25c8c0cb1fcd2048b068ce80f8076589f83b0 --- /dev/null +++ b/node_modules/date-fns/locale/te/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-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:`'గత' 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 Number(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:[`ఆది`,`సోమ`,`మంగళ`,`బుధ`,`గురు`,`శుక్ర`,`శని`],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:`te`,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:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/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:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{te: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/th.cjs b/node_modules/date-fns/locale/th.cjs new file mode 100644 index 0000000000000000000000000000000000000000..727a21e401112b1342206a8507657f81beac76e4 --- /dev/null +++ b/node_modules/date-fns/locale/th.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.th = void 0; +var _index = require("./th/_lib/formatDistance.cjs"); +var _index2 = require("./th/_lib/formatLong.cjs"); +var _index3 = require("./th/_lib/formatRelative.cjs"); +var _index4 = require("./th/_lib/localize.cjs"); +var _index5 = require("./th/_lib/match.cjs"); + +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +const th = (exports.th = { + code: "th", + 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/th.d.cts b/node_modules/date-fns/locale/th.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..03d00d052b869c13e5d22c49e0ecfdacc48b74f3 --- /dev/null +++ b/node_modules/date-fns/locale/th.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +export declare const th: Locale; diff --git a/node_modules/date-fns/locale/th.d.ts b/node_modules/date-fns/locale/th.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..03d00d052b869c13e5d22c49e0ecfdacc48b74f3 --- /dev/null +++ b/node_modules/date-fns/locale/th.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +export declare const th: Locale; diff --git a/node_modules/date-fns/locale/th.js b/node_modules/date-fns/locale/th.js new file mode 100644 index 0000000000000000000000000000000000000000..39a50289cd6ba07980795c26999f828959945073 --- /dev/null +++ b/node_modules/date-fns/locale/th.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./th/_lib/formatDistance.js"; +import { formatLong } from "./th/_lib/formatLong.js"; +import { formatRelative } from "./th/_lib/formatRelative.js"; +import { localize } from "./th/_lib/localize.js"; +import { match } from "./th/_lib/match.js"; + +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +export const th = { + code: "th", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default th; diff --git a/node_modules/date-fns/locale/th/_lib/formatDistance.cjs b/node_modules/date-fns/locale/th/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..09e74609246a5997d5d9a58c90318039121766ee --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatDistance.cjs @@ -0,0 +1,109 @@ +"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) { + if (token === "halfAMinute") { + return "ใน" + result; + } else { + return "ใน " + result; + } + } else { + return result + "ที่ผ่านมา"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/th/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/th/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/th/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/formatDistance.js b/node_modules/date-fns/locale/th/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..c010b33260e10e52ac3ed8a4bfa5b463e42b8f17 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatDistance.js @@ -0,0 +1,105 @@ +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) { + if (token === "halfAMinute") { + return "ใน" + result; + } else { + return "ใน " + result; + } + } else { + return result + "ที่ผ่านมา"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/th/_lib/formatLong.cjs b/node_modules/date-fns/locale/th/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..60633d65f480ef19cff41a0efe1666106eea90de --- /dev/null +++ b/node_modules/date-fns/locale/th/_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: "dd/MM/yyyy", +}; + +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: "medium", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/th/_lib/formatLong.d.cts b/node_modules/date-fns/locale/th/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/formatLong.d.ts b/node_modules/date-fns/locale/th/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/formatLong.js b/node_modules/date-fns/locale/th/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..5a62569fdcab3ef8df1032af920bf9dc1d582ed6 --- /dev/null +++ b/node_modules/date-fns/locale/th/_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: "dd/MM/yyyy", +}; + +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: "medium", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/th/_lib/formatRelative.cjs b/node_modules/date-fns/locale/th/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..8419e1ec9e5a3c8d0cd74b66501007dd6c438ac3 --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/th/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/th/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/formatRelative.js b/node_modules/date-fns/locale/th/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..b73deab8d40117e28314921a097eaa03e48b53a4 --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/localize.cjs b/node_modules/date-fns/locale/th/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..d590c2d82bb7cc69a9c6607805cdd6469e2e6de4 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/localize.cjs @@ -0,0 +1,171 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["B", "คศ"], + abbreviated: ["BC", "ค.ศ."], + wide: ["ปีก่อนคริสตกาล", "คริสต์ศักราช"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["ไตรมาสแรก", "ไตรมาสที่สอง", "ไตรมาสที่สาม", "ไตรมาสที่สี่"], +}; + +const dayValues = { + narrow: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + short: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + abbreviated: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + wide: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"], +}; + +const monthValues = { + narrow: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค.", + ], + + 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/th/_lib/localize.d.cts b/node_modules/date-fns/locale/th/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/localize.d.ts b/node_modules/date-fns/locale/th/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/localize.js b/node_modules/date-fns/locale/th/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..66c9b8ab100827abf5476b703fcde3cdf79483b6 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/localize.js @@ -0,0 +1,169 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["B", "คศ"], + abbreviated: ["BC", "ค.ศ."], + wide: ["ปีก่อนคริสตกาล", "คริสต์ศักราช"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["ไตรมาสแรก", "ไตรมาสที่สอง", "ไตรมาสที่สาม", "ไตรมาสที่สี่"], +}; + +const dayValues = { + narrow: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + short: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + abbreviated: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + wide: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"], +}; + +const monthValues = { + narrow: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค.", + ], + + 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/th/_lib/match.cjs b/node_modules/date-fns/locale/th/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..6e09013249f8f5dd3a37d62ec319391a4f86696f --- /dev/null +++ b/node_modules/date-fns/locale/th/_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: /^([bB]|[aA]|คศ)/i, + abbreviated: + /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, + wide: /^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i, +}; +const parseEraPatterns = { + any: [/^[bB]/i, /^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/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: + /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i, + abbreviated: + /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i, + wide: /^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i, +}; +const parseMonthPatterns = { + wide: [ + /^มก/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 = { + 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 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/th/_lib/match.d.cts b/node_modules/date-fns/locale/th/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/match.d.ts b/node_modules/date-fns/locale/th/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/th/_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/th/_lib/match.js b/node_modules/date-fns/locale/th/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..dc1c9500db8506b7a0715032991c1aada4b3257b --- /dev/null +++ b/node_modules/date-fns/locale/th/_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: /^([bB]|[aA]|คศ)/i, + abbreviated: + /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, + wide: /^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i, +}; +const parseEraPatterns = { + any: [/^[bB]/i, /^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/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: + /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i, + abbreviated: + /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i, + wide: /^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i, +}; +const parseMonthPatterns = { + wide: [ + /^มก/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 = { + 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, + }, +}; + +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/th/cdn.js b/node_modules/date-fns/locale/th/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..899c2549be762f90306cfa7652a20ecdccfe48d4 --- /dev/null +++ b/node_modules/date-fns/locale/th/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/th/_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) {if (token === "halfAMinute") return "ใน" + result;else + 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 น. zzzz", + long: "H:mm:ss น. z", + medium: "H:mm:ss น.", + short: "H:mm น." + }, + defaultWidth: "medium" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'เวลา' {{time}}", + long: "{{date}} 'เวลา' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/th/_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/th/_lib/localize.js +var eraValues = { + narrow: ["B", "คศ"], + abbreviated: ["BC", "ค.ศ."], + wide: ["ปีก่อนคริสตกาล", "คริสต์ศักราช"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "ไตรมาสแรก", + "ไตรมาสที่สอง", + "ไตรมาสที่สาม", + "ไตรมาสที่สี่"] + +}; +var dayValues = { + narrow: [ + "อา.", + "จ.", + "อ.", + "พ.", + "พฤ.", + "ศ.", + "ส."], + + short: [ + "อา.", + "จ.", + "อ.", + "พ.", + "พฤ.", + "ศ.", + "ส."], + + abbreviated: [ + "อา.", + "จ.", + "อ.", + "พ.", + "พฤ.", + "ศ.", + "ส."], + + wide: [ + "อาทิตย์", + "จันทร์", + "อังคาร", + "พุธ", + "พฤหัสบดี", + "ศุกร์", + "เสาร์"] + +}; +var monthValues = { + narrow: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค."], + + 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/th.js +/** +* @category Locales +* @summary Thai locale. +* @language Thai +* @iso-639-2 tha +* @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) +* @author [@hawkup](https://github.com/hawkup) +* @author Jirawat I. [@nodtem66](https://github.com/nodtem66) +*/ +var th = { + code: "th", + 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: /^([bB]|[aA]|คศ)/i, + abbreviated: /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, + wide: /^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^[bB]/i, /^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/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: { + wide: [ + /^มก/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: { + wide: [ + /^อา/i, + /^จั/i, + /^อั/i, + /^พุธ/i, + /^พฤ/i, + /^ศ/i, + /^เส/i], + + any: [ + /^อา/i, + /^จ/i, + /^อ/i, + /^พ(?!ฤ)/i, + /^พฤ/i, + /^ศ/i, + /^ส/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { 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: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/th/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), {}, { + th: th }) }); + + +//#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/th/cdn.min.js b/node_modules/date-fns/locale/th/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..3c3ee6d8cc5bca94b0c8f0dd682fd0337665a7fb --- /dev/null +++ b/node_modules/date-fns/locale/th/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?e===`halfAMinute`?`ใน`+r:`ใน `+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:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`H:mm:ss น. zzzz`,long:`H:mm:ss น. z`,medium:`H:mm:ss น.`,short:`H:mm น.`},defaultWidth:`medium`}),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:[`B`,`คศ`],abbreviated:[`BC`,`ค.ศ.`],wide:[`ปีก่อนคริสตกาล`,`คริสต์ศักราช`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`ไตรมาสแรก`,`ไตรมาสที่สอง`,`ไตรมาสที่สาม`,`ไตรมาสที่สี่`]},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:`ก่อนเที่ยง`,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:`th`,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:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/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:{wide:[/^มก/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:{wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{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:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{th: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/tr.cjs b/node_modules/date-fns/locale/tr.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f7c043aec676bc053517569bbc529630c2976c99 --- /dev/null +++ b/node_modules/date-fns/locale/tr.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.tr = void 0; +var _index = require("./tr/_lib/formatDistance.cjs"); +var _index2 = require("./tr/_lib/formatLong.cjs"); +var _index3 = require("./tr/_lib/formatRelative.cjs"); +var _index4 = require("./tr/_lib/localize.cjs"); +var _index5 = require("./tr/_lib/match.cjs"); + +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +const tr = (exports.tr = { + code: "tr", + 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/tr.d.cts b/node_modules/date-fns/locale/tr.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..b66981d3233b8def7b4f3988768ce30ce12fc27f --- /dev/null +++ b/node_modules/date-fns/locale/tr.d.cts @@ -0,0 +1,15 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +export declare const tr: Locale; diff --git a/node_modules/date-fns/locale/tr.d.ts b/node_modules/date-fns/locale/tr.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..b66981d3233b8def7b4f3988768ce30ce12fc27f --- /dev/null +++ b/node_modules/date-fns/locale/tr.d.ts @@ -0,0 +1,15 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +export declare const tr: Locale; diff --git a/node_modules/date-fns/locale/tr.js b/node_modules/date-fns/locale/tr.js new file mode 100644 index 0000000000000000000000000000000000000000..7d227a965aa9b1683df3b1b537f899867012c3cb --- /dev/null +++ b/node_modules/date-fns/locale/tr.js @@ -0,0 +1,34 @@ +import { formatDistance } from "./tr/_lib/formatDistance.js"; +import { formatLong } from "./tr/_lib/formatLong.js"; +import { formatRelative } from "./tr/_lib/formatRelative.js"; +import { localize } from "./tr/_lib/localize.js"; +import { match } from "./tr/_lib/match.js"; + +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +export const tr = { + code: "tr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default tr; diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance.cjs b/node_modules/date-fns/locale/tr/_lib/formatDistance.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e76c9927d02cf8ee28c3638a4a6265d665515cad --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "bir saniyeden az", + other: "{{count}} saniyeden az", + }, + + xSeconds: { + one: "1 saniye", + other: "{{count}} saniye", + }, + + halfAMinute: "yarım dakika", + + lessThanXMinutes: { + one: "bir dakikadan az", + other: "{{count}} dakikadan az", + }, + + xMinutes: { + one: "1 dakika", + other: "{{count}} dakika", + }, + + aboutXHours: { + one: "yaklaşık 1 saat", + other: "yaklaşık {{count}} saat", + }, + + xHours: { + one: "1 saat", + other: "{{count}} saat", + }, + + xDays: { + one: "1 gün", + other: "{{count}} gün", + }, + + aboutXWeeks: { + one: "yaklaşık 1 hafta", + other: "yaklaşık {{count}} hafta", + }, + + xWeeks: { + one: "1 hafta", + other: "{{count}} hafta", + }, + + aboutXMonths: { + one: "yaklaşık 1 ay", + other: "yaklaşık {{count}} ay", + }, + + xMonths: { + one: "1 ay", + other: "{{count}} ay", + }, + + aboutXYears: { + one: "yaklaşık 1 yıl", + other: "yaklaşık {{count}} yıl", + }, + + xYears: { + one: "1 yıl", + other: "{{count}} yıl", + }, + + overXYears: { + one: "1 yıldan fazla", + other: "{{count}} yıldan fazla", + }, + + almostXYears: { + one: "neredeyse 1 yıl", + other: "neredeyse {{count}} yıl", + }, +}; + +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 result + " sonra"; + } else { + return result + " önce"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/tr/_lib/formatDistance.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/tr/_lib/formatDistance.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..abc57772af41e2739d498ea7b1569ff5cc82d94c --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/formatDistance.js b/node_modules/date-fns/locale/tr/_lib/formatDistance.js new file mode 100644 index 0000000000000000000000000000000000000000..9aea4710a1f168ca6e094b3e9e525fa6958285ec --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "bir saniyeden az", + other: "{{count}} saniyeden az", + }, + + xSeconds: { + one: "1 saniye", + other: "{{count}} saniye", + }, + + halfAMinute: "yarım dakika", + + lessThanXMinutes: { + one: "bir dakikadan az", + other: "{{count}} dakikadan az", + }, + + xMinutes: { + one: "1 dakika", + other: "{{count}} dakika", + }, + + aboutXHours: { + one: "yaklaşık 1 saat", + other: "yaklaşık {{count}} saat", + }, + + xHours: { + one: "1 saat", + other: "{{count}} saat", + }, + + xDays: { + one: "1 gün", + other: "{{count}} gün", + }, + + aboutXWeeks: { + one: "yaklaşık 1 hafta", + other: "yaklaşık {{count}} hafta", + }, + + xWeeks: { + one: "1 hafta", + other: "{{count}} hafta", + }, + + aboutXMonths: { + one: "yaklaşık 1 ay", + other: "yaklaşık {{count}} ay", + }, + + xMonths: { + one: "1 ay", + other: "{{count}} ay", + }, + + aboutXYears: { + one: "yaklaşık 1 yıl", + other: "yaklaşık {{count}} yıl", + }, + + xYears: { + one: "1 yıl", + other: "{{count}} yıl", + }, + + overXYears: { + one: "1 yıldan fazla", + other: "{{count}} yıldan fazla", + }, + + almostXYears: { + one: "neredeyse 1 yıl", + other: "neredeyse {{count}} yıl", + }, +}; + +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 result + " sonra"; + } else { + return result + " önce"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/tr/_lib/formatLong.cjs b/node_modules/date-fns/locale/tr/_lib/formatLong.cjs new file mode 100644 index 0000000000000000000000000000000000000000..45054b6bc0cb601d7ebeb6ec855b8c2551971182 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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}} 'saat' {{time}}", + long: "{{date}} 'saat' {{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/tr/_lib/formatLong.d.cts b/node_modules/date-fns/locale/tr/_lib/formatLong.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/formatLong.d.ts b/node_modules/date-fns/locale/tr/_lib/formatLong.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd43c2c73e40039f034fa95b517500332b3ee3a2 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/formatLong.js b/node_modules/date-fns/locale/tr/_lib/formatLong.js new file mode 100644 index 0000000000000000000000000000000000000000..064d93afc10ed48bf61662df6358374fbde5f973 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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}} 'saat' {{time}}", + long: "{{date}} 'saat' {{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/tr/_lib/formatRelative.cjs b/node_modules/date-fns/locale/tr/_lib/formatRelative.cjs new file mode 100644 index 0000000000000000000000000000000000000000..e7c351155fb7d55c4e9cbc4c434193830fec6671 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'geçen hafta' eeee 'saat' p", + yesterday: "'dün saat' p", + today: "'bugün saat' p", + tomorrow: "'yarın saat' p", + nextWeek: "eeee 'saat' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/tr/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/tr/_lib/formatRelative.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/tr/_lib/formatRelative.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4cb3cde5f1e8826b1766aef7702efb4c744b6f --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/formatRelative.js b/node_modules/date-fns/locale/tr/_lib/formatRelative.js new file mode 100644 index 0000000000000000000000000000000000000000..3c6336d408218268a36a23c50e0398ea61255bc3 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'geçen hafta' eeee 'saat' p", + yesterday: "'dün saat' p", + today: "'bugün saat' p", + tomorrow: "'yarın saat' p", + nextWeek: "eeee 'saat' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/tr/_lib/localize.cjs b/node_modules/date-fns/locale/tr/_lib/localize.cjs new file mode 100644 index 0000000000000000000000000000000000000000..9109c386a37eee9e43ed975d6086f106cd71cf01 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/localize.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["MÖ", "MS"], + abbreviated: ["MÖ", "MS"], + wide: ["Milattan Önce", "Milattan Sonra"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1Ç", "2Ç", "3Ç", "4Ç"], + wide: ["İlk çeyrek", "İkinci Çeyrek", "Üçüncü çeyrek", "Son çeyrek"], +}; + +const monthValues = { + narrow: ["O", "Ş", "M", "N", "M", "H", "T", "A", "E", "E", "K", "A"], + abbreviated: [ + "Oca", + "Şub", + "Mar", + "Nis", + "May", + "Haz", + "Tem", + "Ağu", + "Eyl", + "Eki", + "Kas", + "Ara", + ], + + wide: [ + "Ocak", + "Şubat", + "Mart", + "Nisan", + "Mayıs", + "Haziran", + "Temmuz", + "Ağustos", + "Eylül", + "Ekim", + "Kasım", + "Aralık", + ], +}; + +const dayValues = { + narrow: ["P", "P", "S", "Ç", "P", "C", "C"], + short: ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], + abbreviated: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cts"], + wide: [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge", + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece", + }, + wide: { + am: "Ö.Ö.", + pm: "Ö.S.", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge", + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin", + }, + wide: { + am: "ö.ö.", + pm: "ö.s.", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin", + }, +}; + +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) => 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/tr/_lib/localize.d.cts b/node_modules/date-fns/locale/tr/_lib/localize.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/localize.d.ts b/node_modules/date-fns/locale/tr/_lib/localize.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..8a11c696fa3c2f3a1df4f54a3ba4ac7ee78a272e --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/localize.js b/node_modules/date-fns/locale/tr/_lib/localize.js new file mode 100644 index 0000000000000000000000000000000000000000..bb9edf0a0ec1b68209476b0a36ea9aaf8cdaa0e8 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["MÖ", "MS"], + abbreviated: ["MÖ", "MS"], + wide: ["Milattan Önce", "Milattan Sonra"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1Ç", "2Ç", "3Ç", "4Ç"], + wide: ["İlk çeyrek", "İkinci Çeyrek", "Üçüncü çeyrek", "Son çeyrek"], +}; + +const monthValues = { + narrow: ["O", "Ş", "M", "N", "M", "H", "T", "A", "E", "E", "K", "A"], + abbreviated: [ + "Oca", + "Şub", + "Mar", + "Nis", + "May", + "Haz", + "Tem", + "Ağu", + "Eyl", + "Eki", + "Kas", + "Ara", + ], + + wide: [ + "Ocak", + "Şubat", + "Mart", + "Nisan", + "Mayıs", + "Haziran", + "Temmuz", + "Ağustos", + "Eylül", + "Ekim", + "Kasım", + "Aralık", + ], +}; + +const dayValues = { + narrow: ["P", "P", "S", "Ç", "P", "C", "C"], + short: ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], + abbreviated: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cts"], + wide: [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge", + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece", + }, + wide: { + am: "Ö.Ö.", + pm: "Ö.S.", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge", + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin", + }, + wide: { + am: "ö.ö.", + pm: "ö.s.", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin", + }, +}; + +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) => 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/tr/_lib/match.cjs b/node_modules/date-fns/locale/tr/_lib/match.cjs new file mode 100644 index 0000000000000000000000000000000000000000..f7f93e05628494c282e23bb19767b563501d0f78 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/match.cjs @@ -0,0 +1,153 @@ +"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: /^(mö|ms)/i, + abbreviated: /^(mö|ms)/i, + wide: /^(milattan önce|milattan sonra)/i, +}; +const parseEraPatterns = { + any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]ç/i, + wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], + abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i], + wide: [ + /^(i|İ)lk çeyrek/i, + /(i|İ)kinci çeyrek/i, + /üçüncü çeyrek/i, + /son çeyrek/i, + ], +}; + +const matchMonthPatterns = { + narrow: /^[oşmnhtaek]/i, + abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, + wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^o/i, + /^ş/i, + /^m/i, + /^n/i, + /^m/i, + /^h/i, + /^t/i, + /^a/i, + /^e/i, + /^e/i, + /^k/i, + /^a/i, + ], + + any: [ + /^o/i, + /^ş/i, + /^mar/i, + /^n/i, + /^may/i, + /^h/i, + /^t/i, + /^ağ/i, + /^ey/i, + /^ek/i, + /^k/i, + /^ar/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[psçc]/i, + short: /^(pz|pt|sa|ça|pe|cu|ct)/i, + abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i, + wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i, +}; +const parseDayPatterns = { + narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i], + any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i], + wide: [ + /^pazar(?!tesi)/i, + /^pazartesi/i, + /^salı/i, + /^çarşamba/i, + /^perşembe/i, + /^cuma(?!rtesi)/i, + /^cumartesi/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, + any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ö\.?ö\.?/i, + pm: /^ö\.?s\.?/i, + midnight: /^(gy|gece yarısı)/i, + noon: /^öğ/i, + morning: /^sa/i, + afternoon: /^öğleden sonra/i, + evening: /^ak/i, + night: /^ge/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return 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/tr/_lib/match.d.cts b/node_modules/date-fns/locale/tr/_lib/match.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/match.d.ts b/node_modules/date-fns/locale/tr/_lib/match.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9076cb82e55f3eb34a48a256a67157964b99859 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_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/tr/_lib/match.js b/node_modules/date-fns/locale/tr/_lib/match.js new file mode 100644 index 0000000000000000000000000000000000000000..99c6121211a672bea1f680717337265ae4902317 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/match.js @@ -0,0 +1,150 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(mö|ms)/i, + abbreviated: /^(mö|ms)/i, + wide: /^(milattan önce|milattan sonra)/i, +}; +const parseEraPatterns = { + any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]ç/i, + wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], + abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i], + wide: [ + /^(i|İ)lk çeyrek/i, + /(i|İ)kinci çeyrek/i, + /üçüncü çeyrek/i, + /son çeyrek/i, + ], +}; + +const matchMonthPatterns = { + narrow: /^[oşmnhtaek]/i, + abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, + wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^o/i, + /^ş/i, + /^m/i, + /^n/i, + /^m/i, + /^h/i, + /^t/i, + /^a/i, + /^e/i, + /^e/i, + /^k/i, + /^a/i, + ], + + any: [ + /^o/i, + /^ş/i, + /^mar/i, + /^n/i, + /^may/i, + /^h/i, + /^t/i, + /^ağ/i, + /^ey/i, + /^ek/i, + /^k/i, + /^ar/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[psçc]/i, + short: /^(pz|pt|sa|ça|pe|cu|ct)/i, + abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i, + wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i, +}; +const parseDayPatterns = { + narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i], + any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i], + wide: [ + /^pazar(?!tesi)/i, + /^pazartesi/i, + /^salı/i, + /^çarşamba/i, + /^perşembe/i, + /^cuma(?!rtesi)/i, + /^cumartesi/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, + any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ö\.?ö\.?/i, + pm: /^ö\.?s\.?/i, + midnight: /^(gy|gece yarısı)/i, + noon: /^öğ/i, + morning: /^sa/i, + afternoon: /^öğleden sonra/i, + evening: /^ak/i, + night: /^ge/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/tr/cdn.js b/node_modules/date-fns/locale/tr/cdn.js new file mode 100644 index 0000000000000000000000000000000000000000..81b44e1e89a4c61453430c6a1b573047e2d316fc --- /dev/null +++ b/node_modules/date-fns/locale/tr/cdn.js @@ -0,0 +1,604 @@ +(() => { +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/tr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "bir saniyeden az", + other: "{{count}} saniyeden az" + }, + xSeconds: { + one: "1 saniye", + other: "{{count}} saniye" + }, + halfAMinute: "yarım dakika", + lessThanXMinutes: { + one: "bir dakikadan az", + other: "{{count}} dakikadan az" + }, + xMinutes: { + one: "1 dakika", + other: "{{count}} dakika" + }, + aboutXHours: { + one: "yaklaşık 1 saat", + other: "yaklaşık {{count}} saat" + }, + xHours: { + one: "1 saat", + other: "{{count}} saat" + }, + xDays: { + one: "1 gün", + other: "{{count}} gün" + }, + aboutXWeeks: { + one: "yaklaşık 1 hafta", + other: "yaklaşık {{count}} hafta" + }, + xWeeks: { + one: "1 hafta", + other: "{{count}} hafta" + }, + aboutXMonths: { + one: "yaklaşık 1 ay", + other: "yaklaşık {{count}} ay" + }, + xMonths: { + one: "1 ay", + other: "{{count}} ay" + }, + aboutXYears: { + one: "yaklaşık 1 yıl", + other: "yaklaşık {{count}} yıl" + }, + xYears: { + one: "1 yıl", + other: "{{count}} yıl" + }, + overXYears: { + one: "1 yıldan fazla", + other: "{{count}} yıldan fazla" + }, + almostXYears: { + one: "neredeyse 1 yıl", + other: "neredeyse {{count}} yıl" + } +}; +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 result + " sonra";else + return result + " önce"; + 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}} 'saat' {{time}}", + long: "{{date}} 'saat' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/tr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'geçen hafta' eeee 'saat' p", + yesterday: "'dün saat' p", + today: "'bugün saat' p", + tomorrow: "'yarın saat' p", + nextWeek: "eeee 'saat' 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/tr/_lib/localize.js +var eraValues = { + narrow: ["MÖ", "MS"], + abbreviated: ["MÖ", "MS"], + wide: ["Milattan Önce", "Milattan Sonra"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1Ç", + "2Ç", + "3Ç", + "4Ç"], + + wide: [ + "İlk çeyrek", + "İkinci Çeyrek", + "Üçüncü çeyrek", + "Son çeyrek"] + +}; +var monthValues = { + narrow: [ + "O", + "Ş", + "M", + "N", + "M", + "H", + "T", + "A", + "E", + "E", + "K", + "A"], + + abbreviated: [ + "Oca", + "Şub", + "Mar", + "Nis", + "May", + "Haz", + "Tem", + "Ağu", + "Eyl", + "Eki", + "Kas", + "Ara"], + + wide: [ + "Ocak", + "Şubat", + "Mart", + "Nisan", + "Mayıs", + "Haziran", + "Temmuz", + "Ağustos", + "Eylül", + "Ekim", + "Kasım", + "Aralık"] + +}; +var dayValues = { + narrow: [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C"], + + short: [ + "Pz", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct"], + + abbreviated: [ + "Paz", + "Pzt", + "Sal", + "Çar", + "Per", + "Cum", + "Cts"], + + wide: [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi"] + +}; +var dayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge" + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece" + }, + wide: { + am: "Ö.Ö.", + pm: "Ö.S.", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge" + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin" + }, + wide: { + am: "ö.ö.", + pm: "ö.s.", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin" + } +}; +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/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/tr.js +/** +* @category Locales +* @summary Turkish locale. +* @language Turkish +* @iso-639-2 tur +* @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) +* @author Berkay Sargın [@berkaey](https://github.com/berkaey) +* @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) +* @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) +* @author İsmail Kayar [@ikayar](https://github.com/ikayar) +* +* +*/ +var tr = { + code: "tr", + 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: /^(mö|ms)/i, + abbreviated: /^(mö|ms)/i, + wide: /^(milattan önce|milattan sonra)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]ç/i, + wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [ + /1/i, + /2/i, + /3/i, + /4/i], + + abbreviated: [ + /1ç/i, + /2ç/i, + /3ç/i, + /4ç/i], + + wide: [ + /^(i|İ)lk çeyrek/i, + /(i|İ)kinci çeyrek/i, + /üçüncü çeyrek/i, + /son çeyrek/i] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[oşmnhtaek]/i, + abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, + wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^o/i, + /^ş/i, + /^m/i, + /^n/i, + /^m/i, + /^h/i, + /^t/i, + /^a/i, + /^e/i, + /^e/i, + /^k/i, + /^a/i], + + any: [ + /^o/i, + /^ş/i, + /^mar/i, + /^n/i, + /^may/i, + /^h/i, + /^t/i, + /^ağ/i, + /^ey/i, + /^ek/i, + /^k/i, + /^ar/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[psçc]/i, + short: /^(pz|pt|sa|ça|pe|cu|ct)/i, + abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i, + wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^p/i, + /^p/i, + /^s/i, + /^ç/i, + /^p/i, + /^c/i, + /^c/i], + + any: [ + /^pz/i, + /^pt/i, + /^sa/i, + /^ça/i, + /^pe/i, + /^cu/i, + /^ct/i], + + wide: [ + /^pazar(?!tesi)/i, + /^pazartesi/i, + /^salı/i, + /^çarşamba/i, + /^perşembe/i, + /^cuma(?!rtesi)/i, + /^cumartesi/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, + any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ö\.?ö\.?/i, + pm: /^ö\.?s\.?/i, + midnight: /^(gy|gece yarısı)/i, + noon: /^öğ/i, + morning: /^sa/i, + afternoon: /^öğleden sonra/i, + evening: /^ak/i, + night: /^ge/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/tr/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), {}, { + tr: tr }) }); + + +//#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/tr/cdn.min.js b/node_modules/date-fns/locale/tr/cdn.min.js new file mode 100644 index 0000000000000000000000000000000000000000..8f03d6504eccc4ccae1c0ec6d1817739d7e3f222 --- /dev/null +++ b/node_modules/date-fns/locale/tr/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+` sonra`:r+` önce`: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}} 'saat' {{time}}`,long:`{{date}} 'saat' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'geçen hafta' eeee 'saat' p`,yesterday:`'dün saat' p`,today:`'bugün saat' p`,tomorrow:`'yarın saat' p`,nextWeek:`eeee 'saat' 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)+`.`},era:f({values:{narrow:[`MÖ`,`MS`],abbreviated:[`MÖ`,`MS`],wide:[`Milattan Önce`,`Milattan Sonra`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1Ç`,`2Ç`,`3Ç`,`4Ç`],wide:[`İlk çeyrek`,`İkinci Çeyrek`,`Üçüncü çeyrek`,`Son çeyrek`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`O`,`Ş`,`M`,`N`,`M`,`H`,`T`,`A`,`E`,`E`,`K`,`A`],abbreviated:[`Oca`,`Şub`,`Mar`,`Nis`,`May`,`Haz`,`Tem`,`Ağu`,`Eyl`,`Eki`,`Kas`,`Ara`],wide:[`Ocak`,`Şubat`,`Mart`,`Nisan`,`Mayıs`,`Haziran`,`Temmuz`,`Ağustos`,`Eylül`,`Ekim`,`Kasım`,`Aralık`]},defaultWidth:`wide`}),day:f({values:{narrow:[`P`,`P`,`S`,`Ç`,`P`,`C`,`C`],short:[`Pz`,`Pt`,`Sa`,`Ça`,`Pe`,`Cu`,`Ct`],abbreviated:[`Paz`,`Pzt`,`Sal`,`Çar`,`Per`,`Cum`,`Cts`],wide:[`Pazar`,`Pazartesi`,`Salı`,`Çarşamba`,`Perşembe`,`Cuma`,`Cumartesi`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`öö`,pm:`ös`,midnight:`gy`,noon:`ö`,morning:`sa`,afternoon:`ös`,evening:`ak`,night:`ge`},abbreviated:{am:`ÖÖ`,pm:`ÖS`,midnight:`gece yarısı`,noon:`öğle`,morning:`sabah`,afternoon:`öğleden sonra`,evening:`akşam`,night:`gece`},wide:{am:`Ö.Ö.`,pm:`Ö.S.`,midnight:`gece yarısı`,noon:`öğle`,morning:`sabah`,afternoon:`öğleden sonra`,evening:`akşam`,night:`gece`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`öö`,pm:`ös`,midnight:`gy`,noon:`ö`,morning:`sa`,afternoon:`ös`,evening:`ak`,night:`ge`},abbreviated:{am:`ÖÖ`,pm:`ÖS`,midnight:`gece yarısı`,noon:`öğlen`,morning:`sabahleyin`,afternoon:`öğleden sonra`,evening:`akşamleyin`,night:`geceleyin`},wide:{am:`ö.ö.`,pm:`ö.s.`,midnight:`gece yarısı`,noon:`öğlen`,morning:`sabahleyin`,afternoon:`öğleden sonra`,evening:`akşamleyin`,night:`geceleyin`}},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:`tr`,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:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{tr: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/types.cjs b/node_modules/date-fns/locale/types.cjs new file mode 100644 index 0000000000000000000000000000000000000000..3918c74e446336be4151ea3bdad00f4d9e6df47a --- /dev/null +++ b/node_modules/date-fns/locale/types.cjs @@ -0,0 +1 @@ +"use strict"; diff --git a/node_modules/date-fns/locale/types.d.cts b/node_modules/date-fns/locale/types.d.cts new file mode 100644 index 0000000000000000000000000000000000000000..4c74aa9072dc83fe0530885960d8e90d9efe5340 --- /dev/null +++ b/node_modules/date-fns/locale/types.d.cts @@ -0,0 +1,367 @@ +import type { + DateArg, + Day, + Era, + FirstWeekContainsDateOptions, + LocalizedOptions, + Month, + Quarter, + WeekOptions, +} from "../types.ts"; +/** + * The locale object with all functions and data needed to parse and format + * dates. This is what each locale implements and exports. + */ +export interface Locale { + /** The locale code (ISO 639-1 + optional country code) */ + code: string; + /** The function to format distance */ + formatDistance: FormatDistanceFn; + /** The function to relative time */ + formatRelative: FormatRelativeFn; + /** The object with functions used to localize various values */ + localize: Localize; + /** The object with functions that return localized formats */ + formatLong: FormatLong; + /** The object with functions used to match and parse various localized values */ + match: Match; + /** An object with locale options */ + options?: LocaleOptions; +} +/** + * The locale options. + */ +export interface LocaleOptions + extends WeekOptions, + FirstWeekContainsDateOptions {} +/** + * The function that takes a token (i.e. halfAMinute) passed by `formatDistance` + * or `formatDistanceStrict` and payload, and returns localized distance. + * + * @param token - The token to localize + * @param count - The distance number + * @param options - The object with options + * + * @returns The localized distance in words + */ +export type FormatDistanceFn = ( + token: FormatDistanceToken, + count: number, + options?: FormatDistanceFnOptions, +) => string; +/** + * The {@link FormatDistanceFn} function options. + */ +export interface FormatDistanceFnOptions { + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; + /** The distance vector. -1 represents past and 1 future. Tells which suffix + * to use. */ + comparison?: -1 | 0 | 1; +} +/** + * The function used inside the {@link FormatDistanceFn} function, implementing + * formatting for a particular token. + */ +export type FormatDistanceTokenFn = ( + /** The distance as number to format */ + count: number, + /** The object with options */ + options?: FormatDistanceFnOptions, +) => string; +/** + * The tokens map to string templates used in the format distance function. + * It looks like this: + * + * const formatDistanceLocale: FormatDistanceLocale = { + * lessThanXSeconds: 'តិចជាង {{count}} វិនាទី', + * xSeconds: '{{count}} វិនាទី', + * // ... + * } + * + * @typeParam Template - The property value type. + */ +export type FormatDistanceLocale