diff --git "a/src/backend/gradio_propertysheet/templates/component/index.js" "b/src/backend/gradio_propertysheet/templates/component/index.js" --- "a/src/backend/gradio_propertysheet/templates/component/index.js" +++ "b/src/backend/gradio_propertysheet/templates/component/index.js" @@ -15,7 +15,7 @@ const { children: tn, claim_element: Ya, claim_space: Xa, - claim_svg_element: Pn, + claim_svg_element: Mn, create_slot: Jl, detach: nt, element: Ka, @@ -31,7 +31,7 @@ const { set_dynamic_element_data: Ri, set_style: W, space: Qa, - svg_element: xn, + svg_element: Pn, toggle_class: pe, transition_in: Ja, transition_out: el, @@ -41,19 +41,19 @@ function Ii(i) { let e, t, n, l, o; return { c() { - e = xn("svg"), t = xn("line"), n = xn("line"), this.h(); + e = Pn("svg"), t = Pn("line"), n = Pn("line"), this.h(); }, l(a) { - e = Pn(a, "svg", { class: !0, xmlns: !0, viewBox: !0 }); + e = Mn(a, "svg", { class: !0, xmlns: !0, viewBox: !0 }); var r = tn(e); - t = Pn(r, "line", { + t = Mn(r, "line", { x1: !0, y1: !0, x2: !0, y2: !0, stroke: !0, "stroke-width": !0 - }), tn(t).forEach(nt), n = Pn(r, "line", { + }), tn(t).forEach(nt), n = Mn(r, "line", { x1: !0, y1: !0, x2: !0, @@ -556,40 +556,40 @@ function uo(i) { }; } function co(i, e, t) { - let { $$slots: n = {}, $$scope: l } = e, { height: o = void 0 } = e, { min_height: a = void 0 } = e, { max_height: r = void 0 } = e, { width: s = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: c = [] } = e, { variant: m = "solid" } = e, { border_mode: f = "base" } = e, { padding: d = !0 } = e, { type: v = "normal" } = e, { test_id: y = void 0 } = e, { explicit_call: w = !1 } = e, { container: C = !0 } = e, { visible: h = !0 } = e, { allow_overflow: _ = !0 } = e, { overflow_behavior: g = "auto" } = e, { scale: b = null } = e, { min_width: F = 0 } = e, { flex: A = !1 } = e, { resizable: T = !1 } = e, { rtl: S = !1 } = e, { fullscreen: M = !1 } = e, N = M, G, Fe = v === "fieldset" ? "fieldset" : "div", ue = 0, $e = 0, _e = null; - function ne($) { - M && $.key === "Escape" && t(0, M = !1); - } - const X = ($) => { - if ($ !== void 0) { - if (typeof $ == "number") - return $ + "px"; - if (typeof $ == "string") - return $; + let { $$slots: n = {}, $$scope: l } = e, { height: o = void 0 } = e, { min_height: a = void 0 } = e, { max_height: r = void 0 } = e, { width: s = void 0 } = e, { elem_id: u = "" } = e, { elem_classes: c = [] } = e, { variant: m = "solid" } = e, { border_mode: f = "base" } = e, { padding: d = !0 } = e, { type: v = "normal" } = e, { test_id: y = void 0 } = e, { explicit_call: w = !1 } = e, { container: C = !0 } = e, { visible: h = !0 } = e, { allow_overflow: _ = !0 } = e, { overflow_behavior: g = "auto" } = e, { scale: b = null } = e, { min_width: F = 0 } = e, { flex: A = !1 } = e, { resizable: T = !1 } = e, { rtl: S = !1 } = e, { fullscreen: z = !1 } = e, N = z, j, Fe = v === "fieldset" ? "fieldset" : "div", ue = 0, ke = 0, _e = null; + function ne(k) { + z && k.key === "Escape" && t(0, z = !1); + } + const X = (k) => { + if (k !== void 0) { + if (typeof k == "number") + return k + "px"; + if (typeof k == "string") + return k; } - }, se = ($) => { - let oe = $.clientY; + }, se = (k) => { + let oe = k.clientY; const K = (E) => { const Ce = E.clientY - oe; - oe = E.clientY, t(21, G.style.height = `${G.offsetHeight + Ce}px`, G); + oe = E.clientY, t(21, j.style.height = `${j.offsetHeight + Ce}px`, j); }, de = () => { window.removeEventListener("mousemove", K), window.removeEventListener("mouseup", de); }; window.addEventListener("mousemove", K), window.addEventListener("mouseup", de); }; - function ge($) { - Ql[$ ? "unshift" : "push"](() => { - G = $, t(21, G); + function ge(k) { + Ql[k ? "unshift" : "push"](() => { + j = k, t(21, j); }); } - return i.$$set = ($) => { - "height" in $ && t(2, o = $.height), "min_height" in $ && t(3, a = $.min_height), "max_height" in $ && t(4, r = $.max_height), "width" in $ && t(5, s = $.width), "elem_id" in $ && t(6, u = $.elem_id), "elem_classes" in $ && t(7, c = $.elem_classes), "variant" in $ && t(8, m = $.variant), "border_mode" in $ && t(9, f = $.border_mode), "padding" in $ && t(10, d = $.padding), "type" in $ && t(28, v = $.type), "test_id" in $ && t(11, y = $.test_id), "explicit_call" in $ && t(12, w = $.explicit_call), "container" in $ && t(13, C = $.container), "visible" in $ && t(14, h = $.visible), "allow_overflow" in $ && t(15, _ = $.allow_overflow), "overflow_behavior" in $ && t(16, g = $.overflow_behavior), "scale" in $ && t(17, b = $.scale), "min_width" in $ && t(18, F = $.min_width), "flex" in $ && t(1, A = $.flex), "resizable" in $ && t(19, T = $.resizable), "rtl" in $ && t(20, S = $.rtl), "fullscreen" in $ && t(0, M = $.fullscreen), "$$scope" in $ && t(30, l = $.$$scope); + return i.$$set = (k) => { + "height" in k && t(2, o = k.height), "min_height" in k && t(3, a = k.min_height), "max_height" in k && t(4, r = k.max_height), "width" in k && t(5, s = k.width), "elem_id" in k && t(6, u = k.elem_id), "elem_classes" in k && t(7, c = k.elem_classes), "variant" in k && t(8, m = k.variant), "border_mode" in k && t(9, f = k.border_mode), "padding" in k && t(10, d = k.padding), "type" in k && t(28, v = k.type), "test_id" in k && t(11, y = k.test_id), "explicit_call" in k && t(12, w = k.explicit_call), "container" in k && t(13, C = k.container), "visible" in k && t(14, h = k.visible), "allow_overflow" in k && t(15, _ = k.allow_overflow), "overflow_behavior" in k && t(16, g = k.overflow_behavior), "scale" in k && t(17, b = k.scale), "min_width" in k && t(18, F = k.min_width), "flex" in k && t(1, A = k.flex), "resizable" in k && t(19, T = k.resizable), "rtl" in k && t(20, S = k.rtl), "fullscreen" in k && t(0, z = k.fullscreen), "$$scope" in k && t(30, l = k.$$scope); }, i.$$.update = () => { i.$$.dirty[0] & /*fullscreen, old_fullscreen, element*/ - 538968065 && M !== N && (t(29, N = M), M ? (t(24, _e = G.getBoundingClientRect()), t(22, ue = G.offsetHeight), t(23, $e = G.offsetWidth), window.addEventListener("keydown", ne)) : (t(24, _e = null), window.removeEventListener("keydown", ne))), i.$$.dirty[0] & /*visible*/ + 538968065 && z !== N && (t(29, N = z), z ? (t(24, _e = j.getBoundingClientRect()), t(22, ue = j.offsetHeight), t(23, ke = j.offsetWidth), window.addEventListener("keydown", ne)) : (t(24, _e = null), window.removeEventListener("keydown", ne))), i.$$.dirty[0] & /*visible*/ 16384 && (h || t(1, A = !1)); }, [ - M, + z, A, o, a, @@ -610,9 +610,9 @@ function co(i, e, t) { F, T, S, - G, + j, ue, - $e, + ke, _e, Fe, X, @@ -760,7 +760,7 @@ function Do(i, e) { return n; return -1; } -function Mi(i, e, t, n) { +function zi(i, e, t, n) { const l = e.href, o = e.title ? Le(e.title) : null, a = i[1].replace(/\\([\[\]])/g, "$1"); if (i[0].charAt(0) !== "!") { n.state.inLink = !0; @@ -1082,7 +1082,7 @@ class Cn { a && (l = a[1], o = a[3]); } else o = t[3] ? t[3].slice(1, -1) : ""; - return l = l.trim(), /^$/.test(n) ? l = l.slice(1) : l = l.slice(1, -1)), Mi(t, { + return l = l.trim(), /^$/.test(n) ? l = l.slice(1) : l = l.slice(1, -1)), zi(t, { href: l && l.replace(this.rules.inline.anyPunctuation, "$1"), title: o && o.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer); @@ -1100,7 +1100,7 @@ class Cn { text: a }; } - return Mi(n, o, n[0], this.lexer); + return zi(n, o, n[0], this.lexer); } } emStrong(e, t, n = "") { @@ -1234,12 +1234,12 @@ class Cn { } } } -const yo = /^(?: *(?:\n|$))+/, wo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Fo = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, sn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, $o = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, al = /(?:[*+-]|\d{1,9}[.)])/, ll = Y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, al).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(), _i = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ko = /^[^\n]+/, di = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Eo = Y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", di).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ao = Y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, al).getRegex(), In = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", fi = /|$))/, Co = Y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", fi).replace("tag", In).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ol = Y(_i).replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex(), So = Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ol).getRegex(), pi = { +const yo = /^(?: *(?:\n|$))+/, wo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Fo = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, sn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ko = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, al = /(?:[*+-]|\d{1,9}[.)])/, ll = Y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, al).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(), _i = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, $o = /^[^\n]+/, di = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Eo = Y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", di).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ao = Y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, al).getRegex(), In = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", fi = /|$))/, Co = Y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", fi).replace("tag", In).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ol = Y(_i).replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex(), So = Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ol).getRegex(), pi = { blockquote: So, code: wo, def: Eo, fences: Fo, - heading: $o, + heading: ko, hr: sn, html: Co, lheading: ll, @@ -1247,11 +1247,11 @@ const yo = /^(?: *(?:\n|$))+/, wo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Fo = newline: yo, paragraph: ol, table: nn, - text: ko -}, Pi = Y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex(), To = { + text: $o +}, Mi = Y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex(), To = { ...pi, - table: Pi, - paragraph: Y(_i).replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pi).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex() + table: Mi, + paragraph: Y(_i).replace("hr", sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Mi).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex() }, Bo = { ...pi, html: Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", fi).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(), @@ -1262,28 +1262,28 @@ const yo = /^(?: *(?:\n|$))+/, wo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Fo = lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Y(_i).replace("hr", sn).replace("heading", ` *#{1,6} *[^ ]`).replace("lheading", ll).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() -}, rl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ro = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, sl = /^( {2,}|\\)\n(?!\s*$)/, Io = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, qo = Y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, un).getRegex(), No = Y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, un).getRegex(), Mo = Y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, un).getRegex(), Po = Y(/\\([punct])/, "gu").replace(/punct/g, un).getRegex(), xo = Y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), zo = Y(fi).replace("(?:-->|$)", "-->").getRegex(), Uo = Y("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", zo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Sn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ho = Y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Sn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ul = Y(/^!?\[(label)\]\[(ref)\]/).replace("label", Sn).replace("ref", di).getRegex(), cl = Y(/^!?\[(ref)\](?:\[\])?/).replace("ref", di).getRegex(), Go = Y("reflink|nolink(?!\\()", "g").replace("reflink", ul).replace("nolink", cl).getRegex(), hi = { +}, rl = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ro = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, sl = /^( {2,}|\\)\n(?!\s*$)/, Io = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, qo = Y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, un).getRegex(), No = Y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, un).getRegex(), zo = Y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, un).getRegex(), Mo = Y(/\\([punct])/, "gu").replace(/punct/g, un).getRegex(), Po = Y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), xo = Y(fi).replace("(?:-->|$)", "-->").getRegex(), Uo = Y("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", xo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Sn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ho = Y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Sn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ul = Y(/^!?\[(label)\]\[(ref)\]/).replace("label", Sn).replace("ref", di).getRegex(), cl = Y(/^!?\[(ref)\](?:\[\])?/).replace("ref", di).getRegex(), jo = Y("reflink|nolink(?!\\()", "g").replace("reflink", ul).replace("nolink", cl).getRegex(), hi = { _backpedal: nn, // only used for GFM url - anyPunctuation: Po, - autolink: xo, + anyPunctuation: Mo, + autolink: Po, blockSkip: Oo, br: sl, code: Ro, del: nn, emStrongLDelim: qo, emStrongRDelimAst: No, - emStrongRDelimUnd: Mo, + emStrongRDelimUnd: zo, escape: rl, link: Ho, nolink: cl, punctuation: Lo, reflink: ul, - reflinkSearch: Go, + reflinkSearch: jo, tag: Uo, text: Io, url: nn -}, jo = { +}, Go = { ...hi, link: Y(/^!?\[(label)\]\((.*?)\)/).replace("label", Sn).getRegex(), reflink: Y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Sn).getRegex() @@ -1306,7 +1306,7 @@ const yo = /^(?: *(?:\n|$))+/, wo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Fo = normal: hi, gfm: Qn, breaks: Vo, - pedantic: jo + pedantic: Go }; class it { constructor(e) { @@ -2132,7 +2132,7 @@ function Xo(i, e) { return typeof i != "string" ? "" : (e || (i = i.toLowerCase()), i.replace(Zo, "").replace(/ /g, "-")); } new dl(); -var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ko = { exports: {} }; +var Pi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ko = { exports: {} }; (function(i) { var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {}; /** @@ -2487,9 +2487,9 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t g.hasOwnProperty(S) && (A[S] = g[S]); g.hasOwnProperty(T) || (A[T] = F[T]); } - var M = b[h]; - return b[h] = A, r.languages.DFS(r.languages, function(N, G) { - G === M && N != h && (this[N] = A); + var z = b[h]; + return b[h] = A, r.languages.DFS(r.languages, function(N, j) { + j === z && N != h && (this[N] = A); }), A; }, // Traverse a language definition with Depth First Search @@ -2499,8 +2499,8 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t for (var T in _) if (_.hasOwnProperty(T)) { g.call(_, T, _[T], b || T); - var S = _[T], M = r.util.type(S); - M === "Object" && !F[A(S)] ? (F[A(S)] = !0, h(S, g, null, F)) : M === "Array" && !F[A(S)] && (F[A(S)] = !0, h(S, g, T, F)); + var S = _[T], z = r.util.type(S); + z === "Object" && !F[A(S)] ? (F[A(S)] = !0, h(S, g, null, F)) : z === "Array" && !F[A(S)] && (F[A(S)] = !0, h(S, g, T, F)); } } }, @@ -2584,28 +2584,28 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t grammar: F, code: T }; - function M(G) { - S.highlightedCode = G, r.hooks.run("before-insert", S), S.element.innerHTML = S.highlightedCode, r.hooks.run("after-highlight", S), r.hooks.run("complete", S), g && g.call(S.element); + function z(j) { + S.highlightedCode = j, r.hooks.run("before-insert", S), S.element.innerHTML = S.highlightedCode, r.hooks.run("after-highlight", S), r.hooks.run("complete", S), g && g.call(S.element); } if (r.hooks.run("before-sanity-check", S), A = S.element.parentElement, A && A.nodeName.toLowerCase() === "pre" && !A.hasAttribute("tabindex") && A.setAttribute("tabindex", "0"), !S.code) { r.hooks.run("complete", S), g && g.call(S.element); return; } if (r.hooks.run("before-highlight", S), !S.grammar) { - M(r.util.encode(S.code)); + z(r.util.encode(S.code)); return; } if (_ && n.Worker) { var N = new Worker(r.filename); - N.onmessage = function(G) { - M(G.data); + N.onmessage = function(j) { + z(j.data); }, N.postMessage(JSON.stringify({ language: S.language, code: S.code, immediateClose: !0 })); } else - M(r.highlight(S.code, S.grammar, S.language)); + z(r.highlight(S.code, S.grammar, S.language)); }, /** * Low-level function, only use if you know what you’re doing. It accepts a string of text as input @@ -2721,8 +2721,8 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t return _; if (Array.isArray(_)) { var b = ""; - return _.forEach(function(M) { - b += h(M, g); + return _.forEach(function(z) { + b += h(z, g); }), b; } var F = { @@ -2753,10 +2753,10 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t if (!(!g.hasOwnProperty(T) || !g[T])) { var S = g[T]; S = Array.isArray(S) ? S : [S]; - for (var M = 0; M < S.length; ++M) { - if (A && A.cause == T + "," + M) + for (var z = 0; z < S.length; ++z) { + if (A && A.cause == T + "," + z) return; - var N = S[M], G = N.inside, Fe = !!N.lookbehind, ue = !!N.greedy, $e = N.alias; + var N = S[z], j = N.inside, Fe = !!N.lookbehind, ue = !!N.greedy, ke = N.alias; if (ue && !N.pattern.global) { var _e = N.pattern.toString().match(/[imsuy]*$/)[0]; N.pattern = RegExp(N.pattern.source, _e + "g"); @@ -2766,7 +2766,7 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t if (_.length > h.length) return; if (!(ge instanceof s)) { - var $ = 1, oe; + var k = 1, oe; if (ue) { if (oe = u(ne, se, h, Fe), !oe || oe.index >= h.length) break; @@ -2776,18 +2776,18 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t if (de -= X.value.length, se = de, X.value instanceof s) continue; for (var E = X; E !== _.tail && (de < K || typeof E.value == "string"); E = E.next) - $++, de += E.value.length; - $--, ge = h.slice(se, de), oe.index -= se; + k++, de += E.value.length; + k--, ge = h.slice(se, de), oe.index -= se; } else if (oe = u(ne, 0, ge, Fe), !oe) continue; var Ce = oe.index, Ke = oe[0], Dt = ge.slice(0, Ce), bt = ge.slice(Ce + Ke.length), yt = se + ge.length; A && yt > A.reach && (A.reach = yt); var _t = X.prev; - Dt && (_t = f(_, _t, Dt), se += Dt.length), d(_, _t, $); - var Qe = new s(T, G ? r.tokenize(Ke, G) : Ke, $e, Ke); - if (X = f(_, _t, Qe), bt && f(_, X, bt), $ > 1) { + Dt && (_t = f(_, _t, Dt), se += Dt.length), d(_, _t, k); + var Qe = new s(T, j ? r.tokenize(Ke, j) : Ke, ke, Ke); + if (X = f(_, _t, Qe), bt && f(_, X, bt), k > 1) { var Je = { - cause: T + "," + M, + cause: T + "," + z, reach: yt }; c(h, _, g, X.prev, se, Je), A && Je.reach > A.reach && (A.reach = Je.reach); @@ -2831,7 +2831,7 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t } return r; }(e); - i.exports && (i.exports = t), typeof xi < "u" && (xi.Prism = t), t.languages.markup = { + i.exports && (i.exports = t), typeof Pi < "u" && (Pi.Prism = t), t.languages.markup = { comment: { pattern: //, greedy: !0 @@ -3259,8 +3259,8 @@ var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t w.setAttribute(r, u); var A = d(w.getAttribute("data-range")); if (A) { - var T = F.split(/\r\n?|\n/g), S = A[0], M = A[1] == null ? T.length : A[1]; - S < 0 && (S += T.length), S = Math.max(0, Math.min(S - 1, T.length)), M < 0 && (M += T.length), M = Math.max(0, Math.min(M, T.length)), F = T.slice(S, M).join(` + var T = F.split(/\r\n?|\n/g), S = A[0], z = A[1] == null ? T.length : A[1]; + S < 0 && (S += T.length), S = Math.max(0, Math.min(S - 1, T.length)), z < 0 && (z += T.length), z = Math.max(0, Math.min(z, T.length)), F = T.slice(S, z).join(` `), w.hasAttribute("data-start") || w.setAttribute("data-start", String(S + 1)); } C.textContent = F, t.highlightElement(C); @@ -4115,8 +4115,8 @@ const { claim_element: yu, create_component: wu, destroy_component: Fu, - detach: $u, - element: ku, + detach: ku, + element: $u, init: Eu, insert_hydration: Au, mount_component: Cu, @@ -4130,14 +4130,14 @@ const { children: Ou, claim_component: qu, claim_element: Nu, - claim_space: Mu, - create_component: Pu, - create_slot: xu, - destroy_component: zu, + claim_space: zu, + create_component: Mu, + create_slot: Pu, + destroy_component: xu, detach: Uu, element: Hu, - empty: Gu, - get_all_dirty_from_scope: ju, + empty: ju, + get_all_dirty_from_scope: Gu, get_slot_changes: Vu, group_outros: Wu, init: Zu, @@ -4171,22 +4171,22 @@ const { text: yc, toggle_class: wc, transition_in: Fc, - transition_out: $c + transition_out: kc } = window.__gradio__svelte__internal, { SvelteComponent: nr, - append_hydration: kn, + append_hydration: $n, attr: mt, bubble: ir, check_outros: ar, children: ei, claim_component: lr, claim_element: ti, - claim_space: zi, + claim_space: xi, claim_text: or, construct_svelte_component: Ui, create_component: Hi, create_slot: rr, - destroy_component: Gi, + destroy_component: ji, detach: ln, element: ni, get_all_dirty_from_scope: sr, @@ -4195,14 +4195,14 @@ const { init: _r, insert_hydration: fl, listen: dr, - mount_component: ji, + mount_component: Gi, safe_not_equal: fr, set_data: pr, set_style: gn, space: Vi, text: hr, toggle_class: be, - transition_in: zn, + transition_in: xn, transition_out: Un, update_slot_base: mr } = window.__gradio__svelte__internal; @@ -4228,7 +4228,7 @@ function Wi(i) { mt(e, "class", "svelte-qgco6m"); }, m(n, l) { - fl(n, e, l), kn(e, t); + fl(n, e, l), $n(e, t); }, p(n, l) { l & /*label*/ @@ -4278,9 +4278,9 @@ function gr(i) { class: !0 }); var y = ei(e); - u && u.l(y), t = zi(y), n = ti(y, "DIV", { class: !0 }); + u && u.l(y), t = xi(y), n = ti(y, "DIV", { class: !0 }); var w = ei(n); - l && lr(l.$$.fragment, w), o = zi(w), d && d.l(w), w.forEach(ln), y.forEach(ln), this.h(); + l && lr(l.$$.fragment, w), o = xi(w), d && d.l(w), w.forEach(ln), y.forEach(ln), this.h(); }, h() { mt(n, "class", "svelte-qgco6m"), be( @@ -4351,7 +4351,7 @@ function gr(i) { )); }, m(v, y) { - fl(v, e, y), u && u.m(e, null), kn(e, t), kn(e, n), l && ji(l, n, null), kn(n, o), d && d.m(n, null), a = !0, r || (s = dr( + fl(v, e, y), u && u.m(e, null), $n(e, t), $n(e, n), l && Gi(l, n, null), $n(n, o), d && d.m(n, null), a = !0, r || (s = dr( e, "click", /*click_handler*/ @@ -4367,10 +4367,10 @@ function gr(i) { cr(); const w = l; Un(w.$$.fragment, 1, 0, () => { - Gi(w, 1); + ji(w, 1); }), ar(); } - c ? (l = Ui(c, m()), Hi(l.$$.fragment), zn(l.$$.fragment, 1), ji(l, n, o)) : l = null; + c ? (l = Ui(c, m()), Hi(l.$$.fragment), xn(l.$$.fragment, 1), Gi(l, n, o)) : l = null; } d && d.p && (!a || y & /*$$scope*/ 8192) && mr( @@ -4472,13 +4472,13 @@ function gr(i) { )); }, i(v) { - a || (l && zn(l.$$.fragment, v), zn(d, v), a = !0); + a || (l && xn(l.$$.fragment, v), xn(d, v), a = !0); }, o(v) { l && Un(l.$$.fragment, v), Un(d, v), a = !1; }, d(v) { - v && ln(e), u && u.d(), l && Gi(l), d && d.d(v), r = !1, s(); + v && ln(e), u && u.d(), l && ji(l), d && d.d(v), r = !1, s(); } }; } @@ -4530,7 +4530,7 @@ class Dr extends nr { } } const { - SvelteComponent: kc, + SvelteComponent: $c, append_hydration: Ec, attr: Ac, binding_callbacks: Cc, @@ -4543,15 +4543,15 @@ const { get_slot_changes: Oc, init: qc, insert_hydration: Nc, - safe_not_equal: Mc, - toggle_class: Pc, - transition_in: xc, - transition_out: zc, + safe_not_equal: zc, + toggle_class: Mc, + transition_in: Pc, + transition_out: xc, update_slot_base: Uc } = window.__gradio__svelte__internal, { SvelteComponent: Hc, - append_hydration: Gc, - attr: jc, + append_hydration: jc, + attr: Gc, children: Vc, claim_svg_element: Wc, detach: Zc, @@ -4587,8 +4587,8 @@ const { } = window.__gradio__svelte__internal, { SvelteComponent: w_, append_hydration: F_, - attr: $_, - children: k_, + attr: k_, + children: $_, claim_svg_element: E_, detach: A_, init: C_, @@ -4602,15 +4602,15 @@ const { attr: O_, children: q_, claim_svg_element: N_, - detach: M_, - init: P_, - insert_hydration: x_, - noop: z_, + detach: z_, + init: M_, + insert_hydration: P_, + noop: x_, safe_not_equal: U_, svg_element: H_ } = window.__gradio__svelte__internal, { - SvelteComponent: G_, - append_hydration: j_, + SvelteComponent: j_, + append_hydration: G_, attr: V_, children: W_, claim_svg_element: Z_, @@ -4646,8 +4646,8 @@ const { svg_element: wd } = window.__gradio__svelte__internal, { SvelteComponent: Fd, - append_hydration: $d, - attr: kd, + append_hydration: kd, + attr: $d, children: Ed, claim_svg_element: Ad, detach: Cd, @@ -4661,15 +4661,15 @@ const { append_hydration: Od, attr: qd, children: Nd, - claim_svg_element: Md, - detach: Pd, - init: xd, - insert_hydration: zd, + claim_svg_element: zd, + detach: Md, + init: Pd, + insert_hydration: xd, noop: Ud, safe_not_equal: Hd, - svg_element: Gd + svg_element: jd } = window.__gradio__svelte__internal, { - SvelteComponent: jd, + SvelteComponent: Gd, append_hydration: Vd, attr: Wd, children: Zd, @@ -4695,18 +4695,18 @@ const { } = window.__gradio__svelte__internal, { SvelteComponent: br, append_hydration: Hn, - attr: Ge, + attr: je, children: vn, claim_svg_element: Dn, detach: Yt, init: yr, insert_hydration: wr, - noop: Gn, + noop: jn, safe_not_equal: Fr, set_style: tt, svg_element: bn } = window.__gradio__svelte__internal; -function $r(i) { +function kr(i) { let e, t, n, l; return { c() { @@ -4730,22 +4730,22 @@ function $r(i) { n = Dn(r, "path", { d: !0, style: !0 }), vn(n).forEach(Yt), r.forEach(Yt), l = Dn(a, "path", { d: !0, style: !0 }), vn(l).forEach(Yt), a.forEach(Yt), this.h(); }, h() { - Ge(n, "d", "M18,6L6.087,17.913"), tt(n, "fill", "none"), tt(n, "fill-rule", "nonzero"), tt(n, "stroke-width", "2px"), Ge(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), Ge(l, "d", "M4.364,4.364L19.636,19.636"), tt(l, "fill", "none"), tt(l, "fill-rule", "nonzero"), tt(l, "stroke-width", "2px"), Ge(e, "width", "100%"), Ge(e, "height", "100%"), Ge(e, "viewBox", "0 0 24 24"), Ge(e, "version", "1.1"), Ge(e, "xmlns", "http://www.w3.org/2000/svg"), Ge(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), Ge(e, "xml:space", "preserve"), Ge(e, "stroke", "currentColor"), tt(e, "fill-rule", "evenodd"), tt(e, "clip-rule", "evenodd"), tt(e, "stroke-linecap", "round"), tt(e, "stroke-linejoin", "round"); + je(n, "d", "M18,6L6.087,17.913"), tt(n, "fill", "none"), tt(n, "fill-rule", "nonzero"), tt(n, "stroke-width", "2px"), je(t, "transform", "matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"), je(l, "d", "M4.364,4.364L19.636,19.636"), tt(l, "fill", "none"), tt(l, "fill-rule", "nonzero"), tt(l, "stroke-width", "2px"), je(e, "width", "100%"), je(e, "height", "100%"), je(e, "viewBox", "0 0 24 24"), je(e, "version", "1.1"), je(e, "xmlns", "http://www.w3.org/2000/svg"), je(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), je(e, "xml:space", "preserve"), je(e, "stroke", "currentColor"), tt(e, "fill-rule", "evenodd"), tt(e, "clip-rule", "evenodd"), tt(e, "stroke-linecap", "round"), tt(e, "stroke-linejoin", "round"); }, m(o, a) { wr(o, e, a), Hn(e, t), Hn(t, n), Hn(e, l); }, - p: Gn, - i: Gn, - o: Gn, + p: jn, + i: jn, + o: jn, d(o) { o && Yt(e); } }; } -class kr extends br { +class $r extends br { constructor(e) { - super(), yr(this, e, null, $r, Fr, {}); + super(), yr(this, e, null, kr, Fr, {}); } } const { @@ -4759,9 +4759,9 @@ const { insert_hydration: yf, noop: wf, safe_not_equal: Ff, - svg_element: $f + svg_element: kf } = window.__gradio__svelte__internal, { - SvelteComponent: kf, + SvelteComponent: $f, append_hydration: Ef, attr: Af, children: Cf, @@ -4775,14 +4775,14 @@ const { } = window.__gradio__svelte__internal, { SvelteComponent: qf, append_hydration: Nf, - attr: Mf, - children: Pf, - claim_svg_element: xf, - detach: zf, + attr: zf, + children: Mf, + claim_svg_element: Pf, + detach: xf, init: Uf, insert_hydration: Hf, - noop: Gf, - safe_not_equal: jf, + noop: jf, + safe_not_equal: Gf, svg_element: Vf } = window.__gradio__svelte__internal, { SvelteComponent: Wf, @@ -4818,8 +4818,8 @@ const { init: yp, insert_hydration: wp, noop: Fp, - safe_not_equal: $p, - svg_element: kp + safe_not_equal: kp, + svg_element: $p } = window.__gradio__svelte__internal, { SvelteComponent: Ep, append_hydration: Ap, @@ -4834,14 +4834,14 @@ const { svg_element: qp } = window.__gradio__svelte__internal, { SvelteComponent: Np, - append_hydration: Mp, - attr: Pp, - children: xp, - claim_svg_element: zp, + append_hydration: zp, + attr: Mp, + children: Pp, + claim_svg_element: xp, detach: Up, init: Hp, - insert_hydration: Gp, - noop: jp, + insert_hydration: jp, + noop: Gp, safe_not_equal: Vp, svg_element: Wp } = window.__gradio__svelte__internal, { @@ -4877,8 +4877,8 @@ const { detach: yh, init: wh, insert_hydration: Fh, - noop: $h, - safe_not_equal: kh, + noop: kh, + safe_not_equal: $h, svg_element: Eh } = window.__gradio__svelte__internal, { SvelteComponent: Ah, @@ -4893,14 +4893,14 @@ const { safe_not_equal: qh, svg_element: Nh } = window.__gradio__svelte__internal, { - SvelteComponent: Mh, - append_hydration: Ph, - attr: xh, - children: zh, + SvelteComponent: zh, + append_hydration: Mh, + attr: Ph, + children: xh, claim_svg_element: Uh, detach: Hh, - init: Gh, - insert_hydration: jh, + init: jh, + insert_hydration: Gh, noop: Vh, safe_not_equal: Wh, svg_element: Zh @@ -4936,8 +4936,8 @@ const { claim_svg_element: ym, detach: wm, init: Fm, - insert_hydration: $m, - noop: km, + insert_hydration: km, + noop: $m, safe_not_equal: Em, svg_element: Am } = window.__gradio__svelte__internal, { @@ -4951,15 +4951,15 @@ const { insert_hydration: Om, noop: qm, safe_not_equal: Nm, - svg_element: Mm + svg_element: zm } = window.__gradio__svelte__internal, { - SvelteComponent: Pm, - append_hydration: xm, - attr: zm, + SvelteComponent: Mm, + append_hydration: Pm, + attr: xm, children: Um, claim_svg_element: Hm, - detach: Gm, - init: jm, + detach: jm, + init: Gm, insert_hydration: Vm, noop: Wm, safe_not_equal: Zm, @@ -4995,8 +4995,8 @@ const { children: yg, claim_svg_element: wg, detach: Fg, - init: $g, - insert_hydration: kg, + init: kg, + insert_hydration: $g, noop: Eg, safe_not_equal: Ag, svg_element: Cg @@ -5010,15 +5010,15 @@ const { init: Og, insert_hydration: qg, noop: Ng, - safe_not_equal: Mg, - svg_element: Pg + safe_not_equal: zg, + svg_element: Mg } = window.__gradio__svelte__internal, { - SvelteComponent: xg, - append_hydration: zg, + SvelteComponent: Pg, + append_hydration: xg, attr: Ug, children: Hg, - claim_svg_element: Gg, - detach: jg, + claim_svg_element: jg, + detach: Gg, init: Vg, insert_hydration: Wg, noop: Zg, @@ -5054,8 +5054,8 @@ const { attr: y0, children: w0, claim_svg_element: F0, - detach: $0, - init: k0, + detach: k0, + init: $0, insert_hydration: E0, noop: A0, safe_not_equal: C0, @@ -5069,15 +5069,15 @@ const { detach: O0, init: q0, insert_hydration: N0, - noop: M0, - safe_not_equal: P0, - svg_element: x0 + noop: z0, + safe_not_equal: M0, + svg_element: P0 } = window.__gradio__svelte__internal, { - SvelteComponent: z0, + SvelteComponent: x0, append_hydration: U0, attr: H0, - children: G0, - claim_svg_element: j0, + children: j0, + claim_svg_element: G0, detach: V0, init: W0, insert_hydration: Z0, @@ -5113,8 +5113,8 @@ const { append_hydration: y1, attr: w1, children: F1, - claim_svg_element: $1, - detach: k1, + claim_svg_element: k1, + detach: $1, init: E1, insert_hydration: A1, noop: C1, @@ -5128,15 +5128,15 @@ const { claim_svg_element: O1, detach: q1, init: N1, - insert_hydration: M1, - noop: P1, - safe_not_equal: x1, - svg_element: z1 + insert_hydration: z1, + noop: M1, + safe_not_equal: P1, + svg_element: x1 } = window.__gradio__svelte__internal, { SvelteComponent: U1, append_hydration: H1, - attr: G1, - children: j1, + attr: j1, + children: G1, claim_svg_element: V1, detach: W1, init: Z1, @@ -5172,8 +5172,8 @@ const { } = window.__gradio__svelte__internal, { SvelteComponent: wv, append_hydration: Fv, - attr: $v, - children: kv, + attr: kv, + children: $v, claim_svg_element: Ev, detach: Av, init: Cv, @@ -5187,15 +5187,15 @@ const { attr: Ov, children: qv, claim_svg_element: Nv, - detach: Mv, - init: Pv, - insert_hydration: xv, - noop: zv, + detach: zv, + init: Mv, + insert_hydration: Pv, + noop: xv, safe_not_equal: Uv, svg_element: Hv } = window.__gradio__svelte__internal, { - SvelteComponent: Gv, - append_hydration: jv, + SvelteComponent: jv, + append_hydration: Gv, attr: Vv, children: Wv, claim_svg_element: Zv, @@ -5231,8 +5231,8 @@ const { svg_element: wD } = window.__gradio__svelte__internal, { SvelteComponent: FD, - append_hydration: $D, - attr: kD, + append_hydration: kD, + attr: $D, children: ED, claim_svg_element: AD, detach: CD, @@ -5246,15 +5246,15 @@ const { append_hydration: OD, attr: qD, children: ND, - claim_svg_element: MD, - detach: PD, - init: xD, - insert_hydration: zD, + claim_svg_element: zD, + detach: MD, + init: PD, + insert_hydration: xD, noop: UD, safe_not_equal: HD, - svg_element: GD + svg_element: jD } = window.__gradio__svelte__internal, { - SvelteComponent: jD, + SvelteComponent: GD, append_hydration: VD, attr: WD, children: ZD, @@ -5289,8 +5289,8 @@ const { init: yb, insert_hydration: wb, noop: Fb, - safe_not_equal: $b, - svg_element: kb + safe_not_equal: kb, + svg_element: $b } = window.__gradio__svelte__internal, { SvelteComponent: Eb, append_hydration: Ab, @@ -5305,14 +5305,14 @@ const { svg_element: qb } = window.__gradio__svelte__internal, { SvelteComponent: Nb, - append_hydration: Mb, - attr: Pb, - children: xb, - claim_svg_element: zb, + append_hydration: zb, + attr: Mb, + children: Pb, + claim_svg_element: xb, detach: Ub, init: Hb, - insert_hydration: Gb, - noop: jb, + insert_hydration: jb, + noop: Gb, safe_not_equal: Vb, svg_element: Wb } = window.__gradio__svelte__internal, { @@ -5348,8 +5348,8 @@ const { detach: yy, init: wy, insert_hydration: Fy, - noop: $y, - safe_not_equal: ky, + noop: ky, + safe_not_equal: $y, svg_element: Ey } = window.__gradio__svelte__internal, { SvelteComponent: Ay, @@ -5364,14 +5364,14 @@ const { safe_not_equal: qy, svg_element: Ny } = window.__gradio__svelte__internal, { - SvelteComponent: My, - append_hydration: Py, - attr: xy, - children: zy, + SvelteComponent: zy, + append_hydration: My, + attr: Py, + children: xy, claim_svg_element: Uy, claim_text: Hy, - detach: Gy, - init: jy, + detach: jy, + init: Gy, insert_hydration: Vy, noop: Wy, safe_not_equal: Zy, @@ -5407,8 +5407,8 @@ const { text: ww } = window.__gradio__svelte__internal, { SvelteComponent: Fw, - append_hydration: $w, - attr: kw, + append_hydration: kw, + attr: $w, children: Ew, claim_svg_element: Aw, detach: Cw, @@ -5422,15 +5422,15 @@ const { append_hydration: Ow, attr: qw, children: Nw, - claim_svg_element: Mw, - detach: Pw, - init: xw, - insert_hydration: zw, + claim_svg_element: zw, + detach: Mw, + init: Pw, + insert_hydration: xw, noop: Uw, safe_not_equal: Hw, - svg_element: Gw + svg_element: jw } = window.__gradio__svelte__internal, { - SvelteComponent: jw, + SvelteComponent: Gw, append_hydration: Vw, attr: Ww, children: Zw, @@ -5466,8 +5466,8 @@ const { safe_not_equal: wF, svg_element: FF } = window.__gradio__svelte__internal, { - SvelteComponent: $F, - append_hydration: kF, + SvelteComponent: kF, + append_hydration: $F, attr: EF, children: AF, claim_svg_element: CF, @@ -5481,14 +5481,14 @@ const { SvelteComponent: OF, append_hydration: qF, attr: NF, - children: MF, - claim_svg_element: PF, - detach: xF, - init: zF, + children: zF, + claim_svg_element: MF, + detach: PF, + init: xF, insert_hydration: UF, noop: HF, - safe_not_equal: GF, - svg_element: jF + safe_not_equal: jF, + svg_element: GF } = window.__gradio__svelte__internal, { SvelteComponent: VF, append_hydration: WF, @@ -5498,9 +5498,9 @@ const { detach: KF, init: QF, insert_hydration: JF, - noop: e2, - safe_not_equal: t2, - svg_element: n2 + noop: ek, + safe_not_equal: tk, + svg_element: nk } = window.__gradio__svelte__internal, Er = [ { color: "red", primary: 600, secondary: 100 }, { color: "green", primary: 600, secondary: 100 }, @@ -5816,117 +5816,117 @@ Er.reduce( {} ); const { - SvelteComponent: i2, - claim_component: a2, - create_component: l2, - destroy_component: o2, - init: r2, - mount_component: s2, - safe_not_equal: u2, - transition_in: c2, - transition_out: _2 -} = window.__gradio__svelte__internal, { createEventDispatcher: d2 } = window.__gradio__svelte__internal, { - SvelteComponent: f2, - append_hydration: p2, - attr: h2, - check_outros: m2, - children: g2, - claim_component: v2, - claim_element: D2, - claim_space: b2, - claim_text: y2, - create_component: w2, - destroy_component: F2, - detach: $2, - element: k2, - empty: E2, - group_outros: A2, - init: C2, - insert_hydration: S2, - mount_component: T2, - safe_not_equal: B2, - set_data: R2, - space: I2, - text: L2, - toggle_class: O2, + SvelteComponent: ik, + claim_component: ak, + create_component: lk, + destroy_component: ok, + init: rk, + mount_component: sk, + safe_not_equal: uk, + transition_in: ck, + transition_out: _k +} = window.__gradio__svelte__internal, { createEventDispatcher: dk } = window.__gradio__svelte__internal, { + SvelteComponent: fk, + append_hydration: pk, + attr: hk, + check_outros: mk, + children: gk, + claim_component: vk, + claim_element: Dk, + claim_space: bk, + claim_text: yk, + create_component: wk, + destroy_component: Fk, + detach: kk, + element: $k, + empty: Ek, + group_outros: Ak, + init: Ck, + insert_hydration: Sk, + mount_component: Tk, + safe_not_equal: Bk, + set_data: Rk, + space: Ik, + text: Lk, + toggle_class: Ok, + transition_in: qk, + transition_out: Nk +} = window.__gradio__svelte__internal, { + SvelteComponent: zk, + attr: Mk, + children: Pk, + claim_element: xk, + create_slot: Uk, + detach: Hk, + element: jk, + get_all_dirty_from_scope: Gk, + get_slot_changes: Vk, + init: Wk, + insert_hydration: Zk, + safe_not_equal: Yk, + toggle_class: Xk, + transition_in: Kk, + transition_out: Qk, + update_slot_base: Jk +} = window.__gradio__svelte__internal, { + SvelteComponent: e2, + append_hydration: t2, + attr: n2, + check_outros: i2, + children: a2, + claim_component: l2, + claim_element: o2, + claim_space: r2, + create_component: s2, + destroy_component: u2, + detach: c2, + element: _2, + empty: d2, + group_outros: f2, + init: p2, + insert_hydration: h2, + listen: m2, + mount_component: g2, + safe_not_equal: v2, + space: D2, + toggle_class: b2, + transition_in: y2, + transition_out: w2 +} = window.__gradio__svelte__internal, { + SvelteComponent: F2, + attr: k2, + children: $2, + claim_element: E2, + create_slot: A2, + detach: C2, + element: S2, + get_all_dirty_from_scope: T2, + get_slot_changes: B2, + init: R2, + insert_hydration: I2, + null_to_empty: L2, + safe_not_equal: O2, transition_in: q2, - transition_out: N2 + transition_out: N2, + update_slot_base: z2 } = window.__gradio__svelte__internal, { SvelteComponent: M2, - attr: P2, - children: x2, - claim_element: z2, - create_slot: U2, - detach: H2, - element: G2, - get_all_dirty_from_scope: j2, - get_slot_changes: V2, + check_outros: P2, + claim_component: x2, + create_component: U2, + destroy_component: H2, + detach: j2, + empty: G2, + group_outros: V2, init: W2, insert_hydration: Z2, - safe_not_equal: Y2, - toggle_class: X2, - transition_in: K2, - transition_out: Q2, - update_slot_base: J2 -} = window.__gradio__svelte__internal, { - SvelteComponent: e$, - append_hydration: t$, - attr: n$, - check_outros: i$, - children: a$, - claim_component: l$, - claim_element: o$, - claim_space: r$, - create_component: s$, - destroy_component: u$, - detach: c$, - element: _$, - empty: d$, - group_outros: f$, - init: p$, - insert_hydration: h$, - listen: m$, - mount_component: g$, - safe_not_equal: v$, - space: D$, - toggle_class: b$, - transition_in: y$, - transition_out: w$ -} = window.__gradio__svelte__internal, { - SvelteComponent: F$, - attr: $$, - children: k$, - claim_element: E$, - create_slot: A$, - detach: C$, - element: S$, - get_all_dirty_from_scope: T$, - get_slot_changes: B$, - init: R$, - insert_hydration: I$, - null_to_empty: L$, - safe_not_equal: O$, - transition_in: q$, - transition_out: N$, - update_slot_base: M$ -} = window.__gradio__svelte__internal, { - SvelteComponent: P$, - check_outros: x$, - claim_component: z$, - create_component: U$, - destroy_component: H$, - detach: G$, - empty: j$, - group_outros: V$, - init: W$, - insert_hydration: Z$, - mount_component: Y$, - noop: X$, - safe_not_equal: K$, - transition_in: Q$, - transition_out: J$ -} = window.__gradio__svelte__internal, { createEventDispatcher: ek } = window.__gradio__svelte__internal; -function Pt(i) { + mount_component: Y2, + noop: X2, + safe_not_equal: K2, + transition_in: Q2, + transition_out: J2 +} = window.__gradio__svelte__internal, { createEventDispatcher: e$ } = window.__gradio__svelte__internal; +function Mt(i) { let e = ["", "k", "M", "G", "T", "P", "E", "Z"], t = 0; for (; i > 1e3 && t < e.length - 1; ) i /= 1e3, t++; @@ -5937,31 +5937,31 @@ function En() { } const pl = typeof window < "u"; let Yi = pl ? () => window.performance.now() : () => Date.now(), hl = pl ? (i) => requestAnimationFrame(i) : En; -const zt = /* @__PURE__ */ new Set(); +const xt = /* @__PURE__ */ new Set(); function ml(i) { - zt.forEach((e) => { - e.c(i) || (zt.delete(e), e.f()); - }), zt.size !== 0 && hl(ml); + xt.forEach((e) => { + e.c(i) || (xt.delete(e), e.f()); + }), xt.size !== 0 && hl(ml); } function Ar(i) { let e; - return zt.size === 0 && hl(ml), { promise: new Promise((t) => { - zt.add(e = { c: i, f: t }); + return xt.size === 0 && hl(ml), { promise: new Promise((t) => { + xt.add(e = { c: i, f: t }); }), abort() { - zt.delete(e); + xt.delete(e); } }; } -const Mt = []; +const zt = []; function Cr(i, e = En) { let t; const n = /* @__PURE__ */ new Set(); function l(a) { if (s = a, ((r = i) != r ? s == s : r !== s || r && typeof r == "object" || typeof r == "function") && (i = a, t)) { - const u = !Mt.length; - for (const c of n) c[1](), Mt.push(c, i); + const u = !zt.length; + for (const c of n) c[1](), zt.push(c, i); if (u) { - for (let c = 0; c < Mt.length; c += 2) Mt[c][0](Mt[c + 1]); - Mt.length = 0; + for (let c = 0; c < zt.length; c += 2) zt[c][0](zt[c + 1]); + zt.length = 0; } } var r, s; @@ -6014,8 +6014,8 @@ function Ki(i, e = {}) { } const { SvelteComponent: Sr, - append_hydration: je, - attr: j, + append_hydration: Ge, + attr: G, children: qe, claim_element: Tr, claim_svg_element: Ve, @@ -6073,11 +6073,11 @@ function qr(i) { }), qe(m).forEach(Ie), f = Ve(C, "path", { d: !0, fill: !0, class: !0 }), qe(f).forEach(Ie), C.forEach(Ie), y.forEach(Ie), v.forEach(Ie), this.h(); }, h() { - j(l, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), j(l, "fill", "#FF7C00"), j(l, "fill-opacity", "0.4"), j(l, "class", "svelte-43sxxs"), j(o, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), j(o, "fill", "#FF7C00"), j(o, "class", "svelte-43sxxs"), j(a, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), j(a, "fill", "#FF7C00"), j(a, "fill-opacity", "0.4"), j(a, "class", "svelte-43sxxs"), j(r, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), j(r, "fill", "#FF7C00"), j(r, "class", "svelte-43sxxs"), yn(n, "transform", "translate(" + /*$top*/ + G(l, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), G(l, "fill", "#FF7C00"), G(l, "fill-opacity", "0.4"), G(l, "class", "svelte-43sxxs"), G(o, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), G(o, "fill", "#FF7C00"), G(o, "class", "svelte-43sxxs"), G(a, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), G(a, "fill", "#FF7C00"), G(a, "fill-opacity", "0.4"), G(a, "class", "svelte-43sxxs"), G(r, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), G(r, "fill", "#FF7C00"), G(r, "class", "svelte-43sxxs"), yn(n, "transform", "translate(" + /*$top*/ i[1][0] + "px, " + /*$top*/ - i[1][1] + "px)"), j(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), j(u, "fill", "#FF7C00"), j(u, "fill-opacity", "0.4"), j(u, "class", "svelte-43sxxs"), j(c, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), j(c, "fill", "#FF7C00"), j(c, "class", "svelte-43sxxs"), j(m, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), j(m, "fill", "#FF7C00"), j(m, "fill-opacity", "0.4"), j(m, "class", "svelte-43sxxs"), j(f, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), j(f, "fill", "#FF7C00"), j(f, "class", "svelte-43sxxs"), yn(s, "transform", "translate(" + /*$bottom*/ + i[1][1] + "px)"), G(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), G(u, "fill", "#FF7C00"), G(u, "fill-opacity", "0.4"), G(u, "class", "svelte-43sxxs"), G(c, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), G(c, "fill", "#FF7C00"), G(c, "class", "svelte-43sxxs"), G(m, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), G(m, "fill", "#FF7C00"), G(m, "fill-opacity", "0.4"), G(m, "class", "svelte-43sxxs"), G(f, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), G(f, "fill", "#FF7C00"), G(f, "class", "svelte-43sxxs"), yn(s, "transform", "translate(" + /*$bottom*/ i[2][0] + "px, " + /*$bottom*/ - i[2][1] + "px)"), j(t, "viewBox", "-1200 -1200 3000 3000"), j(t, "fill", "none"), j(t, "xmlns", "http://www.w3.org/2000/svg"), j(t, "class", "svelte-43sxxs"), j(e, "class", "svelte-43sxxs"), ea( + i[2][1] + "px)"), G(t, "viewBox", "-1200 -1200 3000 3000"), G(t, "fill", "none"), G(t, "xmlns", "http://www.w3.org/2000/svg"), G(t, "class", "svelte-43sxxs"), G(e, "class", "svelte-43sxxs"), ea( e, "margin", /*margin*/ @@ -6085,7 +6085,7 @@ function qr(i) { ); }, m(d, v) { - Ir(d, e, v), je(e, t), je(t, n), je(n, l), je(n, o), je(n, a), je(n, r), je(t, s), je(s, u), je(s, c), je(s, m), je(s, f); + Ir(d, e, v), Ge(e, t), Ge(t, n), Ge(n, l), Ge(n, o), Ge(n, a), Ge(n, r), Ge(t, s), Ge(s, u), Ge(s, c), Ge(s, m), Ge(s, f); }, p(d, [v]) { v & /*$top*/ @@ -6163,13 +6163,13 @@ function Nr(i, e, t) { "margin" in d && t(0, a = d.margin); }, [a, n, l, r, s]; } -class Mr extends Sr { +class zr extends Sr { constructor(e) { super(), Rr(this, e, Nr, qr, Lr, { margin: 0 }); } } const { - SvelteComponent: Pr, + SvelteComponent: Mr, append_hydration: Ct, attr: Xe, binding_callbacks: ta, @@ -6177,7 +6177,7 @@ const { children: lt, claim_component: gl, claim_element: ot, - claim_space: Me, + claim_space: ze, claim_text: ie, create_component: vl, create_slot: Dl, @@ -6185,25 +6185,25 @@ const { destroy_each: yl, detach: q, element: rt, - empty: ze, + empty: xe, ensure_array_like: Bn, get_all_dirty_from_scope: wl, get_slot_changes: Fl, group_outros: li, - init: xr, - insert_hydration: P, - mount_component: $l, + init: Pr, + insert_hydration: M, + mount_component: kl, noop: oi, - safe_not_equal: zr, + safe_not_equal: xr, set_data: Ue, set_style: Ft, - space: Pe, + space: Me, text: ae, toggle_class: Ne, transition_in: Ye, transition_out: st, - update_slot_base: kl -} = window.__gradio__svelte__internal, { tick: Ur } = window.__gradio__svelte__internal, { onDestroy: Hr } = window.__gradio__svelte__internal, { createEventDispatcher: Gr } = window.__gradio__svelte__internal, jr = (i) => ({}), na = (i) => ({}), Vr = (i) => ({}), ia = (i) => ({}); + update_slot_base: $l +} = window.__gradio__svelte__internal, { tick: Ur } = window.__gradio__svelte__internal, { onDestroy: Hr } = window.__gradio__svelte__internal, { createEventDispatcher: jr } = window.__gradio__svelte__internal, Gr = (i) => ({}), na = (i) => ({}), Vr = (i) => ({}), ia = (i) => ({}); function aa(i, e, t) { const n = i.slice(); return n[40] = e[t], n[42] = t, n; @@ -6219,7 +6219,7 @@ function Wr(i) { ), a, r, s; t = new Dr({ props: { - Icon: kr, + Icon: $r, label: ( /*i18n*/ i[1]("common.clear") @@ -6243,20 +6243,20 @@ function Wr(i) { ); return { c() { - e = rt("div"), vl(t.$$.fragment), n = Pe(), l = rt("span"), a = ae(o), r = Pe(), c && c.c(), this.h(); + e = rt("div"), vl(t.$$.fragment), n = Me(), l = rt("span"), a = ae(o), r = Me(), c && c.c(), this.h(); }, l(m) { e = ot(m, "DIV", { class: !0 }); var f = lt(e); - gl(t.$$.fragment, f), f.forEach(q), n = Me(m), l = ot(m, "SPAN", { class: !0 }); + gl(t.$$.fragment, f), f.forEach(q), n = ze(m), l = ot(m, "SPAN", { class: !0 }); var d = lt(l); - a = ie(d, o), d.forEach(q), r = Me(m), c && c.l(m), this.h(); + a = ie(d, o), d.forEach(q), r = ze(m), c && c.l(m), this.h(); }, h() { Xe(e, "class", "clear-status svelte-17v219f"), Xe(l, "class", "error svelte-17v219f"); }, m(m, f) { - P(m, e, f), $l(t, e, null), P(m, n, f), P(m, l, f), Ct(l, a), P(m, r, f), c && c.m(m, f), s = !0; + M(m, e, f), kl(t, e, null), M(m, n, f), M(m, l, f), Ct(l, a), M(m, r, f), c && c.m(m, f), s = !0; }, p(m, f) { const d = {}; @@ -6265,7 +6265,7 @@ function Wr(i) { m[1]("common.clear")), t.$set(d), (!s || f[0] & /*i18n*/ 2) && o !== (o = /*i18n*/ m[1]("common.error") + "") && Ue(a, o), c && c.p && (!s || f[0] & /*$$scope*/ - 536870912) && kl( + 536870912) && $l( c, u, m, @@ -6276,7 +6276,7 @@ function Wr(i) { /*$$scope*/ m[29], f, - jr + Gr ) : wl( /*$$scope*/ m[29] @@ -6337,12 +6337,12 @@ function Zr(i) { i[5] && ma(i); return { c() { - c && c.c(), e = Pe(), t = rt("div"), d && d.c(), n = Pe(), v && v.c(), l = Pe(), a && a.c(), r = Pe(), h && h.c(), s = ze(), this.h(); + c && c.c(), e = Me(), t = rt("div"), d && d.c(), n = Me(), v && v.c(), l = Me(), a && a.c(), r = Me(), h && h.c(), s = xe(), this.h(); }, l(_) { - c && c.l(_), e = Me(_), t = ot(_, "DIV", { class: !0 }); + c && c.l(_), e = ze(_), t = ot(_, "DIV", { class: !0 }); var g = lt(t); - d && d.l(g), n = Me(g), v && v.l(g), g.forEach(q), l = Me(_), a && a.l(_), r = Me(_), h && h.l(_), s = ze(), this.h(); + d && d.l(g), n = ze(g), v && v.l(g), g.forEach(q), l = ze(_), a && a.l(_), r = ze(_), h && h.l(_), s = xe(), this.h(); }, h() { Xe(t, "class", "progress-text svelte-17v219f"), Ne( @@ -6358,7 +6358,7 @@ function Zr(i) { ); }, m(_, g) { - c && c.m(_, g), P(_, e, g), P(_, t, g), d && d.m(t, null), Ct(t, n), v && v.m(t, null), P(_, l, g), ~o && w[o].m(_, g), P(_, r, g), h && h.m(_, g), P(_, s, g), u = !0; + c && c.m(_, g), M(_, e, g), M(_, t, g), d && d.m(t, null), Ct(t, n), v && v.m(t, null), M(_, l, g), ~o && w[o].m(_, g), M(_, r, g), h && h.m(_, g), M(_, s, g), u = !0; }, p(_, g) { /*variant*/ @@ -6412,7 +6412,7 @@ function oa(i) { Xe(e, "class", "eta-bar svelte-17v219f"), Ft(e, "transform", t); }, m(n, l) { - P(n, e, l); + M(n, e, l); }, p(n, l) { l[0] & /*eta_level*/ @@ -6434,7 +6434,7 @@ function Yr(i) { e = ie(t, "processing |"); }, m(t, n) { - P(t, e, n); + M(t, e, n); }, p: oi, d(t) { @@ -6462,7 +6462,7 @@ function Xr(i) { ), a = ie(r, " |"); }, m(r, s) { - P(r, e, s), P(r, n, s), P(r, l, s), P(r, o, s), P(r, a, s); + M(r, e, s), M(r, n, s), M(r, l, s), M(r, o, s), M(r, a, s); }, p(r, s) { s[0] & /*queue_position*/ @@ -6490,17 +6490,17 @@ function Kr(i) { c() { for (let l = 0; l < n.length; l += 1) n[l].c(); - e = ze(); + e = xe(); }, l(l) { for (let o = 0; o < n.length; o += 1) n[o].l(l); - e = ze(); + e = xe(); }, m(l, o) { for (let a = 0; a < n.length; a += 1) n[a] && n[a].m(l, o); - P(l, e, o); + M(l, e, o); }, p(l, o) { if (o[0] & /*progress*/ @@ -6538,13 +6538,13 @@ function ra(i) { let s = r(i), u = s(i); return { c() { - u.c(), e = Pe(), n = ae(t), l = ae(" | "), a = ae(o); + u.c(), e = Me(), n = ae(t), l = ae(" | "), a = ae(o); }, l(c) { - u.l(c), e = Me(c), n = ie(c, t), l = ie(c, " | "), a = ie(c, o); + u.l(c), e = ze(c), n = ie(c, t), l = ie(c, " | "), a = ie(c, o); }, m(c, m) { - u.m(c, m), P(c, e, m), P(c, n, m), P(c, l, m), P(c, a, m); + u.m(c, m), M(c, e, m), M(c, n, m), M(c, l, m), M(c, a, m); }, p(c, m) { s === (s = r(c)) && u ? u.p(c, m) : (u.d(1), u = s(c), u && (u.c(), u.m(e.parentNode, e))), m[0] & /*progress*/ @@ -6557,7 +6557,7 @@ function ra(i) { }; } function Qr(i) { - let e = Pt( + let e = Mt( /*p*/ i[40].index || 0 ) + "", t; @@ -6569,11 +6569,11 @@ function Qr(i) { t = ie(n, e); }, m(n, l) { - P(n, t, l); + M(n, t, l); }, p(n, l) { l[0] & /*progress*/ - 128 && e !== (e = Pt( + 128 && e !== (e = Mt( /*p*/ n[40].index || 0 ) + "") && Ue(t, e); @@ -6584,10 +6584,10 @@ function Qr(i) { }; } function Jr(i) { - let e = Pt( + let e = Mt( /*p*/ i[40].index || 0 - ) + "", t, n, l = Pt( + ) + "", t, n, l = Mt( /*p*/ i[40].length ) + "", o; @@ -6599,15 +6599,15 @@ function Jr(i) { t = ie(a, e), n = ie(a, "/"), o = ie(a, l); }, m(a, r) { - P(a, t, r), P(a, n, r), P(a, o, r); + M(a, t, r), M(a, n, r), M(a, o, r); }, p(a, r) { r[0] & /*progress*/ - 128 && e !== (e = Pt( + 128 && e !== (e = Mt( /*p*/ a[40].index || 0 ) + "") && Ue(t, e), r[0] & /*progress*/ - 128 && l !== (l = Pt( + 128 && l !== (l = Mt( /*p*/ a[40].length ) + "") && Ue(o, l); @@ -6624,13 +6624,13 @@ function sa(i) { ); return { c() { - t && t.c(), e = ze(); + t && t.c(), e = xe(); }, l(n) { - t && t.l(n), e = ze(); + t && t.l(n), e = xe(); }, m(n, l) { - t && t.m(n, l), P(n, e, l); + t && t.m(n, l), M(n, e, l); }, p(n, l) { /*p*/ @@ -6662,7 +6662,7 @@ function ua(i) { ), n = ie(o, t), l = ie(o, "s"); }, m(o, a) { - P(o, e, a), P(o, n, a), P(o, l, a); + M(o, e, a), M(o, n, a), M(o, l, a); }, p(o, a) { a[0] & /*formatted_timer*/ @@ -6682,7 +6682,7 @@ function ua(i) { } function es(i) { let e, t; - return e = new Mr({ + return e = new zr({ props: { margin: ( /*variant*/ i[8] === "default" @@ -6695,7 +6695,7 @@ function es(i) { gl(e.$$.fragment, n); }, m(n, l) { - $l(e, n, l), t = !0; + kl(e, n, l), t = !0; }, p(n, l) { const o = {}; @@ -6722,14 +6722,14 @@ function ts(i) { ); return { c() { - e = rt("div"), t = rt("div"), r && r.c(), n = Pe(), l = rt("div"), o = rt("div"), this.h(); + e = rt("div"), t = rt("div"), r && r.c(), n = Me(), l = rt("div"), o = rt("div"), this.h(); }, l(s) { e = ot(s, "DIV", { class: !0 }); var u = lt(e); t = ot(u, "DIV", { class: !0 }); var c = lt(t); - r && r.l(c), c.forEach(q), n = Me(u), l = ot(u, "DIV", { class: !0 }); + r && r.l(c), c.forEach(q), n = ze(u), l = ot(u, "DIV", { class: !0 }); var m = lt(l); o = ot(m, "DIV", { class: !0 }), lt(o).forEach(q), m.forEach(q), u.forEach(q), this.h(); }, @@ -6737,7 +6737,7 @@ function ts(i) { Xe(t, "class", "progress-level-inner svelte-17v219f"), Xe(o, "class", "progress-bar svelte-17v219f"), Ft(o, "width", a), Xe(l, "class", "progress-bar-wrap svelte-17v219f"), Xe(e, "class", "progress-level svelte-17v219f"); }, m(s, u) { - P(s, e, u), Ct(e, t), r && r.m(t, null), Ct(e, n), Ct(e, l), Ct(l, o), i[31](o); + M(s, e, u), Ct(e, t), r && r.m(t, null), Ct(e, n), Ct(e, l), Ct(l, o), i[31](o); }, p(s, u) { /*progress*/ @@ -6763,17 +6763,17 @@ function ca(i) { c() { for (let l = 0; l < n.length; l += 1) n[l].c(); - e = ze(); + e = xe(); }, l(l) { for (let o = 0; o < n.length; o += 1) n[o].l(l); - e = ze(); + e = xe(); }, m(l, o) { for (let a = 0; a < n.length; a += 1) n[a] && n[a].m(l, o); - P(l, e, o); + M(l, e, o); }, p(l, o) { if (o[0] & /*progress_level, progress*/ @@ -6818,13 +6818,13 @@ function _a(i) { ); return { c() { - o && o.c(), e = Pe(), a && a.c(), t = Pe(), r && r.c(), n = Pe(), s && s.c(), l = ze(); + o && o.c(), e = Me(), a && a.c(), t = Me(), r && r.c(), n = Me(), s && s.c(), l = xe(); }, l(u) { - o && o.l(u), e = Me(u), a && a.l(u), t = Me(u), r && r.l(u), n = Me(u), s && s.l(u), l = ze(); + o && o.l(u), e = ze(u), a && a.l(u), t = ze(u), r && r.l(u), n = ze(u), s && s.l(u), l = xe(); }, m(u, c) { - o && o.m(u, c), P(u, e, c), a && a.m(u, c), P(u, t, c), r && r.m(u, c), P(u, n, c), s && s.m(u, c), P(u, l, c); + o && o.m(u, c), M(u, e, c), a && a.m(u, c), M(u, t, c), r && r.m(u, c), M(u, n, c), s && s.m(u, c), M(u, l, c); }, p(u, c) { /*p*/ @@ -6852,7 +6852,7 @@ function ns(i) { e = ie(t, " /"); }, m(t, n) { - P(t, e, n); + M(t, e, n); }, d(t) { t && q(e); @@ -6872,7 +6872,7 @@ function da(i) { t = ie(n, e); }, m(n, l) { - P(n, t, l); + M(n, t, l); }, p(n, l) { l[0] & /*progress*/ @@ -6894,7 +6894,7 @@ function fa(i) { e = ie(t, "-"); }, m(t, n) { - P(t, e, n); + M(t, e, n); }, d(t) { t && q(e); @@ -6915,7 +6915,7 @@ function pa(i) { t = ie(l, e), n = ie(l, "%"); }, m(l, o) { - P(l, t, o), P(l, n, o); + M(l, t, o), M(l, n, o); }, p(l, o) { o[0] & /*progress_level*/ @@ -6942,13 +6942,13 @@ function ha(i) { ); return { c() { - t && t.c(), e = ze(); + t && t.c(), e = xe(); }, l(n) { - t && t.l(n), e = ze(); + t && t.l(n), e = xe(); }, m(n, l) { - t && t.m(n, l), P(n, e, l); + t && t.m(n, l), M(n, e, l); }, p(n, l) { /*p*/ @@ -6981,7 +6981,7 @@ function ma(i) { e = rt("p"), t = ae( /*loading_text*/ i[9] - ), n = Pe(), a && a.c(), this.h(); + ), n = Me(), a && a.c(), this.h(); }, l(r) { e = ot(r, "P", { class: !0 }); @@ -6990,13 +6990,13 @@ function ma(i) { s, /*loading_text*/ i[9] - ), s.forEach(q), n = Me(r), a && a.l(r), this.h(); + ), s.forEach(q), n = ze(r), a && a.l(r), this.h(); }, h() { Xe(e, "class", "loading svelte-17v219f"); }, m(r, s) { - P(r, e, s), Ct(e, t), P(r, n, s), a && a.m(r, s), l = !0; + M(r, e, s), Ct(e, t), M(r, n, s), a && a.m(r, s), l = !0; }, p(r, s) { (!l || s[0] & /*loading_text*/ @@ -7005,7 +7005,7 @@ function ma(i) { /*loading_text*/ r[9] ), a && a.p && (!l || s[0] & /*$$scope*/ - 536870912) && kl( + 536870912) && $l( a, o, r, @@ -7096,7 +7096,7 @@ function is(i) { ); }, m(u, c) { - P(u, e, c), ~t && r[t].m(e, null), i[33](e), o = !0; + M(u, e, c), ~t && r[t].m(e, null), i[33](e), o = !0; }, p(u, c) { let m = t; @@ -7185,13 +7185,13 @@ var as = function(i, e, t, n) { u((n = n.apply(i, e || [])).next()); }); }; -let wn = [], jn = !1; +let wn = [], Gn = !1; const ls = typeof window < "u", El = ls ? window.requestAnimationFrame : (i) => { }; function os(i) { return as(this, arguments, void 0, function* (e, t = !0) { if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && t !== !0)) { - if (wn.push(e), !jn) jn = !0; + if (wn.push(e), !Gn) Gn = !0; else return; yield Ur(), El(() => { let n = [0, 0]; @@ -7199,33 +7199,33 @@ function os(i) { const a = wn[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" }), jn = !1, wn = []; + window.scrollTo({ top: n[0] - 20, behavior: "smooth" }), Gn = !1, wn = []; }); } }); } function rs(i, e, t) { let n, { $$slots: l = {}, $$scope: o } = e; - const a = Gr(); - let { i18n: r } = e, { eta: s = null } = e, { queue_position: u } = e, { queue_size: c } = e, { status: m } = e, { scroll_to_output: f = !1 } = e, { timer: d = !0 } = e, { show_progress: v = "full" } = e, { message: y = null } = e, { progress: w = null } = e, { variant: C = "default" } = e, { loading_text: h = "Loading..." } = e, { absolute: _ = !0 } = e, { translucent: g = !1 } = e, { border: b = !1 } = e, { autoscroll: F } = e, A, T = !1, S = 0, M = 0, N = null, G = null, Fe = 0, ue = null, $e, _e = null, ne = !0; + const a = jr(); + let { i18n: r } = e, { eta: s = null } = e, { queue_position: u } = e, { queue_size: c } = e, { status: m } = e, { scroll_to_output: f = !1 } = e, { timer: d = !0 } = e, { show_progress: v = "full" } = e, { message: y = null } = e, { progress: w = null } = e, { variant: C = "default" } = e, { loading_text: h = "Loading..." } = e, { absolute: _ = !0 } = e, { translucent: g = !1 } = e, { border: b = !1 } = e, { autoscroll: F } = e, A, T = !1, S = 0, z = 0, N = null, j = null, Fe = 0, ue = null, ke, _e = null, ne = !0; const X = () => { - t(0, s = t(27, N = t(19, $ = null))), t(25, S = performance.now()), t(26, M = 0), T = !0, se(); + t(0, s = t(27, N = t(19, k = null))), t(25, S = performance.now()), t(26, z = 0), T = !0, se(); }; function se() { El(() => { - t(26, M = (performance.now() - S) / 1e3), T && se(); + t(26, z = (performance.now() - S) / 1e3), T && se(); }); } function ge() { - t(26, M = 0), t(0, s = t(27, N = t(19, $ = null))), T && (T = !1); + t(26, z = 0), t(0, s = t(27, N = t(19, k = null))), T && (T = !1); } Hr(() => { T && ge(); }); - let $ = null; + let k = null; function oe(E) { ta[E ? "unshift" : "push"](() => { - _e = E, t(16, _e), t(7, w), t(14, ue), t(15, $e); + _e = E, t(16, _e), t(7, w), t(14, ue), t(15, ke); }); } const K = () => { @@ -7240,19 +7240,19 @@ function rs(i, e, t) { "i18n" in E && t(1, r = E.i18n), "eta" in E && t(0, s = E.eta), "queue_position" in E && t(2, u = E.queue_position), "queue_size" in E && t(3, c = E.queue_size), "status" in E && t(4, m = E.status), "scroll_to_output" in E && t(22, f = E.scroll_to_output), "timer" in E && t(5, d = E.timer), "show_progress" in E && t(6, v = E.show_progress), "message" in E && t(23, y = E.message), "progress" in E && t(7, w = E.progress), "variant" in E && t(8, C = E.variant), "loading_text" in E && t(9, h = E.loading_text), "absolute" in E && t(10, _ = E.absolute), "translucent" in E && t(11, g = E.translucent), "border" in E && t(12, b = E.border), "autoscroll" in E && t(24, F = E.autoscroll), "$$scope" in E && t(29, o = E.$$scope); }, i.$$.update = () => { i.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/ - 436207617 && (s === null && t(0, s = N), s != null && N !== s && (t(28, G = (performance.now() - S) / 1e3 + s), t(19, $ = G.toFixed(1)), t(27, N = s))), i.$$.dirty[0] & /*eta_from_start, timer_diff*/ - 335544320 && t(17, Fe = G === null || G <= 0 || !M ? null : Math.min(M / G, 1)), i.$$.dirty[0] & /*progress*/ + 436207617 && (s === null && t(0, s = N), s != null && N !== s && (t(28, j = (performance.now() - S) / 1e3 + s), t(19, k = j.toFixed(1)), t(27, N = s))), i.$$.dirty[0] & /*eta_from_start, timer_diff*/ + 335544320 && t(17, Fe = j === null || j <= 0 || !z ? null : Math.min(z / j, 1)), i.$$.dirty[0] & /*progress*/ 128 && w != null && t(18, ne = !1), i.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/ 114816 && (w != null ? t(14, ue = w.map((E) => { if (E.index != null && E.length != null) return E.index / E.length; if (E.progress != null) return E.progress; - })) : t(14, ue = null), ue ? (t(15, $e = ue[ue.length - 1]), _e && ($e === 0 ? t(16, _e.style.transition = "0", _e) : t(16, _e.style.transition = "150ms", _e))) : t(15, $e = void 0)), i.$$.dirty[0] & /*status*/ + })) : t(14, ue = null), ue ? (t(15, ke = ue[ue.length - 1]), _e && (ke === 0 ? t(16, _e.style.transition = "0", _e) : t(16, _e.style.transition = "150ms", _e))) : t(15, ke = void 0)), i.$$.dirty[0] & /*status*/ 16 && (m === "pending" ? X() : ge()), i.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/ 20979728 && A && f && (m === "pending" || m === "complete") && os(A, F), i.$$.dirty[0] & /*status, message*/ 8388624, i.$$.dirty[0] & /*timer_diff*/ - 67108864 && t(20, n = M.toFixed(1)); + 67108864 && t(20, n = z.toFixed(1)); }, [ s, r, @@ -7269,20 +7269,20 @@ function rs(i, e, t) { b, A, ue, - $e, + ke, _e, Fe, ne, - $, + k, n, a, f, y, F, S, - M, + z, N, - G, + j, o, l, oe, @@ -7290,14 +7290,14 @@ function rs(i, e, t) { de ]; } -class ss extends Pr { +class ss extends Mr { constructor(e) { - super(), xr( + super(), Pr( this, e, rs, is, - zr, + xr, { i18n: 1, eta: 0, @@ -7349,7 +7349,7 @@ ri || (ri = function(e, t, n) { si || (si = function(e, t) { return new e(...t); }); -const Fn = Ae(Array.prototype.forEach), ds = Ae(Array.prototype.lastIndexOf), va = Ae(Array.prototype.pop), Xt = Ae(Array.prototype.push), fs = Ae(Array.prototype.splice), An = Ae(String.prototype.toLowerCase), Vn = Ae(String.prototype.toString), Da = Ae(String.prototype.match), Kt = Ae(String.prototype.replace), ps = Ae(String.prototype.indexOf), hs = Ae(String.prototype.trim), Ze = Ae(Object.prototype.hasOwnProperty), ke = Ae(RegExp.prototype.test), Qt = ms(TypeError); +const Fn = Ae(Array.prototype.forEach), ds = Ae(Array.prototype.lastIndexOf), va = Ae(Array.prototype.pop), Xt = Ae(Array.prototype.push), fs = Ae(Array.prototype.splice), An = Ae(String.prototype.toLowerCase), Vn = Ae(String.prototype.toString), Da = Ae(String.prototype.match), Kt = Ae(String.prototype.replace), ps = Ae(String.prototype.indexOf), hs = Ae(String.prototype.trim), Ze = Ae(Object.prototype.hasOwnProperty), $e = Ae(RegExp.prototype.test), Qt = ms(TypeError); function Ae(i) { return function(e) { e instanceof RegExp && (e.lastIndex = 0); @@ -7365,7 +7365,7 @@ function ms(i) { return si(i, t); }; } -function x(i, e) { +function P(i, e) { let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : An; ga && ga(i, null); let n = e.length; @@ -7406,23 +7406,23 @@ function Jt(i, e) { } return t; } -const ba = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Wn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Zn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), vs = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Yn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ds = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ya = Ee(["#text"]), wa = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Xn = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Fa = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), $n = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bs = He(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ys = He(/<%[\w\W]*|[\w\W]*%>/gm), ws = He(/\$\{[\w\W]*/gm), Fs = He(/^data-[\-\w.\u00B7-\uFFFF]+$/), $s = He(/^aria-[\-\w]+$/), Sl = He( +const ba = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Wn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Zn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), vs = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Yn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ds = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ya = Ee(["#text"]), wa = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Xn = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Fa = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), kn = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bs = He(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ys = He(/<%[\w\W]*|[\w\W]*%>/gm), ws = He(/\$\{[\w\W]*/gm), Fs = He(/^data-[\-\w.\u00B7-\uFFFF]+$/), ks = He(/^aria-[\-\w]+$/), Sl = He( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape -), ks = He(/^(?:\w+script|data):/i), Es = He( +), $s = He(/^(?:\w+script|data):/i), Es = He( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex ), Tl = He(/^html$/i), As = He(/^[a-z][.\w]*(-[.\w]+)+$/i); -var $a = /* @__PURE__ */ Object.freeze({ +var ka = /* @__PURE__ */ Object.freeze({ __proto__: null, - ARIA_ATTR: $s, + ARIA_ATTR: ks, ATTR_WHITESPACE: Es, CUSTOM_ELEMENT: As, DATA_ATTR: Fs, DOCTYPE_NAME: Tl, ERB_EXPR: ys, IS_ALLOWED_URI: Sl, - IS_SCRIPT_OR_DATA: ks, + IS_SCRIPT_OR_DATA: $s, MUSTACHE_EXPR: bs, TMPLIT_EXPR: ws }); @@ -7454,7 +7454,7 @@ const en = { } catch { return console.warn("TrustedTypes policy " + o + " could not be created."), null; } -}, ka = function() { +}, $a = function() { return { afterSanitizeAttributes: [], afterSanitizeElements: [], @@ -7497,26 +7497,26 @@ function Bl() { createDocumentFragment: T, getElementsByTagName: S } = t, { - importNode: M + importNode: z } = n; - let N = ka(); + let N = $a(); e.isSupported = typeof Al == "function" && typeof _ == "function" && F && F.createHTMLDocument !== void 0; const { - MUSTACHE_EXPR: G, + MUSTACHE_EXPR: j, ERB_EXPR: Fe, TMPLIT_EXPR: ue, - DATA_ATTR: $e, + DATA_ATTR: ke, ARIA_ATTR: _e, IS_SCRIPT_OR_DATA: ne, ATTR_WHITESPACE: X, CUSTOM_ELEMENT: se - } = $a; + } = ka; let { IS_ALLOWED_URI: ge - } = $a, $ = null; - const oe = x({}, [...ba, ...Wn, ...Zn, ...Yn, ...ya]); + } = ka, k = null; + const oe = P({}, [...ba, ...Wn, ...Zn, ...Yn, ...ya]); let K = null; - const de = x({}, [...wa, ...Xn, ...Fa, ...$n]); + const de = P({}, [...wa, ...Xn, ...Fa, ...kn]); let E = Object.seal(Cl(null, { tagNameCheck: { writable: !0, @@ -7536,28 +7536,28 @@ function Bl() { enumerable: !0, value: !1 } - })), Ce = null, Ke = null, Dt = !0, bt = !0, yt = !1, _t = !0, Qe = !1, Je = !0, dt = !1, Ht = !1, Gt = !1, wt = !1, Rt = !1, It = !1, cn = !0, _n = !1; + })), Ce = null, Ke = null, Dt = !0, bt = !0, yt = !1, _t = !0, Qe = !1, Je = !0, dt = !1, Ht = !1, jt = !1, wt = !1, Rt = !1, It = !1, cn = !0, _n = !1; const Ln = "user-content-"; - let jt = !0, kt = !1, D = {}, R = null; - const Q = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); + let Gt = !0, $t = !1, D = {}, R = null; + const Q = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); let re = null; - const Oe = x({}, ["audio", "video", "img", "source", "image", "track"]); + const Oe = P({}, ["audio", "video", "img", "source", "image", "track"]); let ft = null; - const Et = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Lt = "http://www.w3.org/1998/Math/MathML", Ot = "http://www.w3.org/2000/svg", Re = "http://www.w3.org/1999/xhtml"; + const Et = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Lt = "http://www.w3.org/1998/Math/MathML", Ot = "http://www.w3.org/2000/svg", Re = "http://www.w3.org/1999/xhtml"; let Se = Re, At = !1, On = null; - const xl = x({}, [Lt, Ot, Re], Vn); - let dn = x({}, ["mi", "mo", "mn", "ms", "mtext"]), fn = x({}, ["annotation-xml"]); - const zl = x({}, ["title", "style", "font", "a", "script"]); + const Pl = P({}, [Lt, Ot, Re], Vn); + let dn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), fn = P({}, ["annotation-xml"]); + const xl = P({}, ["title", "style", "font", "a", "script"]); let Vt = null; const Ul = ["application/xhtml+xml", "text/html"], Hl = "text/html"; let fe = null, qt = null; - const Gl = t.createElement("form"), gi = function(p) { + const jl = t.createElement("form"), gi = function(p) { return p instanceof RegExp || p instanceof Function; }, qn = function() { let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; if (!(qt && qt === p)) { if ((!p || typeof p != "object") && (p = {}), p = gt(p), Vt = // eslint-disable-next-line unicorn/prefer-includes - Ul.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? Hl : p.PARSER_MEDIA_TYPE, fe = Vt === "application/xhtml+xml" ? Vn : An, $ = Ze(p, "ALLOWED_TAGS") ? x({}, p.ALLOWED_TAGS, fe) : oe, K = Ze(p, "ALLOWED_ATTR") ? x({}, p.ALLOWED_ATTR, fe) : de, On = Ze(p, "ALLOWED_NAMESPACES") ? x({}, p.ALLOWED_NAMESPACES, Vn) : xl, ft = Ze(p, "ADD_URI_SAFE_ATTR") ? x(gt(Et), p.ADD_URI_SAFE_ATTR, fe) : Et, re = Ze(p, "ADD_DATA_URI_TAGS") ? x(gt(Oe), p.ADD_DATA_URI_TAGS, fe) : Oe, R = Ze(p, "FORBID_CONTENTS") ? x({}, p.FORBID_CONTENTS, fe) : Q, Ce = Ze(p, "FORBID_TAGS") ? x({}, p.FORBID_TAGS, fe) : gt({}), Ke = Ze(p, "FORBID_ATTR") ? x({}, p.FORBID_ATTR, fe) : gt({}), D = Ze(p, "USE_PROFILES") ? p.USE_PROFILES : !1, Dt = p.ALLOW_ARIA_ATTR !== !1, bt = p.ALLOW_DATA_ATTR !== !1, yt = p.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Qe = p.SAFE_FOR_TEMPLATES || !1, Je = p.SAFE_FOR_XML !== !1, dt = p.WHOLE_DOCUMENT || !1, wt = p.RETURN_DOM || !1, Rt = p.RETURN_DOM_FRAGMENT || !1, It = p.RETURN_TRUSTED_TYPE || !1, Gt = p.FORCE_BODY || !1, cn = p.SANITIZE_DOM !== !1, _n = p.SANITIZE_NAMED_PROPS || !1, jt = p.KEEP_CONTENT !== !1, kt = p.IN_PLACE || !1, ge = p.ALLOWED_URI_REGEXP || Sl, Se = p.NAMESPACE || Re, dn = p.MATHML_TEXT_INTEGRATION_POINTS || dn, fn = p.HTML_INTEGRATION_POINTS || fn, E = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && gi(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (E.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && gi(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (E.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (E.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Qe && (bt = !1), Rt && (wt = !0), D && ($ = x({}, ya), K = [], D.html === !0 && (x($, ba), x(K, wa)), D.svg === !0 && (x($, Wn), x(K, Xn), x(K, $n)), D.svgFilters === !0 && (x($, Zn), x(K, Xn), x(K, $n)), D.mathMl === !0 && (x($, Yn), x(K, Fa), x(K, $n))), p.ADD_TAGS && ($ === oe && ($ = gt($)), x($, p.ADD_TAGS, fe)), p.ADD_ATTR && (K === de && (K = gt(K)), x(K, p.ADD_ATTR, fe)), p.ADD_URI_SAFE_ATTR && x(ft, p.ADD_URI_SAFE_ATTR, fe), p.FORBID_CONTENTS && (R === Q && (R = gt(R)), x(R, p.FORBID_CONTENTS, fe)), jt && ($["#text"] = !0), dt && x($, ["html", "head", "body"]), $.table && (x($, ["tbody"]), delete Ce.tbody), p.TRUSTED_TYPES_POLICY) { + Ul.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? Hl : p.PARSER_MEDIA_TYPE, fe = Vt === "application/xhtml+xml" ? Vn : An, k = Ze(p, "ALLOWED_TAGS") ? P({}, p.ALLOWED_TAGS, fe) : oe, K = Ze(p, "ALLOWED_ATTR") ? P({}, p.ALLOWED_ATTR, fe) : de, On = Ze(p, "ALLOWED_NAMESPACES") ? P({}, p.ALLOWED_NAMESPACES, Vn) : Pl, ft = Ze(p, "ADD_URI_SAFE_ATTR") ? P(gt(Et), p.ADD_URI_SAFE_ATTR, fe) : Et, re = Ze(p, "ADD_DATA_URI_TAGS") ? P(gt(Oe), p.ADD_DATA_URI_TAGS, fe) : Oe, R = Ze(p, "FORBID_CONTENTS") ? P({}, p.FORBID_CONTENTS, fe) : Q, Ce = Ze(p, "FORBID_TAGS") ? P({}, p.FORBID_TAGS, fe) : gt({}), Ke = Ze(p, "FORBID_ATTR") ? P({}, p.FORBID_ATTR, fe) : gt({}), D = Ze(p, "USE_PROFILES") ? p.USE_PROFILES : !1, Dt = p.ALLOW_ARIA_ATTR !== !1, bt = p.ALLOW_DATA_ATTR !== !1, yt = p.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Qe = p.SAFE_FOR_TEMPLATES || !1, Je = p.SAFE_FOR_XML !== !1, dt = p.WHOLE_DOCUMENT || !1, wt = p.RETURN_DOM || !1, Rt = p.RETURN_DOM_FRAGMENT || !1, It = p.RETURN_TRUSTED_TYPE || !1, jt = p.FORCE_BODY || !1, cn = p.SANITIZE_DOM !== !1, _n = p.SANITIZE_NAMED_PROPS || !1, Gt = p.KEEP_CONTENT !== !1, $t = p.IN_PLACE || !1, ge = p.ALLOWED_URI_REGEXP || Sl, Se = p.NAMESPACE || Re, dn = p.MATHML_TEXT_INTEGRATION_POINTS || dn, fn = p.HTML_INTEGRATION_POINTS || fn, E = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && gi(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (E.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && gi(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (E.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (E.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Qe && (bt = !1), Rt && (wt = !0), D && (k = P({}, ya), K = [], D.html === !0 && (P(k, ba), P(K, wa)), D.svg === !0 && (P(k, Wn), P(K, Xn), P(K, kn)), D.svgFilters === !0 && (P(k, Zn), P(K, Xn), P(K, kn)), D.mathMl === !0 && (P(k, Yn), P(K, Fa), P(K, kn))), p.ADD_TAGS && (k === oe && (k = gt(k)), P(k, p.ADD_TAGS, fe)), p.ADD_ATTR && (K === de && (K = gt(K)), P(K, p.ADD_ATTR, fe)), p.ADD_URI_SAFE_ATTR && P(ft, p.ADD_URI_SAFE_ATTR, fe), p.FORBID_CONTENTS && (R === Q && (R = gt(R)), P(R, p.FORBID_CONTENTS, fe)), Gt && (k["#text"] = !0), dt && P(k, ["html", "head", "body"]), k.table && (P(k, ["tbody"]), delete Ce.tbody), p.TRUSTED_TYPES_POLICY) { if (typeof p.TRUSTED_TYPES_POLICY.createHTML != "function") throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); if (typeof p.TRUSTED_TYPES_POLICY.createScriptURL != "function") @@ -7567,14 +7567,14 @@ function Bl() { g === void 0 && (g = Ss(d, l)), g !== null && typeof b == "string" && (b = g.createHTML("")); Ee && Ee(p), qt = p; } - }, vi = x({}, [...Wn, ...Zn, ...vs]), Di = x({}, [...Yn, ...Ds]), jl = function(p) { - let k = _(p); - (!k || !k.tagName) && (k = { + }, vi = P({}, [...Wn, ...Zn, ...vs]), Di = P({}, [...Yn, ...Ds]), Gl = function(p) { + let $ = _(p); + (!$ || !$.tagName) && ($ = { namespaceURI: Se, tagName: "template" }); - const B = An(p.tagName), te = An(k.tagName); - return On[p.namespaceURI] ? p.namespaceURI === Ot ? k.namespaceURI === Re ? B === "svg" : k.namespaceURI === Lt ? B === "svg" && (te === "annotation-xml" || dn[te]) : !!vi[B] : p.namespaceURI === Lt ? k.namespaceURI === Re ? B === "math" : k.namespaceURI === Ot ? B === "math" && fn[te] : !!Di[B] : p.namespaceURI === Re ? k.namespaceURI === Ot && !fn[te] || k.namespaceURI === Lt && !dn[te] ? !1 : !Di[B] && (zl[B] || !vi[B]) : !!(Vt === "application/xhtml+xml" && On[p.namespaceURI]) : !1; + const B = An(p.tagName), te = An($.tagName); + return On[p.namespaceURI] ? p.namespaceURI === Ot ? $.namespaceURI === Re ? B === "svg" : $.namespaceURI === Lt ? B === "svg" && (te === "annotation-xml" || dn[te]) : !!vi[B] : p.namespaceURI === Lt ? $.namespaceURI === Re ? B === "math" : $.namespaceURI === Ot ? B === "math" && fn[te] : !!Di[B] : p.namespaceURI === Re ? $.namespaceURI === Ot && !fn[te] || $.namespaceURI === Lt && !dn[te] ? !1 : !Di[B] && (xl[B] || !vi[B]) : !!(Vt === "application/xhtml+xml" && On[p.namespaceURI]) : !1; }, et = function(p) { Xt(e.removed, { element: p @@ -7584,32 +7584,32 @@ function Bl() { } catch { w(p); } - }, Nt = function(p, k) { + }, Nt = function(p, $) { try { Xt(e.removed, { - attribute: k.getAttributeNode(p), - from: k + attribute: $.getAttributeNode(p), + from: $ }); } catch { Xt(e.removed, { attribute: null, - from: k + from: $ }); } - if (k.removeAttribute(p), p === "is") + if ($.removeAttribute(p), p === "is") if (wt || Rt) try { - et(k); + et($); } catch { } else try { - k.setAttribute(p, ""); + $.setAttribute(p, ""); } catch { } }, bi = function(p) { - let k = null, B = null; - if (Gt) + let $ = null, B = null; + if (jt) p = "" + p; else { const ce = Da(p, /^[\r\n\t ]+/); @@ -7619,18 +7619,18 @@ function Bl() { const te = g ? g.createHTML(p) : p; if (Se === Re) try { - k = new f().parseFromString(te, Vt); + $ = new f().parseFromString(te, Vt); } catch { } - if (!k || !k.documentElement) { - k = F.createDocument(Se, "template", null); + if (!$ || !$.documentElement) { + $ = F.createDocument(Se, "template", null); try { - k.documentElement.innerHTML = At ? b : te; + $.documentElement.innerHTML = At ? b : te; } catch { } } - const ve = k.body || k.documentElement; - return p && B && ve.insertBefore(t.createTextNode(B), ve.childNodes[0] || null), Se === Re ? S.call(k, dt ? "html" : "body")[0] : dt ? k.documentElement : ve; + const ve = $.body || $.documentElement; + return p && B && ve.insertBefore(t.createTextNode(B), ve.childNodes[0] || null), Se === Re ? S.call($, dt ? "html" : "body")[0] : dt ? $.documentElement : ve; }, yi = function(p) { return A.call( p.ownerDocument || p, @@ -7644,25 +7644,25 @@ function Bl() { }, wi = function(p) { return typeof r == "function" && p instanceof r; }; - function pt(O, p, k) { + function pt(O, p, $) { Fn(O, (B) => { - B.call(e, p, k, qt); + B.call(e, p, $, qt); }); } const Fi = function(p) { - let k = null; + let $ = null; if (pt(N.beforeSanitizeElements, p, null), Nn(p)) return et(p), !0; const B = fe(p.nodeName); if (pt(N.uponSanitizeElement, p, { tagName: B, - allowedTags: $ - }), Je && p.hasChildNodes() && !wi(p.firstElementChild) && ke(/<[/\w!]/g, p.innerHTML) && ke(/<[/\w!]/g, p.textContent) || p.nodeType === en.progressingInstruction || Je && p.nodeType === en.comment && ke(/<[/\w]/g, p.data)) + allowedTags: k + }), Je && p.hasChildNodes() && !wi(p.firstElementChild) && $e(/<[/\w!]/g, p.innerHTML) && $e(/<[/\w!]/g, p.textContent) || p.nodeType === en.progressingInstruction || Je && p.nodeType === en.comment && $e(/<[/\w]/g, p.data)) return et(p), !0; - if (!$[B] || Ce[B]) { - if (!Ce[B] && ki(B) && (E.tagNameCheck instanceof RegExp && ke(E.tagNameCheck, B) || E.tagNameCheck instanceof Function && E.tagNameCheck(B))) + if (!k[B] || Ce[B]) { + if (!Ce[B] && $i(B) && (E.tagNameCheck instanceof RegExp && $e(E.tagNameCheck, B) || E.tagNameCheck instanceof Function && E.tagNameCheck(B))) return !1; - if (jt && !R[B]) { + if (Gt && !R[B]) { const te = _(p) || p.parentNode, ve = h(p) || p.childNodes; if (ve && te) { const ce = ve.length; @@ -7674,29 +7674,29 @@ function Bl() { } return et(p), !0; } - return p instanceof s && !jl(p) || (B === "noscript" || B === "noembed" || B === "noframes") && ke(/<\/no(script|embed|frames)/i, p.innerHTML) ? (et(p), !0) : (Qe && p.nodeType === en.text && (k = p.textContent, Fn([G, Fe, ue], (te) => { - k = Kt(k, te, " "); - }), p.textContent !== k && (Xt(e.removed, { + return p instanceof s && !Gl(p) || (B === "noscript" || B === "noembed" || B === "noframes") && $e(/<\/no(script|embed|frames)/i, p.innerHTML) ? (et(p), !0) : (Qe && p.nodeType === en.text && ($ = p.textContent, Fn([j, Fe, ue], (te) => { + $ = Kt($, te, " "); + }), p.textContent !== $ && (Xt(e.removed, { element: p.cloneNode() - }), p.textContent = k)), pt(N.afterSanitizeElements, p, null), !1); - }, $i = function(p, k, B) { - if (cn && (k === "id" || k === "name") && (B in t || B in Gl)) + }), p.textContent = $)), pt(N.afterSanitizeElements, p, null), !1); + }, ki = function(p, $, B) { + if (cn && ($ === "id" || $ === "name") && (B in t || B in jl)) return !1; - if (!(bt && !Ke[k] && ke($e, k))) { - if (!(Dt && ke(_e, k))) { - if (!K[k] || Ke[k]) { + if (!(bt && !Ke[$] && $e(ke, $))) { + if (!(Dt && $e(_e, $))) { + if (!K[$] || Ke[$]) { if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck - !(ki(p) && (E.tagNameCheck instanceof RegExp && ke(E.tagNameCheck, p) || E.tagNameCheck instanceof Function && E.tagNameCheck(p)) && (E.attributeNameCheck instanceof RegExp && ke(E.attributeNameCheck, k) || E.attributeNameCheck instanceof Function && E.attributeNameCheck(k)) || // Alternative, second condition checks if it's an `is`-attribute, AND + !($i(p) && (E.tagNameCheck instanceof RegExp && $e(E.tagNameCheck, p) || E.tagNameCheck instanceof Function && E.tagNameCheck(p)) && (E.attributeNameCheck instanceof RegExp && $e(E.attributeNameCheck, $) || E.attributeNameCheck instanceof Function && E.attributeNameCheck($)) || // Alternative, second condition checks if it's an `is`-attribute, AND // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck - k === "is" && E.allowCustomizedBuiltInElements && (E.tagNameCheck instanceof RegExp && ke(E.tagNameCheck, B) || E.tagNameCheck instanceof Function && E.tagNameCheck(B))) + $ === "is" && E.allowCustomizedBuiltInElements && (E.tagNameCheck instanceof RegExp && $e(E.tagNameCheck, B) || E.tagNameCheck instanceof Function && E.tagNameCheck(B))) ) return !1; - } else if (!ft[k]) { - if (!ke(ge, Kt(B, X, ""))) { - if (!((k === "src" || k === "xlink:href" || k === "href") && p !== "script" && ps(B, "data:") === 0 && re[p])) { - if (!(yt && !ke(ne, Kt(B, X, "")))) { + } else if (!ft[$]) { + if (!$e(ge, Kt(B, X, ""))) { + if (!(($ === "src" || $ === "xlink:href" || $ === "href") && p !== "script" && ps(B, "data:") === 0 && re[p])) { + if (!(yt && !$e(ne, Kt(B, X, "")))) { if (B) return !1; } @@ -7706,14 +7706,14 @@ function Bl() { } } return !0; - }, ki = function(p) { + }, $i = function(p) { return p !== "annotation-xml" && Da(p, se); }, Ei = function(p) { pt(N.beforeSanitizeAttributes, p, null); const { - attributes: k + attributes: $ } = p; - if (!k || Nn(p)) + if (!$ || Nn(p)) return; const B = { attrName: "", @@ -7722,15 +7722,15 @@ function Bl() { allowedAttributes: K, forceKeepAttr: void 0 }; - let te = k.length; + let te = $.length; for (; te--; ) { - const ve = k[te], { + const ve = $[te], { name: ce, namespaceURI: Te, value: ht - } = ve, Wt = fe(ce), Mn = ht; - let De = ce === "value" ? Mn : hs(Mn); - if (B.attrName = Wt, B.attrValue = De, B.keepAttr = !0, B.forceKeepAttr = void 0, pt(N.uponSanitizeAttribute, p, B), De = B.attrValue, _n && (Wt === "id" || Wt === "name") && (Nt(ce, p), De = Ln + De), Je && ke(/((--!?|])>)|<\/(style|title)/i, De)) { + } = ve, Wt = fe(ce), zn = ht; + let De = ce === "value" ? zn : hs(zn); + if (B.attrName = Wt, B.attrValue = De, B.keepAttr = !0, B.forceKeepAttr = void 0, pt(N.uponSanitizeAttribute, p, B), De = B.attrValue, _n && (Wt === "id" || Wt === "name") && (Nt(ce, p), De = Ln + De), Je && $e(/((--!?|])>)|<\/(style|title)/i, De)) { Nt(ce, p); continue; } @@ -7740,15 +7740,15 @@ function Bl() { Nt(ce, p); continue; } - if (!_t && ke(/\/>/i, De)) { + if (!_t && $e(/\/>/i, De)) { Nt(ce, p); continue; } - Qe && Fn([G, Fe, ue], (Ci) => { + Qe && Fn([j, Fe, ue], (Ci) => { De = Kt(De, Ci, " "); }); const Ai = fe(p.nodeName); - if (!$i(Ai, Wt, De)) { + if (!ki(Ai, Wt, De)) { Nt(ce, p); continue; } @@ -7763,7 +7763,7 @@ function Bl() { break; } } - if (De !== Mn) + if (De !== zn) try { Te ? p.setAttributeNS(Te, ce, De) : p.setAttribute(ce, De), Nn(p) ? et(p) : va(e.removed); } catch { @@ -7772,14 +7772,14 @@ function Bl() { } pt(N.afterSanitizeAttributes, p, null); }, Vl = function O(p) { - let k = null; + let $ = null; const B = yi(p); - for (pt(N.beforeSanitizeShadowDOM, p, null); k = B.nextNode(); ) - pt(N.uponSanitizeShadowNode, k, null), Fi(k), Ei(k), k.content instanceof o && O(k.content); + for (pt(N.beforeSanitizeShadowDOM, p, null); $ = B.nextNode(); ) + pt(N.uponSanitizeShadowNode, $, null), Fi($), Ei($), $.content instanceof o && O($.content); pt(N.afterSanitizeShadowDOM, p, null); }; return e.sanitize = function(O) { - let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null, B = null, te = null, ve = null; + let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, $ = null, B = null, te = null, ve = null; if (At = !O, At && (O = ""), typeof O != "string" && !wi(O)) if (typeof O.toString == "function") { if (O = O.toString(), typeof O != "string") @@ -7788,38 +7788,38 @@ function Bl() { throw Qt("toString is not a function"); if (!e.isSupported) return O; - if (Ht || qn(p), e.removed = [], typeof O == "string" && (kt = !1), kt) { + if (Ht || qn(p), e.removed = [], typeof O == "string" && ($t = !1), $t) { if (O.nodeName) { const ht = fe(O.nodeName); - if (!$[ht] || Ce[ht]) + if (!k[ht] || Ce[ht]) throw Qt("root node is forbidden and cannot be sanitized in-place"); } } else if (O instanceof r) - k = bi(""), B = k.ownerDocument.importNode(O, !0), B.nodeType === en.element && B.nodeName === "BODY" || B.nodeName === "HTML" ? k = B : k.appendChild(B); + $ = bi(""), B = $.ownerDocument.importNode(O, !0), B.nodeType === en.element && B.nodeName === "BODY" || B.nodeName === "HTML" ? $ = B : $.appendChild(B); else { if (!wt && !Qe && !dt && // eslint-disable-next-line unicorn/prefer-includes O.indexOf("<") === -1) return g && It ? g.createHTML(O) : O; - if (k = bi(O), !k) + if ($ = bi(O), !$) return wt ? null : It ? b : ""; } - k && Gt && et(k.firstChild); - const ce = yi(kt ? O : k); + $ && jt && et($.firstChild); + const ce = yi($t ? O : $); for (; te = ce.nextNode(); ) Fi(te), Ei(te), te.content instanceof o && Vl(te.content); - if (kt) + if ($t) return O; if (wt) { if (Rt) - for (ve = T.call(k.ownerDocument); k.firstChild; ) - ve.appendChild(k.firstChild); + for (ve = T.call($.ownerDocument); $.firstChild; ) + ve.appendChild($.firstChild); else - ve = k; - return (K.shadowroot || K.shadowrootmode) && (ve = M.call(n, ve, !0)), ve; + ve = $; + return (K.shadowroot || K.shadowrootmode) && (ve = z.call(n, ve, !0)), ve; } - let Te = dt ? k.outerHTML : k.innerHTML; - return dt && $["!doctype"] && k.ownerDocument && k.ownerDocument.doctype && k.ownerDocument.doctype.name && ke(Tl, k.ownerDocument.doctype.name) && (Te = " -` + Te), Qe && Fn([G, Fe, ue], (ht) => { + let Te = dt ? $.outerHTML : $.innerHTML; + return dt && k["!doctype"] && $.ownerDocument && $.ownerDocument.doctype && $.ownerDocument.doctype.name && $e(Tl, $.ownerDocument.doctype.name) && (Te = " +` + Te), Qe && Fn([j, Fe, ue], (ht) => { Te = Kt(Te, ht, " "); }), g && It ? g.createHTML(Te) : Te; }, e.setConfig = function() { @@ -7827,78 +7827,78 @@ function Bl() { qn(O), Ht = !0; }, e.clearConfig = function() { qt = null, Ht = !1; - }, e.isValidAttribute = function(O, p, k) { + }, e.isValidAttribute = function(O, p, $) { qt || qn({}); const B = fe(O), te = fe(p); - return $i(B, te, k); + return ki(B, te, $); }, e.addHook = function(O, p) { typeof p == "function" && Xt(N[O], p); }, e.removeHook = function(O, p) { if (p !== void 0) { - const k = ds(N[O], p); - return k === -1 ? void 0 : fs(N[O], k, 1)[0]; + const $ = ds(N[O], p); + return $ === -1 ? void 0 : fs(N[O], $, 1)[0]; } return va(N[O]); }, e.removeHooks = function(O) { N[O] = []; }, e.removeAllHooks = function() { - N = ka(); + N = $a(); }, e; } Bl(); const { - HtmlTagHydration: tk, - SvelteComponent: nk, - add_render_callback: ik, - append_hydration: ak, - attr: lk, - bubble: ok, - check_outros: rk, - children: sk, - claim_component: uk, - claim_element: ck, - claim_html_tag: _k, - claim_space: dk, - claim_text: fk, - create_component: pk, - create_in_transition: hk, - create_out_transition: mk, - destroy_component: gk, - detach: vk, - element: Dk, - get_svelte_dataset: bk, - group_outros: yk, - init: wk, - insert_hydration: Fk, - listen: $k, - mount_component: kk, - run_all: Ek, - safe_not_equal: Ak, - set_data: Ck, - space: Sk, - stop_propagation: Tk, - text: Bk, - toggle_class: Rk, - transition_in: Ik, - transition_out: Lk -} = window.__gradio__svelte__internal, { createEventDispatcher: Ok, onMount: qk } = window.__gradio__svelte__internal, { - SvelteComponent: Nk, - append_hydration: Mk, - attr: Pk, - bubble: xk, - check_outros: zk, - children: Uk, - claim_component: Hk, - claim_element: Gk, - claim_space: jk, - create_animation: Vk, - create_component: Wk, - destroy_component: Zk, - detach: Yk, - element: Xk, - ensure_array_like: Kk, - fix_and_outro_and_destroy_block: Qk, - fix_position: Jk, + HtmlTagHydration: t$, + SvelteComponent: n$, + add_render_callback: i$, + append_hydration: a$, + attr: l$, + bubble: o$, + check_outros: r$, + children: s$, + claim_component: u$, + claim_element: c$, + claim_html_tag: _$, + claim_space: d$, + claim_text: f$, + create_component: p$, + create_in_transition: h$, + create_out_transition: m$, + destroy_component: g$, + detach: v$, + element: D$, + get_svelte_dataset: b$, + group_outros: y$, + init: w$, + insert_hydration: F$, + listen: k$, + mount_component: $$, + run_all: E$, + safe_not_equal: A$, + set_data: C$, + space: S$, + stop_propagation: T$, + text: B$, + toggle_class: R$, + transition_in: I$, + transition_out: L$ +} = window.__gradio__svelte__internal, { createEventDispatcher: O$, onMount: q$ } = window.__gradio__svelte__internal, { + SvelteComponent: N$, + append_hydration: z$, + attr: M$, + bubble: P$, + check_outros: x$, + children: U$, + claim_component: H$, + claim_element: j$, + claim_space: G$, + create_animation: V$, + create_component: W$, + destroy_component: Z$, + detach: Y$, + element: X$, + ensure_array_like: K$, + fix_and_outro_and_destroy_block: Q$, + fix_position: J$, group_outros: eE, init: tE, insert_hydration: nE, @@ -7925,7 +7925,7 @@ const { set_style: wE } = window.__gradio__svelte__internal, { SvelteComponent: Ts, - append_hydration: z, + append_hydration: x, assign: Bs, attr: I, binding_callbacks: Rs, @@ -7941,32 +7941,32 @@ const { destroy_each: ql, detach: L, element: H, - empty: xe, - ensure_array_like: $t, + empty: Pe, + ensure_array_like: kt, get_spread_object: Ls, get_spread_update: Os, get_svelte_dataset: Nl, group_outros: qs, init: Ns, - init_binding_group_dynamic: Ms, + init_binding_group_dynamic: zs, insert_hydration: V, listen: le, - mount_component: Ml, + mount_component: zl, run_all: Ut, - safe_not_equal: Ps, + safe_not_equal: Ms, select_option: Ea, set_data: vt, set_input_value: Be, - set_style: xt, + set_style: Pt, space: me, - stop_propagation: xs, + stop_propagation: Ps, text: ct, to_number: ui, toggle_class: we, transition_in: on, transition_out: Rn, - update_keyed_each: Pl -} = window.__gradio__svelte__internal, { onMount: zs, tick: Aa } = window.__gradio__svelte__internal; + update_keyed_each: Ml +} = window.__gradio__svelte__internal, { onMount: xs, tick: Aa } = window.__gradio__svelte__internal; function Ca(i, e, t) { const n = i.slice(); return n[59] = e[t], n[61] = t, n; @@ -8065,7 +8065,7 @@ function Ra(i) { Rl(e.$$.fragment, o); }, m(o, a) { - Ml(e, o, a), t = !0; + zl(e, o, a), t = !0; }, p(o, a) { const r = a[0] & /*gradio, loading_status*/ @@ -8123,7 +8123,7 @@ function Ia(i) { I(e, "class", "label"); }, m(n, l) { - V(n, e, l), z(e, t); + V(n, e, l), x(e, t); }, p(n, l) { l[0] & /*label*/ @@ -8148,7 +8148,7 @@ function La(i) { e = U(n, "SPAN", { class: !0, "data-svelte-h": !0 }), Nl(e) !== "svelte-zp2qne" && (e.textContent = t), this.h(); }, h() { - I(e, "class", "accordion-icon svelte-1u03acn"), xt( + I(e, "class", "accordion-icon svelte-1eiz7kj"), Pt( e, "transform", /*open*/ @@ -8160,7 +8160,7 @@ function La(i) { }, p(n, l) { l[0] & /*open*/ - 2 && xt( + 2 && Pt( e, "transform", /*open*/ @@ -8187,14 +8187,14 @@ function Oa(i) { n && n.l(o), o.forEach(L), this.h(); }, h() { - I(e, "class", "container svelte-1u03acn"), xt( + I(e, "class", "container svelte-1eiz7kj"), Pt( e, "--show-group-name", /*value*/ i[0].length > 1 || /*show_group_name_only_one*/ i[3] && /*value*/ i[0].length === 1 ? "none" : "1px solid var(--border-color-primary)" - ), xt( + ), Pt( e, "--sheet-max-height", /*height*/ @@ -8211,7 +8211,7 @@ function Oa(i) { /*value*/ l[0] )), t ? n ? n.p(l, o) : (n = qa(l), n.c(), n.m(e, null)) : n && (n.d(1), n = null), o[0] & /*value, show_group_name_only_one*/ - 9 && xt( + 9 && Pt( e, "--show-group-name", /*value*/ @@ -8219,7 +8219,7 @@ function Oa(i) { l[3] && /*value*/ l[0].length === 1 ? "none" : "1px solid var(--border-color-primary)" ), o[0] & /*height*/ - 2048 && xt( + 2048 && Pt( e, "--sheet-max-height", /*height*/ @@ -8233,7 +8233,7 @@ function Oa(i) { }; } function qa(i) { - let e = [], t = /* @__PURE__ */ new Map(), n, l = $t( + let e = [], t = /* @__PURE__ */ new Map(), n, l = kt( /*value*/ i[0] ); @@ -8249,12 +8249,12 @@ function qa(i) { c() { for (let a = 0; a < e.length; a += 1) e[a].c(); - n = xe(); + n = Pe(); }, l(a) { for (let r = 0; r < e.length; r += 1) e[r].l(a); - n = xe(); + n = Pe(); }, m(a, r) { for (let s = 0; s < e.length; s += 1) @@ -8263,10 +8263,10 @@ function qa(i) { }, p(a, r) { r[0] & /*value, interactive, get_prop_value, initialValues, handle_reset_prop, dispatch_update, validationState, validate_prop, sliderElements, handle_dropdown_change, groupVisibility, toggleGroup, show_group_name_only_one*/ - 131571721 && (l = $t( + 131571721 && (l = kt( /*value*/ a[0] - ), e = Pl(e, r, o, 1, a, l, t, n.parentNode, Ll, Wa, n, Ca)); + ), e = Ml(e, r, o, 1, a, l, t, n.parentNode, Ll, Wa, n, Ca)); }, d(a) { a && L(n); @@ -8309,10 +8309,10 @@ function Na(i) { s = ut(y, r), y.forEach(L), d.forEach(L), this.h(); }, h() { - I(t, "class", "group-title"), I(a, "class", "group-toggle-icon"), I(e, "class", "group-header svelte-1u03acn"); + I(t, "class", "group-title"), I(a, "class", "group-toggle-icon"), I(e, "class", "group-header svelte-1eiz7kj"); }, m(f, d) { - V(f, e, d), z(e, t), z(t, l), z(e, o), z(e, a), z(a, s), u || (c = le(e, "click", m), u = !0); + V(f, e, d), x(e, t), x(t, l), x(e, o), x(e, a), x(a, s), u || (c = le(e, "click", m), u = !0); }, p(f, d) { i = f, d[0] & /*value*/ @@ -8329,11 +8329,11 @@ function Na(i) { } }; } -function Ma(i) { +function za(i) { let e, t = Array.isArray( /*group*/ i[59].properties - ), n, l = t && Pa(i); + ), n, l = t && Ma(i); return { c() { e = H("div"), l && l.c(), n = me(), this.h(); @@ -8344,25 +8344,25 @@ function Ma(i) { l && l.l(a), n = he(a), a.forEach(L), this.h(); }, h() { - I(e, "class", "properties-grid svelte-1u03acn"); + I(e, "class", "properties-grid svelte-1eiz7kj"); }, m(o, a) { - V(o, e, a), l && l.m(e, null), z(e, n); + V(o, e, a), l && l.m(e, null), x(e, n); }, p(o, a) { a[0] & /*value*/ 1 && (t = Array.isArray( /*group*/ o[59].properties - )), t ? l ? l.p(o, a) : (l = Pa(o), l.c(), l.m(e, n)) : l && (l.d(1), l = null); + )), t ? l ? l.p(o, a) : (l = Ma(o), l.c(), l.m(e, n)) : l && (l.d(1), l = null); }, d(o) { o && L(e), l && l.d(); } }; } -function Pa(i) { - let e = [], t = /* @__PURE__ */ new Map(), n, l = $t( +function Ma(i) { + let e = [], t = /* @__PURE__ */ new Map(), n, l = kt( /*group*/ i[59].properties ); @@ -8378,12 +8378,12 @@ function Pa(i) { c() { for (let a = 0; a < e.length; a += 1) e[a].c(); - n = xe(); + n = Pe(); }, l(a) { for (let r = 0; r < e.length; r += 1) e[r].l(a); - n = xe(); + n = Pe(); }, m(a, r) { for (let s = 0; s < e.length; s += 1) @@ -8392,10 +8392,10 @@ function Pa(i) { }, p(a, r) { r[0] & /*interactive, value, get_prop_value, initialValues, handle_reset_prop, dispatch_update, validationState, validate_prop, sliderElements, handle_dropdown_change*/ - 127344641 && (l = $t( + 127344641 && (l = kt( /*group*/ a[59].properties - ), e = Pl(e, r, o, 1, a, l, t, n.parentNode, Ll, Va, n, Sa)); + ), e = Ml(e, r, o, 1, a, l, t, n.parentNode, Ll, Va, n, Sa)); }, d(a) { a && L(n); @@ -8404,7 +8404,7 @@ function Pa(i) { } }; } -function xa(i) { +function Pa(i) { let e, t, n = "?", l, o, a = ( /*prop*/ i[62].help + "" @@ -8421,10 +8421,10 @@ function xa(i) { r = ut(c, a), c.forEach(L), u.forEach(L), this.h(); }, h() { - I(t, "class", "tooltip-icon svelte-1u03acn"), I(o, "class", "tooltip-text svelte-1u03acn"), I(e, "class", "tooltip-container svelte-1u03acn"); + I(t, "class", "tooltip-icon svelte-1eiz7kj"), I(o, "class", "tooltip-text svelte-1eiz7kj"), I(e, "class", "tooltip-container svelte-1eiz7kj"); }, m(s, u) { - V(s, e, u), z(e, t), z(e, l), z(e, o), z(o, r); + V(s, e, u), x(e, t), x(e, l), x(e, o), x(o, r); }, p(s, u) { u[0] & /*value*/ @@ -8440,7 +8440,7 @@ function Us(i) { let e, t = Array.isArray( /*prop*/ i[62].choices - ), n, l, o = t && za(i); + ), n, l, o = t && xa(i); function a() { return ( /*change_handler_7*/ @@ -8460,7 +8460,7 @@ function Us(i) { o && o.l(s), s.forEach(L), this.h(); }, h() { - I(e, "class", "radio-group svelte-1u03acn"), we(e, "disabled", !/*is_interactive*/ + I(e, "class", "radio-group svelte-1eiz7kj"), we(e, "disabled", !/*is_interactive*/ i[65]); }, m(r, s) { @@ -8471,7 +8471,7 @@ function Us(i) { 1 && (t = Array.isArray( /*prop*/ i[62].choices - )), t ? o ? o.p(i, s) : (o = za(i), o.c(), o.m(e, null)) : o && (o.d(1), o = null), s[0] & /*interactive, value, get_prop_value*/ + )), t ? o ? o.p(i, s) : (o = xa(i), o.c(), o.m(e, null)) : o && (o.d(1), o = null), s[0] & /*interactive, value, get_prop_value*/ 8396801 && we(e, "disabled", !/*is_interactive*/ i[65]); }, @@ -8508,15 +8508,15 @@ function Hs(i) { }, h() { t.disabled = l = !/*is_interactive*/ - i[65], I(t, "class", "svelte-1u03acn"), I(r, "class", "dropdown-arrow-icon svelte-1u03acn"), I(e, "class", "dropdown-wrapper svelte-1u03acn"), we(e, "disabled", !/*is_interactive*/ + i[65], I(t, "class", "svelte-1eiz7kj"), I(r, "class", "dropdown-arrow-icon svelte-1eiz7kj"), I(e, "class", "dropdown-wrapper svelte-1eiz7kj"), we(e, "disabled", !/*is_interactive*/ i[65]); }, m(f, d) { - V(f, e, d), z(e, t), c && c.m(t, null), Ea( + V(f, e, d), x(e, t), c && c.m(t, null), Ea( t, /*prop*/ i[62].value - ), z(e, a), z(e, r), s || (u = le(t, "change", m), s = !0); + ), x(e, a), x(e, r), s || (u = le(t, "change", m), s = !0); }, p(f, d) { i = f, d[0] & /*value*/ @@ -8540,7 +8540,7 @@ function Hs(i) { } }; } -function Gs(i) { +function js(i) { let e, t, n, l, o, a = ( /*prop*/ i[62].value + "" @@ -8575,16 +8575,16 @@ function Gs(i) { r = ut(v, a), v.forEach(L), d.forEach(L), this.h(); }, h() { - I(t, "type", "color"), I(t, "class", "color-picker-input svelte-1u03acn"), t.disabled = n = !/*is_interactive*/ - i[65], I(o, "class", "color-picker-value svelte-1u03acn"), I(e, "class", "color-picker-container svelte-1u03acn"), we(e, "disabled", !/*is_interactive*/ + I(t, "type", "color"), I(t, "class", "color-picker-input svelte-1eiz7kj"), t.disabled = n = !/*is_interactive*/ + i[65], I(o, "class", "color-picker-value svelte-1eiz7kj"), I(e, "class", "color-picker-container svelte-1eiz7kj"), we(e, "disabled", !/*is_interactive*/ i[65]); }, m(f, d) { - V(f, e, d), z(e, t), Be( + V(f, e, d), x(e, t), Be( t, /*prop*/ i[62].value - ), z(e, l), z(e, o), z(o, r), s || (u = [ + ), x(e, l), x(e, o), x(o, r), s || (u = [ le(t, "input", c), le(t, "change", m) ], s = !0); @@ -8608,7 +8608,7 @@ function Gs(i) { } }; } -function js(i) { +function Gs(i) { let e, t, n, l, o, a, r = ( /*prop*/ i[62] @@ -8672,15 +8672,15 @@ function js(i) { i[62].minimum), I(t, "max", l = /*prop*/ i[62].maximum), I(t, "step", o = /*prop*/ i[62].step || 1), t.disabled = a = !/*is_interactive*/ - i[65], I(t, "class", "svelte-1u03acn"), I(u, "class", "slider-value svelte-1u03acn"), I(e, "class", "slider-container svelte-1u03acn"), we(e, "disabled", !/*is_interactive*/ + i[65], I(t, "class", "svelte-1eiz7kj"), I(u, "class", "slider-value svelte-1eiz7kj"), I(e, "class", "slider-container svelte-1eiz7kj"), we(e, "disabled", !/*is_interactive*/ i[65]); }, m(_, g) { - V(_, e, g), z(e, t), Be( + V(_, e, g), x(e, t), Be( t, /*prop*/ i[62].value - ), y(), z(e, s), z(e, u), z(u, m), f || (d = [ + ), y(), x(e, s), x(e, u), x(u, m), f || (d = [ le(t, "change", v), le(t, "input", v), le(t, "input", C), @@ -8753,7 +8753,7 @@ function Vs(i) { h() { I(e, "type", "number"), I(e, "step", t = /*prop*/ i[62].step || 1), e.disabled = n = !/*is_interactive*/ - i[65], I(e, "class", "svelte-1u03acn"), we( + i[65], I(e, "class", "svelte-1eiz7kj"), we( e, "invalid", /*validationState*/ @@ -8833,7 +8833,7 @@ function Ws(i) { }, h() { I(e, "type", "checkbox"), e.disabled = t = !/*is_interactive*/ - i[65], I(e, "class", "svelte-1u03acn"); + i[65], I(e, "class", "svelte-1eiz7kj"); }, m(r, s) { V(r, e, s), e.checked = /*prop*/ @@ -8892,7 +8892,7 @@ function Zs(i) { }, h() { I(e, "type", "password"), e.disabled = t = !/*is_interactive*/ - i[65], I(e, "class", "svelte-1u03acn"); + i[65], I(e, "class", "svelte-1eiz7kj"); }, m(s, u) { V(s, e, u), Be( @@ -8959,7 +8959,7 @@ function Ys(i) { }, h() { I(e, "type", "text"), e.disabled = t = !/*is_interactive*/ - i[65], I(e, "class", "svelte-1u03acn"); + i[65], I(e, "class", "svelte-1eiz7kj"); }, m(s, u) { V(s, e, u), Be( @@ -8988,8 +8988,8 @@ function Ys(i) { } }; } -function za(i) { - let e, t = $t( +function xa(i) { + let e, t = kt( /*prop*/ i[62].choices ), n = []; @@ -8999,12 +8999,12 @@ function za(i) { c() { for (let l = 0; l < n.length; l += 1) n[l].c(); - e = xe(); + e = Pe(); }, l(l) { for (let o = 0; o < n.length; o += 1) n[o].l(l); - e = xe(); + e = Pe(); }, m(l, o) { for (let a = 0; a < n.length; a += 1) @@ -9014,7 +9014,7 @@ function za(i) { p(l, o) { if (o[0] & /*value, interactive, get_prop_value*/ 8396801) { - t = $t( + t = kt( /*prop*/ l[62].choices ); @@ -9047,7 +9047,7 @@ function Ua(i) { i[67] ); } - return v = Ms( + return v = zs( /*$$binding_groups*/ i[51][0], [ @@ -9078,13 +9078,13 @@ function Ua(i) { i[68]), I(t, "name", l = /*prop*/ i[62].name), t.__value = o = /*choice*/ i[68], Be(t, t.__value), t.disabled = r = !/*is_interactive*/ - i[65], I(t, "class", "svelte-1u03acn"), I(u, "for", f = /*prop*/ + i[65], I(t, "class", "svelte-1eiz7kj"), I(u, "for", f = /*prop*/ i[62].name + "-" + /*choice*/ - i[68]), I(u, "class", "svelte-1u03acn"), I(e, "class", "radio-item svelte-1u03acn"), v.p(t); + i[68]), I(u, "class", "svelte-1eiz7kj"), I(e, "class", "radio-item svelte-1eiz7kj"), v.p(t); }, m(h, _) { - V(h, e, _), z(e, t), t.checked = t.__value === /*prop*/ - i[62].value, z(e, s), z(e, u), z(u, m), z(e, d), y || (w = le(t, "change", C), y = !0); + V(h, e, _), x(e, t), t.checked = t.__value === /*prop*/ + i[62].value, x(e, s), x(e, u), x(u, m), x(e, d), y || (w = le(t, "change", C), y = !0); }, p(h, _) { i = h, _[0] & /*value*/ @@ -9117,22 +9117,22 @@ function Ua(i) { }; } function Ha(i) { - let e, t = $t( + let e, t = kt( /*prop*/ i[62].choices ), n = []; for (let l = 0; l < t.length; l += 1) - n[l] = Ga(Ba(i, t, l)); + n[l] = ja(Ba(i, t, l)); return { c() { for (let l = 0; l < n.length; l += 1) n[l].c(); - e = xe(); + e = Pe(); }, l(l) { for (let o = 0; o < n.length; o += 1) n[o].l(l); - e = xe(); + e = Pe(); }, m(l, o) { for (let a = 0; a < n.length; a += 1) @@ -9142,14 +9142,14 @@ function Ha(i) { p(l, o) { if (o[0] & /*value*/ 1) { - t = $t( + t = kt( /*prop*/ l[62].choices ); let a; for (a = 0; a < t.length; a += 1) { const r = Ba(l, t, a); - n[a] ? n[a].p(r, o) : (n[a] = Ga(r), n[a].c(), n[a].m(e.parentNode, e)); + n[a] ? n[a].p(r, o) : (n[a] = ja(r), n[a].c(), n[a].m(e.parentNode, e)); } for (; a < n.length; a += 1) n[a].d(1); @@ -9161,7 +9161,7 @@ function Ha(i) { } }; } -function Ga(i) { +function ja(i) { let e, t = ( /*choice*/ i[68] + "" @@ -9179,10 +9179,10 @@ function Ga(i) { e.__value = o = /*choice*/ i[68], Be(e, e.__value), e.selected = a = /*prop*/ i[62].value === /*choice*/ - i[68], I(e, "class", "svelte-1u03acn"); + i[68], I(e, "class", "svelte-1eiz7kj"); }, m(r, s) { - V(r, e, s), z(e, n), z(e, l); + V(r, e, s), x(e, n), x(e, l); }, p(r, s) { s[0] & /*value*/ @@ -9199,7 +9199,7 @@ function Ga(i) { } }; } -function ja(i) { +function Ga(i) { let e, t, n, l, o; function a() { return ( @@ -9220,7 +9220,7 @@ function ja(i) { t = ut(s, "↺"), s.forEach(L), this.h(); }, h() { - I(e, "class", "reset-button-prop svelte-1u03acn"), I(e, "title", "Reset to default"), e.disabled = n = !/*is_interactive*/ + I(e, "class", "reset-button-prop svelte-1eiz7kj"), I(e, "title", "Reset to default"), e.disabled = n = !/*is_interactive*/ i[65], we( e, "visible", @@ -9233,7 +9233,7 @@ function ja(i) { ); }, m(r, s) { - V(r, e, s), z(e, t), l || (o = le(e, "click", xs(a)), l = !0); + V(r, e, s), x(e, t), l || (o = le(e, "click", Ps(a)), l = !0); }, p(r, s) { i = r, s[0] & /*interactive, value*/ @@ -9261,7 +9261,7 @@ function Va(i, e) { e[62].label + "" ), a, r, s, u, c, m, f, d = ( /*prop*/ - e[62].help && xa(e) + e[62].help && Pa(e) ); function v(h, _) { if ( @@ -9284,11 +9284,11 @@ function Va(i, e) { if ( /*prop*/ h[62].component === "slider" - ) return js; + ) return Gs; if ( /*prop*/ h[62].component === "colorpicker" - ) return Gs; + ) return js; if ( /*prop*/ h[62].component === "dropdown" @@ -9300,7 +9300,7 @@ function Va(i, e) { } let y = v(e), w = y && y(e), C = ( /*prop*/ - e[62].component !== "checkbox" && ja(e) + e[62].component !== "checkbox" && Ga(e) ); return { key: i, @@ -9320,20 +9320,20 @@ function Va(i, e) { w && w.l(F), m = he(F), C && C.l(F), f = he(F), F.forEach(L), this.h(); }, h() { - I(n, "class", "prop-label-wrapper svelte-1u03acn"), I(t, "class", "prop-label svelte-1u03acn"), I(t, "for", s = /*prop*/ - e[62].name), I(c, "class", "prop-control svelte-1u03acn"), this.first = t; + I(n, "class", "prop-label-wrapper svelte-1eiz7kj"), I(t, "class", "prop-label svelte-1eiz7kj"), I(t, "for", s = /*prop*/ + e[62].name), I(c, "class", "prop-control svelte-1eiz7kj"), this.first = t; }, m(h, _) { - V(h, t, _), z(t, n), z(n, l), z(l, a), z(n, r), d && d.m(n, null), V(h, u, _), V(h, c, _), w && w.m(c, null), z(c, m), C && C.m(c, null), z(c, f); + V(h, t, _), x(t, n), x(n, l), x(l, a), x(n, r), d && d.m(n, null), V(h, u, _), V(h, c, _), w && w.m(c, null), x(c, m), C && C.m(c, null), x(c, f); }, p(h, _) { e = h, _[0] & /*value*/ 1 && o !== (o = /*prop*/ e[62].label + "") && vt(a, o), /*prop*/ - e[62].help ? d ? d.p(e, _) : (d = xa(e), d.c(), d.m(n, null)) : d && (d.d(1), d = null), _[0] & /*value*/ + e[62].help ? d ? d.p(e, _) : (d = Pa(e), d.c(), d.m(n, null)) : d && (d.d(1), d = null), _[0] & /*value*/ 1 && s !== (s = /*prop*/ e[62].name) && I(t, "for", s), y === (y = v(e)) && w ? w.p(e, _) : (w && w.d(1), w = y && y(e), w && (w.c(), w.m(c, m))), /*prop*/ - e[62].component !== "checkbox" ? C ? C.p(e, _) : (C = ja(e), C.c(), C.m(c, f)) : C && (C.d(1), C = null); + e[62].component !== "checkbox" ? C ? C.p(e, _) : (C = Ga(e), C.c(), C.m(c, f)) : C && (C.d(1), C = null); }, d(h) { h && (L(t), L(u), L(c)), d && d.d(), w && w.d(), C && C.d(); @@ -9351,16 +9351,16 @@ function Wa(i, e) { e[15][ /*group*/ e[59].group_name - ] && Ma(e) + ] && za(e) ); return { key: i, first: null, c() { - t = xe(), o && o.c(), n = me(), a && a.c(), l = xe(), this.h(); + t = Pe(), o && o.c(), n = me(), a && a.c(), l = Pe(), this.h(); }, l(r) { - t = xe(), o && o.l(r), n = he(r), a && a.l(r), l = xe(), this.h(); + t = Pe(), o && o.l(r), n = he(r), a && a.l(r), l = Pe(), this.h(); }, h() { this.first = t; @@ -9376,7 +9376,7 @@ function Wa(i, e) { e[15][ /*group*/ e[59].group_name - ] ? a ? a.p(e, s) : (a = Ma(e), a.c(), a.m(l.parentNode, l)) : a && (a.d(1), a = null); + ] ? a ? a.p(e, s) : (a = za(e), a.c(), a.m(l.parentNode, l)) : a && (a.d(1), a = null); }, d(r) { r && (L(t), L(n), L(l)), o && o.d(r), a && a.d(r); @@ -9407,12 +9407,12 @@ function Xs(i) { f && f.l(y), y.forEach(L), this.h(); }, h() { - I(t, "class", "accordion-header svelte-1u03acn"), t.disabled = /*disable_accordion*/ - i[4], I(o, "class", "content-wrapper svelte-1u03acn"), we(o, "closed", !/*open*/ + I(t, "class", "accordion-header svelte-1eiz7kj"), t.disabled = /*disable_accordion*/ + i[4], I(o, "class", "content-wrapper svelte-1eiz7kj"), we(o, "closed", !/*open*/ i[1]); }, m(d, v) { - u && u.m(d, v), V(d, e, v), V(d, t, v), c && c.m(t, null), z(t, n), m && m.m(t, null), V(d, l, v), V(d, o, v), f && f.m(o, null), a = !0, r || (s = le( + u && u.m(d, v), V(d, e, v), V(d, t, v), c && c.m(t, null), x(t, n), m && m.m(t, null), V(d, l, v), V(d, o, v), f && f.m(o, null), a = !0, r || (s = le( t, "click", /*handle_toggle*/ @@ -9487,7 +9487,7 @@ function Ks(i) { Rl(e.$$.fragment, n); }, m(n, l) { - Ml(e, n, l), t = !0; + zl(e, n, l), t = !0; }, p(n, l) { const o = {}; @@ -9555,8 +9555,8 @@ function Qs(i, e, t) { Re((re = re.apply(D, R || [])).next()); }); }, o; - let { value: a = [] } = e, { label: r = void 0 } = e, { show_group_name_only_one: s = !0 } = e, { disable_accordion: u = !1 } = e, { visible: c = !0 } = e, { open: m = !0 } = e, { elem_id: f = "" } = e, { elem_classes: d = [] } = e, { container: v = !1 } = e, { scale: y = null } = e, { min_width: w = void 0 } = e, { width: C = void 0 } = e, { height: h = void 0 } = e, { loading_status: _ = void 0 } = e, { interactive: g = !0 } = e, { gradio: b } = e, F = {}, A = {}, T = {}, S = null, M = !1, N = {}; - function G(D) { + let { value: a = [] } = e, { label: r = void 0 } = e, { show_group_name_only_one: s = !0 } = e, { disable_accordion: u = !1 } = e, { visible: c = !0 } = e, { open: m = !0 } = e, { elem_id: f = "" } = e, { elem_classes: d = [] } = e, { container: v = !1 } = e, { scale: y = null } = e, { min_width: w = void 0 } = e, { width: C = void 0 } = e, { height: h = void 0 } = e, { loading_status: _ = void 0 } = e, { interactive: g = !0 } = e, { gradio: b } = e, F = {}, A = {}, T = {}, S = null, z = !1, N = {}; + function j(D) { if (D.minimum === void 0 && D.maximum === void 0) { T[D.name] !== !0 && (t(17, T[D.name] = !0, T), t(17, T = Object.assign({}, T))); return; @@ -9576,7 +9576,7 @@ function Qs(i, e, t) { function ue() { t(1, m = !m), m ? b.dispatch("expand") : b.dispatch("collapse"); } - function $e(D) { + function ke(D) { t(15, F[D] = !F[D], F); } function _e(D) { @@ -9604,15 +9604,15 @@ function Qs(i, e, t) { }); } function se(D) { - if (M) return; - if (M = !0, !(D in N)) { - M = !1; + if (z) return; + if (z = !0, !(D in N)) { + z = !1; return; } let R = a.map((Q) => (Q.properties && (Q.properties = Q.properties.map((re) => re.name === D ? Object.assign(Object.assign({}, re), { value: N[D] }) : re)), Q)); t(0, a = R), b.dispatch("undo", R), setTimeout( () => { - M = !1; + z = !1; }, 100 ); @@ -9624,10 +9624,10 @@ function Qs(i, e, t) { }); }), setTimeout(Fe, 50); } - zs(() => { + xs(() => { ge(); }); - const $ = [[]], oe = () => b.dispatch("clear_status"), K = (D) => $e(D.group_name); + const k = [[]], oe = () => b.dispatch("clear_status"), K = (D) => ke(D.group_name); function de(D, R) { D[R].value = this.value, t(0, a); } @@ -9644,18 +9644,18 @@ function Qs(i, e, t) { D[R].value = ui(this.value), t(0, a); } const Je = (D) => ne("change", D), dt = (D) => { - G(D), ne("input", D); + j(D), ne("input", D); }; function Ht(D, R) { D[R].value = ui(this.value), t(0, a); } - function Gt(D, R) { + function jt(D, R) { Rs[D ? "unshift" : "push"](() => { A[R.name] = D, t(16, A); }); } const wt = (D) => { - G(D), Za(D, A[D.name]), ne("input", D); + j(D), Za(D, A[D.name]), ne("input", D); }, Rt = (D) => ne("change", D); function It(D, R) { D[R].value = this.value, t(0, a); @@ -9664,7 +9664,7 @@ function Qs(i, e, t) { function Ln(D, R) { D[R].value = this.__value, t(0, a); } - const jt = (D) => ne("change", D), kt = (D) => se(D.name); + const Gt = (D) => ne("change", D), $t = (D) => se(D.name); return i.$$set = (D) => { "value" in D && t(0, a = D.value), "label" in D && t(2, r = D.label), "show_group_name_only_one" in D && t(3, s = D.show_group_name_only_one), "disable_accordion" in D && t(4, u = D.disable_accordion), "visible" in D && t(5, c = D.visible), "open" in D && t(1, m = D.open), "elem_id" in D && t(6, f = D.elem_id), "elem_classes" in D && t(27, d = D.elem_classes), "container" in D && t(7, v = D.container), "scale" in D && t(8, y = D.scale), "min_width" in D && t(9, w = D.min_width), "width" in D && t(10, C = D.width), "height" in D && t(11, h = D.height), "loading_status" in D && t(12, _ = D.loading_status), "interactive" in D && t(13, g = D.interactive), "gradio" in D && t(14, b = D.gradio); }, i.$$.update = () => { @@ -9676,7 +9676,7 @@ function Qs(i, e, t) { for (const D of a) if (F[D.group_name] === void 0 && t(15, F[D.group_name] = !0, F), Array.isArray(D.properties)) for (const R of D.properties) - (!(t(28, o = R.component) === null || o === void 0) && o.startsWith("number") || R.component === "slider") && G(R); + (!(t(28, o = R.component) === null || o === void 0) && o.startsWith("number") || R.component === "slider") && j(R); Fe(); } i.$$.dirty[0] & /*open, groupVisibility*/ @@ -9702,9 +9702,9 @@ function Qs(i, e, t) { T, N, n, - G, + j, ue, - $e, + ke, _e, ne, X, @@ -9726,16 +9726,16 @@ function Qs(i, e, t) { Je, dt, Ht, - Gt, + jt, wt, Rt, It, cn, _n, Ln, - $, - jt, - kt + k, + Gt, + $t ]; } class FE extends Ts { @@ -9745,7 +9745,7 @@ class FE extends Ts { e, Qs, Ks, - Ps, + Ms, { value: 0, label: 2,