@fictjs/runtime 0.10.0 → 0.12.0

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.
Files changed (72) hide show
  1. package/dist/advanced.cjs +9 -9
  2. package/dist/advanced.d.cts +3 -3
  3. package/dist/advanced.d.ts +3 -3
  4. package/dist/advanced.js +4 -4
  5. package/dist/{binding-DqxS9ZQf.d.ts → binding-DcnhUSQK.d.ts} +1 -1
  6. package/dist/{binding-DUEukRxl.d.cts → binding-FRyTeLDn.d.cts} +1 -1
  7. package/dist/{chunk-DKA2I6ET.js → chunk-2UR2UWE2.js} +3 -3
  8. package/dist/{chunk-SZLJCQFZ.cjs → chunk-44EQF3AR.cjs} +63 -52
  9. package/dist/chunk-44EQF3AR.cjs.map +1 -0
  10. package/dist/{chunk-I4GKKAAY.cjs → chunk-4QGEN5SJ.cjs} +295 -262
  11. package/dist/chunk-4QGEN5SJ.cjs.map +1 -0
  12. package/dist/{chunk-V7BC64W2.cjs → chunk-C5IE4WUG.cjs} +8 -8
  13. package/dist/{chunk-V7BC64W2.cjs.map → chunk-C5IE4WUG.cjs.map} +1 -1
  14. package/dist/{chunk-F4RVNXOL.js → chunk-DIK33H5U.js} +8 -2
  15. package/dist/chunk-DIK33H5U.js.map +1 -0
  16. package/dist/{chunk-2JRPPCG7.js → chunk-FESAXMHT.js} +7 -6
  17. package/dist/{chunk-2JRPPCG7.js.map → chunk-FESAXMHT.js.map} +1 -1
  18. package/dist/chunk-FHQZCAAK.cjs +112 -0
  19. package/dist/chunk-FHQZCAAK.cjs.map +1 -0
  20. package/dist/{chunk-EQ5E4WOV.cjs → chunk-QNMYVXRL.cjs} +44 -38
  21. package/dist/chunk-QNMYVXRL.cjs.map +1 -0
  22. package/dist/{chunk-P4TZLFV6.js → chunk-S63VBIWN.js} +27 -16
  23. package/dist/chunk-S63VBIWN.js.map +1 -0
  24. package/dist/{chunk-R6FINS25.js → chunk-WIHNVN6L.js} +106 -73
  25. package/dist/chunk-WIHNVN6L.js.map +1 -0
  26. package/dist/{devtools-CMxlJUTx.d.cts → devtools-BtIkN77t.d.cts} +1 -1
  27. package/dist/{devtools-C4Hgfa-S.d.ts → devtools-D2z4llpA.d.ts} +1 -1
  28. package/dist/index.cjs +60 -58
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +4 -4
  31. package/dist/index.d.ts +4 -4
  32. package/dist/index.dev.js +72 -51
  33. package/dist/index.dev.js.map +1 -1
  34. package/dist/index.js +13 -11
  35. package/dist/index.js.map +1 -1
  36. package/dist/internal-list.cjs +4 -4
  37. package/dist/internal-list.d.cts +1 -1
  38. package/dist/internal-list.d.ts +1 -1
  39. package/dist/internal-list.js +3 -3
  40. package/dist/internal.cjs +5 -5
  41. package/dist/internal.d.cts +4 -4
  42. package/dist/internal.d.ts +4 -4
  43. package/dist/internal.js +4 -4
  44. package/dist/{list-BBzsJhrm.d.ts → list-BKM6YOPq.d.ts} +1 -1
  45. package/dist/{list-_NJCcjl1.d.cts → list-Bi8dDF8Q.d.cts} +1 -1
  46. package/dist/loader.cjs +28 -26
  47. package/dist/loader.cjs.map +1 -1
  48. package/dist/loader.js +11 -9
  49. package/dist/loader.js.map +1 -1
  50. package/dist/{props--zJ4ebbT.d.cts → props-9chMyBGb.d.cts} +1 -1
  51. package/dist/{props-BAGR7j-j.d.ts → props-D1nj2p_3.d.ts} +1 -1
  52. package/dist/{scope-CuImnvh1.d.ts → scope-BSkhJr0a.d.ts} +1 -1
  53. package/dist/{scope-Dq5hOu7c.d.cts → scope-Bn3sxem5.d.cts} +1 -1
  54. package/package.json +1 -1
  55. package/src/binding.ts +59 -29
  56. package/src/context.ts +4 -3
  57. package/src/dom.ts +65 -39
  58. package/src/error-boundary.ts +5 -5
  59. package/src/lifecycle.ts +8 -1
  60. package/src/list-helpers.ts +30 -13
  61. package/src/loader.ts +10 -8
  62. package/src/node-ops.ts +8 -5
  63. package/src/suspense.ts +5 -4
  64. package/dist/chunk-EQ5E4WOV.cjs.map +0 -1
  65. package/dist/chunk-F4RVNXOL.js.map +0 -1
  66. package/dist/chunk-I4GKKAAY.cjs.map +0 -1
  67. package/dist/chunk-K3DH5SD5.cjs +0 -111
  68. package/dist/chunk-K3DH5SD5.cjs.map +0 -1
  69. package/dist/chunk-P4TZLFV6.js.map +0 -1
  70. package/dist/chunk-R6FINS25.js.map +0 -1
  71. package/dist/chunk-SZLJCQFZ.cjs.map +0 -1
  72. /package/dist/{chunk-DKA2I6ET.js.map → chunk-2UR2UWE2.js.map} +0 -0
@@ -40,20 +40,20 @@
40
40
 
41
41
 
42
42
 
43
- var _chunkEQ5E4WOVcjs = require('./chunk-EQ5E4WOV.cjs');
43
+ var _chunkQNMYVXRLcjs = require('./chunk-QNMYVXRL.cjs');
44
44
 
45
45
  // src/transition.ts
46
46
  function startTransition(fn) {
47
- const prev = _chunkEQ5E4WOVcjs.setTransitionContext.call(void 0, true);
47
+ const prev = _chunkQNMYVXRLcjs.setTransitionContext.call(void 0, true);
48
48
  try {
49
49
  fn();
50
50
  } finally {
51
- _chunkEQ5E4WOVcjs.setTransitionContext.call(void 0, prev);
52
- _chunkEQ5E4WOVcjs.scheduleFlush.call(void 0, );
51
+ _chunkQNMYVXRLcjs.setTransitionContext.call(void 0, prev);
52
+ _chunkQNMYVXRLcjs.scheduleFlush.call(void 0, );
53
53
  }
54
54
  }
55
55
  function useTransition() {
56
- const pending = _chunkEQ5E4WOVcjs.signal.call(void 0, false);
56
+ const pending = _chunkQNMYVXRLcjs.signal.call(void 0, false);
57
57
  let pendingCount = 0;
58
58
  const beginPending = () => {
59
59
  pendingCount += 1;
@@ -104,10 +104,10 @@ function useTransition() {
104
104
  return [() => pending(), start];
105
105
  }
106
106
  function useDeferredValue(getValue) {
107
- const deferredValue = _chunkEQ5E4WOVcjs.signal.call(void 0, getValue());
108
- _chunkEQ5E4WOVcjs.createEffect.call(void 0, () => {
107
+ const deferredValue = _chunkQNMYVXRLcjs.signal.call(void 0, getValue());
108
+ _chunkQNMYVXRLcjs.createEffect.call(void 0, () => {
109
109
  const newValue = getValue();
110
- const currentDeferred = _chunkEQ5E4WOVcjs.untrack.call(void 0, () => deferredValue());
110
+ const currentDeferred = _chunkQNMYVXRLcjs.untrack.call(void 0, () => deferredValue());
111
111
  if (currentDeferred !== newValue) {
112
112
  startTransition(() => {
113
113
  deferredValue(newValue);
@@ -119,17 +119,17 @@ function useDeferredValue(getValue) {
119
119
 
120
120
  // src/scheduler.ts
121
121
  function batch2(fn) {
122
- return _chunkEQ5E4WOVcjs.batch.call(void 0, fn);
122
+ return _chunkQNMYVXRLcjs.batch.call(void 0, fn);
123
123
  }
124
124
  function untrack2(fn) {
125
- return _chunkEQ5E4WOVcjs.untrack.call(void 0, fn);
125
+ return _chunkQNMYVXRLcjs.untrack.call(void 0, fn);
126
126
  }
127
127
 
128
128
  // src/jsx.ts
129
129
  var Fragment = Symbol("Fragment");
130
130
 
131
131
  // src/node-ops.ts
132
- function toNodeArray(node) {
132
+ function toNodeArray(node, ownerDocument = document) {
133
133
  try {
134
134
  if (Array.isArray(node)) {
135
135
  let allNodes = true;
@@ -150,7 +150,7 @@ function toNodeArray(node) {
150
150
  }
151
151
  const result = [];
152
152
  for (const item of node) {
153
- result.push(...toNodeArray(item));
153
+ result.push(...toNodeArray(item, ownerDocument));
154
154
  }
155
155
  return result;
156
156
  }
@@ -177,14 +177,14 @@ function toNodeArray(node) {
177
177
  }
178
178
  try {
179
179
  if (typeof node === "object" && node !== null && "marker" in node) {
180
- return toNodeArray(node.marker);
180
+ return toNodeArray(node.marker, ownerDocument);
181
181
  }
182
182
  } catch (e6) {
183
183
  }
184
184
  try {
185
- return [document.createTextNode(String(node))];
185
+ return [ownerDocument.createTextNode(String(node))];
186
186
  } catch (e7) {
187
- return [document.createTextNode("")];
187
+ return [ownerDocument.createTextNode("")];
188
188
  }
189
189
  }
190
190
  function insertNodesBefore(parent, nodes, anchor) {
@@ -425,14 +425,14 @@ function isExplicitReactiveFn(value) {
425
425
  function isReactive(value) {
426
426
  if (typeof value !== "function") return false;
427
427
  if (isNonReactiveFn(value)) return false;
428
- if (_chunkEQ5E4WOVcjs.isSignal.call(void 0, value) || _chunkEQ5E4WOVcjs.isComputed.call(void 0, value)) return true;
428
+ if (_chunkQNMYVXRLcjs.isSignal.call(void 0, value) || _chunkQNMYVXRLcjs.isComputed.call(void 0, value)) return true;
429
429
  if (isExplicitReactiveFn(value)) return true;
430
- if (_chunkEQ5E4WOVcjs.isEffect.call(void 0, value) || _chunkEQ5E4WOVcjs.isEffectScope.call(void 0, value)) return false;
430
+ if (_chunkQNMYVXRLcjs.isEffect.call(void 0, value) || _chunkQNMYVXRLcjs.isEffectScope.call(void 0, value)) return false;
431
431
  return value.length === 0;
432
432
  }
433
433
  function isStrictlyReactive(value) {
434
434
  if (typeof value !== "function") return false;
435
- return _chunkEQ5E4WOVcjs.isSignal.call(void 0, value) || _chunkEQ5E4WOVcjs.isComputed.call(void 0, value) || isPropGetterFn(value) || isExplicitReactiveFn(value);
435
+ return _chunkQNMYVXRLcjs.isSignal.call(void 0, value) || _chunkQNMYVXRLcjs.isComputed.call(void 0, value) || isPropGetterFn(value) || isExplicitReactiveFn(value);
436
436
  }
437
437
  var PROP_GETTER_MARKER = Symbol.for("fict:prop-getter");
438
438
  function isPropGetterFn(value) {
@@ -492,10 +492,11 @@ function callEventHandler(handler, event, node, data) {
492
492
  };
493
493
  invoke(handler);
494
494
  }
495
- function createTextBinding(value) {
496
- const text = document.createTextNode("");
495
+ function createTextBinding(value, owner) {
496
+ const textOwnerDocument = owner && "nodeType" in owner ? owner.nodeType === 9 ? owner : _nullishCoalesce(owner.ownerDocument, () => ( document)) : document;
497
+ const text = textOwnerDocument.createTextNode("");
497
498
  if (isReactive(value)) {
498
- _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
499
+ _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
499
500
  setText(text, value());
500
501
  });
501
502
  } else {
@@ -504,7 +505,7 @@ function createTextBinding(value) {
504
505
  return text;
505
506
  }
506
507
  function bindText(textNode, getValue) {
507
- return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setText(textNode, getValue()));
508
+ return _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => setText(textNode, getValue()));
508
509
  }
509
510
  function setText(textNode, value) {
510
511
  const next = formatTextValue(value);
@@ -524,7 +525,7 @@ function formatTextValue(value) {
524
525
  }
525
526
  function createAttributeBinding(el, key, value, setter) {
526
527
  if (isReactive(value)) {
527
- _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
528
+ _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
528
529
  setter(el, key, value());
529
530
  });
530
531
  } else {
@@ -532,7 +533,7 @@ function createAttributeBinding(el, key, value, setter) {
532
533
  }
533
534
  }
534
535
  function bindAttribute(el, key, getValue) {
535
- return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setAttr(el, key, getValue()));
536
+ return _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => setAttr(el, key, getValue()));
536
537
  }
537
538
  function setAttr(el, key, value) {
538
539
  const cacheTarget = el;
@@ -548,7 +549,7 @@ function setAttr(el, key, value) {
548
549
  }
549
550
  }
550
551
  function bindProperty(el, key, getValue) {
551
- return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setProp(el, key, getValue()));
552
+ return _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => setProp(el, key, getValue()));
552
553
  }
553
554
  function setProp(el, key, value) {
554
555
  const cacheTarget = el;
@@ -565,7 +566,7 @@ function setProp(el, key, value) {
565
566
  }
566
567
  function createStyleBinding(el, value) {
567
568
  if (isReactive(value)) {
568
- _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
569
+ _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
569
570
  setStyle(el, value());
570
571
  });
571
572
  } else {
@@ -573,7 +574,7 @@ function createStyleBinding(el, value) {
573
574
  }
574
575
  }
575
576
  function bindStyle(el, getValue) {
576
- return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setStyle(el, getValue()));
577
+ return _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => setStyle(el, getValue()));
577
578
  }
578
579
  function setStyle(el, value) {
579
580
  const target = el;
@@ -628,7 +629,7 @@ function applyStyle(el, value, prev) {
628
629
  }
629
630
  }
630
631
  }
631
- var isUnitlessStyleProperty = isDev ? (prop2) => _chunkEQ5E4WOVcjs.UnitlessStyles.has(prop2) : (prop2) => prop2 === "opacity" || prop2 === "zIndex";
632
+ var isUnitlessStyleProperty = isDev ? (prop2) => _chunkQNMYVXRLcjs.UnitlessStyles.has(prop2) : (prop2) => prop2 === "opacity" || prop2 === "zIndex";
632
633
  function normalizeStyleProperty(prop2) {
633
634
  const cached = STYLE_PROP_CACHE.get(prop2);
634
635
  if (cached) return cached;
@@ -638,7 +639,7 @@ function normalizeStyleProperty(prop2) {
638
639
  }
639
640
  function createClassBinding(el, value) {
640
641
  if (isReactive(value)) {
641
- _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0,
642
+ _chunkQNMYVXRLcjs.createRenderEffect.call(void 0,
642
643
  () => setClass(el, value())
643
644
  );
644
645
  } else {
@@ -646,7 +647,7 @@ function createClassBinding(el, value) {
646
647
  }
647
648
  }
648
649
  function bindClass(el, getValue) {
649
- return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setClass(el, getValue()));
650
+ return _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => setClass(el, getValue()));
650
651
  }
651
652
  function setClass(el, value) {
652
653
  const cache = el;
@@ -707,7 +708,8 @@ function classList(node, value, prev = {}) {
707
708
  return applyClass(node, value, prev);
708
709
  }
709
710
  function insert(parent, getValue, markerOrCreateElement, createElementFn) {
710
- const hostRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
711
+ const hostRoot = _chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, );
712
+ const parentOwnerDocument = _nullishCoalesce(parent.ownerDocument, () => ( document));
711
713
  let marker;
712
714
  let ownsMarker = false;
713
715
  let createFn = createElementFn;
@@ -715,11 +717,12 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
715
717
  marker = markerOrCreateElement;
716
718
  createFn = createElementFn;
717
719
  } else {
718
- marker = document.createComment("fict:insert");
720
+ marker = parentOwnerDocument.createComment("fict:insert");
719
721
  parent.appendChild(marker);
720
722
  createFn = markerOrCreateElement;
721
723
  ownsMarker = true;
722
724
  }
725
+ const markerOwnerDocument = _nullishCoalesce(marker.ownerDocument, () => ( parentOwnerDocument));
723
726
  let currentNodes = [];
724
727
  let currentText = null;
725
728
  let currentRoot = null;
@@ -731,7 +734,7 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
731
734
  };
732
735
  const setTextNode = (textValue, shouldInsert, parentNode) => {
733
736
  if (!currentText) {
734
- currentText = document.createTextNode(textValue);
737
+ currentText = (_nullishCoalesce(parentNode.ownerDocument, () => ( markerOwnerDocument))).createTextNode(textValue);
735
738
  } else if (currentText.data !== textValue) {
736
739
  currentText.data = textValue;
737
740
  }
@@ -746,13 +749,13 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
746
749
  insertNodesBefore(parentNode, [currentText], marker);
747
750
  currentNodes = [currentText];
748
751
  };
749
- const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
752
+ const dispose = _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
750
753
  const value = getValue();
751
754
  const parentNode = marker.parentNode;
752
755
  const isPrimitive = value == null || value === false || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
753
756
  if (isPrimitive) {
754
757
  if (currentRoot) {
755
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
758
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
756
759
  currentRoot = null;
757
760
  }
758
761
  if (!parentNode) {
@@ -765,16 +768,17 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
765
768
  return;
766
769
  }
767
770
  if (currentRoot) {
768
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
771
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
769
772
  currentRoot = null;
770
773
  }
771
774
  clearCurrentNodes();
772
- const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
773
- const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
775
+ const root = _chunkQNMYVXRLcjs.createRootContext.call(void 0, hostRoot);
776
+ const prev = _chunkQNMYVXRLcjs.pushRoot.call(void 0, root);
774
777
  let nodes = [];
775
778
  let handledError = false;
776
779
  try {
777
780
  let newNode;
781
+ const ownerDocument = _nullishCoalesce(_optionalChain([parentNode, 'optionalAccess', _7 => _7.ownerDocument]), () => ( markerOwnerDocument));
778
782
  if (value instanceof Node) {
779
783
  newNode = value;
780
784
  } else if (Array.isArray(value)) {
@@ -784,41 +788,41 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
784
788
  if (createFn) {
785
789
  const mapped = [];
786
790
  for (const item of value) {
787
- mapped.push(...toNodeArray(createFn(item)));
791
+ mapped.push(...toNodeArray(createFn(item), ownerDocument));
788
792
  }
789
793
  newNode = mapped;
790
794
  } else {
791
- newNode = document.createTextNode(String(value));
795
+ newNode = ownerDocument.createTextNode(String(value));
792
796
  }
793
797
  }
794
798
  } else {
795
- newNode = createFn ? createFn(value) : document.createTextNode(String(value));
799
+ newNode = createFn ? createFn(value) : ownerDocument.createTextNode(String(value));
796
800
  }
797
- nodes = toNodeArray(newNode);
801
+ nodes = toNodeArray(newNode, ownerDocument);
798
802
  if (root.suspended) {
799
803
  handledError = true;
800
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
804
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
801
805
  return;
802
806
  }
803
807
  if (parentNode) {
804
808
  insertNodesBefore(parentNode, nodes, marker);
805
809
  }
806
810
  } catch (err) {
807
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
811
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err, root)) {
808
812
  handledError = true;
809
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
813
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
810
814
  return;
811
815
  }
812
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
816
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
813
817
  handledError = true;
814
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
818
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
815
819
  return;
816
820
  }
817
821
  throw err;
818
822
  } finally {
819
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
823
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev);
820
824
  if (!handledError) {
821
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
825
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, root);
822
826
  }
823
827
  }
824
828
  currentRoot = root;
@@ -827,21 +831,22 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
827
831
  return () => {
828
832
  dispose();
829
833
  if (currentRoot) {
830
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
834
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
831
835
  currentRoot = null;
832
836
  }
833
837
  clearCurrentNodes();
834
838
  if (ownsMarker) {
835
- _optionalChain([marker, 'access', _7 => _7.parentNode, 'optionalAccess', _8 => _8.removeChild, 'call', _9 => _9(marker)]);
839
+ _optionalChain([marker, 'access', _8 => _8.parentNode, 'optionalAccess', _9 => _9.removeChild, 'call', _10 => _10(marker)]);
836
840
  }
837
841
  };
838
842
  }
839
843
  function insertBetween(start, end, getValue, createElementFn) {
840
- const hostRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
844
+ const hostRoot = _chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, );
845
+ const markerOwnerDocument = _nullishCoalesce(_nullishCoalesce(start.ownerDocument, () => ( end.ownerDocument)), () => ( document));
841
846
  let currentNodes = [];
842
847
  let currentText = null;
843
848
  let currentRoot = null;
844
- let initialHydrating = _chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, );
849
+ let initialHydrating = _chunkQNMYVXRLcjs.__fictIsHydrating.call(void 0, );
845
850
  const collectBetween = () => {
846
851
  const nodes = [];
847
852
  let cursor = start.nextSibling;
@@ -858,8 +863,9 @@ function insertBetween(start, end, getValue, createElementFn) {
858
863
  }
859
864
  };
860
865
  const setTextNode = (textValue, shouldInsert) => {
866
+ const parentNode = start.parentNode;
861
867
  if (!currentText) {
862
- currentText = document.createTextNode(textValue);
868
+ currentText = (_nullishCoalesce(_optionalChain([parentNode, 'optionalAccess', _11 => _11.ownerDocument]), () => ( markerOwnerDocument))).createTextNode(textValue);
863
869
  } else if (currentText.data !== textValue) {
864
870
  currentText.data = textValue;
865
871
  }
@@ -871,13 +877,12 @@ function insertBetween(start, end, getValue, createElementFn) {
871
877
  return;
872
878
  }
873
879
  clearCurrentNodes();
874
- const parentNode = start.parentNode;
875
880
  if (parentNode) {
876
881
  insertNodesBefore(parentNode, [currentText], end);
877
882
  currentNodes = [currentText];
878
883
  }
879
884
  };
880
- const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
885
+ const dispose = _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
881
886
  const value = getValue();
882
887
  const parentNode = start.parentNode;
883
888
  const isPrimitive = value == null || value === false || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
@@ -891,7 +896,7 @@ function insertBetween(start, end, getValue, createElementFn) {
891
896
  }
892
897
  }
893
898
  if (currentRoot) {
894
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
899
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
895
900
  currentRoot = null;
896
901
  }
897
902
  if (!parentNode) {
@@ -905,16 +910,17 @@ function insertBetween(start, end, getValue, createElementFn) {
905
910
  return;
906
911
  }
907
912
  if (currentRoot) {
908
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
913
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
909
914
  currentRoot = null;
910
915
  }
911
916
  clearCurrentNodes();
912
- const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
913
- const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
917
+ const root = _chunkQNMYVXRLcjs.createRootContext.call(void 0, hostRoot);
918
+ const prev = _chunkQNMYVXRLcjs.pushRoot.call(void 0, root);
914
919
  let nodes = [];
915
920
  let handledError = false;
916
921
  try {
917
922
  let newNode = void 0;
923
+ const ownerDocument = _nullishCoalesce(_optionalChain([parentNode, 'optionalAccess', _12 => _12.ownerDocument]), () => ( markerOwnerDocument));
918
924
  const createValue = () => {
919
925
  if (value instanceof Node) {
920
926
  return value;
@@ -926,46 +932,51 @@ function insertBetween(start, end, getValue, createElementFn) {
926
932
  if (createElementFn) {
927
933
  const mapped = [];
928
934
  for (const item of value) {
929
- mapped.push(...toNodeArray(createElementFn(item)));
935
+ mapped.push(...toNodeArray(createElementFn(item), ownerDocument));
930
936
  }
931
937
  return mapped;
932
938
  }
933
- return document.createTextNode(String(value));
939
+ return ownerDocument.createTextNode(String(value));
934
940
  }
935
- return createElementFn ? createElementFn(value) : document.createTextNode(String(value));
941
+ return createElementFn ? createElementFn(value) : ownerDocument.createTextNode(String(value));
936
942
  };
937
943
  if (initialHydrating && isHydratingActive() && parentNode) {
938
- withHydrationRange(start.nextSibling, end, _nullishCoalesce(parentNode.ownerDocument, () => ( document)), () => {
939
- newNode = createValue();
940
- });
944
+ withHydrationRange(
945
+ start.nextSibling,
946
+ end,
947
+ _nullishCoalesce(parentNode.ownerDocument, () => ( markerOwnerDocument)),
948
+ () => {
949
+ newNode = createValue();
950
+ }
951
+ );
941
952
  } else {
942
953
  newNode = createValue();
943
954
  }
944
- nodes = toNodeArray(newNode);
955
+ nodes = toNodeArray(newNode, ownerDocument);
945
956
  if (root.suspended) {
946
957
  handledError = true;
947
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
958
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
948
959
  return;
949
960
  }
950
961
  if (parentNode && !initialHydrating) {
951
962
  insertNodesBefore(parentNode, nodes, end);
952
963
  }
953
964
  } catch (err) {
954
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
965
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err, root)) {
955
966
  handledError = true;
956
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
967
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
957
968
  return;
958
969
  }
959
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
970
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
960
971
  handledError = true;
961
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
972
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
962
973
  return;
963
974
  }
964
975
  throw err;
965
976
  } finally {
966
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
977
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev);
967
978
  if (!handledError) {
968
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
979
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, root);
969
980
  }
970
981
  }
971
982
  currentRoot = root;
@@ -975,19 +986,19 @@ function insertBetween(start, end, getValue, createElementFn) {
975
986
  return () => {
976
987
  dispose();
977
988
  if (currentRoot) {
978
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
989
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
979
990
  currentRoot = null;
980
991
  }
981
992
  clearCurrentNodes();
982
993
  };
983
994
  }
984
995
  function createChildBinding(parent, getValue, createElementFn) {
985
- const marker = document.createComment("fict:child");
996
+ const marker = (_nullishCoalesce(parent.ownerDocument, () => ( document))).createComment("fict:child");
986
997
  parent.appendChild(marker);
987
- const hostRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
988
- const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
989
- const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
990
- const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
998
+ const hostRoot = _chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, );
999
+ const dispose = _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
1000
+ const root = _chunkQNMYVXRLcjs.createRootContext.call(void 0, hostRoot);
1001
+ const prev = _chunkQNMYVXRLcjs.pushRoot.call(void 0, root);
991
1002
  let nodes = [];
992
1003
  let handledError = false;
993
1004
  try {
@@ -996,31 +1007,31 @@ function createChildBinding(parent, getValue, createElementFn) {
996
1007
  return;
997
1008
  }
998
1009
  const output = createElementFn(value);
999
- nodes = toNodeArray(output);
1010
+ nodes = toNodeArray(output, _nullishCoalesce(_nullishCoalesce(marker.ownerDocument, () => ( parent.ownerDocument)), () => ( document)));
1000
1011
  const parentNode = marker.parentNode;
1001
1012
  if (parentNode) {
1002
1013
  insertNodesBefore(parentNode, nodes, marker);
1003
1014
  }
1004
1015
  return () => {
1005
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
1016
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
1006
1017
  removeNodes(nodes);
1007
1018
  };
1008
1019
  } catch (err) {
1009
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
1020
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err, root)) {
1010
1021
  handledError = true;
1011
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
1022
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
1012
1023
  return;
1013
1024
  }
1014
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1025
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1015
1026
  handledError = true;
1016
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
1027
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
1017
1028
  return;
1018
1029
  }
1019
1030
  throw err;
1020
1031
  } finally {
1021
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
1032
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev);
1022
1033
  if (!handledError) {
1023
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
1034
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, root);
1024
1035
  }
1025
1036
  }
1026
1037
  });
@@ -1028,12 +1039,12 @@ function createChildBinding(parent, getValue, createElementFn) {
1028
1039
  marker,
1029
1040
  dispose: () => {
1030
1041
  dispose();
1031
- _optionalChain([marker, 'access', _10 => _10.parentNode, 'optionalAccess', _11 => _11.removeChild, 'call', _12 => _12(marker)]);
1042
+ _optionalChain([marker, 'access', _13 => _13.parentNode, 'optionalAccess', _14 => _14.removeChild, 'call', _15 => _15(marker)]);
1032
1043
  }
1033
1044
  };
1034
1045
  }
1035
1046
  function delegateEvents(eventNames, doc = window.document) {
1036
- const e = doc[_chunkEQ5E4WOVcjs.$$EVENTS] || (doc[_chunkEQ5E4WOVcjs.$$EVENTS] = /* @__PURE__ */ new Set());
1047
+ const e = doc[_chunkQNMYVXRLcjs.$$EVENTS] || (doc[_chunkQNMYVXRLcjs.$$EVENTS] = /* @__PURE__ */ new Set());
1037
1048
  for (let i = 0, l = eventNames.length; i < l; i++) {
1038
1049
  const name = eventNames[i];
1039
1050
  if (!e.has(name)) {
@@ -1043,12 +1054,12 @@ function delegateEvents(eventNames, doc = window.document) {
1043
1054
  }
1044
1055
  }
1045
1056
  function clearDelegatedEvents(doc = window.document) {
1046
- const e = doc[_chunkEQ5E4WOVcjs.$$EVENTS];
1057
+ const e = doc[_chunkQNMYVXRLcjs.$$EVENTS];
1047
1058
  if (e) {
1048
1059
  for (const name of e.keys()) {
1049
1060
  doc.removeEventListener(name, globalEventHandler);
1050
1061
  }
1051
- delete doc[_chunkEQ5E4WOVcjs.$$EVENTS];
1062
+ delete doc[_chunkQNMYVXRLcjs.$$EVENTS];
1052
1063
  }
1053
1064
  }
1054
1065
  function globalEventHandler(e) {
@@ -1114,7 +1125,7 @@ function globalEventHandler(e) {
1114
1125
  Object.defineProperty(e, "currentTarget", {
1115
1126
  configurable: true,
1116
1127
  get() {
1117
- return node || document;
1128
+ return node || oriCurrentTarget || _optionalChain([asNode, 'call', _16 => _16(oriTarget), 'optionalAccess', _17 => _17.ownerDocument]) || document;
1118
1129
  }
1119
1130
  });
1120
1131
  if (e.composedPath) {
@@ -1161,8 +1172,8 @@ function addEventListener(node, name, handler, delegate) {
1161
1172
  function bindEvent(el, eventName, handler, options) {
1162
1173
  if (handler == null) return () => {
1163
1174
  };
1164
- const rootRef = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
1165
- const shouldDelegate = options == null && _chunkEQ5E4WOVcjs.DelegatedEvents.has(eventName);
1175
+ const rootRef = _chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, );
1176
+ const shouldDelegate = options == null && _chunkQNMYVXRLcjs.DelegatedEvents.has(eventName);
1166
1177
  if (shouldDelegate) {
1167
1178
  const key = `$$${eventName}`;
1168
1179
  delegateEvents([eventName]);
@@ -1172,7 +1183,7 @@ function bindEvent(el, eventName, handler, options) {
1172
1183
  const fn = resolveHandler();
1173
1184
  callEventHandler(fn, args[0], el);
1174
1185
  } catch (err) {
1175
- if (!_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
1186
+ if (!_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
1176
1187
  throw err;
1177
1188
  }
1178
1189
  }
@@ -1187,7 +1198,7 @@ function bindEvent(el, eventName, handler, options) {
1187
1198
  const resolved = getHandler();
1188
1199
  callEventHandler(resolved, event, el);
1189
1200
  } catch (err) {
1190
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
1201
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
1191
1202
  return;
1192
1203
  }
1193
1204
  throw err;
@@ -1195,7 +1206,7 @@ function bindEvent(el, eventName, handler, options) {
1195
1206
  };
1196
1207
  el.addEventListener(eventName, wrapped, options);
1197
1208
  const cleanup = () => el.removeEventListener(eventName, wrapped, options);
1198
- _chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, cleanup);
1209
+ _chunkQNMYVXRLcjs.registerRootCleanup.call(void 0, cleanup);
1199
1210
  return cleanup;
1200
1211
  }
1201
1212
  function bindRef(el, ref) {
@@ -1215,11 +1226,11 @@ function bindRef(el, ref) {
1215
1226
  const initialRef = getRef();
1216
1227
  applyRef2(initialRef);
1217
1228
  if (isReactive(ref)) {
1218
- const cleanup2 = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
1229
+ const cleanup2 = _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
1219
1230
  const currentRef = getRef();
1220
1231
  applyRef2(currentRef);
1221
1232
  });
1222
- _chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, cleanup2);
1233
+ _chunkQNMYVXRLcjs.registerRootCleanup.call(void 0, cleanup2);
1223
1234
  const nullifyCleanup = () => {
1224
1235
  const currentRef = getRef();
1225
1236
  if (currentRef && typeof currentRef === "object" && "current" in currentRef) {
@@ -1227,7 +1238,7 @@ function bindRef(el, ref) {
1227
1238
  currentRef.current = null;
1228
1239
  }
1229
1240
  };
1230
- _chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, nullifyCleanup);
1241
+ _chunkQNMYVXRLcjs.registerRootCleanup.call(void 0, nullifyCleanup);
1231
1242
  return () => {
1232
1243
  cleanup2();
1233
1244
  nullifyCleanup();
@@ -1240,23 +1251,23 @@ function bindRef(el, ref) {
1240
1251
  refValue.current = null;
1241
1252
  }
1242
1253
  };
1243
- _chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, cleanup);
1254
+ _chunkQNMYVXRLcjs.registerRootCleanup.call(void 0, cleanup);
1244
1255
  return cleanup;
1245
1256
  }
1246
1257
  function spread(node, props = {}, isSVG = false, skipChildren = false) {
1247
1258
  const prevProps = {};
1248
1259
  if (!skipChildren && "children" in props) {
1249
- _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
1260
+ _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
1250
1261
  prevProps.children = props.children;
1251
1262
  });
1252
1263
  }
1253
- _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
1264
+ _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
1254
1265
  if (typeof props.ref === "function") {
1255
1266
  ;
1256
1267
  props.ref(node);
1257
1268
  }
1258
1269
  });
1259
- _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
1270
+ _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
1260
1271
  assign(node, props, isSVG, true, prevProps, true);
1261
1272
  });
1262
1273
  return prevProps;
@@ -1314,7 +1325,7 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
1314
1325
  }
1315
1326
  if (prop2.slice(0, 2) === "on") {
1316
1327
  const eventName = prop2.slice(2).toLowerCase();
1317
- const shouldDelegate = _chunkEQ5E4WOVcjs.DelegatedEvents.has(eventName);
1328
+ const shouldDelegate = _chunkQNMYVXRLcjs.DelegatedEvents.has(eventName);
1318
1329
  if (!shouldDelegate && prev) {
1319
1330
  const handler = Array.isArray(prev) ? prev[0] : prev;
1320
1331
  node.removeEventListener(eventName, handler);
@@ -1347,9 +1358,9 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
1347
1358
  }
1348
1359
  const isCE = node.nodeName.includes("-") || "is" in props;
1349
1360
  if (!isSVG) {
1350
- const propAlias = isDev ? _chunkEQ5E4WOVcjs.getPropAlias.call(void 0, prop2, node.tagName) : void 0;
1351
- const isProperty = isDev ? _chunkEQ5E4WOVcjs.Properties.has(prop2) : prop2 in node;
1352
- const isChildProp = isDev ? _chunkEQ5E4WOVcjs.ChildProperties.has(prop2) : prop2 === "innerHTML" || prop2 === "textContent" || prop2 === "innerText" || prop2 === "children";
1361
+ const propAlias = isDev ? _chunkQNMYVXRLcjs.getPropAlias.call(void 0, prop2, node.tagName) : void 0;
1362
+ const isProperty = isDev ? _chunkQNMYVXRLcjs.Properties.has(prop2) : prop2 in node;
1363
+ const isChildProp = isDev ? _chunkQNMYVXRLcjs.ChildProperties.has(prop2) : prop2 === "innerHTML" || prop2 === "textContent" || prop2 === "innerText" || prop2 === "children";
1353
1364
  if (propAlias || isProperty || isChildProp || isCE) {
1354
1365
  const propName = propAlias || prop2;
1355
1366
  if (isCE && !isProperty && !isChildProp && !propAlias) {
@@ -1364,7 +1375,7 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
1364
1375
  }
1365
1376
  if (isSVG && prop2.indexOf(":") > -1) {
1366
1377
  const [prefix, name] = prop2.split(":");
1367
- const ns = _chunkEQ5E4WOVcjs.SVGNamespace[prefix];
1378
+ const ns = _chunkQNMYVXRLcjs.SVGNamespace[prefix];
1368
1379
  if (ns) {
1369
1380
  if (value == null) node.removeAttributeNS(ns, name);
1370
1381
  else node.setAttributeNS(ns, name, String(value));
@@ -1380,21 +1391,22 @@ function toPropertyName(name) {
1380
1391
  return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
1381
1392
  }
1382
1393
  function createConditional(condition, renderTrue, createElementFn, renderFalse, startOverride, endOverride, options) {
1383
- const trackBranchReads = _optionalChain([options, 'optionalAccess', _13 => _13.trackBranchReads]) === true;
1394
+ const trackBranchReads = _optionalChain([options, 'optionalAccess', _18 => _18.trackBranchReads]) === true;
1395
+ const hostRoot = _chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, );
1384
1396
  const useProvided = !!(startOverride && endOverride);
1385
- const startMarker = useProvided ? startOverride : document.createComment("fict:cond:start");
1386
- const endMarker = useProvided ? endOverride : document.createComment("fict:cond:end");
1387
- const fragment = useProvided ? startMarker : document.createDocumentFragment();
1397
+ const markerOwnerDocument = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([startOverride, 'optionalAccess', _19 => _19.ownerDocument]), () => ( _optionalChain([endOverride, 'optionalAccess', _20 => _20.ownerDocument]))), () => ( _optionalChain([hostRoot, 'optionalAccess', _21 => _21.ownerDocument]))), () => ( document));
1398
+ const startMarker = useProvided ? startOverride : markerOwnerDocument.createComment("fict:cond:start");
1399
+ const endMarker = useProvided ? endOverride : markerOwnerDocument.createComment("fict:cond:end");
1400
+ const fragment = useProvided ? startMarker : markerOwnerDocument.createDocumentFragment();
1388
1401
  if (!useProvided) {
1389
1402
  ;
1390
1403
  fragment.append(startMarker, endMarker);
1391
1404
  }
1392
- const hostRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
1393
1405
  let currentNodes = [];
1394
1406
  let currentRoot = null;
1395
1407
  let lastCondition = void 0;
1396
1408
  let pendingRender = false;
1397
- let initialHydrating = _chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, );
1409
+ let initialHydrating = _chunkQNMYVXRLcjs.__fictIsHydrating.call(void 0, );
1398
1410
  const collectBetween = () => {
1399
1411
  const nodes = [];
1400
1412
  let cursor = startMarker.nextSibling;
@@ -1404,7 +1416,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1404
1416
  }
1405
1417
  return nodes;
1406
1418
  };
1407
- const conditionMemo = _chunkEQ5E4WOVcjs.computed.call(void 0, condition);
1419
+ const conditionMemo = _chunkQNMYVXRLcjs.computed.call(void 0, condition);
1408
1420
  const runConditional = () => {
1409
1421
  const cond = conditionMemo();
1410
1422
  const parent = startMarker.parentNode;
@@ -1421,16 +1433,16 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1421
1433
  currentNodes = collectBetween();
1422
1434
  return;
1423
1435
  }
1424
- const root2 = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
1425
- const prev2 = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root2);
1436
+ const root2 = _chunkQNMYVXRLcjs.createRootContext.call(void 0, hostRoot);
1437
+ const prev2 = _chunkQNMYVXRLcjs.pushRoot.call(void 0, root2);
1426
1438
  let handledError2 = false;
1427
1439
  try {
1428
1440
  withHydrationRange(
1429
1441
  startMarker.nextSibling,
1430
1442
  endMarker,
1431
- _nullishCoalesce(parent.ownerDocument, () => ( document)),
1443
+ _nullishCoalesce(parent.ownerDocument, () => ( markerOwnerDocument)),
1432
1444
  () => {
1433
- const output = trackBranchReads ? render3() : _chunkEQ5E4WOVcjs.untrack.call(void 0, render3);
1445
+ const output = trackBranchReads ? render3() : _chunkQNMYVXRLcjs.untrack.call(void 0, render3);
1434
1446
  if (output == null || output === false) {
1435
1447
  return;
1436
1448
  }
@@ -1439,21 +1451,21 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1439
1451
  );
1440
1452
  currentNodes = collectBetween();
1441
1453
  } catch (err) {
1442
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root2)) {
1454
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err, root2)) {
1443
1455
  handledError2 = true;
1444
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root2);
1456
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root2);
1445
1457
  return;
1446
1458
  }
1447
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root2)) {
1459
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "renderChild" }, root2)) {
1448
1460
  handledError2 = true;
1449
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root2);
1461
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root2);
1450
1462
  return;
1451
1463
  }
1452
1464
  throw err;
1453
1465
  } finally {
1454
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev2);
1466
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev2);
1455
1467
  if (!handledError2) {
1456
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root2);
1468
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, root2);
1457
1469
  currentRoot = root2;
1458
1470
  } else {
1459
1471
  currentRoot = null;
@@ -1474,8 +1486,8 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1474
1486
  return;
1475
1487
  }
1476
1488
  let patched = false;
1477
- const scratchRoot = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
1478
- const prevScratch = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, scratchRoot);
1489
+ const scratchRoot = _chunkQNMYVXRLcjs.createRootContext.call(void 0, hostRoot);
1490
+ const prevScratch = _chunkQNMYVXRLcjs.pushRoot.call(void 0, scratchRoot);
1479
1491
  let handledPatchError = false;
1480
1492
  let scratchOutput = null;
1481
1493
  try {
@@ -1489,63 +1501,63 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1489
1501
  patched = _patchFragmentChildren(currentNodes, output);
1490
1502
  }
1491
1503
  if (!patched && _isFragmentVNode(output)) {
1492
- patched = _patchFragmentChildren(currentNodes, _optionalChain([output, 'access', _14 => _14.props, 'optionalAccess', _15 => _15.children]));
1504
+ patched = _patchFragmentChildren(currentNodes, _optionalChain([output, 'access', _22 => _22.props, 'optionalAccess', _23 => _23.children]));
1493
1505
  }
1494
1506
  }
1495
1507
  } catch (err) {
1496
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, scratchRoot)) {
1508
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err, scratchRoot)) {
1497
1509
  handledPatchError = true;
1498
1510
  return;
1499
1511
  }
1500
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, scratchRoot)) {
1512
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "renderChild" }, scratchRoot)) {
1501
1513
  handledPatchError = true;
1502
1514
  return;
1503
1515
  }
1504
1516
  throw err;
1505
1517
  } finally {
1506
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prevScratch);
1518
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prevScratch);
1507
1519
  }
1508
1520
  if (handledPatchError) {
1509
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, scratchRoot);
1521
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, scratchRoot);
1510
1522
  return;
1511
1523
  }
1512
1524
  if (patched) {
1513
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, scratchRoot);
1525
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, scratchRoot);
1514
1526
  return;
1515
1527
  }
1516
1528
  lastCondition = cond;
1517
1529
  if (currentRoot) {
1518
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
1530
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
1519
1531
  currentRoot = null;
1520
1532
  }
1521
1533
  removeNodes(currentNodes);
1522
1534
  currentNodes = [];
1523
- const prev2 = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, scratchRoot);
1535
+ const prev2 = _chunkQNMYVXRLcjs.pushRoot.call(void 0, scratchRoot);
1524
1536
  let handledError2 = false;
1525
1537
  try {
1526
1538
  if (scratchOutput == null || scratchOutput === false) {
1527
1539
  return;
1528
1540
  }
1529
1541
  const el = createElementFn(scratchOutput);
1530
- const nodes = toNodeArray(el);
1542
+ const nodes = toNodeArray(el, _nullishCoalesce(parent.ownerDocument, () => ( markerOwnerDocument)));
1531
1543
  insertNodesBefore(parent, nodes, endMarker);
1532
1544
  currentNodes = nodes;
1533
1545
  } catch (err) {
1534
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, scratchRoot)) {
1546
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err, scratchRoot)) {
1535
1547
  handledError2 = true;
1536
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, scratchRoot);
1548
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, scratchRoot);
1537
1549
  return;
1538
1550
  }
1539
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, scratchRoot)) {
1551
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "renderChild" }, scratchRoot)) {
1540
1552
  handledError2 = true;
1541
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, scratchRoot);
1553
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, scratchRoot);
1542
1554
  return;
1543
1555
  }
1544
1556
  throw err;
1545
1557
  } finally {
1546
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev2);
1558
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev2);
1547
1559
  if (!handledError2) {
1548
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, scratchRoot);
1560
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, scratchRoot);
1549
1561
  currentRoot = scratchRoot;
1550
1562
  } else {
1551
1563
  currentRoot = null;
@@ -1555,7 +1567,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1555
1567
  }
1556
1568
  lastCondition = cond;
1557
1569
  if (currentRoot) {
1558
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
1570
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
1559
1571
  currentRoot = null;
1560
1572
  }
1561
1573
  removeNodes(currentNodes);
@@ -1564,41 +1576,41 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1564
1576
  if (!render2) {
1565
1577
  return;
1566
1578
  }
1567
- const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
1568
- const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
1579
+ const root = _chunkQNMYVXRLcjs.createRootContext.call(void 0, hostRoot);
1580
+ const prev = _chunkQNMYVXRLcjs.pushRoot.call(void 0, root);
1569
1581
  let handledError = false;
1570
1582
  try {
1571
- const output = trackBranchReads ? render2() : _chunkEQ5E4WOVcjs.untrack.call(void 0, render2);
1583
+ const output = trackBranchReads ? render2() : _chunkQNMYVXRLcjs.untrack.call(void 0, render2);
1572
1584
  if (output == null || output === false) {
1573
1585
  return;
1574
1586
  }
1575
1587
  const el = createElementFn(output);
1576
- const nodes = toNodeArray(el);
1588
+ const nodes = toNodeArray(el, _nullishCoalesce(parent.ownerDocument, () => ( markerOwnerDocument)));
1577
1589
  insertNodesBefore(parent, nodes, endMarker);
1578
1590
  currentNodes = nodes;
1579
1591
  } catch (err) {
1580
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
1592
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err, root)) {
1581
1593
  handledError = true;
1582
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
1594
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
1583
1595
  return;
1584
1596
  }
1585
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1597
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1586
1598
  handledError = true;
1587
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
1599
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
1588
1600
  return;
1589
1601
  }
1590
1602
  throw err;
1591
1603
  } finally {
1592
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
1604
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev);
1593
1605
  if (!handledError) {
1594
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
1606
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, root);
1595
1607
  currentRoot = root;
1596
1608
  } else {
1597
1609
  currentRoot = null;
1598
1610
  }
1599
1611
  }
1600
1612
  };
1601
- const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, runConditional);
1613
+ const dispose = _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, runConditional);
1602
1614
  return {
1603
1615
  marker: fragment,
1604
1616
  flush: () => {
@@ -1609,67 +1621,69 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1609
1621
  dispose: () => {
1610
1622
  dispose();
1611
1623
  if (currentRoot) {
1612
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
1624
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
1613
1625
  }
1614
1626
  removeNodes(currentNodes);
1615
1627
  currentNodes = [];
1616
- _optionalChain([startMarker, 'access', _16 => _16.parentNode, 'optionalAccess', _17 => _17.removeChild, 'call', _18 => _18(startMarker)]);
1617
- _optionalChain([endMarker, 'access', _19 => _19.parentNode, 'optionalAccess', _20 => _20.removeChild, 'call', _21 => _21(endMarker)]);
1628
+ _optionalChain([startMarker, 'access', _24 => _24.parentNode, 'optionalAccess', _25 => _25.removeChild, 'call', _26 => _26(startMarker)]);
1629
+ _optionalChain([endMarker, 'access', _27 => _27.parentNode, 'optionalAccess', _28 => _28.removeChild, 'call', _29 => _29(endMarker)]);
1618
1630
  }
1619
1631
  };
1620
1632
  }
1621
1633
  function createShow(el, condition, displayValue) {
1622
1634
  const originalDisplay = _nullishCoalesce(displayValue, () => ( el.style.display));
1623
- _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
1635
+ _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
1624
1636
  el.style.display = condition() ? originalDisplay : "none";
1625
1637
  });
1626
1638
  }
1627
1639
  function createPortal(container, render2, createElementFn) {
1628
- const parentRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
1629
- const marker = document.createComment("fict:portal");
1640
+ const parentRoot = _chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, );
1641
+ const markerOwnerDocument = _nullishCoalesce(container.ownerDocument, () => ( document));
1642
+ const marker = markerOwnerDocument.createComment("fict:portal");
1630
1643
  container.appendChild(marker);
1631
1644
  let currentNodes = [];
1632
1645
  let currentRoot = null;
1633
- const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
1646
+ const dispose = _chunkQNMYVXRLcjs.createRenderEffect.call(void 0, () => {
1634
1647
  if (currentRoot) {
1635
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
1648
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
1636
1649
  currentRoot = null;
1637
1650
  }
1638
1651
  if (currentNodes.length > 0) {
1639
1652
  removeNodes(currentNodes);
1640
1653
  currentNodes = [];
1641
1654
  }
1642
- const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, parentRoot);
1643
- const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
1655
+ const root = _chunkQNMYVXRLcjs.createRootContext.call(void 0, parentRoot);
1656
+ root.ownerDocument = _nullishCoalesce(_nullishCoalesce(container.ownerDocument, () => ( _optionalChain([parentRoot, 'optionalAccess', _30 => _30.ownerDocument]))), () => ( document));
1657
+ const prev = _chunkQNMYVXRLcjs.pushRoot.call(void 0, root);
1644
1658
  let handledError = false;
1645
1659
  try {
1646
1660
  const output = render2();
1647
1661
  if (output != null && output !== false) {
1648
1662
  const el = createElementFn(output);
1649
- const nodes = toNodeArray(el);
1663
+ const nodes = toNodeArray(el, markerOwnerDocument);
1650
1664
  if (marker.parentNode) {
1651
1665
  insertNodesBefore(marker.parentNode, nodes, marker);
1652
1666
  }
1653
1667
  currentNodes = nodes;
1654
1668
  }
1655
1669
  } catch (err) {
1656
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
1670
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err, root)) {
1657
1671
  handledError = true;
1658
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
1672
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
1659
1673
  currentNodes = [];
1660
1674
  return;
1661
1675
  }
1662
- if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1676
+ if (_chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1663
1677
  handledError = true;
1664
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
1678
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
1665
1679
  currentNodes = [];
1666
1680
  return;
1667
1681
  }
1668
1682
  throw err;
1669
1683
  } finally {
1670
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
1684
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev);
1671
1685
  if (!handledError) {
1672
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
1686
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, root);
1673
1687
  currentRoot = root;
1674
1688
  } else {
1675
1689
  currentRoot = null;
@@ -1679,12 +1693,12 @@ function createPortal(container, render2, createElementFn) {
1679
1693
  const portalDispose = () => {
1680
1694
  dispose();
1681
1695
  if (currentRoot) {
1682
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
1696
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, currentRoot);
1683
1697
  }
1684
1698
  if (currentNodes.length > 0) {
1685
1699
  removeNodes(currentNodes);
1686
1700
  }
1687
- _optionalChain([marker, 'access', _22 => _22.parentNode, 'optionalAccess', _23 => _23.removeChild, 'call', _24 => _24(marker)]);
1701
+ _optionalChain([marker, 'access', _31 => _31.parentNode, 'optionalAccess', _32 => _32.removeChild, 'call', _33 => _33(marker)]);
1688
1702
  };
1689
1703
  if (parentRoot) {
1690
1704
  parentRoot.destroyCallbacks.push(portalDispose);
@@ -1698,7 +1712,7 @@ function patchElement(el, output) {
1698
1712
  if (output && typeof output === "object" && !(output instanceof Node)) {
1699
1713
  const vnode = output;
1700
1714
  if (typeof vnode.type === "string" && vnode.type.toLowerCase() === el.tagName.toLowerCase()) {
1701
- const children = _optionalChain([vnode, 'access', _25 => _25.props, 'optionalAccess', _26 => _26.children]);
1715
+ const children = _optionalChain([vnode, 'access', _34 => _34.props, 'optionalAccess', _35 => _35.children]);
1702
1716
  const props = _nullishCoalesce(vnode.props, () => ( {}));
1703
1717
  for (const [key, value] of Object.entries(props)) {
1704
1718
  if (key === "children" || key === "key") continue;
@@ -1767,7 +1781,7 @@ function normalizeChildren(children, result = []) {
1767
1781
  return result;
1768
1782
  }
1769
1783
  if (_isFragmentVNode(children)) {
1770
- return normalizeChildren(_optionalChain([children, 'access', _27 => _27.props, 'optionalAccess', _28 => _28.children]), result);
1784
+ return normalizeChildren(_optionalChain([children, 'access', _36 => _36.props, 'optionalAccess', _37 => _37.children]), result);
1771
1785
  }
1772
1786
  result.push(children);
1773
1787
  return result;
@@ -1843,10 +1857,10 @@ function isExplicitReactiveFn2(value) {
1843
1857
  function normalizePropsFunction(value) {
1844
1858
  if (typeof value !== "function") return value;
1845
1859
  if (value.length !== 0) return value;
1846
- if (isPropGetter(value) || _chunkEQ5E4WOVcjs.isSignal.call(void 0, value) || _chunkEQ5E4WOVcjs.isComputed.call(void 0, value) || isExplicitReactiveFn2(value)) {
1860
+ if (isPropGetter(value) || _chunkQNMYVXRLcjs.isSignal.call(void 0, value) || _chunkQNMYVXRLcjs.isComputed.call(void 0, value) || isExplicitReactiveFn2(value)) {
1847
1861
  return value;
1848
1862
  }
1849
- if (_chunkEQ5E4WOVcjs.isEffect.call(void 0, value) || _chunkEQ5E4WOVcjs.isEffectScope.call(void 0, value) || isNonReactiveFn2(value)) return value;
1863
+ if (_chunkQNMYVXRLcjs.isEffect.call(void 0, value) || _chunkQNMYVXRLcjs.isEffectScope.call(void 0, value) || isNonReactiveFn2(value)) return value;
1850
1864
  return markNonReactiveFn(value);
1851
1865
  }
1852
1866
  function createPropsProxy(props) {
@@ -1983,9 +1997,9 @@ function prop(getter, options) {
1983
1997
  return getter;
1984
1998
  }
1985
1999
  const fn = getter;
1986
- const unwrap2 = _optionalChain([options, 'optionalAccess', _29 => _29.unwrap]) !== false;
2000
+ const unwrap2 = _optionalChain([options, 'optionalAccess', _38 => _38.unwrap]) !== false;
1987
2001
  return __fictProp(
1988
- _chunkEQ5E4WOVcjs.createMemo.call(void 0, () => {
2002
+ _chunkQNMYVXRLcjs.createMemo.call(void 0, () => {
1989
2003
  const value = fn();
1990
2004
  if (unwrap2 && isPropGetter(value)) {
1991
2005
  return value();
@@ -1998,7 +2012,7 @@ function prop(getter, options) {
1998
2012
  // src/dom.ts
1999
2013
  var SVG_NS = "http://www.w3.org/2000/svg";
2000
2014
  var MATHML_NS = "http://www.w3.org/1998/Math/MathML";
2001
- var isDev2 = typeof __DEV__ !== "undefined" ? __DEV__ : typeof process !== "undefined" && _optionalChain([process, 'access', _30 => _30.env, 'optionalAccess', _31 => _31.NODE_ENV]) !== "production";
2015
+ var isDev2 = typeof __DEV__ !== "undefined" ? __DEV__ : typeof process !== "undefined" && _optionalChain([process, 'access', _39 => _39.env, 'optionalAccess', _40 => _40.NODE_ENV]) !== "production";
2002
2016
  var nextComponentId = 1;
2003
2017
  function collectComponentMountElements(node) {
2004
2018
  if (node instanceof DocumentFragment) {
@@ -2027,12 +2041,13 @@ function annotateComponentElements(elements, componentId, componentName) {
2027
2041
  }
2028
2042
  }
2029
2043
  function render(view, container) {
2030
- const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, );
2031
- const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
2044
+ const root = _chunkQNMYVXRLcjs.createRootContext.call(void 0, );
2045
+ root.ownerDocument = _nullishCoalesce(container.ownerDocument, () => ( document));
2046
+ const prev = _chunkQNMYVXRLcjs.pushRoot.call(void 0, root);
2032
2047
  let dom = void 0;
2033
2048
  try {
2034
2049
  const output = view();
2035
- if (_chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, )) {
2050
+ if (_chunkQNMYVXRLcjs.__fictIsHydrating.call(void 0, )) {
2036
2051
  withHydration(container, () => {
2037
2052
  dom = createElement(output);
2038
2053
  });
@@ -2040,71 +2055,75 @@ function render(view, container) {
2040
2055
  dom = createElement(output);
2041
2056
  }
2042
2057
  } finally {
2043
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
2058
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev);
2044
2059
  }
2045
- if (!_chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, )) {
2060
+ if (!_chunkQNMYVXRLcjs.__fictIsHydrating.call(void 0, )) {
2046
2061
  container.replaceChildren(dom);
2047
2062
  }
2048
2063
  container.setAttribute("data-fict-fine-grained", "1");
2049
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
2064
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, root);
2050
2065
  const teardown = () => {
2051
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
2066
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
2052
2067
  container.innerHTML = "";
2053
2068
  };
2054
2069
  return teardown;
2055
2070
  }
2056
2071
  function hydrateComponent(view, container) {
2057
- const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, );
2058
- const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
2059
- _chunkEQ5E4WOVcjs.__fictEnterHydration.call(void 0, );
2072
+ const root = _chunkQNMYVXRLcjs.createRootContext.call(void 0, );
2073
+ root.ownerDocument = _nullishCoalesce(container.ownerDocument, () => ( document));
2074
+ const prev = _chunkQNMYVXRLcjs.pushRoot.call(void 0, root);
2075
+ _chunkQNMYVXRLcjs.__fictEnterHydration.call(void 0, );
2060
2076
  try {
2061
2077
  withHydration(container, () => {
2062
2078
  view();
2063
2079
  });
2064
2080
  } finally {
2065
- _chunkEQ5E4WOVcjs.__fictExitHydration.call(void 0, );
2066
- _chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
2081
+ _chunkQNMYVXRLcjs.__fictExitHydration.call(void 0, );
2082
+ _chunkQNMYVXRLcjs.popRoot.call(void 0, prev);
2067
2083
  }
2068
2084
  container.setAttribute("data-fict-fine-grained", "1");
2069
- _chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
2085
+ _chunkQNMYVXRLcjs.flushOnMount.call(void 0, root);
2070
2086
  const teardown = () => {
2071
- _chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
2087
+ _chunkQNMYVXRLcjs.destroyRoot.call(void 0, root);
2072
2088
  };
2073
2089
  return teardown;
2074
2090
  }
2075
2091
  function createElement(node) {
2076
- return createElementWithContext(node, null);
2092
+ return createElementWithContext(node, null, resolveOwnerDocument());
2077
2093
  }
2078
2094
  function resolveNamespace(tagName, namespace) {
2079
2095
  if (tagName === "svg") return "svg";
2080
2096
  if (tagName === "math") return "mathml";
2081
2097
  if (namespace === "mathml") return "mathml";
2082
2098
  if (namespace === "svg") return "svg";
2083
- if (isDev2 && _chunkEQ5E4WOVcjs.SVGElements.has(tagName)) return "svg";
2099
+ if (isDev2 && _chunkQNMYVXRLcjs.SVGElements.has(tagName)) return "svg";
2084
2100
  return null;
2085
2101
  }
2086
- function createElementWithContext(node, namespace) {
2102
+ function resolveOwnerDocument(ownerDocument) {
2103
+ return _nullishCoalesce(_nullishCoalesce(ownerDocument, () => ( _optionalChain([_chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, ), 'optionalAccess', _41 => _41.ownerDocument]))), () => ( document));
2104
+ }
2105
+ function createElementWithContext(node, namespace, ownerDocument) {
2087
2106
  if (node instanceof Node) {
2088
2107
  return node;
2089
2108
  }
2090
2109
  if (node === null || node === void 0 || node === false) {
2091
- return document.createTextNode("");
2110
+ return ownerDocument.createTextNode("");
2092
2111
  }
2093
2112
  if (isReactive(node)) {
2094
2113
  const resolved = node();
2095
2114
  if (resolved === node) {
2096
- return document.createTextNode("");
2115
+ return ownerDocument.createTextNode("");
2097
2116
  }
2098
- return createElementWithContext(resolved, namespace);
2117
+ return createElementWithContext(resolved, namespace, ownerDocument);
2099
2118
  }
2100
2119
  if (typeof node === "function") {
2101
- return document.createTextNode("");
2120
+ return ownerDocument.createTextNode("");
2102
2121
  }
2103
2122
  if (typeof node === "object" && node !== null && !(node instanceof Node)) {
2104
2123
  if ("marker" in node) {
2105
2124
  const handle = node;
2106
2125
  if (typeof handle.dispose === "function") {
2107
- _chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, handle.dispose);
2126
+ _chunkQNMYVXRLcjs.registerRootCleanup.call(void 0, handle.dispose);
2108
2127
  }
2109
2128
  if (typeof handle.flush === "function") {
2110
2129
  const runFlush = () => handle.flush && handle.flush();
@@ -2114,21 +2133,21 @@ function createElementWithContext(node, namespace) {
2114
2133
  Promise.resolve().then(runFlush).catch(() => void 0);
2115
2134
  }
2116
2135
  }
2117
- return createElement(handle.marker);
2136
+ return createElementWithContext(handle.marker, namespace, ownerDocument);
2118
2137
  }
2119
2138
  }
2120
2139
  if (Array.isArray(node)) {
2121
- const frag = document.createDocumentFragment();
2140
+ const frag = ownerDocument.createDocumentFragment();
2122
2141
  for (const child of node) {
2123
- appendChildNode(frag, child, namespace);
2142
+ appendChildNode(frag, child, namespace, ownerDocument);
2124
2143
  }
2125
2144
  return frag;
2126
2145
  }
2127
2146
  if (typeof node === "string" || typeof node === "number") {
2128
- return document.createTextNode(String(node));
2147
+ return ownerDocument.createTextNode(String(node));
2129
2148
  }
2130
2149
  if (typeof node === "boolean") {
2131
- return document.createTextNode("");
2150
+ return ownerDocument.createTextNode("");
2132
2151
  }
2133
2152
  const vnode = node;
2134
2153
  if (typeof vnode.type === "function") {
@@ -2155,14 +2174,14 @@ function createElementWithContext(node, namespace) {
2155
2174
  }
2156
2175
  });
2157
2176
  const props = createPropsProxy(baseProps);
2158
- const hook = isDev2 ? _chunkEQ5E4WOVcjs.getDevtoolsHook.call(void 0, ) : void 0;
2177
+ const hook = isDev2 ? _chunkQNMYVXRLcjs.getDevtoolsHook.call(void 0, ) : void 0;
2159
2178
  const componentName = vnode.type.name || "Anonymous";
2160
- const parentId = hook ? _chunkEQ5E4WOVcjs.__fictGetCurrentComponentId.call(void 0, ) : void 0;
2179
+ const parentId = hook ? _chunkQNMYVXRLcjs.__fictGetCurrentComponentId.call(void 0, ) : void 0;
2161
2180
  const componentId = hook ? nextComponentId++ : void 0;
2162
- if (_optionalChain([hook, 'optionalAccess', _32 => _32.registerComponent]) && componentId !== void 0) {
2181
+ if (_optionalChain([hook, 'optionalAccess', _42 => _42.registerComponent]) && componentId !== void 0) {
2163
2182
  hook.registerComponent(componentId, componentName, parentId);
2164
2183
  }
2165
- const ctx = _chunkEQ5E4WOVcjs.__fictPushContext.call(void 0, );
2184
+ const ctx = _chunkQNMYVXRLcjs.__fictPushContext.call(void 0, );
2166
2185
  if (componentId !== void 0) {
2167
2186
  ctx.componentId = componentId;
2168
2187
  if (parentId !== void 0) {
@@ -2173,26 +2192,26 @@ function createElementWithContext(node, namespace) {
2173
2192
  const rendered = vnode.type(props);
2174
2193
  let mountElements;
2175
2194
  if (hook && componentId !== void 0) {
2176
- _optionalChain([hook, 'access', _33 => _33.componentRender, 'optionalCall', _34 => _34(componentId)]);
2195
+ _optionalChain([hook, 'access', _43 => _43.componentRender, 'optionalCall', _44 => _44(componentId)]);
2177
2196
  }
2178
2197
  if (hook && componentId !== void 0) {
2179
- _chunkEQ5E4WOVcjs.onMount.call(void 0, () => {
2180
- _optionalChain([hook, 'access', _35 => _35.componentMount, 'optionalCall', _36 => _36(componentId, mountElements)]);
2198
+ _chunkQNMYVXRLcjs.onMount.call(void 0, () => {
2199
+ _optionalChain([hook, 'access', _45 => _45.componentMount, 'optionalCall', _46 => _46(componentId, mountElements)]);
2181
2200
  });
2182
- _chunkEQ5E4WOVcjs.onCleanup.call(void 0, () => _optionalChain([hook, 'access', _37 => _37.componentUnmount, 'optionalCall', _38 => _38(componentId)]));
2201
+ _chunkQNMYVXRLcjs.onCleanup.call(void 0, () => _optionalChain([hook, 'access', _47 => _47.componentUnmount, 'optionalCall', _48 => _48(componentId)]));
2183
2202
  }
2184
- if (_chunkEQ5E4WOVcjs.__fictIsResumable.call(void 0, ) && !_chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, )) {
2185
- const content = createElementWithContext(rendered, namespace);
2186
- const host = namespace === "svg" ? document.createElementNS(SVG_NS, "fict-host") : namespace === "mathml" ? document.createElementNS(MATHML_NS, "fict-host") : document.createElement("fict-host");
2203
+ if (_chunkQNMYVXRLcjs.__fictIsResumable.call(void 0, ) && !_chunkQNMYVXRLcjs.__fictIsHydrating.call(void 0, )) {
2204
+ const content = createElementWithContext(rendered, namespace, ownerDocument);
2205
+ const host = namespace === "svg" ? ownerDocument.createElementNS(SVG_NS, "fict-host") : namespace === "mathml" ? ownerDocument.createElementNS(MATHML_NS, "fict-host") : ownerDocument.createElement("fict-host");
2187
2206
  host.setAttribute("data-fict-host", "");
2188
2207
  if (namespace === null && host.style) {
2189
2208
  ;
2190
2209
  host.style.display = "contents";
2191
2210
  }
2192
2211
  const meta = vnode.type.__fictMeta;
2193
- const typeKey = (_nullishCoalesce(_optionalChain([meta, 'optionalAccess', _39 => _39.id]), () => ( vnode.type.name))) || "Anonymous";
2194
- _chunkEQ5E4WOVcjs.__fictRegisterScope.call(void 0, ctx, host, typeKey, rawProps);
2195
- if (_optionalChain([meta, 'optionalAccess', _40 => _40.resume])) {
2212
+ const typeKey = (_nullishCoalesce(_optionalChain([meta, 'optionalAccess', _49 => _49.id]), () => ( vnode.type.name))) || "Anonymous";
2213
+ _chunkQNMYVXRLcjs.__fictRegisterScope.call(void 0, ctx, host, typeKey, rawProps);
2214
+ if (_optionalChain([meta, 'optionalAccess', _50 => _50.resume])) {
2196
2215
  host.setAttribute("data-fict-h", meta.resume);
2197
2216
  }
2198
2217
  if (content instanceof DocumentFragment) {
@@ -2206,43 +2225,44 @@ function createElementWithContext(node, namespace) {
2206
2225
  }
2207
2226
  return host;
2208
2227
  }
2209
- const componentRoot = createElementWithContext(rendered, namespace);
2228
+ const componentRoot = createElementWithContext(rendered, namespace, ownerDocument);
2210
2229
  if (hook && componentId !== void 0) {
2211
2230
  mountElements = collectComponentMountElements(componentRoot);
2212
2231
  annotateComponentElements(mountElements, componentId, componentName);
2213
2232
  }
2214
2233
  return componentRoot;
2215
2234
  } catch (err) {
2216
- if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err)) {
2217
- return document.createComment("fict:suspend");
2235
+ if (_chunkQNMYVXRLcjs.handleSuspend.call(void 0, err)) {
2236
+ return ownerDocument.createComment("fict:suspend");
2218
2237
  }
2219
- _chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "render", componentName: vnode.type.name });
2238
+ _chunkQNMYVXRLcjs.handleError.call(void 0, err, { source: "render", componentName: vnode.type.name });
2220
2239
  throw err;
2221
2240
  } finally {
2222
- _chunkEQ5E4WOVcjs.__fictPopContext.call(void 0, );
2241
+ _chunkQNMYVXRLcjs.__fictPopContext.call(void 0, );
2223
2242
  }
2224
2243
  }
2225
2244
  if (vnode.type === Fragment) {
2226
- const frag = document.createDocumentFragment();
2227
- const children = _optionalChain([vnode, 'access', _41 => _41.props, 'optionalAccess', _42 => _42.children]);
2228
- appendChildren(frag, children, namespace);
2245
+ const frag = ownerDocument.createDocumentFragment();
2246
+ const children = _optionalChain([vnode, 'access', _51 => _51.props, 'optionalAccess', _52 => _52.children]);
2247
+ appendChildren(frag, children, namespace, ownerDocument);
2229
2248
  return frag;
2230
2249
  }
2231
2250
  const tagName = typeof vnode.type === "string" ? vnode.type : "div";
2232
2251
  const resolvedNamespace = resolveNamespace(tagName, namespace);
2233
- const el = resolvedNamespace === "svg" ? document.createElementNS(SVG_NS, tagName) : resolvedNamespace === "mathml" ? document.createElementNS(MATHML_NS, tagName) : document.createElement(tagName);
2252
+ const el = resolvedNamespace === "svg" ? ownerDocument.createElementNS(SVG_NS, tagName) : resolvedNamespace === "mathml" ? ownerDocument.createElementNS(MATHML_NS, tagName) : ownerDocument.createElement(tagName);
2234
2253
  applyProps(el, _nullishCoalesce(vnode.props, () => ( {})), resolvedNamespace === "svg");
2235
2254
  appendChildren(
2236
2255
  el,
2237
- _optionalChain([vnode, 'access', _43 => _43.props, 'optionalAccess', _44 => _44.children]),
2238
- tagName === "foreignObject" ? null : resolvedNamespace
2256
+ _optionalChain([vnode, 'access', _53 => _53.props, 'optionalAccess', _54 => _54.children]),
2257
+ tagName === "foreignObject" ? null : resolvedNamespace,
2258
+ ownerDocument
2239
2259
  );
2240
2260
  return el;
2241
2261
  }
2242
2262
  function template(html, isImportNode, isSVG, isMathML) {
2243
- let node = null;
2244
- const create = () => {
2245
- const t = document.createElement("template");
2263
+ const nodeByDocument = /* @__PURE__ */ new WeakMap();
2264
+ const create = (ownerDocument) => {
2265
+ const t = ownerDocument.createElement("template");
2246
2266
  if (isSVG) {
2247
2267
  t.innerHTML = `<svg>${html}</svg>`;
2248
2268
  const wrapper = t.content.firstChild;
@@ -2254,7 +2274,7 @@ function template(html, isImportNode, isSVG, isMathML) {
2254
2274
  if (wrapper.childNodes.length === 1) {
2255
2275
  return wrapper.firstChild;
2256
2276
  }
2257
- const fragment = document.createDocumentFragment();
2277
+ const fragment = ownerDocument.createDocumentFragment();
2258
2278
  fragment.append(...Array.from(wrapper.childNodes));
2259
2279
  return fragment;
2260
2280
  }
@@ -2269,7 +2289,7 @@ function template(html, isImportNode, isSVG, isMathML) {
2269
2289
  if (wrapper.childNodes.length === 1) {
2270
2290
  return wrapper.firstChild;
2271
2291
  }
2272
- const fragment = document.createDocumentFragment();
2292
+ const fragment = ownerDocument.createDocumentFragment();
2273
2293
  fragment.append(...Array.from(wrapper.childNodes));
2274
2294
  return fragment;
2275
2295
  }
@@ -2285,11 +2305,19 @@ function template(html, isImportNode, isSVG, isMathML) {
2285
2305
  }
2286
2306
  return content;
2287
2307
  };
2308
+ const getBase = (ownerDocument) => {
2309
+ const cached = nodeByDocument.get(ownerDocument);
2310
+ if (cached) return cached;
2311
+ const created = create(ownerDocument);
2312
+ nodeByDocument.set(ownerDocument, created);
2313
+ return created;
2314
+ };
2288
2315
  const fn = isImportNode ? () => untrack2(() => {
2289
- const base = node || (node = create());
2290
- return isHydratingActive() ? claimNodes(base, () => document.importNode(base, true)) : document.importNode(base, true);
2316
+ const ownerDocument = resolveOwnerDocument();
2317
+ const base = getBase(ownerDocument);
2318
+ return isHydratingActive() ? claimNodes(base, () => ownerDocument.importNode(base, true)) : ownerDocument.importNode(base, true);
2291
2319
  }) : () => {
2292
- const base = node || (node = create());
2320
+ const base = getBase(resolveOwnerDocument());
2293
2321
  return isHydratingActive() ? claimNodes(base, () => base.cloneNode(true)) : base.cloneNode(true);
2294
2322
  };
2295
2323
  fn.cloneNode = fn;
@@ -2298,39 +2326,44 @@ function template(html, isImportNode, isSVG, isMathML) {
2298
2326
  function isBindingHandle(node) {
2299
2327
  return node !== null && typeof node === "object" && "marker" in node && "dispose" in node && typeof node.dispose === "function";
2300
2328
  }
2301
- function appendChildNode(parent, child, namespace) {
2329
+ function appendChildNode(parent, child, namespace, ownerDocument) {
2330
+ const parentOwnerDocument = _nullishCoalesce(parent.ownerDocument, () => ( ownerDocument));
2302
2331
  if (child === null || child === void 0 || child === false) {
2303
2332
  return;
2304
2333
  }
2305
2334
  if (isBindingHandle(child)) {
2306
- appendChildNode(parent, child.marker, namespace);
2307
- _optionalChain([child, 'access', _45 => _45.flush, 'optionalCall', _46 => _46()]);
2335
+ appendChildNode(parent, child.marker, namespace, parentOwnerDocument);
2336
+ _optionalChain([child, 'access', _55 => _55.flush, 'optionalCall', _56 => _56()]);
2308
2337
  return;
2309
2338
  }
2310
2339
  if (typeof child === "function") {
2311
2340
  const childGetter = child;
2312
2341
  if (isReactive(childGetter)) {
2313
- createChildBinding(parent, childGetter, (node) => createElementWithContext(node, namespace));
2342
+ createChildBinding(
2343
+ parent,
2344
+ childGetter,
2345
+ (node) => createElementWithContext(node, namespace, parentOwnerDocument)
2346
+ );
2314
2347
  return;
2315
2348
  }
2316
2349
  return;
2317
2350
  }
2318
2351
  if (Array.isArray(child)) {
2319
2352
  for (const item of child) {
2320
- appendChildNode(parent, item, namespace);
2353
+ appendChildNode(parent, item, namespace, parentOwnerDocument);
2321
2354
  }
2322
2355
  return;
2323
2356
  }
2324
2357
  let domNode;
2325
2358
  if (typeof child !== "object" || child === null) {
2326
- domNode = document.createTextNode(String(_nullishCoalesce(child, () => ( ""))));
2359
+ domNode = parentOwnerDocument.createTextNode(String(_nullishCoalesce(child, () => ( ""))));
2327
2360
  } else {
2328
- domNode = createElementWithContext(child, namespace);
2361
+ domNode = createElementWithContext(child, namespace, parentOwnerDocument);
2329
2362
  }
2330
2363
  if (domNode.nodeType === 11) {
2331
2364
  const children = Array.from(domNode.childNodes);
2332
2365
  for (const node of children) {
2333
- appendChildNode(parent, node, namespace);
2366
+ appendChildNode(parent, node, namespace, parentOwnerDocument);
2334
2367
  }
2335
2368
  return;
2336
2369
  }
@@ -2348,23 +2381,23 @@ function appendChildNode(parent, child, namespace) {
2348
2381
  throw e;
2349
2382
  }
2350
2383
  }
2351
- function appendChildren(parent, children, namespace) {
2384
+ function appendChildren(parent, children, namespace, ownerDocument) {
2352
2385
  if (children === void 0) return;
2353
2386
  if (Array.isArray(children)) {
2354
2387
  for (const child of children) {
2355
- appendChildren(parent, child, namespace);
2388
+ appendChildren(parent, child, namespace, ownerDocument);
2356
2389
  }
2357
2390
  return;
2358
2391
  }
2359
- appendChildNode(parent, children, namespace);
2392
+ appendChildNode(parent, children, namespace, ownerDocument);
2360
2393
  }
2361
2394
  function applyRef(el, value) {
2362
2395
  if (typeof value === "function") {
2363
2396
  const refFn = value;
2364
2397
  refFn(el);
2365
- const root = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
2398
+ const root = _chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, );
2366
2399
  if (root) {
2367
- _chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, () => {
2400
+ _chunkQNMYVXRLcjs.registerRootCleanup.call(void 0, () => {
2368
2401
  refFn(null);
2369
2402
  });
2370
2403
  } else if (isDev2) {
@@ -2375,9 +2408,9 @@ function applyRef(el, value) {
2375
2408
  } else if (value && typeof value === "object" && "current" in value) {
2376
2409
  const refObj = value;
2377
2410
  refObj.current = el;
2378
- const root = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
2411
+ const root = _chunkQNMYVXRLcjs.getCurrentRoot.call(void 0, );
2379
2412
  if (root) {
2380
- _chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, () => {
2413
+ _chunkQNMYVXRLcjs.registerRootCleanup.call(void 0, () => {
2381
2414
  refObj.current = null;
2382
2415
  });
2383
2416
  } else if (isDev2) {
@@ -2451,7 +2484,7 @@ function applyProps(el, props, isSVG = false) {
2451
2484
  }
2452
2485
  continue;
2453
2486
  }
2454
- if (isDev2 && _chunkEQ5E4WOVcjs.ChildProperties.has(key) || key === "innerHTML" || key === "textContent" || key === "innerText" || key === "children") {
2487
+ if (isDev2 && _chunkQNMYVXRLcjs.ChildProperties.has(key) || key === "innerHTML" || key === "textContent" || key === "innerText" || key === "children") {
2455
2488
  createAttributeBinding(el, key, value, setProperty);
2456
2489
  continue;
2457
2490
  }
@@ -2467,8 +2500,8 @@ function applyProps(el, props, isSVG = false) {
2467
2500
  createAttributeBinding(el, key.slice(5), value, setProperty);
2468
2501
  continue;
2469
2502
  }
2470
- const propAlias = !isSVG && isDev2 ? _chunkEQ5E4WOVcjs.getPropAlias.call(void 0, key, tagName) : void 0;
2471
- const isProperty = !isSVG ? isDev2 ? _chunkEQ5E4WOVcjs.Properties.has(key) : key in el : false;
2503
+ const propAlias = !isSVG && isDev2 ? _chunkQNMYVXRLcjs.getPropAlias.call(void 0, key, tagName) : void 0;
2504
+ const isProperty = !isSVG ? isDev2 ? _chunkQNMYVXRLcjs.Properties.has(key) : key in el : false;
2472
2505
  if (propAlias || isProperty || isCE && !isSVG) {
2473
2506
  const propName = propAlias || key;
2474
2507
  if (isCE && !isProperty && !propAlias) {
@@ -2485,7 +2518,7 @@ function applyProps(el, props, isSVG = false) {
2485
2518
  }
2486
2519
  if (isSVG && key.indexOf(":") > -1) {
2487
2520
  const [prefix, name] = key.split(":");
2488
- const ns = _chunkEQ5E4WOVcjs.SVGNamespace[prefix];
2521
+ const ns = _chunkQNMYVXRLcjs.SVGNamespace[prefix];
2489
2522
  if (ns) {
2490
2523
  createAttributeBinding(
2491
2524
  el,
@@ -2628,4 +2661,4 @@ function eventNameFromProp(key) {
2628
2661
 
2629
2662
 
2630
2663
  exports.startTransition = startTransition; exports.useTransition = useTransition; exports.useDeferredValue = useDeferredValue; exports.batch = batch2; exports.untrack = untrack2; exports.Fragment = Fragment; exports.withHydrationRange = withHydrationRange; exports.isHydratingActive = isHydratingActive; exports.toNodeArray = toNodeArray; exports.insertNodesBefore = insertNodesBefore; exports.removeNodes = removeNodes; exports.getSlotEnd = getSlotEnd; exports.resolvePath = resolvePath; exports.isReactive = isReactive; exports.nonReactive = nonReactive; exports.reactive = reactive; exports.unwrap = unwrap; exports.callEventHandler = callEventHandler; exports.createTextBinding = createTextBinding; exports.bindText = bindText; exports.setText = setText; exports.createAttributeBinding = createAttributeBinding; exports.bindAttribute = bindAttribute; exports.setAttr = setAttr; exports.bindProperty = bindProperty; exports.setProp = setProp; exports.createStyleBinding = createStyleBinding; exports.bindStyle = bindStyle; exports.setStyle = setStyle; exports.createClassBinding = createClassBinding; exports.bindClass = bindClass; exports.setClass = setClass; exports.classList = classList; exports.insert = insert; exports.insertBetween = insertBetween; exports.createChildBinding = createChildBinding; exports.delegateEvents = delegateEvents; exports.clearDelegatedEvents = clearDelegatedEvents; exports.addEventListener = addEventListener; exports.bindEvent = bindEvent; exports.bindRef = bindRef; exports.spread = spread; exports.assign = assign; exports.createConditional = createConditional; exports.createShow = createShow; exports.createPortal = createPortal; exports.__fictProp = __fictProp; exports.createPropsProxy = createPropsProxy; exports.__fictPropsRest = __fictPropsRest; exports.mergeProps = mergeProps; exports.keyed = keyed; exports.prop = prop; exports.render = render; exports.hydrateComponent = hydrateComponent; exports.createElement = createElement; exports.template = template;
2631
- //# sourceMappingURL=chunk-I4GKKAAY.cjs.map
2664
+ //# sourceMappingURL=chunk-4QGEN5SJ.cjs.map