marko 6.4.4 → 6.4.6
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.
- package/dist/common/errors.d.ts +2 -1
- package/dist/common/helpers.d.ts +7 -7
- package/dist/debug/dom/catch.feat.js +3 -3
- package/dist/debug/dom/catch.feat.mjs +3 -3
- package/dist/debug/dom/controllable-input.feat.js +1 -1
- package/dist/debug/dom/controllable-input.feat.mjs +1 -1
- package/dist/debug/dom/controllable-open.feat.js +1 -1
- package/dist/debug/dom/controllable-open.feat.mjs +1 -1
- package/dist/debug/dom/controllable-select.feat.js +1 -1
- package/dist/debug/dom/controllable-select.feat.mjs +1 -1
- package/dist/debug/dom/controllable-textarea.feat.js +1 -1
- package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/debug/dom/controllable.feat.js +5 -5
- package/dist/debug/dom/controllable.feat.mjs +5 -5
- package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/debug/dom/lazy.feat.js +1 -1
- package/dist/debug/dom/lazy.feat.mjs +1 -1
- package/dist/debug/dom/placeholder.feat.js +1 -1
- package/dist/debug/dom/placeholder.feat.mjs +1 -1
- package/dist/debug/{dom-CUxvM4i9.js → dom-CNgQ6lj9.js} +52 -52
- package/dist/debug/{dom-BeY1nGUb.mjs → dom-o9jQjchF.mjs} +43 -43
- package/dist/debug/dom.js +4 -4
- package/dist/debug/dom.mjs +4 -4
- package/dist/debug/html.js +721 -654
- package/dist/debug/html.mjs +721 -654
- package/dist/dom/catch.feat.js +4 -4
- package/dist/dom/catch.feat.mjs +3 -3
- package/dist/dom/control-flow.d.ts +2 -2
- package/dist/dom/controllable-input.feat.js +2 -2
- package/dist/dom/controllable-input.feat.mjs +1 -1
- package/dist/dom/controllable-open.feat.js +2 -2
- package/dist/dom/controllable-open.feat.mjs +1 -1
- package/dist/dom/controllable-select.feat.js +2 -2
- package/dist/dom/controllable-select.feat.mjs +1 -1
- package/dist/dom/controllable-textarea.feat.js +2 -2
- package/dist/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/dom/controllable.d.ts +4 -4
- package/dist/dom/controllable.feat.js +2 -2
- package/dist/dom/controllable.feat.mjs +2 -2
- package/dist/dom/dom.d.ts +5 -5
- package/dist/dom/dynamic-tag-script.feat.js +2 -2
- package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.js +2 -2
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/dom/lazy.feat.js +1 -1
- package/dist/dom/lazy.feat.mjs +1 -1
- package/dist/dom/placeholder.feat.js +1 -1
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/dom/signals.d.ts +4 -1
- package/dist/{dom-Diu8MpmL.js → dom-60R4bRWD.js} +40 -40
- package/dist/{dom-DefWmvQB.mjs → dom-Ci2W4l1P.mjs} +33 -33
- package/dist/dom.js +6 -6
- package/dist/dom.mjs +4 -4
- package/dist/html/assets.d.ts +1 -1
- package/dist/html/compat.d.ts +2 -1
- package/dist/html/control-flow.d.ts +20 -0
- package/dist/html/serializer.d.ts +63 -16
- package/dist/html/writer.d.ts +47 -35
- package/dist/html.d.ts +2 -1
- package/dist/html.js +517 -466
- package/dist/html.mjs +517 -466
- package/dist/translator/core/for.d.ts +0 -4
- package/dist/translator/core/return.d.ts +0 -3
- package/dist/translator/core/style.d.ts +2 -2
- package/dist/translator/index.js +8104 -8108
- package/dist/translator/util/analyze-errors.d.ts +2 -1
- package/dist/translator/util/assert.d.ts +8 -1
- package/dist/translator/util/bindings.d.ts +13 -9
- package/dist/translator/util/body-to-text.d.ts +9 -0
- package/dist/translator/util/branch-tag.d.ts +10 -3
- package/dist/translator/util/build-string-expression.d.ts +4 -0
- package/dist/translator/util/content-derives.d.ts +7 -0
- package/dist/translator/util/entry-builder.d.ts +16 -5
- package/dist/translator/util/finalize-references.d.ts +3 -2
- package/dist/translator/util/generate-uid.d.ts +3 -2
- package/dist/translator/util/get-root.d.ts +3 -3
- package/dist/translator/util/get-tag-name.d.ts +1 -1
- package/dist/translator/util/known-tag.d.ts +10 -8
- package/dist/translator/util/module-read.d.ts +0 -3
- package/dist/translator/util/module-registrations.d.ts +44 -0
- package/dist/translator/util/nested-attribute-tags.d.ts +1 -1
- package/dist/translator/util/optional.d.ts +6 -1
- package/dist/translator/util/params-tree.d.ts +18 -0
- package/dist/translator/util/reasons.d.ts +10 -8
- package/dist/translator/util/references.d.ts +23 -28
- package/dist/translator/util/runtime.d.ts +0 -12
- package/dist/translator/util/scope-accessor.d.ts +0 -1
- package/dist/translator/util/scope-read.d.ts +3 -0
- package/dist/translator/util/section-renderer.d.ts +4 -0
- package/dist/translator/util/sections.d.ts +16 -16
- package/dist/translator/util/setup-work.d.ts +2 -1
- package/dist/translator/util/signals.d.ts +22 -11
- package/dist/translator/util/simplify-fn.d.ts +1 -0
- package/dist/translator/util/slots.d.ts +2 -2
- package/dist/translator/util/solve-reasons.d.ts +1 -3
- package/dist/translator/util/sources.d.ts +2 -1
- package/dist/translator/util/statement-tag.d.ts +2 -0
- package/dist/translator/util/static-text.d.ts +2 -1
- package/dist/translator/util/structure.d.ts +0 -10
- package/dist/translator/util/tag-facts.d.ts +8 -1
- package/dist/translator/util/tag-import.d.ts +20 -0
- package/dist/translator/util/tag-name-type.d.ts +9 -2
- package/dist/translator/util/to-only-or-block.d.ts +3 -0
- package/dist/translator/util/to-property-name.d.ts +2 -0
- package/dist/translator/util/translate-attrs.d.ts +7 -5
- package/dist/translator/util/translate-var.d.ts +2 -0
- package/dist/translator/util/traverse.d.ts +1 -2
- package/dist/translator/util/visitors.d.ts +4 -1
- package/dist/translator/util/with-previous-location.d.ts +1 -1
- package/dist/translator/util/write-guard.d.ts +6 -2
- package/dist/translator/util/writer.d.ts +1 -2
- package/dist/translator/visitors/export-declaration.d.ts +2 -3
- package/dist/translator/visitors/function.d.ts +0 -35
- package/dist/translator/visitors/import-declaration.d.ts +0 -16
- package/dist/translator/visitors/placeholder.d.ts +2 -1
- package/dist/translator/visitors/program/html.d.ts +0 -1
- package/dist/translator/visitors/program/index.d.ts +4 -5
- package/dist/translator/visitors/tag/custom-tag.d.ts +0 -14
- package/dist/translator/visitors/tag/native-tag.d.ts +3 -12
- package/package.json +4 -4
- package/dist/translator/util/binding-has-prop.d.ts +0 -8
- package/dist/translator/util/binding-prop-tree.d.ts +0 -18
- package/dist/translator/util/body-to-text-literal.d.ts +0 -9
- package/dist/translator/util/import-reference.d.ts +0 -3
- package/dist/translator/util/normalize-string-expression.d.ts +0 -4
- package/dist/translator/util/plugin-hooks.d.ts +0 -4
- package/dist/translator/util/resolve-relative-to-entry.d.ts +0 -2
- package/dist/translator/util/set-tag-derived-from.d.ts +0 -7
- package/dist/translator/util/to-first-expression-or-block.d.ts +0 -2
- package/dist/translator/util/to-first-statement-or-block.d.ts +0 -2
package/dist/dom/catch.feat.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js"), deferToPendingTry = (fn, scope, branch) => {
|
|
3
3
|
for (; branch;) {
|
|
4
|
-
if (branch.O?.i) return (scope.J ||= ((branch.JS ||= (branch.O.m && ((complete) => branch.O.c = () => complete() || require_control_flow.ln(branch, require_control_flow.un, require_control_flow.
|
|
4
|
+
if (branch.O?.i) return (scope.J ||= ((branch.JS ||= (branch.O.m && ((complete) => branch.O.c = () => complete() || require_control_flow.ln(branch, require_control_flow.un, require_control_flow.y))(branch.O.c), [])).push(scope), /* @__PURE__ */ new Set())).add(fn);
|
|
5
5
|
branch = branch.N;
|
|
6
6
|
}
|
|
7
7
|
};
|
|
8
8
|
//#region src/dom/catch.feat.ts
|
|
9
9
|
require_control_flow.sn((effects) => {
|
|
10
10
|
let i = 0, fn, scope, branch;
|
|
11
|
-
for (; i < effects.length;) fn = effects[i++], scope = effects[i++], (branch = scope.F)?.H !== 0 && !
|
|
11
|
+
for (; i < effects.length;) fn = effects[i++], scope = effects[i++], (branch = scope.F)?.H !== 0 && !deferToPendingTry(fn, scope, branch) && fn(scope);
|
|
12
12
|
}, (runRender) => (render) => {
|
|
13
13
|
try {
|
|
14
14
|
let branch = render.b.F;
|
|
@@ -18,7 +18,7 @@ require_control_flow.sn((effects) => {
|
|
|
18
18
|
}
|
|
19
19
|
render.f = 0, runRender(render);
|
|
20
20
|
} catch (error) {
|
|
21
|
-
require_control_flow.
|
|
21
|
+
require_control_flow.v(render.b, error);
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
package/dist/dom/catch.feat.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
let
|
|
1
|
+
let deferToPendingTry = (fn, scope, branch) => {
|
|
2
2
|
for (; branch;) {
|
|
3
3
|
if (branch.O?.i) return (scope.J ||= ((branch.JS ||= (branch.O.m && ((complete) => branch.O.c = () => complete() || queueAsyncRender(branch, queueEffect, runPendingEffects))(branch.O.c), [])).push(scope), /* @__PURE__ */ new Set())).add(fn);
|
|
4
4
|
branch = branch.N;
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { ln as queueAsyncRender, sn as installCatch, un as queueEffect, v as renderCatch, y as runPendingEffects } from "../dom-Ci2W4l1P.mjs";
|
|
8
8
|
//#region src/dom/catch.feat.ts
|
|
9
9
|
installCatch((effects) => {
|
|
10
10
|
let i = 0, fn, scope, branch;
|
|
11
|
-
for (; i < effects.length;) fn = effects[i++], scope = effects[i++], (branch = scope.F)?.H !== 0 && !
|
|
11
|
+
for (; i < effects.length;) fn = effects[i++], scope = effects[i++], (branch = scope.F)?.H !== 0 && !deferToPendingTry(fn, scope, branch) && fn(scope);
|
|
12
12
|
}, (runRender) => (render) => {
|
|
13
13
|
try {
|
|
14
14
|
let branch = render.b.F;
|
|
@@ -3,7 +3,7 @@ import { _content, type Renderer, type SetupFn } from "./renderer";
|
|
|
3
3
|
import { type Signal } from "./signals";
|
|
4
4
|
export declare function _await_promise(nodeAccessor: EncodedAccessor, params?: Signal<unknown>): (scope: Scope, promise: unknown) => unknown;
|
|
5
5
|
export declare function _await_content(nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0): (scope: Scope) => void;
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function startAwait(scope: Scope, tryBranch?: BranchScope | undefined): AwaitCounter | undefined;
|
|
7
7
|
export declare function runPendingEffects(tryBranch: BranchScope): void;
|
|
8
8
|
export declare function _try(nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, placeholderContent?: ReturnType<typeof _content> | 0, catchContent?: ReturnType<typeof _content>): (scope: Scope) => void;
|
|
9
9
|
export declare function renderCatch(scope: Scope, error: unknown): void;
|
|
@@ -16,7 +16,7 @@ export declare const _dynamic_tag_content: (nodeAccessor: EncodedAccessor) => Si
|
|
|
16
16
|
export declare let bindTagVar: undefined | ((scope: Scope, branch: BranchScope, scopeKey: number, renderer: Renderer | string) => void);
|
|
17
17
|
export declare function installDynamicTagVar(bind: NonNullable<typeof bindTagVar>): void;
|
|
18
18
|
export declare function dynamicTagScript(branch: Scope): void;
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function setBranch<T>(scope: Scope, nodeAccessor: Accessor, newRenderer: T, createBranch: ($global: Scope[typeof AccessorProp.Global], renderer: NonNullable<T>, parentScope: Scope, parentNode: ParentNode) => BranchScope): void;
|
|
20
20
|
export declare const _for_of: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: Signal<unknown>) => (scope: Scope, value: [all: unknown[], by?: ((item: unknown, index: number) => unknown) | undefined]) => void;
|
|
21
21
|
export declare const _for_in: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: Signal<unknown>) => (scope: Scope, value: [obj: {}, by?: ((key: string, v: unknown) => unknown) | undefined]) => void;
|
|
22
22
|
export declare const _for_to: (nodeAccessor: EncodedAccessor, template?: string | 0, walks?: string | 0, setup?: SetupFn | 0, params?: Signal<unknown>) => (scope: Scope, value: [to: number, from: number, step: number, by?: ((v: number) => unknown) | undefined]) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
require_control_flow.
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js");
|
|
3
|
+
require_control_flow.H[0] = require_control_flow.k, require_control_flow.H[1] = require_control_flow.D, require_control_flow.H[2] = require_control_flow.P;
|
|
4
4
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { D as _attr_input_checkedValue_script,
|
|
1
|
+
import { D as _attr_input_checkedValue_script, H as controllableScripts, P as _attr_input_value_script, k as _attr_input_checked_script } from "../dom-Ci2W4l1P.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,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js");
|
|
3
3
|
//#region src/dom/controllable-open.feat.ts
|
|
4
|
-
require_control_flow.
|
|
4
|
+
require_control_flow.H[4] = require_control_flow.C;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as _attr_details_or_dialog_open_script,
|
|
1
|
+
import { C as _attr_details_or_dialog_open_script, H as controllableScripts } from "../dom-Ci2W4l1P.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
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js");
|
|
3
3
|
//#region src/dom/controllable-select.feat.ts
|
|
4
|
-
require_control_flow.
|
|
4
|
+
require_control_flow.H[3] = require_control_flow.L;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as controllableScripts, L as _attr_select_value_script } from "../dom-Ci2W4l1P.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
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js");
|
|
3
3
|
//#region src/dom/controllable-textarea.feat.ts
|
|
4
|
-
require_control_flow.
|
|
4
|
+
require_control_flow.H[2] = require_control_flow.P;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as controllableScripts, P as _attr_input_value_script } from "../dom-Ci2W4l1P.mjs";
|
|
2
2
|
//#region src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -7,11 +7,11 @@ export declare const controllableScripts: {
|
|
|
7
7
|
[T in ControlledType]?: (scope: Scope, nodeAccessor: Accessor) => void;
|
|
8
8
|
};
|
|
9
9
|
/** The render pass equivalent, for a tag whose name is only known at run time;
|
|
10
|
-
* a statically named tag passes its
|
|
11
|
-
export declare const
|
|
12
|
-
[tagName: string]:
|
|
10
|
+
* a statically named tag passes its helper to `_attrs` instead. */
|
|
11
|
+
export declare const controllableSpreadHelpers: {
|
|
12
|
+
[tagName: string]: ControllableSpreadHelper;
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
14
|
+
export type ControllableSpreadHelper = (scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>) => RegExp | void;
|
|
15
15
|
export declare function _attr_input_checked(scope: Scope, nodeAccessor: Accessor, checked: unknown, checkedChange: unknown): void;
|
|
16
16
|
export declare function _attr_input_checked_script(scope: Scope, nodeAccessor: Accessor): void;
|
|
17
17
|
export declare function _attr_input_checkedValue_default(scope: Scope, nodeAccessor: Accessor, checkedValue: unknown, value: unknown): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js");
|
|
3
|
+
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.U.INPUT = require_control_flow.R, require_control_flow.U.TEXTAREA = require_control_flow.V, require_control_flow.U.SELECT = require_control_flow.B, require_control_flow.U.DETAILS = require_control_flow.U.DIALOG = require_control_flow.z;
|
|
4
4
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as _controllable_select,
|
|
1
|
+
import { B as _controllable_select, R as _controllable_input, U as controllableSpreadHelpers, V as _controllable_textarea, z as _controllable_open } from "../dom-Ci2W4l1P.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
5
|
-
|
|
5
|
+
controllableSpreadHelpers.INPUT = _controllable_input, controllableSpreadHelpers.TEXTAREA = _controllable_textarea, controllableSpreadHelpers.SELECT = _controllable_select, controllableSpreadHelpers.DETAILS = controllableSpreadHelpers.DIALOG = _controllable_open;
|
|
6
6
|
//#endregion
|
package/dist/dom/dom.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Accessor, type Scope } from "../common/types";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ControllableSpreadHelper } from "./controllable";
|
|
3
3
|
export declare function _to_text(value: unknown): string;
|
|
4
4
|
export declare function _attr(element: Element, name: string, value: unknown): void;
|
|
5
5
|
export declare function _attr_class(element: Element, value: unknown): void;
|
|
@@ -14,10 +14,10 @@ export declare function _style_rule_item(element: HTMLStyleElement, name: string
|
|
|
14
14
|
export declare function _attr_nonce(scope: Scope, nodeAccessor: Accessor): void;
|
|
15
15
|
export declare function _text(node: Text | Comment, value: unknown): void;
|
|
16
16
|
export declare function _text_content(node: ParentNode, value: unknown): void;
|
|
17
|
-
export declare function _attrs(scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>, controllable?:
|
|
18
|
-
export declare function _attrs_content(scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>, controllable?:
|
|
19
|
-
export declare function _attrs_partial(scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>, skip: Record<string, 1>, controllable?:
|
|
20
|
-
export declare function _attrs_partial_content(scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>, skip: Record<string, 1>, controllable?:
|
|
17
|
+
export declare function _attrs(scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>, controllable?: ControllableSpreadHelper): void;
|
|
18
|
+
export declare function _attrs_content(scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>, controllable?: ControllableSpreadHelper): void;
|
|
19
|
+
export declare function _attrs_partial(scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>, skip: Record<string, 1>, controllable?: ControllableSpreadHelper): void;
|
|
20
|
+
export declare function _attrs_partial_content(scope: Scope, nodeAccessor: Accessor, nextAttrs: Record<string, unknown>, skip: Record<string, 1>, controllable?: ControllableSpreadHelper): void;
|
|
21
21
|
export declare function _attr_content(scope: Scope, nodeAccessor: Accessor, value: unknown): void;
|
|
22
22
|
export declare function _attrs_script(scope: Scope, nodeAccessor: Accessor): void;
|
|
23
23
|
export declare const _html: (scope: Scope, value: unknown, accessor: Accessor) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js");
|
|
3
3
|
//#region src/dom/dynamic-tag-script.feat.ts
|
|
4
|
-
require_control_flow.Ct._d = require_control_flow.wn(require_control_flow.
|
|
4
|
+
require_control_flow.Ct._d = require_control_flow.wn(require_control_flow.h);
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as _resumed,
|
|
1
|
+
import { Ct as _resumed, h as dynamicTagScript, wn as withBranches } from "../dom-Ci2W4l1P.mjs";
|
|
2
2
|
//#region src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed._d = withBranches(dynamicTagScript);
|
|
4
4
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
require_control_flow.on(), require_control_flow.
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js");
|
|
3
|
+
require_control_flow.on(), require_control_flow.g((scope, branch, scopeKey, renderer) => {
|
|
4
4
|
branch.BR = require_control_flow.an(scope, scopeKey), typeof renderer == "string" && branch.T(() => branch.S);
|
|
5
5
|
});
|
|
6
6
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { an as createBranchRenders, g as installDynamicTagVar, on as installBranchRenders } from "../dom-Ci2W4l1P.mjs";
|
|
2
2
|
installBranchRenders(), installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
3
3
|
branch.BR = createBranchRenders(scope, scopeKey), typeof renderer == "string" && branch.T(() => branch.S);
|
|
4
4
|
});
|
package/dist/dom/lazy.feat.js
CHANGED
package/dist/dom/lazy.feat.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-60R4bRWD.js");
|
|
3
3
|
//#region src/dom/placeholder.feat.ts
|
|
4
4
|
require_control_flow.Ct._f = (tryBranch) => {
|
|
5
5
|
tryBranch.P &&= (require_control_flow.Qt(tryBranch.P), 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as _resumed, Qt as destroyBranch } from "../dom-
|
|
1
|
+
import { Ct as _resumed, Qt as destroyBranch } from "../dom-Ci2W4l1P.mjs";
|
|
2
2
|
//#region src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed._f = (tryBranch) => {
|
|
4
4
|
tryBranch.P &&= (destroyBranch(tryBranch.P), 0);
|
package/dist/dom/signals.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { type Accessor, type EncodedAccessor, type Scope } from "../common/types";
|
|
1
|
+
import { type Accessor, ClosureScopesProp, type EncodedAccessor, type Scope } from "../common/types";
|
|
2
2
|
export type SignalFn = (scope: Scope) => void;
|
|
3
3
|
export type Signal<T = unknown, U extends Scope = Scope> = (scope: U, value: T) => void;
|
|
4
|
+
export type ClosureScopes = Set<Scope> & {
|
|
5
|
+
[ClosureScopesProp.Changed]?: 1;
|
|
6
|
+
};
|
|
4
7
|
export declare function _let<T>(id: EncodedAccessor, fn?: SignalFn): (scope: Scope, value: T) => T;
|
|
5
8
|
export declare function _let_change<T>(id: EncodedAccessor, fn?: SignalFn): (scope: Scope, value: T, valueChange?: (v: T) => void) => T;
|
|
6
9
|
export declare function _const<T>(valueAccessor: EncodedAccessor, fn?: SignalFn): Signal<T>;
|
|
@@ -49,12 +49,12 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
49
49
|
let newFirstChild = scope[accessor] = newContent.firstChild || newContent.appendChild(new Text()), newLastChild = scope["H" + accessor] = newContent.lastChild, branch = scope.F;
|
|
50
50
|
branch?.S === firstChild && (branch.S = newFirstChild), branch?.K === lastChild && (branch.K = newLastChild), insertChildNodes(parentNode, firstChild, newFirstChild, newLastChild), removeChildNodes(firstChild, lastChild);
|
|
51
51
|
}
|
|
52
|
-
}), R = /[\p{L}\p{N}]/gu, inputType = "", controllableScripts = {},
|
|
52
|
+
}), R = /[\p{L}\p{N}]/gu, inputType = "", controllableScripts = {}, controllableSpreadHelpers = {}, _if = /*@__PURE__*/ withBranches((nodeAccessor, ...branchesArgs) => {
|
|
53
53
|
nodeAccessor = decodeAccessor(nodeAccessor);
|
|
54
54
|
let branchAccessor = "D" + nodeAccessor, branches = [], i = 0;
|
|
55
55
|
for (; i < branchesArgs.length;) branches.push(_content("", branchesArgs[i++], branchesArgs[i++], branchesArgs[i++])());
|
|
56
56
|
return (scope, newBranch) => {
|
|
57
|
-
newBranch !== (scope[branchAccessor] ?? (scope["A" + nodeAccessor] && 0)) &&
|
|
57
|
+
newBranch !== (scope[branchAccessor] ?? (scope["A" + nodeAccessor] && 0)) && setBranch(scope, nodeAccessor, branches[scope[branchAccessor] = newBranch], createAndSetupBranch);
|
|
58
58
|
};
|
|
59
59
|
}), _show = /*@__PURE__*/ withBranches((nodeAccessor, startNodeAccessor, endNodeAccessor) => {
|
|
60
60
|
nodeAccessor = decodeAccessor(nodeAccessor), startNodeAccessor !== void 0 && (startNodeAccessor = decodeAccessor(startNodeAccessor)), endNodeAccessor !== void 0 && (endNodeAccessor = decodeAccessor(endNodeAccessor));
|
|
@@ -78,16 +78,16 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
78
78
|
let normalizedRenderer = normalizeDynamicRenderer(newRenderer);
|
|
79
79
|
if (scope[rendererAccessor] !== (scope[rendererAccessor] = rendererKey(normalizedRenderer) || (getContent ? void 0 : 0)) || getContent && !(normalizedRenderer || scope[childScopeAccessor])) {
|
|
80
80
|
let renderer = normalizedRenderer || (getContent ? getContent(scope) : void 0);
|
|
81
|
-
if (
|
|
81
|
+
if (setBranch(scope, nodeAccessor, renderer, createBranchWithTagNameOrRenderer), getTagVar && (normalizedRenderer ? (scope[childScopeAccessor].T = (value) => getTagVar()(scope, value), bindTagVar(scope, scope[childScopeAccessor], scope[scopeOffsetAccessor], normalizedRenderer)) : getTagVar()(scope)), typeof renderer == "string") {
|
|
82
82
|
if (getContent) {
|
|
83
83
|
let content = getContent(scope);
|
|
84
|
-
|
|
84
|
+
setBranch(scope[childScopeAccessor], "a", content, createAndSetupBranch), content.f && subscribeToScopeSet(content.e, content.f, scope[childScopeAccessor].Aa);
|
|
85
85
|
}
|
|
86
86
|
} else renderer && (setupBranch(renderer, scope[childScopeAccessor]), renderer.f && subscribeToScopeSet(renderer.e, renderer.f, scope[childScopeAccessor]));
|
|
87
87
|
}
|
|
88
88
|
if (normalizedRenderer) {
|
|
89
89
|
let childScope = scope[childScopeAccessor], args = getInput?.();
|
|
90
|
-
if (typeof normalizedRenderer == "string") (getContent ? _attrs : _attrs_content)(childScope, "a", (inputIsArgs ? args[0] : args) || {},
|
|
90
|
+
if (typeof normalizedRenderer == "string") (getContent ? _attrs : _attrs_content)(childScope, "a", (inputIsArgs ? args[0] : args) || {}, controllableSpreadHelpers[childScope.a.tagName]), (childScope.Ia || childScope.Ea) && queueEffect(childScope, dynamicTagScript);
|
|
91
91
|
else if (normalizedRenderer.g?.(childScope), normalizedRenderer.d) {
|
|
92
92
|
if (inputIsArgs) normalizedRenderer.d(childScope, normalizedRenderer._ ? args[0] : args);
|
|
93
93
|
else {
|
|
@@ -104,7 +104,7 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
104
104
|
nodeAccessor = decodeAccessor(nodeAccessor);
|
|
105
105
|
let childScopeAccessor = "A" + nodeAccessor, rendererAccessor = "D" + nodeAccessor;
|
|
106
106
|
return (scope, renderer) => {
|
|
107
|
-
scope[rendererAccessor] !== (scope[rendererAccessor] = rendererKey(renderer)) && (
|
|
107
|
+
scope[rendererAccessor] !== (scope[rendererAccessor] = rendererKey(renderer)) && (setBranch(scope, nodeAccessor, renderer, createAndSetupBranch), renderer?.f && subscribeToScopeSet(renderer.e, renderer.f, scope[childScopeAccessor])), renderer?.g?.(scope[childScopeAccessor]);
|
|
108
108
|
};
|
|
109
109
|
}), bindTagVar, loop = /*@__PURE__*/ withBranches((forEach, reorder) => (nodeAccessor, template, walks, setup, params) => {
|
|
110
110
|
nodeAccessor = decodeAccessor(nodeAccessor);
|
|
@@ -145,10 +145,10 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
145
145
|
function _call(fn, v) {
|
|
146
146
|
return fn(v), v;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function stringifyClassEntry(name, value) {
|
|
149
149
|
return value ? name : "";
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function stringifyStyleEntry(name, value) {
|
|
152
152
|
return value || value === 0 ? escapeStyleAttr(name) + ":" + escapeStyleAttr(value + "") : "";
|
|
153
153
|
}
|
|
154
154
|
function escapeStyleAttr(str) {
|
|
@@ -162,10 +162,10 @@ function escapeStyleValue(str) {
|
|
|
162
162
|
function isEventHandler(name) {
|
|
163
163
|
return /^on[A-Z-]/.test(name);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function getEventType(name) {
|
|
166
166
|
return name[2] === "-" ? name.slice(3) : name.slice(2).toLowerCase();
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function isNotNullishOrFalse(value) {
|
|
169
169
|
return value != null && value !== !1;
|
|
170
170
|
}
|
|
171
171
|
function isPromise(value) {
|
|
@@ -741,7 +741,7 @@ function setAttribute(element, name, value) {
|
|
|
741
741
|
element.getAttribute(name) != value && (value === void 0 ? element.removeAttribute(name) : element.setAttribute(name, value));
|
|
742
742
|
}
|
|
743
743
|
function _attr_class(element, value) {
|
|
744
|
-
setAttribute(element, "class", toDelimitedString(value, " ",
|
|
744
|
+
setAttribute(element, "class", toDelimitedString(value, " ", stringifyClassEntry) || void 0);
|
|
745
745
|
}
|
|
746
746
|
function _attr_class_items(element, items) {
|
|
747
747
|
for (let key in items) _attr_class_item(element, key, items[key]);
|
|
@@ -756,7 +756,7 @@ function _attr_class_names(element, names, value) {
|
|
|
756
756
|
while (start = end + 1);
|
|
757
757
|
}
|
|
758
758
|
function _attr_style(element, value) {
|
|
759
|
-
setAttribute(element, "style", toDelimitedString(value, ";",
|
|
759
|
+
setAttribute(element, "style", toDelimitedString(value, ";", stringifyStyleEntry) || void 0);
|
|
760
760
|
}
|
|
761
761
|
function _attr_style_items(element, items) {
|
|
762
762
|
for (let key in items) _attr_style_item(element, key, items[key]);
|
|
@@ -804,7 +804,7 @@ function _attrs_partial(scope, nodeAccessor, nextAttrs, skip, controllable) {
|
|
|
804
804
|
!skip[name] && !(nextAttrs && (name in nextAttrs || hasAttrAlias(el, name, nextAttrs))) && el.removeAttribute(name);
|
|
805
805
|
}
|
|
806
806
|
for (let name in nextAttrs) {
|
|
807
|
-
let key = isEventHandler(name) ? `on-${
|
|
807
|
+
let key = isEventHandler(name) ? `on-${getEventType(name)}` : name;
|
|
808
808
|
skip[key] || (partial[key] = nextAttrs[name]);
|
|
809
809
|
}
|
|
810
810
|
attrsInternal(scope, nodeAccessor, partial, controllable);
|
|
@@ -825,13 +825,13 @@ function attrsInternal(scope, nodeAccessor, nextAttrs, controllable) {
|
|
|
825
825
|
case "style":
|
|
826
826
|
_attr_style(el, value);
|
|
827
827
|
break;
|
|
828
|
-
default: isEventHandler(name) ? (events ||= scope["I" + nodeAccessor] = {})[
|
|
828
|
+
default: isEventHandler(name) ? (events ||= scope["I" + nodeAccessor] = {})[getEventType(name)] = value : skip?.test(name) || name === "content" && el.tagName !== "META" || _attr(el, name, value);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
function _attr_content(scope, nodeAccessor, value) {
|
|
833
833
|
let content = normalizeClientRender(value);
|
|
834
|
-
scope["D" + nodeAccessor] !== (scope["D" + nodeAccessor] = rendererKey(content)) && (
|
|
834
|
+
scope["D" + nodeAccessor] !== (scope["D" + nodeAccessor] = rendererKey(content)) && (setBranch(scope, nodeAccessor, content, createAndSetupBranch), content?.f && subscribeToScopeSet(content.e, content.f, scope["A" + nodeAccessor])), content?.g?.(scope["A" + nodeAccessor]);
|
|
835
835
|
}
|
|
836
836
|
function _attrs_script(scope, nodeAccessor) {
|
|
837
837
|
let el = scope[nodeAccessor], events = scope["I" + nodeAccessor];
|
|
@@ -843,7 +843,7 @@ function normalizeClientRender(value) {
|
|
|
843
843
|
if (renderer && renderer.a) return renderer;
|
|
844
844
|
}
|
|
845
845
|
function normalizeAttrValue(value) {
|
|
846
|
-
if (
|
|
846
|
+
if (isNotNullishOrFalse(value)) return value === !0 ? "" : value + "";
|
|
847
847
|
}
|
|
848
848
|
function _lifecycle(scope, thisObj, index = 0) {
|
|
849
849
|
let accessor = "K" + index, instance = scope[accessor];
|
|
@@ -886,7 +886,7 @@ function resolveCursorPosition(inputType, initialPosition, initialValue, updated
|
|
|
886
886
|
//#endregion
|
|
887
887
|
//#region src/dom/controllable.ts
|
|
888
888
|
function _attr_input_checked_default(scope, nodeAccessor, checked) {
|
|
889
|
-
let el = scope[nodeAccessor], normalizedChecked =
|
|
889
|
+
let el = scope[nodeAccessor], normalizedChecked = isNotNullishOrFalse(checked);
|
|
890
890
|
if (el.defaultChecked !== normalizedChecked) {
|
|
891
891
|
let restoreValue = scope.H < runId ? el.checked : normalizedChecked;
|
|
892
892
|
el.defaultChecked = normalizedChecked, restoreValue !== normalizedChecked && (el.checked = restoreValue);
|
|
@@ -896,9 +896,9 @@ function _attr_input_checked_default(scope, nodeAccessor, checked) {
|
|
|
896
896
|
* page carries only the control kinds its tags can be (`_attrs_script`
|
|
897
897
|
* resolves the kind at run time). */
|
|
898
898
|
/** The render pass equivalent, for a tag whose name is only known at run time;
|
|
899
|
-
* a statically named tag passes its
|
|
899
|
+
* a statically named tag passes its helper to `_attrs` instead. */
|
|
900
900
|
function _attr_input_checked(scope, nodeAccessor, checked, checkedChange) {
|
|
901
|
-
let el = scope[nodeAccessor], normalizedChecked =
|
|
901
|
+
let el = scope[nodeAccessor], normalizedChecked = isNotNullishOrFalse(checked);
|
|
902
902
|
scope["E" + nodeAccessor] = checkedChange, scope["F" + nodeAccessor] = checkedChange ? 0 : 5, checkedChange && scope.H < runId ? el.checked = normalizedChecked : _attr_input_checked_default(scope, nodeAccessor, normalizedChecked);
|
|
903
903
|
}
|
|
904
904
|
function _attr_input_checked_script(scope, nodeAccessor) {
|
|
@@ -996,7 +996,7 @@ function _attr_select_value_script(scope, nodeAccessor) {
|
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
-
syncControllableFormInput(el, hasSelectChanged, onChange),
|
|
999
|
+
syncControllableFormInput(el, hasSelectChanged, onChange), observeControlled(scope, nodeAccessor, {
|
|
1000
1000
|
childList: !0,
|
|
1001
1001
|
subtree: !0
|
|
1002
1002
|
}, () => {
|
|
@@ -1012,15 +1012,15 @@ function getSelectValue(el, multiple) {
|
|
|
1012
1012
|
return multiple ? Array.from(el.selectedOptions, (opt) => opt.value) : el.value;
|
|
1013
1013
|
}
|
|
1014
1014
|
function _attr_details_or_dialog_open_default(scope, nodeAccessor, open) {
|
|
1015
|
-
scope.H === runId && (scope[nodeAccessor].open =
|
|
1015
|
+
scope.H === runId && (scope[nodeAccessor].open = isNotNullishOrFalse(open));
|
|
1016
1016
|
}
|
|
1017
1017
|
function _attr_details_or_dialog_open(scope, nodeAccessor, open, openChange) {
|
|
1018
|
-
let normalizedOpen = scope["G" + nodeAccessor] =
|
|
1018
|
+
let normalizedOpen = scope["G" + nodeAccessor] = isNotNullishOrFalse(open);
|
|
1019
1019
|
scope["E" + nodeAccessor] = openChange, scope["F" + nodeAccessor] = openChange ? 4 : 5, openChange && scope.H < runId ? scope[nodeAccessor].open = normalizedOpen : _attr_details_or_dialog_open_default(scope, nodeAccessor, normalizedOpen);
|
|
1020
1020
|
}
|
|
1021
1021
|
function _attr_details_or_dialog_open_script(scope, nodeAccessor) {
|
|
1022
1022
|
let el = scope[nodeAccessor];
|
|
1023
|
-
|
|
1023
|
+
observeControlled(scope, nodeAccessor, {
|
|
1024
1024
|
attributes: !0,
|
|
1025
1025
|
attributeFilter: ["open"]
|
|
1026
1026
|
}, () => {
|
|
@@ -1031,7 +1031,7 @@ function _attr_details_or_dialog_open_script(scope, nodeAccessor) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function observeControlled(scope, nodeAccessor, init, callback) {
|
|
1035
1035
|
(scope["N" + nodeAccessor] ||= new MutationObserver(callback)).observe(scope[nodeAccessor], init);
|
|
1036
1036
|
}
|
|
1037
1037
|
function syncControllableFormInput(el, hasChanged, onChange) {
|
|
@@ -1105,9 +1105,9 @@ function _await_promise(nodeAccessor, params) {
|
|
|
1105
1105
|
detachedParent === anchor.parentNode ? anchor.remove() : anchor.replaceWith(detachedParent);
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
})),
|
|
1108
|
+
})), countAwait(awaitCounter, scope, () => {
|
|
1109
1109
|
awaitBranch.V || (awaitBranch.S.parentNode.insertBefore(scope[nodeAccessor], awaitBranch.S), tempDetachBranch(tryBranch));
|
|
1110
|
-
})) : awaitCounter =
|
|
1110
|
+
})) : awaitCounter = startAwait(scope, tryBranch));
|
|
1111
1111
|
let thisPromise = scope[promiseAccessor] = promise.then((data) => {
|
|
1112
1112
|
if (thisPromise === scope[promiseAccessor]) {
|
|
1113
1113
|
let referenceNode = scope[nodeAccessor];
|
|
@@ -1133,14 +1133,14 @@ function _await_content(nodeAccessor, template, walks, setup) {
|
|
|
1133
1133
|
scope[branchAccessor].Y = pendingScopes, typeof scope[promiseAccessor] == "function" && scope[promiseAccessor]();
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function startAwait(scope, tryBranch = findTryWithPlaceholder(scope)) {
|
|
1137
1137
|
if (!tryBranch) return;
|
|
1138
1138
|
let awaitCounter = tryBranch.O;
|
|
1139
|
-
return awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, () => dismissPlaceholder(tryBranch))),
|
|
1139
|
+
return awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, () => dismissPlaceholder(tryBranch))), countAwait(awaitCounter, tryBranch, () => {
|
|
1140
1140
|
(tryBranch.P = createAndSetupBranch(tryBranch.$, tryBranch.Q(), tryBranch._, tryBranch.S.parentNode)).PT = tryBranch, insertBranchBefore(tryBranch.P, tryBranch.S.parentNode, tryBranch.S), tempDetachBranch(tryBranch);
|
|
1141
1141
|
}), awaitCounter;
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function countAwait(awaitCounter, scope, render) {
|
|
1144
1144
|
awaitCounter.i++ || requestAnimationFrame(() => awaitCounter.i && runEffects(prepareEffects(() => queueRender(scope, render, -1))));
|
|
1145
1145
|
}
|
|
1146
1146
|
function queueCompleteAwaitCounter(tryBranch, awaitCounter) {
|
|
@@ -1180,7 +1180,7 @@ function _try(nodeAccessor, template, walks, setup, placeholderContent, catchCon
|
|
|
1180
1180
|
nodeAccessor = decodeAccessor(nodeAccessor);
|
|
1181
1181
|
let branchAccessor = "A" + nodeAccessor, renderer = _content("", template, walks, setup)();
|
|
1182
1182
|
return (scope) => {
|
|
1183
|
-
|
|
1183
|
+
setBranch(scope, nodeAccessor, renderer, createAndSetupBranch);
|
|
1184
1184
|
let branch = scope[branchAccessor];
|
|
1185
1185
|
branch.C = nodeAccessor, branch.E = catchContent, branch.Q = placeholderContent || void 0;
|
|
1186
1186
|
};
|
|
@@ -1191,7 +1191,7 @@ function renderCatch(scope, error) {
|
|
|
1191
1191
|
let owner = tryWithCatch._, placeholderBranch = tryWithCatch.P;
|
|
1192
1192
|
placeholderBranch && (tryWithCatch.O && (tryWithCatch.O.i = 0), owner["A" + tryWithCatch.C] = placeholderBranch, destroyBranch(tryWithCatch));
|
|
1193
1193
|
let catchContent = tryWithCatch.E();
|
|
1194
|
-
|
|
1194
|
+
setBranch(owner, tryWithCatch.C, catchContent, createAndSetupBranch), catchContent.d?.(owner["A" + tryWithCatch.C], [error]);
|
|
1195
1195
|
} else throw error;
|
|
1196
1196
|
}
|
|
1197
1197
|
function findTryWithPlaceholder(scope) {
|
|
@@ -1216,7 +1216,7 @@ function installDynamicTagVar(bind) {
|
|
|
1216
1216
|
function dynamicTagScript(branch) {
|
|
1217
1217
|
_attrs_script(branch, "a");
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function setBranch(scope, nodeAccessor, newRenderer, createBranch) {
|
|
1220
1220
|
let referenceNode = scope[nodeAccessor], prevBranch = scope["A" + nodeAccessor], parentNode = referenceNode.nodeType > 1 ? (prevBranch?.S || referenceNode).parentNode : referenceNode, newBranch = scope["A" + nodeAccessor] = newRenderer && createBranch(scope.$, newRenderer, scope, parentNode);
|
|
1221
1221
|
referenceNode === parentNode ? (prevBranch && (destroyBranch(prevBranch), referenceNode.textContent = ""), newBranch && insertBranchBefore(newBranch, parentNode, null)) : prevBranch ? (newBranch ? insertBranchBefore(newBranch, parentNode, prevBranch.S) : parentNode.insertBefore(referenceNode, prevBranch.S), removeAndDestroyBranch(prevBranch)) : newBranch && (insertBranchBefore(newBranch, parentNode, referenceNode), referenceNode.remove());
|
|
1222
1222
|
}
|
|
@@ -1331,7 +1331,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1331
1331
|
}), Object.defineProperty(exports, "H", {
|
|
1332
1332
|
enumerable: !0,
|
|
1333
1333
|
get: function() {
|
|
1334
|
-
return
|
|
1334
|
+
return controllableScripts;
|
|
1335
1335
|
}
|
|
1336
1336
|
}), Object.defineProperty(exports, "Ht", {
|
|
1337
1337
|
enumerable: !0,
|
|
@@ -1466,7 +1466,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1466
1466
|
}), Object.defineProperty(exports, "U", {
|
|
1467
1467
|
enumerable: !0,
|
|
1468
1468
|
get: function() {
|
|
1469
|
-
return
|
|
1469
|
+
return controllableSpreadHelpers;
|
|
1470
1470
|
}
|
|
1471
1471
|
}), Object.defineProperty(exports, "Ut", {
|
|
1472
1472
|
enumerable: !0,
|
|
@@ -1526,7 +1526,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1526
1526
|
}), Object.defineProperty(exports, "_", {
|
|
1527
1527
|
enumerable: !0,
|
|
1528
1528
|
get: function() {
|
|
1529
|
-
return
|
|
1529
|
+
return patchDynamicTag;
|
|
1530
1530
|
}
|
|
1531
1531
|
}), Object.defineProperty(exports, "_n", {
|
|
1532
1532
|
enumerable: !0,
|
|
@@ -1556,7 +1556,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1556
1556
|
}), Object.defineProperty(exports, "b", {
|
|
1557
1557
|
enumerable: !0,
|
|
1558
1558
|
get: function() {
|
|
1559
|
-
return
|
|
1559
|
+
return startAwait;
|
|
1560
1560
|
}
|
|
1561
1561
|
}), Object.defineProperty(exports, "bn", {
|
|
1562
1562
|
enumerable: !0,
|
|
@@ -1626,7 +1626,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1626
1626
|
}), Object.defineProperty(exports, "g", {
|
|
1627
1627
|
enumerable: !0,
|
|
1628
1628
|
get: function() {
|
|
1629
|
-
return
|
|
1629
|
+
return installDynamicTagVar;
|
|
1630
1630
|
}
|
|
1631
1631
|
}), Object.defineProperty(exports, "gn", {
|
|
1632
1632
|
enumerable: !0,
|
|
@@ -1641,7 +1641,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1641
1641
|
}), Object.defineProperty(exports, "h", {
|
|
1642
1642
|
enumerable: !0,
|
|
1643
1643
|
get: function() {
|
|
1644
|
-
return
|
|
1644
|
+
return dynamicTagScript;
|
|
1645
1645
|
}
|
|
1646
1646
|
}), Object.defineProperty(exports, "hn", {
|
|
1647
1647
|
enumerable: !0,
|
|
@@ -1836,7 +1836,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1836
1836
|
}), Object.defineProperty(exports, "v", {
|
|
1837
1837
|
enumerable: !0,
|
|
1838
1838
|
get: function() {
|
|
1839
|
-
return
|
|
1839
|
+
return renderCatch;
|
|
1840
1840
|
}
|
|
1841
1841
|
}), Object.defineProperty(exports, "vn", {
|
|
1842
1842
|
enumerable: !0,
|
|
@@ -1881,7 +1881,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1881
1881
|
}), Object.defineProperty(exports, "y", {
|
|
1882
1882
|
enumerable: !0,
|
|
1883
1883
|
get: function() {
|
|
1884
|
-
return
|
|
1884
|
+
return runPendingEffects;
|
|
1885
1885
|
}
|
|
1886
1886
|
}), Object.defineProperty(exports, "yn", {
|
|
1887
1887
|
enumerable: !0,
|