decord/source/12058_getRussianPlural.js
2026-07-27 11:26:19 +00:00

218 lines
12 KiB
JavaScript

// Module ID: 12058
// Function ID: 93837
// Name: getRussianPlural
// Dependencies: [12016]
// Module 12058 (getRussianPlural)
const self = this;
function getRussianPlural(arg0, arg1, arg2, arg3) {
let tmp = arg1;
const absolute = Math.abs(arg0);
const result = absolute % 10;
const result1 = absolute % 100;
if (result1 < 11) {
if (1 !== result) {
let tmp6 = arg3;
if (result >= 2) {
tmp6 = arg3;
if (result <= 4) {
tmp6 = arg2;
}
}
tmp = tmp6;
}
let tmp5 = tmp;
} else {
tmp5 = arg3;
}
return tmp5;
}
let self2 = this;
if (this) {
self2 = self.__createBinding;
}
if (self2) {
let __setModuleDefault = self;
if (self) {
__setModuleDefault = self.__setModuleDefault;
}
if (__setModuleDefault) {
let fn = self;
if (self) {
fn = self.__importStar;
}
if (!fn) {
fn = (__esModule) => {
if (__esModule) {
if (__esModule.__esModule) {
return __esModule;
}
}
const obj = {};
if (null != __esModule) {
for (const key10009 in arg0) {
let tmp7 = key10009;
let callResult = "default" !== key10009;
if (callResult) {
let _Object = Object;
callResult = hasOwnProperty.call(arg0, key10009);
}
if (!callResult) {
continue;
} else {
let tmp4 = self2;
let tmp5 = self2(obj, arg0, key10009);
continue;
}
continue;
}
}
__setModuleDefault(obj, __esModule);
return obj;
};
}
const _Object3 = Object;
let obj = { value: true };
exports.default = function default_1() {
return { localeError: error() };
};
let closure_2 = fn(require("cached"));
function error() {
function getSizing(arg0) {
let tmp2 = null;
if (null != table[arg0]) {
tmp2 = tmp;
}
return tmp2;
}
let closure_0 = { string: { unit: { one: "\u0441\u0438\u043C\u0432\u043E\u043B", few: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", many: "\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432" }, verb: "\u0438\u043C\u0435\u0442\u044C" }, file: { unit: { one: "\u0431\u0430\u0439\u0442", few: "\u0431\u0430\u0439\u0442\u0430", many: "\u0431\u0430\u0439\u0442" }, verb: "\u0438\u043C\u0435\u0442\u044C" }, array: { unit: { one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442", few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430", many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432" }, verb: "\u0438\u043C\u0435\u0442\u044C" }, set: { unit: { one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442", few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430", many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432" }, verb: "\u0438\u043C\u0435\u0442\u044C" } };
let closure_1 = { regex: "\u0432\u0432\u043E\u0434", email: "email \u0430\u0434\u0440\u0435\u0441", url: "URL", emoji: "\u044D\u043C\u043E\u0434\u0437\u0438", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F", date: "ISO \u0434\u0430\u0442\u0430", time: "ISO \u0432\u0440\u0435\u043C\u044F", duration: "ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C", ipv4: "IPv4 \u0430\u0434\u0440\u0435\u0441", ipv6: "IPv6 \u0430\u0434\u0440\u0435\u0441", cidrv4: "IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D", cidrv6: "IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D", base64: "\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64", base64url: "\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url", json_string: "JSON \u0441\u0442\u0440\u043E\u043A\u0430", e164: "\u043D\u043E\u043C\u0435\u0440 E.164", jwt: "JWT", template_literal: "\u0432\u0432\u043E\u0434" };
let closure_2 = { nan: "NaN", number: "\u0447\u0438\u0441\u043B\u043E", array: "\u043C\u0430\u0441\u0441\u0438\u0432" };
return (code) => {
let minimum;
let origin;
code = code.code;
if ("invalid_type" === code) {
let expected = closure_2[code.expected];
if (null == expected) {
expected = code.expected;
}
const parsedTypeResult = closure_2.parsedType(code.input);
let tmp48 = parsedTypeResult;
if (null != closure_2[parsedTypeResult]) {
tmp48 = tmp47;
}
if (obj.test(code.expected)) {
const _HermesInternal17 = HermesInternal;
let combined = "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof " + code.expected + ", \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E " + tmp48;
} else {
const _HermesInternal16 = HermesInternal;
combined = "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C " + expected + ", \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E " + tmp48;
}
return combined;
} else if ("invalid_value" === code) {
if (1 === code.values.length) {
const _HermesInternal15 = HermesInternal;
let combined1 = "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C " + closure_2.stringifyPrimitive(code.values[0]);
} else {
const _HermesInternal14 = HermesInternal;
combined1 = "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 " + closure_2.joinValues(code.values, "|");
}
return combined1;
} else if ("too_big" === code) {
let str31 = "<";
if (code.inclusive) {
str31 = "<=";
}
const tmp25 = getSizing(code.origin);
if (tmp25) {
const _Number2 = Number;
const tmp32 = outer1_4(Number(code.maximum), tmp25.unit.one, tmp25.unit.few, tmp25.unit.many);
const origin3 = code.origin;
let str36 = "\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435";
if (null != origin3) {
str36 = origin3;
}
const _HermesInternal13 = HermesInternal;
return "\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E " + str36 + " \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C " + str31 + code.maximum.toString() + " " + tmp32;
} else {
const origin2 = code.origin;
let str32 = "\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435";
if (null != origin2) {
str32 = origin2;
}
const _HermesInternal12 = HermesInternal;
return "\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E " + str32 + " \u0431\u0443\u0434\u0435\u0442 " + str31 + code.maximum.toString();
}
} else if ("too_small" === code) {
let str24 = ">";
if (code.inclusive) {
str24 = ">=";
}
const tmp17 = getSizing(code.origin);
if (tmp17) {
const _Number = Number;
const _HermesInternal11 = HermesInternal;
return "\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E " + code.origin + " \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C " + str24 + code.minimum.toString() + " " + outer1_4(Number(code.minimum), tmp17.unit.one, tmp17.unit.few, tmp17.unit.many);
} else {
({ minimum, origin } = code);
const _HermesInternal10 = HermesInternal;
return "\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E " + origin + " \u0431\u0443\u0434\u0435\u0442 " + str24 + minimum.toString();
}
} else if ("invalid_format" === code) {
if ("starts_with" === code.format) {
const _HermesInternal9 = HermesInternal;
let combined2 = "\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 \"" + code.prefix + "\"";
} else if ("ends_with" === code.format) {
const _HermesInternal8 = HermesInternal;
combined2 = "\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 \"" + code.suffix + "\"";
} else if ("includes" === code.format) {
const _HermesInternal7 = HermesInternal;
combined2 = "\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \"" + code.includes + "\"";
} else if ("regex" === code.format) {
const _HermesInternal6 = HermesInternal;
combined2 = "\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 " + code.pattern;
} else {
let format = table2[code.format];
if (null == format) {
format = code.format;
}
const _HermesInternal5 = HermesInternal;
combined2 = "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 " + format;
}
return combined2;
} else if ("not_multiple_of" === code) {
const _HermesInternal4 = HermesInternal;
return "\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C " + code.divisor;
} else if ("unrecognized_keys" === code) {
let str7 = "\u044B\u0439";
if (code.keys.length > 1) {
str7 = "\u044B\u0435";
}
let str8 = "";
if (code.keys.length > 1) {
str8 = "\u0438";
}
const _HermesInternal3 = HermesInternal;
return "\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D" + str7 + " \u043A\u043B\u044E\u0447" + str8 + ": " + closure_2.joinValues(code.keys, ", ");
} else if ("invalid_key" === code) {
const _HermesInternal2 = HermesInternal;
return "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 " + code.origin;
} else {
if ("invalid_union" !== code) {
if ("invalid_element" === code) {
const _HermesInternal = HermesInternal;
return "\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 " + code.origin;
}
}
return "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";
}
};
}
module.exports = exports.default;
} else {
const _Object2 = Object;
}
} else {
let _Object = Object;
}