@marko/runtime-tags 6.0.171 → 6.0.173

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.
@@ -176,7 +176,7 @@ function forStepBy(by, index) {
176
176
  return index;
177
177
  }
178
178
  //#endregion
179
- //#region src/html/inlined-runtimes.ts
179
+ //#region src/html/inlined-runtimes.debug.ts
180
180
  const WALKER_RUNTIME_CODE = `((runtimeId) => (self[runtimeId] || (self[runtimeId] = (
181
181
  renderId,
182
182
  prefix = runtimeId + renderId,
@@ -270,17 +270,12 @@ const REORDER_RUNTIME_CODE = `((runtime) => {
270
270
  })`;
271
271
  //#endregion
272
272
  //#region src/html/serializer.ts
273
- const kTouchedIterator = Symbol();
273
+ const kTouchedIterator = Symbol.for("marko.touchedIterator");
274
274
  const { hasOwnProperty } = {};
275
275
  const Generator = (function* () {})().constructor;
276
276
  const AsyncGenerator = (async function* () {})().constructor;
277
277
  patchIteratorNext(Generator.prototype);
278
278
  patchIteratorNext(AsyncGenerator.prototype);
279
- var MutationType = /* @__PURE__ */ function(MutationType) {
280
- MutationType[MutationType["call"] = 0] = "call";
281
- MutationType[MutationType["assign"] = 1] = "assign";
282
- return MutationType;
283
- }(MutationType || {});
284
279
  const REGISTRY = /* @__PURE__ */ new WeakMap();
285
280
  const KNOWN_SYMBOLS = (() => {
286
281
  const KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
@@ -534,6 +529,11 @@ var State$1 = class {
534
529
  mutated = [];
535
530
  };
536
531
  var Reference = class {
532
+ parent;
533
+ accessor;
534
+ flush;
535
+ pos;
536
+ id;
537
537
  registered = null;
538
538
  assigns = null;
539
539
  constructor(parent, accessor, flush, pos = null, id = null) {
@@ -1402,11 +1402,13 @@ function isWord(char) {
1402
1402
  return char >= "a" && char <= "z" || char >= "A" && char <= "Z" || char === "_" || char === "$";
1403
1403
  }
1404
1404
  function patchIteratorNext(proto) {
1405
+ if (proto.next[kTouchedIterator]) return;
1405
1406
  const { next } = proto;
1406
1407
  proto.next = function(value) {
1407
1408
  this[kTouchedIterator] = 1;
1408
1409
  return next.call(this, value);
1409
1410
  };
1411
+ proto.next[kTouchedIterator] = true;
1410
1412
  }
1411
1413
  function compareRegisteredReferences(a, b) {
1412
1414
  return a.registered.instanceId - b.registered.instanceId;
@@ -1417,19 +1419,6 @@ let $chunk;
1417
1419
  const NOOP$2 = () => {};
1418
1420
  const K_SCOPE_ID = Symbol("Scope ID");
1419
1421
  const K_SCOPE_REFERENCED = Symbol("Scope Referenced");
1420
- var Mark = /* @__PURE__ */ function(Mark) {
1421
- Mark["Placeholder"] = "!^";
1422
- Mark["PlaceholderEnd"] = "!";
1423
- Mark["ReorderMarker"] = "#";
1424
- return Mark;
1425
- }(Mark || {});
1426
- var RuntimeKey = /* @__PURE__ */ function(RuntimeKey) {
1427
- RuntimeKey["Walk"] = ".w";
1428
- RuntimeKey["Resume"] = ".r";
1429
- RuntimeKey["Blocking"] = ".b";
1430
- RuntimeKey["Scripts"] = ".j";
1431
- return RuntimeKey;
1432
- }(RuntimeKey || {});
1433
1422
  function getChunk() {
1434
1423
  return $chunk;
1435
1424
  }
@@ -1865,6 +1854,7 @@ function tryCatch(content, catchContent) {
1865
1854
  };
1866
1855
  }
1867
1856
  var State = class {
1857
+ $global;
1868
1858
  tagId = 1;
1869
1859
  scopeId = 1;
1870
1860
  reorderId = 1;
@@ -1916,6 +1906,7 @@ var State = class {
1916
1906
  }
1917
1907
  };
1918
1908
  var Boundary = class extends AbortController {
1909
+ state;
1919
1910
  onNext = NOOP$2;
1920
1911
  count = 0;
1921
1912
  constructor(state, parent) {
@@ -1948,6 +1939,9 @@ var Boundary = class extends AbortController {
1948
1939
  }
1949
1940
  };
1950
1941
  var Chunk = class {
1942
+ boundary;
1943
+ next;
1944
+ context;
1951
1945
  html = "";
1952
1946
  scripts = "";
1953
1947
  effects = "";
@@ -174,7 +174,7 @@ function forStepBy(by, index) {
174
174
  return index;
175
175
  }
176
176
  //#endregion
177
- //#region src/html/inlined-runtimes.ts
177
+ //#region src/html/inlined-runtimes.debug.ts
178
178
  const WALKER_RUNTIME_CODE = `((runtimeId) => (self[runtimeId] || (self[runtimeId] = (
179
179
  renderId,
180
180
  prefix = runtimeId + renderId,
@@ -268,17 +268,12 @@ const REORDER_RUNTIME_CODE = `((runtime) => {
268
268
  })`;
269
269
  //#endregion
270
270
  //#region src/html/serializer.ts
271
- const kTouchedIterator = Symbol();
271
+ const kTouchedIterator = Symbol.for("marko.touchedIterator");
272
272
  const { hasOwnProperty } = {};
273
273
  const Generator = (function* () {})().constructor;
274
274
  const AsyncGenerator = (async function* () {})().constructor;
275
275
  patchIteratorNext(Generator.prototype);
276
276
  patchIteratorNext(AsyncGenerator.prototype);
277
- var MutationType = /* @__PURE__ */ function(MutationType) {
278
- MutationType[MutationType["call"] = 0] = "call";
279
- MutationType[MutationType["assign"] = 1] = "assign";
280
- return MutationType;
281
- }(MutationType || {});
282
277
  const REGISTRY = /* @__PURE__ */ new WeakMap();
283
278
  const KNOWN_SYMBOLS = (() => {
284
279
  const KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
@@ -532,6 +527,11 @@ var State$1 = class {
532
527
  mutated = [];
533
528
  };
534
529
  var Reference = class {
530
+ parent;
531
+ accessor;
532
+ flush;
533
+ pos;
534
+ id;
535
535
  registered = null;
536
536
  assigns = null;
537
537
  constructor(parent, accessor, flush, pos = null, id = null) {
@@ -1400,11 +1400,13 @@ function isWord(char) {
1400
1400
  return char >= "a" && char <= "z" || char >= "A" && char <= "Z" || char === "_" || char === "$";
1401
1401
  }
1402
1402
  function patchIteratorNext(proto) {
1403
+ if (proto.next[kTouchedIterator]) return;
1403
1404
  const { next } = proto;
1404
1405
  proto.next = function(value) {
1405
1406
  this[kTouchedIterator] = 1;
1406
1407
  return next.call(this, value);
1407
1408
  };
1409
+ proto.next[kTouchedIterator] = true;
1408
1410
  }
1409
1411
  function compareRegisteredReferences(a, b) {
1410
1412
  return a.registered.instanceId - b.registered.instanceId;
@@ -1415,19 +1417,6 @@ let $chunk;
1415
1417
  const NOOP$2 = () => {};
1416
1418
  const K_SCOPE_ID = Symbol("Scope ID");
1417
1419
  const K_SCOPE_REFERENCED = Symbol("Scope Referenced");
1418
- var Mark = /* @__PURE__ */ function(Mark) {
1419
- Mark["Placeholder"] = "!^";
1420
- Mark["PlaceholderEnd"] = "!";
1421
- Mark["ReorderMarker"] = "#";
1422
- return Mark;
1423
- }(Mark || {});
1424
- var RuntimeKey = /* @__PURE__ */ function(RuntimeKey) {
1425
- RuntimeKey["Walk"] = ".w";
1426
- RuntimeKey["Resume"] = ".r";
1427
- RuntimeKey["Blocking"] = ".b";
1428
- RuntimeKey["Scripts"] = ".j";
1429
- return RuntimeKey;
1430
- }(RuntimeKey || {});
1431
1420
  function getChunk() {
1432
1421
  return $chunk;
1433
1422
  }
@@ -1863,6 +1852,7 @@ function tryCatch(content, catchContent) {
1863
1852
  };
1864
1853
  }
1865
1854
  var State = class {
1855
+ $global;
1866
1856
  tagId = 1;
1867
1857
  scopeId = 1;
1868
1858
  reorderId = 1;
@@ -1914,6 +1904,7 @@ var State = class {
1914
1904
  }
1915
1905
  };
1916
1906
  var Boundary = class extends AbortController {
1907
+ state;
1917
1908
  onNext = NOOP$2;
1918
1909
  count = 0;
1919
1910
  constructor(state, parent) {
@@ -1946,6 +1937,9 @@ var Boundary = class extends AbortController {
1946
1937
  }
1947
1938
  };
1948
1939
  var Chunk = class {
1940
+ boundary;
1941
+ next;
1942
+ context;
1949
1943
  html = "";
1950
1944
  scripts = "";
1951
1945
  effects = "";
@@ -1,2 +1,2 @@
1
- export declare const WALKER_RUNTIME_CODE: string;
2
- export declare const REORDER_RUNTIME_CODE: string;
1
+ export declare const WALKER_RUNTIME_CODE = "(e=>(self[e]||(self[e]=(l,f=e+l,s=f.length,a={},d=[],t=document,n=t.createTreeWalker(t,129))=>t=self[e][l]={i:f,d:t,l:a,v:d,x(){},w(e,l,r){for(;e=n.nextNode();)t.x(l=(l=e.data)&&!l.indexOf(f)&&(a[r=l.slice(s+1)]=e,l[s]),r,e),l>\"#\"&&d.push(e)}}),self[e]))";
2
+ export declare const REORDER_RUNTIME_CODE = "(e=>{if(e.j)return;let i,l,r,t=e.p={},c=(i,l)=>e.l[i].replaceWith(...l.childNodes);e.d.head.append(e.d.querySelector(\"style[\"+e.i+\"]\")||\"\"),e.j={},e.x=(n,a,d,o,g)=>{d==r&&i(),\"#\"==n?(t[a]=l).i++:\"!\"==n?e.l[a]&&t[a]&&(r=d.nextSibling,i=()=>t[a].c()):\"T\"==d.tagName&&(a=d.getAttribute(e.i))&&(r=d.nextSibling,i=()=>{d.remove(),o||c(a,d),l.c()},l=t[a]||(o=t[a]={i:e.l[a]?1:2,c(i=e.l[\"^\"+a]){if(--o.i)return 1;for(;(r=e.l[a].previousSibling||i).remove(),i!=r;);c(a,d)}}),(n=e.j[a])&&(g=l.c,l.c=()=>g()||n(e.r)))}})";
@@ -0,0 +1,2 @@
1
+ export declare const WALKER_RUNTIME_CODE = "((runtimeId) => (self[runtimeId] || (self[runtimeId] = (\n renderId,\n prefix = runtimeId + renderId,\n prefixLen = prefix.length,\n lookup = {},\n visits = [],\n doc = document,\n walker = doc.createTreeWalker(\n doc,\n 129 /* NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_ELEMENT */,\n ),\n) =>\n doc = (self[runtimeId][renderId] = {\n i: prefix,\n d: doc,\n l: lookup,\n v: visits,\n x() {},\n w(node, op, id) {\n while ((node = walker.nextNode())) {\n doc.x(\n (op =\n (op = node.data) &&\n !op.indexOf(prefix) &&\n ((lookup[(id = op.slice(prefixLen + 1))] = node), op[prefixLen])),\n id,\n node,\n );\n\n if (op > \"#\") {\n visits.push(node);\n }\n }\n },\n })\n), self[runtimeId]))";
2
+ export declare const REORDER_RUNTIME_CODE = "((runtime) => {\n if (runtime.j) return;\n let onNextSibling,\n placeholder,\n nextSibling,\n placeholders = runtime.p = {},\n replace = (id, container) => runtime.l[id].replaceWith(...container.childNodes);\n runtime.d.head.append(\n runtime.d.querySelector(\"style[\" + runtime.i + \"]\") || \"\"\n );\n runtime.j = {};\n runtime.x = (op, id, node, placeholderRoot, placeholderCb) => {\n if (node == nextSibling) {\n onNextSibling();\n }\n\n if (op == \"#\") {\n (placeholders[id] = placeholder).i++;\n } else if (op == \"!\") {\n if (runtime.l[id] && placeholders[id]) {\n nextSibling = node.nextSibling;\n onNextSibling = () => placeholders[id].c();\n }\n } else if (node.tagName == \"T\" && (id = node.getAttribute(runtime.i))) {\n nextSibling = node.nextSibling;\n onNextSibling = () => {\n node.remove();\n placeholderRoot || replace(id, node);\n placeholder.c();\n };\n placeholder =\n placeholders[id] ||\n (placeholderRoot = placeholders[id] =\n {\n i: runtime.l[id] ? 1 : 2,\n c(start = runtime.l[\"^\" + id]) {\n if (--placeholderRoot.i) return 1;\n for (\n ;\n (nextSibling =\n runtime.l[id].previousSibling || start).remove(),\n start != nextSibling;\n\n );\n replace(id, node);\n },\n });\n // repurpose \"op\" for callbacks ...carefully\n if ((op = runtime.j[id])) {\n placeholderCb = placeholder.c;\n placeholder.c = () => placeholderCb() || op(runtime.r);\n }\n }\n };\n})";
package/dist/html.js CHANGED
@@ -4,7 +4,7 @@ let empty = [], rest = Symbol(), toDelimitedString = function toDelimitedString(
4
4
  else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
5
5
  else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
6
6
  return str;
7
- }, unsafeXMLReg = /[<&]/g, replaceUnsafeXML = (c) => c === "&" ? "&amp;" : "&lt;", escapeXMLStr = (str) => unsafeXMLReg.test(str) ? str.replace(unsafeXMLReg, replaceUnsafeXML) : str, unsafeScriptReg = /<\/script/gi, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str, unsafeStyleReg = /<\/style/gi, escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str, unsafeCommentReg = />/g, escapeCommentStr = (str) => unsafeCommentReg.test(str) ? str.replace(unsafeCommentReg, "&gt;") : str, kTouchedIterator = Symbol(), { hasOwnProperty } = {}, Generator = (function* () {})().constructor, AsyncGenerator = (async function* () {})().constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = (() => {
7
+ }, unsafeXMLReg = /[<&]/g, replaceUnsafeXML = (c) => c === "&" ? "&amp;" : "&lt;", escapeXMLStr = (str) => unsafeXMLReg.test(str) ? str.replace(unsafeXMLReg, replaceUnsafeXML) : str, unsafeScriptReg = /<\/script/gi, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str, unsafeStyleReg = /<\/style/gi, escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str, unsafeCommentReg = />/g, escapeCommentStr = (str) => unsafeCommentReg.test(str) ? str.replace(unsafeCommentReg, "&gt;") : str, kTouchedIterator = Symbol.for("marko.touchedIterator"), { hasOwnProperty } = {}, Generator = (function* () {})().constructor, AsyncGenerator = (async function* () {})().constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = (() => {
8
8
  let KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
9
9
  for (let name of Object.getOwnPropertyNames(Symbol)) {
10
10
  let symbol = Symbol[name];
@@ -448,9 +448,7 @@ function forStepBy(by, index) {
448
448
  return by ? by(index) : index;
449
449
  }
450
450
  patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
451
- var MutationType = /* @__PURE__ */ function(MutationType) {
452
- return MutationType[MutationType.call = 0] = "call", MutationType[MutationType.assign = 1] = "assign", MutationType;
453
- }(MutationType || {}), State$1 = class {
451
+ var State$1 = class {
454
452
  ids = 0;
455
453
  flush = 0;
456
454
  registerInstanceId = 0;
@@ -464,6 +462,11 @@ var MutationType = /* @__PURE__ */ function(MutationType) {
464
462
  boundary = void 0;
465
463
  mutated = [];
466
464
  }, Reference = class {
465
+ parent;
466
+ accessor;
467
+ flush;
468
+ pos;
469
+ id;
467
470
  registered = null;
468
471
  assigns = null;
469
472
  constructor(parent, accessor, flush, pos = null, id = null) {
@@ -970,21 +973,17 @@ function isWord(char) {
970
973
  return char >= "a" && char <= "z" || char >= "A" && char <= "Z" || char === "_" || char === "$";
971
974
  }
972
975
  function patchIteratorNext(proto) {
976
+ if (proto.next[kTouchedIterator]) return;
973
977
  let { next } = proto;
974
978
  proto.next = function(value) {
975
979
  return this[kTouchedIterator] = 1, next.call(this, value);
976
- };
980
+ }, proto.next[kTouchedIterator] = !0;
977
981
  }
978
982
  function compareRegisteredReferences(a, b) {
979
983
  return a.registered.instanceId - b.registered.instanceId;
980
984
  }
981
985
  //#endregion
982
986
  //#region src/html/writer.ts
983
- var Mark = /* @__PURE__ */ function(Mark) {
984
- return Mark.Placeholder = "!^", Mark.PlaceholderEnd = "!", Mark.ReorderMarker = "#", Mark;
985
- }(Mark || {}), RuntimeKey = /* @__PURE__ */ function(RuntimeKey) {
986
- return RuntimeKey.Walk = ".w", RuntimeKey.Resume = ".r", RuntimeKey.Blocking = ".b", RuntimeKey.Scripts = ".j", RuntimeKey;
987
- }(RuntimeKey || {});
988
987
  function getChunk() {
989
988
  return $chunk;
990
989
  }
@@ -1253,6 +1252,7 @@ function tryCatch(content, catchContent) {
1253
1252
  };
1254
1253
  }
1255
1254
  var State = class {
1255
+ $global;
1256
1256
  tagId = 1;
1257
1257
  scopeId = 1;
1258
1258
  reorderId = 1;
@@ -1295,6 +1295,7 @@ var State = class {
1295
1295
  return "<!--" + this.commentPrefix + code + str + "-->";
1296
1296
  }
1297
1297
  }, Boundary = class extends AbortController {
1298
+ state;
1298
1299
  onNext = NOOP$2;
1299
1300
  count = 0;
1300
1301
  constructor(state, parent) {
@@ -1314,6 +1315,9 @@ var State = class {
1314
1315
  !this.signal.aborted && this.count && (this.count--, chunk?.reorderId && this.state.reorder(chunk), this.onNext());
1315
1316
  }
1316
1317
  }, Chunk = class {
1318
+ boundary;
1319
+ next;
1320
+ context;
1317
1321
  html = "";
1318
1322
  scripts = "";
1319
1323
  effects = "";
package/dist/html.mjs CHANGED
@@ -4,7 +4,7 @@ let empty = [], rest = Symbol(), toDelimitedString = function toDelimitedString(
4
4
  else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
5
5
  else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
6
6
  return str;
7
- }, unsafeXMLReg = /[<&]/g, replaceUnsafeXML = (c) => c === "&" ? "&amp;" : "&lt;", escapeXMLStr = (str) => unsafeXMLReg.test(str) ? str.replace(unsafeXMLReg, replaceUnsafeXML) : str, unsafeScriptReg = /<\/script/gi, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str, unsafeStyleReg = /<\/style/gi, escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str, unsafeCommentReg = />/g, escapeCommentStr = (str) => unsafeCommentReg.test(str) ? str.replace(unsafeCommentReg, "&gt;") : str, kTouchedIterator = Symbol(), { hasOwnProperty } = {}, Generator = (function* () {})().constructor, AsyncGenerator = (async function* () {})().constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = (() => {
7
+ }, unsafeXMLReg = /[<&]/g, replaceUnsafeXML = (c) => c === "&" ? "&amp;" : "&lt;", escapeXMLStr = (str) => unsafeXMLReg.test(str) ? str.replace(unsafeXMLReg, replaceUnsafeXML) : str, unsafeScriptReg = /<\/script/gi, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str, unsafeStyleReg = /<\/style/gi, escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str, unsafeCommentReg = />/g, escapeCommentStr = (str) => unsafeCommentReg.test(str) ? str.replace(unsafeCommentReg, "&gt;") : str, kTouchedIterator = Symbol.for("marko.touchedIterator"), { hasOwnProperty } = {}, Generator = (function* () {})().constructor, AsyncGenerator = (async function* () {})().constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = (() => {
8
8
  let KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
9
9
  for (let name of Object.getOwnPropertyNames(Symbol)) {
10
10
  let symbol = Symbol[name];
@@ -447,9 +447,7 @@ function forStepBy(by, index) {
447
447
  return by ? by(index) : index;
448
448
  }
449
449
  patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
450
- var MutationType = /* @__PURE__ */ function(MutationType) {
451
- return MutationType[MutationType.call = 0] = "call", MutationType[MutationType.assign = 1] = "assign", MutationType;
452
- }(MutationType || {}), State$1 = class {
450
+ var State$1 = class {
453
451
  ids = 0;
454
452
  flush = 0;
455
453
  registerInstanceId = 0;
@@ -463,6 +461,11 @@ var MutationType = /* @__PURE__ */ function(MutationType) {
463
461
  boundary = void 0;
464
462
  mutated = [];
465
463
  }, Reference = class {
464
+ parent;
465
+ accessor;
466
+ flush;
467
+ pos;
468
+ id;
466
469
  registered = null;
467
470
  assigns = null;
468
471
  constructor(parent, accessor, flush, pos = null, id = null) {
@@ -969,21 +972,17 @@ function isWord(char) {
969
972
  return char >= "a" && char <= "z" || char >= "A" && char <= "Z" || char === "_" || char === "$";
970
973
  }
971
974
  function patchIteratorNext(proto) {
975
+ if (proto.next[kTouchedIterator]) return;
972
976
  let { next } = proto;
973
977
  proto.next = function(value) {
974
978
  return this[kTouchedIterator] = 1, next.call(this, value);
975
- };
979
+ }, proto.next[kTouchedIterator] = !0;
976
980
  }
977
981
  function compareRegisteredReferences(a, b) {
978
982
  return a.registered.instanceId - b.registered.instanceId;
979
983
  }
980
984
  //#endregion
981
985
  //#region src/html/writer.ts
982
- var Mark = /* @__PURE__ */ function(Mark) {
983
- return Mark.Placeholder = "!^", Mark.PlaceholderEnd = "!", Mark.ReorderMarker = "#", Mark;
984
- }(Mark || {}), RuntimeKey = /* @__PURE__ */ function(RuntimeKey) {
985
- return RuntimeKey.Walk = ".w", RuntimeKey.Resume = ".r", RuntimeKey.Blocking = ".b", RuntimeKey.Scripts = ".j", RuntimeKey;
986
- }(RuntimeKey || {});
987
986
  function getChunk() {
988
987
  return $chunk;
989
988
  }
@@ -1252,6 +1251,7 @@ function tryCatch(content, catchContent) {
1252
1251
  };
1253
1252
  }
1254
1253
  var State = class {
1254
+ $global;
1255
1255
  tagId = 1;
1256
1256
  scopeId = 1;
1257
1257
  reorderId = 1;
@@ -1294,6 +1294,7 @@ var State = class {
1294
1294
  return "<!--" + this.commentPrefix + code + str + "-->";
1295
1295
  }
1296
1296
  }, Boundary = class extends AbortController {
1297
+ state;
1297
1298
  onNext = NOOP$2;
1298
1299
  count = 0;
1299
1300
  constructor(state, parent) {
@@ -1313,6 +1314,9 @@ var State = class {
1313
1314
  !this.signal.aborted && this.count && (this.count--, chunk?.reorderId && this.state.reorder(chunk), this.onNext());
1314
1315
  }
1315
1316
  }, Chunk = class {
1317
+ boundary;
1318
+ next;
1319
+ context;
1316
1320
  html = "";
1317
1321
  scripts = "";
1318
1322
  effects = "";
@@ -248,7 +248,7 @@ function normalizeDynamicRenderer(value) {
248
248
  const decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36);
249
249
  //#endregion
250
250
  //#region src/html/serializer.ts
251
- const kTouchedIterator = Symbol();
251
+ const kTouchedIterator = Symbol.for("marko.touchedIterator");
252
252
  const { hasOwnProperty } = {};
253
253
  const Generator = (function* () {})().constructor;
254
254
  const AsyncGenerator = (async function* () {})().constructor;
@@ -496,11 +496,13 @@ function toAccess(accessor) {
496
496
  return start === "\"" || start >= "0" && start <= "9" ? "[" + accessor + "]" : "." + accessor;
497
497
  }
498
498
  function patchIteratorNext(proto) {
499
+ if (proto.next[kTouchedIterator]) return;
499
500
  const { next } = proto;
500
501
  proto.next = function(value) {
501
502
  this[kTouchedIterator] = 1;
502
503
  return next.call(this, value);
503
504
  };
505
+ proto.next[kTouchedIterator] = true;
504
506
  }
505
507
  //#endregion
506
508
  //#region src/translator/util/get-compile-stage.ts
@@ -779,6 +781,7 @@ function isInvokedFunction(expr) {
779
781
  //#endregion
780
782
  //#region src/translator/util/optional.ts
781
783
  var Sorted = class {
784
+ compare;
782
785
  constructor(compare) {
783
786
  this.compare = compare;
784
787
  }
@@ -5012,9 +5015,7 @@ function buildContent(body) {
5012
5015
  else body.node.body.unshift(_marko_compiler.types.expressionStatement(callRuntime("_scope_reason")));
5013
5016
  return callRuntime(serialized ? "_content_resume" : "_content", _marko_compiler.types.stringLiteral(getResumeRegisterId(bodySection, "content")), _marko_compiler.types.arrowFunctionExpression(body.node.params, _marko_compiler.types.blockStatement(body.node.body)), serialized ? getScopeIdIdentifier(getSection(getAttributeTagParent(body.parentPath))) : void 0);
5014
5017
  } else return _marko_compiler.types.callExpression(_marko_compiler.types.identifier(bodySection.name), bodySection.referencedLocalClosures ? [scopeIdentifier, _marko_compiler.types.objectExpression(toArray(bodySection.referencedLocalClosures, (ref) => {
5015
- const accessor = getScopeAccessor(ref, true);
5016
- const isShorthand = accessor === ref.name;
5017
- return _marko_compiler.types.objectProperty(toPropertyName(accessor), _marko_compiler.types.identifier(ref.name), false, isShorthand);
5018
+ return toObjectProperty(getScopeAccessor(ref, true), getDeclaredBindingExpression(ref));
5018
5019
  }))] : [scopeIdentifier]);
5019
5020
  }
5020
5021
  //#endregion
@@ -2,7 +2,7 @@ import { types as t } from "@marko/compiler";
2
2
  export declare function getTemplateContentName(): string;
3
3
  declare const _default: {
4
4
  translate: {
5
- enter(this: unknown): void;
5
+ enter(): void;
6
6
  exit(this: unknown, program: t.NodePath<t.Program>): void;
7
7
  };
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/runtime-tags",
3
- "version": "6.0.171",
3
+ "version": "6.0.173",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
@@ -55,7 +55,7 @@
55
55
  "magic-string": "^0.30.21"
56
56
  },
57
57
  "engines": {
58
- "node": "18 || 20 || >=22"
58
+ "node": ">=22"
59
59
  },
60
60
  "exports:override": {
61
61
  ".": {