tempest.games 0.2.52 → 0.2.53
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/CHANGELOG.md +8 -0
- package/app/assets/index-BxHkY_vu.js +108 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +215 -209
- package/bin/backend.worker.game.bun.js +15 -9
- package/bin/backend.worker.tribunal.bun.js +102 -96
- package/bin/frontend.bun.js +54 -48
- package/bin/setup-db.bun.js +110 -102
- package/package.json +16 -16
- package/app/assets/index-B2iTnpfS.js +0 -108
package/bin/setup-db.bun.js
CHANGED
|
@@ -5565,7 +5565,7 @@ async function migrate(db, config) {
|
|
|
5565
5565
|
await db.dialect.migrate(migrations, db.session, config);
|
|
5566
5566
|
}
|
|
5567
5567
|
|
|
5568
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.
|
|
5568
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.22_typescript@5.9.2_zod@3.25.76/node_modules/@t3-oss/env-core/dist/src-Bb3GbGAa.js
|
|
5569
5569
|
function ensureSynchronous(value, message) {
|
|
5570
5570
|
if (value instanceof Promise)
|
|
5571
5571
|
throw new Error(message);
|
|
@@ -5651,7 +5651,7 @@ function createEnv(opts) {
|
|
|
5651
5651
|
return env;
|
|
5652
5652
|
}
|
|
5653
5653
|
|
|
5654
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5654
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/arrays.js
|
|
5655
5655
|
var liftArray = (data) => Array.isArray(data) ? data : [data];
|
|
5656
5656
|
var spliterate = (arr, predicate) => {
|
|
5657
5657
|
const result = [[], []];
|
|
@@ -5706,7 +5706,7 @@ var groupBy = (array, discriminant) => array.reduce((result, item) => {
|
|
|
5706
5706
|
return result;
|
|
5707
5707
|
}, {});
|
|
5708
5708
|
var arrayEquals = (l, r, opts) => l.length === r.length && l.every(opts?.isEqual ? (lItem, i) => opts.isEqual(lItem, r[i]) : (lItem, i) => lItem === r[i]);
|
|
5709
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5709
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/domain.js
|
|
5710
5710
|
var hasDomain = (data, kind) => domainOf(data) === kind;
|
|
5711
5711
|
var domainOf = (data) => {
|
|
5712
5712
|
const builtinType = typeof data;
|
|
@@ -5727,7 +5727,7 @@ var jsTypeOfDescriptions = {
|
|
|
5727
5727
|
function: "a function"
|
|
5728
5728
|
};
|
|
5729
5729
|
|
|
5730
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5730
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/errors.js
|
|
5731
5731
|
class InternalArktypeError extends Error {
|
|
5732
5732
|
}
|
|
5733
5733
|
var throwInternalError = (message) => throwError(message, InternalArktypeError);
|
|
@@ -5741,7 +5741,7 @@ class ParseError extends Error {
|
|
|
5741
5741
|
var throwParseError = (message) => throwError(message, ParseError);
|
|
5742
5742
|
var noSuggest = (s) => ` ${s}`;
|
|
5743
5743
|
|
|
5744
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5744
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/flatMorph.js
|
|
5745
5745
|
var flatMorph = (o, flatMapEntry) => {
|
|
5746
5746
|
const result = {};
|
|
5747
5747
|
const inputIsArray = Array.isArray(o);
|
|
@@ -5760,7 +5760,7 @@ var flatMorph = (o, flatMapEntry) => {
|
|
|
5760
5760
|
return outputShouldBeArray ? Object.values(result) : result;
|
|
5761
5761
|
};
|
|
5762
5762
|
|
|
5763
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5763
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/records.js
|
|
5764
5764
|
var entriesOf = Object.entries;
|
|
5765
5765
|
var isKeyOf = (k, o) => (k in o);
|
|
5766
5766
|
var hasKey = (o, k) => (k in o);
|
|
@@ -5807,7 +5807,7 @@ var enumValues = (tsEnum) => Object.values(tsEnum).filter((v) => {
|
|
|
5807
5807
|
return typeof tsEnum[v] !== "number";
|
|
5808
5808
|
});
|
|
5809
5809
|
|
|
5810
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5810
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/objectKinds.js
|
|
5811
5811
|
var ecmascriptConstructors = {
|
|
5812
5812
|
Array,
|
|
5813
5813
|
Boolean,
|
|
@@ -5923,7 +5923,7 @@ var constructorExtends = (ctor, base) => {
|
|
|
5923
5923
|
return false;
|
|
5924
5924
|
};
|
|
5925
5925
|
|
|
5926
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5926
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/clone.js
|
|
5927
5927
|
var deepClone = (input) => _clone(input, new Map);
|
|
5928
5928
|
var _clone = (input, seen) => {
|
|
5929
5929
|
if (typeof input !== "object" || input === null)
|
|
@@ -5949,7 +5949,7 @@ var _clone = (input, seen) => {
|
|
|
5949
5949
|
Object.defineProperties(cloned, propertyDescriptors);
|
|
5950
5950
|
return cloned;
|
|
5951
5951
|
};
|
|
5952
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5952
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/functions.js
|
|
5953
5953
|
var cached = (thunk) => {
|
|
5954
5954
|
let result = unset;
|
|
5955
5955
|
return () => result === unset ? result = thunk() : result;
|
|
@@ -5983,16 +5983,16 @@ var envHasCsp = cached(() => {
|
|
|
5983
5983
|
return true;
|
|
5984
5984
|
}
|
|
5985
5985
|
});
|
|
5986
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5986
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/generics.js
|
|
5987
5987
|
var brand = noSuggest("brand");
|
|
5988
5988
|
var inferred = noSuggest("arkInferred");
|
|
5989
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5989
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/hkt.js
|
|
5990
5990
|
var args = noSuggest("args");
|
|
5991
5991
|
|
|
5992
5992
|
class Hkt {
|
|
5993
5993
|
constructor() {}
|
|
5994
5994
|
}
|
|
5995
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
5995
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/isomorphic.js
|
|
5996
5996
|
var fileName = () => {
|
|
5997
5997
|
try {
|
|
5998
5998
|
const error = new Error;
|
|
@@ -6009,7 +6009,7 @@ var isomorphic = {
|
|
|
6009
6009
|
fileName,
|
|
6010
6010
|
env
|
|
6011
6011
|
};
|
|
6012
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
6012
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/strings.js
|
|
6013
6013
|
var capitalize = (s) => s[0].toUpperCase() + s.slice(1);
|
|
6014
6014
|
var anchoredRegex = (regex) => new RegExp(anchoredSource(regex), typeof regex === "string" ? "" : regex.flags);
|
|
6015
6015
|
var anchoredSource = (regex) => {
|
|
@@ -6027,7 +6027,7 @@ var whitespaceChars = {
|
|
|
6027
6027
|
"\t": 1
|
|
6028
6028
|
};
|
|
6029
6029
|
|
|
6030
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
6030
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/numbers.js
|
|
6031
6031
|
var anchoredNegativeZeroPattern = /^-0\.?0*$/.source;
|
|
6032
6032
|
var positiveIntegerPattern = /[1-9]\d*/.source;
|
|
6033
6033
|
var looseDecimalPattern = /\.\d+/.source;
|
|
@@ -6089,8 +6089,8 @@ var tryParseWellFormedBigint = (def) => {
|
|
|
6089
6089
|
return throwParseError(writeMalformedNumericLiteralMessage(def, "bigint"));
|
|
6090
6090
|
}
|
|
6091
6091
|
};
|
|
6092
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
6093
|
-
var arkUtilVersion = "0.
|
|
6092
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/registry.js
|
|
6093
|
+
var arkUtilVersion = "0.49.0";
|
|
6094
6094
|
var initialRegistryContents = {
|
|
6095
6095
|
version: arkUtilVersion,
|
|
6096
6096
|
filename: isomorphic.fileName(),
|
|
@@ -6129,10 +6129,10 @@ var baseNameFor = (value) => {
|
|
|
6129
6129
|
return throwInternalError(`Unexpected attempt to register serializable value of type ${domainOf(value)}`);
|
|
6130
6130
|
};
|
|
6131
6131
|
|
|
6132
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
6132
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/primitive.js
|
|
6133
6133
|
var serializePrimitive = (value) => typeof value === "string" ? JSON.stringify(value) : typeof value === "bigint" ? `${value}n` : `${value}`;
|
|
6134
6134
|
|
|
6135
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
6135
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/serialize.js
|
|
6136
6136
|
var snapshot = (data, opts = {}) => _serialize(data, {
|
|
6137
6137
|
onUndefined: `$ark.undefined`,
|
|
6138
6138
|
onBigInt: (n) => `$ark.bigint-${n}`,
|
|
@@ -6265,7 +6265,7 @@ var months = [
|
|
|
6265
6265
|
var timeWithUnnecessarySeconds = /:\d\d:00$/;
|
|
6266
6266
|
var pad = (value, length) => String(value).padStart(length, "0");
|
|
6267
6267
|
|
|
6268
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
6268
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/path.js
|
|
6269
6269
|
var appendStringifiedKey = (path, prop, ...[opts]) => {
|
|
6270
6270
|
const stringifySymbol = opts?.stringifySymbol ?? printable;
|
|
6271
6271
|
let propAccessChain = path;
|
|
@@ -6322,7 +6322,7 @@ class ReadonlyPath extends ReadonlyArray {
|
|
|
6322
6322
|
return this.cache.stringifyAncestors = result;
|
|
6323
6323
|
}
|
|
6324
6324
|
}
|
|
6325
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
6325
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/scanner.js
|
|
6326
6326
|
class Scanner {
|
|
6327
6327
|
chars;
|
|
6328
6328
|
i;
|
|
@@ -6388,9 +6388,9 @@ class Scanner {
|
|
|
6388
6388
|
return this.lookahead in tokens;
|
|
6389
6389
|
}
|
|
6390
6390
|
}
|
|
6391
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
6391
|
+
// ../../node_modules/.pnpm/@ark+util@0.49.0/node_modules/@ark/util/out/traits.js
|
|
6392
6392
|
var implementedTraits = noSuggest("implementedTraits");
|
|
6393
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6393
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/registry.js
|
|
6394
6394
|
var _registryName = "$ark";
|
|
6395
6395
|
var suffix = 2;
|
|
6396
6396
|
while (_registryName in globalThis)
|
|
@@ -6401,7 +6401,7 @@ var $ark = registry;
|
|
|
6401
6401
|
var reference = (name) => `${registryName}.${name}`;
|
|
6402
6402
|
var registeredReference = (value) => reference(register(value));
|
|
6403
6403
|
|
|
6404
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6404
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/compile.js
|
|
6405
6405
|
class CompiledFunction extends CastableBase {
|
|
6406
6406
|
argNames;
|
|
6407
6407
|
body = "";
|
|
@@ -6537,13 +6537,13 @@ class NodeCompiler extends CompiledFunction {
|
|
|
6537
6537
|
}
|
|
6538
6538
|
}
|
|
6539
6539
|
|
|
6540
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6540
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/utils.js
|
|
6541
6541
|
var makeRootAndArrayPropertiesMutable = (o) => flatMorph(o, (k, v) => [k, isArray(v) ? [...v] : v]);
|
|
6542
6542
|
var arkKind = noSuggest("arkKind");
|
|
6543
6543
|
var hasArkKind = (value, kind) => value?.[arkKind] === kind;
|
|
6544
6544
|
var isNode = (value) => hasArkKind(value, "root") || hasArkKind(value, "constraint");
|
|
6545
6545
|
|
|
6546
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6546
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/implement.js
|
|
6547
6547
|
var basisKinds = ["unit", "proto", "domain"];
|
|
6548
6548
|
var structuralKinds = [
|
|
6549
6549
|
"required",
|
|
@@ -6631,7 +6631,7 @@ var implementNode = (_) => {
|
|
|
6631
6631
|
return implementation;
|
|
6632
6632
|
};
|
|
6633
6633
|
|
|
6634
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6634
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/toJsonSchema.js
|
|
6635
6635
|
class ToJsonSchemaError extends Error {
|
|
6636
6636
|
name = "ToJsonSchemaError";
|
|
6637
6637
|
code;
|
|
@@ -6671,7 +6671,7 @@ var ToJsonSchema = {
|
|
|
6671
6671
|
defaultConfig
|
|
6672
6672
|
};
|
|
6673
6673
|
|
|
6674
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6674
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/config.js
|
|
6675
6675
|
$ark.config ??= {};
|
|
6676
6676
|
var mergeConfigs = (base, merged) => {
|
|
6677
6677
|
if (!merged)
|
|
@@ -6726,7 +6726,7 @@ var mergeFallbacks = (base, merged) => {
|
|
|
6726
6726
|
return result;
|
|
6727
6727
|
};
|
|
6728
6728
|
var normalizeFallback = (fallback) => typeof fallback === "function" ? { default: fallback } : fallback ?? {};
|
|
6729
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6729
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/errors.js
|
|
6730
6730
|
class ArkError extends CastableBase {
|
|
6731
6731
|
[arkKind] = "error";
|
|
6732
6732
|
path;
|
|
@@ -6924,7 +6924,7 @@ var indent = (error) => error.toString().split(`
|
|
|
6924
6924
|
`).join(`
|
|
6925
6925
|
`);
|
|
6926
6926
|
|
|
6927
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
6927
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/traversal.js
|
|
6928
6928
|
class Traversal {
|
|
6929
6929
|
path = [];
|
|
6930
6930
|
errors = new ArkErrors(this);
|
|
@@ -7032,8 +7032,8 @@ class Traversal {
|
|
|
7032
7032
|
for (let pathIndex = 0;pathIndex < path2.length - 1; pathIndex++)
|
|
7033
7033
|
parent = parent[path2[pathIndex]];
|
|
7034
7034
|
}
|
|
7035
|
-
this.path = [...path2];
|
|
7036
7035
|
for (const morph of morphs) {
|
|
7036
|
+
this.path = [...path2];
|
|
7037
7037
|
const morphIsNode = isNode(morph);
|
|
7038
7038
|
const result = morph(parent === undefined ? this.root : parent[key], this);
|
|
7039
7039
|
if (result instanceof ArkError) {
|
|
@@ -7063,7 +7063,7 @@ var traverseKey = (key, fn, ctx) => {
|
|
|
7063
7063
|
return result;
|
|
7064
7064
|
};
|
|
7065
7065
|
|
|
7066
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7066
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/node.js
|
|
7067
7067
|
class BaseNode extends Callable {
|
|
7068
7068
|
attachments;
|
|
7069
7069
|
$;
|
|
@@ -7406,7 +7406,7 @@ var appendUniqueNodes = (existing, refs) => appendUnique(existing, refs, {
|
|
|
7406
7406
|
isEqual: (l, r) => l.equals(r)
|
|
7407
7407
|
});
|
|
7408
7408
|
|
|
7409
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7409
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/disjoint.js
|
|
7410
7410
|
class Disjoint extends Array {
|
|
7411
7411
|
static init(kind, l, r, ctx) {
|
|
7412
7412
|
return new Disjoint({
|
|
@@ -7468,7 +7468,7 @@ var describeReasons = (l, r) => `${describeReason(l)} and ${describeReason(r)}`;
|
|
|
7468
7468
|
var describeReason = (value) => isNode(value) ? value.expression : isArray(value) ? value.map(describeReason).join(" | ") || "never" : String(value);
|
|
7469
7469
|
var writeUnsatisfiableExpressionError = (expression) => `${expression} results in an unsatisfiable type`;
|
|
7470
7470
|
|
|
7471
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7471
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/shared/intersections.js
|
|
7472
7472
|
var intersectionCache = {};
|
|
7473
7473
|
var intersectNodesRoot = (l, r, $) => intersectOrPipeNodes(l, r, {
|
|
7474
7474
|
$,
|
|
@@ -7576,7 +7576,7 @@ var _pipeMorphed = (from, to, ctx) => {
|
|
|
7576
7576
|
});
|
|
7577
7577
|
};
|
|
7578
7578
|
|
|
7579
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7579
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/constraint.js
|
|
7580
7580
|
class BaseConstraint extends BaseNode {
|
|
7581
7581
|
constructor(attachments, $) {
|
|
7582
7582
|
super(attachments, $);
|
|
@@ -7690,7 +7690,7 @@ var writeInvalidOperandMessage = (kind, expected, actual) => {
|
|
|
7690
7690
|
const actualDescription = actual.hasKind("morph") ? "a morph" : actual.isUnknown() ? "unknown" : actual.exclude(expected).defaultShortDescription;
|
|
7691
7691
|
return `${capitalize(kind)} operand must be ${expected.description} (was ${actualDescription})`;
|
|
7692
7692
|
};
|
|
7693
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7693
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/generic.js
|
|
7694
7694
|
var parseGeneric = (paramDefs, bodyDef, $) => new GenericRoot(paramDefs, bodyDef, $, $, null);
|
|
7695
7695
|
|
|
7696
7696
|
class LazyGenericBody extends Callable {
|
|
@@ -7761,7 +7761,7 @@ class GenericRoot extends Callable {
|
|
|
7761
7761
|
}
|
|
7762
7762
|
}
|
|
7763
7763
|
var writeUnsatisfiedParameterConstraintMessage = (name, constraint, arg) => `${name} must be assignable to ${constraint} (was ${arg})`;
|
|
7764
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7764
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/predicate.js
|
|
7765
7765
|
var implementation = implementNode({
|
|
7766
7766
|
kind: "predicate",
|
|
7767
7767
|
hasAssociatedError: true,
|
|
@@ -7816,7 +7816,7 @@ var Predicate = {
|
|
|
7816
7816
|
Node: PredicateNode
|
|
7817
7817
|
};
|
|
7818
7818
|
|
|
7819
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7819
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/divisor.js
|
|
7820
7820
|
var implementation2 = implementNode({
|
|
7821
7821
|
kind: "divisor",
|
|
7822
7822
|
collapsibleKey: "rule",
|
|
@@ -7869,7 +7869,7 @@ var greatestCommonDivisor = (l, r) => {
|
|
|
7869
7869
|
return greatestCommonDivisor2;
|
|
7870
7870
|
};
|
|
7871
7871
|
|
|
7872
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7872
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/range.js
|
|
7873
7873
|
class BaseRange extends InternalPrimitiveConstraint {
|
|
7874
7874
|
boundOperandKind = operandKindsByBoundKind[this.kind];
|
|
7875
7875
|
compiledActual = this.boundOperandKind === "value" ? `data` : this.boundOperandKind === "length" ? `data.length` : `data.valueOf()`;
|
|
@@ -7949,7 +7949,7 @@ var compileComparator = (kind, exclusive) => `${isKeyOf(kind, boundKindPairsByLo
|
|
|
7949
7949
|
var dateLimitToString = (limit) => typeof limit === "string" ? limit : new Date(limit).toLocaleString();
|
|
7950
7950
|
var writeUnboundableMessage = (root) => `Bounded expression ${root} must be exactly one of number, string, Array, or Date`;
|
|
7951
7951
|
|
|
7952
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7952
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/after.js
|
|
7953
7953
|
var implementation3 = implementNode({
|
|
7954
7954
|
kind: "after",
|
|
7955
7955
|
collapsibleKey: "rule",
|
|
@@ -7983,7 +7983,7 @@ var After = {
|
|
|
7983
7983
|
Node: AfterNode
|
|
7984
7984
|
};
|
|
7985
7985
|
|
|
7986
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
7986
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/before.js
|
|
7987
7987
|
var implementation4 = implementNode({
|
|
7988
7988
|
kind: "before",
|
|
7989
7989
|
collapsibleKey: "rule",
|
|
@@ -8018,7 +8018,7 @@ var Before = {
|
|
|
8018
8018
|
Node: BeforeNode
|
|
8019
8019
|
};
|
|
8020
8020
|
|
|
8021
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8021
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/exactLength.js
|
|
8022
8022
|
var implementation5 = implementNode({
|
|
8023
8023
|
kind: "exactLength",
|
|
8024
8024
|
collapsibleKey: "rule",
|
|
@@ -8066,7 +8066,7 @@ var ExactLength = {
|
|
|
8066
8066
|
Node: ExactLengthNode
|
|
8067
8067
|
};
|
|
8068
8068
|
|
|
8069
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8069
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/max.js
|
|
8070
8070
|
var implementation6 = implementNode({
|
|
8071
8071
|
kind: "max",
|
|
8072
8072
|
collapsibleKey: "rule",
|
|
@@ -8106,7 +8106,7 @@ var Max = {
|
|
|
8106
8106
|
Node: MaxNode
|
|
8107
8107
|
};
|
|
8108
8108
|
|
|
8109
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8109
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/maxLength.js
|
|
8110
8110
|
var implementation7 = implementNode({
|
|
8111
8111
|
kind: "maxLength",
|
|
8112
8112
|
collapsibleKey: "rule",
|
|
@@ -8149,7 +8149,7 @@ var MaxLength = {
|
|
|
8149
8149
|
Node: MaxLengthNode
|
|
8150
8150
|
};
|
|
8151
8151
|
|
|
8152
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8152
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/min.js
|
|
8153
8153
|
var implementation8 = implementNode({
|
|
8154
8154
|
kind: "min",
|
|
8155
8155
|
collapsibleKey: "rule",
|
|
@@ -8188,7 +8188,7 @@ var Min = {
|
|
|
8188
8188
|
Node: MinNode
|
|
8189
8189
|
};
|
|
8190
8190
|
|
|
8191
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8191
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/minLength.js
|
|
8192
8192
|
var implementation9 = implementNode({
|
|
8193
8193
|
kind: "minLength",
|
|
8194
8194
|
collapsibleKey: "rule",
|
|
@@ -8230,7 +8230,7 @@ var MinLength = {
|
|
|
8230
8230
|
Node: MinLengthNode
|
|
8231
8231
|
};
|
|
8232
8232
|
|
|
8233
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8233
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/kinds.js
|
|
8234
8234
|
var boundImplementationsByKind = {
|
|
8235
8235
|
min: Min.implementation,
|
|
8236
8236
|
max: Max.implementation,
|
|
@@ -8250,7 +8250,7 @@ var boundClassesByKind = {
|
|
|
8250
8250
|
before: Before.Node
|
|
8251
8251
|
};
|
|
8252
8252
|
|
|
8253
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8253
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/refinements/pattern.js
|
|
8254
8254
|
var implementation10 = implementNode({
|
|
8255
8255
|
kind: "pattern",
|
|
8256
8256
|
collapsibleKey: "rule",
|
|
@@ -8295,7 +8295,7 @@ var Pattern = {
|
|
|
8295
8295
|
Node: PatternNode
|
|
8296
8296
|
};
|
|
8297
8297
|
|
|
8298
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8298
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/parse.js
|
|
8299
8299
|
var schemaKindOf = (schema, allowedKinds) => {
|
|
8300
8300
|
const kind = discriminateRootKind(schema);
|
|
8301
8301
|
if (allowedKinds && !allowedKinds.includes(kind)) {
|
|
@@ -8476,7 +8476,7 @@ var possiblyCollapse = (json, toKey, allowPrimitive) => {
|
|
|
8476
8476
|
return json;
|
|
8477
8477
|
};
|
|
8478
8478
|
|
|
8479
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8479
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/structure/prop.js
|
|
8480
8480
|
var intersectProps = (l, r, ctx) => {
|
|
8481
8481
|
if (l.key !== r.key)
|
|
8482
8482
|
return null;
|
|
@@ -8543,7 +8543,7 @@ class BaseProp extends BaseConstraint {
|
|
|
8543
8543
|
}
|
|
8544
8544
|
var writeDefaultIntersectionMessage = (lValue, rValue) => `Invalid intersection of default values ${printable(lValue)} & ${printable(rValue)}`;
|
|
8545
8545
|
|
|
8546
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8546
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/structure/optional.js
|
|
8547
8547
|
var implementation11 = implementNode({
|
|
8548
8548
|
kind: "optional",
|
|
8549
8549
|
hasAssociatedError: false,
|
|
@@ -8639,7 +8639,7 @@ var writeNonPrimitiveNonFunctionDefaultValueMessage = (key) => {
|
|
|
8639
8639
|
return `Non-primitive default ${keyDescription}must be specified as a function like () => ({my: 'object'})`;
|
|
8640
8640
|
};
|
|
8641
8641
|
|
|
8642
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
8642
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/root.js
|
|
8643
8643
|
class BaseRoot extends BaseNode {
|
|
8644
8644
|
constructor(attachments, $) {
|
|
8645
8645
|
super(attachments, $);
|
|
@@ -8657,6 +8657,14 @@ class BaseRoot extends BaseNode {
|
|
|
8657
8657
|
if (out instanceof ArkErrors)
|
|
8658
8658
|
return out;
|
|
8659
8659
|
return { value: out };
|
|
8660
|
+
},
|
|
8661
|
+
toJSONSchema: (opts) => {
|
|
8662
|
+
if (opts.target && opts.target !== "draft-2020-12") {
|
|
8663
|
+
return throwParseError(`JSONSchema target '${opts.target}' is not supported (must be "draft-2020-12")`);
|
|
8664
|
+
}
|
|
8665
|
+
if (opts.io === "input")
|
|
8666
|
+
return this.in.toJsonSchema();
|
|
8667
|
+
return this.out.toJsonSchema();
|
|
8660
8668
|
}
|
|
8661
8669
|
};
|
|
8662
8670
|
}
|
|
@@ -8997,13 +9005,13 @@ var writeLiteralUnionEntriesMessage = (expression) => `Props cannot be extracted
|
|
|
8997
9005
|
${expression}`;
|
|
8998
9006
|
var writeNonStructuralOperandMessage = (operation, operand) => `${operation} operand must be an object (was ${operand})`;
|
|
8999
9007
|
|
|
9000
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
9008
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/utils.js
|
|
9001
9009
|
var defineRightwardIntersections = (kind, implementation12) => flatMorph(schemaKindsRightOf(kind), (i, kind2) => [
|
|
9002
9010
|
kind2,
|
|
9003
9011
|
implementation12
|
|
9004
9012
|
]);
|
|
9005
9013
|
|
|
9006
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
9014
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/alias.js
|
|
9007
9015
|
var normalizeAliasSchema = (schema) => typeof schema === "string" ? { reference: schema } : schema;
|
|
9008
9016
|
var neverIfDisjoint = (result) => result instanceof Disjoint ? $ark.intrinsic.never.internal : result;
|
|
9009
9017
|
var implementation12 = implementNode({
|
|
@@ -9111,7 +9119,7 @@ var Alias = {
|
|
|
9111
9119
|
Node: AliasNode
|
|
9112
9120
|
};
|
|
9113
9121
|
|
|
9114
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
9122
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/basis.js
|
|
9115
9123
|
class InternalBasis extends BaseRoot {
|
|
9116
9124
|
traverseApply = (data, ctx) => {
|
|
9117
9125
|
if (!this.traverseAllows(data, ctx))
|
|
@@ -9137,7 +9145,7 @@ class InternalBasis extends BaseRoot {
|
|
|
9137
9145
|
}
|
|
9138
9146
|
}
|
|
9139
9147
|
|
|
9140
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
9148
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/domain.js
|
|
9141
9149
|
var implementation13 = implementNode({
|
|
9142
9150
|
kind: "domain",
|
|
9143
9151
|
hasAssociatedError: true,
|
|
@@ -9188,7 +9196,7 @@ var Domain = {
|
|
|
9188
9196
|
writeBadAllowNanMessage: (actual) => `numberAllowsNaN may only be specified with domain "number" (was ${actual})`
|
|
9189
9197
|
};
|
|
9190
9198
|
|
|
9191
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
9199
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/intersection.js
|
|
9192
9200
|
var implementation14 = implementNode({
|
|
9193
9201
|
kind: "intersection",
|
|
9194
9202
|
hasAssociatedError: true,
|
|
@@ -9427,7 +9435,7 @@ var intersectIntersections = (l, r, ctx) => {
|
|
|
9427
9435
|
});
|
|
9428
9436
|
};
|
|
9429
9437
|
|
|
9430
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
9438
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/morph.js
|
|
9431
9439
|
var implementation15 = implementNode({
|
|
9432
9440
|
kind: "morph",
|
|
9433
9441
|
hasAssociatedError: false,
|
|
@@ -9563,7 +9571,7 @@ var writeMorphIntersectionMessage = (lDescription, rDescription) => `The interse
|
|
|
9563
9571
|
Left: ${lDescription}
|
|
9564
9572
|
Right: ${rDescription}`;
|
|
9565
9573
|
|
|
9566
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
9574
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/proto.js
|
|
9567
9575
|
var implementation16 = implementNode({
|
|
9568
9576
|
kind: "proto",
|
|
9569
9577
|
hasAssociatedError: true,
|
|
@@ -9636,7 +9644,7 @@ var Proto = {
|
|
|
9636
9644
|
writeInvalidSchemaMessage: (actual) => `instanceOf operand must be a function (was ${domainOf(actual)})`
|
|
9637
9645
|
};
|
|
9638
9646
|
|
|
9639
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
9647
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/union.js
|
|
9640
9648
|
var implementation17 = implementNode({
|
|
9641
9649
|
kind: "union",
|
|
9642
9650
|
hasAssociatedError: true,
|
|
@@ -10188,7 +10196,7 @@ var writeOrderedIntersectionMessage = (lDescription, rDescription) => `The inter
|
|
|
10188
10196
|
Left: ${lDescription}
|
|
10189
10197
|
Right: ${rDescription}`;
|
|
10190
10198
|
|
|
10191
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
10199
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/roots/unit.js
|
|
10192
10200
|
var implementation18 = implementNode({
|
|
10193
10201
|
kind: "unit",
|
|
10194
10202
|
hasAssociatedError: true,
|
|
@@ -10250,7 +10258,7 @@ var compileEqualityCheck = (unit, serializedValue, negated) => {
|
|
|
10250
10258
|
return `data ${negated ? "!" : "="}== ${serializedValue}`;
|
|
10251
10259
|
};
|
|
10252
10260
|
|
|
10253
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
10261
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/structure/index.js
|
|
10254
10262
|
var implementation19 = implementNode({
|
|
10255
10263
|
kind: "index",
|
|
10256
10264
|
hasAssociatedError: false,
|
|
@@ -10327,7 +10335,7 @@ var Index = {
|
|
|
10327
10335
|
var writeEnumerableIndexBranches = (keys2) => `Index keys ${keys2.join(", ")} should be specified as named props.`;
|
|
10328
10336
|
var writeInvalidPropertyKeyMessage = (indexSchema) => `Indexed key definition '${indexSchema}' must be a string or symbol`;
|
|
10329
10337
|
|
|
10330
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
10338
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/structure/required.js
|
|
10331
10339
|
var implementation20 = implementNode({
|
|
10332
10340
|
kind: "required",
|
|
10333
10341
|
hasAssociatedError: true,
|
|
@@ -10366,7 +10374,7 @@ var Required = {
|
|
|
10366
10374
|
Node: RequiredNode
|
|
10367
10375
|
};
|
|
10368
10376
|
|
|
10369
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
10377
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/structure/sequence.js
|
|
10370
10378
|
var implementation21 = implementNode({
|
|
10371
10379
|
kind: "sequence",
|
|
10372
10380
|
hasAssociatedError: false,
|
|
@@ -10739,7 +10747,7 @@ var _intersectSequences = (s) => {
|
|
|
10739
10747
|
return _intersectSequences(s);
|
|
10740
10748
|
};
|
|
10741
10749
|
|
|
10742
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
10750
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/structure/structure.js
|
|
10743
10751
|
var createStructuralWriter = (childStringProp) => (node) => {
|
|
10744
10752
|
if (node.props.length || node.index) {
|
|
10745
10753
|
const parts = node.index?.map((index) => index[childStringProp]) ?? [];
|
|
@@ -11404,7 +11412,7 @@ var normalizeIndex = (signature, value, $) => {
|
|
|
11404
11412
|
var typeKeyToString = (k) => hasArkKind(k, "root") ? k.expression : printable(k);
|
|
11405
11413
|
var writeInvalidKeysMessage = (o, keys2) => `Key${keys2.length === 1 ? "" : "s"} ${keys2.map(typeKeyToString).join(", ")} ${keys2.length === 1 ? "does" : "do"} not exist on ${o}`;
|
|
11406
11414
|
|
|
11407
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
11415
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/kinds.js
|
|
11408
11416
|
var nodeImplementationsByKind = {
|
|
11409
11417
|
...boundImplementationsByKind,
|
|
11410
11418
|
alias: Alias.implementation,
|
|
@@ -11457,7 +11465,7 @@ var nodeClassesByKind = {
|
|
|
11457
11465
|
structure: Structure.Node
|
|
11458
11466
|
};
|
|
11459
11467
|
|
|
11460
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
11468
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/module.js
|
|
11461
11469
|
class RootModule extends DynamicBase {
|
|
11462
11470
|
get [arkKind]() {
|
|
11463
11471
|
return "module";
|
|
@@ -11468,7 +11476,7 @@ var bindModule = (module, $) => new RootModule(flatMorph(module, (alias, value)
|
|
|
11468
11476
|
hasArkKind(value, "module") ? bindModule(value, $) : $.bindReference(value)
|
|
11469
11477
|
]));
|
|
11470
11478
|
|
|
11471
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
11479
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/scope.js
|
|
11472
11480
|
var schemaBranchesOf = (schema) => isArray(schema) ? schema : ("branches" in schema) && isArray(schema.branches) ? schema.branches : undefined;
|
|
11473
11481
|
var throwMismatchedNodeRootError = (expected, actual) => throwParseError(`Node of kind ${actual} is not valid as a ${expected} definition`);
|
|
11474
11482
|
var writeDuplicateAliasError = (alias) => `#${alias} duplicates public alias ${alias}`;
|
|
@@ -11875,12 +11883,12 @@ var node = rootSchemaScope.node;
|
|
|
11875
11883
|
var defineSchema = rootSchemaScope.defineSchema;
|
|
11876
11884
|
var genericNode = rootSchemaScope.generic;
|
|
11877
11885
|
|
|
11878
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
11886
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/structure/shared.js
|
|
11879
11887
|
var arrayIndexSource = `^(?:0|[1-9]\\d*)$`;
|
|
11880
11888
|
var arrayIndexMatcher = new RegExp(arrayIndexSource);
|
|
11881
11889
|
var arrayIndexMatcherReference = registeredReference(arrayIndexMatcher);
|
|
11882
11890
|
|
|
11883
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
11891
|
+
// ../../node_modules/.pnpm/@ark+schema@0.49.0/node_modules/@ark/schema/out/intrinsic.js
|
|
11884
11892
|
var intrinsicBases = schemaScope({
|
|
11885
11893
|
bigint: "bigint",
|
|
11886
11894
|
boolean: [{ unit: false }, { unit: true }],
|
|
@@ -11932,7 +11940,7 @@ var intrinsic = {
|
|
|
11932
11940
|
emptyStructure: node("structure", {}, { prereduced: true })
|
|
11933
11941
|
};
|
|
11934
11942
|
$ark.intrinsic = { ...intrinsic };
|
|
11935
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
11943
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operand/date.js
|
|
11936
11944
|
var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value.at(-1) === value[1];
|
|
11937
11945
|
var isValidDate = (d) => d.toString() !== "Invalid Date";
|
|
11938
11946
|
var extractDateLiteralSource = (literal) => literal.slice(2, -1);
|
|
@@ -11951,7 +11959,7 @@ var maybeParseDate = (source, errorOnFail) => {
|
|
|
11951
11959
|
return errorOnFail ? throwParseError(errorOnFail === true ? writeInvalidDateMessage(source) : errorOnFail) : undefined;
|
|
11952
11960
|
};
|
|
11953
11961
|
|
|
11954
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
11962
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operand/enclosed.js
|
|
11955
11963
|
var parseEnclosed = (s, enclosing) => {
|
|
11956
11964
|
const enclosed = s.scanner.shiftUntil(untilLookaheadIsClosing[enclosingTokens[enclosing]]);
|
|
11957
11965
|
if (s.scanner.lookahead === "")
|
|
@@ -12002,12 +12010,12 @@ var enclosingCharDescriptions = {
|
|
|
12002
12010
|
};
|
|
12003
12011
|
var writeUnterminatedEnclosedMessage = (fragment2, enclosingStart) => `${enclosingStart}${fragment2} requires a closing ${enclosingCharDescriptions[enclosingTokens[enclosingStart]]}`;
|
|
12004
12012
|
|
|
12005
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12013
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/ast/validate.js
|
|
12006
12014
|
var writePrefixedPrivateReferenceMessage = (name) => `Private type references should not include '#'. Use '${name}' instead.`;
|
|
12007
12015
|
var shallowOptionalMessage = "Optional definitions like 'string?' are only valid as properties in an object or tuple";
|
|
12008
12016
|
var shallowDefaultableMessage = "Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";
|
|
12009
12017
|
|
|
12010
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12018
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/reduce/shared.js
|
|
12011
12019
|
var minComparators = {
|
|
12012
12020
|
">": true,
|
|
12013
12021
|
">=": true
|
|
@@ -12029,7 +12037,7 @@ var writeOpenRangeMessage = (min2, comparator) => `Left bounds are only valid wh
|
|
|
12029
12037
|
var writeUnpairableComparatorMessage = (comparator) => `Left-bounded expressions must specify their limits using < or <= (was ${comparator})`;
|
|
12030
12038
|
var writeMultipleLeftBoundsMessage = (openLimit, openComparator, limit, comparator) => `An expression may have at most one left bound (parsed ${openLimit}${invertedComparators[openComparator]}, ${limit}${invertedComparators[comparator]})`;
|
|
12031
12039
|
|
|
12032
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12040
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operand/genericArgs.js
|
|
12033
12041
|
var parseGenericArgs = (name, g, s) => _parseGenericArgs(name, g, s, []);
|
|
12034
12042
|
var _parseGenericArgs = (name, g, s, argNodes) => {
|
|
12035
12043
|
const argState = s.parseUntilFinalizer();
|
|
@@ -12046,7 +12054,7 @@ var _parseGenericArgs = (name, g, s, argNodes) => {
|
|
|
12046
12054
|
};
|
|
12047
12055
|
var writeInvalidGenericArgCountMessage = (name, params, argDefs) => `${name}<${params.join(", ")}> requires exactly ${params.length} args (got ${argDefs.length}${argDefs.length === 0 ? "" : `: ${argDefs.join(", ")}`})`;
|
|
12048
12056
|
|
|
12049
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12057
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operand/unenclosed.js
|
|
12050
12058
|
var parseUnenclosed = (s) => {
|
|
12051
12059
|
const token = s.scanner.shiftUntilNextTerminator();
|
|
12052
12060
|
if (token === "keyof")
|
|
@@ -12094,10 +12102,10 @@ var writeMissingOperandMessage = (s) => {
|
|
|
12094
12102
|
var writeMissingRightOperandMessage = (token, unscanned = "") => `Token '${token}' requires a right operand${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
12095
12103
|
var writeExpressionExpectedMessage = (unscanned) => `Expected an expression${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
12096
12104
|
|
|
12097
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12105
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operand/operand.js
|
|
12098
12106
|
var parseOperand = (s) => s.scanner.lookahead === "" ? s.error(writeMissingOperandMessage(s)) : s.scanner.lookahead === "(" ? s.shiftedByOne().reduceGroupOpen() : s.scanner.lookaheadIsIn(enclosingChar) ? parseEnclosed(s, s.scanner.shift()) : s.scanner.lookaheadIsIn(whitespaceChars) ? parseOperand(s.shiftedByOne()) : s.scanner.lookahead === "d" ? s.scanner.nextLookahead in enclosingQuote ? parseEnclosed(s, `${s.scanner.shift()}${s.scanner.shift()}`) : parseUnenclosed(s) : parseUnenclosed(s);
|
|
12099
12107
|
|
|
12100
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12108
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/scanner.js
|
|
12101
12109
|
class ArkTypeScanner extends Scanner {
|
|
12102
12110
|
shiftUntilNextTerminator() {
|
|
12103
12111
|
this.shiftUntilNonWhitespace();
|
|
@@ -12128,7 +12136,7 @@ class ArkTypeScanner extends Scanner {
|
|
|
12128
12136
|
static lookaheadIsFinalizing = (lookahead, unscanned) => lookahead === ">" ? unscanned[0] === "=" ? unscanned[1] === "=" : unscanned.trimStart() === "" || isKeyOf(unscanned.trimStart()[0], ArkTypeScanner.terminatingChars) : lookahead === "=" ? unscanned[0] !== "=" : lookahead === "," || lookahead === "?";
|
|
12129
12137
|
}
|
|
12130
12138
|
|
|
12131
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12139
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operator/bounds.js
|
|
12132
12140
|
var parseBound = (s, start) => {
|
|
12133
12141
|
const comparator = shiftComparator(s, start);
|
|
12134
12142
|
if (s.root.hasKind("unit")) {
|
|
@@ -12199,14 +12207,14 @@ var parseRightBound = (s, comparator) => {
|
|
|
12199
12207
|
};
|
|
12200
12208
|
var writeInvalidLimitMessage = (comparator, limit, boundKind) => `Comparator ${boundKind === "left" ? invertedComparators[comparator] : comparator} must be ${boundKind === "left" ? "preceded" : "followed"} by a corresponding literal (was ${limit})`;
|
|
12201
12209
|
|
|
12202
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12210
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operator/brand.js
|
|
12203
12211
|
var parseBrand = (s) => {
|
|
12204
12212
|
s.scanner.shiftUntilNonWhitespace();
|
|
12205
12213
|
const brandName = s.scanner.shiftUntilNextTerminator();
|
|
12206
12214
|
s.root = s.root.brand(brandName);
|
|
12207
12215
|
};
|
|
12208
12216
|
|
|
12209
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12217
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operator/divisor.js
|
|
12210
12218
|
var parseDivisor = (s) => {
|
|
12211
12219
|
const divisorToken = s.scanner.shiftUntilNextTerminator();
|
|
12212
12220
|
const divisor2 = tryParseInteger(divisorToken, {
|
|
@@ -12218,7 +12226,7 @@ var parseDivisor = (s) => {
|
|
|
12218
12226
|
};
|
|
12219
12227
|
var writeInvalidDivisorMessage = (divisor2) => `% operator must be followed by a non-zero integer literal (was ${divisor2})`;
|
|
12220
12228
|
|
|
12221
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12229
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operator/operator.js
|
|
12222
12230
|
var parseOperator = (s) => {
|
|
12223
12231
|
const lookahead = s.scanner.shift();
|
|
12224
12232
|
return lookahead === "" ? s.finalize("") : lookahead === "[" ? s.scanner.shift() === "]" ? s.setRoot(s.root.array()) : s.error(incompleteArrayTokenMessage) : lookahead === "|" ? s.scanner.lookahead === ">" ? s.shiftedByOne().pushRootToBranch("|>") : s.pushRootToBranch(lookahead) : lookahead === "&" ? s.pushRootToBranch(lookahead) : lookahead === ")" ? s.finalizeGroup() : ArkTypeScanner.lookaheadIsFinalizing(lookahead, s.scanner.unscanned) ? s.finalize(lookahead) : isKeyOf(lookahead, comparatorStartChars) ? parseBound(s, lookahead) : lookahead === "%" ? parseDivisor(s) : lookahead === "#" ? parseBrand(s) : (lookahead in whitespaceChars) ? parseOperator(s) : s.error(writeUnexpectedCharacterMessage(lookahead));
|
|
@@ -12226,7 +12234,7 @@ var parseOperator = (s) => {
|
|
|
12226
12234
|
var writeUnexpectedCharacterMessage = (char, shouldBe = "") => `'${char}' is not allowed here${shouldBe && ` (should be ${shouldBe})`}`;
|
|
12227
12235
|
var incompleteArrayTokenMessage = `Missing expected ']'`;
|
|
12228
12236
|
|
|
12229
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12237
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/shift/operator/default.js
|
|
12230
12238
|
var parseDefault = (s) => {
|
|
12231
12239
|
const baseNode = s.unsetRoot();
|
|
12232
12240
|
s.parseOperand();
|
|
@@ -12238,7 +12246,7 @@ var parseDefault = (s) => {
|
|
|
12238
12246
|
};
|
|
12239
12247
|
var writeNonLiteralDefaultMessage = (defaultDef) => `Default value '${defaultDef}' must a literal value`;
|
|
12240
12248
|
|
|
12241
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12249
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/string.js
|
|
12242
12250
|
var parseString = (def, ctx) => {
|
|
12243
12251
|
const aliasResolution = ctx.$.maybeResolveRoot(def);
|
|
12244
12252
|
if (aliasResolution)
|
|
@@ -12277,7 +12285,7 @@ var parseUntilFinalizer = (s) => {
|
|
|
12277
12285
|
};
|
|
12278
12286
|
var next = (s) => s.hasRoot() ? s.parseOperator() : s.parseOperand();
|
|
12279
12287
|
|
|
12280
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12288
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/reduce/dynamic.js
|
|
12281
12289
|
class DynamicState {
|
|
12282
12290
|
root;
|
|
12283
12291
|
branches = {
|
|
@@ -12413,7 +12421,7 @@ class DynamicState {
|
|
|
12413
12421
|
}
|
|
12414
12422
|
}
|
|
12415
12423
|
|
|
12416
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12424
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/generic.js
|
|
12417
12425
|
var emptyGenericParameterMessage = "An empty string is not a valid generic parameter name";
|
|
12418
12426
|
var parseGenericParamName = (scanner2, result, ctx) => {
|
|
12419
12427
|
scanner2.shiftUntilNonWhitespace();
|
|
@@ -12441,7 +12449,7 @@ var _parseOptionalConstraint = (scanner2, name, result, ctx) => {
|
|
|
12441
12449
|
result.push([name, s.root]);
|
|
12442
12450
|
return parseGenericParamName(scanner2, result, ctx);
|
|
12443
12451
|
};
|
|
12444
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12452
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/match.js
|
|
12445
12453
|
class InternalMatchParser extends Callable {
|
|
12446
12454
|
$;
|
|
12447
12455
|
constructor($) {
|
|
@@ -12535,7 +12543,7 @@ var throwOnDefault = (errors3) => errors3.throw();
|
|
|
12535
12543
|
var chainedAtMessage = `A key matcher must be specified before the first case i.e. match.at('foo') or match.in<object>().at('bar')`;
|
|
12536
12544
|
var doubleAtMessage = `At most one key matcher may be specified per expression`;
|
|
12537
12545
|
|
|
12538
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12546
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/property.js
|
|
12539
12547
|
var parseProperty = (def, ctx) => {
|
|
12540
12548
|
if (isArray(def)) {
|
|
12541
12549
|
if (def[1] === "=")
|
|
@@ -12548,7 +12556,7 @@ var parseProperty = (def, ctx) => {
|
|
|
12548
12556
|
var invalidOptionalKeyKindMessage = `Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }`;
|
|
12549
12557
|
var invalidDefaultableKeyKindMessage = `Only required keys may specify default values, e.g. { value: 'number = 0' }`;
|
|
12550
12558
|
|
|
12551
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12559
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/objectLiteral.js
|
|
12552
12560
|
var parseObjectLiteral = (def, ctx) => {
|
|
12553
12561
|
let spread;
|
|
12554
12562
|
const structure3 = {};
|
|
@@ -12633,7 +12641,7 @@ var preparseKey = (key) => typeof key === "symbol" ? { kind: "required", normali
|
|
|
12633
12641
|
};
|
|
12634
12642
|
var writeInvalidSpreadTypeMessage = (def) => `Spread operand must resolve to an object literal type (was ${def})`;
|
|
12635
12643
|
|
|
12636
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12644
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/tupleExpressions.js
|
|
12637
12645
|
var maybeParseTupleExpression = (def, ctx) => isIndexZeroExpression(def) ? indexZeroParsers[def[0]](def, ctx) : isIndexOneExpression(def) ? indexOneParsers[def[1]](def, ctx) : null;
|
|
12638
12646
|
var parseKeyOfTuple = (def, ctx) => ctx.$.parseOwnDefinitionFormat(def[1], ctx).keyof();
|
|
12639
12647
|
var parseBranchTuple = (def, ctx) => {
|
|
@@ -12694,7 +12702,7 @@ var indexZeroParsers = defineIndexZeroParsers({
|
|
|
12694
12702
|
var isIndexZeroExpression = (def) => indexZeroParsers[def[0]] !== undefined;
|
|
12695
12703
|
var writeInvalidConstructorMessage = (actual) => `Expected a constructor following 'instanceof' operator (was ${actual})`;
|
|
12696
12704
|
|
|
12697
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12705
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/tupleLiteral.js
|
|
12698
12706
|
var parseTupleLiteral = (def, ctx) => {
|
|
12699
12707
|
let sequences = [{}];
|
|
12700
12708
|
let i = 0;
|
|
@@ -12790,7 +12798,7 @@ var requiredPostOptionalMessage = "A required element may not follow an optional
|
|
|
12790
12798
|
var optionalOrDefaultableAfterVariadicMessage = "An optional element may not follow a variadic element";
|
|
12791
12799
|
var defaultablePostOptionalMessage = "A defaultable element may not follow an optional element without a default";
|
|
12792
12800
|
|
|
12793
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12801
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/parser/definition.js
|
|
12794
12802
|
var parseCache = {};
|
|
12795
12803
|
var parseInnerDefinition = (def, ctx) => {
|
|
12796
12804
|
if (typeof def === "string") {
|
|
@@ -12829,7 +12837,7 @@ var parseObject = (def, ctx) => {
|
|
|
12829
12837
|
var parseTuple = (def, ctx) => maybeParseTupleExpression(def, ctx) ?? parseTupleLiteral(def, ctx);
|
|
12830
12838
|
var writeBadDefinitionTypeMessage = (actual) => `Type definitions must be strings or objects (was ${actual})`;
|
|
12831
12839
|
|
|
12832
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12840
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/type.js
|
|
12833
12841
|
class InternalTypeParser extends Callable {
|
|
12834
12842
|
constructor($) {
|
|
12835
12843
|
const attach = Object.assign({
|
|
@@ -12870,7 +12878,7 @@ class InternalTypeParser extends Callable {
|
|
|
12870
12878
|
}
|
|
12871
12879
|
}
|
|
12872
12880
|
|
|
12873
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12881
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/scope.js
|
|
12874
12882
|
var $arkTypeRegistry = $ark;
|
|
12875
12883
|
|
|
12876
12884
|
class InternalScope extends BaseScope {
|
|
@@ -12963,7 +12971,7 @@ var scope2 = Object.assign(InternalScope.scope, {
|
|
|
12963
12971
|
});
|
|
12964
12972
|
var Scope = InternalScope;
|
|
12965
12973
|
|
|
12966
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12974
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/builtins.js
|
|
12967
12975
|
class MergeHkt extends Hkt {
|
|
12968
12976
|
description = 'merge an object\'s properties onto another like `Merge(User, { isAdmin: "true" })`';
|
|
12969
12977
|
}
|
|
@@ -12973,7 +12981,7 @@ var arkBuiltins = Scope.module({
|
|
|
12973
12981
|
Merge
|
|
12974
12982
|
});
|
|
12975
12983
|
|
|
12976
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
12984
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/Array.js
|
|
12977
12985
|
class liftFromHkt extends Hkt {
|
|
12978
12986
|
}
|
|
12979
12987
|
var liftFrom = genericNode("element")((args2) => {
|
|
@@ -12990,7 +12998,7 @@ var arkArray = Scope.module({
|
|
|
12990
12998
|
name: "Array"
|
|
12991
12999
|
});
|
|
12992
13000
|
|
|
12993
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
13001
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/FormData.js
|
|
12994
13002
|
var value = rootSchema(["string", registry.FileConstructor]);
|
|
12995
13003
|
var parsedFormDataValue = value.rawOr(value.array());
|
|
12996
13004
|
var parsed = rootSchema({
|
|
@@ -13027,7 +13035,7 @@ var arkFormData = Scope.module({
|
|
|
13027
13035
|
name: "FormData"
|
|
13028
13036
|
});
|
|
13029
13037
|
|
|
13030
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
13038
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/TypedArray.js
|
|
13031
13039
|
var TypedArray = Scope.module({
|
|
13032
13040
|
Int8: ["instanceof", Int8Array],
|
|
13033
13041
|
Uint8: ["instanceof", Uint8Array],
|
|
@@ -13044,7 +13052,7 @@ var TypedArray = Scope.module({
|
|
|
13044
13052
|
name: "TypedArray"
|
|
13045
13053
|
});
|
|
13046
13054
|
|
|
13047
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
13055
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/constructors.js
|
|
13048
13056
|
var omittedPrototypes = {
|
|
13049
13057
|
Boolean: 1,
|
|
13050
13058
|
Number: 1,
|
|
@@ -13057,7 +13065,7 @@ var arkPrototypes = Scope.module({
|
|
|
13057
13065
|
FormData: arkFormData
|
|
13058
13066
|
});
|
|
13059
13067
|
|
|
13060
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
13068
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/number.js
|
|
13061
13069
|
var epoch = rootSchema({
|
|
13062
13070
|
domain: {
|
|
13063
13071
|
domain: "number",
|
|
@@ -13100,7 +13108,7 @@ var number = Scope.module({
|
|
|
13100
13108
|
name: "number"
|
|
13101
13109
|
});
|
|
13102
13110
|
|
|
13103
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
13111
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/string.js
|
|
13104
13112
|
var regexStringNode = (regex, description, jsonSchemaFormat) => {
|
|
13105
13113
|
const schema = {
|
|
13106
13114
|
domain: "string",
|
|
@@ -13500,7 +13508,7 @@ var string = Scope.module({
|
|
|
13500
13508
|
name: "string"
|
|
13501
13509
|
});
|
|
13502
13510
|
|
|
13503
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
13511
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/ts.js
|
|
13504
13512
|
var arkTsKeywords = Scope.module({
|
|
13505
13513
|
bigint: intrinsic.bigint,
|
|
13506
13514
|
boolean: intrinsic.boolean,
|
|
@@ -13588,7 +13596,7 @@ var arkTsGenerics = Scope.module({
|
|
|
13588
13596
|
Required: Required2
|
|
13589
13597
|
});
|
|
13590
13598
|
|
|
13591
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
13599
|
+
// ../../node_modules/.pnpm/arktype@2.1.22/node_modules/arktype/out/keywords/keywords.js
|
|
13592
13600
|
var ark = scope2({
|
|
13593
13601
|
...arkTsKeywords,
|
|
13594
13602
|
...arkTsGenerics,
|