Files
discord-decomp/_bundle/default_1_12137.js
T
2026-11-01 12:12:55 +02:00

180 lines
5.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Metro module 12137 (f12138).
import * as _mergeDefs from "./mergeDefs";
const r2 = (this ? this.__createBinding : this) || (Object.create ? function(a0, a1, a2, a3) {
const r6 = a3 === void 0 ? a2 : a3;
let r9 = Object.getOwnPropertyDescriptor(a1, a2);
if (!(r9 ? !("get" in r9 ? !a1.__esModule : r9.writable || r9.configurable) : r9)) {
r9 = {
enumerable: true,
get: function get() {
return a1[a2];
}
};
}
Object.defineProperty(a0, r6, r9);
} : function(a0, a1, a2, a3) {
a0[a3 === void 0 ? a2 : a3] = a1[a2];
});
let c8369_2, error;
let c8369_0 = r2;
let c8369_1 = (this ? this.__setModuleDefault : this) || (Object.create ? function(a0, a1) {
Object.defineProperty(a0, "default", {
enumerable: true,
value: a1
});
} : function(a0, a1) {
a0.default = a1;
});
const r5 = (this ? this.__importStar : this) || function(a0) {
if (a0 && a0.__esModule) {
return a0;
}
const r15 = {};
if (a0 != null) {
for (const key in a0) {
if (key !== "default" && Object.prototype.hasOwnProperty.call(a0, key)) {
c8369_0(r15, a0, key);
}
}
}
c8369_1(r15, a0);
return r15;
};
export default function default_1() {
let c19602_0 = {
string: {
unit: "字元",
verb: "擁有"
},
file: {
unit: "位元組",
verb: "擁有"
},
array: {
unit: "項目",
verb: "擁有"
},
set: {
unit: "項目",
verb: "擁有"
}
};
let c19602_1 = {
regex: "輸入",
email: "郵件地址",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO 日期時間",
date: "ISO 日期",
time: "ISO 時間",
duration: "ISO 期間",
ipv4: "IPv4 位址",
ipv6: "IPv6 位址",
cidrv4: "IPv4 範圍",
cidrv6: "IPv6 範圍",
base64: "base64 編碼字串",
base64url: "base64url 編碼字串",
json_string: "JSON 字串",
e164: "E.164 數值",
jwt: "JWT",
template_literal: "輸入"
};
let c19602_2 = {
nan: "NaN"
};
return {
localeError: (a0) => {
let r68, r127;
L56: {
switch (a0.code) {
case "invalid_type":
let r168 = c19602_2[a0.expected];
if (r168 == null) {
r168 = a0.expected;
}
const r174 = c8369_2.parsedType(a0.input);
let r175 = c19602_2[r174];
if (r175 == null) {
r175 = r174;
}
return /^[A-Z]/.test(a0.expected) ? `無效的輸入值:預期為 instanceof ${a0.expected},但收到 ${r175}` : `無效的輸入值:預期為 ${r168},但收到 ${r175}`;
case "invalid_value":
return a0.values.length === 1 ? `無效的輸入值:預期為 ${c8369_2.stringifyPrimitive(a0.values[0])}` : `無效的選項:預期為以下其中之一 ${c8369_2.joinValues(a0.values, "|")}`;
case "too_big":
const r111 = a0.inclusive ? "<=" : "<";
let r114 = c19602_0[a0.origin];
if (r114 == null) {
r114 = null;
}
let origin2 = a0.origin;
if (r114) {
if (origin2 == null) {
origin2 = "值";
}
const r130 = a0.maximum.toString();
let unit = r114.unit;
if (unit == null) {
unit = "個元素";
}
r127 = `數值過大:預期 ${origin2} 應為 ${r111}${r130} ${unit}`;
} else {
r127 = `數值過大:預期 ${origin2 == null ? "值" : origin2} 應為 ${r111}${a0.maximum.toString()}`;
}
return r127;
case "too_small":
const r12 = a0.inclusive ? ">=" : ">";
let r95 = c19602_0[a0.origin];
if (r95 == null) {
r95 = null;
}
const origin = a0.origin;
const r10 = a0.minimum.toString();
return r95 ? `數值過小:預期 ${origin} 應為 ${r12}${r10} ${r95.unit}` : `數值過小:預期 ${origin} 應為 ${r12}${r10}`;
case "invalid_format":
if (a0.format === "starts_with") {
r68 = `無效的字串:必須以 "${a0.prefix}" 開頭`;
} else if (a0.format === "ends_with") {
r68 = `無效的字串:必須以 "${a0.suffix}" 結尾`;
} else if (a0.format === "includes") {
r68 = `無效的字串:必須包含 "${a0.includes}"`;
} else if (a0.format === "regex") {
r68 = `無效的字串:必須符合格式 ${a0.pattern}`;
} else {
let r62 = c19602_1[a0.format];
if (r62 == null) {
r62 = a0.format;
}
r68 = `無效的 ${r62}`;
}
return r68;
case "not_multiple_of":
return `無效的數字:必須為 ${a0.divisor} 的倍數`;
case "unrecognized_keys":
return `無法識別的鍵值${a0.keys.length > 1 ? "們" : ""}:${c8369_2.joinValues(a0.keys, "、")}`;
case "invalid_key":
return `${a0.origin} 中有無效的鍵值`;
case "invalid_union":
default:
break L56;
case "invalid_element":
return `${a0.origin} 中有無效的值`;
}
}
return "無效的輸入值";
}
};
};
c8369_2 = r5(_mergeDefs);
error = () => {};
module.exports = exports.default;