202 lines
10 KiB
JavaScript
202 lines
10 KiB
JavaScript
// Module ID: 12057
|
|
// Function ID: 93762
|
|
// Name: cached
|
|
// Dependencies: [12039]
|
|
|
|
// Module 12057 (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;
|
|
}
|
|
let closure_0 = { string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }, file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }, array: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }, set: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" } };
|
|
let closure_1 = { regex: "\u0648\u0631\u0648\u062F\u06CC", email: "\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644", url: "URL", emoji: "\u0627\u06CC\u0645\u0648\u062C\u06CC", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648", date: "\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648", time: "\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648", duration: "\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648", ipv4: "IPv4 \u0622\u062F\u0631\u0633", ipv6: "IPv6 \u0622\u062F\u0631\u0633", cidrv4: "IPv4 \u062F\u0627\u0645\u0646\u0647", cidrv6: "IPv6 \u062F\u0627\u0645\u0646\u0647", base64: "base64-encoded \u0631\u0634\u062A\u0647", base64url: "base64url-encoded \u0631\u0634\u062A\u0647", json_string: "JSON \u0631\u0634\u062A\u0647", e164: "E.164 \u0639\u062F\u062F", jwt: "JWT", template_literal: "\u0648\u0631\u0648\u062F\u06CC" };
|
|
let closure_2 = { nan: "NaN", number: "\u0639\u062F\u062F", array: "\u0622\u0631\u0627\u06CC\u0647" };
|
|
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 tmp51 = parsedTypeResult;
|
|
if (null != closure_2[parsedTypeResult]) {
|
|
tmp51 = tmp50;
|
|
}
|
|
if (obj.test(code.expected)) {
|
|
const _HermesInternal17 = HermesInternal;
|
|
let combined = "\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof " + code.expected + " \u0645\u06CC\u200C\u0628\u0648\u062F\u060C " + tmp51 + " \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F";
|
|
} else {
|
|
const _HermesInternal16 = HermesInternal;
|
|
combined = "\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A " + expected + " \u0645\u06CC\u200C\u0628\u0648\u062F\u060C " + tmp51 + " \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F";
|
|
}
|
|
return combined;
|
|
} else if ("invalid_value" === code) {
|
|
if (1 === code.values.length) {
|
|
const _HermesInternal15 = HermesInternal;
|
|
let combined1 = "\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A " + closure_2.stringifyPrimitive(code.values[0]) + " \u0645\u06CC\u200C\u0628\u0648\u062F";
|
|
} else {
|
|
const _HermesInternal14 = HermesInternal;
|
|
combined1 = "\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 " + closure_2.joinValues(code.values, "|") + " \u0645\u06CC\u200C\u0628\u0648\u062F";
|
|
}
|
|
return combined1;
|
|
} else if ("too_big" === code) {
|
|
let str33 = "<";
|
|
if (code.inclusive) {
|
|
str33 = "<=";
|
|
}
|
|
const tmp26 = getSizing(code.origin);
|
|
const origin2 = code.origin;
|
|
let str34 = "\u0645\u0642\u062F\u0627\u0631";
|
|
if (tmp26) {
|
|
if (tmp28) {
|
|
str34 = origin2;
|
|
}
|
|
let str = code.maximum.toString();
|
|
const unit = tmp26.unit;
|
|
let str40 = "\u0639\u0646\u0635\u0631";
|
|
if (null != unit) {
|
|
str40 = unit;
|
|
}
|
|
const _HermesInternal13 = HermesInternal;
|
|
let combined2 = "\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: " + str34 + " \u0628\u0627\u06CC\u062F " + str33 + str + " " + str40 + " \u0628\u0627\u0634\u062F";
|
|
const str39 = code.maximum;
|
|
} else {
|
|
let tmp29 = str34;
|
|
if (tmp28) {
|
|
tmp29 = origin2;
|
|
}
|
|
const _HermesInternal12 = HermesInternal;
|
|
combined2 = "\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: " + tmp29 + " \u0628\u0627\u06CC\u062F " + str33 + code.maximum.toString() + " \u0628\u0627\u0634\u062F";
|
|
const str35 = code.maximum;
|
|
}
|
|
return combined2;
|
|
} else if ("too_small" === code) {
|
|
let str25 = ">";
|
|
if (code.inclusive) {
|
|
str25 = ">=";
|
|
}
|
|
const tmp15 = getSizing(code.origin);
|
|
({ origin, minimum } = code);
|
|
const str1 = minimum.toString();
|
|
if (tmp15) {
|
|
const _HermesInternal11 = HermesInternal;
|
|
let combined3 = "\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: " + origin + " \u0628\u0627\u06CC\u062F " + str25 + str1 + " " + tmp15.unit + " \u0628\u0627\u0634\u062F";
|
|
} else {
|
|
const _HermesInternal10 = HermesInternal;
|
|
combined3 = "\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: " + origin + " \u0628\u0627\u06CC\u062F " + str25 + str1 + " \u0628\u0627\u0634\u062F";
|
|
}
|
|
return combined3;
|
|
} else if ("invalid_format" === code) {
|
|
if ("starts_with" === code.format) {
|
|
const _HermesInternal9 = HermesInternal;
|
|
let combined4 = "\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \"" + code.prefix + "\" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F";
|
|
} else if ("ends_with" === code.format) {
|
|
const _HermesInternal8 = HermesInternal;
|
|
combined4 = "\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \"" + code.suffix + "\" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F";
|
|
} else if ("includes" === code.format) {
|
|
const _HermesInternal7 = HermesInternal;
|
|
combined4 = "\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 \"" + code.includes + "\" \u0628\u0627\u0634\u062F";
|
|
} else if ("regex" === code.format) {
|
|
const _HermesInternal6 = HermesInternal;
|
|
combined4 = "\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC " + code.pattern + " \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F";
|
|
} else {
|
|
let format = table2[code.format];
|
|
if (null == format) {
|
|
format = code.format;
|
|
}
|
|
const _HermesInternal5 = HermesInternal;
|
|
combined4 = "" + format + " \u0646\u0627\u0645\u0639\u062A\u0628\u0631";
|
|
}
|
|
return combined4;
|
|
} else if ("not_multiple_of" === code) {
|
|
const _HermesInternal4 = HermesInternal;
|
|
return "\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 " + code.divisor + " \u0628\u0627\u0634\u062F";
|
|
} else if ("unrecognized_keys" === code) {
|
|
let str7 = "";
|
|
if (code.keys.length > 1) {
|
|
str7 = "\u0647\u0627\u06CC";
|
|
}
|
|
const _HermesInternal3 = HermesInternal;
|
|
return "\u06A9\u0644\u06CC\u062F" + str7 + " \u0646\u0627\u0634\u0646\u0627\u0633: " + closure_2.joinValues(code.keys, ", ");
|
|
} else {
|
|
str = "invalid_key";
|
|
if ("invalid_key" === code) {
|
|
const _HermesInternal2 = HermesInternal;
|
|
return "\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 " + code.origin;
|
|
} else {
|
|
if ("invalid_union" !== code) {
|
|
if ("invalid_element" === code) {
|
|
const _HermesInternal = HermesInternal;
|
|
return "\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 " + code.origin;
|
|
}
|
|
}
|
|
return "\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";
|
|
}
|
|
}
|
|
};
|
|
}
|
|
module.exports = exports.default;
|
|
} else {
|
|
const _Object2 = Object;
|
|
}
|
|
} else {
|
|
let _Object = Object;
|
|
}
|