marko 6.3.56 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/cheatsheet.md +3 -3
  2. package/dist/common/constants/accessor-prefix.d.ts +2 -0
  3. package/dist/common/constants/accessor-prefix.debug.d.ts +2 -0
  4. package/dist/common/constants/accessor-prop.d.ts +3 -0
  5. package/dist/common/constants/accessor-prop.debug.d.ts +3 -0
  6. package/dist/common/constants/reserved-id.d.ts +5 -0
  7. package/dist/common/errors.d.ts +1 -1
  8. package/dist/common/types.d.ts +11 -2
  9. package/dist/debug/dom/catch.feat.js +12 -14
  10. package/dist/debug/dom/catch.feat.mjs +12 -14
  11. package/dist/debug/dom/controllable-input.feat.js +1 -1
  12. package/dist/debug/dom/controllable-input.feat.mjs +1 -1
  13. package/dist/debug/dom/controllable-open.feat.js +1 -1
  14. package/dist/debug/dom/controllable-open.feat.mjs +1 -1
  15. package/dist/debug/dom/controllable-select.feat.js +1 -1
  16. package/dist/debug/dom/controllable-select.feat.mjs +1 -1
  17. package/dist/debug/dom/controllable-textarea.feat.js +1 -1
  18. package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
  19. package/dist/debug/dom/controllable.feat.js +1 -1
  20. package/dist/debug/dom/controllable.feat.mjs +1 -1
  21. package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
  22. package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
  23. package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
  24. package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
  25. package/dist/debug/dom/lazy.feat.js +4 -0
  26. package/dist/debug/dom/lazy.feat.mjs +4 -0
  27. package/dist/debug/dom/placeholder.feat.js +1 -1
  28. package/dist/debug/dom/placeholder.feat.mjs +1 -1
  29. package/dist/debug/{dom-DcwejnYg.js → dom-ClV4kVOO.js} +263 -193
  30. package/dist/debug/{dom-BeCNT5R5.mjs → dom-LFrKxOk5.mjs} +246 -182
  31. package/dist/debug/dom.js +14 -12
  32. package/dist/debug/dom.mjs +14 -12
  33. package/dist/debug/html.js +826 -685
  34. package/dist/debug/html.mjs +822 -683
  35. package/dist/dom/abort-signal.d.ts +2 -0
  36. package/dist/dom/catch.feat.js +6 -7
  37. package/dist/dom/catch.feat.mjs +5 -7
  38. package/dist/dom/control-flow.d.ts +3 -5
  39. package/dist/dom/controllable-input.feat.js +3 -2
  40. package/dist/dom/controllable-input.feat.mjs +1 -1
  41. package/dist/dom/controllable-open.feat.js +3 -2
  42. package/dist/dom/controllable-open.feat.mjs +1 -1
  43. package/dist/dom/controllable-select.feat.js +3 -2
  44. package/dist/dom/controllable-select.feat.mjs +1 -1
  45. package/dist/dom/controllable-textarea.feat.js +3 -2
  46. package/dist/dom/controllable-textarea.feat.mjs +1 -1
  47. package/dist/dom/controllable.feat.js +3 -2
  48. package/dist/dom/controllable.feat.mjs +1 -1
  49. package/dist/dom/dynamic-tag-script.feat.js +3 -2
  50. package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
  51. package/dist/dom/dynamic-tag-var.feat.js +2 -1
  52. package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
  53. package/dist/dom/lazy.feat.d.ts +1 -0
  54. package/dist/dom/lazy.feat.js +4 -0
  55. package/dist/dom/lazy.feat.mjs +4 -0
  56. package/dist/dom/load.d.ts +3 -3
  57. package/dist/dom/placeholder.feat.js +4 -3
  58. package/dist/dom/placeholder.feat.mjs +1 -1
  59. package/dist/dom/queue.d.ts +2 -4
  60. package/dist/dom/resume.d.ts +1 -1
  61. package/dist/dom/scope.d.ts +0 -1
  62. package/dist/dom/signals.d.ts +3 -2
  63. package/dist/{dom-QEF0csuC.js → dom-CNglVi8P.js} +222 -185
  64. package/dist/{dom-BwNsIevR.mjs → dom-DfP3MCo0.mjs} +126 -90
  65. package/dist/dom.js +59 -56
  66. package/dist/dom.mjs +34 -32
  67. package/dist/html/attrs.d.ts +4 -2
  68. package/dist/html/dynamic-tag.d.ts +1 -1
  69. package/dist/html/inlined-runtimes.d.ts +1 -1
  70. package/dist/html/inlined-runtimes.debug.d.ts +1 -1
  71. package/dist/html/serializer.d.ts +1 -1
  72. package/dist/html/writer.d.ts +39 -33
  73. package/dist/html.d.ts +2 -2
  74. package/dist/html.js +526 -424
  75. package/dist/html.mjs +524 -423
  76. package/dist/translator/core/html-comment.d.ts +0 -7
  77. package/dist/translator/core/let.d.ts +0 -5
  78. package/dist/translator/core/show.d.ts +2 -5
  79. package/dist/translator/core/style.d.ts +6 -8
  80. package/dist/translator/index.d.ts +9 -0
  81. package/dist/translator/index.js +8195 -7939
  82. package/dist/translator/util/binding-has-prop.d.ts +3 -1
  83. package/dist/translator/util/binding-prop-tree.d.ts +4 -4
  84. package/dist/translator/util/bindings.d.ts +127 -0
  85. package/dist/translator/util/body-to-text-literal.d.ts +1 -2
  86. package/dist/translator/util/branch-tag.d.ts +7 -7
  87. package/dist/translator/util/constants/binding-type.d.ts +5 -6
  88. package/dist/translator/util/constants/slot-kind.d.ts +14 -0
  89. package/dist/translator/util/constants/structure-kind.d.ts +1 -1
  90. package/dist/translator/util/entry-builder.d.ts +2 -0
  91. package/dist/translator/util/evaluate.d.ts +11 -10
  92. package/dist/translator/util/finalize-references.d.ts +4 -0
  93. package/dist/translator/util/for-selector.d.ts +1 -1
  94. package/dist/translator/util/generate-uid.d.ts +7 -0
  95. package/dist/translator/util/get-declared-binding-expression.d.ts +2 -2
  96. package/dist/translator/util/is-core-tag.d.ts +0 -3
  97. package/dist/translator/util/is-only-child-in-parent.d.ts +2 -7
  98. package/dist/translator/util/known-tag.d.ts +8 -7
  99. package/dist/translator/util/read-replacement.d.ts +3 -0
  100. package/dist/translator/util/reasons.d.ts +32 -0
  101. package/dist/translator/util/references.d.ts +69 -167
  102. package/dist/translator/util/runtime.d.ts +3 -3
  103. package/dist/translator/util/scope-accessor.d.ts +14 -0
  104. package/dist/translator/util/scope-read.d.ts +1 -1
  105. package/dist/translator/util/sections.d.ts +56 -50
  106. package/dist/translator/util/set-tag-derived-from.d.ts +7 -0
  107. package/dist/translator/util/setup-work.d.ts +4 -0
  108. package/dist/translator/util/signals.d.ts +8 -12
  109. package/dist/translator/util/slots.d.ts +50 -0
  110. package/dist/translator/util/solve-reasons.d.ts +10 -0
  111. package/dist/translator/util/sources.d.ts +21 -0
  112. package/dist/translator/util/structure.d.ts +5 -2
  113. package/dist/translator/util/tag-facts.d.ts +21 -0
  114. package/dist/translator/util/tag-name-type.d.ts +4 -1
  115. package/dist/translator/util/translate-attrs.d.ts +2 -0
  116. package/dist/translator/util/translate-var.d.ts +3 -0
  117. package/dist/translator/util/write-guard.d.ts +12 -0
  118. package/dist/translator/util/writer.d.ts +3 -3
  119. package/dist/translator/visitors/export-declaration.d.ts +9 -0
  120. package/dist/translator/visitors/function.d.ts +5 -4
  121. package/dist/translator/visitors/import-declaration.d.ts +2 -2
  122. package/dist/translator/visitors/placeholder.d.ts +0 -3
  123. package/dist/translator/visitors/program/index.d.ts +13 -3
  124. package/dist/translator/visitors/referenced-identifier.d.ts +2 -1
  125. package/dist/translator/visitors/tag/custom-tag.d.ts +1 -1
  126. package/dist/translator/visitors/tag/dynamic-tag.d.ts +0 -3
  127. package/dist/translator/visitors/tag/index.d.ts +2 -1
  128. package/dist/translator/visitors/tag/native-tag.d.ts +26 -11
  129. package/package.json +3 -3
  130. package/dist/translator/util/insertion-context.d.ts +0 -1
  131. package/dist/translator/util/is-non-html-text.d.ts +0 -3
  132. package/dist/translator/util/serialize-guard.d.ts +0 -11
  133. package/dist/translator/util/serialize-reasons.d.ts +0 -37
  134. package/dist/translator/util/set-tag-sections-downstream.d.ts +0 -6
  135. package/dist/translator/util/setup-statements.d.ts +0 -5
@@ -1,16 +1,19 @@
1
+ "use strict";
1
2
  let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", toDelimitedString = function toDelimitedString(val, delimiter, stringify) {
2
3
  let str = "", sep = "", part;
3
- if (val) if (typeof val != "object") str += val;
4
- else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
5
- else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
4
+ if (val) {
5
+ if (typeof val != "object") str += val;
6
+ else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
7
+ else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
8
+ }
6
9
  return str;
7
- }, decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), branchesEnabled, dynamicHtmlEnabled, rendering, runId = 2, caughtError = /* @__PURE__ */ new WeakSet(), placeholderShown = /* @__PURE__ */ new WeakSet(), pendingEffects = [], pendingRenders = [], runEffects = ((effects) => {
10
+ }, decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), branchesEnabled, dynamicHtmlEnabled, rendering, runId = 2, pendingEffects = [], pendingRenders = [], runEffects = ((effects) => {
8
11
  for (let i = 0; i < effects.length;) effects[i++](effects[i++]);
9
12
  }), runRender = (render) => {
10
13
  (!branchesEnabled || render.b.F?.H !== 0) && render.c(render.b, render.d);
11
14
  }, catchEnabled, abortsEnabled, subscriptionsEnabled, delegate = (type, handler) => handler[1 + type] ||= (document.addEventListener(type, handler, !0), 1), parsers = {}, nextScopeId = 1e6, collectingScopes, destroyNestedScopes = function destroyNestedScopes(scope) {
12
15
  scope.H = 0, scope.D?.forEach(destroyNestedScopes), scope.B?.forEach(cleanupScope);
13
- }, isScheduled, channel, _return = (scope, value) => scope.T?.(value), _var_change = (scope, value) => scope.U?.(value), tagIdsByGlobal = /* @__PURE__ */ new WeakMap(), currentNode, walkInternal = function walkInternal(currentWalkIndex, walkCodes, scope) {
16
+ }, isScheduled, channel, _return = (scope, value) => scope.T ? scope.T(value) : scope.RV = value, _var_change = (scope, value) => scope.U?.(value), tagIdsByGlobal = /* @__PURE__ */ new WeakMap(), currentNode, walkInternal = function walkInternal(currentWalkIndex, walkCodes, scope) {
14
17
  let value, currentMultiplier, storedMultiplier = 0, currentScopeIndex = 0;
15
18
  for (; currentWalkIndex < walkCodes.length;) if (value = walkCodes.charCodeAt(currentWalkIndex++), currentMultiplier = storedMultiplier, storedMultiplier = 0, value === 32) scope[decodeAccessor(currentScopeIndex++)] = currentNode;
16
19
  else if (value === 37 || value === 49) currentNode.replaceWith(currentNode = scope[decodeAccessor(currentScopeIndex++)] = new Text()), value === 49 && (scope[decodeAccessor(currentScopeIndex++)] = skipScope());
@@ -27,8 +30,17 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
27
30
  for (; !currentNode.nextSibling && currentNode.parentNode;) currentNode = currentNode.parentNode;
28
31
  walkNextSibling();
29
32
  }, walkNextSibling = () => currentNode = currentNode.nextSibling || currentNode, _resumed = {}, curRenders, embedRenders, readyIds, lazyEnabled, isResuming, cloneCache = {}, _html = /*@__PURE__*/ withDynamicHtml(function(scope, value, accessor) {
30
- let firstChild = scope[accessor], parentNode = firstChild.parentNode, lastChild = scope["H" + accessor] || firstChild, newContent = parseHTML(_to_text(value), parentNode.namespaceURI), newFirstChild = scope[accessor] = newContent.firstChild || newContent.appendChild(new Text()), newLastChild = scope["H" + accessor] = newContent.lastChild, branch = scope.F;
31
- branch?.S === firstChild && (branch.S = newFirstChild), branch?.K === lastChild && (branch.K = newLastChild), insertChildNodes(parentNode, firstChild, newFirstChild, newLastChild), removeChildNodes(firstChild, lastChild);
33
+ let prevValue = scope["R" + accessor];
34
+ if (prevValue !== (scope["R" + accessor] = _to_text(value))) {
35
+ let firstChild = scope[accessor], parentNode = firstChild.parentNode, lastChild = scope["H" + accessor] || firstChild, newContent = parseHTML(scope["R" + accessor], parentNode.namespaceURI);
36
+ if (prevValue === void 0 && lastChild !== firstChild) {
37
+ let node = firstChild, newNode = newContent.firstChild;
38
+ for (; (node = node.nextSibling) !== lastChild && node.isEqualNode(newNode);) newNode = newNode.nextSibling;
39
+ if (node === lastChild && !newNode) return;
40
+ }
41
+ let newFirstChild = scope[accessor] = newContent.firstChild || newContent.appendChild(new Text()), newLastChild = scope["H" + accessor] = newContent.lastChild, branch = scope.F;
42
+ branch?.S === firstChild && (branch.S = newFirstChild), branch?.K === lastChild && (branch.K = newLastChild), insertChildNodes(parentNode, firstChild, newFirstChild, newLastChild), removeChildNodes(firstChild, lastChild);
43
+ }
32
44
  }), R = /[\p{L}\p{N}]/gu, inputType = "", controllableScripts = {}, controllableRenders = {}, _if = /*@__PURE__*/ withBranches((nodeAccessor, ...branchesArgs) => {
33
45
  nodeAccessor = decodeAccessor(nodeAccessor);
34
46
  let branchAccessor = "D" + nodeAccessor, branches = [], i = 0;
@@ -67,13 +79,15 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
67
79
  if (normalizedRenderer) {
68
80
  let childScope = scope[childScopeAccessor], args = getInput?.();
69
81
  if (typeof normalizedRenderer == "string") (getContent ? _attrs : _attrs_content)(childScope, "a", (inputIsArgs ? args[0] : args) || {}, controllableRenders[childScope.a.tagName]), (childScope.Ia || childScope.Ea) && queueEffect(childScope, dynamicTagScript);
70
- else if (normalizedRenderer.g?.(childScope), normalizedRenderer.d) if (inputIsArgs) normalizedRenderer.d(childScope, normalizedRenderer._ ? args[0] : args);
71
- else {
72
- let inputWithContent = getContent ? {
73
- ...args,
74
- content: getContent(scope)
75
- } : args || {};
76
- normalizedRenderer.d(childScope, normalizedRenderer._ ? inputWithContent : [inputWithContent]);
82
+ else if (normalizedRenderer.g?.(childScope), normalizedRenderer.d) {
83
+ if (inputIsArgs) normalizedRenderer.d(childScope, normalizedRenderer._ ? args[0] : args);
84
+ else {
85
+ let inputWithContent = getContent ? {
86
+ ...args,
87
+ content: getContent(scope)
88
+ } : args || {};
89
+ normalizedRenderer.d(childScope, normalizedRenderer._ ? inputWithContent : [inputWithContent]);
90
+ }
77
91
  }
78
92
  }
79
93
  };
@@ -232,8 +246,8 @@ function prepareEffects(fn) {
232
246
  }
233
247
  return preparedEffects;
234
248
  }
235
- function installCatch(wrapEffects, wrapRender) {
236
- catchEnabled = 1, withBranches(), runEffects = wrapEffects(runEffects), runRender = wrapRender(runRender);
249
+ function installCatch(catchEffects, wrapRender) {
250
+ catchEnabled = 1, withBranches(), runEffects = catchEffects, runRender = wrapRender(runRender);
237
251
  }
238
252
  function runRenders() {
239
253
  for (; pendingRenders.length;) {
@@ -259,6 +273,10 @@ function $signalReset(scope, id) {
259
273
  function $signal(scope, id) {
260
274
  return abortsEnabled = 1, trackCleanup(scope), ((scope.A ||= {})[id] ||= new AbortController()).signal;
261
275
  }
276
+ /** Runs `abort` as a destroyed scope's `$signal` would fire, without creating one. */
277
+ function trackAbort(scope, id, abort) {
278
+ abortsEnabled = 1, trackCleanup(scope), (scope.A ||= {})[id] = { abort };
279
+ }
262
280
  /** Enrols `scope` with its branch so destroying the branch cleans it up. */
263
281
  function trackCleanup(scope, subscribers) {
264
282
  let branch = scope.F;
@@ -273,8 +291,10 @@ function toArray(opt) {
273
291
  return opt ? Array.isArray(opt) ? opt : [opt] : [];
274
292
  }
275
293
  function forEach(opt, cb) {
276
- if (opt) if (Array.isArray(opt)) for (let item of opt) cb(item);
277
- else cb(opt);
294
+ if (opt) {
295
+ if (Array.isArray(opt)) for (let item of opt) cb(item);
296
+ else cb(opt);
297
+ }
278
298
  }
279
299
  function push(opt, item) {
280
300
  return opt ? Array.isArray(opt) ? (opt.push(item), opt) : [opt, item] : item;
@@ -323,11 +343,6 @@ function collectScopes(fn) {
323
343
  function skipScope() {
324
344
  return nextScopeId++;
325
345
  }
326
- function findBranchWithKey(scope, key) {
327
- let branch = scope.F;
328
- for (; branch && branch[key] == null;) branch = branch.N;
329
- return branch;
330
- }
331
346
  function destroyBranch(branch) {
332
347
  branch.N?.D?.delete(branch), destroyNestedScopes(branch);
333
348
  }
@@ -449,7 +464,7 @@ function _closure_get(valueAccessor, fn, getOwnerScope, resumeId) {
449
464
  valueAccessor = decodeAccessor(valueAccessor);
450
465
  let closureSignal = ((scope, resumed) => {
451
466
  let ownerScope = getOwnerScope ? getOwnerScope(scope) : scope._;
452
- scope[closureSignal.b] = closureSignal.c, (!resumed || ownerScope[closureSignal.a]._) && fn(scope), subscribeToScopeSet(ownerScope, closureSignal.a, scope);
467
+ scope[closureSignal.b] = closureSignal.c, resumed ? ownerScope[closureSignal.a]._ && queueAsyncRender(scope, closureSignal) : fn(scope), subscribeToScopeSet(ownerScope, closureSignal.a, scope);
453
468
  });
454
469
  return closureSignal.a = valueAccessor, closureSignal.b = "C" + valueAccessor, resumeId && (_resumed[resumeId] = (scope) => closureSignal(scope, 1)), closureSignal;
455
470
  }
@@ -459,7 +474,8 @@ function _child_setup(setup) {
459
474
  }, setup;
460
475
  }
461
476
  function _var(scope, childAccessor, signal) {
462
- scope[decodeAccessor(childAccessor)].T = (value) => signal(scope, value);
477
+ let childScope = scope[decodeAccessor(childAccessor)];
478
+ childScope.T = (value) => signal(scope, value), "RV" in childScope && signal(scope, childScope.RV);
463
479
  }
464
480
  function _return_change(scope, changeHandler) {
465
481
  scope.U = changeHandler || void 0;
@@ -478,20 +494,22 @@ function _script(id, fn) {
478
494
  };
479
495
  }
480
496
  function _global_read($global, key) {
481
- return key in $global || console.error(`\`$global.${key}\` is not serialized to the client, so this read is \`undefined\`. Add \`${key}\` to \`serializedGlobals\` at the render call.`), $global[key];
497
+ return $global[key];
482
498
  }
483
499
  function _el_read(value) {
484
500
  return value;
485
501
  }
486
502
  function* traverse(scope, path, args, i = path.length - 1) {
487
- if (scope) if (Symbol.iterator in scope) for (let childScope of scope.values()) childScope.H !== 0 && (yield* traverse(childScope, path, args, i));
488
- else {
489
- let item = scope[path[i]];
490
- i ? yield* traverse(item, path, args, i - 1) : yield typeof item == "function" ? item(...args) : item;
503
+ if (scope) {
504
+ if (Symbol.iterator in scope) for (let childScope of scope.values()) childScope.H !== 0 && (yield* traverse(childScope, path, args, i));
505
+ else {
506
+ let step = path[i], item = Array.isArray(step) ? (scope[step[1]] || 0) === step[2] && scope[step[0]] : scope[step];
507
+ i ? yield* traverse(item, path, args, i - 1) : yield typeof item == "function" ? item(...args) : item;
508
+ }
491
509
  }
492
510
  }
493
511
  function _hoist(...path) {
494
- return path = path.map((p) => typeof p == "string" ? p : decodeAccessor(p)), (scope) => {
512
+ return path = path.map((p) => typeof p == "number" ? decodeAccessor(p) : p), (scope) => {
495
513
  let fn = (...args) => traverse(scope, path, args).next().value;
496
514
  return fn[Symbol.iterator] = () => traverse(scope, path, []), fn;
497
515
  };
@@ -512,8 +530,8 @@ function ready(readyId) {
512
530
  for (let renderId in curRenders) runResumeEffects(curRenders[renderId]);
513
531
  }
514
532
  function readyFailed(readyId) {}
515
- function withLazy(runtime) {
516
- return lazyEnabled = 1, runtime;
533
+ function withLazy() {
534
+ lazyEnabled = 1;
517
535
  }
518
536
  function initEmbedded(readyId, runtimeId) {
519
537
  embedRenders || (embedRenders = /* @__PURE__ */ new Map(), new MutationObserver(() => {
@@ -547,7 +565,7 @@ function init(runtimeId = "M") {
547
565
  }
548
566
  for (visitType !== "[" && (visitScope[nextToken()] = visitType === ")" || visitType === "}" ? parent : visit, accessor = "A" + (nodeAccessor = lastToken), singleNode = visitType !== "]" && visitType !== ")", nextToken()); branchId = +lastToken;) {
549
567
  if ((endedBranches ||= []).push(branch = getScope(branchId)), setParentBranch(branch, branch.F), (branch.O = render.p?.[branchId]) && (branch.O.m = render.m), singleNode) {
550
- for (; startVisit.previousSibling && ~visits.indexOf(startVisit = startVisit.previousSibling););
568
+ for (; startVisit.previousSibling && (startVisit = startVisit.previousSibling).nodeType > 1;);
551
569
  branch._ ??= visitScope, branch.K = branch.S = startVisit, visitType === "(" && (branch.a = startVisit);
552
570
  } else branch.C = nodeAccessor, curBranchScopes = push(curBranchScopes, branch), accessor && (visitScope[accessor] = curBranchScopes, forEach(curBranchScopes, (scope) => scope._ ??= visitScope), curBranchScopes = branchScopesStack.pop()), startVisit = branchStarts.pop(), parent !== startVisit.parentNode && parent.prepend(startVisit), branch.S = startVisit, branch.K = visit.previousSibling === startVisit ? startVisit : parent.insertBefore(new Text(), visit);
553
571
  for (; pending.at(-1)?.L >= branchId;) adopt(pending.pop(), branch);
@@ -599,7 +617,7 @@ function init(runtimeId = "M") {
599
617
  }
600
618
  function runResumeEffects(render) {
601
619
  try {
602
- isResuming = 1, runEffects(render.m([]), 1);
620
+ isResuming = 1, runEffects(render.m([]));
603
621
  } finally {
604
622
  isResuming = 0;
605
623
  }
@@ -771,9 +789,7 @@ function attrsInternal(scope, nodeAccessor, nextAttrs, controllable) {
771
789
  case "style":
772
790
  _attr_style(el, value);
773
791
  break;
774
- default:
775
- isEventHandler(name) ? (events ||= scope["I" + nodeAccessor] = {})[getEventHandlerName(name)] = value : skip?.test(name) || name === "content" && el.tagName !== "META" || _attr(el, name, value);
776
- break;
792
+ default: isEventHandler(name) ? (events ||= scope["I" + nodeAccessor] = {})[getEventHandlerName(name)] = value : skip?.test(name) || name === "content" && el.tagName !== "META" || _attr(el, name, value);
777
793
  }
778
794
  }
779
795
  }
@@ -795,7 +811,7 @@ function normalizeAttrValue(value) {
795
811
  }
796
812
  function _lifecycle(scope, thisObj, index = 0) {
797
813
  let accessor = "K" + index, instance = scope[accessor];
798
- instance ? (Object.assign(instance, thisObj), instance.onUpdate?.()) : (scope[accessor] = thisObj, Object.assign(thisObj, thisObj.onMount?.()), $signal(scope, accessor).onabort = () => thisObj.onDestroy?.());
814
+ instance ? (Object.assign(instance, thisObj), instance.onUpdate?.()) : (scope[accessor] = thisObj, Object.assign(thisObj, thisObj.onMount?.()), trackAbort(scope, accessor, () => thisObj.onDestroy?.()));
799
815
  }
800
816
  function removeChildNodes(startNode, endNode) {
801
817
  let stop = endNode.nextSibling;
@@ -932,14 +948,16 @@ function _attr_select_value_script(scope, nodeAccessor) {
932
948
  setSelectValue(el, oldValue, multiple), valueChange(newValue), run();
933
949
  }
934
950
  };
935
- if (isResuming) if (el.multiple) {
936
- scope["G" + nodeAccessor] = [];
937
- for (let opt of el.options) opt.defaultSelected && scope["G" + nodeAccessor].push(opt.value);
938
- } else {
939
- scope["G" + nodeAccessor] = "";
940
- for (let opt of el.options) if (opt.defaultSelected) {
941
- scope["G" + nodeAccessor] = opt.value;
942
- break;
951
+ if (isResuming) {
952
+ if (el.multiple) {
953
+ scope["G" + nodeAccessor] = [];
954
+ for (let opt of el.options) opt.defaultSelected && scope["G" + nodeAccessor].push(opt.value);
955
+ } else {
956
+ scope["G" + nodeAccessor] = "";
957
+ for (let opt of el.options) if (opt.defaultSelected) {
958
+ scope["G" + nodeAccessor] = opt.value;
959
+ break;
960
+ }
943
961
  }
944
962
  }
945
963
  syncControllableFormInput(el, hasSelectChanged, onChange), observeOnce(scope, nodeAccessor, {
@@ -1025,23 +1043,25 @@ function _controllable_open(scope, nodeAccessor, nextAttrs) {
1025
1043
  //#region src/dom/control-flow.ts
1026
1044
  function _await_promise(nodeAccessor, params) {
1027
1045
  nodeAccessor = decodeAccessor(nodeAccessor);
1028
- let promiseAccessor = "L" + nodeAccessor, branchAccessor = "A" + nodeAccessor, resolveAwait = (scope, referenceNode, value) => {
1046
+ let promiseAccessor = "L" + nodeAccessor, branchAccessor = "A" + nodeAccessor, tryAccessor = "Q" + nodeAccessor, resolveAwait = (scope, referenceNode, value) => {
1029
1047
  let awaitBranch = scope[branchAccessor];
1030
1048
  return awaitBranch.V && (awaitBranch.Y = awaitBranch.Y?.forEach(syncGen), setupBranch(awaitBranch.V, awaitBranch), awaitBranch.V = 0, insertBranchBefore(awaitBranch, scope[nodeAccessor].parentNode, scope[nodeAccessor]), referenceNode.remove()), params?.(awaitBranch, [value]), awaitBranch;
1031
1049
  }, awaitPromise = (scope, promise) => {
1032
1050
  isPromise(scope[promiseAccessor]) || (scope[promiseAccessor] = 0);
1033
- let awaitBranch = scope[branchAccessor], tryPlaceholder = (isPromise(promise) || scope[promiseAccessor]) && findBranchWithKey(scope, "Q"), tryBranch = tryPlaceholder || awaitBranch;
1051
+ let awaitBranch = scope[branchAccessor], tryBranch = scope[tryAccessor] || isPromise(promise) && findTryWithPlaceholder(scope) || awaitBranch;
1034
1052
  if (!tryBranch) {
1035
- let deferred = scope[promiseAccessor] = () => deferred === scope[promiseAccessor] && awaitPromise(scope, promise), awaitCounter = findBranchWithKey(scope, "Q")?.O;
1053
+ let deferred = scope[promiseAccessor] = () => deferred === scope[promiseAccessor] && awaitPromise(scope, promise), awaitCounter = findTryWithPlaceholder(scope)?.O;
1036
1054
  if (awaitCounter?.i) {
1037
1055
  let complete = awaitCounter.c;
1038
1056
  awaitCounter.c = () => complete() || queueAsyncRender(scope, deferred);
1039
1057
  }
1040
1058
  return;
1041
1059
  }
1042
- if (!isPromise(promise)) return scope[promiseAccessor] ? awaitPromise(scope, Promise.resolve(promise)) : resolveAwait(scope, scope[nodeAccessor], promise);
1060
+ if (!isPromise(promise)) return scope[tryAccessor] ? awaitPromise(scope, Promise.resolve(promise)) : resolveAwait(scope, scope[nodeAccessor], promise);
1043
1061
  let awaitCounter = tryBranch.O;
1044
- placeholderShown.add(pendingEffects), !tryPlaceholder && !awaitCounter?.i && (awaitCounter = createAwaitCounter(tryBranch, () => {
1062
+ scope[tryAccessor] || (scope[tryAccessor] = tryBranch, trackAbort(scope, promiseAccessor, () => {
1063
+ scope[promiseAccessor] = 0, scope[tryAccessor] && queueAsyncRender(scope[tryAccessor], completeAwaitCounter, awaitCounter);
1064
+ }), awaitBranch && (awaitBranch.W ||= []), tryBranch === awaitBranch ? (awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, () => {
1045
1065
  if (tryBranch === scope[branchAccessor]) {
1046
1066
  let anchor = scope[nodeAccessor];
1047
1067
  if (anchor.parentNode) {
@@ -1049,34 +1069,22 @@ function _await_promise(nodeAccessor, params) {
1049
1069
  detachedParent === anchor.parentNode ? anchor.remove() : anchor.replaceWith(detachedParent);
1050
1070
  }
1051
1071
  }
1052
- })), scope[promiseAccessor] || (awaitBranch && (awaitBranch.W ||= []), tryPlaceholder ? awaitCounter = addAwaitCounter(scope, tryPlaceholder) : scheduleAwaitFrame(awaitCounter, scope, () => {
1072
+ })), scheduleAwaitFrame(awaitCounter, scope, () => {
1053
1073
  awaitBranch.V || (awaitBranch.S.parentNode.insertBefore(scope[nodeAccessor], awaitBranch.S), tempDetachBranch(tryBranch));
1054
- }));
1074
+ })) : awaitCounter = addAwaitCounter(scope, tryBranch));
1055
1075
  let thisPromise = scope[promiseAccessor] = promise.then((data) => {
1056
1076
  if (thisPromise === scope[promiseAccessor]) {
1057
1077
  let referenceNode = scope[nodeAccessor];
1058
- if (scope[promiseAccessor] = 0, !scope[branchAccessor] || scope.F?.H === 0) {
1059
- scope[branchAccessor] || awaitPromise(scope, data), awaitCounter.c(), run();
1060
- return;
1061
- }
1062
- queueAsyncRender(scope, () => {
1063
- awaitBranch = resolveAwait(scope, referenceNode, data);
1064
- let pendingRenders = awaitBranch.W;
1065
- if (awaitBranch.W = 0, pendingRenders?.forEach(queuePendingRender), placeholderShown.add(pendingEffects), awaitCounter.c(), awaitCounter.m) {
1066
- let fnScopes = /* @__PURE__ */ new Map(), effects = awaitCounter.m([]);
1067
- for (let i = 0; i < pendingEffects.length;) {
1068
- let fn = pendingEffects[i++], scopes = fnScopes.get(fn);
1069
- scopes || fnScopes.set(fn, scopes = /* @__PURE__ */ new Set()), scopes.add(pendingEffects[i++]);
1070
- }
1071
- for (let i = 0; i < effects.length;) {
1072
- let fn = effects[i++], scope = effects[i++];
1073
- fnScopes.get(fn)?.has(scope) || queueEffect(scope, fn);
1074
- }
1078
+ scope[promiseAccessor] = 0, scope[branchAccessor] ? queueAsyncRender(scope, () => {
1079
+ if (!scope[promiseAccessor]) {
1080
+ awaitBranch = resolveAwait(scope, referenceNode, data);
1081
+ let pendingRenders = awaitBranch.W;
1082
+ awaitBranch.W = 0, pendingRenders?.forEach(queuePendingRender), scope[tryAccessor] = 0, queueCompleteAwaitCounter(tryBranch, awaitCounter);
1075
1083
  }
1076
- });
1084
+ }) : (scope[tryAccessor] = 0, awaitPromise(scope, data), awaitCounter.c(), run());
1077
1085
  }
1078
1086
  }, (error) => {
1079
- thisPromise === scope[promiseAccessor] && (scope[promiseAccessor] = 0, tryPlaceholder && !awaitCounter.m ? awaitCounter.c() : awaitCounter.i = 0, queueAsyncRender(scope, renderCatch, error));
1087
+ thisPromise === scope[promiseAccessor] && (scope[promiseAccessor] = scope[tryAccessor] = 0, queueAsyncRender(scope, renderCatch, error), tryBranch !== awaitBranch && !awaitCounter.m ? findTryWithCatch(scope) ? queueCompleteAwaitCounter(tryBranch, awaitCounter) : awaitCounter.c() : awaitCounter.i = 0);
1080
1088
  });
1081
1089
  };
1082
1090
  return awaitPromise;
@@ -1089,16 +1097,32 @@ function _await_content(nodeAccessor, template, walks, setup) {
1089
1097
  scope[branchAccessor].Y = pendingScopes, typeof scope[promiseAccessor] == "function" && scope[promiseAccessor]();
1090
1098
  };
1091
1099
  }
1092
- function addAwaitCounter(scope, tryBranch = findBranchWithKey(scope, "Q")) {
1100
+ function addAwaitCounter(scope, tryBranch = findTryWithPlaceholder(scope)) {
1093
1101
  if (!tryBranch) return;
1094
1102
  let awaitCounter = tryBranch.O;
1095
- return awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, () => dismissPlaceholder(tryBranch))), placeholderShown.add(pendingEffects), scheduleAwaitFrame(awaitCounter, tryBranch, () => {
1096
- insertBranchBefore(tryBranch.P = createAndSetupBranch(tryBranch.$, tryBranch.Q, tryBranch._, tryBranch.S.parentNode), tryBranch.S.parentNode, tryBranch.S), tempDetachBranch(tryBranch);
1103
+ return awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, () => dismissPlaceholder(tryBranch))), scheduleAwaitFrame(awaitCounter, tryBranch, () => {
1104
+ (tryBranch.P = createAndSetupBranch(tryBranch.$, tryBranch.Q(), tryBranch._, tryBranch.S.parentNode)).PT = tryBranch, insertBranchBefore(tryBranch.P, tryBranch.S.parentNode, tryBranch.S), tempDetachBranch(tryBranch);
1097
1105
  }), awaitCounter;
1098
1106
  }
1099
1107
  function scheduleAwaitFrame(awaitCounter, scope, render) {
1100
1108
  awaitCounter.i++ || requestAnimationFrame(() => awaitCounter.i && runEffects(prepareEffects(() => queueRender(scope, render, -1))));
1101
1109
  }
1110
+ function queueCompleteAwaitCounter(tryBranch, awaitCounter) {
1111
+ queueRender(tryBranch, completeAwaitCounter, -1, awaitCounter, tryBranch.L + 1e9);
1112
+ }
1113
+ function completeAwaitCounter(_scope, awaitCounter) {
1114
+ if (awaitCounter.c(), awaitCounter.m) {
1115
+ let fnScopes = /* @__PURE__ */ new Map(), effects = awaitCounter.m([]);
1116
+ for (let i = 0; i < pendingEffects.length;) {
1117
+ let fn = pendingEffects[i++], scopes = fnScopes.get(fn);
1118
+ scopes || fnScopes.set(fn, scopes = /* @__PURE__ */ new Set()), scopes.add(pendingEffects[i++]);
1119
+ }
1120
+ for (let i = 0; i < effects.length;) {
1121
+ let fn = effects[i++], scope = effects[i++];
1122
+ fnScopes.get(fn)?.has(scope) || queueEffect(scope, fn);
1123
+ }
1124
+ }
1125
+ }
1102
1126
  function createAwaitCounter(tryBranch, done) {
1103
1127
  let awaitCounter = tryBranch.O = {
1104
1128
  i: 0,
@@ -1109,30 +1133,41 @@ function createAwaitCounter(tryBranch, done) {
1109
1133
  };
1110
1134
  return awaitCounter;
1111
1135
  }
1112
- function runPendingEffects(scope) {
1113
- let effects = scope.J;
1114
- effects && (scope.J = [], runEffects(effects, 1));
1136
+ function runPendingEffects(tryBranch) {
1137
+ tryBranch.JS?.forEach((scope) => scope.J.forEach((fn) => runEffects([fn, scope]), scope.J = null), tryBranch.JS = null);
1115
1138
  }
1116
1139
  function dismissPlaceholder(tryBranch) {
1117
1140
  let placeholderBranch = tryBranch.P;
1118
1141
  placeholderBranch && (tryBranch.P = 0, placeholderBranch.S.parentNode.insertBefore(tryBranch.S.parentNode, placeholderBranch.S), removeAndDestroyBranch(placeholderBranch));
1119
1142
  }
1120
- function _try(nodeAccessor, template, walks, setup) {
1143
+ function _try(nodeAccessor, template, walks, setup, placeholderContent, catchContent) {
1121
1144
  nodeAccessor = decodeAccessor(nodeAccessor);
1122
1145
  let branchAccessor = "A" + nodeAccessor, renderer = _content("", template, walks, setup)();
1123
- return (scope, input) => {
1124
- scope[branchAccessor] || setConditionalRenderer(scope, nodeAccessor, renderer, createAndSetupBranch);
1146
+ return (scope) => {
1147
+ setConditionalRenderer(scope, nodeAccessor, renderer, createAndSetupBranch);
1125
1148
  let branch = scope[branchAccessor];
1126
- branch && (branch.C = nodeAccessor, branch.E = input.catch && (normalizeDynamicRenderer(input.catch) || 0), branch.Q = normalizeDynamicRenderer(input.placeholder));
1149
+ branch.C = nodeAccessor, branch.E = catchContent, branch.Q = placeholderContent || void 0;
1127
1150
  };
1128
1151
  }
1129
1152
  function renderCatch(scope, error) {
1130
- let tryWithCatch = findBranchWithKey(scope, "E");
1153
+ let tryWithCatch = findTryWithCatch(scope);
1131
1154
  if (tryWithCatch) {
1132
1155
  let owner = tryWithCatch._, placeholderBranch = tryWithCatch.P;
1133
- placeholderBranch && (tryWithCatch.O && (tryWithCatch.O.i = 0), owner["A" + tryWithCatch.C] = placeholderBranch, destroyBranch(tryWithCatch)), caughtError.add(pendingEffects), setConditionalRenderer(owner, tryWithCatch.C, tryWithCatch.E, createAndSetupBranch), tryWithCatch.E?.d?.(owner["A" + tryWithCatch.C], [error]);
1156
+ placeholderBranch && (tryWithCatch.O && (tryWithCatch.O.i = 0), owner["A" + tryWithCatch.C] = placeholderBranch, destroyBranch(tryWithCatch));
1157
+ let catchContent = tryWithCatch.E();
1158
+ setConditionalRenderer(owner, tryWithCatch.C, catchContent, createAndSetupBranch), catchContent.d?.(owner["A" + tryWithCatch.C], [error]);
1134
1159
  } else throw error;
1135
1160
  }
1161
+ function findTryWithPlaceholder(scope) {
1162
+ let branch = scope.F;
1163
+ for (; branch && !branch.Q;) branch = branch.N;
1164
+ return branch;
1165
+ }
1166
+ function findTryWithCatch(scope) {
1167
+ let branch = scope.F;
1168
+ for (; branch && !branch.E;) branch = branch.PT || branch.N;
1169
+ return branch;
1170
+ }
1136
1171
  function rendererKey(renderer) {
1137
1172
  return renderer?.e ? renderer.a + " " + renderer.e.L : renderer?.a || renderer;
1138
1173
  }
@@ -1152,10 +1187,12 @@ function setConditionalRenderer(scope, nodeAccessor, newRenderer, createBranch)
1152
1187
  function reorderKeyed(newScopes, start, newEnd, parentNode, afterReference) {
1153
1188
  let diffLen = newEnd - start + 1, sources = Array(diffLen), pred = Array(diffLen), tails = [], tail = -1, lo, hi, mid;
1154
1189
  for (let i = diffLen; i--;) sources[i] = newScopes[start + i].I ?? -1;
1155
- for (let i = 0; i < diffLen; i++) if (~sources[i]) if (tail < 0 || sources[tails[tail]] < sources[i]) ~tail && (pred[i] = tails[tail]), tails[++tail] = i;
1156
- else {
1157
- for (lo = 0, hi = tail; lo < hi;) mid = (lo + hi) / 2 | 0, sources[tails[mid]] < sources[i] ? lo = mid + 1 : hi = mid;
1158
- sources[i] < sources[tails[lo]] && (lo > 0 && (pred[i] = tails[lo - 1]), tails[lo] = i);
1190
+ for (let i = 0; i < diffLen; i++) if (~sources[i]) {
1191
+ if (tail < 0 || sources[tails[tail]] < sources[i]) ~tail && (pred[i] = tails[tail]), tails[++tail] = i;
1192
+ else {
1193
+ for (lo = 0, hi = tail; lo < hi;) mid = (lo + hi) / 2 | 0, sources[tails[mid]] < sources[i] ? lo = mid + 1 : hi = mid;
1194
+ sources[i] < sources[tails[lo]] && (lo > 0 && (pred[i] = tails[lo - 1]), tails[lo] = i);
1195
+ }
1159
1196
  }
1160
1197
  for (hi = tails[tail], lo = tail + 1; lo-- > 0;) tails[lo] = hi, hi = pred[hi];
1161
1198
  for (let i = diffLen; i--;) ~tail && i === tails[tail] ? tail-- : insertBranchBefore(newScopes[start + i], parentNode, afterReference), afterReference = newScopes[start + i].S;
@@ -1173,272 +1210,272 @@ function byFirstArg(name) {
1173
1210
  Object.defineProperty(exports, "$", {
1174
1211
  enumerable: !0,
1175
1212
  get: function() {
1176
- return _attrs_content;
1213
+ return _attrs;
1177
1214
  }
1178
1215
  }), Object.defineProperty(exports, "$t", {
1179
1216
  enumerable: !0,
1180
1217
  get: function() {
1181
- return _on;
1218
+ return syncGen;
1182
1219
  }
1183
1220
  }), Object.defineProperty(exports, "A", {
1184
1221
  enumerable: !0,
1185
1222
  get: function() {
1186
- return _attr_input_value_attribute_default;
1223
+ return _attr_input_value;
1187
1224
  }
1188
1225
  }), Object.defineProperty(exports, "At", {
1189
1226
  enumerable: !0,
1190
1227
  get: function() {
1191
- return _closure_get;
1228
+ return _closure;
1192
1229
  }
1193
1230
  }), Object.defineProperty(exports, "B", {
1194
1231
  enumerable: !0,
1195
1232
  get: function() {
1196
- return _controllable_textarea;
1233
+ return _controllable_select;
1197
1234
  }
1198
1235
  }), Object.defineProperty(exports, "Bt", {
1199
1236
  enumerable: !0,
1200
1237
  get: function() {
1201
- return _let;
1238
+ return _if_closure;
1202
1239
  }
1203
1240
  }), Object.defineProperty(exports, "C", {
1204
1241
  enumerable: !0,
1205
1242
  get: function() {
1206
- return _attr_input_checked;
1243
+ return _attr_details_or_dialog_open_script;
1207
1244
  }
1208
1245
  }), Object.defineProperty(exports, "Ct", {
1209
1246
  enumerable: !0,
1210
1247
  get: function() {
1211
- return init;
1248
+ return getRegisteredWithScope;
1212
1249
  }
1213
1250
  }), Object.defineProperty(exports, "D", {
1214
1251
  enumerable: !0,
1215
1252
  get: function() {
1216
- return _attr_input_checked_default;
1253
+ return _attr_input_checkedValue_script;
1217
1254
  }
1218
1255
  }), Object.defineProperty(exports, "Dt", {
1219
1256
  enumerable: !0,
1220
1257
  get: function() {
1221
- return withLazy;
1258
+ return readyFailed;
1222
1259
  }
1223
1260
  }), Object.defineProperty(exports, "E", {
1224
1261
  enumerable: !0,
1225
1262
  get: function() {
1226
- return _attr_input_checkedValue_script;
1263
+ return _attr_input_checkedValue_default;
1227
1264
  }
1228
1265
  }), Object.defineProperty(exports, "Et", {
1229
1266
  enumerable: !0,
1230
1267
  get: function() {
1231
- return readyFailed;
1268
+ return ready;
1232
1269
  }
1233
1270
  }), Object.defineProperty(exports, "F", {
1234
1271
  enumerable: !0,
1235
1272
  get: function() {
1236
- return _attr_select_value_default;
1273
+ return _attr_select_value;
1237
1274
  }
1238
1275
  }), Object.defineProperty(exports, "Ft", {
1239
1276
  enumerable: !0,
1240
1277
  get: function() {
1241
- return _global_read;
1278
+ return _for_selector;
1242
1279
  }
1243
1280
  }), Object.defineProperty(exports, "G", {
1244
1281
  enumerable: !0,
1245
1282
  get: function() {
1246
- return _attr_class_item;
1283
+ return _attr_class;
1247
1284
  }
1248
1285
  }), Object.defineProperty(exports, "Gt", {
1249
1286
  enumerable: !0,
1250
1287
  get: function() {
1251
- return _script;
1288
+ return _return_change;
1252
1289
  }
1253
1290
  }), Object.defineProperty(exports, "H", {
1254
1291
  enumerable: !0,
1255
1292
  get: function() {
1256
- return controllableScripts;
1293
+ return controllableRenders;
1257
1294
  }
1258
1295
  }), Object.defineProperty(exports, "Ht", {
1259
1296
  enumerable: !0,
1260
1297
  get: function() {
1261
- return _or;
1298
+ return _let_change;
1262
1299
  }
1263
1300
  }), Object.defineProperty(exports, "I", {
1264
1301
  enumerable: !0,
1265
1302
  get: function() {
1266
- return _attr_select_value_script;
1303
+ return _attr_select_value_default;
1267
1304
  }
1268
1305
  }), Object.defineProperty(exports, "It", {
1269
1306
  enumerable: !0,
1270
1307
  get: function() {
1271
- return _hoist;
1308
+ return _global_read;
1272
1309
  }
1273
1310
  }), Object.defineProperty(exports, "J", {
1274
1311
  enumerable: !0,
1275
1312
  get: function() {
1276
- return _attr_nonce;
1313
+ return _attr_content;
1277
1314
  }
1278
1315
  }), Object.defineProperty(exports, "Jt", {
1279
1316
  enumerable: !0,
1280
1317
  get: function() {
1281
- return _assert_init;
1318
+ return _var_change;
1282
1319
  }
1283
1320
  }), Object.defineProperty(exports, "K", {
1284
1321
  enumerable: !0,
1285
1322
  get: function() {
1286
- return _attr_class_items;
1323
+ return _attr_class_item;
1287
1324
  }
1288
1325
  }), Object.defineProperty(exports, "Kt", {
1289
1326
  enumerable: !0,
1290
1327
  get: function() {
1291
- return _var;
1328
+ return _script;
1292
1329
  }
1293
1330
  }), Object.defineProperty(exports, "L", {
1294
1331
  enumerable: !0,
1295
1332
  get: function() {
1296
- return _controllable_input;
1333
+ return _attr_select_value_script;
1297
1334
  }
1298
1335
  }), Object.defineProperty(exports, "Lt", {
1299
1336
  enumerable: !0,
1300
1337
  get: function() {
1301
- return _hoist_resume;
1338
+ return _hoist;
1302
1339
  }
1303
1340
  }), Object.defineProperty(exports, "M", {
1304
1341
  enumerable: !0,
1305
1342
  get: function() {
1306
- return _attr_input_value_dynamic_default;
1343
+ return _attr_input_value_default;
1307
1344
  }
1308
1345
  }), Object.defineProperty(exports, "Mt", {
1309
1346
  enumerable: !0,
1310
1347
  get: function() {
1311
- return _el_read;
1348
+ return _const;
1312
1349
  }
1313
1350
  }), Object.defineProperty(exports, "N", {
1314
1351
  enumerable: !0,
1315
1352
  get: function() {
1316
- return _attr_input_value_script;
1353
+ return _attr_input_value_dynamic_default;
1317
1354
  }
1318
1355
  }), Object.defineProperty(exports, "Nt", {
1319
1356
  enumerable: !0,
1320
1357
  get: function() {
1321
- return _for_closure;
1358
+ return _el_read;
1322
1359
  }
1323
1360
  }), Object.defineProperty(exports, "O", {
1324
1361
  enumerable: !0,
1325
1362
  get: function() {
1326
- return _attr_input_checked_script;
1363
+ return _attr_input_checked_default;
1327
1364
  }
1328
1365
  }), Object.defineProperty(exports, "Ot", {
1329
1366
  enumerable: !0,
1330
1367
  get: function() {
1331
- return _child_setup;
1368
+ return withLazy;
1332
1369
  }
1333
1370
  }), Object.defineProperty(exports, "P", {
1334
1371
  enumerable: !0,
1335
1372
  get: function() {
1336
- return _attr_select_value;
1373
+ return _attr_input_value_script;
1337
1374
  }
1338
1375
  }), Object.defineProperty(exports, "Pt", {
1339
1376
  enumerable: !0,
1340
1377
  get: function() {
1341
- return _for_selector;
1378
+ return _for_closure;
1342
1379
  }
1343
1380
  }), Object.defineProperty(exports, "Q", {
1344
1381
  enumerable: !0,
1345
1382
  get: function() {
1346
- return _attrs;
1383
+ return _attr_style_items;
1347
1384
  }
1348
1385
  }), Object.defineProperty(exports, "Qt", {
1349
1386
  enumerable: !0,
1350
1387
  get: function() {
1351
- return syncGen;
1388
+ return removeAndDestroyBranch;
1352
1389
  }
1353
1390
  }), Object.defineProperty(exports, "R", {
1354
1391
  enumerable: !0,
1355
1392
  get: function() {
1356
- return _controllable_open;
1393
+ return _controllable_input;
1357
1394
  }
1358
1395
  }), Object.defineProperty(exports, "Rt", {
1359
1396
  enumerable: !0,
1360
1397
  get: function() {
1361
- return _id;
1398
+ return _hoist_resume;
1362
1399
  }
1363
1400
  }), Object.defineProperty(exports, "S", {
1364
1401
  enumerable: !0,
1365
1402
  get: function() {
1366
- return _attr_details_or_dialog_open_script;
1403
+ return _attr_details_or_dialog_open_default;
1367
1404
  }
1368
1405
  }), Object.defineProperty(exports, "St", {
1369
1406
  enumerable: !0,
1370
1407
  get: function() {
1371
- return getRegisteredWithScope;
1408
+ return _var_resume;
1372
1409
  }
1373
1410
  }), Object.defineProperty(exports, "T", {
1374
1411
  enumerable: !0,
1375
1412
  get: function() {
1376
- return _attr_input_checkedValue_default;
1413
+ return _attr_input_checkedValue;
1377
1414
  }
1378
1415
  }), Object.defineProperty(exports, "Tt", {
1379
1416
  enumerable: !0,
1380
1417
  get: function() {
1381
- return ready;
1418
+ return initEmbedded;
1382
1419
  }
1383
1420
  }), Object.defineProperty(exports, "U", {
1384
1421
  enumerable: !0,
1385
1422
  get: function() {
1386
- return _attr;
1423
+ return controllableScripts;
1387
1424
  }
1388
1425
  }), Object.defineProperty(exports, "Ut", {
1389
1426
  enumerable: !0,
1390
1427
  get: function() {
1391
- return _return;
1428
+ return _or;
1392
1429
  }
1393
1430
  }), Object.defineProperty(exports, "V", {
1394
1431
  enumerable: !0,
1395
1432
  get: function() {
1396
- return controllableRenders;
1433
+ return _controllable_textarea;
1397
1434
  }
1398
1435
  }), Object.defineProperty(exports, "Vt", {
1399
1436
  enumerable: !0,
1400
1437
  get: function() {
1401
- return _let_change;
1438
+ return _let;
1402
1439
  }
1403
1440
  }), Object.defineProperty(exports, "W", {
1404
1441
  enumerable: !0,
1405
1442
  get: function() {
1406
- return _attr_class;
1443
+ return _attr;
1407
1444
  }
1408
1445
  }), Object.defineProperty(exports, "Wt", {
1409
1446
  enumerable: !0,
1410
1447
  get: function() {
1411
- return _return_change;
1448
+ return _return;
1412
1449
  }
1413
1450
  }), Object.defineProperty(exports, "X", {
1414
1451
  enumerable: !0,
1415
1452
  get: function() {
1416
- return _attr_style_item;
1453
+ return _attr_style;
1417
1454
  }
1418
1455
  }), Object.defineProperty(exports, "Xt", {
1419
1456
  enumerable: !0,
1420
1457
  get: function() {
1421
- return insertBranchBefore;
1458
+ return destroyBranch;
1422
1459
  }
1423
1460
  }), Object.defineProperty(exports, "Y", {
1424
1461
  enumerable: !0,
1425
1462
  get: function() {
1426
- return _attr_style;
1463
+ return _attr_nonce;
1427
1464
  }
1428
1465
  }), Object.defineProperty(exports, "Yt", {
1429
1466
  enumerable: !0,
1430
1467
  get: function() {
1431
- return destroyBranch;
1468
+ return _assert_init;
1432
1469
  }
1433
1470
  }), Object.defineProperty(exports, "Z", {
1434
1471
  enumerable: !0,
1435
1472
  get: function() {
1436
- return _attr_style_items;
1473
+ return _attr_style_item;
1437
1474
  }
1438
1475
  }), Object.defineProperty(exports, "Zt", {
1439
1476
  enumerable: !0,
1440
1477
  get: function() {
1441
- return removeAndDestroyBranch;
1478
+ return insertBranchBefore;
1442
1479
  }
1443
1480
  }), Object.defineProperty(exports, "_", {
1444
1481
  enumerable: !0,
@@ -1453,7 +1490,7 @@ Object.defineProperty(exports, "$", {
1453
1490
  }), Object.defineProperty(exports, "_t", {
1454
1491
  enumerable: !0,
1455
1492
  get: function() {
1456
- return setupBranch;
1493
+ return createBranch;
1457
1494
  }
1458
1495
  }), Object.defineProperty(exports, "a", {
1459
1496
  enumerable: !0,
@@ -1463,22 +1500,22 @@ Object.defineProperty(exports, "$", {
1463
1500
  }), Object.defineProperty(exports, "an", {
1464
1501
  enumerable: !0,
1465
1502
  get: function() {
1466
- return prepareEffects;
1503
+ return queueAsyncRender;
1467
1504
  }
1468
1505
  }), Object.defineProperty(exports, "at", {
1469
1506
  enumerable: !0,
1470
1507
  get: function() {
1471
- return _style_rule_item;
1508
+ return _lifecycle;
1472
1509
  }
1473
1510
  }), Object.defineProperty(exports, "b", {
1474
1511
  enumerable: !0,
1475
1512
  get: function() {
1476
- return _attr_details_or_dialog_open;
1513
+ return runPendingEffects;
1477
1514
  }
1478
1515
  }), Object.defineProperty(exports, "bt", {
1479
1516
  enumerable: !0,
1480
1517
  get: function() {
1481
- return _resumed;
1518
+ return _el;
1482
1519
  }
1483
1520
  }), Object.defineProperty(exports, "c", {
1484
1521
  enumerable: !0,
@@ -1488,12 +1525,12 @@ Object.defineProperty(exports, "$", {
1488
1525
  }), Object.defineProperty(exports, "cn", {
1489
1526
  enumerable: !0,
1490
1527
  get: function() {
1491
- return queueRender;
1528
+ return rendering;
1492
1529
  }
1493
1530
  }), Object.defineProperty(exports, "ct", {
1494
1531
  enumerable: !0,
1495
1532
  get: function() {
1496
- return _text_content;
1533
+ return _text;
1497
1534
  }
1498
1535
  }), Object.defineProperty(exports, "d", {
1499
1536
  enumerable: !0,
@@ -1508,17 +1545,17 @@ Object.defineProperty(exports, "$", {
1508
1545
  }), Object.defineProperty(exports, "dt", {
1509
1546
  enumerable: !0,
1510
1547
  get: function() {
1511
- return toInsertNode;
1548
+ return insertChildNodes;
1512
1549
  }
1513
1550
  }), Object.defineProperty(exports, "en", {
1514
1551
  enumerable: !0,
1515
1552
  get: function() {
1516
- return $signal;
1553
+ return _on;
1517
1554
  }
1518
1555
  }), Object.defineProperty(exports, "et", {
1519
1556
  enumerable: !0,
1520
1557
  get: function() {
1521
- return _attrs_partial;
1558
+ return _attrs_content;
1522
1559
  }
1523
1560
  }), Object.defineProperty(exports, "f", {
1524
1561
  enumerable: !0,
@@ -1533,7 +1570,7 @@ Object.defineProperty(exports, "$", {
1533
1570
  }), Object.defineProperty(exports, "ft", {
1534
1571
  enumerable: !0,
1535
1572
  get: function() {
1536
- return _content;
1573
+ return toInsertNode;
1537
1574
  }
1538
1575
  }), Object.defineProperty(exports, "g", {
1539
1576
  enumerable: !0,
@@ -1548,7 +1585,7 @@ Object.defineProperty(exports, "$", {
1548
1585
  }), Object.defineProperty(exports, "gt", {
1549
1586
  enumerable: !0,
1550
1587
  get: function() {
1551
- return createBranch;
1588
+ return createAndSetupBranch;
1552
1589
  }
1553
1590
  }), Object.defineProperty(exports, "h", {
1554
1591
  enumerable: !0,
@@ -1563,7 +1600,7 @@ Object.defineProperty(exports, "$", {
1563
1600
  }), Object.defineProperty(exports, "ht", {
1564
1601
  enumerable: !0,
1565
1602
  get: function() {
1566
- return createAndSetupBranch;
1603
+ return _content_resume;
1567
1604
  }
1568
1605
  }), Object.defineProperty(exports, "i", {
1569
1606
  enumerable: !0,
@@ -1573,32 +1610,32 @@ Object.defineProperty(exports, "$", {
1573
1610
  }), Object.defineProperty(exports, "in", {
1574
1611
  enumerable: !0,
1575
1612
  get: function() {
1576
- return placeholderShown;
1613
+ return prepareEffects;
1577
1614
  }
1578
1615
  }), Object.defineProperty(exports, "it", {
1579
1616
  enumerable: !0,
1580
1617
  get: function() {
1581
- return _lifecycle;
1618
+ return _html;
1582
1619
  }
1583
1620
  }), Object.defineProperty(exports, "j", {
1584
1621
  enumerable: !0,
1585
1622
  get: function() {
1586
- return _attr_input_value_default;
1623
+ return _attr_input_value_attribute_default;
1587
1624
  }
1588
1625
  }), Object.defineProperty(exports, "jt", {
1589
1626
  enumerable: !0,
1590
1627
  get: function() {
1591
- return _const;
1628
+ return _closure_get;
1592
1629
  }
1593
1630
  }), Object.defineProperty(exports, "k", {
1594
1631
  enumerable: !0,
1595
1632
  get: function() {
1596
- return _attr_input_value;
1633
+ return _attr_input_checked_script;
1597
1634
  }
1598
1635
  }), Object.defineProperty(exports, "kt", {
1599
1636
  enumerable: !0,
1600
1637
  get: function() {
1601
- return _closure;
1638
+ return _child_setup;
1602
1639
  }
1603
1640
  }), Object.defineProperty(exports, "l", {
1604
1641
  enumerable: !0,
@@ -1613,7 +1650,7 @@ Object.defineProperty(exports, "$", {
1613
1650
  }), Object.defineProperty(exports, "lt", {
1614
1651
  enumerable: !0,
1615
1652
  get: function() {
1616
- return _to_text;
1653
+ return _text_content;
1617
1654
  }
1618
1655
  }), Object.defineProperty(exports, "m", {
1619
1656
  enumerable: !0,
@@ -1628,7 +1665,7 @@ Object.defineProperty(exports, "$", {
1628
1665
  }), Object.defineProperty(exports, "mt", {
1629
1666
  enumerable: !0,
1630
1667
  get: function() {
1631
- return _content_resume;
1668
+ return _content_closures;
1632
1669
  }
1633
1670
  }), Object.defineProperty(exports, "n", {
1634
1671
  enumerable: !0,
@@ -1638,12 +1675,12 @@ Object.defineProperty(exports, "$", {
1638
1675
  }), Object.defineProperty(exports, "nn", {
1639
1676
  enumerable: !0,
1640
1677
  get: function() {
1641
- return caughtError;
1678
+ return $signalReset;
1642
1679
  }
1643
1680
  }), Object.defineProperty(exports, "nt", {
1644
1681
  enumerable: !0,
1645
1682
  get: function() {
1646
- return _attrs_script;
1683
+ return _attrs_partial_content;
1647
1684
  }
1648
1685
  }), Object.defineProperty(exports, "o", {
1649
1686
  enumerable: !0,
@@ -1653,12 +1690,12 @@ Object.defineProperty(exports, "$", {
1653
1690
  }), Object.defineProperty(exports, "on", {
1654
1691
  enumerable: !0,
1655
1692
  get: function() {
1656
- return queueAsyncRender;
1693
+ return queueEffect;
1657
1694
  }
1658
1695
  }), Object.defineProperty(exports, "ot", {
1659
1696
  enumerable: !0,
1660
1697
  get: function() {
1661
- return _style_shell;
1698
+ return _style_rule_item;
1662
1699
  }
1663
1700
  }), Object.defineProperty(exports, "p", {
1664
1701
  enumerable: !0,
@@ -1673,17 +1710,17 @@ Object.defineProperty(exports, "$", {
1673
1710
  }), Object.defineProperty(exports, "pt", {
1674
1711
  enumerable: !0,
1675
1712
  get: function() {
1676
- return _content_closures;
1713
+ return _content;
1677
1714
  }
1678
1715
  }), Object.defineProperty(exports, "q", {
1679
1716
  enumerable: !0,
1680
1717
  get: function() {
1681
- return _attr_content;
1718
+ return _attr_class_items;
1682
1719
  }
1683
1720
  }), Object.defineProperty(exports, "qt", {
1684
1721
  enumerable: !0,
1685
1722
  get: function() {
1686
- return _var_change;
1723
+ return _var;
1687
1724
  }
1688
1725
  }), Object.defineProperty(exports, "r", {
1689
1726
  enumerable: !0,
@@ -1698,7 +1735,7 @@ Object.defineProperty(exports, "$", {
1698
1735
  }), Object.defineProperty(exports, "rt", {
1699
1736
  enumerable: !0,
1700
1737
  get: function() {
1701
- return _html;
1738
+ return _attrs_script;
1702
1739
  }
1703
1740
  }), Object.defineProperty(exports, "s", {
1704
1741
  enumerable: !0,
@@ -1708,12 +1745,12 @@ Object.defineProperty(exports, "$", {
1708
1745
  }), Object.defineProperty(exports, "sn", {
1709
1746
  enumerable: !0,
1710
1747
  get: function() {
1711
- return queueEffect;
1748
+ return queueRender;
1712
1749
  }
1713
1750
  }), Object.defineProperty(exports, "st", {
1714
1751
  enumerable: !0,
1715
1752
  get: function() {
1716
- return _text;
1753
+ return _style_shell;
1717
1754
  }
1718
1755
  }), Object.defineProperty(exports, "t", {
1719
1756
  enumerable: !0,
@@ -1723,12 +1760,12 @@ Object.defineProperty(exports, "$", {
1723
1760
  }), Object.defineProperty(exports, "tn", {
1724
1761
  enumerable: !0,
1725
1762
  get: function() {
1726
- return $signalReset;
1763
+ return $signal;
1727
1764
  }
1728
1765
  }), Object.defineProperty(exports, "tt", {
1729
1766
  enumerable: !0,
1730
1767
  get: function() {
1731
- return _attrs_partial_content;
1768
+ return _attrs_partial;
1732
1769
  }
1733
1770
  }), Object.defineProperty(exports, "u", {
1734
1771
  enumerable: !0,
@@ -1743,7 +1780,7 @@ Object.defineProperty(exports, "$", {
1743
1780
  }), Object.defineProperty(exports, "ut", {
1744
1781
  enumerable: !0,
1745
1782
  get: function() {
1746
- return insertChildNodes;
1783
+ return _to_text;
1747
1784
  }
1748
1785
  }), Object.defineProperty(exports, "v", {
1749
1786
  enumerable: !0,
@@ -1758,27 +1795,27 @@ Object.defineProperty(exports, "$", {
1758
1795
  }), Object.defineProperty(exports, "vt", {
1759
1796
  enumerable: !0,
1760
1797
  get: function() {
1761
- return _dynamic_tag_var_resume;
1798
+ return setupBranch;
1762
1799
  }
1763
1800
  }), Object.defineProperty(exports, "w", {
1764
1801
  enumerable: !0,
1765
1802
  get: function() {
1766
- return _attr_input_checkedValue;
1803
+ return _attr_input_checked;
1767
1804
  }
1768
1805
  }), Object.defineProperty(exports, "wt", {
1769
1806
  enumerable: !0,
1770
1807
  get: function() {
1771
- return initEmbedded;
1808
+ return init;
1772
1809
  }
1773
1810
  }), Object.defineProperty(exports, "x", {
1774
1811
  enumerable: !0,
1775
1812
  get: function() {
1776
- return _attr_details_or_dialog_open_default;
1813
+ return _attr_details_or_dialog_open;
1777
1814
  }
1778
1815
  }), Object.defineProperty(exports, "xt", {
1779
1816
  enumerable: !0,
1780
1817
  get: function() {
1781
- return _var_resume;
1818
+ return _resumed;
1782
1819
  }
1783
1820
  }), Object.defineProperty(exports, "y", {
1784
1821
  enumerable: !0,
@@ -1793,16 +1830,16 @@ Object.defineProperty(exports, "$", {
1793
1830
  }), Object.defineProperty(exports, "yt", {
1794
1831
  enumerable: !0,
1795
1832
  get: function() {
1796
- return _el;
1833
+ return _dynamic_tag_var_resume;
1797
1834
  }
1798
1835
  }), Object.defineProperty(exports, "z", {
1799
1836
  enumerable: !0,
1800
1837
  get: function() {
1801
- return _controllable_select;
1838
+ return _controllable_open;
1802
1839
  }
1803
1840
  }), Object.defineProperty(exports, "zt", {
1804
1841
  enumerable: !0,
1805
1842
  get: function() {
1806
- return _if_closure;
1843
+ return _id;
1807
1844
  }
1808
1845
  });