@tanstack/query-devtools 5.18.1 → 5.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Devtools/{GGXFRC53.jsx → 2TZ2XDYA.jsx} +28 -26
- package/build/Devtools/{IEC7B7YJ.js → 6ZYZQAZS.js} +28 -26
- package/build/Devtools/{PFRKCKUQ.jsx → FWYJEP5C.jsx} +28 -26
- package/build/Devtools/{F44ZTS6H.js → ZIZ6ACOL.js} +28 -26
- package/build/chunk/{ITOD2VZH.jsx → AZNCIVVX.jsx} +179 -299
- package/build/chunk/{UF7WX6DB.js → O2PITFF6.js} +179 -299
- package/build/chunk/{QPKVZYIY.jsx → PQZZ5Z2E.jsx} +179 -299
- package/build/chunk/{6MVECHXQ.js → XKKA3NOX.js} +179 -299
- package/build/dev.cjs +224 -342
- package/build/dev.js +3 -3
- package/build/dev.jsx +2 -2
- package/build/index.cjs +224 -342
- package/build/index.js +3 -3
- package/build/index.jsx +2 -2
- package/package.json +5 -5
- package/src/Devtools.tsx +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/solid-js@1.8.
|
|
1
|
+
// ../../node_modules/.pnpm/solid-js@1.8.14/node_modules/solid-js/dist/solid.js
|
|
2
2
|
var sharedConfig = {
|
|
3
3
|
context: void 0,
|
|
4
4
|
registry: void 0
|
|
@@ -33,7 +33,7 @@ var NO_INIT = {};
|
|
|
33
33
|
var Owner = null;
|
|
34
34
|
var Transition = null;
|
|
35
35
|
var Scheduler = null;
|
|
36
|
-
var
|
|
36
|
+
var ExternalSourceConfig = null;
|
|
37
37
|
var Listener = null;
|
|
38
38
|
var Updates = null;
|
|
39
39
|
var Effects = null;
|
|
@@ -142,11 +142,9 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
142
142
|
pr = null;
|
|
143
143
|
key !== void 0 && (resolved = true);
|
|
144
144
|
if ((p === initP || v === initP) && options.onHydrated)
|
|
145
|
-
queueMicrotask(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
})
|
|
149
|
-
);
|
|
145
|
+
queueMicrotask(() => options.onHydrated(key, {
|
|
146
|
+
value: v
|
|
147
|
+
}));
|
|
150
148
|
initP = NO_INIT;
|
|
151
149
|
if (Transition && p && loadedUnderTransition) {
|
|
152
150
|
Transition.promises.delete(p);
|
|
@@ -202,12 +200,10 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
202
200
|
}
|
|
203
201
|
if (Transition && pr)
|
|
204
202
|
Transition.promises.delete(pr);
|
|
205
|
-
const p = initP !== NO_INIT ? initP : untrack(
|
|
206
|
-
()
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
})
|
|
210
|
-
);
|
|
203
|
+
const p = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
|
|
204
|
+
value: value(),
|
|
205
|
+
refetching
|
|
206
|
+
}));
|
|
211
207
|
if (!isPromise(p)) {
|
|
212
208
|
loadEnd(pr, p, void 0, lookup);
|
|
213
209
|
return p;
|
|
@@ -226,10 +222,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
226
222
|
setState(resolved ? "refreshing" : "pending");
|
|
227
223
|
trigger();
|
|
228
224
|
}, false);
|
|
229
|
-
return p.then(
|
|
230
|
-
(v) => loadEnd(p, v, void 0, lookup),
|
|
231
|
-
(e) => loadEnd(p, void 0, castError(e), lookup)
|
|
232
|
-
);
|
|
225
|
+
return p.then((v) => loadEnd(p, v, void 0, lookup), (e) => loadEnd(p, void 0, castError(e), lookup));
|
|
233
226
|
}
|
|
234
227
|
Object.defineProperties(read, {
|
|
235
228
|
state: {
|
|
@@ -259,23 +252,22 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
259
252
|
createComputed(() => load(false));
|
|
260
253
|
else
|
|
261
254
|
load(false);
|
|
262
|
-
return [
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
mutate: setValue
|
|
267
|
-
}
|
|
268
|
-
];
|
|
255
|
+
return [read, {
|
|
256
|
+
refetch: load,
|
|
257
|
+
mutate: setValue
|
|
258
|
+
}];
|
|
269
259
|
}
|
|
270
260
|
function batch(fn) {
|
|
271
261
|
return runUpdates(fn, false);
|
|
272
262
|
}
|
|
273
263
|
function untrack(fn) {
|
|
274
|
-
if (Listener === null)
|
|
264
|
+
if (!ExternalSourceConfig && Listener === null)
|
|
275
265
|
return fn();
|
|
276
266
|
const listener = Listener;
|
|
277
267
|
Listener = null;
|
|
278
268
|
try {
|
|
269
|
+
if (ExternalSourceConfig)
|
|
270
|
+
return ExternalSourceConfig.untrack(fn);
|
|
279
271
|
return fn();
|
|
280
272
|
} finally {
|
|
281
273
|
Listener = listener;
|
|
@@ -469,11 +461,7 @@ function updateComputation(node) {
|
|
|
469
461
|
return;
|
|
470
462
|
cleanNode(node);
|
|
471
463
|
const time = ExecCount;
|
|
472
|
-
runComputation(
|
|
473
|
-
node,
|
|
474
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
475
|
-
time
|
|
476
|
-
);
|
|
464
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
477
465
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
478
466
|
queueMicrotask(() => {
|
|
479
467
|
runUpdates(() => {
|
|
@@ -553,14 +541,14 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
553
541
|
Owner.owned.push(c);
|
|
554
542
|
}
|
|
555
543
|
}
|
|
556
|
-
if (
|
|
544
|
+
if (ExternalSourceConfig && c.fn) {
|
|
557
545
|
const [track, trigger] = createSignal(void 0, {
|
|
558
546
|
equals: false
|
|
559
547
|
});
|
|
560
|
-
const ordinary =
|
|
548
|
+
const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
|
|
561
549
|
onCleanup(() => ordinary.dispose());
|
|
562
550
|
const triggerInTransition = () => startTransition(trigger).then(() => inTransition.dispose());
|
|
563
|
-
const inTransition =
|
|
551
|
+
const inTransition = ExternalSourceConfig.factory(c.fn, triggerInTransition);
|
|
564
552
|
c.fn = (x) => {
|
|
565
553
|
track();
|
|
566
554
|
return Transition && Transition.running ? inTransition.track(x) : ordinary.track(x);
|
|
@@ -851,16 +839,13 @@ function resolveChildren(children2) {
|
|
|
851
839
|
function createProvider(id, options) {
|
|
852
840
|
return function provider(props) {
|
|
853
841
|
let res;
|
|
854
|
-
createRenderEffect(
|
|
855
|
-
|
|
856
|
-
Owner.context
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
}),
|
|
862
|
-
void 0
|
|
863
|
-
);
|
|
842
|
+
createRenderEffect(() => res = untrack(() => {
|
|
843
|
+
Owner.context = {
|
|
844
|
+
...Owner.context,
|
|
845
|
+
[id]: props.value
|
|
846
|
+
};
|
|
847
|
+
return children(() => props.children);
|
|
848
|
+
}), void 0);
|
|
864
849
|
return res;
|
|
865
850
|
};
|
|
866
851
|
}
|
|
@@ -1076,108 +1061,96 @@ function mergeProps(...sources) {
|
|
|
1076
1061
|
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
1077
1062
|
}
|
|
1078
1063
|
if (proxy) {
|
|
1079
|
-
return new Proxy(
|
|
1080
|
-
{
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
return true;
|
|
1092
|
-
}
|
|
1093
|
-
return false;
|
|
1094
|
-
},
|
|
1095
|
-
keys() {
|
|
1096
|
-
const keys = [];
|
|
1097
|
-
for (let i = 0; i < sources.length; i++)
|
|
1098
|
-
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
1099
|
-
return [...new Set(keys)];
|
|
1064
|
+
return new Proxy({
|
|
1065
|
+
get(property) {
|
|
1066
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1067
|
+
const v = resolveSource(sources[i])[property];
|
|
1068
|
+
if (v !== void 0)
|
|
1069
|
+
return v;
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
has(property) {
|
|
1073
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1074
|
+
if (property in resolveSource(sources[i]))
|
|
1075
|
+
return true;
|
|
1100
1076
|
}
|
|
1077
|
+
return false;
|
|
1101
1078
|
},
|
|
1102
|
-
|
|
1103
|
-
|
|
1079
|
+
keys() {
|
|
1080
|
+
const keys = [];
|
|
1081
|
+
for (let i = 0; i < sources.length; i++)
|
|
1082
|
+
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
1083
|
+
return [...new Set(keys)];
|
|
1084
|
+
}
|
|
1085
|
+
}, propTraps);
|
|
1104
1086
|
}
|
|
1105
|
-
const target = {};
|
|
1106
1087
|
const sourcesMap = {};
|
|
1107
|
-
const defined = /* @__PURE__ */
|
|
1088
|
+
const defined = /* @__PURE__ */ Object.create(null);
|
|
1108
1089
|
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1109
1090
|
const source = sources[i];
|
|
1110
1091
|
if (!source)
|
|
1111
1092
|
continue;
|
|
1112
1093
|
const sourceKeys = Object.getOwnPropertyNames(source);
|
|
1113
|
-
for (let i2 =
|
|
1094
|
+
for (let i2 = sourceKeys.length - 1; i2 >= 0; i2--) {
|
|
1114
1095
|
const key = sourceKeys[i2];
|
|
1115
1096
|
if (key === "__proto__" || key === "constructor")
|
|
1116
1097
|
continue;
|
|
1117
1098
|
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
1118
|
-
if (!defined
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
|
|
1125
|
-
});
|
|
1126
|
-
} else {
|
|
1127
|
-
if (desc.value !== void 0)
|
|
1128
|
-
defined.add(key);
|
|
1129
|
-
target[key] = desc.value;
|
|
1130
|
-
}
|
|
1099
|
+
if (!defined[key]) {
|
|
1100
|
+
defined[key] = desc.get ? {
|
|
1101
|
+
enumerable: true,
|
|
1102
|
+
configurable: true,
|
|
1103
|
+
get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
|
|
1104
|
+
} : desc.value !== void 0 ? desc : void 0;
|
|
1131
1105
|
} else {
|
|
1132
1106
|
const sources2 = sourcesMap[key];
|
|
1133
1107
|
if (sources2) {
|
|
1134
|
-
if (desc.get)
|
|
1108
|
+
if (desc.get)
|
|
1135
1109
|
sources2.push(desc.get.bind(source));
|
|
1136
|
-
|
|
1110
|
+
else if (desc.value !== void 0)
|
|
1137
1111
|
sources2.push(() => desc.value);
|
|
1138
|
-
|
|
1139
|
-
} else if (target[key] === void 0)
|
|
1140
|
-
target[key] = desc.value;
|
|
1112
|
+
}
|
|
1141
1113
|
}
|
|
1142
1114
|
}
|
|
1143
1115
|
}
|
|
1116
|
+
const target = {};
|
|
1117
|
+
const definedKeys = Object.keys(defined);
|
|
1118
|
+
for (let i = definedKeys.length - 1; i >= 0; i--) {
|
|
1119
|
+
const key = definedKeys[i], desc = defined[key];
|
|
1120
|
+
if (desc && desc.get)
|
|
1121
|
+
Object.defineProperty(target, key, desc);
|
|
1122
|
+
else
|
|
1123
|
+
target[key] = desc ? desc.value : void 0;
|
|
1124
|
+
}
|
|
1144
1125
|
return target;
|
|
1145
1126
|
}
|
|
1146
1127
|
function splitProps(props, ...keys) {
|
|
1147
1128
|
if ($PROXY in props) {
|
|
1148
1129
|
const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
|
|
1149
1130
|
const res = keys.map((k) => {
|
|
1150
|
-
return new Proxy(
|
|
1151
|
-
{
|
|
1152
|
-
|
|
1153
|
-
return k.includes(property) ? props[property] : void 0;
|
|
1154
|
-
},
|
|
1155
|
-
has(property) {
|
|
1156
|
-
return k.includes(property) && property in props;
|
|
1157
|
-
},
|
|
1158
|
-
keys() {
|
|
1159
|
-
return k.filter((property) => property in props);
|
|
1160
|
-
}
|
|
1131
|
+
return new Proxy({
|
|
1132
|
+
get(property) {
|
|
1133
|
+
return k.includes(property) ? props[property] : void 0;
|
|
1161
1134
|
},
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
});
|
|
1165
|
-
res.push(
|
|
1166
|
-
new Proxy(
|
|
1167
|
-
{
|
|
1168
|
-
get(property) {
|
|
1169
|
-
return blocked.has(property) ? void 0 : props[property];
|
|
1170
|
-
},
|
|
1171
|
-
has(property) {
|
|
1172
|
-
return blocked.has(property) ? false : property in props;
|
|
1173
|
-
},
|
|
1174
|
-
keys() {
|
|
1175
|
-
return Object.keys(props).filter((k) => !blocked.has(k));
|
|
1176
|
-
}
|
|
1135
|
+
has(property) {
|
|
1136
|
+
return k.includes(property) && property in props;
|
|
1177
1137
|
},
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1138
|
+
keys() {
|
|
1139
|
+
return k.filter((property) => property in props);
|
|
1140
|
+
}
|
|
1141
|
+
}, propTraps);
|
|
1142
|
+
});
|
|
1143
|
+
res.push(new Proxy({
|
|
1144
|
+
get(property) {
|
|
1145
|
+
return blocked.has(property) ? void 0 : props[property];
|
|
1146
|
+
},
|
|
1147
|
+
has(property) {
|
|
1148
|
+
return blocked.has(property) ? false : property in props;
|
|
1149
|
+
},
|
|
1150
|
+
keys() {
|
|
1151
|
+
return Object.keys(props).filter((k) => !blocked.has(k));
|
|
1152
|
+
}
|
|
1153
|
+
}, propTraps));
|
|
1181
1154
|
return res;
|
|
1182
1155
|
}
|
|
1183
1156
|
const otherObject = {};
|
|
@@ -1221,19 +1194,17 @@ function lazy(fn) {
|
|
|
1221
1194
|
comp = s;
|
|
1222
1195
|
}
|
|
1223
1196
|
let Comp;
|
|
1224
|
-
return createMemo(
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
})
|
|
1236
|
-
);
|
|
1197
|
+
return createMemo(() => (Comp = comp()) && untrack(() => {
|
|
1198
|
+
if (false)
|
|
1199
|
+
;
|
|
1200
|
+
if (!ctx)
|
|
1201
|
+
return Comp(props);
|
|
1202
|
+
const c = sharedConfig.context;
|
|
1203
|
+
setHydrateContext(ctx);
|
|
1204
|
+
const r = Comp(props);
|
|
1205
|
+
setHydrateContext(c);
|
|
1206
|
+
return r;
|
|
1207
|
+
}));
|
|
1237
1208
|
};
|
|
1238
1209
|
wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
|
|
1239
1210
|
return wrap;
|
|
@@ -1261,120 +1232,60 @@ function Show(props) {
|
|
|
1261
1232
|
const condition = createMemo(() => props.when, void 0, {
|
|
1262
1233
|
equals: (a, b) => keyed ? a === b : !a === !b
|
|
1263
1234
|
});
|
|
1264
|
-
return createMemo(
|
|
1265
|
-
()
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
()
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
)
|
|
1278
|
-
) : child;
|
|
1279
|
-
}
|
|
1280
|
-
return props.fallback;
|
|
1281
|
-
},
|
|
1282
|
-
void 0,
|
|
1283
|
-
void 0
|
|
1284
|
-
);
|
|
1235
|
+
return createMemo(() => {
|
|
1236
|
+
const c = condition();
|
|
1237
|
+
if (c) {
|
|
1238
|
+
const child = props.children;
|
|
1239
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
1240
|
+
return fn ? untrack(() => child(keyed ? c : () => {
|
|
1241
|
+
if (!untrack(condition))
|
|
1242
|
+
throw narrowedError("Show");
|
|
1243
|
+
return props.when;
|
|
1244
|
+
})) : child;
|
|
1245
|
+
}
|
|
1246
|
+
return props.fallback;
|
|
1247
|
+
}, void 0, void 0);
|
|
1285
1248
|
}
|
|
1286
1249
|
function Switch(props) {
|
|
1287
1250
|
let keyed = false;
|
|
1288
|
-
const equals = (a, b) =>
|
|
1289
|
-
const conditions = children(() => props.children), evalConditions = createMemo(
|
|
1290
|
-
()
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
return [i, c, conds[i]];
|
|
1299
|
-
}
|
|
1251
|
+
const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
1252
|
+
const conditions = children(() => props.children), evalConditions = createMemo(() => {
|
|
1253
|
+
let conds = conditions();
|
|
1254
|
+
if (!Array.isArray(conds))
|
|
1255
|
+
conds = [conds];
|
|
1256
|
+
for (let i = 0; i < conds.length; i++) {
|
|
1257
|
+
const c = conds[i].when;
|
|
1258
|
+
if (c) {
|
|
1259
|
+
keyed = !!conds[i].keyed;
|
|
1260
|
+
return [i, c, conds[i]];
|
|
1300
1261
|
}
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
return
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
if (untrack(evalConditions)[0] !== index)
|
|
1319
|
-
throw narrowedError("Match");
|
|
1320
|
-
return cond.when;
|
|
1321
|
-
}
|
|
1322
|
-
)
|
|
1323
|
-
) : c;
|
|
1324
|
-
},
|
|
1325
|
-
void 0,
|
|
1326
|
-
void 0
|
|
1327
|
-
);
|
|
1262
|
+
}
|
|
1263
|
+
return [-1];
|
|
1264
|
+
}, void 0, {
|
|
1265
|
+
equals
|
|
1266
|
+
});
|
|
1267
|
+
return createMemo(() => {
|
|
1268
|
+
const [index, when, cond] = evalConditions();
|
|
1269
|
+
if (index < 0)
|
|
1270
|
+
return props.fallback;
|
|
1271
|
+
const c = cond.children;
|
|
1272
|
+
const fn = typeof c === "function" && c.length > 0;
|
|
1273
|
+
return fn ? untrack(() => c(keyed ? when : () => {
|
|
1274
|
+
if (untrack(evalConditions)[0] !== index)
|
|
1275
|
+
throw narrowedError("Match");
|
|
1276
|
+
return cond.when;
|
|
1277
|
+
})) : c;
|
|
1278
|
+
}, void 0, void 0);
|
|
1328
1279
|
}
|
|
1329
1280
|
function Match(props) {
|
|
1330
1281
|
return props;
|
|
1331
1282
|
}
|
|
1332
1283
|
var DEV = void 0;
|
|
1333
1284
|
|
|
1334
|
-
// ../../node_modules/.pnpm/solid-js@1.8.
|
|
1335
|
-
var booleans = [
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
"autofocus",
|
|
1339
|
-
"autoplay",
|
|
1340
|
-
"checked",
|
|
1341
|
-
"controls",
|
|
1342
|
-
"default",
|
|
1343
|
-
"disabled",
|
|
1344
|
-
"formnovalidate",
|
|
1345
|
-
"hidden",
|
|
1346
|
-
"indeterminate",
|
|
1347
|
-
"inert",
|
|
1348
|
-
"ismap",
|
|
1349
|
-
"loop",
|
|
1350
|
-
"multiple",
|
|
1351
|
-
"muted",
|
|
1352
|
-
"nomodule",
|
|
1353
|
-
"novalidate",
|
|
1354
|
-
"open",
|
|
1355
|
-
"playsinline",
|
|
1356
|
-
"readonly",
|
|
1357
|
-
"required",
|
|
1358
|
-
"reversed",
|
|
1359
|
-
"seamless",
|
|
1360
|
-
"selected"
|
|
1361
|
-
];
|
|
1362
|
-
var Properties = /* @__PURE__ */ new Set([
|
|
1363
|
-
"className",
|
|
1364
|
-
"value",
|
|
1365
|
-
"readOnly",
|
|
1366
|
-
"formNoValidate",
|
|
1367
|
-
"isMap",
|
|
1368
|
-
"noModule",
|
|
1369
|
-
"playsInline",
|
|
1370
|
-
...booleans
|
|
1371
|
-
]);
|
|
1372
|
-
var ChildProperties = /* @__PURE__ */ new Set([
|
|
1373
|
-
"innerHTML",
|
|
1374
|
-
"textContent",
|
|
1375
|
-
"innerText",
|
|
1376
|
-
"children"
|
|
1377
|
-
]);
|
|
1285
|
+
// ../../node_modules/.pnpm/solid-js@1.8.14/node_modules/solid-js/web/dist/web.js
|
|
1286
|
+
var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
1287
|
+
var Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
1288
|
+
var ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
1378
1289
|
var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
1379
1290
|
className: "class",
|
|
1380
1291
|
htmlFor: "for"
|
|
@@ -1408,30 +1319,7 @@ function getPropAlias(prop, tagName) {
|
|
|
1408
1319
|
const a = PropAliases[prop];
|
|
1409
1320
|
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
1410
1321
|
}
|
|
1411
|
-
var DelegatedEvents = /* @__PURE__ */ new Set([
|
|
1412
|
-
"beforeinput",
|
|
1413
|
-
"click",
|
|
1414
|
-
"dblclick",
|
|
1415
|
-
"contextmenu",
|
|
1416
|
-
"focusin",
|
|
1417
|
-
"focusout",
|
|
1418
|
-
"input",
|
|
1419
|
-
"keydown",
|
|
1420
|
-
"keyup",
|
|
1421
|
-
"mousedown",
|
|
1422
|
-
"mousemove",
|
|
1423
|
-
"mouseout",
|
|
1424
|
-
"mouseover",
|
|
1425
|
-
"mouseup",
|
|
1426
|
-
"pointerdown",
|
|
1427
|
-
"pointermove",
|
|
1428
|
-
"pointerout",
|
|
1429
|
-
"pointerover",
|
|
1430
|
-
"pointerup",
|
|
1431
|
-
"touchend",
|
|
1432
|
-
"touchmove",
|
|
1433
|
-
"touchstart"
|
|
1434
|
-
]);
|
|
1322
|
+
var 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"]);
|
|
1435
1323
|
var SVGElements = /* @__PURE__ */ new Set([
|
|
1436
1324
|
"altGlyph",
|
|
1437
1325
|
"altGlyphDef",
|
|
@@ -1685,9 +1573,7 @@ function style(node, value, prev) {
|
|
|
1685
1573
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
1686
1574
|
const prevProps = {};
|
|
1687
1575
|
if (!skipChildren) {
|
|
1688
|
-
createRenderEffect(
|
|
1689
|
-
() => prevProps.children = insertExpression(node, props.children, prevProps.children)
|
|
1690
|
-
);
|
|
1576
|
+
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
1691
1577
|
}
|
|
1692
1578
|
createRenderEffect(() => props.ref && props.ref(node));
|
|
1693
1579
|
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
@@ -1848,7 +1734,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1848
1734
|
if (multi) {
|
|
1849
1735
|
let node = current[0];
|
|
1850
1736
|
if (node && node.nodeType === 3) {
|
|
1851
|
-
node.data = value;
|
|
1737
|
+
node.data !== value && (node.data = value);
|
|
1852
1738
|
} else
|
|
1853
1739
|
node = document.createTextNode(value);
|
|
1854
1740
|
current = cleanChildren(parent, current, marker, node);
|
|
@@ -1932,11 +1818,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
1932
1818
|
if (unwrap) {
|
|
1933
1819
|
while (typeof item === "function")
|
|
1934
1820
|
item = item();
|
|
1935
|
-
dynamic = normalizeIncomingArray(
|
|
1936
|
-
normalized,
|
|
1937
|
-
Array.isArray(item) ? item : [item],
|
|
1938
|
-
Array.isArray(prev) ? prev : [prev]
|
|
1939
|
-
) || dynamic;
|
|
1821
|
+
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
|
|
1940
1822
|
} else {
|
|
1941
1823
|
normalized.push(item);
|
|
1942
1824
|
dynamic = true;
|
|
@@ -1986,41 +1868,39 @@ function createElement(tagName, isSVG = false) {
|
|
|
1986
1868
|
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
|
|
1987
1869
|
}
|
|
1988
1870
|
function Portal(props) {
|
|
1989
|
-
const {
|
|
1871
|
+
const {
|
|
1872
|
+
useShadow
|
|
1873
|
+
} = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
|
|
1990
1874
|
let content;
|
|
1991
1875
|
let hydrating = !!sharedConfig.context;
|
|
1992
|
-
createEffect(
|
|
1993
|
-
()
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
onCleanup(() => el.removeChild(container));
|
|
2017
|
-
}
|
|
2018
|
-
},
|
|
2019
|
-
void 0,
|
|
2020
|
-
{
|
|
2021
|
-
render: !hydrating
|
|
1876
|
+
createEffect(() => {
|
|
1877
|
+
if (hydrating)
|
|
1878
|
+
getOwner().user = hydrating = false;
|
|
1879
|
+
content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
|
|
1880
|
+
const el = mount();
|
|
1881
|
+
if (el instanceof HTMLHeadElement) {
|
|
1882
|
+
const [clean, setClean] = createSignal(false);
|
|
1883
|
+
const cleanup = () => setClean(true);
|
|
1884
|
+
createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
|
|
1885
|
+
onCleanup(cleanup);
|
|
1886
|
+
} else {
|
|
1887
|
+
const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|
|
1888
|
+
mode: "open"
|
|
1889
|
+
}) : container;
|
|
1890
|
+
Object.defineProperty(container, "_$host", {
|
|
1891
|
+
get() {
|
|
1892
|
+
return marker.parentNode;
|
|
1893
|
+
},
|
|
1894
|
+
configurable: true
|
|
1895
|
+
});
|
|
1896
|
+
insert(renderRoot, content);
|
|
1897
|
+
el.appendChild(container);
|
|
1898
|
+
props.ref && props.ref(container);
|
|
1899
|
+
onCleanup(() => el.removeChild(container));
|
|
2022
1900
|
}
|
|
2023
|
-
|
|
1901
|
+
}, void 0, {
|
|
1902
|
+
render: !hydrating
|
|
1903
|
+
});
|
|
2024
1904
|
return marker;
|
|
2025
1905
|
}
|
|
2026
1906
|
function Dynamic(props) {
|
|
@@ -2097,7 +1977,7 @@ var Registry = (
|
|
|
2097
1977
|
);
|
|
2098
1978
|
|
|
2099
1979
|
// ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js
|
|
2100
|
-
var __extends = function() {
|
|
1980
|
+
var __extends = /* @__PURE__ */ function() {
|
|
2101
1981
|
var extendStatics = function(d, b) {
|
|
2102
1982
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
2103
1983
|
d2.__proto__ = b2;
|