@tanstack/query-devtools 5.28.10 → 5.37.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.8.14/node_modules/solid-js/dist/solid.js
1
+ // ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
3
  context: void 0,
4
4
  registry: void 0
@@ -143,9 +143,11 @@ function createResource(pSource, pFetcher, pOptions) {
143
143
  pr = null;
144
144
  key !== void 0 && (resolved = true);
145
145
  if ((p === initP || v === initP) && options.onHydrated)
146
- queueMicrotask(() => options.onHydrated(key, {
147
- value: v
148
- }));
146
+ queueMicrotask(
147
+ () => options.onHydrated(key, {
148
+ value: v
149
+ })
150
+ );
149
151
  initP = NO_INIT;
150
152
  if (Transition && p && loadedUnderTransition) {
151
153
  Transition.promises.delete(p);
@@ -201,10 +203,12 @@ function createResource(pSource, pFetcher, pOptions) {
201
203
  }
202
204
  if (Transition && pr)
203
205
  Transition.promises.delete(pr);
204
- const p = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
205
- value: value(),
206
- refetching
207
- }));
206
+ const p = initP !== NO_INIT ? initP : untrack(
207
+ () => fetcher(lookup, {
208
+ value: value(),
209
+ refetching
210
+ })
211
+ );
208
212
  if (!isPromise(p)) {
209
213
  loadEnd(pr, p, void 0, lookup);
210
214
  return p;
@@ -223,7 +227,10 @@ function createResource(pSource, pFetcher, pOptions) {
223
227
  setState(resolved ? "refreshing" : "pending");
224
228
  trigger();
225
229
  }, false);
226
- return p.then((v) => loadEnd(p, v, void 0, lookup), (e) => loadEnd(p, void 0, castError(e), lookup));
230
+ return p.then(
231
+ (v) => loadEnd(p, v, void 0, lookup),
232
+ (e) => loadEnd(p, void 0, castError(e), lookup)
233
+ );
227
234
  }
228
235
  Object.defineProperties(read, {
229
236
  state: {
@@ -253,10 +260,13 @@ function createResource(pSource, pFetcher, pOptions) {
253
260
  createComputed(() => load(false));
254
261
  else
255
262
  load(false);
256
- return [read, {
257
- refetch: load,
258
- mutate: setValue
259
- }];
263
+ return [
264
+ read,
265
+ {
266
+ refetch: load,
267
+ mutate: setValue
268
+ }
269
+ ];
260
270
  }
261
271
  function batch(fn) {
262
272
  return runUpdates(fn, false);
@@ -288,7 +298,7 @@ function on(deps, fn, options) {
288
298
  input = deps();
289
299
  if (defer) {
290
300
  defer = false;
291
- return void 0;
301
+ return prevValue;
292
302
  }
293
303
  const result = untrack(() => fn(input, prevInput, prevValue));
294
304
  prevInput = input;
@@ -307,9 +317,6 @@ function onCleanup(fn) {
307
317
  Owner.cleanups.push(fn);
308
318
  return fn;
309
319
  }
310
- function getListener() {
311
- return Listener;
312
- }
313
320
  function getOwner() {
314
321
  return Owner;
315
322
  }
@@ -462,7 +469,11 @@ function updateComputation(node) {
462
469
  return;
463
470
  cleanNode(node);
464
471
  const time = ExecCount;
465
- runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
472
+ runComputation(
473
+ node,
474
+ Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
475
+ time
476
+ );
466
477
  if (Transition && !Transition.running && Transition.sources.has(node)) {
467
478
  queueMicrotask(() => {
468
479
  runUpdates(() => {
@@ -840,13 +851,16 @@ function resolveChildren(children2) {
840
851
  function createProvider(id, options) {
841
852
  return function provider(props) {
842
853
  let res;
843
- createRenderEffect(() => res = untrack(() => {
844
- Owner.context = {
845
- ...Owner.context,
846
- [id]: props.value
847
- };
848
- return children(() => props.children);
849
- }), void 0);
854
+ createRenderEffect(
855
+ () => res = untrack(() => {
856
+ Owner.context = {
857
+ ...Owner.context,
858
+ [id]: props.value
859
+ };
860
+ return children(() => props.children);
861
+ }),
862
+ void 0
863
+ );
850
864
  return res;
851
865
  };
852
866
  }
@@ -1062,28 +1076,31 @@ function mergeProps(...sources) {
1062
1076
  sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
1063
1077
  }
1064
1078
  if (proxy) {
1065
- return new Proxy({
1066
- get(property) {
1067
- for (let i = sources.length - 1; i >= 0; i--) {
1068
- const v = resolveSource(sources[i])[property];
1069
- if (v !== void 0)
1070
- return v;
1071
- }
1072
- },
1073
- has(property) {
1074
- for (let i = sources.length - 1; i >= 0; i--) {
1075
- if (property in resolveSource(sources[i]))
1076
- return true;
1079
+ return new Proxy(
1080
+ {
1081
+ get(property) {
1082
+ for (let i = sources.length - 1; i >= 0; i--) {
1083
+ const v = resolveSource(sources[i])[property];
1084
+ if (v !== void 0)
1085
+ return v;
1086
+ }
1087
+ },
1088
+ has(property) {
1089
+ for (let i = sources.length - 1; i >= 0; i--) {
1090
+ if (property in resolveSource(sources[i]))
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)];
1077
1100
  }
1078
- return false;
1079
1101
  },
1080
- keys() {
1081
- const keys = [];
1082
- for (let i = 0; i < sources.length; i++)
1083
- keys.push(...Object.keys(resolveSource(sources[i])));
1084
- return [...new Set(keys)];
1085
- }
1086
- }, propTraps);
1102
+ propTraps
1103
+ );
1087
1104
  }
1088
1105
  const sourcesMap = {};
1089
1106
  const defined = /* @__PURE__ */ Object.create(null);
@@ -1129,29 +1146,37 @@ function splitProps(props, ...keys) {
1129
1146
  if ($PROXY in props) {
1130
1147
  const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
1131
1148
  const res = keys.map((k) => {
1132
- return new Proxy({
1133
- get(property) {
1134
- return k.includes(property) ? props[property] : void 0;
1135
- },
1136
- has(property) {
1137
- return k.includes(property) && property in props;
1149
+ return new Proxy(
1150
+ {
1151
+ get(property) {
1152
+ return k.includes(property) ? props[property] : void 0;
1153
+ },
1154
+ has(property) {
1155
+ return k.includes(property) && property in props;
1156
+ },
1157
+ keys() {
1158
+ return k.filter((property) => property in props);
1159
+ }
1138
1160
  },
1139
- keys() {
1140
- return k.filter((property) => property in props);
1141
- }
1142
- }, propTraps);
1161
+ propTraps
1162
+ );
1143
1163
  });
1144
- res.push(new Proxy({
1145
- get(property) {
1146
- return blocked.has(property) ? void 0 : props[property];
1147
- },
1148
- has(property) {
1149
- return blocked.has(property) ? false : property in props;
1150
- },
1151
- keys() {
1152
- return Object.keys(props).filter((k) => !blocked.has(k));
1153
- }
1154
- }, propTraps));
1164
+ res.push(
1165
+ new Proxy(
1166
+ {
1167
+ get(property) {
1168
+ return blocked.has(property) ? void 0 : props[property];
1169
+ },
1170
+ has(property) {
1171
+ return blocked.has(property) ? false : property in props;
1172
+ },
1173
+ keys() {
1174
+ return Object.keys(props).filter((k) => !blocked.has(k));
1175
+ }
1176
+ },
1177
+ propTraps
1178
+ )
1179
+ );
1155
1180
  return res;
1156
1181
  }
1157
1182
  const otherObject = {};
@@ -1195,17 +1220,19 @@ function lazy(fn) {
1195
1220
  comp = s;
1196
1221
  }
1197
1222
  let Comp;
1198
- return createMemo(() => (Comp = comp()) && untrack(() => {
1199
- if (false)
1200
- ;
1201
- if (!ctx)
1202
- return Comp(props);
1203
- const c = sharedConfig.context;
1204
- setHydrateContext(ctx);
1205
- const r = Comp(props);
1206
- setHydrateContext(c);
1207
- return r;
1208
- }));
1223
+ return createMemo(
1224
+ () => (Comp = comp()) && untrack(() => {
1225
+ if (false)
1226
+ ;
1227
+ if (!ctx)
1228
+ return Comp(props);
1229
+ const c = sharedConfig.context;
1230
+ setHydrateContext(ctx);
1231
+ const r = Comp(props);
1232
+ setHydrateContext(c);
1233
+ return r;
1234
+ })
1235
+ );
1209
1236
  };
1210
1237
  wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
1211
1238
  return wrap;
@@ -1233,50 +1260,70 @@ function Show(props) {
1233
1260
  const condition = createMemo(() => props.when, void 0, {
1234
1261
  equals: (a, b) => keyed ? a === b : !a === !b
1235
1262
  });
1236
- return createMemo(() => {
1237
- const c = condition();
1238
- if (c) {
1239
- const child = props.children;
1240
- const fn = typeof child === "function" && child.length > 0;
1241
- return fn ? untrack(() => child(keyed ? c : () => {
1242
- if (!untrack(condition))
1243
- throw narrowedError("Show");
1244
- return props.when;
1245
- })) : child;
1246
- }
1247
- return props.fallback;
1248
- }, void 0, void 0);
1263
+ return createMemo(
1264
+ () => {
1265
+ const c = condition();
1266
+ if (c) {
1267
+ const child = props.children;
1268
+ const fn = typeof child === "function" && child.length > 0;
1269
+ return fn ? untrack(
1270
+ () => child(
1271
+ keyed ? c : () => {
1272
+ if (!untrack(condition))
1273
+ throw narrowedError("Show");
1274
+ return props.when;
1275
+ }
1276
+ )
1277
+ ) : child;
1278
+ }
1279
+ return props.fallback;
1280
+ },
1281
+ void 0,
1282
+ void 0
1283
+ );
1249
1284
  }
1250
1285
  function Switch(props) {
1251
1286
  let keyed = false;
1252
1287
  const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
1253
- const conditions = children(() => props.children), evalConditions = createMemo(() => {
1254
- let conds = conditions();
1255
- if (!Array.isArray(conds))
1256
- conds = [conds];
1257
- for (let i = 0; i < conds.length; i++) {
1258
- const c = conds[i].when;
1259
- if (c) {
1260
- keyed = !!conds[i].keyed;
1261
- return [i, c, conds[i]];
1288
+ const conditions = children(() => props.children), evalConditions = createMemo(
1289
+ () => {
1290
+ let conds = conditions();
1291
+ if (!Array.isArray(conds))
1292
+ conds = [conds];
1293
+ for (let i = 0; i < conds.length; i++) {
1294
+ const c = conds[i].when;
1295
+ if (c) {
1296
+ keyed = !!conds[i].keyed;
1297
+ return [i, c, conds[i]];
1298
+ }
1262
1299
  }
1263
- }
1264
- return [-1];
1265
- }, void 0, {
1266
- equals
1267
- });
1268
- return createMemo(() => {
1269
- const [index, when, cond] = evalConditions();
1270
- if (index < 0)
1271
- return props.fallback;
1272
- const c = cond.children;
1273
- const fn = typeof c === "function" && c.length > 0;
1274
- return fn ? untrack(() => c(keyed ? when : () => {
1275
- if (untrack(evalConditions)[0] !== index)
1276
- throw narrowedError("Match");
1277
- return cond.when;
1278
- })) : c;
1279
- }, void 0, void 0);
1300
+ return [-1];
1301
+ },
1302
+ void 0,
1303
+ {
1304
+ equals
1305
+ }
1306
+ );
1307
+ return createMemo(
1308
+ () => {
1309
+ const [index, when, cond] = evalConditions();
1310
+ if (index < 0)
1311
+ return props.fallback;
1312
+ const c = cond.children;
1313
+ const fn = typeof c === "function" && c.length > 0;
1314
+ return fn ? untrack(
1315
+ () => c(
1316
+ keyed ? when : () => {
1317
+ if (untrack(evalConditions)[0] !== index)
1318
+ throw narrowedError("Match");
1319
+ return cond.when;
1320
+ }
1321
+ )
1322
+ ) : c;
1323
+ },
1324
+ void 0,
1325
+ void 0
1326
+ );
1280
1327
  }
1281
1328
  function Match(props) {
1282
1329
  return props;
@@ -1284,10 +1331,50 @@ function Match(props) {
1284
1331
  var SuspenseListContext = createContext();
1285
1332
  var DEV = void 0;
1286
1333
 
1287
- // ../../node_modules/.pnpm/solid-js@1.8.14/node_modules/solid-js/web/dist/web.js
1288
- 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"];
1289
- var Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
1290
- var ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
1334
+ // ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/web/dist/web.js
1335
+ var booleans = [
1336
+ "allowfullscreen",
1337
+ "async",
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
+ ]);
1291
1378
  var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1292
1379
  className: "class",
1293
1380
  htmlFor: "for"
@@ -1321,7 +1408,30 @@ function getPropAlias(prop, tagName) {
1321
1408
  const a = PropAliases[prop];
1322
1409
  return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
1323
1410
  }
1324
- 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"]);
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
+ ]);
1325
1435
  var SVGElements = /* @__PURE__ */ new Set([
1326
1436
  "altGlyph",
1327
1437
  "altGlyphDef",
@@ -1345,6 +1455,7 @@ var SVGElements = /* @__PURE__ */ new Set([
1345
1455
  "feDiffuseLighting",
1346
1456
  "feDisplacementMap",
1347
1457
  "feDistantLight",
1458
+ "feDropShadow",
1348
1459
  "feFlood",
1349
1460
  "feFuncA",
1350
1461
  "feFuncB",
@@ -1501,7 +1612,7 @@ function clearDelegatedEvents(document2 = window.document) {
1501
1612
  }
1502
1613
  }
1503
1614
  function setAttribute(node, name, value) {
1504
- if (sharedConfig.context)
1615
+ if (!!sharedConfig.context && node.isConnected)
1505
1616
  return;
1506
1617
  if (value == null)
1507
1618
  node.removeAttribute(name);
@@ -1509,7 +1620,7 @@ function setAttribute(node, name, value) {
1509
1620
  node.setAttribute(name, value);
1510
1621
  }
1511
1622
  function setAttributeNS(node, namespace, name, value) {
1512
- if (sharedConfig.context)
1623
+ if (!!sharedConfig.context && node.isConnected)
1513
1624
  return;
1514
1625
  if (value == null)
1515
1626
  node.removeAttributeNS(namespace, name);
@@ -1517,7 +1628,7 @@ function setAttributeNS(node, namespace, name, value) {
1517
1628
  node.setAttributeNS(namespace, name, value);
1518
1629
  }
1519
1630
  function className(node, value) {
1520
- if (sharedConfig.context)
1631
+ if (!!sharedConfig.context && node.isConnected)
1521
1632
  return;
1522
1633
  if (value == null)
1523
1634
  node.removeAttribute("class");
@@ -1582,9 +1693,13 @@ function style(node, value, prev) {
1582
1693
  function spread(node, props = {}, isSVG, skipChildren) {
1583
1694
  const prevProps = {};
1584
1695
  if (!skipChildren) {
1585
- createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
1696
+ createRenderEffect(
1697
+ () => prevProps.children = insertExpression(node, props.children, prevProps.children)
1698
+ );
1586
1699
  }
1587
- createRenderEffect(() => props.ref && props.ref(node));
1700
+ createRenderEffect(
1701
+ () => typeof props.ref === "function" ? use(props.ref, node) : props.ref = node
1702
+ );
1588
1703
  createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
1589
1704
  return prevProps;
1590
1705
  }
@@ -1671,7 +1786,7 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
1671
1786
  if (forceProp) {
1672
1787
  prop = prop.slice(5);
1673
1788
  isProp = true;
1674
- } else if (sharedConfig.context)
1789
+ } else if (!!sharedConfig.context && node.isConnected)
1675
1790
  return value;
1676
1791
  if (prop === "class" || prop === "className")
1677
1792
  className(node, value);
@@ -1717,7 +1832,8 @@ function eventHandler(e) {
1717
1832
  }
1718
1833
  }
1719
1834
  function insertExpression(parent, value, current, marker, unwrapArray) {
1720
- if (sharedConfig.context) {
1835
+ const hydrating = !!sharedConfig.context && parent.isConnected;
1836
+ if (hydrating) {
1721
1837
  !current && (current = [...parent.childNodes]);
1722
1838
  let cleaned = [];
1723
1839
  for (let i = 0; i < current.length; i++) {
@@ -1736,7 +1852,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1736
1852
  const t = typeof value, multi = marker !== void 0;
1737
1853
  parent = multi && current[0] && current[0].parentNode || parent;
1738
1854
  if (t === "string" || t === "number") {
1739
- if (sharedConfig.context)
1855
+ if (hydrating)
1740
1856
  return current;
1741
1857
  if (t === "number")
1742
1858
  value = value.toString();
@@ -1754,7 +1870,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1754
1870
  current = parent.textContent = value;
1755
1871
  }
1756
1872
  } else if (value == null || t === "boolean") {
1757
- if (sharedConfig.context)
1873
+ if (hydrating)
1758
1874
  return current;
1759
1875
  current = cleanChildren(parent, current, marker);
1760
1876
  } else if (t === "function") {
@@ -1772,7 +1888,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1772
1888
  createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
1773
1889
  return () => current;
1774
1890
  }
1775
- if (sharedConfig.context) {
1891
+ if (hydrating) {
1776
1892
  if (!array.length)
1777
1893
  return current;
1778
1894
  if (marker === void 0)
@@ -1798,7 +1914,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1798
1914
  }
1799
1915
  current = array;
1800
1916
  } else if (value.nodeType) {
1801
- if (sharedConfig.context && value.parentNode)
1917
+ if (hydrating && value.parentNode)
1802
1918
  return current = multi ? [value] : value;
1803
1919
  if (Array.isArray(current)) {
1804
1920
  if (multi)
@@ -1816,7 +1932,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1816
1932
  function normalizeIncomingArray(normalized, array, current, unwrap) {
1817
1933
  let dynamic = false;
1818
1934
  for (let i = 0, len = array.length; i < len; i++) {
1819
- let item = array[i], prev = current && current[i], t;
1935
+ let item = array[i], prev = current && current[normalized.length], t;
1820
1936
  if (item == null || item === true || item === false)
1821
1937
  ;
1822
1938
  else if ((t = typeof item) === "object" && item.nodeType) {
@@ -1827,7 +1943,11 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
1827
1943
  if (unwrap) {
1828
1944
  while (typeof item === "function")
1829
1945
  item = item();
1830
- dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
1946
+ dynamic = normalizeIncomingArray(
1947
+ normalized,
1948
+ Array.isArray(item) ? item : [item],
1949
+ Array.isArray(prev) ? prev : [prev]
1950
+ ) || dynamic;
1831
1951
  } else {
1832
1952
  normalized.push(item);
1833
1953
  dynamic = true;
@@ -1878,39 +1998,41 @@ function createElement(tagName, isSVG = false) {
1878
1998
  return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
1879
1999
  }
1880
2000
  function Portal(props) {
1881
- const {
1882
- useShadow
1883
- } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
2001
+ const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1884
2002
  let content;
1885
2003
  let hydrating = !!sharedConfig.context;
1886
- createEffect(() => {
1887
- if (hydrating)
1888
- getOwner().user = hydrating = false;
1889
- content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1890
- const el = mount();
1891
- if (el instanceof HTMLHeadElement) {
1892
- const [clean, setClean] = createSignal(false);
1893
- const cleanup = () => setClean(true);
1894
- createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
1895
- onCleanup(cleanup);
1896
- } else {
1897
- const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1898
- mode: "open"
1899
- }) : container;
1900
- Object.defineProperty(container, "_$host", {
1901
- get() {
1902
- return marker.parentNode;
1903
- },
1904
- configurable: true
1905
- });
1906
- insert(renderRoot, content);
1907
- el.appendChild(container);
1908
- props.ref && props.ref(container);
1909
- onCleanup(() => el.removeChild(container));
2004
+ createEffect(
2005
+ () => {
2006
+ if (hydrating)
2007
+ getOwner().user = hydrating = false;
2008
+ content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
2009
+ const el = mount();
2010
+ if (el instanceof HTMLHeadElement) {
2011
+ const [clean, setClean] = createSignal(false);
2012
+ const cleanup = () => setClean(true);
2013
+ createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
2014
+ onCleanup(cleanup);
2015
+ } else {
2016
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
2017
+ mode: "open"
2018
+ }) : container;
2019
+ Object.defineProperty(container, "_$host", {
2020
+ get() {
2021
+ return marker.parentNode;
2022
+ },
2023
+ configurable: true
2024
+ });
2025
+ insert(renderRoot, content);
2026
+ el.appendChild(container);
2027
+ props.ref && props.ref(container);
2028
+ onCleanup(() => el.removeChild(container));
2029
+ }
2030
+ },
2031
+ void 0,
2032
+ {
2033
+ render: !hydrating
1910
2034
  }
1911
- }, void 0, {
1912
- render: !hydrating
1913
- });
2035
+ );
1914
2036
  return marker;
1915
2037
  }
1916
2038
  function Dynamic(props) {
@@ -1930,140 +2052,82 @@ function Dynamic(props) {
1930
2052
  });
1931
2053
  }
1932
2054
 
1933
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/double-indexed-kv.js
1934
- var DoubleIndexedKV = (
1935
- /** @class */
1936
- function() {
1937
- function DoubleIndexedKV2() {
1938
- this.keyToValue = /* @__PURE__ */ new Map();
1939
- this.valueToKey = /* @__PURE__ */ new Map();
1940
- }
1941
- DoubleIndexedKV2.prototype.set = function(key, value) {
1942
- this.keyToValue.set(key, value);
1943
- this.valueToKey.set(value, key);
1944
- };
1945
- DoubleIndexedKV2.prototype.getByKey = function(key) {
1946
- return this.keyToValue.get(key);
1947
- };
1948
- DoubleIndexedKV2.prototype.getByValue = function(value) {
1949
- return this.valueToKey.get(value);
1950
- };
1951
- DoubleIndexedKV2.prototype.clear = function() {
1952
- this.keyToValue.clear();
1953
- this.valueToKey.clear();
1954
- };
1955
- return DoubleIndexedKV2;
1956
- }()
1957
- );
2055
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/double-indexed-kv.js
2056
+ var DoubleIndexedKV = class {
2057
+ constructor() {
2058
+ this.keyToValue = /* @__PURE__ */ new Map();
2059
+ this.valueToKey = /* @__PURE__ */ new Map();
2060
+ }
2061
+ set(key, value) {
2062
+ this.keyToValue.set(key, value);
2063
+ this.valueToKey.set(value, key);
2064
+ }
2065
+ getByKey(key) {
2066
+ return this.keyToValue.get(key);
2067
+ }
2068
+ getByValue(value) {
2069
+ return this.valueToKey.get(value);
2070
+ }
2071
+ clear() {
2072
+ this.keyToValue.clear();
2073
+ this.valueToKey.clear();
2074
+ }
2075
+ };
1958
2076
 
1959
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/registry.js
1960
- var Registry = (
1961
- /** @class */
1962
- function() {
1963
- function Registry2(generateIdentifier) {
1964
- this.generateIdentifier = generateIdentifier;
1965
- this.kv = new DoubleIndexedKV();
1966
- }
1967
- Registry2.prototype.register = function(value, identifier) {
1968
- if (this.kv.getByValue(value)) {
1969
- return;
1970
- }
1971
- if (!identifier) {
1972
- identifier = this.generateIdentifier(value);
1973
- }
1974
- this.kv.set(identifier, value);
1975
- };
1976
- Registry2.prototype.clear = function() {
1977
- this.kv.clear();
1978
- };
1979
- Registry2.prototype.getIdentifier = function(value) {
1980
- return this.kv.getByValue(value);
1981
- };
1982
- Registry2.prototype.getValue = function(identifier) {
1983
- return this.kv.getByKey(identifier);
1984
- };
1985
- return Registry2;
1986
- }()
1987
- );
2077
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/registry.js
2078
+ var Registry = class {
2079
+ constructor(generateIdentifier) {
2080
+ this.generateIdentifier = generateIdentifier;
2081
+ this.kv = new DoubleIndexedKV();
2082
+ }
2083
+ register(value, identifier) {
2084
+ if (this.kv.getByValue(value)) {
2085
+ return;
2086
+ }
2087
+ if (!identifier) {
2088
+ identifier = this.generateIdentifier(value);
2089
+ }
2090
+ this.kv.set(identifier, value);
2091
+ }
2092
+ clear() {
2093
+ this.kv.clear();
2094
+ }
2095
+ getIdentifier(value) {
2096
+ return this.kv.getByValue(value);
2097
+ }
2098
+ getValue(identifier) {
2099
+ return this.kv.getByKey(identifier);
2100
+ }
2101
+ };
1988
2102
 
1989
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js
1990
- var __extends = /* @__PURE__ */ function() {
1991
- var extendStatics = function(d, b) {
1992
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1993
- d2.__proto__ = b2;
1994
- } || function(d2, b2) {
1995
- for (var p in b2)
1996
- if (Object.prototype.hasOwnProperty.call(b2, p))
1997
- d2[p] = b2[p];
1998
- };
1999
- return extendStatics(d, b);
2000
- };
2001
- return function(d, b) {
2002
- if (typeof b !== "function" && b !== null)
2003
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2004
- extendStatics(d, b);
2005
- function __() {
2006
- this.constructor = d;
2007
- }
2008
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2009
- };
2010
- }();
2011
- var ClassRegistry = (
2012
- /** @class */
2013
- function(_super) {
2014
- __extends(ClassRegistry2, _super);
2015
- function ClassRegistry2() {
2016
- var _this = _super.call(this, function(c) {
2017
- return c.name;
2018
- }) || this;
2019
- _this.classToAllowedProps = /* @__PURE__ */ new Map();
2020
- return _this;
2021
- }
2022
- ClassRegistry2.prototype.register = function(value, options) {
2023
- if (typeof options === "object") {
2024
- if (options.allowProps) {
2025
- this.classToAllowedProps.set(value, options.allowProps);
2026
- }
2027
- _super.prototype.register.call(this, value, options.identifier);
2028
- } else {
2029
- _super.prototype.register.call(this, value, options);
2103
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/class-registry.js
2104
+ var ClassRegistry = class extends Registry {
2105
+ constructor() {
2106
+ super((c) => c.name);
2107
+ this.classToAllowedProps = /* @__PURE__ */ new Map();
2108
+ }
2109
+ register(value, options) {
2110
+ if (typeof options === "object") {
2111
+ if (options.allowProps) {
2112
+ this.classToAllowedProps.set(value, options.allowProps);
2030
2113
  }
2031
- };
2032
- ClassRegistry2.prototype.getAllowedProps = function(value) {
2033
- return this.classToAllowedProps.get(value);
2034
- };
2035
- return ClassRegistry2;
2036
- }(Registry)
2037
- );
2038
-
2039
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/util.js
2040
- var __read = function(o, n) {
2041
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2042
- if (!m)
2043
- return o;
2044
- var i = m.call(o), r, ar = [], e;
2045
- try {
2046
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
2047
- ar.push(r.value);
2048
- } catch (error) {
2049
- e = { error };
2050
- } finally {
2051
- try {
2052
- if (r && !r.done && (m = i["return"]))
2053
- m.call(i);
2054
- } finally {
2055
- if (e)
2056
- throw e.error;
2114
+ super.register(value, options.identifier);
2115
+ } else {
2116
+ super.register(value, options);
2057
2117
  }
2058
2118
  }
2059
- return ar;
2119
+ getAllowedProps(value) {
2120
+ return this.classToAllowedProps.get(value);
2121
+ }
2060
2122
  };
2123
+
2124
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/util.js
2061
2125
  function valuesOfObj(record) {
2062
2126
  if ("values" in Object) {
2063
2127
  return Object.values(record);
2064
2128
  }
2065
- var values = [];
2066
- for (var key in record) {
2129
+ const values = [];
2130
+ for (const key in record) {
2067
2131
  if (record.hasOwnProperty(key)) {
2068
2132
  values.push(record[key]);
2069
2133
  }
@@ -2071,13 +2135,13 @@ function valuesOfObj(record) {
2071
2135
  return values;
2072
2136
  }
2073
2137
  function find(record, predicate) {
2074
- var values = valuesOfObj(record);
2138
+ const values = valuesOfObj(record);
2075
2139
  if ("find" in values) {
2076
2140
  return values.find(predicate);
2077
2141
  }
2078
- var valuesNotNever = values;
2079
- for (var i = 0; i < valuesNotNever.length; i++) {
2080
- var value = valuesNotNever[i];
2142
+ const valuesNotNever = values;
2143
+ for (let i = 0; i < valuesNotNever.length; i++) {
2144
+ const value = valuesNotNever[i];
2081
2145
  if (predicate(value)) {
2082
2146
  return value;
2083
2147
  }
@@ -2085,17 +2149,14 @@ function find(record, predicate) {
2085
2149
  return void 0;
2086
2150
  }
2087
2151
  function forEach(record, run) {
2088
- Object.entries(record).forEach(function(_a) {
2089
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
2090
- return run(value, key);
2091
- });
2152
+ Object.entries(record).forEach(([key, value]) => run(value, key));
2092
2153
  }
2093
2154
  function includes(arr, value) {
2094
2155
  return arr.indexOf(value) !== -1;
2095
2156
  }
2096
2157
  function findArr(record, predicate) {
2097
- for (var i = 0; i < record.length; i++) {
2098
- var value = record[i];
2158
+ for (let i = 0; i < record.length; i++) {
2159
+ const value = record[i];
2099
2160
  if (predicate(value)) {
2100
2161
  return value;
2101
2162
  }
@@ -2103,39 +2164,27 @@ function findArr(record, predicate) {
2103
2164
  return void 0;
2104
2165
  }
2105
2166
 
2106
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/custom-transformer-registry.js
2107
- var CustomTransformerRegistry = (
2108
- /** @class */
2109
- function() {
2110
- function CustomTransformerRegistry2() {
2111
- this.transfomers = {};
2112
- }
2113
- CustomTransformerRegistry2.prototype.register = function(transformer) {
2114
- this.transfomers[transformer.name] = transformer;
2115
- };
2116
- CustomTransformerRegistry2.prototype.findApplicable = function(v) {
2117
- return find(this.transfomers, function(transformer) {
2118
- return transformer.isApplicable(v);
2119
- });
2120
- };
2121
- CustomTransformerRegistry2.prototype.findByName = function(name) {
2122
- return this.transfomers[name];
2123
- };
2124
- return CustomTransformerRegistry2;
2125
- }()
2126
- );
2127
-
2128
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/is.js
2129
- var getType = function(payload) {
2130
- return Object.prototype.toString.call(payload).slice(8, -1);
2131
- };
2132
- var isUndefined = function(payload) {
2133
- return typeof payload === "undefined";
2134
- };
2135
- var isNull = function(payload) {
2136
- return payload === null;
2167
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/custom-transformer-registry.js
2168
+ var CustomTransformerRegistry = class {
2169
+ constructor() {
2170
+ this.transfomers = {};
2171
+ }
2172
+ register(transformer) {
2173
+ this.transfomers[transformer.name] = transformer;
2174
+ }
2175
+ findApplicable(v) {
2176
+ return find(this.transfomers, (transformer) => transformer.isApplicable(v));
2177
+ }
2178
+ findByName(name) {
2179
+ return this.transfomers[name];
2180
+ }
2137
2181
  };
2138
- var isPlainObject = function(payload) {
2182
+
2183
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/is.js
2184
+ var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
2185
+ var isUndefined = (payload) => typeof payload === "undefined";
2186
+ var isNull = (payload) => payload === null;
2187
+ var isPlainObject = (payload) => {
2139
2188
  if (typeof payload !== "object" || payload === null)
2140
2189
  return false;
2141
2190
  if (payload === Object.prototype)
@@ -2144,77 +2193,39 @@ var isPlainObject = function(payload) {
2144
2193
  return true;
2145
2194
  return Object.getPrototypeOf(payload) === Object.prototype;
2146
2195
  };
2147
- var isEmptyObject = function(payload) {
2148
- return isPlainObject(payload) && Object.keys(payload).length === 0;
2149
- };
2150
- var isArray = function(payload) {
2151
- return Array.isArray(payload);
2152
- };
2153
- var isString = function(payload) {
2154
- return typeof payload === "string";
2155
- };
2156
- var isNumber = function(payload) {
2157
- return typeof payload === "number" && !isNaN(payload);
2158
- };
2159
- var isBoolean = function(payload) {
2160
- return typeof payload === "boolean";
2161
- };
2162
- var isRegExp = function(payload) {
2163
- return payload instanceof RegExp;
2164
- };
2165
- var isMap = function(payload) {
2166
- return payload instanceof Map;
2167
- };
2168
- var isSet = function(payload) {
2169
- return payload instanceof Set;
2170
- };
2171
- var isSymbol = function(payload) {
2172
- return getType(payload) === "Symbol";
2173
- };
2174
- var isDate = function(payload) {
2175
- return payload instanceof Date && !isNaN(payload.valueOf());
2176
- };
2177
- var isError = function(payload) {
2178
- return payload instanceof Error;
2179
- };
2180
- var isNaNValue = function(payload) {
2181
- return typeof payload === "number" && isNaN(payload);
2182
- };
2183
- var isPrimitive = function(payload) {
2184
- return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
2185
- };
2186
- var isBigint = function(payload) {
2187
- return typeof payload === "bigint";
2188
- };
2189
- var isInfinite = function(payload) {
2190
- return payload === Infinity || payload === -Infinity;
2191
- };
2192
- var isTypedArray = function(payload) {
2193
- return ArrayBuffer.isView(payload) && !(payload instanceof DataView);
2194
- };
2195
- var isURL = function(payload) {
2196
- return payload instanceof URL;
2197
- };
2196
+ var isEmptyObject = (payload) => isPlainObject(payload) && Object.keys(payload).length === 0;
2197
+ var isArray = (payload) => Array.isArray(payload);
2198
+ var isString = (payload) => typeof payload === "string";
2199
+ var isNumber = (payload) => typeof payload === "number" && !isNaN(payload);
2200
+ var isBoolean = (payload) => typeof payload === "boolean";
2201
+ var isRegExp = (payload) => payload instanceof RegExp;
2202
+ var isMap = (payload) => payload instanceof Map;
2203
+ var isSet = (payload) => payload instanceof Set;
2204
+ var isSymbol = (payload) => getType(payload) === "Symbol";
2205
+ var isDate = (payload) => payload instanceof Date && !isNaN(payload.valueOf());
2206
+ var isError = (payload) => payload instanceof Error;
2207
+ var isNaNValue = (payload) => typeof payload === "number" && isNaN(payload);
2208
+ var isPrimitive = (payload) => isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
2209
+ var isBigint = (payload) => typeof payload === "bigint";
2210
+ var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
2211
+ var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
2212
+ var isURL = (payload) => payload instanceof URL;
2198
2213
 
2199
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/pathstringifier.js
2200
- var escapeKey = function(key) {
2201
- return key.replace(/\./g, "\\.");
2202
- };
2203
- var stringifyPath = function(path) {
2204
- return path.map(String).map(escapeKey).join(".");
2205
- };
2206
- var parsePath = function(string) {
2207
- var result = [];
2208
- var segment = "";
2209
- for (var i = 0; i < string.length; i++) {
2210
- var char = string.charAt(i);
2211
- var isEscapedDot = char === "\\" && string.charAt(i + 1) === ".";
2214
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/pathstringifier.js
2215
+ var escapeKey = (key) => key.replace(/\./g, "\\.");
2216
+ var stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
2217
+ var parsePath = (string) => {
2218
+ const result = [];
2219
+ let segment = "";
2220
+ for (let i = 0; i < string.length; i++) {
2221
+ let char = string.charAt(i);
2222
+ const isEscapedDot = char === "\\" && string.charAt(i + 1) === ".";
2212
2223
  if (isEscapedDot) {
2213
2224
  segment += ".";
2214
2225
  i++;
2215
2226
  continue;
2216
2227
  }
2217
- var isEndOfSegment = char === ".";
2228
+ const isEndOfSegment = char === ".";
2218
2229
  if (isEndOfSegment) {
2219
2230
  result.push(segment);
2220
2231
  segment = "";
@@ -2222,50 +2233,12 @@ var parsePath = function(string) {
2222
2233
  }
2223
2234
  segment += char;
2224
2235
  }
2225
- var lastSegment = segment;
2236
+ const lastSegment = segment;
2226
2237
  result.push(lastSegment);
2227
2238
  return result;
2228
2239
  };
2229
2240
 
2230
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/transformer.js
2231
- var __assign = function() {
2232
- __assign = Object.assign || function(t) {
2233
- for (var s, i = 1, n = arguments.length; i < n; i++) {
2234
- s = arguments[i];
2235
- for (var p in s)
2236
- if (Object.prototype.hasOwnProperty.call(s, p))
2237
- t[p] = s[p];
2238
- }
2239
- return t;
2240
- };
2241
- return __assign.apply(this, arguments);
2242
- };
2243
- var __read2 = function(o, n) {
2244
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2245
- if (!m)
2246
- return o;
2247
- var i = m.call(o), r, ar = [], e;
2248
- try {
2249
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
2250
- ar.push(r.value);
2251
- } catch (error) {
2252
- e = { error };
2253
- } finally {
2254
- try {
2255
- if (r && !r.done && (m = i["return"]))
2256
- m.call(i);
2257
- } finally {
2258
- if (e)
2259
- throw e.error;
2260
- }
2261
- }
2262
- return ar;
2263
- };
2264
- var __spreadArray = function(to, from) {
2265
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
2266
- to[j] = from[i];
2267
- return to;
2268
- };
2241
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/transformer.js
2269
2242
  function simpleTransformation(isApplicable, annotation, transform, untransform) {
2270
2243
  return {
2271
2244
  isApplicable,
@@ -2275,47 +2248,35 @@ function simpleTransformation(isApplicable, annotation, transform, untransform)
2275
2248
  };
2276
2249
  }
2277
2250
  var simpleRules = [
2278
- simpleTransformation(isUndefined, "undefined", function() {
2279
- return null;
2280
- }, function() {
2281
- return void 0;
2282
- }),
2283
- simpleTransformation(isBigint, "bigint", function(v) {
2284
- return v.toString();
2285
- }, function(v) {
2251
+ simpleTransformation(isUndefined, "undefined", () => null, () => void 0),
2252
+ simpleTransformation(isBigint, "bigint", (v) => v.toString(), (v) => {
2286
2253
  if (typeof BigInt !== "undefined") {
2287
2254
  return BigInt(v);
2288
2255
  }
2289
2256
  return v;
2290
2257
  }),
2291
- simpleTransformation(isDate, "Date", function(v) {
2292
- return v.toISOString();
2293
- }, function(v) {
2294
- return new Date(v);
2295
- }),
2296
- simpleTransformation(isError, "Error", function(v, superJson) {
2297
- var baseError = {
2258
+ simpleTransformation(isDate, "Date", (v) => v.toISOString(), (v) => new Date(v)),
2259
+ simpleTransformation(isError, "Error", (v, superJson) => {
2260
+ const baseError = {
2298
2261
  name: v.name,
2299
2262
  message: v.message
2300
2263
  };
2301
- superJson.allowedErrorProps.forEach(function(prop) {
2264
+ superJson.allowedErrorProps.forEach((prop) => {
2302
2265
  baseError[prop] = v[prop];
2303
2266
  });
2304
2267
  return baseError;
2305
- }, function(v, superJson) {
2306
- var e = new Error(v.message);
2268
+ }, (v, superJson) => {
2269
+ const e = new Error(v.message);
2307
2270
  e.name = v.name;
2308
2271
  e.stack = v.stack;
2309
- superJson.allowedErrorProps.forEach(function(prop) {
2272
+ superJson.allowedErrorProps.forEach((prop) => {
2310
2273
  e[prop] = v[prop];
2311
2274
  });
2312
2275
  return e;
2313
2276
  }),
2314
- simpleTransformation(isRegExp, "regexp", function(v) {
2315
- return "" + v;
2316
- }, function(regex) {
2317
- var body = regex.slice(1, regex.lastIndexOf("/"));
2318
- var flags = regex.slice(regex.lastIndexOf("/") + 1);
2277
+ simpleTransformation(isRegExp, "regexp", (v) => "" + v, (regex) => {
2278
+ const body = regex.slice(1, regex.lastIndexOf("/"));
2279
+ const flags = regex.slice(regex.lastIndexOf("/") + 1);
2319
2280
  return new RegExp(body, flags);
2320
2281
  }),
2321
2282
  simpleTransformation(
@@ -2323,21 +2284,11 @@ var simpleRules = [
2323
2284
  "set",
2324
2285
  // (sets only exist in es6+)
2325
2286
  // eslint-disable-next-line es5/no-es6-methods
2326
- function(v) {
2327
- return __spreadArray([], __read2(v.values()));
2328
- },
2329
- function(v) {
2330
- return new Set(v);
2331
- }
2287
+ (v) => [...v.values()],
2288
+ (v) => new Set(v)
2332
2289
  ),
2333
- simpleTransformation(isMap, "map", function(v) {
2334
- return __spreadArray([], __read2(v.entries()));
2335
- }, function(v) {
2336
- return new Map(v);
2337
- }),
2338
- simpleTransformation(function(v) {
2339
- return isNaNValue(v) || isInfinite(v);
2340
- }, "number", function(v) {
2290
+ simpleTransformation(isMap, "map", (v) => [...v.entries()], (v) => new Map(v)),
2291
+ simpleTransformation((v) => isNaNValue(v) || isInfinite(v), "number", (v) => {
2341
2292
  if (isNaNValue(v)) {
2342
2293
  return "NaN";
2343
2294
  }
@@ -2347,16 +2298,10 @@ var simpleRules = [
2347
2298
  return "-Infinity";
2348
2299
  }
2349
2300
  }, Number),
2350
- simpleTransformation(function(v) {
2351
- return v === 0 && 1 / v === -Infinity;
2352
- }, "number", function() {
2301
+ simpleTransformation((v) => v === 0 && 1 / v === -Infinity, "number", () => {
2353
2302
  return "-0";
2354
2303
  }, Number),
2355
- simpleTransformation(isURL, "URL", function(v) {
2356
- return v.toString();
2357
- }, function(v) {
2358
- return new URL(v);
2359
- })
2304
+ simpleTransformation(isURL, "URL", (v) => v.toString(), (v) => new URL(v))
2360
2305
  ];
2361
2306
  function compositeTransformation(isApplicable, annotation, transform, untransform) {
2362
2307
  return {
@@ -2366,19 +2311,17 @@ function compositeTransformation(isApplicable, annotation, transform, untransfor
2366
2311
  untransform
2367
2312
  };
2368
2313
  }
2369
- var symbolRule = compositeTransformation(function(s, superJson) {
2314
+ var symbolRule = compositeTransformation((s, superJson) => {
2370
2315
  if (isSymbol(s)) {
2371
- var isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
2316
+ const isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
2372
2317
  return isRegistered;
2373
2318
  }
2374
2319
  return false;
2375
- }, function(s, superJson) {
2376
- var identifier = superJson.symbolRegistry.getIdentifier(s);
2320
+ }, (s, superJson) => {
2321
+ const identifier = superJson.symbolRegistry.getIdentifier(s);
2377
2322
  return ["symbol", identifier];
2378
- }, function(v) {
2379
- return v.description;
2380
- }, function(_, a, superJson) {
2381
- var value = superJson.symbolRegistry.getValue(a[1]);
2323
+ }, (v) => v.description, (_, a, superJson) => {
2324
+ const value = superJson.symbolRegistry.getValue(a[1]);
2382
2325
  if (!value) {
2383
2326
  throw new Error("Trying to deserialize unknown symbol");
2384
2327
  }
@@ -2394,77 +2337,69 @@ var constructorToName = [
2394
2337
  Float32Array,
2395
2338
  Float64Array,
2396
2339
  Uint8ClampedArray
2397
- ].reduce(function(obj, ctor) {
2340
+ ].reduce((obj, ctor) => {
2398
2341
  obj[ctor.name] = ctor;
2399
2342
  return obj;
2400
2343
  }, {});
2401
- var typedArrayRule = compositeTransformation(isTypedArray, function(v) {
2402
- return ["typed-array", v.constructor.name];
2403
- }, function(v) {
2404
- return __spreadArray([], __read2(v));
2405
- }, function(v, a) {
2406
- var ctor = constructorToName[a[1]];
2344
+ var typedArrayRule = compositeTransformation(isTypedArray, (v) => ["typed-array", v.constructor.name], (v) => [...v], (v, a) => {
2345
+ const ctor = constructorToName[a[1]];
2407
2346
  if (!ctor) {
2408
2347
  throw new Error("Trying to deserialize unknown typed array");
2409
2348
  }
2410
2349
  return new ctor(v);
2411
2350
  });
2412
2351
  function isInstanceOfRegisteredClass(potentialClass, superJson) {
2413
- if (potentialClass === null || potentialClass === void 0 ? void 0 : potentialClass.constructor) {
2414
- var isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
2352
+ if (potentialClass?.constructor) {
2353
+ const isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
2415
2354
  return isRegistered;
2416
2355
  }
2417
2356
  return false;
2418
2357
  }
2419
- var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(clazz, superJson) {
2420
- var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
2358
+ var classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, superJson) => {
2359
+ const identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
2421
2360
  return ["class", identifier];
2422
- }, function(clazz, superJson) {
2423
- var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
2361
+ }, (clazz, superJson) => {
2362
+ const allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
2424
2363
  if (!allowedProps) {
2425
- return __assign({}, clazz);
2364
+ return { ...clazz };
2426
2365
  }
2427
- var result = {};
2428
- allowedProps.forEach(function(prop) {
2366
+ const result = {};
2367
+ allowedProps.forEach((prop) => {
2429
2368
  result[prop] = clazz[prop];
2430
2369
  });
2431
2370
  return result;
2432
- }, function(v, a, superJson) {
2433
- var clazz = superJson.classRegistry.getValue(a[1]);
2371
+ }, (v, a, superJson) => {
2372
+ const clazz = superJson.classRegistry.getValue(a[1]);
2434
2373
  if (!clazz) {
2435
2374
  throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
2436
2375
  }
2437
2376
  return Object.assign(Object.create(clazz.prototype), v);
2438
2377
  });
2439
- var customRule = compositeTransformation(function(value, superJson) {
2378
+ var customRule = compositeTransformation((value, superJson) => {
2440
2379
  return !!superJson.customTransformerRegistry.findApplicable(value);
2441
- }, function(value, superJson) {
2442
- var transformer = superJson.customTransformerRegistry.findApplicable(value);
2380
+ }, (value, superJson) => {
2381
+ const transformer = superJson.customTransformerRegistry.findApplicable(value);
2443
2382
  return ["custom", transformer.name];
2444
- }, function(value, superJson) {
2445
- var transformer = superJson.customTransformerRegistry.findApplicable(value);
2383
+ }, (value, superJson) => {
2384
+ const transformer = superJson.customTransformerRegistry.findApplicable(value);
2446
2385
  return transformer.serialize(value);
2447
- }, function(v, a, superJson) {
2448
- var transformer = superJson.customTransformerRegistry.findByName(a[1]);
2386
+ }, (v, a, superJson) => {
2387
+ const transformer = superJson.customTransformerRegistry.findByName(a[1]);
2449
2388
  if (!transformer) {
2450
2389
  throw new Error("Trying to deserialize unknown custom value");
2451
2390
  }
2452
2391
  return transformer.deserialize(v);
2453
2392
  });
2454
2393
  var compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
2455
- var transformValue = function(value, superJson) {
2456
- var applicableCompositeRule = findArr(compositeRules, function(rule) {
2457
- return rule.isApplicable(value, superJson);
2458
- });
2394
+ var transformValue = (value, superJson) => {
2395
+ const applicableCompositeRule = findArr(compositeRules, (rule) => rule.isApplicable(value, superJson));
2459
2396
  if (applicableCompositeRule) {
2460
2397
  return {
2461
2398
  value: applicableCompositeRule.transform(value, superJson),
2462
2399
  type: applicableCompositeRule.annotation(value, superJson)
2463
2400
  };
2464
2401
  }
2465
- var applicableSimpleRule = findArr(simpleRules, function(rule) {
2466
- return rule.isApplicable(value, superJson);
2467
- });
2402
+ const applicableSimpleRule = findArr(simpleRules, (rule) => rule.isApplicable(value, superJson));
2468
2403
  if (applicableSimpleRule) {
2469
2404
  return {
2470
2405
  value: applicableSimpleRule.transform(value, superJson),
@@ -2474,10 +2409,10 @@ var transformValue = function(value, superJson) {
2474
2409
  return void 0;
2475
2410
  };
2476
2411
  var simpleRulesByAnnotation = {};
2477
- simpleRules.forEach(function(rule) {
2412
+ simpleRules.forEach((rule) => {
2478
2413
  simpleRulesByAnnotation[rule.annotation] = rule;
2479
2414
  });
2480
- var untransformValue = function(json, type, superJson) {
2415
+ var untransformValue = (json, type, superJson) => {
2481
2416
  if (isArray(type)) {
2482
2417
  switch (type[0]) {
2483
2418
  case "symbol":
@@ -2492,7 +2427,7 @@ var untransformValue = function(json, type, superJson) {
2492
2427
  throw new Error("Unknown transformation: " + type);
2493
2428
  }
2494
2429
  } else {
2495
- var transformation = simpleRulesByAnnotation[type];
2430
+ const transformation = simpleRulesByAnnotation[type];
2496
2431
  if (!transformation) {
2497
2432
  throw new Error("Unknown transformation: " + type);
2498
2433
  }
@@ -2500,9 +2435,9 @@ var untransformValue = function(json, type, superJson) {
2500
2435
  }
2501
2436
  };
2502
2437
 
2503
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/accessDeep.js
2504
- var getNthKey = function(value, n) {
2505
- var keys = value.keys();
2438
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/accessDeep.js
2439
+ var getNthKey = (value, n) => {
2440
+ const keys = value.keys();
2506
2441
  while (n > 0) {
2507
2442
  keys.next();
2508
2443
  n--;
@@ -2520,16 +2455,16 @@ function validatePath(path) {
2520
2455
  throw new Error("constructor is not allowed as a property");
2521
2456
  }
2522
2457
  }
2523
- var getDeep = function(object, path) {
2458
+ var getDeep = (object, path) => {
2524
2459
  validatePath(path);
2525
- for (var i = 0; i < path.length; i++) {
2526
- var key = path[i];
2460
+ for (let i = 0; i < path.length; i++) {
2461
+ const key = path[i];
2527
2462
  if (isSet(object)) {
2528
2463
  object = getNthKey(object, +key);
2529
2464
  } else if (isMap(object)) {
2530
- var row = +key;
2531
- var type = +path[++i] === 0 ? "key" : "value";
2532
- var keyOfRow = getNthKey(object, row);
2465
+ const row = +key;
2466
+ const type = +path[++i] === 0 ? "key" : "value";
2467
+ const keyOfRow = getNthKey(object, row);
2533
2468
  switch (type) {
2534
2469
  case "key":
2535
2470
  object = keyOfRow;
@@ -2544,30 +2479,30 @@ var getDeep = function(object, path) {
2544
2479
  }
2545
2480
  return object;
2546
2481
  };
2547
- var setDeep = function(object, path, mapper) {
2482
+ var setDeep = (object, path, mapper) => {
2548
2483
  validatePath(path);
2549
2484
  if (path.length === 0) {
2550
2485
  return mapper(object);
2551
2486
  }
2552
- var parent = object;
2553
- for (var i = 0; i < path.length - 1; i++) {
2554
- var key = path[i];
2487
+ let parent = object;
2488
+ for (let i = 0; i < path.length - 1; i++) {
2489
+ const key = path[i];
2555
2490
  if (isArray(parent)) {
2556
- var index = +key;
2491
+ const index = +key;
2557
2492
  parent = parent[index];
2558
2493
  } else if (isPlainObject(parent)) {
2559
2494
  parent = parent[key];
2560
2495
  } else if (isSet(parent)) {
2561
- var row = +key;
2496
+ const row = +key;
2562
2497
  parent = getNthKey(parent, row);
2563
2498
  } else if (isMap(parent)) {
2564
- var isEnd = i === path.length - 2;
2499
+ const isEnd = i === path.length - 2;
2565
2500
  if (isEnd) {
2566
2501
  break;
2567
2502
  }
2568
- var row = +key;
2569
- var type = +path[++i] === 0 ? "key" : "value";
2570
- var keyOfRow = getNthKey(parent, row);
2503
+ const row = +key;
2504
+ const type = +path[++i] === 0 ? "key" : "value";
2505
+ const keyOfRow = getNthKey(parent, row);
2571
2506
  switch (type) {
2572
2507
  case "key":
2573
2508
  parent = keyOfRow;
@@ -2578,30 +2513,30 @@ var setDeep = function(object, path, mapper) {
2578
2513
  }
2579
2514
  }
2580
2515
  }
2581
- var lastKey = path[path.length - 1];
2516
+ const lastKey = path[path.length - 1];
2582
2517
  if (isArray(parent)) {
2583
2518
  parent[+lastKey] = mapper(parent[+lastKey]);
2584
2519
  } else if (isPlainObject(parent)) {
2585
2520
  parent[lastKey] = mapper(parent[lastKey]);
2586
2521
  }
2587
2522
  if (isSet(parent)) {
2588
- var oldValue = getNthKey(parent, +lastKey);
2589
- var newValue = mapper(oldValue);
2523
+ const oldValue = getNthKey(parent, +lastKey);
2524
+ const newValue = mapper(oldValue);
2590
2525
  if (oldValue !== newValue) {
2591
- parent["delete"](oldValue);
2526
+ parent.delete(oldValue);
2592
2527
  parent.add(newValue);
2593
2528
  }
2594
2529
  }
2595
2530
  if (isMap(parent)) {
2596
- var row = +path[path.length - 2];
2597
- var keyToRow = getNthKey(parent, row);
2598
- var type = +lastKey === 0 ? "key" : "value";
2531
+ const row = +path[path.length - 2];
2532
+ const keyToRow = getNthKey(parent, row);
2533
+ const type = +lastKey === 0 ? "key" : "value";
2599
2534
  switch (type) {
2600
2535
  case "key": {
2601
- var newKey = mapper(keyToRow);
2536
+ const newKey = mapper(keyToRow);
2602
2537
  parent.set(newKey, parent.get(keyToRow));
2603
2538
  if (newKey !== keyToRow) {
2604
- parent["delete"](keyToRow);
2539
+ parent.delete(keyToRow);
2605
2540
  }
2606
2541
  break;
2607
2542
  }
@@ -2614,77 +2549,40 @@ var setDeep = function(object, path, mapper) {
2614
2549
  return object;
2615
2550
  };
2616
2551
 
2617
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/plainer.js
2618
- var __read3 = function(o, n) {
2619
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2620
- if (!m)
2621
- return o;
2622
- var i = m.call(o), r, ar = [], e;
2623
- try {
2624
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
2625
- ar.push(r.value);
2626
- } catch (error) {
2627
- e = { error };
2628
- } finally {
2629
- try {
2630
- if (r && !r.done && (m = i["return"]))
2631
- m.call(i);
2632
- } finally {
2633
- if (e)
2634
- throw e.error;
2635
- }
2636
- }
2637
- return ar;
2638
- };
2639
- var __spreadArray2 = function(to, from) {
2640
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
2641
- to[j] = from[i];
2642
- return to;
2643
- };
2644
- function traverse(tree, walker2, origin) {
2645
- if (origin === void 0) {
2646
- origin = [];
2647
- }
2552
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/plainer.js
2553
+ function traverse(tree, walker2, origin = []) {
2648
2554
  if (!tree) {
2649
2555
  return;
2650
2556
  }
2651
2557
  if (!isArray(tree)) {
2652
- forEach(tree, function(subtree, key) {
2653
- return traverse(subtree, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
2654
- });
2558
+ forEach(tree, (subtree, key) => traverse(subtree, walker2, [...origin, ...parsePath(key)]));
2655
2559
  return;
2656
2560
  }
2657
- var _a = __read3(tree, 2), nodeValue = _a[0], children2 = _a[1];
2561
+ const [nodeValue, children2] = tree;
2658
2562
  if (children2) {
2659
- forEach(children2, function(child, key) {
2660
- traverse(child, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
2563
+ forEach(children2, (child, key) => {
2564
+ traverse(child, walker2, [...origin, ...parsePath(key)]);
2661
2565
  });
2662
2566
  }
2663
2567
  walker2(nodeValue, origin);
2664
2568
  }
2665
2569
  function applyValueAnnotations(plain, annotations, superJson) {
2666
- traverse(annotations, function(type, path) {
2667
- plain = setDeep(plain, path, function(v) {
2668
- return untransformValue(v, type, superJson);
2669
- });
2570
+ traverse(annotations, (type, path) => {
2571
+ plain = setDeep(plain, path, (v) => untransformValue(v, type, superJson));
2670
2572
  });
2671
2573
  return plain;
2672
2574
  }
2673
2575
  function applyReferentialEqualityAnnotations(plain, annotations) {
2674
2576
  function apply(identicalPaths, path) {
2675
- var object = getDeep(plain, parsePath(path));
2676
- identicalPaths.map(parsePath).forEach(function(identicalObjectPath) {
2677
- plain = setDeep(plain, identicalObjectPath, function() {
2678
- return object;
2679
- });
2577
+ const object = getDeep(plain, parsePath(path));
2578
+ identicalPaths.map(parsePath).forEach((identicalObjectPath) => {
2579
+ plain = setDeep(plain, identicalObjectPath, () => object);
2680
2580
  });
2681
2581
  }
2682
2582
  if (isArray(annotations)) {
2683
- var _a = __read3(annotations, 2), root = _a[0], other = _a[1];
2684
- root.forEach(function(identicalPath) {
2685
- plain = setDeep(plain, parsePath(identicalPath), function() {
2686
- return plain;
2687
- });
2583
+ const [root, other] = annotations;
2584
+ root.forEach((identicalPath) => {
2585
+ plain = setDeep(plain, parsePath(identicalPath), () => plain);
2688
2586
  });
2689
2587
  if (other) {
2690
2588
  forEach(other, apply);
@@ -2694,11 +2592,9 @@ function applyReferentialEqualityAnnotations(plain, annotations) {
2694
2592
  }
2695
2593
  return plain;
2696
2594
  }
2697
- var isDeep = function(object, superJson) {
2698
- return isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
2699
- };
2595
+ var isDeep = (object, superJson) => isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
2700
2596
  function addIdentity(object, path, identities) {
2701
- var existingSet = identities.get(object);
2597
+ const existingSet = identities.get(object);
2702
2598
  if (existingSet) {
2703
2599
  existingSet.push(path);
2704
2600
  } else {
@@ -2706,20 +2602,16 @@ function addIdentity(object, path, identities) {
2706
2602
  }
2707
2603
  }
2708
2604
  function generateReferentialEqualityAnnotations(identitites, dedupe) {
2709
- var result = {};
2710
- var rootEqualityPaths = void 0;
2711
- identitites.forEach(function(paths) {
2605
+ const result = {};
2606
+ let rootEqualityPaths = void 0;
2607
+ identitites.forEach((paths) => {
2712
2608
  if (paths.length <= 1) {
2713
2609
  return;
2714
2610
  }
2715
2611
  if (!dedupe) {
2716
- paths = paths.map(function(path) {
2717
- return path.map(String);
2718
- }).sort(function(a, b) {
2719
- return a.length - b.length;
2720
- });
2612
+ paths = paths.map((path) => path.map(String)).sort((a, b) => a.length - b.length);
2721
2613
  }
2722
- var _a = __read3(paths), representativePath = _a[0], identicalPaths = _a.slice(1);
2614
+ const [representativePath, ...identicalPaths] = paths;
2723
2615
  if (representativePath.length === 0) {
2724
2616
  rootEqualityPaths = identicalPaths.map(stringifyPath);
2725
2617
  } else {
@@ -2736,21 +2628,11 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
2736
2628
  return isEmptyObject(result) ? void 0 : result;
2737
2629
  }
2738
2630
  }
2739
- var walker = function(object, identities, superJson, dedupe, path, objectsInThisPath, seenObjects) {
2740
- var _a;
2741
- if (path === void 0) {
2742
- path = [];
2743
- }
2744
- if (objectsInThisPath === void 0) {
2745
- objectsInThisPath = [];
2746
- }
2747
- if (seenObjects === void 0) {
2748
- seenObjects = /* @__PURE__ */ new Map();
2749
- }
2750
- var primitive = isPrimitive(object);
2631
+ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
2632
+ const primitive = isPrimitive(object);
2751
2633
  if (!primitive) {
2752
2634
  addIdentity(object, path, identities);
2753
- var seen = seenObjects.get(object);
2635
+ const seen = seenObjects.get(object);
2754
2636
  if (seen) {
2755
2637
  return dedupe ? {
2756
2638
  transformedValue: null
@@ -2758,39 +2640,42 @@ var walker = function(object, identities, superJson, dedupe, path, objectsInThis
2758
2640
  }
2759
2641
  }
2760
2642
  if (!isDeep(object, superJson)) {
2761
- var transformed_1 = transformValue(object, superJson);
2762
- var result_1 = transformed_1 ? {
2763
- transformedValue: transformed_1.value,
2764
- annotations: [transformed_1.type]
2643
+ const transformed2 = transformValue(object, superJson);
2644
+ const result2 = transformed2 ? {
2645
+ transformedValue: transformed2.value,
2646
+ annotations: [transformed2.type]
2765
2647
  } : {
2766
2648
  transformedValue: object
2767
2649
  };
2768
2650
  if (!primitive) {
2769
- seenObjects.set(object, result_1);
2651
+ seenObjects.set(object, result2);
2770
2652
  }
2771
- return result_1;
2653
+ return result2;
2772
2654
  }
2773
2655
  if (includes(objectsInThisPath, object)) {
2774
2656
  return {
2775
2657
  transformedValue: null
2776
2658
  };
2777
2659
  }
2778
- var transformationResult = transformValue(object, superJson);
2779
- var transformed = (_a = transformationResult === null || transformationResult === void 0 ? void 0 : transformationResult.value) !== null && _a !== void 0 ? _a : object;
2780
- var transformedValue = isArray(transformed) ? [] : {};
2781
- var innerAnnotations = {};
2782
- forEach(transformed, function(value, index) {
2783
- var recursiveResult = walker(value, identities, superJson, dedupe, __spreadArray2(__spreadArray2([], __read3(path)), [index]), __spreadArray2(__spreadArray2([], __read3(objectsInThisPath)), [object]), seenObjects);
2660
+ const transformationResult = transformValue(object, superJson);
2661
+ const transformed = transformationResult?.value ?? object;
2662
+ const transformedValue = isArray(transformed) ? [] : {};
2663
+ const innerAnnotations = {};
2664
+ forEach(transformed, (value, index) => {
2665
+ if (index === "__proto__" || index === "constructor" || index === "prototype") {
2666
+ throw new Error(`Detected property ${index}. This is a prototype pollution risk, please remove it from your object.`);
2667
+ }
2668
+ const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
2784
2669
  transformedValue[index] = recursiveResult.transformedValue;
2785
2670
  if (isArray(recursiveResult.annotations)) {
2786
2671
  innerAnnotations[index] = recursiveResult.annotations;
2787
2672
  } else if (isPlainObject(recursiveResult.annotations)) {
2788
- forEach(recursiveResult.annotations, function(tree, key) {
2673
+ forEach(recursiveResult.annotations, (tree, key) => {
2789
2674
  innerAnnotations[escapeKey(index) + "." + key] = tree;
2790
2675
  });
2791
2676
  }
2792
2677
  });
2793
- var result = isEmptyObject(innerAnnotations) ? {
2678
+ const result = isEmptyObject(innerAnnotations) ? {
2794
2679
  transformedValue,
2795
2680
  annotations: !!transformationResult ? [transformationResult.type] : void 0
2796
2681
  } : {
@@ -2861,120 +2746,81 @@ function copy(target, options = {}) {
2861
2746
  }, {});
2862
2747
  }
2863
2748
 
2864
- // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/index.js
2865
- var __assign2 = function() {
2866
- __assign2 = Object.assign || function(t) {
2867
- for (var s, i = 1, n = arguments.length; i < n; i++) {
2868
- s = arguments[i];
2869
- for (var p in s)
2870
- if (Object.prototype.hasOwnProperty.call(s, p))
2871
- t[p] = s[p];
2872
- }
2873
- return t;
2874
- };
2875
- return __assign2.apply(this, arguments);
2876
- };
2877
- var __read4 = function(o, n) {
2878
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2879
- if (!m)
2880
- return o;
2881
- var i = m.call(o), r, ar = [], e;
2882
- try {
2883
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
2884
- ar.push(r.value);
2885
- } catch (error) {
2886
- e = { error };
2887
- } finally {
2888
- try {
2889
- if (r && !r.done && (m = i["return"]))
2890
- m.call(i);
2891
- } finally {
2892
- if (e)
2893
- throw e.error;
2749
+ // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/index.js
2750
+ var SuperJSON = class {
2751
+ /**
2752
+ * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
2753
+ */
2754
+ constructor({ dedupe = false } = {}) {
2755
+ this.classRegistry = new ClassRegistry();
2756
+ this.symbolRegistry = new Registry((s) => s.description ?? "");
2757
+ this.customTransformerRegistry = new CustomTransformerRegistry();
2758
+ this.allowedErrorProps = [];
2759
+ this.dedupe = dedupe;
2760
+ }
2761
+ serialize(object) {
2762
+ const identities = /* @__PURE__ */ new Map();
2763
+ const output = walker(object, identities, this, this.dedupe);
2764
+ const res = {
2765
+ json: output.transformedValue
2766
+ };
2767
+ if (output.annotations) {
2768
+ res.meta = {
2769
+ ...res.meta,
2770
+ values: output.annotations
2771
+ };
2772
+ }
2773
+ const equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
2774
+ if (equalityAnnotations) {
2775
+ res.meta = {
2776
+ ...res.meta,
2777
+ referentialEqualities: equalityAnnotations
2778
+ };
2894
2779
  }
2780
+ return res;
2781
+ }
2782
+ deserialize(payload) {
2783
+ const { json, meta } = payload;
2784
+ let result = copy(json);
2785
+ if (meta?.values) {
2786
+ result = applyValueAnnotations(result, meta.values, this);
2787
+ }
2788
+ if (meta?.referentialEqualities) {
2789
+ result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
2790
+ }
2791
+ return result;
2792
+ }
2793
+ stringify(object) {
2794
+ return JSON.stringify(this.serialize(object));
2795
+ }
2796
+ parse(string) {
2797
+ return this.deserialize(JSON.parse(string));
2798
+ }
2799
+ registerClass(v, options) {
2800
+ this.classRegistry.register(v, options);
2801
+ }
2802
+ registerSymbol(v, identifier) {
2803
+ this.symbolRegistry.register(v, identifier);
2804
+ }
2805
+ registerCustom(transformer, name) {
2806
+ this.customTransformerRegistry.register({
2807
+ name,
2808
+ ...transformer
2809
+ });
2810
+ }
2811
+ allowErrorProps(...props) {
2812
+ this.allowedErrorProps.push(...props);
2895
2813
  }
2896
- return ar;
2897
- };
2898
- var __spreadArray3 = function(to, from) {
2899
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
2900
- to[j] = from[i];
2901
- return to;
2902
2814
  };
2903
- var SuperJSON = (
2904
- /** @class */
2905
- function() {
2906
- function SuperJSON2(_a) {
2907
- var _b = _a === void 0 ? {} : _a, _c = _b.dedupe, dedupe = _c === void 0 ? false : _c;
2908
- this.classRegistry = new ClassRegistry();
2909
- this.symbolRegistry = new Registry(function(s) {
2910
- var _a2;
2911
- return (_a2 = s.description) !== null && _a2 !== void 0 ? _a2 : "";
2912
- });
2913
- this.customTransformerRegistry = new CustomTransformerRegistry();
2914
- this.allowedErrorProps = [];
2915
- this.dedupe = dedupe;
2916
- }
2917
- SuperJSON2.prototype.serialize = function(object) {
2918
- var identities = /* @__PURE__ */ new Map();
2919
- var output = walker(object, identities, this, this.dedupe);
2920
- var res = {
2921
- json: output.transformedValue
2922
- };
2923
- if (output.annotations) {
2924
- res.meta = __assign2(__assign2({}, res.meta), { values: output.annotations });
2925
- }
2926
- var equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
2927
- if (equalityAnnotations) {
2928
- res.meta = __assign2(__assign2({}, res.meta), { referentialEqualities: equalityAnnotations });
2929
- }
2930
- return res;
2931
- };
2932
- SuperJSON2.prototype.deserialize = function(payload) {
2933
- var json = payload.json, meta = payload.meta;
2934
- var result = copy(json);
2935
- if (meta === null || meta === void 0 ? void 0 : meta.values) {
2936
- result = applyValueAnnotations(result, meta.values, this);
2937
- }
2938
- if (meta === null || meta === void 0 ? void 0 : meta.referentialEqualities) {
2939
- result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
2940
- }
2941
- return result;
2942
- };
2943
- SuperJSON2.prototype.stringify = function(object) {
2944
- return JSON.stringify(this.serialize(object));
2945
- };
2946
- SuperJSON2.prototype.parse = function(string) {
2947
- return this.deserialize(JSON.parse(string));
2948
- };
2949
- SuperJSON2.prototype.registerClass = function(v, options) {
2950
- this.classRegistry.register(v, options);
2951
- };
2952
- SuperJSON2.prototype.registerSymbol = function(v, identifier) {
2953
- this.symbolRegistry.register(v, identifier);
2954
- };
2955
- SuperJSON2.prototype.registerCustom = function(transformer, name) {
2956
- this.customTransformerRegistry.register(__assign2({ name }, transformer));
2957
- };
2958
- SuperJSON2.prototype.allowErrorProps = function() {
2959
- var _a;
2960
- var props = [];
2961
- for (var _i = 0; _i < arguments.length; _i++) {
2962
- props[_i] = arguments[_i];
2963
- }
2964
- (_a = this.allowedErrorProps).push.apply(_a, __spreadArray3([], __read4(props)));
2965
- };
2966
- SuperJSON2.defaultInstance = new SuperJSON2();
2967
- SuperJSON2.serialize = SuperJSON2.defaultInstance.serialize.bind(SuperJSON2.defaultInstance);
2968
- SuperJSON2.deserialize = SuperJSON2.defaultInstance.deserialize.bind(SuperJSON2.defaultInstance);
2969
- SuperJSON2.stringify = SuperJSON2.defaultInstance.stringify.bind(SuperJSON2.defaultInstance);
2970
- SuperJSON2.parse = SuperJSON2.defaultInstance.parse.bind(SuperJSON2.defaultInstance);
2971
- SuperJSON2.registerClass = SuperJSON2.defaultInstance.registerClass.bind(SuperJSON2.defaultInstance);
2972
- SuperJSON2.registerSymbol = SuperJSON2.defaultInstance.registerSymbol.bind(SuperJSON2.defaultInstance);
2973
- SuperJSON2.registerCustom = SuperJSON2.defaultInstance.registerCustom.bind(SuperJSON2.defaultInstance);
2974
- SuperJSON2.allowErrorProps = SuperJSON2.defaultInstance.allowErrorProps.bind(SuperJSON2.defaultInstance);
2975
- return SuperJSON2;
2976
- }()
2977
- );
2815
+ SuperJSON.defaultInstance = new SuperJSON();
2816
+ SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance);
2817
+ SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance);
2818
+ SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance);
2819
+ SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance);
2820
+ SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance);
2821
+ SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance);
2822
+ SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance);
2823
+ SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
2978
2824
  var serialize = SuperJSON.serialize;
2979
2825
  var deserialize = SuperJSON.deserialize;
2980
2826
  var stringify = SuperJSON.stringify;
@@ -3152,7 +2998,6 @@ var setupStyleSheet = (nonce, target) => {
3152
2998
  };
3153
2999
 
3154
3000
  export {
3155
- $PROXY,
3156
3001
  $TRACK,
3157
3002
  createRoot,
3158
3003
  createSignal,
@@ -3165,12 +3010,10 @@ export {
3165
3010
  on,
3166
3011
  onMount,
3167
3012
  onCleanup,
3168
- getListener,
3169
3013
  getOwner,
3170
3014
  useTransition,
3171
3015
  createContext,
3172
3016
  useContext,
3173
- children,
3174
3017
  createComponent,
3175
3018
  mergeProps,
3176
3019
  splitProps,
@@ -3187,8 +3030,6 @@ export {
3187
3030
  delegateEvents,
3188
3031
  clearDelegatedEvents,
3189
3032
  setAttribute,
3190
- spread,
3191
- use,
3192
3033
  isServer,
3193
3034
  Portal,
3194
3035
  Dynamic,