@pie-element/simple-cloze 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/index.js +132 -67
- package/dist/author/index.js.map +1 -1
- package/dist/delivery/index.js +128 -63
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.js +128 -63
- package/dist/index.js.map +1 -1
- package/dist/print/index.js +126 -61
- package/dist/print/index.js.map +1 -1
- package/package.json +3 -3
package/dist/print/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1
|
+
//#region ../../../node_modules/.bun/svelte@5.55.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.
|
|
7
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/constants.js
|
|
8
8
|
var HYDRATION_ERROR = {};
|
|
9
9
|
var UNINITIALIZED = Symbol();
|
|
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.
|
|
13
|
+
//#region ../../../node_modules/.bun/svelte@5.55.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;
|
|
@@ -120,7 +120,7 @@ var STALE_REACTION = new class StaleReactionError extends Error {
|
|
|
120
120
|
}();
|
|
121
121
|
globalThis.document?.contentType;
|
|
122
122
|
//#endregion
|
|
123
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
123
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/errors.js
|
|
124
124
|
/**
|
|
125
125
|
* Cannot create a `$derived(...)` with an `await` expression outside of an effect tree
|
|
126
126
|
* @returns {never}
|
|
@@ -215,7 +215,7 @@ function svelte_boundary_reset_noop() {
|
|
|
215
215
|
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
|
216
216
|
}
|
|
217
217
|
//#endregion
|
|
218
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
218
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
219
219
|
/** @import { TemplateNode } from '#client' */
|
|
220
220
|
/**
|
|
221
221
|
* Use this variable to guard everything related to hydration code so it can be treeshaken out
|
|
@@ -294,7 +294,7 @@ function read_hydration_instruction(node) {
|
|
|
294
294
|
return node.data;
|
|
295
295
|
}
|
|
296
296
|
//#endregion
|
|
297
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
297
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
298
298
|
/** @import { Equals } from '#client' */
|
|
299
299
|
/** @type {Equals} */
|
|
300
300
|
function equals(value) {
|
|
@@ -313,13 +313,13 @@ function safe_equals(value) {
|
|
|
313
313
|
return !safe_not_equal(value, this.v);
|
|
314
314
|
}
|
|
315
315
|
//#endregion
|
|
316
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
316
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/flags/index.js
|
|
317
317
|
/** True if experimental.async=true */
|
|
318
318
|
var async_mode_flag = false;
|
|
319
319
|
/** True if we're not certain that we only have Svelte 5 code in the compilation */
|
|
320
320
|
var legacy_mode_flag = false;
|
|
321
321
|
//#endregion
|
|
322
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
322
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/context.js
|
|
323
323
|
/** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
|
|
324
324
|
/** @type {ComponentContext | null} */
|
|
325
325
|
var component_context = null;
|
|
@@ -371,7 +371,7 @@ function is_runes() {
|
|
|
371
371
|
return !legacy_mode_flag || component_context !== null && component_context.l === null;
|
|
372
372
|
}
|
|
373
373
|
//#endregion
|
|
374
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
374
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
375
375
|
/** @type {Array<() => void>} */
|
|
376
376
|
var micro_tasks = [];
|
|
377
377
|
function run_micro_tasks() {
|
|
@@ -429,7 +429,7 @@ function invoke_error_boundary(error, effect) {
|
|
|
429
429
|
throw error;
|
|
430
430
|
}
|
|
431
431
|
//#endregion
|
|
432
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
432
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
433
433
|
/** @import { Derived, Signal } from '#client' */
|
|
434
434
|
var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
|
|
435
435
|
/**
|
|
@@ -448,7 +448,7 @@ function update_derived_status(derived) {
|
|
|
448
448
|
else set_signal_status(derived, MAYBE_DIRTY);
|
|
449
449
|
}
|
|
450
450
|
//#endregion
|
|
451
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
451
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
452
452
|
/** @import { Derived, Effect, Value } from '#client' */
|
|
453
453
|
/**
|
|
454
454
|
* @param {Value[] | null} deps
|
|
@@ -476,7 +476,7 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
|
|
|
476
476
|
set_signal_status(effect, CLEAN);
|
|
477
477
|
}
|
|
478
478
|
//#endregion
|
|
479
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
479
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
480
480
|
/**
|
|
481
481
|
* We set this to `true` when updating a store so that we correctly
|
|
482
482
|
* schedule effects if the update takes place inside a `$:` effect
|
|
@@ -537,7 +537,7 @@ function _classPrivateFieldSet2(s, a, r) {
|
|
|
537
537
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
538
538
|
}
|
|
539
539
|
//#endregion
|
|
540
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
540
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
541
541
|
/** @import { Fork } from 'svelte' */
|
|
542
542
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
543
543
|
var _Batch;
|
|
@@ -579,10 +579,12 @@ var _pending = /* @__PURE__ */ new WeakMap();
|
|
|
579
579
|
var _blocking_pending = /* @__PURE__ */ new WeakMap();
|
|
580
580
|
var _deferred = /* @__PURE__ */ new WeakMap();
|
|
581
581
|
var _roots = /* @__PURE__ */ new WeakMap();
|
|
582
|
+
var _new_effects = /* @__PURE__ */ new WeakMap();
|
|
582
583
|
var _dirty_effects$1 = /* @__PURE__ */ new WeakMap();
|
|
583
584
|
var _maybe_dirty_effects$1 = /* @__PURE__ */ new WeakMap();
|
|
584
585
|
var _skipped_branches = /* @__PURE__ */ new WeakMap();
|
|
585
586
|
var _decrement_queued = /* @__PURE__ */ new WeakMap();
|
|
587
|
+
var _blockers = /* @__PURE__ */ new WeakMap();
|
|
586
588
|
var _Batch_brand = /* @__PURE__ */ new WeakSet();
|
|
587
589
|
var Batch = class Batch {
|
|
588
590
|
constructor() {
|
|
@@ -591,9 +593,10 @@ var Batch = class Batch {
|
|
|
591
593
|
_defineProperty(
|
|
592
594
|
this,
|
|
593
595
|
/**
|
|
594
|
-
* The current values of any
|
|
596
|
+
* The current values of any signals that are updated in this batch.
|
|
597
|
+
* Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
|
|
595
598
|
* They keys of this map are identical to `this.#previous`
|
|
596
|
-
* @type {Map<
|
|
599
|
+
* @type {Map<Value, [any, boolean]>}
|
|
597
600
|
*/
|
|
598
601
|
"current",
|
|
599
602
|
/* @__PURE__ */ new Map()
|
|
@@ -601,24 +604,26 @@ var Batch = class Batch {
|
|
|
601
604
|
_defineProperty(
|
|
602
605
|
this,
|
|
603
606
|
/**
|
|
604
|
-
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
607
|
+
* The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
|
|
605
608
|
* They keys of this map are identical to `this.#current`
|
|
606
|
-
* @type {Map<
|
|
609
|
+
* @type {Map<Value, any>}
|
|
607
610
|
*/
|
|
608
611
|
"previous",
|
|
609
612
|
/* @__PURE__ */ new Map()
|
|
610
613
|
);
|
|
611
614
|
_classPrivateFieldInitSpec(this, _commit_callbacks, /* @__PURE__ */ new Set());
|
|
612
615
|
_classPrivateFieldInitSpec(this, _discard_callbacks, /* @__PURE__ */ new Set());
|
|
613
|
-
_classPrivateFieldInitSpec(this, _pending,
|
|
614
|
-
_classPrivateFieldInitSpec(this, _blocking_pending,
|
|
616
|
+
_classPrivateFieldInitSpec(this, _pending, /* @__PURE__ */ new Map());
|
|
617
|
+
_classPrivateFieldInitSpec(this, _blocking_pending, /* @__PURE__ */ new Map());
|
|
615
618
|
_classPrivateFieldInitSpec(this, _deferred, null);
|
|
616
619
|
_classPrivateFieldInitSpec(this, _roots, []);
|
|
620
|
+
_classPrivateFieldInitSpec(this, _new_effects, []);
|
|
617
621
|
_classPrivateFieldInitSpec(this, _dirty_effects$1, /* @__PURE__ */ new Set());
|
|
618
622
|
_classPrivateFieldInitSpec(this, _maybe_dirty_effects$1, /* @__PURE__ */ new Set());
|
|
619
623
|
_classPrivateFieldInitSpec(this, _skipped_branches, /* @__PURE__ */ new Map());
|
|
620
624
|
_defineProperty(this, "is_fork", false);
|
|
621
625
|
_classPrivateFieldInitSpec(this, _decrement_queued, false);
|
|
626
|
+
_classPrivateFieldInitSpec(this, _blockers, /* @__PURE__ */ new Set());
|
|
622
627
|
}
|
|
623
628
|
/**
|
|
624
629
|
* Add an effect to the #skipped_branches map and reset its children
|
|
@@ -652,13 +657,14 @@ var Batch = class Batch {
|
|
|
652
657
|
/**
|
|
653
658
|
* Associate a change to a given source with the current
|
|
654
659
|
* batch, noting its previous and current values
|
|
655
|
-
* @param {
|
|
660
|
+
* @param {Value} source
|
|
656
661
|
* @param {any} old_value
|
|
662
|
+
* @param {boolean} [is_derived]
|
|
657
663
|
*/
|
|
658
|
-
capture(source, old_value) {
|
|
664
|
+
capture(source, old_value, is_derived = false) {
|
|
659
665
|
if (old_value !== UNINITIALIZED && !this.previous.has(source)) this.previous.set(source, old_value);
|
|
660
666
|
if ((source.f & 8388608) === 0) {
|
|
661
|
-
this.current.set(source, source.v);
|
|
667
|
+
this.current.set(source, [source.v, is_derived]);
|
|
662
668
|
batch_values?.set(source, source.v);
|
|
663
669
|
}
|
|
664
670
|
}
|
|
@@ -691,20 +697,37 @@ var Batch = class Batch {
|
|
|
691
697
|
batches.delete(this);
|
|
692
698
|
}
|
|
693
699
|
/**
|
|
694
|
-
*
|
|
700
|
+
* @param {Effect} effect
|
|
701
|
+
*/
|
|
702
|
+
register_created_effect(effect) {
|
|
703
|
+
_classPrivateFieldGet2(_new_effects, this).push(effect);
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
695
706
|
* @param {boolean} blocking
|
|
707
|
+
* @param {Effect} effect
|
|
696
708
|
*/
|
|
697
|
-
increment(blocking) {
|
|
698
|
-
|
|
699
|
-
|
|
709
|
+
increment(blocking, effect) {
|
|
710
|
+
let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
|
|
711
|
+
_classPrivateFieldGet2(_pending, this).set(effect, pending_count + 1);
|
|
712
|
+
if (blocking) {
|
|
713
|
+
let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
|
|
714
|
+
_classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count + 1);
|
|
715
|
+
}
|
|
700
716
|
}
|
|
701
717
|
/**
|
|
702
718
|
* @param {boolean} blocking
|
|
719
|
+
* @param {Effect} effect
|
|
703
720
|
* @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
|
|
704
721
|
*/
|
|
705
|
-
decrement(blocking, skip) {
|
|
706
|
-
|
|
707
|
-
if (
|
|
722
|
+
decrement(blocking, effect, skip) {
|
|
723
|
+
let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
|
|
724
|
+
if (pending_count === 1) _classPrivateFieldGet2(_pending, this).delete(effect);
|
|
725
|
+
else _classPrivateFieldGet2(_pending, this).set(effect, pending_count - 1);
|
|
726
|
+
if (blocking) {
|
|
727
|
+
let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
|
|
728
|
+
if (blocking_pending_count === 1) _classPrivateFieldGet2(_blocking_pending, this).delete(effect);
|
|
729
|
+
else _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count - 1);
|
|
730
|
+
}
|
|
708
731
|
if (_classPrivateFieldGet2(_decrement_queued, this) || skip) return;
|
|
709
732
|
_classPrivateFieldSet2(_decrement_queued, this, true);
|
|
710
733
|
queue_micro_task(() => {
|
|
@@ -751,10 +774,19 @@ var Batch = class Batch {
|
|
|
751
774
|
batch_values = null;
|
|
752
775
|
return;
|
|
753
776
|
}
|
|
754
|
-
batch_values = new Map(
|
|
777
|
+
batch_values = /* @__PURE__ */ new Map();
|
|
778
|
+
for (const [source, [value]] of this.current) batch_values.set(source, value);
|
|
755
779
|
for (const batch of batches) {
|
|
756
780
|
if (batch === this || batch.is_fork) continue;
|
|
757
|
-
|
|
781
|
+
var intersects = false;
|
|
782
|
+
var differs = false;
|
|
783
|
+
if (batch.id < this.id) for (const [source, [, is_derived]] of batch.current) {
|
|
784
|
+
if (is_derived) continue;
|
|
785
|
+
intersects || (intersects = this.current.has(source));
|
|
786
|
+
differs || (differs = !this.current.has(source));
|
|
787
|
+
}
|
|
788
|
+
if (intersects && differs) _classPrivateFieldGet2(_blockers, this).add(batch);
|
|
789
|
+
else for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
|
|
758
790
|
}
|
|
759
791
|
}
|
|
760
792
|
/**
|
|
@@ -785,7 +817,22 @@ var Batch = class Batch {
|
|
|
785
817
|
};
|
|
786
818
|
_Batch = Batch;
|
|
787
819
|
function _is_deferred() {
|
|
788
|
-
return this.is_fork || _classPrivateFieldGet2(_blocking_pending, this) > 0;
|
|
820
|
+
return this.is_fork || _classPrivateFieldGet2(_blocking_pending, this).size > 0;
|
|
821
|
+
}
|
|
822
|
+
function _is_blocked() {
|
|
823
|
+
for (const batch of _classPrivateFieldGet2(_blockers, this)) for (const effect of _classPrivateFieldGet2(_blocking_pending, batch).keys()) {
|
|
824
|
+
var skipped = false;
|
|
825
|
+
var e = effect;
|
|
826
|
+
while (e.parent !== null) {
|
|
827
|
+
if (_classPrivateFieldGet2(_skipped_branches, this).has(e)) {
|
|
828
|
+
skipped = true;
|
|
829
|
+
break;
|
|
830
|
+
}
|
|
831
|
+
e = e.parent;
|
|
832
|
+
}
|
|
833
|
+
if (!skipped) return true;
|
|
834
|
+
}
|
|
835
|
+
return false;
|
|
789
836
|
}
|
|
790
837
|
function _process() {
|
|
791
838
|
if (flush_count++ > 1e3) {
|
|
@@ -828,12 +875,12 @@ function _process() {
|
|
|
828
875
|
}
|
|
829
876
|
collected_effects = null;
|
|
830
877
|
legacy_updates = null;
|
|
831
|
-
if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) {
|
|
878
|
+
if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this) || _assertClassBrand(_Batch_brand, this, _is_blocked).call(this)) {
|
|
832
879
|
_assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
|
|
833
880
|
_assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
|
|
834
881
|
for (const [e, t] of _classPrivateFieldGet2(_skipped_branches, this)) reset_branch(e, t);
|
|
835
882
|
} else {
|
|
836
|
-
if (_classPrivateFieldGet2(_pending, this) === 0) batches.delete(this);
|
|
883
|
+
if (_classPrivateFieldGet2(_pending, this).size === 0) batches.delete(this);
|
|
837
884
|
_classPrivateFieldGet2(_dirty_effects$1, this).clear();
|
|
838
885
|
_classPrivateFieldGet2(_maybe_dirty_effects$1, this).clear();
|
|
839
886
|
for (const fn of _classPrivateFieldGet2(_commit_callbacks, this)) fn(this);
|
|
@@ -901,9 +948,12 @@ function _commit$1() {
|
|
|
901
948
|
var is_earlier = batch.id < this.id;
|
|
902
949
|
/** @type {Source[]} */
|
|
903
950
|
var sources = [];
|
|
904
|
-
for (const [source, value] of this.current) {
|
|
905
|
-
if (batch.current.has(source))
|
|
906
|
-
|
|
951
|
+
for (const [source, [value, is_derived]] of this.current) {
|
|
952
|
+
if (batch.current.has(source)) {
|
|
953
|
+
var batch_value = batch.current.get(source)[0];
|
|
954
|
+
if (is_earlier && value !== batch_value) batch.current.set(source, [value, is_derived]);
|
|
955
|
+
else continue;
|
|
956
|
+
}
|
|
907
957
|
sources.push(source);
|
|
908
958
|
}
|
|
909
959
|
var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
|
|
@@ -916,6 +966,12 @@ function _commit$1() {
|
|
|
916
966
|
/** @type {Map<Reaction, boolean>} */
|
|
917
967
|
var checked = /* @__PURE__ */ new Map();
|
|
918
968
|
for (var source of sources) mark_effects(source, others, marked, checked);
|
|
969
|
+
checked = /* @__PURE__ */ new Map();
|
|
970
|
+
var current_unequal = [...batch.current.keys()].filter((c) => this.current.has(c) ? this.current.get(c)[0] !== c : true);
|
|
971
|
+
for (const effect of _classPrivateFieldGet2(_new_effects, this)) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
|
|
972
|
+
set_signal_status(effect, DIRTY);
|
|
973
|
+
batch.schedule(effect);
|
|
974
|
+
} else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
|
|
919
975
|
if (_classPrivateFieldGet2(_roots, batch).length > 0) {
|
|
920
976
|
batch.apply();
|
|
921
977
|
for (var root of _classPrivateFieldGet2(_roots, batch)) _assertClassBrand(_Batch_brand, batch, _traverse).call(batch, root, [], []);
|
|
@@ -924,6 +980,13 @@ function _commit$1() {
|
|
|
924
980
|
batch.deactivate();
|
|
925
981
|
}
|
|
926
982
|
}
|
|
983
|
+
for (const batch of batches) if (_classPrivateFieldGet2(_blockers, batch).has(this)) {
|
|
984
|
+
_classPrivateFieldGet2(_blockers, batch).delete(this);
|
|
985
|
+
if (_classPrivateFieldGet2(_blockers, batch).size === 0 && !_assertClassBrand(_Batch_brand, batch, _is_deferred).call(batch)) {
|
|
986
|
+
batch.activate();
|
|
987
|
+
_assertClassBrand(_Batch_brand, batch, _process).call(batch);
|
|
988
|
+
}
|
|
989
|
+
}
|
|
927
990
|
}
|
|
928
991
|
/**
|
|
929
992
|
* Synchronously flush any pending updates.
|
|
@@ -1076,7 +1139,7 @@ function reset_all(effect) {
|
|
|
1076
1139
|
}
|
|
1077
1140
|
}
|
|
1078
1141
|
//#endregion
|
|
1079
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1142
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1080
1143
|
/**
|
|
1081
1144
|
* Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
|
|
1082
1145
|
* It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
|
|
@@ -1149,7 +1212,7 @@ function createSubscriber(start) {
|
|
|
1149
1212
|
};
|
|
1150
1213
|
}
|
|
1151
1214
|
//#endregion
|
|
1152
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1215
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1153
1216
|
/** @import { Effect, Source, TemplateNode, } from '#client' */
|
|
1154
1217
|
/**
|
|
1155
1218
|
* @typedef {{
|
|
@@ -1489,7 +1552,7 @@ function _update_pending_count(d, batch) {
|
|
|
1489
1552
|
}
|
|
1490
1553
|
}
|
|
1491
1554
|
//#endregion
|
|
1492
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1555
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
1493
1556
|
/** @import { Blocker, Effect, Value } from '#client' */
|
|
1494
1557
|
/**
|
|
1495
1558
|
* @param {Blocker[]} blockers
|
|
@@ -1562,14 +1625,15 @@ function unset_context(deactivate_batch = true) {
|
|
|
1562
1625
|
* @returns {(skip?: boolean) => void}
|
|
1563
1626
|
*/
|
|
1564
1627
|
function increment_pending() {
|
|
1565
|
-
var
|
|
1628
|
+
var effect = active_effect;
|
|
1629
|
+
var boundary = effect.b;
|
|
1566
1630
|
var batch = current_batch;
|
|
1567
1631
|
var blocking = boundary.is_rendered();
|
|
1568
1632
|
boundary.update_pending_count(1, batch);
|
|
1569
|
-
batch.increment(blocking);
|
|
1633
|
+
batch.increment(blocking, effect);
|
|
1570
1634
|
return (skip = false) => {
|
|
1571
1635
|
boundary.update_pending_count(-1, batch);
|
|
1572
|
-
batch.decrement(blocking, skip);
|
|
1636
|
+
batch.decrement(blocking, effect, skip);
|
|
1573
1637
|
};
|
|
1574
1638
|
}
|
|
1575
1639
|
/**
|
|
@@ -1738,7 +1802,7 @@ function update_derived(derived) {
|
|
|
1738
1802
|
derived.wv = increment_write_version();
|
|
1739
1803
|
if (!current_batch?.is_fork || derived.deps === null) {
|
|
1740
1804
|
derived.v = value;
|
|
1741
|
-
current_batch?.capture(derived, old_value);
|
|
1805
|
+
current_batch?.capture(derived, old_value, true);
|
|
1742
1806
|
if (derived.deps === null) {
|
|
1743
1807
|
set_signal_status(derived, CLEAN);
|
|
1744
1808
|
return;
|
|
@@ -1772,7 +1836,7 @@ function unfreeze_derived_effects(derived) {
|
|
|
1772
1836
|
for (const e of derived.effects) if (e.teardown) update_effect(e);
|
|
1773
1837
|
}
|
|
1774
1838
|
//#endregion
|
|
1775
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1839
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
1776
1840
|
/** @import { Derived, Effect, Source, Value } from '#client' */
|
|
1777
1841
|
/** @type {Set<any>} */
|
|
1778
1842
|
var eager_effects = /* @__PURE__ */ new Set();
|
|
@@ -2067,7 +2131,7 @@ function proxy(value) {
|
|
|
2067
2131
|
});
|
|
2068
2132
|
}
|
|
2069
2133
|
//#endregion
|
|
2070
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2134
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/operations.js
|
|
2071
2135
|
/** @import { Effect, TemplateNode } from '#client' */
|
|
2072
2136
|
/** @type {Window} */
|
|
2073
2137
|
var $window;
|
|
@@ -2188,7 +2252,7 @@ function merge_text_nodes(text) {
|
|
|
2188
2252
|
}
|
|
2189
2253
|
}
|
|
2190
2254
|
//#endregion
|
|
2191
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2255
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
2192
2256
|
/**
|
|
2193
2257
|
* @template T
|
|
2194
2258
|
* @param {() => T} fn
|
|
@@ -2206,7 +2270,7 @@ function without_reactive_context(fn) {
|
|
|
2206
2270
|
}
|
|
2207
2271
|
}
|
|
2208
2272
|
//#endregion
|
|
2209
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2273
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
2210
2274
|
/** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
|
|
2211
2275
|
/**
|
|
2212
2276
|
* @param {'$effect' | '$effect.pre' | '$inspect'} rune
|
|
@@ -2256,6 +2320,7 @@ function create_effect(type, fn) {
|
|
|
2256
2320
|
wv: 0,
|
|
2257
2321
|
ac: null
|
|
2258
2322
|
};
|
|
2323
|
+
current_batch?.register_created_effect(effect);
|
|
2259
2324
|
/** @type {Effect | null} */
|
|
2260
2325
|
var e = effect;
|
|
2261
2326
|
if ((type & 4) !== 0) if (collected_effects !== null) collected_effects.push(effect);
|
|
@@ -2464,7 +2529,7 @@ function destroy_effect(effect, remove_dom = true) {
|
|
|
2464
2529
|
effect.f |= DESTROYED;
|
|
2465
2530
|
var parent = effect.parent;
|
|
2466
2531
|
if (parent !== null && parent.first !== null) unlink_effect(effect);
|
|
2467
|
-
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null;
|
|
2532
|
+
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = effect.b = null;
|
|
2468
2533
|
}
|
|
2469
2534
|
/**
|
|
2470
2535
|
*
|
|
@@ -2587,14 +2652,14 @@ function move_effect(effect, fragment) {
|
|
|
2587
2652
|
}
|
|
2588
2653
|
}
|
|
2589
2654
|
//#endregion
|
|
2590
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2655
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/legacy.js
|
|
2591
2656
|
/**
|
|
2592
2657
|
* @type {Set<Value> | null}
|
|
2593
2658
|
* @deprecated
|
|
2594
2659
|
*/
|
|
2595
2660
|
var captured_signals = null;
|
|
2596
2661
|
//#endregion
|
|
2597
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2662
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/runtime.js
|
|
2598
2663
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
2599
2664
|
var is_updating_effect = false;
|
|
2600
2665
|
var is_destroying_effect = false;
|
|
@@ -2938,7 +3003,7 @@ function untrack(fn) {
|
|
|
2938
3003
|
}
|
|
2939
3004
|
}
|
|
2940
3005
|
//#endregion
|
|
2941
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3006
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
2942
3007
|
/**
|
|
2943
3008
|
* Used on elements, as a map of event type -> event handler,
|
|
2944
3009
|
* and on events themselves to track which element handled an event
|
|
@@ -3021,7 +3086,7 @@ function handle_event_propagation(event) {
|
|
|
3021
3086
|
}
|
|
3022
3087
|
}
|
|
3023
3088
|
//#endregion
|
|
3024
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3089
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
3025
3090
|
var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (html) => {
|
|
3026
3091
|
return html;
|
|
3027
3092
|
} });
|
|
@@ -3038,7 +3103,7 @@ function create_fragment_from_html(html) {
|
|
|
3038
3103
|
return elem.content;
|
|
3039
3104
|
}
|
|
3040
3105
|
//#endregion
|
|
3041
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3106
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
3042
3107
|
/** @import { Effect, EffectNodes, TemplateNode } from '#client' */
|
|
3043
3108
|
/** @import { TemplateStructure } from './types' */
|
|
3044
3109
|
/**
|
|
@@ -3297,7 +3362,7 @@ function unmount(component, options) {
|
|
|
3297
3362
|
return Promise.resolve();
|
|
3298
3363
|
}
|
|
3299
3364
|
//#endregion
|
|
3300
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3365
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
3301
3366
|
/** @import { Effect, TemplateNode } from '#client' */
|
|
3302
3367
|
var _batches = /* @__PURE__ */ new WeakMap();
|
|
3303
3368
|
var _onscreen = /* @__PURE__ */ new WeakMap();
|
|
@@ -3419,7 +3484,7 @@ var BranchManager = class {
|
|
|
3419
3484
|
}
|
|
3420
3485
|
};
|
|
3421
3486
|
//#endregion
|
|
3422
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3487
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
3423
3488
|
/** @import { TemplateNode } from '#client' */
|
|
3424
3489
|
/**
|
|
3425
3490
|
* @param {TemplateNode} node
|
|
@@ -3525,7 +3590,7 @@ function html(node, get_value, is_controlled = false, svg = false, mathml = fals
|
|
|
3525
3590
|
});
|
|
3526
3591
|
}
|
|
3527
3592
|
//#endregion
|
|
3528
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3593
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
3529
3594
|
/**
|
|
3530
3595
|
* @param {Node} anchor
|
|
3531
3596
|
* @param {{ hash: string, code: string }} css
|
|
@@ -3543,7 +3608,7 @@ function append_styles(anchor, css) {
|
|
|
3543
3608
|
});
|
|
3544
3609
|
}
|
|
3545
3610
|
//#endregion
|
|
3546
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3611
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
|
|
3547
3612
|
var _ResizeObserverSingleton;
|
|
3548
3613
|
var _listeners = /* @__PURE__ */ new WeakMap();
|
|
3549
3614
|
var _observer = /* @__PURE__ */ new WeakMap();
|
|
@@ -3595,7 +3660,7 @@ function _getObserver() {
|
|
|
3595
3660
|
}
|
|
3596
3661
|
_defineProperty(ResizeObserverSingleton, "entries", /* @__PURE__ */ new WeakMap());
|
|
3597
3662
|
//#endregion
|
|
3598
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3663
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
3599
3664
|
/** @import { Effect, Source } from './types.js' */
|
|
3600
3665
|
/**
|
|
3601
3666
|
* This function is responsible for synchronizing a possibly bound prop with the inner component state.
|
|
@@ -3683,7 +3748,7 @@ function prop(props, key, flags, fallback) {
|
|
|
3683
3748
|
});
|
|
3684
3749
|
}
|
|
3685
3750
|
//#endregion
|
|
3686
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3751
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/legacy/legacy-client.js
|
|
3687
3752
|
/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
|
|
3688
3753
|
/**
|
|
3689
3754
|
* Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.
|
|
@@ -3801,7 +3866,7 @@ var Svelte4Component = class {
|
|
|
3801
3866
|
}
|
|
3802
3867
|
};
|
|
3803
3868
|
//#endregion
|
|
3804
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3869
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
|
|
3805
3870
|
/**
|
|
3806
3871
|
* @typedef {Object} CustomElementPropDefinition
|
|
3807
3872
|
* @property {string} [attribute]
|