@tanstack/query-devtools 5.71.2 → 5.71.5
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/build/DevtoolsComponent/{BOZWRHTN.js → CPIOZS5X.js} +3 -4
- package/build/DevtoolsComponent/{ZRV36ZCO.js → SUXNJKMM.js} +3 -4
- package/build/DevtoolsPanelComponent/{TFRCC47K.js → LDUQ2GE4.js} +3 -4
- package/build/DevtoolsPanelComponent/{U2DVUOLY.js → OKF6E45R.js} +3 -4
- package/build/chunk/{L3NTYGQ3.js → DZBXNQB4.js} +31 -61
- package/build/chunk/{KMI5VYOH.js → HR7YXZ5H.js} +187 -374
- package/build/chunk/{KX7DYCBK.js → V5T5VJKG.js} +187 -374
- package/build/chunk/{YADWEDPJ.js → WXAWMS3D.js} +31 -61
- package/build/dev.cjs +219 -438
- package/build/dev.js +3 -3
- package/build/index.cjs +219 -438
- package/build/index.js +3 -3
- package/package.json +3 -3
package/build/dev.cjs
CHANGED
|
@@ -51,10 +51,8 @@ function createSignal(value, options) {
|
|
|
51
51
|
};
|
|
52
52
|
const setter = (value2) => {
|
|
53
53
|
if (typeof value2 === "function") {
|
|
54
|
-
if (Transition && Transition.running && Transition.sources.has(s2))
|
|
55
|
-
|
|
56
|
-
else
|
|
57
|
-
value2 = value2(s2.value);
|
|
54
|
+
if (Transition && Transition.running && Transition.sources.has(s2)) value2 = value2(s2.tValue);
|
|
55
|
+
else value2 = value2(s2.value);
|
|
58
56
|
}
|
|
59
57
|
return writeSignal(s2, value2);
|
|
60
58
|
};
|
|
@@ -62,25 +60,19 @@ function createSignal(value, options) {
|
|
|
62
60
|
}
|
|
63
61
|
function createComputed(fn, value, options) {
|
|
64
62
|
const c2 = createComputation(fn, value, true, STALE);
|
|
65
|
-
if (Scheduler && Transition && Transition.running)
|
|
66
|
-
|
|
67
|
-
else
|
|
68
|
-
updateComputation(c2);
|
|
63
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c2);
|
|
64
|
+
else updateComputation(c2);
|
|
69
65
|
}
|
|
70
66
|
function createRenderEffect(fn, value, options) {
|
|
71
67
|
const c2 = createComputation(fn, value, false, STALE);
|
|
72
|
-
if (Scheduler && Transition && Transition.running)
|
|
73
|
-
|
|
74
|
-
else
|
|
75
|
-
updateComputation(c2);
|
|
68
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c2);
|
|
69
|
+
else updateComputation(c2);
|
|
76
70
|
}
|
|
77
71
|
function createEffect(fn, value, options) {
|
|
78
72
|
runEffects = runUserEffects;
|
|
79
73
|
const c2 = createComputation(fn, value, false, STALE), s2 = SuspenseContext && useContext(SuspenseContext);
|
|
80
|
-
if (s2)
|
|
81
|
-
|
|
82
|
-
if (!options || !options.render)
|
|
83
|
-
c2.user = true;
|
|
74
|
+
if (s2) c2.suspense = s2;
|
|
75
|
+
if (!options || !options.render) c2.user = true;
|
|
84
76
|
Effects ? Effects.push(c2) : updateComputation(c2);
|
|
85
77
|
}
|
|
86
78
|
function createMemo(fn, value, options) {
|
|
@@ -92,8 +84,7 @@ function createMemo(fn, value, options) {
|
|
|
92
84
|
if (Scheduler && Transition && Transition.running) {
|
|
93
85
|
c2.tState = STALE;
|
|
94
86
|
Updates.push(c2);
|
|
95
|
-
} else
|
|
96
|
-
updateComputation(c2);
|
|
87
|
+
} else updateComputation(c2);
|
|
97
88
|
return readSignal.bind(c2);
|
|
98
89
|
}
|
|
99
90
|
function isPromise(v) {
|
|
@@ -114,10 +105,8 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
114
105
|
}), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
115
106
|
if (sharedConfig.context) {
|
|
116
107
|
id = sharedConfig.getNextContextId();
|
|
117
|
-
if (options.ssrLoadFrom === "initial")
|
|
118
|
-
|
|
119
|
-
else if (sharedConfig.load && sharedConfig.has(id))
|
|
120
|
-
initP = sharedConfig.load(id);
|
|
108
|
+
if (options.ssrLoadFrom === "initial") initP = options.initialValue;
|
|
109
|
+
else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
|
|
121
110
|
}
|
|
122
111
|
function loadEnd(p2, v, error2, key) {
|
|
123
112
|
if (pr === p2) {
|
|
@@ -137,32 +126,27 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
137
126
|
Transition.running = true;
|
|
138
127
|
completeLoad(v, error2);
|
|
139
128
|
}, false);
|
|
140
|
-
} else
|
|
141
|
-
completeLoad(v, error2);
|
|
129
|
+
} else completeLoad(v, error2);
|
|
142
130
|
}
|
|
143
131
|
return v;
|
|
144
132
|
}
|
|
145
133
|
function completeLoad(v, err) {
|
|
146
134
|
runUpdates(() => {
|
|
147
|
-
if (err === void 0)
|
|
148
|
-
setValue(() => v);
|
|
135
|
+
if (err === void 0) setValue(() => v);
|
|
149
136
|
setState(err !== void 0 ? "errored" : resolved ? "ready" : "unresolved");
|
|
150
137
|
setError(err);
|
|
151
|
-
for (const c2 of contexts.keys())
|
|
152
|
-
c2.decrement();
|
|
138
|
+
for (const c2 of contexts.keys()) c2.decrement();
|
|
153
139
|
contexts.clear();
|
|
154
140
|
}, false);
|
|
155
141
|
}
|
|
156
142
|
function read() {
|
|
157
143
|
const c2 = SuspenseContext && useContext(SuspenseContext), v = value(), err = error();
|
|
158
|
-
if (err !== void 0 && !pr)
|
|
159
|
-
throw err;
|
|
144
|
+
if (err !== void 0 && !pr) throw err;
|
|
160
145
|
if (Listener && !Listener.user && c2) {
|
|
161
146
|
createComputed(() => {
|
|
162
147
|
track();
|
|
163
148
|
if (pr) {
|
|
164
|
-
if (c2.resolved && Transition && loadedUnderTransition)
|
|
165
|
-
Transition.promises.add(pr);
|
|
149
|
+
if (c2.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);
|
|
166
150
|
else if (!contexts.has(c2)) {
|
|
167
151
|
c2.increment();
|
|
168
152
|
contexts.add(c2);
|
|
@@ -173,8 +157,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
173
157
|
return v;
|
|
174
158
|
}
|
|
175
159
|
function load(refetching = true) {
|
|
176
|
-
if (refetching !== false && scheduled)
|
|
177
|
-
return;
|
|
160
|
+
if (refetching !== false && scheduled) return;
|
|
178
161
|
scheduled = false;
|
|
179
162
|
const lookup = dynamic ? dynamic() : source;
|
|
180
163
|
loadedUnderTransition = Transition && Transition.running;
|
|
@@ -182,8 +165,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
182
165
|
loadEnd(pr, untrack(value));
|
|
183
166
|
return;
|
|
184
167
|
}
|
|
185
|
-
if (Transition && pr)
|
|
186
|
-
Transition.promises.delete(pr);
|
|
168
|
+
if (Transition && pr) Transition.promises.delete(pr);
|
|
187
169
|
const p2 = initP !== NO_INIT ? initP : untrack(
|
|
188
170
|
() => fetcher(lookup, {
|
|
189
171
|
value: value(),
|
|
@@ -196,10 +178,8 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
196
178
|
}
|
|
197
179
|
pr = p2;
|
|
198
180
|
if ("value" in p2) {
|
|
199
|
-
if (p2.status === "success")
|
|
200
|
-
|
|
201
|
-
else
|
|
202
|
-
loadEnd(pr, void 0, castError(p2.value), lookup);
|
|
181
|
+
if (p2.status === "success") loadEnd(pr, p2.value, void 0, lookup);
|
|
182
|
+
else loadEnd(pr, void 0, castError(p2.value), lookup);
|
|
203
183
|
return p2;
|
|
204
184
|
}
|
|
205
185
|
scheduled = true;
|
|
@@ -228,19 +208,15 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
228
208
|
},
|
|
229
209
|
latest: {
|
|
230
210
|
get() {
|
|
231
|
-
if (!resolved)
|
|
232
|
-
return read();
|
|
211
|
+
if (!resolved) return read();
|
|
233
212
|
const err = error();
|
|
234
|
-
if (err && !pr)
|
|
235
|
-
throw err;
|
|
213
|
+
if (err && !pr) throw err;
|
|
236
214
|
return value();
|
|
237
215
|
}
|
|
238
216
|
}
|
|
239
217
|
});
|
|
240
|
-
if (dynamic)
|
|
241
|
-
|
|
242
|
-
else
|
|
243
|
-
load(false);
|
|
218
|
+
if (dynamic) createComputed(() => load(false));
|
|
219
|
+
else load(false);
|
|
244
220
|
return [
|
|
245
221
|
read,
|
|
246
222
|
{
|
|
@@ -253,13 +229,11 @@ function batch(fn) {
|
|
|
253
229
|
return runUpdates(fn, false);
|
|
254
230
|
}
|
|
255
231
|
function untrack(fn) {
|
|
256
|
-
if (!ExternalSourceConfig && Listener === null)
|
|
257
|
-
return fn();
|
|
232
|
+
if (!ExternalSourceConfig && Listener === null) return fn();
|
|
258
233
|
const listener = Listener;
|
|
259
234
|
Listener = null;
|
|
260
235
|
try {
|
|
261
|
-
if (ExternalSourceConfig)
|
|
262
|
-
return ExternalSourceConfig.untrack(fn);
|
|
236
|
+
if (ExternalSourceConfig) return ExternalSourceConfig.untrack(fn);
|
|
263
237
|
return fn();
|
|
264
238
|
} finally {
|
|
265
239
|
Listener = listener;
|
|
@@ -273,10 +247,8 @@ function on(deps, fn, options) {
|
|
|
273
247
|
let input;
|
|
274
248
|
if (isArray3) {
|
|
275
249
|
input = Array(deps.length);
|
|
276
|
-
for (let i2 = 0; i2 < deps.length; i2++)
|
|
277
|
-
|
|
278
|
-
} else
|
|
279
|
-
input = deps();
|
|
250
|
+
for (let i2 = 0; i2 < deps.length; i2++) input[i2] = deps[i2]();
|
|
251
|
+
} else input = deps();
|
|
280
252
|
if (defer2) {
|
|
281
253
|
defer2 = false;
|
|
282
254
|
return prevValue;
|
|
@@ -290,12 +262,9 @@ function onMount(fn) {
|
|
|
290
262
|
createEffect(() => untrack(fn));
|
|
291
263
|
}
|
|
292
264
|
function onCleanup(fn) {
|
|
293
|
-
if (Owner === null)
|
|
294
|
-
|
|
295
|
-
else
|
|
296
|
-
Owner.cleanups = [fn];
|
|
297
|
-
else
|
|
298
|
-
Owner.cleanups.push(fn);
|
|
265
|
+
if (Owner === null) ;
|
|
266
|
+
else if (Owner.cleanups === null) Owner.cleanups = [fn];
|
|
267
|
+
else Owner.cleanups.push(fn);
|
|
299
268
|
return fn;
|
|
300
269
|
}
|
|
301
270
|
function getOwner() {
|
|
@@ -370,8 +339,7 @@ function children(fn) {
|
|
|
370
339
|
function readSignal() {
|
|
371
340
|
const runningTransition = Transition && Transition.running;
|
|
372
341
|
if (this.sources && (runningTransition ? this.tState : this.state)) {
|
|
373
|
-
if ((runningTransition ? this.tState : this.state) === STALE)
|
|
374
|
-
updateComputation(this);
|
|
342
|
+
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);
|
|
375
343
|
else {
|
|
376
344
|
const updates = Updates;
|
|
377
345
|
Updates = null;
|
|
@@ -396,8 +364,7 @@ function readSignal() {
|
|
|
396
364
|
this.observerSlots.push(Listener.sources.length - 1);
|
|
397
365
|
}
|
|
398
366
|
}
|
|
399
|
-
if (runningTransition && Transition.sources.has(this))
|
|
400
|
-
return this.tValue;
|
|
367
|
+
if (runningTransition && Transition.sources.has(this)) return this.tValue;
|
|
401
368
|
return this.value;
|
|
402
369
|
}
|
|
403
370
|
function writeSignal(node, value, isComp) {
|
|
@@ -409,34 +376,25 @@ function writeSignal(node, value, isComp) {
|
|
|
409
376
|
Transition.sources.add(node);
|
|
410
377
|
node.tValue = value;
|
|
411
378
|
}
|
|
412
|
-
if (!TransitionRunning)
|
|
413
|
-
|
|
414
|
-
} else
|
|
415
|
-
node.value = value;
|
|
379
|
+
if (!TransitionRunning) node.value = value;
|
|
380
|
+
} else node.value = value;
|
|
416
381
|
if (node.observers && node.observers.length) {
|
|
417
382
|
runUpdates(() => {
|
|
418
383
|
for (let i2 = 0; i2 < node.observers.length; i2 += 1) {
|
|
419
384
|
const o2 = node.observers[i2];
|
|
420
385
|
const TransitionRunning = Transition && Transition.running;
|
|
421
|
-
if (TransitionRunning && Transition.disposed.has(o2))
|
|
422
|
-
continue;
|
|
386
|
+
if (TransitionRunning && Transition.disposed.has(o2)) continue;
|
|
423
387
|
if (TransitionRunning ? !o2.tState : !o2.state) {
|
|
424
|
-
if (o2.pure)
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
Effects.push(o2);
|
|
428
|
-
if (o2.observers)
|
|
429
|
-
markDownstream(o2);
|
|
388
|
+
if (o2.pure) Updates.push(o2);
|
|
389
|
+
else Effects.push(o2);
|
|
390
|
+
if (o2.observers) markDownstream(o2);
|
|
430
391
|
}
|
|
431
|
-
if (!TransitionRunning)
|
|
432
|
-
|
|
433
|
-
else
|
|
434
|
-
o2.tState = STALE;
|
|
392
|
+
if (!TransitionRunning) o2.state = STALE;
|
|
393
|
+
else o2.tState = STALE;
|
|
435
394
|
}
|
|
436
395
|
if (Updates.length > 1e6) {
|
|
437
396
|
Updates = [];
|
|
438
|
-
if (IS_DEV)
|
|
439
|
-
;
|
|
397
|
+
if (IS_DEV) ;
|
|
440
398
|
throw new Error();
|
|
441
399
|
}
|
|
442
400
|
}, false);
|
|
@@ -445,8 +403,7 @@ function writeSignal(node, value, isComp) {
|
|
|
445
403
|
return value;
|
|
446
404
|
}
|
|
447
405
|
function updateComputation(node) {
|
|
448
|
-
if (!node.fn)
|
|
449
|
-
return;
|
|
406
|
+
if (!node.fn) return;
|
|
450
407
|
cleanNode(node);
|
|
451
408
|
const time = ExecCount;
|
|
452
409
|
runComputation(
|
|
@@ -495,8 +452,7 @@ function runComputation(node, value, time) {
|
|
|
495
452
|
} else if (Transition && Transition.running && node.pure) {
|
|
496
453
|
Transition.sources.add(node);
|
|
497
454
|
node.tValue = nextValue;
|
|
498
|
-
} else
|
|
499
|
-
node.value = nextValue;
|
|
455
|
+
} else node.value = nextValue;
|
|
500
456
|
node.updatedAt = time;
|
|
501
457
|
}
|
|
502
458
|
}
|
|
@@ -518,19 +474,14 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
518
474
|
c2.state = 0;
|
|
519
475
|
c2.tState = state;
|
|
520
476
|
}
|
|
521
|
-
if (Owner === null)
|
|
522
|
-
;
|
|
477
|
+
if (Owner === null) ;
|
|
523
478
|
else if (Owner !== UNOWNED) {
|
|
524
479
|
if (Transition && Transition.running && Owner.pure) {
|
|
525
|
-
if (!Owner.tOwned)
|
|
526
|
-
|
|
527
|
-
else
|
|
528
|
-
Owner.tOwned.push(c2);
|
|
480
|
+
if (!Owner.tOwned) Owner.tOwned = [c2];
|
|
481
|
+
else Owner.tOwned.push(c2);
|
|
529
482
|
} else {
|
|
530
|
-
if (!Owner.owned)
|
|
531
|
-
|
|
532
|
-
else
|
|
533
|
-
Owner.owned.push(c2);
|
|
483
|
+
if (!Owner.owned) Owner.owned = [c2];
|
|
484
|
+
else Owner.owned.push(c2);
|
|
534
485
|
}
|
|
535
486
|
}
|
|
536
487
|
if (ExternalSourceConfig && c2.fn) {
|
|
@@ -550,26 +501,20 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
550
501
|
}
|
|
551
502
|
function runTop(node) {
|
|
552
503
|
const runningTransition = Transition && Transition.running;
|
|
553
|
-
if ((runningTransition ? node.tState : node.state) === 0)
|
|
554
|
-
|
|
555
|
-
if (
|
|
556
|
-
return lookUpstream(node);
|
|
557
|
-
if (node.suspense && untrack(node.suspense.inFallback))
|
|
558
|
-
return node.suspense.effects.push(node);
|
|
504
|
+
if ((runningTransition ? node.tState : node.state) === 0) return;
|
|
505
|
+
if ((runningTransition ? node.tState : node.state) === PENDING) return lookUpstream(node);
|
|
506
|
+
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
|
|
559
507
|
const ancestors = [node];
|
|
560
508
|
while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
|
|
561
|
-
if (runningTransition && Transition.disposed.has(node))
|
|
562
|
-
|
|
563
|
-
if (runningTransition ? node.tState : node.state)
|
|
564
|
-
ancestors.push(node);
|
|
509
|
+
if (runningTransition && Transition.disposed.has(node)) return;
|
|
510
|
+
if (runningTransition ? node.tState : node.state) ancestors.push(node);
|
|
565
511
|
}
|
|
566
512
|
for (let i2 = ancestors.length - 1; i2 >= 0; i2--) {
|
|
567
513
|
node = ancestors[i2];
|
|
568
514
|
if (runningTransition) {
|
|
569
515
|
let top = node, prev = ancestors[i2 + 1];
|
|
570
516
|
while ((top = top.owner) && top !== prev) {
|
|
571
|
-
if (Transition.disposed.has(top))
|
|
572
|
-
return;
|
|
517
|
+
if (Transition.disposed.has(top)) return;
|
|
573
518
|
}
|
|
574
519
|
}
|
|
575
520
|
if ((runningTransition ? node.tState : node.state) === STALE) {
|
|
@@ -583,37 +528,29 @@ function runTop(node) {
|
|
|
583
528
|
}
|
|
584
529
|
}
|
|
585
530
|
function runUpdates(fn, init) {
|
|
586
|
-
if (Updates)
|
|
587
|
-
return fn();
|
|
531
|
+
if (Updates) return fn();
|
|
588
532
|
let wait = false;
|
|
589
|
-
if (!init)
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
wait = true;
|
|
593
|
-
else
|
|
594
|
-
Effects = [];
|
|
533
|
+
if (!init) Updates = [];
|
|
534
|
+
if (Effects) wait = true;
|
|
535
|
+
else Effects = [];
|
|
595
536
|
ExecCount++;
|
|
596
537
|
try {
|
|
597
538
|
const res = fn();
|
|
598
539
|
completeUpdates(wait);
|
|
599
540
|
return res;
|
|
600
541
|
} catch (err) {
|
|
601
|
-
if (!wait)
|
|
602
|
-
Effects = null;
|
|
542
|
+
if (!wait) Effects = null;
|
|
603
543
|
Updates = null;
|
|
604
544
|
handleError(err);
|
|
605
545
|
}
|
|
606
546
|
}
|
|
607
547
|
function completeUpdates(wait) {
|
|
608
548
|
if (Updates) {
|
|
609
|
-
if (Scheduler && Transition && Transition.running)
|
|
610
|
-
|
|
611
|
-
else
|
|
612
|
-
runQueue(Updates);
|
|
549
|
+
if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);
|
|
550
|
+
else runQueue(Updates);
|
|
613
551
|
Updates = null;
|
|
614
552
|
}
|
|
615
|
-
if (wait)
|
|
616
|
-
return;
|
|
553
|
+
if (wait) return;
|
|
617
554
|
let res;
|
|
618
555
|
if (Transition) {
|
|
619
556
|
if (!Transition.promises.size && !Transition.queue.size) {
|
|
@@ -627,16 +564,13 @@ function completeUpdates(wait) {
|
|
|
627
564
|
}
|
|
628
565
|
Transition = null;
|
|
629
566
|
runUpdates(() => {
|
|
630
|
-
for (const d of disposed)
|
|
631
|
-
cleanNode(d);
|
|
567
|
+
for (const d of disposed) cleanNode(d);
|
|
632
568
|
for (const v of sources) {
|
|
633
569
|
v.value = v.tValue;
|
|
634
570
|
if (v.owned) {
|
|
635
|
-
for (let i2 = 0, len = v.owned.length; i2 < len; i2++)
|
|
636
|
-
cleanNode(v.owned[i2]);
|
|
571
|
+
for (let i2 = 0, len = v.owned.length; i2 < len; i2++) cleanNode(v.owned[i2]);
|
|
637
572
|
}
|
|
638
|
-
if (v.tOwned)
|
|
639
|
-
v.owned = v.tOwned;
|
|
573
|
+
if (v.tOwned) v.owned = v.tOwned;
|
|
640
574
|
delete v.tValue;
|
|
641
575
|
delete v.tOwned;
|
|
642
576
|
v.tState = 0;
|
|
@@ -653,14 +587,11 @@ function completeUpdates(wait) {
|
|
|
653
587
|
}
|
|
654
588
|
const e2 = Effects;
|
|
655
589
|
Effects = null;
|
|
656
|
-
if (e2.length)
|
|
657
|
-
|
|
658
|
-
if (res)
|
|
659
|
-
res();
|
|
590
|
+
if (e2.length) runUpdates(() => runEffects(e2), false);
|
|
591
|
+
if (res) res();
|
|
660
592
|
}
|
|
661
593
|
function runQueue(queue) {
|
|
662
|
-
for (let i2 = 0; i2 < queue.length; i2++)
|
|
663
|
-
runTop(queue[i2]);
|
|
594
|
+
for (let i2 = 0; i2 < queue.length; i2++) runTop(queue[i2]);
|
|
664
595
|
}
|
|
665
596
|
function scheduleQueue(queue) {
|
|
666
597
|
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
@@ -683,10 +614,8 @@ function runUserEffects(queue) {
|
|
|
683
614
|
let i2, userLength = 0;
|
|
684
615
|
for (i2 = 0; i2 < queue.length; i2++) {
|
|
685
616
|
const e2 = queue[i2];
|
|
686
|
-
if (!e2.user)
|
|
687
|
-
|
|
688
|
-
else
|
|
689
|
-
queue[userLength++] = e2;
|
|
617
|
+
if (!e2.user) runTop(e2);
|
|
618
|
+
else queue[userLength++] = e2;
|
|
690
619
|
}
|
|
691
620
|
if (sharedConfig.context) {
|
|
692
621
|
if (sharedConfig.count) {
|
|
@@ -701,15 +630,12 @@ function runUserEffects(queue) {
|
|
|
701
630
|
userLength += sharedConfig.effects.length;
|
|
702
631
|
delete sharedConfig.effects;
|
|
703
632
|
}
|
|
704
|
-
for (i2 = 0; i2 < userLength; i2++)
|
|
705
|
-
runTop(queue[i2]);
|
|
633
|
+
for (i2 = 0; i2 < userLength; i2++) runTop(queue[i2]);
|
|
706
634
|
}
|
|
707
635
|
function lookUpstream(node, ignore) {
|
|
708
636
|
const runningTransition = Transition && Transition.running;
|
|
709
|
-
if (runningTransition)
|
|
710
|
-
|
|
711
|
-
else
|
|
712
|
-
node.state = 0;
|
|
637
|
+
if (runningTransition) node.tState = 0;
|
|
638
|
+
else node.state = 0;
|
|
713
639
|
for (let i2 = 0; i2 < node.sources.length; i2 += 1) {
|
|
714
640
|
const source = node.sources[i2];
|
|
715
641
|
if (source.sources) {
|
|
@@ -717,8 +643,7 @@ function lookUpstream(node, ignore) {
|
|
|
717
643
|
if (state === STALE) {
|
|
718
644
|
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
719
645
|
runTop(source);
|
|
720
|
-
} else if (state === PENDING)
|
|
721
|
-
lookUpstream(source, ignore);
|
|
646
|
+
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
722
647
|
}
|
|
723
648
|
}
|
|
724
649
|
}
|
|
@@ -727,14 +652,10 @@ function markDownstream(node) {
|
|
|
727
652
|
for (let i2 = 0; i2 < node.observers.length; i2 += 1) {
|
|
728
653
|
const o2 = node.observers[i2];
|
|
729
654
|
if (runningTransition ? !o2.tState : !o2.state) {
|
|
730
|
-
if (runningTransition)
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
if (o2.pure)
|
|
735
|
-
Updates.push(o2);
|
|
736
|
-
else
|
|
737
|
-
Effects.push(o2);
|
|
655
|
+
if (runningTransition) o2.tState = PENDING;
|
|
656
|
+
else o2.state = PENDING;
|
|
657
|
+
if (o2.pure) Updates.push(o2);
|
|
658
|
+
else Effects.push(o2);
|
|
738
659
|
o2.observers && markDownstream(o2);
|
|
739
660
|
}
|
|
740
661
|
}
|
|
@@ -755,26 +676,21 @@ function cleanNode(node) {
|
|
|
755
676
|
}
|
|
756
677
|
}
|
|
757
678
|
if (node.tOwned) {
|
|
758
|
-
for (i2 = node.tOwned.length - 1; i2 >= 0; i2--)
|
|
759
|
-
cleanNode(node.tOwned[i2]);
|
|
679
|
+
for (i2 = node.tOwned.length - 1; i2 >= 0; i2--) cleanNode(node.tOwned[i2]);
|
|
760
680
|
delete node.tOwned;
|
|
761
681
|
}
|
|
762
682
|
if (Transition && Transition.running && node.pure) {
|
|
763
683
|
reset(node, true);
|
|
764
684
|
} else if (node.owned) {
|
|
765
|
-
for (i2 = node.owned.length - 1; i2 >= 0; i2--)
|
|
766
|
-
cleanNode(node.owned[i2]);
|
|
685
|
+
for (i2 = node.owned.length - 1; i2 >= 0; i2--) cleanNode(node.owned[i2]);
|
|
767
686
|
node.owned = null;
|
|
768
687
|
}
|
|
769
688
|
if (node.cleanups) {
|
|
770
|
-
for (i2 = node.cleanups.length - 1; i2 >= 0; i2--)
|
|
771
|
-
node.cleanups[i2]();
|
|
689
|
+
for (i2 = node.cleanups.length - 1; i2 >= 0; i2--) node.cleanups[i2]();
|
|
772
690
|
node.cleanups = null;
|
|
773
691
|
}
|
|
774
|
-
if (Transition && Transition.running)
|
|
775
|
-
|
|
776
|
-
else
|
|
777
|
-
node.state = 0;
|
|
692
|
+
if (Transition && Transition.running) node.tState = 0;
|
|
693
|
+
else node.state = 0;
|
|
778
694
|
}
|
|
779
695
|
function reset(node, top) {
|
|
780
696
|
if (!top) {
|
|
@@ -782,21 +698,18 @@ function reset(node, top) {
|
|
|
782
698
|
Transition.disposed.add(node);
|
|
783
699
|
}
|
|
784
700
|
if (node.owned) {
|
|
785
|
-
for (let i2 = 0; i2 < node.owned.length; i2++)
|
|
786
|
-
reset(node.owned[i2]);
|
|
701
|
+
for (let i2 = 0; i2 < node.owned.length; i2++) reset(node.owned[i2]);
|
|
787
702
|
}
|
|
788
703
|
}
|
|
789
704
|
function castError(err) {
|
|
790
|
-
if (err instanceof Error)
|
|
791
|
-
return err;
|
|
705
|
+
if (err instanceof Error) return err;
|
|
792
706
|
return new Error(typeof err === "string" ? err : "Unknown error", {
|
|
793
707
|
cause: err
|
|
794
708
|
});
|
|
795
709
|
}
|
|
796
710
|
function runErrors(err, fns, owner) {
|
|
797
711
|
try {
|
|
798
|
-
for (const f of fns)
|
|
799
|
-
f(err);
|
|
712
|
+
for (const f of fns) f(err);
|
|
800
713
|
} catch (e2) {
|
|
801
714
|
handleError(e2, owner && owner.owner || null);
|
|
802
715
|
}
|
|
@@ -804,8 +717,7 @@ function runErrors(err, fns, owner) {
|
|
|
804
717
|
function handleError(err, owner = Owner) {
|
|
805
718
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
806
719
|
const error = castError(err);
|
|
807
|
-
if (!fns)
|
|
808
|
-
throw error;
|
|
720
|
+
if (!fns) throw error;
|
|
809
721
|
if (Effects)
|
|
810
722
|
Effects.push({
|
|
811
723
|
fn() {
|
|
@@ -813,12 +725,10 @@ function handleError(err, owner = Owner) {
|
|
|
813
725
|
},
|
|
814
726
|
state: STALE
|
|
815
727
|
});
|
|
816
|
-
else
|
|
817
|
-
runErrors(error, fns, owner);
|
|
728
|
+
else runErrors(error, fns, owner);
|
|
818
729
|
}
|
|
819
730
|
function resolveChildren(children2) {
|
|
820
|
-
if (typeof children2 === "function" && !children2.length)
|
|
821
|
-
return resolveChildren(children2());
|
|
731
|
+
if (typeof children2 === "function" && !children2.length) return resolveChildren(children2());
|
|
822
732
|
if (Array.isArray(children2)) {
|
|
823
733
|
const results = [];
|
|
824
734
|
for (let i2 = 0; i2 < children2.length; i2++) {
|
|
@@ -846,8 +756,7 @@ function createProvider(id, options) {
|
|
|
846
756
|
};
|
|
847
757
|
}
|
|
848
758
|
function dispose(d) {
|
|
849
|
-
for (let i2 = 0; i2 < d.length; i2++)
|
|
850
|
-
d[i2]();
|
|
759
|
+
for (let i2 = 0; i2 < d.length; i2++) d[i2]();
|
|
851
760
|
}
|
|
852
761
|
function mapArray(list, mapFn, options = {}) {
|
|
853
762
|
let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
|
|
@@ -885,8 +794,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
885
794
|
temp = new Array(newLen);
|
|
886
795
|
tempdisposers = new Array(newLen);
|
|
887
796
|
indexes && (tempIndexes = new Array(newLen));
|
|
888
|
-
for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++)
|
|
889
|
-
;
|
|
797
|
+
for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++) ;
|
|
890
798
|
for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
|
|
891
799
|
temp[newEnd] = mapped[end];
|
|
892
800
|
tempdisposers[newEnd] = disposers[end];
|
|
@@ -909,8 +817,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
909
817
|
indexes && (tempIndexes[j] = indexes[i2]);
|
|
910
818
|
j = newIndicesNext[j];
|
|
911
819
|
newIndices.set(item, j);
|
|
912
|
-
} else
|
|
913
|
-
disposers[i2]();
|
|
820
|
+
} else disposers[i2]();
|
|
914
821
|
}
|
|
915
822
|
for (j = start; j < newLen; j++) {
|
|
916
823
|
if (j in temp) {
|
|
@@ -920,8 +827,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
920
827
|
indexes[j] = tempIndexes[j];
|
|
921
828
|
indexes[j](j);
|
|
922
829
|
}
|
|
923
|
-
} else
|
|
924
|
-
mapped[j] = createRoot(mapper);
|
|
830
|
+
} else mapped[j] = createRoot(mapper);
|
|
925
831
|
}
|
|
926
832
|
mapped = mapped.slice(0, len = newLen);
|
|
927
833
|
items = newItems.slice(0);
|
|
@@ -1015,8 +921,7 @@ function resolveSource(s2) {
|
|
|
1015
921
|
function resolveSources() {
|
|
1016
922
|
for (let i2 = 0, length = this.length; i2 < length; ++i2) {
|
|
1017
923
|
const v = this[i2]();
|
|
1018
|
-
if (v !== void 0)
|
|
1019
|
-
return v;
|
|
924
|
+
if (v !== void 0) return v;
|
|
1020
925
|
}
|
|
1021
926
|
}
|
|
1022
927
|
function mergeProps(...sources) {
|
|
@@ -1032,14 +937,12 @@ function mergeProps(...sources) {
|
|
|
1032
937
|
get(property) {
|
|
1033
938
|
for (let i2 = sources.length - 1; i2 >= 0; i2--) {
|
|
1034
939
|
const v = resolveSource(sources[i2])[property];
|
|
1035
|
-
if (v !== void 0)
|
|
1036
|
-
return v;
|
|
940
|
+
if (v !== void 0) return v;
|
|
1037
941
|
}
|
|
1038
942
|
},
|
|
1039
943
|
has(property) {
|
|
1040
944
|
for (let i2 = sources.length - 1; i2 >= 0; i2--) {
|
|
1041
|
-
if (property in resolveSource(sources[i2]))
|
|
1042
|
-
return true;
|
|
945
|
+
if (property in resolveSource(sources[i2])) return true;
|
|
1043
946
|
}
|
|
1044
947
|
return false;
|
|
1045
948
|
},
|
|
@@ -1057,13 +960,11 @@ function mergeProps(...sources) {
|
|
|
1057
960
|
const defined = /* @__PURE__ */ Object.create(null);
|
|
1058
961
|
for (let i2 = sources.length - 1; i2 >= 0; i2--) {
|
|
1059
962
|
const source = sources[i2];
|
|
1060
|
-
if (!source)
|
|
1061
|
-
continue;
|
|
963
|
+
if (!source) continue;
|
|
1062
964
|
const sourceKeys = Object.getOwnPropertyNames(source);
|
|
1063
965
|
for (let i3 = sourceKeys.length - 1; i3 >= 0; i3--) {
|
|
1064
966
|
const key = sourceKeys[i3];
|
|
1065
|
-
if (key === "__proto__" || key === "constructor")
|
|
1066
|
-
continue;
|
|
967
|
+
if (key === "__proto__" || key === "constructor") continue;
|
|
1067
968
|
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
1068
969
|
if (!defined[key]) {
|
|
1069
970
|
defined[key] = desc.get ? {
|
|
@@ -1074,10 +975,8 @@ function mergeProps(...sources) {
|
|
|
1074
975
|
} else {
|
|
1075
976
|
const sources2 = sourcesMap[key];
|
|
1076
977
|
if (sources2) {
|
|
1077
|
-
if (desc.get)
|
|
1078
|
-
|
|
1079
|
-
else if (desc.value !== void 0)
|
|
1080
|
-
sources2.push(() => desc.value);
|
|
978
|
+
if (desc.get) sources2.push(desc.get.bind(source));
|
|
979
|
+
else if (desc.value !== void 0) sources2.push(() => desc.value);
|
|
1081
980
|
}
|
|
1082
981
|
}
|
|
1083
982
|
}
|
|
@@ -1086,10 +985,8 @@ function mergeProps(...sources) {
|
|
|
1086
985
|
const definedKeys = Object.keys(defined);
|
|
1087
986
|
for (let i2 = definedKeys.length - 1; i2 >= 0; i2--) {
|
|
1088
987
|
const key = definedKeys[i2], desc = defined[key];
|
|
1089
|
-
if (desc && desc.get)
|
|
1090
|
-
|
|
1091
|
-
else
|
|
1092
|
-
target[key] = desc ? desc.value : void 0;
|
|
988
|
+
if (desc && desc.get) Object.defineProperty(target, key, desc);
|
|
989
|
+
else target[key] = desc ? desc.value : void 0;
|
|
1093
990
|
}
|
|
1094
991
|
return target;
|
|
1095
992
|
}
|
|
@@ -1173,10 +1070,8 @@ function lazy(fn) {
|
|
|
1173
1070
|
let Comp;
|
|
1174
1071
|
return createMemo(
|
|
1175
1072
|
() => (Comp = comp()) ? untrack(() => {
|
|
1176
|
-
if (IS_DEV)
|
|
1177
|
-
|
|
1178
|
-
if (!ctx || sharedConfig.done)
|
|
1179
|
-
return Comp(props);
|
|
1073
|
+
if (IS_DEV) ;
|
|
1074
|
+
if (!ctx || sharedConfig.done) return Comp(props);
|
|
1180
1075
|
const c2 = sharedConfig.context;
|
|
1181
1076
|
setHydrateContext(ctx);
|
|
1182
1077
|
const r2 = Comp(props);
|
|
@@ -1219,8 +1114,7 @@ function Show(props) {
|
|
|
1219
1114
|
return fn ? untrack(
|
|
1220
1115
|
() => child(
|
|
1221
1116
|
keyed ? c2 : () => {
|
|
1222
|
-
if (!untrack(condition))
|
|
1223
|
-
throw narrowedError("Show");
|
|
1117
|
+
if (!untrack(condition)) throw narrowedError("Show");
|
|
1224
1118
|
return conditionValue();
|
|
1225
1119
|
}
|
|
1226
1120
|
)
|
|
@@ -1257,16 +1151,14 @@ function Switch(props) {
|
|
|
1257
1151
|
return createMemo(
|
|
1258
1152
|
() => {
|
|
1259
1153
|
const sel = switchFunc()();
|
|
1260
|
-
if (!sel)
|
|
1261
|
-
return props.fallback;
|
|
1154
|
+
if (!sel) return props.fallback;
|
|
1262
1155
|
const [index, conditionValue, mp] = sel;
|
|
1263
1156
|
const child = mp.children;
|
|
1264
1157
|
const fn = typeof child === "function" && child.length > 0;
|
|
1265
1158
|
return fn ? untrack(
|
|
1266
1159
|
() => child(
|
|
1267
1160
|
mp.keyed ? conditionValue() : () => {
|
|
1268
|
-
if (untrack(switchFunc)()?.[0] !== index)
|
|
1269
|
-
throw narrowedError("Match");
|
|
1161
|
+
if (untrack(switchFunc)()?.[0] !== index) throw narrowedError("Match");
|
|
1270
1162
|
return conditionValue();
|
|
1271
1163
|
}
|
|
1272
1164
|
)
|
|
@@ -1326,13 +1218,11 @@ var init_solid = __esm({
|
|
|
1326
1218
|
hydrationEnabled = false;
|
|
1327
1219
|
propTraps = {
|
|
1328
1220
|
get(_, property, receiver) {
|
|
1329
|
-
if (property === $PROXY)
|
|
1330
|
-
return receiver;
|
|
1221
|
+
if (property === $PROXY) return receiver;
|
|
1331
1222
|
return _.get(property);
|
|
1332
1223
|
},
|
|
1333
1224
|
has(_, property) {
|
|
1334
|
-
if (property === $PROXY)
|
|
1335
|
-
return true;
|
|
1225
|
+
if (property === $PROXY) return true;
|
|
1336
1226
|
return _.has(property);
|
|
1337
1227
|
},
|
|
1338
1228
|
set: trueFn,
|
|
@@ -1377,12 +1267,10 @@ function reconcileArrays(parentNode, a2, b2) {
|
|
|
1377
1267
|
}
|
|
1378
1268
|
if (aEnd === aStart) {
|
|
1379
1269
|
const node = bEnd < bLength ? bStart ? b2[bStart - 1].nextSibling : b2[bEnd - bStart] : after;
|
|
1380
|
-
while (bStart < bEnd)
|
|
1381
|
-
parentNode.insertBefore(b2[bStart++], node);
|
|
1270
|
+
while (bStart < bEnd) parentNode.insertBefore(b2[bStart++], node);
|
|
1382
1271
|
} else if (bEnd === bStart) {
|
|
1383
1272
|
while (aStart < aEnd) {
|
|
1384
|
-
if (!map || !map.has(a2[aStart]))
|
|
1385
|
-
a2[aStart].remove();
|
|
1273
|
+
if (!map || !map.has(a2[aStart])) a2[aStart].remove();
|
|
1386
1274
|
aStart++;
|
|
1387
1275
|
}
|
|
1388
1276
|
} else if (a2[aStart] === b2[bEnd - 1] && b2[bStart] === a2[aEnd - 1]) {
|
|
@@ -1394,28 +1282,22 @@ function reconcileArrays(parentNode, a2, b2) {
|
|
|
1394
1282
|
if (!map) {
|
|
1395
1283
|
map = /* @__PURE__ */ new Map();
|
|
1396
1284
|
let i2 = bStart;
|
|
1397
|
-
while (i2 < bEnd)
|
|
1398
|
-
map.set(b2[i2], i2++);
|
|
1285
|
+
while (i2 < bEnd) map.set(b2[i2], i2++);
|
|
1399
1286
|
}
|
|
1400
1287
|
const index = map.get(a2[aStart]);
|
|
1401
1288
|
if (index != null) {
|
|
1402
1289
|
if (bStart < index && index < bEnd) {
|
|
1403
1290
|
let i2 = aStart, sequence = 1, t2;
|
|
1404
1291
|
while (++i2 < aEnd && i2 < bEnd) {
|
|
1405
|
-
if ((t2 = map.get(a2[i2])) == null || t2 !== index + sequence)
|
|
1406
|
-
break;
|
|
1292
|
+
if ((t2 = map.get(a2[i2])) == null || t2 !== index + sequence) break;
|
|
1407
1293
|
sequence++;
|
|
1408
1294
|
}
|
|
1409
1295
|
if (sequence > index - bStart) {
|
|
1410
1296
|
const node = a2[aStart];
|
|
1411
|
-
while (bStart < index)
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
} else
|
|
1416
|
-
aStart++;
|
|
1417
|
-
} else
|
|
1418
|
-
a2[aStart++].remove();
|
|
1297
|
+
while (bStart < index) parentNode.insertBefore(b2[bStart++], node);
|
|
1298
|
+
} else parentNode.replaceChild(b2[bStart++], a2[aStart++]);
|
|
1299
|
+
} else aStart++;
|
|
1300
|
+
} else a2[aStart++].remove();
|
|
1419
1301
|
}
|
|
1420
1302
|
}
|
|
1421
1303
|
}
|
|
@@ -1453,78 +1335,61 @@ function delegateEvents(eventNames, document2 = window.document) {
|
|
|
1453
1335
|
}
|
|
1454
1336
|
function clearDelegatedEvents(document2 = window.document) {
|
|
1455
1337
|
if (document2[$$EVENTS]) {
|
|
1456
|
-
for (let name of document2[$$EVENTS].keys())
|
|
1457
|
-
document2.removeEventListener(name, eventHandler);
|
|
1338
|
+
for (let name of document2[$$EVENTS].keys()) document2.removeEventListener(name, eventHandler);
|
|
1458
1339
|
delete document2[$$EVENTS];
|
|
1459
1340
|
}
|
|
1460
1341
|
}
|
|
1461
1342
|
function setAttribute(node, name, value) {
|
|
1462
|
-
if (isHydrating(node))
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
node.removeAttribute(name);
|
|
1466
|
-
else
|
|
1467
|
-
node.setAttribute(name, value);
|
|
1343
|
+
if (isHydrating(node)) return;
|
|
1344
|
+
if (value == null) node.removeAttribute(name);
|
|
1345
|
+
else node.setAttribute(name, value);
|
|
1468
1346
|
}
|
|
1469
1347
|
function setAttributeNS(node, namespace, name, value) {
|
|
1470
|
-
if (isHydrating(node))
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
node.removeAttributeNS(namespace, name);
|
|
1474
|
-
else
|
|
1475
|
-
node.setAttributeNS(namespace, name, value);
|
|
1348
|
+
if (isHydrating(node)) return;
|
|
1349
|
+
if (value == null) node.removeAttributeNS(namespace, name);
|
|
1350
|
+
else node.setAttributeNS(namespace, name, value);
|
|
1476
1351
|
}
|
|
1477
1352
|
function setBoolAttribute(node, name, value) {
|
|
1478
|
-
if (isHydrating(node))
|
|
1479
|
-
return;
|
|
1353
|
+
if (isHydrating(node)) return;
|
|
1480
1354
|
value ? node.setAttribute(name, "") : node.removeAttribute(name);
|
|
1481
1355
|
}
|
|
1482
1356
|
function className(node, value) {
|
|
1483
|
-
if (isHydrating(node))
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
node.removeAttribute("class");
|
|
1487
|
-
else
|
|
1488
|
-
node.className = value;
|
|
1357
|
+
if (isHydrating(node)) return;
|
|
1358
|
+
if (value == null) node.removeAttribute("class");
|
|
1359
|
+
else node.className = value;
|
|
1489
1360
|
}
|
|
1490
1361
|
function addEventListener(node, name, handler, delegate) {
|
|
1491
1362
|
if (delegate) {
|
|
1492
1363
|
if (Array.isArray(handler)) {
|
|
1493
1364
|
node[`$$${name}`] = handler[0];
|
|
1494
1365
|
node[`$$${name}Data`] = handler[1];
|
|
1495
|
-
} else
|
|
1496
|
-
node[`$$${name}`] = handler;
|
|
1366
|
+
} else node[`$$${name}`] = handler;
|
|
1497
1367
|
} else if (Array.isArray(handler)) {
|
|
1498
1368
|
const handlerFn = handler[0];
|
|
1499
1369
|
node.addEventListener(name, handler[0] = (e2) => handlerFn.call(node, handler[1], e2));
|
|
1500
|
-
} else
|
|
1501
|
-
node.addEventListener(name, handler, typeof handler !== "function" && handler);
|
|
1370
|
+
} else node.addEventListener(name, handler, typeof handler !== "function" && handler);
|
|
1502
1371
|
}
|
|
1503
1372
|
function classList(node, value, prev = {}) {
|
|
1504
1373
|
const classKeys = Object.keys(value || {}), prevKeys = Object.keys(prev);
|
|
1505
1374
|
let i2, len;
|
|
1506
1375
|
for (i2 = 0, len = prevKeys.length; i2 < len; i2++) {
|
|
1507
1376
|
const key = prevKeys[i2];
|
|
1508
|
-
if (!key || key === "undefined" || value[key])
|
|
1509
|
-
continue;
|
|
1377
|
+
if (!key || key === "undefined" || value[key]) continue;
|
|
1510
1378
|
toggleClassKey(node, key, false);
|
|
1511
1379
|
delete prev[key];
|
|
1512
1380
|
}
|
|
1513
1381
|
for (i2 = 0, len = classKeys.length; i2 < len; i2++) {
|
|
1514
1382
|
const key = classKeys[i2], classValue = !!value[key];
|
|
1515
|
-
if (!key || key === "undefined" || prev[key] === classValue || !classValue)
|
|
1516
|
-
continue;
|
|
1383
|
+
if (!key || key === "undefined" || prev[key] === classValue || !classValue) continue;
|
|
1517
1384
|
toggleClassKey(node, key, true);
|
|
1518
1385
|
prev[key] = classValue;
|
|
1519
1386
|
}
|
|
1520
1387
|
return prev;
|
|
1521
1388
|
}
|
|
1522
1389
|
function style(node, value, prev) {
|
|
1523
|
-
if (!value)
|
|
1524
|
-
return prev ? setAttribute(node, "style") : value;
|
|
1390
|
+
if (!value) return prev ? setAttribute(node, "style") : value;
|
|
1525
1391
|
const nodeStyle = node.style;
|
|
1526
|
-
if (typeof value === "string")
|
|
1527
|
-
return nodeStyle.cssText = value;
|
|
1392
|
+
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
1528
1393
|
typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
|
|
1529
1394
|
prev || (prev = {});
|
|
1530
1395
|
value || (value = {});
|
|
@@ -1557,18 +1422,15 @@ function use(fn, element, arg) {
|
|
|
1557
1422
|
return untrack(() => fn(element, arg));
|
|
1558
1423
|
}
|
|
1559
1424
|
function insert(parent, accessor, marker, initial) {
|
|
1560
|
-
if (marker !== void 0 && !initial)
|
|
1561
|
-
|
|
1562
|
-
if (typeof accessor !== "function")
|
|
1563
|
-
return insertExpression(parent, accessor, initial, marker);
|
|
1425
|
+
if (marker !== void 0 && !initial) initial = [];
|
|
1426
|
+
if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
|
|
1564
1427
|
createRenderEffect((current) => insertExpression(parent, accessor(), current, marker), initial);
|
|
1565
1428
|
}
|
|
1566
1429
|
function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = false) {
|
|
1567
1430
|
props || (props = {});
|
|
1568
1431
|
for (const prop in prevProps) {
|
|
1569
1432
|
if (!(prop in props)) {
|
|
1570
|
-
if (prop === "children")
|
|
1571
|
-
continue;
|
|
1433
|
+
if (prop === "children") continue;
|
|
1572
1434
|
prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef, props);
|
|
1573
1435
|
}
|
|
1574
1436
|
}
|
|
@@ -1585,8 +1447,7 @@ function getNextElement(template2) {
|
|
|
1585
1447
|
if (!hydrating || !(node = sharedConfig.registry.get(key = getHydrationKey()))) {
|
|
1586
1448
|
return template2();
|
|
1587
1449
|
}
|
|
1588
|
-
if (sharedConfig.completed)
|
|
1589
|
-
sharedConfig.completed.add(node);
|
|
1450
|
+
if (sharedConfig.completed) sharedConfig.completed.add(node);
|
|
1590
1451
|
sharedConfig.registry.delete(key);
|
|
1591
1452
|
return node;
|
|
1592
1453
|
}
|
|
@@ -1603,15 +1464,11 @@ function toggleClassKey(node, key, value) {
|
|
|
1603
1464
|
}
|
|
1604
1465
|
function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
1605
1466
|
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
1606
|
-
if (prop === "style")
|
|
1607
|
-
|
|
1608
|
-
if (
|
|
1609
|
-
return classList(node, value, prev);
|
|
1610
|
-
if (value === prev)
|
|
1611
|
-
return prev;
|
|
1467
|
+
if (prop === "style") return style(node, value, prev);
|
|
1468
|
+
if (prop === "classList") return classList(node, value, prev);
|
|
1469
|
+
if (value === prev) return prev;
|
|
1612
1470
|
if (prop === "ref") {
|
|
1613
|
-
if (!skipRef)
|
|
1614
|
-
value(node);
|
|
1471
|
+
if (!skipRef) value(node);
|
|
1615
1472
|
} else if (prop.slice(0, 3) === "on:") {
|
|
1616
1473
|
const e2 = prop.slice(3);
|
|
1617
1474
|
prev && node.removeEventListener(e2, prev, typeof prev !== "function" && prev);
|
|
@@ -1639,27 +1496,20 @@ function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
|
1639
1496
|
if (forceProp) {
|
|
1640
1497
|
prop = prop.slice(5);
|
|
1641
1498
|
isProp = true;
|
|
1642
|
-
} else if (isHydrating(node))
|
|
1643
|
-
|
|
1644
|
-
if (
|
|
1645
|
-
|
|
1646
|
-
else if (isCE && !isProp && !isChildProp)
|
|
1647
|
-
node[toPropertyName(prop)] = value;
|
|
1648
|
-
else
|
|
1649
|
-
node[propAlias || prop] = value;
|
|
1499
|
+
} else if (isHydrating(node)) return value;
|
|
1500
|
+
if (prop === "class" || prop === "className") className(node, value);
|
|
1501
|
+
else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;
|
|
1502
|
+
else node[propAlias || prop] = value;
|
|
1650
1503
|
} else {
|
|
1651
1504
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
1652
|
-
if (ns)
|
|
1653
|
-
|
|
1654
|
-
else
|
|
1655
|
-
setAttribute(node, Aliases[prop] || prop, value);
|
|
1505
|
+
if (ns) setAttributeNS(node, ns, prop, value);
|
|
1506
|
+
else setAttribute(node, Aliases[prop] || prop, value);
|
|
1656
1507
|
}
|
|
1657
1508
|
return value;
|
|
1658
1509
|
}
|
|
1659
1510
|
function eventHandler(e2) {
|
|
1660
1511
|
if (sharedConfig.registry && sharedConfig.events) {
|
|
1661
|
-
if (sharedConfig.events.find(([el, ev]) => ev === e2))
|
|
1662
|
-
return;
|
|
1512
|
+
if (sharedConfig.events.find(([el, ev]) => ev === e2)) return;
|
|
1663
1513
|
}
|
|
1664
1514
|
let node = e2.target;
|
|
1665
1515
|
const key = `$$${e2.type}`;
|
|
@@ -1674,15 +1524,13 @@ function eventHandler(e2) {
|
|
|
1674
1524
|
if (handler && !node.disabled) {
|
|
1675
1525
|
const data = node[`${key}Data`];
|
|
1676
1526
|
data !== void 0 ? handler.call(node, data, e2) : handler.call(node, e2);
|
|
1677
|
-
if (e2.cancelBubble)
|
|
1678
|
-
return;
|
|
1527
|
+
if (e2.cancelBubble) return;
|
|
1679
1528
|
}
|
|
1680
1529
|
node.host && typeof node.host !== "string" && !node.host._$host && node.contains(e2.target) && retarget(node.host);
|
|
1681
1530
|
return true;
|
|
1682
1531
|
};
|
|
1683
1532
|
const walkUpTree = () => {
|
|
1684
|
-
while (handleNode() && (node = node._$host || node.parentNode || node.host))
|
|
1685
|
-
;
|
|
1533
|
+
while (handleNode() && (node = node._$host || node.parentNode || node.host)) ;
|
|
1686
1534
|
};
|
|
1687
1535
|
Object.defineProperty(e2, "currentTarget", {
|
|
1688
1536
|
configurable: true,
|
|
@@ -1690,15 +1538,13 @@ function eventHandler(e2) {
|
|
|
1690
1538
|
return node || document;
|
|
1691
1539
|
}
|
|
1692
1540
|
});
|
|
1693
|
-
if (sharedConfig.registry && !sharedConfig.done)
|
|
1694
|
-
sharedConfig.done = _$HY.done = true;
|
|
1541
|
+
if (sharedConfig.registry && !sharedConfig.done) sharedConfig.done = _$HY.done = true;
|
|
1695
1542
|
if (e2.composedPath) {
|
|
1696
1543
|
const path = e2.composedPath();
|
|
1697
1544
|
retarget(path[0]);
|
|
1698
1545
|
for (let i2 = 0; i2 < path.length - 2; i2++) {
|
|
1699
1546
|
node = path[i2];
|
|
1700
|
-
if (!handleNode())
|
|
1701
|
-
break;
|
|
1547
|
+
if (!handleNode()) break;
|
|
1702
1548
|
if (node._$host) {
|
|
1703
1549
|
node = node._$host;
|
|
1704
1550
|
walkUpTree();
|
|
@@ -1708,8 +1554,7 @@ function eventHandler(e2) {
|
|
|
1708
1554
|
break;
|
|
1709
1555
|
}
|
|
1710
1556
|
}
|
|
1711
|
-
} else
|
|
1712
|
-
walkUpTree();
|
|
1557
|
+
} else walkUpTree();
|
|
1713
1558
|
retarget(oriTarget);
|
|
1714
1559
|
}
|
|
1715
1560
|
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
@@ -1719,49 +1564,39 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1719
1564
|
let cleaned = [];
|
|
1720
1565
|
for (let i2 = 0; i2 < current.length; i2++) {
|
|
1721
1566
|
const node = current[i2];
|
|
1722
|
-
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$")
|
|
1723
|
-
|
|
1724
|
-
else
|
|
1725
|
-
cleaned.push(node);
|
|
1567
|
+
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
|
|
1568
|
+
else cleaned.push(node);
|
|
1726
1569
|
}
|
|
1727
1570
|
current = cleaned;
|
|
1728
1571
|
}
|
|
1729
|
-
while (typeof current === "function")
|
|
1730
|
-
|
|
1731
|
-
if (value === current)
|
|
1732
|
-
return current;
|
|
1572
|
+
while (typeof current === "function") current = current();
|
|
1573
|
+
if (value === current) return current;
|
|
1733
1574
|
const t2 = typeof value, multi = marker !== void 0;
|
|
1734
1575
|
parent = multi && current[0] && current[0].parentNode || parent;
|
|
1735
1576
|
if (t2 === "string" || t2 === "number") {
|
|
1736
|
-
if (hydrating)
|
|
1737
|
-
return current;
|
|
1577
|
+
if (hydrating) return current;
|
|
1738
1578
|
if (t2 === "number") {
|
|
1739
1579
|
value = value.toString();
|
|
1740
|
-
if (value === current)
|
|
1741
|
-
return current;
|
|
1580
|
+
if (value === current) return current;
|
|
1742
1581
|
}
|
|
1743
1582
|
if (multi) {
|
|
1744
1583
|
let node = current[0];
|
|
1745
1584
|
if (node && node.nodeType === 3) {
|
|
1746
1585
|
node.data !== value && (node.data = value);
|
|
1747
|
-
} else
|
|
1748
|
-
node = document.createTextNode(value);
|
|
1586
|
+
} else node = document.createTextNode(value);
|
|
1749
1587
|
current = cleanChildren(parent, current, marker, node);
|
|
1750
1588
|
} else {
|
|
1751
1589
|
if (current !== "" && typeof current === "string") {
|
|
1752
1590
|
current = parent.firstChild.data = value;
|
|
1753
|
-
} else
|
|
1754
|
-
current = parent.textContent = value;
|
|
1591
|
+
} else current = parent.textContent = value;
|
|
1755
1592
|
}
|
|
1756
1593
|
} else if (value == null || t2 === "boolean") {
|
|
1757
|
-
if (hydrating)
|
|
1758
|
-
return current;
|
|
1594
|
+
if (hydrating) return current;
|
|
1759
1595
|
current = cleanChildren(parent, current, marker);
|
|
1760
1596
|
} else if (t2 === "function") {
|
|
1761
1597
|
createRenderEffect(() => {
|
|
1762
1598
|
let v = value();
|
|
1763
|
-
while (typeof v === "function")
|
|
1764
|
-
v = v();
|
|
1599
|
+
while (typeof v === "function") v = v();
|
|
1765
1600
|
current = insertExpression(parent, v, current, marker);
|
|
1766
1601
|
});
|
|
1767
1602
|
return () => current;
|
|
@@ -1773,62 +1608,50 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1773
1608
|
return () => current;
|
|
1774
1609
|
}
|
|
1775
1610
|
if (hydrating) {
|
|
1776
|
-
if (!array.length)
|
|
1777
|
-
|
|
1778
|
-
if (marker === void 0)
|
|
1779
|
-
return current = [...parent.childNodes];
|
|
1611
|
+
if (!array.length) return current;
|
|
1612
|
+
if (marker === void 0) return current = [...parent.childNodes];
|
|
1780
1613
|
let node = array[0];
|
|
1781
|
-
if (node.parentNode !== parent)
|
|
1782
|
-
return current;
|
|
1614
|
+
if (node.parentNode !== parent) return current;
|
|
1783
1615
|
const nodes = [node];
|
|
1784
|
-
while ((node = node.nextSibling) !== marker)
|
|
1785
|
-
nodes.push(node);
|
|
1616
|
+
while ((node = node.nextSibling) !== marker) nodes.push(node);
|
|
1786
1617
|
return current = nodes;
|
|
1787
1618
|
}
|
|
1788
1619
|
if (array.length === 0) {
|
|
1789
1620
|
current = cleanChildren(parent, current, marker);
|
|
1790
|
-
if (multi)
|
|
1791
|
-
return current;
|
|
1621
|
+
if (multi) return current;
|
|
1792
1622
|
} else if (currentArray) {
|
|
1793
1623
|
if (current.length === 0) {
|
|
1794
1624
|
appendNodes(parent, array, marker);
|
|
1795
|
-
} else
|
|
1796
|
-
reconcileArrays(parent, current, array);
|
|
1625
|
+
} else reconcileArrays(parent, current, array);
|
|
1797
1626
|
} else {
|
|
1798
1627
|
current && cleanChildren(parent);
|
|
1799
1628
|
appendNodes(parent, array);
|
|
1800
1629
|
}
|
|
1801
1630
|
current = array;
|
|
1802
1631
|
} else if (value.nodeType) {
|
|
1803
|
-
if (hydrating && value.parentNode)
|
|
1804
|
-
return current = multi ? [value] : value;
|
|
1632
|
+
if (hydrating && value.parentNode) return current = multi ? [value] : value;
|
|
1805
1633
|
if (Array.isArray(current)) {
|
|
1806
|
-
if (multi)
|
|
1807
|
-
return current = cleanChildren(parent, current, marker, value);
|
|
1634
|
+
if (multi) return current = cleanChildren(parent, current, marker, value);
|
|
1808
1635
|
cleanChildren(parent, current, null, value);
|
|
1809
1636
|
} else if (current == null || current === "" || !parent.firstChild) {
|
|
1810
1637
|
parent.appendChild(value);
|
|
1811
|
-
} else
|
|
1812
|
-
parent.replaceChild(value, parent.firstChild);
|
|
1638
|
+
} else parent.replaceChild(value, parent.firstChild);
|
|
1813
1639
|
current = value;
|
|
1814
|
-
} else
|
|
1815
|
-
;
|
|
1640
|
+
} else ;
|
|
1816
1641
|
return current;
|
|
1817
1642
|
}
|
|
1818
1643
|
function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
1819
1644
|
let dynamic = false;
|
|
1820
1645
|
for (let i2 = 0, len = array.length; i2 < len; i2++) {
|
|
1821
1646
|
let item = array[i2], prev = current && current[normalized.length], t2;
|
|
1822
|
-
if (item == null || item === true || item === false)
|
|
1823
|
-
;
|
|
1647
|
+
if (item == null || item === true || item === false) ;
|
|
1824
1648
|
else if ((t2 = typeof item) === "object" && item.nodeType) {
|
|
1825
1649
|
normalized.push(item);
|
|
1826
1650
|
} else if (Array.isArray(item)) {
|
|
1827
1651
|
dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
|
|
1828
1652
|
} else if (t2 === "function") {
|
|
1829
1653
|
if (unwrap) {
|
|
1830
|
-
while (typeof item === "function")
|
|
1831
|
-
item = item();
|
|
1654
|
+
while (typeof item === "function") item = item();
|
|
1832
1655
|
dynamic = normalizeIncomingArray(
|
|
1833
1656
|
normalized,
|
|
1834
1657
|
Array.isArray(item) ? item : [item],
|
|
@@ -1840,21 +1663,17 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
1840
1663
|
}
|
|
1841
1664
|
} else {
|
|
1842
1665
|
const value = String(item);
|
|
1843
|
-
if (prev && prev.nodeType === 3 && prev.data === value)
|
|
1844
|
-
|
|
1845
|
-
else
|
|
1846
|
-
normalized.push(document.createTextNode(value));
|
|
1666
|
+
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
|
|
1667
|
+
else normalized.push(document.createTextNode(value));
|
|
1847
1668
|
}
|
|
1848
1669
|
}
|
|
1849
1670
|
return dynamic;
|
|
1850
1671
|
}
|
|
1851
1672
|
function appendNodes(parent, array, marker = null) {
|
|
1852
|
-
for (let i2 = 0, len = array.length; i2 < len; i2++)
|
|
1853
|
-
parent.insertBefore(array[i2], marker);
|
|
1673
|
+
for (let i2 = 0, len = array.length; i2 < len; i2++) parent.insertBefore(array[i2], marker);
|
|
1854
1674
|
}
|
|
1855
1675
|
function cleanChildren(parent, current, marker, replacement) {
|
|
1856
|
-
if (marker === void 0)
|
|
1857
|
-
return parent.textContent = "";
|
|
1676
|
+
if (marker === void 0) return parent.textContent = "";
|
|
1858
1677
|
const node = replacement || document.createTextNode("");
|
|
1859
1678
|
if (current.length) {
|
|
1860
1679
|
let inserted = false;
|
|
@@ -1864,13 +1683,10 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
1864
1683
|
const isParent = el.parentNode === parent;
|
|
1865
1684
|
if (!inserted && !i2)
|
|
1866
1685
|
isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
|
|
1867
|
-
else
|
|
1868
|
-
|
|
1869
|
-
} else
|
|
1870
|
-
inserted = true;
|
|
1686
|
+
else isParent && el.remove();
|
|
1687
|
+
} else inserted = true;
|
|
1871
1688
|
}
|
|
1872
|
-
} else
|
|
1873
|
-
parent.insertBefore(node, marker);
|
|
1689
|
+
} else parent.insertBefore(node, marker);
|
|
1874
1690
|
return [node];
|
|
1875
1691
|
}
|
|
1876
1692
|
function getHydrationKey() {
|
|
@@ -1885,8 +1701,7 @@ function Portal(props) {
|
|
|
1885
1701
|
let hydrating = !!sharedConfig.context;
|
|
1886
1702
|
createEffect(
|
|
1887
1703
|
() => {
|
|
1888
|
-
if (hydrating)
|
|
1889
|
-
getOwner().user = hydrating = false;
|
|
1704
|
+
if (hydrating) getOwner().user = hydrating = false;
|
|
1890
1705
|
content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
|
|
1891
1706
|
const el = mount();
|
|
1892
1707
|
if (el instanceof HTMLHeadElement) {
|
|
@@ -3133,11 +2948,9 @@ var init_utils = __esm({
|
|
|
3133
2948
|
return oldData;
|
|
3134
2949
|
};
|
|
3135
2950
|
setupStyleSheet = (nonce, target) => {
|
|
3136
|
-
if (!nonce)
|
|
3137
|
-
return;
|
|
2951
|
+
if (!nonce) return;
|
|
3138
2952
|
const styleExists = document.querySelector("#_goober") || target?.querySelector("#_goober");
|
|
3139
|
-
if (styleExists)
|
|
3140
|
-
return;
|
|
2953
|
+
if (styleExists) return;
|
|
3141
2954
|
const styleTag = document.createElement("style");
|
|
3142
2955
|
const textNode = document.createTextNode("");
|
|
3143
2956
|
styleTag.appendChild(textNode);
|
|
@@ -4066,8 +3879,7 @@ var init_goober_modern = __esm({
|
|
|
4066
3879
|
s = (e2) => {
|
|
4067
3880
|
if ("object" == typeof e2) {
|
|
4068
3881
|
let t2 = "";
|
|
4069
|
-
for (let r2 in e2)
|
|
4070
|
-
t2 += r2 + s(e2[r2]);
|
|
3882
|
+
for (let r2 in e2) t2 += r2 + s(e2[r2]);
|
|
4071
3883
|
return t2;
|
|
4072
3884
|
}
|
|
4073
3885
|
return e2;
|
|
@@ -4075,15 +3887,13 @@ var init_goober_modern = __esm({
|
|
|
4075
3887
|
i = (e2, t2, r2, i2, p2) => {
|
|
4076
3888
|
let u2 = s(e2), d = c[u2] || (c[u2] = ((e3) => {
|
|
4077
3889
|
let t3 = 0, r3 = 11;
|
|
4078
|
-
for (; t3 < e3.length; )
|
|
4079
|
-
r3 = 101 * r3 + e3.charCodeAt(t3++) >>> 0;
|
|
3890
|
+
for (; t3 < e3.length; ) r3 = 101 * r3 + e3.charCodeAt(t3++) >>> 0;
|
|
4080
3891
|
return "go" + r3;
|
|
4081
3892
|
})(u2));
|
|
4082
3893
|
if (!c[d]) {
|
|
4083
3894
|
let t3 = u2 !== e2 ? e2 : ((e3) => {
|
|
4084
3895
|
let t4, r3, o2 = [{}];
|
|
4085
|
-
for (; t4 = l.exec(e3.replace(a, "")); )
|
|
4086
|
-
t4[4] ? o2.shift() : t4[3] ? (r3 = t4[3].replace(n, " ").trim(), o2.unshift(o2[0][r3] = o2[0][r3] || {})) : o2[0][t4[1]] = t4[2].replace(n, " ").trim();
|
|
3896
|
+
for (; t4 = l.exec(e3.replace(a, "")); ) t4[4] ? o2.shift() : t4[3] ? (r3 = t4[3].replace(n, " ").trim(), o2.unshift(o2[0][r3] = o2[0][r3] || {})) : o2[0][t4[1]] = t4[2].replace(n, " ").trim();
|
|
4087
3897
|
return o2[0];
|
|
4088
3898
|
})(e2);
|
|
4089
3899
|
c[d] = o(p2 ? { ["@keyframes " + d]: t3 } : t3, r2 ? "" : "." + d);
|
|
@@ -4109,21 +3919,15 @@ var init_goober_modern = __esm({
|
|
|
4109
3919
|
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
4110
3920
|
function r(e2) {
|
|
4111
3921
|
var t2, f, n2 = "";
|
|
4112
|
-
if ("string" == typeof e2 || "number" == typeof e2)
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
for (t2 = 0; t2 < o2; t2++)
|
|
4118
|
-
e2[t2] && (f = r(e2[t2])) && (n2 && (n2 += " "), n2 += f);
|
|
4119
|
-
} else
|
|
4120
|
-
for (f in e2)
|
|
4121
|
-
e2[f] && (n2 && (n2 += " "), n2 += f);
|
|
3922
|
+
if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
|
|
3923
|
+
else if ("object" == typeof e2) if (Array.isArray(e2)) {
|
|
3924
|
+
var o2 = e2.length;
|
|
3925
|
+
for (t2 = 0; t2 < o2; t2++) e2[t2] && (f = r(e2[t2])) && (n2 && (n2 += " "), n2 += f);
|
|
3926
|
+
} else for (f in e2) e2[f] && (n2 && (n2 += " "), n2 += f);
|
|
4122
3927
|
return n2;
|
|
4123
3928
|
}
|
|
4124
3929
|
function clsx() {
|
|
4125
|
-
for (var e2, t2, f = 0, n2 = "", o2 = arguments.length; f < o2; f++)
|
|
4126
|
-
(e2 = arguments[f]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
3930
|
+
for (var e2, t2, f = 0, n2 = "", o2 = arguments.length; f < o2; f++) (e2 = arguments[f]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
4127
3931
|
return n2;
|
|
4128
3932
|
}
|
|
4129
3933
|
var init_clsx = __esm({
|
|
@@ -6740,8 +6544,7 @@ var init_dist13 = __esm({
|
|
|
6740
6544
|
createPresence = (props) => {
|
|
6741
6545
|
const refStyles = createMemo(() => {
|
|
6742
6546
|
const element = access2(props.element);
|
|
6743
|
-
if (!element)
|
|
6744
|
-
return;
|
|
6547
|
+
if (!element) return;
|
|
6745
6548
|
return getComputedStyle(element);
|
|
6746
6549
|
});
|
|
6747
6550
|
const getAnimationName = () => {
|
|
@@ -6752,8 +6555,7 @@ var init_dist13 = __esm({
|
|
|
6752
6555
|
createEffect((prevShow) => {
|
|
6753
6556
|
const show = access2(props.show);
|
|
6754
6557
|
untrack(() => {
|
|
6755
|
-
if (prevShow === show)
|
|
6756
|
-
return show;
|
|
6558
|
+
if (prevShow === show) return show;
|
|
6757
6559
|
const prevAnimationName = animationName;
|
|
6758
6560
|
const currentAnimationName = getAnimationName();
|
|
6759
6561
|
if (show) {
|
|
@@ -6773,8 +6575,7 @@ var init_dist13 = __esm({
|
|
|
6773
6575
|
});
|
|
6774
6576
|
createEffect(() => {
|
|
6775
6577
|
const element = access2(props.element);
|
|
6776
|
-
if (!element)
|
|
6777
|
-
return;
|
|
6578
|
+
if (!element) return;
|
|
6778
6579
|
const handleAnimationStart = (event) => {
|
|
6779
6580
|
if (event.target === element) {
|
|
6780
6581
|
animationName = getAnimationName();
|
|
@@ -7029,8 +6830,7 @@ function getSideList(side, isStart, rtl) {
|
|
|
7029
6830
|
switch (side) {
|
|
7030
6831
|
case "top":
|
|
7031
6832
|
case "bottom":
|
|
7032
|
-
if (rtl)
|
|
7033
|
-
return isStart ? rl : lr;
|
|
6833
|
+
if (rtl) return isStart ? rl : lr;
|
|
7034
6834
|
return isStart ? lr : rl;
|
|
7035
6835
|
case "left":
|
|
7036
6836
|
case "right":
|
|
@@ -7823,8 +7623,7 @@ function getContainingBlock(element) {
|
|
|
7823
7623
|
return null;
|
|
7824
7624
|
}
|
|
7825
7625
|
function isWebKit() {
|
|
7826
|
-
if (typeof CSS === "undefined" || !CSS.supports)
|
|
7827
|
-
return false;
|
|
7626
|
+
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
7828
7627
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
7829
7628
|
}
|
|
7830
7629
|
function isLastTraversableNode(node) {
|
|
@@ -9998,8 +9797,7 @@ var init_HD4B7J7A = __esm({
|
|
|
9998
9797
|
}
|
|
9999
9798
|
onCleanup(() => {
|
|
10000
9799
|
const activeStyle2 = activeStyles.get(props.key);
|
|
10001
|
-
if (!activeStyle2)
|
|
10002
|
-
return;
|
|
9800
|
+
if (!activeStyle2) return;
|
|
10003
9801
|
if (activeStyle2.activeCount !== 1) {
|
|
10004
9802
|
activeStyle2.activeCount--;
|
|
10005
9803
|
return;
|
|
@@ -10102,8 +9900,7 @@ var init_dist14 = __esm({
|
|
|
10102
9900
|
let currentTouchStartAxis = null;
|
|
10103
9901
|
let currentTouchStartDelta = null;
|
|
10104
9902
|
createEffect(() => {
|
|
10105
|
-
if (!access2(defaultedProps.enabled))
|
|
10106
|
-
return;
|
|
9903
|
+
if (!access2(defaultedProps.enabled)) return;
|
|
10107
9904
|
setPreventScrollStack((stack) => [...stack, preventScrollId]);
|
|
10108
9905
|
onCleanup(() => {
|
|
10109
9906
|
setPreventScrollStack(
|
|
@@ -10154,8 +9951,7 @@ var init_dist14 = __esm({
|
|
|
10154
9951
|
}
|
|
10155
9952
|
});
|
|
10156
9953
|
createEffect(() => {
|
|
10157
|
-
if (!isActive(preventScrollId) || !access2(defaultedProps.enabled))
|
|
10158
|
-
return;
|
|
9954
|
+
if (!isActive(preventScrollId) || !access2(defaultedProps.enabled)) return;
|
|
10159
9955
|
document.addEventListener("wheel", maybePreventWheel, {
|
|
10160
9956
|
passive: false
|
|
10161
9957
|
});
|
|
@@ -10250,12 +10046,10 @@ var init_dist14 = __esm({
|
|
|
10250
10046
|
return true;
|
|
10251
10047
|
};
|
|
10252
10048
|
contains2 = (wrapper, target) => {
|
|
10253
|
-
if (wrapper.contains(target))
|
|
10254
|
-
return true;
|
|
10049
|
+
if (wrapper.contains(target)) return true;
|
|
10255
10050
|
let currentElement = target;
|
|
10256
10051
|
while (currentElement) {
|
|
10257
|
-
if (currentElement === wrapper)
|
|
10258
|
-
return true;
|
|
10052
|
+
if (currentElement === wrapper) return true;
|
|
10259
10053
|
currentElement = currentElement._$host ?? currentElement.parentElement;
|
|
10260
10054
|
}
|
|
10261
10055
|
return false;
|
|
@@ -13330,8 +13124,7 @@ var init_Devtools = __esm({
|
|
|
13330
13124
|
createEffect(() => {
|
|
13331
13125
|
const win = pip().pipWindow;
|
|
13332
13126
|
const resizeCB = () => {
|
|
13333
|
-
if (!win)
|
|
13334
|
-
return;
|
|
13127
|
+
if (!win) return;
|
|
13335
13128
|
setPanelWidth(win.innerWidth);
|
|
13336
13129
|
};
|
|
13337
13130
|
if (win) {
|
|
@@ -13419,8 +13212,7 @@ var init_Devtools = __esm({
|
|
|
13419
13212
|
const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
|
|
13420
13213
|
const handleDragStart = (event) => {
|
|
13421
13214
|
const panelElement = event.currentTarget.parentElement;
|
|
13422
|
-
if (!panelElement)
|
|
13423
|
-
return;
|
|
13215
|
+
if (!panelElement) return;
|
|
13424
13216
|
setIsResizing(true);
|
|
13425
13217
|
const {
|
|
13426
13218
|
height,
|
|
@@ -13476,8 +13268,7 @@ var init_Devtools = __esm({
|
|
|
13476
13268
|
});
|
|
13477
13269
|
createEffect(() => {
|
|
13478
13270
|
const rootContainer = panelRef.parentElement?.parentElement?.parentElement;
|
|
13479
|
-
if (!rootContainer)
|
|
13480
|
-
return;
|
|
13271
|
+
if (!rootContainer) return;
|
|
13481
13272
|
const currentPosition = props.localStore.position || POSITION;
|
|
13482
13273
|
const styleProp = getSidedProp("padding", currentPosition);
|
|
13483
13274
|
const isVertical = props.localStore.position === "left" || props.localStore.position === "right";
|
|
@@ -14160,15 +13951,13 @@ var init_Devtools = __esm({
|
|
|
14160
13951
|
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
14161
13952
|
const mutations = mutationCache().getAll();
|
|
14162
13953
|
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
14163
|
-
if (!mutation)
|
|
14164
|
-
return false;
|
|
13954
|
+
if (!mutation) return false;
|
|
14165
13955
|
return mutation.state.isPaused;
|
|
14166
13956
|
});
|
|
14167
13957
|
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
14168
13958
|
const mutations = mutationCache().getAll();
|
|
14169
13959
|
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
14170
|
-
if (!mutation)
|
|
14171
|
-
return "idle";
|
|
13960
|
+
if (!mutation) return "idle";
|
|
14172
13961
|
return mutation.state.status;
|
|
14173
13962
|
});
|
|
14174
13963
|
const color = createMemo(() => getMutationStatusColor({
|
|
@@ -14489,14 +14278,12 @@ var init_Devtools = __esm({
|
|
|
14489
14278
|
}, false);
|
|
14490
14279
|
const statusLabel = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
14491
14280
|
const query = queryCache().getAll().find((q) => q.queryHash === selectedQueryHash());
|
|
14492
|
-
if (!query)
|
|
14493
|
-
return "inactive";
|
|
14281
|
+
if (!query) return "inactive";
|
|
14494
14282
|
return getQueryStatusLabel(query);
|
|
14495
14283
|
});
|
|
14496
14284
|
const queryStatus = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
14497
14285
|
const query = queryCache().getAll().find((q) => q.queryHash === selectedQueryHash());
|
|
14498
|
-
if (!query)
|
|
14499
|
-
return "pending";
|
|
14286
|
+
if (!query) return "pending";
|
|
14500
14287
|
return query.state.status;
|
|
14501
14288
|
});
|
|
14502
14289
|
const observerCount = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().find((query) => query.queryHash === selectedQueryHash())?.getObserversCount() ?? 0);
|
|
@@ -14576,8 +14363,7 @@ var init_Devtools = __esm({
|
|
|
14576
14363
|
restoreQueryAfterLoadingOrError();
|
|
14577
14364
|
} else {
|
|
14578
14365
|
const activeQueryVal = activeQuery();
|
|
14579
|
-
if (!activeQueryVal)
|
|
14580
|
-
return;
|
|
14366
|
+
if (!activeQueryVal) return;
|
|
14581
14367
|
const __previousQueryOptions = activeQueryVal.options;
|
|
14582
14368
|
activeQueryVal.fetch({
|
|
14583
14369
|
...__previousQueryOptions,
|
|
@@ -14843,15 +14629,13 @@ var init_Devtools = __esm({
|
|
|
14843
14629
|
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
14844
14630
|
const mutations = mutationCache().getAll();
|
|
14845
14631
|
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
14846
|
-
if (!mutation)
|
|
14847
|
-
return false;
|
|
14632
|
+
if (!mutation) return false;
|
|
14848
14633
|
return mutation.state.isPaused;
|
|
14849
14634
|
});
|
|
14850
14635
|
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
14851
14636
|
const mutations = mutationCache().getAll();
|
|
14852
14637
|
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
14853
|
-
if (!mutation)
|
|
14854
|
-
return "idle";
|
|
14638
|
+
if (!mutation) return "idle";
|
|
14855
14639
|
return mutation.state.status;
|
|
14856
14640
|
});
|
|
14857
14641
|
const color = createMemo(() => getMutationStatusColor({
|
|
@@ -14973,8 +14757,7 @@ var init_Devtools = __esm({
|
|
|
14973
14757
|
const unsubscribe = queryCache().subscribe((q) => {
|
|
14974
14758
|
batch(() => {
|
|
14975
14759
|
for (const [callback, value] of queryCacheMap.entries()) {
|
|
14976
|
-
if (!value.shouldUpdate(q))
|
|
14977
|
-
continue;
|
|
14760
|
+
if (!value.shouldUpdate(q)) continue;
|
|
14978
14761
|
value.setter(callback(queryCache));
|
|
14979
14762
|
}
|
|
14980
14763
|
});
|
|
@@ -16094,8 +15877,7 @@ var init_DevtoolsComponent = __esm({
|
|
|
16094
15877
|
const colorScheme = getPreferredColorScheme();
|
|
16095
15878
|
const theme = createMemo(() => {
|
|
16096
15879
|
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
16097
|
-
if (preference !== "system")
|
|
16098
|
-
return preference;
|
|
15880
|
+
if (preference !== "system") return preference;
|
|
16099
15881
|
return colorScheme();
|
|
16100
15882
|
});
|
|
16101
15883
|
return createComponent(QueryDevtoolsContext.Provider, {
|
|
@@ -16145,8 +15927,7 @@ var init_DevtoolsPanelComponent = __esm({
|
|
|
16145
15927
|
const colorScheme = getPreferredColorScheme();
|
|
16146
15928
|
const theme = createMemo(() => {
|
|
16147
15929
|
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
16148
|
-
if (preference !== "system")
|
|
16149
|
-
return preference;
|
|
15930
|
+
if (preference !== "system") return preference;
|
|
16150
15931
|
return colorScheme();
|
|
16151
15932
|
});
|
|
16152
15933
|
return createComponent(QueryDevtoolsContext.Provider, {
|