@tanstack/query-devtools 5.0.0-alpha.87 → 5.0.0-alpha.89
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/Devtools/{QPWQM7BG.js → 4VMGNIF2.js} +8 -8
- package/build/Devtools/{RZF5MSB2.jsx → AZTKLNIS.jsx} +8 -8
- package/build/Devtools/{QBS7PB6D.js → MUGBGUTD.js} +8 -8
- package/build/Devtools/{OYHFZDAP.jsx → PI4AXB4J.jsx} +8 -8
- package/build/chunk/{LOJK4LQB.jsx → 2N7SLCC6.jsx} +93 -58
- package/build/chunk/{MZOCHHZD.js → C5UID3AG.js} +180 -103
- package/build/chunk/{DFC6JMPR.jsx → KC3COQO2.jsx} +93 -58
- package/build/chunk/{YHTPXJWR.js → QGJD3TIO.js} +180 -103
- package/build/dev.cjs +199 -122
- package/build/dev.js +2 -2
- package/build/dev.jsx +2 -2
- package/build/index.cjs +199 -122
- package/build/index.js +2 -2
- package/build/index.jsx +2 -2
- package/package.json +7 -9
package/build/index.cjs
CHANGED
|
@@ -10,7 +10,7 @@ var __export = (target, all) => {
|
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
// ../../node_modules/.pnpm/solid-js@1.
|
|
13
|
+
// ../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/dist/solid.js
|
|
14
14
|
function setHydrateContext(context) {
|
|
15
15
|
sharedConfig.context = context;
|
|
16
16
|
}
|
|
@@ -75,7 +75,8 @@ function createEffect(fn, value, options) {
|
|
|
75
75
|
const c = createComputation(fn, value, false, STALE), s = SuspenseContext && lookup(Owner, SuspenseContext.id);
|
|
76
76
|
if (s)
|
|
77
77
|
c.suspense = s;
|
|
78
|
-
|
|
78
|
+
if (!options || !options.render)
|
|
79
|
+
c.user = true;
|
|
79
80
|
Effects ? Effects.push(c) : updateComputation(c);
|
|
80
81
|
}
|
|
81
82
|
function createMemo(fn, value, options) {
|
|
@@ -119,7 +120,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
119
120
|
function loadEnd(p, v, error2, key) {
|
|
120
121
|
if (pr === p) {
|
|
121
122
|
pr = null;
|
|
122
|
-
resolved = true;
|
|
123
|
+
key !== void 0 && (resolved = true);
|
|
123
124
|
if ((p === initP || v === initP) && options.onHydrated)
|
|
124
125
|
queueMicrotask(() => options.onHydrated(key, {
|
|
125
126
|
value: v
|
|
@@ -141,7 +142,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
141
142
|
runUpdates(() => {
|
|
142
143
|
if (err === void 0)
|
|
143
144
|
setValue(() => v);
|
|
144
|
-
setState(err !== void 0 ? "errored" : "ready");
|
|
145
|
+
setState(err !== void 0 ? "errored" : resolved ? "ready" : "unresolved");
|
|
145
146
|
setError(err);
|
|
146
147
|
for (const c of contexts.keys())
|
|
147
148
|
c.decrement();
|
|
@@ -327,8 +328,8 @@ function children(fn) {
|
|
|
327
328
|
}
|
|
328
329
|
function readSignal() {
|
|
329
330
|
const runningTransition = Transition && Transition.running;
|
|
330
|
-
if (this.sources && (
|
|
331
|
-
if (
|
|
331
|
+
if (this.sources && (runningTransition ? this.tState : this.state)) {
|
|
332
|
+
if ((runningTransition ? this.tState : this.state) === STALE)
|
|
332
333
|
updateComputation(this);
|
|
333
334
|
else {
|
|
334
335
|
const updates = Updates;
|
|
@@ -378,7 +379,7 @@ function writeSignal(node2, value, isComp) {
|
|
|
378
379
|
const TransitionRunning = Transition && Transition.running;
|
|
379
380
|
if (TransitionRunning && Transition.disposed.has(o))
|
|
380
381
|
continue;
|
|
381
|
-
if (TransitionRunning
|
|
382
|
+
if (TransitionRunning ? !o.tState : !o.state) {
|
|
382
383
|
if (o.pure)
|
|
383
384
|
Updates.push(o);
|
|
384
385
|
else
|
|
@@ -386,10 +387,10 @@ function writeSignal(node2, value, isComp) {
|
|
|
386
387
|
if (o.observers)
|
|
387
388
|
markDownstream(o);
|
|
388
389
|
}
|
|
389
|
-
if (TransitionRunning)
|
|
390
|
-
o.tState = STALE;
|
|
391
|
-
else
|
|
390
|
+
if (!TransitionRunning)
|
|
392
391
|
o.state = STALE;
|
|
392
|
+
else
|
|
393
|
+
o.tState = STALE;
|
|
393
394
|
}
|
|
394
395
|
if (Updates.length > 1e6) {
|
|
395
396
|
Updates = [];
|
|
@@ -502,9 +503,9 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
502
503
|
}
|
|
503
504
|
function runTop(node2) {
|
|
504
505
|
const runningTransition = Transition && Transition.running;
|
|
505
|
-
if (
|
|
506
|
+
if ((runningTransition ? node2.tState : node2.state) === 0)
|
|
506
507
|
return;
|
|
507
|
-
if (
|
|
508
|
+
if ((runningTransition ? node2.tState : node2.state) === PENDING)
|
|
508
509
|
return lookUpstream(node2);
|
|
509
510
|
if (node2.suspense && untrack(node2.suspense.inFallback))
|
|
510
511
|
return node2.suspense.effects.push(node2);
|
|
@@ -512,7 +513,7 @@ function runTop(node2) {
|
|
|
512
513
|
while ((node2 = node2.owner) && (!node2.updatedAt || node2.updatedAt < ExecCount)) {
|
|
513
514
|
if (runningTransition && Transition.disposed.has(node2))
|
|
514
515
|
return;
|
|
515
|
-
if (
|
|
516
|
+
if (runningTransition ? node2.tState : node2.state)
|
|
516
517
|
ancestors.push(node2);
|
|
517
518
|
}
|
|
518
519
|
for (let i = ancestors.length - 1; i >= 0; i--) {
|
|
@@ -524,9 +525,9 @@ function runTop(node2) {
|
|
|
524
525
|
return;
|
|
525
526
|
}
|
|
526
527
|
}
|
|
527
|
-
if (
|
|
528
|
+
if ((runningTransition ? node2.tState : node2.state) === STALE) {
|
|
528
529
|
updateComputation(node2);
|
|
529
|
-
} else if (
|
|
530
|
+
} else if ((runningTransition ? node2.tState : node2.state) === PENDING) {
|
|
530
531
|
const updates = Updates;
|
|
531
532
|
Updates = null;
|
|
532
533
|
runUpdates(() => lookUpstream(node2, ancestors[0]), false);
|
|
@@ -640,8 +641,18 @@ function runUserEffects(queue) {
|
|
|
640
641
|
else
|
|
641
642
|
queue[userLength++] = e;
|
|
642
643
|
}
|
|
643
|
-
if (sharedConfig.context)
|
|
644
|
+
if (sharedConfig.context) {
|
|
645
|
+
if (sharedConfig.count) {
|
|
646
|
+
sharedConfig.effects || (sharedConfig.effects = []);
|
|
647
|
+
sharedConfig.effects.push(...queue.slice(0, userLength));
|
|
648
|
+
return;
|
|
649
|
+
} else if (sharedConfig.effects) {
|
|
650
|
+
queue = [...sharedConfig.effects, ...queue];
|
|
651
|
+
userLength += sharedConfig.effects.length;
|
|
652
|
+
delete sharedConfig.effects;
|
|
653
|
+
}
|
|
644
654
|
setHydrateContext();
|
|
655
|
+
}
|
|
645
656
|
for (i = 0; i < userLength; i++)
|
|
646
657
|
runTop(queue[i]);
|
|
647
658
|
}
|
|
@@ -654,10 +665,11 @@ function lookUpstream(node2, ignore) {
|
|
|
654
665
|
for (let i = 0; i < node2.sources.length; i += 1) {
|
|
655
666
|
const source = node2.sources[i];
|
|
656
667
|
if (source.sources) {
|
|
657
|
-
|
|
668
|
+
const state = runningTransition ? source.tState : source.state;
|
|
669
|
+
if (state === STALE) {
|
|
658
670
|
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
659
671
|
runTop(source);
|
|
660
|
-
} else if (
|
|
672
|
+
} else if (state === PENDING)
|
|
661
673
|
lookUpstream(source, ignore);
|
|
662
674
|
}
|
|
663
675
|
}
|
|
@@ -666,7 +678,7 @@ function markDownstream(node2) {
|
|
|
666
678
|
const runningTransition = Transition && Transition.running;
|
|
667
679
|
for (let i = 0; i < node2.observers.length; i += 1) {
|
|
668
680
|
const o = node2.observers[i];
|
|
669
|
-
if (
|
|
681
|
+
if (runningTransition ? !o.tState : !o.state) {
|
|
670
682
|
if (runningTransition)
|
|
671
683
|
o.tState = PENDING;
|
|
672
684
|
else
|
|
@@ -696,18 +708,18 @@ function cleanNode(node2) {
|
|
|
696
708
|
}
|
|
697
709
|
if (Transition && Transition.running && node2.pure) {
|
|
698
710
|
if (node2.tOwned) {
|
|
699
|
-
for (i =
|
|
711
|
+
for (i = node2.tOwned.length - 1; i >= 0; i--)
|
|
700
712
|
cleanNode(node2.tOwned[i]);
|
|
701
713
|
delete node2.tOwned;
|
|
702
714
|
}
|
|
703
715
|
reset(node2, true);
|
|
704
716
|
} else if (node2.owned) {
|
|
705
|
-
for (i =
|
|
717
|
+
for (i = node2.owned.length - 1; i >= 0; i--)
|
|
706
718
|
cleanNode(node2.owned[i]);
|
|
707
719
|
node2.owned = null;
|
|
708
720
|
}
|
|
709
721
|
if (node2.cleanups) {
|
|
710
|
-
for (i =
|
|
722
|
+
for (i = node2.cleanups.length - 1; i >= 0; i--)
|
|
711
723
|
node2.cleanups[i]();
|
|
712
724
|
node2.cleanups = null;
|
|
713
725
|
}
|
|
@@ -728,28 +740,34 @@ function reset(node2, top) {
|
|
|
728
740
|
}
|
|
729
741
|
}
|
|
730
742
|
function castError(err) {
|
|
731
|
-
if (err instanceof Error
|
|
743
|
+
if (err instanceof Error)
|
|
732
744
|
return err;
|
|
733
|
-
return new Error("Unknown error"
|
|
745
|
+
return new Error(typeof err === "string" ? err : "Unknown error", {
|
|
746
|
+
cause: err
|
|
747
|
+
});
|
|
734
748
|
}
|
|
735
|
-
function runErrors(fns,
|
|
736
|
-
|
|
737
|
-
f
|
|
749
|
+
function runErrors(err, fns, owner) {
|
|
750
|
+
try {
|
|
751
|
+
for (const f of fns)
|
|
752
|
+
f(err);
|
|
753
|
+
} catch (e) {
|
|
754
|
+
handleError(e, owner && owner.owner || null);
|
|
755
|
+
}
|
|
738
756
|
}
|
|
739
|
-
function handleError(err) {
|
|
740
|
-
|
|
741
|
-
const
|
|
757
|
+
function handleError(err, owner = Owner) {
|
|
758
|
+
const fns = ERROR && lookup(owner, ERROR);
|
|
759
|
+
const error = castError(err);
|
|
742
760
|
if (!fns)
|
|
743
|
-
throw
|
|
761
|
+
throw error;
|
|
744
762
|
if (Effects)
|
|
745
763
|
Effects.push({
|
|
746
764
|
fn() {
|
|
747
|
-
runErrors(fns,
|
|
765
|
+
runErrors(error, fns, owner);
|
|
748
766
|
},
|
|
749
767
|
state: STALE
|
|
750
768
|
});
|
|
751
769
|
else
|
|
752
|
-
runErrors(fns,
|
|
770
|
+
runErrors(error, fns, owner);
|
|
753
771
|
}
|
|
754
772
|
function lookup(owner, key) {
|
|
755
773
|
return owner ? owner.context && owner.context[key] !== void 0 ? owner.context[key] : lookup(owner.owner, key) : void 0;
|
|
@@ -946,6 +964,13 @@ function trueFn() {
|
|
|
946
964
|
function resolveSource(s) {
|
|
947
965
|
return !(s = typeof s === "function" ? s() : s) ? {} : s;
|
|
948
966
|
}
|
|
967
|
+
function resolveSources() {
|
|
968
|
+
for (let i = 0, length2 = this.length; i < length2; ++i) {
|
|
969
|
+
const v = this[i]();
|
|
970
|
+
if (v !== void 0)
|
|
971
|
+
return v;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
949
974
|
function mergeProps(...sources) {
|
|
950
975
|
let proxy = false;
|
|
951
976
|
for (let i = 0; i < sources.length; i++) {
|
|
@@ -978,22 +1003,41 @@ function mergeProps(...sources) {
|
|
|
978
1003
|
}, propTraps);
|
|
979
1004
|
}
|
|
980
1005
|
const target = {};
|
|
1006
|
+
const sourcesMap = {};
|
|
1007
|
+
const defined = /* @__PURE__ */ new Set();
|
|
981
1008
|
for (let i = sources.length - 1; i >= 0; i--) {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1009
|
+
const source = sources[i];
|
|
1010
|
+
if (!source)
|
|
1011
|
+
continue;
|
|
1012
|
+
const sourceKeys = Object.getOwnPropertyNames(source);
|
|
1013
|
+
for (let i2 = 0, length2 = sourceKeys.length; i2 < length2; i2++) {
|
|
1014
|
+
const key = sourceKeys[i2];
|
|
1015
|
+
if (key === "__proto__" || key === "constructor")
|
|
1016
|
+
continue;
|
|
1017
|
+
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
1018
|
+
if (!defined.has(key)) {
|
|
1019
|
+
if (desc.get) {
|
|
1020
|
+
defined.add(key);
|
|
1021
|
+
Object.defineProperty(target, key, {
|
|
1022
|
+
enumerable: true,
|
|
1023
|
+
configurable: true,
|
|
1024
|
+
get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
|
|
1025
|
+
});
|
|
1026
|
+
} else {
|
|
1027
|
+
if (desc.value !== void 0)
|
|
1028
|
+
defined.add(key);
|
|
1029
|
+
target[key] = desc.value;
|
|
1030
|
+
}
|
|
1031
|
+
} else {
|
|
1032
|
+
const sources2 = sourcesMap[key];
|
|
1033
|
+
if (sources2) {
|
|
1034
|
+
if (desc.get) {
|
|
1035
|
+
sources2.push(desc.get.bind(source));
|
|
1036
|
+
} else if (desc.value !== void 0) {
|
|
1037
|
+
sources2.push(() => desc.value);
|
|
995
1038
|
}
|
|
996
|
-
})
|
|
1039
|
+
} else if (target[key] === void 0)
|
|
1040
|
+
target[key] = desc.value;
|
|
997
1041
|
}
|
|
998
1042
|
}
|
|
999
1043
|
}
|
|
@@ -1006,8 +1050,11 @@ function lazy(fn) {
|
|
|
1006
1050
|
const ctx = sharedConfig.context;
|
|
1007
1051
|
if (ctx) {
|
|
1008
1052
|
const [s, set] = createSignal();
|
|
1053
|
+
sharedConfig.count || (sharedConfig.count = 0);
|
|
1054
|
+
sharedConfig.count++;
|
|
1009
1055
|
(p || (p = fn())).then((mod) => {
|
|
1010
1056
|
setHydrateContext(ctx);
|
|
1057
|
+
sharedConfig.count--;
|
|
1011
1058
|
set(() => mod.default);
|
|
1012
1059
|
setHydrateContext();
|
|
1013
1060
|
});
|
|
@@ -1045,26 +1092,27 @@ function Index(props) {
|
|
|
1045
1092
|
return createMemo(indexArray(() => props.each, props.children, fallback || void 0));
|
|
1046
1093
|
}
|
|
1047
1094
|
function Show(props) {
|
|
1048
|
-
let strictEqual = false;
|
|
1049
1095
|
const keyed = props.keyed;
|
|
1050
1096
|
const condition = createMemo(() => props.when, void 0, {
|
|
1051
|
-
equals: (a, b) =>
|
|
1097
|
+
equals: (a, b) => keyed ? a === b : !a === !b
|
|
1052
1098
|
});
|
|
1053
1099
|
return createMemo(() => {
|
|
1054
1100
|
const c = condition();
|
|
1055
1101
|
if (c) {
|
|
1056
1102
|
const child = props.children;
|
|
1057
1103
|
const fn = typeof child === "function" && child.length > 0;
|
|
1058
|
-
|
|
1059
|
-
|
|
1104
|
+
return fn ? untrack(() => child(keyed ? c : () => {
|
|
1105
|
+
if (!untrack(condition))
|
|
1106
|
+
throw narrowedError("Show");
|
|
1107
|
+
return props.when;
|
|
1108
|
+
})) : child;
|
|
1060
1109
|
}
|
|
1061
1110
|
return props.fallback;
|
|
1062
1111
|
}, void 0, void 0);
|
|
1063
1112
|
}
|
|
1064
1113
|
function Switch(props) {
|
|
1065
|
-
let strictEqual = false;
|
|
1066
1114
|
let keyed = false;
|
|
1067
|
-
const equals = (a, b) => a[0] === b[0] && (
|
|
1115
|
+
const equals = (a, b) => a[0] === b[0] && (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
1068
1116
|
const conditions = children(() => props.children), evalConditions = createMemo(() => {
|
|
1069
1117
|
let conds = conditions();
|
|
1070
1118
|
if (!Array.isArray(conds))
|
|
@@ -1086,17 +1134,23 @@ function Switch(props) {
|
|
|
1086
1134
|
return props.fallback;
|
|
1087
1135
|
const c = cond.children;
|
|
1088
1136
|
const fn = typeof c === "function" && c.length > 0;
|
|
1089
|
-
|
|
1090
|
-
|
|
1137
|
+
return fn ? untrack(() => c(keyed ? when : () => {
|
|
1138
|
+
if (untrack(evalConditions)[0] !== index)
|
|
1139
|
+
throw narrowedError("Match");
|
|
1140
|
+
return cond.when;
|
|
1141
|
+
})) : c;
|
|
1091
1142
|
}, void 0, void 0);
|
|
1092
1143
|
}
|
|
1093
1144
|
function Match(props) {
|
|
1094
1145
|
return props;
|
|
1095
1146
|
}
|
|
1096
|
-
var sharedConfig, equalFn, $PROXY, $TRACK, signalOptions, ERROR, runEffects, STALE, PENDING, UNOWNED, NO_INIT, Owner, Transition, Scheduler, ExternalSourceFactory, Listener, Updates, Effects, ExecCount, transPending, setTransPending, SuspenseContext, FALLBACK, hydrationEnabled, propTraps;
|
|
1147
|
+
var sharedConfig, equalFn, $PROXY, $TRACK, signalOptions, ERROR, runEffects, STALE, PENDING, UNOWNED, NO_INIT, Owner, Transition, Scheduler, ExternalSourceFactory, Listener, Updates, Effects, ExecCount, transPending, setTransPending, SuspenseContext, FALLBACK, hydrationEnabled, propTraps, narrowedError;
|
|
1097
1148
|
var init_solid = __esm({
|
|
1098
|
-
"../../node_modules/.pnpm/solid-js@1.
|
|
1099
|
-
sharedConfig = {
|
|
1149
|
+
"../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/dist/solid.js"() {
|
|
1150
|
+
sharedConfig = {
|
|
1151
|
+
context: void 0,
|
|
1152
|
+
registry: void 0
|
|
1153
|
+
};
|
|
1100
1154
|
equalFn = (a, b) => a === b;
|
|
1101
1155
|
$PROXY = Symbol("solid-proxy");
|
|
1102
1156
|
$TRACK = Symbol("solid-track");
|
|
@@ -1153,10 +1207,15 @@ var init_solid = __esm({
|
|
|
1153
1207
|
return _.keys();
|
|
1154
1208
|
}
|
|
1155
1209
|
};
|
|
1210
|
+
narrowedError = (name) => `Stale read from <${name}>.`;
|
|
1156
1211
|
}
|
|
1157
1212
|
});
|
|
1158
1213
|
|
|
1159
|
-
// ../../node_modules/.pnpm/solid-js@1.
|
|
1214
|
+
// ../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/web/dist/web.js
|
|
1215
|
+
function getPropAlias(prop, tagName) {
|
|
1216
|
+
const a = PropAliases[prop];
|
|
1217
|
+
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
1218
|
+
}
|
|
1160
1219
|
function reconcileArrays(parentNode, a, b) {
|
|
1161
1220
|
let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = a[aEnd - 1].nextSibling, map = null;
|
|
1162
1221
|
while (aStart < aEnd || bStart < bEnd) {
|
|
@@ -1224,18 +1283,16 @@ function render(code, element, init, options = {}) {
|
|
|
1224
1283
|
element.textContent = "";
|
|
1225
1284
|
};
|
|
1226
1285
|
}
|
|
1227
|
-
function template(html,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
node2 = node2.firstChild;
|
|
1238
|
-
return node2;
|
|
1286
|
+
function template(html, isCE, isSVG) {
|
|
1287
|
+
let node2;
|
|
1288
|
+
const create = () => {
|
|
1289
|
+
const t = document.createElement("template");
|
|
1290
|
+
t.innerHTML = html;
|
|
1291
|
+
return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
1292
|
+
};
|
|
1293
|
+
const fn = isCE ? () => untrack(() => document.importNode(node2 || (node2 = create()), true)) : () => (node2 || (node2 = create())).cloneNode(true);
|
|
1294
|
+
fn.cloneNode = fn;
|
|
1295
|
+
return fn;
|
|
1239
1296
|
}
|
|
1240
1297
|
function delegateEvents(eventNames, document2 = window.document) {
|
|
1241
1298
|
const e = document2[$$EVENTS] || (document2[$$EVENTS] = /* @__PURE__ */ new Set());
|
|
@@ -1367,7 +1424,7 @@ function toggleClassKey(node2, key, value) {
|
|
|
1367
1424
|
node2.classList.toggle(classNames[i], value);
|
|
1368
1425
|
}
|
|
1369
1426
|
function assignProp(node2, prop, value, prev2, isSVG, skipRef) {
|
|
1370
|
-
let isCE, isProp, isChildProp;
|
|
1427
|
+
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
1371
1428
|
if (prop === "style")
|
|
1372
1429
|
return style(node2, value, prev2);
|
|
1373
1430
|
if (prop === "classList")
|
|
@@ -1396,13 +1453,19 @@ function assignProp(node2, prop, value, prev2, isSVG, skipRef) {
|
|
|
1396
1453
|
addEventListener(node2, name, value, delegate);
|
|
1397
1454
|
delegate && delegateEvents([name]);
|
|
1398
1455
|
}
|
|
1399
|
-
} else if (
|
|
1456
|
+
} else if (prop.slice(0, 5) === "attr:") {
|
|
1457
|
+
setAttribute(node2, prop.slice(5), value);
|
|
1458
|
+
} else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node2.tagName)) || (isProp = Properties.has(prop))) || (isCE = node2.nodeName.includes("-"))) {
|
|
1459
|
+
if (forceProp) {
|
|
1460
|
+
prop = prop.slice(5);
|
|
1461
|
+
isProp = true;
|
|
1462
|
+
}
|
|
1400
1463
|
if (prop === "class" || prop === "className")
|
|
1401
1464
|
className(node2, value);
|
|
1402
1465
|
else if (isCE && !isProp && !isChildProp)
|
|
1403
1466
|
node2[toPropertyName(prop)] = value;
|
|
1404
1467
|
else
|
|
1405
|
-
node2[
|
|
1468
|
+
node2[propAlias || prop] = value;
|
|
1406
1469
|
} else {
|
|
1407
1470
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
1408
1471
|
if (ns)
|
|
@@ -1427,17 +1490,8 @@ function eventHandler(e) {
|
|
|
1427
1490
|
return node2 || document;
|
|
1428
1491
|
}
|
|
1429
1492
|
});
|
|
1430
|
-
if (sharedConfig.registry && !sharedConfig.done)
|
|
1431
|
-
sharedConfig.done = true;
|
|
1432
|
-
document.querySelectorAll("[id^=pl-]").forEach((elem) => {
|
|
1433
|
-
while (elem && elem.nodeType !== 8 && elem.nodeValue !== "pl-" + e) {
|
|
1434
|
-
let x = elem.nextSibling;
|
|
1435
|
-
elem.remove();
|
|
1436
|
-
elem = x;
|
|
1437
|
-
}
|
|
1438
|
-
elem && elem.remove();
|
|
1439
|
-
});
|
|
1440
|
-
}
|
|
1493
|
+
if (sharedConfig.registry && !sharedConfig.done)
|
|
1494
|
+
sharedConfig.done = _$HY.done = true;
|
|
1441
1495
|
while (node2) {
|
|
1442
1496
|
const handler = node2[key];
|
|
1443
1497
|
if (handler && !node2.disabled) {
|
|
@@ -1450,8 +1504,18 @@ function eventHandler(e) {
|
|
|
1450
1504
|
}
|
|
1451
1505
|
}
|
|
1452
1506
|
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
1453
|
-
if (sharedConfig.context
|
|
1454
|
-
current = [...parent.childNodes];
|
|
1507
|
+
if (sharedConfig.context) {
|
|
1508
|
+
!current && (current = [...parent.childNodes]);
|
|
1509
|
+
let cleaned = [];
|
|
1510
|
+
for (let i = 0; i < current.length; i++) {
|
|
1511
|
+
const node2 = current[i];
|
|
1512
|
+
if (node2.nodeType === 8 && node2.data.slice(0, 2) === "!$")
|
|
1513
|
+
node2.remove();
|
|
1514
|
+
else
|
|
1515
|
+
cleaned.push(node2);
|
|
1516
|
+
}
|
|
1517
|
+
current = cleaned;
|
|
1518
|
+
}
|
|
1455
1519
|
while (typeof current === "function")
|
|
1456
1520
|
current = current();
|
|
1457
1521
|
if (value === current)
|
|
@@ -1517,7 +1581,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1517
1581
|
appendNodes(parent, array);
|
|
1518
1582
|
}
|
|
1519
1583
|
current = array;
|
|
1520
|
-
} else if (value
|
|
1584
|
+
} else if (value.nodeType) {
|
|
1521
1585
|
if (sharedConfig.context && value.parentNode)
|
|
1522
1586
|
return current = multi ? [value] : value;
|
|
1523
1587
|
if (Array.isArray(current)) {
|
|
@@ -1536,14 +1600,14 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1536
1600
|
function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
1537
1601
|
let dynamic = false;
|
|
1538
1602
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
1539
|
-
let item = array[i], prev2 = current && current[i];
|
|
1540
|
-
if (item
|
|
1541
|
-
normalized.push(item);
|
|
1542
|
-
} else if (item == null || item === true || item === false)
|
|
1603
|
+
let item = array[i], prev2 = current && current[i], t;
|
|
1604
|
+
if (item == null || item === true || item === false)
|
|
1543
1605
|
;
|
|
1544
|
-
else if (
|
|
1606
|
+
else if ((t = typeof item) === "object" && item.nodeType) {
|
|
1607
|
+
normalized.push(item);
|
|
1608
|
+
} else if (Array.isArray(item)) {
|
|
1545
1609
|
dynamic = normalizeIncomingArray(normalized, item, prev2) || dynamic;
|
|
1546
|
-
} else if (
|
|
1610
|
+
} else if (t === "function") {
|
|
1547
1611
|
if (unwrap) {
|
|
1548
1612
|
while (typeof item === "function")
|
|
1549
1613
|
item = item();
|
|
@@ -1554,13 +1618,9 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
1554
1618
|
}
|
|
1555
1619
|
} else {
|
|
1556
1620
|
const value = String(item);
|
|
1557
|
-
if (
|
|
1558
|
-
if (prev2 && prev2.nodeType === 8)
|
|
1559
|
-
normalized.push(prev2);
|
|
1560
|
-
} else if (prev2 && prev2.nodeType === 3) {
|
|
1561
|
-
prev2.data = value;
|
|
1621
|
+
if (prev2 && prev2.nodeType === 3 && prev2.data === value)
|
|
1562
1622
|
normalized.push(prev2);
|
|
1563
|
-
|
|
1623
|
+
else
|
|
1564
1624
|
normalized.push(document.createTextNode(value));
|
|
1565
1625
|
}
|
|
1566
1626
|
}
|
|
@@ -1593,7 +1653,7 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
1593
1653
|
}
|
|
1594
1654
|
var booleans, Properties, ChildProperties, Aliases, PropAliases, DelegatedEvents, SVGNamespace, $$EVENTS, isServer;
|
|
1595
1655
|
var init_web = __esm({
|
|
1596
|
-
"../../node_modules/.pnpm/solid-js@1.
|
|
1656
|
+
"../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/web/dist/web.js"() {
|
|
1597
1657
|
init_solid();
|
|
1598
1658
|
init_solid();
|
|
1599
1659
|
booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
@@ -1605,11 +1665,28 @@ var init_web = __esm({
|
|
|
1605
1665
|
});
|
|
1606
1666
|
PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
1607
1667
|
class: "className",
|
|
1608
|
-
formnovalidate:
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1668
|
+
formnovalidate: {
|
|
1669
|
+
$: "formNoValidate",
|
|
1670
|
+
BUTTON: 1,
|
|
1671
|
+
INPUT: 1
|
|
1672
|
+
},
|
|
1673
|
+
ismap: {
|
|
1674
|
+
$: "isMap",
|
|
1675
|
+
IMG: 1
|
|
1676
|
+
},
|
|
1677
|
+
nomodule: {
|
|
1678
|
+
$: "noModule",
|
|
1679
|
+
SCRIPT: 1
|
|
1680
|
+
},
|
|
1681
|
+
playsinline: {
|
|
1682
|
+
$: "playsInline",
|
|
1683
|
+
VIDEO: 1
|
|
1684
|
+
},
|
|
1685
|
+
readonly: {
|
|
1686
|
+
$: "readOnly",
|
|
1687
|
+
INPUT: 1,
|
|
1688
|
+
TEXTAREA: 1
|
|
1689
|
+
}
|
|
1613
1690
|
});
|
|
1614
1691
|
DelegatedEvents = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
1615
1692
|
SVGNamespace = {
|
|
@@ -3502,7 +3579,7 @@ var init_emotion_css_esm = __esm({
|
|
|
3502
3579
|
}
|
|
3503
3580
|
});
|
|
3504
3581
|
|
|
3505
|
-
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.
|
|
3582
|
+
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
3506
3583
|
function createListTransition(source, options) {
|
|
3507
3584
|
const initSource = untrack(source);
|
|
3508
3585
|
if (isServer) {
|
|
@@ -3569,7 +3646,7 @@ function createListTransition(source, options) {
|
|
|
3569
3646
|
}
|
|
3570
3647
|
var noop;
|
|
3571
3648
|
var init_dist = __esm({
|
|
3572
|
-
"../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.
|
|
3649
|
+
"../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js"() {
|
|
3573
3650
|
init_solid();
|
|
3574
3651
|
init_web();
|
|
3575
3652
|
noop = () => {
|
|
@@ -3577,7 +3654,7 @@ var init_dist = __esm({
|
|
|
3577
3654
|
}
|
|
3578
3655
|
});
|
|
3579
3656
|
|
|
3580
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.
|
|
3657
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
|
|
3581
3658
|
function handleDiffArray(current, prev2, handleAdded, handleRemoved) {
|
|
3582
3659
|
const currLength = current.length;
|
|
3583
3660
|
const prevLength = prev2.length;
|
|
@@ -3611,7 +3688,7 @@ function handleDiffArray(current, prev2, handleAdded, handleRemoved) {
|
|
|
3611
3688
|
}
|
|
3612
3689
|
var noop2, isNonNullable, filterNonNullable, access, asArray;
|
|
3613
3690
|
var init_APG4HSEJ = __esm({
|
|
3614
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.
|
|
3691
|
+
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js"() {
|
|
3615
3692
|
noop2 = () => void 0;
|
|
3616
3693
|
isNonNullable = (i) => i != null;
|
|
3617
3694
|
filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
@@ -3620,14 +3697,14 @@ var init_APG4HSEJ = __esm({
|
|
|
3620
3697
|
}
|
|
3621
3698
|
});
|
|
3622
3699
|
|
|
3623
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.
|
|
3700
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/index/index.js
|
|
3624
3701
|
var init_index = __esm({
|
|
3625
|
-
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.
|
|
3702
|
+
"../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/index/index.js"() {
|
|
3626
3703
|
init_APG4HSEJ();
|
|
3627
3704
|
}
|
|
3628
3705
|
});
|
|
3629
3706
|
|
|
3630
|
-
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.
|
|
3707
|
+
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js
|
|
3631
3708
|
function getResolvedElements(value, predicate) {
|
|
3632
3709
|
if (predicate(value))
|
|
3633
3710
|
return value;
|
|
@@ -3657,14 +3734,14 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
|
|
|
3657
3734
|
}
|
|
3658
3735
|
var defaultElementPredicate;
|
|
3659
3736
|
var init_dist2 = __esm({
|
|
3660
|
-
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.
|
|
3737
|
+
"../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js"() {
|
|
3661
3738
|
init_solid();
|
|
3662
3739
|
init_web();
|
|
3663
3740
|
defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
|
|
3664
3741
|
}
|
|
3665
3742
|
});
|
|
3666
3743
|
|
|
3667
|
-
// ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.
|
|
3744
|
+
// ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.7.8/node_modules/solid-transition-group/dist/index.js
|
|
3668
3745
|
function createClassnames(props) {
|
|
3669
3746
|
return createMemo(() => {
|
|
3670
3747
|
const name = props.name || "s";
|
|
@@ -3740,7 +3817,7 @@ function exitTransition(classnames3, events, el, done) {
|
|
|
3740
3817
|
}
|
|
3741
3818
|
var TransitionGroup;
|
|
3742
3819
|
var init_dist3 = __esm({
|
|
3743
|
-
"../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.
|
|
3820
|
+
"../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.7.8/node_modules/solid-transition-group/dist/index.js"() {
|
|
3744
3821
|
init_solid();
|
|
3745
3822
|
init_dist();
|
|
3746
3823
|
init_dist2();
|
|
@@ -3794,7 +3871,7 @@ var init_dist3 = __esm({
|
|
|
3794
3871
|
}
|
|
3795
3872
|
});
|
|
3796
3873
|
|
|
3797
|
-
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.
|
|
3874
|
+
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
|
|
3798
3875
|
function dispose2(list) {
|
|
3799
3876
|
for (const o of list)
|
|
3800
3877
|
o.dispose();
|
|
@@ -3892,14 +3969,14 @@ function Key(props) {
|
|
|
3892
3969
|
}
|
|
3893
3970
|
var FALLBACK2;
|
|
3894
3971
|
var init_dist4 = __esm({
|
|
3895
|
-
"../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.
|
|
3972
|
+
"../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js"() {
|
|
3896
3973
|
init_solid();
|
|
3897
3974
|
init_web();
|
|
3898
3975
|
FALLBACK2 = Symbol("fallback");
|
|
3899
3976
|
}
|
|
3900
3977
|
});
|
|
3901
3978
|
|
|
3902
|
-
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.
|
|
3979
|
+
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.7.8/node_modules/@solid-primitives/storage/dist/index.js
|
|
3903
3980
|
function createStorage(props) {
|
|
3904
3981
|
const [error, setError] = createSignal();
|
|
3905
3982
|
const handleError2 = props?.throw ? (err, fallback) => {
|
|
@@ -4044,7 +4121,7 @@ function createStorage(props) {
|
|
|
4044
4121
|
}
|
|
4045
4122
|
var createLocalStorage, addClearMethod, serializeCookieOptions, cookieStorage;
|
|
4046
4123
|
var init_dist5 = __esm({
|
|
4047
|
-
"../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.
|
|
4124
|
+
"../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.7.8/node_modules/@solid-primitives/storage/dist/index.js"() {
|
|
4048
4125
|
init_solid();
|
|
4049
4126
|
createLocalStorage = createStorage;
|
|
4050
4127
|
addClearMethod = (storage) => {
|
|
@@ -4124,7 +4201,7 @@ var init_dist5 = __esm({
|
|
|
4124
4201
|
}
|
|
4125
4202
|
});
|
|
4126
4203
|
|
|
4127
|
-
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.
|
|
4204
|
+
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.7.8/node_modules/@solid-primitives/resize-observer/dist/index.js
|
|
4128
4205
|
function makeResizeObserver(callback, options) {
|
|
4129
4206
|
if (isServer) {
|
|
4130
4207
|
return { observe: noop2, unobserve: noop2 };
|
|
@@ -4155,7 +4232,7 @@ function createResizeObserver(targets, onResize, options) {
|
|
|
4155
4232
|
}, []);
|
|
4156
4233
|
}
|
|
4157
4234
|
var init_dist6 = __esm({
|
|
4158
|
-
"../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.
|
|
4235
|
+
"../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.7.8/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
|
|
4159
4236
|
init_index();
|
|
4160
4237
|
init_solid();
|
|
4161
4238
|
init_web();
|