marko 6.3.40 → 6.3.42

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 (49) hide show
  1. package/dist/debug/dom/catch.feat.js +1 -1
  2. package/dist/debug/dom/catch.feat.mjs +1 -1
  3. package/dist/debug/dom/controllable-input.feat.js +1 -1
  4. package/dist/debug/dom/controllable-input.feat.mjs +1 -1
  5. package/dist/debug/dom/controllable-open.feat.js +1 -1
  6. package/dist/debug/dom/controllable-open.feat.mjs +1 -1
  7. package/dist/debug/dom/controllable-select.feat.js +1 -1
  8. package/dist/debug/dom/controllable-select.feat.mjs +1 -1
  9. package/dist/debug/dom/controllable-textarea.feat.js +1 -1
  10. package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
  11. package/dist/debug/dom/controllable.feat.js +1 -1
  12. package/dist/debug/dom/controllable.feat.mjs +1 -1
  13. package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
  14. package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
  15. package/dist/debug/dom/placeholder.feat.js +1 -1
  16. package/dist/debug/dom/placeholder.feat.mjs +1 -1
  17. package/dist/debug/{dom-Kmuzoe8t.js → dom-BbtmY5_5.js} +6 -0
  18. package/dist/debug/{dom-BREcRn0h.mjs → dom-DYV177a1.mjs} +1 -1
  19. package/dist/debug/dom.js +5 -1
  20. package/dist/debug/dom.mjs +5 -2
  21. package/dist/debug/html.js +29 -0
  22. package/dist/debug/html.mjs +29 -0
  23. package/dist/dom/catch.feat.js +1 -1
  24. package/dist/dom/catch.feat.mjs +1 -1
  25. package/dist/dom/compat.d.ts +1 -0
  26. package/dist/dom/controllable-input.feat.js +1 -1
  27. package/dist/dom/controllable-input.feat.mjs +1 -1
  28. package/dist/dom/controllable-open.feat.js +1 -1
  29. package/dist/dom/controllable-open.feat.mjs +1 -1
  30. package/dist/dom/controllable-select.feat.js +1 -1
  31. package/dist/dom/controllable-select.feat.mjs +1 -1
  32. package/dist/dom/controllable-textarea.feat.js +1 -1
  33. package/dist/dom/controllable-textarea.feat.mjs +1 -1
  34. package/dist/dom/controllable.feat.js +1 -1
  35. package/dist/dom/controllable.feat.mjs +1 -1
  36. package/dist/dom/dynamic-tag-var.feat.js +1 -1
  37. package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
  38. package/dist/dom/placeholder.feat.js +1 -1
  39. package/dist/dom/placeholder.feat.mjs +1 -1
  40. package/dist/{dom-BlOP3cfL.mjs → dom-BVNolGe1.mjs} +2 -1
  41. package/dist/{dom-B5PaPvwd.js → dom-BfloYt04.js} +8 -2
  42. package/dist/dom.d.ts +1 -1
  43. package/dist/dom.js +7 -4
  44. package/dist/dom.mjs +5 -2
  45. package/dist/html/compat.d.ts +2 -0
  46. package/dist/html.js +24 -2
  47. package/dist/html.mjs +24 -2
  48. package/dist/translator/index.js +2 -2
  49. package/package.json +9 -3
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_control_flow = require("../dom-Kmuzoe8t.js");
2
+ const require_control_flow = require("../dom-BbtmY5_5.js");
3
3
  //#region src/dom/catch.feat.ts
4
4
  const handlePendingTry = (fn, scope, branch) => {
5
5
  while (branch) {
@@ -1,4 +1,4 @@
1
- import { $t as caughtError, Dn as PendingEffects, En as ParentBranch, On as PendingRenders, en as installCatch, g as renderCatch, tn as placeholderShown, vn as Pending, xn as ClosestBranch, yn as Scope } from "../dom-BREcRn0h.mjs";
1
+ import { $t as caughtError, Dn as ParentBranch, On as PendingEffects, Sn as ClosestBranch, bn as Scope, en as installCatch, g as renderCatch, kn as PendingRenders, tn as placeholderShown, yn as Pending } from "../dom-DYV177a1.mjs";
2
2
  //#region src/dom/catch.feat.ts
3
3
  const handlePendingTry = (fn, scope, branch) => {
4
4
  while (branch) {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_control_flow = require("../dom-Kmuzoe8t.js");
2
+ const require_control_flow = require("../dom-BbtmY5_5.js");
3
3
  //#region src/dom/controllable-input.feat.ts
4
4
  require_control_flow.controllableScripts[0] = require_control_flow._attr_input_checked_script;
5
5
  require_control_flow.controllableScripts[1] = require_control_flow._attr_input_checkedValue_script;
@@ -1,4 +1,4 @@
1
- import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-BREcRn0h.mjs";
1
+ import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-DYV177a1.mjs";
2
2
  //#region src/dom/controllable-input.feat.ts
3
3
  controllableScripts[0] = _attr_input_checked_script;
4
4
  controllableScripts[1] = _attr_input_checkedValue_script;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_control_flow = require("../dom-Kmuzoe8t.js");
2
+ const require_control_flow = require("../dom-BbtmY5_5.js");
3
3
  //#region src/dom/controllable-open.feat.ts
4
4
  require_control_flow.controllableScripts[4] = require_control_flow._attr_details_or_dialog_open_script;
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-BREcRn0h.mjs";
1
+ import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-DYV177a1.mjs";
2
2
  //#region src/dom/controllable-open.feat.ts
3
3
  controllableScripts[4] = _attr_details_or_dialog_open_script;
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_control_flow = require("../dom-Kmuzoe8t.js");
2
+ const require_control_flow = require("../dom-BbtmY5_5.js");
3
3
  //#region src/dom/controllable-select.feat.ts
4
4
  require_control_flow.controllableScripts[3] = require_control_flow._attr_select_value_script;
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { N as _attr_select_value_script, z as controllableScripts } from "../dom-BREcRn0h.mjs";
1
+ import { N as _attr_select_value_script, z as controllableScripts } from "../dom-DYV177a1.mjs";
2
2
  //#region src/dom/controllable-select.feat.ts
3
3
  controllableScripts[3] = _attr_select_value_script;
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_control_flow = require("../dom-Kmuzoe8t.js");
2
+ const require_control_flow = require("../dom-BbtmY5_5.js");
3
3
  //#region src/dom/controllable-textarea.feat.ts
4
4
  require_control_flow.controllableScripts[2] = require_control_flow._attr_input_value_script;
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { A as _attr_input_value_script, z as controllableScripts } from "../dom-BREcRn0h.mjs";
1
+ import { A as _attr_input_value_script, z as controllableScripts } from "../dom-DYV177a1.mjs";
2
2
  //#region src/dom/controllable-textarea.feat.ts
3
3
  controllableScripts[2] = _attr_input_value_script;
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_control_flow = require("../dom-Kmuzoe8t.js");
2
+ const require_control_flow = require("../dom-BbtmY5_5.js");
3
3
  require("./controllable-input.feat.js");
4
4
  require("./controllable-open.feat.js");
5
5
  require("./controllable-select.feat.js");
@@ -1,4 +1,4 @@
1
- import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-BREcRn0h.mjs";
1
+ import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-DYV177a1.mjs";
2
2
  import "./controllable-input.feat.mjs";
3
3
  import "./controllable-open.feat.mjs";
4
4
  import "./controllable-select.feat.mjs";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_control_flow = require("../dom-Kmuzoe8t.js");
2
+ const require_control_flow = require("../dom-BbtmY5_5.js");
3
3
  //#region src/dom/dynamic-tag-var.feat.ts
4
4
  const elementGetter = (branch) => () => require_control_flow._el_read(branch[require_control_flow.StartNode]);
5
5
  require_control_flow.installDynamicTagVar((branch) => branch[require_control_flow.TagVariable](elementGetter(branch)));
@@ -1,4 +1,4 @@
1
- import { An as StartNode, Ot as _el_read, Yt as DYNAMIC_TAG_VAR_REGISTER_ID, gt as _resume, jn as TagVariable, m as installDynamicTagVar } from "../dom-BREcRn0h.mjs";
1
+ import { Mn as TagVariable, Ot as _el_read, Yt as DYNAMIC_TAG_VAR_REGISTER_ID, gt as _resume, jn as StartNode, m as installDynamicTagVar } from "../dom-DYV177a1.mjs";
2
2
  //#region src/dom/dynamic-tag-var.feat.ts
3
3
  const elementGetter = (branch) => () => _el_read(branch[StartNode]);
4
4
  installDynamicTagVar((branch) => branch[TagVariable](elementGetter(branch)));
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_control_flow = require("../dom-Kmuzoe8t.js");
2
+ const require_control_flow = require("../dom-BbtmY5_5.js");
3
3
  //#region src/dom/placeholder.feat.ts
4
4
  require_control_flow.registeredValues[require_control_flow.PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
5
5
  if (tryBranch["#PlaceholderBranch"]) {
@@ -1,4 +1,4 @@
1
- import { St as registeredValues, Wt as destroyBranch, Xt as PLACEHOLDER_DISMISS_REGISTER_ID, kn as PlaceholderBranch } from "../dom-BREcRn0h.mjs";
1
+ import { An as PlaceholderBranch, St as registeredValues, Wt as destroyBranch, Xt as PLACEHOLDER_DISMISS_REGISTER_ID } from "../dom-DYV177a1.mjs";
2
2
  //#region src/dom/placeholder.feat.ts
3
3
  registeredValues[PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
4
4
  if (tryBranch["#PlaceholderBranch"]) {
@@ -2554,6 +2554,12 @@ Object.defineProperty(exports, "_hoist", {
2554
2554
  return _hoist;
2555
2555
  }
2556
2556
  });
2557
+ Object.defineProperty(exports, "_hoist_read_error", {
2558
+ enumerable: true,
2559
+ get: function() {
2560
+ return _hoist_read_error;
2561
+ }
2562
+ });
2557
2563
  Object.defineProperty(exports, "_hoist_resume", {
2558
2564
  enumerable: true,
2559
2565
  get: function() {
@@ -2073,4 +2073,4 @@ function byFirstArg(name) {
2073
2073
  return name;
2074
2074
  }
2075
2075
  //#endregion
2076
- export { _attrs_script as $, caughtError as $t, _attr_input_value_script as A, StartNode as An, _for_selector as At, _attr as B, _script as Bt, _attr_input_checkedValue_script as C, Gen$1 as Cn, withLazy as Ct, _attr_input_value_attribute_default as D, PendingEffects as Dn, _const as Dt, _attr_input_value as E, ParentBranch as En, _closure_get as Et, _controllable_open as F, _let as Ft, _attr_nonce as G, insertBranchBefore as Gt, _attr_class_item as H, _var_change as Ht, _controllable_select as I, _let_change as It, _attr_style_items as J, _on as Jt, _attr_style as K, removeAndDestroyBranch as Kt, _controllable_textarea as L, _or as Lt, _attr_select_value_default as M, _hoist_resume as Mt, _attr_select_value_script as N, _id as Nt, _attr_input_value_default as O, PendingRenders as On, _el_read as Ot, _controllable_input as P, _if_closure as Pt, _attrs_partial_content as Q, $signalReset as Qt, controllableRenders as R, _return as Rt, _attr_input_checkedValue_default as S, EndNode as Sn, registeredValues as St, _attr_input_checked_script as T, Load as Tn, _closure as Tt, _attr_class_items as U, _assert_init as Ut, _attr_class as V, _var as Vt, _attr_content as W, destroyBranch as Wt, _attrs_content as X, PLACEHOLDER_DISMISS_REGISTER_ID as Xt, _attrs as Y, DYNAMIC_TAG_VAR_REGISTER_ID as Yt, _attrs_partial as Z, $signal as Zt, _attr_details_or_dialog_open as _, Setup as _n, _var_resume as _t, _for_in as a, run as an, _text_content as at, _attr_input_checked as b, AwaitCounter as bn, initEmbedded as bt, _for_until as c, forIn as cn, toInsertNode as ct, _show as d, forUntil as dn, _content_resume as dt, installCatch as en, _html as et, _try as f, _assert_hoist as fn, createAndSetupBranch as ft, renderCatch as g, Params as gn, _resume as gt, patchDynamicTag as h, Owner as hn, _el as ht, _dynamic_tag_content as i, queueEffect as in, _text as it, _attr_select_value as j, TagVariable as jn, _hoist as jt, _attr_input_value_dynamic_default as k, PlaceholderBranch as kn, _for_closure as kt, _if as l, forOf as ln, _content as lt, installDynamicTagVar as m, Clone as mn, setupBranch as mt, _await_promise as n, prepareEffects as nn, _style_rule_item as nt, _for_of as o, runEffects as on, _to_text as ot, addAwaitCounter as p, _call as pn, createBranch as pt, _attr_style_item as q, syncGen as qt, _dynamic_tag as r, queueAsyncRender as rn, _style_shell as rt, _for_to as s, runId as sn, insertChildNodes as st, _await_content as t, placeholderShown as tn, _lifecycle as tt, _resume_dynamic_tag as u, forTo as un, _content_closures as ut, _attr_details_or_dialog_open_default as v, Pending as vn, getRegisteredWithScope as vt, _attr_input_checked_default as w, Global as wn, _child_setup as wt, _attr_input_checkedValue as x, ClosestBranch as xn, ready as xt, _attr_details_or_dialog_open_script as y, Scope as yn, init as yt, controllableScripts as z, _return_change as zt };
2076
+ export { _attrs_script as $, caughtError as $t, _attr_input_value_script as A, PlaceholderBranch as An, _for_selector as At, _attr as B, _script as Bt, _attr_input_checkedValue_script as C, EndNode as Cn, withLazy as Ct, _attr_input_value_attribute_default as D, ParentBranch as Dn, _const as Dt, _attr_input_value as E, Load as En, _closure_get as Et, _controllable_open as F, _let as Ft, _attr_nonce as G, insertBranchBefore as Gt, _attr_class_item as H, _var_change as Ht, _controllable_select as I, _let_change as It, _attr_style_items as J, _on as Jt, _attr_style as K, removeAndDestroyBranch as Kt, _controllable_textarea as L, _or as Lt, _attr_select_value_default as M, TagVariable as Mn, _hoist_resume as Mt, _attr_select_value_script as N, _id as Nt, _attr_input_value_default as O, PendingEffects as On, _el_read as Ot, _controllable_input as P, _if_closure as Pt, _attrs_partial_content as Q, $signalReset as Qt, controllableRenders as R, _return as Rt, _attr_input_checkedValue_default as S, ClosestBranch as Sn, registeredValues as St, _attr_input_checked_script as T, Global as Tn, _closure as Tt, _attr_class_items as U, _assert_init as Ut, _attr_class as V, _var as Vt, _attr_content as W, destroyBranch as Wt, _attrs_content as X, PLACEHOLDER_DISMISS_REGISTER_ID as Xt, _attrs as Y, DYNAMIC_TAG_VAR_REGISTER_ID as Yt, _attrs_partial as Z, $signal as Zt, _attr_details_or_dialog_open as _, Params as _n, _var_resume as _t, _for_in as a, run as an, _text_content as at, _attr_input_checked as b, Scope as bn, initEmbedded as bt, _for_until as c, forIn as cn, toInsertNode as ct, _show as d, forUntil as dn, _content_resume as dt, installCatch as en, _html as et, _try as f, _assert_hoist as fn, createAndSetupBranch as ft, renderCatch as g, Owner as gn, _resume as gt, patchDynamicTag as h, Clone as hn, _el as ht, _dynamic_tag_content as i, queueEffect as in, _text as it, _attr_select_value as j, StartNode as jn, _hoist as jt, _attr_input_value_dynamic_default as k, PendingRenders as kn, _for_closure as kt, _if as l, forOf as ln, _content as lt, installDynamicTagVar as m, _call as mn, setupBranch as mt, _await_promise as n, prepareEffects as nn, _style_rule_item as nt, _for_of as o, runEffects as on, _to_text as ot, addAwaitCounter as p, _hoist_read_error as pn, createBranch as pt, _attr_style_item as q, syncGen as qt, _dynamic_tag as r, queueAsyncRender as rn, _style_shell as rt, _for_to as s, runId as sn, insertChildNodes as st, _await_content as t, placeholderShown as tn, _lifecycle as tt, _resume_dynamic_tag as u, forTo as un, _content_closures as ut, _attr_details_or_dialog_open_default as v, Setup as vn, getRegisteredWithScope as vt, _attr_input_checked_default as w, Gen$1 as wn, _child_setup as wt, _attr_input_checkedValue as x, AwaitCounter as xn, ready as xt, _attr_details_or_dialog_open_script as y, Pending as yn, init as yt, controllableScripts as z, _return_change as zt };
package/dist/debug/dom.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_control_flow = require("./dom-Kmuzoe8t.js");
3
+ const require_control_flow = require("./dom-BbtmY5_5.js");
4
4
  //#region src/common/attr-tag.ts
5
5
  const empty = [];
6
6
  const rest = Symbol("Attribute Tag");
@@ -58,6 +58,9 @@ const compat = {
58
58
  setClassEventResolver(fn) {
59
59
  classEventResolver = fn;
60
60
  },
61
+ resumeClassFunction(id, build) {
62
+ require_control_flow._resume(id, build);
63
+ },
61
64
  getScope($global, scopeId) {
62
65
  return getRenderScopes($global)?.[scopeId];
63
66
  },
@@ -364,6 +367,7 @@ exports._for_selector = require_control_flow._for_selector;
364
367
  exports._for_to = require_control_flow._for_to;
365
368
  exports._for_until = require_control_flow._for_until;
366
369
  exports._hoist = require_control_flow._hoist;
370
+ exports._hoist_read_error = require_control_flow._hoist_read_error;
367
371
  exports._hoist_resume = require_control_flow._hoist_resume;
368
372
  exports._html = require_control_flow._html;
369
373
  exports._id = require_control_flow._id;
@@ -1,4 +1,4 @@
1
- import { $ as _attrs_script, A as _attr_input_value_script, An as StartNode, At as _for_selector, B as _attr, Bt as _script, C as _attr_input_checkedValue_script, Ct as withLazy, D as _attr_input_value_attribute_default, Dt as _const, E as _attr_input_value, Et as _closure_get, F as _controllable_open, Ft as _let, G as _attr_nonce, Gt as insertBranchBefore, H as _attr_class_item, Ht as _var_change, I as _controllable_select, It as _let_change, J as _attr_style_items, Jt as _on, K as _attr_style, Kt as removeAndDestroyBranch, L as _controllable_textarea, Lt as _or, M as _attr_select_value_default, Mt as _hoist_resume, N as _attr_select_value_script, Nt as _id, O as _attr_input_value_default, Ot as _el_read, P as _controllable_input, Pt as _if_closure, Q as _attrs_partial_content, Qt as $signalReset, Rt as _return, S as _attr_input_checkedValue_default, Sn as EndNode, T as _attr_input_checked_script, Tn as Load, Tt as _closure, U as _attr_class_items, Ut as _assert_init, V as _attr_class, Vt as _var, W as _attr_content, Wt as destroyBranch, X as _attrs_content, Y as _attrs, Z as _attrs_partial, Zt as $signal, _ as _attr_details_or_dialog_open, _n as Setup, _t as _var_resume, a as _for_in, an as run, at as _text_content, b as _attr_input_checked, bt as initEmbedded, c as _for_until, cn as forIn, ct as toInsertNode, d as _show, dn as forUntil, dt as _content_resume, et as _html, f as _try, fn as _assert_hoist, ft as createAndSetupBranch, g as renderCatch, gn as Params, gt as _resume, h as patchDynamicTag, hn as Owner, ht as _el, i as _dynamic_tag_content, in as queueEffect, it as _text, j as _attr_select_value, jn as TagVariable, jt as _hoist, k as _attr_input_value_dynamic_default, kt as _for_closure, l as _if, ln as forOf, lt as _content, mn as Clone, mt as setupBranch, n as _await_promise, nn as prepareEffects, nt as _style_rule_item, o as _for_of, on as runEffects, ot as _to_text, p as addAwaitCounter, pn as _call, pt as createBranch, q as _attr_style_item, qt as syncGen, r as _dynamic_tag, rn as queueAsyncRender, rt as _style_shell, s as _for_to, sn as runId, st as insertChildNodes, t as _await_content, tt as _lifecycle, u as _resume_dynamic_tag, un as forTo, ut as _content_closures, v as _attr_details_or_dialog_open_default, vt as getRegisteredWithScope, w as _attr_input_checked_default, wn as Global, wt as _child_setup, x as _attr_input_checkedValue, xt as ready, y as _attr_details_or_dialog_open_script, yt as init, zt as _return_change } from "./dom-BREcRn0h.mjs";
1
+ import { $ as _attrs_script, A as _attr_input_value_script, At as _for_selector, B as _attr, Bt as _script, C as _attr_input_checkedValue_script, Cn as EndNode, Ct as withLazy, D as _attr_input_value_attribute_default, Dt as _const, E as _attr_input_value, En as Load, Et as _closure_get, F as _controllable_open, Ft as _let, G as _attr_nonce, Gt as insertBranchBefore, H as _attr_class_item, Ht as _var_change, I as _controllable_select, It as _let_change, J as _attr_style_items, Jt as _on, K as _attr_style, Kt as removeAndDestroyBranch, L as _controllable_textarea, Lt as _or, M as _attr_select_value_default, Mn as TagVariable, Mt as _hoist_resume, N as _attr_select_value_script, Nt as _id, O as _attr_input_value_default, Ot as _el_read, P as _controllable_input, Pt as _if_closure, Q as _attrs_partial_content, Qt as $signalReset, Rt as _return, S as _attr_input_checkedValue_default, T as _attr_input_checked_script, Tn as Global, Tt as _closure, U as _attr_class_items, Ut as _assert_init, V as _attr_class, Vt as _var, W as _attr_content, Wt as destroyBranch, X as _attrs_content, Y as _attrs, Z as _attrs_partial, Zt as $signal, _ as _attr_details_or_dialog_open, _n as Params, _t as _var_resume, a as _for_in, an as run, at as _text_content, b as _attr_input_checked, bt as initEmbedded, c as _for_until, cn as forIn, ct as toInsertNode, d as _show, dn as forUntil, dt as _content_resume, et as _html, f as _try, fn as _assert_hoist, ft as createAndSetupBranch, g as renderCatch, gn as Owner, gt as _resume, h as patchDynamicTag, hn as Clone, ht as _el, i as _dynamic_tag_content, in as queueEffect, it as _text, j as _attr_select_value, jn as StartNode, jt as _hoist, k as _attr_input_value_dynamic_default, kt as _for_closure, l as _if, ln as forOf, lt as _content, mn as _call, mt as setupBranch, n as _await_promise, nn as prepareEffects, nt as _style_rule_item, o as _for_of, on as runEffects, ot as _to_text, p as addAwaitCounter, pn as _hoist_read_error, pt as createBranch, q as _attr_style_item, qt as syncGen, r as _dynamic_tag, rn as queueAsyncRender, rt as _style_shell, s as _for_to, sn as runId, st as insertChildNodes, t as _await_content, tt as _lifecycle, u as _resume_dynamic_tag, un as forTo, ut as _content_closures, v as _attr_details_or_dialog_open_default, vn as Setup, vt as getRegisteredWithScope, w as _attr_input_checked_default, wt as _child_setup, x as _attr_input_checkedValue, xt as ready, y as _attr_details_or_dialog_open_script, yt as init, zt as _return_change } from "./dom-DYV177a1.mjs";
2
2
  //#region src/common/attr-tag.ts
3
3
  const empty = [];
4
4
  const rest = Symbol("Attribute Tag");
@@ -56,6 +56,9 @@ const compat = {
56
56
  setClassEventResolver(fn) {
57
57
  classEventResolver = fn;
58
58
  },
59
+ resumeClassFunction(id, build) {
60
+ _resume(id, build);
61
+ },
59
62
  getScope($global, scopeId) {
60
63
  return getRenderScopes($global)?.[scopeId];
61
64
  },
@@ -291,4 +294,4 @@ function getSelectorOrResolve(selector, resolve) {
291
294
  return document.querySelector(selector) || (console.warn(`A lazy load trigger could not find an element matching "${selector}". The module was loaded immediately.`), resolve());
292
295
  }
293
296
  //#endregion
294
- export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_selector, _for_to, _for_until, _hoist, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resume, _resume_dynamic_tag, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, run };
297
+ export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_selector, _for_to, _for_until, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resume, _resume_dynamic_tag, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, run };
@@ -3570,6 +3570,15 @@ const compat = {
3570
3570
  for (const key in input) normalizedInput[key === "renderBody" ? "content" : key] = input[key];
3571
3571
  }
3572
3572
  head.render(() => {
3573
+ if (this.hasPendingClassFunctions(classAPIOut.global)) drainClassFunctions(classAPIOut.global, (hostId) => {
3574
+ const fnScopeId = _scope_id();
3575
+ const scope = writeScope(fnScopeId, {
3576
+ m5c: component.id,
3577
+ m5h: hostId
3578
+ });
3579
+ _script(fnScopeId, SET_SCOPE_REGISTER_ID);
3580
+ return scope;
3581
+ });
3573
3582
  if (willRerender || registerChildScope) {
3574
3583
  const scopeId = _peek_scope_id();
3575
3584
  writeScope(scopeId, { m5c: component.id });
@@ -3613,8 +3622,28 @@ const compat = {
3613
3622
  const value = input[key];
3614
3623
  if (typeof value === "function" && !getRegistered(value)) register(RENDER_BODY_ID, value);
3615
3624
  }
3625
+ },
3626
+ registerClassFunction($global, id, fn, hostId) {
3627
+ let pending = pendingClassFunctions.get($global);
3628
+ if (!pending) pendingClassFunctions.set($global, pending = []);
3629
+ pending.push([
3630
+ id,
3631
+ fn,
3632
+ hostId
3633
+ ]);
3634
+ return fn;
3635
+ },
3636
+ hasPendingClassFunctions($global) {
3637
+ return !!pendingClassFunctions.get($global)?.length;
3616
3638
  }
3617
3639
  };
3640
+ const pendingClassFunctions = /* @__PURE__ */ new WeakMap();
3641
+ function drainClassFunctions($global, writeScope) {
3642
+ const pending = pendingClassFunctions.get($global);
3643
+ const scopeByHost = {};
3644
+ for (const [id, fn, hostId] of pending) register(id, fn, scopeByHost[hostId] ||= writeScope(hostId));
3645
+ pending.length = 0;
3646
+ }
3618
3647
  function NOOP() {}
3619
3648
  //#endregion
3620
3649
  exports.$global = $global;
@@ -3568,6 +3568,15 @@ const compat = {
3568
3568
  for (const key in input) normalizedInput[key === "renderBody" ? "content" : key] = input[key];
3569
3569
  }
3570
3570
  head.render(() => {
3571
+ if (this.hasPendingClassFunctions(classAPIOut.global)) drainClassFunctions(classAPIOut.global, (hostId) => {
3572
+ const fnScopeId = _scope_id();
3573
+ const scope = writeScope(fnScopeId, {
3574
+ m5c: component.id,
3575
+ m5h: hostId
3576
+ });
3577
+ _script(fnScopeId, SET_SCOPE_REGISTER_ID);
3578
+ return scope;
3579
+ });
3571
3580
  if (willRerender || registerChildScope) {
3572
3581
  const scopeId = _peek_scope_id();
3573
3582
  writeScope(scopeId, { m5c: component.id });
@@ -3611,8 +3620,28 @@ const compat = {
3611
3620
  const value = input[key];
3612
3621
  if (typeof value === "function" && !getRegistered(value)) register(RENDER_BODY_ID, value);
3613
3622
  }
3623
+ },
3624
+ registerClassFunction($global, id, fn, hostId) {
3625
+ let pending = pendingClassFunctions.get($global);
3626
+ if (!pending) pendingClassFunctions.set($global, pending = []);
3627
+ pending.push([
3628
+ id,
3629
+ fn,
3630
+ hostId
3631
+ ]);
3632
+ return fn;
3633
+ },
3634
+ hasPendingClassFunctions($global) {
3635
+ return !!pendingClassFunctions.get($global)?.length;
3614
3636
  }
3615
3637
  };
3638
+ const pendingClassFunctions = /* @__PURE__ */ new WeakMap();
3639
+ function drainClassFunctions($global, writeScope) {
3640
+ const pending = pendingClassFunctions.get($global);
3641
+ const scopeByHost = {};
3642
+ for (const [id, fn, hostId] of pending) register(id, fn, scopeByHost[hostId] ||= writeScope(hostId));
3643
+ pending.length = 0;
3644
+ }
3616
3645
  function NOOP() {}
3617
3646
  //#endregion
3618
3647
  export { $global, _assert_hoist, _attr, _attr_and, _attr_class, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_input_checked, _attr_input_checkedValue, _attr_input_value, _attr_nonce, _attr_nullish, _attr_option_value, _attr_or, _attr_select_value, _attr_style, _attr_textarea_value, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _await, _content, _content_resume, _dynamic_tag, _el, _el_read_error, _el_resume, _escape, _escape_comment, _escape_script, _escape_style, _escape_style_value, _existing_scope, _flush_head, _for_in, _for_of, _for_to, _for_until, _hoist, _hoist_read_error, _html, _id, _if, _peek_scope_id, _resume, _resume_branch, _resume_locals, writeScope as _scope, _scope_id, _scope_reason, _scope_with_id, _script, _sep, _serialize_guard, _serialize_if, _set_serialize_reason, _show_end, _show_start, _style_html, _subscribe, _template, _textarea_value, _to_text, _trailers, _try, _unescaped, _var, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, withLoadAssets, withPageAssets };
@@ -1,4 +1,4 @@
1
- let require_control_flow = require("../dom-B5PaPvwd.js"), handlePendingTry = (fn, scope, branch) => {
1
+ let require_control_flow = require("../dom-BfloYt04.js"), handlePendingTry = (fn, scope, branch) => {
2
2
  for (; branch;) {
3
3
  if (branch.O?.i) return (branch.J ||= []).push(fn, scope);
4
4
  branch = branch.N;
@@ -4,7 +4,7 @@ let handlePendingTry = (fn, scope, branch) => {
4
4
  branch = branch.N;
5
5
  }
6
6
  };
7
- import { $t as placeholderShown, Qt as installCatch, Zt as caughtError, g as renderCatch } from "../dom-BlOP3cfL.mjs";
7
+ import { $t as placeholderShown, Qt as installCatch, Zt as caughtError, g as renderCatch } from "../dom-BVNolGe1.mjs";
8
8
  //#region src/dom/catch.feat.ts
9
9
  installCatch((runEffects) => (effects, checkPending = placeholderShown.has(effects)) => {
10
10
  if (checkPending || caughtError.has(effects)) {
@@ -7,6 +7,7 @@ export declare const compat: {
7
7
  queueEffect: typeof queueEffect;
8
8
  init(warp10Noop: any): void;
9
9
  setClassEventResolver(fn: (value: unknown, scope: Scope) => unknown): void;
10
+ resumeClassFunction(id: string, build: (scope: Scope) => unknown): void;
10
11
  getScope($global: Record<string, unknown>, scopeId: unknown): Scope | undefined;
11
12
  setRendererId(renderer: any, id: unknown): void;
12
13
  isRenderer(renderer: any): any;
@@ -1,3 +1,3 @@
1
- let require_control_flow = require("../dom-B5PaPvwd.js");
1
+ let require_control_flow = require("../dom-BfloYt04.js");
2
2
  require_control_flow.z[0] = require_control_flow.T, require_control_flow.z[1] = require_control_flow.C, require_control_flow.z[2] = require_control_flow.A;
3
3
  //#endregion
@@ -1,3 +1,3 @@
1
- import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-BlOP3cfL.mjs";
1
+ import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-BVNolGe1.mjs";
2
2
  controllableScripts[0] = _attr_input_checked_script, controllableScripts[1] = _attr_input_checkedValue_script, controllableScripts[2] = _attr_input_value_script;
3
3
  //#endregion
@@ -1,4 +1,4 @@
1
- let require_control_flow = require("../dom-B5PaPvwd.js");
1
+ let require_control_flow = require("../dom-BfloYt04.js");
2
2
  //#region src/dom/controllable-open.feat.ts
3
3
  require_control_flow.z[4] = require_control_flow.y;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-BlOP3cfL.mjs";
1
+ import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-BVNolGe1.mjs";
2
2
  //#region src/dom/controllable-open.feat.ts
3
3
  controllableScripts[4] = _attr_details_or_dialog_open_script;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- let require_control_flow = require("../dom-B5PaPvwd.js");
1
+ let require_control_flow = require("../dom-BfloYt04.js");
2
2
  //#region src/dom/controllable-select.feat.ts
3
3
  require_control_flow.z[3] = require_control_flow.N;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { N as _attr_select_value_script, z as controllableScripts } from "../dom-BlOP3cfL.mjs";
1
+ import { N as _attr_select_value_script, z as controllableScripts } from "../dom-BVNolGe1.mjs";
2
2
  //#region src/dom/controllable-select.feat.ts
3
3
  controllableScripts[3] = _attr_select_value_script;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- let require_control_flow = require("../dom-B5PaPvwd.js");
1
+ let require_control_flow = require("../dom-BfloYt04.js");
2
2
  //#region src/dom/controllable-textarea.feat.ts
3
3
  require_control_flow.z[2] = require_control_flow.A;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { A as _attr_input_value_script, z as controllableScripts } from "../dom-BlOP3cfL.mjs";
1
+ import { A as _attr_input_value_script, z as controllableScripts } from "../dom-BVNolGe1.mjs";
2
2
  //#region src/dom/controllable-textarea.feat.ts
3
3
  controllableScripts[2] = _attr_input_value_script;
4
4
  //#endregion
@@ -1,3 +1,3 @@
1
- let require_control_flow = require("../dom-B5PaPvwd.js");
1
+ let require_control_flow = require("../dom-BfloYt04.js");
2
2
  require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.R.INPUT = require_control_flow.P, require_control_flow.R.TEXTAREA = require_control_flow.L, require_control_flow.R.SELECT = require_control_flow.I, require_control_flow.R.DETAILS = require_control_flow.R.DIALOG = require_control_flow.F;
3
3
  //#endregion
@@ -1,4 +1,4 @@
1
- import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-BlOP3cfL.mjs";
1
+ import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-BVNolGe1.mjs";
2
2
  import "./controllable-input.feat.mjs";
3
3
  import "./controllable-open.feat.mjs";
4
4
  import "./controllable-select.feat.mjs";
@@ -1,3 +1,3 @@
1
- let require_control_flow = require("../dom-B5PaPvwd.js"), elementGetter = (branch) => () => branch.S;
1
+ let require_control_flow = require("../dom-BfloYt04.js"), elementGetter = (branch) => () => branch.S;
2
2
  require_control_flow.m((branch) => branch.T(elementGetter(branch))), require_control_flow.gt("e", elementGetter);
3
3
  //#endregion
@@ -1,4 +1,4 @@
1
1
  let elementGetter = (branch) => () => branch.S;
2
- import { gt as _resume, m as installDynamicTagVar } from "../dom-BlOP3cfL.mjs";
2
+ import { gt as _resume, m as installDynamicTagVar } from "../dom-BVNolGe1.mjs";
3
3
  installDynamicTagVar((branch) => branch.T(elementGetter(branch))), _resume("e", elementGetter);
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- let require_control_flow = require("../dom-B5PaPvwd.js");
1
+ let require_control_flow = require("../dom-BfloYt04.js");
2
2
  //#region src/dom/placeholder.feat.ts
3
3
  require_control_flow.St.f = (tryBranch) => {
4
4
  tryBranch.P &&= (require_control_flow.Wt(tryBranch.P), 0);
@@ -1,4 +1,4 @@
1
- import { St as registeredValues, Wt as destroyBranch } from "../dom-BlOP3cfL.mjs";
1
+ import { St as registeredValues, Wt as destroyBranch } from "../dom-BVNolGe1.mjs";
2
2
  //#region src/dom/placeholder.feat.ts
3
3
  registeredValues.f = (tryBranch) => {
4
4
  tryBranch.P &&= (destroyBranch(tryBranch.P), 0);
@@ -163,6 +163,7 @@ function normalizeDynamicRenderer(value) {
163
163
  function withBranches(runtime) {
164
164
  return branchesEnabled = 1, runtime;
165
165
  }
166
+ function _hoist_read_error() {}
166
167
  function _assert_hoist(value) {}
167
168
  //#endregion
168
169
  //#region src/common/for.ts
@@ -1149,4 +1150,4 @@ function byFirstArg(name) {
1149
1150
  return name;
1150
1151
  }
1151
1152
  //#endregion
1152
- export { _attrs_script as $, placeholderShown as $t, _attr_input_value_script as A, _for_selector as At, _attr as B, _script as Bt, _attr_input_checkedValue_script as C, withLazy as Ct, _attr_input_value_attribute_default as D, _const as Dt, _attr_input_value as E, _closure_get as Et, _controllable_open as F, _let as Ft, _attr_nonce as G, insertBranchBefore as Gt, _attr_class_item as H, _var_change as Ht, _controllable_select as I, _let_change as It, _attr_style_items as J, _on as Jt, _attr_style as K, removeAndDestroyBranch as Kt, _controllable_textarea as L, _or as Lt, _attr_select_value_default as M, _hoist_resume as Mt, _attr_select_value_script as N, _id as Nt, _attr_input_value_default as O, _el_read as Ot, _controllable_input as P, _if_closure as Pt, _attrs_partial_content as Q, installCatch as Qt, controllableRenders as R, _return as Rt, _attr_input_checkedValue_default as S, registeredValues as St, _attr_input_checked_script as T, _closure as Tt, _attr_class_items as U, _assert_init as Ut, _attr_class as V, _var as Vt, _attr_content as W, destroyBranch as Wt, _attrs_content as X, $signalReset as Xt, _attrs as Y, $signal as Yt, _attrs_partial as Z, caughtError as Zt, _attr_details_or_dialog_open as _, _var_resume as _t, _for_in as a, runId as an, _text_content as at, _attr_input_checked as b, initEmbedded as bt, _for_until as c, forTo as cn, toInsertNode as ct, _show as d, _call as dn, _content_resume as dt, prepareEffects as en, _html as et, _try as f, decodeAccessor as fn, createAndSetupBranch as ft, renderCatch as g, _resume as gt, patchDynamicTag as h, _el as ht, _dynamic_tag_content as i, runEffects as in, _text as it, _attr_select_value as j, _hoist as jt, _attr_input_value_dynamic_default as k, _for_closure as kt, _if as l, forUntil as ln, _content as lt, installDynamicTagVar as m, setupBranch as mt, _await_promise as n, queueEffect as nn, _style_rule_item as nt, _for_of as o, forIn as on, _to_text as ot, addAwaitCounter as p, createBranch as pt, _attr_style_item as q, syncGen as qt, _dynamic_tag as r, run as rn, _style_shell as rt, _for_to as s, forOf as sn, insertChildNodes as st, _await_content as t, queueAsyncRender as tn, _lifecycle as tt, _resume_dynamic_tag as u, _assert_hoist as un, _content_closures as ut, _attr_details_or_dialog_open_default as v, getRegisteredWithScope as vt, _attr_input_checked_default as w, _child_setup as wt, _attr_input_checkedValue as x, ready as xt, _attr_details_or_dialog_open_script as y, init as yt, controllableScripts as z, _return_change as zt };
1153
+ export { _attrs_script as $, placeholderShown as $t, _attr_input_value_script as A, _for_selector as At, _attr as B, _script as Bt, _attr_input_checkedValue_script as C, withLazy as Ct, _attr_input_value_attribute_default as D, _const as Dt, _attr_input_value as E, _closure_get as Et, _controllable_open as F, _let as Ft, _attr_nonce as G, insertBranchBefore as Gt, _attr_class_item as H, _var_change as Ht, _controllable_select as I, _let_change as It, _attr_style_items as J, _on as Jt, _attr_style as K, removeAndDestroyBranch as Kt, _controllable_textarea as L, _or as Lt, _attr_select_value_default as M, _hoist_resume as Mt, _attr_select_value_script as N, _id as Nt, _attr_input_value_default as O, _el_read as Ot, _controllable_input as P, _if_closure as Pt, _attrs_partial_content as Q, installCatch as Qt, controllableRenders as R, _return as Rt, _attr_input_checkedValue_default as S, registeredValues as St, _attr_input_checked_script as T, _closure as Tt, _attr_class_items as U, _assert_init as Ut, _attr_class as V, _var as Vt, _attr_content as W, destroyBranch as Wt, _attrs_content as X, $signalReset as Xt, _attrs as Y, $signal as Yt, _attrs_partial as Z, caughtError as Zt, _attr_details_or_dialog_open as _, _var_resume as _t, _for_in as a, runId as an, _text_content as at, _attr_input_checked as b, initEmbedded as bt, _for_until as c, forTo as cn, toInsertNode as ct, _show as d, _hoist_read_error as dn, _content_resume as dt, prepareEffects as en, _html as et, _try as f, _call as fn, createAndSetupBranch as ft, renderCatch as g, _resume as gt, patchDynamicTag as h, _el as ht, _dynamic_tag_content as i, runEffects as in, _text as it, _attr_select_value as j, _hoist as jt, _attr_input_value_dynamic_default as k, _for_closure as kt, _if as l, forUntil as ln, _content as lt, installDynamicTagVar as m, setupBranch as mt, _await_promise as n, queueEffect as nn, _style_rule_item as nt, _for_of as o, forIn as on, _to_text as ot, addAwaitCounter as p, decodeAccessor as pn, createBranch as pt, _attr_style_item as q, syncGen as qt, _dynamic_tag as r, run as rn, _style_shell as rt, _for_to as s, forOf as sn, insertChildNodes as st, _await_content as t, queueAsyncRender as tn, _lifecycle as tt, _resume_dynamic_tag as u, _assert_hoist as un, _content_closures as ut, _attr_details_or_dialog_open_default as v, getRegisteredWithScope as vt, _attr_input_checked_default as w, _child_setup as wt, _attr_input_checkedValue as x, ready as xt, _attr_details_or_dialog_open_script as y, init as yt, controllableScripts as z, _return_change as zt };
@@ -163,6 +163,7 @@ function normalizeDynamicRenderer(value) {
163
163
  function withBranches(runtime) {
164
164
  return branchesEnabled = 1, runtime;
165
165
  }
166
+ function _hoist_read_error() {}
166
167
  function _assert_hoist(value) {}
167
168
  //#endregion
168
169
  //#region src/common/for.ts
@@ -1476,7 +1477,7 @@ Object.defineProperty(exports, "$", {
1476
1477
  }), Object.defineProperty(exports, "dn", {
1477
1478
  enumerable: !0,
1478
1479
  get: function() {
1479
- return _call;
1480
+ return _hoist_read_error;
1480
1481
  }
1481
1482
  }), Object.defineProperty(exports, "dt", {
1482
1483
  enumerable: !0,
@@ -1501,7 +1502,7 @@ Object.defineProperty(exports, "$", {
1501
1502
  }), Object.defineProperty(exports, "fn", {
1502
1503
  enumerable: !0,
1503
1504
  get: function() {
1504
- return decodeAccessor;
1505
+ return _call;
1505
1506
  }
1506
1507
  }), Object.defineProperty(exports, "ft", {
1507
1508
  enumerable: !0,
@@ -1623,6 +1624,11 @@ Object.defineProperty(exports, "$", {
1623
1624
  get: function() {
1624
1625
  return addAwaitCounter;
1625
1626
  }
1627
+ }), Object.defineProperty(exports, "pn", {
1628
+ enumerable: !0,
1629
+ get: function() {
1630
+ return decodeAccessor;
1631
+ }
1626
1632
  }), Object.defineProperty(exports, "pt", {
1627
1633
  enumerable: !0,
1628
1634
  get: function() {
package/dist/dom.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { attrTag, attrTags } from "./common/attr-tag";
2
- export { _assert_hoist } from "./common/errors";
2
+ export { _assert_hoist, _hoist_read_error } from "./common/errors";
3
3
  export { forIn, forOf, forTo, forUntil } from "./common/for";
4
4
  export { _call } from "./common/helpers";
5
5
  export { $signal, $signalReset } from "./dom/abort-signal";
package/dist/dom.js CHANGED
@@ -1,4 +1,4 @@
1
- let require_control_flow = require("./dom-B5PaPvwd.js"), empty = [], rest = Symbol(), classIdToBranch = /* @__PURE__ */ new Map(), classEventResolver, scopesByRender = /* @__PURE__ */ new WeakMap(), getRenderScopes = ($global) => {
1
+ let require_control_flow = require("./dom-BfloYt04.js"), empty = [], rest = Symbol(), classIdToBranch = /* @__PURE__ */ new Map(), classEventResolver, scopesByRender = /* @__PURE__ */ new WeakMap(), getRenderScopes = ($global) => {
2
2
  require_control_flow.yt($global.runtimeId);
3
3
  let render = self[$global.runtimeId]?.[$global.renderId], scopes = render && scopesByRender.get(render);
4
4
  return render && !scopes && scopesByRender.set(render, scopes = {}), scopes;
@@ -16,6 +16,9 @@ let require_control_flow = require("./dom-B5PaPvwd.js"), empty = [], rest = Symb
16
16
  setClassEventResolver(fn) {
17
17
  classEventResolver = fn;
18
18
  },
19
+ resumeClassFunction(id, build) {
20
+ require_control_flow.gt(id, build);
21
+ },
19
22
  getScope($global, scopeId) {
20
23
  return getRenderScopes($global)?.[scopeId];
21
24
  },
@@ -73,7 +76,7 @@ let require_control_flow = require("./dom-B5PaPvwd.js"), empty = [], rest = Symb
73
76
  }, _load_signal(() => (pending ||= load()).then((r) => ({ _: r.d }))));
74
77
  return lazyTemplate;
75
78
  }), _load_setup = /*@__PURE__*/ require_control_flow.Ct((nodeAccessor, childScopeAccessor, load) => {
76
- nodeAccessor = require_control_flow.fn(nodeAccessor), childScopeAccessor = require_control_flow.fn(childScopeAccessor);
79
+ nodeAccessor = require_control_flow.pn(nodeAccessor), childScopeAccessor = require_control_flow.pn(childScopeAccessor);
77
80
  let pending, renderer;
78
81
  return (owner) => {
79
82
  let child = owner[childScopeAccessor];
@@ -193,9 +196,9 @@ function _load_race_trigger(...triggers) {
193
196
  function getSelectorOrResolve(selector, resolve) {
194
197
  return document.querySelector(selector) || resolve();
195
198
  }
196
- exports.$signal = require_control_flow.Yt, exports.$signalReset = require_control_flow.Xt, exports._assert_hoist = require_control_flow.un, exports._assert_init = require_control_flow.Ut, exports._attr = require_control_flow.B, exports._attr_class = require_control_flow.V, exports._attr_class_item = require_control_flow.H, exports._attr_class_items = require_control_flow.U, exports._attr_content = require_control_flow.W, exports._attr_details_open = require_control_flow._, exports._attr_dialog_open = require_control_flow._, exports._attr_details_open_default = require_control_flow.v, exports._attr_dialog_open_default = require_control_flow.v, exports._attr_details_open_script = require_control_flow.y, exports._attr_dialog_open_script = require_control_flow.y, exports._attr_input_checked = require_control_flow.b, exports._attr_input_checkedValue = require_control_flow.x, exports._attr_input_checkedValue_default = require_control_flow.S, exports._attr_input_checkedValue_script = require_control_flow.C, exports._attr_input_checked_default = require_control_flow.w, exports._attr_input_checked_script = require_control_flow.T, exports._attr_input_value = require_control_flow.E, exports._attr_textarea_value = require_control_flow.E, exports._attr_input_value_attribute_default = require_control_flow.D, exports._attr_input_value_default = require_control_flow.O, exports._attr_textarea_value_default = require_control_flow.O, exports._attr_input_value_dynamic_default = require_control_flow.k, exports._attr_input_value_script = require_control_flow.A, exports._attr_textarea_value_script = require_control_flow.A, exports._attr_nonce = require_control_flow.G, exports._attr_select_value = require_control_flow.j, exports._attr_select_value_default = require_control_flow.M, exports._attr_select_value_script = require_control_flow.N, exports._attr_style = require_control_flow.K, exports._attr_style_item = require_control_flow.q, exports._attr_style_items = require_control_flow.J, exports._attrs = require_control_flow.Y, exports._attrs_content = require_control_flow.X, exports._attrs_partial = require_control_flow.Z, exports._attrs_partial_content = require_control_flow.Q, exports._attrs_script = require_control_flow.$, exports._await_content = require_control_flow.t, exports._await_promise = require_control_flow.n, exports._call = require_control_flow.dn, exports._child_setup = require_control_flow.wt, exports._closure = require_control_flow.Tt, exports._closure_get = require_control_flow.Et, exports._const = require_control_flow.Dt, exports._content = require_control_flow.lt, exports._content_closures = require_control_flow.ut, exports._content_resume = require_control_flow.dt, exports._controllable_input = require_control_flow.P, exports._controllable_open = require_control_flow.F, exports._controllable_select = require_control_flow.I, exports._controllable_textarea = require_control_flow.L, Object.defineProperty(exports, "_dynamic_tag", {
199
+ exports.$signal = require_control_flow.Yt, exports.$signalReset = require_control_flow.Xt, exports._assert_hoist = require_control_flow.un, exports._assert_init = require_control_flow.Ut, exports._attr = require_control_flow.B, exports._attr_class = require_control_flow.V, exports._attr_class_item = require_control_flow.H, exports._attr_class_items = require_control_flow.U, exports._attr_content = require_control_flow.W, exports._attr_details_open = require_control_flow._, exports._attr_dialog_open = require_control_flow._, exports._attr_details_open_default = require_control_flow.v, exports._attr_dialog_open_default = require_control_flow.v, exports._attr_details_open_script = require_control_flow.y, exports._attr_dialog_open_script = require_control_flow.y, exports._attr_input_checked = require_control_flow.b, exports._attr_input_checkedValue = require_control_flow.x, exports._attr_input_checkedValue_default = require_control_flow.S, exports._attr_input_checkedValue_script = require_control_flow.C, exports._attr_input_checked_default = require_control_flow.w, exports._attr_input_checked_script = require_control_flow.T, exports._attr_input_value = require_control_flow.E, exports._attr_textarea_value = require_control_flow.E, exports._attr_input_value_attribute_default = require_control_flow.D, exports._attr_input_value_default = require_control_flow.O, exports._attr_textarea_value_default = require_control_flow.O, exports._attr_input_value_dynamic_default = require_control_flow.k, exports._attr_input_value_script = require_control_flow.A, exports._attr_textarea_value_script = require_control_flow.A, exports._attr_nonce = require_control_flow.G, exports._attr_select_value = require_control_flow.j, exports._attr_select_value_default = require_control_flow.M, exports._attr_select_value_script = require_control_flow.N, exports._attr_style = require_control_flow.K, exports._attr_style_item = require_control_flow.q, exports._attr_style_items = require_control_flow.J, exports._attrs = require_control_flow.Y, exports._attrs_content = require_control_flow.X, exports._attrs_partial = require_control_flow.Z, exports._attrs_partial_content = require_control_flow.Q, exports._attrs_script = require_control_flow.$, exports._await_content = require_control_flow.t, exports._await_promise = require_control_flow.n, exports._call = require_control_flow.fn, exports._child_setup = require_control_flow.wt, exports._closure = require_control_flow.Tt, exports._closure_get = require_control_flow.Et, exports._const = require_control_flow.Dt, exports._content = require_control_flow.lt, exports._content_closures = require_control_flow.ut, exports._content_resume = require_control_flow.dt, exports._controllable_input = require_control_flow.P, exports._controllable_open = require_control_flow.F, exports._controllable_select = require_control_flow.I, exports._controllable_textarea = require_control_flow.L, Object.defineProperty(exports, "_dynamic_tag", {
197
200
  enumerable: !0,
198
201
  get: function() {
199
202
  return require_control_flow.r;
200
203
  }
201
- }), exports._dynamic_tag_content = require_control_flow.i, exports._el = require_control_flow.ht, exports._el_read = require_control_flow.Ot, exports._for_closure = require_control_flow.kt, exports._for_in = require_control_flow.a, exports._for_of = require_control_flow.o, exports._for_selector = require_control_flow.At, exports._for_to = require_control_flow.s, exports._for_until = require_control_flow.c, exports._hoist = require_control_flow.jt, exports._hoist_resume = require_control_flow.Mt, exports._html = require_control_flow.et, exports._id = require_control_flow.Nt, exports._if = require_control_flow.l, exports._if_closure = require_control_flow.Pt, exports._let = require_control_flow.Ft, exports._let_change = require_control_flow.It, exports._lifecycle = require_control_flow.tt, exports._load_event_trigger = _load_event_trigger, exports._load_idle_trigger = _load_idle_trigger, exports._load_media_trigger = _load_media_trigger, exports._load_race_trigger = _load_race_trigger, exports._load_setup = _load_setup, exports._load_signal = _load_signal, exports._load_template = _load_template, exports._load_visible_trigger = _load_visible_trigger, exports._on = require_control_flow.Jt, exports._or = require_control_flow.Lt, exports._resume = require_control_flow.gt, exports._resume_dynamic_tag = require_control_flow.u, exports._return = require_control_flow.Rt, exports._return_change = require_control_flow.zt, exports._script = require_control_flow.Bt, exports._show = require_control_flow.d, exports._style_rule_item = require_control_flow.nt, exports._style_shell = require_control_flow.rt, exports._template = _template, exports._text = require_control_flow.it, exports._text_content = require_control_flow.at, exports._to_text = require_control_flow.ot, exports._try = require_control_flow.f, exports._var = require_control_flow.Vt, exports._var_change = require_control_flow.Ht, exports._var_resume = require_control_flow._t, exports.attrTag = attrTag, exports.attrTags = attrTags, exports.compat = compat, exports.forIn = require_control_flow.on, exports.forOf = require_control_flow.sn, exports.forTo = require_control_flow.cn, exports.forUntil = require_control_flow.ln, exports.init = require_control_flow.yt, exports.initEmbedded = require_control_flow.bt, exports.ready = require_control_flow.xt, exports.run = require_control_flow.rn;
204
+ }), exports._dynamic_tag_content = require_control_flow.i, exports._el = require_control_flow.ht, exports._el_read = require_control_flow.Ot, exports._for_closure = require_control_flow.kt, exports._for_in = require_control_flow.a, exports._for_of = require_control_flow.o, exports._for_selector = require_control_flow.At, exports._for_to = require_control_flow.s, exports._for_until = require_control_flow.c, exports._hoist = require_control_flow.jt, exports._hoist_read_error = require_control_flow.dn, exports._hoist_resume = require_control_flow.Mt, exports._html = require_control_flow.et, exports._id = require_control_flow.Nt, exports._if = require_control_flow.l, exports._if_closure = require_control_flow.Pt, exports._let = require_control_flow.Ft, exports._let_change = require_control_flow.It, exports._lifecycle = require_control_flow.tt, exports._load_event_trigger = _load_event_trigger, exports._load_idle_trigger = _load_idle_trigger, exports._load_media_trigger = _load_media_trigger, exports._load_race_trigger = _load_race_trigger, exports._load_setup = _load_setup, exports._load_signal = _load_signal, exports._load_template = _load_template, exports._load_visible_trigger = _load_visible_trigger, exports._on = require_control_flow.Jt, exports._or = require_control_flow.Lt, exports._resume = require_control_flow.gt, exports._resume_dynamic_tag = require_control_flow.u, exports._return = require_control_flow.Rt, exports._return_change = require_control_flow.zt, exports._script = require_control_flow.Bt, exports._show = require_control_flow.d, exports._style_rule_item = require_control_flow.nt, exports._style_shell = require_control_flow.rt, exports._template = _template, exports._text = require_control_flow.it, exports._text_content = require_control_flow.at, exports._to_text = require_control_flow.ot, exports._try = require_control_flow.f, exports._var = require_control_flow.Vt, exports._var_change = require_control_flow.Ht, exports._var_resume = require_control_flow._t, exports.attrTag = attrTag, exports.attrTags = attrTags, exports.compat = compat, exports.forIn = require_control_flow.on, exports.forOf = require_control_flow.sn, exports.forTo = require_control_flow.cn, exports.forUntil = require_control_flow.ln, exports.init = require_control_flow.yt, exports.initEmbedded = require_control_flow.bt, exports.ready = require_control_flow.xt, exports.run = require_control_flow.rn;
package/dist/dom.mjs CHANGED
@@ -16,6 +16,9 @@ let empty = [], rest = Symbol(), classIdToBranch = /* @__PURE__ */ new Map(), cl
16
16
  setClassEventResolver(fn) {
17
17
  classEventResolver = fn;
18
18
  },
19
+ resumeClassFunction(id, build) {
20
+ _resume(id, build);
21
+ },
19
22
  getScope($global, scopeId) {
20
23
  return getRenderScopes($global)?.[scopeId];
21
24
  },
@@ -91,7 +94,7 @@ let empty = [], rest = Symbol(), classIdToBranch = /* @__PURE__ */ new Map(), cl
91
94
  pending ||= load(), scope.X || !("X" in scope) && scope.H === runId ? (scope.X ||= /* @__PURE__ */ new Map()).set(pending, { a: value }) : signal ? signal(scope, value) : pending.then((mod) => queueAsyncRender(scope, signal = mod._, value), () => 0);
92
95
  };
93
96
  });
94
- import { $ as _attrs_script, A as _attr_input_value_script, At as _for_selector, B as _attr, Bt as _script, C as _attr_input_checkedValue_script, Ct as withLazy, D as _attr_input_value_attribute_default, Dt as _const, E as _attr_input_value, Et as _closure_get, F as _controllable_open, Ft as _let, G as _attr_nonce, Gt as insertBranchBefore, H as _attr_class_item, Ht as _var_change, I as _controllable_select, It as _let_change, J as _attr_style_items, Jt as _on, K as _attr_style, Kt as removeAndDestroyBranch, L as _controllable_textarea, Lt as _or, M as _attr_select_value_default, Mt as _hoist_resume, N as _attr_select_value_script, Nt as _id, O as _attr_input_value_default, Ot as _el_read, P as _controllable_input, Pt as _if_closure, Q as _attrs_partial_content, Rt as _return, S as _attr_input_checkedValue_default, T as _attr_input_checked_script, Tt as _closure, U as _attr_class_items, Ut as _assert_init, V as _attr_class, Vt as _var, W as _attr_content, Wt as destroyBranch, X as _attrs_content, Xt as $signalReset, Y as _attrs, Yt as $signal, Z as _attrs_partial, _ as _attr_details_or_dialog_open, _t as _var_resume, a as _for_in, an as runId, at as _text_content, b as _attr_input_checked, bt as initEmbedded, c as _for_until, cn as forTo, ct as toInsertNode, d as _show, dn as _call, dt as _content_resume, en as prepareEffects, et as _html, f as _try, fn as decodeAccessor, ft as createAndSetupBranch, g as renderCatch, gt as _resume, h as patchDynamicTag, ht as _el, i as _dynamic_tag_content, in as runEffects, it as _text, j as _attr_select_value, jt as _hoist, k as _attr_input_value_dynamic_default, kt as _for_closure, l as _if, ln as forUntil, lt as _content, mt as setupBranch, n as _await_promise, nn as queueEffect, nt as _style_rule_item, o as _for_of, on as forIn, ot as _to_text, p as addAwaitCounter, pt as createBranch, q as _attr_style_item, qt as syncGen, r as _dynamic_tag, rn as run, rt as _style_shell, s as _for_to, sn as forOf, st as insertChildNodes, t as _await_content, tn as queueAsyncRender, tt as _lifecycle, u as _resume_dynamic_tag, un as _assert_hoist, ut as _content_closures, v as _attr_details_or_dialog_open_default, vt as getRegisteredWithScope, w as _attr_input_checked_default, wt as _child_setup, x as _attr_input_checkedValue, xt as ready, y as _attr_details_or_dialog_open_script, yt as init, zt as _return_change } from "./dom-BlOP3cfL.mjs";
97
+ import { $ as _attrs_script, A as _attr_input_value_script, At as _for_selector, B as _attr, Bt as _script, C as _attr_input_checkedValue_script, Ct as withLazy, D as _attr_input_value_attribute_default, Dt as _const, E as _attr_input_value, Et as _closure_get, F as _controllable_open, Ft as _let, G as _attr_nonce, Gt as insertBranchBefore, H as _attr_class_item, Ht as _var_change, I as _controllable_select, It as _let_change, J as _attr_style_items, Jt as _on, K as _attr_style, Kt as removeAndDestroyBranch, L as _controllable_textarea, Lt as _or, M as _attr_select_value_default, Mt as _hoist_resume, N as _attr_select_value_script, Nt as _id, O as _attr_input_value_default, Ot as _el_read, P as _controllable_input, Pt as _if_closure, Q as _attrs_partial_content, Rt as _return, S as _attr_input_checkedValue_default, T as _attr_input_checked_script, Tt as _closure, U as _attr_class_items, Ut as _assert_init, V as _attr_class, Vt as _var, W as _attr_content, Wt as destroyBranch, X as _attrs_content, Xt as $signalReset, Y as _attrs, Yt as $signal, Z as _attrs_partial, _ as _attr_details_or_dialog_open, _t as _var_resume, a as _for_in, an as runId, at as _text_content, b as _attr_input_checked, bt as initEmbedded, c as _for_until, cn as forTo, ct as toInsertNode, d as _show, dn as _hoist_read_error, dt as _content_resume, en as prepareEffects, et as _html, f as _try, fn as _call, ft as createAndSetupBranch, g as renderCatch, gt as _resume, h as patchDynamicTag, ht as _el, i as _dynamic_tag_content, in as runEffects, it as _text, j as _attr_select_value, jt as _hoist, k as _attr_input_value_dynamic_default, kt as _for_closure, l as _if, ln as forUntil, lt as _content, mt as setupBranch, n as _await_promise, nn as queueEffect, nt as _style_rule_item, o as _for_of, on as forIn, ot as _to_text, p as addAwaitCounter, pn as decodeAccessor, pt as createBranch, q as _attr_style_item, qt as syncGen, r as _dynamic_tag, rn as run, rt as _style_shell, s as _for_to, sn as forOf, st as insertChildNodes, t as _await_content, tn as queueAsyncRender, tt as _lifecycle, u as _resume_dynamic_tag, un as _assert_hoist, ut as _content_closures, v as _attr_details_or_dialog_open_default, vt as getRegisteredWithScope, w as _attr_input_checked_default, wt as _child_setup, x as _attr_input_checkedValue, xt as ready, y as _attr_details_or_dialog_open_script, yt as init, zt as _return_change } from "./dom-BVNolGe1.mjs";
95
98
  //#region src/common/attr-tag.ts
96
99
  function attrTag(attrs) {
97
100
  return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
@@ -194,4 +197,4 @@ function getSelectorOrResolve(selector, resolve) {
194
197
  return document.querySelector(selector) || resolve();
195
198
  }
196
199
  //#endregion
197
- export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_selector, _for_to, _for_until, _hoist, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resume, _resume_dynamic_tag, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, run };
200
+ export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_selector, _for_to, _for_until, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resume, _resume_dynamic_tag, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, run };
@@ -23,4 +23,6 @@ export declare const compat: {
23
23
  register: typeof register;
24
24
  registerRenderBody(fn: any): void;
25
25
  registerClassFunctions(input: any): void;
26
+ registerClassFunction<T extends WeakKey>($global: object, id: string, fn: T, hostId: string): T;
27
+ hasPendingClassFunctions($global: object): boolean;
26
28
  };
package/dist/html.js CHANGED
@@ -347,7 +347,13 @@ let empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeSty
347
347
  for (let key in input) normalizedInput[key === "renderBody" ? "content" : key] = input[key];
348
348
  }
349
349
  head.render(() => {
350
- if (willRerender || registerChildScope) {
350
+ if (this.hasPendingClassFunctions(classAPIOut.global) && drainClassFunctions(classAPIOut.global, (hostId) => {
351
+ let fnScopeId = _scope_id(), scope = writeScope(fnScopeId, {
352
+ m5c: component.id,
353
+ m5h: hostId
354
+ });
355
+ return _script(fnScopeId, SET_SCOPE_REGISTER_ID), scope;
356
+ }), willRerender || registerChildScope) {
351
357
  let scopeId = _peek_scope_id();
352
358
  writeScope(scopeId, { m5c: component.id }), _script(scopeId, SET_SCOPE_REGISTER_ID);
353
359
  }
@@ -377,8 +383,19 @@ let empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeSty
377
383
  let value = input[key];
378
384
  typeof value == "function" && !getRegistered(value) && register(RENDER_BODY_ID, value);
379
385
  }
386
+ },
387
+ registerClassFunction($global, id, fn, hostId) {
388
+ let pending = pendingClassFunctions.get($global);
389
+ return pending || pendingClassFunctions.set($global, pending = []), pending.push([
390
+ id,
391
+ fn,
392
+ hostId
393
+ ]), fn;
394
+ },
395
+ hasPendingClassFunctions($global) {
396
+ return !!pendingClassFunctions.get($global)?.length;
380
397
  }
381
- };
398
+ }, pendingClassFunctions = /* @__PURE__ */ new WeakMap();
382
399
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
383
400
  //#region src/common/attr-tag.ts
384
401
  function attrTag(attrs) {
@@ -2232,6 +2249,11 @@ function toObjectExpression(options) {
2232
2249
  //#region src/common/compat-meta.ts
2233
2250
  //#endregion
2234
2251
  //#region src/html/compat.ts
2252
+ function drainClassFunctions($global, writeScope) {
2253
+ let pending = pendingClassFunctions.get($global), scopeByHost = {};
2254
+ for (let [id, fn, hostId] of pending) register(id, fn, scopeByHost[hostId] ||= writeScope(hostId));
2255
+ pending.length = 0;
2256
+ }
2235
2257
  function NOOP() {}
2236
2258
  exports.$global = $global, exports._assert_hoist = _assert_hoist, exports._attr = _attr, exports._attr_and = _attr_and, exports._attr_class = _attr_class, exports._attr_content = _attr_content, exports._attr_details_open = _attr_details_or_dialog_open, exports._attr_dialog_open = _attr_details_or_dialog_open, exports._attr_input_checked = _attr_input_checked, exports._attr_input_checkedValue = _attr_input_checkedValue, exports._attr_input_value = _attr_input_value, exports._attr_nonce = _attr_nonce, exports._attr_nullish = _attr_nullish, exports._attr_option_value = _attr_option_value, exports._attr_or = _attr_or, exports._attr_select_value = _attr_select_value, exports._attr_style = _attr_style, exports._attr_textarea_value = _attr_textarea_value, exports._attrs = _attrs, exports._attrs_content = _attrs_content, exports._attrs_partial = _attrs_partial, exports._attrs_partial_content = _attrs_partial_content, exports._await = _await, exports._content = _content, exports._content_resume = _content_resume, Object.defineProperty(exports, "_dynamic_tag", {
2237
2259
  enumerable: !0,
package/dist/html.mjs CHANGED
@@ -347,7 +347,13 @@ let empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeSty
347
347
  for (let key in input) normalizedInput[key === "renderBody" ? "content" : key] = input[key];
348
348
  }
349
349
  head.render(() => {
350
- if (willRerender || registerChildScope) {
350
+ if (this.hasPendingClassFunctions(classAPIOut.global) && drainClassFunctions(classAPIOut.global, (hostId) => {
351
+ let fnScopeId = _scope_id(), scope = writeScope(fnScopeId, {
352
+ m5c: component.id,
353
+ m5h: hostId
354
+ });
355
+ return _script(fnScopeId, SET_SCOPE_REGISTER_ID), scope;
356
+ }), willRerender || registerChildScope) {
351
357
  let scopeId = _peek_scope_id();
352
358
  writeScope(scopeId, { m5c: component.id }), _script(scopeId, SET_SCOPE_REGISTER_ID);
353
359
  }
@@ -377,8 +383,19 @@ let empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeSty
377
383
  let value = input[key];
378
384
  typeof value == "function" && !getRegistered(value) && register(RENDER_BODY_ID, value);
379
385
  }
386
+ },
387
+ registerClassFunction($global, id, fn, hostId) {
388
+ let pending = pendingClassFunctions.get($global);
389
+ return pending || pendingClassFunctions.set($global, pending = []), pending.push([
390
+ id,
391
+ fn,
392
+ hostId
393
+ ]), fn;
394
+ },
395
+ hasPendingClassFunctions($global) {
396
+ return !!pendingClassFunctions.get($global)?.length;
380
397
  }
381
- };
398
+ }, pendingClassFunctions = /* @__PURE__ */ new WeakMap();
382
399
  //#region src/common/attr-tag.ts
383
400
  function attrTag(attrs) {
384
401
  return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
@@ -2231,6 +2248,11 @@ function toObjectExpression(options) {
2231
2248
  //#region src/common/compat-meta.ts
2232
2249
  //#endregion
2233
2250
  //#region src/html/compat.ts
2251
+ function drainClassFunctions($global, writeScope) {
2252
+ let pending = pendingClassFunctions.get($global), scopeByHost = {};
2253
+ for (let [id, fn, hostId] of pending) register(id, fn, scopeByHost[hostId] ||= writeScope(hostId));
2254
+ pending.length = 0;
2255
+ }
2234
2256
  function NOOP() {}
2235
2257
  //#endregion
2236
2258
  export { $global, _assert_hoist, _attr, _attr_and, _attr_class, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_input_checked, _attr_input_checkedValue, _attr_input_value, _attr_nonce, _attr_nullish, _attr_option_value, _attr_or, _attr_select_value, _attr_style, _attr_textarea_value, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _await, _content, _content_resume, _dynamic_tag, _el, _el_read_error, _el_resume, _escape, _escape_comment, _escape_script, _escape_style, _escape_style_value, _existing_scope, _flush_head, _for_in, _for_of, _for_to, _for_until, _hoist, _hoist_read_error, _html, _id, _if, _peek_scope_id, _resume, _resume_branch, _resume_locals, writeScope as _scope, _scope_id, _scope_reason, _scope_with_id, _script, _sep, _serialize_guard, _serialize_if, _set_serialize_reason, _show_end, _show_start, _style_html, _subscribe, _template, _textarea_value, _to_text, _trailers, _try, _unescaped, _var, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, withLoadAssets, withPageAssets };
@@ -8000,13 +8000,13 @@ function getReadReplacement(node, signal) {
8000
8000
  const inlined = getSignals(extra.section).get(readBinding)?.inline?.value;
8001
8001
  if (inlined) replacement = _marko_compiler.types.cloneNode(inlined, true);
8002
8002
  else if (signal?.referencedBindings === readBinding && !signal.hasSideEffect) replacement = getSignalValueIdentifier(signal);
8003
- else if (read.getter?.hoisted) replacement = _marko_compiler.types.callExpression(getBindingGetterIdentifier(readBinding, read.getter.hoisted), [getScopeExpression(extra.section, read.getter.hoisted)]);
8003
+ else if (read.getter?.hoisted) replacement = readBinding.upstreamAlias ? callRuntime("_hoist_read_error") : _marko_compiler.types.callExpression(getBindingGetterIdentifier(readBinding, read.getter.hoisted), [getScopeExpression(extra.section, read.getter.hoisted)]);
8004
8004
  else if (readBinding.type === 0) {
8005
8005
  if (read.getter) replacement = _marko_compiler.types.callExpression(getBindingGetterIdentifier(readBinding, readBinding.section), [getScopeExpression(extra.section, readBinding.section)]);
8006
8006
  } else if (!isOptimize() && read.ownVar) replacement = callRuntime("_assert_init", extra.section ? getScopeExpression(extra.section, readBinding.section) : scopeIdentifier, getScopeAccessorLiteral(readBinding));
8007
8007
  else replacement = createScopeReadExpression(readBinding, extra.section);
8008
8008
  } else if (node.type !== "Identifier") replacement = _marko_compiler.types.identifier(readBinding.name);
8009
- else if (read.getter?.hoisted) replacement = getBindingGetterIdentifier(readBinding, read.getter.hoisted);
8009
+ else if (read.getter?.hoisted) replacement = readBinding.upstreamAlias ? callRuntime("_hoist_read_error") : getBindingGetterIdentifier(readBinding, read.getter.hoisted);
8010
8010
  else if (readBinding.type === 0) {
8011
8011
  if (readBinding.getters.has(readBinding.section)) replacement = getBindingGetterIdentifier(readBinding, readBinding.section);
8012
8012
  } else if (readBinding.name !== node.name) node.name = readBinding.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.3.40",
3
+ "version": "6.3.42",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
@@ -32,6 +32,9 @@
32
32
  ".": {
33
33
  "types": "./index.d.ts"
34
34
  },
35
+ "./tags-html": {
36
+ "types": "./tags-html.d.ts"
37
+ },
35
38
  "./cheatsheet.md": "./cheatsheet.md",
36
39
  "./package.json": "./package.json",
37
40
  "./translator": "./dist/translator/index.js",
@@ -54,8 +57,8 @@
54
57
  "magic-string": "^0.30.21"
55
58
  },
56
59
  "devDependencies": {
57
- "@marko/runtime-tags": "npm:marko@6.3.40",
58
- "marko": "5.39.34"
60
+ "@marko/runtime-tags": "npm:marko@6.3.42",
61
+ "marko": "5.39.35"
59
62
  },
60
63
  "engines": {
61
64
  "node": ">=22"
@@ -64,6 +67,9 @@
64
67
  ".": {
65
68
  "types": "./index.d.ts"
66
69
  },
70
+ "./tags-html": {
71
+ "types": "./tags-html.d.ts"
72
+ },
67
73
  "./cheatsheet.md": "./cheatsheet.md",
68
74
  "./package.json": "./package.json",
69
75
  "./translator": "./src/translator/index.ts",