registration

This commit is contained in:
User
2025-02-02 16:08:03 +03:00
parent 7f6495eb4d
commit 78afbaed71
6334 changed files with 196774 additions and 165754 deletions

View File

@@ -1,4 +1,7 @@
export function buildFormatLongFn(args) {
"use strict";
exports.buildFormatLongFn = buildFormatLongFn;
function buildFormatLongFn(args) {
return (options = {}) => {
// TODO: Remove String()
const width = options.width ? String(options.width) : args.defaultWidth;

View File

@@ -1,7 +1,4 @@
"use strict";
exports.buildFormatLongFn = buildFormatLongFn;
function buildFormatLongFn(args) {
export function buildFormatLongFn(args) {
return (options = {}) => {
// TODO: Remove String()
const width = options.width ? String(options.width) : args.defaultWidth;

View File

@@ -1,4 +1,5 @@
/* eslint-disable no-unused-vars */
"use strict";
exports.buildLocalizeFn = buildLocalizeFn;
/**
* The localize function argument callback which allows to convert raw value to
@@ -39,7 +40,7 @@
* The tuple of localized month values. The first element represents January.
*/
export function buildLocalizeFn(args) {
function buildLocalizeFn(args) {
return (value, options) => {
const context = options?.context ? String(options.context) : "standalone";

View File

@@ -1,6 +1,3 @@
"use strict";
exports.buildLocalizeFn = buildLocalizeFn; /* eslint-disable no-unused-vars */
/**
* The localize function argument callback which allows to convert raw value to
* the actual type.
@@ -40,7 +37,7 @@ exports.buildLocalizeFn = buildLocalizeFn; /* eslint-disable no-unused-vars */
* The tuple of localized month values. The first element represents January.
*/
function buildLocalizeFn(args) {
export function buildLocalizeFn(args) {
return (value, options) => {
const context = options?.context ? String(options.context) : "standalone";

View File

@@ -1,4 +1,7 @@
export function buildMatchFn(args) {
"use strict";
exports.buildMatchFn = buildMatchFn;
function buildMatchFn(args) {
return (string, options = {}) => {
const width = options.width;
@@ -18,14 +21,14 @@ export function buildMatchFn(args) {
const key = Array.isArray(parsePatterns)
? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
: // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
: // [TODO] -- I challenge you to fix the type
findKey(parsePatterns, (pattern) => pattern.test(matchedString));
let value;
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback
? // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
? // [TODO] -- I challenge you to fix the type
options.valueCallback(value)
: value;

View File

@@ -1,7 +1,4 @@
"use strict";
exports.buildMatchFn = buildMatchFn;
function buildMatchFn(args) {
export function buildMatchFn(args) {
return (string, options = {}) => {
const width = options.width;
@@ -21,14 +18,14 @@ function buildMatchFn(args) {
const key = Array.isArray(parsePatterns)
? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
: // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
: // [TODO] -- I challenge you to fix the type
findKey(parsePatterns, (pattern) => pattern.test(matchedString));
let value;
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback
? // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
? // [TODO] -- I challenge you to fix the type
options.valueCallback(value)
: value;

View File

@@ -1,4 +1,7 @@
export function buildMatchPatternFn(args) {
"use strict";
exports.buildMatchPatternFn = buildMatchPatternFn;
function buildMatchPatternFn(args) {
return (string, options = {}) => {
const matchResult = string.match(args.matchPattern);
if (!matchResult) return null;
@@ -10,7 +13,7 @@ export function buildMatchPatternFn(args) {
? args.valueCallback(parseResult[0])
: parseResult[0];
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
// [TODO] I challenge you to fix the type
value = options.valueCallback ? options.valueCallback(value) : value;
const rest = string.slice(matchedString.length);

View File

@@ -1,7 +1,4 @@
"use strict";
exports.buildMatchPatternFn = buildMatchPatternFn;
function buildMatchPatternFn(args) {
export function buildMatchPatternFn(args) {
return (string, options = {}) => {
const matchResult = string.match(args.matchPattern);
if (!matchResult) return null;
@@ -13,7 +10,7 @@ function buildMatchPatternFn(args) {
? args.valueCallback(parseResult[0])
: parseResult[0];
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
// [TODO] I challenge you to fix the type
value = options.valueCallback ? options.valueCallback(value) : value;
const rest = string.slice(matchedString.length);

27
frontend/style/node_modules/date-fns/locale/af.cjs generated vendored Normal file
View File

@@ -0,0 +1,27 @@
"use strict";
exports.af = void 0;
var _index = require("./af/_lib/formatDistance.cjs");
var _index2 = require("./af/_lib/formatLong.cjs");
var _index3 = require("./af/_lib/formatRelative.cjs");
var _index4 = require("./af/_lib/localize.cjs");
var _index5 = require("./af/_lib/match.cjs");
/**
* @category Locales
* @summary Afrikaans locale.
* @language Afrikaans
* @iso-639-2 afr
* @author Marnus Weststrate [@marnusw](https://github.com/marnusw)
*/
const af = (exports.af = {
code: "af",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
});

View File

@@ -1,10 +1,8 @@
"use strict";
exports.af = void 0;
var _index = require("./af/_lib/formatDistance.js");
var _index2 = require("./af/_lib/formatLong.js");
var _index3 = require("./af/_lib/formatRelative.js");
var _index4 = require("./af/_lib/localize.js");
var _index5 = require("./af/_lib/match.js");
import { formatDistance } from "./af/_lib/formatDistance.js";
import { formatLong } from "./af/_lib/formatLong.js";
import { formatRelative } from "./af/_lib/formatRelative.js";
import { localize } from "./af/_lib/localize.js";
import { match } from "./af/_lib/match.js";
/**
* @category Locales
@@ -13,15 +11,18 @@ var _index5 = require("./af/_lib/match.js");
* @iso-639-2 afr
* @author Marnus Weststrate [@marnusw](https://github.com/marnusw)
*/
const af = (exports.af = {
export const af = {
code: "af",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
});
};
// Fallback for modularized imports:
export default af;

View File

@@ -1,28 +0,0 @@
import { formatDistance } from "./af/_lib/formatDistance.mjs";
import { formatLong } from "./af/_lib/formatLong.mjs";
import { formatRelative } from "./af/_lib/formatRelative.mjs";
import { localize } from "./af/_lib/localize.mjs";
import { match } from "./af/_lib/match.mjs";
/**
* @category Locales
* @summary Afrikaans locale.
* @language Afrikaans
* @iso-639-2 afr
* @author Marnus Weststrate [@marnusw](https://github.com/marnusw)
*/
export const af = {
code: "af",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
};
// Fallback for modularized imports:
export default af;

View File

@@ -1,3 +1,6 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "minder as 'n sekonde",
@@ -77,7 +80,7 @@ const formatDistanceLocale = {
},
};
export const formatDistance = (token, count, options) => {
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
@@ -99,3 +102,4 @@ export const formatDistance = (token, count, options) => {
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -1,6 +1,3 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "minder as 'n sekonde",
@@ -80,7 +77,7 @@ const formatDistanceLocale = {
},
};
const formatDistance = (token, count, options) => {
export const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
@@ -102,4 +99,3 @@ const formatDistance = (token, count, options) => {
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -1,4 +1,6 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.cjs");
const dateFormats = {
full: "EEEE, d MMMM yyyy",
@@ -21,19 +23,19 @@ const dateTimeFormats = {
short: "{{date}}, {{time}}",
};
export const formatLong = {
date: buildFormatLongFn({
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
formats: dateFormats,
defaultWidth: "full",
}),
time: buildFormatLongFn({
time: (0, _index.buildFormatLongFn)({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: buildFormatLongFn({
dateTime: (0, _index.buildFormatLongFn)({
formats: dateTimeFormats,
defaultWidth: "full",
}),
};
});

View File

@@ -1,6 +1,4 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.js");
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js";
const dateFormats = {
full: "EEEE, d MMMM yyyy",
@@ -23,19 +21,19 @@ const dateTimeFormats = {
short: "{{date}}, {{time}}",
};
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
export const formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full",
}),
time: (0, _index.buildFormatLongFn)({
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: (0, _index.buildFormatLongFn)({
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full",
}),
});
};

View File

@@ -1,3 +1,6 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "'verlede' eeee 'om' p",
yesterday: "'gister om' p",
@@ -7,5 +10,6 @@ const formatRelativeLocale = {
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) =>
const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];
exports.formatRelative = formatRelative;

View File

@@ -1,6 +1,3 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "'verlede' eeee 'om' p",
yesterday: "'gister om' p",
@@ -10,6 +7,5 @@ const formatRelativeLocale = {
other: "P",
};
const formatRelative = (token, _date, _baseDate, _options) =>
export const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];
exports.formatRelative = formatRelative;

View File

@@ -1,4 +1,6 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.cjs");
const eraValues = {
narrow: ["vC", "nC"],
@@ -140,34 +142,34 @@ const ordinalNumber = (dirtyNumber) => {
return number + "ste";
};
export const localize = {
const localize = (exports.localize = {
ordinalNumber,
era: buildLocalizeFn({
era: (0, _index.buildLocalizeFn)({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
quarter: (0, _index.buildLocalizeFn)({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: buildLocalizeFn({
month: (0, _index.buildLocalizeFn)({
values: monthValues,
defaultWidth: "wide",
}),
day: buildLocalizeFn({
day: (0, _index.buildLocalizeFn)({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
dayPeriod: (0, _index.buildLocalizeFn)({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};
});

View File

@@ -1,6 +1,4 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.js");
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
const eraValues = {
narrow: ["vC", "nC"],
@@ -142,34 +140,34 @@ const ordinalNumber = (dirtyNumber) => {
return number + "ste";
};
const localize = (exports.localize = {
export const localize = {
ordinalNumber,
era: (0, _index.buildLocalizeFn)({
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: (0, _index.buildLocalizeFn)({
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: (0, _index.buildLocalizeFn)({
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
}),
day: (0, _index.buildLocalizeFn)({
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: (0, _index.buildLocalizeFn)({
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
});
};

View File

@@ -1,5 +1,8 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.cjs");
var _index2 = require("../../_lib/buildMatchPatternFn.cjs");
const matchOrdinalNumberPattern = /^(\d+)(ste|de)?/i;
const parseOrdinalNumberPattern = /\d+/i;
@@ -86,21 +89,21 @@ const parseDayPeriodPatterns = {
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: buildMatchFn({
era: (0, _index.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
quarter: (0, _index.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
@@ -108,24 +111,24 @@ export const match = {
valueCallback: (index) => index + 1,
}),
month: buildMatchFn({
month: (0, _index.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
day: (0, _index.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
dayPeriod: (0, _index.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};
});

View File

@@ -1,8 +1,5 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.js");
var _index2 = require("../../_lib/buildMatchPatternFn.js");
import { buildMatchFn } from "../../_lib/buildMatchFn.js";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js";
const matchOrdinalNumberPattern = /^(\d+)(ste|de)?/i;
const parseOrdinalNumberPattern = /\d+/i;
@@ -89,21 +86,21 @@ const parseDayPeriodPatterns = {
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: (0, _index.buildMatchFn)({
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index.buildMatchFn)({
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
@@ -111,24 +108,24 @@ const match = (exports.match = {
valueCallback: (index) => index + 1,
}),
month: (0, _index.buildMatchFn)({
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index.buildMatchFn)({
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index.buildMatchFn)({
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});
};

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

28
frontend/style/node_modules/date-fns/locale/ar-DZ.cjs generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
exports.arDZ = void 0;
var _index = require("./ar-DZ/_lib/formatDistance.cjs");
var _index2 = require("./ar-DZ/_lib/formatLong.cjs");
var _index3 = require("./ar-DZ/_lib/formatRelative.cjs");
var _index4 = require("./ar-DZ/_lib/localize.cjs");
var _index5 = require("./ar-DZ/_lib/match.cjs");
/**
* @category Locales
* @summary Arabic locale (Algerian Arabic).
* @language Algerian Arabic
* @iso-639-2 ara
* @author Badreddine Boumaza [@badre429](https://github.com/badre429)
* @author Ahmed ElShahat [@elshahat](https://github.com/elshahat)
*/
const arDZ = (exports.arDZ = {
code: "ar-DZ",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
});

View File

@@ -1,10 +1,8 @@
"use strict";
exports.arDZ = void 0;
var _index = require("./ar-DZ/_lib/formatDistance.js");
var _index2 = require("./ar-DZ/_lib/formatLong.js");
var _index3 = require("./ar-DZ/_lib/formatRelative.js");
var _index4 = require("./ar-DZ/_lib/localize.js");
var _index5 = require("./ar-DZ/_lib/match.js");
import { formatDistance } from "./ar-DZ/_lib/formatDistance.js";
import { formatLong } from "./ar-DZ/_lib/formatLong.js";
import { formatRelative } from "./ar-DZ/_lib/formatRelative.js";
import { localize } from "./ar-DZ/_lib/localize.js";
import { match } from "./ar-DZ/_lib/match.js";
/**
* @category Locales
@@ -14,15 +12,18 @@ var _index5 = require("./ar-DZ/_lib/match.js");
* @author Badreddine Boumaza [@badre429](https://github.com/badre429)
* @author Ahmed ElShahat [@elshahat](https://github.com/elshahat)
*/
const arDZ = (exports.arDZ = {
export const arDZ = {
code: "ar-DZ",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
});
};
// Fallback for modularized imports:
export default arDZ;

View File

@@ -1,29 +0,0 @@
import { formatDistance } from "./ar-DZ/_lib/formatDistance.mjs";
import { formatLong } from "./ar-DZ/_lib/formatLong.mjs";
import { formatRelative } from "./ar-DZ/_lib/formatRelative.mjs";
import { localize } from "./ar-DZ/_lib/localize.mjs";
import { match } from "./ar-DZ/_lib/match.mjs";
/**
* @category Locales
* @summary Arabic locale (Algerian Arabic).
* @language Algerian Arabic
* @iso-639-2 ara
* @author Badreddine Boumaza [@badre429](https://github.com/badre429)
* @author Ahmed ElShahat [@elshahat](https://github.com/elshahat)
*/
export const arDZ = {
code: "ar-DZ",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
};
// Fallback for modularized imports:
export default arDZ;

View File

@@ -1,3 +1,6 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "أقل من ثانية واحدة",
@@ -107,7 +110,7 @@ const formatDistanceLocale = {
},
};
export const formatDistance = (token, count, options) => {
const formatDistance = (token, count, options) => {
options = options || {};
const usageGroup = formatDistanceLocale[token];
@@ -134,3 +137,4 @@ export const formatDistance = (token, count, options) => {
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -1,6 +1,3 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "أقل من ثانية واحدة",
@@ -110,7 +107,7 @@ const formatDistanceLocale = {
},
};
const formatDistance = (token, count, options) => {
export const formatDistance = (token, count, options) => {
options = options || {};
const usageGroup = formatDistanceLocale[token];
@@ -137,4 +134,3 @@ const formatDistance = (token, count, options) => {
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -1,4 +1,6 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.cjs");
const dateFormats = {
full: "EEEE, MMMM do, y",
@@ -21,19 +23,19 @@ const dateTimeFormats = {
short: "{{date}}, {{time}}",
};
export const formatLong = {
date: buildFormatLongFn({
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
formats: dateFormats,
defaultWidth: "full",
}),
time: buildFormatLongFn({
time: (0, _index.buildFormatLongFn)({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: buildFormatLongFn({
dateTime: (0, _index.buildFormatLongFn)({
formats: dateTimeFormats,
defaultWidth: "full",
}),
};
});

View File

@@ -1,6 +1,4 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.js");
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js";
const dateFormats = {
full: "EEEE, MMMM do, y",
@@ -23,19 +21,19 @@ const dateTimeFormats = {
short: "{{date}}, {{time}}",
};
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
export const formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full",
}),
time: (0, _index.buildFormatLongFn)({
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: (0, _index.buildFormatLongFn)({
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full",
}),
});
};

View File

@@ -1,3 +1,6 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "'أخر' eeee 'عند' p",
yesterday: "'أمس عند' p",
@@ -7,6 +10,7 @@ const formatRelativeLocale = {
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) => {
const formatRelative = (token, _date, _baseDate, _options) => {
return formatRelativeLocale[token];
};
exports.formatRelative = formatRelative;

View File

@@ -1,6 +1,3 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "'أخر' eeee 'عند' p",
yesterday: "'أمس عند' p",
@@ -10,7 +7,6 @@ const formatRelativeLocale = {
other: "P",
};
const formatRelative = (token, _date, _baseDate, _options) => {
export const formatRelative = (token, _date, _baseDate, _options) => {
return formatRelativeLocale[token];
};
exports.formatRelative = formatRelative;

View File

@@ -1,4 +1,6 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.cjs");
const eraValues = {
narrow: ["ق", "ب"],
@@ -129,34 +131,34 @@ const ordinalNumber = (dirtyNumber) => {
return String(dirtyNumber);
};
export const localize = {
const localize = (exports.localize = {
ordinalNumber: ordinalNumber,
era: buildLocalizeFn({
era: (0, _index.buildLocalizeFn)({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
quarter: (0, _index.buildLocalizeFn)({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => Number(quarter) - 1,
}),
month: buildLocalizeFn({
month: (0, _index.buildLocalizeFn)({
values: monthValues,
defaultWidth: "wide",
}),
day: buildLocalizeFn({
day: (0, _index.buildLocalizeFn)({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
dayPeriod: (0, _index.buildLocalizeFn)({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};
});

View File

@@ -1,6 +1,4 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.js");
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
const eraValues = {
narrow: ["ق", "ب"],
@@ -131,34 +129,34 @@ const ordinalNumber = (dirtyNumber) => {
return String(dirtyNumber);
};
const localize = (exports.localize = {
export const localize = {
ordinalNumber: ordinalNumber,
era: (0, _index.buildLocalizeFn)({
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: (0, _index.buildLocalizeFn)({
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => Number(quarter) - 1,
}),
month: (0, _index.buildLocalizeFn)({
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
}),
day: (0, _index.buildLocalizeFn)({
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: (0, _index.buildLocalizeFn)({
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
});
};

View File

@@ -1,5 +1,7 @@
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchPatternFn.cjs");
var _index2 = require("../../_lib/buildMatchFn.cjs");
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
const parseOrdinalNumberPattern = /\d+/i;
@@ -98,21 +100,21 @@ const parseDayPeriodPatterns = {
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
const match = (exports.match = {
ordinalNumber: (0, _index.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: buildMatchFn({
era: (0, _index2.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
quarter: (0, _index2.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
@@ -120,24 +122,24 @@ export const match = {
valueCallback: (index) => Number(index) + 1,
}),
month: buildMatchFn({
month: (0, _index2.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
day: (0, _index2.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
dayPeriod: (0, _index2.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};
});

View File

@@ -1,7 +1,5 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchPatternFn.js");
var _index2 = require("../../_lib/buildMatchFn.js");
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js";
import { buildMatchFn } from "../../_lib/buildMatchFn.js";
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
const parseOrdinalNumberPattern = /\d+/i;
@@ -100,21 +98,21 @@ const parseDayPeriodPatterns = {
},
};
const match = (exports.match = {
ordinalNumber: (0, _index.buildMatchPatternFn)({
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: (0, _index2.buildMatchFn)({
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index2.buildMatchFn)({
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
@@ -122,24 +120,24 @@ const match = (exports.match = {
valueCallback: (index) => Number(index) + 1,
}),
month: (0, _index2.buildMatchFn)({
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index2.buildMatchFn)({
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index2.buildMatchFn)({
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});
};

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

27
frontend/style/node_modules/date-fns/locale/ar-EG.cjs generated vendored Normal file
View File

@@ -0,0 +1,27 @@
"use strict";
exports.arEG = void 0;
var _index = require("./ar-EG/_lib/formatDistance.cjs");
var _index2 = require("./ar-EG/_lib/formatLong.cjs");
var _index3 = require("./ar-EG/_lib/formatRelative.cjs");
var _index4 = require("./ar-EG/_lib/localize.cjs");
var _index5 = require("./ar-EG/_lib/match.cjs");
/**
* @category Locales
* @summary Arabic locale (Egypt).
* @language Arabic
* @iso-639-2 ara
* @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13](https://github.com/AbdAllahAbdElFattah13)
*/
const arEG = (exports.arEG = {
code: "ar-EG",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
});

View File

@@ -1,10 +1,8 @@
"use strict";
exports.arEG = void 0;
var _index = require("./ar-EG/_lib/formatDistance.js");
var _index2 = require("./ar-EG/_lib/formatLong.js");
var _index3 = require("./ar-EG/_lib/formatRelative.js");
var _index4 = require("./ar-EG/_lib/localize.js");
var _index5 = require("./ar-EG/_lib/match.js");
import { formatDistance } from "./ar-EG/_lib/formatDistance.js";
import { formatLong } from "./ar-EG/_lib/formatLong.js";
import { formatRelative } from "./ar-EG/_lib/formatRelative.js";
import { localize } from "./ar-EG/_lib/localize.js";
import { match } from "./ar-EG/_lib/match.js";
/**
* @category Locales
@@ -13,15 +11,18 @@ var _index5 = require("./ar-EG/_lib/match.js");
* @iso-639-2 ara
* @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13](https://github.com/AbdAllahAbdElFattah13)
*/
const arEG = (exports.arEG = {
export const arEG = {
code: "ar-EG",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
});
};
// Fallback for modularized imports:
export default arEG;

View File

@@ -1,28 +0,0 @@
import { formatDistance } from "./ar-EG/_lib/formatDistance.mjs";
import { formatLong } from "./ar-EG/_lib/formatLong.mjs";
import { formatRelative } from "./ar-EG/_lib/formatRelative.mjs";
import { localize } from "./ar-EG/_lib/localize.mjs";
import { match } from "./ar-EG/_lib/match.mjs";
/**
* @category Locales
* @summary Arabic locale (Egypt).
* @language Arabic
* @iso-639-2 ara
* @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13](https://github.com/AbdAllahAbdElFattah13)
*/
export const arEG = {
code: "ar-EG",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 0 /* Sunday */,
firstWeekContainsDate: 1,
},
};
// Fallback for modularized imports:
export default arEG;

View File

@@ -1,3 +1,6 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "أقل من ثانية",
@@ -107,7 +110,7 @@ const formatDistanceLocale = {
},
};
export const formatDistance = (token, count, options) => {
const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
@@ -133,3 +136,4 @@ export const formatDistance = (token, count, options) => {
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -1,6 +1,3 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "أقل من ثانية",
@@ -110,7 +107,7 @@ const formatDistanceLocale = {
},
};
const formatDistance = (token, count, options) => {
export const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
@@ -136,4 +133,3 @@ const formatDistance = (token, count, options) => {
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -1,4 +1,6 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.cjs");
const dateFormats = {
full: "EEEE، do MMMM y",
@@ -21,19 +23,19 @@ const dateTimeFormats = {
short: "{{date}}, {{time}}",
};
export const formatLong = {
date: buildFormatLongFn({
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
formats: dateFormats,
defaultWidth: "full",
}),
time: buildFormatLongFn({
time: (0, _index.buildFormatLongFn)({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: buildFormatLongFn({
dateTime: (0, _index.buildFormatLongFn)({
formats: dateTimeFormats,
defaultWidth: "full",
}),
};
});

View File

@@ -1,6 +1,4 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.js");
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js";
const dateFormats = {
full: "EEEE، do MMMM y",
@@ -23,19 +21,19 @@ const dateTimeFormats = {
short: "{{date}}, {{time}}",
};
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
export const formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full",
}),
time: (0, _index.buildFormatLongFn)({
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: (0, _index.buildFormatLongFn)({
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full",
}),
});
};

View File

@@ -1,3 +1,6 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "eeee 'اللي جاي الساعة' p",
yesterday: "'إمبارح الساعة' p",
@@ -7,5 +10,6 @@ const formatRelativeLocale = {
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) =>
const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];
exports.formatRelative = formatRelative;

View File

@@ -1,6 +1,3 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "eeee 'اللي جاي الساعة' p",
yesterday: "'إمبارح الساعة' p",
@@ -10,6 +7,5 @@ const formatRelativeLocale = {
other: "P",
};
const formatRelative = (token, _date, _baseDate, _options) =>
export const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];
exports.formatRelative = formatRelative;

View File

@@ -1,4 +1,6 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.cjs");
const eraValues = {
narrow: ["ق", "ب"],
@@ -131,34 +133,34 @@ const ordinalNumber = (dirtyNumber, _options) => {
return String(dirtyNumber);
};
export const localize = {
const localize = (exports.localize = {
ordinalNumber,
era: buildLocalizeFn({
era: (0, _index.buildLocalizeFn)({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
quarter: (0, _index.buildLocalizeFn)({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: buildLocalizeFn({
month: (0, _index.buildLocalizeFn)({
values: monthValues,
defaultWidth: "wide",
}),
day: buildLocalizeFn({
day: (0, _index.buildLocalizeFn)({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
dayPeriod: (0, _index.buildLocalizeFn)({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};
});

View File

@@ -1,6 +1,4 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.js");
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
const eraValues = {
narrow: ["ق", "ب"],
@@ -133,34 +131,34 @@ const ordinalNumber = (dirtyNumber, _options) => {
return String(dirtyNumber);
};
const localize = (exports.localize = {
export const localize = {
ordinalNumber,
era: (0, _index.buildLocalizeFn)({
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: (0, _index.buildLocalizeFn)({
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: (0, _index.buildLocalizeFn)({
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
}),
day: (0, _index.buildLocalizeFn)({
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: (0, _index.buildLocalizeFn)({
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
});
};

View File

@@ -1,5 +1,8 @@
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.cjs");
var _index2 = require("../../_lib/buildMatchPatternFn.cjs");
const matchOrdinalNumberPattern = /^(\d+)/;
const parseOrdinalNumberPattern = /\d+/i;
@@ -90,8 +93,8 @@ const parseDayPeriodPatterns = {
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function (value) {
@@ -99,14 +102,14 @@ export const match = {
},
}),
era: buildMatchFn({
era: (0, _index.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
quarter: (0, _index.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
@@ -114,24 +117,24 @@ export const match = {
valueCallback: (index) => index + 1,
}),
month: buildMatchFn({
month: (0, _index.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
day: (0, _index.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
dayPeriod: (0, _index.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};
});

View File

@@ -1,8 +1,5 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.js");
var _index2 = require("../../_lib/buildMatchPatternFn.js");
import { buildMatchFn } from "../../_lib/buildMatchFn.js";
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js";
const matchOrdinalNumberPattern = /^(\d+)/;
const parseOrdinalNumberPattern = /\d+/i;
@@ -93,8 +90,8 @@ const parseDayPeriodPatterns = {
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function (value) {
@@ -102,14 +99,14 @@ const match = (exports.match = {
},
}),
era: (0, _index.buildMatchFn)({
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index.buildMatchFn)({
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
@@ -117,24 +114,24 @@ const match = (exports.match = {
valueCallback: (index) => index + 1,
}),
month: (0, _index.buildMatchFn)({
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index.buildMatchFn)({
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index.buildMatchFn)({
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});
};

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

28
frontend/style/node_modules/date-fns/locale/ar-MA.cjs generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
exports.arMA = void 0;
var _index = require("./ar-MA/_lib/formatDistance.cjs");
var _index2 = require("./ar-MA/_lib/formatLong.cjs");
var _index3 = require("./ar-MA/_lib/formatRelative.cjs");
var _index4 = require("./ar-MA/_lib/localize.cjs");
var _index5 = require("./ar-MA/_lib/match.cjs");
/**
* @category Locales
* @summary Arabic locale (Moroccan Arabic).
* @language Moroccan Arabic
* @iso-639-2 ara
* @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf)
*/
const arMA = (exports.arMA = {
code: "ar-MA",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
options: {
// Monday is 1
weekStartsOn: 1,
firstWeekContainsDate: 1,
},
});

View File

@@ -1,10 +1,8 @@
"use strict";
exports.arMA = void 0;
var _index = require("./ar-MA/_lib/formatDistance.js");
var _index2 = require("./ar-MA/_lib/formatLong.js");
var _index3 = require("./ar-MA/_lib/formatRelative.js");
var _index4 = require("./ar-MA/_lib/localize.js");
var _index5 = require("./ar-MA/_lib/match.js");
import { formatDistance } from "./ar-MA/_lib/formatDistance.js";
import { formatLong } from "./ar-MA/_lib/formatLong.js";
import { formatRelative } from "./ar-MA/_lib/formatRelative.js";
import { localize } from "./ar-MA/_lib/localize.js";
import { match } from "./ar-MA/_lib/match.js";
/**
* @category Locales
@@ -13,16 +11,19 @@ var _index5 = require("./ar-MA/_lib/match.js");
* @iso-639-2 ara
* @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf)
*/
const arMA = (exports.arMA = {
export const arMA = {
code: "ar-MA",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
// Monday is 1
weekStartsOn: 1,
firstWeekContainsDate: 1,
},
});
};
// Fallback for modularized imports:
export default arMA;

View File

@@ -1,29 +0,0 @@
import { formatDistance } from "./ar-MA/_lib/formatDistance.mjs";
import { formatLong } from "./ar-MA/_lib/formatLong.mjs";
import { formatRelative } from "./ar-MA/_lib/formatRelative.mjs";
import { localize } from "./ar-MA/_lib/localize.mjs";
import { match } from "./ar-MA/_lib/match.mjs";
/**
* @category Locales
* @summary Arabic locale (Moroccan Arabic).
* @language Moroccan Arabic
* @iso-639-2 ara
* @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf)
*/
export const arMA = {
code: "ar-MA",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
// Monday is 1
weekStartsOn: 1,
firstWeekContainsDate: 1,
},
};
// Fallback for modularized imports:
export default arMA;

View File

@@ -1,3 +1,6 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "أقل من ثانية واحدة",
@@ -107,7 +110,7 @@ const formatDistanceLocale = {
},
};
export const formatDistance = (token, count, options) => {
const formatDistance = (token, count, options) => {
options = options || {};
const usageGroup = formatDistanceLocale[token];
@@ -134,3 +137,4 @@ export const formatDistance = (token, count, options) => {
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -1,6 +1,3 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "أقل من ثانية واحدة",
@@ -110,7 +107,7 @@ const formatDistanceLocale = {
},
};
const formatDistance = (token, count, options) => {
export const formatDistance = (token, count, options) => {
options = options || {};
const usageGroup = formatDistanceLocale[token];
@@ -137,4 +134,3 @@ const formatDistance = (token, count, options) => {
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -1,4 +1,6 @@
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.cjs");
const dateFormats = {
full: "EEEE, MMMM do, y",
@@ -21,19 +23,19 @@ const dateTimeFormats = {
short: "{{date}}, {{time}}",
};
export const formatLong = {
date: buildFormatLongFn({
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
formats: dateFormats,
defaultWidth: "full",
}),
time: buildFormatLongFn({
time: (0, _index.buildFormatLongFn)({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: buildFormatLongFn({
dateTime: (0, _index.buildFormatLongFn)({
formats: dateTimeFormats,
defaultWidth: "full",
}),
};
});

View File

@@ -1,6 +1,4 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.js");
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js";
const dateFormats = {
full: "EEEE, MMMM do, y",
@@ -23,19 +21,19 @@ const dateTimeFormats = {
short: "{{date}}, {{time}}",
};
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
export const formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
defaultWidth: "full",
}),
time: (0, _index.buildFormatLongFn)({
time: buildFormatLongFn({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: (0, _index.buildFormatLongFn)({
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
defaultWidth: "full",
}),
});
};

View File

@@ -1,3 +1,6 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "'أخر' eeee 'عند' p",
yesterday: "'أمس عند' p",
@@ -7,6 +10,7 @@ const formatRelativeLocale = {
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) => {
const formatRelative = (token, _date, _baseDate, _options) => {
return formatRelativeLocale[token];
};
exports.formatRelative = formatRelative;

View File

@@ -1,6 +1,3 @@
"use strict";
exports.formatRelative = void 0;
const formatRelativeLocale = {
lastWeek: "'أخر' eeee 'عند' p",
yesterday: "'أمس عند' p",
@@ -10,7 +7,6 @@ const formatRelativeLocale = {
other: "P",
};
const formatRelative = (token, _date, _baseDate, _options) => {
export const formatRelative = (token, _date, _baseDate, _options) => {
return formatRelativeLocale[token];
};
exports.formatRelative = formatRelative;

View File

@@ -1,4 +1,6 @@
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.cjs");
const eraValues = {
narrow: ["ق", "ب"],
@@ -129,34 +131,34 @@ const ordinalNumber = (dirtyNumber) => {
return String(dirtyNumber);
};
export const localize = {
const localize = (exports.localize = {
ordinalNumber: ordinalNumber,
era: buildLocalizeFn({
era: (0, _index.buildLocalizeFn)({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
quarter: (0, _index.buildLocalizeFn)({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => Number(quarter) - 1,
}),
month: buildLocalizeFn({
month: (0, _index.buildLocalizeFn)({
values: monthValues,
defaultWidth: "wide",
}),
day: buildLocalizeFn({
day: (0, _index.buildLocalizeFn)({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
dayPeriod: (0, _index.buildLocalizeFn)({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};
});

View File

@@ -1,6 +1,4 @@
"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.js");
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
const eraValues = {
narrow: ["ق", "ب"],
@@ -131,34 +129,34 @@ const ordinalNumber = (dirtyNumber) => {
return String(dirtyNumber);
};
const localize = (exports.localize = {
export const localize = {
ordinalNumber: ordinalNumber,
era: (0, _index.buildLocalizeFn)({
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: (0, _index.buildLocalizeFn)({
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => Number(quarter) - 1,
}),
month: (0, _index.buildLocalizeFn)({
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
}),
day: (0, _index.buildLocalizeFn)({
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: (0, _index.buildLocalizeFn)({
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
});
};

View File

@@ -1,5 +1,7 @@
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchPatternFn.cjs");
var _index2 = require("../../_lib/buildMatchFn.cjs");
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
const parseOrdinalNumberPattern = /\d+/i;
@@ -97,21 +99,21 @@ const parseDayPeriodPatterns = {
},
};
export const match = {
ordinalNumber: buildMatchPatternFn({
const match = (exports.match = {
ordinalNumber: (0, _index.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: buildMatchFn({
era: (0, _index2.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: buildMatchFn({
quarter: (0, _index2.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
@@ -119,24 +121,24 @@ export const match = {
valueCallback: (index) => Number(index) + 1,
}),
month: buildMatchFn({
month: (0, _index2.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: buildMatchFn({
day: (0, _index2.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: buildMatchFn({
dayPeriod: (0, _index2.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
};
});

View File

@@ -1,7 +1,5 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchPatternFn.js");
var _index2 = require("../../_lib/buildMatchFn.js");
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js";
import { buildMatchFn } from "../../_lib/buildMatchFn.js";
const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
const parseOrdinalNumberPattern = /\d+/i;
@@ -99,21 +97,21 @@ const parseDayPeriodPatterns = {
},
};
const match = (exports.match = {
ordinalNumber: (0, _index.buildMatchPatternFn)({
export const match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: (0, _index2.buildMatchFn)({
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index2.buildMatchFn)({
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
@@ -121,24 +119,24 @@ const match = (exports.match = {
valueCallback: (index) => Number(index) + 1,
}),
month: (0, _index2.buildMatchFn)({
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index2.buildMatchFn)({
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index2.buildMatchFn)({
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});
};

Some files were not shown because too many files have changed in this diff Show More