@liip/liipgpt 1.0.0 → 2.0.0
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/button/liipgpt-button.iife.js +26 -17
- package/chat/liipgpt-chat.iife.js +54 -45
- package/config/index.cjs +10 -4
- package/config/index.d.ts +454 -374
- package/config/index.js +10 -4
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/BWd1KRA2.js +67 -0
- package/configurator/_app/immutable/chunks/BtLfsQWl.js +15 -0
- package/configurator/_app/immutable/chunks/CBFTM35p.js +367 -0
- package/configurator/_app/immutable/chunks/CP9-4jcs.js +1 -0
- package/configurator/_app/immutable/chunks/CfQtRUjK.js +1 -0
- package/configurator/_app/immutable/chunks/Cgm2UlUC.js +1 -0
- package/configurator/_app/immutable/chunks/ChcTJagy.js +3 -0
- package/configurator/_app/immutable/chunks/{BzVylwd7.js → D-Dn-KSg.js} +1 -1
- package/configurator/_app/immutable/chunks/Daj9x7sZ.js +1 -0
- package/configurator/_app/immutable/chunks/DvEdoyY3.js +1 -0
- package/configurator/_app/immutable/chunks/LjIoA1Wm.js +1 -0
- package/configurator/_app/immutable/chunks/TMezqz9A.js +1 -0
- package/configurator/_app/immutable/chunks/pxprCMm0.js +1 -0
- package/configurator/_app/immutable/entry/app.B4WSrzpv.js +2 -0
- package/configurator/_app/immutable/entry/start.GK6q9XMZ.js +1 -0
- package/configurator/_app/immutable/nodes/{0.C1WA-Sd0.js → 0.B7euNXzq.js} +1 -1
- package/configurator/_app/immutable/nodes/1.C9w5e9w0.js +1 -0
- package/configurator/_app/immutable/nodes/2.CWOgfthk.js +28 -0
- package/configurator/_app/immutable/nodes/3.BaHVKKga.js +897 -0
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +10 -10
- package/configurator/sidebar.html +10 -10
- package/index.cjs +1303 -862
- package/index.d.ts +738 -594
- package/index.js +1303 -862
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/BiXZbQqO.js +0 -1
- package/configurator/_app/immutable/chunks/BmumJykv.js +0 -3
- package/configurator/_app/immutable/chunks/BynrE7QB.js +0 -4
- package/configurator/_app/immutable/chunks/CXbcLk5j.js +0 -1
- package/configurator/_app/immutable/chunks/CaDmIJkP.js +0 -28
- package/configurator/_app/immutable/chunks/D5wkZK_2.js +0 -1
- package/configurator/_app/immutable/chunks/DCtHJYgu.js +0 -1
- package/configurator/_app/immutable/chunks/DH3truD-.js +0 -364
- package/configurator/_app/immutable/chunks/DTGU2mqM.js +0 -1
- package/configurator/_app/immutable/chunks/DUt8zN7X.js +0 -1
- package/configurator/_app/immutable/chunks/DkXqbGhE.js +0 -58
- package/configurator/_app/immutable/chunks/Dq6jck_i.js +0 -1
- package/configurator/_app/immutable/chunks/DqybDqwy.js +0 -15
- package/configurator/_app/immutable/entry/app.0vDWmuRN.js +0 -2
- package/configurator/_app/immutable/entry/start.DR9kqzeI.js +0 -1
- package/configurator/_app/immutable/nodes/1.D_clQXr4.js +0 -1
- package/configurator/_app/immutable/nodes/2.DVQmbfVp.js +0 -1
- package/configurator/_app/immutable/nodes/3.CVRgUIw6.js +0 -897
package/index.cjs
CHANGED
|
@@ -3228,7 +3228,7 @@ class MarkdownRenderer {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
// node_modules/.pnpm/esm-env@1.2.2/node_modules/esm-env/true.js
|
|
3230
3230
|
var true_default = true;
|
|
3231
|
-
// node_modules/.pnpm/svelte@5.
|
|
3231
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/shared/utils.js
|
|
3232
3232
|
var is_array = Array.isArray;
|
|
3233
3233
|
var index_of = Array.prototype.indexOf;
|
|
3234
3234
|
var array_from = Array.from;
|
|
@@ -3245,8 +3245,17 @@ function run_all(arr) {
|
|
|
3245
3245
|
arr[i]();
|
|
3246
3246
|
}
|
|
3247
3247
|
}
|
|
3248
|
+
function deferred() {
|
|
3249
|
+
var resolve;
|
|
3250
|
+
var reject;
|
|
3251
|
+
var promise = new Promise((res, rej) => {
|
|
3252
|
+
resolve = res;
|
|
3253
|
+
reject = rej;
|
|
3254
|
+
});
|
|
3255
|
+
return { promise, resolve, reject };
|
|
3256
|
+
}
|
|
3248
3257
|
|
|
3249
|
-
// node_modules/.pnpm/svelte@5.
|
|
3258
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/constants.js
|
|
3250
3259
|
var DERIVED = 1 << 1;
|
|
3251
3260
|
var EFFECT = 1 << 2;
|
|
3252
3261
|
var RENDER_EFFECT = 1 << 3;
|
|
@@ -3266,8 +3275,10 @@ var EFFECT_TRANSPARENT = 1 << 16;
|
|
|
3266
3275
|
var INSPECT_EFFECT = 1 << 17;
|
|
3267
3276
|
var HEAD_EFFECT = 1 << 18;
|
|
3268
3277
|
var EFFECT_PRESERVED = 1 << 19;
|
|
3269
|
-
var
|
|
3270
|
-
var
|
|
3278
|
+
var USER_EFFECT = 1 << 20;
|
|
3279
|
+
var REACTION_IS_UPDATING = 1 << 21;
|
|
3280
|
+
var ASYNC = 1 << 22;
|
|
3281
|
+
var ERROR_VALUE = 1 << 23;
|
|
3271
3282
|
var STATE_SYMBOL = Symbol("$state");
|
|
3272
3283
|
var LEGACY_PROPS = Symbol("legacy props");
|
|
3273
3284
|
var LOADING_ATTR_SYMBOL = Symbol("");
|
|
@@ -3278,35 +3289,7 @@ var STALE_REACTION = new class StaleReactionError extends Error {
|
|
|
3278
3289
|
};
|
|
3279
3290
|
var COMMENT_NODE = 8;
|
|
3280
3291
|
|
|
3281
|
-
// node_modules/.pnpm/svelte@5.
|
|
3282
|
-
var micro_tasks = [];
|
|
3283
|
-
var idle_tasks = [];
|
|
3284
|
-
function run_micro_tasks() {
|
|
3285
|
-
var tasks = micro_tasks;
|
|
3286
|
-
micro_tasks = [];
|
|
3287
|
-
run_all(tasks);
|
|
3288
|
-
}
|
|
3289
|
-
function run_idle_tasks() {
|
|
3290
|
-
var tasks = idle_tasks;
|
|
3291
|
-
idle_tasks = [];
|
|
3292
|
-
run_all(tasks);
|
|
3293
|
-
}
|
|
3294
|
-
function queue_micro_task(fn) {
|
|
3295
|
-
if (micro_tasks.length === 0) {
|
|
3296
|
-
queueMicrotask(run_micro_tasks);
|
|
3297
|
-
}
|
|
3298
|
-
micro_tasks.push(fn);
|
|
3299
|
-
}
|
|
3300
|
-
function flush_tasks() {
|
|
3301
|
-
if (micro_tasks.length > 0) {
|
|
3302
|
-
run_micro_tasks();
|
|
3303
|
-
}
|
|
3304
|
-
if (idle_tasks.length > 0) {
|
|
3305
|
-
run_idle_tasks();
|
|
3306
|
-
}
|
|
3307
|
-
}
|
|
3308
|
-
|
|
3309
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
3292
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
3310
3293
|
function equals(value) {
|
|
3311
3294
|
return value === this.v;
|
|
3312
3295
|
}
|
|
@@ -3316,8 +3299,7 @@ function safe_not_equal(a, b) {
|
|
|
3316
3299
|
function safe_equals(value) {
|
|
3317
3300
|
return !safe_not_equal(value, this.v);
|
|
3318
3301
|
}
|
|
3319
|
-
|
|
3320
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/errors.js
|
|
3302
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/errors.js
|
|
3321
3303
|
function derived_references_self() {
|
|
3322
3304
|
if (true_default) {
|
|
3323
3305
|
const error = new Error(`derived_references_self
|
|
@@ -3332,7 +3314,7 @@ https://svelte.dev/e/derived_references_self`);
|
|
|
3332
3314
|
function effect_update_depth_exceeded() {
|
|
3333
3315
|
if (true_default) {
|
|
3334
3316
|
const error = new Error(`effect_update_depth_exceeded
|
|
3335
|
-
Maximum update depth exceeded. This
|
|
3317
|
+
Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
|
|
3336
3318
|
https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
3337
3319
|
error.name = "Svelte error";
|
|
3338
3320
|
throw error;
|
|
@@ -3340,6 +3322,17 @@ https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
|
3340
3322
|
throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
3341
3323
|
}
|
|
3342
3324
|
}
|
|
3325
|
+
function flush_sync_in_effect() {
|
|
3326
|
+
if (true_default) {
|
|
3327
|
+
const error = new Error(`flush_sync_in_effect
|
|
3328
|
+
Cannot use \`flushSync\` inside an effect
|
|
3329
|
+
https://svelte.dev/e/flush_sync_in_effect`);
|
|
3330
|
+
error.name = "Svelte error";
|
|
3331
|
+
throw error;
|
|
3332
|
+
} else {
|
|
3333
|
+
throw new Error(`https://svelte.dev/e/flush_sync_in_effect`);
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3343
3336
|
function hydration_failed() {
|
|
3344
3337
|
if (true_default) {
|
|
3345
3338
|
const error = new Error(`hydration_failed
|
|
@@ -3396,11 +3389,12 @@ https://svelte.dev/e/state_unsafe_mutation`);
|
|
|
3396
3389
|
}
|
|
3397
3390
|
}
|
|
3398
3391
|
|
|
3399
|
-
// node_modules/.pnpm/svelte@5.
|
|
3392
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/flags/index.js
|
|
3393
|
+
var async_mode_flag = false;
|
|
3400
3394
|
var legacy_mode_flag = false;
|
|
3401
3395
|
var tracing_mode_flag = false;
|
|
3402
3396
|
|
|
3403
|
-
// node_modules/.pnpm/svelte@5.
|
|
3397
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/constants.js
|
|
3404
3398
|
var EACH_INDEX_REACTIVE = 1 << 1;
|
|
3405
3399
|
var EACH_IS_CONTROLLED = 1 << 2;
|
|
3406
3400
|
var EACH_IS_ANIMATED = 1 << 3;
|
|
@@ -3423,40 +3417,40 @@ var UNINITIALIZED = Symbol();
|
|
|
3423
3417
|
var FILENAME = Symbol("filename");
|
|
3424
3418
|
var HMR = Symbol("hmr");
|
|
3425
3419
|
|
|
3426
|
-
// node_modules/.pnpm/svelte@5.
|
|
3420
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dev/tracing.js
|
|
3427
3421
|
var tracing_expressions = null;
|
|
3428
3422
|
function get_stack(label) {
|
|
3429
3423
|
let error = Error();
|
|
3430
3424
|
const stack = error.stack;
|
|
3431
|
-
if (stack)
|
|
3432
|
-
|
|
3425
|
+
if (!stack)
|
|
3426
|
+
return null;
|
|
3427
|
+
const lines = stack.split(`
|
|
3433
3428
|
`);
|
|
3434
|
-
|
|
3429
|
+
const new_lines = [`
|
|
3435
3430
|
`];
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
}
|
|
3441
|
-
if (line.includes("validate_each_keys")) {
|
|
3442
|
-
return null;
|
|
3443
|
-
}
|
|
3444
|
-
if (line.includes("svelte/src/internal")) {
|
|
3445
|
-
continue;
|
|
3446
|
-
}
|
|
3447
|
-
new_lines.push(line);
|
|
3431
|
+
for (let i = 0;i < lines.length; i++) {
|
|
3432
|
+
const line = lines[i];
|
|
3433
|
+
if (line === "Error") {
|
|
3434
|
+
continue;
|
|
3448
3435
|
}
|
|
3449
|
-
if (
|
|
3436
|
+
if (line.includes("validate_each_keys")) {
|
|
3450
3437
|
return null;
|
|
3451
3438
|
}
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3439
|
+
if (line.includes("svelte/src/internal")) {
|
|
3440
|
+
continue;
|
|
3441
|
+
}
|
|
3442
|
+
new_lines.push(line);
|
|
3443
|
+
}
|
|
3444
|
+
if (new_lines.length === 1) {
|
|
3445
|
+
return null;
|
|
3459
3446
|
}
|
|
3447
|
+
define_property(error, "stack", {
|
|
3448
|
+
value: new_lines.join(`
|
|
3449
|
+
`)
|
|
3450
|
+
});
|
|
3451
|
+
define_property(error, "name", {
|
|
3452
|
+
value: `${label}Error`
|
|
3453
|
+
});
|
|
3460
3454
|
return error;
|
|
3461
3455
|
}
|
|
3462
3456
|
function tag2(source, label) {
|
|
@@ -3469,7 +3463,7 @@ function tag_proxy(value, label) {
|
|
|
3469
3463
|
return value;
|
|
3470
3464
|
}
|
|
3471
3465
|
|
|
3472
|
-
// node_modules/.pnpm/svelte@5.
|
|
3466
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/context.js
|
|
3473
3467
|
var component_context = null;
|
|
3474
3468
|
function set_component_context(context) {
|
|
3475
3469
|
component_context = context;
|
|
@@ -3489,16 +3483,8 @@ function push(props, runes = false, fn) {
|
|
|
3489
3483
|
e: null,
|
|
3490
3484
|
s: props,
|
|
3491
3485
|
x: null,
|
|
3492
|
-
l: null
|
|
3486
|
+
l: legacy_mode_flag && !runes ? { s: null, u: null, $: [] } : null
|
|
3493
3487
|
};
|
|
3494
|
-
if (legacy_mode_flag && !runes) {
|
|
3495
|
-
component_context.l = {
|
|
3496
|
-
s: null,
|
|
3497
|
-
u: null,
|
|
3498
|
-
r1: [],
|
|
3499
|
-
r2: source(false)
|
|
3500
|
-
};
|
|
3501
|
-
}
|
|
3502
3488
|
if (true_default) {
|
|
3503
3489
|
component_context.function = fn;
|
|
3504
3490
|
dev_current_component_function = fn;
|
|
@@ -3526,7 +3512,93 @@ function is_runes() {
|
|
|
3526
3512
|
return !legacy_mode_flag || component_context !== null && component_context.l === null;
|
|
3527
3513
|
}
|
|
3528
3514
|
|
|
3529
|
-
// node_modules/.pnpm/svelte@5.
|
|
3515
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/warnings.js
|
|
3516
|
+
var bold = "font-weight: bold";
|
|
3517
|
+
var normal = "font-weight: normal";
|
|
3518
|
+
function await_reactivity_loss(name) {
|
|
3519
|
+
if (true_default) {
|
|
3520
|
+
console.warn(`%c[svelte] await_reactivity_loss
|
|
3521
|
+
%cDetected reactivity loss when reading \`${name}\`. This happens when state is read in an async function after an earlier \`await\`
|
|
3522
|
+
https://svelte.dev/e/await_reactivity_loss`, bold, normal);
|
|
3523
|
+
} else {
|
|
3524
|
+
console.warn(`https://svelte.dev/e/await_reactivity_loss`);
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3527
|
+
function hydration_mismatch(location) {
|
|
3528
|
+
if (true_default) {
|
|
3529
|
+
console.warn(`%c[svelte] hydration_mismatch
|
|
3530
|
+
%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"}
|
|
3531
|
+
https://svelte.dev/e/hydration_mismatch`, bold, normal);
|
|
3532
|
+
} else {
|
|
3533
|
+
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3536
|
+
function lifecycle_double_unmount() {
|
|
3537
|
+
if (true_default) {
|
|
3538
|
+
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
3539
|
+
%cTried to unmount a component that was not mounted
|
|
3540
|
+
https://svelte.dev/e/lifecycle_double_unmount`, bold, normal);
|
|
3541
|
+
} else {
|
|
3542
|
+
console.warn(`https://svelte.dev/e/lifecycle_double_unmount`);
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
function state_proxy_equality_mismatch(operator) {
|
|
3546
|
+
if (true_default) {
|
|
3547
|
+
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
3548
|
+
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results
|
|
3549
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`, bold, normal);
|
|
3550
|
+
} else {
|
|
3551
|
+
console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
3556
|
+
var hydrating = false;
|
|
3557
|
+
function set_hydrating(value) {
|
|
3558
|
+
hydrating = value;
|
|
3559
|
+
}
|
|
3560
|
+
var hydrate_node;
|
|
3561
|
+
function set_hydrate_node(node) {
|
|
3562
|
+
if (node === null) {
|
|
3563
|
+
hydration_mismatch();
|
|
3564
|
+
throw HYDRATION_ERROR;
|
|
3565
|
+
}
|
|
3566
|
+
return hydrate_node = node;
|
|
3567
|
+
}
|
|
3568
|
+
function hydrate_next() {
|
|
3569
|
+
return set_hydrate_node(get_next_sibling(hydrate_node));
|
|
3570
|
+
}
|
|
3571
|
+
function next(count = 1) {
|
|
3572
|
+
if (hydrating) {
|
|
3573
|
+
var i = count;
|
|
3574
|
+
var node = hydrate_node;
|
|
3575
|
+
while (i--) {
|
|
3576
|
+
node = get_next_sibling(node);
|
|
3577
|
+
}
|
|
3578
|
+
hydrate_node = node;
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
function remove_nodes() {
|
|
3582
|
+
var depth = 0;
|
|
3583
|
+
var node = hydrate_node;
|
|
3584
|
+
while (true) {
|
|
3585
|
+
if (node.nodeType === COMMENT_NODE) {
|
|
3586
|
+
var data = node.data;
|
|
3587
|
+
if (data === HYDRATION_END) {
|
|
3588
|
+
if (depth === 0)
|
|
3589
|
+
return node;
|
|
3590
|
+
depth -= 1;
|
|
3591
|
+
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE) {
|
|
3592
|
+
depth += 1;
|
|
3593
|
+
}
|
|
3594
|
+
}
|
|
3595
|
+
var next2 = get_next_sibling(node);
|
|
3596
|
+
node.remove();
|
|
3597
|
+
node = next2;
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3601
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/proxy.js
|
|
3530
3602
|
var regex_is_valid_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
3531
3603
|
function proxy(value) {
|
|
3532
3604
|
if (typeof value !== "object" || value === null || STATE_SYMBOL in value) {
|
|
@@ -3556,13 +3628,16 @@ function proxy(value) {
|
|
|
3556
3628
|
};
|
|
3557
3629
|
if (is_proxied_array) {
|
|
3558
3630
|
sources.set("length", state(value.length, stack));
|
|
3631
|
+
if (true_default) {
|
|
3632
|
+
value = inspectable_array(value);
|
|
3633
|
+
}
|
|
3559
3634
|
}
|
|
3560
3635
|
var path = "";
|
|
3561
3636
|
function update_path(new_path) {
|
|
3562
3637
|
path = new_path;
|
|
3563
3638
|
tag2(version, `${path} version`);
|
|
3564
|
-
for (const [prop,
|
|
3565
|
-
tag2(
|
|
3639
|
+
for (const [prop, source] of sources) {
|
|
3640
|
+
tag2(source, get_label(path, prop));
|
|
3566
3641
|
}
|
|
3567
3642
|
}
|
|
3568
3643
|
return new Proxy(value, {
|
|
@@ -3597,13 +3672,6 @@ function proxy(value) {
|
|
|
3597
3672
|
}
|
|
3598
3673
|
}
|
|
3599
3674
|
} else {
|
|
3600
|
-
if (is_proxied_array && typeof prop === "string") {
|
|
3601
|
-
var ls = sources.get("length");
|
|
3602
|
-
var n = Number(prop);
|
|
3603
|
-
if (Number.isInteger(n) && n < ls.v) {
|
|
3604
|
-
set(ls, n);
|
|
3605
|
-
}
|
|
3606
|
-
}
|
|
3607
3675
|
set(s, UNINITIALIZED);
|
|
3608
3676
|
increment(version);
|
|
3609
3677
|
}
|
|
@@ -3642,9 +3710,9 @@ function proxy(value) {
|
|
|
3642
3710
|
if (s)
|
|
3643
3711
|
descriptor.value = get(s);
|
|
3644
3712
|
} else if (descriptor === undefined) {
|
|
3645
|
-
var
|
|
3646
|
-
var value2 =
|
|
3647
|
-
if (
|
|
3713
|
+
var source = sources.get(prop);
|
|
3714
|
+
var value2 = source?.v;
|
|
3715
|
+
if (source !== undefined && value2 !== UNINITIALIZED) {
|
|
3648
3716
|
return {
|
|
3649
3717
|
enumerable: true,
|
|
3650
3718
|
configurable: true,
|
|
@@ -3730,11 +3798,11 @@ function proxy(value) {
|
|
|
3730
3798
|
ownKeys(target) {
|
|
3731
3799
|
get(version);
|
|
3732
3800
|
var own_keys = Reflect.ownKeys(target).filter((key2) => {
|
|
3733
|
-
var
|
|
3734
|
-
return
|
|
3801
|
+
var source2 = sources.get(key2);
|
|
3802
|
+
return source2 === undefined || source2.v !== UNINITIALIZED;
|
|
3735
3803
|
});
|
|
3736
|
-
for (var [key,
|
|
3737
|
-
if (
|
|
3804
|
+
for (var [key, source] of sources) {
|
|
3805
|
+
if (source.v !== UNINITIALIZED && !(key in target)) {
|
|
3738
3806
|
own_keys.push(key);
|
|
3739
3807
|
}
|
|
3740
3808
|
}
|
|
@@ -3760,322 +3828,86 @@ function get_proxied_value(value) {
|
|
|
3760
3828
|
} catch {}
|
|
3761
3829
|
return value;
|
|
3762
3830
|
}
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3831
|
+
var ARRAY_MUTATING_METHODS = new Set([
|
|
3832
|
+
"copyWithin",
|
|
3833
|
+
"fill",
|
|
3834
|
+
"pop",
|
|
3835
|
+
"push",
|
|
3836
|
+
"reverse",
|
|
3837
|
+
"shift",
|
|
3838
|
+
"sort",
|
|
3839
|
+
"splice",
|
|
3840
|
+
"unshift"
|
|
3841
|
+
]);
|
|
3842
|
+
function inspectable_array(array) {
|
|
3843
|
+
return new Proxy(array, {
|
|
3844
|
+
get(target, prop, receiver) {
|
|
3845
|
+
var value = Reflect.get(target, prop, receiver);
|
|
3846
|
+
if (!ARRAY_MUTATING_METHODS.has(prop)) {
|
|
3847
|
+
return value;
|
|
3848
|
+
}
|
|
3849
|
+
return function(...args) {
|
|
3850
|
+
set_inspect_effects_deferred();
|
|
3851
|
+
var result = value.apply(this, args);
|
|
3852
|
+
flush_inspect_effects();
|
|
3853
|
+
return result;
|
|
3854
|
+
};
|
|
3771
3855
|
}
|
|
3772
|
-
}
|
|
3856
|
+
});
|
|
3773
3857
|
}
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
parent = parent.parent;
|
|
3858
|
+
|
|
3859
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dev/equality.js
|
|
3860
|
+
function init_array_prototype_warnings() {
|
|
3861
|
+
const array_prototype2 = Array.prototype;
|
|
3862
|
+
const cleanup = Array.__svelte_cleanup;
|
|
3863
|
+
if (cleanup) {
|
|
3864
|
+
cleanup();
|
|
3782
3865
|
}
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
try {
|
|
3793
|
-
if (stack.includes(derived)) {
|
|
3794
|
-
derived_references_self();
|
|
3866
|
+
const { indexOf, lastIndexOf, includes } = array_prototype2;
|
|
3867
|
+
array_prototype2.indexOf = function(item, from_index) {
|
|
3868
|
+
const index = indexOf.call(this, item, from_index);
|
|
3869
|
+
if (index === -1) {
|
|
3870
|
+
for (let i = from_index ?? 0;i < this.length; i += 1) {
|
|
3871
|
+
if (get_proxied_value(this[i]) === item) {
|
|
3872
|
+
state_proxy_equality_mismatch("array.indexOf(...)");
|
|
3873
|
+
break;
|
|
3874
|
+
}
|
|
3795
3875
|
}
|
|
3796
|
-
stack.push(derived);
|
|
3797
|
-
destroy_derived_effects(derived);
|
|
3798
|
-
value = update_reaction(derived);
|
|
3799
|
-
} finally {
|
|
3800
|
-
set_active_effect(prev_active_effect);
|
|
3801
|
-
set_inspect_effects(prev_inspect_effects);
|
|
3802
|
-
stack.pop();
|
|
3803
3876
|
}
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3877
|
+
return index;
|
|
3878
|
+
};
|
|
3879
|
+
array_prototype2.lastIndexOf = function(item, from_index) {
|
|
3880
|
+
const index = lastIndexOf.call(this, item, from_index ?? this.length - 1);
|
|
3881
|
+
if (index === -1) {
|
|
3882
|
+
for (let i = 0;i <= (from_index ?? this.length - 1); i += 1) {
|
|
3883
|
+
if (get_proxied_value(this[i]) === item) {
|
|
3884
|
+
state_proxy_equality_mismatch("array.lastIndexOf(...)");
|
|
3885
|
+
break;
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3810
3888
|
}
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3889
|
+
return index;
|
|
3890
|
+
};
|
|
3891
|
+
array_prototype2.includes = function(item, from_index) {
|
|
3892
|
+
const has = includes.call(this, item, from_index);
|
|
3893
|
+
if (!has) {
|
|
3894
|
+
for (let i = 0;i < this.length; i += 1) {
|
|
3895
|
+
if (get_proxied_value(this[i]) === item) {
|
|
3896
|
+
state_proxy_equality_mismatch("array.includes(...)");
|
|
3897
|
+
break;
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3900
|
+
}
|
|
3901
|
+
return has;
|
|
3902
|
+
};
|
|
3903
|
+
Array.__svelte_cleanup = () => {
|
|
3904
|
+
array_prototype2.indexOf = indexOf;
|
|
3905
|
+
array_prototype2.lastIndexOf = lastIndexOf;
|
|
3906
|
+
array_prototype2.includes = includes;
|
|
3907
|
+
};
|
|
3824
3908
|
}
|
|
3825
3909
|
|
|
3826
|
-
// node_modules/.pnpm/svelte@5.
|
|
3827
|
-
var inspect_effects = new Set;
|
|
3828
|
-
var old_values = new Map;
|
|
3829
|
-
function set_inspect_effects(v) {
|
|
3830
|
-
inspect_effects = v;
|
|
3831
|
-
}
|
|
3832
|
-
function source(v, stack2) {
|
|
3833
|
-
var signal = {
|
|
3834
|
-
f: 0,
|
|
3835
|
-
v,
|
|
3836
|
-
reactions: null,
|
|
3837
|
-
equals,
|
|
3838
|
-
rv: 0,
|
|
3839
|
-
wv: 0
|
|
3840
|
-
};
|
|
3841
|
-
if (true_default && tracing_mode_flag) {
|
|
3842
|
-
signal.created = stack2 ?? get_stack("CreatedAt");
|
|
3843
|
-
signal.updated = null;
|
|
3844
|
-
signal.set_during_effect = false;
|
|
3845
|
-
signal.trace = null;
|
|
3846
|
-
}
|
|
3847
|
-
return signal;
|
|
3848
|
-
}
|
|
3849
|
-
function state(v, stack2) {
|
|
3850
|
-
const s = source(v, stack2);
|
|
3851
|
-
push_reaction_value(s);
|
|
3852
|
-
return s;
|
|
3853
|
-
}
|
|
3854
|
-
function mutable_source(initial_value, immutable = false, trackable = true) {
|
|
3855
|
-
const s = source(initial_value);
|
|
3856
|
-
if (!immutable) {
|
|
3857
|
-
s.equals = safe_equals;
|
|
3858
|
-
}
|
|
3859
|
-
if (legacy_mode_flag && trackable && component_context !== null && component_context.l !== null) {
|
|
3860
|
-
(component_context.l.s ??= []).push(s);
|
|
3861
|
-
}
|
|
3862
|
-
return s;
|
|
3863
|
-
}
|
|
3864
|
-
function set(source2, value, should_proxy = false) {
|
|
3865
|
-
if (active_reaction !== null && (!untracking || (active_reaction.f & INSPECT_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | INSPECT_EFFECT)) !== 0 && !current_sources?.includes(source2)) {
|
|
3866
|
-
state_unsafe_mutation();
|
|
3867
|
-
}
|
|
3868
|
-
let new_value = should_proxy ? proxy(value) : value;
|
|
3869
|
-
if (true_default) {
|
|
3870
|
-
tag_proxy(new_value, source2.label);
|
|
3871
|
-
}
|
|
3872
|
-
return internal_set(source2, new_value);
|
|
3873
|
-
}
|
|
3874
|
-
function internal_set(source2, value) {
|
|
3875
|
-
if (!source2.equals(value)) {
|
|
3876
|
-
var old_value = source2.v;
|
|
3877
|
-
if (is_destroying_effect) {
|
|
3878
|
-
old_values.set(source2, value);
|
|
3879
|
-
} else {
|
|
3880
|
-
old_values.set(source2, old_value);
|
|
3881
|
-
}
|
|
3882
|
-
source2.v = value;
|
|
3883
|
-
if (true_default && tracing_mode_flag) {
|
|
3884
|
-
source2.updated = get_stack("UpdatedAt");
|
|
3885
|
-
if (active_effect !== null) {
|
|
3886
|
-
source2.set_during_effect = true;
|
|
3887
|
-
}
|
|
3888
|
-
}
|
|
3889
|
-
if ((source2.f & DERIVED) !== 0) {
|
|
3890
|
-
if ((source2.f & DIRTY) !== 0) {
|
|
3891
|
-
execute_derived(source2);
|
|
3892
|
-
}
|
|
3893
|
-
set_signal_status(source2, (source2.f & UNOWNED) === 0 ? CLEAN : MAYBE_DIRTY);
|
|
3894
|
-
}
|
|
3895
|
-
source2.wv = increment_write_version();
|
|
3896
|
-
mark_reactions(source2, DIRTY);
|
|
3897
|
-
if (is_runes() && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
|
|
3898
|
-
if (untracked_writes === null) {
|
|
3899
|
-
set_untracked_writes([source2]);
|
|
3900
|
-
} else {
|
|
3901
|
-
untracked_writes.push(source2);
|
|
3902
|
-
}
|
|
3903
|
-
}
|
|
3904
|
-
if (true_default && inspect_effects.size > 0) {
|
|
3905
|
-
const inspects = Array.from(inspect_effects);
|
|
3906
|
-
for (const effect of inspects) {
|
|
3907
|
-
if ((effect.f & CLEAN) !== 0) {
|
|
3908
|
-
set_signal_status(effect, MAYBE_DIRTY);
|
|
3909
|
-
}
|
|
3910
|
-
if (check_dirtiness(effect)) {
|
|
3911
|
-
update_effect(effect);
|
|
3912
|
-
}
|
|
3913
|
-
}
|
|
3914
|
-
inspect_effects.clear();
|
|
3915
|
-
}
|
|
3916
|
-
}
|
|
3917
|
-
return value;
|
|
3918
|
-
}
|
|
3919
|
-
function increment(source2) {
|
|
3920
|
-
set(source2, source2.v + 1);
|
|
3921
|
-
}
|
|
3922
|
-
function mark_reactions(signal, status) {
|
|
3923
|
-
var reactions = signal.reactions;
|
|
3924
|
-
if (reactions === null)
|
|
3925
|
-
return;
|
|
3926
|
-
var runes = is_runes();
|
|
3927
|
-
var length = reactions.length;
|
|
3928
|
-
for (var i = 0;i < length; i++) {
|
|
3929
|
-
var reaction = reactions[i];
|
|
3930
|
-
var flags = reaction.f;
|
|
3931
|
-
if ((flags & DIRTY) !== 0)
|
|
3932
|
-
continue;
|
|
3933
|
-
if (!runes && reaction === active_effect)
|
|
3934
|
-
continue;
|
|
3935
|
-
if (true_default && (flags & INSPECT_EFFECT) !== 0) {
|
|
3936
|
-
inspect_effects.add(reaction);
|
|
3937
|
-
continue;
|
|
3938
|
-
}
|
|
3939
|
-
set_signal_status(reaction, status);
|
|
3940
|
-
if ((flags & (CLEAN | UNOWNED)) !== 0) {
|
|
3941
|
-
if ((flags & DERIVED) !== 0) {
|
|
3942
|
-
mark_reactions(reaction, MAYBE_DIRTY);
|
|
3943
|
-
} else {
|
|
3944
|
-
schedule_effect(reaction);
|
|
3945
|
-
}
|
|
3946
|
-
}
|
|
3947
|
-
}
|
|
3948
|
-
}
|
|
3949
|
-
|
|
3950
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/warnings.js
|
|
3951
|
-
var bold = "font-weight: bold";
|
|
3952
|
-
var normal = "font-weight: normal";
|
|
3953
|
-
function hydration_mismatch(location) {
|
|
3954
|
-
if (true_default) {
|
|
3955
|
-
console.warn(`%c[svelte] hydration_mismatch
|
|
3956
|
-
%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"}
|
|
3957
|
-
https://svelte.dev/e/hydration_mismatch`, bold, normal);
|
|
3958
|
-
} else {
|
|
3959
|
-
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
3960
|
-
}
|
|
3961
|
-
}
|
|
3962
|
-
function lifecycle_double_unmount() {
|
|
3963
|
-
if (true_default) {
|
|
3964
|
-
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
3965
|
-
%cTried to unmount a component that was not mounted
|
|
3966
|
-
https://svelte.dev/e/lifecycle_double_unmount`, bold, normal);
|
|
3967
|
-
} else {
|
|
3968
|
-
console.warn(`https://svelte.dev/e/lifecycle_double_unmount`);
|
|
3969
|
-
}
|
|
3970
|
-
}
|
|
3971
|
-
function state_proxy_equality_mismatch(operator) {
|
|
3972
|
-
if (true_default) {
|
|
3973
|
-
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
3974
|
-
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results
|
|
3975
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`, bold, normal);
|
|
3976
|
-
} else {
|
|
3977
|
-
console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
|
|
3978
|
-
}
|
|
3979
|
-
}
|
|
3980
|
-
|
|
3981
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
3982
|
-
var hydrating = false;
|
|
3983
|
-
function set_hydrating(value) {
|
|
3984
|
-
hydrating = value;
|
|
3985
|
-
}
|
|
3986
|
-
var hydrate_node;
|
|
3987
|
-
function set_hydrate_node(node) {
|
|
3988
|
-
if (node === null) {
|
|
3989
|
-
hydration_mismatch();
|
|
3990
|
-
throw HYDRATION_ERROR;
|
|
3991
|
-
}
|
|
3992
|
-
return hydrate_node = node;
|
|
3993
|
-
}
|
|
3994
|
-
function hydrate_next() {
|
|
3995
|
-
return set_hydrate_node(get_next_sibling(hydrate_node));
|
|
3996
|
-
}
|
|
3997
|
-
function next(count = 1) {
|
|
3998
|
-
if (hydrating) {
|
|
3999
|
-
var i = count;
|
|
4000
|
-
var node = hydrate_node;
|
|
4001
|
-
while (i--) {
|
|
4002
|
-
node = get_next_sibling(node);
|
|
4003
|
-
}
|
|
4004
|
-
hydrate_node = node;
|
|
4005
|
-
}
|
|
4006
|
-
}
|
|
4007
|
-
function remove_nodes() {
|
|
4008
|
-
var depth = 0;
|
|
4009
|
-
var node = hydrate_node;
|
|
4010
|
-
while (true) {
|
|
4011
|
-
if (node.nodeType === COMMENT_NODE) {
|
|
4012
|
-
var data = node.data;
|
|
4013
|
-
if (data === HYDRATION_END) {
|
|
4014
|
-
if (depth === 0)
|
|
4015
|
-
return node;
|
|
4016
|
-
depth -= 1;
|
|
4017
|
-
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE) {
|
|
4018
|
-
depth += 1;
|
|
4019
|
-
}
|
|
4020
|
-
}
|
|
4021
|
-
var next2 = get_next_sibling(node);
|
|
4022
|
-
node.remove();
|
|
4023
|
-
node = next2;
|
|
4024
|
-
}
|
|
4025
|
-
}
|
|
4026
|
-
|
|
4027
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/dev/equality.js
|
|
4028
|
-
function init_array_prototype_warnings() {
|
|
4029
|
-
const array_prototype2 = Array.prototype;
|
|
4030
|
-
const cleanup = Array.__svelte_cleanup;
|
|
4031
|
-
if (cleanup) {
|
|
4032
|
-
cleanup();
|
|
4033
|
-
}
|
|
4034
|
-
const { indexOf, lastIndexOf, includes } = array_prototype2;
|
|
4035
|
-
array_prototype2.indexOf = function(item, from_index) {
|
|
4036
|
-
const index = indexOf.call(this, item, from_index);
|
|
4037
|
-
if (index === -1) {
|
|
4038
|
-
for (let i = from_index ?? 0;i < this.length; i += 1) {
|
|
4039
|
-
if (get_proxied_value(this[i]) === item) {
|
|
4040
|
-
state_proxy_equality_mismatch("array.indexOf(...)");
|
|
4041
|
-
break;
|
|
4042
|
-
}
|
|
4043
|
-
}
|
|
4044
|
-
}
|
|
4045
|
-
return index;
|
|
4046
|
-
};
|
|
4047
|
-
array_prototype2.lastIndexOf = function(item, from_index) {
|
|
4048
|
-
const index = lastIndexOf.call(this, item, from_index ?? this.length - 1);
|
|
4049
|
-
if (index === -1) {
|
|
4050
|
-
for (let i = 0;i <= (from_index ?? this.length - 1); i += 1) {
|
|
4051
|
-
if (get_proxied_value(this[i]) === item) {
|
|
4052
|
-
state_proxy_equality_mismatch("array.lastIndexOf(...)");
|
|
4053
|
-
break;
|
|
4054
|
-
}
|
|
4055
|
-
}
|
|
4056
|
-
}
|
|
4057
|
-
return index;
|
|
4058
|
-
};
|
|
4059
|
-
array_prototype2.includes = function(item, from_index) {
|
|
4060
|
-
const has = includes.call(this, item, from_index);
|
|
4061
|
-
if (!has) {
|
|
4062
|
-
for (let i = 0;i < this.length; i += 1) {
|
|
4063
|
-
if (get_proxied_value(this[i]) === item) {
|
|
4064
|
-
state_proxy_equality_mismatch("array.includes(...)");
|
|
4065
|
-
break;
|
|
4066
|
-
}
|
|
4067
|
-
}
|
|
4068
|
-
}
|
|
4069
|
-
return has;
|
|
4070
|
-
};
|
|
4071
|
-
Array.__svelte_cleanup = () => {
|
|
4072
|
-
array_prototype2.indexOf = indexOf;
|
|
4073
|
-
array_prototype2.lastIndexOf = lastIndexOf;
|
|
4074
|
-
array_prototype2.includes = includes;
|
|
4075
|
-
};
|
|
4076
|
-
}
|
|
4077
|
-
|
|
4078
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/dom/operations.js
|
|
3910
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/operations.js
|
|
4079
3911
|
var $window;
|
|
4080
3912
|
var $document;
|
|
4081
3913
|
var is_firefox;
|
|
@@ -4121,17 +3953,25 @@ function clear_text_content(node) {
|
|
|
4121
3953
|
node.textContent = "";
|
|
4122
3954
|
}
|
|
4123
3955
|
|
|
4124
|
-
// node_modules/.pnpm/svelte@5.
|
|
3956
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/error-handling.js
|
|
3957
|
+
var adjustments = new WeakMap;
|
|
4125
3958
|
function handle_error(error) {
|
|
4126
3959
|
var effect = active_effect;
|
|
4127
|
-
if (
|
|
4128
|
-
|
|
3960
|
+
if (effect === null) {
|
|
3961
|
+
active_reaction.f |= ERROR_VALUE;
|
|
3962
|
+
return error;
|
|
3963
|
+
}
|
|
3964
|
+
if (true_default && error instanceof Error && !adjustments.has(error)) {
|
|
3965
|
+
adjustments.set(error, get_adjustments(error, effect));
|
|
4129
3966
|
}
|
|
4130
3967
|
if ((effect.f & EFFECT_RAN) === 0) {
|
|
4131
3968
|
if ((effect.f & BOUNDARY_EFFECT) === 0) {
|
|
3969
|
+
if (!effect.parent && error instanceof Error) {
|
|
3970
|
+
apply_adjustments(error);
|
|
3971
|
+
}
|
|
4132
3972
|
throw error;
|
|
4133
3973
|
}
|
|
4134
|
-
effect.
|
|
3974
|
+
effect.b.error(error);
|
|
4135
3975
|
} else {
|
|
4136
3976
|
invoke_error_boundary(error, effect);
|
|
4137
3977
|
}
|
|
@@ -4146,13 +3986,12 @@ function invoke_error_boundary(error, effect) {
|
|
|
4146
3986
|
}
|
|
4147
3987
|
effect = effect.parent;
|
|
4148
3988
|
}
|
|
3989
|
+
if (error instanceof Error) {
|
|
3990
|
+
apply_adjustments(error);
|
|
3991
|
+
}
|
|
4149
3992
|
throw error;
|
|
4150
3993
|
}
|
|
4151
|
-
|
|
4152
|
-
function adjust_error(error, effect) {
|
|
4153
|
-
if (adjusted_errors.has(error))
|
|
4154
|
-
return;
|
|
4155
|
-
adjusted_errors.add(error);
|
|
3994
|
+
function get_adjustments(error, effect) {
|
|
4156
3995
|
const message_descriptor = get_descriptor(error, "message");
|
|
4157
3996
|
if (message_descriptor && !message_descriptor.configurable)
|
|
4158
3997
|
return;
|
|
@@ -4165,30 +4004,838 @@ ${indent}in ${effect.fn?.name || "<unknown>"}`;
|
|
|
4165
4004
|
${indent}in ${context.function?.[FILENAME].split("/").pop()}`;
|
|
4166
4005
|
context = context.p;
|
|
4167
4006
|
}
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
${component_stack}
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4007
|
+
return {
|
|
4008
|
+
message: error.message + `
|
|
4009
|
+
${component_stack}
|
|
4010
|
+
`,
|
|
4011
|
+
stack: error.stack?.split(`
|
|
4012
|
+
`).filter((line) => !line.includes("svelte/src/internal")).join(`
|
|
4013
|
+
`)
|
|
4014
|
+
};
|
|
4015
|
+
}
|
|
4016
|
+
function apply_adjustments(error) {
|
|
4017
|
+
const adjusted = adjustments.get(error);
|
|
4018
|
+
if (adjusted) {
|
|
4019
|
+
define_property(error, "message", {
|
|
4020
|
+
value: adjusted.message
|
|
4021
|
+
});
|
|
4022
|
+
define_property(error, "stack", {
|
|
4023
|
+
value: adjusted.stack
|
|
4024
|
+
});
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/task.js
|
|
4029
|
+
var micro_tasks = [];
|
|
4030
|
+
var idle_tasks = [];
|
|
4031
|
+
function run_micro_tasks() {
|
|
4032
|
+
var tasks = micro_tasks;
|
|
4033
|
+
micro_tasks = [];
|
|
4034
|
+
run_all(tasks);
|
|
4035
|
+
}
|
|
4036
|
+
function run_idle_tasks() {
|
|
4037
|
+
var tasks = idle_tasks;
|
|
4038
|
+
idle_tasks = [];
|
|
4039
|
+
run_all(tasks);
|
|
4040
|
+
}
|
|
4041
|
+
function queue_micro_task(fn) {
|
|
4042
|
+
if (micro_tasks.length === 0) {
|
|
4043
|
+
queueMicrotask(run_micro_tasks);
|
|
4044
|
+
}
|
|
4045
|
+
micro_tasks.push(fn);
|
|
4046
|
+
}
|
|
4047
|
+
function flush_tasks() {
|
|
4048
|
+
if (micro_tasks.length > 0) {
|
|
4049
|
+
run_micro_tasks();
|
|
4050
|
+
}
|
|
4051
|
+
if (idle_tasks.length > 0) {
|
|
4052
|
+
run_idle_tasks();
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
4057
|
+
function createSubscriber(start) {
|
|
4058
|
+
let subscribers = 0;
|
|
4059
|
+
let version = source(0);
|
|
4060
|
+
let stop;
|
|
4061
|
+
if (true_default) {
|
|
4062
|
+
tag2(version, "createSubscriber version");
|
|
4063
|
+
}
|
|
4064
|
+
return () => {
|
|
4065
|
+
if (effect_tracking()) {
|
|
4066
|
+
get(version);
|
|
4067
|
+
render_effect(() => {
|
|
4068
|
+
if (subscribers === 0) {
|
|
4069
|
+
stop = untrack(() => start(() => increment(version)));
|
|
4070
|
+
}
|
|
4071
|
+
subscribers += 1;
|
|
4072
|
+
return () => {
|
|
4073
|
+
queue_micro_task(() => {
|
|
4074
|
+
subscribers -= 1;
|
|
4075
|
+
if (subscribers === 0) {
|
|
4076
|
+
stop?.();
|
|
4077
|
+
stop = undefined;
|
|
4078
|
+
}
|
|
4079
|
+
});
|
|
4080
|
+
};
|
|
4081
|
+
});
|
|
4082
|
+
}
|
|
4083
|
+
};
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
4087
|
+
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT;
|
|
4088
|
+
class Boundary {
|
|
4089
|
+
pending = false;
|
|
4090
|
+
parent;
|
|
4091
|
+
#anchor;
|
|
4092
|
+
#hydrate_open;
|
|
4093
|
+
#props;
|
|
4094
|
+
#children;
|
|
4095
|
+
#effect;
|
|
4096
|
+
#main_effect = null;
|
|
4097
|
+
#pending_effect = null;
|
|
4098
|
+
#failed_effect = null;
|
|
4099
|
+
#offscreen_fragment = null;
|
|
4100
|
+
#pending_count = 0;
|
|
4101
|
+
#is_creating_fallback = false;
|
|
4102
|
+
#effect_pending = null;
|
|
4103
|
+
#effect_pending_update = () => {
|
|
4104
|
+
if (this.#effect_pending) {
|
|
4105
|
+
internal_set(this.#effect_pending, this.#pending_count);
|
|
4106
|
+
}
|
|
4107
|
+
};
|
|
4108
|
+
#effect_pending_subscriber = createSubscriber(() => {
|
|
4109
|
+
this.#effect_pending = source(this.#pending_count);
|
|
4110
|
+
if (true_default) {
|
|
4111
|
+
tag2(this.#effect_pending, "$effect.pending()");
|
|
4112
|
+
}
|
|
4113
|
+
return () => {
|
|
4114
|
+
this.#effect_pending = null;
|
|
4115
|
+
};
|
|
4116
|
+
});
|
|
4117
|
+
constructor(node, props, children) {
|
|
4118
|
+
this.#anchor = node;
|
|
4119
|
+
this.#props = props;
|
|
4120
|
+
this.#children = children;
|
|
4121
|
+
this.#hydrate_open = hydrate_node;
|
|
4122
|
+
this.parent = active_effect.b;
|
|
4123
|
+
this.pending = !!this.#props.pending;
|
|
4124
|
+
this.#effect = block2(() => {
|
|
4125
|
+
active_effect.b = this;
|
|
4126
|
+
if (hydrating) {
|
|
4127
|
+
hydrate_next();
|
|
4128
|
+
}
|
|
4129
|
+
const pending = this.#props.pending;
|
|
4130
|
+
if (hydrating && pending) {
|
|
4131
|
+
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
4132
|
+
queueMicrotask(() => {
|
|
4133
|
+
this.#main_effect = this.#run(() => {
|
|
4134
|
+
Batch.ensure();
|
|
4135
|
+
return branch(() => this.#children(this.#anchor));
|
|
4136
|
+
});
|
|
4137
|
+
if (this.#pending_count > 0) {
|
|
4138
|
+
this.#show_pending_snippet();
|
|
4139
|
+
} else {
|
|
4140
|
+
pause_effect(this.#pending_effect, () => {
|
|
4141
|
+
this.#pending_effect = null;
|
|
4142
|
+
});
|
|
4143
|
+
this.pending = false;
|
|
4144
|
+
}
|
|
4145
|
+
});
|
|
4146
|
+
} else {
|
|
4147
|
+
try {
|
|
4148
|
+
this.#main_effect = branch(() => children(this.#anchor));
|
|
4149
|
+
} catch (error) {
|
|
4150
|
+
this.error(error);
|
|
4151
|
+
}
|
|
4152
|
+
if (this.#pending_count > 0) {
|
|
4153
|
+
this.#show_pending_snippet();
|
|
4154
|
+
} else {
|
|
4155
|
+
this.pending = false;
|
|
4156
|
+
}
|
|
4157
|
+
}
|
|
4158
|
+
}, flags);
|
|
4159
|
+
if (hydrating) {
|
|
4160
|
+
this.#anchor = hydrate_node;
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
4163
|
+
has_pending_snippet() {
|
|
4164
|
+
return !!this.#props.pending;
|
|
4165
|
+
}
|
|
4166
|
+
#run(fn) {
|
|
4167
|
+
var previous_effect = active_effect;
|
|
4168
|
+
var previous_reaction = active_reaction;
|
|
4169
|
+
var previous_ctx = component_context;
|
|
4170
|
+
set_active_effect(this.#effect);
|
|
4171
|
+
set_active_reaction(this.#effect);
|
|
4172
|
+
set_component_context(this.#effect.ctx);
|
|
4173
|
+
try {
|
|
4174
|
+
return fn();
|
|
4175
|
+
} finally {
|
|
4176
|
+
set_active_effect(previous_effect);
|
|
4177
|
+
set_active_reaction(previous_reaction);
|
|
4178
|
+
set_component_context(previous_ctx);
|
|
4179
|
+
}
|
|
4180
|
+
}
|
|
4181
|
+
#show_pending_snippet() {
|
|
4182
|
+
const pending = this.#props.pending;
|
|
4183
|
+
if (this.#main_effect !== null) {
|
|
4184
|
+
this.#offscreen_fragment = document.createDocumentFragment();
|
|
4185
|
+
move_effect(this.#main_effect, this.#offscreen_fragment);
|
|
4186
|
+
}
|
|
4187
|
+
if (this.#pending_effect === null) {
|
|
4188
|
+
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
#update_pending_count(d) {
|
|
4192
|
+
this.#pending_count += d;
|
|
4193
|
+
if (this.#pending_count === 0) {
|
|
4194
|
+
this.pending = false;
|
|
4195
|
+
if (this.#pending_effect) {
|
|
4196
|
+
pause_effect(this.#pending_effect, () => {
|
|
4197
|
+
this.#pending_effect = null;
|
|
4198
|
+
});
|
|
4199
|
+
}
|
|
4200
|
+
if (this.#offscreen_fragment) {
|
|
4201
|
+
this.#anchor.before(this.#offscreen_fragment);
|
|
4202
|
+
this.#offscreen_fragment = null;
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
}
|
|
4206
|
+
update_pending_count(d) {
|
|
4207
|
+
if (this.has_pending_snippet()) {
|
|
4208
|
+
this.#update_pending_count(d);
|
|
4209
|
+
} else if (this.parent) {
|
|
4210
|
+
this.parent.#update_pending_count(d);
|
|
4211
|
+
}
|
|
4212
|
+
effect_pending_updates.add(this.#effect_pending_update);
|
|
4213
|
+
}
|
|
4214
|
+
get_effect_pending() {
|
|
4215
|
+
this.#effect_pending_subscriber();
|
|
4216
|
+
return get(this.#effect_pending);
|
|
4217
|
+
}
|
|
4218
|
+
error(error) {
|
|
4219
|
+
var onerror = this.#props.onerror;
|
|
4220
|
+
let failed = this.#props.failed;
|
|
4221
|
+
const reset = () => {
|
|
4222
|
+
this.#pending_count = 0;
|
|
4223
|
+
if (this.#failed_effect !== null) {
|
|
4224
|
+
pause_effect(this.#failed_effect, () => {
|
|
4225
|
+
this.#failed_effect = null;
|
|
4226
|
+
});
|
|
4227
|
+
}
|
|
4228
|
+
this.pending = true;
|
|
4229
|
+
this.#main_effect = this.#run(() => {
|
|
4230
|
+
this.#is_creating_fallback = false;
|
|
4231
|
+
return branch(() => this.#children(this.#anchor));
|
|
4232
|
+
});
|
|
4233
|
+
if (this.#pending_count > 0) {
|
|
4234
|
+
this.#show_pending_snippet();
|
|
4235
|
+
} else {
|
|
4236
|
+
this.pending = false;
|
|
4237
|
+
}
|
|
4238
|
+
};
|
|
4239
|
+
if (this.#is_creating_fallback || !onerror && !failed) {
|
|
4240
|
+
throw error;
|
|
4241
|
+
}
|
|
4242
|
+
var previous_reaction = active_reaction;
|
|
4243
|
+
try {
|
|
4244
|
+
set_active_reaction(null);
|
|
4245
|
+
onerror?.(error, reset);
|
|
4246
|
+
} finally {
|
|
4247
|
+
set_active_reaction(previous_reaction);
|
|
4248
|
+
}
|
|
4249
|
+
if (this.#main_effect) {
|
|
4250
|
+
destroy_effect(this.#main_effect);
|
|
4251
|
+
this.#main_effect = null;
|
|
4252
|
+
}
|
|
4253
|
+
if (this.#pending_effect) {
|
|
4254
|
+
destroy_effect(this.#pending_effect);
|
|
4255
|
+
this.#pending_effect = null;
|
|
4256
|
+
}
|
|
4257
|
+
if (this.#failed_effect) {
|
|
4258
|
+
destroy_effect(this.#failed_effect);
|
|
4259
|
+
this.#failed_effect = null;
|
|
4260
|
+
}
|
|
4261
|
+
if (hydrating) {
|
|
4262
|
+
set_hydrate_node(this.#hydrate_open);
|
|
4263
|
+
next();
|
|
4264
|
+
set_hydrate_node(remove_nodes());
|
|
4265
|
+
}
|
|
4266
|
+
if (failed) {
|
|
4267
|
+
queue_micro_task(() => {
|
|
4268
|
+
this.#failed_effect = this.#run(() => {
|
|
4269
|
+
this.#is_creating_fallback = true;
|
|
4270
|
+
try {
|
|
4271
|
+
return branch(() => {
|
|
4272
|
+
failed(this.#anchor, () => error, () => reset);
|
|
4273
|
+
});
|
|
4274
|
+
} catch (error2) {
|
|
4275
|
+
invoke_error_boundary(error2, this.#effect.parent);
|
|
4276
|
+
return null;
|
|
4277
|
+
} finally {
|
|
4278
|
+
this.#is_creating_fallback = false;
|
|
4279
|
+
}
|
|
4280
|
+
});
|
|
4281
|
+
});
|
|
4282
|
+
}
|
|
4283
|
+
}
|
|
4284
|
+
}
|
|
4285
|
+
function move_effect(effect, fragment) {
|
|
4286
|
+
var node = effect.nodes_start;
|
|
4287
|
+
var end = effect.nodes_end;
|
|
4288
|
+
while (node !== null) {
|
|
4289
|
+
var next2 = node === end ? null : get_next_sibling(node);
|
|
4290
|
+
fragment.append(node);
|
|
4291
|
+
node = next2;
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/deriveds.js
|
|
4296
|
+
var current_async_effect = null;
|
|
4297
|
+
var recent_async_deriveds = new Set;
|
|
4298
|
+
function destroy_derived_effects(derived) {
|
|
4299
|
+
var effects = derived.effects;
|
|
4300
|
+
if (effects !== null) {
|
|
4301
|
+
derived.effects = null;
|
|
4302
|
+
for (var i = 0;i < effects.length; i += 1) {
|
|
4303
|
+
destroy_effect(effects[i]);
|
|
4304
|
+
}
|
|
4305
|
+
}
|
|
4306
|
+
}
|
|
4307
|
+
var stack = [];
|
|
4308
|
+
function get_derived_parent_effect(derived) {
|
|
4309
|
+
var parent = derived.parent;
|
|
4310
|
+
while (parent !== null) {
|
|
4311
|
+
if ((parent.f & DERIVED) === 0) {
|
|
4312
|
+
return parent;
|
|
4313
|
+
}
|
|
4314
|
+
parent = parent.parent;
|
|
4315
|
+
}
|
|
4316
|
+
return null;
|
|
4317
|
+
}
|
|
4318
|
+
function execute_derived(derived) {
|
|
4319
|
+
var value;
|
|
4320
|
+
var prev_active_effect = active_effect;
|
|
4321
|
+
set_active_effect(get_derived_parent_effect(derived));
|
|
4322
|
+
if (true_default) {
|
|
4323
|
+
let prev_inspect_effects = inspect_effects;
|
|
4324
|
+
set_inspect_effects(new Set);
|
|
4325
|
+
try {
|
|
4326
|
+
if (stack.includes(derived)) {
|
|
4327
|
+
derived_references_self();
|
|
4328
|
+
}
|
|
4329
|
+
stack.push(derived);
|
|
4330
|
+
destroy_derived_effects(derived);
|
|
4331
|
+
value = update_reaction(derived);
|
|
4332
|
+
} finally {
|
|
4333
|
+
set_active_effect(prev_active_effect);
|
|
4334
|
+
set_inspect_effects(prev_inspect_effects);
|
|
4335
|
+
stack.pop();
|
|
4336
|
+
}
|
|
4337
|
+
} else {
|
|
4338
|
+
try {
|
|
4339
|
+
destroy_derived_effects(derived);
|
|
4340
|
+
value = update_reaction(derived);
|
|
4341
|
+
} finally {
|
|
4342
|
+
set_active_effect(prev_active_effect);
|
|
4343
|
+
}
|
|
4344
|
+
}
|
|
4345
|
+
return value;
|
|
4346
|
+
}
|
|
4347
|
+
function update_derived(derived) {
|
|
4348
|
+
var value = execute_derived(derived);
|
|
4349
|
+
if (!derived.equals(value)) {
|
|
4350
|
+
derived.v = value;
|
|
4351
|
+
derived.wv = increment_write_version();
|
|
4352
|
+
}
|
|
4353
|
+
if (is_destroying_effect)
|
|
4354
|
+
return;
|
|
4355
|
+
if (batch_deriveds !== null) {
|
|
4356
|
+
batch_deriveds.set(derived, derived.v);
|
|
4357
|
+
} else {
|
|
4358
|
+
var status = (skip_reaction || (derived.f & UNOWNED) !== 0) && derived.deps !== null ? MAYBE_DIRTY : CLEAN;
|
|
4359
|
+
set_signal_status(derived, status);
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
|
|
4363
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
4364
|
+
var batches = new Set;
|
|
4365
|
+
var current_batch = null;
|
|
4366
|
+
var batch_deriveds = null;
|
|
4367
|
+
var effect_pending_updates = new Set;
|
|
4368
|
+
var queued_root_effects = [];
|
|
4369
|
+
var last_scheduled_effect = null;
|
|
4370
|
+
var is_flushing = false;
|
|
4371
|
+
|
|
4372
|
+
class Batch {
|
|
4373
|
+
#current = new Map;
|
|
4374
|
+
#previous = new Map;
|
|
4375
|
+
#callbacks = new Set;
|
|
4376
|
+
#pending = 0;
|
|
4377
|
+
#deferred = null;
|
|
4378
|
+
#neutered = false;
|
|
4379
|
+
#async_effects = [];
|
|
4380
|
+
#boundary_async_effects = [];
|
|
4381
|
+
#render_effects = [];
|
|
4382
|
+
#effects = [];
|
|
4383
|
+
#block_effects = [];
|
|
4384
|
+
skipped_effects = new Set;
|
|
4385
|
+
#process(root_effects) {
|
|
4386
|
+
queued_root_effects = [];
|
|
4387
|
+
var current_values = null;
|
|
4388
|
+
if (batches.size > 1) {
|
|
4389
|
+
current_values = new Map;
|
|
4390
|
+
batch_deriveds = new Map;
|
|
4391
|
+
for (const [source2, current] of this.#current) {
|
|
4392
|
+
current_values.set(source2, { v: source2.v, wv: source2.wv });
|
|
4393
|
+
source2.v = current;
|
|
4394
|
+
}
|
|
4395
|
+
for (const batch of batches) {
|
|
4396
|
+
if (batch === this)
|
|
4397
|
+
continue;
|
|
4398
|
+
for (const [source2, previous] of batch.#previous) {
|
|
4399
|
+
if (!current_values.has(source2)) {
|
|
4400
|
+
current_values.set(source2, { v: source2.v, wv: source2.wv });
|
|
4401
|
+
source2.v = previous;
|
|
4402
|
+
}
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
}
|
|
4406
|
+
for (const root of root_effects) {
|
|
4407
|
+
this.#traverse_effect_tree(root);
|
|
4408
|
+
}
|
|
4409
|
+
if (this.#async_effects.length === 0 && this.#pending === 0) {
|
|
4410
|
+
var render_effects = this.#render_effects;
|
|
4411
|
+
var effects = this.#effects;
|
|
4412
|
+
this.#render_effects = [];
|
|
4413
|
+
this.#effects = [];
|
|
4414
|
+
this.#block_effects = [];
|
|
4415
|
+
this.#commit();
|
|
4416
|
+
flush_queued_effects(render_effects);
|
|
4417
|
+
flush_queued_effects(effects);
|
|
4418
|
+
this.#deferred?.resolve();
|
|
4419
|
+
} else {
|
|
4420
|
+
for (const e of this.#render_effects)
|
|
4421
|
+
set_signal_status(e, CLEAN);
|
|
4422
|
+
for (const e of this.#effects)
|
|
4423
|
+
set_signal_status(e, CLEAN);
|
|
4424
|
+
for (const e of this.#block_effects)
|
|
4425
|
+
set_signal_status(e, CLEAN);
|
|
4426
|
+
}
|
|
4427
|
+
if (current_values) {
|
|
4428
|
+
for (const [source2, { v, wv }] of current_values) {
|
|
4429
|
+
if (source2.wv <= wv) {
|
|
4430
|
+
source2.v = v;
|
|
4431
|
+
}
|
|
4432
|
+
}
|
|
4433
|
+
batch_deriveds = null;
|
|
4434
|
+
}
|
|
4435
|
+
for (const effect of this.#async_effects) {
|
|
4436
|
+
update_effect(effect);
|
|
4437
|
+
}
|
|
4438
|
+
for (const effect of this.#boundary_async_effects) {
|
|
4439
|
+
update_effect(effect);
|
|
4440
|
+
}
|
|
4441
|
+
this.#async_effects = [];
|
|
4442
|
+
this.#boundary_async_effects = [];
|
|
4443
|
+
}
|
|
4444
|
+
#traverse_effect_tree(root) {
|
|
4445
|
+
root.f ^= CLEAN;
|
|
4446
|
+
var effect = root.first;
|
|
4447
|
+
while (effect !== null) {
|
|
4448
|
+
var flags2 = effect.f;
|
|
4449
|
+
var is_branch = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
|
|
4450
|
+
var is_skippable_branch = is_branch && (flags2 & CLEAN) !== 0;
|
|
4451
|
+
var skip = is_skippable_branch || (flags2 & INERT) !== 0 || this.skipped_effects.has(effect);
|
|
4452
|
+
if (!skip && effect.fn !== null) {
|
|
4453
|
+
if (is_branch) {
|
|
4454
|
+
effect.f ^= CLEAN;
|
|
4455
|
+
} else if ((flags2 & EFFECT) !== 0) {
|
|
4456
|
+
this.#effects.push(effect);
|
|
4457
|
+
} else if (async_mode_flag && (flags2 & RENDER_EFFECT) !== 0) {
|
|
4458
|
+
this.#render_effects.push(effect);
|
|
4459
|
+
} else if (is_dirty(effect)) {
|
|
4460
|
+
if ((flags2 & ASYNC) !== 0) {
|
|
4461
|
+
var effects = effect.b?.pending ? this.#boundary_async_effects : this.#async_effects;
|
|
4462
|
+
effects.push(effect);
|
|
4463
|
+
} else {
|
|
4464
|
+
if ((effect.f & BLOCK_EFFECT) !== 0)
|
|
4465
|
+
this.#block_effects.push(effect);
|
|
4466
|
+
update_effect(effect);
|
|
4467
|
+
}
|
|
4468
|
+
}
|
|
4469
|
+
var child = effect.first;
|
|
4470
|
+
if (child !== null) {
|
|
4471
|
+
effect = child;
|
|
4472
|
+
continue;
|
|
4473
|
+
}
|
|
4474
|
+
}
|
|
4475
|
+
var parent = effect.parent;
|
|
4476
|
+
effect = effect.next;
|
|
4477
|
+
while (effect === null && parent !== null) {
|
|
4478
|
+
effect = parent.next;
|
|
4479
|
+
parent = parent.parent;
|
|
4480
|
+
}
|
|
4481
|
+
}
|
|
4482
|
+
}
|
|
4483
|
+
capture(source2, value) {
|
|
4484
|
+
if (!this.#previous.has(source2)) {
|
|
4485
|
+
this.#previous.set(source2, value);
|
|
4486
|
+
}
|
|
4487
|
+
this.#current.set(source2, source2.v);
|
|
4488
|
+
}
|
|
4489
|
+
activate() {
|
|
4490
|
+
current_batch = this;
|
|
4491
|
+
}
|
|
4492
|
+
deactivate() {
|
|
4493
|
+
current_batch = null;
|
|
4494
|
+
for (const update of effect_pending_updates) {
|
|
4495
|
+
effect_pending_updates.delete(update);
|
|
4496
|
+
update();
|
|
4497
|
+
if (current_batch !== null) {
|
|
4498
|
+
break;
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4501
|
+
}
|
|
4502
|
+
neuter() {
|
|
4503
|
+
this.#neutered = true;
|
|
4504
|
+
}
|
|
4505
|
+
flush() {
|
|
4506
|
+
if (queued_root_effects.length > 0) {
|
|
4507
|
+
this.flush_effects();
|
|
4508
|
+
} else {
|
|
4509
|
+
this.#commit();
|
|
4510
|
+
}
|
|
4511
|
+
if (current_batch !== this) {
|
|
4512
|
+
return;
|
|
4513
|
+
}
|
|
4514
|
+
if (this.#pending === 0) {
|
|
4515
|
+
batches.delete(this);
|
|
4516
|
+
}
|
|
4517
|
+
this.deactivate();
|
|
4518
|
+
}
|
|
4519
|
+
flush_effects() {
|
|
4520
|
+
var was_updating_effect = is_updating_effect;
|
|
4521
|
+
is_flushing = true;
|
|
4522
|
+
try {
|
|
4523
|
+
var flush_count = 0;
|
|
4524
|
+
set_is_updating_effect(true);
|
|
4525
|
+
while (queued_root_effects.length > 0) {
|
|
4526
|
+
if (flush_count++ > 1000) {
|
|
4527
|
+
if (true_default) {
|
|
4528
|
+
var updates = new Map;
|
|
4529
|
+
for (const source2 of this.#current.keys()) {
|
|
4530
|
+
for (const [stack2, update] of source2.updated ?? []) {
|
|
4531
|
+
var entry = updates.get(stack2);
|
|
4532
|
+
if (!entry) {
|
|
4533
|
+
entry = { error: update.error, count: 0 };
|
|
4534
|
+
updates.set(stack2, entry);
|
|
4535
|
+
}
|
|
4536
|
+
entry.count += update.count;
|
|
4537
|
+
}
|
|
4538
|
+
}
|
|
4539
|
+
for (const update of updates.values()) {
|
|
4540
|
+
console.error(update.error);
|
|
4541
|
+
}
|
|
4542
|
+
}
|
|
4543
|
+
infinite_loop_guard();
|
|
4544
|
+
}
|
|
4545
|
+
this.#process(queued_root_effects);
|
|
4546
|
+
old_values.clear();
|
|
4547
|
+
}
|
|
4548
|
+
} finally {
|
|
4549
|
+
is_flushing = false;
|
|
4550
|
+
set_is_updating_effect(was_updating_effect);
|
|
4551
|
+
last_scheduled_effect = null;
|
|
4552
|
+
}
|
|
4553
|
+
}
|
|
4554
|
+
#commit() {
|
|
4555
|
+
if (!this.#neutered) {
|
|
4556
|
+
for (const fn of this.#callbacks) {
|
|
4557
|
+
fn();
|
|
4558
|
+
}
|
|
4559
|
+
}
|
|
4560
|
+
this.#callbacks.clear();
|
|
4561
|
+
}
|
|
4562
|
+
increment() {
|
|
4563
|
+
this.#pending += 1;
|
|
4564
|
+
}
|
|
4565
|
+
decrement() {
|
|
4566
|
+
this.#pending -= 1;
|
|
4567
|
+
if (this.#pending === 0) {
|
|
4568
|
+
for (const e of this.#render_effects) {
|
|
4569
|
+
set_signal_status(e, DIRTY);
|
|
4570
|
+
schedule_effect(e);
|
|
4571
|
+
}
|
|
4572
|
+
for (const e of this.#effects) {
|
|
4573
|
+
set_signal_status(e, DIRTY);
|
|
4574
|
+
schedule_effect(e);
|
|
4575
|
+
}
|
|
4576
|
+
for (const e of this.#block_effects) {
|
|
4577
|
+
set_signal_status(e, DIRTY);
|
|
4578
|
+
schedule_effect(e);
|
|
4579
|
+
}
|
|
4580
|
+
this.#render_effects = [];
|
|
4581
|
+
this.#effects = [];
|
|
4582
|
+
this.flush();
|
|
4583
|
+
} else {
|
|
4584
|
+
this.deactivate();
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4587
|
+
add_callback(fn) {
|
|
4588
|
+
this.#callbacks.add(fn);
|
|
4589
|
+
}
|
|
4590
|
+
settled() {
|
|
4591
|
+
return (this.#deferred ??= deferred()).promise;
|
|
4592
|
+
}
|
|
4593
|
+
static ensure(autoflush = true) {
|
|
4594
|
+
if (current_batch === null) {
|
|
4595
|
+
const batch = current_batch = new Batch;
|
|
4596
|
+
batches.add(current_batch);
|
|
4597
|
+
if (autoflush) {
|
|
4598
|
+
queueMicrotask(() => {
|
|
4599
|
+
if (current_batch !== batch) {
|
|
4600
|
+
return;
|
|
4601
|
+
}
|
|
4602
|
+
batch.flush();
|
|
4603
|
+
});
|
|
4604
|
+
}
|
|
4605
|
+
}
|
|
4606
|
+
return current_batch;
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
function flushSync(fn) {
|
|
4610
|
+
if (async_mode_flag && active_effect !== null) {
|
|
4611
|
+
flush_sync_in_effect();
|
|
4612
|
+
}
|
|
4613
|
+
var result;
|
|
4614
|
+
const batch = Batch.ensure(false);
|
|
4615
|
+
if (fn) {
|
|
4616
|
+
batch.flush_effects();
|
|
4617
|
+
result = fn();
|
|
4618
|
+
}
|
|
4619
|
+
while (true) {
|
|
4620
|
+
flush_tasks();
|
|
4621
|
+
if (queued_root_effects.length === 0) {
|
|
4622
|
+
if (batch === current_batch) {
|
|
4623
|
+
batch.flush();
|
|
4624
|
+
}
|
|
4625
|
+
last_scheduled_effect = null;
|
|
4626
|
+
return result;
|
|
4627
|
+
}
|
|
4628
|
+
batch.flush_effects();
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4631
|
+
function infinite_loop_guard() {
|
|
4632
|
+
try {
|
|
4633
|
+
effect_update_depth_exceeded();
|
|
4634
|
+
} catch (error) {
|
|
4635
|
+
if (true_default) {
|
|
4636
|
+
define_property(error, "stack", { value: "" });
|
|
4637
|
+
}
|
|
4638
|
+
invoke_error_boundary(error, last_scheduled_effect);
|
|
4639
|
+
}
|
|
4640
|
+
}
|
|
4641
|
+
function flush_queued_effects(effects) {
|
|
4642
|
+
var length = effects.length;
|
|
4643
|
+
if (length === 0)
|
|
4644
|
+
return;
|
|
4645
|
+
for (var i = 0;i < length; i++) {
|
|
4646
|
+
var effect = effects[i];
|
|
4647
|
+
if ((effect.f & (DESTROYED | INERT)) === 0) {
|
|
4648
|
+
if (is_dirty(effect)) {
|
|
4649
|
+
var wv = write_version;
|
|
4650
|
+
update_effect(effect);
|
|
4651
|
+
if (effect.deps === null && effect.first === null && effect.nodes_start === null) {
|
|
4652
|
+
if (effect.teardown === null) {
|
|
4653
|
+
unlink_effect(effect);
|
|
4654
|
+
} else {
|
|
4655
|
+
effect.fn = null;
|
|
4656
|
+
}
|
|
4657
|
+
}
|
|
4658
|
+
if (write_version > wv && (effect.f & USER_EFFECT) !== 0) {
|
|
4659
|
+
break;
|
|
4660
|
+
}
|
|
4661
|
+
}
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
for (;i < length; i += 1) {
|
|
4665
|
+
schedule_effect(effects[i]);
|
|
4666
|
+
}
|
|
4667
|
+
}
|
|
4668
|
+
function schedule_effect(signal) {
|
|
4669
|
+
var effect = last_scheduled_effect = signal;
|
|
4670
|
+
while (effect.parent !== null) {
|
|
4671
|
+
effect = effect.parent;
|
|
4672
|
+
var flags2 = effect.f;
|
|
4673
|
+
if (is_flushing && effect === active_effect && (flags2 & BLOCK_EFFECT) !== 0) {
|
|
4674
|
+
return;
|
|
4675
|
+
}
|
|
4676
|
+
if ((flags2 & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
4677
|
+
if ((flags2 & CLEAN) === 0)
|
|
4678
|
+
return;
|
|
4679
|
+
effect.f ^= CLEAN;
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
queued_root_effects.push(effect);
|
|
4683
|
+
}
|
|
4684
|
+
|
|
4685
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
4686
|
+
var inspect_effects = new Set;
|
|
4687
|
+
var old_values = new Map;
|
|
4688
|
+
function set_inspect_effects(v) {
|
|
4689
|
+
inspect_effects = v;
|
|
4690
|
+
}
|
|
4691
|
+
var inspect_effects_deferred = false;
|
|
4692
|
+
function set_inspect_effects_deferred() {
|
|
4693
|
+
inspect_effects_deferred = true;
|
|
4694
|
+
}
|
|
4695
|
+
function source(v, stack2) {
|
|
4696
|
+
var signal = {
|
|
4697
|
+
f: 0,
|
|
4698
|
+
v,
|
|
4699
|
+
reactions: null,
|
|
4700
|
+
equals,
|
|
4701
|
+
rv: 0,
|
|
4702
|
+
wv: 0
|
|
4703
|
+
};
|
|
4704
|
+
if (true_default && tracing_mode_flag) {
|
|
4705
|
+
signal.created = stack2 ?? get_stack("CreatedAt");
|
|
4706
|
+
signal.updated = null;
|
|
4707
|
+
signal.set_during_effect = false;
|
|
4708
|
+
signal.trace = null;
|
|
4709
|
+
}
|
|
4710
|
+
return signal;
|
|
4711
|
+
}
|
|
4712
|
+
function state(v, stack2) {
|
|
4713
|
+
const s = source(v, stack2);
|
|
4714
|
+
push_reaction_value(s);
|
|
4715
|
+
return s;
|
|
4716
|
+
}
|
|
4717
|
+
function mutable_source(initial_value, immutable = false, trackable = true) {
|
|
4718
|
+
const s = source(initial_value);
|
|
4719
|
+
if (!immutable) {
|
|
4720
|
+
s.equals = safe_equals;
|
|
4721
|
+
}
|
|
4722
|
+
if (legacy_mode_flag && trackable && component_context !== null && component_context.l !== null) {
|
|
4723
|
+
(component_context.l.s ??= []).push(s);
|
|
4724
|
+
}
|
|
4725
|
+
return s;
|
|
4726
|
+
}
|
|
4727
|
+
function set(source2, value, should_proxy = false) {
|
|
4728
|
+
if (active_reaction !== null && (!untracking || (active_reaction.f & INSPECT_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | INSPECT_EFFECT)) !== 0 && !current_sources?.includes(source2)) {
|
|
4729
|
+
state_unsafe_mutation();
|
|
4730
|
+
}
|
|
4731
|
+
let new_value = should_proxy ? proxy(value) : value;
|
|
4732
|
+
if (true_default) {
|
|
4733
|
+
tag_proxy(new_value, source2.label);
|
|
4734
|
+
}
|
|
4735
|
+
return internal_set(source2, new_value);
|
|
4736
|
+
}
|
|
4737
|
+
function internal_set(source2, value) {
|
|
4738
|
+
if (!source2.equals(value)) {
|
|
4739
|
+
var old_value = source2.v;
|
|
4740
|
+
if (is_destroying_effect) {
|
|
4741
|
+
old_values.set(source2, value);
|
|
4742
|
+
} else {
|
|
4743
|
+
old_values.set(source2, old_value);
|
|
4744
|
+
}
|
|
4745
|
+
source2.v = value;
|
|
4746
|
+
const batch = Batch.ensure();
|
|
4747
|
+
batch.capture(source2, old_value);
|
|
4748
|
+
if (true_default) {
|
|
4749
|
+
if (tracing_mode_flag || active_effect !== null) {
|
|
4750
|
+
const error = get_stack("UpdatedAt");
|
|
4751
|
+
if (error !== null) {
|
|
4752
|
+
source2.updated ??= new Map;
|
|
4753
|
+
let entry = source2.updated.get(error.stack);
|
|
4754
|
+
if (!entry) {
|
|
4755
|
+
entry = { error, count: 0 };
|
|
4756
|
+
source2.updated.set(error.stack, entry);
|
|
4757
|
+
}
|
|
4758
|
+
entry.count++;
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
if (active_effect !== null) {
|
|
4762
|
+
source2.set_during_effect = true;
|
|
4763
|
+
}
|
|
4764
|
+
}
|
|
4765
|
+
if ((source2.f & DERIVED) !== 0) {
|
|
4766
|
+
if ((source2.f & DIRTY) !== 0) {
|
|
4767
|
+
execute_derived(source2);
|
|
4768
|
+
}
|
|
4769
|
+
set_signal_status(source2, (source2.f & UNOWNED) === 0 ? CLEAN : MAYBE_DIRTY);
|
|
4770
|
+
}
|
|
4771
|
+
source2.wv = increment_write_version();
|
|
4772
|
+
mark_reactions(source2, DIRTY);
|
|
4773
|
+
if (is_runes() && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
|
|
4774
|
+
if (untracked_writes === null) {
|
|
4775
|
+
set_untracked_writes([source2]);
|
|
4776
|
+
} else {
|
|
4777
|
+
untracked_writes.push(source2);
|
|
4778
|
+
}
|
|
4779
|
+
}
|
|
4780
|
+
if (true_default && inspect_effects.size > 0 && !inspect_effects_deferred) {
|
|
4781
|
+
flush_inspect_effects();
|
|
4782
|
+
}
|
|
4783
|
+
}
|
|
4784
|
+
return value;
|
|
4785
|
+
}
|
|
4786
|
+
function flush_inspect_effects() {
|
|
4787
|
+
inspect_effects_deferred = false;
|
|
4788
|
+
const inspects = Array.from(inspect_effects);
|
|
4789
|
+
for (const effect of inspects) {
|
|
4790
|
+
if ((effect.f & CLEAN) !== 0) {
|
|
4791
|
+
set_signal_status(effect, MAYBE_DIRTY);
|
|
4792
|
+
}
|
|
4793
|
+
if (is_dirty(effect)) {
|
|
4794
|
+
update_effect(effect);
|
|
4795
|
+
}
|
|
4796
|
+
}
|
|
4797
|
+
inspect_effects.clear();
|
|
4798
|
+
}
|
|
4799
|
+
function increment(source2) {
|
|
4800
|
+
set(source2, source2.v + 1);
|
|
4801
|
+
}
|
|
4802
|
+
function mark_reactions(signal, status) {
|
|
4803
|
+
var reactions = signal.reactions;
|
|
4804
|
+
if (reactions === null)
|
|
4805
|
+
return;
|
|
4806
|
+
var runes = is_runes();
|
|
4807
|
+
var length = reactions.length;
|
|
4808
|
+
for (var i = 0;i < length; i++) {
|
|
4809
|
+
var reaction = reactions[i];
|
|
4810
|
+
var flags2 = reaction.f;
|
|
4811
|
+
if ((flags2 & DIRTY) !== 0)
|
|
4812
|
+
continue;
|
|
4813
|
+
if (!runes && reaction === active_effect)
|
|
4814
|
+
continue;
|
|
4815
|
+
if (true_default && (flags2 & INSPECT_EFFECT) !== 0) {
|
|
4816
|
+
inspect_effects.add(reaction);
|
|
4817
|
+
continue;
|
|
4818
|
+
}
|
|
4819
|
+
set_signal_status(reaction, status);
|
|
4820
|
+
if ((flags2 & (CLEAN | UNOWNED)) !== 0) {
|
|
4821
|
+
if ((flags2 & DERIVED) !== 0) {
|
|
4822
|
+
mark_reactions(reaction, MAYBE_DIRTY);
|
|
4823
|
+
} else {
|
|
4824
|
+
schedule_effect(reaction);
|
|
4825
|
+
}
|
|
4826
|
+
}
|
|
4179
4827
|
}
|
|
4180
4828
|
}
|
|
4181
4829
|
|
|
4182
|
-
// node_modules/.pnpm/svelte@5.
|
|
4183
|
-
var is_flushing = false;
|
|
4184
|
-
var last_scheduled_effect = null;
|
|
4830
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/runtime.js
|
|
4185
4831
|
var is_updating_effect = false;
|
|
4832
|
+
function set_is_updating_effect(value) {
|
|
4833
|
+
is_updating_effect = value;
|
|
4834
|
+
}
|
|
4186
4835
|
var is_destroying_effect = false;
|
|
4187
4836
|
function set_is_destroying_effect(value) {
|
|
4188
4837
|
is_destroying_effect = value;
|
|
4189
4838
|
}
|
|
4190
|
-
var queued_root_effects = [];
|
|
4191
|
-
var dev_effect_stack = [];
|
|
4192
4839
|
var active_reaction = null;
|
|
4193
4840
|
var untracking = false;
|
|
4194
4841
|
function set_active_reaction(reaction) {
|
|
@@ -4200,7 +4847,7 @@ function set_active_effect(effect) {
|
|
|
4200
4847
|
}
|
|
4201
4848
|
var current_sources = null;
|
|
4202
4849
|
function push_reaction_value(value) {
|
|
4203
|
-
if (active_reaction !== null && active_reaction.f &
|
|
4850
|
+
if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & DERIVED) !== 0)) {
|
|
4204
4851
|
if (current_sources === null) {
|
|
4205
4852
|
current_sources = [value];
|
|
4206
4853
|
} else {
|
|
@@ -4225,39 +4872,39 @@ var captured_signals = null;
|
|
|
4225
4872
|
function increment_write_version() {
|
|
4226
4873
|
return ++write_version;
|
|
4227
4874
|
}
|
|
4228
|
-
function
|
|
4229
|
-
var
|
|
4230
|
-
if ((
|
|
4875
|
+
function is_dirty(reaction) {
|
|
4876
|
+
var flags2 = reaction.f;
|
|
4877
|
+
if ((flags2 & DIRTY) !== 0) {
|
|
4231
4878
|
return true;
|
|
4232
4879
|
}
|
|
4233
|
-
if ((
|
|
4880
|
+
if ((flags2 & MAYBE_DIRTY) !== 0) {
|
|
4234
4881
|
var dependencies = reaction.deps;
|
|
4235
|
-
var is_unowned = (
|
|
4882
|
+
var is_unowned = (flags2 & UNOWNED) !== 0;
|
|
4236
4883
|
if (dependencies !== null) {
|
|
4237
4884
|
var i;
|
|
4238
4885
|
var dependency;
|
|
4239
|
-
var is_disconnected = (
|
|
4886
|
+
var is_disconnected = (flags2 & DISCONNECTED) !== 0;
|
|
4240
4887
|
var is_unowned_connected = is_unowned && active_effect !== null && !skip_reaction;
|
|
4241
4888
|
var length = dependencies.length;
|
|
4242
|
-
if (is_disconnected || is_unowned_connected) {
|
|
4243
|
-
var
|
|
4244
|
-
var parent =
|
|
4889
|
+
if ((is_disconnected || is_unowned_connected) && (active_effect === null || (active_effect.f & DESTROYED) === 0)) {
|
|
4890
|
+
var derived2 = reaction;
|
|
4891
|
+
var parent = derived2.parent;
|
|
4245
4892
|
for (i = 0;i < length; i++) {
|
|
4246
4893
|
dependency = dependencies[i];
|
|
4247
|
-
if (is_disconnected || !dependency?.reactions?.includes(
|
|
4248
|
-
(dependency.reactions ??= []).push(
|
|
4894
|
+
if (is_disconnected || !dependency?.reactions?.includes(derived2)) {
|
|
4895
|
+
(dependency.reactions ??= []).push(derived2);
|
|
4249
4896
|
}
|
|
4250
4897
|
}
|
|
4251
4898
|
if (is_disconnected) {
|
|
4252
|
-
|
|
4899
|
+
derived2.f ^= DISCONNECTED;
|
|
4253
4900
|
}
|
|
4254
4901
|
if (is_unowned_connected && parent !== null && (parent.f & UNOWNED) === 0) {
|
|
4255
|
-
|
|
4902
|
+
derived2.f ^= UNOWNED;
|
|
4256
4903
|
}
|
|
4257
4904
|
}
|
|
4258
4905
|
for (i = 0;i < length; i++) {
|
|
4259
4906
|
dependency = dependencies[i];
|
|
4260
|
-
if (
|
|
4907
|
+
if (is_dirty(dependency)) {
|
|
4261
4908
|
update_derived(dependency);
|
|
4262
4909
|
}
|
|
4263
4910
|
if (dependency.wv > reaction.wv) {
|
|
@@ -4275,7 +4922,7 @@ function schedule_possible_effect_self_invalidation(signal, effect, root = true)
|
|
|
4275
4922
|
var reactions = signal.reactions;
|
|
4276
4923
|
if (reactions === null)
|
|
4277
4924
|
return;
|
|
4278
|
-
if (current_sources?.includes(signal)) {
|
|
4925
|
+
if (!async_mode_flag && current_sources?.includes(signal)) {
|
|
4279
4926
|
return;
|
|
4280
4927
|
}
|
|
4281
4928
|
for (var i = 0;i < reactions.length; i++) {
|
|
@@ -4302,22 +4949,22 @@ function update_reaction(reaction) {
|
|
|
4302
4949
|
var previous_component_context = component_context;
|
|
4303
4950
|
var previous_untracking = untracking;
|
|
4304
4951
|
var previous_update_version = update_version;
|
|
4305
|
-
var
|
|
4952
|
+
var flags2 = reaction.f;
|
|
4306
4953
|
new_deps = null;
|
|
4307
4954
|
skipped_deps = 0;
|
|
4308
4955
|
untracked_writes = null;
|
|
4309
|
-
skip_reaction = (
|
|
4310
|
-
active_reaction = (
|
|
4956
|
+
skip_reaction = (flags2 & UNOWNED) !== 0 && (untracking || !is_updating_effect || active_reaction === null);
|
|
4957
|
+
active_reaction = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
|
|
4311
4958
|
current_sources = null;
|
|
4312
4959
|
set_component_context(reaction.ctx);
|
|
4313
4960
|
untracking = false;
|
|
4314
4961
|
update_version = ++read_version;
|
|
4315
|
-
reaction.f |= EFFECT_IS_UPDATING;
|
|
4316
4962
|
if (reaction.ac !== null) {
|
|
4317
4963
|
reaction.ac.abort(STALE_REACTION);
|
|
4318
4964
|
reaction.ac = null;
|
|
4319
4965
|
}
|
|
4320
4966
|
try {
|
|
4967
|
+
reaction.f |= REACTION_IS_UPDATING;
|
|
4321
4968
|
var result = (0, reaction.fn)();
|
|
4322
4969
|
var deps = reaction.deps;
|
|
4323
4970
|
if (new_deps !== null) {
|
|
@@ -4331,7 +4978,7 @@ function update_reaction(reaction) {
|
|
|
4331
4978
|
} else {
|
|
4332
4979
|
reaction.deps = deps = new_deps;
|
|
4333
4980
|
}
|
|
4334
|
-
if (!skip_reaction || (
|
|
4981
|
+
if (!skip_reaction || (flags2 & DERIVED) !== 0 && reaction.reactions !== null) {
|
|
4335
4982
|
for (i = skipped_deps;i < deps.length; i++) {
|
|
4336
4983
|
(deps[i].reactions ??= []).push(reaction);
|
|
4337
4984
|
}
|
|
@@ -4355,10 +5002,14 @@ function update_reaction(reaction) {
|
|
|
4355
5002
|
}
|
|
4356
5003
|
}
|
|
4357
5004
|
}
|
|
5005
|
+
if ((reaction.f & ERROR_VALUE) !== 0) {
|
|
5006
|
+
reaction.f ^= ERROR_VALUE;
|
|
5007
|
+
}
|
|
4358
5008
|
return result;
|
|
4359
5009
|
} catch (error) {
|
|
4360
|
-
handle_error(error);
|
|
5010
|
+
return handle_error(error);
|
|
4361
5011
|
} finally {
|
|
5012
|
+
reaction.f ^= REACTION_IS_UPDATING;
|
|
4362
5013
|
new_deps = previous_deps;
|
|
4363
5014
|
skipped_deps = previous_skipped_deps;
|
|
4364
5015
|
untracked_writes = previous_untracked_writes;
|
|
@@ -4368,7 +5019,6 @@ function update_reaction(reaction) {
|
|
|
4368
5019
|
set_component_context(previous_component_context);
|
|
4369
5020
|
untracking = previous_untracking;
|
|
4370
5021
|
update_version = previous_update_version;
|
|
4371
|
-
reaction.f ^= EFFECT_IS_UPDATING;
|
|
4372
5022
|
}
|
|
4373
5023
|
}
|
|
4374
5024
|
function remove_reaction(signal, dependency) {
|
|
@@ -4403,8 +5053,8 @@ function remove_reactions(signal, start_index) {
|
|
|
4403
5053
|
}
|
|
4404
5054
|
}
|
|
4405
5055
|
function update_effect(effect) {
|
|
4406
|
-
var
|
|
4407
|
-
if ((
|
|
5056
|
+
var flags2 = effect.f;
|
|
5057
|
+
if ((flags2 & DESTROYED) !== 0) {
|
|
4408
5058
|
return;
|
|
4409
5059
|
}
|
|
4410
5060
|
set_signal_status(effect, CLEAN);
|
|
@@ -4419,14 +5069,14 @@ function update_effect(effect) {
|
|
|
4419
5069
|
set_dev_stack(effect.dev_stack ?? dev_stack);
|
|
4420
5070
|
}
|
|
4421
5071
|
try {
|
|
4422
|
-
if ((
|
|
5072
|
+
if ((flags2 & BLOCK_EFFECT) !== 0) {
|
|
4423
5073
|
destroy_block_effect_children(effect);
|
|
4424
5074
|
} else {
|
|
4425
5075
|
destroy_effect_children(effect);
|
|
4426
5076
|
}
|
|
4427
5077
|
execute_effect_teardown(effect);
|
|
4428
|
-
var
|
|
4429
|
-
effect.teardown = typeof
|
|
5078
|
+
var teardown = update_reaction(effect);
|
|
5079
|
+
effect.teardown = typeof teardown === "function" ? teardown : null;
|
|
4430
5080
|
effect.wv = write_version;
|
|
4431
5081
|
if (true_default && tracing_mode_flag && (effect.f & DIRTY) !== 0 && effect.deps !== null) {
|
|
4432
5082
|
for (var dep of effect.deps) {
|
|
@@ -4436,9 +5086,6 @@ function update_effect(effect) {
|
|
|
4436
5086
|
}
|
|
4437
5087
|
}
|
|
4438
5088
|
}
|
|
4439
|
-
if (true_default) {
|
|
4440
|
-
dev_effect_stack.push(effect);
|
|
4441
|
-
}
|
|
4442
5089
|
} finally {
|
|
4443
5090
|
is_updating_effect = was_updating_effect;
|
|
4444
5091
|
active_effect = previous_effect;
|
|
@@ -4448,210 +5095,71 @@ function update_effect(effect) {
|
|
|
4448
5095
|
}
|
|
4449
5096
|
}
|
|
4450
5097
|
}
|
|
4451
|
-
function log_effect_stack() {
|
|
4452
|
-
console.error("Last ten effects were: ", dev_effect_stack.slice(-10).map((d) => d.fn));
|
|
4453
|
-
dev_effect_stack = [];
|
|
4454
|
-
}
|
|
4455
|
-
function infinite_loop_guard() {
|
|
4456
|
-
try {
|
|
4457
|
-
effect_update_depth_exceeded();
|
|
4458
|
-
} catch (error) {
|
|
4459
|
-
if (true_default) {
|
|
4460
|
-
define_property(error, "stack", {
|
|
4461
|
-
value: ""
|
|
4462
|
-
});
|
|
4463
|
-
}
|
|
4464
|
-
if (last_scheduled_effect !== null) {
|
|
4465
|
-
if (true_default) {
|
|
4466
|
-
try {
|
|
4467
|
-
invoke_error_boundary(error, last_scheduled_effect);
|
|
4468
|
-
} catch (e) {
|
|
4469
|
-
log_effect_stack();
|
|
4470
|
-
throw e;
|
|
4471
|
-
}
|
|
4472
|
-
} else {
|
|
4473
|
-
invoke_error_boundary(error, last_scheduled_effect);
|
|
4474
|
-
}
|
|
4475
|
-
} else {
|
|
4476
|
-
if (true_default) {
|
|
4477
|
-
log_effect_stack();
|
|
4478
|
-
}
|
|
4479
|
-
throw error;
|
|
4480
|
-
}
|
|
4481
|
-
}
|
|
4482
|
-
}
|
|
4483
|
-
function flush_queued_root_effects() {
|
|
4484
|
-
var was_updating_effect = is_updating_effect;
|
|
4485
|
-
try {
|
|
4486
|
-
var flush_count = 0;
|
|
4487
|
-
is_updating_effect = true;
|
|
4488
|
-
while (queued_root_effects.length > 0) {
|
|
4489
|
-
if (flush_count++ > 1000) {
|
|
4490
|
-
infinite_loop_guard();
|
|
4491
|
-
}
|
|
4492
|
-
var root_effects = queued_root_effects;
|
|
4493
|
-
var length = root_effects.length;
|
|
4494
|
-
queued_root_effects = [];
|
|
4495
|
-
for (var i = 0;i < length; i++) {
|
|
4496
|
-
var collected_effects = process_effects(root_effects[i]);
|
|
4497
|
-
flush_queued_effects(collected_effects);
|
|
4498
|
-
}
|
|
4499
|
-
old_values.clear();
|
|
4500
|
-
}
|
|
4501
|
-
} finally {
|
|
4502
|
-
is_flushing = false;
|
|
4503
|
-
is_updating_effect = was_updating_effect;
|
|
4504
|
-
last_scheduled_effect = null;
|
|
4505
|
-
if (true_default) {
|
|
4506
|
-
dev_effect_stack = [];
|
|
4507
|
-
}
|
|
4508
|
-
}
|
|
4509
|
-
}
|
|
4510
|
-
function flush_queued_effects(effects) {
|
|
4511
|
-
var length = effects.length;
|
|
4512
|
-
if (length === 0)
|
|
4513
|
-
return;
|
|
4514
|
-
for (var i = 0;i < length; i++) {
|
|
4515
|
-
var effect = effects[i];
|
|
4516
|
-
if ((effect.f & (DESTROYED | INERT)) === 0) {
|
|
4517
|
-
if (check_dirtiness(effect)) {
|
|
4518
|
-
var wv = write_version;
|
|
4519
|
-
update_effect(effect);
|
|
4520
|
-
if (effect.deps === null && effect.first === null && effect.nodes_start === null) {
|
|
4521
|
-
if (effect.teardown === null) {
|
|
4522
|
-
unlink_effect(effect);
|
|
4523
|
-
} else {
|
|
4524
|
-
effect.fn = null;
|
|
4525
|
-
}
|
|
4526
|
-
}
|
|
4527
|
-
if (write_version > wv && (effect.f & USER_EFFECT) !== 0) {
|
|
4528
|
-
break;
|
|
4529
|
-
}
|
|
4530
|
-
}
|
|
4531
|
-
}
|
|
4532
|
-
}
|
|
4533
|
-
for (;i < length; i += 1) {
|
|
4534
|
-
schedule_effect(effects[i]);
|
|
4535
|
-
}
|
|
4536
|
-
}
|
|
4537
|
-
function schedule_effect(signal) {
|
|
4538
|
-
if (!is_flushing) {
|
|
4539
|
-
is_flushing = true;
|
|
4540
|
-
queueMicrotask(flush_queued_root_effects);
|
|
4541
|
-
}
|
|
4542
|
-
var effect = last_scheduled_effect = signal;
|
|
4543
|
-
while (effect.parent !== null) {
|
|
4544
|
-
effect = effect.parent;
|
|
4545
|
-
var flags = effect.f;
|
|
4546
|
-
if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
4547
|
-
if ((flags & CLEAN) === 0)
|
|
4548
|
-
return;
|
|
4549
|
-
effect.f ^= CLEAN;
|
|
4550
|
-
}
|
|
4551
|
-
}
|
|
4552
|
-
queued_root_effects.push(effect);
|
|
4553
|
-
}
|
|
4554
|
-
function process_effects(root) {
|
|
4555
|
-
var effects = [];
|
|
4556
|
-
var effect = root;
|
|
4557
|
-
while (effect !== null) {
|
|
4558
|
-
var flags = effect.f;
|
|
4559
|
-
var is_branch = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
|
|
4560
|
-
var is_skippable_branch = is_branch && (flags & CLEAN) !== 0;
|
|
4561
|
-
if (!is_skippable_branch && (flags & INERT) === 0) {
|
|
4562
|
-
if ((flags & EFFECT) !== 0) {
|
|
4563
|
-
effects.push(effect);
|
|
4564
|
-
} else if (is_branch) {
|
|
4565
|
-
effect.f ^= CLEAN;
|
|
4566
|
-
} else {
|
|
4567
|
-
if (check_dirtiness(effect)) {
|
|
4568
|
-
update_effect(effect);
|
|
4569
|
-
}
|
|
4570
|
-
}
|
|
4571
|
-
var child = effect.first;
|
|
4572
|
-
if (child !== null) {
|
|
4573
|
-
effect = child;
|
|
4574
|
-
continue;
|
|
4575
|
-
}
|
|
4576
|
-
}
|
|
4577
|
-
var parent = effect.parent;
|
|
4578
|
-
effect = effect.next;
|
|
4579
|
-
while (effect === null && parent !== null) {
|
|
4580
|
-
effect = parent.next;
|
|
4581
|
-
parent = parent.parent;
|
|
4582
|
-
}
|
|
4583
|
-
}
|
|
4584
|
-
return effects;
|
|
4585
|
-
}
|
|
4586
|
-
function flushSync(fn) {
|
|
4587
|
-
var result;
|
|
4588
|
-
if (fn) {
|
|
4589
|
-
is_flushing = true;
|
|
4590
|
-
flush_queued_root_effects();
|
|
4591
|
-
is_flushing = true;
|
|
4592
|
-
result = fn();
|
|
4593
|
-
}
|
|
4594
|
-
while (true) {
|
|
4595
|
-
flush_tasks();
|
|
4596
|
-
if (queued_root_effects.length === 0) {
|
|
4597
|
-
is_flushing = false;
|
|
4598
|
-
last_scheduled_effect = null;
|
|
4599
|
-
if (true_default) {
|
|
4600
|
-
dev_effect_stack = [];
|
|
4601
|
-
}
|
|
4602
|
-
return result;
|
|
4603
|
-
}
|
|
4604
|
-
is_flushing = true;
|
|
4605
|
-
flush_queued_root_effects();
|
|
4606
|
-
}
|
|
4607
|
-
}
|
|
4608
5098
|
function get(signal) {
|
|
4609
|
-
var
|
|
4610
|
-
var is_derived = (
|
|
5099
|
+
var flags2 = signal.f;
|
|
5100
|
+
var is_derived = (flags2 & DERIVED) !== 0;
|
|
4611
5101
|
if (captured_signals !== null) {
|
|
4612
5102
|
captured_signals.add(signal);
|
|
4613
5103
|
}
|
|
4614
5104
|
if (active_reaction !== null && !untracking) {
|
|
4615
|
-
|
|
5105
|
+
var destroyed = active_effect !== null && (active_effect.f & DESTROYED) !== 0;
|
|
5106
|
+
if (!destroyed && !current_sources?.includes(signal)) {
|
|
4616
5107
|
var deps = active_reaction.deps;
|
|
4617
|
-
if (
|
|
4618
|
-
signal.rv
|
|
4619
|
-
|
|
4620
|
-
skipped_deps
|
|
4621
|
-
|
|
4622
|
-
new_deps
|
|
4623
|
-
|
|
4624
|
-
new_deps.
|
|
5108
|
+
if ((active_reaction.f & REACTION_IS_UPDATING) !== 0) {
|
|
5109
|
+
if (signal.rv < read_version) {
|
|
5110
|
+
signal.rv = read_version;
|
|
5111
|
+
if (new_deps === null && deps !== null && deps[skipped_deps] === signal) {
|
|
5112
|
+
skipped_deps++;
|
|
5113
|
+
} else if (new_deps === null) {
|
|
5114
|
+
new_deps = [signal];
|
|
5115
|
+
} else if (!skip_reaction || !new_deps.includes(signal)) {
|
|
5116
|
+
new_deps.push(signal);
|
|
5117
|
+
}
|
|
5118
|
+
}
|
|
5119
|
+
} else {
|
|
5120
|
+
(active_reaction.deps ??= []).push(signal);
|
|
5121
|
+
var reactions = signal.reactions;
|
|
5122
|
+
if (reactions === null) {
|
|
5123
|
+
signal.reactions = [active_reaction];
|
|
5124
|
+
} else if (!reactions.includes(active_reaction)) {
|
|
5125
|
+
reactions.push(active_reaction);
|
|
4625
5126
|
}
|
|
4626
5127
|
}
|
|
4627
5128
|
}
|
|
4628
5129
|
} else if (is_derived && signal.deps === null && signal.effects === null) {
|
|
4629
|
-
var
|
|
4630
|
-
var parent =
|
|
5130
|
+
var derived2 = signal;
|
|
5131
|
+
var parent = derived2.parent;
|
|
4631
5132
|
if (parent !== null && (parent.f & UNOWNED) === 0) {
|
|
4632
|
-
|
|
4633
|
-
}
|
|
4634
|
-
}
|
|
4635
|
-
if (is_derived && !is_destroying_effect) {
|
|
4636
|
-
derived = signal;
|
|
4637
|
-
if (check_dirtiness(derived)) {
|
|
4638
|
-
update_derived(derived);
|
|
5133
|
+
derived2.f ^= UNOWNED;
|
|
4639
5134
|
}
|
|
4640
5135
|
}
|
|
4641
|
-
if (true_default
|
|
4642
|
-
if (
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
var
|
|
4648
|
-
if (
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
5136
|
+
if (true_default) {
|
|
5137
|
+
if (current_async_effect) {
|
|
5138
|
+
var tracking = (current_async_effect.f & REACTION_IS_UPDATING) !== 0;
|
|
5139
|
+
var was_read = current_async_effect.deps?.includes(signal);
|
|
5140
|
+
if (!tracking && !untracking && !was_read) {
|
|
5141
|
+
await_reactivity_loss(signal.label);
|
|
5142
|
+
var trace = get_stack("TracedAt");
|
|
5143
|
+
if (trace)
|
|
5144
|
+
console.warn(trace);
|
|
5145
|
+
}
|
|
5146
|
+
}
|
|
5147
|
+
recent_async_deriveds.delete(signal);
|
|
5148
|
+
if (tracing_mode_flag && !untracking && tracing_expressions !== null && active_reaction !== null && tracing_expressions.reaction === active_reaction) {
|
|
5149
|
+
if (signal.trace) {
|
|
5150
|
+
signal.trace();
|
|
5151
|
+
} else {
|
|
5152
|
+
trace = get_stack("TracedAt");
|
|
5153
|
+
if (trace) {
|
|
5154
|
+
var entry = tracing_expressions.entries.get(signal);
|
|
5155
|
+
if (entry === undefined) {
|
|
5156
|
+
entry = { traces: [] };
|
|
5157
|
+
tracing_expressions.entries.set(signal, entry);
|
|
5158
|
+
}
|
|
5159
|
+
var last = entry.traces[entry.traces.length - 1];
|
|
5160
|
+
if (trace.stack !== last?.stack) {
|
|
5161
|
+
entry.traces.push(trace);
|
|
5162
|
+
}
|
|
4655
5163
|
}
|
|
4656
5164
|
}
|
|
4657
5165
|
}
|
|
@@ -4661,23 +5169,34 @@ function get(signal) {
|
|
|
4661
5169
|
return old_values.get(signal);
|
|
4662
5170
|
}
|
|
4663
5171
|
if (is_derived) {
|
|
4664
|
-
|
|
4665
|
-
var value =
|
|
4666
|
-
if ((
|
|
4667
|
-
value = execute_derived(
|
|
5172
|
+
derived2 = signal;
|
|
5173
|
+
var value = derived2.v;
|
|
5174
|
+
if ((derived2.f & CLEAN) !== 0 || depends_on_old_values(derived2)) {
|
|
5175
|
+
value = execute_derived(derived2);
|
|
4668
5176
|
}
|
|
4669
|
-
old_values.set(
|
|
5177
|
+
old_values.set(derived2, value);
|
|
4670
5178
|
return value;
|
|
4671
5179
|
}
|
|
5180
|
+
} else if (is_derived) {
|
|
5181
|
+
derived2 = signal;
|
|
5182
|
+
if (batch_deriveds?.has(derived2)) {
|
|
5183
|
+
return batch_deriveds.get(derived2);
|
|
5184
|
+
}
|
|
5185
|
+
if (is_dirty(derived2)) {
|
|
5186
|
+
update_derived(derived2);
|
|
5187
|
+
}
|
|
5188
|
+
}
|
|
5189
|
+
if ((signal.f & ERROR_VALUE) !== 0) {
|
|
5190
|
+
throw signal.v;
|
|
4672
5191
|
}
|
|
4673
5192
|
return signal.v;
|
|
4674
5193
|
}
|
|
4675
|
-
function depends_on_old_values(
|
|
4676
|
-
if (
|
|
5194
|
+
function depends_on_old_values(derived2) {
|
|
5195
|
+
if (derived2.v === UNINITIALIZED)
|
|
4677
5196
|
return true;
|
|
4678
|
-
if (
|
|
5197
|
+
if (derived2.deps === null)
|
|
4679
5198
|
return false;
|
|
4680
|
-
for (const dep of
|
|
5199
|
+
for (const dep of derived2.deps) {
|
|
4681
5200
|
if (old_values.has(dep)) {
|
|
4682
5201
|
return true;
|
|
4683
5202
|
}
|
|
@@ -4687,12 +5206,21 @@ function depends_on_old_values(derived) {
|
|
|
4687
5206
|
}
|
|
4688
5207
|
return false;
|
|
4689
5208
|
}
|
|
5209
|
+
function untrack(fn) {
|
|
5210
|
+
var previous_untracking = untracking;
|
|
5211
|
+
try {
|
|
5212
|
+
untracking = true;
|
|
5213
|
+
return fn();
|
|
5214
|
+
} finally {
|
|
5215
|
+
untracking = previous_untracking;
|
|
5216
|
+
}
|
|
5217
|
+
}
|
|
4690
5218
|
var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
|
|
4691
5219
|
function set_signal_status(signal, status) {
|
|
4692
5220
|
signal.f = signal.f & STATUS_MASK | status;
|
|
4693
5221
|
}
|
|
4694
5222
|
|
|
4695
|
-
// node_modules/.pnpm/svelte@5.
|
|
5223
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
4696
5224
|
function push_effect(effect, parent_effect) {
|
|
4697
5225
|
var parent_last = parent_effect.last;
|
|
4698
5226
|
if (parent_last === null) {
|
|
@@ -4710,6 +5238,9 @@ function create_effect(type, fn, sync, push2 = true) {
|
|
|
4710
5238
|
parent = parent.parent;
|
|
4711
5239
|
}
|
|
4712
5240
|
}
|
|
5241
|
+
if (parent !== null && (parent.f & INERT) !== 0) {
|
|
5242
|
+
type |= INERT;
|
|
5243
|
+
}
|
|
4713
5244
|
var effect = {
|
|
4714
5245
|
ctx: component_context,
|
|
4715
5246
|
deps: null,
|
|
@@ -4742,7 +5273,7 @@ function create_effect(type, fn, sync, push2 = true) {
|
|
|
4742
5273
|
} else if (fn !== null) {
|
|
4743
5274
|
schedule_effect(effect);
|
|
4744
5275
|
}
|
|
4745
|
-
var inert = sync && effect.deps === null && effect.first === null && effect.nodes_start === null && effect.teardown === null && (effect.f &
|
|
5276
|
+
var inert = sync && effect.deps === null && effect.first === null && effect.nodes_start === null && effect.teardown === null && (effect.f & EFFECT_PRESERVED) === 0;
|
|
4746
5277
|
if (!inert && push2) {
|
|
4747
5278
|
if (parent !== null) {
|
|
4748
5279
|
push_effect(effect, parent);
|
|
@@ -4754,16 +5285,21 @@ function create_effect(type, fn, sync, push2 = true) {
|
|
|
4754
5285
|
}
|
|
4755
5286
|
return effect;
|
|
4756
5287
|
}
|
|
5288
|
+
function effect_tracking() {
|
|
5289
|
+
return active_reaction !== null && !untracking;
|
|
5290
|
+
}
|
|
4757
5291
|
function create_user_effect(fn) {
|
|
4758
5292
|
return create_effect(EFFECT | USER_EFFECT, fn, false);
|
|
4759
5293
|
}
|
|
4760
5294
|
function effect_root(fn) {
|
|
5295
|
+
Batch.ensure();
|
|
4761
5296
|
const effect = create_effect(ROOT_EFFECT, fn, true);
|
|
4762
5297
|
return () => {
|
|
4763
5298
|
destroy_effect(effect);
|
|
4764
5299
|
};
|
|
4765
5300
|
}
|
|
4766
5301
|
function component_root(fn) {
|
|
5302
|
+
Batch.ensure();
|
|
4767
5303
|
const effect = create_effect(ROOT_EFFECT, fn, true);
|
|
4768
5304
|
return (options2 = {}) => {
|
|
4769
5305
|
return new Promise((fulfil) => {
|
|
@@ -4779,28 +5315,28 @@ function component_root(fn) {
|
|
|
4779
5315
|
});
|
|
4780
5316
|
};
|
|
4781
5317
|
}
|
|
4782
|
-
function render_effect(fn) {
|
|
4783
|
-
return create_effect(RENDER_EFFECT, fn, true);
|
|
5318
|
+
function render_effect(fn, flags2 = 0) {
|
|
5319
|
+
return create_effect(RENDER_EFFECT | flags2, fn, true);
|
|
4784
5320
|
}
|
|
4785
|
-
function block2(fn,
|
|
4786
|
-
var effect = create_effect(
|
|
5321
|
+
function block2(fn, flags2 = 0) {
|
|
5322
|
+
var effect = create_effect(BLOCK_EFFECT | flags2, fn, true);
|
|
4787
5323
|
if (true_default) {
|
|
4788
5324
|
effect.dev_stack = dev_stack;
|
|
4789
5325
|
}
|
|
4790
5326
|
return effect;
|
|
4791
5327
|
}
|
|
4792
5328
|
function branch(fn, push2 = true) {
|
|
4793
|
-
return create_effect(
|
|
5329
|
+
return create_effect(BRANCH_EFFECT, fn, true, push2);
|
|
4794
5330
|
}
|
|
4795
5331
|
function execute_effect_teardown(effect) {
|
|
4796
|
-
var
|
|
4797
|
-
if (
|
|
5332
|
+
var teardown = effect.teardown;
|
|
5333
|
+
if (teardown !== null) {
|
|
4798
5334
|
const previously_destroying_effect = is_destroying_effect;
|
|
4799
5335
|
const previous_reaction = active_reaction;
|
|
4800
5336
|
set_is_destroying_effect(true);
|
|
4801
5337
|
set_active_reaction(null);
|
|
4802
5338
|
try {
|
|
4803
|
-
|
|
5339
|
+
teardown.call(null);
|
|
4804
5340
|
} finally {
|
|
4805
5341
|
set_is_destroying_effect(previously_destroying_effect);
|
|
4806
5342
|
set_active_reaction(previous_reaction);
|
|
@@ -4917,7 +5453,7 @@ function pause_children(effect, transitions, local) {
|
|
|
4917
5453
|
child = sibling;
|
|
4918
5454
|
}
|
|
4919
5455
|
}
|
|
4920
|
-
// node_modules/.pnpm/svelte@5.
|
|
5456
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/utils.js
|
|
4921
5457
|
var DOM_BOOLEAN_ATTRIBUTES = [
|
|
4922
5458
|
"allowfullscreen",
|
|
4923
5459
|
"async",
|
|
@@ -4986,14 +5522,15 @@ var RUNES = [
|
|
|
4986
5522
|
"$effect.pre",
|
|
4987
5523
|
"$effect.tracking",
|
|
4988
5524
|
"$effect.root",
|
|
5525
|
+
"$effect.pending",
|
|
4989
5526
|
"$inspect",
|
|
4990
5527
|
"$inspect().with",
|
|
4991
5528
|
"$inspect.trace",
|
|
4992
5529
|
"$host"
|
|
4993
5530
|
];
|
|
4994
|
-
// node_modules/.pnpm/svelte@5.
|
|
5531
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dev/css.js
|
|
4995
5532
|
var all_styles = new Map;
|
|
4996
|
-
// node_modules/.pnpm/svelte@5.
|
|
5533
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
4997
5534
|
var all_registered_events = new Set;
|
|
4998
5535
|
var root_event_handles = new Set;
|
|
4999
5536
|
function handle_event_propagation(event) {
|
|
@@ -5074,13 +5611,13 @@ function handle_event_propagation(event) {
|
|
|
5074
5611
|
}
|
|
5075
5612
|
}
|
|
5076
5613
|
|
|
5077
|
-
// node_modules/.pnpm/svelte@5.
|
|
5614
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js
|
|
5078
5615
|
var head_anchor;
|
|
5079
5616
|
function reset_head_anchor() {
|
|
5080
5617
|
head_anchor = undefined;
|
|
5081
5618
|
}
|
|
5082
5619
|
|
|
5083
|
-
// node_modules/.pnpm/svelte@5.
|
|
5620
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/template.js
|
|
5084
5621
|
function assign_nodes(start, end) {
|
|
5085
5622
|
var effect = active_effect;
|
|
5086
5623
|
if (effect.nodes_start === null) {
|
|
@@ -5100,7 +5637,7 @@ function append(anchor, dom) {
|
|
|
5100
5637
|
anchor.before(dom);
|
|
5101
5638
|
}
|
|
5102
5639
|
|
|
5103
|
-
// node_modules/.pnpm/svelte@5.
|
|
5640
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/render.js
|
|
5104
5641
|
var should_intro = true;
|
|
5105
5642
|
function mount(component, options2) {
|
|
5106
5643
|
return _mount(component, options2);
|
|
@@ -5226,7 +5763,7 @@ function unmount(component, options2) {
|
|
|
5226
5763
|
}
|
|
5227
5764
|
return Promise.resolve();
|
|
5228
5765
|
}
|
|
5229
|
-
// node_modules/.pnpm/svelte@5.
|
|
5766
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/shared/attributes.js
|
|
5230
5767
|
var replacements = {
|
|
5231
5768
|
translate: new Map([
|
|
5232
5769
|
[true, "yes"],
|
|
@@ -5236,22 +5773,22 @@ var replacements = {
|
|
|
5236
5773
|
var whitespace = [...`
|
|
5237
5774
|
\r\f \v\uFEFF`];
|
|
5238
5775
|
|
|
5239
|
-
// node_modules/.pnpm/svelte@5.
|
|
5776
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
5240
5777
|
var CLASS = Symbol("class");
|
|
5241
5778
|
var STYLE = Symbol("style");
|
|
5242
5779
|
var IS_CUSTOM_ELEMENT = Symbol("is custom element");
|
|
5243
5780
|
var IS_HTML = Symbol("is html");
|
|
5244
5781
|
var setters_cache = new Map;
|
|
5245
|
-
// node_modules/.pnpm/svelte@5.
|
|
5782
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/timing.js
|
|
5246
5783
|
var now = true_default ? () => performance.now() : () => Date.now();
|
|
5247
5784
|
var raf = {
|
|
5248
5785
|
tick: (_) => (true_default ? requestAnimationFrame : noop)(_),
|
|
5249
5786
|
now: () => now(),
|
|
5250
5787
|
tasks: new Set
|
|
5251
5788
|
};
|
|
5252
|
-
// node_modules/.pnpm/svelte@5.
|
|
5789
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js
|
|
5253
5790
|
var pending = new Set;
|
|
5254
|
-
// node_modules/.pnpm/svelte@5.
|
|
5791
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
|
|
5255
5792
|
class ResizeObserverSingleton {
|
|
5256
5793
|
#listeners = new WeakMap;
|
|
5257
5794
|
#observer;
|
|
@@ -5285,111 +5822,9 @@ class ResizeObserverSingleton {
|
|
|
5285
5822
|
}));
|
|
5286
5823
|
}
|
|
5287
5824
|
}
|
|
5288
|
-
// node_modules/.pnpm/svelte@5.
|
|
5825
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
5289
5826
|
var IS_UNMOUNTED = Symbol();
|
|
5290
|
-
// node_modules/.pnpm/svelte@5.
|
|
5291
|
-
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT;
|
|
5292
|
-
class Boundary {
|
|
5293
|
-
#anchor;
|
|
5294
|
-
#hydrate_open;
|
|
5295
|
-
#props;
|
|
5296
|
-
#children;
|
|
5297
|
-
#effect;
|
|
5298
|
-
#main_effect = null;
|
|
5299
|
-
#failed_effect = null;
|
|
5300
|
-
#is_creating_fallback = false;
|
|
5301
|
-
constructor(node, props, children) {
|
|
5302
|
-
this.#anchor = node;
|
|
5303
|
-
this.#props = props;
|
|
5304
|
-
this.#children = children;
|
|
5305
|
-
this.#hydrate_open = hydrate_node;
|
|
5306
|
-
this.#effect = block2(() => {
|
|
5307
|
-
active_effect.b = this;
|
|
5308
|
-
if (hydrating) {
|
|
5309
|
-
hydrate_next();
|
|
5310
|
-
}
|
|
5311
|
-
try {
|
|
5312
|
-
this.#main_effect = branch(() => children(this.#anchor));
|
|
5313
|
-
} catch (error) {
|
|
5314
|
-
this.error(error);
|
|
5315
|
-
}
|
|
5316
|
-
}, flags);
|
|
5317
|
-
if (hydrating) {
|
|
5318
|
-
this.#anchor = hydrate_node;
|
|
5319
|
-
}
|
|
5320
|
-
}
|
|
5321
|
-
#run(fn) {
|
|
5322
|
-
var previous_effect = active_effect;
|
|
5323
|
-
var previous_reaction = active_reaction;
|
|
5324
|
-
var previous_ctx = component_context;
|
|
5325
|
-
set_active_effect(this.#effect);
|
|
5326
|
-
set_active_reaction(this.#effect);
|
|
5327
|
-
set_component_context(this.#effect.ctx);
|
|
5328
|
-
try {
|
|
5329
|
-
return fn();
|
|
5330
|
-
} finally {
|
|
5331
|
-
set_active_effect(previous_effect);
|
|
5332
|
-
set_active_reaction(previous_reaction);
|
|
5333
|
-
set_component_context(previous_ctx);
|
|
5334
|
-
}
|
|
5335
|
-
}
|
|
5336
|
-
error(error) {
|
|
5337
|
-
var onerror = this.#props.onerror;
|
|
5338
|
-
let failed = this.#props.failed;
|
|
5339
|
-
const reset = () => {
|
|
5340
|
-
if (this.#failed_effect !== null) {
|
|
5341
|
-
pause_effect(this.#failed_effect, () => {
|
|
5342
|
-
this.#failed_effect = null;
|
|
5343
|
-
});
|
|
5344
|
-
}
|
|
5345
|
-
this.#main_effect = this.#run(() => {
|
|
5346
|
-
this.#is_creating_fallback = false;
|
|
5347
|
-
return branch(() => this.#children(this.#anchor));
|
|
5348
|
-
});
|
|
5349
|
-
};
|
|
5350
|
-
if (this.#is_creating_fallback || !onerror && !failed) {
|
|
5351
|
-
throw error;
|
|
5352
|
-
}
|
|
5353
|
-
var previous_reaction = active_reaction;
|
|
5354
|
-
try {
|
|
5355
|
-
set_active_reaction(null);
|
|
5356
|
-
onerror?.(error, reset);
|
|
5357
|
-
} finally {
|
|
5358
|
-
set_active_reaction(previous_reaction);
|
|
5359
|
-
}
|
|
5360
|
-
if (this.#main_effect) {
|
|
5361
|
-
destroy_effect(this.#main_effect);
|
|
5362
|
-
this.#main_effect = null;
|
|
5363
|
-
}
|
|
5364
|
-
if (this.#failed_effect) {
|
|
5365
|
-
destroy_effect(this.#failed_effect);
|
|
5366
|
-
this.#failed_effect = null;
|
|
5367
|
-
}
|
|
5368
|
-
if (hydrating) {
|
|
5369
|
-
set_hydrate_node(this.#hydrate_open);
|
|
5370
|
-
next();
|
|
5371
|
-
set_hydrate_node(remove_nodes());
|
|
5372
|
-
}
|
|
5373
|
-
if (failed) {
|
|
5374
|
-
queue_micro_task(() => {
|
|
5375
|
-
this.#failed_effect = this.#run(() => {
|
|
5376
|
-
this.#is_creating_fallback = true;
|
|
5377
|
-
try {
|
|
5378
|
-
return branch(() => {
|
|
5379
|
-
failed(this.#anchor, () => error, () => reset);
|
|
5380
|
-
});
|
|
5381
|
-
} catch (error2) {
|
|
5382
|
-
invoke_error_boundary(error2, this.#effect.parent);
|
|
5383
|
-
return null;
|
|
5384
|
-
} finally {
|
|
5385
|
-
this.#is_creating_fallback = false;
|
|
5386
|
-
}
|
|
5387
|
-
});
|
|
5388
|
-
});
|
|
5389
|
-
}
|
|
5390
|
-
}
|
|
5391
|
-
}
|
|
5392
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/legacy/legacy-client.js
|
|
5827
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/legacy/legacy-client.js
|
|
5393
5828
|
function createClassComponent(options2) {
|
|
5394
5829
|
return new Svelte4Component(options2);
|
|
5395
5830
|
}
|
|
@@ -5426,7 +5861,7 @@ class Svelte4Component {
|
|
|
5426
5861
|
intro: options2.intro ?? false,
|
|
5427
5862
|
recover: options2.recover
|
|
5428
5863
|
});
|
|
5429
|
-
if (!options2?.props?.$$host || options2.sync === false) {
|
|
5864
|
+
if (!async_mode_flag && (!options2?.props?.$$host || options2.sync === false)) {
|
|
5430
5865
|
flushSync();
|
|
5431
5866
|
}
|
|
5432
5867
|
this.#events = props.$$events;
|
|
@@ -5466,7 +5901,7 @@ class Svelte4Component {
|
|
|
5466
5901
|
}
|
|
5467
5902
|
}
|
|
5468
5903
|
|
|
5469
|
-
// node_modules/.pnpm/svelte@5.
|
|
5904
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
|
|
5470
5905
|
var SvelteElement;
|
|
5471
5906
|
if (typeof HTMLElement === "function") {
|
|
5472
5907
|
SvelteElement = class extends HTMLElement {
|
|
@@ -5641,7 +6076,7 @@ function get_custom_elements_slots(element) {
|
|
|
5641
6076
|
});
|
|
5642
6077
|
return result;
|
|
5643
6078
|
}
|
|
5644
|
-
// node_modules/.pnpm/svelte@5.
|
|
6079
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/index-client.js
|
|
5645
6080
|
if (true_default) {
|
|
5646
6081
|
let throw_rune_error = function(rune) {
|
|
5647
6082
|
if (!(rune in globalThis)) {
|
|
@@ -5668,7 +6103,7 @@ if (true_default) {
|
|
|
5668
6103
|
throw_rune_error("$bindable");
|
|
5669
6104
|
}
|
|
5670
6105
|
|
|
5671
|
-
// node_modules/.pnpm/svelte@5.
|
|
6106
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/store/shared/index.js
|
|
5672
6107
|
var subscriber_queue = [];
|
|
5673
6108
|
function writable(value, start = noop) {
|
|
5674
6109
|
let stop = null;
|
|
@@ -6089,9 +6524,9 @@ var util;
|
|
|
6089
6524
|
};
|
|
6090
6525
|
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
6091
6526
|
const keys = [];
|
|
6092
|
-
for (const
|
|
6093
|
-
if (Object.prototype.hasOwnProperty.call(object,
|
|
6094
|
-
keys.push(
|
|
6527
|
+
for (const key2 in object) {
|
|
6528
|
+
if (Object.prototype.hasOwnProperty.call(object, key2)) {
|
|
6529
|
+
keys.push(key2);
|
|
6095
6530
|
}
|
|
6096
6531
|
}
|
|
6097
6532
|
return keys;
|
|
@@ -6487,10 +6922,10 @@ class ParseStatus {
|
|
|
6487
6922
|
static async mergeObjectAsync(status, pairs) {
|
|
6488
6923
|
const syncPairs = [];
|
|
6489
6924
|
for (const pair of pairs) {
|
|
6490
|
-
const
|
|
6925
|
+
const key2 = await pair.key;
|
|
6491
6926
|
const value = await pair.value;
|
|
6492
6927
|
syncPairs.push({
|
|
6493
|
-
key,
|
|
6928
|
+
key: key2,
|
|
6494
6929
|
value
|
|
6495
6930
|
});
|
|
6496
6931
|
}
|
|
@@ -6499,17 +6934,17 @@ class ParseStatus {
|
|
|
6499
6934
|
static mergeObjectSync(status, pairs) {
|
|
6500
6935
|
const finalObject = {};
|
|
6501
6936
|
for (const pair of pairs) {
|
|
6502
|
-
const { key, value } = pair;
|
|
6503
|
-
if (
|
|
6937
|
+
const { key: key2, value } = pair;
|
|
6938
|
+
if (key2.status === "aborted")
|
|
6504
6939
|
return INVALID;
|
|
6505
6940
|
if (value.status === "aborted")
|
|
6506
6941
|
return INVALID;
|
|
6507
|
-
if (
|
|
6942
|
+
if (key2.status === "dirty")
|
|
6508
6943
|
status.dirty();
|
|
6509
6944
|
if (value.status === "dirty")
|
|
6510
6945
|
status.dirty();
|
|
6511
|
-
if (
|
|
6512
|
-
finalObject[
|
|
6946
|
+
if (key2.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
|
|
6947
|
+
finalObject[key2.value] = value.value;
|
|
6513
6948
|
}
|
|
6514
6949
|
}
|
|
6515
6950
|
return { status: status.value, value: finalObject };
|
|
@@ -6533,12 +6968,12 @@ var errorUtil;
|
|
|
6533
6968
|
|
|
6534
6969
|
// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
|
|
6535
6970
|
class ParseInputLazyPath {
|
|
6536
|
-
constructor(parent, value, path,
|
|
6971
|
+
constructor(parent, value, path, key2) {
|
|
6537
6972
|
this._cachedPath = [];
|
|
6538
6973
|
this.parent = parent;
|
|
6539
6974
|
this.data = value;
|
|
6540
6975
|
this._path = path;
|
|
6541
|
-
this._key =
|
|
6976
|
+
this._key = key2;
|
|
6542
6977
|
}
|
|
6543
6978
|
get path() {
|
|
6544
6979
|
if (!this._cachedPath.length) {
|
|
@@ -8294,9 +8729,9 @@ ZodArray.create = (schema, params) => {
|
|
|
8294
8729
|
function deepPartialify(schema) {
|
|
8295
8730
|
if (schema instanceof ZodObject) {
|
|
8296
8731
|
const newShape = {};
|
|
8297
|
-
for (const
|
|
8298
|
-
const fieldSchema = schema.shape[
|
|
8299
|
-
newShape[
|
|
8732
|
+
for (const key2 in schema.shape) {
|
|
8733
|
+
const fieldSchema = schema.shape[key2];
|
|
8734
|
+
newShape[key2] = ZodOptional.create(deepPartialify(fieldSchema));
|
|
8300
8735
|
}
|
|
8301
8736
|
return new ZodObject({
|
|
8302
8737
|
...schema._def,
|
|
@@ -8348,29 +8783,29 @@ class ZodObject extends ZodType {
|
|
|
8348
8783
|
const { shape, keys: shapeKeys } = this._getCached();
|
|
8349
8784
|
const extraKeys = [];
|
|
8350
8785
|
if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
|
|
8351
|
-
for (const
|
|
8352
|
-
if (!shapeKeys.includes(
|
|
8353
|
-
extraKeys.push(
|
|
8786
|
+
for (const key2 in ctx.data) {
|
|
8787
|
+
if (!shapeKeys.includes(key2)) {
|
|
8788
|
+
extraKeys.push(key2);
|
|
8354
8789
|
}
|
|
8355
8790
|
}
|
|
8356
8791
|
}
|
|
8357
8792
|
const pairs = [];
|
|
8358
|
-
for (const
|
|
8359
|
-
const keyValidator = shape[
|
|
8360
|
-
const value = ctx.data[
|
|
8793
|
+
for (const key2 of shapeKeys) {
|
|
8794
|
+
const keyValidator = shape[key2];
|
|
8795
|
+
const value = ctx.data[key2];
|
|
8361
8796
|
pairs.push({
|
|
8362
|
-
key: { status: "valid", value:
|
|
8363
|
-
value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path,
|
|
8364
|
-
alwaysSet:
|
|
8797
|
+
key: { status: "valid", value: key2 },
|
|
8798
|
+
value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key2)),
|
|
8799
|
+
alwaysSet: key2 in ctx.data
|
|
8365
8800
|
});
|
|
8366
8801
|
}
|
|
8367
8802
|
if (this._def.catchall instanceof ZodNever) {
|
|
8368
8803
|
const unknownKeys = this._def.unknownKeys;
|
|
8369
8804
|
if (unknownKeys === "passthrough") {
|
|
8370
|
-
for (const
|
|
8805
|
+
for (const key2 of extraKeys) {
|
|
8371
8806
|
pairs.push({
|
|
8372
|
-
key: { status: "valid", value:
|
|
8373
|
-
value: { status: "valid", value: ctx.data[
|
|
8807
|
+
key: { status: "valid", value: key2 },
|
|
8808
|
+
value: { status: "valid", value: ctx.data[key2] }
|
|
8374
8809
|
});
|
|
8375
8810
|
}
|
|
8376
8811
|
} else if (unknownKeys === "strict") {
|
|
@@ -8386,12 +8821,12 @@ class ZodObject extends ZodType {
|
|
|
8386
8821
|
}
|
|
8387
8822
|
} else {
|
|
8388
8823
|
const catchall = this._def.catchall;
|
|
8389
|
-
for (const
|
|
8390
|
-
const value = ctx.data[
|
|
8824
|
+
for (const key2 of extraKeys) {
|
|
8825
|
+
const value = ctx.data[key2];
|
|
8391
8826
|
pairs.push({
|
|
8392
|
-
key: { status: "valid", value:
|
|
8393
|
-
value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path,
|
|
8394
|
-
alwaysSet:
|
|
8827
|
+
key: { status: "valid", value: key2 },
|
|
8828
|
+
value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key2)),
|
|
8829
|
+
alwaysSet: key2 in ctx.data
|
|
8395
8830
|
});
|
|
8396
8831
|
}
|
|
8397
8832
|
}
|
|
@@ -8399,10 +8834,10 @@ class ZodObject extends ZodType {
|
|
|
8399
8834
|
return Promise.resolve().then(async () => {
|
|
8400
8835
|
const syncPairs = [];
|
|
8401
8836
|
for (const pair of pairs) {
|
|
8402
|
-
const
|
|
8837
|
+
const key2 = await pair.key;
|
|
8403
8838
|
const value = await pair.value;
|
|
8404
8839
|
syncPairs.push({
|
|
8405
|
-
key,
|
|
8840
|
+
key: key2,
|
|
8406
8841
|
value,
|
|
8407
8842
|
alwaysSet: pair.alwaysSet
|
|
8408
8843
|
});
|
|
@@ -8470,8 +8905,8 @@ class ZodObject extends ZodType {
|
|
|
8470
8905
|
});
|
|
8471
8906
|
return merged;
|
|
8472
8907
|
}
|
|
8473
|
-
setKey(
|
|
8474
|
-
return this.augment({ [
|
|
8908
|
+
setKey(key2, schema) {
|
|
8909
|
+
return this.augment({ [key2]: schema });
|
|
8475
8910
|
}
|
|
8476
8911
|
catchall(index2) {
|
|
8477
8912
|
return new ZodObject({
|
|
@@ -8481,9 +8916,9 @@ class ZodObject extends ZodType {
|
|
|
8481
8916
|
}
|
|
8482
8917
|
pick(mask) {
|
|
8483
8918
|
const shape = {};
|
|
8484
|
-
for (const
|
|
8485
|
-
if (mask[
|
|
8486
|
-
shape[
|
|
8919
|
+
for (const key2 of util.objectKeys(mask)) {
|
|
8920
|
+
if (mask[key2] && this.shape[key2]) {
|
|
8921
|
+
shape[key2] = this.shape[key2];
|
|
8487
8922
|
}
|
|
8488
8923
|
}
|
|
8489
8924
|
return new ZodObject({
|
|
@@ -8493,9 +8928,9 @@ class ZodObject extends ZodType {
|
|
|
8493
8928
|
}
|
|
8494
8929
|
omit(mask) {
|
|
8495
8930
|
const shape = {};
|
|
8496
|
-
for (const
|
|
8497
|
-
if (!mask[
|
|
8498
|
-
shape[
|
|
8931
|
+
for (const key2 of util.objectKeys(this.shape)) {
|
|
8932
|
+
if (!mask[key2]) {
|
|
8933
|
+
shape[key2] = this.shape[key2];
|
|
8499
8934
|
}
|
|
8500
8935
|
}
|
|
8501
8936
|
return new ZodObject({
|
|
@@ -8508,12 +8943,12 @@ class ZodObject extends ZodType {
|
|
|
8508
8943
|
}
|
|
8509
8944
|
partial(mask) {
|
|
8510
8945
|
const newShape = {};
|
|
8511
|
-
for (const
|
|
8512
|
-
const fieldSchema = this.shape[
|
|
8513
|
-
if (mask && !mask[
|
|
8514
|
-
newShape[
|
|
8946
|
+
for (const key2 of util.objectKeys(this.shape)) {
|
|
8947
|
+
const fieldSchema = this.shape[key2];
|
|
8948
|
+
if (mask && !mask[key2]) {
|
|
8949
|
+
newShape[key2] = fieldSchema;
|
|
8515
8950
|
} else {
|
|
8516
|
-
newShape[
|
|
8951
|
+
newShape[key2] = fieldSchema.optional();
|
|
8517
8952
|
}
|
|
8518
8953
|
}
|
|
8519
8954
|
return new ZodObject({
|
|
@@ -8523,16 +8958,16 @@ class ZodObject extends ZodType {
|
|
|
8523
8958
|
}
|
|
8524
8959
|
required(mask) {
|
|
8525
8960
|
const newShape = {};
|
|
8526
|
-
for (const
|
|
8527
|
-
if (mask && !mask[
|
|
8528
|
-
newShape[
|
|
8961
|
+
for (const key2 of util.objectKeys(this.shape)) {
|
|
8962
|
+
if (mask && !mask[key2]) {
|
|
8963
|
+
newShape[key2] = this.shape[key2];
|
|
8529
8964
|
} else {
|
|
8530
|
-
const fieldSchema = this.shape[
|
|
8965
|
+
const fieldSchema = this.shape[key2];
|
|
8531
8966
|
let newField = fieldSchema;
|
|
8532
8967
|
while (newField instanceof ZodOptional) {
|
|
8533
8968
|
newField = newField._def.innerType;
|
|
8534
8969
|
}
|
|
8535
|
-
newShape[
|
|
8970
|
+
newShape[key2] = newField;
|
|
8536
8971
|
}
|
|
8537
8972
|
}
|
|
8538
8973
|
return new ZodObject({
|
|
@@ -8770,14 +9205,14 @@ function mergeValues(a, b) {
|
|
|
8770
9205
|
return { valid: true, data: a };
|
|
8771
9206
|
} else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
|
|
8772
9207
|
const bKeys = util.objectKeys(b);
|
|
8773
|
-
const sharedKeys = util.objectKeys(a).filter((
|
|
9208
|
+
const sharedKeys = util.objectKeys(a).filter((key2) => bKeys.indexOf(key2) !== -1);
|
|
8774
9209
|
const newObj = { ...a, ...b };
|
|
8775
|
-
for (const
|
|
8776
|
-
const sharedValue = mergeValues(a[
|
|
9210
|
+
for (const key2 of sharedKeys) {
|
|
9211
|
+
const sharedValue = mergeValues(a[key2], b[key2]);
|
|
8777
9212
|
if (!sharedValue.valid) {
|
|
8778
9213
|
return { valid: false };
|
|
8779
9214
|
}
|
|
8780
|
-
newObj[
|
|
9215
|
+
newObj[key2] = sharedValue.data;
|
|
8781
9216
|
}
|
|
8782
9217
|
return { valid: true, data: newObj };
|
|
8783
9218
|
} else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
|
|
@@ -8944,11 +9379,11 @@ class ZodRecord extends ZodType {
|
|
|
8944
9379
|
const pairs = [];
|
|
8945
9380
|
const keyType = this._def.keyType;
|
|
8946
9381
|
const valueType = this._def.valueType;
|
|
8947
|
-
for (const
|
|
9382
|
+
for (const key2 in ctx.data) {
|
|
8948
9383
|
pairs.push({
|
|
8949
|
-
key: keyType._parse(new ParseInputLazyPath(ctx,
|
|
8950
|
-
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[
|
|
8951
|
-
alwaysSet:
|
|
9384
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key2, ctx.path, key2)),
|
|
9385
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key2], ctx.path, key2)),
|
|
9386
|
+
alwaysSet: key2 in ctx.data
|
|
8952
9387
|
});
|
|
8953
9388
|
}
|
|
8954
9389
|
if (ctx.common.async) {
|
|
@@ -8997,9 +9432,9 @@ class ZodMap extends ZodType {
|
|
|
8997
9432
|
}
|
|
8998
9433
|
const keyType = this._def.keyType;
|
|
8999
9434
|
const valueType = this._def.valueType;
|
|
9000
|
-
const pairs = [...ctx.data.entries()].map(([
|
|
9435
|
+
const pairs = [...ctx.data.entries()].map(([key2, value], index2) => {
|
|
9001
9436
|
return {
|
|
9002
|
-
key: keyType._parse(new ParseInputLazyPath(ctx,
|
|
9437
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key2, ctx.path, [index2, "key"])),
|
|
9003
9438
|
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index2, "value"]))
|
|
9004
9439
|
};
|
|
9005
9440
|
});
|
|
@@ -9007,30 +9442,30 @@ class ZodMap extends ZodType {
|
|
|
9007
9442
|
const finalMap = new Map;
|
|
9008
9443
|
return Promise.resolve().then(async () => {
|
|
9009
9444
|
for (const pair of pairs) {
|
|
9010
|
-
const
|
|
9445
|
+
const key2 = await pair.key;
|
|
9011
9446
|
const value = await pair.value;
|
|
9012
|
-
if (
|
|
9447
|
+
if (key2.status === "aborted" || value.status === "aborted") {
|
|
9013
9448
|
return INVALID;
|
|
9014
9449
|
}
|
|
9015
|
-
if (
|
|
9450
|
+
if (key2.status === "dirty" || value.status === "dirty") {
|
|
9016
9451
|
status.dirty();
|
|
9017
9452
|
}
|
|
9018
|
-
finalMap.set(
|
|
9453
|
+
finalMap.set(key2.value, value.value);
|
|
9019
9454
|
}
|
|
9020
9455
|
return { status: status.value, value: finalMap };
|
|
9021
9456
|
});
|
|
9022
9457
|
} else {
|
|
9023
9458
|
const finalMap = new Map;
|
|
9024
9459
|
for (const pair of pairs) {
|
|
9025
|
-
const
|
|
9460
|
+
const key2 = pair.key;
|
|
9026
9461
|
const value = pair.value;
|
|
9027
|
-
if (
|
|
9462
|
+
if (key2.status === "aborted" || value.status === "aborted") {
|
|
9028
9463
|
return INVALID;
|
|
9029
9464
|
}
|
|
9030
|
-
if (
|
|
9465
|
+
if (key2.status === "dirty" || value.status === "dirty") {
|
|
9031
9466
|
status.dirty();
|
|
9032
9467
|
}
|
|
9033
|
-
finalMap.set(
|
|
9468
|
+
finalMap.set(key2.value, value.value);
|
|
9034
9469
|
}
|
|
9035
9470
|
return { status: status.value, value: finalMap };
|
|
9036
9471
|
}
|
|
@@ -9919,10 +10354,11 @@ var coerce = {
|
|
|
9919
10354
|
};
|
|
9920
10355
|
var NEVER = INVALID;
|
|
9921
10356
|
// src/lib/config/schemas/theme-schema.ts
|
|
9922
|
-
var
|
|
10357
|
+
var sizeDefinitionClampSchema = exports_external.object({
|
|
9923
10358
|
minRem: exports_external.number(),
|
|
9924
10359
|
maxRem: exports_external.number()
|
|
9925
10360
|
});
|
|
10361
|
+
var sizeDefinitionSchema = sizeDefinitionClampSchema.or(exports_external.string());
|
|
9926
10362
|
var colorSchema = exports_external.object({
|
|
9927
10363
|
0: exports_external.string().optional(),
|
|
9928
10364
|
50: exports_external.string(),
|
|
@@ -9985,6 +10421,7 @@ var svgsSchema = exports_external.record(exports_external.enum([
|
|
|
9985
10421
|
"avatar",
|
|
9986
10422
|
"openChat",
|
|
9987
10423
|
"speechInput",
|
|
10424
|
+
"listUnordered",
|
|
9988
10425
|
"lightMode",
|
|
9989
10426
|
"darkMode"
|
|
9990
10427
|
]), exports_external.string());
|
|
@@ -9996,6 +10433,7 @@ var tokensSchema = exports_external.object({
|
|
|
9996
10433
|
highlight: colorSchema,
|
|
9997
10434
|
grey: colorSchema
|
|
9998
10435
|
}),
|
|
10436
|
+
base: exports_external.object({}),
|
|
9999
10437
|
components: exports_external.record(exports_external.string(), componentSchema),
|
|
10000
10438
|
svgs: svgsSchema
|
|
10001
10439
|
});
|
|
@@ -10068,11 +10506,11 @@ var themeSchema2 = objectType({
|
|
|
10068
10506
|
}).optional()
|
|
10069
10507
|
}).optional(),
|
|
10070
10508
|
font: objectType({
|
|
10071
|
-
size:
|
|
10509
|
+
size: sizeDefinitionClampSchema.optional(),
|
|
10072
10510
|
family: stringType().optional(),
|
|
10073
10511
|
urls: arrayType(stringType()).optional()
|
|
10074
10512
|
}).optional(),
|
|
10075
|
-
borderRadius:
|
|
10513
|
+
borderRadius: sizeDefinitionClampSchema.optional(),
|
|
10076
10514
|
fineGrained: fineGrainedThemeSchema.optional()
|
|
10077
10515
|
});
|
|
10078
10516
|
|
|
@@ -10110,13 +10548,16 @@ var translationSchema = exports_external.object({
|
|
|
10110
10548
|
predefinedQuestions: exports_external.string(),
|
|
10111
10549
|
introductionTitle: exports_external.string(),
|
|
10112
10550
|
introductionDisclaimer: exports_external.string().optional(),
|
|
10113
|
-
referenceTitle: exports_external.string(),
|
|
10114
10551
|
chatInputPlaceholder: exports_external.string(),
|
|
10115
10552
|
chatInputPlaceholderListening: exports_external.string().optional(),
|
|
10116
10553
|
chatInputSubmit: exports_external.string(),
|
|
10117
10554
|
chatInputStartListening: exports_external.string(),
|
|
10118
10555
|
chatInputStopListening: exports_external.string(),
|
|
10119
10556
|
referenceLink: exports_external.string(),
|
|
10557
|
+
referencesDisplay: exports_external.string(),
|
|
10558
|
+
referencesHide: exports_external.string(),
|
|
10559
|
+
referencesTitle: exports_external.string(),
|
|
10560
|
+
referencesFurtherTitle: exports_external.string(),
|
|
10120
10561
|
newChat: exports_external.string(),
|
|
10121
10562
|
maintenanceModeError: exports_external.string(),
|
|
10122
10563
|
messageBotLoading: exports_external.string(),
|
|
@@ -10228,17 +10669,17 @@ class ServerStorage {
|
|
|
10228
10669
|
clear() {
|
|
10229
10670
|
storage.clear();
|
|
10230
10671
|
}
|
|
10231
|
-
getItem(
|
|
10232
|
-
return storage.get(
|
|
10672
|
+
getItem(key2) {
|
|
10673
|
+
return storage.get(key2) || null;
|
|
10233
10674
|
}
|
|
10234
10675
|
key(index2) {
|
|
10235
10676
|
return Array.from(storage.keys())[index2] || null;
|
|
10236
10677
|
}
|
|
10237
|
-
removeItem(
|
|
10238
|
-
storage.delete(
|
|
10678
|
+
removeItem(key2) {
|
|
10679
|
+
storage.delete(key2);
|
|
10239
10680
|
}
|
|
10240
|
-
setItem(
|
|
10241
|
-
storage.set(
|
|
10681
|
+
setItem(key2, value) {
|
|
10682
|
+
storage.set(key2, String(value));
|
|
10242
10683
|
}
|
|
10243
10684
|
}
|
|
10244
10685
|
var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
|