@liip/liipgpt 3.9.0 → 3.9.2
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/LICENSE +88 -0
- package/button/liipgpt-button.iife.js +11 -71
- package/chat/liipgpt-chat.iife.js +12 -12
- package/config/index.cjs +947 -946
- package/config/index.d.ts +6 -0
- package/config/index.js +947 -946
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/7mY4OJGU.js +1 -0
- package/configurator/_app/immutable/chunks/B7iNpEKB.js +143 -0
- package/configurator/_app/immutable/chunks/B9Sj_kOF.js +2 -0
- package/configurator/_app/immutable/chunks/Bo_I9OnC.js +1 -0
- package/configurator/_app/immutable/chunks/C4jvtK34.js +1 -0
- package/configurator/_app/immutable/chunks/C5QUeOT4.js +16 -0
- package/configurator/_app/immutable/chunks/{DGbgqVw-.js → CA38AHEC.js} +2 -2
- package/configurator/_app/immutable/chunks/CFeIeoV1.js +1 -0
- package/configurator/_app/immutable/chunks/{CW8XT_f0.js → D1JxtiVt.js} +1 -1
- package/configurator/_app/immutable/chunks/{CzlKx6Dn.js → DGQ954rx.js} +1 -1
- package/configurator/_app/immutable/chunks/DY91rqbt.js +61 -0
- package/configurator/_app/immutable/chunks/{BiMiaf32.js → DYa1ApbB.js} +1 -1
- package/configurator/_app/immutable/chunks/{BoSlghYU.js → Qr3QoTpa.js} +1 -1
- package/configurator/_app/immutable/chunks/{kfKo0Lxm.js → ZVK8Dk3M.js} +1 -1
- package/configurator/_app/immutable/chunks/hdHt6us6.js +1 -0
- package/configurator/_app/immutable/entry/{app.CwqfSUK4.js → app.CNOaE4a-.js} +2 -2
- package/configurator/_app/immutable/entry/start.Dt2jlaUG.js +1 -0
- package/configurator/_app/immutable/nodes/{0.WsdkbKsV.js → 0.5_GG2VVz.js} +1 -1
- package/configurator/_app/immutable/nodes/{1.2qVIdLFb.js → 1.CC4YG4vs.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.zFWWXwja.js → 2.Bsn6JT-r.js} +5 -5
- package/configurator/_app/immutable/nodes/{3.YVKriLPj.js → 3.BGFB6L4G.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +1263 -3510
- package/index.d.ts +34 -0
- package/index.js +1230 -3479
- package/package.json +2 -2
- package/search-summary/liipgpt-search-summary.iife.js +6 -6
- package/configurator/_app/immutable/chunks/BKESH8zC.js +0 -1
- package/configurator/_app/immutable/chunks/BKZTsJMz.js +0 -1
- package/configurator/_app/immutable/chunks/C8BUw-Wc.js +0 -61
- package/configurator/_app/immutable/chunks/CWvh3_h0.js +0 -16
- package/configurator/_app/immutable/chunks/CqCdl07t.js +0 -1
- package/configurator/_app/immutable/chunks/DWxJNFvO.js +0 -143
- package/configurator/_app/immutable/chunks/Dn_5PWao.js +0 -2
- package/configurator/_app/immutable/chunks/IPBcm7Y9.js +0 -1
- package/configurator/_app/immutable/chunks/cE02ifhd.js +0 -1
- package/configurator/_app/immutable/entry/start.C9g5qB7o.js +0 -1
- package/configurator/bs.png +0 -0
package/index.js
CHANGED
|
@@ -3258,29 +3258,11 @@ class MarkdownRenderer {
|
|
|
3258
3258
|
// node_modules/.bun/esm-env@1.2.2/node_modules/esm-env/true.js
|
|
3259
3259
|
var true_default = true;
|
|
3260
3260
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/utils.js
|
|
3261
|
-
var is_array = Array.isArray;
|
|
3262
3261
|
var index_of = Array.prototype.indexOf;
|
|
3263
3262
|
var includes = Array.prototype.includes;
|
|
3264
|
-
var define_property = Object.defineProperty;
|
|
3265
|
-
var get_descriptor = Object.getOwnPropertyDescriptor;
|
|
3266
3263
|
var object_prototype = Object.prototype;
|
|
3267
3264
|
var array_prototype = Array.prototype;
|
|
3268
|
-
var get_prototype_of = Object.getPrototypeOf;
|
|
3269
3265
|
var noop = () => {};
|
|
3270
|
-
function run_all(arr) {
|
|
3271
|
-
for (var i = 0;i < arr.length; i++) {
|
|
3272
|
-
arr[i]();
|
|
3273
|
-
}
|
|
3274
|
-
}
|
|
3275
|
-
function deferred() {
|
|
3276
|
-
var resolve;
|
|
3277
|
-
var reject;
|
|
3278
|
-
var promise = new Promise((res, rej) => {
|
|
3279
|
-
resolve = res;
|
|
3280
|
-
reject = rej;
|
|
3281
|
-
});
|
|
3282
|
-
return { promise, resolve, reject };
|
|
3283
|
-
}
|
|
3284
3266
|
|
|
3285
3267
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/constants.js
|
|
3286
3268
|
var DERIVED = 1 << 1;
|
|
@@ -3318,101 +3300,11 @@ var STALE_REACTION = new class StaleReactionError extends Error {
|
|
|
3318
3300
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
3319
3301
|
};
|
|
3320
3302
|
var IS_XHTML = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
3321
|
-
var COMMENT_NODE = 8;
|
|
3322
3303
|
|
|
3323
3304
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
3324
|
-
function equals(value) {
|
|
3325
|
-
return value === this.v;
|
|
3326
|
-
}
|
|
3327
3305
|
function safe_not_equal(a, b) {
|
|
3328
3306
|
return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
|
|
3329
3307
|
}
|
|
3330
|
-
|
|
3331
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/errors.js
|
|
3332
|
-
function invariant_violation(message) {
|
|
3333
|
-
if (true_default) {
|
|
3334
|
-
const error = new Error(`invariant_violation
|
|
3335
|
-
An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${message}"
|
|
3336
|
-
https://svelte.dev/e/invariant_violation`);
|
|
3337
|
-
error.name = "Svelte error";
|
|
3338
|
-
throw error;
|
|
3339
|
-
} else {
|
|
3340
|
-
throw new Error(`https://svelte.dev/e/invariant_violation`);
|
|
3341
|
-
}
|
|
3342
|
-
}
|
|
3343
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/errors.js
|
|
3344
|
-
function derived_references_self() {
|
|
3345
|
-
if (true_default) {
|
|
3346
|
-
const error = new Error(`derived_references_self
|
|
3347
|
-
A derived value cannot reference itself recursively
|
|
3348
|
-
https://svelte.dev/e/derived_references_self`);
|
|
3349
|
-
error.name = "Svelte error";
|
|
3350
|
-
throw error;
|
|
3351
|
-
} else {
|
|
3352
|
-
throw new Error(`https://svelte.dev/e/derived_references_self`);
|
|
3353
|
-
}
|
|
3354
|
-
}
|
|
3355
|
-
function effect_update_depth_exceeded() {
|
|
3356
|
-
if (true_default) {
|
|
3357
|
-
const error = new Error(`effect_update_depth_exceeded
|
|
3358
|
-
Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
|
|
3359
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
3360
|
-
error.name = "Svelte error";
|
|
3361
|
-
throw error;
|
|
3362
|
-
} else {
|
|
3363
|
-
throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
3364
|
-
}
|
|
3365
|
-
}
|
|
3366
|
-
function state_descriptors_fixed() {
|
|
3367
|
-
if (true_default) {
|
|
3368
|
-
const error = new Error(`state_descriptors_fixed
|
|
3369
|
-
Property descriptors defined on \`$state\` objects must contain \`value\` and always be \`enumerable\`, \`configurable\` and \`writable\`.
|
|
3370
|
-
https://svelte.dev/e/state_descriptors_fixed`);
|
|
3371
|
-
error.name = "Svelte error";
|
|
3372
|
-
throw error;
|
|
3373
|
-
} else {
|
|
3374
|
-
throw new Error(`https://svelte.dev/e/state_descriptors_fixed`);
|
|
3375
|
-
}
|
|
3376
|
-
}
|
|
3377
|
-
function state_prototype_fixed() {
|
|
3378
|
-
if (true_default) {
|
|
3379
|
-
const error = new Error(`state_prototype_fixed
|
|
3380
|
-
Cannot set prototype of \`$state\` object
|
|
3381
|
-
https://svelte.dev/e/state_prototype_fixed`);
|
|
3382
|
-
error.name = "Svelte error";
|
|
3383
|
-
throw error;
|
|
3384
|
-
} else {
|
|
3385
|
-
throw new Error(`https://svelte.dev/e/state_prototype_fixed`);
|
|
3386
|
-
}
|
|
3387
|
-
}
|
|
3388
|
-
function state_unsafe_mutation() {
|
|
3389
|
-
if (true_default) {
|
|
3390
|
-
const error = new Error(`state_unsafe_mutation
|
|
3391
|
-
Updating state inside \`$derived(...)\`, \`$inspect(...)\` or a template expression is forbidden. If the value should not be reactive, declare it without \`$state\`
|
|
3392
|
-
https://svelte.dev/e/state_unsafe_mutation`);
|
|
3393
|
-
error.name = "Svelte error";
|
|
3394
|
-
throw error;
|
|
3395
|
-
} else {
|
|
3396
|
-
throw new Error(`https://svelte.dev/e/state_unsafe_mutation`);
|
|
3397
|
-
}
|
|
3398
|
-
}
|
|
3399
|
-
function svelte_boundary_reset_onerror() {
|
|
3400
|
-
if (true_default) {
|
|
3401
|
-
const error = new Error(`svelte_boundary_reset_onerror
|
|
3402
|
-
A \`<svelte:boundary>\` \`reset\` function cannot be called while an error is still being handled
|
|
3403
|
-
https://svelte.dev/e/svelte_boundary_reset_onerror`);
|
|
3404
|
-
error.name = "Svelte error";
|
|
3405
|
-
throw error;
|
|
3406
|
-
} else {
|
|
3407
|
-
throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);
|
|
3408
|
-
}
|
|
3409
|
-
}
|
|
3410
|
-
|
|
3411
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/flags/index.js
|
|
3412
|
-
var async_mode_flag = false;
|
|
3413
|
-
var legacy_mode_flag = false;
|
|
3414
|
-
var tracing_mode_flag = false;
|
|
3415
|
-
|
|
3416
3308
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/constants.js
|
|
3417
3309
|
var EACH_INDEX_REACTIVE = 1 << 1;
|
|
3418
3310
|
var EACH_IS_CONTROLLED = 1 << 2;
|
|
@@ -3427,418 +3319,13 @@ var TRANSITION_GLOBAL = 1 << 2;
|
|
|
3427
3319
|
var TEMPLATE_USE_IMPORT_NODE = 1 << 1;
|
|
3428
3320
|
var TEMPLATE_USE_SVG = 1 << 2;
|
|
3429
3321
|
var TEMPLATE_USE_MATHML = 1 << 3;
|
|
3430
|
-
var HYDRATION_START = "[";
|
|
3431
|
-
var HYDRATION_START_ELSE = "[!";
|
|
3432
|
-
var HYDRATION_START_FAILED = "[?";
|
|
3433
|
-
var HYDRATION_END = "]";
|
|
3434
|
-
var HYDRATION_ERROR = {};
|
|
3435
3322
|
var ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;
|
|
3436
3323
|
var ELEMENT_IS_INPUT = 1 << 2;
|
|
3437
3324
|
var UNINITIALIZED = Symbol();
|
|
3438
3325
|
var FILENAME = Symbol("filename");
|
|
3439
3326
|
var HMR = Symbol("hmr");
|
|
3440
3327
|
|
|
3441
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dev/tracing.js
|
|
3442
|
-
var tracing_expressions = null;
|
|
3443
|
-
function tag2(source, label) {
|
|
3444
|
-
source.label = label;
|
|
3445
|
-
tag_proxy(source.v, label);
|
|
3446
|
-
return source;
|
|
3447
|
-
}
|
|
3448
|
-
function tag_proxy(value, label) {
|
|
3449
|
-
value?.[PROXY_PATH_SYMBOL]?.(label);
|
|
3450
|
-
return value;
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/dev.js
|
|
3454
|
-
function get_error(label) {
|
|
3455
|
-
const error = new Error;
|
|
3456
|
-
const stack = get_stack();
|
|
3457
|
-
if (stack.length === 0) {
|
|
3458
|
-
return null;
|
|
3459
|
-
}
|
|
3460
|
-
stack.unshift(`
|
|
3461
|
-
`);
|
|
3462
|
-
define_property(error, "stack", {
|
|
3463
|
-
value: stack.join(`
|
|
3464
|
-
`)
|
|
3465
|
-
});
|
|
3466
|
-
define_property(error, "name", {
|
|
3467
|
-
value: label
|
|
3468
|
-
});
|
|
3469
|
-
return error;
|
|
3470
|
-
}
|
|
3471
|
-
function get_stack() {
|
|
3472
|
-
const limit = Error.stackTraceLimit;
|
|
3473
|
-
Error.stackTraceLimit = Infinity;
|
|
3474
|
-
const stack = new Error().stack;
|
|
3475
|
-
Error.stackTraceLimit = limit;
|
|
3476
|
-
if (!stack)
|
|
3477
|
-
return [];
|
|
3478
|
-
const lines = stack.split(`
|
|
3479
|
-
`);
|
|
3480
|
-
const new_lines = [];
|
|
3481
|
-
for (let i = 0;i < lines.length; i++) {
|
|
3482
|
-
const line = lines[i];
|
|
3483
|
-
const posixified = line.replaceAll("\\", "/");
|
|
3484
|
-
if (line.trim() === "Error") {
|
|
3485
|
-
continue;
|
|
3486
|
-
}
|
|
3487
|
-
if (line.includes("validate_each_keys")) {
|
|
3488
|
-
return [];
|
|
3489
|
-
}
|
|
3490
|
-
if (posixified.includes("svelte/src/internal") || posixified.includes("node_modules/.vite")) {
|
|
3491
|
-
continue;
|
|
3492
|
-
}
|
|
3493
|
-
new_lines.push(line);
|
|
3494
|
-
}
|
|
3495
|
-
return new_lines;
|
|
3496
|
-
}
|
|
3497
|
-
function invariant(condition, message) {
|
|
3498
|
-
if (!true_default) {
|
|
3499
|
-
throw new Error("invariant(...) was not guarded by if (DEV)");
|
|
3500
|
-
}
|
|
3501
|
-
if (!condition)
|
|
3502
|
-
invariant_violation(message);
|
|
3503
|
-
}
|
|
3504
|
-
|
|
3505
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/context.js
|
|
3506
|
-
var component_context = null;
|
|
3507
|
-
function set_component_context(context) {
|
|
3508
|
-
component_context = context;
|
|
3509
|
-
}
|
|
3510
|
-
var dev_stack = null;
|
|
3511
|
-
function set_dev_stack(stack) {
|
|
3512
|
-
dev_stack = stack;
|
|
3513
|
-
}
|
|
3514
|
-
var dev_current_component_function = null;
|
|
3515
|
-
function set_dev_current_component_function(fn) {
|
|
3516
|
-
dev_current_component_function = fn;
|
|
3517
|
-
}
|
|
3518
|
-
function is_runes() {
|
|
3519
|
-
return !legacy_mode_flag || component_context !== null && component_context.l === null;
|
|
3520
|
-
}
|
|
3521
|
-
|
|
3522
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/task.js
|
|
3523
|
-
var micro_tasks = [];
|
|
3524
|
-
function run_micro_tasks() {
|
|
3525
|
-
var tasks = micro_tasks;
|
|
3526
|
-
micro_tasks = [];
|
|
3527
|
-
run_all(tasks);
|
|
3528
|
-
}
|
|
3529
|
-
function queue_micro_task(fn) {
|
|
3530
|
-
if (micro_tasks.length === 0 && !is_flushing_sync) {
|
|
3531
|
-
var tasks = micro_tasks;
|
|
3532
|
-
queueMicrotask(() => {
|
|
3533
|
-
if (tasks === micro_tasks)
|
|
3534
|
-
run_micro_tasks();
|
|
3535
|
-
});
|
|
3536
|
-
}
|
|
3537
|
-
micro_tasks.push(fn);
|
|
3538
|
-
}
|
|
3539
|
-
|
|
3540
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/warnings.js
|
|
3541
|
-
var bold = "font-weight: bold";
|
|
3542
|
-
var normal = "font-weight: normal";
|
|
3543
|
-
function await_reactivity_loss(name) {
|
|
3544
|
-
if (true_default) {
|
|
3545
|
-
console.warn(`%c[svelte] await_reactivity_loss
|
|
3546
|
-
%cDetected reactivity loss when reading \`${name}\`. This happens when state is read in an async function after an earlier \`await\`
|
|
3547
|
-
https://svelte.dev/e/await_reactivity_loss`, bold, normal);
|
|
3548
|
-
} else {
|
|
3549
|
-
console.warn(`https://svelte.dev/e/await_reactivity_loss`);
|
|
3550
|
-
}
|
|
3551
|
-
}
|
|
3552
|
-
function hydration_mismatch(location) {
|
|
3553
|
-
if (true_default) {
|
|
3554
|
-
console.warn(`%c[svelte] hydration_mismatch
|
|
3555
|
-
%c${location ? `Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}` : "Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
3556
|
-
https://svelte.dev/e/hydration_mismatch`, bold, normal);
|
|
3557
|
-
} else {
|
|
3558
|
-
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
3559
|
-
}
|
|
3560
|
-
}
|
|
3561
|
-
function svelte_boundary_reset_noop() {
|
|
3562
|
-
if (true_default) {
|
|
3563
|
-
console.warn(`%c[svelte] svelte_boundary_reset_noop
|
|
3564
|
-
%cA \`<svelte:boundary>\` \`reset\` function only resets the boundary the first time it is called
|
|
3565
|
-
https://svelte.dev/e/svelte_boundary_reset_noop`, bold, normal);
|
|
3566
|
-
} else {
|
|
3567
|
-
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
|
3568
|
-
}
|
|
3569
|
-
}
|
|
3570
|
-
|
|
3571
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
3572
|
-
var hydrating = false;
|
|
3573
|
-
var hydrate_node;
|
|
3574
|
-
function set_hydrate_node(node) {
|
|
3575
|
-
if (node === null) {
|
|
3576
|
-
hydration_mismatch();
|
|
3577
|
-
throw HYDRATION_ERROR;
|
|
3578
|
-
}
|
|
3579
|
-
return hydrate_node = node;
|
|
3580
|
-
}
|
|
3581
|
-
function hydrate_next() {
|
|
3582
|
-
return set_hydrate_node(get_next_sibling(hydrate_node));
|
|
3583
|
-
}
|
|
3584
|
-
function next(count = 1) {
|
|
3585
|
-
if (hydrating) {
|
|
3586
|
-
var i = count;
|
|
3587
|
-
var node = hydrate_node;
|
|
3588
|
-
while (i--) {
|
|
3589
|
-
node = get_next_sibling(node);
|
|
3590
|
-
}
|
|
3591
|
-
hydrate_node = node;
|
|
3592
|
-
}
|
|
3593
|
-
}
|
|
3594
|
-
function skip_nodes(remove = true) {
|
|
3595
|
-
var depth = 0;
|
|
3596
|
-
var node = hydrate_node;
|
|
3597
|
-
while (true) {
|
|
3598
|
-
if (node.nodeType === COMMENT_NODE) {
|
|
3599
|
-
var data = node.data;
|
|
3600
|
-
if (data === HYDRATION_END) {
|
|
3601
|
-
if (depth === 0)
|
|
3602
|
-
return node;
|
|
3603
|
-
depth -= 1;
|
|
3604
|
-
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE || data[0] === "[" && !isNaN(Number(data.slice(1)))) {
|
|
3605
|
-
depth += 1;
|
|
3606
|
-
}
|
|
3607
|
-
}
|
|
3608
|
-
var next2 = get_next_sibling(node);
|
|
3609
|
-
if (remove)
|
|
3610
|
-
node.remove();
|
|
3611
|
-
node = next2;
|
|
3612
|
-
}
|
|
3613
|
-
}
|
|
3614
|
-
|
|
3615
3328
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/proxy.js
|
|
3616
|
-
var regex_is_valid_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
3617
|
-
function proxy(value) {
|
|
3618
|
-
if (typeof value !== "object" || value === null || STATE_SYMBOL in value) {
|
|
3619
|
-
return value;
|
|
3620
|
-
}
|
|
3621
|
-
const prototype = get_prototype_of(value);
|
|
3622
|
-
if (prototype !== object_prototype && prototype !== array_prototype) {
|
|
3623
|
-
return value;
|
|
3624
|
-
}
|
|
3625
|
-
var sources = new Map;
|
|
3626
|
-
var is_proxied_array = is_array(value);
|
|
3627
|
-
var version = state(0);
|
|
3628
|
-
var stack = true_default && tracing_mode_flag ? get_error("created at") : null;
|
|
3629
|
-
var parent_version = update_version;
|
|
3630
|
-
var with_parent = (fn) => {
|
|
3631
|
-
if (update_version === parent_version) {
|
|
3632
|
-
return fn();
|
|
3633
|
-
}
|
|
3634
|
-
var reaction = active_reaction;
|
|
3635
|
-
var version2 = update_version;
|
|
3636
|
-
set_active_reaction(null);
|
|
3637
|
-
set_update_version(parent_version);
|
|
3638
|
-
var result = fn();
|
|
3639
|
-
set_active_reaction(reaction);
|
|
3640
|
-
set_update_version(version2);
|
|
3641
|
-
return result;
|
|
3642
|
-
};
|
|
3643
|
-
if (is_proxied_array) {
|
|
3644
|
-
sources.set("length", state(value.length, stack));
|
|
3645
|
-
if (true_default) {
|
|
3646
|
-
value = inspectable_array(value);
|
|
3647
|
-
}
|
|
3648
|
-
}
|
|
3649
|
-
var path = "";
|
|
3650
|
-
let updating = false;
|
|
3651
|
-
function update_path(new_path) {
|
|
3652
|
-
if (updating)
|
|
3653
|
-
return;
|
|
3654
|
-
updating = true;
|
|
3655
|
-
path = new_path;
|
|
3656
|
-
tag2(version, `${path} version`);
|
|
3657
|
-
for (const [prop, source] of sources) {
|
|
3658
|
-
tag2(source, get_label(path, prop));
|
|
3659
|
-
}
|
|
3660
|
-
updating = false;
|
|
3661
|
-
}
|
|
3662
|
-
return new Proxy(value, {
|
|
3663
|
-
defineProperty(_, prop, descriptor) {
|
|
3664
|
-
if (!("value" in descriptor) || descriptor.configurable === false || descriptor.enumerable === false || descriptor.writable === false) {
|
|
3665
|
-
state_descriptors_fixed();
|
|
3666
|
-
}
|
|
3667
|
-
var s = sources.get(prop);
|
|
3668
|
-
if (s === undefined) {
|
|
3669
|
-
with_parent(() => {
|
|
3670
|
-
var s2 = state(descriptor.value, stack);
|
|
3671
|
-
sources.set(prop, s2);
|
|
3672
|
-
if (true_default && typeof prop === "string") {
|
|
3673
|
-
tag2(s2, get_label(path, prop));
|
|
3674
|
-
}
|
|
3675
|
-
return s2;
|
|
3676
|
-
});
|
|
3677
|
-
} else {
|
|
3678
|
-
set(s, descriptor.value, true);
|
|
3679
|
-
}
|
|
3680
|
-
return true;
|
|
3681
|
-
},
|
|
3682
|
-
deleteProperty(target, prop) {
|
|
3683
|
-
var s = sources.get(prop);
|
|
3684
|
-
if (s === undefined) {
|
|
3685
|
-
if (prop in target) {
|
|
3686
|
-
const s2 = with_parent(() => state(UNINITIALIZED, stack));
|
|
3687
|
-
sources.set(prop, s2);
|
|
3688
|
-
increment(version);
|
|
3689
|
-
if (true_default) {
|
|
3690
|
-
tag2(s2, get_label(path, prop));
|
|
3691
|
-
}
|
|
3692
|
-
}
|
|
3693
|
-
} else {
|
|
3694
|
-
set(s, UNINITIALIZED);
|
|
3695
|
-
increment(version);
|
|
3696
|
-
}
|
|
3697
|
-
return true;
|
|
3698
|
-
},
|
|
3699
|
-
get(target, prop, receiver) {
|
|
3700
|
-
if (prop === STATE_SYMBOL) {
|
|
3701
|
-
return value;
|
|
3702
|
-
}
|
|
3703
|
-
if (true_default && prop === PROXY_PATH_SYMBOL) {
|
|
3704
|
-
return update_path;
|
|
3705
|
-
}
|
|
3706
|
-
var s = sources.get(prop);
|
|
3707
|
-
var exists = prop in target;
|
|
3708
|
-
if (s === undefined && (!exists || get_descriptor(target, prop)?.writable)) {
|
|
3709
|
-
s = with_parent(() => {
|
|
3710
|
-
var p = proxy(exists ? target[prop] : UNINITIALIZED);
|
|
3711
|
-
var s2 = state(p, stack);
|
|
3712
|
-
if (true_default) {
|
|
3713
|
-
tag2(s2, get_label(path, prop));
|
|
3714
|
-
}
|
|
3715
|
-
return s2;
|
|
3716
|
-
});
|
|
3717
|
-
sources.set(prop, s);
|
|
3718
|
-
}
|
|
3719
|
-
if (s !== undefined) {
|
|
3720
|
-
var v = get(s);
|
|
3721
|
-
return v === UNINITIALIZED ? undefined : v;
|
|
3722
|
-
}
|
|
3723
|
-
return Reflect.get(target, prop, receiver);
|
|
3724
|
-
},
|
|
3725
|
-
getOwnPropertyDescriptor(target, prop) {
|
|
3726
|
-
var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
3727
|
-
if (descriptor && "value" in descriptor) {
|
|
3728
|
-
var s = sources.get(prop);
|
|
3729
|
-
if (s)
|
|
3730
|
-
descriptor.value = get(s);
|
|
3731
|
-
} else if (descriptor === undefined) {
|
|
3732
|
-
var source = sources.get(prop);
|
|
3733
|
-
var value2 = source?.v;
|
|
3734
|
-
if (source !== undefined && value2 !== UNINITIALIZED) {
|
|
3735
|
-
return {
|
|
3736
|
-
enumerable: true,
|
|
3737
|
-
configurable: true,
|
|
3738
|
-
value: value2,
|
|
3739
|
-
writable: true
|
|
3740
|
-
};
|
|
3741
|
-
}
|
|
3742
|
-
}
|
|
3743
|
-
return descriptor;
|
|
3744
|
-
},
|
|
3745
|
-
has(target, prop) {
|
|
3746
|
-
if (prop === STATE_SYMBOL) {
|
|
3747
|
-
return true;
|
|
3748
|
-
}
|
|
3749
|
-
var s = sources.get(prop);
|
|
3750
|
-
var has = s !== undefined && s.v !== UNINITIALIZED || Reflect.has(target, prop);
|
|
3751
|
-
if (s !== undefined || active_effect !== null && (!has || get_descriptor(target, prop)?.writable)) {
|
|
3752
|
-
if (s === undefined) {
|
|
3753
|
-
s = with_parent(() => {
|
|
3754
|
-
var p = has ? proxy(target[prop]) : UNINITIALIZED;
|
|
3755
|
-
var s2 = state(p, stack);
|
|
3756
|
-
if (true_default) {
|
|
3757
|
-
tag2(s2, get_label(path, prop));
|
|
3758
|
-
}
|
|
3759
|
-
return s2;
|
|
3760
|
-
});
|
|
3761
|
-
sources.set(prop, s);
|
|
3762
|
-
}
|
|
3763
|
-
var value2 = get(s);
|
|
3764
|
-
if (value2 === UNINITIALIZED) {
|
|
3765
|
-
return false;
|
|
3766
|
-
}
|
|
3767
|
-
}
|
|
3768
|
-
return has;
|
|
3769
|
-
},
|
|
3770
|
-
set(target, prop, value2, receiver) {
|
|
3771
|
-
var s = sources.get(prop);
|
|
3772
|
-
var has = prop in target;
|
|
3773
|
-
if (is_proxied_array && prop === "length") {
|
|
3774
|
-
for (var i = value2;i < s.v; i += 1) {
|
|
3775
|
-
var other_s = sources.get(i + "");
|
|
3776
|
-
if (other_s !== undefined) {
|
|
3777
|
-
set(other_s, UNINITIALIZED);
|
|
3778
|
-
} else if (i in target) {
|
|
3779
|
-
other_s = with_parent(() => state(UNINITIALIZED, stack));
|
|
3780
|
-
sources.set(i + "", other_s);
|
|
3781
|
-
if (true_default) {
|
|
3782
|
-
tag2(other_s, get_label(path, i));
|
|
3783
|
-
}
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
}
|
|
3787
|
-
if (s === undefined) {
|
|
3788
|
-
if (!has || get_descriptor(target, prop)?.writable) {
|
|
3789
|
-
s = with_parent(() => state(undefined, stack));
|
|
3790
|
-
if (true_default) {
|
|
3791
|
-
tag2(s, get_label(path, prop));
|
|
3792
|
-
}
|
|
3793
|
-
set(s, proxy(value2));
|
|
3794
|
-
sources.set(prop, s);
|
|
3795
|
-
}
|
|
3796
|
-
} else {
|
|
3797
|
-
has = s.v !== UNINITIALIZED;
|
|
3798
|
-
var p = with_parent(() => proxy(value2));
|
|
3799
|
-
set(s, p);
|
|
3800
|
-
}
|
|
3801
|
-
var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
3802
|
-
if (descriptor?.set) {
|
|
3803
|
-
descriptor.set.call(receiver, value2);
|
|
3804
|
-
}
|
|
3805
|
-
if (!has) {
|
|
3806
|
-
if (is_proxied_array && typeof prop === "string") {
|
|
3807
|
-
var ls = sources.get("length");
|
|
3808
|
-
var n = Number(prop);
|
|
3809
|
-
if (Number.isInteger(n) && n >= ls.v) {
|
|
3810
|
-
set(ls, n + 1);
|
|
3811
|
-
}
|
|
3812
|
-
}
|
|
3813
|
-
increment(version);
|
|
3814
|
-
}
|
|
3815
|
-
return true;
|
|
3816
|
-
},
|
|
3817
|
-
ownKeys(target) {
|
|
3818
|
-
get(version);
|
|
3819
|
-
var own_keys = Reflect.ownKeys(target).filter((key2) => {
|
|
3820
|
-
var source2 = sources.get(key2);
|
|
3821
|
-
return source2 === undefined || source2.v !== UNINITIALIZED;
|
|
3822
|
-
});
|
|
3823
|
-
for (var [key, source] of sources) {
|
|
3824
|
-
if (source.v !== UNINITIALIZED && !(key in target)) {
|
|
3825
|
-
own_keys.push(key);
|
|
3826
|
-
}
|
|
3827
|
-
}
|
|
3828
|
-
return own_keys;
|
|
3829
|
-
},
|
|
3830
|
-
setPrototypeOf() {
|
|
3831
|
-
state_prototype_fixed();
|
|
3832
|
-
}
|
|
3833
|
-
});
|
|
3834
|
-
}
|
|
3835
|
-
function get_label(path, prop) {
|
|
3836
|
-
if (typeof prop === "symbol")
|
|
3837
|
-
return `${path}[Symbol(${prop.description ?? ""})]`;
|
|
3838
|
-
if (regex_is_valid_identifier.test(prop))
|
|
3839
|
-
return `${path}.${prop}`;
|
|
3840
|
-
return /^\d+$/.test(prop) ? `${path}[${prop}]` : `${path}['${prop}']`;
|
|
3841
|
-
}
|
|
3842
3329
|
var ARRAY_MUTATING_METHODS = new Set([
|
|
3843
3330
|
"copyWithin",
|
|
3844
3331
|
"fill",
|
|
@@ -3850,140 +3337,12 @@ var ARRAY_MUTATING_METHODS = new Set([
|
|
|
3850
3337
|
"splice",
|
|
3851
3338
|
"unshift"
|
|
3852
3339
|
]);
|
|
3853
|
-
function inspectable_array(array) {
|
|
3854
|
-
return new Proxy(array, {
|
|
3855
|
-
get(target, prop, receiver) {
|
|
3856
|
-
var value = Reflect.get(target, prop, receiver);
|
|
3857
|
-
if (!ARRAY_MUTATING_METHODS.has(prop)) {
|
|
3858
|
-
return value;
|
|
3859
|
-
}
|
|
3860
|
-
return function(...args) {
|
|
3861
|
-
set_eager_effects_deferred();
|
|
3862
|
-
var result = value.apply(this, args);
|
|
3863
|
-
flush_eager_effects();
|
|
3864
|
-
return result;
|
|
3865
|
-
};
|
|
3866
|
-
}
|
|
3867
|
-
});
|
|
3868
|
-
}
|
|
3869
|
-
|
|
3870
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/operations.js
|
|
3871
|
-
var is_firefox;
|
|
3872
|
-
var next_sibling_getter;
|
|
3873
|
-
function create_text(value = "") {
|
|
3874
|
-
return document.createTextNode(value);
|
|
3875
|
-
}
|
|
3876
|
-
function get_next_sibling(node) {
|
|
3877
|
-
return next_sibling_getter.call(node);
|
|
3878
|
-
}
|
|
3879
3340
|
|
|
3880
3341
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/error-handling.js
|
|
3881
3342
|
var adjustments = new WeakMap;
|
|
3882
|
-
function handle_error(error) {
|
|
3883
|
-
var effect = active_effect;
|
|
3884
|
-
if (effect === null) {
|
|
3885
|
-
active_reaction.f |= ERROR_VALUE;
|
|
3886
|
-
return error;
|
|
3887
|
-
}
|
|
3888
|
-
if (true_default && error instanceof Error && !adjustments.has(error)) {
|
|
3889
|
-
adjustments.set(error, get_adjustments(error, effect));
|
|
3890
|
-
}
|
|
3891
|
-
if ((effect.f & REACTION_RAN) === 0 && (effect.f & EFFECT) === 0) {
|
|
3892
|
-
if (true_default && !effect.parent && error instanceof Error) {
|
|
3893
|
-
apply_adjustments(error);
|
|
3894
|
-
}
|
|
3895
|
-
throw error;
|
|
3896
|
-
}
|
|
3897
|
-
invoke_error_boundary(error, effect);
|
|
3898
|
-
}
|
|
3899
|
-
function invoke_error_boundary(error, effect) {
|
|
3900
|
-
while (effect !== null) {
|
|
3901
|
-
if ((effect.f & BOUNDARY_EFFECT) !== 0) {
|
|
3902
|
-
if ((effect.f & REACTION_RAN) === 0) {
|
|
3903
|
-
throw error;
|
|
3904
|
-
}
|
|
3905
|
-
try {
|
|
3906
|
-
effect.b.error(error);
|
|
3907
|
-
return;
|
|
3908
|
-
} catch (e) {
|
|
3909
|
-
error = e;
|
|
3910
|
-
}
|
|
3911
|
-
}
|
|
3912
|
-
effect = effect.parent;
|
|
3913
|
-
}
|
|
3914
|
-
if (true_default && error instanceof Error) {
|
|
3915
|
-
apply_adjustments(error);
|
|
3916
|
-
}
|
|
3917
|
-
throw error;
|
|
3918
|
-
}
|
|
3919
|
-
function get_adjustments(error, effect) {
|
|
3920
|
-
const message_descriptor = get_descriptor(error, "message");
|
|
3921
|
-
if (message_descriptor && !message_descriptor.configurable)
|
|
3922
|
-
return;
|
|
3923
|
-
var indent = is_firefox ? " " : "\t";
|
|
3924
|
-
var component_stack = `
|
|
3925
|
-
${indent}in ${effect.fn?.name || "<unknown>"}`;
|
|
3926
|
-
var context = effect.ctx;
|
|
3927
|
-
while (context !== null) {
|
|
3928
|
-
component_stack += `
|
|
3929
|
-
${indent}in ${context.function?.[FILENAME].split("/").pop()}`;
|
|
3930
|
-
context = context.p;
|
|
3931
|
-
}
|
|
3932
|
-
return {
|
|
3933
|
-
message: error.message + `
|
|
3934
|
-
${component_stack}
|
|
3935
|
-
`,
|
|
3936
|
-
stack: error.stack?.split(`
|
|
3937
|
-
`).filter((line) => !line.includes("svelte/src/internal")).join(`
|
|
3938
|
-
`)
|
|
3939
|
-
};
|
|
3940
|
-
}
|
|
3941
|
-
function apply_adjustments(error) {
|
|
3942
|
-
const adjusted = adjustments.get(error);
|
|
3943
|
-
if (adjusted) {
|
|
3944
|
-
define_property(error, "message", {
|
|
3945
|
-
value: adjusted.message
|
|
3946
|
-
});
|
|
3947
|
-
define_property(error, "stack", {
|
|
3948
|
-
value: adjusted.stack
|
|
3949
|
-
});
|
|
3950
|
-
}
|
|
3951
|
-
}
|
|
3952
3343
|
|
|
3953
3344
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
3954
3345
|
var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
|
|
3955
|
-
function set_signal_status(signal, status) {
|
|
3956
|
-
signal.f = signal.f & STATUS_MASK | status;
|
|
3957
|
-
}
|
|
3958
|
-
function update_derived_status(derived) {
|
|
3959
|
-
if ((derived.f & CONNECTED) !== 0 || derived.deps === null) {
|
|
3960
|
-
set_signal_status(derived, CLEAN);
|
|
3961
|
-
} else {
|
|
3962
|
-
set_signal_status(derived, MAYBE_DIRTY);
|
|
3963
|
-
}
|
|
3964
|
-
}
|
|
3965
|
-
|
|
3966
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
3967
|
-
function clear_marked(deps) {
|
|
3968
|
-
if (deps === null)
|
|
3969
|
-
return;
|
|
3970
|
-
for (const dep of deps) {
|
|
3971
|
-
if ((dep.f & DERIVED) === 0 || (dep.f & WAS_MARKED) === 0) {
|
|
3972
|
-
continue;
|
|
3973
|
-
}
|
|
3974
|
-
dep.f ^= WAS_MARKED;
|
|
3975
|
-
clear_marked(dep.deps);
|
|
3976
|
-
}
|
|
3977
|
-
}
|
|
3978
|
-
function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
|
|
3979
|
-
if ((effect.f & DIRTY) !== 0) {
|
|
3980
|
-
dirty_effects.add(effect);
|
|
3981
|
-
} else if ((effect.f & MAYBE_DIRTY) !== 0) {
|
|
3982
|
-
maybe_dirty_effects.add(effect);
|
|
3983
|
-
}
|
|
3984
|
-
clear_marked(effect.deps);
|
|
3985
|
-
set_signal_status(effect, CLEAN);
|
|
3986
|
-
}
|
|
3987
3346
|
|
|
3988
3347
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/store/shared/index.js
|
|
3989
3348
|
var subscriber_queue = [];
|
|
@@ -4030,2462 +3389,852 @@ function writable(value, start = noop) {
|
|
|
4030
3389
|
}
|
|
4031
3390
|
|
|
4032
3391
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
4033
|
-
var legacy_is_updating_store = false;
|
|
4034
3392
|
var IS_UNMOUNTED = Symbol();
|
|
4035
3393
|
|
|
4036
3394
|
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
4037
3395
|
var batches = new Set;
|
|
4038
|
-
var current_batch = null;
|
|
4039
|
-
var previous_batch = null;
|
|
4040
|
-
var batch_values = null;
|
|
4041
|
-
var last_scheduled_effect = null;
|
|
4042
|
-
var is_flushing_sync = false;
|
|
4043
|
-
var is_processing = false;
|
|
4044
|
-
var collected_effects = null;
|
|
4045
|
-
var legacy_updates = null;
|
|
4046
|
-
var flush_count = 0;
|
|
4047
3396
|
var source_stacks = true_default ? new Set : null;
|
|
4048
|
-
var uid = 1;
|
|
4049
3397
|
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
}
|
|
4085
|
-
}
|
|
4086
|
-
}
|
|
4087
|
-
#process() {
|
|
4088
|
-
if (flush_count++ > 1000) {
|
|
4089
|
-
batches.delete(this);
|
|
4090
|
-
infinite_loop_guard();
|
|
4091
|
-
}
|
|
4092
|
-
if (!this.#is_deferred()) {
|
|
4093
|
-
for (const e of this.#dirty_effects) {
|
|
4094
|
-
this.#maybe_dirty_effects.delete(e);
|
|
4095
|
-
set_signal_status(e, DIRTY);
|
|
4096
|
-
this.schedule(e);
|
|
4097
|
-
}
|
|
4098
|
-
for (const e of this.#maybe_dirty_effects) {
|
|
4099
|
-
set_signal_status(e, MAYBE_DIRTY);
|
|
4100
|
-
this.schedule(e);
|
|
4101
|
-
}
|
|
4102
|
-
}
|
|
4103
|
-
const roots = this.#roots;
|
|
4104
|
-
this.#roots = [];
|
|
4105
|
-
this.apply();
|
|
4106
|
-
var effects = collected_effects = [];
|
|
4107
|
-
var render_effects = [];
|
|
4108
|
-
var updates = legacy_updates = [];
|
|
4109
|
-
for (const root of roots) {
|
|
4110
|
-
try {
|
|
4111
|
-
this.#traverse(root, effects, render_effects);
|
|
4112
|
-
} catch (e) {
|
|
4113
|
-
reset_all(root);
|
|
4114
|
-
throw e;
|
|
4115
|
-
}
|
|
4116
|
-
}
|
|
4117
|
-
current_batch = null;
|
|
4118
|
-
if (updates.length > 0) {
|
|
4119
|
-
var batch = Batch.ensure();
|
|
4120
|
-
for (const e of updates) {
|
|
4121
|
-
batch.schedule(e);
|
|
4122
|
-
}
|
|
4123
|
-
}
|
|
4124
|
-
collected_effects = null;
|
|
4125
|
-
legacy_updates = null;
|
|
4126
|
-
if (this.#is_deferred()) {
|
|
4127
|
-
this.#defer_effects(render_effects);
|
|
4128
|
-
this.#defer_effects(effects);
|
|
4129
|
-
for (const [e, t] of this.#skipped_branches) {
|
|
4130
|
-
reset_branch(e, t);
|
|
4131
|
-
}
|
|
4132
|
-
} else {
|
|
4133
|
-
if (this.#pending === 0) {
|
|
4134
|
-
batches.delete(this);
|
|
4135
|
-
}
|
|
4136
|
-
this.#dirty_effects.clear();
|
|
4137
|
-
this.#maybe_dirty_effects.clear();
|
|
4138
|
-
for (const fn of this.#commit_callbacks)
|
|
4139
|
-
fn(this);
|
|
4140
|
-
this.#commit_callbacks.clear();
|
|
4141
|
-
previous_batch = this;
|
|
4142
|
-
flush_queued_effects(render_effects);
|
|
4143
|
-
flush_queued_effects(effects);
|
|
4144
|
-
previous_batch = null;
|
|
4145
|
-
this.#deferred?.resolve();
|
|
4146
|
-
}
|
|
4147
|
-
var next_batch = current_batch;
|
|
4148
|
-
if (this.#roots.length > 0) {
|
|
4149
|
-
const batch2 = next_batch ??= this;
|
|
4150
|
-
batch2.#roots.push(...this.#roots.filter((r) => !batch2.#roots.includes(r)));
|
|
4151
|
-
}
|
|
4152
|
-
if (next_batch !== null) {
|
|
4153
|
-
batches.add(next_batch);
|
|
4154
|
-
if (true_default) {
|
|
4155
|
-
for (const source2 of this.current.keys()) {
|
|
4156
|
-
source_stacks.add(source2);
|
|
4157
|
-
}
|
|
4158
|
-
}
|
|
4159
|
-
next_batch.#process();
|
|
4160
|
-
}
|
|
4161
|
-
if (!batches.has(this)) {
|
|
4162
|
-
this.#commit();
|
|
4163
|
-
}
|
|
4164
|
-
}
|
|
4165
|
-
#traverse(root, effects, render_effects) {
|
|
4166
|
-
root.f ^= CLEAN;
|
|
4167
|
-
var effect = root.first;
|
|
4168
|
-
while (effect !== null) {
|
|
4169
|
-
var flags = effect.f;
|
|
4170
|
-
var is_branch = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
|
|
4171
|
-
var is_skippable_branch = is_branch && (flags & CLEAN) !== 0;
|
|
4172
|
-
var skip = is_skippable_branch || (flags & INERT) !== 0 || this.#skipped_branches.has(effect);
|
|
4173
|
-
if (!skip && effect.fn !== null) {
|
|
4174
|
-
if (is_branch) {
|
|
4175
|
-
effect.f ^= CLEAN;
|
|
4176
|
-
} else if ((flags & EFFECT) !== 0) {
|
|
4177
|
-
effects.push(effect);
|
|
4178
|
-
} else if (async_mode_flag && (flags & (RENDER_EFFECT | MANAGED_EFFECT)) !== 0) {
|
|
4179
|
-
render_effects.push(effect);
|
|
4180
|
-
} else if (is_dirty(effect)) {
|
|
4181
|
-
if ((flags & BLOCK_EFFECT) !== 0)
|
|
4182
|
-
this.#maybe_dirty_effects.add(effect);
|
|
4183
|
-
update_effect(effect);
|
|
4184
|
-
}
|
|
4185
|
-
var child = effect.first;
|
|
4186
|
-
if (child !== null) {
|
|
4187
|
-
effect = child;
|
|
4188
|
-
continue;
|
|
4189
|
-
}
|
|
4190
|
-
}
|
|
4191
|
-
while (effect !== null) {
|
|
4192
|
-
var next2 = effect.next;
|
|
4193
|
-
if (next2 !== null) {
|
|
4194
|
-
effect = next2;
|
|
4195
|
-
break;
|
|
4196
|
-
}
|
|
4197
|
-
effect = effect.parent;
|
|
4198
|
-
}
|
|
4199
|
-
}
|
|
3398
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
3399
|
+
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
|
|
3400
|
+
|
|
3401
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/deriveds.js
|
|
3402
|
+
var recent_async_deriveds = new Set;
|
|
3403
|
+
|
|
3404
|
+
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
3405
|
+
var eager_effects = new Set;
|
|
3406
|
+
var old_values = new Map;
|
|
3407
|
+
// node_modules/.bun/inside-out-async@2.0.2/node_modules/inside-out-async/dist/index.mjs
|
|
3408
|
+
function withResolvers() {
|
|
3409
|
+
let reject;
|
|
3410
|
+
let resolve;
|
|
3411
|
+
const promise = new Promise((resolveFunc, rejectFunc) => {
|
|
3412
|
+
resolve = resolveFunc;
|
|
3413
|
+
reject = rejectFunc;
|
|
3414
|
+
});
|
|
3415
|
+
return {
|
|
3416
|
+
promise,
|
|
3417
|
+
reject,
|
|
3418
|
+
resolve
|
|
3419
|
+
};
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
// src/lib/client/utils/flag.ts
|
|
3423
|
+
class Flag {
|
|
3424
|
+
promise;
|
|
3425
|
+
resolve;
|
|
3426
|
+
reject;
|
|
3427
|
+
constructor() {
|
|
3428
|
+
const { promise, resolve, reject } = withResolvers();
|
|
3429
|
+
this.promise = promise;
|
|
3430
|
+
this.resolve = resolve;
|
|
3431
|
+
this.reject = reject;
|
|
4200
3432
|
}
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
defer_effect(effects[i], this.#dirty_effects, this.#maybe_dirty_effects);
|
|
4204
|
-
}
|
|
3433
|
+
then(onfulfilled, onrejected) {
|
|
3434
|
+
return this.promise.then(onfulfilled, onrejected);
|
|
4205
3435
|
}
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
this.previous.set(source2, old_value);
|
|
4209
|
-
}
|
|
4210
|
-
if ((source2.f & ERROR_VALUE) === 0) {
|
|
4211
|
-
this.current.set(source2, source2.v);
|
|
4212
|
-
batch_values?.set(source2, source2.v);
|
|
4213
|
-
}
|
|
3436
|
+
catch(onrejected) {
|
|
3437
|
+
return this.promise.catch(onrejected);
|
|
4214
3438
|
}
|
|
4215
|
-
|
|
4216
|
-
|
|
3439
|
+
finally(onfinally) {
|
|
3440
|
+
return this.promise.finally(onfinally);
|
|
4217
3441
|
}
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
batch_values = null;
|
|
4221
|
-
}
|
|
4222
|
-
flush() {
|
|
4223
|
-
var source_stacks2 = true_default ? new Set : null;
|
|
4224
|
-
try {
|
|
4225
|
-
is_processing = true;
|
|
4226
|
-
current_batch = this;
|
|
4227
|
-
this.#process();
|
|
4228
|
-
} finally {
|
|
4229
|
-
flush_count = 0;
|
|
4230
|
-
last_scheduled_effect = null;
|
|
4231
|
-
collected_effects = null;
|
|
4232
|
-
legacy_updates = null;
|
|
4233
|
-
is_processing = false;
|
|
4234
|
-
current_batch = null;
|
|
4235
|
-
batch_values = null;
|
|
4236
|
-
old_values.clear();
|
|
4237
|
-
if (true_default) {
|
|
4238
|
-
for (const source2 of source_stacks2) {
|
|
4239
|
-
source2.updated = null;
|
|
4240
|
-
}
|
|
4241
|
-
}
|
|
4242
|
-
}
|
|
4243
|
-
}
|
|
4244
|
-
discard() {
|
|
4245
|
-
for (const fn of this.#discard_callbacks)
|
|
4246
|
-
fn(this);
|
|
4247
|
-
this.#discard_callbacks.clear();
|
|
4248
|
-
batches.delete(this);
|
|
4249
|
-
}
|
|
4250
|
-
#commit() {
|
|
4251
|
-
for (const batch of batches) {
|
|
4252
|
-
var is_earlier = batch.id < this.id;
|
|
4253
|
-
var sources = [];
|
|
4254
|
-
for (const [source3, value] of this.current) {
|
|
4255
|
-
if (batch.current.has(source3)) {
|
|
4256
|
-
if (is_earlier && value !== batch.current.get(source3)) {
|
|
4257
|
-
batch.current.set(source3, value);
|
|
4258
|
-
} else {
|
|
4259
|
-
continue;
|
|
4260
|
-
}
|
|
4261
|
-
}
|
|
4262
|
-
sources.push(source3);
|
|
4263
|
-
}
|
|
4264
|
-
var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
|
|
4265
|
-
if (others.length === 0) {
|
|
4266
|
-
if (is_earlier) {
|
|
4267
|
-
batch.discard();
|
|
4268
|
-
}
|
|
4269
|
-
} else if (sources.length > 0) {
|
|
4270
|
-
if (true_default) {
|
|
4271
|
-
invariant(batch.#roots.length === 0, "Batch has scheduled roots");
|
|
4272
|
-
}
|
|
4273
|
-
batch.activate();
|
|
4274
|
-
var marked2 = new Set;
|
|
4275
|
-
var checked = new Map;
|
|
4276
|
-
for (var source2 of sources) {
|
|
4277
|
-
mark_effects(source2, others, marked2, checked);
|
|
4278
|
-
}
|
|
4279
|
-
if (batch.#roots.length > 0) {
|
|
4280
|
-
batch.apply();
|
|
4281
|
-
for (var root of batch.#roots) {
|
|
4282
|
-
batch.#traverse(root, [], []);
|
|
4283
|
-
}
|
|
4284
|
-
batch.#roots = [];
|
|
4285
|
-
}
|
|
4286
|
-
batch.deactivate();
|
|
4287
|
-
}
|
|
4288
|
-
}
|
|
4289
|
-
}
|
|
4290
|
-
increment(blocking) {
|
|
4291
|
-
this.#pending += 1;
|
|
4292
|
-
if (blocking)
|
|
4293
|
-
this.#blocking_pending += 1;
|
|
4294
|
-
}
|
|
4295
|
-
decrement(blocking, skip) {
|
|
4296
|
-
this.#pending -= 1;
|
|
4297
|
-
if (blocking)
|
|
4298
|
-
this.#blocking_pending -= 1;
|
|
4299
|
-
if (this.#decrement_queued || skip)
|
|
4300
|
-
return;
|
|
4301
|
-
this.#decrement_queued = true;
|
|
4302
|
-
queue_micro_task(() => {
|
|
4303
|
-
this.#decrement_queued = false;
|
|
4304
|
-
this.flush();
|
|
4305
|
-
});
|
|
4306
|
-
}
|
|
4307
|
-
transfer_effects(dirty_effects, maybe_dirty_effects) {
|
|
4308
|
-
for (const e of dirty_effects) {
|
|
4309
|
-
this.#dirty_effects.add(e);
|
|
4310
|
-
}
|
|
4311
|
-
for (const e of maybe_dirty_effects) {
|
|
4312
|
-
this.#maybe_dirty_effects.add(e);
|
|
4313
|
-
}
|
|
4314
|
-
dirty_effects.clear();
|
|
4315
|
-
maybe_dirty_effects.clear();
|
|
4316
|
-
}
|
|
4317
|
-
oncommit(fn) {
|
|
4318
|
-
this.#commit_callbacks.add(fn);
|
|
4319
|
-
}
|
|
4320
|
-
ondiscard(fn) {
|
|
4321
|
-
this.#discard_callbacks.add(fn);
|
|
4322
|
-
}
|
|
4323
|
-
settled() {
|
|
4324
|
-
return (this.#deferred ??= deferred()).promise;
|
|
4325
|
-
}
|
|
4326
|
-
static ensure() {
|
|
4327
|
-
if (current_batch === null) {
|
|
4328
|
-
const batch = current_batch = new Batch;
|
|
4329
|
-
if (!is_processing) {
|
|
4330
|
-
batches.add(current_batch);
|
|
4331
|
-
if (!is_flushing_sync) {
|
|
4332
|
-
queue_micro_task(() => {
|
|
4333
|
-
if (current_batch !== batch) {
|
|
4334
|
-
return;
|
|
4335
|
-
}
|
|
4336
|
-
batch.flush();
|
|
4337
|
-
});
|
|
4338
|
-
}
|
|
4339
|
-
}
|
|
4340
|
-
}
|
|
4341
|
-
return current_batch;
|
|
4342
|
-
}
|
|
4343
|
-
apply() {
|
|
4344
|
-
if (!async_mode_flag || !this.is_fork && batches.size === 1) {
|
|
4345
|
-
batch_values = null;
|
|
4346
|
-
return;
|
|
4347
|
-
}
|
|
4348
|
-
batch_values = new Map(this.current);
|
|
4349
|
-
for (const batch of batches) {
|
|
4350
|
-
if (batch === this || batch.is_fork)
|
|
4351
|
-
continue;
|
|
4352
|
-
for (const [source2, previous] of batch.previous) {
|
|
4353
|
-
if (!batch_values.has(source2)) {
|
|
4354
|
-
batch_values.set(source2, previous);
|
|
4355
|
-
}
|
|
4356
|
-
}
|
|
4357
|
-
}
|
|
4358
|
-
}
|
|
4359
|
-
schedule(effect) {
|
|
4360
|
-
last_scheduled_effect = effect;
|
|
4361
|
-
if (effect.b?.is_pending && (effect.f & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 && (effect.f & REACTION_RAN) === 0) {
|
|
4362
|
-
effect.b.defer_effect(effect);
|
|
4363
|
-
return;
|
|
4364
|
-
}
|
|
4365
|
-
var e = effect;
|
|
4366
|
-
while (e.parent !== null) {
|
|
4367
|
-
e = e.parent;
|
|
4368
|
-
var flags = e.f;
|
|
4369
|
-
if (collected_effects !== null && e === active_effect) {
|
|
4370
|
-
if (async_mode_flag)
|
|
4371
|
-
return;
|
|
4372
|
-
if ((active_reaction === null || (active_reaction.f & DERIVED) === 0) && !legacy_is_updating_store) {
|
|
4373
|
-
return;
|
|
4374
|
-
}
|
|
4375
|
-
}
|
|
4376
|
-
if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
4377
|
-
if ((flags & CLEAN) === 0) {
|
|
4378
|
-
return;
|
|
4379
|
-
}
|
|
4380
|
-
e.f ^= CLEAN;
|
|
4381
|
-
}
|
|
4382
|
-
}
|
|
4383
|
-
this.#roots.push(e);
|
|
3442
|
+
toPromise() {
|
|
3443
|
+
return this.promise;
|
|
4384
3444
|
}
|
|
3445
|
+
[Symbol.toStringTag] = "Flag";
|
|
4385
3446
|
}
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
updates.set(stack, entry);
|
|
4395
|
-
}
|
|
4396
|
-
entry.count += update2.count;
|
|
4397
|
-
}
|
|
4398
|
-
}
|
|
4399
|
-
for (const update2 of updates.values()) {
|
|
4400
|
-
if (update2.error) {
|
|
4401
|
-
console.error(update2.error);
|
|
4402
|
-
}
|
|
4403
|
-
}
|
|
3447
|
+
|
|
3448
|
+
// src/lib/client/utils/future-value.ts
|
|
3449
|
+
class FutureValue {
|
|
3450
|
+
hasValue = new Flag;
|
|
3451
|
+
currentValue;
|
|
3452
|
+
setValue(value) {
|
|
3453
|
+
this.currentValue = value;
|
|
3454
|
+
this.hasValue.resolve();
|
|
4404
3455
|
}
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
} catch (error) {
|
|
4408
|
-
if (true_default) {
|
|
4409
|
-
define_property(error, "stack", { value: "" });
|
|
4410
|
-
}
|
|
4411
|
-
invoke_error_boundary(error, last_scheduled_effect);
|
|
3456
|
+
cleanup(reason) {
|
|
3457
|
+
this.hasValue.reject(reason);
|
|
4412
3458
|
}
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
function flush_queued_effects(effects) {
|
|
4416
|
-
var length = effects.length;
|
|
4417
|
-
if (length === 0)
|
|
4418
|
-
return;
|
|
4419
|
-
var i = 0;
|
|
4420
|
-
while (i < length) {
|
|
4421
|
-
var effect = effects[i++];
|
|
4422
|
-
if ((effect.f & (DESTROYED | INERT)) === 0 && is_dirty(effect)) {
|
|
4423
|
-
eager_block_effects = new Set;
|
|
4424
|
-
update_effect(effect);
|
|
4425
|
-
if (effect.deps === null && effect.first === null && effect.nodes === null && effect.teardown === null && effect.ac === null) {
|
|
4426
|
-
unlink_effect(effect);
|
|
4427
|
-
}
|
|
4428
|
-
if (eager_block_effects?.size > 0) {
|
|
4429
|
-
old_values.clear();
|
|
4430
|
-
for (const e of eager_block_effects) {
|
|
4431
|
-
if ((e.f & (DESTROYED | INERT)) !== 0)
|
|
4432
|
-
continue;
|
|
4433
|
-
const ordered_effects = [e];
|
|
4434
|
-
let ancestor = e.parent;
|
|
4435
|
-
while (ancestor !== null) {
|
|
4436
|
-
if (eager_block_effects.has(ancestor)) {
|
|
4437
|
-
eager_block_effects.delete(ancestor);
|
|
4438
|
-
ordered_effects.push(ancestor);
|
|
4439
|
-
}
|
|
4440
|
-
ancestor = ancestor.parent;
|
|
4441
|
-
}
|
|
4442
|
-
for (let j = ordered_effects.length - 1;j >= 0; j--) {
|
|
4443
|
-
const e2 = ordered_effects[j];
|
|
4444
|
-
if ((e2.f & (DESTROYED | INERT)) !== 0)
|
|
4445
|
-
continue;
|
|
4446
|
-
update_effect(e2);
|
|
4447
|
-
}
|
|
4448
|
-
}
|
|
4449
|
-
eager_block_effects.clear();
|
|
4450
|
-
}
|
|
4451
|
-
}
|
|
3459
|
+
getCurrentValue() {
|
|
3460
|
+
return this.currentValue;
|
|
4452
3461
|
}
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
if (marked2.has(value))
|
|
4457
|
-
return;
|
|
4458
|
-
marked2.add(value);
|
|
4459
|
-
if (value.reactions !== null) {
|
|
4460
|
-
for (const reaction of value.reactions) {
|
|
4461
|
-
const flags = reaction.f;
|
|
4462
|
-
if ((flags & DERIVED) !== 0) {
|
|
4463
|
-
mark_effects(reaction, sources, marked2, checked);
|
|
4464
|
-
} else if ((flags & (ASYNC | BLOCK_EFFECT)) !== 0 && (flags & DIRTY) === 0 && depends_on(reaction, sources, checked)) {
|
|
4465
|
-
set_signal_status(reaction, DIRTY);
|
|
4466
|
-
schedule_effect(reaction);
|
|
4467
|
-
}
|
|
4468
|
-
}
|
|
4469
|
-
}
|
|
4470
|
-
}
|
|
4471
|
-
function depends_on(reaction, sources, checked) {
|
|
4472
|
-
const depends = checked.get(reaction);
|
|
4473
|
-
if (depends !== undefined)
|
|
4474
|
-
return depends;
|
|
4475
|
-
if (reaction.deps !== null) {
|
|
4476
|
-
for (const dep of reaction.deps) {
|
|
4477
|
-
if (includes.call(sources, dep)) {
|
|
4478
|
-
return true;
|
|
4479
|
-
}
|
|
4480
|
-
if ((dep.f & DERIVED) !== 0 && depends_on(dep, sources, checked)) {
|
|
4481
|
-
checked.set(dep, true);
|
|
4482
|
-
return true;
|
|
4483
|
-
}
|
|
4484
|
-
}
|
|
3462
|
+
async toPromise() {
|
|
3463
|
+
await this.hasValue;
|
|
3464
|
+
return this.currentValue;
|
|
4485
3465
|
}
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
}
|
|
4489
|
-
function schedule_effect(effect) {
|
|
4490
|
-
current_batch.schedule(effect);
|
|
4491
|
-
}
|
|
4492
|
-
function reset_branch(effect, tracked) {
|
|
4493
|
-
if ((effect.f & BRANCH_EFFECT) !== 0 && (effect.f & CLEAN) !== 0) {
|
|
4494
|
-
return;
|
|
3466
|
+
then(onfulfilled, onrejected) {
|
|
3467
|
+
return this.toPromise().then(onfulfilled, onrejected);
|
|
4495
3468
|
}
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
} else if ((effect.f & MAYBE_DIRTY) !== 0) {
|
|
4499
|
-
tracked.m.push(effect);
|
|
3469
|
+
catch(onrejected) {
|
|
3470
|
+
return this.toPromise().catch(onrejected);
|
|
4500
3471
|
}
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
while (e !== null) {
|
|
4504
|
-
reset_branch(e, tracked);
|
|
4505
|
-
e = e.next;
|
|
3472
|
+
finally(onfinally) {
|
|
3473
|
+
return this.toPromise().finally(onfinally);
|
|
4506
3474
|
}
|
|
3475
|
+
[Symbol.toStringTag] = "FutureValue";
|
|
4507
3476
|
}
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
3477
|
+
|
|
3478
|
+
// src/lib/client/utils/get-domain-name.ts
|
|
3479
|
+
var getDomainName = (url) => {
|
|
3480
|
+
try {
|
|
3481
|
+
const urlObj = new URL(url);
|
|
3482
|
+
return urlObj.hostname;
|
|
3483
|
+
} catch {
|
|
3484
|
+
return url;
|
|
4514
3485
|
}
|
|
4515
|
-
}
|
|
3486
|
+
};
|
|
4516
3487
|
|
|
4517
|
-
//
|
|
4518
|
-
function
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
let stop;
|
|
4522
|
-
if (true_default) {
|
|
4523
|
-
tag2(version, "createSubscriber version");
|
|
4524
|
-
}
|
|
4525
|
-
return () => {
|
|
4526
|
-
if (effect_tracking()) {
|
|
4527
|
-
get(version);
|
|
4528
|
-
render_effect(() => {
|
|
4529
|
-
if (subscribers === 0) {
|
|
4530
|
-
stop = untrack(() => start(() => increment(version)));
|
|
4531
|
-
}
|
|
4532
|
-
subscribers += 1;
|
|
4533
|
-
return () => {
|
|
4534
|
-
queue_micro_task(() => {
|
|
4535
|
-
subscribers -= 1;
|
|
4536
|
-
if (subscribers === 0) {
|
|
4537
|
-
stop?.();
|
|
4538
|
-
stop = undefined;
|
|
4539
|
-
increment(version);
|
|
4540
|
-
}
|
|
4541
|
-
});
|
|
4542
|
-
};
|
|
4543
|
-
});
|
|
4544
|
-
}
|
|
4545
|
-
};
|
|
3488
|
+
// src/lib/client/utils/html-to-text.ts
|
|
3489
|
+
function htmlToText(html3) {
|
|
3490
|
+
const text2 = html3.replace(/<[^>]*>/g, "").replace(/ /g, " ").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"');
|
|
3491
|
+
return text2;
|
|
4546
3492
|
}
|
|
4547
3493
|
|
|
4548
|
-
//
|
|
4549
|
-
var
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
}
|
|
4574
|
-
return () => {
|
|
4575
|
-
this.#effect_pending = null;
|
|
4576
|
-
};
|
|
4577
|
-
});
|
|
4578
|
-
constructor(node, props, children, transform_error) {
|
|
4579
|
-
this.#anchor = node;
|
|
4580
|
-
this.#props = props;
|
|
4581
|
-
this.#children = (anchor) => {
|
|
4582
|
-
var effect = active_effect;
|
|
4583
|
-
effect.b = this;
|
|
4584
|
-
effect.f |= BOUNDARY_EFFECT;
|
|
4585
|
-
children(anchor);
|
|
4586
|
-
};
|
|
4587
|
-
this.parent = active_effect.b;
|
|
4588
|
-
this.transform_error = transform_error ?? this.parent?.transform_error ?? ((e) => e);
|
|
4589
|
-
this.#effect = block2(() => {
|
|
4590
|
-
if (hydrating) {
|
|
4591
|
-
const comment = this.#hydrate_open;
|
|
4592
|
-
hydrate_next();
|
|
4593
|
-
const server_rendered_pending = comment.data === HYDRATION_START_ELSE;
|
|
4594
|
-
const server_rendered_failed = comment.data.startsWith(HYDRATION_START_FAILED);
|
|
4595
|
-
if (server_rendered_failed) {
|
|
4596
|
-
const serialized_error = JSON.parse(comment.data.slice(HYDRATION_START_FAILED.length));
|
|
4597
|
-
this.#hydrate_failed_content(serialized_error);
|
|
4598
|
-
} else if (server_rendered_pending) {
|
|
4599
|
-
this.#hydrate_pending_content();
|
|
4600
|
-
} else {
|
|
4601
|
-
this.#hydrate_resolved_content();
|
|
4602
|
-
}
|
|
4603
|
-
} else {
|
|
4604
|
-
this.#render();
|
|
3494
|
+
// src/lib/client/chat-result-builder.ts
|
|
3495
|
+
var mapSseReference = ({
|
|
3496
|
+
url,
|
|
3497
|
+
considered,
|
|
3498
|
+
title,
|
|
3499
|
+
description,
|
|
3500
|
+
summary
|
|
3501
|
+
}) => {
|
|
3502
|
+
const domainName = getDomainName(url);
|
|
3503
|
+
const desc = description || summary;
|
|
3504
|
+
return {
|
|
3505
|
+
url,
|
|
3506
|
+
considered,
|
|
3507
|
+
referenceIndex: {},
|
|
3508
|
+
score: 0,
|
|
3509
|
+
metadata: {},
|
|
3510
|
+
display: {
|
|
3511
|
+
card: {
|
|
3512
|
+
title,
|
|
3513
|
+
description: desc,
|
|
3514
|
+
badge: url
|
|
3515
|
+
},
|
|
3516
|
+
listItem: {
|
|
3517
|
+
title,
|
|
3518
|
+
badge: domainName
|
|
4605
3519
|
}
|
|
4606
|
-
}, flags);
|
|
4607
|
-
if (hydrating) {
|
|
4608
|
-
this.#anchor = hydrate_node;
|
|
4609
3520
|
}
|
|
3521
|
+
};
|
|
3522
|
+
};
|
|
3523
|
+
|
|
3524
|
+
class ChatResultBuilder {
|
|
3525
|
+
options;
|
|
3526
|
+
store;
|
|
3527
|
+
content = new FutureValue;
|
|
3528
|
+
backendSendsMappedRefs = false;
|
|
3529
|
+
constructor(options2) {
|
|
3530
|
+
this.options = options2;
|
|
3531
|
+
this.store = writable({
|
|
3532
|
+
id: options2.id,
|
|
3533
|
+
state: "loading",
|
|
3534
|
+
errors: [],
|
|
3535
|
+
type: "bot",
|
|
3536
|
+
time: new Date().toISOString(),
|
|
3537
|
+
message: { markdown: "", html: "", text: "" },
|
|
3538
|
+
references: { all: [], used: [], unused: [] },
|
|
3539
|
+
retrievalQuestion: options2.userQuestion
|
|
3540
|
+
});
|
|
4610
3541
|
}
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
} catch (error) {
|
|
4615
|
-
this.error(error);
|
|
4616
|
-
}
|
|
3542
|
+
pushError(error) {
|
|
3543
|
+
this.options.onError?.(error);
|
|
3544
|
+
this.store.update((current) => ({ ...current, errors: [...current.errors, error] }));
|
|
4617
3545
|
}
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
3546
|
+
updateRequestId(id) {
|
|
3547
|
+
this.store.update((current) => ({
|
|
3548
|
+
...current,
|
|
3549
|
+
id
|
|
3550
|
+
}));
|
|
3551
|
+
}
|
|
3552
|
+
updateText(text2) {
|
|
3553
|
+
this.store.update((current) => {
|
|
3554
|
+
const nextMarkdown = current.message.markdown + text2;
|
|
3555
|
+
const html3 = this.options.markdownRenderer.toHTML(nextMarkdown, current.references);
|
|
3556
|
+
return {
|
|
3557
|
+
...current,
|
|
3558
|
+
state: "streaming",
|
|
3559
|
+
message: { markdown: nextMarkdown, html: html3, text: "" }
|
|
3560
|
+
};
|
|
4624
3561
|
});
|
|
4625
3562
|
}
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
return branch(() => this.#children(anchor));
|
|
4638
|
-
});
|
|
4639
|
-
if (this.#pending_count === 0) {
|
|
4640
|
-
this.#anchor.before(fragment);
|
|
4641
|
-
this.#offscreen_fragment = null;
|
|
4642
|
-
pause_effect(this.#pending_effect, () => {
|
|
4643
|
-
this.#pending_effect = null;
|
|
4644
|
-
});
|
|
4645
|
-
this.#resolve(current_batch);
|
|
4646
|
-
}
|
|
3563
|
+
finishMessage() {
|
|
3564
|
+
this.store.update((current) => {
|
|
3565
|
+
const message = {
|
|
3566
|
+
...current,
|
|
3567
|
+
state: "done"
|
|
3568
|
+
};
|
|
3569
|
+
message.references.unused = message.references.all.filter((reference) => reference.referenceIndex.used === undefined);
|
|
3570
|
+
message.message.text = htmlToText(message.message.html);
|
|
3571
|
+
this.options?.onFinish?.(message);
|
|
3572
|
+
this.content.setValue(message);
|
|
3573
|
+
return message;
|
|
4647
3574
|
});
|
|
4648
3575
|
}
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
} catch (error) {
|
|
4666
|
-
this.error(error);
|
|
4667
|
-
}
|
|
3576
|
+
addReference(reference) {
|
|
3577
|
+
this.store.update((current) => {
|
|
3578
|
+
const allRefs = current.references.all;
|
|
3579
|
+
const nextIndex = allRefs.length;
|
|
3580
|
+
const nextAllRefs = [
|
|
3581
|
+
...allRefs,
|
|
3582
|
+
{
|
|
3583
|
+
...reference,
|
|
3584
|
+
referenceIndex: { all: nextIndex }
|
|
3585
|
+
}
|
|
3586
|
+
];
|
|
3587
|
+
return {
|
|
3588
|
+
...current,
|
|
3589
|
+
references: { used: current.references.used, all: nextAllRefs }
|
|
3590
|
+
};
|
|
3591
|
+
});
|
|
4668
3592
|
}
|
|
4669
|
-
|
|
4670
|
-
this.
|
|
4671
|
-
|
|
3593
|
+
addMappedReference(reference) {
|
|
3594
|
+
this.backendSendsMappedRefs = true;
|
|
3595
|
+
this.addReference(reference);
|
|
4672
3596
|
}
|
|
4673
|
-
|
|
4674
|
-
|
|
3597
|
+
addOldReference(oldReference) {
|
|
3598
|
+
if (!this.backendSendsMappedRefs)
|
|
3599
|
+
this.addReference(mapSseReference(oldReference));
|
|
4675
3600
|
}
|
|
4676
|
-
|
|
4677
|
-
|
|
3601
|
+
updateRetrievalQuestion(question) {
|
|
3602
|
+
this.store.update((current) => ({
|
|
3603
|
+
...current,
|
|
3604
|
+
retrievalQuestion: question
|
|
3605
|
+
}));
|
|
4678
3606
|
}
|
|
4679
|
-
|
|
4680
|
-
|
|
3607
|
+
setNoFeedback() {
|
|
3608
|
+
this.store.update((current) => ({
|
|
3609
|
+
...current,
|
|
3610
|
+
noFeedback: true
|
|
3611
|
+
}));
|
|
4681
3612
|
}
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
var previous_reaction = active_reaction;
|
|
4685
|
-
var previous_ctx = component_context;
|
|
4686
|
-
set_active_effect(this.#effect);
|
|
4687
|
-
set_active_reaction(this.#effect);
|
|
4688
|
-
set_component_context(this.#effect.ctx);
|
|
4689
|
-
try {
|
|
4690
|
-
Batch.ensure();
|
|
4691
|
-
return fn();
|
|
4692
|
-
} catch (e) {
|
|
4693
|
-
handle_error(e);
|
|
4694
|
-
return null;
|
|
4695
|
-
} finally {
|
|
4696
|
-
set_active_effect(previous_effect);
|
|
4697
|
-
set_active_reaction(previous_reaction);
|
|
4698
|
-
set_component_context(previous_ctx);
|
|
4699
|
-
}
|
|
3613
|
+
getReadableStore() {
|
|
3614
|
+
return { subscribe: this.store.subscribe };
|
|
4700
3615
|
}
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
if (this.parent) {
|
|
4704
|
-
this.parent.#update_pending_count(d, batch);
|
|
4705
|
-
}
|
|
4706
|
-
return;
|
|
4707
|
-
}
|
|
4708
|
-
this.#pending_count += d;
|
|
4709
|
-
if (this.#pending_count === 0) {
|
|
4710
|
-
this.#resolve(batch);
|
|
4711
|
-
if (this.#pending_effect) {
|
|
4712
|
-
pause_effect(this.#pending_effect, () => {
|
|
4713
|
-
this.#pending_effect = null;
|
|
4714
|
-
});
|
|
4715
|
-
}
|
|
4716
|
-
if (this.#offscreen_fragment) {
|
|
4717
|
-
this.#anchor.before(this.#offscreen_fragment);
|
|
4718
|
-
this.#offscreen_fragment = null;
|
|
4719
|
-
}
|
|
4720
|
-
}
|
|
4721
|
-
}
|
|
4722
|
-
update_pending_count(d, batch) {
|
|
4723
|
-
this.#update_pending_count(d, batch);
|
|
4724
|
-
this.#local_pending_count += d;
|
|
4725
|
-
if (!this.#effect_pending || this.#pending_count_update_queued)
|
|
4726
|
-
return;
|
|
4727
|
-
this.#pending_count_update_queued = true;
|
|
4728
|
-
queue_micro_task(() => {
|
|
4729
|
-
this.#pending_count_update_queued = false;
|
|
4730
|
-
if (this.#effect_pending) {
|
|
4731
|
-
internal_set(this.#effect_pending, this.#local_pending_count);
|
|
4732
|
-
}
|
|
4733
|
-
});
|
|
4734
|
-
}
|
|
4735
|
-
get_effect_pending() {
|
|
4736
|
-
this.#effect_pending_subscriber();
|
|
4737
|
-
return get(this.#effect_pending);
|
|
4738
|
-
}
|
|
4739
|
-
error(error) {
|
|
4740
|
-
var onerror = this.#props.onerror;
|
|
4741
|
-
let failed = this.#props.failed;
|
|
4742
|
-
if (!onerror && !failed) {
|
|
4743
|
-
throw error;
|
|
4744
|
-
}
|
|
4745
|
-
if (this.#main_effect) {
|
|
4746
|
-
destroy_effect(this.#main_effect);
|
|
4747
|
-
this.#main_effect = null;
|
|
4748
|
-
}
|
|
4749
|
-
if (this.#pending_effect) {
|
|
4750
|
-
destroy_effect(this.#pending_effect);
|
|
4751
|
-
this.#pending_effect = null;
|
|
4752
|
-
}
|
|
4753
|
-
if (this.#failed_effect) {
|
|
4754
|
-
destroy_effect(this.#failed_effect);
|
|
4755
|
-
this.#failed_effect = null;
|
|
4756
|
-
}
|
|
4757
|
-
if (hydrating) {
|
|
4758
|
-
set_hydrate_node(this.#hydrate_open);
|
|
4759
|
-
next();
|
|
4760
|
-
set_hydrate_node(skip_nodes());
|
|
4761
|
-
}
|
|
4762
|
-
var did_reset = false;
|
|
4763
|
-
var calling_on_error = false;
|
|
4764
|
-
const reset = () => {
|
|
4765
|
-
if (did_reset) {
|
|
4766
|
-
svelte_boundary_reset_noop();
|
|
4767
|
-
return;
|
|
4768
|
-
}
|
|
4769
|
-
did_reset = true;
|
|
4770
|
-
if (calling_on_error) {
|
|
4771
|
-
svelte_boundary_reset_onerror();
|
|
4772
|
-
}
|
|
4773
|
-
if (this.#failed_effect !== null) {
|
|
4774
|
-
pause_effect(this.#failed_effect, () => {
|
|
4775
|
-
this.#failed_effect = null;
|
|
4776
|
-
});
|
|
4777
|
-
}
|
|
4778
|
-
this.#run(() => {
|
|
4779
|
-
this.#render();
|
|
4780
|
-
});
|
|
4781
|
-
};
|
|
4782
|
-
const handle_error_result = (transformed_error) => {
|
|
4783
|
-
try {
|
|
4784
|
-
calling_on_error = true;
|
|
4785
|
-
onerror?.(transformed_error, reset);
|
|
4786
|
-
calling_on_error = false;
|
|
4787
|
-
} catch (error2) {
|
|
4788
|
-
invoke_error_boundary(error2, this.#effect && this.#effect.parent);
|
|
4789
|
-
}
|
|
4790
|
-
if (failed) {
|
|
4791
|
-
this.#failed_effect = this.#run(() => {
|
|
4792
|
-
try {
|
|
4793
|
-
return branch(() => {
|
|
4794
|
-
var effect = active_effect;
|
|
4795
|
-
effect.b = this;
|
|
4796
|
-
effect.f |= BOUNDARY_EFFECT;
|
|
4797
|
-
failed(this.#anchor, () => transformed_error, () => reset);
|
|
4798
|
-
});
|
|
4799
|
-
} catch (error2) {
|
|
4800
|
-
invoke_error_boundary(error2, this.#effect.parent);
|
|
4801
|
-
return null;
|
|
4802
|
-
}
|
|
4803
|
-
});
|
|
4804
|
-
}
|
|
4805
|
-
};
|
|
4806
|
-
queue_micro_task(() => {
|
|
4807
|
-
var result;
|
|
4808
|
-
try {
|
|
4809
|
-
result = this.transform_error(error);
|
|
4810
|
-
} catch (e) {
|
|
4811
|
-
invoke_error_boundary(e, this.#effect && this.#effect.parent);
|
|
4812
|
-
return;
|
|
4813
|
-
}
|
|
4814
|
-
if (result !== null && typeof result === "object" && typeof result.then === "function") {
|
|
4815
|
-
result.then(handle_error_result, (e) => invoke_error_boundary(e, this.#effect && this.#effect.parent));
|
|
4816
|
-
} else {
|
|
4817
|
-
handle_error_result(result);
|
|
4818
|
-
}
|
|
4819
|
-
});
|
|
4820
|
-
}
|
|
4821
|
-
}
|
|
4822
|
-
|
|
4823
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/deriveds.js
|
|
4824
|
-
var reactivity_loss_tracker = null;
|
|
4825
|
-
var recent_async_deriveds = new Set;
|
|
4826
|
-
function destroy_derived_effects(derived2) {
|
|
4827
|
-
var effects = derived2.effects;
|
|
4828
|
-
if (effects !== null) {
|
|
4829
|
-
derived2.effects = null;
|
|
4830
|
-
for (var i = 0;i < effects.length; i += 1) {
|
|
4831
|
-
destroy_effect(effects[i]);
|
|
4832
|
-
}
|
|
4833
|
-
}
|
|
4834
|
-
}
|
|
4835
|
-
var stack = [];
|
|
4836
|
-
function get_derived_parent_effect(derived2) {
|
|
4837
|
-
var parent = derived2.parent;
|
|
4838
|
-
while (parent !== null) {
|
|
4839
|
-
if ((parent.f & DERIVED) === 0) {
|
|
4840
|
-
return (parent.f & DESTROYED) === 0 ? parent : null;
|
|
4841
|
-
}
|
|
4842
|
-
parent = parent.parent;
|
|
4843
|
-
}
|
|
4844
|
-
return null;
|
|
4845
|
-
}
|
|
4846
|
-
function execute_derived(derived2) {
|
|
4847
|
-
var value;
|
|
4848
|
-
var prev_active_effect = active_effect;
|
|
4849
|
-
set_active_effect(get_derived_parent_effect(derived2));
|
|
4850
|
-
if (true_default) {
|
|
4851
|
-
let prev_eager_effects = eager_effects;
|
|
4852
|
-
set_eager_effects(new Set);
|
|
4853
|
-
try {
|
|
4854
|
-
if (includes.call(stack, derived2)) {
|
|
4855
|
-
derived_references_self();
|
|
4856
|
-
}
|
|
4857
|
-
stack.push(derived2);
|
|
4858
|
-
derived2.f &= ~WAS_MARKED;
|
|
4859
|
-
destroy_derived_effects(derived2);
|
|
4860
|
-
value = update_reaction(derived2);
|
|
4861
|
-
} finally {
|
|
4862
|
-
set_active_effect(prev_active_effect);
|
|
4863
|
-
set_eager_effects(prev_eager_effects);
|
|
4864
|
-
stack.pop();
|
|
4865
|
-
}
|
|
4866
|
-
} else {
|
|
4867
|
-
try {
|
|
4868
|
-
derived2.f &= ~WAS_MARKED;
|
|
4869
|
-
destroy_derived_effects(derived2);
|
|
4870
|
-
value = update_reaction(derived2);
|
|
4871
|
-
} finally {
|
|
4872
|
-
set_active_effect(prev_active_effect);
|
|
4873
|
-
}
|
|
4874
|
-
}
|
|
4875
|
-
return value;
|
|
4876
|
-
}
|
|
4877
|
-
function update_derived(derived2) {
|
|
4878
|
-
var old_value = derived2.v;
|
|
4879
|
-
var value = execute_derived(derived2);
|
|
4880
|
-
if (!derived2.equals(value)) {
|
|
4881
|
-
derived2.wv = increment_write_version();
|
|
4882
|
-
if (!current_batch?.is_fork || derived2.deps === null) {
|
|
4883
|
-
derived2.v = value;
|
|
4884
|
-
current_batch?.capture(derived2, old_value);
|
|
4885
|
-
if (derived2.deps === null) {
|
|
4886
|
-
set_signal_status(derived2, CLEAN);
|
|
4887
|
-
return;
|
|
4888
|
-
}
|
|
4889
|
-
}
|
|
4890
|
-
}
|
|
4891
|
-
if (is_destroying_effect) {
|
|
4892
|
-
return;
|
|
4893
|
-
}
|
|
4894
|
-
if (batch_values !== null) {
|
|
4895
|
-
if (effect_tracking() || current_batch?.is_fork) {
|
|
4896
|
-
batch_values.set(derived2, value);
|
|
4897
|
-
}
|
|
4898
|
-
} else {
|
|
4899
|
-
update_derived_status(derived2);
|
|
4900
|
-
}
|
|
4901
|
-
}
|
|
4902
|
-
function freeze_derived_effects(derived2) {
|
|
4903
|
-
if (derived2.effects === null)
|
|
4904
|
-
return;
|
|
4905
|
-
for (const e of derived2.effects) {
|
|
4906
|
-
if (e.teardown || e.ac) {
|
|
4907
|
-
e.teardown?.();
|
|
4908
|
-
e.ac?.abort(STALE_REACTION);
|
|
4909
|
-
e.teardown = noop;
|
|
4910
|
-
e.ac = null;
|
|
4911
|
-
remove_reactions(e, 0);
|
|
4912
|
-
destroy_effect_children(e);
|
|
4913
|
-
}
|
|
4914
|
-
}
|
|
4915
|
-
}
|
|
4916
|
-
function unfreeze_derived_effects(derived2) {
|
|
4917
|
-
if (derived2.effects === null)
|
|
4918
|
-
return;
|
|
4919
|
-
for (const e of derived2.effects) {
|
|
4920
|
-
if (e.teardown) {
|
|
4921
|
-
update_effect(e);
|
|
4922
|
-
}
|
|
4923
|
-
}
|
|
4924
|
-
}
|
|
4925
|
-
|
|
4926
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
4927
|
-
var eager_effects = new Set;
|
|
4928
|
-
var old_values = new Map;
|
|
4929
|
-
function set_eager_effects(v) {
|
|
4930
|
-
eager_effects = v;
|
|
4931
|
-
}
|
|
4932
|
-
var eager_effects_deferred = false;
|
|
4933
|
-
function set_eager_effects_deferred() {
|
|
4934
|
-
eager_effects_deferred = true;
|
|
4935
|
-
}
|
|
4936
|
-
function source(v, stack2) {
|
|
4937
|
-
var signal = {
|
|
4938
|
-
f: 0,
|
|
4939
|
-
v,
|
|
4940
|
-
reactions: null,
|
|
4941
|
-
equals,
|
|
4942
|
-
rv: 0,
|
|
4943
|
-
wv: 0
|
|
4944
|
-
};
|
|
4945
|
-
if (true_default && tracing_mode_flag) {
|
|
4946
|
-
signal.created = stack2 ?? get_error("created at");
|
|
4947
|
-
signal.updated = null;
|
|
4948
|
-
signal.set_during_effect = false;
|
|
4949
|
-
signal.trace = null;
|
|
4950
|
-
}
|
|
4951
|
-
return signal;
|
|
4952
|
-
}
|
|
4953
|
-
function state(v, stack2) {
|
|
4954
|
-
const s = source(v, stack2);
|
|
4955
|
-
push_reaction_value(s);
|
|
4956
|
-
return s;
|
|
4957
|
-
}
|
|
4958
|
-
function set(source2, value, should_proxy = false) {
|
|
4959
|
-
if (active_reaction !== null && (!untracking || (active_reaction.f & EAGER_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | EAGER_EFFECT)) !== 0 && (current_sources === null || !includes.call(current_sources, source2))) {
|
|
4960
|
-
state_unsafe_mutation();
|
|
4961
|
-
}
|
|
4962
|
-
let new_value = should_proxy ? proxy(value) : value;
|
|
4963
|
-
if (true_default) {
|
|
4964
|
-
tag_proxy(new_value, source2.label);
|
|
4965
|
-
}
|
|
4966
|
-
return internal_set(source2, new_value, legacy_updates);
|
|
4967
|
-
}
|
|
4968
|
-
function internal_set(source2, value, updated_during_traversal = null) {
|
|
4969
|
-
if (!source2.equals(value)) {
|
|
4970
|
-
var old_value = source2.v;
|
|
4971
|
-
if (is_destroying_effect) {
|
|
4972
|
-
old_values.set(source2, value);
|
|
4973
|
-
} else {
|
|
4974
|
-
old_values.set(source2, old_value);
|
|
4975
|
-
}
|
|
4976
|
-
source2.v = value;
|
|
4977
|
-
var batch = Batch.ensure();
|
|
4978
|
-
batch.capture(source2, old_value);
|
|
4979
|
-
if (true_default) {
|
|
4980
|
-
if (tracing_mode_flag || active_effect !== null) {
|
|
4981
|
-
source2.updated ??= new Map;
|
|
4982
|
-
const count = (source2.updated.get("")?.count ?? 0) + 1;
|
|
4983
|
-
source2.updated.set("", { error: null, count });
|
|
4984
|
-
if (tracing_mode_flag || count > 5) {
|
|
4985
|
-
const error = get_error("updated at");
|
|
4986
|
-
if (error !== null) {
|
|
4987
|
-
let entry = source2.updated.get(error.stack);
|
|
4988
|
-
if (!entry) {
|
|
4989
|
-
entry = { error, count: 0 };
|
|
4990
|
-
source2.updated.set(error.stack, entry);
|
|
4991
|
-
}
|
|
4992
|
-
entry.count++;
|
|
4993
|
-
}
|
|
4994
|
-
}
|
|
4995
|
-
}
|
|
4996
|
-
if (active_effect !== null) {
|
|
4997
|
-
source2.set_during_effect = true;
|
|
4998
|
-
}
|
|
4999
|
-
}
|
|
5000
|
-
if ((source2.f & DERIVED) !== 0) {
|
|
5001
|
-
const derived2 = source2;
|
|
5002
|
-
if ((source2.f & DIRTY) !== 0) {
|
|
5003
|
-
execute_derived(derived2);
|
|
5004
|
-
}
|
|
5005
|
-
if (batch_values === null) {
|
|
5006
|
-
update_derived_status(derived2);
|
|
5007
|
-
}
|
|
5008
|
-
}
|
|
5009
|
-
source2.wv = increment_write_version();
|
|
5010
|
-
mark_reactions(source2, DIRTY, updated_during_traversal);
|
|
5011
|
-
if (is_runes() && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
|
|
5012
|
-
if (untracked_writes === null) {
|
|
5013
|
-
set_untracked_writes([source2]);
|
|
5014
|
-
} else {
|
|
5015
|
-
untracked_writes.push(source2);
|
|
5016
|
-
}
|
|
5017
|
-
}
|
|
5018
|
-
if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) {
|
|
5019
|
-
flush_eager_effects();
|
|
5020
|
-
}
|
|
5021
|
-
}
|
|
5022
|
-
return value;
|
|
5023
|
-
}
|
|
5024
|
-
function flush_eager_effects() {
|
|
5025
|
-
eager_effects_deferred = false;
|
|
5026
|
-
for (const effect of eager_effects) {
|
|
5027
|
-
if ((effect.f & CLEAN) !== 0) {
|
|
5028
|
-
set_signal_status(effect, MAYBE_DIRTY);
|
|
5029
|
-
}
|
|
5030
|
-
if (is_dirty(effect)) {
|
|
5031
|
-
update_effect(effect);
|
|
5032
|
-
}
|
|
5033
|
-
}
|
|
5034
|
-
eager_effects.clear();
|
|
5035
|
-
}
|
|
5036
|
-
function increment(source2) {
|
|
5037
|
-
set(source2, source2.v + 1);
|
|
5038
|
-
}
|
|
5039
|
-
function mark_reactions(signal, status, updated_during_traversal) {
|
|
5040
|
-
var reactions = signal.reactions;
|
|
5041
|
-
if (reactions === null)
|
|
5042
|
-
return;
|
|
5043
|
-
var runes = is_runes();
|
|
5044
|
-
var length = reactions.length;
|
|
5045
|
-
for (var i = 0;i < length; i++) {
|
|
5046
|
-
var reaction = reactions[i];
|
|
5047
|
-
var flags2 = reaction.f;
|
|
5048
|
-
if (!runes && reaction === active_effect)
|
|
5049
|
-
continue;
|
|
5050
|
-
if (true_default && (flags2 & EAGER_EFFECT) !== 0) {
|
|
5051
|
-
eager_effects.add(reaction);
|
|
5052
|
-
continue;
|
|
5053
|
-
}
|
|
5054
|
-
var not_dirty = (flags2 & DIRTY) === 0;
|
|
5055
|
-
if (not_dirty) {
|
|
5056
|
-
set_signal_status(reaction, status);
|
|
5057
|
-
}
|
|
5058
|
-
if ((flags2 & DERIVED) !== 0) {
|
|
5059
|
-
var derived2 = reaction;
|
|
5060
|
-
batch_values?.delete(derived2);
|
|
5061
|
-
if ((flags2 & WAS_MARKED) === 0) {
|
|
5062
|
-
if (flags2 & CONNECTED) {
|
|
5063
|
-
reaction.f |= WAS_MARKED;
|
|
5064
|
-
}
|
|
5065
|
-
mark_reactions(derived2, MAYBE_DIRTY, updated_during_traversal);
|
|
5066
|
-
}
|
|
5067
|
-
} else if (not_dirty) {
|
|
5068
|
-
var effect = reaction;
|
|
5069
|
-
if ((flags2 & BLOCK_EFFECT) !== 0 && eager_block_effects !== null) {
|
|
5070
|
-
eager_block_effects.add(effect);
|
|
5071
|
-
}
|
|
5072
|
-
if (updated_during_traversal !== null) {
|
|
5073
|
-
updated_during_traversal.push(effect);
|
|
5074
|
-
} else {
|
|
5075
|
-
schedule_effect(effect);
|
|
5076
|
-
}
|
|
5077
|
-
}
|
|
5078
|
-
}
|
|
5079
|
-
}
|
|
5080
|
-
|
|
5081
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/legacy.js
|
|
5082
|
-
var captured_signals = null;
|
|
5083
|
-
|
|
5084
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
5085
|
-
function without_reactive_context(fn) {
|
|
5086
|
-
var previous_reaction = active_reaction;
|
|
5087
|
-
var previous_effect = active_effect;
|
|
5088
|
-
set_active_reaction(null);
|
|
5089
|
-
set_active_effect(null);
|
|
5090
|
-
try {
|
|
5091
|
-
return fn();
|
|
5092
|
-
} finally {
|
|
5093
|
-
set_active_reaction(previous_reaction);
|
|
5094
|
-
set_active_effect(previous_effect);
|
|
5095
|
-
}
|
|
5096
|
-
}
|
|
5097
|
-
|
|
5098
|
-
// node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/runtime.js
|
|
5099
|
-
var is_updating_effect = false;
|
|
5100
|
-
var is_destroying_effect = false;
|
|
5101
|
-
function set_is_destroying_effect(value) {
|
|
5102
|
-
is_destroying_effect = value;
|
|
5103
|
-
}
|
|
5104
|
-
var active_reaction = null;
|
|
5105
|
-
var untracking = false;
|
|
5106
|
-
function set_active_reaction(reaction) {
|
|
5107
|
-
active_reaction = reaction;
|
|
5108
|
-
}
|
|
5109
|
-
var active_effect = null;
|
|
5110
|
-
function set_active_effect(effect) {
|
|
5111
|
-
active_effect = effect;
|
|
5112
|
-
}
|
|
5113
|
-
var current_sources = null;
|
|
5114
|
-
function push_reaction_value(value) {
|
|
5115
|
-
if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & DERIVED) !== 0)) {
|
|
5116
|
-
if (current_sources === null) {
|
|
5117
|
-
current_sources = [value];
|
|
5118
|
-
} else {
|
|
5119
|
-
current_sources.push(value);
|
|
5120
|
-
}
|
|
5121
|
-
}
|
|
5122
|
-
}
|
|
5123
|
-
var new_deps = null;
|
|
5124
|
-
var skipped_deps = 0;
|
|
5125
|
-
var untracked_writes = null;
|
|
5126
|
-
function set_untracked_writes(value) {
|
|
5127
|
-
untracked_writes = value;
|
|
5128
|
-
}
|
|
5129
|
-
var write_version = 1;
|
|
5130
|
-
var read_version = 0;
|
|
5131
|
-
var update_version = read_version;
|
|
5132
|
-
function set_update_version(value) {
|
|
5133
|
-
update_version = value;
|
|
5134
|
-
}
|
|
5135
|
-
function increment_write_version() {
|
|
5136
|
-
return ++write_version;
|
|
5137
|
-
}
|
|
5138
|
-
function is_dirty(reaction) {
|
|
5139
|
-
var flags2 = reaction.f;
|
|
5140
|
-
if ((flags2 & DIRTY) !== 0) {
|
|
5141
|
-
return true;
|
|
5142
|
-
}
|
|
5143
|
-
if (flags2 & DERIVED) {
|
|
5144
|
-
reaction.f &= ~WAS_MARKED;
|
|
5145
|
-
}
|
|
5146
|
-
if ((flags2 & MAYBE_DIRTY) !== 0) {
|
|
5147
|
-
var dependencies = reaction.deps;
|
|
5148
|
-
var length = dependencies.length;
|
|
5149
|
-
for (var i = 0;i < length; i++) {
|
|
5150
|
-
var dependency = dependencies[i];
|
|
5151
|
-
if (is_dirty(dependency)) {
|
|
5152
|
-
update_derived(dependency);
|
|
5153
|
-
}
|
|
5154
|
-
if (dependency.wv > reaction.wv) {
|
|
5155
|
-
return true;
|
|
5156
|
-
}
|
|
5157
|
-
}
|
|
5158
|
-
if ((flags2 & CONNECTED) !== 0 && batch_values === null) {
|
|
5159
|
-
set_signal_status(reaction, CLEAN);
|
|
5160
|
-
}
|
|
5161
|
-
}
|
|
5162
|
-
return false;
|
|
5163
|
-
}
|
|
5164
|
-
function schedule_possible_effect_self_invalidation(signal, effect, root = true) {
|
|
5165
|
-
var reactions = signal.reactions;
|
|
5166
|
-
if (reactions === null)
|
|
5167
|
-
return;
|
|
5168
|
-
if (!async_mode_flag && current_sources !== null && includes.call(current_sources, signal)) {
|
|
5169
|
-
return;
|
|
5170
|
-
}
|
|
5171
|
-
for (var i = 0;i < reactions.length; i++) {
|
|
5172
|
-
var reaction = reactions[i];
|
|
5173
|
-
if ((reaction.f & DERIVED) !== 0) {
|
|
5174
|
-
schedule_possible_effect_self_invalidation(reaction, effect, false);
|
|
5175
|
-
} else if (effect === reaction) {
|
|
5176
|
-
if (root) {
|
|
5177
|
-
set_signal_status(reaction, DIRTY);
|
|
5178
|
-
} else if ((reaction.f & CLEAN) !== 0) {
|
|
5179
|
-
set_signal_status(reaction, MAYBE_DIRTY);
|
|
5180
|
-
}
|
|
5181
|
-
schedule_effect(reaction);
|
|
5182
|
-
}
|
|
5183
|
-
}
|
|
5184
|
-
}
|
|
5185
|
-
function update_reaction(reaction) {
|
|
5186
|
-
var previous_deps = new_deps;
|
|
5187
|
-
var previous_skipped_deps = skipped_deps;
|
|
5188
|
-
var previous_untracked_writes = untracked_writes;
|
|
5189
|
-
var previous_reaction = active_reaction;
|
|
5190
|
-
var previous_sources = current_sources;
|
|
5191
|
-
var previous_component_context = component_context;
|
|
5192
|
-
var previous_untracking = untracking;
|
|
5193
|
-
var previous_update_version = update_version;
|
|
5194
|
-
var flags2 = reaction.f;
|
|
5195
|
-
new_deps = null;
|
|
5196
|
-
skipped_deps = 0;
|
|
5197
|
-
untracked_writes = null;
|
|
5198
|
-
active_reaction = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
|
|
5199
|
-
current_sources = null;
|
|
5200
|
-
set_component_context(reaction.ctx);
|
|
5201
|
-
untracking = false;
|
|
5202
|
-
update_version = ++read_version;
|
|
5203
|
-
if (reaction.ac !== null) {
|
|
5204
|
-
without_reactive_context(() => {
|
|
5205
|
-
reaction.ac.abort(STALE_REACTION);
|
|
5206
|
-
});
|
|
5207
|
-
reaction.ac = null;
|
|
5208
|
-
}
|
|
5209
|
-
try {
|
|
5210
|
-
reaction.f |= REACTION_IS_UPDATING;
|
|
5211
|
-
var fn = reaction.fn;
|
|
5212
|
-
var result = fn();
|
|
5213
|
-
reaction.f |= REACTION_RAN;
|
|
5214
|
-
var deps = reaction.deps;
|
|
5215
|
-
var is_fork = current_batch?.is_fork;
|
|
5216
|
-
if (new_deps !== null) {
|
|
5217
|
-
var i;
|
|
5218
|
-
if (!is_fork) {
|
|
5219
|
-
remove_reactions(reaction, skipped_deps);
|
|
5220
|
-
}
|
|
5221
|
-
if (deps !== null && skipped_deps > 0) {
|
|
5222
|
-
deps.length = skipped_deps + new_deps.length;
|
|
5223
|
-
for (i = 0;i < new_deps.length; i++) {
|
|
5224
|
-
deps[skipped_deps + i] = new_deps[i];
|
|
5225
|
-
}
|
|
5226
|
-
} else {
|
|
5227
|
-
reaction.deps = deps = new_deps;
|
|
5228
|
-
}
|
|
5229
|
-
if (effect_tracking() && (reaction.f & CONNECTED) !== 0) {
|
|
5230
|
-
for (i = skipped_deps;i < deps.length; i++) {
|
|
5231
|
-
(deps[i].reactions ??= []).push(reaction);
|
|
5232
|
-
}
|
|
5233
|
-
}
|
|
5234
|
-
} else if (!is_fork && deps !== null && skipped_deps < deps.length) {
|
|
5235
|
-
remove_reactions(reaction, skipped_deps);
|
|
5236
|
-
deps.length = skipped_deps;
|
|
5237
|
-
}
|
|
5238
|
-
if (is_runes() && untracked_writes !== null && !untracking && deps !== null && (reaction.f & (DERIVED | MAYBE_DIRTY | DIRTY)) === 0) {
|
|
5239
|
-
for (i = 0;i < untracked_writes.length; i++) {
|
|
5240
|
-
schedule_possible_effect_self_invalidation(untracked_writes[i], reaction);
|
|
5241
|
-
}
|
|
5242
|
-
}
|
|
5243
|
-
if (previous_reaction !== null && previous_reaction !== reaction) {
|
|
5244
|
-
read_version++;
|
|
5245
|
-
if (previous_reaction.deps !== null) {
|
|
5246
|
-
for (let i2 = 0;i2 < previous_skipped_deps; i2 += 1) {
|
|
5247
|
-
previous_reaction.deps[i2].rv = read_version;
|
|
5248
|
-
}
|
|
5249
|
-
}
|
|
5250
|
-
if (previous_deps !== null) {
|
|
5251
|
-
for (const dep of previous_deps) {
|
|
5252
|
-
dep.rv = read_version;
|
|
5253
|
-
}
|
|
5254
|
-
}
|
|
5255
|
-
if (untracked_writes !== null) {
|
|
5256
|
-
if (previous_untracked_writes === null) {
|
|
5257
|
-
previous_untracked_writes = untracked_writes;
|
|
5258
|
-
} else {
|
|
5259
|
-
previous_untracked_writes.push(...untracked_writes);
|
|
5260
|
-
}
|
|
5261
|
-
}
|
|
5262
|
-
}
|
|
5263
|
-
if ((reaction.f & ERROR_VALUE) !== 0) {
|
|
5264
|
-
reaction.f ^= ERROR_VALUE;
|
|
5265
|
-
}
|
|
5266
|
-
return result;
|
|
5267
|
-
} catch (error) {
|
|
5268
|
-
return handle_error(error);
|
|
5269
|
-
} finally {
|
|
5270
|
-
reaction.f ^= REACTION_IS_UPDATING;
|
|
5271
|
-
new_deps = previous_deps;
|
|
5272
|
-
skipped_deps = previous_skipped_deps;
|
|
5273
|
-
untracked_writes = previous_untracked_writes;
|
|
5274
|
-
active_reaction = previous_reaction;
|
|
5275
|
-
current_sources = previous_sources;
|
|
5276
|
-
set_component_context(previous_component_context);
|
|
5277
|
-
untracking = previous_untracking;
|
|
5278
|
-
update_version = previous_update_version;
|
|
5279
|
-
}
|
|
5280
|
-
}
|
|
5281
|
-
function remove_reaction(signal, dependency) {
|
|
5282
|
-
let reactions = dependency.reactions;
|
|
5283
|
-
if (reactions !== null) {
|
|
5284
|
-
var index = index_of.call(reactions, signal);
|
|
5285
|
-
if (index !== -1) {
|
|
5286
|
-
var new_length = reactions.length - 1;
|
|
5287
|
-
if (new_length === 0) {
|
|
5288
|
-
reactions = dependency.reactions = null;
|
|
5289
|
-
} else {
|
|
5290
|
-
reactions[index] = reactions[new_length];
|
|
5291
|
-
reactions.pop();
|
|
5292
|
-
}
|
|
5293
|
-
}
|
|
5294
|
-
}
|
|
5295
|
-
if (reactions === null && (dependency.f & DERIVED) !== 0 && (new_deps === null || !includes.call(new_deps, dependency))) {
|
|
5296
|
-
var derived2 = dependency;
|
|
5297
|
-
if ((derived2.f & CONNECTED) !== 0) {
|
|
5298
|
-
derived2.f ^= CONNECTED;
|
|
5299
|
-
derived2.f &= ~WAS_MARKED;
|
|
5300
|
-
}
|
|
5301
|
-
update_derived_status(derived2);
|
|
5302
|
-
freeze_derived_effects(derived2);
|
|
5303
|
-
remove_reactions(derived2, 0);
|
|
5304
|
-
}
|
|
5305
|
-
}
|
|
5306
|
-
function remove_reactions(signal, start_index) {
|
|
5307
|
-
var dependencies = signal.deps;
|
|
5308
|
-
if (dependencies === null)
|
|
5309
|
-
return;
|
|
5310
|
-
for (var i = start_index;i < dependencies.length; i++) {
|
|
5311
|
-
remove_reaction(signal, dependencies[i]);
|
|
3616
|
+
getPromise() {
|
|
3617
|
+
return this.content.toPromise();
|
|
5312
3618
|
}
|
|
5313
3619
|
}
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
}
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
}
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
}
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
}
|
|
5385
|
-
}
|
|
5386
|
-
}
|
|
5387
|
-
if (true_default) {
|
|
5388
|
-
if (!untracking && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & REACTION_IS_UPDATING) === 0) {
|
|
5389
|
-
reactivity_loss_tracker.warned = true;
|
|
5390
|
-
await_reactivity_loss(signal.label);
|
|
5391
|
-
var trace = get_error("traced at");
|
|
5392
|
-
if (trace)
|
|
5393
|
-
console.warn(trace);
|
|
5394
|
-
}
|
|
5395
|
-
recent_async_deriveds.delete(signal);
|
|
5396
|
-
if (tracing_mode_flag && !untracking && tracing_expressions !== null && active_reaction !== null && tracing_expressions.reaction === active_reaction) {
|
|
5397
|
-
if (signal.trace) {
|
|
5398
|
-
signal.trace();
|
|
5399
|
-
} else {
|
|
5400
|
-
trace = get_error("traced at");
|
|
5401
|
-
if (trace) {
|
|
5402
|
-
var entry = tracing_expressions.entries.get(signal);
|
|
5403
|
-
if (entry === undefined) {
|
|
5404
|
-
entry = { traces: [] };
|
|
5405
|
-
tracing_expressions.entries.set(signal, entry);
|
|
5406
|
-
}
|
|
5407
|
-
var last = entry.traces[entry.traces.length - 1];
|
|
5408
|
-
if (trace.stack !== last?.stack) {
|
|
5409
|
-
entry.traces.push(trace);
|
|
5410
|
-
}
|
|
5411
|
-
}
|
|
5412
|
-
}
|
|
5413
|
-
}
|
|
5414
|
-
}
|
|
5415
|
-
if (is_destroying_effect && old_values.has(signal)) {
|
|
5416
|
-
return old_values.get(signal);
|
|
3620
|
+
// src/chat/utils/pii-checks.ts
|
|
3621
|
+
var PiiChecks = [
|
|
3622
|
+
{
|
|
3623
|
+
type: "email",
|
|
3624
|
+
check: (input) => {
|
|
3625
|
+
const pattern = /\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\b/;
|
|
3626
|
+
return pattern.test(input);
|
|
3627
|
+
}
|
|
3628
|
+
},
|
|
3629
|
+
{
|
|
3630
|
+
type: "creditCard",
|
|
3631
|
+
check: (input) => {
|
|
3632
|
+
const pattern = /\b(?:\d[ -]*?){13,16}\b/;
|
|
3633
|
+
return pattern.test(input);
|
|
3634
|
+
}
|
|
3635
|
+
},
|
|
3636
|
+
{
|
|
3637
|
+
type: "ahv",
|
|
3638
|
+
check: (input) => {
|
|
3639
|
+
const pattern = /\b756\.\d{4}\.\d{4}\.\d{2}\b/;
|
|
3640
|
+
return pattern.test(input);
|
|
3641
|
+
}
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
type: "phoneSwiss",
|
|
3645
|
+
check: (input) => {
|
|
3646
|
+
const pattern = /\b0(?:\s*\d){2}(?:\s*\/\s*)?(?:\s*\d){7,}\b/;
|
|
3647
|
+
return pattern.test(input);
|
|
3648
|
+
}
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
type: "phoneInternational",
|
|
3652
|
+
check: (input) => {
|
|
3653
|
+
const pattern = /(?:\+|00)(?:\s*\d){10,}\b/;
|
|
3654
|
+
return pattern.test(input);
|
|
3655
|
+
}
|
|
3656
|
+
},
|
|
3657
|
+
{
|
|
3658
|
+
type: "swissPassport",
|
|
3659
|
+
check: (input) => {
|
|
3660
|
+
const pattern = /\b[A-HJ-NP-Z](?=.*\d)[A-HJ-NP-Z0-9]{7}\b/;
|
|
3661
|
+
return pattern.test(input);
|
|
3662
|
+
}
|
|
3663
|
+
},
|
|
3664
|
+
{
|
|
3665
|
+
type: "longNumber",
|
|
3666
|
+
check: (input) => {
|
|
3667
|
+
const pattern = /\b\d{9,}\b/;
|
|
3668
|
+
return pattern.test(input);
|
|
3669
|
+
}
|
|
3670
|
+
}
|
|
3671
|
+
];
|
|
3672
|
+
var checkForPii = (input) => {
|
|
3673
|
+
for (const check of PiiChecks) {
|
|
3674
|
+
if (check.check(input)) {
|
|
3675
|
+
return check.type;
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
return;
|
|
3679
|
+
};
|
|
3680
|
+
// src/lib/client/conversation.ts
|
|
3681
|
+
class Conversation {
|
|
3682
|
+
clientPrimitive;
|
|
3683
|
+
latestRequest = new FutureValue;
|
|
3684
|
+
state = writable({ state: "idle" });
|
|
3685
|
+
id;
|
|
3686
|
+
history = [];
|
|
3687
|
+
constructor(clientPrimitive) {
|
|
3688
|
+
this.clientPrimitive = clientPrimitive;
|
|
3689
|
+
this.id = clientPrimitive.createConversationId();
|
|
5417
3690
|
}
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
if (is_destroying_effect) {
|
|
5421
|
-
var value = derived2.v;
|
|
5422
|
-
if ((derived2.f & CLEAN) === 0 && derived2.reactions !== null || depends_on_old_values(derived2)) {
|
|
5423
|
-
value = execute_derived(derived2);
|
|
5424
|
-
}
|
|
5425
|
-
old_values.set(derived2, value);
|
|
5426
|
-
return value;
|
|
5427
|
-
}
|
|
5428
|
-
var should_connect = (derived2.f & CONNECTED) === 0 && !untracking && active_reaction !== null && (is_updating_effect || (active_reaction.f & CONNECTED) !== 0);
|
|
5429
|
-
var is_new = (derived2.f & REACTION_RAN) === 0;
|
|
5430
|
-
if (is_dirty(derived2)) {
|
|
5431
|
-
if (should_connect) {
|
|
5432
|
-
derived2.f |= CONNECTED;
|
|
5433
|
-
}
|
|
5434
|
-
update_derived(derived2);
|
|
5435
|
-
}
|
|
5436
|
-
if (should_connect && !is_new) {
|
|
5437
|
-
unfreeze_derived_effects(derived2);
|
|
5438
|
-
reconnect(derived2);
|
|
5439
|
-
}
|
|
3691
|
+
subscribe(callback) {
|
|
3692
|
+
return this.state.subscribe(callback);
|
|
5440
3693
|
}
|
|
5441
|
-
|
|
5442
|
-
|
|
3694
|
+
chat(question, options2 = {}) {
|
|
3695
|
+
const chatResponse = this.clientPrimitive.chat(this.id, question, options2);
|
|
3696
|
+
this.history.push(chatResponse);
|
|
3697
|
+
this.latestRequest.setValue({ question, response: chatResponse });
|
|
3698
|
+
return chatResponse;
|
|
5443
3699
|
}
|
|
5444
|
-
|
|
5445
|
-
|
|
3700
|
+
async abort() {
|
|
3701
|
+
const all = this.history.map((response) => response.abort());
|
|
3702
|
+
await Promise.all(all);
|
|
5446
3703
|
}
|
|
5447
|
-
|
|
5448
|
-
}
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
if (derived2.deps === null)
|
|
5452
|
-
return;
|
|
5453
|
-
for (const dep of derived2.deps) {
|
|
5454
|
-
(dep.reactions ??= []).push(derived2);
|
|
5455
|
-
if ((dep.f & DERIVED) !== 0 && (dep.f & CONNECTED) === 0) {
|
|
5456
|
-
unfreeze_derived_effects(dep);
|
|
5457
|
-
reconnect(dep);
|
|
5458
|
-
}
|
|
3704
|
+
async thumbsUp() {
|
|
3705
|
+
const { question, response } = await this.latestRequest;
|
|
3706
|
+
await response.isReadyForFeedback();
|
|
3707
|
+
await this.clientPrimitive.thumbsUp(response.id, question);
|
|
5459
3708
|
}
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
if (derived2.deps === null)
|
|
5465
|
-
return false;
|
|
5466
|
-
for (const dep of derived2.deps) {
|
|
5467
|
-
if (old_values.has(dep)) {
|
|
5468
|
-
return true;
|
|
5469
|
-
}
|
|
5470
|
-
if ((dep.f & DERIVED) !== 0 && depends_on_old_values(dep)) {
|
|
5471
|
-
return true;
|
|
5472
|
-
}
|
|
3709
|
+
async thumbsDown() {
|
|
3710
|
+
const { question, response } = await this.latestRequest;
|
|
3711
|
+
await response.isReadyForFeedback();
|
|
3712
|
+
await this.clientPrimitive.thumbsDown(response.id, question);
|
|
5473
3713
|
}
|
|
5474
|
-
|
|
5475
|
-
}
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
try {
|
|
5479
|
-
untracking = true;
|
|
5480
|
-
return fn();
|
|
5481
|
-
} finally {
|
|
5482
|
-
untracking = previous_untracking;
|
|
3714
|
+
async feedback(feedback) {
|
|
3715
|
+
const { question, response } = await this.latestRequest;
|
|
3716
|
+
await response.isReadyForFeedback();
|
|
3717
|
+
await this.clientPrimitive.feedback(response.id, question, feedback);
|
|
5483
3718
|
}
|
|
5484
3719
|
}
|
|
5485
3720
|
|
|
5486
|
-
// node_modules/.bun/
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
if (parent_last === null) {
|
|
5490
|
-
parent_effect.last = parent_effect.first = effect;
|
|
5491
|
-
} else {
|
|
5492
|
-
parent_last.next = effect;
|
|
5493
|
-
effect.prev = parent_last;
|
|
5494
|
-
parent_effect.last = effect;
|
|
5495
|
-
}
|
|
5496
|
-
}
|
|
5497
|
-
function create_effect(type, fn) {
|
|
5498
|
-
var parent = active_effect;
|
|
5499
|
-
if (true_default) {
|
|
5500
|
-
while (parent !== null && (parent.f & EAGER_EFFECT) !== 0) {
|
|
5501
|
-
parent = parent.parent;
|
|
5502
|
-
}
|
|
5503
|
-
}
|
|
5504
|
-
if (parent !== null && (parent.f & INERT) !== 0) {
|
|
5505
|
-
type |= INERT;
|
|
5506
|
-
}
|
|
5507
|
-
var effect = {
|
|
5508
|
-
ctx: component_context,
|
|
5509
|
-
deps: null,
|
|
5510
|
-
nodes: null,
|
|
5511
|
-
f: type | DIRTY | CONNECTED,
|
|
5512
|
-
first: null,
|
|
5513
|
-
fn,
|
|
5514
|
-
last: null,
|
|
5515
|
-
next: null,
|
|
5516
|
-
parent,
|
|
5517
|
-
b: parent && parent.b,
|
|
5518
|
-
prev: null,
|
|
5519
|
-
teardown: null,
|
|
5520
|
-
wv: 0,
|
|
5521
|
-
ac: null
|
|
5522
|
-
};
|
|
5523
|
-
if (true_default) {
|
|
5524
|
-
effect.component_function = dev_current_component_function;
|
|
5525
|
-
}
|
|
5526
|
-
var e = effect;
|
|
5527
|
-
if ((type & EFFECT) !== 0) {
|
|
5528
|
-
if (collected_effects !== null) {
|
|
5529
|
-
collected_effects.push(effect);
|
|
5530
|
-
} else {
|
|
5531
|
-
Batch.ensure().schedule(effect);
|
|
5532
|
-
}
|
|
5533
|
-
} else if (fn !== null) {
|
|
5534
|
-
try {
|
|
5535
|
-
update_effect(effect);
|
|
5536
|
-
} catch (e2) {
|
|
5537
|
-
destroy_effect(effect);
|
|
5538
|
-
throw e2;
|
|
5539
|
-
}
|
|
5540
|
-
if (e.deps === null && e.teardown === null && e.nodes === null && e.first === e.last && (e.f & EFFECT_PRESERVED) === 0) {
|
|
5541
|
-
e = e.first;
|
|
5542
|
-
if ((type & BLOCK_EFFECT) !== 0 && (type & EFFECT_TRANSPARENT) !== 0 && e !== null) {
|
|
5543
|
-
e.f |= EFFECT_TRANSPARENT;
|
|
5544
|
-
}
|
|
5545
|
-
}
|
|
5546
|
-
}
|
|
5547
|
-
if (e !== null) {
|
|
5548
|
-
e.parent = parent;
|
|
5549
|
-
if (parent !== null) {
|
|
5550
|
-
push_effect(e, parent);
|
|
5551
|
-
}
|
|
5552
|
-
if (active_reaction !== null && (active_reaction.f & DERIVED) !== 0 && (type & ROOT_EFFECT) === 0) {
|
|
5553
|
-
var derived2 = active_reaction;
|
|
5554
|
-
(derived2.effects ??= []).push(e);
|
|
5555
|
-
}
|
|
5556
|
-
}
|
|
5557
|
-
return effect;
|
|
5558
|
-
}
|
|
5559
|
-
function effect_tracking() {
|
|
5560
|
-
return active_reaction !== null && !untracking;
|
|
5561
|
-
}
|
|
5562
|
-
function render_effect(fn, flags2 = 0) {
|
|
5563
|
-
return create_effect(RENDER_EFFECT | flags2, fn);
|
|
5564
|
-
}
|
|
5565
|
-
function block2(fn, flags2 = 0) {
|
|
5566
|
-
var effect = create_effect(BLOCK_EFFECT | flags2, fn);
|
|
5567
|
-
if (true_default) {
|
|
5568
|
-
effect.dev_stack = dev_stack;
|
|
5569
|
-
}
|
|
5570
|
-
return effect;
|
|
5571
|
-
}
|
|
5572
|
-
function branch(fn) {
|
|
5573
|
-
return create_effect(BRANCH_EFFECT | EFFECT_PRESERVED, fn);
|
|
5574
|
-
}
|
|
5575
|
-
function execute_effect_teardown(effect) {
|
|
5576
|
-
var teardown2 = effect.teardown;
|
|
5577
|
-
if (teardown2 !== null) {
|
|
5578
|
-
const previously_destroying_effect = is_destroying_effect;
|
|
5579
|
-
const previous_reaction = active_reaction;
|
|
5580
|
-
set_is_destroying_effect(true);
|
|
5581
|
-
set_active_reaction(null);
|
|
5582
|
-
try {
|
|
5583
|
-
teardown2.call(null);
|
|
5584
|
-
} finally {
|
|
5585
|
-
set_is_destroying_effect(previously_destroying_effect);
|
|
5586
|
-
set_active_reaction(previous_reaction);
|
|
5587
|
-
}
|
|
5588
|
-
}
|
|
5589
|
-
}
|
|
5590
|
-
function destroy_effect_children(signal, remove_dom = false) {
|
|
5591
|
-
var effect = signal.first;
|
|
5592
|
-
signal.first = signal.last = null;
|
|
5593
|
-
while (effect !== null) {
|
|
5594
|
-
const controller = effect.ac;
|
|
5595
|
-
if (controller !== null) {
|
|
5596
|
-
without_reactive_context(() => {
|
|
5597
|
-
controller.abort(STALE_REACTION);
|
|
5598
|
-
});
|
|
5599
|
-
}
|
|
5600
|
-
var next2 = effect.next;
|
|
5601
|
-
if ((effect.f & ROOT_EFFECT) !== 0) {
|
|
5602
|
-
effect.parent = null;
|
|
5603
|
-
} else {
|
|
5604
|
-
destroy_effect(effect, remove_dom);
|
|
5605
|
-
}
|
|
5606
|
-
effect = next2;
|
|
5607
|
-
}
|
|
5608
|
-
}
|
|
5609
|
-
function destroy_block_effect_children(signal) {
|
|
5610
|
-
var effect = signal.first;
|
|
5611
|
-
while (effect !== null) {
|
|
5612
|
-
var next2 = effect.next;
|
|
5613
|
-
if ((effect.f & BRANCH_EFFECT) === 0) {
|
|
5614
|
-
destroy_effect(effect);
|
|
5615
|
-
}
|
|
5616
|
-
effect = next2;
|
|
5617
|
-
}
|
|
5618
|
-
}
|
|
5619
|
-
function destroy_effect(effect, remove_dom = true) {
|
|
5620
|
-
var removed = false;
|
|
5621
|
-
if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes !== null && effect.nodes.end !== null) {
|
|
5622
|
-
remove_effect_dom(effect.nodes.start, effect.nodes.end);
|
|
5623
|
-
removed = true;
|
|
5624
|
-
}
|
|
5625
|
-
set_signal_status(effect, DESTROYING);
|
|
5626
|
-
destroy_effect_children(effect, remove_dom && !removed);
|
|
5627
|
-
remove_reactions(effect, 0);
|
|
5628
|
-
var transitions = effect.nodes && effect.nodes.t;
|
|
5629
|
-
if (transitions !== null) {
|
|
5630
|
-
for (const transition of transitions) {
|
|
5631
|
-
transition.stop();
|
|
5632
|
-
}
|
|
5633
|
-
}
|
|
5634
|
-
execute_effect_teardown(effect);
|
|
5635
|
-
effect.f ^= DESTROYING;
|
|
5636
|
-
effect.f |= DESTROYED;
|
|
5637
|
-
var parent = effect.parent;
|
|
5638
|
-
if (parent !== null && parent.first !== null) {
|
|
5639
|
-
unlink_effect(effect);
|
|
5640
|
-
}
|
|
5641
|
-
if (true_default) {
|
|
5642
|
-
effect.component_function = null;
|
|
5643
|
-
}
|
|
5644
|
-
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null;
|
|
5645
|
-
}
|
|
5646
|
-
function remove_effect_dom(node, end) {
|
|
5647
|
-
while (node !== null) {
|
|
5648
|
-
var next2 = node === end ? null : get_next_sibling(node);
|
|
5649
|
-
node.remove();
|
|
5650
|
-
node = next2;
|
|
5651
|
-
}
|
|
5652
|
-
}
|
|
5653
|
-
function unlink_effect(effect) {
|
|
5654
|
-
var parent = effect.parent;
|
|
5655
|
-
var prev = effect.prev;
|
|
5656
|
-
var next2 = effect.next;
|
|
5657
|
-
if (prev !== null)
|
|
5658
|
-
prev.next = next2;
|
|
5659
|
-
if (next2 !== null)
|
|
5660
|
-
next2.prev = prev;
|
|
5661
|
-
if (parent !== null) {
|
|
5662
|
-
if (parent.first === effect)
|
|
5663
|
-
parent.first = next2;
|
|
5664
|
-
if (parent.last === effect)
|
|
5665
|
-
parent.last = prev;
|
|
5666
|
-
}
|
|
5667
|
-
}
|
|
5668
|
-
function pause_effect(effect, callback, destroy = true) {
|
|
5669
|
-
var transitions = [];
|
|
5670
|
-
pause_children(effect, transitions, true);
|
|
5671
|
-
var fn = () => {
|
|
5672
|
-
if (destroy)
|
|
5673
|
-
destroy_effect(effect);
|
|
5674
|
-
if (callback)
|
|
5675
|
-
callback();
|
|
5676
|
-
};
|
|
5677
|
-
var remaining = transitions.length;
|
|
5678
|
-
if (remaining > 0) {
|
|
5679
|
-
var check = () => --remaining || fn();
|
|
5680
|
-
for (var transition of transitions) {
|
|
5681
|
-
transition.out(check);
|
|
5682
|
-
}
|
|
5683
|
-
} else {
|
|
5684
|
-
fn();
|
|
5685
|
-
}
|
|
5686
|
-
}
|
|
5687
|
-
function pause_children(effect, transitions, local) {
|
|
5688
|
-
if ((effect.f & INERT) !== 0)
|
|
5689
|
-
return;
|
|
5690
|
-
effect.f ^= INERT;
|
|
5691
|
-
var t = effect.nodes && effect.nodes.t;
|
|
5692
|
-
if (t !== null) {
|
|
5693
|
-
for (const transition of t) {
|
|
5694
|
-
if (transition.is_global || local) {
|
|
5695
|
-
transitions.push(transition);
|
|
5696
|
-
}
|
|
5697
|
-
}
|
|
5698
|
-
}
|
|
5699
|
-
var child = effect.first;
|
|
5700
|
-
while (child !== null) {
|
|
5701
|
-
var sibling = child.next;
|
|
5702
|
-
var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
|
|
5703
|
-
pause_children(child, transitions, transparent ? local : false);
|
|
5704
|
-
child = sibling;
|
|
5705
|
-
}
|
|
5706
|
-
}
|
|
5707
|
-
function move_effect(effect, fragment) {
|
|
5708
|
-
if (!effect.nodes)
|
|
5709
|
-
return;
|
|
5710
|
-
var node = effect.nodes.start;
|
|
5711
|
-
var end = effect.nodes.end;
|
|
5712
|
-
while (node !== null) {
|
|
5713
|
-
var next2 = node === end ? null : get_next_sibling(node);
|
|
5714
|
-
fragment.append(node);
|
|
5715
|
-
node = next2;
|
|
5716
|
-
}
|
|
5717
|
-
}
|
|
5718
|
-
// node_modules/.bun/inside-out-async@2.0.2/node_modules/inside-out-async/dist/index.mjs
|
|
5719
|
-
function withResolvers() {
|
|
5720
|
-
let reject;
|
|
5721
|
-
let resolve;
|
|
5722
|
-
const promise = new Promise((resolveFunc, rejectFunc) => {
|
|
5723
|
-
resolve = resolveFunc;
|
|
5724
|
-
reject = rejectFunc;
|
|
5725
|
-
});
|
|
5726
|
-
return {
|
|
5727
|
-
promise,
|
|
5728
|
-
reject,
|
|
5729
|
-
resolve
|
|
5730
|
-
};
|
|
5731
|
-
}
|
|
5732
|
-
|
|
5733
|
-
// src/lib/client/utils/flag.ts
|
|
5734
|
-
class Flag {
|
|
5735
|
-
promise;
|
|
5736
|
-
resolve;
|
|
5737
|
-
reject;
|
|
5738
|
-
constructor() {
|
|
5739
|
-
const { promise, resolve, reject } = withResolvers();
|
|
5740
|
-
this.promise = promise;
|
|
5741
|
-
this.resolve = resolve;
|
|
5742
|
-
this.reject = reject;
|
|
5743
|
-
}
|
|
5744
|
-
then(onfulfilled, onrejected) {
|
|
5745
|
-
return this.promise.then(onfulfilled, onrejected);
|
|
5746
|
-
}
|
|
5747
|
-
catch(onrejected) {
|
|
5748
|
-
return this.promise.catch(onrejected);
|
|
5749
|
-
}
|
|
5750
|
-
finally(onfinally) {
|
|
5751
|
-
return this.promise.finally(onfinally);
|
|
5752
|
-
}
|
|
5753
|
-
toPromise() {
|
|
5754
|
-
return this.promise;
|
|
5755
|
-
}
|
|
5756
|
-
[Symbol.toStringTag] = "Flag";
|
|
5757
|
-
}
|
|
5758
|
-
|
|
5759
|
-
// src/lib/client/utils/future-value.ts
|
|
5760
|
-
class FutureValue {
|
|
5761
|
-
hasValue = new Flag;
|
|
5762
|
-
currentValue;
|
|
5763
|
-
setValue(value) {
|
|
5764
|
-
this.currentValue = value;
|
|
5765
|
-
this.hasValue.resolve();
|
|
5766
|
-
}
|
|
5767
|
-
cleanup(reason) {
|
|
5768
|
-
this.hasValue.reject(reason);
|
|
5769
|
-
}
|
|
5770
|
-
getCurrentValue() {
|
|
5771
|
-
return this.currentValue;
|
|
5772
|
-
}
|
|
5773
|
-
async toPromise() {
|
|
5774
|
-
await this.hasValue;
|
|
5775
|
-
return this.currentValue;
|
|
5776
|
-
}
|
|
5777
|
-
then(onfulfilled, onrejected) {
|
|
5778
|
-
return this.toPromise().then(onfulfilled, onrejected);
|
|
5779
|
-
}
|
|
5780
|
-
catch(onrejected) {
|
|
5781
|
-
return this.toPromise().catch(onrejected);
|
|
5782
|
-
}
|
|
5783
|
-
finally(onfinally) {
|
|
5784
|
-
return this.toPromise().finally(onfinally);
|
|
5785
|
-
}
|
|
5786
|
-
[Symbol.toStringTag] = "FutureValue";
|
|
5787
|
-
}
|
|
5788
|
-
|
|
5789
|
-
// src/lib/client/utils/get-domain-name.ts
|
|
5790
|
-
var getDomainName = (url) => {
|
|
5791
|
-
try {
|
|
5792
|
-
const urlObj = new URL(url);
|
|
5793
|
-
return urlObj.hostname;
|
|
5794
|
-
} catch {
|
|
5795
|
-
return url;
|
|
5796
|
-
}
|
|
5797
|
-
};
|
|
5798
|
-
|
|
5799
|
-
// src/lib/client/utils/html-to-text.ts
|
|
5800
|
-
function htmlToText(html3) {
|
|
5801
|
-
const text2 = html3.replace(/<[^>]*>/g, "").replace(/ /g, " ").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"');
|
|
5802
|
-
return text2;
|
|
5803
|
-
}
|
|
5804
|
-
|
|
5805
|
-
// src/lib/client/chat-result-builder.ts
|
|
5806
|
-
var mapSseReference = ({
|
|
5807
|
-
url,
|
|
5808
|
-
considered,
|
|
5809
|
-
title,
|
|
5810
|
-
description,
|
|
5811
|
-
summary
|
|
5812
|
-
}) => {
|
|
5813
|
-
const domainName = getDomainName(url);
|
|
5814
|
-
const desc = description || summary;
|
|
5815
|
-
return {
|
|
5816
|
-
url,
|
|
5817
|
-
considered,
|
|
5818
|
-
referenceIndex: {},
|
|
5819
|
-
score: 0,
|
|
5820
|
-
metadata: {},
|
|
5821
|
-
display: {
|
|
5822
|
-
card: {
|
|
5823
|
-
title,
|
|
5824
|
-
description: desc,
|
|
5825
|
-
badge: url
|
|
5826
|
-
},
|
|
5827
|
-
listItem: {
|
|
5828
|
-
title,
|
|
5829
|
-
badge: domainName
|
|
5830
|
-
}
|
|
5831
|
-
}
|
|
5832
|
-
};
|
|
5833
|
-
};
|
|
5834
|
-
|
|
5835
|
-
class ChatResultBuilder {
|
|
5836
|
-
options;
|
|
5837
|
-
store;
|
|
5838
|
-
content = new FutureValue;
|
|
5839
|
-
backendSendsMappedRefs = false;
|
|
5840
|
-
constructor(options2) {
|
|
5841
|
-
this.options = options2;
|
|
5842
|
-
this.store = writable({
|
|
5843
|
-
id: options2.id,
|
|
5844
|
-
state: "loading",
|
|
5845
|
-
errors: [],
|
|
5846
|
-
type: "bot",
|
|
5847
|
-
time: new Date().toISOString(),
|
|
5848
|
-
message: { markdown: "", html: "", text: "" },
|
|
5849
|
-
references: { all: [], used: [], unused: [] },
|
|
5850
|
-
retrievalQuestion: options2.userQuestion
|
|
5851
|
-
});
|
|
5852
|
-
}
|
|
5853
|
-
pushError(error) {
|
|
5854
|
-
this.options.onError?.(error);
|
|
5855
|
-
this.store.update((current) => ({ ...current, errors: [...current.errors, error] }));
|
|
5856
|
-
}
|
|
5857
|
-
updateRequestId(id) {
|
|
5858
|
-
this.store.update((current) => ({
|
|
5859
|
-
...current,
|
|
5860
|
-
id
|
|
5861
|
-
}));
|
|
5862
|
-
}
|
|
5863
|
-
updateText(text2) {
|
|
5864
|
-
this.store.update((current) => {
|
|
5865
|
-
const nextMarkdown = current.message.markdown + text2;
|
|
5866
|
-
const html3 = this.options.markdownRenderer.toHTML(nextMarkdown, current.references);
|
|
5867
|
-
return {
|
|
5868
|
-
...current,
|
|
5869
|
-
state: "streaming",
|
|
5870
|
-
message: { markdown: nextMarkdown, html: html3, text: "" }
|
|
5871
|
-
};
|
|
5872
|
-
});
|
|
5873
|
-
}
|
|
5874
|
-
finishMessage() {
|
|
5875
|
-
this.store.update((current) => {
|
|
5876
|
-
const message = {
|
|
5877
|
-
...current,
|
|
5878
|
-
state: "done"
|
|
5879
|
-
};
|
|
5880
|
-
message.references.unused = message.references.all.filter((reference) => reference.referenceIndex.used === undefined);
|
|
5881
|
-
message.message.text = htmlToText(message.message.html);
|
|
5882
|
-
this.options?.onFinish?.(message);
|
|
5883
|
-
this.content.setValue(message);
|
|
5884
|
-
return message;
|
|
5885
|
-
});
|
|
5886
|
-
}
|
|
5887
|
-
addReference(reference) {
|
|
5888
|
-
this.store.update((current) => {
|
|
5889
|
-
const allRefs = current.references.all;
|
|
5890
|
-
const nextIndex = allRefs.length;
|
|
5891
|
-
const nextAllRefs = [
|
|
5892
|
-
...allRefs,
|
|
5893
|
-
{
|
|
5894
|
-
...reference,
|
|
5895
|
-
referenceIndex: { all: nextIndex }
|
|
5896
|
-
}
|
|
5897
|
-
];
|
|
5898
|
-
return {
|
|
5899
|
-
...current,
|
|
5900
|
-
references: { used: current.references.used, all: nextAllRefs }
|
|
5901
|
-
};
|
|
5902
|
-
});
|
|
5903
|
-
}
|
|
5904
|
-
addMappedReference(reference) {
|
|
5905
|
-
this.backendSendsMappedRefs = true;
|
|
5906
|
-
this.addReference(reference);
|
|
5907
|
-
}
|
|
5908
|
-
addOldReference(oldReference) {
|
|
5909
|
-
if (!this.backendSendsMappedRefs)
|
|
5910
|
-
this.addReference(mapSseReference(oldReference));
|
|
5911
|
-
}
|
|
5912
|
-
updateRetrievalQuestion(question) {
|
|
5913
|
-
this.store.update((current) => ({
|
|
5914
|
-
...current,
|
|
5915
|
-
retrievalQuestion: question
|
|
5916
|
-
}));
|
|
5917
|
-
}
|
|
5918
|
-
setNoFeedback() {
|
|
5919
|
-
this.store.update((current) => ({
|
|
5920
|
-
...current,
|
|
5921
|
-
noFeedback: true
|
|
5922
|
-
}));
|
|
5923
|
-
}
|
|
5924
|
-
getReadableStore() {
|
|
5925
|
-
return { subscribe: this.store.subscribe };
|
|
5926
|
-
}
|
|
5927
|
-
getPromise() {
|
|
5928
|
-
return this.content.toPromise();
|
|
5929
|
-
}
|
|
5930
|
-
}
|
|
5931
|
-
// src/lib/client/conversation.ts
|
|
5932
|
-
class Conversation {
|
|
5933
|
-
clientPrimitive;
|
|
5934
|
-
latestRequest = new FutureValue;
|
|
5935
|
-
state = writable({ state: "idle" });
|
|
5936
|
-
id;
|
|
5937
|
-
history = [];
|
|
5938
|
-
constructor(clientPrimitive) {
|
|
5939
|
-
this.clientPrimitive = clientPrimitive;
|
|
5940
|
-
this.id = clientPrimitive.createConversationId();
|
|
5941
|
-
}
|
|
5942
|
-
subscribe(callback) {
|
|
5943
|
-
return this.state.subscribe(callback);
|
|
5944
|
-
}
|
|
5945
|
-
chat(question, options2 = {}) {
|
|
5946
|
-
const chatResponse = this.clientPrimitive.chat(this.id, question, options2);
|
|
5947
|
-
this.history.push(chatResponse);
|
|
5948
|
-
this.latestRequest.setValue({ question, response: chatResponse });
|
|
5949
|
-
return chatResponse;
|
|
5950
|
-
}
|
|
5951
|
-
async abort() {
|
|
5952
|
-
const all = this.history.map((response) => response.abort());
|
|
5953
|
-
await Promise.all(all);
|
|
5954
|
-
}
|
|
5955
|
-
async thumbsUp() {
|
|
5956
|
-
const { question, response } = await this.latestRequest;
|
|
5957
|
-
await response.isReadyForFeedback();
|
|
5958
|
-
await this.clientPrimitive.thumbsUp(response.id, question);
|
|
5959
|
-
}
|
|
5960
|
-
async thumbsDown() {
|
|
5961
|
-
const { question, response } = await this.latestRequest;
|
|
5962
|
-
await response.isReadyForFeedback();
|
|
5963
|
-
await this.clientPrimitive.thumbsDown(response.id, question);
|
|
5964
|
-
}
|
|
5965
|
-
async feedback(feedback) {
|
|
5966
|
-
const { question, response } = await this.latestRequest;
|
|
5967
|
-
await response.isReadyForFeedback();
|
|
5968
|
-
await this.clientPrimitive.feedback(response.id, question, feedback);
|
|
5969
|
-
}
|
|
5970
|
-
}
|
|
5971
|
-
|
|
5972
|
-
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
5973
|
-
var exports_external = {};
|
|
5974
|
-
__export(exports_external, {
|
|
5975
|
-
xor: () => xor,
|
|
5976
|
-
xid: () => xid2,
|
|
5977
|
-
void: () => _void2,
|
|
5978
|
-
uuidv7: () => uuidv7,
|
|
5979
|
-
uuidv6: () => uuidv6,
|
|
5980
|
-
uuidv4: () => uuidv4,
|
|
5981
|
-
uuid: () => uuid2,
|
|
5982
|
-
util: () => exports_util,
|
|
5983
|
-
url: () => url,
|
|
5984
|
-
uppercase: () => _uppercase,
|
|
5985
|
-
unknown: () => unknown,
|
|
5986
|
-
union: () => union,
|
|
5987
|
-
undefined: () => _undefined3,
|
|
5988
|
-
ulid: () => ulid2,
|
|
5989
|
-
uint64: () => uint64,
|
|
5990
|
-
uint32: () => uint32,
|
|
5991
|
-
tuple: () => tuple,
|
|
5992
|
-
trim: () => _trim,
|
|
5993
|
-
treeifyError: () => treeifyError,
|
|
5994
|
-
transform: () => transform,
|
|
5995
|
-
toUpperCase: () => _toUpperCase,
|
|
5996
|
-
toLowerCase: () => _toLowerCase,
|
|
5997
|
-
toJSONSchema: () => toJSONSchema,
|
|
5998
|
-
templateLiteral: () => templateLiteral,
|
|
5999
|
-
symbol: () => symbol,
|
|
6000
|
-
superRefine: () => superRefine,
|
|
6001
|
-
success: () => success,
|
|
6002
|
-
stringbool: () => stringbool,
|
|
6003
|
-
stringFormat: () => stringFormat,
|
|
6004
|
-
string: () => string2,
|
|
6005
|
-
strictObject: () => strictObject,
|
|
6006
|
-
startsWith: () => _startsWith,
|
|
6007
|
-
slugify: () => _slugify,
|
|
6008
|
-
size: () => _size,
|
|
6009
|
-
setErrorMap: () => setErrorMap,
|
|
6010
|
-
set: () => set2,
|
|
6011
|
-
safeParseAsync: () => safeParseAsync2,
|
|
6012
|
-
safeParse: () => safeParse2,
|
|
6013
|
-
safeEncodeAsync: () => safeEncodeAsync2,
|
|
6014
|
-
safeEncode: () => safeEncode2,
|
|
6015
|
-
safeDecodeAsync: () => safeDecodeAsync2,
|
|
6016
|
-
safeDecode: () => safeDecode2,
|
|
6017
|
-
registry: () => registry,
|
|
6018
|
-
regexes: () => exports_regexes,
|
|
6019
|
-
regex: () => _regex,
|
|
6020
|
-
refine: () => refine,
|
|
6021
|
-
record: () => record,
|
|
6022
|
-
readonly: () => readonly2,
|
|
6023
|
-
property: () => _property,
|
|
6024
|
-
promise: () => promise,
|
|
6025
|
-
prettifyError: () => prettifyError,
|
|
6026
|
-
preprocess: () => preprocess,
|
|
6027
|
-
prefault: () => prefault,
|
|
6028
|
-
positive: () => _positive,
|
|
6029
|
-
pipe: () => pipe,
|
|
6030
|
-
partialRecord: () => partialRecord,
|
|
6031
|
-
parseAsync: () => parseAsync2,
|
|
6032
|
-
parse: () => parse3,
|
|
6033
|
-
overwrite: () => _overwrite,
|
|
6034
|
-
optional: () => optional,
|
|
6035
|
-
object: () => object,
|
|
6036
|
-
number: () => number2,
|
|
6037
|
-
nullish: () => nullish2,
|
|
6038
|
-
nullable: () => nullable,
|
|
6039
|
-
null: () => _null3,
|
|
6040
|
-
normalize: () => _normalize,
|
|
6041
|
-
nonpositive: () => _nonpositive,
|
|
6042
|
-
nonoptional: () => nonoptional,
|
|
6043
|
-
nonnegative: () => _nonnegative,
|
|
6044
|
-
never: () => never,
|
|
6045
|
-
negative: () => _negative,
|
|
6046
|
-
nativeEnum: () => nativeEnum,
|
|
6047
|
-
nanoid: () => nanoid2,
|
|
6048
|
-
nan: () => nan,
|
|
6049
|
-
multipleOf: () => _multipleOf,
|
|
6050
|
-
minSize: () => _minSize,
|
|
6051
|
-
minLength: () => _minLength,
|
|
6052
|
-
mime: () => _mime,
|
|
6053
|
-
meta: () => meta2,
|
|
6054
|
-
maxSize: () => _maxSize,
|
|
6055
|
-
maxLength: () => _maxLength,
|
|
6056
|
-
map: () => map,
|
|
6057
|
-
mac: () => mac2,
|
|
6058
|
-
lte: () => _lte,
|
|
6059
|
-
lt: () => _lt,
|
|
6060
|
-
lowercase: () => _lowercase,
|
|
6061
|
-
looseRecord: () => looseRecord,
|
|
6062
|
-
looseObject: () => looseObject,
|
|
6063
|
-
locales: () => exports_locales,
|
|
6064
|
-
literal: () => literal,
|
|
6065
|
-
length: () => _length,
|
|
6066
|
-
lazy: () => lazy,
|
|
6067
|
-
ksuid: () => ksuid2,
|
|
6068
|
-
keyof: () => keyof,
|
|
6069
|
-
jwt: () => jwt,
|
|
6070
|
-
json: () => json,
|
|
6071
|
-
iso: () => exports_iso,
|
|
6072
|
-
ipv6: () => ipv62,
|
|
6073
|
-
ipv4: () => ipv42,
|
|
6074
|
-
intersection: () => intersection,
|
|
6075
|
-
int64: () => int64,
|
|
6076
|
-
int32: () => int32,
|
|
6077
|
-
int: () => int,
|
|
6078
|
-
instanceof: () => _instanceof,
|
|
6079
|
-
includes: () => _includes,
|
|
6080
|
-
httpUrl: () => httpUrl,
|
|
6081
|
-
hostname: () => hostname2,
|
|
6082
|
-
hex: () => hex2,
|
|
6083
|
-
hash: () => hash,
|
|
6084
|
-
guid: () => guid2,
|
|
6085
|
-
gte: () => _gte,
|
|
6086
|
-
gt: () => _gt,
|
|
6087
|
-
globalRegistry: () => globalRegistry,
|
|
6088
|
-
getErrorMap: () => getErrorMap,
|
|
6089
|
-
function: () => _function,
|
|
6090
|
-
fromJSONSchema: () => fromJSONSchema,
|
|
6091
|
-
formatError: () => formatError,
|
|
6092
|
-
float64: () => float64,
|
|
6093
|
-
float32: () => float32,
|
|
6094
|
-
flattenError: () => flattenError,
|
|
6095
|
-
file: () => file,
|
|
6096
|
-
exactOptional: () => exactOptional,
|
|
6097
|
-
enum: () => _enum2,
|
|
6098
|
-
endsWith: () => _endsWith,
|
|
6099
|
-
encodeAsync: () => encodeAsync2,
|
|
6100
|
-
encode: () => encode2,
|
|
6101
|
-
emoji: () => emoji2,
|
|
6102
|
-
email: () => email2,
|
|
6103
|
-
e164: () => e1642,
|
|
6104
|
-
discriminatedUnion: () => discriminatedUnion,
|
|
6105
|
-
describe: () => describe2,
|
|
6106
|
-
decodeAsync: () => decodeAsync2,
|
|
6107
|
-
decode: () => decode2,
|
|
6108
|
-
date: () => date3,
|
|
6109
|
-
custom: () => custom,
|
|
6110
|
-
cuid2: () => cuid22,
|
|
6111
|
-
cuid: () => cuid3,
|
|
6112
|
-
core: () => exports_core2,
|
|
6113
|
-
config: () => config,
|
|
6114
|
-
coerce: () => exports_coerce,
|
|
6115
|
-
codec: () => codec,
|
|
6116
|
-
clone: () => clone2,
|
|
6117
|
-
cidrv6: () => cidrv62,
|
|
6118
|
-
cidrv4: () => cidrv42,
|
|
6119
|
-
check: () => check,
|
|
6120
|
-
catch: () => _catch2,
|
|
6121
|
-
boolean: () => boolean2,
|
|
6122
|
-
bigint: () => bigint2,
|
|
6123
|
-
base64url: () => base64url2,
|
|
6124
|
-
base64: () => base642,
|
|
6125
|
-
array: () => array,
|
|
6126
|
-
any: () => any,
|
|
6127
|
-
_function: () => _function,
|
|
6128
|
-
_default: () => _default2,
|
|
6129
|
-
_ZodString: () => _ZodString,
|
|
6130
|
-
ZodXor: () => ZodXor,
|
|
6131
|
-
ZodXID: () => ZodXID,
|
|
6132
|
-
ZodVoid: () => ZodVoid,
|
|
6133
|
-
ZodUnknown: () => ZodUnknown,
|
|
6134
|
-
ZodUnion: () => ZodUnion,
|
|
6135
|
-
ZodUndefined: () => ZodUndefined,
|
|
6136
|
-
ZodUUID: () => ZodUUID,
|
|
6137
|
-
ZodURL: () => ZodURL,
|
|
6138
|
-
ZodULID: () => ZodULID,
|
|
6139
|
-
ZodType: () => ZodType,
|
|
6140
|
-
ZodTuple: () => ZodTuple,
|
|
6141
|
-
ZodTransform: () => ZodTransform,
|
|
6142
|
-
ZodTemplateLiteral: () => ZodTemplateLiteral,
|
|
6143
|
-
ZodSymbol: () => ZodSymbol,
|
|
6144
|
-
ZodSuccess: () => ZodSuccess,
|
|
6145
|
-
ZodStringFormat: () => ZodStringFormat,
|
|
6146
|
-
ZodString: () => ZodString,
|
|
6147
|
-
ZodSet: () => ZodSet,
|
|
6148
|
-
ZodRecord: () => ZodRecord,
|
|
6149
|
-
ZodRealError: () => ZodRealError,
|
|
6150
|
-
ZodReadonly: () => ZodReadonly,
|
|
6151
|
-
ZodPromise: () => ZodPromise,
|
|
6152
|
-
ZodPrefault: () => ZodPrefault,
|
|
6153
|
-
ZodPipe: () => ZodPipe,
|
|
6154
|
-
ZodOptional: () => ZodOptional,
|
|
6155
|
-
ZodObject: () => ZodObject,
|
|
6156
|
-
ZodNumberFormat: () => ZodNumberFormat,
|
|
6157
|
-
ZodNumber: () => ZodNumber,
|
|
6158
|
-
ZodNullable: () => ZodNullable,
|
|
6159
|
-
ZodNull: () => ZodNull,
|
|
6160
|
-
ZodNonOptional: () => ZodNonOptional,
|
|
6161
|
-
ZodNever: () => ZodNever,
|
|
6162
|
-
ZodNanoID: () => ZodNanoID,
|
|
6163
|
-
ZodNaN: () => ZodNaN,
|
|
6164
|
-
ZodMap: () => ZodMap,
|
|
6165
|
-
ZodMAC: () => ZodMAC,
|
|
6166
|
-
ZodLiteral: () => ZodLiteral,
|
|
6167
|
-
ZodLazy: () => ZodLazy,
|
|
6168
|
-
ZodKSUID: () => ZodKSUID,
|
|
6169
|
-
ZodJWT: () => ZodJWT,
|
|
6170
|
-
ZodIssueCode: () => ZodIssueCode,
|
|
6171
|
-
ZodIntersection: () => ZodIntersection,
|
|
6172
|
-
ZodISOTime: () => ZodISOTime,
|
|
6173
|
-
ZodISODuration: () => ZodISODuration,
|
|
6174
|
-
ZodISODateTime: () => ZodISODateTime,
|
|
6175
|
-
ZodISODate: () => ZodISODate,
|
|
6176
|
-
ZodIPv6: () => ZodIPv6,
|
|
6177
|
-
ZodIPv4: () => ZodIPv4,
|
|
6178
|
-
ZodGUID: () => ZodGUID,
|
|
6179
|
-
ZodFunction: () => ZodFunction,
|
|
6180
|
-
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
6181
|
-
ZodFile: () => ZodFile,
|
|
6182
|
-
ZodExactOptional: () => ZodExactOptional,
|
|
6183
|
-
ZodError: () => ZodError,
|
|
6184
|
-
ZodEnum: () => ZodEnum,
|
|
6185
|
-
ZodEmoji: () => ZodEmoji,
|
|
6186
|
-
ZodEmail: () => ZodEmail,
|
|
6187
|
-
ZodE164: () => ZodE164,
|
|
6188
|
-
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
6189
|
-
ZodDefault: () => ZodDefault,
|
|
6190
|
-
ZodDate: () => ZodDate,
|
|
6191
|
-
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
6192
|
-
ZodCustom: () => ZodCustom,
|
|
6193
|
-
ZodCodec: () => ZodCodec,
|
|
6194
|
-
ZodCatch: () => ZodCatch,
|
|
6195
|
-
ZodCUID2: () => ZodCUID2,
|
|
6196
|
-
ZodCUID: () => ZodCUID,
|
|
6197
|
-
ZodCIDRv6: () => ZodCIDRv6,
|
|
6198
|
-
ZodCIDRv4: () => ZodCIDRv4,
|
|
6199
|
-
ZodBoolean: () => ZodBoolean,
|
|
6200
|
-
ZodBigIntFormat: () => ZodBigIntFormat,
|
|
6201
|
-
ZodBigInt: () => ZodBigInt,
|
|
6202
|
-
ZodBase64URL: () => ZodBase64URL,
|
|
6203
|
-
ZodBase64: () => ZodBase64,
|
|
6204
|
-
ZodArray: () => ZodArray,
|
|
6205
|
-
ZodAny: () => ZodAny,
|
|
6206
|
-
TimePrecision: () => TimePrecision,
|
|
6207
|
-
NEVER: () => NEVER,
|
|
6208
|
-
$output: () => $output,
|
|
6209
|
-
$input: () => $input,
|
|
6210
|
-
$brand: () => $brand
|
|
6211
|
-
});
|
|
6212
|
-
|
|
6213
|
-
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
|
|
6214
|
-
var exports_core2 = {};
|
|
6215
|
-
__export(exports_core2, {
|
|
6216
|
-
version: () => version,
|
|
6217
|
-
util: () => exports_util,
|
|
6218
|
-
treeifyError: () => treeifyError,
|
|
6219
|
-
toJSONSchema: () => toJSONSchema,
|
|
6220
|
-
toDotPath: () => toDotPath,
|
|
6221
|
-
safeParseAsync: () => safeParseAsync,
|
|
6222
|
-
safeParse: () => safeParse,
|
|
6223
|
-
safeEncodeAsync: () => safeEncodeAsync,
|
|
6224
|
-
safeEncode: () => safeEncode,
|
|
6225
|
-
safeDecodeAsync: () => safeDecodeAsync,
|
|
6226
|
-
safeDecode: () => safeDecode,
|
|
6227
|
-
registry: () => registry,
|
|
6228
|
-
regexes: () => exports_regexes,
|
|
6229
|
-
process: () => process,
|
|
6230
|
-
prettifyError: () => prettifyError,
|
|
6231
|
-
parseAsync: () => parseAsync,
|
|
6232
|
-
parse: () => parse,
|
|
6233
|
-
meta: () => meta,
|
|
6234
|
-
locales: () => exports_locales,
|
|
6235
|
-
isValidJWT: () => isValidJWT,
|
|
6236
|
-
isValidBase64URL: () => isValidBase64URL,
|
|
6237
|
-
isValidBase64: () => isValidBase64,
|
|
6238
|
-
initializeContext: () => initializeContext,
|
|
6239
|
-
globalRegistry: () => globalRegistry,
|
|
6240
|
-
globalConfig: () => globalConfig,
|
|
6241
|
-
formatError: () => formatError,
|
|
6242
|
-
flattenError: () => flattenError,
|
|
6243
|
-
finalize: () => finalize,
|
|
6244
|
-
extractDefs: () => extractDefs,
|
|
6245
|
-
encodeAsync: () => encodeAsync,
|
|
6246
|
-
encode: () => encode,
|
|
6247
|
-
describe: () => describe,
|
|
6248
|
-
decodeAsync: () => decodeAsync,
|
|
6249
|
-
decode: () => decode,
|
|
6250
|
-
createToJSONSchemaMethod: () => createToJSONSchemaMethod,
|
|
6251
|
-
createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod,
|
|
6252
|
-
config: () => config,
|
|
6253
|
-
clone: () => clone2,
|
|
6254
|
-
_xor: () => _xor,
|
|
6255
|
-
_xid: () => _xid,
|
|
6256
|
-
_void: () => _void,
|
|
6257
|
-
_uuidv7: () => _uuidv7,
|
|
6258
|
-
_uuidv6: () => _uuidv6,
|
|
6259
|
-
_uuidv4: () => _uuidv4,
|
|
6260
|
-
_uuid: () => _uuid,
|
|
6261
|
-
_url: () => _url,
|
|
6262
|
-
_uppercase: () => _uppercase,
|
|
6263
|
-
_unknown: () => _unknown,
|
|
6264
|
-
_union: () => _union,
|
|
6265
|
-
_undefined: () => _undefined2,
|
|
6266
|
-
_ulid: () => _ulid,
|
|
6267
|
-
_uint64: () => _uint64,
|
|
6268
|
-
_uint32: () => _uint32,
|
|
6269
|
-
_tuple: () => _tuple,
|
|
6270
|
-
_trim: () => _trim,
|
|
6271
|
-
_transform: () => _transform,
|
|
6272
|
-
_toUpperCase: () => _toUpperCase,
|
|
6273
|
-
_toLowerCase: () => _toLowerCase,
|
|
6274
|
-
_templateLiteral: () => _templateLiteral,
|
|
6275
|
-
_symbol: () => _symbol,
|
|
6276
|
-
_superRefine: () => _superRefine,
|
|
6277
|
-
_success: () => _success,
|
|
6278
|
-
_stringbool: () => _stringbool,
|
|
6279
|
-
_stringFormat: () => _stringFormat,
|
|
6280
|
-
_string: () => _string,
|
|
6281
|
-
_startsWith: () => _startsWith,
|
|
6282
|
-
_slugify: () => _slugify,
|
|
6283
|
-
_size: () => _size,
|
|
6284
|
-
_set: () => _set,
|
|
6285
|
-
_safeParseAsync: () => _safeParseAsync,
|
|
6286
|
-
_safeParse: () => _safeParse,
|
|
6287
|
-
_safeEncodeAsync: () => _safeEncodeAsync,
|
|
6288
|
-
_safeEncode: () => _safeEncode,
|
|
6289
|
-
_safeDecodeAsync: () => _safeDecodeAsync,
|
|
6290
|
-
_safeDecode: () => _safeDecode,
|
|
6291
|
-
_regex: () => _regex,
|
|
6292
|
-
_refine: () => _refine,
|
|
6293
|
-
_record: () => _record,
|
|
6294
|
-
_readonly: () => _readonly,
|
|
6295
|
-
_property: () => _property,
|
|
6296
|
-
_promise: () => _promise,
|
|
6297
|
-
_positive: () => _positive,
|
|
6298
|
-
_pipe: () => _pipe,
|
|
6299
|
-
_parseAsync: () => _parseAsync,
|
|
6300
|
-
_parse: () => _parse,
|
|
6301
|
-
_overwrite: () => _overwrite,
|
|
6302
|
-
_optional: () => _optional,
|
|
6303
|
-
_number: () => _number,
|
|
6304
|
-
_nullable: () => _nullable,
|
|
6305
|
-
_null: () => _null2,
|
|
6306
|
-
_normalize: () => _normalize,
|
|
6307
|
-
_nonpositive: () => _nonpositive,
|
|
6308
|
-
_nonoptional: () => _nonoptional,
|
|
6309
|
-
_nonnegative: () => _nonnegative,
|
|
6310
|
-
_never: () => _never,
|
|
6311
|
-
_negative: () => _negative,
|
|
6312
|
-
_nativeEnum: () => _nativeEnum,
|
|
6313
|
-
_nanoid: () => _nanoid,
|
|
6314
|
-
_nan: () => _nan,
|
|
6315
|
-
_multipleOf: () => _multipleOf,
|
|
6316
|
-
_minSize: () => _minSize,
|
|
6317
|
-
_minLength: () => _minLength,
|
|
6318
|
-
_min: () => _gte,
|
|
6319
|
-
_mime: () => _mime,
|
|
6320
|
-
_maxSize: () => _maxSize,
|
|
6321
|
-
_maxLength: () => _maxLength,
|
|
6322
|
-
_max: () => _lte,
|
|
6323
|
-
_map: () => _map,
|
|
6324
|
-
_mac: () => _mac,
|
|
6325
|
-
_lte: () => _lte,
|
|
6326
|
-
_lt: () => _lt,
|
|
6327
|
-
_lowercase: () => _lowercase,
|
|
6328
|
-
_literal: () => _literal,
|
|
6329
|
-
_length: () => _length,
|
|
6330
|
-
_lazy: () => _lazy,
|
|
6331
|
-
_ksuid: () => _ksuid,
|
|
6332
|
-
_jwt: () => _jwt,
|
|
6333
|
-
_isoTime: () => _isoTime,
|
|
6334
|
-
_isoDuration: () => _isoDuration,
|
|
6335
|
-
_isoDateTime: () => _isoDateTime,
|
|
6336
|
-
_isoDate: () => _isoDate,
|
|
6337
|
-
_ipv6: () => _ipv6,
|
|
6338
|
-
_ipv4: () => _ipv4,
|
|
6339
|
-
_intersection: () => _intersection,
|
|
6340
|
-
_int64: () => _int64,
|
|
6341
|
-
_int32: () => _int32,
|
|
6342
|
-
_int: () => _int,
|
|
6343
|
-
_includes: () => _includes,
|
|
6344
|
-
_guid: () => _guid,
|
|
6345
|
-
_gte: () => _gte,
|
|
6346
|
-
_gt: () => _gt,
|
|
6347
|
-
_float64: () => _float64,
|
|
6348
|
-
_float32: () => _float32,
|
|
6349
|
-
_file: () => _file,
|
|
6350
|
-
_enum: () => _enum,
|
|
6351
|
-
_endsWith: () => _endsWith,
|
|
6352
|
-
_encodeAsync: () => _encodeAsync,
|
|
6353
|
-
_encode: () => _encode,
|
|
6354
|
-
_emoji: () => _emoji2,
|
|
6355
|
-
_email: () => _email,
|
|
6356
|
-
_e164: () => _e164,
|
|
6357
|
-
_discriminatedUnion: () => _discriminatedUnion,
|
|
6358
|
-
_default: () => _default,
|
|
6359
|
-
_decodeAsync: () => _decodeAsync,
|
|
6360
|
-
_decode: () => _decode,
|
|
6361
|
-
_date: () => _date,
|
|
6362
|
-
_custom: () => _custom,
|
|
6363
|
-
_cuid2: () => _cuid2,
|
|
6364
|
-
_cuid: () => _cuid,
|
|
6365
|
-
_coercedString: () => _coercedString,
|
|
6366
|
-
_coercedNumber: () => _coercedNumber,
|
|
6367
|
-
_coercedDate: () => _coercedDate,
|
|
6368
|
-
_coercedBoolean: () => _coercedBoolean,
|
|
6369
|
-
_coercedBigint: () => _coercedBigint,
|
|
6370
|
-
_cidrv6: () => _cidrv6,
|
|
6371
|
-
_cidrv4: () => _cidrv4,
|
|
6372
|
-
_check: () => _check,
|
|
6373
|
-
_catch: () => _catch,
|
|
6374
|
-
_boolean: () => _boolean,
|
|
6375
|
-
_bigint: () => _bigint,
|
|
6376
|
-
_base64url: () => _base64url,
|
|
6377
|
-
_base64: () => _base64,
|
|
6378
|
-
_array: () => _array,
|
|
6379
|
-
_any: () => _any,
|
|
6380
|
-
TimePrecision: () => TimePrecision,
|
|
6381
|
-
NEVER: () => NEVER,
|
|
6382
|
-
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
6383
|
-
JSONSchema: () => exports_json_schema,
|
|
6384
|
-
Doc: () => Doc,
|
|
6385
|
-
$output: () => $output,
|
|
6386
|
-
$input: () => $input,
|
|
6387
|
-
$constructor: () => $constructor,
|
|
3721
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
3722
|
+
var exports_external = {};
|
|
3723
|
+
__export(exports_external, {
|
|
6388
3724
|
$brand: () => $brand,
|
|
6389
|
-
$
|
|
6390
|
-
$
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
3725
|
+
$input: () => $input,
|
|
3726
|
+
$output: () => $output,
|
|
3727
|
+
NEVER: () => NEVER,
|
|
3728
|
+
TimePrecision: () => TimePrecision,
|
|
3729
|
+
ZodAny: () => ZodAny,
|
|
3730
|
+
ZodArray: () => ZodArray,
|
|
3731
|
+
ZodBase64: () => ZodBase64,
|
|
3732
|
+
ZodBase64URL: () => ZodBase64URL,
|
|
3733
|
+
ZodBigInt: () => ZodBigInt,
|
|
3734
|
+
ZodBigIntFormat: () => ZodBigIntFormat,
|
|
3735
|
+
ZodBoolean: () => ZodBoolean,
|
|
3736
|
+
ZodCIDRv4: () => ZodCIDRv4,
|
|
3737
|
+
ZodCIDRv6: () => ZodCIDRv6,
|
|
3738
|
+
ZodCUID: () => ZodCUID,
|
|
3739
|
+
ZodCUID2: () => ZodCUID2,
|
|
3740
|
+
ZodCatch: () => ZodCatch,
|
|
3741
|
+
ZodCodec: () => ZodCodec,
|
|
3742
|
+
ZodCustom: () => ZodCustom,
|
|
3743
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
3744
|
+
ZodDate: () => ZodDate,
|
|
3745
|
+
ZodDefault: () => ZodDefault,
|
|
3746
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
3747
|
+
ZodE164: () => ZodE164,
|
|
3748
|
+
ZodEmail: () => ZodEmail,
|
|
3749
|
+
ZodEmoji: () => ZodEmoji,
|
|
3750
|
+
ZodEnum: () => ZodEnum,
|
|
3751
|
+
ZodError: () => ZodError,
|
|
3752
|
+
ZodExactOptional: () => ZodExactOptional,
|
|
3753
|
+
ZodFile: () => ZodFile,
|
|
3754
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
3755
|
+
ZodFunction: () => ZodFunction,
|
|
3756
|
+
ZodGUID: () => ZodGUID,
|
|
3757
|
+
ZodIPv4: () => ZodIPv4,
|
|
3758
|
+
ZodIPv6: () => ZodIPv6,
|
|
3759
|
+
ZodISODate: () => ZodISODate,
|
|
3760
|
+
ZodISODateTime: () => ZodISODateTime,
|
|
3761
|
+
ZodISODuration: () => ZodISODuration,
|
|
3762
|
+
ZodISOTime: () => ZodISOTime,
|
|
3763
|
+
ZodIntersection: () => ZodIntersection,
|
|
3764
|
+
ZodIssueCode: () => ZodIssueCode,
|
|
3765
|
+
ZodJWT: () => ZodJWT,
|
|
3766
|
+
ZodKSUID: () => ZodKSUID,
|
|
3767
|
+
ZodLazy: () => ZodLazy,
|
|
3768
|
+
ZodLiteral: () => ZodLiteral,
|
|
3769
|
+
ZodMAC: () => ZodMAC,
|
|
3770
|
+
ZodMap: () => ZodMap,
|
|
3771
|
+
ZodNaN: () => ZodNaN,
|
|
3772
|
+
ZodNanoID: () => ZodNanoID,
|
|
3773
|
+
ZodNever: () => ZodNever,
|
|
3774
|
+
ZodNonOptional: () => ZodNonOptional,
|
|
3775
|
+
ZodNull: () => ZodNull,
|
|
3776
|
+
ZodNullable: () => ZodNullable,
|
|
3777
|
+
ZodNumber: () => ZodNumber,
|
|
3778
|
+
ZodNumberFormat: () => ZodNumberFormat,
|
|
3779
|
+
ZodObject: () => ZodObject,
|
|
3780
|
+
ZodOptional: () => ZodOptional,
|
|
3781
|
+
ZodPipe: () => ZodPipe,
|
|
3782
|
+
ZodPrefault: () => ZodPrefault,
|
|
3783
|
+
ZodPromise: () => ZodPromise,
|
|
3784
|
+
ZodReadonly: () => ZodReadonly,
|
|
3785
|
+
ZodRealError: () => ZodRealError,
|
|
3786
|
+
ZodRecord: () => ZodRecord,
|
|
3787
|
+
ZodSet: () => ZodSet,
|
|
3788
|
+
ZodString: () => ZodString,
|
|
3789
|
+
ZodStringFormat: () => ZodStringFormat,
|
|
3790
|
+
ZodSuccess: () => ZodSuccess,
|
|
3791
|
+
ZodSymbol: () => ZodSymbol,
|
|
3792
|
+
ZodTemplateLiteral: () => ZodTemplateLiteral,
|
|
3793
|
+
ZodTransform: () => ZodTransform,
|
|
3794
|
+
ZodTuple: () => ZodTuple,
|
|
3795
|
+
ZodType: () => ZodType,
|
|
3796
|
+
ZodULID: () => ZodULID,
|
|
3797
|
+
ZodURL: () => ZodURL,
|
|
3798
|
+
ZodUUID: () => ZodUUID,
|
|
3799
|
+
ZodUndefined: () => ZodUndefined,
|
|
3800
|
+
ZodUnion: () => ZodUnion,
|
|
3801
|
+
ZodUnknown: () => ZodUnknown,
|
|
3802
|
+
ZodVoid: () => ZodVoid,
|
|
3803
|
+
ZodXID: () => ZodXID,
|
|
3804
|
+
ZodXor: () => ZodXor,
|
|
3805
|
+
_ZodString: () => _ZodString,
|
|
3806
|
+
_default: () => _default2,
|
|
3807
|
+
_function: () => _function,
|
|
3808
|
+
any: () => any,
|
|
3809
|
+
array: () => array,
|
|
3810
|
+
base64: () => base642,
|
|
3811
|
+
base64url: () => base64url2,
|
|
3812
|
+
bigint: () => bigint2,
|
|
3813
|
+
boolean: () => boolean2,
|
|
3814
|
+
catch: () => _catch2,
|
|
3815
|
+
check: () => check,
|
|
3816
|
+
cidrv4: () => cidrv42,
|
|
3817
|
+
cidrv6: () => cidrv62,
|
|
3818
|
+
clone: () => clone2,
|
|
3819
|
+
codec: () => codec,
|
|
3820
|
+
coerce: () => exports_coerce,
|
|
3821
|
+
config: () => config,
|
|
3822
|
+
core: () => exports_core2,
|
|
3823
|
+
cuid: () => cuid3,
|
|
3824
|
+
cuid2: () => cuid22,
|
|
3825
|
+
custom: () => custom,
|
|
3826
|
+
date: () => date3,
|
|
3827
|
+
decode: () => decode2,
|
|
3828
|
+
decodeAsync: () => decodeAsync2,
|
|
3829
|
+
describe: () => describe2,
|
|
3830
|
+
discriminatedUnion: () => discriminatedUnion,
|
|
3831
|
+
e164: () => e1642,
|
|
3832
|
+
email: () => email2,
|
|
3833
|
+
emoji: () => emoji2,
|
|
3834
|
+
encode: () => encode2,
|
|
3835
|
+
encodeAsync: () => encodeAsync2,
|
|
3836
|
+
endsWith: () => _endsWith,
|
|
3837
|
+
enum: () => _enum2,
|
|
3838
|
+
exactOptional: () => exactOptional,
|
|
3839
|
+
file: () => file,
|
|
3840
|
+
flattenError: () => flattenError,
|
|
3841
|
+
float32: () => float32,
|
|
3842
|
+
float64: () => float64,
|
|
3843
|
+
formatError: () => formatError,
|
|
3844
|
+
fromJSONSchema: () => fromJSONSchema,
|
|
3845
|
+
function: () => _function,
|
|
3846
|
+
getErrorMap: () => getErrorMap,
|
|
3847
|
+
globalRegistry: () => globalRegistry,
|
|
3848
|
+
gt: () => _gt,
|
|
3849
|
+
gte: () => _gte,
|
|
3850
|
+
guid: () => guid2,
|
|
3851
|
+
hash: () => hash,
|
|
3852
|
+
hex: () => hex2,
|
|
3853
|
+
hostname: () => hostname2,
|
|
3854
|
+
httpUrl: () => httpUrl,
|
|
3855
|
+
includes: () => _includes,
|
|
3856
|
+
instanceof: () => _instanceof,
|
|
3857
|
+
int: () => int,
|
|
3858
|
+
int32: () => int32,
|
|
3859
|
+
int64: () => int64,
|
|
3860
|
+
intersection: () => intersection,
|
|
3861
|
+
ipv4: () => ipv42,
|
|
3862
|
+
ipv6: () => ipv62,
|
|
3863
|
+
iso: () => exports_iso,
|
|
3864
|
+
json: () => json,
|
|
3865
|
+
jwt: () => jwt,
|
|
3866
|
+
keyof: () => keyof,
|
|
3867
|
+
ksuid: () => ksuid2,
|
|
3868
|
+
lazy: () => lazy,
|
|
3869
|
+
length: () => _length,
|
|
3870
|
+
literal: () => literal,
|
|
3871
|
+
locales: () => exports_locales,
|
|
3872
|
+
looseObject: () => looseObject,
|
|
3873
|
+
looseRecord: () => looseRecord,
|
|
3874
|
+
lowercase: () => _lowercase,
|
|
3875
|
+
lt: () => _lt,
|
|
3876
|
+
lte: () => _lte,
|
|
3877
|
+
mac: () => mac2,
|
|
3878
|
+
map: () => map,
|
|
3879
|
+
maxLength: () => _maxLength,
|
|
3880
|
+
maxSize: () => _maxSize,
|
|
3881
|
+
meta: () => meta2,
|
|
3882
|
+
mime: () => _mime,
|
|
3883
|
+
minLength: () => _minLength,
|
|
3884
|
+
minSize: () => _minSize,
|
|
3885
|
+
multipleOf: () => _multipleOf,
|
|
3886
|
+
nan: () => nan,
|
|
3887
|
+
nanoid: () => nanoid2,
|
|
3888
|
+
nativeEnum: () => nativeEnum,
|
|
3889
|
+
negative: () => _negative,
|
|
3890
|
+
never: () => never,
|
|
3891
|
+
nonnegative: () => _nonnegative,
|
|
3892
|
+
nonoptional: () => nonoptional,
|
|
3893
|
+
nonpositive: () => _nonpositive,
|
|
3894
|
+
normalize: () => _normalize,
|
|
3895
|
+
null: () => _null3,
|
|
3896
|
+
nullable: () => nullable,
|
|
3897
|
+
nullish: () => nullish2,
|
|
3898
|
+
number: () => number2,
|
|
3899
|
+
object: () => object,
|
|
3900
|
+
optional: () => optional,
|
|
3901
|
+
overwrite: () => _overwrite,
|
|
3902
|
+
parse: () => parse3,
|
|
3903
|
+
parseAsync: () => parseAsync2,
|
|
3904
|
+
partialRecord: () => partialRecord,
|
|
3905
|
+
pipe: () => pipe,
|
|
3906
|
+
positive: () => _positive,
|
|
3907
|
+
prefault: () => prefault,
|
|
3908
|
+
preprocess: () => preprocess,
|
|
3909
|
+
prettifyError: () => prettifyError,
|
|
3910
|
+
promise: () => promise,
|
|
3911
|
+
property: () => _property,
|
|
3912
|
+
readonly: () => readonly2,
|
|
3913
|
+
record: () => record,
|
|
3914
|
+
refine: () => refine,
|
|
3915
|
+
regex: () => _regex,
|
|
3916
|
+
regexes: () => exports_regexes,
|
|
3917
|
+
registry: () => registry,
|
|
3918
|
+
safeDecode: () => safeDecode2,
|
|
3919
|
+
safeDecodeAsync: () => safeDecodeAsync2,
|
|
3920
|
+
safeEncode: () => safeEncode2,
|
|
3921
|
+
safeEncodeAsync: () => safeEncodeAsync2,
|
|
3922
|
+
safeParse: () => safeParse2,
|
|
3923
|
+
safeParseAsync: () => safeParseAsync2,
|
|
3924
|
+
set: () => set2,
|
|
3925
|
+
setErrorMap: () => setErrorMap,
|
|
3926
|
+
size: () => _size,
|
|
3927
|
+
slugify: () => _slugify,
|
|
3928
|
+
startsWith: () => _startsWith,
|
|
3929
|
+
strictObject: () => strictObject,
|
|
3930
|
+
string: () => string2,
|
|
3931
|
+
stringFormat: () => stringFormat,
|
|
3932
|
+
stringbool: () => stringbool,
|
|
3933
|
+
success: () => success,
|
|
3934
|
+
superRefine: () => superRefine,
|
|
3935
|
+
symbol: () => symbol,
|
|
3936
|
+
templateLiteral: () => templateLiteral,
|
|
3937
|
+
toJSONSchema: () => toJSONSchema,
|
|
3938
|
+
toLowerCase: () => _toLowerCase,
|
|
3939
|
+
toUpperCase: () => _toUpperCase,
|
|
3940
|
+
transform: () => transform,
|
|
3941
|
+
treeifyError: () => treeifyError,
|
|
3942
|
+
trim: () => _trim,
|
|
3943
|
+
tuple: () => tuple,
|
|
3944
|
+
uint32: () => uint32,
|
|
3945
|
+
uint64: () => uint64,
|
|
3946
|
+
ulid: () => ulid2,
|
|
3947
|
+
undefined: () => _undefined3,
|
|
3948
|
+
union: () => union,
|
|
3949
|
+
unknown: () => unknown,
|
|
3950
|
+
uppercase: () => _uppercase,
|
|
3951
|
+
url: () => url,
|
|
3952
|
+
util: () => exports_util,
|
|
3953
|
+
uuid: () => uuid2,
|
|
3954
|
+
uuidv4: () => uuidv4,
|
|
3955
|
+
uuidv6: () => uuidv6,
|
|
3956
|
+
uuidv7: () => uuidv7,
|
|
3957
|
+
void: () => _void2,
|
|
3958
|
+
xid: () => xid2,
|
|
3959
|
+
xor: () => xor
|
|
3960
|
+
});
|
|
3961
|
+
|
|
3962
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
|
|
3963
|
+
var exports_core2 = {};
|
|
3964
|
+
__export(exports_core2, {
|
|
3965
|
+
$ZodAny: () => $ZodAny,
|
|
6487
3966
|
$ZodArray: () => $ZodArray,
|
|
6488
|
-
$
|
|
3967
|
+
$ZodAsyncError: () => $ZodAsyncError,
|
|
3968
|
+
$ZodBase64: () => $ZodBase64,
|
|
3969
|
+
$ZodBase64URL: () => $ZodBase64URL,
|
|
3970
|
+
$ZodBigInt: () => $ZodBigInt,
|
|
3971
|
+
$ZodBigIntFormat: () => $ZodBigIntFormat,
|
|
3972
|
+
$ZodBoolean: () => $ZodBoolean,
|
|
3973
|
+
$ZodCIDRv4: () => $ZodCIDRv4,
|
|
3974
|
+
$ZodCIDRv6: () => $ZodCIDRv6,
|
|
3975
|
+
$ZodCUID: () => $ZodCUID,
|
|
3976
|
+
$ZodCUID2: () => $ZodCUID2,
|
|
3977
|
+
$ZodCatch: () => $ZodCatch,
|
|
3978
|
+
$ZodCheck: () => $ZodCheck,
|
|
3979
|
+
$ZodCheckBigIntFormat: () => $ZodCheckBigIntFormat,
|
|
3980
|
+
$ZodCheckEndsWith: () => $ZodCheckEndsWith,
|
|
3981
|
+
$ZodCheckGreaterThan: () => $ZodCheckGreaterThan,
|
|
3982
|
+
$ZodCheckIncludes: () => $ZodCheckIncludes,
|
|
3983
|
+
$ZodCheckLengthEquals: () => $ZodCheckLengthEquals,
|
|
3984
|
+
$ZodCheckLessThan: () => $ZodCheckLessThan,
|
|
3985
|
+
$ZodCheckLowerCase: () => $ZodCheckLowerCase,
|
|
3986
|
+
$ZodCheckMaxLength: () => $ZodCheckMaxLength,
|
|
3987
|
+
$ZodCheckMaxSize: () => $ZodCheckMaxSize,
|
|
3988
|
+
$ZodCheckMimeType: () => $ZodCheckMimeType,
|
|
3989
|
+
$ZodCheckMinLength: () => $ZodCheckMinLength,
|
|
3990
|
+
$ZodCheckMinSize: () => $ZodCheckMinSize,
|
|
3991
|
+
$ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
|
|
3992
|
+
$ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
|
|
3993
|
+
$ZodCheckOverwrite: () => $ZodCheckOverwrite,
|
|
3994
|
+
$ZodCheckProperty: () => $ZodCheckProperty,
|
|
3995
|
+
$ZodCheckRegex: () => $ZodCheckRegex,
|
|
3996
|
+
$ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
|
|
3997
|
+
$ZodCheckStartsWith: () => $ZodCheckStartsWith,
|
|
3998
|
+
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
3999
|
+
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
4000
|
+
$ZodCodec: () => $ZodCodec,
|
|
4001
|
+
$ZodCustom: () => $ZodCustom,
|
|
4002
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
4003
|
+
$ZodDate: () => $ZodDate,
|
|
4004
|
+
$ZodDefault: () => $ZodDefault,
|
|
4005
|
+
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
4006
|
+
$ZodE164: () => $ZodE164,
|
|
4007
|
+
$ZodEmail: () => $ZodEmail,
|
|
4008
|
+
$ZodEmoji: () => $ZodEmoji,
|
|
4009
|
+
$ZodEncodeError: () => $ZodEncodeError,
|
|
4010
|
+
$ZodEnum: () => $ZodEnum,
|
|
4011
|
+
$ZodError: () => $ZodError,
|
|
4012
|
+
$ZodExactOptional: () => $ZodExactOptional,
|
|
4013
|
+
$ZodFile: () => $ZodFile,
|
|
4014
|
+
$ZodFunction: () => $ZodFunction,
|
|
4015
|
+
$ZodGUID: () => $ZodGUID,
|
|
4016
|
+
$ZodIPv4: () => $ZodIPv4,
|
|
4017
|
+
$ZodIPv6: () => $ZodIPv6,
|
|
4018
|
+
$ZodISODate: () => $ZodISODate,
|
|
4019
|
+
$ZodISODateTime: () => $ZodISODateTime,
|
|
4020
|
+
$ZodISODuration: () => $ZodISODuration,
|
|
4021
|
+
$ZodISOTime: () => $ZodISOTime,
|
|
4022
|
+
$ZodIntersection: () => $ZodIntersection,
|
|
4023
|
+
$ZodJWT: () => $ZodJWT,
|
|
4024
|
+
$ZodKSUID: () => $ZodKSUID,
|
|
4025
|
+
$ZodLazy: () => $ZodLazy,
|
|
4026
|
+
$ZodLiteral: () => $ZodLiteral,
|
|
4027
|
+
$ZodMAC: () => $ZodMAC,
|
|
4028
|
+
$ZodMap: () => $ZodMap,
|
|
4029
|
+
$ZodNaN: () => $ZodNaN,
|
|
4030
|
+
$ZodNanoID: () => $ZodNanoID,
|
|
4031
|
+
$ZodNever: () => $ZodNever,
|
|
4032
|
+
$ZodNonOptional: () => $ZodNonOptional,
|
|
4033
|
+
$ZodNull: () => $ZodNull,
|
|
4034
|
+
$ZodNullable: () => $ZodNullable,
|
|
4035
|
+
$ZodNumber: () => $ZodNumber,
|
|
4036
|
+
$ZodNumberFormat: () => $ZodNumberFormat,
|
|
4037
|
+
$ZodObject: () => $ZodObject,
|
|
4038
|
+
$ZodObjectJIT: () => $ZodObjectJIT,
|
|
4039
|
+
$ZodOptional: () => $ZodOptional,
|
|
4040
|
+
$ZodPipe: () => $ZodPipe,
|
|
4041
|
+
$ZodPrefault: () => $ZodPrefault,
|
|
4042
|
+
$ZodPromise: () => $ZodPromise,
|
|
4043
|
+
$ZodReadonly: () => $ZodReadonly,
|
|
4044
|
+
$ZodRealError: () => $ZodRealError,
|
|
4045
|
+
$ZodRecord: () => $ZodRecord,
|
|
4046
|
+
$ZodRegistry: () => $ZodRegistry,
|
|
4047
|
+
$ZodSet: () => $ZodSet,
|
|
4048
|
+
$ZodString: () => $ZodString,
|
|
4049
|
+
$ZodStringFormat: () => $ZodStringFormat,
|
|
4050
|
+
$ZodSuccess: () => $ZodSuccess,
|
|
4051
|
+
$ZodSymbol: () => $ZodSymbol,
|
|
4052
|
+
$ZodTemplateLiteral: () => $ZodTemplateLiteral,
|
|
4053
|
+
$ZodTransform: () => $ZodTransform,
|
|
4054
|
+
$ZodTuple: () => $ZodTuple,
|
|
4055
|
+
$ZodType: () => $ZodType,
|
|
4056
|
+
$ZodULID: () => $ZodULID,
|
|
4057
|
+
$ZodURL: () => $ZodURL,
|
|
4058
|
+
$ZodUUID: () => $ZodUUID,
|
|
4059
|
+
$ZodUndefined: () => $ZodUndefined,
|
|
4060
|
+
$ZodUnion: () => $ZodUnion,
|
|
4061
|
+
$ZodUnknown: () => $ZodUnknown,
|
|
4062
|
+
$ZodVoid: () => $ZodVoid,
|
|
4063
|
+
$ZodXID: () => $ZodXID,
|
|
4064
|
+
$ZodXor: () => $ZodXor,
|
|
4065
|
+
$brand: () => $brand,
|
|
4066
|
+
$constructor: () => $constructor,
|
|
4067
|
+
$input: () => $input,
|
|
4068
|
+
$output: () => $output,
|
|
4069
|
+
Doc: () => Doc,
|
|
4070
|
+
JSONSchema: () => exports_json_schema,
|
|
4071
|
+
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
4072
|
+
NEVER: () => NEVER,
|
|
4073
|
+
TimePrecision: () => TimePrecision,
|
|
4074
|
+
_any: () => _any,
|
|
4075
|
+
_array: () => _array,
|
|
4076
|
+
_base64: () => _base64,
|
|
4077
|
+
_base64url: () => _base64url,
|
|
4078
|
+
_bigint: () => _bigint,
|
|
4079
|
+
_boolean: () => _boolean,
|
|
4080
|
+
_catch: () => _catch,
|
|
4081
|
+
_check: () => _check,
|
|
4082
|
+
_cidrv4: () => _cidrv4,
|
|
4083
|
+
_cidrv6: () => _cidrv6,
|
|
4084
|
+
_coercedBigint: () => _coercedBigint,
|
|
4085
|
+
_coercedBoolean: () => _coercedBoolean,
|
|
4086
|
+
_coercedDate: () => _coercedDate,
|
|
4087
|
+
_coercedNumber: () => _coercedNumber,
|
|
4088
|
+
_coercedString: () => _coercedString,
|
|
4089
|
+
_cuid: () => _cuid,
|
|
4090
|
+
_cuid2: () => _cuid2,
|
|
4091
|
+
_custom: () => _custom,
|
|
4092
|
+
_date: () => _date,
|
|
4093
|
+
_decode: () => _decode,
|
|
4094
|
+
_decodeAsync: () => _decodeAsync,
|
|
4095
|
+
_default: () => _default,
|
|
4096
|
+
_discriminatedUnion: () => _discriminatedUnion,
|
|
4097
|
+
_e164: () => _e164,
|
|
4098
|
+
_email: () => _email,
|
|
4099
|
+
_emoji: () => _emoji2,
|
|
4100
|
+
_encode: () => _encode,
|
|
4101
|
+
_encodeAsync: () => _encodeAsync,
|
|
4102
|
+
_endsWith: () => _endsWith,
|
|
4103
|
+
_enum: () => _enum,
|
|
4104
|
+
_file: () => _file,
|
|
4105
|
+
_float32: () => _float32,
|
|
4106
|
+
_float64: () => _float64,
|
|
4107
|
+
_gt: () => _gt,
|
|
4108
|
+
_gte: () => _gte,
|
|
4109
|
+
_guid: () => _guid,
|
|
4110
|
+
_includes: () => _includes,
|
|
4111
|
+
_int: () => _int,
|
|
4112
|
+
_int32: () => _int32,
|
|
4113
|
+
_int64: () => _int64,
|
|
4114
|
+
_intersection: () => _intersection,
|
|
4115
|
+
_ipv4: () => _ipv4,
|
|
4116
|
+
_ipv6: () => _ipv6,
|
|
4117
|
+
_isoDate: () => _isoDate,
|
|
4118
|
+
_isoDateTime: () => _isoDateTime,
|
|
4119
|
+
_isoDuration: () => _isoDuration,
|
|
4120
|
+
_isoTime: () => _isoTime,
|
|
4121
|
+
_jwt: () => _jwt,
|
|
4122
|
+
_ksuid: () => _ksuid,
|
|
4123
|
+
_lazy: () => _lazy,
|
|
4124
|
+
_length: () => _length,
|
|
4125
|
+
_literal: () => _literal,
|
|
4126
|
+
_lowercase: () => _lowercase,
|
|
4127
|
+
_lt: () => _lt,
|
|
4128
|
+
_lte: () => _lte,
|
|
4129
|
+
_mac: () => _mac,
|
|
4130
|
+
_map: () => _map,
|
|
4131
|
+
_max: () => _lte,
|
|
4132
|
+
_maxLength: () => _maxLength,
|
|
4133
|
+
_maxSize: () => _maxSize,
|
|
4134
|
+
_mime: () => _mime,
|
|
4135
|
+
_min: () => _gte,
|
|
4136
|
+
_minLength: () => _minLength,
|
|
4137
|
+
_minSize: () => _minSize,
|
|
4138
|
+
_multipleOf: () => _multipleOf,
|
|
4139
|
+
_nan: () => _nan,
|
|
4140
|
+
_nanoid: () => _nanoid,
|
|
4141
|
+
_nativeEnum: () => _nativeEnum,
|
|
4142
|
+
_negative: () => _negative,
|
|
4143
|
+
_never: () => _never,
|
|
4144
|
+
_nonnegative: () => _nonnegative,
|
|
4145
|
+
_nonoptional: () => _nonoptional,
|
|
4146
|
+
_nonpositive: () => _nonpositive,
|
|
4147
|
+
_normalize: () => _normalize,
|
|
4148
|
+
_null: () => _null2,
|
|
4149
|
+
_nullable: () => _nullable,
|
|
4150
|
+
_number: () => _number,
|
|
4151
|
+
_optional: () => _optional,
|
|
4152
|
+
_overwrite: () => _overwrite,
|
|
4153
|
+
_parse: () => _parse,
|
|
4154
|
+
_parseAsync: () => _parseAsync,
|
|
4155
|
+
_pipe: () => _pipe,
|
|
4156
|
+
_positive: () => _positive,
|
|
4157
|
+
_promise: () => _promise,
|
|
4158
|
+
_property: () => _property,
|
|
4159
|
+
_readonly: () => _readonly,
|
|
4160
|
+
_record: () => _record,
|
|
4161
|
+
_refine: () => _refine,
|
|
4162
|
+
_regex: () => _regex,
|
|
4163
|
+
_safeDecode: () => _safeDecode,
|
|
4164
|
+
_safeDecodeAsync: () => _safeDecodeAsync,
|
|
4165
|
+
_safeEncode: () => _safeEncode,
|
|
4166
|
+
_safeEncodeAsync: () => _safeEncodeAsync,
|
|
4167
|
+
_safeParse: () => _safeParse,
|
|
4168
|
+
_safeParseAsync: () => _safeParseAsync,
|
|
4169
|
+
_set: () => _set,
|
|
4170
|
+
_size: () => _size,
|
|
4171
|
+
_slugify: () => _slugify,
|
|
4172
|
+
_startsWith: () => _startsWith,
|
|
4173
|
+
_string: () => _string,
|
|
4174
|
+
_stringFormat: () => _stringFormat,
|
|
4175
|
+
_stringbool: () => _stringbool,
|
|
4176
|
+
_success: () => _success,
|
|
4177
|
+
_superRefine: () => _superRefine,
|
|
4178
|
+
_symbol: () => _symbol,
|
|
4179
|
+
_templateLiteral: () => _templateLiteral,
|
|
4180
|
+
_toLowerCase: () => _toLowerCase,
|
|
4181
|
+
_toUpperCase: () => _toUpperCase,
|
|
4182
|
+
_transform: () => _transform,
|
|
4183
|
+
_trim: () => _trim,
|
|
4184
|
+
_tuple: () => _tuple,
|
|
4185
|
+
_uint32: () => _uint32,
|
|
4186
|
+
_uint64: () => _uint64,
|
|
4187
|
+
_ulid: () => _ulid,
|
|
4188
|
+
_undefined: () => _undefined2,
|
|
4189
|
+
_union: () => _union,
|
|
4190
|
+
_unknown: () => _unknown,
|
|
4191
|
+
_uppercase: () => _uppercase,
|
|
4192
|
+
_url: () => _url,
|
|
4193
|
+
_uuid: () => _uuid,
|
|
4194
|
+
_uuidv4: () => _uuidv4,
|
|
4195
|
+
_uuidv6: () => _uuidv6,
|
|
4196
|
+
_uuidv7: () => _uuidv7,
|
|
4197
|
+
_void: () => _void,
|
|
4198
|
+
_xid: () => _xid,
|
|
4199
|
+
_xor: () => _xor,
|
|
4200
|
+
clone: () => clone2,
|
|
4201
|
+
config: () => config,
|
|
4202
|
+
createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod,
|
|
4203
|
+
createToJSONSchemaMethod: () => createToJSONSchemaMethod,
|
|
4204
|
+
decode: () => decode,
|
|
4205
|
+
decodeAsync: () => decodeAsync,
|
|
4206
|
+
describe: () => describe,
|
|
4207
|
+
encode: () => encode,
|
|
4208
|
+
encodeAsync: () => encodeAsync,
|
|
4209
|
+
extractDefs: () => extractDefs,
|
|
4210
|
+
finalize: () => finalize,
|
|
4211
|
+
flattenError: () => flattenError,
|
|
4212
|
+
formatError: () => formatError,
|
|
4213
|
+
globalConfig: () => globalConfig,
|
|
4214
|
+
globalRegistry: () => globalRegistry,
|
|
4215
|
+
initializeContext: () => initializeContext,
|
|
4216
|
+
isValidBase64: () => isValidBase64,
|
|
4217
|
+
isValidBase64URL: () => isValidBase64URL,
|
|
4218
|
+
isValidJWT: () => isValidJWT,
|
|
4219
|
+
locales: () => exports_locales,
|
|
4220
|
+
meta: () => meta,
|
|
4221
|
+
parse: () => parse,
|
|
4222
|
+
parseAsync: () => parseAsync,
|
|
4223
|
+
prettifyError: () => prettifyError,
|
|
4224
|
+
process: () => process,
|
|
4225
|
+
regexes: () => exports_regexes,
|
|
4226
|
+
registry: () => registry,
|
|
4227
|
+
safeDecode: () => safeDecode,
|
|
4228
|
+
safeDecodeAsync: () => safeDecodeAsync,
|
|
4229
|
+
safeEncode: () => safeEncode,
|
|
4230
|
+
safeEncodeAsync: () => safeEncodeAsync,
|
|
4231
|
+
safeParse: () => safeParse,
|
|
4232
|
+
safeParseAsync: () => safeParseAsync,
|
|
4233
|
+
toDotPath: () => toDotPath,
|
|
4234
|
+
toJSONSchema: () => toJSONSchema,
|
|
4235
|
+
treeifyError: () => treeifyError,
|
|
4236
|
+
util: () => exports_util,
|
|
4237
|
+
version: () => version
|
|
6489
4238
|
});
|
|
6490
4239
|
|
|
6491
4240
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
@@ -6556,79 +4305,79 @@ class $ZodEncodeError extends Error {
|
|
|
6556
4305
|
constructor(name) {
|
|
6557
4306
|
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
6558
4307
|
this.name = "ZodEncodeError";
|
|
6559
|
-
}
|
|
6560
|
-
}
|
|
6561
|
-
var globalConfig = {};
|
|
6562
|
-
function config(newConfig) {
|
|
6563
|
-
if (newConfig)
|
|
6564
|
-
Object.assign(globalConfig, newConfig);
|
|
6565
|
-
return globalConfig;
|
|
6566
|
-
}
|
|
6567
|
-
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
6568
|
-
var exports_util = {};
|
|
6569
|
-
__export(exports_util, {
|
|
6570
|
-
|
|
6571
|
-
uint8ArrayToHex: () => uint8ArrayToHex,
|
|
6572
|
-
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
6573
|
-
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
6574
|
-
stringifyPrimitive: () => stringifyPrimitive,
|
|
6575
|
-
slugify: () => slugify,
|
|
6576
|
-
shallowClone: () => shallowClone,
|
|
6577
|
-
safeExtend: () => safeExtend,
|
|
6578
|
-
required: () => required,
|
|
6579
|
-
randomString: () => randomString,
|
|
6580
|
-
propertyKeyTypes: () => propertyKeyTypes,
|
|
6581
|
-
promiseAllObject: () => promiseAllObject,
|
|
6582
|
-
primitiveTypes: () => primitiveTypes,
|
|
6583
|
-
prefixIssues: () => prefixIssues,
|
|
6584
|
-
pick: () => pick,
|
|
6585
|
-
partial: () => partial,
|
|
6586
|
-
parsedType: () => parsedType,
|
|
6587
|
-
optionalKeys: () => optionalKeys,
|
|
6588
|
-
omit: () => omit,
|
|
6589
|
-
objectClone: () => objectClone,
|
|
6590
|
-
numKeys: () => numKeys,
|
|
6591
|
-
nullish: () => nullish,
|
|
6592
|
-
normalizeParams: () => normalizeParams,
|
|
6593
|
-
mergeDefs: () => mergeDefs,
|
|
6594
|
-
merge: () => merge,
|
|
6595
|
-
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
6596
|
-
joinValues: () => joinValues,
|
|
6597
|
-
issue: () => issue,
|
|
6598
|
-
isPlainObject: () => isPlainObject,
|
|
6599
|
-
isObject: () => isObject,
|
|
6600
|
-
hexToUint8Array: () => hexToUint8Array,
|
|
6601
|
-
getSizableOrigin: () => getSizableOrigin,
|
|
6602
|
-
getParsedType: () => getParsedType,
|
|
6603
|
-
getLengthableOrigin: () => getLengthableOrigin,
|
|
6604
|
-
getEnumValues: () => getEnumValues,
|
|
6605
|
-
getElementAtPath: () => getElementAtPath,
|
|
6606
|
-
floatSafeRemainder: () => floatSafeRemainder,
|
|
6607
|
-
finalizeIssue: () => finalizeIssue,
|
|
6608
|
-
extend: () => extend,
|
|
6609
|
-
escapeRegex: () => escapeRegex,
|
|
6610
|
-
esc: () => esc,
|
|
6611
|
-
defineLazy: () => defineLazy,
|
|
6612
|
-
createTransparentProxy: () => createTransparentProxy,
|
|
6613
|
-
cloneDef: () => cloneDef,
|
|
6614
|
-
clone: () => clone2,
|
|
6615
|
-
cleanRegex: () => cleanRegex,
|
|
6616
|
-
cleanEnum: () => cleanEnum,
|
|
6617
|
-
captureStackTrace: () => captureStackTrace,
|
|
6618
|
-
cached: () => cached,
|
|
6619
|
-
base64urlToUint8Array: () => base64urlToUint8Array,
|
|
6620
|
-
base64ToUint8Array: () => base64ToUint8Array,
|
|
6621
|
-
assignProp: () => assignProp,
|
|
6622
|
-
assertNotEqual: () => assertNotEqual,
|
|
6623
|
-
assertNever: () => assertNever,
|
|
6624
|
-
assertIs: () => assertIs,
|
|
6625
|
-
assertEqual: () => assertEqual,
|
|
6626
|
-
assert: () => assert,
|
|
6627
|
-
allowsEval: () => allowsEval,
|
|
6628
|
-
aborted: () => aborted2,
|
|
6629
|
-
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
4308
|
+
}
|
|
4309
|
+
}
|
|
4310
|
+
var globalConfig = {};
|
|
4311
|
+
function config(newConfig) {
|
|
4312
|
+
if (newConfig)
|
|
4313
|
+
Object.assign(globalConfig, newConfig);
|
|
4314
|
+
return globalConfig;
|
|
4315
|
+
}
|
|
4316
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
4317
|
+
var exports_util = {};
|
|
4318
|
+
__export(exports_util, {
|
|
4319
|
+
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
6630
4320
|
Class: () => Class,
|
|
6631
|
-
|
|
4321
|
+
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
4322
|
+
aborted: () => aborted2,
|
|
4323
|
+
allowsEval: () => allowsEval,
|
|
4324
|
+
assert: () => assert,
|
|
4325
|
+
assertEqual: () => assertEqual,
|
|
4326
|
+
assertIs: () => assertIs,
|
|
4327
|
+
assertNever: () => assertNever,
|
|
4328
|
+
assertNotEqual: () => assertNotEqual,
|
|
4329
|
+
assignProp: () => assignProp,
|
|
4330
|
+
base64ToUint8Array: () => base64ToUint8Array,
|
|
4331
|
+
base64urlToUint8Array: () => base64urlToUint8Array,
|
|
4332
|
+
cached: () => cached,
|
|
4333
|
+
captureStackTrace: () => captureStackTrace,
|
|
4334
|
+
cleanEnum: () => cleanEnum,
|
|
4335
|
+
cleanRegex: () => cleanRegex,
|
|
4336
|
+
clone: () => clone2,
|
|
4337
|
+
cloneDef: () => cloneDef,
|
|
4338
|
+
createTransparentProxy: () => createTransparentProxy,
|
|
4339
|
+
defineLazy: () => defineLazy,
|
|
4340
|
+
esc: () => esc,
|
|
4341
|
+
escapeRegex: () => escapeRegex,
|
|
4342
|
+
extend: () => extend,
|
|
4343
|
+
finalizeIssue: () => finalizeIssue,
|
|
4344
|
+
floatSafeRemainder: () => floatSafeRemainder,
|
|
4345
|
+
getElementAtPath: () => getElementAtPath,
|
|
4346
|
+
getEnumValues: () => getEnumValues,
|
|
4347
|
+
getLengthableOrigin: () => getLengthableOrigin,
|
|
4348
|
+
getParsedType: () => getParsedType,
|
|
4349
|
+
getSizableOrigin: () => getSizableOrigin,
|
|
4350
|
+
hexToUint8Array: () => hexToUint8Array,
|
|
4351
|
+
isObject: () => isObject,
|
|
4352
|
+
isPlainObject: () => isPlainObject,
|
|
4353
|
+
issue: () => issue,
|
|
4354
|
+
joinValues: () => joinValues,
|
|
4355
|
+
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
4356
|
+
merge: () => merge,
|
|
4357
|
+
mergeDefs: () => mergeDefs,
|
|
4358
|
+
normalizeParams: () => normalizeParams,
|
|
4359
|
+
nullish: () => nullish,
|
|
4360
|
+
numKeys: () => numKeys,
|
|
4361
|
+
objectClone: () => objectClone,
|
|
4362
|
+
omit: () => omit,
|
|
4363
|
+
optionalKeys: () => optionalKeys,
|
|
4364
|
+
parsedType: () => parsedType,
|
|
4365
|
+
partial: () => partial,
|
|
4366
|
+
pick: () => pick,
|
|
4367
|
+
prefixIssues: () => prefixIssues,
|
|
4368
|
+
primitiveTypes: () => primitiveTypes,
|
|
4369
|
+
promiseAllObject: () => promiseAllObject,
|
|
4370
|
+
propertyKeyTypes: () => propertyKeyTypes,
|
|
4371
|
+
randomString: () => randomString,
|
|
4372
|
+
required: () => required,
|
|
4373
|
+
safeExtend: () => safeExtend,
|
|
4374
|
+
shallowClone: () => shallowClone,
|
|
4375
|
+
slugify: () => slugify,
|
|
4376
|
+
stringifyPrimitive: () => stringifyPrimitive,
|
|
4377
|
+
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
4378
|
+
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
4379
|
+
uint8ArrayToHex: () => uint8ArrayToHex,
|
|
4380
|
+
unwrapMessage: () => unwrapMessage
|
|
6632
4381
|
});
|
|
6633
4382
|
function assertEqual(val) {
|
|
6634
4383
|
return val;
|
|
@@ -7465,64 +5214,64 @@ var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
|
7465
5214
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
7466
5215
|
var exports_regexes = {};
|
|
7467
5216
|
__export(exports_regexes, {
|
|
7468
|
-
|
|
7469
|
-
uuid7: () => uuid7,
|
|
7470
|
-
uuid6: () => uuid6,
|
|
7471
|
-
uuid4: () => uuid4,
|
|
7472
|
-
uuid: () => uuid,
|
|
7473
|
-
uppercase: () => uppercase,
|
|
7474
|
-
unicodeEmail: () => unicodeEmail,
|
|
7475
|
-
undefined: () => _undefined,
|
|
7476
|
-
ulid: () => ulid,
|
|
7477
|
-
time: () => time,
|
|
7478
|
-
string: () => string,
|
|
7479
|
-
sha512_hex: () => sha512_hex,
|
|
7480
|
-
sha512_base64url: () => sha512_base64url,
|
|
7481
|
-
sha512_base64: () => sha512_base64,
|
|
7482
|
-
sha384_hex: () => sha384_hex,
|
|
7483
|
-
sha384_base64url: () => sha384_base64url,
|
|
7484
|
-
sha384_base64: () => sha384_base64,
|
|
7485
|
-
sha256_hex: () => sha256_hex,
|
|
7486
|
-
sha256_base64url: () => sha256_base64url,
|
|
7487
|
-
sha256_base64: () => sha256_base64,
|
|
7488
|
-
sha1_hex: () => sha1_hex,
|
|
7489
|
-
sha1_base64url: () => sha1_base64url,
|
|
7490
|
-
sha1_base64: () => sha1_base64,
|
|
7491
|
-
rfc5322Email: () => rfc5322Email,
|
|
7492
|
-
number: () => number,
|
|
7493
|
-
null: () => _null,
|
|
7494
|
-
nanoid: () => nanoid,
|
|
7495
|
-
md5_hex: () => md5_hex,
|
|
7496
|
-
md5_base64url: () => md5_base64url,
|
|
7497
|
-
md5_base64: () => md5_base64,
|
|
7498
|
-
mac: () => mac,
|
|
7499
|
-
lowercase: () => lowercase,
|
|
7500
|
-
ksuid: () => ksuid,
|
|
7501
|
-
ipv6: () => ipv6,
|
|
7502
|
-
ipv4: () => ipv4,
|
|
7503
|
-
integer: () => integer,
|
|
7504
|
-
idnEmail: () => idnEmail,
|
|
7505
|
-
html5Email: () => html5Email,
|
|
7506
|
-
hostname: () => hostname,
|
|
7507
|
-
hex: () => hex,
|
|
7508
|
-
guid: () => guid,
|
|
7509
|
-
extendedDuration: () => extendedDuration,
|
|
7510
|
-
emoji: () => emoji,
|
|
7511
|
-
email: () => email,
|
|
7512
|
-
e164: () => e164,
|
|
7513
|
-
duration: () => duration,
|
|
7514
|
-
domain: () => domain,
|
|
7515
|
-
datetime: () => datetime,
|
|
7516
|
-
date: () => date,
|
|
7517
|
-
cuid2: () => cuid2,
|
|
7518
|
-
cuid: () => cuid,
|
|
7519
|
-
cidrv6: () => cidrv6,
|
|
7520
|
-
cidrv4: () => cidrv4,
|
|
7521
|
-
browserEmail: () => browserEmail,
|
|
7522
|
-
boolean: () => boolean,
|
|
7523
|
-
bigint: () => bigint,
|
|
5217
|
+
base64: () => base64,
|
|
7524
5218
|
base64url: () => base64url,
|
|
7525
|
-
|
|
5219
|
+
bigint: () => bigint,
|
|
5220
|
+
boolean: () => boolean,
|
|
5221
|
+
browserEmail: () => browserEmail,
|
|
5222
|
+
cidrv4: () => cidrv4,
|
|
5223
|
+
cidrv6: () => cidrv6,
|
|
5224
|
+
cuid: () => cuid,
|
|
5225
|
+
cuid2: () => cuid2,
|
|
5226
|
+
date: () => date,
|
|
5227
|
+
datetime: () => datetime,
|
|
5228
|
+
domain: () => domain,
|
|
5229
|
+
duration: () => duration,
|
|
5230
|
+
e164: () => e164,
|
|
5231
|
+
email: () => email,
|
|
5232
|
+
emoji: () => emoji,
|
|
5233
|
+
extendedDuration: () => extendedDuration,
|
|
5234
|
+
guid: () => guid,
|
|
5235
|
+
hex: () => hex,
|
|
5236
|
+
hostname: () => hostname,
|
|
5237
|
+
html5Email: () => html5Email,
|
|
5238
|
+
idnEmail: () => idnEmail,
|
|
5239
|
+
integer: () => integer,
|
|
5240
|
+
ipv4: () => ipv4,
|
|
5241
|
+
ipv6: () => ipv6,
|
|
5242
|
+
ksuid: () => ksuid,
|
|
5243
|
+
lowercase: () => lowercase,
|
|
5244
|
+
mac: () => mac,
|
|
5245
|
+
md5_base64: () => md5_base64,
|
|
5246
|
+
md5_base64url: () => md5_base64url,
|
|
5247
|
+
md5_hex: () => md5_hex,
|
|
5248
|
+
nanoid: () => nanoid,
|
|
5249
|
+
null: () => _null,
|
|
5250
|
+
number: () => number,
|
|
5251
|
+
rfc5322Email: () => rfc5322Email,
|
|
5252
|
+
sha1_base64: () => sha1_base64,
|
|
5253
|
+
sha1_base64url: () => sha1_base64url,
|
|
5254
|
+
sha1_hex: () => sha1_hex,
|
|
5255
|
+
sha256_base64: () => sha256_base64,
|
|
5256
|
+
sha256_base64url: () => sha256_base64url,
|
|
5257
|
+
sha256_hex: () => sha256_hex,
|
|
5258
|
+
sha384_base64: () => sha384_base64,
|
|
5259
|
+
sha384_base64url: () => sha384_base64url,
|
|
5260
|
+
sha384_hex: () => sha384_hex,
|
|
5261
|
+
sha512_base64: () => sha512_base64,
|
|
5262
|
+
sha512_base64url: () => sha512_base64url,
|
|
5263
|
+
sha512_hex: () => sha512_hex,
|
|
5264
|
+
string: () => string,
|
|
5265
|
+
time: () => time,
|
|
5266
|
+
ulid: () => ulid,
|
|
5267
|
+
undefined: () => _undefined,
|
|
5268
|
+
unicodeEmail: () => unicodeEmail,
|
|
5269
|
+
uppercase: () => uppercase,
|
|
5270
|
+
uuid: () => uuid,
|
|
5271
|
+
uuid4: () => uuid4,
|
|
5272
|
+
uuid6: () => uuid6,
|
|
5273
|
+
uuid7: () => uuid7,
|
|
5274
|
+
xid: () => xid
|
|
7526
5275
|
});
|
|
7527
5276
|
var cuid = /^[cC][^\s-]{8,}$/;
|
|
7528
5277
|
var cuid2 = /^[0-9a-z]+$/;
|
|
@@ -10146,85 +7895,85 @@ var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def2) => {
|
|
|
10146
7895
|
var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def2) => {
|
|
10147
7896
|
$ZodCheck.init(inst, def2);
|
|
10148
7897
|
$ZodType.init(inst, def2);
|
|
10149
|
-
inst._zod.parse = (payload, _) => {
|
|
10150
|
-
return payload;
|
|
10151
|
-
};
|
|
10152
|
-
inst._zod.check = (payload) => {
|
|
10153
|
-
const input = payload.value;
|
|
10154
|
-
const r = def2.fn(input);
|
|
10155
|
-
if (r instanceof Promise) {
|
|
10156
|
-
return r.then((r2) => handleRefineResult(r2, payload, input, inst));
|
|
10157
|
-
}
|
|
10158
|
-
handleRefineResult(r, payload, input, inst);
|
|
10159
|
-
return;
|
|
10160
|
-
};
|
|
10161
|
-
});
|
|
10162
|
-
function handleRefineResult(result, payload, input, inst) {
|
|
10163
|
-
if (!result) {
|
|
10164
|
-
const _iss = {
|
|
10165
|
-
code: "custom",
|
|
10166
|
-
input,
|
|
10167
|
-
inst,
|
|
10168
|
-
path: [...inst._zod.def.path ?? []],
|
|
10169
|
-
continue: !inst._zod.def.abort
|
|
10170
|
-
};
|
|
10171
|
-
if (inst._zod.def.params)
|
|
10172
|
-
_iss.params = inst._zod.def.params;
|
|
10173
|
-
payload.issues.push(issue(_iss));
|
|
10174
|
-
}
|
|
10175
|
-
}
|
|
10176
|
-
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
|
|
10177
|
-
var exports_locales = {};
|
|
10178
|
-
__export(exports_locales, {
|
|
10179
|
-
|
|
10180
|
-
zhCN: () => zh_CN_default,
|
|
10181
|
-
yo: () => yo_default,
|
|
10182
|
-
vi: () => vi_default,
|
|
10183
|
-
uz: () => uz_default,
|
|
10184
|
-
ur: () => ur_default,
|
|
10185
|
-
uk: () => uk_default,
|
|
10186
|
-
ua: () => ua_default,
|
|
10187
|
-
tr: () => tr_default,
|
|
10188
|
-
th: () => th_default,
|
|
10189
|
-
ta: () => ta_default,
|
|
10190
|
-
sv: () => sv_default,
|
|
10191
|
-
sl: () => sl_default,
|
|
10192
|
-
ru: () => ru_default,
|
|
10193
|
-
pt: () => pt_default,
|
|
10194
|
-
ps: () => ps_default,
|
|
10195
|
-
pl: () => pl_default,
|
|
10196
|
-
ota: () => ota_default,
|
|
10197
|
-
no: () => no_default,
|
|
10198
|
-
nl: () => nl_default,
|
|
10199
|
-
ms: () => ms_default,
|
|
10200
|
-
mk: () => mk_default,
|
|
10201
|
-
lt: () => lt_default,
|
|
10202
|
-
ko: () => ko_default,
|
|
10203
|
-
km: () => km_default,
|
|
10204
|
-
kh: () => kh_default,
|
|
10205
|
-
ka: () => ka_default,
|
|
10206
|
-
ja: () => ja_default,
|
|
10207
|
-
it: () => it_default,
|
|
10208
|
-
is: () => is_default,
|
|
10209
|
-
id: () => id_default,
|
|
10210
|
-
hy: () => hy_default,
|
|
10211
|
-
hu: () => hu_default,
|
|
10212
|
-
he: () => he_default,
|
|
10213
|
-
frCA: () => fr_CA_default,
|
|
10214
|
-
fr: () => fr_default,
|
|
10215
|
-
fi: () => fi_default,
|
|
10216
|
-
fa: () => fa_default,
|
|
10217
|
-
es: () => es_default,
|
|
10218
|
-
eo: () => eo_default,
|
|
10219
|
-
en: () => en_default,
|
|
10220
|
-
de: () => de_default,
|
|
10221
|
-
da: () => da_default,
|
|
10222
|
-
cs: () => cs_default,
|
|
10223
|
-
ca: () => ca_default,
|
|
10224
|
-
bg: () => bg_default,
|
|
10225
|
-
be: () => be_default,
|
|
7898
|
+
inst._zod.parse = (payload, _) => {
|
|
7899
|
+
return payload;
|
|
7900
|
+
};
|
|
7901
|
+
inst._zod.check = (payload) => {
|
|
7902
|
+
const input = payload.value;
|
|
7903
|
+
const r = def2.fn(input);
|
|
7904
|
+
if (r instanceof Promise) {
|
|
7905
|
+
return r.then((r2) => handleRefineResult(r2, payload, input, inst));
|
|
7906
|
+
}
|
|
7907
|
+
handleRefineResult(r, payload, input, inst);
|
|
7908
|
+
return;
|
|
7909
|
+
};
|
|
7910
|
+
});
|
|
7911
|
+
function handleRefineResult(result, payload, input, inst) {
|
|
7912
|
+
if (!result) {
|
|
7913
|
+
const _iss = {
|
|
7914
|
+
code: "custom",
|
|
7915
|
+
input,
|
|
7916
|
+
inst,
|
|
7917
|
+
path: [...inst._zod.def.path ?? []],
|
|
7918
|
+
continue: !inst._zod.def.abort
|
|
7919
|
+
};
|
|
7920
|
+
if (inst._zod.def.params)
|
|
7921
|
+
_iss.params = inst._zod.def.params;
|
|
7922
|
+
payload.issues.push(issue(_iss));
|
|
7923
|
+
}
|
|
7924
|
+
}
|
|
7925
|
+
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
|
|
7926
|
+
var exports_locales = {};
|
|
7927
|
+
__export(exports_locales, {
|
|
7928
|
+
ar: () => ar_default,
|
|
10226
7929
|
az: () => az_default,
|
|
10227
|
-
|
|
7930
|
+
be: () => be_default,
|
|
7931
|
+
bg: () => bg_default,
|
|
7932
|
+
ca: () => ca_default,
|
|
7933
|
+
cs: () => cs_default,
|
|
7934
|
+
da: () => da_default,
|
|
7935
|
+
de: () => de_default,
|
|
7936
|
+
en: () => en_default,
|
|
7937
|
+
eo: () => eo_default,
|
|
7938
|
+
es: () => es_default,
|
|
7939
|
+
fa: () => fa_default,
|
|
7940
|
+
fi: () => fi_default,
|
|
7941
|
+
fr: () => fr_default,
|
|
7942
|
+
frCA: () => fr_CA_default,
|
|
7943
|
+
he: () => he_default,
|
|
7944
|
+
hu: () => hu_default,
|
|
7945
|
+
hy: () => hy_default,
|
|
7946
|
+
id: () => id_default,
|
|
7947
|
+
is: () => is_default,
|
|
7948
|
+
it: () => it_default,
|
|
7949
|
+
ja: () => ja_default,
|
|
7950
|
+
ka: () => ka_default,
|
|
7951
|
+
kh: () => kh_default,
|
|
7952
|
+
km: () => km_default,
|
|
7953
|
+
ko: () => ko_default,
|
|
7954
|
+
lt: () => lt_default,
|
|
7955
|
+
mk: () => mk_default,
|
|
7956
|
+
ms: () => ms_default,
|
|
7957
|
+
nl: () => nl_default,
|
|
7958
|
+
no: () => no_default,
|
|
7959
|
+
ota: () => ota_default,
|
|
7960
|
+
pl: () => pl_default,
|
|
7961
|
+
ps: () => ps_default,
|
|
7962
|
+
pt: () => pt_default,
|
|
7963
|
+
ru: () => ru_default,
|
|
7964
|
+
sl: () => sl_default,
|
|
7965
|
+
sv: () => sv_default,
|
|
7966
|
+
ta: () => ta_default,
|
|
7967
|
+
th: () => th_default,
|
|
7968
|
+
tr: () => tr_default,
|
|
7969
|
+
ua: () => ua_default,
|
|
7970
|
+
uk: () => uk_default,
|
|
7971
|
+
ur: () => ur_default,
|
|
7972
|
+
uz: () => uz_default,
|
|
7973
|
+
vi: () => vi_default,
|
|
7974
|
+
yo: () => yo_default,
|
|
7975
|
+
zhCN: () => zh_CN_default,
|
|
7976
|
+
zhTW: () => zh_TW_default
|
|
10228
7977
|
});
|
|
10229
7978
|
|
|
10230
7979
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
|
|
@@ -17623,217 +15372,217 @@ var exports_json_schema = {};
|
|
|
17623
15372
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
17624
15373
|
var exports_schemas2 = {};
|
|
17625
15374
|
__export(exports_schemas2, {
|
|
17626
|
-
|
|
17627
|
-
xid: () => xid2,
|
|
17628
|
-
void: () => _void2,
|
|
17629
|
-
uuidv7: () => uuidv7,
|
|
17630
|
-
uuidv6: () => uuidv6,
|
|
17631
|
-
uuidv4: () => uuidv4,
|
|
17632
|
-
uuid: () => uuid2,
|
|
17633
|
-
url: () => url,
|
|
17634
|
-
unknown: () => unknown,
|
|
17635
|
-
union: () => union,
|
|
17636
|
-
undefined: () => _undefined3,
|
|
17637
|
-
ulid: () => ulid2,
|
|
17638
|
-
uint64: () => uint64,
|
|
17639
|
-
uint32: () => uint32,
|
|
17640
|
-
tuple: () => tuple,
|
|
17641
|
-
transform: () => transform,
|
|
17642
|
-
templateLiteral: () => templateLiteral,
|
|
17643
|
-
symbol: () => symbol,
|
|
17644
|
-
superRefine: () => superRefine,
|
|
17645
|
-
success: () => success,
|
|
17646
|
-
stringbool: () => stringbool,
|
|
17647
|
-
stringFormat: () => stringFormat,
|
|
17648
|
-
string: () => string2,
|
|
17649
|
-
strictObject: () => strictObject,
|
|
17650
|
-
set: () => set2,
|
|
17651
|
-
refine: () => refine,
|
|
17652
|
-
record: () => record,
|
|
17653
|
-
readonly: () => readonly2,
|
|
17654
|
-
promise: () => promise,
|
|
17655
|
-
preprocess: () => preprocess,
|
|
17656
|
-
prefault: () => prefault,
|
|
17657
|
-
pipe: () => pipe,
|
|
17658
|
-
partialRecord: () => partialRecord,
|
|
17659
|
-
optional: () => optional,
|
|
17660
|
-
object: () => object,
|
|
17661
|
-
number: () => number2,
|
|
17662
|
-
nullish: () => nullish2,
|
|
17663
|
-
nullable: () => nullable,
|
|
17664
|
-
null: () => _null3,
|
|
17665
|
-
nonoptional: () => nonoptional,
|
|
17666
|
-
never: () => never,
|
|
17667
|
-
nativeEnum: () => nativeEnum,
|
|
17668
|
-
nanoid: () => nanoid2,
|
|
17669
|
-
nan: () => nan,
|
|
17670
|
-
meta: () => meta2,
|
|
17671
|
-
map: () => map,
|
|
17672
|
-
mac: () => mac2,
|
|
17673
|
-
looseRecord: () => looseRecord,
|
|
17674
|
-
looseObject: () => looseObject,
|
|
17675
|
-
literal: () => literal,
|
|
17676
|
-
lazy: () => lazy,
|
|
17677
|
-
ksuid: () => ksuid2,
|
|
17678
|
-
keyof: () => keyof,
|
|
17679
|
-
jwt: () => jwt,
|
|
17680
|
-
json: () => json,
|
|
17681
|
-
ipv6: () => ipv62,
|
|
17682
|
-
ipv4: () => ipv42,
|
|
17683
|
-
intersection: () => intersection,
|
|
17684
|
-
int64: () => int64,
|
|
17685
|
-
int32: () => int32,
|
|
17686
|
-
int: () => int,
|
|
17687
|
-
instanceof: () => _instanceof,
|
|
17688
|
-
httpUrl: () => httpUrl,
|
|
17689
|
-
hostname: () => hostname2,
|
|
17690
|
-
hex: () => hex2,
|
|
17691
|
-
hash: () => hash,
|
|
17692
|
-
guid: () => guid2,
|
|
17693
|
-
function: () => _function,
|
|
17694
|
-
float64: () => float64,
|
|
17695
|
-
float32: () => float32,
|
|
17696
|
-
file: () => file,
|
|
17697
|
-
exactOptional: () => exactOptional,
|
|
17698
|
-
enum: () => _enum2,
|
|
17699
|
-
emoji: () => emoji2,
|
|
17700
|
-
email: () => email2,
|
|
17701
|
-
e164: () => e1642,
|
|
17702
|
-
discriminatedUnion: () => discriminatedUnion,
|
|
17703
|
-
describe: () => describe2,
|
|
17704
|
-
date: () => date3,
|
|
17705
|
-
custom: () => custom,
|
|
17706
|
-
cuid2: () => cuid22,
|
|
17707
|
-
cuid: () => cuid3,
|
|
17708
|
-
codec: () => codec,
|
|
17709
|
-
cidrv6: () => cidrv62,
|
|
17710
|
-
cidrv4: () => cidrv42,
|
|
17711
|
-
check: () => check,
|
|
17712
|
-
catch: () => _catch2,
|
|
17713
|
-
boolean: () => boolean2,
|
|
17714
|
-
bigint: () => bigint2,
|
|
17715
|
-
base64url: () => base64url2,
|
|
17716
|
-
base64: () => base642,
|
|
17717
|
-
array: () => array,
|
|
17718
|
-
any: () => any,
|
|
17719
|
-
_function: () => _function,
|
|
17720
|
-
_default: () => _default2,
|
|
17721
|
-
_ZodString: () => _ZodString,
|
|
17722
|
-
ZodXor: () => ZodXor,
|
|
17723
|
-
ZodXID: () => ZodXID,
|
|
17724
|
-
ZodVoid: () => ZodVoid,
|
|
17725
|
-
ZodUnknown: () => ZodUnknown,
|
|
17726
|
-
ZodUnion: () => ZodUnion,
|
|
17727
|
-
ZodUndefined: () => ZodUndefined,
|
|
17728
|
-
ZodUUID: () => ZodUUID,
|
|
17729
|
-
ZodURL: () => ZodURL,
|
|
17730
|
-
ZodULID: () => ZodULID,
|
|
17731
|
-
ZodType: () => ZodType,
|
|
17732
|
-
ZodTuple: () => ZodTuple,
|
|
17733
|
-
ZodTransform: () => ZodTransform,
|
|
17734
|
-
ZodTemplateLiteral: () => ZodTemplateLiteral,
|
|
17735
|
-
ZodSymbol: () => ZodSymbol,
|
|
17736
|
-
ZodSuccess: () => ZodSuccess,
|
|
17737
|
-
ZodStringFormat: () => ZodStringFormat,
|
|
17738
|
-
ZodString: () => ZodString,
|
|
17739
|
-
ZodSet: () => ZodSet,
|
|
17740
|
-
ZodRecord: () => ZodRecord,
|
|
17741
|
-
ZodReadonly: () => ZodReadonly,
|
|
17742
|
-
ZodPromise: () => ZodPromise,
|
|
17743
|
-
ZodPrefault: () => ZodPrefault,
|
|
17744
|
-
ZodPipe: () => ZodPipe,
|
|
17745
|
-
ZodOptional: () => ZodOptional,
|
|
17746
|
-
ZodObject: () => ZodObject,
|
|
17747
|
-
ZodNumberFormat: () => ZodNumberFormat,
|
|
17748
|
-
ZodNumber: () => ZodNumber,
|
|
17749
|
-
ZodNullable: () => ZodNullable,
|
|
17750
|
-
ZodNull: () => ZodNull,
|
|
17751
|
-
ZodNonOptional: () => ZodNonOptional,
|
|
17752
|
-
ZodNever: () => ZodNever,
|
|
17753
|
-
ZodNanoID: () => ZodNanoID,
|
|
17754
|
-
ZodNaN: () => ZodNaN,
|
|
17755
|
-
ZodMap: () => ZodMap,
|
|
17756
|
-
ZodMAC: () => ZodMAC,
|
|
17757
|
-
ZodLiteral: () => ZodLiteral,
|
|
17758
|
-
ZodLazy: () => ZodLazy,
|
|
17759
|
-
ZodKSUID: () => ZodKSUID,
|
|
17760
|
-
ZodJWT: () => ZodJWT,
|
|
17761
|
-
ZodIntersection: () => ZodIntersection,
|
|
17762
|
-
ZodIPv6: () => ZodIPv6,
|
|
17763
|
-
ZodIPv4: () => ZodIPv4,
|
|
17764
|
-
ZodGUID: () => ZodGUID,
|
|
17765
|
-
ZodFunction: () => ZodFunction,
|
|
17766
|
-
ZodFile: () => ZodFile,
|
|
17767
|
-
ZodExactOptional: () => ZodExactOptional,
|
|
17768
|
-
ZodEnum: () => ZodEnum,
|
|
17769
|
-
ZodEmoji: () => ZodEmoji,
|
|
17770
|
-
ZodEmail: () => ZodEmail,
|
|
17771
|
-
ZodE164: () => ZodE164,
|
|
17772
|
-
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
17773
|
-
ZodDefault: () => ZodDefault,
|
|
17774
|
-
ZodDate: () => ZodDate,
|
|
17775
|
-
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
17776
|
-
ZodCustom: () => ZodCustom,
|
|
17777
|
-
ZodCodec: () => ZodCodec,
|
|
17778
|
-
ZodCatch: () => ZodCatch,
|
|
17779
|
-
ZodCUID2: () => ZodCUID2,
|
|
17780
|
-
ZodCUID: () => ZodCUID,
|
|
17781
|
-
ZodCIDRv6: () => ZodCIDRv6,
|
|
17782
|
-
ZodCIDRv4: () => ZodCIDRv4,
|
|
17783
|
-
ZodBoolean: () => ZodBoolean,
|
|
17784
|
-
ZodBigIntFormat: () => ZodBigIntFormat,
|
|
17785
|
-
ZodBigInt: () => ZodBigInt,
|
|
17786
|
-
ZodBase64URL: () => ZodBase64URL,
|
|
17787
|
-
ZodBase64: () => ZodBase64,
|
|
15375
|
+
ZodAny: () => ZodAny,
|
|
17788
15376
|
ZodArray: () => ZodArray,
|
|
17789
|
-
|
|
15377
|
+
ZodBase64: () => ZodBase64,
|
|
15378
|
+
ZodBase64URL: () => ZodBase64URL,
|
|
15379
|
+
ZodBigInt: () => ZodBigInt,
|
|
15380
|
+
ZodBigIntFormat: () => ZodBigIntFormat,
|
|
15381
|
+
ZodBoolean: () => ZodBoolean,
|
|
15382
|
+
ZodCIDRv4: () => ZodCIDRv4,
|
|
15383
|
+
ZodCIDRv6: () => ZodCIDRv6,
|
|
15384
|
+
ZodCUID: () => ZodCUID,
|
|
15385
|
+
ZodCUID2: () => ZodCUID2,
|
|
15386
|
+
ZodCatch: () => ZodCatch,
|
|
15387
|
+
ZodCodec: () => ZodCodec,
|
|
15388
|
+
ZodCustom: () => ZodCustom,
|
|
15389
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
15390
|
+
ZodDate: () => ZodDate,
|
|
15391
|
+
ZodDefault: () => ZodDefault,
|
|
15392
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
15393
|
+
ZodE164: () => ZodE164,
|
|
15394
|
+
ZodEmail: () => ZodEmail,
|
|
15395
|
+
ZodEmoji: () => ZodEmoji,
|
|
15396
|
+
ZodEnum: () => ZodEnum,
|
|
15397
|
+
ZodExactOptional: () => ZodExactOptional,
|
|
15398
|
+
ZodFile: () => ZodFile,
|
|
15399
|
+
ZodFunction: () => ZodFunction,
|
|
15400
|
+
ZodGUID: () => ZodGUID,
|
|
15401
|
+
ZodIPv4: () => ZodIPv4,
|
|
15402
|
+
ZodIPv6: () => ZodIPv6,
|
|
15403
|
+
ZodIntersection: () => ZodIntersection,
|
|
15404
|
+
ZodJWT: () => ZodJWT,
|
|
15405
|
+
ZodKSUID: () => ZodKSUID,
|
|
15406
|
+
ZodLazy: () => ZodLazy,
|
|
15407
|
+
ZodLiteral: () => ZodLiteral,
|
|
15408
|
+
ZodMAC: () => ZodMAC,
|
|
15409
|
+
ZodMap: () => ZodMap,
|
|
15410
|
+
ZodNaN: () => ZodNaN,
|
|
15411
|
+
ZodNanoID: () => ZodNanoID,
|
|
15412
|
+
ZodNever: () => ZodNever,
|
|
15413
|
+
ZodNonOptional: () => ZodNonOptional,
|
|
15414
|
+
ZodNull: () => ZodNull,
|
|
15415
|
+
ZodNullable: () => ZodNullable,
|
|
15416
|
+
ZodNumber: () => ZodNumber,
|
|
15417
|
+
ZodNumberFormat: () => ZodNumberFormat,
|
|
15418
|
+
ZodObject: () => ZodObject,
|
|
15419
|
+
ZodOptional: () => ZodOptional,
|
|
15420
|
+
ZodPipe: () => ZodPipe,
|
|
15421
|
+
ZodPrefault: () => ZodPrefault,
|
|
15422
|
+
ZodPromise: () => ZodPromise,
|
|
15423
|
+
ZodReadonly: () => ZodReadonly,
|
|
15424
|
+
ZodRecord: () => ZodRecord,
|
|
15425
|
+
ZodSet: () => ZodSet,
|
|
15426
|
+
ZodString: () => ZodString,
|
|
15427
|
+
ZodStringFormat: () => ZodStringFormat,
|
|
15428
|
+
ZodSuccess: () => ZodSuccess,
|
|
15429
|
+
ZodSymbol: () => ZodSymbol,
|
|
15430
|
+
ZodTemplateLiteral: () => ZodTemplateLiteral,
|
|
15431
|
+
ZodTransform: () => ZodTransform,
|
|
15432
|
+
ZodTuple: () => ZodTuple,
|
|
15433
|
+
ZodType: () => ZodType,
|
|
15434
|
+
ZodULID: () => ZodULID,
|
|
15435
|
+
ZodURL: () => ZodURL,
|
|
15436
|
+
ZodUUID: () => ZodUUID,
|
|
15437
|
+
ZodUndefined: () => ZodUndefined,
|
|
15438
|
+
ZodUnion: () => ZodUnion,
|
|
15439
|
+
ZodUnknown: () => ZodUnknown,
|
|
15440
|
+
ZodVoid: () => ZodVoid,
|
|
15441
|
+
ZodXID: () => ZodXID,
|
|
15442
|
+
ZodXor: () => ZodXor,
|
|
15443
|
+
_ZodString: () => _ZodString,
|
|
15444
|
+
_default: () => _default2,
|
|
15445
|
+
_function: () => _function,
|
|
15446
|
+
any: () => any,
|
|
15447
|
+
array: () => array,
|
|
15448
|
+
base64: () => base642,
|
|
15449
|
+
base64url: () => base64url2,
|
|
15450
|
+
bigint: () => bigint2,
|
|
15451
|
+
boolean: () => boolean2,
|
|
15452
|
+
catch: () => _catch2,
|
|
15453
|
+
check: () => check,
|
|
15454
|
+
cidrv4: () => cidrv42,
|
|
15455
|
+
cidrv6: () => cidrv62,
|
|
15456
|
+
codec: () => codec,
|
|
15457
|
+
cuid: () => cuid3,
|
|
15458
|
+
cuid2: () => cuid22,
|
|
15459
|
+
custom: () => custom,
|
|
15460
|
+
date: () => date3,
|
|
15461
|
+
describe: () => describe2,
|
|
15462
|
+
discriminatedUnion: () => discriminatedUnion,
|
|
15463
|
+
e164: () => e1642,
|
|
15464
|
+
email: () => email2,
|
|
15465
|
+
emoji: () => emoji2,
|
|
15466
|
+
enum: () => _enum2,
|
|
15467
|
+
exactOptional: () => exactOptional,
|
|
15468
|
+
file: () => file,
|
|
15469
|
+
float32: () => float32,
|
|
15470
|
+
float64: () => float64,
|
|
15471
|
+
function: () => _function,
|
|
15472
|
+
guid: () => guid2,
|
|
15473
|
+
hash: () => hash,
|
|
15474
|
+
hex: () => hex2,
|
|
15475
|
+
hostname: () => hostname2,
|
|
15476
|
+
httpUrl: () => httpUrl,
|
|
15477
|
+
instanceof: () => _instanceof,
|
|
15478
|
+
int: () => int,
|
|
15479
|
+
int32: () => int32,
|
|
15480
|
+
int64: () => int64,
|
|
15481
|
+
intersection: () => intersection,
|
|
15482
|
+
ipv4: () => ipv42,
|
|
15483
|
+
ipv6: () => ipv62,
|
|
15484
|
+
json: () => json,
|
|
15485
|
+
jwt: () => jwt,
|
|
15486
|
+
keyof: () => keyof,
|
|
15487
|
+
ksuid: () => ksuid2,
|
|
15488
|
+
lazy: () => lazy,
|
|
15489
|
+
literal: () => literal,
|
|
15490
|
+
looseObject: () => looseObject,
|
|
15491
|
+
looseRecord: () => looseRecord,
|
|
15492
|
+
mac: () => mac2,
|
|
15493
|
+
map: () => map,
|
|
15494
|
+
meta: () => meta2,
|
|
15495
|
+
nan: () => nan,
|
|
15496
|
+
nanoid: () => nanoid2,
|
|
15497
|
+
nativeEnum: () => nativeEnum,
|
|
15498
|
+
never: () => never,
|
|
15499
|
+
nonoptional: () => nonoptional,
|
|
15500
|
+
null: () => _null3,
|
|
15501
|
+
nullable: () => nullable,
|
|
15502
|
+
nullish: () => nullish2,
|
|
15503
|
+
number: () => number2,
|
|
15504
|
+
object: () => object,
|
|
15505
|
+
optional: () => optional,
|
|
15506
|
+
partialRecord: () => partialRecord,
|
|
15507
|
+
pipe: () => pipe,
|
|
15508
|
+
prefault: () => prefault,
|
|
15509
|
+
preprocess: () => preprocess,
|
|
15510
|
+
promise: () => promise,
|
|
15511
|
+
readonly: () => readonly2,
|
|
15512
|
+
record: () => record,
|
|
15513
|
+
refine: () => refine,
|
|
15514
|
+
set: () => set2,
|
|
15515
|
+
strictObject: () => strictObject,
|
|
15516
|
+
string: () => string2,
|
|
15517
|
+
stringFormat: () => stringFormat,
|
|
15518
|
+
stringbool: () => stringbool,
|
|
15519
|
+
success: () => success,
|
|
15520
|
+
superRefine: () => superRefine,
|
|
15521
|
+
symbol: () => symbol,
|
|
15522
|
+
templateLiteral: () => templateLiteral,
|
|
15523
|
+
transform: () => transform,
|
|
15524
|
+
tuple: () => tuple,
|
|
15525
|
+
uint32: () => uint32,
|
|
15526
|
+
uint64: () => uint64,
|
|
15527
|
+
ulid: () => ulid2,
|
|
15528
|
+
undefined: () => _undefined3,
|
|
15529
|
+
union: () => union,
|
|
15530
|
+
unknown: () => unknown,
|
|
15531
|
+
url: () => url,
|
|
15532
|
+
uuid: () => uuid2,
|
|
15533
|
+
uuidv4: () => uuidv4,
|
|
15534
|
+
uuidv6: () => uuidv6,
|
|
15535
|
+
uuidv7: () => uuidv7,
|
|
15536
|
+
void: () => _void2,
|
|
15537
|
+
xid: () => xid2,
|
|
15538
|
+
xor: () => xor
|
|
17790
15539
|
});
|
|
17791
15540
|
|
|
17792
15541
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
|
|
17793
15542
|
var exports_checks2 = {};
|
|
17794
15543
|
__export(exports_checks2, {
|
|
17795
|
-
|
|
17796
|
-
trim: () => _trim,
|
|
17797
|
-
toUpperCase: () => _toUpperCase,
|
|
17798
|
-
toLowerCase: () => _toLowerCase,
|
|
17799
|
-
startsWith: () => _startsWith,
|
|
17800
|
-
slugify: () => _slugify,
|
|
17801
|
-
size: () => _size,
|
|
17802
|
-
regex: () => _regex,
|
|
17803
|
-
property: () => _property,
|
|
17804
|
-
positive: () => _positive,
|
|
17805
|
-
overwrite: () => _overwrite,
|
|
17806
|
-
normalize: () => _normalize,
|
|
17807
|
-
nonpositive: () => _nonpositive,
|
|
17808
|
-
nonnegative: () => _nonnegative,
|
|
17809
|
-
negative: () => _negative,
|
|
17810
|
-
multipleOf: () => _multipleOf,
|
|
17811
|
-
minSize: () => _minSize,
|
|
17812
|
-
minLength: () => _minLength,
|
|
17813
|
-
mime: () => _mime,
|
|
17814
|
-
maxSize: () => _maxSize,
|
|
17815
|
-
maxLength: () => _maxLength,
|
|
17816
|
-
lte: () => _lte,
|
|
17817
|
-
lt: () => _lt,
|
|
17818
|
-
lowercase: () => _lowercase,
|
|
17819
|
-
length: () => _length,
|
|
17820
|
-
includes: () => _includes,
|
|
17821
|
-
gte: () => _gte,
|
|
15544
|
+
endsWith: () => _endsWith,
|
|
17822
15545
|
gt: () => _gt,
|
|
17823
|
-
|
|
15546
|
+
gte: () => _gte,
|
|
15547
|
+
includes: () => _includes,
|
|
15548
|
+
length: () => _length,
|
|
15549
|
+
lowercase: () => _lowercase,
|
|
15550
|
+
lt: () => _lt,
|
|
15551
|
+
lte: () => _lte,
|
|
15552
|
+
maxLength: () => _maxLength,
|
|
15553
|
+
maxSize: () => _maxSize,
|
|
15554
|
+
mime: () => _mime,
|
|
15555
|
+
minLength: () => _minLength,
|
|
15556
|
+
minSize: () => _minSize,
|
|
15557
|
+
multipleOf: () => _multipleOf,
|
|
15558
|
+
negative: () => _negative,
|
|
15559
|
+
nonnegative: () => _nonnegative,
|
|
15560
|
+
nonpositive: () => _nonpositive,
|
|
15561
|
+
normalize: () => _normalize,
|
|
15562
|
+
overwrite: () => _overwrite,
|
|
15563
|
+
positive: () => _positive,
|
|
15564
|
+
property: () => _property,
|
|
15565
|
+
regex: () => _regex,
|
|
15566
|
+
size: () => _size,
|
|
15567
|
+
slugify: () => _slugify,
|
|
15568
|
+
startsWith: () => _startsWith,
|
|
15569
|
+
toLowerCase: () => _toLowerCase,
|
|
15570
|
+
toUpperCase: () => _toUpperCase,
|
|
15571
|
+
trim: () => _trim,
|
|
15572
|
+
uppercase: () => _uppercase
|
|
17824
15573
|
});
|
|
17825
15574
|
|
|
17826
15575
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
17827
15576
|
var exports_iso = {};
|
|
17828
15577
|
__export(exports_iso, {
|
|
17829
|
-
|
|
17830
|
-
duration: () => duration2,
|
|
17831
|
-
datetime: () => datetime2,
|
|
17832
|
-
date: () => date2,
|
|
17833
|
-
ZodISOTime: () => ZodISOTime,
|
|
17834
|
-
ZodISODuration: () => ZodISODuration,
|
|
15578
|
+
ZodISODate: () => ZodISODate,
|
|
17835
15579
|
ZodISODateTime: () => ZodISODateTime,
|
|
17836
|
-
|
|
15580
|
+
ZodISODuration: () => ZodISODuration,
|
|
15581
|
+
ZodISOTime: () => ZodISOTime,
|
|
15582
|
+
date: () => date2,
|
|
15583
|
+
datetime: () => datetime2,
|
|
15584
|
+
duration: () => duration2,
|
|
15585
|
+
time: () => time2
|
|
17837
15586
|
});
|
|
17838
15587
|
var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def2) => {
|
|
17839
15588
|
$ZodISODateTime.init(inst, def2);
|
|
@@ -19477,11 +17226,11 @@ function fromJSONSchema(schema, params) {
|
|
|
19477
17226
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
|
|
19478
17227
|
var exports_coerce = {};
|
|
19479
17228
|
__export(exports_coerce, {
|
|
19480
|
-
|
|
19481
|
-
number: () => number3,
|
|
19482
|
-
date: () => date4,
|
|
17229
|
+
bigint: () => bigint3,
|
|
19483
17230
|
boolean: () => boolean3,
|
|
19484
|
-
|
|
17231
|
+
date: () => date4,
|
|
17232
|
+
number: () => number3,
|
|
17233
|
+
string: () => string3
|
|
19485
17234
|
});
|
|
19486
17235
|
function string3(params) {
|
|
19487
17236
|
return _coercedString(ZodString, params);
|
|
@@ -21277,29 +19026,31 @@ class LiipGPTClient {
|
|
|
21277
19026
|
}
|
|
21278
19027
|
}
|
|
21279
19028
|
export {
|
|
21280
|
-
|
|
21281
|
-
selectedTopicSchema,
|
|
21282
|
-
routeSchema,
|
|
21283
|
-
predefinedQuestionsResponseSchema,
|
|
21284
|
-
predefinedQuestionSchema,
|
|
21285
|
-
pageStateSchema,
|
|
21286
|
-
menuItemSchema,
|
|
21287
|
-
fullTranslations,
|
|
21288
|
-
conversationStateSchema,
|
|
21289
|
-
conversationHistorySchema,
|
|
21290
|
-
completeChatConfigSchema,
|
|
21291
|
-
classificationResponseSchema,
|
|
21292
|
-
classificationConfigSchema,
|
|
21293
|
-
chatMessageUserSchema,
|
|
21294
|
-
chatMessageSchema,
|
|
21295
|
-
chatMessageBotStreamingSchema,
|
|
21296
|
-
chatMessageBotLoadingSchema,
|
|
21297
|
-
chatContentSchema,
|
|
21298
|
-
chatConfigSchemaWithLegacyThemeName,
|
|
21299
|
-
chatConfigSchema,
|
|
21300
|
-
answerFormSchema,
|
|
21301
|
-
answerFormFieldSchema,
|
|
21302
|
-
MarkdownRenderer,
|
|
19029
|
+
ChatResultBuilder,
|
|
21303
19030
|
LiipGPTClient,
|
|
21304
|
-
|
|
19031
|
+
MarkdownRenderer,
|
|
19032
|
+
PiiChecks,
|
|
19033
|
+
answerFormFieldSchema,
|
|
19034
|
+
answerFormSchema,
|
|
19035
|
+
chatConfigSchema,
|
|
19036
|
+
chatConfigSchemaWithLegacyThemeName,
|
|
19037
|
+
chatContentSchema,
|
|
19038
|
+
chatMessageBotLoadingSchema,
|
|
19039
|
+
chatMessageBotStreamingSchema,
|
|
19040
|
+
chatMessageSchema,
|
|
19041
|
+
chatMessageUserSchema,
|
|
19042
|
+
checkForPii,
|
|
19043
|
+
classificationConfigSchema,
|
|
19044
|
+
classificationResponseSchema,
|
|
19045
|
+
completeChatConfigSchema,
|
|
19046
|
+
conversationHistorySchema,
|
|
19047
|
+
conversationStateSchema,
|
|
19048
|
+
fullTranslations,
|
|
19049
|
+
menuItemSchema,
|
|
19050
|
+
pageStateSchema,
|
|
19051
|
+
predefinedQuestionSchema,
|
|
19052
|
+
predefinedQuestionsResponseSchema,
|
|
19053
|
+
routeSchema,
|
|
19054
|
+
selectedTopicSchema,
|
|
19055
|
+
userDataResponseSchema
|
|
21305
19056
|
};
|