diff --git "a/src/backend/gradio_creditspanel/templates/component/index.js" "b/src/backend/gradio_creditspanel/templates/component/index.js"
--- "a/src/backend/gradio_creditspanel/templates/component/index.js"
+++ "b/src/backend/gradio_creditspanel/templates/component/index.js"
@@ -1,132 +1,132 @@
-var ta = Object.defineProperty;
-var Yn = (a) => {
- throw TypeError(a);
+var so = Object.defineProperty;
+var Wn = (o) => {
+ throw TypeError(o);
};
-var na = (a, e, t) => e in a ? ta(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
-var M = (a, e, t) => na(a, typeof e != "symbol" ? e + "" : e, t), ia = (a, e, t) => e.has(a) || Yn("Cannot " + t);
-var Wn = (a, e, t) => e.has(a) ? Yn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t);
-var Wt = (a, e, t) => (ia(a, e, "access private method"), t);
+var ro = (o, e, t) => e in o ? so(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
+var H = (o, e, t) => ro(o, typeof e != "symbol" ? e + "" : e, t), uo = (o, e, t) => e.has(o) || Wn("Cannot " + t);
+var Kn = (o, e, t) => e.has(o) ? Wn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(o) : e.set(o, t);
+var Kt = (o, e, t) => (uo(o, e, "access private method"), t);
const {
- SvelteComponent: la,
- append_hydration: Cn,
- assign: aa,
- attr: ne,
- binding_callbacks: oa,
- children: St,
- claim_element: wl,
- claim_space: kl,
- claim_svg_element: bn,
- create_slot: sa,
- detach: je,
- element: Fl,
- empty: Kn,
- get_all_dirty_from_scope: ra,
- get_slot_changes: ua,
- get_spread_update: _a,
- init: ca,
- insert_hydration: zt,
- listen: da,
- noop: fa,
- safe_not_equal: ha,
- set_dynamic_element_data: Qn,
- set_style: R,
- space: $l,
- svg_element: Dn,
- toggle_class: W,
- transition_in: Cl,
- transition_out: El,
- update_slot_base: pa
+ SvelteComponent: _o,
+ append_hydration: En,
+ assign: co,
+ attr: oe,
+ binding_callbacks: fo,
+ children: Tt,
+ claim_element: Al,
+ claim_space: Sl,
+ claim_svg_element: Dn,
+ create_slot: ho,
+ detach: He,
+ element: ql,
+ empty: Qn,
+ get_all_dirty_from_scope: po,
+ get_slot_changes: mo,
+ get_spread_update: go,
+ init: vo,
+ insert_hydration: Lt,
+ listen: bo,
+ noop: Do,
+ safe_not_equal: yo,
+ set_dynamic_element_data: Jn,
+ set_style: O,
+ space: Bl,
+ svg_element: yn,
+ toggle_class: ee,
+ transition_in: Tl,
+ transition_out: zl,
+ update_slot_base: wo
} = window.__gradio__svelte__internal;
-function Jn(a) {
- let e, t, n, i, l;
+function ei(o) {
+ let e, t, n, l, i;
return {
c() {
- e = Dn("svg"), t = Dn("line"), n = Dn("line"), this.h();
+ e = yn("svg"), t = yn("line"), n = yn("line"), this.h();
},
- l(o) {
- e = bn(o, "svg", { class: !0, xmlns: !0, viewBox: !0 });
- var s = St(e);
- t = bn(s, "line", {
+ l(a) {
+ e = Dn(a, "svg", { class: !0, xmlns: !0, viewBox: !0 });
+ var s = Tt(e);
+ t = Dn(s, "line", {
x1: !0,
y1: !0,
x2: !0,
y2: !0,
stroke: !0,
"stroke-width": !0
- }), St(t).forEach(je), n = bn(s, "line", {
+ }), Tt(t).forEach(He), n = Dn(s, "line", {
x1: !0,
y1: !0,
x2: !0,
y2: !0,
stroke: !0,
"stroke-width": !0
- }), St(n).forEach(je), s.forEach(je), this.h();
+ }), Tt(n).forEach(He), s.forEach(He), this.h();
},
h() {
- ne(t, "x1", "1"), ne(t, "y1", "9"), ne(t, "x2", "9"), ne(t, "y2", "1"), ne(t, "stroke", "gray"), ne(t, "stroke-width", "0.5"), ne(n, "x1", "5"), ne(n, "y1", "9"), ne(n, "x2", "9"), ne(n, "y2", "5"), ne(n, "stroke", "gray"), ne(n, "stroke-width", "0.5"), ne(e, "class", "resize-handle svelte-239wnu"), ne(e, "xmlns", "http://www.w3.org/2000/svg"), ne(e, "viewBox", "0 0 10 10");
+ oe(t, "x1", "1"), oe(t, "y1", "9"), oe(t, "x2", "9"), oe(t, "y2", "1"), oe(t, "stroke", "gray"), oe(t, "stroke-width", "0.5"), oe(n, "x1", "5"), oe(n, "y1", "9"), oe(n, "x2", "9"), oe(n, "y2", "5"), oe(n, "stroke", "gray"), oe(n, "stroke-width", "0.5"), oe(e, "class", "resize-handle svelte-239wnu"), oe(e, "xmlns", "http://www.w3.org/2000/svg"), oe(e, "viewBox", "0 0 10 10");
},
- m(o, s) {
- zt(o, e, s), Cn(e, t), Cn(e, n), i || (l = da(
+ m(a, s) {
+ Lt(a, e, s), En(e, t), En(e, n), l || (i = bo(
e,
"mousedown",
/*resize*/
- a[27]
- ), i = !0);
+ o[27]
+ ), l = !0);
},
- p: fa,
- d(o) {
- o && je(e), i = !1, l();
+ p: Do,
+ d(a) {
+ a && He(e), l = !1, i();
}
};
}
-function ma(a) {
+function ko(o) {
var d;
- let e, t, n, i, l;
- const o = (
+ let e, t, n, l, i;
+ const a = (
/*#slots*/
- a[31].default
- ), s = sa(
- o,
+ o[31].default
+ ), s = ho(
a,
+ o,
/*$$scope*/
- a[30],
+ o[30],
null
);
let r = (
/*resizable*/
- a[19] && Jn(a)
+ o[19] && ei(o)
), u = [
{ "data-testid": (
/*test_id*/
- a[11]
+ o[11]
) },
{ id: (
/*elem_id*/
- a[6]
+ o[6]
) },
{
class: n = "block " + /*elem_classes*/
- (((d = a[7]) == null ? void 0 : d.join(" ")) || "") + " svelte-239wnu"
+ (((d = o[7]) == null ? void 0 : d.join(" ")) || "") + " svelte-239wnu"
},
{
- dir: i = /*rtl*/
- a[20] ? "rtl" : "ltr"
+ dir: l = /*rtl*/
+ o[20] ? "rtl" : "ltr"
}
], _ = {};
for (let c = 0; c < u.length; c += 1)
- _ = aa(_, u[c]);
+ _ = co(_, u[c]);
return {
c() {
- e = Fl(
+ e = ql(
/*tag*/
- a[25]
- ), s && s.c(), t = $l(), r && r.c(), this.h();
+ o[25]
+ ), s && s.c(), t = Bl(), r && r.c(), this.h();
},
l(c) {
- e = wl(
+ e = Al(
c,
/*tag*/
- (a[25] || "null").toUpperCase(),
+ (o[25] || "null").toUpperCase(),
{
"data-testid": !0,
id: !0,
@@ -134,236 +134,236 @@ function ma(a) {
dir: !0
}
);
- var h = St(e);
- s && s.l(h), t = kl(h), r && r.l(h), h.forEach(je), this.h();
+ var h = Tt(e);
+ s && s.l(h), t = Sl(h), r && r.l(h), h.forEach(He), this.h();
},
h() {
- Qn(
+ Jn(
/*tag*/
- a[25]
- )(e, _), W(
+ o[25]
+ )(e, _), ee(
e,
"hidden",
/*visible*/
- a[14] === !1
- ), W(
+ o[14] === !1
+ ), ee(
e,
"padded",
/*padding*/
- a[10]
- ), W(
+ o[10]
+ ), ee(
e,
"flex",
/*flex*/
- a[1]
- ), W(
+ o[1]
+ ), ee(
e,
"border_focus",
/*border_mode*/
- a[9] === "focus"
- ), W(
+ o[9] === "focus"
+ ), ee(
e,
"border_contrast",
/*border_mode*/
- a[9] === "contrast"
- ), W(e, "hide-container", !/*explicit_call*/
- a[12] && !/*container*/
- a[13]), W(
+ o[9] === "contrast"
+ ), ee(e, "hide-container", !/*explicit_call*/
+ o[12] && !/*container*/
+ o[13]), ee(
e,
"fullscreen",
/*fullscreen*/
- a[0]
- ), W(
+ o[0]
+ ), ee(
e,
"animating",
/*fullscreen*/
- a[0] && /*preexpansionBoundingRect*/
- a[24] !== null
- ), W(
+ o[0] && /*preexpansionBoundingRect*/
+ o[24] !== null
+ ), ee(
e,
"auto-margin",
/*scale*/
- a[17] === null
- ), R(
+ o[17] === null
+ ), O(
e,
"height",
/*fullscreen*/
- a[0] ? void 0 : (
+ o[0] ? void 0 : (
/*get_dimension*/
- a[26](
+ o[26](
/*height*/
- a[2]
+ o[2]
)
)
- ), R(
+ ), O(
e,
"min-height",
/*fullscreen*/
- a[0] ? void 0 : (
+ o[0] ? void 0 : (
/*get_dimension*/
- a[26](
+ o[26](
/*min_height*/
- a[3]
+ o[3]
)
)
- ), R(
+ ), O(
e,
"max-height",
/*fullscreen*/
- a[0] ? void 0 : (
+ o[0] ? void 0 : (
/*get_dimension*/
- a[26](
+ o[26](
/*max_height*/
- a[4]
+ o[4]
)
)
- ), R(
+ ), O(
e,
"--start-top",
/*preexpansionBoundingRect*/
- a[24] ? `${/*preexpansionBoundingRect*/
- a[24].top}px` : "0px"
- ), R(
+ o[24] ? `${/*preexpansionBoundingRect*/
+ o[24].top}px` : "0px"
+ ), O(
e,
"--start-left",
/*preexpansionBoundingRect*/
- a[24] ? `${/*preexpansionBoundingRect*/
- a[24].left}px` : "0px"
- ), R(
+ o[24] ? `${/*preexpansionBoundingRect*/
+ o[24].left}px` : "0px"
+ ), O(
e,
"--start-width",
/*preexpansionBoundingRect*/
- a[24] ? `${/*preexpansionBoundingRect*/
- a[24].width}px` : "0px"
- ), R(
+ o[24] ? `${/*preexpansionBoundingRect*/
+ o[24].width}px` : "0px"
+ ), O(
e,
"--start-height",
/*preexpansionBoundingRect*/
- a[24] ? `${/*preexpansionBoundingRect*/
- a[24].height}px` : "0px"
- ), R(
+ o[24] ? `${/*preexpansionBoundingRect*/
+ o[24].height}px` : "0px"
+ ), O(
e,
"width",
/*fullscreen*/
- a[0] ? void 0 : typeof /*width*/
- a[5] == "number" ? `calc(min(${/*width*/
- a[5]}px, 100%))` : (
+ o[0] ? void 0 : typeof /*width*/
+ o[5] == "number" ? `calc(min(${/*width*/
+ o[5]}px, 100%))` : (
/*get_dimension*/
- a[26](
+ o[26](
/*width*/
- a[5]
+ o[5]
)
)
- ), R(
+ ), O(
e,
"border-style",
/*variant*/
- a[8]
- ), R(
+ o[8]
+ ), O(
e,
"overflow",
/*allow_overflow*/
- a[15] ? (
+ o[15] ? (
/*overflow_behavior*/
- a[16]
+ o[16]
) : "hidden"
- ), R(
+ ), O(
e,
"flex-grow",
/*scale*/
- a[17]
- ), R(e, "min-width", `calc(min(${/*min_width*/
- a[18]}px, 100%))`), R(e, "border-width", "var(--block-border-width)");
+ o[17]
+ ), O(e, "min-width", `calc(min(${/*min_width*/
+ o[18]}px, 100%))`), O(e, "border-width", "var(--block-border-width)");
},
m(c, h) {
- zt(c, e, h), s && s.m(e, null), Cn(e, t), r && r.m(e, null), a[32](e), l = !0;
+ Lt(c, e, h), s && s.m(e, null), En(e, t), r && r.m(e, null), o[32](e), i = !0;
},
p(c, h) {
- var g;
- s && s.p && (!l || h[0] & /*$$scope*/
- 1073741824) && pa(
+ var m;
+ s && s.p && (!i || h[0] & /*$$scope*/
+ 1073741824) && wo(
s,
- o,
+ a,
c,
/*$$scope*/
c[30],
- l ? ua(
- o,
+ i ? mo(
+ a,
/*$$scope*/
c[30],
h,
null
- ) : ra(
+ ) : po(
/*$$scope*/
c[30]
),
null
), /*resizable*/
- c[19] ? r ? r.p(c, h) : (r = Jn(c), r.c(), r.m(e, null)) : r && (r.d(1), r = null), Qn(
+ c[19] ? r ? r.p(c, h) : (r = ei(c), r.c(), r.m(e, null)) : r && (r.d(1), r = null), Jn(
/*tag*/
c[25]
- )(e, _ = _a(u, [
- (!l || h[0] & /*test_id*/
+ )(e, _ = go(u, [
+ (!i || h[0] & /*test_id*/
2048) && { "data-testid": (
/*test_id*/
c[11]
) },
- (!l || h[0] & /*elem_id*/
+ (!i || h[0] & /*elem_id*/
64) && { id: (
/*elem_id*/
c[6]
) },
- (!l || h[0] & /*elem_classes*/
+ (!i || h[0] & /*elem_classes*/
128 && n !== (n = "block " + /*elem_classes*/
- (((g = c[7]) == null ? void 0 : g.join(" ")) || "") + " svelte-239wnu")) && { class: n },
- (!l || h[0] & /*rtl*/
- 1048576 && i !== (i = /*rtl*/
- c[20] ? "rtl" : "ltr")) && { dir: i }
- ])), W(
+ (((m = c[7]) == null ? void 0 : m.join(" ")) || "") + " svelte-239wnu")) && { class: n },
+ (!i || h[0] & /*rtl*/
+ 1048576 && l !== (l = /*rtl*/
+ c[20] ? "rtl" : "ltr")) && { dir: l }
+ ])), ee(
e,
"hidden",
/*visible*/
c[14] === !1
- ), W(
+ ), ee(
e,
"padded",
/*padding*/
c[10]
- ), W(
+ ), ee(
e,
"flex",
/*flex*/
c[1]
- ), W(
+ ), ee(
e,
"border_focus",
/*border_mode*/
c[9] === "focus"
- ), W(
+ ), ee(
e,
"border_contrast",
/*border_mode*/
c[9] === "contrast"
- ), W(e, "hide-container", !/*explicit_call*/
+ ), ee(e, "hide-container", !/*explicit_call*/
c[12] && !/*container*/
- c[13]), W(
+ c[13]), ee(
e,
"fullscreen",
/*fullscreen*/
c[0]
- ), W(
+ ), ee(
e,
"animating",
/*fullscreen*/
c[0] && /*preexpansionBoundingRect*/
c[24] !== null
- ), W(
+ ), ee(
e,
"auto-margin",
/*scale*/
c[17] === null
), h[0] & /*fullscreen, height*/
- 5 && R(
+ 5 && O(
e,
"height",
/*fullscreen*/
@@ -375,7 +375,7 @@ function ma(a) {
)
)
), h[0] & /*fullscreen, min_height*/
- 9 && R(
+ 9 && O(
e,
"min-height",
/*fullscreen*/
@@ -387,7 +387,7 @@ function ma(a) {
)
)
), h[0] & /*fullscreen, max_height*/
- 17 && R(
+ 17 && O(
e,
"max-height",
/*fullscreen*/
@@ -399,35 +399,35 @@ function ma(a) {
)
)
), h[0] & /*preexpansionBoundingRect*/
- 16777216 && R(
+ 16777216 && O(
e,
"--start-top",
/*preexpansionBoundingRect*/
c[24] ? `${/*preexpansionBoundingRect*/
c[24].top}px` : "0px"
), h[0] & /*preexpansionBoundingRect*/
- 16777216 && R(
+ 16777216 && O(
e,
"--start-left",
/*preexpansionBoundingRect*/
c[24] ? `${/*preexpansionBoundingRect*/
c[24].left}px` : "0px"
), h[0] & /*preexpansionBoundingRect*/
- 16777216 && R(
+ 16777216 && O(
e,
"--start-width",
/*preexpansionBoundingRect*/
c[24] ? `${/*preexpansionBoundingRect*/
c[24].width}px` : "0px"
), h[0] & /*preexpansionBoundingRect*/
- 16777216 && R(
+ 16777216 && O(
e,
"--start-height",
/*preexpansionBoundingRect*/
c[24] ? `${/*preexpansionBoundingRect*/
c[24].height}px` : "0px"
), h[0] & /*fullscreen, width*/
- 33 && R(
+ 33 && O(
e,
"width",
/*fullscreen*/
@@ -441,13 +441,13 @@ function ma(a) {
)
)
), h[0] & /*variant*/
- 256 && R(
+ 256 && O(
e,
"border-style",
/*variant*/
c[8]
), h[0] & /*allow_overflow, overflow_behavior*/
- 98304 && R(
+ 98304 && O(
e,
"overflow",
/*allow_overflow*/
@@ -456,60 +456,60 @@ function ma(a) {
c[16]
) : "hidden"
), h[0] & /*scale*/
- 131072 && R(
+ 131072 && O(
e,
"flex-grow",
/*scale*/
c[17]
), h[0] & /*min_width*/
- 262144 && R(e, "min-width", `calc(min(${/*min_width*/
+ 262144 && O(e, "min-width", `calc(min(${/*min_width*/
c[18]}px, 100%))`);
},
i(c) {
- l || (Cl(s, c), l = !0);
+ i || (Tl(s, c), i = !0);
},
o(c) {
- El(s, c), l = !1;
+ zl(s, c), i = !1;
},
d(c) {
- c && je(e), s && s.d(c), r && r.d(), a[32](null);
+ c && He(e), s && s.d(c), r && r.d(), o[32](null);
}
};
}
-function ei(a) {
+function ti(o) {
let e;
return {
c() {
- e = Fl("div"), this.h();
+ e = ql("div"), this.h();
},
l(t) {
- e = wl(t, "DIV", { class: !0 }), St(e).forEach(je), this.h();
+ e = Al(t, "DIV", { class: !0 }), Tt(e).forEach(He), this.h();
},
h() {
- ne(e, "class", "placeholder svelte-239wnu"), R(
+ oe(e, "class", "placeholder svelte-239wnu"), O(
e,
"height",
/*placeholder_height*/
- a[22] + "px"
- ), R(
+ o[22] + "px"
+ ), O(
e,
"width",
/*placeholder_width*/
- a[23] + "px"
+ o[23] + "px"
);
},
m(t, n) {
- zt(t, e, n);
+ Lt(t, e, n);
},
p(t, n) {
n[0] & /*placeholder_height*/
- 4194304 && R(
+ 4194304 && O(
e,
"height",
/*placeholder_height*/
t[22] + "px"
), n[0] & /*placeholder_width*/
- 8388608 && R(
+ 8388608 && O(
e,
"width",
/*placeholder_width*/
@@ -517,82 +517,82 @@ function ei(a) {
);
},
d(t) {
- t && je(e);
+ t && He(e);
}
};
}
-function ga(a) {
- let e, t, n, i = (
+function Fo(o) {
+ let e, t, n, l = (
/*tag*/
- a[25] && ma(a)
- ), l = (
+ o[25] && ko(o)
+ ), i = (
/*fullscreen*/
- a[0] && ei(a)
+ o[0] && ti(o)
);
return {
c() {
- i && i.c(), e = $l(), l && l.c(), t = Kn();
+ l && l.c(), e = Bl(), i && i.c(), t = Qn();
},
- l(o) {
- i && i.l(o), e = kl(o), l && l.l(o), t = Kn();
+ l(a) {
+ l && l.l(a), e = Sl(a), i && i.l(a), t = Qn();
},
- m(o, s) {
- i && i.m(o, s), zt(o, e, s), l && l.m(o, s), zt(o, t, s), n = !0;
+ m(a, s) {
+ l && l.m(a, s), Lt(a, e, s), i && i.m(a, s), Lt(a, t, s), n = !0;
},
- p(o, s) {
+ p(a, s) {
/*tag*/
- o[25] && i.p(o, s), /*fullscreen*/
- o[0] ? l ? l.p(o, s) : (l = ei(o), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null);
+ a[25] && l.p(a, s), /*fullscreen*/
+ a[0] ? i ? i.p(a, s) : (i = ti(a), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null);
},
- i(o) {
- n || (Cl(i, o), n = !0);
+ i(a) {
+ n || (Tl(l, a), n = !0);
},
- o(o) {
- El(i, o), n = !1;
+ o(a) {
+ zl(l, a), n = !1;
},
- d(o) {
- o && (je(e), je(t)), i && i.d(o), l && l.d(o);
+ d(a) {
+ a && (He(e), He(t)), l && l.d(a), i && i.d(a);
}
};
}
-function va(a, e, t) {
- let { $$slots: n = {}, $$scope: i } = e, { height: l = void 0 } = e, { min_height: o = void 0 } = e, { max_height: s = void 0 } = e, { width: r = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: _ = [] } = e, { variant: d = "solid" } = e, { border_mode: c = "base" } = e, { padding: h = !0 } = e, { type: g = "normal" } = e, { test_id: p = void 0 } = e, { explicit_call: D = !1 } = e, { container: k = !0 } = e, { visible: m = !0 } = e, { allow_overflow: f = !0 } = e, { overflow_behavior: v = "auto" } = e, { scale: y = null } = e, { min_width: b = 0 } = e, { flex: F = !1 } = e, { resizable: A = !1 } = e, { rtl: E = !1 } = e, { fullscreen: q = !1 } = e, w = q, $, ge = g === "fieldset" ? "fieldset" : "div", _e = 0, Me = 0, ue = null;
- function nt(C) {
- q && C.key === "Escape" && t(0, q = !1);
+function $o(o, e, t) {
+ let { $$slots: n = {}, $$scope: l } = e, { height: i = void 0 } = e, { min_height: a = void 0 } = e, { max_height: s = void 0 } = e, { width: r = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: _ = [] } = e, { variant: d = "solid" } = e, { border_mode: c = "base" } = e, { padding: h = !0 } = e, { type: m = "normal" } = e, { test_id: p = void 0 } = e, { explicit_call: b = !1 } = e, { container: k = !0 } = e, { visible: g = !0 } = e, { allow_overflow: f = !0 } = e, { overflow_behavior: v = "auto" } = e, { scale: D = null } = e, { min_width: w = 0 } = e, { flex: F = !1 } = e, { resizable: A = !1 } = e, { rtl: y = !1 } = e, { fullscreen: T = !1 } = e, E = T, L, B = m === "fieldset" ? "fieldset" : "div", $ = 0, ue = 0, he = null;
+ function lt(C) {
+ T && C.key === "Escape" && t(0, T = !1);
}
- const Z = (C) => {
+ const K = (C) => {
if (C !== void 0) {
if (typeof C == "number")
return C + "px";
if (typeof C == "string")
return C;
}
- }, se = (C) => {
- let ee = C.clientY;
- const pt = (S) => {
- const mt = S.clientY - ee;
- ee = S.clientY, t(21, $.style.height = `${$.offsetHeight + mt}px`, $);
- }, ce = () => {
- window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup", ce);
+ }, _e = (C) => {
+ let ie = C.clientY;
+ const vt = (S) => {
+ const bt = S.clientY - ie;
+ ie = S.clientY, t(21, L.style.height = `${L.offsetHeight + bt}px`, L);
+ }, ge = () => {
+ window.removeEventListener("mousemove", vt), window.removeEventListener("mouseup", ge);
};
- window.addEventListener("mousemove", pt), window.addEventListener("mouseup", ce);
+ window.addEventListener("mousemove", vt), window.addEventListener("mouseup", ge);
};
- function Se(C) {
- oa[C ? "unshift" : "push"](() => {
- $ = C, t(21, $);
+ function ze(C) {
+ fo[C ? "unshift" : "push"](() => {
+ L = C, t(21, L);
});
}
- return a.$$set = (C) => {
- "height" in C && t(2, l = C.height), "min_height" in C && t(3, o = C.min_height), "max_height" in C && t(4, s = C.max_height), "width" in C && t(5, r = C.width), "elem_id" in C && t(6, u = C.elem_id), "elem_classes" in C && t(7, _ = C.elem_classes), "variant" in C && t(8, d = C.variant), "border_mode" in C && t(9, c = C.border_mode), "padding" in C && t(10, h = C.padding), "type" in C && t(28, g = C.type), "test_id" in C && t(11, p = C.test_id), "explicit_call" in C && t(12, D = C.explicit_call), "container" in C && t(13, k = C.container), "visible" in C && t(14, m = C.visible), "allow_overflow" in C && t(15, f = C.allow_overflow), "overflow_behavior" in C && t(16, v = C.overflow_behavior), "scale" in C && t(17, y = C.scale), "min_width" in C && t(18, b = C.min_width), "flex" in C && t(1, F = C.flex), "resizable" in C && t(19, A = C.resizable), "rtl" in C && t(20, E = C.rtl), "fullscreen" in C && t(0, q = C.fullscreen), "$$scope" in C && t(30, i = C.$$scope);
- }, a.$$.update = () => {
- a.$$.dirty[0] & /*fullscreen, old_fullscreen, element*/
- 538968065 && q !== w && (t(29, w = q), q ? (t(24, ue = $.getBoundingClientRect()), t(22, _e = $.offsetHeight), t(23, Me = $.offsetWidth), window.addEventListener("keydown", nt)) : (t(24, ue = null), window.removeEventListener("keydown", nt))), a.$$.dirty[0] & /*visible*/
- 16384 && (m || t(1, F = !1));
+ return o.$$set = (C) => {
+ "height" in C && t(2, i = C.height), "min_height" in C && t(3, a = C.min_height), "max_height" in C && t(4, s = C.max_height), "width" in C && t(5, r = C.width), "elem_id" in C && t(6, u = C.elem_id), "elem_classes" in C && t(7, _ = C.elem_classes), "variant" in C && t(8, d = C.variant), "border_mode" in C && t(9, c = C.border_mode), "padding" in C && t(10, h = C.padding), "type" in C && t(28, m = C.type), "test_id" in C && t(11, p = C.test_id), "explicit_call" in C && t(12, b = C.explicit_call), "container" in C && t(13, k = C.container), "visible" in C && t(14, g = C.visible), "allow_overflow" in C && t(15, f = C.allow_overflow), "overflow_behavior" in C && t(16, v = C.overflow_behavior), "scale" in C && t(17, D = C.scale), "min_width" in C && t(18, w = C.min_width), "flex" in C && t(1, F = C.flex), "resizable" in C && t(19, A = C.resizable), "rtl" in C && t(20, y = C.rtl), "fullscreen" in C && t(0, T = C.fullscreen), "$$scope" in C && t(30, l = C.$$scope);
+ }, o.$$.update = () => {
+ o.$$.dirty[0] & /*fullscreen, old_fullscreen, element*/
+ 538968065 && T !== E && (t(29, E = T), T ? (t(24, he = L.getBoundingClientRect()), t(22, $ = L.offsetHeight), t(23, ue = L.offsetWidth), window.addEventListener("keydown", lt)) : (t(24, he = null), window.removeEventListener("keydown", lt))), o.$$.dirty[0] & /*visible*/
+ 16384 && (g || t(1, F = !1));
}, [
- q,
+ T,
F,
- l,
- o,
+ i,
+ a,
s,
r,
u,
@@ -601,37 +601,37 @@ function va(a, e, t) {
c,
h,
p,
- D,
+ b,
k,
- m,
+ g,
f,
v,
- y,
- b,
+ D,
+ w,
A,
- E,
+ y,
+ L,
$,
- _e,
- Me,
ue,
- ge,
- Z,
- se,
- g,
- w,
- i,
+ he,
+ B,
+ K,
+ _e,
+ m,
+ E,
+ l,
n,
- Se
+ ze
];
}
-class ba extends la {
+class Co extends _o {
constructor(e) {
- super(), ca(
+ super(), vo(
this,
e,
- va,
- ga,
- ha,
+ $o,
+ Fo,
+ yo,
{
height: 2,
min_height: 3,
@@ -661,7 +661,7 @@ class ba extends la {
);
}
}
-function Nn() {
+function jn() {
return {
async: !1,
breaks: !1,
@@ -675,136 +675,136 @@ function Nn() {
walkTokens: null
};
}
-let ht = Nn();
-function Al(a) {
- ht = a;
+let gt = jn();
+function Il(o) {
+ gt = o;
}
-const Sl = /[&<>"']/, Da = new RegExp(Sl.source, "g"), Bl = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ya = new RegExp(Bl.source, "g"), wa = {
+const Rl = /[&<>"']/, Eo = new RegExp(Rl.source, "g"), Ll = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ao = new RegExp(Ll.source, "g"), So = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
-}, ti = (a) => wa[a];
-function fe(a, e) {
+}, ni = (o) => So[o];
+function be(o, e) {
if (e) {
- if (Sl.test(a))
- return a.replace(Da, ti);
- } else if (Bl.test(a))
- return a.replace(ya, ti);
- return a;
-}
-const ka = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
-function Fa(a) {
- return a.replace(ka, (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 $a = /(^|[^\[])\^/g;
-function O(a, e) {
- let t = typeof a == "string" ? a : a.source;
+ if (Rl.test(o))
+ return o.replace(Eo, ni);
+ } else if (Ll.test(o))
+ return o.replace(Ao, ni);
+ return o;
+}
+const qo = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
+function Bo(o) {
+ return o.replace(qo, (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 To = /(^|[^\[])\^/g;
+function N(o, e) {
+ let t = typeof o == "string" ? o : o.source;
e = e || "";
const n = {
- replace: (i, l) => {
- let o = typeof l == "string" ? l : l.source;
- return o = o.replace($a, "$1"), t = t.replace(i, o), n;
+ replace: (l, i) => {
+ let a = typeof i == "string" ? i : i.source;
+ return a = a.replace(To, "$1"), t = t.replace(l, a), n;
},
getRegex: () => new RegExp(t, e)
};
return n;
}
-function ni(a) {
+function ii(o) {
try {
- a = encodeURI(a).replace(/%25/g, "%");
+ o = encodeURI(o).replace(/%25/g, "%");
} catch {
return null;
}
- return a;
+ return o;
}
-const Bt = { exec: () => null };
-function ii(a, e) {
- const t = a.replace(/\|/g, (l, o, s) => {
- let r = !1, u = o;
+const zt = { exec: () => null };
+function li(o, e) {
+ const t = o.replace(/\|/g, (i, a, s) => {
+ let r = !1, u = a;
for (; --u >= 0 && s[u] === "\\"; )
r = !r;
return r ? "|" : " |";
}), n = t.split(/ \|/);
- let i = 0;
+ let l = 0;
if (n[0].trim() || n.shift(), n.length > 0 && !n[n.length - 1].trim() && n.pop(), e)
if (n.length > e)
n.splice(e);
else
for (; n.length < e; )
n.push("");
- for (; i < n.length; i++)
- n[i] = n[i].trim().replace(/\\\|/g, "|");
+ for (; l < n.length; l++)
+ n[l] = n[l].trim().replace(/\\\|/g, "|");
return n;
}
-function Kt(a, e, t) {
- const n = a.length;
+function Qt(o, e, t) {
+ const n = o.length;
if (n === 0)
return "";
- let i = 0;
- for (; i < n && a.charAt(n - i - 1) === e; )
- i++;
- return a.slice(0, n - i);
+ let l = 0;
+ for (; l < n && o.charAt(n - l - 1) === e; )
+ l++;
+ return o.slice(0, n - l);
}
-function Ca(a, e) {
- if (a.indexOf(e[1]) === -1)
+function zo(o, e) {
+ if (o.indexOf(e[1]) === -1)
return -1;
let t = 0;
- for (let n = 0; n < a.length; n++)
- if (a[n] === "\\")
+ for (let n = 0; n < o.length; n++)
+ if (o[n] === "\\")
n++;
- else if (a[n] === e[0])
+ else if (o[n] === e[0])
t++;
- else if (a[n] === e[1] && (t--, t < 0))
+ else if (o[n] === e[1] && (t--, t < 0))
return n;
return -1;
}
-function li(a, e, t, n) {
- const i = e.href, l = e.title ? fe(e.title) : null, o = a[1].replace(/\\([\[\]])/g, "$1");
- if (a[0].charAt(0) !== "!") {
+function oi(o, e, t, n) {
+ const l = e.href, i = e.title ? be(e.title) : null, a = o[1].replace(/\\([\[\]])/g, "$1");
+ if (o[0].charAt(0) !== "!") {
n.state.inLink = !0;
const s = {
type: "link",
raw: t,
- href: i,
- title: l,
- text: o,
- tokens: n.inlineTokens(o)
+ href: l,
+ title: i,
+ text: a,
+ tokens: n.inlineTokens(a)
};
return n.state.inLink = !1, s;
}
return {
type: "image",
raw: t,
- href: i,
- title: l,
- text: fe(o)
+ href: l,
+ title: i,
+ text: be(a)
};
}
-function Ea(a, e) {
- const t = a.match(/^(\s+)(?:```)/);
+function Io(o, e) {
+ const t = o.match(/^(\s+)(?:```)/);
if (t === null)
return e;
const n = t[1];
return e.split(`
-`).map((i) => {
- const l = i.match(/^\s+/);
- if (l === null)
- return i;
- const [o] = l;
- return o.length >= n.length ? i.slice(n.length) : i;
+`).map((l) => {
+ const i = l.match(/^\s+/);
+ if (i === null)
+ return l;
+ const [a] = i;
+ return a.length >= n.length ? l.slice(n.length) : l;
}).join(`
`);
}
class _n {
// set by the lexer
constructor(e) {
- M(this, "options");
- M(this, "rules");
+ H(this, "options");
+ H(this, "rules");
// set by the lexer
- M(this, "lexer");
- this.options = e || ht;
+ H(this, "lexer");
+ this.options = e || gt;
}
space(e) {
const t = this.rules.block.newline.exec(e);
@@ -822,7 +822,7 @@ class _n {
type: "code",
raw: t[0],
codeBlockStyle: "indented",
- text: this.options.pedantic ? n : Kt(n, `
+ text: this.options.pedantic ? n : Qt(n, `
`)
};
}
@@ -830,12 +830,12 @@ class _n {
fences(e) {
const t = this.rules.block.fences.exec(e);
if (t) {
- const n = t[0], i = Ea(n, t[3] || "");
+ const n = t[0], l = Io(n, t[3] || "");
return {
type: "code",
raw: n,
lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
- text: i
+ text: l
};
}
}
@@ -844,8 +844,8 @@ class _n {
if (t) {
let n = t[2].trim();
if (/#$/.test(n)) {
- const i = Kt(n, "#");
- (this.options.pedantic || !i || / $/.test(i)) && (n = i.trim());
+ const l = Qt(n, "#");
+ (this.options.pedantic || !l || / $/.test(l)) && (n = l.trim());
}
return {
type: "heading",
@@ -869,15 +869,15 @@ class _n {
if (t) {
let n = t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, `
$1`);
- n = Kt(n.replace(/^ *>[ \t]?/gm, ""), `
+ n = Qt(n.replace(/^ *>[ \t]?/gm, ""), `
`);
- const i = this.lexer.state.top;
+ const l = this.lexer.state.top;
this.lexer.state.top = !0;
- const l = this.lexer.blockTokens(n);
- return this.lexer.state.top = i, {
+ const i = this.lexer.blockTokens(n);
+ return this.lexer.state.top = l, {
type: "blockquote",
raw: t[0],
- tokens: l,
+ tokens: i,
text: n
};
}
@@ -886,70 +886,70 @@ class _n {
let t = this.rules.block.list.exec(e);
if (t) {
let n = t[1].trim();
- const i = n.length > 1, l = {
+ const l = n.length > 1, i = {
type: "list",
raw: "",
- ordered: i,
- start: i ? +n.slice(0, -1) : "",
+ ordered: l,
+ start: l ? +n.slice(0, -1) : "",
loose: !1,
items: []
};
- n = i ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = i ? n : "[*+-]");
- const o = new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);
+ n = l ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = l ? n : "[*+-]");
+ const a = new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);
let s = "", r = "", u = !1;
for (; e; ) {
let _ = !1;
- if (!(t = o.exec(e)) || this.rules.block.hr.test(e))
+ if (!(t = a.exec(e)) || this.rules.block.hr.test(e))
break;
s = t[0], e = e.substring(s.length);
let d = t[2].split(`
`, 1)[0].replace(/^\t+/, (k) => " ".repeat(3 * k.length)), c = e.split(`
`, 1)[0], h = 0;
this.options.pedantic ? (h = 2, r = d.trimStart()) : (h = t[2].search(/[^ ]/), h = h > 4 ? 1 : h, r = d.slice(h), h += t[1].length);
- let g = !1;
+ let m = !1;
if (!d && /^ *$/.test(c) && (s += c + `
`, e = e.substring(c.length + 1), _ = !0), !_) {
- const k = new RegExp(`^ {0,${Math.min(3, h - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), m = new RegExp(`^ {0,${Math.min(3, h - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), f = new RegExp(`^ {0,${Math.min(3, h - 1)}}(?:\`\`\`|~~~)`), v = new RegExp(`^ {0,${Math.min(3, h - 1)}}#`);
+ const k = new RegExp(`^ {0,${Math.min(3, h - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), g = new RegExp(`^ {0,${Math.min(3, h - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), f = new RegExp(`^ {0,${Math.min(3, h - 1)}}(?:\`\`\`|~~~)`), v = new RegExp(`^ {0,${Math.min(3, h - 1)}}#`);
for (; e; ) {
- const y = e.split(`
+ const D = e.split(`
`, 1)[0];
- if (c = y, this.options.pedantic && (c = c.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), f.test(c) || v.test(c) || k.test(c) || m.test(e))
+ if (c = D, this.options.pedantic && (c = c.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), f.test(c) || v.test(c) || k.test(c) || g.test(e))
break;
if (c.search(/[^ ]/) >= h || !c.trim())
r += `
` + c.slice(h);
else {
- if (g || d.search(/[^ ]/) >= 4 || f.test(d) || v.test(d) || m.test(d))
+ if (m || d.search(/[^ ]/) >= 4 || f.test(d) || v.test(d) || g.test(d))
break;
r += `
` + c;
}
- !g && !c.trim() && (g = !0), s += y + `
-`, e = e.substring(y.length + 1), d = c.slice(h);
+ !m && !c.trim() && (m = !0), s += D + `
+`, e = e.substring(D.length + 1), d = c.slice(h);
}
}
- l.loose || (u ? l.loose = !0 : /\n *\n *$/.test(s) && (u = !0));
- let p = null, D;
- this.options.gfm && (p = /^\[[ xX]\] /.exec(r), p && (D = p[0] !== "[ ] ", r = r.replace(/^\[[ xX]\] +/, ""))), l.items.push({
+ i.loose || (u ? i.loose = !0 : /\n *\n *$/.test(s) && (u = !0));
+ let p = null, b;
+ this.options.gfm && (p = /^\[[ xX]\] /.exec(r), p && (b = p[0] !== "[ ] ", r = r.replace(/^\[[ xX]\] +/, ""))), i.items.push({
type: "list_item",
raw: s,
task: !!p,
- checked: D,
+ checked: b,
loose: !1,
text: r,
tokens: []
- }), l.raw += s;
+ }), i.raw += s;
}
- l.items[l.items.length - 1].raw = s.trimEnd(), l.items[l.items.length - 1].text = r.trimEnd(), l.raw = l.raw.trimEnd();
- for (let _ = 0; _ < l.items.length; _++)
- if (this.lexer.state.top = !1, l.items[_].tokens = this.lexer.blockTokens(l.items[_].text, []), !l.loose) {
- const d = l.items[_].tokens.filter((h) => h.type === "space"), c = d.length > 0 && d.some((h) => /\n.*\n/.test(h.raw));
- l.loose = c;
+ i.items[i.items.length - 1].raw = s.trimEnd(), i.items[i.items.length - 1].text = r.trimEnd(), i.raw = i.raw.trimEnd();
+ for (let _ = 0; _ < i.items.length; _++)
+ if (this.lexer.state.top = !1, i.items[_].tokens = this.lexer.blockTokens(i.items[_].text, []), !i.loose) {
+ const d = i.items[_].tokens.filter((h) => h.type === "space"), c = d.length > 0 && d.some((h) => /\n.*\n/.test(h.raw));
+ i.loose = c;
}
- if (l.loose)
- for (let _ = 0; _ < l.items.length; _++)
- l.items[_].loose = !0;
- return l;
+ if (i.loose)
+ for (let _ = 0; _ < i.items.length; _++)
+ i.items[_].loose = !0;
+ return i;
}
}
html(e) {
@@ -966,13 +966,13 @@ class _n {
def(e) {
const t = this.rules.block.def.exec(e);
if (t) {
- const n = t[1].toLowerCase().replace(/\s+/g, " "), i = t[2] ? t[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", l = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
+ const n = t[1].toLowerCase().replace(/\s+/g, " "), l = t[2] ? t[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", i = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
return {
type: "def",
tag: n,
raw: t[0],
- href: i,
- title: l
+ href: l,
+ title: i
};
}
}
@@ -980,28 +980,28 @@ class _n {
const t = this.rules.block.table.exec(e);
if (!t || !/[:|]/.test(t[2]))
return;
- const n = ii(t[1]), i = t[2].replace(/^\||\| *$/g, "").split("|"), l = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
-`) : [], o = {
+ const n = li(t[1]), l = t[2].replace(/^\||\| *$/g, "").split("|"), i = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
+`) : [], a = {
type: "table",
raw: t[0],
header: [],
align: [],
rows: []
};
- if (n.length === i.length) {
- for (const s of i)
- /^ *-+: *$/.test(s) ? o.align.push("right") : /^ *:-+: *$/.test(s) ? o.align.push("center") : /^ *:-+ *$/.test(s) ? o.align.push("left") : o.align.push(null);
+ if (n.length === l.length) {
+ for (const s of l)
+ /^ *-+: *$/.test(s) ? a.align.push("right") : /^ *:-+: *$/.test(s) ? a.align.push("center") : /^ *:-+ *$/.test(s) ? a.align.push("left") : a.align.push(null);
for (const s of n)
- o.header.push({
+ a.header.push({
text: s,
tokens: this.lexer.inline(s)
});
- for (const s of l)
- o.rows.push(ii(s, o.header.length).map((r) => ({
+ for (const s of i)
+ a.rows.push(li(s, a.header.length).map((r) => ({
text: r,
tokens: this.lexer.inline(r)
})));
- return o;
+ return a;
}
}
lheading(e) {
@@ -1044,7 +1044,7 @@ class _n {
return {
type: "escape",
raw: t[0],
- text: fe(t[1])
+ text: be(t[1])
};
}
tag(e) {
@@ -1066,66 +1066,66 @@ class _n {
if (!this.options.pedantic && /^$/.test(n))
return;
- const o = Kt(n.slice(0, -1), "\\");
- if ((n.length - o.length) % 2 === 0)
+ const a = Qt(n.slice(0, -1), "\\");
+ if ((n.length - a.length) % 2 === 0)
return;
} else {
- const o = Ca(t[2], "()");
- if (o > -1) {
- const r = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o;
- t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, r).trim(), t[3] = "";
+ const a = zo(t[2], "()");
+ if (a > -1) {
+ const r = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + a;
+ t[2] = t[2].substring(0, a), t[0] = t[0].substring(0, r).trim(), t[3] = "";
}
}
- let i = t[2], l = "";
+ let l = t[2], i = "";
if (this.options.pedantic) {
- const o = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);
- o && (i = o[1], l = o[3]);
+ const a = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);
+ a && (l = a[1], i = a[3]);
} else
- l = t[3] ? t[3].slice(1, -1) : "";
- return i = i.trim(), /^$/.test(n) ? i = i.slice(1) : i = i.slice(1, -1)), li(t, {
- href: i && i.replace(this.rules.inline.anyPunctuation, "$1"),
- title: l && l.replace(this.rules.inline.anyPunctuation, "$1")
+ i = t[3] ? t[3].slice(1, -1) : "";
+ return l = l.trim(), /^$/.test(n) ? l = l.slice(1) : l = l.slice(1, -1)), oi(t, {
+ href: l && l.replace(this.rules.inline.anyPunctuation, "$1"),
+ title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
}, t[0], this.lexer);
}
}
reflink(e, t) {
let n;
if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
- const i = (n[2] || n[1]).replace(/\s+/g, " "), l = t[i.toLowerCase()];
- if (!l) {
- const o = n[0].charAt(0);
+ const l = (n[2] || n[1]).replace(/\s+/g, " "), i = t[l.toLowerCase()];
+ if (!i) {
+ const a = n[0].charAt(0);
return {
type: "text",
- raw: o,
- text: o
+ raw: a,
+ text: a
};
}
- return li(n, l, n[0], this.lexer);
+ return oi(n, i, n[0], this.lexer);
}
}
emStrong(e, t, n = "") {
- let i = this.rules.inline.emStrongLDelim.exec(e);
- if (!i || i[3] && n.match(/[\p{L}\p{N}]/u))
+ let l = this.rules.inline.emStrongLDelim.exec(e);
+ if (!l || l[3] && n.match(/[\p{L}\p{N}]/u))
return;
- if (!(i[1] || i[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
- const o = [...i[0]].length - 1;
- let s, r, u = o, _ = 0;
- const d = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
- for (d.lastIndex = 0, t = t.slice(-1 * e.length + o); (i = d.exec(t)) != null; ) {
- if (s = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !s)
+ if (!(l[1] || l[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
+ const a = [...l[0]].length - 1;
+ let s, r, u = a, _ = 0;
+ const d = l[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
+ for (d.lastIndex = 0, t = t.slice(-1 * e.length + a); (l = d.exec(t)) != null; ) {
+ if (s = l[1] || l[2] || l[3] || l[4] || l[5] || l[6], !s)
continue;
- if (r = [...s].length, i[3] || i[4]) {
+ if (r = [...s].length, l[3] || l[4]) {
u += r;
continue;
- } else if ((i[5] || i[6]) && o % 3 && !((o + r) % 3)) {
+ } else if ((l[5] || l[6]) && a % 3 && !((a + r) % 3)) {
_ += r;
continue;
}
if (u -= r, u > 0)
continue;
r = Math.min(r, r + u + _);
- const c = [...i[0]][0].length, h = e.slice(0, o + i.index + c + r);
- if (Math.min(o, r) % 2) {
+ const c = [...l[0]][0].length, h = e.slice(0, a + l.index + c + r);
+ if (Math.min(a, r) % 2) {
const p = h.slice(1, -1);
return {
type: "em",
@@ -1134,12 +1134,12 @@ class _n {
tokens: this.lexer.inlineTokens(p)
};
}
- const g = h.slice(2, -2);
+ const m = h.slice(2, -2);
return {
type: "strong",
raw: h,
- text: g,
- tokens: this.lexer.inlineTokens(g)
+ text: m,
+ tokens: this.lexer.inlineTokens(m)
};
}
}
@@ -1148,8 +1148,8 @@ class _n {
const t = this.rules.inline.code.exec(e);
if (t) {
let n = t[2].replace(/\n/g, " ");
- const i = /[^ ]/.test(n), l = /^ /.test(n) && / $/.test(n);
- return i && l && (n = n.substring(1, n.length - 1)), n = fe(n, !0), {
+ const l = /[^ ]/.test(n), i = /^ /.test(n) && / $/.test(n);
+ return l && i && (n = n.substring(1, n.length - 1)), n = be(n, !0), {
type: "codespan",
raw: t[0],
text: n
@@ -1177,12 +1177,12 @@ class _n {
autolink(e) {
const t = this.rules.inline.autolink.exec(e);
if (t) {
- let n, i;
- return t[2] === "@" ? (n = fe(t[1]), i = "mailto:" + n) : (n = fe(t[1]), i = n), {
+ let n, l;
+ return t[2] === "@" ? (n = be(t[1]), l = "mailto:" + n) : (n = be(t[1]), l = n), {
type: "link",
raw: t[0],
text: n,
- href: i,
+ href: l,
tokens: [
{
type: "text",
@@ -1197,26 +1197,26 @@ class _n {
var n;
let t;
if (t = this.rules.inline.url.exec(e)) {
- let i, l;
+ let l, i;
if (t[2] === "@")
- i = fe(t[0]), l = "mailto:" + i;
+ l = be(t[0]), i = "mailto:" + l;
else {
- let o;
+ let a;
do
- o = t[0], t[0] = ((n = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : n[0]) ?? "";
- while (o !== t[0]);
- i = fe(t[0]), t[1] === "www." ? l = "http://" + t[0] : l = t[0];
+ a = t[0], t[0] = ((n = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : n[0]) ?? "";
+ while (a !== t[0]);
+ l = be(t[0]), t[1] === "www." ? i = "http://" + t[0] : i = t[0];
}
return {
type: "link",
raw: t[0],
- text: i,
- href: l,
+ text: l,
+ href: i,
tokens: [
{
type: "text",
- raw: i,
- text: i
+ raw: l,
+ text: l
}
]
};
@@ -1226,7 +1226,7 @@ class _n {
const t = this.rules.inline.text.exec(e);
if (t) {
let n;
- return this.lexer.state.inRawBlock ? n = t[0] : n = fe(t[0]), {
+ return this.lexer.state.inRawBlock ? n = t[0] : n = be(t[0]), {
type: "text",
raw: t[0],
text: n
@@ -1234,118 +1234,118 @@ class _n {
}
}
}
-const Aa = /^(?: *(?:\n|$))+/, Sa = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ba = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Gt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, qa = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ql = /(?:[*+-]|\d{1,9}[.)])/, Tl = O(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ql).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(), jn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ta = /^[^\n]+/, Hn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, za = O(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Hn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ia = O(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ql).getRegex(), hn = "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", xn = /|$))/, Ra = O("^ {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", xn).replace("tag", hn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), zl = O(jn).replace("hr", Gt).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", hn).getRegex(), La = O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", zl).getRegex(), Vn = {
- blockquote: La,
- code: Sa,
- def: za,
- fences: Ba,
- heading: qa,
- hr: Gt,
- html: Ra,
- lheading: Tl,
- list: Ia,
- newline: Aa,
- paragraph: zl,
- table: Bt,
- text: Ta
-}, ai = O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Gt).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", hn).getRegex(), Oa = {
- ...Vn,
+const Ro = /^(?: *(?:\n|$))+/, Lo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Oo = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, xt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Po = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ol = /(?:[*+-]|\d{1,9}[.)])/, Pl = N(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Ol).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(), Vn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Mo = /^[^\n]+/, Hn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, No = N(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Hn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), jo = N(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ol).getRegex(), pn = "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", Gn = /|$))/, Vo = N("^ {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", Gn).replace("tag", pn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ml = N(Vn).replace("hr", xt).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", pn).getRegex(), Ho = N(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ml).getRegex(), Un = {
+ blockquote: Ho,
+ code: Lo,
+ def: No,
+ fences: Oo,
+ heading: Po,
+ hr: xt,
+ html: Vo,
+ lheading: Pl,
+ list: jo,
+ newline: Ro,
+ paragraph: Ml,
+ table: zt,
+ text: Mo
+}, ai = N("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", xt).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", pn).getRegex(), Go = {
+ ...Un,
table: ai,
- paragraph: O(jn).replace("hr", Gt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ai).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", hn).getRegex()
-}, Pa = {
- ...Vn,
- html: O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", xn).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(),
+ paragraph: N(Vn).replace("hr", xt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ai).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", pn).getRegex()
+}, Uo = {
+ ...Un,
+ html: N(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Gn).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: Bt,
+ fences: zt,
// fences not supported
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
- paragraph: O(jn).replace("hr", Gt).replace("heading", ` *#{1,6} *[^
-]`).replace("lheading", Tl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
-}, Il = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ma = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Rl = /^( {2,}|\\)\n(?!\s*$)/, Na = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, xa = O(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Zt).getRegex(), Va = O("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Zt).getRegex(), Ua = O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Zt).getRegex(), Ga = O(/\\([punct])/, "gu").replace(/punct/g, Zt).getRegex(), Za = O(/^<(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(), Xa = O(xn).replace("(?:-->|$)", "-->").getRegex(), Ya = O("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", Xa).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), cn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Wa = O(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", cn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ll = O(/^!?\[(label)\]\[(ref)\]/).replace("label", cn).replace("ref", Hn).getRegex(), Ol = O(/^!?\[(ref)\](?:\[\])?/).replace("ref", Hn).getRegex(), Ka = O("reflink|nolink(?!\\()", "g").replace("reflink", Ll).replace("nolink", Ol).getRegex(), Un = {
- _backpedal: Bt,
+ paragraph: N(Vn).replace("hr", xt).replace("heading", ` *#{1,6} *[^
+]`).replace("lheading", Pl).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
+}, Nl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Zo = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, jl = /^( {2,}|\\)\n(?!\s*$)/, xo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Wo = N(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Xt).getRegex(), Ko = N("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Xt).getRegex(), Qo = N("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Xt).getRegex(), Jo = N(/\\([punct])/, "gu").replace(/punct/g, Xt).getRegex(), ea = N(/^<(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(), ta = N(Gn).replace("(?:-->|$)", "-->").getRegex(), na = N("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", ta).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), cn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, ia = N(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", cn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Vl = N(/^!?\[(label)\]\[(ref)\]/).replace("label", cn).replace("ref", Hn).getRegex(), Hl = N(/^!?\[(ref)\](?:\[\])?/).replace("ref", Hn).getRegex(), la = N("reflink|nolink(?!\\()", "g").replace("reflink", Vl).replace("nolink", Hl).getRegex(), Zn = {
+ _backpedal: zt,
// only used for GFM url
- anyPunctuation: Ga,
- autolink: Za,
- blockSkip: Ha,
- br: Rl,
- code: Ma,
- del: Bt,
- emStrongLDelim: xa,
- emStrongRDelimAst: Va,
- emStrongRDelimUnd: Ua,
- escape: Il,
- link: Wa,
- nolink: Ol,
- punctuation: ja,
- reflink: Ll,
- reflinkSearch: Ka,
- tag: Ya,
- text: Na,
- url: Bt
-}, Qa = {
- ...Un,
- link: O(/^!?\[(label)\]\((.*?)\)/).replace("label", cn).getRegex(),
- reflink: O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", cn).getRegex()
-}, En = {
- ...Un,
- escape: O(Il).replace("])", "~|])").getRegex(),
- url: O(/^((?: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: Jo,
+ autolink: ea,
+ blockSkip: Yo,
+ br: jl,
+ code: Zo,
+ del: zt,
+ emStrongLDelim: Wo,
+ emStrongRDelimAst: Ko,
+ emStrongRDelimUnd: Qo,
+ escape: Nl,
+ link: ia,
+ nolink: Hl,
+ punctuation: Xo,
+ reflink: Vl,
+ reflinkSearch: la,
+ tag: na,
+ text: xo,
+ url: zt
+}, oa = {
+ ...Zn,
+ link: N(/^!?\[(label)\]\((.*?)\)/).replace("label", cn).getRegex(),
+ reflink: N(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", cn).getRegex()
+}, An = {
+ ...Zn,
+ escape: N(Nl).replace("])", "~|])").getRegex(),
+ url: N(/^((?: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]*?(?:(?=[\\ r + " ".repeat(u.length));
- let n, i, l, o;
+ let n, l, i, a;
for (; e; )
if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((s) => (n = s.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) {
if (n = this.tokenizer.space(e)) {
@@ -1370,9 +1370,9 @@ class He {
continue;
}
if (n = this.tokenizer.code(e)) {
- e = e.substring(n.raw.length), i = t[t.length - 1], i && (i.type === "paragraph" || i.type === "text") ? (i.raw += `
-` + n.raw, i.text += `
-` + n.text, this.inlineQueue[this.inlineQueue.length - 1].src = i.text) : t.push(n);
+ e = e.substring(n.raw.length), l = t[t.length - 1], l && (l.type === "paragraph" || l.type === "text") ? (l.raw += `
+` + n.raw, l.text += `
+` + n.text, this.inlineQueue[this.inlineQueue.length - 1].src = l.text) : t.push(n);
continue;
}
if (n = this.tokenizer.fences(e)) {
@@ -1400,9 +1400,9 @@ class He {
continue;
}
if (n = this.tokenizer.def(e)) {
- e = e.substring(n.raw.length), i = t[t.length - 1], i && (i.type === "paragraph" || i.type === "text") ? (i.raw += `
-` + n.raw, i.text += `
-` + n.raw, this.inlineQueue[this.inlineQueue.length - 1].src = i.text) : this.tokens.links[n.tag] || (this.tokens.links[n.tag] = {
+ e = e.substring(n.raw.length), l = t[t.length - 1], l && (l.type === "paragraph" || l.type === "text") ? (l.raw += `
+` + n.raw, l.text += `
+` + n.raw, this.inlineQueue[this.inlineQueue.length - 1].src = l.text) : this.tokens.links[n.tag] || (this.tokens.links[n.tag] = {
href: n.href,
title: n.title
});
@@ -1416,24 +1416,24 @@ class He {
e = e.substring(n.raw.length), t.push(n);
continue;
}
- if (l = e, this.options.extensions && this.options.extensions.startBlock) {
+ if (i = e, this.options.extensions && this.options.extensions.startBlock) {
let s = 1 / 0;
const r = e.slice(1);
let u;
this.options.extensions.startBlock.forEach((_) => {
u = _.call({ lexer: this }, r), typeof u == "number" && u >= 0 && (s = Math.min(s, u));
- }), s < 1 / 0 && s >= 0 && (l = e.substring(0, s + 1));
+ }), s < 1 / 0 && s >= 0 && (i = e.substring(0, s + 1));
}
- if (this.state.top && (n = this.tokenizer.paragraph(l))) {
- i = t[t.length - 1], o && i.type === "paragraph" ? (i.raw += `
-` + n.raw, i.text += `
-` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = i.text) : t.push(n), o = l.length !== e.length, e = e.substring(n.raw.length);
+ if (this.state.top && (n = this.tokenizer.paragraph(i))) {
+ l = t[t.length - 1], a && l.type === "paragraph" ? (l.raw += `
+` + n.raw, l.text += `
+` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = l.text) : t.push(n), a = i.length !== e.length, e = e.substring(n.raw.length);
continue;
}
if (n = this.tokenizer.text(e)) {
- e = e.substring(n.raw.length), i = t[t.length - 1], i && i.type === "text" ? (i.raw += `
-` + n.raw, i.text += `
-` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = i.text) : t.push(n);
+ e = e.substring(n.raw.length), l = t[t.length - 1], l && l.type === "text" ? (l.raw += `
+` + n.raw, l.text += `
+` + n.text, this.inlineQueue.pop(), this.inlineQueue[this.inlineQueue.length - 1].src = l.text) : t.push(n);
continue;
}
if (e) {
@@ -1454,17 +1454,17 @@ class He {
* Lexing/Compiling
*/
inlineTokens(e, t = []) {
- let n, i, l, o = e, s, r, u;
+ let n, l, i, a = e, s, r, u;
if (this.tokens.links) {
const _ = Object.keys(this.tokens.links);
if (_.length > 0)
- for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(o)) != null; )
- _.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (o = o.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
+ for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(a)) != null; )
+ _.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (a = a.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
}
- for (; (s = this.tokenizer.rules.inline.blockSkip.exec(o)) != null; )
- o = o.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
- for (; (s = this.tokenizer.rules.inline.anyPunctuation.exec(o)) != null; )
- o = o.slice(0, s.index) + "++" + o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
+ for (; (s = this.tokenizer.rules.inline.blockSkip.exec(a)) != null; )
+ a = a.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
+ for (; (s = this.tokenizer.rules.inline.anyPunctuation.exec(a)) != null; )
+ a = a.slice(0, s.index) + "++" + a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
for (; e; )
if (r || (u = ""), r = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((_) => (n = _.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))) {
if (n = this.tokenizer.escape(e)) {
@@ -1472,7 +1472,7 @@ class He {
continue;
}
if (n = this.tokenizer.tag(e)) {
- e = e.substring(n.raw.length), i = t[t.length - 1], i && n.type === "text" && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n);
+ e = e.substring(n.raw.length), l = t[t.length - 1], l && n.type === "text" && l.type === "text" ? (l.raw += n.raw, l.text += n.text) : t.push(n);
continue;
}
if (n = this.tokenizer.link(e)) {
@@ -1480,10 +1480,10 @@ class He {
continue;
}
if (n = this.tokenizer.reflink(e, this.tokens.links)) {
- e = e.substring(n.raw.length), i = t[t.length - 1], i && n.type === "text" && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n);
+ e = e.substring(n.raw.length), l = t[t.length - 1], l && n.type === "text" && l.type === "text" ? (l.raw += n.raw, l.text += n.text) : t.push(n);
continue;
}
- if (n = this.tokenizer.emStrong(e, o, u)) {
+ if (n = this.tokenizer.emStrong(e, a, u)) {
e = e.substring(n.raw.length), t.push(n);
continue;
}
@@ -1507,16 +1507,16 @@ class He {
e = e.substring(n.raw.length), t.push(n);
continue;
}
- if (l = e, this.options.extensions && this.options.extensions.startInline) {
+ if (i = e, this.options.extensions && this.options.extensions.startInline) {
let _ = 1 / 0;
const d = e.slice(1);
let c;
this.options.extensions.startInline.forEach((h) => {
c = h.call({ lexer: this }, d), typeof c == "number" && c >= 0 && (_ = Math.min(_, c));
- }), _ < 1 / 0 && _ >= 0 && (l = e.substring(0, _ + 1));
+ }), _ < 1 / 0 && _ >= 0 && (i = e.substring(0, _ + 1));
}
- if (n = this.tokenizer.inlineText(l)) {
- e = e.substring(n.raw.length), n.raw.slice(-1) !== "_" && (u = n.raw.slice(-1)), r = !0, i = t[t.length - 1], i && i.type === "text" ? (i.raw += n.raw, i.text += n.text) : t.push(n);
+ if (n = this.tokenizer.inlineText(i)) {
+ e = e.substring(n.raw.length), n.raw.slice(-1) !== "_" && (u = n.raw.slice(-1)), r = !0, l = t[t.length - 1], l && l.type === "text" ? (l.raw += n.raw, l.text += n.text) : t.push(n);
continue;
}
if (e) {
@@ -1533,15 +1533,15 @@ class He {
}
class dn {
constructor(e) {
- M(this, "options");
- this.options = e || ht;
+ H(this, "options");
+ this.options = e || gt;
}
code(e, t, n) {
- var l;
- const i = (l = (t || "").match(/^\S*/)) == null ? void 0 : l[0];
+ var i;
+ const l = (i = (t || "").match(/^\S*/)) == null ? void 0 : i[0];
return e = e.replace(/\n$/, "") + `
-`, i ? '
' + (n ? e : fe(e, !0)) + `
-` : "" + (n ? e : fe(e, !0)) + `
+`, l ? '' + (n ? e : be(e, !0)) + `
+` : "" + (n ? e : be(e, !0)) + `
`;
}
blockquote(e) {
@@ -1561,9 +1561,9 @@ ${e}
`;
}
list(e, t, n) {
- const i = t ? "ol" : "ul", l = t && n !== 1 ? ' start="' + n + '"' : "";
- return "<" + i + l + `>
-` + e + "" + i + `>
+ const l = t ? "ol" : "ul", i = t && n !== 1 ? ' start="' + n + '"' : "";
+ return "<" + l + i + `>
+` + e + "" + l + `>
`;
}
listitem(e, t, n) {
@@ -1613,26 +1613,26 @@ ${e}
return `${e}`;
}
link(e, t, n) {
- const i = ni(e);
- if (i === null)
+ const l = ii(e);
+ if (l === null)
return n;
- e = i;
- let l = '" + n + "", l;
+ e = l;
+ let i = '" + n + "", i;
}
image(e, t, n) {
- const i = ni(e);
- if (i === null)
+ const l = ii(e);
+ if (l === null)
return n;
- e = i;
- let l = `
", l;
+ e = l;
+ let i = `
", i;
}
text(e) {
return e;
}
}
-class Gn {
+class xn {
// no need for block level renderers
strong(e) {
return e;
@@ -1662,40 +1662,40 @@ class Gn {
return "";
}
}
-class xe {
+class Ue {
constructor(e) {
- M(this, "options");
- M(this, "renderer");
- M(this, "textRenderer");
- this.options = e || ht, this.options.renderer = this.options.renderer || new dn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new Gn();
+ H(this, "options");
+ H(this, "renderer");
+ H(this, "textRenderer");
+ this.options = e || gt, this.options.renderer = this.options.renderer || new dn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new xn();
}
/**
* Static Parse Method
*/
static parse(e, t) {
- return new xe(t).parse(e);
+ return new Ue(t).parse(e);
}
/**
* Static Parse Inline Method
*/
static parseInline(e, t) {
- return new xe(t).parseInline(e);
+ return new Ue(t).parseInline(e);
}
/**
* Parse Loop
*/
parse(e, t = !0) {
let n = "";
- for (let i = 0; i < e.length; i++) {
- const l = e[i];
- if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[l.type]) {
- const o = l, s = this.options.extensions.renderers[o.type].call({ parser: this }, o);
- if (s !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(o.type)) {
+ for (let l = 0; l < e.length; l++) {
+ const i = e[l];
+ if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
+ const a = i, s = this.options.extensions.renderers[a.type].call({ parser: this }, a);
+ if (s !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(a.type)) {
n += s || "";
continue;
}
}
- switch (l.type) {
+ switch (i.type) {
case "space":
continue;
case "hr": {
@@ -1703,78 +1703,78 @@ class xe {
continue;
}
case "heading": {
- const o = l;
- n += this.renderer.heading(this.parseInline(o.tokens), o.depth, Fa(this.parseInline(o.tokens, this.textRenderer)));
+ const a = i;
+ n += this.renderer.heading(this.parseInline(a.tokens), a.depth, Bo(this.parseInline(a.tokens, this.textRenderer)));
continue;
}
case "code": {
- const o = l;
- n += this.renderer.code(o.text, o.lang, !!o.escaped);
+ const a = i;
+ n += this.renderer.code(a.text, a.lang, !!a.escaped);
continue;
}
case "table": {
- const o = l;
+ const a = i;
let s = "", r = "";
- for (let _ = 0; _ < o.header.length; _++)
- r += this.renderer.tablecell(this.parseInline(o.header[_].tokens), { header: !0, align: o.align[_] });
+ for (let _ = 0; _ < a.header.length; _++)
+ r += this.renderer.tablecell(this.parseInline(a.header[_].tokens), { header: !0, align: a.align[_] });
s += this.renderer.tablerow(r);
let u = "";
- for (let _ = 0; _ < o.rows.length; _++) {
- const d = o.rows[_];
+ for (let _ = 0; _ < a.rows.length; _++) {
+ const d = a.rows[_];
r = "";
for (let c = 0; c < d.length; c++)
- r += this.renderer.tablecell(this.parseInline(d[c].tokens), { header: !1, align: o.align[c] });
+ r += this.renderer.tablecell(this.parseInline(d[c].tokens), { header: !1, align: a.align[c] });
u += this.renderer.tablerow(r);
}
n += this.renderer.table(s, u);
continue;
}
case "blockquote": {
- const o = l, s = this.parse(o.tokens);
+ const a = i, s = this.parse(a.tokens);
n += this.renderer.blockquote(s);
continue;
}
case "list": {
- const o = l, s = o.ordered, r = o.start, u = o.loose;
+ const a = i, s = a.ordered, r = a.start, u = a.loose;
let _ = "";
- for (let d = 0; d < o.items.length; d++) {
- const c = o.items[d], h = c.checked, g = c.task;
+ for (let d = 0; d < a.items.length; d++) {
+ const c = a.items[d], h = c.checked, m = c.task;
let p = "";
if (c.task) {
- const D = this.renderer.checkbox(!!h);
- u ? c.tokens.length > 0 && c.tokens[0].type === "paragraph" ? (c.tokens[0].text = D + " " + c.tokens[0].text, c.tokens[0].tokens && c.tokens[0].tokens.length > 0 && c.tokens[0].tokens[0].type === "text" && (c.tokens[0].tokens[0].text = D + " " + c.tokens[0].tokens[0].text)) : c.tokens.unshift({
+ const b = this.renderer.checkbox(!!h);
+ u ? c.tokens.length > 0 && c.tokens[0].type === "paragraph" ? (c.tokens[0].text = b + " " + c.tokens[0].text, c.tokens[0].tokens && c.tokens[0].tokens.length > 0 && c.tokens[0].tokens[0].type === "text" && (c.tokens[0].tokens[0].text = b + " " + c.tokens[0].tokens[0].text)) : c.tokens.unshift({
type: "text",
- text: D + " "
- }) : p += D + " ";
+ text: b + " "
+ }) : p += b + " ";
}
- p += this.parse(c.tokens, u), _ += this.renderer.listitem(p, g, !!h);
+ p += this.parse(c.tokens, u), _ += this.renderer.listitem(p, m, !!h);
}
n += this.renderer.list(_, s, r);
continue;
}
case "html": {
- const o = l;
- n += this.renderer.html(o.text, o.block);
+ const a = i;
+ n += this.renderer.html(a.text, a.block);
continue;
}
case "paragraph": {
- const o = l;
- n += this.renderer.paragraph(this.parseInline(o.tokens));
+ const a = i;
+ n += this.renderer.paragraph(this.parseInline(a.tokens));
continue;
}
case "text": {
- let o = l, s = o.tokens ? this.parseInline(o.tokens) : o.text;
- for (; i + 1 < e.length && e[i + 1].type === "text"; )
- o = e[++i], s += `
-` + (o.tokens ? this.parseInline(o.tokens) : o.text);
+ let a = i, s = a.tokens ? this.parseInline(a.tokens) : a.text;
+ for (; l + 1 < e.length && e[l + 1].type === "text"; )
+ a = e[++l], s += `
+` + (a.tokens ? this.parseInline(a.tokens) : a.text);
n += t ? this.renderer.paragraph(s) : s;
continue;
}
default: {
- const o = 'Token with "' + l.type + '" type was not found.';
+ const a = 'Token with "' + i.type + '" type was not found.';
if (this.options.silent)
- return console.error(o), "";
- throw new Error(o);
+ return console.error(a), "";
+ throw new Error(a);
}
}
}
@@ -1786,49 +1786,49 @@ class xe {
parseInline(e, t) {
t = t || this.renderer;
let n = "";
- for (let i = 0; i < e.length; i++) {
- const l = e[i];
- if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[l.type]) {
- const o = this.options.extensions.renderers[l.type].call({ parser: this }, l);
- if (o !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(l.type)) {
- n += o || "";
+ for (let l = 0; l < e.length; l++) {
+ const i = e[l];
+ if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[i.type]) {
+ const a = this.options.extensions.renderers[i.type].call({ parser: this }, i);
+ if (a !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
+ n += a || "";
continue;
}
}
- switch (l.type) {
+ switch (i.type) {
case "escape": {
- const o = l;
- n += t.text(o.text);
+ const a = i;
+ n += t.text(a.text);
break;
}
case "html": {
- const o = l;
- n += t.html(o.text);
+ const a = i;
+ n += t.html(a.text);
break;
}
case "link": {
- const o = l;
- n += t.link(o.href, o.title, this.parseInline(o.tokens, t));
+ const a = i;
+ n += t.link(a.href, a.title, this.parseInline(a.tokens, t));
break;
}
case "image": {
- const o = l;
- n += t.image(o.href, o.title, o.text);
+ const a = i;
+ n += t.image(a.href, a.title, a.text);
break;
}
case "strong": {
- const o = l;
- n += t.strong(this.parseInline(o.tokens, t));
+ const a = i;
+ n += t.strong(this.parseInline(a.tokens, t));
break;
}
case "em": {
- const o = l;
- n += t.em(this.parseInline(o.tokens, t));
+ const a = i;
+ n += t.em(this.parseInline(a.tokens, t));
break;
}
case "codespan": {
- const o = l;
- n += t.codespan(o.text);
+ const a = i;
+ n += t.codespan(a.text);
break;
}
case "br": {
@@ -1836,30 +1836,30 @@ class xe {
break;
}
case "del": {
- const o = l;
- n += t.del(this.parseInline(o.tokens, t));
+ const a = i;
+ n += t.del(this.parseInline(a.tokens, t));
break;
}
case "text": {
- const o = l;
- n += t.text(o.text);
+ const a = i;
+ n += t.text(a.text);
break;
}
default: {
- const o = 'Token with "' + l.type + '" type was not found.';
+ const a = 'Token with "' + i.type + '" type was not found.';
if (this.options.silent)
- return console.error(o), "";
- throw new Error(o);
+ return console.error(a), "";
+ throw new Error(a);
}
}
}
return n;
}
}
-class qt {
+class It {
constructor(e) {
- M(this, "options");
- this.options = e || ht;
+ H(this, "options");
+ this.options = e || gt;
}
/**
* Process markdown before marked
@@ -1880,37 +1880,37 @@ class qt {
return e;
}
}
-M(qt, "passThroughHooks", /* @__PURE__ */ new Set([
+H(It, "passThroughHooks", /* @__PURE__ */ new Set([
"preprocess",
"postprocess",
"processAllTokens"
]));
-var ft, An, Pl;
-class eo {
+var mt, Sn, Gl;
+class sa {
constructor(...e) {
- Wn(this, ft);
- M(this, "defaults", Nn());
- M(this, "options", this.setOptions);
- M(this, "parse", Wt(this, ft, An).call(this, He.lex, xe.parse));
- M(this, "parseInline", Wt(this, ft, An).call(this, He.lexInline, xe.parseInline));
- M(this, "Parser", xe);
- M(this, "Renderer", dn);
- M(this, "TextRenderer", Gn);
- M(this, "Lexer", He);
- M(this, "Tokenizer", _n);
- M(this, "Hooks", qt);
+ Kn(this, mt);
+ H(this, "defaults", jn());
+ H(this, "options", this.setOptions);
+ H(this, "parse", Kt(this, mt, Sn).call(this, Ge.lex, Ue.parse));
+ H(this, "parseInline", Kt(this, mt, Sn).call(this, Ge.lexInline, Ue.parseInline));
+ H(this, "Parser", Ue);
+ H(this, "Renderer", dn);
+ H(this, "TextRenderer", xn);
+ H(this, "Lexer", Ge);
+ H(this, "Tokenizer", _n);
+ H(this, "Hooks", It);
this.use(...e);
}
/**
* Run callback for every token
*/
walkTokens(e, t) {
- var i, l;
+ var l, i;
let n = [];
- for (const o of e)
- switch (n = n.concat(t.call(this, o)), o.type) {
+ for (const a of e)
+ switch (n = n.concat(t.call(this, a)), a.type) {
case "table": {
- const s = o;
+ const s = a;
for (const r of s.header)
n = n.concat(this.walkTokens(r.tokens, t));
for (const r of s.rows)
@@ -1919,13 +1919,13 @@ class eo {
break;
}
case "list": {
- const s = o;
+ const s = a;
n = n.concat(this.walkTokens(s.items, t));
break;
}
default: {
- const s = o;
- (l = (i = this.defaults.extensions) == null ? void 0 : i.childTokens) != null && l[s.type] ? this.defaults.extensions.childTokens[s.type].forEach((r) => {
+ const s = a;
+ (i = (l = this.defaults.extensions) == null ? void 0 : l.childTokens) != null && i[s.type] ? this.defaults.extensions.childTokens[s.type].forEach((r) => {
const u = s[r].flat(1 / 0);
n = n.concat(this.walkTokens(u, t));
}) : s.tokens && (n = n.concat(this.walkTokens(s.tokens, t)));
@@ -1936,161 +1936,161 @@ class eo {
use(...e) {
const t = this.defaults.extensions || { renderers: {}, childTokens: {} };
return e.forEach((n) => {
- const i = { ...n };
- if (i.async = this.defaults.async || i.async || !1, n.extensions && (n.extensions.forEach((l) => {
- if (!l.name)
+ const l = { ...n };
+ if (l.async = this.defaults.async || l.async || !1, n.extensions && (n.extensions.forEach((i) => {
+ if (!i.name)
throw new Error("extension name required");
- if ("renderer" in l) {
- const o = t.renderers[l.name];
- o ? t.renderers[l.name] = function(...s) {
- let r = l.renderer.apply(this, s);
- return r === !1 && (r = o.apply(this, s)), r;
- } : t.renderers[l.name] = l.renderer;
+ if ("renderer" in i) {
+ const a = t.renderers[i.name];
+ a ? t.renderers[i.name] = function(...s) {
+ let r = i.renderer.apply(this, s);
+ return r === !1 && (r = a.apply(this, s)), r;
+ } : t.renderers[i.name] = i.renderer;
}
- if ("tokenizer" in l) {
- if (!l.level || l.level !== "block" && l.level !== "inline")
+ if ("tokenizer" in i) {
+ if (!i.level || i.level !== "block" && i.level !== "inline")
throw new Error("extension level must be 'block' or 'inline'");
- const o = t[l.level];
- o ? o.unshift(l.tokenizer) : t[l.level] = [l.tokenizer], l.start && (l.level === "block" ? t.startBlock ? t.startBlock.push(l.start) : t.startBlock = [l.start] : l.level === "inline" && (t.startInline ? t.startInline.push(l.start) : t.startInline = [l.start]));
+ const a = t[i.level];
+ a ? a.unshift(i.tokenizer) : t[i.level] = [i.tokenizer], i.start && (i.level === "block" ? t.startBlock ? t.startBlock.push(i.start) : t.startBlock = [i.start] : i.level === "inline" && (t.startInline ? t.startInline.push(i.start) : t.startInline = [i.start]));
}
- "childTokens" in l && l.childTokens && (t.childTokens[l.name] = l.childTokens);
- }), i.extensions = t), n.renderer) {
- const l = this.defaults.renderer || new dn(this.defaults);
- for (const o in n.renderer) {
- if (!(o in l))
- throw new Error(`renderer '${o}' does not exist`);
- if (o === "options")
+ "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
+ }), l.extensions = t), n.renderer) {
+ const i = this.defaults.renderer || new dn(this.defaults);
+ for (const a in n.renderer) {
+ if (!(a in i))
+ throw new Error(`renderer '${a}' does not exist`);
+ if (a === "options")
continue;
- const s = o, r = n.renderer[s], u = l[s];
- l[s] = (..._) => {
- let d = r.apply(l, _);
- return d === !1 && (d = u.apply(l, _)), d || "";
+ const s = a, r = n.renderer[s], u = i[s];
+ i[s] = (..._) => {
+ let d = r.apply(i, _);
+ return d === !1 && (d = u.apply(i, _)), d || "";
};
}
- i.renderer = l;
+ l.renderer = i;
}
if (n.tokenizer) {
- const l = this.defaults.tokenizer || new _n(this.defaults);
- for (const o in n.tokenizer) {
- if (!(o in l))
- throw new Error(`tokenizer '${o}' does not exist`);
- if (["options", "rules", "lexer"].includes(o))
+ const i = this.defaults.tokenizer || new _n(this.defaults);
+ for (const a in n.tokenizer) {
+ if (!(a in i))
+ throw new Error(`tokenizer '${a}' does not exist`);
+ if (["options", "rules", "lexer"].includes(a))
continue;
- const s = o, r = n.tokenizer[s], u = l[s];
- l[s] = (..._) => {
- let d = r.apply(l, _);
- return d === !1 && (d = u.apply(l, _)), d;
+ const s = a, r = n.tokenizer[s], u = i[s];
+ i[s] = (..._) => {
+ let d = r.apply(i, _);
+ return d === !1 && (d = u.apply(i, _)), d;
};
}
- i.tokenizer = l;
+ l.tokenizer = i;
}
if (n.hooks) {
- const l = this.defaults.hooks || new qt();
- for (const o in n.hooks) {
- if (!(o in l))
- throw new Error(`hook '${o}' does not exist`);
- if (o === "options")
+ const i = this.defaults.hooks || new It();
+ for (const a in n.hooks) {
+ if (!(a in i))
+ throw new Error(`hook '${a}' does not exist`);
+ if (a === "options")
continue;
- const s = o, r = n.hooks[s], u = l[s];
- qt.passThroughHooks.has(o) ? l[s] = (_) => {
+ const s = a, r = n.hooks[s], u = i[s];
+ It.passThroughHooks.has(a) ? i[s] = (_) => {
if (this.defaults.async)
- return Promise.resolve(r.call(l, _)).then((c) => u.call(l, c));
- const d = r.call(l, _);
- return u.call(l, d);
- } : l[s] = (..._) => {
- let d = r.apply(l, _);
- return d === !1 && (d = u.apply(l, _)), d;
+ return Promise.resolve(r.call(i, _)).then((c) => u.call(i, c));
+ const d = r.call(i, _);
+ return u.call(i, d);
+ } : i[s] = (..._) => {
+ let d = r.apply(i, _);
+ return d === !1 && (d = u.apply(i, _)), d;
};
}
- i.hooks = l;
+ l.hooks = i;
}
if (n.walkTokens) {
- const l = this.defaults.walkTokens, o = n.walkTokens;
- i.walkTokens = function(s) {
+ const i = this.defaults.walkTokens, a = n.walkTokens;
+ l.walkTokens = function(s) {
let r = [];
- return r.push(o.call(this, s)), l && (r = r.concat(l.call(this, s))), r;
+ return r.push(a.call(this, s)), i && (r = r.concat(i.call(this, s))), r;
};
}
- this.defaults = { ...this.defaults, ...i };
+ this.defaults = { ...this.defaults, ...l };
}), this;
}
setOptions(e) {
return this.defaults = { ...this.defaults, ...e }, this;
}
lexer(e, t) {
- return He.lex(e, t ?? this.defaults);
+ return Ge.lex(e, t ?? this.defaults);
}
parser(e, t) {
- return xe.parse(e, t ?? this.defaults);
+ return Ue.parse(e, t ?? this.defaults);
}
}
-ft = new WeakSet(), An = function(e, t) {
- return (n, i) => {
- const l = { ...i }, o = { ...this.defaults, ...l };
- this.defaults.async === !0 && l.async === !1 && (o.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), o.async = !0);
- const s = Wt(this, ft, Pl).call(this, !!o.silent, !!o.async);
+mt = new WeakSet(), Sn = function(e, t) {
+ return (n, l) => {
+ const i = { ...l }, a = { ...this.defaults, ...i };
+ this.defaults.async === !0 && i.async === !1 && (a.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), a.async = !0);
+ const s = Kt(this, mt, Gl).call(this, !!a.silent, !!a.async);
if (typeof n > "u" || n === null)
return s(new Error("marked(): input parameter is undefined or null"));
if (typeof n != "string")
return s(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
- if (o.hooks && (o.hooks.options = o), o.async)
- return Promise.resolve(o.hooks ? o.hooks.preprocess(n) : n).then((r) => e(r, o)).then((r) => o.hooks ? o.hooks.processAllTokens(r) : r).then((r) => o.walkTokens ? Promise.all(this.walkTokens(r, o.walkTokens)).then(() => r) : r).then((r) => t(r, o)).then((r) => o.hooks ? o.hooks.postprocess(r) : r).catch(s);
+ if (a.hooks && (a.hooks.options = a), a.async)
+ return Promise.resolve(a.hooks ? a.hooks.preprocess(n) : n).then((r) => e(r, a)).then((r) => a.hooks ? a.hooks.processAllTokens(r) : r).then((r) => a.walkTokens ? Promise.all(this.walkTokens(r, a.walkTokens)).then(() => r) : r).then((r) => t(r, a)).then((r) => a.hooks ? a.hooks.postprocess(r) : r).catch(s);
try {
- o.hooks && (n = o.hooks.preprocess(n));
- let r = e(n, o);
- o.hooks && (r = o.hooks.processAllTokens(r)), o.walkTokens && this.walkTokens(r, o.walkTokens);
- let u = t(r, o);
- return o.hooks && (u = o.hooks.postprocess(u)), u;
+ a.hooks && (n = a.hooks.preprocess(n));
+ let r = e(n, a);
+ a.hooks && (r = a.hooks.processAllTokens(r)), a.walkTokens && this.walkTokens(r, a.walkTokens);
+ let u = t(r, a);
+ return a.hooks && (u = a.hooks.postprocess(u)), u;
} catch (r) {
return s(r);
}
};
-}, Pl = function(e, t) {
+}, Gl = function(e, t) {
return (n) => {
if (n.message += `
Please report this to https://github.com/markedjs/marked.`, e) {
- const i = "An error occurred:
" + fe(n.message + "", !0) + "
";
- return t ? Promise.resolve(i) : i;
+ const l = "An error occurred:
" + be(n.message + "", !0) + "
";
+ return t ? Promise.resolve(l) : l;
}
if (t)
return Promise.reject(n);
throw n;
};
};
-const _t = new eo();
-function L(a, e) {
- return _t.parse(a, e);
+const ft = new sa();
+function M(o, e) {
+ return ft.parse(o, e);
}
-L.options = L.setOptions = function(a) {
- return _t.setOptions(a), L.defaults = _t.defaults, Al(L.defaults), L;
+M.options = M.setOptions = function(o) {
+ return ft.setOptions(o), M.defaults = ft.defaults, Il(M.defaults), M;
};
-L.getDefaults = Nn;
-L.defaults = ht;
-L.use = function(...a) {
- return _t.use(...a), L.defaults = _t.defaults, Al(L.defaults), L;
+M.getDefaults = jn;
+M.defaults = gt;
+M.use = function(...o) {
+ return ft.use(...o), M.defaults = ft.defaults, Il(M.defaults), M;
};
-L.walkTokens = function(a, e) {
- return _t.walkTokens(a, e);
+M.walkTokens = function(o, e) {
+ return ft.walkTokens(o, e);
};
-L.parseInline = _t.parseInline;
-L.Parser = xe;
-L.parser = xe.parse;
-L.Renderer = dn;
-L.TextRenderer = Gn;
-L.Lexer = He;
-L.lexer = He.lex;
-L.Tokenizer = _n;
-L.Hooks = qt;
-L.parse = L;
-L.options;
-L.setOptions;
-L.use;
-L.walkTokens;
-L.parseInline;
-xe.parse;
-He.lex;
-const to = /[\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, no = Object.hasOwnProperty;
-class Ml {
+M.parseInline = ft.parseInline;
+M.Parser = Ue;
+M.parser = Ue.parse;
+M.Renderer = dn;
+M.TextRenderer = xn;
+M.Lexer = Ge;
+M.lexer = Ge.lex;
+M.Tokenizer = _n;
+M.Hooks = It;
+M.parse = M;
+M.options;
+M.setOptions;
+M.use;
+M.walkTokens;
+M.parseInline;
+Ue.parse;
+Ge.lex;
+const ra = /[\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, ua = Object.hasOwnProperty;
+class Ul {
/**
* Create a new slug class.
*/
@@ -2113,11 +2113,11 @@ class Ml {
*/
slug(e, t) {
const n = this;
- let i = io(e, t === !0);
- const l = i;
- for (; no.call(n.occurrences, i); )
- n.occurrences[l]++, i = l + "-" + n.occurrences[l];
- return n.occurrences[i] = 0, i;
+ let l = _a(e, t === !0);
+ const i = l;
+ for (; ua.call(n.occurrences, l); )
+ n.occurrences[i]++, l = i + "-" + n.occurrences[i];
+ return n.occurrences[l] = 0, l;
}
/**
* Reset - Forget all previous slugs
@@ -2128,12 +2128,12 @@ class Ml {
this.occurrences = /* @__PURE__ */ Object.create(null);
}
}
-function io(a, e) {
- return typeof a != "string" ? "" : (e || (a = a.toLowerCase()), a.replace(to, "").replace(/ /g, "-"));
+function _a(o, e) {
+ return typeof o != "string" ? "" : (e || (o = o.toLowerCase()), o.replace(ra, "").replace(/ /g, "-"));
}
-new Ml();
-var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, lo = { exports: {} };
-(function(a) {
+new Ul();
+var si = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ca = { exports: {} };
+(function(o) {
var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
/**
* Prism: Lightweight, robust, elegant syntax highlighting
@@ -2144,7 +2144,7 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @public
*/
var t = function(n) {
- var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, l = 0, o = {}, s = {
+ var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, i = 0, a = {}, s = {
/**
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -2199,8 +2199,8 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @memberof Prism
*/
util: {
- encode: function m(f) {
- return f instanceof r ? new r(f.type, m(f.content), f.alias) : Array.isArray(f) ? f.map(m) : f.replace(/&/g, "&").replace(/} */
- {}, v[b] = y;
+ if (w = s.util.objId(f), v[w])
+ return v[w];
+ D = /** @type {Record} */
+ {}, v[w] = D;
for (var F in f)
- f.hasOwnProperty(F) && (y[F] = m(f[F], v));
+ f.hasOwnProperty(F) && (D[F] = g(f[F], v));
return (
/** @type {any} */
- y
+ D
);
case "Array":
- return b = s.util.objId(f), v[b] ? v[b] : (y = [], v[b] = y, /** @type {Array} */
+ return w = s.util.objId(f), v[w] ? v[w] : (D = [], v[w] = D, /** @type {Array} */
/** @type {any} */
- f.forEach(function(A, E) {
- y[E] = m(A, v);
+ f.forEach(function(A, y) {
+ D[y] = g(A, v);
}), /** @type {any} */
- y);
+ D);
default:
return f;
}
@@ -2274,12 +2274,12 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {Element} element
* @returns {string}
*/
- getLanguage: function(m) {
- for (; m; ) {
- var f = i.exec(m.className);
+ getLanguage: function(g) {
+ for (; g; ) {
+ var f = l.exec(g.className);
if (f)
return f[1].toLowerCase();
- m = m.parentElement;
+ g = g.parentElement;
}
return "none";
},
@@ -2290,8 +2290,8 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {string} language
* @returns {void}
*/
- setLanguage: function(m, f) {
- m.className = m.className.replace(RegExp(i, "gi"), ""), m.classList.add("language-" + f);
+ setLanguage: function(g, f) {
+ g.className = g.className.replace(RegExp(l, "gi"), ""), g.classList.add("language-" + f);
},
/**
* Returns the script element that is currently executing.
@@ -2310,12 +2310,12 @@ var oi = 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) {
+ } catch (D) {
+ var g = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(D.stack) || [])[1];
+ if (g) {
var f = document.getElementsByTagName("script");
for (var v in f)
- if (f[v].src == m)
+ if (f[v].src == g)
return f[v];
}
return null;
@@ -2340,14 +2340,14 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {boolean} [defaultActivation=false]
* @returns {boolean}
*/
- isActive: function(m, f, v) {
- for (var y = "no-" + f; m; ) {
- var b = m.classList;
- if (b.contains(f))
+ isActive: function(g, f, v) {
+ for (var D = "no-" + f; g; ) {
+ var w = g.classList;
+ if (w.contains(f))
return !0;
- if (b.contains(y))
+ if (w.contains(D))
return !1;
- m = m.parentElement;
+ g = g.parentElement;
}
return !!v;
}
@@ -2363,10 +2363,10 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
/**
* The grammar for plain, unformatted text.
*/
- plain: o,
- plaintext: o,
- text: o,
- txt: o,
+ plain: a,
+ plaintext: a,
+ text: a,
+ txt: a,
/**
* Creates a deep copy of the language with the given id and appends the given tokens.
*
@@ -2395,10 +2395,10 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* 'color': /\b(?:red|green|blue)\b/
* });
*/
- extend: function(m, f) {
- var v = s.util.clone(s.languages[m]);
- for (var y in f)
- v[y] = f[y];
+ extend: function(g, f) {
+ var v = s.util.clone(s.languages[g]);
+ for (var D in f)
+ v[D] = f[D];
return v;
},
/**
@@ -2476,31 +2476,31 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @returns {Grammar} The new grammar object.
* @public
*/
- insertBefore: function(m, f, v, y) {
- y = y || /** @type {any} */
+ insertBefore: function(g, f, v, D) {
+ D = D || /** @type {any} */
s.languages;
- var b = y[m], F = {};
- for (var A in b)
- if (b.hasOwnProperty(A)) {
+ var w = D[g], F = {};
+ for (var A in w)
+ if (w.hasOwnProperty(A)) {
if (A == f)
- for (var E in v)
- v.hasOwnProperty(E) && (F[E] = v[E]);
- v.hasOwnProperty(A) || (F[A] = b[A]);
+ for (var y in v)
+ v.hasOwnProperty(y) && (F[y] = v[y]);
+ v.hasOwnProperty(A) || (F[A] = w[A]);
}
- var q = y[m];
- return y[m] = F, s.languages.DFS(s.languages, function(w, $) {
- $ === q && w != m && (this[w] = F);
+ var T = D[g];
+ return D[g] = F, s.languages.DFS(s.languages, function(E, L) {
+ L === T && E != g && (this[E] = F);
}), F;
},
// Traverse a language definition with Depth First Search
- DFS: function m(f, v, y, b) {
- b = b || {};
+ DFS: function g(f, v, D, w) {
+ w = w || {};
var F = s.util.objId;
for (var A in f)
if (f.hasOwnProperty(A)) {
- v.call(f, A, f[A], y || A);
- var E = f[A], q = s.util.type(E);
- q === "Object" && !b[F(E)] ? (b[F(E)] = !0, m(E, v, null, b)) : q === "Array" && !b[F(E)] && (b[F(E)] = !0, m(E, v, A, b));
+ v.call(f, A, f[A], D || A);
+ var y = f[A], T = s.util.type(y);
+ T === "Object" && !w[F(y)] ? (w[F(y)] = !0, g(y, v, null, w)) : T === "Array" && !w[F(y)] && (w[F(y)] = !0, g(y, v, A, w));
}
}
},
@@ -2517,8 +2517,8 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @memberof Prism
* @public
*/
- highlightAll: function(m, f) {
- s.highlightAllUnder(document, m, f);
+ highlightAll: function(g, f) {
+ s.highlightAllUnder(document, g, f);
},
/**
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -2535,15 +2535,15 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @memberof Prism
* @public
*/
- highlightAllUnder: function(m, f, v) {
- var y = {
+ highlightAllUnder: function(g, f, v) {
+ var D = {
callback: v,
- container: m,
+ container: g,
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
};
- s.hooks.run("before-highlightall", y), y.elements = Array.prototype.slice.apply(y.container.querySelectorAll(y.selector)), s.hooks.run("before-all-elements-highlight", y);
- for (var b = 0, F; F = y.elements[b++]; )
- s.highlightElement(F, f === !0, y.callback);
+ s.hooks.run("before-highlightall", D), D.elements = Array.prototype.slice.apply(D.container.querySelectorAll(D.selector)), s.hooks.run("before-all-elements-highlight", D);
+ for (var w = 0, F; F = D.elements[w++]; )
+ s.highlightElement(F, f === !0, D.callback);
},
/**
* Highlights the code inside a single element.
@@ -2573,39 +2573,39 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @memberof Prism
* @public
*/
- highlightElement: function(m, f, v) {
- var y = s.util.getLanguage(m), b = s.languages[y];
- s.util.setLanguage(m, y);
- var F = m.parentElement;
- F && F.nodeName.toLowerCase() === "pre" && s.util.setLanguage(F, y);
- var A = m.textContent, E = {
- element: m,
- language: y,
- grammar: b,
+ highlightElement: function(g, f, v) {
+ var D = s.util.getLanguage(g), w = s.languages[D];
+ s.util.setLanguage(g, D);
+ var F = g.parentElement;
+ F && F.nodeName.toLowerCase() === "pre" && s.util.setLanguage(F, D);
+ var A = g.textContent, y = {
+ element: g,
+ language: D,
+ grammar: w,
code: A
};
- function q($) {
- E.highlightedCode = $, s.hooks.run("before-insert", E), E.element.innerHTML = E.highlightedCode, s.hooks.run("after-highlight", E), s.hooks.run("complete", E), v && v.call(E.element);
+ function T(L) {
+ y.highlightedCode = L, s.hooks.run("before-insert", y), y.element.innerHTML = y.highlightedCode, s.hooks.run("after-highlight", y), s.hooks.run("complete", y), v && v.call(y.element);
}
- if (s.hooks.run("before-sanity-check", E), F = E.element.parentElement, F && F.nodeName.toLowerCase() === "pre" && !F.hasAttribute("tabindex") && F.setAttribute("tabindex", "0"), !E.code) {
- s.hooks.run("complete", E), v && v.call(E.element);
+ if (s.hooks.run("before-sanity-check", y), F = y.element.parentElement, F && F.nodeName.toLowerCase() === "pre" && !F.hasAttribute("tabindex") && F.setAttribute("tabindex", "0"), !y.code) {
+ s.hooks.run("complete", y), v && v.call(y.element);
return;
}
- if (s.hooks.run("before-highlight", E), !E.grammar) {
- q(s.util.encode(E.code));
+ if (s.hooks.run("before-highlight", y), !y.grammar) {
+ T(s.util.encode(y.code));
return;
}
if (f && n.Worker) {
- var w = new Worker(s.filename);
- w.onmessage = function($) {
- q($.data);
- }, w.postMessage(JSON.stringify({
- language: E.language,
- code: E.code,
+ var E = new Worker(s.filename);
+ E.onmessage = function(L) {
+ T(L.data);
+ }, E.postMessage(JSON.stringify({
+ language: y.language,
+ code: y.code,
immediateClose: !0
}));
} else
- q(s.highlight(E.code, E.grammar, E.language));
+ T(s.highlight(y.code, y.grammar, y.language));
},
/**
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -2627,15 +2627,15 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @example
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
*/
- highlight: function(m, f, v) {
- var y = {
- code: m,
+ highlight: function(g, f, v) {
+ var D = {
+ code: g,
grammar: f,
language: v
};
- if (s.hooks.run("before-tokenize", y), !y.grammar)
- throw new Error('The language "' + y.language + '" has no grammar.');
- return y.tokens = s.tokenize(y.code, y.grammar), s.hooks.run("after-tokenize", y), r.stringify(s.util.encode(y.tokens), y.language);
+ if (s.hooks.run("before-tokenize", D), !D.grammar)
+ throw new Error('The language "' + D.language + '" has no grammar.');
+ return D.tokens = s.tokenize(D.code, D.grammar), s.hooks.run("after-tokenize", D), r.stringify(s.util.encode(D.tokens), D.language);
},
/**
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -2661,15 +2661,15 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* }
* });
*/
- tokenize: function(m, f) {
+ tokenize: function(g, f) {
var v = f.rest;
if (v) {
- for (var y in v)
- f[y] = v[y];
+ for (var D in v)
+ f[D] = v[D];
delete f.rest;
}
- var b = new d();
- return c(b, b.head, m), _(m, b, f, b.head, 0), g(b);
+ var w = new d();
+ return c(w, w.head, g), _(g, w, f, w.head, 0), m(w);
},
/**
* @namespace
@@ -2690,9 +2690,9 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @param {HookCallback} callback The callback function which is given environment variables.
* @public
*/
- add: function(m, f) {
+ add: function(g, f) {
var v = s.hooks.all;
- v[m] = v[m] || [], v[m].push(f);
+ v[g] = v[g] || [], v[g].push(f);
},
/**
* Runs a hook invoking all registered callbacks with the given environment variables.
@@ -2703,94 +2703,94 @@ var oi = 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, f) {
- var v = s.hooks.all[m];
+ run: function(g, f) {
+ var v = s.hooks.all[g];
if (!(!v || !v.length))
- for (var y = 0, b; b = v[y++]; )
- b(f);
+ for (var D = 0, w; w = v[D++]; )
+ w(f);
}
},
Token: r
};
n.Prism = s;
- function r(m, f, v, y) {
- this.type = m, this.content = f, this.alias = v, this.length = (y || "").length | 0;
+ function r(g, f, v, D) {
+ this.type = g, this.content = f, this.alias = v, this.length = (D || "").length | 0;
}
- r.stringify = function m(f, v) {
+ r.stringify = function g(f, v) {
if (typeof f == "string")
return f;
if (Array.isArray(f)) {
- var y = "";
- return f.forEach(function(q) {
- y += m(q, v);
- }), y;
+ var D = "";
+ return f.forEach(function(T) {
+ D += g(T, v);
+ }), D;
}
- var b = {
+ var w = {
type: f.type,
- content: m(f.content, v),
+ content: g(f.content, v),
tag: "span",
classes: ["token", f.type],
attributes: {},
language: v
}, F = f.alias;
- F && (Array.isArray(F) ? Array.prototype.push.apply(b.classes, F) : b.classes.push(F)), s.hooks.run("wrap", b);
+ F && (Array.isArray(F) ? Array.prototype.push.apply(w.classes, F) : w.classes.push(F)), s.hooks.run("wrap", w);
var A = "";
- for (var E in b.attributes)
- A += " " + E + '="' + (b.attributes[E] || "").replace(/"/g, """) + '"';
- return "<" + b.tag + ' class="' + b.classes.join(" ") + '"' + A + ">" + b.content + "" + b.tag + ">";
+ for (var y in w.attributes)
+ A += " " + y + '="' + (w.attributes[y] || "").replace(/"/g, """) + '"';
+ return "<" + w.tag + ' class="' + w.classes.join(" ") + '"' + A + ">" + w.content + "" + w.tag + ">";
};
- function u(m, f, v, y) {
- m.lastIndex = f;
- var b = m.exec(v);
- if (b && y && b[1]) {
- var F = b[1].length;
- b.index += F, b[0] = b[0].slice(F);
+ function u(g, f, v, D) {
+ g.lastIndex = f;
+ var w = g.exec(v);
+ if (w && D && w[1]) {
+ var F = w[1].length;
+ w.index += F, w[0] = w[0].slice(F);
}
- return b;
+ return w;
}
- function _(m, f, v, y, b, F) {
+ function _(g, f, v, D, w, F) {
for (var A in v)
if (!(!v.hasOwnProperty(A) || !v[A])) {
- var E = v[A];
- E = Array.isArray(E) ? E : [E];
- for (var q = 0; q < E.length; ++q) {
- if (F && F.cause == A + "," + q)
+ var y = v[A];
+ y = Array.isArray(y) ? y : [y];
+ for (var T = 0; T < y.length; ++T) {
+ if (F && F.cause == A + "," + T)
return;
- var w = E[q], $ = w.inside, ge = !!w.lookbehind, _e = !!w.greedy, Me = w.alias;
- if (_e && !w.pattern.global) {
- var ue = w.pattern.toString().match(/[imsuy]*$/)[0];
- w.pattern = RegExp(w.pattern.source, ue + "g");
+ var E = y[T], L = E.inside, B = !!E.lookbehind, $ = !!E.greedy, ue = E.alias;
+ if ($ && !E.pattern.global) {
+ var he = E.pattern.toString().match(/[imsuy]*$/)[0];
+ E.pattern = RegExp(E.pattern.source, he + "g");
}
- for (var nt = w.pattern || w, Z = y.next, se = b; Z !== f.tail && !(F && se >= F.reach); se += Z.value.length, Z = Z.next) {
- var Se = Z.value;
- if (f.length > m.length)
+ for (var lt = E.pattern || E, K = D.next, _e = w; K !== f.tail && !(F && _e >= F.reach); _e += K.value.length, K = K.next) {
+ var ze = K.value;
+ if (f.length > g.length)
return;
- if (!(Se instanceof r)) {
- var C = 1, ee;
- if (_e) {
- if (ee = u(nt, se, m, ge), !ee || ee.index >= m.length)
+ if (!(ze instanceof r)) {
+ var C = 1, ie;
+ if ($) {
+ if (ie = u(lt, _e, g, B), !ie || ie.index >= g.length)
break;
- var mt = ee.index, pt = ee.index + ee[0].length, ce = se;
- for (ce += Z.value.length; mt >= ce; )
- Z = Z.next, ce += Z.value.length;
- if (ce -= Z.value.length, se = ce, Z.value instanceof r)
+ var bt = ie.index, vt = ie.index + ie[0].length, ge = _e;
+ for (ge += K.value.length; bt >= ge; )
+ K = K.next, ge += K.value.length;
+ if (ge -= K.value.length, _e = ge, K.value instanceof r)
continue;
- for (var S = Z; S !== f.tail && (ce < pt || typeof S.value == "string"); S = S.next)
- C++, ce += S.value.length;
- C--, Se = m.slice(se, ce), ee.index -= se;
- } else if (ee = u(nt, 0, Se, ge), !ee)
+ for (var S = K; S !== f.tail && (ge < vt || typeof S.value == "string"); S = S.next)
+ C++, ge += S.value.length;
+ C--, ze = g.slice(_e, ge), ie.index -= _e;
+ } else if (ie = u(lt, 0, ze, B), !ie)
continue;
- var mt = ee.index, Xt = ee[0], mn = Se.slice(0, mt), Xn = Se.slice(mt + Xt.length), gn = se + Se.length;
- F && gn > F.reach && (F.reach = gn);
- var Yt = Z.prev;
- mn && (Yt = c(f, Yt, mn), se += mn.length), h(f, Yt, C);
- var ea = new r(A, $ ? s.tokenize(Xt, $) : Xt, Me, Xt);
- if (Z = c(f, Yt, ea), Xn && c(f, Z, Xn), C > 1) {
- var vn = {
- cause: A + "," + q,
- reach: gn
+ var bt = ie.index, Yt = ie[0], gn = ze.slice(0, bt), Yn = ze.slice(bt + Yt.length), vn = _e + ze.length;
+ F && vn > F.reach && (F.reach = vn);
+ var Wt = K.prev;
+ gn && (Wt = c(f, Wt, gn), _e += gn.length), h(f, Wt, C);
+ var ao = new r(A, L ? s.tokenize(Yt, L) : Yt, ue, Yt);
+ if (K = c(f, Wt, ao), Yn && c(f, K, Yn), C > 1) {
+ var bn = {
+ cause: A + "," + T,
+ reach: vn
};
- _(m, f, v, Z.prev, se, vn), F && vn.reach > F.reach && (F.reach = vn.reach);
+ _(g, f, v, K.prev, _e, bn), F && bn.reach > F.reach && (F.reach = bn.reach);
}
}
}
@@ -2798,40 +2798,40 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
}
}
function d() {
- var m = { value: null, prev: null, next: null }, f = { value: null, prev: m, next: null };
- m.next = f, this.head = m, this.tail = f, this.length = 0;
+ var g = { value: null, prev: null, next: null }, f = { value: null, prev: g, next: null };
+ g.next = f, this.head = g, this.tail = f, this.length = 0;
}
- function c(m, f, v) {
- var y = f.next, b = { value: v, prev: f, next: y };
- return f.next = b, y.prev = b, m.length++, b;
+ function c(g, f, v) {
+ var D = f.next, w = { value: v, prev: f, next: D };
+ return f.next = w, D.prev = w, g.length++, w;
}
- function h(m, f, v) {
- for (var y = f.next, b = 0; b < v && y !== m.tail; b++)
- y = y.next;
- f.next = y, y.prev = f, m.length -= b;
+ function h(g, f, v) {
+ for (var D = f.next, w = 0; w < v && D !== g.tail; w++)
+ D = D.next;
+ f.next = D, D.prev = f, g.length -= w;
}
- function g(m) {
- for (var f = [], v = m.head.next; v !== m.tail; )
+ function m(g) {
+ for (var f = [], v = g.head.next; v !== g.tail; )
f.push(v.value), v = v.next;
return f;
}
if (!n.document)
- return n.addEventListener && (s.disableWorkerMessageHandler || n.addEventListener("message", function(m) {
- var f = JSON.parse(m.data), v = f.language, y = f.code, b = f.immediateClose;
- n.postMessage(s.highlight(y, s.languages[v], v)), b && n.close();
+ return n.addEventListener && (s.disableWorkerMessageHandler || n.addEventListener("message", function(g) {
+ var f = JSON.parse(g.data), v = f.language, D = f.code, w = f.immediateClose;
+ n.postMessage(s.highlight(D, s.languages[v], v)), w && n.close();
}, !1)), s;
var p = s.util.currentScript();
p && (s.filename = p.src, p.hasAttribute("data-manual") && (s.manual = !0));
- function D() {
+ function b() {
s.manual || s.highlightAll();
}
if (!s.manual) {
var k = document.readyState;
- k === "loading" || k === "interactive" && p && p.defer ? document.addEventListener("DOMContentLoaded", D) : window.requestAnimationFrame ? window.requestAnimationFrame(D) : window.setTimeout(D, 16);
+ k === "loading" || k === "interactive" && p && p.defer ? document.addEventListener("DOMContentLoaded", b) : window.requestAnimationFrame ? window.requestAnimationFrame(b) : window.setTimeout(b, 16);
}
return s;
}(e);
- a.exports && (a.exports = t), typeof oi < "u" && (oi.Prism = t), t.languages.markup = {
+ o.exports && (o.exports = t), typeof si < "u" && (si.Prism = t), t.languages.markup = {
comment: {
pattern: //,
greedy: !0
@@ -2922,27 +2922,27 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @example
* addInlined('style', 'css');
*/
- value: function(i, l) {
- var o = {};
- o["language-" + l] = {
+ value: function(l, i) {
+ var a = {};
+ a["language-" + i] = {
pattern: /(^$)/i,
lookbehind: !0,
- inside: t.languages[l]
- }, o.cdata = /^$/i;
+ inside: t.languages[i]
+ }, a.cdata = /^$/i;
var s = {
"included-cdata": {
pattern: //i,
- inside: o
+ inside: a
}
};
- s["language-" + l] = {
+ s["language-" + i] = {
pattern: /[\s\S]+/,
- inside: t.languages[l]
+ inside: t.languages[i]
};
var r = {};
- r[i] = {
+ r[l] = {
pattern: RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g, function() {
- return i;
+ return l;
}), "i"),
lookbehind: !0,
greedy: !0,
@@ -2961,7 +2961,7 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
* @example
* addAttribute('style', 'css');
*/
- value: function(n, i) {
+ value: function(n, l) {
t.languages.markup.tag.inside["special-attr"].push({
pattern: RegExp(
/(^|["'\s])/.source + "(?:" + n + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
@@ -2976,8 +2976,8 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
value: {
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
lookbehind: !0,
- alias: [i, "language-" + i],
- inside: t.languages[i]
+ alias: [l, "language-" + l],
+ inside: t.languages[l]
},
punctuation: [
{
@@ -2992,11 +2992,11 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
});
}
}), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(n) {
- var i = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
+ var l = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
n.languages.css = {
comment: /\/\*[\s\S]*?\*\//,
atrule: {
- pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + i.source + ")*?" + /(?:;|(?=\s*\{))/.source),
+ pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + l.source + ")*?" + /(?:;|(?=\s*\{))/.source),
inside: {
rule: /^@[\w-]+/,
"selector-function-argument": {
@@ -3013,23 +3013,23 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
},
url: {
// https://drafts.csswg.org/css-values-3/#urls
- pattern: RegExp("\\burl\\((?:" + i.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
+ pattern: RegExp("\\burl\\((?:" + l.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
greedy: !0,
inside: {
function: /^url/i,
punctuation: /^\(|\)$/,
string: {
- pattern: RegExp("^" + i.source + "$"),
+ pattern: RegExp("^" + l.source + "$"),
alias: "url"
}
}
},
selector: {
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + i.source + ")*(?=\\s*\\{)"),
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + l.source + ")*(?=\\s*\\{)"),
lookbehind: !0
},
string: {
- pattern: i,
+ pattern: l,
greedy: !0
},
property: {
@@ -3043,8 +3043,8 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
},
punctuation: /[(){};:,]/
}, n.languages.css.atrule.inside.rest = n.languages.css;
- var l = n.languages.markup;
- l && (l.tag.addInlined("style", "css"), l.tag.addAttribute("style", "css"));
+ var i = n.languages.markup;
+ i && (i.tag.addInlined("style", "css"), i.tag.addAttribute("style", "css"));
}(t), t.languages.clike = {
comment: [
{
@@ -3209,9 +3209,9 @@ var oi = 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…", i = function(p, D) {
- return "✖ Error " + p + " while fetching file: " + D;
- }, l = "✖ Error: File does not exist or is empty", o = {
+ var n = "Loading…", l = function(p, b) {
+ return "✖ Error " + p + " while fetching file: " + b;
+ }, i = "✖ Error: File does not exist or is empty", a = {
js: "javascript",
py: "python",
rb: "ruby",
@@ -3222,51 +3222,51 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
h: "c",
tex: "latex"
}, s = "data-src-status", r = "loading", u = "loaded", _ = "failed", d = "pre[data-src]:not([" + s + '="' + u + '"]):not([' + s + '="' + r + '"])';
- function c(p, D, k) {
- var m = new XMLHttpRequest();
- m.open("GET", p, !0), m.onreadystatechange = function() {
- m.readyState == 4 && (m.status < 400 && m.responseText ? D(m.responseText) : m.status >= 400 ? k(i(m.status, m.statusText)) : k(l));
- }, m.send(null);
+ function c(p, b, k) {
+ var g = new XMLHttpRequest();
+ g.open("GET", p, !0), g.onreadystatechange = function() {
+ g.readyState == 4 && (g.status < 400 && g.responseText ? b(g.responseText) : g.status >= 400 ? k(l(g.status, g.statusText)) : k(i));
+ }, g.send(null);
}
function h(p) {
- var D = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(p || "");
- if (D) {
- var k = Number(D[1]), m = D[2], f = D[3];
- return m ? f ? [k, Number(f)] : [k, void 0] : [k, k];
+ var b = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(p || "");
+ if (b) {
+ var k = Number(b[1]), g = b[2], f = b[3];
+ return g ? f ? [k, Number(f)] : [k, void 0] : [k, k];
}
}
t.hooks.add("before-highlightall", function(p) {
p.selector += ", " + d;
}), t.hooks.add("before-sanity-check", function(p) {
- var D = (
+ var b = (
/** @type {HTMLPreElement} */
p.element
);
- if (D.matches(d)) {
- p.code = "", D.setAttribute(s, r);
- var k = D.appendChild(document.createElement("CODE"));
+ if (b.matches(d)) {
+ p.code = "", b.setAttribute(s, r);
+ var k = b.appendChild(document.createElement("CODE"));
k.textContent = n;
- var m = D.getAttribute("data-src"), f = p.language;
+ var g = b.getAttribute("data-src"), f = p.language;
if (f === "none") {
- var v = (/\.(\w+)$/.exec(m) || [, "none"])[1];
- f = o[v] || v;
+ var v = (/\.(\w+)$/.exec(g) || [, "none"])[1];
+ f = a[v] || v;
}
- t.util.setLanguage(k, f), t.util.setLanguage(D, f);
- var y = t.plugins.autoloader;
- y && y.loadLanguages(f), c(
- m,
- function(b) {
- D.setAttribute(s, u);
- var F = h(D.getAttribute("data-range"));
+ t.util.setLanguage(k, f), t.util.setLanguage(b, f);
+ var D = t.plugins.autoloader;
+ D && D.loadLanguages(f), c(
+ g,
+ function(w) {
+ b.setAttribute(s, u);
+ var F = h(b.getAttribute("data-range"));
if (F) {
- var A = b.split(/\r\n?|\n/g), E = F[0], q = F[1] == null ? A.length : F[1];
- E < 0 && (E += A.length), E = Math.max(0, Math.min(E - 1, A.length)), q < 0 && (q += A.length), q = Math.max(0, Math.min(q, A.length)), b = A.slice(E, q).join(`
-`), D.hasAttribute("data-start") || D.setAttribute("data-start", String(E + 1));
+ var A = w.split(/\r\n?|\n/g), y = F[0], T = F[1] == null ? A.length : F[1];
+ y < 0 && (y += A.length), y = Math.max(0, Math.min(y - 1, A.length)), T < 0 && (T += A.length), T = Math.max(0, Math.min(T, A.length)), w = A.slice(y, T).join(`
+`), b.hasAttribute("data-start") || b.setAttribute("data-start", String(y + 1));
}
- k.textContent = b, t.highlightElement(k);
+ k.textContent = w, t.highlightElement(k);
},
- function(b) {
- D.setAttribute(s, _), k.textContent = b;
+ function(w) {
+ b.setAttribute(s, _), k.textContent = w;
}
);
}
@@ -3278,17 +3278,17 @@ var oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
*
* @param {ParentNode} [container=document]
*/
- highlight: function(D) {
- for (var k = (D || document).querySelectorAll(d), m = 0, f; f = k[m++]; )
+ highlight: function(b) {
+ for (var k = (b || document).querySelectorAll(d), g = 0, f; f = k[g++]; )
t.highlightElement(f);
}
};
- var g = !1;
+ var m = !1;
t.fileHighlight = function() {
- g || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), g = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
+ m || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), m = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
};
}();
-})(lo);
+})(ca);
Prism.languages.python = {
comment: {
pattern: /(^|[^\\])#.*/,
@@ -3352,14 +3352,14 @@ Prism.languages.python = {
};
Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python;
Prism.languages.py = Prism.languages.python;
-(function(a) {
+(function(o) {
var e = /\\(?:[^a-z()[\]]|[a-z*]+)/i, t = {
"equation-command": {
pattern: e,
alias: "regex"
}
};
- a.languages.latex = {
+ o.languages.latex = {
comment: /%.*/,
// the verbatim environment prints whitespace to the document
cdata: {
@@ -3409,9 +3409,9 @@ Prism.languages.py = Prism.languages.python;
alias: "selector"
},
punctuation: /[[\]{}&]/
- }, a.languages.tex = a.languages.latex, a.languages.context = a.languages.latex;
+ }, o.languages.tex = o.languages.latex, o.languages.context = o.languages.latex;
})(Prism);
-(function(a) {
+(function(o) {
var e = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", t = {
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
lookbehind: !0,
@@ -3473,7 +3473,7 @@ Prism.languages.py = Prism.languages.python;
// Escape sequences from echo and printf's manuals, and escaped quotes.
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
};
- a.languages.bash = {
+ o.languages.bash = {
shebang: {
pattern: /^#!\s*\/.*/,
alias: "important"
@@ -3609,8 +3609,8 @@ Prism.languages.py = Prism.languages.python;
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
lookbehind: !0
}
- }, t.inside = a.languages.bash;
- for (var i = [
+ }, t.inside = o.languages.bash;
+ for (var l = [
"comment",
"function-name",
"for-or-select",
@@ -3626,20 +3626,20 @@ Prism.languages.py = Prism.languages.python;
"operator",
"punctuation",
"number"
- ], l = n.variable[1].inside, o = 0; o < i.length; o++)
- l[i[o]] = a.languages.bash[i[o]];
- a.languages.sh = a.languages.bash, a.languages.shell = a.languages.bash;
+ ], i = n.variable[1].inside, a = 0; a < l.length; a++)
+ i[l[a]] = o.languages.bash[l[a]];
+ o.languages.sh = o.languages.bash, o.languages.shell = o.languages.bash;
})(Prism);
-new Ml();
-const ao = (a) => {
+new Ul();
+const da = (o) => {
const e = {};
- for (let t = 0, n = a.length; t < n; t++) {
- const i = a[t];
- for (const l in i)
- e[l] ? e[l] = e[l].concat(i[l]) : e[l] = i[l];
+ for (let t = 0, n = o.length; t < n; t++) {
+ const l = o[t];
+ for (const i in l)
+ e[i] ? e[i] = e[i].concat(l[i]) : e[i] = l[i];
}
return e;
-}, oo = [
+}, fa = [
"abbr",
"accept",
"accept-charset",
@@ -3848,7 +3848,7 @@ const ao = (a) => {
"webkitdirectory",
"width",
"wrap"
-], so = [
+], ha = [
"accent-height",
"accumulate",
"additive",
@@ -4032,7 +4032,7 @@ const ao = (a) => {
"y2",
"z",
"zoomandpan"
-], ro = [
+], pa = [
"accent",
"accentunder",
"align",
@@ -4087,413 +4087,413 @@ const ao = (a) => {
"width",
"xmlns"
];
-ao([
- Object.fromEntries(oo.map((a) => [a, ["*"]])),
- Object.fromEntries(so.map((a) => [a, ["svg:*"]])),
- Object.fromEntries(ro.map((a) => [a, ["math:*"]]))
+da([
+ Object.fromEntries(fa.map((o) => [o, ["*"]])),
+ Object.fromEntries(ha.map((o) => [o, ["svg:*"]])),
+ Object.fromEntries(pa.map((o) => [o, ["math:*"]]))
]);
const {
- HtmlTagHydration: Hr,
- SvelteComponent: xr,
- attr: Vr,
- binding_callbacks: Ur,
- children: Gr,
- claim_element: Zr,
- claim_html_tag: Xr,
- detach: Yr,
- element: Wr,
- init: Kr,
- insert_hydration: Qr,
- noop: Jr,
- safe_not_equal: eu,
- toggle_class: tu
-} = window.__gradio__svelte__internal, { afterUpdate: nu, tick: iu, onMount: lu } = window.__gradio__svelte__internal, {
- SvelteComponent: au,
- attr: ou,
- children: su,
- claim_component: ru,
- claim_element: uu,
- create_component: _u,
- destroy_component: cu,
- detach: du,
- element: fu,
- init: hu,
- insert_hydration: pu,
- mount_component: mu,
- safe_not_equal: gu,
- transition_in: vu,
- transition_out: bu
+ HtmlTagHydration: Xr,
+ SvelteComponent: Yr,
+ attr: Wr,
+ binding_callbacks: Kr,
+ children: Qr,
+ claim_element: Jr,
+ claim_html_tag: eu,
+ detach: tu,
+ element: nu,
+ init: iu,
+ insert_hydration: lu,
+ noop: ou,
+ safe_not_equal: au,
+ toggle_class: su
+} = window.__gradio__svelte__internal, { afterUpdate: ru, tick: uu, onMount: _u } = window.__gradio__svelte__internal, {
+ SvelteComponent: cu,
+ attr: du,
+ children: fu,
+ claim_component: hu,
+ claim_element: pu,
+ create_component: mu,
+ destroy_component: gu,
+ detach: vu,
+ element: bu,
+ init: Du,
+ insert_hydration: yu,
+ mount_component: wu,
+ safe_not_equal: ku,
+ transition_in: Fu,
+ transition_out: $u
} = window.__gradio__svelte__internal, {
- SvelteComponent: Du,
- attr: yu,
- check_outros: wu,
- children: ku,
- claim_component: Fu,
- claim_element: $u,
- claim_space: Cu,
- create_component: Eu,
- create_slot: Au,
- destroy_component: Su,
- detach: Bu,
- element: qu,
- empty: Tu,
- get_all_dirty_from_scope: zu,
- get_slot_changes: Iu,
- group_outros: Ru,
- init: Lu,
- insert_hydration: Ou,
- mount_component: Pu,
- safe_not_equal: Mu,
- space: Nu,
- toggle_class: ju,
- transition_in: Hu,
- transition_out: xu,
- update_slot_base: Vu
+ SvelteComponent: Cu,
+ attr: Eu,
+ check_outros: Au,
+ children: Su,
+ claim_component: qu,
+ claim_element: Bu,
+ claim_space: Tu,
+ create_component: zu,
+ create_slot: Iu,
+ destroy_component: Ru,
+ detach: Lu,
+ element: Ou,
+ empty: Pu,
+ get_all_dirty_from_scope: Mu,
+ get_slot_changes: Nu,
+ group_outros: ju,
+ init: Vu,
+ insert_hydration: Hu,
+ mount_component: Gu,
+ safe_not_equal: Uu,
+ space: Zu,
+ toggle_class: xu,
+ transition_in: Xu,
+ transition_out: Yu,
+ update_slot_base: Wu
} = window.__gradio__svelte__internal, {
- SvelteComponent: Uu,
- append_hydration: Gu,
- attr: Zu,
- children: Xu,
- claim_component: Yu,
- claim_element: Wu,
- claim_space: Ku,
- claim_text: Qu,
- create_component: Ju,
- destroy_component: e_,
- detach: t_,
- element: n_,
- init: i_,
- insert_hydration: l_,
- mount_component: a_,
- safe_not_equal: o_,
- set_data: s_,
- space: r_,
- text: u_,
- toggle_class: __,
- transition_in: c_,
- transition_out: d_
+ SvelteComponent: Ku,
+ append_hydration: Qu,
+ attr: Ju,
+ children: e_,
+ claim_component: t_,
+ claim_element: n_,
+ claim_space: i_,
+ claim_text: l_,
+ create_component: o_,
+ destroy_component: a_,
+ detach: s_,
+ element: r_,
+ init: u_,
+ insert_hydration: __,
+ mount_component: c_,
+ safe_not_equal: d_,
+ set_data: f_,
+ space: h_,
+ text: p_,
+ toggle_class: m_,
+ transition_in: g_,
+ transition_out: v_
} = window.__gradio__svelte__internal, {
- SvelteComponent: uo,
+ SvelteComponent: ma,
append_hydration: rn,
- attr: Xe,
- bubble: _o,
- check_outros: co,
- children: Sn,
- claim_component: fo,
+ attr: Je,
+ bubble: ga,
+ check_outros: va,
+ children: qn,
+ claim_component: ba,
claim_element: Bn,
- claim_space: si,
- claim_text: ho,
- construct_svelte_component: ri,
- create_component: ui,
- create_slot: po,
- destroy_component: _i,
- detach: Tt,
- element: qn,
- get_all_dirty_from_scope: mo,
- get_slot_changes: go,
- group_outros: vo,
- init: bo,
- insert_hydration: Nl,
- listen: Do,
- mount_component: ci,
- safe_not_equal: yo,
- set_data: wo,
- set_style: Jt,
- space: di,
- text: ko,
- toggle_class: te,
- transition_in: yn,
- transition_out: wn,
- update_slot_base: Fo
+ claim_space: ri,
+ claim_text: Da,
+ construct_svelte_component: ui,
+ create_component: _i,
+ create_slot: ya,
+ destroy_component: ci,
+ detach: Rt,
+ element: Tn,
+ get_all_dirty_from_scope: wa,
+ get_slot_changes: ka,
+ group_outros: Fa,
+ init: $a,
+ insert_hydration: Zl,
+ listen: Ca,
+ mount_component: di,
+ safe_not_equal: Ea,
+ set_data: Aa,
+ set_style: en,
+ space: fi,
+ text: Sa,
+ toggle_class: le,
+ transition_in: wn,
+ transition_out: kn,
+ update_slot_base: qa
} = window.__gradio__svelte__internal;
-function fi(a) {
+function hi(o) {
let e, t;
return {
c() {
- e = qn("span"), t = ko(
+ e = Tn("span"), t = Sa(
/*label*/
- a[1]
+ o[1]
), this.h();
},
l(n) {
e = Bn(n, "SPAN", { class: !0 });
- var i = Sn(e);
- t = ho(
- i,
+ var l = qn(e);
+ t = Da(
+ l,
/*label*/
- a[1]
- ), i.forEach(Tt), this.h();
+ o[1]
+ ), l.forEach(Rt), this.h();
},
h() {
- Xe(e, "class", "svelte-qgco6m");
+ Je(e, "class", "svelte-qgco6m");
},
- m(n, i) {
- Nl(n, e, i), rn(e, t);
+ m(n, l) {
+ Zl(n, e, l), rn(e, t);
},
- p(n, i) {
- i & /*label*/
- 2 && wo(
+ p(n, l) {
+ l & /*label*/
+ 2 && Aa(
t,
/*label*/
n[1]
);
},
d(n) {
- n && Tt(e);
+ n && Rt(e);
}
};
}
-function $o(a) {
- let e, t, n, i, l, o, s, r, u = (
+function Ba(o) {
+ let e, t, n, l, i, a, s, r, u = (
/*show_label*/
- a[2] && fi(a)
+ o[2] && hi(o)
);
var _ = (
/*Icon*/
- a[0]
+ o[0]
);
- function d(g, p) {
+ function d(m, p) {
return {};
}
- _ && (i = ri(_, d()));
+ _ && (l = ui(_, d()));
const c = (
/*#slots*/
- a[14].default
- ), h = po(
+ o[14].default
+ ), h = ya(
c,
- a,
+ o,
/*$$scope*/
- a[13],
+ o[13],
null
);
return {
c() {
- e = qn("button"), u && u.c(), t = di(), n = qn("div"), i && ui(i.$$.fragment), l = di(), h && h.c(), this.h();
+ e = Tn("button"), u && u.c(), t = fi(), n = Tn("div"), l && _i(l.$$.fragment), i = fi(), h && h.c(), this.h();
},
- l(g) {
- e = Bn(g, "BUTTON", {
+ l(m) {
+ e = Bn(m, "BUTTON", {
"aria-label": !0,
"aria-haspopup": !0,
title: !0,
class: !0
});
- var p = Sn(e);
- u && u.l(p), t = si(p), n = Bn(p, "DIV", { class: !0 });
- var D = Sn(n);
- i && fo(i.$$.fragment, D), l = si(D), h && h.l(D), D.forEach(Tt), p.forEach(Tt), this.h();
+ var p = qn(e);
+ u && u.l(p), t = ri(p), n = Bn(p, "DIV", { class: !0 });
+ var b = qn(n);
+ l && ba(l.$$.fragment, b), i = ri(b), h && h.l(b), b.forEach(Rt), p.forEach(Rt), this.h();
},
h() {
- Xe(n, "class", "svelte-qgco6m"), te(
+ Je(n, "class", "svelte-qgco6m"), le(
n,
"x-small",
/*size*/
- a[4] === "x-small"
- ), te(
+ o[4] === "x-small"
+ ), le(
n,
"small",
/*size*/
- a[4] === "small"
- ), te(
+ o[4] === "small"
+ ), le(
n,
"large",
/*size*/
- a[4] === "large"
- ), te(
+ o[4] === "large"
+ ), le(
n,
"medium",
/*size*/
- a[4] === "medium"
+ o[4] === "medium"
), e.disabled = /*disabled*/
- a[7], Xe(
+ o[7], Je(
e,
"aria-label",
/*label*/
- a[1]
- ), Xe(
+ o[1]
+ ), Je(
e,
"aria-haspopup",
/*hasPopup*/
- a[8]
- ), Xe(
+ o[8]
+ ), Je(
e,
"title",
/*label*/
- a[1]
- ), Xe(e, "class", "svelte-qgco6m"), te(
+ o[1]
+ ), Je(e, "class", "svelte-qgco6m"), le(
e,
"pending",
/*pending*/
- a[3]
- ), te(
+ o[3]
+ ), le(
e,
"padded",
/*padded*/
- a[5]
- ), te(
+ o[5]
+ ), le(
e,
"highlight",
/*highlight*/
- a[6]
- ), te(
+ o[6]
+ ), le(
e,
"transparent",
/*transparent*/
- a[9]
- ), Jt(e, "color", !/*disabled*/
- a[7] && /*_color*/
- a[11] ? (
+ o[9]
+ ), en(e, "color", !/*disabled*/
+ o[7] && /*_color*/
+ o[11] ? (
/*_color*/
- a[11]
- ) : "var(--block-label-text-color)"), Jt(e, "--bg-color", /*disabled*/
- a[7] ? "auto" : (
+ o[11]
+ ) : "var(--block-label-text-color)"), en(e, "--bg-color", /*disabled*/
+ o[7] ? "auto" : (
/*background*/
- a[10]
+ o[10]
));
},
- m(g, p) {
- Nl(g, e, p), u && u.m(e, null), rn(e, t), rn(e, n), i && ci(i, n, null), rn(n, l), h && h.m(n, null), o = !0, s || (r = Do(
+ m(m, p) {
+ Zl(m, e, p), u && u.m(e, null), rn(e, t), rn(e, n), l && di(l, n, null), rn(n, i), h && h.m(n, null), a = !0, s || (r = Ca(
e,
"click",
/*click_handler*/
- a[15]
+ o[15]
), s = !0);
},
- p(g, [p]) {
+ p(m, [p]) {
if (/*show_label*/
- g[2] ? u ? u.p(g, p) : (u = fi(g), u.c(), u.m(e, t)) : u && (u.d(1), u = null), p & /*Icon*/
+ m[2] ? u ? u.p(m, p) : (u = hi(m), u.c(), u.m(e, t)) : u && (u.d(1), u = null), p & /*Icon*/
1 && _ !== (_ = /*Icon*/
- g[0])) {
- if (i) {
- vo();
- const D = i;
- wn(D.$$.fragment, 1, 0, () => {
- _i(D, 1);
- }), co();
+ m[0])) {
+ if (l) {
+ Fa();
+ const b = l;
+ kn(b.$$.fragment, 1, 0, () => {
+ ci(b, 1);
+ }), va();
}
- _ ? (i = ri(_, d()), ui(i.$$.fragment), yn(i.$$.fragment, 1), ci(i, n, l)) : i = null;
+ _ ? (l = ui(_, d()), _i(l.$$.fragment), wn(l.$$.fragment, 1), di(l, n, i)) : l = null;
}
- h && h.p && (!o || p & /*$$scope*/
- 8192) && Fo(
+ h && h.p && (!a || p & /*$$scope*/
+ 8192) && qa(
h,
c,
- g,
+ m,
/*$$scope*/
- g[13],
- o ? go(
+ m[13],
+ a ? ka(
c,
/*$$scope*/
- g[13],
+ m[13],
p,
null
- ) : mo(
+ ) : wa(
/*$$scope*/
- g[13]
+ m[13]
),
null
- ), (!o || p & /*size*/
- 16) && te(
+ ), (!a || p & /*size*/
+ 16) && le(
n,
"x-small",
/*size*/
- g[4] === "x-small"
- ), (!o || p & /*size*/
- 16) && te(
+ m[4] === "x-small"
+ ), (!a || p & /*size*/
+ 16) && le(
n,
"small",
/*size*/
- g[4] === "small"
- ), (!o || p & /*size*/
- 16) && te(
+ m[4] === "small"
+ ), (!a || p & /*size*/
+ 16) && le(
n,
"large",
/*size*/
- g[4] === "large"
- ), (!o || p & /*size*/
- 16) && te(
+ m[4] === "large"
+ ), (!a || p & /*size*/
+ 16) && le(
n,
"medium",
/*size*/
- g[4] === "medium"
- ), (!o || p & /*disabled*/
+ m[4] === "medium"
+ ), (!a || p & /*disabled*/
128) && (e.disabled = /*disabled*/
- g[7]), (!o || p & /*label*/
- 2) && Xe(
+ m[7]), (!a || p & /*label*/
+ 2) && Je(
e,
"aria-label",
/*label*/
- g[1]
- ), (!o || p & /*hasPopup*/
- 256) && Xe(
+ m[1]
+ ), (!a || p & /*hasPopup*/
+ 256) && Je(
e,
"aria-haspopup",
/*hasPopup*/
- g[8]
- ), (!o || p & /*label*/
- 2) && Xe(
+ m[8]
+ ), (!a || p & /*label*/
+ 2) && Je(
e,
"title",
/*label*/
- g[1]
- ), (!o || p & /*pending*/
- 8) && te(
+ m[1]
+ ), (!a || p & /*pending*/
+ 8) && le(
e,
"pending",
/*pending*/
- g[3]
- ), (!o || p & /*padded*/
- 32) && te(
+ m[3]
+ ), (!a || p & /*padded*/
+ 32) && le(
e,
"padded",
/*padded*/
- g[5]
- ), (!o || p & /*highlight*/
- 64) && te(
+ m[5]
+ ), (!a || p & /*highlight*/
+ 64) && le(
e,
"highlight",
/*highlight*/
- g[6]
- ), (!o || p & /*transparent*/
- 512) && te(
+ m[6]
+ ), (!a || p & /*transparent*/
+ 512) && le(
e,
"transparent",
/*transparent*/
- g[9]
+ m[9]
), p & /*disabled, _color*/
- 2176 && Jt(e, "color", !/*disabled*/
- g[7] && /*_color*/
- g[11] ? (
+ 2176 && en(e, "color", !/*disabled*/
+ m[7] && /*_color*/
+ m[11] ? (
/*_color*/
- g[11]
+ m[11]
) : "var(--block-label-text-color)"), p & /*disabled, background*/
- 1152 && Jt(e, "--bg-color", /*disabled*/
- g[7] ? "auto" : (
+ 1152 && en(e, "--bg-color", /*disabled*/
+ m[7] ? "auto" : (
/*background*/
- g[10]
+ m[10]
));
},
- i(g) {
- o || (i && yn(i.$$.fragment, g), yn(h, g), o = !0);
+ i(m) {
+ a || (l && wn(l.$$.fragment, m), wn(h, m), a = !0);
},
- o(g) {
- i && wn(i.$$.fragment, g), wn(h, g), o = !1;
+ o(m) {
+ l && kn(l.$$.fragment, m), kn(h, m), a = !1;
},
- d(g) {
- g && Tt(e), u && u.d(), i && _i(i), h && h.d(g), s = !1, r();
+ d(m) {
+ m && Rt(e), u && u.d(), l && ci(l), h && h.d(m), s = !1, r();
}
};
}
-function Co(a, e, t) {
- let n, { $$slots: i = {}, $$scope: l } = e, { Icon: o } = e, { label: s = "" } = e, { show_label: r = !1 } = e, { pending: u = !1 } = e, { size: _ = "small" } = e, { padded: d = !0 } = e, { highlight: c = !1 } = e, { disabled: h = !1 } = e, { hasPopup: g = !1 } = e, { color: p = "var(--block-label-text-color)" } = e, { transparent: D = !1 } = e, { background: k = "var(--block-background-fill)" } = e;
- function m(f) {
- _o.call(this, a, f);
+function Ta(o, e, t) {
+ let n, { $$slots: l = {}, $$scope: i } = e, { Icon: a } = e, { label: s = "" } = e, { show_label: r = !1 } = e, { pending: u = !1 } = e, { size: _ = "small" } = e, { padded: d = !0 } = e, { highlight: c = !1 } = e, { disabled: h = !1 } = e, { hasPopup: m = !1 } = e, { color: p = "var(--block-label-text-color)" } = e, { transparent: b = !1 } = e, { background: k = "var(--block-background-fill)" } = e;
+ function g(f) {
+ ga.call(this, o, f);
}
- return a.$$set = (f) => {
- "Icon" in f && t(0, o = f.Icon), "label" in f && t(1, s = f.label), "show_label" in f && t(2, r = f.show_label), "pending" in f && t(3, u = f.pending), "size" in f && t(4, _ = f.size), "padded" in f && t(5, d = f.padded), "highlight" in f && t(6, c = f.highlight), "disabled" in f && t(7, h = f.disabled), "hasPopup" in f && t(8, g = f.hasPopup), "color" in f && t(12, p = f.color), "transparent" in f && t(9, D = f.transparent), "background" in f && t(10, k = f.background), "$$scope" in f && t(13, l = f.$$scope);
- }, a.$$.update = () => {
- a.$$.dirty & /*highlight, color*/
+ return o.$$set = (f) => {
+ "Icon" in f && t(0, a = f.Icon), "label" in f && t(1, s = f.label), "show_label" in f && t(2, r = f.show_label), "pending" in f && t(3, u = f.pending), "size" in f && t(4, _ = f.size), "padded" in f && t(5, d = f.padded), "highlight" in f && t(6, c = f.highlight), "disabled" in f && t(7, h = f.disabled), "hasPopup" in f && t(8, m = f.hasPopup), "color" in f && t(12, p = f.color), "transparent" in f && t(9, b = f.transparent), "background" in f && t(10, k = f.background), "$$scope" in f && t(13, i = f.$$scope);
+ }, o.$$.update = () => {
+ o.$$.dirty & /*highlight, color*/
4160 && t(11, n = c ? "var(--color-accent)" : p);
}, [
- o,
+ a,
s,
r,
u,
@@ -4501,19 +4501,19 @@ function Co(a, e, t) {
d,
c,
h,
- g,
- D,
+ m,
+ b,
k,
n,
p,
- l,
i,
- m
+ l,
+ g
];
}
-class Eo extends uo {
+class za extends ma {
constructor(e) {
- super(), bo(this, e, Co, $o, yo, {
+ super(), $a(this, e, Ta, Ba, Ea, {
Icon: 0,
label: 1,
show_label: 2,
@@ -4530,190 +4530,190 @@ class Eo extends uo {
}
}
const {
- SvelteComponent: f_,
- append_hydration: h_,
- attr: p_,
- binding_callbacks: m_,
- children: g_,
- claim_element: v_,
- create_slot: b_,
- detach: D_,
- element: y_,
- get_all_dirty_from_scope: w_,
- get_slot_changes: k_,
- init: F_,
- insert_hydration: $_,
- safe_not_equal: C_,
- toggle_class: E_,
- transition_in: A_,
- transition_out: S_,
- update_slot_base: B_
+ SvelteComponent: b_,
+ append_hydration: D_,
+ attr: y_,
+ binding_callbacks: w_,
+ children: k_,
+ claim_element: F_,
+ create_slot: $_,
+ detach: C_,
+ element: E_,
+ get_all_dirty_from_scope: A_,
+ get_slot_changes: S_,
+ init: q_,
+ insert_hydration: B_,
+ safe_not_equal: T_,
+ toggle_class: z_,
+ transition_in: I_,
+ transition_out: R_,
+ update_slot_base: L_
} = window.__gradio__svelte__internal, {
- SvelteComponent: q_,
- append_hydration: T_,
- attr: z_,
- children: I_,
- claim_svg_element: R_,
- detach: L_,
- init: O_,
- insert_hydration: P_,
- noop: M_,
- safe_not_equal: N_,
- svg_element: j_
+ SvelteComponent: O_,
+ append_hydration: P_,
+ attr: M_,
+ children: N_,
+ claim_svg_element: j_,
+ detach: V_,
+ init: H_,
+ insert_hydration: G_,
+ noop: U_,
+ safe_not_equal: Z_,
+ svg_element: x_
} = window.__gradio__svelte__internal, {
- SvelteComponent: H_,
- append_hydration: x_,
- attr: V_,
- children: U_,
- claim_svg_element: G_,
- detach: Z_,
- init: X_,
- insert_hydration: Y_,
- noop: W_,
- safe_not_equal: K_,
- svg_element: Q_
+ SvelteComponent: X_,
+ append_hydration: Y_,
+ attr: W_,
+ children: K_,
+ claim_svg_element: Q_,
+ detach: J_,
+ init: ec,
+ insert_hydration: tc,
+ noop: nc,
+ safe_not_equal: ic,
+ svg_element: lc
} = window.__gradio__svelte__internal, {
- SvelteComponent: J_,
- append_hydration: ec,
- attr: tc,
- children: nc,
- claim_svg_element: ic,
- detach: lc,
- init: ac,
- insert_hydration: oc,
- noop: sc,
- safe_not_equal: rc,
- svg_element: uc
+ SvelteComponent: oc,
+ append_hydration: ac,
+ attr: sc,
+ children: rc,
+ claim_svg_element: uc,
+ detach: _c,
+ init: cc,
+ insert_hydration: dc,
+ noop: fc,
+ safe_not_equal: hc,
+ svg_element: pc
} = window.__gradio__svelte__internal, {
- SvelteComponent: _c,
- append_hydration: cc,
- attr: dc,
- children: fc,
- claim_svg_element: hc,
- detach: pc,
- init: mc,
- insert_hydration: gc,
- noop: vc,
- safe_not_equal: bc,
- svg_element: Dc
+ SvelteComponent: mc,
+ append_hydration: gc,
+ attr: vc,
+ children: bc,
+ claim_svg_element: Dc,
+ detach: yc,
+ init: wc,
+ insert_hydration: kc,
+ noop: Fc,
+ safe_not_equal: $c,
+ svg_element: Cc
} = window.__gradio__svelte__internal, {
- SvelteComponent: yc,
- append_hydration: wc,
- attr: kc,
- children: Fc,
- claim_svg_element: $c,
- detach: Cc,
- init: Ec,
- insert_hydration: Ac,
- noop: Sc,
- safe_not_equal: Bc,
- svg_element: qc
+ SvelteComponent: Ec,
+ append_hydration: Ac,
+ attr: Sc,
+ children: qc,
+ claim_svg_element: Bc,
+ detach: Tc,
+ init: zc,
+ insert_hydration: Ic,
+ noop: Rc,
+ safe_not_equal: Lc,
+ svg_element: Oc
} = window.__gradio__svelte__internal, {
- SvelteComponent: Tc,
- append_hydration: zc,
- attr: Ic,
- children: Rc,
- claim_svg_element: Lc,
- detach: Oc,
- init: Pc,
- insert_hydration: Mc,
- noop: Nc,
- safe_not_equal: jc,
- svg_element: Hc
+ SvelteComponent: Pc,
+ append_hydration: Mc,
+ attr: Nc,
+ children: jc,
+ claim_svg_element: Vc,
+ detach: Hc,
+ init: Gc,
+ insert_hydration: Uc,
+ noop: Zc,
+ safe_not_equal: xc,
+ svg_element: Xc
} = window.__gradio__svelte__internal, {
- SvelteComponent: xc,
- append_hydration: Vc,
- attr: Uc,
- children: Gc,
- claim_svg_element: Zc,
- detach: Xc,
- init: Yc,
- insert_hydration: Wc,
- noop: Kc,
- safe_not_equal: Qc,
- svg_element: Jc
+ SvelteComponent: Yc,
+ append_hydration: Wc,
+ attr: Kc,
+ children: Qc,
+ claim_svg_element: Jc,
+ detach: ed,
+ init: td,
+ insert_hydration: nd,
+ noop: id,
+ safe_not_equal: ld,
+ svg_element: od
} = window.__gradio__svelte__internal, {
- SvelteComponent: ed,
- append_hydration: td,
- attr: nd,
- children: id,
- claim_svg_element: ld,
- detach: ad,
- init: od,
- insert_hydration: sd,
- noop: rd,
- safe_not_equal: ud,
- svg_element: _d
+ SvelteComponent: ad,
+ append_hydration: sd,
+ attr: rd,
+ children: ud,
+ claim_svg_element: _d,
+ detach: cd,
+ init: dd,
+ insert_hydration: fd,
+ noop: hd,
+ safe_not_equal: pd,
+ svg_element: md
} = window.__gradio__svelte__internal, {
- SvelteComponent: cd,
- append_hydration: dd,
- attr: fd,
- children: hd,
- claim_svg_element: pd,
- detach: md,
- init: gd,
- insert_hydration: vd,
- noop: bd,
- safe_not_equal: Dd,
- svg_element: yd
+ SvelteComponent: gd,
+ append_hydration: vd,
+ attr: bd,
+ children: Dd,
+ claim_svg_element: yd,
+ detach: wd,
+ init: kd,
+ insert_hydration: Fd,
+ noop: $d,
+ safe_not_equal: Cd,
+ svg_element: Ed
} = window.__gradio__svelte__internal, {
- SvelteComponent: wd,
- append_hydration: kd,
- attr: Fd,
- children: $d,
- claim_svg_element: Cd,
- detach: Ed,
- init: Ad,
- insert_hydration: Sd,
- noop: Bd,
- safe_not_equal: qd,
- svg_element: Td
+ SvelteComponent: Ad,
+ append_hydration: Sd,
+ attr: qd,
+ children: Bd,
+ claim_svg_element: Td,
+ detach: zd,
+ init: Id,
+ insert_hydration: Rd,
+ noop: Ld,
+ safe_not_equal: Od,
+ svg_element: Pd
} = window.__gradio__svelte__internal, {
- SvelteComponent: zd,
- append_hydration: Id,
- attr: Rd,
- children: Ld,
- claim_svg_element: Od,
- detach: Pd,
- init: Md,
- insert_hydration: Nd,
- noop: jd,
- safe_not_equal: Hd,
- svg_element: xd
+ SvelteComponent: Md,
+ append_hydration: Nd,
+ attr: jd,
+ children: Vd,
+ claim_svg_element: Hd,
+ detach: Gd,
+ init: Ud,
+ insert_hydration: Zd,
+ noop: xd,
+ safe_not_equal: Xd,
+ svg_element: Yd
} = window.__gradio__svelte__internal, {
- SvelteComponent: Vd,
- append_hydration: Ud,
- attr: Gd,
- children: Zd,
- claim_svg_element: Xd,
- detach: Yd,
- init: Wd,
- insert_hydration: Kd,
- noop: Qd,
- safe_not_equal: Jd,
- svg_element: ef
+ SvelteComponent: Wd,
+ append_hydration: Kd,
+ attr: Qd,
+ children: Jd,
+ claim_svg_element: ef,
+ detach: tf,
+ init: nf,
+ insert_hydration: lf,
+ noop: of,
+ safe_not_equal: af,
+ svg_element: sf
} = window.__gradio__svelte__internal, {
- SvelteComponent: Ao,
- append_hydration: kn,
- attr: Be,
- children: en,
- claim_svg_element: tn,
- detach: Et,
- init: So,
- insert_hydration: Bo,
- noop: Fn,
- safe_not_equal: qo,
- set_style: Ne,
- svg_element: nn
+ SvelteComponent: Ia,
+ append_hydration: Fn,
+ attr: Ie,
+ children: tn,
+ claim_svg_element: nn,
+ detach: qt,
+ init: Ra,
+ insert_hydration: La,
+ noop: $n,
+ safe_not_equal: Oa,
+ set_style: Ve,
+ svg_element: ln
} = window.__gradio__svelte__internal;
-function To(a) {
- let e, t, n, i;
+function Pa(o) {
+ let e, t, n, l;
return {
c() {
- e = nn("svg"), t = nn("g"), n = nn("path"), i = nn("path"), this.h();
+ e = ln("svg"), t = ln("g"), n = ln("path"), l = ln("path"), this.h();
},
- l(l) {
- e = tn(l, "svg", {
+ l(i) {
+ e = nn(i, "svg", {
width: !0,
height: !0,
viewBox: !0,
@@ -4724,808 +4724,808 @@ function To(a) {
stroke: !0,
style: !0
});
- var o = en(e);
- t = tn(o, "g", { transform: !0 });
- var s = en(t);
- n = tn(s, "path", { d: !0, style: !0 }), en(n).forEach(Et), s.forEach(Et), i = tn(o, "path", { d: !0, style: !0 }), en(i).forEach(Et), o.forEach(Et), this.h();
+ var a = tn(e);
+ t = nn(a, "g", { transform: !0 });
+ var s = tn(t);
+ n = nn(s, "path", { d: !0, style: !0 }), tn(n).forEach(qt), s.forEach(qt), l = nn(a, "path", { d: !0, style: !0 }), tn(l).forEach(qt), a.forEach(qt), this.h();
},
h() {
- Be(n, "d", "M18,6L6.087,17.913"), Ne(n, "fill", "none"), Ne(n, "fill-rule", "nonzero"), Ne(n, "stroke-width", "2px"), Be(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), Be(i, "d", "M4.364,4.364L19.636,19.636"), Ne(i, "fill", "none"), Ne(i, "fill-rule", "nonzero"), Ne(i, "stroke-width", "2px"), Be(e, "width", "100%"), Be(e, "height", "100%"), Be(e, "viewBox", "0 0 24 24"), Be(e, "version", "1.1"), Be(e, "xmlns", "http://www.w3.org/2000/svg"), Be(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), Be(e, "xml:space", "preserve"), Be(e, "stroke", "currentColor"), Ne(e, "fill-rule", "evenodd"), Ne(e, "clip-rule", "evenodd"), Ne(e, "stroke-linecap", "round"), Ne(e, "stroke-linejoin", "round");
+ Ie(n, "d", "M18,6L6.087,17.913"), Ve(n, "fill", "none"), Ve(n, "fill-rule", "nonzero"), Ve(n, "stroke-width", "2px"), Ie(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), Ie(l, "d", "M4.364,4.364L19.636,19.636"), Ve(l, "fill", "none"), Ve(l, "fill-rule", "nonzero"), Ve(l, "stroke-width", "2px"), Ie(e, "width", "100%"), Ie(e, "height", "100%"), Ie(e, "viewBox", "0 0 24 24"), Ie(e, "version", "1.1"), Ie(e, "xmlns", "http://www.w3.org/2000/svg"), Ie(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), Ie(e, "xml:space", "preserve"), Ie(e, "stroke", "currentColor"), Ve(e, "fill-rule", "evenodd"), Ve(e, "clip-rule", "evenodd"), Ve(e, "stroke-linecap", "round"), Ve(e, "stroke-linejoin", "round");
},
- m(l, o) {
- Bo(l, e, o), kn(e, t), kn(t, n), kn(e, i);
+ m(i, a) {
+ La(i, e, a), Fn(e, t), Fn(t, n), Fn(e, l);
},
- p: Fn,
- i: Fn,
- o: Fn,
- d(l) {
- l && Et(e);
+ p: $n,
+ i: $n,
+ o: $n,
+ d(i) {
+ i && qt(e);
}
};
}
-class zo extends Ao {
+class Ma extends Ia {
constructor(e) {
- super(), So(this, e, null, To, qo, {});
+ super(), Ra(this, e, null, Pa, Oa, {});
}
}
const {
- SvelteComponent: tf,
- append_hydration: nf,
- attr: lf,
- children: af,
- claim_svg_element: of,
- detach: sf,
- init: rf,
- insert_hydration: uf,
- noop: _f,
- safe_not_equal: cf,
- svg_element: df
+ SvelteComponent: rf,
+ append_hydration: uf,
+ attr: _f,
+ children: cf,
+ claim_svg_element: df,
+ detach: ff,
+ init: hf,
+ insert_hydration: pf,
+ noop: mf,
+ safe_not_equal: gf,
+ svg_element: vf
} = window.__gradio__svelte__internal, {
- SvelteComponent: ff,
- append_hydration: hf,
- attr: pf,
- children: mf,
- claim_svg_element: gf,
- detach: vf,
- init: bf,
- insert_hydration: Df,
- noop: yf,
- safe_not_equal: wf,
- svg_element: kf
+ SvelteComponent: bf,
+ append_hydration: Df,
+ attr: yf,
+ children: wf,
+ claim_svg_element: kf,
+ detach: Ff,
+ init: $f,
+ insert_hydration: Cf,
+ noop: Ef,
+ safe_not_equal: Af,
+ svg_element: Sf
} = window.__gradio__svelte__internal, {
- SvelteComponent: Ff,
- append_hydration: $f,
- attr: Cf,
- children: Ef,
- claim_svg_element: Af,
- detach: Sf,
- init: Bf,
- insert_hydration: qf,
- noop: Tf,
- safe_not_equal: zf,
- svg_element: If
+ SvelteComponent: qf,
+ append_hydration: Bf,
+ attr: Tf,
+ children: zf,
+ claim_svg_element: If,
+ detach: Rf,
+ init: Lf,
+ insert_hydration: Of,
+ noop: Pf,
+ safe_not_equal: Mf,
+ svg_element: Nf
} = window.__gradio__svelte__internal, {
- SvelteComponent: Rf,
- append_hydration: Lf,
- attr: Of,
- children: Pf,
- claim_svg_element: Mf,
- detach: Nf,
- init: jf,
- insert_hydration: Hf,
- noop: xf,
- safe_not_equal: Vf,
- svg_element: Uf
+ SvelteComponent: jf,
+ append_hydration: Vf,
+ attr: Hf,
+ children: Gf,
+ claim_svg_element: Uf,
+ detach: Zf,
+ init: xf,
+ insert_hydration: Xf,
+ noop: Yf,
+ safe_not_equal: Wf,
+ svg_element: Kf
} = window.__gradio__svelte__internal, {
- SvelteComponent: Gf,
- append_hydration: Zf,
- attr: Xf,
- children: Yf,
- claim_svg_element: Wf,
- detach: Kf,
- init: Qf,
- insert_hydration: Jf,
- noop: eh,
- safe_not_equal: th,
- svg_element: nh
+ SvelteComponent: Qf,
+ append_hydration: Jf,
+ attr: eh,
+ children: th,
+ claim_svg_element: nh,
+ detach: ih,
+ init: lh,
+ insert_hydration: oh,
+ noop: ah,
+ safe_not_equal: sh,
+ svg_element: rh
} = window.__gradio__svelte__internal, {
- SvelteComponent: ih,
- append_hydration: lh,
- attr: ah,
- children: oh,
- claim_svg_element: sh,
- detach: rh,
- init: uh,
- insert_hydration: _h,
- noop: ch,
- safe_not_equal: dh,
- svg_element: fh
+ SvelteComponent: uh,
+ append_hydration: _h,
+ attr: ch,
+ children: dh,
+ claim_svg_element: fh,
+ detach: hh,
+ init: ph,
+ insert_hydration: mh,
+ noop: gh,
+ safe_not_equal: vh,
+ svg_element: bh
} = window.__gradio__svelte__internal, {
- SvelteComponent: hh,
- append_hydration: ph,
- attr: mh,
- children: gh,
- claim_svg_element: vh,
- detach: bh,
- init: Dh,
- insert_hydration: yh,
- noop: wh,
- safe_not_equal: kh,
- svg_element: Fh
+ SvelteComponent: Dh,
+ append_hydration: yh,
+ attr: wh,
+ children: kh,
+ claim_svg_element: Fh,
+ detach: $h,
+ init: Ch,
+ insert_hydration: Eh,
+ noop: Ah,
+ safe_not_equal: Sh,
+ svg_element: qh
} = window.__gradio__svelte__internal, {
- SvelteComponent: $h,
- append_hydration: Ch,
- attr: Eh,
- children: Ah,
- claim_svg_element: Sh,
- detach: Bh,
- init: qh,
- insert_hydration: Th,
- noop: zh,
- safe_not_equal: Ih,
- svg_element: Rh
+ SvelteComponent: Bh,
+ append_hydration: Th,
+ attr: zh,
+ children: Ih,
+ claim_svg_element: Rh,
+ detach: Lh,
+ init: Oh,
+ insert_hydration: Ph,
+ noop: Mh,
+ safe_not_equal: Nh,
+ svg_element: jh
} = window.__gradio__svelte__internal, {
- SvelteComponent: Lh,
- append_hydration: Oh,
- attr: Ph,
- children: Mh,
- claim_svg_element: Nh,
- detach: jh,
- init: Hh,
- insert_hydration: xh,
- noop: Vh,
- safe_not_equal: Uh,
- svg_element: Gh
+ SvelteComponent: Vh,
+ append_hydration: Hh,
+ attr: Gh,
+ children: Uh,
+ claim_svg_element: Zh,
+ detach: xh,
+ init: Xh,
+ insert_hydration: Yh,
+ noop: Wh,
+ safe_not_equal: Kh,
+ svg_element: Qh
} = window.__gradio__svelte__internal, {
- SvelteComponent: Zh,
- append_hydration: Xh,
- attr: Yh,
- children: Wh,
- claim_svg_element: Kh,
- detach: Qh,
- init: Jh,
- insert_hydration: ep,
- noop: tp,
- safe_not_equal: np,
- svg_element: ip
+ SvelteComponent: Jh,
+ append_hydration: ep,
+ attr: tp,
+ children: np,
+ claim_svg_element: ip,
+ detach: lp,
+ init: op,
+ insert_hydration: ap,
+ noop: sp,
+ safe_not_equal: rp,
+ svg_element: up
} = window.__gradio__svelte__internal, {
- SvelteComponent: lp,
- append_hydration: ap,
- attr: op,
- children: sp,
- claim_svg_element: rp,
- detach: up,
- init: _p,
- insert_hydration: cp,
- noop: dp,
- safe_not_equal: fp,
- svg_element: hp
+ SvelteComponent: _p,
+ append_hydration: cp,
+ attr: dp,
+ children: fp,
+ claim_svg_element: hp,
+ detach: pp,
+ init: mp,
+ insert_hydration: gp,
+ noop: vp,
+ safe_not_equal: bp,
+ svg_element: Dp
} = window.__gradio__svelte__internal, {
- SvelteComponent: pp,
- append_hydration: mp,
- attr: gp,
- children: vp,
- claim_svg_element: bp,
- detach: Dp,
- init: yp,
- insert_hydration: wp,
- noop: kp,
- safe_not_equal: Fp,
- svg_element: $p
+ SvelteComponent: yp,
+ append_hydration: wp,
+ attr: kp,
+ children: Fp,
+ claim_svg_element: $p,
+ detach: Cp,
+ init: Ep,
+ insert_hydration: Ap,
+ noop: Sp,
+ safe_not_equal: qp,
+ svg_element: Bp
} = window.__gradio__svelte__internal, {
- SvelteComponent: Cp,
- append_hydration: Ep,
- attr: Ap,
- children: Sp,
- claim_svg_element: Bp,
- detach: qp,
- init: Tp,
- insert_hydration: zp,
- noop: Ip,
- safe_not_equal: Rp,
- svg_element: Lp
+ SvelteComponent: Tp,
+ append_hydration: zp,
+ attr: Ip,
+ children: Rp,
+ claim_svg_element: Lp,
+ detach: Op,
+ init: Pp,
+ insert_hydration: Mp,
+ noop: Np,
+ safe_not_equal: jp,
+ svg_element: Vp
} = window.__gradio__svelte__internal, {
- SvelteComponent: Op,
- append_hydration: Pp,
- attr: Mp,
- children: Np,
- claim_svg_element: jp,
- detach: Hp,
- init: xp,
- insert_hydration: Vp,
- noop: Up,
- safe_not_equal: Gp,
- svg_element: Zp
+ SvelteComponent: Hp,
+ append_hydration: Gp,
+ attr: Up,
+ children: Zp,
+ claim_svg_element: xp,
+ detach: Xp,
+ init: Yp,
+ insert_hydration: Wp,
+ noop: Kp,
+ safe_not_equal: Qp,
+ svg_element: Jp
} = window.__gradio__svelte__internal, {
- SvelteComponent: Xp,
- append_hydration: Yp,
- attr: Wp,
- children: Kp,
- claim_svg_element: Qp,
- detach: Jp,
- init: em,
- insert_hydration: tm,
- noop: nm,
- safe_not_equal: im,
- svg_element: lm
+ SvelteComponent: em,
+ append_hydration: tm,
+ attr: nm,
+ children: im,
+ claim_svg_element: lm,
+ detach: om,
+ init: am,
+ insert_hydration: sm,
+ noop: rm,
+ safe_not_equal: um,
+ svg_element: _m
} = window.__gradio__svelte__internal, {
- SvelteComponent: am,
- append_hydration: om,
- attr: sm,
- children: rm,
- claim_svg_element: um,
- detach: _m,
- init: cm,
- insert_hydration: dm,
- noop: fm,
- safe_not_equal: hm,
- svg_element: pm
+ SvelteComponent: cm,
+ append_hydration: dm,
+ attr: fm,
+ children: hm,
+ claim_svg_element: pm,
+ detach: mm,
+ init: gm,
+ insert_hydration: vm,
+ noop: bm,
+ safe_not_equal: Dm,
+ svg_element: ym
} = window.__gradio__svelte__internal, {
- SvelteComponent: mm,
- append_hydration: gm,
- attr: vm,
- children: bm,
- claim_svg_element: Dm,
- detach: ym,
- init: wm,
- insert_hydration: km,
- noop: Fm,
- safe_not_equal: $m,
- svg_element: Cm
+ SvelteComponent: wm,
+ append_hydration: km,
+ attr: Fm,
+ children: $m,
+ claim_svg_element: Cm,
+ detach: Em,
+ init: Am,
+ insert_hydration: Sm,
+ noop: qm,
+ safe_not_equal: Bm,
+ svg_element: Tm
} = window.__gradio__svelte__internal, {
- SvelteComponent: Em,
- append_hydration: Am,
- attr: Sm,
- children: Bm,
- claim_svg_element: qm,
- detach: Tm,
- init: zm,
- insert_hydration: Im,
- noop: Rm,
- safe_not_equal: Lm,
- svg_element: Om
+ SvelteComponent: zm,
+ append_hydration: Im,
+ attr: Rm,
+ children: Lm,
+ claim_svg_element: Om,
+ detach: Pm,
+ init: Mm,
+ insert_hydration: Nm,
+ noop: jm,
+ safe_not_equal: Vm,
+ svg_element: Hm
} = window.__gradio__svelte__internal, {
- SvelteComponent: Pm,
- append_hydration: Mm,
- attr: Nm,
- children: jm,
- claim_svg_element: Hm,
- detach: xm,
- init: Vm,
- insert_hydration: Um,
- noop: Gm,
- safe_not_equal: Zm,
- svg_element: Xm
+ SvelteComponent: Gm,
+ append_hydration: Um,
+ attr: Zm,
+ children: xm,
+ claim_svg_element: Xm,
+ detach: Ym,
+ init: Wm,
+ insert_hydration: Km,
+ noop: Qm,
+ safe_not_equal: Jm,
+ svg_element: eg
} = window.__gradio__svelte__internal, {
- SvelteComponent: Ym,
- append_hydration: Wm,
- attr: Km,
- children: Qm,
- claim_svg_element: Jm,
- detach: e0,
- init: t0,
- insert_hydration: n0,
- noop: i0,
- safe_not_equal: l0,
- svg_element: a0
+ SvelteComponent: tg,
+ append_hydration: ng,
+ attr: ig,
+ children: lg,
+ claim_svg_element: og,
+ detach: ag,
+ init: sg,
+ insert_hydration: rg,
+ noop: ug,
+ safe_not_equal: _g,
+ svg_element: cg
} = window.__gradio__svelte__internal, {
- SvelteComponent: o0,
- append_hydration: s0,
- attr: r0,
- children: u0,
- claim_svg_element: _0,
- detach: c0,
- init: d0,
- insert_hydration: f0,
- noop: h0,
- safe_not_equal: p0,
- svg_element: m0
+ SvelteComponent: dg,
+ append_hydration: fg,
+ attr: hg,
+ children: pg,
+ claim_svg_element: mg,
+ detach: gg,
+ init: vg,
+ insert_hydration: bg,
+ noop: Dg,
+ safe_not_equal: yg,
+ svg_element: wg
} = window.__gradio__svelte__internal, {
- SvelteComponent: g0,
- append_hydration: v0,
- attr: b0,
- children: D0,
- claim_svg_element: y0,
- detach: w0,
- init: k0,
- insert_hydration: F0,
- noop: $0,
- safe_not_equal: C0,
- svg_element: E0
+ SvelteComponent: kg,
+ append_hydration: Fg,
+ attr: $g,
+ children: Cg,
+ claim_svg_element: Eg,
+ detach: Ag,
+ init: Sg,
+ insert_hydration: qg,
+ noop: Bg,
+ safe_not_equal: Tg,
+ svg_element: zg
} = window.__gradio__svelte__internal, {
- SvelteComponent: A0,
- append_hydration: S0,
- attr: B0,
- children: q0,
- claim_svg_element: T0,
- detach: z0,
- init: I0,
- insert_hydration: R0,
- noop: L0,
- safe_not_equal: O0,
- svg_element: P0
+ SvelteComponent: Ig,
+ append_hydration: Rg,
+ attr: Lg,
+ children: Og,
+ claim_svg_element: Pg,
+ detach: Mg,
+ init: Ng,
+ insert_hydration: jg,
+ noop: Vg,
+ safe_not_equal: Hg,
+ svg_element: Gg
} = window.__gradio__svelte__internal, {
- SvelteComponent: M0,
- append_hydration: N0,
- attr: j0,
- children: H0,
- claim_svg_element: x0,
- detach: V0,
- init: U0,
- insert_hydration: G0,
- noop: Z0,
- safe_not_equal: X0,
- svg_element: Y0
+ SvelteComponent: Ug,
+ append_hydration: Zg,
+ attr: xg,
+ children: Xg,
+ claim_svg_element: Yg,
+ detach: Wg,
+ init: Kg,
+ insert_hydration: Qg,
+ noop: Jg,
+ safe_not_equal: e0,
+ svg_element: t0
} = window.__gradio__svelte__internal, {
- SvelteComponent: W0,
- append_hydration: K0,
- attr: Q0,
- children: J0,
- claim_svg_element: eg,
- detach: tg,
- init: ng,
- insert_hydration: ig,
- noop: lg,
- safe_not_equal: ag,
- svg_element: og
+ SvelteComponent: n0,
+ append_hydration: i0,
+ attr: l0,
+ children: o0,
+ claim_svg_element: a0,
+ detach: s0,
+ init: r0,
+ insert_hydration: u0,
+ noop: _0,
+ safe_not_equal: c0,
+ svg_element: d0
} = window.__gradio__svelte__internal, {
- SvelteComponent: sg,
- append_hydration: rg,
- attr: ug,
- children: _g,
- claim_svg_element: cg,
- detach: dg,
- init: fg,
- insert_hydration: hg,
- noop: pg,
- safe_not_equal: mg,
- svg_element: gg
+ SvelteComponent: f0,
+ append_hydration: h0,
+ attr: p0,
+ children: m0,
+ claim_svg_element: g0,
+ detach: v0,
+ init: b0,
+ insert_hydration: D0,
+ noop: y0,
+ safe_not_equal: w0,
+ svg_element: k0
} = window.__gradio__svelte__internal, {
- SvelteComponent: vg,
- append_hydration: bg,
- attr: Dg,
- children: yg,
- claim_svg_element: wg,
- detach: kg,
- init: Fg,
- insert_hydration: $g,
- noop: Cg,
- safe_not_equal: Eg,
- svg_element: Ag
+ SvelteComponent: F0,
+ append_hydration: $0,
+ attr: C0,
+ children: E0,
+ claim_svg_element: A0,
+ detach: S0,
+ init: q0,
+ insert_hydration: B0,
+ noop: T0,
+ safe_not_equal: z0,
+ svg_element: I0
} = window.__gradio__svelte__internal, {
- SvelteComponent: Sg,
- append_hydration: Bg,
- attr: qg,
- children: Tg,
- claim_svg_element: zg,
- detach: Ig,
- init: Rg,
- insert_hydration: Lg,
- noop: Og,
- safe_not_equal: Pg,
- svg_element: Mg
+ SvelteComponent: R0,
+ append_hydration: L0,
+ attr: O0,
+ children: P0,
+ claim_svg_element: M0,
+ detach: N0,
+ init: j0,
+ insert_hydration: V0,
+ noop: H0,
+ safe_not_equal: G0,
+ svg_element: U0
} = window.__gradio__svelte__internal, {
- SvelteComponent: Ng,
- append_hydration: jg,
- attr: Hg,
- children: xg,
- claim_svg_element: Vg,
- detach: Ug,
- init: Gg,
- insert_hydration: Zg,
- noop: Xg,
- safe_not_equal: Yg,
- svg_element: Wg
+ SvelteComponent: Z0,
+ append_hydration: x0,
+ attr: X0,
+ children: Y0,
+ claim_svg_element: W0,
+ detach: K0,
+ init: Q0,
+ insert_hydration: J0,
+ noop: e1,
+ safe_not_equal: t1,
+ svg_element: n1
} = window.__gradio__svelte__internal, {
- SvelteComponent: Kg,
- append_hydration: Qg,
- attr: Jg,
- children: e1,
- claim_svg_element: t1,
- detach: n1,
- init: i1,
- insert_hydration: l1,
- noop: a1,
- safe_not_equal: o1,
- svg_element: s1
+ SvelteComponent: i1,
+ append_hydration: l1,
+ attr: o1,
+ children: a1,
+ claim_svg_element: s1,
+ detach: r1,
+ init: u1,
+ insert_hydration: _1,
+ noop: c1,
+ safe_not_equal: d1,
+ svg_element: f1
} = window.__gradio__svelte__internal, {
- SvelteComponent: r1,
- append_hydration: u1,
- attr: _1,
- children: c1,
- claim_svg_element: d1,
- detach: f1,
- init: h1,
- insert_hydration: p1,
- noop: m1,
- safe_not_equal: g1,
- svg_element: v1
+ SvelteComponent: h1,
+ append_hydration: p1,
+ attr: m1,
+ children: g1,
+ claim_svg_element: v1,
+ detach: b1,
+ init: D1,
+ insert_hydration: y1,
+ noop: w1,
+ safe_not_equal: k1,
+ svg_element: F1
} = window.__gradio__svelte__internal, {
- SvelteComponent: b1,
- append_hydration: D1,
- attr: y1,
- children: w1,
- claim_svg_element: k1,
- detach: F1,
- init: $1,
- insert_hydration: C1,
- noop: E1,
- safe_not_equal: A1,
- svg_element: S1
+ SvelteComponent: $1,
+ append_hydration: C1,
+ attr: E1,
+ children: A1,
+ claim_svg_element: S1,
+ detach: q1,
+ init: B1,
+ insert_hydration: T1,
+ noop: z1,
+ safe_not_equal: I1,
+ svg_element: R1
} = window.__gradio__svelte__internal, {
- SvelteComponent: B1,
- append_hydration: q1,
- attr: T1,
- children: z1,
- claim_svg_element: I1,
- detach: R1,
- init: L1,
- insert_hydration: O1,
- noop: P1,
- safe_not_equal: M1,
- svg_element: N1
+ SvelteComponent: L1,
+ append_hydration: O1,
+ attr: P1,
+ children: M1,
+ claim_svg_element: N1,
+ detach: j1,
+ init: V1,
+ insert_hydration: H1,
+ noop: G1,
+ safe_not_equal: U1,
+ svg_element: Z1
} = window.__gradio__svelte__internal, {
- SvelteComponent: j1,
- append_hydration: H1,
- attr: x1,
- children: V1,
- claim_svg_element: U1,
- detach: G1,
- init: Z1,
- insert_hydration: X1,
- noop: Y1,
- safe_not_equal: W1,
- set_style: K1,
- svg_element: Q1
+ SvelteComponent: x1,
+ append_hydration: X1,
+ attr: Y1,
+ children: W1,
+ claim_svg_element: K1,
+ detach: Q1,
+ init: J1,
+ insert_hydration: ev,
+ noop: tv,
+ safe_not_equal: nv,
+ set_style: iv,
+ svg_element: lv
} = window.__gradio__svelte__internal, {
- SvelteComponent: J1,
- append_hydration: ev,
- attr: tv,
- children: nv,
- claim_svg_element: iv,
- detach: lv,
- init: av,
- insert_hydration: ov,
- noop: sv,
- safe_not_equal: rv,
- svg_element: uv
+ SvelteComponent: ov,
+ append_hydration: av,
+ attr: sv,
+ children: rv,
+ claim_svg_element: uv,
+ detach: _v,
+ init: cv,
+ insert_hydration: dv,
+ noop: fv,
+ safe_not_equal: hv,
+ svg_element: pv
} = window.__gradio__svelte__internal, {
- SvelteComponent: _v,
- append_hydration: cv,
- attr: dv,
- children: fv,
- claim_svg_element: hv,
- detach: pv,
- init: mv,
- insert_hydration: gv,
- noop: vv,
- safe_not_equal: bv,
- svg_element: Dv
+ SvelteComponent: mv,
+ append_hydration: gv,
+ attr: vv,
+ children: bv,
+ claim_svg_element: Dv,
+ detach: yv,
+ init: wv,
+ insert_hydration: kv,
+ noop: Fv,
+ safe_not_equal: $v,
+ svg_element: Cv
} = window.__gradio__svelte__internal, {
- SvelteComponent: yv,
- append_hydration: wv,
- attr: kv,
- children: Fv,
- claim_svg_element: $v,
- detach: Cv,
- init: Ev,
- insert_hydration: Av,
- noop: Sv,
- safe_not_equal: Bv,
- svg_element: qv
+ SvelteComponent: Ev,
+ append_hydration: Av,
+ attr: Sv,
+ children: qv,
+ claim_svg_element: Bv,
+ detach: Tv,
+ init: zv,
+ insert_hydration: Iv,
+ noop: Rv,
+ safe_not_equal: Lv,
+ svg_element: Ov
} = window.__gradio__svelte__internal, {
- SvelteComponent: Tv,
- append_hydration: zv,
- attr: Iv,
- children: Rv,
- claim_svg_element: Lv,
- detach: Ov,
- init: Pv,
- insert_hydration: Mv,
- noop: Nv,
- safe_not_equal: jv,
- svg_element: Hv
+ SvelteComponent: Pv,
+ append_hydration: Mv,
+ attr: Nv,
+ children: jv,
+ claim_svg_element: Vv,
+ detach: Hv,
+ init: Gv,
+ insert_hydration: Uv,
+ noop: Zv,
+ safe_not_equal: xv,
+ svg_element: Xv
} = window.__gradio__svelte__internal, {
- SvelteComponent: xv,
- append_hydration: Vv,
- attr: Uv,
- children: Gv,
- claim_svg_element: Zv,
- detach: Xv,
- init: Yv,
- insert_hydration: Wv,
- noop: Kv,
- safe_not_equal: Qv,
- svg_element: Jv
+ SvelteComponent: Yv,
+ append_hydration: Wv,
+ attr: Kv,
+ children: Qv,
+ claim_svg_element: Jv,
+ detach: eb,
+ init: tb,
+ insert_hydration: nb,
+ noop: ib,
+ safe_not_equal: lb,
+ svg_element: ob
} = window.__gradio__svelte__internal, {
- SvelteComponent: eb,
- append_hydration: tb,
- attr: nb,
- children: ib,
- claim_svg_element: lb,
- detach: ab,
- init: ob,
- insert_hydration: sb,
- noop: rb,
- safe_not_equal: ub,
- svg_element: _b
+ SvelteComponent: ab,
+ append_hydration: sb,
+ attr: rb,
+ children: ub,
+ claim_svg_element: _b,
+ detach: cb,
+ init: db,
+ insert_hydration: fb,
+ noop: hb,
+ safe_not_equal: pb,
+ svg_element: mb
} = window.__gradio__svelte__internal, {
- SvelteComponent: cb,
- append_hydration: db,
- attr: fb,
- children: hb,
- claim_svg_element: pb,
- detach: mb,
- init: gb,
- insert_hydration: vb,
- noop: bb,
- safe_not_equal: Db,
- svg_element: yb
+ SvelteComponent: gb,
+ append_hydration: vb,
+ attr: bb,
+ children: Db,
+ claim_svg_element: yb,
+ detach: wb,
+ init: kb,
+ insert_hydration: Fb,
+ noop: $b,
+ safe_not_equal: Cb,
+ svg_element: Eb
} = window.__gradio__svelte__internal, {
- SvelteComponent: wb,
- append_hydration: kb,
- attr: Fb,
- children: $b,
- claim_svg_element: Cb,
- detach: Eb,
- init: Ab,
- insert_hydration: Sb,
- noop: Bb,
- safe_not_equal: qb,
- svg_element: Tb
+ SvelteComponent: Ab,
+ append_hydration: Sb,
+ attr: qb,
+ children: Bb,
+ claim_svg_element: Tb,
+ detach: zb,
+ init: Ib,
+ insert_hydration: Rb,
+ noop: Lb,
+ safe_not_equal: Ob,
+ svg_element: Pb
} = window.__gradio__svelte__internal, {
- SvelteComponent: zb,
- append_hydration: Ib,
- attr: Rb,
- children: Lb,
- claim_svg_element: Ob,
- claim_text: Pb,
- detach: Mb,
- init: Nb,
- insert_hydration: jb,
- noop: Hb,
- safe_not_equal: xb,
- svg_element: Vb,
- text: Ub
+ SvelteComponent: Mb,
+ append_hydration: Nb,
+ attr: jb,
+ children: Vb,
+ claim_svg_element: Hb,
+ claim_text: Gb,
+ detach: Ub,
+ init: Zb,
+ insert_hydration: xb,
+ noop: Xb,
+ safe_not_equal: Yb,
+ svg_element: Wb,
+ text: Kb
} = window.__gradio__svelte__internal, {
- SvelteComponent: Gb,
- append_hydration: Zb,
- attr: Xb,
- children: Yb,
- claim_svg_element: Wb,
- detach: Kb,
- init: Qb,
- insert_hydration: Jb,
- noop: eD,
- safe_not_equal: tD,
- svg_element: nD
+ SvelteComponent: Qb,
+ append_hydration: Jb,
+ attr: e2,
+ children: t2,
+ claim_svg_element: n2,
+ detach: i2,
+ init: l2,
+ insert_hydration: o2,
+ noop: a2,
+ safe_not_equal: s2,
+ svg_element: r2
+} = window.__gradio__svelte__internal, {
+ SvelteComponent: u2,
+ append_hydration: _2,
+ attr: c2,
+ children: d2,
+ claim_svg_element: f2,
+ detach: h2,
+ init: p2,
+ insert_hydration: m2,
+ noop: g2,
+ safe_not_equal: v2,
+ svg_element: b2
+} = window.__gradio__svelte__internal, {
+ SvelteComponent: D2,
+ append_hydration: y2,
+ attr: w2,
+ children: k2,
+ claim_svg_element: F2,
+ detach: $2,
+ init: C2,
+ insert_hydration: E2,
+ noop: A2,
+ safe_not_equal: S2,
+ svg_element: q2
+} = window.__gradio__svelte__internal, {
+ SvelteComponent: B2,
+ append_hydration: T2,
+ attr: z2,
+ children: I2,
+ claim_svg_element: R2,
+ detach: L2,
+ init: O2,
+ insert_hydration: P2,
+ noop: M2,
+ safe_not_equal: N2,
+ svg_element: j2
+} = window.__gradio__svelte__internal, {
+ SvelteComponent: V2,
+ append_hydration: H2,
+ attr: G2,
+ children: U2,
+ claim_svg_element: Z2,
+ detach: x2,
+ init: X2,
+ insert_hydration: Y2,
+ noop: W2,
+ safe_not_equal: K2,
+ svg_element: Q2
} = window.__gradio__svelte__internal, {
- SvelteComponent: iD,
- append_hydration: lD,
- attr: aD,
- children: oD,
- claim_svg_element: sD,
- detach: rD,
- init: uD,
- insert_hydration: _D,
- noop: cD,
- safe_not_equal: dD,
- svg_element: fD
+ SvelteComponent: J2,
+ append_hydration: eD,
+ attr: tD,
+ children: nD,
+ claim_svg_element: iD,
+ detach: lD,
+ init: oD,
+ insert_hydration: aD,
+ noop: sD,
+ safe_not_equal: rD,
+ svg_element: uD
} = window.__gradio__svelte__internal, {
- SvelteComponent: hD,
- append_hydration: pD,
- attr: mD,
- children: gD,
- claim_svg_element: vD,
- detach: bD,
- init: DD,
- insert_hydration: yD,
- noop: wD,
- safe_not_equal: kD,
- svg_element: FD
+ SvelteComponent: _D,
+ append_hydration: cD,
+ attr: dD,
+ children: fD,
+ claim_svg_element: hD,
+ detach: pD,
+ init: mD,
+ insert_hydration: gD,
+ noop: vD,
+ safe_not_equal: bD,
+ svg_element: DD
} = window.__gradio__svelte__internal, {
- SvelteComponent: $D,
- append_hydration: CD,
- attr: ED,
- children: AD,
- claim_svg_element: SD,
- detach: BD,
- init: qD,
- insert_hydration: TD,
- noop: zD,
- safe_not_equal: ID,
- svg_element: RD
+ SvelteComponent: yD,
+ append_hydration: wD,
+ attr: kD,
+ children: FD,
+ claim_svg_element: $D,
+ claim_text: CD,
+ detach: ED,
+ init: AD,
+ insert_hydration: SD,
+ noop: qD,
+ safe_not_equal: BD,
+ svg_element: TD,
+ text: zD
} = window.__gradio__svelte__internal, {
- SvelteComponent: LD,
- append_hydration: OD,
- attr: PD,
- children: MD,
- claim_svg_element: ND,
- detach: jD,
- init: HD,
- insert_hydration: xD,
- noop: VD,
- safe_not_equal: UD,
- svg_element: GD
+ SvelteComponent: ID,
+ append_hydration: RD,
+ attr: LD,
+ children: OD,
+ claim_svg_element: PD,
+ claim_text: MD,
+ detach: ND,
+ init: jD,
+ insert_hydration: VD,
+ noop: HD,
+ safe_not_equal: GD,
+ svg_element: UD,
+ text: ZD
} = window.__gradio__svelte__internal, {
- SvelteComponent: ZD,
+ SvelteComponent: xD,
append_hydration: XD,
attr: YD,
children: WD,
claim_svg_element: KD,
- detach: QD,
- init: JD,
- insert_hydration: ey,
- noop: ty,
- safe_not_equal: ny,
- svg_element: iy
+ claim_text: QD,
+ detach: JD,
+ init: ey,
+ insert_hydration: ty,
+ noop: ny,
+ safe_not_equal: iy,
+ svg_element: ly,
+ text: oy
} = window.__gradio__svelte__internal, {
- SvelteComponent: ly,
- append_hydration: ay,
- attr: oy,
- children: sy,
- claim_svg_element: ry,
- detach: uy,
- init: _y,
- insert_hydration: cy,
- noop: dy,
- safe_not_equal: fy,
- svg_element: hy
+ SvelteComponent: ay,
+ append_hydration: sy,
+ attr: ry,
+ children: uy,
+ claim_svg_element: _y,
+ detach: cy,
+ init: dy,
+ insert_hydration: fy,
+ noop: hy,
+ safe_not_equal: py,
+ svg_element: my
} = window.__gradio__svelte__internal, {
- SvelteComponent: py,
- append_hydration: my,
- attr: gy,
- children: vy,
- claim_svg_element: by,
- claim_text: Dy,
- detach: yy,
- init: wy,
- insert_hydration: ky,
- noop: Fy,
- safe_not_equal: $y,
- svg_element: Cy,
- text: Ey
+ SvelteComponent: gy,
+ append_hydration: vy,
+ attr: by,
+ children: Dy,
+ claim_svg_element: yy,
+ detach: wy,
+ init: ky,
+ insert_hydration: Fy,
+ noop: $y,
+ safe_not_equal: Cy,
+ svg_element: Ey
} = window.__gradio__svelte__internal, {
SvelteComponent: Ay,
append_hydration: Sy,
- attr: By,
- children: qy,
+ attr: qy,
+ children: By,
claim_svg_element: Ty,
- claim_text: zy,
- detach: Iy,
- init: Ry,
- insert_hydration: Ly,
- noop: Oy,
- safe_not_equal: Py,
- svg_element: My,
- text: Ny
+ detach: zy,
+ init: Iy,
+ insert_hydration: Ry,
+ noop: Ly,
+ safe_not_equal: Oy,
+ svg_element: Py
} = window.__gradio__svelte__internal, {
- SvelteComponent: jy,
- append_hydration: Hy,
- attr: xy,
+ SvelteComponent: My,
+ append_hydration: Ny,
+ attr: jy,
children: Vy,
- claim_svg_element: Uy,
- claim_text: Gy,
- detach: Zy,
- init: Xy,
- insert_hydration: Yy,
- noop: Wy,
- safe_not_equal: Ky,
- svg_element: Qy,
- text: Jy
+ claim_svg_element: Hy,
+ detach: Gy,
+ init: Uy,
+ insert_hydration: Zy,
+ noop: xy,
+ safe_not_equal: Xy,
+ svg_element: Yy
} = window.__gradio__svelte__internal, {
- SvelteComponent: e2,
- append_hydration: t2,
- attr: n2,
- children: i2,
- claim_svg_element: l2,
- detach: a2,
- init: o2,
- insert_hydration: s2,
- noop: r2,
- safe_not_equal: u2,
- svg_element: _2
+ SvelteComponent: Wy,
+ append_hydration: Ky,
+ attr: Qy,
+ children: Jy,
+ claim_svg_element: ew,
+ detach: tw,
+ init: nw,
+ insert_hydration: iw,
+ noop: lw,
+ safe_not_equal: ow,
+ svg_element: aw
} = window.__gradio__svelte__internal, {
- SvelteComponent: c2,
- append_hydration: d2,
- attr: f2,
- children: h2,
- claim_svg_element: p2,
- detach: m2,
- init: g2,
- insert_hydration: v2,
- noop: b2,
- safe_not_equal: D2,
- svg_element: y2
+ SvelteComponent: sw,
+ append_hydration: rw,
+ attr: uw,
+ children: _w,
+ claim_svg_element: cw,
+ detach: dw,
+ init: fw,
+ insert_hydration: hw,
+ noop: pw,
+ safe_not_equal: mw,
+ svg_element: gw
} = window.__gradio__svelte__internal, {
- SvelteComponent: w2,
- append_hydration: k2,
- attr: F2,
- children: $2,
- claim_svg_element: C2,
- detach: E2,
- init: A2,
- insert_hydration: S2,
- noop: B2,
- safe_not_equal: q2,
- svg_element: T2
+ SvelteComponent: vw,
+ append_hydration: bw,
+ attr: Dw,
+ children: yw,
+ claim_svg_element: ww,
+ detach: kw,
+ init: Fw,
+ insert_hydration: $w,
+ noop: Cw,
+ safe_not_equal: Ew,
+ svg_element: Aw
} = window.__gradio__svelte__internal, {
- SvelteComponent: z2,
- append_hydration: I2,
- attr: R2,
- children: L2,
- claim_svg_element: O2,
- detach: P2,
- init: M2,
- insert_hydration: N2,
- noop: j2,
- safe_not_equal: H2,
- svg_element: x2
+ SvelteComponent: Sw,
+ append_hydration: qw,
+ attr: Bw,
+ children: Tw,
+ claim_svg_element: zw,
+ detach: Iw,
+ init: Rw,
+ insert_hydration: Lw,
+ noop: Ow,
+ safe_not_equal: Pw,
+ svg_element: Mw
} = window.__gradio__svelte__internal, {
- SvelteComponent: V2,
- append_hydration: U2,
- attr: G2,
- children: Z2,
- claim_svg_element: X2,
- detach: Y2,
- init: W2,
- insert_hydration: K2,
- noop: Q2,
- safe_not_equal: J2,
- svg_element: ew
-} = window.__gradio__svelte__internal, {
- SvelteComponent: tw,
- append_hydration: nw,
- attr: iw,
- children: lw,
- claim_svg_element: aw,
- detach: ow,
- init: sw,
- insert_hydration: rw,
- noop: uw,
- safe_not_equal: _w,
- svg_element: cw
-} = window.__gradio__svelte__internal, {
- SvelteComponent: dw,
- append_hydration: fw,
- attr: hw,
- children: pw,
- claim_svg_element: mw,
- detach: gw,
- init: vw,
- insert_hydration: bw,
- noop: Dw,
- safe_not_equal: yw,
- svg_element: ww
+ SvelteComponent: Nw,
+ append_hydration: jw,
+ attr: Vw,
+ children: Hw,
+ claim_svg_element: Gw,
+ detach: Uw,
+ init: Zw,
+ insert_hydration: xw,
+ noop: Xw,
+ safe_not_equal: Yw,
+ svg_element: Ww
} = window.__gradio__svelte__internal, {
- SvelteComponent: kw,
- append_hydration: Fw,
- attr: $w,
- children: Cw,
- claim_svg_element: Ew,
- detach: Aw,
- init: Sw,
- insert_hydration: Bw,
- noop: qw,
- safe_not_equal: Tw,
- svg_element: zw
+ SvelteComponent: Kw,
+ append_hydration: Qw,
+ attr: Jw,
+ children: ek,
+ claim_svg_element: tk,
+ detach: nk,
+ init: ik,
+ insert_hydration: lk,
+ noop: ok,
+ safe_not_equal: ak,
+ svg_element: sk
} = window.__gradio__svelte__internal, {
- SvelteComponent: Iw,
- append_hydration: Rw,
- attr: Lw,
- children: Ow,
- claim_svg_element: Pw,
- detach: Mw,
- init: Nw,
- insert_hydration: jw,
- noop: Hw,
- safe_not_equal: xw,
- svg_element: Vw
-} = window.__gradio__svelte__internal, {
- SvelteComponent: Uw,
- append_hydration: Gw,
- attr: Zw,
- children: Xw,
- claim_svg_element: Yw,
- detach: Ww,
- init: Kw,
- insert_hydration: Qw,
- noop: Jw,
- safe_not_equal: ek,
- svg_element: tk
-} = window.__gradio__svelte__internal, {
- SvelteComponent: nk,
- append_hydration: ik,
- attr: lk,
- children: ak,
- claim_svg_element: ok,
- detach: sk,
- init: rk,
- insert_hydration: uk,
- noop: _k,
- safe_not_equal: ck,
- svg_element: dk
-} = window.__gradio__svelte__internal, Io = [
+ SvelteComponent: rk,
+ append_hydration: uk,
+ attr: _k,
+ children: ck,
+ claim_svg_element: dk,
+ detach: fk,
+ init: hk,
+ insert_hydration: pk,
+ noop: mk,
+ safe_not_equal: gk,
+ svg_element: vk
+} = window.__gradio__svelte__internal, Na = [
{ color: "red", primary: 600, secondary: 100 },
{ color: "green", primary: 600, secondary: 100 },
{ color: "blue", primary: 600, secondary: 100 },
@@ -5536,7 +5536,7 @@ const {
{ color: "cyan", primary: 600, secondary: 100 },
{ color: "lime", primary: 500, secondary: 100 },
{ color: "pink", primary: 600, secondary: 100 }
-], hi = {
+], pi = {
inherit: "inherit",
current: "currentColor",
transparent: "transparent",
@@ -5829,524 +5829,524 @@ const {
950: "#4c0519"
}
};
-Io.reduce(
- (a, { color: e, primary: t, secondary: n }) => ({
- ...a,
+Na.reduce(
+ (o, { color: e, primary: t, secondary: n }) => ({
+ ...o,
[e]: {
- primary: hi[e][t],
- secondary: hi[e][n]
+ primary: pi[e][t],
+ secondary: pi[e][n]
}
}),
{}
);
const {
- SvelteComponent: fk,
- claim_component: hk,
- create_component: pk,
- destroy_component: mk,
- init: gk,
- mount_component: vk,
- safe_not_equal: bk,
- transition_in: Dk,
- transition_out: yk
-} = window.__gradio__svelte__internal, { createEventDispatcher: wk } = window.__gradio__svelte__internal, {
- SvelteComponent: kk,
- append_hydration: Fk,
- attr: $k,
- check_outros: Ck,
- children: Ek,
- claim_component: Ak,
- claim_element: Sk,
- claim_space: Bk,
- claim_text: qk,
- create_component: Tk,
- destroy_component: zk,
- detach: Ik,
- element: Rk,
- empty: Lk,
- group_outros: Ok,
- init: Pk,
- insert_hydration: Mk,
- mount_component: Nk,
- safe_not_equal: jk,
- set_data: Hk,
- space: xk,
- text: Vk,
- toggle_class: Uk,
- transition_in: Gk,
- transition_out: Zk
+ SvelteComponent: bk,
+ claim_component: Dk,
+ create_component: yk,
+ destroy_component: wk,
+ init: kk,
+ mount_component: Fk,
+ safe_not_equal: $k,
+ transition_in: Ck,
+ transition_out: Ek
+} = window.__gradio__svelte__internal, { createEventDispatcher: Ak } = window.__gradio__svelte__internal, {
+ SvelteComponent: Sk,
+ append_hydration: qk,
+ attr: Bk,
+ check_outros: Tk,
+ children: zk,
+ claim_component: Ik,
+ claim_element: Rk,
+ claim_space: Lk,
+ claim_text: Ok,
+ create_component: Pk,
+ destroy_component: Mk,
+ detach: Nk,
+ element: jk,
+ empty: Vk,
+ group_outros: Hk,
+ init: Gk,
+ insert_hydration: Uk,
+ mount_component: Zk,
+ safe_not_equal: xk,
+ set_data: Xk,
+ space: Yk,
+ text: Wk,
+ toggle_class: Kk,
+ transition_in: Qk,
+ transition_out: Jk
} = window.__gradio__svelte__internal, {
- SvelteComponent: Xk,
- attr: Yk,
- children: Wk,
- claim_element: Kk,
- create_slot: Qk,
- detach: Jk,
- element: eF,
- get_all_dirty_from_scope: tF,
- get_slot_changes: nF,
- init: iF,
- insert_hydration: lF,
- safe_not_equal: aF,
- toggle_class: oF,
- transition_in: sF,
- transition_out: rF,
- update_slot_base: uF
+ SvelteComponent: eF,
+ attr: tF,
+ children: nF,
+ claim_element: iF,
+ create_slot: lF,
+ detach: oF,
+ element: aF,
+ get_all_dirty_from_scope: sF,
+ get_slot_changes: rF,
+ init: uF,
+ insert_hydration: _F,
+ safe_not_equal: cF,
+ toggle_class: dF,
+ transition_in: fF,
+ transition_out: hF,
+ update_slot_base: pF
} = window.__gradio__svelte__internal, {
- SvelteComponent: _F,
- append_hydration: cF,
- attr: dF,
- check_outros: fF,
- children: hF,
- claim_component: pF,
- claim_element: mF,
- claim_space: gF,
- create_component: vF,
- destroy_component: bF,
- detach: DF,
- element: yF,
- empty: wF,
- group_outros: kF,
- init: FF,
- insert_hydration: $F,
- listen: CF,
- mount_component: EF,
- safe_not_equal: AF,
- space: SF,
- toggle_class: BF,
- transition_in: qF,
- transition_out: TF
+ SvelteComponent: mF,
+ append_hydration: gF,
+ attr: vF,
+ check_outros: bF,
+ children: DF,
+ claim_component: yF,
+ claim_element: wF,
+ claim_space: kF,
+ create_component: FF,
+ destroy_component: $F,
+ detach: CF,
+ element: EF,
+ empty: AF,
+ group_outros: SF,
+ init: qF,
+ insert_hydration: BF,
+ listen: TF,
+ mount_component: zF,
+ safe_not_equal: IF,
+ space: RF,
+ toggle_class: LF,
+ transition_in: OF,
+ transition_out: PF
} = window.__gradio__svelte__internal, {
- SvelteComponent: zF,
- attr: IF,
- children: RF,
- claim_element: LF,
- create_slot: OF,
- detach: PF,
- element: MF,
- get_all_dirty_from_scope: NF,
- get_slot_changes: jF,
- init: HF,
- insert_hydration: xF,
- null_to_empty: VF,
- safe_not_equal: UF,
- transition_in: GF,
- transition_out: ZF,
- update_slot_base: XF
+ SvelteComponent: MF,
+ attr: NF,
+ children: jF,
+ claim_element: VF,
+ create_slot: HF,
+ detach: GF,
+ element: UF,
+ get_all_dirty_from_scope: ZF,
+ get_slot_changes: xF,
+ init: XF,
+ insert_hydration: YF,
+ null_to_empty: WF,
+ safe_not_equal: KF,
+ transition_in: QF,
+ transition_out: JF,
+ update_slot_base: e$
} = window.__gradio__svelte__internal, {
- SvelteComponent: YF,
- check_outros: WF,
- claim_component: KF,
- create_component: QF,
- destroy_component: JF,
- detach: e$,
- empty: t$,
- group_outros: n$,
- init: i$,
- insert_hydration: l$,
- mount_component: a$,
- noop: o$,
- safe_not_equal: s$,
- transition_in: r$,
- transition_out: u$
-} = window.__gradio__svelte__internal, { createEventDispatcher: _$ } = window.__gradio__svelte__internal;
-function vt(a) {
+ SvelteComponent: t$,
+ check_outros: n$,
+ claim_component: i$,
+ create_component: l$,
+ destroy_component: o$,
+ detach: a$,
+ empty: s$,
+ group_outros: r$,
+ init: u$,
+ insert_hydration: _$,
+ mount_component: c$,
+ noop: d$,
+ safe_not_equal: f$,
+ transition_in: h$,
+ transition_out: p$
+} = window.__gradio__svelte__internal, { createEventDispatcher: m$ } = window.__gradio__svelte__internal;
+function yt(o) {
let e = ["", "k", "M", "G", "T", "P", "E", "Z"], t = 0;
- for (; a > 1e3 && t < e.length - 1; )
- a /= 1e3, t++;
+ for (; o > 1e3 && t < e.length - 1; )
+ o /= 1e3, t++;
let n = e[t];
- return (Number.isInteger(a) ? a : a.toFixed(1)) + n;
+ return (Number.isInteger(o) ? o : o.toFixed(1)) + n;
}
function un() {
}
-const jl = typeof window < "u";
-let pi = jl ? () => window.performance.now() : () => Date.now(), Hl = jl ? (a) => requestAnimationFrame(a) : un;
-const bt = /* @__PURE__ */ new Set();
-function xl(a) {
- bt.forEach((e) => {
- e.c(a) || (bt.delete(e), e.f());
- }), bt.size !== 0 && Hl(xl);
+const xl = typeof window < "u";
+let mi = xl ? () => window.performance.now() : () => Date.now(), Xl = xl ? (o) => requestAnimationFrame(o) : un;
+const wt = /* @__PURE__ */ new Set();
+function Yl(o) {
+ wt.forEach((e) => {
+ e.c(o) || (wt.delete(e), e.f());
+ }), wt.size !== 0 && Xl(Yl);
}
-function Ro(a) {
+function ja(o) {
let e;
- return bt.size === 0 && Hl(xl), { promise: new Promise((t) => {
- bt.add(e = { c: a, f: t });
+ return wt.size === 0 && Xl(Yl), { promise: new Promise((t) => {
+ wt.add(e = { c: o, f: t });
}), abort() {
- bt.delete(e);
+ wt.delete(e);
} };
}
-const gt = [];
-function Lo(a, e = un) {
+const Dt = [];
+function Va(o, e = un) {
let t;
const n = /* @__PURE__ */ new Set();
- function i(o) {
- if (r = o, ((s = a) != s ? r == r : s !== r || s && typeof s == "object" || typeof s == "function") && (a = o, t)) {
- const u = !gt.length;
- for (const _ of n) _[1](), gt.push(_, a);
+ function l(a) {
+ if (r = a, ((s = o) != s ? r == r : s !== r || s && typeof s == "object" || typeof s == "function") && (o = a, t)) {
+ const u = !Dt.length;
+ for (const _ of n) _[1](), Dt.push(_, o);
if (u) {
- for (let _ = 0; _ < gt.length; _ += 2) gt[_][0](gt[_ + 1]);
- gt.length = 0;
+ for (let _ = 0; _ < Dt.length; _ += 2) Dt[_][0](Dt[_ + 1]);
+ Dt.length = 0;
}
}
var s, r;
}
- function l(o) {
- i(o(a));
+ function i(a) {
+ l(a(o));
}
- return { set: i, update: l, subscribe: function(o, s = un) {
- const r = [o, s];
- return n.add(r), n.size === 1 && (t = e(i, l) || un), o(a), () => {
+ return { set: l, update: i, subscribe: function(a, s = un) {
+ const r = [a, s];
+ return n.add(r), n.size === 1 && (t = e(l, i) || un), a(o), () => {
n.delete(r), n.size === 0 && t && (t(), t = null);
};
} };
}
-function mi(a) {
- return Object.prototype.toString.call(a) === "[object Date]";
+function gi(o) {
+ return Object.prototype.toString.call(o) === "[object Date]";
}
-function Tn(a, e, t, n) {
- if (typeof t == "number" || mi(t)) {
- const i = n - t, l = (t - e) / (a.dt || 1 / 60), o = (l + (a.opts.stiffness * i - a.opts.damping * l) * a.inv_mass) * a.dt;
- return Math.abs(o) < a.opts.precision && Math.abs(i) < a.opts.precision ? n : (a.settled = !1, mi(t) ? new Date(t.getTime() + o) : t + o);
+function zn(o, e, t, n) {
+ if (typeof t == "number" || gi(t)) {
+ const l = n - t, i = (t - e) / (o.dt || 1 / 60), a = (i + (o.opts.stiffness * l - o.opts.damping * i) * o.inv_mass) * o.dt;
+ return Math.abs(a) < o.opts.precision && Math.abs(l) < o.opts.precision ? n : (o.settled = !1, gi(t) ? new Date(t.getTime() + a) : t + a);
}
- if (Array.isArray(t)) return t.map((i, l) => Tn(a, e[l], t[l], n[l]));
+ if (Array.isArray(t)) return t.map((l, i) => zn(o, e[i], t[i], n[i]));
if (typeof t == "object") {
- const i = {};
- for (const l in t) i[l] = Tn(a, e[l], t[l], n[l]);
- return i;
+ const l = {};
+ for (const i in t) l[i] = zn(o, e[i], t[i], n[i]);
+ return l;
}
throw new Error(`Cannot spring ${typeof t} values`);
}
-function gi(a, e = {}) {
- const t = Lo(a), { stiffness: n = 0.15, damping: i = 0.8, precision: l = 0.01 } = e;
- let o, s, r, u = a, _ = a, d = 1, c = 0, h = !1;
- function g(D, k = {}) {
- _ = D;
- const m = r = {};
- return a == null || k.hard || p.stiffness >= 1 && p.damping >= 1 ? (h = !0, o = pi(), u = D, t.set(a = _), Promise.resolve()) : (k.soft && (c = 1 / (60 * (k.soft === !0 ? 0.5 : +k.soft)), d = 0), s || (o = pi(), h = !1, s = Ro((f) => {
+function vi(o, e = {}) {
+ const t = Va(o), { stiffness: n = 0.15, damping: l = 0.8, precision: i = 0.01 } = e;
+ let a, s, r, u = o, _ = o, d = 1, c = 0, h = !1;
+ function m(b, k = {}) {
+ _ = b;
+ const g = r = {};
+ return o == null || k.hard || p.stiffness >= 1 && p.damping >= 1 ? (h = !0, a = mi(), u = b, t.set(o = _), Promise.resolve()) : (k.soft && (c = 1 / (60 * (k.soft === !0 ? 0.5 : +k.soft)), d = 0), s || (a = mi(), h = !1, s = ja((f) => {
if (h) return h = !1, s = null, !1;
d = Math.min(d + c, 1);
- const v = { inv_mass: d, opts: p, settled: !0, dt: 60 * (f - o) / 1e3 }, y = Tn(v, u, a, _);
- return o = f, u = a, t.set(a = y), v.settled && (s = null), !v.settled;
+ const v = { inv_mass: d, opts: p, settled: !0, dt: 60 * (f - a) / 1e3 }, D = zn(v, u, o, _);
+ return a = f, u = o, t.set(o = D), v.settled && (s = null), !v.settled;
})), new Promise((f) => {
s.promise.then(() => {
- m === r && f();
+ g === r && f();
});
}));
}
- const p = { set: g, update: (D, k) => g(D(_, a), k), subscribe: t.subscribe, stiffness: n, damping: i, precision: l };
+ const p = { set: m, update: (b, k) => m(b(_, o), k), subscribe: t.subscribe, stiffness: n, damping: l, precision: i };
return p;
}
const {
- SvelteComponent: Oo,
- append_hydration: qe,
- attr: z,
- children: ve,
- claim_element: Po,
- claim_svg_element: Te,
- component_subscribe: vi,
- detach: de,
- element: Mo,
- init: No,
- insert_hydration: jo,
- noop: bi,
- safe_not_equal: Ho,
- set_style: ln,
- svg_element: ze,
- toggle_class: Di
-} = window.__gradio__svelte__internal, { onMount: xo } = window.__gradio__svelte__internal;
-function Vo(a) {
- let e, t, n, i, l, o, s, r, u, _, d, c;
+ SvelteComponent: Ha,
+ append_hydration: Re,
+ attr: I,
+ children: we,
+ claim_element: Ga,
+ claim_svg_element: Le,
+ component_subscribe: bi,
+ detach: ve,
+ element: Ua,
+ init: Za,
+ insert_hydration: xa,
+ noop: Di,
+ safe_not_equal: Xa,
+ set_style: on,
+ svg_element: Oe,
+ toggle_class: yi
+} = window.__gradio__svelte__internal, { onMount: Ya } = window.__gradio__svelte__internal;
+function Wa(o) {
+ let e, t, n, l, i, a, s, r, u, _, d, c;
return {
c() {
- e = Mo("div"), t = ze("svg"), n = ze("g"), i = ze("path"), l = ze("path"), o = ze("path"), s = ze("path"), r = ze("g"), u = ze("path"), _ = ze("path"), d = ze("path"), c = ze("path"), this.h();
+ e = Ua("div"), t = Oe("svg"), n = Oe("g"), l = Oe("path"), i = Oe("path"), a = Oe("path"), s = Oe("path"), r = Oe("g"), u = Oe("path"), _ = Oe("path"), d = Oe("path"), c = Oe("path"), this.h();
},
l(h) {
- e = Po(h, "DIV", { class: !0 });
- var g = ve(e);
- t = Te(g, "svg", {
+ e = Ga(h, "DIV", { class: !0 });
+ var m = we(e);
+ t = Le(m, "svg", {
viewBox: !0,
fill: !0,
xmlns: !0,
class: !0
});
- var p = ve(t);
- n = Te(p, "g", { style: !0 });
- var D = ve(n);
- i = Te(D, "path", {
+ var p = we(t);
+ n = Le(p, "g", { style: !0 });
+ var b = we(n);
+ l = Le(b, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), ve(i).forEach(de), l = Te(D, "path", { d: !0, fill: !0, class: !0 }), ve(l).forEach(de), o = Te(D, "path", {
+ }), we(l).forEach(ve), i = Le(b, "path", { d: !0, fill: !0, class: !0 }), we(i).forEach(ve), a = Le(b, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), ve(o).forEach(de), s = Te(D, "path", { d: !0, fill: !0, class: !0 }), ve(s).forEach(de), D.forEach(de), r = Te(p, "g", { style: !0 });
- var k = ve(r);
- u = Te(k, "path", {
+ }), we(a).forEach(ve), s = Le(b, "path", { d: !0, fill: !0, class: !0 }), we(s).forEach(ve), b.forEach(ve), r = Le(p, "g", { style: !0 });
+ var k = we(r);
+ u = Le(k, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), ve(u).forEach(de), _ = Te(k, "path", { d: !0, fill: !0, class: !0 }), ve(_).forEach(de), d = Te(k, "path", {
+ }), we(u).forEach(ve), _ = Le(k, "path", { d: !0, fill: !0, class: !0 }), we(_).forEach(ve), d = Le(k, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), ve(d).forEach(de), c = Te(k, "path", { d: !0, fill: !0, class: !0 }), ve(c).forEach(de), k.forEach(de), p.forEach(de), g.forEach(de), this.h();
+ }), we(d).forEach(ve), c = Le(k, "path", { d: !0, fill: !0, class: !0 }), we(c).forEach(ve), k.forEach(ve), p.forEach(ve), m.forEach(ve), this.h();
},
h() {
- z(i, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), z(i, "fill", "#FF7C00"), z(i, "fill-opacity", "0.4"), z(i, "class", "svelte-43sxxs"), z(l, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), z(l, "fill", "#FF7C00"), z(l, "class", "svelte-43sxxs"), z(o, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), z(o, "fill", "#FF7C00"), z(o, "fill-opacity", "0.4"), z(o, "class", "svelte-43sxxs"), z(s, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), z(s, "fill", "#FF7C00"), z(s, "class", "svelte-43sxxs"), ln(n, "transform", "translate(" + /*$top*/
- a[1][0] + "px, " + /*$top*/
- a[1][1] + "px)"), z(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), z(u, "fill", "#FF7C00"), z(u, "fill-opacity", "0.4"), z(u, "class", "svelte-43sxxs"), z(_, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), z(_, "fill", "#FF7C00"), z(_, "class", "svelte-43sxxs"), z(d, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), z(d, "fill", "#FF7C00"), z(d, "fill-opacity", "0.4"), z(d, "class", "svelte-43sxxs"), z(c, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), z(c, "fill", "#FF7C00"), z(c, "class", "svelte-43sxxs"), ln(r, "transform", "translate(" + /*$bottom*/
- a[2][0] + "px, " + /*$bottom*/
- a[2][1] + "px)"), z(t, "viewBox", "-1200 -1200 3000 3000"), z(t, "fill", "none"), z(t, "xmlns", "http://www.w3.org/2000/svg"), z(t, "class", "svelte-43sxxs"), z(e, "class", "svelte-43sxxs"), Di(
+ I(l, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), I(l, "fill", "#FF7C00"), I(l, "fill-opacity", "0.4"), I(l, "class", "svelte-43sxxs"), I(i, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), I(i, "fill", "#FF7C00"), I(i, "class", "svelte-43sxxs"), I(a, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), I(a, "fill", "#FF7C00"), I(a, "fill-opacity", "0.4"), I(a, "class", "svelte-43sxxs"), I(s, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), I(s, "fill", "#FF7C00"), I(s, "class", "svelte-43sxxs"), on(n, "transform", "translate(" + /*$top*/
+ o[1][0] + "px, " + /*$top*/
+ o[1][1] + "px)"), I(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), I(u, "fill", "#FF7C00"), I(u, "fill-opacity", "0.4"), I(u, "class", "svelte-43sxxs"), I(_, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), I(_, "fill", "#FF7C00"), I(_, "class", "svelte-43sxxs"), I(d, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), I(d, "fill", "#FF7C00"), I(d, "fill-opacity", "0.4"), I(d, "class", "svelte-43sxxs"), I(c, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), I(c, "fill", "#FF7C00"), I(c, "class", "svelte-43sxxs"), on(r, "transform", "translate(" + /*$bottom*/
+ o[2][0] + "px, " + /*$bottom*/
+ o[2][1] + "px)"), I(t, "viewBox", "-1200 -1200 3000 3000"), I(t, "fill", "none"), I(t, "xmlns", "http://www.w3.org/2000/svg"), I(t, "class", "svelte-43sxxs"), I(e, "class", "svelte-43sxxs"), yi(
e,
"margin",
/*margin*/
- a[0]
+ o[0]
);
},
- m(h, g) {
- jo(h, e, g), qe(e, t), qe(t, n), qe(n, i), qe(n, l), qe(n, o), qe(n, s), qe(t, r), qe(r, u), qe(r, _), qe(r, d), qe(r, c);
+ m(h, m) {
+ xa(h, e, m), Re(e, t), Re(t, n), Re(n, l), Re(n, i), Re(n, a), Re(n, s), Re(t, r), Re(r, u), Re(r, _), Re(r, d), Re(r, c);
},
- p(h, [g]) {
- g & /*$top*/
- 2 && ln(n, "transform", "translate(" + /*$top*/
+ p(h, [m]) {
+ m & /*$top*/
+ 2 && on(n, "transform", "translate(" + /*$top*/
h[1][0] + "px, " + /*$top*/
- h[1][1] + "px)"), g & /*$bottom*/
- 4 && ln(r, "transform", "translate(" + /*$bottom*/
+ h[1][1] + "px)"), m & /*$bottom*/
+ 4 && on(r, "transform", "translate(" + /*$bottom*/
h[2][0] + "px, " + /*$bottom*/
- h[2][1] + "px)"), g & /*margin*/
- 1 && Di(
+ h[2][1] + "px)"), m & /*margin*/
+ 1 && yi(
e,
"margin",
/*margin*/
h[0]
);
},
- i: bi,
- o: bi,
+ i: Di,
+ o: Di,
d(h) {
- h && de(e);
+ h && ve(e);
}
};
}
-function Uo(a, e, t) {
- let n, i;
- var l = this && this.__awaiter || function(h, g, p, D) {
- function k(m) {
- return m instanceof p ? m : new p(function(f) {
- f(m);
+function Ka(o, e, t) {
+ let n, l;
+ var i = this && this.__awaiter || function(h, m, p, b) {
+ function k(g) {
+ return g instanceof p ? g : new p(function(f) {
+ f(g);
});
}
- return new (p || (p = Promise))(function(m, f) {
+ return new (p || (p = Promise))(function(g, f) {
function v(F) {
try {
- b(D.next(F));
+ w(b.next(F));
} catch (A) {
f(A);
}
}
- function y(F) {
+ function D(F) {
try {
- b(D.throw(F));
+ w(b.throw(F));
} catch (A) {
f(A);
}
}
- function b(F) {
- F.done ? m(F.value) : k(F.value).then(v, y);
+ function w(F) {
+ F.done ? g(F.value) : k(F.value).then(v, D);
}
- b((D = D.apply(h, g || [])).next());
+ w((b = b.apply(h, m || [])).next());
});
};
- let { margin: o = !0 } = e;
- const s = gi([0, 0]);
- vi(a, s, (h) => t(1, n = h));
- const r = gi([0, 0]);
- vi(a, r, (h) => t(2, i = h));
+ let { margin: a = !0 } = e;
+ const s = vi([0, 0]);
+ bi(o, s, (h) => t(1, n = h));
+ const r = vi([0, 0]);
+ bi(o, r, (h) => t(2, l = h));
let u;
function _() {
- return l(this, void 0, void 0, function* () {
+ return i(this, void 0, void 0, function* () {
yield Promise.all([s.set([125, 140]), r.set([-125, -140])]), yield Promise.all([s.set([-125, 140]), r.set([125, -140])]), yield Promise.all([s.set([-125, 0]), r.set([125, -0])]), yield Promise.all([s.set([125, 0]), r.set([-125, 0])]);
});
}
function d() {
- return l(this, void 0, void 0, function* () {
+ return i(this, void 0, void 0, function* () {
yield _(), u || d();
});
}
function c() {
- return l(this, void 0, void 0, function* () {
+ return i(this, void 0, void 0, function* () {
yield Promise.all([s.set([125, 0]), r.set([-125, 0])]), d();
});
}
- return xo(() => (c(), () => u = !0)), a.$$set = (h) => {
- "margin" in h && t(0, o = h.margin);
- }, [o, n, i, s, r];
+ return Ya(() => (c(), () => u = !0)), o.$$set = (h) => {
+ "margin" in h && t(0, a = h.margin);
+ }, [a, n, l, s, r];
}
-class Go extends Oo {
+class Qa extends Ha {
constructor(e) {
- super(), No(this, e, Uo, Vo, Ho, { margin: 0 });
+ super(), Za(this, e, Ka, Wa, Xa, { margin: 0 });
}
}
const {
- SvelteComponent: Zo,
- append_hydration: ut,
- attr: Re,
- binding_callbacks: yi,
- check_outros: zn,
- children: Ve,
- claim_component: Vl,
- claim_element: Ue,
- claim_space: ye,
- claim_text: x,
- create_component: Ul,
- create_slot: Gl,
- destroy_component: Zl,
- destroy_each: Xl,
- detach: B,
- element: Ge,
- empty: Ee,
+ SvelteComponent: Ja,
+ append_hydration: dt,
+ attr: Me,
+ binding_callbacks: wi,
+ check_outros: In,
+ children: Ze,
+ claim_component: Wl,
+ claim_element: xe,
+ claim_space: Fe,
+ claim_text: X,
+ create_component: Kl,
+ create_slot: Ql,
+ destroy_component: Jl,
+ destroy_each: eo,
+ detach: q,
+ element: Xe,
+ empty: Be,
ensure_array_like: fn,
- get_all_dirty_from_scope: Yl,
- get_slot_changes: Wl,
- group_outros: In,
- init: Xo,
- insert_hydration: T,
- mount_component: Kl,
- noop: Rn,
- safe_not_equal: Yo,
- set_data: Ae,
- set_style: it,
- space: we,
- text: V,
- toggle_class: be,
- transition_in: Ie,
- transition_out: Ze,
- update_slot_base: Ql
-} = window.__gradio__svelte__internal, { tick: Wo } = window.__gradio__svelte__internal, { onDestroy: Ko } = window.__gradio__svelte__internal, { createEventDispatcher: Qo } = window.__gradio__svelte__internal, Jo = (a) => ({}), wi = (a) => ({}), es = (a) => ({}), ki = (a) => ({});
-function Fi(a, e, t) {
- const n = a.slice();
+ get_all_dirty_from_scope: to,
+ get_slot_changes: no,
+ group_outros: Rn,
+ init: es,
+ insert_hydration: z,
+ mount_component: io,
+ noop: Ln,
+ safe_not_equal: ts,
+ set_data: Te,
+ set_style: ot,
+ space: $e,
+ text: Y,
+ toggle_class: ke,
+ transition_in: Pe,
+ transition_out: Ye,
+ update_slot_base: lo
+} = window.__gradio__svelte__internal, { tick: ns } = window.__gradio__svelte__internal, { onDestroy: is } = window.__gradio__svelte__internal, { createEventDispatcher: ls } = window.__gradio__svelte__internal, os = (o) => ({}), ki = (o) => ({}), as = (o) => ({}), Fi = (o) => ({});
+function $i(o, e, t) {
+ const n = o.slice();
return n[40] = e[t], n[42] = t, n;
}
-function $i(a, e, t) {
- const n = a.slice();
+function Ci(o, e, t) {
+ const n = o.slice();
return n[40] = e[t], n;
}
-function ts(a) {
- let e, t, n, i, l = (
+function ss(o) {
+ let e, t, n, l, i = (
/*i18n*/
- a[1]("common.error") + ""
- ), o, s, r;
- t = new Eo({
+ o[1]("common.error") + ""
+ ), a, s, r;
+ t = new za({
props: {
- Icon: zo,
+ Icon: Ma,
label: (
/*i18n*/
- a[1]("common.clear")
+ o[1]("common.clear")
),
disabled: !1
}
}), t.$on(
"click",
/*click_handler*/
- a[32]
+ o[32]
);
const u = (
/*#slots*/
- a[30].error
- ), _ = Gl(
+ o[30].error
+ ), _ = Ql(
u,
- a,
+ o,
/*$$scope*/
- a[29],
- wi
+ o[29],
+ ki
);
return {
c() {
- e = Ge("div"), Ul(t.$$.fragment), n = we(), i = Ge("span"), o = V(l), s = we(), _ && _.c(), this.h();
+ e = Xe("div"), Kl(t.$$.fragment), n = $e(), l = Xe("span"), a = Y(i), s = $e(), _ && _.c(), this.h();
},
l(d) {
- e = Ue(d, "DIV", { class: !0 });
- var c = Ve(e);
- Vl(t.$$.fragment, c), c.forEach(B), n = ye(d), i = Ue(d, "SPAN", { class: !0 });
- var h = Ve(i);
- o = x(h, l), h.forEach(B), s = ye(d), _ && _.l(d), this.h();
+ e = xe(d, "DIV", { class: !0 });
+ var c = Ze(e);
+ Wl(t.$$.fragment, c), c.forEach(q), n = Fe(d), l = xe(d, "SPAN", { class: !0 });
+ var h = Ze(l);
+ a = X(h, i), h.forEach(q), s = Fe(d), _ && _.l(d), this.h();
},
h() {
- Re(e, "class", "clear-status svelte-17v219f"), Re(i, "class", "error svelte-17v219f");
+ Me(e, "class", "clear-status svelte-17v219f"), Me(l, "class", "error svelte-17v219f");
},
m(d, c) {
- T(d, e, c), Kl(t, e, null), T(d, n, c), T(d, i, c), ut(i, o), T(d, s, c), _ && _.m(d, c), r = !0;
+ z(d, e, c), io(t, e, null), z(d, n, c), z(d, l, c), dt(l, a), z(d, s, c), _ && _.m(d, c), r = !0;
},
p(d, c) {
const h = {};
c[0] & /*i18n*/
2 && (h.label = /*i18n*/
d[1]("common.clear")), t.$set(h), (!r || c[0] & /*i18n*/
- 2) && l !== (l = /*i18n*/
- d[1]("common.error") + "") && Ae(o, l), _ && _.p && (!r || c[0] & /*$$scope*/
- 536870912) && Ql(
+ 2) && i !== (i = /*i18n*/
+ d[1]("common.error") + "") && Te(a, i), _ && _.p && (!r || c[0] & /*$$scope*/
+ 536870912) && lo(
_,
u,
d,
/*$$scope*/
d[29],
- r ? Wl(
+ r ? no(
u,
/*$$scope*/
d[29],
c,
- Jo
- ) : Yl(
+ os
+ ) : to(
/*$$scope*/
d[29]
),
- wi
+ ki
);
},
i(d) {
- r || (Ie(t.$$.fragment, d), Ie(_, d), r = !0);
+ r || (Pe(t.$$.fragment, d), Pe(_, d), r = !0);
},
o(d) {
- Ze(t.$$.fragment, d), Ze(_, d), r = !1;
+ Ye(t.$$.fragment, d), Ye(_, d), r = !1;
},
d(d) {
- d && (B(e), B(n), B(i), B(s)), Zl(t), _ && _.d(d);
+ d && (q(e), q(n), q(l), q(s)), Jl(t), _ && _.d(d);
}
};
}
-function ns(a) {
- let e, t, n, i, l, o, s, r, u, _ = (
+function rs(o) {
+ let e, t, n, l, i, a, s, r, u, _ = (
/*variant*/
- a[8] === "default" && /*show_eta_bar*/
- a[18] && /*show_progress*/
- a[6] === "full" && Ci(a)
+ o[8] === "default" && /*show_eta_bar*/
+ o[18] && /*show_progress*/
+ o[6] === "full" && Ei(o)
);
function d(f, v) {
if (
/*progress*/
f[7]
- ) return as;
+ ) return cs;
if (
/*queue_position*/
f[2] !== null && /*queue_size*/
f[3] !== void 0 && /*queue_position*/
f[2] >= 0
- ) return ls;
+ ) return _s;
if (
/*queue_position*/
f[2] === 0
- ) return is;
+ ) return us;
}
- let c = d(a), h = c && c(a), g = (
+ let c = d(o), h = c && c(o), m = (
/*timer*/
- a[5] && Si(a)
+ o[5] && qi(o)
);
- const p = [us, rs], D = [];
+ const p = [ps, hs], b = [];
function k(f, v) {
return (
/*last_progress_level*/
@@ -6356,712 +6356,712 @@ function ns(a) {
)
);
}
- ~(l = k(a)) && (o = D[l] = p[l](a));
- let m = !/*timer*/
- a[5] && Li(a);
+ ~(i = k(o)) && (a = b[i] = p[i](o));
+ let g = !/*timer*/
+ o[5] && Oi(o);
return {
c() {
- _ && _.c(), e = we(), t = Ge("div"), h && h.c(), n = we(), g && g.c(), i = we(), o && o.c(), s = we(), m && m.c(), r = Ee(), this.h();
+ _ && _.c(), e = $e(), t = Xe("div"), h && h.c(), n = $e(), m && m.c(), l = $e(), a && a.c(), s = $e(), g && g.c(), r = Be(), this.h();
},
l(f) {
- _ && _.l(f), e = ye(f), t = Ue(f, "DIV", { class: !0 });
- var v = Ve(t);
- h && h.l(v), n = ye(v), g && g.l(v), v.forEach(B), i = ye(f), o && o.l(f), s = ye(f), m && m.l(f), r = Ee(), this.h();
+ _ && _.l(f), e = Fe(f), t = xe(f, "DIV", { class: !0 });
+ var v = Ze(t);
+ h && h.l(v), n = Fe(v), m && m.l(v), v.forEach(q), l = Fe(f), a && a.l(f), s = Fe(f), g && g.l(f), r = Be(), this.h();
},
h() {
- Re(t, "class", "progress-text svelte-17v219f"), be(
+ Me(t, "class", "progress-text svelte-17v219f"), ke(
t,
"meta-text-center",
/*variant*/
- a[8] === "center"
- ), be(
+ o[8] === "center"
+ ), ke(
t,
"meta-text",
/*variant*/
- a[8] === "default"
+ o[8] === "default"
);
},
m(f, v) {
- _ && _.m(f, v), T(f, e, v), T(f, t, v), h && h.m(t, null), ut(t, n), g && g.m(t, null), T(f, i, v), ~l && D[l].m(f, v), T(f, s, v), m && m.m(f, v), T(f, r, v), u = !0;
+ _ && _.m(f, v), z(f, e, v), z(f, t, v), h && h.m(t, null), dt(t, n), m && m.m(t, null), z(f, l, v), ~i && b[i].m(f, v), z(f, s, v), g && g.m(f, v), z(f, r, v), u = !0;
},
p(f, v) {
/*variant*/
f[8] === "default" && /*show_eta_bar*/
f[18] && /*show_progress*/
- f[6] === "full" ? _ ? _.p(f, v) : (_ = Ci(f), _.c(), _.m(e.parentNode, e)) : _ && (_.d(1), _ = null), c === (c = d(f)) && h ? h.p(f, v) : (h && h.d(1), h = c && c(f), h && (h.c(), h.m(t, n))), /*timer*/
- f[5] ? g ? g.p(f, v) : (g = Si(f), g.c(), g.m(t, null)) : g && (g.d(1), g = null), (!u || v[0] & /*variant*/
- 256) && be(
+ f[6] === "full" ? _ ? _.p(f, v) : (_ = Ei(f), _.c(), _.m(e.parentNode, e)) : _ && (_.d(1), _ = null), c === (c = d(f)) && h ? h.p(f, v) : (h && h.d(1), h = c && c(f), h && (h.c(), h.m(t, n))), /*timer*/
+ f[5] ? m ? m.p(f, v) : (m = qi(f), m.c(), m.m(t, null)) : m && (m.d(1), m = null), (!u || v[0] & /*variant*/
+ 256) && ke(
t,
"meta-text-center",
/*variant*/
f[8] === "center"
), (!u || v[0] & /*variant*/
- 256) && be(
+ 256) && ke(
t,
"meta-text",
/*variant*/
f[8] === "default"
);
- let y = l;
- l = k(f), l === y ? ~l && D[l].p(f, v) : (o && (In(), Ze(D[y], 1, 1, () => {
- D[y] = null;
- }), zn()), ~l ? (o = D[l], o ? o.p(f, v) : (o = D[l] = p[l](f), o.c()), Ie(o, 1), o.m(s.parentNode, s)) : o = null), /*timer*/
- f[5] ? m && (In(), Ze(m, 1, 1, () => {
- m = null;
- }), zn()) : m ? (m.p(f, v), v[0] & /*timer*/
- 32 && Ie(m, 1)) : (m = Li(f), m.c(), Ie(m, 1), m.m(r.parentNode, r));
+ let D = i;
+ i = k(f), i === D ? ~i && b[i].p(f, v) : (a && (Rn(), Ye(b[D], 1, 1, () => {
+ b[D] = null;
+ }), In()), ~i ? (a = b[i], a ? a.p(f, v) : (a = b[i] = p[i](f), a.c()), Pe(a, 1), a.m(s.parentNode, s)) : a = null), /*timer*/
+ f[5] ? g && (Rn(), Ye(g, 1, 1, () => {
+ g = null;
+ }), In()) : g ? (g.p(f, v), v[0] & /*timer*/
+ 32 && Pe(g, 1)) : (g = Oi(f), g.c(), Pe(g, 1), g.m(r.parentNode, r));
},
i(f) {
- u || (Ie(o), Ie(m), u = !0);
+ u || (Pe(a), Pe(g), u = !0);
},
o(f) {
- Ze(o), Ze(m), u = !1;
+ Ye(a), Ye(g), u = !1;
},
d(f) {
- f && (B(e), B(t), B(i), B(s), B(r)), _ && _.d(f), h && h.d(), g && g.d(), ~l && D[l].d(f), m && m.d(f);
+ f && (q(e), q(t), q(l), q(s), q(r)), _ && _.d(f), h && h.d(), m && m.d(), ~i && b[i].d(f), g && g.d(f);
}
};
}
-function Ci(a) {
+function Ei(o) {
let e, t = `translateX(${/*eta_level*/
- (a[17] || 0) * 100 - 100}%)`;
+ (o[17] || 0) * 100 - 100}%)`;
return {
c() {
- e = Ge("div"), this.h();
+ e = Xe("div"), this.h();
},
l(n) {
- e = Ue(n, "DIV", { class: !0 }), Ve(e).forEach(B), this.h();
+ e = xe(n, "DIV", { class: !0 }), Ze(e).forEach(q), this.h();
},
h() {
- Re(e, "class", "eta-bar svelte-17v219f"), it(e, "transform", t);
+ Me(e, "class", "eta-bar svelte-17v219f"), ot(e, "transform", t);
},
- m(n, i) {
- T(n, e, i);
+ m(n, l) {
+ z(n, e, l);
},
- p(n, i) {
- i[0] & /*eta_level*/
+ p(n, l) {
+ l[0] & /*eta_level*/
131072 && t !== (t = `translateX(${/*eta_level*/
- (n[17] || 0) * 100 - 100}%)`) && it(e, "transform", t);
+ (n[17] || 0) * 100 - 100}%)`) && ot(e, "transform", t);
},
d(n) {
- n && B(e);
+ n && q(e);
}
};
}
-function is(a) {
+function us(o) {
let e;
return {
c() {
- e = V("processing |");
+ e = Y("processing |");
},
l(t) {
- e = x(t, "processing |");
+ e = X(t, "processing |");
},
m(t, n) {
- T(t, e, n);
+ z(t, e, n);
},
- p: Rn,
+ p: Ln,
d(t) {
- t && B(e);
+ t && q(e);
}
};
}
-function ls(a) {
+function _s(o) {
let e, t = (
/*queue_position*/
- a[2] + 1 + ""
- ), n, i, l, o;
+ o[2] + 1 + ""
+ ), n, l, i, a;
return {
c() {
- e = V("queue: "), n = V(t), i = V("/"), l = V(
+ e = Y("queue: "), n = Y(t), l = Y("/"), i = Y(
/*queue_size*/
- a[3]
- ), o = V(" |");
+ o[3]
+ ), a = Y(" |");
},
l(s) {
- e = x(s, "queue: "), n = x(s, t), i = x(s, "/"), l = x(
+ e = X(s, "queue: "), n = X(s, t), l = X(s, "/"), i = X(
s,
/*queue_size*/
- a[3]
- ), o = x(s, " |");
+ o[3]
+ ), a = X(s, " |");
},
m(s, r) {
- T(s, e, r), T(s, n, r), T(s, i, r), T(s, l, r), T(s, o, r);
+ z(s, e, r), z(s, n, r), z(s, l, r), z(s, i, r), z(s, a, r);
},
p(s, r) {
r[0] & /*queue_position*/
4 && t !== (t = /*queue_position*/
- s[2] + 1 + "") && Ae(n, t), r[0] & /*queue_size*/
- 8 && Ae(
- l,
+ s[2] + 1 + "") && Te(n, t), r[0] & /*queue_size*/
+ 8 && Te(
+ i,
/*queue_size*/
s[3]
);
},
d(s) {
- s && (B(e), B(n), B(i), B(l), B(o));
+ s && (q(e), q(n), q(l), q(i), q(a));
}
};
}
-function as(a) {
+function cs(o) {
let e, t = fn(
/*progress*/
- a[7]
+ o[7]
), n = [];
- for (let i = 0; i < t.length; i += 1)
- n[i] = Ai($i(a, t, i));
+ for (let l = 0; l < t.length; l += 1)
+ n[l] = Si(Ci(o, t, l));
return {
c() {
- for (let i = 0; i < n.length; i += 1)
- n[i].c();
- e = Ee();
- },
- l(i) {
for (let l = 0; l < n.length; l += 1)
- n[l].l(i);
- e = Ee();
+ n[l].c();
+ e = Be();
+ },
+ l(l) {
+ for (let i = 0; i < n.length; i += 1)
+ n[i].l(l);
+ e = Be();
},
- m(i, l) {
- for (let o = 0; o < n.length; o += 1)
- n[o] && n[o].m(i, l);
- T(i, e, l);
+ m(l, i) {
+ for (let a = 0; a < n.length; a += 1)
+ n[a] && n[a].m(l, i);
+ z(l, e, i);
},
- p(i, l) {
- if (l[0] & /*progress*/
+ p(l, i) {
+ if (i[0] & /*progress*/
128) {
t = fn(
/*progress*/
- i[7]
+ l[7]
);
- let o;
- for (o = 0; o < t.length; o += 1) {
- const s = $i(i, t, o);
- n[o] ? n[o].p(s, l) : (n[o] = Ai(s), n[o].c(), n[o].m(e.parentNode, e));
+ let a;
+ for (a = 0; a < t.length; a += 1) {
+ const s = Ci(l, t, a);
+ n[a] ? n[a].p(s, i) : (n[a] = Si(s), n[a].c(), n[a].m(e.parentNode, e));
}
- for (; o < n.length; o += 1)
- n[o].d(1);
+ for (; a < n.length; a += 1)
+ n[a].d(1);
n.length = t.length;
}
},
- d(i) {
- i && B(e), Xl(n, i);
+ d(l) {
+ l && q(e), eo(n, l);
}
};
}
-function Ei(a) {
+function Ai(o) {
let e, t = (
/*p*/
- a[40].unit + ""
- ), n, i, l = " ", o;
+ o[40].unit + ""
+ ), n, l, i = " ", a;
function s(_, d) {
return (
/*p*/
- _[40].length != null ? ss : os
+ _[40].length != null ? fs : ds
);
}
- let r = s(a), u = r(a);
+ let r = s(o), u = r(o);
return {
c() {
- u.c(), e = we(), n = V(t), i = V(" | "), o = V(l);
+ u.c(), e = $e(), n = Y(t), l = Y(" | "), a = Y(i);
},
l(_) {
- u.l(_), e = ye(_), n = x(_, t), i = x(_, " | "), o = x(_, l);
+ u.l(_), e = Fe(_), n = X(_, t), l = X(_, " | "), a = X(_, i);
},
m(_, d) {
- u.m(_, d), T(_, e, d), T(_, n, d), T(_, i, d), T(_, o, d);
+ u.m(_, d), z(_, e, d), z(_, n, d), z(_, l, d), z(_, a, d);
},
p(_, d) {
r === (r = s(_)) && u ? u.p(_, d) : (u.d(1), u = r(_), u && (u.c(), u.m(e.parentNode, e))), d[0] & /*progress*/
128 && t !== (t = /*p*/
- _[40].unit + "") && Ae(n, t);
+ _[40].unit + "") && Te(n, t);
},
d(_) {
- _ && (B(e), B(n), B(i), B(o)), u.d(_);
+ _ && (q(e), q(n), q(l), q(a)), u.d(_);
}
};
}
-function os(a) {
- let e = vt(
+function ds(o) {
+ let e = yt(
/*p*/
- a[40].index || 0
+ o[40].index || 0
) + "", t;
return {
c() {
- t = V(e);
+ t = Y(e);
},
l(n) {
- t = x(n, e);
+ t = X(n, e);
},
- m(n, i) {
- T(n, t, i);
+ m(n, l) {
+ z(n, t, l);
},
- p(n, i) {
- i[0] & /*progress*/
- 128 && e !== (e = vt(
+ p(n, l) {
+ l[0] & /*progress*/
+ 128 && e !== (e = yt(
/*p*/
n[40].index || 0
- ) + "") && Ae(t, e);
+ ) + "") && Te(t, e);
},
d(n) {
- n && B(t);
+ n && q(t);
}
};
}
-function ss(a) {
- let e = vt(
+function fs(o) {
+ let e = yt(
/*p*/
- a[40].index || 0
- ) + "", t, n, i = vt(
+ o[40].index || 0
+ ) + "", t, n, l = yt(
/*p*/
- a[40].length
- ) + "", l;
+ o[40].length
+ ) + "", i;
return {
c() {
- t = V(e), n = V("/"), l = V(i);
+ t = Y(e), n = Y("/"), i = Y(l);
},
- l(o) {
- t = x(o, e), n = x(o, "/"), l = x(o, i);
+ l(a) {
+ t = X(a, e), n = X(a, "/"), i = X(a, l);
},
- m(o, s) {
- T(o, t, s), T(o, n, s), T(o, l, s);
+ m(a, s) {
+ z(a, t, s), z(a, n, s), z(a, i, s);
},
- p(o, s) {
+ p(a, s) {
s[0] & /*progress*/
- 128 && e !== (e = vt(
+ 128 && e !== (e = yt(
/*p*/
- o[40].index || 0
- ) + "") && Ae(t, e), s[0] & /*progress*/
- 128 && i !== (i = vt(
+ a[40].index || 0
+ ) + "") && Te(t, e), s[0] & /*progress*/
+ 128 && l !== (l = yt(
/*p*/
- o[40].length
- ) + "") && Ae(l, i);
+ a[40].length
+ ) + "") && Te(i, l);
},
- d(o) {
- o && (B(t), B(n), B(l));
+ d(a) {
+ a && (q(t), q(n), q(i));
}
};
}
-function Ai(a) {
+function Si(o) {
let e, t = (
/*p*/
- a[40].index != null && Ei(a)
+ o[40].index != null && Ai(o)
);
return {
c() {
- t && t.c(), e = Ee();
+ t && t.c(), e = Be();
},
l(n) {
- t && t.l(n), e = Ee();
+ t && t.l(n), e = Be();
},
- m(n, i) {
- t && t.m(n, i), T(n, e, i);
+ m(n, l) {
+ t && t.m(n, l), z(n, e, l);
},
- p(n, i) {
+ p(n, l) {
/*p*/
- n[40].index != null ? t ? t.p(n, i) : (t = Ei(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ n[40].index != null ? t ? t.p(n, l) : (t = Ai(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(n) {
- n && B(e), t && t.d(n);
+ n && q(e), t && t.d(n);
}
};
}
-function Si(a) {
+function qi(o) {
let e, t = (
/*eta*/
- a[0] ? `/${/*formatted_eta*/
- a[19]}` : ""
- ), n, i;
+ o[0] ? `/${/*formatted_eta*/
+ o[19]}` : ""
+ ), n, l;
return {
c() {
- e = V(
+ e = Y(
/*formatted_timer*/
- a[20]
- ), n = V(t), i = V("s");
+ o[20]
+ ), n = Y(t), l = Y("s");
},
- l(l) {
- e = x(
- l,
+ l(i) {
+ e = X(
+ i,
/*formatted_timer*/
- a[20]
- ), n = x(l, t), i = x(l, "s");
+ o[20]
+ ), n = X(i, t), l = X(i, "s");
},
- m(l, o) {
- T(l, e, o), T(l, n, o), T(l, i, o);
+ m(i, a) {
+ z(i, e, a), z(i, n, a), z(i, l, a);
},
- p(l, o) {
- o[0] & /*formatted_timer*/
- 1048576 && Ae(
+ p(i, a) {
+ a[0] & /*formatted_timer*/
+ 1048576 && Te(
e,
/*formatted_timer*/
- l[20]
- ), o[0] & /*eta, formatted_eta*/
+ i[20]
+ ), a[0] & /*eta, formatted_eta*/
524289 && t !== (t = /*eta*/
- l[0] ? `/${/*formatted_eta*/
- l[19]}` : "") && Ae(n, t);
+ i[0] ? `/${/*formatted_eta*/
+ i[19]}` : "") && Te(n, t);
},
- d(l) {
- l && (B(e), B(n), B(i));
+ d(i) {
+ i && (q(e), q(n), q(l));
}
};
}
-function rs(a) {
+function hs(o) {
let e, t;
- return e = new Go({
+ return e = new Qa({
props: { margin: (
/*variant*/
- a[8] === "default"
+ o[8] === "default"
) }
}), {
c() {
- Ul(e.$$.fragment);
+ Kl(e.$$.fragment);
},
l(n) {
- Vl(e.$$.fragment, n);
+ Wl(e.$$.fragment, n);
},
- m(n, i) {
- Kl(e, n, i), t = !0;
+ m(n, l) {
+ io(e, n, l), t = !0;
},
- p(n, i) {
- const l = {};
- i[0] & /*variant*/
- 256 && (l.margin = /*variant*/
- n[8] === "default"), e.$set(l);
+ p(n, l) {
+ const i = {};
+ l[0] & /*variant*/
+ 256 && (i.margin = /*variant*/
+ n[8] === "default"), e.$set(i);
},
i(n) {
- t || (Ie(e.$$.fragment, n), t = !0);
+ t || (Pe(e.$$.fragment, n), t = !0);
},
o(n) {
- Ze(e.$$.fragment, n), t = !1;
+ Ye(e.$$.fragment, n), t = !1;
},
d(n) {
- Zl(e, n);
+ Jl(e, n);
}
};
}
-function us(a) {
- let e, t, n, i, l, o = `${/*last_progress_level*/
- a[15] * 100}%`, s = (
+function ps(o) {
+ let e, t, n, l, i, a = `${/*last_progress_level*/
+ o[15] * 100}%`, s = (
/*progress*/
- a[7] != null && Bi(a)
+ o[7] != null && Bi(o)
);
return {
c() {
- e = Ge("div"), t = Ge("div"), s && s.c(), n = we(), i = Ge("div"), l = Ge("div"), this.h();
+ e = Xe("div"), t = Xe("div"), s && s.c(), n = $e(), l = Xe("div"), i = Xe("div"), this.h();
},
l(r) {
- e = Ue(r, "DIV", { class: !0 });
- var u = Ve(e);
- t = Ue(u, "DIV", { class: !0 });
- var _ = Ve(t);
- s && s.l(_), _.forEach(B), n = ye(u), i = Ue(u, "DIV", { class: !0 });
- var d = Ve(i);
- l = Ue(d, "DIV", { class: !0 }), Ve(l).forEach(B), d.forEach(B), u.forEach(B), this.h();
+ e = xe(r, "DIV", { class: !0 });
+ var u = Ze(e);
+ t = xe(u, "DIV", { class: !0 });
+ var _ = Ze(t);
+ s && s.l(_), _.forEach(q), n = Fe(u), l = xe(u, "DIV", { class: !0 });
+ var d = Ze(l);
+ i = xe(d, "DIV", { class: !0 }), Ze(i).forEach(q), d.forEach(q), u.forEach(q), this.h();
},
h() {
- Re(t, "class", "progress-level-inner svelte-17v219f"), Re(l, "class", "progress-bar svelte-17v219f"), it(l, "width", o), Re(i, "class", "progress-bar-wrap svelte-17v219f"), Re(e, "class", "progress-level svelte-17v219f");
+ Me(t, "class", "progress-level-inner svelte-17v219f"), Me(i, "class", "progress-bar svelte-17v219f"), ot(i, "width", a), Me(l, "class", "progress-bar-wrap svelte-17v219f"), Me(e, "class", "progress-level svelte-17v219f");
},
m(r, u) {
- T(r, e, u), ut(e, t), s && s.m(t, null), ut(e, n), ut(e, i), ut(i, l), a[31](l);
+ z(r, e, u), dt(e, t), s && s.m(t, null), dt(e, n), dt(e, l), dt(l, i), o[31](i);
},
p(r, u) {
/*progress*/
r[7] != null ? s ? s.p(r, u) : (s = Bi(r), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u[0] & /*last_progress_level*/
- 32768 && o !== (o = `${/*last_progress_level*/
- r[15] * 100}%`) && it(l, "width", o);
+ 32768 && a !== (a = `${/*last_progress_level*/
+ r[15] * 100}%`) && ot(i, "width", a);
},
- i: Rn,
- o: Rn,
+ i: Ln,
+ o: Ln,
d(r) {
- r && B(e), s && s.d(), a[31](null);
+ r && q(e), s && s.d(), o[31](null);
}
};
}
-function Bi(a) {
+function Bi(o) {
let e, t = fn(
/*progress*/
- a[7]
+ o[7]
), n = [];
- for (let i = 0; i < t.length; i += 1)
- n[i] = Ri(Fi(a, t, i));
+ for (let l = 0; l < t.length; l += 1)
+ n[l] = Li($i(o, t, l));
return {
c() {
- for (let i = 0; i < n.length; i += 1)
- n[i].c();
- e = Ee();
- },
- l(i) {
for (let l = 0; l < n.length; l += 1)
- n[l].l(i);
- e = Ee();
+ n[l].c();
+ e = Be();
},
- m(i, l) {
- for (let o = 0; o < n.length; o += 1)
- n[o] && n[o].m(i, l);
- T(i, e, l);
+ l(l) {
+ for (let i = 0; i < n.length; i += 1)
+ n[i].l(l);
+ e = Be();
+ },
+ m(l, i) {
+ for (let a = 0; a < n.length; a += 1)
+ n[a] && n[a].m(l, i);
+ z(l, e, i);
},
- p(i, l) {
- if (l[0] & /*progress_level, progress*/
+ p(l, i) {
+ if (i[0] & /*progress_level, progress*/
16512) {
t = fn(
/*progress*/
- i[7]
+ l[7]
);
- let o;
- for (o = 0; o < t.length; o += 1) {
- const s = Fi(i, t, o);
- n[o] ? n[o].p(s, l) : (n[o] = Ri(s), n[o].c(), n[o].m(e.parentNode, e));
+ let a;
+ for (a = 0; a < t.length; a += 1) {
+ const s = $i(l, t, a);
+ n[a] ? n[a].p(s, i) : (n[a] = Li(s), n[a].c(), n[a].m(e.parentNode, e));
}
- for (; o < n.length; o += 1)
- n[o].d(1);
+ for (; a < n.length; a += 1)
+ n[a].d(1);
n.length = t.length;
}
},
- d(i) {
- i && B(e), Xl(n, i);
+ d(l) {
+ l && q(e), eo(n, l);
}
};
}
-function qi(a) {
- let e, t, n, i, l = (
+function Ti(o) {
+ let e, t, n, l, i = (
/*i*/
- a[42] !== 0 && _s()
- ), o = (
+ o[42] !== 0 && ms()
+ ), a = (
/*p*/
- a[40].desc != null && Ti(a)
+ o[40].desc != null && zi(o)
), s = (
/*p*/
- a[40].desc != null && /*progress_level*/
- a[14] && /*progress_level*/
- a[14][
+ o[40].desc != null && /*progress_level*/
+ o[14] && /*progress_level*/
+ o[14][
/*i*/
- a[42]
- ] != null && zi()
+ o[42]
+ ] != null && Ii()
), r = (
/*progress_level*/
- a[14] != null && Ii(a)
+ o[14] != null && Ri(o)
);
return {
c() {
- l && l.c(), e = we(), o && o.c(), t = we(), s && s.c(), n = we(), r && r.c(), i = Ee();
+ i && i.c(), e = $e(), a && a.c(), t = $e(), s && s.c(), n = $e(), r && r.c(), l = Be();
},
l(u) {
- l && l.l(u), e = ye(u), o && o.l(u), t = ye(u), s && s.l(u), n = ye(u), r && r.l(u), i = Ee();
+ i && i.l(u), e = Fe(u), a && a.l(u), t = Fe(u), s && s.l(u), n = Fe(u), r && r.l(u), l = Be();
},
m(u, _) {
- l && l.m(u, _), T(u, e, _), o && o.m(u, _), T(u, t, _), s && s.m(u, _), T(u, n, _), r && r.m(u, _), T(u, i, _);
+ i && i.m(u, _), z(u, e, _), a && a.m(u, _), z(u, t, _), s && s.m(u, _), z(u, n, _), r && r.m(u, _), z(u, l, _);
},
p(u, _) {
/*p*/
- u[40].desc != null ? o ? o.p(u, _) : (o = Ti(u), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null), /*p*/
+ u[40].desc != null ? a ? a.p(u, _) : (a = zi(u), a.c(), a.m(t.parentNode, t)) : a && (a.d(1), a = null), /*p*/
u[40].desc != null && /*progress_level*/
u[14] && /*progress_level*/
u[14][
/*i*/
u[42]
- ] != null ? s || (s = zi(), s.c(), s.m(n.parentNode, n)) : s && (s.d(1), s = null), /*progress_level*/
- u[14] != null ? r ? r.p(u, _) : (r = Ii(u), r.c(), r.m(i.parentNode, i)) : r && (r.d(1), r = null);
+ ] != null ? s || (s = Ii(), s.c(), s.m(n.parentNode, n)) : s && (s.d(1), s = null), /*progress_level*/
+ u[14] != null ? r ? r.p(u, _) : (r = Ri(u), r.c(), r.m(l.parentNode, l)) : r && (r.d(1), r = null);
},
d(u) {
- u && (B(e), B(t), B(n), B(i)), l && l.d(u), o && o.d(u), s && s.d(u), r && r.d(u);
+ u && (q(e), q(t), q(n), q(l)), i && i.d(u), a && a.d(u), s && s.d(u), r && r.d(u);
}
};
}
-function _s(a) {
+function ms(o) {
let e;
return {
c() {
- e = V(" /");
+ e = Y(" /");
},
l(t) {
- e = x(t, " /");
+ e = X(t, " /");
},
m(t, n) {
- T(t, e, n);
+ z(t, e, n);
},
d(t) {
- t && B(e);
+ t && q(e);
}
};
}
-function Ti(a) {
+function zi(o) {
let e = (
/*p*/
- a[40].desc + ""
+ o[40].desc + ""
), t;
return {
c() {
- t = V(e);
+ t = Y(e);
},
l(n) {
- t = x(n, e);
+ t = X(n, e);
},
- m(n, i) {
- T(n, t, i);
+ m(n, l) {
+ z(n, t, l);
},
- p(n, i) {
- i[0] & /*progress*/
+ p(n, l) {
+ l[0] & /*progress*/
128 && e !== (e = /*p*/
- n[40].desc + "") && Ae(t, e);
+ n[40].desc + "") && Te(t, e);
},
d(n) {
- n && B(t);
+ n && q(t);
}
};
}
-function zi(a) {
+function Ii(o) {
let e;
return {
c() {
- e = V("-");
+ e = Y("-");
},
l(t) {
- e = x(t, "-");
+ e = X(t, "-");
},
m(t, n) {
- T(t, e, n);
+ z(t, e, n);
},
d(t) {
- t && B(e);
+ t && q(e);
}
};
}
-function Ii(a) {
+function Ri(o) {
let e = (100 * /*progress_level*/
- (a[14][
+ (o[14][
/*i*/
- a[42]
+ o[42]
] || 0)).toFixed(1) + "", t, n;
return {
c() {
- t = V(e), n = V("%");
+ t = Y(e), n = Y("%");
},
- l(i) {
- t = x(i, e), n = x(i, "%");
+ l(l) {
+ t = X(l, e), n = X(l, "%");
},
- m(i, l) {
- T(i, t, l), T(i, n, l);
+ m(l, i) {
+ z(l, t, i), z(l, n, i);
},
- p(i, l) {
- l[0] & /*progress_level*/
+ p(l, i) {
+ i[0] & /*progress_level*/
16384 && e !== (e = (100 * /*progress_level*/
- (i[14][
+ (l[14][
/*i*/
- i[42]
- ] || 0)).toFixed(1) + "") && Ae(t, e);
+ l[42]
+ ] || 0)).toFixed(1) + "") && Te(t, e);
},
- d(i) {
- i && (B(t), B(n));
+ d(l) {
+ l && (q(t), q(n));
}
};
}
-function Ri(a) {
+function Li(o) {
let e, t = (
/*p*/
- (a[40].desc != null || /*progress_level*/
- a[14] && /*progress_level*/
- a[14][
+ (o[40].desc != null || /*progress_level*/
+ o[14] && /*progress_level*/
+ o[14][
/*i*/
- a[42]
- ] != null) && qi(a)
+ o[42]
+ ] != null) && Ti(o)
);
return {
c() {
- t && t.c(), e = Ee();
+ t && t.c(), e = Be();
},
l(n) {
- t && t.l(n), e = Ee();
+ t && t.l(n), e = Be();
},
- m(n, i) {
- t && t.m(n, i), T(n, e, i);
+ m(n, l) {
+ t && t.m(n, l), z(n, e, l);
},
- p(n, i) {
+ p(n, l) {
/*p*/
n[40].desc != null || /*progress_level*/
n[14] && /*progress_level*/
n[14][
/*i*/
n[42]
- ] != null ? t ? t.p(n, i) : (t = qi(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ ] != null ? t ? t.p(n, l) : (t = Ti(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(n) {
- n && B(e), t && t.d(n);
+ n && q(e), t && t.d(n);
}
};
}
-function Li(a) {
- let e, t, n, i;
- const l = (
+function Oi(o) {
+ let e, t, n, l;
+ const i = (
/*#slots*/
- a[30]["additional-loading-text"]
- ), o = Gl(
- l,
- a,
+ o[30]["additional-loading-text"]
+ ), a = Ql(
+ i,
+ o,
/*$$scope*/
- a[29],
- ki
+ o[29],
+ Fi
);
return {
c() {
- e = Ge("p"), t = V(
+ e = Xe("p"), t = Y(
/*loading_text*/
- a[9]
- ), n = we(), o && o.c(), this.h();
+ o[9]
+ ), n = $e(), a && a.c(), this.h();
},
l(s) {
- e = Ue(s, "P", { class: !0 });
- var r = Ve(e);
- t = x(
+ e = xe(s, "P", { class: !0 });
+ var r = Ze(e);
+ t = X(
r,
/*loading_text*/
- a[9]
- ), r.forEach(B), n = ye(s), o && o.l(s), this.h();
+ o[9]
+ ), r.forEach(q), n = Fe(s), a && a.l(s), this.h();
},
h() {
- Re(e, "class", "loading svelte-17v219f");
+ Me(e, "class", "loading svelte-17v219f");
},
m(s, r) {
- T(s, e, r), ut(e, t), T(s, n, r), o && o.m(s, r), i = !0;
+ z(s, e, r), dt(e, t), z(s, n, r), a && a.m(s, r), l = !0;
},
p(s, r) {
- (!i || r[0] & /*loading_text*/
- 512) && Ae(
+ (!l || r[0] & /*loading_text*/
+ 512) && Te(
t,
/*loading_text*/
s[9]
- ), o && o.p && (!i || r[0] & /*$$scope*/
- 536870912) && Ql(
- o,
- l,
+ ), a && a.p && (!l || r[0] & /*$$scope*/
+ 536870912) && lo(
+ a,
+ i,
s,
/*$$scope*/
s[29],
- i ? Wl(
- l,
+ l ? no(
+ i,
/*$$scope*/
s[29],
r,
- es
- ) : Yl(
+ as
+ ) : to(
/*$$scope*/
s[29]
),
- ki
+ Fi
);
},
i(s) {
- i || (Ie(o, s), i = !0);
+ l || (Pe(a, s), l = !0);
},
o(s) {
- Ze(o, s), i = !1;
+ Ye(a, s), l = !1;
},
d(s) {
- s && (B(e), B(n)), o && o.d(s);
+ s && (q(e), q(n)), a && a.d(s);
}
};
}
-function cs(a) {
- let e, t, n, i, l;
- const o = [ns, ts], s = [];
+function gs(o) {
+ let e, t, n, l, i;
+ const a = [rs, ss], s = [];
function r(u, _) {
return (
/*status*/
@@ -7071,71 +7071,71 @@ function cs(a) {
)
);
}
- return ~(t = r(a)) && (n = s[t] = o[t](a)), {
+ return ~(t = r(o)) && (n = s[t] = a[t](o)), {
c() {
- e = Ge("div"), n && n.c(), this.h();
+ e = Xe("div"), n && n.c(), this.h();
},
l(u) {
- e = Ue(u, "DIV", { class: !0 });
- var _ = Ve(e);
- n && n.l(_), _.forEach(B), this.h();
+ e = xe(u, "DIV", { class: !0 });
+ var _ = Ze(e);
+ n && n.l(_), _.forEach(q), this.h();
},
h() {
- Re(e, "class", i = "wrap " + /*variant*/
- a[8] + " " + /*show_progress*/
- a[6] + " svelte-17v219f"), be(e, "hide", !/*status*/
- a[4] || /*status*/
- a[4] === "complete" || /*show_progress*/
- a[6] === "hidden" || /*status*/
- a[4] == "streaming"), be(
+ Me(e, "class", l = "wrap " + /*variant*/
+ o[8] + " " + /*show_progress*/
+ o[6] + " svelte-17v219f"), ke(e, "hide", !/*status*/
+ o[4] || /*status*/
+ o[4] === "complete" || /*show_progress*/
+ o[6] === "hidden" || /*status*/
+ o[4] == "streaming"), ke(
e,
"translucent",
/*variant*/
- a[8] === "center" && /*status*/
- (a[4] === "pending" || /*status*/
- a[4] === "error") || /*translucent*/
- a[11] || /*show_progress*/
- a[6] === "minimal"
- ), be(
+ o[8] === "center" && /*status*/
+ (o[4] === "pending" || /*status*/
+ o[4] === "error") || /*translucent*/
+ o[11] || /*show_progress*/
+ o[6] === "minimal"
+ ), ke(
e,
"generating",
/*status*/
- a[4] === "generating" && /*show_progress*/
- a[6] === "full"
- ), be(
+ o[4] === "generating" && /*show_progress*/
+ o[6] === "full"
+ ), ke(
e,
"border",
/*border*/
- a[12]
- ), it(
+ o[12]
+ ), ot(
e,
"position",
/*absolute*/
- a[10] ? "absolute" : "static"
- ), it(
+ o[10] ? "absolute" : "static"
+ ), ot(
e,
"padding",
/*absolute*/
- a[10] ? "0" : "var(--size-8) 0"
+ o[10] ? "0" : "var(--size-8) 0"
);
},
m(u, _) {
- T(u, e, _), ~t && s[t].m(e, null), a[33](e), l = !0;
+ z(u, e, _), ~t && s[t].m(e, null), o[33](e), i = !0;
},
p(u, _) {
let d = t;
- t = r(u), t === d ? ~t && s[t].p(u, _) : (n && (In(), Ze(s[d], 1, 1, () => {
+ t = r(u), t === d ? ~t && s[t].p(u, _) : (n && (Rn(), Ye(s[d], 1, 1, () => {
s[d] = null;
- }), zn()), ~t ? (n = s[t], n ? n.p(u, _) : (n = s[t] = o[t](u), n.c()), Ie(n, 1), n.m(e, null)) : n = null), (!l || _[0] & /*variant, show_progress*/
- 320 && i !== (i = "wrap " + /*variant*/
+ }), In()), ~t ? (n = s[t], n ? n.p(u, _) : (n = s[t] = a[t](u), n.c()), Pe(n, 1), n.m(e, null)) : n = null), (!i || _[0] & /*variant, show_progress*/
+ 320 && l !== (l = "wrap " + /*variant*/
u[8] + " " + /*show_progress*/
- u[6] + " svelte-17v219f")) && Re(e, "class", i), (!l || _[0] & /*variant, show_progress, status, show_progress*/
- 336) && be(e, "hide", !/*status*/
+ u[6] + " svelte-17v219f")) && Me(e, "class", l), (!i || _[0] & /*variant, show_progress, status, show_progress*/
+ 336) && ke(e, "hide", !/*status*/
u[4] || /*status*/
u[4] === "complete" || /*show_progress*/
u[6] === "hidden" || /*status*/
- u[4] == "streaming"), (!l || _[0] & /*variant, show_progress, variant, status, translucent, show_progress*/
- 2384) && be(
+ u[4] == "streaming"), (!i || _[0] & /*variant, show_progress, variant, status, translucent, show_progress*/
+ 2384) && ke(
e,
"translucent",
/*variant*/
@@ -7144,27 +7144,27 @@ function cs(a) {
u[4] === "error") || /*translucent*/
u[11] || /*show_progress*/
u[6] === "minimal"
- ), (!l || _[0] & /*variant, show_progress, status, show_progress*/
- 336) && be(
+ ), (!i || _[0] & /*variant, show_progress, status, show_progress*/
+ 336) && ke(
e,
"generating",
/*status*/
u[4] === "generating" && /*show_progress*/
u[6] === "full"
- ), (!l || _[0] & /*variant, show_progress, border*/
- 4416) && be(
+ ), (!i || _[0] & /*variant, show_progress, border*/
+ 4416) && ke(
e,
"border",
/*border*/
u[12]
), _[0] & /*absolute*/
- 1024 && it(
+ 1024 && ot(
e,
"position",
/*absolute*/
u[10] ? "absolute" : "static"
), _[0] & /*absolute*/
- 1024 && it(
+ 1024 && ot(
e,
"padding",
/*absolute*/
@@ -7172,111 +7172,111 @@ function cs(a) {
);
},
i(u) {
- l || (Ie(n), l = !0);
+ i || (Pe(n), i = !0);
},
o(u) {
- Ze(n), l = !1;
+ Ye(n), i = !1;
},
d(u) {
- u && B(e), ~t && s[t].d(), a[33](null);
+ u && q(e), ~t && s[t].d(), o[33](null);
}
};
}
-var ds = function(a, e, t, n) {
- function i(l) {
- return l instanceof t ? l : new t(function(o) {
- o(l);
+var vs = function(o, e, t, n) {
+ function l(i) {
+ return i instanceof t ? i : new t(function(a) {
+ a(i);
});
}
- return new (t || (t = Promise))(function(l, o) {
+ return new (t || (t = Promise))(function(i, a) {
function s(_) {
try {
u(n.next(_));
} catch (d) {
- o(d);
+ a(d);
}
}
function r(_) {
try {
u(n.throw(_));
} catch (d) {
- o(d);
+ a(d);
}
}
function u(_) {
- _.done ? l(_.value) : i(_.value).then(s, r);
+ _.done ? i(_.value) : l(_.value).then(s, r);
}
- u((n = n.apply(a, e || [])).next());
+ u((n = n.apply(o, e || [])).next());
});
};
-let an = [], $n = !1;
-const fs = typeof window < "u", Jl = fs ? window.requestAnimationFrame : (a) => {
+let an = [], Cn = !1;
+const bs = typeof window < "u", oo = bs ? window.requestAnimationFrame : (o) => {
};
-function hs(a) {
- return ds(this, arguments, void 0, function* (e, t = !0) {
+function Ds(o) {
+ return vs(this, arguments, void 0, function* (e, t = !0) {
if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && t !== !0)) {
- if (an.push(e), !$n) $n = !0;
+ if (an.push(e), !Cn) Cn = !0;
else return;
- yield Wo(), Jl(() => {
+ yield ns(), oo(() => {
let n = [0, 0];
- for (let i = 0; i < an.length; i++) {
- const o = an[i].getBoundingClientRect();
- (i === 0 || o.top + window.scrollY <= n[0]) && (n[0] = o.top + window.scrollY, n[1] = i);
+ for (let l = 0; l < an.length; l++) {
+ const a = an[l].getBoundingClientRect();
+ (l === 0 || a.top + window.scrollY <= n[0]) && (n[0] = a.top + window.scrollY, n[1] = l);
}
- window.scrollTo({ top: n[0] - 20, behavior: "smooth" }), $n = !1, an = [];
+ window.scrollTo({ top: n[0] - 20, behavior: "smooth" }), Cn = !1, an = [];
});
}
});
}
-function ps(a, e, t) {
- let n, { $$slots: i = {}, $$scope: l } = e;
- const o = Qo();
- let { i18n: s } = e, { eta: r = null } = e, { queue_position: u } = e, { queue_size: _ } = e, { status: d } = e, { scroll_to_output: c = !1 } = e, { timer: h = !0 } = e, { show_progress: g = "full" } = e, { message: p = null } = e, { progress: D = null } = e, { variant: k = "default" } = e, { loading_text: m = "Loading..." } = e, { absolute: f = !0 } = e, { translucent: v = !1 } = e, { border: y = !1 } = e, { autoscroll: b } = e, F, A = !1, E = 0, q = 0, w = null, $ = null, ge = 0, _e = null, Me, ue = null, nt = !0;
- const Z = () => {
- t(0, r = t(27, w = t(19, C = null))), t(25, E = performance.now()), t(26, q = 0), A = !0, se();
+function ys(o, e, t) {
+ let n, { $$slots: l = {}, $$scope: i } = e;
+ const a = ls();
+ let { i18n: s } = e, { eta: r = null } = e, { queue_position: u } = e, { queue_size: _ } = e, { status: d } = e, { scroll_to_output: c = !1 } = e, { timer: h = !0 } = e, { show_progress: m = "full" } = e, { message: p = null } = e, { progress: b = null } = e, { variant: k = "default" } = e, { loading_text: g = "Loading..." } = e, { absolute: f = !0 } = e, { translucent: v = !1 } = e, { border: D = !1 } = e, { autoscroll: w } = e, F, A = !1, y = 0, T = 0, E = null, L = null, B = 0, $ = null, ue, he = null, lt = !0;
+ const K = () => {
+ t(0, r = t(27, E = t(19, C = null))), t(25, y = performance.now()), t(26, T = 0), A = !0, _e();
};
- function se() {
- Jl(() => {
- t(26, q = (performance.now() - E) / 1e3), A && se();
+ function _e() {
+ oo(() => {
+ t(26, T = (performance.now() - y) / 1e3), A && _e();
});
}
- function Se() {
- t(26, q = 0), t(0, r = t(27, w = t(19, C = null))), A && (A = !1);
+ function ze() {
+ t(26, T = 0), t(0, r = t(27, E = t(19, C = null))), A && (A = !1);
}
- Ko(() => {
- A && Se();
+ is(() => {
+ A && ze();
});
let C = null;
- function ee(S) {
- yi[S ? "unshift" : "push"](() => {
- ue = S, t(16, ue), t(7, D), t(14, _e), t(15, Me);
+ function ie(S) {
+ wi[S ? "unshift" : "push"](() => {
+ he = S, t(16, he), t(7, b), t(14, $), t(15, ue);
});
}
- const pt = () => {
- o("clear_status");
+ const vt = () => {
+ a("clear_status");
};
- function ce(S) {
- yi[S ? "unshift" : "push"](() => {
+ function ge(S) {
+ wi[S ? "unshift" : "push"](() => {
F = S, t(13, F);
});
}
- return a.$$set = (S) => {
- "i18n" in S && t(1, s = S.i18n), "eta" in S && t(0, r = S.eta), "queue_position" in S && t(2, u = S.queue_position), "queue_size" in S && t(3, _ = S.queue_size), "status" in S && t(4, d = S.status), "scroll_to_output" in S && t(22, c = S.scroll_to_output), "timer" in S && t(5, h = S.timer), "show_progress" in S && t(6, g = S.show_progress), "message" in S && t(23, p = S.message), "progress" in S && t(7, D = S.progress), "variant" in S && t(8, k = S.variant), "loading_text" in S && t(9, m = S.loading_text), "absolute" in S && t(10, f = S.absolute), "translucent" in S && t(11, v = S.translucent), "border" in S && t(12, y = S.border), "autoscroll" in S && t(24, b = S.autoscroll), "$$scope" in S && t(29, l = S.$$scope);
- }, a.$$.update = () => {
- a.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
- 436207617 && (r === null && t(0, r = w), r != null && w !== r && (t(28, $ = (performance.now() - E) / 1e3 + r), t(19, C = $.toFixed(1)), t(27, w = r))), a.$$.dirty[0] & /*eta_from_start, timer_diff*/
- 335544320 && t(17, ge = $ === null || $ <= 0 || !q ? null : Math.min(q / $, 1)), a.$$.dirty[0] & /*progress*/
- 128 && D != null && t(18, nt = !1), a.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
- 114816 && (D != null ? t(14, _e = D.map((S) => {
+ return o.$$set = (S) => {
+ "i18n" in S && t(1, s = S.i18n), "eta" in S && t(0, r = S.eta), "queue_position" in S && t(2, u = S.queue_position), "queue_size" in S && t(3, _ = S.queue_size), "status" in S && t(4, d = S.status), "scroll_to_output" in S && t(22, c = S.scroll_to_output), "timer" in S && t(5, h = S.timer), "show_progress" in S && t(6, m = S.show_progress), "message" in S && t(23, p = S.message), "progress" in S && t(7, b = S.progress), "variant" in S && t(8, k = S.variant), "loading_text" in S && t(9, g = S.loading_text), "absolute" in S && t(10, f = S.absolute), "translucent" in S && t(11, v = S.translucent), "border" in S && t(12, D = S.border), "autoscroll" in S && t(24, w = S.autoscroll), "$$scope" in S && t(29, i = S.$$scope);
+ }, o.$$.update = () => {
+ o.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
+ 436207617 && (r === null && t(0, r = E), r != null && E !== r && (t(28, L = (performance.now() - y) / 1e3 + r), t(19, C = L.toFixed(1)), t(27, E = r))), o.$$.dirty[0] & /*eta_from_start, timer_diff*/
+ 335544320 && t(17, B = L === null || L <= 0 || !T ? null : Math.min(T / L, 1)), o.$$.dirty[0] & /*progress*/
+ 128 && b != null && t(18, lt = !1), o.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
+ 114816 && (b != null ? t(14, $ = b.map((S) => {
if (S.index != null && S.length != null)
return S.index / S.length;
if (S.progress != null)
return S.progress;
- })) : t(14, _e = null), _e ? (t(15, Me = _e[_e.length - 1]), ue && (Me === 0 ? t(16, ue.style.transition = "0", ue) : t(16, ue.style.transition = "150ms", ue))) : t(15, Me = void 0)), a.$$.dirty[0] & /*status*/
- 16 && (d === "pending" ? Z() : Se()), a.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
- 20979728 && F && c && (d === "pending" || d === "complete") && hs(F, b), a.$$.dirty[0] & /*status, message*/
- 8388624, a.$$.dirty[0] & /*timer_diff*/
- 67108864 && t(20, n = q.toFixed(1));
+ })) : t(14, $ = null), $ ? (t(15, ue = $[$.length - 1]), he && (ue === 0 ? t(16, he.style.transition = "0", he) : t(16, he.style.transition = "150ms", he))) : t(15, ue = void 0)), o.$$.dirty[0] & /*status*/
+ 16 && (d === "pending" ? K() : ze()), o.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
+ 20979728 && F && c && (d === "pending" || d === "complete") && Ds(F, w), o.$$.dirty[0] & /*status, message*/
+ 8388624, o.$$.dirty[0] & /*timer_diff*/
+ 67108864 && t(20, n = T.toFixed(1));
}, [
r,
s,
@@ -7284,44 +7284,44 @@ function ps(a, e, t) {
_,
d,
h,
- g,
- D,
- k,
m,
+ b,
+ k,
+ g,
f,
v,
- y,
+ D,
F,
- _e,
- Me,
+ $,
ue,
- ge,
- nt,
+ he,
+ B,
+ lt,
C,
n,
- o,
+ a,
c,
p,
- b,
- E,
- q,
w,
- $,
- l,
+ y,
+ T,
+ E,
+ L,
i,
- ee,
- pt,
- ce
+ l,
+ ie,
+ vt,
+ ge
];
}
-class ms extends Zo {
+class ws extends Ja {
constructor(e) {
- super(), Xo(
+ super(), es(
this,
e,
- ps,
- cs,
- Yo,
+ ys,
+ gs,
+ ts,
{
i18n: 1,
eta: 0,
@@ -7346,309 +7346,367 @@ class ms extends Zo {
}
}
const {
- HtmlTagHydration: c$,
- SvelteComponent: d$,
- add_render_callback: f$,
- append_hydration: h$,
- attr: p$,
- bubble: m$,
- check_outros: g$,
- children: v$,
- claim_component: b$,
- claim_element: D$,
- claim_html_tag: y$,
- claim_space: w$,
- claim_text: k$,
- create_component: F$,
- create_in_transition: $$,
- create_out_transition: C$,
- destroy_component: E$,
- detach: A$,
- element: S$,
- get_svelte_dataset: B$,
- group_outros: q$,
- init: T$,
- insert_hydration: z$,
- listen: I$,
- mount_component: R$,
- run_all: L$,
- safe_not_equal: O$,
- set_data: P$,
- space: M$,
- stop_propagation: N$,
- text: j$,
- toggle_class: H$,
- transition_in: x$,
- transition_out: V$
-} = window.__gradio__svelte__internal, { createEventDispatcher: U$, onMount: G$ } = window.__gradio__svelte__internal, {
- SvelteComponent: Z$,
- append_hydration: X$,
- attr: Y$,
- bubble: W$,
- check_outros: K$,
- children: Q$,
- claim_component: J$,
- claim_element: e4,
- claim_space: t4,
- create_animation: n4,
- create_component: i4,
- destroy_component: l4,
- detach: a4,
- element: o4,
- ensure_array_like: s4,
- fix_and_outro_and_destroy_block: r4,
- fix_position: u4,
- group_outros: _4,
- init: c4,
- insert_hydration: d4,
- mount_component: f4,
- noop: h4,
- safe_not_equal: p4,
- set_style: m4,
- space: g4,
- transition_in: v4,
- transition_out: b4,
- update_keyed_each: D4
+ HtmlTagHydration: g$,
+ SvelteComponent: v$,
+ add_render_callback: b$,
+ append_hydration: D$,
+ attr: y$,
+ bubble: w$,
+ check_outros: k$,
+ children: F$,
+ claim_component: $$,
+ claim_element: C$,
+ claim_html_tag: E$,
+ claim_space: A$,
+ claim_text: S$,
+ create_component: q$,
+ create_in_transition: B$,
+ create_out_transition: T$,
+ destroy_component: z$,
+ detach: I$,
+ element: R$,
+ get_svelte_dataset: L$,
+ group_outros: O$,
+ init: P$,
+ insert_hydration: M$,
+ listen: N$,
+ mount_component: j$,
+ run_all: V$,
+ safe_not_equal: H$,
+ set_data: G$,
+ space: U$,
+ stop_propagation: Z$,
+ text: x$,
+ toggle_class: X$,
+ transition_in: Y$,
+ transition_out: W$
+} = window.__gradio__svelte__internal, { createEventDispatcher: K$, onMount: Q$ } = window.__gradio__svelte__internal, {
+ SvelteComponent: J$,
+ append_hydration: e3,
+ attr: t3,
+ bubble: n3,
+ check_outros: i3,
+ children: l3,
+ claim_component: o3,
+ claim_element: a3,
+ claim_space: s3,
+ create_animation: r3,
+ create_component: u3,
+ destroy_component: _3,
+ detach: c3,
+ element: d3,
+ ensure_array_like: f3,
+ fix_and_outro_and_destroy_block: h3,
+ fix_position: p3,
+ group_outros: m3,
+ init: g3,
+ insert_hydration: v3,
+ mount_component: b3,
+ noop: D3,
+ safe_not_equal: y3,
+ set_style: w3,
+ space: k3,
+ transition_in: F3,
+ transition_out: $3,
+ update_keyed_each: C3
} = window.__gradio__svelte__internal, {
- SvelteComponent: y4,
- attr: w4,
- children: k4,
- claim_element: F4,
- detach: $4,
- element: C4,
- empty: E4,
- init: A4,
- insert_hydration: S4,
- noop: B4,
- safe_not_equal: q4,
- set_style: T4
+ SvelteComponent: E3,
+ attr: A3,
+ children: S3,
+ claim_element: q3,
+ detach: B3,
+ element: T3,
+ empty: z3,
+ init: I3,
+ insert_hydration: R3,
+ noop: L3,
+ safe_not_equal: O3,
+ set_style: P3
} = window.__gradio__svelte__internal, {
- SvelteComponent: gs,
- append_hydration: De,
- attr: Y,
- children: Ye,
- claim_element: We,
- claim_space: It,
- claim_text: Rt,
- destroy_each: vs,
- detach: Q,
- element: Ke,
- empty: Oi,
- ensure_array_like: Pi,
- init: bs,
- insert_hydration: lt,
- noop: Mi,
- safe_not_equal: Ds,
- set_data: Lt,
- set_style: on,
- space: Ot,
- text: Pt,
- toggle_class: ke
+ SvelteComponent: ks,
+ append_hydration: pe,
+ attr: U,
+ children: Qe,
+ claim_element: Ne,
+ claim_space: kt,
+ claim_text: Ot,
+ destroy_each: Fs,
+ detach: J,
+ element: je,
+ empty: Pi,
+ ensure_array_like: Mi,
+ init: $s,
+ insert_hydration: it,
+ noop: Ni,
+ safe_not_equal: Cs,
+ set_data: Pt,
+ set_style: at,
+ space: Ft,
+ src_url_equal: ji,
+ text: Mt,
+ toggle_class: Ce
} = window.__gradio__svelte__internal;
-function Ni(a, e, t) {
- const n = a.slice();
- return n[19] = e[t], n;
+function Vi(o, e, t) {
+ const n = o.slice();
+ return n[22] = e[t], n;
}
-function ji(a) {
- let e, t = Pi(
+function Hi(o) {
+ var a;
+ let e, t, n = (
+ /*scroll_logo_path*/
+ ((a = o[7]) == null ? void 0 : a.url) && Gi(o)
+ ), l = Mi(
/*display_items*/
- a[11]
- ), n = [];
- for (let i = 0; i < t.length; i += 1)
- n[i] = xi(Ni(a, t, i));
+ o[13]
+ ), i = [];
+ for (let s = 0; s < l.length; s += 1)
+ i[s] = Zi(Vi(o, l, s));
return {
c() {
- e = Ke("div");
- for (let i = 0; i < n.length; i += 1)
- n[i].c();
+ e = je("div"), n && n.c(), t = Ft();
+ for (let s = 0; s < i.length; s += 1)
+ i[s].c();
this.h();
},
- l(i) {
- e = We(i, "DIV", { class: !0 });
- var l = Ye(e);
- for (let o = 0; o < n.length; o += 1)
- n[o].l(l);
- l.forEach(Q), this.h();
+ l(s) {
+ e = Ne(s, "DIV", { class: !0 });
+ var r = Qe(e);
+ n && n.l(r), t = kt(r);
+ for (let u = 0; u < i.length; u += 1)
+ i[u].l(r);
+ r.forEach(J), this.h();
},
h() {
- Y(e, "class", "credits-container svelte-1t8lt48");
+ U(e, "class", "credits-container svelte-1nrfbo6");
},
- m(i, l) {
- lt(i, e, l);
- for (let o = 0; o < n.length; o += 1)
- n[o] && n[o].m(e, null);
+ m(s, r) {
+ it(s, e, r), n && n.m(e, null), pe(e, t);
+ for (let u = 0; u < i.length; u += 1)
+ i[u] && i[u].m(e, null);
},
- p(i, l) {
- if (l & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/
- 3964) {
- t = Pi(
+ p(s, r) {
+ var u;
+ if (/*scroll_logo_path*/
+ (u = s[7]) != null && u.url ? n ? n.p(s, r) : (n = Gi(s), n.c(), n.m(e, t)) : n && (n.d(1), n = null), r & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/
+ 15484) {
+ l = Mi(
/*display_items*/
- i[11]
+ s[13]
);
- let o;
- for (o = 0; o < t.length; o += 1) {
- const s = Ni(i, t, o);
- n[o] ? n[o].p(s, l) : (n[o] = xi(s), n[o].c(), n[o].m(e, null));
+ let _;
+ for (_ = 0; _ < l.length; _ += 1) {
+ const d = Vi(s, l, _);
+ i[_] ? i[_].p(d, r) : (i[_] = Zi(d), i[_].c(), i[_].m(e, null));
}
- for (; o < n.length; o += 1)
- n[o].d(1);
- n.length = t.length;
+ for (; _ < i.length; _ += 1)
+ i[_].d(1);
+ i.length = l.length;
}
},
- d(i) {
- i && Q(e), vs(n, i);
+ d(s) {
+ s && J(e), n && n.d(), Fs(i, s);
+ }
+ };
+}
+function Gi(o) {
+ let e, t, n;
+ return {
+ c() {
+ e = je("div"), t = je("img"), this.h();
+ },
+ l(l) {
+ e = Ne(l, "DIV", { class: !0 });
+ var i = Qe(e);
+ t = Ne(i, "IMG", { src: !0, alt: !0, class: !0 }), i.forEach(J), this.h();
+ },
+ h() {
+ ji(t.src, n = /*scroll_logo_path*/
+ o[7].url) || U(t, "src", n), U(t, "alt", "Scrolling Logo"), U(t, "class", "svelte-1nrfbo6"), at(
+ t,
+ "height",
+ /*scroll_logo_height*/
+ o[8]
+ ), U(e, "class", "scroll-logo-container svelte-1nrfbo6"), at(
+ e,
+ "height",
+ /*scroll_logo_height*/
+ o[8]
+ );
+ },
+ m(l, i) {
+ it(l, e, i), pe(e, t);
+ },
+ p(l, i) {
+ i & /*scroll_logo_path*/
+ 128 && !ji(t.src, n = /*scroll_logo_path*/
+ l[7].url) && U(t, "src", n), i & /*scroll_logo_height*/
+ 256 && at(
+ t,
+ "height",
+ /*scroll_logo_height*/
+ l[8]
+ ), i & /*scroll_logo_height*/
+ 256 && at(
+ e,
+ "height",
+ /*scroll_logo_height*/
+ l[8]
+ );
+ },
+ d(l) {
+ l && J(e);
}
};
}
-function ys(a) {
+function Es(o) {
let e, t, n = (
/*item*/
- a[19].title + ""
- ), i, l, o, s, r = (
+ o[22].title + ""
+ ), l, i, a, s, r = (
/*item*/
- a[19].name && Hi(a)
+ o[22].name && Ui(o)
);
return {
c() {
- e = Ke("div"), t = Ke("h2"), i = Pt(n), o = Ot(), r && r.c(), s = Ot(), this.h();
+ e = je("div"), t = je("h2"), l = Mt(n), a = Ft(), r && r.c(), s = Ft(), this.h();
},
l(u) {
- e = We(u, "DIV", { class: !0 });
- var _ = Ye(e);
- t = We(_, "H2", { style: !0, class: !0 });
- var d = Ye(t);
- i = Rt(d, n), d.forEach(Q), o = It(_), r && r.l(_), s = It(_), _.forEach(Q), this.h();
+ e = Ne(u, "DIV", { class: !0 });
+ var _ = Qe(e);
+ t = Ne(_, "H2", { style: !0, class: !0 });
+ var d = Qe(t);
+ l = Ot(d, n), d.forEach(J), a = kt(_), r && r.l(_), s = kt(_), _.forEach(J), this.h();
},
h() {
- Y(t, "style", l = /*title_style*/
- a[10](
+ U(t, "style", i = /*title_style*/
+ o[12](
/*item*/
- a[19].is_intro
- )), Y(t, "class", "svelte-1t8lt48"), ke(
+ o[22].is_intro
+ )), U(t, "class", "svelte-1nrfbo6"), Ce(
t,
"uppercase",
/*title_uppercase*/
- a[3] && !/*item*/
- a[19].is_intro
- ), Y(e, "class", "credit svelte-1t8lt48"), ke(
+ o[3] && !/*item*/
+ o[22].is_intro
+ ), U(e, "class", "credit svelte-1nrfbo6"), Ce(
e,
"intro-block",
/*item*/
- a[19].is_intro
+ o[22].is_intro
);
},
m(u, _) {
- lt(u, e, _), De(e, t), De(t, i), De(e, o), r && r.m(e, null), De(e, s);
+ it(u, e, _), pe(e, t), pe(t, l), pe(e, a), r && r.m(e, null), pe(e, s);
},
p(u, _) {
_ & /*display_items*/
- 2048 && n !== (n = /*item*/
- u[19].title + "") && Lt(i, n), _ & /*title_style, display_items*/
- 3072 && l !== (l = /*title_style*/
- u[10](
+ 8192 && n !== (n = /*item*/
+ u[22].title + "") && Pt(l, n), _ & /*title_style, display_items*/
+ 12288 && i !== (i = /*title_style*/
+ u[12](
/*item*/
- u[19].is_intro
- )) && Y(t, "style", l), _ & /*title_uppercase, display_items*/
- 2056 && ke(
+ u[22].is_intro
+ )) && U(t, "style", i), _ & /*title_uppercase, display_items*/
+ 8200 && Ce(
t,
"uppercase",
/*title_uppercase*/
u[3] && !/*item*/
- u[19].is_intro
+ u[22].is_intro
), /*item*/
- u[19].name ? r ? r.p(u, _) : (r = Hi(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/
- 2048 && ke(
+ u[22].name ? r ? r.p(u, _) : (r = Ui(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/
+ 8192 && Ce(
e,
"intro-block",
/*item*/
- u[19].is_intro
+ u[22].is_intro
);
},
d(u) {
- u && Q(e), r && r.d();
+ u && J(e), r && r.d();
}
};
}
-function ws(a) {
+function As(o) {
let e, t, n = (
/*item*/
- a[19].title + ""
- ), i, l, o, s, r = (
+ o[22].title + ""
+ ), l, i, a, s, r = (
/*item*/
- a[19].name + ""
+ o[22].name + ""
), u, _, d;
return {
c() {
- e = Ke("div"), t = Ke("div"), i = Pt(n), o = Ot(), s = Ke("div"), u = Pt(r), d = Ot(), this.h();
+ e = je("div"), t = je("div"), l = Mt(n), a = Ft(), s = je("div"), u = Mt(r), d = Ft(), this.h();
},
l(c) {
- e = We(c, "DIV", { class: !0 });
- var h = Ye(e);
- t = We(h, "DIV", { class: !0, style: !0 });
- var g = Ye(t);
- i = Rt(g, n), g.forEach(Q), o = It(h), s = We(h, "DIV", { class: !0, style: !0 });
- var p = Ye(s);
- u = Rt(p, r), p.forEach(Q), d = It(h), h.forEach(Q), this.h();
+ e = Ne(c, "DIV", { class: !0 });
+ var h = Qe(e);
+ t = Ne(h, "DIV", { class: !0, style: !0 });
+ var m = Qe(t);
+ l = Ot(m, n), m.forEach(J), a = kt(h), s = Ne(h, "DIV", { class: !0, style: !0 });
+ var p = Qe(s);
+ u = Ot(p, r), p.forEach(J), d = kt(h), h.forEach(J), this.h();
},
h() {
- Y(t, "class", "title svelte-1t8lt48"), Y(t, "style", l = /*swap_font_sizes_on_two_column*/
- a[6] ? (
+ U(t, "class", "title svelte-1nrfbo6"), U(t, "style", i = /*swap_font_sizes_on_two_column*/
+ o[6] ? (
/*name_style*/
- a[9](!1)
+ o[11](!1)
) : (
/*title_style*/
- a[10](!1)
- )), ke(
+ o[12](!1)
+ )), Ce(
t,
"uppercase",
/*title_uppercase*/
- a[3]
- ), Y(s, "class", "name svelte-1t8lt48"), Y(s, "style", _ = /*swap_font_sizes_on_two_column*/
- a[6] ? (
+ o[3]
+ ), U(s, "class", "name svelte-1nrfbo6"), U(s, "style", _ = /*swap_font_sizes_on_two_column*/
+ o[6] ? (
/*title_style*/
- a[10](!1)
+ o[12](!1)
) : (
/*name_style*/
- a[9](!1)
- )), ke(
+ o[11](!1)
+ )), Ce(
s,
"uppercase",
/*name_uppercase*/
- a[4]
- ), Y(e, "class", "credit-two-column svelte-1t8lt48");
+ o[4]
+ ), U(e, "class", "credit-two-column svelte-1nrfbo6");
},
m(c, h) {
- lt(c, e, h), De(e, t), De(t, i), De(e, o), De(e, s), De(s, u), De(e, d);
+ it(c, e, h), pe(e, t), pe(t, l), pe(e, a), pe(e, s), pe(s, u), pe(e, d);
},
p(c, h) {
h & /*display_items*/
- 2048 && n !== (n = /*item*/
- c[19].title + "") && Lt(i, n), h & /*swap_font_sizes_on_two_column, name_style, title_style*/
- 1600 && l !== (l = /*swap_font_sizes_on_two_column*/
+ 8192 && n !== (n = /*item*/
+ c[22].title + "") && Pt(l, n), h & /*swap_font_sizes_on_two_column, name_style, title_style*/
+ 6208 && i !== (i = /*swap_font_sizes_on_two_column*/
c[6] ? (
/*name_style*/
- c[9](!1)
+ c[11](!1)
) : (
/*title_style*/
- c[10](!1)
- )) && Y(t, "style", l), h & /*title_uppercase*/
- 8 && ke(
+ c[12](!1)
+ )) && U(t, "style", i), h & /*title_uppercase*/
+ 8 && Ce(
t,
"uppercase",
/*title_uppercase*/
c[3]
), h & /*display_items*/
- 2048 && r !== (r = /*item*/
- c[19].name + "") && Lt(u, r), h & /*swap_font_sizes_on_two_column, title_style, name_style*/
- 1600 && _ !== (_ = /*swap_font_sizes_on_two_column*/
+ 8192 && r !== (r = /*item*/
+ c[22].name + "") && Pt(u, r), h & /*swap_font_sizes_on_two_column, title_style, name_style*/
+ 6208 && _ !== (_ = /*swap_font_sizes_on_two_column*/
c[6] ? (
/*title_style*/
- c[10](!1)
+ c[12](!1)
) : (
/*name_style*/
- c[9](!1)
- )) && Y(s, "style", _), h & /*name_uppercase*/
- 16 && ke(
+ c[11](!1)
+ )) && U(s, "style", _), h & /*name_uppercase*/
+ 16 && Ce(
s,
"uppercase",
/*name_uppercase*/
@@ -7656,923 +7714,1020 @@ function ws(a) {
);
},
d(c) {
- c && Q(e);
+ c && J(e);
}
};
}
-function ks(a) {
+function Ss(o) {
let e, t = (
/*item*/
- a[19].section_title + ""
- ), n, i;
+ o[22].section_title + ""
+ ), n, l;
return {
c() {
- e = Ke("div"), n = Pt(t), i = Ot(), this.h();
+ e = je("div"), n = Mt(t), l = Ft(), this.h();
},
- l(l) {
- e = We(l, "DIV", { class: !0, style: !0 });
- var o = Ye(e);
- n = Rt(o, t), o.forEach(Q), i = It(l), this.h();
+ l(i) {
+ e = Ne(i, "DIV", { class: !0, style: !0 });
+ var a = Qe(e);
+ n = Ot(a, t), a.forEach(J), l = kt(i), this.h();
},
h() {
- Y(e, "class", "section-title svelte-1t8lt48"), Y(
+ U(e, "class", "section-title svelte-1nrfbo6"), U(
e,
"style",
/*section_title_style*/
- a[8]
- ), ke(
+ o[10]
+ ), Ce(
e,
"uppercase",
/*section_title_uppercase*/
- a[5]
+ o[5]
);
},
- m(l, o) {
- lt(l, e, o), De(e, n), lt(l, i, o);
+ m(i, a) {
+ it(i, e, a), pe(e, n), it(i, l, a);
},
- p(l, o) {
- o & /*display_items*/
- 2048 && t !== (t = /*item*/
- l[19].section_title + "") && Lt(n, t), o & /*section_title_style*/
- 256 && Y(
+ p(i, a) {
+ a & /*display_items*/
+ 8192 && t !== (t = /*item*/
+ i[22].section_title + "") && Pt(n, t), a & /*section_title_style*/
+ 1024 && U(
e,
"style",
/*section_title_style*/
- l[8]
- ), o & /*section_title_uppercase*/
- 32 && ke(
+ i[10]
+ ), a & /*section_title_uppercase*/
+ 32 && Ce(
e,
"uppercase",
/*section_title_uppercase*/
- l[5]
+ i[5]
);
},
- d(l) {
- l && (Q(e), Q(i));
+ d(i) {
+ i && (J(e), J(l));
}
};
}
-function Hi(a) {
+function Ui(o) {
let e, t = (
/*item*/
- a[19].name + ""
- ), n, i;
+ o[22].name + ""
+ ), n, l;
return {
c() {
- e = Ke("p"), n = Pt(t), this.h();
+ e = je("p"), n = Mt(t), this.h();
},
- l(l) {
- e = We(l, "P", { style: !0, class: !0 });
- var o = Ye(e);
- n = Rt(o, t), o.forEach(Q), this.h();
+ l(i) {
+ e = Ne(i, "P", { style: !0, class: !0 });
+ var a = Qe(e);
+ n = Ot(a, t), a.forEach(J), this.h();
},
h() {
- Y(e, "style", i = /*name_style*/
- a[9](
+ U(e, "style", l = /*name_style*/
+ o[11](
/*item*/
- a[19].is_intro
- )), Y(e, "class", "svelte-1t8lt48"), ke(
+ o[22].is_intro
+ )), U(e, "class", "svelte-1nrfbo6"), Ce(
e,
"uppercase",
/*name_uppercase*/
- a[4] && !/*item*/
- a[19].is_intro
+ o[4] && !/*item*/
+ o[22].is_intro
);
},
- m(l, o) {
- lt(l, e, o), De(e, n);
+ m(i, a) {
+ it(i, e, a), pe(e, n);
},
- p(l, o) {
- o & /*display_items*/
- 2048 && t !== (t = /*item*/
- l[19].name + "") && Lt(n, t), o & /*name_style, display_items*/
- 2560 && i !== (i = /*name_style*/
- l[9](
+ p(i, a) {
+ a & /*display_items*/
+ 8192 && t !== (t = /*item*/
+ i[22].name + "") && Pt(n, t), a & /*name_style, display_items*/
+ 10240 && l !== (l = /*name_style*/
+ i[11](
/*item*/
- l[19].is_intro
- )) && Y(e, "style", i), o & /*name_uppercase, display_items*/
- 2064 && ke(
+ i[22].is_intro
+ )) && U(e, "style", l), a & /*name_uppercase, display_items*/
+ 8208 && Ce(
e,
"uppercase",
/*name_uppercase*/
- l[4] && !/*item*/
- l[19].is_intro
+ i[4] && !/*item*/
+ i[22].is_intro
);
},
- d(l) {
- l && Q(e);
+ d(i) {
+ i && J(e);
}
};
}
-function xi(a) {
+function Zi(o) {
let e;
- function t(l, o) {
+ function t(i, a) {
return (
/*item*/
- l[19].section_title ? ks : (
+ i[22].section_title ? Ss : (
/*layout_style*/
- l[2] === "two-column" && !/*item*/
- l[19].is_intro ? ws : ys
+ i[2] === "two-column" && !/*item*/
+ i[22].is_intro ? As : Es
)
);
}
- let n = t(a), i = n(a);
+ let n = t(o), l = n(o);
return {
c() {
- i.c(), e = Oi();
+ l.c(), e = Pi();
},
- l(l) {
- i.l(l), e = Oi();
+ l(i) {
+ l.l(i), e = Pi();
},
- m(l, o) {
- i.m(l, o), lt(l, e, o);
+ m(i, a) {
+ l.m(i, a), it(i, e, a);
},
- p(l, o) {
- n === (n = t(l)) && i ? i.p(l, o) : (i.d(1), i = n(l), i && (i.c(), i.m(e.parentNode, e)));
+ p(i, a) {
+ n === (n = t(i)) && l ? l.p(i, a) : (l.d(1), l = n(i), l && (l.c(), l.m(e.parentNode, e)));
},
- d(l) {
- l && Q(e), i.d(l);
+ d(i) {
+ i && J(e), l.d(i);
}
};
}
-function Fs(a) {
+function qs(o) {
let e, t = `${/*speed*/
- a[0]}s`, n = !/*reset*/
- a[7] && ji(a);
+ o[0]}s`, n = !/*reset*/
+ o[9] && Hi(o);
return {
c() {
- e = Ke("div"), n && n.c(), this.h();
+ e = je("div"), n && n.c(), this.h();
},
- l(i) {
- e = We(i, "DIV", { class: !0 });
- var l = Ye(e);
- n && n.l(l), l.forEach(Q), this.h();
+ l(l) {
+ e = Ne(l, "DIV", { class: !0 });
+ var i = Qe(e);
+ n && n.l(i), i.forEach(J), this.h();
},
h() {
- Y(e, "class", "wrapper svelte-1t8lt48"), on(e, "--animation-duration", t), on(
+ U(e, "class", "wrapper svelte-1nrfbo6"), at(e, "--animation-duration", t), at(
e,
"background",
/*background_color*/
- a[1] || "black"
+ o[1] || "black"
);
},
- m(i, l) {
- lt(i, e, l), n && n.m(e, null);
+ m(l, i) {
+ it(l, e, i), n && n.m(e, null);
},
- p(i, [l]) {
+ p(l, [i]) {
/*reset*/
- i[7] ? n && (n.d(1), n = null) : n ? n.p(i, l) : (n = ji(i), n.c(), n.m(e, null)), l & /*speed*/
+ l[9] ? n && (n.d(1), n = null) : n ? n.p(l, i) : (n = Hi(l), n.c(), n.m(e, null)), i & /*speed*/
1 && t !== (t = `${/*speed*/
- i[0]}s`) && on(e, "--animation-duration", t), l & /*background_color*/
- 2 && on(
+ l[0]}s`) && at(e, "--animation-duration", t), i & /*background_color*/
+ 2 && at(
e,
"background",
/*background_color*/
- i[1] || "black"
+ l[1] || "black"
);
},
- i: Mi,
- o: Mi,
- d(i) {
- i && Q(e), n && n.d();
+ i: Ni,
+ o: Ni,
+ d(l) {
+ l && J(e), n && n.d();
}
};
}
-function $s(a, e, t) {
- let n, i, l, o, { credits: s } = e, { speed: r } = e, { base_font_size: u = 1.5 } = e, { background_color: _ = null } = e, { title_color: d = null } = e, { name_color: c = null } = e, { intro_title: h = null } = e, { intro_subtitle: g = null } = e, { layout_style: p = "stacked" } = e, { title_uppercase: D = !1 } = e, { name_uppercase: k = !1 } = e, { section_title_uppercase: m = !0 } = e, { swap_font_sizes_on_two_column: f = !1 } = e, v = !1;
- function y() {
- t(7, v = !0), setTimeout(() => t(7, v = !1), 0);
- }
- return a.$$set = (b) => {
- "credits" in b && t(12, s = b.credits), "speed" in b && t(0, r = b.speed), "base_font_size" in b && t(13, u = b.base_font_size), "background_color" in b && t(1, _ = b.background_color), "title_color" in b && t(14, d = b.title_color), "name_color" in b && t(15, c = b.name_color), "intro_title" in b && t(16, h = b.intro_title), "intro_subtitle" in b && t(17, g = b.intro_subtitle), "layout_style" in b && t(2, p = b.layout_style), "title_uppercase" in b && t(3, D = b.title_uppercase), "name_uppercase" in b && t(4, k = b.name_uppercase), "section_title_uppercase" in b && t(5, m = b.section_title_uppercase), "swap_font_sizes_on_two_column" in b && t(6, f = b.swap_font_sizes_on_two_column);
- }, a.$$.update = () => {
- a.$$.dirty & /*intro_title, intro_subtitle, credits*/
- 200704 && t(11, n = (() => {
- const b = [];
- return (h || g) && b.push({
- title: h || "",
- name: g || "",
+function Bs(o, e, t) {
+ let n, l, i, a, { credits: s } = e, { speed: r } = e, { base_font_size: u = 1.5 } = e, { background_color: _ = null } = e, { title_color: d = null } = e, { scroll_section_title_color: c = null } = e, { name_color: h = null } = e, { intro_title: m = null } = e, { intro_subtitle: p = null } = e, { layout_style: b = "stacked" } = e, { title_uppercase: k = !1 } = e, { name_uppercase: g = !1 } = e, { section_title_uppercase: f = !0 } = e, { swap_font_sizes_on_two_column: v = !1 } = e, { scroll_logo_path: D = null } = e, { scroll_logo_height: w = "120px" } = e, F = !1;
+ function A() {
+ t(9, F = !0), setTimeout(() => t(9, F = !1), 0);
+ }
+ return o.$$set = (y) => {
+ "credits" in y && t(14, s = y.credits), "speed" in y && t(0, r = y.speed), "base_font_size" in y && t(15, u = y.base_font_size), "background_color" in y && t(1, _ = y.background_color), "title_color" in y && t(16, d = y.title_color), "scroll_section_title_color" in y && t(17, c = y.scroll_section_title_color), "name_color" in y && t(18, h = y.name_color), "intro_title" in y && t(19, m = y.intro_title), "intro_subtitle" in y && t(20, p = y.intro_subtitle), "layout_style" in y && t(2, b = y.layout_style), "title_uppercase" in y && t(3, k = y.title_uppercase), "name_uppercase" in y && t(4, g = y.name_uppercase), "section_title_uppercase" in y && t(5, f = y.section_title_uppercase), "swap_font_sizes_on_two_column" in y && t(6, v = y.swap_font_sizes_on_two_column), "scroll_logo_path" in y && t(7, D = y.scroll_logo_path), "scroll_logo_height" in y && t(8, w = y.scroll_logo_height);
+ }, o.$$.update = () => {
+ o.$$.dirty & /*intro_title, intro_subtitle, credits*/
+ 1589248 && t(13, n = (() => {
+ const y = [];
+ return (m || p) && y.push({
+ title: m || "",
+ name: p || "",
is_intro: !0
}), [
- ...b,
- ...s.map((F) => Object.assign(Object.assign({}, F), { is_intro: !1 }))
+ ...y,
+ ...s.map((T) => Object.assign(Object.assign({}, T), { is_intro: !1 }))
];
- })()), a.$$.dirty & /*title_color, base_font_size*/
- 24576 && t(10, i = (b) => `color: ${d || "white"}; font-size: ${b ? u * 1.5 : u}rem;`), a.$$.dirty & /*name_color, base_font_size*/
- 40960 && t(9, l = (b) => `color: ${c || "white"}; font-size: ${b ? u * 0.9 : u * 0.8}rem;`), a.$$.dirty & /*title_color, base_font_size*/
- 24576 && t(8, o = `color: ${d || "white"}; font-size: ${u * 1.2}rem;`), a.$$.dirty & /*credits, speed*/
- 4097 && y();
+ })()), o.$$.dirty & /*title_color, base_font_size*/
+ 98304 && t(12, l = (y) => `color: ${d || "white"}; font-size: ${y ? u * 1.5 : u}rem;`), o.$$.dirty & /*name_color, base_font_size*/
+ 294912 && t(11, i = (y) => `color: ${h || "white"}; font-size: ${y ? u * 0.9 : u * 0.8}rem;`), o.$$.dirty & /*scroll_section_title_color, title_color, base_font_size*/
+ 229376 && t(10, a = `color: ${c || d || "white"}; font-size: ${u * 1.2}rem;`), o.$$.dirty & /*credits, speed*/
+ 16385 && A();
}, [
r,
_,
- p,
- D,
+ b,
k,
- m,
+ g,
f,
v,
- o,
- l,
+ D,
+ w,
+ F,
+ a,
i,
+ l,
n,
s,
u,
d,
c,
h,
- g
+ m,
+ p
];
}
-class Cs extends gs {
+class Ts extends ks {
constructor(e) {
- super(), bs(this, e, $s, Fs, Ds, {
- credits: 12,
+ super(), $s(this, e, Bs, qs, Cs, {
+ credits: 14,
speed: 0,
- base_font_size: 13,
+ base_font_size: 15,
background_color: 1,
- title_color: 14,
- name_color: 15,
- intro_title: 16,
- intro_subtitle: 17,
+ title_color: 16,
+ scroll_section_title_color: 17,
+ name_color: 18,
+ intro_title: 19,
+ intro_subtitle: 20,
layout_style: 2,
title_uppercase: 3,
name_uppercase: 4,
section_title_uppercase: 5,
- swap_font_sizes_on_two_column: 6
+ swap_font_sizes_on_two_column: 6,
+ scroll_logo_path: 7,
+ scroll_logo_height: 8
});
}
}
const {
- SvelteComponent: Es,
- append_hydration: U,
- attr: j,
- binding_callbacks: As,
- children: he,
- claim_element: pe,
- claim_space: Qe,
- claim_text: Mt,
- destroy_each: Ss,
- detach: X,
- element: me,
- empty: Vi,
- ensure_array_like: Ui,
- init: Bs,
- insert_hydration: ct,
- noop: Gi,
- safe_not_equal: qs,
- set_data: Nt,
- set_style: rt,
- space: Je,
- text: jt,
- toggle_class: Fe
-} = window.__gradio__svelte__internal, { onMount: Ts, onDestroy: zs } = window.__gradio__svelte__internal;
-function Zi(a, e, t) {
- const n = a.slice();
- return n[24] = e[t], n;
-}
-function Is(a) {
+ SvelteComponent: zs,
+ append_hydration: Z,
+ attr: P,
+ binding_callbacks: Is,
+ children: me,
+ claim_element: ce,
+ claim_space: We,
+ claim_text: Nt,
+ destroy_each: Rs,
+ detach: W,
+ element: de,
+ empty: xi,
+ ensure_array_like: Xi,
+ init: Ls,
+ insert_hydration: st,
+ noop: Yi,
+ safe_not_equal: Os,
+ set_data: jt,
+ set_style: et,
+ space: Ke,
+ src_url_equal: Wi,
+ text: Vt,
+ toggle_class: Ee
+} = window.__gradio__svelte__internal, { onMount: Ps, onDestroy: Ms } = window.__gradio__svelte__internal;
+function Ki(o, e, t) {
+ const n = o.slice();
+ return n[26] = e[t], n;
+}
+function Qi(o) {
+ let e, t, n;
+ return {
+ c() {
+ e = de("div"), t = de("img"), this.h();
+ },
+ l(l) {
+ e = ce(l, "DIV", { class: !0 });
+ var i = me(e);
+ t = ce(i, "IMG", { src: !0, alt: !0, class: !0 }), i.forEach(W), this.h();
+ },
+ h() {
+ Wi(t.src, n = /*scroll_logo_path*/
+ o[7].url) || P(t, "src", n), P(t, "alt", "Scrolling Logo"), P(t, "class", "svelte-1hia40q"), et(
+ t,
+ "height",
+ /*scroll_logo_height*/
+ o[8]
+ ), P(e, "class", "scroll-logo-container svelte-1hia40q");
+ },
+ m(l, i) {
+ st(l, e, i), Z(e, t);
+ },
+ p(l, i) {
+ i & /*scroll_logo_path*/
+ 128 && !Wi(t.src, n = /*scroll_logo_path*/
+ l[7].url) && P(t, "src", n), i & /*scroll_logo_height*/
+ 256 && et(
+ t,
+ "height",
+ /*scroll_logo_height*/
+ l[8]
+ );
+ },
+ d(l) {
+ l && W(e);
+ }
+ };
+}
+function Ns(o) {
let e, t, n = (
/*item*/
- a[24].title + ""
- ), i, l, o, s, r = (
+ o[26].title + ""
+ ), l, i, a, s, r = (
/*item*/
- a[24].name && Xi(a)
+ o[26].name && Ji(o)
);
return {
c() {
- e = me("div"), t = me("h2"), i = jt(n), o = Je(), r && r.c(), s = Je(), this.h();
+ e = de("div"), t = de("h2"), l = Vt(n), a = Ke(), r && r.c(), s = Ke(), this.h();
},
l(u) {
- e = pe(u, "DIV", { class: !0 });
- var _ = he(e);
- t = pe(_, "H2", { style: !0, class: !0 });
- var d = he(t);
- i = Mt(d, n), d.forEach(X), o = Qe(_), r && r.l(_), s = Qe(_), _.forEach(X), this.h();
+ e = ce(u, "DIV", { class: !0 });
+ var _ = me(e);
+ t = ce(_, "H2", { style: !0, class: !0 });
+ var d = me(t);
+ l = Nt(d, n), d.forEach(W), a = We(_), r && r.l(_), s = We(_), _.forEach(W), this.h();
},
h() {
- j(t, "style", l = /*title_style*/
- a[11](
+ P(t, "style", i = /*title_style*/
+ o[13](
/*item*/
- a[24].is_intro
- )), j(t, "class", "svelte-upsott"), Fe(
+ o[26].is_intro
+ )), P(t, "class", "svelte-1hia40q"), Ee(
t,
"uppercase",
/*title_uppercase*/
- a[3] && !/*item*/
- a[24].is_intro
- ), j(e, "class", "credit svelte-upsott"), Fe(
+ o[3] && !/*item*/
+ o[26].is_intro
+ ), P(e, "class", "credit svelte-1hia40q"), Ee(
e,
"intro-block",
/*item*/
- a[24].is_intro
+ o[26].is_intro
);
},
m(u, _) {
- ct(u, e, _), U(e, t), U(t, i), U(e, o), r && r.m(e, null), U(e, s);
+ st(u, e, _), Z(e, t), Z(t, l), Z(e, a), r && r.m(e, null), Z(e, s);
},
p(u, _) {
_ & /*display_items*/
- 256 && n !== (n = /*item*/
- u[24].title + "") && Nt(i, n), _ & /*title_style, display_items*/
- 2304 && l !== (l = /*title_style*/
- u[11](
+ 1024 && n !== (n = /*item*/
+ u[26].title + "") && jt(l, n), _ & /*title_style, display_items*/
+ 9216 && i !== (i = /*title_style*/
+ u[13](
/*item*/
- u[24].is_intro
- )) && j(t, "style", l), _ & /*title_uppercase, display_items*/
- 264 && Fe(
+ u[26].is_intro
+ )) && P(t, "style", i), _ & /*title_uppercase, display_items*/
+ 1032 && Ee(
t,
"uppercase",
/*title_uppercase*/
u[3] && !/*item*/
- u[24].is_intro
+ u[26].is_intro
), /*item*/
- u[24].name ? r ? r.p(u, _) : (r = Xi(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/
- 256 && Fe(
+ u[26].name ? r ? r.p(u, _) : (r = Ji(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/
+ 1024 && Ee(
e,
"intro-block",
/*item*/
- u[24].is_intro
+ u[26].is_intro
);
},
d(u) {
- u && X(e), r && r.d();
+ u && W(e), r && r.d();
}
};
}
-function Rs(a) {
+function js(o) {
let e, t, n = (
/*item*/
- a[24].title + ""
- ), i, l, o, s, r, u, _ = (
+ o[26].title + ""
+ ), l, i, a, s, r, u, _ = (
/*item*/
- a[24].name + ""
+ o[26].name + ""
), d, c, h;
return {
c() {
- e = me("div"), t = me("span"), i = jt(n), o = Je(), s = me("span"), r = Je(), u = me("span"), d = jt(_), h = Je(), this.h();
+ e = de("div"), t = de("span"), l = Vt(n), a = Ke(), s = de("span"), r = Ke(), u = de("span"), d = Vt(_), h = Ke(), this.h();
},
- l(g) {
- e = pe(g, "DIV", { class: !0 });
- var p = he(e);
- t = pe(p, "SPAN", { style: !0, class: !0 });
- var D = he(t);
- i = Mt(D, n), D.forEach(X), o = Qe(p), s = pe(p, "SPAN", { class: !0 }), he(s).forEach(X), r = Qe(p), u = pe(p, "SPAN", { style: !0, class: !0 });
- var k = he(u);
- d = Mt(k, _), k.forEach(X), h = Qe(p), p.forEach(X), this.h();
+ l(m) {
+ e = ce(m, "DIV", { class: !0 });
+ var p = me(e);
+ t = ce(p, "SPAN", { style: !0, class: !0 });
+ var b = me(t);
+ l = Nt(b, n), b.forEach(W), a = We(p), s = ce(p, "SPAN", { class: !0 }), me(s).forEach(W), r = We(p), u = ce(p, "SPAN", { style: !0, class: !0 });
+ var k = me(u);
+ d = Nt(k, _), k.forEach(W), h = We(p), p.forEach(W), this.h();
},
h() {
- j(t, "style", l = /*swap_font_sizes_on_two_column*/
- a[6] ? (
+ P(t, "style", i = /*swap_font_sizes_on_two_column*/
+ o[6] ? (
/*name_style*/
- a[10](!1)
+ o[12](!1)
) : (
/*title_style*/
- a[11](!1)
- )), j(t, "class", "svelte-upsott"), Fe(
+ o[13](!1)
+ )), P(t, "class", "svelte-1hia40q"), Ee(
t,
"uppercase",
/*title_uppercase*/
- a[3]
- ), j(s, "class", "spacer svelte-upsott"), j(u, "style", c = /*swap_font_sizes_on_two_column*/
- a[6] ? (
+ o[3]
+ ), P(s, "class", "spacer svelte-1hia40q"), P(u, "style", c = /*swap_font_sizes_on_two_column*/
+ o[6] ? (
/*title_style*/
- a[11](!1)
+ o[13](!1)
) : (
/*name_style*/
- a[10](!1)
- )), j(u, "class", "svelte-upsott"), Fe(
+ o[12](!1)
+ )), P(u, "class", "svelte-1hia40q"), Ee(
u,
"uppercase",
/*name_uppercase*/
- a[4]
- ), j(e, "class", "credit-two-column svelte-upsott");
+ o[4]
+ ), P(e, "class", "credit-two-column svelte-1hia40q");
},
- m(g, p) {
- ct(g, e, p), U(e, t), U(t, i), U(e, o), U(e, s), U(e, r), U(e, u), U(u, d), U(e, h);
+ m(m, p) {
+ st(m, e, p), Z(e, t), Z(t, l), Z(e, a), Z(e, s), Z(e, r), Z(e, u), Z(u, d), Z(e, h);
},
- p(g, p) {
+ p(m, p) {
p & /*display_items*/
- 256 && n !== (n = /*item*/
- g[24].title + "") && Nt(i, n), p & /*swap_font_sizes_on_two_column, name_style, title_style*/
- 3136 && l !== (l = /*swap_font_sizes_on_two_column*/
- g[6] ? (
+ 1024 && n !== (n = /*item*/
+ m[26].title + "") && jt(l, n), p & /*swap_font_sizes_on_two_column, name_style, title_style*/
+ 12352 && i !== (i = /*swap_font_sizes_on_two_column*/
+ m[6] ? (
/*name_style*/
- g[10](!1)
+ m[12](!1)
) : (
/*title_style*/
- g[11](!1)
- )) && j(t, "style", l), p & /*title_uppercase*/
- 8 && Fe(
+ m[13](!1)
+ )) && P(t, "style", i), p & /*title_uppercase*/
+ 8 && Ee(
t,
"uppercase",
/*title_uppercase*/
- g[3]
+ m[3]
), p & /*display_items*/
- 256 && _ !== (_ = /*item*/
- g[24].name + "") && Nt(d, _), p & /*swap_font_sizes_on_two_column, title_style, name_style*/
- 3136 && c !== (c = /*swap_font_sizes_on_two_column*/
- g[6] ? (
+ 1024 && _ !== (_ = /*item*/
+ m[26].name + "") && jt(d, _), p & /*swap_font_sizes_on_two_column, title_style, name_style*/
+ 12352 && c !== (c = /*swap_font_sizes_on_two_column*/
+ m[6] ? (
/*title_style*/
- g[11](!1)
+ m[13](!1)
) : (
/*name_style*/
- g[10](!1)
- )) && j(u, "style", c), p & /*name_uppercase*/
- 16 && Fe(
+ m[12](!1)
+ )) && P(u, "style", c), p & /*name_uppercase*/
+ 16 && Ee(
u,
"uppercase",
/*name_uppercase*/
- g[4]
+ m[4]
);
},
- d(g) {
- g && X(e);
+ d(m) {
+ m && W(e);
}
};
}
-function Ls(a) {
+function Vs(o) {
let e, t = (
/*item*/
- a[24].section_title + ""
- ), n, i;
+ o[26].section_title + ""
+ ), n, l;
return {
c() {
- e = me("div"), n = jt(t), i = Je(), this.h();
+ e = de("div"), n = Vt(t), l = Ke(), this.h();
},
- l(l) {
- e = pe(l, "DIV", { class: !0, style: !0 });
- var o = he(e);
- n = Mt(o, t), o.forEach(X), i = Qe(l), this.h();
+ l(i) {
+ e = ce(i, "DIV", { class: !0, style: !0 });
+ var a = me(e);
+ n = Nt(a, t), a.forEach(W), l = We(i), this.h();
},
h() {
- j(e, "class", "section-title svelte-upsott"), j(
+ P(e, "class", "section-title svelte-1hia40q"), P(
e,
"style",
/*section_title_style*/
- a[9]
- ), Fe(
+ o[11]
+ ), Ee(
e,
"uppercase",
/*section_title_uppercase*/
- a[5]
+ o[5]
);
},
- m(l, o) {
- ct(l, e, o), U(e, n), ct(l, i, o);
+ m(i, a) {
+ st(i, e, a), Z(e, n), st(i, l, a);
},
- p(l, o) {
- o & /*display_items*/
- 256 && t !== (t = /*item*/
- l[24].section_title + "") && Nt(n, t), o & /*section_title_style*/
- 512 && j(
+ p(i, a) {
+ a & /*display_items*/
+ 1024 && t !== (t = /*item*/
+ i[26].section_title + "") && jt(n, t), a & /*section_title_style*/
+ 2048 && P(
e,
"style",
/*section_title_style*/
- l[9]
- ), o & /*section_title_uppercase*/
- 32 && Fe(
+ i[11]
+ ), a & /*section_title_uppercase*/
+ 32 && Ee(
e,
"uppercase",
/*section_title_uppercase*/
- l[5]
+ i[5]
);
},
- d(l) {
- l && (X(e), X(i));
+ d(i) {
+ i && (W(e), W(l));
}
};
}
-function Xi(a) {
+function Ji(o) {
let e, t = (
/*item*/
- a[24].name + ""
- ), n, i;
+ o[26].name + ""
+ ), n, l;
return {
c() {
- e = me("p"), n = jt(t), this.h();
+ e = de("p"), n = Vt(t), this.h();
},
- l(l) {
- e = pe(l, "P", { style: !0, class: !0 });
- var o = he(e);
- n = Mt(o, t), o.forEach(X), this.h();
+ l(i) {
+ e = ce(i, "P", { style: !0, class: !0 });
+ var a = me(e);
+ n = Nt(a, t), a.forEach(W), this.h();
},
h() {
- j(e, "style", i = /*name_style*/
- a[10](
+ P(e, "style", l = /*name_style*/
+ o[12](
/*item*/
- a[24].is_intro
- )), j(e, "class", "svelte-upsott"), Fe(
+ o[26].is_intro
+ )), P(e, "class", "svelte-1hia40q"), Ee(
e,
"uppercase",
/*name_uppercase*/
- a[4] && !/*item*/
- a[24].is_intro
+ o[4] && !/*item*/
+ o[26].is_intro
);
},
- m(l, o) {
- ct(l, e, o), U(e, n);
+ m(i, a) {
+ st(i, e, a), Z(e, n);
},
- p(l, o) {
- o & /*display_items*/
- 256 && t !== (t = /*item*/
- l[24].name + "") && Nt(n, t), o & /*name_style, display_items*/
- 1280 && i !== (i = /*name_style*/
- l[10](
+ p(i, a) {
+ a & /*display_items*/
+ 1024 && t !== (t = /*item*/
+ i[26].name + "") && jt(n, t), a & /*name_style, display_items*/
+ 5120 && l !== (l = /*name_style*/
+ i[12](
/*item*/
- l[24].is_intro
- )) && j(e, "style", i), o & /*name_uppercase, display_items*/
- 272 && Fe(
+ i[26].is_intro
+ )) && P(e, "style", l), a & /*name_uppercase, display_items*/
+ 1040 && Ee(
e,
"uppercase",
/*name_uppercase*/
- l[4] && !/*item*/
- l[24].is_intro
+ i[4] && !/*item*/
+ i[26].is_intro
);
},
- d(l) {
- l && X(e);
+ d(i) {
+ i && W(e);
}
};
}
-function Yi(a) {
+function el(o) {
let e;
- function t(l, o) {
+ function t(i, a) {
return (
/*item*/
- l[24].section_title ? Ls : (
+ i[26].section_title ? Vs : (
/*layout_style*/
- l[2] === "two-column" && !/*item*/
- l[24].is_intro ? Rs : Is
+ i[2] === "two-column" && !/*item*/
+ i[26].is_intro ? js : Ns
)
);
}
- let n = t(a), i = n(a);
+ let n = t(o), l = n(o);
return {
c() {
- i.c(), e = Vi();
+ l.c(), e = xi();
},
- l(l) {
- i.l(l), e = Vi();
+ l(i) {
+ l.l(i), e = xi();
},
- m(l, o) {
- i.m(l, o), ct(l, e, o);
+ m(i, a) {
+ l.m(i, a), st(i, e, a);
},
- p(l, o) {
- n === (n = t(l)) && i ? i.p(l, o) : (i.d(1), i = n(l), i && (i.c(), i.m(e.parentNode, e)));
+ p(i, a) {
+ n === (n = t(i)) && l ? l.p(i, a) : (l.d(1), l = n(i), l && (l.c(), l.m(e.parentNode, e)));
},
- d(l) {
- l && X(e), i.d(l);
+ d(i) {
+ i && W(e), l.d(i);
}
};
}
-function Os(a) {
- let e, t, n, i, l, o, s, r, u = Ui(
+function Hs(o) {
+ var h;
+ let e, t, n, l, i, a, s, r, u, _ = (
+ /*scroll_logo_path*/
+ ((h = o[7]) == null ? void 0 : h.url) && Qi(o)
+ ), d = Xi(
/*display_items*/
- a[8]
- ), _ = [];
- for (let d = 0; d < u.length; d += 1)
- _[d] = Yi(Zi(a, u, d));
+ o[10]
+ ), c = [];
+ for (let m = 0; m < d.length; m += 1)
+ c[m] = el(Ki(o, d, m));
return {
c() {
- e = me("div"), t = me("div"), n = Je(), i = me("div"), l = Je(), o = me("div"), s = Je(), r = me("div");
- for (let d = 0; d < _.length; d += 1)
- _[d].c();
+ e = de("div"), t = de("div"), n = Ke(), l = de("div"), i = Ke(), a = de("div"), s = Ke(), r = de("div"), _ && _.c(), u = Ke();
+ for (let m = 0; m < c.length; m += 1)
+ c[m].c();
this.h();
},
- l(d) {
- e = pe(d, "DIV", { class: !0 });
- var c = he(e);
- t = pe(c, "DIV", { class: !0, style: !0 }), he(t).forEach(X), n = Qe(c), i = pe(c, "DIV", { class: !0, style: !0 }), he(i).forEach(X), l = Qe(c), o = pe(c, "DIV", { class: !0, style: !0 }), he(o).forEach(X), s = Qe(c), r = pe(c, "DIV", { class: !0, style: !0 });
- var h = he(r);
- for (let g = 0; g < _.length; g += 1)
- _[g].l(h);
- h.forEach(X), c.forEach(X), this.h();
+ l(m) {
+ e = ce(m, "DIV", { class: !0 });
+ var p = me(e);
+ t = ce(p, "DIV", { class: !0, style: !0 }), me(t).forEach(W), n = We(p), l = ce(p, "DIV", { class: !0, style: !0 }), me(l).forEach(W), i = We(p), a = ce(p, "DIV", { class: !0, style: !0 }), me(a).forEach(W), s = We(p), r = ce(p, "DIV", { class: !0, style: !0 });
+ var b = me(r);
+ _ && _.l(b), u = We(b);
+ for (let k = 0; k < c.length; k += 1)
+ c[k].l(b);
+ b.forEach(W), p.forEach(W), this.h();
},
h() {
- j(t, "class", "stars small svelte-upsott"), rt(
+ P(t, "class", "stars small svelte-1hia40q"), et(
t,
"box-shadow",
/*small_stars*/
- a[12]
- ), j(i, "class", "stars medium svelte-upsott"), rt(
- i,
+ o[14]
+ ), P(l, "class", "stars medium svelte-1hia40q"), et(
+ l,
"box-shadow",
/*medium_stars*/
- a[13]
- ), j(o, "class", "stars large svelte-upsott"), rt(
- o,
+ o[15]
+ ), P(a, "class", "stars large svelte-1hia40q"), et(
+ a,
"box-shadow",
/*large_stars*/
- a[14]
- ), j(r, "class", "crawl svelte-upsott"), rt(
+ o[16]
+ ), P(r, "class", "crawl svelte-1hia40q"), et(
r,
"--animation-duration",
/*speed*/
- a[0] + "s"
- ), j(e, "class", "viewport svelte-upsott"), rt(
+ o[0] + "s"
+ ), P(e, "class", "viewport svelte-1hia40q"), et(
e,
"background",
/*background_color*/
- a[1] || "black"
+ o[1] || "black"
);
},
- m(d, c) {
- ct(d, e, c), U(e, t), U(e, n), U(e, i), U(e, l), U(e, o), U(e, s), U(e, r);
- for (let h = 0; h < _.length; h += 1)
- _[h] && _[h].m(r, null);
- a[21](r);
- },
- p(d, [c]) {
- if (c & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/
- 3964) {
- u = Ui(
+ m(m, p) {
+ st(m, e, p), Z(e, t), Z(e, n), Z(e, l), Z(e, i), Z(e, a), Z(e, s), Z(e, r), _ && _.m(r, null), Z(r, u);
+ for (let b = 0; b < c.length; b += 1)
+ c[b] && c[b].m(r, null);
+ o[23](r);
+ },
+ p(m, [p]) {
+ var b;
+ if (/*scroll_logo_path*/
+ (b = m[7]) != null && b.url ? _ ? _.p(m, p) : (_ = Qi(m), _.c(), _.m(r, u)) : _ && (_.d(1), _ = null), p & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/
+ 15484) {
+ d = Xi(
/*display_items*/
- d[8]
+ m[10]
);
- let h;
- for (h = 0; h < u.length; h += 1) {
- const g = Zi(d, u, h);
- _[h] ? _[h].p(g, c) : (_[h] = Yi(g), _[h].c(), _[h].m(r, null));
+ let k;
+ for (k = 0; k < d.length; k += 1) {
+ const g = Ki(m, d, k);
+ c[k] ? c[k].p(g, p) : (c[k] = el(g), c[k].c(), c[k].m(r, null));
}
- for (; h < _.length; h += 1)
- _[h].d(1);
- _.length = u.length;
+ for (; k < c.length; k += 1)
+ c[k].d(1);
+ c.length = d.length;
}
- c & /*speed*/
- 1 && rt(
+ p & /*speed*/
+ 1 && et(
r,
"--animation-duration",
/*speed*/
- d[0] + "s"
- ), c & /*background_color*/
- 2 && rt(
+ m[0] + "s"
+ ), p & /*background_color*/
+ 2 && et(
e,
"background",
/*background_color*/
- d[1] || "black"
+ m[1] || "black"
);
},
- i: Gi,
- o: Gi,
- d(d) {
- d && X(e), Ss(_, d), a[21](null);
+ i: Yi,
+ o: Yi,
+ d(m) {
+ m && W(e), _ && _.d(), Rs(c, m), o[23](null);
}
};
}
-function Ps(a, e, t) {
- let n, i, l, o, { credits: s } = e, { speed: r = 40 } = e, { base_font_size: u = 1.5 } = e, { background_color: _ = null } = e, { title_color: d = null } = e, { name_color: c = null } = e, { intro_title: h = null } = e, { intro_subtitle: g = null } = e, { layout_style: p = "stacked" } = e, { title_uppercase: D = !1 } = e, { name_uppercase: k = !1 } = e, { section_title_uppercase: m = !0 } = e, { swap_font_sizes_on_two_column: f = !1 } = e, v;
- function y() {
- v && (t(7, v.style.animation = "none", v), v.offsetHeight, t(7, v.style.animation = "", v));
+function Gs(o, e, t) {
+ let n, l, i, a, { credits: s } = e, { speed: r = 40 } = e, { base_font_size: u = 1.5 } = e, { background_color: _ = null } = e, { title_color: d = null } = e, { name_color: c = null } = e, { intro_title: h = null } = e, { intro_subtitle: m = null } = e, { layout_style: p = "stacked" } = e, { title_uppercase: b = !1 } = e, { name_uppercase: k = !1 } = e, { section_title_uppercase: g = !0 } = e, { swap_font_sizes_on_two_column: f = !1 } = e, { scroll_logo_path: v = null } = e, { scroll_logo_height: D = "120px" } = e, w;
+ function F() {
+ w && (t(9, w.style.animation = "none", w), w.offsetHeight, t(9, w.style.animation = "", w));
}
- Ts(y), zs(() => {
- t(7, v = null);
+ Ps(F), Ms(() => {
+ t(9, w = null);
});
- const b = (w, $) => Array.from({ length: w }, () => `${Math.random() * 2e3}px ${Math.random() * 2e3}px ${$} white`).join(", "), F = b(200, "1px"), A = b(100, "2px"), E = b(50, "3px");
- function q(w) {
- As[w ? "unshift" : "push"](() => {
- v = w, t(7, v);
+ const A = (B, $) => Array.from({ length: B }, () => `${Math.random() * 2e3}px ${Math.random() * 2e3}px ${$} white`).join(", "), y = A(200, "1px"), T = A(100, "2px"), E = A(50, "3px");
+ function L(B) {
+ Is[B ? "unshift" : "push"](() => {
+ w = B, t(9, w);
});
}
- return a.$$set = (w) => {
- "credits" in w && t(15, s = w.credits), "speed" in w && t(0, r = w.speed), "base_font_size" in w && t(16, u = w.base_font_size), "background_color" in w && t(1, _ = w.background_color), "title_color" in w && t(17, d = w.title_color), "name_color" in w && t(18, c = w.name_color), "intro_title" in w && t(19, h = w.intro_title), "intro_subtitle" in w && t(20, g = w.intro_subtitle), "layout_style" in w && t(2, p = w.layout_style), "title_uppercase" in w && t(3, D = w.title_uppercase), "name_uppercase" in w && t(4, k = w.name_uppercase), "section_title_uppercase" in w && t(5, m = w.section_title_uppercase), "swap_font_sizes_on_two_column" in w && t(6, f = w.swap_font_sizes_on_two_column);
- }, a.$$.update = () => {
- a.$$.dirty & /*title_color, base_font_size*/
- 196608 && t(11, n = (w) => `color: ${d || "#feda4a"}; font-size: ${w ? u * 1.5 : u}rem;`), a.$$.dirty & /*name_color, base_font_size*/
- 327680 && t(10, i = (w) => `color: ${c || "#feda4a"}; font-size: ${w ? u * 0.9 : u * 0.7}rem;`), a.$$.dirty & /*title_color, base_font_size*/
- 196608 && t(9, l = `color: ${d || "#feda4a"}; font-size: ${u * 1.2}rem;`), a.$$.dirty & /*intro_title, intro_subtitle, credits*/
- 1605632 && t(8, o = (() => {
- const w = [];
- return (h || g) && w.push({
+ return o.$$set = (B) => {
+ "credits" in B && t(17, s = B.credits), "speed" in B && t(0, r = B.speed), "base_font_size" in B && t(18, u = B.base_font_size), "background_color" in B && t(1, _ = B.background_color), "title_color" in B && t(19, d = B.title_color), "name_color" in B && t(20, c = B.name_color), "intro_title" in B && t(21, h = B.intro_title), "intro_subtitle" in B && t(22, m = B.intro_subtitle), "layout_style" in B && t(2, p = B.layout_style), "title_uppercase" in B && t(3, b = B.title_uppercase), "name_uppercase" in B && t(4, k = B.name_uppercase), "section_title_uppercase" in B && t(5, g = B.section_title_uppercase), "swap_font_sizes_on_two_column" in B && t(6, f = B.swap_font_sizes_on_two_column), "scroll_logo_path" in B && t(7, v = B.scroll_logo_path), "scroll_logo_height" in B && t(8, D = B.scroll_logo_height);
+ }, o.$$.update = () => {
+ o.$$.dirty & /*title_color, base_font_size*/
+ 786432 && t(13, n = (B) => `color: ${d || "#feda4a"}; font-size: ${B ? u * 1.5 : u}rem;`), o.$$.dirty & /*name_color, base_font_size*/
+ 1310720 && t(12, l = (B) => `color: ${c || "#feda4a"}; font-size: ${B ? u * 0.9 : u * 0.7}rem;`), o.$$.dirty & /*title_color, base_font_size*/
+ 786432 && t(11, i = `color: ${d || "#feda4a"}; font-size: ${u * 1.2}rem;`), o.$$.dirty & /*intro_title, intro_subtitle, credits*/
+ 6422528 && t(10, a = (() => {
+ const B = [];
+ return (h || m) && B.push({
title: h || "",
- name: g || "",
+ name: m || "",
is_intro: !0
}), [
- ...w,
+ ...B,
...s.map(($) => Object.assign(Object.assign({}, $), { is_intro: !1 }))
];
- })()), a.$$.dirty & /*credits, speed, layout_style*/
- 32773 && y();
+ })()), o.$$.dirty & /*credits, speed, layout_style*/
+ 131077 && F();
}, [
r,
_,
p,
- D,
+ b,
k,
- m,
+ g,
f,
v,
- o,
- l,
+ D,
+ w,
+ a,
i,
+ l,
n,
- F,
- A,
+ y,
+ T,
E,
s,
u,
d,
c,
h,
- g,
- q
+ m,
+ L
];
}
-class Ms extends Es {
+class Us extends zs {
constructor(e) {
- super(), Bs(this, e, Ps, Os, qs, {
- credits: 15,
+ super(), Ls(this, e, Gs, Hs, Os, {
+ credits: 17,
speed: 0,
- base_font_size: 16,
+ base_font_size: 18,
background_color: 1,
- title_color: 17,
- name_color: 18,
- intro_title: 19,
- intro_subtitle: 20,
+ title_color: 19,
+ name_color: 20,
+ intro_title: 21,
+ intro_subtitle: 22,
layout_style: 2,
title_uppercase: 3,
name_uppercase: 4,
section_title_uppercase: 5,
- swap_font_sizes_on_two_column: 6
+ swap_font_sizes_on_two_column: 6,
+ scroll_logo_path: 7,
+ scroll_logo_height: 8
});
}
}
const {
- SvelteComponent: Ns,
- append_hydration: ie,
- attr: G,
- binding_callbacks: Wi,
- children: Le,
- claim_element: Oe,
- claim_space: Dt,
+ SvelteComponent: Zs,
+ append_hydration: te,
+ attr: j,
+ binding_callbacks: tl,
+ children: Ae,
+ claim_element: De,
+ claim_space: ht,
claim_text: Ht,
- destroy_each: js,
- detach: K,
- element: Pe,
- empty: Ki,
- ensure_array_like: Qi,
- init: Hs,
- insert_hydration: dt,
- noop: Ji,
- safe_not_equal: xs,
- set_data: xt,
- set_style: el,
- space: yt,
- text: Vt,
- toggle_class: $e
-} = window.__gradio__svelte__internal, { onMount: Vs, onDestroy: Us } = window.__gradio__svelte__internal;
-function tl(a, e, t) {
- const n = a.slice();
- return n[25] = e[t], n;
+ destroy_each: xs,
+ detach: Q,
+ element: ye,
+ empty: nl,
+ ensure_array_like: il,
+ init: Xs,
+ insert_hydration: rt,
+ noop: ll,
+ safe_not_equal: Ys,
+ set_data: Gt,
+ set_style: hn,
+ space: pt,
+ src_url_equal: ol,
+ text: Ut,
+ toggle_class: Se
+} = window.__gradio__svelte__internal, { onMount: Ws, onDestroy: Ks } = window.__gradio__svelte__internal;
+function al(o, e, t) {
+ const n = o.slice();
+ return n[27] = e[t], n;
+}
+function sl(o) {
+ let e, t, n;
+ return {
+ c() {
+ e = ye("div"), t = ye("img"), this.h();
+ },
+ l(l) {
+ e = De(l, "DIV", { class: !0 });
+ var i = Ae(e);
+ t = De(i, "IMG", { src: !0, alt: !0, class: !0 }), i.forEach(Q), this.h();
+ },
+ h() {
+ ol(t.src, n = /*scroll_logo_path*/
+ o[6].url) || j(t, "src", n), j(t, "alt", "Scrolling Logo"), j(t, "class", "svelte-1bt5wt2"), hn(
+ t,
+ "height",
+ /*scroll_logo_height*/
+ o[7]
+ ), j(e, "class", "scroll-logo-container svelte-1bt5wt2");
+ },
+ m(l, i) {
+ rt(l, e, i), te(e, t);
+ },
+ p(l, i) {
+ i & /*scroll_logo_path*/
+ 64 && !ol(t.src, n = /*scroll_logo_path*/
+ l[6].url) && j(t, "src", n), i & /*scroll_logo_height*/
+ 128 && hn(
+ t,
+ "height",
+ /*scroll_logo_height*/
+ l[7]
+ );
+ },
+ d(l) {
+ l && Q(e);
+ }
+ };
}
-function Gs(a) {
+function Qs(o) {
let e, t, n = (
/*item*/
- a[25].title + ""
- ), i, l, o, s, r = (
+ o[27].title + ""
+ ), l, i, a, s, r = (
/*item*/
- a[25].name && nl(a)
+ o[27].name && rl(o)
);
return {
c() {
- e = Pe("div"), t = Pe("div"), i = Vt(n), o = yt(), r && r.c(), s = yt(), this.h();
+ e = ye("div"), t = ye("div"), l = Ut(n), a = pt(), r && r.c(), s = pt(), this.h();
},
l(u) {
- e = Oe(u, "DIV", { class: !0 });
- var _ = Le(e);
- t = Oe(_, "DIV", { style: !0, class: !0 });
- var d = Le(t);
- i = Ht(d, n), d.forEach(K), o = Dt(_), r && r.l(_), s = Dt(_), _.forEach(K), this.h();
+ e = De(u, "DIV", { class: !0 });
+ var _ = Ae(e);
+ t = De(_, "DIV", { style: !0, class: !0 });
+ var d = Ae(t);
+ l = Ht(d, n), d.forEach(Q), a = ht(_), r && r.l(_), s = ht(_), _.forEach(Q), this.h();
},
h() {
- G(t, "style", l = /*title_style*/
- a[10](
+ j(t, "style", i = /*title_style*/
+ o[12](
/*item*/
- a[25].is_intro
- )), G(t, "class", "title svelte-1851m15"), $e(
+ o[27].is_intro
+ )), j(t, "class", "title svelte-1bt5wt2"), Se(
t,
"uppercase",
/*title_uppercase*/
- a[2] && !/*item*/
- a[25].is_intro
- ), G(e, "class", "credit-block svelte-1851m15"), $e(
+ o[2] && !/*item*/
+ o[27].is_intro
+ ), j(e, "class", "credit-block svelte-1bt5wt2"), Se(
e,
"intro-block",
/*item*/
- a[25].is_intro
+ o[27].is_intro
);
},
m(u, _) {
- dt(u, e, _), ie(e, t), ie(t, i), ie(e, o), r && r.m(e, null), ie(e, s);
+ rt(u, e, _), te(e, t), te(t, l), te(e, a), r && r.m(e, null), te(e, s);
},
p(u, _) {
_ & /*display_items*/
- 2048 && n !== (n = /*item*/
- u[25].title + "") && xt(i, n), _ & /*title_style, display_items*/
- 3072 && l !== (l = /*title_style*/
- u[10](
+ 8192 && n !== (n = /*item*/
+ u[27].title + "") && Gt(l, n), _ & /*title_style, display_items*/
+ 12288 && i !== (i = /*title_style*/
+ u[12](
/*item*/
- u[25].is_intro
- )) && G(t, "style", l), _ & /*title_uppercase, display_items*/
- 2052 && $e(
+ u[27].is_intro
+ )) && j(t, "style", i), _ & /*title_uppercase, display_items*/
+ 8196 && Se(
t,
"uppercase",
/*title_uppercase*/
u[2] && !/*item*/
- u[25].is_intro
+ u[27].is_intro
), /*item*/
- u[25].name ? r ? r.p(u, _) : (r = nl(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/
- 2048 && $e(
+ u[27].name ? r ? r.p(u, _) : (r = rl(u), r.c(), r.m(e, s)) : r && (r.d(1), r = null), _ & /*display_items*/
+ 8192 && Se(
e,
"intro-block",
/*item*/
- u[25].is_intro
+ u[27].is_intro
);
},
d(u) {
- u && K(e), r && r.d();
+ u && Q(e), r && r.d();
}
};
}
-function Zs(a) {
+function Js(o) {
let e, t, n = (
/*item*/
- a[25].title + ""
- ), i, l, o, s, r = (
+ o[27].title + ""
+ ), l, i, a, s, r = (
/*item*/
- a[25].name + ""
+ o[27].name + ""
), u, _, d;
return {
c() {
- e = Pe("div"), t = Pe("div"), i = Vt(n), o = yt(), s = Pe("div"), u = Vt(r), d = yt(), this.h();
+ e = ye("div"), t = ye("div"), l = Ut(n), a = pt(), s = ye("div"), u = Ut(r), d = pt(), this.h();
},
l(c) {
- e = Oe(c, "DIV", { class: !0 });
- var h = Le(e);
- t = Oe(h, "DIV", { class: !0, style: !0 });
- var g = Le(t);
- i = Ht(g, n), g.forEach(K), o = Dt(h), s = Oe(h, "DIV", { class: !0, style: !0 });
- var p = Le(s);
- u = Ht(p, r), p.forEach(K), d = Dt(h), h.forEach(K), this.h();
+ e = De(c, "DIV", { class: !0 });
+ var h = Ae(e);
+ t = De(h, "DIV", { class: !0, style: !0 });
+ var m = Ae(t);
+ l = Ht(m, n), m.forEach(Q), a = ht(h), s = De(h, "DIV", { class: !0, style: !0 });
+ var p = Ae(s);
+ u = Ht(p, r), p.forEach(Q), d = ht(h), h.forEach(Q), this.h();
},
h() {
- G(t, "class", "title svelte-1851m15"), G(t, "style", l = /*swap_font_sizes_on_two_column*/
- a[5] ? (
+ j(t, "class", "title svelte-1bt5wt2"), j(t, "style", i = /*swap_font_sizes_on_two_column*/
+ o[5] ? (
/*name_style*/
- a[9](!1)
+ o[11](!1)
) : (
/*title_style*/
- a[10](!1)
- )), $e(
+ o[12](!1)
+ )), Se(
t,
"uppercase",
/*title_uppercase*/
- a[2]
- ), G(s, "class", "name svelte-1851m15"), G(s, "style", _ = /*swap_font_sizes_on_two_column*/
- a[5] ? (
+ o[2]
+ ), j(s, "class", "name svelte-1bt5wt2"), j(s, "style", _ = /*swap_font_sizes_on_two_column*/
+ o[5] ? (
/*title_style*/
- a[10](!1)
+ o[12](!1)
) : (
/*name_style*/
- a[9](!1)
- )), $e(
+ o[11](!1)
+ )), Se(
s,
"uppercase",
/*name_uppercase*/
- a[3]
- ), G(e, "class", "credit-two-column svelte-1851m15");
+ o[3]
+ ), j(e, "class", "credit-two-column svelte-1bt5wt2");
},
m(c, h) {
- dt(c, e, h), ie(e, t), ie(t, i), ie(e, o), ie(e, s), ie(s, u), ie(e, d);
+ rt(c, e, h), te(e, t), te(t, l), te(e, a), te(e, s), te(s, u), te(e, d);
},
p(c, h) {
h & /*display_items*/
- 2048 && n !== (n = /*item*/
- c[25].title + "") && xt(i, n), h & /*swap_font_sizes_on_two_column, name_style, title_style*/
- 1568 && l !== (l = /*swap_font_sizes_on_two_column*/
+ 8192 && n !== (n = /*item*/
+ c[27].title + "") && Gt(l, n), h & /*swap_font_sizes_on_two_column, name_style, title_style*/
+ 6176 && i !== (i = /*swap_font_sizes_on_two_column*/
c[5] ? (
/*name_style*/
- c[9](!1)
+ c[11](!1)
) : (
/*title_style*/
- c[10](!1)
- )) && G(t, "style", l), h & /*title_uppercase*/
- 4 && $e(
+ c[12](!1)
+ )) && j(t, "style", i), h & /*title_uppercase*/
+ 4 && Se(
t,
"uppercase",
/*title_uppercase*/
c[2]
), h & /*display_items*/
- 2048 && r !== (r = /*item*/
- c[25].name + "") && xt(u, r), h & /*swap_font_sizes_on_two_column, title_style, name_style*/
- 1568 && _ !== (_ = /*swap_font_sizes_on_two_column*/
+ 8192 && r !== (r = /*item*/
+ c[27].name + "") && Gt(u, r), h & /*swap_font_sizes_on_two_column, title_style, name_style*/
+ 6176 && _ !== (_ = /*swap_font_sizes_on_two_column*/
c[5] ? (
/*title_style*/
- c[10](!1)
+ c[12](!1)
) : (
/*name_style*/
- c[9](!1)
- )) && G(s, "style", _), h & /*name_uppercase*/
- 8 && $e(
+ c[11](!1)
+ )) && j(s, "style", _), h & /*name_uppercase*/
+ 8 && Se(
s,
"uppercase",
/*name_uppercase*/
@@ -8580,262 +8735,269 @@ function Zs(a) {
);
},
d(c) {
- c && K(e);
+ c && Q(e);
}
};
}
-function Xs(a) {
+function er(o) {
let e, t = (
/*item*/
- a[25].section_title + ""
- ), n, i;
+ o[27].section_title + ""
+ ), n, l;
return {
c() {
- e = Pe("div"), n = Vt(t), i = yt(), this.h();
+ e = ye("div"), n = Ut(t), l = pt(), this.h();
},
- l(l) {
- e = Oe(l, "DIV", { class: !0, style: !0 });
- var o = Le(e);
- n = Ht(o, t), o.forEach(K), i = Dt(l), this.h();
+ l(i) {
+ e = De(i, "DIV", { class: !0, style: !0 });
+ var a = Ae(e);
+ n = Ht(a, t), a.forEach(Q), l = ht(i), this.h();
},
h() {
- G(e, "class", "section-title svelte-1851m15"), G(
+ j(e, "class", "section-title svelte-1bt5wt2"), j(
e,
"style",
/*section_title_style*/
- a[8]
- ), $e(
+ o[10]
+ ), Se(
e,
"uppercase",
/*section_title_uppercase*/
- a[4]
+ o[4]
);
},
- m(l, o) {
- dt(l, e, o), ie(e, n), dt(l, i, o);
+ m(i, a) {
+ rt(i, e, a), te(e, n), rt(i, l, a);
},
- p(l, o) {
- o & /*display_items*/
- 2048 && t !== (t = /*item*/
- l[25].section_title + "") && xt(n, t), o & /*section_title_style*/
- 256 && G(
+ p(i, a) {
+ a & /*display_items*/
+ 8192 && t !== (t = /*item*/
+ i[27].section_title + "") && Gt(n, t), a & /*section_title_style*/
+ 1024 && j(
e,
"style",
/*section_title_style*/
- l[8]
- ), o & /*section_title_uppercase*/
- 16 && $e(
+ i[10]
+ ), a & /*section_title_uppercase*/
+ 16 && Se(
e,
"uppercase",
/*section_title_uppercase*/
- l[4]
+ i[4]
);
},
- d(l) {
- l && (K(e), K(i));
+ d(i) {
+ i && (Q(e), Q(l));
}
};
}
-function nl(a) {
+function rl(o) {
let e, t = (
/*item*/
- a[25].name + ""
- ), n, i;
+ o[27].name + ""
+ ), n, l;
return {
c() {
- e = Pe("div"), n = Vt(t), this.h();
+ e = ye("div"), n = Ut(t), this.h();
},
- l(l) {
- e = Oe(l, "DIV", { style: !0, class: !0 });
- var o = Le(e);
- n = Ht(o, t), o.forEach(K), this.h();
+ l(i) {
+ e = De(i, "DIV", { style: !0, class: !0 });
+ var a = Ae(e);
+ n = Ht(a, t), a.forEach(Q), this.h();
},
h() {
- G(e, "style", i = /*name_style*/
- a[9](
+ j(e, "style", l = /*name_style*/
+ o[11](
/*item*/
- a[25].is_intro
- )), G(e, "class", "name svelte-1851m15"), $e(
+ o[27].is_intro
+ )), j(e, "class", "name svelte-1bt5wt2"), Se(
e,
"uppercase",
/*name_uppercase*/
- a[3] && !/*item*/
- a[25].is_intro
+ o[3] && !/*item*/
+ o[27].is_intro
);
},
- m(l, o) {
- dt(l, e, o), ie(e, n);
+ m(i, a) {
+ rt(i, e, a), te(e, n);
},
- p(l, o) {
- o & /*display_items*/
- 2048 && t !== (t = /*item*/
- l[25].name + "") && xt(n, t), o & /*name_style, display_items*/
- 2560 && i !== (i = /*name_style*/
- l[9](
+ p(i, a) {
+ a & /*display_items*/
+ 8192 && t !== (t = /*item*/
+ i[27].name + "") && Gt(n, t), a & /*name_style, display_items*/
+ 10240 && l !== (l = /*name_style*/
+ i[11](
/*item*/
- l[25].is_intro
- )) && G(e, "style", i), o & /*name_uppercase, display_items*/
- 2056 && $e(
+ i[27].is_intro
+ )) && j(e, "style", l), a & /*name_uppercase, display_items*/
+ 8200 && Se(
e,
"uppercase",
/*name_uppercase*/
- l[3] && !/*item*/
- l[25].is_intro
+ i[3] && !/*item*/
+ i[27].is_intro
);
},
- d(l) {
- l && K(e);
+ d(i) {
+ i && Q(e);
}
};
}
-function il(a) {
+function ul(o) {
let e;
- function t(l, o) {
+ function t(i, a) {
return (
/*item*/
- l[25].section_title ? Xs : (
+ i[27].section_title ? er : (
/*layout_style*/
- l[1] === "two-column" && !/*item*/
- l[25].is_intro ? Zs : Gs
+ i[1] === "two-column" && !/*item*/
+ i[27].is_intro ? Js : Qs
)
);
}
- let n = t(a), i = n(a);
+ let n = t(o), l = n(o);
return {
c() {
- i.c(), e = Ki();
+ l.c(), e = nl();
},
- l(l) {
- i.l(l), e = Ki();
+ l(i) {
+ l.l(i), e = nl();
},
- m(l, o) {
- i.m(l, o), dt(l, e, o);
+ m(i, a) {
+ l.m(i, a), rt(i, e, a);
},
- p(l, o) {
- n === (n = t(l)) && i ? i.p(l, o) : (i.d(1), i = n(l), i && (i.c(), i.m(e.parentNode, e)));
+ p(i, a) {
+ n === (n = t(i)) && l ? l.p(i, a) : (l.d(1), l = n(i), l && (l.c(), l.m(e.parentNode, e)));
},
- d(l) {
- l && K(e), i.d(l);
+ d(i) {
+ i && Q(e), l.d(i);
}
};
}
-function Ys(a) {
- let e, t, n, i, l, o = Qi(
+function tr(o) {
+ var _;
+ let e, t, n, l, i, a, s = (
+ /*scroll_logo_path*/
+ ((_ = o[6]) == null ? void 0 : _.url) && sl(o)
+ ), r = il(
/*display_items*/
- a[11]
- ), s = [];
- for (let r = 0; r < o.length; r += 1)
- s[r] = il(tl(a, o, r));
+ o[13]
+ ), u = [];
+ for (let d = 0; d < r.length; d += 1)
+ u[d] = ul(al(o, r, d));
return {
c() {
- e = Pe("div"), t = Pe("canvas"), n = yt(), i = Pe("div"), l = Pe("div");
- for (let r = 0; r < s.length; r += 1)
- s[r].c();
+ e = ye("div"), t = ye("canvas"), n = pt(), l = ye("div"), i = ye("div"), s && s.c(), a = pt();
+ for (let d = 0; d < u.length; d += 1)
+ u[d].c();
this.h();
},
- l(r) {
- e = Oe(r, "DIV", { class: !0 });
- var u = Le(e);
- t = Oe(u, "CANVAS", { class: !0 }), Le(t).forEach(K), n = Dt(u), i = Oe(u, "DIV", { class: !0 });
- var _ = Le(i);
- l = Oe(_, "DIV", { class: !0, style: !0 });
- var d = Le(l);
- for (let c = 0; c < s.length; c += 1)
- s[c].l(d);
- d.forEach(K), _.forEach(K), u.forEach(K), this.h();
+ l(d) {
+ e = De(d, "DIV", { class: !0 });
+ var c = Ae(e);
+ t = De(c, "CANVAS", { class: !0 }), Ae(t).forEach(Q), n = ht(c), l = De(c, "DIV", { class: !0 });
+ var h = Ae(l);
+ i = De(h, "DIV", { class: !0, style: !0 });
+ var m = Ae(i);
+ s && s.l(m), a = ht(m);
+ for (let p = 0; p < u.length; p += 1)
+ u[p].l(m);
+ m.forEach(Q), h.forEach(Q), c.forEach(Q), this.h();
},
h() {
- G(t, "class", "svelte-1851m15"), G(l, "class", "credits-content svelte-1851m15"), el(
- l,
+ j(t, "class", "svelte-1bt5wt2"), j(i, "class", "credits-content svelte-1bt5wt2"), hn(
+ i,
"--animation-duration",
/*speed*/
- a[0] + "s"
- ), G(i, "class", "credits-scroll-overlay svelte-1851m15"), G(e, "class", "matrix-container svelte-1851m15");
+ o[0] + "s"
+ ), j(l, "class", "credits-scroll-overlay svelte-1bt5wt2"), j(e, "class", "matrix-container svelte-1bt5wt2");
},
- m(r, u) {
- dt(r, e, u), ie(e, t), a[16](t), ie(e, n), ie(e, i), ie(i, l);
- for (let _ = 0; _ < s.length; _ += 1)
- s[_] && s[_].m(l, null);
- a[17](l);
+ m(d, c) {
+ rt(d, e, c), te(e, t), o[18](t), te(e, n), te(e, l), te(l, i), s && s.m(i, null), te(i, a);
+ for (let h = 0; h < u.length; h += 1)
+ u[h] && u[h].m(i, null);
+ o[19](i);
},
- p(r, [u]) {
- if (u & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/
- 3902) {
- o = Qi(
+ p(d, [c]) {
+ var h;
+ if (/*scroll_logo_path*/
+ (h = d[6]) != null && h.url ? s ? s.p(d, c) : (s = sl(d), s.c(), s.m(i, a)) : s && (s.d(1), s = null), c & /*section_title_style, section_title_uppercase, display_items, swap_font_sizes_on_two_column, title_style, name_style, name_uppercase, title_uppercase, layout_style*/
+ 15422) {
+ r = il(
/*display_items*/
- r[11]
+ d[13]
);
- let _;
- for (_ = 0; _ < o.length; _ += 1) {
- const d = tl(r, o, _);
- s[_] ? s[_].p(d, u) : (s[_] = il(d), s[_].c(), s[_].m(l, null));
+ let m;
+ for (m = 0; m < r.length; m += 1) {
+ const p = al(d, r, m);
+ u[m] ? u[m].p(p, c) : (u[m] = ul(p), u[m].c(), u[m].m(i, null));
}
- for (; _ < s.length; _ += 1)
- s[_].d(1);
- s.length = o.length;
+ for (; m < u.length; m += 1)
+ u[m].d(1);
+ u.length = r.length;
}
- u & /*speed*/
- 1 && el(
- l,
+ c & /*speed*/
+ 1 && hn(
+ i,
"--animation-duration",
/*speed*/
- r[0] + "s"
+ d[0] + "s"
);
},
- i: Ji,
- o: Ji,
- d(r) {
- r && K(e), a[16](null), js(s, r), a[17](null);
+ i: ll,
+ o: ll,
+ d(d) {
+ d && Q(e), o[18](null), s && s.d(), xs(u, d), o[19](null);
}
};
}
-const At = 16, ll = "アァカサタナハマヤャラワガザダバパイィキシチニヒミリヰギジヂビピウゥクスツヌフムユュルグズブヅプエェケセテネヘメレヱゲゼデベペオォコソトノホモヨョロヲゴゾドボポヴッン01";
-function Ws(a, e, t) {
- let n, i, l, o, { credits: s } = e, { speed: r = 20 } = e, { base_font_size: u = 1 } = e, { intro_title: _ = null } = e, { intro_subtitle: d = null } = e, { layout_style: c = "stacked" } = e, { title_uppercase: h = !1 } = e, { name_uppercase: g = !1 } = e, { section_title_uppercase: p = !0 } = e, { swap_font_sizes_on_two_column: D = !1 } = e, k, m, f, v, y = [], b;
- function F() {
- if (!k) return;
- const $ = k.parentElement;
- $ && (t(6, k.width = $.clientWidth, k), t(6, k.height = $.clientHeight, k)), m = k.getContext("2d"), v = Math.floor(k.width / At), y = Array(v).fill(1);
- }
- function A() {
- if (m) {
- m.fillStyle = "rgba(0, 0, 0, 0.05)", m.fillRect(0, 0, k.width, k.height), m.fillStyle = "#0F0", m.font = `${At}px monospace`;
- for (let $ = 0; $ < y.length; $++) {
- const ge = ll.charAt(Math.floor(Math.random() * ll.length));
- m.fillText(ge, $ * At, y[$] * At), y[$] * At > k.height && Math.random() > 0.975 && (y[$] = 0), y[$]++;
+const Bt = 16, _l = "アァカサタナハマヤャラワガザダバパイィキシチニヒミリヰギジヂビピウゥクスツヌフムユュルグズブヅプエェケセテネヘメレヱゲゼデベペオォコソトノホモヨョロヲゴゾドボポヴッン01";
+function nr(o, e, t) {
+ let n, l, i, a, { credits: s } = e, { speed: r = 20 } = e, { base_font_size: u = 1 } = e, { intro_title: _ = null } = e, { intro_subtitle: d = null } = e, { layout_style: c = "stacked" } = e, { title_uppercase: h = !1 } = e, { name_uppercase: m = !1 } = e, { section_title_uppercase: p = !0 } = e, { swap_font_sizes_on_two_column: b = !1 } = e, { scroll_logo_path: k = null } = e, { scroll_logo_height: g = "120px" } = e, f, v, D, w, F = [], A;
+ function y() {
+ if (!f) return;
+ const $ = f.parentElement;
+ $ && (t(8, f.width = $.clientWidth, f), t(8, f.height = $.clientHeight, f)), v = f.getContext("2d"), w = Math.floor(f.width / Bt), F = Array(w).fill(1);
+ }
+ function T() {
+ if (v) {
+ v.fillStyle = "rgba(0, 0, 0, 0.05)", v.fillRect(0, 0, f.width, f.height), v.fillStyle = "#0F0", v.font = `${Bt}px monospace`;
+ for (let $ = 0; $ < F.length; $++) {
+ const ue = _l.charAt(Math.floor(Math.random() * _l.length));
+ v.fillText(ue, $ * Bt, F[$] * Bt), F[$] * Bt > f.height && Math.random() > 0.975 && (F[$] = 0), F[$]++;
}
- b = requestAnimationFrame(A);
+ A = requestAnimationFrame(T);
}
}
function E() {
- f && (t(7, f.style.animation = "none", f), f.offsetHeight, t(7, f.style.animation = "", f));
+ D && (t(9, D.style.animation = "none", D), D.offsetHeight, t(9, D.style.animation = "", D));
}
- Vs(() => {
- F(), A(), E();
+ Ws(() => {
+ y(), T(), E();
const $ = new ResizeObserver(() => {
- cancelAnimationFrame(b), F(), A();
+ cancelAnimationFrame(A), y(), T();
});
- return k.parentElement && $.observe(k.parentElement), () => {
- cancelAnimationFrame(b), k.parentElement && $.unobserve(k.parentElement);
+ return f.parentElement && $.observe(f.parentElement), () => {
+ cancelAnimationFrame(A), f.parentElement && $.unobserve(f.parentElement);
};
- }), Us(() => {
- t(7, f = null);
+ }), Ks(() => {
+ t(9, D = null);
});
- function q($) {
- Wi[$ ? "unshift" : "push"](() => {
- k = $, t(6, k);
+ function L($) {
+ tl[$ ? "unshift" : "push"](() => {
+ f = $, t(8, f);
});
}
- function w($) {
- Wi[$ ? "unshift" : "push"](() => {
- f = $, t(7, f);
+ function B($) {
+ tl[$ ? "unshift" : "push"](() => {
+ D = $, t(9, D);
});
}
- return a.$$set = ($) => {
- "credits" in $ && t(12, s = $.credits), "speed" in $ && t(0, r = $.speed), "base_font_size" in $ && t(13, u = $.base_font_size), "intro_title" in $ && t(14, _ = $.intro_title), "intro_subtitle" in $ && t(15, d = $.intro_subtitle), "layout_style" in $ && t(1, c = $.layout_style), "title_uppercase" in $ && t(2, h = $.title_uppercase), "name_uppercase" in $ && t(3, g = $.name_uppercase), "section_title_uppercase" in $ && t(4, p = $.section_title_uppercase), "swap_font_sizes_on_two_column" in $ && t(5, D = $.swap_font_sizes_on_two_column);
- }, a.$$.update = () => {
- a.$$.dirty & /*intro_title, intro_subtitle, credits*/
- 53248 && t(11, n = (() => {
+ return o.$$set = ($) => {
+ "credits" in $ && t(14, s = $.credits), "speed" in $ && t(0, r = $.speed), "base_font_size" in $ && t(15, u = $.base_font_size), "intro_title" in $ && t(16, _ = $.intro_title), "intro_subtitle" in $ && t(17, d = $.intro_subtitle), "layout_style" in $ && t(1, c = $.layout_style), "title_uppercase" in $ && t(2, h = $.title_uppercase), "name_uppercase" in $ && t(3, m = $.name_uppercase), "section_title_uppercase" in $ && t(4, p = $.section_title_uppercase), "swap_font_sizes_on_two_column" in $ && t(5, b = $.swap_font_sizes_on_two_column), "scroll_logo_path" in $ && t(6, k = $.scroll_logo_path), "scroll_logo_height" in $ && t(7, g = $.scroll_logo_height);
+ }, o.$$.update = () => {
+ o.$$.dirty & /*intro_title, intro_subtitle, credits*/
+ 212992 && t(13, n = (() => {
const $ = [];
return (_ || d) && $.push({
title: _ || "",
@@ -8843,332 +9005,336 @@ function Ws(a, e, t) {
is_intro: !0
}), [
...$,
- ...s.map((ge) => Object.assign(Object.assign({}, ge), { is_intro: !1 }))
+ ...s.map((ue) => Object.assign(Object.assign({}, ue), { is_intro: !1 }))
];
- })()), a.$$.dirty & /*base_font_size*/
- 8192 && t(10, i = ($) => `font-size: ${$ ? u * 1.5 : u}em;`), a.$$.dirty & /*base_font_size*/
- 8192 && t(9, l = ($) => `font-size: ${$ ? u * 0.9 : u * 0.8}em;`), a.$$.dirty & /*base_font_size*/
- 8192 && t(8, o = `font-size: ${u * 1.2}em;`), a.$$.dirty & /*credits, speed, intro_title, intro_subtitle, layout_style*/
- 53251 && E();
+ })()), o.$$.dirty & /*base_font_size*/
+ 32768 && t(12, l = ($) => `font-size: ${$ ? u * 1.5 : u}em;`), o.$$.dirty & /*base_font_size*/
+ 32768 && t(11, i = ($) => `font-size: ${$ ? u * 0.9 : u * 0.8}em;`), o.$$.dirty & /*base_font_size*/
+ 32768 && t(10, a = `font-size: ${u * 1.2}em;`), o.$$.dirty & /*credits, speed, intro_title, intro_subtitle, layout_style*/
+ 212995 && E();
}, [
r,
c,
h,
- g,
+ m,
p,
- D,
+ b,
k,
+ g,
f,
- o,
- l,
+ D,
+ a,
i,
+ l,
n,
s,
u,
_,
d,
- q,
- w
+ L,
+ B
];
}
-class Ks extends Ns {
+class ir extends Zs {
constructor(e) {
- super(), Hs(this, e, Ws, Ys, xs, {
- credits: 12,
+ super(), Xs(this, e, nr, tr, Ys, {
+ credits: 14,
speed: 0,
- base_font_size: 13,
- intro_title: 14,
- intro_subtitle: 15,
+ base_font_size: 15,
+ intro_title: 16,
+ intro_subtitle: 17,
layout_style: 1,
title_uppercase: 2,
name_uppercase: 3,
section_title_uppercase: 4,
- swap_font_sizes_on_two_column: 5
+ swap_font_sizes_on_two_column: 5,
+ scroll_logo_path: 6,
+ scroll_logo_height: 7
});
}
}
-const { setContext: z4, getContext: Qs } = window.__gradio__svelte__internal, Js = "WORKER_PROXY_CONTEXT_KEY";
-function er() {
- return Qs(Js);
+const { setContext: M3, getContext: lr } = window.__gradio__svelte__internal, or = "WORKER_PROXY_CONTEXT_KEY";
+function ar() {
+ return lr(or);
}
-const tr = "lite.local";
-function nr(a) {
- return a.host === window.location.host || a.host === "localhost:7860" || a.host === "127.0.0.1:7860" || // Ref: https://github.com/gradio-app/gradio/blob/v3.32.0/js/app/src/Index.svelte#L194
- a.host === tr;
+const sr = "lite.local";
+function rr(o) {
+ return o.host === window.location.host || o.host === "localhost:7860" || o.host === "127.0.0.1:7860" || // Ref: https://github.com/gradio-app/gradio/blob/v3.32.0/js/app/src/Index.svelte#L194
+ o.host === sr;
}
-function ir(a, e) {
+function ur(o, e) {
const t = e.toLowerCase();
- for (const [n, i] of Object.entries(a))
+ for (const [n, l] of Object.entries(o))
if (n.toLowerCase() === t)
- return i;
+ return l;
}
-function lr(a) {
+function _r(o) {
const e = typeof window < "u";
- if (a == null || !e)
+ if (o == null || !e)
return !1;
- const t = new URL(a, window.location.href);
- return !(!nr(t) || t.protocol !== "http:" && t.protocol !== "https:");
+ const t = new URL(o, window.location.href);
+ return !(!rr(t) || t.protocol !== "http:" && t.protocol !== "https:");
}
let sn;
-async function ar(a) {
+async function cr(o) {
const e = typeof window < "u";
- if (a == null || !e || !lr(a))
- return a;
+ if (o == null || !e || !_r(o))
+ return o;
if (sn == null)
try {
- sn = er();
+ sn = ar();
} catch {
- return a;
+ return o;
}
if (sn == null)
- return a;
- const n = new URL(a, window.location.href).pathname;
+ return o;
+ const n = new URL(o, window.location.href).pathname;
return sn.httpRequest({
method: "GET",
path: n,
headers: {},
query_string: ""
- }).then((i) => {
- if (i.status !== 200)
+ }).then((l) => {
+ if (l.status !== 200)
throw new Error(`Failed to get file ${n} from the Wasm worker.`);
- const l = new Blob([i.body], {
- type: ir(i.headers, "content-type")
+ const i = new Blob([l.body], {
+ type: ur(l.headers, "content-type")
});
- return URL.createObjectURL(l);
+ return URL.createObjectURL(i);
});
}
const {
- SvelteComponent: I4,
- assign: R4,
- check_outros: L4,
- children: O4,
- claim_element: P4,
- compute_rest_props: M4,
- create_slot: N4,
- detach: j4,
- element: H4,
- empty: x4,
- exclude_internal_props: V4,
- get_all_dirty_from_scope: U4,
- get_slot_changes: G4,
- get_spread_update: Z4,
- group_outros: X4,
- init: Y4,
- insert_hydration: W4,
- listen: K4,
- prevent_default: Q4,
- safe_not_equal: J4,
- set_attributes: e5,
- set_style: t5,
- toggle_class: n5,
- transition_in: i5,
- transition_out: l5,
- update_slot_base: a5
-} = window.__gradio__svelte__internal, { createEventDispatcher: o5, onMount: s5 } = window.__gradio__svelte__internal, {
- SvelteComponent: or,
- assign: Ln,
- bubble: sr,
- claim_element: rr,
- compute_rest_props: al,
- detach: ur,
- element: _r,
- exclude_internal_props: cr,
- get_spread_update: dr,
- init: fr,
- insert_hydration: hr,
- listen: pr,
- noop: ol,
- safe_not_equal: mr,
- set_attributes: sl,
- src_url_equal: gr,
- toggle_class: rl
+ SvelteComponent: N3,
+ assign: j3,
+ check_outros: V3,
+ children: H3,
+ claim_element: G3,
+ compute_rest_props: U3,
+ create_slot: Z3,
+ detach: x3,
+ element: X3,
+ empty: Y3,
+ exclude_internal_props: W3,
+ get_all_dirty_from_scope: K3,
+ get_slot_changes: Q3,
+ get_spread_update: J3,
+ group_outros: e4,
+ init: t4,
+ insert_hydration: n4,
+ listen: i4,
+ prevent_default: l4,
+ safe_not_equal: o4,
+ set_attributes: a4,
+ set_style: s4,
+ toggle_class: r4,
+ transition_in: u4,
+ transition_out: _4,
+ update_slot_base: c4
+} = window.__gradio__svelte__internal, { createEventDispatcher: d4, onMount: f4 } = window.__gradio__svelte__internal, {
+ SvelteComponent: dr,
+ assign: On,
+ bubble: fr,
+ claim_element: hr,
+ compute_rest_props: cl,
+ detach: pr,
+ element: mr,
+ exclude_internal_props: gr,
+ get_spread_update: vr,
+ init: br,
+ insert_hydration: Dr,
+ listen: yr,
+ noop: dl,
+ safe_not_equal: wr,
+ set_attributes: fl,
+ src_url_equal: kr,
+ toggle_class: hl
} = window.__gradio__svelte__internal;
-function vr(a) {
- let e, t, n, i, l = [
+function Fr(o) {
+ let e, t, n, l, i = [
{
src: t = /*resolved_src*/
- a[0]
+ o[0]
},
/*$$restProps*/
- a[1]
- ], o = {};
- for (let s = 0; s < l.length; s += 1)
- o = Ln(o, l[s]);
+ o[1]
+ ], a = {};
+ for (let s = 0; s < i.length; s += 1)
+ a = On(a, i[s]);
return {
c() {
- e = _r("img"), this.h();
+ e = mr("img"), this.h();
},
l(s) {
- e = rr(s, "IMG", { src: !0 }), this.h();
+ e = hr(s, "IMG", { src: !0 }), this.h();
},
h() {
- sl(e, o), rl(e, "svelte-kxeri3", !0);
+ fl(e, a), hl(e, "svelte-kxeri3", !0);
},
m(s, r) {
- hr(s, e, r), n || (i = pr(
+ Dr(s, e, r), n || (l = yr(
e,
"load",
/*load_handler*/
- a[4]
+ o[4]
), n = !0);
},
p(s, [r]) {
- sl(e, o = dr(l, [
+ fl(e, a = vr(i, [
r & /*resolved_src*/
- 1 && !gr(e.src, t = /*resolved_src*/
+ 1 && !kr(e.src, t = /*resolved_src*/
s[0]) && { src: t },
r & /*$$restProps*/
2 && /*$$restProps*/
s[1]
- ])), rl(e, "svelte-kxeri3", !0);
+ ])), hl(e, "svelte-kxeri3", !0);
},
- i: ol,
- o: ol,
+ i: dl,
+ o: dl,
d(s) {
- s && ur(e), n = !1, i();
+ s && pr(e), n = !1, l();
}
};
}
-function br(a, e, t) {
+function $r(o, e, t) {
const n = ["src"];
- let i = al(e, n), { src: l = void 0 } = e, o, s;
+ let l = cl(e, n), { src: i = void 0 } = e, a, s;
function r(u) {
- sr.call(this, a, u);
+ fr.call(this, o, u);
}
- return a.$$set = (u) => {
- e = Ln(Ln({}, e), cr(u)), t(1, i = al(e, n)), "src" in u && t(2, l = u.src);
- }, a.$$.update = () => {
- if (a.$$.dirty & /*src, latest_src*/
+ return o.$$set = (u) => {
+ e = On(On({}, e), gr(u)), t(1, l = cl(e, n)), "src" in u && t(2, i = u.src);
+ }, o.$$.update = () => {
+ if (o.$$.dirty & /*src, latest_src*/
12) {
- t(0, o = l), t(3, s = l);
- const u = l;
- ar(u).then((_) => {
- s === u && t(0, o = _);
+ t(0, a = i), t(3, s = i);
+ const u = i;
+ cr(u).then((_) => {
+ s === u && t(0, a = _);
});
}
- }, [o, i, l, s, r];
+ }, [a, l, i, s, r];
}
-class Dr extends or {
+class Cr extends dr {
constructor(e) {
- super(), fr(this, e, br, vr, mr, { src: 2 });
+ super(), br(this, e, $r, Fr, wr, { src: 2 });
}
}
const {
- SvelteComponent: r5,
- append_hydration: u5,
- attr: _5,
- binding_callbacks: c5,
- bubble: d5,
- check_outros: f5,
- children: h5,
- claim_component: p5,
- claim_element: m5,
- claim_space: g5,
- create_component: v5,
- destroy_component: b5,
- detach: D5,
- element: y5,
- empty: w5,
- group_outros: k5,
- init: F5,
- insert_hydration: $5,
- listen: C5,
- mount_component: E5,
- safe_not_equal: A5,
- space: S5,
- toggle_class: B5,
- transition_in: q5,
- transition_out: T5
-} = window.__gradio__svelte__internal, { createEventDispatcher: z5, onMount: I5 } = window.__gradio__svelte__internal, {
- SvelteComponent: yr,
- append_hydration: re,
- attr: le,
- check_outros: at,
- children: Ce,
- claim_component: wt,
- claim_element: ae,
- claim_space: et,
- claim_text: On,
- create_component: kt,
- create_slot: wr,
- destroy_block: kr,
- destroy_component: Ft,
- detach: I,
- element: oe,
- empty: ot,
- ensure_array_like: ul,
- get_all_dirty_from_scope: Fr,
- get_slot_changes: $r,
- get_svelte_dataset: Zn,
- group_outros: st,
- head_selector: Cr,
- init: Er,
- insert_hydration: J,
- listen: Ar,
- mount_component: $t,
- noop: Ut,
- safe_not_equal: pn,
- set_data: Pn,
- set_style: N,
- space: tt,
- src_url_equal: _l,
- text: Mn,
- toggle_class: cl,
- transition_in: P,
- transition_out: H,
- update_keyed_each: Sr,
- update_slot_base: Br
+ SvelteComponent: h4,
+ append_hydration: p4,
+ attr: m4,
+ binding_callbacks: g4,
+ bubble: v4,
+ check_outros: b4,
+ children: D4,
+ claim_component: y4,
+ claim_element: w4,
+ claim_space: k4,
+ create_component: F4,
+ destroy_component: $4,
+ detach: C4,
+ element: E4,
+ empty: A4,
+ group_outros: S4,
+ init: q4,
+ insert_hydration: B4,
+ listen: T4,
+ mount_component: z4,
+ safe_not_equal: I4,
+ space: R4,
+ toggle_class: L4,
+ transition_in: O4,
+ transition_out: P4
+} = window.__gradio__svelte__internal, { createEventDispatcher: M4, onMount: N4 } = window.__gradio__svelte__internal, {
+ SvelteComponent: Er,
+ append_hydration: fe,
+ attr: ae,
+ check_outros: ut,
+ children: qe,
+ claim_component: $t,
+ claim_element: se,
+ claim_space: tt,
+ claim_text: Pn,
+ create_component: Ct,
+ create_slot: Ar,
+ destroy_block: Sr,
+ destroy_component: Et,
+ detach: R,
+ element: re,
+ empty: _t,
+ ensure_array_like: pl,
+ get_all_dirty_from_scope: qr,
+ get_slot_changes: Br,
+ get_svelte_dataset: Xn,
+ group_outros: ct,
+ head_selector: Tr,
+ init: zr,
+ insert_hydration: ne,
+ listen: Ir,
+ mount_component: At,
+ noop: Zt,
+ safe_not_equal: mn,
+ set_data: Mn,
+ set_style: G,
+ space: nt,
+ src_url_equal: ml,
+ text: Nn,
+ toggle_class: gl,
+ transition_in: V,
+ transition_out: x,
+ update_keyed_each: Rr,
+ update_slot_base: Lr
} = window.__gradio__svelte__internal;
-function dl(a, e, t) {
- const n = a.slice();
+function vl(o, e, t) {
+ const n = o.slice();
return n[24] = e[t][0], n[25] = e[t][1], n;
}
-function fl(a) {
- let e, t, n, i;
- const l = [Tr, qr], o = [];
+function bl(o) {
+ let e, t, n, l;
+ const i = [Pr, Or], a = [];
function s(r, u) {
return (
/*gradio*/
r[7] ? 0 : 1
);
}
- return t = s(a), n = o[t] = l[t](a), {
+ return t = s(o), n = a[t] = i[t](o), {
c() {
- e = oe("div"), n.c(), this.h();
+ e = re("div"), n.c(), this.h();
},
l(r) {
- e = ae(r, "DIV", { class: !0 });
- var u = Ce(e);
- n.l(u), u.forEach(I), this.h();
+ e = se(r, "DIV", { class: !0 });
+ var u = qe(e);
+ n.l(u), u.forEach(R), this.h();
},
h() {
- le(e, "class", "logo-panel svelte-1hawtr7"), N(
+ ae(e, "class", "logo-panel svelte-1hawtr7"), G(
e,
"height",
/*logo_panel_height*/
- a[12]
- ), N(e, "display", "flex"), N(
+ o[12]
+ ), G(e, "display", "flex"), G(
e,
"justify-content",
/*logo_justify*/
- a[10]
+ o[10]
);
},
m(r, u) {
- J(r, e, u), o[t].m(e, null), i = !0;
+ ne(r, e, u), a[t].m(e, null), l = !0;
},
p(r, u) {
let _ = t;
- t = s(r), t === _ ? o[t].p(r, u) : (st(), H(o[_], 1, 1, () => {
- o[_] = null;
- }), at(), n = o[t], n ? n.p(r, u) : (n = o[t] = l[t](r), n.c()), P(n, 1), n.m(e, null)), u & /*logo_panel_height*/
- 4096 && N(
+ t = s(r), t === _ ? a[t].p(r, u) : (ct(), x(a[_], 1, 1, () => {
+ a[_] = null;
+ }), ut(), n = a[t], n ? n.p(r, u) : (n = a[t] = i[t](r), n.c()), V(n, 1), n.m(e, null)), u & /*logo_panel_height*/
+ 4096 && G(
e,
"height",
/*logo_panel_height*/
r[12]
), u & /*logo_justify*/
- 1024 && N(
+ 1024 && G(
e,
"justify-content",
/*logo_justify*/
@@ -9176,549 +9342,591 @@ function fl(a) {
);
},
i(r) {
- i || (P(n), i = !0);
+ l || (V(n), l = !0);
},
o(r) {
- H(n), i = !1;
+ x(n), l = !1;
},
d(r) {
- r && I(e), o[t].d();
+ r && R(e), a[t].d();
}
};
}
-function qr(a) {
+function Or(o) {
let e, t;
return {
c() {
- e = oe("img"), this.h();
+ e = re("img"), this.h();
},
l(n) {
- e = ae(n, "IMG", { src: !0, alt: !0, style: !0 }), this.h();
+ e = se(n, "IMG", { src: !0, alt: !0, style: !0 }), this.h();
},
h() {
- _l(e.src, t = /*effectiveValue*/
- a[8].logo_path.url) || le(e, "src", t), le(e, "alt", "Logo"), N(
+ ml(e.src, t = /*effectiveValue*/
+ o[8].logo_path.url) || ae(e, "src", t), ae(e, "alt", "Logo"), G(
e,
"width",
/*logo_width_style*/
- a[14]
- ), N(
+ o[14]
+ ), G(
e,
"height",
/*logo_height_style*/
- a[13]
- ), N(
+ o[13]
+ ), G(
e,
"object-fit",
/*object_fit*/
- a[11]
+ o[11]
);
},
- m(n, i) {
- J(n, e, i);
+ m(n, l) {
+ ne(n, e, l);
},
- p(n, i) {
- i & /*effectiveValue*/
- 256 && !_l(e.src, t = /*effectiveValue*/
- n[8].logo_path.url) && le(e, "src", t), i & /*logo_width_style*/
- 16384 && N(
+ p(n, l) {
+ l & /*effectiveValue*/
+ 256 && !ml(e.src, t = /*effectiveValue*/
+ n[8].logo_path.url) && ae(e, "src", t), l & /*logo_width_style*/
+ 16384 && G(
e,
"width",
/*logo_width_style*/
n[14]
- ), i & /*logo_height_style*/
- 8192 && N(
+ ), l & /*logo_height_style*/
+ 8192 && G(
e,
"height",
/*logo_height_style*/
n[13]
- ), i & /*object_fit*/
- 2048 && N(
+ ), l & /*object_fit*/
+ 2048 && G(
e,
"object-fit",
/*object_fit*/
n[11]
);
},
- i: Ut,
- o: Ut,
+ i: Zt,
+ o: Zt,
d(n) {
- n && I(e);
+ n && R(e);
}
};
}
-function Tr(a) {
+function Pr(o) {
let e, t;
- return e = new Dr({
+ return e = new Cr({
props: {
src: (
/*effectiveValue*/
- a[8].logo_path.url
+ o[8].logo_path.url
),
alt: "Logo",
loading: "lazy",
gradio: (
/*gradio*/
- a[7]
+ o[7]
),
style: "width: " + /*logo_width_style*/
- a[14] + "; height: " + /*logo_height_style*/
- a[13] + "; object-fit: " + /*object_fit*/
- a[11] + ";"
+ o[14] + "; height: " + /*logo_height_style*/
+ o[13] + "; object-fit: " + /*object_fit*/
+ o[11] + ";"
}
}), {
c() {
- kt(e.$$.fragment);
+ Ct(e.$$.fragment);
},
l(n) {
- wt(e.$$.fragment, n);
- },
- m(n, i) {
- $t(e, n, i), t = !0;
- },
- p(n, i) {
- const l = {};
- i & /*effectiveValue*/
- 256 && (l.src = /*effectiveValue*/
- n[8].logo_path.url), i & /*gradio*/
- 128 && (l.gradio = /*gradio*/
- n[7]), i & /*logo_width_style, logo_height_style, object_fit*/
- 26624 && (l.style = "width: " + /*logo_width_style*/
+ $t(e.$$.fragment, n);
+ },
+ m(n, l) {
+ At(e, n, l), t = !0;
+ },
+ p(n, l) {
+ const i = {};
+ l & /*effectiveValue*/
+ 256 && (i.src = /*effectiveValue*/
+ n[8].logo_path.url), l & /*gradio*/
+ 128 && (i.gradio = /*gradio*/
+ n[7]), l & /*logo_width_style, logo_height_style, object_fit*/
+ 26624 && (i.style = "width: " + /*logo_width_style*/
n[14] + "; height: " + /*logo_height_style*/
n[13] + "; object-fit: " + /*object_fit*/
- n[11] + ";"), e.$set(l);
+ n[11] + ";"), e.$set(i);
},
i(n) {
- t || (P(e.$$.fragment, n), t = !0);
+ t || (V(e.$$.fragment, n), t = !0);
},
o(n) {
- H(e.$$.fragment, n), t = !1;
+ x(e.$$.fragment, n), t = !1;
},
d(n) {
- Ft(e, n);
+ Et(e, n);
}
};
}
-function hl(a) {
- var i;
+function Dl(o) {
+ var l;
let e, t, n = (
/*effectiveValue*/
- a[8].show_logo && /*effectiveValue*/
- ((i = a[8].logo_path) == null ? void 0 : i.url) && fl(a)
+ o[8].show_logo && /*effectiveValue*/
+ ((l = o[8].logo_path) == null ? void 0 : l.url) && bl(o)
);
return {
c() {
- e = oe("div"), n && n.c(), this.h();
+ e = re("div"), n && n.c(), this.h();
},
- l(l) {
- e = ae(l, "DIV", { class: !0 });
- var o = Ce(e);
- n && n.l(o), o.forEach(I), this.h();
+ l(i) {
+ e = se(i, "DIV", { class: !0 });
+ var a = qe(e);
+ n && n.l(a), a.forEach(R), this.h();
},
h() {
- le(e, "class", "outer-logo-wrapper svelte-1hawtr7"), N(
+ ae(e, "class", "outer-logo-wrapper svelte-1hawtr7"), G(
e,
"width",
/*width_style*/
- a[15]
+ o[15]
);
},
- m(l, o) {
- J(l, e, o), n && n.m(e, null), t = !0;
+ m(i, a) {
+ ne(i, e, a), n && n.m(e, null), t = !0;
},
- p(l, o) {
+ p(i, a) {
var s;
/*effectiveValue*/
- l[8].show_logo && /*effectiveValue*/
- ((s = l[8].logo_path) != null && s.url) ? n ? (n.p(l, o), o & /*effectiveValue*/
- 256 && P(n, 1)) : (n = fl(l), n.c(), P(n, 1), n.m(e, null)) : n && (st(), H(n, 1, 1, () => {
+ i[8].show_logo && /*effectiveValue*/
+ ((s = i[8].logo_path) != null && s.url) ? n ? (n.p(i, a), a & /*effectiveValue*/
+ 256 && V(n, 1)) : (n = bl(i), n.c(), V(n, 1), n.m(e, null)) : n && (ct(), x(n, 1, 1, () => {
n = null;
- }), at()), o & /*width_style*/
- 32768 && N(
+ }), ut()), a & /*width_style*/
+ 32768 && G(
e,
"width",
/*width_style*/
- l[15]
+ i[15]
);
},
- i(l) {
- t || (P(n), t = !0);
+ i(i) {
+ t || (V(n), t = !0);
},
- o(l) {
- H(n), t = !1;
+ o(i) {
+ x(n), t = !1;
},
- d(l) {
- l && I(e), n && n.d();
+ d(i) {
+ i && R(e), n && n.d();
}
};
}
-function pl(a) {
+function yl(o) {
let e = (
/*effectiveValue*/
- a[8].sidebar_position
- ), t, n, i = yl(a);
+ o[8].sidebar_position
+ ), t, n, l = El(o);
return {
c() {
- i.c(), t = ot();
+ l.c(), t = _t();
},
- l(l) {
- i.l(l), t = ot();
+ l(i) {
+ l.l(i), t = _t();
},
- m(l, o) {
- i.m(l, o), J(l, t, o), n = !0;
+ m(i, a) {
+ l.m(i, a), ne(i, t, a), n = !0;
},
- p(l, o) {
- o & /*effectiveValue*/
- 256 && pn(e, e = /*effectiveValue*/
- l[8].sidebar_position) ? (st(), H(i, 1, 1, Ut), at(), i = yl(l), i.c(), P(i, 1), i.m(t.parentNode, t)) : i.p(l, o);
+ p(i, a) {
+ a & /*effectiveValue*/
+ 256 && mn(e, e = /*effectiveValue*/
+ i[8].sidebar_position) ? (ct(), x(l, 1, 1, Zt), ut(), l = El(i), l.c(), V(l, 1), l.m(t.parentNode, t)) : l.p(i, a);
},
- i(l) {
- n || (P(i), n = !0);
+ i(i) {
+ n || (V(l), n = !0);
},
- o(l) {
- H(i), n = !1;
+ o(i) {
+ x(l), n = !1;
},
- d(l) {
- l && I(t), i.d(l);
+ d(i) {
+ i && R(t), l.d(i);
}
};
}
-function ml(a) {
+function wl(o) {
let e = {
effect: (
/*effectiveValue*/
- a[8].effect
+ o[8].effect
),
speed: (
/*effectiveValue*/
- a[8].speed
+ o[8].speed
)
- }, t, n, i = gl(a);
+ }, t, n, l = kl(o);
return {
c() {
- i.c(), t = ot();
+ l.c(), t = _t();
},
- l(l) {
- i.l(l), t = ot();
+ l(i) {
+ l.l(i), t = _t();
},
- m(l, o) {
- i.m(l, o), J(l, t, o), n = !0;
+ m(i, a) {
+ l.m(i, a), ne(i, t, a), n = !0;
},
- p(l, o) {
- o & /*effectiveValue*/
- 256 && pn(e, e = {
+ p(i, a) {
+ a & /*effectiveValue*/
+ 256 && mn(e, e = {
effect: (
/*effectiveValue*/
- l[8].effect
+ i[8].effect
),
speed: (
/*effectiveValue*/
- l[8].speed
+ i[8].speed
)
- }) ? (st(), H(i, 1, 1, Ut), at(), i = gl(l), i.c(), P(i, 1), i.m(t.parentNode, t)) : i.p(l, o);
+ }) ? (ct(), x(l, 1, 1, Zt), ut(), l = kl(i), l.c(), V(l, 1), l.m(t.parentNode, t)) : l.p(i, a);
},
- i(l) {
- n || (P(i), n = !0);
+ i(i) {
+ n || (V(l), n = !0);
},
- o(l) {
- H(i), n = !1;
+ o(i) {
+ x(l), n = !1;
},
- d(l) {
- l && I(t), i.d(l);
+ d(i) {
+ i && R(t), l.d(i);
}
};
}
-function zr(a) {
+function Mr(o) {
let e, t;
- return e = new Ks({
+ return e = new ir({
props: {
credits: (
/*effectiveValue*/
- a[8].credits
+ o[8].credits
),
speed: (
/*effectiveValue*/
- a[8].speed
+ o[8].speed
),
base_font_size: (
/*effectiveValue*/
- a[8].base_font_size
+ o[8].base_font_size
),
intro_title: (
/*effectiveValue*/
- a[8].intro_title
+ o[8].intro_title
),
intro_subtitle: (
/*effectiveValue*/
- a[8].intro_subtitle
+ o[8].intro_subtitle
),
layout_style: (
/*effectiveValue*/
- a[8].layout_style
+ o[8].layout_style
),
title_uppercase: (
/*effectiveValue*/
- a[8].title_uppercase
+ o[8].title_uppercase
),
name_uppercase: (
/*effectiveValue*/
- a[8].name_uppercase
+ o[8].name_uppercase
),
section_title_uppercase: (
/*effectiveValue*/
- a[8].section_title_uppercase
+ o[8].section_title_uppercase
),
swap_font_sizes_on_two_column: (
/*effectiveValue*/
- a[8].swap_font_sizes_on_two_column
+ o[8].swap_font_sizes_on_two_column
+ ),
+ scroll_logo_path: (
+ /*effectiveValue*/
+ o[8].scroll_logo_path
+ ),
+ scroll_logo_height: (
+ /*effectiveValue*/
+ o[8].scroll_logo_height
)
}
}), {
c() {
- kt(e.$$.fragment);
+ Ct(e.$$.fragment);
},
l(n) {
- wt(e.$$.fragment, n);
- },
- m(n, i) {
- $t(e, n, i), t = !0;
- },
- p(n, i) {
- const l = {};
- i & /*effectiveValue*/
- 256 && (l.credits = /*effectiveValue*/
- n[8].credits), i & /*effectiveValue*/
- 256 && (l.speed = /*effectiveValue*/
- n[8].speed), i & /*effectiveValue*/
- 256 && (l.base_font_size = /*effectiveValue*/
- n[8].base_font_size), i & /*effectiveValue*/
- 256 && (l.intro_title = /*effectiveValue*/
- n[8].intro_title), i & /*effectiveValue*/
- 256 && (l.intro_subtitle = /*effectiveValue*/
- n[8].intro_subtitle), i & /*effectiveValue*/
- 256 && (l.layout_style = /*effectiveValue*/
- n[8].layout_style), i & /*effectiveValue*/
- 256 && (l.title_uppercase = /*effectiveValue*/
- n[8].title_uppercase), i & /*effectiveValue*/
- 256 && (l.name_uppercase = /*effectiveValue*/
- n[8].name_uppercase), i & /*effectiveValue*/
- 256 && (l.section_title_uppercase = /*effectiveValue*/
- n[8].section_title_uppercase), i & /*effectiveValue*/
- 256 && (l.swap_font_sizes_on_two_column = /*effectiveValue*/
- n[8].swap_font_sizes_on_two_column), e.$set(l);
+ $t(e.$$.fragment, n);
+ },
+ m(n, l) {
+ At(e, n, l), t = !0;
+ },
+ p(n, l) {
+ const i = {};
+ l & /*effectiveValue*/
+ 256 && (i.credits = /*effectiveValue*/
+ n[8].credits), l & /*effectiveValue*/
+ 256 && (i.speed = /*effectiveValue*/
+ n[8].speed), l & /*effectiveValue*/
+ 256 && (i.base_font_size = /*effectiveValue*/
+ n[8].base_font_size), l & /*effectiveValue*/
+ 256 && (i.intro_title = /*effectiveValue*/
+ n[8].intro_title), l & /*effectiveValue*/
+ 256 && (i.intro_subtitle = /*effectiveValue*/
+ n[8].intro_subtitle), l & /*effectiveValue*/
+ 256 && (i.layout_style = /*effectiveValue*/
+ n[8].layout_style), l & /*effectiveValue*/
+ 256 && (i.title_uppercase = /*effectiveValue*/
+ n[8].title_uppercase), l & /*effectiveValue*/
+ 256 && (i.name_uppercase = /*effectiveValue*/
+ n[8].name_uppercase), l & /*effectiveValue*/
+ 256 && (i.section_title_uppercase = /*effectiveValue*/
+ n[8].section_title_uppercase), l & /*effectiveValue*/
+ 256 && (i.swap_font_sizes_on_two_column = /*effectiveValue*/
+ n[8].swap_font_sizes_on_two_column), l & /*effectiveValue*/
+ 256 && (i.scroll_logo_path = /*effectiveValue*/
+ n[8].scroll_logo_path), l & /*effectiveValue*/
+ 256 && (i.scroll_logo_height = /*effectiveValue*/
+ n[8].scroll_logo_height), e.$set(i);
},
i(n) {
- t || (P(e.$$.fragment, n), t = !0);
+ t || (V(e.$$.fragment, n), t = !0);
},
o(n) {
- H(e.$$.fragment, n), t = !1;
+ x(e.$$.fragment, n), t = !1;
},
d(n) {
- Ft(e, n);
+ Et(e, n);
}
};
}
-function Ir(a) {
+function Nr(o) {
let e, t;
- return e = new Ms({
+ return e = new Us({
props: {
credits: (
/*effectiveValue*/
- a[8].credits
+ o[8].credits
),
speed: (
/*effectiveValue*/
- a[8].speed
+ o[8].speed
),
base_font_size: (
/*effectiveValue*/
- a[8].base_font_size
+ o[8].base_font_size
),
intro_title: (
/*effectiveValue*/
- a[8].intro_title
+ o[8].intro_title
),
intro_subtitle: (
/*effectiveValue*/
- a[8].intro_subtitle
+ o[8].intro_subtitle
),
layout_style: (
/*effectiveValue*/
- a[8].layout_style
+ o[8].layout_style
),
title_uppercase: (
/*effectiveValue*/
- a[8].title_uppercase
+ o[8].title_uppercase
),
name_uppercase: (
/*effectiveValue*/
- a[8].name_uppercase
+ o[8].name_uppercase
),
section_title_uppercase: (
/*effectiveValue*/
- a[8].section_title_uppercase
+ o[8].section_title_uppercase
),
swap_font_sizes_on_two_column: (
/*effectiveValue*/
- a[8].swap_font_sizes_on_two_column
+ o[8].swap_font_sizes_on_two_column
+ ),
+ scroll_logo_path: (
+ /*effectiveValue*/
+ o[8].scroll_logo_path
+ ),
+ scroll_logo_height: (
+ /*effectiveValue*/
+ o[8].scroll_logo_height
)
}
}), {
c() {
- kt(e.$$.fragment);
+ Ct(e.$$.fragment);
},
l(n) {
- wt(e.$$.fragment, n);
- },
- m(n, i) {
- $t(e, n, i), t = !0;
- },
- p(n, i) {
- const l = {};
- i & /*effectiveValue*/
- 256 && (l.credits = /*effectiveValue*/
- n[8].credits), i & /*effectiveValue*/
- 256 && (l.speed = /*effectiveValue*/
- n[8].speed), i & /*effectiveValue*/
- 256 && (l.base_font_size = /*effectiveValue*/
- n[8].base_font_size), i & /*effectiveValue*/
- 256 && (l.intro_title = /*effectiveValue*/
- n[8].intro_title), i & /*effectiveValue*/
- 256 && (l.intro_subtitle = /*effectiveValue*/
- n[8].intro_subtitle), i & /*effectiveValue*/
- 256 && (l.layout_style = /*effectiveValue*/
- n[8].layout_style), i & /*effectiveValue*/
- 256 && (l.title_uppercase = /*effectiveValue*/
- n[8].title_uppercase), i & /*effectiveValue*/
- 256 && (l.name_uppercase = /*effectiveValue*/
- n[8].name_uppercase), i & /*effectiveValue*/
- 256 && (l.section_title_uppercase = /*effectiveValue*/
- n[8].section_title_uppercase), i & /*effectiveValue*/
- 256 && (l.swap_font_sizes_on_two_column = /*effectiveValue*/
- n[8].swap_font_sizes_on_two_column), e.$set(l);
+ $t(e.$$.fragment, n);
+ },
+ m(n, l) {
+ At(e, n, l), t = !0;
+ },
+ p(n, l) {
+ const i = {};
+ l & /*effectiveValue*/
+ 256 && (i.credits = /*effectiveValue*/
+ n[8].credits), l & /*effectiveValue*/
+ 256 && (i.speed = /*effectiveValue*/
+ n[8].speed), l & /*effectiveValue*/
+ 256 && (i.base_font_size = /*effectiveValue*/
+ n[8].base_font_size), l & /*effectiveValue*/
+ 256 && (i.intro_title = /*effectiveValue*/
+ n[8].intro_title), l & /*effectiveValue*/
+ 256 && (i.intro_subtitle = /*effectiveValue*/
+ n[8].intro_subtitle), l & /*effectiveValue*/
+ 256 && (i.layout_style = /*effectiveValue*/
+ n[8].layout_style), l & /*effectiveValue*/
+ 256 && (i.title_uppercase = /*effectiveValue*/
+ n[8].title_uppercase), l & /*effectiveValue*/
+ 256 && (i.name_uppercase = /*effectiveValue*/
+ n[8].name_uppercase), l & /*effectiveValue*/
+ 256 && (i.section_title_uppercase = /*effectiveValue*/
+ n[8].section_title_uppercase), l & /*effectiveValue*/
+ 256 && (i.swap_font_sizes_on_two_column = /*effectiveValue*/
+ n[8].swap_font_sizes_on_two_column), l & /*effectiveValue*/
+ 256 && (i.scroll_logo_path = /*effectiveValue*/
+ n[8].scroll_logo_path), l & /*effectiveValue*/
+ 256 && (i.scroll_logo_height = /*effectiveValue*/
+ n[8].scroll_logo_height), e.$set(i);
},
i(n) {
- t || (P(e.$$.fragment, n), t = !0);
+ t || (V(e.$$.fragment, n), t = !0);
},
o(n) {
- H(e.$$.fragment, n), t = !1;
+ x(e.$$.fragment, n), t = !1;
},
d(n) {
- Ft(e, n);
+ Et(e, n);
}
};
}
-function Rr(a) {
+function jr(o) {
let e, t;
- return e = new Cs({
+ return e = new Ts({
props: {
credits: (
/*effectiveValue*/
- a[8].credits
+ o[8].credits
),
speed: (
/*effectiveValue*/
- a[8].speed
+ o[8].speed
),
base_font_size: (
/*effectiveValue*/
- a[8].base_font_size
+ o[8].base_font_size
),
intro_title: (
/*effectiveValue*/
- a[8].intro_title
+ o[8].intro_title
),
intro_subtitle: (
/*effectiveValue*/
- a[8].intro_subtitle
+ o[8].intro_subtitle
),
background_color: (
/*effectiveValue*/
- a[8].scroll_background_color
+ o[8].scroll_background_color
),
title_color: (
/*effectiveValue*/
- a[8].scroll_title_color
+ o[8].scroll_title_color
),
name_color: (
/*effectiveValue*/
- a[8].scroll_name_color
+ o[8].scroll_name_color
),
layout_style: (
/*effectiveValue*/
- a[8].layout_style
+ o[8].layout_style
),
title_uppercase: (
/*effectiveValue*/
- a[8].title_uppercase
+ o[8].title_uppercase
+ ),
+ scroll_section_title_color: (
+ /*effectiveValue*/
+ o[8].scroll_section_title_color
),
name_uppercase: (
/*effectiveValue*/
- a[8].name_uppercase
+ o[8].name_uppercase
),
section_title_uppercase: (
/*effectiveValue*/
- a[8].section_title_uppercase
+ o[8].section_title_uppercase
),
swap_font_sizes_on_two_column: (
/*effectiveValue*/
- a[8].swap_font_sizes_on_two_column
+ o[8].swap_font_sizes_on_two_column
+ ),
+ scroll_logo_path: (
+ /*effectiveValue*/
+ o[8].scroll_logo_path
+ ),
+ scroll_logo_height: (
+ /*effectiveValue*/
+ o[8].scroll_logo_height
)
}
}), {
c() {
- kt(e.$$.fragment);
+ Ct(e.$$.fragment);
},
l(n) {
- wt(e.$$.fragment, n);
- },
- m(n, i) {
- $t(e, n, i), t = !0;
- },
- p(n, i) {
- const l = {};
- i & /*effectiveValue*/
- 256 && (l.credits = /*effectiveValue*/
- n[8].credits), i & /*effectiveValue*/
- 256 && (l.speed = /*effectiveValue*/
- n[8].speed), i & /*effectiveValue*/
- 256 && (l.base_font_size = /*effectiveValue*/
- n[8].base_font_size), i & /*effectiveValue*/
- 256 && (l.intro_title = /*effectiveValue*/
- n[8].intro_title), i & /*effectiveValue*/
- 256 && (l.intro_subtitle = /*effectiveValue*/
- n[8].intro_subtitle), i & /*effectiveValue*/
- 256 && (l.background_color = /*effectiveValue*/
- n[8].scroll_background_color), i & /*effectiveValue*/
- 256 && (l.title_color = /*effectiveValue*/
- n[8].scroll_title_color), i & /*effectiveValue*/
- 256 && (l.name_color = /*effectiveValue*/
- n[8].scroll_name_color), i & /*effectiveValue*/
- 256 && (l.layout_style = /*effectiveValue*/
- n[8].layout_style), i & /*effectiveValue*/
- 256 && (l.title_uppercase = /*effectiveValue*/
- n[8].title_uppercase), i & /*effectiveValue*/
- 256 && (l.name_uppercase = /*effectiveValue*/
- n[8].name_uppercase), i & /*effectiveValue*/
- 256 && (l.section_title_uppercase = /*effectiveValue*/
- n[8].section_title_uppercase), i & /*effectiveValue*/
- 256 && (l.swap_font_sizes_on_two_column = /*effectiveValue*/
- n[8].swap_font_sizes_on_two_column), e.$set(l);
+ $t(e.$$.fragment, n);
+ },
+ m(n, l) {
+ At(e, n, l), t = !0;
+ },
+ p(n, l) {
+ const i = {};
+ l & /*effectiveValue*/
+ 256 && (i.credits = /*effectiveValue*/
+ n[8].credits), l & /*effectiveValue*/
+ 256 && (i.speed = /*effectiveValue*/
+ n[8].speed), l & /*effectiveValue*/
+ 256 && (i.base_font_size = /*effectiveValue*/
+ n[8].base_font_size), l & /*effectiveValue*/
+ 256 && (i.intro_title = /*effectiveValue*/
+ n[8].intro_title), l & /*effectiveValue*/
+ 256 && (i.intro_subtitle = /*effectiveValue*/
+ n[8].intro_subtitle), l & /*effectiveValue*/
+ 256 && (i.background_color = /*effectiveValue*/
+ n[8].scroll_background_color), l & /*effectiveValue*/
+ 256 && (i.title_color = /*effectiveValue*/
+ n[8].scroll_title_color), l & /*effectiveValue*/
+ 256 && (i.name_color = /*effectiveValue*/
+ n[8].scroll_name_color), l & /*effectiveValue*/
+ 256 && (i.layout_style = /*effectiveValue*/
+ n[8].layout_style), l & /*effectiveValue*/
+ 256 && (i.title_uppercase = /*effectiveValue*/
+ n[8].title_uppercase), l & /*effectiveValue*/
+ 256 && (i.scroll_section_title_color = /*effectiveValue*/
+ n[8].scroll_section_title_color), l & /*effectiveValue*/
+ 256 && (i.name_uppercase = /*effectiveValue*/
+ n[8].name_uppercase), l & /*effectiveValue*/
+ 256 && (i.section_title_uppercase = /*effectiveValue*/
+ n[8].section_title_uppercase), l & /*effectiveValue*/
+ 256 && (i.swap_font_sizes_on_two_column = /*effectiveValue*/
+ n[8].swap_font_sizes_on_two_column), l & /*effectiveValue*/
+ 256 && (i.scroll_logo_path = /*effectiveValue*/
+ n[8].scroll_logo_path), l & /*effectiveValue*/
+ 256 && (i.scroll_logo_height = /*effectiveValue*/
+ n[8].scroll_logo_height), e.$set(i);
},
i(n) {
- t || (P(e.$$.fragment, n), t = !0);
+ t || (V(e.$$.fragment, n), t = !0);
},
o(n) {
- H(e.$$.fragment, n), t = !1;
+ x(e.$$.fragment, n), t = !1;
},
d(n) {
- Ft(e, n);
+ Et(e, n);
}
};
}
-function gl(a) {
- let e, t, n, i;
- const l = [Rr, Ir, zr], o = [];
+function kl(o) {
+ let e, t, n, l;
+ const i = [jr, Nr, Mr], a = [];
function s(r, u) {
return (
/*effectiveValue*/
@@ -9731,47 +9939,47 @@ function gl(a) {
)
);
}
- return ~(t = s(a)) && (n = o[t] = l[t](a)), {
+ return ~(t = s(o)) && (n = a[t] = i[t](o)), {
c() {
- e = oe("div"), n && n.c(), this.h();
+ e = re("div"), n && n.c(), this.h();
},
l(r) {
- e = ae(r, "DIV", { class: !0 });
- var u = Ce(e);
- n && n.l(u), u.forEach(I), this.h();
+ e = se(r, "DIV", { class: !0 });
+ var u = qe(e);
+ n && n.l(u), u.forEach(R), this.h();
},
h() {
- le(e, "class", "main-credits-panel svelte-1hawtr7"), N(
+ ae(e, "class", "main-credits-panel svelte-1hawtr7"), G(
e,
"height",
/*height_style*/
- a[16]
- ), N(
+ o[16]
+ ), G(
e,
"width",
/*effectiveValue*/
- a[8].sidebar_position === "right" && /*effectiveValue*/
- a[8].show_licenses ? "calc(100% - var(--sidebar-width, 400px))" : (
+ o[8].sidebar_position === "right" && /*effectiveValue*/
+ o[8].show_licenses ? "calc(100% - var(--sidebar-width, 400px))" : (
/*width_style*/
- a[15]
+ o[15]
)
);
},
m(r, u) {
- J(r, e, u), ~t && o[t].m(e, null), i = !0;
+ ne(r, e, u), ~t && a[t].m(e, null), l = !0;
},
p(r, u) {
let _ = t;
- t = s(r), t === _ ? ~t && o[t].p(r, u) : (n && (st(), H(o[_], 1, 1, () => {
- o[_] = null;
- }), at()), ~t ? (n = o[t], n ? n.p(r, u) : (n = o[t] = l[t](r), n.c()), P(n, 1), n.m(e, null)) : n = null), u & /*height_style*/
- 65536 && N(
+ t = s(r), t === _ ? ~t && a[t].p(r, u) : (n && (ct(), x(a[_], 1, 1, () => {
+ a[_] = null;
+ }), ut()), ~t ? (n = a[t], n ? n.p(r, u) : (n = a[t] = i[t](r), n.c()), V(n, 1), n.m(e, null)) : n = null), u & /*height_style*/
+ 65536 && G(
e,
"height",
/*height_style*/
r[16]
), u & /*effectiveValue, width_style*/
- 33024 && N(
+ 33024 && G(
e,
"width",
/*effectiveValue*/
@@ -9783,79 +9991,79 @@ function gl(a) {
);
},
i(r) {
- i || (P(n), i = !0);
+ l || (V(n), l = !0);
},
o(r) {
- H(n), i = !1;
+ x(n), l = !1;
},
d(r) {
- r && I(e), ~t && o[t].d();
+ r && R(e), ~t && a[t].d();
}
};
}
-function vl(a) {
- let e, t, n = "Licenses", i, l, o = [], s = /* @__PURE__ */ new Map(), r, u = ul(Object.entries(
+function Fl(o) {
+ let e, t, n = "Licenses", l, i, a = [], s = /* @__PURE__ */ new Map(), r, u = pl(Object.entries(
/*effectiveValue*/
- a[8].licenses
+ o[8].licenses
));
const _ = (c) => (
/*name*/
c[24]
);
for (let c = 0; c < u.length; c += 1) {
- let h = dl(a, u, c), g = _(h);
- s.set(g, o[c] = bl(g, h));
+ let h = vl(o, u, c), m = _(h);
+ s.set(m, a[c] = $l(m, h));
}
let d = (
/*selected_license_name*/
- a[9] && Dl(a)
+ o[9] && Cl(o)
);
return {
c() {
- e = oe("div"), t = oe("h3"), t.textContent = n, i = tt(), l = oe("ul");
- for (let c = 0; c < o.length; c += 1)
- o[c].c();
- r = tt(), d && d.c(), this.h();
+ e = re("div"), t = re("h3"), t.textContent = n, l = nt(), i = re("ul");
+ for (let c = 0; c < a.length; c += 1)
+ a[c].c();
+ r = nt(), d && d.c(), this.h();
},
l(c) {
- e = ae(c, "DIV", { class: !0 });
- var h = Ce(e);
- t = ae(h, "H3", { class: !0, "data-svelte-h": !0 }), Zn(t) !== "svelte-1txs4lo" && (t.textContent = n), i = et(h), l = ae(h, "UL", {});
- var g = Ce(l);
- for (let p = 0; p < o.length; p += 1)
- o[p].l(g);
- g.forEach(I), r = et(h), d && d.l(h), h.forEach(I), this.h();
+ e = se(c, "DIV", { class: !0 });
+ var h = qe(e);
+ t = se(h, "H3", { class: !0, "data-svelte-h": !0 }), Xn(t) !== "svelte-1txs4lo" && (t.textContent = n), l = tt(h), i = se(h, "UL", {});
+ var m = qe(i);
+ for (let p = 0; p < a.length; p += 1)
+ a[p].l(m);
+ m.forEach(R), r = tt(h), d && d.l(h), h.forEach(R), this.h();
},
h() {
- le(t, "class", "svelte-1hawtr7"), le(e, "class", "licenses-sidebar svelte-1hawtr7");
+ ae(t, "class", "svelte-1hawtr7"), ae(e, "class", "licenses-sidebar svelte-1hawtr7");
},
m(c, h) {
- J(c, e, h), re(e, t), re(e, i), re(e, l);
- for (let g = 0; g < o.length; g += 1)
- o[g] && o[g].m(l, null);
- re(e, r), d && d.m(e, null);
+ ne(c, e, h), fe(e, t), fe(e, l), fe(e, i);
+ for (let m = 0; m < a.length; m += 1)
+ a[m] && a[m].m(i, null);
+ fe(e, r), d && d.m(e, null);
},
p(c, h) {
h & /*selected_license_name, Object, effectiveValue, show_license*/
- 131840 && (u = ul(Object.entries(
+ 131840 && (u = pl(Object.entries(
/*effectiveValue*/
c[8].licenses
- )), o = Sr(o, h, _, 1, c, u, s, l, kr, bl, null, dl)), /*selected_license_name*/
- c[9] ? d ? d.p(c, h) : (d = Dl(c), d.c(), d.m(e, null)) : d && (d.d(1), d = null);
+ )), a = Rr(a, h, _, 1, c, u, s, i, Sr, $l, null, vl)), /*selected_license_name*/
+ c[9] ? d ? d.p(c, h) : (d = Cl(c), d.c(), d.m(e, null)) : d && (d.d(1), d = null);
},
d(c) {
- c && I(e);
- for (let h = 0; h < o.length; h += 1)
- o[h].d();
+ c && R(e);
+ for (let h = 0; h < a.length; h += 1)
+ a[h].d();
d && d.d();
}
};
}
-function bl(a, e) {
- let t, n, i = (
+function $l(o, e) {
+ let t, n, l = (
/*name*/
e[24] + ""
- ), l, o, s, r;
+ ), i, a, s, r;
function u() {
return (
/*click_handler*/
@@ -9866,35 +10074,35 @@ function bl(a, e) {
);
}
return {
- key: a,
+ key: o,
first: null,
c() {
- t = oe("li"), n = oe("button"), l = Mn(i), o = tt(), this.h();
+ t = re("li"), n = re("button"), i = Nn(l), a = nt(), this.h();
},
l(_) {
- t = ae(_, "LI", { class: !0 });
- var d = Ce(t);
- n = ae(d, "BUTTON", { type: !0, class: !0 });
- var c = Ce(n);
- l = On(c, i), c.forEach(I), o = et(d), d.forEach(I), this.h();
+ t = se(_, "LI", { class: !0 });
+ var d = qe(t);
+ n = se(d, "BUTTON", { type: !0, class: !0 });
+ var c = qe(n);
+ i = Pn(c, l), c.forEach(R), a = tt(d), d.forEach(R), this.h();
},
h() {
- le(n, "type", "button"), le(n, "class", "svelte-1hawtr7"), cl(
+ ae(n, "type", "button"), ae(n, "class", "svelte-1hawtr7"), gl(
n,
"selected",
/*selected_license_name*/
e[9] === /*name*/
e[24]
- ), le(t, "class", "svelte-1hawtr7"), this.first = t;
+ ), ae(t, "class", "svelte-1hawtr7"), this.first = t;
},
m(_, d) {
- J(_, t, d), re(t, n), re(n, l), re(t, o), s || (r = Ar(n, "click", u), s = !0);
+ ne(_, t, d), fe(t, n), fe(n, i), fe(t, a), s || (r = Ir(n, "click", u), s = !0);
},
p(_, d) {
e = _, d & /*effectiveValue*/
- 256 && i !== (i = /*name*/
- e[24] + "") && Pn(l, i), d & /*selected_license_name, Object, effectiveValue*/
- 768 && cl(
+ 256 && l !== (l = /*name*/
+ e[24] + "") && Mn(i, l), d & /*selected_license_name, Object, effectiveValue*/
+ 768 && gl(
n,
"selected",
/*selected_license_name*/
@@ -9903,128 +10111,128 @@ function bl(a, e) {
);
},
d(_) {
- _ && I(t), s = !1, r();
+ _ && R(t), s = !1, r();
}
};
}
-function Dl(a) {
- let e, t, n, i, l, o = (
+function Cl(o) {
+ let e, t, n, l, i, a = (
/*effectiveValue*/
- a[8].licenses[
+ o[8].licenses[
/*selected_license_name*/
- a[9]
+ o[9]
] + ""
), s;
return {
c() {
- e = oe("div"), t = oe("h4"), n = Mn(
+ e = re("div"), t = re("h4"), n = Nn(
/*selected_license_name*/
- a[9]
- ), i = tt(), l = oe("pre"), s = Mn(o), this.h();
+ o[9]
+ ), l = nt(), i = re("pre"), s = Nn(a), this.h();
},
l(r) {
- e = ae(r, "DIV", { class: !0 });
- var u = Ce(e);
- t = ae(u, "H4", { class: !0 });
- var _ = Ce(t);
- n = On(
+ e = se(r, "DIV", { class: !0 });
+ var u = qe(e);
+ t = se(u, "H4", { class: !0 });
+ var _ = qe(t);
+ n = Pn(
_,
/*selected_license_name*/
- a[9]
- ), _.forEach(I), i = et(u), l = ae(u, "PRE", { class: !0 });
- var d = Ce(l);
- s = On(d, o), d.forEach(I), u.forEach(I), this.h();
+ o[9]
+ ), _.forEach(R), l = tt(u), i = se(u, "PRE", { class: !0 });
+ var d = qe(i);
+ s = Pn(d, a), d.forEach(R), u.forEach(R), this.h();
},
h() {
- le(t, "class", "svelte-1hawtr7"), le(l, "class", "svelte-1hawtr7"), le(e, "class", "license-display svelte-1hawtr7");
+ ae(t, "class", "svelte-1hawtr7"), ae(i, "class", "svelte-1hawtr7"), ae(e, "class", "license-display svelte-1hawtr7");
},
m(r, u) {
- J(r, e, u), re(e, t), re(t, n), re(e, i), re(e, l), re(l, s);
+ ne(r, e, u), fe(e, t), fe(t, n), fe(e, l), fe(e, i), fe(i, s);
},
p(r, u) {
u & /*selected_license_name*/
- 512 && Pn(
+ 512 && Mn(
n,
/*selected_license_name*/
r[9]
), u & /*effectiveValue, selected_license_name*/
- 768 && o !== (o = /*effectiveValue*/
+ 768 && a !== (a = /*effectiveValue*/
r[8].licenses[
/*selected_license_name*/
r[9]
- ] + "") && Pn(s, o);
+ ] + "") && Mn(s, a);
},
d(r) {
- r && I(e);
+ r && R(e);
}
};
}
-function yl(a) {
- let e, t, n, i = (
+function El(o) {
+ let e, t, n, l = (
/*effectiveValue*/
- a[8].show_licenses && Object.keys(
+ o[8].show_licenses && Object.keys(
/*effectiveValue*/
- a[8].licenses
+ o[8].licenses
).length > 0
- ), l, o = (
+ ), i, a = (
/*effectiveValue*/
- a[8].show_credits && ml(a)
- ), s = i && vl(a);
+ o[8].show_credits && wl(o)
+ ), s = l && Fl(o);
return {
c() {
- e = oe("div"), t = oe("div"), o && o.c(), n = tt(), s && s.c(), this.h();
+ e = re("div"), t = re("div"), a && a.c(), n = nt(), s && s.c(), this.h();
},
l(r) {
- e = ae(r, "DIV", { class: !0 });
- var u = Ce(e);
- t = ae(u, "DIV", { class: !0 });
- var _ = Ce(t);
- o && o.l(_), n = et(_), s && s.l(_), _.forEach(I), u.forEach(I), this.h();
+ e = se(r, "DIV", { class: !0 });
+ var u = qe(e);
+ t = se(u, "DIV", { class: !0 });
+ var _ = qe(t);
+ a && a.l(_), n = tt(_), s && s.l(_), _.forEach(R), u.forEach(R), this.h();
},
h() {
- le(t, "class", "credits-panel-wrapper svelte-1hawtr7"), N(
+ ae(t, "class", "credits-panel-wrapper svelte-1hawtr7"), G(
t,
"width",
/*width_style*/
- a[15]
- ), N(
+ o[15]
+ ), G(
t,
"height",
/*effectiveValue*/
- a[8].sidebar_position === "right" ? (
+ o[8].sidebar_position === "right" ? (
/*height_style*/
- a[16]
+ o[16]
) : void 0
- ), N(t, "--main-panel-width", !/*effectiveValue*/
- a[8].show_credits && /*effectiveValue*/
- a[8].show_licenses ? "0px" : "auto"), le(e, "class", "outer-credits-wrapper svelte-1hawtr7"), N(
+ ), G(t, "--main-panel-width", !/*effectiveValue*/
+ o[8].show_credits && /*effectiveValue*/
+ o[8].show_licenses ? "0px" : "auto"), ae(e, "class", "outer-credits-wrapper svelte-1hawtr7"), G(
e,
"width",
/*width_style*/
- a[15]
+ o[15]
);
},
m(r, u) {
- J(r, e, u), re(e, t), o && o.m(t, null), re(t, n), s && s.m(t, null), l = !0;
+ ne(r, e, u), fe(e, t), a && a.m(t, null), fe(t, n), s && s.m(t, null), i = !0;
},
p(r, u) {
/*effectiveValue*/
- r[8].show_credits ? o ? (o.p(r, u), u & /*effectiveValue*/
- 256 && P(o, 1)) : (o = ml(r), o.c(), P(o, 1), o.m(t, n)) : o && (st(), H(o, 1, 1, () => {
- o = null;
- }), at()), u & /*effectiveValue*/
- 256 && (i = /*effectiveValue*/
+ r[8].show_credits ? a ? (a.p(r, u), u & /*effectiveValue*/
+ 256 && V(a, 1)) : (a = wl(r), a.c(), V(a, 1), a.m(t, n)) : a && (ct(), x(a, 1, 1, () => {
+ a = null;
+ }), ut()), u & /*effectiveValue*/
+ 256 && (l = /*effectiveValue*/
r[8].show_licenses && Object.keys(
/*effectiveValue*/
r[8].licenses
- ).length > 0), i ? s ? s.p(r, u) : (s = vl(r), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u & /*width_style*/
- 32768 && N(
+ ).length > 0), l ? s ? s.p(r, u) : (s = Fl(r), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u & /*width_style*/
+ 32768 && G(
t,
"width",
/*width_style*/
r[15]
), u & /*effectiveValue, height_style*/
- 65792 && N(
+ 65792 && G(
t,
"height",
/*effectiveValue*/
@@ -10033,10 +10241,10 @@ function yl(a) {
r[16]
) : void 0
), u & /*effectiveValue*/
- 256 && N(t, "--main-panel-width", !/*effectiveValue*/
+ 256 && G(t, "--main-panel-width", !/*effectiveValue*/
r[8].show_credits && /*effectiveValue*/
r[8].show_licenses ? "0px" : "auto"), u & /*width_style*/
- 32768 && N(
+ 32768 && G(
e,
"width",
/*width_style*/
@@ -10044,123 +10252,123 @@ function yl(a) {
);
},
i(r) {
- l || (P(o), l = !0);
+ i || (V(a), i = !0);
},
o(r) {
- H(o), l = !1;
+ x(a), i = !1;
},
d(r) {
- r && I(e), o && o.d(), s && s.d();
+ r && R(e), a && a.d(), s && s.d();
}
};
}
-function Lr(a) {
- var c, h, g;
- let e, t, n, i = (
+function Vr(o) {
+ var c, h, m;
+ let e, t, n, l = (
/*effectiveValue*/
- a[8].logo_position
- ), l, o, s;
- e = new ms({
+ o[8].logo_position
+ ), i, a, s;
+ e = new ws({
props: {
autoscroll: (
/*gradio*/
- a[7].autoscroll
+ o[7].autoscroll
),
i18n: (
/*gradio*/
- a[7].i18n
+ o[7].i18n
),
queue_position: (
/*loading_status*/
- ((c = a[6]) == null ? void 0 : c.queue_position) ?? -1
+ ((c = o[6]) == null ? void 0 : c.queue_position) ?? -1
),
queue_size: (
/*loading_status*/
- ((h = a[6]) == null ? void 0 : h.queue_size) ?? 0
+ ((h = o[6]) == null ? void 0 : h.queue_size) ?? 0
),
status: (
/*loading_status*/
- ((g = a[6]) == null ? void 0 : g.status) ?? "complete"
+ ((m = o[6]) == null ? void 0 : m.status) ?? "complete"
)
}
});
const r = (
/*#slots*/
- a[21].default
- ), u = wr(
+ o[21].default
+ ), u = Ar(
r,
- a,
+ o,
/*$$scope*/
- a[23],
+ o[23],
null
);
- let _ = hl(a), d = (
+ let _ = Dl(o), d = (
/*effectiveValue*/
- (a[8].show_licenses || /*effectiveValue*/
- a[8].show_credits) && pl(a)
+ (o[8].show_licenses || /*effectiveValue*/
+ o[8].show_credits) && yl(o)
);
return {
c() {
- kt(e.$$.fragment), t = tt(), u && u.c(), n = tt(), _.c(), l = tt(), d && d.c(), o = ot();
+ Ct(e.$$.fragment), t = nt(), u && u.c(), n = nt(), _.c(), i = nt(), d && d.c(), a = _t();
},
l(p) {
- wt(e.$$.fragment, p), t = et(p), u && u.l(p), n = et(p), _.l(p), l = et(p), d && d.l(p), o = ot();
+ $t(e.$$.fragment, p), t = tt(p), u && u.l(p), n = tt(p), _.l(p), i = tt(p), d && d.l(p), a = _t();
},
- m(p, D) {
- $t(e, p, D), J(p, t, D), u && u.m(p, D), J(p, n, D), _.m(p, D), J(p, l, D), d && d.m(p, D), J(p, o, D), s = !0;
+ m(p, b) {
+ At(e, p, b), ne(p, t, b), u && u.m(p, b), ne(p, n, b), _.m(p, b), ne(p, i, b), d && d.m(p, b), ne(p, a, b), s = !0;
},
- p(p, D) {
- var m, f, v;
+ p(p, b) {
+ var g, f, v;
const k = {};
- D & /*gradio*/
+ b & /*gradio*/
128 && (k.autoscroll = /*gradio*/
- p[7].autoscroll), D & /*gradio*/
+ p[7].autoscroll), b & /*gradio*/
128 && (k.i18n = /*gradio*/
- p[7].i18n), D & /*loading_status*/
+ p[7].i18n), b & /*loading_status*/
64 && (k.queue_position = /*loading_status*/
- ((m = p[6]) == null ? void 0 : m.queue_position) ?? -1), D & /*loading_status*/
+ ((g = p[6]) == null ? void 0 : g.queue_position) ?? -1), b & /*loading_status*/
64 && (k.queue_size = /*loading_status*/
- ((f = p[6]) == null ? void 0 : f.queue_size) ?? 0), D & /*loading_status*/
+ ((f = p[6]) == null ? void 0 : f.queue_size) ?? 0), b & /*loading_status*/
64 && (k.status = /*loading_status*/
- ((v = p[6]) == null ? void 0 : v.status) ?? "complete"), e.$set(k), u && u.p && (!s || D & /*$$scope*/
- 8388608) && Br(
+ ((v = p[6]) == null ? void 0 : v.status) ?? "complete"), e.$set(k), u && u.p && (!s || b & /*$$scope*/
+ 8388608) && Lr(
u,
r,
p,
/*$$scope*/
p[23],
- s ? $r(
+ s ? Br(
r,
/*$$scope*/
p[23],
- D,
+ b,
null
- ) : Fr(
+ ) : qr(
/*$$scope*/
p[23]
),
null
- ), D & /*effectiveValue*/
- 256 && pn(i, i = /*effectiveValue*/
- p[8].logo_position) ? (st(), H(_, 1, 1, Ut), at(), _ = hl(p), _.c(), P(_, 1), _.m(l.parentNode, l)) : _.p(p, D), /*effectiveValue*/
+ ), b & /*effectiveValue*/
+ 256 && mn(l, l = /*effectiveValue*/
+ p[8].logo_position) ? (ct(), x(_, 1, 1, Zt), ut(), _ = Dl(p), _.c(), V(_, 1), _.m(i.parentNode, i)) : _.p(p, b), /*effectiveValue*/
p[8].show_licenses || /*effectiveValue*/
- p[8].show_credits ? d ? (d.p(p, D), D & /*effectiveValue*/
- 256 && P(d, 1)) : (d = pl(p), d.c(), P(d, 1), d.m(o.parentNode, o)) : d && (st(), H(d, 1, 1, () => {
+ p[8].show_credits ? d ? (d.p(p, b), b & /*effectiveValue*/
+ 256 && V(d, 1)) : (d = yl(p), d.c(), V(d, 1), d.m(a.parentNode, a)) : d && (ct(), x(d, 1, 1, () => {
d = null;
- }), at());
+ }), ut());
},
i(p) {
- s || (P(e.$$.fragment, p), P(u, p), P(_), P(d), s = !0);
+ s || (V(e.$$.fragment, p), V(u, p), V(_), V(d), s = !0);
},
o(p) {
- H(e.$$.fragment, p), H(u, p), H(_), H(d), s = !1;
+ x(e.$$.fragment, p), x(u, p), x(_), x(d), s = !1;
},
d(p) {
- p && (I(t), I(n), I(l), I(o)), Ft(e, p), u && u.d(p), _.d(p), d && d.d(p);
+ p && (R(t), R(n), R(i), R(a)), Et(e, p), u && u.d(p), _.d(p), d && d.d(p);
}
};
}
-function Or(a) {
+function Hr(o) {
let e, t = `.credits-panel-wrapper {
flex-direction: row !important;
--panel-direction: row;
@@ -10174,20 +10382,20 @@ function Or(a) {
.main-credits-panel { width: calc(100% - var(--sidebar-width, 400px)) !important; }`;
return {
c() {
- e = oe("style"), e.textContent = t;
+ e = re("style"), e.textContent = t;
},
l(n) {
- e = ae(n, "STYLE", { "data-svelte-h": !0 }), Zn(e) !== "svelte-1hbm6cs" && (e.textContent = t);
+ e = se(n, "STYLE", { "data-svelte-h": !0 }), Xn(e) !== "svelte-1hbm6cs" && (e.textContent = t);
},
- m(n, i) {
- J(n, e, i);
+ m(n, l) {
+ ne(n, e, l);
},
d(n) {
- n && I(e);
+ n && R(e);
}
};
}
-function Pr(a) {
+function Gr(o) {
let e, t = `.credits-panel-wrapper {
flex-direction: column !important;
--panel-direction: column;
@@ -10207,70 +10415,70 @@ function Pr(a) {
}`;
return {
c() {
- e = oe("style"), e.textContent = t;
+ e = re("style"), e.textContent = t;
},
l(n) {
- e = ae(n, "STYLE", { "data-svelte-h": !0 }), Zn(e) !== "svelte-gyscx4" && (e.textContent = t);
+ e = se(n, "STYLE", { "data-svelte-h": !0 }), Xn(e) !== "svelte-gyscx4" && (e.textContent = t);
},
- m(n, i) {
- J(n, e, i);
+ m(n, l) {
+ ne(n, e, l);
},
d(n) {
- n && I(e);
+ n && R(e);
}
};
}
-function Mr(a) {
- let e, t, n, i;
- e = new ba({
+function Ur(o) {
+ let e, t, n, l;
+ e = new Co({
props: {
visible: (
/*visible*/
- a[2]
+ o[2]
),
elem_id: (
/*elem_id*/
- a[0]
+ o[0]
),
elem_classes: (
/*elem_classes*/
- a[1]
+ o[1]
),
container: (
/*container*/
- a[3]
+ o[3]
),
scale: (
/*scale*/
- a[4]
+ o[4]
),
min_width: (
/*min_width*/
- a[5]
+ o[5]
),
padding: !1,
- $$slots: { default: [Lr] },
- $$scope: { ctx: a }
+ $$slots: { default: [Vr] },
+ $$scope: { ctx: o }
}
});
- function l(r, u) {
+ function i(r, u) {
return (
/*effectiveValue*/
- r[8].sidebar_position === "bottom" ? Pr : Or
+ r[8].sidebar_position === "bottom" ? Gr : Hr
);
}
- let o = l(a), s = o(a);
+ let a = i(o), s = a(o);
return {
c() {
- kt(e.$$.fragment), t = tt(), s.c(), n = ot();
+ Ct(e.$$.fragment), t = nt(), s.c(), n = _t();
},
l(r) {
- wt(e.$$.fragment, r), t = et(r);
- const u = Cr("svelte-1lsh18a", document.head);
- s.l(u), n = ot(), u.forEach(I);
+ $t(e.$$.fragment, r), t = tt(r);
+ const u = Tr("svelte-1lsh18a", document.head);
+ s.l(u), n = _t(), u.forEach(R);
},
m(r, u) {
- $t(e, r, u), J(r, t, u), s.m(document.head, null), re(document.head, n), i = !0;
+ At(e, r, u), ne(r, t, u), s.m(document.head, null), fe(document.head, n), l = !0;
},
p(r, [u]) {
const _ = {};
@@ -10287,29 +10495,29 @@ function Mr(a) {
r[4]), u & /*min_width*/
32 && (_.min_width = /*min_width*/
r[5]), u & /*$$scope, effectiveValue, width_style, height_style, selected_license_name, logo_panel_height, logo_justify, gradio, logo_width_style, logo_height_style, object_fit, loading_status*/
- 8519616 && (_.$$scope = { dirty: u, ctx: r }), e.$set(_), o !== (o = l(r)) && (s.d(1), s = o(r), s && (s.c(), s.m(n.parentNode, n)));
+ 8519616 && (_.$$scope = { dirty: u, ctx: r }), e.$set(_), a !== (a = i(r)) && (s.d(1), s = a(r), s && (s.c(), s.m(n.parentNode, n)));
},
i(r) {
- i || (P(e.$$.fragment, r), i = !0);
+ l || (V(e.$$.fragment, r), l = !0);
},
o(r) {
- H(e.$$.fragment, r), i = !1;
+ x(e.$$.fragment, r), l = !1;
},
d(r) {
- r && I(t), Ft(e, r), s.d(r), I(n);
+ r && R(t), Et(e, r), s.d(r), R(n);
}
};
}
-function Nr(a, e, t) {
- let n, i, l, o, s, r, u, _, { $$slots: d = {}, $$scope: c } = e, { value: h = null } = e, { elem_id: g = "" } = e, { elem_classes: p = [] } = e, { visible: D = !0 } = e, { container: k = !0 } = e, { scale: m = null } = e, { min_width: f = void 0 } = e, { height: v = void 0 } = e, { width: y = void 0 } = e, { loading_status: b } = e, { gradio: F } = e, A = null;
- function E(w) {
- t(9, A = A === w ? null : w);
+function Zr(o, e, t) {
+ let n, l, i, a, s, r, u, _, { $$slots: d = {}, $$scope: c } = e, { value: h = null } = e, { elem_id: m = "" } = e, { elem_classes: p = [] } = e, { visible: b = !0 } = e, { container: k = !0 } = e, { scale: g = null } = e, { min_width: f = void 0 } = e, { height: v = void 0 } = e, { width: D = void 0 } = e, { loading_status: w } = e, { gradio: F } = e, A = null;
+ function y(E) {
+ t(9, A = A === E ? null : E);
}
- const q = (w) => E(w);
- return a.$$set = (w) => {
- "value" in w && t(18, h = w.value), "elem_id" in w && t(0, g = w.elem_id), "elem_classes" in w && t(1, p = w.elem_classes), "visible" in w && t(2, D = w.visible), "container" in w && t(3, k = w.container), "scale" in w && t(4, m = w.scale), "min_width" in w && t(5, f = w.min_width), "height" in w && t(19, v = w.height), "width" in w && t(20, y = w.width), "loading_status" in w && t(6, b = w.loading_status), "gradio" in w && t(7, F = w.gradio), "$$scope" in w && t(23, c = w.$$scope);
- }, a.$$.update = () => {
- a.$$.dirty & /*value*/
+ const T = (E) => y(E);
+ return o.$$set = (E) => {
+ "value" in E && t(18, h = E.value), "elem_id" in E && t(0, m = E.elem_id), "elem_classes" in E && t(1, p = E.elem_classes), "visible" in E && t(2, b = E.visible), "container" in E && t(3, k = E.container), "scale" in E && t(4, g = E.scale), "min_width" in E && t(5, f = E.min_width), "height" in E && t(19, v = E.height), "width" in E && t(20, D = E.width), "loading_status" in E && t(6, w = E.loading_status), "gradio" in E && t(7, F = E.gradio), "$$scope" in E && t(23, c = E.$$scope);
+ }, o.$$.update = () => {
+ o.$$.dirty & /*value*/
262144 && t(8, n = h || {
credits: [
{ section_title: "Default Team" },
@@ -10342,28 +10550,31 @@ function Nr(a, e, t) {
logo_height: null,
scroll_background_color: null,
scroll_title_color: null,
+ scroll_section_title_color: null,
scroll_name_color: null,
layout_style: "stacked",
title_uppercase: !1,
name_uppercase: !1,
section_title_uppercase: !0,
- swap_font_sizes_on_two_column: !1
- }), a.$$.dirty & /*height*/
- 524288 && t(16, i = typeof v == "number" ? `${v}px` : v || "500px"), a.$$.dirty & /*width*/
- 1048576 && t(15, l = typeof y == "number" ? `${y}px` : y || "100%"), a.$$.dirty & /*effectiveValue*/
- 256 && t(14, o = n.logo_width ? typeof n.logo_width == "number" ? `${n.logo_width}px` : n.logo_width : "auto"), a.$$.dirty & /*effectiveValue*/
- 256 && t(13, s = n.logo_height ? typeof n.logo_height == "number" ? `${n.logo_height}px` : n.logo_height : "100px"), a.$$.dirty & /*effectiveValue*/
- 256 && t(12, r = n.logo_height ? typeof n.logo_height == "number" ? `${n.logo_height}px` : n.logo_height : "100px"), a.$$.dirty & /*effectiveValue*/
- 256 && t(11, u = n.logo_sizing === "stretch" ? "fill" : n.logo_sizing === "crop" ? "cover" : "contain"), a.$$.dirty & /*effectiveValue*/
+ swap_font_sizes_on_two_column: !1,
+ scroll_logo_path: null,
+ scroll_logo_height: "120px"
+ }), o.$$.dirty & /*height*/
+ 524288 && t(16, l = typeof v == "number" ? `${v}px` : v || "500px"), o.$$.dirty & /*width*/
+ 1048576 && t(15, i = typeof D == "number" ? `${D}px` : D || "100%"), o.$$.dirty & /*effectiveValue*/
+ 256 && t(14, a = n.logo_width ? typeof n.logo_width == "number" ? `${n.logo_width}px` : n.logo_width : "auto"), o.$$.dirty & /*effectiveValue*/
+ 256 && t(13, s = n.logo_height ? typeof n.logo_height == "number" ? `${n.logo_height}px` : n.logo_height : "100px"), o.$$.dirty & /*effectiveValue*/
+ 256 && t(12, r = n.logo_height ? typeof n.logo_height == "number" ? `${n.logo_height}px` : n.logo_height : "100px"), o.$$.dirty & /*effectiveValue*/
+ 256 && t(11, u = n.logo_sizing === "stretch" ? "fill" : n.logo_sizing === "crop" ? "cover" : "contain"), o.$$.dirty & /*effectiveValue*/
256 && t(10, _ = n.logo_position === "center" ? "center" : n.logo_position === "left" ? "flex-start" : "flex-end");
}, [
- g,
+ m,
p,
- D,
+ b,
k,
- m,
+ g,
f,
- b,
+ w,
F,
n,
A,
@@ -10371,21 +10582,21 @@ function Nr(a, e, t) {
u,
r,
s,
- o,
- l,
+ a,
i,
- E,
+ l,
+ y,
h,
v,
- y,
+ D,
d,
- q,
+ T,
c
];
}
-class R5 extends yr {
+class j4 extends Er {
constructor(e) {
- super(), Er(this, e, Nr, Mr, pn, {
+ super(), zr(this, e, Zr, Ur, mn, {
value: 18,
elem_id: 0,
elem_classes: 1,
@@ -10401,5 +10612,5 @@ class R5 extends yr {
}
}
export {
- R5 as default
+ j4 as default
};