@solidjs/signals 0.13.12 → 0.13.13

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.
Files changed (4) hide show
  1. package/dist/dev.js +98 -41
  2. package/dist/node.cjs +366 -330
  3. package/dist/prod.js +263 -227
  4. package/package.json +1 -1
package/dist/node.cjs CHANGED
@@ -38,13 +38,13 @@ const a = 1 << 0;
38
38
  const d = 1 << 1;
39
39
  const h = 1 << 2;
40
40
  const p = 1;
41
- const g = 2;
42
- const y = 3;
41
+ const y = 2;
42
+ const g = 3;
43
43
  const S = {};
44
44
  const w = {};
45
45
  const m = "sp";
46
- const _ = typeof Proxy === "function";
47
- const b = {};
46
+ const b = typeof Proxy === "function";
47
+ const _ = {};
48
48
  const O = Symbol("refresh");
49
49
  function actualInsertIntoHeap(e, t) {
50
50
  const n = (e.i?.t ? e.i.u?.o : e.i?.o) ?? -1;
@@ -117,12 +117,12 @@ function markNode(e, r = n) {
117
117
  }
118
118
  function runHeap(e, t) {
119
119
  e._ = false;
120
- for (e.A = 0; e.A <= e.S; e.A++) {
121
- let n = e.l[e.A];
120
+ for (e.j = 0; e.j <= e.S; e.j++) {
121
+ let n = e.l[e.j];
122
122
  while (n !== undefined) {
123
123
  if (n.m & i) t(n);
124
124
  else adjustHeight(n, e);
125
- n = e.l[e.A];
125
+ n = e.l[e.j];
126
126
  }
127
127
  }
128
128
  e.S = 0;
@@ -130,7 +130,7 @@ function runHeap(e, t) {
130
130
  function adjustHeight(e, t) {
131
131
  deleteFromHeap(e, t);
132
132
  let n = e.o;
133
- for (let t = e.N; t; t = t.j) {
133
+ for (let t = e.A; t; t = t.N) {
134
134
  const e = t.R;
135
135
  const r = e.L || e;
136
136
  if (r.I && r.o >= n) n = r.o + 1;
@@ -144,16 +144,16 @@ function adjustHeight(e, t) {
144
144
  }
145
145
  const x = undefined;
146
146
  const v = new Set();
147
- const P = { l: new Array(2e3).fill(undefined), _: false, A: 0, S: 0 };
148
- const k = { l: new Array(2e3).fill(undefined), _: false, A: 0, S: 0 };
147
+ const P = { l: new Array(2e3).fill(undefined), _: false, j: 0, S: 0 };
148
+ const k = { l: new Array(2e3).fill(undefined), _: false, j: 0, S: 0 };
149
149
  let E = 0;
150
150
  let C = null;
151
151
  let W = false;
152
- let A = false;
153
- let N = null;
152
+ let j = false;
153
+ let A = null;
154
154
  function enforceLoadingBoundary(e) {}
155
155
  function shouldReadStashedOptimisticValue(e) {
156
- return !!N?.has(e);
156
+ return !!A?.has(e);
157
157
  }
158
158
  function runLaneEffects(e) {
159
159
  for (const t of L) {
@@ -169,25 +169,25 @@ function queueStashedOptimisticEffects(e) {
169
169
  for (let t = e.O; t !== null; t = t.P) {
170
170
  const e = t.k;
171
171
  if (!e.D) continue;
172
- if (e.D === y) {
172
+ if (e.D === g) {
173
173
  if (!e.F) {
174
174
  e.F = true;
175
- e.M.enqueue(g, e.V);
175
+ e.M.enqueue(y, e.V);
176
176
  }
177
177
  continue;
178
178
  }
179
179
  const n = e.m & o ? k : P;
180
- if (n.A > e.o) n.A = e.o;
180
+ if (n.j > e.o) n.j = e.o;
181
181
  insertIntoHeap(e, n);
182
182
  }
183
183
  }
184
184
  function setProjectionWriteActive(e) {
185
- A = e;
185
+ j = e;
186
186
  }
187
187
  function mergeTransitionState(e, t) {
188
188
  t.B = e;
189
- e.G.push(...t.G);
190
- for (const n of L) if (n.K === t) n.K = e;
189
+ e.K.push(...t.K);
190
+ for (const n of L) if (n.G === t) n.G = e;
191
191
  e.U.push(...t.U);
192
192
  for (const n of t.J) e.J.add(n);
193
193
  for (const [n, r] of t.X) {
@@ -207,17 +207,17 @@ function resolveOptimisticNodes(e) {
207
207
  const r = n.ee;
208
208
  n.ee = S;
209
209
  if (r !== S && n.$ !== r) insertSubs(n, true);
210
- n.K = null;
210
+ n.G = null;
211
211
  }
212
212
  e.length = 0;
213
213
  }
214
214
  function cleanupCompletedLanes(e) {
215
215
  for (const t of L) {
216
- const n = e ? t.K === e : !t.K;
216
+ const n = e ? t.G === e : !t.G;
217
217
  if (!n) continue;
218
218
  if (!t.T) {
219
219
  if (t.q[0].length) runQueue(t.q[0], p);
220
- if (t.q[1].length) runQueue(t.q[1], g);
220
+ if (t.q[1].length) runQueue(t.q[1], y);
221
221
  }
222
222
  if (t.te.Y === t) t.te.Y = undefined;
223
223
  t.H.clear();
@@ -230,7 +230,7 @@ function cleanupCompletedLanes(e) {
230
230
  function schedule() {
231
231
  if (W) return;
232
232
  W = true;
233
- if (!j.ne && !A) queueMicrotask(flush);
233
+ if (!N.ne && !j) queueMicrotask(flush);
234
234
  }
235
235
  class Queue {
236
236
  i = null;
@@ -317,25 +317,25 @@ class GlobalQueue extends Queue {
317
317
  this.U = [];
318
318
  this.J = new Set();
319
319
  runLaneEffects(p);
320
- runLaneEffects(g);
320
+ runLaneEffects(y);
321
321
  this.stashQueues(e.le);
322
322
  E++;
323
- W = P.S >= P.A;
323
+ W = P.S >= P.j;
324
324
  reassignPendingTransition(e.se);
325
325
  C = null;
326
- if (!e.G.length && e.U.length) {
327
- N = new Set();
326
+ if (!e.K.length && e.U.length) {
327
+ A = new Set();
328
328
  for (let t = 0; t < e.U.length; t++) {
329
329
  const n = e.U[t];
330
330
  if (n.I || n.ce) continue;
331
- N.add(n);
331
+ A.add(n);
332
332
  queueStashedOptimisticEffects(n);
333
333
  }
334
334
  }
335
335
  try {
336
336
  finalizePureQueue(null, true);
337
337
  } finally {
338
- N = null;
338
+ A = null;
339
339
  }
340
340
  return;
341
341
  }
@@ -351,11 +351,11 @@ class GlobalQueue extends Queue {
351
351
  finalizePureQueue();
352
352
  }
353
353
  E++;
354
- W = P.S >= P.A;
354
+ W = P.S >= P.j;
355
355
  runLaneEffects(p);
356
356
  this.run(p);
357
- runLaneEffects(g);
358
- this.run(g);
357
+ runLaneEffects(y);
358
+ this.run(y);
359
359
  if (false);
360
360
  } finally {
361
361
  this.ne = false;
@@ -389,7 +389,7 @@ class GlobalQueue extends Queue {
389
389
  X: new Map(),
390
390
  U: [],
391
391
  J: new Set(),
392
- G: [],
392
+ K: [],
393
393
  le: { re: [[], []], ie: [] },
394
394
  B: false
395
395
  };
@@ -404,7 +404,7 @@ class GlobalQueue extends Queue {
404
404
  if (this.se !== C.se) {
405
405
  for (let e = 0; e < this.se.length; e++) {
406
406
  const t = this.se[e];
407
- t.K = C;
407
+ t.G = C;
408
408
  C.se.push(t);
409
409
  }
410
410
  this.se = C.se;
@@ -412,13 +412,13 @@ class GlobalQueue extends Queue {
412
412
  if (this.U !== C.U) {
413
413
  for (let e = 0; e < this.U.length; e++) {
414
414
  const t = this.U[e];
415
- t.K = C;
415
+ t.G = C;
416
416
  C.U.push(t);
417
417
  }
418
418
  this.U = C.U;
419
419
  }
420
420
  for (const e of L) {
421
- if (!e.K) e.K = C;
421
+ if (!e.G) e.G = C;
422
422
  }
423
423
  if (this.J !== C.J) {
424
424
  for (const e of this.J) C.J.add(e);
@@ -442,28 +442,28 @@ function insertSubs(e, t = false) {
442
442
  i.k.Y = undefined;
443
443
  }
444
444
  const e = i.k;
445
- if (e.D === y) {
445
+ if (e.D === g) {
446
446
  if (!e.F) {
447
447
  e.F = true;
448
- e.M.enqueue(g, e.V);
448
+ e.M.enqueue(y, e.V);
449
449
  }
450
450
  continue;
451
451
  }
452
452
  const s = i.k.m & o ? k : P;
453
- if (s.A > i.k.o) s.A = i.k.o;
453
+ if (s.j > i.k.o) s.j = i.k.o;
454
454
  insertIntoHeap(i.k, s);
455
455
  }
456
456
  }
457
457
  function commitPendingNodes() {
458
- const e = j.se;
458
+ const e = N.se;
459
459
  for (let t = 0; t < e.length; t++) {
460
460
  const n = e[t];
461
461
  if (n.Z !== S) {
462
462
  n.$ = n.Z;
463
463
  n.Z = S;
464
- if (n.D && n.D !== y) n.F = true;
464
+ if (n.D && n.D !== g) n.F = true;
465
465
  }
466
- if (!(n.ge & a)) n.ge &= ~h;
466
+ if (!(n.ye & a)) n.ye &= ~h;
467
467
  if (n.I) GlobalQueue.ue(n, false, true);
468
468
  }
469
469
  e.length = 0;
@@ -471,12 +471,12 @@ function commitPendingNodes() {
471
471
  function finalizePureQueue(e = null, t = false) {
472
472
  const n = !t;
473
473
  if (n) commitPendingNodes();
474
- if (!t) checkBoundaryChildren(j);
475
- if (P.S >= P.A) runHeap(P, GlobalQueue.oe);
474
+ if (!t) checkBoundaryChildren(N);
475
+ if (P.S >= P.j) runHeap(P, GlobalQueue.oe);
476
476
  if (n) {
477
477
  commitPendingNodes();
478
- resolveOptimisticNodes(e ? e.U : j.U);
479
- const t = e ? e.J : j.J;
478
+ resolveOptimisticNodes(e ? e.U : N.U);
479
+ const t = e ? e.J : N.J;
480
480
  if (GlobalQueue.fe && t.size) {
481
481
  for (const e of t) {
482
482
  GlobalQueue.fe(e);
@@ -494,21 +494,21 @@ function checkBoundaryChildren(e) {
494
494
  }
495
495
  }
496
496
  function trackOptimisticStore(e) {
497
- j.J.add(e);
497
+ N.J.add(e);
498
498
  schedule();
499
499
  }
500
500
  function reassignPendingTransition(e) {
501
501
  for (let t = 0; t < e.length; t++) {
502
- e[t].K = C;
502
+ e[t].G = C;
503
503
  }
504
504
  }
505
- const j = new GlobalQueue();
505
+ const N = new GlobalQueue();
506
506
  function flush() {
507
- if (j.ne) {
507
+ if (N.ne) {
508
508
  return;
509
509
  }
510
510
  while (W || C) {
511
- j.flush();
511
+ N.flush();
512
512
  }
513
513
  }
514
514
  function runQueue(e, t) {
@@ -516,19 +516,19 @@ function runQueue(e, t) {
516
516
  }
517
517
  function reporterBlocksSource(e, t) {
518
518
  if (e.m & (o | u)) return false;
519
- if (e.ye === t || e.Se?.has(t)) return true;
520
- for (let n = e.N; n; n = n.j) {
519
+ if (e.ge === t || e.Se?.has(t)) return true;
520
+ for (let n = e.A; n; n = n.N) {
521
521
  let e = n.R;
522
522
  while (e) {
523
523
  if (e === t || e.L === t) return true;
524
524
  e = e.we;
525
525
  }
526
526
  }
527
- return !!(e.ge & a && e.ae instanceof NotReadyError && e.ae.source === t);
527
+ return !!(e.ye & a && e.ae instanceof NotReadyError && e.ae.source === t);
528
528
  }
529
529
  function transitionComplete(e) {
530
530
  if (e.B) return true;
531
- if (e.G.length) return false;
531
+ if (e.K.length) return false;
532
532
  let t = true;
533
533
  for (const [n, r] of e.X) {
534
534
  let i = false;
@@ -540,7 +540,7 @@ function transitionComplete(e) {
540
540
  r.delete(e);
541
541
  }
542
542
  if (!i) e.X.delete(n);
543
- else if (n.ge & a && n.ae?.source === n) {
543
+ else if (n.ye & a && n.ae?.source === n) {
544
544
  t = false;
545
545
  break;
546
546
  }
@@ -550,8 +550,8 @@ function transitionComplete(e) {
550
550
  const r = e.U[n];
551
551
  if (
552
552
  hasActiveOverride(r) &&
553
- "ge" in r &&
554
- r.ge & a &&
553
+ "ye" in r &&
554
+ r.ye & a &&
555
555
  r.ae instanceof NotReadyError &&
556
556
  r.ae.source !== r
557
557
  ) {
@@ -588,10 +588,10 @@ function getOrCreateLane(e) {
588
588
  }
589
589
  const n = e.we;
590
590
  const r = n?.Y ? findLane(n.Y) : null;
591
- t = { te: e, H: new Set(), q: [[], []], T: null, K: C, me: r };
591
+ t = { te: e, H: new Set(), q: [[], []], T: null, G: C, me: r };
592
592
  R.set(e, t);
593
593
  L.add(t);
594
- e._e = false;
594
+ e.be = false;
595
595
  return t;
596
596
  }
597
597
  function findLane(e) {
@@ -617,7 +617,7 @@ function resolveLane(e) {
617
617
  return undefined;
618
618
  }
619
619
  function resolveTransition(e) {
620
- return resolveLane(e)?.K ?? e.K;
620
+ return resolveLane(e)?.G ?? e.G;
621
621
  }
622
622
  function hasActiveOverride(e) {
623
623
  return !!(e.ee !== undefined && e.ee !== S);
@@ -645,10 +645,10 @@ function assignOrMergeLane(e, t) {
645
645
  }
646
646
  function unlinkSubs(e) {
647
647
  const t = e.R;
648
- const n = e.j;
648
+ const n = e.N;
649
649
  const r = e.P;
650
- const i = e.be;
651
- if (r !== null) r.be = i;
650
+ const i = e._e;
651
+ if (r !== null) r._e = i;
652
652
  else t.Oe = i;
653
653
  if (i !== null) i.P = r;
654
654
  else {
@@ -662,11 +662,11 @@ function unlinkSubs(e) {
662
662
  }
663
663
  function unobserved(e) {
664
664
  deleteFromHeap(e, e.m & o ? k : P);
665
- let t = e.N;
665
+ let t = e.A;
666
666
  while (t !== null) {
667
667
  t = unlinkSubs(t);
668
668
  }
669
- e.N = null;
669
+ e.A = null;
670
670
  disposeChildren(e, true);
671
671
  }
672
672
  function link(e, t) {
@@ -675,7 +675,7 @@ function link(e, t) {
675
675
  let i = null;
676
676
  const s = t.m & r;
677
677
  if (s) {
678
- i = n !== null ? n.j : t.N;
678
+ i = n !== null ? n.N : t.A;
679
679
  if (i !== null && i.R === e) {
680
680
  t.Pe = i;
681
681
  return;
@@ -683,20 +683,20 @@ function link(e, t) {
683
683
  }
684
684
  const o = e.Oe;
685
685
  if (o !== null && o.k === t && (!s || isValidLink(o, t))) return;
686
- const u = (t.Pe = e.Oe = { R: e, k: t, j: i, be: o, P: null });
687
- if (n !== null) n.j = u;
688
- else t.N = u;
686
+ const u = (t.Pe = e.Oe = { R: e, k: t, N: i, _e: o, P: null });
687
+ if (n !== null) n.N = u;
688
+ else t.A = u;
689
689
  if (o !== null) o.P = u;
690
690
  else e.O = u;
691
691
  }
692
692
  function isValidLink(e, t) {
693
693
  const n = t.Pe;
694
694
  if (n !== null) {
695
- let r = t.N;
695
+ let r = t.A;
696
696
  do {
697
697
  if (r === e) return true;
698
698
  if (r === n) break;
699
- r = r.j;
699
+ r = r.N;
700
700
  } while (r !== null);
701
701
  }
702
702
  return false;
@@ -715,11 +715,11 @@ function markDisposal(e) {
715
715
  }
716
716
  }
717
717
  function dispose(e) {
718
- let t = e.N || null;
718
+ let t = e.A || null;
719
719
  do {
720
720
  t = unlinkSubs(t);
721
721
  } while (t !== null);
722
- e.N = null;
722
+ e.A = null;
723
723
  e.Pe = null;
724
724
  disposeChildren(e, true);
725
725
  }
@@ -730,14 +730,14 @@ function disposeChildren(e, t = false, n) {
730
730
  let r = n ? e.We : e.ke;
731
731
  while (r) {
732
732
  const e = r.Ee;
733
- if (r.N) {
733
+ if (r.A) {
734
734
  const e = r;
735
735
  deleteFromHeap(e, e.m & o ? k : P);
736
- let t = e.N;
736
+ let t = e.A;
737
737
  do {
738
738
  t = unlinkSubs(t);
739
739
  } while (t !== null);
740
- e.N = null;
740
+ e.A = null;
741
741
  e.Pe = null;
742
742
  }
743
743
  disposeChildren(r, true);
@@ -747,12 +747,12 @@ function disposeChildren(e, t = false, n) {
747
747
  e.We = null;
748
748
  } else {
749
749
  e.ke = null;
750
- e.Ae = 0;
750
+ e.je = 0;
751
751
  }
752
752
  runDisposal(e, n);
753
753
  }
754
754
  function runDisposal(e, t) {
755
- let n = t ? e.Ne : e.je;
755
+ let n = t ? e.Ae : e.Ne;
756
756
  if (!n) return;
757
757
  if (Array.isArray(n)) {
758
758
  for (let e = 0; e < n.length; e++) {
@@ -762,12 +762,12 @@ function runDisposal(e, t) {
762
762
  } else {
763
763
  n.call(n);
764
764
  }
765
- t ? (e.Ne = null) : (e.je = null);
765
+ t ? (e.Ae = null) : (e.Ne = null);
766
766
  }
767
767
  function childId(e, t) {
768
768
  let n = e;
769
769
  while (n.Re && n.i) n = n.i;
770
- if (n.id != null) return formatId(n.id, t ? n.Ae++ : n.Ae);
770
+ if (n.id != null) return formatId(n.id, t ? n.je++ : n.je);
771
771
  throw new Error("Cannot get child id from owner without an id");
772
772
  }
773
773
  function getNextChildId(e) {
@@ -790,9 +790,9 @@ function getOwner() {
790
790
  }
791
791
  function cleanup(e) {
792
792
  if (!V) return e;
793
- if (!V.je) V.je = e;
794
- else if (Array.isArray(V.je)) V.je.push(e);
795
- else V.je = [V.je, e];
793
+ if (!V.Ne) V.Ne = e;
794
+ else if (Array.isArray(V.Ne)) V.Ne.push(e);
795
+ else V.Ne = [V.Ne, e];
796
796
  return e;
797
797
  }
798
798
  function isDisposed(e) {
@@ -808,11 +808,11 @@ function createOwner(e) {
808
808
  u: t?.t ? t.u : t,
809
809
  ke: null,
810
810
  Ee: null,
811
- je: null,
812
- M: t?.M ?? j,
813
- Le: t?.Le || b,
814
- Ae: 0,
815
811
  Ne: null,
812
+ M: t?.M ?? N,
813
+ Le: t?.Le || _,
814
+ je: 0,
815
+ Ae: null,
816
816
  We: null,
817
817
  i: t,
818
818
  dispose(e = true) {
@@ -835,28 +835,28 @@ function createRoot(e, t) {
835
835
  return runWithOwner(n, () => e(n.dispose));
836
836
  }
837
837
  function addPendingSource(e, t) {
838
- if (e.ye === t || e.Se?.has(t)) return false;
839
- if (!e.ye) {
840
- e.ye = t;
838
+ if (e.ge === t || e.Se?.has(t)) return false;
839
+ if (!e.ge) {
840
+ e.ge = t;
841
841
  return true;
842
842
  }
843
843
  if (!e.Se) {
844
- e.Se = new Set([e.ye, t]);
844
+ e.Se = new Set([e.ge, t]);
845
845
  } else {
846
846
  e.Se.add(t);
847
847
  }
848
- e.ye = undefined;
848
+ e.ge = undefined;
849
849
  return true;
850
850
  }
851
851
  function removePendingSource(e, t) {
852
- if (e.ye) {
853
- if (e.ye !== t) return false;
854
- e.ye = undefined;
852
+ if (e.ge) {
853
+ if (e.ge !== t) return false;
854
+ e.ge = undefined;
855
855
  return true;
856
856
  }
857
857
  if (!e.Se?.delete(t)) return false;
858
858
  if (e.Se.size === 1) {
859
- e.ye = e.Se.values().next().value;
859
+ e.ge = e.Se.values().next().value;
860
860
  e.Se = undefined;
861
861
  } else if (e.Se.size === 0) {
862
862
  e.Se = undefined;
@@ -864,7 +864,7 @@ function removePendingSource(e, t) {
864
864
  return true;
865
865
  }
866
866
  function clearPendingSources(e) {
867
- e.ye = undefined;
867
+ e.ge = undefined;
868
868
  e.Se?.clear();
869
869
  e.Se = undefined;
870
870
  }
@@ -895,24 +895,24 @@ function settlePendingSource(e) {
895
895
  if (n.has(r) || !removePendingSource(r, e)) return;
896
896
  n.add(r);
897
897
  r.de = E;
898
- const i = r.ye ?? r.Se?.values().next().value;
898
+ const i = r.ge ?? r.Se?.values().next().value;
899
899
  if (i) {
900
900
  setPendingError(r, i);
901
901
  updatePendingSignal(r);
902
902
  } else {
903
- r.ge &= ~a;
903
+ r.ye &= ~a;
904
904
  setPendingError(r);
905
905
  updatePendingSignal(r);
906
906
  if (r.Ie) {
907
- if (r.D === y) {
907
+ if (r.D === g) {
908
908
  const e = r;
909
909
  if (!e.F) {
910
910
  e.F = true;
911
- e.M.enqueue(g, e.V);
911
+ e.M.enqueue(y, e.V);
912
912
  }
913
913
  } else {
914
914
  const e = r.m & o ? k : P;
915
- if (e.A > r.o) e.A = r.o;
915
+ if (e.j > r.o) e.j = r.o;
916
916
  insertIntoHeap(r, e);
917
917
  }
918
918
  t = true;
@@ -936,17 +936,18 @@ function handleAsync(e, t, r) {
936
936
  let u;
937
937
  const handleError = n => {
938
938
  if (e.Ce !== t) return;
939
- j.initTransition(resolveTransition(e));
939
+ N.initTransition(resolveTransition(e));
940
940
  notifyStatus(e, n instanceof NotReadyError ? a : d, n);
941
941
  e.de = E;
942
942
  };
943
943
  const asyncWrite = (i, s) => {
944
944
  if (e.Ce !== t) return;
945
945
  if (e.m & (n | f)) return;
946
- j.initTransition(resolveTransition(e));
946
+ N.initTransition(resolveTransition(e));
947
+ const o = !!(e.ye & h);
947
948
  clearStatus(e);
948
- const o = resolveLane(e);
949
- if (o) o.H.delete(e);
949
+ const u = resolveLane(e);
950
+ if (u) u.H.delete(e);
950
951
  if (r) r(i);
951
952
  else if (e.ee !== undefined) {
952
953
  if (e.ee !== undefined && e.ee !== S) e.Z = i;
@@ -955,10 +956,11 @@ function handleAsync(e, t, r) {
955
956
  insertSubs(e);
956
957
  }
957
958
  e.de = E;
958
- } else if (o) {
959
- const t = e.$;
960
- const n = e.Te;
961
- if (!n || !n(i, t)) {
959
+ } else if (u) {
960
+ const t = e.D;
961
+ const n = e.$;
962
+ const r = e.Te;
963
+ if ((!t && o) || !r || !r(i, n)) {
962
964
  e.$ = i;
963
965
  e.de = E;
964
966
  if (e.He) {
@@ -990,7 +992,7 @@ function handleAsync(e, t, r) {
990
992
  );
991
993
  r = false;
992
994
  if (!n) {
993
- j.initTransition(resolveTransition(e));
995
+ N.initTransition(resolveTransition(e));
994
996
  throw new NotReadyError(V);
995
997
  }
996
998
  }
@@ -1044,7 +1046,7 @@ function handleAsync(e, t, r) {
1044
1046
  };
1045
1047
  const s = iterate();
1046
1048
  if (!r && !s) {
1047
- j.initTransition(resolveTransition(e));
1049
+ N.initTransition(resolveTransition(e));
1048
1050
  throw new NotReadyError(V);
1049
1051
  }
1050
1052
  }
@@ -1053,7 +1055,7 @@ function handleAsync(e, t, r) {
1053
1055
  function clearStatus(e, t = false) {
1054
1056
  clearPendingSources(e);
1055
1057
  e.Ie = false;
1056
- e.ge = t ? 0 : e.ge & h;
1058
+ e.ye = t ? 0 : e.ye & h;
1057
1059
  setPendingError(e);
1058
1060
  updatePendingSignal(e);
1059
1061
  e.Qe?.();
@@ -1068,11 +1070,11 @@ function notifyStatus(e, t, n, r, i) {
1068
1070
  if (!r) {
1069
1071
  if (t === a && s) {
1070
1072
  addPendingSource(e, s);
1071
- e.ge = a | (e.ge & h);
1073
+ e.ye = a | (e.ye & h);
1072
1074
  setPendingError(e, s, n);
1073
1075
  } else {
1074
1076
  clearPendingSources(e);
1075
- e.ge = t | (t !== d ? e.ge & h : 0);
1077
+ e.ye = t | (t !== d ? e.ye & h : 0);
1076
1078
  e.ae = n;
1077
1079
  }
1078
1080
  updatePendingSignal(e);
@@ -1096,10 +1098,10 @@ function notifyStatus(e, t, n, r, i) {
1096
1098
  forEachDependent(e, e => {
1097
1099
  e.de = E;
1098
1100
  if (
1099
- (t === a && s && e.ye !== s && !e.Se?.has(s)) ||
1100
- (t !== a && (e.ae !== n || e.ye || e.Se))
1101
+ (t === a && s && e.ge !== s && !e.Se?.has(s)) ||
1102
+ (t !== a && (e.ae !== n || e.ge || e.Se))
1101
1103
  ) {
1102
- if (!l && !e.K) j.se.push(e);
1104
+ if (!l && !e.G) N.se.push(e);
1103
1105
  notifyStatus(e, t, n, l, c);
1104
1106
  }
1105
1107
  });
@@ -1137,8 +1139,8 @@ let F = false;
1137
1139
  let M = false;
1138
1140
  let V = null;
1139
1141
  let B = null;
1140
- let G = false;
1141
- let K = null;
1142
+ let K = false;
1143
+ let G = null;
1142
1144
  function ownerInSnapshotScope(e) {
1143
1145
  while (e) {
1144
1146
  if (e.qe) return true;
@@ -1147,8 +1149,8 @@ function ownerInSnapshotScope(e) {
1147
1149
  return false;
1148
1150
  }
1149
1151
  function setSnapshotCapture(e) {
1150
- G = e;
1151
- if (e && !K) K = new Set();
1152
+ K = e;
1153
+ if (e && !G) G = new Set();
1152
1154
  }
1153
1155
  function markSnapshotScope(e) {
1154
1156
  e.qe = true;
@@ -1171,7 +1173,7 @@ function releaseSubtree(e) {
1171
1173
  if (e.m & l) {
1172
1174
  e.m &= ~l;
1173
1175
  e.m |= n;
1174
- if (P.A > e.o) P.A = e.o;
1176
+ if (P.j > e.o) P.j = e.o;
1175
1177
  insertIntoHeap(e, P);
1176
1178
  }
1177
1179
  }
@@ -1180,50 +1182,51 @@ function releaseSubtree(e) {
1180
1182
  }
1181
1183
  }
1182
1184
  function clearSnapshots() {
1183
- if (K) {
1184
- for (const e of K) {
1185
+ if (G) {
1186
+ for (const e of G) {
1185
1187
  delete e.he;
1186
1188
  delete e[m];
1187
1189
  }
1188
- K = null;
1190
+ G = null;
1189
1191
  }
1190
- G = false;
1192
+ K = false;
1191
1193
  }
1192
1194
  function recompute(t, n = false) {
1193
1195
  const i = t.D;
1194
1196
  if (!n) {
1195
- if (t.K && (!i || C) && C !== t.K) j.initTransition(t.K);
1197
+ if (t.G && (!i || C) && C !== t.G) N.initTransition(t.G);
1196
1198
  deleteFromHeap(t, t.m & o ? k : P);
1197
1199
  t.Ce = null;
1198
- if (t.K || i === y) disposeChildren(t);
1200
+ if (t.G || i === g) disposeChildren(t);
1199
1201
  else {
1200
1202
  markDisposal(t);
1201
- t.Ne = t.je;
1203
+ t.Ae = t.Ne;
1202
1204
  t.We = t.ke;
1203
- t.je = null;
1205
+ t.Ne = null;
1204
1206
  t.ke = null;
1205
- t.Ae = 0;
1207
+ t.je = 0;
1206
1208
  }
1207
1209
  }
1208
1210
  const s = !!(t.m & f);
1209
1211
  const u = t.ee !== undefined && t.ee !== S;
1210
- const c = !!(t.ge & a);
1211
- const h = V;
1212
+ const c = !!(t.ye & a);
1213
+ const p = !!(t.ye & h);
1214
+ const y = V;
1212
1215
  V = t;
1213
1216
  t.Pe = null;
1214
1217
  t.m = r;
1215
1218
  t.de = E;
1216
- let p = t.Z === S ? t.$ : t.Z;
1217
- let g = t.o;
1218
- let w = H;
1219
- let m = B;
1219
+ let w = t.Z === S ? t.$ : t.Z;
1220
+ let m = t.o;
1221
+ let b = H;
1222
+ let _ = B;
1220
1223
  H = true;
1221
1224
  if (s) {
1222
1225
  const e = resolveLane(t);
1223
1226
  if (e) B = e;
1224
1227
  }
1225
1228
  try {
1226
- p = handleAsync(t, t.I(p));
1229
+ w = handleAsync(t, t.I(w));
1227
1230
  clearStatus(t, n);
1228
1231
  const e = resolveLane(t);
1229
1232
  if (e) {
@@ -1248,48 +1251,48 @@ function recompute(t, n = false) {
1248
1251
  e instanceof NotReadyError ? t.Y : undefined
1249
1252
  );
1250
1253
  } finally {
1251
- H = w;
1254
+ H = b;
1252
1255
  t.m = e | (n ? t.m & l : 0);
1253
- V = h;
1256
+ V = y;
1254
1257
  }
1255
1258
  if (!t.ae) {
1256
1259
  const e = t.Pe;
1257
- let r = e !== null ? e.j : t.N;
1260
+ let r = e !== null ? e.N : t.A;
1258
1261
  if (r !== null) {
1259
1262
  do {
1260
1263
  r = unlinkSubs(r);
1261
1264
  } while (r !== null);
1262
- if (e !== null) e.j = null;
1263
- else t.N = null;
1265
+ if (e !== null) e.N = null;
1266
+ else t.A = null;
1264
1267
  }
1265
1268
  const f = u ? t.ee : t.Z === S ? t.$ : t.Z;
1266
- const l = !t.Te || !t.Te(f, p);
1269
+ const l = (!i && p) || !t.Te || !t.Te(f, w);
1267
1270
  if (l) {
1268
1271
  const e = u ? t.ee : undefined;
1269
- if (n || (i && C !== t.K) || s) {
1270
- t.$ = p;
1272
+ if (n || (i && C !== t.G) || s) {
1273
+ t.$ = w;
1271
1274
  if (u && s) {
1272
- t.ee = p;
1273
- t.Z = p;
1275
+ t.ee = w;
1276
+ t.Z = w;
1274
1277
  }
1275
- } else t.Z = p;
1276
- if (u && !s && c && !t._e) t.ee = p;
1278
+ } else t.Z = w;
1279
+ if (u && !s && c && !t.be) t.ee = w;
1277
1280
  if (!u || s || t.ee !== e) insertSubs(t, s || u);
1278
1281
  } else if (u) {
1279
- t.Z = p;
1280
- } else if (t.o != g) {
1282
+ t.Z = w;
1283
+ } else if (t.o != m) {
1281
1284
  for (let e = t.O; e !== null; e = e.P) {
1282
1285
  insertIntoHeapHeight(e.k, e.k.m & o ? k : P);
1283
1286
  }
1284
1287
  }
1285
1288
  }
1286
- B = m;
1287
- (!n || t.ge & a) && !t.K && !(C && u) && j.se.push(t);
1288
- t.K && i && C !== t.K && runInTransition(t.K, () => recompute(t));
1289
+ B = _;
1290
+ (!n || t.ye & a) && !t.G && !(C && u) && N.se.push(t);
1291
+ t.G && i && C !== t.G && runInTransition(t.G, () => recompute(t));
1289
1292
  }
1290
1293
  function updateIfNecessary(e) {
1291
1294
  if (e.m & t) {
1292
- for (let t = e.N; t; t = t.j) {
1295
+ for (let t = e.A; t; t = t.N) {
1293
1296
  const r = t.R;
1294
1297
  const i = r.L || r;
1295
1298
  if (i.I) {
@@ -1313,17 +1316,17 @@ function computed(t, n, r) {
1313
1316
  Te: r?.equals != null ? r.equals : isEqual,
1314
1317
  ce: !!r?.pureWrite,
1315
1318
  xe: r?.unobserved,
1316
- je: null,
1317
- M: V?.M ?? j,
1318
- Le: V?.Le ?? b,
1319
- Ae: 0,
1319
+ Ne: null,
1320
+ M: V?.M ?? N,
1321
+ Le: V?.Le ?? _,
1322
+ je: 0,
1320
1323
  I: t,
1321
1324
  $: n,
1322
1325
  o: 0,
1323
1326
  C: null,
1324
1327
  p: undefined,
1325
1328
  h: null,
1326
- N: null,
1329
+ A: null,
1327
1330
  Pe: null,
1328
1331
  O: null,
1329
1332
  Oe: null,
@@ -1331,13 +1334,13 @@ function computed(t, n, r) {
1331
1334
  Ee: null,
1332
1335
  ke: null,
1333
1336
  m: r?.lazy ? c : e,
1334
- ge: h,
1337
+ ye: h,
1335
1338
  de: E,
1336
1339
  Z: S,
1337
- Ne: null,
1340
+ Ae: null,
1338
1341
  We: null,
1339
1342
  Ce: null,
1340
- K: null
1343
+ G: null
1341
1344
  };
1342
1345
  s.h = s;
1343
1346
  const o = V?.t ? V.u : V;
@@ -1351,7 +1354,7 @@ function computed(t, n, r) {
1351
1354
  }
1352
1355
  }
1353
1356
  if (o) s.o = o.o + 1;
1354
- if (G && ownerInSnapshotScope(V)) s.pe = true;
1357
+ if (K && ownerInSnapshotScope(V)) s.pe = true;
1355
1358
  if (T) {
1356
1359
  const e = signal(undefined, { equals: false, pureWrite: true });
1357
1360
  const t = T.factory(s.I, () => {
@@ -1364,10 +1367,10 @@ function computed(t, n, r) {
1364
1367
  };
1365
1368
  }
1366
1369
  !r?.lazy && recompute(s, true);
1367
- if (G && !r?.lazy) {
1368
- if (!(s.ge & a)) {
1370
+ if (K && !r?.lazy) {
1371
+ if (!(s.ye & a)) {
1369
1372
  s.he = s.$ === undefined ? w : s.$;
1370
- K.add(s);
1373
+ G.add(s);
1371
1374
  }
1372
1375
  }
1373
1376
  return s;
@@ -1387,9 +1390,9 @@ function signal(e, t, n = null) {
1387
1390
  Z: S
1388
1391
  };
1389
1392
  n && (n.C = r);
1390
- if (G && !r.De && !((n?.ge ?? 0) & a)) {
1393
+ if (K && !r.De && !((n?.ye ?? 0) & a)) {
1391
1394
  r.he = e === undefined ? w : e;
1392
- K.add(r);
1395
+ G.add(r);
1393
1396
  }
1394
1397
  return r;
1395
1398
  }
@@ -1432,7 +1435,7 @@ function read(e) {
1432
1435
  } finally {
1433
1436
  M = n;
1434
1437
  }
1435
- if (t.ge & a) return r;
1438
+ if (t.ye & a) return r;
1436
1439
  if (Q && B && t.Y) {
1437
1440
  const e = findLane(t.Y);
1438
1441
  const n = findLane(B);
@@ -1447,7 +1450,7 @@ function read(e) {
1447
1450
  const n = D;
1448
1451
  D = false;
1449
1452
  if (t && e.ee !== undefined) {
1450
- if (e.ee !== S && (t.Ce || !!(t.ge & a))) {
1453
+ if (e.ee !== S && (t.Ce || !!(t.ye & a))) {
1451
1454
  F = true;
1452
1455
  }
1453
1456
  let n = V;
@@ -1475,7 +1478,7 @@ function read(e) {
1475
1478
  link(e, t);
1476
1479
  if (n.I) {
1477
1480
  const r = e.m & o;
1478
- if (n.o >= (r ? k.A : P.A)) {
1481
+ if (n.o >= (r ? k.j : P.j)) {
1479
1482
  markNode(t);
1480
1483
  markHeap(r ? k : P);
1481
1484
  updateIfNecessary(n);
@@ -1486,8 +1489,8 @@ function read(e) {
1486
1489
  }
1487
1490
  }
1488
1491
  }
1489
- if (n.ge & a) {
1490
- if (t && !(Q && n.K && C !== n.K)) {
1492
+ if (n.ye & a) {
1493
+ if (t && !(Q && n.G && C !== n.G)) {
1491
1494
  if (B) {
1492
1495
  const r = n.Y;
1493
1496
  const i = findLane(B);
@@ -1499,20 +1502,20 @@ function read(e) {
1499
1502
  if (!H && e !== t) link(e, t);
1500
1503
  throw n.ae;
1501
1504
  }
1502
- } else if (t && n !== e && n.ge & h) {
1505
+ } else if (t && n !== e && n.ye & h) {
1503
1506
  if (!H && e !== t) link(e, t);
1504
1507
  throw n.ae;
1505
- } else if (!t && n.ge & h) {
1508
+ } else if (!t && n.ye & h) {
1506
1509
  throw n.ae;
1507
1510
  }
1508
1511
  }
1509
- if (e.I && e.ge & d) {
1512
+ if (e.I && e.ye & d) {
1510
1513
  if (e.de < E) {
1511
1514
  recompute(e);
1512
1515
  return read(e);
1513
1516
  } else throw e.ae;
1514
1517
  }
1515
- if (G && t && t.pe) {
1518
+ if (K && t && t.pe) {
1516
1519
  const n = e.he;
1517
1520
  if (n !== undefined) {
1518
1521
  const r = n === w ? undefined : n;
@@ -1526,19 +1529,19 @@ function read(e) {
1526
1529
  return e.ee;
1527
1530
  }
1528
1531
  return !t ||
1529
- (B !== null && (e.ee !== undefined || e.Y || (n === e && Q) || !!(n.ge & a))) ||
1532
+ (B !== null && (e.ee !== undefined || e.Y || (n === e && Q) || !!(n.ye & a))) ||
1530
1533
  e.Z === S ||
1531
- (Q && e.K && C !== e.K)
1534
+ (Q && e.G && C !== e.G)
1532
1535
  ? e.$
1533
1536
  : e.Z;
1534
1537
  }
1535
1538
  function setSignal(e, t) {
1536
- if (e.K && C !== e.K) j.initTransition(e.K);
1537
- const n = e.ee !== undefined && !A;
1539
+ if (e.G && C !== e.G) N.initTransition(e.G);
1540
+ const n = e.ee !== undefined && !j;
1538
1541
  const r = e.ee !== undefined && e.ee !== S;
1539
1542
  const i = n ? (r ? e.ee : e.$) : e.Z === S ? e.$ : e.Z;
1540
1543
  if (typeof t === "function") t = t(i);
1541
- const s = !e.Te || !e.Te(i, t) || !!(e.ge & h);
1544
+ const s = !e.Te || !e.Te(i, t) || !!(e.ye & h);
1542
1545
  if (!s) {
1543
1546
  if (n && r && e.I) {
1544
1547
  insertSubs(e, true);
@@ -1548,17 +1551,17 @@ function setSignal(e, t) {
1548
1551
  }
1549
1552
  if (n) {
1550
1553
  const n = e.ee === S;
1551
- if (!n) j.initTransition(resolveTransition(e));
1554
+ if (!n) N.initTransition(resolveTransition(e));
1552
1555
  if (n) {
1553
1556
  e.Z = e.$;
1554
- j.U.push(e);
1557
+ N.U.push(e);
1555
1558
  }
1556
- e._e = true;
1559
+ e.be = true;
1557
1560
  const r = getOrCreateLane(e);
1558
1561
  e.Y = r;
1559
1562
  e.ee = t;
1560
1563
  } else {
1561
- if (e.Z === S) j.se.push(e);
1564
+ if (e.Z === S) N.se.push(e);
1562
1565
  e.Z = t;
1563
1566
  }
1564
1567
  updatePendingSignal(e);
@@ -1596,10 +1599,10 @@ function computePendingState(e) {
1596
1599
  const t = e;
1597
1600
  const n = e.L;
1598
1601
  if (n && e.Z !== S) {
1599
- return !n.Ce && !(n.ge & a);
1602
+ return !n.Ce && !(n.ye & a);
1600
1603
  }
1601
1604
  if (e.ee !== undefined && e.ee !== S) {
1602
- if (t.ge & a && !(t.ge & h)) return true;
1605
+ if (t.ye & a && !(t.ye & h)) return true;
1603
1606
  if (e.we) {
1604
1607
  const t = e.Y ? findLane(e.Y) : null;
1605
1608
  return !!(t && t.H.size > 0);
@@ -1609,8 +1612,8 @@ function computePendingState(e) {
1609
1612
  if (e.ee !== undefined && e.ee === S && !e.we) {
1610
1613
  return false;
1611
1614
  }
1612
- if (e.Z !== S && !(t.ge & h)) return true;
1613
- return !!(t.ge & a && !(t.ge & h));
1615
+ if (e.Z !== S && !(t.ye & h)) return true;
1616
+ return !!(t.ye & a && !(t.ye & h));
1614
1617
  }
1615
1618
  function updatePendingSignal(e) {
1616
1619
  if (e.Fe) {
@@ -1737,20 +1740,20 @@ function effect(e, t, n, r, i) {
1737
1740
  o.Me = r;
1738
1741
  o.Ve = t;
1739
1742
  o.Be = n;
1740
- o.Ge = undefined;
1741
- o.D = i?.render ? p : g;
1743
+ o.Ke = undefined;
1744
+ o.D = i?.render ? p : y;
1742
1745
  o.Qe = (e, t) => {
1743
- const n = e !== undefined ? e : o.ge;
1746
+ const n = e !== undefined ? e : o.ye;
1744
1747
  const r = t !== undefined ? t : o.ae;
1745
1748
  if (n & d) {
1746
1749
  let e = r;
1747
1750
  o.M.notify(o, a, 0);
1748
- if (o.D === g) {
1751
+ if (o.D === y) {
1749
1752
  try {
1750
1753
  return o.Be
1751
1754
  ? o.Be(e, () => {
1752
- o.Ge?.();
1753
- o.Ge = undefined;
1755
+ o.Ke?.();
1756
+ o.Ke = undefined;
1754
1757
  })
1755
1758
  : console.error(e);
1756
1759
  } catch (t) {
@@ -1763,21 +1766,21 @@ function effect(e, t, n, r, i) {
1763
1766
  }
1764
1767
  };
1765
1768
  recompute(o, true);
1766
- !i?.defer && (o.D === g ? o.M.enqueue(o.D, runEffect.bind(o)) : runEffect.call(o));
1769
+ !i?.defer && (o.D === y ? o.M.enqueue(o.D, runEffect.bind(o)) : runEffect.call(o));
1767
1770
  s = true;
1768
- cleanup(() => o.Ge?.());
1771
+ cleanup(() => o.Ke?.());
1769
1772
  }
1770
1773
  function runEffect() {
1771
1774
  if (!this.F || this.m & u) return;
1772
- this.Ge?.();
1773
- this.Ge = undefined;
1775
+ this.Ke?.();
1776
+ this.Ke = undefined;
1774
1777
  try {
1775
1778
  const e = this.Ve(this.$, this.Me);
1776
1779
  if (false && e !== undefined && typeof e !== "function");
1777
- this.Ge = e;
1780
+ this.Ke = e;
1778
1781
  } catch (e) {
1779
1782
  this.ae = new StatusError(this, e);
1780
- this.ge |= d;
1783
+ this.ye |= d;
1781
1784
  if (!this.M.notify(this, d, d)) throw e;
1782
1785
  } finally {
1783
1786
  this.Me = this.$;
@@ -1795,20 +1798,20 @@ function trackedEffect(e, t) {
1795
1798
  };
1796
1799
  const n = computed(
1797
1800
  () => {
1798
- n.Ge?.();
1799
- n.Ge = undefined;
1801
+ n.Ke?.();
1802
+ n.Ke = undefined;
1800
1803
  const t = staleValues(e);
1801
- n.Ge = t;
1804
+ n.Ke = t;
1802
1805
  },
1803
1806
  undefined,
1804
1807
  { ...t, lazy: true }
1805
1808
  );
1806
- n.Ge = undefined;
1807
- n.Ke = true;
1809
+ n.Ke = undefined;
1810
+ n.Ge = true;
1808
1811
  n.F = true;
1809
- n.D = y;
1812
+ n.D = g;
1810
1813
  n.Qe = (e, t) => {
1811
- const r = e !== undefined ? e : n.ge;
1814
+ const r = e !== undefined ? e : n.ye;
1812
1815
  if (r & d) {
1813
1816
  n.M.notify(n, a, 0);
1814
1817
  const e = t !== undefined ? t : n.ae;
@@ -1816,11 +1819,11 @@ function trackedEffect(e, t) {
1816
1819
  }
1817
1820
  };
1818
1821
  n.V = run;
1819
- n.M.enqueue(g, run);
1820
- cleanup(() => n.Ge?.());
1822
+ n.M.enqueue(y, run);
1823
+ cleanup(() => n.Ke?.());
1821
1824
  }
1822
1825
  function restoreTransition(e, t) {
1823
- j.initTransition(e);
1826
+ N.initTransition(e);
1824
1827
  const n = t();
1825
1828
  flush();
1826
1829
  return n;
@@ -1829,13 +1832,13 @@ function action(e) {
1829
1832
  return (...t) =>
1830
1833
  new Promise((n, r) => {
1831
1834
  const i = e(...t);
1832
- j.initTransition();
1835
+ N.initTransition();
1833
1836
  let s = C;
1834
- s.G.push(i);
1837
+ s.K.push(i);
1835
1838
  const done = (e, t) => {
1836
1839
  s = currentTransition(s);
1837
- const o = s.G.indexOf(i);
1838
- if (o >= 0) s.G.splice(o, 1);
1840
+ const o = s.K.indexOf(i);
1841
+ if (o >= 0) s.K.splice(o, 1);
1839
1842
  setActiveTransition(s);
1840
1843
  schedule();
1841
1844
  t ? r(t) : n(e);
@@ -1939,9 +1942,9 @@ function createOptimistic(e, t, n) {
1939
1942
  }
1940
1943
  function onSettled(e) {
1941
1944
  const t = getOwner();
1942
- t && !t.Ke
1945
+ t && !t.Ge
1943
1946
  ? createTrackedEffect(() => untrack(e), undefined)
1944
- : j.enqueue(g, () => {
1947
+ : N.enqueue(y, () => {
1945
1948
  const t = e();
1946
1949
  t?.();
1947
1950
  });
@@ -1973,7 +1976,7 @@ function applyState(e, t, n) {
1973
1976
  let t = false;
1974
1977
  const f = getOverrideValue(i, s, u, "length", o);
1975
1978
  if (e.length && f && e[0] && n(e[0]) != null) {
1976
- let l, c, a, d, h, p, g, y;
1979
+ let l, c, a, d, h, p, y, g;
1977
1980
  for (
1978
1981
  a = 0, d = Math.min(f, e.length);
1979
1982
  a < d &&
@@ -2008,22 +2011,22 @@ function applyState(e, t, n) {
2008
2011
  f !== e.length && r[ee].length && setSignal(r[ee].length, e.length);
2009
2012
  return;
2010
2013
  }
2011
- g = new Array(h + 1);
2014
+ y = new Array(h + 1);
2012
2015
  for (c = h; c >= a; c--) {
2013
2016
  p = e[c];
2014
- y = p ? n(p) : p;
2015
- l = w.get(y);
2016
- g[c] = l === undefined ? -1 : l;
2017
- w.set(y, c);
2017
+ g = p ? n(p) : p;
2018
+ l = w.get(g);
2019
+ y[c] = l === undefined ? -1 : l;
2020
+ w.set(g, c);
2018
2021
  }
2019
2022
  for (l = a; l <= d; l++) {
2020
2023
  p = getOverrideValue(i, s, u, l, o);
2021
- y = p ? n(p) : p;
2022
- c = w.get(y);
2024
+ g = p ? n(p) : p;
2025
+ c = w.get(g);
2023
2026
  if (c !== undefined && c !== -1) {
2024
2027
  S[c] = p;
2025
- c = g[c];
2026
- w.set(y, c);
2028
+ c = y[c];
2029
+ w.set(g, c);
2027
2030
  }
2028
2031
  }
2029
2032
  for (c = a; c < e.length; c++) {
@@ -2244,7 +2247,7 @@ function getNode(e, t, n, r, i = isEqual, s, o) {
2244
2247
  if (o && t in o) {
2245
2248
  const e = o[t];
2246
2249
  u.he = e === undefined ? w : e;
2247
- K?.add(u);
2250
+ G?.add(u);
2248
2251
  }
2249
2252
  return (e[t] = u);
2250
2253
  }
@@ -2263,12 +2266,50 @@ function getKeys(e, t, n = true) {
2263
2266
  return Array.from(i);
2264
2267
  }
2265
2268
  function getPropertyDescriptor(e, t, n) {
2266
- let r = e;
2267
2269
  if (t && n in t) {
2268
- if (r[n] === X) return void 0;
2269
- if (!(n in r)) r = t;
2270
+ if (t[n] === X) return void 0;
2271
+ const r = Reflect.getOwnPropertyDescriptor(t, n);
2272
+ if (r?.get || r?.set || !(n in e)) return r;
2273
+ }
2274
+ return Reflect.getOwnPropertyDescriptor(e, n);
2275
+ }
2276
+ function prepareStoreWrite(e, t, n) {
2277
+ if (e[se]) {
2278
+ const t = e[ie];
2279
+ if (t?.G) {
2280
+ N.initTransition(t.G);
2281
+ }
2282
+ }
2283
+ const r = e[Y];
2284
+ const i = r[n];
2285
+ if (K && typeof n !== "symbol" && !((e[ie]?.ye ?? 0) & a)) {
2286
+ if (!e[m]) {
2287
+ e[m] = Object.create(null);
2288
+ G?.add(e);
2289
+ }
2290
+ if (!(n in e[m])) {
2291
+ e[m][n] = i;
2292
+ }
2270
2293
  }
2271
- return Reflect.getOwnPropertyDescriptor(r, n);
2294
+ const s = e[se] && !j;
2295
+ const o = s ? $ : Z;
2296
+ if (s) trackOptimisticStore(t);
2297
+ return { base: i, overrideKey: o, state: r };
2298
+ }
2299
+ function notifyStoreProperty(e, t, n, r) {
2300
+ if (e[te]?.[t]) setSignal(e[te][t], n !== "delete");
2301
+ const i = getNodes(e, ee);
2302
+ if (n === "set") {
2303
+ i[t] && setSignal(i[t], () => (isWrappable(r) ? wrap(r, e) : r));
2304
+ } else if (n === "invalidate") {
2305
+ if (i[t]) {
2306
+ setSignal(i[t], {});
2307
+ delete i[t];
2308
+ }
2309
+ } else {
2310
+ i[t] && setSignal(i[t], undefined);
2311
+ }
2312
+ i[z] && setSignal(i[z], undefined);
2272
2313
  }
2273
2314
  let fe = null;
2274
2315
  const le = {
@@ -2324,55 +2365,46 @@ const le = {
2324
2365
  set(e, t, n) {
2325
2366
  const r = e[J];
2326
2367
  if (writeOnly(r)) {
2327
- if (e[se]) {
2328
- const t = e[ie];
2329
- if (t?.K) {
2330
- j.initTransition(t.K);
2331
- }
2332
- }
2333
2368
  untrack(() => {
2334
- const i = e[Y];
2335
- const s = i[t];
2336
- if (G && typeof t !== "symbol" && !((e[ie]?.ge ?? 0) & a)) {
2337
- if (!e[m]) {
2338
- e[m] = Object.create(null);
2339
- K?.add(e);
2340
- }
2341
- if (!(t in e[m])) {
2342
- e[m][t] = s;
2343
- }
2344
- }
2345
- const o = e[se] && !A;
2346
- const u = o ? $ : Z;
2347
- if (o) trackOptimisticStore(r);
2348
- const f = e[$] && t in e[$] ? e[$][t] : e[Z] && t in e[Z] ? e[Z][t] : s;
2349
- const l = n?.[U]?.[Y] ?? n;
2350
- const c = Array.isArray(i) && t !== "length";
2351
- const d = c ? parseInt(t) + 1 : 0;
2352
- const h =
2353
- c &&
2369
+ const { base: i, overrideKey: s, state: o } = prepareStoreWrite(e, r, t);
2370
+ const u = e[$] && t in e[$] ? e[$][t] : e[Z] && t in e[Z] ? e[Z][t] : i;
2371
+ const f = n?.[U]?.[Y] ?? n;
2372
+ const l = Array.isArray(o) && t !== "length";
2373
+ const c = l ? parseInt(t) + 1 : 0;
2374
+ const a =
2375
+ l &&
2354
2376
  (e[$] && "length" in e[$]
2355
2377
  ? e[$].length
2356
2378
  : e[Z] && "length" in e[Z]
2357
2379
  ? e[Z].length
2358
- : i.length);
2359
- const p = c && d > h ? d : undefined;
2360
- if (f === l && p === undefined) return true;
2361
- if (l !== undefined && l === s && p === undefined) delete e[u]?.[t];
2380
+ : o.length);
2381
+ const d = l && c > a ? c : undefined;
2382
+ if (u === f && d === undefined) return true;
2383
+ if (f !== undefined && f === i && d === undefined) delete e[s]?.[t];
2362
2384
  else {
2363
- const n = e[u] || (e[u] = Object.create(null));
2364
- n[t] = l;
2365
- if (p !== undefined) n.length = p;
2385
+ const n = e[s] || (e[s] = Object.create(null));
2386
+ n[t] = f;
2387
+ if (d !== undefined) n.length = d;
2366
2388
  }
2367
- const g = isWrappable(l);
2368
- e[te]?.[t] && setSignal(e[te][t], true);
2369
- const y = getNodes(e, ee);
2370
- y[t] && setSignal(y[t], () => (g ? wrap(l, e) : l));
2371
- if (Array.isArray(i)) {
2372
- const e = t === "length" ? l : p;
2373
- e !== undefined && y.length && setSignal(y.length, e);
2389
+ notifyStoreProperty(e, t, "set", f);
2390
+ if (Array.isArray(o)) {
2391
+ const n = getNodes(e, ee);
2392
+ const r = t === "length" ? f : d;
2393
+ r !== undefined && n.length && setSignal(n.length, r);
2374
2394
  }
2375
- y[z] && setSignal(y[z], undefined);
2395
+ if (false);
2396
+ });
2397
+ }
2398
+ return true;
2399
+ },
2400
+ defineProperty(e, t, n) {
2401
+ const r = e[J];
2402
+ if (writeOnly(r)) {
2403
+ untrack(() => {
2404
+ const { base: i, overrideKey: s } = prepareStoreWrite(e, r, t);
2405
+ const o = "value" in n ? { ...n, value: n.value?.[U]?.[Y] ?? n.value } : n;
2406
+ Object.defineProperty(e[s] || (e[s] = Object.create(null)), t, o);
2407
+ notifyStoreProperty(e, t, "invalidate");
2376
2408
  if (false);
2377
2409
  });
2378
2410
  }
@@ -2383,7 +2415,7 @@ const le = {
2383
2415
  const r = e[Z]?.[t] === X;
2384
2416
  if (writeOnly(e[J]) && !n && !r) {
2385
2417
  untrack(() => {
2386
- const n = e[se] && !A;
2418
+ const n = e[se] && !j;
2387
2419
  const r = n ? $ : Z;
2388
2420
  if (n) trackOptimisticStore(e[J]);
2389
2421
  const i = e[$] && t in e[$] ? e[$][t] : e[Z] && t in e[Z] ? e[Z][t] : e[Y][t];
@@ -2392,10 +2424,7 @@ const le = {
2392
2424
  } else if (e[r] && t in e[r]) {
2393
2425
  delete e[r][t];
2394
2426
  } else return true;
2395
- if (e[te]?.[t]) setSignal(e[te][t], false);
2396
- const s = getNodes(e, ee);
2397
- s[t] && setSignal(s[t], undefined);
2398
- s[z] && setSignal(s[z], undefined);
2427
+ notifyStoreProperty(e, t, "delete");
2399
2428
  });
2400
2429
  }
2401
2430
  return true;
@@ -2417,9 +2446,11 @@ const le = {
2417
2446
  if (t === J) return { value: e[J], writable: true, configurable: true };
2418
2447
  if (e[$] && t in e[$]) {
2419
2448
  if (e[$][t] === X) return undefined;
2420
- const n = getPropertyDescriptor(e[Y], e[Z], t);
2421
- if (n) {
2422
- return { ...n, value: e[$][t] };
2449
+ const n = Reflect.getOwnPropertyDescriptor(e[$], t);
2450
+ if (n?.get || n?.set || !(t in e[Y])) return n;
2451
+ const r = getPropertyDescriptor(e[Y], e[Z], t);
2452
+ if (r) {
2453
+ return { ...r, value: e[$][t] };
2423
2454
  }
2424
2455
  return { value: e[$][t], writable: true, enumerable: true, configurable: true };
2425
2456
  }
@@ -2594,7 +2625,12 @@ function updatePath(e, t, n = 0) {
2594
2625
  } else if (r === undefined || (isWrappable(i) && isWrappable(s) && !Array.isArray(s))) {
2595
2626
  const t = r !== undefined ? e[r] : e;
2596
2627
  const n = Object.keys(s);
2597
- for (let e = 0; e < n.length; e++) t[n[e]] = s[n[e]];
2628
+ for (let e = 0; e < n.length; e++) {
2629
+ const r = n[e];
2630
+ const i = Object.getOwnPropertyDescriptor(s, r);
2631
+ if (i.get || i.set) Object.defineProperty(t, r, i);
2632
+ else t[r] = i.value;
2633
+ }
2598
2634
  } else {
2599
2635
  e[r] = s;
2600
2636
  }
@@ -2703,7 +2739,7 @@ function merge(...e) {
2703
2739
  if (s) n.push(...s);
2704
2740
  else n.push(typeof i === "function" ? ((t = true), createMemo(i)) : i);
2705
2741
  }
2706
- if (_ && t) {
2742
+ if (b && t) {
2707
2743
  return new Proxy(
2708
2744
  {
2709
2745
  get(e) {
@@ -2762,7 +2798,7 @@ function merge(...e) {
2762
2798
  }
2763
2799
  function omit(e, ...t) {
2764
2800
  const n = new Set(t);
2765
- if (_ && J in e) {
2801
+ if (b && J in e) {
2766
2802
  return new Proxy(
2767
2803
  {
2768
2804
  get(t) {
@@ -2865,7 +2901,7 @@ function updateKeyedMap() {
2865
2901
  d = new Array(t),
2866
2902
  h = new Array(t),
2867
2903
  p = this.tt ? new Array(t) : undefined,
2868
- g = this.nt ? new Array(t) : undefined;
2904
+ y = this.nt ? new Array(t) : undefined;
2869
2905
  for (
2870
2906
  s = 0, o = Math.min(this.Ue, t);
2871
2907
  s < o && (this.Xe[s] === e[s] || (this.tt && compare(this.et, this.Xe[s], e[s])));
@@ -2883,7 +2919,7 @@ function updateKeyedMap() {
2883
2919
  d[u] = this.Ze[o];
2884
2920
  h[u] = this.$e[o];
2885
2921
  p && (p[u] = this.tt[o]);
2886
- g && (g[u] = this.nt[o]);
2922
+ y && (y[u] = this.nt[o]);
2887
2923
  }
2888
2924
  c = new Map();
2889
2925
  a = new Array(u + 1);
@@ -2902,7 +2938,7 @@ function updateKeyedMap() {
2902
2938
  d[r] = this.Ze[n];
2903
2939
  h[r] = this.$e[n];
2904
2940
  p && (p[r] = this.tt[n]);
2905
- g && (g[r] = this.nt[n]);
2941
+ y && (y[r] = this.nt[n]);
2906
2942
  r = a[r];
2907
2943
  c.set(l, r);
2908
2944
  } else this.$e[n].dispose();
@@ -2915,8 +2951,8 @@ function updateKeyedMap() {
2915
2951
  this.tt[r] = p[r];
2916
2952
  setSignal(this.tt[r], e[r]);
2917
2953
  }
2918
- if (g) {
2919
- this.nt[r] = g[r];
2954
+ if (y) {
2955
+ this.nt[r] = y[r];
2920
2956
  setSignal(this.nt[r], r);
2921
2957
  }
2922
2958
  } else {
@@ -2996,9 +3032,9 @@ function compare(e, t, n) {
2996
3032
  function boundaryComputed(e, t) {
2997
3033
  const n = computed(e, undefined, { lazy: true });
2998
3034
  n.Qe = (e, t) => {
2999
- const r = e !== undefined ? e : n.ge;
3035
+ const r = e !== undefined ? e : n.ye;
3000
3036
  const i = t !== undefined ? t : n.ae;
3001
- n.ge &= ~n.ut;
3037
+ n.ye &= ~n.ut;
3002
3038
  n.M.notify(n, n.ut, r, i);
3003
3039
  };
3004
3040
  n.ut = t;
@@ -3015,8 +3051,8 @@ function createBoundChildren(e, t, n, r) {
3015
3051
  return boundaryComputed(() => staleValues(() => flatten(read(e))), r);
3016
3052
  });
3017
3053
  }
3018
- const ge = Symbol();
3019
- const ye = createContext(null);
3054
+ const ye = Symbol();
3055
+ const ge = createContext(null);
3020
3056
  let Se = false;
3021
3057
  const FALSE_ACCESSOR = () => false;
3022
3058
  function isRevealController(e) {
@@ -3032,25 +3068,25 @@ function setSlotState(e, t, n, r) {
3032
3068
  if (!n && e.ht === t) e.ht = undefined;
3033
3069
  return e.evaluate(n, r);
3034
3070
  }
3035
- if (!n && e.gt === t && e.yt) e.gt = undefined;
3071
+ if (!n && e.yt === t && e.gt) e.yt = undefined;
3036
3072
  }
3037
3073
  class RevealController {
3038
3074
  St;
3039
3075
  wt;
3040
- _t = [];
3076
+ bt = [];
3041
3077
  ht;
3042
3078
  ct = signal(false, { pureWrite: true, De: true });
3043
3079
  dt = signal(false, { pureWrite: true, De: true });
3044
- bt = true;
3080
+ _t = true;
3045
3081
  Ot = false;
3046
3082
  constructor(e, t) {
3047
3083
  this.St = e;
3048
3084
  this.wt = t;
3049
3085
  }
3050
3086
  xt(e) {
3051
- for (let t = 0; t < this._t.length; t++) {
3052
- const n = this._t[t];
3053
- if ((isRevealController(n) ? n.ht : n.gt) !== this) continue;
3087
+ for (let t = 0; t < this.bt.length; t++) {
3088
+ const n = this.bt[t];
3089
+ if ((isRevealController(n) ? n.ht : n.yt) !== this) continue;
3054
3090
  if (e(n) === false) return false;
3055
3091
  }
3056
3092
  return true;
@@ -3059,21 +3095,21 @@ class RevealController {
3059
3095
  return this.xt(isSlotReady);
3060
3096
  }
3061
3097
  register(e) {
3062
- if (this._t.includes(e)) return;
3063
- this._t.push(e);
3098
+ if (this.bt.includes(e)) return;
3099
+ this.bt.push(e);
3064
3100
  const t = !!untrack(this.St);
3065
3101
  setSignal(e.ct, true), setSignal(e.dt, t ? false : !!untrack(this.wt));
3066
3102
  untrack(() => this.evaluate());
3067
3103
  }
3068
3104
  unregister(e) {
3069
- const t = this._t.indexOf(e);
3070
- if (t >= 0) this._t.splice(t, 1);
3105
+ const t = this.bt.indexOf(e);
3106
+ if (t >= 0) this.bt.splice(t, 1);
3071
3107
  untrack(() => this.evaluate());
3072
3108
  }
3073
3109
  evaluate(e, t) {
3074
3110
  if (this.Ot) return;
3075
3111
  this.Ot = true;
3076
- const n = this.bt;
3112
+ const n = this._t;
3077
3113
  try {
3078
3114
  const n = e ?? read(this.ct),
3079
3115
  r = !!untrack(this.wt),
@@ -3092,10 +3128,10 @@ class RevealController {
3092
3128
  });
3093
3129
  }
3094
3130
  } finally {
3095
- this.bt = this.isReady();
3131
+ this._t = this.isReady();
3096
3132
  this.Ot = false;
3097
3133
  }
3098
- if (this.ht && n !== this.bt) this.ht.evaluate();
3134
+ if (this.ht && n !== this._t) this.ht.evaluate();
3099
3135
  }
3100
3136
  }
3101
3137
  class CollectionQueue extends Queue {
@@ -3105,10 +3141,10 @@ class CollectionQueue extends Queue {
3105
3141
  lt = true;
3106
3142
  ct = signal(false, { pureWrite: true, De: true });
3107
3143
  dt = signal(false, { pureWrite: true, De: true });
3108
- gt;
3109
- yt = false;
3144
+ yt;
3145
+ gt = false;
3110
3146
  kt;
3111
- Et = ge;
3147
+ Et = ye;
3112
3148
  constructor(e) {
3113
3149
  super();
3114
3150
  this.vt = e;
@@ -3119,21 +3155,21 @@ class CollectionQueue extends Queue {
3119
3155
  }
3120
3156
  notify(e, t, n, r) {
3121
3157
  if (!(t & this.vt)) return super.notify(e, t, n, r);
3122
- if (this.yt && this.kt) {
3158
+ if (this.gt && this.kt) {
3123
3159
  const e = untrack(() => {
3124
3160
  try {
3125
3161
  return this.kt();
3126
3162
  } catch {
3127
- return ge;
3163
+ return ye;
3128
3164
  }
3129
3165
  });
3130
3166
  if (e !== this.Et) {
3131
3167
  this.Et = e;
3132
- this.yt = false;
3168
+ this.gt = false;
3133
3169
  this.ft.clear();
3134
3170
  }
3135
3171
  }
3136
- if (this.vt & a && this.yt) return super.notify(e, t, n, r);
3172
+ if (this.vt & a && this.gt) return super.notify(e, t, n, r);
3137
3173
  if (this.vt & a && n & d) {
3138
3174
  return super.notify(e, d, n, r);
3139
3175
  }
@@ -3151,11 +3187,11 @@ class CollectionQueue extends Queue {
3151
3187
  }
3152
3188
  checkSources() {
3153
3189
  for (const e of this.ft) {
3154
- if (e.m & u || (!(e.ge & this.vt) && !(this.vt & d && e.ge & a))) this.ft.delete(e);
3190
+ if (e.m & u || (!(e.ye & this.vt) && !(this.vt & d && e.ye & a))) this.ft.delete(e);
3155
3191
  }
3156
3192
  if (!this.ft.size) {
3157
- if (this.vt & a && this.lt && !this.yt && this.Pt) {
3158
- this.lt = !!(this.Pt.ge & this.vt);
3193
+ if (this.vt & a && this.lt && !this.gt && this.Pt) {
3194
+ this.lt = !!(this.Pt.ye & this.vt);
3159
3195
  } else {
3160
3196
  this.lt = false;
3161
3197
  }
@@ -3168,12 +3204,12 @@ class CollectionQueue extends Queue {
3168
3204
  }
3169
3205
  }
3170
3206
  }
3171
- if (Se) this.gt?.evaluate();
3207
+ if (Se) this.yt?.evaluate();
3172
3208
  }
3173
3209
  }
3174
3210
  function createCollectionBoundary(e, t, n, r) {
3175
3211
  const i = createOwner();
3176
- if (Se) setContext(ye, null, i);
3212
+ if (Se) setContext(ge, null, i);
3177
3213
  const s = new CollectionQueue(e);
3178
3214
  if (r) s.kt = r;
3179
3215
  const o = (s.Pt = createBoundChildren(i, t, s, e));
@@ -3185,18 +3221,18 @@ function createCollectionBoundary(e, t, n, r) {
3185
3221
  if (e instanceof NotReadyError) t = true;
3186
3222
  else throw e;
3187
3223
  }
3188
- s.lt = t || !!(o.ge & e) || o.ae instanceof NotReadyError;
3224
+ s.lt = t || !!(o.ye & e) || o.ae instanceof NotReadyError;
3189
3225
  });
3190
- const u = Se && e === a ? getContext(ye) : null;
3226
+ const u = Se && e === a ? getContext(ge) : null;
3191
3227
  if (u) {
3192
- s.gt = u;
3228
+ s.yt = u;
3193
3229
  u.register(s);
3194
3230
  cleanup(() => u.unregister(s));
3195
3231
  }
3196
3232
  const f = computed(() => {
3197
3233
  if (!read(s.ct)) {
3198
3234
  const e = read(o);
3199
- if (!untrack(() => read(s.ct))) return (s.yt = true), e;
3235
+ if (!untrack(() => read(s.ct))) return (s.gt = true), e;
3200
3236
  }
3201
3237
  if (Se && read(s.dt)) return undefined;
3202
3238
  return n(s);
@@ -3219,11 +3255,11 @@ function createErrorBoundary(e, t) {
3219
3255
  function createRevealOrder(e, t) {
3220
3256
  Se = true;
3221
3257
  const n = createOwner();
3222
- const r = getContext(ye);
3258
+ const r = getContext(ge);
3223
3259
  const i = t?.together || FALSE_ACCESSOR,
3224
3260
  s = t?.collapsed || FALSE_ACCESSOR;
3225
3261
  const o = new RevealController(i, s);
3226
- setContext(ye, o, n);
3262
+ setContext(ge, o, n);
3227
3263
  return runWithOwner(n, () => {
3228
3264
  const t = e();
3229
3265
  computed(() => {
@@ -3297,7 +3333,7 @@ exports.ContextNotFoundError = ContextNotFoundError;
3297
3333
  exports.DEV = we;
3298
3334
  exports.NoOwnerError = NoOwnerError;
3299
3335
  exports.NotReadyError = NotReadyError;
3300
- exports.SUPPORTS_PROXY = _;
3336
+ exports.SUPPORTS_PROXY = b;
3301
3337
  exports.action = action;
3302
3338
  exports.clearSnapshots = clearSnapshots;
3303
3339
  exports.createContext = createContext;