till download files, everything works
This commit is contained in:
1 parent
ce893a4185
commit
ed1a580b09
6050 files changed
+768543
-177
No files matched your search
+324
@@ -0,0 +1,324 @@
|
||||
"use strict";
|
||||
exports.formatDistance = void 0;
|
||||
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
one: {
|
||||
regular: "méně než 1 sekunda",
|
||||
past: "před méně než 1 sekundou",
|
||||
future: "za méně než 1 sekundu",
|
||||
},
|
||||
few: {
|
||||
regular: "méně než {{count}} sekundy",
|
||||
past: "před méně než {{count}} sekundami",
|
||||
future: "za méně než {{count}} sekundy",
|
||||
},
|
||||
many: {
|
||||
regular: "méně než {{count}} sekund",
|
||||
past: "před méně než {{count}} sekundami",
|
||||
future: "za méně než {{count}} sekund",
|
||||
},
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
one: {
|
||||
regular: "1 sekunda",
|
||||
past: "před 1 sekundou",
|
||||
future: "za 1 sekundu",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} sekundy",
|
||||
past: "před {{count}} sekundami",
|
||||
future: "za {{count}} sekundy",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} sekund",
|
||||
past: "před {{count}} sekundami",
|
||||
future: "za {{count}} sekund",
|
||||
},
|
||||
},
|
||||
|
||||
halfAMinute: {
|
||||
type: "other",
|
||||
other: {
|
||||
regular: "půl minuty",
|
||||
past: "před půl minutou",
|
||||
future: "za půl minuty",
|
||||
},
|
||||
},
|
||||
|
||||
lessThanXMinutes: {
|
||||
one: {
|
||||
regular: "méně než 1 minuta",
|
||||
past: "před méně než 1 minutou",
|
||||
future: "za méně než 1 minutu",
|
||||
},
|
||||
few: {
|
||||
regular: "méně než {{count}} minuty",
|
||||
past: "před méně než {{count}} minutami",
|
||||
future: "za méně než {{count}} minuty",
|
||||
},
|
||||
many: {
|
||||
regular: "méně než {{count}} minut",
|
||||
past: "před méně než {{count}} minutami",
|
||||
future: "za méně než {{count}} minut",
|
||||
},
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
one: {
|
||||
regular: "1 minuta",
|
||||
past: "před 1 minutou",
|
||||
future: "za 1 minutu",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} minuty",
|
||||
past: "před {{count}} minutami",
|
||||
future: "za {{count}} minuty",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} minut",
|
||||
past: "před {{count}} minutami",
|
||||
future: "za {{count}} minut",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
one: {
|
||||
regular: "přibližně 1 hodina",
|
||||
past: "přibližně před 1 hodinou",
|
||||
future: "přibližně za 1 hodinu",
|
||||
},
|
||||
few: {
|
||||
regular: "přibližně {{count}} hodiny",
|
||||
past: "přibližně před {{count}} hodinami",
|
||||
future: "přibližně za {{count}} hodiny",
|
||||
},
|
||||
many: {
|
||||
regular: "přibližně {{count}} hodin",
|
||||
past: "přibližně před {{count}} hodinami",
|
||||
future: "přibližně za {{count}} hodin",
|
||||
},
|
||||
},
|
||||
|
||||
xHours: {
|
||||
one: {
|
||||
regular: "1 hodina",
|
||||
past: "před 1 hodinou",
|
||||
future: "za 1 hodinu",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} hodiny",
|
||||
past: "před {{count}} hodinami",
|
||||
future: "za {{count}} hodiny",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} hodin",
|
||||
past: "před {{count}} hodinami",
|
||||
future: "za {{count}} hodin",
|
||||
},
|
||||
},
|
||||
|
||||
xDays: {
|
||||
one: {
|
||||
regular: "1 den",
|
||||
past: "před 1 dnem",
|
||||
future: "za 1 den",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} dny",
|
||||
past: "před {{count}} dny",
|
||||
future: "za {{count}} dny",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} dní",
|
||||
past: "před {{count}} dny",
|
||||
future: "za {{count}} dní",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXWeeks: {
|
||||
one: {
|
||||
regular: "přibližně 1 týden",
|
||||
past: "přibližně před 1 týdnem",
|
||||
future: "přibližně za 1 týden",
|
||||
},
|
||||
|
||||
few: {
|
||||
regular: "přibližně {{count}} týdny",
|
||||
past: "přibližně před {{count}} týdny",
|
||||
future: "přibližně za {{count}} týdny",
|
||||
},
|
||||
|
||||
many: {
|
||||
regular: "přibližně {{count}} týdnů",
|
||||
past: "přibližně před {{count}} týdny",
|
||||
future: "přibližně za {{count}} týdnů",
|
||||
},
|
||||
},
|
||||
|
||||
xWeeks: {
|
||||
one: {
|
||||
regular: "1 týden",
|
||||
past: "před 1 týdnem",
|
||||
future: "za 1 týden",
|
||||
},
|
||||
|
||||
few: {
|
||||
regular: "{{count}} týdny",
|
||||
past: "před {{count}} týdny",
|
||||
future: "za {{count}} týdny",
|
||||
},
|
||||
|
||||
many: {
|
||||
regular: "{{count}} týdnů",
|
||||
past: "před {{count}} týdny",
|
||||
future: "za {{count}} týdnů",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXMonths: {
|
||||
one: {
|
||||
regular: "přibližně 1 měsíc",
|
||||
past: "přibližně před 1 měsícem",
|
||||
future: "přibližně za 1 měsíc",
|
||||
},
|
||||
|
||||
few: {
|
||||
regular: "přibližně {{count}} měsíce",
|
||||
past: "přibližně před {{count}} měsíci",
|
||||
future: "přibližně za {{count}} měsíce",
|
||||
},
|
||||
|
||||
many: {
|
||||
regular: "přibližně {{count}} měsíců",
|
||||
past: "přibližně před {{count}} měsíci",
|
||||
future: "přibližně za {{count}} měsíců",
|
||||
},
|
||||
},
|
||||
|
||||
xMonths: {
|
||||
one: {
|
||||
regular: "1 měsíc",
|
||||
past: "před 1 měsícem",
|
||||
future: "za 1 měsíc",
|
||||
},
|
||||
|
||||
few: {
|
||||
regular: "{{count}} měsíce",
|
||||
past: "před {{count}} měsíci",
|
||||
future: "za {{count}} měsíce",
|
||||
},
|
||||
|
||||
many: {
|
||||
regular: "{{count}} měsíců",
|
||||
past: "před {{count}} měsíci",
|
||||
future: "za {{count}} měsíců",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXYears: {
|
||||
one: {
|
||||
regular: "přibližně 1 rok",
|
||||
past: "přibližně před 1 rokem",
|
||||
future: "přibližně za 1 rok",
|
||||
},
|
||||
few: {
|
||||
regular: "přibližně {{count}} roky",
|
||||
past: "přibližně před {{count}} roky",
|
||||
future: "přibližně za {{count}} roky",
|
||||
},
|
||||
many: {
|
||||
regular: "přibližně {{count}} roků",
|
||||
past: "přibližně před {{count}} roky",
|
||||
future: "přibližně za {{count}} roků",
|
||||
},
|
||||
},
|
||||
|
||||
xYears: {
|
||||
one: {
|
||||
regular: "1 rok",
|
||||
past: "před 1 rokem",
|
||||
future: "za 1 rok",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} roky",
|
||||
past: "před {{count}} roky",
|
||||
future: "za {{count}} roky",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} roků",
|
||||
past: "před {{count}} roky",
|
||||
future: "za {{count}} roků",
|
||||
},
|
||||
},
|
||||
|
||||
overXYears: {
|
||||
one: {
|
||||
regular: "více než 1 rok",
|
||||
past: "před více než 1 rokem",
|
||||
future: "za více než 1 rok",
|
||||
},
|
||||
few: {
|
||||
regular: "více než {{count}} roky",
|
||||
past: "před více než {{count}} roky",
|
||||
future: "za více než {{count}} roky",
|
||||
},
|
||||
many: {
|
||||
regular: "více než {{count}} roků",
|
||||
past: "před více než {{count}} roky",
|
||||
future: "za více než {{count}} roků",
|
||||
},
|
||||
},
|
||||
|
||||
almostXYears: {
|
||||
one: {
|
||||
regular: "skoro 1 rok",
|
||||
past: "skoro před 1 rokem",
|
||||
future: "skoro za 1 rok",
|
||||
},
|
||||
few: {
|
||||
regular: "skoro {{count}} roky",
|
||||
past: "skoro před {{count}} roky",
|
||||
future: "skoro za {{count}} roky",
|
||||
},
|
||||
many: {
|
||||
regular: "skoro {{count}} roků",
|
||||
past: "skoro před {{count}} roky",
|
||||
future: "skoro za {{count}} roků",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const formatDistance = (token, count, options) => {
|
||||
let pluralResult;
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
|
||||
// cs pluralization
|
||||
if (tokenValue.type === "other") {
|
||||
pluralResult = tokenValue.other;
|
||||
} else if (count === 1) {
|
||||
pluralResult = tokenValue.one;
|
||||
} else if (count > 1 && count < 5) {
|
||||
pluralResult = tokenValue.few;
|
||||
} else {
|
||||
pluralResult = tokenValue.many;
|
||||
}
|
||||
|
||||
// times
|
||||
const suffixExist = options?.addSuffix === true;
|
||||
const comparison = options?.comparison;
|
||||
|
||||
let timeResult;
|
||||
if (suffixExist && comparison === -1) {
|
||||
timeResult = pluralResult.past;
|
||||
} else if (suffixExist && comparison === 1) {
|
||||
timeResult = pluralResult.future;
|
||||
} else {
|
||||
timeResult = pluralResult.regular;
|
||||
}
|
||||
|
||||
return timeResult.replace("{{count}}", String(count));
|
||||
};
|
||||
exports.formatDistance = formatDistance;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
+320
@@ -0,0 +1,320 @@
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
one: {
|
||||
regular: "méně než 1 sekunda",
|
||||
past: "před méně než 1 sekundou",
|
||||
future: "za méně než 1 sekundu",
|
||||
},
|
||||
few: {
|
||||
regular: "méně než {{count}} sekundy",
|
||||
past: "před méně než {{count}} sekundami",
|
||||
future: "za méně než {{count}} sekundy",
|
||||
},
|
||||
many: {
|
||||
regular: "méně než {{count}} sekund",
|
||||
past: "před méně než {{count}} sekundami",
|
||||
future: "za méně než {{count}} sekund",
|
||||
},
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
one: {
|
||||
regular: "1 sekunda",
|
||||
past: "před 1 sekundou",
|
||||
future: "za 1 sekundu",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} sekundy",
|
||||
past: "před {{count}} sekundami",
|
||||
future: "za {{count}} sekundy",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} sekund",
|
||||
past: "před {{count}} sekundami",
|
||||
future: "za {{count}} sekund",
|
||||
},
|
||||
},
|
||||
|
||||
halfAMinute: {
|
||||
type: "other",
|
||||
other: {
|
||||
regular: "půl minuty",
|
||||
past: "před půl minutou",
|
||||
future: "za půl minuty",
|
||||
},
|
||||
},
|
||||
|
||||
lessThanXMinutes: {
|
||||
one: {
|
||||
regular: "méně než 1 minuta",
|
||||
past: "před méně než 1 minutou",
|
||||
future: "za méně než 1 minutu",
|
||||
},
|
||||
few: {
|
||||
regular: "méně než {{count}} minuty",
|
||||
past: "před méně než {{count}} minutami",
|
||||
future: "za méně než {{count}} minuty",
|
||||
},
|
||||
many: {
|
||||
regular: "méně než {{count}} minut",
|
||||
past: "před méně než {{count}} minutami",
|
||||
future: "za méně než {{count}} minut",
|
||||
},
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
one: {
|
||||
regular: "1 minuta",
|
||||
past: "před 1 minutou",
|
||||
future: "za 1 minutu",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} minuty",
|
||||
past: "před {{count}} minutami",
|
||||
future: "za {{count}} minuty",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} minut",
|
||||
past: "před {{count}} minutami",
|
||||
future: "za {{count}} minut",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
one: {
|
||||
regular: "přibližně 1 hodina",
|
||||
past: "přibližně před 1 hodinou",
|
||||
future: "přibližně za 1 hodinu",
|
||||
},
|
||||
few: {
|
||||
regular: "přibližně {{count}} hodiny",
|
||||
past: "přibližně před {{count}} hodinami",
|
||||
future: "přibližně za {{count}} hodiny",
|
||||
},
|
||||
many: {
|
||||
regular: "přibližně {{count}} hodin",
|
||||
past: "přibližně před {{count}} hodinami",
|
||||
future: "přibližně za {{count}} hodin",
|
||||
},
|
||||
},
|
||||
|
||||
xHours: {
|
||||
one: {
|
||||
regular: "1 hodina",
|
||||
past: "před 1 hodinou",
|
||||
future: "za 1 hodinu",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} hodiny",
|
||||
past: "před {{count}} hodinami",
|
||||
future: "za {{count}} hodiny",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} hodin",
|
||||
past: "před {{count}} hodinami",
|
||||
future: "za {{count}} hodin",
|
||||
},
|
||||
},
|
||||
|
||||
xDays: {
|
||||
one: {
|
||||
regular: "1 den",
|
||||
past: "před 1 dnem",
|
||||
future: "za 1 den",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} dny",
|
||||
past: "před {{count}} dny",
|
||||
future: "za {{count}} dny",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} dní",
|
||||
past: "před {{count}} dny",
|
||||
future: "za {{count}} dní",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXWeeks: {
|
||||
one: {
|
||||
regular: "přibližně 1 týden",
|
||||
past: "přibližně před 1 týdnem",
|
||||
future: "přibližně za 1 týden",
|
||||
},
|
||||
|
||||
few: {
|
||||
regular: "přibližně {{count}} týdny",
|
||||
past: "přibližně před {{count}} týdny",
|
||||
future: "přibližně za {{count}} týdny",
|
||||
},
|
||||
|
||||
many: {
|
||||
regular: "přibližně {{count}} týdnů",
|
||||
past: "přibližně před {{count}} týdny",
|
||||
future: "přibližně za {{count}} týdnů",
|
||||
},
|
||||
},
|
||||
|
||||
xWeeks: {
|
||||
one: {
|
||||
regular: "1 týden",
|
||||
past: "před 1 týdnem",
|
||||
future: "za 1 týden",
|
||||
},
|
||||
|
||||
few: {
|
||||
regular: "{{count}} týdny",
|
||||
past: "před {{count}} týdny",
|
||||
future: "za {{count}} týdny",
|
||||
},
|
||||
|
||||
many: {
|
||||
regular: "{{count}} týdnů",
|
||||
past: "před {{count}} týdny",
|
||||
future: "za {{count}} týdnů",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXMonths: {
|
||||
one: {
|
||||
regular: "přibližně 1 měsíc",
|
||||
past: "přibližně před 1 měsícem",
|
||||
future: "přibližně za 1 měsíc",
|
||||
},
|
||||
|
||||
few: {
|
||||
regular: "přibližně {{count}} měsíce",
|
||||
past: "přibližně před {{count}} měsíci",
|
||||
future: "přibližně za {{count}} měsíce",
|
||||
},
|
||||
|
||||
many: {
|
||||
regular: "přibližně {{count}} měsíců",
|
||||
past: "přibližně před {{count}} měsíci",
|
||||
future: "přibližně za {{count}} měsíců",
|
||||
},
|
||||
},
|
||||
|
||||
xMonths: {
|
||||
one: {
|
||||
regular: "1 měsíc",
|
||||
past: "před 1 měsícem",
|
||||
future: "za 1 měsíc",
|
||||
},
|
||||
|
||||
few: {
|
||||
regular: "{{count}} měsíce",
|
||||
past: "před {{count}} měsíci",
|
||||
future: "za {{count}} měsíce",
|
||||
},
|
||||
|
||||
many: {
|
||||
regular: "{{count}} měsíců",
|
||||
past: "před {{count}} měsíci",
|
||||
future: "za {{count}} měsíců",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXYears: {
|
||||
one: {
|
||||
regular: "přibližně 1 rok",
|
||||
past: "přibližně před 1 rokem",
|
||||
future: "přibližně za 1 rok",
|
||||
},
|
||||
few: {
|
||||
regular: "přibližně {{count}} roky",
|
||||
past: "přibližně před {{count}} roky",
|
||||
future: "přibližně za {{count}} roky",
|
||||
},
|
||||
many: {
|
||||
regular: "přibližně {{count}} roků",
|
||||
past: "přibližně před {{count}} roky",
|
||||
future: "přibližně za {{count}} roků",
|
||||
},
|
||||
},
|
||||
|
||||
xYears: {
|
||||
one: {
|
||||
regular: "1 rok",
|
||||
past: "před 1 rokem",
|
||||
future: "za 1 rok",
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} roky",
|
||||
past: "před {{count}} roky",
|
||||
future: "za {{count}} roky",
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} roků",
|
||||
past: "před {{count}} roky",
|
||||
future: "za {{count}} roků",
|
||||
},
|
||||
},
|
||||
|
||||
overXYears: {
|
||||
one: {
|
||||
regular: "více než 1 rok",
|
||||
past: "před více než 1 rokem",
|
||||
future: "za více než 1 rok",
|
||||
},
|
||||
few: {
|
||||
regular: "více než {{count}} roky",
|
||||
past: "před více než {{count}} roky",
|
||||
future: "za více než {{count}} roky",
|
||||
},
|
||||
many: {
|
||||
regular: "více než {{count}} roků",
|
||||
past: "před více než {{count}} roky",
|
||||
future: "za více než {{count}} roků",
|
||||
},
|
||||
},
|
||||
|
||||
almostXYears: {
|
||||
one: {
|
||||
regular: "skoro 1 rok",
|
||||
past: "skoro před 1 rokem",
|
||||
future: "skoro za 1 rok",
|
||||
},
|
||||
few: {
|
||||
regular: "skoro {{count}} roky",
|
||||
past: "skoro před {{count}} roky",
|
||||
future: "skoro za {{count}} roky",
|
||||
},
|
||||
many: {
|
||||
regular: "skoro {{count}} roků",
|
||||
past: "skoro před {{count}} roky",
|
||||
future: "skoro za {{count}} roků",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const formatDistance = (token, count, options) => {
|
||||
let pluralResult;
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
|
||||
// cs pluralization
|
||||
if (tokenValue.type === "other") {
|
||||
pluralResult = tokenValue.other;
|
||||
} else if (count === 1) {
|
||||
pluralResult = tokenValue.one;
|
||||
} else if (count > 1 && count < 5) {
|
||||
pluralResult = tokenValue.few;
|
||||
} else {
|
||||
pluralResult = tokenValue.many;
|
||||
}
|
||||
|
||||
// times
|
||||
const suffixExist = options?.addSuffix === true;
|
||||
const comparison = options?.comparison;
|
||||
|
||||
let timeResult;
|
||||
if (suffixExist && comparison === -1) {
|
||||
timeResult = pluralResult.past;
|
||||
} else if (suffixExist && comparison === 1) {
|
||||
timeResult = pluralResult.future;
|
||||
} else {
|
||||
timeResult = pluralResult.regular;
|
||||
}
|
||||
|
||||
return timeResult.replace("{{count}}", String(count));
|
||||
};
|
||||
+41
@@ -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. M. yyyy",
|
||||
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}} 'v' {{time}}",
|
||||
long: "{{date}} 'v' {{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",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js";
|
||||
|
||||
const dateFormats = {
|
||||
full: "EEEE, d. MMMM yyyy",
|
||||
long: "d. MMMM yyyy",
|
||||
medium: "d. M. yyyy",
|
||||
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}} 'v' {{time}}",
|
||||
long: "{{date}} 'v' {{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",
|
||||
}),
|
||||
};
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
exports.formatRelative = void 0;
|
||||
|
||||
const accusativeWeekdays = [
|
||||
"neděli",
|
||||
"pondělí",
|
||||
"úterý",
|
||||
"středu",
|
||||
"čtvrtek",
|
||||
"pátek",
|
||||
"sobotu",
|
||||
];
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: "'poslední' eeee 've' p",
|
||||
yesterday: "'včera v' p",
|
||||
today: "'dnes v' p",
|
||||
tomorrow: "'zítra v' p",
|
||||
nextWeek: (date) => {
|
||||
const day = date.getDay();
|
||||
return "'v " + accusativeWeekdays[day] + " o' p";
|
||||
},
|
||||
other: "P",
|
||||
};
|
||||
|
||||
const formatRelative = (token, date) => {
|
||||
const format = formatRelativeLocale[token];
|
||||
|
||||
if (typeof format === "function") {
|
||||
return format(date);
|
||||
}
|
||||
|
||||
return format;
|
||||
};
|
||||
exports.formatRelative = formatRelative;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
const accusativeWeekdays = [
|
||||
"neděli",
|
||||
"pondělí",
|
||||
"úterý",
|
||||
"středu",
|
||||
"čtvrtek",
|
||||
"pátek",
|
||||
"sobotu",
|
||||
];
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: "'poslední' eeee 've' p",
|
||||
yesterday: "'včera v' p",
|
||||
today: "'dnes v' p",
|
||||
tomorrow: "'zítra v' p",
|
||||
nextWeek: (date) => {
|
||||
const day = date.getDay();
|
||||
return "'v " + accusativeWeekdays[day] + " o' p";
|
||||
},
|
||||
other: "P",
|
||||
};
|
||||
|
||||
export const formatRelative = (token, date) => {
|
||||
const format = formatRelativeLocale[token];
|
||||
|
||||
if (typeof format === "function") {
|
||||
return format(date);
|
||||
}
|
||||
|
||||
return format;
|
||||
};
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
"use strict";
|
||||
exports.localize = void 0;
|
||||
var _index = require("../../_lib/buildLocalizeFn.cjs");
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["př. n. l.", "n. l."],
|
||||
abbreviated: ["př. n. l.", "n. l."],
|
||||
wide: ["před naším letopočtem", "našeho letopočtu"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"],
|
||||
|
||||
wide: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"],
|
||||
abbreviated: [
|
||||
"led",
|
||||
"úno",
|
||||
"bře",
|
||||
"dub",
|
||||
"kvě",
|
||||
"čvn",
|
||||
"čvc",
|
||||
"srp",
|
||||
"zář",
|
||||
"říj",
|
||||
"lis",
|
||||
"pro",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"leden",
|
||||
"únor",
|
||||
"březen",
|
||||
"duben",
|
||||
"květen",
|
||||
"červen",
|
||||
"červenec",
|
||||
"srpen",
|
||||
"září",
|
||||
"říjen",
|
||||
"listopad",
|
||||
"prosinec",
|
||||
],
|
||||
};
|
||||
|
||||
const formattingMonthValues = {
|
||||
narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"],
|
||||
abbreviated: [
|
||||
"led",
|
||||
"úno",
|
||||
"bře",
|
||||
"dub",
|
||||
"kvě",
|
||||
"čvn",
|
||||
"čvc",
|
||||
"srp",
|
||||
"zář",
|
||||
"říj",
|
||||
"lis",
|
||||
"pro",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"ledna",
|
||||
"února",
|
||||
"března",
|
||||
"dubna",
|
||||
"května",
|
||||
"června",
|
||||
"července",
|
||||
"srpna",
|
||||
"září",
|
||||
"října",
|
||||
"listopadu",
|
||||
"prosince",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["ne", "po", "út", "st", "čt", "pá", "so"],
|
||||
short: ["ne", "po", "út", "st", "čt", "pá", "so"],
|
||||
abbreviated: ["ned", "pon", "úte", "stř", "čtv", "pát", "sob"],
|
||||
wide: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
wide: {
|
||||
am: "dopoledne",
|
||||
pm: "odpoledne",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
wide: {
|
||||
am: "dopoledne",
|
||||
pm: "odpoledne",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
};
|
||||
|
||||
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",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
+192
@@ -0,0 +1,192 @@
|
||||
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["př. n. l.", "n. l."],
|
||||
abbreviated: ["př. n. l.", "n. l."],
|
||||
wide: ["před naším letopočtem", "našeho letopočtu"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"],
|
||||
|
||||
wide: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"],
|
||||
abbreviated: [
|
||||
"led",
|
||||
"úno",
|
||||
"bře",
|
||||
"dub",
|
||||
"kvě",
|
||||
"čvn",
|
||||
"čvc",
|
||||
"srp",
|
||||
"zář",
|
||||
"říj",
|
||||
"lis",
|
||||
"pro",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"leden",
|
||||
"únor",
|
||||
"březen",
|
||||
"duben",
|
||||
"květen",
|
||||
"červen",
|
||||
"červenec",
|
||||
"srpen",
|
||||
"září",
|
||||
"říjen",
|
||||
"listopad",
|
||||
"prosinec",
|
||||
],
|
||||
};
|
||||
|
||||
const formattingMonthValues = {
|
||||
narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"],
|
||||
abbreviated: [
|
||||
"led",
|
||||
"úno",
|
||||
"bře",
|
||||
"dub",
|
||||
"kvě",
|
||||
"čvn",
|
||||
"čvc",
|
||||
"srp",
|
||||
"zář",
|
||||
"říj",
|
||||
"lis",
|
||||
"pro",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"ledna",
|
||||
"února",
|
||||
"března",
|
||||
"dubna",
|
||||
"května",
|
||||
"června",
|
||||
"července",
|
||||
"srpna",
|
||||
"září",
|
||||
"října",
|
||||
"listopadu",
|
||||
"prosince",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["ne", "po", "út", "st", "čt", "pá", "so"],
|
||||
short: ["ne", "po", "út", "st", "čt", "pá", "so"],
|
||||
abbreviated: ["ned", "pon", "úte", "stř", "čtv", "pát", "sob"],
|
||||
wide: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
wide: {
|
||||
am: "dopoledne",
|
||||
pm: "odpoledne",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
wide: {
|
||||
am: "dopoledne",
|
||||
pm: "odpoledne",
|
||||
midnight: "půlnoc",
|
||||
noon: "poledne",
|
||||
morning: "ráno",
|
||||
afternoon: "odpoledne",
|
||||
evening: "večer",
|
||||
night: "noc",
|
||||
},
|
||||
};
|
||||
|
||||
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",
|
||||
}),
|
||||
};
|
||||
+137
@@ -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: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,
|
||||
abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,
|
||||
wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i,
|
||||
};
|
||||
|
||||
const parseEraPatterns = {
|
||||
any: [/^p[řr]/i, /^(po|n)/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i,
|
||||
wide: /^[1234]\. [čc]tvrtlet[íi]/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^[lúubdkčcszřrlp]/i,
|
||||
abbreviated:
|
||||
/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,
|
||||
wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^l/i,
|
||||
/^[úu]/i,
|
||||
/^b/i,
|
||||
/^d/i,
|
||||
/^k/i,
|
||||
/^[čc]/i,
|
||||
/^[čc]/i,
|
||||
/^s/i,
|
||||
/^z/i,
|
||||
/^[řr]/i,
|
||||
/^l/i,
|
||||
/^p/i,
|
||||
],
|
||||
|
||||
any: [
|
||||
/^led/i,
|
||||
/^[úu]n/i,
|
||||
/^b[řr]e/i,
|
||||
/^dub/i,
|
||||
/^kv[ěe]/i,
|
||||
/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,
|
||||
/^[čc]vc|[čc]erven(ec|ce)/i,
|
||||
/^srp/i,
|
||||
/^z[áa][řr]/i,
|
||||
/^[řr][íi]j/i,
|
||||
/^lis/i,
|
||||
/^pro/i,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^[npuúsčps]/i,
|
||||
short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,
|
||||
abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,
|
||||
wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i,
|
||||
};
|
||||
|
||||
const parseDayPatterns = {
|
||||
narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[čc]/i, /^p/i, /^s/i],
|
||||
any: [/^ne/i, /^po/i, /^[úu]t/i, /^st/i, /^[čc]t/i, /^p[áa]/i, /^so/i],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^dop/i,
|
||||
pm: /^odp/i,
|
||||
midnight: /^p[ůu]lnoc/i,
|
||||
noon: /^poledne/i,
|
||||
morning: /r[áa]no/i,
|
||||
afternoon: /odpoledne/i,
|
||||
evening: /ve[čc]er/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",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
+134
@@ -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: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,
|
||||
abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,
|
||||
wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i,
|
||||
};
|
||||
|
||||
const parseEraPatterns = {
|
||||
any: [/^p[řr]/i, /^(po|n)/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i,
|
||||
wide: /^[1234]\. [čc]tvrtlet[íi]/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^[lúubdkčcszřrlp]/i,
|
||||
abbreviated:
|
||||
/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,
|
||||
wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^l/i,
|
||||
/^[úu]/i,
|
||||
/^b/i,
|
||||
/^d/i,
|
||||
/^k/i,
|
||||
/^[čc]/i,
|
||||
/^[čc]/i,
|
||||
/^s/i,
|
||||
/^z/i,
|
||||
/^[řr]/i,
|
||||
/^l/i,
|
||||
/^p/i,
|
||||
],
|
||||
|
||||
any: [
|
||||
/^led/i,
|
||||
/^[úu]n/i,
|
||||
/^b[řr]e/i,
|
||||
/^dub/i,
|
||||
/^kv[ěe]/i,
|
||||
/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,
|
||||
/^[čc]vc|[čc]erven(ec|ce)/i,
|
||||
/^srp/i,
|
||||
/^z[áa][řr]/i,
|
||||
/^[řr][íi]j/i,
|
||||
/^lis/i,
|
||||
/^pro/i,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^[npuúsčps]/i,
|
||||
short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,
|
||||
abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,
|
||||
wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i,
|
||||
};
|
||||
|
||||
const parseDayPatterns = {
|
||||
narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[čc]/i, /^p/i, /^s/i],
|
||||
any: [/^ne/i, /^po/i, /^[úu]t/i, /^st/i, /^[čc]t/i, /^p[áa]/i, /^so/i],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^dop/i,
|
||||
pm: /^odp/i,
|
||||
midnight: /^p[ůu]lnoc/i,
|
||||
noon: /^poledne/i,
|
||||
morning: /r[áa]no/i,
|
||||
afternoon: /odpoledne/i,
|
||||
evening: /ve[čc]er/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",
|
||||
}),
|
||||
};
|
||||
+768
@@ -0,0 +1,768 @@
|
||||
(() => {
|
||||
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(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(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);}var __defProp = Object.defineProperty;
|
||||
var __export = function __export(target, all) {
|
||||
for (var name in all)
|
||||
__defProp(target, name, {
|
||||
get: all[name],
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
set: function set(newValue) {return all[name] = function () {return newValue;};}
|
||||
});
|
||||
};
|
||||
|
||||
// lib/locale/cs/_lib/formatDistance.js
|
||||
var formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
one: {
|
||||
regular: "m\xE9n\u011B ne\u017E 1 sekunda",
|
||||
past: "p\u0159ed m\xE9n\u011B ne\u017E 1 sekundou",
|
||||
future: "za m\xE9n\u011B ne\u017E 1 sekundu"
|
||||
},
|
||||
few: {
|
||||
regular: "m\xE9n\u011B ne\u017E {{count}} sekundy",
|
||||
past: "p\u0159ed m\xE9n\u011B ne\u017E {{count}} sekundami",
|
||||
future: "za m\xE9n\u011B ne\u017E {{count}} sekundy"
|
||||
},
|
||||
many: {
|
||||
regular: "m\xE9n\u011B ne\u017E {{count}} sekund",
|
||||
past: "p\u0159ed m\xE9n\u011B ne\u017E {{count}} sekundami",
|
||||
future: "za m\xE9n\u011B ne\u017E {{count}} sekund"
|
||||
}
|
||||
},
|
||||
xSeconds: {
|
||||
one: {
|
||||
regular: "1 sekunda",
|
||||
past: "p\u0159ed 1 sekundou",
|
||||
future: "za 1 sekundu"
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} sekundy",
|
||||
past: "p\u0159ed {{count}} sekundami",
|
||||
future: "za {{count}} sekundy"
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} sekund",
|
||||
past: "p\u0159ed {{count}} sekundami",
|
||||
future: "za {{count}} sekund"
|
||||
}
|
||||
},
|
||||
halfAMinute: {
|
||||
type: "other",
|
||||
other: {
|
||||
regular: "p\u016Fl minuty",
|
||||
past: "p\u0159ed p\u016Fl minutou",
|
||||
future: "za p\u016Fl minuty"
|
||||
}
|
||||
},
|
||||
lessThanXMinutes: {
|
||||
one: {
|
||||
regular: "m\xE9n\u011B ne\u017E 1 minuta",
|
||||
past: "p\u0159ed m\xE9n\u011B ne\u017E 1 minutou",
|
||||
future: "za m\xE9n\u011B ne\u017E 1 minutu"
|
||||
},
|
||||
few: {
|
||||
regular: "m\xE9n\u011B ne\u017E {{count}} minuty",
|
||||
past: "p\u0159ed m\xE9n\u011B ne\u017E {{count}} minutami",
|
||||
future: "za m\xE9n\u011B ne\u017E {{count}} minuty"
|
||||
},
|
||||
many: {
|
||||
regular: "m\xE9n\u011B ne\u017E {{count}} minut",
|
||||
past: "p\u0159ed m\xE9n\u011B ne\u017E {{count}} minutami",
|
||||
future: "za m\xE9n\u011B ne\u017E {{count}} minut"
|
||||
}
|
||||
},
|
||||
xMinutes: {
|
||||
one: {
|
||||
regular: "1 minuta",
|
||||
past: "p\u0159ed 1 minutou",
|
||||
future: "za 1 minutu"
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} minuty",
|
||||
past: "p\u0159ed {{count}} minutami",
|
||||
future: "za {{count}} minuty"
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} minut",
|
||||
past: "p\u0159ed {{count}} minutami",
|
||||
future: "za {{count}} minut"
|
||||
}
|
||||
},
|
||||
aboutXHours: {
|
||||
one: {
|
||||
regular: "p\u0159ibli\u017En\u011B 1 hodina",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed 1 hodinou",
|
||||
future: "p\u0159ibli\u017En\u011B za 1 hodinu"
|
||||
},
|
||||
few: {
|
||||
regular: "p\u0159ibli\u017En\u011B {{count}} hodiny",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} hodinami",
|
||||
future: "p\u0159ibli\u017En\u011B za {{count}} hodiny"
|
||||
},
|
||||
many: {
|
||||
regular: "p\u0159ibli\u017En\u011B {{count}} hodin",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} hodinami",
|
||||
future: "p\u0159ibli\u017En\u011B za {{count}} hodin"
|
||||
}
|
||||
},
|
||||
xHours: {
|
||||
one: {
|
||||
regular: "1 hodina",
|
||||
past: "p\u0159ed 1 hodinou",
|
||||
future: "za 1 hodinu"
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} hodiny",
|
||||
past: "p\u0159ed {{count}} hodinami",
|
||||
future: "za {{count}} hodiny"
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} hodin",
|
||||
past: "p\u0159ed {{count}} hodinami",
|
||||
future: "za {{count}} hodin"
|
||||
}
|
||||
},
|
||||
xDays: {
|
||||
one: {
|
||||
regular: "1 den",
|
||||
past: "p\u0159ed 1 dnem",
|
||||
future: "za 1 den"
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} dny",
|
||||
past: "p\u0159ed {{count}} dny",
|
||||
future: "za {{count}} dny"
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} dn\xED",
|
||||
past: "p\u0159ed {{count}} dny",
|
||||
future: "za {{count}} dn\xED"
|
||||
}
|
||||
},
|
||||
aboutXWeeks: {
|
||||
one: {
|
||||
regular: "p\u0159ibli\u017En\u011B 1 t\xFDden",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed 1 t\xFDdnem",
|
||||
future: "p\u0159ibli\u017En\u011B za 1 t\xFDden"
|
||||
},
|
||||
few: {
|
||||
regular: "p\u0159ibli\u017En\u011B {{count}} t\xFDdny",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} t\xFDdny",
|
||||
future: "p\u0159ibli\u017En\u011B za {{count}} t\xFDdny"
|
||||
},
|
||||
many: {
|
||||
regular: "p\u0159ibli\u017En\u011B {{count}} t\xFDdn\u016F",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} t\xFDdny",
|
||||
future: "p\u0159ibli\u017En\u011B za {{count}} t\xFDdn\u016F"
|
||||
}
|
||||
},
|
||||
xWeeks: {
|
||||
one: {
|
||||
regular: "1 t\xFDden",
|
||||
past: "p\u0159ed 1 t\xFDdnem",
|
||||
future: "za 1 t\xFDden"
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} t\xFDdny",
|
||||
past: "p\u0159ed {{count}} t\xFDdny",
|
||||
future: "za {{count}} t\xFDdny"
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} t\xFDdn\u016F",
|
||||
past: "p\u0159ed {{count}} t\xFDdny",
|
||||
future: "za {{count}} t\xFDdn\u016F"
|
||||
}
|
||||
},
|
||||
aboutXMonths: {
|
||||
one: {
|
||||
regular: "p\u0159ibli\u017En\u011B 1 m\u011Bs\xEDc",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed 1 m\u011Bs\xEDcem",
|
||||
future: "p\u0159ibli\u017En\u011B za 1 m\u011Bs\xEDc"
|
||||
},
|
||||
few: {
|
||||
regular: "p\u0159ibli\u017En\u011B {{count}} m\u011Bs\xEDce",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} m\u011Bs\xEDci",
|
||||
future: "p\u0159ibli\u017En\u011B za {{count}} m\u011Bs\xEDce"
|
||||
},
|
||||
many: {
|
||||
regular: "p\u0159ibli\u017En\u011B {{count}} m\u011Bs\xEDc\u016F",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} m\u011Bs\xEDci",
|
||||
future: "p\u0159ibli\u017En\u011B za {{count}} m\u011Bs\xEDc\u016F"
|
||||
}
|
||||
},
|
||||
xMonths: {
|
||||
one: {
|
||||
regular: "1 m\u011Bs\xEDc",
|
||||
past: "p\u0159ed 1 m\u011Bs\xEDcem",
|
||||
future: "za 1 m\u011Bs\xEDc"
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} m\u011Bs\xEDce",
|
||||
past: "p\u0159ed {{count}} m\u011Bs\xEDci",
|
||||
future: "za {{count}} m\u011Bs\xEDce"
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} m\u011Bs\xEDc\u016F",
|
||||
past: "p\u0159ed {{count}} m\u011Bs\xEDci",
|
||||
future: "za {{count}} m\u011Bs\xEDc\u016F"
|
||||
}
|
||||
},
|
||||
aboutXYears: {
|
||||
one: {
|
||||
regular: "p\u0159ibli\u017En\u011B 1 rok",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed 1 rokem",
|
||||
future: "p\u0159ibli\u017En\u011B za 1 rok"
|
||||
},
|
||||
few: {
|
||||
regular: "p\u0159ibli\u017En\u011B {{count}} roky",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} roky",
|
||||
future: "p\u0159ibli\u017En\u011B za {{count}} roky"
|
||||
},
|
||||
many: {
|
||||
regular: "p\u0159ibli\u017En\u011B {{count}} rok\u016F",
|
||||
past: "p\u0159ibli\u017En\u011B p\u0159ed {{count}} roky",
|
||||
future: "p\u0159ibli\u017En\u011B za {{count}} rok\u016F"
|
||||
}
|
||||
},
|
||||
xYears: {
|
||||
one: {
|
||||
regular: "1 rok",
|
||||
past: "p\u0159ed 1 rokem",
|
||||
future: "za 1 rok"
|
||||
},
|
||||
few: {
|
||||
regular: "{{count}} roky",
|
||||
past: "p\u0159ed {{count}} roky",
|
||||
future: "za {{count}} roky"
|
||||
},
|
||||
many: {
|
||||
regular: "{{count}} rok\u016F",
|
||||
past: "p\u0159ed {{count}} roky",
|
||||
future: "za {{count}} rok\u016F"
|
||||
}
|
||||
},
|
||||
overXYears: {
|
||||
one: {
|
||||
regular: "v\xEDce ne\u017E 1 rok",
|
||||
past: "p\u0159ed v\xEDce ne\u017E 1 rokem",
|
||||
future: "za v\xEDce ne\u017E 1 rok"
|
||||
},
|
||||
few: {
|
||||
regular: "v\xEDce ne\u017E {{count}} roky",
|
||||
past: "p\u0159ed v\xEDce ne\u017E {{count}} roky",
|
||||
future: "za v\xEDce ne\u017E {{count}} roky"
|
||||
},
|
||||
many: {
|
||||
regular: "v\xEDce ne\u017E {{count}} rok\u016F",
|
||||
past: "p\u0159ed v\xEDce ne\u017E {{count}} roky",
|
||||
future: "za v\xEDce ne\u017E {{count}} rok\u016F"
|
||||
}
|
||||
},
|
||||
almostXYears: {
|
||||
one: {
|
||||
regular: "skoro 1 rok",
|
||||
past: "skoro p\u0159ed 1 rokem",
|
||||
future: "skoro za 1 rok"
|
||||
},
|
||||
few: {
|
||||
regular: "skoro {{count}} roky",
|
||||
past: "skoro p\u0159ed {{count}} roky",
|
||||
future: "skoro za {{count}} roky"
|
||||
},
|
||||
many: {
|
||||
regular: "skoro {{count}} rok\u016F",
|
||||
past: "skoro p\u0159ed {{count}} roky",
|
||||
future: "skoro za {{count}} rok\u016F"
|
||||
}
|
||||
}
|
||||
};
|
||||
var formatDistance = function formatDistance(token, count, options) {
|
||||
var pluralResult;
|
||||
var tokenValue = formatDistanceLocale[token];
|
||||
if (tokenValue.type === "other") {
|
||||
pluralResult = tokenValue.other;
|
||||
} else if (count === 1) {
|
||||
pluralResult = tokenValue.one;
|
||||
} else if (count > 1 && count < 5) {
|
||||
pluralResult = tokenValue.few;
|
||||
} else {
|
||||
pluralResult = tokenValue.many;
|
||||
}
|
||||
var suffixExist = (options === null || options === void 0 ? void 0 : options.addSuffix) === true;
|
||||
var comparison = options === null || options === void 0 ? void 0 : options.comparison;
|
||||
var timeResult;
|
||||
if (suffixExist && comparison === -1) {
|
||||
timeResult = pluralResult.past;
|
||||
} else if (suffixExist && comparison === 1) {
|
||||
timeResult = pluralResult.future;
|
||||
} else {
|
||||
timeResult = pluralResult.regular;
|
||||
}
|
||||
return timeResult.replace("{{count}}", String(count));
|
||||
};
|
||||
|
||||
// lib/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;
|
||||
var format = args.formats[width] || args.formats[args.defaultWidth];
|
||||
return format;
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/cs/_lib/formatLong.js
|
||||
var dateFormats = {
|
||||
full: "EEEE, d. MMMM yyyy",
|
||||
long: "d. MMMM yyyy",
|
||||
medium: "d. M. yyyy",
|
||||
short: "dd.MM.yyyy"
|
||||
};
|
||||
var timeFormats = {
|
||||
full: "H:mm:ss zzzz",
|
||||
long: "H:mm:ss z",
|
||||
medium: "H:mm:ss",
|
||||
short: "H:mm"
|
||||
};
|
||||
var dateTimeFormats = {
|
||||
full: "{{date}} 'v' {{time}}",
|
||||
long: "{{date}} 'v' {{time}}",
|
||||
medium: "{{date}}, {{time}}",
|
||||
short: "{{date}}, {{time}}"
|
||||
};
|
||||
var formatLong = {
|
||||
date: buildFormatLongFn({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full"
|
||||
}),
|
||||
time: buildFormatLongFn({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full"
|
||||
}),
|
||||
dateTime: buildFormatLongFn({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "full"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/locale/cs/_lib/formatRelative.js
|
||||
var accusativeWeekdays = [
|
||||
"ned\u011Bli",
|
||||
"pond\u011Bl\xED",
|
||||
"\xFAter\xFD",
|
||||
"st\u0159edu",
|
||||
"\u010Dtvrtek",
|
||||
"p\xE1tek",
|
||||
"sobotu"];
|
||||
|
||||
var formatRelativeLocale = {
|
||||
lastWeek: "'posledn\xED' eeee 've' p",
|
||||
yesterday: "'v\u010Dera v' p",
|
||||
today: "'dnes v' p",
|
||||
tomorrow: "'z\xEDtra v' p",
|
||||
nextWeek: function nextWeek(date) {
|
||||
var day = date.getDay();
|
||||
return "'v " + accusativeWeekdays[day] + " o' p";
|
||||
},
|
||||
other: "P"
|
||||
};
|
||||
var formatRelative = function formatRelative(token, date) {
|
||||
var format = formatRelativeLocale[token];
|
||||
if (typeof format === "function") {
|
||||
return format(date);
|
||||
}
|
||||
return format;
|
||||
};
|
||||
|
||||
// lib/locale/_lib/buildLocalizeFn.js
|
||||
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];
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/cs/_lib/localize.js
|
||||
var eraValues = {
|
||||
narrow: ["p\u0159. n. l.", "n. l."],
|
||||
abbreviated: ["p\u0159. n. l.", "n. l."],
|
||||
wide: ["p\u0159ed na\u0161\xEDm letopo\u010Dtem", "na\u0161eho letopo\u010Dtu"]
|
||||
};
|
||||
var quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1. \u010Dtvrtlet\xED", "2. \u010Dtvrtlet\xED", "3. \u010Dtvrtlet\xED", "4. \u010Dtvrtlet\xED"],
|
||||
wide: ["1. \u010Dtvrtlet\xED", "2. \u010Dtvrtlet\xED", "3. \u010Dtvrtlet\xED", "4. \u010Dtvrtlet\xED"]
|
||||
};
|
||||
var monthValues = {
|
||||
narrow: ["L", "\xDA", "B", "D", "K", "\u010C", "\u010C", "S", "Z", "\u0158", "L", "P"],
|
||||
abbreviated: [
|
||||
"led",
|
||||
"\xFAno",
|
||||
"b\u0159e",
|
||||
"dub",
|
||||
"kv\u011B",
|
||||
"\u010Dvn",
|
||||
"\u010Dvc",
|
||||
"srp",
|
||||
"z\xE1\u0159",
|
||||
"\u0159\xEDj",
|
||||
"lis",
|
||||
"pro"],
|
||||
|
||||
wide: [
|
||||
"leden",
|
||||
"\xFAnor",
|
||||
"b\u0159ezen",
|
||||
"duben",
|
||||
"kv\u011Bten",
|
||||
"\u010Derven",
|
||||
"\u010Dervenec",
|
||||
"srpen",
|
||||
"z\xE1\u0159\xED",
|
||||
"\u0159\xEDjen",
|
||||
"listopad",
|
||||
"prosinec"]
|
||||
|
||||
};
|
||||
var formattingMonthValues = {
|
||||
narrow: ["L", "\xDA", "B", "D", "K", "\u010C", "\u010C", "S", "Z", "\u0158", "L", "P"],
|
||||
abbreviated: [
|
||||
"led",
|
||||
"\xFAno",
|
||||
"b\u0159e",
|
||||
"dub",
|
||||
"kv\u011B",
|
||||
"\u010Dvn",
|
||||
"\u010Dvc",
|
||||
"srp",
|
||||
"z\xE1\u0159",
|
||||
"\u0159\xEDj",
|
||||
"lis",
|
||||
"pro"],
|
||||
|
||||
wide: [
|
||||
"ledna",
|
||||
"\xFAnora",
|
||||
"b\u0159ezna",
|
||||
"dubna",
|
||||
"kv\u011Btna",
|
||||
"\u010Dervna",
|
||||
"\u010Dervence",
|
||||
"srpna",
|
||||
"z\xE1\u0159\xED",
|
||||
"\u0159\xEDjna",
|
||||
"listopadu",
|
||||
"prosince"]
|
||||
|
||||
};
|
||||
var dayValues = {
|
||||
narrow: ["ne", "po", "\xFAt", "st", "\u010Dt", "p\xE1", "so"],
|
||||
short: ["ne", "po", "\xFAt", "st", "\u010Dt", "p\xE1", "so"],
|
||||
abbreviated: ["ned", "pon", "\xFAte", "st\u0159", "\u010Dtv", "p\xE1t", "sob"],
|
||||
wide: ["ned\u011Ble", "pond\u011Bl\xED", "\xFAter\xFD", "st\u0159eda", "\u010Dtvrtek", "p\xE1tek", "sobota"]
|
||||
};
|
||||
var dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "p\u016Flnoc",
|
||||
noon: "poledne",
|
||||
morning: "r\xE1no",
|
||||
afternoon: "odpoledne",
|
||||
evening: "ve\u010Der",
|
||||
night: "noc"
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "p\u016Flnoc",
|
||||
noon: "poledne",
|
||||
morning: "r\xE1no",
|
||||
afternoon: "odpoledne",
|
||||
evening: "ve\u010Der",
|
||||
night: "noc"
|
||||
},
|
||||
wide: {
|
||||
am: "dopoledne",
|
||||
pm: "odpoledne",
|
||||
midnight: "p\u016Flnoc",
|
||||
noon: "poledne",
|
||||
morning: "r\xE1no",
|
||||
afternoon: "odpoledne",
|
||||
evening: "ve\u010Der",
|
||||
night: "noc"
|
||||
}
|
||||
};
|
||||
var formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "p\u016Flnoc",
|
||||
noon: "poledne",
|
||||
morning: "r\xE1no",
|
||||
afternoon: "odpoledne",
|
||||
evening: "ve\u010Der",
|
||||
night: "noc"
|
||||
},
|
||||
abbreviated: {
|
||||
am: "dop.",
|
||||
pm: "odp.",
|
||||
midnight: "p\u016Flnoc",
|
||||
noon: "poledne",
|
||||
morning: "r\xE1no",
|
||||
afternoon: "odpoledne",
|
||||
evening: "ve\u010Der",
|
||||
night: "noc"
|
||||
},
|
||||
wide: {
|
||||
am: "dopoledne",
|
||||
pm: "odpoledne",
|
||||
midnight: "p\u016Flnoc",
|
||||
noon: "poledne",
|
||||
morning: "r\xE1no",
|
||||
afternoon: "odpoledne",
|
||||
evening: "ve\u010Der",
|
||||
night: "noc"
|
||||
}
|
||||
};
|
||||
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
|
||||
var number = Number(dirtyNumber);
|
||||
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",
|
||||
formattingValues: formattingMonthValues,
|
||||
defaultFormattingWidth: "wide"
|
||||
}),
|
||||
day: buildLocalizeFn({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide"
|
||||
}),
|
||||
dayPeriod: buildLocalizeFn({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/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;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
function findIndex(array, predicate) {
|
||||
for (var key = 0; key < array.length; key++) {
|
||||
if (predicate(array[key])) {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// lib/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 };
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/cs/_lib/match.js
|
||||
var matchOrdinalNumberPattern = /^(\d+)\.?/i;
|
||||
var parseOrdinalNumberPattern = /\d+/i;
|
||||
var matchEraPatterns = {
|
||||
narrow: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,
|
||||
abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,
|
||||
wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i
|
||||
};
|
||||
var parseEraPatterns = {
|
||||
any: [/^p[řr]/i, /^(po|n)/i]
|
||||
};
|
||||
var matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i,
|
||||
wide: /^[1234]\. [čc]tvrtlet[íi]/i
|
||||
};
|
||||
var parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i]
|
||||
};
|
||||
var matchMonthPatterns = {
|
||||
narrow: /^[lúubdkčcszřrlp]/i,
|
||||
abbreviated: /^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,
|
||||
wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i
|
||||
};
|
||||
var parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^l/i,
|
||||
/^[úu]/i,
|
||||
/^b/i,
|
||||
/^d/i,
|
||||
/^k/i,
|
||||
/^[čc]/i,
|
||||
/^[čc]/i,
|
||||
/^s/i,
|
||||
/^z/i,
|
||||
/^[řr]/i,
|
||||
/^l/i,
|
||||
/^p/i],
|
||||
|
||||
any: [
|
||||
/^led/i,
|
||||
/^[úu]n/i,
|
||||
/^b[řr]e/i,
|
||||
/^dub/i,
|
||||
/^kv[ěe]/i,
|
||||
/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,
|
||||
/^[čc]vc|[čc]erven(ec|ce)/i,
|
||||
/^srp/i,
|
||||
/^z[áa][řr]/i,
|
||||
/^[řr][íi]j/i,
|
||||
/^lis/i,
|
||||
/^pro/i]
|
||||
|
||||
};
|
||||
var matchDayPatterns = {
|
||||
narrow: /^[npuúsčps]/i,
|
||||
short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,
|
||||
abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,
|
||||
wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i
|
||||
};
|
||||
var parseDayPatterns = {
|
||||
narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[čc]/i, /^p/i, /^s/i],
|
||||
any: [/^ne/i, /^po/i, /^[úu]t/i, /^st/i, /^[čc]t/i, /^p[áa]/i, /^so/i]
|
||||
};
|
||||
var matchDayPeriodPatterns = {
|
||||
any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i
|
||||
};
|
||||
var parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^dop/i,
|
||||
pm: /^odp/i,
|
||||
midnight: /^p[ůu]lnoc/i,
|
||||
noon: /^poledne/i,
|
||||
morning: /r[áa]no/i,
|
||||
afternoon: /odpoledne/i,
|
||||
evening: /ve[čc]er/i,
|
||||
night: /noc/i
|
||||
}
|
||||
};
|
||||
var match = {
|
||||
ordinalNumber: buildMatchPatternFn({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
|
||||
}),
|
||||
era: buildMatchFn({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any"
|
||||
}),
|
||||
quarter: buildMatchFn({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: function valueCallback(index) {return index + 1;}
|
||||
}),
|
||||
month: buildMatchFn({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "any"
|
||||
}),
|
||||
day: buildMatchFn({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any"
|
||||
}),
|
||||
dayPeriod: buildMatchFn({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "any",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/locale/cs.js
|
||||
var cs = {
|
||||
code: "cs",
|
||||
formatDistance: formatDistance,
|
||||
formatLong: formatLong,
|
||||
formatRelative: formatRelative,
|
||||
localize: localize,
|
||||
match: match,
|
||||
options: {
|
||||
weekStartsOn: 1,
|
||||
firstWeekContainsDate: 4
|
||||
}
|
||||
};
|
||||
|
||||
// lib/locale/cs/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), {}, {
|
||||
cs: cs }) });
|
||||
|
||||
|
||||
|
||||
//# debugId=07F73D6D5ED0258E64756E2164756E21
|
||||
|
||||
//# sourceMappingURL=cdn.js.map
|
||||
})();
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cdn.js","names":["__defProp","Object","defineProperty","__export","target","all","name","get","enumerable","configurable","set","newValue","formatDistanceLocale","lessThanXSeconds","one","regular","past","future","few","many","xSeconds","halfAMinute","type","other","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","formatDistance","token","count","options","pluralResult","tokenValue","suffixExist","addSuffix","comparison","timeResult","replace","String","buildFormatLongFn","args","arguments","length","undefined","width","defaultWidth","format","formats","dateFormats","full","long","medium","short","timeFormats","dateTimeFormats","formatLong","date","time","dateTime","accusativeWeekdays","formatRelativeLocale","lastWeek","yesterday","today","tomorrow","nextWeek","day","getDay","formatRelative","buildLocalizeFn","value","context","valuesArray","formattingValues","defaultFormattingWidth","values","index","argumentCallback","eraValues","narrow","abbreviated","wide","quarterValues","monthValues","formattingMonthValues","dayValues","dayPeriodValues","am","pm","midnight","noon","morning","afternoon","evening","night","formattingDayPeriodValues","ordinalNumber","dirtyNumber","_options","number","Number","localize","era","quarter","month","dayPeriod","buildMatchFn","string","matchPattern","matchPatterns","defaultMatchWidth","matchResult","match","matchedString","parsePatterns","defaultParseWidth","key","Array","isArray","findIndex","pattern","test","findKey","valueCallback","rest","slice","object","predicate","prototype","hasOwnProperty","call","array","buildMatchPatternFn","parseResult","parsePattern","matchOrdinalNumberPattern","parseOrdinalNumberPattern","matchEraPatterns","parseEraPatterns","any","matchQuarterPatterns","parseQuarterPatterns","matchMonthPatterns","parseMonthPatterns","matchDayPatterns","parseDayPatterns","matchDayPeriodPatterns","parseDayPeriodPatterns","parseInt","cs","code","weekStartsOn","firstWeekContainsDate","window","dateFns","_objectSpread","locale","_window$dateFns"],"sources":["cdn.js"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, {\n get: all[name],\n enumerable: true,\n configurable: true,\n set: (newValue) => all[name] = () => newValue\n });\n};\n\n// lib/locale/cs/_lib/formatDistance.js\nvar formatDistanceLocale = {\n lessThanXSeconds: {\n one: {\n regular: \"m\\xE9n\\u011B ne\\u017E 1 sekunda\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E 1 sekundou\",\n future: \"za m\\xE9n\\u011B ne\\u017E 1 sekundu\"\n },\n few: {\n regular: \"m\\xE9n\\u011B ne\\u017E {{count}} sekundy\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E {{count}} sekundami\",\n future: \"za m\\xE9n\\u011B ne\\u017E {{count}} sekundy\"\n },\n many: {\n regular: \"m\\xE9n\\u011B ne\\u017E {{count}} sekund\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E {{count}} sekundami\",\n future: \"za m\\xE9n\\u011B ne\\u017E {{count}} sekund\"\n }\n },\n xSeconds: {\n one: {\n regular: \"1 sekunda\",\n past: \"p\\u0159ed 1 sekundou\",\n future: \"za 1 sekundu\"\n },\n few: {\n regular: \"{{count}} sekundy\",\n past: \"p\\u0159ed {{count}} sekundami\",\n future: \"za {{count}} sekundy\"\n },\n many: {\n regular: \"{{count}} sekund\",\n past: \"p\\u0159ed {{count}} sekundami\",\n future: \"za {{count}} sekund\"\n }\n },\n halfAMinute: {\n type: \"other\",\n other: {\n regular: \"p\\u016Fl minuty\",\n past: \"p\\u0159ed p\\u016Fl minutou\",\n future: \"za p\\u016Fl minuty\"\n }\n },\n lessThanXMinutes: {\n one: {\n regular: \"m\\xE9n\\u011B ne\\u017E 1 minuta\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E 1 minutou\",\n future: \"za m\\xE9n\\u011B ne\\u017E 1 minutu\"\n },\n few: {\n regular: \"m\\xE9n\\u011B ne\\u017E {{count}} minuty\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E {{count}} minutami\",\n future: \"za m\\xE9n\\u011B ne\\u017E {{count}} minuty\"\n },\n many: {\n regular: \"m\\xE9n\\u011B ne\\u017E {{count}} minut\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E {{count}} minutami\",\n future: \"za m\\xE9n\\u011B ne\\u017E {{count}} minut\"\n }\n },\n xMinutes: {\n one: {\n regular: \"1 minuta\",\n past: \"p\\u0159ed 1 minutou\",\n future: \"za 1 minutu\"\n },\n few: {\n regular: \"{{count}} minuty\",\n past: \"p\\u0159ed {{count}} minutami\",\n future: \"za {{count}} minuty\"\n },\n many: {\n regular: \"{{count}} minut\",\n past: \"p\\u0159ed {{count}} minutami\",\n future: \"za {{count}} minut\"\n }\n },\n aboutXHours: {\n one: {\n regular: \"p\\u0159ibli\\u017En\\uLine truncated
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
(()=>{var A;function I(B){return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},I(B)}function N(B,C){var G=Object.keys(B);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(B);C&&(H=H.filter(function(J){return Object.getOwnPropertyDescriptor(B,J).enumerable})),G.push.apply(G,H)}return G}function q(B){for(var C=1;C<arguments.length;C++){var G=arguments[C]!=null?arguments[C]:{};C%2?N(Object(G),!0).forEach(function(H){z(B,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(G)):N(Object(G)).forEach(function(H){Object.defineProperty(B,H,Object.getOwnPropertyDescriptor(G,H))})}return B}function z(B,C,G){if(C=W(C),C in B)Object.defineProperty(B,C,{value:G,enumerable:!0,configurable:!0,writable:!0});else B[C]=G;return B}function W(B){var C=E(B,"string");return I(C)=="symbol"?C:String(C)}function E(B,C){if(I(B)!="object"||!B)return B;var G=B[Symbol.toPrimitive];if(G!==void 0){var H=G.call(B,C||"default");if(I(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(B)}var S=Object.defineProperty,JB=function B(C,G){for(var H in G)S(C,H,{get:G[H],enumerable:!0,configurable:!0,set:function J(X){return G[H]=function(){return X}}})},x={lessThanXSeconds:{one:{regular:"m\xE9n\u011B ne\u017E 1 sekunda",past:"p\u0159ed m\xE9n\u011B ne\u017E 1 sekundou",future:"za m\xE9n\u011B ne\u017E 1 sekundu"},few:{regular:"m\xE9n\u011B ne\u017E {{count}} sekundy",past:"p\u0159ed m\xE9n\u011B ne\u017E {{count}} sekundami",future:"za m\xE9n\u011B ne\u017E {{count}} sekundy"},many:{regular:"m\xE9n\u011B ne\u017E {{count}} sekund",past:"p\u0159ed m\xE9n\u011B ne\u017E {{count}} sekundami",future:"za m\xE9n\u011B ne\u017E {{count}} sekund"}},xSeconds:{one:{regular:"1 sekunda",past:"p\u0159ed 1 sekundou",future:"za 1 sekundu"},few:{regular:"{{count}} sekundy",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"p\u016Fl minuty",past:"p\u0159ed p\u016Fl minutou",future:"za p\u016Fl minuty"}},lessThanXMinutes:{one:{regular:"m\xE9n\u011B ne\u017E 1 minuta",past:"p\u0159ed m\xE9n\u011B ne\u017E 1 minutou",future:"za m\xE9n\u011B ne\u017E 1 minutu"},few:{regular:"m\xE9n\u011B ne\u017E {{count}} minuty",past:"p\u0159ed m\xE9n\u011B ne\u017E {{count}} minutami",future:"za m\xE9n\u011B ne\u017E {{count}} minuty"},many:{regular:"m\xE9n\u011B ne\u017E {{count}} minut",past:"p\u0159ed m\xE9n\u011B ne\u017E {{count}} minutami",future:"za m\xE9n\u011B ne\u017E {{count}} minut"}},xMinutes:{one:{regular:"1 minuta",past:"p\u0159ed 1 minutou",future:"za 1 minutu"},few:{regular:"{{count}} minuty",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"p\u0159ibli\u017En\u011B 1 hodina",past:"p\u0159ibli\u017En\u011B p\u0159ed 1 hodinou",future:"p\u0159ibli\u017En\u011B za 1 hodinu"},few:{regular:"p\u0159ibli\u017En\u011B {{count}} hodiny",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017En\u011B za {{count}} hodiny"},many:{regular:"p\u0159ibli\u017En\u011B {{count}} hodin",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017En\u011B za {{count}} hodin"}},xHours:{one:{regular:"1 hodina",past:"p\u0159ed 1 hodinou",future:"za 1 hodinu"},few:{regular:"{{count}} hodiny",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"1 den",past:"p\u0159ed 1 dnem",future:"za 1 den"},few:{regular:"{{count}} dny",past:"p\u0159ed {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dn\xED",past:"p\u0159ed {{count}} dny",future:"za {{count}} dn\xED"}},aboutXWeeks:{one:{regular:"p\u0159ibli\u017En\u011B 1 t\xFDden",past:"p\u0159ibli\u017En\u011B p\u0159ed 1 t\xFDdnem",future:"p\u0159ibli\u017En\u011B za 1 t\xFDden"},few:{regular:"p\u0159ibli\u017En\u011B {{count}} t\xFDdny",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} t\xFDdny",future:"p\u0159ibli\u017En\u011B za {{count}} t\xFDdny"},many:{regular:"p\u0159ibli\u017En\u011B {{count}} t\xFDdn\u016F",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} t\xFDdny",future:"p\u0159ibli\u017En\u011B za {{count}} t\xFDdn\u016F"}},xWeeks:{one:{regular:"1 t\xFDden",past:"p\u0159ed 1 t\xFDdnem",future:"za 1 t\xFDden"},few:{regular:"{{count}} t\xFDdny",past:"p\u0159ed {{count}} t\xFDdny",future:"za {{count}} t\xFDdny"},many:{regular:"{{count}} t\xFDdn\u016F",past:"p\u0159ed {{count}} t\xFDdny",future:"za {{count}} t\xFDdn\u016F"}},aboutXMonths:{one:{regulaLine truncated
|
||||
|
||||
//# debugId=585BCDC3F917766964756E2164756E21
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["lib/locale/cs/cdn.js"],
|
||||
"sourcesContent": [
|
||||
"(() => {\nvar _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(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, \"string\");return \"symbol\" == _typeof(i) ? i : String(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);}var __defProp = Object.defineProperty;\nvar __export = function __export(target, all) {\n for (var name in all)\n __defProp(target, name, {\n get: all[name],\n enumerable: true,\n configurable: true,\n set: function set(newValue) {return all[name] = function () {return newValue;};}\n });\n};\n\n// lib/locale/cs/_lib/formatDistance.js\nvar formatDistanceLocale = {\n lessThanXSeconds: {\n one: {\n regular: \"m\\xE9n\\u011B ne\\u017E 1 sekunda\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E 1 sekundou\",\n future: \"za m\\xE9n\\u011B ne\\u017E 1 sekundu\"\n },\n few: {\n regular: \"m\\xE9n\\u011B ne\\u017E {{count}} sekundy\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E {{count}} sekundami\",\n future: \"za m\\xE9n\\u011B ne\\u017E {{count}} sekundy\"\n },\n many: {\n regular: \"m\\xE9n\\u011B ne\\u017E {{count}} sekund\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E {{count}} sekundami\",\n future: \"za m\\xE9n\\u011B ne\\u017E {{count}} sekund\"\n }\n },\n xSeconds: {\n one: {\n regular: \"1 sekunda\",\n past: \"p\\u0159ed 1 sekundou\",\n future: \"za 1 sekundu\"\n },\n few: {\n regular: \"{{count}} sekundy\",\n past: \"p\\u0159ed {{count}} sekundami\",\n future: \"za {{count}} sekundy\"\n },\n many: {\n regular: \"{{count}} sekund\",\n past: \"p\\u0159ed {{count}} sekundami\",\n future: \"za {{count}} sekund\"\n }\n },\n halfAMinute: {\n type: \"other\",\n other: {\n regular: \"p\\u016Fl minuty\",\n past: \"p\\u0159ed p\\u016Fl minutou\",\n future: \"za p\\u016Fl minuty\"\n }\n },\n lessThanXMinutes: {\n one: {\n regular: \"m\\xE9n\\u011B ne\\u017E 1 minuta\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E 1 minutou\",\n future: \"za m\\xE9n\\u011B ne\\u017E 1 minutu\"\n },\n few: {\n regular: \"m\\xE9n\\u011B ne\\u017E {{count}} minuty\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E {{count}} minutami\",\n future: \"za m\\xE9n\\u011B ne\\u017E {{count}} minuty\"\n },\n many: {\n regular: \"m\\xE9n\\u011B ne\\u017E {{count}} minut\",\n past: \"p\\u0159ed m\\xE9n\\u011B ne\\u017E {{count}} minutami\",\n future: \"za m\\xE9n\\u011B ne\\u017E {{count}} minut\"\n }\n },\n xMinutes: {\n one: {\n regular: \"1 minuta\",\n past: \"p\\u0159ed 1 minutou\",\n future: \"za 1 minutu\"\n },\n few: {\n regular: \"{{count}} minuty\",\n past: \"p\\u0159ed {{count}} minutami\",\n future: \"za {{count}} minuty\"\n },\n many: {\n regular: \"{{count}} minut\",\n past: \"p\\u0159ed {{count}} minutami\",\n future: \"za {{count}} minut\"\n }\n },\n aboutXHours: {\n one: {\n regular: \"p\\u0159ibli\\u017En\\u011B 1 hodina\",\n past: \"p\\u0159ibli\\u017En\\u011B p\\u0159ed 1 hodinou\",\n future: \"p\\u0159ibli\\u017En\\u011B za 1 hodinu\"\n },\n few: {\n regular: \"p\\u0159ibli\\u017En\\u011B {{count}} hodiny\",\n past: \"p\\u0159ibli\\u017En\\u011B p\\u0159ed {{count}} hodinami\",\n future: \"p\\u0159ibli\\u017En\\u011B za {{count}} hodiny\"\n },\n many: {\n regular: \"p\\u0159ibli\\u017En\\u011B {{count}} hodin\",\n paLine truncated
|
||||
],
|
||||
"mappings": "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 truncated
|
||||
"debugId": "585BCDC3F917766964756E2164756E21",
|
||||
"names": []
|
||||
}
|
||||
Reference in new issue
Block a user