tempest.games 0.2.75 → 0.2.77
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 +15 -0
- package/app/assets/{index-II0hvKAD.js → index-B3RQO18a.js} +7 -7
- package/app/index.html +1 -1
- package/bin/backend.bun.js +523 -651
- package/bin/backend.worker.game.bun.js +17 -14
- package/bin/backend.worker.tribunal.bun.js +307 -304
- package/bin/frontend.bun.js +203 -200
- package/bin/setup-db.bun.js +155 -155
- package/package.json +9 -9
package/bin/backend.bun.js
CHANGED
|
@@ -50791,7 +50791,7 @@ var Join = class {
|
|
|
50791
50791
|
}
|
|
50792
50792
|
store;
|
|
50793
50793
|
[Symbol.dispose]() {}
|
|
50794
|
-
constructor(
|
|
50794
|
+
constructor(store, options) {
|
|
50795
50795
|
this.store = store;
|
|
50796
50796
|
this.options = options;
|
|
50797
50797
|
this.store.miscResources.set(`join:${options.key}`, this);
|
|
@@ -50966,7 +50966,7 @@ var Join = class {
|
|
|
50966
50966
|
}
|
|
50967
50967
|
};
|
|
50968
50968
|
function createJoin(store, options) {
|
|
50969
|
-
store.joins.set(options.key, new Join(options));
|
|
50969
|
+
store.joins.set(options.key, new Join(store, options));
|
|
50970
50970
|
return {
|
|
50971
50971
|
key: options.key,
|
|
50972
50972
|
type: `join`,
|
|
@@ -50975,20 +50975,19 @@ function createJoin(store, options) {
|
|
|
50975
50975
|
cardinality: options.cardinality
|
|
50976
50976
|
};
|
|
50977
50977
|
}
|
|
50978
|
-
function getJoin(
|
|
50978
|
+
function getJoin(store, token) {
|
|
50979
50979
|
let myJoin = store.joins.get(token.key);
|
|
50980
50980
|
if (myJoin === undefined) {
|
|
50981
50981
|
const rootJoin = IMPLICIT.STORE.joins.get(token.key);
|
|
50982
50982
|
if (rootJoin === undefined)
|
|
50983
50983
|
throw new Error(`Join "${token.key}" not found in store "${store.config.name}"`);
|
|
50984
|
-
|
|
50985
|
-
myJoin = new Join(rootJoin.options, root);
|
|
50984
|
+
myJoin = new Join(eldest(store), rootJoin.options);
|
|
50986
50985
|
store.joins.set(token.key, myJoin);
|
|
50987
50986
|
}
|
|
50988
50987
|
return myJoin;
|
|
50989
50988
|
}
|
|
50990
|
-
function editRelationsInStore(token, change
|
|
50991
|
-
const myJoin = getJoin(
|
|
50989
|
+
function editRelationsInStore(store, token, change) {
|
|
50990
|
+
const myJoin = getJoin(store, token);
|
|
50992
50991
|
const target = newest(store);
|
|
50993
50992
|
if (isChildStore(target)) {
|
|
50994
50993
|
const { toolkit } = target.transactionMeta;
|
|
@@ -50998,8 +50997,8 @@ function editRelationsInStore(token, change, store) {
|
|
|
50998
50997
|
} else
|
|
50999
50998
|
change(myJoin.relations);
|
|
51000
50999
|
}
|
|
51001
|
-
function findRelationsInStore(token, key
|
|
51002
|
-
const myJoin = getJoin(
|
|
51000
|
+
function findRelationsInStore(store, token, key) {
|
|
51001
|
+
const myJoin = getJoin(store, token);
|
|
51003
51002
|
let relations;
|
|
51004
51003
|
switch (token.cardinality) {
|
|
51005
51004
|
case `1:1`: {
|
|
@@ -51049,8 +51048,11 @@ function findRelationsInStore(token, key, store) {
|
|
|
51049
51048
|
}
|
|
51050
51049
|
return relations;
|
|
51051
51050
|
}
|
|
51052
|
-
function getInternalRelationsFromStore(token,
|
|
51053
|
-
|
|
51051
|
+
function getInternalRelationsFromStore(store, token, split) {
|
|
51052
|
+
const myJoin = getJoin(store, token);
|
|
51053
|
+
if (split === `split`)
|
|
51054
|
+
return [myJoin.relatedKeysAtoms, myJoin.relatedKeysAtoms];
|
|
51055
|
+
return myJoin.relatedKeysAtoms;
|
|
51054
51056
|
}
|
|
51055
51057
|
|
|
51056
51058
|
// ../../packages/atom.io/dist/main/index.js
|
|
@@ -51066,8 +51068,8 @@ function getState(...params) {
|
|
|
51066
51068
|
function join(options) {
|
|
51067
51069
|
return createJoin(IMPLICIT.STORE, options);
|
|
51068
51070
|
}
|
|
51069
|
-
function getInternalRelations(token) {
|
|
51070
|
-
return getInternalRelationsFromStore(token,
|
|
51071
|
+
function getInternalRelations(token, split) {
|
|
51072
|
+
return getInternalRelationsFromStore(IMPLICIT.STORE, token, split);
|
|
51071
51073
|
}
|
|
51072
51074
|
var PRETTY_TOKEN_TYPES = {
|
|
51073
51075
|
atom_family: `atom family`,
|
|
@@ -51156,7 +51158,7 @@ import { createServer as createHttpServer } from "http";
|
|
|
51156
51158
|
import { createServer as createSecureServer } from "https";
|
|
51157
51159
|
import { resolve } from "path";
|
|
51158
51160
|
|
|
51159
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.
|
|
51161
|
+
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.27_typescript@5.9.3_zod@4.1.12/node_modules/@t3-oss/env-core/dist/src-Bb3GbGAa.js
|
|
51160
51162
|
function ensureSynchronous(value, message) {
|
|
51161
51163
|
if (value instanceof Promise)
|
|
51162
51164
|
throw new Error(message);
|
|
@@ -51242,7 +51244,7 @@ function createEnv(opts) {
|
|
|
51242
51244
|
return env;
|
|
51243
51245
|
}
|
|
51244
51246
|
|
|
51245
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51247
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/arrays.js
|
|
51246
51248
|
var liftArray = (data) => Array.isArray(data) ? data : [data];
|
|
51247
51249
|
var spliterate = (arr, predicate) => {
|
|
51248
51250
|
const result = [[], []];
|
|
@@ -51297,7 +51299,7 @@ var groupBy = (array, discriminant) => array.reduce((result, item) => {
|
|
|
51297
51299
|
return result;
|
|
51298
51300
|
}, {});
|
|
51299
51301
|
var arrayEquals = (l2, r2, opts) => l2.length === r2.length && l2.every(opts?.isEqual ? (lItem, i2) => opts.isEqual(lItem, r2[i2]) : (lItem, i2) => lItem === r2[i2]);
|
|
51300
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51302
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/domain.js
|
|
51301
51303
|
var hasDomain = (data, kind) => domainOf(data) === kind;
|
|
51302
51304
|
var domainOf = (data) => {
|
|
51303
51305
|
const builtinType = typeof data;
|
|
@@ -51318,7 +51320,7 @@ var jsTypeOfDescriptions = {
|
|
|
51318
51320
|
function: "a function"
|
|
51319
51321
|
};
|
|
51320
51322
|
|
|
51321
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51323
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/errors.js
|
|
51322
51324
|
class InternalArktypeError extends Error {
|
|
51323
51325
|
}
|
|
51324
51326
|
var throwInternalError = (message) => throwError(message, InternalArktypeError);
|
|
@@ -51333,7 +51335,7 @@ var throwParseError = (message) => throwError(message, ParseError);
|
|
|
51333
51335
|
var noSuggest = (s2) => ` ${s2}`;
|
|
51334
51336
|
var ZeroWidthSpace = "\u200B";
|
|
51335
51337
|
|
|
51336
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51338
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/flatMorph.js
|
|
51337
51339
|
var flatMorph = (o2, flatMapEntry) => {
|
|
51338
51340
|
const result = {};
|
|
51339
51341
|
const inputIsArray = Array.isArray(o2);
|
|
@@ -51352,7 +51354,7 @@ var flatMorph = (o2, flatMapEntry) => {
|
|
|
51352
51354
|
return outputShouldBeArray ? Object.values(result) : result;
|
|
51353
51355
|
};
|
|
51354
51356
|
|
|
51355
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51357
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/records.js
|
|
51356
51358
|
var entriesOf = Object.entries;
|
|
51357
51359
|
var isKeyOf = (k2, o2) => (k2 in o2);
|
|
51358
51360
|
var hasKey = (o2, k2) => (k2 in o2);
|
|
@@ -51399,7 +51401,7 @@ var enumValues = (tsEnum) => Object.values(tsEnum).filter((v2) => {
|
|
|
51399
51401
|
return typeof tsEnum[v2] !== "number";
|
|
51400
51402
|
});
|
|
51401
51403
|
|
|
51402
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51404
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/objectKinds.js
|
|
51403
51405
|
var ecmascriptConstructors = {
|
|
51404
51406
|
Array,
|
|
51405
51407
|
Boolean,
|
|
@@ -51515,7 +51517,7 @@ var constructorExtends = (ctor, base) => {
|
|
|
51515
51517
|
return false;
|
|
51516
51518
|
};
|
|
51517
51519
|
|
|
51518
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51520
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/clone.js
|
|
51519
51521
|
var deepClone = (input) => _clone(input, new Map);
|
|
51520
51522
|
var _clone = (input, seen) => {
|
|
51521
51523
|
if (typeof input !== "object" || input === null)
|
|
@@ -51541,7 +51543,7 @@ var _clone = (input, seen) => {
|
|
|
51541
51543
|
Object.defineProperties(cloned, propertyDescriptors);
|
|
51542
51544
|
return cloned;
|
|
51543
51545
|
};
|
|
51544
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51546
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/functions.js
|
|
51545
51547
|
var cached = (thunk) => {
|
|
51546
51548
|
let result = unset;
|
|
51547
51549
|
return () => result === unset ? result = thunk() : result;
|
|
@@ -51575,16 +51577,16 @@ var envHasCsp = cached(() => {
|
|
|
51575
51577
|
return true;
|
|
51576
51578
|
}
|
|
51577
51579
|
});
|
|
51578
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51580
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/generics.js
|
|
51579
51581
|
var brand = noSuggest("brand");
|
|
51580
51582
|
var inferred = noSuggest("arkInferred");
|
|
51581
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51583
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/hkt.js
|
|
51582
51584
|
var args = noSuggest("args");
|
|
51583
51585
|
|
|
51584
51586
|
class Hkt {
|
|
51585
51587
|
constructor() {}
|
|
51586
51588
|
}
|
|
51587
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51589
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/isomorphic.js
|
|
51588
51590
|
var fileName = () => {
|
|
51589
51591
|
try {
|
|
51590
51592
|
const error = new Error;
|
|
@@ -51601,7 +51603,7 @@ var isomorphic = {
|
|
|
51601
51603
|
fileName,
|
|
51602
51604
|
env
|
|
51603
51605
|
};
|
|
51604
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51606
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/strings.js
|
|
51605
51607
|
var capitalize2 = (s2) => s2[0].toUpperCase() + s2.slice(1);
|
|
51606
51608
|
var anchoredRegex = (regex) => new RegExp(anchoredSource(regex), typeof regex === "string" ? "" : regex.flags);
|
|
51607
51609
|
var anchoredSource = (regex) => {
|
|
@@ -51619,7 +51621,7 @@ var whitespaceChars = {
|
|
|
51619
51621
|
"\t": 1
|
|
51620
51622
|
};
|
|
51621
51623
|
|
|
51622
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51624
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/numbers.js
|
|
51623
51625
|
var anchoredNegativeZeroPattern = /^-0\.?0*$/.source;
|
|
51624
51626
|
var positiveIntegerPattern = /[1-9]\d*/.source;
|
|
51625
51627
|
var looseDecimalPattern = /\.\d+/.source;
|
|
@@ -51681,8 +51683,8 @@ var tryParseWellFormedBigint = (def) => {
|
|
|
51681
51683
|
return throwParseError(writeMalformedNumericLiteralMessage(def, "bigint"));
|
|
51682
51684
|
}
|
|
51683
51685
|
};
|
|
51684
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51685
|
-
var arkUtilVersion = "0.
|
|
51686
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/registry.js
|
|
51687
|
+
var arkUtilVersion = "0.55.0";
|
|
51686
51688
|
var initialRegistryContents = {
|
|
51687
51689
|
version: arkUtilVersion,
|
|
51688
51690
|
filename: isomorphic.fileName(),
|
|
@@ -51721,10 +51723,10 @@ var baseNameFor = (value) => {
|
|
|
51721
51723
|
return throwInternalError(`Unexpected attempt to register serializable value of type ${domainOf(value)}`);
|
|
51722
51724
|
};
|
|
51723
51725
|
|
|
51724
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51726
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/primitive.js
|
|
51725
51727
|
var serializePrimitive = (value) => typeof value === "string" ? JSON.stringify(value) : typeof value === "bigint" ? `${value}n` : `${value}`;
|
|
51726
51728
|
|
|
51727
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51729
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/serialize.js
|
|
51728
51730
|
var snapshot = (data, opts = {}) => _serialize(data, {
|
|
51729
51731
|
onUndefined: `$ark.undefined`,
|
|
51730
51732
|
onBigInt: (n2) => `$ark.bigint-${n2}`,
|
|
@@ -51857,7 +51859,7 @@ var months = [
|
|
|
51857
51859
|
var timeWithUnnecessarySeconds = /:\d\d:00$/;
|
|
51858
51860
|
var pad = (value, length) => String(value).padStart(length, "0");
|
|
51859
51861
|
|
|
51860
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51862
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/path.js
|
|
51861
51863
|
var appendStringifiedKey = (path, prop, ...[opts]) => {
|
|
51862
51864
|
const stringifySymbol = opts?.stringifySymbol ?? printable;
|
|
51863
51865
|
let propAccessChain = path;
|
|
@@ -51914,7 +51916,7 @@ class ReadonlyPath extends ReadonlyArray {
|
|
|
51914
51916
|
return this.cache.stringifyAncestors = result;
|
|
51915
51917
|
}
|
|
51916
51918
|
}
|
|
51917
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51919
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/scanner.js
|
|
51918
51920
|
class Scanner {
|
|
51919
51921
|
chars;
|
|
51920
51922
|
i;
|
|
@@ -51997,9 +51999,9 @@ class Scanner {
|
|
|
51997
51999
|
}
|
|
51998
52000
|
var writeUnmatchedGroupCloseMessage = (char, unscanned) => `Unmatched ${char}${unscanned === "" ? "" : ` before ${unscanned}`}`;
|
|
51999
52001
|
var writeUnclosedGroupMessage = (missingChar) => `Missing ${missingChar}`;
|
|
52000
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
52002
|
+
// ../../node_modules/.pnpm/@ark+util@0.55.0/node_modules/@ark/util/out/traits.js
|
|
52001
52003
|
var implementedTraits = noSuggest("implementedTraits");
|
|
52002
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52004
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/registry.js
|
|
52003
52005
|
var _registryName = "$ark";
|
|
52004
52006
|
var suffix = 2;
|
|
52005
52007
|
while (_registryName in globalThis)
|
|
@@ -52010,7 +52012,7 @@ var $ark = registry;
|
|
|
52010
52012
|
var reference = (name) => `${registryName}.${name}`;
|
|
52011
52013
|
var registeredReference = (value) => reference(register(value));
|
|
52012
52014
|
|
|
52013
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52015
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/compile.js
|
|
52014
52016
|
class CompiledFunction extends CastableBase {
|
|
52015
52017
|
argNames;
|
|
52016
52018
|
body = "";
|
|
@@ -52146,13 +52148,13 @@ class NodeCompiler extends CompiledFunction {
|
|
|
52146
52148
|
}
|
|
52147
52149
|
}
|
|
52148
52150
|
|
|
52149
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52151
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/utils.js
|
|
52150
52152
|
var makeRootAndArrayPropertiesMutable = (o2) => flatMorph(o2, (k2, v2) => [k2, isArray(v2) ? [...v2] : v2]);
|
|
52151
52153
|
var arkKind = noSuggest("arkKind");
|
|
52152
52154
|
var hasArkKind = (value, kind) => value?.[arkKind] === kind;
|
|
52153
52155
|
var isNode = (value) => hasArkKind(value, "root") || hasArkKind(value, "constraint");
|
|
52154
52156
|
|
|
52155
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52157
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/implement.js
|
|
52156
52158
|
var basisKinds = ["unit", "proto", "domain"];
|
|
52157
52159
|
var structuralKinds = [
|
|
52158
52160
|
"required",
|
|
@@ -52240,7 +52242,7 @@ var implementNode = (_2) => {
|
|
|
52240
52242
|
return implementation;
|
|
52241
52243
|
};
|
|
52242
52244
|
|
|
52243
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52245
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/toJsonSchema.js
|
|
52244
52246
|
class ToJsonSchemaError extends Error {
|
|
52245
52247
|
name = "ToJsonSchemaError";
|
|
52246
52248
|
code;
|
|
@@ -52280,7 +52282,7 @@ var ToJsonSchema = {
|
|
|
52280
52282
|
defaultConfig
|
|
52281
52283
|
};
|
|
52282
52284
|
|
|
52283
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52285
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/config.js
|
|
52284
52286
|
$ark.config ??= {};
|
|
52285
52287
|
var mergeConfigs = (base, merged) => {
|
|
52286
52288
|
if (!merged)
|
|
@@ -52335,7 +52337,7 @@ var mergeFallbacks = (base, merged) => {
|
|
|
52335
52337
|
return result;
|
|
52336
52338
|
};
|
|
52337
52339
|
var normalizeFallback = (fallback) => typeof fallback === "function" ? { default: fallback } : fallback ?? {};
|
|
52338
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52340
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/errors.js
|
|
52339
52341
|
class ArkError extends CastableBase {
|
|
52340
52342
|
[arkKind] = "error";
|
|
52341
52343
|
path;
|
|
@@ -52528,7 +52530,7 @@ var indent = (error) => error.toString().split(`
|
|
|
52528
52530
|
`).join(`
|
|
52529
52531
|
`);
|
|
52530
52532
|
|
|
52531
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52533
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/traversal.js
|
|
52532
52534
|
class Traversal {
|
|
52533
52535
|
path = [];
|
|
52534
52536
|
errors = new ArkErrors(this);
|
|
@@ -52668,7 +52670,7 @@ var traverseKey = (key, fn2, ctx) => {
|
|
|
52668
52670
|
return result;
|
|
52669
52671
|
};
|
|
52670
52672
|
|
|
52671
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52673
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/node.js
|
|
52672
52674
|
class BaseNode extends Callable {
|
|
52673
52675
|
attachments;
|
|
52674
52676
|
$;
|
|
@@ -53017,7 +53019,7 @@ var appendUniqueNodes = (existing, refs) => appendUnique(existing, refs, {
|
|
|
53017
53019
|
isEqual: (l2, r2) => l2.equals(r2)
|
|
53018
53020
|
});
|
|
53019
53021
|
|
|
53020
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53022
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/disjoint.js
|
|
53021
53023
|
class Disjoint extends Array {
|
|
53022
53024
|
static init(kind, l2, r2, ctx) {
|
|
53023
53025
|
return new Disjoint({
|
|
@@ -53079,7 +53081,7 @@ var describeReasons = (l2, r2) => `${describeReason(l2)} and ${describeReason(r2
|
|
|
53079
53081
|
var describeReason = (value) => isNode(value) ? value.expression : isArray(value) ? value.map(describeReason).join(" | ") || "never" : String(value);
|
|
53080
53082
|
var writeUnsatisfiableExpressionError = (expression) => `${expression} results in an unsatisfiable type`;
|
|
53081
53083
|
|
|
53082
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53084
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/shared/intersections.js
|
|
53083
53085
|
var intersectionCache = {};
|
|
53084
53086
|
var intersectNodesRoot = (l2, r2, $2) => intersectOrPipeNodes(l2, r2, {
|
|
53085
53087
|
$: $2,
|
|
@@ -53187,7 +53189,7 @@ var _pipeMorphed = (from, to2, ctx) => {
|
|
|
53187
53189
|
});
|
|
53188
53190
|
};
|
|
53189
53191
|
|
|
53190
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53192
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/constraint.js
|
|
53191
53193
|
class BaseConstraint extends BaseNode {
|
|
53192
53194
|
constructor(attachments, $2) {
|
|
53193
53195
|
super(attachments, $2);
|
|
@@ -53301,7 +53303,7 @@ var writeInvalidOperandMessage = (kind, expected, actual) => {
|
|
|
53301
53303
|
const actualDescription = actual.hasKind("morph") ? "a morph" : actual.isUnknown() ? "unknown" : actual.exclude(expected).defaultShortDescription;
|
|
53302
53304
|
return `${capitalize2(kind)} operand must be ${expected.description} (was ${actualDescription})`;
|
|
53303
53305
|
};
|
|
53304
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53306
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/generic.js
|
|
53305
53307
|
var parseGeneric = (paramDefs, bodyDef, $2) => new GenericRoot(paramDefs, bodyDef, $2, $2, null);
|
|
53306
53308
|
|
|
53307
53309
|
class LazyGenericBody extends Callable {
|
|
@@ -53372,7 +53374,7 @@ class GenericRoot extends Callable {
|
|
|
53372
53374
|
}
|
|
53373
53375
|
}
|
|
53374
53376
|
var writeUnsatisfiedParameterConstraintMessage = (name, constraint, arg) => `${name} must be assignable to ${constraint} (was ${arg})`;
|
|
53375
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53377
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/predicate.js
|
|
53376
53378
|
var implementation = implementNode({
|
|
53377
53379
|
kind: "predicate",
|
|
53378
53380
|
hasAssociatedError: true,
|
|
@@ -53427,7 +53429,7 @@ var Predicate = {
|
|
|
53427
53429
|
Node: PredicateNode
|
|
53428
53430
|
};
|
|
53429
53431
|
|
|
53430
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53432
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/divisor.js
|
|
53431
53433
|
var implementation2 = implementNode({
|
|
53432
53434
|
kind: "divisor",
|
|
53433
53435
|
collapsibleKey: "rule",
|
|
@@ -53480,7 +53482,7 @@ var greatestCommonDivisor = (l2, r2) => {
|
|
|
53480
53482
|
return greatestCommonDivisor2;
|
|
53481
53483
|
};
|
|
53482
53484
|
|
|
53483
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53485
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/range.js
|
|
53484
53486
|
class BaseRange extends InternalPrimitiveConstraint {
|
|
53485
53487
|
boundOperandKind = operandKindsByBoundKind[this.kind];
|
|
53486
53488
|
compiledActual = this.boundOperandKind === "value" ? `data` : this.boundOperandKind === "length" ? `data.length` : `data.valueOf()`;
|
|
@@ -53560,7 +53562,7 @@ var compileComparator = (kind, exclusive) => `${isKeyOf(kind, boundKindPairsByLo
|
|
|
53560
53562
|
var dateLimitToString = (limit) => typeof limit === "string" ? limit : new Date(limit).toLocaleString();
|
|
53561
53563
|
var writeUnboundableMessage = (root) => `Bounded expression ${root} must be exactly one of number, string, Array, or Date`;
|
|
53562
53564
|
|
|
53563
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53565
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/after.js
|
|
53564
53566
|
var implementation3 = implementNode({
|
|
53565
53567
|
kind: "after",
|
|
53566
53568
|
collapsibleKey: "rule",
|
|
@@ -53594,7 +53596,7 @@ var After = {
|
|
|
53594
53596
|
Node: AfterNode
|
|
53595
53597
|
};
|
|
53596
53598
|
|
|
53597
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53599
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/before.js
|
|
53598
53600
|
var implementation4 = implementNode({
|
|
53599
53601
|
kind: "before",
|
|
53600
53602
|
collapsibleKey: "rule",
|
|
@@ -53629,7 +53631,7 @@ var Before = {
|
|
|
53629
53631
|
Node: BeforeNode
|
|
53630
53632
|
};
|
|
53631
53633
|
|
|
53632
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53634
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/exactLength.js
|
|
53633
53635
|
var implementation5 = implementNode({
|
|
53634
53636
|
kind: "exactLength",
|
|
53635
53637
|
collapsibleKey: "rule",
|
|
@@ -53677,7 +53679,7 @@ var ExactLength = {
|
|
|
53677
53679
|
Node: ExactLengthNode
|
|
53678
53680
|
};
|
|
53679
53681
|
|
|
53680
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53682
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/max.js
|
|
53681
53683
|
var implementation6 = implementNode({
|
|
53682
53684
|
kind: "max",
|
|
53683
53685
|
collapsibleKey: "rule",
|
|
@@ -53717,7 +53719,7 @@ var Max = {
|
|
|
53717
53719
|
Node: MaxNode
|
|
53718
53720
|
};
|
|
53719
53721
|
|
|
53720
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53722
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/maxLength.js
|
|
53721
53723
|
var implementation7 = implementNode({
|
|
53722
53724
|
kind: "maxLength",
|
|
53723
53725
|
collapsibleKey: "rule",
|
|
@@ -53760,7 +53762,7 @@ var MaxLength = {
|
|
|
53760
53762
|
Node: MaxLengthNode
|
|
53761
53763
|
};
|
|
53762
53764
|
|
|
53763
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53765
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/min.js
|
|
53764
53766
|
var implementation8 = implementNode({
|
|
53765
53767
|
kind: "min",
|
|
53766
53768
|
collapsibleKey: "rule",
|
|
@@ -53799,7 +53801,7 @@ var Min = {
|
|
|
53799
53801
|
Node: MinNode
|
|
53800
53802
|
};
|
|
53801
53803
|
|
|
53802
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53804
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/minLength.js
|
|
53803
53805
|
var implementation9 = implementNode({
|
|
53804
53806
|
kind: "minLength",
|
|
53805
53807
|
collapsibleKey: "rule",
|
|
@@ -53841,7 +53843,7 @@ var MinLength = {
|
|
|
53841
53843
|
Node: MinLengthNode
|
|
53842
53844
|
};
|
|
53843
53845
|
|
|
53844
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53846
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/kinds.js
|
|
53845
53847
|
var boundImplementationsByKind = {
|
|
53846
53848
|
min: Min.implementation,
|
|
53847
53849
|
max: Max.implementation,
|
|
@@ -53861,7 +53863,7 @@ var boundClassesByKind = {
|
|
|
53861
53863
|
before: Before.Node
|
|
53862
53864
|
};
|
|
53863
53865
|
|
|
53864
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53866
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/refinements/pattern.js
|
|
53865
53867
|
var implementation10 = implementNode({
|
|
53866
53868
|
kind: "pattern",
|
|
53867
53869
|
collapsibleKey: "rule",
|
|
@@ -53906,7 +53908,7 @@ var Pattern = {
|
|
|
53906
53908
|
Node: PatternNode
|
|
53907
53909
|
};
|
|
53908
53910
|
|
|
53909
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53911
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/parse.js
|
|
53910
53912
|
var schemaKindOf = (schema, allowedKinds) => {
|
|
53911
53913
|
const kind = discriminateRootKind(schema);
|
|
53912
53914
|
if (allowedKinds && !allowedKinds.includes(kind)) {
|
|
@@ -54087,7 +54089,7 @@ var possiblyCollapse = (json, toKey, allowPrimitive) => {
|
|
|
54087
54089
|
return json;
|
|
54088
54090
|
};
|
|
54089
54091
|
|
|
54090
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54092
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/structure/prop.js
|
|
54091
54093
|
var intersectProps = (l2, r2, ctx) => {
|
|
54092
54094
|
if (l2.key !== r2.key)
|
|
54093
54095
|
return null;
|
|
@@ -54154,7 +54156,7 @@ class BaseProp extends BaseConstraint {
|
|
|
54154
54156
|
}
|
|
54155
54157
|
var writeDefaultIntersectionMessage = (lValue, rValue) => `Invalid intersection of default values ${printable(lValue)} & ${printable(rValue)}`;
|
|
54156
54158
|
|
|
54157
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54159
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/structure/optional.js
|
|
54158
54160
|
var implementation11 = implementNode({
|
|
54159
54161
|
kind: "optional",
|
|
54160
54162
|
hasAssociatedError: false,
|
|
@@ -54258,7 +54260,7 @@ var writeNonPrimitiveNonFunctionDefaultValueMessage = (key) => {
|
|
|
54258
54260
|
return `Non-primitive default ${keyDescription}must be specified as a function like () => ({my: 'object'})`;
|
|
54259
54261
|
};
|
|
54260
54262
|
|
|
54261
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54263
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/root.js
|
|
54262
54264
|
class BaseRoot extends BaseNode {
|
|
54263
54265
|
constructor(attachments, $2) {
|
|
54264
54266
|
super(attachments, $2);
|
|
@@ -54632,13 +54634,13 @@ var writeLiteralUnionEntriesMessage = (expression) => `Props cannot be extracted
|
|
|
54632
54634
|
${expression}`;
|
|
54633
54635
|
var writeNonStructuralOperandMessage = (operation, operand) => `${operation} operand must be an object (was ${operand})`;
|
|
54634
54636
|
|
|
54635
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54637
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/utils.js
|
|
54636
54638
|
var defineRightwardIntersections = (kind, implementation12) => flatMorph(schemaKindsRightOf(kind), (i2, kind2) => [
|
|
54637
54639
|
kind2,
|
|
54638
54640
|
implementation12
|
|
54639
54641
|
]);
|
|
54640
54642
|
|
|
54641
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54643
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/alias.js
|
|
54642
54644
|
var normalizeAliasSchema = (schema) => typeof schema === "string" ? { reference: schema } : schema;
|
|
54643
54645
|
var neverIfDisjoint = (result) => result instanceof Disjoint ? $ark.intrinsic.never.internal : result;
|
|
54644
54646
|
var implementation12 = implementNode({
|
|
@@ -54746,7 +54748,7 @@ var Alias = {
|
|
|
54746
54748
|
Node: AliasNode
|
|
54747
54749
|
};
|
|
54748
54750
|
|
|
54749
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54751
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/basis.js
|
|
54750
54752
|
class InternalBasis extends BaseRoot {
|
|
54751
54753
|
traverseApply = (data, ctx) => {
|
|
54752
54754
|
if (!this.traverseAllows(data, ctx))
|
|
@@ -54772,7 +54774,7 @@ class InternalBasis extends BaseRoot {
|
|
|
54772
54774
|
}
|
|
54773
54775
|
}
|
|
54774
54776
|
|
|
54775
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54777
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/domain.js
|
|
54776
54778
|
var implementation13 = implementNode({
|
|
54777
54779
|
kind: "domain",
|
|
54778
54780
|
hasAssociatedError: true,
|
|
@@ -54823,7 +54825,7 @@ var Domain = {
|
|
|
54823
54825
|
writeBadAllowNanMessage: (actual) => `numberAllowsNaN may only be specified with domain "number" (was ${actual})`
|
|
54824
54826
|
};
|
|
54825
54827
|
|
|
54826
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54828
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/intersection.js
|
|
54827
54829
|
var implementation14 = implementNode({
|
|
54828
54830
|
kind: "intersection",
|
|
54829
54831
|
hasAssociatedError: true,
|
|
@@ -55073,7 +55075,7 @@ var intersectIntersections = (l2, r2, ctx) => {
|
|
|
55073
55075
|
});
|
|
55074
55076
|
};
|
|
55075
55077
|
|
|
55076
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55078
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/morph.js
|
|
55077
55079
|
var implementation15 = implementNode({
|
|
55078
55080
|
kind: "morph",
|
|
55079
55081
|
hasAssociatedError: false,
|
|
@@ -55209,7 +55211,7 @@ var writeMorphIntersectionMessage = (lDescription, rDescription) => `The interse
|
|
|
55209
55211
|
Left: ${lDescription}
|
|
55210
55212
|
Right: ${rDescription}`;
|
|
55211
55213
|
|
|
55212
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55214
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/proto.js
|
|
55213
55215
|
var implementation16 = implementNode({
|
|
55214
55216
|
kind: "proto",
|
|
55215
55217
|
hasAssociatedError: true,
|
|
@@ -55282,7 +55284,7 @@ var Proto = {
|
|
|
55282
55284
|
writeInvalidSchemaMessage: (actual) => `instanceOf operand must be a function (was ${domainOf(actual)})`
|
|
55283
55285
|
};
|
|
55284
55286
|
|
|
55285
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55287
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/union.js
|
|
55286
55288
|
var implementation17 = implementNode({
|
|
55287
55289
|
kind: "union",
|
|
55288
55290
|
hasAssociatedError: true,
|
|
@@ -55852,7 +55854,7 @@ var writeOrderedIntersectionMessage = (lDescription, rDescription) => `The inter
|
|
|
55852
55854
|
Left: ${lDescription}
|
|
55853
55855
|
Right: ${rDescription}`;
|
|
55854
55856
|
|
|
55855
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55857
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/roots/unit.js
|
|
55856
55858
|
var implementation18 = implementNode({
|
|
55857
55859
|
kind: "unit",
|
|
55858
55860
|
hasAssociatedError: true,
|
|
@@ -55914,7 +55916,7 @@ var compileEqualityCheck = (unit, serializedValue, negated) => {
|
|
|
55914
55916
|
return `data ${negated ? "!" : "="}== ${serializedValue}`;
|
|
55915
55917
|
};
|
|
55916
55918
|
|
|
55917
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55919
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/structure/index.js
|
|
55918
55920
|
var implementation19 = implementNode({
|
|
55919
55921
|
kind: "index",
|
|
55920
55922
|
hasAssociatedError: false,
|
|
@@ -55991,7 +55993,7 @@ var Index = {
|
|
|
55991
55993
|
var writeEnumerableIndexBranches = (keys2) => `Index keys ${keys2.join(", ")} should be specified as named props.`;
|
|
55992
55994
|
var writeInvalidPropertyKeyMessage = (indexSchema) => `Indexed key definition '${indexSchema}' must be a string or symbol`;
|
|
55993
55995
|
|
|
55994
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55996
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/structure/required.js
|
|
55995
55997
|
var implementation20 = implementNode({
|
|
55996
55998
|
kind: "required",
|
|
55997
55999
|
hasAssociatedError: true,
|
|
@@ -56030,7 +56032,7 @@ var Required = {
|
|
|
56030
56032
|
Node: RequiredNode
|
|
56031
56033
|
};
|
|
56032
56034
|
|
|
56033
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
56035
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/structure/sequence.js
|
|
56034
56036
|
var implementation21 = implementNode({
|
|
56035
56037
|
kind: "sequence",
|
|
56036
56038
|
hasAssociatedError: false,
|
|
@@ -56412,7 +56414,7 @@ var _intersectSequences = (s2) => {
|
|
|
56412
56414
|
};
|
|
56413
56415
|
var elementIsRequired = (el) => el.kind === "prefix" || el.kind === "postfix";
|
|
56414
56416
|
|
|
56415
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
56417
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/structure/structure.js
|
|
56416
56418
|
var createStructuralWriter = (childStringProp) => (node) => {
|
|
56417
56419
|
if (node.props.length || node.index) {
|
|
56418
56420
|
const parts = node.index?.map((index) => index[childStringProp]) ?? [];
|
|
@@ -57095,7 +57097,7 @@ var typeKeyToString = (k2) => hasArkKind(k2, "root") ? k2.expression : printable
|
|
|
57095
57097
|
var writeInvalidKeysMessage = (o2, keys2) => `Key${keys2.length === 1 ? "" : "s"} ${keys2.map(typeKeyToString).join(", ")} ${keys2.length === 1 ? "does" : "do"} not exist on ${o2}`;
|
|
57096
57098
|
var writeDuplicateKeyMessage = (key) => `Duplicate key ${compileSerializedValue(key)}`;
|
|
57097
57099
|
|
|
57098
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57100
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/kinds.js
|
|
57099
57101
|
var nodeImplementationsByKind = {
|
|
57100
57102
|
...boundImplementationsByKind,
|
|
57101
57103
|
alias: Alias.implementation,
|
|
@@ -57148,7 +57150,7 @@ var nodeClassesByKind = {
|
|
|
57148
57150
|
structure: Structure.Node
|
|
57149
57151
|
};
|
|
57150
57152
|
|
|
57151
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57153
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/module.js
|
|
57152
57154
|
class RootModule extends DynamicBase {
|
|
57153
57155
|
get [arkKind]() {
|
|
57154
57156
|
return "module";
|
|
@@ -57159,7 +57161,7 @@ var bindModule = (module, $2) => new RootModule(flatMorph(module, (alias, value)
|
|
|
57159
57161
|
hasArkKind(value, "module") ? bindModule(value, $2) : $2.bindReference(value)
|
|
57160
57162
|
]));
|
|
57161
57163
|
|
|
57162
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57164
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/scope.js
|
|
57163
57165
|
var schemaBranchesOf = (schema) => isArray(schema) ? schema : ("branches" in schema) && isArray(schema.branches) ? schema.branches : undefined;
|
|
57164
57166
|
var throwMismatchedNodeRootError = (expected, actual) => throwParseError(`Node of kind ${actual} is not valid as a ${expected} definition`);
|
|
57165
57167
|
var writeDuplicateAliasError = (alias) => `#${alias} duplicates public alias ${alias}`;
|
|
@@ -57566,12 +57568,12 @@ var node = rootSchemaScope.node;
|
|
|
57566
57568
|
var defineSchema = rootSchemaScope.defineSchema;
|
|
57567
57569
|
var genericNode = rootSchemaScope.generic;
|
|
57568
57570
|
|
|
57569
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57571
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/structure/shared.js
|
|
57570
57572
|
var arrayIndexSource = `^(?:0|[1-9]\\d*)$`;
|
|
57571
57573
|
var arrayIndexMatcher = new RegExp(arrayIndexSource);
|
|
57572
57574
|
var arrayIndexMatcherReference = registeredReference(arrayIndexMatcher);
|
|
57573
57575
|
|
|
57574
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57576
|
+
// ../../node_modules/.pnpm/@ark+schema@0.55.0/node_modules/@ark/schema/out/intrinsic.js
|
|
57575
57577
|
var intrinsicBases = schemaScope({
|
|
57576
57578
|
bigint: "bigint",
|
|
57577
57579
|
boolean: [{ unit: false }, { unit: true }],
|
|
@@ -57623,10 +57625,10 @@ var intrinsic = {
|
|
|
57623
57625
|
emptyStructure: node("structure", {}, { prereduced: true })
|
|
57624
57626
|
};
|
|
57625
57627
|
$ark.intrinsic = { ...intrinsic };
|
|
57626
|
-
// ../../node_modules/.pnpm/arkregex@0.0.
|
|
57628
|
+
// ../../node_modules/.pnpm/arkregex@0.0.3/node_modules/arkregex/out/regex.js
|
|
57627
57629
|
var regex = (src, flags) => new RegExp(src, flags);
|
|
57628
57630
|
Object.assign(regex, { as: regex });
|
|
57629
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57631
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operand/date.js
|
|
57630
57632
|
var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value[value.length - 1] === value[1];
|
|
57631
57633
|
var isValidDate = (d2) => d2.toString() !== "Invalid Date";
|
|
57632
57634
|
var extractDateLiteralSource = (literal) => literal.slice(2, -1);
|
|
@@ -57645,7 +57647,7 @@ var maybeParseDate = (source, errorOnFail) => {
|
|
|
57645
57647
|
return errorOnFail ? throwParseError(errorOnFail === true ? writeInvalidDateMessage(source) : errorOnFail) : undefined;
|
|
57646
57648
|
};
|
|
57647
57649
|
|
|
57648
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57650
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operand/enclosed.js
|
|
57649
57651
|
var parseEnclosed = (s2, enclosing) => {
|
|
57650
57652
|
const enclosed = s2.scanner.shiftUntilEscapable(untilLookaheadIsClosing[enclosingTokens[enclosing]]);
|
|
57651
57653
|
if (s2.scanner.lookahead === "")
|
|
@@ -57699,12 +57701,12 @@ var enclosingCharDescriptions = {
|
|
|
57699
57701
|
};
|
|
57700
57702
|
var writeUnterminatedEnclosedMessage = (fragment, enclosingStart) => `${enclosingStart}${fragment} requires a closing ${enclosingCharDescriptions[enclosingTokens[enclosingStart]]}`;
|
|
57701
57703
|
|
|
57702
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57704
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/ast/validate.js
|
|
57703
57705
|
var writePrefixedPrivateReferenceMessage = (name) => `Private type references should not include '#'. Use '${name}' instead.`;
|
|
57704
57706
|
var shallowOptionalMessage = "Optional definitions like 'string?' are only valid as properties in an object or tuple";
|
|
57705
57707
|
var shallowDefaultableMessage = "Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";
|
|
57706
57708
|
|
|
57707
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57709
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/tokens.js
|
|
57708
57710
|
var terminatingChars = {
|
|
57709
57711
|
"<": 1,
|
|
57710
57712
|
">": 1,
|
|
@@ -57722,7 +57724,7 @@ var terminatingChars = {
|
|
|
57722
57724
|
};
|
|
57723
57725
|
var lookaheadIsFinalizing = (lookahead, unscanned) => lookahead === ">" ? unscanned[0] === "=" ? unscanned[1] === "=" : unscanned.trimStart() === "" || isKeyOf(unscanned.trimStart()[0], terminatingChars) : lookahead === "=" ? unscanned[0] !== "=" : lookahead === "," || lookahead === "?";
|
|
57724
57726
|
|
|
57725
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57727
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operand/genericArgs.js
|
|
57726
57728
|
var parseGenericArgs = (name, g2, s2) => _parseGenericArgs(name, g2, s2, []);
|
|
57727
57729
|
var _parseGenericArgs = (name, g2, s2, argNodes) => {
|
|
57728
57730
|
const argState = s2.parseUntilFinalizer();
|
|
@@ -57739,7 +57741,7 @@ var _parseGenericArgs = (name, g2, s2, argNodes) => {
|
|
|
57739
57741
|
};
|
|
57740
57742
|
var writeInvalidGenericArgCountMessage = (name, params, argDefs) => `${name}<${params.join(", ")}> requires exactly ${params.length} args (got ${argDefs.length}${argDefs.length === 0 ? "" : `: ${argDefs.join(", ")}`})`;
|
|
57741
57743
|
|
|
57742
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57744
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operand/unenclosed.js
|
|
57743
57745
|
var parseUnenclosed = (s2) => {
|
|
57744
57746
|
const token = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
57745
57747
|
if (token === "keyof")
|
|
@@ -57787,10 +57789,10 @@ var writeMissingOperandMessage = (s2) => {
|
|
|
57787
57789
|
var writeMissingRightOperandMessage = (token, unscanned = "") => `Token '${token}' requires a right operand${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
57788
57790
|
var writeExpressionExpectedMessage = (unscanned) => `Expected an expression${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
57789
57791
|
|
|
57790
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57792
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operand/operand.js
|
|
57791
57793
|
var parseOperand = (s2) => s2.scanner.lookahead === "" ? s2.error(writeMissingOperandMessage(s2)) : s2.scanner.lookahead === "(" ? s2.shiftedByOne().reduceGroupOpen() : s2.scanner.lookaheadIsIn(enclosingChar) ? parseEnclosed(s2, s2.scanner.shift()) : s2.scanner.lookaheadIsIn(whitespaceChars) ? parseOperand(s2.shiftedByOne()) : s2.scanner.lookahead === "d" ? s2.scanner.nextLookahead in enclosingQuote ? parseEnclosed(s2, `${s2.scanner.shift()}${s2.scanner.shift()}`) : parseUnenclosed(s2) : parseUnenclosed(s2);
|
|
57792
57794
|
|
|
57793
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57795
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/reduce/shared.js
|
|
57794
57796
|
var minComparators = {
|
|
57795
57797
|
">": true,
|
|
57796
57798
|
">=": true
|
|
@@ -57810,7 +57812,7 @@ var writeOpenRangeMessage = (min2, comparator) => `Left bounds are only valid wh
|
|
|
57810
57812
|
var writeUnpairableComparatorMessage = (comparator) => `Left-bounded expressions must specify their limits using < or <= (was ${comparator})`;
|
|
57811
57813
|
var writeMultipleLeftBoundsMessage = (openLimit, openComparator, limit, comparator) => `An expression may have at most one left bound (parsed ${openLimit}${invertedComparators[openComparator]}, ${limit}${invertedComparators[comparator]})`;
|
|
57812
57814
|
|
|
57813
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57815
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operator/bounds.js
|
|
57814
57816
|
var parseBound = (s2, start) => {
|
|
57815
57817
|
const comparator = shiftComparator(s2, start);
|
|
57816
57818
|
if (s2.root.hasKind("unit")) {
|
|
@@ -57881,14 +57883,14 @@ var parseRightBound = (s2, comparator) => {
|
|
|
57881
57883
|
};
|
|
57882
57884
|
var writeInvalidLimitMessage = (comparator, limit, boundKind) => `Comparator ${boundKind === "left" ? invertedComparators[comparator] : comparator} must be ${boundKind === "left" ? "preceded" : "followed"} by a corresponding literal (was ${limit})`;
|
|
57883
57885
|
|
|
57884
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57886
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operator/brand.js
|
|
57885
57887
|
var parseBrand = (s2) => {
|
|
57886
57888
|
s2.scanner.shiftUntilNonWhitespace();
|
|
57887
57889
|
const brandName = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
57888
57890
|
s2.root = s2.root.brand(brandName);
|
|
57889
57891
|
};
|
|
57890
57892
|
|
|
57891
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57893
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operator/divisor.js
|
|
57892
57894
|
var parseDivisor = (s2) => {
|
|
57893
57895
|
s2.scanner.shiftUntilNonWhitespace();
|
|
57894
57896
|
const divisorToken = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
@@ -57901,7 +57903,7 @@ var parseDivisor = (s2) => {
|
|
|
57901
57903
|
};
|
|
57902
57904
|
var writeInvalidDivisorMessage = (divisor2) => `% operator must be followed by a non-zero integer literal (was ${divisor2})`;
|
|
57903
57905
|
|
|
57904
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57906
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operator/operator.js
|
|
57905
57907
|
var parseOperator = (s2) => {
|
|
57906
57908
|
const lookahead = s2.scanner.shift();
|
|
57907
57909
|
return lookahead === "" ? s2.finalize("") : lookahead === "[" ? s2.scanner.shift() === "]" ? s2.setRoot(s2.root.array()) : s2.error(incompleteArrayTokenMessage) : lookahead === "|" ? s2.scanner.lookahead === ">" ? s2.shiftedByOne().pushRootToBranch("|>") : s2.pushRootToBranch(lookahead) : lookahead === "&" ? s2.pushRootToBranch(lookahead) : lookahead === ")" ? s2.finalizeGroup() : lookaheadIsFinalizing(lookahead, s2.scanner.unscanned) ? s2.finalize(lookahead) : isKeyOf(lookahead, comparatorStartChars) ? parseBound(s2, lookahead) : lookahead === "%" ? parseDivisor(s2) : lookahead === "#" ? parseBrand(s2) : (lookahead in whitespaceChars) ? parseOperator(s2) : s2.error(writeUnexpectedCharacterMessage(lookahead));
|
|
@@ -57909,7 +57911,7 @@ var parseOperator = (s2) => {
|
|
|
57909
57911
|
var writeUnexpectedCharacterMessage = (char, shouldBe = "") => `'${char}' is not allowed here${shouldBe && ` (should be ${shouldBe})`}`;
|
|
57910
57912
|
var incompleteArrayTokenMessage = `Missing expected ']'`;
|
|
57911
57913
|
|
|
57912
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57914
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/shift/operator/default.js
|
|
57913
57915
|
var parseDefault = (s2) => {
|
|
57914
57916
|
const baseNode = s2.unsetRoot();
|
|
57915
57917
|
s2.parseOperand();
|
|
@@ -57921,7 +57923,7 @@ var parseDefault = (s2) => {
|
|
|
57921
57923
|
};
|
|
57922
57924
|
var writeNonLiteralDefaultMessage = (defaultDef) => `Default value '${defaultDef}' must be a literal value`;
|
|
57923
57925
|
|
|
57924
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57926
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/string.js
|
|
57925
57927
|
var parseString = (def, ctx) => {
|
|
57926
57928
|
const aliasResolution = ctx.$.maybeResolveRoot(def);
|
|
57927
57929
|
if (aliasResolution)
|
|
@@ -57960,7 +57962,7 @@ var parseUntilFinalizer = (s2) => {
|
|
|
57960
57962
|
};
|
|
57961
57963
|
var next = (s2) => s2.hasRoot() ? s2.parseOperator() : s2.parseOperand();
|
|
57962
57964
|
|
|
57963
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57965
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/reduce/dynamic.js
|
|
57964
57966
|
class RuntimeState {
|
|
57965
57967
|
root;
|
|
57966
57968
|
branches = {
|
|
@@ -58097,7 +58099,7 @@ class RuntimeState {
|
|
|
58097
58099
|
}
|
|
58098
58100
|
}
|
|
58099
58101
|
|
|
58100
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58102
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/generic.js
|
|
58101
58103
|
var emptyGenericParameterMessage = "An empty string is not a valid generic parameter name";
|
|
58102
58104
|
var parseGenericParamName = (scanner2, result, ctx) => {
|
|
58103
58105
|
scanner2.shiftUntilNonWhitespace();
|
|
@@ -58125,7 +58127,7 @@ var _parseOptionalConstraint = (scanner2, name, result, ctx) => {
|
|
|
58125
58127
|
result.push([name, s2.root]);
|
|
58126
58128
|
return parseGenericParamName(scanner2, result, ctx);
|
|
58127
58129
|
};
|
|
58128
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58130
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/fn.js
|
|
58129
58131
|
class InternalFnParser extends Callable {
|
|
58130
58132
|
constructor($2) {
|
|
58131
58133
|
const attach = {
|
|
@@ -58177,7 +58179,7 @@ class InternalTypedFn extends Callable {
|
|
|
58177
58179
|
var badFnReturnTypeMessage = `":" must be followed by exactly one return type e.g:
|
|
58178
58180
|
fn("string", ":", "number")(s => s.length)`;
|
|
58179
58181
|
|
|
58180
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58182
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/match.js
|
|
58181
58183
|
class InternalMatchParser extends Callable {
|
|
58182
58184
|
$;
|
|
58183
58185
|
constructor($2) {
|
|
@@ -58271,7 +58273,7 @@ var throwOnDefault = (errors3) => errors3.throw();
|
|
|
58271
58273
|
var chainedAtMessage = `A key matcher must be specified before the first case i.e. match.at('foo') or match.in<object>().at('bar')`;
|
|
58272
58274
|
var doubleAtMessage = `At most one key matcher may be specified per expression`;
|
|
58273
58275
|
|
|
58274
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58276
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/property.js
|
|
58275
58277
|
var parseProperty = (def, ctx) => {
|
|
58276
58278
|
if (isArray(def)) {
|
|
58277
58279
|
if (def[1] === "=")
|
|
@@ -58284,7 +58286,7 @@ var parseProperty = (def, ctx) => {
|
|
|
58284
58286
|
var invalidOptionalKeyKindMessage = `Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }`;
|
|
58285
58287
|
var invalidDefaultableKeyKindMessage = `Only required keys may specify default values, e.g. { value: 'number = 0' }`;
|
|
58286
58288
|
|
|
58287
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58289
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/objectLiteral.js
|
|
58288
58290
|
var parseObjectLiteral = (def, ctx) => {
|
|
58289
58291
|
let spread;
|
|
58290
58292
|
const structure3 = {};
|
|
@@ -58369,7 +58371,7 @@ var preparseKey = (key) => typeof key === "symbol" ? { kind: "required", normali
|
|
|
58369
58371
|
};
|
|
58370
58372
|
var writeInvalidSpreadTypeMessage = (def) => `Spread operand must resolve to an object literal type (was ${def})`;
|
|
58371
58373
|
|
|
58372
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58374
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/tupleExpressions.js
|
|
58373
58375
|
var maybeParseTupleExpression = (def, ctx) => isIndexZeroExpression(def) ? indexZeroParsers[def[0]](def, ctx) : isIndexOneExpression(def) ? indexOneParsers[def[1]](def, ctx) : null;
|
|
58374
58376
|
var parseKeyOfTuple = (def, ctx) => ctx.$.parseOwnDefinitionFormat(def[1], ctx).keyof();
|
|
58375
58377
|
var parseBranchTuple = (def, ctx) => {
|
|
@@ -58430,7 +58432,7 @@ var indexZeroParsers = defineIndexZeroParsers({
|
|
|
58430
58432
|
var isIndexZeroExpression = (def) => indexZeroParsers[def[0]] !== undefined;
|
|
58431
58433
|
var writeInvalidConstructorMessage = (actual) => `Expected a constructor following 'instanceof' operator (was ${actual})`;
|
|
58432
58434
|
|
|
58433
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58435
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/tupleLiteral.js
|
|
58434
58436
|
var parseTupleLiteral = (def, ctx) => {
|
|
58435
58437
|
let sequences = [{}];
|
|
58436
58438
|
let i2 = 0;
|
|
@@ -58526,7 +58528,7 @@ var requiredPostOptionalMessage = "A required element may not follow an optional
|
|
|
58526
58528
|
var optionalOrDefaultableAfterVariadicMessage = "An optional element may not follow a variadic element";
|
|
58527
58529
|
var defaultablePostOptionalMessage = "A defaultable element may not follow an optional element without a default";
|
|
58528
58530
|
|
|
58529
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58531
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/parser/definition.js
|
|
58530
58532
|
var parseCache = {};
|
|
58531
58533
|
var parseInnerDefinition = (def, ctx) => {
|
|
58532
58534
|
if (typeof def === "string") {
|
|
@@ -58565,7 +58567,7 @@ var parseObject = (def, ctx) => {
|
|
|
58565
58567
|
var parseTuple = (def, ctx) => maybeParseTupleExpression(def, ctx) ?? parseTupleLiteral(def, ctx);
|
|
58566
58568
|
var writeBadDefinitionTypeMessage = (actual) => `Type definitions must be strings or objects (was ${actual})`;
|
|
58567
58569
|
|
|
58568
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58570
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/type.js
|
|
58569
58571
|
class InternalTypeParser extends Callable {
|
|
58570
58572
|
constructor($2) {
|
|
58571
58573
|
const attach = Object.assign({
|
|
@@ -58607,7 +58609,7 @@ class InternalTypeParser extends Callable {
|
|
|
58607
58609
|
}
|
|
58608
58610
|
}
|
|
58609
58611
|
|
|
58610
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58612
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/scope.js
|
|
58611
58613
|
var $arkTypeRegistry = $ark;
|
|
58612
58614
|
|
|
58613
58615
|
class InternalScope extends BaseScope {
|
|
@@ -58701,7 +58703,7 @@ var scope2 = Object.assign(InternalScope.scope, {
|
|
|
58701
58703
|
});
|
|
58702
58704
|
var Scope = InternalScope;
|
|
58703
58705
|
|
|
58704
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58706
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/builtins.js
|
|
58705
58707
|
class MergeHkt extends Hkt {
|
|
58706
58708
|
description = 'merge an object\'s properties onto another like `Merge(User, { isAdmin: "true" })`';
|
|
58707
58709
|
}
|
|
@@ -58711,7 +58713,7 @@ var arkBuiltins = Scope.module({
|
|
|
58711
58713
|
Merge
|
|
58712
58714
|
});
|
|
58713
58715
|
|
|
58714
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58716
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/Array.js
|
|
58715
58717
|
class liftFromHkt extends Hkt {
|
|
58716
58718
|
}
|
|
58717
58719
|
var liftFrom = genericNode("element")((args2) => {
|
|
@@ -58728,7 +58730,7 @@ var arkArray = Scope.module({
|
|
|
58728
58730
|
name: "Array"
|
|
58729
58731
|
});
|
|
58730
58732
|
|
|
58731
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58733
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/FormData.js
|
|
58732
58734
|
var value = rootSchema(["string", registry.FileConstructor]);
|
|
58733
58735
|
var parsedFormDataValue = value.rawOr(value.array());
|
|
58734
58736
|
var parsed = rootSchema({
|
|
@@ -58765,7 +58767,7 @@ var arkFormData = Scope.module({
|
|
|
58765
58767
|
name: "FormData"
|
|
58766
58768
|
});
|
|
58767
58769
|
|
|
58768
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58770
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/TypedArray.js
|
|
58769
58771
|
var TypedArray = Scope.module({
|
|
58770
58772
|
Int8: ["instanceof", Int8Array],
|
|
58771
58773
|
Uint8: ["instanceof", Uint8Array],
|
|
@@ -58782,7 +58784,7 @@ var TypedArray = Scope.module({
|
|
|
58782
58784
|
name: "TypedArray"
|
|
58783
58785
|
});
|
|
58784
58786
|
|
|
58785
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58787
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/constructors.js
|
|
58786
58788
|
var omittedPrototypes = {
|
|
58787
58789
|
Boolean: 1,
|
|
58788
58790
|
Number: 1,
|
|
@@ -58795,7 +58797,7 @@ var arkPrototypes = Scope.module({
|
|
|
58795
58797
|
FormData: arkFormData
|
|
58796
58798
|
});
|
|
58797
58799
|
|
|
58798
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58800
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/number.js
|
|
58799
58801
|
var epoch = rootSchema({
|
|
58800
58802
|
domain: {
|
|
58801
58803
|
domain: "number",
|
|
@@ -58838,7 +58840,7 @@ var number = Scope.module({
|
|
|
58838
58840
|
name: "number"
|
|
58839
58841
|
});
|
|
58840
58842
|
|
|
58841
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58843
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/string.js
|
|
58842
58844
|
var regexStringNode = (regex2, description, jsonSchemaFormat) => {
|
|
58843
58845
|
const schema = {
|
|
58844
58846
|
domain: "string",
|
|
@@ -59229,7 +59231,7 @@ var string = Scope.module({
|
|
|
59229
59231
|
name: "string"
|
|
59230
59232
|
});
|
|
59231
59233
|
|
|
59232
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
59234
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/ts.js
|
|
59233
59235
|
var arkTsKeywords = Scope.module({
|
|
59234
59236
|
bigint: intrinsic.bigint,
|
|
59235
59237
|
boolean: intrinsic.boolean,
|
|
@@ -59317,7 +59319,7 @@ var arkTsGenerics = Scope.module({
|
|
|
59317
59319
|
Required: Required2
|
|
59318
59320
|
});
|
|
59319
59321
|
|
|
59320
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
59322
|
+
// ../../node_modules/.pnpm/arktype@2.1.27/node_modules/arktype/out/keywords/keywords.js
|
|
59321
59323
|
var ark = scope2({
|
|
59322
59324
|
...arkTsKeywords,
|
|
59323
59325
|
...arkTsGenerics,
|
|
@@ -59485,7 +59487,8 @@ var usersInRooms = join({
|
|
|
59485
59487
|
var usersInMyRoomView = selectorFamily({
|
|
59486
59488
|
key: `usersInMyRoomView`,
|
|
59487
59489
|
get: (myUsername) => ({ find }) => {
|
|
59488
|
-
|
|
59490
|
+
const [, roomsOfUsersAtoms] = getInternalRelations(usersInRooms, `split`);
|
|
59491
|
+
return [find(roomsOfUsersAtoms, myUsername)];
|
|
59489
59492
|
}
|
|
59490
59493
|
});
|
|
59491
59494
|
|
|
@@ -59872,7 +59875,7 @@ function worker(from, name, logger = from.logger) {
|
|
|
59872
59875
|
// src/database/tempest-db-manager.ts
|
|
59873
59876
|
import path2 from "path";
|
|
59874
59877
|
|
|
59875
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59878
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/entity.js
|
|
59876
59879
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
59877
59880
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
59878
59881
|
function is(value2, type2) {
|
|
@@ -59897,7 +59900,7 @@ function is(value2, type2) {
|
|
|
59897
59900
|
return false;
|
|
59898
59901
|
}
|
|
59899
59902
|
|
|
59900
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59903
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/column.js
|
|
59901
59904
|
class Column {
|
|
59902
59905
|
constructor(table, config3) {
|
|
59903
59906
|
this.table = table;
|
|
@@ -59947,7 +59950,7 @@ class Column {
|
|
|
59947
59950
|
}
|
|
59948
59951
|
}
|
|
59949
59952
|
|
|
59950
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59953
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/column-builder.js
|
|
59951
59954
|
class ColumnBuilder {
|
|
59952
59955
|
static [entityKind] = "ColumnBuilder";
|
|
59953
59956
|
config;
|
|
@@ -60003,10 +60006,10 @@ class ColumnBuilder {
|
|
|
60003
60006
|
}
|
|
60004
60007
|
}
|
|
60005
60008
|
|
|
60006
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60009
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/table.utils.js
|
|
60007
60010
|
var TableName = Symbol.for("drizzle:Name");
|
|
60008
60011
|
|
|
60009
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60012
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/foreign-keys.js
|
|
60010
60013
|
class ForeignKeyBuilder {
|
|
60011
60014
|
static [entityKind] = "PgForeignKeyBuilder";
|
|
60012
60015
|
reference;
|
|
@@ -60060,17 +60063,17 @@ class ForeignKey {
|
|
|
60060
60063
|
}
|
|
60061
60064
|
}
|
|
60062
60065
|
|
|
60063
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60066
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/tracing-utils.js
|
|
60064
60067
|
function iife(fn3, ...args2) {
|
|
60065
60068
|
return fn3(...args2);
|
|
60066
60069
|
}
|
|
60067
60070
|
|
|
60068
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60071
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
60069
60072
|
function uniqueKeyName(table, columns) {
|
|
60070
60073
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
60071
60074
|
}
|
|
60072
60075
|
|
|
60073
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60076
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/utils/array.js
|
|
60074
60077
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
|
60075
60078
|
for (let i2 = startFrom;i2 < arrayString.length; i2++) {
|
|
60076
60079
|
const char = arrayString[i2];
|
|
@@ -60146,7 +60149,7 @@ function makePgArray(array) {
|
|
|
60146
60149
|
}).join(",")}}`;
|
|
60147
60150
|
}
|
|
60148
60151
|
|
|
60149
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60152
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
60150
60153
|
class PgColumnBuilder extends ColumnBuilder {
|
|
60151
60154
|
foreignKeyConfigs = [];
|
|
60152
60155
|
static [entityKind] = "PgColumnBuilder";
|
|
@@ -60294,7 +60297,7 @@ class PgArray extends PgColumn {
|
|
|
60294
60297
|
}
|
|
60295
60298
|
}
|
|
60296
60299
|
|
|
60297
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60300
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
60298
60301
|
class PgEnumObjectColumnBuilder extends PgColumnBuilder {
|
|
60299
60302
|
static [entityKind] = "PgEnumObjectColumnBuilder";
|
|
60300
60303
|
constructor(name, enumInstance) {
|
|
@@ -60368,7 +60371,7 @@ function pgEnumObjectWithSchema(enumName, values, schema2) {
|
|
|
60368
60371
|
return enumInstance;
|
|
60369
60372
|
}
|
|
60370
60373
|
|
|
60371
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60374
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/subquery.js
|
|
60372
60375
|
class Subquery {
|
|
60373
60376
|
static [entityKind] = "Subquery";
|
|
60374
60377
|
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -60387,10 +60390,10 @@ class WithSubquery extends Subquery {
|
|
|
60387
60390
|
static [entityKind] = "WithSubquery";
|
|
60388
60391
|
}
|
|
60389
60392
|
|
|
60390
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60393
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/version.js
|
|
60391
60394
|
var version = "0.44.7";
|
|
60392
60395
|
|
|
60393
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60396
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/tracing.js
|
|
60394
60397
|
var otel;
|
|
60395
60398
|
var rawTracer;
|
|
60396
60399
|
var tracer = {
|
|
@@ -60417,10 +60420,10 @@ var tracer = {
|
|
|
60417
60420
|
}
|
|
60418
60421
|
};
|
|
60419
60422
|
|
|
60420
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60423
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/view-common.js
|
|
60421
60424
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
60422
60425
|
|
|
60423
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60426
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/table.js
|
|
60424
60427
|
var Schema = Symbol.for("drizzle:Schema");
|
|
60425
60428
|
var Columns = Symbol.for("drizzle:Columns");
|
|
60426
60429
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -60464,7 +60467,7 @@ function getTableUniqueName(table) {
|
|
|
60464
60467
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
60465
60468
|
}
|
|
60466
60469
|
|
|
60467
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60470
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/sql/sql.js
|
|
60468
60471
|
function isSQLWrapper(value2) {
|
|
60469
60472
|
return value2 !== null && value2 !== undefined && typeof value2.getSQL === "function";
|
|
60470
60473
|
}
|
|
@@ -60844,7 +60847,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
60844
60847
|
return new SQL([this]);
|
|
60845
60848
|
};
|
|
60846
60849
|
|
|
60847
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60850
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/alias.js
|
|
60848
60851
|
class ColumnAliasProxyHandler {
|
|
60849
60852
|
constructor(table) {
|
|
60850
60853
|
this.table = table;
|
|
@@ -60923,7 +60926,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
60923
60926
|
}));
|
|
60924
60927
|
}
|
|
60925
60928
|
|
|
60926
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60929
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/errors.js
|
|
60927
60930
|
class DrizzleError extends Error {
|
|
60928
60931
|
static [entityKind] = "DrizzleError";
|
|
60929
60932
|
constructor({ message, cause }) {
|
|
@@ -60953,7 +60956,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
60953
60956
|
}
|
|
60954
60957
|
}
|
|
60955
60958
|
|
|
60956
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60959
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/logger.js
|
|
60957
60960
|
class ConsoleLogWriter {
|
|
60958
60961
|
static [entityKind] = "ConsoleLogWriter";
|
|
60959
60962
|
write(message) {
|
|
@@ -60985,7 +60988,7 @@ class NoopLogger {
|
|
|
60985
60988
|
logQuery() {}
|
|
60986
60989
|
}
|
|
60987
60990
|
|
|
60988
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60991
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/query-promise.js
|
|
60989
60992
|
class QueryPromise {
|
|
60990
60993
|
static [entityKind] = "QueryPromise";
|
|
60991
60994
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -61006,7 +61009,7 @@ class QueryPromise {
|
|
|
61006
61009
|
}
|
|
61007
61010
|
}
|
|
61008
61011
|
|
|
61009
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61012
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/utils.js
|
|
61010
61013
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
61011
61014
|
const nullifyMap = {};
|
|
61012
61015
|
const result = columns.reduce((result2, { path: path2, field }, columnIndex) => {
|
|
@@ -61158,7 +61161,7 @@ function isConfig(data) {
|
|
|
61158
61161
|
}
|
|
61159
61162
|
var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
|
|
61160
61163
|
|
|
61161
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61164
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/int.common.js
|
|
61162
61165
|
class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
61163
61166
|
static [entityKind] = "PgIntColumnBaseBuilder";
|
|
61164
61167
|
generatedAlwaysAsIdentity(sequence2) {
|
|
@@ -61197,7 +61200,7 @@ class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
|
61197
61200
|
}
|
|
61198
61201
|
}
|
|
61199
61202
|
|
|
61200
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61203
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/bigint.js
|
|
61201
61204
|
class PgBigInt53Builder extends PgIntColumnBaseBuilder {
|
|
61202
61205
|
static [entityKind] = "PgBigInt53Builder";
|
|
61203
61206
|
constructor(name) {
|
|
@@ -61248,7 +61251,7 @@ function bigint(a2, b2) {
|
|
|
61248
61251
|
return new PgBigInt64Builder(name);
|
|
61249
61252
|
}
|
|
61250
61253
|
|
|
61251
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61254
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/bigserial.js
|
|
61252
61255
|
class PgBigSerial53Builder extends PgColumnBuilder {
|
|
61253
61256
|
static [entityKind] = "PgBigSerial53Builder";
|
|
61254
61257
|
constructor(name) {
|
|
@@ -61302,7 +61305,7 @@ function bigserial(a2, b2) {
|
|
|
61302
61305
|
return new PgBigSerial64Builder(name);
|
|
61303
61306
|
}
|
|
61304
61307
|
|
|
61305
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61308
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/boolean.js
|
|
61306
61309
|
class PgBooleanBuilder extends PgColumnBuilder {
|
|
61307
61310
|
static [entityKind] = "PgBooleanBuilder";
|
|
61308
61311
|
constructor(name) {
|
|
@@ -61323,7 +61326,7 @@ function boolean(name) {
|
|
|
61323
61326
|
return new PgBooleanBuilder(name ?? "");
|
|
61324
61327
|
}
|
|
61325
61328
|
|
|
61326
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61329
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/char.js
|
|
61327
61330
|
class PgCharBuilder extends PgColumnBuilder {
|
|
61328
61331
|
static [entityKind] = "PgCharBuilder";
|
|
61329
61332
|
constructor(name, config3) {
|
|
@@ -61349,7 +61352,7 @@ function char(a2, b2 = {}) {
|
|
|
61349
61352
|
return new PgCharBuilder(name, config3);
|
|
61350
61353
|
}
|
|
61351
61354
|
|
|
61352
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61355
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/cidr.js
|
|
61353
61356
|
class PgCidrBuilder extends PgColumnBuilder {
|
|
61354
61357
|
static [entityKind] = "PgCidrBuilder";
|
|
61355
61358
|
constructor(name) {
|
|
@@ -61370,7 +61373,7 @@ function cidr(name) {
|
|
|
61370
61373
|
return new PgCidrBuilder(name ?? "");
|
|
61371
61374
|
}
|
|
61372
61375
|
|
|
61373
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61376
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/custom.js
|
|
61374
61377
|
class PgCustomColumnBuilder extends PgColumnBuilder {
|
|
61375
61378
|
static [entityKind] = "PgCustomColumnBuilder";
|
|
61376
61379
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -61411,7 +61414,7 @@ function customType(customTypeParams) {
|
|
|
61411
61414
|
};
|
|
61412
61415
|
}
|
|
61413
61416
|
|
|
61414
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61417
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/date.common.js
|
|
61415
61418
|
class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
61416
61419
|
static [entityKind] = "PgDateColumnBaseBuilder";
|
|
61417
61420
|
defaultNow() {
|
|
@@ -61419,7 +61422,7 @@ class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
|
61419
61422
|
}
|
|
61420
61423
|
}
|
|
61421
61424
|
|
|
61422
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61425
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
61423
61426
|
class PgDateBuilder extends PgDateColumnBaseBuilder {
|
|
61424
61427
|
static [entityKind] = "PgDateBuilder";
|
|
61425
61428
|
constructor(name) {
|
|
@@ -61467,7 +61470,7 @@ function date(a2, b2) {
|
|
|
61467
61470
|
return new PgDateStringBuilder(name);
|
|
61468
61471
|
}
|
|
61469
61472
|
|
|
61470
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61473
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/double-precision.js
|
|
61471
61474
|
class PgDoublePrecisionBuilder extends PgColumnBuilder {
|
|
61472
61475
|
static [entityKind] = "PgDoublePrecisionBuilder";
|
|
61473
61476
|
constructor(name) {
|
|
@@ -61494,7 +61497,7 @@ function doublePrecision(name) {
|
|
|
61494
61497
|
return new PgDoublePrecisionBuilder(name ?? "");
|
|
61495
61498
|
}
|
|
61496
61499
|
|
|
61497
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61500
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/inet.js
|
|
61498
61501
|
class PgInetBuilder extends PgColumnBuilder {
|
|
61499
61502
|
static [entityKind] = "PgInetBuilder";
|
|
61500
61503
|
constructor(name) {
|
|
@@ -61515,7 +61518,7 @@ function inet(name) {
|
|
|
61515
61518
|
return new PgInetBuilder(name ?? "");
|
|
61516
61519
|
}
|
|
61517
61520
|
|
|
61518
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61521
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/integer.js
|
|
61519
61522
|
class PgIntegerBuilder extends PgIntColumnBaseBuilder {
|
|
61520
61523
|
static [entityKind] = "PgIntegerBuilder";
|
|
61521
61524
|
constructor(name) {
|
|
@@ -61542,7 +61545,7 @@ function integer2(name) {
|
|
|
61542
61545
|
return new PgIntegerBuilder(name ?? "");
|
|
61543
61546
|
}
|
|
61544
61547
|
|
|
61545
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61548
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/interval.js
|
|
61546
61549
|
class PgIntervalBuilder extends PgColumnBuilder {
|
|
61547
61550
|
static [entityKind] = "PgIntervalBuilder";
|
|
61548
61551
|
constructor(name, intervalConfig) {
|
|
@@ -61569,7 +61572,7 @@ function interval(a2, b2 = {}) {
|
|
|
61569
61572
|
return new PgIntervalBuilder(name, config3);
|
|
61570
61573
|
}
|
|
61571
61574
|
|
|
61572
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61575
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
61573
61576
|
class PgJsonBuilder extends PgColumnBuilder {
|
|
61574
61577
|
static [entityKind] = "PgJsonBuilder";
|
|
61575
61578
|
constructor(name) {
|
|
@@ -61606,7 +61609,7 @@ function json3(name) {
|
|
|
61606
61609
|
return new PgJsonBuilder(name ?? "");
|
|
61607
61610
|
}
|
|
61608
61611
|
|
|
61609
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61612
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
61610
61613
|
class PgJsonbBuilder extends PgColumnBuilder {
|
|
61611
61614
|
static [entityKind] = "PgJsonbBuilder";
|
|
61612
61615
|
constructor(name) {
|
|
@@ -61643,7 +61646,7 @@ function jsonb(name) {
|
|
|
61643
61646
|
return new PgJsonbBuilder(name ?? "");
|
|
61644
61647
|
}
|
|
61645
61648
|
|
|
61646
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61649
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/line.js
|
|
61647
61650
|
class PgLineBuilder extends PgColumnBuilder {
|
|
61648
61651
|
static [entityKind] = "PgLineBuilder";
|
|
61649
61652
|
constructor(name) {
|
|
@@ -61699,7 +61702,7 @@ function line(a2, b2) {
|
|
|
61699
61702
|
return new PgLineABCBuilder(name);
|
|
61700
61703
|
}
|
|
61701
61704
|
|
|
61702
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61705
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/macaddr.js
|
|
61703
61706
|
class PgMacaddrBuilder extends PgColumnBuilder {
|
|
61704
61707
|
static [entityKind] = "PgMacaddrBuilder";
|
|
61705
61708
|
constructor(name) {
|
|
@@ -61720,7 +61723,7 @@ function macaddr(name) {
|
|
|
61720
61723
|
return new PgMacaddrBuilder(name ?? "");
|
|
61721
61724
|
}
|
|
61722
61725
|
|
|
61723
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61726
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/macaddr8.js
|
|
61724
61727
|
class PgMacaddr8Builder extends PgColumnBuilder {
|
|
61725
61728
|
static [entityKind] = "PgMacaddr8Builder";
|
|
61726
61729
|
constructor(name) {
|
|
@@ -61741,7 +61744,7 @@ function macaddr8(name) {
|
|
|
61741
61744
|
return new PgMacaddr8Builder(name ?? "");
|
|
61742
61745
|
}
|
|
61743
61746
|
|
|
61744
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61747
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
61745
61748
|
class PgNumericBuilder extends PgColumnBuilder {
|
|
61746
61749
|
static [entityKind] = "PgNumericBuilder";
|
|
61747
61750
|
constructor(name, precision, scale) {
|
|
@@ -61856,7 +61859,7 @@ function numeric(a2, b2) {
|
|
|
61856
61859
|
return mode === "number" ? new PgNumericNumberBuilder(name, config3?.precision, config3?.scale) : mode === "bigint" ? new PgNumericBigIntBuilder(name, config3?.precision, config3?.scale) : new PgNumericBuilder(name, config3?.precision, config3?.scale);
|
|
61857
61860
|
}
|
|
61858
61861
|
|
|
61859
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61862
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/point.js
|
|
61860
61863
|
class PgPointTupleBuilder extends PgColumnBuilder {
|
|
61861
61864
|
static [entityKind] = "PgPointTupleBuilder";
|
|
61862
61865
|
constructor(name) {
|
|
@@ -61918,7 +61921,7 @@ function point(a2, b2) {
|
|
|
61918
61921
|
return new PgPointObjectBuilder(name);
|
|
61919
61922
|
}
|
|
61920
61923
|
|
|
61921
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61924
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
|
|
61922
61925
|
function hexToBytes(hex2) {
|
|
61923
61926
|
const bytes = [];
|
|
61924
61927
|
for (let c2 = 0;c2 < hex2.length; c2 += 2) {
|
|
@@ -61957,7 +61960,7 @@ function parseEWKB(hex2) {
|
|
|
61957
61960
|
throw new Error("Unsupported geometry type");
|
|
61958
61961
|
}
|
|
61959
61962
|
|
|
61960
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61963
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
|
|
61961
61964
|
class PgGeometryBuilder extends PgColumnBuilder {
|
|
61962
61965
|
static [entityKind] = "PgGeometryBuilder";
|
|
61963
61966
|
constructor(name) {
|
|
@@ -62012,7 +62015,7 @@ function geometry(a2, b2) {
|
|
|
62012
62015
|
return new PgGeometryObjectBuilder(name);
|
|
62013
62016
|
}
|
|
62014
62017
|
|
|
62015
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62018
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/real.js
|
|
62016
62019
|
class PgRealBuilder extends PgColumnBuilder {
|
|
62017
62020
|
static [entityKind] = "PgRealBuilder";
|
|
62018
62021
|
constructor(name, length) {
|
|
@@ -62043,7 +62046,7 @@ function real(name) {
|
|
|
62043
62046
|
return new PgRealBuilder(name ?? "");
|
|
62044
62047
|
}
|
|
62045
62048
|
|
|
62046
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62049
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/serial.js
|
|
62047
62050
|
class PgSerialBuilder extends PgColumnBuilder {
|
|
62048
62051
|
static [entityKind] = "PgSerialBuilder";
|
|
62049
62052
|
constructor(name) {
|
|
@@ -62066,7 +62069,7 @@ function serial(name) {
|
|
|
62066
62069
|
return new PgSerialBuilder(name ?? "");
|
|
62067
62070
|
}
|
|
62068
62071
|
|
|
62069
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62072
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/smallint.js
|
|
62070
62073
|
class PgSmallIntBuilder extends PgIntColumnBaseBuilder {
|
|
62071
62074
|
static [entityKind] = "PgSmallIntBuilder";
|
|
62072
62075
|
constructor(name) {
|
|
@@ -62093,7 +62096,7 @@ function smallint(name) {
|
|
|
62093
62096
|
return new PgSmallIntBuilder(name ?? "");
|
|
62094
62097
|
}
|
|
62095
62098
|
|
|
62096
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62099
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/smallserial.js
|
|
62097
62100
|
class PgSmallSerialBuilder extends PgColumnBuilder {
|
|
62098
62101
|
static [entityKind] = "PgSmallSerialBuilder";
|
|
62099
62102
|
constructor(name) {
|
|
@@ -62116,7 +62119,7 @@ function smallserial(name) {
|
|
|
62116
62119
|
return new PgSmallSerialBuilder(name ?? "");
|
|
62117
62120
|
}
|
|
62118
62121
|
|
|
62119
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62122
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/text.js
|
|
62120
62123
|
class PgTextBuilder extends PgColumnBuilder {
|
|
62121
62124
|
static [entityKind] = "PgTextBuilder";
|
|
62122
62125
|
constructor(name, config3) {
|
|
@@ -62140,7 +62143,7 @@ function text(a2, b2 = {}) {
|
|
|
62140
62143
|
return new PgTextBuilder(name, config3);
|
|
62141
62144
|
}
|
|
62142
62145
|
|
|
62143
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62146
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
62144
62147
|
class PgTimeBuilder extends PgDateColumnBaseBuilder {
|
|
62145
62148
|
constructor(name, withTimezone, precision) {
|
|
62146
62149
|
super(name, "string", "PgTime");
|
|
@@ -62174,7 +62177,7 @@ function time(a2, b2 = {}) {
|
|
|
62174
62177
|
return new PgTimeBuilder(name, config3.withTimezone ?? false, config3.precision);
|
|
62175
62178
|
}
|
|
62176
62179
|
|
|
62177
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62180
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
62178
62181
|
class PgTimestampBuilder extends PgDateColumnBaseBuilder {
|
|
62179
62182
|
static [entityKind] = "PgTimestampBuilder";
|
|
62180
62183
|
constructor(name, withTimezone, precision) {
|
|
@@ -62242,7 +62245,7 @@ function timestamp(a2, b2 = {}) {
|
|
|
62242
62245
|
return new PgTimestampBuilder(name, config3?.withTimezone ?? false, config3?.precision);
|
|
62243
62246
|
}
|
|
62244
62247
|
|
|
62245
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62248
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
62246
62249
|
class PgUUIDBuilder extends PgColumnBuilder {
|
|
62247
62250
|
static [entityKind] = "PgUUIDBuilder";
|
|
62248
62251
|
constructor(name) {
|
|
@@ -62266,7 +62269,7 @@ function uuid2(name) {
|
|
|
62266
62269
|
return new PgUUIDBuilder(name ?? "");
|
|
62267
62270
|
}
|
|
62268
62271
|
|
|
62269
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62272
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/varchar.js
|
|
62270
62273
|
class PgVarcharBuilder extends PgColumnBuilder {
|
|
62271
62274
|
static [entityKind] = "PgVarcharBuilder";
|
|
62272
62275
|
constructor(name, config3) {
|
|
@@ -62292,7 +62295,7 @@ function varchar(a2, b2 = {}) {
|
|
|
62292
62295
|
return new PgVarcharBuilder(name, config3);
|
|
62293
62296
|
}
|
|
62294
62297
|
|
|
62295
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62298
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
|
|
62296
62299
|
class PgBinaryVectorBuilder extends PgColumnBuilder {
|
|
62297
62300
|
static [entityKind] = "PgBinaryVectorBuilder";
|
|
62298
62301
|
constructor(name, config3) {
|
|
@@ -62316,7 +62319,7 @@ function bit(a2, b2) {
|
|
|
62316
62319
|
return new PgBinaryVectorBuilder(name, config3);
|
|
62317
62320
|
}
|
|
62318
62321
|
|
|
62319
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62322
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
|
|
62320
62323
|
class PgHalfVectorBuilder extends PgColumnBuilder {
|
|
62321
62324
|
static [entityKind] = "PgHalfVectorBuilder";
|
|
62322
62325
|
constructor(name, config3) {
|
|
@@ -62346,7 +62349,7 @@ function halfvec(a2, b2) {
|
|
|
62346
62349
|
return new PgHalfVectorBuilder(name, config3);
|
|
62347
62350
|
}
|
|
62348
62351
|
|
|
62349
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62352
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
|
|
62350
62353
|
class PgSparseVectorBuilder extends PgColumnBuilder {
|
|
62351
62354
|
static [entityKind] = "PgSparseVectorBuilder";
|
|
62352
62355
|
constructor(name, config3) {
|
|
@@ -62370,7 +62373,7 @@ function sparsevec(a2, b2) {
|
|
|
62370
62373
|
return new PgSparseVectorBuilder(name, config3);
|
|
62371
62374
|
}
|
|
62372
62375
|
|
|
62373
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62376
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
|
|
62374
62377
|
class PgVectorBuilder extends PgColumnBuilder {
|
|
62375
62378
|
static [entityKind] = "PgVectorBuilder";
|
|
62376
62379
|
constructor(name, config3) {
|
|
@@ -62400,7 +62403,7 @@ function vector(a2, b2) {
|
|
|
62400
62403
|
return new PgVectorBuilder(name, config3);
|
|
62401
62404
|
}
|
|
62402
62405
|
|
|
62403
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62406
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/all.js
|
|
62404
62407
|
function getPgColumnBuilders() {
|
|
62405
62408
|
return {
|
|
62406
62409
|
bigint,
|
|
@@ -62438,7 +62441,7 @@ function getPgColumnBuilders() {
|
|
|
62438
62441
|
};
|
|
62439
62442
|
}
|
|
62440
62443
|
|
|
62441
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62444
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/table.js
|
|
62442
62445
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
62443
62446
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
62444
62447
|
|
|
@@ -62486,7 +62489,7 @@ var pgTable = (name, columns, extraConfig) => {
|
|
|
62486
62489
|
return pgTableWithSchema(name, columns, extraConfig, undefined);
|
|
62487
62490
|
};
|
|
62488
62491
|
|
|
62489
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62492
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
62490
62493
|
function primaryKey(...config3) {
|
|
62491
62494
|
if (config3[0].columns) {
|
|
62492
62495
|
return new PrimaryKeyBuilder(config3[0].columns, config3[0].name);
|
|
@@ -62521,7 +62524,7 @@ class PrimaryKey {
|
|
|
62521
62524
|
}
|
|
62522
62525
|
}
|
|
62523
62526
|
|
|
62524
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62527
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
62525
62528
|
function bindIfParam(value2, column) {
|
|
62526
62529
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value2) && !is(value2, Param) && !is(value2, Placeholder) && !is(value2, Column) && !is(value2, Table) && !is(value2, View)) {
|
|
62527
62530
|
return new Param(value2, column);
|
|
@@ -62626,7 +62629,7 @@ function notIlike(column, value2) {
|
|
|
62626
62629
|
return sql`${column} not ilike ${value2}`;
|
|
62627
62630
|
}
|
|
62628
62631
|
|
|
62629
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62632
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/sql/expressions/select.js
|
|
62630
62633
|
function asc(column) {
|
|
62631
62634
|
return sql`${column} asc`;
|
|
62632
62635
|
}
|
|
@@ -62634,7 +62637,7 @@ function desc(column) {
|
|
|
62634
62637
|
return sql`${column} desc`;
|
|
62635
62638
|
}
|
|
62636
62639
|
|
|
62637
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62640
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/relations.js
|
|
62638
62641
|
class Relation {
|
|
62639
62642
|
constructor(sourceTable, referencedTable, relationName) {
|
|
62640
62643
|
this.sourceTable = sourceTable;
|
|
@@ -64801,7 +64804,7 @@ function osUsername() {
|
|
|
64801
64804
|
}
|
|
64802
64805
|
}
|
|
64803
64806
|
|
|
64804
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64807
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/selection-proxy.js
|
|
64805
64808
|
class SelectionProxyHandler {
|
|
64806
64809
|
static [entityKind] = "SelectionProxyHandler";
|
|
64807
64810
|
config;
|
|
@@ -64853,7 +64856,7 @@ class SelectionProxyHandler {
|
|
|
64853
64856
|
}
|
|
64854
64857
|
}
|
|
64855
64858
|
|
|
64856
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64859
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/indexes.js
|
|
64857
64860
|
class IndexBuilderOn {
|
|
64858
64861
|
constructor(unique, name) {
|
|
64859
64862
|
this.unique = unique;
|
|
@@ -64935,7 +64938,7 @@ function uniqueIndex(name) {
|
|
|
64935
64938
|
return new IndexBuilderOn(true, name);
|
|
64936
64939
|
}
|
|
64937
64940
|
|
|
64938
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64941
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/casing.js
|
|
64939
64942
|
function toSnakeCase(input) {
|
|
64940
64943
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
64941
64944
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -64988,12 +64991,12 @@ class CasingCache {
|
|
|
64988
64991
|
}
|
|
64989
64992
|
}
|
|
64990
64993
|
|
|
64991
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64994
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/view-base.js
|
|
64992
64995
|
class PgViewBase extends View {
|
|
64993
64996
|
static [entityKind] = "PgViewBase";
|
|
64994
64997
|
}
|
|
64995
64998
|
|
|
64996
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64999
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/dialect.js
|
|
64997
65000
|
class PgDialect {
|
|
64998
65001
|
static [entityKind] = "PgDialect";
|
|
64999
65002
|
casing;
|
|
@@ -65551,7 +65554,7 @@ class PgDialect {
|
|
|
65551
65554
|
}
|
|
65552
65555
|
}
|
|
65553
65556
|
|
|
65554
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65557
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
65555
65558
|
class TypedQueryBuilder {
|
|
65556
65559
|
static [entityKind] = "TypedQueryBuilder";
|
|
65557
65560
|
getSelectedFields() {
|
|
@@ -65559,7 +65562,7 @@ class TypedQueryBuilder {
|
|
|
65559
65562
|
}
|
|
65560
65563
|
}
|
|
65561
65564
|
|
|
65562
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65565
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
65563
65566
|
class PgSelectBuilder {
|
|
65564
65567
|
static [entityKind] = "PgSelectBuilder";
|
|
65565
65568
|
fields;
|
|
@@ -65877,7 +65880,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
65877
65880
|
var except = createSetOperator("except", false);
|
|
65878
65881
|
var exceptAll = createSetOperator("except", true);
|
|
65879
65882
|
|
|
65880
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65883
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
65881
65884
|
class QueryBuilder {
|
|
65882
65885
|
static [entityKind] = "PgQueryBuilder";
|
|
65883
65886
|
dialect;
|
|
@@ -65955,7 +65958,7 @@ class QueryBuilder {
|
|
|
65955
65958
|
}
|
|
65956
65959
|
}
|
|
65957
65960
|
|
|
65958
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65961
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/utils.js
|
|
65959
65962
|
function extractUsedTable(table) {
|
|
65960
65963
|
if (is(table, PgTable)) {
|
|
65961
65964
|
return [table[Schema] ? `${table[Schema]}.${table[Table.Symbol.BaseName]}` : table[Table.Symbol.BaseName]];
|
|
@@ -65969,7 +65972,7 @@ function extractUsedTable(table) {
|
|
|
65969
65972
|
return [];
|
|
65970
65973
|
}
|
|
65971
65974
|
|
|
65972
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65975
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
65973
65976
|
class PgDeleteBase extends QueryPromise {
|
|
65974
65977
|
constructor(table, session, dialect, withList) {
|
|
65975
65978
|
super();
|
|
@@ -66029,7 +66032,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
66029
66032
|
}
|
|
66030
66033
|
}
|
|
66031
66034
|
|
|
66032
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66035
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
66033
66036
|
class PgInsertBuilder {
|
|
66034
66037
|
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
66035
66038
|
this.table = table;
|
|
@@ -66152,7 +66155,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
66152
66155
|
}
|
|
66153
66156
|
}
|
|
66154
66157
|
|
|
66155
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66158
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
66156
66159
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
66157
66160
|
constructor(view, session, dialect) {
|
|
66158
66161
|
super();
|
|
@@ -66203,7 +66206,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
66203
66206
|
};
|
|
66204
66207
|
}
|
|
66205
66208
|
|
|
66206
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66209
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
66207
66210
|
class PgUpdateBuilder {
|
|
66208
66211
|
constructor(table, session, dialect, withList) {
|
|
66209
66212
|
this.table = table;
|
|
@@ -66357,7 +66360,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
66357
66360
|
}
|
|
66358
66361
|
}
|
|
66359
66362
|
|
|
66360
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66363
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
66361
66364
|
class PgCountBuilder extends SQL {
|
|
66362
66365
|
constructor(params) {
|
|
66363
66366
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -66398,7 +66401,7 @@ class PgCountBuilder extends SQL {
|
|
|
66398
66401
|
}
|
|
66399
66402
|
}
|
|
66400
66403
|
|
|
66401
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66404
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
66402
66405
|
class RelationalQueryBuilder {
|
|
66403
66406
|
constructor(fullSchema, schema2, tableNamesMap, table, tableConfig, dialect, session) {
|
|
66404
66407
|
this.fullSchema = fullSchema;
|
|
@@ -66481,7 +66484,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
66481
66484
|
}
|
|
66482
66485
|
}
|
|
66483
66486
|
|
|
66484
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66487
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
66485
66488
|
class PgRaw extends QueryPromise {
|
|
66486
66489
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
66487
66490
|
super();
|
|
@@ -66508,7 +66511,7 @@ class PgRaw extends QueryPromise {
|
|
|
66508
66511
|
}
|
|
66509
66512
|
}
|
|
66510
66513
|
|
|
66511
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66514
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/db.js
|
|
66512
66515
|
class PgDatabase {
|
|
66513
66516
|
constructor(dialect, session, schema2) {
|
|
66514
66517
|
this.dialect = dialect;
|
|
@@ -66634,7 +66637,7 @@ class PgDatabase {
|
|
|
66634
66637
|
}
|
|
66635
66638
|
}
|
|
66636
66639
|
|
|
66637
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66640
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/cache/core/cache.js
|
|
66638
66641
|
class Cache {
|
|
66639
66642
|
static [entityKind] = "Cache";
|
|
66640
66643
|
}
|
|
@@ -66660,7 +66663,7 @@ async function hashQuery(sql2, params) {
|
|
|
66660
66663
|
return hashHex;
|
|
66661
66664
|
}
|
|
66662
66665
|
|
|
66663
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66666
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/pg-core/session.js
|
|
66664
66667
|
class PgPreparedQuery {
|
|
66665
66668
|
constructor(query, cache, queryMetadata, cacheConfig) {
|
|
66666
66669
|
this.query = query;
|
|
@@ -66792,7 +66795,7 @@ class PgTransaction extends PgDatabase {
|
|
|
66792
66795
|
}
|
|
66793
66796
|
}
|
|
66794
66797
|
|
|
66795
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66798
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/postgres-js/session.js
|
|
66796
66799
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
66797
66800
|
constructor(client, queryString, params, logger, cache, queryMetadata, cacheConfig, fields, _isResponseInArrayMode, customResultMapper) {
|
|
66798
66801
|
super({ sql: queryString, params }, cache, queryMetadata, cacheConfig);
|
|
@@ -66908,7 +66911,7 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
66908
66911
|
}
|
|
66909
66912
|
}
|
|
66910
66913
|
|
|
66911
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66914
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.6__postgres@3.4.7/node_modules/drizzle-orm/postgres-js/driver.js
|
|
66912
66915
|
class PostgresJsDatabase extends PgDatabase {
|
|
66913
66916
|
static [entityKind] = "PostgresJsDatabase";
|
|
66914
66917
|
}
|
|
@@ -67479,51 +67482,17 @@ function summarizeAccountAction({
|
|
|
67479
67482
|
return { subjectExternal, subjectInternal, summary };
|
|
67480
67483
|
}
|
|
67481
67484
|
|
|
67482
|
-
// ../../node_modules/.pnpm/resend@6.
|
|
67485
|
+
// ../../node_modules/.pnpm/resend@6.5.2_@react-email+render@2.0.0_react-dom@19.2.0_react@19.2.0__react@19.2.0_/node_modules/resend/dist/index.mjs
|
|
67483
67486
|
var import_svix = __toESM(require_dist5(), 1);
|
|
67484
|
-
var
|
|
67485
|
-
var __defProps = Object.defineProperties;
|
|
67486
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
67487
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
67488
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
67489
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
67490
|
-
var __defNormalProp = (obj, key, value2) => (key in obj) ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key] = value2;
|
|
67491
|
-
var __spreadValues = (a2, b5) => {
|
|
67492
|
-
for (var prop2 in b5 || (b5 = {}))
|
|
67493
|
-
if (__hasOwnProp3.call(b5, prop2))
|
|
67494
|
-
__defNormalProp(a2, prop2, b5[prop2]);
|
|
67495
|
-
if (__getOwnPropSymbols)
|
|
67496
|
-
for (var prop2 of __getOwnPropSymbols(b5)) {
|
|
67497
|
-
if (__propIsEnum.call(b5, prop2))
|
|
67498
|
-
__defNormalProp(a2, prop2, b5[prop2]);
|
|
67499
|
-
}
|
|
67500
|
-
return a2;
|
|
67501
|
-
};
|
|
67502
|
-
var __spreadProps = (a2, b5) => __defProps(a2, __getOwnPropDescs(b5));
|
|
67503
|
-
var __objRest = (source, exclude) => {
|
|
67504
|
-
var target = {};
|
|
67505
|
-
for (var prop2 in source)
|
|
67506
|
-
if (__hasOwnProp3.call(source, prop2) && exclude.indexOf(prop2) < 0)
|
|
67507
|
-
target[prop2] = source[prop2];
|
|
67508
|
-
if (source != null && __getOwnPropSymbols)
|
|
67509
|
-
for (var prop2 of __getOwnPropSymbols(source)) {
|
|
67510
|
-
if (exclude.indexOf(prop2) < 0 && __propIsEnum.call(source, prop2))
|
|
67511
|
-
target[prop2] = source[prop2];
|
|
67512
|
-
}
|
|
67513
|
-
return target;
|
|
67514
|
-
};
|
|
67515
|
-
var version2 = "6.4.2";
|
|
67487
|
+
var version2 = "6.5.2";
|
|
67516
67488
|
function buildPaginationQuery(options) {
|
|
67517
67489
|
const searchParams = new URLSearchParams;
|
|
67518
|
-
if (options.limit !== undefined)
|
|
67490
|
+
if (options.limit !== undefined)
|
|
67519
67491
|
searchParams.set("limit", options.limit.toString());
|
|
67520
|
-
|
|
67521
|
-
if ("after" in options && options.after !== undefined) {
|
|
67492
|
+
if ("after" in options && options.after !== undefined)
|
|
67522
67493
|
searchParams.set("after", options.after);
|
|
67523
|
-
|
|
67524
|
-
if ("before" in options && options.before !== undefined) {
|
|
67494
|
+
if ("before" in options && options.before !== undefined)
|
|
67525
67495
|
searchParams.set("before", options.before);
|
|
67526
|
-
}
|
|
67527
67496
|
return searchParams.toString();
|
|
67528
67497
|
}
|
|
67529
67498
|
var ApiKeys = class {
|
|
@@ -67531,22 +67500,19 @@ var ApiKeys = class {
|
|
|
67531
67500
|
this.resend = resend;
|
|
67532
67501
|
}
|
|
67533
67502
|
async create(payload, options = {}) {
|
|
67534
|
-
|
|
67535
|
-
return data;
|
|
67503
|
+
return await this.resend.post("/api-keys", payload, options);
|
|
67536
67504
|
}
|
|
67537
67505
|
async list(options = {}) {
|
|
67538
67506
|
const queryString = buildPaginationQuery(options);
|
|
67539
67507
|
const url2 = queryString ? `/api-keys?${queryString}` : "/api-keys";
|
|
67540
|
-
|
|
67541
|
-
return data;
|
|
67508
|
+
return await this.resend.get(url2);
|
|
67542
67509
|
}
|
|
67543
67510
|
async remove(id) {
|
|
67544
|
-
|
|
67545
|
-
return data;
|
|
67511
|
+
return await this.resend.delete(`/api-keys/${id}`);
|
|
67546
67512
|
}
|
|
67547
67513
|
};
|
|
67548
67514
|
function parseAttachments(attachments) {
|
|
67549
|
-
return attachments
|
|
67515
|
+
return attachments?.map((attachment) => ({
|
|
67550
67516
|
content: attachment.content,
|
|
67551
67517
|
filename: attachment.filename,
|
|
67552
67518
|
path: attachment.path,
|
|
@@ -67576,13 +67542,13 @@ function parseEmailToApiOptions(email2) {
|
|
|
67576
67542
|
};
|
|
67577
67543
|
}
|
|
67578
67544
|
async function render3(node4) {
|
|
67579
|
-
let
|
|
67545
|
+
let render$1;
|
|
67580
67546
|
try {
|
|
67581
|
-
({ render:
|
|
67582
|
-
} catch
|
|
67547
|
+
({ render: render$1 } = await Promise.resolve().then(() => (init_node2(), exports_node)));
|
|
67548
|
+
} catch {
|
|
67583
67549
|
throw new Error("Failed to render React component. Make sure to install `@react-email/render` or `@react-email/components`.");
|
|
67584
67550
|
}
|
|
67585
|
-
return
|
|
67551
|
+
return render$1(node4);
|
|
67586
67552
|
}
|
|
67587
67553
|
var Batch = class {
|
|
67588
67554
|
constructor(resend) {
|
|
@@ -67592,7 +67558,6 @@ var Batch = class {
|
|
|
67592
67558
|
return this.create(payload, options);
|
|
67593
67559
|
}
|
|
67594
67560
|
async create(payload, options) {
|
|
67595
|
-
var _a3;
|
|
67596
67561
|
const emails = [];
|
|
67597
67562
|
for (const email2 of payload) {
|
|
67598
67563
|
if (email2.react) {
|
|
@@ -67601,12 +67566,13 @@ var Batch = class {
|
|
|
67601
67566
|
}
|
|
67602
67567
|
emails.push(parseEmailToApiOptions(email2));
|
|
67603
67568
|
}
|
|
67604
|
-
|
|
67605
|
-
|
|
67606
|
-
|
|
67607
|
-
|
|
67608
|
-
|
|
67609
|
-
|
|
67569
|
+
return await this.resend.post("/emails/batch", emails, {
|
|
67570
|
+
...options,
|
|
67571
|
+
headers: {
|
|
67572
|
+
"x-batch-validation": options?.batchValidation ?? "strict",
|
|
67573
|
+
...options?.headers
|
|
67574
|
+
}
|
|
67575
|
+
});
|
|
67610
67576
|
}
|
|
67611
67577
|
};
|
|
67612
67578
|
var Broadcasts = class {
|
|
@@ -67614,10 +67580,9 @@ var Broadcasts = class {
|
|
|
67614
67580
|
this.resend = resend;
|
|
67615
67581
|
}
|
|
67616
67582
|
async create(payload, options = {}) {
|
|
67617
|
-
if (payload.react)
|
|
67583
|
+
if (payload.react)
|
|
67618
67584
|
payload.html = await render3(payload.react);
|
|
67619
|
-
|
|
67620
|
-
const data = await this.resend.post("/broadcasts", {
|
|
67585
|
+
return await this.resend.post("/broadcasts", {
|
|
67621
67586
|
name: payload.name,
|
|
67622
67587
|
segment_id: payload.segmentId,
|
|
67623
67588
|
audience_id: payload.audienceId,
|
|
@@ -67629,31 +67594,25 @@ var Broadcasts = class {
|
|
|
67629
67594
|
text: payload.text,
|
|
67630
67595
|
topic_id: payload.topicId
|
|
67631
67596
|
}, options);
|
|
67632
|
-
return data;
|
|
67633
67597
|
}
|
|
67634
67598
|
async send(id, payload) {
|
|
67635
|
-
|
|
67636
|
-
return data;
|
|
67599
|
+
return await this.resend.post(`/broadcasts/${id}/send`, { scheduled_at: payload?.scheduledAt });
|
|
67637
67600
|
}
|
|
67638
67601
|
async list(options = {}) {
|
|
67639
67602
|
const queryString = buildPaginationQuery(options);
|
|
67640
67603
|
const url2 = queryString ? `/broadcasts?${queryString}` : "/broadcasts";
|
|
67641
|
-
|
|
67642
|
-
return data;
|
|
67604
|
+
return await this.resend.get(url2);
|
|
67643
67605
|
}
|
|
67644
67606
|
async get(id) {
|
|
67645
|
-
|
|
67646
|
-
return data;
|
|
67607
|
+
return await this.resend.get(`/broadcasts/${id}`);
|
|
67647
67608
|
}
|
|
67648
67609
|
async remove(id) {
|
|
67649
|
-
|
|
67650
|
-
return data;
|
|
67610
|
+
return await this.resend.delete(`/broadcasts/${id}`);
|
|
67651
67611
|
}
|
|
67652
67612
|
async update(id, payload) {
|
|
67653
|
-
if (payload.react)
|
|
67613
|
+
if (payload.react)
|
|
67654
67614
|
payload.html = await render3(payload.react);
|
|
67655
|
-
}
|
|
67656
|
-
const data = await this.resend.patch(`/broadcasts/${id}`, {
|
|
67615
|
+
return await this.resend.patch(`/broadcasts/${id}`, {
|
|
67657
67616
|
name: payload.name,
|
|
67658
67617
|
segment_id: payload.segmentId,
|
|
67659
67618
|
audience_id: payload.audienceId,
|
|
@@ -67665,7 +67624,6 @@ var Broadcasts = class {
|
|
|
67665
67624
|
preview_text: payload.previewText,
|
|
67666
67625
|
topic_id: payload.topicId
|
|
67667
67626
|
});
|
|
67668
|
-
return data;
|
|
67669
67627
|
}
|
|
67670
67628
|
};
|
|
67671
67629
|
function parseContactPropertyFromApi(contactProperty) {
|
|
@@ -67678,16 +67636,13 @@ function parseContactPropertyFromApi(contactProperty) {
|
|
|
67678
67636
|
};
|
|
67679
67637
|
}
|
|
67680
67638
|
function parseContactPropertyToApiOptions(contactProperty) {
|
|
67681
|
-
if ("key" in contactProperty)
|
|
67639
|
+
if ("key" in contactProperty)
|
|
67682
67640
|
return {
|
|
67683
67641
|
key: contactProperty.key,
|
|
67684
67642
|
type: contactProperty.type,
|
|
67685
67643
|
fallback_value: contactProperty.fallbackValue
|
|
67686
67644
|
};
|
|
67687
|
-
}
|
|
67688
|
-
return {
|
|
67689
|
-
fallback_value: contactProperty.fallbackValue
|
|
67690
|
-
};
|
|
67645
|
+
return { fallback_value: contactProperty.fallbackValue };
|
|
67691
67646
|
}
|
|
67692
67647
|
var ContactProperties = class {
|
|
67693
67648
|
constructor(resend) {
|
|
@@ -67695,26 +67650,25 @@ var ContactProperties = class {
|
|
|
67695
67650
|
}
|
|
67696
67651
|
async create(options) {
|
|
67697
67652
|
const apiOptions = parseContactPropertyToApiOptions(options);
|
|
67698
|
-
|
|
67699
|
-
return data;
|
|
67653
|
+
return await this.resend.post("/contact-properties", apiOptions);
|
|
67700
67654
|
}
|
|
67701
67655
|
async list(options = {}) {
|
|
67702
67656
|
const queryString = buildPaginationQuery(options);
|
|
67703
67657
|
const url2 = queryString ? `/contact-properties?${queryString}` : "/contact-properties";
|
|
67704
67658
|
const response = await this.resend.get(url2);
|
|
67705
|
-
if (response.data)
|
|
67659
|
+
if (response.data)
|
|
67706
67660
|
return {
|
|
67707
|
-
data:
|
|
67661
|
+
data: {
|
|
67662
|
+
...response.data,
|
|
67708
67663
|
data: response.data.data.map((apiContactProperty) => parseContactPropertyFromApi(apiContactProperty))
|
|
67709
|
-
}
|
|
67664
|
+
},
|
|
67710
67665
|
headers: response.headers,
|
|
67711
67666
|
error: null
|
|
67712
67667
|
};
|
|
67713
|
-
}
|
|
67714
67668
|
return response;
|
|
67715
67669
|
}
|
|
67716
67670
|
async get(id) {
|
|
67717
|
-
if (!id)
|
|
67671
|
+
if (!id)
|
|
67718
67672
|
return {
|
|
67719
67673
|
data: null,
|
|
67720
67674
|
headers: null,
|
|
@@ -67724,21 +67678,20 @@ var ContactProperties = class {
|
|
|
67724
67678
|
name: "missing_required_field"
|
|
67725
67679
|
}
|
|
67726
67680
|
};
|
|
67727
|
-
}
|
|
67728
67681
|
const response = await this.resend.get(`/contact-properties/${id}`);
|
|
67729
|
-
if (response.data)
|
|
67682
|
+
if (response.data)
|
|
67730
67683
|
return {
|
|
67731
|
-
data:
|
|
67732
|
-
object: "contact_property"
|
|
67733
|
-
|
|
67684
|
+
data: {
|
|
67685
|
+
object: "contact_property",
|
|
67686
|
+
...parseContactPropertyFromApi(response.data)
|
|
67687
|
+
},
|
|
67734
67688
|
headers: response.headers,
|
|
67735
67689
|
error: null
|
|
67736
67690
|
};
|
|
67737
|
-
}
|
|
67738
67691
|
return response;
|
|
67739
67692
|
}
|
|
67740
67693
|
async update(payload) {
|
|
67741
|
-
if (!payload.id)
|
|
67694
|
+
if (!payload.id)
|
|
67742
67695
|
return {
|
|
67743
67696
|
data: null,
|
|
67744
67697
|
headers: null,
|
|
@@ -67748,13 +67701,11 @@ var ContactProperties = class {
|
|
|
67748
67701
|
name: "missing_required_field"
|
|
67749
67702
|
}
|
|
67750
67703
|
};
|
|
67751
|
-
}
|
|
67752
67704
|
const apiOptions = parseContactPropertyToApiOptions(payload);
|
|
67753
|
-
|
|
67754
|
-
return data;
|
|
67705
|
+
return await this.resend.patch(`/contact-properties/${payload.id}`, apiOptions);
|
|
67755
67706
|
}
|
|
67756
67707
|
async remove(id) {
|
|
67757
|
-
if (!id)
|
|
67708
|
+
if (!id)
|
|
67758
67709
|
return {
|
|
67759
67710
|
data: null,
|
|
67760
67711
|
headers: null,
|
|
@@ -67764,9 +67715,7 @@ var ContactProperties = class {
|
|
|
67764
67715
|
name: "missing_required_field"
|
|
67765
67716
|
}
|
|
67766
67717
|
};
|
|
67767
|
-
}
|
|
67768
|
-
const data = await this.resend.delete(`/contact-properties/${id}`);
|
|
67769
|
-
return data;
|
|
67718
|
+
return await this.resend.delete(`/contact-properties/${id}`);
|
|
67770
67719
|
}
|
|
67771
67720
|
};
|
|
67772
67721
|
var ContactSegments = class {
|
|
@@ -67774,7 +67723,7 @@ var ContactSegments = class {
|
|
|
67774
67723
|
this.resend = resend;
|
|
67775
67724
|
}
|
|
67776
67725
|
async list(options) {
|
|
67777
|
-
if (!options.contactId && !options.email)
|
|
67726
|
+
if (!options.contactId && !options.email)
|
|
67778
67727
|
return {
|
|
67779
67728
|
data: null,
|
|
67780
67729
|
headers: null,
|
|
@@ -67784,15 +67733,13 @@ var ContactSegments = class {
|
|
|
67784
67733
|
name: "missing_required_field"
|
|
67785
67734
|
}
|
|
67786
67735
|
};
|
|
67787
|
-
}
|
|
67788
67736
|
const identifier = options.email ? options.email : options.contactId;
|
|
67789
67737
|
const queryString = buildPaginationQuery(options);
|
|
67790
67738
|
const url2 = queryString ? `/contacts/${identifier}/segments?${queryString}` : `/contacts/${identifier}/segments`;
|
|
67791
|
-
|
|
67792
|
-
return data;
|
|
67739
|
+
return await this.resend.get(url2);
|
|
67793
67740
|
}
|
|
67794
67741
|
async add(options) {
|
|
67795
|
-
if (!options.contactId && !options.email)
|
|
67742
|
+
if (!options.contactId && !options.email)
|
|
67796
67743
|
return {
|
|
67797
67744
|
data: null,
|
|
67798
67745
|
headers: null,
|
|
@@ -67802,12 +67749,11 @@ var ContactSegments = class {
|
|
|
67802
67749
|
name: "missing_required_field"
|
|
67803
67750
|
}
|
|
67804
67751
|
};
|
|
67805
|
-
}
|
|
67806
67752
|
const identifier = options.email ? options.email : options.contactId;
|
|
67807
67753
|
return this.resend.post(`/contacts/${identifier}/segments/${options.segmentId}`);
|
|
67808
67754
|
}
|
|
67809
67755
|
async remove(options) {
|
|
67810
|
-
if (!options.contactId && !options.email)
|
|
67756
|
+
if (!options.contactId && !options.email)
|
|
67811
67757
|
return {
|
|
67812
67758
|
data: null,
|
|
67813
67759
|
headers: null,
|
|
@@ -67817,7 +67763,6 @@ var ContactSegments = class {
|
|
|
67817
67763
|
name: "missing_required_field"
|
|
67818
67764
|
}
|
|
67819
67765
|
};
|
|
67820
|
-
}
|
|
67821
67766
|
const identifier = options.email ? options.email : options.contactId;
|
|
67822
67767
|
return this.resend.delete(`/contacts/${identifier}/segments/${options.segmentId}`);
|
|
67823
67768
|
}
|
|
@@ -67827,7 +67772,7 @@ var ContactTopics = class {
|
|
|
67827
67772
|
this.resend = resend;
|
|
67828
67773
|
}
|
|
67829
67774
|
async update(payload) {
|
|
67830
|
-
if (!payload.id && !payload.email)
|
|
67775
|
+
if (!payload.id && !payload.email)
|
|
67831
67776
|
return {
|
|
67832
67777
|
data: null,
|
|
67833
67778
|
headers: null,
|
|
@@ -67837,12 +67782,11 @@ var ContactTopics = class {
|
|
|
67837
67782
|
name: "missing_required_field"
|
|
67838
67783
|
}
|
|
67839
67784
|
};
|
|
67840
|
-
}
|
|
67841
67785
|
const identifier = payload.email ? payload.email : payload.id;
|
|
67842
67786
|
return this.resend.patch(`/contacts/${identifier}/topics`, payload.topics);
|
|
67843
67787
|
}
|
|
67844
67788
|
async list(options) {
|
|
67845
|
-
if (!options.id && !options.email)
|
|
67789
|
+
if (!options.id && !options.email)
|
|
67846
67790
|
return {
|
|
67847
67791
|
data: null,
|
|
67848
67792
|
headers: null,
|
|
@@ -67852,7 +67796,6 @@ var ContactTopics = class {
|
|
|
67852
67796
|
name: "missing_required_field"
|
|
67853
67797
|
}
|
|
67854
67798
|
};
|
|
67855
|
-
}
|
|
67856
67799
|
const identifier = options.email ? options.email : options.id;
|
|
67857
67800
|
const queryString = buildPaginationQuery(options);
|
|
67858
67801
|
const url2 = queryString ? `/contacts/${identifier}/topics?${queryString}` : `/contacts/${identifier}/topics`;
|
|
@@ -67866,44 +67809,37 @@ var Contacts = class {
|
|
|
67866
67809
|
this.segments = new ContactSegments(this.resend);
|
|
67867
67810
|
}
|
|
67868
67811
|
async create(payload, options = {}) {
|
|
67869
|
-
if (!payload.audienceId)
|
|
67870
|
-
|
|
67812
|
+
if (!payload.audienceId)
|
|
67813
|
+
return await this.resend.post("/contacts", {
|
|
67871
67814
|
unsubscribed: payload.unsubscribed,
|
|
67872
67815
|
email: payload.email,
|
|
67873
67816
|
first_name: payload.firstName,
|
|
67874
67817
|
last_name: payload.lastName,
|
|
67875
67818
|
properties: payload.properties
|
|
67876
67819
|
}, options);
|
|
67877
|
-
|
|
67878
|
-
}
|
|
67879
|
-
const data = await this.resend.post(`/audiences/${payload.audienceId}/contacts`, {
|
|
67820
|
+
return await this.resend.post(`/audiences/${payload.audienceId}/contacts`, {
|
|
67880
67821
|
unsubscribed: payload.unsubscribed,
|
|
67881
67822
|
email: payload.email,
|
|
67882
67823
|
first_name: payload.firstName,
|
|
67883
67824
|
last_name: payload.lastName,
|
|
67884
67825
|
properties: payload.properties
|
|
67885
67826
|
}, options);
|
|
67886
|
-
return data;
|
|
67887
67827
|
}
|
|
67888
67828
|
async list(options = {}) {
|
|
67889
|
-
|
|
67890
|
-
const segmentId = (_a3 = options.segmentId) != null ? _a3 : options.audienceId;
|
|
67829
|
+
const segmentId = options.segmentId ?? options.audienceId;
|
|
67891
67830
|
if (!segmentId) {
|
|
67892
|
-
const
|
|
67893
|
-
const
|
|
67894
|
-
|
|
67895
|
-
return data2;
|
|
67831
|
+
const queryString$1 = buildPaginationQuery(options);
|
|
67832
|
+
const url$1 = queryString$1 ? `/contacts?${queryString$1}` : "/contacts";
|
|
67833
|
+
return await this.resend.get(url$1);
|
|
67896
67834
|
}
|
|
67897
67835
|
const queryString = buildPaginationQuery(options);
|
|
67898
67836
|
const url2 = queryString ? `/segments/${segmentId}/contacts?${queryString}` : `/segments/${segmentId}/contacts`;
|
|
67899
|
-
|
|
67900
|
-
return data;
|
|
67837
|
+
return await this.resend.get(url2);
|
|
67901
67838
|
}
|
|
67902
67839
|
async get(options) {
|
|
67903
|
-
if (typeof options === "string")
|
|
67840
|
+
if (typeof options === "string")
|
|
67904
67841
|
return this.resend.get(`/contacts/${options}`);
|
|
67905
|
-
|
|
67906
|
-
if (!options.id && !options.email) {
|
|
67842
|
+
if (!options.id && !options.email)
|
|
67907
67843
|
return {
|
|
67908
67844
|
data: null,
|
|
67909
67845
|
headers: null,
|
|
@@ -67913,14 +67849,12 @@ var Contacts = class {
|
|
|
67913
67849
|
name: "missing_required_field"
|
|
67914
67850
|
}
|
|
67915
67851
|
};
|
|
67916
|
-
|
|
67917
|
-
|
|
67918
|
-
|
|
67919
|
-
}
|
|
67920
|
-
return this.resend.get(`/audiences/${options.audienceId}/contacts/${(options == null ? undefined : options.email) ? options == null ? undefined : options.email : options == null ? undefined : options.id}`);
|
|
67852
|
+
if (!options.audienceId)
|
|
67853
|
+
return this.resend.get(`/contacts/${options?.email ? options?.email : options?.id}`);
|
|
67854
|
+
return this.resend.get(`/audiences/${options.audienceId}/contacts/${options?.email ? options?.email : options?.id}`);
|
|
67921
67855
|
}
|
|
67922
67856
|
async update(options) {
|
|
67923
|
-
if (!options.id && !options.email)
|
|
67857
|
+
if (!options.id && !options.email)
|
|
67924
67858
|
return {
|
|
67925
67859
|
data: null,
|
|
67926
67860
|
headers: null,
|
|
@@ -67930,29 +67864,24 @@ var Contacts = class {
|
|
|
67930
67864
|
name: "missing_required_field"
|
|
67931
67865
|
}
|
|
67932
67866
|
};
|
|
67933
|
-
|
|
67934
|
-
|
|
67935
|
-
const data2 = await this.resend.patch(`/contacts/${(options == null ? undefined : options.email) ? options == null ? undefined : options.email : options == null ? undefined : options.id}`, {
|
|
67867
|
+
if (!options.audienceId)
|
|
67868
|
+
return await this.resend.patch(`/contacts/${options?.email ? options?.email : options?.id}`, {
|
|
67936
67869
|
unsubscribed: options.unsubscribed,
|
|
67937
67870
|
first_name: options.firstName,
|
|
67938
67871
|
last_name: options.lastName,
|
|
67939
67872
|
properties: options.properties
|
|
67940
67873
|
});
|
|
67941
|
-
|
|
67942
|
-
}
|
|
67943
|
-
const data = await this.resend.patch(`/audiences/${options.audienceId}/contacts/${(options == null ? undefined : options.email) ? options == null ? undefined : options.email : options == null ? undefined : options.id}`, {
|
|
67874
|
+
return await this.resend.patch(`/audiences/${options.audienceId}/contacts/${options?.email ? options?.email : options?.id}`, {
|
|
67944
67875
|
unsubscribed: options.unsubscribed,
|
|
67945
67876
|
first_name: options.firstName,
|
|
67946
67877
|
last_name: options.lastName,
|
|
67947
67878
|
properties: options.properties
|
|
67948
67879
|
});
|
|
67949
|
-
return data;
|
|
67950
67880
|
}
|
|
67951
67881
|
async remove(payload) {
|
|
67952
|
-
if (typeof payload === "string")
|
|
67882
|
+
if (typeof payload === "string")
|
|
67953
67883
|
return this.resend.delete(`/contacts/${payload}`);
|
|
67954
|
-
|
|
67955
|
-
if (!payload.id && !payload.email) {
|
|
67884
|
+
if (!payload.id && !payload.email)
|
|
67956
67885
|
return {
|
|
67957
67886
|
data: null,
|
|
67958
67887
|
headers: null,
|
|
@@ -67962,18 +67891,17 @@ var Contacts = class {
|
|
|
67962
67891
|
name: "missing_required_field"
|
|
67963
67892
|
}
|
|
67964
67893
|
};
|
|
67965
|
-
|
|
67966
|
-
|
|
67967
|
-
|
|
67968
|
-
}
|
|
67969
|
-
return this.resend.delete(`/audiences/${payload.audienceId}/contacts/${(payload == null ? undefined : payload.email) ? payload == null ? undefined : payload.email : payload == null ? undefined : payload.id}`);
|
|
67894
|
+
if (!payload.audienceId)
|
|
67895
|
+
return this.resend.delete(`/contacts/${payload?.email ? payload?.email : payload?.id}`);
|
|
67896
|
+
return this.resend.delete(`/audiences/${payload.audienceId}/contacts/${payload?.email ? payload?.email : payload?.id}`);
|
|
67970
67897
|
}
|
|
67971
67898
|
};
|
|
67972
67899
|
function parseDomainToApiOptions(domain3) {
|
|
67973
67900
|
return {
|
|
67974
67901
|
name: domain3.name,
|
|
67975
67902
|
region: domain3.region,
|
|
67976
|
-
custom_return_path: domain3.customReturnPath
|
|
67903
|
+
custom_return_path: domain3.customReturnPath,
|
|
67904
|
+
capabilities: domain3.capabilities
|
|
67977
67905
|
};
|
|
67978
67906
|
}
|
|
67979
67907
|
var Domains = class {
|
|
@@ -67981,34 +67909,29 @@ var Domains = class {
|
|
|
67981
67909
|
this.resend = resend;
|
|
67982
67910
|
}
|
|
67983
67911
|
async create(payload, options = {}) {
|
|
67984
|
-
|
|
67985
|
-
return data;
|
|
67912
|
+
return await this.resend.post("/domains", parseDomainToApiOptions(payload), options);
|
|
67986
67913
|
}
|
|
67987
67914
|
async list(options = {}) {
|
|
67988
67915
|
const queryString = buildPaginationQuery(options);
|
|
67989
67916
|
const url2 = queryString ? `/domains?${queryString}` : "/domains";
|
|
67990
|
-
|
|
67991
|
-
return data;
|
|
67917
|
+
return await this.resend.get(url2);
|
|
67992
67918
|
}
|
|
67993
67919
|
async get(id) {
|
|
67994
|
-
|
|
67995
|
-
return data;
|
|
67920
|
+
return await this.resend.get(`/domains/${id}`);
|
|
67996
67921
|
}
|
|
67997
67922
|
async update(payload) {
|
|
67998
|
-
|
|
67923
|
+
return await this.resend.patch(`/domains/${payload.id}`, {
|
|
67999
67924
|
click_tracking: payload.clickTracking,
|
|
68000
67925
|
open_tracking: payload.openTracking,
|
|
68001
|
-
tls: payload.tls
|
|
67926
|
+
tls: payload.tls,
|
|
67927
|
+
capabilities: payload.capabilities
|
|
68002
67928
|
});
|
|
68003
|
-
return data;
|
|
68004
67929
|
}
|
|
68005
67930
|
async remove(id) {
|
|
68006
|
-
|
|
68007
|
-
return data;
|
|
67931
|
+
return await this.resend.delete(`/domains/${id}`);
|
|
68008
67932
|
}
|
|
68009
67933
|
async verify(id) {
|
|
68010
|
-
|
|
68011
|
-
return data;
|
|
67934
|
+
return await this.resend.post(`/domains/${id}/verify`);
|
|
68012
67935
|
}
|
|
68013
67936
|
};
|
|
68014
67937
|
var Attachments = class {
|
|
@@ -68017,48 +67940,42 @@ var Attachments = class {
|
|
|
68017
67940
|
}
|
|
68018
67941
|
async get(options) {
|
|
68019
67942
|
const { emailId, id } = options;
|
|
68020
|
-
|
|
68021
|
-
return data;
|
|
67943
|
+
return await this.resend.get(`/emails/${emailId}/attachments/${id}`);
|
|
68022
67944
|
}
|
|
68023
67945
|
async list(options) {
|
|
68024
67946
|
const { emailId } = options;
|
|
68025
67947
|
const queryString = buildPaginationQuery(options);
|
|
68026
67948
|
const url2 = queryString ? `/emails/${emailId}/attachments?${queryString}` : `/emails/${emailId}/attachments`;
|
|
68027
|
-
|
|
68028
|
-
return data;
|
|
67949
|
+
return await this.resend.get(url2);
|
|
68029
67950
|
}
|
|
68030
67951
|
};
|
|
68031
|
-
var
|
|
67952
|
+
var Attachments$1 = class {
|
|
68032
67953
|
constructor(resend) {
|
|
68033
67954
|
this.resend = resend;
|
|
68034
67955
|
}
|
|
68035
67956
|
async get(options) {
|
|
68036
67957
|
const { emailId, id } = options;
|
|
68037
|
-
|
|
68038
|
-
return data;
|
|
67958
|
+
return await this.resend.get(`/emails/receiving/${emailId}/attachments/${id}`);
|
|
68039
67959
|
}
|
|
68040
67960
|
async list(options) {
|
|
68041
67961
|
const { emailId } = options;
|
|
68042
67962
|
const queryString = buildPaginationQuery(options);
|
|
68043
67963
|
const url2 = queryString ? `/emails/receiving/${emailId}/attachments?${queryString}` : `/emails/receiving/${emailId}/attachments`;
|
|
68044
|
-
|
|
68045
|
-
return data;
|
|
67964
|
+
return await this.resend.get(url2);
|
|
68046
67965
|
}
|
|
68047
67966
|
};
|
|
68048
67967
|
var Receiving = class {
|
|
68049
67968
|
constructor(resend) {
|
|
68050
67969
|
this.resend = resend;
|
|
68051
|
-
this.attachments = new
|
|
67970
|
+
this.attachments = new Attachments$1(resend);
|
|
68052
67971
|
}
|
|
68053
67972
|
async get(id) {
|
|
68054
|
-
|
|
68055
|
-
return data;
|
|
67973
|
+
return await this.resend.get(`/emails/receiving/${id}`);
|
|
68056
67974
|
}
|
|
68057
67975
|
async list(options = {}) {
|
|
68058
67976
|
const queryString = buildPaginationQuery(options);
|
|
68059
67977
|
const url2 = queryString ? `/emails/receiving?${queryString}` : "/emails/receiving";
|
|
68060
|
-
|
|
68061
|
-
return data;
|
|
67978
|
+
return await this.resend.get(url2);
|
|
68062
67979
|
}
|
|
68063
67980
|
};
|
|
68064
67981
|
var Emails = class {
|
|
@@ -68071,31 +67988,23 @@ var Emails = class {
|
|
|
68071
67988
|
return this.create(payload, options);
|
|
68072
67989
|
}
|
|
68073
67990
|
async create(payload, options = {}) {
|
|
68074
|
-
if (payload.react)
|
|
67991
|
+
if (payload.react)
|
|
68075
67992
|
payload.html = await render3(payload.react);
|
|
68076
|
-
|
|
68077
|
-
const data = await this.resend.post("/emails", parseEmailToApiOptions(payload), options);
|
|
68078
|
-
return data;
|
|
67993
|
+
return await this.resend.post("/emails", parseEmailToApiOptions(payload), options);
|
|
68079
67994
|
}
|
|
68080
67995
|
async get(id) {
|
|
68081
|
-
|
|
68082
|
-
return data;
|
|
67996
|
+
return await this.resend.get(`/emails/${id}`);
|
|
68083
67997
|
}
|
|
68084
67998
|
async list(options = {}) {
|
|
68085
67999
|
const queryString = buildPaginationQuery(options);
|
|
68086
68000
|
const url2 = queryString ? `/emails?${queryString}` : "/emails";
|
|
68087
|
-
|
|
68088
|
-
return data;
|
|
68001
|
+
return await this.resend.get(url2);
|
|
68089
68002
|
}
|
|
68090
68003
|
async update(payload) {
|
|
68091
|
-
|
|
68092
|
-
scheduled_at: payload.scheduledAt
|
|
68093
|
-
});
|
|
68094
|
-
return data;
|
|
68004
|
+
return await this.resend.patch(`/emails/${payload.id}`, { scheduled_at: payload.scheduledAt });
|
|
68095
68005
|
}
|
|
68096
68006
|
async cancel(id) {
|
|
68097
|
-
|
|
68098
|
-
return data;
|
|
68007
|
+
return await this.resend.post(`/emails/${id}/cancel`);
|
|
68099
68008
|
}
|
|
68100
68009
|
};
|
|
68101
68010
|
var Segments = class {
|
|
@@ -68103,22 +68012,18 @@ var Segments = class {
|
|
|
68103
68012
|
this.resend = resend;
|
|
68104
68013
|
}
|
|
68105
68014
|
async create(payload, options = {}) {
|
|
68106
|
-
|
|
68107
|
-
return data;
|
|
68015
|
+
return await this.resend.post("/segments", payload, options);
|
|
68108
68016
|
}
|
|
68109
68017
|
async list(options = {}) {
|
|
68110
68018
|
const queryString = buildPaginationQuery(options);
|
|
68111
68019
|
const url2 = queryString ? `/segments?${queryString}` : "/segments";
|
|
68112
|
-
|
|
68113
|
-
return data;
|
|
68020
|
+
return await this.resend.get(url2);
|
|
68114
68021
|
}
|
|
68115
68022
|
async get(id) {
|
|
68116
|
-
|
|
68117
|
-
return data;
|
|
68023
|
+
return await this.resend.get(`/segments/${id}`);
|
|
68118
68024
|
}
|
|
68119
68025
|
async remove(id) {
|
|
68120
|
-
|
|
68121
|
-
return data;
|
|
68026
|
+
return await this.resend.delete(`/segments/${id}`);
|
|
68122
68027
|
}
|
|
68123
68028
|
};
|
|
68124
68029
|
function getPaginationQueryProperties(options = {}) {
|
|
@@ -68132,7 +68037,7 @@ function getPaginationQueryProperties(options = {}) {
|
|
|
68132
68037
|
return query.size > 0 ? `?${query.toString()}` : "";
|
|
68133
68038
|
}
|
|
68134
68039
|
function parseVariables(variables) {
|
|
68135
|
-
return variables
|
|
68040
|
+
return variables?.map((variable) => ({
|
|
68136
68041
|
key: variable.key,
|
|
68137
68042
|
type: variable.type,
|
|
68138
68043
|
fallback_value: variable.fallbackValue
|
|
@@ -68160,13 +68065,12 @@ var ChainableTemplateResult = class {
|
|
|
68160
68065
|
}
|
|
68161
68066
|
async publish() {
|
|
68162
68067
|
const { data, error } = await this.promise;
|
|
68163
|
-
if (error)
|
|
68068
|
+
if (error)
|
|
68164
68069
|
return {
|
|
68165
68070
|
data: null,
|
|
68166
68071
|
headers: null,
|
|
68167
68072
|
error
|
|
68168
68073
|
};
|
|
68169
|
-
}
|
|
68170
68074
|
return this.publishFn(data.id);
|
|
68171
68075
|
}
|
|
68172
68076
|
};
|
|
@@ -68175,45 +68079,38 @@ var Templates = class {
|
|
|
68175
68079
|
this.resend = resend;
|
|
68176
68080
|
}
|
|
68177
68081
|
create(payload) {
|
|
68178
|
-
|
|
68179
|
-
return new ChainableTemplateResult(createPromise, this.publish.bind(this));
|
|
68082
|
+
return new ChainableTemplateResult(this.performCreate(payload), this.publish.bind(this));
|
|
68180
68083
|
}
|
|
68181
68084
|
async performCreate(payload) {
|
|
68182
68085
|
if (payload.react) {
|
|
68183
|
-
if (!this.renderAsync)
|
|
68086
|
+
if (!this.renderAsync)
|
|
68184
68087
|
try {
|
|
68185
68088
|
const { renderAsync } = await Promise.resolve().then(() => (init_node2(), exports_node));
|
|
68186
68089
|
this.renderAsync = renderAsync;
|
|
68187
|
-
} catch
|
|
68090
|
+
} catch {
|
|
68188
68091
|
throw new Error("Failed to render React component. Make sure to install `@react-email/render`");
|
|
68189
68092
|
}
|
|
68190
|
-
}
|
|
68191
68093
|
payload.html = await this.renderAsync(payload.react);
|
|
68192
68094
|
}
|
|
68193
68095
|
return this.resend.post("/templates", parseTemplateToApiOptions(payload));
|
|
68194
68096
|
}
|
|
68195
68097
|
async remove(identifier) {
|
|
68196
|
-
|
|
68197
|
-
return data;
|
|
68098
|
+
return await this.resend.delete(`/templates/${identifier}`);
|
|
68198
68099
|
}
|
|
68199
68100
|
async get(identifier) {
|
|
68200
|
-
|
|
68201
|
-
return data;
|
|
68101
|
+
return await this.resend.get(`/templates/${identifier}`);
|
|
68202
68102
|
}
|
|
68203
68103
|
async list(options = {}) {
|
|
68204
68104
|
return this.resend.get(`/templates${getPaginationQueryProperties(options)}`);
|
|
68205
68105
|
}
|
|
68206
68106
|
duplicate(identifier) {
|
|
68207
|
-
|
|
68208
|
-
return new ChainableTemplateResult(promiseDuplicate, this.publish.bind(this));
|
|
68107
|
+
return new ChainableTemplateResult(this.resend.post(`/templates/${identifier}/duplicate`), this.publish.bind(this));
|
|
68209
68108
|
}
|
|
68210
68109
|
async publish(identifier) {
|
|
68211
|
-
|
|
68212
|
-
return data;
|
|
68110
|
+
return await this.resend.post(`/templates/${identifier}/publish`);
|
|
68213
68111
|
}
|
|
68214
68112
|
async update(identifier, payload) {
|
|
68215
|
-
|
|
68216
|
-
return data;
|
|
68113
|
+
return await this.resend.patch(`/templates/${identifier}`, parseTemplateToApiOptions(payload));
|
|
68217
68114
|
}
|
|
68218
68115
|
};
|
|
68219
68116
|
var Topics = class {
|
|
@@ -68221,18 +68118,17 @@ var Topics = class {
|
|
|
68221
68118
|
this.resend = resend;
|
|
68222
68119
|
}
|
|
68223
68120
|
async create(payload) {
|
|
68224
|
-
const
|
|
68225
|
-
|
|
68121
|
+
const { defaultSubscription, ...body } = payload;
|
|
68122
|
+
return await this.resend.post("/topics", {
|
|
68123
|
+
...body,
|
|
68226
68124
|
default_subscription: defaultSubscription
|
|
68227
|
-
})
|
|
68228
|
-
return data;
|
|
68125
|
+
});
|
|
68229
68126
|
}
|
|
68230
68127
|
async list() {
|
|
68231
|
-
|
|
68232
|
-
return data;
|
|
68128
|
+
return await this.resend.get("/topics");
|
|
68233
68129
|
}
|
|
68234
68130
|
async get(id) {
|
|
68235
|
-
if (!id)
|
|
68131
|
+
if (!id)
|
|
68236
68132
|
return {
|
|
68237
68133
|
data: null,
|
|
68238
68134
|
headers: null,
|
|
@@ -68242,12 +68138,10 @@ var Topics = class {
|
|
|
68242
68138
|
name: "missing_required_field"
|
|
68243
68139
|
}
|
|
68244
68140
|
};
|
|
68245
|
-
}
|
|
68246
|
-
const data = await this.resend.get(`/topics/${id}`);
|
|
68247
|
-
return data;
|
|
68141
|
+
return await this.resend.get(`/topics/${id}`);
|
|
68248
68142
|
}
|
|
68249
68143
|
async update(payload) {
|
|
68250
|
-
if (!payload.id)
|
|
68144
|
+
if (!payload.id)
|
|
68251
68145
|
return {
|
|
68252
68146
|
data: null,
|
|
68253
68147
|
headers: null,
|
|
@@ -68257,12 +68151,10 @@ var Topics = class {
|
|
|
68257
68151
|
name: "missing_required_field"
|
|
68258
68152
|
}
|
|
68259
68153
|
};
|
|
68260
|
-
}
|
|
68261
|
-
const data = await this.resend.patch(`/topics/${payload.id}`, payload);
|
|
68262
|
-
return data;
|
|
68154
|
+
return await this.resend.patch(`/topics/${payload.id}`, payload);
|
|
68263
68155
|
}
|
|
68264
68156
|
async remove(id) {
|
|
68265
|
-
if (!id)
|
|
68157
|
+
if (!id)
|
|
68266
68158
|
return {
|
|
68267
68159
|
data: null,
|
|
68268
68160
|
headers: null,
|
|
@@ -68272,9 +68164,7 @@ var Topics = class {
|
|
|
68272
68164
|
name: "missing_required_field"
|
|
68273
68165
|
}
|
|
68274
68166
|
};
|
|
68275
|
-
}
|
|
68276
|
-
const data = await this.resend.delete(`/topics/${id}`);
|
|
68277
|
-
return data;
|
|
68167
|
+
return await this.resend.delete(`/topics/${id}`);
|
|
68278
68168
|
}
|
|
68279
68169
|
};
|
|
68280
68170
|
var Webhooks = class {
|
|
@@ -68282,30 +68172,24 @@ var Webhooks = class {
|
|
|
68282
68172
|
this.resend = resend;
|
|
68283
68173
|
}
|
|
68284
68174
|
async create(payload, options = {}) {
|
|
68285
|
-
|
|
68286
|
-
return data;
|
|
68175
|
+
return await this.resend.post("/webhooks", payload, options);
|
|
68287
68176
|
}
|
|
68288
68177
|
async get(id) {
|
|
68289
|
-
|
|
68290
|
-
return data;
|
|
68178
|
+
return await this.resend.get(`/webhooks/${id}`);
|
|
68291
68179
|
}
|
|
68292
68180
|
async list(options = {}) {
|
|
68293
68181
|
const queryString = buildPaginationQuery(options);
|
|
68294
68182
|
const url2 = queryString ? `/webhooks?${queryString}` : "/webhooks";
|
|
68295
|
-
|
|
68296
|
-
return data;
|
|
68183
|
+
return await this.resend.get(url2);
|
|
68297
68184
|
}
|
|
68298
68185
|
async update(id, payload) {
|
|
68299
|
-
|
|
68300
|
-
return data;
|
|
68186
|
+
return await this.resend.patch(`/webhooks/${id}`, payload);
|
|
68301
68187
|
}
|
|
68302
68188
|
async remove(id) {
|
|
68303
|
-
|
|
68304
|
-
return data;
|
|
68189
|
+
return await this.resend.delete(`/webhooks/${id}`);
|
|
68305
68190
|
}
|
|
68306
68191
|
verify(payload) {
|
|
68307
|
-
|
|
68308
|
-
return webhook.verify(payload.payload, {
|
|
68192
|
+
return new import_svix.Webhook(payload.webhookSecret).verify(payload.payload, {
|
|
68309
68193
|
"svix-id": payload.headers.id,
|
|
68310
68194
|
"svix-timestamp": payload.headers.timestamp,
|
|
68311
68195
|
"svix-signature": payload.headers.signature
|
|
@@ -68332,12 +68216,10 @@ var Resend = class {
|
|
|
68332
68216
|
this.templates = new Templates(this);
|
|
68333
68217
|
this.topics = new Topics(this);
|
|
68334
68218
|
if (!key) {
|
|
68335
|
-
if (typeof process !== "undefined" && process.env)
|
|
68219
|
+
if (typeof process !== "undefined" && process.env)
|
|
68336
68220
|
this.key = process.env.RESEND_API_KEY;
|
|
68337
|
-
|
|
68338
|
-
if (!this.key) {
|
|
68221
|
+
if (!this.key)
|
|
68339
68222
|
throw new Error('Missing API key. Pass it to the constructor `new Resend("re_123")`');
|
|
68340
|
-
}
|
|
68341
68223
|
}
|
|
68342
68224
|
this.headers = new Headers({
|
|
68343
68225
|
Authorization: `Bearer ${this.key}`,
|
|
@@ -68348,7 +68230,7 @@ var Resend = class {
|
|
|
68348
68230
|
async fetchRequest(path3, options = {}) {
|
|
68349
68231
|
try {
|
|
68350
68232
|
const response = await fetch(`${baseUrl}${path3}`, options);
|
|
68351
|
-
if (!response.ok)
|
|
68233
|
+
if (!response.ok)
|
|
68352
68234
|
try {
|
|
68353
68235
|
const rawError = await response.text();
|
|
68354
68236
|
return {
|
|
@@ -68357,7 +68239,7 @@ var Resend = class {
|
|
|
68357
68239
|
headers: Object.fromEntries(response.headers.entries())
|
|
68358
68240
|
};
|
|
68359
68241
|
} catch (err) {
|
|
68360
|
-
if (err instanceof SyntaxError)
|
|
68242
|
+
if (err instanceof SyntaxError)
|
|
68361
68243
|
return {
|
|
68362
68244
|
data: null,
|
|
68363
68245
|
error: {
|
|
@@ -68367,33 +68249,32 @@ var Resend = class {
|
|
|
68367
68249
|
},
|
|
68368
68250
|
headers: Object.fromEntries(response.headers.entries())
|
|
68369
68251
|
};
|
|
68370
|
-
}
|
|
68371
68252
|
const error = {
|
|
68372
68253
|
message: response.statusText,
|
|
68373
68254
|
statusCode: response.status,
|
|
68374
68255
|
name: "application_error"
|
|
68375
68256
|
};
|
|
68376
|
-
if (err instanceof Error)
|
|
68257
|
+
if (err instanceof Error)
|
|
68377
68258
|
return {
|
|
68378
68259
|
data: null,
|
|
68379
|
-
error:
|
|
68260
|
+
error: {
|
|
68261
|
+
...error,
|
|
68262
|
+
message: err.message
|
|
68263
|
+
},
|
|
68380
68264
|
headers: Object.fromEntries(response.headers.entries())
|
|
68381
68265
|
};
|
|
68382
|
-
}
|
|
68383
68266
|
return {
|
|
68384
68267
|
data: null,
|
|
68385
68268
|
error,
|
|
68386
68269
|
headers: Object.fromEntries(response.headers.entries())
|
|
68387
68270
|
};
|
|
68388
68271
|
}
|
|
68389
|
-
}
|
|
68390
|
-
const data = await response.json();
|
|
68391
68272
|
return {
|
|
68392
|
-
data,
|
|
68273
|
+
data: await response.json(),
|
|
68393
68274
|
error: null,
|
|
68394
68275
|
headers: Object.fromEntries(response.headers.entries())
|
|
68395
68276
|
};
|
|
68396
|
-
} catch
|
|
68277
|
+
} catch {
|
|
68397
68278
|
return {
|
|
68398
68279
|
data: null,
|
|
68399
68280
|
error: {
|
|
@@ -68407,64 +68288,55 @@ var Resend = class {
|
|
|
68407
68288
|
}
|
|
68408
68289
|
async post(path3, entity, options = {}) {
|
|
68409
68290
|
const headers = new Headers(this.headers);
|
|
68410
|
-
if (options.headers)
|
|
68411
|
-
for (const [key, value2] of new Headers(options.headers).entries())
|
|
68291
|
+
if (options.headers)
|
|
68292
|
+
for (const [key, value2] of new Headers(options.headers).entries())
|
|
68412
68293
|
headers.set(key, value2);
|
|
68413
|
-
|
|
68414
|
-
}
|
|
68415
|
-
if (options.idempotencyKey) {
|
|
68294
|
+
if (options.idempotencyKey)
|
|
68416
68295
|
headers.set("Idempotency-Key", options.idempotencyKey);
|
|
68417
|
-
|
|
68418
|
-
const requestOptions = __spreadProps(__spreadValues({
|
|
68296
|
+
const requestOptions = {
|
|
68419
68297
|
method: "POST",
|
|
68420
|
-
body: JSON.stringify(entity)
|
|
68421
|
-
|
|
68298
|
+
body: JSON.stringify(entity),
|
|
68299
|
+
...options,
|
|
68422
68300
|
headers
|
|
68423
|
-
}
|
|
68301
|
+
};
|
|
68424
68302
|
return this.fetchRequest(path3, requestOptions);
|
|
68425
68303
|
}
|
|
68426
68304
|
async get(path3, options = {}) {
|
|
68427
68305
|
const headers = new Headers(this.headers);
|
|
68428
|
-
if (options.headers)
|
|
68429
|
-
for (const [key, value2] of new Headers(options.headers).entries())
|
|
68306
|
+
if (options.headers)
|
|
68307
|
+
for (const [key, value2] of new Headers(options.headers).entries())
|
|
68430
68308
|
headers.set(key, value2);
|
|
68431
|
-
|
|
68432
|
-
|
|
68433
|
-
|
|
68434
|
-
method: "GET"
|
|
68435
|
-
}, options), {
|
|
68309
|
+
const requestOptions = {
|
|
68310
|
+
method: "GET",
|
|
68311
|
+
...options,
|
|
68436
68312
|
headers
|
|
68437
|
-
}
|
|
68313
|
+
};
|
|
68438
68314
|
return this.fetchRequest(path3, requestOptions);
|
|
68439
68315
|
}
|
|
68440
68316
|
async put(path3, entity, options = {}) {
|
|
68441
68317
|
const headers = new Headers(this.headers);
|
|
68442
|
-
if (options.headers)
|
|
68443
|
-
for (const [key, value2] of new Headers(options.headers).entries())
|
|
68318
|
+
if (options.headers)
|
|
68319
|
+
for (const [key, value2] of new Headers(options.headers).entries())
|
|
68444
68320
|
headers.set(key, value2);
|
|
68445
|
-
|
|
68446
|
-
}
|
|
68447
|
-
const requestOptions = __spreadProps(__spreadValues({
|
|
68321
|
+
const requestOptions = {
|
|
68448
68322
|
method: "PUT",
|
|
68449
|
-
body: JSON.stringify(entity)
|
|
68450
|
-
|
|
68323
|
+
body: JSON.stringify(entity),
|
|
68324
|
+
...options,
|
|
68451
68325
|
headers
|
|
68452
|
-
}
|
|
68326
|
+
};
|
|
68453
68327
|
return this.fetchRequest(path3, requestOptions);
|
|
68454
68328
|
}
|
|
68455
68329
|
async patch(path3, entity, options = {}) {
|
|
68456
68330
|
const headers = new Headers(this.headers);
|
|
68457
|
-
if (options.headers)
|
|
68458
|
-
for (const [key, value2] of new Headers(options.headers).entries())
|
|
68331
|
+
if (options.headers)
|
|
68332
|
+
for (const [key, value2] of new Headers(options.headers).entries())
|
|
68459
68333
|
headers.set(key, value2);
|
|
68460
|
-
|
|
68461
|
-
}
|
|
68462
|
-
const requestOptions = __spreadProps(__spreadValues({
|
|
68334
|
+
const requestOptions = {
|
|
68463
68335
|
method: "PATCH",
|
|
68464
|
-
body: JSON.stringify(entity)
|
|
68465
|
-
|
|
68336
|
+
body: JSON.stringify(entity),
|
|
68337
|
+
...options,
|
|
68466
68338
|
headers
|
|
68467
|
-
}
|
|
68339
|
+
};
|
|
68468
68340
|
return this.fetchRequest(path3, requestOptions);
|
|
68469
68341
|
}
|
|
68470
68342
|
async delete(path3, query) {
|
|
@@ -83197,6 +83069,57 @@ CodeBlock.displayName = "CodeBlock";
|
|
|
83197
83069
|
// ../../node_modules/.pnpm/@react-email+container@0.0.15_react@19.2.0/node_modules/@react-email/container/dist/index.mjs
|
|
83198
83070
|
import * as React2 from "react";
|
|
83199
83071
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
83072
|
+
var __defProp3 = Object.defineProperty;
|
|
83073
|
+
var __defProps = Object.defineProperties;
|
|
83074
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
83075
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
83076
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
83077
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
83078
|
+
var __defNormalProp = (obj, key, value2) => (key in obj) ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key] = value2;
|
|
83079
|
+
var __spreadValues = (a2, b5) => {
|
|
83080
|
+
for (var prop2 in b5 || (b5 = {}))
|
|
83081
|
+
if (__hasOwnProp3.call(b5, prop2))
|
|
83082
|
+
__defNormalProp(a2, prop2, b5[prop2]);
|
|
83083
|
+
if (__getOwnPropSymbols)
|
|
83084
|
+
for (var prop2 of __getOwnPropSymbols(b5)) {
|
|
83085
|
+
if (__propIsEnum.call(b5, prop2))
|
|
83086
|
+
__defNormalProp(a2, prop2, b5[prop2]);
|
|
83087
|
+
}
|
|
83088
|
+
return a2;
|
|
83089
|
+
};
|
|
83090
|
+
var __spreadProps = (a2, b5) => __defProps(a2, __getOwnPropDescs(b5));
|
|
83091
|
+
var __objRest = (source, exclude) => {
|
|
83092
|
+
var target = {};
|
|
83093
|
+
for (var prop2 in source)
|
|
83094
|
+
if (__hasOwnProp3.call(source, prop2) && exclude.indexOf(prop2) < 0)
|
|
83095
|
+
target[prop2] = source[prop2];
|
|
83096
|
+
if (source != null && __getOwnPropSymbols)
|
|
83097
|
+
for (var prop2 of __getOwnPropSymbols(source)) {
|
|
83098
|
+
if (exclude.indexOf(prop2) < 0 && __propIsEnum.call(source, prop2))
|
|
83099
|
+
target[prop2] = source[prop2];
|
|
83100
|
+
}
|
|
83101
|
+
return target;
|
|
83102
|
+
};
|
|
83103
|
+
var Container = React2.forwardRef((_a3, ref) => {
|
|
83104
|
+
var _b = _a3, { children, style } = _b, props = __objRest(_b, ["children", "style"]);
|
|
83105
|
+
return /* @__PURE__ */ jsx4("table", __spreadProps(__spreadValues({
|
|
83106
|
+
align: "center",
|
|
83107
|
+
width: "100%"
|
|
83108
|
+
}, props), {
|
|
83109
|
+
border: 0,
|
|
83110
|
+
cellPadding: "0",
|
|
83111
|
+
cellSpacing: "0",
|
|
83112
|
+
ref,
|
|
83113
|
+
role: "presentation",
|
|
83114
|
+
style: __spreadValues({ maxWidth: "37.5em" }, style),
|
|
83115
|
+
children: /* @__PURE__ */ jsx4("tbody", { children: /* @__PURE__ */ jsx4("tr", { style: { width: "100%" }, children: /* @__PURE__ */ jsx4("td", { children }) }) })
|
|
83116
|
+
}));
|
|
83117
|
+
});
|
|
83118
|
+
Container.displayName = "Container";
|
|
83119
|
+
|
|
83120
|
+
// ../../node_modules/.pnpm/@react-email+head@0.0.12_react@19.2.0/node_modules/@react-email/head/dist/index.mjs
|
|
83121
|
+
import * as React3 from "react";
|
|
83122
|
+
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
83200
83123
|
var __defProp4 = Object.defineProperty;
|
|
83201
83124
|
var __defProps2 = Object.defineProperties;
|
|
83202
83125
|
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
|
@@ -83228,26 +83151,19 @@ var __objRest2 = (source, exclude) => {
|
|
|
83228
83151
|
}
|
|
83229
83152
|
return target;
|
|
83230
83153
|
};
|
|
83231
|
-
var
|
|
83232
|
-
var _b = _a3, { children
|
|
83233
|
-
return /* @__PURE__ */
|
|
83234
|
-
|
|
83235
|
-
|
|
83236
|
-
|
|
83237
|
-
|
|
83238
|
-
cellPadding: "0",
|
|
83239
|
-
cellSpacing: "0",
|
|
83240
|
-
ref,
|
|
83241
|
-
role: "presentation",
|
|
83242
|
-
style: __spreadValues2({ maxWidth: "37.5em" }, style),
|
|
83243
|
-
children: /* @__PURE__ */ jsx4("tbody", { children: /* @__PURE__ */ jsx4("tr", { style: { width: "100%" }, children: /* @__PURE__ */ jsx4("td", { children }) }) })
|
|
83244
|
-
}));
|
|
83154
|
+
var Head = React3.forwardRef((_a3, ref) => {
|
|
83155
|
+
var _b = _a3, { children } = _b, props = __objRest2(_b, ["children"]);
|
|
83156
|
+
return /* @__PURE__ */ jsxs2("head", __spreadProps2(__spreadValues2({}, props), { ref, children: [
|
|
83157
|
+
/* @__PURE__ */ jsx5("meta", { content: "text/html; charset=UTF-8", httpEquiv: "Content-Type" }),
|
|
83158
|
+
/* @__PURE__ */ jsx5("meta", { name: "x-apple-disable-message-reformatting" }),
|
|
83159
|
+
children
|
|
83160
|
+
] }));
|
|
83245
83161
|
});
|
|
83246
|
-
|
|
83162
|
+
Head.displayName = "Head";
|
|
83247
83163
|
|
|
83248
|
-
// ../../node_modules/.pnpm/@react-email+
|
|
83249
|
-
import * as
|
|
83250
|
-
import { jsx as
|
|
83164
|
+
// ../../node_modules/.pnpm/@react-email+heading@0.0.15_react@19.2.0/node_modules/@react-email/heading/dist/index.mjs
|
|
83165
|
+
import * as React4 from "react";
|
|
83166
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
83251
83167
|
var __defProp5 = Object.defineProperty;
|
|
83252
83168
|
var __defProps3 = Object.defineProperties;
|
|
83253
83169
|
var __getOwnPropDescs3 = Object.getOwnPropertyDescriptors;
|
|
@@ -83279,19 +83195,42 @@ var __objRest3 = (source, exclude) => {
|
|
|
83279
83195
|
}
|
|
83280
83196
|
return target;
|
|
83281
83197
|
};
|
|
83282
|
-
var
|
|
83283
|
-
|
|
83284
|
-
|
|
83285
|
-
|
|
83286
|
-
|
|
83198
|
+
var withMargin = (props) => {
|
|
83199
|
+
const nonEmptyStyles = [
|
|
83200
|
+
withSpace(props.m, ["margin"]),
|
|
83201
|
+
withSpace(props.mx, ["marginLeft", "marginRight"]),
|
|
83202
|
+
withSpace(props.my, ["marginTop", "marginBottom"]),
|
|
83203
|
+
withSpace(props.mt, ["marginTop"]),
|
|
83204
|
+
withSpace(props.mr, ["marginRight"]),
|
|
83205
|
+
withSpace(props.mb, ["marginBottom"]),
|
|
83206
|
+
withSpace(props.ml, ["marginLeft"])
|
|
83207
|
+
].filter((s3) => Object.keys(s3).length);
|
|
83208
|
+
const mergedStyles = nonEmptyStyles.reduce((acc, style) => {
|
|
83209
|
+
return __spreadValues3(__spreadValues3({}, acc), style);
|
|
83210
|
+
}, {});
|
|
83211
|
+
return mergedStyles;
|
|
83212
|
+
};
|
|
83213
|
+
var withSpace = (value2, properties) => {
|
|
83214
|
+
return properties.reduce((styles, property) => {
|
|
83215
|
+
if (!isNaN(parseFloat(value2))) {
|
|
83216
|
+
return __spreadProps3(__spreadValues3({}, styles), { [property]: `${value2}px` });
|
|
83217
|
+
}
|
|
83218
|
+
return styles;
|
|
83219
|
+
}, {});
|
|
83220
|
+
};
|
|
83221
|
+
var Heading = React4.forwardRef((_a3, ref) => {
|
|
83222
|
+
var _b = _a3, { as: Tag2 = "h1", children, style, m: m2, mx, my, mt: mt4, mr: mr4, mb, ml } = _b, props = __objRest3(_b, ["as", "children", "style", "m", "mx", "my", "mt", "mr", "mb", "ml"]);
|
|
83223
|
+
return /* @__PURE__ */ jsx6(Tag2, __spreadProps3(__spreadValues3({}, props), {
|
|
83224
|
+
ref,
|
|
83225
|
+
style: __spreadValues3(__spreadValues3({}, withMargin({ m: m2, mx, my, mt: mt4, mr: mr4, mb, ml })), style),
|
|
83287
83226
|
children
|
|
83288
|
-
|
|
83227
|
+
}));
|
|
83289
83228
|
});
|
|
83290
|
-
|
|
83229
|
+
Heading.displayName = "Heading";
|
|
83291
83230
|
|
|
83292
|
-
// ../../node_modules/.pnpm/@react-email+
|
|
83293
|
-
import * as
|
|
83294
|
-
import { jsx as
|
|
83231
|
+
// ../../node_modules/.pnpm/@react-email+html@0.0.11_react@19.2.0/node_modules/@react-email/html/dist/index.mjs
|
|
83232
|
+
import * as React5 from "react";
|
|
83233
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
83295
83234
|
var __defProp6 = Object.defineProperty;
|
|
83296
83235
|
var __defProps4 = Object.defineProperties;
|
|
83297
83236
|
var __getOwnPropDescs4 = Object.getOwnPropertyDescriptors;
|
|
@@ -83323,42 +83262,15 @@ var __objRest4 = (source, exclude) => {
|
|
|
83323
83262
|
}
|
|
83324
83263
|
return target;
|
|
83325
83264
|
};
|
|
83326
|
-
var
|
|
83327
|
-
|
|
83328
|
-
|
|
83329
|
-
withSpace(props.mx, ["marginLeft", "marginRight"]),
|
|
83330
|
-
withSpace(props.my, ["marginTop", "marginBottom"]),
|
|
83331
|
-
withSpace(props.mt, ["marginTop"]),
|
|
83332
|
-
withSpace(props.mr, ["marginRight"]),
|
|
83333
|
-
withSpace(props.mb, ["marginBottom"]),
|
|
83334
|
-
withSpace(props.ml, ["marginLeft"])
|
|
83335
|
-
].filter((s3) => Object.keys(s3).length);
|
|
83336
|
-
const mergedStyles = nonEmptyStyles.reduce((acc, style) => {
|
|
83337
|
-
return __spreadValues4(__spreadValues4({}, acc), style);
|
|
83338
|
-
}, {});
|
|
83339
|
-
return mergedStyles;
|
|
83340
|
-
};
|
|
83341
|
-
var withSpace = (value2, properties) => {
|
|
83342
|
-
return properties.reduce((styles, property) => {
|
|
83343
|
-
if (!isNaN(parseFloat(value2))) {
|
|
83344
|
-
return __spreadProps4(__spreadValues4({}, styles), { [property]: `${value2}px` });
|
|
83345
|
-
}
|
|
83346
|
-
return styles;
|
|
83347
|
-
}, {});
|
|
83348
|
-
};
|
|
83349
|
-
var Heading = React4.forwardRef((_a3, ref) => {
|
|
83350
|
-
var _b = _a3, { as: Tag2 = "h1", children, style, m: m2, mx, my, mt: mt4, mr: mr4, mb, ml } = _b, props = __objRest4(_b, ["as", "children", "style", "m", "mx", "my", "mt", "mr", "mb", "ml"]);
|
|
83351
|
-
return /* @__PURE__ */ jsx6(Tag2, __spreadProps4(__spreadValues4({}, props), {
|
|
83352
|
-
ref,
|
|
83353
|
-
style: __spreadValues4(__spreadValues4({}, withMargin({ m: m2, mx, my, mt: mt4, mr: mr4, mb, ml })), style),
|
|
83354
|
-
children
|
|
83355
|
-
}));
|
|
83265
|
+
var Html = React5.forwardRef((_a3, ref) => {
|
|
83266
|
+
var _b = _a3, { children, lang = "en", dir = "ltr" } = _b, props = __objRest4(_b, ["children", "lang", "dir"]);
|
|
83267
|
+
return /* @__PURE__ */ jsx7("html", __spreadProps4(__spreadValues4({}, props), { dir, lang, ref, children }));
|
|
83356
83268
|
});
|
|
83357
|
-
|
|
83269
|
+
Html.displayName = "Html";
|
|
83358
83270
|
|
|
83359
|
-
// ../../node_modules/.pnpm/@react-email+
|
|
83360
|
-
import * as
|
|
83361
|
-
import { jsx as
|
|
83271
|
+
// ../../node_modules/.pnpm/@react-email+preview@0.0.13_react@19.2.0/node_modules/@react-email/preview/dist/index.mjs
|
|
83272
|
+
import * as React6 from "react";
|
|
83273
|
+
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
83362
83274
|
var __defProp7 = Object.defineProperty;
|
|
83363
83275
|
var __defProps5 = Object.defineProperties;
|
|
83364
83276
|
var __getOwnPropDescs5 = Object.getOwnPropertyDescriptors;
|
|
@@ -83390,51 +83302,11 @@ var __objRest5 = (source, exclude) => {
|
|
|
83390
83302
|
}
|
|
83391
83303
|
return target;
|
|
83392
83304
|
};
|
|
83393
|
-
var Html = React5.forwardRef((_a3, ref) => {
|
|
83394
|
-
var _b = _a3, { children, lang = "en", dir = "ltr" } = _b, props = __objRest5(_b, ["children", "lang", "dir"]);
|
|
83395
|
-
return /* @__PURE__ */ jsx7("html", __spreadProps5(__spreadValues5({}, props), { dir, lang, ref, children }));
|
|
83396
|
-
});
|
|
83397
|
-
Html.displayName = "Html";
|
|
83398
|
-
|
|
83399
|
-
// ../../node_modules/.pnpm/@react-email+preview@0.0.13_react@19.2.0/node_modules/@react-email/preview/dist/index.mjs
|
|
83400
|
-
import * as React6 from "react";
|
|
83401
|
-
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
83402
|
-
var __defProp8 = Object.defineProperty;
|
|
83403
|
-
var __defProps6 = Object.defineProperties;
|
|
83404
|
-
var __getOwnPropDescs6 = Object.getOwnPropertyDescriptors;
|
|
83405
|
-
var __getOwnPropSymbols6 = Object.getOwnPropertySymbols;
|
|
83406
|
-
var __hasOwnProp8 = Object.prototype.hasOwnProperty;
|
|
83407
|
-
var __propIsEnum6 = Object.prototype.propertyIsEnumerable;
|
|
83408
|
-
var __defNormalProp6 = (obj, key, value2) => (key in obj) ? __defProp8(obj, key, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key] = value2;
|
|
83409
|
-
var __spreadValues6 = (a2, b5) => {
|
|
83410
|
-
for (var prop2 in b5 || (b5 = {}))
|
|
83411
|
-
if (__hasOwnProp8.call(b5, prop2))
|
|
83412
|
-
__defNormalProp6(a2, prop2, b5[prop2]);
|
|
83413
|
-
if (__getOwnPropSymbols6)
|
|
83414
|
-
for (var prop2 of __getOwnPropSymbols6(b5)) {
|
|
83415
|
-
if (__propIsEnum6.call(b5, prop2))
|
|
83416
|
-
__defNormalProp6(a2, prop2, b5[prop2]);
|
|
83417
|
-
}
|
|
83418
|
-
return a2;
|
|
83419
|
-
};
|
|
83420
|
-
var __spreadProps6 = (a2, b5) => __defProps6(a2, __getOwnPropDescs6(b5));
|
|
83421
|
-
var __objRest6 = (source, exclude) => {
|
|
83422
|
-
var target = {};
|
|
83423
|
-
for (var prop2 in source)
|
|
83424
|
-
if (__hasOwnProp8.call(source, prop2) && exclude.indexOf(prop2) < 0)
|
|
83425
|
-
target[prop2] = source[prop2];
|
|
83426
|
-
if (source != null && __getOwnPropSymbols6)
|
|
83427
|
-
for (var prop2 of __getOwnPropSymbols6(source)) {
|
|
83428
|
-
if (exclude.indexOf(prop2) < 0 && __propIsEnum6.call(source, prop2))
|
|
83429
|
-
target[prop2] = source[prop2];
|
|
83430
|
-
}
|
|
83431
|
-
return target;
|
|
83432
|
-
};
|
|
83433
83305
|
var PREVIEW_MAX_LENGTH = 150;
|
|
83434
83306
|
var Preview = React6.forwardRef((_a3, ref) => {
|
|
83435
|
-
var _b = _a3, { children = "" } = _b, props =
|
|
83307
|
+
var _b = _a3, { children = "" } = _b, props = __objRest5(_b, ["children"]);
|
|
83436
83308
|
const text2 = (Array.isArray(children) ? children.join("") : children).substring(0, PREVIEW_MAX_LENGTH);
|
|
83437
|
-
return /* @__PURE__ */ jsxs3("div",
|
|
83309
|
+
return /* @__PURE__ */ jsxs3("div", __spreadProps5(__spreadValues5({
|
|
83438
83310
|
style: {
|
|
83439
83311
|
display: "none",
|
|
83440
83312
|
overflow: "hidden",
|
|
@@ -83464,40 +83336,40 @@ var renderWhiteSpace = (text2) => {
|
|
|
83464
83336
|
// ../../node_modules/.pnpm/@react-email+section@0.0.16_react@19.2.0/node_modules/@react-email/section/dist/index.mjs
|
|
83465
83337
|
import * as React7 from "react";
|
|
83466
83338
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
83467
|
-
var
|
|
83468
|
-
var
|
|
83469
|
-
var
|
|
83470
|
-
var
|
|
83471
|
-
var
|
|
83472
|
-
var
|
|
83473
|
-
var
|
|
83474
|
-
var
|
|
83339
|
+
var __defProp8 = Object.defineProperty;
|
|
83340
|
+
var __defProps6 = Object.defineProperties;
|
|
83341
|
+
var __getOwnPropDescs6 = Object.getOwnPropertyDescriptors;
|
|
83342
|
+
var __getOwnPropSymbols6 = Object.getOwnPropertySymbols;
|
|
83343
|
+
var __hasOwnProp8 = Object.prototype.hasOwnProperty;
|
|
83344
|
+
var __propIsEnum6 = Object.prototype.propertyIsEnumerable;
|
|
83345
|
+
var __defNormalProp6 = (obj, key, value2) => (key in obj) ? __defProp8(obj, key, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key] = value2;
|
|
83346
|
+
var __spreadValues6 = (a2, b5) => {
|
|
83475
83347
|
for (var prop2 in b5 || (b5 = {}))
|
|
83476
|
-
if (
|
|
83477
|
-
|
|
83478
|
-
if (
|
|
83479
|
-
for (var prop2 of
|
|
83480
|
-
if (
|
|
83481
|
-
|
|
83348
|
+
if (__hasOwnProp8.call(b5, prop2))
|
|
83349
|
+
__defNormalProp6(a2, prop2, b5[prop2]);
|
|
83350
|
+
if (__getOwnPropSymbols6)
|
|
83351
|
+
for (var prop2 of __getOwnPropSymbols6(b5)) {
|
|
83352
|
+
if (__propIsEnum6.call(b5, prop2))
|
|
83353
|
+
__defNormalProp6(a2, prop2, b5[prop2]);
|
|
83482
83354
|
}
|
|
83483
83355
|
return a2;
|
|
83484
83356
|
};
|
|
83485
|
-
var
|
|
83486
|
-
var
|
|
83357
|
+
var __spreadProps6 = (a2, b5) => __defProps6(a2, __getOwnPropDescs6(b5));
|
|
83358
|
+
var __objRest6 = (source, exclude) => {
|
|
83487
83359
|
var target = {};
|
|
83488
83360
|
for (var prop2 in source)
|
|
83489
|
-
if (
|
|
83361
|
+
if (__hasOwnProp8.call(source, prop2) && exclude.indexOf(prop2) < 0)
|
|
83490
83362
|
target[prop2] = source[prop2];
|
|
83491
|
-
if (source != null &&
|
|
83492
|
-
for (var prop2 of
|
|
83493
|
-
if (exclude.indexOf(prop2) < 0 &&
|
|
83363
|
+
if (source != null && __getOwnPropSymbols6)
|
|
83364
|
+
for (var prop2 of __getOwnPropSymbols6(source)) {
|
|
83365
|
+
if (exclude.indexOf(prop2) < 0 && __propIsEnum6.call(source, prop2))
|
|
83494
83366
|
target[prop2] = source[prop2];
|
|
83495
83367
|
}
|
|
83496
83368
|
return target;
|
|
83497
83369
|
};
|
|
83498
83370
|
var Section = React7.forwardRef((_a3, ref) => {
|
|
83499
|
-
var _b = _a3, { children, style } = _b, props =
|
|
83500
|
-
return /* @__PURE__ */ jsx9("table",
|
|
83371
|
+
var _b = _a3, { children, style } = _b, props = __objRest6(_b, ["children", "style"]);
|
|
83372
|
+
return /* @__PURE__ */ jsx9("table", __spreadProps6(__spreadValues6({
|
|
83501
83373
|
align: "center",
|
|
83502
83374
|
width: "100%",
|
|
83503
83375
|
border: 0,
|
|
@@ -83515,33 +83387,33 @@ Section.displayName = "Section";
|
|
|
83515
83387
|
// ../../node_modules/.pnpm/@react-email+text@0.1.5_react@19.2.0/node_modules/@react-email/text/dist/index.mjs
|
|
83516
83388
|
import * as React8 from "react";
|
|
83517
83389
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
83518
|
-
var
|
|
83519
|
-
var
|
|
83520
|
-
var
|
|
83521
|
-
var
|
|
83522
|
-
var
|
|
83523
|
-
var
|
|
83524
|
-
var
|
|
83525
|
-
var
|
|
83390
|
+
var __defProp9 = Object.defineProperty;
|
|
83391
|
+
var __defProps7 = Object.defineProperties;
|
|
83392
|
+
var __getOwnPropDescs7 = Object.getOwnPropertyDescriptors;
|
|
83393
|
+
var __getOwnPropSymbols7 = Object.getOwnPropertySymbols;
|
|
83394
|
+
var __hasOwnProp9 = Object.prototype.hasOwnProperty;
|
|
83395
|
+
var __propIsEnum7 = Object.prototype.propertyIsEnumerable;
|
|
83396
|
+
var __defNormalProp7 = (obj, key, value2) => (key in obj) ? __defProp9(obj, key, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key] = value2;
|
|
83397
|
+
var __spreadValues7 = (a2, b5) => {
|
|
83526
83398
|
for (var prop2 in b5 || (b5 = {}))
|
|
83527
|
-
if (
|
|
83528
|
-
|
|
83529
|
-
if (
|
|
83530
|
-
for (var prop2 of
|
|
83531
|
-
if (
|
|
83532
|
-
|
|
83399
|
+
if (__hasOwnProp9.call(b5, prop2))
|
|
83400
|
+
__defNormalProp7(a2, prop2, b5[prop2]);
|
|
83401
|
+
if (__getOwnPropSymbols7)
|
|
83402
|
+
for (var prop2 of __getOwnPropSymbols7(b5)) {
|
|
83403
|
+
if (__propIsEnum7.call(b5, prop2))
|
|
83404
|
+
__defNormalProp7(a2, prop2, b5[prop2]);
|
|
83533
83405
|
}
|
|
83534
83406
|
return a2;
|
|
83535
83407
|
};
|
|
83536
|
-
var
|
|
83537
|
-
var
|
|
83408
|
+
var __spreadProps7 = (a2, b5) => __defProps7(a2, __getOwnPropDescs7(b5));
|
|
83409
|
+
var __objRest7 = (source, exclude) => {
|
|
83538
83410
|
var target = {};
|
|
83539
83411
|
for (var prop2 in source)
|
|
83540
|
-
if (
|
|
83412
|
+
if (__hasOwnProp9.call(source, prop2) && exclude.indexOf(prop2) < 0)
|
|
83541
83413
|
target[prop2] = source[prop2];
|
|
83542
|
-
if (source != null &&
|
|
83543
|
-
for (var prop2 of
|
|
83544
|
-
if (exclude.indexOf(prop2) < 0 &&
|
|
83414
|
+
if (source != null && __getOwnPropSymbols7)
|
|
83415
|
+
for (var prop2 of __getOwnPropSymbols7(source)) {
|
|
83416
|
+
if (exclude.indexOf(prop2) < 0 && __propIsEnum7.call(source, prop2))
|
|
83545
83417
|
target[prop2] = source[prop2];
|
|
83546
83418
|
}
|
|
83547
83419
|
return target;
|
|
@@ -83619,7 +83491,7 @@ function computeMargins(properties) {
|
|
|
83619
83491
|
return result;
|
|
83620
83492
|
}
|
|
83621
83493
|
var Text3 = React8.forwardRef((_a3, ref) => {
|
|
83622
|
-
var _b = _a3, { style } = _b, props =
|
|
83494
|
+
var _b = _a3, { style } = _b, props = __objRest7(_b, ["style"]);
|
|
83623
83495
|
const defaultMargins = {};
|
|
83624
83496
|
if ((style == null ? undefined : style.marginTop) === undefined) {
|
|
83625
83497
|
defaultMargins.marginTop = "16px";
|
|
@@ -83627,10 +83499,10 @@ var Text3 = React8.forwardRef((_a3, ref) => {
|
|
|
83627
83499
|
if ((style == null ? undefined : style.marginBottom) === undefined) {
|
|
83628
83500
|
defaultMargins.marginBottom = "16px";
|
|
83629
83501
|
}
|
|
83630
|
-
const margins = computeMargins(
|
|
83631
|
-
return /* @__PURE__ */ jsx10("p",
|
|
83502
|
+
const margins = computeMargins(__spreadValues7(__spreadValues7({}, defaultMargins), style));
|
|
83503
|
+
return /* @__PURE__ */ jsx10("p", __spreadProps7(__spreadValues7({}, props), {
|
|
83632
83504
|
ref,
|
|
83633
|
-
style:
|
|
83505
|
+
style: __spreadValues7(__spreadValues7({
|
|
83634
83506
|
fontSize: "14px",
|
|
83635
83507
|
lineHeight: "24px"
|
|
83636
83508
|
}, style), margins)
|
|
@@ -84563,9 +84435,9 @@ var sessionMiddleware = async (socket, next2) => {
|
|
|
84563
84435
|
if (userSessions?.has(user.id, sessionKey)) {
|
|
84564
84436
|
const socketState = findInStore(IMPLICIT.STORE, socketAtoms, socketKey);
|
|
84565
84437
|
setIntoStore(IMPLICIT.STORE, socketState, socket);
|
|
84566
|
-
editRelationsInStore(usersOfSockets, (relations) => {
|
|
84438
|
+
editRelationsInStore(IMPLICIT.STORE, usersOfSockets, (relations) => {
|
|
84567
84439
|
relations.set(userKey, socketKey);
|
|
84568
|
-
}
|
|
84440
|
+
});
|
|
84569
84441
|
setIntoStore(IMPLICIT.STORE, userKeysAtom, (index) => index.add(userKey));
|
|
84570
84442
|
setIntoStore(IMPLICIT.STORE, socketKeysAtom, (index) => index.add(socketKey));
|
|
84571
84443
|
logger.info(`${username} connected on ${socket.id}`);
|
|
@@ -84577,7 +84449,7 @@ var sessionMiddleware = async (socket, next2) => {
|
|
|
84577
84449
|
};
|
|
84578
84450
|
var serveSocket = (socket) => {
|
|
84579
84451
|
const socketKey = `socket::${socket.id}`;
|
|
84580
|
-
const userOfSocketSelector = findRelationsInStore(usersOfSockets, socketKey
|
|
84452
|
+
const userOfSocketSelector = findRelationsInStore(IMPLICIT.STORE, usersOfSockets, socketKey).userKeyOfSocket;
|
|
84581
84453
|
const userKeyOfSocket = getFromStore(IMPLICIT.STORE, userOfSocketSelector);
|
|
84582
84454
|
const rawUserId = userKeyOfSocket?.replace(/^user::/, ``);
|
|
84583
84455
|
socket.on(`changeUsername`, async (username) => {
|
|
@@ -84588,11 +84460,11 @@ var serveSocket = (socket) => {
|
|
|
84588
84460
|
}
|
|
84589
84461
|
});
|
|
84590
84462
|
socket.on(`disconnect`, () => {
|
|
84591
|
-
const userKeyState = findRelationsInStore(usersOfSockets, socketKey
|
|
84463
|
+
const userKeyState = findRelationsInStore(IMPLICIT.STORE, usersOfSockets, socketKey).userKeyOfSocket;
|
|
84592
84464
|
const userKey = getFromStore(IMPLICIT.STORE, userKeyState);
|
|
84593
|
-
editRelationsInStore(usersOfSockets, (relations) => {
|
|
84465
|
+
editRelationsInStore(IMPLICIT.STORE, usersOfSockets, (relations) => {
|
|
84594
84466
|
relations.delete(socketKey);
|
|
84595
|
-
}
|
|
84467
|
+
});
|
|
84596
84468
|
if (userKey) {
|
|
84597
84469
|
setIntoStore(IMPLICIT.STORE, userKeysAtom, (index) => (index.delete(userKey), index));
|
|
84598
84470
|
}
|