diff --git a/README.md b/README.md
index 8e53aa06046ae0ff5e8e872a475a161b48648b2c..85911c79295b25abbd5b3b6cd0fdb1974a4a82c0 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ app_file: space.py
---
# `gradio_propertysheet`
-

💻 Component GitHub Code
+

💻 Component GitHub Code
The **PropertySheet** component for Gradio allows you to automatically generate a complete and interactive settings panel from a standard Python `dataclass`. It's designed to bring the power of IDE-like property editors directly into your Gradio applications.
@@ -50,12 +50,52 @@ import os
import json
import gradio as gr
from dataclasses import dataclass, field, asdict
-from typing import Literal
+from typing import List, Literal
from gradio_propertysheet import PropertySheet
from gradio_htmlinjector import HTMLInjector
+PAG_LAYERS = {
+ "down.blocks.1": "down.blocks.1",
+ "down.blocks.1.attn.0": "down.blocks.1.attentions.0",
+ "down.blocks.1.attn.1": "down.blocks.1.attentions.1",
+ "down.blocks.2": "down.blocks.2",
+ "down.blocks.2.attn.0": "down.blocks.2.attentions.0",
+ "down.blocks.2.attn.1": "down.blocks.2.attentions.1",
+ "mid": "mid",
+ "up.blocks.0": "up.blocks.0",
+ "up.blocks.0.attn.0": "up.blocks.0.attentions.0",
+ "up.blocks.0.attn.1": "up.blocks.0.attentions.1",
+ "up.blocks.0.attn.2": "up.blocks.0.attentions.2",
+ "up.blocks.1": "up.blocks.1",
+ "up.blocks.1.attn.0": "up.blocks.1.attentions.0",
+ "up.blocks.1.attn.1": "up.blocks.1.attentions.1",
+ "up.blocks.1.attn.2": "up.blocks.1.attentions.2",
+}
# --- 1. Dataclass Definitions ---
+@dataclass
+class PAGSettings:
+ """Defines settings for Perturbed Attention Guidance."""
+ enable_pag: bool = field(default=False, metadata={"label": "Enable PAG"})
+
+ pag_layers: List[str] = field(
+ default_factory=list, # Use default_factory for mutable types like lists
+ metadata={
+ "component": "multiselect_checkbox", # Our new custom component type
+ "choices": list(PAG_LAYERS.keys()), # Provide the list of all possible options
+ "label": "PAG Layers",
+ "interactive_if": {"field": "enable_pag", "value": True},
+ "help": "Select the UNet layers where Perturbed Attention Guidance should be applied."
+ }
+ )
+ pag_scale: float = field(default=3.0, metadata={
+ "component": "slider",
+ "label": "PAG Scale",
+ "minimum": 0.0,
+ "maximum": 1.0,
+ "step": 0.01
+ })
+
@dataclass
class EffectBase:
"""Base class with common effect settings."""
@@ -307,6 +347,7 @@ class RenderConfig:
default_factory=QuantizationSettings,
metadata={"label": "Quantization Settings"}
)
+ pag_settings: PAGSettings = field(default_factory=PAGSettings, metadata={"label": "PAG Settings"})
tile_size: Literal[1024, 1280] = field(
default=1280,
metadata={
diff --git a/app.py b/app.py
index a2442880a851d47e3c7495a3bc7368834164ec2f..3f95492bcbeea8e915a3e1c2da3872262710e0ad 100644
--- a/app.py
+++ b/app.py
@@ -2,12 +2,52 @@ import os
import json
import gradio as gr
from dataclasses import dataclass, field, asdict
-from typing import Literal
+from typing import List, Literal
from gradio_propertysheet import PropertySheet
from gradio_htmlinjector import HTMLInjector
+PAG_LAYERS = {
+ "down.blocks.1": "down.blocks.1",
+ "down.blocks.1.attn.0": "down.blocks.1.attentions.0",
+ "down.blocks.1.attn.1": "down.blocks.1.attentions.1",
+ "down.blocks.2": "down.blocks.2",
+ "down.blocks.2.attn.0": "down.blocks.2.attentions.0",
+ "down.blocks.2.attn.1": "down.blocks.2.attentions.1",
+ "mid": "mid",
+ "up.blocks.0": "up.blocks.0",
+ "up.blocks.0.attn.0": "up.blocks.0.attentions.0",
+ "up.blocks.0.attn.1": "up.blocks.0.attentions.1",
+ "up.blocks.0.attn.2": "up.blocks.0.attentions.2",
+ "up.blocks.1": "up.blocks.1",
+ "up.blocks.1.attn.0": "up.blocks.1.attentions.0",
+ "up.blocks.1.attn.1": "up.blocks.1.attentions.1",
+ "up.blocks.1.attn.2": "up.blocks.1.attentions.2",
+}
# --- 1. Dataclass Definitions ---
+@dataclass
+class PAGSettings:
+ """Defines settings for Perturbed Attention Guidance."""
+ enable_pag: bool = field(default=False, metadata={"label": "Enable PAG"})
+
+ pag_layers: List[str] = field(
+ default_factory=list, # Use default_factory for mutable types like lists
+ metadata={
+ "component": "multiselect_checkbox", # Our new custom component type
+ "choices": list(PAG_LAYERS.keys()), # Provide the list of all possible options
+ "label": "PAG Layers",
+ "interactive_if": {"field": "enable_pag", "value": True},
+ "help": "Select the UNet layers where Perturbed Attention Guidance should be applied."
+ }
+ )
+ pag_scale: float = field(default=3.0, metadata={
+ "component": "slider",
+ "label": "PAG Scale",
+ "minimum": 0.0,
+ "maximum": 1.0,
+ "step": 0.01
+ })
+
@dataclass
class EffectBase:
"""Base class with common effect settings."""
@@ -259,6 +299,7 @@ class RenderConfig:
default_factory=QuantizationSettings,
metadata={"label": "Quantization Settings"}
)
+ pag_settings: PAGSettings = field(default_factory=PAGSettings, metadata={"label": "PAG Settings"})
tile_size: Literal[1024, 1280] = field(
default=1280,
metadata={
diff --git a/space.py b/space.py
index 3d4f50197f1551e67467b995ac84e30a0e9fa8f9..b7d94d648ccc00aff92c8ed5dd1da4cdea393c5e 100644
--- a/space.py
+++ b/space.py
@@ -42,12 +42,52 @@ import os
import json
import gradio as gr
from dataclasses import dataclass, field, asdict
-from typing import Literal
+from typing import List, Literal
from gradio_propertysheet import PropertySheet
from gradio_htmlinjector import HTMLInjector
+PAG_LAYERS = {
+ "down.blocks.1": "down.blocks.1",
+ "down.blocks.1.attn.0": "down.blocks.1.attentions.0",
+ "down.blocks.1.attn.1": "down.blocks.1.attentions.1",
+ "down.blocks.2": "down.blocks.2",
+ "down.blocks.2.attn.0": "down.blocks.2.attentions.0",
+ "down.blocks.2.attn.1": "down.blocks.2.attentions.1",
+ "mid": "mid",
+ "up.blocks.0": "up.blocks.0",
+ "up.blocks.0.attn.0": "up.blocks.0.attentions.0",
+ "up.blocks.0.attn.1": "up.blocks.0.attentions.1",
+ "up.blocks.0.attn.2": "up.blocks.0.attentions.2",
+ "up.blocks.1": "up.blocks.1",
+ "up.blocks.1.attn.0": "up.blocks.1.attentions.0",
+ "up.blocks.1.attn.1": "up.blocks.1.attentions.1",
+ "up.blocks.1.attn.2": "up.blocks.1.attentions.2",
+}
# --- 1. Dataclass Definitions ---
+@dataclass
+class PAGSettings:
+ \"\"\"Defines settings for Perturbed Attention Guidance.\"\"\"
+ enable_pag: bool = field(default=False, metadata={"label": "Enable PAG"})
+
+ pag_layers: List[str] = field(
+ default_factory=list, # Use default_factory for mutable types like lists
+ metadata={
+ "component": "multiselect_checkbox", # Our new custom component type
+ "choices": list(PAG_LAYERS.keys()), # Provide the list of all possible options
+ "label": "PAG Layers",
+ "interactive_if": {"field": "enable_pag", "value": True},
+ "help": "Select the UNet layers where Perturbed Attention Guidance should be applied."
+ }
+ )
+ pag_scale: float = field(default=3.0, metadata={
+ "component": "slider",
+ "label": "PAG Scale",
+ "minimum": 0.0,
+ "maximum": 1.0,
+ "step": 0.01
+ })
+
@dataclass
class EffectBase:
\"\"\"Base class with common effect settings.\"\"\"
@@ -299,6 +339,7 @@ class RenderConfig:
default_factory=QuantizationSettings,
metadata={"label": "Quantization Settings"}
)
+ pag_settings: PAGSettings = field(default_factory=PAGSettings, metadata={"label": "PAG Settings"})
tile_size: Literal[1024, 1280] = field(
default=1280,
metadata={
diff --git a/src/README.md b/src/README.md
index 8e53aa06046ae0ff5e8e872a475a161b48648b2c..85911c79295b25abbd5b3b6cd0fdb1974a4a82c0 100644
--- a/src/README.md
+++ b/src/README.md
@@ -10,7 +10,7 @@ app_file: space.py
---
# `gradio_propertysheet`
-

💻 Component GitHub Code
+

💻 Component GitHub Code
The **PropertySheet** component for Gradio allows you to automatically generate a complete and interactive settings panel from a standard Python `dataclass`. It's designed to bring the power of IDE-like property editors directly into your Gradio applications.
@@ -50,12 +50,52 @@ import os
import json
import gradio as gr
from dataclasses import dataclass, field, asdict
-from typing import Literal
+from typing import List, Literal
from gradio_propertysheet import PropertySheet
from gradio_htmlinjector import HTMLInjector
+PAG_LAYERS = {
+ "down.blocks.1": "down.blocks.1",
+ "down.blocks.1.attn.0": "down.blocks.1.attentions.0",
+ "down.blocks.1.attn.1": "down.blocks.1.attentions.1",
+ "down.blocks.2": "down.blocks.2",
+ "down.blocks.2.attn.0": "down.blocks.2.attentions.0",
+ "down.blocks.2.attn.1": "down.blocks.2.attentions.1",
+ "mid": "mid",
+ "up.blocks.0": "up.blocks.0",
+ "up.blocks.0.attn.0": "up.blocks.0.attentions.0",
+ "up.blocks.0.attn.1": "up.blocks.0.attentions.1",
+ "up.blocks.0.attn.2": "up.blocks.0.attentions.2",
+ "up.blocks.1": "up.blocks.1",
+ "up.blocks.1.attn.0": "up.blocks.1.attentions.0",
+ "up.blocks.1.attn.1": "up.blocks.1.attentions.1",
+ "up.blocks.1.attn.2": "up.blocks.1.attentions.2",
+}
# --- 1. Dataclass Definitions ---
+@dataclass
+class PAGSettings:
+ """Defines settings for Perturbed Attention Guidance."""
+ enable_pag: bool = field(default=False, metadata={"label": "Enable PAG"})
+
+ pag_layers: List[str] = field(
+ default_factory=list, # Use default_factory for mutable types like lists
+ metadata={
+ "component": "multiselect_checkbox", # Our new custom component type
+ "choices": list(PAG_LAYERS.keys()), # Provide the list of all possible options
+ "label": "PAG Layers",
+ "interactive_if": {"field": "enable_pag", "value": True},
+ "help": "Select the UNet layers where Perturbed Attention Guidance should be applied."
+ }
+ )
+ pag_scale: float = field(default=3.0, metadata={
+ "component": "slider",
+ "label": "PAG Scale",
+ "minimum": 0.0,
+ "maximum": 1.0,
+ "step": 0.01
+ })
+
@dataclass
class EffectBase:
"""Base class with common effect settings."""
@@ -307,6 +347,7 @@ class RenderConfig:
default_factory=QuantizationSettings,
metadata={"label": "Quantization Settings"}
)
+ pag_settings: PAGSettings = field(default_factory=PAGSettings, metadata={"label": "PAG Settings"})
tile_size: Literal[1024, 1280] = field(
default=1280,
metadata={
diff --git a/src/backend/gradio_propertysheet/templates/component/index.js b/src/backend/gradio_propertysheet/templates/component/index.js
index 2ca7a8bc42ef940a58465ab581cd2a59f86c986c..95211adda7f23a84b3df8b3766a07664b95855b6 100644
--- a/src/backend/gradio_propertysheet/templates/component/index.js
+++ b/src/backend/gradio_propertysheet/templates/component/index.js
@@ -1,91 +1,91 @@
-var Xl = Object.defineProperty;
-var Bi = (i) => {
+var eo = Object.defineProperty;
+var Ri = (i) => {
throw TypeError(i);
};
-var Kl = (i, e, t) => e in i ? Xl(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
-var ee = (i, e, t) => Kl(i, typeof e != "symbol" ? e + "" : e, t), Ql = (i, e, t) => e.has(i) || Bi("Cannot " + t);
-var Ri = (i, e, t) => e.has(i) ? Bi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t);
-var pn = (i, e, t) => (Ql(i, e, "access private method"), t);
+var to = (i, e, t) => e in i ? eo(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
+var ee = (i, e, t) => to(i, typeof e != "symbol" ? e + "" : e, t), no = (i, e, t) => e.has(i) || Ri("Cannot " + t);
+var Li = (i, e, t) => e.has(i) ? Ri("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t);
+var mn = (i, e, t) => (no(i, e, "access private method"), t);
const {
- SvelteComponent: Jl,
- append_hydration: Jn,
- assign: eo,
- attr: we,
- binding_callbacks: to,
- children: tn,
- claim_element: Qa,
- claim_space: Ja,
- claim_svg_element: Mn,
- create_slot: no,
- detach: nt,
- element: el,
- empty: Ii,
- get_all_dirty_from_scope: io,
- get_slot_changes: ao,
- get_spread_update: lo,
- init: oo,
- insert_hydration: rn,
- listen: ro,
- noop: so,
- safe_not_equal: uo,
- set_dynamic_element_data: Li,
- set_style: W,
- space: tl,
- svg_element: Pn,
- toggle_class: pe,
- transition_in: nl,
- transition_out: il,
- update_slot_base: co
+ SvelteComponent: io,
+ append_hydration: ei,
+ assign: ao,
+ attr: Fe,
+ binding_callbacks: lo,
+ children: an,
+ claim_element: il,
+ claim_space: al,
+ claim_svg_element: xn,
+ create_slot: oo,
+ detach: at,
+ element: ll,
+ empty: Oi,
+ get_all_dirty_from_scope: ro,
+ get_slot_changes: so,
+ get_spread_update: uo,
+ init: co,
+ insert_hydration: un,
+ listen: _o,
+ noop: fo,
+ safe_not_equal: po,
+ set_dynamic_element_data: qi,
+ set_style: Z,
+ space: ol,
+ svg_element: Un,
+ toggle_class: ge,
+ transition_in: rl,
+ transition_out: sl,
+ update_slot_base: ho
} = window.__gradio__svelte__internal;
-function Oi(i) {
+function Ni(i) {
let e, t, n, a, o;
return {
c() {
- e = Pn("svg"), t = Pn("line"), n = Pn("line"), this.h();
+ e = Un("svg"), t = Un("line"), n = Un("line"), this.h();
},
l(l) {
- e = Mn(l, "svg", { class: !0, xmlns: !0, viewBox: !0 });
- var r = tn(e);
- t = Mn(r, "line", {
+ e = xn(l, "svg", { class: !0, xmlns: !0, viewBox: !0 });
+ var r = an(e);
+ t = xn(r, "line", {
x1: !0,
y1: !0,
x2: !0,
y2: !0,
stroke: !0,
"stroke-width": !0
- }), tn(t).forEach(nt), n = Mn(r, "line", {
+ }), an(t).forEach(at), n = xn(r, "line", {
x1: !0,
y1: !0,
x2: !0,
y2: !0,
stroke: !0,
"stroke-width": !0
- }), tn(n).forEach(nt), r.forEach(nt), this.h();
+ }), an(n).forEach(at), r.forEach(at), this.h();
},
h() {
- we(t, "x1", "1"), we(t, "y1", "9"), we(t, "x2", "9"), we(t, "y2", "1"), we(t, "stroke", "gray"), we(t, "stroke-width", "0.5"), we(n, "x1", "5"), we(n, "y1", "9"), we(n, "x2", "9"), we(n, "y2", "5"), we(n, "stroke", "gray"), we(n, "stroke-width", "0.5"), we(e, "class", "resize-handle svelte-239wnu"), we(e, "xmlns", "http://www.w3.org/2000/svg"), we(e, "viewBox", "0 0 10 10");
+ Fe(t, "x1", "1"), Fe(t, "y1", "9"), Fe(t, "x2", "9"), Fe(t, "y2", "1"), Fe(t, "stroke", "gray"), Fe(t, "stroke-width", "0.5"), Fe(n, "x1", "5"), Fe(n, "y1", "9"), Fe(n, "x2", "9"), Fe(n, "y2", "5"), Fe(n, "stroke", "gray"), Fe(n, "stroke-width", "0.5"), Fe(e, "class", "resize-handle svelte-239wnu"), Fe(e, "xmlns", "http://www.w3.org/2000/svg"), Fe(e, "viewBox", "0 0 10 10");
},
m(l, r) {
- rn(l, e, r), Jn(e, t), Jn(e, n), a || (o = ro(
+ un(l, e, r), ei(e, t), ei(e, n), a || (o = _o(
e,
"mousedown",
/*resize*/
i[27]
), a = !0);
},
- p: so,
+ p: fo,
d(l) {
- l && nt(e), a = !1, o();
+ l && at(e), a = !1, o();
}
};
}
-function _o(i) {
- var h;
+function mo(i) {
+ var m;
let e, t, n, a, o;
const l = (
/*#slots*/
i[31].default
- ), r = no(
+ ), r = oo(
l,
i,
/*$$scope*/
@@ -94,7 +94,7 @@ function _o(i) {
);
let s = (
/*resizable*/
- i[19] && Oi(i)
+ i[19] && Ni(i)
), u = [
{ "data-testid": (
/*test_id*/
@@ -106,7 +106,7 @@ function _o(i) {
) },
{
class: n = "block " + /*elem_classes*/
- (((h = i[7]) == null ? void 0 : h.join(" ")) || "") + " svelte-239wnu"
+ (((m = i[7]) == null ? void 0 : m.join(" ")) || "") + " svelte-239wnu"
},
{
dir: a = /*rtl*/
@@ -114,16 +114,16 @@ function _o(i) {
}
], c = {};
for (let d = 0; d < u.length; d += 1)
- c = eo(c, u[d]);
+ c = ao(c, u[d]);
return {
c() {
- e = el(
+ e = ll(
/*tag*/
i[25]
- ), r && r.c(), t = tl(), s && s.c(), this.h();
+ ), r && r.c(), t = ol(), s && s.c(), this.h();
},
l(d) {
- e = Qa(
+ e = il(
d,
/*tag*/
(i[25] || "null").toUpperCase(),
@@ -134,57 +134,57 @@ function _o(i) {
dir: !0
}
);
- var f = tn(e);
- r && r.l(f), t = Ja(f), s && s.l(f), f.forEach(nt), this.h();
+ var f = an(e);
+ r && r.l(f), t = al(f), s && s.l(f), f.forEach(at), this.h();
},
h() {
- Li(
+ qi(
/*tag*/
i[25]
- )(e, c), pe(
+ )(e, c), ge(
e,
"hidden",
/*visible*/
i[14] === !1
- ), pe(
+ ), ge(
e,
"padded",
/*padding*/
i[10]
- ), pe(
+ ), ge(
e,
"flex",
/*flex*/
i[1]
- ), pe(
+ ), ge(
e,
"border_focus",
/*border_mode*/
i[9] === "focus"
- ), pe(
+ ), ge(
e,
"border_contrast",
/*border_mode*/
i[9] === "contrast"
- ), pe(e, "hide-container", !/*explicit_call*/
+ ), ge(e, "hide-container", !/*explicit_call*/
i[12] && !/*container*/
- i[13]), pe(
+ i[13]), ge(
e,
"fullscreen",
/*fullscreen*/
i[0]
- ), pe(
+ ), ge(
e,
"animating",
/*fullscreen*/
i[0] && /*preexpansionBoundingRect*/
i[24] !== null
- ), pe(
+ ), ge(
e,
"auto-margin",
/*scale*/
i[17] === null
- ), W(
+ ), Z(
e,
"height",
/*fullscreen*/
@@ -195,7 +195,7 @@ function _o(i) {
i[2]
)
)
- ), W(
+ ), Z(
e,
"min-height",
/*fullscreen*/
@@ -206,7 +206,7 @@ function _o(i) {
i[3]
)
)
- ), W(
+ ), Z(
e,
"max-height",
/*fullscreen*/
@@ -217,31 +217,31 @@ function _o(i) {
i[4]
)
)
- ), W(
+ ), Z(
e,
"--start-top",
/*preexpansionBoundingRect*/
i[24] ? `${/*preexpansionBoundingRect*/
i[24].top}px` : "0px"
- ), W(
+ ), Z(
e,
"--start-left",
/*preexpansionBoundingRect*/
i[24] ? `${/*preexpansionBoundingRect*/
i[24].left}px` : "0px"
- ), W(
+ ), Z(
e,
"--start-width",
/*preexpansionBoundingRect*/
i[24] ? `${/*preexpansionBoundingRect*/
i[24].width}px` : "0px"
- ), W(
+ ), Z(
e,
"--start-height",
/*preexpansionBoundingRect*/
i[24] ? `${/*preexpansionBoundingRect*/
i[24].height}px` : "0px"
- ), W(
+ ), Z(
e,
"width",
/*fullscreen*/
@@ -254,12 +254,12 @@ function _o(i) {
i[5]
)
)
- ), W(
+ ), Z(
e,
"border-style",
/*variant*/
i[8]
- ), W(
+ ), Z(
e,
"overflow",
/*allow_overflow*/
@@ -267,42 +267,42 @@ function _o(i) {
/*overflow_behavior*/
i[16]
) : "hidden"
- ), W(
+ ), Z(
e,
"flex-grow",
/*scale*/
i[17]
- ), W(e, "min-width", `calc(min(${/*min_width*/
- i[18]}px, 100%))`), W(e, "border-width", "var(--block-border-width)");
+ ), Z(e, "min-width", `calc(min(${/*min_width*/
+ i[18]}px, 100%))`), Z(e, "border-width", "var(--block-border-width)");
},
m(d, f) {
- rn(d, e, f), r && r.m(e, null), Jn(e, t), s && s.m(e, null), i[32](e), o = !0;
+ un(d, e, f), r && r.m(e, null), ei(e, t), s && s.m(e, null), i[32](e), o = !0;
},
p(d, f) {
var v;
r && r.p && (!o || f[0] & /*$$scope*/
- 1073741824) && co(
+ 1073741824) && ho(
r,
l,
d,
/*$$scope*/
d[30],
- o ? ao(
+ o ? so(
l,
/*$$scope*/
d[30],
f,
null
- ) : io(
+ ) : ro(
/*$$scope*/
d[30]
),
null
), /*resizable*/
- d[19] ? s ? s.p(d, f) : (s = Oi(d), s.c(), s.m(e, null)) : s && (s.d(1), s = null), Li(
+ d[19] ? s ? s.p(d, f) : (s = Ni(d), s.c(), s.m(e, null)) : s && (s.d(1), s = null), qi(
/*tag*/
d[25]
- )(e, c = lo(u, [
+ )(e, c = uo(u, [
(!o || f[0] & /*test_id*/
2048) && { "data-testid": (
/*test_id*/
@@ -319,51 +319,51 @@ function _o(i) {
(!o || f[0] & /*rtl*/
1048576 && a !== (a = /*rtl*/
d[20] ? "rtl" : "ltr")) && { dir: a }
- ])), pe(
+ ])), ge(
e,
"hidden",
/*visible*/
d[14] === !1
- ), pe(
+ ), ge(
e,
"padded",
/*padding*/
d[10]
- ), pe(
+ ), ge(
e,
"flex",
/*flex*/
d[1]
- ), pe(
+ ), ge(
e,
"border_focus",
/*border_mode*/
d[9] === "focus"
- ), pe(
+ ), ge(
e,
"border_contrast",
/*border_mode*/
d[9] === "contrast"
- ), pe(e, "hide-container", !/*explicit_call*/
+ ), ge(e, "hide-container", !/*explicit_call*/
d[12] && !/*container*/
- d[13]), pe(
+ d[13]), ge(
e,
"fullscreen",
/*fullscreen*/
d[0]
- ), pe(
+ ), ge(
e,
"animating",
/*fullscreen*/
d[0] && /*preexpansionBoundingRect*/
d[24] !== null
- ), pe(
+ ), ge(
e,
"auto-margin",
/*scale*/
d[17] === null
), f[0] & /*fullscreen, height*/
- 5 && W(
+ 5 && Z(
e,
"height",
/*fullscreen*/
@@ -375,7 +375,7 @@ function _o(i) {
)
)
), f[0] & /*fullscreen, min_height*/
- 9 && W(
+ 9 && Z(
e,
"min-height",
/*fullscreen*/
@@ -387,7 +387,7 @@ function _o(i) {
)
)
), f[0] & /*fullscreen, max_height*/
- 17 && W(
+ 17 && Z(
e,
"max-height",
/*fullscreen*/
@@ -399,35 +399,35 @@ function _o(i) {
)
)
), f[0] & /*preexpansionBoundingRect*/
- 16777216 && W(
+ 16777216 && Z(
e,
"--start-top",
/*preexpansionBoundingRect*/
d[24] ? `${/*preexpansionBoundingRect*/
d[24].top}px` : "0px"
), f[0] & /*preexpansionBoundingRect*/
- 16777216 && W(
+ 16777216 && Z(
e,
"--start-left",
/*preexpansionBoundingRect*/
d[24] ? `${/*preexpansionBoundingRect*/
d[24].left}px` : "0px"
), f[0] & /*preexpansionBoundingRect*/
- 16777216 && W(
+ 16777216 && Z(
e,
"--start-width",
/*preexpansionBoundingRect*/
d[24] ? `${/*preexpansionBoundingRect*/
d[24].width}px` : "0px"
), f[0] & /*preexpansionBoundingRect*/
- 16777216 && W(
+ 16777216 && Z(
e,
"--start-height",
/*preexpansionBoundingRect*/
d[24] ? `${/*preexpansionBoundingRect*/
d[24].height}px` : "0px"
), f[0] & /*fullscreen, width*/
- 33 && W(
+ 33 && Z(
e,
"width",
/*fullscreen*/
@@ -441,13 +441,13 @@ function _o(i) {
)
)
), f[0] & /*variant*/
- 256 && W(
+ 256 && Z(
e,
"border-style",
/*variant*/
d[8]
), f[0] & /*allow_overflow, overflow_behavior*/
- 98304 && W(
+ 98304 && Z(
e,
"overflow",
/*allow_overflow*/
@@ -456,42 +456,42 @@ function _o(i) {
d[16]
) : "hidden"
), f[0] & /*scale*/
- 131072 && W(
+ 131072 && Z(
e,
"flex-grow",
/*scale*/
d[17]
), f[0] & /*min_width*/
- 262144 && W(e, "min-width", `calc(min(${/*min_width*/
+ 262144 && Z(e, "min-width", `calc(min(${/*min_width*/
d[18]}px, 100%))`);
},
i(d) {
- o || (nl(r, d), o = !0);
+ o || (rl(r, d), o = !0);
},
o(d) {
- il(r, d), o = !1;
+ sl(r, d), o = !1;
},
d(d) {
- d && nt(e), r && r.d(d), s && s.d(), i[32](null);
+ d && at(e), r && r.d(d), s && s.d(), i[32](null);
}
};
}
-function qi(i) {
+function Mi(i) {
let e;
return {
c() {
- e = el("div"), this.h();
+ e = ll("div"), this.h();
},
l(t) {
- e = Qa(t, "DIV", { class: !0 }), tn(e).forEach(nt), this.h();
+ e = il(t, "DIV", { class: !0 }), an(e).forEach(at), this.h();
},
h() {
- we(e, "class", "placeholder svelte-239wnu"), W(
+ Fe(e, "class", "placeholder svelte-239wnu"), Z(
e,
"height",
/*placeholder_height*/
i[22] + "px"
- ), W(
+ ), Z(
e,
"width",
/*placeholder_width*/
@@ -499,17 +499,17 @@ function qi(i) {
);
},
m(t, n) {
- rn(t, e, n);
+ un(t, e, n);
},
p(t, n) {
n[0] & /*placeholder_height*/
- 4194304 && W(
+ 4194304 && Z(
e,
"height",
/*placeholder_height*/
t[22] + "px"
), n[0] & /*placeholder_width*/
- 8388608 && W(
+ 8388608 && Z(
e,
"width",
/*placeholder_width*/
@@ -517,79 +517,79 @@ function qi(i) {
);
},
d(t) {
- t && nt(e);
+ t && at(e);
}
};
}
-function fo(i) {
+function go(i) {
let e, t, n, a = (
/*tag*/
- i[25] && _o(i)
+ i[25] && mo(i)
), o = (
/*fullscreen*/
- i[0] && qi(i)
+ i[0] && Mi(i)
);
return {
c() {
- a && a.c(), e = tl(), o && o.c(), t = Ii();
+ a && a.c(), e = ol(), o && o.c(), t = Oi();
},
l(l) {
- a && a.l(l), e = Ja(l), o && o.l(l), t = Ii();
+ a && a.l(l), e = al(l), o && o.l(l), t = Oi();
},
m(l, r) {
- a && a.m(l, r), rn(l, e, r), o && o.m(l, r), rn(l, t, r), n = !0;
+ a && a.m(l, r), un(l, e, r), o && o.m(l, r), un(l, t, r), n = !0;
},
p(l, r) {
/*tag*/
l[25] && a.p(l, r), /*fullscreen*/
- l[0] ? o ? o.p(l, r) : (o = qi(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
+ l[0] ? o ? o.p(l, r) : (o = Mi(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
},
i(l) {
- n || (nl(a, l), n = !0);
+ n || (rl(a, l), n = !0);
},
o(l) {
- il(a, l), n = !1;
+ sl(a, l), n = !1;
},
d(l) {
- l && (nt(e), nt(t)), a && a.d(l), o && o.d(l);
+ l && (at(e), at(t)), a && a.d(l), o && o.d(l);
}
};
}
-function po(i, e, t) {
- let { $$slots: n = {}, $$scope: a } = e, { height: o = void 0 } = e, { min_height: l = void 0 } = e, { max_height: r = void 0 } = e, { width: s = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: c = [] } = e, { variant: h = "solid" } = e, { border_mode: d = "base" } = e, { padding: f = !0 } = e, { type: v = "normal" } = e, { test_id: b = void 0 } = e, { explicit_call: w = !1 } = e, { container: k = !0 } = e, { visible: m = !0 } = e, { allow_overflow: _ = !0 } = e, { overflow_behavior: g = "auto" } = e, { scale: y = null } = e, { min_width: F = 0 } = e, { flex: C = !1 } = e, { resizable: T = !1 } = e, { rtl: S = !1 } = e, { fullscreen: z = !1 } = e, N = z, j, ke = v === "fieldset" ? "fieldset" : "div", ue = 0, $e = 0, _e = null;
- function ne($) {
- z && $.key === "Escape" && t(0, z = !1);
- }
- const X = ($) => {
- if ($ !== void 0) {
- if (typeof $ == "number")
- return $ + "px";
- if (typeof $ == "string")
- return $;
- }
- }, se = ($) => {
- let oe = $.clientY;
- const K = (A) => {
- const Se = A.clientY - oe;
- oe = A.clientY, t(21, j.style.height = `${j.offsetHeight + Se}px`, j);
- }, de = () => {
- window.removeEventListener("mousemove", K), window.removeEventListener("mouseup", de);
+function vo(i, e, t) {
+ let { $$slots: n = {}, $$scope: a } = e, { height: o = void 0 } = e, { min_height: l = void 0 } = e, { max_height: r = void 0 } = e, { width: s = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: c = [] } = e, { variant: m = "solid" } = e, { border_mode: d = "base" } = e, { padding: f = !0 } = e, { type: v = "normal" } = e, { test_id: D = void 0 } = e, { explicit_call: w = !1 } = e, { container: F = !0 } = e, { visible: h = !0 } = e, { allow_overflow: _ = !0 } = e, { overflow_behavior: g = "auto" } = e, { scale: y = null } = e, { min_width: $ = 0 } = e, { flex: C = !1 } = e, { resizable: I = !1 } = e, { rtl: T = !1 } = e, { fullscreen: M = !1 } = e, N = M, j, ke = v === "fieldset" ? "fieldset" : "div", ce = 0, Ee = 0, pe = null;
+ function ie(k) {
+ M && k.key === "Escape" && t(0, M = !1);
+ }
+ const Q = (k) => {
+ if (k !== void 0) {
+ if (typeof k == "number")
+ return k + "px";
+ if (typeof k == "string")
+ return k;
+ }
+ }, se = (k) => {
+ let oe = k.clientY;
+ const J = (A) => {
+ const Te = A.clientY - oe;
+ oe = A.clientY, t(21, j.style.height = `${j.offsetHeight + Te}px`, j);
+ }, he = () => {
+ window.removeEventListener("mousemove", J), window.removeEventListener("mouseup", he);
};
- window.addEventListener("mousemove", K), window.addEventListener("mouseup", de);
+ window.addEventListener("mousemove", J), window.addEventListener("mouseup", he);
};
- function ve($) {
- to[$ ? "unshift" : "push"](() => {
- j = $, t(21, j);
+ function be(k) {
+ lo[k ? "unshift" : "push"](() => {
+ j = k, t(21, j);
});
}
- return i.$$set = ($) => {
- "height" in $ && t(2, o = $.height), "min_height" in $ && t(3, l = $.min_height), "max_height" in $ && t(4, r = $.max_height), "width" in $ && t(5, s = $.width), "elem_id" in $ && t(6, u = $.elem_id), "elem_classes" in $ && t(7, c = $.elem_classes), "variant" in $ && t(8, h = $.variant), "border_mode" in $ && t(9, d = $.border_mode), "padding" in $ && t(10, f = $.padding), "type" in $ && t(28, v = $.type), "test_id" in $ && t(11, b = $.test_id), "explicit_call" in $ && t(12, w = $.explicit_call), "container" in $ && t(13, k = $.container), "visible" in $ && t(14, m = $.visible), "allow_overflow" in $ && t(15, _ = $.allow_overflow), "overflow_behavior" in $ && t(16, g = $.overflow_behavior), "scale" in $ && t(17, y = $.scale), "min_width" in $ && t(18, F = $.min_width), "flex" in $ && t(1, C = $.flex), "resizable" in $ && t(19, T = $.resizable), "rtl" in $ && t(20, S = $.rtl), "fullscreen" in $ && t(0, z = $.fullscreen), "$$scope" in $ && t(30, a = $.$$scope);
+ return i.$$set = (k) => {
+ "height" in k && t(2, o = k.height), "min_height" in k && t(3, l = k.min_height), "max_height" in k && t(4, r = k.max_height), "width" in k && t(5, s = k.width), "elem_id" in k && t(6, u = k.elem_id), "elem_classes" in k && t(7, c = k.elem_classes), "variant" in k && t(8, m = k.variant), "border_mode" in k && t(9, d = k.border_mode), "padding" in k && t(10, f = k.padding), "type" in k && t(28, v = k.type), "test_id" in k && t(11, D = k.test_id), "explicit_call" in k && t(12, w = k.explicit_call), "container" in k && t(13, F = k.container), "visible" in k && t(14, h = k.visible), "allow_overflow" in k && t(15, _ = k.allow_overflow), "overflow_behavior" in k && t(16, g = k.overflow_behavior), "scale" in k && t(17, y = k.scale), "min_width" in k && t(18, $ = k.min_width), "flex" in k && t(1, C = k.flex), "resizable" in k && t(19, I = k.resizable), "rtl" in k && t(20, T = k.rtl), "fullscreen" in k && t(0, M = k.fullscreen), "$$scope" in k && t(30, a = k.$$scope);
}, i.$$.update = () => {
i.$$.dirty[0] & /*fullscreen, old_fullscreen, element*/
- 538968065 && z !== N && (t(29, N = z), z ? (t(24, _e = j.getBoundingClientRect()), t(22, ue = j.offsetHeight), t(23, $e = j.offsetWidth), window.addEventListener("keydown", ne)) : (t(24, _e = null), window.removeEventListener("keydown", ne))), i.$$.dirty[0] & /*visible*/
- 16384 && (m || t(1, C = !1));
+ 538968065 && M !== N && (t(29, N = M), M ? (t(24, pe = j.getBoundingClientRect()), t(22, ce = j.offsetHeight), t(23, Ee = j.offsetWidth), window.addEventListener("keydown", ie)) : (t(24, pe = null), window.removeEventListener("keydown", ie))), i.$$.dirty[0] & /*visible*/
+ 16384 && (h || t(1, C = !1));
}, [
- z,
+ M,
C,
o,
l,
@@ -597,41 +597,41 @@ function po(i, e, t) {
s,
u,
c,
- h,
+ m,
d,
f,
- b,
+ D,
w,
- k,
- m,
+ F,
+ h,
_,
g,
y,
- F,
+ $,
+ I,
T,
- S,
j,
- ue,
- $e,
- _e,
+ ce,
+ Ee,
+ pe,
ke,
- X,
+ Q,
se,
v,
N,
a,
n,
- ve
+ be
];
}
-class ho extends Jl {
+class bo extends io {
constructor(e) {
- super(), oo(
+ super(), co(
this,
e,
+ vo,
+ go,
po,
- fo,
- uo,
{
height: 2,
min_height: 3,
@@ -661,7 +661,7 @@ class ho extends Jl {
);
}
}
-function di() {
+function fi() {
return {
async: !1,
breaks: !1,
@@ -675,37 +675,37 @@ function di() {
walkTokens: null
};
}
-let Bt = di();
-function al(i) {
- Bt = i;
+let Lt = fi();
+function ul(i) {
+ Lt = i;
}
-const ll = /[&<>"']/, mo = new RegExp(ll.source, "g"), ol = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, go = new RegExp(ol.source, "g"), vo = {
+const cl = /[&<>"']/, Do = new RegExp(cl.source, "g"), _l = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, yo = new RegExp(_l.source, "g"), wo = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
-}, Ni = (i) => vo[i];
+}, Pi = (i) => wo[i];
function Oe(i, e) {
if (e) {
- if (ll.test(i))
- return i.replace(mo, Ni);
- } else if (ol.test(i))
- return i.replace(go, Ni);
+ if (cl.test(i))
+ return i.replace(Do, Pi);
+ } else if (_l.test(i))
+ return i.replace(yo, Pi);
return i;
}
-const Do = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
-function bo(i) {
- return i.replace(Do, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
+const Fo = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
+function $o(i) {
+ return i.replace(Fo, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
}
-const yo = /(^|[^\[])\^/g;
-function Y(i, e) {
+const ko = /(^|[^\[])\^/g;
+function K(i, e) {
let t = typeof i == "string" ? i : i.source;
e = e || "";
const n = {
replace: (a, o) => {
let l = typeof o == "string" ? o : o.source;
- return l = l.replace(yo, "$1"), t = t.replace(a, l), n;
+ return l = l.replace(ko, "$1"), t = t.replace(a, l), n;
},
getRegex: () => new RegExp(t, e)
};
@@ -719,8 +719,8 @@ function zi(i) {
}
return i;
}
-const nn = { exec: () => null };
-function Mi(i, e) {
+const ln = { exec: () => null };
+function xi(i, e) {
const t = i.replace(/\|/g, (o, l, r) => {
let s = !1, u = l;
for (; --u >= 0 && r[u] === "\\"; )
@@ -738,7 +738,7 @@ function Mi(i, e) {
n[a] = n[a].trim().replace(/\\\|/g, "|");
return n;
}
-function hn(i, e, t) {
+function gn(i, e, t) {
const n = i.length;
if (n === 0)
return "";
@@ -747,7 +747,7 @@ function hn(i, e, t) {
a++;
return i.slice(0, n - a);
}
-function wo(i, e) {
+function Eo(i, e) {
if (i.indexOf(e[1]) === -1)
return -1;
let t = 0;
@@ -760,7 +760,7 @@ function wo(i, e) {
return n;
return -1;
}
-function Pi(i, e, t, n) {
+function Ui(i, e, t, n) {
const a = e.href, o = e.title ? Oe(e.title) : null, l = i[1].replace(/\\([\[\]])/g, "$1");
if (i[0].charAt(0) !== "!") {
n.state.inLink = !0;
@@ -782,7 +782,7 @@ function Pi(i, e, t, n) {
text: Oe(l)
};
}
-function Fo(i, e) {
+function Ao(i, e) {
const t = i.match(/^(\s+)(?:```)/);
if (t === null)
return e;
@@ -797,14 +797,14 @@ function Fo(i, e) {
}).join(`
`);
}
-class Cn {
+class Bn {
// set by the lexer
constructor(e) {
ee(this, "options");
ee(this, "rules");
// set by the lexer
ee(this, "lexer");
- this.options = e || Bt;
+ this.options = e || Lt;
}
space(e) {
const t = this.rules.block.newline.exec(e);
@@ -822,7 +822,7 @@ class Cn {
type: "code",
raw: t[0],
codeBlockStyle: "indented",
- text: this.options.pedantic ? n : hn(n, `
+ text: this.options.pedantic ? n : gn(n, `
`)
};
}
@@ -830,7 +830,7 @@ class Cn {
fences(e) {
const t = this.rules.block.fences.exec(e);
if (t) {
- const n = t[0], a = Fo(n, t[3] || "");
+ const n = t[0], a = Ao(n, t[3] || "");
return {
type: "code",
raw: n,
@@ -844,7 +844,7 @@ class Cn {
if (t) {
let n = t[2].trim();
if (/#$/.test(n)) {
- const a = hn(n, "#");
+ const a = gn(n, "#");
(this.options.pedantic || !a || / $/.test(a)) && (n = a.trim());
}
return {
@@ -869,7 +869,7 @@ class Cn {
if (t) {
let n = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, `
$1`);
- n = hn(n.replace(/^ *>[ \t]?/gm, ""), `
+ n = gn(n.replace(/^ *>[ \t]?/gm, ""), `
`);
const a = this.lexer.state.top;
this.lexer.state.top = !0;
@@ -902,38 +902,38 @@ class Cn {
if (!(t = l.exec(e)) || this.rules.block.hr.test(e))
break;
r = t[0], e = e.substring(r.length);
- let h = t[2].split(`
-`, 1)[0].replace(/^\t+/, (k) => " ".repeat(3 * k.length)), d = e.split(`
+ let m = t[2].split(`
+`, 1)[0].replace(/^\t+/, (F) => " ".repeat(3 * F.length)), d = e.split(`
`, 1)[0], f = 0;
- this.options.pedantic ? (f = 2, s = h.trimStart()) : (f = t[2].search(/[^ ]/), f = f > 4 ? 1 : f, s = h.slice(f), f += t[1].length);
+ this.options.pedantic ? (f = 2, s = m.trimStart()) : (f = t[2].search(/[^ ]/), f = f > 4 ? 1 : f, s = m.slice(f), f += t[1].length);
let v = !1;
- if (!h && /^ *$/.test(d) && (r += d + `
+ if (!m && /^ *$/.test(d) && (r += d + `
`, e = e.substring(d.length + 1), c = !0), !c) {
- const k = new RegExp(`^ {0,${Math.min(3, f - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), m = new RegExp(`^ {0,${Math.min(3, f - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), _ = new RegExp(`^ {0,${Math.min(3, f - 1)}}(?:\`\`\`|~~~)`), g = new RegExp(`^ {0,${Math.min(3, f - 1)}}#`);
+ const F = new RegExp(`^ {0,${Math.min(3, f - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), h = new RegExp(`^ {0,${Math.min(3, f - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), _ = new RegExp(`^ {0,${Math.min(3, f - 1)}}(?:\`\`\`|~~~)`), g = new RegExp(`^ {0,${Math.min(3, f - 1)}}#`);
for (; e; ) {
const y = e.split(`
`, 1)[0];
- if (d = y, this.options.pedantic && (d = d.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), _.test(d) || g.test(d) || k.test(d) || m.test(e))
+ if (d = y, this.options.pedantic && (d = d.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), _.test(d) || g.test(d) || F.test(d) || h.test(e))
break;
if (d.search(/[^ ]/) >= f || !d.trim())
s += `
` + d.slice(f);
else {
- if (v || h.search(/[^ ]/) >= 4 || _.test(h) || g.test(h) || m.test(h))
+ if (v || m.search(/[^ ]/) >= 4 || _.test(m) || g.test(m) || h.test(m))
break;
s += `
` + d;
}
!v && !d.trim() && (v = !0), r += y + `
-`, e = e.substring(y.length + 1), h = d.slice(f);
+`, e = e.substring(y.length + 1), m = d.slice(f);
}
}
o.loose || (u ? o.loose = !0 : /\n *\n *$/.test(r) && (u = !0));
- let b = null, w;
- this.options.gfm && (b = /^\[[ xX]\] /.exec(s), b && (w = b[0] !== "[ ] ", s = s.replace(/^\[[ xX]\] +/, ""))), o.items.push({
+ let D = null, w;
+ this.options.gfm && (D = /^\[[ xX]\] /.exec(s), D && (w = D[0] !== "[ ] ", s = s.replace(/^\[[ xX]\] +/, ""))), o.items.push({
type: "list_item",
raw: r,
- task: !!b,
+ task: !!D,
checked: w,
loose: !1,
text: s,
@@ -943,7 +943,7 @@ class Cn {
o.items[o.items.length - 1].raw = r.trimEnd(), o.items[o.items.length - 1].text = s.trimEnd(), o.raw = o.raw.trimEnd();
for (let c = 0; c < o.items.length; c++)
if (this.lexer.state.top = !1, o.items[c].tokens = this.lexer.blockTokens(o.items[c].text, []), !o.loose) {
- const h = o.items[c].tokens.filter((f) => f.type === "space"), d = h.length > 0 && h.some((f) => /\n.*\n/.test(f.raw));
+ const m = o.items[c].tokens.filter((f) => f.type === "space"), d = m.length > 0 && m.some((f) => /\n.*\n/.test(f.raw));
o.loose = d;
}
if (o.loose)
@@ -980,7 +980,7 @@ class Cn {
const t = this.rules.block.table.exec(e);
if (!t || !/[:|]/.test(t[2]))
return;
- const n = Mi(t[1]), a = t[2].replace(/^\||\| *$/g, "").split("|"), o = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
+ const n = xi(t[1]), a = t[2].replace(/^\||\| *$/g, "").split("|"), o = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
`) : [], l = {
type: "table",
raw: t[0],
@@ -997,7 +997,7 @@ class Cn {
tokens: this.lexer.inline(r)
});
for (const r of o)
- l.rows.push(Mi(r, l.header.length).map((s) => ({
+ l.rows.push(xi(r, l.header.length).map((s) => ({
text: s,
tokens: this.lexer.inline(s)
})));
@@ -1066,11 +1066,11 @@ class Cn {
if (!this.options.pedantic && /^$/.test(n))
return;
- const l = hn(n.slice(0, -1), "\\");
+ const l = gn(n.slice(0, -1), "\\");
if ((n.length - l.length) % 2 === 0)
return;
} else {
- const l = wo(t[2], "()");
+ const l = Eo(t[2], "()");
if (l > -1) {
const s = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + l;
t[2] = t[2].substring(0, l), t[0] = t[0].substring(0, s).trim(), t[3] = "";
@@ -1082,7 +1082,7 @@ class Cn {
l && (a = l[1], o = l[3]);
} else
o = t[3] ? t[3].slice(1, -1) : "";
- return a = a.trim(), /^$/.test(n) ? a = a.slice(1) : a = a.slice(1, -1)), Pi(t, {
+ return a = a.trim(), /^$/.test(n) ? a = a.slice(1) : a = a.slice(1, -1)), Ui(t, {
href: a && a.replace(this.rules.inline.anyPunctuation, "$1"),
title: o && o.replace(this.rules.inline.anyPunctuation, "$1")
}, t[0], this.lexer);
@@ -1100,7 +1100,7 @@ class Cn {
text: l
};
}
- return Pi(n, o, n[0], this.lexer);
+ return Ui(n, o, n[0], this.lexer);
}
}
emStrong(e, t, n = "") {
@@ -1110,8 +1110,8 @@ class Cn {
if (!(a[1] || a[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
const l = [...a[0]].length - 1;
let r, s, u = l, c = 0;
- const h = a[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
- for (h.lastIndex = 0, t = t.slice(-1 * e.length + l); (a = h.exec(t)) != null; ) {
+ const m = a[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
+ for (m.lastIndex = 0, t = t.slice(-1 * e.length + l); (a = m.exec(t)) != null; ) {
if (r = a[1] || a[2] || a[3] || a[4] || a[5] || a[6], !r)
continue;
if (s = [...r].length, a[3] || a[4]) {
@@ -1126,12 +1126,12 @@ class Cn {
s = Math.min(s, s + u + c);
const d = [...a[0]][0].length, f = e.slice(0, l + a.index + d + s);
if (Math.min(l, s) % 2) {
- const b = f.slice(1, -1);
+ const D = f.slice(1, -1);
return {
type: "em",
raw: f,
- text: b,
- tokens: this.lexer.inlineTokens(b)
+ text: D,
+ tokens: this.lexer.inlineTokens(D)
};
}
const v = f.slice(2, -2);
@@ -1234,118 +1234,118 @@ class Cn {
}
}
}
-const ko = /^(?: *(?:\n|$))+/, $o = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Eo = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, sn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ao = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, rl = /(?:[*+-]|\d{1,9}[.)])/, sl = Y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, rl).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), fi = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Co = /^[^\n]+/, pi = /(?!\s*\])(?:\\.|[^\[\]\\])+/, So = Y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", pi).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), To = Y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, rl).getRegex(), In = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", hi = /|$))/, Bo = Y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", hi).replace("tag", In).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ul = Y(fi).replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex(), Ro = Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ul).getRegex(), mi = {
- blockquote: Ro,
- code: $o,
- def: So,
- fences: Eo,
- heading: Ao,
- hr: sn,
- html: Bo,
- lheading: sl,
- list: To,
- newline: ko,
- paragraph: ul,
- table: nn,
- text: Co
-}, xi = Y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex(), Io = {
- ...mi,
- table: xi,
- paragraph: Y(fi).replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", xi).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex()
-}, Lo = {
- ...mi,
- html: Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", hi).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
+const Co = /^(?: *(?:\n|$))+/, So = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, To = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, cn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Bo = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, dl = /(?:[*+-]|\d{1,9}[.)])/, fl = K(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, dl).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), pi = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Io = /^[^\n]+/, hi = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ro = K(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", hi).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Lo = K(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, dl).getRegex(), qn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", mi = /|$))/, Oo = K("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", mi).replace("tag", qn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), pl = K(pi).replace("hr", cn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", qn).getRegex(), qo = K(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pl).getRegex(), gi = {
+ blockquote: qo,
+ code: So,
+ def: Ro,
+ fences: To,
+ heading: Bo,
+ hr: cn,
+ html: Oo,
+ lheading: fl,
+ list: Lo,
+ newline: Co,
+ paragraph: pl,
+ table: ln,
+ text: Io
+}, Hi = K("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", cn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", qn).getRegex(), No = {
+ ...gi,
+ table: Hi,
+ paragraph: K(pi).replace("hr", cn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Hi).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", qn).getRegex()
+}, Mo = {
+ ...gi,
+ html: K(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", mi).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
def: /^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
heading: /^(#{1,6})(.*)(?:\n+|$)/,
- fences: nn,
+ fences: ln,
// fences not supported
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
- paragraph: Y(fi).replace("hr", sn).replace("heading", ` *#{1,6} *[^
-]`).replace("lheading", sl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
-}, cl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Oo = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, _l = /^( {2,}|\\)\n(?!\s*$)/, qo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Mo = Y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, un).getRegex(), Po = Y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, un).getRegex(), xo = Y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, un).getRegex(), Uo = Y(/\\([punct])/, "gu").replace(/punct/g, un).getRegex(), Ho = Y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), jo = Y(hi).replace("(?:-->|$)", "-->").getRegex(), Go = Y("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", jo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Sn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Vo = Y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Sn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), dl = Y(/^!?\[(label)\]\[(ref)\]/).replace("label", Sn).replace("ref", pi).getRegex(), fl = Y(/^!?\[(ref)\](?:\[\])?/).replace("ref", pi).getRegex(), Wo = Y("reflink|nolink(?!\\()", "g").replace("reflink", dl).replace("nolink", fl).getRegex(), gi = {
- _backpedal: nn,
+ paragraph: K(pi).replace("hr", cn).replace("heading", ` *#{1,6} *[^
+]`).replace("lheading", fl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
+}, hl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Po = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ml = /^( {2,}|\\)\n(?!\s*$)/, zo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Ho = K(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, _n).getRegex(), Go = K("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, _n).getRegex(), jo = K("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, _n).getRegex(), Vo = K(/\\([punct])/, "gu").replace(/punct/g, _n).getRegex(), Wo = K(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Zo = K(mi).replace("(?:-->|$)", "-->").getRegex(), Yo = K("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Zo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), In = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Xo = K(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", In).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), gl = K(/^!?\[(label)\]\[(ref)\]/).replace("label", In).replace("ref", hi).getRegex(), vl = K(/^!?\[(ref)\](?:\[\])?/).replace("ref", hi).getRegex(), Ko = K("reflink|nolink(?!\\()", "g").replace("reflink", gl).replace("nolink", vl).getRegex(), vi = {
+ _backpedal: ln,
// only used for GFM url
- anyPunctuation: Uo,
- autolink: Ho,
- blockSkip: zo,
- br: _l,
- code: Oo,
- del: nn,
- emStrongLDelim: Mo,
- emStrongRDelimAst: Po,
- emStrongRDelimUnd: xo,
- escape: cl,
- link: Vo,
- nolink: fl,
- punctuation: No,
- reflink: dl,
- reflinkSearch: Wo,
- tag: Go,
- text: qo,
- url: nn
-}, Zo = {
- ...gi,
- link: Y(/^!?\[(label)\]\((.*?)\)/).replace("label", Sn).getRegex(),
- reflink: Y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Sn).getRegex()
-}, ei = {
- ...gi,
- escape: Y(cl).replace("])", "~|])").getRegex(),
- url: Y(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
+ anyPunctuation: Vo,
+ autolink: Wo,
+ blockSkip: Uo,
+ br: ml,
+ code: Po,
+ del: ln,
+ emStrongLDelim: Ho,
+ emStrongRDelimAst: Go,
+ emStrongRDelimUnd: jo,
+ escape: hl,
+ link: Xo,
+ nolink: vl,
+ punctuation: xo,
+ reflink: gl,
+ reflinkSearch: Ko,
+ tag: Yo,
+ text: zo,
+ url: ln
+}, Qo = {
+ ...vi,
+ link: K(/^!?\[(label)\]\((.*?)\)/).replace("label", In).getRegex(),
+ reflink: K(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", In).getRegex()
+}, ti = {
+ ...vi,
+ escape: K(hl).replace("])", "~|])").getRegex(),
+ url: K(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ {
- d = f.call({ lexer: this }, h), typeof d == "number" && d >= 0 && (c = Math.min(c, d));
+ d = f.call({ lexer: this }, m), typeof d == "number" && d >= 0 && (c = Math.min(c, d));
}), c < 1 / 0 && c >= 0 && (o = e.substring(0, c + 1));
}
if (n = this.tokenizer.inlineText(o)) {
@@ -1531,10 +1531,10 @@ class it {
return t;
}
}
-class Tn {
+class Rn {
constructor(e) {
ee(this, "options");
- this.options = e || Bt;
+ this.options = e || Lt;
}
code(e, t, n) {
var o;
@@ -1632,7 +1632,7 @@ ${e}
return e;
}
}
-class vi {
+class bi {
// no need for block level renderers
strong(e) {
return e;
@@ -1662,24 +1662,24 @@ class vi {
return "";
}
}
-class at {
+class ot {
constructor(e) {
ee(this, "options");
ee(this, "renderer");
ee(this, "textRenderer");
- this.options = e || Bt, this.options.renderer = this.options.renderer || new Tn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new vi();
+ this.options = e || Lt, this.options.renderer = this.options.renderer || new Rn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new bi();
}
/**
* Static Parse Method
*/
static parse(e, t) {
- return new at(t).parse(e);
+ return new ot(t).parse(e);
}
/**
* Static Parse Inline Method
*/
static parseInline(e, t) {
- return new at(t).parseInline(e);
+ return new ot(t).parseInline(e);
}
/**
* Parse Loop
@@ -1704,7 +1704,7 @@ class at {
}
case "heading": {
const l = o;
- n += this.renderer.heading(this.parseInline(l.tokens), l.depth, bo(this.parseInline(l.tokens, this.textRenderer)));
+ n += this.renderer.heading(this.parseInline(l.tokens), l.depth, $o(this.parseInline(l.tokens, this.textRenderer)));
continue;
}
case "code": {
@@ -1720,10 +1720,10 @@ class at {
r += this.renderer.tablerow(s);
let u = "";
for (let c = 0; c < l.rows.length; c++) {
- const h = l.rows[c];
+ const m = l.rows[c];
s = "";
- for (let d = 0; d < h.length; d++)
- s += this.renderer.tablecell(this.parseInline(h[d].tokens), { header: !1, align: l.align[d] });
+ for (let d = 0; d < m.length; d++)
+ s += this.renderer.tablecell(this.parseInline(m[d].tokens), { header: !1, align: l.align[d] });
u += this.renderer.tablerow(s);
}
n += this.renderer.table(r, u);
@@ -1737,17 +1737,17 @@ class at {
case "list": {
const l = o, r = l.ordered, s = l.start, u = l.loose;
let c = "";
- for (let h = 0; h < l.items.length; h++) {
- const d = l.items[h], f = d.checked, v = d.task;
- let b = "";
+ for (let m = 0; m < l.items.length; m++) {
+ const d = l.items[m], f = d.checked, v = d.task;
+ let D = "";
if (d.task) {
const w = this.renderer.checkbox(!!f);
u ? d.tokens.length > 0 && d.tokens[0].type === "paragraph" ? (d.tokens[0].text = w + " " + d.tokens[0].text, d.tokens[0].tokens && d.tokens[0].tokens.length > 0 && d.tokens[0].tokens[0].type === "text" && (d.tokens[0].tokens[0].text = w + " " + d.tokens[0].tokens[0].text)) : d.tokens.unshift({
type: "text",
text: w + " "
- }) : b += w + " ";
+ }) : D += w + " ";
}
- b += this.parse(d.tokens, u), c += this.renderer.listitem(b, v, !!f);
+ D += this.parse(d.tokens, u), c += this.renderer.listitem(D, v, !!f);
}
n += this.renderer.list(c, r, s);
continue;
@@ -1856,10 +1856,10 @@ class at {
return n;
}
}
-class an {
+class on {
constructor(e) {
ee(this, "options");
- this.options = e || Bt;
+ this.options = e || Lt;
}
/**
* Process markdown before marked
@@ -1880,25 +1880,25 @@ class an {
return e;
}
}
-ee(an, "passThroughHooks", /* @__PURE__ */ new Set([
+ee(on, "passThroughHooks", /* @__PURE__ */ new Set([
"preprocess",
"postprocess",
"processAllTokens"
]));
-var Tt, ti, pl;
-class Xo {
+var Rt, ni, bl;
+class er {
constructor(...e) {
- Ri(this, Tt);
- ee(this, "defaults", di());
+ Li(this, Rt);
+ ee(this, "defaults", fi());
ee(this, "options", this.setOptions);
- ee(this, "parse", pn(this, Tt, ti).call(this, it.lex, at.parse));
- ee(this, "parseInline", pn(this, Tt, ti).call(this, it.lexInline, at.parseInline));
- ee(this, "Parser", at);
- ee(this, "Renderer", Tn);
- ee(this, "TextRenderer", vi);
- ee(this, "Lexer", it);
- ee(this, "Tokenizer", Cn);
- ee(this, "Hooks", an);
+ ee(this, "parse", mn(this, Rt, ni).call(this, lt.lex, ot.parse));
+ ee(this, "parseInline", mn(this, Rt, ni).call(this, lt.lexInline, ot.parseInline));
+ ee(this, "Parser", ot);
+ ee(this, "Renderer", Rn);
+ ee(this, "TextRenderer", bi);
+ ee(this, "Lexer", lt);
+ ee(this, "Tokenizer", Bn);
+ ee(this, "Hooks", on);
this.use(...e);
}
/**
@@ -1955,7 +1955,7 @@ class Xo {
}
"childTokens" in o && o.childTokens && (t.childTokens[o.name] = o.childTokens);
}), a.extensions = t), n.renderer) {
- const o = this.defaults.renderer || new Tn(this.defaults);
+ const o = this.defaults.renderer || new Rn(this.defaults);
for (const l in n.renderer) {
if (!(l in o))
throw new Error(`renderer '${l}' does not exist`);
@@ -1963,14 +1963,14 @@ class Xo {
continue;
const r = l, s = n.renderer[r], u = o[r];
o[r] = (...c) => {
- let h = s.apply(o, c);
- return h === !1 && (h = u.apply(o, c)), h || "";
+ let m = s.apply(o, c);
+ return m === !1 && (m = u.apply(o, c)), m || "";
};
}
a.renderer = o;
}
if (n.tokenizer) {
- const o = this.defaults.tokenizer || new Cn(this.defaults);
+ const o = this.defaults.tokenizer || new Bn(this.defaults);
for (const l in n.tokenizer) {
if (!(l in o))
throw new Error(`tokenizer '${l}' does not exist`);
@@ -1978,28 +1978,28 @@ class Xo {
continue;
const r = l, s = n.tokenizer[r], u = o[r];
o[r] = (...c) => {
- let h = s.apply(o, c);
- return h === !1 && (h = u.apply(o, c)), h;
+ let m = s.apply(o, c);
+ return m === !1 && (m = u.apply(o, c)), m;
};
}
a.tokenizer = o;
}
if (n.hooks) {
- const o = this.defaults.hooks || new an();
+ const o = this.defaults.hooks || new on();
for (const l in n.hooks) {
if (!(l in o))
throw new Error(`hook '${l}' does not exist`);
if (l === "options")
continue;
const r = l, s = n.hooks[r], u = o[r];
- an.passThroughHooks.has(l) ? o[r] = (c) => {
+ on.passThroughHooks.has(l) ? o[r] = (c) => {
if (this.defaults.async)
return Promise.resolve(s.call(o, c)).then((d) => u.call(o, d));
- const h = s.call(o, c);
- return u.call(o, h);
+ const m = s.call(o, c);
+ return u.call(o, m);
} : o[r] = (...c) => {
- let h = s.apply(o, c);
- return h === !1 && (h = u.apply(o, c)), h;
+ let m = s.apply(o, c);
+ return m === !1 && (m = u.apply(o, c)), m;
};
}
a.hooks = o;
@@ -2018,17 +2018,17 @@ class Xo {
return this.defaults = { ...this.defaults, ...e }, this;
}
lexer(e, t) {
- return it.lex(e, t ?? this.defaults);
+ return lt.lex(e, t ?? this.defaults);
}
parser(e, t) {
- return at.parse(e, t ?? this.defaults);
+ return ot.parse(e, t ?? this.defaults);
}
}
-Tt = new WeakSet(), ti = function(e, t) {
+Rt = new WeakSet(), ni = function(e, t) {
return (n, a) => {
const o = { ...a }, l = { ...this.defaults, ...o };
this.defaults.async === !0 && o.async === !1 && (l.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), l.async = !0);
- const r = pn(this, Tt, pl).call(this, !!l.silent, !!l.async);
+ const r = mn(this, Rt, bl).call(this, !!l.silent, !!l.async);
if (typeof n > "u" || n === null)
return r(new Error("marked(): input parameter is undefined or null"));
if (typeof n != "string")
@@ -2045,7 +2045,7 @@ Tt = new WeakSet(), ti = function(e, t) {
return r(s);
}
};
-}, pl = function(e, t) {
+}, bl = function(e, t) {
return (n) => {
if (n.message += `
Please report this to https://github.com/markedjs/marked.`, e) {
@@ -2057,40 +2057,40 @@ Please report this to https://github.com/markedjs/marked.`, e) {
throw n;
};
};
-const St = new Xo();
-function Z(i, e) {
- return St.parse(i, e);
+const It = new er();
+function X(i, e) {
+ return It.parse(i, e);
}
-Z.options = Z.setOptions = function(i) {
- return St.setOptions(i), Z.defaults = St.defaults, al(Z.defaults), Z;
+X.options = X.setOptions = function(i) {
+ return It.setOptions(i), X.defaults = It.defaults, ul(X.defaults), X;
};
-Z.getDefaults = di;
-Z.defaults = Bt;
-Z.use = function(...i) {
- return St.use(...i), Z.defaults = St.defaults, al(Z.defaults), Z;
+X.getDefaults = fi;
+X.defaults = Lt;
+X.use = function(...i) {
+ return It.use(...i), X.defaults = It.defaults, ul(X.defaults), X;
};
-Z.walkTokens = function(i, e) {
- return St.walkTokens(i, e);
+X.walkTokens = function(i, e) {
+ return It.walkTokens(i, e);
};
-Z.parseInline = St.parseInline;
-Z.Parser = at;
-Z.parser = at.parse;
-Z.Renderer = Tn;
-Z.TextRenderer = vi;
-Z.Lexer = it;
-Z.lexer = it.lex;
-Z.Tokenizer = Cn;
-Z.Hooks = an;
-Z.parse = Z;
-Z.options;
-Z.setOptions;
-Z.use;
-Z.walkTokens;
-Z.parseInline;
-at.parse;
-it.lex;
-const Ko = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, Qo = Object.hasOwnProperty;
-class hl {
+X.parseInline = It.parseInline;
+X.Parser = ot;
+X.parser = ot.parse;
+X.Renderer = Rn;
+X.TextRenderer = bi;
+X.Lexer = lt;
+X.lexer = lt.lex;
+X.Tokenizer = Bn;
+X.Hooks = on;
+X.parse = X;
+X.options;
+X.setOptions;
+X.use;
+X.walkTokens;
+X.parseInline;
+ot.parse;
+lt.lex;
+const tr = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, nr = Object.hasOwnProperty;
+class Dl {
/**
* Create a new slug class.
*/
@@ -2113,9 +2113,9 @@ class hl {
*/
slug(e, t) {
const n = this;
- let a = Jo(e, t === !0);
+ let a = ir(e, t === !0);
const o = a;
- for (; Qo.call(n.occurrences, a); )
+ for (; nr.call(n.occurrences, a); )
n.occurrences[o]++, a = o + "-" + n.occurrences[o];
return n.occurrences[a] = 0, a;
}
@@ -2128,11 +2128,11 @@ class hl {
this.occurrences = /* @__PURE__ */ Object.create(null);
}
}
-function Jo(i, e) {
- return typeof i != "string" ? "" : (e || (i = i.toLowerCase()), i.replace(Ko, "").replace(/ /g, "-"));
+function ir(i, e) {
+ return typeof i != "string" ? "" : (e || (i = i.toLowerCase()), i.replace(tr, "").replace(/ /g, "-"));
}
-new hl();
-var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, er = { exports: {} };
+new Dl();
+var Gi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ar = { exports: {} };
(function(i) {
var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
/**
@@ -2199,8 +2199,8 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @memberof Prism
*/
util: {
- encode: function m(_) {
- return _ instanceof s ? new s(_.type, m(_.content), _.alias) : Array.isArray(_) ? _.map(m) : _.replace(/&/g, "&").replace(/} */
- {}, g[F] = y;
+ {}, g[$] = y;
for (var C in _)
- _.hasOwnProperty(C) && (y[C] = m(_[C], g));
+ _.hasOwnProperty(C) && (y[C] = h(_[C], g));
return (
/** @type {any} */
y
);
case "Array":
- return F = r.util.objId(_), g[F] ? g[F] : (y = [], g[F] = y, /** @type {Array} */
+ return $ = r.util.objId(_), g[$] ? g[$] : (y = [], g[$] = y, /** @type {Array} */
/** @type {any} */
- _.forEach(function(T, S) {
- y[S] = m(T, g);
+ _.forEach(function(I, T) {
+ y[T] = h(I, g);
}), /** @type {any} */
y);
default:
@@ -2274,12 +2274,12 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {Element} element
* @returns {string}
*/
- getLanguage: function(m) {
- for (; m; ) {
- var _ = a.exec(m.className);
+ getLanguage: function(h) {
+ for (; h; ) {
+ var _ = a.exec(h.className);
if (_)
return _[1].toLowerCase();
- m = m.parentElement;
+ h = h.parentElement;
}
return "none";
},
@@ -2290,8 +2290,8 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {string} language
* @returns {void}
*/
- setLanguage: function(m, _) {
- m.className = m.className.replace(RegExp(a, "gi"), ""), m.classList.add("language-" + _);
+ setLanguage: function(h, _) {
+ h.className = h.className.replace(RegExp(a, "gi"), ""), h.classList.add("language-" + _);
},
/**
* Returns the script element that is currently executing.
@@ -2311,11 +2311,11 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
try {
throw new Error();
} catch (y) {
- var m = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(y.stack) || [])[1];
- if (m) {
+ var h = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(y.stack) || [])[1];
+ if (h) {
var _ = document.getElementsByTagName("script");
for (var g in _)
- if (_[g].src == m)
+ if (_[g].src == h)
return _[g];
}
return null;
@@ -2340,14 +2340,14 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {boolean} [defaultActivation=false]
* @returns {boolean}
*/
- isActive: function(m, _, g) {
- for (var y = "no-" + _; m; ) {
- var F = m.classList;
- if (F.contains(_))
+ isActive: function(h, _, g) {
+ for (var y = "no-" + _; h; ) {
+ var $ = h.classList;
+ if ($.contains(_))
return !0;
- if (F.contains(y))
+ if ($.contains(y))
return !1;
- m = m.parentElement;
+ h = h.parentElement;
}
return !!g;
}
@@ -2395,8 +2395,8 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* 'color': /\b(?:red|green|blue)\b/
* });
*/
- extend: function(m, _) {
- var g = r.util.clone(r.languages[m]);
+ extend: function(h, _) {
+ var g = r.util.clone(r.languages[h]);
for (var y in _)
g[y] = _[y];
return g;
@@ -2476,31 +2476,31 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @returns {Grammar} The new grammar object.
* @public
*/
- insertBefore: function(m, _, g, y) {
+ insertBefore: function(h, _, g, y) {
y = y || /** @type {any} */
r.languages;
- var F = y[m], C = {};
- for (var T in F)
- if (F.hasOwnProperty(T)) {
- if (T == _)
- for (var S in g)
- g.hasOwnProperty(S) && (C[S] = g[S]);
- g.hasOwnProperty(T) || (C[T] = F[T]);
+ var $ = y[h], C = {};
+ for (var I in $)
+ if ($.hasOwnProperty(I)) {
+ if (I == _)
+ for (var T in g)
+ g.hasOwnProperty(T) && (C[T] = g[T]);
+ g.hasOwnProperty(I) || (C[I] = $[I]);
}
- var z = y[m];
- return y[m] = C, r.languages.DFS(r.languages, function(N, j) {
- j === z && N != m && (this[N] = C);
+ var M = y[h];
+ return y[h] = C, r.languages.DFS(r.languages, function(N, j) {
+ j === M && N != h && (this[N] = C);
}), C;
},
// Traverse a language definition with Depth First Search
- DFS: function m(_, g, y, F) {
- F = F || {};
+ DFS: function h(_, g, y, $) {
+ $ = $ || {};
var C = r.util.objId;
- for (var T in _)
- if (_.hasOwnProperty(T)) {
- g.call(_, T, _[T], y || T);
- var S = _[T], z = r.util.type(S);
- z === "Object" && !F[C(S)] ? (F[C(S)] = !0, m(S, g, null, F)) : z === "Array" && !F[C(S)] && (F[C(S)] = !0, m(S, g, T, F));
+ for (var I in _)
+ if (_.hasOwnProperty(I)) {
+ g.call(_, I, _[I], y || I);
+ var T = _[I], M = r.util.type(T);
+ M === "Object" && !$[C(T)] ? ($[C(T)] = !0, h(T, g, null, $)) : M === "Array" && !$[C(T)] && ($[C(T)] = !0, h(T, g, I, $));
}
}
},
@@ -2517,8 +2517,8 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @memberof Prism
* @public
*/
- highlightAll: function(m, _) {
- r.highlightAllUnder(document, m, _);
+ highlightAll: function(h, _) {
+ r.highlightAllUnder(document, h, _);
},
/**
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -2535,14 +2535,14 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @memberof Prism
* @public
*/
- highlightAllUnder: function(m, _, g) {
+ highlightAllUnder: function(h, _, g) {
var y = {
callback: g,
- container: m,
+ container: h,
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
};
r.hooks.run("before-highlightall", y), y.elements = Array.prototype.slice.apply(y.container.querySelectorAll(y.selector)), r.hooks.run("before-all-elements-highlight", y);
- for (var F = 0, C; C = y.elements[F++]; )
+ for (var $ = 0, C; C = y.elements[$++]; )
r.highlightElement(C, _ === !0, y.callback);
},
/**
@@ -2573,39 +2573,39 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @memberof Prism
* @public
*/
- highlightElement: function(m, _, g) {
- var y = r.util.getLanguage(m), F = r.languages[y];
- r.util.setLanguage(m, y);
- var C = m.parentElement;
+ highlightElement: function(h, _, g) {
+ var y = r.util.getLanguage(h), $ = r.languages[y];
+ r.util.setLanguage(h, y);
+ var C = h.parentElement;
C && C.nodeName.toLowerCase() === "pre" && r.util.setLanguage(C, y);
- var T = m.textContent, S = {
- element: m,
+ var I = h.textContent, T = {
+ element: h,
language: y,
- grammar: F,
- code: T
+ grammar: $,
+ code: I
};
- function z(j) {
- S.highlightedCode = j, r.hooks.run("before-insert", S), S.element.innerHTML = S.highlightedCode, r.hooks.run("after-highlight", S), r.hooks.run("complete", S), g && g.call(S.element);
+ function M(j) {
+ T.highlightedCode = j, r.hooks.run("before-insert", T), T.element.innerHTML = T.highlightedCode, r.hooks.run("after-highlight", T), r.hooks.run("complete", T), g && g.call(T.element);
}
- if (r.hooks.run("before-sanity-check", S), C = S.element.parentElement, C && C.nodeName.toLowerCase() === "pre" && !C.hasAttribute("tabindex") && C.setAttribute("tabindex", "0"), !S.code) {
- r.hooks.run("complete", S), g && g.call(S.element);
+ if (r.hooks.run("before-sanity-check", T), C = T.element.parentElement, C && C.nodeName.toLowerCase() === "pre" && !C.hasAttribute("tabindex") && C.setAttribute("tabindex", "0"), !T.code) {
+ r.hooks.run("complete", T), g && g.call(T.element);
return;
}
- if (r.hooks.run("before-highlight", S), !S.grammar) {
- z(r.util.encode(S.code));
+ if (r.hooks.run("before-highlight", T), !T.grammar) {
+ M(r.util.encode(T.code));
return;
}
if (_ && n.Worker) {
var N = new Worker(r.filename);
N.onmessage = function(j) {
- z(j.data);
+ M(j.data);
}, N.postMessage(JSON.stringify({
- language: S.language,
- code: S.code,
+ language: T.language,
+ code: T.code,
immediateClose: !0
}));
} else
- z(r.highlight(S.code, S.grammar, S.language));
+ M(r.highlight(T.code, T.grammar, T.language));
},
/**
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -2627,9 +2627,9 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @example
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
*/
- highlight: function(m, _, g) {
+ highlight: function(h, _, g) {
var y = {
- code: m,
+ code: h,
grammar: _,
language: g
};
@@ -2661,15 +2661,15 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* }
* });
*/
- tokenize: function(m, _) {
+ tokenize: function(h, _) {
var g = _.rest;
if (g) {
for (var y in g)
_[y] = g[y];
delete _.rest;
}
- var F = new h();
- return d(F, F.head, m), c(m, F, _, F.head, 0), v(F);
+ var $ = new m();
+ return d($, $.head, h), c(h, $, _, $.head, 0), v($);
},
/**
* @namespace
@@ -2690,9 +2690,9 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {HookCallback} callback The callback function which is given environment variables.
* @public
*/
- add: function(m, _) {
+ add: function(h, _) {
var g = r.hooks.all;
- g[m] = g[m] || [], g[m].push(_);
+ g[h] = g[h] || [], g[h].push(_);
},
/**
* Runs a hook invoking all registered callbacks with the given environment variables.
@@ -2703,135 +2703,135 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {Object} env The environment variables of the hook passed to all callbacks registered.
* @public
*/
- run: function(m, _) {
- var g = r.hooks.all[m];
+ run: function(h, _) {
+ var g = r.hooks.all[h];
if (!(!g || !g.length))
- for (var y = 0, F; F = g[y++]; )
- F(_);
+ for (var y = 0, $; $ = g[y++]; )
+ $(_);
}
},
Token: s
};
n.Prism = r;
- function s(m, _, g, y) {
- this.type = m, this.content = _, this.alias = g, this.length = (y || "").length | 0;
+ function s(h, _, g, y) {
+ this.type = h, this.content = _, this.alias = g, this.length = (y || "").length | 0;
}
- s.stringify = function m(_, g) {
+ s.stringify = function h(_, g) {
if (typeof _ == "string")
return _;
if (Array.isArray(_)) {
var y = "";
- return _.forEach(function(z) {
- y += m(z, g);
+ return _.forEach(function(M) {
+ y += h(M, g);
}), y;
}
- var F = {
+ var $ = {
type: _.type,
- content: m(_.content, g),
+ content: h(_.content, g),
tag: "span",
classes: ["token", _.type],
attributes: {},
language: g
}, C = _.alias;
- C && (Array.isArray(C) ? Array.prototype.push.apply(F.classes, C) : F.classes.push(C)), r.hooks.run("wrap", F);
- var T = "";
- for (var S in F.attributes)
- T += " " + S + '="' + (F.attributes[S] || "").replace(/"/g, """) + '"';
- return "<" + F.tag + ' class="' + F.classes.join(" ") + '"' + T + ">" + F.content + "" + F.tag + ">";
+ C && (Array.isArray(C) ? Array.prototype.push.apply($.classes, C) : $.classes.push(C)), r.hooks.run("wrap", $);
+ var I = "";
+ for (var T in $.attributes)
+ I += " " + T + '="' + ($.attributes[T] || "").replace(/"/g, """) + '"';
+ return "<" + $.tag + ' class="' + $.classes.join(" ") + '"' + I + ">" + $.content + "" + $.tag + ">";
};
- function u(m, _, g, y) {
- m.lastIndex = _;
- var F = m.exec(g);
- if (F && y && F[1]) {
- var C = F[1].length;
- F.index += C, F[0] = F[0].slice(C);
+ function u(h, _, g, y) {
+ h.lastIndex = _;
+ var $ = h.exec(g);
+ if ($ && y && $[1]) {
+ var C = $[1].length;
+ $.index += C, $[0] = $[0].slice(C);
}
- return F;
- }
- function c(m, _, g, y, F, C) {
- for (var T in g)
- if (!(!g.hasOwnProperty(T) || !g[T])) {
- var S = g[T];
- S = Array.isArray(S) ? S : [S];
- for (var z = 0; z < S.length; ++z) {
- if (C && C.cause == T + "," + z)
+ return $;
+ }
+ function c(h, _, g, y, $, C) {
+ for (var I in g)
+ if (!(!g.hasOwnProperty(I) || !g[I])) {
+ var T = g[I];
+ T = Array.isArray(T) ? T : [T];
+ for (var M = 0; M < T.length; ++M) {
+ if (C && C.cause == I + "," + M)
return;
- var N = S[z], j = N.inside, ke = !!N.lookbehind, ue = !!N.greedy, $e = N.alias;
- if (ue && !N.pattern.global) {
- var _e = N.pattern.toString().match(/[imsuy]*$/)[0];
- N.pattern = RegExp(N.pattern.source, _e + "g");
+ var N = T[M], j = N.inside, ke = !!N.lookbehind, ce = !!N.greedy, Ee = N.alias;
+ if (ce && !N.pattern.global) {
+ var pe = N.pattern.toString().match(/[imsuy]*$/)[0];
+ N.pattern = RegExp(N.pattern.source, pe + "g");
}
- for (var ne = N.pattern || N, X = y.next, se = F; X !== _.tail && !(C && se >= C.reach); se += X.value.length, X = X.next) {
- var ve = X.value;
- if (_.length > m.length)
+ for (var ie = N.pattern || N, Q = y.next, se = $; Q !== _.tail && !(C && se >= C.reach); se += Q.value.length, Q = Q.next) {
+ var be = Q.value;
+ if (_.length > h.length)
return;
- if (!(ve instanceof s)) {
- var $ = 1, oe;
- if (ue) {
- if (oe = u(ne, se, m, ke), !oe || oe.index >= m.length)
+ if (!(be instanceof s)) {
+ var k = 1, oe;
+ if (ce) {
+ if (oe = u(ie, se, h, ke), !oe || oe.index >= h.length)
break;
- var Se = oe.index, K = oe.index + oe[0].length, de = se;
- for (de += X.value.length; Se >= de; )
- X = X.next, de += X.value.length;
- if (de -= X.value.length, se = de, X.value instanceof s)
+ var Te = oe.index, J = oe.index + oe[0].length, he = se;
+ for (he += Q.value.length; Te >= he; )
+ Q = Q.next, he += Q.value.length;
+ if (he -= Q.value.length, se = he, Q.value instanceof s)
continue;
- for (var A = X; A !== _.tail && (de < K || typeof A.value == "string"); A = A.next)
- $++, de += A.value.length;
- $--, ve = m.slice(se, de), oe.index -= se;
- } else if (oe = u(ne, 0, ve, ke), !oe)
+ for (var A = Q; A !== _.tail && (he < J || typeof A.value == "string"); A = A.next)
+ k++, he += A.value.length;
+ k--, be = h.slice(se, he), oe.index -= se;
+ } else if (oe = u(ie, 0, be, ke), !oe)
continue;
- var Se = oe.index, Ke = oe[0], Dt = ve.slice(0, Se), bt = ve.slice(Se + Ke.length), yt = se + ve.length;
- C && yt > C.reach && (C.reach = yt);
- var _t = X.prev;
- Dt && (_t = d(_, _t, Dt), se += Dt.length), f(_, _t, $);
- var Qe = new s(T, j ? r.tokenize(Ke, j) : Ke, $e, Ke);
- if (X = d(_, _t, Qe), bt && d(_, X, bt), $ > 1) {
- var Je = {
- cause: T + "," + z,
- reach: yt
+ var Te = oe.index, Qe = oe[0], Dt = be.slice(0, Te), yt = be.slice(Te + Qe.length), wt = se + be.length;
+ C && wt > C.reach && (C.reach = wt);
+ var ft = Q.prev;
+ Dt && (ft = d(_, ft, Dt), se += Dt.length), f(_, ft, k);
+ var Je = new s(I, j ? r.tokenize(Qe, j) : Qe, Ee, Qe);
+ if (Q = d(_, ft, Je), yt && d(_, Q, yt), k > 1) {
+ var et = {
+ cause: I + "," + M,
+ reach: wt
};
- c(m, _, g, X.prev, se, Je), C && Je.reach > C.reach && (C.reach = Je.reach);
+ c(h, _, g, Q.prev, se, et), C && et.reach > C.reach && (C.reach = et.reach);
}
}
}
}
}
}
- function h() {
- var m = { value: null, prev: null, next: null }, _ = { value: null, prev: m, next: null };
- m.next = _, this.head = m, this.tail = _, this.length = 0;
+ function m() {
+ var h = { value: null, prev: null, next: null }, _ = { value: null, prev: h, next: null };
+ h.next = _, this.head = h, this.tail = _, this.length = 0;
}
- function d(m, _, g) {
- var y = _.next, F = { value: g, prev: _, next: y };
- return _.next = F, y.prev = F, m.length++, F;
+ function d(h, _, g) {
+ var y = _.next, $ = { value: g, prev: _, next: y };
+ return _.next = $, y.prev = $, h.length++, $;
}
- function f(m, _, g) {
- for (var y = _.next, F = 0; F < g && y !== m.tail; F++)
+ function f(h, _, g) {
+ for (var y = _.next, $ = 0; $ < g && y !== h.tail; $++)
y = y.next;
- _.next = y, y.prev = _, m.length -= F;
+ _.next = y, y.prev = _, h.length -= $;
}
- function v(m) {
- for (var _ = [], g = m.head.next; g !== m.tail; )
+ function v(h) {
+ for (var _ = [], g = h.head.next; g !== h.tail; )
_.push(g.value), g = g.next;
return _;
}
if (!n.document)
- return n.addEventListener && (r.disableWorkerMessageHandler || n.addEventListener("message", function(m) {
- var _ = JSON.parse(m.data), g = _.language, y = _.code, F = _.immediateClose;
- n.postMessage(r.highlight(y, r.languages[g], g)), F && n.close();
+ return n.addEventListener && (r.disableWorkerMessageHandler || n.addEventListener("message", function(h) {
+ var _ = JSON.parse(h.data), g = _.language, y = _.code, $ = _.immediateClose;
+ n.postMessage(r.highlight(y, r.languages[g], g)), $ && n.close();
}, !1)), r;
- var b = r.util.currentScript();
- b && (r.filename = b.src, b.hasAttribute("data-manual") && (r.manual = !0));
+ var D = r.util.currentScript();
+ D && (r.filename = D.src, D.hasAttribute("data-manual") && (r.manual = !0));
function w() {
r.manual || r.highlightAll();
}
if (!r.manual) {
- var k = document.readyState;
- k === "loading" || k === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded", w) : window.requestAnimationFrame ? window.requestAnimationFrame(w) : window.setTimeout(w, 16);
+ var F = document.readyState;
+ F === "loading" || F === "interactive" && D && D.defer ? document.addEventListener("DOMContentLoaded", w) : window.requestAnimationFrame ? window.requestAnimationFrame(w) : window.setTimeout(w, 16);
}
return r;
}(e);
- i.exports && (i.exports = t), typeof Ui < "u" && (Ui.Prism = t), t.languages.markup = {
+ i.exports && (i.exports = t), typeof Gi < "u" && (Gi.Prism = t), t.languages.markup = {
comment: {
pattern: //,
greedy: !0
@@ -3209,8 +3209,8 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
if (typeof t > "u" || typeof document > "u")
return;
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
- var n = "Loading…", a = function(b, w) {
- return "✖ Error " + b + " while fetching file: " + w;
+ var n = "Loading…", a = function(D, w) {
+ return "✖ Error " + D + " while fetching file: " + w;
}, o = "✖ Error: File does not exist or is empty", l = {
js: "javascript",
py: "python",
@@ -3221,52 +3221,52 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
bat: "batch",
h: "c",
tex: "latex"
- }, r = "data-src-status", s = "loading", u = "loaded", c = "failed", h = "pre[data-src]:not([" + r + '="' + u + '"]):not([' + r + '="' + s + '"])';
- function d(b, w, k) {
- var m = new XMLHttpRequest();
- m.open("GET", b, !0), m.onreadystatechange = function() {
- m.readyState == 4 && (m.status < 400 && m.responseText ? w(m.responseText) : m.status >= 400 ? k(a(m.status, m.statusText)) : k(o));
- }, m.send(null);
- }
- function f(b) {
- var w = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b || "");
+ }, r = "data-src-status", s = "loading", u = "loaded", c = "failed", m = "pre[data-src]:not([" + r + '="' + u + '"]):not([' + r + '="' + s + '"])';
+ function d(D, w, F) {
+ var h = new XMLHttpRequest();
+ h.open("GET", D, !0), h.onreadystatechange = function() {
+ h.readyState == 4 && (h.status < 400 && h.responseText ? w(h.responseText) : h.status >= 400 ? F(a(h.status, h.statusText)) : F(o));
+ }, h.send(null);
+ }
+ function f(D) {
+ var w = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(D || "");
if (w) {
- var k = Number(w[1]), m = w[2], _ = w[3];
- return m ? _ ? [k, Number(_)] : [k, void 0] : [k, k];
+ var F = Number(w[1]), h = w[2], _ = w[3];
+ return h ? _ ? [F, Number(_)] : [F, void 0] : [F, F];
}
}
- t.hooks.add("before-highlightall", function(b) {
- b.selector += ", " + h;
- }), t.hooks.add("before-sanity-check", function(b) {
+ t.hooks.add("before-highlightall", function(D) {
+ D.selector += ", " + m;
+ }), t.hooks.add("before-sanity-check", function(D) {
var w = (
/** @type {HTMLPreElement} */
- b.element
+ D.element
);
- if (w.matches(h)) {
- b.code = "", w.setAttribute(r, s);
- var k = w.appendChild(document.createElement("CODE"));
- k.textContent = n;
- var m = w.getAttribute("data-src"), _ = b.language;
+ if (w.matches(m)) {
+ D.code = "", w.setAttribute(r, s);
+ var F = w.appendChild(document.createElement("CODE"));
+ F.textContent = n;
+ var h = w.getAttribute("data-src"), _ = D.language;
if (_ === "none") {
- var g = (/\.(\w+)$/.exec(m) || [, "none"])[1];
+ var g = (/\.(\w+)$/.exec(h) || [, "none"])[1];
_ = l[g] || g;
}
- t.util.setLanguage(k, _), t.util.setLanguage(w, _);
+ t.util.setLanguage(F, _), t.util.setLanguage(w, _);
var y = t.plugins.autoloader;
y && y.loadLanguages(_), d(
- m,
- function(F) {
+ h,
+ function($) {
w.setAttribute(r, u);
var C = f(w.getAttribute("data-range"));
if (C) {
- var T = F.split(/\r\n?|\n/g), S = C[0], z = C[1] == null ? T.length : C[1];
- S < 0 && (S += T.length), S = Math.max(0, Math.min(S - 1, T.length)), z < 0 && (z += T.length), z = Math.max(0, Math.min(z, T.length)), F = T.slice(S, z).join(`
-`), w.hasAttribute("data-start") || w.setAttribute("data-start", String(S + 1));
+ var I = $.split(/\r\n?|\n/g), T = C[0], M = C[1] == null ? I.length : C[1];
+ T < 0 && (T += I.length), T = Math.max(0, Math.min(T - 1, I.length)), M < 0 && (M += I.length), M = Math.max(0, Math.min(M, I.length)), $ = I.slice(T, M).join(`
+`), w.hasAttribute("data-start") || w.setAttribute("data-start", String(T + 1));
}
- k.textContent = F, t.highlightElement(k);
+ F.textContent = $, t.highlightElement(F);
},
- function(F) {
- w.setAttribute(r, c), k.textContent = F;
+ function($) {
+ w.setAttribute(r, c), F.textContent = $;
}
);
}
@@ -3279,7 +3279,7 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {ParentNode} [container=document]
*/
highlight: function(w) {
- for (var k = (w || document).querySelectorAll(h), m = 0, _; _ = k[m++]; )
+ for (var F = (w || document).querySelectorAll(m), h = 0, _; _ = F[h++]; )
t.highlightElement(_);
}
};
@@ -3288,7 +3288,7 @@ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
v || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), v = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
};
}();
-})(er);
+})(ar);
Prism.languages.python = {
comment: {
pattern: /(^|[^\\])#.*/,
@@ -3630,8 +3630,8 @@ Prism.languages.py = Prism.languages.python;
o[a[l]] = i.languages.bash[a[l]];
i.languages.sh = i.languages.bash, i.languages.shell = i.languages.bash;
})(Prism);
-new hl();
-const tr = (i) => {
+new Dl();
+const lr = (i) => {
const e = {};
for (let t = 0, n = i.length; t < n; t++) {
const a = i[t];
@@ -3639,7 +3639,7 @@ const tr = (i) => {
e[o] ? e[o] = e[o].concat(a[o]) : e[o] = a[o];
}
return e;
-}, nr = [
+}, or = [
"abbr",
"accept",
"accept-charset",
@@ -3848,7 +3848,7 @@ const tr = (i) => {
"webkitdirectory",
"width",
"wrap"
-], ir = [
+], rr = [
"accent-height",
"accumulate",
"additive",
@@ -4032,7 +4032,7 @@ const tr = (i) => {
"y2",
"z",
"zoomandpan"
-], ar = [
+], sr = [
"accent",
"accentunder",
"align",
@@ -4087,179 +4087,179 @@ const tr = (i) => {
"width",
"xmlns"
];
-tr([
- Object.fromEntries(nr.map((i) => [i, ["*"]])),
- Object.fromEntries(ir.map((i) => [i, ["svg:*"]])),
- Object.fromEntries(ar.map((i) => [i, ["math:*"]]))
+lr([
+ Object.fromEntries(or.map((i) => [i, ["*"]])),
+ Object.fromEntries(rr.map((i) => [i, ["svg:*"]])),
+ Object.fromEntries(sr.map((i) => [i, ["math:*"]]))
]);
const {
- HtmlTagHydration: iu,
- SvelteComponent: au,
- attr: lu,
- binding_callbacks: ou,
- children: ru,
- claim_element: su,
- claim_html_tag: uu,
- detach: cu,
- element: _u,
- init: du,
- insert_hydration: fu,
- noop: pu,
- safe_not_equal: hu,
- toggle_class: mu
-} = window.__gradio__svelte__internal, { afterUpdate: gu, tick: vu, onMount: Du } = window.__gradio__svelte__internal, {
- SvelteComponent: bu,
- attr: yu,
- children: wu,
- claim_component: Fu,
- claim_element: ku,
- create_component: $u,
- destroy_component: Eu,
- detach: Au,
- element: Cu,
- init: Su,
- insert_hydration: Tu,
- mount_component: Bu,
- safe_not_equal: Ru,
- transition_in: Iu,
- transition_out: Lu
+ HtmlTagHydration: su,
+ SvelteComponent: uu,
+ attr: cu,
+ binding_callbacks: _u,
+ children: du,
+ claim_element: fu,
+ claim_html_tag: pu,
+ detach: hu,
+ element: mu,
+ init: gu,
+ insert_hydration: vu,
+ noop: bu,
+ safe_not_equal: Du,
+ toggle_class: yu
+} = window.__gradio__svelte__internal, { afterUpdate: wu, tick: Fu, onMount: $u } = window.__gradio__svelte__internal, {
+ SvelteComponent: ku,
+ attr: Eu,
+ children: Au,
+ claim_component: Cu,
+ claim_element: Su,
+ create_component: Tu,
+ destroy_component: Bu,
+ detach: Iu,
+ element: Ru,
+ init: Lu,
+ insert_hydration: Ou,
+ mount_component: qu,
+ safe_not_equal: Nu,
+ transition_in: Mu,
+ transition_out: Pu
} = window.__gradio__svelte__internal, {
- SvelteComponent: Ou,
- attr: qu,
- check_outros: Nu,
- children: zu,
- claim_component: Mu,
- claim_element: Pu,
- claim_space: xu,
- create_component: Uu,
- create_slot: Hu,
- destroy_component: ju,
- detach: Gu,
- element: Vu,
- empty: Wu,
- get_all_dirty_from_scope: Zu,
- get_slot_changes: Yu,
- group_outros: Xu,
- init: Ku,
- insert_hydration: Qu,
- mount_component: Ju,
- safe_not_equal: ec,
- space: tc,
- toggle_class: nc,
- transition_in: ic,
- transition_out: ac,
- update_slot_base: lc
+ SvelteComponent: zu,
+ attr: xu,
+ check_outros: Uu,
+ children: Hu,
+ claim_component: Gu,
+ claim_element: ju,
+ claim_space: Vu,
+ create_component: Wu,
+ create_slot: Zu,
+ destroy_component: Yu,
+ detach: Xu,
+ element: Ku,
+ empty: Qu,
+ get_all_dirty_from_scope: Ju,
+ get_slot_changes: ec,
+ group_outros: tc,
+ init: nc,
+ insert_hydration: ic,
+ mount_component: ac,
+ safe_not_equal: lc,
+ space: oc,
+ toggle_class: rc,
+ transition_in: sc,
+ transition_out: uc,
+ update_slot_base: cc
} = window.__gradio__svelte__internal, {
- SvelteComponent: oc,
- append_hydration: rc,
- attr: sc,
- children: uc,
- claim_component: cc,
- claim_element: _c,
- claim_space: dc,
- claim_text: fc,
- create_component: pc,
- destroy_component: hc,
- detach: mc,
- element: gc,
- init: vc,
- insert_hydration: Dc,
- mount_component: bc,
- safe_not_equal: yc,
- set_data: wc,
- space: Fc,
- text: kc,
- toggle_class: $c,
- transition_in: Ec,
- transition_out: Ac
+ SvelteComponent: _c,
+ append_hydration: dc,
+ attr: fc,
+ children: pc,
+ claim_component: hc,
+ claim_element: mc,
+ claim_space: gc,
+ claim_text: vc,
+ create_component: bc,
+ destroy_component: Dc,
+ detach: yc,
+ element: wc,
+ init: Fc,
+ insert_hydration: $c,
+ mount_component: kc,
+ safe_not_equal: Ec,
+ set_data: Ac,
+ space: Cc,
+ text: Sc,
+ toggle_class: Tc,
+ transition_in: Bc,
+ transition_out: Ic
} = window.__gradio__svelte__internal, {
- SvelteComponent: lr,
- append_hydration: $n,
- attr: mt,
- bubble: or,
- check_outros: rr,
- children: ni,
- claim_component: sr,
- claim_element: ii,
- claim_space: Hi,
- claim_text: ur,
- construct_svelte_component: ji,
- create_component: Gi,
- create_slot: cr,
- destroy_component: Vi,
- detach: ln,
- element: ai,
- get_all_dirty_from_scope: _r,
- get_slot_changes: dr,
- group_outros: fr,
- init: pr,
- insert_hydration: ml,
- listen: hr,
- mount_component: Wi,
- safe_not_equal: mr,
- set_data: gr,
- set_style: gn,
- space: Zi,
- text: vr,
- toggle_class: ye,
- transition_in: xn,
- transition_out: Un,
- update_slot_base: Dr
+ SvelteComponent: ur,
+ append_hydration: Cn,
+ attr: vt,
+ bubble: cr,
+ check_outros: _r,
+ children: ii,
+ claim_component: dr,
+ claim_element: ai,
+ claim_space: ji,
+ claim_text: fr,
+ construct_svelte_component: Vi,
+ create_component: Wi,
+ create_slot: pr,
+ destroy_component: Zi,
+ detach: rn,
+ element: li,
+ get_all_dirty_from_scope: hr,
+ get_slot_changes: mr,
+ group_outros: gr,
+ init: vr,
+ insert_hydration: yl,
+ listen: br,
+ mount_component: Yi,
+ safe_not_equal: Dr,
+ set_data: yr,
+ set_style: bn,
+ space: Xi,
+ text: wr,
+ toggle_class: we,
+ transition_in: Hn,
+ transition_out: Gn,
+ update_slot_base: Fr
} = window.__gradio__svelte__internal;
-function Yi(i) {
+function Ki(i) {
let e, t;
return {
c() {
- e = ai("span"), t = vr(
+ e = li("span"), t = wr(
/*label*/
i[1]
), this.h();
},
l(n) {
- e = ii(n, "SPAN", { class: !0 });
- var a = ni(e);
- t = ur(
+ e = ai(n, "SPAN", { class: !0 });
+ var a = ii(e);
+ t = fr(
a,
/*label*/
i[1]
- ), a.forEach(ln), this.h();
+ ), a.forEach(rn), this.h();
},
h() {
- mt(e, "class", "svelte-qgco6m");
+ vt(e, "class", "svelte-qgco6m");
},
m(n, a) {
- ml(n, e, a), $n(e, t);
+ yl(n, e, a), Cn(e, t);
},
p(n, a) {
a & /*label*/
- 2 && gr(
+ 2 && yr(
t,
/*label*/
n[1]
);
},
d(n) {
- n && ln(e);
+ n && rn(e);
}
};
}
-function br(i) {
+function $r(i) {
let e, t, n, a, o, l, r, s, u = (
/*show_label*/
- i[2] && Yi(i)
+ i[2] && Ki(i)
);
var c = (
/*Icon*/
i[0]
);
- function h(v, b) {
+ function m(v, D) {
return {};
}
- c && (a = ji(c, h()));
+ c && (a = Vi(c, m()));
const d = (
/*#slots*/
i[14].default
- ), f = cr(
+ ), f = pr(
d,
i,
/*$$scope*/
@@ -4268,252 +4268,252 @@ function br(i) {
);
return {
c() {
- e = ai("button"), u && u.c(), t = Zi(), n = ai("div"), a && Gi(a.$$.fragment), o = Zi(), f && f.c(), this.h();
+ e = li("button"), u && u.c(), t = Xi(), n = li("div"), a && Wi(a.$$.fragment), o = Xi(), f && f.c(), this.h();
},
l(v) {
- e = ii(v, "BUTTON", {
+ e = ai(v, "BUTTON", {
"aria-label": !0,
"aria-haspopup": !0,
title: !0,
class: !0
});
- var b = ni(e);
- u && u.l(b), t = Hi(b), n = ii(b, "DIV", { class: !0 });
- var w = ni(n);
- a && sr(a.$$.fragment, w), o = Hi(w), f && f.l(w), w.forEach(ln), b.forEach(ln), this.h();
+ var D = ii(e);
+ u && u.l(D), t = ji(D), n = ai(D, "DIV", { class: !0 });
+ var w = ii(n);
+ a && dr(a.$$.fragment, w), o = ji(w), f && f.l(w), w.forEach(rn), D.forEach(rn), this.h();
},
h() {
- mt(n, "class", "svelte-qgco6m"), ye(
+ vt(n, "class", "svelte-qgco6m"), we(
n,
"x-small",
/*size*/
i[4] === "x-small"
- ), ye(
+ ), we(
n,
"small",
/*size*/
i[4] === "small"
- ), ye(
+ ), we(
n,
"large",
/*size*/
i[4] === "large"
- ), ye(
+ ), we(
n,
"medium",
/*size*/
i[4] === "medium"
), e.disabled = /*disabled*/
- i[7], mt(
+ i[7], vt(
e,
"aria-label",
/*label*/
i[1]
- ), mt(
+ ), vt(
e,
"aria-haspopup",
/*hasPopup*/
i[8]
- ), mt(
+ ), vt(
e,
"title",
/*label*/
i[1]
- ), mt(e, "class", "svelte-qgco6m"), ye(
+ ), vt(e, "class", "svelte-qgco6m"), we(
e,
"pending",
/*pending*/
i[3]
- ), ye(
+ ), we(
e,
"padded",
/*padded*/
i[5]
- ), ye(
+ ), we(
e,
"highlight",
/*highlight*/
i[6]
- ), ye(
+ ), we(
e,
"transparent",
/*transparent*/
i[9]
- ), gn(e, "color", !/*disabled*/
+ ), bn(e, "color", !/*disabled*/
i[7] && /*_color*/
i[11] ? (
/*_color*/
i[11]
- ) : "var(--block-label-text-color)"), gn(e, "--bg-color", /*disabled*/
+ ) : "var(--block-label-text-color)"), bn(e, "--bg-color", /*disabled*/
i[7] ? "auto" : (
/*background*/
i[10]
));
},
- m(v, b) {
- ml(v, e, b), u && u.m(e, null), $n(e, t), $n(e, n), a && Wi(a, n, null), $n(n, o), f && f.m(n, null), l = !0, r || (s = hr(
+ m(v, D) {
+ yl(v, e, D), u && u.m(e, null), Cn(e, t), Cn(e, n), a && Yi(a, n, null), Cn(n, o), f && f.m(n, null), l = !0, r || (s = br(
e,
"click",
/*click_handler*/
i[15]
), r = !0);
},
- p(v, [b]) {
+ p(v, [D]) {
if (/*show_label*/
- v[2] ? u ? u.p(v, b) : (u = Yi(v), u.c(), u.m(e, t)) : u && (u.d(1), u = null), b & /*Icon*/
+ v[2] ? u ? u.p(v, D) : (u = Ki(v), u.c(), u.m(e, t)) : u && (u.d(1), u = null), D & /*Icon*/
1 && c !== (c = /*Icon*/
v[0])) {
if (a) {
- fr();
+ gr();
const w = a;
- Un(w.$$.fragment, 1, 0, () => {
- Vi(w, 1);
- }), rr();
+ Gn(w.$$.fragment, 1, 0, () => {
+ Zi(w, 1);
+ }), _r();
}
- c ? (a = ji(c, h()), Gi(a.$$.fragment), xn(a.$$.fragment, 1), Wi(a, n, o)) : a = null;
+ c ? (a = Vi(c, m()), Wi(a.$$.fragment), Hn(a.$$.fragment, 1), Yi(a, n, o)) : a = null;
}
- f && f.p && (!l || b & /*$$scope*/
- 8192) && Dr(
+ f && f.p && (!l || D & /*$$scope*/
+ 8192) && Fr(
f,
d,
v,
/*$$scope*/
v[13],
- l ? dr(
+ l ? mr(
d,
/*$$scope*/
v[13],
- b,
+ D,
null
- ) : _r(
+ ) : hr(
/*$$scope*/
v[13]
),
null
- ), (!l || b & /*size*/
- 16) && ye(
+ ), (!l || D & /*size*/
+ 16) && we(
n,
"x-small",
/*size*/
v[4] === "x-small"
- ), (!l || b & /*size*/
- 16) && ye(
+ ), (!l || D & /*size*/
+ 16) && we(
n,
"small",
/*size*/
v[4] === "small"
- ), (!l || b & /*size*/
- 16) && ye(
+ ), (!l || D & /*size*/
+ 16) && we(
n,
"large",
/*size*/
v[4] === "large"
- ), (!l || b & /*size*/
- 16) && ye(
+ ), (!l || D & /*size*/
+ 16) && we(
n,
"medium",
/*size*/
v[4] === "medium"
- ), (!l || b & /*disabled*/
+ ), (!l || D & /*disabled*/
128) && (e.disabled = /*disabled*/
- v[7]), (!l || b & /*label*/
- 2) && mt(
+ v[7]), (!l || D & /*label*/
+ 2) && vt(
e,
"aria-label",
/*label*/
v[1]
- ), (!l || b & /*hasPopup*/
- 256) && mt(
+ ), (!l || D & /*hasPopup*/
+ 256) && vt(
e,
"aria-haspopup",
/*hasPopup*/
v[8]
- ), (!l || b & /*label*/
- 2) && mt(
+ ), (!l || D & /*label*/
+ 2) && vt(
e,
"title",
/*label*/
v[1]
- ), (!l || b & /*pending*/
- 8) && ye(
+ ), (!l || D & /*pending*/
+ 8) && we(
e,
"pending",
/*pending*/
v[3]
- ), (!l || b & /*padded*/
- 32) && ye(
+ ), (!l || D & /*padded*/
+ 32) && we(
e,
"padded",
/*padded*/
v[5]
- ), (!l || b & /*highlight*/
- 64) && ye(
+ ), (!l || D & /*highlight*/
+ 64) && we(
e,
"highlight",
/*highlight*/
v[6]
- ), (!l || b & /*transparent*/
- 512) && ye(
+ ), (!l || D & /*transparent*/
+ 512) && we(
e,
"transparent",
/*transparent*/
v[9]
- ), b & /*disabled, _color*/
- 2176 && gn(e, "color", !/*disabled*/
+ ), D & /*disabled, _color*/
+ 2176 && bn(e, "color", !/*disabled*/
v[7] && /*_color*/
v[11] ? (
/*_color*/
v[11]
- ) : "var(--block-label-text-color)"), b & /*disabled, background*/
- 1152 && gn(e, "--bg-color", /*disabled*/
+ ) : "var(--block-label-text-color)"), D & /*disabled, background*/
+ 1152 && bn(e, "--bg-color", /*disabled*/
v[7] ? "auto" : (
/*background*/
v[10]
));
},
i(v) {
- l || (a && xn(a.$$.fragment, v), xn(f, v), l = !0);
+ l || (a && Hn(a.$$.fragment, v), Hn(f, v), l = !0);
},
o(v) {
- a && Un(a.$$.fragment, v), Un(f, v), l = !1;
+ a && Gn(a.$$.fragment, v), Gn(f, v), l = !1;
},
d(v) {
- v && ln(e), u && u.d(), a && Vi(a), f && f.d(v), r = !1, s();
+ v && rn(e), u && u.d(), a && Zi(a), f && f.d(v), r = !1, s();
}
};
}
-function yr(i, e, t) {
- let n, { $$slots: a = {}, $$scope: o } = e, { Icon: l } = e, { label: r = "" } = e, { show_label: s = !1 } = e, { pending: u = !1 } = e, { size: c = "small" } = e, { padded: h = !0 } = e, { highlight: d = !1 } = e, { disabled: f = !1 } = e, { hasPopup: v = !1 } = e, { color: b = "var(--block-label-text-color)" } = e, { transparent: w = !1 } = e, { background: k = "var(--block-background-fill)" } = e;
- function m(_) {
- or.call(this, i, _);
+function kr(i, e, t) {
+ let n, { $$slots: a = {}, $$scope: o } = e, { Icon: l } = e, { label: r = "" } = e, { show_label: s = !1 } = e, { pending: u = !1 } = e, { size: c = "small" } = e, { padded: m = !0 } = e, { highlight: d = !1 } = e, { disabled: f = !1 } = e, { hasPopup: v = !1 } = e, { color: D = "var(--block-label-text-color)" } = e, { transparent: w = !1 } = e, { background: F = "var(--block-background-fill)" } = e;
+ function h(_) {
+ cr.call(this, i, _);
}
return i.$$set = (_) => {
- "Icon" in _ && t(0, l = _.Icon), "label" in _ && t(1, r = _.label), "show_label" in _ && t(2, s = _.show_label), "pending" in _ && t(3, u = _.pending), "size" in _ && t(4, c = _.size), "padded" in _ && t(5, h = _.padded), "highlight" in _ && t(6, d = _.highlight), "disabled" in _ && t(7, f = _.disabled), "hasPopup" in _ && t(8, v = _.hasPopup), "color" in _ && t(12, b = _.color), "transparent" in _ && t(9, w = _.transparent), "background" in _ && t(10, k = _.background), "$$scope" in _ && t(13, o = _.$$scope);
+ "Icon" in _ && t(0, l = _.Icon), "label" in _ && t(1, r = _.label), "show_label" in _ && t(2, s = _.show_label), "pending" in _ && t(3, u = _.pending), "size" in _ && t(4, c = _.size), "padded" in _ && t(5, m = _.padded), "highlight" in _ && t(6, d = _.highlight), "disabled" in _ && t(7, f = _.disabled), "hasPopup" in _ && t(8, v = _.hasPopup), "color" in _ && t(12, D = _.color), "transparent" in _ && t(9, w = _.transparent), "background" in _ && t(10, F = _.background), "$$scope" in _ && t(13, o = _.$$scope);
}, i.$$.update = () => {
i.$$.dirty & /*highlight, color*/
- 4160 && t(11, n = d ? "var(--color-accent)" : b);
+ 4160 && t(11, n = d ? "var(--color-accent)" : D);
}, [
l,
r,
s,
u,
c,
- h,
+ m,
d,
f,
v,
w,
- k,
+ F,
n,
- b,
+ D,
o,
a,
- m
+ h
];
}
-class wr extends lr {
+class Er extends ur {
constructor(e) {
- super(), pr(this, e, yr, br, mr, {
+ super(), vr(this, e, kr, $r, Dr, {
Icon: 0,
label: 1,
show_label: 2,
@@ -4530,190 +4530,190 @@ class wr extends lr {
}
}
const {
- SvelteComponent: Cc,
- append_hydration: Sc,
- attr: Tc,
- binding_callbacks: Bc,
- children: Rc,
- claim_element: Ic,
- create_slot: Lc,
- detach: Oc,
- element: qc,
- get_all_dirty_from_scope: Nc,
- get_slot_changes: zc,
- init: Mc,
- insert_hydration: Pc,
- safe_not_equal: xc,
- toggle_class: Uc,
- transition_in: Hc,
- transition_out: jc,
- update_slot_base: Gc
+ SvelteComponent: Rc,
+ append_hydration: Lc,
+ attr: Oc,
+ binding_callbacks: qc,
+ children: Nc,
+ claim_element: Mc,
+ create_slot: Pc,
+ detach: zc,
+ element: xc,
+ get_all_dirty_from_scope: Uc,
+ get_slot_changes: Hc,
+ init: Gc,
+ insert_hydration: jc,
+ safe_not_equal: Vc,
+ toggle_class: Wc,
+ transition_in: Zc,
+ transition_out: Yc,
+ update_slot_base: Xc
} = window.__gradio__svelte__internal, {
- SvelteComponent: Vc,
- append_hydration: Wc,
- attr: Zc,
- children: Yc,
- claim_svg_element: Xc,
- detach: Kc,
- init: Qc,
- insert_hydration: Jc,
- noop: e_,
- safe_not_equal: t_,
- svg_element: n_
+ SvelteComponent: Kc,
+ append_hydration: Qc,
+ attr: Jc,
+ children: e_,
+ claim_svg_element: t_,
+ detach: n_,
+ init: i_,
+ insert_hydration: a_,
+ noop: l_,
+ safe_not_equal: o_,
+ svg_element: r_
} = window.__gradio__svelte__internal, {
- SvelteComponent: i_,
- append_hydration: a_,
- attr: l_,
- children: o_,
- claim_svg_element: r_,
- detach: s_,
- init: u_,
- insert_hydration: c_,
- noop: __,
- safe_not_equal: d_,
- svg_element: f_
+ SvelteComponent: s_,
+ append_hydration: u_,
+ attr: c_,
+ children: __,
+ claim_svg_element: d_,
+ detach: f_,
+ init: p_,
+ insert_hydration: h_,
+ noop: m_,
+ safe_not_equal: g_,
+ svg_element: v_
} = window.__gradio__svelte__internal, {
- SvelteComponent: p_,
- append_hydration: h_,
- attr: m_,
- children: g_,
- claim_svg_element: v_,
- detach: D_,
- init: b_,
- insert_hydration: y_,
- noop: w_,
- safe_not_equal: F_,
- svg_element: k_
+ SvelteComponent: b_,
+ append_hydration: D_,
+ attr: y_,
+ children: w_,
+ claim_svg_element: F_,
+ detach: $_,
+ init: k_,
+ insert_hydration: E_,
+ noop: A_,
+ safe_not_equal: C_,
+ svg_element: S_
} = window.__gradio__svelte__internal, {
- SvelteComponent: $_,
- append_hydration: E_,
- attr: A_,
- children: C_,
- claim_svg_element: S_,
- detach: T_,
- init: B_,
- insert_hydration: R_,
- noop: I_,
- safe_not_equal: L_,
- svg_element: O_
+ SvelteComponent: T_,
+ append_hydration: B_,
+ attr: I_,
+ children: R_,
+ claim_svg_element: L_,
+ detach: O_,
+ init: q_,
+ insert_hydration: N_,
+ noop: M_,
+ safe_not_equal: P_,
+ svg_element: z_
} = window.__gradio__svelte__internal, {
- SvelteComponent: q_,
- append_hydration: N_,
- attr: z_,
- children: M_,
- claim_svg_element: P_,
- detach: x_,
- init: U_,
- insert_hydration: H_,
- noop: j_,
- safe_not_equal: G_,
- svg_element: V_
+ SvelteComponent: x_,
+ append_hydration: U_,
+ attr: H_,
+ children: G_,
+ claim_svg_element: j_,
+ detach: V_,
+ init: W_,
+ insert_hydration: Z_,
+ noop: Y_,
+ safe_not_equal: X_,
+ svg_element: K_
} = window.__gradio__svelte__internal, {
- SvelteComponent: W_,
- append_hydration: Z_,
- attr: Y_,
- children: X_,
- claim_svg_element: K_,
- detach: Q_,
- init: J_,
- insert_hydration: ed,
- noop: td,
- safe_not_equal: nd,
- svg_element: id
+ SvelteComponent: Q_,
+ append_hydration: J_,
+ attr: ed,
+ children: td,
+ claim_svg_element: nd,
+ detach: id,
+ init: ad,
+ insert_hydration: ld,
+ noop: od,
+ safe_not_equal: rd,
+ svg_element: sd
} = window.__gradio__svelte__internal, {
- SvelteComponent: ad,
- append_hydration: ld,
- attr: od,
- children: rd,
- claim_svg_element: sd,
- detach: ud,
- init: cd,
- insert_hydration: _d,
- noop: dd,
- safe_not_equal: fd,
- svg_element: pd
+ SvelteComponent: ud,
+ append_hydration: cd,
+ attr: _d,
+ children: dd,
+ claim_svg_element: fd,
+ detach: pd,
+ init: hd,
+ insert_hydration: md,
+ noop: gd,
+ safe_not_equal: vd,
+ svg_element: bd
} = window.__gradio__svelte__internal, {
- SvelteComponent: hd,
- append_hydration: md,
- attr: gd,
- children: vd,
- claim_svg_element: Dd,
- detach: bd,
- init: yd,
- insert_hydration: wd,
- noop: Fd,
- safe_not_equal: kd,
- svg_element: $d
+ SvelteComponent: Dd,
+ append_hydration: yd,
+ attr: wd,
+ children: Fd,
+ claim_svg_element: $d,
+ detach: kd,
+ init: Ed,
+ insert_hydration: Ad,
+ noop: Cd,
+ safe_not_equal: Sd,
+ svg_element: Td
} = window.__gradio__svelte__internal, {
- SvelteComponent: Ed,
- append_hydration: Ad,
- attr: Cd,
- children: Sd,
- claim_svg_element: Td,
- detach: Bd,
- init: Rd,
- insert_hydration: Id,
- noop: Ld,
- safe_not_equal: Od,
- svg_element: qd
+ SvelteComponent: Bd,
+ append_hydration: Id,
+ attr: Rd,
+ children: Ld,
+ claim_svg_element: Od,
+ detach: qd,
+ init: Nd,
+ insert_hydration: Md,
+ noop: Pd,
+ safe_not_equal: zd,
+ svg_element: xd
} = window.__gradio__svelte__internal, {
- SvelteComponent: Nd,
- append_hydration: zd,
- attr: Md,
- children: Pd,
- claim_svg_element: xd,
- detach: Ud,
- init: Hd,
- insert_hydration: jd,
- noop: Gd,
- safe_not_equal: Vd,
- svg_element: Wd
+ SvelteComponent: Ud,
+ append_hydration: Hd,
+ attr: Gd,
+ children: jd,
+ claim_svg_element: Vd,
+ detach: Wd,
+ init: Zd,
+ insert_hydration: Yd,
+ noop: Xd,
+ safe_not_equal: Kd,
+ svg_element: Qd
} = window.__gradio__svelte__internal, {
- SvelteComponent: Zd,
- append_hydration: Yd,
- attr: Xd,
- children: Kd,
- claim_svg_element: Qd,
- detach: Jd,
- init: ef,
- insert_hydration: tf,
- noop: nf,
- safe_not_equal: af,
- svg_element: lf
+ SvelteComponent: Jd,
+ append_hydration: ef,
+ attr: tf,
+ children: nf,
+ claim_svg_element: af,
+ detach: lf,
+ init: of,
+ insert_hydration: rf,
+ noop: sf,
+ safe_not_equal: uf,
+ svg_element: cf
} = window.__gradio__svelte__internal, {
- SvelteComponent: of,
- append_hydration: rf,
- attr: sf,
- children: uf,
- claim_svg_element: cf,
- detach: _f,
- init: df,
- insert_hydration: ff,
- noop: pf,
- safe_not_equal: hf,
- svg_element: mf
+ SvelteComponent: _f,
+ append_hydration: df,
+ attr: ff,
+ children: pf,
+ claim_svg_element: hf,
+ detach: mf,
+ init: gf,
+ insert_hydration: vf,
+ noop: bf,
+ safe_not_equal: Df,
+ svg_element: yf
} = window.__gradio__svelte__internal, {
- SvelteComponent: Fr,
- append_hydration: Hn,
- attr: je,
- children: vn,
- claim_svg_element: Dn,
- detach: Yt,
- init: kr,
- insert_hydration: $r,
- noop: jn,
- safe_not_equal: Er,
- set_style: tt,
- svg_element: bn
+ SvelteComponent: Ar,
+ append_hydration: jn,
+ attr: He,
+ children: Dn,
+ claim_svg_element: yn,
+ detach: Kt,
+ init: Cr,
+ insert_hydration: Sr,
+ noop: Vn,
+ safe_not_equal: Tr,
+ set_style: it,
+ svg_element: wn
} = window.__gradio__svelte__internal;
-function Ar(i) {
+function Br(i) {
let e, t, n, a;
return {
c() {
- e = bn("svg"), t = bn("g"), n = bn("path"), a = bn("path"), this.h();
+ e = wn("svg"), t = wn("g"), n = wn("path"), a = wn("path"), this.h();
},
l(o) {
- e = Dn(o, "svg", {
+ e = yn(o, "svg", {
width: !0,
height: !0,
viewBox: !0,
@@ -4724,784 +4724,784 @@ function Ar(i) {
stroke: !0,
style: !0
});
- var l = vn(e);
- t = Dn(l, "g", { transform: !0 });
- var r = vn(t);
- n = Dn(r, "path", { d: !0, style: !0 }), vn(n).forEach(Yt), r.forEach(Yt), a = Dn(l, "path", { d: !0, style: !0 }), vn(a).forEach(Yt), l.forEach(Yt), this.h();
+ var l = Dn(e);
+ t = yn(l, "g", { transform: !0 });
+ var r = Dn(t);
+ n = yn(r, "path", { d: !0, style: !0 }), Dn(n).forEach(Kt), r.forEach(Kt), a = yn(l, "path", { d: !0, style: !0 }), Dn(a).forEach(Kt), l.forEach(Kt), this.h();
},
h() {
- je(n, "d", "M18,6L6.087,17.913"), tt(n, "fill", "none"), tt(n, "fill-rule", "nonzero"), tt(n, "stroke-width", "2px"), je(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), je(a, "d", "M4.364,4.364L19.636,19.636"), tt(a, "fill", "none"), tt(a, "fill-rule", "nonzero"), tt(a, "stroke-width", "2px"), je(e, "width", "100%"), je(e, "height", "100%"), je(e, "viewBox", "0 0 24 24"), je(e, "version", "1.1"), je(e, "xmlns", "http://www.w3.org/2000/svg"), je(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), je(e, "xml:space", "preserve"), je(e, "stroke", "currentColor"), tt(e, "fill-rule", "evenodd"), tt(e, "clip-rule", "evenodd"), tt(e, "stroke-linecap", "round"), tt(e, "stroke-linejoin", "round");
+ He(n, "d", "M18,6L6.087,17.913"), it(n, "fill", "none"), it(n, "fill-rule", "nonzero"), it(n, "stroke-width", "2px"), He(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), He(a, "d", "M4.364,4.364L19.636,19.636"), it(a, "fill", "none"), it(a, "fill-rule", "nonzero"), it(a, "stroke-width", "2px"), He(e, "width", "100%"), He(e, "height", "100%"), He(e, "viewBox", "0 0 24 24"), He(e, "version", "1.1"), He(e, "xmlns", "http://www.w3.org/2000/svg"), He(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), He(e, "xml:space", "preserve"), He(e, "stroke", "currentColor"), it(e, "fill-rule", "evenodd"), it(e, "clip-rule", "evenodd"), it(e, "stroke-linecap", "round"), it(e, "stroke-linejoin", "round");
},
m(o, l) {
- $r(o, e, l), Hn(e, t), Hn(t, n), Hn(e, a);
+ Sr(o, e, l), jn(e, t), jn(t, n), jn(e, a);
},
- p: jn,
- i: jn,
- o: jn,
+ p: Vn,
+ i: Vn,
+ o: Vn,
d(o) {
- o && Yt(e);
+ o && Kt(e);
}
};
}
-class Cr extends Fr {
+class Ir extends Ar {
constructor(e) {
- super(), kr(this, e, null, Ar, Er, {});
+ super(), Cr(this, e, null, Br, Tr, {});
}
}
const {
- SvelteComponent: gf,
- append_hydration: vf,
- attr: Df,
- children: bf,
- claim_svg_element: yf,
- detach: wf,
- init: Ff,
- insert_hydration: kf,
- noop: $f,
- safe_not_equal: Ef,
- svg_element: Af
+ SvelteComponent: wf,
+ append_hydration: Ff,
+ attr: $f,
+ children: kf,
+ claim_svg_element: Ef,
+ detach: Af,
+ init: Cf,
+ insert_hydration: Sf,
+ noop: Tf,
+ safe_not_equal: Bf,
+ svg_element: If
} = window.__gradio__svelte__internal, {
- SvelteComponent: Cf,
- append_hydration: Sf,
- attr: Tf,
- children: Bf,
- claim_svg_element: Rf,
- detach: If,
- init: Lf,
- insert_hydration: Of,
- noop: qf,
- safe_not_equal: Nf,
- svg_element: zf
+ SvelteComponent: Rf,
+ append_hydration: Lf,
+ attr: Of,
+ children: qf,
+ claim_svg_element: Nf,
+ detach: Mf,
+ init: Pf,
+ insert_hydration: zf,
+ noop: xf,
+ safe_not_equal: Uf,
+ svg_element: Hf
} = window.__gradio__svelte__internal, {
- SvelteComponent: Mf,
- append_hydration: Pf,
- attr: xf,
- children: Uf,
- claim_svg_element: Hf,
- detach: jf,
- init: Gf,
- insert_hydration: Vf,
- noop: Wf,
- safe_not_equal: Zf,
- svg_element: Yf
+ SvelteComponent: Gf,
+ append_hydration: jf,
+ attr: Vf,
+ children: Wf,
+ claim_svg_element: Zf,
+ detach: Yf,
+ init: Xf,
+ insert_hydration: Kf,
+ noop: Qf,
+ safe_not_equal: Jf,
+ svg_element: ep
} = window.__gradio__svelte__internal, {
- SvelteComponent: Xf,
- append_hydration: Kf,
- attr: Qf,
- children: Jf,
- claim_svg_element: ep,
- detach: tp,
- init: np,
- insert_hydration: ip,
- noop: ap,
- safe_not_equal: lp,
- svg_element: op
+ SvelteComponent: tp,
+ append_hydration: np,
+ attr: ip,
+ children: ap,
+ claim_svg_element: lp,
+ detach: op,
+ init: rp,
+ insert_hydration: sp,
+ noop: up,
+ safe_not_equal: cp,
+ svg_element: _p
} = window.__gradio__svelte__internal, {
- SvelteComponent: rp,
- append_hydration: sp,
- attr: up,
- children: cp,
- claim_svg_element: _p,
- detach: dp,
- init: fp,
- insert_hydration: pp,
- noop: hp,
- safe_not_equal: mp,
- svg_element: gp
+ SvelteComponent: dp,
+ append_hydration: fp,
+ attr: pp,
+ children: hp,
+ claim_svg_element: mp,
+ detach: gp,
+ init: vp,
+ insert_hydration: bp,
+ noop: Dp,
+ safe_not_equal: yp,
+ svg_element: wp
} = window.__gradio__svelte__internal, {
- SvelteComponent: vp,
- append_hydration: Dp,
- attr: bp,
- children: yp,
- claim_svg_element: wp,
- detach: Fp,
- init: kp,
- insert_hydration: $p,
- noop: Ep,
- safe_not_equal: Ap,
- svg_element: Cp
+ SvelteComponent: Fp,
+ append_hydration: $p,
+ attr: kp,
+ children: Ep,
+ claim_svg_element: Ap,
+ detach: Cp,
+ init: Sp,
+ insert_hydration: Tp,
+ noop: Bp,
+ safe_not_equal: Ip,
+ svg_element: Rp
} = window.__gradio__svelte__internal, {
- SvelteComponent: Sp,
- append_hydration: Tp,
- attr: Bp,
- children: Rp,
- claim_svg_element: Ip,
- detach: Lp,
- init: Op,
- insert_hydration: qp,
- noop: Np,
- safe_not_equal: zp,
- svg_element: Mp
+ SvelteComponent: Lp,
+ append_hydration: Op,
+ attr: qp,
+ children: Np,
+ claim_svg_element: Mp,
+ detach: Pp,
+ init: zp,
+ insert_hydration: xp,
+ noop: Up,
+ safe_not_equal: Hp,
+ svg_element: Gp
} = window.__gradio__svelte__internal, {
- SvelteComponent: Pp,
- append_hydration: xp,
- attr: Up,
- children: Hp,
- claim_svg_element: jp,
- detach: Gp,
- init: Vp,
- insert_hydration: Wp,
- noop: Zp,
- safe_not_equal: Yp,
- svg_element: Xp
+ SvelteComponent: jp,
+ append_hydration: Vp,
+ attr: Wp,
+ children: Zp,
+ claim_svg_element: Yp,
+ detach: Xp,
+ init: Kp,
+ insert_hydration: Qp,
+ noop: Jp,
+ safe_not_equal: eh,
+ svg_element: th
} = window.__gradio__svelte__internal, {
- SvelteComponent: Kp,
- append_hydration: Qp,
- attr: Jp,
- children: eh,
- claim_svg_element: th,
- detach: nh,
- init: ih,
- insert_hydration: ah,
- noop: lh,
- safe_not_equal: oh,
- svg_element: rh
+ SvelteComponent: nh,
+ append_hydration: ih,
+ attr: ah,
+ children: lh,
+ claim_svg_element: oh,
+ detach: rh,
+ init: sh,
+ insert_hydration: uh,
+ noop: ch,
+ safe_not_equal: _h,
+ svg_element: dh
} = window.__gradio__svelte__internal, {
- SvelteComponent: sh,
- append_hydration: uh,
- attr: ch,
- children: _h,
- claim_svg_element: dh,
- detach: fh,
- init: ph,
- insert_hydration: hh,
- noop: mh,
- safe_not_equal: gh,
- svg_element: vh
+ SvelteComponent: fh,
+ append_hydration: ph,
+ attr: hh,
+ children: mh,
+ claim_svg_element: gh,
+ detach: vh,
+ init: bh,
+ insert_hydration: Dh,
+ noop: yh,
+ safe_not_equal: wh,
+ svg_element: Fh
} = window.__gradio__svelte__internal, {
- SvelteComponent: Dh,
- append_hydration: bh,
- attr: yh,
- children: wh,
- claim_svg_element: Fh,
- detach: kh,
- init: $h,
- insert_hydration: Eh,
- noop: Ah,
- safe_not_equal: Ch,
- svg_element: Sh
+ SvelteComponent: $h,
+ append_hydration: kh,
+ attr: Eh,
+ children: Ah,
+ claim_svg_element: Ch,
+ detach: Sh,
+ init: Th,
+ insert_hydration: Bh,
+ noop: Ih,
+ safe_not_equal: Rh,
+ svg_element: Lh
} = window.__gradio__svelte__internal, {
- SvelteComponent: Th,
- append_hydration: Bh,
- attr: Rh,
- children: Ih,
- claim_svg_element: Lh,
- detach: Oh,
- init: qh,
- insert_hydration: Nh,
- noop: zh,
- safe_not_equal: Mh,
- svg_element: Ph
+ SvelteComponent: Oh,
+ append_hydration: qh,
+ attr: Nh,
+ children: Mh,
+ claim_svg_element: Ph,
+ detach: zh,
+ init: xh,
+ insert_hydration: Uh,
+ noop: Hh,
+ safe_not_equal: Gh,
+ svg_element: jh
} = window.__gradio__svelte__internal, {
- SvelteComponent: xh,
- append_hydration: Uh,
- attr: Hh,
- children: jh,
- claim_svg_element: Gh,
- detach: Vh,
- init: Wh,
- insert_hydration: Zh,
- noop: Yh,
- safe_not_equal: Xh,
- svg_element: Kh
+ SvelteComponent: Vh,
+ append_hydration: Wh,
+ attr: Zh,
+ children: Yh,
+ claim_svg_element: Xh,
+ detach: Kh,
+ init: Qh,
+ insert_hydration: Jh,
+ noop: em,
+ safe_not_equal: tm,
+ svg_element: nm
} = window.__gradio__svelte__internal, {
- SvelteComponent: Qh,
- append_hydration: Jh,
- attr: em,
- children: tm,
- claim_svg_element: nm,
- detach: im,
- init: am,
- insert_hydration: lm,
- noop: om,
- safe_not_equal: rm,
- svg_element: sm
+ SvelteComponent: im,
+ append_hydration: am,
+ attr: lm,
+ children: om,
+ claim_svg_element: rm,
+ detach: sm,
+ init: um,
+ insert_hydration: cm,
+ noop: _m,
+ safe_not_equal: dm,
+ svg_element: fm
} = window.__gradio__svelte__internal, {
- SvelteComponent: um,
- append_hydration: cm,
- attr: _m,
- children: dm,
- claim_svg_element: fm,
- detach: pm,
- init: hm,
- insert_hydration: mm,
- noop: gm,
- safe_not_equal: vm,
- svg_element: Dm
+ SvelteComponent: pm,
+ append_hydration: hm,
+ attr: mm,
+ children: gm,
+ claim_svg_element: vm,
+ detach: bm,
+ init: Dm,
+ insert_hydration: ym,
+ noop: wm,
+ safe_not_equal: Fm,
+ svg_element: $m
} = window.__gradio__svelte__internal, {
- SvelteComponent: bm,
- append_hydration: ym,
- attr: wm,
- children: Fm,
- claim_svg_element: km,
- detach: $m,
- init: Em,
- insert_hydration: Am,
- noop: Cm,
- safe_not_equal: Sm,
- svg_element: Tm
+ SvelteComponent: km,
+ append_hydration: Em,
+ attr: Am,
+ children: Cm,
+ claim_svg_element: Sm,
+ detach: Tm,
+ init: Bm,
+ insert_hydration: Im,
+ noop: Rm,
+ safe_not_equal: Lm,
+ svg_element: Om
} = window.__gradio__svelte__internal, {
- SvelteComponent: Bm,
- append_hydration: Rm,
- attr: Im,
- children: Lm,
- claim_svg_element: Om,
- detach: qm,
- init: Nm,
- insert_hydration: zm,
- noop: Mm,
- safe_not_equal: Pm,
- svg_element: xm
+ SvelteComponent: qm,
+ append_hydration: Nm,
+ attr: Mm,
+ children: Pm,
+ claim_svg_element: zm,
+ detach: xm,
+ init: Um,
+ insert_hydration: Hm,
+ noop: Gm,
+ safe_not_equal: jm,
+ svg_element: Vm
} = window.__gradio__svelte__internal, {
- SvelteComponent: Um,
- append_hydration: Hm,
- attr: jm,
- children: Gm,
- claim_svg_element: Vm,
- detach: Wm,
- init: Zm,
- insert_hydration: Ym,
- noop: Xm,
- safe_not_equal: Km,
- svg_element: Qm
+ SvelteComponent: Wm,
+ append_hydration: Zm,
+ attr: Ym,
+ children: Xm,
+ claim_svg_element: Km,
+ detach: Qm,
+ init: Jm,
+ insert_hydration: eg,
+ noop: tg,
+ safe_not_equal: ng,
+ svg_element: ig
} = window.__gradio__svelte__internal, {
- SvelteComponent: Jm,
- append_hydration: eg,
- attr: tg,
- children: ng,
- claim_svg_element: ig,
- detach: ag,
- init: lg,
- insert_hydration: og,
- noop: rg,
- safe_not_equal: sg,
- svg_element: ug
+ SvelteComponent: ag,
+ append_hydration: lg,
+ attr: og,
+ children: rg,
+ claim_svg_element: sg,
+ detach: ug,
+ init: cg,
+ insert_hydration: _g,
+ noop: dg,
+ safe_not_equal: fg,
+ svg_element: pg
} = window.__gradio__svelte__internal, {
- SvelteComponent: cg,
- append_hydration: _g,
- attr: dg,
- children: fg,
- claim_svg_element: pg,
- detach: hg,
- init: mg,
- insert_hydration: gg,
- noop: vg,
- safe_not_equal: Dg,
- svg_element: bg
+ SvelteComponent: hg,
+ append_hydration: mg,
+ attr: gg,
+ children: vg,
+ claim_svg_element: bg,
+ detach: Dg,
+ init: yg,
+ insert_hydration: wg,
+ noop: Fg,
+ safe_not_equal: $g,
+ svg_element: kg
} = window.__gradio__svelte__internal, {
- SvelteComponent: yg,
- append_hydration: wg,
- attr: Fg,
- children: kg,
- claim_svg_element: $g,
- detach: Eg,
- init: Ag,
- insert_hydration: Cg,
- noop: Sg,
- safe_not_equal: Tg,
- svg_element: Bg
+ SvelteComponent: Eg,
+ append_hydration: Ag,
+ attr: Cg,
+ children: Sg,
+ claim_svg_element: Tg,
+ detach: Bg,
+ init: Ig,
+ insert_hydration: Rg,
+ noop: Lg,
+ safe_not_equal: Og,
+ svg_element: qg
} = window.__gradio__svelte__internal, {
- SvelteComponent: Rg,
- append_hydration: Ig,
- attr: Lg,
- children: Og,
- claim_svg_element: qg,
- detach: Ng,
- init: zg,
- insert_hydration: Mg,
- noop: Pg,
- safe_not_equal: xg,
- svg_element: Ug
+ SvelteComponent: Ng,
+ append_hydration: Mg,
+ attr: Pg,
+ children: zg,
+ claim_svg_element: xg,
+ detach: Ug,
+ init: Hg,
+ insert_hydration: Gg,
+ noop: jg,
+ safe_not_equal: Vg,
+ svg_element: Wg
} = window.__gradio__svelte__internal, {
- SvelteComponent: Hg,
- append_hydration: jg,
- attr: Gg,
- children: Vg,
- claim_svg_element: Wg,
- detach: Zg,
- init: Yg,
- insert_hydration: Xg,
- noop: Kg,
- safe_not_equal: Qg,
- svg_element: Jg
+ SvelteComponent: Zg,
+ append_hydration: Yg,
+ attr: Xg,
+ children: Kg,
+ claim_svg_element: Qg,
+ detach: Jg,
+ init: e0,
+ insert_hydration: t0,
+ noop: n0,
+ safe_not_equal: i0,
+ svg_element: a0
} = window.__gradio__svelte__internal, {
- SvelteComponent: e0,
- append_hydration: t0,
- attr: n0,
- children: i0,
- claim_svg_element: a0,
- detach: l0,
- init: o0,
- insert_hydration: r0,
- noop: s0,
- safe_not_equal: u0,
- svg_element: c0
+ SvelteComponent: l0,
+ append_hydration: o0,
+ attr: r0,
+ children: s0,
+ claim_svg_element: u0,
+ detach: c0,
+ init: _0,
+ insert_hydration: d0,
+ noop: f0,
+ safe_not_equal: p0,
+ svg_element: h0
} = window.__gradio__svelte__internal, {
- SvelteComponent: _0,
- append_hydration: d0,
- attr: f0,
- children: p0,
- claim_svg_element: h0,
- detach: m0,
- init: g0,
- insert_hydration: v0,
- noop: D0,
- safe_not_equal: b0,
- svg_element: y0
+ SvelteComponent: m0,
+ append_hydration: g0,
+ attr: v0,
+ children: b0,
+ claim_svg_element: D0,
+ detach: y0,
+ init: w0,
+ insert_hydration: F0,
+ noop: $0,
+ safe_not_equal: k0,
+ svg_element: E0
} = window.__gradio__svelte__internal, {
- SvelteComponent: w0,
- append_hydration: F0,
- attr: k0,
- children: $0,
- claim_svg_element: E0,
- detach: A0,
- init: C0,
- insert_hydration: S0,
- noop: T0,
- safe_not_equal: B0,
- svg_element: R0
+ SvelteComponent: A0,
+ append_hydration: C0,
+ attr: S0,
+ children: T0,
+ claim_svg_element: B0,
+ detach: I0,
+ init: R0,
+ insert_hydration: L0,
+ noop: O0,
+ safe_not_equal: q0,
+ svg_element: N0
} = window.__gradio__svelte__internal, {
- SvelteComponent: I0,
- append_hydration: L0,
- attr: O0,
- children: q0,
- claim_svg_element: N0,
- detach: z0,
- init: M0,
- insert_hydration: P0,
- noop: x0,
- safe_not_equal: U0,
- svg_element: H0
+ SvelteComponent: M0,
+ append_hydration: P0,
+ attr: z0,
+ children: x0,
+ claim_svg_element: U0,
+ detach: H0,
+ init: G0,
+ insert_hydration: j0,
+ noop: V0,
+ safe_not_equal: W0,
+ svg_element: Z0
} = window.__gradio__svelte__internal, {
- SvelteComponent: j0,
- append_hydration: G0,
- attr: V0,
- children: W0,
- claim_svg_element: Z0,
- detach: Y0,
- init: X0,
- insert_hydration: K0,
- noop: Q0,
- safe_not_equal: J0,
- svg_element: e1
+ SvelteComponent: Y0,
+ append_hydration: X0,
+ attr: K0,
+ children: Q0,
+ claim_svg_element: J0,
+ detach: e1,
+ init: t1,
+ insert_hydration: n1,
+ noop: i1,
+ safe_not_equal: a1,
+ svg_element: l1
} = window.__gradio__svelte__internal, {
- SvelteComponent: t1,
- append_hydration: n1,
- attr: i1,
- children: a1,
- claim_svg_element: l1,
- detach: o1,
- init: r1,
- insert_hydration: s1,
- noop: u1,
- safe_not_equal: c1,
- svg_element: _1
+ SvelteComponent: o1,
+ append_hydration: r1,
+ attr: s1,
+ children: u1,
+ claim_svg_element: c1,
+ detach: _1,
+ init: d1,
+ insert_hydration: f1,
+ noop: p1,
+ safe_not_equal: h1,
+ svg_element: m1
} = window.__gradio__svelte__internal, {
- SvelteComponent: d1,
- append_hydration: f1,
- attr: p1,
- children: h1,
- claim_svg_element: m1,
- detach: g1,
- init: v1,
- insert_hydration: D1,
- noop: b1,
- safe_not_equal: y1,
- svg_element: w1
+ SvelteComponent: g1,
+ append_hydration: v1,
+ attr: b1,
+ children: D1,
+ claim_svg_element: y1,
+ detach: w1,
+ init: F1,
+ insert_hydration: $1,
+ noop: k1,
+ safe_not_equal: E1,
+ svg_element: A1
} = window.__gradio__svelte__internal, {
- SvelteComponent: F1,
- append_hydration: k1,
- attr: $1,
- children: E1,
- claim_svg_element: A1,
- detach: C1,
- init: S1,
- insert_hydration: T1,
- noop: B1,
- safe_not_equal: R1,
- svg_element: I1
+ SvelteComponent: C1,
+ append_hydration: S1,
+ attr: T1,
+ children: B1,
+ claim_svg_element: I1,
+ detach: R1,
+ init: L1,
+ insert_hydration: O1,
+ noop: q1,
+ safe_not_equal: N1,
+ svg_element: M1
} = window.__gradio__svelte__internal, {
- SvelteComponent: L1,
- append_hydration: O1,
- attr: q1,
- children: N1,
- claim_svg_element: z1,
- detach: M1,
- init: P1,
- insert_hydration: x1,
- noop: U1,
- safe_not_equal: H1,
- svg_element: j1
+ SvelteComponent: P1,
+ append_hydration: z1,
+ attr: x1,
+ children: U1,
+ claim_svg_element: H1,
+ detach: G1,
+ init: j1,
+ insert_hydration: V1,
+ noop: W1,
+ safe_not_equal: Z1,
+ svg_element: Y1
} = window.__gradio__svelte__internal, {
- SvelteComponent: G1,
- append_hydration: V1,
- attr: W1,
- children: Z1,
- claim_svg_element: Y1,
- detach: X1,
- init: K1,
- insert_hydration: Q1,
- noop: J1,
- safe_not_equal: ev,
- svg_element: tv
+ SvelteComponent: X1,
+ append_hydration: K1,
+ attr: Q1,
+ children: J1,
+ claim_svg_element: ev,
+ detach: tv,
+ init: nv,
+ insert_hydration: iv,
+ noop: av,
+ safe_not_equal: lv,
+ svg_element: ov
} = window.__gradio__svelte__internal, {
- SvelteComponent: nv,
- append_hydration: iv,
- attr: av,
- children: lv,
- claim_svg_element: ov,
- detach: rv,
- init: sv,
- insert_hydration: uv,
- noop: cv,
- safe_not_equal: _v,
- svg_element: dv
+ SvelteComponent: rv,
+ append_hydration: sv,
+ attr: uv,
+ children: cv,
+ claim_svg_element: _v,
+ detach: dv,
+ init: fv,
+ insert_hydration: pv,
+ noop: hv,
+ safe_not_equal: mv,
+ svg_element: gv
} = window.__gradio__svelte__internal, {
- SvelteComponent: fv,
- append_hydration: pv,
- attr: hv,
- children: mv,
- claim_svg_element: gv,
- detach: vv,
- init: Dv,
- insert_hydration: bv,
- noop: yv,
- safe_not_equal: wv,
- set_style: Fv,
- svg_element: kv
+ SvelteComponent: vv,
+ append_hydration: bv,
+ attr: Dv,
+ children: yv,
+ claim_svg_element: wv,
+ detach: Fv,
+ init: $v,
+ insert_hydration: kv,
+ noop: Ev,
+ safe_not_equal: Av,
+ set_style: Cv,
+ svg_element: Sv
} = window.__gradio__svelte__internal, {
- SvelteComponent: $v,
- append_hydration: Ev,
- attr: Av,
- children: Cv,
- claim_svg_element: Sv,
- detach: Tv,
- init: Bv,
- insert_hydration: Rv,
- noop: Iv,
- safe_not_equal: Lv,
- svg_element: Ov
+ SvelteComponent: Tv,
+ append_hydration: Bv,
+ attr: Iv,
+ children: Rv,
+ claim_svg_element: Lv,
+ detach: Ov,
+ init: qv,
+ insert_hydration: Nv,
+ noop: Mv,
+ safe_not_equal: Pv,
+ svg_element: zv
} = window.__gradio__svelte__internal, {
- SvelteComponent: qv,
- append_hydration: Nv,
- attr: zv,
- children: Mv,
- claim_svg_element: Pv,
- detach: xv,
- init: Uv,
- insert_hydration: Hv,
- noop: jv,
- safe_not_equal: Gv,
- svg_element: Vv
+ SvelteComponent: xv,
+ append_hydration: Uv,
+ attr: Hv,
+ children: Gv,
+ claim_svg_element: jv,
+ detach: Vv,
+ init: Wv,
+ insert_hydration: Zv,
+ noop: Yv,
+ safe_not_equal: Xv,
+ svg_element: Kv
} = window.__gradio__svelte__internal, {
- SvelteComponent: Wv,
- append_hydration: Zv,
- attr: Yv,
- children: Xv,
- claim_svg_element: Kv,
- detach: Qv,
- init: Jv,
- insert_hydration: eD,
- noop: tD,
- safe_not_equal: nD,
- svg_element: iD
+ SvelteComponent: Qv,
+ append_hydration: Jv,
+ attr: eb,
+ children: tb,
+ claim_svg_element: nb,
+ detach: ib,
+ init: ab,
+ insert_hydration: lb,
+ noop: ob,
+ safe_not_equal: rb,
+ svg_element: sb
} = window.__gradio__svelte__internal, {
- SvelteComponent: aD,
- append_hydration: lD,
- attr: oD,
- children: rD,
- claim_svg_element: sD,
- detach: uD,
- init: cD,
- insert_hydration: _D,
- noop: dD,
- safe_not_equal: fD,
- svg_element: pD
+ SvelteComponent: ub,
+ append_hydration: cb,
+ attr: _b,
+ children: db,
+ claim_svg_element: fb,
+ detach: pb,
+ init: hb,
+ insert_hydration: mb,
+ noop: gb,
+ safe_not_equal: vb,
+ svg_element: bb
} = window.__gradio__svelte__internal, {
- SvelteComponent: hD,
- append_hydration: mD,
- attr: gD,
- children: vD,
- claim_svg_element: DD,
- detach: bD,
- init: yD,
- insert_hydration: wD,
- noop: FD,
- safe_not_equal: kD,
- svg_element: $D
+ SvelteComponent: Db,
+ append_hydration: yb,
+ attr: wb,
+ children: Fb,
+ claim_svg_element: $b,
+ detach: kb,
+ init: Eb,
+ insert_hydration: Ab,
+ noop: Cb,
+ safe_not_equal: Sb,
+ svg_element: Tb
} = window.__gradio__svelte__internal, {
- SvelteComponent: ED,
- append_hydration: AD,
- attr: CD,
- children: SD,
- claim_svg_element: TD,
- detach: BD,
- init: RD,
- insert_hydration: ID,
- noop: LD,
- safe_not_equal: OD,
- svg_element: qD
+ SvelteComponent: Bb,
+ append_hydration: Ib,
+ attr: Rb,
+ children: Lb,
+ claim_svg_element: Ob,
+ detach: qb,
+ init: Nb,
+ insert_hydration: Mb,
+ noop: Pb,
+ safe_not_equal: zb,
+ svg_element: xb
} = window.__gradio__svelte__internal, {
- SvelteComponent: ND,
- append_hydration: zD,
- attr: MD,
- children: PD,
- claim_svg_element: xD,
- detach: UD,
- init: HD,
- insert_hydration: jD,
- noop: GD,
- safe_not_equal: VD,
- svg_element: WD
+ SvelteComponent: Ub,
+ append_hydration: Hb,
+ attr: Gb,
+ children: jb,
+ claim_svg_element: Vb,
+ detach: Wb,
+ init: Zb,
+ insert_hydration: Yb,
+ noop: Xb,
+ safe_not_equal: Kb,
+ svg_element: Qb
} = window.__gradio__svelte__internal, {
- SvelteComponent: ZD,
- append_hydration: YD,
- attr: XD,
- children: KD,
- claim_svg_element: QD,
- detach: JD,
- init: eb,
- insert_hydration: tb,
- noop: nb,
- safe_not_equal: ib,
- svg_element: ab
+ SvelteComponent: Jb,
+ append_hydration: eD,
+ attr: tD,
+ children: nD,
+ claim_svg_element: iD,
+ detach: aD,
+ init: lD,
+ insert_hydration: oD,
+ noop: rD,
+ safe_not_equal: sD,
+ svg_element: uD
} = window.__gradio__svelte__internal, {
- SvelteComponent: lb,
- append_hydration: ob,
- attr: rb,
- children: sb,
- claim_svg_element: ub,
- claim_text: cb,
- detach: _b,
- init: db,
- insert_hydration: fb,
- noop: pb,
- safe_not_equal: hb,
- svg_element: mb,
- text: gb
+ SvelteComponent: cD,
+ append_hydration: _D,
+ attr: dD,
+ children: fD,
+ claim_svg_element: pD,
+ claim_text: hD,
+ detach: mD,
+ init: gD,
+ insert_hydration: vD,
+ noop: bD,
+ safe_not_equal: DD,
+ svg_element: yD,
+ text: wD
} = window.__gradio__svelte__internal, {
- SvelteComponent: vb,
- append_hydration: Db,
- attr: bb,
- children: yb,
- claim_svg_element: wb,
- detach: Fb,
- init: kb,
- insert_hydration: $b,
- noop: Eb,
- safe_not_equal: Ab,
- svg_element: Cb
+ SvelteComponent: FD,
+ append_hydration: $D,
+ attr: kD,
+ children: ED,
+ claim_svg_element: AD,
+ detach: CD,
+ init: SD,
+ insert_hydration: TD,
+ noop: BD,
+ safe_not_equal: ID,
+ svg_element: RD
} = window.__gradio__svelte__internal, {
- SvelteComponent: Sb,
- append_hydration: Tb,
- attr: Bb,
- children: Rb,
- claim_svg_element: Ib,
- detach: Lb,
- init: Ob,
- insert_hydration: qb,
- noop: Nb,
- safe_not_equal: zb,
- svg_element: Mb
+ SvelteComponent: LD,
+ append_hydration: OD,
+ attr: qD,
+ children: ND,
+ claim_svg_element: MD,
+ detach: PD,
+ init: zD,
+ insert_hydration: xD,
+ noop: UD,
+ safe_not_equal: HD,
+ svg_element: GD
} = window.__gradio__svelte__internal, {
- SvelteComponent: Pb,
- append_hydration: xb,
- attr: Ub,
- children: Hb,
- claim_svg_element: jb,
- detach: Gb,
- init: Vb,
- insert_hydration: Wb,
- noop: Zb,
- safe_not_equal: Yb,
- svg_element: Xb
+ SvelteComponent: jD,
+ append_hydration: VD,
+ attr: WD,
+ children: ZD,
+ claim_svg_element: YD,
+ detach: XD,
+ init: KD,
+ insert_hydration: QD,
+ noop: JD,
+ safe_not_equal: ey,
+ svg_element: ty
} = window.__gradio__svelte__internal, {
- SvelteComponent: Kb,
- append_hydration: Qb,
- attr: Jb,
- children: ey,
- claim_svg_element: ty,
- detach: ny,
- init: iy,
- insert_hydration: ay,
- noop: ly,
- safe_not_equal: oy,
- svg_element: ry
+ SvelteComponent: ny,
+ append_hydration: iy,
+ attr: ay,
+ children: ly,
+ claim_svg_element: oy,
+ detach: ry,
+ init: sy,
+ insert_hydration: uy,
+ noop: cy,
+ safe_not_equal: _y,
+ svg_element: dy
} = window.__gradio__svelte__internal, {
- SvelteComponent: sy,
- append_hydration: uy,
- attr: cy,
- children: _y,
- claim_svg_element: dy,
- detach: fy,
- init: py,
- insert_hydration: hy,
- noop: my,
- safe_not_equal: gy,
- svg_element: vy
+ SvelteComponent: fy,
+ append_hydration: py,
+ attr: hy,
+ children: my,
+ claim_svg_element: gy,
+ detach: vy,
+ init: by,
+ insert_hydration: Dy,
+ noop: yy,
+ safe_not_equal: wy,
+ svg_element: Fy
} = window.__gradio__svelte__internal, {
- SvelteComponent: Dy,
- append_hydration: by,
- attr: yy,
- children: wy,
- claim_svg_element: Fy,
- detach: ky,
- init: $y,
- insert_hydration: Ey,
- noop: Ay,
- safe_not_equal: Cy,
- svg_element: Sy
+ SvelteComponent: $y,
+ append_hydration: ky,
+ attr: Ey,
+ children: Ay,
+ claim_svg_element: Cy,
+ detach: Sy,
+ init: Ty,
+ insert_hydration: By,
+ noop: Iy,
+ safe_not_equal: Ry,
+ svg_element: Ly
} = window.__gradio__svelte__internal, {
- SvelteComponent: Ty,
- append_hydration: By,
- attr: Ry,
- children: Iy,
- claim_svg_element: Ly,
- detach: Oy,
- init: qy,
- insert_hydration: Ny,
- noop: zy,
- safe_not_equal: My,
- svg_element: Py
+ SvelteComponent: Oy,
+ append_hydration: qy,
+ attr: Ny,
+ children: My,
+ claim_svg_element: Py,
+ detach: zy,
+ init: xy,
+ insert_hydration: Uy,
+ noop: Hy,
+ safe_not_equal: Gy,
+ svg_element: jy
} = window.__gradio__svelte__internal, {
- SvelteComponent: xy,
- append_hydration: Uy,
- attr: Hy,
- children: jy,
- claim_svg_element: Gy,
- claim_text: Vy,
- detach: Wy,
- init: Zy,
- insert_hydration: Yy,
- noop: Xy,
- safe_not_equal: Ky,
- svg_element: Qy,
- text: Jy
+ SvelteComponent: Vy,
+ append_hydration: Wy,
+ attr: Zy,
+ children: Yy,
+ claim_svg_element: Xy,
+ claim_text: Ky,
+ detach: Qy,
+ init: Jy,
+ insert_hydration: ew,
+ noop: tw,
+ safe_not_equal: nw,
+ svg_element: iw,
+ text: aw
} = window.__gradio__svelte__internal, {
- SvelteComponent: ew,
- append_hydration: tw,
- attr: nw,
- children: iw,
- claim_svg_element: aw,
- claim_text: lw,
- detach: ow,
- init: rw,
- insert_hydration: sw,
- noop: uw,
- safe_not_equal: cw,
- svg_element: _w,
- text: dw
+ SvelteComponent: lw,
+ append_hydration: ow,
+ attr: rw,
+ children: sw,
+ claim_svg_element: uw,
+ claim_text: cw,
+ detach: _w,
+ init: dw,
+ insert_hydration: fw,
+ noop: pw,
+ safe_not_equal: hw,
+ svg_element: mw,
+ text: gw
} = window.__gradio__svelte__internal, {
- SvelteComponent: fw,
- append_hydration: pw,
- attr: hw,
- children: mw,
- claim_svg_element: gw,
- claim_text: vw,
- detach: Dw,
- init: bw,
- insert_hydration: yw,
- noop: ww,
- safe_not_equal: Fw,
- svg_element: kw,
- text: $w
+ SvelteComponent: vw,
+ append_hydration: bw,
+ attr: Dw,
+ children: yw,
+ claim_svg_element: ww,
+ claim_text: Fw,
+ detach: $w,
+ init: kw,
+ insert_hydration: Ew,
+ noop: Aw,
+ safe_not_equal: Cw,
+ svg_element: Sw,
+ text: Tw
} = window.__gradio__svelte__internal, {
- SvelteComponent: Ew,
- append_hydration: Aw,
- attr: Cw,
- children: Sw,
- claim_svg_element: Tw,
- detach: Bw,
- init: Rw,
- insert_hydration: Iw,
- noop: Lw,
- safe_not_equal: Ow,
- svg_element: qw
+ SvelteComponent: Bw,
+ append_hydration: Iw,
+ attr: Rw,
+ children: Lw,
+ claim_svg_element: Ow,
+ detach: qw,
+ init: Nw,
+ insert_hydration: Mw,
+ noop: Pw,
+ safe_not_equal: zw,
+ svg_element: xw
} = window.__gradio__svelte__internal, {
- SvelteComponent: Nw,
- append_hydration: zw,
- attr: Mw,
- children: Pw,
- claim_svg_element: xw,
- detach: Uw,
- init: Hw,
- insert_hydration: jw,
- noop: Gw,
- safe_not_equal: Vw,
- svg_element: Ww
+ SvelteComponent: Uw,
+ append_hydration: Hw,
+ attr: Gw,
+ children: jw,
+ claim_svg_element: Vw,
+ detach: Ww,
+ init: Zw,
+ insert_hydration: Yw,
+ noop: Xw,
+ safe_not_equal: Kw,
+ svg_element: Qw
} = window.__gradio__svelte__internal, {
- SvelteComponent: Zw,
- append_hydration: Yw,
- attr: Xw,
- children: Kw,
- claim_svg_element: Qw,
- detach: Jw,
- init: eF,
- insert_hydration: tF,
- noop: nF,
- safe_not_equal: iF,
- svg_element: aF
+ SvelteComponent: Jw,
+ append_hydration: eF,
+ attr: tF,
+ children: nF,
+ claim_svg_element: iF,
+ detach: aF,
+ init: lF,
+ insert_hydration: oF,
+ noop: rF,
+ safe_not_equal: sF,
+ svg_element: uF
} = window.__gradio__svelte__internal, {
- SvelteComponent: lF,
- append_hydration: oF,
- attr: rF,
- children: sF,
- claim_svg_element: uF,
- detach: cF,
- init: _F,
- insert_hydration: dF,
- noop: fF,
- safe_not_equal: pF,
- svg_element: hF
+ SvelteComponent: cF,
+ append_hydration: _F,
+ attr: dF,
+ children: fF,
+ claim_svg_element: pF,
+ detach: hF,
+ init: mF,
+ insert_hydration: gF,
+ noop: vF,
+ safe_not_equal: bF,
+ svg_element: DF
} = window.__gradio__svelte__internal, {
- SvelteComponent: mF,
- append_hydration: gF,
- attr: vF,
- children: DF,
- claim_svg_element: bF,
- detach: yF,
- init: wF,
- insert_hydration: FF,
- noop: kF,
- safe_not_equal: $F,
- svg_element: EF
+ SvelteComponent: yF,
+ append_hydration: wF,
+ attr: FF,
+ children: $F,
+ claim_svg_element: kF,
+ detach: EF,
+ init: AF,
+ insert_hydration: CF,
+ noop: SF,
+ safe_not_equal: TF,
+ svg_element: BF
} = window.__gradio__svelte__internal, {
- SvelteComponent: AF,
- append_hydration: CF,
- attr: SF,
- children: TF,
- claim_svg_element: BF,
- detach: RF,
- init: IF,
- insert_hydration: LF,
- noop: OF,
- safe_not_equal: qF,
- svg_element: NF
+ SvelteComponent: IF,
+ append_hydration: RF,
+ attr: LF,
+ children: OF,
+ claim_svg_element: qF,
+ detach: NF,
+ init: MF,
+ insert_hydration: PF,
+ noop: zF,
+ safe_not_equal: xF,
+ svg_element: UF
} = window.__gradio__svelte__internal, {
- SvelteComponent: zF,
- append_hydration: MF,
- attr: PF,
- children: xF,
- claim_svg_element: UF,
- detach: HF,
- init: jF,
- insert_hydration: GF,
- noop: VF,
- safe_not_equal: WF,
- svg_element: ZF
+ SvelteComponent: HF,
+ append_hydration: GF,
+ attr: jF,
+ children: VF,
+ claim_svg_element: WF,
+ detach: ZF,
+ init: YF,
+ insert_hydration: XF,
+ noop: KF,
+ safe_not_equal: QF,
+ svg_element: JF
} = window.__gradio__svelte__internal, {
- SvelteComponent: YF,
- append_hydration: XF,
- attr: KF,
- children: QF,
- claim_svg_element: JF,
- detach: ek,
- init: tk,
- insert_hydration: nk,
- noop: ik,
- safe_not_equal: ak,
- svg_element: lk
-} = window.__gradio__svelte__internal, Sr = [
+ SvelteComponent: e$,
+ append_hydration: t$,
+ attr: n$,
+ children: i$,
+ claim_svg_element: a$,
+ detach: l$,
+ init: o$,
+ insert_hydration: r$,
+ noop: s$,
+ safe_not_equal: u$,
+ svg_element: c$
+} = window.__gradio__svelte__internal, Rr = [
{ color: "red", primary: 600, secondary: 100 },
{ color: "green", primary: 600, secondary: 100 },
{ color: "blue", primary: 600, secondary: 100 },
@@ -5512,7 +5512,7 @@ const {
{ color: "cyan", primary: 600, secondary: 100 },
{ color: "lime", primary: 500, secondary: 100 },
{ color: "pink", primary: 600, secondary: 100 }
-], Xi = {
+], Qi = {
inherit: "inherit",
current: "currentColor",
transparent: "transparent",
@@ -5805,154 +5805,154 @@ const {
950: "#4c0519"
}
};
-Sr.reduce(
+Rr.reduce(
(i, { color: e, primary: t, secondary: n }) => ({
...i,
[e]: {
- primary: Xi[e][t],
- secondary: Xi[e][n]
+ primary: Qi[e][t],
+ secondary: Qi[e][n]
}
}),
{}
);
const {
- SvelteComponent: ok,
- claim_component: rk,
- create_component: sk,
- destroy_component: uk,
- init: ck,
- mount_component: _k,
- safe_not_equal: dk,
- transition_in: fk,
- transition_out: pk
-} = window.__gradio__svelte__internal, { createEventDispatcher: hk } = window.__gradio__svelte__internal, {
- SvelteComponent: mk,
- append_hydration: gk,
- attr: vk,
- check_outros: Dk,
- children: bk,
- claim_component: yk,
- claim_element: wk,
- claim_space: Fk,
- claim_text: kk,
- create_component: $k,
- destroy_component: Ek,
- detach: Ak,
- element: Ck,
- empty: Sk,
- group_outros: Tk,
- init: Bk,
- insert_hydration: Rk,
- mount_component: Ik,
- safe_not_equal: Lk,
- set_data: Ok,
- space: qk,
- text: Nk,
- toggle_class: zk,
- transition_in: Mk,
- transition_out: Pk
+ SvelteComponent: _$,
+ claim_component: d$,
+ create_component: f$,
+ destroy_component: p$,
+ init: h$,
+ mount_component: m$,
+ safe_not_equal: g$,
+ transition_in: v$,
+ transition_out: b$
+} = window.__gradio__svelte__internal, { createEventDispatcher: D$ } = window.__gradio__svelte__internal, {
+ SvelteComponent: y$,
+ append_hydration: w$,
+ attr: F$,
+ check_outros: $$,
+ children: k$,
+ claim_component: E$,
+ claim_element: A$,
+ claim_space: C$,
+ claim_text: S$,
+ create_component: T$,
+ destroy_component: B$,
+ detach: I$,
+ element: R$,
+ empty: L$,
+ group_outros: O$,
+ init: q$,
+ insert_hydration: N$,
+ mount_component: M$,
+ safe_not_equal: P$,
+ set_data: z$,
+ space: x$,
+ text: U$,
+ toggle_class: H$,
+ transition_in: G$,
+ transition_out: j$
} = window.__gradio__svelte__internal, {
- SvelteComponent: xk,
- attr: Uk,
- children: Hk,
- claim_element: jk,
- create_slot: Gk,
- detach: Vk,
- element: Wk,
- get_all_dirty_from_scope: Zk,
- get_slot_changes: Yk,
- init: Xk,
- insert_hydration: Kk,
- safe_not_equal: Qk,
- toggle_class: Jk,
- transition_in: e2,
- transition_out: t2,
- update_slot_base: n2
+ SvelteComponent: V$,
+ attr: W$,
+ children: Z$,
+ claim_element: Y$,
+ create_slot: X$,
+ detach: K$,
+ element: Q$,
+ get_all_dirty_from_scope: J$,
+ get_slot_changes: ek,
+ init: tk,
+ insert_hydration: nk,
+ safe_not_equal: ik,
+ toggle_class: ak,
+ transition_in: lk,
+ transition_out: ok,
+ update_slot_base: rk
} = window.__gradio__svelte__internal, {
- SvelteComponent: i2,
- append_hydration: a2,
- attr: l2,
- check_outros: o2,
- children: r2,
- claim_component: s2,
- claim_element: u2,
- claim_space: c2,
- create_component: _2,
- destroy_component: d2,
- detach: f2,
- element: p2,
- empty: h2,
- group_outros: m2,
- init: g2,
- insert_hydration: v2,
- listen: D2,
- mount_component: b2,
- safe_not_equal: y2,
- space: w2,
- toggle_class: F2,
- transition_in: k2,
- transition_out: $2
+ SvelteComponent: sk,
+ append_hydration: uk,
+ attr: ck,
+ check_outros: _k,
+ children: dk,
+ claim_component: fk,
+ claim_element: pk,
+ claim_space: hk,
+ create_component: mk,
+ destroy_component: gk,
+ detach: vk,
+ element: bk,
+ empty: Dk,
+ group_outros: yk,
+ init: wk,
+ insert_hydration: Fk,
+ listen: $k,
+ mount_component: kk,
+ safe_not_equal: Ek,
+ space: Ak,
+ toggle_class: Ck,
+ transition_in: Sk,
+ transition_out: Tk
} = window.__gradio__svelte__internal, {
- SvelteComponent: E2,
- attr: A2,
- children: C2,
- claim_element: S2,
- create_slot: T2,
- detach: B2,
- element: R2,
- get_all_dirty_from_scope: I2,
- get_slot_changes: L2,
- init: O2,
- insert_hydration: q2,
- null_to_empty: N2,
- safe_not_equal: z2,
- transition_in: M2,
- transition_out: P2,
- update_slot_base: x2
+ SvelteComponent: Bk,
+ attr: Ik,
+ children: Rk,
+ claim_element: Lk,
+ create_slot: Ok,
+ detach: qk,
+ element: Nk,
+ get_all_dirty_from_scope: Mk,
+ get_slot_changes: Pk,
+ init: zk,
+ insert_hydration: xk,
+ null_to_empty: Uk,
+ safe_not_equal: Hk,
+ transition_in: Gk,
+ transition_out: jk,
+ update_slot_base: Vk
} = window.__gradio__svelte__internal, {
- SvelteComponent: U2,
- check_outros: H2,
- claim_component: j2,
- create_component: G2,
- destroy_component: V2,
- detach: W2,
- empty: Z2,
- group_outros: Y2,
- init: X2,
- insert_hydration: K2,
- mount_component: Q2,
- noop: J2,
- safe_not_equal: e$,
- transition_in: t$,
- transition_out: n$
-} = window.__gradio__svelte__internal, { createEventDispatcher: i$ } = window.__gradio__svelte__internal;
-function Mt(i) {
+ SvelteComponent: Wk,
+ check_outros: Zk,
+ claim_component: Yk,
+ create_component: Xk,
+ destroy_component: Kk,
+ detach: Qk,
+ empty: Jk,
+ group_outros: eE,
+ init: tE,
+ insert_hydration: nE,
+ mount_component: iE,
+ noop: aE,
+ safe_not_equal: lE,
+ transition_in: oE,
+ transition_out: rE
+} = window.__gradio__svelte__internal, { createEventDispatcher: sE } = window.__gradio__svelte__internal;
+function xt(i) {
let e = ["", "k", "M", "G", "T", "P", "E", "Z"], t = 0;
for (; i > 1e3 && t < e.length - 1; )
i /= 1e3, t++;
let n = e[t];
return (Number.isInteger(i) ? i : i.toFixed(1)) + n;
}
-function En() {
+function Sn() {
}
-const gl = typeof window < "u";
-let Ki = gl ? () => window.performance.now() : () => Date.now(), vl = gl ? (i) => requestAnimationFrame(i) : En;
-const xt = /* @__PURE__ */ new Set();
-function Dl(i) {
- xt.forEach((e) => {
- e.c(i) || (xt.delete(e), e.f());
- }), xt.size !== 0 && vl(Dl);
+const wl = typeof window < "u";
+let Ji = wl ? () => window.performance.now() : () => Date.now(), Fl = wl ? (i) => requestAnimationFrame(i) : Sn;
+const Ht = /* @__PURE__ */ new Set();
+function $l(i) {
+ Ht.forEach((e) => {
+ e.c(i) || (Ht.delete(e), e.f());
+ }), Ht.size !== 0 && Fl($l);
}
-function Tr(i) {
+function Lr(i) {
let e;
- return xt.size === 0 && vl(Dl), { promise: new Promise((t) => {
- xt.add(e = { c: i, f: t });
+ return Ht.size === 0 && Fl($l), { promise: new Promise((t) => {
+ Ht.add(e = { c: i, f: t });
}), abort() {
- xt.delete(e);
+ Ht.delete(e);
} };
}
const zt = [];
-function Br(i, e = En) {
+function Or(i, e = Sn) {
let t;
const n = /* @__PURE__ */ new Set();
function a(l) {
@@ -5969,115 +5969,115 @@ function Br(i, e = En) {
function o(l) {
a(l(i));
}
- return { set: a, update: o, subscribe: function(l, r = En) {
+ return { set: a, update: o, subscribe: function(l, r = Sn) {
const s = [l, r];
- return n.add(s), n.size === 1 && (t = e(a, o) || En), l(i), () => {
+ return n.add(s), n.size === 1 && (t = e(a, o) || Sn), l(i), () => {
n.delete(s), n.size === 0 && t && (t(), t = null);
};
} };
}
-function Qi(i) {
+function ea(i) {
return Object.prototype.toString.call(i) === "[object Date]";
}
-function li(i, e, t, n) {
- if (typeof t == "number" || Qi(t)) {
+function oi(i, e, t, n) {
+ if (typeof t == "number" || ea(t)) {
const a = n - t, o = (t - e) / (i.dt || 1 / 60), l = (o + (i.opts.stiffness * a - i.opts.damping * o) * i.inv_mass) * i.dt;
- return Math.abs(l) < i.opts.precision && Math.abs(a) < i.opts.precision ? n : (i.settled = !1, Qi(t) ? new Date(t.getTime() + l) : t + l);
+ return Math.abs(l) < i.opts.precision && Math.abs(a) < i.opts.precision ? n : (i.settled = !1, ea(t) ? new Date(t.getTime() + l) : t + l);
}
- if (Array.isArray(t)) return t.map((a, o) => li(i, e[o], t[o], n[o]));
+ if (Array.isArray(t)) return t.map((a, o) => oi(i, e[o], t[o], n[o]));
if (typeof t == "object") {
const a = {};
- for (const o in t) a[o] = li(i, e[o], t[o], n[o]);
+ for (const o in t) a[o] = oi(i, e[o], t[o], n[o]);
return a;
}
throw new Error(`Cannot spring ${typeof t} values`);
}
-function Ji(i, e = {}) {
- const t = Br(i), { stiffness: n = 0.15, damping: a = 0.8, precision: o = 0.01 } = e;
- let l, r, s, u = i, c = i, h = 1, d = 0, f = !1;
- function v(w, k = {}) {
+function ta(i, e = {}) {
+ const t = Or(i), { stiffness: n = 0.15, damping: a = 0.8, precision: o = 0.01 } = e;
+ let l, r, s, u = i, c = i, m = 1, d = 0, f = !1;
+ function v(w, F = {}) {
c = w;
- const m = s = {};
- return i == null || k.hard || b.stiffness >= 1 && b.damping >= 1 ? (f = !0, l = Ki(), u = w, t.set(i = c), Promise.resolve()) : (k.soft && (d = 1 / (60 * (k.soft === !0 ? 0.5 : +k.soft)), h = 0), r || (l = Ki(), f = !1, r = Tr((_) => {
+ const h = s = {};
+ return i == null || F.hard || D.stiffness >= 1 && D.damping >= 1 ? (f = !0, l = Ji(), u = w, t.set(i = c), Promise.resolve()) : (F.soft && (d = 1 / (60 * (F.soft === !0 ? 0.5 : +F.soft)), m = 0), r || (l = Ji(), f = !1, r = Lr((_) => {
if (f) return f = !1, r = null, !1;
- h = Math.min(h + d, 1);
- const g = { inv_mass: h, opts: b, settled: !0, dt: 60 * (_ - l) / 1e3 }, y = li(g, u, i, c);
+ m = Math.min(m + d, 1);
+ const g = { inv_mass: m, opts: D, settled: !0, dt: 60 * (_ - l) / 1e3 }, y = oi(g, u, i, c);
return l = _, u = i, t.set(i = y), g.settled && (r = null), !g.settled;
})), new Promise((_) => {
r.promise.then(() => {
- m === s && _();
+ h === s && _();
});
}));
}
- const b = { set: v, update: (w, k) => v(w(c, i), k), subscribe: t.subscribe, stiffness: n, damping: a, precision: o };
- return b;
+ const D = { set: v, update: (w, F) => v(w(c, i), F), subscribe: t.subscribe, stiffness: n, damping: a, precision: o };
+ return D;
}
const {
- SvelteComponent: Rr,
+ SvelteComponent: qr,
append_hydration: Ge,
attr: V,
- children: Ne,
- claim_element: Ir,
- claim_svg_element: Ve,
- component_subscribe: ea,
+ children: qe,
+ claim_element: Nr,
+ claim_svg_element: je,
+ component_subscribe: na,
detach: Le,
- element: Lr,
- init: Or,
- insert_hydration: qr,
- noop: ta,
- safe_not_equal: Nr,
- set_style: yn,
- svg_element: We,
- toggle_class: na
-} = window.__gradio__svelte__internal, { onMount: zr } = window.__gradio__svelte__internal;
-function Mr(i) {
- let e, t, n, a, o, l, r, s, u, c, h, d;
+ element: Mr,
+ init: Pr,
+ insert_hydration: zr,
+ noop: ia,
+ safe_not_equal: xr,
+ set_style: Fn,
+ svg_element: Ve,
+ toggle_class: aa
+} = window.__gradio__svelte__internal, { onMount: Ur } = window.__gradio__svelte__internal;
+function Hr(i) {
+ let e, t, n, a, o, l, r, s, u, c, m, d;
return {
c() {
- e = Lr("div"), t = We("svg"), n = We("g"), a = We("path"), o = We("path"), l = We("path"), r = We("path"), s = We("g"), u = We("path"), c = We("path"), h = We("path"), d = We("path"), this.h();
+ e = Mr("div"), t = Ve("svg"), n = Ve("g"), a = Ve("path"), o = Ve("path"), l = Ve("path"), r = Ve("path"), s = Ve("g"), u = Ve("path"), c = Ve("path"), m = Ve("path"), d = Ve("path"), this.h();
},
l(f) {
- e = Ir(f, "DIV", { class: !0 });
- var v = Ne(e);
- t = Ve(v, "svg", {
+ e = Nr(f, "DIV", { class: !0 });
+ var v = qe(e);
+ t = je(v, "svg", {
viewBox: !0,
fill: !0,
xmlns: !0,
class: !0
});
- var b = Ne(t);
- n = Ve(b, "g", { style: !0 });
- var w = Ne(n);
- a = Ve(w, "path", {
+ var D = qe(t);
+ n = je(D, "g", { style: !0 });
+ var w = qe(n);
+ a = je(w, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), Ne(a).forEach(Le), o = Ve(w, "path", { d: !0, fill: !0, class: !0 }), Ne(o).forEach(Le), l = Ve(w, "path", {
+ }), qe(a).forEach(Le), o = je(w, "path", { d: !0, fill: !0, class: !0 }), qe(o).forEach(Le), l = je(w, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), Ne(l).forEach(Le), r = Ve(w, "path", { d: !0, fill: !0, class: !0 }), Ne(r).forEach(Le), w.forEach(Le), s = Ve(b, "g", { style: !0 });
- var k = Ne(s);
- u = Ve(k, "path", {
+ }), qe(l).forEach(Le), r = je(w, "path", { d: !0, fill: !0, class: !0 }), qe(r).forEach(Le), w.forEach(Le), s = je(D, "g", { style: !0 });
+ var F = qe(s);
+ u = je(F, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), Ne(u).forEach(Le), c = Ve(k, "path", { d: !0, fill: !0, class: !0 }), Ne(c).forEach(Le), h = Ve(k, "path", {
+ }), qe(u).forEach(Le), c = je(F, "path", { d: !0, fill: !0, class: !0 }), qe(c).forEach(Le), m = je(F, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), Ne(h).forEach(Le), d = Ve(k, "path", { d: !0, fill: !0, class: !0 }), Ne(d).forEach(Le), k.forEach(Le), b.forEach(Le), v.forEach(Le), this.h();
+ }), qe(m).forEach(Le), d = je(F, "path", { d: !0, fill: !0, class: !0 }), qe(d).forEach(Le), F.forEach(Le), D.forEach(Le), v.forEach(Le), this.h();
},
h() {
- V(a, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), V(a, "fill", "#FF7C00"), V(a, "fill-opacity", "0.4"), V(a, "class", "svelte-43sxxs"), V(o, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), V(o, "fill", "#FF7C00"), V(o, "class", "svelte-43sxxs"), V(l, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), V(l, "fill", "#FF7C00"), V(l, "fill-opacity", "0.4"), V(l, "class", "svelte-43sxxs"), V(r, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), V(r, "fill", "#FF7C00"), V(r, "class", "svelte-43sxxs"), yn(n, "transform", "translate(" + /*$top*/
+ V(a, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), V(a, "fill", "#FF7C00"), V(a, "fill-opacity", "0.4"), V(a, "class", "svelte-43sxxs"), V(o, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), V(o, "fill", "#FF7C00"), V(o, "class", "svelte-43sxxs"), V(l, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), V(l, "fill", "#FF7C00"), V(l, "fill-opacity", "0.4"), V(l, "class", "svelte-43sxxs"), V(r, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), V(r, "fill", "#FF7C00"), V(r, "class", "svelte-43sxxs"), Fn(n, "transform", "translate(" + /*$top*/
i[1][0] + "px, " + /*$top*/
- i[1][1] + "px)"), V(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), V(u, "fill", "#FF7C00"), V(u, "fill-opacity", "0.4"), V(u, "class", "svelte-43sxxs"), V(c, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), V(c, "fill", "#FF7C00"), V(c, "class", "svelte-43sxxs"), V(h, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), V(h, "fill", "#FF7C00"), V(h, "fill-opacity", "0.4"), V(h, "class", "svelte-43sxxs"), V(d, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), V(d, "fill", "#FF7C00"), V(d, "class", "svelte-43sxxs"), yn(s, "transform", "translate(" + /*$bottom*/
+ i[1][1] + "px)"), V(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), V(u, "fill", "#FF7C00"), V(u, "fill-opacity", "0.4"), V(u, "class", "svelte-43sxxs"), V(c, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), V(c, "fill", "#FF7C00"), V(c, "class", "svelte-43sxxs"), V(m, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), V(m, "fill", "#FF7C00"), V(m, "fill-opacity", "0.4"), V(m, "class", "svelte-43sxxs"), V(d, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), V(d, "fill", "#FF7C00"), V(d, "class", "svelte-43sxxs"), Fn(s, "transform", "translate(" + /*$bottom*/
i[2][0] + "px, " + /*$bottom*/
- i[2][1] + "px)"), V(t, "viewBox", "-1200 -1200 3000 3000"), V(t, "fill", "none"), V(t, "xmlns", "http://www.w3.org/2000/svg"), V(t, "class", "svelte-43sxxs"), V(e, "class", "svelte-43sxxs"), na(
+ i[2][1] + "px)"), V(t, "viewBox", "-1200 -1200 3000 3000"), V(t, "fill", "none"), V(t, "xmlns", "http://www.w3.org/2000/svg"), V(t, "class", "svelte-43sxxs"), V(e, "class", "svelte-43sxxs"), aa(
e,
"margin",
/*margin*/
@@ -6085,141 +6085,141 @@ function Mr(i) {
);
},
m(f, v) {
- qr(f, e, v), Ge(e, t), Ge(t, n), Ge(n, a), Ge(n, o), Ge(n, l), Ge(n, r), Ge(t, s), Ge(s, u), Ge(s, c), Ge(s, h), Ge(s, d);
+ zr(f, e, v), Ge(e, t), Ge(t, n), Ge(n, a), Ge(n, o), Ge(n, l), Ge(n, r), Ge(t, s), Ge(s, u), Ge(s, c), Ge(s, m), Ge(s, d);
},
p(f, [v]) {
v & /*$top*/
- 2 && yn(n, "transform", "translate(" + /*$top*/
+ 2 && Fn(n, "transform", "translate(" + /*$top*/
f[1][0] + "px, " + /*$top*/
f[1][1] + "px)"), v & /*$bottom*/
- 4 && yn(s, "transform", "translate(" + /*$bottom*/
+ 4 && Fn(s, "transform", "translate(" + /*$bottom*/
f[2][0] + "px, " + /*$bottom*/
f[2][1] + "px)"), v & /*margin*/
- 1 && na(
+ 1 && aa(
e,
"margin",
/*margin*/
f[0]
);
},
- i: ta,
- o: ta,
+ i: ia,
+ o: ia,
d(f) {
f && Le(e);
}
};
}
-function Pr(i, e, t) {
+function Gr(i, e, t) {
let n, a;
- var o = this && this.__awaiter || function(f, v, b, w) {
- function k(m) {
- return m instanceof b ? m : new b(function(_) {
- _(m);
+ var o = this && this.__awaiter || function(f, v, D, w) {
+ function F(h) {
+ return h instanceof D ? h : new D(function(_) {
+ _(h);
});
}
- return new (b || (b = Promise))(function(m, _) {
+ return new (D || (D = Promise))(function(h, _) {
function g(C) {
try {
- F(w.next(C));
- } catch (T) {
- _(T);
+ $(w.next(C));
+ } catch (I) {
+ _(I);
}
}
function y(C) {
try {
- F(w.throw(C));
- } catch (T) {
- _(T);
+ $(w.throw(C));
+ } catch (I) {
+ _(I);
}
}
- function F(C) {
- C.done ? m(C.value) : k(C.value).then(g, y);
+ function $(C) {
+ C.done ? h(C.value) : F(C.value).then(g, y);
}
- F((w = w.apply(f, v || [])).next());
+ $((w = w.apply(f, v || [])).next());
});
};
let { margin: l = !0 } = e;
- const r = Ji([0, 0]);
- ea(i, r, (f) => t(1, n = f));
- const s = Ji([0, 0]);
- ea(i, s, (f) => t(2, a = f));
+ const r = ta([0, 0]);
+ na(i, r, (f) => t(1, n = f));
+ const s = ta([0, 0]);
+ na(i, s, (f) => t(2, a = f));
let u;
function c() {
return o(this, void 0, void 0, function* () {
yield Promise.all([r.set([125, 140]), s.set([-125, -140])]), yield Promise.all([r.set([-125, 140]), s.set([125, -140])]), yield Promise.all([r.set([-125, 0]), s.set([125, -0])]), yield Promise.all([r.set([125, 0]), s.set([-125, 0])]);
});
}
- function h() {
+ function m() {
return o(this, void 0, void 0, function* () {
- yield c(), u || h();
+ yield c(), u || m();
});
}
function d() {
return o(this, void 0, void 0, function* () {
- yield Promise.all([r.set([125, 0]), s.set([-125, 0])]), h();
+ yield Promise.all([r.set([125, 0]), s.set([-125, 0])]), m();
});
}
- return zr(() => (d(), () => u = !0)), i.$$set = (f) => {
+ return Ur(() => (d(), () => u = !0)), i.$$set = (f) => {
"margin" in f && t(0, l = f.margin);
}, [l, n, a, r, s];
}
-class xr extends Rr {
+class jr extends qr {
constructor(e) {
- super(), Or(this, e, Pr, Mr, Nr, { margin: 0 });
+ super(), Pr(this, e, Gr, Hr, xr, { margin: 0 });
}
}
const {
- SvelteComponent: Ur,
- append_hydration: Ct,
- attr: Xe,
- binding_callbacks: ia,
- check_outros: oi,
- children: lt,
- claim_component: bl,
- claim_element: ot,
+ SvelteComponent: Vr,
+ append_hydration: Bt,
+ attr: Ye,
+ binding_callbacks: la,
+ check_outros: ri,
+ children: rt,
+ claim_component: kl,
+ claim_element: st,
claim_space: Me,
- claim_text: ie,
- create_component: yl,
- create_slot: wl,
- destroy_component: Fl,
- destroy_each: kl,
+ claim_text: ae,
+ create_component: El,
+ create_slot: Al,
+ destroy_component: Cl,
+ destroy_each: Sl,
detach: q,
- element: rt,
- empty: xe,
- ensure_array_like: Bn,
- get_all_dirty_from_scope: $l,
- get_slot_changes: El,
- group_outros: ri,
- init: Hr,
- insert_hydration: M,
- mount_component: Al,
- noop: si,
- safe_not_equal: jr,
- set_data: Ue,
- set_style: Ft,
+ element: ut,
+ empty: ze,
+ ensure_array_like: Ln,
+ get_all_dirty_from_scope: Tl,
+ get_slot_changes: Bl,
+ group_outros: si,
+ init: Wr,
+ insert_hydration: P,
+ mount_component: Il,
+ noop: ui,
+ safe_not_equal: Zr,
+ set_data: xe,
+ set_style: Ct,
space: Pe,
- text: ae,
- toggle_class: ze,
- transition_in: Ye,
- transition_out: st,
- update_slot_base: Cl
-} = window.__gradio__svelte__internal, { tick: Gr } = window.__gradio__svelte__internal, { onDestroy: Vr } = window.__gradio__svelte__internal, { createEventDispatcher: Wr } = window.__gradio__svelte__internal, Zr = (i) => ({}), aa = (i) => ({}), Yr = (i) => ({}), la = (i) => ({});
-function oa(i, e, t) {
+ text: le,
+ toggle_class: Ne,
+ transition_in: Ze,
+ transition_out: ct,
+ update_slot_base: Rl
+} = window.__gradio__svelte__internal, { tick: Yr } = window.__gradio__svelte__internal, { onDestroy: Xr } = window.__gradio__svelte__internal, { createEventDispatcher: Kr } = window.__gradio__svelte__internal, Qr = (i) => ({}), oa = (i) => ({}), Jr = (i) => ({}), ra = (i) => ({});
+function sa(i, e, t) {
const n = i.slice();
return n[40] = e[t], n[42] = t, n;
}
-function ra(i, e, t) {
+function ua(i, e, t) {
const n = i.slice();
return n[40] = e[t], n;
}
-function Xr(i) {
+function es(i) {
let e, t, n, a, o = (
/*i18n*/
i[1]("common.error") + ""
), l, r, s;
- t = new wr({
+ t = new Er({
props: {
- Icon: Cr,
+ Icon: Ir,
label: (
/*i18n*/
i[1]("common.clear")
@@ -6234,96 +6234,96 @@ function Xr(i) {
const u = (
/*#slots*/
i[30].error
- ), c = wl(
+ ), c = Al(
u,
i,
/*$$scope*/
i[29],
- aa
+ oa
);
return {
c() {
- e = rt("div"), yl(t.$$.fragment), n = Pe(), a = rt("span"), l = ae(o), r = Pe(), c && c.c(), this.h();
+ e = ut("div"), El(t.$$.fragment), n = Pe(), a = ut("span"), l = le(o), r = Pe(), c && c.c(), this.h();
},
- l(h) {
- e = ot(h, "DIV", { class: !0 });
- var d = lt(e);
- bl(t.$$.fragment, d), d.forEach(q), n = Me(h), a = ot(h, "SPAN", { class: !0 });
- var f = lt(a);
- l = ie(f, o), f.forEach(q), r = Me(h), c && c.l(h), this.h();
+ l(m) {
+ e = st(m, "DIV", { class: !0 });
+ var d = rt(e);
+ kl(t.$$.fragment, d), d.forEach(q), n = Me(m), a = st(m, "SPAN", { class: !0 });
+ var f = rt(a);
+ l = ae(f, o), f.forEach(q), r = Me(m), c && c.l(m), this.h();
},
h() {
- Xe(e, "class", "clear-status svelte-17v219f"), Xe(a, "class", "error svelte-17v219f");
+ Ye(e, "class", "clear-status svelte-17v219f"), Ye(a, "class", "error svelte-17v219f");
},
- m(h, d) {
- M(h, e, d), Al(t, e, null), M(h, n, d), M(h, a, d), Ct(a, l), M(h, r, d), c && c.m(h, d), s = !0;
+ m(m, d) {
+ P(m, e, d), Il(t, e, null), P(m, n, d), P(m, a, d), Bt(a, l), P(m, r, d), c && c.m(m, d), s = !0;
},
- p(h, d) {
+ p(m, d) {
const f = {};
d[0] & /*i18n*/
2 && (f.label = /*i18n*/
- h[1]("common.clear")), t.$set(f), (!s || d[0] & /*i18n*/
+ m[1]("common.clear")), t.$set(f), (!s || d[0] & /*i18n*/
2) && o !== (o = /*i18n*/
- h[1]("common.error") + "") && Ue(l, o), c && c.p && (!s || d[0] & /*$$scope*/
- 536870912) && Cl(
+ m[1]("common.error") + "") && xe(l, o), c && c.p && (!s || d[0] & /*$$scope*/
+ 536870912) && Rl(
c,
u,
- h,
+ m,
/*$$scope*/
- h[29],
- s ? El(
+ m[29],
+ s ? Bl(
u,
/*$$scope*/
- h[29],
+ m[29],
d,
- Zr
- ) : $l(
+ Qr
+ ) : Tl(
/*$$scope*/
- h[29]
+ m[29]
),
- aa
+ oa
);
},
- i(h) {
- s || (Ye(t.$$.fragment, h), Ye(c, h), s = !0);
+ i(m) {
+ s || (Ze(t.$$.fragment, m), Ze(c, m), s = !0);
},
- o(h) {
- st(t.$$.fragment, h), st(c, h), s = !1;
+ o(m) {
+ ct(t.$$.fragment, m), ct(c, m), s = !1;
},
- d(h) {
- h && (q(e), q(n), q(a), q(r)), Fl(t), c && c.d(h);
+ d(m) {
+ m && (q(e), q(n), q(a), q(r)), Cl(t), c && c.d(m);
}
};
}
-function Kr(i) {
+function ts(i) {
let e, t, n, a, o, l, r, s, u, c = (
/*variant*/
i[8] === "default" && /*show_eta_bar*/
i[18] && /*show_progress*/
- i[6] === "full" && sa(i)
+ i[6] === "full" && ca(i)
);
- function h(_, g) {
+ function m(_, g) {
if (
/*progress*/
_[7]
- ) return es;
+ ) return as;
if (
/*queue_position*/
_[2] !== null && /*queue_size*/
_[3] !== void 0 && /*queue_position*/
_[2] >= 0
- ) return Jr;
+ ) return is;
if (
/*queue_position*/
_[2] === 0
- ) return Qr;
+ ) return ns;
}
- let d = h(i), f = d && d(i), v = (
+ let d = m(i), f = d && d(i), v = (
/*timer*/
- i[5] && _a(i)
+ i[5] && fa(i)
);
- const b = [as, is], w = [];
- function k(_, g) {
+ const D = [ss, rs], w = [];
+ function F(_, g) {
return (
/*last_progress_level*/
_[15] != null ? 0 : (
@@ -6332,25 +6332,25 @@ function Kr(i) {
)
);
}
- ~(o = k(i)) && (l = w[o] = b[o](i));
- let m = !/*timer*/
- i[5] && va(i);
+ ~(o = F(i)) && (l = w[o] = D[o](i));
+ let h = !/*timer*/
+ i[5] && Da(i);
return {
c() {
- c && c.c(), e = Pe(), t = rt("div"), f && f.c(), n = Pe(), v && v.c(), a = Pe(), l && l.c(), r = Pe(), m && m.c(), s = xe(), this.h();
+ c && c.c(), e = Pe(), t = ut("div"), f && f.c(), n = Pe(), v && v.c(), a = Pe(), l && l.c(), r = Pe(), h && h.c(), s = ze(), this.h();
},
l(_) {
- c && c.l(_), e = Me(_), t = ot(_, "DIV", { class: !0 });
- var g = lt(t);
- f && f.l(g), n = Me(g), v && v.l(g), g.forEach(q), a = Me(_), l && l.l(_), r = Me(_), m && m.l(_), s = xe(), this.h();
+ c && c.l(_), e = Me(_), t = st(_, "DIV", { class: !0 });
+ var g = rt(t);
+ f && f.l(g), n = Me(g), v && v.l(g), g.forEach(q), a = Me(_), l && l.l(_), r = Me(_), h && h.l(_), s = ze(), this.h();
},
h() {
- Xe(t, "class", "progress-text svelte-17v219f"), ze(
+ Ye(t, "class", "progress-text svelte-17v219f"), Ne(
t,
"meta-text-center",
/*variant*/
i[8] === "center"
- ), ze(
+ ), Ne(
t,
"meta-text",
/*variant*/
@@ -6358,117 +6358,117 @@ function Kr(i) {
);
},
m(_, g) {
- c && c.m(_, g), M(_, e, g), M(_, t, g), f && f.m(t, null), Ct(t, n), v && v.m(t, null), M(_, a, g), ~o && w[o].m(_, g), M(_, r, g), m && m.m(_, g), M(_, s, g), u = !0;
+ c && c.m(_, g), P(_, e, g), P(_, t, g), f && f.m(t, null), Bt(t, n), v && v.m(t, null), P(_, a, g), ~o && w[o].m(_, g), P(_, r, g), h && h.m(_, g), P(_, s, g), u = !0;
},
p(_, g) {
/*variant*/
_[8] === "default" && /*show_eta_bar*/
_[18] && /*show_progress*/
- _[6] === "full" ? c ? c.p(_, g) : (c = sa(_), c.c(), c.m(e.parentNode, e)) : c && (c.d(1), c = null), d === (d = h(_)) && f ? f.p(_, g) : (f && f.d(1), f = d && d(_), f && (f.c(), f.m(t, n))), /*timer*/
- _[5] ? v ? v.p(_, g) : (v = _a(_), v.c(), v.m(t, null)) : v && (v.d(1), v = null), (!u || g[0] & /*variant*/
- 256) && ze(
+ _[6] === "full" ? c ? c.p(_, g) : (c = ca(_), c.c(), c.m(e.parentNode, e)) : c && (c.d(1), c = null), d === (d = m(_)) && f ? f.p(_, g) : (f && f.d(1), f = d && d(_), f && (f.c(), f.m(t, n))), /*timer*/
+ _[5] ? v ? v.p(_, g) : (v = fa(_), v.c(), v.m(t, null)) : v && (v.d(1), v = null), (!u || g[0] & /*variant*/
+ 256) && Ne(
t,
"meta-text-center",
/*variant*/
_[8] === "center"
), (!u || g[0] & /*variant*/
- 256) && ze(
+ 256) && Ne(
t,
"meta-text",
/*variant*/
_[8] === "default"
);
let y = o;
- o = k(_), o === y ? ~o && w[o].p(_, g) : (l && (ri(), st(w[y], 1, 1, () => {
+ o = F(_), o === y ? ~o && w[o].p(_, g) : (l && (si(), ct(w[y], 1, 1, () => {
w[y] = null;
- }), oi()), ~o ? (l = w[o], l ? l.p(_, g) : (l = w[o] = b[o](_), l.c()), Ye(l, 1), l.m(r.parentNode, r)) : l = null), /*timer*/
- _[5] ? m && (ri(), st(m, 1, 1, () => {
- m = null;
- }), oi()) : m ? (m.p(_, g), g[0] & /*timer*/
- 32 && Ye(m, 1)) : (m = va(_), m.c(), Ye(m, 1), m.m(s.parentNode, s));
+ }), ri()), ~o ? (l = w[o], l ? l.p(_, g) : (l = w[o] = D[o](_), l.c()), Ze(l, 1), l.m(r.parentNode, r)) : l = null), /*timer*/
+ _[5] ? h && (si(), ct(h, 1, 1, () => {
+ h = null;
+ }), ri()) : h ? (h.p(_, g), g[0] & /*timer*/
+ 32 && Ze(h, 1)) : (h = Da(_), h.c(), Ze(h, 1), h.m(s.parentNode, s));
},
i(_) {
- u || (Ye(l), Ye(m), u = !0);
+ u || (Ze(l), Ze(h), u = !0);
},
o(_) {
- st(l), st(m), u = !1;
+ ct(l), ct(h), u = !1;
},
d(_) {
- _ && (q(e), q(t), q(a), q(r), q(s)), c && c.d(_), f && f.d(), v && v.d(), ~o && w[o].d(_), m && m.d(_);
+ _ && (q(e), q(t), q(a), q(r), q(s)), c && c.d(_), f && f.d(), v && v.d(), ~o && w[o].d(_), h && h.d(_);
}
};
}
-function sa(i) {
+function ca(i) {
let e, t = `translateX(${/*eta_level*/
(i[17] || 0) * 100 - 100}%)`;
return {
c() {
- e = rt("div"), this.h();
+ e = ut("div"), this.h();
},
l(n) {
- e = ot(n, "DIV", { class: !0 }), lt(e).forEach(q), this.h();
+ e = st(n, "DIV", { class: !0 }), rt(e).forEach(q), this.h();
},
h() {
- Xe(e, "class", "eta-bar svelte-17v219f"), Ft(e, "transform", t);
+ Ye(e, "class", "eta-bar svelte-17v219f"), Ct(e, "transform", t);
},
m(n, a) {
- M(n, e, a);
+ P(n, e, a);
},
p(n, a) {
a[0] & /*eta_level*/
131072 && t !== (t = `translateX(${/*eta_level*/
- (n[17] || 0) * 100 - 100}%)`) && Ft(e, "transform", t);
+ (n[17] || 0) * 100 - 100}%)`) && Ct(e, "transform", t);
},
d(n) {
n && q(e);
}
};
}
-function Qr(i) {
+function ns(i) {
let e;
return {
c() {
- e = ae("processing |");
+ e = le("processing |");
},
l(t) {
- e = ie(t, "processing |");
+ e = ae(t, "processing |");
},
m(t, n) {
- M(t, e, n);
+ P(t, e, n);
},
- p: si,
+ p: ui,
d(t) {
t && q(e);
}
};
}
-function Jr(i) {
+function is(i) {
let e, t = (
/*queue_position*/
i[2] + 1 + ""
), n, a, o, l;
return {
c() {
- e = ae("queue: "), n = ae(t), a = ae("/"), o = ae(
+ e = le("queue: "), n = le(t), a = le("/"), o = le(
/*queue_size*/
i[3]
- ), l = ae(" |");
+ ), l = le(" |");
},
l(r) {
- e = ie(r, "queue: "), n = ie(r, t), a = ie(r, "/"), o = ie(
+ e = ae(r, "queue: "), n = ae(r, t), a = ae(r, "/"), o = ae(
r,
/*queue_size*/
i[3]
- ), l = ie(r, " |");
+ ), l = ae(r, " |");
},
m(r, s) {
- M(r, e, s), M(r, n, s), M(r, a, s), M(r, o, s), M(r, l, s);
+ P(r, e, s), P(r, n, s), P(r, a, s), P(r, o, s), P(r, l, s);
},
p(r, s) {
s[0] & /*queue_position*/
4 && t !== (t = /*queue_position*/
- r[2] + 1 + "") && Ue(n, t), s[0] & /*queue_size*/
- 8 && Ue(
+ r[2] + 1 + "") && xe(n, t), s[0] & /*queue_size*/
+ 8 && xe(
o,
/*queue_size*/
r[3]
@@ -6479,40 +6479,40 @@ function Jr(i) {
}
};
}
-function es(i) {
- let e, t = Bn(
+function as(i) {
+ let e, t = Ln(
/*progress*/
i[7]
), n = [];
for (let a = 0; a < t.length; a += 1)
- n[a] = ca(ra(i, t, a));
+ n[a] = da(ua(i, t, a));
return {
c() {
for (let a = 0; a < n.length; a += 1)
n[a].c();
- e = xe();
+ e = ze();
},
l(a) {
for (let o = 0; o < n.length; o += 1)
n[o].l(a);
- e = xe();
+ e = ze();
},
m(a, o) {
for (let l = 0; l < n.length; l += 1)
n[l] && n[l].m(a, o);
- M(a, e, o);
+ P(a, e, o);
},
p(a, o) {
if (o[0] & /*progress*/
128) {
- t = Bn(
+ t = Ln(
/*progress*/
a[7]
);
let l;
for (l = 0; l < t.length; l += 1) {
- const r = ra(a, t, l);
- n[l] ? n[l].p(r, o) : (n[l] = ca(r), n[l].c(), n[l].m(e.parentNode, e));
+ const r = ua(a, t, l);
+ n[l] ? n[l].p(r, o) : (n[l] = da(r), n[l].c(), n[l].m(e.parentNode, e));
}
for (; l < n.length; l += 1)
n[l].d(1);
@@ -6520,128 +6520,128 @@ function es(i) {
}
},
d(a) {
- a && q(e), kl(n, a);
+ a && q(e), Sl(n, a);
}
};
}
-function ua(i) {
+function _a(i) {
let e, t = (
/*p*/
i[40].unit + ""
), n, a, o = " ", l;
- function r(c, h) {
+ function r(c, m) {
return (
/*p*/
- c[40].length != null ? ns : ts
+ c[40].length != null ? os : ls
);
}
let s = r(i), u = s(i);
return {
c() {
- u.c(), e = Pe(), n = ae(t), a = ae(" | "), l = ae(o);
+ u.c(), e = Pe(), n = le(t), a = le(" | "), l = le(o);
},
l(c) {
- u.l(c), e = Me(c), n = ie(c, t), a = ie(c, " | "), l = ie(c, o);
+ u.l(c), e = Me(c), n = ae(c, t), a = ae(c, " | "), l = ae(c, o);
},
- m(c, h) {
- u.m(c, h), M(c, e, h), M(c, n, h), M(c, a, h), M(c, l, h);
+ m(c, m) {
+ u.m(c, m), P(c, e, m), P(c, n, m), P(c, a, m), P(c, l, m);
},
- p(c, h) {
- s === (s = r(c)) && u ? u.p(c, h) : (u.d(1), u = s(c), u && (u.c(), u.m(e.parentNode, e))), h[0] & /*progress*/
+ p(c, m) {
+ s === (s = r(c)) && u ? u.p(c, m) : (u.d(1), u = s(c), u && (u.c(), u.m(e.parentNode, e))), m[0] & /*progress*/
128 && t !== (t = /*p*/
- c[40].unit + "") && Ue(n, t);
+ c[40].unit + "") && xe(n, t);
},
d(c) {
c && (q(e), q(n), q(a), q(l)), u.d(c);
}
};
}
-function ts(i) {
- let e = Mt(
+function ls(i) {
+ let e = xt(
/*p*/
i[40].index || 0
) + "", t;
return {
c() {
- t = ae(e);
+ t = le(e);
},
l(n) {
- t = ie(n, e);
+ t = ae(n, e);
},
m(n, a) {
- M(n, t, a);
+ P(n, t, a);
},
p(n, a) {
a[0] & /*progress*/
- 128 && e !== (e = Mt(
+ 128 && e !== (e = xt(
/*p*/
n[40].index || 0
- ) + "") && Ue(t, e);
+ ) + "") && xe(t, e);
},
d(n) {
n && q(t);
}
};
}
-function ns(i) {
- let e = Mt(
+function os(i) {
+ let e = xt(
/*p*/
i[40].index || 0
- ) + "", t, n, a = Mt(
+ ) + "", t, n, a = xt(
/*p*/
i[40].length
) + "", o;
return {
c() {
- t = ae(e), n = ae("/"), o = ae(a);
+ t = le(e), n = le("/"), o = le(a);
},
l(l) {
- t = ie(l, e), n = ie(l, "/"), o = ie(l, a);
+ t = ae(l, e), n = ae(l, "/"), o = ae(l, a);
},
m(l, r) {
- M(l, t, r), M(l, n, r), M(l, o, r);
+ P(l, t, r), P(l, n, r), P(l, o, r);
},
p(l, r) {
r[0] & /*progress*/
- 128 && e !== (e = Mt(
+ 128 && e !== (e = xt(
/*p*/
l[40].index || 0
- ) + "") && Ue(t, e), r[0] & /*progress*/
- 128 && a !== (a = Mt(
+ ) + "") && xe(t, e), r[0] & /*progress*/
+ 128 && a !== (a = xt(
/*p*/
l[40].length
- ) + "") && Ue(o, a);
+ ) + "") && xe(o, a);
},
d(l) {
l && (q(t), q(n), q(o));
}
};
}
-function ca(i) {
+function da(i) {
let e, t = (
/*p*/
- i[40].index != null && ua(i)
+ i[40].index != null && _a(i)
);
return {
c() {
- t && t.c(), e = xe();
+ t && t.c(), e = ze();
},
l(n) {
- t && t.l(n), e = xe();
+ t && t.l(n), e = ze();
},
m(n, a) {
- t && t.m(n, a), M(n, e, a);
+ t && t.m(n, a), P(n, e, a);
},
p(n, a) {
/*p*/
- n[40].index != null ? t ? t.p(n, a) : (t = ua(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ n[40].index != null ? t ? t.p(n, a) : (t = _a(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(n) {
n && q(e), t && t.d(n);
}
};
}
-function _a(i) {
+function fa(i) {
let e, t = (
/*eta*/
i[0] ? `/${/*formatted_eta*/
@@ -6649,53 +6649,53 @@ function _a(i) {
), n, a;
return {
c() {
- e = ae(
+ e = le(
/*formatted_timer*/
i[20]
- ), n = ae(t), a = ae("s");
+ ), n = le(t), a = le("s");
},
l(o) {
- e = ie(
+ e = ae(
o,
/*formatted_timer*/
i[20]
- ), n = ie(o, t), a = ie(o, "s");
+ ), n = ae(o, t), a = ae(o, "s");
},
m(o, l) {
- M(o, e, l), M(o, n, l), M(o, a, l);
+ P(o, e, l), P(o, n, l), P(o, a, l);
},
p(o, l) {
l[0] & /*formatted_timer*/
- 1048576 && Ue(
+ 1048576 && xe(
e,
/*formatted_timer*/
o[20]
), l[0] & /*eta, formatted_eta*/
524289 && t !== (t = /*eta*/
o[0] ? `/${/*formatted_eta*/
- o[19]}` : "") && Ue(n, t);
+ o[19]}` : "") && xe(n, t);
},
d(o) {
o && (q(e), q(n), q(a));
}
};
}
-function is(i) {
+function rs(i) {
let e, t;
- return e = new xr({
+ return e = new jr({
props: { margin: (
/*variant*/
i[8] === "default"
) }
}), {
c() {
- yl(e.$$.fragment);
+ El(e.$$.fragment);
},
l(n) {
- bl(e.$$.fragment, n);
+ kl(e.$$.fragment, n);
},
m(n, a) {
- Al(e, n, a), t = !0;
+ Il(e, n, a), t = !0;
},
p(n, a) {
const o = {};
@@ -6704,88 +6704,88 @@ function is(i) {
n[8] === "default"), e.$set(o);
},
i(n) {
- t || (Ye(e.$$.fragment, n), t = !0);
+ t || (Ze(e.$$.fragment, n), t = !0);
},
o(n) {
- st(e.$$.fragment, n), t = !1;
+ ct(e.$$.fragment, n), t = !1;
},
d(n) {
- Fl(e, n);
+ Cl(e, n);
}
};
}
-function as(i) {
+function ss(i) {
let e, t, n, a, o, l = `${/*last_progress_level*/
i[15] * 100}%`, r = (
/*progress*/
- i[7] != null && da(i)
+ i[7] != null && pa(i)
);
return {
c() {
- e = rt("div"), t = rt("div"), r && r.c(), n = Pe(), a = rt("div"), o = rt("div"), this.h();
+ e = ut("div"), t = ut("div"), r && r.c(), n = Pe(), a = ut("div"), o = ut("div"), this.h();
},
l(s) {
- e = ot(s, "DIV", { class: !0 });
- var u = lt(e);
- t = ot(u, "DIV", { class: !0 });
- var c = lt(t);
- r && r.l(c), c.forEach(q), n = Me(u), a = ot(u, "DIV", { class: !0 });
- var h = lt(a);
- o = ot(h, "DIV", { class: !0 }), lt(o).forEach(q), h.forEach(q), u.forEach(q), this.h();
+ e = st(s, "DIV", { class: !0 });
+ var u = rt(e);
+ t = st(u, "DIV", { class: !0 });
+ var c = rt(t);
+ r && r.l(c), c.forEach(q), n = Me(u), a = st(u, "DIV", { class: !0 });
+ var m = rt(a);
+ o = st(m, "DIV", { class: !0 }), rt(o).forEach(q), m.forEach(q), u.forEach(q), this.h();
},
h() {
- Xe(t, "class", "progress-level-inner svelte-17v219f"), Xe(o, "class", "progress-bar svelte-17v219f"), Ft(o, "width", l), Xe(a, "class", "progress-bar-wrap svelte-17v219f"), Xe(e, "class", "progress-level svelte-17v219f");
+ Ye(t, "class", "progress-level-inner svelte-17v219f"), Ye(o, "class", "progress-bar svelte-17v219f"), Ct(o, "width", l), Ye(a, "class", "progress-bar-wrap svelte-17v219f"), Ye(e, "class", "progress-level svelte-17v219f");
},
m(s, u) {
- M(s, e, u), Ct(e, t), r && r.m(t, null), Ct(e, n), Ct(e, a), Ct(a, o), i[31](o);
+ P(s, e, u), Bt(e, t), r && r.m(t, null), Bt(e, n), Bt(e, a), Bt(a, o), i[31](o);
},
p(s, u) {
/*progress*/
- s[7] != null ? r ? r.p(s, u) : (r = da(s), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u[0] & /*last_progress_level*/
+ s[7] != null ? r ? r.p(s, u) : (r = pa(s), r.c(), r.m(t, null)) : r && (r.d(1), r = null), u[0] & /*last_progress_level*/
32768 && l !== (l = `${/*last_progress_level*/
- s[15] * 100}%`) && Ft(o, "width", l);
+ s[15] * 100}%`) && Ct(o, "width", l);
},
- i: si,
- o: si,
+ i: ui,
+ o: ui,
d(s) {
s && q(e), r && r.d(), i[31](null);
}
};
}
-function da(i) {
- let e, t = Bn(
+function pa(i) {
+ let e, t = Ln(
/*progress*/
i[7]
), n = [];
for (let a = 0; a < t.length; a += 1)
- n[a] = ga(oa(i, t, a));
+ n[a] = ba(sa(i, t, a));
return {
c() {
for (let a = 0; a < n.length; a += 1)
n[a].c();
- e = xe();
+ e = ze();
},
l(a) {
for (let o = 0; o < n.length; o += 1)
n[o].l(a);
- e = xe();
+ e = ze();
},
m(a, o) {
for (let l = 0; l < n.length; l += 1)
n[l] && n[l].m(a, o);
- M(a, e, o);
+ P(a, e, o);
},
p(a, o) {
if (o[0] & /*progress_level, progress*/
16512) {
- t = Bn(
+ t = Ln(
/*progress*/
a[7]
);
let l;
for (l = 0; l < t.length; l += 1) {
- const r = oa(a, t, l);
- n[l] ? n[l].p(r, o) : (n[l] = ga(r), n[l].c(), n[l].m(e.parentNode, e));
+ const r = sa(a, t, l);
+ n[l] ? n[l].p(r, o) : (n[l] = ba(r), n[l].c(), n[l].m(e.parentNode, e));
}
for (; l < n.length; l += 1)
n[l].d(1);
@@ -6793,17 +6793,17 @@ function da(i) {
}
},
d(a) {
- a && q(e), kl(n, a);
+ a && q(e), Sl(n, a);
}
};
}
-function fa(i) {
+function ha(i) {
let e, t, n, a, o = (
/*i*/
- i[42] !== 0 && ls()
+ i[42] !== 0 && us()
), l = (
/*p*/
- i[40].desc != null && pa(i)
+ i[40].desc != null && ma(i)
), r = (
/*p*/
i[40].desc != null && /*progress_level*/
@@ -6811,97 +6811,97 @@ function fa(i) {
i[14][
/*i*/
i[42]
- ] != null && ha()
+ ] != null && ga()
), s = (
/*progress_level*/
- i[14] != null && ma(i)
+ i[14] != null && va(i)
);
return {
c() {
- o && o.c(), e = Pe(), l && l.c(), t = Pe(), r && r.c(), n = Pe(), s && s.c(), a = xe();
+ o && o.c(), e = Pe(), l && l.c(), t = Pe(), r && r.c(), n = Pe(), s && s.c(), a = ze();
},
l(u) {
- o && o.l(u), e = Me(u), l && l.l(u), t = Me(u), r && r.l(u), n = Me(u), s && s.l(u), a = xe();
+ o && o.l(u), e = Me(u), l && l.l(u), t = Me(u), r && r.l(u), n = Me(u), s && s.l(u), a = ze();
},
m(u, c) {
- o && o.m(u, c), M(u, e, c), l && l.m(u, c), M(u, t, c), r && r.m(u, c), M(u, n, c), s && s.m(u, c), M(u, a, c);
+ o && o.m(u, c), P(u, e, c), l && l.m(u, c), P(u, t, c), r && r.m(u, c), P(u, n, c), s && s.m(u, c), P(u, a, c);
},
p(u, c) {
/*p*/
- u[40].desc != null ? l ? l.p(u, c) : (l = pa(u), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null), /*p*/
+ u[40].desc != null ? l ? l.p(u, c) : (l = ma(u), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null), /*p*/
u[40].desc != null && /*progress_level*/
u[14] && /*progress_level*/
u[14][
/*i*/
u[42]
- ] != null ? r || (r = ha(), r.c(), r.m(n.parentNode, n)) : r && (r.d(1), r = null), /*progress_level*/
- u[14] != null ? s ? s.p(u, c) : (s = ma(u), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
+ ] != null ? r || (r = ga(), r.c(), r.m(n.parentNode, n)) : r && (r.d(1), r = null), /*progress_level*/
+ u[14] != null ? s ? s.p(u, c) : (s = va(u), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
},
d(u) {
u && (q(e), q(t), q(n), q(a)), o && o.d(u), l && l.d(u), r && r.d(u), s && s.d(u);
}
};
}
-function ls(i) {
+function us(i) {
let e;
return {
c() {
- e = ae("Â /");
+ e = le("Â /");
},
l(t) {
- e = ie(t, "Â /");
+ e = ae(t, "Â /");
},
m(t, n) {
- M(t, e, n);
+ P(t, e, n);
},
d(t) {
t && q(e);
}
};
}
-function pa(i) {
+function ma(i) {
let e = (
/*p*/
i[40].desc + ""
), t;
return {
c() {
- t = ae(e);
+ t = le(e);
},
l(n) {
- t = ie(n, e);
+ t = ae(n, e);
},
m(n, a) {
- M(n, t, a);
+ P(n, t, a);
},
p(n, a) {
a[0] & /*progress*/
128 && e !== (e = /*p*/
- n[40].desc + "") && Ue(t, e);
+ n[40].desc + "") && xe(t, e);
},
d(n) {
n && q(t);
}
};
}
-function ha(i) {
+function ga(i) {
let e;
return {
c() {
- e = ae("-");
+ e = le("-");
},
l(t) {
- e = ie(t, "-");
+ e = ae(t, "-");
},
m(t, n) {
- M(t, e, n);
+ P(t, e, n);
},
d(t) {
t && q(e);
}
};
}
-function ma(i) {
+function va(i) {
let e = (100 * /*progress_level*/
(i[14][
/*i*/
@@ -6909,13 +6909,13 @@ function ma(i) {
] || 0)).toFixed(1) + "", t, n;
return {
c() {
- t = ae(e), n = ae("%");
+ t = le(e), n = le("%");
},
l(a) {
- t = ie(a, e), n = ie(a, "%");
+ t = ae(a, e), n = ae(a, "%");
},
m(a, o) {
- M(a, t, o), M(a, n, o);
+ P(a, t, o), P(a, n, o);
},
p(a, o) {
o[0] & /*progress_level*/
@@ -6923,14 +6923,14 @@ function ma(i) {
(a[14][
/*i*/
a[42]
- ] || 0)).toFixed(1) + "") && Ue(t, e);
+ ] || 0)).toFixed(1) + "") && xe(t, e);
},
d(a) {
a && (q(t), q(n));
}
};
}
-function ga(i) {
+function ba(i) {
let e, t = (
/*p*/
(i[40].desc != null || /*progress_level*/
@@ -6938,17 +6938,17 @@ function ga(i) {
i[14][
/*i*/
i[42]
- ] != null) && fa(i)
+ ] != null) && ha(i)
);
return {
c() {
- t && t.c(), e = xe();
+ t && t.c(), e = ze();
},
l(n) {
- t && t.l(n), e = xe();
+ t && t.l(n), e = ze();
},
m(n, a) {
- t && t.m(n, a), M(n, e, a);
+ t && t.m(n, a), P(n, e, a);
},
p(n, a) {
/*p*/
@@ -6957,87 +6957,87 @@ function ga(i) {
n[14][
/*i*/
n[42]
- ] != null ? t ? t.p(n, a) : (t = fa(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ ] != null ? t ? t.p(n, a) : (t = ha(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(n) {
n && q(e), t && t.d(n);
}
};
}
-function va(i) {
+function Da(i) {
let e, t, n, a;
const o = (
/*#slots*/
i[30]["additional-loading-text"]
- ), l = wl(
+ ), l = Al(
o,
i,
/*$$scope*/
i[29],
- la
+ ra
);
return {
c() {
- e = rt("p"), t = ae(
+ e = ut("p"), t = le(
/*loading_text*/
i[9]
), n = Pe(), l && l.c(), this.h();
},
l(r) {
- e = ot(r, "P", { class: !0 });
- var s = lt(e);
- t = ie(
+ e = st(r, "P", { class: !0 });
+ var s = rt(e);
+ t = ae(
s,
/*loading_text*/
i[9]
), s.forEach(q), n = Me(r), l && l.l(r), this.h();
},
h() {
- Xe(e, "class", "loading svelte-17v219f");
+ Ye(e, "class", "loading svelte-17v219f");
},
m(r, s) {
- M(r, e, s), Ct(e, t), M(r, n, s), l && l.m(r, s), a = !0;
+ P(r, e, s), Bt(e, t), P(r, n, s), l && l.m(r, s), a = !0;
},
p(r, s) {
(!a || s[0] & /*loading_text*/
- 512) && Ue(
+ 512) && xe(
t,
/*loading_text*/
r[9]
), l && l.p && (!a || s[0] & /*$$scope*/
- 536870912) && Cl(
+ 536870912) && Rl(
l,
o,
r,
/*$$scope*/
r[29],
- a ? El(
+ a ? Bl(
o,
/*$$scope*/
r[29],
s,
- Yr
- ) : $l(
+ Jr
+ ) : Tl(
/*$$scope*/
r[29]
),
- la
+ ra
);
},
i(r) {
- a || (Ye(l, r), a = !0);
+ a || (Ze(l, r), a = !0);
},
o(r) {
- st(l, r), a = !1;
+ ct(l, r), a = !1;
},
d(r) {
r && (q(e), q(n)), l && l.d(r);
}
};
}
-function os(i) {
+function cs(i) {
let e, t, n, a, o;
- const l = [Kr, Xr], r = [];
+ const l = [ts, es], r = [];
function s(u, c) {
return (
/*status*/
@@ -7049,21 +7049,21 @@ function os(i) {
}
return ~(t = s(i)) && (n = r[t] = l[t](i)), {
c() {
- e = rt("div"), n && n.c(), this.h();
+ e = ut("div"), n && n.c(), this.h();
},
l(u) {
- e = ot(u, "DIV", { class: !0 });
- var c = lt(e);
+ e = st(u, "DIV", { class: !0 });
+ var c = rt(e);
n && n.l(c), c.forEach(q), this.h();
},
h() {
- Xe(e, "class", a = "wrap " + /*variant*/
+ Ye(e, "class", a = "wrap " + /*variant*/
i[8] + " " + /*show_progress*/
- i[6] + " svelte-17v219f"), ze(e, "hide", !/*status*/
+ i[6] + " svelte-17v219f"), Ne(e, "hide", !/*status*/
i[4] || /*status*/
i[4] === "complete" || /*show_progress*/
i[6] === "hidden" || /*status*/
- i[4] == "streaming"), ze(
+ i[4] == "streaming"), Ne(
e,
"translucent",
/*variant*/
@@ -7072,23 +7072,23 @@ function os(i) {
i[4] === "error") || /*translucent*/
i[11] || /*show_progress*/
i[6] === "minimal"
- ), ze(
+ ), Ne(
e,
"generating",
/*status*/
i[4] === "generating" && /*show_progress*/
i[6] === "full"
- ), ze(
+ ), Ne(
e,
"border",
/*border*/
i[12]
- ), Ft(
+ ), Ct(
e,
"position",
/*absolute*/
i[10] ? "absolute" : "static"
- ), Ft(
+ ), Ct(
e,
"padding",
/*absolute*/
@@ -7096,22 +7096,22 @@ function os(i) {
);
},
m(u, c) {
- M(u, e, c), ~t && r[t].m(e, null), i[33](e), o = !0;
+ P(u, e, c), ~t && r[t].m(e, null), i[33](e), o = !0;
},
p(u, c) {
- let h = t;
- t = s(u), t === h ? ~t && r[t].p(u, c) : (n && (ri(), st(r[h], 1, 1, () => {
- r[h] = null;
- }), oi()), ~t ? (n = r[t], n ? n.p(u, c) : (n = r[t] = l[t](u), n.c()), Ye(n, 1), n.m(e, null)) : n = null), (!o || c[0] & /*variant, show_progress*/
+ let m = t;
+ t = s(u), t === m ? ~t && r[t].p(u, c) : (n && (si(), ct(r[m], 1, 1, () => {
+ r[m] = null;
+ }), ri()), ~t ? (n = r[t], n ? n.p(u, c) : (n = r[t] = l[t](u), n.c()), Ze(n, 1), n.m(e, null)) : n = null), (!o || c[0] & /*variant, show_progress*/
320 && a !== (a = "wrap " + /*variant*/
u[8] + " " + /*show_progress*/
- u[6] + " svelte-17v219f")) && Xe(e, "class", a), (!o || c[0] & /*variant, show_progress, status, show_progress*/
- 336) && ze(e, "hide", !/*status*/
+ u[6] + " svelte-17v219f")) && Ye(e, "class", a), (!o || c[0] & /*variant, show_progress, status, show_progress*/
+ 336) && Ne(e, "hide", !/*status*/
u[4] || /*status*/
u[4] === "complete" || /*show_progress*/
u[6] === "hidden" || /*status*/
u[4] == "streaming"), (!o || c[0] & /*variant, show_progress, variant, status, translucent, show_progress*/
- 2384) && ze(
+ 2384) && Ne(
e,
"translucent",
/*variant*/
@@ -7121,26 +7121,26 @@ function os(i) {
u[11] || /*show_progress*/
u[6] === "minimal"
), (!o || c[0] & /*variant, show_progress, status, show_progress*/
- 336) && ze(
+ 336) && Ne(
e,
"generating",
/*status*/
u[4] === "generating" && /*show_progress*/
u[6] === "full"
), (!o || c[0] & /*variant, show_progress, border*/
- 4416) && ze(
+ 4416) && Ne(
e,
"border",
/*border*/
u[12]
), c[0] & /*absolute*/
- 1024 && Ft(
+ 1024 && Ct(
e,
"position",
/*absolute*/
u[10] ? "absolute" : "static"
), c[0] & /*absolute*/
- 1024 && Ft(
+ 1024 && Ct(
e,
"padding",
/*absolute*/
@@ -7148,17 +7148,17 @@ function os(i) {
);
},
i(u) {
- o || (Ye(n), o = !0);
+ o || (Ze(n), o = !0);
},
o(u) {
- st(n), o = !1;
+ ct(n), o = !1;
},
d(u) {
u && q(e), ~t && r[t].d(), i[33](null);
}
};
}
-var rs = function(i, e, t, n) {
+var _s = function(i, e, t, n) {
function a(o) {
return o instanceof t ? o : new t(function(l) {
l(o);
@@ -7168,15 +7168,15 @@ var rs = function(i, e, t, n) {
function r(c) {
try {
u(n.next(c));
- } catch (h) {
- l(h);
+ } catch (m) {
+ l(m);
}
}
function s(c) {
try {
u(n.throw(c));
- } catch (h) {
- l(h);
+ } catch (m) {
+ l(m);
}
}
function u(c) {
@@ -7185,119 +7185,119 @@ var rs = function(i, e, t, n) {
u((n = n.apply(i, e || [])).next());
});
};
-let wn = [], Gn = !1;
-const ss = typeof window < "u", Sl = ss ? window.requestAnimationFrame : (i) => {
+let $n = [], Wn = !1;
+const ds = typeof window < "u", Ll = ds ? window.requestAnimationFrame : (i) => {
};
-function us(i) {
- return rs(this, arguments, void 0, function* (e, t = !0) {
+function fs(i) {
+ return _s(this, arguments, void 0, function* (e, t = !0) {
if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && t !== !0)) {
- if (wn.push(e), !Gn) Gn = !0;
+ if ($n.push(e), !Wn) Wn = !0;
else return;
- yield Gr(), Sl(() => {
+ yield Yr(), Ll(() => {
let n = [0, 0];
- for (let a = 0; a < wn.length; a++) {
- const l = wn[a].getBoundingClientRect();
+ for (let a = 0; a < $n.length; a++) {
+ const l = $n[a].getBoundingClientRect();
(a === 0 || l.top + window.scrollY <= n[0]) && (n[0] = l.top + window.scrollY, n[1] = a);
}
- window.scrollTo({ top: n[0] - 20, behavior: "smooth" }), Gn = !1, wn = [];
+ window.scrollTo({ top: n[0] - 20, behavior: "smooth" }), Wn = !1, $n = [];
});
}
});
}
-function cs(i, e, t) {
+function ps(i, e, t) {
let n, { $$slots: a = {}, $$scope: o } = e;
- const l = Wr();
- let { i18n: r } = e, { eta: s = null } = e, { queue_position: u } = e, { queue_size: c } = e, { status: h } = e, { scroll_to_output: d = !1 } = e, { timer: f = !0 } = e, { show_progress: v = "full" } = e, { message: b = null } = e, { progress: w = null } = e, { variant: k = "default" } = e, { loading_text: m = "Loading..." } = e, { absolute: _ = !0 } = e, { translucent: g = !1 } = e, { border: y = !1 } = e, { autoscroll: F } = e, C, T = !1, S = 0, z = 0, N = null, j = null, ke = 0, ue = null, $e, _e = null, ne = !0;
- const X = () => {
- t(0, s = t(27, N = t(19, $ = null))), t(25, S = performance.now()), t(26, z = 0), T = !0, se();
+ const l = Kr();
+ let { i18n: r } = e, { eta: s = null } = e, { queue_position: u } = e, { queue_size: c } = e, { status: m } = e, { scroll_to_output: d = !1 } = e, { timer: f = !0 } = e, { show_progress: v = "full" } = e, { message: D = null } = e, { progress: w = null } = e, { variant: F = "default" } = e, { loading_text: h = "Loading..." } = e, { absolute: _ = !0 } = e, { translucent: g = !1 } = e, { border: y = !1 } = e, { autoscroll: $ } = e, C, I = !1, T = 0, M = 0, N = null, j = null, ke = 0, ce = null, Ee, pe = null, ie = !0;
+ const Q = () => {
+ t(0, s = t(27, N = t(19, k = null))), t(25, T = performance.now()), t(26, M = 0), I = !0, se();
};
function se() {
- Sl(() => {
- t(26, z = (performance.now() - S) / 1e3), T && se();
+ Ll(() => {
+ t(26, M = (performance.now() - T) / 1e3), I && se();
});
}
- function ve() {
- t(26, z = 0), t(0, s = t(27, N = t(19, $ = null))), T && (T = !1);
+ function be() {
+ t(26, M = 0), t(0, s = t(27, N = t(19, k = null))), I && (I = !1);
}
- Vr(() => {
- T && ve();
+ Xr(() => {
+ I && be();
});
- let $ = null;
+ let k = null;
function oe(A) {
- ia[A ? "unshift" : "push"](() => {
- _e = A, t(16, _e), t(7, w), t(14, ue), t(15, $e);
+ la[A ? "unshift" : "push"](() => {
+ pe = A, t(16, pe), t(7, w), t(14, ce), t(15, Ee);
});
}
- const K = () => {
+ const J = () => {
l("clear_status");
};
- function de(A) {
- ia[A ? "unshift" : "push"](() => {
+ function he(A) {
+ la[A ? "unshift" : "push"](() => {
C = A, t(13, C);
});
}
return i.$$set = (A) => {
- "i18n" in A && t(1, r = A.i18n), "eta" in A && t(0, s = A.eta), "queue_position" in A && t(2, u = A.queue_position), "queue_size" in A && t(3, c = A.queue_size), "status" in A && t(4, h = A.status), "scroll_to_output" in A && t(22, d = A.scroll_to_output), "timer" in A && t(5, f = A.timer), "show_progress" in A && t(6, v = A.show_progress), "message" in A && t(23, b = A.message), "progress" in A && t(7, w = A.progress), "variant" in A && t(8, k = A.variant), "loading_text" in A && t(9, m = A.loading_text), "absolute" in A && t(10, _ = A.absolute), "translucent" in A && t(11, g = A.translucent), "border" in A && t(12, y = A.border), "autoscroll" in A && t(24, F = A.autoscroll), "$$scope" in A && t(29, o = A.$$scope);
+ "i18n" in A && t(1, r = A.i18n), "eta" in A && t(0, s = A.eta), "queue_position" in A && t(2, u = A.queue_position), "queue_size" in A && t(3, c = A.queue_size), "status" in A && t(4, m = A.status), "scroll_to_output" in A && t(22, d = A.scroll_to_output), "timer" in A && t(5, f = A.timer), "show_progress" in A && t(6, v = A.show_progress), "message" in A && t(23, D = A.message), "progress" in A && t(7, w = A.progress), "variant" in A && t(8, F = A.variant), "loading_text" in A && t(9, h = A.loading_text), "absolute" in A && t(10, _ = A.absolute), "translucent" in A && t(11, g = A.translucent), "border" in A && t(12, y = A.border), "autoscroll" in A && t(24, $ = A.autoscroll), "$$scope" in A && t(29, o = A.$$scope);
}, i.$$.update = () => {
i.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
- 436207617 && (s === null && t(0, s = N), s != null && N !== s && (t(28, j = (performance.now() - S) / 1e3 + s), t(19, $ = j.toFixed(1)), t(27, N = s))), i.$$.dirty[0] & /*eta_from_start, timer_diff*/
- 335544320 && t(17, ke = j === null || j <= 0 || !z ? null : Math.min(z / j, 1)), i.$$.dirty[0] & /*progress*/
- 128 && w != null && t(18, ne = !1), i.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
- 114816 && (w != null ? t(14, ue = w.map((A) => {
+ 436207617 && (s === null && t(0, s = N), s != null && N !== s && (t(28, j = (performance.now() - T) / 1e3 + s), t(19, k = j.toFixed(1)), t(27, N = s))), i.$$.dirty[0] & /*eta_from_start, timer_diff*/
+ 335544320 && t(17, ke = j === null || j <= 0 || !M ? null : Math.min(M / j, 1)), i.$$.dirty[0] & /*progress*/
+ 128 && w != null && t(18, ie = !1), i.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
+ 114816 && (w != null ? t(14, ce = w.map((A) => {
if (A.index != null && A.length != null)
return A.index / A.length;
if (A.progress != null)
return A.progress;
- })) : t(14, ue = null), ue ? (t(15, $e = ue[ue.length - 1]), _e && ($e === 0 ? t(16, _e.style.transition = "0", _e) : t(16, _e.style.transition = "150ms", _e))) : t(15, $e = void 0)), i.$$.dirty[0] & /*status*/
- 16 && (h === "pending" ? X() : ve()), i.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
- 20979728 && C && d && (h === "pending" || h === "complete") && us(C, F), i.$$.dirty[0] & /*status, message*/
+ })) : t(14, ce = null), ce ? (t(15, Ee = ce[ce.length - 1]), pe && (Ee === 0 ? t(16, pe.style.transition = "0", pe) : t(16, pe.style.transition = "150ms", pe))) : t(15, Ee = void 0)), i.$$.dirty[0] & /*status*/
+ 16 && (m === "pending" ? Q() : be()), i.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
+ 20979728 && C && d && (m === "pending" || m === "complete") && fs(C, $), i.$$.dirty[0] & /*status, message*/
8388624, i.$$.dirty[0] & /*timer_diff*/
- 67108864 && t(20, n = z.toFixed(1));
+ 67108864 && t(20, n = M.toFixed(1));
}, [
s,
r,
u,
c,
- h,
+ m,
f,
v,
w,
- k,
- m,
+ F,
+ h,
_,
g,
y,
C,
- ue,
- $e,
- _e,
+ ce,
+ Ee,
+ pe,
ke,
- ne,
- $,
+ ie,
+ k,
n,
l,
d,
- b,
- F,
- S,
- z,
+ D,
+ $,
+ T,
+ M,
N,
j,
o,
a,
oe,
- K,
- de
+ J,
+ he
];
}
-class _s extends Ur {
+class hs extends Vr {
constructor(e) {
- super(), Hr(
+ super(), Wr(
this,
e,
+ ps,
cs,
- os,
- jr,
+ Zr,
{
i18n: 1,
eta: 0,
@@ -7323,119 +7323,119 @@ class _s extends Ur {
}
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
const {
- entries: Tl,
- setPrototypeOf: Da,
- isFrozen: ds,
- getPrototypeOf: fs,
- getOwnPropertyDescriptor: ps
+ entries: Ol,
+ setPrototypeOf: ya,
+ isFrozen: ms,
+ getPrototypeOf: gs,
+ getOwnPropertyDescriptor: vs
} = Object;
let {
- freeze: Ae,
- seal: He,
- create: Bl
+ freeze: Ce,
+ seal: Ue,
+ create: ql
} = Object, {
- apply: ui,
- construct: ci
+ apply: ci,
+ construct: _i
} = typeof Reflect < "u" && Reflect;
-Ae || (Ae = function(e) {
+Ce || (Ce = function(e) {
return e;
});
-He || (He = function(e) {
+Ue || (Ue = function(e) {
return e;
});
-ui || (ui = function(e, t, n) {
+ci || (ci = function(e, t, n) {
return e.apply(t, n);
});
-ci || (ci = function(e, t) {
+_i || (_i = function(e, t) {
return new e(...t);
});
-const Fn = Ce(Array.prototype.forEach), hs = Ce(Array.prototype.lastIndexOf), ba = Ce(Array.prototype.pop), Xt = Ce(Array.prototype.push), ms = Ce(Array.prototype.splice), An = Ce(String.prototype.toLowerCase), Vn = Ce(String.prototype.toString), ya = Ce(String.prototype.match), Kt = Ce(String.prototype.replace), gs = Ce(String.prototype.indexOf), vs = Ce(String.prototype.trim), Ze = Ce(Object.prototype.hasOwnProperty), Ee = Ce(RegExp.prototype.test), Qt = Ds(TypeError);
-function Ce(i) {
+const kn = Se(Array.prototype.forEach), bs = Se(Array.prototype.lastIndexOf), wa = Se(Array.prototype.pop), Qt = Se(Array.prototype.push), Ds = Se(Array.prototype.splice), Tn = Se(String.prototype.toLowerCase), Zn = Se(String.prototype.toString), Fa = Se(String.prototype.match), Jt = Se(String.prototype.replace), ys = Se(String.prototype.indexOf), ws = Se(String.prototype.trim), We = Se(Object.prototype.hasOwnProperty), Ae = Se(RegExp.prototype.test), en = Fs(TypeError);
+function Se(i) {
return function(e) {
e instanceof RegExp && (e.lastIndex = 0);
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
n[a - 1] = arguments[a];
- return ui(i, e, n);
+ return ci(i, e, n);
};
}
-function Ds(i) {
+function Fs(i) {
return function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
- return ci(i, t);
+ return _i(i, t);
};
}
-function P(i, e) {
- let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : An;
- Da && Da(i, null);
+function H(i, e) {
+ let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Tn;
+ ya && ya(i, null);
let n = e.length;
for (; n--; ) {
let a = e[n];
if (typeof a == "string") {
const o = t(a);
- o !== a && (ds(e) || (e[n] = o), a = o);
+ o !== a && (ms(e) || (e[n] = o), a = o);
}
i[a] = !0;
}
return i;
}
-function bs(i) {
+function $s(i) {
for (let e = 0; e < i.length; e++)
- Ze(i, e) || (i[e] = null);
+ We(i, e) || (i[e] = null);
return i;
}
-function gt(i) {
- const e = Bl(null);
- for (const [t, n] of Tl(i))
- Ze(i, t) && (Array.isArray(n) ? e[t] = bs(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = gt(n) : e[t] = n);
+function bt(i) {
+ const e = ql(null);
+ for (const [t, n] of Ol(i))
+ We(i, t) && (Array.isArray(n) ? e[t] = $s(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = bt(n) : e[t] = n);
return e;
}
-function Jt(i, e) {
+function tn(i, e) {
for (; i !== null; ) {
- const n = ps(i, e);
+ const n = vs(i, e);
if (n) {
if (n.get)
- return Ce(n.get);
+ return Se(n.get);
if (typeof n.value == "function")
- return Ce(n.value);
+ return Se(n.value);
}
- i = fs(i);
+ i = gs(i);
}
function t() {
return null;
}
return t;
}
-const wa = Ae(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Wn = Ae(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Zn = Ae(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ys = Ae(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Yn = Ae(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ws = Ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Fa = Ae(["#text"]), ka = Ae(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Xn = Ae(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), $a = Ae(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), kn = Ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Fs = He(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ks = He(/<%[\w\W]*|[\w\W]*%>/gm), $s = He(/\$\{[\w\W]*/gm), Es = He(/^data-[\-\w.\u00B7-\uFFFF]+$/), As = He(/^aria-[\-\w]+$/), Rl = He(
+const $a = Ce(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Yn = Ce(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Xn = Ce(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ks = Ce(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Kn = Ce(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Es = Ce(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ka = Ce(["#text"]), Ea = Ce(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Qn = Ce(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Aa = Ce(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), En = Ce(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), As = Ue(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Cs = Ue(/<%[\w\W]*|[\w\W]*%>/gm), Ss = Ue(/\$\{[\w\W]*/gm), Ts = Ue(/^data-[\-\w.\u00B7-\uFFFF]+$/), Bs = Ue(/^aria-[\-\w]+$/), Nl = Ue(
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
// eslint-disable-line no-useless-escape
-), Cs = He(/^(?:\w+script|data):/i), Ss = He(
+), Is = Ue(/^(?:\w+script|data):/i), Rs = Ue(
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
// eslint-disable-line no-control-regex
-), Il = He(/^html$/i), Ts = He(/^[a-z][.\w]*(-[.\w]+)+$/i);
-var Ea = /* @__PURE__ */ Object.freeze({
+), Ml = Ue(/^html$/i), Ls = Ue(/^[a-z][.\w]*(-[.\w]+)+$/i);
+var Ca = /* @__PURE__ */ Object.freeze({
__proto__: null,
- ARIA_ATTR: As,
- ATTR_WHITESPACE: Ss,
- CUSTOM_ELEMENT: Ts,
- DATA_ATTR: Es,
- DOCTYPE_NAME: Il,
- ERB_EXPR: ks,
- IS_ALLOWED_URI: Rl,
- IS_SCRIPT_OR_DATA: Cs,
- MUSTACHE_EXPR: Fs,
- TMPLIT_EXPR: $s
+ ARIA_ATTR: Bs,
+ ATTR_WHITESPACE: Rs,
+ CUSTOM_ELEMENT: Ls,
+ DATA_ATTR: Ts,
+ DOCTYPE_NAME: Ml,
+ ERB_EXPR: Cs,
+ IS_ALLOWED_URI: Nl,
+ IS_SCRIPT_OR_DATA: Is,
+ MUSTACHE_EXPR: As,
+ TMPLIT_EXPR: Ss
});
-const en = {
+const nn = {
element: 1,
text: 3,
// Deprecated
progressingInstruction: 7,
comment: 8,
document: 9
-}, Bs = function() {
+}, Os = function() {
return typeof window > "u" ? null : window;
-}, Rs = function(e, t) {
+}, qs = function(e, t) {
if (typeof e != "object" || typeof e.createPolicy != "function")
return null;
let n = null;
@@ -7454,7 +7454,7 @@ const en = {
} catch {
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
}
-}, Aa = function() {
+}, Sa = function() {
return {
afterSanitizeAttributes: [],
afterSanitizeElements: [],
@@ -7467,10 +7467,10 @@ const en = {
uponSanitizeShadowNode: []
};
};
-function Ll() {
- let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Bs();
- const e = (O) => Ll(O);
- if (e.version = "3.2.6", e.removed = [], !i || !i.document || i.document.nodeType !== en.document || !i.Element)
+function Pl() {
+ let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Os();
+ const e = (O) => Pl(O);
+ if (e.version = "3.2.6", e.removed = [], !i || !i.document || i.document.nodeType !== nn.document || !i.Element)
return e.isSupported = !1, e;
let {
document: t
@@ -7482,42 +7482,42 @@ function Ll() {
Element: s,
NodeFilter: u,
NamedNodeMap: c = i.NamedNodeMap || i.MozNamedAttrMap,
- HTMLFormElement: h,
+ HTMLFormElement: m,
DOMParser: d,
trustedTypes: f
- } = i, v = s.prototype, b = Jt(v, "cloneNode"), w = Jt(v, "remove"), k = Jt(v, "nextSibling"), m = Jt(v, "childNodes"), _ = Jt(v, "parentNode");
+ } = i, v = s.prototype, D = tn(v, "cloneNode"), w = tn(v, "remove"), F = tn(v, "nextSibling"), h = tn(v, "childNodes"), _ = tn(v, "parentNode");
if (typeof l == "function") {
const O = t.createElement("template");
O.content && O.content.ownerDocument && (t = O.content.ownerDocument);
}
let g, y = "";
const {
- implementation: F,
+ implementation: $,
createNodeIterator: C,
- createDocumentFragment: T,
- getElementsByTagName: S
+ createDocumentFragment: I,
+ getElementsByTagName: T
} = t, {
- importNode: z
+ importNode: M
} = n;
- let N = Aa();
- e.isSupported = typeof Tl == "function" && typeof _ == "function" && F && F.createHTMLDocument !== void 0;
+ let N = Sa();
+ e.isSupported = typeof Ol == "function" && typeof _ == "function" && $ && $.createHTMLDocument !== void 0;
const {
MUSTACHE_EXPR: j,
ERB_EXPR: ke,
- TMPLIT_EXPR: ue,
- DATA_ATTR: $e,
- ARIA_ATTR: _e,
- IS_SCRIPT_OR_DATA: ne,
- ATTR_WHITESPACE: X,
+ TMPLIT_EXPR: ce,
+ DATA_ATTR: Ee,
+ ARIA_ATTR: pe,
+ IS_SCRIPT_OR_DATA: ie,
+ ATTR_WHITESPACE: Q,
CUSTOM_ELEMENT: se
- } = Ea;
+ } = Ca;
let {
- IS_ALLOWED_URI: ve
- } = Ea, $ = null;
- const oe = P({}, [...wa, ...Wn, ...Zn, ...Yn, ...Fa]);
- let K = null;
- const de = P({}, [...ka, ...Xn, ...$a, ...kn]);
- let A = Object.seal(Bl(null, {
+ IS_ALLOWED_URI: be
+ } = Ca, k = null;
+ const oe = H({}, [...$a, ...Yn, ...Xn, ...Kn, ...ka]);
+ let J = null;
+ const he = H({}, [...Ea, ...Qn, ...Aa, ...En]);
+ let A = Object.seal(ql(null, {
tagNameCheck: {
writable: !0,
configurable: !1,
@@ -7536,47 +7536,47 @@ function Ll() {
enumerable: !0,
value: !1
}
- })), Se = null, Ke = null, Dt = !0, bt = !0, yt = !1, _t = !0, Qe = !1, Je = !0, dt = !1, Ht = !1, jt = !1, wt = !1, Rt = !1, It = !1, cn = !0, _n = !1;
- const Ln = "user-content-";
- let Gt = !0, $t = !1, D = {}, I = null;
- const Q = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
- let re = null;
- const qe = P({}, ["audio", "video", "img", "source", "image", "track"]);
- let ft = null;
- const Et = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Lt = "http://www.w3.org/1998/Math/MathML", Ot = "http://www.w3.org/2000/svg", Ie = "http://www.w3.org/1999/xhtml";
- let Te = Ie, At = !1, On = null;
- const Hl = P({}, [Lt, Ot, Ie], Vn);
- let dn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), fn = P({}, ["annotation-xml"]);
- const jl = P({}, ["title", "style", "font", "a", "script"]);
- let Vt = null;
- const Gl = ["application/xhtml+xml", "text/html"], Vl = "text/html";
- let fe = null, qt = null;
- const Wl = t.createElement("form"), Di = function(p) {
+ })), Te = null, Qe = null, Dt = !0, yt = !0, wt = !1, ft = !0, Je = !1, et = !0, pt = !1, Gt = !1, jt = !1, Ft = !1, qt = !1, Nt = !1, dn = !0, fn = !1;
+ const Nn = "user-content-";
+ let Vt = !0, St = !1, $t = {}, kt = null;
+ const pn = H({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
+ let b = null;
+ const L = H({}, ["audio", "video", "img", "source", "image", "track"]);
+ let W = null;
+ const re = H({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Be = "http://www.w3.org/1998/Math/MathML", tt = "http://www.w3.org/2000/svg", Ie = "http://www.w3.org/1999/xhtml";
+ let Et = Ie, Wt = !1, Tt = null;
+ const ht = H({}, [Be, tt, Ie], Zn);
+ let At = H({}, ["mi", "mo", "mn", "ms", "mtext"]), hn = H({}, ["annotation-xml"]);
+ const Zl = H({}, ["title", "style", "font", "a", "script"]);
+ let Zt = null;
+ const Yl = ["application/xhtml+xml", "text/html"], Xl = "text/html";
+ let me = null, Mt = null;
+ const Kl = t.createElement("form"), yi = function(p) {
return p instanceof RegExp || p instanceof Function;
- }, qn = function() {
+ }, Mn = function() {
let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
- if (!(qt && qt === p)) {
- if ((!p || typeof p != "object") && (p = {}), p = gt(p), Vt = // eslint-disable-next-line unicorn/prefer-includes
- Gl.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? Vl : p.PARSER_MEDIA_TYPE, fe = Vt === "application/xhtml+xml" ? Vn : An, $ = Ze(p, "ALLOWED_TAGS") ? P({}, p.ALLOWED_TAGS, fe) : oe, K = Ze(p, "ALLOWED_ATTR") ? P({}, p.ALLOWED_ATTR, fe) : de, On = Ze(p, "ALLOWED_NAMESPACES") ? P({}, p.ALLOWED_NAMESPACES, Vn) : Hl, ft = Ze(p, "ADD_URI_SAFE_ATTR") ? P(gt(Et), p.ADD_URI_SAFE_ATTR, fe) : Et, re = Ze(p, "ADD_DATA_URI_TAGS") ? P(gt(qe), p.ADD_DATA_URI_TAGS, fe) : qe, I = Ze(p, "FORBID_CONTENTS") ? P({}, p.FORBID_CONTENTS, fe) : Q, Se = Ze(p, "FORBID_TAGS") ? P({}, p.FORBID_TAGS, fe) : gt({}), Ke = Ze(p, "FORBID_ATTR") ? P({}, p.FORBID_ATTR, fe) : gt({}), D = Ze(p, "USE_PROFILES") ? p.USE_PROFILES : !1, Dt = p.ALLOW_ARIA_ATTR !== !1, bt = p.ALLOW_DATA_ATTR !== !1, yt = p.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Qe = p.SAFE_FOR_TEMPLATES || !1, Je = p.SAFE_FOR_XML !== !1, dt = p.WHOLE_DOCUMENT || !1, wt = p.RETURN_DOM || !1, Rt = p.RETURN_DOM_FRAGMENT || !1, It = p.RETURN_TRUSTED_TYPE || !1, jt = p.FORCE_BODY || !1, cn = p.SANITIZE_DOM !== !1, _n = p.SANITIZE_NAMED_PROPS || !1, Gt = p.KEEP_CONTENT !== !1, $t = p.IN_PLACE || !1, ve = p.ALLOWED_URI_REGEXP || Rl, Te = p.NAMESPACE || Ie, dn = p.MATHML_TEXT_INTEGRATION_POINTS || dn, fn = p.HTML_INTEGRATION_POINTS || fn, A = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && Di(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (A.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && Di(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (A.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (A.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Qe && (bt = !1), Rt && (wt = !0), D && ($ = P({}, Fa), K = [], D.html === !0 && (P($, wa), P(K, ka)), D.svg === !0 && (P($, Wn), P(K, Xn), P(K, kn)), D.svgFilters === !0 && (P($, Zn), P(K, Xn), P(K, kn)), D.mathMl === !0 && (P($, Yn), P(K, $a), P(K, kn))), p.ADD_TAGS && ($ === oe && ($ = gt($)), P($, p.ADD_TAGS, fe)), p.ADD_ATTR && (K === de && (K = gt(K)), P(K, p.ADD_ATTR, fe)), p.ADD_URI_SAFE_ATTR && P(ft, p.ADD_URI_SAFE_ATTR, fe), p.FORBID_CONTENTS && (I === Q && (I = gt(I)), P(I, p.FORBID_CONTENTS, fe)), Gt && ($["#text"] = !0), dt && P($, ["html", "head", "body"]), $.table && (P($, ["tbody"]), delete Se.tbody), p.TRUSTED_TYPES_POLICY) {
+ if (!(Mt && Mt === p)) {
+ if ((!p || typeof p != "object") && (p = {}), p = bt(p), Zt = // eslint-disable-next-line unicorn/prefer-includes
+ Yl.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? Xl : p.PARSER_MEDIA_TYPE, me = Zt === "application/xhtml+xml" ? Zn : Tn, k = We(p, "ALLOWED_TAGS") ? H({}, p.ALLOWED_TAGS, me) : oe, J = We(p, "ALLOWED_ATTR") ? H({}, p.ALLOWED_ATTR, me) : he, Tt = We(p, "ALLOWED_NAMESPACES") ? H({}, p.ALLOWED_NAMESPACES, Zn) : ht, W = We(p, "ADD_URI_SAFE_ATTR") ? H(bt(re), p.ADD_URI_SAFE_ATTR, me) : re, b = We(p, "ADD_DATA_URI_TAGS") ? H(bt(L), p.ADD_DATA_URI_TAGS, me) : L, kt = We(p, "FORBID_CONTENTS") ? H({}, p.FORBID_CONTENTS, me) : pn, Te = We(p, "FORBID_TAGS") ? H({}, p.FORBID_TAGS, me) : bt({}), Qe = We(p, "FORBID_ATTR") ? H({}, p.FORBID_ATTR, me) : bt({}), $t = We(p, "USE_PROFILES") ? p.USE_PROFILES : !1, Dt = p.ALLOW_ARIA_ATTR !== !1, yt = p.ALLOW_DATA_ATTR !== !1, wt = p.ALLOW_UNKNOWN_PROTOCOLS || !1, ft = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Je = p.SAFE_FOR_TEMPLATES || !1, et = p.SAFE_FOR_XML !== !1, pt = p.WHOLE_DOCUMENT || !1, Ft = p.RETURN_DOM || !1, qt = p.RETURN_DOM_FRAGMENT || !1, Nt = p.RETURN_TRUSTED_TYPE || !1, jt = p.FORCE_BODY || !1, dn = p.SANITIZE_DOM !== !1, fn = p.SANITIZE_NAMED_PROPS || !1, Vt = p.KEEP_CONTENT !== !1, St = p.IN_PLACE || !1, be = p.ALLOWED_URI_REGEXP || Nl, Et = p.NAMESPACE || Ie, At = p.MATHML_TEXT_INTEGRATION_POINTS || At, hn = p.HTML_INTEGRATION_POINTS || hn, A = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && yi(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (A.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && yi(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (A.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (A.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Je && (yt = !1), qt && (Ft = !0), $t && (k = H({}, ka), J = [], $t.html === !0 && (H(k, $a), H(J, Ea)), $t.svg === !0 && (H(k, Yn), H(J, Qn), H(J, En)), $t.svgFilters === !0 && (H(k, Xn), H(J, Qn), H(J, En)), $t.mathMl === !0 && (H(k, Kn), H(J, Aa), H(J, En))), p.ADD_TAGS && (k === oe && (k = bt(k)), H(k, p.ADD_TAGS, me)), p.ADD_ATTR && (J === he && (J = bt(J)), H(J, p.ADD_ATTR, me)), p.ADD_URI_SAFE_ATTR && H(W, p.ADD_URI_SAFE_ATTR, me), p.FORBID_CONTENTS && (kt === pn && (kt = bt(kt)), H(kt, p.FORBID_CONTENTS, me)), Vt && (k["#text"] = !0), pt && H(k, ["html", "head", "body"]), k.table && (H(k, ["tbody"]), delete Te.tbody), p.TRUSTED_TYPES_POLICY) {
if (typeof p.TRUSTED_TYPES_POLICY.createHTML != "function")
- throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
+ throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
if (typeof p.TRUSTED_TYPES_POLICY.createScriptURL != "function")
- throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
+ throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
g = p.TRUSTED_TYPES_POLICY, y = g.createHTML("");
} else
- g === void 0 && (g = Rs(f, a)), g !== null && typeof y == "string" && (y = g.createHTML(""));
- Ae && Ae(p), qt = p;
+ g === void 0 && (g = qs(f, a)), g !== null && typeof y == "string" && (y = g.createHTML(""));
+ Ce && Ce(p), Mt = p;
}
- }, bi = P({}, [...Wn, ...Zn, ...ys]), yi = P({}, [...Yn, ...ws]), Zl = function(p) {
+ }, wi = H({}, [...Yn, ...Xn, ...ks]), Fi = H({}, [...Kn, ...Es]), Ql = function(p) {
let E = _(p);
(!E || !E.tagName) && (E = {
- namespaceURI: Te,
+ namespaceURI: Et,
tagName: "template"
});
- const B = An(p.tagName), te = An(E.tagName);
- return On[p.namespaceURI] ? p.namespaceURI === Ot ? E.namespaceURI === Ie ? B === "svg" : E.namespaceURI === Lt ? B === "svg" && (te === "annotation-xml" || dn[te]) : !!bi[B] : p.namespaceURI === Lt ? E.namespaceURI === Ie ? B === "math" : E.namespaceURI === Ot ? B === "math" && fn[te] : !!yi[B] : p.namespaceURI === Ie ? E.namespaceURI === Ot && !fn[te] || E.namespaceURI === Lt && !dn[te] ? !1 : !yi[B] && (jl[B] || !bi[B]) : !!(Vt === "application/xhtml+xml" && On[p.namespaceURI]) : !1;
- }, et = function(p) {
- Xt(e.removed, {
+ const R = Tn(p.tagName), ne = Tn(E.tagName);
+ return Tt[p.namespaceURI] ? p.namespaceURI === tt ? E.namespaceURI === Ie ? R === "svg" : E.namespaceURI === Be ? R === "svg" && (ne === "annotation-xml" || At[ne]) : !!wi[R] : p.namespaceURI === Be ? E.namespaceURI === Ie ? R === "math" : E.namespaceURI === tt ? R === "math" && hn[ne] : !!Fi[R] : p.namespaceURI === Ie ? E.namespaceURI === tt && !hn[ne] || E.namespaceURI === Be && !At[ne] ? !1 : !Fi[R] && (Zl[R] || !wi[R]) : !!(Zt === "application/xhtml+xml" && Tt[p.namespaceURI]) : !1;
+ }, nt = function(p) {
+ Qt(e.removed, {
element: p
});
try {
@@ -7584,22 +7584,22 @@ function Ll() {
} catch {
w(p);
}
- }, Nt = function(p, E) {
+ }, Pt = function(p, E) {
try {
- Xt(e.removed, {
+ Qt(e.removed, {
attribute: E.getAttributeNode(p),
from: E
});
} catch {
- Xt(e.removed, {
+ Qt(e.removed, {
attribute: null,
from: E
});
}
if (E.removeAttribute(p), p === "is")
- if (wt || Rt)
+ if (Ft || qt)
try {
- et(E);
+ nt(E);
} catch {
}
else
@@ -7607,31 +7607,31 @@ function Ll() {
E.setAttribute(p, "");
} catch {
}
- }, wi = function(p) {
- let E = null, B = null;
+ }, $i = function(p) {
+ let E = null, R = null;
if (jt)
p = "" + p;
else {
- const ce = ya(p, /^[\r\n\t ]+/);
- B = ce && ce[0];
+ const _e = Fa(p, /^[\r\n\t ]+/);
+ R = _e && _e[0];
}
- Vt === "application/xhtml+xml" && Te === Ie && (p = '' + p + "");
- const te = g ? g.createHTML(p) : p;
- if (Te === Ie)
+ Zt === "application/xhtml+xml" && Et === Ie && (p = '' + p + "");
+ const ne = g ? g.createHTML(p) : p;
+ if (Et === Ie)
try {
- E = new d().parseFromString(te, Vt);
+ E = new d().parseFromString(ne, Zt);
} catch {
}
if (!E || !E.documentElement) {
- E = F.createDocument(Te, "template", null);
+ E = $.createDocument(Et, "template", null);
try {
- E.documentElement.innerHTML = At ? y : te;
+ E.documentElement.innerHTML = Wt ? y : ne;
} catch {
}
}
const De = E.body || E.documentElement;
- return p && B && De.insertBefore(t.createTextNode(B), De.childNodes[0] || null), Te === Ie ? S.call(E, dt ? "html" : "body")[0] : dt ? E.documentElement : De;
- }, Fi = function(p) {
+ return p && R && De.insertBefore(t.createTextNode(R), De.childNodes[0] || null), Et === Ie ? T.call(E, pt ? "html" : "body")[0] : pt ? E.documentElement : De;
+ }, ki = function(p) {
return C.call(
p.ownerDocument || p,
p,
@@ -7639,65 +7639,65 @@ function Ll() {
u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
null
);
- }, Nn = function(p) {
- return p instanceof h && (typeof p.nodeName != "string" || typeof p.textContent != "string" || typeof p.removeChild != "function" || !(p.attributes instanceof c) || typeof p.removeAttribute != "function" || typeof p.setAttribute != "function" || typeof p.namespaceURI != "string" || typeof p.insertBefore != "function" || typeof p.hasChildNodes != "function");
- }, ki = function(p) {
+ }, Pn = function(p) {
+ return p instanceof m && (typeof p.nodeName != "string" || typeof p.textContent != "string" || typeof p.removeChild != "function" || !(p.attributes instanceof c) || typeof p.removeAttribute != "function" || typeof p.setAttribute != "function" || typeof p.namespaceURI != "string" || typeof p.insertBefore != "function" || typeof p.hasChildNodes != "function");
+ }, Ei = function(p) {
return typeof r == "function" && p instanceof r;
};
- function pt(O, p, E) {
- Fn(O, (B) => {
- B.call(e, p, E, qt);
+ function mt(O, p, E) {
+ kn(O, (R) => {
+ R.call(e, p, E, Mt);
});
}
- const $i = function(p) {
+ const Ai = function(p) {
let E = null;
- if (pt(N.beforeSanitizeElements, p, null), Nn(p))
- return et(p), !0;
- const B = fe(p.nodeName);
- if (pt(N.uponSanitizeElement, p, {
- tagName: B,
- allowedTags: $
- }), Je && p.hasChildNodes() && !ki(p.firstElementChild) && Ee(/<[/\w!]/g, p.innerHTML) && Ee(/<[/\w!]/g, p.textContent) || p.nodeType === en.progressingInstruction || Je && p.nodeType === en.comment && Ee(/<[/\w]/g, p.data))
- return et(p), !0;
- if (!$[B] || Se[B]) {
- if (!Se[B] && Ai(B) && (A.tagNameCheck instanceof RegExp && Ee(A.tagNameCheck, B) || A.tagNameCheck instanceof Function && A.tagNameCheck(B)))
+ if (mt(N.beforeSanitizeElements, p, null), Pn(p))
+ return nt(p), !0;
+ const R = me(p.nodeName);
+ if (mt(N.uponSanitizeElement, p, {
+ tagName: R,
+ allowedTags: k
+ }), et && p.hasChildNodes() && !Ei(p.firstElementChild) && Ae(/<[/\w!]/g, p.innerHTML) && Ae(/<[/\w!]/g, p.textContent) || p.nodeType === nn.progressingInstruction || et && p.nodeType === nn.comment && Ae(/<[/\w]/g, p.data))
+ return nt(p), !0;
+ if (!k[R] || Te[R]) {
+ if (!Te[R] && Si(R) && (A.tagNameCheck instanceof RegExp && Ae(A.tagNameCheck, R) || A.tagNameCheck instanceof Function && A.tagNameCheck(R)))
return !1;
- if (Gt && !I[B]) {
- const te = _(p) || p.parentNode, De = m(p) || p.childNodes;
- if (De && te) {
- const ce = De.length;
- for (let Be = ce - 1; Be >= 0; --Be) {
- const ht = b(De[Be], !0);
- ht.__removalCount = (p.__removalCount || 0) + 1, te.insertBefore(ht, k(p));
+ if (Vt && !kt[R]) {
+ const ne = _(p) || p.parentNode, De = h(p) || p.childNodes;
+ if (De && ne) {
+ const _e = De.length;
+ for (let Re = _e - 1; Re >= 0; --Re) {
+ const gt = D(De[Re], !0);
+ gt.__removalCount = (p.__removalCount || 0) + 1, ne.insertBefore(gt, F(p));
}
}
}
- return et(p), !0;
+ return nt(p), !0;
}
- return p instanceof s && !Zl(p) || (B === "noscript" || B === "noembed" || B === "noframes") && Ee(/<\/no(script|embed|frames)/i, p.innerHTML) ? (et(p), !0) : (Qe && p.nodeType === en.text && (E = p.textContent, Fn([j, ke, ue], (te) => {
- E = Kt(E, te, " ");
- }), p.textContent !== E && (Xt(e.removed, {
+ return p instanceof s && !Ql(p) || (R === "noscript" || R === "noembed" || R === "noframes") && Ae(/<\/no(script|embed|frames)/i, p.innerHTML) ? (nt(p), !0) : (Je && p.nodeType === nn.text && (E = p.textContent, kn([j, ke, ce], (ne) => {
+ E = Jt(E, ne, " ");
+ }), p.textContent !== E && (Qt(e.removed, {
element: p.cloneNode()
- }), p.textContent = E)), pt(N.afterSanitizeElements, p, null), !1);
- }, Ei = function(p, E, B) {
- if (cn && (E === "id" || E === "name") && (B in t || B in Wl))
+ }), p.textContent = E)), mt(N.afterSanitizeElements, p, null), !1);
+ }, Ci = function(p, E, R) {
+ if (dn && (E === "id" || E === "name") && (R in t || R in Kl))
return !1;
- if (!(bt && !Ke[E] && Ee($e, E))) {
- if (!(Dt && Ee(_e, E))) {
- if (!K[E] || Ke[E]) {
+ if (!(yt && !Qe[E] && Ae(Ee, E))) {
+ if (!(Dt && Ae(pe, E))) {
+ if (!J[E] || Qe[E]) {
if (
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
- !(Ai(p) && (A.tagNameCheck instanceof RegExp && Ee(A.tagNameCheck, p) || A.tagNameCheck instanceof Function && A.tagNameCheck(p)) && (A.attributeNameCheck instanceof RegExp && Ee(A.attributeNameCheck, E) || A.attributeNameCheck instanceof Function && A.attributeNameCheck(E)) || // Alternative, second condition checks if it's an `is`-attribute, AND
+ !(Si(p) && (A.tagNameCheck instanceof RegExp && Ae(A.tagNameCheck, p) || A.tagNameCheck instanceof Function && A.tagNameCheck(p)) && (A.attributeNameCheck instanceof RegExp && Ae(A.attributeNameCheck, E) || A.attributeNameCheck instanceof Function && A.attributeNameCheck(E)) || // Alternative, second condition checks if it's an `is`-attribute, AND
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
- E === "is" && A.allowCustomizedBuiltInElements && (A.tagNameCheck instanceof RegExp && Ee(A.tagNameCheck, B) || A.tagNameCheck instanceof Function && A.tagNameCheck(B)))
+ E === "is" && A.allowCustomizedBuiltInElements && (A.tagNameCheck instanceof RegExp && Ae(A.tagNameCheck, R) || A.tagNameCheck instanceof Function && A.tagNameCheck(R)))
) return !1;
- } else if (!ft[E]) {
- if (!Ee(ve, Kt(B, X, ""))) {
- if (!((E === "src" || E === "xlink:href" || E === "href") && p !== "script" && gs(B, "data:") === 0 && re[p])) {
- if (!(yt && !Ee(ne, Kt(B, X, "")))) {
- if (B)
+ } else if (!W[E]) {
+ if (!Ae(be, Jt(R, Q, ""))) {
+ if (!((E === "src" || E === "xlink:href" || E === "href") && p !== "script" && ys(R, "data:") === 0 && b[p])) {
+ if (!(wt && !Ae(ie, Jt(R, Q, "")))) {
+ if (R)
return !1;
}
}
@@ -7706,376 +7706,381 @@ function Ll() {
}
}
return !0;
- }, Ai = function(p) {
- return p !== "annotation-xml" && ya(p, se);
- }, Ci = function(p) {
- pt(N.beforeSanitizeAttributes, p, null);
+ }, Si = function(p) {
+ return p !== "annotation-xml" && Fa(p, se);
+ }, Ti = function(p) {
+ mt(N.beforeSanitizeAttributes, p, null);
const {
attributes: E
} = p;
- if (!E || Nn(p))
+ if (!E || Pn(p))
return;
- const B = {
+ const R = {
attrName: "",
attrValue: "",
keepAttr: !0,
- allowedAttributes: K,
+ allowedAttributes: J,
forceKeepAttr: void 0
};
- let te = E.length;
- for (; te--; ) {
- const De = E[te], {
- name: ce,
- namespaceURI: Be,
- value: ht
- } = De, Wt = fe(ce), zn = ht;
- let be = ce === "value" ? zn : vs(zn);
- if (B.attrName = Wt, B.attrValue = be, B.keepAttr = !0, B.forceKeepAttr = void 0, pt(N.uponSanitizeAttribute, p, B), be = B.attrValue, _n && (Wt === "id" || Wt === "name") && (Nt(ce, p), be = Ln + be), Je && Ee(/((--!?|])>)|<\/(style|title)/i, be)) {
- Nt(ce, p);
+ let ne = E.length;
+ for (; ne--; ) {
+ const De = E[ne], {
+ name: _e,
+ namespaceURI: Re,
+ value: gt
+ } = De, Yt = me(_e), zn = gt;
+ let ye = _e === "value" ? zn : ws(zn);
+ if (R.attrName = Yt, R.attrValue = ye, R.keepAttr = !0, R.forceKeepAttr = void 0, mt(N.uponSanitizeAttribute, p, R), ye = R.attrValue, fn && (Yt === "id" || Yt === "name") && (Pt(_e, p), ye = Nn + ye), et && Ae(/((--!?|])>)|<\/(style|title)/i, ye)) {
+ Pt(_e, p);
continue;
}
- if (B.forceKeepAttr)
+ if (R.forceKeepAttr)
continue;
- if (!B.keepAttr) {
- Nt(ce, p);
+ if (!R.keepAttr) {
+ Pt(_e, p);
continue;
}
- if (!_t && Ee(/\/>/i, be)) {
- Nt(ce, p);
+ if (!ft && Ae(/\/>/i, ye)) {
+ Pt(_e, p);
continue;
}
- Qe && Fn([j, ke, ue], (Ti) => {
- be = Kt(be, Ti, " ");
+ Je && kn([j, ke, ce], (Ii) => {
+ ye = Jt(ye, Ii, " ");
});
- const Si = fe(p.nodeName);
- if (!Ei(Si, Wt, be)) {
- Nt(ce, p);
+ const Bi = me(p.nodeName);
+ if (!Ci(Bi, Yt, ye)) {
+ Pt(_e, p);
continue;
}
- if (g && typeof f == "object" && typeof f.getAttributeType == "function" && !Be)
- switch (f.getAttributeType(Si, Wt)) {
+ if (g && typeof f == "object" && typeof f.getAttributeType == "function" && !Re)
+ switch (f.getAttributeType(Bi, Yt)) {
case "TrustedHTML": {
- be = g.createHTML(be);
+ ye = g.createHTML(ye);
break;
}
case "TrustedScriptURL": {
- be = g.createScriptURL(be);
+ ye = g.createScriptURL(ye);
break;
}
}
- if (be !== zn)
+ if (ye !== zn)
try {
- Be ? p.setAttributeNS(Be, ce, be) : p.setAttribute(ce, be), Nn(p) ? et(p) : ba(e.removed);
+ Re ? p.setAttributeNS(Re, _e, ye) : p.setAttribute(_e, ye), Pn(p) ? nt(p) : wa(e.removed);
} catch {
- Nt(ce, p);
+ Pt(_e, p);
}
}
- pt(N.afterSanitizeAttributes, p, null);
- }, Yl = function O(p) {
+ mt(N.afterSanitizeAttributes, p, null);
+ }, Jl = function O(p) {
let E = null;
- const B = Fi(p);
- for (pt(N.beforeSanitizeShadowDOM, p, null); E = B.nextNode(); )
- pt(N.uponSanitizeShadowNode, E, null), $i(E), Ci(E), E.content instanceof o && O(E.content);
- pt(N.afterSanitizeShadowDOM, p, null);
+ const R = ki(p);
+ for (mt(N.beforeSanitizeShadowDOM, p, null); E = R.nextNode(); )
+ mt(N.uponSanitizeShadowNode, E, null), Ai(E), Ti(E), E.content instanceof o && O(E.content);
+ mt(N.afterSanitizeShadowDOM, p, null);
};
return e.sanitize = function(O) {
- let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = null, B = null, te = null, De = null;
- if (At = !O, At && (O = ""), typeof O != "string" && !ki(O))
+ let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = null, R = null, ne = null, De = null;
+ if (Wt = !O, Wt && (O = ""), typeof O != "string" && !Ei(O))
if (typeof O.toString == "function") {
if (O = O.toString(), typeof O != "string")
- throw Qt("dirty is not a string, aborting");
+ throw en("dirty is not a string, aborting");
} else
- throw Qt("toString is not a function");
+ throw en("toString is not a function");
if (!e.isSupported)
return O;
- if (Ht || qn(p), e.removed = [], typeof O == "string" && ($t = !1), $t) {
+ if (Gt || Mn(p), e.removed = [], typeof O == "string" && (St = !1), St) {
if (O.nodeName) {
- const ht = fe(O.nodeName);
- if (!$[ht] || Se[ht])
- throw Qt("root node is forbidden and cannot be sanitized in-place");
+ const gt = me(O.nodeName);
+ if (!k[gt] || Te[gt])
+ throw en("root node is forbidden and cannot be sanitized in-place");
}
} else if (O instanceof r)
- E = wi(""), B = E.ownerDocument.importNode(O, !0), B.nodeType === en.element && B.nodeName === "BODY" || B.nodeName === "HTML" ? E = B : E.appendChild(B);
+ E = $i(""), R = E.ownerDocument.importNode(O, !0), R.nodeType === nn.element && R.nodeName === "BODY" || R.nodeName === "HTML" ? E = R : E.appendChild(R);
else {
- if (!wt && !Qe && !dt && // eslint-disable-next-line unicorn/prefer-includes
+ if (!Ft && !Je && !pt && // eslint-disable-next-line unicorn/prefer-includes
O.indexOf("<") === -1)
- return g && It ? g.createHTML(O) : O;
- if (E = wi(O), !E)
- return wt ? null : It ? y : "";
- }
- E && jt && et(E.firstChild);
- const ce = Fi($t ? O : E);
- for (; te = ce.nextNode(); )
- $i(te), Ci(te), te.content instanceof o && Yl(te.content);
- if ($t)
+ return g && Nt ? g.createHTML(O) : O;
+ if (E = $i(O), !E)
+ return Ft ? null : Nt ? y : "";
+ }
+ E && jt && nt(E.firstChild);
+ const _e = ki(St ? O : E);
+ for (; ne = _e.nextNode(); )
+ Ai(ne), Ti(ne), ne.content instanceof o && Jl(ne.content);
+ if (St)
return O;
- if (wt) {
- if (Rt)
- for (De = T.call(E.ownerDocument); E.firstChild; )
+ if (Ft) {
+ if (qt)
+ for (De = I.call(E.ownerDocument); E.firstChild; )
De.appendChild(E.firstChild);
else
De = E;
- return (K.shadowroot || K.shadowrootmode) && (De = z.call(n, De, !0)), De;
+ return (J.shadowroot || J.shadowrootmode) && (De = M.call(n, De, !0)), De;
}
- let Be = dt ? E.outerHTML : E.innerHTML;
- return dt && $["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && Ee(Il, E.ownerDocument.doctype.name) && (Be = "
-` + Be), Qe && Fn([j, ke, ue], (ht) => {
- Be = Kt(Be, ht, " ");
- }), g && It ? g.createHTML(Be) : Be;
+ let Re = pt ? E.outerHTML : E.innerHTML;
+ return pt && k["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && Ae(Ml, E.ownerDocument.doctype.name) && (Re = "
+` + Re), Je && kn([j, ke, ce], (gt) => {
+ Re = Jt(Re, gt, " ");
+ }), g && Nt ? g.createHTML(Re) : Re;
}, e.setConfig = function() {
let O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
- qn(O), Ht = !0;
+ Mn(O), Gt = !0;
}, e.clearConfig = function() {
- qt = null, Ht = !1;
+ Mt = null, Gt = !1;
}, e.isValidAttribute = function(O, p, E) {
- qt || qn({});
- const B = fe(O), te = fe(p);
- return Ei(B, te, E);
+ Mt || Mn({});
+ const R = me(O), ne = me(p);
+ return Ci(R, ne, E);
}, e.addHook = function(O, p) {
- typeof p == "function" && Xt(N[O], p);
+ typeof p == "function" && Qt(N[O], p);
}, e.removeHook = function(O, p) {
if (p !== void 0) {
- const E = hs(N[O], p);
- return E === -1 ? void 0 : ms(N[O], E, 1)[0];
+ const E = bs(N[O], p);
+ return E === -1 ? void 0 : Ds(N[O], E, 1)[0];
}
- return ba(N[O]);
+ return wa(N[O]);
}, e.removeHooks = function(O) {
N[O] = [];
}, e.removeAllHooks = function() {
- N = Aa();
+ N = Sa();
}, e;
}
-Ll();
+Pl();
const {
- HtmlTagHydration: a$,
- SvelteComponent: l$,
- add_render_callback: o$,
- append_hydration: r$,
- attr: s$,
- bubble: u$,
- check_outros: c$,
- children: _$,
- claim_component: d$,
- claim_element: f$,
- claim_html_tag: p$,
- claim_space: h$,
- claim_text: m$,
- create_component: g$,
- create_in_transition: v$,
- create_out_transition: D$,
- destroy_component: b$,
- detach: y$,
- element: w$,
- get_svelte_dataset: F$,
- group_outros: k$,
- init: $$,
- insert_hydration: E$,
- listen: A$,
- mount_component: C$,
- run_all: S$,
- safe_not_equal: T$,
- set_data: B$,
- space: R$,
- stop_propagation: I$,
- text: L$,
- toggle_class: O$,
- transition_in: q$,
- transition_out: N$
-} = window.__gradio__svelte__internal, { createEventDispatcher: z$, onMount: M$ } = window.__gradio__svelte__internal, {
- SvelteComponent: P$,
- append_hydration: x$,
- attr: U$,
- bubble: H$,
- check_outros: j$,
- children: G$,
- claim_component: V$,
- claim_element: W$,
- claim_space: Z$,
- create_animation: Y$,
- create_component: X$,
- destroy_component: K$,
- detach: Q$,
- element: J$,
- ensure_array_like: eE,
- fix_and_outro_and_destroy_block: tE,
- fix_position: nE,
- group_outros: iE,
- init: aE,
- insert_hydration: lE,
- mount_component: oE,
- noop: rE,
- safe_not_equal: sE,
- set_style: uE,
- space: cE,
- transition_in: _E,
- transition_out: dE,
- update_keyed_each: fE
-} = window.__gradio__svelte__internal, {
- SvelteComponent: pE,
- attr: hE,
+ HtmlTagHydration: uE,
+ SvelteComponent: cE,
+ add_render_callback: _E,
+ append_hydration: dE,
+ attr: fE,
+ bubble: pE,
+ check_outros: hE,
children: mE,
- claim_element: gE,
- detach: vE,
- element: DE,
- empty: bE,
- init: yE,
- insert_hydration: wE,
- noop: FE,
- safe_not_equal: kE,
- set_style: $E
+ claim_component: gE,
+ claim_element: vE,
+ claim_html_tag: bE,
+ claim_space: DE,
+ claim_text: yE,
+ create_component: wE,
+ create_in_transition: FE,
+ create_out_transition: $E,
+ destroy_component: kE,
+ detach: EE,
+ element: AE,
+ get_svelte_dataset: CE,
+ group_outros: SE,
+ init: TE,
+ insert_hydration: BE,
+ listen: IE,
+ mount_component: RE,
+ run_all: LE,
+ safe_not_equal: OE,
+ set_data: qE,
+ space: NE,
+ stop_propagation: ME,
+ text: PE,
+ toggle_class: zE,
+ transition_in: xE,
+ transition_out: UE
+} = window.__gradio__svelte__internal, { createEventDispatcher: HE, onMount: GE } = window.__gradio__svelte__internal, {
+ SvelteComponent: jE,
+ append_hydration: VE,
+ attr: WE,
+ bubble: ZE,
+ check_outros: YE,
+ children: XE,
+ claim_component: KE,
+ claim_element: QE,
+ claim_space: JE,
+ create_animation: e2,
+ create_component: t2,
+ destroy_component: n2,
+ detach: i2,
+ element: a2,
+ ensure_array_like: l2,
+ fix_and_outro_and_destroy_block: o2,
+ fix_position: r2,
+ group_outros: s2,
+ init: u2,
+ insert_hydration: c2,
+ mount_component: _2,
+ noop: d2,
+ safe_not_equal: f2,
+ set_style: p2,
+ space: h2,
+ transition_in: m2,
+ transition_out: g2,
+ update_keyed_each: v2
} = window.__gradio__svelte__internal, {
- SvelteComponent: Is,
- append_hydration: x,
- assign: Ls,
- attr: L,
- binding_callbacks: Os,
- check_outros: qs,
- children: J,
- claim_component: Ol,
- claim_element: U,
- claim_space: me,
- claim_text: ut,
- create_component: ql,
- destroy_block: Nl,
- destroy_component: zl,
- destroy_each: Ml,
- detach: R,
- element: H,
- empty: he,
- ensure_array_like: kt,
- get_spread_object: Ns,
- get_spread_update: zs,
- get_svelte_dataset: Pl,
- group_outros: Ms,
- init: Ps,
- init_binding_group_dynamic: xs,
+ SvelteComponent: b2,
+ attr: D2,
+ children: y2,
+ claim_element: w2,
+ detach: F2,
+ element: $2,
+ empty: k2,
+ init: E2,
+ insert_hydration: A2,
+ noop: C2,
+ safe_not_equal: S2,
+ set_style: T2
+} = window.__gradio__svelte__internal, {
+ SvelteComponent: Ns,
+ append_hydration: z,
+ assign: Ms,
+ attr: S,
+ binding_callbacks: Ps,
+ check_outros: zs,
+ children: Y,
+ claim_component: zl,
+ claim_element: x,
+ claim_space: de,
+ claim_text: Xe,
+ create_component: xl,
+ destroy_block: Ul,
+ destroy_component: Hl,
+ destroy_each: Di,
+ detach: B,
+ element: U,
+ empty: ue,
+ ensure_array_like: _t,
+ get_binding_group_value: xs,
+ get_spread_object: Us,
+ get_spread_update: Hs,
+ get_svelte_dataset: Gl,
+ group_outros: Gs,
+ init: js,
+ init_binding_group_dynamic: jl,
insert_hydration: G,
- listen: le,
- mount_component: xl,
- run_all: Ut,
- safe_not_equal: Us,
- select_option: Ca,
- set_data: vt,
- set_input_value: Re,
- set_style: Pt,
- space: ge,
- stop_propagation: Hs,
- text: ct,
- to_number: _i,
- toggle_class: Fe,
- transition_in: on,
- transition_out: Rn,
- update_keyed_each: Ul
-} = window.__gradio__svelte__internal, { onMount: js, tick: Kn } = window.__gradio__svelte__internal;
-function Sa(i, e, t) {
+ listen: te,
+ mount_component: Vl,
+ run_all: Ot,
+ safe_not_equal: Vs,
+ select_option: Ta,
+ set_data: dt,
+ set_input_value: $e,
+ set_style: Ut,
+ space: fe,
+ stop_propagation: Ws,
+ text: Ke,
+ to_number: di,
+ toggle_class: ve,
+ transition_in: sn,
+ transition_out: On,
+ update_keyed_each: Wl
+} = window.__gradio__svelte__internal, { onMount: Zs, tick: An } = window.__gradio__svelte__internal;
+function Ba(i, e, t) {
const n = i.slice();
- return n[59] = e[t], n[61] = t, n;
+ return n[62] = e[t], n[64] = t, n;
}
-function Ta(i, e, t) {
+function Ia(i, e, t) {
const n = i.slice();
- return n[62] = e[t], n[63] = e, n[64] = t, n;
+ return n[65] = e[t], n[66] = e, n[67] = t, n;
}
-function Ba(i, e, t) {
+function Ra(i, e, t) {
const n = i.slice();
- return n[71] = e[t], n;
+ return n[74] = e[t], n;
}
-function Ra(i, e, t) {
+function La(i, e, t) {
+ const n = i.slice();
+ return n[74] = e[t], n;
+}
+function Oa(i, e, t) {
const n = i.slice();
- return n[71] = e[t], n;
+ return n[74] = e[t], n;
}
-function Qn(i) {
+function Jn(i) {
const e = i.slice(), t = (
/*prop*/
- e[62].interactive_if
+ e[65].interactive_if
);
- e[65] = t;
+ e[68] = t;
const n = (
/*prop*/
- e[62].visible_if
+ e[65].visible_if
);
- e[66] = n;
+ e[69] = n;
const a = (
/*i_condition*/
- e[65] ? (
+ e[68] ? (
/*get_prop_value*/
e[23](
/*i_condition*/
- e[65].field
+ e[68].field
)
) : null
);
- e[67] = a;
+ e[70] = a;
const o = (
/*v_condition*/
- e[66] ? (
+ e[69] ? (
/*get_prop_value*/
e[23](
/*v_condition*/
- e[66].field
+ e[69].field
)
) : null
);
- e[68] = o;
+ e[71] = o;
const l = (
/*interactive*/
e[13] && (/*i_condition*/
- e[65] ? (
+ e[68] ? (
/*i_condition*/
- e[65].value !== void 0 ? Array.isArray(
+ e[68].value !== void 0 ? Array.isArray(
/*i_condition*/
- e[65].value
+ e[68].value
) ? (
/*i_condition*/
- e[65].value.includes(
+ e[68].value.includes(
/*i_parent_value*/
- e[67]
+ e[70]
)
) : (
/*i_parent_value*/
- e[67] === /*i_condition*/
- e[65].value
+ e[70] === /*i_condition*/
+ e[68].value
) : (
/*i_condition*/
- e[65].neq !== void 0 ? (
+ e[68].neq !== void 0 ? (
/*i_parent_value*/
- e[67] !== /*i_condition*/
- e[65].neq
+ e[70] !== /*i_condition*/
+ e[68].neq
) : !0
)
) : !0)
);
- e[69] = l;
+ e[72] = l;
const r = (
/*prop*/
- (e[62].visible ?? !0) && (/*v_condition*/
- e[66] ? (
+ (e[65].visible ?? !0) && (/*v_condition*/
+ e[69] ? (
/*v_condition*/
- e[66].value !== void 0 ? Array.isArray(
+ e[69].value !== void 0 ? Array.isArray(
/*v_condition*/
- e[66].value
+ e[69].value
) ? (
/*v_condition*/
- e[66].value.includes(
+ e[69].value.includes(
/*v_parent_value*/
- e[68]
+ e[71]
)
) : (
/*v_parent_value*/
- e[68] === /*v_condition*/
- e[66].value
+ e[71] === /*v_condition*/
+ e[69].value
) : (
/*v_condition*/
- e[66].neq !== void 0 ? (
+ e[69].neq !== void 0 ? (
/*v_parent_value*/
- e[68] !== /*v_condition*/
- e[66].neq
+ e[71] !== /*v_condition*/
+ e[69].neq
) : !0
)
) : !0)
);
- return e[70] = r, e;
+ return e[73] = r, e;
}
-function Ia(i) {
+function qa(i) {
let e, t;
const n = [
{
@@ -8093,24 +8098,24 @@ function Ia(i) {
];
let a = {};
for (let o = 0; o < n.length; o += 1)
- a = Ls(a, n[o]);
- return e = new _s({ props: a }), e.$on(
+ a = Ms(a, n[o]);
+ return e = new hs({ props: a }), e.$on(
"clear_status",
/*clear_status_handler*/
- i[30]
+ i[31]
), {
c() {
- ql(e.$$.fragment);
+ xl(e.$$.fragment);
},
l(o) {
- Ol(e.$$.fragment, o);
+ zl(e.$$.fragment, o);
},
m(o, l) {
- xl(e, o, l), t = !0;
+ Vl(e, o, l), t = !0;
},
p(o, l) {
const r = l[0] & /*gradio, loading_status*/
- 20480 ? zs(n, [
+ 20480 ? Hs(n, [
l[0] & /*gradio*/
16384 && {
autoscroll: (
@@ -8124,7 +8129,7 @@ function Ia(i) {
o[14].i18n
) },
l[0] & /*loading_status*/
- 4096 && Ns(
+ 4096 && Us(
/*loading_status*/
o[12]
)
@@ -8132,64 +8137,64 @@ function Ia(i) {
e.$set(r);
},
i(o) {
- t || (on(e.$$.fragment, o), t = !0);
+ t || (sn(e.$$.fragment, o), t = !0);
},
o(o) {
- Rn(e.$$.fragment, o), t = !1;
+ On(e.$$.fragment, o), t = !1;
},
d(o) {
- zl(e, o);
+ Hl(e, o);
}
};
}
-function La(i) {
+function Na(i) {
let e, t;
return {
c() {
- e = H("span"), t = ct(
+ e = U("span"), t = Ke(
/*label*/
i[2]
), this.h();
},
l(n) {
- e = U(n, "SPAN", { class: !0 });
- var a = J(e);
- t = ut(
+ e = x(n, "SPAN", { class: !0 });
+ var a = Y(e);
+ t = Xe(
a,
/*label*/
i[2]
- ), a.forEach(R), this.h();
+ ), a.forEach(B), this.h();
},
h() {
- L(e, "class", "label");
+ S(e, "class", "label");
},
m(n, a) {
- G(n, e, a), x(e, t);
+ G(n, e, a), z(e, t);
},
p(n, a) {
a[0] & /*label*/
- 4 && vt(
+ 4 && dt(
t,
/*label*/
n[2]
);
},
d(n) {
- n && R(e);
+ n && B(e);
}
};
}
-function Oa(i) {
+function Ma(i) {
let e, t = "â–¼";
return {
c() {
- e = H("span"), e.textContent = t, this.h();
+ e = U("span"), e.textContent = t, this.h();
},
l(n) {
- e = U(n, "SPAN", { class: !0, "data-svelte-h": !0 }), Pl(e) !== "svelte-zp2qne" && (e.textContent = t), this.h();
+ e = x(n, "SPAN", { class: !0, "data-svelte-h": !0 }), Gl(e) !== "svelte-zp2qne" && (e.textContent = t), this.h();
},
h() {
- L(e, "class", "accordion-icon svelte-1eiz7kj"), Pt(
+ S(e, "class", "accordion-icon svelte-1bp104d"), Ut(
e,
"transform",
/*open*/
@@ -8201,7 +8206,7 @@ function Oa(i) {
},
p(n, a) {
a[0] & /*open*/
- 2 && Pt(
+ 2 && Ut(
e,
"transform",
/*open*/
@@ -8209,33 +8214,33 @@ function Oa(i) {
);
},
d(n) {
- n && R(e);
+ n && B(e);
}
};
}
-function qa(i) {
+function Pa(i) {
let e, t = Array.isArray(
/*value*/
i[0]
- ), n = t && Na(i);
+ ), n = t && za(i);
return {
c() {
- e = H("div"), n && n.c(), this.h();
+ e = U("div"), n && n.c(), this.h();
},
l(a) {
- e = U(a, "DIV", { class: !0, style: !0 });
- var o = J(e);
- n && n.l(o), o.forEach(R), this.h();
+ e = x(a, "DIV", { class: !0, style: !0 });
+ var o = Y(e);
+ n && n.l(o), o.forEach(B), this.h();
},
h() {
- L(e, "class", "container svelte-1eiz7kj"), Pt(
+ S(e, "class", "container svelte-1bp104d"), Ut(
e,
"--show-group-name",
/*value*/
i[0].length > 1 || /*show_group_name_only_one*/
i[3] && /*value*/
i[0].length === 1 ? "none" : "1px solid var(--border-color-primary)"
- ), Pt(
+ ), Ut(
e,
"--sheet-max-height",
/*height*/
@@ -8251,8 +8256,8 @@ function qa(i) {
1 && (t = Array.isArray(
/*value*/
a[0]
- )), t ? n ? n.p(a, o) : (n = Na(a), n.c(), n.m(e, null)) : n && (n.d(1), n = null), o[0] & /*value, show_group_name_only_one*/
- 9 && Pt(
+ )), t ? n ? n.p(a, o) : (n = za(a), n.c(), n.m(e, null)) : n && (n.d(1), n = null), o[0] & /*value, show_group_name_only_one*/
+ 9 && Ut(
e,
"--show-group-name",
/*value*/
@@ -8260,7 +8265,7 @@ function qa(i) {
a[3] && /*value*/
a[0].length === 1 ? "none" : "1px solid var(--border-color-primary)"
), o[0] & /*height*/
- 2048 && Pt(
+ 2048 && Ut(
e,
"--sheet-max-height",
/*height*/
@@ -8269,33 +8274,33 @@ function qa(i) {
);
},
d(a) {
- a && R(e), n && n.d();
+ a && B(e), n && n.d();
}
};
}
-function Na(i) {
- let e = [], t = /* @__PURE__ */ new Map(), n, a = kt(
+function za(i) {
+ let e = [], t = /* @__PURE__ */ new Map(), n, a = _t(
/*value*/
i[0]
);
const o = (l) => (
/*group*/
- l[59].group_name
+ l[62].group_name
);
for (let l = 0; l < a.length; l += 1) {
- let r = Sa(i, a, l), s = o(r);
- t.set(s, e[l] = Xa(s, r));
+ let r = Ba(i, a, l), s = o(r);
+ t.set(s, e[l] = tl(s, r));
}
return {
c() {
for (let l = 0; l < e.length; l += 1)
e[l].c();
- n = he();
+ n = ue();
},
l(l) {
for (let r = 0; r < e.length; r += 1)
e[r].l(l);
- n = he();
+ n = ue();
},
m(l, r) {
for (let s = 0; s < e.length; s += 1)
@@ -8303,128 +8308,128 @@ function Na(i) {
G(l, n, r);
},
p(l, r) {
- r[0] & /*value, interactive, get_prop_value, initialValues, handle_reset_prop, dispatch_update, validationState, validate_prop, sliderElements, handle_dropdown_change, groupVisibility, toggleGroup, show_group_name_only_one*/
- 131571721 && (a = kt(
+ r[0] & /*value, interactive, get_prop_value, initialValues, handle_reset_prop, dispatch_update, validationState, validate_prop, sliderElements, handle_dropdown_change, handle_multiselect_change, groupVisibility, toggleGroup, show_group_name_only_one*/
+ 265789449 && (a = _t(
/*value*/
l[0]
- ), e = Ul(e, r, o, 1, l, a, t, n.parentNode, Nl, Xa, n, Sa));
+ ), e = Wl(e, r, o, 1, l, a, t, n.parentNode, Ul, tl, n, Ba));
},
d(l) {
- l && R(n);
+ l && B(n);
for (let r = 0; r < e.length; r += 1)
e[r].d(l);
}
};
}
-function za(i) {
+function xa(i) {
let e, t, n = (
/*group*/
- i[59].group_name + ""
+ i[62].group_name + ""
), a, o, l, r = (
/*groupVisibility*/
i[15][
/*group*/
- i[59].group_name
+ i[62].group_name
] ? "−" : "+"
), s, u, c;
- function h() {
+ function m() {
return (
/*click_handler*/
- i[31](
+ i[32](
/*group*/
- i[59]
+ i[62]
)
);
}
return {
c() {
- e = H("button"), t = H("span"), a = ct(n), o = ge(), l = H("span"), s = ct(r), this.h();
+ e = U("button"), t = U("span"), a = Ke(n), o = fe(), l = U("span"), s = Ke(r), this.h();
},
l(d) {
- e = U(d, "BUTTON", { class: !0 });
- var f = J(e);
- t = U(f, "SPAN", { class: !0 });
- var v = J(t);
- a = ut(v, n), v.forEach(R), o = me(f), l = U(f, "SPAN", { class: !0 });
- var b = J(l);
- s = ut(b, r), b.forEach(R), f.forEach(R), this.h();
+ e = x(d, "BUTTON", { class: !0 });
+ var f = Y(e);
+ t = x(f, "SPAN", { class: !0 });
+ var v = Y(t);
+ a = Xe(v, n), v.forEach(B), o = de(f), l = x(f, "SPAN", { class: !0 });
+ var D = Y(l);
+ s = Xe(D, r), D.forEach(B), f.forEach(B), this.h();
},
h() {
- L(t, "class", "group-title"), L(l, "class", "group-toggle-icon"), L(e, "class", "group-header svelte-1eiz7kj");
+ S(t, "class", "group-title"), S(l, "class", "group-toggle-icon"), S(e, "class", "group-header svelte-1bp104d");
},
m(d, f) {
- G(d, e, f), x(e, t), x(t, a), x(e, o), x(e, l), x(l, s), u || (c = le(e, "click", h), u = !0);
+ G(d, e, f), z(e, t), z(t, a), z(e, o), z(e, l), z(l, s), u || (c = te(e, "click", m), u = !0);
},
p(d, f) {
i = d, f[0] & /*value*/
1 && n !== (n = /*group*/
- i[59].group_name + "") && vt(a, n), f[0] & /*groupVisibility, value*/
+ i[62].group_name + "") && dt(a, n), f[0] & /*groupVisibility, value*/
32769 && r !== (r = /*groupVisibility*/
i[15][
/*group*/
- i[59].group_name
- ] ? "−" : "+") && vt(s, r);
+ i[62].group_name
+ ] ? "−" : "+") && dt(s, r);
},
d(d) {
- d && R(e), u = !1, c();
+ d && B(e), u = !1, c();
}
};
}
-function Ma(i) {
+function Ua(i) {
let e, t = Array.isArray(
/*group*/
- i[59].properties
- ), n, a = t && Pa(i);
+ i[62].properties
+ ), n, a = t && Ha(i);
return {
c() {
- e = H("div"), a && a.c(), n = ge(), this.h();
+ e = U("div"), a && a.c(), n = fe(), this.h();
},
l(o) {
- e = U(o, "DIV", { class: !0 });
- var l = J(e);
- a && a.l(l), n = me(l), l.forEach(R), this.h();
+ e = x(o, "DIV", { class: !0 });
+ var l = Y(e);
+ a && a.l(l), n = de(l), l.forEach(B), this.h();
},
h() {
- L(e, "class", "properties-grid svelte-1eiz7kj");
+ S(e, "class", "properties-grid svelte-1bp104d");
},
m(o, l) {
- G(o, e, l), a && a.m(e, null), x(e, n);
+ G(o, e, l), a && a.m(e, null), z(e, n);
},
p(o, l) {
l[0] & /*value*/
1 && (t = Array.isArray(
/*group*/
- o[59].properties
- )), t ? a ? a.p(o, l) : (a = Pa(o), a.c(), a.m(e, n)) : a && (a.d(1), a = null);
+ o[62].properties
+ )), t ? a ? a.p(o, l) : (a = Ha(o), a.c(), a.m(e, n)) : a && (a.d(1), a = null);
},
d(o) {
- o && R(e), a && a.d();
+ o && B(e), a && a.d();
}
};
}
-function Pa(i) {
- let e = [], t = /* @__PURE__ */ new Map(), n, a = kt(
+function Ha(i) {
+ let e = [], t = /* @__PURE__ */ new Map(), n, a = _t(
/*group*/
- i[59].properties
+ i[62].properties
);
const o = (l) => (
/*prop*/
- l[62].name
+ l[65].name
);
for (let l = 0; l < a.length; l += 1) {
- let r = Ta(i, a, l), s = o(r);
- t.set(s, e[l] = Ya(s, r));
+ let r = Ia(i, a, l), s = o(r);
+ t.set(s, e[l] = el(s, r));
}
return {
c() {
for (let l = 0; l < e.length; l += 1)
e[l].c();
- n = he();
+ n = ue();
},
l(l) {
for (let r = 0; r < e.length; r += 1)
e[r].l(l);
- n = he();
+ n = ue();
},
m(l, r) {
for (let s = 0; s < e.length; s += 1)
@@ -8432,727 +8437,896 @@ function Pa(i) {
G(l, n, r);
},
p(l, r) {
- r[0] & /*interactive, value, get_prop_value, initialValues, handle_reset_prop, dispatch_update, validationState, validate_prop, sliderElements, handle_dropdown_change*/
- 127344641 && (a = kt(
+ r[0] & /*interactive, value, get_prop_value, initialValues, handle_reset_prop, dispatch_update, validationState, validate_prop, sliderElements, handle_dropdown_change, handle_multiselect_change*/
+ 261562369 && (a = _t(
/*group*/
- l[59].properties
- ), e = Ul(e, r, o, 1, l, a, t, n.parentNode, Nl, Ya, n, Ta));
+ l[62].properties
+ ), e = Wl(e, r, o, 1, l, a, t, n.parentNode, Ul, el, n, Ia));
},
d(l) {
- l && R(n);
+ l && B(n);
for (let r = 0; r < e.length; r += 1)
e[r].d(l);
}
};
}
-function xa(i) {
+function Ga(i) {
let e, t = (
/*is_visible*/
- i[70] && Ua(i)
+ i[73] && ja(i)
);
return {
c() {
- t && t.c(), e = he();
+ t && t.c(), e = ue();
},
l(n) {
- t && t.l(n), e = he();
+ t && t.l(n), e = ue();
},
m(n, a) {
t && t.m(n, a), G(n, e, a);
},
p(n, a) {
/*is_visible*/
- n[70] ? t ? t.p(n, a) : (t = Ua(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ n[73] ? t ? t.p(n, a) : (t = ja(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(n) {
- n && R(e), t && t.d(n);
+ n && B(e), t && t.d(n);
}
};
}
-function Ua(i) {
+function ja(i) {
let e, t, n, a = (
/*prop*/
- i[62].label + ""
- ), o, l, r, s, u, c, h, d = (
+ i[65].label + ""
+ ), o, l, r, s, u, c, m, d = (
/*prop*/
- i[62].help && Ha(i)
+ i[65].help && Va(i)
);
- function f(k, m) {
+ function f(F, h) {
if (
/*prop*/
- k[62].component === "string"
- ) return Qs;
+ F[65].component === "string"
+ ) return iu;
if (
/*prop*/
- k[62].component === "password"
- ) return Ks;
+ F[65].component === "password"
+ ) return nu;
if (
/*prop*/
- k[62].component === "checkbox"
- ) return Xs;
+ F[65].component === "checkbox"
+ ) return tu;
if (
/*prop*/
- k[62].component === "number_integer" || /*prop*/
- k[62].component === "number_float"
- ) return Ys;
+ F[65].component === "number_integer" || /*prop*/
+ F[65].component === "number_float"
+ ) return eu;
if (
/*prop*/
- k[62].component === "slider"
- ) return Zs;
+ F[65].component === "slider"
+ ) return Js;
if (
/*prop*/
- k[62].component === "colorpicker"
- ) return Ws;
+ F[65].component === "colorpicker"
+ ) return Qs;
if (
/*prop*/
- k[62].component === "dropdown"
- ) return Vs;
+ F[65].component === "dropdown"
+ ) return Ks;
if (
/*prop*/
- k[62].component === "radio"
- ) return Gs;
+ F[65].component === "radio"
+ ) return Xs;
+ if (
+ /*prop*/
+ F[65].component === "multiselect_checkbox"
+ ) return Ys;
}
- let v = f(i), b = v && v(i), w = (
+ let v = f(i), D = v && v(i), w = (
/*prop*/
- i[62].component !== "checkbox" && Za(i)
+ i[65].component !== "checkbox" && Ja(i)
);
return {
c() {
- e = H("label"), t = H("div"), n = H("span"), o = ct(a), l = ge(), d && d.c(), s = ge(), u = H("div"), b && b.c(), c = ge(), w && w.c(), h = ge(), this.h();
- },
- l(k) {
- e = U(k, "LABEL", { class: !0, for: !0 });
- var m = J(e);
- t = U(m, "DIV", { class: !0 });
- var _ = J(t);
- n = U(_, "SPAN", {});
- var g = J(n);
- o = ut(g, a), g.forEach(R), l = me(_), d && d.l(_), _.forEach(R), m.forEach(R), s = me(k), u = U(k, "DIV", { class: !0 });
- var y = J(u);
- b && b.l(y), c = me(y), w && w.l(y), h = me(y), y.forEach(R), this.h();
+ e = U("label"), t = U("div"), n = U("span"), o = Ke(a), l = fe(), d && d.c(), s = fe(), u = U("div"), D && D.c(), c = fe(), w && w.c(), m = fe(), this.h();
+ },
+ l(F) {
+ e = x(F, "LABEL", { class: !0, for: !0 });
+ var h = Y(e);
+ t = x(h, "DIV", { class: !0 });
+ var _ = Y(t);
+ n = x(_, "SPAN", {});
+ var g = Y(n);
+ o = Xe(g, a), g.forEach(B), l = de(_), d && d.l(_), _.forEach(B), h.forEach(B), s = de(F), u = x(F, "DIV", { class: !0 });
+ var y = Y(u);
+ D && D.l(y), c = de(y), w && w.l(y), m = de(y), y.forEach(B), this.h();
},
h() {
- L(t, "class", "prop-label-wrapper svelte-1eiz7kj"), L(e, "class", "prop-label svelte-1eiz7kj"), L(e, "for", r = /*prop*/
- i[62].name), L(u, "class", "prop-control svelte-1eiz7kj");
+ S(t, "class", "prop-label-wrapper svelte-1bp104d"), S(e, "class", "prop-label svelte-1bp104d"), S(e, "for", r = /*prop*/
+ i[65].name), S(u, "class", "prop-control svelte-1bp104d");
},
- m(k, m) {
- G(k, e, m), x(e, t), x(t, n), x(n, o), x(t, l), d && d.m(t, null), G(k, s, m), G(k, u, m), b && b.m(u, null), x(u, c), w && w.m(u, null), x(u, h);
+ m(F, h) {
+ G(F, e, h), z(e, t), z(t, n), z(n, o), z(t, l), d && d.m(t, null), G(F, s, h), G(F, u, h), D && D.m(u, null), z(u, c), w && w.m(u, null), z(u, m);
},
- p(k, m) {
- m[0] & /*value*/
+ p(F, h) {
+ h[0] & /*value*/
1 && a !== (a = /*prop*/
- k[62].label + "") && vt(o, a), /*prop*/
- k[62].help ? d ? d.p(k, m) : (d = Ha(k), d.c(), d.m(t, null)) : d && (d.d(1), d = null), m[0] & /*value*/
+ F[65].label + "") && dt(o, a), /*prop*/
+ F[65].help ? d ? d.p(F, h) : (d = Va(F), d.c(), d.m(t, null)) : d && (d.d(1), d = null), h[0] & /*value*/
1 && r !== (r = /*prop*/
- k[62].name) && L(e, "for", r), v === (v = f(k)) && b ? b.p(k, m) : (b && b.d(1), b = v && v(k), b && (b.c(), b.m(u, c))), /*prop*/
- k[62].component !== "checkbox" ? w ? w.p(k, m) : (w = Za(k), w.c(), w.m(u, h)) : w && (w.d(1), w = null);
+ F[65].name) && S(e, "for", r), v === (v = f(F)) && D ? D.p(F, h) : (D && D.d(1), D = v && v(F), D && (D.c(), D.m(u, c))), /*prop*/
+ F[65].component !== "checkbox" ? w ? w.p(F, h) : (w = Ja(F), w.c(), w.m(u, m)) : w && (w.d(1), w = null);
},
- d(k) {
- k && (R(e), R(s), R(u)), d && d.d(), b && b.d(), w && w.d();
+ d(F) {
+ F && (B(e), B(s), B(u)), d && d.d(), D && D.d(), w && w.d();
}
};
}
-function Ha(i) {
+function Va(i) {
let e, t, n = "?", a, o, l = (
/*prop*/
- i[62].help + ""
+ i[65].help + ""
), r;
return {
c() {
- e = H("div"), t = H("span"), t.textContent = n, a = ge(), o = H("span"), r = ct(l), this.h();
+ e = U("div"), t = U("span"), t.textContent = n, a = fe(), o = U("span"), r = Ke(l), this.h();
},
l(s) {
- e = U(s, "DIV", { class: !0 });
- var u = J(e);
- t = U(u, "SPAN", { class: !0, "data-svelte-h": !0 }), Pl(t) !== "svelte-fzek5l" && (t.textContent = n), a = me(u), o = U(u, "SPAN", { class: !0 });
- var c = J(o);
- r = ut(c, l), c.forEach(R), u.forEach(R), this.h();
+ e = x(s, "DIV", { class: !0 });
+ var u = Y(e);
+ t = x(u, "SPAN", { class: !0, "data-svelte-h": !0 }), Gl(t) !== "svelte-fzek5l" && (t.textContent = n), a = de(u), o = x(u, "SPAN", { class: !0 });
+ var c = Y(o);
+ r = Xe(c, l), c.forEach(B), u.forEach(B), this.h();
},
h() {
- L(t, "class", "tooltip-icon svelte-1eiz7kj"), L(o, "class", "tooltip-text svelte-1eiz7kj"), L(e, "class", "tooltip-container svelte-1eiz7kj");
+ S(t, "class", "tooltip-icon svelte-1bp104d"), S(o, "class", "tooltip-text svelte-1bp104d"), S(e, "class", "tooltip-container svelte-1bp104d");
},
m(s, u) {
- G(s, e, u), x(e, t), x(e, a), x(e, o), x(o, r);
+ G(s, e, u), z(e, t), z(e, a), z(e, o), z(o, r);
},
p(s, u) {
u[0] & /*value*/
1 && l !== (l = /*prop*/
- s[62].help + "") && vt(r, l);
+ s[65].help + "") && dt(r, l);
},
d(s) {
- s && R(e);
+ s && B(e);
+ }
+ };
+}
+function Ys(i) {
+ let e, t = Array.isArray(
+ /*prop*/
+ i[65].choices
+ ), n = t && Wa(i);
+ return {
+ c() {
+ e = U("div"), n && n.c(), this.h();
+ },
+ l(a) {
+ e = x(a, "DIV", { class: !0 });
+ var o = Y(e);
+ n && n.l(o), o.forEach(B), this.h();
+ },
+ h() {
+ S(e, "class", "multiselect-group svelte-1bp104d"), ve(e, "disabled", !/*is_interactive*/
+ i[72]);
+ },
+ m(a, o) {
+ G(a, e, o), n && n.m(e, null);
+ },
+ p(a, o) {
+ o[0] & /*value*/
+ 1 && (t = Array.isArray(
+ /*prop*/
+ a[65].choices
+ )), t ? n ? n.p(a, o) : (n = Wa(a), n.c(), n.m(e, null)) : n && (n.d(1), n = null), o[0] & /*interactive, value, get_prop_value*/
+ 8396801 && ve(e, "disabled", !/*is_interactive*/
+ a[72]);
+ },
+ d(a) {
+ a && B(e), n && n.d();
}
};
}
-function Gs(i) {
+function Xs(i) {
let e, t = Array.isArray(
/*prop*/
- i[62].choices
- ), n, a, o = t && ja(i);
+ i[65].choices
+ ), n, a, o = t && Ya(i);
function l() {
return (
/*change_handler_7*/
- i[52](
+ i[53](
/*prop*/
- i[62]
+ i[65]
)
);
}
return {
c() {
- e = H("div"), o && o.c(), this.h();
+ e = U("div"), o && o.c(), this.h();
},
l(r) {
- e = U(r, "DIV", { class: !0 });
- var s = J(e);
- o && o.l(s), s.forEach(R), this.h();
+ e = x(r, "DIV", { class: !0 });
+ var s = Y(e);
+ o && o.l(s), s.forEach(B), this.h();
},
h() {
- L(e, "class", "radio-group svelte-1eiz7kj"), Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ S(e, "class", "radio-group svelte-1bp104d"), ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
m(r, s) {
- G(r, e, s), o && o.m(e, null), n || (a = le(e, "change", l), n = !0);
+ G(r, e, s), o && o.m(e, null), n || (a = te(e, "change", l), n = !0);
},
p(r, s) {
i = r, s[0] & /*value*/
1 && (t = Array.isArray(
/*prop*/
- i[62].choices
- )), t ? o ? o.p(i, s) : (o = ja(i), o.c(), o.m(e, null)) : o && (o.d(1), o = null), s[0] & /*interactive, value, get_prop_value*/
- 8396801 && Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ i[65].choices
+ )), t ? o ? o.p(i, s) : (o = Ya(i), o.c(), o.m(e, null)) : o && (o.d(1), o = null), s[0] & /*interactive, value, get_prop_value*/
+ 8396801 && ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
d(r) {
- r && R(e), o && o.d(), n = !1, a();
+ r && B(e), o && o.d(), n = !1, a();
}
};
}
-function Vs(i) {
+function Ks(i) {
let e, t, n = Array.isArray(
/*prop*/
- i[62].choices
- ), a, o, l, r, s, u, c = n && Va(i);
- function h(...d) {
+ i[65].choices
+ ), a, o, l, r, s, u, c = n && Ka(i);
+ function m(...d) {
return (
/*change_handler_6*/
- i[49](
+ i[50](
/*prop*/
- i[62],
+ i[65],
...d
)
);
}
return {
c() {
- e = H("div"), t = H("select"), c && c.c(), l = ge(), r = H("div"), this.h();
+ e = U("div"), t = U("select"), c && c.c(), l = fe(), r = U("div"), this.h();
},
l(d) {
- e = U(d, "DIV", { class: !0 });
- var f = J(e);
- t = U(f, "SELECT", { class: !0 });
- var v = J(t);
- c && c.l(v), v.forEach(R), l = me(f), r = U(f, "DIV", { class: !0 }), J(r).forEach(R), f.forEach(R), this.h();
+ e = x(d, "DIV", { class: !0 });
+ var f = Y(e);
+ t = x(f, "SELECT", { class: !0 });
+ var v = Y(t);
+ c && c.l(v), v.forEach(B), l = de(f), r = x(f, "DIV", { class: !0 }), Y(r).forEach(B), f.forEach(B), this.h();
},
h() {
t.disabled = a = !/*is_interactive*/
- i[69], L(t, "class", "svelte-1eiz7kj"), L(r, "class", "dropdown-arrow-icon svelte-1eiz7kj"), L(e, "class", "dropdown-wrapper svelte-1eiz7kj"), Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ i[72], S(t, "class", "svelte-1bp104d"), S(r, "class", "dropdown-arrow-icon svelte-1bp104d"), S(e, "class", "dropdown-wrapper svelte-1bp104d"), ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
m(d, f) {
- G(d, e, f), x(e, t), c && c.m(t, null), Ca(
+ G(d, e, f), z(e, t), c && c.m(t, null), Ta(
t,
/*prop*/
- i[62].value
- ), x(e, l), x(e, r), s || (u = le(t, "change", h), s = !0);
+ i[65].value
+ ), z(e, l), z(e, r), s || (u = te(t, "change", m), s = !0);
},
p(d, f) {
i = d, f[0] & /*value*/
1 && (n = Array.isArray(
/*prop*/
- i[62].choices
- )), n ? c ? c.p(i, f) : (c = Va(i), c.c(), c.m(t, null)) : c && (c.d(1), c = null), f[0] & /*interactive, value*/
+ i[65].choices
+ )), n ? c ? c.p(i, f) : (c = Ka(i), c.c(), c.m(t, null)) : c && (c.d(1), c = null), f[0] & /*interactive, value*/
8193 && a !== (a = !/*is_interactive*/
- i[69]) && (t.disabled = a), f[0] & /*value*/
+ i[72]) && (t.disabled = a), f[0] & /*value*/
1 && o !== (o = /*prop*/
- i[62].value) && Ca(
+ i[65].value) && Ta(
t,
/*prop*/
- i[62].value
+ i[65].value
), f[0] & /*interactive, value, get_prop_value*/
- 8396801 && Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ 8396801 && ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
d(d) {
- d && R(e), c && c.d(), s = !1, u();
+ d && B(e), c && c.d(), s = !1, u();
}
};
}
-function Ws(i) {
+function Qs(i) {
let e, t, n, a, o, l = (
/*prop*/
- i[62].value + ""
+ i[65].value + ""
), r, s, u;
function c() {
- i[47].call(
+ i[48].call(
t,
/*each_value_1*/
- i[63],
+ i[66],
/*prop_index*/
- i[64]
+ i[67]
);
}
- function h() {
+ function m() {
return (
/*change_handler_5*/
- i[48](
+ i[49](
/*prop*/
- i[62]
+ i[65]
)
);
}
return {
c() {
- e = H("div"), t = H("input"), a = ge(), o = H("span"), r = ct(l), this.h();
+ e = U("div"), t = U("input"), a = fe(), o = U("span"), r = Ke(l), this.h();
},
l(d) {
- e = U(d, "DIV", { class: !0 });
- var f = J(e);
- t = U(f, "INPUT", { type: !0, class: !0 }), a = me(f), o = U(f, "SPAN", { class: !0 });
- var v = J(o);
- r = ut(v, l), v.forEach(R), f.forEach(R), this.h();
+ e = x(d, "DIV", { class: !0 });
+ var f = Y(e);
+ t = x(f, "INPUT", { type: !0, class: !0 }), a = de(f), o = x(f, "SPAN", { class: !0 });
+ var v = Y(o);
+ r = Xe(v, l), v.forEach(B), f.forEach(B), this.h();
},
h() {
- L(t, "type", "color"), L(t, "class", "color-picker-input svelte-1eiz7kj"), t.disabled = n = !/*is_interactive*/
- i[69], L(o, "class", "color-picker-value svelte-1eiz7kj"), L(e, "class", "color-picker-container svelte-1eiz7kj"), Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ S(t, "type", "color"), S(t, "class", "color-picker-input svelte-1bp104d"), t.disabled = n = !/*is_interactive*/
+ i[72], S(o, "class", "color-picker-value svelte-1bp104d"), S(e, "class", "color-picker-container svelte-1bp104d"), ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
m(d, f) {
- G(d, e, f), x(e, t), Re(
+ G(d, e, f), z(e, t), $e(
t,
/*prop*/
- i[62].value
- ), x(e, a), x(e, o), x(o, r), s || (u = [
- le(t, "input", c),
- le(t, "change", h)
+ i[65].value
+ ), z(e, a), z(e, o), z(o, r), s || (u = [
+ te(t, "input", c),
+ te(t, "change", m)
], s = !0);
},
p(d, f) {
i = d, f[0] & /*interactive, value*/
8193 && n !== (n = !/*is_interactive*/
- i[69]) && (t.disabled = n), f[0] & /*value*/
- 1 && Re(
+ i[72]) && (t.disabled = n), f[0] & /*value*/
+ 1 && $e(
t,
/*prop*/
- i[62].value
+ i[65].value
), f[0] & /*value*/
1 && l !== (l = /*prop*/
- i[62].value + "") && vt(r, l), f[0] & /*interactive, value, get_prop_value*/
- 8396801 && Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ i[65].value + "") && dt(r, l), f[0] & /*interactive, value, get_prop_value*/
+ 8396801 && ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
d(d) {
- d && R(e), s = !1, Ut(u);
+ d && B(e), s = !1, Ot(u);
}
};
}
-function Zs(i) {
+function Js(i) {
let e, t, n, a, o, l, r = (
/*prop*/
- i[62]
+ i[65]
), s, u, c = (
/*prop*/
- i[62].value + ""
- ), h, d, f;
+ i[65].value + ""
+ ), m, d, f;
function v() {
- i[43].call(
+ i[44].call(
t,
/*each_value_1*/
- i[63],
+ i[66],
/*prop_index*/
- i[64]
+ i[67]
);
}
- const b = () => (
+ const D = () => (
/*input_binding*/
- i[44](t, r)
+ i[45](t, r)
), w = () => (
/*input_binding*/
- i[44](null, r)
+ i[45](null, r)
);
- function k() {
+ function F() {
return (
/*input_handler_3*/
- i[45](
+ i[46](
/*prop*/
- i[62]
+ i[65]
)
);
}
- function m() {
+ function h() {
return (
/*change_handler_4*/
- i[46](
+ i[47](
/*prop*/
- i[62]
+ i[65]
)
);
}
return {
c() {
- e = H("div"), t = H("input"), s = ge(), u = H("span"), h = ct(c), this.h();
+ e = U("div"), t = U("input"), s = fe(), u = U("span"), m = Ke(c), this.h();
},
l(_) {
- e = U(_, "DIV", { class: !0 });
- var g = J(e);
- t = U(g, "INPUT", {
+ e = x(_, "DIV", { class: !0 });
+ var g = Y(e);
+ t = x(g, "INPUT", {
type: !0,
min: !0,
max: !0,
step: !0,
class: !0
- }), s = me(g), u = U(g, "SPAN", { class: !0 });
- var y = J(u);
- h = ut(y, c), y.forEach(R), g.forEach(R), this.h();
+ }), s = de(g), u = x(g, "SPAN", { class: !0 });
+ var y = Y(u);
+ m = Xe(y, c), y.forEach(B), g.forEach(B), this.h();
},
h() {
- L(t, "type", "range"), L(t, "min", n = /*prop*/
- i[62].minimum), L(t, "max", a = /*prop*/
- i[62].maximum), L(t, "step", o = /*prop*/
- i[62].step || 1), t.disabled = l = !/*is_interactive*/
- i[69], L(t, "class", "svelte-1eiz7kj"), L(u, "class", "slider-value svelte-1eiz7kj"), L(e, "class", "slider-container svelte-1eiz7kj"), Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ S(t, "type", "range"), S(t, "min", n = /*prop*/
+ i[65].minimum), S(t, "max", a = /*prop*/
+ i[65].maximum), S(t, "step", o = /*prop*/
+ i[65].step || 1), t.disabled = l = !/*is_interactive*/
+ i[72], S(t, "class", "svelte-1bp104d"), S(u, "class", "slider-value svelte-1bp104d"), S(e, "class", "slider-container svelte-1bp104d"), ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
m(_, g) {
- G(_, e, g), x(e, t), Re(
+ G(_, e, g), z(e, t), $e(
t,
/*prop*/
- i[62].value
- ), b(), x(e, s), x(e, u), x(u, h), d || (f = [
- le(t, "change", v),
- le(t, "input", v),
- le(t, "input", k),
- le(t, "change", m)
+ i[65].value
+ ), D(), z(e, s), z(e, u), z(u, m), d || (f = [
+ te(t, "change", v),
+ te(t, "input", v),
+ te(t, "input", F),
+ te(t, "change", h)
], d = !0);
},
p(_, g) {
i = _, g[0] & /*value*/
1 && n !== (n = /*prop*/
- i[62].minimum) && L(t, "min", n), g[0] & /*value*/
+ i[65].minimum) && S(t, "min", n), g[0] & /*value*/
1 && a !== (a = /*prop*/
- i[62].maximum) && L(t, "max", a), g[0] & /*value*/
+ i[65].maximum) && S(t, "max", a), g[0] & /*value*/
1 && o !== (o = /*prop*/
- i[62].step || 1) && L(t, "step", o), g[0] & /*interactive, value*/
+ i[65].step || 1) && S(t, "step", o), g[0] & /*interactive, value*/
8193 && l !== (l = !/*is_interactive*/
- i[69]) && (t.disabled = l), g[0] & /*value*/
- 1 && Re(
+ i[72]) && (t.disabled = l), g[0] & /*value*/
+ 1 && $e(
t,
/*prop*/
- i[62].value
+ i[65].value
), r !== /*prop*/
- i[62] && (w(), r = /*prop*/
- i[62], b()), g[0] & /*value*/
+ i[65] && (w(), r = /*prop*/
+ i[65], D()), g[0] & /*value*/
1 && c !== (c = /*prop*/
- i[62].value + "") && vt(h, c), g[0] & /*interactive, value, get_prop_value*/
- 8396801 && Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ i[65].value + "") && dt(m, c), g[0] & /*interactive, value, get_prop_value*/
+ 8396801 && ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
d(_) {
- _ && R(e), w(), d = !1, Ut(f);
+ _ && B(e), w(), d = !1, Ot(f);
}
};
}
-function Ys(i) {
+function eu(i) {
let e, t, n, a, o;
function l() {
- i[40].call(
+ i[41].call(
e,
/*each_value_1*/
- i[63],
+ i[66],
/*prop_index*/
- i[64]
+ i[67]
);
}
function r() {
return (
/*change_handler_3*/
- i[41](
+ i[42](
/*prop*/
- i[62]
+ i[65]
)
);
}
function s() {
return (
/*input_handler_2*/
- i[42](
+ i[43](
/*prop*/
- i[62]
+ i[65]
)
);
}
return {
c() {
- e = H("input"), this.h();
+ e = U("input"), this.h();
},
l(u) {
- e = U(u, "INPUT", { type: !0, step: !0, class: !0 }), this.h();
+ e = x(u, "INPUT", { type: !0, step: !0, class: !0 }), this.h();
},
h() {
- L(e, "type", "number"), L(e, "step", t = /*prop*/
- i[62].step || 1), e.disabled = n = !/*is_interactive*/
- i[69], L(e, "class", "svelte-1eiz7kj"), Fe(
+ S(e, "type", "number"), S(e, "step", t = /*prop*/
+ i[65].step || 1), e.disabled = n = !/*is_interactive*/
+ i[72], S(e, "class", "svelte-1bp104d"), ve(
e,
"invalid",
/*validationState*/
i[17][
/*prop*/
- i[62].name
+ i[65].name
] === !1
- ), Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ ), ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
m(u, c) {
- G(u, e, c), Re(
+ G(u, e, c), $e(
e,
/*prop*/
- i[62].value
+ i[65].value
), a || (o = [
- le(e, "input", l),
- le(e, "change", r),
- le(e, "input", s)
+ te(e, "input", l),
+ te(e, "change", r),
+ te(e, "input", s)
], a = !0);
},
p(u, c) {
i = u, c[0] & /*value*/
1 && t !== (t = /*prop*/
- i[62].step || 1) && L(e, "step", t), c[0] & /*interactive, value*/
+ i[65].step || 1) && S(e, "step", t), c[0] & /*interactive, value*/
8193 && n !== (n = !/*is_interactive*/
- i[69]) && (e.disabled = n), c[0] & /*value*/
- 1 && _i(e.value) !== /*prop*/
- i[62].value && Re(
+ i[72]) && (e.disabled = n), c[0] & /*value*/
+ 1 && di(e.value) !== /*prop*/
+ i[65].value && $e(
e,
/*prop*/
- i[62].value
+ i[65].value
), c[0] & /*validationState, value*/
- 131073 && Fe(
+ 131073 && ve(
e,
"invalid",
/*validationState*/
i[17][
/*prop*/
- i[62].name
+ i[65].name
] === !1
), c[0] & /*interactive, value, get_prop_value*/
- 8396801 && Fe(e, "disabled", !/*is_interactive*/
- i[69]);
+ 8396801 && ve(e, "disabled", !/*is_interactive*/
+ i[72]);
},
d(u) {
- u && R(e), a = !1, Ut(o);
+ u && B(e), a = !1, Ot(o);
}
};
}
-function Xs(i) {
+function tu(i) {
let e, t, n, a;
function o() {
- i[38].call(
+ i[39].call(
e,
/*each_value_1*/
- i[63],
+ i[66],
/*prop_index*/
- i[64]
+ i[67]
);
}
function l() {
return (
/*change_handler_2*/
- i[39](
+ i[40](
/*prop*/
- i[62]
+ i[65]
)
);
}
return {
c() {
- e = H("input"), this.h();
+ e = U("input"), this.h();
},
l(r) {
- e = U(r, "INPUT", { type: !0, class: !0 }), this.h();
+ e = x(r, "INPUT", { type: !0, class: !0 }), this.h();
},
h() {
- L(e, "type", "checkbox"), e.disabled = t = !/*is_interactive*/
- i[69], L(e, "class", "svelte-1eiz7kj");
+ S(e, "type", "checkbox"), e.disabled = t = !/*is_interactive*/
+ i[72], S(e, "class", "svelte-1bp104d");
},
m(r, s) {
G(r, e, s), e.checked = /*prop*/
- i[62].value, n || (a = [
- le(e, "change", o),
- le(e, "change", l)
+ i[65].value, n || (a = [
+ te(e, "change", o),
+ te(e, "change", l)
], n = !0);
},
p(r, s) {
i = r, s[0] & /*interactive, value*/
8193 && t !== (t = !/*is_interactive*/
- i[69]) && (e.disabled = t), s[0] & /*value*/
+ i[72]) && (e.disabled = t), s[0] & /*value*/
1 && (e.checked = /*prop*/
- i[62].value);
+ i[65].value);
},
d(r) {
- r && R(e), n = !1, Ut(a);
+ r && B(e), n = !1, Ot(a);
}
};
}
-function Ks(i) {
+function nu(i) {
let e, t, n, a;
function o() {
- i[35].call(
+ i[36].call(
e,
/*each_value_1*/
- i[63],
+ i[66],
/*prop_index*/
- i[64]
+ i[67]
);
}
function l() {
return (
/*change_handler_1*/
- i[36](
+ i[37](
/*prop*/
- i[62]
+ i[65]
)
);
}
function r() {
return (
/*input_handler_1*/
- i[37](
+ i[38](
/*prop*/
- i[62]
+ i[65]
)
);
}
return {
c() {
- e = H("input"), this.h();
+ e = U("input"), this.h();
},
l(s) {
- e = U(s, "INPUT", { type: !0, class: !0 }), this.h();
+ e = x(s, "INPUT", { type: !0, class: !0 }), this.h();
},
h() {
- L(e, "type", "password"), e.disabled = t = !/*is_interactive*/
- i[69], L(e, "class", "svelte-1eiz7kj");
+ S(e, "type", "password"), e.disabled = t = !/*is_interactive*/
+ i[72], S(e, "class", "svelte-1bp104d");
},
m(s, u) {
- G(s, e, u), Re(
+ G(s, e, u), $e(
e,
/*prop*/
- i[62].value
+ i[65].value
), n || (a = [
- le(e, "input", o),
- le(e, "change", l),
- le(e, "input", r)
+ te(e, "input", o),
+ te(e, "change", l),
+ te(e, "input", r)
], n = !0);
},
p(s, u) {
i = s, u[0] & /*interactive, value*/
8193 && t !== (t = !/*is_interactive*/
- i[69]) && (e.disabled = t), u[0] & /*value*/
+ i[72]) && (e.disabled = t), u[0] & /*value*/
1 && e.value !== /*prop*/
- i[62].value && Re(
+ i[65].value && $e(
e,
/*prop*/
- i[62].value
+ i[65].value
);
},
d(s) {
- s && R(e), n = !1, Ut(a);
+ s && B(e), n = !1, Ot(a);
}
};
}
-function Qs(i) {
+function iu(i) {
let e, t, n, a;
function o() {
- i[32].call(
+ i[33].call(
e,
/*each_value_1*/
- i[63],
+ i[66],
/*prop_index*/
- i[64]
+ i[67]
);
}
function l() {
return (
/*change_handler*/
- i[33](
+ i[34](
/*prop*/
- i[62]
+ i[65]
)
);
}
function r() {
return (
/*input_handler*/
- i[34](
+ i[35](
/*prop*/
- i[62]
+ i[65]
)
);
}
return {
c() {
- e = H("input"), this.h();
+ e = U("input"), this.h();
},
l(s) {
- e = U(s, "INPUT", { type: !0, class: !0 }), this.h();
+ e = x(s, "INPUT", { type: !0, class: !0 }), this.h();
},
h() {
- L(e, "type", "text"), e.disabled = t = !/*is_interactive*/
- i[69], L(e, "class", "svelte-1eiz7kj");
+ S(e, "type", "text"), e.disabled = t = !/*is_interactive*/
+ i[72], S(e, "class", "svelte-1bp104d");
},
m(s, u) {
- G(s, e, u), Re(
+ G(s, e, u), $e(
e,
/*prop*/
- i[62].value
+ i[65].value
), n || (a = [
- le(e, "input", o),
- le(e, "change", l),
- le(e, "input", r)
+ te(e, "input", o),
+ te(e, "change", l),
+ te(e, "input", r)
], n = !0);
},
p(s, u) {
i = s, u[0] & /*interactive, value*/
8193 && t !== (t = !/*is_interactive*/
- i[69]) && (e.disabled = t), u[0] & /*value*/
+ i[72]) && (e.disabled = t), u[0] & /*value*/
1 && e.value !== /*prop*/
- i[62].value && Re(
+ i[65].value && $e(
e,
/*prop*/
- i[62].value
+ i[65].value
);
},
d(s) {
- s && R(e), n = !1, Ut(a);
+ s && B(e), n = !1, Ot(a);
}
};
}
-function ja(i) {
- let e, t = kt(
+function Wa(i) {
+ let e, t = _t(
/*prop*/
- i[62].choices
+ i[65].choices
), n = [];
for (let a = 0; a < t.length; a += 1)
- n[a] = Ga(Ba(i, t, a));
+ n[a] = Za(Ra(i, t, a));
return {
c() {
for (let a = 0; a < n.length; a += 1)
n[a].c();
- e = he();
+ e = ue();
},
l(a) {
for (let o = 0; o < n.length; o += 1)
n[o].l(a);
- e = he();
+ e = ue();
+ },
+ m(a, o) {
+ for (let l = 0; l < n.length; l += 1)
+ n[l] && n[l].m(a, o);
+ G(a, e, o);
+ },
+ p(a, o) {
+ if (o[0] & /*value, interactive, get_prop_value, handle_multiselect_change*/
+ 75505665) {
+ t = _t(
+ /*prop*/
+ a[65].choices
+ );
+ let l;
+ for (l = 0; l < t.length; l += 1) {
+ const r = Ra(a, t, l);
+ n[l] ? n[l].p(r, o) : (n[l] = Za(r), n[l].c(), n[l].m(e.parentNode, e));
+ }
+ for (; l < n.length; l += 1)
+ n[l].d(1);
+ n.length = t.length;
+ }
+ },
+ d(a) {
+ a && B(e), Di(n, a);
+ }
+ };
+}
+function Za(i) {
+ let e, t, n, a, o = !1, l, r, s, u = (
+ /*choice*/
+ i[74] + ""
+ ), c, m, d, f, v, D;
+ function w() {
+ i[54].call(
+ t,
+ /*each_value_1*/
+ i[66],
+ /*prop_index*/
+ i[67],
+ /*group_index*/
+ i[64]
+ );
+ }
+ return f = jl(
+ /*$$binding_groups*/
+ i[52][0],
+ [
+ /*prop_index*/
+ i[67],
+ /*group_index*/
+ i[64]
+ ]
+ ), {
+ c() {
+ e = U("div"), t = U("input"), r = fe(), s = U("label"), c = Ke(u), d = fe(), this.h();
+ },
+ l(F) {
+ e = x(F, "DIV", { class: !0 });
+ var h = Y(e);
+ t = x(h, "INPUT", { type: !0, id: !0, class: !0 }), r = de(h), s = x(h, "LABEL", { for: !0, class: !0 });
+ var _ = Y(s);
+ c = Xe(_, u), _.forEach(B), d = de(h), h.forEach(B), this.h();
+ },
+ h() {
+ S(t, "type", "checkbox"), S(t, "id", n = /*prop*/
+ i[65].name + "-" + /*choice*/
+ i[74]), t.__value = a = /*choice*/
+ i[74], $e(t, t.__value), t.disabled = l = !/*is_interactive*/
+ i[72], S(t, "class", "svelte-1bp104d"), S(s, "for", m = /*prop*/
+ i[65].name + "-" + /*choice*/
+ i[74]), S(s, "class", "svelte-1bp104d"), S(e, "class", "multiselect-item svelte-1bp104d"), f.p(t);
+ },
+ m(F, h) {
+ G(F, e, h), z(e, t), t.checked = ~/*prop*/
+ (i[65].value || []).indexOf(t.__value), z(e, r), z(e, s), z(s, c), z(e, d), v || (D = [
+ te(t, "change", w),
+ te(
+ t,
+ "change",
+ /*change_handler_8*/
+ i[55]
+ )
+ ], v = !0);
+ },
+ p(F, h) {
+ i = F, h[0] & /*value*/
+ 1 && n !== (n = /*prop*/
+ i[65].name + "-" + /*choice*/
+ i[74]) && S(t, "id", n), h[0] & /*value*/
+ 1 && a !== (a = /*choice*/
+ i[74]) && (t.__value = a, $e(t, t.__value), o = !0), h[0] & /*interactive, value*/
+ 8193 && l !== (l = !/*is_interactive*/
+ i[72]) && (t.disabled = l), (o || h[0] & /*value*/
+ 1) && (t.checked = ~/*prop*/
+ (i[65].value || []).indexOf(t.__value)), h[0] & /*value*/
+ 1 && u !== (u = /*choice*/
+ i[74] + "") && dt(c, u), h[0] & /*value*/
+ 1 && m !== (m = /*prop*/
+ i[65].name + "-" + /*choice*/
+ i[74]) && S(s, "for", m), h[0] & /*value*/
+ 1 && f.u([
+ /*prop_index*/
+ i[67],
+ /*group_index*/
+ i[64]
+ ]);
+ },
+ d(F) {
+ F && B(e), f.r(), v = !1, Ot(D);
+ }
+ };
+}
+function Ya(i) {
+ let e, t = _t(
+ /*prop*/
+ i[65].choices
+ ), n = [];
+ for (let a = 0; a < t.length; a += 1)
+ n[a] = Xa(La(i, t, a));
+ return {
+ c() {
+ for (let a = 0; a < n.length; a += 1)
+ n[a].c();
+ e = ue();
+ },
+ l(a) {
+ for (let o = 0; o < n.length; o += 1)
+ n[o].l(a);
+ e = ue();
},
m(a, o) {
for (let l = 0; l < n.length; l += 1)
@@ -9162,14 +9336,14 @@ function ja(i) {
p(a, o) {
if (o[0] & /*value, interactive, get_prop_value*/
8396801) {
- t = kt(
+ t = _t(
/*prop*/
- a[62].choices
+ a[65].choices
);
let l;
for (l = 0; l < t.length; l += 1) {
- const r = Ba(a, t, l);
- n[l] ? n[l].p(r, o) : (n[l] = Ga(r), n[l].c(), n[l].m(e.parentNode, e));
+ const r = La(a, t, l);
+ n[l] ? n[l].p(r, o) : (n[l] = Xa(r), n[l].c(), n[l].m(e.parentNode, e));
}
for (; l < n.length; l += 1)
n[l].d(1);
@@ -9177,110 +9351,110 @@ function ja(i) {
}
},
d(a) {
- a && R(e), Ml(n, a);
+ a && B(e), Di(n, a);
}
};
}
-function Ga(i) {
+function Xa(i) {
let e, t, n, a, o, l = !1, r, s, u, c = (
/*choice*/
- i[71] + ""
- ), h, d, f, v, b, w;
- function k() {
- i[50].call(
+ i[74] + ""
+ ), m, d, f, v, D, w;
+ function F() {
+ i[51].call(
t,
/*each_value_1*/
- i[63],
+ i[66],
/*prop_index*/
- i[64]
+ i[67]
);
}
- return v = xs(
+ return v = jl(
/*$$binding_groups*/
- i[51][0],
+ i[52][0],
[
/*prop_index*/
- i[64],
+ i[67],
/*group_index*/
- i[61]
+ i[64]
]
), {
c() {
- e = H("div"), t = H("input"), s = ge(), u = H("label"), h = ct(c), f = ge(), this.h();
+ e = U("div"), t = U("input"), s = fe(), u = U("label"), m = Ke(c), f = fe(), this.h();
},
- l(m) {
- e = U(m, "DIV", { class: !0 });
- var _ = J(e);
- t = U(_, "INPUT", {
+ l(h) {
+ e = x(h, "DIV", { class: !0 });
+ var _ = Y(e);
+ t = x(_, "INPUT", {
type: !0,
id: !0,
name: !0,
class: !0
- }), s = me(_), u = U(_, "LABEL", { for: !0, class: !0 });
- var g = J(u);
- h = ut(g, c), g.forEach(R), f = me(_), _.forEach(R), this.h();
+ }), s = de(_), u = x(_, "LABEL", { for: !0, class: !0 });
+ var g = Y(u);
+ m = Xe(g, c), g.forEach(B), f = de(_), _.forEach(B), this.h();
},
h() {
- L(t, "type", "radio"), L(t, "id", n = /*prop*/
- i[62].name + "-" + /*choice*/
- i[71]), L(t, "name", a = /*prop*/
- i[62].name), t.__value = o = /*choice*/
- i[71], Re(t, t.__value), t.disabled = r = !/*is_interactive*/
- i[69], L(t, "class", "svelte-1eiz7kj"), L(u, "for", d = /*prop*/
- i[62].name + "-" + /*choice*/
- i[71]), L(u, "class", "svelte-1eiz7kj"), L(e, "class", "radio-item svelte-1eiz7kj"), v.p(t);
- },
- m(m, _) {
- G(m, e, _), x(e, t), t.checked = t.__value === /*prop*/
- i[62].value, x(e, s), x(e, u), x(u, h), x(e, f), b || (w = le(t, "change", k), b = !0);
- },
- p(m, _) {
- i = m, _[0] & /*value*/
+ S(t, "type", "radio"), S(t, "id", n = /*prop*/
+ i[65].name + "-" + /*choice*/
+ i[74]), S(t, "name", a = /*prop*/
+ i[65].name), t.__value = o = /*choice*/
+ i[74], $e(t, t.__value), t.disabled = r = !/*is_interactive*/
+ i[72], S(t, "class", "svelte-1bp104d"), S(u, "for", d = /*prop*/
+ i[65].name + "-" + /*choice*/
+ i[74]), S(u, "class", "svelte-1bp104d"), S(e, "class", "radio-item svelte-1bp104d"), v.p(t);
+ },
+ m(h, _) {
+ G(h, e, _), z(e, t), t.checked = t.__value === /*prop*/
+ i[65].value, z(e, s), z(e, u), z(u, m), z(e, f), D || (w = te(t, "change", F), D = !0);
+ },
+ p(h, _) {
+ i = h, _[0] & /*value*/
1 && n !== (n = /*prop*/
- i[62].name + "-" + /*choice*/
- i[71]) && L(t, "id", n), _[0] & /*value*/
+ i[65].name + "-" + /*choice*/
+ i[74]) && S(t, "id", n), _[0] & /*value*/
1 && a !== (a = /*prop*/
- i[62].name) && L(t, "name", a), _[0] & /*value*/
+ i[65].name) && S(t, "name", a), _[0] & /*value*/
1 && o !== (o = /*choice*/
- i[71]) && (t.__value = o, Re(t, t.__value), l = !0), _[0] & /*interactive, value*/
+ i[74]) && (t.__value = o, $e(t, t.__value), l = !0), _[0] & /*interactive, value*/
8193 && r !== (r = !/*is_interactive*/
- i[69]) && (t.disabled = r), (l || _[0] & /*value*/
+ i[72]) && (t.disabled = r), (l || _[0] & /*value*/
1) && (t.checked = t.__value === /*prop*/
- i[62].value), _[0] & /*value*/
+ i[65].value), _[0] & /*value*/
1 && c !== (c = /*choice*/
- i[71] + "") && vt(h, c), _[0] & /*value*/
+ i[74] + "") && dt(m, c), _[0] & /*value*/
1 && d !== (d = /*prop*/
- i[62].name + "-" + /*choice*/
- i[71]) && L(u, "for", d), _[0] & /*value*/
+ i[65].name + "-" + /*choice*/
+ i[74]) && S(u, "for", d), _[0] & /*value*/
1 && v.u([
/*prop_index*/
- i[64],
+ i[67],
/*group_index*/
- i[61]
+ i[64]
]);
},
- d(m) {
- m && R(e), v.r(), b = !1, w();
+ d(h) {
+ h && B(e), v.r(), D = !1, w();
}
};
}
-function Va(i) {
- let e, t = kt(
+function Ka(i) {
+ let e, t = _t(
/*prop*/
- i[62].choices
+ i[65].choices
), n = [];
for (let a = 0; a < t.length; a += 1)
- n[a] = Wa(Ra(i, t, a));
+ n[a] = Qa(Oa(i, t, a));
return {
c() {
for (let a = 0; a < n.length; a += 1)
n[a].c();
- e = he();
+ e = ue();
},
l(a) {
for (let o = 0; o < n.length; o += 1)
n[o].l(a);
- e = he();
+ e = ue();
},
m(a, o) {
for (let l = 0; l < n.length; l += 1)
@@ -9290,14 +9464,14 @@ function Va(i) {
p(a, o) {
if (o[0] & /*value*/
1) {
- t = kt(
+ t = _t(
/*prop*/
- a[62].choices
+ a[65].choices
);
let l;
for (l = 0; l < t.length; l += 1) {
- const r = Ra(a, t, l);
- n[l] ? n[l].p(r, o) : (n[l] = Wa(r), n[l].c(), n[l].m(e.parentNode, e));
+ const r = Oa(a, t, l);
+ n[l] ? n[l].p(r, o) : (n[l] = Qa(r), n[l].c(), n[l].m(e.parentNode, e));
}
for (; l < n.length; l += 1)
n[l].d(1);
@@ -9305,117 +9479,117 @@ function Va(i) {
}
},
d(a) {
- a && R(e), Ml(n, a);
+ a && B(e), Di(n, a);
}
};
}
-function Wa(i) {
+function Qa(i) {
let e, t = (
/*choice*/
- i[71] + ""
+ i[74] + ""
), n, a, o, l;
return {
c() {
- e = H("option"), n = ct(t), a = ge(), this.h();
+ e = U("option"), n = Ke(t), a = fe(), this.h();
},
l(r) {
- e = U(r, "OPTION", { class: !0 });
- var s = J(e);
- n = ut(s, t), a = me(s), s.forEach(R), this.h();
+ e = x(r, "OPTION", { class: !0 });
+ var s = Y(e);
+ n = Xe(s, t), a = de(s), s.forEach(B), this.h();
},
h() {
e.__value = o = /*choice*/
- i[71], Re(e, e.__value), e.selected = l = /*prop*/
- i[62].value === /*choice*/
- i[71], L(e, "class", "svelte-1eiz7kj");
+ i[74], $e(e, e.__value), e.selected = l = /*prop*/
+ i[65].value === /*choice*/
+ i[74], S(e, "class", "svelte-1bp104d");
},
m(r, s) {
- G(r, e, s), x(e, n), x(e, a);
+ G(r, e, s), z(e, n), z(e, a);
},
p(r, s) {
s[0] & /*value*/
1 && t !== (t = /*choice*/
- r[71] + "") && vt(n, t), s[0] & /*value*/
+ r[74] + "") && dt(n, t), s[0] & /*value*/
1 && o !== (o = /*choice*/
- r[71]) && (e.__value = o, Re(e, e.__value)), s[0] & /*value*/
+ r[74]) && (e.__value = o, $e(e, e.__value)), s[0] & /*value*/
1 && l !== (l = /*prop*/
- r[62].value === /*choice*/
- r[71]) && (e.selected = l);
+ r[65].value === /*choice*/
+ r[74]) && (e.selected = l);
},
d(r) {
- r && R(e);
+ r && B(e);
}
};
}
-function Za(i) {
+function Ja(i) {
let e, t, n, a, o;
function l() {
return (
/*click_handler_1*/
- i[53](
+ i[56](
/*prop*/
- i[62]
+ i[65]
)
);
}
return {
c() {
- e = H("button"), t = ct("↺"), this.h();
+ e = U("button"), t = Ke("↺"), this.h();
},
l(r) {
- e = U(r, "BUTTON", { class: !0, title: !0 });
- var s = J(e);
- t = ut(s, "↺"), s.forEach(R), this.h();
+ e = x(r, "BUTTON", { class: !0, title: !0 });
+ var s = Y(e);
+ t = Xe(s, "↺"), s.forEach(B), this.h();
},
h() {
- L(e, "class", "reset-button-prop svelte-1eiz7kj"), L(e, "title", "Reset to default"), e.disabled = n = !/*is_interactive*/
- i[69], Fe(
+ S(e, "class", "reset-button-prop svelte-1bp104d"), S(e, "title", "Reset to default"), e.disabled = n = !/*is_interactive*/
+ i[72], ve(
e,
"visible",
/*initialValues*/
i[18][
/*prop*/
- i[62].name
+ i[65].name
] !== /*prop*/
- i[62].value
+ i[65].value
);
},
m(r, s) {
- G(r, e, s), x(e, t), a || (o = le(e, "click", Hs(l)), a = !0);
+ G(r, e, s), z(e, t), a || (o = te(e, "click", Ws(l)), a = !0);
},
p(r, s) {
i = r, s[0] & /*interactive, value*/
8193 && n !== (n = !/*is_interactive*/
- i[69]) && (e.disabled = n), s[0] & /*initialValues, value*/
- 262145 && Fe(
+ i[72]) && (e.disabled = n), s[0] & /*initialValues, value*/
+ 262145 && ve(
e,
"visible",
/*initialValues*/
i[18][
/*prop*/
- i[62].name
+ i[65].name
] !== /*prop*/
- i[62].value
+ i[65].value
);
},
d(r) {
- r && R(e), a = !1, o();
+ r && B(e), a = !1, o();
}
};
}
-function Ya(i, e) {
+function el(i, e) {
let t, n, a = (
/*prop*/
- (e[62].visible ?? !0) && xa(Qn(e))
+ (e[65].visible ?? !0) && Ga(Jn(e))
);
return {
key: i,
first: null,
c() {
- t = he(), a && a.c(), n = he(), this.h();
+ t = ue(), a && a.c(), n = ue(), this.h();
},
l(o) {
- t = he(), a && a.l(o), n = he(), this.h();
+ t = ue(), a && a.l(o), n = ue(), this.h();
},
h() {
this.first = t;
@@ -9425,34 +9599,34 @@ function Ya(i, e) {
},
p(o, l) {
e = o, /*prop*/
- e[62].visible ?? !0 ? a ? a.p(Qn(e), l) : (a = xa(Qn(e)), a.c(), a.m(n.parentNode, n)) : a && (a.d(1), a = null);
+ e[65].visible ?? !0 ? a ? a.p(Jn(e), l) : (a = Ga(Jn(e)), a.c(), a.m(n.parentNode, n)) : a && (a.d(1), a = null);
},
d(o) {
- o && (R(t), R(n)), a && a.d(o);
+ o && (B(t), B(n)), a && a.d(o);
}
};
}
-function Xa(i, e) {
+function tl(i, e) {
let t, n, a, o = (
/*value*/
(e[0].length > 1 || /*show_group_name_only_one*/
e[3] && /*value*/
- e[0].length === 1) && za(e)
+ e[0].length === 1) && xa(e)
), l = (
/*groupVisibility*/
e[15][
/*group*/
- e[59].group_name
- ] && Ma(e)
+ e[62].group_name
+ ] && Ua(e)
);
return {
key: i,
first: null,
c() {
- t = he(), o && o.c(), n = ge(), l && l.c(), a = he(), this.h();
+ t = ue(), o && o.c(), n = fe(), l && l.c(), a = ue(), this.h();
},
l(r) {
- t = he(), o && o.l(r), n = me(r), l && l.l(r), a = he(), this.h();
+ t = ue(), o && o.l(r), n = de(r), l && l.l(r), a = ue(), this.h();
},
h() {
this.first = t;
@@ -9464,47 +9638,47 @@ function Xa(i, e) {
e = r, /*value*/
e[0].length > 1 || /*show_group_name_only_one*/
e[3] && /*value*/
- e[0].length === 1 ? o ? o.p(e, s) : (o = za(e), o.c(), o.m(n.parentNode, n)) : o && (o.d(1), o = null), /*groupVisibility*/
+ e[0].length === 1 ? o ? o.p(e, s) : (o = xa(e), o.c(), o.m(n.parentNode, n)) : o && (o.d(1), o = null), /*groupVisibility*/
e[15][
/*group*/
- e[59].group_name
- ] ? l ? l.p(e, s) : (l = Ma(e), l.c(), l.m(a.parentNode, a)) : l && (l.d(1), l = null);
+ e[62].group_name
+ ] ? l ? l.p(e, s) : (l = Ua(e), l.c(), l.m(a.parentNode, a)) : l && (l.d(1), l = null);
},
d(r) {
- r && (R(t), R(n), R(a)), o && o.d(r), l && l.d(r);
+ r && (B(t), B(n), B(a)), o && o.d(r), l && l.d(r);
}
};
}
-function Js(i) {
+function au(i) {
let e, t, n, a, o, l, r, s, u = (
/*loading_status*/
- i[12] && Ia(i)
+ i[12] && qa(i)
), c = (
/*label*/
- i[2] && La(i)
- ), h = !/*disable_accordion*/
- i[4] && Oa(i), d = (
+ i[2] && Na(i)
+ ), m = !/*disable_accordion*/
+ i[4] && Ma(i), d = (
/*open*/
- i[1] && qa(i)
+ i[1] && Pa(i)
);
return {
c() {
- u && u.c(), e = ge(), t = H("button"), c && c.c(), n = ge(), h && h.c(), a = ge(), o = H("div"), d && d.c(), this.h();
+ u && u.c(), e = fe(), t = U("button"), c && c.c(), n = fe(), m && m.c(), a = fe(), o = U("div"), d && d.c(), this.h();
},
l(f) {
- u && u.l(f), e = me(f), t = U(f, "BUTTON", { class: !0 });
- var v = J(t);
- c && c.l(v), n = me(v), h && h.l(v), v.forEach(R), a = me(f), o = U(f, "DIV", { class: !0 });
- var b = J(o);
- d && d.l(b), b.forEach(R), this.h();
+ u && u.l(f), e = de(f), t = x(f, "BUTTON", { class: !0 });
+ var v = Y(t);
+ c && c.l(v), n = de(v), m && m.l(v), v.forEach(B), a = de(f), o = x(f, "DIV", { class: !0 });
+ var D = Y(o);
+ d && d.l(D), D.forEach(B), this.h();
},
h() {
- L(t, "class", "accordion-header svelte-1eiz7kj"), t.disabled = /*disable_accordion*/
- i[4], L(o, "class", "content-wrapper svelte-1eiz7kj"), Fe(o, "closed", !/*open*/
+ S(t, "class", "accordion-header svelte-1bp104d"), t.disabled = /*disable_accordion*/
+ i[4], S(o, "class", "content-wrapper svelte-1bp104d"), ve(o, "closed", !/*open*/
i[1]);
},
m(f, v) {
- u && u.m(f, v), G(f, e, v), G(f, t, v), c && c.m(t, null), x(t, n), h && h.m(t, null), G(f, a, v), G(f, o, v), d && d.m(o, null), l = !0, r || (s = le(
+ u && u.m(f, v), G(f, e, v), G(f, t, v), c && c.m(t, null), z(t, n), m && m.m(t, null), G(f, a, v), G(f, o, v), d && d.m(o, null), l = !0, r || (s = te(
t,
"click",
/*handle_toggle*/
@@ -9514,31 +9688,31 @@ function Js(i) {
p(f, v) {
/*loading_status*/
f[12] ? u ? (u.p(f, v), v[0] & /*loading_status*/
- 4096 && on(u, 1)) : (u = Ia(f), u.c(), on(u, 1), u.m(e.parentNode, e)) : u && (Ms(), Rn(u, 1, 1, () => {
+ 4096 && sn(u, 1)) : (u = qa(f), u.c(), sn(u, 1), u.m(e.parentNode, e)) : u && (Gs(), On(u, 1, 1, () => {
u = null;
- }), qs()), /*label*/
- f[2] ? c ? c.p(f, v) : (c = La(f), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*disable_accordion*/
- f[4] ? h && (h.d(1), h = null) : h ? h.p(f, v) : (h = Oa(f), h.c(), h.m(t, null)), (!l || v[0] & /*disable_accordion*/
+ }), zs()), /*label*/
+ f[2] ? c ? c.p(f, v) : (c = Na(f), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*disable_accordion*/
+ f[4] ? m && (m.d(1), m = null) : m ? m.p(f, v) : (m = Ma(f), m.c(), m.m(t, null)), (!l || v[0] & /*disable_accordion*/
16) && (t.disabled = /*disable_accordion*/
f[4]), /*open*/
- f[1] ? d ? d.p(f, v) : (d = qa(f), d.c(), d.m(o, null)) : d && (d.d(1), d = null), (!l || v[0] & /*open*/
- 2) && Fe(o, "closed", !/*open*/
+ f[1] ? d ? d.p(f, v) : (d = Pa(f), d.c(), d.m(o, null)) : d && (d.d(1), d = null), (!l || v[0] & /*open*/
+ 2) && ve(o, "closed", !/*open*/
f[1]);
},
i(f) {
- l || (on(u), l = !0);
+ l || (sn(u), l = !0);
},
o(f) {
- Rn(u), l = !1;
+ On(u), l = !1;
},
d(f) {
- f && (R(e), R(t), R(a), R(o)), u && u.d(f), c && c.d(), h && h.d(), d && d.d(), r = !1, s();
+ f && (B(e), B(t), B(a), B(o)), u && u.d(f), c && c.d(), m && m.d(), d && d.d(), r = !1, s();
}
};
}
-function eu(i) {
+function lu(i) {
let e, t;
- return e = new ho({
+ return e = new bo({
props: {
visible: (
/*visible*/
@@ -9568,18 +9742,18 @@ function eu(i) {
/*width*/
i[10]
),
- $$slots: { default: [Js] },
+ $$slots: { default: [au] },
$$scope: { ctx: i }
}
}), {
c() {
- ql(e.$$.fragment);
+ xl(e.$$.fragment);
},
l(n) {
- Ol(e.$$.fragment, n);
+ zl(e.$$.fragment, n);
},
m(n, a) {
- xl(e, n, a), t = !0;
+ Vl(e, n, a), t = !0;
},
p(n, a) {
const o = {};
@@ -9599,250 +9773,262 @@ function eu(i) {
1024 && (o.width = /*width*/
n[10]), a[0] & /*open, value, show_group_name_only_one, height, interactive, initialValues, validationState, sliderElements, groupVisibility, disable_accordion, label, gradio, loading_status*/
522271 | a[2] & /*$$scope*/
- 16384 && (o.$$scope = { dirty: a, ctx: n }), e.$set(o);
+ 524288 && (o.$$scope = { dirty: a, ctx: n }), e.$set(o);
},
i(n) {
- t || (on(e.$$.fragment, n), t = !0);
+ t || (sn(e.$$.fragment, n), t = !0);
},
o(n) {
- Rn(e.$$.fragment, n), t = !1;
+ On(e.$$.fragment, n), t = !1;
},
d(n) {
- zl(e, n);
+ Hl(e, n);
}
};
}
-function Ka(i, e) {
+function nl(i, e) {
var t, n;
if (!e) return;
const a = (t = i.minimum) !== null && t !== void 0 ? t : 0, o = (n = i.maximum) !== null && n !== void 0 ? n : 100, l = Number(i.value), r = l <= a ? 0 : (l - a) * 100 / (o - a);
e.style.setProperty("--slider-progress", `${r}%`);
}
-function tu(i, e, t) {
+function ou(i, e, t) {
let n;
- var a = this && this.__awaiter || function(D, I, Q, re) {
- function qe(ft) {
- return ft instanceof Q ? ft : new Q(function(Et) {
- Et(ft);
+ var a = this && this.__awaiter || function(b, L, W, re) {
+ function Be(tt) {
+ return tt instanceof W ? tt : new W(function(Ie) {
+ Ie(tt);
});
}
- return new (Q || (Q = Promise))(function(ft, Et) {
- function Lt(Te) {
+ return new (W || (W = Promise))(function(tt, Ie) {
+ function Et(ht) {
try {
- Ie(re.next(Te));
+ Tt(re.next(ht));
} catch (At) {
- Et(At);
+ Ie(At);
}
}
- function Ot(Te) {
+ function Wt(ht) {
try {
- Ie(re.throw(Te));
+ Tt(re.throw(ht));
} catch (At) {
- Et(At);
+ Ie(At);
}
}
- function Ie(Te) {
- Te.done ? ft(Te.value) : qe(Te.value).then(Lt, Ot);
+ function Tt(ht) {
+ ht.done ? tt(ht.value) : Be(ht.value).then(Et, Wt);
}
- Ie((re = re.apply(D, I || [])).next());
+ Tt((re = re.apply(b, L || [])).next());
});
}, o;
- let { value: l = [] } = e, { label: r = void 0 } = e, { show_group_name_only_one: s = !0 } = e, { disable_accordion: u = !1 } = e, { visible: c = !0 } = e, { open: h = !0 } = e, { elem_id: d = "" } = e, { elem_classes: f = [] } = e, { container: v = !1 } = e, { scale: b = null } = e, { min_width: w = void 0 } = e, { width: k = void 0 } = e, { height: m = void 0 } = e, { loading_status: _ = void 0 } = e, { interactive: g = !0 } = e, { gradio: y } = e, F = {}, C = {}, T = {}, S = null, z = !1, N = {};
- function j(D) {
- if (D.minimum === void 0 && D.maximum === void 0) {
- T[D.name] !== !0 && (t(17, T[D.name] = !0, T), t(17, T = Object.assign({}, T)));
+ let { value: l = [] } = e, { label: r = void 0 } = e, { show_group_name_only_one: s = !0 } = e, { disable_accordion: u = !1 } = e, { visible: c = !0 } = e, { open: m = !0 } = e, { elem_id: d = "" } = e, { elem_classes: f = [] } = e, { container: v = !1 } = e, { scale: D = null } = e, { min_width: w = void 0 } = e, { width: F = void 0 } = e, { height: h = void 0 } = e, { loading_status: _ = void 0 } = e, { interactive: g = !0 } = e, { gradio: y } = e, $ = {}, C = {}, I = {}, T = null, M = !1, N = {};
+ function j(b) {
+ if (b.minimum === void 0 && b.maximum === void 0) {
+ I[b.name] !== !0 && (t(17, I[b.name] = !0, I), t(17, I = Object.assign({}, I)));
return;
}
- const I = Number(D.value);
- let Q = !0;
- D.minimum !== void 0 && I < D.minimum && (Q = !1), D.maximum !== void 0 && I > D.maximum && (Q = !1), T[D.name] !== Q && (t(17, T[D.name] = Q, T), t(17, T = Object.assign({}, T)));
+ const L = Number(b.value);
+ let W = !0;
+ b.minimum !== void 0 && L < b.minimum && (W = !1), b.maximum !== void 0 && L > b.maximum && (W = !1), I[b.name] !== W && (t(17, I[b.name] = W, I), t(17, I = Object.assign({}, I)));
}
function ke() {
if (Array.isArray(l)) {
- for (const D of l)
- if (Array.isArray(D.properties))
- for (const I of D.properties)
- I.component === "slider" && C[I.name] && Ka(I, C[I.name]);
+ for (const b of l)
+ if (Array.isArray(b.properties))
+ for (const L of b.properties)
+ L.component === "slider" && C[L.name] && nl(L, C[L.name]);
}
}
- function ue() {
- t(1, h = !h), h ? y.dispatch("expand") : y.dispatch("collapse");
+ function ce() {
+ t(1, m = !m), m ? y.dispatch("expand") : y.dispatch("collapse");
}
- function $e(D) {
- t(15, F[D] = !F[D], F);
+ function Ee(b) {
+ t(15, $[b] = !$[b], $);
}
- function _e(D) {
- if (!(!Array.isArray(l) || !D))
- for (const I of l) {
- if (!Array.isArray(I.properties)) continue;
- const Q = I.properties.find((re) => re.name === D);
- if (Q)
- return Q.value;
+ function pe(b) {
+ if (!(!Array.isArray(l) || !b))
+ for (const L of l) {
+ if (!Array.isArray(L.properties)) continue;
+ const W = L.properties.find((re) => re.name === b);
+ if (W)
+ return W.value;
}
}
- function ne(D, I) {
- var Q;
- if (T[I.name] === !1)
+ function ie(b, L) {
+ var W;
+ if (I[L.name] === !1)
return;
const re = {};
- let qe = I.value;
- !((Q = I.component) === null || Q === void 0) && Q.startsWith("number") || I.component === "slider" ? qe = Number(I.value) : I.component === "checkbox" && (qe = I.value), re[I.name] = qe, y.dispatch(D, re);
+ let Be = L.value;
+ !((W = L.component) === null || W === void 0) && W.startsWith("number") || L.component === "slider" ? Be = Number(L.value) : L.component === "checkbox" && (Be = L.value), re[L.name] = Be, y.dispatch(b, re);
}
- function X(D, I) {
+ function Q(b, L) {
return a(this, void 0, void 0, function* () {
- const Q = D.target.value;
+ const W = b.target.value;
t(0, l = l.map((re) => re.properties ? Object.assign(Object.assign({}, re), {
- properties: re.properties.map((qe) => qe.name === I.name ? Object.assign(Object.assign({}, qe), { value: Q }) : qe)
- }) : re)), yield Kn(), y.dispatch("change", l);
+ properties: re.properties.map((Be) => Be.name === L.name ? Object.assign(Object.assign({}, Be), { value: W }) : Be)
+ }) : re)), yield An(), y.dispatch("change", l);
});
}
- function se(D) {
- if (z) return;
- if (z = !0, !(D in N)) {
- z = !1;
+ function se() {
+ return a(this, void 0, void 0, function* () {
+ yield An(), y.dispatch("change", l);
+ });
+ }
+ function be(b) {
+ if (M) return;
+ if (M = !0, !(b in N)) {
+ M = !1;
return;
}
- let I = l.map((Q) => (Q.properties && (Q.properties = Q.properties.map((re) => re.name === D ? Object.assign(Object.assign({}, re), { value: N[D] }) : re)), Q));
- t(0, l = I), y.dispatch("undo", I), setTimeout(
+ let L = l.map((W) => (W.properties && (W.properties = W.properties.map((re) => re.name === b ? Object.assign(Object.assign({}, re), { value: N[b] }) : re)), W));
+ t(0, l = L), y.dispatch("undo", L), setTimeout(
() => {
- z = !1;
+ M = !1;
},
100
);
}
- function ve() {
- t(29, S = JSON.stringify(l)), Array.isArray(l) && l.forEach((D) => {
- Array.isArray(D.properties) && D.properties.forEach((I) => {
- t(18, N[I.name] = I.value, N);
+ function k() {
+ t(30, T = JSON.stringify(l)), Array.isArray(l) && l.forEach((b) => {
+ Array.isArray(b.properties) && b.properties.forEach((L) => {
+ t(18, N[L.name] = L.value, N);
});
}), setTimeout(ke, 50);
}
- js(() => {
- ve();
+ Zs(() => {
+ k();
});
- const $ = [[]], oe = () => y.dispatch("clear_status"), K = (D) => $e(D.group_name);
- function de(D, I) {
- D[I].value = this.value, t(0, l);
+ const oe = [[]], J = () => y.dispatch("clear_status"), he = (b) => Ee(b.group_name);
+ function A(b, L) {
+ b[L].value = this.value, t(0, l);
}
- const A = (D) => ne("change", D), Se = (D) => ne("input", D);
- function Ke(D, I) {
- D[I].value = this.value, t(0, l);
+ const Te = (b) => ie("change", b), Qe = (b) => ie("input", b);
+ function Dt(b, L) {
+ b[L].value = this.value, t(0, l);
}
- const Dt = (D) => ne("change", D), bt = (D) => ne("input", D);
- function yt(D, I) {
- D[I].value = this.checked, t(0, l);
+ const yt = (b) => ie("change", b), wt = (b) => ie("input", b);
+ function ft(b, L) {
+ b[L].value = this.checked, t(0, l);
}
- const _t = (D) => ne("change", D);
- function Qe(D, I) {
- D[I].value = _i(this.value), t(0, l);
+ const Je = (b) => ie("change", b);
+ function et(b, L) {
+ b[L].value = di(this.value), t(0, l);
}
- const Je = (D) => ne("change", D), dt = (D) => {
- j(D), ne("input", D);
+ const pt = (b) => ie("change", b), Gt = (b) => {
+ j(b), ie("input", b);
};
- function Ht(D, I) {
- D[I].value = _i(this.value), t(0, l);
+ function jt(b, L) {
+ b[L].value = di(this.value), t(0, l);
}
- function jt(D, I) {
- Os[D ? "unshift" : "push"](() => {
- C[I.name] = D, t(16, C);
+ function Ft(b, L) {
+ Ps[b ? "unshift" : "push"](() => {
+ C[L.name] = b, t(16, C);
});
}
- const wt = (D) => {
- j(D), Ka(D, C[D.name]), ne("input", D);
- }, Rt = (D) => ne("change", D);
- function It(D, I) {
- D[I].value = this.value, t(0, l);
+ const qt = (b) => {
+ j(b), nl(b, C[b.name]), ie("input", b);
+ }, Nt = (b) => ie("change", b);
+ function dn(b, L) {
+ b[L].value = this.value, t(0, l);
}
- const cn = (D) => ne("change", D), _n = (D, I) => X(I, D);
- function Ln(D, I) {
- D[I].value = this.__value, t(0, l);
+ const fn = (b) => ie("change", b), Nn = (b, L) => Q(L, b);
+ function Vt(b, L) {
+ b[L].value = this.__value, t(0, l);
}
- const Gt = (D) => ne("change", D), $t = (D) => se(D.name);
- return i.$$set = (D) => {
- "value" in D && t(0, l = D.value), "label" in D && t(2, r = D.label), "show_group_name_only_one" in D && t(3, s = D.show_group_name_only_one), "disable_accordion" in D && t(4, u = D.disable_accordion), "visible" in D && t(5, c = D.visible), "open" in D && t(1, h = D.open), "elem_id" in D && t(6, d = D.elem_id), "elem_classes" in D && t(27, f = D.elem_classes), "container" in D && t(7, v = D.container), "scale" in D && t(8, b = D.scale), "min_width" in D && t(9, w = D.min_width), "width" in D && t(10, k = D.width), "height" in D && t(11, m = D.height), "loading_status" in D && t(12, _ = D.loading_status), "interactive" in D && t(13, g = D.interactive), "gradio" in D && t(14, y = D.gradio);
+ const St = (b) => ie("change", b);
+ function $t(b, L, W) {
+ b[L].value = xs(oe[0][L][W], this.__value, this.checked), t(0, l);
+ }
+ const kt = () => se(), pn = (b) => be(b.name);
+ return i.$$set = (b) => {
+ "value" in b && t(0, l = b.value), "label" in b && t(2, r = b.label), "show_group_name_only_one" in b && t(3, s = b.show_group_name_only_one), "disable_accordion" in b && t(4, u = b.disable_accordion), "visible" in b && t(5, c = b.visible), "open" in b && t(1, m = b.open), "elem_id" in b && t(6, d = b.elem_id), "elem_classes" in b && t(28, f = b.elem_classes), "container" in b && t(7, v = b.container), "scale" in b && t(8, D = b.scale), "min_width" in b && t(9, w = b.min_width), "width" in b && t(10, F = b.width), "height" in b && t(11, h = b.height), "loading_status" in b && t(12, _ = b.loading_status), "interactive" in b && t(13, g = b.interactive), "gradio" in b && t(14, y = b.gradio);
}, i.$$.update = () => {
if (i.$$.dirty[0] & /*elem_classes*/
- 134217728 && t(19, n = ["propertysheet-wrapper", ...f]), i.$$.dirty[0] & /*open, height*/
+ 268435456 && t(19, n = ["propertysheet-wrapper", ...f]), i.$$.dirty[0] & /*open, height*/
2050, i.$$.dirty[0] & /*value, lastValue, groupVisibility, _a*/
- 805339137 && Array.isArray(l)) {
- if (JSON.stringify(l) !== S) {
- t(29, S = JSON.stringify(l));
- for (const D of l)
- F[D.group_name] === void 0 && t(15, F[D.group_name] = !0, F);
+ 1610645505 && Array.isArray(l)) {
+ if (JSON.stringify(l) !== T) {
+ t(30, T = JSON.stringify(l));
+ for (const b of l)
+ $[b.group_name] === void 0 && t(15, $[b.group_name] = !0, $);
}
- for (const D of l)
- if (Array.isArray(D.properties))
- for (const I of D.properties)
- (!(t(28, o = I.component) === null || o === void 0) && o.startsWith("number") || I.component === "slider") && j(I);
- Kn().then(ke);
+ for (const b of l)
+ if (Array.isArray(b.properties))
+ for (const L of b.properties)
+ (!(t(29, o = L.component) === null || o === void 0) && o.startsWith("number") || L.component === "slider") && j(L);
+ An().then(ke);
}
i.$$.dirty[0] & /*open, groupVisibility*/
- 32770 && h && F && Kn().then(ke);
+ 32770 && m && $ && An().then(ke);
}, [
l,
- h,
+ m,
r,
s,
u,
c,
d,
v,
- b,
+ D,
w,
- k,
- m,
+ F,
+ h,
_,
g,
y,
- F,
+ $,
C,
- T,
+ I,
N,
n,
j,
- ue,
- $e,
- _e,
- ne,
- X,
+ ce,
+ Ee,
+ pe,
+ ie,
+ Q,
se,
+ be,
f,
o,
- S,
- oe,
- K,
- de,
+ T,
+ J,
+ he,
A,
- Se,
- Ke,
+ Te,
+ Qe,
Dt,
- bt,
yt,
- _t,
- Qe,
- Je,
- dt,
- Ht,
- jt,
wt,
- Rt,
- It,
- cn,
- _n,
- Ln,
- $,
+ ft,
+ Je,
+ et,
+ pt,
Gt,
- $t
+ jt,
+ Ft,
+ qt,
+ Nt,
+ dn,
+ fn,
+ Nn,
+ Vt,
+ oe,
+ St,
+ $t,
+ kt,
+ pn
];
}
-class EE extends Is {
+class B2 extends Ns {
constructor(e) {
- super(), Ps(
+ super(), js(
this,
e,
- tu,
- eu,
- Us,
+ ou,
+ lu,
+ Vs,
{
value: 0,
label: 2,
@@ -9851,7 +10037,7 @@ class EE extends Is {
visible: 5,
open: 1,
elem_id: 6,
- elem_classes: 27,
+ elem_classes: 28,
container: 7,
scale: 8,
min_width: 9,
@@ -9867,5 +10053,5 @@ class EE extends Is {
}
}
export {
- EE as default
+ B2 as default
};
diff --git a/src/backend/gradio_propertysheet/templates/component/style.css b/src/backend/gradio_propertysheet/templates/component/style.css
index f4214c5728f2f7ba5de6ba7933986ab90c783c59..716b6e2fa27da9d411b5a48ac9a810c37eb7c1af 100644
--- a/src/backend/gradio_propertysheet/templates/component/style.css
+++ b/src/backend/gradio_propertysheet/templates/component/style.css
@@ -1 +1 @@
-.block.svelte-239wnu{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.fullscreen.svelte-239wnu{border-radius:0}.auto-margin.svelte-239wnu{margin-left:auto;margin-right:auto}.block.border_focus.svelte-239wnu{border-color:var(--color-accent)}.block.border_contrast.svelte-239wnu{border-color:var(--body-text-color)}.padded.svelte-239wnu{padding:var(--block-padding)}.hidden.svelte-239wnu{display:none}.flex.svelte-239wnu{display:flex;flex-direction:column}.hide-container.svelte-239wnu:not(.fullscreen){margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}.resize-handle.svelte-239wnu{position:absolute;bottom:0;right:0;width:10px;height:10px;fill:var(--block-border-color);cursor:nwse-resize}.fullscreen.svelte-239wnu{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000;overflow:auto}.animating.svelte-239wnu{animation:svelte-239wnu-pop-out .1s ease-out forwards}@keyframes svelte-239wnu-pop-out{0%{position:fixed;top:var(--start-top);left:var(--start-left);width:var(--start-width);height:var(--start-height);z-index:100}to{position:fixed;top:0vh;left:0vw;width:100vw;height:100vh;z-index:1000}}.placeholder.svelte-239wnu{border-radius:var(--block-radius);border-width:var(--block-border-width);border-color:var(--block-border-color);border-style:dashed}Tables */ table,tr,td,th{margin-top:var(--spacing-sm);margin-bottom:var(--spacing-sm);padding:var(--spacing-xl)}.md code,.md pre{background:none;font-family:var(--font-mono);font-size:var(--text-sm);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:2;tab-size:2;-webkit-hyphens:none;hyphens:none}.md pre[class*=language-]::selection,.md pre[class*=language-] ::selection,.md code[class*=language-]::selection,.md code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}.md pre{padding:1em;margin:.5em 0;overflow:auto;position:relative;margin-top:var(--spacing-sm);margin-bottom:var(--spacing-sm);box-shadow:none;border:none;border-radius:var(--radius-md);background:var(--code-background-fill);padding:var(--spacing-xxl);font-family:var(--font-mono);text-shadow:none;border-radius:var(--radius-sm);white-space:nowrap;display:block;white-space:pre}.md :not(pre)>code{padding:.1em;border-radius:var(--radius-xs);white-space:normal;background:var(--code-background-fill);border:1px solid var(--panel-border-color);padding:var(--spacing-xxs) var(--spacing-xs)}.md .token.comment,.md .token.prolog,.md .token.doctype,.md .token.cdata{color:#708090}.md .token.punctuation{color:#999}.md .token.namespace{opacity:.7}.md .token.property,.md .token.tag,.md .token.boolean,.md .token.number,.md .token.constant,.md .token.symbol,.md .token.deleted{color:#905}.md .token.selector,.md .token.attr-name,.md .token.string,.md .token.char,.md .token.builtin,.md .token.inserted{color:#690}.md .token.atrule,.md .token.attr-value,.md .token.keyword{color:#07a}.md .token.function,.md .token.class-name{color:#dd4a68}.md .token.regex,.md .token.important,.md .token.variable{color:#e90}.md .token.important,.md .token.bold{font-weight:700}.md .token.italic{font-style:italic}.md .token.entity{cursor:help}.dark .md .token.comment,.dark .md .token.prolog,.dark .md .token.cdata{color:#5c6370}.dark .md .token.doctype,.dark .md .token.punctuation,.dark .md .token.entity{color:#abb2bf}.dark .md .token.attr-name,.dark .md .token.class-name,.dark .md .token.boolean,.dark .md .token.constant,.dark .md .token.number,.dark .md .token.atrule{color:#d19a66}.dark .md .token.keyword{color:#c678dd}.dark .md .token.property,.dark .md .token.tag,.dark .md .token.symbol,.dark .md .token.deleted,.dark .md .token.important{color:#e06c75}.dark .md .token.selector,.dark .md .token.string,.dark .md .token.char,.dark .md .token.builtin,.dark .md .token.inserted,.dark .md .token.regex,.dark .md .token.attr-value,.dark .md .token.attr-value>.token.punctuation{color:#98c379}.dark .md .token.variable,.dark .md .token.operator,.dark .md .token.function{color:#61afef}.dark .md .token.url{color:#56b6c2}span.svelte-1m32c2s div[class*=code_wrap]{position:relative}span.svelte-1m32c2s span.katex{font-size:var(--text-lg);direction:ltr}span.svelte-1m32c2s div[class*=code_wrap]>button{z-index:1;cursor:pointer;border-bottom-left-radius:var(--radius-sm);padding:var(--spacing-md);width:25px;height:25px;position:absolute;right:0}span.svelte-1m32c2s .check{opacity:0;z-index:var(--layer-top);transition:opacity .2s;background:var(--code-background-fill);color:var(--body-text-color);position:absolute;top:var(--size-1-5);left:var(--size-1-5)}span.svelte-1m32c2s p:not(:first-child){margin-top:var(--spacing-xxl)}span.svelte-1m32c2s .md-header-anchor{margin-left:-25px;padding-right:8px;line-height:1;color:var(--body-text-color-subdued);opacity:0}span.svelte-1m32c2s h1:hover .md-header-anchor,span.svelte-1m32c2s h2:hover .md-header-anchor,span.svelte-1m32c2s h3:hover .md-header-anchor,span.svelte-1m32c2s h4:hover .md-header-anchor,span.svelte-1m32c2s h5:hover .md-header-anchor,span.svelte-1m32c2s h6:hover .md-header-anchor{opacity:1}span.md.svelte-1m32c2s .md-header-anchor>svg{color:var(--body-text-color-subdued)}span.svelte-1m32c2s table{word-break:break-word}div.svelte-17qq50w>.md.prose{font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}div.svelte-17qq50w>.md.prose *{color:var(--block-info-text-color)}div.svelte-17qq50w{margin-bottom:var(--spacing-md)}span.has-info.svelte-zgrq3{margin-bottom:var(--spacing-xs)}span.svelte-zgrq3:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-zgrq3{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}span[dir=rtl].svelte-zgrq3{display:block}.hide.svelte-zgrq3{margin:0;height:0}label.svelte-13ao5pu.svelte-13ao5pu{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--block-label-border-color);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-13ao5pu.svelte-13ao5pu{border-top-left-radius:0}label.float.svelte-13ao5pu.svelte-13ao5pu{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-13ao5pu.svelte-13ao5pu:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-13ao5pu.svelte-13ao5pu{height:0}span.svelte-13ao5pu.svelte-13ao5pu{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-13ao5pu.svelte-13ao5pu{box-shadow:none;border-width:0;background:transparent;overflow:visible}label[dir=rtl].svelte-13ao5pu.svelte-13ao5pu{border:var(--block-label-border-width) solid var(--block-label-border-color);border-top:none;border-right:none;border-bottom-left-radius:var(--block-radius);border-bottom-right-radius:var(--block-label-radius);border-top-left-radius:var(--block-label-radius)}label[dir=rtl].svelte-13ao5pu span.svelte-13ao5pu{margin-left:var(--size-2);margin-right:0}button.svelte-qgco6m{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-xs);color:var(--block-label-text-color);border:1px solid transparent;padding:var(--spacing-xxs)}button.svelte-qgco6m:hover{background-color:var(--background-fill-secondary)}button[disabled].svelte-qgco6m{opacity:.5;box-shadow:none}button[disabled].svelte-qgco6m:hover{cursor:not-allowed}.padded.svelte-qgco6m{background:var(--bg-color)}button.svelte-qgco6m:hover,button.highlight.svelte-qgco6m{cursor:pointer;color:var(--color-accent)}.padded.svelte-qgco6m:hover{color:var(--block-label-text-color)}span.svelte-qgco6m{padding:0 1px;font-size:10px}div.svelte-qgco6m{display:flex;align-items:center;justify-content:center;transition:filter .2s ease-in-out}.x-small.svelte-qgco6m{width:10px;height:10px}.small.svelte-qgco6m{width:14px;height:14px}.medium.svelte-qgco6m{width:20px;height:20px}.large.svelte-qgco6m{width:22px;height:22px}.pending.svelte-qgco6m{animation:svelte-qgco6m-flash .5s infinite}@keyframes svelte-qgco6m-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.transparent.svelte-qgco6m{background:transparent;border:none;box-shadow:none}.empty.svelte-3w3rth{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-3w3rth{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-3w3rth{min-height:calc(var(--size-32) - 20px)}.large.svelte-3w3rth{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-3w3rth{margin-top:0}.small_parent.svelte-3w3rth{min-height:100%!important}.dropdown-arrow.svelte-145leq6,.dropdown-arrow.svelte-ihhdbf{fill:currentColor}.circle.svelte-ihhdbf{fill:currentColor;opacity:.1}svg.svelte-pb9pol{animation:svelte-pb9pol-spin 1.5s linear infinite}@keyframes svelte-pb9pol-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}h2.svelte-1xg7h5n{font-size:var(--text-xl)!important}p.svelte-1xg7h5n,h2.svelte-1xg7h5n{white-space:pre-line}.wrap.svelte-1xg7h5n{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3);text-align:center;margin:auto var(--spacing-lg)}.or.svelte-1xg7h5n{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-1xg7h5n{width:30px;margin-bottom:var(--spacing-lg)}@media (--screen-md){.wrap.svelte-1xg7h5n{font-size:var(--text-lg)}}.hovered.svelte-1xg7h5n{color:var(--color-accent)}div.svelte-q32hvf{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;align-items:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;color:var(--block-label-text-color);flex-shrink:0}.show_border.svelte-q32hvf{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl);box-shadow:var(--shadow-drop)}.source-selection.svelte-15ls1gu{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--border-color-primary);width:100%;margin-left:auto;margin-right:auto;height:var(--size-10)}.icon.svelte-15ls1gu{width:22px;height:22px;margin:var(--spacing-lg) var(--spacing-xs);padding:var(--spacing-xs);color:var(--neutral-400);border-radius:var(--radius-md)}.selected.svelte-15ls1gu{color:var(--color-accent)}.icon.svelte-15ls1gu:hover,.icon.svelte-15ls1gu:focus{color:var(--color-accent)}.icon-button-wrapper.svelte-109se4{display:flex;flex-direction:row;align-items:center;justify-content:center;z-index:var(--layer-3);gap:var(--spacing-sm);box-shadow:var(--shadow-drop);border:1px solid var(--border-color-primary);background:var(--block-background-fill);padding:var(--spacing-xxs)}.icon-button-wrapper.hide-top-corner.svelte-109se4{border-top:none;border-right:none;border-radius:var(--block-label-right-radius)}.icon-button-wrapper.display-top-corner.svelte-109se4{border-radius:var(--radius-sm) 0 0 var(--radius-sm);top:var(--spacing-sm);right:-1px}.icon-button-wrapper.svelte-109se4:not(.top-panel){border:1px solid var(--border-color-primary);border-radius:var(--radius-sm)}.top-panel.svelte-109se4{position:absolute;top:var(--block-label-margin);right:var(--block-label-margin);margin:0}.icon-button-wrapper.svelte-109se4 button{margin:var(--spacing-xxs);border-radius:var(--radius-xs);position:relative}.icon-button-wrapper.svelte-109se4 a.download-link:not(:last-child),.icon-button-wrapper.svelte-109se4 button:not(:last-child){margin-right:var(--spacing-xxs)}.icon-button-wrapper.svelte-109se4 a.download-link:not(:last-child):not(.no-border *):after,.icon-button-wrapper.svelte-109se4 button:not(:last-child):not(.no-border *):after{content:"";position:absolute;right:-4.5px;top:15%;height:70%;width:1px;background-color:var(--border-color-primary)}.icon-button-wrapper.svelte-109se4>*{height:100%}svg.svelte-43sxxs.svelte-43sxxs{width:var(--size-20);height:var(--size-20)}svg.svelte-43sxxs path.svelte-43sxxs{fill:var(--loader-color)}div.svelte-43sxxs.svelte-43sxxs{z-index:var(--layer-2)}.margin.svelte-43sxxs.svelte-43sxxs{margin:var(--size-4)}.wrap.svelte-17v219f.svelte-17v219f{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-2);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);max-height:var(--size-screen-h);overflow:hidden}.wrap.center.svelte-17v219f.svelte-17v219f{top:0;right:0;left:0}.wrap.default.svelte-17v219f.svelte-17v219f{top:0;right:0;bottom:0;left:0}.hide.svelte-17v219f.svelte-17v219f{opacity:0;pointer-events:none}.generating.svelte-17v219f.svelte-17v219f{animation:svelte-17v219f-pulseStart 1s cubic-bezier(.4,0,.6,1),svelte-17v219f-pulse 2s cubic-bezier(.4,0,.6,1) 1s infinite;border:2px solid var(--color-accent);background:transparent;z-index:var(--layer-1);pointer-events:none}.translucent.svelte-17v219f.svelte-17v219f{background:none}@keyframes svelte-17v219f-pulseStart{0%{opacity:0}to{opacity:1}}@keyframes svelte-17v219f-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-17v219f.svelte-17v219f{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-17v219f.svelte-17v219f{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-17v219f.svelte-17v219f{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-17v219f.svelte-17v219f{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-17v219f.svelte-17v219f{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-17v219f.svelte-17v219f{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-17v219f.svelte-17v219f{position:absolute;bottom:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-17v219f.svelte-17v219f{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-17v219f.svelte-17v219f{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.minimal.svelte-17v219f.svelte-17v219f{pointer-events:none}.minimal.svelte-17v219f .progress-text.svelte-17v219f{background:var(--block-background-fill)}.border.svelte-17v219f.svelte-17v219f{border:1px solid var(--border-color-primary)}.clear-status.svelte-17v219f.svelte-17v219f{position:absolute;display:flex;top:var(--size-2);right:var(--size-2);justify-content:flex-end;gap:var(--spacing-sm);z-index:var(--layer-1)}.toast-body.svelte-1pgj5gs{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-1pgj5gs{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-1pgj5gs{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-1pgj5gs{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-1pgj5gs{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-1pgj5gs{border:1px solid var(--color-grey-700);background:var (--color-grey-50)}.dark .toast-body.info.svelte-1pgj5gs{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-body.success.svelte-1pgj5gs{border:1px solid var(--color-green-700);background:var(--color-green-50)}.dark .toast-body.success.svelte-1pgj5gs{border:1px solid var(--color-green-500);background-color:var(--color-grey-950)}.toast-title.svelte-1pgj5gs{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm)}.toast-title.error.svelte-1pgj5gs{color:var(--color-red-700)}.dark .toast-title.error.svelte-1pgj5gs{color:var(--color-red-50)}.toast-title.warning.svelte-1pgj5gs{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-1pgj5gs{color:var(--color-yellow-50)}.toast-title.info.svelte-1pgj5gs{color:var(--color-grey-700)}.dark .toast-title.info.svelte-1pgj5gs{color:var(--color-grey-50)}.toast-title.success.svelte-1pgj5gs{color:var(--color-green-700)}.dark .toast-title.success.svelte-1pgj5gs{color:var(--color-green-50)}.toast-close.svelte-1pgj5gs{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-1pgj5gs{color:var(--color-red-700)}.dark .toast-close.error.svelte-1pgj5gs{color:var(--color-red-500)}.toast-close.warning.svelte-1pgj5gs{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-1pgj5gs{color:var(--color-yellow-500)}.toast-close.info.svelte-1pgj5gs{color:var(--color-grey-700)}.dark .toast-close.info.svelte-1pgj5gs{color:var(--color-grey-500)}.toast-close.success.svelte-1pgj5gs{color:var(--color-green-700)}.dark .toast-close.success.svelte-1pgj5gs{color:var(--color-green-500)}.toast-text.svelte-1pgj5gs{font-size:var(--text-lg);word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.toast-text.error.svelte-1pgj5gs{color:var(--color-red-700)}.dark .toast-text.error.svelte-1pgj5gs{color:var(--color-red-50)}.toast-text.warning.svelte-1pgj5gs{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-1pgj5gs{color:var(--color-yellow-50)}.toast-text.info.svelte-1pgj5gs{color:var(--color-grey-700)}.dark .toast-text.info.svelte-1pgj5gs{color:var(--color-grey-50)}.toast-text.success.svelte-1pgj5gs{color:var(--color-green-700)}.dark .toast-text.success.svelte-1pgj5gs{color:var(--color-green-50)}.toast-details.svelte-1pgj5gs{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-1pgj5gs{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-1pgj5gs{color:var(--color-red-700)}.dark .toast-icon.error.svelte-1pgj5gs{color:var(--color-red-500)}.toast-icon.warning.svelte-1pgj5gs{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-1pgj5gs{color:var(--color-yellow-500)}.toast-icon.info.svelte-1pgj5gs{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-1pgj5gs{color:var(--color-grey-500)}.toast-icon.success.svelte-1pgj5gs{color:var(--color-green-700)}.dark .toast-icon.success.svelte-1pgj5gs{color:var(--color-green-500)}@keyframes svelte-1pgj5gs-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-1pgj5gs{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-1pgj5gs-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-1pgj5gs{background:var(--color-red-700)}.dark .timer.error.svelte-1pgj5gs{background:var(--color-red-500)}.timer.warning.svelte-1pgj5gs{background:var(--color-yellow-700)}.dark .timer.warning.svelte-1pgj5gs{background:var(--color-yellow-500)}.timer.info.svelte-1pgj5gs{background:var(--color-grey-700)}.dark .timer.info.svelte-1pgj5gs{background:var(--color-grey-500)}.timer.success.svelte-1pgj5gs{background:var(--color-green-700)}.dark .timer.success.svelte-1pgj5gs{background:var(--color-green-500)}.hidden.svelte-1pgj5gs{display:none}.toast-text.svelte-1pgj5gs a{text-decoration:underline}.toast-wrap.svelte-gatr8h{display:flex;position:fixed;top:var(--size-4);right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (--screen-sm){.toast-wrap.svelte-gatr8h{width:calc(var(--size-96) + var(--size-10))}}.streaming-bar.svelte-ga0jj6{position:absolute;bottom:0;left:0;right:0;height:4px;background-color:var(--primary-600);animation:svelte-ga0jj6-countdown linear forwards;z-index:1}@keyframes svelte-ga0jj6-countdown{0%{transform:translate(0)}to{transform:translate(-100%)}}:host{display:flex;flex-direction:column;height:100%}.propertysheet-wrapper{overflow:hidden!important;display:flex;flex-direction:column;flex-grow:1;padding:var(--spacing-lg)!important}.accordion-header.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:flex;justify-content:space-between;align-items:center;width:100%;cursor:pointer;padding:var(--block-title-padding);background:var(--block-title-background-fill);color:var(--block-title-text-color);border-width:0;flex-shrink:0}.accordion-icon.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{margin-left:auto}.content-wrapper.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{flex-grow:1;min-height:0}.container.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{overflow-y:auto;height:auto;max-height:var(--sheet-max-height, 500px);border-radius:0!important;border:1px solid var(--border-color-primary);border-top:var(--show-group-name);border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg);background-color:var(--background-fill-secondary)}.closed.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:none}.group-header.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:flex;justify-content:space-between;align-items:center;width:100%;padding:var(--spacing-sm) var(--spacing-md);background-color:var(--input-background-fill);color:var(--body-text-color);text-align:left;cursor:pointer;font-size:var(--text-md);font-weight:var(--font-weight-bold);border:1px solid var(--border-color-primary)}.properties-grid.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:grid;grid-template-columns:1fr 2fr;gap:0;padding:0}.prop-label.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj,.prop-control.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{padding:var(--spacing-sm) var(--spacing-md);display:flex;align-items:center;border-bottom:1px solid var(--background-fill-secondary)}.prop-label.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{background-color:var(--background-fill-primary);color:var(--body-text-color);opacity:3.7;font-weight:var(--font-weight-semibold);font-size:var(--text-xs);text-align:right;justify-content:flex-end;word-break:break-word}.prop-control.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{gap:var(--spacing-sm)}.properties-grid.svelte-1eiz7kj>.svelte-1eiz7kj.svelte-1eiz7kj:nth-last-child(-n+2){border-bottom:none}.prop-control.svelte-1eiz7kj input[type=text].svelte-1eiz7kj.svelte-1eiz7kj,.prop-control.svelte-1eiz7kj input[type=password].svelte-1eiz7kj.svelte-1eiz7kj,.prop-control.svelte-1eiz7kj input[type=number].svelte-1eiz7kj.svelte-1eiz7kj{background-color:var(--input-background-fill);border:var(--input-border-width) solid var(--border-color-primary);box-shadow:var(--input-shadow);color:var(--input-text-color);font-size:var(--input-text-size);border-radius:0;width:100%;padding-top:var(--spacing-1);padding-bottom:var(--spacing-1);padding-left:var(--spacing-md);padding-right:var(--spacing-3)}.prop-control.svelte-1eiz7kj input[type=text].svelte-1eiz7kj.svelte-1eiz7kj:focus,.prop-control.svelte-1eiz7kj input[type=number].svelte-1eiz7kj.svelte-1eiz7kj:focus{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus);background-color:var(--input-background-fill-focus);outline:none}.dropdown-wrapper.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{position:relative;width:100%}.dropdown-wrapper.svelte-1eiz7kj select.svelte-1eiz7kj.svelte-1eiz7kj{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--input-background-fill);border:var(--input-border-width) solid var(--border-color-primary);box-shadow:var(--input-shadow);color:var(--input-text-color);font-size:var(--input-text-size);width:100%;cursor:pointer;border-radius:0;padding-top:var(--spacing-1);padding-bottom:var(--spacing-1);padding-left:var(--spacing-md);padding-right:calc(var(--spacing-3) + 1.2em)}.dropdown-arrow-icon.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{position:absolute;top:50%;right:var(--spacing-3);transform:translateY(-50%);width:1em;height:1em;pointer-events:none;z-index:1;background-color:var(--body-text-color-subdued);-webkit-mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 8l4 4 4-4'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 8l4 4 4-4'%3e%3c/svg%3e")}.dropdown-wrapper.svelte-1eiz7kj select.svelte-1eiz7kj.svelte-1eiz7kj:focus{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus);background-color:var(--input-background-fill-focus);outline:none}.dropdown-wrapper.svelte-1eiz7kj select option.svelte-1eiz7kj.svelte-1eiz7kj{background:var(--input-background-fill);color:var(--body-text-color)}.prop-control.svelte-1eiz7kj input[type=checkbox].svelte-1eiz7kj.svelte-1eiz7kj{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:var(--size-4);height:var(--size-4);border-radius:5px!important;border:1px solid var(--checkbox-border-color);background-color:var(--checkbox-background-color);box-shadow:var(--checkbox-shadow);cursor:pointer;margin:0;transition:background-color .2s,border-color .2s}.prop-control.svelte-1eiz7kj input[type=checkbox].svelte-1eiz7kj.svelte-1eiz7kj:hover{border-color:var(--checkbox-border-color-hover);background-color:var(--checkbox-background-color-hover)}.prop-control.svelte-1eiz7kj input[type=checkbox].svelte-1eiz7kj.svelte-1eiz7kj:focus{border-color:var(--checkbox-border-color-focus);background-color:var(--checkbox-background-color-focus);outline:none}.prop-control.svelte-1eiz7kj input[type=checkbox].svelte-1eiz7kj.svelte-1eiz7kj:checked{background-color:var(--checkbox-background-color-selected);border-color:var(--checkbox-border-color-focus)}.prop-control.svelte-1eiz7kj input[type=checkbox].svelte-1eiz7kj.svelte-1eiz7kj:checked:after{content:"";position:absolute;display:block;top:50%;left:50%;width:4px;height:8px;border:solid var(--checkbox-label-text-color-selected);border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}.slider-container.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:flex;align-items:center;gap:var(--spacing-md);width:100%}.slider-container.svelte-1eiz7kj input[type=range].svelte-1eiz7kj.svelte-1eiz7kj{--slider-progress:0%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer;width:100%}.slider-container.svelte-1eiz7kj input[type=range].svelte-1eiz7kj.svelte-1eiz7kj::-webkit-slider-runnable-track{height:8px;border-radius:var(--radius-lg);background:linear-gradient(to right,var(--slider-color) var(--slider-progress),var(--input-background-fill) var(--slider-progress))}.slider-container.svelte-1eiz7kj input[type=range].svelte-1eiz7kj.svelte-1eiz7kj::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:-4px;background-color:#fff;border-radius:50%;height:16px;width:16px;border:1px solid var(--border-color-primary);box-shadow:var(--shadow-drop)}.slider-container.svelte-1eiz7kj input[type=range].svelte-1eiz7kj.svelte-1eiz7kj::-moz-range-track{height:8px;border-radius:var(--radius-lg);background:linear-gradient(to right,var(--slider-color) var(--slider-progress),var(--input-background-fill) var(--slider-progress))}.slider-container.svelte-1eiz7kj input[type=range].svelte-1eiz7kj.svelte-1eiz7kj::-moz-range-thumb{background-color:#fff;border-radius:50%;height:16px;width:16px;border:1px solid var(--border-color-primary);box-shadow:var(--shadow-drop)}.slider-value.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{min-width:40px;text-align:right;font-family:var(--font-mono);font-size:var(--text-xs)}.prop-label-wrapper.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:flex;justify-content:flex-end;align-items:center;gap:var(--spacing-sm);width:100%}.tooltip-container.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{position:relative;display:inline-flex;align-items:center;justify-content:center}.tooltip-icon.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background-color:var(--body-text-color-subdued);color:var(--background-fill-primary);font-size:10px;font-weight:700;cursor:help;-webkit-user-select:none;user-select:none}.tooltip-text.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{visibility:hidden;width:200px;background-color:var(--body-text-color);color:var(--background-fill-primary);text-align:center;border-radius:var(--radius-md);padding:var(--spacing-md);position:absolute;z-index:50;bottom:-50%;left:100%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip-container.svelte-1eiz7kj:hover .tooltip-text.svelte-1eiz7kj.svelte-1eiz7kj{visibility:visible;opacity:1}.color-picker-container.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:flex;align-items:center;gap:var(--spacing-md);width:100%}.color-picker-input.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{width:50px;height:28px;background-color:transparent;border:1px solid var(--border-color-primary);border-radius:var(--radius-sm);cursor:pointer;padding:0}.color-picker-input.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj::-webkit-color-swatch-wrapper{padding:2px}.color-picker-input.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj::-moz-padding{padding:2px}.color-picker-input.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj::-webkit-color-swatch{border:none;border-radius:var(--radius-sm)}.color-picker-input.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj::-moz-color-swatch{border:none;border-radius:var(--radius-sm)}.color-picker-value.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{font-family:var(--font-mono);font-size:var(--text-sm);color:var(--body-text-color-subdued)}.prop-control.svelte-1eiz7kj input.invalid.svelte-1eiz7kj.svelte-1eiz7kj{border-color:var(--error-border-color, red)!important;box-shadow:0 0 0 1px var(--error-border-color, red)!important}.reset-button-prop.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:flex;align-items:center;justify-content:center;background:none;border:none;border-left:1px solid var(--border-color-primary);cursor:pointer;color:var(--body-text-color-subdued);font-size:var(--text-lg);padding:0 var(--spacing-2);visibility:hidden;opacity:0;transition:opacity .15s ease-in-out,color .15s ease-in-out}.reset-button-prop.visible.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{visibility:visible;opacity:1}.reset-button-prop.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj:hover{color:var(--body-text-color);background-color:var(--background-fill-secondary-hover)}.reset-button-prop.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj:disabled{color:var(--body-text-color-subdued)!important;opacity:.5;cursor:not-allowed;background-color:transparent!important}.prop-control.svelte-1eiz7kj .disabled.svelte-1eiz7kj.svelte-1eiz7kj{opacity:.5;pointer-events:none;cursor:not-allowed}.prop-control.svelte-1eiz7kj .disabled input.svelte-1eiz7kj.svelte-1eiz7kj{cursor:not-allowed}.reset-button-prop.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj:disabled{opacity:.3;cursor:not-allowed;background-color:transparent!important}.radio-group.svelte-1eiz7kj.svelte-1eiz7kj.svelte-1eiz7kj{display:flex;flex-wrap:wrap;gap:var(--spacing-sm);width:100%}.radio-item.svelte-1eiz7kj input[type=radio].svelte-1eiz7kj.svelte-1eiz7kj{display:none}.radio-item.svelte-1eiz7kj label.svelte-1eiz7kj.svelte-1eiz7kj{display:inline-block;padding:var(--spacing-xs) var(--spacing-md);border:1px solid var(--border-color-primary);border-radius:5px!important;background-color:var(--input-background-fill);color:var(--body-text-color);font-size:var(--text-xs);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .2s,border-color .2s,color .2s}.radio-group.disabled.svelte-1eiz7kj .radio-item label.svelte-1eiz7kj.svelte-1eiz7kj{cursor:not-allowed}.radio-item.svelte-1eiz7kj input[type=radio].svelte-1eiz7kj:hover+label.svelte-1eiz7kj{border-color:var(--border-color-accent-subdued);background-color:var(--background-fill-secondary-hover)}.radio-item.svelte-1eiz7kj input[type=radio].svelte-1eiz7kj:checked+label.svelte-1eiz7kj{background-color:var(--primary-500);border-color:var(--primary-500);color:#fff;font-weight:var(--font-weight-bold)}.radio-group.disabled.svelte-1eiz7kj .radio-item input[type=radio].svelte-1eiz7kj:checked+label.svelte-1eiz7kj{background-color:var(--neutral-300);border-color:var(--neutral-300);color:var(--neutral-500)}
+.block.svelte-239wnu{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.fullscreen.svelte-239wnu{border-radius:0}.auto-margin.svelte-239wnu{margin-left:auto;margin-right:auto}.block.border_focus.svelte-239wnu{border-color:var(--color-accent)}.block.border_contrast.svelte-239wnu{border-color:var(--body-text-color)}.padded.svelte-239wnu{padding:var(--block-padding)}.hidden.svelte-239wnu{display:none}.flex.svelte-239wnu{display:flex;flex-direction:column}.hide-container.svelte-239wnu:not(.fullscreen){margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}.resize-handle.svelte-239wnu{position:absolute;bottom:0;right:0;width:10px;height:10px;fill:var(--block-border-color);cursor:nwse-resize}.fullscreen.svelte-239wnu{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000;overflow:auto}.animating.svelte-239wnu{animation:svelte-239wnu-pop-out .1s ease-out forwards}@keyframes svelte-239wnu-pop-out{0%{position:fixed;top:var(--start-top);left:var(--start-left);width:var(--start-width);height:var(--start-height);z-index:100}to{position:fixed;top:0vh;left:0vw;width:100vw;height:100vh;z-index:1000}}.placeholder.svelte-239wnu{border-radius:var(--block-radius);border-width:var(--block-border-width);border-color:var(--block-border-color);border-style:dashed}Tables */ table,tr,td,th{margin-top:var(--spacing-sm);margin-bottom:var(--spacing-sm);padding:var(--spacing-xl)}.md code,.md pre{background:none;font-family:var(--font-mono);font-size:var(--text-sm);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:2;tab-size:2;-webkit-hyphens:none;hyphens:none}.md pre[class*=language-]::selection,.md pre[class*=language-] ::selection,.md code[class*=language-]::selection,.md code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}.md pre{padding:1em;margin:.5em 0;overflow:auto;position:relative;margin-top:var(--spacing-sm);margin-bottom:var(--spacing-sm);box-shadow:none;border:none;border-radius:var(--radius-md);background:var(--code-background-fill);padding:var(--spacing-xxl);font-family:var(--font-mono);text-shadow:none;border-radius:var(--radius-sm);white-space:nowrap;display:block;white-space:pre}.md :not(pre)>code{padding:.1em;border-radius:var(--radius-xs);white-space:normal;background:var(--code-background-fill);border:1px solid var(--panel-border-color);padding:var(--spacing-xxs) var(--spacing-xs)}.md .token.comment,.md .token.prolog,.md .token.doctype,.md .token.cdata{color:#708090}.md .token.punctuation{color:#999}.md .token.namespace{opacity:.7}.md .token.property,.md .token.tag,.md .token.boolean,.md .token.number,.md .token.constant,.md .token.symbol,.md .token.deleted{color:#905}.md .token.selector,.md .token.attr-name,.md .token.string,.md .token.char,.md .token.builtin,.md .token.inserted{color:#690}.md .token.atrule,.md .token.attr-value,.md .token.keyword{color:#07a}.md .token.function,.md .token.class-name{color:#dd4a68}.md .token.regex,.md .token.important,.md .token.variable{color:#e90}.md .token.important,.md .token.bold{font-weight:700}.md .token.italic{font-style:italic}.md .token.entity{cursor:help}.dark .md .token.comment,.dark .md .token.prolog,.dark .md .token.cdata{color:#5c6370}.dark .md .token.doctype,.dark .md .token.punctuation,.dark .md .token.entity{color:#abb2bf}.dark .md .token.attr-name,.dark .md .token.class-name,.dark .md .token.boolean,.dark .md .token.constant,.dark .md .token.number,.dark .md .token.atrule{color:#d19a66}.dark .md .token.keyword{color:#c678dd}.dark .md .token.property,.dark .md .token.tag,.dark .md .token.symbol,.dark .md .token.deleted,.dark .md .token.important{color:#e06c75}.dark .md .token.selector,.dark .md .token.string,.dark .md .token.char,.dark .md .token.builtin,.dark .md .token.inserted,.dark .md .token.regex,.dark .md .token.attr-value,.dark .md .token.attr-value>.token.punctuation{color:#98c379}.dark .md .token.variable,.dark .md .token.operator,.dark .md .token.function{color:#61afef}.dark .md .token.url{color:#56b6c2}span.svelte-1m32c2s div[class*=code_wrap]{position:relative}span.svelte-1m32c2s span.katex{font-size:var(--text-lg);direction:ltr}span.svelte-1m32c2s div[class*=code_wrap]>button{z-index:1;cursor:pointer;border-bottom-left-radius:var(--radius-sm);padding:var(--spacing-md);width:25px;height:25px;position:absolute;right:0}span.svelte-1m32c2s .check{opacity:0;z-index:var(--layer-top);transition:opacity .2s;background:var(--code-background-fill);color:var(--body-text-color);position:absolute;top:var(--size-1-5);left:var(--size-1-5)}span.svelte-1m32c2s p:not(:first-child){margin-top:var(--spacing-xxl)}span.svelte-1m32c2s .md-header-anchor{margin-left:-25px;padding-right:8px;line-height:1;color:var(--body-text-color-subdued);opacity:0}span.svelte-1m32c2s h1:hover .md-header-anchor,span.svelte-1m32c2s h2:hover .md-header-anchor,span.svelte-1m32c2s h3:hover .md-header-anchor,span.svelte-1m32c2s h4:hover .md-header-anchor,span.svelte-1m32c2s h5:hover .md-header-anchor,span.svelte-1m32c2s h6:hover .md-header-anchor{opacity:1}span.md.svelte-1m32c2s .md-header-anchor>svg{color:var(--body-text-color-subdued)}span.svelte-1m32c2s table{word-break:break-word}div.svelte-17qq50w>.md.prose{font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}div.svelte-17qq50w>.md.prose *{color:var(--block-info-text-color)}div.svelte-17qq50w{margin-bottom:var(--spacing-md)}span.has-info.svelte-zgrq3{margin-bottom:var(--spacing-xs)}span.svelte-zgrq3:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-zgrq3{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}span[dir=rtl].svelte-zgrq3{display:block}.hide.svelte-zgrq3{margin:0;height:0}label.svelte-13ao5pu.svelte-13ao5pu{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--block-label-border-color);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-13ao5pu.svelte-13ao5pu{border-top-left-radius:0}label.float.svelte-13ao5pu.svelte-13ao5pu{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-13ao5pu.svelte-13ao5pu:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-13ao5pu.svelte-13ao5pu{height:0}span.svelte-13ao5pu.svelte-13ao5pu{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-13ao5pu.svelte-13ao5pu{box-shadow:none;border-width:0;background:transparent;overflow:visible}label[dir=rtl].svelte-13ao5pu.svelte-13ao5pu{border:var(--block-label-border-width) solid var(--block-label-border-color);border-top:none;border-right:none;border-bottom-left-radius:var(--block-radius);border-bottom-right-radius:var(--block-label-radius);border-top-left-radius:var(--block-label-radius)}label[dir=rtl].svelte-13ao5pu span.svelte-13ao5pu{margin-left:var(--size-2);margin-right:0}button.svelte-qgco6m{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-xs);color:var(--block-label-text-color);border:1px solid transparent;padding:var(--spacing-xxs)}button.svelte-qgco6m:hover{background-color:var(--background-fill-secondary)}button[disabled].svelte-qgco6m{opacity:.5;box-shadow:none}button[disabled].svelte-qgco6m:hover{cursor:not-allowed}.padded.svelte-qgco6m{background:var(--bg-color)}button.svelte-qgco6m:hover,button.highlight.svelte-qgco6m{cursor:pointer;color:var(--color-accent)}.padded.svelte-qgco6m:hover{color:var(--block-label-text-color)}span.svelte-qgco6m{padding:0 1px;font-size:10px}div.svelte-qgco6m{display:flex;align-items:center;justify-content:center;transition:filter .2s ease-in-out}.x-small.svelte-qgco6m{width:10px;height:10px}.small.svelte-qgco6m{width:14px;height:14px}.medium.svelte-qgco6m{width:20px;height:20px}.large.svelte-qgco6m{width:22px;height:22px}.pending.svelte-qgco6m{animation:svelte-qgco6m-flash .5s infinite}@keyframes svelte-qgco6m-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.transparent.svelte-qgco6m{background:transparent;border:none;box-shadow:none}.empty.svelte-3w3rth{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-3w3rth{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-3w3rth{min-height:calc(var(--size-32) - 20px)}.large.svelte-3w3rth{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-3w3rth{margin-top:0}.small_parent.svelte-3w3rth{min-height:100%!important}.dropdown-arrow.svelte-145leq6,.dropdown-arrow.svelte-ihhdbf{fill:currentColor}.circle.svelte-ihhdbf{fill:currentColor;opacity:.1}svg.svelte-pb9pol{animation:svelte-pb9pol-spin 1.5s linear infinite}@keyframes svelte-pb9pol-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}h2.svelte-1xg7h5n{font-size:var(--text-xl)!important}p.svelte-1xg7h5n,h2.svelte-1xg7h5n{white-space:pre-line}.wrap.svelte-1xg7h5n{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3);text-align:center;margin:auto var(--spacing-lg)}.or.svelte-1xg7h5n{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-1xg7h5n{width:30px;margin-bottom:var(--spacing-lg)}@media (--screen-md){.wrap.svelte-1xg7h5n{font-size:var(--text-lg)}}.hovered.svelte-1xg7h5n{color:var(--color-accent)}div.svelte-q32hvf{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;align-items:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;color:var(--block-label-text-color);flex-shrink:0}.show_border.svelte-q32hvf{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl);box-shadow:var(--shadow-drop)}.source-selection.svelte-15ls1gu{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--border-color-primary);width:100%;margin-left:auto;margin-right:auto;height:var(--size-10)}.icon.svelte-15ls1gu{width:22px;height:22px;margin:var(--spacing-lg) var(--spacing-xs);padding:var(--spacing-xs);color:var(--neutral-400);border-radius:var(--radius-md)}.selected.svelte-15ls1gu{color:var(--color-accent)}.icon.svelte-15ls1gu:hover,.icon.svelte-15ls1gu:focus{color:var(--color-accent)}.icon-button-wrapper.svelte-109se4{display:flex;flex-direction:row;align-items:center;justify-content:center;z-index:var(--layer-3);gap:var(--spacing-sm);box-shadow:var(--shadow-drop);border:1px solid var(--border-color-primary);background:var(--block-background-fill);padding:var(--spacing-xxs)}.icon-button-wrapper.hide-top-corner.svelte-109se4{border-top:none;border-right:none;border-radius:var(--block-label-right-radius)}.icon-button-wrapper.display-top-corner.svelte-109se4{border-radius:var(--radius-sm) 0 0 var(--radius-sm);top:var(--spacing-sm);right:-1px}.icon-button-wrapper.svelte-109se4:not(.top-panel){border:1px solid var(--border-color-primary);border-radius:var(--radius-sm)}.top-panel.svelte-109se4{position:absolute;top:var(--block-label-margin);right:var(--block-label-margin);margin:0}.icon-button-wrapper.svelte-109se4 button{margin:var(--spacing-xxs);border-radius:var(--radius-xs);position:relative}.icon-button-wrapper.svelte-109se4 a.download-link:not(:last-child),.icon-button-wrapper.svelte-109se4 button:not(:last-child){margin-right:var(--spacing-xxs)}.icon-button-wrapper.svelte-109se4 a.download-link:not(:last-child):not(.no-border *):after,.icon-button-wrapper.svelte-109se4 button:not(:last-child):not(.no-border *):after{content:"";position:absolute;right:-4.5px;top:15%;height:70%;width:1px;background-color:var(--border-color-primary)}.icon-button-wrapper.svelte-109se4>*{height:100%}svg.svelte-43sxxs.svelte-43sxxs{width:var(--size-20);height:var(--size-20)}svg.svelte-43sxxs path.svelte-43sxxs{fill:var(--loader-color)}div.svelte-43sxxs.svelte-43sxxs{z-index:var(--layer-2)}.margin.svelte-43sxxs.svelte-43sxxs{margin:var(--size-4)}.wrap.svelte-17v219f.svelte-17v219f{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-2);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);max-height:var(--size-screen-h);overflow:hidden}.wrap.center.svelte-17v219f.svelte-17v219f{top:0;right:0;left:0}.wrap.default.svelte-17v219f.svelte-17v219f{top:0;right:0;bottom:0;left:0}.hide.svelte-17v219f.svelte-17v219f{opacity:0;pointer-events:none}.generating.svelte-17v219f.svelte-17v219f{animation:svelte-17v219f-pulseStart 1s cubic-bezier(.4,0,.6,1),svelte-17v219f-pulse 2s cubic-bezier(.4,0,.6,1) 1s infinite;border:2px solid var(--color-accent);background:transparent;z-index:var(--layer-1);pointer-events:none}.translucent.svelte-17v219f.svelte-17v219f{background:none}@keyframes svelte-17v219f-pulseStart{0%{opacity:0}to{opacity:1}}@keyframes svelte-17v219f-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-17v219f.svelte-17v219f{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-17v219f.svelte-17v219f{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-17v219f.svelte-17v219f{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-17v219f.svelte-17v219f{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-17v219f.svelte-17v219f{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-17v219f.svelte-17v219f{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-17v219f.svelte-17v219f{position:absolute;bottom:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-17v219f.svelte-17v219f{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-17v219f.svelte-17v219f{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.minimal.svelte-17v219f.svelte-17v219f{pointer-events:none}.minimal.svelte-17v219f .progress-text.svelte-17v219f{background:var(--block-background-fill)}.border.svelte-17v219f.svelte-17v219f{border:1px solid var(--border-color-primary)}.clear-status.svelte-17v219f.svelte-17v219f{position:absolute;display:flex;top:var(--size-2);right:var(--size-2);justify-content:flex-end;gap:var(--spacing-sm);z-index:var(--layer-1)}.toast-body.svelte-1pgj5gs{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-1pgj5gs{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-1pgj5gs{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-1pgj5gs{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-1pgj5gs{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-1pgj5gs{border:1px solid var(--color-grey-700);background:var (--color-grey-50)}.dark .toast-body.info.svelte-1pgj5gs{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-body.success.svelte-1pgj5gs{border:1px solid var(--color-green-700);background:var(--color-green-50)}.dark .toast-body.success.svelte-1pgj5gs{border:1px solid var(--color-green-500);background-color:var(--color-grey-950)}.toast-title.svelte-1pgj5gs{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm)}.toast-title.error.svelte-1pgj5gs{color:var(--color-red-700)}.dark .toast-title.error.svelte-1pgj5gs{color:var(--color-red-50)}.toast-title.warning.svelte-1pgj5gs{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-1pgj5gs{color:var(--color-yellow-50)}.toast-title.info.svelte-1pgj5gs{color:var(--color-grey-700)}.dark .toast-title.info.svelte-1pgj5gs{color:var(--color-grey-50)}.toast-title.success.svelte-1pgj5gs{color:var(--color-green-700)}.dark .toast-title.success.svelte-1pgj5gs{color:var(--color-green-50)}.toast-close.svelte-1pgj5gs{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-1pgj5gs{color:var(--color-red-700)}.dark .toast-close.error.svelte-1pgj5gs{color:var(--color-red-500)}.toast-close.warning.svelte-1pgj5gs{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-1pgj5gs{color:var(--color-yellow-500)}.toast-close.info.svelte-1pgj5gs{color:var(--color-grey-700)}.dark .toast-close.info.svelte-1pgj5gs{color:var(--color-grey-500)}.toast-close.success.svelte-1pgj5gs{color:var(--color-green-700)}.dark .toast-close.success.svelte-1pgj5gs{color:var(--color-green-500)}.toast-text.svelte-1pgj5gs{font-size:var(--text-lg);word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.toast-text.error.svelte-1pgj5gs{color:var(--color-red-700)}.dark .toast-text.error.svelte-1pgj5gs{color:var(--color-red-50)}.toast-text.warning.svelte-1pgj5gs{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-1pgj5gs{color:var(--color-yellow-50)}.toast-text.info.svelte-1pgj5gs{color:var(--color-grey-700)}.dark .toast-text.info.svelte-1pgj5gs{color:var(--color-grey-50)}.toast-text.success.svelte-1pgj5gs{color:var(--color-green-700)}.dark .toast-text.success.svelte-1pgj5gs{color:var(--color-green-50)}.toast-details.svelte-1pgj5gs{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-1pgj5gs{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-1pgj5gs{color:var(--color-red-700)}.dark .toast-icon.error.svelte-1pgj5gs{color:var(--color-red-500)}.toast-icon.warning.svelte-1pgj5gs{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-1pgj5gs{color:var(--color-yellow-500)}.toast-icon.info.svelte-1pgj5gs{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-1pgj5gs{color:var(--color-grey-500)}.toast-icon.success.svelte-1pgj5gs{color:var(--color-green-700)}.dark .toast-icon.success.svelte-1pgj5gs{color:var(--color-green-500)}@keyframes svelte-1pgj5gs-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-1pgj5gs{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-1pgj5gs-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-1pgj5gs{background:var(--color-red-700)}.dark .timer.error.svelte-1pgj5gs{background:var(--color-red-500)}.timer.warning.svelte-1pgj5gs{background:var(--color-yellow-700)}.dark .timer.warning.svelte-1pgj5gs{background:var(--color-yellow-500)}.timer.info.svelte-1pgj5gs{background:var(--color-grey-700)}.dark .timer.info.svelte-1pgj5gs{background:var(--color-grey-500)}.timer.success.svelte-1pgj5gs{background:var(--color-green-700)}.dark .timer.success.svelte-1pgj5gs{background:var(--color-green-500)}.hidden.svelte-1pgj5gs{display:none}.toast-text.svelte-1pgj5gs a{text-decoration:underline}.toast-wrap.svelte-gatr8h{display:flex;position:fixed;top:var(--size-4);right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (--screen-sm){.toast-wrap.svelte-gatr8h{width:calc(var(--size-96) + var(--size-10))}}.streaming-bar.svelte-ga0jj6{position:absolute;bottom:0;left:0;right:0;height:4px;background-color:var(--primary-600);animation:svelte-ga0jj6-countdown linear forwards;z-index:1}@keyframes svelte-ga0jj6-countdown{0%{transform:translate(0)}to{transform:translate(-100%)}}:host{display:flex;flex-direction:column;height:100%}.propertysheet-wrapper{overflow:hidden!important;display:flex;flex-direction:column;flex-grow:1;padding:var(--spacing-lg)!important}.accordion-header.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;justify-content:space-between;align-items:center;width:100%;cursor:pointer;padding:var(--block-title-padding);background:var(--block-title-background-fill);color:var(--block-title-text-color);border-width:0;flex-shrink:0}.accordion-icon.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{margin-left:auto}.content-wrapper.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{flex-grow:1;min-height:0}.container.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{overflow-y:auto;height:auto;max-height:var(--sheet-max-height, 500px);border-radius:0!important;border:1px solid var(--border-color-primary);border-top:var(--show-group-name);border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg);background-color:var(--background-fill-secondary)}.closed.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:none}.group-header.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;justify-content:space-between;align-items:center;width:100%;padding:var(--spacing-sm) var(--spacing-md);background-color:var(--input-background-fill);color:var(--body-text-color);text-align:left;cursor:pointer;font-size:var(--text-md);font-weight:var(--font-weight-bold);border:1px solid var(--border-color-primary)}.properties-grid.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:grid;grid-template-columns:1fr 2fr;gap:0;padding:0}.prop-label.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d,.prop-control.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{padding:var(--spacing-sm) var(--spacing-md);display:flex;align-items:center;border-bottom:1px solid var(--background-fill-secondary)}.prop-label.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{background-color:var(--background-fill-primary);color:var(--body-text-color);opacity:3.7;font-weight:var(--font-weight-semibold);font-size:var(--text-xs);text-align:right;justify-content:flex-end;word-break:break-word}.prop-control.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{gap:var(--spacing-sm)}.properties-grid.svelte-1bp104d>.svelte-1bp104d.svelte-1bp104d:nth-last-child(-n+2){border-bottom:none}.prop-control.svelte-1bp104d input[type=text].svelte-1bp104d.svelte-1bp104d,.prop-control.svelte-1bp104d input[type=password].svelte-1bp104d.svelte-1bp104d,.prop-control.svelte-1bp104d input[type=number].svelte-1bp104d.svelte-1bp104d{background-color:var(--input-background-fill);border:var(--input-border-width) solid var(--border-color-primary);box-shadow:var(--input-shadow);color:var(--input-text-color);font-size:var(--input-text-size);border-radius:0;width:100%;padding-top:var(--spacing-1);padding-bottom:var(--spacing-1);padding-left:var(--spacing-md);padding-right:var(--spacing-3)}.prop-control.svelte-1bp104d input[type=text].svelte-1bp104d.svelte-1bp104d:focus,.prop-control.svelte-1bp104d input[type=number].svelte-1bp104d.svelte-1bp104d:focus{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus);background-color:var(--input-background-fill-focus);outline:none}.dropdown-wrapper.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{position:relative;width:100%}.dropdown-wrapper.svelte-1bp104d select.svelte-1bp104d.svelte-1bp104d{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--input-background-fill);border:var(--input-border-width) solid var(--border-color-primary);box-shadow:var(--input-shadow);color:var(--input-text-color);font-size:var(--input-text-size);width:100%;cursor:pointer;border-radius:0;padding-top:var(--spacing-1);padding-bottom:var(--spacing-1);padding-left:var(--spacing-md);padding-right:calc(var(--spacing-3) + 1.2em)}.dropdown-arrow-icon.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{position:absolute;top:50%;right:var(--spacing-3);transform:translateY(-50%);width:1em;height:1em;pointer-events:none;z-index:1;background-color:var(--body-text-color-subdued);-webkit-mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 8l4 4 4-4'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 8l4 4 4-4'%3e%3c/svg%3e")}.dropdown-wrapper.svelte-1bp104d select.svelte-1bp104d.svelte-1bp104d:focus{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus);background-color:var(--input-background-fill-focus);outline:none}.dropdown-wrapper.svelte-1bp104d select option.svelte-1bp104d.svelte-1bp104d{background:var(--input-background-fill);color:var(--body-text-color)}.prop-control.svelte-1bp104d input[type=checkbox].svelte-1bp104d.svelte-1bp104d{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:var(--size-4);height:var(--size-4);border-radius:5px!important;border:1px solid var(--checkbox-border-color);background-color:var(--checkbox-background-color);box-shadow:var(--checkbox-shadow);cursor:pointer;margin:0;transition:background-color .2s,border-color .2s}.prop-control.svelte-1bp104d input[type=checkbox].svelte-1bp104d.svelte-1bp104d:hover{border-color:var(--checkbox-border-color-hover);background-color:var(--checkbox-background-color-hover)}.prop-control.svelte-1bp104d input[type=checkbox].svelte-1bp104d.svelte-1bp104d:focus{border-color:var(--checkbox-border-color-focus);background-color:var(--checkbox-background-color-focus);outline:none}.prop-control.svelte-1bp104d input[type=checkbox].svelte-1bp104d.svelte-1bp104d:checked{background-color:var(--checkbox-background-color-selected);border-color:var(--checkbox-border-color-focus)}.prop-control.svelte-1bp104d input[type=checkbox].svelte-1bp104d.svelte-1bp104d:checked:after{content:"";position:absolute;display:block;top:50%;left:50%;width:4px;height:8px;border:solid var(--checkbox-label-text-color-selected);border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}.slider-container.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;align-items:center;gap:var(--spacing-md);width:100%}.slider-container.svelte-1bp104d input[type=range].svelte-1bp104d.svelte-1bp104d{--slider-progress:0%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer;width:100%}.slider-container.svelte-1bp104d input[type=range].svelte-1bp104d.svelte-1bp104d::-webkit-slider-runnable-track{height:8px;border-radius:var(--radius-lg);background:linear-gradient(to right,var(--slider-color) var(--slider-progress),var(--input-background-fill) var(--slider-progress))}.slider-container.svelte-1bp104d input[type=range].svelte-1bp104d.svelte-1bp104d::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:-4px;background-color:#fff;border-radius:50%;height:16px;width:16px;border:1px solid var(--border-color-primary);box-shadow:var(--shadow-drop)}.slider-container.svelte-1bp104d input[type=range].svelte-1bp104d.svelte-1bp104d::-moz-range-track{height:8px;border-radius:var(--radius-lg);background:linear-gradient(to right,var(--slider-color) var(--slider-progress),var(--input-background-fill) var(--slider-progress))}.slider-container.svelte-1bp104d input[type=range].svelte-1bp104d.svelte-1bp104d::-moz-range-thumb{background-color:#fff;border-radius:50%;height:16px;width:16px;border:1px solid var(--border-color-primary);box-shadow:var(--shadow-drop)}.slider-value.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{min-width:40px;text-align:right;font-family:var(--font-mono);font-size:var(--text-xs)}.prop-label-wrapper.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;justify-content:flex-end;align-items:center;gap:var(--spacing-sm);width:100%}.tooltip-container.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{position:relative;display:inline-flex;align-items:center;justify-content:center}.tooltip-icon.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background-color:var(--body-text-color-subdued);color:var(--background-fill-primary);font-size:10px;font-weight:700;cursor:help;-webkit-user-select:none;user-select:none}.tooltip-text.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{visibility:hidden;width:200px;background-color:var(--body-text-color);color:var(--background-fill-primary);text-align:center;border-radius:var(--radius-md);padding:var(--spacing-md);position:absolute;z-index:50;bottom:-50%;left:100%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip-container.svelte-1bp104d:hover .tooltip-text.svelte-1bp104d.svelte-1bp104d{visibility:visible;opacity:1}.color-picker-container.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;align-items:center;gap:var(--spacing-md);width:100%}.color-picker-input.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{width:50px;height:28px;background-color:transparent;border:1px solid var(--border-color-primary);border-radius:var(--radius-sm);cursor:pointer;padding:0}.color-picker-input.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d::-webkit-color-swatch-wrapper{padding:2px}.color-picker-input.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d::-moz-padding{padding:2px}.color-picker-input.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d::-webkit-color-swatch{border:none;border-radius:var(--radius-sm)}.color-picker-input.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d::-moz-color-swatch{border:none;border-radius:var(--radius-sm)}.color-picker-value.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{font-family:var(--font-mono);font-size:var(--text-sm);color:var(--body-text-color-subdued)}.prop-control.svelte-1bp104d input.invalid.svelte-1bp104d.svelte-1bp104d{border-color:var(--error-border-color, red)!important;box-shadow:0 0 0 1px var(--error-border-color, red)!important}.reset-button-prop.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;align-items:center;justify-content:center;background:none;border:none;border-left:1px solid var(--border-color-primary);cursor:pointer;color:var(--body-text-color-subdued);font-size:var(--text-lg);padding:0 var(--spacing-2);visibility:hidden;opacity:0;transition:opacity .15s ease-in-out,color .15s ease-in-out}.reset-button-prop.visible.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{visibility:visible;opacity:1}.reset-button-prop.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d:hover{color:var(--body-text-color);background-color:var(--background-fill-secondary-hover)}.reset-button-prop.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d:disabled{color:var(--body-text-color-subdued)!important;opacity:.5;cursor:not-allowed;background-color:transparent!important}.prop-control.svelte-1bp104d .disabled.svelte-1bp104d.svelte-1bp104d{opacity:.5;pointer-events:none;cursor:not-allowed}.prop-control.svelte-1bp104d .disabled input.svelte-1bp104d.svelte-1bp104d{cursor:not-allowed}.reset-button-prop.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d:disabled{opacity:.3;cursor:not-allowed;background-color:transparent!important}.radio-group.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;flex-wrap:wrap;gap:var(--spacing-sm);width:100%}.radio-item.svelte-1bp104d input[type=radio].svelte-1bp104d.svelte-1bp104d{display:none}.radio-item.svelte-1bp104d label.svelte-1bp104d.svelte-1bp104d{display:inline-block;padding:var(--spacing-xs) var(--spacing-md);border:1px solid var(--border-color-primary);border-radius:5px!important;background-color:var(--input-background-fill);color:var(--body-text-color);font-size:var(--text-xs);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .2s,border-color .2s,color .2s}.radio-group.disabled.svelte-1bp104d .radio-item label.svelte-1bp104d.svelte-1bp104d{cursor:not-allowed}.radio-item.svelte-1bp104d input[type=radio].svelte-1bp104d:hover+label.svelte-1bp104d{border-color:var(--border-color-accent-subdued);background-color:var(--background-fill-secondary-hover)}.radio-item.svelte-1bp104d input[type=radio].svelte-1bp104d:checked+label.svelte-1bp104d{background-color:var(--primary-500);border-color:var(--primary-500);color:#fff;font-weight:var(--font-weight-bold)}.radio-group.disabled.svelte-1bp104d .radio-item input[type=radio].svelte-1bp104d:checked+label.svelte-1bp104d{background-color:var(--neutral-300);border-color:var(--neutral-300);color:var(--neutral-500)}.multiselect-group.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;flex-direction:column;gap:var(--spacing-sm);width:100%;max-height:150px;overflow-y:auto;border:1px solid var(--border-color-primary);padding:var(--spacing-sm);background-color:var(--input-background-fill)}.multiselect-item.svelte-1bp104d.svelte-1bp104d.svelte-1bp104d{display:flex;align-items:center;gap:var(--spacing-sm)}.multiselect-item.svelte-1bp104d label.svelte-1bp104d.svelte-1bp104d{font-size:var(--text-sm);color:var(--body-text-color);cursor:pointer;-webkit-user-select:none;user-select:none}.multiselect-group.disabled.svelte-1bp104d .multiselect-item label.svelte-1bp104d.svelte-1bp104d{cursor:not-allowed}
diff --git a/src/demo/app.py b/src/demo/app.py
index a2442880a851d47e3c7495a3bc7368834164ec2f..3f95492bcbeea8e915a3e1c2da3872262710e0ad 100644
--- a/src/demo/app.py
+++ b/src/demo/app.py
@@ -2,12 +2,52 @@ import os
import json
import gradio as gr
from dataclasses import dataclass, field, asdict
-from typing import Literal
+from typing import List, Literal
from gradio_propertysheet import PropertySheet
from gradio_htmlinjector import HTMLInjector
+PAG_LAYERS = {
+ "down.blocks.1": "down.blocks.1",
+ "down.blocks.1.attn.0": "down.blocks.1.attentions.0",
+ "down.blocks.1.attn.1": "down.blocks.1.attentions.1",
+ "down.blocks.2": "down.blocks.2",
+ "down.blocks.2.attn.0": "down.blocks.2.attentions.0",
+ "down.blocks.2.attn.1": "down.blocks.2.attentions.1",
+ "mid": "mid",
+ "up.blocks.0": "up.blocks.0",
+ "up.blocks.0.attn.0": "up.blocks.0.attentions.0",
+ "up.blocks.0.attn.1": "up.blocks.0.attentions.1",
+ "up.blocks.0.attn.2": "up.blocks.0.attentions.2",
+ "up.blocks.1": "up.blocks.1",
+ "up.blocks.1.attn.0": "up.blocks.1.attentions.0",
+ "up.blocks.1.attn.1": "up.blocks.1.attentions.1",
+ "up.blocks.1.attn.2": "up.blocks.1.attentions.2",
+}
# --- 1. Dataclass Definitions ---
+@dataclass
+class PAGSettings:
+ """Defines settings for Perturbed Attention Guidance."""
+ enable_pag: bool = field(default=False, metadata={"label": "Enable PAG"})
+
+ pag_layers: List[str] = field(
+ default_factory=list, # Use default_factory for mutable types like lists
+ metadata={
+ "component": "multiselect_checkbox", # Our new custom component type
+ "choices": list(PAG_LAYERS.keys()), # Provide the list of all possible options
+ "label": "PAG Layers",
+ "interactive_if": {"field": "enable_pag", "value": True},
+ "help": "Select the UNet layers where Perturbed Attention Guidance should be applied."
+ }
+ )
+ pag_scale: float = field(default=3.0, metadata={
+ "component": "slider",
+ "label": "PAG Scale",
+ "minimum": 0.0,
+ "maximum": 1.0,
+ "step": 0.01
+ })
+
@dataclass
class EffectBase:
"""Base class with common effect settings."""
@@ -259,6 +299,7 @@ class RenderConfig:
default_factory=QuantizationSettings,
metadata={"label": "Quantization Settings"}
)
+ pag_settings: PAGSettings = field(default_factory=PAGSettings, metadata={"label": "PAG Settings"})
tile_size: Literal[1024, 1280] = field(
default=1280,
metadata={
diff --git a/src/demo/space.py b/src/demo/space.py
index 3d4f50197f1551e67467b995ac84e30a0e9fa8f9..b7d94d648ccc00aff92c8ed5dd1da4cdea393c5e 100644
--- a/src/demo/space.py
+++ b/src/demo/space.py
@@ -42,12 +42,52 @@ import os
import json
import gradio as gr
from dataclasses import dataclass, field, asdict
-from typing import Literal
+from typing import List, Literal
from gradio_propertysheet import PropertySheet
from gradio_htmlinjector import HTMLInjector
+PAG_LAYERS = {
+ "down.blocks.1": "down.blocks.1",
+ "down.blocks.1.attn.0": "down.blocks.1.attentions.0",
+ "down.blocks.1.attn.1": "down.blocks.1.attentions.1",
+ "down.blocks.2": "down.blocks.2",
+ "down.blocks.2.attn.0": "down.blocks.2.attentions.0",
+ "down.blocks.2.attn.1": "down.blocks.2.attentions.1",
+ "mid": "mid",
+ "up.blocks.0": "up.blocks.0",
+ "up.blocks.0.attn.0": "up.blocks.0.attentions.0",
+ "up.blocks.0.attn.1": "up.blocks.0.attentions.1",
+ "up.blocks.0.attn.2": "up.blocks.0.attentions.2",
+ "up.blocks.1": "up.blocks.1",
+ "up.blocks.1.attn.0": "up.blocks.1.attentions.0",
+ "up.blocks.1.attn.1": "up.blocks.1.attentions.1",
+ "up.blocks.1.attn.2": "up.blocks.1.attentions.2",
+}
# --- 1. Dataclass Definitions ---
+@dataclass
+class PAGSettings:
+ \"\"\"Defines settings for Perturbed Attention Guidance.\"\"\"
+ enable_pag: bool = field(default=False, metadata={"label": "Enable PAG"})
+
+ pag_layers: List[str] = field(
+ default_factory=list, # Use default_factory for mutable types like lists
+ metadata={
+ "component": "multiselect_checkbox", # Our new custom component type
+ "choices": list(PAG_LAYERS.keys()), # Provide the list of all possible options
+ "label": "PAG Layers",
+ "interactive_if": {"field": "enable_pag", "value": True},
+ "help": "Select the UNet layers where Perturbed Attention Guidance should be applied."
+ }
+ )
+ pag_scale: float = field(default=3.0, metadata={
+ "component": "slider",
+ "label": "PAG Scale",
+ "minimum": 0.0,
+ "maximum": 1.0,
+ "step": 0.01
+ })
+
@dataclass
class EffectBase:
\"\"\"Base class with common effect settings.\"\"\"
@@ -299,6 +339,7 @@ class RenderConfig:
default_factory=QuantizationSettings,
metadata={"label": "Quantization Settings"}
)
+ pag_settings: PAGSettings = field(default_factory=PAGSettings, metadata={"label": "PAG Settings"})
tile_size: Literal[1024, 1280] = field(
default=1280,
metadata={
diff --git a/src/frontend/Index.svelte b/src/frontend/Index.svelte
index 2a6c90b1bf18bdf65f7f3ef738a6b7901153261b..85e9bbee4ce55e03cf7c1d9edcd55dbacf2ceefe 100644
--- a/src/frontend/Index.svelte
+++ b/src/frontend/Index.svelte
@@ -229,7 +229,17 @@
// Dispatch the full, updated value object to the backend.
gradio.dispatch("change", value);
}
-
+ /**
+ * Handles changes from a multiselect checkbox group.
+ * The `bind:group` directive already updated the local `prop.value` array.
+ * We just need to dispatch the entire component's state to the backend.
+ */
+ async function handle_multiselect_change() {
+ // Wait for Svelte to process the binding update.
+ await tick();
+ // Dispatch the full, updated value object to the backend.
+ gradio.dispatch("change", value);
+ }
/**
* Resets a single property to its initial value, which was stored on mount.
* It dispatches the entire updated `value` object to the backend.
@@ -485,6 +495,24 @@
{/each}
{/if}
+ {:else if prop.component === 'multiselect_checkbox'}
+
+ {#if Array.isArray(prop.choices)}
+ {#each prop.choices as choice}
+
+ handle_multiselect_change()}
+ >
+
+
+ {/each}
+ {/if}
+
{/if}
@@ -926,4 +954,32 @@
border-color: var(--neutral-300);
color: var(--neutral-500);
}
+ .multiselect-group {
+ display: flex;
+ flex-direction: column;
+ gap: var(--spacing-sm);
+ width: 100%;
+ max-height: 150px; /* Or a height that fits your design */
+ overflow-y: auto;
+ border: 1px solid var(--border-color-primary);
+ padding: var(--spacing-sm);
+ background-color: var(--input-background-fill);
+ }
+
+ .multiselect-item {
+ display: flex;
+ align-items: center;
+ gap: var(--spacing-sm);
+ }
+
+ .multiselect-item label {
+ font-size: var(--text-sm);
+ color: var(--body-text-color);
+ cursor: pointer;
+ user-select: none;
+ }
+
+ .multiselect-group.disabled .multiselect-item label {
+ cursor: not-allowed;
+ }
\ No newline at end of file
diff --git a/src/pyproject.toml b/src/pyproject.toml
index 0e679aba14651db3d89f25fe0fd7f66de9adf99c..11cdf5868af723f630f3947abd48d88cf0e9070f 100644
--- a/src/pyproject.toml
+++ b/src/pyproject.toml
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
[project]
name = "gradio_propertysheet"
-version = "0.0.17"
+version = "0.0.18"
description = "Property sheet"
readme = "README.md"
license = "apache-2.0"