@tanstack/query-devtools 5.20.1 → 5.20.2

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