@tanstack/query-devtools 5.51.15 → 5.52.3
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/{RGA35KVA.jsx → 2DN67TWN.jsx} +2070 -2396
- package/build/Devtools/{U2TDTBMY.js → 2FJCTAHO.js} +1034 -944
- package/build/Devtools/{Q436JGP5.js → E6UWR6XD.js} +1034 -944
- package/build/Devtools/{NKCIXXMF.jsx → EFVQE642.jsx} +2070 -2396
- package/build/chunk/{WIJZKUEN.jsx → G72LLS32.jsx} +187 -298
- package/build/chunk/{6EPU3DES.js → GMHTURR6.js} +184 -296
- package/build/chunk/{YDKHGUIL.jsx → H7KAW27I.jsx} +187 -298
- package/build/chunk/{LNJC7UVE.js → TU4XCPXB.js} +184 -296
- package/build/dev.cjs +1418 -1444
- package/build/dev.js +2 -2
- package/build/dev.jsx +2 -2
- package/build/index.cjs +1418 -1444
- package/build/index.d.cts +4 -4
- package/build/index.d.ts +4 -4
- package/build/index.js +2 -2
- package/build/index.jsx +2 -2
- package/package.json +5 -5
- package/src/Context.ts +2 -2
- package/src/Devtools.tsx +2 -2
- package/src/index.tsx +4 -4
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/solid-js@1.8.
|
|
1
|
+
// ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/dist/solid.js
|
|
2
2
|
var sharedConfig = {
|
|
3
3
|
context: void 0,
|
|
4
|
-
registry: void 0
|
|
4
|
+
registry: void 0,
|
|
5
|
+
getContextId() {
|
|
6
|
+
return getContextId(this.context.count);
|
|
7
|
+
},
|
|
8
|
+
getNextContextId() {
|
|
9
|
+
return getContextId(this.context.count++);
|
|
10
|
+
}
|
|
5
11
|
};
|
|
12
|
+
function getContextId(count) {
|
|
13
|
+
const num = String(count), len = num.length - 1;
|
|
14
|
+
return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
|
|
15
|
+
}
|
|
6
16
|
function setHydrateContext(context) {
|
|
7
17
|
sharedConfig.context = context;
|
|
8
18
|
}
|
|
9
19
|
function nextHydrateContext() {
|
|
10
20
|
return {
|
|
11
21
|
...sharedConfig.context,
|
|
12
|
-
id:
|
|
22
|
+
id: sharedConfig.getNextContextId(),
|
|
13
23
|
count: 0
|
|
14
24
|
};
|
|
15
25
|
}
|
|
@@ -119,18 +129,18 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
119
129
|
if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
|
|
120
130
|
source = true;
|
|
121
131
|
fetcher = pSource;
|
|
122
|
-
options =
|
|
132
|
+
options = {};
|
|
123
133
|
} else {
|
|
124
134
|
source = pSource;
|
|
125
135
|
fetcher = pFetcher;
|
|
126
|
-
options =
|
|
136
|
+
options = {};
|
|
127
137
|
}
|
|
128
138
|
let pr = null, initP = NO_INIT, id = null, loadedUnderTransition = false, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
|
|
129
139
|
const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
|
|
130
140
|
equals: false
|
|
131
141
|
}), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
132
142
|
if (sharedConfig.context) {
|
|
133
|
-
id =
|
|
143
|
+
id = sharedConfig.getNextContextId();
|
|
134
144
|
let v;
|
|
135
145
|
if (options.ssrLoadFrom === "initial")
|
|
136
146
|
initP = options.initialValue;
|
|
@@ -142,11 +152,9 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
142
152
|
pr = null;
|
|
143
153
|
key !== void 0 && (resolved = true);
|
|
144
154
|
if ((p === initP || v === initP) && options.onHydrated)
|
|
145
|
-
queueMicrotask(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
})
|
|
149
|
-
);
|
|
155
|
+
queueMicrotask(() => options.onHydrated(key, {
|
|
156
|
+
value: v
|
|
157
|
+
}));
|
|
150
158
|
initP = NO_INIT;
|
|
151
159
|
if (Transition && p && loadedUnderTransition) {
|
|
152
160
|
Transition.promises.delete(p);
|
|
@@ -202,12 +210,10 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
202
210
|
}
|
|
203
211
|
if (Transition && pr)
|
|
204
212
|
Transition.promises.delete(pr);
|
|
205
|
-
const p = initP !== NO_INIT ? initP : untrack(
|
|
206
|
-
()
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
})
|
|
210
|
-
);
|
|
213
|
+
const p = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
|
|
214
|
+
value: value(),
|
|
215
|
+
refetching
|
|
216
|
+
}));
|
|
211
217
|
if (!isPromise(p)) {
|
|
212
218
|
loadEnd(pr, p, void 0, lookup);
|
|
213
219
|
return p;
|
|
@@ -217,7 +223,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
217
223
|
if (p.status === "success")
|
|
218
224
|
loadEnd(pr, p.value, void 0, lookup);
|
|
219
225
|
else
|
|
220
|
-
loadEnd(pr, void 0,
|
|
226
|
+
loadEnd(pr, void 0, castError(p.value), lookup);
|
|
221
227
|
return p;
|
|
222
228
|
}
|
|
223
229
|
scheduled = true;
|
|
@@ -226,10 +232,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
226
232
|
setState(resolved ? "refreshing" : "pending");
|
|
227
233
|
trigger();
|
|
228
234
|
}, false);
|
|
229
|
-
return p.then(
|
|
230
|
-
(v) => loadEnd(p, v, void 0, lookup),
|
|
231
|
-
(e) => loadEnd(p, void 0, castError(e), lookup)
|
|
232
|
-
);
|
|
235
|
+
return p.then((v) => loadEnd(p, v, void 0, lookup), (e) => loadEnd(p, void 0, castError(e), lookup));
|
|
233
236
|
}
|
|
234
237
|
Object.defineProperties(read, {
|
|
235
238
|
state: {
|
|
@@ -259,13 +262,10 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
259
262
|
createComputed(() => load(false));
|
|
260
263
|
else
|
|
261
264
|
load(false);
|
|
262
|
-
return [
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
mutate: setValue
|
|
267
|
-
}
|
|
268
|
-
];
|
|
265
|
+
return [read, {
|
|
266
|
+
refetch: load,
|
|
267
|
+
mutate: setValue
|
|
268
|
+
}];
|
|
269
269
|
}
|
|
270
270
|
function batch(fn) {
|
|
271
271
|
return runUpdates(fn, false);
|
|
@@ -374,7 +374,8 @@ function createContext(defaultValue, options) {
|
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
function useContext(context) {
|
|
377
|
-
|
|
377
|
+
let value;
|
|
378
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== void 0 ? value : context.defaultValue;
|
|
378
379
|
}
|
|
379
380
|
function children(fn) {
|
|
380
381
|
const children2 = createMemo(fn);
|
|
@@ -468,11 +469,7 @@ function updateComputation(node) {
|
|
|
468
469
|
return;
|
|
469
470
|
cleanNode(node);
|
|
470
471
|
const time = ExecCount;
|
|
471
|
-
runComputation(
|
|
472
|
-
node,
|
|
473
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
474
|
-
time
|
|
475
|
-
);
|
|
472
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
476
473
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
477
474
|
queueMicrotask(() => {
|
|
478
475
|
runUpdates(() => {
|
|
@@ -850,16 +847,13 @@ function resolveChildren(children2) {
|
|
|
850
847
|
function createProvider(id, options) {
|
|
851
848
|
return function provider(props) {
|
|
852
849
|
let res;
|
|
853
|
-
createRenderEffect(
|
|
854
|
-
|
|
855
|
-
Owner.context
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
}),
|
|
861
|
-
void 0
|
|
862
|
-
);
|
|
850
|
+
createRenderEffect(() => res = untrack(() => {
|
|
851
|
+
Owner.context = {
|
|
852
|
+
...Owner.context,
|
|
853
|
+
[id]: props.value
|
|
854
|
+
};
|
|
855
|
+
return children(() => props.children);
|
|
856
|
+
}), void 0);
|
|
863
857
|
return res;
|
|
864
858
|
};
|
|
865
859
|
}
|
|
@@ -872,10 +866,10 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
872
866
|
let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
|
|
873
867
|
onCleanup(() => dispose(disposers));
|
|
874
868
|
return () => {
|
|
875
|
-
let newItems = list() || [], i, j;
|
|
869
|
+
let newItems = list() || [], newLen = newItems.length, i, j;
|
|
876
870
|
newItems[$TRACK];
|
|
877
871
|
return untrack(() => {
|
|
878
|
-
let
|
|
872
|
+
let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
|
|
879
873
|
if (newLen === 0) {
|
|
880
874
|
if (len !== 0) {
|
|
881
875
|
dispose(disposers);
|
|
@@ -962,10 +956,10 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
962
956
|
let items = [], mapped = [], disposers = [], signals = [], len = 0, i;
|
|
963
957
|
onCleanup(() => dispose(disposers));
|
|
964
958
|
return () => {
|
|
965
|
-
const newItems = list() || [];
|
|
959
|
+
const newItems = list() || [], newLen = newItems.length;
|
|
966
960
|
newItems[$TRACK];
|
|
967
961
|
return untrack(() => {
|
|
968
|
-
if (
|
|
962
|
+
if (newLen === 0) {
|
|
969
963
|
if (len !== 0) {
|
|
970
964
|
dispose(disposers);
|
|
971
965
|
disposers = [];
|
|
@@ -991,7 +985,7 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
991
985
|
mapped = [];
|
|
992
986
|
len = 0;
|
|
993
987
|
}
|
|
994
|
-
for (i = 0; i <
|
|
988
|
+
for (i = 0; i < newLen; i++) {
|
|
995
989
|
if (i < items.length && items[i] !== newItems[i]) {
|
|
996
990
|
signals[i](() => newItems[i]);
|
|
997
991
|
} else if (i >= items.length) {
|
|
@@ -1001,7 +995,7 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
1001
995
|
for (; i < items.length; i++) {
|
|
1002
996
|
disposers[i]();
|
|
1003
997
|
}
|
|
1004
|
-
len = signals.length = disposers.length =
|
|
998
|
+
len = signals.length = disposers.length = newLen;
|
|
1005
999
|
items = newItems.slice(0);
|
|
1006
1000
|
return mapped = mapped.slice(0, len);
|
|
1007
1001
|
});
|
|
@@ -1075,31 +1069,28 @@ function mergeProps(...sources) {
|
|
|
1075
1069
|
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
1076
1070
|
}
|
|
1077
1071
|
if (proxy) {
|
|
1078
|
-
return new Proxy(
|
|
1079
|
-
{
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
return v;
|
|
1085
|
-
}
|
|
1086
|
-
},
|
|
1087
|
-
has(property) {
|
|
1088
|
-
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1089
|
-
if (property in resolveSource(sources[i]))
|
|
1090
|
-
return true;
|
|
1091
|
-
}
|
|
1092
|
-
return false;
|
|
1093
|
-
},
|
|
1094
|
-
keys() {
|
|
1095
|
-
const keys = [];
|
|
1096
|
-
for (let i = 0; i < sources.length; i++)
|
|
1097
|
-
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
1098
|
-
return [...new Set(keys)];
|
|
1072
|
+
return new Proxy({
|
|
1073
|
+
get(property) {
|
|
1074
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1075
|
+
const v = resolveSource(sources[i])[property];
|
|
1076
|
+
if (v !== void 0)
|
|
1077
|
+
return v;
|
|
1099
1078
|
}
|
|
1100
1079
|
},
|
|
1101
|
-
|
|
1102
|
-
|
|
1080
|
+
has(property) {
|
|
1081
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1082
|
+
if (property in resolveSource(sources[i]))
|
|
1083
|
+
return true;
|
|
1084
|
+
}
|
|
1085
|
+
return false;
|
|
1086
|
+
},
|
|
1087
|
+
keys() {
|
|
1088
|
+
const keys = [];
|
|
1089
|
+
for (let i = 0; i < sources.length; i++)
|
|
1090
|
+
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
1091
|
+
return [...new Set(keys)];
|
|
1092
|
+
}
|
|
1093
|
+
}, propTraps);
|
|
1103
1094
|
}
|
|
1104
1095
|
const sourcesMap = {};
|
|
1105
1096
|
const defined = /* @__PURE__ */ Object.create(null);
|
|
@@ -1145,37 +1136,29 @@ function splitProps(props, ...keys) {
|
|
|
1145
1136
|
if ($PROXY in props) {
|
|
1146
1137
|
const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
|
|
1147
1138
|
const res = keys.map((k) => {
|
|
1148
|
-
return new Proxy(
|
|
1149
|
-
{
|
|
1150
|
-
|
|
1151
|
-
return k.includes(property) ? props[property] : void 0;
|
|
1152
|
-
},
|
|
1153
|
-
has(property) {
|
|
1154
|
-
return k.includes(property) && property in props;
|
|
1155
|
-
},
|
|
1156
|
-
keys() {
|
|
1157
|
-
return k.filter((property) => property in props);
|
|
1158
|
-
}
|
|
1139
|
+
return new Proxy({
|
|
1140
|
+
get(property) {
|
|
1141
|
+
return k.includes(property) ? props[property] : void 0;
|
|
1159
1142
|
},
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
});
|
|
1163
|
-
res.push(
|
|
1164
|
-
new Proxy(
|
|
1165
|
-
{
|
|
1166
|
-
get(property) {
|
|
1167
|
-
return blocked.has(property) ? void 0 : props[property];
|
|
1168
|
-
},
|
|
1169
|
-
has(property) {
|
|
1170
|
-
return blocked.has(property) ? false : property in props;
|
|
1171
|
-
},
|
|
1172
|
-
keys() {
|
|
1173
|
-
return Object.keys(props).filter((k) => !blocked.has(k));
|
|
1174
|
-
}
|
|
1143
|
+
has(property) {
|
|
1144
|
+
return k.includes(property) && property in props;
|
|
1175
1145
|
},
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1146
|
+
keys() {
|
|
1147
|
+
return k.filter((property) => property in props);
|
|
1148
|
+
}
|
|
1149
|
+
}, propTraps);
|
|
1150
|
+
});
|
|
1151
|
+
res.push(new Proxy({
|
|
1152
|
+
get(property) {
|
|
1153
|
+
return blocked.has(property) ? void 0 : props[property];
|
|
1154
|
+
},
|
|
1155
|
+
has(property) {
|
|
1156
|
+
return blocked.has(property) ? false : property in props;
|
|
1157
|
+
},
|
|
1158
|
+
keys() {
|
|
1159
|
+
return Object.keys(props).filter((k) => !blocked.has(k));
|
|
1160
|
+
}
|
|
1161
|
+
}, propTraps));
|
|
1179
1162
|
return res;
|
|
1180
1163
|
}
|
|
1181
1164
|
const otherObject = {};
|
|
@@ -1219,19 +1202,17 @@ function lazy(fn) {
|
|
|
1219
1202
|
comp = s;
|
|
1220
1203
|
}
|
|
1221
1204
|
let Comp;
|
|
1222
|
-
return createMemo(
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
})
|
|
1234
|
-
);
|
|
1205
|
+
return createMemo(() => (Comp = comp()) && untrack(() => {
|
|
1206
|
+
if (false)
|
|
1207
|
+
;
|
|
1208
|
+
if (!ctx)
|
|
1209
|
+
return Comp(props);
|
|
1210
|
+
const c = sharedConfig.context;
|
|
1211
|
+
setHydrateContext(ctx);
|
|
1212
|
+
const r = Comp(props);
|
|
1213
|
+
setHydrateContext(c);
|
|
1214
|
+
return r;
|
|
1215
|
+
}));
|
|
1235
1216
|
};
|
|
1236
1217
|
wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
|
|
1237
1218
|
return wrap;
|
|
@@ -1239,7 +1220,7 @@ function lazy(fn) {
|
|
|
1239
1220
|
var counter = 0;
|
|
1240
1221
|
function createUniqueId() {
|
|
1241
1222
|
const ctx = sharedConfig.context;
|
|
1242
|
-
return ctx ?
|
|
1223
|
+
return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
|
|
1243
1224
|
}
|
|
1244
1225
|
var narrowedError = (name) => `Stale read from <${name}>.`;
|
|
1245
1226
|
function For(props) {
|
|
@@ -1259,120 +1240,60 @@ function Show(props) {
|
|
|
1259
1240
|
const condition = createMemo(() => props.when, void 0, {
|
|
1260
1241
|
equals: (a, b) => keyed ? a === b : !a === !b
|
|
1261
1242
|
});
|
|
1262
|
-
return createMemo(
|
|
1263
|
-
()
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
()
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
)
|
|
1276
|
-
) : child;
|
|
1277
|
-
}
|
|
1278
|
-
return props.fallback;
|
|
1279
|
-
},
|
|
1280
|
-
void 0,
|
|
1281
|
-
void 0
|
|
1282
|
-
);
|
|
1243
|
+
return createMemo(() => {
|
|
1244
|
+
const c = condition();
|
|
1245
|
+
if (c) {
|
|
1246
|
+
const child = props.children;
|
|
1247
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
1248
|
+
return fn ? untrack(() => child(keyed ? c : () => {
|
|
1249
|
+
if (!untrack(condition))
|
|
1250
|
+
throw narrowedError("Show");
|
|
1251
|
+
return props.when;
|
|
1252
|
+
})) : child;
|
|
1253
|
+
}
|
|
1254
|
+
return props.fallback;
|
|
1255
|
+
}, void 0, void 0);
|
|
1283
1256
|
}
|
|
1284
1257
|
function Switch(props) {
|
|
1285
1258
|
let keyed = false;
|
|
1286
1259
|
const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
1287
|
-
const conditions = children(() => props.children), evalConditions = createMemo(
|
|
1288
|
-
()
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
return [i, c, conds[i]];
|
|
1297
|
-
}
|
|
1260
|
+
const conditions = children(() => props.children), evalConditions = createMemo(() => {
|
|
1261
|
+
let conds = conditions();
|
|
1262
|
+
if (!Array.isArray(conds))
|
|
1263
|
+
conds = [conds];
|
|
1264
|
+
for (let i = 0; i < conds.length; i++) {
|
|
1265
|
+
const c = conds[i].when;
|
|
1266
|
+
if (c) {
|
|
1267
|
+
keyed = !!conds[i].keyed;
|
|
1268
|
+
return [i, c, conds[i]];
|
|
1298
1269
|
}
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
return
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
if (untrack(evalConditions)[0] !== index)
|
|
1317
|
-
throw narrowedError("Match");
|
|
1318
|
-
return cond.when;
|
|
1319
|
-
}
|
|
1320
|
-
)
|
|
1321
|
-
) : c;
|
|
1322
|
-
},
|
|
1323
|
-
void 0,
|
|
1324
|
-
void 0
|
|
1325
|
-
);
|
|
1270
|
+
}
|
|
1271
|
+
return [-1];
|
|
1272
|
+
}, void 0, {
|
|
1273
|
+
equals
|
|
1274
|
+
});
|
|
1275
|
+
return createMemo(() => {
|
|
1276
|
+
const [index, when, cond] = evalConditions();
|
|
1277
|
+
if (index < 0)
|
|
1278
|
+
return props.fallback;
|
|
1279
|
+
const c = cond.children;
|
|
1280
|
+
const fn = typeof c === "function" && c.length > 0;
|
|
1281
|
+
return fn ? untrack(() => c(keyed ? when : () => {
|
|
1282
|
+
if (untrack(evalConditions)[0] !== index)
|
|
1283
|
+
throw narrowedError("Match");
|
|
1284
|
+
return cond.when;
|
|
1285
|
+
})) : c;
|
|
1286
|
+
}, void 0, void 0);
|
|
1326
1287
|
}
|
|
1327
1288
|
function Match(props) {
|
|
1328
1289
|
return props;
|
|
1329
1290
|
}
|
|
1330
1291
|
var DEV = void 0;
|
|
1331
1292
|
|
|
1332
|
-
// ../../node_modules/.pnpm/solid-js@1.8.
|
|
1333
|
-
var booleans = [
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
"autofocus",
|
|
1337
|
-
"autoplay",
|
|
1338
|
-
"checked",
|
|
1339
|
-
"controls",
|
|
1340
|
-
"default",
|
|
1341
|
-
"disabled",
|
|
1342
|
-
"formnovalidate",
|
|
1343
|
-
"hidden",
|
|
1344
|
-
"indeterminate",
|
|
1345
|
-
"inert",
|
|
1346
|
-
"ismap",
|
|
1347
|
-
"loop",
|
|
1348
|
-
"multiple",
|
|
1349
|
-
"muted",
|
|
1350
|
-
"nomodule",
|
|
1351
|
-
"novalidate",
|
|
1352
|
-
"open",
|
|
1353
|
-
"playsinline",
|
|
1354
|
-
"readonly",
|
|
1355
|
-
"required",
|
|
1356
|
-
"reversed",
|
|
1357
|
-
"seamless",
|
|
1358
|
-
"selected"
|
|
1359
|
-
];
|
|
1360
|
-
var Properties = /* @__PURE__ */ new Set([
|
|
1361
|
-
"className",
|
|
1362
|
-
"value",
|
|
1363
|
-
"readOnly",
|
|
1364
|
-
"formNoValidate",
|
|
1365
|
-
"isMap",
|
|
1366
|
-
"noModule",
|
|
1367
|
-
"playsInline",
|
|
1368
|
-
...booleans
|
|
1369
|
-
]);
|
|
1370
|
-
var ChildProperties = /* @__PURE__ */ new Set([
|
|
1371
|
-
"innerHTML",
|
|
1372
|
-
"textContent",
|
|
1373
|
-
"innerText",
|
|
1374
|
-
"children"
|
|
1375
|
-
]);
|
|
1293
|
+
// ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/web/dist/web.js
|
|
1294
|
+
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"];
|
|
1295
|
+
var Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
1296
|
+
var ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
1376
1297
|
var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
1377
1298
|
className: "class",
|
|
1378
1299
|
htmlFor: "for"
|
|
@@ -1406,30 +1327,7 @@ function getPropAlias(prop, tagName) {
|
|
|
1406
1327
|
const a = PropAliases[prop];
|
|
1407
1328
|
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
1408
1329
|
}
|
|
1409
|
-
var DelegatedEvents = /* @__PURE__ */ new Set([
|
|
1410
|
-
"beforeinput",
|
|
1411
|
-
"click",
|
|
1412
|
-
"dblclick",
|
|
1413
|
-
"contextmenu",
|
|
1414
|
-
"focusin",
|
|
1415
|
-
"focusout",
|
|
1416
|
-
"input",
|
|
1417
|
-
"keydown",
|
|
1418
|
-
"keyup",
|
|
1419
|
-
"mousedown",
|
|
1420
|
-
"mousemove",
|
|
1421
|
-
"mouseout",
|
|
1422
|
-
"mouseover",
|
|
1423
|
-
"mouseup",
|
|
1424
|
-
"pointerdown",
|
|
1425
|
-
"pointermove",
|
|
1426
|
-
"pointerout",
|
|
1427
|
-
"pointerover",
|
|
1428
|
-
"pointerup",
|
|
1429
|
-
"touchend",
|
|
1430
|
-
"touchmove",
|
|
1431
|
-
"touchstart"
|
|
1432
|
-
]);
|
|
1330
|
+
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"]);
|
|
1433
1331
|
var SVGElements = /* @__PURE__ */ new Set([
|
|
1434
1332
|
"altGlyph",
|
|
1435
1333
|
"altGlyphDef",
|
|
@@ -1691,13 +1589,9 @@ function style(node, value, prev) {
|
|
|
1691
1589
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
1692
1590
|
const prevProps = {};
|
|
1693
1591
|
if (!skipChildren) {
|
|
1694
|
-
createRenderEffect(
|
|
1695
|
-
() => prevProps.children = insertExpression(node, props.children, prevProps.children)
|
|
1696
|
-
);
|
|
1592
|
+
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
1697
1593
|
}
|
|
1698
|
-
createRenderEffect(
|
|
1699
|
-
() => typeof props.ref === "function" ? use(props.ref, node) : props.ref = node
|
|
1700
|
-
);
|
|
1594
|
+
createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
|
|
1701
1595
|
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
1702
1596
|
return prevProps;
|
|
1703
1597
|
}
|
|
@@ -1722,8 +1616,6 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
|
|
|
1722
1616
|
}
|
|
1723
1617
|
for (const prop in props) {
|
|
1724
1618
|
if (prop === "children") {
|
|
1725
|
-
if (!skipChildren)
|
|
1726
|
-
insertExpression(node, props.children);
|
|
1727
1619
|
continue;
|
|
1728
1620
|
}
|
|
1729
1621
|
const value = props[prop];
|
|
@@ -1852,8 +1744,11 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1852
1744
|
if (t === "string" || t === "number") {
|
|
1853
1745
|
if (hydrating)
|
|
1854
1746
|
return current;
|
|
1855
|
-
if (t === "number")
|
|
1747
|
+
if (t === "number") {
|
|
1856
1748
|
value = value.toString();
|
|
1749
|
+
if (value === current)
|
|
1750
|
+
return current;
|
|
1751
|
+
}
|
|
1857
1752
|
if (multi) {
|
|
1858
1753
|
let node = current[0];
|
|
1859
1754
|
if (node && node.nodeType === 3) {
|
|
@@ -1941,11 +1836,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
1941
1836
|
if (unwrap) {
|
|
1942
1837
|
while (typeof item === "function")
|
|
1943
1838
|
item = item();
|
|
1944
|
-
dynamic = normalizeIncomingArray(
|
|
1945
|
-
normalized,
|
|
1946
|
-
Array.isArray(item) ? item : [item],
|
|
1947
|
-
Array.isArray(prev) ? prev : [prev]
|
|
1948
|
-
) || dynamic;
|
|
1839
|
+
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
|
|
1949
1840
|
} else {
|
|
1950
1841
|
normalized.push(item);
|
|
1951
1842
|
dynamic = true;
|
|
@@ -1986,8 +1877,7 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
1986
1877
|
return [node];
|
|
1987
1878
|
}
|
|
1988
1879
|
function getHydrationKey() {
|
|
1989
|
-
|
|
1990
|
-
return `${hydrate.id}${hydrate.count++}`;
|
|
1880
|
+
return sharedConfig.getNextContextId();
|
|
1991
1881
|
}
|
|
1992
1882
|
var isServer = false;
|
|
1993
1883
|
var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
@@ -1995,41 +1885,39 @@ function createElement(tagName, isSVG = false) {
|
|
|
1995
1885
|
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
|
|
1996
1886
|
}
|
|
1997
1887
|
function Portal(props) {
|
|
1998
|
-
const {
|
|
1888
|
+
const {
|
|
1889
|
+
useShadow
|
|
1890
|
+
} = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
|
|
1999
1891
|
let content;
|
|
2000
1892
|
let hydrating = !!sharedConfig.context;
|
|
2001
|
-
createEffect(
|
|
2002
|
-
()
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
onCleanup(() => el.removeChild(container));
|
|
2026
|
-
}
|
|
2027
|
-
},
|
|
2028
|
-
void 0,
|
|
2029
|
-
{
|
|
2030
|
-
render: !hydrating
|
|
1893
|
+
createEffect(() => {
|
|
1894
|
+
if (hydrating)
|
|
1895
|
+
getOwner().user = hydrating = false;
|
|
1896
|
+
content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
|
|
1897
|
+
const el = mount();
|
|
1898
|
+
if (el instanceof HTMLHeadElement) {
|
|
1899
|
+
const [clean, setClean] = createSignal(false);
|
|
1900
|
+
const cleanup = () => setClean(true);
|
|
1901
|
+
createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
|
|
1902
|
+
onCleanup(cleanup);
|
|
1903
|
+
} else {
|
|
1904
|
+
const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|
|
1905
|
+
mode: "open"
|
|
1906
|
+
}) : container;
|
|
1907
|
+
Object.defineProperty(container, "_$host", {
|
|
1908
|
+
get() {
|
|
1909
|
+
return marker.parentNode;
|
|
1910
|
+
},
|
|
1911
|
+
configurable: true
|
|
1912
|
+
});
|
|
1913
|
+
insert(renderRoot, content);
|
|
1914
|
+
el.appendChild(container);
|
|
1915
|
+
props.ref && props.ref(container);
|
|
1916
|
+
onCleanup(() => el.removeChild(container));
|
|
2031
1917
|
}
|
|
2032
|
-
|
|
1918
|
+
}, void 0, {
|
|
1919
|
+
render: !hydrating
|
|
1920
|
+
});
|
|
2033
1921
|
return marker;
|
|
2034
1922
|
}
|
|
2035
1923
|
function Dynamic(props) {
|
|
@@ -2686,19 +2574,19 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
|
|
|
2686
2574
|
return result;
|
|
2687
2575
|
};
|
|
2688
2576
|
|
|
2689
|
-
// ../../node_modules/.pnpm/is-what@4.1.
|
|
2577
|
+
// ../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js
|
|
2690
2578
|
function getType2(payload) {
|
|
2691
2579
|
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
2692
2580
|
}
|
|
2581
|
+
function isArray2(payload) {
|
|
2582
|
+
return getType2(payload) === "Array";
|
|
2583
|
+
}
|
|
2693
2584
|
function isPlainObject2(payload) {
|
|
2694
2585
|
if (getType2(payload) !== "Object")
|
|
2695
2586
|
return false;
|
|
2696
2587
|
const prototype = Object.getPrototypeOf(payload);
|
|
2697
2588
|
return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
|
|
2698
2589
|
}
|
|
2699
|
-
function isArray2(payload) {
|
|
2700
|
-
return getType2(payload) === "Array";
|
|
2701
|
-
}
|
|
2702
2590
|
|
|
2703
2591
|
// ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
|
|
2704
2592
|
function assignProp2(carry, key, newVal, originalObject, includeNonenumerable) {
|