marko 6.0.60 → 6.0.62

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.
@@ -21,85 +21,85 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var html_exports = {};
22
22
  __export(html_exports, {
23
23
  $global: () => $global,
24
- attr: () => attr,
24
+ _attr: () => _attr,
25
+ _attr_class: () => _attr_class,
26
+ _attr_content: () => _attr_content,
27
+ _attr_details_open: () => _attr_details_or_dialog_open,
28
+ _attr_dialog_open: () => _attr_details_or_dialog_open,
29
+ _attr_input_checked: () => _attr_input_checked,
30
+ _attr_input_checkedValue: () => _attr_input_checkedValue,
31
+ _attr_input_value: () => _attr_input_value,
32
+ _attr_option_value: () => _attr_option_value,
33
+ _attr_select_value: () => _attr_select_value,
34
+ _attr_style: () => _attr_style,
35
+ _attr_textarea_value: () => _attr_textarea_value,
36
+ _attrs: () => _attrs,
37
+ _attrs_content: () => _attrs_content,
38
+ _attrs_partial: () => _attrs_partial,
39
+ _attrs_partial_content: () => _attrs_partial_content,
40
+ _await: () => _await,
41
+ _content: () => _content,
42
+ _content_resume: () => _content_resume,
43
+ _dynamic_tag: () => _dynamic_tag,
44
+ _el: () => _el,
45
+ _el_resume: () => _el_resume,
46
+ _escape: () => _escape,
47
+ _escape_script: () => _escape_script,
48
+ _escape_style: () => _escape_style,
49
+ _existing_scope: () => _existing_scope,
50
+ _for_in: () => _for_in,
51
+ _for_of: () => _for_of,
52
+ _for_to: () => _for_to,
53
+ _hoist: () => _hoist,
54
+ _html: () => _html,
55
+ _id: () => _id,
56
+ _if: () => _if,
57
+ _peek_scope_id: () => _peek_scope_id,
58
+ _resume: () => _resume,
59
+ _resume_branch: () => _resume_branch,
60
+ _scope: () => writeScope,
61
+ _scope_id: () => _scope_id,
62
+ _scope_with_id: () => _scope_with_id,
63
+ _script: () => _script,
64
+ _sep: () => _sep,
65
+ _serialize_guard: () => _serialize_guard,
66
+ _serialize_if: () => _serialize_if,
67
+ _subscribe: () => _subscribe,
68
+ _template: () => _template,
69
+ _trailers: () => _trailers,
70
+ _try: () => _try,
71
+ _unescaped: () => _unescaped,
72
+ _var: () => _var,
25
73
  attrTag: () => attrTag,
26
74
  attrTags: () => attrTags,
27
- attrs: () => attrs,
28
- classAttr: () => classAttr,
29
- commentSeparator: () => commentSeparator,
30
75
  compat: () => compat,
31
- controllable_detailsOrDialog_open: () => controllable_detailsOrDialog_open,
32
- controllable_input_checked: () => controllable_input_checked,
33
- controllable_input_checkedValue: () => controllable_input_checkedValue,
34
- controllable_input_value: () => controllable_input_value,
35
- controllable_select_value: () => controllable_select_value,
36
- controllable_textarea_value: () => controllable_textarea_value,
37
- createContent: () => createContent,
38
- createTemplate: () => createTemplate,
39
- dynamicTag: () => dynamicTag,
40
- ensureScopeWithId: () => ensureScopeWithId,
41
- escapeScript: () => escapeScript,
42
- escapeStyle: () => escapeStyle,
43
- escapeXML: () => escapeXML,
44
76
  forIn: () => forIn,
45
77
  forInBy: () => forInBy,
46
78
  forOf: () => forOf,
47
79
  forOfBy: () => forOfBy,
48
80
  forTo: () => forTo,
49
- forToBy: () => forToBy,
50
- fork: () => fork,
51
- getScopeById: () => getScopeById,
52
- hoist: () => hoist,
53
- markResumeNode: () => markResumeNode,
54
- nextScopeId: () => nextScopeId,
55
- nextTagId: () => nextTagId,
56
- nodeRef: () => nodeRef,
57
- optionValueAttr: () => optionValueAttr,
58
- partialAttrs: () => partialAttrs,
59
- peekNextScopeId: () => peekNextScopeId,
60
- register: () => register2,
61
- registerContent: () => registerContent,
62
- resumeClosestBranch: () => resumeClosestBranch,
63
- resumeConditional: () => resumeConditional,
64
- resumeForIn: () => resumeForIn,
65
- resumeForOf: () => resumeForOf,
66
- resumeForTo: () => resumeForTo,
67
- serializeGuard: () => serializeGuard,
68
- serializeIf: () => serializeIf,
69
- setTagVar: () => setTagVar,
70
- styleAttr: () => styleAttr,
71
- toString: () => toString,
72
- tryContent: () => tryContent,
73
- write: () => write,
74
- writeAttrsAndContent: () => writeAttrsAndContent,
75
- writeContent: () => writeContent,
76
- writeEffect: () => writeEffect,
77
- writeExistingScope: () => writeExistingScope,
78
- writePartialAttrsAndContent: () => writePartialAttrsAndContent,
79
- writeScope: () => writeScope,
80
- writeSubscribe: () => writeSubscribe,
81
- writeTrailers: () => writeTrailers
81
+ forToBy: () => forToBy
82
82
  });
83
83
  module.exports = __toCommonJS(html_exports);
84
84
 
85
85
  // src/common/attr-tag.ts
86
86
  var empty = [];
87
87
  var rest = true ? Symbol("Attribute Tag") : Symbol();
88
- function attrTag(attrs2) {
89
- attrs2[Symbol.iterator] = attrTagIterator;
90
- attrs2[rest] = empty;
91
- return attrs2;
88
+ function attrTag(attrs) {
89
+ attrs[Symbol.iterator] = attrTagIterator;
90
+ attrs[rest] = empty;
91
+ return attrs;
92
92
  }
93
- function attrTags(first, attrs2) {
93
+ function attrTags(first, attrs) {
94
94
  if (first) {
95
95
  if (first[rest] === empty) {
96
- first[rest] = [attrs2];
96
+ first[rest] = [attrs];
97
97
  } else {
98
- first[rest].push(attrs2);
98
+ first[rest].push(attrs);
99
99
  }
100
100
  return first;
101
101
  }
102
- return attrTag(attrs2);
102
+ return attrTag(attrs);
103
103
  }
104
104
  function* attrTagIterator() {
105
105
  yield this;
@@ -160,13 +160,13 @@ function normalizeDynamicRenderer(value) {
160
160
  }
161
161
 
162
162
  // src/html/content.ts
163
- function toString(val) {
163
+ function _unescaped(val) {
164
164
  return val ? val + "" : val === 0 ? "0" : "";
165
165
  }
166
166
  var unsafeXMLReg = /[<&]/g;
167
167
  var replaceUnsafeXML = (c) => c === "&" ? "&amp;" : "&lt;";
168
168
  var escapeXMLStr = (str) => unsafeXMLReg.test(str) ? str.replace(unsafeXMLReg, replaceUnsafeXML) : str;
169
- function escapeXML(val) {
169
+ function _escape(val) {
170
170
  return val ? escapeXMLStr(val + "") : val === 0 ? "0" : "&zwj;";
171
171
  }
172
172
  function escapeTextAreaValue(val) {
@@ -174,12 +174,12 @@ function escapeTextAreaValue(val) {
174
174
  }
175
175
  var unsafeScriptReg = /<\/script/g;
176
176
  var escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str;
177
- function escapeScript(val) {
177
+ function _escape_script(val) {
178
178
  return val ? escapeScriptStr(val + "") : val === 0 ? "0" : "";
179
179
  }
180
180
  var unsafeStyleReg = /<\/style/g;
181
181
  var escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str;
182
- function escapeStyle(val) {
182
+ function _escape_style(val) {
183
183
  return val ? escapeStyleStr(val + "") : val === 0 ? "0" : "";
184
184
  }
185
185
 
@@ -785,7 +785,7 @@ function writeProp(state, val, parent, accessor) {
785
785
  return false;
786
786
  }
787
787
  }
788
- function writeReferenceOr(state, write2, val, parent, accessor) {
788
+ function writeReferenceOr(state, write, val, parent, accessor) {
789
789
  let ref = state.refs.get(val);
790
790
  if (ref) {
791
791
  if (ref.init) {
@@ -813,7 +813,7 @@ function writeReferenceOr(state, write2, val, parent, accessor) {
813
813
  if (true) {
814
814
  ref.debug = DEBUG.get(val);
815
815
  }
816
- if (write2(state, val, ref)) return true;
816
+ if (write(state, val, ref)) return true;
817
817
  state.refs.delete(ref);
818
818
  return false;
819
819
  }
@@ -1694,20 +1694,20 @@ function getState() {
1694
1694
  function getScopeId(scope) {
1695
1695
  return scope[K_SCOPE_ID];
1696
1696
  }
1697
- function write(html) {
1697
+ function _html(html) {
1698
1698
  $chunk.writeHTML(html);
1699
1699
  }
1700
1700
  function writeScript(script) {
1701
1701
  $chunk.writeScript(script);
1702
1702
  }
1703
- function writeEffect(scopeId, registryId) {
1703
+ function _script(scopeId, registryId) {
1704
1704
  $chunk.boundary.state.needsMainRuntime = true;
1705
1705
  $chunk.writeEffect(scopeId, registryId);
1706
1706
  }
1707
- function writeContent(nodeAccessor, scopeId, content, serializeReason) {
1707
+ function _attr_content(nodeAccessor, scopeId, content, serializeReason) {
1708
1708
  const shouldResume = serializeReason !== 0;
1709
1709
  const render2 = normalizeServerRender(content);
1710
- const branchId = peekNextScopeId();
1710
+ const branchId = _peek_scope_id();
1711
1711
  if (render2) {
1712
1712
  if (shouldResume) {
1713
1713
  withBranchId(branchId, render2);
@@ -1715,7 +1715,7 @@ function writeContent(nodeAccessor, scopeId, content, serializeReason) {
1715
1715
  render2();
1716
1716
  }
1717
1717
  }
1718
- const rendered = peekNextScopeId() !== branchId;
1718
+ const rendered = _peek_scope_id() !== branchId;
1719
1719
  if (rendered) {
1720
1720
  if (shouldResume) {
1721
1721
  writeScope(scopeId, {
@@ -1727,7 +1727,7 @@ function writeContent(nodeAccessor, scopeId, content, serializeReason) {
1727
1727
  });
1728
1728
  }
1729
1729
  } else {
1730
- nextScopeId();
1730
+ _scope_id();
1731
1731
  }
1732
1732
  }
1733
1733
  function normalizeServerRender(value) {
@@ -1755,26 +1755,26 @@ function withContext(key, value, cb) {
1755
1755
  ctx[key] = prev;
1756
1756
  }
1757
1757
  }
1758
- function setTagVar(parentScopeId, scopeOffsetAccessor, childScopeId, registryId) {
1759
- ensureScopeWithId(parentScopeId)[scopeOffsetAccessor] = nextScopeId();
1760
- ensureScopeWithId(childScopeId)["#TagVariable" /* TagVariable */] = register2(
1758
+ function _var(parentScopeId, scopeOffsetAccessor, childScopeId, registryId) {
1759
+ _scope_with_id(parentScopeId)[scopeOffsetAccessor] = _scope_id();
1760
+ _scope_with_id(childScopeId)["#TagVariable" /* TagVariable */] = _resume(
1761
1761
  {},
1762
1762
  registryId,
1763
1763
  parentScopeId
1764
1764
  );
1765
1765
  }
1766
- function register2(val, id, scopeId) {
1767
- return scopeId === void 0 ? register(id, val) : register(id, val, ensureScopeWithId(scopeId));
1766
+ function _resume(val, id, scopeId) {
1767
+ return scopeId === void 0 ? register(id, val) : register(id, val, _scope_with_id(scopeId));
1768
1768
  }
1769
- function nextTagId() {
1769
+ function _id() {
1770
1770
  const state = $chunk.boundary.state;
1771
1771
  const { $global: $global2 } = state;
1772
1772
  return "s" + $global2.runtimeId + $global2.renderId + (state.tagId++).toString(36);
1773
1773
  }
1774
- function nextScopeId() {
1774
+ function _scope_id() {
1775
1775
  return $chunk.boundary.state.scopeId++;
1776
1776
  }
1777
- function peekNextScopeId() {
1777
+ function _peek_scope_id() {
1778
1778
  return $chunk.boundary.state.scopeId;
1779
1779
  }
1780
1780
  function getScopeById(scopeId) {
@@ -1782,39 +1782,39 @@ function getScopeById(scopeId) {
1782
1782
  return $chunk.boundary.state.scopes.get(scopeId);
1783
1783
  }
1784
1784
  }
1785
- function serializeIf(condition, key) {
1785
+ function _serialize_if(condition, key) {
1786
1786
  return condition && (condition === 1 || condition[key]) ? 1 : void 0;
1787
1787
  }
1788
- function serializeGuard(condition, key) {
1788
+ function _serialize_guard(condition, key) {
1789
1789
  return condition && (condition === 1 || condition[key]) ? 1 : 0;
1790
1790
  }
1791
- function markResumeNode(scopeId, accessor, shouldResume) {
1791
+ function _el_resume(scopeId, accessor, shouldResume) {
1792
1792
  if (shouldResume === 0) return "";
1793
1793
  const { state } = $chunk.boundary;
1794
1794
  state.needsMainRuntime = true;
1795
1795
  return state.mark("*" /* Node */, scopeId + " " + accessor);
1796
1796
  }
1797
- function commentSeparator(shouldResume) {
1797
+ function _sep(shouldResume) {
1798
1798
  return shouldResume === 0 ? "" : "<!>";
1799
1799
  }
1800
- function nodeRef(scopeId, id) {
1800
+ function _el(scopeId, id) {
1801
1801
  const getter = () => {
1802
1802
  if (true) {
1803
1803
  throw new Error("Cannot read a node reference on the server.");
1804
1804
  }
1805
1805
  };
1806
- return id ? register2(getter, id, scopeId) : getter;
1806
+ return id ? _resume(getter, id, scopeId) : getter;
1807
1807
  }
1808
- function hoist(scopeId, id) {
1808
+ function _hoist(scopeId, id) {
1809
1809
  const getter = () => {
1810
1810
  if (true) {
1811
1811
  throw new Error("Cannot read a hoisted value on the server.");
1812
1812
  }
1813
1813
  };
1814
1814
  getter[Symbol.iterator] = getter;
1815
- return id ? register2(getter, id, scopeId) : getter;
1815
+ return id ? _resume(getter, id, scopeId) : getter;
1816
1816
  }
1817
- function resumeClosestBranch(scopeId) {
1817
+ function _resume_branch(scopeId) {
1818
1818
  const branchId = $chunk.context?.[branchIdKey];
1819
1819
  if (branchId !== void 0 && branchId !== scopeId) {
1820
1820
  writeScope(scopeId, { ["#ClosestBranchId" /* ClosestBranchId */]: branchId });
@@ -1827,22 +1827,23 @@ function isInResumedBranch() {
1827
1827
  function withBranchId(branchId, cb) {
1828
1828
  return withContext(branchIdKey, branchId, cb);
1829
1829
  }
1830
- function resumeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag, singleNode) {
1830
+ function _for_of(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag, singleNode) {
1831
1831
  const { state } = $chunk.boundary;
1832
1832
  const resumeBranch = serializeBranch !== 0;
1833
1833
  const resumeMarker = serializeMarker !== 0;
1834
- let singleNodeBranchIds = "";
1834
+ let flushBranchIds = "";
1835
1835
  if (resumeBranch) {
1836
1836
  const loopScopes = /* @__PURE__ */ new Map();
1837
1837
  forOf(list, (item, index) => {
1838
- const branchId = peekNextScopeId();
1838
+ const branchId = _peek_scope_id();
1839
1839
  if (resumeMarker) {
1840
1840
  if (singleNode) {
1841
- singleNodeBranchIds = " " + branchId + singleNodeBranchIds;
1841
+ flushBranchIds = " " + branchId + flushBranchIds;
1842
1842
  } else {
1843
1843
  $chunk.writeHTML(
1844
- state.mark("[" /* BranchStart */, branchId + (index ? " " : ""))
1844
+ state.mark("[" /* BranchStart */, flushBranchIds)
1845
1845
  );
1846
+ flushBranchIds = branchId + "";
1846
1847
  }
1847
1848
  }
1848
1849
  withBranchId(branchId, () => {
@@ -1861,32 +1862,30 @@ function resumeForOf(list, cb, by, scopeId, accessor, serializeBranch, serialize
1861
1862
  writeBranchEnd(
1862
1863
  scopeId,
1863
1864
  accessor,
1865
+ resumeBranch,
1864
1866
  resumeMarker,
1865
1867
  parentEndTag,
1866
- resumeMarker && (!parentEndTag || resumeBranch) && (singleNode ? state.mark(
1867
- parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
1868
- scopeId + " " + accessor + singleNodeBranchIds
1869
- ) : state.mark("]" /* BranchEnd */, scopeId + " " + accessor))
1868
+ singleNode,
1869
+ singleNode ? flushBranchIds : flushBranchIds ? " " + flushBranchIds : ""
1870
1870
  );
1871
1871
  }
1872
- function resumeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag, singleNode) {
1872
+ function _for_in(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag, singleNode) {
1873
1873
  const { state } = $chunk.boundary;
1874
1874
  const resumeBranch = serializeBranch !== 0;
1875
1875
  const resumeMarker = serializeMarker !== 0;
1876
- let singleNodeBranchIds = "";
1876
+ let flushBranchIds = "";
1877
1877
  if (resumeBranch) {
1878
1878
  const loopScopes = /* @__PURE__ */ new Map();
1879
- let sep = "";
1880
1879
  forIn(obj, (key, value) => {
1881
- const branchId = peekNextScopeId();
1880
+ const branchId = _peek_scope_id();
1882
1881
  if (resumeMarker) {
1883
1882
  if (singleNode) {
1884
- singleNodeBranchIds = " " + branchId + singleNodeBranchIds;
1883
+ flushBranchIds = " " + branchId + flushBranchIds;
1885
1884
  } else {
1886
1885
  $chunk.writeHTML(
1887
- state.mark("[" /* BranchStart */, branchId + sep)
1886
+ state.mark("[" /* BranchStart */, flushBranchIds)
1888
1887
  );
1889
- sep = " ";
1888
+ flushBranchIds = branchId + "";
1890
1889
  }
1891
1890
  }
1892
1891
  withBranchId(branchId, () => {
@@ -1905,32 +1904,30 @@ function resumeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeM
1905
1904
  writeBranchEnd(
1906
1905
  scopeId,
1907
1906
  accessor,
1907
+ resumeBranch,
1908
1908
  resumeMarker,
1909
1909
  parentEndTag,
1910
- resumeMarker && (!parentEndTag || resumeBranch) && (singleNode ? state.mark(
1911
- parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
1912
- scopeId + " " + accessor + singleNodeBranchIds
1913
- ) : state.mark("]" /* BranchEnd */, scopeId + " " + accessor))
1910
+ singleNode,
1911
+ singleNode ? flushBranchIds : flushBranchIds ? " " + flushBranchIds : ""
1914
1912
  );
1915
1913
  }
1916
- function resumeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag, singleNode) {
1914
+ function _for_to(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag, singleNode) {
1917
1915
  const { state } = $chunk.boundary;
1918
1916
  const resumeBranch = serializeBranch !== 0;
1919
1917
  const resumeMarker = serializeMarker !== 0;
1920
- let singleNodeBranchIds = "";
1918
+ let flushBranchIds = "";
1921
1919
  if (resumeBranch) {
1922
1920
  const loopScopes = /* @__PURE__ */ new Map();
1923
- let sep = "";
1924
1921
  forTo(to, from, step, (i) => {
1925
- const branchId = peekNextScopeId();
1922
+ const branchId = _peek_scope_id();
1926
1923
  if (resumeMarker) {
1927
1924
  if (singleNode) {
1928
- singleNodeBranchIds = " " + branchId + singleNodeBranchIds;
1925
+ flushBranchIds = " " + branchId + flushBranchIds;
1929
1926
  } else {
1930
1927
  $chunk.writeHTML(
1931
- state.mark("[" /* BranchStart */, branchId + sep)
1928
+ state.mark("[" /* BranchStart */, flushBranchIds)
1932
1929
  );
1933
- sep = " ";
1930
+ flushBranchIds = branchId + "";
1934
1931
  }
1935
1932
  }
1936
1933
  withBranchId(branchId, () => {
@@ -1949,21 +1946,20 @@ function resumeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch,
1949
1946
  writeBranchEnd(
1950
1947
  scopeId,
1951
1948
  accessor,
1949
+ resumeBranch,
1952
1950
  resumeMarker,
1953
1951
  parentEndTag,
1954
- resumeMarker && (!parentEndTag || resumeBranch) && (singleNode ? state.mark(
1955
- parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
1956
- scopeId + " " + accessor + singleNodeBranchIds
1957
- ) : state.mark("]" /* BranchEnd */, scopeId + " " + accessor))
1952
+ singleNode,
1953
+ singleNode ? flushBranchIds : flushBranchIds ? " " + flushBranchIds : ""
1958
1954
  );
1959
1955
  }
1960
- function resumeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag, singleNode) {
1956
+ function _if(cb, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag, singleNode) {
1961
1957
  const { state } = $chunk.boundary;
1962
1958
  const resumeBranch = serializeBranch !== 0;
1963
1959
  const resumeMarker = serializeMarker !== 0;
1964
- const branchId = peekNextScopeId();
1960
+ const branchId = _peek_scope_id();
1965
1961
  if (resumeMarker && resumeBranch && !singleNode) {
1966
- $chunk.writeHTML(state.mark("[" /* BranchStart */, branchId + ""));
1962
+ $chunk.writeHTML(state.mark("[" /* BranchStart */, ""));
1967
1963
  }
1968
1964
  const branchIndex = resumeBranch ? withBranchId(branchId, cb) : cb();
1969
1965
  const shouldWriteBranch = resumeBranch && branchIndex !== void 0;
@@ -1976,21 +1972,28 @@ function resumeConditional(cb, scopeId, accessor, serializeBranch, serializeMark
1976
1972
  writeBranchEnd(
1977
1973
  scopeId,
1978
1974
  accessor,
1975
+ resumeBranch,
1979
1976
  resumeMarker,
1980
1977
  parentEndTag,
1981
- resumeMarker && (!parentEndTag || resumeBranch) && (singleNode ? state.mark(
1982
- parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
1983
- scopeId + " " + accessor + (shouldWriteBranch ? " " + branchId : "")
1984
- ) : state.mark("]" /* BranchEnd */, scopeId + " " + accessor))
1978
+ singleNode,
1979
+ shouldWriteBranch ? " " + branchId : ""
1985
1980
  );
1986
1981
  }
1987
- function writeBranchEnd(scopeId, accessor, resumeMarker, parentEndTag, mark) {
1982
+ function writeBranchEnd(scopeId, accessor, resumeBranch, resumeMarker, parentEndTag, singleNode, branchIds) {
1988
1983
  const endTag = parentEndTag || "";
1989
1984
  if (resumeMarker) {
1990
- if (mark) {
1985
+ if (!parentEndTag || resumeBranch) {
1986
+ const { state } = $chunk.boundary;
1987
+ const mark = singleNode ? state.mark(
1988
+ parentEndTag ? "}" /* BranchEndSingleNodeOnlyChildInParent */ : "|" /* BranchEndSingleNode */,
1989
+ scopeId + " " + accessor + (branchIds || "")
1990
+ ) : state.mark(
1991
+ parentEndTag ? ")" /* BranchEndOnlyChildInParent */ : "]" /* BranchEnd */,
1992
+ scopeId + " " + accessor + (branchIds || "")
1993
+ );
1991
1994
  $chunk.writeHTML(mark + endTag);
1992
1995
  } else {
1993
- $chunk.writeHTML(endTag + markResumeNode(scopeId, accessor));
1996
+ $chunk.writeHTML(endTag + _el_resume(scopeId, accessor));
1994
1997
  }
1995
1998
  } else {
1996
1999
  $chunk.writeHTML(endTag);
@@ -2026,10 +2029,10 @@ if (true) {
2026
2029
  return scope;
2027
2030
  })(writeScope);
2028
2031
  }
2029
- function writeExistingScope(scopeId) {
2030
- return writeScope(scopeId, ensureScopeWithId(scopeId));
2032
+ function _existing_scope(scopeId) {
2033
+ return writeScope(scopeId, _scope_with_id(scopeId));
2031
2034
  }
2032
- function ensureScopeWithId(scopeId) {
2035
+ function _scope_with_id(scopeId) {
2033
2036
  const { state } = $chunk.boundary;
2034
2037
  let scope = state.scopes.get(scopeId);
2035
2038
  if (!scope) {
@@ -2041,13 +2044,13 @@ function ensureScopeWithId(scopeId) {
2041
2044
  function $global() {
2042
2045
  return $chunk.boundary.state.$global;
2043
2046
  }
2044
- function fork(scopeId, accessor, promise, content, serializeMarker) {
2047
+ function _await(scopeId, accessor, promise, content, serializeMarker) {
2045
2048
  const resumeMarker = serializeMarker !== 0;
2046
2049
  if (!isPromise(promise)) {
2047
2050
  if (resumeMarker) {
2048
- const branchId = peekNextScopeId();
2051
+ const branchId = _peek_scope_id();
2049
2052
  $chunk.writeHTML(
2050
- $chunk.boundary.state.mark("[" /* BranchStart */, branchId + "")
2053
+ $chunk.boundary.state.mark("[" /* BranchStart */, "")
2051
2054
  );
2052
2055
  content(promise);
2053
2056
  writeScope(scopeId, {
@@ -2056,7 +2059,7 @@ function fork(scopeId, accessor, promise, content, serializeMarker) {
2056
2059
  $chunk.writeHTML(
2057
2060
  $chunk.boundary.state.mark(
2058
2061
  "]" /* BranchEnd */,
2059
- scopeId + " " + accessor
2062
+ scopeId + " " + accessor + " " + branchId
2060
2063
  )
2061
2064
  );
2062
2065
  } else {
@@ -2079,23 +2082,20 @@ function fork(scopeId, accessor, promise, content, serializeMarker) {
2079
2082
  if (!boundary.signal.aborted) {
2080
2083
  chunk.render(() => {
2081
2084
  if (resumeMarker) {
2082
- const branchId = peekNextScopeId();
2085
+ const branchId = _peek_scope_id();
2083
2086
  $chunk.writeHTML(
2084
- $chunk.boundary.state.mark(
2085
- "[" /* BranchStart */,
2086
- branchId + ""
2087
- )
2087
+ $chunk.boundary.state.mark("[" /* BranchStart */, "")
2088
2088
  );
2089
2089
  content(value);
2090
2090
  boundary.state.serializer.writeAssign(
2091
2091
  writeScope(branchId, {}),
2092
- ensureScopeWithId(scopeId),
2092
+ _scope_with_id(scopeId),
2093
2093
  "ConditionalScope:" /* ConditionalScope */ + accessor
2094
2094
  );
2095
2095
  $chunk.writeHTML(
2096
2096
  $chunk.boundary.state.mark(
2097
2097
  "]" /* BranchEnd */,
2098
- scopeId + " " + accessor
2098
+ scopeId + " " + accessor + " " + branchId
2099
2099
  )
2100
2100
  );
2101
2101
  } else {
@@ -2112,11 +2112,9 @@ function fork(scopeId, accessor, promise, content, serializeMarker) {
2112
2112
  }
2113
2113
  );
2114
2114
  }
2115
- function tryContent(scopeId, accessor, content, input) {
2116
- const branchId = peekNextScopeId();
2117
- $chunk.writeHTML(
2118
- $chunk.boundary.state.mark("[" /* BranchStart */, branchId + "")
2119
- );
2115
+ function _try(scopeId, accessor, content, input) {
2116
+ const branchId = _peek_scope_id();
2117
+ $chunk.writeHTML($chunk.boundary.state.mark("[" /* BranchStart */, ""));
2120
2118
  const catchContent = normalizeDynamicRenderer(input.catch);
2121
2119
  const placeholderContent = normalizeDynamicRenderer(input.placeholder);
2122
2120
  if (catchContent) {
@@ -2140,7 +2138,7 @@ function tryContent(scopeId, accessor, content, input) {
2140
2138
  $chunk.writeHTML(
2141
2139
  $chunk.boundary.state.mark(
2142
2140
  "]" /* BranchEnd */,
2143
- scopeId + " " + accessor
2141
+ scopeId + " " + accessor + " " + branchId
2144
2142
  )
2145
2143
  );
2146
2144
  }
@@ -2556,7 +2554,7 @@ function flushSerializer(boundary) {
2556
2554
  }
2557
2555
  }
2558
2556
  }
2559
- function writeTrailers(html) {
2557
+ function _trailers(html) {
2560
2558
  $chunk.boundary.state.trailerHTML += html;
2561
2559
  }
2562
2560
  function concatEffects(a, b) {
@@ -2620,24 +2618,24 @@ function getFilteredGlobals($global2) {
2620
2618
  }
2621
2619
  return filtered;
2622
2620
  }
2623
- function writeSubscribe(subscribers, scope) {
2621
+ function _subscribe(subscribers, scope) {
2624
2622
  $chunk.boundary.state.serializer.writeCall(scope, subscribers, "add");
2625
2623
  return scope;
2626
2624
  }
2627
2625
 
2628
2626
  // src/html/attrs.ts
2629
- function classAttr(value) {
2627
+ function _attr_class(value) {
2630
2628
  return stringAttr("class", classValue(value));
2631
2629
  }
2632
- function styleAttr(value) {
2630
+ function _attr_style(value) {
2633
2631
  return stringAttr("style", styleValue(value));
2634
2632
  }
2635
- function optionValueAttr(value) {
2633
+ function _attr_option_value(value) {
2636
2634
  const selectedValue = getContext(kSelectedValue);
2637
- return attr("value", value) + (!isVoid(value) && (Array.isArray(selectedValue) ? selectedValue.includes(value) : selectedValue === value) ? " selected" : "");
2635
+ return _attr("value", value) + (!isVoid(value) && (Array.isArray(selectedValue) ? selectedValue.includes(value) : selectedValue === value) ? " selected" : "");
2638
2636
  }
2639
2637
  var kSelectedValue = Symbol("selectedValue");
2640
- function controllable_select_value(scopeId, nodeAccessor, value, valueChange, content) {
2638
+ function _attr_select_value(scopeId, nodeAccessor, value, valueChange, content) {
2641
2639
  if (valueChange) {
2642
2640
  writeControlledScope(
2643
2641
  3 /* SelectValue */,
@@ -2651,7 +2649,7 @@ function controllable_select_value(scopeId, nodeAccessor, value, valueChange, co
2651
2649
  withContext(kSelectedValue, value, content);
2652
2650
  }
2653
2651
  }
2654
- function controllable_textarea_value(scopeId, nodeAccessor, value, valueChange) {
2652
+ function _attr_textarea_value(scopeId, nodeAccessor, value, valueChange) {
2655
2653
  if (valueChange) {
2656
2654
  writeControlledScope(
2657
2655
  2 /* InputValue */,
@@ -2663,7 +2661,7 @@ function controllable_textarea_value(scopeId, nodeAccessor, value, valueChange)
2663
2661
  }
2664
2662
  return escapeTextAreaValue(value);
2665
2663
  }
2666
- function controllable_input_value(scopeId, nodeAccessor, value, valueChange) {
2664
+ function _attr_input_value(scopeId, nodeAccessor, value, valueChange) {
2667
2665
  if (valueChange) {
2668
2666
  writeControlledScope(
2669
2667
  2 /* InputValue */,
@@ -2673,9 +2671,9 @@ function controllable_input_value(scopeId, nodeAccessor, value, valueChange) {
2673
2671
  valueChange
2674
2672
  );
2675
2673
  }
2676
- return attr("value", value);
2674
+ return _attr("value", value);
2677
2675
  }
2678
- function controllable_input_checked(scopeId, nodeAccessor, checked, checkedChange) {
2676
+ function _attr_input_checked(scopeId, nodeAccessor, checked, checkedChange) {
2679
2677
  if (checkedChange) {
2680
2678
  writeControlledScope(
2681
2679
  0 /* InputChecked */,
@@ -2685,11 +2683,11 @@ function controllable_input_checked(scopeId, nodeAccessor, checked, checkedChang
2685
2683
  checkedChange
2686
2684
  );
2687
2685
  }
2688
- return attr("checked", checked);
2686
+ return _attr("checked", checked);
2689
2687
  }
2690
- function controllable_input_checkedValue(scopeId, nodeAccessor, checkedValue, checkedValueChange, value) {
2688
+ function _attr_input_checkedValue(scopeId, nodeAccessor, checkedValue, checkedValueChange, value) {
2691
2689
  const multiple = Array.isArray(checkedValue);
2692
- const valueAttr = attr("value", value);
2690
+ const valueAttr = _attr("value", value);
2693
2691
  if (checkedValueChange) {
2694
2692
  writeControlledScope(
2695
2693
  1 /* InputCheckedValue */,
@@ -2701,7 +2699,7 @@ function controllable_input_checkedValue(scopeId, nodeAccessor, checkedValue, ch
2701
2699
  }
2702
2700
  return (multiple ? checkedValue.includes(value) : checkedValue === value) ? valueAttr + " checked" : valueAttr;
2703
2701
  }
2704
- function controllable_detailsOrDialog_open(scopeId, nodeAccessor, open, openChange) {
2702
+ function _attr_details_or_dialog_open(scopeId, nodeAccessor, open, openChange) {
2705
2703
  if (openChange) {
2706
2704
  writeControlledScope(
2707
2705
  4 /* DetailsOrDialogOpen */,
@@ -2711,26 +2709,26 @@ function controllable_detailsOrDialog_open(scopeId, nodeAccessor, open, openChan
2711
2709
  openChange
2712
2710
  );
2713
2711
  }
2714
- return attr("open", open);
2712
+ return _attr("open", open);
2715
2713
  }
2716
- function attr(name, value) {
2714
+ function _attr(name, value) {
2717
2715
  return isVoid(value) ? "" : nonVoidAttr(name, value);
2718
2716
  }
2719
- function attrs(data, nodeAccessor, scopeId, tagName) {
2717
+ function _attrs(data, nodeAccessor, scopeId, tagName) {
2720
2718
  let result = "";
2721
2719
  let skip = /[\s/>"'=]/;
2722
2720
  let events;
2723
2721
  switch (tagName) {
2724
2722
  case "input":
2725
2723
  if (data.checkedChange) {
2726
- result += controllable_input_checked(
2724
+ result += _attr_input_checked(
2727
2725
  scopeId,
2728
2726
  nodeAccessor,
2729
2727
  data.checked,
2730
2728
  data.checkedChange
2731
2729
  );
2732
2730
  } else if (data.checkedValue || data.checkedValueChange) {
2733
- result += controllable_input_checkedValue(
2731
+ result += _attr_input_checkedValue(
2734
2732
  scopeId,
2735
2733
  nodeAccessor,
2736
2734
  data.checkedValue,
@@ -2738,7 +2736,7 @@ function attrs(data, nodeAccessor, scopeId, tagName) {
2738
2736
  data.value
2739
2737
  );
2740
2738
  } else if (data.valueChange) {
2741
- result += controllable_input_value(
2739
+ result += _attr_input_value(
2742
2740
  scopeId,
2743
2741
  nodeAccessor,
2744
2742
  data.value,
@@ -2757,14 +2755,14 @@ function attrs(data, nodeAccessor, scopeId, tagName) {
2757
2755
  break;
2758
2756
  case "option":
2759
2757
  if (data.value) {
2760
- result += optionValueAttr(data.value);
2758
+ result += _attr_option_value(data.value);
2761
2759
  skip = /^value$|[\s/>"'=]/;
2762
2760
  }
2763
2761
  break;
2764
2762
  case "details":
2765
2763
  case "dialog":
2766
2764
  if (data.openChange) {
2767
- result += controllable_detailsOrDialog_open(
2765
+ result += _attr_details_or_dialog_open(
2768
2766
  scopeId,
2769
2767
  nodeAccessor,
2770
2768
  data.open,
@@ -2778,10 +2776,10 @@ function attrs(data, nodeAccessor, scopeId, tagName) {
2778
2776
  const value = data[name];
2779
2777
  switch (name) {
2780
2778
  case "class":
2781
- result += classAttr(value);
2779
+ result += _attr_class(value);
2782
2780
  break;
2783
2781
  case "style":
2784
- result += styleAttr(value);
2782
+ result += _attr_style(value);
2785
2783
  break;
2786
2784
  default:
2787
2785
  if (name && !(isVoid(value) || skip.test(name) || name === "content" && tagName !== "meta")) {
@@ -2802,20 +2800,20 @@ function attrs(data, nodeAccessor, scopeId, tagName) {
2802
2800
  }
2803
2801
  return result;
2804
2802
  }
2805
- function writeAttrsAndContent(data, nodeAccessor, scopeId, tagName, serializeReason) {
2806
- write(`${attrs(data, nodeAccessor, scopeId, tagName)}>`);
2807
- writeContent(nodeAccessor, scopeId, data?.content, serializeReason);
2803
+ function _attrs_content(data, nodeAccessor, scopeId, tagName, serializeReason) {
2804
+ _html(`${_attrs(data, nodeAccessor, scopeId, tagName)}>`);
2805
+ _attr_content(nodeAccessor, scopeId, data?.content, serializeReason);
2808
2806
  }
2809
- function partialAttrs(data, skip, nodeAccessor, scopeId, tagName) {
2807
+ function _attrs_partial(data, skip, nodeAccessor, scopeId, tagName) {
2810
2808
  const partial = {};
2811
2809
  for (const key in data) {
2812
2810
  if (!skip[key]) partial[key] = data[key];
2813
2811
  }
2814
- return attrs(partial, nodeAccessor, scopeId, tagName);
2812
+ return _attrs(partial, nodeAccessor, scopeId, tagName);
2815
2813
  }
2816
- function writePartialAttrsAndContent(data, skip, nodeAccessor, scopeId, tagName, serializeReason) {
2817
- write(`${partialAttrs(data, skip, nodeAccessor, scopeId, tagName)}>`);
2818
- writeContent(nodeAccessor, scopeId, data?.content, serializeReason);
2814
+ function _attrs_partial_content(data, skip, nodeAccessor, scopeId, tagName, serializeReason) {
2815
+ _html(`${_attrs_partial(data, skip, nodeAccessor, scopeId, tagName)}>`);
2816
+ _attr_content(nodeAccessor, scopeId, data?.content, serializeReason);
2819
2817
  }
2820
2818
  function writeControlledScope(type, scopeId, nodeAccessor, value, valueChange) {
2821
2819
  writeScope(scopeId, {
@@ -2879,7 +2877,7 @@ var DEFAULT_RUNTIME_ID = "M";
2879
2877
  var DEFAULT_RENDER_ID = "_";
2880
2878
 
2881
2879
  // src/html/template.ts
2882
- var createTemplate = (templateId, renderer) => {
2880
+ var _template = (templateId, renderer) => {
2883
2881
  renderer.render = render;
2884
2882
  renderer._ = renderer;
2885
2883
  if (true) {
@@ -2889,7 +2887,7 @@ var createTemplate = (templateId, renderer) => {
2889
2887
  );
2890
2888
  };
2891
2889
  }
2892
- return registerContent(templateId, renderer);
2890
+ return _content_resume(templateId, renderer);
2893
2891
  };
2894
2892
  function isTemplate(renderer) {
2895
2893
  return !!renderer._;
@@ -3077,14 +3075,14 @@ var ServerRendered = class {
3077
3075
  return;
3078
3076
  }
3079
3077
  const { boundary } = head;
3080
- const onNext = boundary.onNext = (write2) => {
3078
+ const onNext = boundary.onNext = (write) => {
3081
3079
  if (boundary.signal.aborted) {
3082
3080
  if (!tick2) offTick(onNext);
3083
3081
  boundary.onNext = NOOP2;
3084
3082
  onAbort(boundary.signal.reason);
3085
3083
  } else {
3086
3084
  const { done } = boundary;
3087
- if (done || write2) {
3085
+ if (done || write) {
3088
3086
  const html = (head = head.consume()).flushHTML();
3089
3087
  if (html) onWrite(html);
3090
3088
  if (done) {
@@ -3119,7 +3117,7 @@ function NOOP2() {
3119
3117
 
3120
3118
  // src/html/dynamic-tag.ts
3121
3119
  var voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/;
3122
- var dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, serializeReason) => {
3120
+ var _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, serializeReason) => {
3123
3121
  const shouldResume = serializeReason !== 0;
3124
3122
  const renderer = normalizeDynamicRenderer(tag);
3125
3123
  if (true) {
@@ -3128,13 +3126,15 @@ var dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, ser
3128
3126
  }
3129
3127
  }
3130
3128
  const state = getState();
3131
- const branchId = peekNextScopeId();
3129
+ const branchId = _peek_scope_id();
3130
+ let rendered = false;
3132
3131
  let result;
3133
3132
  if (typeof renderer === "string") {
3134
3133
  const input = (inputIsArgs ? inputOrArgs[0] : inputOrArgs) || {};
3135
- nextScopeId();
3136
- write(
3137
- `<${renderer}${attrs(input, true ? `#${renderer}/0` : 0, branchId, renderer)}>`
3134
+ rendered = true;
3135
+ _scope_id();
3136
+ _html(
3137
+ `<${renderer}${_attrs(input, true ? `#${renderer}/0` : 0, branchId, renderer)}>`
3138
3138
  );
3139
3139
  if (!voidElementsReg.test(renderer)) {
3140
3140
  const renderContent = content || normalizeDynamicRenderer(input.content);
@@ -3144,8 +3144,8 @@ var dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, ser
3144
3144
  "A dynamic tag rendering a `<textarea>` cannot have `content` and must use the `value` attribute instead."
3145
3145
  );
3146
3146
  }
3147
- write(
3148
- controllable_textarea_value(
3147
+ _html(
3148
+ _attr_textarea_value(
3149
3149
  branchId,
3150
3150
  true ? `#${renderer}/0` : 0,
3151
3151
  input.value,
@@ -3159,7 +3159,7 @@ var dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, ser
3159
3159
  );
3160
3160
  }
3161
3161
  if (renderer === "select" && ("value" in input || "valueChange" in input)) {
3162
- controllable_select_value(
3162
+ _attr_select_value(
3163
3163
  branchId,
3164
3164
  true ? `#${renderer}/0` : 0,
3165
3165
  input.value,
@@ -3167,7 +3167,7 @@ var dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, ser
3167
3167
  renderContent
3168
3168
  );
3169
3169
  } else {
3170
- dynamicTag(
3170
+ _dynamic_tag(
3171
3171
  branchId,
3172
3172
  true ? `#${renderer}/0` : 0,
3173
3173
  renderContent,
@@ -3178,23 +3178,23 @@ var dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, ser
3178
3178
  );
3179
3179
  }
3180
3180
  }
3181
- write(`</${renderer}>`);
3181
+ _html(`</${renderer}>`);
3182
3182
  } else if (content) {
3183
3183
  throw new Error(
3184
3184
  `Body content is not supported for the \`<${renderer}>\` tag.`
3185
3185
  );
3186
3186
  }
3187
3187
  if (shouldResume) {
3188
- write(
3188
+ _html(
3189
3189
  state.mark(
3190
- "'" /* BranchNativeTag */,
3190
+ "'" /* BranchEndNativeTag */,
3191
3191
  scopeId + " " + accessor + " " + branchId
3192
3192
  )
3193
3193
  );
3194
3194
  }
3195
3195
  } else {
3196
3196
  if (shouldResume) {
3197
- write(state.mark("[" /* BranchStart */, branchId + ""));
3197
+ _html(state.mark("[" /* BranchStart */, ""));
3198
3198
  }
3199
3199
  const render2 = () => {
3200
3200
  if (renderer) {
@@ -3213,11 +3213,16 @@ var dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, ser
3213
3213
  }
3214
3214
  };
3215
3215
  result = shouldResume ? withBranchId(branchId, render2) : render2();
3216
+ rendered = _peek_scope_id() !== branchId;
3216
3217
  if (shouldResume) {
3217
- write(state.mark("]" /* BranchEnd */, scopeId + " " + accessor));
3218
+ _html(
3219
+ state.mark(
3220
+ "]" /* BranchEnd */,
3221
+ scopeId + " " + accessor + (rendered ? " " + branchId : "")
3222
+ )
3223
+ );
3218
3224
  }
3219
3225
  }
3220
- const rendered = peekNextScopeId() !== branchId;
3221
3226
  if (rendered) {
3222
3227
  if (shouldResume) {
3223
3228
  writeScope(scopeId, {
@@ -3226,19 +3231,19 @@ var dynamicTag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, ser
3226
3231
  });
3227
3232
  }
3228
3233
  } else {
3229
- nextScopeId();
3234
+ _scope_id();
3230
3235
  }
3231
3236
  return result;
3232
3237
  };
3233
- function createContent(id, fn) {
3238
+ function _content(id, fn) {
3234
3239
  fn.___id = id;
3235
3240
  return fn;
3236
3241
  }
3237
- function registerContent(id, fn, scopeId) {
3238
- return register2(createContent(id, fn), id, scopeId);
3242
+ function _content_resume(id, fn, scopeId) {
3243
+ return _resume(_content(id, fn), id, scopeId);
3239
3244
  }
3240
3245
  function patchDynamicTag(patch) {
3241
- dynamicTag = /* @__PURE__ */ ((originalDynamicTag) => (scopeId, accessor, tag, input, content, inputIsArgs, resume) => {
3246
+ _dynamic_tag = /* @__PURE__ */ ((originalDynamicTag) => (scopeId, accessor, tag, input, content, inputIsArgs, resume) => {
3242
3247
  const patched = patch(scopeId, accessor, tag);
3243
3248
  if (patched !== tag) patched.___id = tag;
3244
3249
  return originalDynamicTag(
@@ -3250,7 +3255,7 @@ function patchDynamicTag(patch) {
3250
3255
  inputIsArgs,
3251
3256
  resume
3252
3257
  );
3253
- })(dynamicTag);
3258
+ })(_dynamic_tag);
3254
3259
  }
3255
3260
 
3256
3261
  // src/html/compat.ts
@@ -3258,11 +3263,11 @@ var K_TAGS_API_STATE = Symbol();
3258
3263
  var COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap();
3259
3264
  var compat = {
3260
3265
  $global,
3261
- fork,
3262
- write,
3266
+ fork: _await,
3267
+ write: _html,
3263
3268
  writeScript,
3264
- nextScopeId,
3265
- peekNextScopeId,
3269
+ nextScopeId: _scope_id,
3270
+ peekNextScopeId: _peek_scope_id,
3266
3271
  isInResumedBranch,
3267
3272
  ensureState($global2) {
3268
3273
  let state = $global2[K_TAGS_API_STATE] ||= getChunk()?.boundary.state;
@@ -3286,7 +3291,7 @@ var compat = {
3286
3291
  patchDynamicTag,
3287
3292
  writeSetScopeForComponent(branchId, m5c) {
3288
3293
  writeScope(branchId, { m5c });
3289
- writeEffect(branchId, SET_SCOPE_REGISTER_ID);
3294
+ _script(branchId, SET_SCOPE_REGISTER_ID);
3290
3295
  },
3291
3296
  toJSON(state) {
3292
3297
  return function toJSON() {
@@ -3332,9 +3337,9 @@ var compat = {
3332
3337
  }
3333
3338
  head.render(() => {
3334
3339
  if (willRerender) {
3335
- const scopeId = peekNextScopeId();
3340
+ const scopeId = _peek_scope_id();
3336
3341
  writeScope(scopeId, { m5c: component.id });
3337
- writeEffect(scopeId, SET_SCOPE_REGISTER_ID);
3342
+ _script(scopeId, SET_SCOPE_REGISTER_ID);
3338
3343
  }
3339
3344
  if (isTemplate(renderer) && willRerender) {
3340
3345
  renderer(normalizedInput, 1);
@@ -3373,62 +3378,62 @@ function NOOP3() {
3373
3378
  // Annotate the CommonJS export names for ESM import in node:
3374
3379
  0 && (module.exports = {
3375
3380
  $global,
3376
- attr,
3381
+ _attr,
3382
+ _attr_class,
3383
+ _attr_content,
3384
+ _attr_details_open,
3385
+ _attr_dialog_open,
3386
+ _attr_input_checked,
3387
+ _attr_input_checkedValue,
3388
+ _attr_input_value,
3389
+ _attr_option_value,
3390
+ _attr_select_value,
3391
+ _attr_style,
3392
+ _attr_textarea_value,
3393
+ _attrs,
3394
+ _attrs_content,
3395
+ _attrs_partial,
3396
+ _attrs_partial_content,
3397
+ _await,
3398
+ _content,
3399
+ _content_resume,
3400
+ _dynamic_tag,
3401
+ _el,
3402
+ _el_resume,
3403
+ _escape,
3404
+ _escape_script,
3405
+ _escape_style,
3406
+ _existing_scope,
3407
+ _for_in,
3408
+ _for_of,
3409
+ _for_to,
3410
+ _hoist,
3411
+ _html,
3412
+ _id,
3413
+ _if,
3414
+ _peek_scope_id,
3415
+ _resume,
3416
+ _resume_branch,
3417
+ _scope,
3418
+ _scope_id,
3419
+ _scope_with_id,
3420
+ _script,
3421
+ _sep,
3422
+ _serialize_guard,
3423
+ _serialize_if,
3424
+ _subscribe,
3425
+ _template,
3426
+ _trailers,
3427
+ _try,
3428
+ _unescaped,
3429
+ _var,
3377
3430
  attrTag,
3378
3431
  attrTags,
3379
- attrs,
3380
- classAttr,
3381
- commentSeparator,
3382
3432
  compat,
3383
- controllable_detailsOrDialog_open,
3384
- controllable_input_checked,
3385
- controllable_input_checkedValue,
3386
- controllable_input_value,
3387
- controllable_select_value,
3388
- controllable_textarea_value,
3389
- createContent,
3390
- createTemplate,
3391
- dynamicTag,
3392
- ensureScopeWithId,
3393
- escapeScript,
3394
- escapeStyle,
3395
- escapeXML,
3396
3433
  forIn,
3397
3434
  forInBy,
3398
3435
  forOf,
3399
3436
  forOfBy,
3400
3437
  forTo,
3401
- forToBy,
3402
- fork,
3403
- getScopeById,
3404
- hoist,
3405
- markResumeNode,
3406
- nextScopeId,
3407
- nextTagId,
3408
- nodeRef,
3409
- optionValueAttr,
3410
- partialAttrs,
3411
- peekNextScopeId,
3412
- register,
3413
- registerContent,
3414
- resumeClosestBranch,
3415
- resumeConditional,
3416
- resumeForIn,
3417
- resumeForOf,
3418
- resumeForTo,
3419
- serializeGuard,
3420
- serializeIf,
3421
- setTagVar,
3422
- styleAttr,
3423
- toString,
3424
- tryContent,
3425
- write,
3426
- writeAttrsAndContent,
3427
- writeContent,
3428
- writeEffect,
3429
- writeExistingScope,
3430
- writePartialAttrsAndContent,
3431
- writeScope,
3432
- writeSubscribe,
3433
- writeTrailers
3438
+ forToBy
3434
3439
  });