@tanstack/query-devtools 5.81.1 → 5.83.1

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.
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/solid-js@1.9.5/node_modules/solid-js/dist/solid.js
1
+ // ../../node_modules/.pnpm/solid-js@1.9.7/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
3
  context: void 0,
4
4
  registry: void 0,
@@ -139,12 +139,9 @@ function createResource(pSource, pFetcher, pOptions) {
139
139
  if (pr === p) {
140
140
  pr = null;
141
141
  key !== void 0 && (resolved = true);
142
- if ((p === initP || v === initP) && options.onHydrated)
143
- queueMicrotask(
144
- () => options.onHydrated(key, {
145
- value: v
146
- })
147
- );
142
+ if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
143
+ value: v
144
+ }));
148
145
  initP = NO_INIT;
149
146
  if (Transition && p && loadedUnderTransition) {
150
147
  Transition.promises.delete(p);
@@ -193,20 +190,28 @@ function createResource(pSource, pFetcher, pOptions) {
193
190
  return;
194
191
  }
195
192
  if (Transition && pr) Transition.promises.delete(pr);
196
- const p = initP !== NO_INIT ? initP : untrack(
197
- () => fetcher(lookup, {
198
- value: value(),
199
- refetching
200
- })
201
- );
202
- if (!isPromise(p)) {
193
+ let error2;
194
+ const p = initP !== NO_INIT ? initP : untrack(() => {
195
+ try {
196
+ return fetcher(lookup, {
197
+ value: value(),
198
+ refetching
199
+ });
200
+ } catch (fetcherError) {
201
+ error2 = fetcherError;
202
+ }
203
+ });
204
+ if (error2 !== void 0) {
205
+ loadEnd(pr, void 0, castError(error2), lookup);
206
+ return;
207
+ } else if (!isPromise(p)) {
203
208
  loadEnd(pr, p, void 0, lookup);
204
209
  return p;
205
210
  }
206
211
  pr = p;
207
- if ("value" in p) {
208
- if (p.status === "success") loadEnd(pr, p.value, void 0, lookup);
209
- else loadEnd(pr, void 0, castError(p.value), lookup);
212
+ if ("v" in p) {
213
+ if (p.s === 1) loadEnd(pr, p.v, void 0, lookup);
214
+ else loadEnd(pr, void 0, castError(p.v), lookup);
210
215
  return p;
211
216
  }
212
217
  scheduled = true;
@@ -215,10 +220,7 @@ function createResource(pSource, pFetcher, pOptions) {
215
220
  setState(resolved ? "refreshing" : "pending");
216
221
  trigger();
217
222
  }, false);
218
- return p.then(
219
- (v) => loadEnd(p, v, void 0, lookup),
220
- (e) => loadEnd(p, void 0, castError(e), lookup)
221
- );
223
+ return p.then((v) => loadEnd(p, v, void 0, lookup), (e) => loadEnd(p, void 0, castError(e), lookup));
222
224
  }
223
225
  Object.defineProperties(read, {
224
226
  state: {
@@ -242,15 +244,13 @@ function createResource(pSource, pFetcher, pOptions) {
242
244
  }
243
245
  }
244
246
  });
245
- if (dynamic) createComputed(() => load(false));
247
+ let owner = Owner;
248
+ if (dynamic) createComputed(() => (owner = Owner, load(false)));
246
249
  else load(false);
247
- return [
248
- read,
249
- {
250
- refetch: load,
251
- mutate: setValue
252
- }
253
- ];
250
+ return [read, {
251
+ refetch: (info) => runWithOwner(owner, () => load(info)),
252
+ mutate: setValue
253
+ }];
254
254
  }
255
255
  function batch(fn) {
256
256
  return runUpdates(fn, false);
@@ -357,12 +357,12 @@ function useContext(context) {
357
357
  }
358
358
  function children(fn) {
359
359
  const children2 = createMemo(fn);
360
- const memo = createMemo(() => resolveChildren(children2()));
361
- memo.toArray = () => {
362
- const c = memo();
360
+ const memo2 = createMemo(() => resolveChildren(children2()));
361
+ memo2.toArray = () => {
362
+ const c = memo2();
363
363
  return Array.isArray(c) ? c : c != null ? [c] : [];
364
364
  };
365
- return memo;
365
+ return memo2;
366
366
  }
367
367
  var SuspenseContext;
368
368
  function readSignal() {
@@ -435,11 +435,7 @@ function updateComputation(node) {
435
435
  if (!node.fn) return;
436
436
  cleanNode(node);
437
437
  const time = ExecCount;
438
- runComputation(
439
- node,
440
- Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
441
- time
442
- );
438
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
443
439
  if (Transition && !Transition.running && Transition.sources.has(node)) {
444
440
  queueMicrotask(() => {
445
441
  runUpdates(() => {
@@ -670,8 +666,7 @@ function lookUpstream(node, ignore) {
670
666
  if (source.sources) {
671
667
  const state = runningTransition ? source.tState : source.state;
672
668
  if (state === STALE) {
673
- if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
674
- runTop(source);
669
+ if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
675
670
  } else if (state === PENDING) lookUpstream(source, ignore);
676
671
  }
677
672
  }
@@ -747,13 +742,12 @@ function handleError(err, owner = Owner) {
747
742
  const fns = ERROR && owner && owner.context && owner.context[ERROR];
748
743
  const error = castError(err);
749
744
  if (!fns) throw error;
750
- if (Effects)
751
- Effects.push({
752
- fn() {
753
- runErrors(error, fns, owner);
754
- },
755
- state: STALE
756
- });
745
+ if (Effects) Effects.push({
746
+ fn() {
747
+ runErrors(error, fns, owner);
748
+ },
749
+ state: STALE
750
+ });
757
751
  else runErrors(error, fns, owner);
758
752
  }
759
753
  function resolveChildren(children2) {
@@ -771,16 +765,13 @@ function resolveChildren(children2) {
771
765
  function createProvider(id, options) {
772
766
  return function provider(props) {
773
767
  let res;
774
- createRenderEffect(
775
- () => res = untrack(() => {
776
- Owner.context = {
777
- ...Owner.context,
778
- [id]: props.value
779
- };
780
- return children(() => props.children);
781
- }),
782
- void 0
783
- );
768
+ createRenderEffect(() => res = untrack(() => {
769
+ Owner.context = {
770
+ ...Owner.context,
771
+ [id]: props.value
772
+ };
773
+ return children(() => props.children);
774
+ }), void 0);
784
775
  return res;
785
776
  };
786
777
  }
@@ -989,29 +980,25 @@ function mergeProps(...sources) {
989
980
  sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
990
981
  }
991
982
  if (SUPPORTS_PROXY && proxy) {
992
- return new Proxy(
993
- {
994
- get(property) {
995
- for (let i = sources.length - 1; i >= 0; i--) {
996
- const v = resolveSource(sources[i])[property];
997
- if (v !== void 0) return v;
998
- }
999
- },
1000
- has(property) {
1001
- for (let i = sources.length - 1; i >= 0; i--) {
1002
- if (property in resolveSource(sources[i])) return true;
1003
- }
1004
- return false;
1005
- },
1006
- keys() {
1007
- const keys = [];
1008
- for (let i = 0; i < sources.length; i++)
1009
- keys.push(...Object.keys(resolveSource(sources[i])));
1010
- return [...new Set(keys)];
983
+ return new Proxy({
984
+ get(property) {
985
+ for (let i = sources.length - 1; i >= 0; i--) {
986
+ const v = resolveSource(sources[i])[property];
987
+ if (v !== void 0) return v;
988
+ }
989
+ },
990
+ has(property) {
991
+ for (let i = sources.length - 1; i >= 0; i--) {
992
+ if (property in resolveSource(sources[i])) return true;
1011
993
  }
994
+ return false;
1012
995
  },
1013
- propTraps
1014
- );
996
+ keys() {
997
+ const keys = [];
998
+ for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
999
+ return [...new Set(keys)];
1000
+ }
1001
+ }, propTraps);
1015
1002
  }
1016
1003
  const sourcesMap = {};
1017
1004
  const defined = /* @__PURE__ */ Object.create(null);
@@ -1051,37 +1038,29 @@ function splitProps(props, ...keys) {
1051
1038
  if (SUPPORTS_PROXY && $PROXY in props) {
1052
1039
  const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
1053
1040
  const res = keys.map((k) => {
1054
- return new Proxy(
1055
- {
1056
- get(property) {
1057
- return k.includes(property) ? props[property] : void 0;
1058
- },
1059
- has(property) {
1060
- return k.includes(property) && property in props;
1061
- },
1062
- keys() {
1063
- return k.filter((property) => property in props);
1064
- }
1041
+ return new Proxy({
1042
+ get(property) {
1043
+ return k.includes(property) ? props[property] : void 0;
1065
1044
  },
1066
- propTraps
1067
- );
1068
- });
1069
- res.push(
1070
- new Proxy(
1071
- {
1072
- get(property) {
1073
- return blocked.has(property) ? void 0 : props[property];
1074
- },
1075
- has(property) {
1076
- return blocked.has(property) ? false : property in props;
1077
- },
1078
- keys() {
1079
- return Object.keys(props).filter((k) => !blocked.has(k));
1080
- }
1045
+ has(property) {
1046
+ return k.includes(property) && property in props;
1081
1047
  },
1082
- propTraps
1083
- )
1084
- );
1048
+ keys() {
1049
+ return k.filter((property) => property in props);
1050
+ }
1051
+ }, propTraps);
1052
+ });
1053
+ res.push(new Proxy({
1054
+ get(property) {
1055
+ return blocked.has(property) ? void 0 : props[property];
1056
+ },
1057
+ has(property) {
1058
+ return blocked.has(property) ? false : property in props;
1059
+ },
1060
+ keys() {
1061
+ return Object.keys(props).filter((k) => !blocked.has(k));
1062
+ }
1063
+ }, propTraps));
1085
1064
  return res;
1086
1065
  }
1087
1066
  const otherObject = {};
@@ -1125,17 +1104,15 @@ function lazy(fn) {
1125
1104
  comp = s;
1126
1105
  }
1127
1106
  let Comp;
1128
- return createMemo(
1129
- () => (Comp = comp()) ? untrack(() => {
1130
- if (IS_DEV) ;
1131
- if (!ctx || sharedConfig.done) return Comp(props);
1132
- const c = sharedConfig.context;
1133
- setHydrateContext(ctx);
1134
- const r = Comp(props);
1135
- setHydrateContext(c);
1136
- return r;
1137
- }) : ""
1138
- );
1107
+ return createMemo(() => (Comp = comp()) ? untrack(() => {
1108
+ if (IS_DEV) ;
1109
+ if (!ctx || sharedConfig.done) return Comp(props);
1110
+ const c = sharedConfig.context;
1111
+ setHydrateContext(ctx);
1112
+ const r = Comp(props);
1113
+ setHydrateContext(c);
1114
+ return r;
1115
+ }) : "");
1139
1116
  };
1140
1117
  wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
1141
1118
  return wrap;
@@ -1164,26 +1141,18 @@ function Show(props) {
1164
1141
  const condition = keyed ? conditionValue : createMemo(conditionValue, void 0, {
1165
1142
  equals: (a, b) => !a === !b
1166
1143
  });
1167
- return createMemo(
1168
- () => {
1169
- const c = condition();
1170
- if (c) {
1171
- const child = props.children;
1172
- const fn = typeof child === "function" && child.length > 0;
1173
- return fn ? untrack(
1174
- () => child(
1175
- keyed ? c : () => {
1176
- if (!untrack(condition)) throw narrowedError("Show");
1177
- return conditionValue();
1178
- }
1179
- )
1180
- ) : child;
1181
- }
1182
- return props.fallback;
1183
- },
1184
- void 0,
1185
- void 0
1186
- );
1144
+ return createMemo(() => {
1145
+ const c = condition();
1146
+ if (c) {
1147
+ const child = props.children;
1148
+ const fn = typeof child === "function" && child.length > 0;
1149
+ return fn ? untrack(() => child(keyed ? c : () => {
1150
+ if (!untrack(condition)) throw narrowedError("Show");
1151
+ return conditionValue();
1152
+ })) : child;
1153
+ }
1154
+ return props.fallback;
1155
+ }, void 0, void 0);
1187
1156
  }
1188
1157
  function Switch(props) {
1189
1158
  const chs = children(() => props.children);
@@ -1195,11 +1164,7 @@ function Switch(props) {
1195
1164
  const index = i;
1196
1165
  const mp = mps[i];
1197
1166
  const prevFunc = func;
1198
- const conditionValue = createMemo(
1199
- () => prevFunc() ? void 0 : mp.when,
1200
- void 0,
1201
- void 0
1202
- );
1167
+ const conditionValue = createMemo(() => prevFunc() ? void 0 : mp.when, void 0, void 0);
1203
1168
  const condition = mp.keyed ? conditionValue : createMemo(conditionValue, void 0, {
1204
1169
  equals: (a, b) => !a === !b
1205
1170
  });
@@ -1207,81 +1172,37 @@ function Switch(props) {
1207
1172
  }
1208
1173
  return func;
1209
1174
  });
1210
- return createMemo(
1211
- () => {
1212
- const sel = switchFunc()();
1213
- if (!sel) return props.fallback;
1214
- const [index, conditionValue, mp] = sel;
1215
- const child = mp.children;
1216
- const fn = typeof child === "function" && child.length > 0;
1217
- return fn ? untrack(
1218
- () => child(
1219
- mp.keyed ? conditionValue() : () => {
1220
- if (untrack(switchFunc)()?.[0] !== index) throw narrowedError("Match");
1221
- return conditionValue();
1222
- }
1223
- )
1224
- ) : child;
1225
- },
1226
- void 0,
1227
- void 0
1228
- );
1175
+ return createMemo(() => {
1176
+ const sel = switchFunc()();
1177
+ if (!sel) return props.fallback;
1178
+ const [index, conditionValue, mp] = sel;
1179
+ const child = mp.children;
1180
+ const fn = typeof child === "function" && child.length > 0;
1181
+ return fn ? untrack(() => child(mp.keyed ? conditionValue() : () => {
1182
+ if (untrack(switchFunc)()?.[0] !== index) throw narrowedError("Match");
1183
+ return conditionValue();
1184
+ })) : child;
1185
+ }, void 0, void 0);
1229
1186
  }
1230
1187
  function Match(props) {
1231
1188
  return props;
1232
1189
  }
1233
1190
  var DEV = void 0;
1234
1191
 
1235
- // ../../node_modules/.pnpm/solid-js@1.9.5/node_modules/solid-js/web/dist/web.js
1236
- var booleans = [
1237
- "allowfullscreen",
1238
- "async",
1239
- "autofocus",
1240
- "autoplay",
1241
- "checked",
1242
- "controls",
1243
- "default",
1244
- "disabled",
1245
- "formnovalidate",
1246
- "hidden",
1247
- "indeterminate",
1248
- "inert",
1249
- "ismap",
1250
- "loop",
1251
- "multiple",
1252
- "muted",
1253
- "nomodule",
1254
- "novalidate",
1255
- "open",
1256
- "playsinline",
1257
- "readonly",
1258
- "required",
1259
- "reversed",
1260
- "seamless",
1261
- "selected"
1262
- ];
1263
- var Properties = /* @__PURE__ */ new Set([
1264
- "className",
1265
- "value",
1266
- "readOnly",
1267
- "formNoValidate",
1268
- "isMap",
1269
- "noModule",
1270
- "playsInline",
1271
- ...booleans
1272
- ]);
1273
- var ChildProperties = /* @__PURE__ */ new Set([
1274
- "innerHTML",
1275
- "textContent",
1276
- "innerText",
1277
- "children"
1278
- ]);
1192
+ // ../../node_modules/.pnpm/solid-js@1.9.7/node_modules/solid-js/web/dist/web.js
1193
+ 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"];
1194
+ var Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
1195
+ var ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
1279
1196
  var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1280
1197
  className: "class",
1281
1198
  htmlFor: "for"
1282
1199
  });
1283
1200
  var PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1284
1201
  class: "className",
1202
+ novalidate: {
1203
+ $: "noValidate",
1204
+ FORM: 1
1205
+ },
1285
1206
  formnovalidate: {
1286
1207
  $: "formNoValidate",
1287
1208
  BUTTON: 1,
@@ -1309,30 +1230,7 @@ function getPropAlias(prop, tagName) {
1309
1230
  const a = PropAliases[prop];
1310
1231
  return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
1311
1232
  }
1312
- var DelegatedEvents = /* @__PURE__ */ new Set([
1313
- "beforeinput",
1314
- "click",
1315
- "dblclick",
1316
- "contextmenu",
1317
- "focusin",
1318
- "focusout",
1319
- "input",
1320
- "keydown",
1321
- "keyup",
1322
- "mousedown",
1323
- "mousemove",
1324
- "mouseout",
1325
- "mouseover",
1326
- "mouseup",
1327
- "pointerdown",
1328
- "pointermove",
1329
- "pointerout",
1330
- "pointerover",
1331
- "pointerup",
1332
- "touchend",
1333
- "touchmove",
1334
- "touchstart"
1335
- ]);
1233
+ 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"]);
1336
1234
  var SVGElements = /* @__PURE__ */ new Set([
1337
1235
  "altGlyph",
1338
1236
  "altGlyphDef",
@@ -1416,6 +1314,7 @@ var SVGNamespace = {
1416
1314
  xlink: "http://www.w3.org/1999/xlink",
1417
1315
  xml: "http://www.w3.org/XML/1998/namespace"
1418
1316
  };
1317
+ var memo = (fn) => createMemo(() => fn());
1419
1318
  function reconcileArrays(parentNode, a, b) {
1420
1319
  let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = a[aEnd - 1].nextSibling, map = null;
1421
1320
  while (aStart < aEnd || bStart < bEnd) {
@@ -1574,9 +1473,7 @@ function style(node, value, prev) {
1574
1473
  function spread(node, props = {}, isSVG, skipChildren) {
1575
1474
  const prevProps = {};
1576
1475
  if (!skipChildren) {
1577
- createRenderEffect(
1578
- () => prevProps.children = insertExpression(node, props.children, prevProps.children)
1579
- );
1476
+ createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
1580
1477
  }
1581
1478
  createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
1582
1479
  createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
@@ -1623,8 +1520,7 @@ function toPropertyName(name) {
1623
1520
  }
1624
1521
  function toggleClassKey(node, key, value) {
1625
1522
  const classNames = key.trim().split(/\s+/);
1626
- for (let i = 0, nameLen = classNames.length; i < nameLen; i++)
1627
- node.classList.toggle(classNames[i], value);
1523
+ for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
1628
1524
  }
1629
1525
  function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
1630
1526
  let isCE, isProp, isChildProp, propAlias, forceProp;
@@ -1816,11 +1712,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
1816
1712
  } else if (t === "function") {
1817
1713
  if (unwrap) {
1818
1714
  while (typeof item === "function") item = item();
1819
- dynamic = normalizeIncomingArray(
1820
- normalized,
1821
- Array.isArray(item) ? item : [item],
1822
- Array.isArray(prev) ? prev : [prev]
1823
- ) || dynamic;
1715
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
1824
1716
  } else {
1825
1717
  normalized.push(item);
1826
1718
  dynamic = true;
@@ -1845,8 +1737,7 @@ function cleanChildren(parent, current, marker, replacement) {
1845
1737
  const el = current[i];
1846
1738
  if (node !== el) {
1847
1739
  const isParent = el.parentNode === parent;
1848
- if (!inserted && !i)
1849
- isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
1740
+ if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
1850
1741
  else isParent && el.remove();
1851
1742
  } else inserted = true;
1852
1743
  }
@@ -1862,40 +1753,38 @@ function createElement(tagName, isSVG = false) {
1862
1753
  return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
1863
1754
  }
1864
1755
  function Portal(props) {
1865
- const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1756
+ const {
1757
+ useShadow
1758
+ } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1866
1759
  let content;
1867
1760
  let hydrating = !!sharedConfig.context;
1868
- createEffect(
1869
- () => {
1870
- if (hydrating) getOwner().user = hydrating = false;
1871
- content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1872
- const el = mount();
1873
- if (el instanceof HTMLHeadElement) {
1874
- const [clean, setClean] = createSignal(false);
1875
- const cleanup = () => setClean(true);
1876
- createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
1877
- onCleanup(cleanup);
1878
- } else {
1879
- const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1880
- mode: "open"
1881
- }) : container;
1882
- Object.defineProperty(container, "_$host", {
1883
- get() {
1884
- return marker.parentNode;
1885
- },
1886
- configurable: true
1887
- });
1888
- insert(renderRoot, content);
1889
- el.appendChild(container);
1890
- props.ref && props.ref(container);
1891
- onCleanup(() => el.removeChild(container));
1892
- }
1893
- },
1894
- void 0,
1895
- {
1896
- render: !hydrating
1761
+ createEffect(() => {
1762
+ if (hydrating) getOwner().user = hydrating = false;
1763
+ content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1764
+ const el = mount();
1765
+ if (el instanceof HTMLHeadElement) {
1766
+ const [clean, setClean] = createSignal(false);
1767
+ const cleanup = () => setClean(true);
1768
+ createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
1769
+ onCleanup(cleanup);
1770
+ } else {
1771
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1772
+ mode: "open"
1773
+ }) : container;
1774
+ Object.defineProperty(container, "_$host", {
1775
+ get() {
1776
+ return marker.parentNode;
1777
+ },
1778
+ configurable: true
1779
+ });
1780
+ insert(renderRoot, content);
1781
+ el.appendChild(container);
1782
+ props.ref && props.ref(container);
1783
+ onCleanup(() => el.removeChild(container));
1897
1784
  }
1898
- );
1785
+ }, void 0, {
1786
+ render: !hydrating
1787
+ });
1899
1788
  return marker;
1900
1789
  }
1901
1790
  function createDynamic(component, props) {
@@ -1918,7 +1807,7 @@ function Dynamic(props) {
1918
1807
  return createDynamic(() => props.component, others);
1919
1808
  }
1920
1809
 
1921
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/double-indexed-kv.js
1810
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/double-indexed-kv.js
1922
1811
  var DoubleIndexedKV = class {
1923
1812
  constructor() {
1924
1813
  this.keyToValue = /* @__PURE__ */ new Map();
@@ -1940,7 +1829,7 @@ var DoubleIndexedKV = class {
1940
1829
  }
1941
1830
  };
1942
1831
 
1943
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/registry.js
1832
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/registry.js
1944
1833
  var Registry = class {
1945
1834
  constructor(generateIdentifier) {
1946
1835
  this.generateIdentifier = generateIdentifier;
@@ -1966,7 +1855,7 @@ var Registry = class {
1966
1855
  }
1967
1856
  };
1968
1857
 
1969
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/class-registry.js
1858
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/class-registry.js
1970
1859
  var ClassRegistry = class extends Registry {
1971
1860
  constructor() {
1972
1861
  super((c) => c.name);
@@ -1987,7 +1876,7 @@ var ClassRegistry = class extends Registry {
1987
1876
  }
1988
1877
  };
1989
1878
 
1990
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/util.js
1879
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/util.js
1991
1880
  function valuesOfObj(record) {
1992
1881
  if ("values" in Object) {
1993
1882
  return Object.values(record);
@@ -2030,7 +1919,7 @@ function findArr(record, predicate) {
2030
1919
  return void 0;
2031
1920
  }
2032
1921
 
2033
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/custom-transformer-registry.js
1922
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/custom-transformer-registry.js
2034
1923
  var CustomTransformerRegistry = class {
2035
1924
  constructor() {
2036
1925
  this.transfomers = {};
@@ -2046,7 +1935,7 @@ var CustomTransformerRegistry = class {
2046
1935
  }
2047
1936
  };
2048
1937
 
2049
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/is.js
1938
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/is.js
2050
1939
  var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
2051
1940
  var isUndefined = (payload) => typeof payload === "undefined";
2052
1941
  var isNull = (payload) => payload === null;
@@ -2077,7 +1966,7 @@ var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
2077
1966
  var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
2078
1967
  var isURL = (payload) => payload instanceof URL;
2079
1968
 
2080
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/pathstringifier.js
1969
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/pathstringifier.js
2081
1970
  var escapeKey = (key) => key.replace(/\./g, "\\.");
2082
1971
  var stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
2083
1972
  var parsePath = (string) => {
@@ -2104,7 +1993,7 @@ var parsePath = (string) => {
2104
1993
  return result;
2105
1994
  };
2106
1995
 
2107
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/transformer.js
1996
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/transformer.js
2108
1997
  function simpleTransformation(isApplicable, annotation, transform, untransform) {
2109
1998
  return {
2110
1999
  isApplicable,
@@ -2237,7 +2126,7 @@ var classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, sup
2237
2126
  }, (v, a, superJson) => {
2238
2127
  const clazz = superJson.classRegistry.getValue(a[1]);
2239
2128
  if (!clazz) {
2240
- throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
2129
+ throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
2241
2130
  }
2242
2131
  return Object.assign(Object.create(clazz.prototype), v);
2243
2132
  });
@@ -2301,8 +2190,10 @@ var untransformValue = (json, type, superJson) => {
2301
2190
  }
2302
2191
  };
2303
2192
 
2304
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/accessDeep.js
2193
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.js
2305
2194
  var getNthKey = (value, n) => {
2195
+ if (n > value.size)
2196
+ throw new Error("index out of bounds");
2306
2197
  const keys = value.keys();
2307
2198
  while (n > 0) {
2308
2199
  keys.next();
@@ -2415,7 +2306,7 @@ var setDeep = (object, path, mapper) => {
2415
2306
  return object;
2416
2307
  };
2417
2308
 
2418
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/plainer.js
2309
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.js
2419
2310
  function traverse(tree, walker2, origin = []) {
2420
2311
  if (!tree) {
2421
2312
  return;
@@ -2602,7 +2493,7 @@ function copy(target, options = {}) {
2602
2493
  }, {});
2603
2494
  }
2604
2495
 
2605
- // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/index.js
2496
+ // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.js
2606
2497
  var SuperJSON = class {
2607
2498
  /**
2608
2499
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
@@ -2853,4 +2744,4 @@ var setupStyleSheet = (nonce, target) => {
2853
2744
  }
2854
2745
  };
2855
2746
 
2856
- export { $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, mergeProps, mutationSortFns, on, onCleanup, onMount, render, serialize, setAttribute, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };
2747
+ export { $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, memo, mergeProps, mutationSortFns, on, onCleanup, onMount, render, serialize, setAttribute, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };