@solidjs/signals 0.10.0 → 0.10.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/prod.js CHANGED
@@ -1,15 +1,15 @@
1
1
  class NotReadyError extends Error {
2
- t;
2
+ source;
3
3
  constructor(e) {
4
4
  super();
5
- this.t = e;
5
+ this.source = e;
6
6
  }
7
7
  }
8
8
  class StatusError extends Error {
9
- t;
9
+ source;
10
10
  constructor(e, t) {
11
11
  super(t instanceof Error ? t.message : String(t), { cause: t });
12
- this.t = e;
12
+ this.source = e;
13
13
  }
14
14
  }
15
15
  class NoOwnerError extends Error {
@@ -42,114 +42,114 @@ const SUPPORTS_PROXY = typeof Proxy === "function";
42
42
  const defaultContext = {};
43
43
  const $REFRESH = Symbol("refresh");
44
44
  function actualInsertIntoHeap(e, t) {
45
- const n = (e.o?.i ? e.o.l?.u : e.o?.u) ?? -1;
46
- if (n >= e.u) e.u = n + 1;
47
- const i = e.u;
48
- const r = t.T[i];
49
- if (r === undefined) t.T[i] = e;
45
+ const n = (e.i?.t ? e.i.u?.o : e.i?.o) ?? -1;
46
+ if (n >= e.o) e.o = n + 1;
47
+ const i = e.o;
48
+ const r = t.l[i];
49
+ if (r === undefined) t.l[i] = e;
50
50
  else {
51
- const t = r.R;
52
- t.O = e;
53
- e.R = t;
54
- r.R = e;
51
+ const t = r.T;
52
+ t.R = e;
53
+ e.T = t;
54
+ r.T = e;
55
55
  }
56
- if (i > t.S) t.S = i;
56
+ if (i > t.O) t.O = i;
57
57
  }
58
58
  function insertIntoHeap(e, t) {
59
- let n = e._;
59
+ let n = e.S;
60
60
  if (n & (REACTIVE_IN_HEAP | REACTIVE_RECOMPUTING_DEPS)) return;
61
61
  if (n & REACTIVE_CHECK) {
62
- e._ = (n & -4) | REACTIVE_DIRTY | REACTIVE_IN_HEAP;
63
- } else e._ = n | REACTIVE_IN_HEAP;
62
+ e.S = (n & -4) | REACTIVE_DIRTY | REACTIVE_IN_HEAP;
63
+ } else e.S = n | REACTIVE_IN_HEAP;
64
64
  if (!(n & REACTIVE_IN_HEAP_HEIGHT)) actualInsertIntoHeap(e, t);
65
65
  }
66
66
  function insertIntoHeapHeight(e, t) {
67
- let n = e._;
67
+ let n = e.S;
68
68
  if (n & (REACTIVE_IN_HEAP | REACTIVE_RECOMPUTING_DEPS | REACTIVE_IN_HEAP_HEIGHT)) return;
69
- e._ = n | REACTIVE_IN_HEAP_HEIGHT;
69
+ e.S = n | REACTIVE_IN_HEAP_HEIGHT;
70
70
  actualInsertIntoHeap(e, t);
71
71
  }
72
72
  function deleteFromHeap(e, t) {
73
- const n = e._;
73
+ const n = e.S;
74
74
  if (!(n & (REACTIVE_IN_HEAP | REACTIVE_IN_HEAP_HEIGHT))) return;
75
- e._ = n & -25;
76
- const i = e.u;
77
- if (e.R === e) t.T[i] = undefined;
75
+ e.S = n & -25;
76
+ const i = e.o;
77
+ if (e.T === e) t.l[i] = undefined;
78
78
  else {
79
- const n = e.O;
80
- const r = t.T[i];
79
+ const n = e.R;
80
+ const r = t.l[i];
81
81
  const o = n ?? r;
82
- if (e === r) t.T[i] = n;
83
- else e.R.O = n;
84
- o.R = e.R;
82
+ if (e === r) t.l[i] = n;
83
+ else e.T.R = n;
84
+ o.T = e.T;
85
85
  }
86
- e.R = e;
87
- e.O = undefined;
86
+ e.T = e;
87
+ e.R = undefined;
88
88
  }
89
89
  function markHeap(e) {
90
- if (e.I) return;
91
- e.I = true;
92
- for (let t = 0; t <= e.S; t++) {
93
- for (let n = e.T[t]; n !== undefined; n = n.O) {
94
- if (n._ & REACTIVE_IN_HEAP) markNode(n);
90
+ if (e._) return;
91
+ e._ = true;
92
+ for (let t = 0; t <= e.O; t++) {
93
+ for (let n = e.l[t]; n !== undefined; n = n.R) {
94
+ if (n.S & REACTIVE_IN_HEAP) markNode(n);
95
95
  }
96
96
  }
97
97
  }
98
98
  function markNode(e, t = REACTIVE_DIRTY) {
99
- const n = e._;
99
+ const n = e.S;
100
100
  if ((n & (REACTIVE_CHECK | REACTIVE_DIRTY)) >= t) return;
101
- e._ = (n & -4) | t;
102
- for (let t = e.p; t !== null; t = t.h) {
103
- markNode(t.A, REACTIVE_CHECK);
101
+ e.S = (n & -4) | t;
102
+ for (let t = e.I; t !== null; t = t.p) {
103
+ markNode(t.h, REACTIVE_CHECK);
104
104
  }
105
- if (e.P !== null) {
106
- for (let t = e.P; t !== null; t = t.C) {
107
- for (let e = t.p; e !== null; e = e.h) {
108
- markNode(e.A, REACTIVE_CHECK);
105
+ if (e.A !== null) {
106
+ for (let t = e.A; t !== null; t = t.P) {
107
+ for (let e = t.I; e !== null; e = e.p) {
108
+ markNode(e.h, REACTIVE_CHECK);
109
109
  }
110
110
  }
111
111
  }
112
112
  }
113
113
  function runHeap(e, t) {
114
- e.I = false;
115
- for (e.N = 0; e.N <= e.S; e.N++) {
116
- let n = e.T[e.N];
114
+ e._ = false;
115
+ for (e.C = 0; e.C <= e.O; e.C++) {
116
+ let n = e.l[e.C];
117
117
  while (n !== undefined) {
118
- if (n._ & REACTIVE_IN_HEAP) t(n);
118
+ if (n.S & REACTIVE_IN_HEAP) t(n);
119
119
  else adjustHeight(n, e);
120
- n = e.T[e.N];
120
+ n = e.l[e.C];
121
121
  }
122
122
  }
123
- e.S = 0;
123
+ e.O = 0;
124
124
  }
125
125
  function adjustHeight(e, t) {
126
126
  deleteFromHeap(e, t);
127
- let n = e.u;
128
- for (let t = e.D; t; t = t.V) {
129
- const e = t.m;
130
- const i = e.L || e;
131
- if (i.k && i.u >= n) n = i.u + 1;
127
+ let n = e.o;
128
+ for (let t = e.N; t; t = t.D) {
129
+ const e = t.V;
130
+ const i = e.m || e;
131
+ if (i.L && i.o >= n) n = i.o + 1;
132
132
  }
133
- if (e.u !== n) {
134
- e.u = n;
135
- for (let n = e.p; n !== null; n = n.h) {
136
- insertIntoHeapHeight(n.A, t);
133
+ if (e.o !== n) {
134
+ e.o = n;
135
+ for (let n = e.I; n !== null; n = n.p) {
136
+ insertIntoHeapHeight(n.h, t);
137
137
  }
138
138
  }
139
139
  }
140
140
  const transitions = new Set();
141
- const dirtyQueue = { T: new Array(2e3).fill(undefined), I: false, N: 0, S: 0 };
142
- const zombieQueue = { T: new Array(2e3).fill(undefined), I: false, N: 0, S: 0 };
141
+ const dirtyQueue = { l: new Array(2e3).fill(undefined), _: false, C: 0, O: 0 };
142
+ const zombieQueue = { l: new Array(2e3).fill(undefined), _: false, C: 0, O: 0 };
143
143
  let clock = 0;
144
144
  let activeTransition = null;
145
145
  let scheduled = false;
146
146
  let projectionWriteActive = false;
147
147
  function runLaneEffects(e) {
148
148
  for (const t of activeLanes) {
149
- if (t.U || t.W.size > 0) continue;
150
- const n = t.F[e - 1];
149
+ if (t.k || t.U.size > 0) continue;
150
+ const n = t.W[e - 1];
151
151
  if (n.length) {
152
- t.F[e - 1] = [];
152
+ t.W[e - 1] = [];
153
153
  runQueue(n, e);
154
154
  }
155
155
  }
@@ -160,129 +160,129 @@ function setProjectionWriteActive(e) {
160
160
  function schedule() {
161
161
  if (scheduled) return;
162
162
  scheduled = true;
163
- if (!globalQueue.G) queueMicrotask(flush);
163
+ if (!globalQueue.M) queueMicrotask(flush);
164
164
  }
165
165
  class Queue {
166
- o = null;
167
- M = [[], []];
168
- $ = [];
166
+ i = null;
167
+ F = [[], []];
168
+ G = [];
169
169
  created = clock;
170
170
  addChild(e) {
171
- this.$.push(e);
172
- e.o = this;
171
+ this.G.push(e);
172
+ e.i = this;
173
173
  }
174
174
  removeChild(e) {
175
- const t = this.$.indexOf(e);
175
+ const t = this.G.indexOf(e);
176
176
  if (t >= 0) {
177
- this.$.splice(t, 1);
178
- e.o = null;
177
+ this.G.splice(t, 1);
178
+ e.i = null;
179
179
  }
180
180
  }
181
181
  notify(e, t, n, i) {
182
- if (this.o) return this.o.notify(e, t, n, i);
182
+ if (this.i) return this.i.notify(e, t, n, i);
183
183
  return false;
184
184
  }
185
185
  run(e) {
186
- if (this.M[e - 1].length) {
187
- const t = this.M[e - 1];
188
- this.M[e - 1] = [];
186
+ if (this.F[e - 1].length) {
187
+ const t = this.F[e - 1];
188
+ this.F[e - 1] = [];
189
189
  runQueue(t, e);
190
190
  }
191
- for (let t = 0; t < this.$.length; t++) this.$[t].run?.(e);
191
+ for (let t = 0; t < this.G.length; t++) this.G[t].run?.(e);
192
192
  }
193
193
  enqueue(e, t) {
194
194
  if (e) {
195
195
  if (currentOptimisticLane) {
196
196
  const n = findLane(currentOptimisticLane);
197
- n.F[e - 1].push(t);
197
+ n.W[e - 1].push(t);
198
198
  } else {
199
- this.M[e - 1].push(t);
199
+ this.F[e - 1].push(t);
200
200
  }
201
201
  }
202
202
  schedule();
203
203
  }
204
204
  stashQueues(e) {
205
- e.M[0].push(...this.M[0]);
206
- e.M[1].push(...this.M[1]);
207
- this.M = [[], []];
208
- for (let t = 0; t < this.$.length; t++) {
209
- let n = this.$[t];
210
- let i = e.$[t];
205
+ e.F[0].push(...this.F[0]);
206
+ e.F[1].push(...this.F[1]);
207
+ this.F = [[], []];
208
+ for (let t = 0; t < this.G.length; t++) {
209
+ let n = this.G[t];
210
+ let i = e.G[t];
211
211
  if (!i) {
212
- i = { M: [[], []], $: [] };
213
- e.$[t] = i;
212
+ i = { F: [[], []], G: [] };
213
+ e.G[t] = i;
214
214
  }
215
215
  n.stashQueues(i);
216
216
  }
217
217
  }
218
218
  restoreQueues(e) {
219
- this.M[0].push(...e.M[0]);
220
- this.M[1].push(...e.M[1]);
221
- for (let t = 0; t < e.$.length; t++) {
222
- const n = e.$[t];
223
- let i = this.$[t];
219
+ this.F[0].push(...e.F[0]);
220
+ this.F[1].push(...e.F[1]);
221
+ for (let t = 0; t < e.G.length; t++) {
222
+ const n = e.G[t];
223
+ let i = this.G[t];
224
224
  if (i) i.restoreQueues(n);
225
225
  }
226
226
  }
227
227
  }
228
228
  class GlobalQueue extends Queue {
229
- G = false;
229
+ M = false;
230
+ $ = [];
230
231
  H = [];
231
- j = [];
232
- K = new Set();
232
+ j = new Set();
233
+ static K;
233
234
  static Y;
234
- static B;
235
- static X = null;
235
+ static B = null;
236
236
  flush() {
237
- if (this.G) return;
238
- this.G = true;
237
+ if (this.M) return;
238
+ this.M = true;
239
239
  try {
240
- runHeap(dirtyQueue, GlobalQueue.Y);
240
+ runHeap(dirtyQueue, GlobalQueue.K);
241
241
  if (activeTransition) {
242
242
  const e = transitionComplete(activeTransition);
243
243
  if (!e) {
244
244
  let e = activeTransition;
245
- runHeap(zombieQueue, GlobalQueue.Y);
245
+ runHeap(zombieQueue, GlobalQueue.K);
246
+ this.$ = [];
246
247
  this.H = [];
247
- this.j = [];
248
- this.K = new Set();
248
+ this.j = new Set();
249
249
  runLaneEffects(EFFECT_RENDER);
250
250
  runLaneEffects(EFFECT_USER);
251
- this.stashQueues(activeTransition.q);
251
+ this.stashQueues(activeTransition.X);
252
252
  clock++;
253
- scheduled = dirtyQueue.S >= dirtyQueue.N;
254
- reassignPendingTransition(activeTransition.H);
253
+ scheduled = dirtyQueue.O >= dirtyQueue.C;
254
+ reassignPendingTransition(activeTransition.$);
255
255
  activeTransition = null;
256
256
  finalizePureQueue(null, true);
257
257
  return;
258
258
  }
259
- this.H !== activeTransition.H && this.H.push(...activeTransition.H);
260
- this.restoreQueues(activeTransition.q);
259
+ this.$ !== activeTransition.$ && this.$.push(...activeTransition.$);
260
+ this.restoreQueues(activeTransition.X);
261
261
  transitions.delete(activeTransition);
262
262
  const t = activeTransition;
263
263
  activeTransition = null;
264
- reassignPendingTransition(this.H);
264
+ reassignPendingTransition(this.$);
265
265
  finalizePureQueue(t);
266
266
  } else {
267
- if (transitions.size) runHeap(zombieQueue, GlobalQueue.Y);
267
+ if (transitions.size) runHeap(zombieQueue, GlobalQueue.K);
268
268
  finalizePureQueue();
269
269
  }
270
270
  clock++;
271
- scheduled = dirtyQueue.S >= dirtyQueue.N;
271
+ scheduled = dirtyQueue.O >= dirtyQueue.C;
272
272
  runLaneEffects(EFFECT_RENDER);
273
273
  this.run(EFFECT_RENDER);
274
274
  runLaneEffects(EFFECT_USER);
275
275
  this.run(EFFECT_USER);
276
276
  } finally {
277
- this.G = false;
277
+ this.M = false;
278
278
  }
279
279
  }
280
280
  notify(e, t, n, i) {
281
281
  if (t & STATUS_PENDING) {
282
282
  if (n & STATUS_PENDING) {
283
- const t = i !== undefined ? i : e.Z;
284
- if (activeTransition && t && !activeTransition.J.includes(t.t)) {
285
- activeTransition.J.push(t.t);
283
+ const t = i !== undefined ? i : e.q;
284
+ if (activeTransition && t && !activeTransition.Z.includes(t.source)) {
285
+ activeTransition.Z.push(t.source);
286
286
  schedule();
287
287
  }
288
288
  }
@@ -293,143 +293,143 @@ class GlobalQueue extends Queue {
293
293
  initTransition(e) {
294
294
  if (e) e = currentTransition(e);
295
295
  if (e && e === activeTransition) return;
296
- if (!e && activeTransition && activeTransition.ee === clock) return;
296
+ if (!e && activeTransition && activeTransition.J === clock) return;
297
297
  if (!activeTransition) {
298
298
  activeTransition = e ?? {
299
- ee: clock,
299
+ J: clock,
300
+ $: [],
301
+ Z: [],
300
302
  H: [],
301
- J: [],
302
- j: [],
303
- K: new Set(),
304
- te: [],
305
- q: { M: [[], []], $: [] },
306
- ne: false
303
+ j: new Set(),
304
+ ee: [],
305
+ X: { F: [[], []], G: [] },
306
+ te: false
307
307
  };
308
308
  } else if (e) {
309
309
  const t = activeTransition;
310
- t.ne = e;
311
- e.te.push(...t.te);
310
+ t.te = e;
311
+ e.ee.push(...t.ee);
312
312
  for (const n of activeLanes) {
313
- if (n.ie === t) n.ie = e;
313
+ if (n.ne === t) n.ne = e;
314
314
  }
315
- e.j.push(...t.j);
316
- for (const n of t.K) {
317
- e.K.add(n);
315
+ e.H.push(...t.H);
316
+ for (const n of t.j) {
317
+ e.j.add(n);
318
318
  }
319
319
  transitions.delete(t);
320
320
  activeTransition = e;
321
321
  }
322
322
  transitions.add(activeTransition);
323
- activeTransition.ee = clock;
323
+ activeTransition.J = clock;
324
+ for (let e = 0; e < this.$.length; e++) {
325
+ const t = this.$[e];
326
+ t.ne = activeTransition;
327
+ activeTransition.$.push(t);
328
+ }
329
+ this.$ = activeTransition.$;
324
330
  for (let e = 0; e < this.H.length; e++) {
325
331
  const t = this.H[e];
326
- t.ie = activeTransition;
332
+ t.ne = activeTransition;
327
333
  activeTransition.H.push(t);
328
334
  }
329
335
  this.H = activeTransition.H;
330
- for (let e = 0; e < this.j.length; e++) {
331
- const t = this.j[e];
332
- t.ie = activeTransition;
333
- activeTransition.j.push(t);
334
- }
335
- this.j = activeTransition.j;
336
336
  for (const e of activeLanes) {
337
- if (!e.ie) e.ie = activeTransition;
337
+ if (!e.ne) e.ne = activeTransition;
338
338
  }
339
- for (const e of this.K) activeTransition.K.add(e);
340
- this.K = activeTransition.K;
339
+ for (const e of this.j) activeTransition.j.add(e);
340
+ this.j = activeTransition.j;
341
341
  }
342
342
  }
343
343
  function insertSubs(e, t = false) {
344
- const n = e.re || currentOptimisticLane;
345
- for (let i = e.p; i !== null; i = i.h) {
344
+ const n = e.ie || currentOptimisticLane;
345
+ for (let i = e.I; i !== null; i = i.p) {
346
346
  if (t && n) {
347
- i.A._ |= REACTIVE_OPTIMISTIC_DIRTY;
348
- assignOrMergeLane(i.A, n);
347
+ i.h.S |= REACTIVE_OPTIMISTIC_DIRTY;
348
+ assignOrMergeLane(i.h, n);
349
349
  } else if (t) {
350
- i.A._ |= REACTIVE_OPTIMISTIC_DIRTY;
351
- i.A.re = undefined;
350
+ i.h.S |= REACTIVE_OPTIMISTIC_DIRTY;
351
+ i.h.ie = undefined;
352
352
  }
353
- const e = i.A;
354
- if (e.oe === EFFECT_TRACKED) {
355
- if (!e.se) {
356
- e.se = true;
357
- e.ue.enqueue(EFFECT_USER, e.ce);
353
+ const e = i.h;
354
+ if (e.re === EFFECT_TRACKED) {
355
+ if (!e.oe) {
356
+ e.oe = true;
357
+ e.se.enqueue(EFFECT_USER, e.ue);
358
358
  }
359
359
  continue;
360
360
  }
361
- const r = i.A._ & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
362
- if (r.N > i.A.u) r.N = i.A.u;
363
- insertIntoHeap(i.A, r);
361
+ const r = i.h.S & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
362
+ if (r.C > i.h.o) r.C = i.h.o;
363
+ insertIntoHeap(i.h, r);
364
364
  }
365
365
  }
366
366
  function finalizePureQueue(e = null, t = false) {
367
367
  let n = !t;
368
368
  if (!t) checkBoundaryChildren(globalQueue);
369
- if (dirtyQueue.S >= dirtyQueue.N) runHeap(dirtyQueue, GlobalQueue.Y);
369
+ if (dirtyQueue.O >= dirtyQueue.C) runHeap(dirtyQueue, GlobalQueue.K);
370
370
  if (n) {
371
- const t = globalQueue.H;
371
+ const t = globalQueue.$;
372
372
  for (let e = 0; e < t.length; e++) {
373
373
  const n = t[e];
374
- if (n.le !== NOT_PENDING) {
375
- n.ae = n.le;
376
- n.le = NOT_PENDING;
377
- if (n.oe && n.oe !== EFFECT_TRACKED) n.se = true;
374
+ if (n.ce !== NOT_PENDING) {
375
+ n.le = n.ce;
376
+ n.ce = NOT_PENDING;
377
+ if (n.re && n.re !== EFFECT_TRACKED) n.oe = true;
378
378
  }
379
- n.fe &= ~STATUS_UNINITIALIZED;
380
- if (n.k) GlobalQueue.B(n, false, true);
379
+ n.ae &= ~STATUS_UNINITIALIZED;
380
+ if (n.L) GlobalQueue.Y(n, false, true);
381
381
  }
382
382
  t.length = 0;
383
- const n = e ? e.j : globalQueue.j;
383
+ const n = e ? e.H : globalQueue.H;
384
384
  for (let e = 0; e < n.length; e++) {
385
385
  const t = n[e];
386
- const i = t.le;
387
- t.re = undefined;
388
- if (i !== NOT_PENDING && t.ae !== i) {
389
- t.ae = i;
386
+ const i = t.ce;
387
+ t.ie = undefined;
388
+ if (i !== NOT_PENDING && t.le !== i) {
389
+ t.le = i;
390
390
  insertSubs(t, true);
391
391
  }
392
- t.le = NOT_PENDING;
393
- t.ie = null;
392
+ t.ce = NOT_PENDING;
393
+ t.ne = null;
394
394
  }
395
395
  n.length = 0;
396
- const i = e ? e.K : globalQueue.K;
397
- if (GlobalQueue.X && i.size) {
396
+ const i = e ? e.j : globalQueue.j;
397
+ if (GlobalQueue.B && i.size) {
398
398
  for (const e of i) {
399
- GlobalQueue.X(e);
399
+ GlobalQueue.B(e);
400
400
  }
401
401
  i.clear();
402
402
  schedule();
403
403
  }
404
404
  for (const t of activeLanes) {
405
- const n = e ? t.ie === e : !t.ie;
405
+ const n = e ? t.ne === e : !t.ne;
406
406
  if (!n) continue;
407
- if (!t.U) {
408
- if (t.F[0].length) runQueue(t.F[0], EFFECT_RENDER);
409
- if (t.F[1].length) runQueue(t.F[1], EFFECT_USER);
410
- }
411
- if (t.t.re === t) t.t.re = undefined;
412
- t.W.clear();
413
- t.F[0].length = 0;
414
- t.F[1].length = 0;
407
+ if (!t.k) {
408
+ if (t.W[0].length) runQueue(t.W[0], EFFECT_RENDER);
409
+ if (t.W[1].length) runQueue(t.W[1], EFFECT_USER);
410
+ }
411
+ if (t.fe.ie === t) t.fe.ie = undefined;
412
+ t.U.clear();
413
+ t.W[0].length = 0;
414
+ t.W[1].length = 0;
415
415
  activeLanes.delete(t);
416
- signalLanes.delete(t.t);
416
+ signalLanes.delete(t.fe);
417
417
  }
418
418
  }
419
419
  }
420
420
  function checkBoundaryChildren(e) {
421
- for (const t of e.$) {
421
+ for (const t of e.G) {
422
422
  t.checkSources?.();
423
423
  checkBoundaryChildren(t);
424
424
  }
425
425
  }
426
426
  function trackOptimisticStore(e) {
427
- globalQueue.K.add(e);
427
+ globalQueue.j.add(e);
428
428
  schedule();
429
429
  }
430
430
  function reassignPendingTransition(e) {
431
431
  for (let t = 0; t < e.length; t++) {
432
- e[t].ie = activeTransition;
432
+ e[t].ne = activeTransition;
433
433
  }
434
434
  }
435
435
  const globalQueue = new GlobalQueue();
@@ -442,21 +442,21 @@ function runQueue(e, t) {
442
442
  for (let n = 0; n < e.length; n++) e[n](t);
443
443
  }
444
444
  function transitionComplete(e) {
445
- if (e.ne) return true;
446
- if (e.te.length) return false;
445
+ if (e.te) return true;
446
+ if (e.ee.length) return false;
447
447
  let t = true;
448
- for (let n = 0; n < e.J.length; n++) {
449
- const i = e.J[n];
450
- if (i.fe & STATUS_PENDING && i.Z?.t === i) {
448
+ for (let n = 0; n < e.Z.length; n++) {
449
+ const i = e.Z[n];
450
+ if (i.ae & STATUS_PENDING && i.q?.source === i) {
451
451
  t = false;
452
452
  break;
453
453
  }
454
454
  }
455
- t && (e.ne = true);
455
+ t && (e.te = true);
456
456
  return t;
457
457
  }
458
458
  function currentTransition(e) {
459
- while (e.ne && typeof e.ne === "object") e = e.ne;
459
+ while (e.te && typeof e.te === "object") e = e.te;
460
460
  return e;
461
461
  }
462
462
  function setActiveTransition(e) {
@@ -479,58 +479,58 @@ function getOrCreateLane(e) {
479
479
  return findLane(t);
480
480
  }
481
481
  const n = e.Ee;
482
- const i = n?.re ? findLane(n.re) : null;
483
- t = { t: e, W: new Set(), F: [[], []], U: null, ie: activeTransition, Te: i };
482
+ const i = n?.ie ? findLane(n.ie) : null;
483
+ t = { fe: e, U: new Set(), W: [[], []], k: null, ne: activeTransition, Te: i };
484
484
  signalLanes.set(e, t);
485
485
  activeLanes.add(t);
486
486
  e.de = e.Re || 0;
487
487
  return t;
488
488
  }
489
489
  function findLane(e) {
490
- while (e.U) e = e.U;
490
+ while (e.k) e = e.k;
491
491
  return e;
492
492
  }
493
493
  function mergeLanes(e, t) {
494
494
  e = findLane(e);
495
495
  t = findLane(t);
496
496
  if (e === t) return e;
497
- t.U = e;
498
- for (const n of t.W) e.W.add(n);
499
- e.F[0].push(...t.F[0]);
500
- e.F[1].push(...t.F[1]);
497
+ t.k = e;
498
+ for (const n of t.U) e.U.add(n);
499
+ e.W[0].push(...t.W[0]);
500
+ e.W[1].push(...t.W[1]);
501
501
  return e;
502
502
  }
503
503
  function resolveLane(e) {
504
- const t = e.re;
504
+ const t = e.ie;
505
505
  if (!t) return undefined;
506
506
  const n = findLane(t);
507
507
  if (activeLanes.has(n)) return n;
508
- e.re = undefined;
508
+ e.ie = undefined;
509
509
  return undefined;
510
510
  }
511
511
  function hasActiveOverride(e) {
512
- return !!(e.Oe && e.le !== NOT_PENDING);
512
+ return !!(e.Oe && e.ce !== NOT_PENDING);
513
513
  }
514
514
  function assignOrMergeLane(e, t) {
515
515
  const n = findLane(t);
516
- const i = e.re;
516
+ const i = e.ie;
517
517
  if (i) {
518
- if (i.U) {
519
- e.re = t;
518
+ if (i.k) {
519
+ e.ie = t;
520
520
  return;
521
521
  }
522
522
  const r = findLane(i);
523
523
  if (activeLanes.has(r)) {
524
524
  if (r !== n && !hasActiveOverride(e)) {
525
525
  if (n.Te && findLane(n.Te) === r) {
526
- e.re = t;
526
+ e.ie = t;
527
527
  } else if (r.Te && findLane(r.Te) === n);
528
528
  else mergeLanes(n, r);
529
529
  }
530
530
  return;
531
531
  }
532
532
  }
533
- e.re = t;
533
+ e.ie = t;
534
534
  }
535
535
  function handleAsync(e, t, n) {
536
536
  const i = typeof t === "object" && t !== null;
@@ -544,32 +544,32 @@ function handleAsync(e, t, n) {
544
544
  let s;
545
545
  const handleError = n => {
546
546
  if (e.Se !== t) return;
547
- globalQueue.initTransition(e.ie);
547
+ globalQueue.initTransition(e.ne);
548
548
  notifyStatus(e, n instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR, n);
549
- e.ee = clock;
549
+ e.J = clock;
550
550
  };
551
551
  const asyncWrite = (i, r) => {
552
552
  if (e.Se !== t) return;
553
- if (e._ & (REACTIVE_DIRTY | REACTIVE_OPTIMISTIC_DIRTY)) return;
554
- globalQueue.initTransition(e.ie);
553
+ if (e.S & (REACTIVE_DIRTY | REACTIVE_OPTIMISTIC_DIRTY)) return;
554
+ globalQueue.initTransition(e.ne);
555
555
  clearStatus(e);
556
556
  const o = resolveLane(e);
557
- if (o) o.W.delete(e);
557
+ if (o) o.U.delete(e);
558
558
  if (n) n(i);
559
559
  else if (e.Oe) {
560
- const t = e.le !== NOT_PENDING;
561
- if (e.k) e.le = i;
560
+ const t = e.ce !== NOT_PENDING;
561
+ if (e.L) e.ce = i;
562
562
  if (!t) {
563
- e.ae = i;
563
+ e.le = i;
564
564
  insertSubs(e);
565
565
  }
566
- e.ee = clock;
566
+ e.J = clock;
567
567
  } else if (o) {
568
- const t = e.ae;
568
+ const t = e.le;
569
569
  const n = e._e;
570
570
  if (!n || !n(i, t)) {
571
- e.ae = i;
572
- e.ee = clock;
571
+ e.le = i;
572
+ e.J = clock;
573
573
  if (e.Ie) {
574
574
  setSignal(e.Ie, i);
575
575
  }
@@ -598,7 +598,7 @@ function handleAsync(e, t, n) {
598
598
  );
599
599
  i = false;
600
600
  if (!n) {
601
- globalQueue.initTransition(e.ie);
601
+ globalQueue.initTransition(e.ne);
602
602
  throw new NotReadyError(context);
603
603
  }
604
604
  }
@@ -630,36 +630,36 @@ function handleAsync(e, t, n) {
630
630
  };
631
631
  const r = iterate();
632
632
  if (!i && !r) {
633
- globalQueue.initTransition(e.ie);
633
+ globalQueue.initTransition(e.ne);
634
634
  throw new NotReadyError(context);
635
635
  }
636
636
  }
637
637
  return s;
638
638
  }
639
639
  function clearStatus(e) {
640
- e.fe = e.fe & STATUS_UNINITIALIZED;
641
- e.Z = null;
640
+ e.ae = e.ae & STATUS_UNINITIALIZED;
641
+ e.q = null;
642
642
  updatePendingSignal(e);
643
643
  e.pe?.();
644
644
  }
645
645
  function notifyStatus(e, t, n, i, r) {
646
646
  if (t === STATUS_ERROR && !(n instanceof StatusError) && !(n instanceof NotReadyError))
647
647
  n = new StatusError(e, n);
648
- const o = n instanceof NotReadyError && n.t === e;
648
+ const o = n instanceof NotReadyError && n.source === e;
649
649
  const s = t === STATUS_PENDING && e.Oe && !o;
650
650
  const u = s && hasActiveOverride(e);
651
651
  if (!i) {
652
- e.fe = t | (t !== STATUS_ERROR ? e.fe & STATUS_UNINITIALIZED : 0);
653
- e.Z = n;
652
+ e.ae = t | (t !== STATUS_ERROR ? e.ae & STATUS_UNINITIALIZED : 0);
653
+ e.q = n;
654
654
  updatePendingSignal(e);
655
655
  }
656
656
  if (r && !i) {
657
657
  assignOrMergeLane(e, r);
658
658
  }
659
659
  if (u && activeTransition && n instanceof NotReadyError) {
660
- const e = n.t;
661
- if (!activeTransition.J.includes(e)) {
662
- activeTransition.J.push(e);
660
+ const e = n.source;
661
+ if (!activeTransition.Z.includes(e)) {
662
+ activeTransition.Z.push(e);
663
663
  }
664
664
  }
665
665
  const c = i || u;
@@ -672,19 +672,19 @@ function notifyStatus(e, t, n, i, r) {
672
672
  }
673
673
  return;
674
674
  }
675
- for (let i = e.p; i !== null; i = i.h) {
676
- i.A.ee = clock;
677
- if (i.A.Z !== n) {
678
- !i.A.ie && globalQueue.H.push(i.A);
679
- notifyStatus(i.A, t, n, c, l);
675
+ for (let i = e.I; i !== null; i = i.p) {
676
+ i.h.J = clock;
677
+ if (i.h.q !== n) {
678
+ !i.h.ne && globalQueue.$.push(i.h);
679
+ notifyStatus(i.h, t, n, c, l);
680
680
  }
681
681
  }
682
- for (let i = e.P; i !== null; i = i.C) {
683
- for (let e = i.p; e !== null; e = e.h) {
684
- e.A.ee = clock;
685
- if (e.A.Z !== n) {
686
- !e.A.ie && globalQueue.H.push(e.A);
687
- notifyStatus(e.A, t, n, c, l);
682
+ for (let i = e.A; i !== null; i = i.P) {
683
+ for (let e = i.I; e !== null; e = e.p) {
684
+ e.h.J = clock;
685
+ if (e.h.q !== n) {
686
+ !e.h.ne && globalQueue.$.push(e.h);
687
+ notifyStatus(e.h, t, n, c, l);
688
688
  }
689
689
  }
690
690
  }
@@ -694,8 +694,8 @@ function effect(e, t, n, i, r) {
694
694
  const s = computed(r?.render ? t => staleValues(() => e(t)) : e, i, {
695
695
  ...r,
696
696
  equals: () => {
697
- s.se = !s.Z;
698
- if (o) s.ue.enqueue(s.oe, runEffect.bind(s));
697
+ s.oe = !s.q;
698
+ if (o) s.se.enqueue(s.re, runEffect.bind(s));
699
699
  return false;
700
700
  },
701
701
  lazy: true
@@ -704,14 +704,14 @@ function effect(e, t, n, i, r) {
704
704
  s.Ae = t;
705
705
  s.ge = n;
706
706
  s.Pe = undefined;
707
- s.oe = r?.render ? EFFECT_RENDER : EFFECT_USER;
707
+ s.re = r?.render ? EFFECT_RENDER : EFFECT_USER;
708
708
  s.pe = (e, t) => {
709
- const n = e !== undefined ? e : s.fe;
710
- const i = t !== undefined ? t : s.Z;
709
+ const n = e !== undefined ? e : s.ae;
710
+ const i = t !== undefined ? t : s.q;
711
711
  if (n & STATUS_ERROR) {
712
712
  let e = i;
713
- s.ue.notify(s, STATUS_PENDING, 0);
714
- if (s.oe === EFFECT_USER) {
713
+ s.se.notify(s, STATUS_PENDING, 0);
714
+ if (s.re === EFFECT_USER) {
715
715
  try {
716
716
  return s.ge
717
717
  ? s.ge(e, () => {
@@ -723,31 +723,31 @@ function effect(e, t, n, i, r) {
723
723
  e = t;
724
724
  }
725
725
  }
726
- if (!s.ue.notify(s, STATUS_ERROR, STATUS_ERROR)) throw e;
727
- } else if (s.oe === EFFECT_RENDER) s.ue.notify(s, STATUS_PENDING | STATUS_ERROR, n, i);
726
+ if (!s.se.notify(s, STATUS_ERROR, STATUS_ERROR)) throw e;
727
+ } else if (s.re === EFFECT_RENDER) s.se.notify(s, STATUS_PENDING | STATUS_ERROR, n, i);
728
728
  };
729
729
  recompute(s, true);
730
- !r?.defer && (s.oe === EFFECT_USER ? s.ue.enqueue(s.oe, runEffect.bind(s)) : runEffect.call(s));
730
+ !r?.defer && (s.re === EFFECT_USER ? s.se.enqueue(s.re, runEffect.bind(s)) : runEffect.call(s));
731
731
  o = true;
732
732
  onCleanup(() => s.Pe?.());
733
733
  }
734
734
  function runEffect() {
735
- if (!this.se || this._ & REACTIVE_DISPOSED) return;
735
+ if (!this.oe || this.S & REACTIVE_DISPOSED) return;
736
736
  this.Pe?.();
737
737
  this.Pe = undefined;
738
738
  try {
739
- this.Pe = this.Ae(this.ae, this.he);
739
+ this.Pe = this.Ae(this.le, this.he);
740
740
  } catch (e) {
741
- if (!this.ue.notify(this, STATUS_ERROR, STATUS_ERROR)) throw e;
741
+ if (!this.se.notify(this, STATUS_ERROR, STATUS_ERROR)) throw e;
742
742
  } finally {
743
- this.he = this.ae;
744
- this.se = false;
743
+ this.he = this.le;
744
+ this.oe = false;
745
745
  }
746
746
  }
747
747
  function trackedEffect(e, t) {
748
748
  const run = () => {
749
- if (!n.se || n._ & REACTIVE_DISPOSED) return;
750
- n.se = false;
749
+ if (!n.oe || n.S & REACTIVE_DISPOSED) return;
750
+ n.oe = false;
751
751
  recompute(n);
752
752
  };
753
753
  const n = computed(
@@ -763,18 +763,18 @@ function trackedEffect(e, t) {
763
763
  { ...t, lazy: true, pureWrite: true }
764
764
  );
765
765
  n.Pe = undefined;
766
- n.se = true;
767
- n.oe = EFFECT_TRACKED;
768
- n.ce = run;
769
- n.ue.enqueue(EFFECT_USER, run);
766
+ n.oe = true;
767
+ n.re = EFFECT_TRACKED;
768
+ n.ue = run;
769
+ n.se.enqueue(EFFECT_USER, run);
770
770
  onCleanup(() => n.Pe?.());
771
771
  }
772
772
  const PENDING_OWNER = {};
773
773
  function markDisposal(e) {
774
774
  let t = e.Ce;
775
775
  while (t) {
776
- t._ |= REACTIVE_ZOMBIE;
777
- if (t._ & REACTIVE_IN_HEAP) {
776
+ t.S |= REACTIVE_ZOMBIE;
777
+ if (t.S & REACTIVE_IN_HEAP) {
778
778
  deleteFromHeap(t, dirtyQueue);
779
779
  insertIntoHeap(t, zombieQueue);
780
780
  }
@@ -783,28 +783,28 @@ function markDisposal(e) {
783
783
  }
784
784
  }
785
785
  function dispose(e) {
786
- let t = e.D || null;
786
+ let t = e.N || null;
787
787
  do {
788
788
  t = unlinkSubs(t);
789
789
  } while (t !== null);
790
- e.D = null;
790
+ e.N = null;
791
791
  e.ye = null;
792
792
  disposeChildren(e, true);
793
793
  }
794
794
  function disposeChildren(e, t = false, n) {
795
- if (e._ & REACTIVE_DISPOSED) return;
796
- if (t) e._ = REACTIVE_DISPOSED;
795
+ if (e.S & REACTIVE_DISPOSED) return;
796
+ if (t) e.S = REACTIVE_DISPOSED;
797
797
  let i = n ? e.De : e.Ce;
798
798
  while (i) {
799
799
  const e = i.Ne;
800
- if (i.D) {
800
+ if (i.N) {
801
801
  const e = i;
802
- deleteFromHeap(e, e._ & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
803
- let t = e.D;
802
+ deleteFromHeap(e, e.S & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
803
+ let t = e.N;
804
804
  do {
805
805
  t = unlinkSubs(t);
806
806
  } while (t !== null);
807
- e.D = null;
807
+ e.N = null;
808
808
  e.ye = null;
809
809
  }
810
810
  disposeChildren(i, true);
@@ -815,11 +815,12 @@ function disposeChildren(e, t = false, n) {
815
815
  } else {
816
816
  e.Ce = null;
817
817
  e.Ne = null;
818
+ e.ve = 0;
818
819
  }
819
820
  runDisposal(e, n);
820
821
  }
821
822
  function runDisposal(e, t) {
822
- let n = t ? e.ve : e.we;
823
+ let n = t ? e.we : e.be;
823
824
  if (!n) return;
824
825
  if (Array.isArray(n)) {
825
826
  for (let e = 0; e < n.length; e++) {
@@ -829,10 +830,10 @@ function runDisposal(e, t) {
829
830
  } else {
830
831
  n.call(n);
831
832
  }
832
- t ? (e.ve = null) : (e.we = null);
833
+ t ? (e.we = null) : (e.be = null);
833
834
  }
834
835
  function getNextChildId(e) {
835
- if (e.id != null) return formatId(e.id, e.be++);
836
+ if (e.id != null) return formatId(e.id, e.ve++);
836
837
  throw new Error("Cannot get child id from owner without an id");
837
838
  }
838
839
  function formatId(e, t) {
@@ -849,26 +850,26 @@ function getOwner() {
849
850
  }
850
851
  function onCleanup(e) {
851
852
  if (!context) return e;
852
- if (!context.we) context.we = e;
853
- else if (Array.isArray(context.we)) context.we.push(e);
854
- else context.we = [context.we, e];
853
+ if (!context.be) context.be = e;
854
+ else if (Array.isArray(context.be)) context.be.push(e);
855
+ else context.be = [context.be, e];
855
856
  return e;
856
857
  }
857
858
  function createOwner(e) {
858
859
  const t = context;
859
860
  const n = {
860
861
  id: e?.id ?? (t?.id != null ? getNextChildId(t) : undefined),
861
- i: true,
862
- l: t?.i ? t.l : t,
862
+ t: true,
863
+ u: t?.t ? t.u : t,
863
864
  Ce: null,
864
865
  Ne: null,
865
- we: null,
866
- ue: t?.ue ?? globalQueue,
866
+ be: null,
867
+ se: t?.se ?? globalQueue,
867
868
  Ve: t?.Ve || defaultContext,
868
- be: 0,
869
- ve: null,
869
+ ve: 0,
870
+ we: null,
870
871
  De: null,
871
- o: t,
872
+ i: t,
872
873
  dispose(e = true) {
873
874
  disposeChildren(n, e);
874
875
  }
@@ -889,65 +890,65 @@ function createRoot(e, t) {
889
890
  return runWithOwner(n, () => e(n.dispose));
890
891
  }
891
892
  function unlinkSubs(e) {
892
- const t = e.m;
893
- const n = e.V;
894
- const i = e.h;
893
+ const t = e.V;
894
+ const n = e.D;
895
+ const i = e.p;
895
896
  const r = e.me;
896
897
  if (i !== null) i.me = r;
897
898
  else t.Le = r;
898
- if (r !== null) r.h = i;
899
+ if (r !== null) r.p = i;
899
900
  else {
900
- t.p = i;
901
+ t.I = i;
901
902
  if (i === null) {
902
903
  t.ke?.();
903
- t.k && !t.Ue && unobserved(t);
904
+ t.L && !t.Ue && unobserved(t);
904
905
  }
905
906
  }
906
907
  return n;
907
908
  }
908
909
  function unobserved(e) {
909
- deleteFromHeap(e, e._ & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
910
- let t = e.D;
910
+ deleteFromHeap(e, e.S & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
911
+ let t = e.N;
911
912
  while (t !== null) {
912
913
  t = unlinkSubs(t);
913
914
  }
914
- e.D = null;
915
+ e.N = null;
915
916
  disposeChildren(e, true);
916
917
  }
917
918
  function link(e, t) {
918
919
  const n = t.ye;
919
- if (n !== null && n.m === e) return;
920
+ if (n !== null && n.V === e) return;
920
921
  let i = null;
921
- const r = t._ & REACTIVE_RECOMPUTING_DEPS;
922
+ const r = t.S & REACTIVE_RECOMPUTING_DEPS;
922
923
  if (r) {
923
- i = n !== null ? n.V : t.D;
924
- if (i !== null && i.m === e) {
924
+ i = n !== null ? n.D : t.N;
925
+ if (i !== null && i.V === e) {
925
926
  t.ye = i;
926
927
  return;
927
928
  }
928
929
  }
929
930
  const o = e.Le;
930
- if (o !== null && o.A === t && (!r || isValidLink(o, t))) return;
931
- const s = (t.ye = e.Le = { m: e, A: t, V: i, me: o, h: null });
932
- if (n !== null) n.V = s;
933
- else t.D = s;
934
- if (o !== null) o.h = s;
935
- else e.p = s;
931
+ if (o !== null && o.h === t && (!r || isValidLink(o, t))) return;
932
+ const s = (t.ye = e.Le = { V: e, h: t, D: i, me: o, p: null });
933
+ if (n !== null) n.D = s;
934
+ else t.N = s;
935
+ if (o !== null) o.p = s;
936
+ else e.I = s;
936
937
  }
937
938
  function isValidLink(e, t) {
938
939
  const n = t.ye;
939
940
  if (n !== null) {
940
- let i = t.D;
941
+ let i = t.N;
941
942
  do {
942
943
  if (i === e) return true;
943
944
  if (i === n) break;
944
- i = i.V;
945
+ i = i.D;
945
946
  } while (i !== null);
946
947
  }
947
948
  return false;
948
949
  }
949
- GlobalQueue.Y = recompute;
950
- GlobalQueue.B = disposeChildren;
950
+ GlobalQueue.K = recompute;
951
+ GlobalQueue.Y = disposeChildren;
951
952
  let tracking = false;
952
953
  let stale = false;
953
954
  let refreshing = false;
@@ -957,30 +958,31 @@ let pendingReadActive = false;
957
958
  let context = null;
958
959
  let currentOptimisticLane = null;
959
960
  function recompute(e, t = false) {
960
- const n = e.oe;
961
+ const n = e.re;
961
962
  if (!t) {
962
- if (e.ie && (!n || activeTransition) && activeTransition !== e.ie)
963
- globalQueue.initTransition(e.ie);
964
- deleteFromHeap(e, e._ & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
965
- if (e.ie || n === EFFECT_TRACKED) disposeChildren(e);
963
+ if (e.ne && (!n || activeTransition) && activeTransition !== e.ne)
964
+ globalQueue.initTransition(e.ne);
965
+ deleteFromHeap(e, e.S & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
966
+ if (e.ne || n === EFFECT_TRACKED) disposeChildren(e);
966
967
  else {
967
968
  markDisposal(e);
968
- e.ve = e.we;
969
+ e.we = e.be;
969
970
  e.De = e.Ce;
970
- e.we = null;
971
+ e.be = null;
971
972
  e.Ce = null;
973
+ e.ve = 0;
972
974
  }
973
975
  }
974
- const i = !!(e._ & REACTIVE_OPTIMISTIC_DIRTY);
976
+ const i = !!(e.S & REACTIVE_OPTIMISTIC_DIRTY);
975
977
  const r = hasActiveOverride(e);
976
- const o = !!(e.fe & STATUS_PENDING);
978
+ const o = !!(e.ae & STATUS_PENDING);
977
979
  const s = context;
978
980
  context = e;
979
981
  e.ye = null;
980
- e._ = REACTIVE_RECOMPUTING_DEPS;
981
- e.ee = clock;
982
- let u = e.le === NOT_PENDING ? e.ae : e.le;
983
- let c = e.u;
982
+ e.S = REACTIVE_RECOMPUTING_DEPS;
983
+ e.J = clock;
984
+ let u = e.ce === NOT_PENDING ? e.le : e.ce;
985
+ let c = e.o;
984
986
  let l = tracking;
985
987
  let a = currentOptimisticLane;
986
988
  tracking = true;
@@ -989,20 +991,20 @@ function recompute(e, t = false) {
989
991
  if (t) currentOptimisticLane = t;
990
992
  }
991
993
  try {
992
- u = handleAsync(e, e.k(u));
994
+ u = handleAsync(e, e.L(u));
993
995
  clearStatus(e);
994
996
  const t = resolveLane(e);
995
997
  if (t) {
996
- t.W.delete(e);
997
- updatePendingSignal(t.t);
998
+ t.U.delete(e);
999
+ updatePendingSignal(t.fe);
998
1000
  }
999
1001
  } catch (t) {
1000
1002
  if (t instanceof NotReadyError && currentOptimisticLane) {
1001
1003
  const t = findLane(currentOptimisticLane);
1002
- if (t.t !== e) {
1003
- t.W.add(e);
1004
- e.re = t;
1005
- updatePendingSignal(t.t);
1004
+ if (t.fe !== e) {
1005
+ t.U.add(e);
1006
+ e.ie = t;
1007
+ updatePendingSignal(t.fe);
1006
1008
  }
1007
1009
  }
1008
1010
  notifyStatus(
@@ -1010,66 +1012,66 @@ function recompute(e, t = false) {
1010
1012
  t instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR,
1011
1013
  t,
1012
1014
  undefined,
1013
- t instanceof NotReadyError ? e.re : undefined
1015
+ t instanceof NotReadyError ? e.ie : undefined
1014
1016
  );
1015
1017
  } finally {
1016
1018
  tracking = l;
1017
- e._ = REACTIVE_NONE;
1019
+ e.S = REACTIVE_NONE;
1018
1020
  context = s;
1019
1021
  }
1020
- if (!e.Z) {
1022
+ if (!e.q) {
1021
1023
  const s = e.ye;
1022
- let l = s !== null ? s.V : e.D;
1024
+ let l = s !== null ? s.D : e.N;
1023
1025
  if (l !== null) {
1024
1026
  do {
1025
1027
  l = unlinkSubs(l);
1026
1028
  } while (l !== null);
1027
- if (s !== null) s.V = null;
1028
- else e.D = null;
1029
+ if (s !== null) s.D = null;
1030
+ else e.N = null;
1029
1031
  }
1030
- const a = r ? e.ae : e.le === NOT_PENDING ? e.ae : e.le;
1032
+ const a = r ? e.le : e.ce === NOT_PENDING ? e.le : e.ce;
1031
1033
  const f = !e._e || !e._e(a, u);
1032
1034
  if (f) {
1033
- const s = r ? e.ae : undefined;
1034
- if (t || (n && activeTransition !== e.ie) || i) e.ae = u;
1035
- else e.le = u;
1035
+ const s = r ? e.le : undefined;
1036
+ if (t || (n && activeTransition !== e.ne) || i) e.le = u;
1037
+ else e.ce = u;
1036
1038
  if (r && !i && o) {
1037
1039
  const t = e.Re || 0;
1038
1040
  const n = e.de || 0;
1039
- if (t <= n) e.ae = u;
1041
+ if (t <= n) e.le = u;
1040
1042
  }
1041
- if (!r || i || e.ae !== s) {
1043
+ if (!r || i || e.le !== s) {
1042
1044
  insertSubs(e, i || r);
1043
1045
  }
1044
1046
  } else if (r) {
1045
- e.le = u;
1046
- } else if (e.u != c) {
1047
- for (let t = e.p; t !== null; t = t.h) {
1048
- insertIntoHeapHeight(t.A, t.A._ & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
1047
+ e.ce = u;
1048
+ } else if (e.o != c) {
1049
+ for (let t = e.I; t !== null; t = t.p) {
1050
+ insertIntoHeapHeight(t.h, t.h.S & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
1049
1051
  }
1050
1052
  }
1051
1053
  }
1052
1054
  currentOptimisticLane = a;
1053
- (!t || e.fe & STATUS_PENDING) && !e.ie && !(activeTransition && e.Oe) && globalQueue.H.push(e);
1054
- e.ie && n && activeTransition !== e.ie && runInTransition(e.ie, () => recompute(e));
1055
+ (!t || e.ae & STATUS_PENDING) && !e.ne && !(activeTransition && e.Oe) && globalQueue.$.push(e);
1056
+ e.ne && n && activeTransition !== e.ne && runInTransition(e.ne, () => recompute(e));
1055
1057
  }
1056
1058
  function updateIfNecessary(e) {
1057
- if (e._ & REACTIVE_CHECK) {
1058
- for (let t = e.D; t; t = t.V) {
1059
- const n = t.m;
1060
- const i = n.L || n;
1061
- if (i.k) {
1059
+ if (e.S & REACTIVE_CHECK) {
1060
+ for (let t = e.N; t; t = t.D) {
1061
+ const n = t.V;
1062
+ const i = n.m || n;
1063
+ if (i.L) {
1062
1064
  updateIfNecessary(i);
1063
1065
  }
1064
- if (e._ & REACTIVE_DIRTY) {
1066
+ if (e.S & REACTIVE_DIRTY) {
1065
1067
  break;
1066
1068
  }
1067
1069
  }
1068
1070
  }
1069
- if (e._ & (REACTIVE_DIRTY | REACTIVE_OPTIMISTIC_DIRTY) || (e.Z && e.ee < clock)) {
1071
+ if (e.S & (REACTIVE_DIRTY | REACTIVE_OPTIMISTIC_DIRTY) || (e.q && e.J < clock)) {
1070
1072
  recompute(e);
1071
1073
  }
1072
- e._ = REACTIVE_NONE;
1074
+ e.S = REACTIVE_NONE;
1073
1075
  }
1074
1076
  function computed(e, t, n) {
1075
1077
  const i = {
@@ -1077,34 +1079,34 @@ function computed(e, t, n) {
1077
1079
  _e: n?.equals != null ? n.equals : isEqual,
1078
1080
  We: !!n?.pureWrite,
1079
1081
  ke: n?.unobserved,
1080
- we: null,
1081
- ue: context?.ue ?? globalQueue,
1082
+ be: null,
1083
+ se: context?.se ?? globalQueue,
1082
1084
  Ve: context?.Ve ?? defaultContext,
1083
- be: 0,
1084
- k: e,
1085
- ae: t,
1086
- u: 0,
1087
- P: null,
1088
- O: undefined,
1089
- R: null,
1090
- D: null,
1085
+ ve: 0,
1086
+ L: e,
1087
+ le: t,
1088
+ o: 0,
1089
+ A: null,
1090
+ R: undefined,
1091
+ T: null,
1092
+ N: null,
1091
1093
  ye: null,
1092
- p: null,
1094
+ I: null,
1093
1095
  Le: null,
1094
- o: context,
1096
+ i: context,
1095
1097
  Ne: null,
1096
1098
  Ce: null,
1097
- _: REACTIVE_NONE,
1098
- fe: STATUS_UNINITIALIZED,
1099
- ee: clock,
1100
- le: NOT_PENDING,
1101
- ve: null,
1099
+ S: REACTIVE_NONE,
1100
+ ae: STATUS_UNINITIALIZED,
1101
+ J: clock,
1102
+ ce: NOT_PENDING,
1103
+ we: null,
1102
1104
  De: null,
1103
1105
  Se: null,
1104
- ie: null
1106
+ ne: null
1105
1107
  };
1106
- i.R = i;
1107
- const r = context?.i ? context.l : context;
1108
+ i.T = i;
1109
+ const r = context?.t ? context.u : context;
1108
1110
  if (context) {
1109
1111
  const e = context.Ce;
1110
1112
  if (e === null) {
@@ -1114,7 +1116,7 @@ function computed(e, t, n) {
1114
1116
  context.Ce = i;
1115
1117
  }
1116
1118
  }
1117
- if (r) i.u = r.u + 1;
1119
+ if (r) i.o = r.o + 1;
1118
1120
  !n?.lazy && recompute(i, true);
1119
1121
  return i;
1120
1122
  }
@@ -1123,15 +1125,15 @@ function signal(e, t, n = null) {
1123
1125
  _e: t?.equals != null ? t.equals : isEqual,
1124
1126
  We: !!t?.pureWrite,
1125
1127
  ke: t?.unobserved,
1126
- ae: e,
1127
- p: null,
1128
+ le: e,
1129
+ I: null,
1128
1130
  Le: null,
1129
- ee: clock,
1130
- L: n,
1131
- C: n?.P || null,
1132
- le: NOT_PENDING
1131
+ J: clock,
1132
+ m: n,
1133
+ P: n?.A || null,
1134
+ ce: NOT_PENDING
1133
1135
  };
1134
- n && (n.P = i);
1136
+ n && (n.A = i);
1135
1137
  return i;
1136
1138
  }
1137
1139
  function optimisticSignal(e, t) {
@@ -1163,18 +1165,18 @@ function read(e) {
1163
1165
  pendingReadActive = false;
1164
1166
  const i = read(t);
1165
1167
  pendingReadActive = n;
1166
- if (t.fe & STATUS_PENDING) return e.ae;
1167
- if (stale && currentOptimisticLane && t.re) {
1168
- const n = findLane(t.re);
1168
+ if (t.ae & STATUS_PENDING) return e.le;
1169
+ if (stale && currentOptimisticLane && t.ie) {
1170
+ const n = findLane(t.ie);
1169
1171
  const i = findLane(currentOptimisticLane);
1170
- if (n !== i && n.W.size > 0) {
1171
- return e.ae;
1172
+ if (n !== i && n.U.size > 0) {
1173
+ return e.le;
1172
1174
  }
1173
1175
  }
1174
1176
  return i;
1175
1177
  }
1176
1178
  if (pendingCheckActive) {
1177
- const t = e.L || e;
1179
+ const t = e.m || e;
1178
1180
  const n = getPendingSignal(t);
1179
1181
  const i = pendingCheckActive;
1180
1182
  pendingCheckActive = false;
@@ -1182,92 +1184,92 @@ function read(e) {
1182
1184
  foundPending = true;
1183
1185
  }
1184
1186
  pendingCheckActive = i;
1185
- return e.ae;
1187
+ return e.le;
1186
1188
  }
1187
1189
  let t = context;
1188
- if (t?.i) t = t.l;
1189
- if (refreshing && e.k) recompute(e);
1190
+ if (t?.t) t = t.u;
1191
+ if (refreshing && e.L) recompute(e);
1190
1192
  if (t && tracking) {
1191
- if (e.k && e._ & REACTIVE_DISPOSED) recompute(e);
1193
+ if (e.L && e.S & REACTIVE_DISPOSED) recompute(e);
1192
1194
  link(e, t);
1193
- const n = e.L || e;
1194
- if (n.k) {
1195
- const i = e._ & REACTIVE_ZOMBIE;
1196
- if (n.u >= (i ? zombieQueue.N : dirtyQueue.N)) {
1195
+ const n = e.m || e;
1196
+ if (n.L) {
1197
+ const i = e.S & REACTIVE_ZOMBIE;
1198
+ if (n.o >= (i ? zombieQueue.C : dirtyQueue.C)) {
1197
1199
  markNode(t);
1198
1200
  markHeap(i ? zombieQueue : dirtyQueue);
1199
1201
  updateIfNecessary(n);
1200
1202
  }
1201
- const r = n.u;
1202
- if (r >= t.u && e.o !== t) {
1203
- t.u = r + 1;
1203
+ const r = n.o;
1204
+ if (r >= t.o && e.i !== t) {
1205
+ t.o = r + 1;
1204
1206
  }
1205
1207
  }
1206
1208
  }
1207
- const n = e.L || e;
1208
- if (t && n.fe & STATUS_PENDING && !(stale && n.ie && activeTransition !== n.ie)) {
1209
+ const n = e.m || e;
1210
+ if (t && n.ae & STATUS_PENDING && !(stale && n.ne && activeTransition !== n.ne)) {
1209
1211
  if (currentOptimisticLane) {
1210
- const i = n.re;
1212
+ const i = n.ie;
1211
1213
  const r = findLane(currentOptimisticLane);
1212
1214
  if (i && findLane(i) === r && !hasActiveOverride(n)) {
1213
1215
  if (!tracking) link(e, t);
1214
- throw n.Z;
1216
+ throw n.q;
1215
1217
  }
1216
1218
  } else {
1217
1219
  if (!tracking) link(e, t);
1218
- throw n.Z;
1220
+ throw n.q;
1219
1221
  }
1220
1222
  }
1221
- if (e.k && e.fe & STATUS_ERROR) {
1222
- if (e.ee < clock) {
1223
+ if (e.L && e.ae & STATUS_ERROR) {
1224
+ if (e.J < clock) {
1223
1225
  recompute(e, true);
1224
1226
  return read(e);
1225
- } else throw e.Z;
1227
+ } else throw e.q;
1226
1228
  }
1227
1229
  return !t ||
1228
1230
  currentOptimisticLane !== null ||
1229
- e.le === NOT_PENDING ||
1230
- (stale && e.ie && activeTransition !== e.ie)
1231
- ? e.ae
1232
- : e.le;
1231
+ e.ce === NOT_PENDING ||
1232
+ (stale && e.ne && activeTransition !== e.ne)
1233
+ ? e.le
1234
+ : e.ce;
1233
1235
  }
1234
1236
  function setSignal(e, t) {
1235
- if (e.ie && activeTransition !== e.ie) globalQueue.initTransition(e.ie);
1237
+ if (e.ne && activeTransition !== e.ne) globalQueue.initTransition(e.ne);
1236
1238
  const n = e.Oe && !projectionWriteActive;
1237
- const i = n ? e.ae : e.le === NOT_PENDING ? e.ae : e.le;
1239
+ const i = n ? e.le : e.ce === NOT_PENDING ? e.le : e.ce;
1238
1240
  if (typeof t === "function") t = t(i);
1239
1241
  const r = !e._e || !e._e(i, t);
1240
1242
  if (!r) {
1241
- if (n && e.le !== NOT_PENDING && e.k) {
1243
+ if (n && e.ce !== NOT_PENDING && e.L) {
1242
1244
  insertSubs(e, true);
1243
1245
  schedule();
1244
1246
  }
1245
1247
  return t;
1246
1248
  }
1247
1249
  if (n) {
1248
- const n = globalQueue.j.includes(e);
1249
- if (e.ie && n) {
1250
- globalQueue.initTransition(e.ie);
1250
+ const n = globalQueue.H.includes(e);
1251
+ if (e.ne && n) {
1252
+ globalQueue.initTransition(e.ne);
1251
1253
  }
1252
- if (e.le === NOT_PENDING) {
1253
- e.le = e.ae;
1254
+ if (e.ce === NOT_PENDING) {
1255
+ e.ce = e.le;
1254
1256
  }
1255
1257
  if (!n) {
1256
- globalQueue.j.push(e);
1258
+ globalQueue.H.push(e);
1257
1259
  }
1258
1260
  e.Re = (e.Re || 0) + 1;
1259
1261
  const i = getOrCreateLane(e);
1260
- e.re = i;
1261
- e.ae = t;
1262
- } else {
1263
- if (e.le === NOT_PENDING) globalQueue.H.push(e);
1262
+ e.ie = i;
1264
1263
  e.le = t;
1264
+ } else {
1265
+ if (e.ce === NOT_PENDING) globalQueue.$.push(e);
1266
+ e.ce = t;
1265
1267
  }
1266
1268
  updatePendingSignal(e);
1267
1269
  if (e.Ie) {
1268
1270
  setSignal(e.Ie, t);
1269
1271
  }
1270
- e.ee = clock;
1272
+ e.J = clock;
1271
1273
  insertSubs(e, n);
1272
1274
  schedule();
1273
1275
  return t;
@@ -1296,32 +1298,32 @@ function getPendingSignal(e) {
1296
1298
  }
1297
1299
  function computePendingState(e) {
1298
1300
  const t = e;
1299
- if (e.Oe && e.le !== NOT_PENDING) {
1300
- if (t.fe & STATUS_PENDING && !(t.fe & STATUS_UNINITIALIZED)) return true;
1301
+ if (e.Oe && e.ce !== NOT_PENDING) {
1302
+ if (t.ae & STATUS_PENDING && !(t.ae & STATUS_UNINITIALIZED)) return true;
1301
1303
  if (e.Ee) {
1302
- const t = e.re ? findLane(e.re) : null;
1303
- return !!(t && t.W.size > 0);
1304
+ const t = e.ie ? findLane(e.ie) : null;
1305
+ return !!(t && t.U.size > 0);
1304
1306
  }
1305
1307
  return true;
1306
1308
  }
1307
- if (e.le !== NOT_PENDING && !(t.fe & STATUS_UNINITIALIZED)) return true;
1308
- return !!(t.fe & STATUS_PENDING && !(t.fe & STATUS_UNINITIALIZED));
1309
+ if (e.ce !== NOT_PENDING && !(t.ae & STATUS_UNINITIALIZED)) return true;
1310
+ return !!(t.ae & STATUS_PENDING && !(t.ae & STATUS_UNINITIALIZED));
1309
1311
  }
1310
1312
  function updatePendingSignal(e) {
1311
1313
  if (e.Qe) {
1312
1314
  const t = computePendingState(e);
1313
1315
  const n = e.Qe;
1314
1316
  setSignal(n, t);
1315
- if (!t && n.re) {
1317
+ if (!t && n.ie) {
1316
1318
  const t = resolveLane(e);
1317
- if (t && t.W.size > 0) {
1318
- const e = findLane(n.re);
1319
+ if (t && t.U.size > 0) {
1320
+ const e = findLane(n.ie);
1319
1321
  if (e !== t) {
1320
1322
  mergeLanes(t, e);
1321
1323
  }
1322
1324
  }
1323
1325
  signalLanes.delete(n);
1324
- n.re = undefined;
1326
+ n.ie = undefined;
1325
1327
  }
1326
1328
  }
1327
1329
  }
@@ -1430,11 +1432,11 @@ function action(e) {
1430
1432
  const r = e(...t);
1431
1433
  globalQueue.initTransition();
1432
1434
  let o = activeTransition;
1433
- o.te.push(r);
1435
+ o.ee.push(r);
1434
1436
  const done = (e, t) => {
1435
1437
  o = currentTransition(o);
1436
- const s = o.te.indexOf(r);
1437
- if (s >= 0) o.te.splice(s, 1);
1438
+ const s = o.ee.indexOf(r);
1439
+ if (s >= 0) o.ee.splice(s, 1);
1438
1440
  setActiveTransition(o);
1439
1441
  schedule();
1440
1442
  t ? i(t) : n(e);
@@ -1533,7 +1535,8 @@ function onSettled(e) {
1533
1535
  function unwrap(e) {
1534
1536
  return e?.[$TARGET]?.[STORE_NODE] ?? e;
1535
1537
  }
1536
- function getOverrideValue(e, t, n, i) {
1538
+ function getOverrideValue(e, t, n, i, r) {
1539
+ if (r && i in r) return r[i];
1537
1540
  return t && i in t ? t[i] : e[i];
1538
1541
  }
1539
1542
  function getAllKeys(e, t, n) {
@@ -1546,110 +1549,112 @@ function applyState(e, t, n, i) {
1546
1549
  if (!r) return;
1547
1550
  const o = r[STORE_VALUE];
1548
1551
  const s = r[STORE_OVERRIDE];
1549
- let u = r[STORE_NODE];
1550
- if (e === o && !s) return;
1552
+ const u = r[STORE_OPTIMISTIC_OVERRIDE];
1553
+ let c = r[STORE_NODE];
1554
+ if (e === o && !s && !u) return;
1551
1555
  (r[STORE_LOOKUP] || storeLookup).set(e, r[$PROXY]);
1552
1556
  r[STORE_VALUE] = e;
1553
1557
  r[STORE_OVERRIDE] = undefined;
1554
1558
  if (Array.isArray(o)) {
1555
1559
  let t = false;
1556
- const c = getOverrideValue(o, s, u, "length");
1557
- if (e.length && c && e[0] && n(e[0]) != null) {
1558
- let l, a, f, E, T, d, R, O;
1560
+ const l = getOverrideValue(o, s, c, "length", u);
1561
+ if (e.length && l && e[0] && n(e[0]) != null) {
1562
+ let a, f, E, T, d, R, O, S;
1559
1563
  for (
1560
- f = 0, E = Math.min(c, e.length);
1561
- f < E && ((d = getOverrideValue(o, s, u, f)) === e[f] || (d && e[f] && n(d) === n(e[f])));
1562
- f++
1564
+ E = 0, T = Math.min(l, e.length);
1565
+ E < T &&
1566
+ ((R = getOverrideValue(o, s, c, E, u)) === e[E] || (R && e[E] && n(R) === n(e[E])));
1567
+ E++
1563
1568
  ) {
1564
- applyState(e[f], wrap(d, r), n, i);
1569
+ applyState(e[E], wrap(R, r), n, i);
1565
1570
  }
1566
- const S = new Array(e.length),
1567
- _ = new Map();
1571
+ const _ = new Array(e.length),
1572
+ I = new Map();
1568
1573
  for (
1569
- E = c - 1, T = e.length - 1;
1570
- E >= f &&
1571
- T >= f &&
1572
- ((d = getOverrideValue(o, s, u, E)) === e[T] || (d && e[T] && n(d) === n(e[T])));
1573
- E--, T--
1574
+ T = l - 1, d = e.length - 1;
1575
+ T >= E &&
1576
+ d >= E &&
1577
+ ((R = getOverrideValue(o, s, c, T, u)) === e[d] || (R && e[d] && n(R) === n(e[d])));
1578
+ T--, d--
1574
1579
  ) {
1575
- S[T] = d;
1580
+ _[d] = R;
1576
1581
  }
1577
- if (f > T || f > E) {
1578
- for (a = f; a <= T; a++) {
1582
+ if (E > d || E > T) {
1583
+ for (f = E; f <= d; f++) {
1579
1584
  t = true;
1580
- r[STORE_NODE][a] && setSignal(r[STORE_NODE][a], wrap(e[a], r));
1585
+ r[STORE_NODE][f] && setSignal(r[STORE_NODE][f], wrap(e[f], r));
1581
1586
  }
1582
- for (; a < e.length; a++) {
1587
+ for (; f < e.length; f++) {
1583
1588
  t = true;
1584
- const o = wrap(S[a], r);
1585
- r[STORE_NODE][a] && setSignal(r[STORE_NODE][a], o);
1586
- applyState(e[a], o, n, i);
1589
+ const o = wrap(_[f], r);
1590
+ r[STORE_NODE][f] && setSignal(r[STORE_NODE][f], o);
1591
+ applyState(e[f], o, n, i);
1587
1592
  }
1588
1593
  t && r[STORE_NODE][$TRACK] && setSignal(r[STORE_NODE][$TRACK], void 0);
1589
- c !== e.length && r[STORE_NODE].length && setSignal(r[STORE_NODE].length, e.length);
1594
+ l !== e.length && r[STORE_NODE].length && setSignal(r[STORE_NODE].length, e.length);
1590
1595
  return;
1591
1596
  }
1592
- R = new Array(T + 1);
1593
- for (a = T; a >= f; a--) {
1594
- d = e[a];
1595
- O = d ? n(d) : d;
1596
- l = _.get(O);
1597
- R[a] = l === undefined ? -1 : l;
1598
- _.set(O, a);
1599
- }
1600
- for (l = f; l <= E; l++) {
1601
- d = getOverrideValue(o, s, u, l);
1602
- O = d ? n(d) : d;
1603
- a = _.get(O);
1604
- if (a !== undefined && a !== -1) {
1605
- S[a] = d;
1606
- a = R[a];
1607
- _.set(O, a);
1597
+ O = new Array(d + 1);
1598
+ for (f = d; f >= E; f--) {
1599
+ R = e[f];
1600
+ S = R ? n(R) : R;
1601
+ a = I.get(S);
1602
+ O[f] = a === undefined ? -1 : a;
1603
+ I.set(S, f);
1604
+ }
1605
+ for (a = E; a <= T; a++) {
1606
+ R = getOverrideValue(o, s, c, a, u);
1607
+ S = R ? n(R) : R;
1608
+ f = I.get(S);
1609
+ if (f !== undefined && f !== -1) {
1610
+ _[f] = R;
1611
+ f = O[f];
1612
+ I.set(S, f);
1608
1613
  }
1609
1614
  }
1610
- for (a = f; a < e.length; a++) {
1611
- if (a in S) {
1612
- const t = wrap(S[a], r);
1613
- r[STORE_NODE][a] && setSignal(r[STORE_NODE][a], t);
1614
- applyState(e[a], t, n, i);
1615
- } else r[STORE_NODE][a] && setSignal(r[STORE_NODE][a], wrap(e[a], r));
1615
+ for (f = E; f < e.length; f++) {
1616
+ if (f in _) {
1617
+ const t = wrap(_[f], r);
1618
+ r[STORE_NODE][f] && setSignal(r[STORE_NODE][f], t);
1619
+ applyState(e[f], t, n, i);
1620
+ } else r[STORE_NODE][f] && setSignal(r[STORE_NODE][f], wrap(e[f], r));
1616
1621
  }
1617
- if (f < e.length) t = true;
1622
+ if (E < e.length) t = true;
1618
1623
  } else if (e.length) {
1619
- for (let t = 0, c = e.length; t < c; t++) {
1620
- const c = getOverrideValue(o, s, u, t);
1621
- isWrappable(c)
1622
- ? applyState(e[t], wrap(c, r), n, i)
1624
+ for (let t = 0, l = e.length; t < l; t++) {
1625
+ const l = getOverrideValue(o, s, c, t, u);
1626
+ isWrappable(l)
1627
+ ? applyState(e[t], wrap(l, r), n, i)
1623
1628
  : r[STORE_NODE][t] && setSignal(r[STORE_NODE][t], e[t]);
1624
1629
  }
1625
1630
  }
1626
- if (c !== e.length) {
1631
+ if (l !== e.length) {
1627
1632
  t = true;
1628
1633
  r[STORE_NODE].length && setSignal(r[STORE_NODE].length, e.length);
1629
1634
  }
1630
1635
  t && r[STORE_NODE][$TRACK] && setSignal(r[STORE_NODE][$TRACK], void 0);
1631
1636
  return;
1632
1637
  }
1633
- if (u) {
1634
- const t = u[$TRACK];
1635
- const c = t || i ? getAllKeys(o, s, e) : Object.keys(u);
1636
- for (let l = 0, a = c.length; l < a; l++) {
1637
- const a = c[l];
1638
- const f = u[a];
1639
- const E = unwrap(getOverrideValue(o, s, u, a));
1640
- let T = unwrap(e[a]);
1641
- if (E === T) continue;
1642
- if (!E || !isWrappable(E) || !isWrappable(T) || (n(E) != null && n(E) !== n(T))) {
1638
+ if (c) {
1639
+ const t = c[$TRACK];
1640
+ const l = t || i ? getAllKeys(o, s, e) : Object.keys(c);
1641
+ for (let a = 0, f = l.length; a < f; a++) {
1642
+ const f = l[a];
1643
+ const E = c[f];
1644
+ const T = unwrap(getOverrideValue(o, s, c, f, u));
1645
+ let d = unwrap(e[f]);
1646
+ if (T === d) continue;
1647
+ if (!T || !isWrappable(T) || !isWrappable(d) || (n(T) != null && n(T) !== n(d))) {
1643
1648
  t && setSignal(t, void 0);
1644
- f && setSignal(f, isWrappable(T) ? wrap(T, r) : T);
1645
- } else applyState(T, wrap(E, r), n, i);
1649
+ E && setSignal(E, isWrappable(d) ? wrap(d, r) : d);
1650
+ } else applyState(d, wrap(T, r), n, i);
1646
1651
  }
1647
1652
  }
1648
- if ((u = r[STORE_HAS])) {
1649
- const t = Object.keys(u);
1653
+ if ((c = r[STORE_HAS])) {
1654
+ const t = Object.keys(c);
1650
1655
  for (let n = 0, i = t.length; n < i; n++) {
1651
1656
  const i = t[n];
1652
- setSignal(u[i], i in e);
1657
+ setSignal(c[i], i in e);
1653
1658
  }
1654
1659
  }
1655
1660
  }
@@ -1847,7 +1852,7 @@ const storeTraps = {
1847
1852
  if (e && e.get) return e.get.call(n);
1848
1853
  }
1849
1854
  if (writeOnly(n)) {
1850
- let n = r && (s || !u) ? (r.le !== NOT_PENDING ? (r.Oe ? r.ae : r.le) : r.ae) : c[t];
1855
+ let n = r && (s || !u) ? (r.ce !== NOT_PENDING ? (r.Oe ? r.le : r.ce) : r.le) : c[t];
1851
1856
  n === $DELETED && (n = undefined);
1852
1857
  if (!isWrappable(n)) return n;
1853
1858
  const i = wrap(n, e);
@@ -1896,8 +1901,8 @@ const storeTraps = {
1896
1901
  if (writeOnly(i)) {
1897
1902
  if (e[STORE_OPTIMISTIC]) {
1898
1903
  const t = e[STORE_FIREWALL];
1899
- if (t?.ie) {
1900
- globalQueue.initTransition(t.ie);
1904
+ if (t?.ne) {
1905
+ globalQueue.initTransition(t.ne);
1901
1906
  }
1902
1907
  }
1903
1908
  untrack(() => {
@@ -2086,7 +2091,7 @@ function deep(e) {
2086
2091
  return e[$DEEP];
2087
2092
  }
2088
2093
  function createOptimisticStore(e, t, n) {
2089
- GlobalQueue.X ||= clearOptimisticStore;
2094
+ GlobalQueue.B ||= clearOptimisticStore;
2090
2095
  const i = typeof e === "function";
2091
2096
  const r = (i ? t : e) ?? {};
2092
2097
  const o = i ? e : undefined;
@@ -2103,7 +2108,7 @@ function clearOptimisticStore(e) {
2103
2108
  if (i) {
2104
2109
  for (const e of Reflect.ownKeys(n)) {
2105
2110
  if (i[e]) {
2106
- i[e].re = undefined;
2111
+ i[e].ie = undefined;
2107
2112
  const n =
2108
2113
  t[STORE_OVERRIDE] && e in t[STORE_OVERRIDE] ? t[STORE_OVERRIDE][e] : t[STORE_VALUE][e];
2109
2114
  const r = n === $DELETED ? undefined : n;
@@ -2111,7 +2116,7 @@ function clearOptimisticStore(e) {
2111
2116
  }
2112
2117
  }
2113
2118
  if (i[$TRACK]) {
2114
- i[$TRACK].re = undefined;
2119
+ i[$TRACK].ie = undefined;
2115
2120
  setSignal(i[$TRACK], undefined);
2116
2121
  }
2117
2122
  }
@@ -2347,9 +2352,9 @@ function mapArray(e, t, n) {
2347
2352
  return createMemo(
2348
2353
  updateKeyedMap.bind({
2349
2354
  xe: createOwner(),
2350
- Fe: 0,
2351
- Ge: e,
2352
- Me: [],
2355
+ Me: 0,
2356
+ Fe: e,
2357
+ Ge: [],
2353
2358
  $e: t,
2354
2359
  He: [],
2355
2360
  je: [],
@@ -2362,7 +2367,7 @@ function mapArray(e, t, n) {
2362
2367
  }
2363
2368
  const pureOptions = { pureWrite: true };
2364
2369
  function updateKeyedMap() {
2365
- const e = this.Ge() || [],
2370
+ const e = this.Fe() || [],
2366
2371
  t = e.length;
2367
2372
  e[$TRACK];
2368
2373
  runWithOwner(this.xe, () => {
@@ -2388,26 +2393,26 @@ function updateKeyedMap() {
2388
2393
  return this.$e(() => t);
2389
2394
  };
2390
2395
  if (t === 0) {
2391
- if (this.Fe !== 0) {
2396
+ if (this.Me !== 0) {
2392
2397
  this.xe.dispose(false);
2393
2398
  this.je = [];
2394
- this.Me = [];
2399
+ this.Ge = [];
2395
2400
  this.He = [];
2396
- this.Fe = 0;
2401
+ this.Me = 0;
2397
2402
  this.Ye && (this.Ye = []);
2398
2403
  this.Be && (this.Be = []);
2399
2404
  }
2400
2405
  if (this.Xe && !this.He[0]) {
2401
2406
  this.He[0] = runWithOwner((this.je[0] = createOwner()), this.Xe);
2402
2407
  }
2403
- } else if (this.Fe === 0) {
2408
+ } else if (this.Me === 0) {
2404
2409
  if (this.je[0]) this.je[0].dispose();
2405
2410
  this.He = new Array(t);
2406
2411
  for (i = 0; i < t; i++) {
2407
- this.Me[i] = e[i];
2412
+ this.Ge[i] = e[i];
2408
2413
  this.He[i] = runWithOwner((this.je[i] = createOwner()), r);
2409
2414
  }
2410
- this.Fe = t;
2415
+ this.Me = t;
2411
2416
  } else {
2412
2417
  let o,
2413
2418
  s,
@@ -2421,17 +2426,17 @@ function updateKeyedMap() {
2421
2426
  d = this.Ye ? new Array(t) : undefined,
2422
2427
  R = this.Be ? new Array(t) : undefined;
2423
2428
  for (
2424
- o = 0, s = Math.min(this.Fe, t);
2425
- o < s && (this.Me[o] === e[o] || (this.Ye && compare(this.Ke, this.Me[o], e[o])));
2429
+ o = 0, s = Math.min(this.Me, t);
2430
+ o < s && (this.Ge[o] === e[o] || (this.Ye && compare(this.Ke, this.Ge[o], e[o])));
2426
2431
  o++
2427
2432
  ) {
2428
2433
  if (this.Ye) setSignal(this.Ye[o], e[o]);
2429
2434
  }
2430
2435
  for (
2431
- s = this.Fe - 1, u = t - 1;
2436
+ s = this.Me - 1, u = t - 1;
2432
2437
  s >= o &&
2433
2438
  u >= o &&
2434
- (this.Me[s] === e[u] || (this.Ye && compare(this.Ke, this.Me[s], e[u])));
2439
+ (this.Ge[s] === e[u] || (this.Ye && compare(this.Ke, this.Ge[s], e[u])));
2435
2440
  s--, u--
2436
2441
  ) {
2437
2442
  E[u] = this.He[s];
@@ -2449,7 +2454,7 @@ function updateKeyedMap() {
2449
2454
  a.set(l, i);
2450
2455
  }
2451
2456
  for (n = o; n <= s; n++) {
2452
- c = this.Me[n];
2457
+ c = this.Ge[n];
2453
2458
  l = this.Ke ? this.Ke(c) : c;
2454
2459
  i = a.get(l);
2455
2460
  if (i !== undefined && i !== -1) {
@@ -2477,8 +2482,8 @@ function updateKeyedMap() {
2477
2482
  this.He[i] = runWithOwner((this.je[i] = createOwner()), r);
2478
2483
  }
2479
2484
  }
2480
- this.He = this.He.slice(0, (this.Fe = t));
2481
- this.Me = e.slice(0);
2485
+ this.He = this.He.slice(0, (this.Me = t));
2486
+ this.Ge = e.slice(0);
2482
2487
  }
2483
2488
  });
2484
2489
  return this.He;
@@ -2486,7 +2491,7 @@ function updateKeyedMap() {
2486
2491
  function repeat(e, t, n) {
2487
2492
  return updateRepeat.bind({
2488
2493
  xe: createOwner(),
2489
- Fe: 0,
2494
+ Me: 0,
2490
2495
  qe: 0,
2491
2496
  ze: e,
2492
2497
  $e: t,
@@ -2501,11 +2506,11 @@ function updateRepeat() {
2501
2506
  const t = this.Ze?.() || 0;
2502
2507
  runWithOwner(this.xe, () => {
2503
2508
  if (e === 0) {
2504
- if (this.Fe !== 0) {
2509
+ if (this.Me !== 0) {
2505
2510
  this.xe.dispose(false);
2506
2511
  this.je = [];
2507
2512
  this.He = [];
2508
- this.Fe = 0;
2513
+ this.Me = 0;
2509
2514
  }
2510
2515
  if (this.Xe && !this.He[0]) {
2511
2516
  this.He[0] = runWithOwner((this.je[0] = createOwner()), this.Xe);
@@ -2513,12 +2518,12 @@ function updateRepeat() {
2513
2518
  return;
2514
2519
  }
2515
2520
  const n = t + e;
2516
- const i = this.qe + this.Fe;
2517
- if (this.Fe === 0 && this.je[0]) this.je[0].dispose();
2521
+ const i = this.qe + this.Me;
2522
+ if (this.Me === 0 && this.je[0]) this.je[0].dispose();
2518
2523
  for (let e = n; e < i; e++) this.je[e - this.qe].dispose();
2519
2524
  if (this.qe < t) {
2520
2525
  let e = this.qe;
2521
- while (e < t && e < this.Fe) this.je[e++].dispose();
2526
+ while (e < t && e < this.Me) this.je[e++].dispose();
2522
2527
  this.je.splice(0, t - this.qe);
2523
2528
  this.He.splice(0, t - this.qe);
2524
2529
  } else if (this.qe > t) {
@@ -2539,7 +2544,7 @@ function updateRepeat() {
2539
2544
  }
2540
2545
  this.He = this.He.slice(0, e);
2541
2546
  this.qe = t;
2542
- this.Fe = e;
2547
+ this.Me = e;
2543
2548
  });
2544
2549
  return this.He;
2545
2550
  }
@@ -2549,10 +2554,10 @@ function compare(e, t, n) {
2549
2554
  function boundaryComputed(e, t) {
2550
2555
  const n = computed(e, undefined, { lazy: true });
2551
2556
  n.pe = (e, t) => {
2552
- const i = e !== undefined ? e : n.fe;
2553
- const r = t !== undefined ? t : n.Z;
2554
- n.fe &= ~n.Je;
2555
- n.ue.notify(n, n.Je, i, r);
2557
+ const i = e !== undefined ? e : n.ae;
2558
+ const r = t !== undefined ? t : n.q;
2559
+ n.ae &= ~n.Je;
2560
+ n.se.notify(n, n.Je, i, r);
2556
2561
  };
2557
2562
  n.Je = t;
2558
2563
  n.Ue = true;
@@ -2560,9 +2565,9 @@ function boundaryComputed(e, t) {
2560
2565
  return n;
2561
2566
  }
2562
2567
  function createBoundChildren(e, t, n, i) {
2563
- const r = e.ue;
2564
- r.addChild((e.ue = n));
2565
- onCleanup(() => r.removeChild(e.ue));
2568
+ const r = e.se;
2569
+ r.addChild((e.se = n));
2570
+ onCleanup(() => r.removeChild(e.se));
2566
2571
  return runWithOwner(e, () => {
2567
2572
  const e = computed(t);
2568
2573
  return boundaryComputed(() => staleValues(() => flatten(read(e))), i);
@@ -2584,7 +2589,7 @@ class CollectionQueue extends Queue {
2584
2589
  notify(e, t, n, i) {
2585
2590
  if (!(t & this.et) || (this.et & STATUS_PENDING && this.it)) return super.notify(e, t, n, i);
2586
2591
  if (n & this.et) {
2587
- const t = i?.t || e.Z?.t;
2592
+ const t = i?.source || e.q?.source;
2588
2593
  if (t) {
2589
2594
  const e = this.tt.size === 0;
2590
2595
  this.tt.add(t);
@@ -2596,7 +2601,7 @@ class CollectionQueue extends Queue {
2596
2601
  }
2597
2602
  checkSources() {
2598
2603
  for (const e of this.tt) {
2599
- if (!(e.fe & this.et)) this.tt.delete(e);
2604
+ if (!(e.ae & this.et)) this.tt.delete(e);
2600
2605
  }
2601
2606
  if (!this.tt.size) setSignal(this.nt, false);
2602
2607
  }
@@ -2623,7 +2628,7 @@ function createLoadBoundary(e, t) {
2623
2628
  function createErrorBoundary(e, t) {
2624
2629
  return createCollectionBoundary(STATUS_ERROR, e, e => {
2625
2630
  let n = e.tt.values().next().value;
2626
- const i = n.Z?.cause ?? n.Z;
2631
+ const i = n.q?.cause ?? n.q;
2627
2632
  return t(i, () => {
2628
2633
  for (const t of e.tt) recompute(t);
2629
2634
  schedule();