arktype 2.2.10 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +181 -15
- package/out/attributes.d.ts +50 -14
- package/out/checkers.d.ts +172 -0
- package/out/chunk-2U2AWCI3.js +626 -0
- package/out/chunk-4CUA5XIP.js +7 -0
- package/out/chunk-5U2ZMDNI.js +1566 -0
- package/out/chunk-DLWCO4RV.js +18 -0
- package/out/chunk-E3DZXEZK.js +72 -0
- package/out/chunk-EVCML554.js +47 -0
- package/out/chunk-G45P2CLE.js +63 -0
- package/out/chunk-GPNK5353.js +2529 -0
- package/out/chunk-MLKGABMK.js +9 -0
- package/out/chunk-NRIGTMPM.js +7 -0
- package/out/chunk-PRTMQCHS.js +3 -0
- package/out/chunk-R5G57XC7.js +7 -0
- package/out/chunk-RAZ3TXOE.js +313 -0
- package/out/chunk-SWOOCAHN.js +4 -0
- package/out/chunk-TAHPKDNM.js +3 -0
- package/out/chunk-UETB6YE2.js +14 -0
- package/out/chunk-UK5UGFOX.js +254 -0
- package/out/chunk-VV6YDN2D.js +6118 -0
- package/out/codecs.d.ts +21 -0
- package/out/codecs.js +7 -0
- package/out/config.d.ts +8 -3
- package/out/config.js +2 -3
- package/out/declare.d.ts +17 -3
- package/out/deferred.d.ts +10 -0
- package/out/errors.d.ts +1 -0
- package/out/errors.js +2 -0
- package/out/fn.d.ts +1 -1
- package/out/generic.d.ts +3 -3
- package/out/i18n.d.ts +2 -0
- package/out/i18n.js +2 -0
- package/out/index.d.ts +5 -4
- package/out/index.js +8 -9
- package/out/internal.d.ts +70 -0
- package/out/internal.js +17 -0
- package/out/island.d.ts +2 -0
- package/out/island.js +6 -0
- package/out/islandDependency.d.ts +2 -0
- package/out/islandDependency.js +18 -0
- package/out/keywords/Array.d.ts +2 -2
- package/out/keywords/builtins.d.ts +5 -3
- package/out/keywords/constructors.d.ts +9 -1
- package/out/keywords/functions.d.ts +254 -0
- package/out/keywords/keywords.d.ts +8 -9
- package/out/keywords/number.d.ts +2 -8
- package/out/keywords/phrases.d.ts +245 -0
- package/out/keywords/string.d.ts +14 -113
- package/out/keywords/ts.d.ts +35 -33
- package/out/keywords/ts.js +4 -82
- package/out/locale.d.ts +19 -0
- package/out/locales/de.d.ts +2 -0
- package/out/locales/de.js +2 -0
- package/out/locales/en.d.ts +4 -0
- package/out/locales/en.js +5 -0
- package/out/match.d.ts +6 -6
- package/out/module.d.ts +1 -1
- package/out/mutatesInput.js +3 -0
- package/out/parser/ast/generic.d.ts +6 -3
- package/out/parser/ast/infer.d.ts +1 -1
- package/out/parser/ast/validate.d.ts +11 -6
- package/out/parser/definition.d.ts +68 -7
- package/out/parser/objectLiteral.d.ts +40 -12
- package/out/parser/property.d.ts +3 -5
- package/out/parser/reduce/dynamic.d.ts +16 -7
- package/out/parser/reduce/shared.d.ts +4 -0
- package/out/parser/reduce/static.d.ts +13 -13
- package/out/parser/shift/operand/date.d.ts +0 -5
- package/out/parser/shift/operand/operand.d.ts +2 -1
- package/out/parser/shift/operand/unenclosed.d.ts +9 -6
- package/out/parser/shift/operand/unresolvable.d.ts +68 -0
- package/out/parser/shift/operator/bounds.d.ts +9 -4
- package/out/parser/shift/operator/brand.d.ts +2 -2
- package/out/parser/shift/operator/default.d.ts +2 -2
- package/out/parser/shift/operator/divisor.d.ts +2 -2
- package/out/parser/shift/operator/operator.d.ts +1 -1
- package/out/parser/shift/tokens.d.ts +9 -2
- package/out/parser/string.d.ts +61 -7
- package/out/parser/tupleExpressions.d.ts +7 -3
- package/out/precompiled.d.ts +1 -0
- package/out/precompiled.js +2 -0
- package/out/runtime.d.ts +181 -0
- package/out/runtime.js +4 -0
- package/out/runtimeDevelopment.d.ts +1 -0
- package/out/runtimeDevelopment.js +133 -0
- package/out/runtimeExports.d.ts +1 -0
- package/out/scope.d.ts +40 -11
- package/out/standalone/artifact.d.ts +265 -0
- package/out/standalone/baking.d.ts +201 -0
- package/out/standalone/combinators.d.ts +13 -0
- package/out/standalone/compilers.d.ts +23 -0
- package/out/standalone/creators.d.ts +41 -0
- package/out/standalone/fallbacks.d.ts +48 -0
- package/out/standalone/keys.d.ts +31 -0
- package/out/standalone/modules.d.ts +26 -0
- package/out/standalone/sites.d.ts +52 -0
- package/out/standalone/units.d.ts +31 -0
- package/out/standalone/values.d.ts +60 -0
- package/out/standalone.d.ts +16 -0
- package/out/type.d.ts +45 -6
- package/out/variants/array.d.ts +1 -1
- package/out/variants/base.d.ts +47 -27
- package/out/variants/date.d.ts +1 -1
- package/out/variants/instantiate.d.ts +4 -2
- package/out/variants/number.d.ts +1 -1
- package/out/variants/object.d.ts +17 -12
- package/out/variants/string.d.ts +1 -1
- package/package.json +169 -8
- package/skills/arktype/SKILL.md +278 -43
- package/skills/arktype/references/migrating.md +1296 -0
- package/skills/arktype/references/precompile.md +191 -0
- package/out/attributes.js +0 -3
- package/out/fn.js +0 -58
- package/out/generic.js +0 -37
- package/out/keywords/Array.js +0 -21
- package/out/keywords/FormData.js +0 -40
- package/out/keywords/TypedArray.js +0 -16
- package/out/keywords/builtins.js +0 -11
- package/out/keywords/constructors.js +0 -16
- package/out/keywords/keywords.js +0 -48
- package/out/keywords/number.js +0 -49
- package/out/keywords/string.js +0 -467
- package/out/match.js +0 -95
- package/out/module.js +0 -3
- package/out/nary.js +0 -1
- package/out/parser/ast/bounds.js +0 -1
- package/out/parser/ast/default.js +0 -1
- package/out/parser/ast/divisor.js +0 -1
- package/out/parser/ast/generic.js +0 -1
- package/out/parser/ast/infer.js +0 -1
- package/out/parser/ast/keyof.js +0 -1
- package/out/parser/ast/utils.js +0 -1
- package/out/parser/ast/validate.js +0 -3
- package/out/parser/definition.js +0 -78
- package/out/parser/objectLiteral.js +0 -113
- package/out/parser/property.js +0 -16
- package/out/parser/reduce/dynamic.js +0 -153
- package/out/parser/reduce/shared.js +0 -25
- package/out/parser/reduce/static.js +0 -1
- package/out/parser/shift/operand/date.js +0 -23
- package/out/parser/shift/operand/enclosed.js +0 -82
- package/out/parser/shift/operand/genericArgs.js +0 -16
- package/out/parser/shift/operand/operand.js +0 -16
- package/out/parser/shift/operand/unenclosed.js +0 -59
- package/out/parser/shift/operator/bounds.js +0 -91
- package/out/parser/shift/operator/brand.js +0 -6
- package/out/parser/shift/operator/default.js +0 -29
- package/out/parser/shift/operator/divisor.js +0 -13
- package/out/parser/shift/operator/operator.js +0 -28
- package/out/parser/shift/tokens.js +0 -37
- package/out/parser/string.js +0 -42
- package/out/parser/tupleExpressions.js +0 -75
- package/out/parser/tupleLiteral.js +0 -128
- package/out/scope.js +0 -106
- package/out/type.js +0 -55
- package/out/variants/array.js +0 -1
- package/out/variants/base.js +0 -1
- package/out/variants/date.js +0 -1
- package/out/variants/instantiate.js +0 -1
- package/out/variants/number.js +0 -1
- package/out/variants/object.js +0 -1
- package/out/variants/string.js +0 -1
- /package/out/{declare.js → mutatesInput.d.ts} +0 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
// out/locales/de.js
|
|
2
|
+
import { actualAtPathOf, describeCause, describeMissing, distinctExpectedOf, groupByPath, labelOf, printedActualOf, writeKeywordExpected } from "@ark/schema/i18n";
|
|
3
|
+
import { domainOf, getBuiltinNameOfConstructor, isValidDate, timeOf, listPattern, objectKindOrDomainOf, printable } from "@ark/util";
|
|
4
|
+
var listSeparatedBy = (middle) => listPattern({ two: " oder ", middle, end: " oder " }, { two: " und ", middle, end: " und " });
|
|
5
|
+
var commaList = /* @__PURE__ */ listSeparatedBy(", ");
|
|
6
|
+
var semicolonList = /* @__PURE__ */ listSeparatedBy("; ");
|
|
7
|
+
var list = (items, type) => (items.some((item) => item.includes(",")) ? semicolonList : commaList)(items, type);
|
|
8
|
+
var months = [
|
|
9
|
+
"Januar",
|
|
10
|
+
"Februar",
|
|
11
|
+
"März",
|
|
12
|
+
"April",
|
|
13
|
+
"Mai",
|
|
14
|
+
"Juni",
|
|
15
|
+
"Juli",
|
|
16
|
+
"August",
|
|
17
|
+
"September",
|
|
18
|
+
"Oktober",
|
|
19
|
+
"November",
|
|
20
|
+
"Dezember"
|
|
21
|
+
];
|
|
22
|
+
var number = (n) => `${n}`.replace(".", ",");
|
|
23
|
+
var pad = (n, width) => `${n}`.padStart(width, "0");
|
|
24
|
+
var date = function (d) {
|
|
25
|
+
const year = d.getUTCFullYear();
|
|
26
|
+
const month = d.getUTCMonth();
|
|
27
|
+
const day = d.getUTCDate();
|
|
28
|
+
const hours = d.getUTCHours();
|
|
29
|
+
const minutes = d.getUTCMinutes();
|
|
30
|
+
const seconds = d.getUTCSeconds();
|
|
31
|
+
const milliseconds = d.getUTCMilliseconds();
|
|
32
|
+
if (!hours && !minutes && !seconds && !milliseconds)
|
|
33
|
+
return `${day}. ${months[month]} ${year}`;
|
|
34
|
+
let time = `${pad(hours, 2)}:${pad(minutes, 2)}`;
|
|
35
|
+
if (seconds || milliseconds)
|
|
36
|
+
time += `:${pad(seconds, 2)}`;
|
|
37
|
+
if (milliseconds)
|
|
38
|
+
time += `,${pad(milliseconds, 3)}`;
|
|
39
|
+
return `${day}. ${months[month]} ${year}, ${time} UTC`;
|
|
40
|
+
};
|
|
41
|
+
var theDate = (date2, locale) => `der ${locale.date(date2)}`;
|
|
42
|
+
var print = function (value, locale) { return value instanceof Date && isValidDate(value) ? theDate(value, locale) : locale.verbatim(typeof value === "number" ? locale.number(value) : printable(value)) };
|
|
43
|
+
var printKind = function (data, locale) { return typeof data === "function" ? locale.nouns.Function : typeof data !== "object" || data === null ? print(data, locale) : locale.nouns[Array.isArray(data) ? "Array" : "object"] };
|
|
44
|
+
var was = (e) => {
|
|
45
|
+
const actual = printedActualOf(e);
|
|
46
|
+
return actual && `, ist aber ${actual}`;
|
|
47
|
+
};
|
|
48
|
+
var mustBe = (expected, e) => `muss ${expected} sein${was(e)}`;
|
|
49
|
+
var absent = "nicht vorhanden";
|
|
50
|
+
var elements = (n, locale, dative) => `${locale.number(n)} ${locale.plural(n) === "one" ? "Element" : dative ? "Elementen" : "Elemente"}`;
|
|
51
|
+
var length = function (n, data, locale, bound2 = "") { return typeof data === "string" ? `${bound2}${locale.number(n)} Zeichen lang` : `ein Array mit ${bound2}${elements(n, locale, true)}` };
|
|
52
|
+
var lengthBounds = {
|
|
53
|
+
minLength: "mindestens",
|
|
54
|
+
maxLength: "höchstens",
|
|
55
|
+
exactLength: "genau"
|
|
56
|
+
};
|
|
57
|
+
var lengthExpected = function (e, locale) { return e.rule === 0 ? typeof e.data === "string" ? "leer" : "ein leeres Array" : length(e.rule, e.data, locale, `${lengthBounds[e.code]} `) };
|
|
58
|
+
var lengthActual = (data, e, locale) => data.length ? length(data.length, data, locale) : e.code === "minLength" ? "" : "leer";
|
|
59
|
+
var lengthMessage = function (e, locale) {
|
|
60
|
+
if (e.code === "minLength" && e.rule === 1)
|
|
61
|
+
return `darf nicht leer sein${was(e)}`;
|
|
62
|
+
if (typeof e.data === "string")
|
|
63
|
+
return mustBe(lengthExpected(e, locale), e);
|
|
64
|
+
const rule = e.rule === 0 ? "muss leer sein" : `muss ${lengthBounds[e.code]} ${elements(e.rule, locale)} enthalten`;
|
|
65
|
+
return `${rule}${was(e)}`;
|
|
66
|
+
};
|
|
67
|
+
var lengthWriters = {
|
|
68
|
+
expected: lengthExpected,
|
|
69
|
+
actual: lengthActual,
|
|
70
|
+
message: lengthMessage
|
|
71
|
+
};
|
|
72
|
+
var subjectOf = function (propString, label, locale) { return label === void 0 ? propString[0] === "[" ? `Wert an ${locale.verbatim(propString)}` : locale.verbatim(propString) : /\[\d/.test(propString) ? `„${locale.verbatim(label)}“ an ${locale.verbatim(propString)}` : `„${locale.verbatim(label)}“` };
|
|
73
|
+
var bound = function (e, locale) { return e.rule === 0 && e.exclusive ? e.code === "min" ? "positiv" : "negativ" : e.code === "min" ? `${e.exclusive ? "größer als" : "mindestens"} ${locale.number(e.rule)}` : `${e.exclusive ? "kleiner als" : "höchstens"} ${locale.number(e.rule)}` };
|
|
74
|
+
var boundMessage = function (e, locale) { return e.rule === 0 && !e.exclusive ? `darf nicht ${e.code === "min" ? "negativ" : "positiv"} sein${was(e)}` : mustBe(bound(e, locale), e) };
|
|
75
|
+
var dateWriters = function (relation) {
|
|
76
|
+
const expected = (e, locale) => `${relation} ${theDate(e.rule, locale)}`;
|
|
77
|
+
return {
|
|
78
|
+
expected,
|
|
79
|
+
actual: (data, e, locale) => print(data, locale),
|
|
80
|
+
message: (e, locale) => mustBe(expected(e, locale), e)
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
var divisorOf = (rule, locale) => rule === 1 ? "eine ganze Zahl" : rule === 2 ? "gerade" : `ein Vielfaches von ${locale.number(rule)}`;
|
|
84
|
+
var predicateOf = function (e, locale) {
|
|
85
|
+
const name = (e.predicate ?? e.morph)?.name;
|
|
86
|
+
return `gemäß ${name ? locale.verbatim(name) : "einem anonymen Prädikat"} gültig`;
|
|
87
|
+
};
|
|
88
|
+
var casesOf = function (e, locale) { return e.discriminantKind === "domain" ? locale.list(e.cases.map((domain) => locale.nouns[domain]), "or") : e.cases.length === 2 && e.cases.every((value) => typeof value === "boolean") ? locale.nouns.boolean : locale.list(e.cases.map((value) => print(value, locale)), "or") };
|
|
89
|
+
var describeProto = function (proto, locale) {
|
|
90
|
+
const builtinName = getBuiltinNameOfConstructor(proto);
|
|
91
|
+
return builtinName ? locale.nouns[builtinName] : `eine Instanz von ${locale.verbatim(proto.name)}`;
|
|
92
|
+
};
|
|
93
|
+
var jsonMessage = function (e, locale) { return e.code === "predicate" && e.cause !== void 0 ? `muss eine JSON-Zeichenkette sein (${describeCause(e.cause)})` : locale.message(e, locale) };
|
|
94
|
+
var epoch = "ein gültiger Unix-Zeitstempel als ganze Zahl";
|
|
95
|
+
var keywordPhrases = {
|
|
96
|
+
"FormData.parsed": "ein Objekt mit geparsten Formulardaten",
|
|
97
|
+
"number.epoch": {
|
|
98
|
+
noun: epoch,
|
|
99
|
+
expected: function (e, locale) { return e.code === "domain" ? "ein Unix-Zeitstempel als Zahl" : e.code === "divisor" ? "ein Unix-Zeitstempel als ganze Zahl" : e.code === "min" ? `ein Unix-Zeitstempel ab ${locale.number(e.rule)}` : e.code === "max" ? `ein Unix-Zeitstempel bis ${locale.number(e.rule)}` : epoch }
|
|
100
|
+
},
|
|
101
|
+
"object.json": "ein einfaches Objekt oder Array",
|
|
102
|
+
"string.alpha": "rein alphabetisch",
|
|
103
|
+
"string.alphanumeric": "rein alphanumerisch",
|
|
104
|
+
"string.base58": "Base58-kodiert",
|
|
105
|
+
"string.base64": "Base64-kodiert",
|
|
106
|
+
"string.base64.url": "Base64url-kodiert",
|
|
107
|
+
"string.capitalize.preformatted": "großgeschrieben",
|
|
108
|
+
"string.creditCard": "eine Kreditkartennummer",
|
|
109
|
+
"string.date": "ein parsbares Datum",
|
|
110
|
+
"string.date.epoch": "ein gültiger Unix-Zeitstempel als ganzzahlige Zeichenkette",
|
|
111
|
+
"string.date.iso": "ein Datum oder Zeitpunkt nach ISO 8601",
|
|
112
|
+
"string.date.parse": "ein parsbares Datum",
|
|
113
|
+
"string.digits": "eine Ziffernfolge (0-9)",
|
|
114
|
+
"string.email": "eine E-Mail-Adresse",
|
|
115
|
+
"string.hex": "rein hexadezimal",
|
|
116
|
+
"string.integer": "eine wohlgeformte ganzzahlige Zeichenkette",
|
|
117
|
+
"string.integer.parse": "eine ganze Zahl im Bereich Number.MIN_SAFE_INTEGER bis Number.MAX_SAFE_INTEGER",
|
|
118
|
+
"string.ip": "eine IP-Adresse",
|
|
119
|
+
"string.ip.v4": "eine IPv4-Adresse",
|
|
120
|
+
"string.ip.v6": "eine IPv6-Adresse",
|
|
121
|
+
"string.json": { noun: "eine JSON-Zeichenkette", message: jsonMessage },
|
|
122
|
+
"string.json.parse": {
|
|
123
|
+
noun: "eine JSON-Zeichenkette",
|
|
124
|
+
actual: (data, e, locale) => data === "" ? "leer" : print(data, locale),
|
|
125
|
+
message: jsonMessage
|
|
126
|
+
},
|
|
127
|
+
"string.lower.preformatted": "kleingeschrieben",
|
|
128
|
+
"string.normalize.NFC.preformatted": "NFC-normalisiert",
|
|
129
|
+
"string.normalize.NFD.preformatted": "NFD-normalisiert",
|
|
130
|
+
"string.normalize.NFKC.preformatted": "NFKC-normalisiert",
|
|
131
|
+
"string.normalize.NFKD.preformatted": "NFKD-normalisiert",
|
|
132
|
+
"string.numeric": "eine wohlgeformte numerische Zeichenkette",
|
|
133
|
+
"string.numeric.parse": "endlich",
|
|
134
|
+
"string.regex": {
|
|
135
|
+
noun: "ein Regex-Muster",
|
|
136
|
+
message: function (e, locale) { return e.code === "predicate" && e.cause !== void 0 ? `muss ein Regex-Muster sein (${describeCause(e.cause)})` : locale.message(e, locale) }
|
|
137
|
+
},
|
|
138
|
+
"string.semver": "eine semantische Version (siehe https://semver.org/)",
|
|
139
|
+
"string.trim.preformatted": "ohne Leerraum am Anfang und Ende",
|
|
140
|
+
"string.upper.preformatted": "durchgehend großgeschrieben",
|
|
141
|
+
"string.url": "eine URL",
|
|
142
|
+
"string.url.parse": "eine URL",
|
|
143
|
+
"string.uuid": "eine UUID",
|
|
144
|
+
"string.uuid.v1": "eine UUIDv1",
|
|
145
|
+
"string.uuid.v2": "eine UUIDv2",
|
|
146
|
+
"string.uuid.v3": "eine UUIDv3",
|
|
147
|
+
"string.uuid.v4": "eine UUIDv4",
|
|
148
|
+
"string.uuid.v5": "eine UUIDv5",
|
|
149
|
+
"string.uuid.v6": "eine UUIDv6",
|
|
150
|
+
"string.uuid.v7": "eine UUIDv7",
|
|
151
|
+
"string.uuid.v8": "eine UUIDv8"
|
|
152
|
+
};
|
|
153
|
+
var de = {
|
|
154
|
+
tag: "de",
|
|
155
|
+
list,
|
|
156
|
+
plural: (n) => n === 1 ? "one" : "other",
|
|
157
|
+
number,
|
|
158
|
+
date,
|
|
159
|
+
verbatim: (text) => text,
|
|
160
|
+
cite: (text) => `ein Wert gemäß der Beschreibung „${text}“`,
|
|
161
|
+
// a domain is named by its noun whatever its meta, as en names it
|
|
162
|
+
basis: function (basis, locale) {
|
|
163
|
+
if (basis.code === "domain")
|
|
164
|
+
return locale.nouns[basis.domain];
|
|
165
|
+
return writeKeywordExpected(basis, locale) ?? (basis.code === "morph" || basis.meta.description !== void 0 ? locale.cite(basis.meta.description) : basis.code === "unit" ? print(basis.unit, locale) : describeProto(basis.proto, locale));
|
|
166
|
+
},
|
|
167
|
+
nouns: {
|
|
168
|
+
bigint: "ein BigInt",
|
|
169
|
+
boolean: "ein Wahrheitswert",
|
|
170
|
+
null: "null",
|
|
171
|
+
number: "eine Zahl",
|
|
172
|
+
object: "ein Objekt",
|
|
173
|
+
string: "eine Zeichenkette",
|
|
174
|
+
symbol: "ein Symbol",
|
|
175
|
+
undefined: "undefined",
|
|
176
|
+
Array: "ein Array",
|
|
177
|
+
Function: "eine Funktion",
|
|
178
|
+
Date: "ein Date-Objekt",
|
|
179
|
+
RegExp: "ein RegExp-Objekt",
|
|
180
|
+
Error: "ein Error-Objekt",
|
|
181
|
+
Map: "eine Map",
|
|
182
|
+
Set: "ein Set",
|
|
183
|
+
String: "ein String-Objekt",
|
|
184
|
+
Number: "ein Number-Objekt",
|
|
185
|
+
Boolean: "ein Boolean-Objekt",
|
|
186
|
+
Promise: "ein Promise",
|
|
187
|
+
WeakMap: "eine WeakMap",
|
|
188
|
+
WeakSet: "ein WeakSet",
|
|
189
|
+
ArrayBuffer: "eine ArrayBuffer-Instanz",
|
|
190
|
+
Blob: "eine Blob-Instanz",
|
|
191
|
+
File: "eine File-Instanz",
|
|
192
|
+
FormData: "eine FormData-Instanz",
|
|
193
|
+
Headers: "eine Headers-Instanz",
|
|
194
|
+
Request: "eine Request-Instanz",
|
|
195
|
+
Response: "eine Response-Instanz",
|
|
196
|
+
URL: "eine URL-Instanz",
|
|
197
|
+
Int8Array: "ein Int8Array",
|
|
198
|
+
Uint8Array: "ein Uint8Array",
|
|
199
|
+
Uint8ClampedArray: "ein Uint8ClampedArray",
|
|
200
|
+
Int16Array: "ein Int16Array",
|
|
201
|
+
Uint16Array: "ein Uint16Array",
|
|
202
|
+
Int32Array: "ein Int32Array",
|
|
203
|
+
Uint32Array: "ein Uint32Array",
|
|
204
|
+
Float32Array: "ein Float32Array",
|
|
205
|
+
Float64Array: "ein Float64Array",
|
|
206
|
+
BigInt64Array: "ein BigInt64Array",
|
|
207
|
+
BigUint64Array: "ein BigUint64Array",
|
|
208
|
+
unknown: "ein beliebiger Wert",
|
|
209
|
+
never: "never"
|
|
210
|
+
},
|
|
211
|
+
keywordPhrases,
|
|
212
|
+
actual: (data, e, locale) => printKind(data, locale),
|
|
213
|
+
message: (e) => mustBe(e.expected, e),
|
|
214
|
+
line: (e, locale) => `${subjectOf(e.propString, labelOf(e), locale)}${e.custom ? ":" : ""} ${e.message}`,
|
|
215
|
+
domain: {
|
|
216
|
+
expected: (e, locale) => locale.nouns[e.domain],
|
|
217
|
+
actual: (data, e, locale) => typeof data === "number" && !Number.isFinite(data) ? `${data}` : locale.nouns[domainOf(data)],
|
|
218
|
+
message: (e, locale) => mustBe(locale.nouns[e.domain], e)
|
|
219
|
+
},
|
|
220
|
+
unit: {
|
|
221
|
+
expected: (e, locale) => print(e.unit, locale),
|
|
222
|
+
actual: (data, e, locale) => data instanceof Date && isValidDate(data) ? theDate(data, locale) : printKind(data, locale),
|
|
223
|
+
message: function (e, locale) {
|
|
224
|
+
const unit = print(e.unit, locale);
|
|
225
|
+
return unit === printedActualOf(e) ? `muss referenzgleich mit ${unit} sein (wird zum selben Wert serialisiert)` : mustBe(unit, e);
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
proto: {
|
|
229
|
+
expected: (e, locale) => describeProto(e.proto, locale),
|
|
230
|
+
actual: function (data, e, locale) { return !(data instanceof Date) || isValidDate(data) ? locale.nouns[objectKindOrDomainOf(data)] : timeOf(data) === void 0 ? locale.nouns.object : "ein ungültiges Date-Objekt" },
|
|
231
|
+
message: (e, locale) => mustBe(describeProto(e.proto, locale), e)
|
|
232
|
+
},
|
|
233
|
+
union: {
|
|
234
|
+
expected: function (e, locale) {
|
|
235
|
+
const groups = groupByPath(e, locale);
|
|
236
|
+
if (groups.length === 0)
|
|
237
|
+
return locale.nouns.never;
|
|
238
|
+
return locale.list(groups.map((group) => {
|
|
239
|
+
const subject = group.propString && `${subjectOf(group.propString, group.label, locale)} `;
|
|
240
|
+
const expected = locale.list(group.expected, "or");
|
|
241
|
+
if (group.actual === absent)
|
|
242
|
+
return `${subject}fehlt (muss ${expected} sein)`;
|
|
243
|
+
const actual = group.actual !== void 0 && e.errors.every((error) => error.propString !== group.propString || printedActualOf(error) === group.actual) ? group.actual : "";
|
|
244
|
+
return `${subject}muss ${expected} sein${actual && (groups.length === 1 ? `, ist aber ${actual}` : ` (ist ${actual})`)}`;
|
|
245
|
+
}), "or");
|
|
246
|
+
},
|
|
247
|
+
actual: (data, e, locale) => actualAtPathOf(e) ?? printKind(data, locale),
|
|
248
|
+
message: (e) => e.errors.length ? e.expected : mustBe(e.expected, e)
|
|
249
|
+
},
|
|
250
|
+
intersection: {
|
|
251
|
+
expected: (e) => distinctExpectedOf(e.errors).length > 1 ? ` ◦ ${distinctExpectedOf(e.errors).join("\n ◦ ")}` : e.errors[0].expected,
|
|
252
|
+
message: function (e) { return distinctExpectedOf(e.errors).length > 1 ? `(${printedActualOf(e)}) muss alles Folgende sein:
|
|
253
|
+
${e.expected}` : mustBe(e.expected, e) }
|
|
254
|
+
},
|
|
255
|
+
min: { expected: bound, message: boundMessage },
|
|
256
|
+
max: { expected: bound, message: boundMessage },
|
|
257
|
+
minLength: lengthWriters,
|
|
258
|
+
maxLength: lengthWriters,
|
|
259
|
+
exactLength: lengthWriters,
|
|
260
|
+
divisor: {
|
|
261
|
+
expected: (e, locale) => divisorOf(e.rule, locale),
|
|
262
|
+
message: (e, locale) => mustBe(divisorOf(e.rule, locale), e)
|
|
263
|
+
},
|
|
264
|
+
pattern: {
|
|
265
|
+
expected: (e, locale) => `passend zum Muster ${locale.verbatim(e.rule)}`,
|
|
266
|
+
message: (e, locale) => `muss dem Muster ${locale.verbatim(e.rule)} entsprechen${was(e)}`
|
|
267
|
+
},
|
|
268
|
+
before: dateWriters("spätestens"),
|
|
269
|
+
after: dateWriters("frühestens"),
|
|
270
|
+
notEqual: {
|
|
271
|
+
// "ungleich" takes a dative
|
|
272
|
+
expected: (e, locale) => `ungleich ${print(e.rule, locale).replace(/^der /, "dem ")}`,
|
|
273
|
+
actual: (data, e, locale) => print(data, locale),
|
|
274
|
+
message: (e) => mustBe(e.expected, e)
|
|
275
|
+
},
|
|
276
|
+
notEqualLength: {
|
|
277
|
+
expected: function (e, locale) { return typeof e.data === "string" ? `nicht ${length(e.rule, e.data, locale)}` : `kein Array mit ${elements(e.rule, locale, true)}` },
|
|
278
|
+
actual: (data, e, locale) => length(data.length, data, locale),
|
|
279
|
+
// "muss nicht" means "need not"
|
|
280
|
+
message: function (e, locale) { return `darf nicht ${typeof e.data === "string" ? `${length(e.rule, e.data, locale)} sein` : `${elements(e.rule, locale)} enthalten`}${was(e)}` }
|
|
281
|
+
},
|
|
282
|
+
predicate: {
|
|
283
|
+
expected: predicateOf,
|
|
284
|
+
actual: (data, e, locale) => e.morph ? `wegen eines Fehlers abgebrochen:
|
|
285
|
+
${describeCause(e.cause)}` : printKind(data, locale),
|
|
286
|
+
message: function (e, locale) {
|
|
287
|
+
if (!e.morph)
|
|
288
|
+
return mustBe(predicateOf(e, locale), e);
|
|
289
|
+
const name = e.morph.name && `von ${locale.verbatim(e.morph.name)} `;
|
|
290
|
+
return `konnte ${name}nicht verarbeitet werden:
|
|
291
|
+
${describeCause(e.cause)}`;
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
required: {
|
|
295
|
+
expected: (e, locale) => describeMissing(e.missing, locale),
|
|
296
|
+
actual: absent,
|
|
297
|
+
message: (e, locale) => e.missing.code === "intersection" ? "fehlt" : `fehlt (muss ${describeMissing(e.missing, locale)} sein)`
|
|
298
|
+
},
|
|
299
|
+
undeclared: {
|
|
300
|
+
expected: "entfernt",
|
|
301
|
+
actual: "",
|
|
302
|
+
message: "ist nicht erlaubt"
|
|
303
|
+
},
|
|
304
|
+
discriminant: {
|
|
305
|
+
expected: casesOf,
|
|
306
|
+
actual: (data, e, locale) => e.absent ? absent : e.discriminantKind === "domain" ? locale.nouns[domainOf(data)] : printKind(data, locale),
|
|
307
|
+
message: (e, locale) => e.absent ? `fehlt (muss ${casesOf(e, locale)} sein)` : mustBe(casesOf(e, locale), e)
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
export {
|
|
312
|
+
de
|
|
313
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// out/index.js
|
|
2
|
+
export { annotatingFallback, ArkErrors, byAncestorPath, byPath, flatByPath, firstIssue, flatMessagesByPath, messageIn, Traversal, TraversalError } from "@ark/schema";
|
|
3
|
+
export { Hkt, inferred, ParseError } from "@ark/util";
|
|
4
|
+
export { regex } from "arkregex";
|
|
5
|
+
|
|
6
|
+
// out/module.js
|
|
7
|
+
import { RootModule } from "@ark/schema";
|
|
8
|
+
var Module = RootModule;
|
|
9
|
+
var BoundModule = RootModule;
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
Module,
|
|
13
|
+
BoundModule
|
|
14
|
+
};
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
// out/keywords/functions.js
|
|
2
|
+
import { FileConstructor, hasOwn, isDigitCode, iso8601Matcher } from "@ark/util";
|
|
3
|
+
var keywordError = (alias, description) => ({
|
|
4
|
+
code: "predicate",
|
|
5
|
+
description,
|
|
6
|
+
meta: { keyword: alias }
|
|
7
|
+
});
|
|
8
|
+
var integerParseError = /* @__PURE__ */ keywordError("string.integer.parse", "an integer in the range Number.MIN_SAFE_INTEGER to Number.MAX_SAFE_INTEGER");
|
|
9
|
+
var parseInteger = (s, ctx) => {
|
|
10
|
+
const parsed = Number.parseInt(s);
|
|
11
|
+
return Number.isSafeInteger(parsed) ? parsed : ctx.error(integerParseError);
|
|
12
|
+
};
|
|
13
|
+
var parseNumeric = (s) => Number(s);
|
|
14
|
+
var parsesFinite = (s) => s.length < 5 || Number.isFinite(Number(s));
|
|
15
|
+
var capitalizeString = (s) => s.charAt(0).toUpperCase() + s.slice(1);
|
|
16
|
+
var lowercaseString = (s) => s.toLowerCase();
|
|
17
|
+
var uppercaseString = (s) => s.toUpperCase();
|
|
18
|
+
var trimString = (s) => s.trim();
|
|
19
|
+
var isLuhnValid = (creditCardInput) => {
|
|
20
|
+
const sanitized = creditCardInput.replace(/[ -]+/g, "");
|
|
21
|
+
let sum = 0;
|
|
22
|
+
let digit;
|
|
23
|
+
let tmpNum;
|
|
24
|
+
let shouldDouble = false;
|
|
25
|
+
for (let i = sanitized.length - 1; i >= 0; i--) {
|
|
26
|
+
digit = sanitized.substring(i, i + 1);
|
|
27
|
+
tmpNum = Number.parseInt(digit, 10);
|
|
28
|
+
if (shouldDouble) {
|
|
29
|
+
tmpNum *= 2;
|
|
30
|
+
sum += tmpNum >= 10 ? tmpNum % 10 + 1 : tmpNum;
|
|
31
|
+
} else
|
|
32
|
+
sum += tmpNum;
|
|
33
|
+
shouldDouble = !shouldDouble;
|
|
34
|
+
}
|
|
35
|
+
return !!(sum % 10 === 0 ? sanitized : false);
|
|
36
|
+
};
|
|
37
|
+
var isParsableDate = (s) => readDate(s) !== void 0;
|
|
38
|
+
var dateParseError = /* @__PURE__ */ keywordError("string.date.parse", "a parsable date");
|
|
39
|
+
var parseDate = (s, ctx) => readDate(s) ?? ctx.error(dateParseError);
|
|
40
|
+
var isoDateParseError = /* @__PURE__ */ keywordError("string.date.iso", "an ISO 8601 date or date-time");
|
|
41
|
+
var isoDateParts = /^([+-]?\d{4})(?:-?(?:(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?([1-7]))?|(\d{3})))?(?:T(\d{2})(?::?(\d{2})(?::?(\d{2}))?)?(?:[,.](\d+))?(?:[Zz]|([+-])(\d{2}):?(\d{2})?)?)?$/;
|
|
42
|
+
var isoDateOf = (parts) => {
|
|
43
|
+
const [, yearPart, month, day, week, weekday, ordinal, hour, minute, second, fraction, offsetSign, offsetHours, offsetMinutes] = parts;
|
|
44
|
+
const year = +yearPart;
|
|
45
|
+
const date = /* @__PURE__ */ new Date(0);
|
|
46
|
+
date.setUTCFullYear(year, +(month ?? 1) - 1, week ? 4 : +(ordinal ?? day ?? 1));
|
|
47
|
+
if (week)
|
|
48
|
+
date.setUTCDate(7 * +week - (date.getUTCDay() + 6) % 7);
|
|
49
|
+
if (week || ordinal ? date.getUTCFullYear() !== year : date.getUTCDate() !== +(day ?? 1))
|
|
50
|
+
return;
|
|
51
|
+
if (week)
|
|
52
|
+
date.setUTCDate(date.getUTCDate() + +(weekday ?? 1) - 4);
|
|
53
|
+
const unit = second ? 1e3 : minute ? 6e4 : 36e5;
|
|
54
|
+
const ms = fraction ? Math.floor(+fraction.slice(0, 9).padEnd(9, "0") * unit / 1e9) : 0;
|
|
55
|
+
if (hour === "24" && (+(minute ?? 0) || +(second ?? 0) || ms))
|
|
56
|
+
return;
|
|
57
|
+
const offset = offsetSign ? (+offsetHours * 60 + +(offsetMinutes ?? 0)) * (offsetSign === "+" ? -1 : 1) : 0;
|
|
58
|
+
date.setUTCHours(+(hour ?? 0), +(minute ?? 0) + offset, +(second ?? 0), ms);
|
|
59
|
+
return date;
|
|
60
|
+
};
|
|
61
|
+
var readDate = (s) => {
|
|
62
|
+
if (iso8601Matcher.test(s)) {
|
|
63
|
+
const parts = isoDateParts.exec(s);
|
|
64
|
+
return parts ? isoDateOf(parts) : void 0;
|
|
65
|
+
}
|
|
66
|
+
const date = new Date(s);
|
|
67
|
+
return Number.isNaN(date.valueOf()) ? void 0 : date;
|
|
68
|
+
};
|
|
69
|
+
var parseIsoDate = (s, ctx) => {
|
|
70
|
+
const parts = isoDateParts.exec(s);
|
|
71
|
+
return (parts && isoDateOf(parts)) ?? ctx.error(isoDateParseError);
|
|
72
|
+
};
|
|
73
|
+
var parseEpoch = (s) => new Date(Number.parseInt(s));
|
|
74
|
+
var maxEpoch = 864e13;
|
|
75
|
+
var epochDescriptions = {
|
|
76
|
+
domain: "a number representing a Unix timestamp",
|
|
77
|
+
min: "a Unix timestamp after -8640000000000000",
|
|
78
|
+
max: "a Unix timestamp before 8640000000000000"
|
|
79
|
+
};
|
|
80
|
+
var epochMeta = { keyword: "number.epoch" };
|
|
81
|
+
var isEpochString = (s, ctx) => {
|
|
82
|
+
const n = Number.parseInt(s);
|
|
83
|
+
return !Number.isFinite(n) ? ctx.reject({
|
|
84
|
+
code: "domain",
|
|
85
|
+
data: n,
|
|
86
|
+
description: epochDescriptions.domain,
|
|
87
|
+
meta: epochMeta,
|
|
88
|
+
domain: "number"
|
|
89
|
+
}) : n < -maxEpoch ? ctx.reject({
|
|
90
|
+
code: "min",
|
|
91
|
+
data: n,
|
|
92
|
+
description: epochDescriptions.min,
|
|
93
|
+
meta: epochMeta,
|
|
94
|
+
rule: -maxEpoch
|
|
95
|
+
}) : n > maxEpoch ? ctx.reject({
|
|
96
|
+
code: "max",
|
|
97
|
+
data: n,
|
|
98
|
+
description: epochDescriptions.max,
|
|
99
|
+
meta: epochMeta,
|
|
100
|
+
rule: maxEpoch
|
|
101
|
+
}) : true;
|
|
102
|
+
};
|
|
103
|
+
var jsonString = "a JSON string";
|
|
104
|
+
var describeSyntaxError = ({ name, message }) => `${name}: ${message}`;
|
|
105
|
+
var writeJsonSyntaxErrorMessage = (error) => `must be ${jsonString} (${describeSyntaxError(error)})`;
|
|
106
|
+
var jsonMessage = (e, locale) => e.code === "predicate" && e.cause !== void 0 ? writeJsonSyntaxErrorMessage(e.cause) : locale.message(e, locale);
|
|
107
|
+
var jsonError = /* @__PURE__ */ keywordError("string.json", jsonString);
|
|
108
|
+
var isJsonString = (s, ctx) => {
|
|
109
|
+
try {
|
|
110
|
+
JSON.parse(s);
|
|
111
|
+
return true;
|
|
112
|
+
} catch (e) {
|
|
113
|
+
if (!(e instanceof SyntaxError))
|
|
114
|
+
throw e;
|
|
115
|
+
return ctx.reject({ ...jsonError, cause: e });
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
var jsonParseError = /* @__PURE__ */ keywordError("string.json.parse", jsonString);
|
|
119
|
+
var mayOverflow = (s) => {
|
|
120
|
+
if (positiveExponent.test(s))
|
|
121
|
+
return true;
|
|
122
|
+
for (let i = 308; i < s.length; i += 309) {
|
|
123
|
+
if (!isDigitCode(s.charCodeAt(i)))
|
|
124
|
+
continue;
|
|
125
|
+
let start = i;
|
|
126
|
+
while (isDigitCode(s.charCodeAt(start - 1)))
|
|
127
|
+
start--;
|
|
128
|
+
let end = i;
|
|
129
|
+
while (isDigitCode(s.charCodeAt(end + 1)))
|
|
130
|
+
end++;
|
|
131
|
+
if (end - start >= 308)
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
return false;
|
|
135
|
+
};
|
|
136
|
+
var positiveExponent = /\d[Ee]\+?\d/;
|
|
137
|
+
var rejectInfinity = (k, v) => {
|
|
138
|
+
if (v === Infinity || v === -Infinity)
|
|
139
|
+
throw new SyntaxError("Number is out of range");
|
|
140
|
+
return v;
|
|
141
|
+
};
|
|
142
|
+
var parseJson = (s, ctx) => {
|
|
143
|
+
if (s.length === 0)
|
|
144
|
+
return ctx.error(jsonParseError);
|
|
145
|
+
try {
|
|
146
|
+
return JSON.parse(s, !ctx.config.numberAllowsInfinity && mayOverflow(s) ? rejectInfinity : void 0);
|
|
147
|
+
} catch (e) {
|
|
148
|
+
if (!(e instanceof SyntaxError))
|
|
149
|
+
throw e;
|
|
150
|
+
return ctx.error({ ...jsonParseError, cause: e });
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
var stringifyJson = (data) => JSON.stringify(data);
|
|
154
|
+
var writeIsoDate = (date) => date.toISOString();
|
|
155
|
+
var writeEpoch = (date) => `${date.getTime()}`;
|
|
156
|
+
var writeUrl = (url) => url.href;
|
|
157
|
+
var keepFormatted = (s) => s;
|
|
158
|
+
var normalizationsByForm = {
|
|
159
|
+
NFC: {
|
|
160
|
+
predicate: (s) => s.normalize("NFC") === s,
|
|
161
|
+
morphs: (s) => s.normalize("NFC")
|
|
162
|
+
},
|
|
163
|
+
NFD: {
|
|
164
|
+
predicate: (s) => s.normalize("NFD") === s,
|
|
165
|
+
morphs: (s) => s.normalize("NFD")
|
|
166
|
+
},
|
|
167
|
+
NFKC: {
|
|
168
|
+
predicate: (s) => s.normalize("NFKC") === s,
|
|
169
|
+
morphs: (s) => s.normalize("NFKC")
|
|
170
|
+
},
|
|
171
|
+
NFKD: {
|
|
172
|
+
predicate: (s) => s.normalize("NFKD") === s,
|
|
173
|
+
morphs: (s) => s.normalize("NFKD")
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
var emptyCollectionDefaults = {
|
|
177
|
+
"[]": () => [],
|
|
178
|
+
"{}": () => ({})
|
|
179
|
+
};
|
|
180
|
+
var regexPattern = "a regex pattern";
|
|
181
|
+
var regexError = /* @__PURE__ */ keywordError("string.regex", regexPattern);
|
|
182
|
+
var isRegexPattern = (s, ctx) => {
|
|
183
|
+
try {
|
|
184
|
+
new RegExp(s);
|
|
185
|
+
return true;
|
|
186
|
+
} catch (e) {
|
|
187
|
+
return ctx.reject({ ...regexError, cause: e });
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
var raisedErrorPhrases = {
|
|
191
|
+
"string.json": { noun: jsonString, message: jsonMessage },
|
|
192
|
+
"string.json.parse": { noun: jsonString, message: jsonMessage },
|
|
193
|
+
"string.regex": {
|
|
194
|
+
noun: regexPattern,
|
|
195
|
+
message: (e, locale) => e.code === "predicate" && e.cause !== void 0 ? `must be ${regexPattern} (${describeSyntaxError(e.cause)})` : locale.message(e, locale)
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
var plainUrl = /^[Hh][Tt]{2}[Pp][Ss]?:\/\/(?:[\dA-Za-z]+(?:-[\dA-Za-z]+)*\.)*[A-Za-z]+(?::\d{1,4})?(?:[#/?]|$)/;
|
|
199
|
+
var isParsableUrl = ((s) => plainUrl.test(s) || s.includes(":") && URL.canParse(s));
|
|
200
|
+
var urlParseError = /* @__PURE__ */ keywordError("string.url.parse", "a URL string");
|
|
201
|
+
var parseUrl = (s, ctx) => {
|
|
202
|
+
try {
|
|
203
|
+
return new URL(s);
|
|
204
|
+
} catch {
|
|
205
|
+
return ctx.error(urlParseError);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
var parseFormData = (data) => {
|
|
209
|
+
const result = {};
|
|
210
|
+
for (const [k, v] of data) {
|
|
211
|
+
if (hasOwn(result, k)) {
|
|
212
|
+
const existing = result[k];
|
|
213
|
+
if (typeof existing === "string" || existing instanceof FileConstructor)
|
|
214
|
+
result[k] = [existing, v];
|
|
215
|
+
else
|
|
216
|
+
existing.push(v);
|
|
217
|
+
} else
|
|
218
|
+
result[k] = v;
|
|
219
|
+
}
|
|
220
|
+
return result;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export {
|
|
224
|
+
parseInteger,
|
|
225
|
+
parseNumeric,
|
|
226
|
+
parsesFinite,
|
|
227
|
+
capitalizeString,
|
|
228
|
+
lowercaseString,
|
|
229
|
+
uppercaseString,
|
|
230
|
+
trimString,
|
|
231
|
+
isLuhnValid,
|
|
232
|
+
isParsableDate,
|
|
233
|
+
parseDate,
|
|
234
|
+
parseIsoDate,
|
|
235
|
+
parseEpoch,
|
|
236
|
+
maxEpoch,
|
|
237
|
+
epochDescriptions,
|
|
238
|
+
isEpochString,
|
|
239
|
+
writeJsonSyntaxErrorMessage,
|
|
240
|
+
isJsonString,
|
|
241
|
+
parseJson,
|
|
242
|
+
stringifyJson,
|
|
243
|
+
writeIsoDate,
|
|
244
|
+
writeEpoch,
|
|
245
|
+
writeUrl,
|
|
246
|
+
keepFormatted,
|
|
247
|
+
normalizationsByForm,
|
|
248
|
+
emptyCollectionDefaults,
|
|
249
|
+
isRegexPattern,
|
|
250
|
+
raisedErrorPhrases,
|
|
251
|
+
isParsableUrl,
|
|
252
|
+
parseUrl,
|
|
253
|
+
parseFormData
|
|
254
|
+
};
|