@pie-element/venn-classification 0.1.1-next.14 → 0.1.1-next.16
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/dist/author/index.js +494 -379
- package/dist/author/index.js.map +1 -1
- package/dist/browser/{VennClassification-D7bxMPcn.js → VennClassification-BPq_DgNM.js} +1062 -973
- package/dist/browser/VennClassification-BPq_DgNM.js.map +1 -0
- package/dist/browser/author/index.js +3341 -3318
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/{VennClassification-D7bxMPcn.js → VennClassification-BPq_DgNM.js} +1062 -973
- package/dist/browser/editor-runtime/VennClassification-BPq_DgNM.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +1 -1
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +1 -1
- package/dist/delivery/index.js +291 -205
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.js +6 -6
- package/package.json +1 -1
- package/dist/browser/VennClassification-D7bxMPcn.js.map +0 -1
- package/dist/browser/editor-runtime/VennClassification-D7bxMPcn.js.map +0 -1
package/dist/delivery/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
|
|
2
2
|
if (typeof window !== "undefined") {
|
|
3
3
|
var _window$__svelte, _window;
|
|
4
4
|
((_window$__svelte = (_window = window).__svelte ?? (_window.__svelte = {})).v ?? (_window$__svelte.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
7
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
|
|
8
8
|
var HYDRATION_ERROR = {};
|
|
9
9
|
var UNINITIALIZED = Symbol("uninitialized");
|
|
10
10
|
var NAMESPACE_SVG = "http://www.w3.org/2000/svg";
|
|
11
11
|
var NAMESPACE_MATHML = "http://www.w3.org/1998/Math/MathML";
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
13
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/shared/utils.js
|
|
14
14
|
var is_array = Array.isArray;
|
|
15
15
|
var index_of = Array.prototype.indexOf;
|
|
16
16
|
var includes = Array.prototype.includes;
|
|
@@ -121,13 +121,6 @@ var EFFECT_TRANSPARENT = 65536;
|
|
|
121
121
|
var EFFECT_PRESERVED = 1 << 19;
|
|
122
122
|
var USER_EFFECT = 1 << 20;
|
|
123
123
|
var EFFECT_OFFSCREEN = 1 << 25;
|
|
124
|
-
/**
|
|
125
|
-
* Tells that we marked this derived and its reactions as visited during the "mark as (maybe) dirty"-phase.
|
|
126
|
-
* Will be lifted during execution of the derived and during checking its dirty state (both are necessary
|
|
127
|
-
* because a derived might be checked but not executed). This is a pure performance optimization flag and
|
|
128
|
-
* should not be used for any other purpose!
|
|
129
|
-
*/
|
|
130
|
-
var WAS_MARKED = 65536;
|
|
131
124
|
var REACTION_IS_UPDATING = 1 << 21;
|
|
132
125
|
var ASYNC = 1 << 22;
|
|
133
126
|
var ERROR_VALUE = 1 << 23;
|
|
@@ -169,7 +162,7 @@ function svelte_boundary_reset_noop() {
|
|
|
169
162
|
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
|
170
163
|
}
|
|
171
164
|
//#endregion
|
|
172
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
165
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
173
166
|
/** @import { TemplateNode } from '#client' */
|
|
174
167
|
/**
|
|
175
168
|
* Use this variable to guard everything related to hydration code so it can be treeshaken out
|
|
@@ -248,7 +241,7 @@ function read_hydration_instruction(node) {
|
|
|
248
241
|
return node.data;
|
|
249
242
|
}
|
|
250
243
|
//#endregion
|
|
251
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
244
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
252
245
|
/** @import { Equals } from '#client' */
|
|
253
246
|
/** @type {Equals} */
|
|
254
247
|
function equals(value) {
|
|
@@ -275,7 +268,7 @@ function lifecycle_outside_component(name) {
|
|
|
275
268
|
throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
|
|
276
269
|
}
|
|
277
270
|
//#endregion
|
|
278
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
271
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
|
|
279
272
|
/**
|
|
280
273
|
* Cannot create a `$derived(...)` with an `await` expression outside of an effect tree
|
|
281
274
|
* @returns {never}
|
|
@@ -367,13 +360,13 @@ function svelte_boundary_reset_onerror() {
|
|
|
367
360
|
throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);
|
|
368
361
|
}
|
|
369
362
|
//#endregion
|
|
370
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
363
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/flags/index.js
|
|
371
364
|
/** True if experimental.async=true */
|
|
372
365
|
var async_mode_flag = false;
|
|
373
366
|
/** True if we're not certain that we only have Svelte 5 code in the compilation */
|
|
374
367
|
var legacy_mode_flag = false;
|
|
375
368
|
//#endregion
|
|
376
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
369
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
|
|
377
370
|
/** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
|
|
378
371
|
/** @type {ComponentContext | null} */
|
|
379
372
|
var component_context = null;
|
|
@@ -433,7 +426,7 @@ function is_runes() {
|
|
|
433
426
|
return !legacy_mode_flag || component_context !== null && component_context.l === null;
|
|
434
427
|
}
|
|
435
428
|
//#endregion
|
|
436
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
429
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
437
430
|
/** @type {Array<() => void>} */
|
|
438
431
|
var micro_tasks = [];
|
|
439
432
|
function run_micro_tasks() {
|
|
@@ -460,7 +453,7 @@ function flush_tasks() {
|
|
|
460
453
|
while (micro_tasks.length > 0) run_micro_tasks();
|
|
461
454
|
}
|
|
462
455
|
//#endregion
|
|
463
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
456
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
464
457
|
/** @import { Derived, Signal } from '#client' */
|
|
465
458
|
var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
|
|
466
459
|
/**
|
|
@@ -479,22 +472,8 @@ function update_derived_status(derived) {
|
|
|
479
472
|
else set_signal_status(derived, MAYBE_DIRTY);
|
|
480
473
|
}
|
|
481
474
|
//#endregion
|
|
482
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
483
|
-
/** @import {
|
|
484
|
-
/**
|
|
485
|
-
* @param {Value[] | null} deps
|
|
486
|
-
*/
|
|
487
|
-
function clear_marked(deps) {
|
|
488
|
-
if (deps === null) return;
|
|
489
|
-
for (const dep of deps) {
|
|
490
|
-
if ((dep.f & 2) === 0 || (dep.f & 65536) === 0) continue;
|
|
491
|
-
dep.f ^= WAS_MARKED;
|
|
492
|
-
clear_marked(
|
|
493
|
-
/** @type {Derived} */
|
|
494
|
-
dep.deps
|
|
495
|
-
);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
475
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
476
|
+
/** @import { Effect } from '#client' */
|
|
498
477
|
/**
|
|
499
478
|
* @param {Effect} effect
|
|
500
479
|
* @param {Set<Effect>} dirty_effects
|
|
@@ -503,41 +482,10 @@ function clear_marked(deps) {
|
|
|
503
482
|
function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
|
|
504
483
|
if ((effect.f & 2048) !== 0) dirty_effects.add(effect);
|
|
505
484
|
else if ((effect.f & 4096) !== 0) maybe_dirty_effects.add(effect);
|
|
506
|
-
clear_marked(effect.deps);
|
|
507
485
|
set_signal_status(effect, CLEAN);
|
|
508
486
|
}
|
|
509
487
|
//#endregion
|
|
510
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
511
|
-
/**
|
|
512
|
-
* We set this to `true` when updating a store so that we correctly
|
|
513
|
-
* schedule effects if the update takes place inside a `$:` effect
|
|
514
|
-
*/
|
|
515
|
-
var legacy_is_updating_store = false;
|
|
516
|
-
/**
|
|
517
|
-
* Whether or not the prop currently being read is a store binding, as in
|
|
518
|
-
* `<Child bind:x={$y} />`. If it is, we treat the prop as mutable even in
|
|
519
|
-
* runes mode, and skip `binding_property_non_reactive` validation
|
|
520
|
-
*/
|
|
521
|
-
var is_store_binding = false;
|
|
522
|
-
/**
|
|
523
|
-
* Returns a tuple that indicates whether `fn()` reads a prop that is a store binding.
|
|
524
|
-
* Used to prevent `binding_property_non_reactive` validation false positives and
|
|
525
|
-
* ensure that these props are treated as mutable even in runes mode
|
|
526
|
-
* @template T
|
|
527
|
-
* @param {() => T} fn
|
|
528
|
-
* @returns {[T, boolean]}
|
|
529
|
-
*/
|
|
530
|
-
function capture_store_binding(fn) {
|
|
531
|
-
var previous_is_store_binding = is_store_binding;
|
|
532
|
-
try {
|
|
533
|
-
is_store_binding = false;
|
|
534
|
-
return [fn(), is_store_binding];
|
|
535
|
-
} finally {
|
|
536
|
-
is_store_binding = previous_is_store_binding;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
//#endregion
|
|
540
|
-
//#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
488
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
541
489
|
/**
|
|
542
490
|
* @template T
|
|
543
491
|
* @param {() => T} fn
|
|
@@ -555,7 +503,7 @@ function without_reactive_context(fn) {
|
|
|
555
503
|
}
|
|
556
504
|
}
|
|
557
505
|
//#endregion
|
|
558
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
506
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
559
507
|
/** @import { Blocker, Effect, Source, Value } from '#client' */
|
|
560
508
|
/**
|
|
561
509
|
* @param {Blocker[]} blockers
|
|
@@ -788,7 +736,6 @@ function execute_derived(derived) {
|
|
|
788
736
|
}
|
|
789
737
|
set_active_effect(parent);
|
|
790
738
|
try {
|
|
791
|
-
derived.f &= ~WAS_MARKED;
|
|
792
739
|
destroy_derived_effects(derived);
|
|
793
740
|
value = update_reaction(derived);
|
|
794
741
|
} finally {
|
|
@@ -875,7 +822,7 @@ function _classPrivateFieldGet2(s, a) {
|
|
|
875
822
|
return s.get(_assertClassBrand(s, a));
|
|
876
823
|
}
|
|
877
824
|
//#endregion
|
|
878
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
825
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
879
826
|
/** @import { Fork } from 'svelte' */
|
|
880
827
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
881
828
|
var _Batch;
|
|
@@ -926,7 +873,7 @@ var _discard_callbacks = /* @__PURE__ */ new WeakMap();
|
|
|
926
873
|
var _pending = /* @__PURE__ */ new WeakMap();
|
|
927
874
|
var _blocking_pending = /* @__PURE__ */ new WeakMap();
|
|
928
875
|
var _deferred = /* @__PURE__ */ new WeakMap();
|
|
929
|
-
var
|
|
876
|
+
var _scheduled = /* @__PURE__ */ new WeakMap();
|
|
930
877
|
var _new_effects = /* @__PURE__ */ new WeakMap();
|
|
931
878
|
var _dirty_effects$1 = /* @__PURE__ */ new WeakMap();
|
|
932
879
|
var _maybe_dirty_effects$1 = /* @__PURE__ */ new WeakMap();
|
|
@@ -974,7 +921,7 @@ var Batch = class Batch {
|
|
|
974
921
|
_classPrivateFieldInitSpec(this, _pending, 0);
|
|
975
922
|
_classPrivateFieldInitSpec(this, _blocking_pending, /* @__PURE__ */ new Map());
|
|
976
923
|
_classPrivateFieldInitSpec(this, _deferred, null);
|
|
977
|
-
_classPrivateFieldInitSpec(this,
|
|
924
|
+
_classPrivateFieldInitSpec(this, _scheduled, []);
|
|
978
925
|
_classPrivateFieldInitSpec(this, _new_effects, []);
|
|
979
926
|
_classPrivateFieldInitSpec(this, _dirty_effects$1, /* @__PURE__ */ new Set());
|
|
980
927
|
_classPrivateFieldInitSpec(this, _maybe_dirty_effects$1, /* @__PURE__ */ new Set());
|
|
@@ -1163,20 +1110,7 @@ var Batch = class Batch {
|
|
|
1163
1110
|
effect.b.defer_effect(effect);
|
|
1164
1111
|
return;
|
|
1165
1112
|
}
|
|
1166
|
-
|
|
1167
|
-
while (e.parent !== null) {
|
|
1168
|
-
e = e.parent;
|
|
1169
|
-
var flags = e.f;
|
|
1170
|
-
if (collected_effects !== null && e === active_effect) {
|
|
1171
|
-
if (async_mode_flag) return;
|
|
1172
|
-
if ((active_reaction === null || (active_reaction.f & 2) === 0) && !legacy_is_updating_store) return;
|
|
1173
|
-
}
|
|
1174
|
-
if ((flags & 96) !== 0) {
|
|
1175
|
-
if ((flags & 1024) === 0) return;
|
|
1176
|
-
e.f ^= CLEAN;
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
_classPrivateFieldGet2(_roots, this).push(e);
|
|
1113
|
+
_classPrivateFieldGet2(_scheduled, this).push(effect);
|
|
1180
1114
|
}
|
|
1181
1115
|
};
|
|
1182
1116
|
_Batch = Batch;
|
|
@@ -1196,12 +1130,40 @@ function _is_deferred() {
|
|
|
1196
1130
|
}
|
|
1197
1131
|
return false;
|
|
1198
1132
|
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Convert the effects that were scheduled in this batch into the root effects
|
|
1135
|
+
* that need to be traversed, marking the path to each effect (by clearing the
|
|
1136
|
+
* `CLEAN` flag on ancestor branches) so that the traversal can find them.
|
|
1137
|
+
* This happens right before traversal rather than at scheduling time, so that
|
|
1138
|
+
* the markers left on the (shared) effect tree are created and consumed within
|
|
1139
|
+
* a single traversal — scheduling into other batches can never observe them
|
|
1140
|
+
* @returns {Effect[]}
|
|
1141
|
+
*/
|
|
1142
|
+
function _resolve$1() {
|
|
1143
|
+
/** @type {Effect[]} */
|
|
1144
|
+
var roots = [];
|
|
1145
|
+
for (const effect of _classPrivateFieldGet2(_scheduled, this)) {
|
|
1146
|
+
if ((effect.f & 16384) !== 0 || (effect.f & 6144) === 0) continue;
|
|
1147
|
+
var e = effect;
|
|
1148
|
+
var covered = false;
|
|
1149
|
+
while (e.parent !== null) {
|
|
1150
|
+
e = e.parent;
|
|
1151
|
+
var flags = e.f;
|
|
1152
|
+
if ((flags & 96) !== 0) {
|
|
1153
|
+
if ((flags & 1024) === 0) {
|
|
1154
|
+
covered = true;
|
|
1155
|
+
break;
|
|
1156
|
+
}
|
|
1157
|
+
e.f ^= CLEAN;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
if (!covered) roots.push(e);
|
|
1161
|
+
}
|
|
1162
|
+
_classPrivateFieldSet2(_scheduled, this, []);
|
|
1163
|
+
return roots;
|
|
1164
|
+
}
|
|
1199
1165
|
function _process() {
|
|
1200
1166
|
_classPrivateFieldSet2(_started, this, true);
|
|
1201
|
-
if (flush_count++ > 1e3) {
|
|
1202
|
-
_assertClassBrand(_Batch_brand, this, _unlink).call(this);
|
|
1203
|
-
infinite_loop_guard();
|
|
1204
|
-
}
|
|
1205
1167
|
for (const e of _classPrivateFieldGet2(_dirty_effects$1, this)) {
|
|
1206
1168
|
_classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(e);
|
|
1207
1169
|
set_signal_status(e, DIRTY);
|
|
@@ -1211,8 +1173,6 @@ function _process() {
|
|
|
1211
1173
|
set_signal_status(e, MAYBE_DIRTY);
|
|
1212
1174
|
this.schedule(e);
|
|
1213
1175
|
}
|
|
1214
|
-
const roots = _classPrivateFieldGet2(_roots, this);
|
|
1215
|
-
_classPrivateFieldSet2(_roots, this, []);
|
|
1216
1176
|
this.apply();
|
|
1217
1177
|
/** @type {Effect[]} */
|
|
1218
1178
|
var effects = collected_effects = [];
|
|
@@ -1223,12 +1183,18 @@ function _process() {
|
|
|
1223
1183
|
* @deprecated when we get rid of legacy mode and stores, we can get rid of this
|
|
1224
1184
|
*/
|
|
1225
1185
|
var updates = legacy_updates = [];
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1186
|
+
while (_classPrivateFieldGet2(_scheduled, this).length > 0) {
|
|
1187
|
+
if (flush_count++ > 1e3) {
|
|
1188
|
+
_assertClassBrand(_Batch_brand, this, _unlink).call(this);
|
|
1189
|
+
infinite_loop_guard();
|
|
1190
|
+
}
|
|
1191
|
+
for (const root of _assertClassBrand(_Batch_brand, this, _resolve$1).call(this)) try {
|
|
1192
|
+
_assertClassBrand(_Batch_brand, this, _traverse).call(this, root, effects, render_effects);
|
|
1193
|
+
} catch (e) {
|
|
1194
|
+
reset_all(root);
|
|
1195
|
+
if (!_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) this.discard();
|
|
1196
|
+
throw e;
|
|
1197
|
+
}
|
|
1232
1198
|
}
|
|
1233
1199
|
current_batch = null;
|
|
1234
1200
|
if (updates.length > 0) {
|
|
@@ -1262,16 +1228,16 @@ function _process() {
|
|
|
1262
1228
|
previous_batch = null;
|
|
1263
1229
|
_classPrivateFieldGet2(_deferred, this)?.resolve();
|
|
1264
1230
|
var next_batch = current_batch;
|
|
1265
|
-
if (_classPrivateFieldGet2(_pending, this) === 0 && (_classPrivateFieldGet2(
|
|
1231
|
+
if (_classPrivateFieldGet2(_pending, this) === 0 && (_classPrivateFieldGet2(_scheduled, this).length === 0 || next_batch !== null)) {
|
|
1266
1232
|
_assertClassBrand(_Batch_brand, this, _unlink).call(this);
|
|
1267
1233
|
if (async_mode_flag) {
|
|
1268
1234
|
_assertClassBrand(_Batch_brand, this, _commit$1).call(this);
|
|
1269
1235
|
current_batch = next_batch;
|
|
1270
1236
|
}
|
|
1271
1237
|
}
|
|
1272
|
-
if (_classPrivateFieldGet2(
|
|
1273
|
-
const
|
|
1274
|
-
|
|
1238
|
+
if (_classPrivateFieldGet2(_scheduled, this).length > 0) if (next_batch !== null) {
|
|
1239
|
+
for (const e of _classPrivateFieldGet2(_scheduled, this)) _classPrivateFieldGet2(_scheduled, next_batch).push(e);
|
|
1240
|
+
_classPrivateFieldSet2(_scheduled, this, []);
|
|
1275
1241
|
} else next_batch = this;
|
|
1276
1242
|
if (next_batch !== null) {
|
|
1277
1243
|
old_values.clear();
|
|
@@ -1421,10 +1387,9 @@ function _commit$1() {
|
|
|
1421
1387
|
batch.schedule(effect);
|
|
1422
1388
|
} else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
|
|
1423
1389
|
}
|
|
1424
|
-
if (_classPrivateFieldGet2(
|
|
1390
|
+
if (_classPrivateFieldGet2(_scheduled, batch).length > 0 && !_classPrivateFieldGet2(_decrement_queued, batch)) {
|
|
1425
1391
|
batch.apply();
|
|
1426
|
-
for (var root of
|
|
1427
|
-
_classPrivateFieldSet2(_roots, batch, []);
|
|
1392
|
+
for (var root of _assertClassBrand(_Batch_brand, batch, _resolve$1).call(batch)) _assertClassBrand(_Batch_brand, batch, _traverse).call(batch, root, [], []);
|
|
1428
1393
|
}
|
|
1429
1394
|
batch.deactivate();
|
|
1430
1395
|
}
|
|
@@ -1591,7 +1556,7 @@ function reset_all(effect) {
|
|
|
1591
1556
|
}
|
|
1592
1557
|
}
|
|
1593
1558
|
//#endregion
|
|
1594
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1559
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
1595
1560
|
/** @import { Derived, Effect, Source, Value } from '#client' */
|
|
1596
1561
|
/** @type {Set<Effect>} */
|
|
1597
1562
|
var eager_effects = /* @__PURE__ */ new Set();
|
|
@@ -1653,6 +1618,16 @@ function set(source, value, should_proxy = false) {
|
|
|
1653
1618
|
return internal_set(source, should_proxy ? proxy(value) : value, legacy_updates);
|
|
1654
1619
|
}
|
|
1655
1620
|
/**
|
|
1621
|
+
* A set of signals we have already seen while traversing in mark_reactions.
|
|
1622
|
+
* Not always set to balance the common case of sources only having a couple
|
|
1623
|
+
* of (transitive) dependencies (where always creating a Set would be bad for perf)
|
|
1624
|
+
* with the edge case of extremely deep or wide dependency arrays with cycles.
|
|
1625
|
+
* @type {Set<any> | null}
|
|
1626
|
+
*/
|
|
1627
|
+
var seen = null;
|
|
1628
|
+
/** Number of transitive dependencies, see {@link seen} for more info */
|
|
1629
|
+
var count_deps = 0;
|
|
1630
|
+
/**
|
|
1656
1631
|
* @template V
|
|
1657
1632
|
* @param {Source<V>} source
|
|
1658
1633
|
* @param {V} value
|
|
@@ -1671,7 +1646,10 @@ function internal_set(source, value, updated_during_traversal = null) {
|
|
|
1671
1646
|
if (batch_values === null) update_derived_status(derived);
|
|
1672
1647
|
}
|
|
1673
1648
|
source.wv = increment_write_version();
|
|
1649
|
+
seen = null;
|
|
1650
|
+
count_deps = 0;
|
|
1674
1651
|
mark_reactions(source, DIRTY, updated_during_traversal);
|
|
1652
|
+
seen = null;
|
|
1675
1653
|
if (is_runes() && active_effect !== null && (active_effect.f & 1024) !== 0 && (active_effect.f & 96) === 0) if (untracked_writes === null) set_untracked_writes([source]);
|
|
1676
1654
|
else untracked_writes.push(source);
|
|
1677
1655
|
if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) flush_eager_effects();
|
|
@@ -1710,6 +1688,12 @@ function mark_reactions(signal, status, updated_during_traversal) {
|
|
|
1710
1688
|
if (reactions === null) return;
|
|
1711
1689
|
var runes = is_runes();
|
|
1712
1690
|
var length = reactions.length;
|
|
1691
|
+
count_deps += length;
|
|
1692
|
+
if (count_deps > 1e5 && seen === null) seen = /* @__PURE__ */ new Set();
|
|
1693
|
+
if (seen !== null) {
|
|
1694
|
+
if (seen.has(signal)) return;
|
|
1695
|
+
seen.add(signal);
|
|
1696
|
+
}
|
|
1713
1697
|
for (var i = 0; i < length; i++) {
|
|
1714
1698
|
var reaction = reactions[i];
|
|
1715
1699
|
var flags = reaction.f;
|
|
@@ -1720,10 +1704,7 @@ function mark_reactions(signal, status, updated_during_traversal) {
|
|
|
1720
1704
|
else if ((flags & 2) !== 0) {
|
|
1721
1705
|
var derived = reaction;
|
|
1722
1706
|
batch_values?.delete(derived);
|
|
1723
|
-
|
|
1724
|
-
if (flags & 512 && (active_effect === null || (active_effect.f & 2097152) === 0)) reaction.f |= WAS_MARKED;
|
|
1725
|
-
mark_reactions(derived, MAYBE_DIRTY, updated_during_traversal);
|
|
1726
|
-
}
|
|
1707
|
+
mark_reactions(derived, MAYBE_DIRTY, updated_during_traversal);
|
|
1727
1708
|
} else if (not_dirty) {
|
|
1728
1709
|
var effect = reaction;
|
|
1729
1710
|
if ((flags & 16) !== 0 && eager_block_effects !== null) eager_block_effects.add(effect);
|
|
@@ -1811,14 +1792,14 @@ function proxy(value) {
|
|
|
1811
1792
|
return Reflect.get(target, prop, receiver);
|
|
1812
1793
|
},
|
|
1813
1794
|
getOwnPropertyDescriptor(target, prop) {
|
|
1795
|
+
this.has?.(target, prop);
|
|
1814
1796
|
var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
if (source !== void 0 && value !== UNINITIALIZED) return {
|
|
1797
|
+
var s = sources.get(prop);
|
|
1798
|
+
if (s !== void 0) {
|
|
1799
|
+
var value = get$1(s);
|
|
1800
|
+
if (value === UNINITIALIZED) return;
|
|
1801
|
+
if (descriptor && "value" in descriptor) descriptor.value = value;
|
|
1802
|
+
else return {
|
|
1822
1803
|
enumerable: true,
|
|
1823
1804
|
configurable: true,
|
|
1824
1805
|
value,
|
|
@@ -1891,7 +1872,7 @@ function proxy(value) {
|
|
|
1891
1872
|
});
|
|
1892
1873
|
}
|
|
1893
1874
|
//#endregion
|
|
1894
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1875
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/operations.js
|
|
1895
1876
|
/** @import { Effect, TemplateNode } from '#client' */
|
|
1896
1877
|
/** @type {Window} */
|
|
1897
1878
|
var $window;
|
|
@@ -2116,7 +2097,7 @@ function invoke_error_boundary(error, effect) {
|
|
|
2116
2097
|
throw error;
|
|
2117
2098
|
}
|
|
2118
2099
|
//#endregion
|
|
2119
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2100
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
2120
2101
|
/** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
|
|
2121
2102
|
/**
|
|
2122
2103
|
* @param {'$effect' | '$effect.pre' | '$inspect'} rune
|
|
@@ -2516,14 +2497,14 @@ function move_effect(effect, fragment) {
|
|
|
2516
2497
|
}
|
|
2517
2498
|
}
|
|
2518
2499
|
//#endregion
|
|
2519
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2500
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
|
|
2520
2501
|
/**
|
|
2521
2502
|
* @type {Set<Value> | null}
|
|
2522
2503
|
* @deprecated
|
|
2523
2504
|
*/
|
|
2524
2505
|
var captured_signals = null;
|
|
2525
2506
|
//#endregion
|
|
2526
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2507
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/runtime.js
|
|
2527
2508
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
2528
2509
|
/**
|
|
2529
2510
|
* True if updating in an effect context that is reactive (i.e. not branch/root effects)
|
|
@@ -2555,7 +2536,7 @@ function set_active_effect(effect) {
|
|
|
2555
2536
|
var current_sources = null;
|
|
2556
2537
|
/** @param {Value} value */
|
|
2557
2538
|
function push_reaction_value(value) {
|
|
2558
|
-
if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & 2) !== 0)) (current_sources ?? (current_sources = /* @__PURE__ */ new Set())).add(value);
|
|
2539
|
+
if (active_reaction !== null && (!async_mode_flag && (active_reaction.f & 2097152) !== 0 || (active_reaction.f & 2) !== 0)) (current_sources ?? (current_sources = /* @__PURE__ */ new Set())).add(value);
|
|
2559
2540
|
}
|
|
2560
2541
|
/**
|
|
2561
2542
|
* The dependencies of the reaction that is currently being executed. In many cases,
|
|
@@ -2599,7 +2580,6 @@ function increment_write_version() {
|
|
|
2599
2580
|
function is_dirty(reaction) {
|
|
2600
2581
|
var flags = reaction.f;
|
|
2601
2582
|
if ((flags & 2048) !== 0) return true;
|
|
2602
|
-
if (flags & 2) reaction.f &= ~WAS_MARKED;
|
|
2603
2583
|
if ((flags & 4096) !== 0) {
|
|
2604
2584
|
var dependencies = reaction.deps;
|
|
2605
2585
|
var length = dependencies.length;
|
|
@@ -2731,10 +2711,7 @@ function remove_reaction(signal, dependency) {
|
|
|
2731
2711
|
}
|
|
2732
2712
|
if (reactions === null && (dependency.f & 2) !== 0 && (new_deps === null || !includes.call(new_deps, dependency))) {
|
|
2733
2713
|
var derived = dependency;
|
|
2734
|
-
if ((derived.f & 512) !== 0)
|
|
2735
|
-
derived.f ^= 512;
|
|
2736
|
-
derived.f &= ~WAS_MARKED;
|
|
2737
|
-
}
|
|
2714
|
+
if ((derived.f & 512) !== 0) derived.f ^= 512;
|
|
2738
2715
|
if (derived.v !== UNINITIALIZED) update_derived_status(derived);
|
|
2739
2716
|
if (derived.ac !== null) without_reactive_context(() => {
|
|
2740
2717
|
/** @type {AbortController} */ derived.ac.abort(STALE_REACTION);
|
|
@@ -2895,7 +2872,7 @@ function untrack(fn) {
|
|
|
2895
2872
|
}
|
|
2896
2873
|
}
|
|
2897
2874
|
//#endregion
|
|
2898
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2875
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
2899
2876
|
/**
|
|
2900
2877
|
* Used on elements, as a map of event type -> event handler,
|
|
2901
2878
|
* and on events themselves to track which element handled an event
|
|
@@ -2921,10 +2898,12 @@ function create_event(event_name, dom, handler, options = {}) {
|
|
|
2921
2898
|
return handler?.call(this, event);
|
|
2922
2899
|
});
|
|
2923
2900
|
}
|
|
2924
|
-
if (event_name.startsWith("pointer") || event_name.startsWith("touch") || event_name === "wheel")
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2901
|
+
if (event_name.startsWith("pointer") || event_name.startsWith("touch") || event_name === "wheel") {
|
|
2902
|
+
target_handler.__removed = false;
|
|
2903
|
+
queue_micro_task(() => {
|
|
2904
|
+
if (!target_handler.__removed) dom.addEventListener(event_name, target_handler, options);
|
|
2905
|
+
});
|
|
2906
|
+
} else dom.addEventListener(event_name, target_handler, options);
|
|
2928
2907
|
return target_handler;
|
|
2929
2908
|
}
|
|
2930
2909
|
/**
|
|
@@ -2942,6 +2921,7 @@ function event(event_name, dom, handler, capture, passive) {
|
|
|
2942
2921
|
};
|
|
2943
2922
|
var target_handler = create_event(event_name, dom, handler, options);
|
|
2944
2923
|
if (dom === document.body || dom === window || dom === document || dom instanceof HTMLMediaElement) teardown(() => {
|
|
2924
|
+
target_handler.__removed = true;
|
|
2945
2925
|
dom.removeEventListener(event_name, target_handler, options);
|
|
2946
2926
|
});
|
|
2947
2927
|
}
|
|
@@ -3043,7 +3023,7 @@ function handle_event_propagation(event) {
|
|
|
3043
3023
|
}
|
|
3044
3024
|
}
|
|
3045
3025
|
//#endregion
|
|
3046
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3026
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
3047
3027
|
var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
3048
3028
|
/** @param {string} html */
|
|
3049
3029
|
createHTML: (html) => {
|
|
@@ -3062,7 +3042,7 @@ function create_fragment_from_html(html) {
|
|
|
3062
3042
|
return elem.content;
|
|
3063
3043
|
}
|
|
3064
3044
|
//#endregion
|
|
3065
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3045
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
3066
3046
|
/** @import { Effect, EffectNodes, TemplateNode } from '#client' */
|
|
3067
3047
|
/** @import { TemplateStructure } from './types' */
|
|
3068
3048
|
/**
|
|
@@ -3207,7 +3187,7 @@ function is_passive_event(name) {
|
|
|
3207
3187
|
return PASSIVE_EVENTS.includes(name);
|
|
3208
3188
|
}
|
|
3209
3189
|
//#endregion
|
|
3210
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3190
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
3211
3191
|
/**
|
|
3212
3192
|
* Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
|
|
3213
3193
|
* It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
|
|
@@ -3280,7 +3260,7 @@ function createSubscriber(start) {
|
|
|
3280
3260
|
};
|
|
3281
3261
|
}
|
|
3282
3262
|
//#endregion
|
|
3283
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3263
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
3284
3264
|
/** @import { Effect, Source, TemplateNode, } from '#client' */
|
|
3285
3265
|
/**
|
|
3286
3266
|
* @typedef {{
|
|
@@ -3850,7 +3830,7 @@ function unmount(component, options) {
|
|
|
3850
3830
|
return Promise.resolve();
|
|
3851
3831
|
}
|
|
3852
3832
|
//#endregion
|
|
3853
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3833
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
3854
3834
|
/** @import { Effect, TemplateNode } from '#client' */
|
|
3855
3835
|
var _batches = /* @__PURE__ */ new WeakMap();
|
|
3856
3836
|
var _onscreen = /* @__PURE__ */ new WeakMap();
|
|
@@ -3973,7 +3953,7 @@ var BranchManager = class {
|
|
|
3973
3953
|
}
|
|
3974
3954
|
};
|
|
3975
3955
|
//#endregion
|
|
3976
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3956
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/snippet.js
|
|
3977
3957
|
/** @import { Snippet } from 'svelte' */
|
|
3978
3958
|
/** @import { TemplateNode } from '#client' */
|
|
3979
3959
|
/** @import { Getters } from '#shared' */
|
|
@@ -4039,7 +4019,7 @@ function init_update_callbacks(context) {
|
|
|
4039
4019
|
});
|
|
4040
4020
|
}
|
|
4041
4021
|
//#endregion
|
|
4042
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4022
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
4043
4023
|
/** @import { TemplateNode } from '#client' */
|
|
4044
4024
|
/**
|
|
4045
4025
|
* @param {TemplateNode} node
|
|
@@ -4085,7 +4065,7 @@ function if_block(node, fn, elseif = false) {
|
|
|
4085
4065
|
}, flags);
|
|
4086
4066
|
}
|
|
4087
4067
|
//#endregion
|
|
4088
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4068
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/each.js
|
|
4089
4069
|
/** @import { EachItem, EachOutroGroup, EachState, Effect, EffectNodes, MaybeSource, Source, TemplateNode, TransitionManager, Value } from '#client' */
|
|
4090
4070
|
/** @import { Batch } from '../../reactivity/batch.js'; */
|
|
4091
4071
|
/**
|
|
@@ -4557,7 +4537,7 @@ function html(node, get_value, is_controlled = false, svg = false, mathml = fals
|
|
|
4557
4537
|
});
|
|
4558
4538
|
}
|
|
4559
4539
|
//#endregion
|
|
4560
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4540
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
4561
4541
|
/**
|
|
4562
4542
|
* @param {Node} anchor
|
|
4563
4543
|
* @param {{ hash: string, code: string }} css
|
|
@@ -4576,7 +4556,7 @@ function append_styles$1(anchor, css) {
|
|
|
4576
4556
|
});
|
|
4577
4557
|
}
|
|
4578
4558
|
//#endregion
|
|
4579
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4559
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/shared/attributes.js
|
|
4580
4560
|
var whitespace = [..." \n\r\f\xA0\v"];
|
|
4581
4561
|
/**
|
|
4582
4562
|
* @param {any} value
|
|
@@ -4686,7 +4666,7 @@ function to_style(value, styles) {
|
|
|
4686
4666
|
return value == null ? null : String(value);
|
|
4687
4667
|
}
|
|
4688
4668
|
//#endregion
|
|
4689
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4669
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
4690
4670
|
/**
|
|
4691
4671
|
* @param {Element} dom
|
|
4692
4672
|
* @param {boolean | number} is_html
|
|
@@ -4711,7 +4691,7 @@ function set_class(dom, is_html, value, hash, prev_classes, next_classes) {
|
|
|
4711
4691
|
return next_classes;
|
|
4712
4692
|
}
|
|
4713
4693
|
//#endregion
|
|
4714
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4694
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/style.js
|
|
4715
4695
|
/**
|
|
4716
4696
|
* @param {Element & ElementCSSInlineStyle} dom
|
|
4717
4697
|
* @param {Record<string, any>} prev
|
|
@@ -4745,7 +4725,7 @@ function set_style(dom, value, prev_styles, next_styles) {
|
|
|
4745
4725
|
return next_styles;
|
|
4746
4726
|
}
|
|
4747
4727
|
//#endregion
|
|
4748
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4728
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
4749
4729
|
/** @import { Blocker, Effect } from '#client' */
|
|
4750
4730
|
var IS_CUSTOM_ELEMENT = Symbol("is custom element");
|
|
4751
4731
|
var IS_HTML = Symbol("is html");
|
|
@@ -4800,7 +4780,7 @@ function get_setters(element) {
|
|
|
4800
4780
|
return setters;
|
|
4801
4781
|
}
|
|
4802
4782
|
//#endregion
|
|
4803
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4783
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
|
|
4804
4784
|
var _ResizeObserverSingleton;
|
|
4805
4785
|
var _listeners = /* @__PURE__ */ new WeakMap();
|
|
4806
4786
|
var _observer = /* @__PURE__ */ new WeakMap();
|
|
@@ -4865,7 +4845,7 @@ function bind_element_size(element, type, set) {
|
|
|
4865
4845
|
});
|
|
4866
4846
|
}
|
|
4867
4847
|
//#endregion
|
|
4868
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
4848
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
4869
4849
|
/** @import { ComponentContext, Effect } from '#client' */
|
|
4870
4850
|
/**
|
|
4871
4851
|
* @param {any} bound_value
|
|
@@ -4916,6 +4896,31 @@ function bind_this(element_or_component = mark_as_component(), update, get_value
|
|
|
4916
4896
|
});
|
|
4917
4897
|
return element_or_component;
|
|
4918
4898
|
}
|
|
4899
|
+
//#endregion
|
|
4900
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
4901
|
+
/**
|
|
4902
|
+
* Whether or not the prop currently being read is a store binding, as in
|
|
4903
|
+
* `<Child bind:x={$y} />`. If it is, we treat the prop as mutable even in
|
|
4904
|
+
* runes mode, and skip `binding_property_non_reactive` validation
|
|
4905
|
+
*/
|
|
4906
|
+
var is_store_binding = false;
|
|
4907
|
+
/**
|
|
4908
|
+
* Returns a tuple that indicates whether `fn()` reads a prop that is a store binding.
|
|
4909
|
+
* Used to prevent `binding_property_non_reactive` validation false positives and
|
|
4910
|
+
* ensure that these props are treated as mutable even in runes mode
|
|
4911
|
+
* @template T
|
|
4912
|
+
* @param {() => T} fn
|
|
4913
|
+
* @returns {[T, boolean]}
|
|
4914
|
+
*/
|
|
4915
|
+
function capture_store_binding(fn) {
|
|
4916
|
+
var previous_is_store_binding = is_store_binding;
|
|
4917
|
+
try {
|
|
4918
|
+
is_store_binding = false;
|
|
4919
|
+
return [fn(), is_store_binding];
|
|
4920
|
+
} finally {
|
|
4921
|
+
is_store_binding = previous_is_store_binding;
|
|
4922
|
+
}
|
|
4923
|
+
}
|
|
4919
4924
|
/**
|
|
4920
4925
|
* This function is responsible for synchronizing a possibly bound prop with the inner component state.
|
|
4921
4926
|
* It is used whenever the compiler sees that the component writes to the prop, or when it has a default prop_value.
|
|
@@ -5007,7 +5012,7 @@ function prop(props, key, flags, fallback) {
|
|
|
5007
5012
|
});
|
|
5008
5013
|
}
|
|
5009
5014
|
//#endregion
|
|
5010
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
5015
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
|
|
5011
5016
|
/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
|
|
5012
5017
|
/**
|
|
5013
5018
|
* Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.
|
|
@@ -5126,7 +5131,7 @@ var Svelte4Component = class {
|
|
|
5126
5131
|
}
|
|
5127
5132
|
};
|
|
5128
5133
|
//#endregion
|
|
5129
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
5134
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
|
|
5130
5135
|
/**
|
|
5131
5136
|
* @typedef {Object} CustomElementPropDefinition
|
|
5132
5137
|
* @property {string} [attribute]
|
|
@@ -5412,131 +5417,212 @@ function create_custom_element(Component, props_definition, slots, exports, shad
|
|
|
5412
5417
|
}
|
|
5413
5418
|
//#endregion
|
|
5414
5419
|
//#region ../../shared/math-rendering-mathjax/dist/index.js
|
|
5415
|
-
var e$3 =
|
|
5420
|
+
var e$3 = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page";
|
|
5421
|
+
var t$3 = "pie-mathjax-version-conflict";
|
|
5422
|
+
var n = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
|
|
5423
|
+
function r$2(r, i) {
|
|
5424
|
+
if (typeof window > "u") return;
|
|
5425
|
+
let a = globalThis;
|
|
5426
|
+
a[n] ?? (a[n] = {
|
|
5427
|
+
logged: !1,
|
|
5428
|
+
conditions: []
|
|
5429
|
+
});
|
|
5430
|
+
let o = a[n];
|
|
5431
|
+
if (o.conditions.includes(r)) return;
|
|
5432
|
+
o.conditions.push(r);
|
|
5433
|
+
let s = `[math-rendering] Unsupported page (${r}): ${i}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${e$3}`;
|
|
5434
|
+
o.logged || (o.logged = !0, console.error(s)), window.dispatchEvent(new CustomEvent(t$3, { detail: {
|
|
5435
|
+
condition: r,
|
|
5436
|
+
message: s,
|
|
5437
|
+
docsUrl: e$3
|
|
5438
|
+
} }));
|
|
5439
|
+
}
|
|
5440
|
+
function i() {
|
|
5441
|
+
let e = window.MathJax?.version;
|
|
5442
|
+
return typeof e == "string" && e.startsWith("3.") ? e : void 0;
|
|
5443
|
+
}
|
|
5444
|
+
var a = "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js";
|
|
5445
|
+
var o = {
|
|
5416
5446
|
parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
|
|
5417
5447
|
overarc: "\\overparen",
|
|
5418
5448
|
napprox: "\\not\\approx",
|
|
5419
5449
|
longdiv: "\\enclose{longdiv}",
|
|
5420
5450
|
abs: ["\\left|#1\\right|", 1]
|
|
5421
5451
|
};
|
|
5422
|
-
var
|
|
5423
|
-
var
|
|
5424
|
-
var
|
|
5425
|
-
var
|
|
5426
|
-
var
|
|
5452
|
+
var s$1 = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)";
|
|
5453
|
+
var c$1 = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/;
|
|
5454
|
+
var l = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/;
|
|
5455
|
+
var u = /\\embed\{newLine\}\[\]/g;
|
|
5456
|
+
var d = [
|
|
5427
5457
|
["$$", "$$"],
|
|
5428
5458
|
["$", "$"],
|
|
5429
5459
|
["\\[", "\\]"],
|
|
5430
5460
|
["\\(", "\\)"]
|
|
5431
5461
|
];
|
|
5432
|
-
var
|
|
5433
|
-
|
|
5462
|
+
var f = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading");
|
|
5463
|
+
var p = "PIE-MJX-CHTML-styles";
|
|
5464
|
+
var m = "MJX-CHTML-styles";
|
|
5465
|
+
var h = [m, "MJX-SVG-styles"];
|
|
5466
|
+
var g = 201;
|
|
5467
|
+
function _(e) {
|
|
5468
|
+
let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
|
|
5469
|
+
for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
|
|
5470
|
+
}
|
|
5471
|
+
function v() {
|
|
5434
5472
|
return window.MathJax;
|
|
5435
5473
|
}
|
|
5436
|
-
function
|
|
5474
|
+
function y(e) {
|
|
5437
5475
|
let t = e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e;
|
|
5438
|
-
for (let [e, n] of
|
|
5476
|
+
for (let [e, n] of d) if (t.startsWith(e) && t.endsWith(n)) return t.substring(e.length, t.length - n.length);
|
|
5439
5477
|
return t;
|
|
5440
5478
|
}
|
|
5441
|
-
function
|
|
5479
|
+
function b(e) {
|
|
5442
5480
|
for (let t of e.querySelectorAll("[data-latex]")) {
|
|
5443
5481
|
if (t.dataset.mathHandled || t.closest("mjx-container")) continue;
|
|
5444
5482
|
let e = t.textContent;
|
|
5445
|
-
e && (t.textContent = `\\(${
|
|
5483
|
+
e && (t.textContent = `\\(${y(e)}\\)`.replace(u, "\\newline "), t.dataset.mathHandled = "true");
|
|
5446
5484
|
}
|
|
5447
5485
|
}
|
|
5448
|
-
function
|
|
5486
|
+
function x(e, t) {
|
|
5449
5487
|
for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
|
|
5450
|
-
return (t ?
|
|
5488
|
+
return (t ? l : c$1).test(e.textContent ?? "");
|
|
5451
5489
|
}
|
|
5452
|
-
function
|
|
5453
|
-
return new Promise((
|
|
5454
|
-
let { useSingleDollar:
|
|
5490
|
+
function S(e) {
|
|
5491
|
+
return new Promise((t, n) => {
|
|
5492
|
+
let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: c = !0, srcUrl: l } = e, u = {
|
|
5455
5493
|
loader: {
|
|
5456
|
-
load:
|
|
5457
|
-
failed: (e) =>
|
|
5494
|
+
load: i ? ["a11y/assistive-mml"] : [],
|
|
5495
|
+
failed: (e) => n(e)
|
|
5458
5496
|
},
|
|
5459
5497
|
startup: {
|
|
5460
5498
|
typeset: !1,
|
|
5461
5499
|
ready: () => {
|
|
5462
|
-
let e =
|
|
5463
|
-
e?.defaultReady?.(), Promise.resolve(
|
|
5500
|
+
let e = v(), r = e?.startup, i = !!e?.version?.startsWith("4.");
|
|
5501
|
+
i && C(e), r?.defaultReady?.(), i && w(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
|
|
5464
5502
|
}
|
|
5465
5503
|
},
|
|
5466
|
-
tex: { macros: { ...
|
|
5504
|
+
tex: { macros: { ...o } },
|
|
5467
5505
|
options: {
|
|
5468
|
-
enableMenu:
|
|
5506
|
+
enableMenu: i,
|
|
5469
5507
|
menuOptions: { settings: {
|
|
5470
|
-
assistiveMml:
|
|
5508
|
+
assistiveMml: i,
|
|
5471
5509
|
enrich: !1,
|
|
5472
5510
|
inTabOrder: !1
|
|
5473
5511
|
} }
|
|
5474
5512
|
}
|
|
5475
5513
|
};
|
|
5476
|
-
|
|
5514
|
+
r && u.tex && (console.warn(s$1), u.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], u.tex.processEscapes = !0), c || (u.chtml = { fontURL: "" }), window.MathJax = u;
|
|
5477
5515
|
let d = document.createElement("script");
|
|
5478
|
-
d.src = l ||
|
|
5516
|
+
d.src = l || a, d.async = !0, d.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(d);
|
|
5479
5517
|
});
|
|
5480
5518
|
}
|
|
5481
|
-
function
|
|
5519
|
+
function C(e) {
|
|
5520
|
+
let t = e?._?.output?.chtml_ts?.CHTML;
|
|
5521
|
+
t && (t.STYLESHEETID = p);
|
|
5522
|
+
}
|
|
5523
|
+
function w(e) {
|
|
5524
|
+
if (!e) return;
|
|
5525
|
+
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
5526
|
+
let n = e.typesetRoot;
|
|
5527
|
+
!n || t.has(n) || (_(n), t.add(n));
|
|
5528
|
+
};
|
|
5529
|
+
e.addRenderAction?.("pie-strip-latex", g, (e) => {
|
|
5530
|
+
for (let t of e.math ?? []) n(t);
|
|
5531
|
+
return !1;
|
|
5532
|
+
}, (e) => {
|
|
5533
|
+
let t = e.typesetRoot;
|
|
5534
|
+
return t && _(t), !1;
|
|
5535
|
+
});
|
|
5536
|
+
let r = e.outputJax?.chtmlStyles;
|
|
5537
|
+
r?.id === m && (r.id = p), D();
|
|
5538
|
+
}
|
|
5539
|
+
function T(e) {
|
|
5540
|
+
return e instanceof HTMLStyleElement && h.includes(e.id);
|
|
5541
|
+
}
|
|
5542
|
+
function E(e) {
|
|
5543
|
+
r$2("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
|
|
5544
|
+
}
|
|
5545
|
+
function D() {
|
|
5546
|
+
let e = document.head, t = [...e.children].find(T);
|
|
5547
|
+
if (t) {
|
|
5548
|
+
E(t);
|
|
5549
|
+
return;
|
|
5550
|
+
}
|
|
5551
|
+
let n = new MutationObserver((e) => {
|
|
5552
|
+
for (let t of e) {
|
|
5553
|
+
let e = [...t.addedNodes].find(T);
|
|
5554
|
+
if (e) {
|
|
5555
|
+
E(e), n.disconnect();
|
|
5556
|
+
return;
|
|
5557
|
+
}
|
|
5558
|
+
}
|
|
5559
|
+
});
|
|
5560
|
+
n.observe(e, { childList: !0 });
|
|
5561
|
+
}
|
|
5562
|
+
function O(e) {
|
|
5482
5563
|
return new Promise((t, n) => {
|
|
5483
5564
|
let r = e.startup ?? {};
|
|
5484
5565
|
e.startup = r;
|
|
5485
5566
|
let i = r.ready;
|
|
5486
5567
|
r.ready = () => {
|
|
5487
|
-
let e =
|
|
5568
|
+
let e = v()?.startup;
|
|
5488
5569
|
i ? i.call(r) : e?.defaultReady?.(), Promise.resolve(e?.promise).then(() => t(), n);
|
|
5489
5570
|
};
|
|
5490
5571
|
});
|
|
5491
5572
|
}
|
|
5492
|
-
function
|
|
5493
|
-
let t =
|
|
5494
|
-
return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() :
|
|
5573
|
+
function k(e) {
|
|
5574
|
+
let t = v();
|
|
5575
|
+
return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : O(t) : S(e);
|
|
5495
5576
|
}
|
|
5496
|
-
function
|
|
5497
|
-
return
|
|
5498
|
-
typeof
|
|
5577
|
+
function A(e) {
|
|
5578
|
+
return k(e).then(() => {
|
|
5579
|
+
typeof v()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
|
|
5499
5580
|
});
|
|
5500
5581
|
}
|
|
5501
|
-
function
|
|
5502
|
-
let t = globalThis, n = t[
|
|
5503
|
-
return n || (n =
|
|
5582
|
+
function j(e) {
|
|
5583
|
+
let t = globalThis, n = t[f];
|
|
5584
|
+
return n || (n = A(e), t[f] = n), n;
|
|
5504
5585
|
}
|
|
5505
|
-
function
|
|
5586
|
+
function M(e = {}) {
|
|
5506
5587
|
let t = e.useSingleDollar ?? !1;
|
|
5507
5588
|
return async (n) => {
|
|
5508
5589
|
if (typeof window > "u") return;
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5590
|
+
let a = i();
|
|
5591
|
+
a && r$2("mathjax-3-global", `window.MathJax is MathJax ${a}`), b(n);
|
|
5592
|
+
let o = j(e);
|
|
5593
|
+
if (!x(n, t)) {
|
|
5594
|
+
o.catch(() => {});
|
|
5513
5595
|
return;
|
|
5514
5596
|
}
|
|
5515
|
-
await
|
|
5516
|
-
let
|
|
5517
|
-
await
|
|
5597
|
+
await o;
|
|
5598
|
+
let s = v();
|
|
5599
|
+
await s?.startup?.promise, typeof s?.typesetPromise == "function" && (await s.typesetPromise([n]), _(n));
|
|
5518
5600
|
};
|
|
5519
5601
|
}
|
|
5520
|
-
var
|
|
5521
|
-
var
|
|
5522
|
-
var
|
|
5523
|
-
function
|
|
5524
|
-
return !!window[
|
|
5602
|
+
var P = "@pie-lib/math-rendering";
|
|
5603
|
+
var F = "@pie-lib/math-rendering@2";
|
|
5604
|
+
var I = null;
|
|
5605
|
+
function L() {
|
|
5606
|
+
return !!window[F]?.opts?.useSingleDollar;
|
|
5525
5607
|
}
|
|
5526
|
-
function
|
|
5527
|
-
return
|
|
5608
|
+
function R() {
|
|
5609
|
+
return I || (I = M({ useSingleDollar: L() })), I;
|
|
5528
5610
|
}
|
|
5529
|
-
function
|
|
5611
|
+
function z() {
|
|
5530
5612
|
if (typeof window > "u") return null;
|
|
5531
|
-
let e = window[
|
|
5613
|
+
let e = window[P];
|
|
5532
5614
|
return typeof e?.renderMath == "function" ? e : null;
|
|
5533
5615
|
}
|
|
5534
|
-
|
|
5616
|
+
function B() {
|
|
5617
|
+
let e = i();
|
|
5618
|
+
e && r$2("legacy-renderer-delegation", `window['${P}'] renders this element's math with MathJax ${e}`);
|
|
5619
|
+
}
|
|
5620
|
+
var V = async (e) => {
|
|
5535
5621
|
if (typeof window > "u") return;
|
|
5536
5622
|
let t = typeof e == "string", n;
|
|
5537
5623
|
t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
|
|
5538
|
-
let r =
|
|
5539
|
-
return r ? await r.renderMath?.(n) : await
|
|
5624
|
+
let r = z();
|
|
5625
|
+
return r ? (B(), await r.renderMath?.(n)) : await R()(n), t ? n.innerHTML : void 0;
|
|
5540
5626
|
};
|
|
5541
5627
|
//#endregion
|
|
5542
5628
|
//#region ../../shared/translator/dist/en.js
|
|
@@ -9232,7 +9318,7 @@ function VennClassification($$anchor, $$props) {
|
|
|
9232
9318
|
if (!containerEl) return;
|
|
9233
9319
|
const warn = (err) => console.warn("venn-classification: MathJax render failed", err);
|
|
9234
9320
|
try {
|
|
9235
|
-
Promise.resolve(
|
|
9321
|
+
Promise.resolve(V(containerEl)).catch(warn);
|
|
9236
9322
|
} catch (err) {
|
|
9237
9323
|
warn(err);
|
|
9238
9324
|
}
|