decord/source/12068_cached.js

193 lines
11 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 12068
2026-07-24 07:16:23 +00:00
// Function ID: 93890
2026-07-23 10:11:24 +00:00
// Name: cached
2026-07-24 07:16:23 +00:00
// Dependencies: [12039]
2026-07-23 10:11:24 +00:00
// Module 12068 (cached)
const self = this;
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;
}
2026-07-24 07:16:23 +00:00
let closure_0 = { string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }, file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }, array: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }, set: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" } };
let closure_1 = { regex: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0", email: "\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8", url: "URL", emoji: "\u10D4\u10DB\u10DD\u10EF\u10D8", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD", date: "\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8", time: "\u10D3\u10E0\u10DD", duration: "\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0", ipv4: "IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8", ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8", cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8", cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8", base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8", base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8", json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8", e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8", jwt: "JWT", template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0" };
let closure_2 = { nan: "NaN", number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8", string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8", boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8", function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0", array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8" };
2026-07-23 10:11:24 +00:00
return (code) => {
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);
2026-07-24 07:16:23 +00:00
let tmp46 = parsedTypeResult;
2026-07-23 10:11:24 +00:00
if (null != closure_2[parsedTypeResult]) {
2026-07-24 07:16:23 +00:00
tmp46 = tmp45;
2026-07-23 10:11:24 +00:00
}
if (obj.test(code.expected)) {
const _HermesInternal17 = HermesInternal;
2026-07-24 07:16:23 +00:00
let combined = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof " + code.expected + ", \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 " + tmp46;
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal16 = HermesInternal;
2026-07-24 07:16:23 +00:00
combined = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 " + expected + ", \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 " + tmp46;
2026-07-23 10:11:24 +00:00
}
return combined;
} else if ("invalid_value" === code) {
if (1 === code.values.length) {
const _HermesInternal15 = HermesInternal;
2026-07-24 07:16:23 +00:00
let combined1 = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 " + closure_2.stringifyPrimitive(code.values[0]);
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal14 = HermesInternal;
2026-07-24 07:16:23 +00:00
combined1 = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 " + closure_2.joinValues(code.values, "|") + "-\u10D3\u10D0\u10DC";
2026-07-23 10:11:24 +00:00
}
return combined1;
} else if ("too_big" === code) {
2026-07-24 07:16:23 +00:00
let str35 = "<";
2026-07-23 10:11:24 +00:00
if (code.inclusive) {
2026-07-24 07:16:23 +00:00
str35 = "<=";
2026-07-23 10:11:24 +00:00
}
2026-07-24 07:16:23 +00:00
const tmp24 = getSizing(code.origin);
const origin2 = code.origin;
let str36 = "\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0";
if (tmp24) {
if (tmp26) {
str36 = origin2;
2026-07-23 10:11:24 +00:00
}
const _HermesInternal13 = HermesInternal;
2026-07-24 07:16:23 +00:00
let combined2 = "\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 " + str36 + " " + tmp24.verb + " " + str35 + code.maximum.toString() + " " + tmp24.unit;
const str40 = code.maximum;
2026-07-23 10:11:24 +00:00
} else {
2026-07-24 07:16:23 +00:00
let tmp27 = str36;
if (tmp26) {
tmp27 = origin2;
}
2026-07-23 10:11:24 +00:00
const _HermesInternal12 = HermesInternal;
2026-07-24 07:16:23 +00:00
combined2 = "\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 " + tmp27 + " \u10D8\u10E7\u10DD\u10E1 " + str35 + code.maximum.toString();
const str37 = code.maximum;
2026-07-23 10:11:24 +00:00
}
return combined2;
} else if ("too_small" === code) {
2026-07-24 07:16:23 +00:00
let str25 = ">";
2026-07-23 10:11:24 +00:00
if (code.inclusive) {
2026-07-24 07:16:23 +00:00
str25 = ">=";
2026-07-23 10:11:24 +00:00
}
const tmp15 = getSizing(code.origin);
2026-07-24 07:16:23 +00:00
const origin = code.origin;
2026-07-23 10:11:24 +00:00
if (tmp15) {
const _HermesInternal11 = HermesInternal;
2026-07-24 07:16:23 +00:00
let combined3 = "\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 " + origin + " " + tmp15.verb + " " + str25 + code.minimum.toString() + " " + tmp15.unit;
const str29 = code.minimum;
2026-07-23 10:11:24 +00:00
} else {
const _HermesInternal10 = HermesInternal;
2026-07-24 07:16:23 +00:00
combined3 = "\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 " + origin + " \u10D8\u10E7\u10DD\u10E1 " + str25 + code.minimum.toString();
const str26 = code.minimum;
2026-07-23 10:11:24 +00:00
}
return combined3;
} else if ("invalid_format" === code) {
if ("starts_with" === code.format) {
const _HermesInternal9 = HermesInternal;
2026-07-24 07:16:23 +00:00
let combined4 = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \"" + code.prefix + "\"-\u10D8\u10D7";
2026-07-23 10:11:24 +00:00
} else if ("ends_with" === code.format) {
const _HermesInternal8 = HermesInternal;
2026-07-24 07:16:23 +00:00
combined4 = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \"" + code.suffix + "\"-\u10D8\u10D7";
2026-07-23 10:11:24 +00:00
} else if ("includes" === code.format) {
const _HermesInternal7 = HermesInternal;
2026-07-24 07:16:23 +00:00
combined4 = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 \"" + code.includes + "\"-\u10E1";
2026-07-23 10:11:24 +00:00
} else if ("regex" === code.format) {
const _HermesInternal6 = HermesInternal;
2026-07-24 07:16:23 +00:00
combined4 = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 " + code.pattern;
2026-07-23 10:11:24 +00:00
} else {
let format = table2[code.format];
if (null == format) {
format = code.format;
}
const _HermesInternal5 = HermesInternal;
2026-07-24 07:16:23 +00:00
combined4 = "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 " + format;
2026-07-23 10:11:24 +00:00
}
return combined4;
} else if ("not_multiple_of" === code) {
const _HermesInternal4 = HermesInternal;
2026-07-24 07:16:23 +00:00
return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 " + code.divisor + "-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8";
2026-07-23 10:11:24 +00:00
} else if ("unrecognized_keys" === code) {
2026-07-24 07:16:23 +00:00
let str9 = "\u10D8";
if (code.keys.length > 1) {
str9 = "\u10D4\u10D1\u10D8";
}
2026-07-23 10:11:24 +00:00
const _HermesInternal3 = HermesInternal;
2026-07-24 07:16:23 +00:00
return "\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1" + str9 + ": " + closure_2.joinValues(code.keys, ", ");
2026-07-23 10:11:24 +00:00
} else if ("invalid_key" === code) {
const _HermesInternal2 = HermesInternal;
2026-07-24 07:16:23 +00:00
return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 " + code.origin + "-\u10E8\u10D8";
2026-07-23 10:11:24 +00:00
} else {
if ("invalid_union" !== code) {
if ("invalid_element" === code) {
const _HermesInternal = HermesInternal;
2026-07-24 07:16:23 +00:00
return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 " + code.origin + "-\u10E8\u10D8";
2026-07-23 10:11:24 +00:00
}
}
2026-07-24 07:16:23 +00:00
return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";
2026-07-23 10:11:24 +00:00
}
};
}
module.exports = exports.default;
} else {
const _Object2 = Object;
}
} else {
let _Object = Object;
}