but got " + String(n) + ".");
}
-var l3 = {
+var s3 = {
bin: 1,
close: 1,
inner: 1,
open: 1,
punct: 1,
rel: 1
-}, s3 = {
+}, o3 = {
"accent-token": 1,
mathord: 1,
"op-token": 1,
@@ -5040,7 +5040,7 @@ function f(n, e, t, r, a, i) {
replace: r
}, i && r && (Ne[n][r] = Ne[n][a]);
}
-var m = "math", P = "text", g = "main", A = "ams", Ve = "accent-token", $ = "bin", Kt = "close", oa = "inner", ie = "mathord", ft = "op-token", m0 = "open", Zl = "punct", x = "rel", Hr = "spacing", M = "textord";
+var m = "math", H = "text", g = "main", A = "ams", Ge = "accent-token", J = "bin", Kt = "close", oa = "inner", ne = "mathord", ct = "op-token", d0 = "open", Zl = "punct", x = "rel", Pr = "spacing", M = "textord";
f(m, g, x, "≡", "\\equiv", !0);
f(m, g, x, "≺", "\\prec", !0);
f(m, g, x, "≻", "\\succ", !0);
@@ -5068,9 +5068,9 @@ f(m, g, x, "∋", "\\owns");
f(m, g, Zl, ".", "\\ldotp");
f(m, g, Zl, "⋅", "\\cdotp");
f(m, g, M, "#", "\\#");
-f(P, g, M, "#", "\\#");
+f(H, g, M, "#", "\\#");
f(m, g, M, "&", "\\&");
-f(P, g, M, "&", "\\&");
+f(H, g, M, "&", "\\&");
f(m, g, M, "ℵ", "\\aleph", !0);
f(m, g, M, "∀", "\\forall", !0);
f(m, g, M, "ℏ", "\\hbar", !0);
@@ -5088,31 +5088,31 @@ f(m, g, M, "♡", "\\heartsuit", !0);
f(m, g, M, "ℑ", "\\Im", !0);
f(m, g, M, "♠", "\\spadesuit", !0);
f(m, g, M, "§", "\\S", !0);
-f(P, g, M, "§", "\\S");
+f(H, g, M, "§", "\\S");
f(m, g, M, "¶", "\\P", !0);
-f(P, g, M, "¶", "\\P");
+f(H, g, M, "¶", "\\P");
f(m, g, M, "†", "\\dag");
-f(P, g, M, "†", "\\dag");
-f(P, g, M, "†", "\\textdagger");
+f(H, g, M, "†", "\\dag");
+f(H, g, M, "†", "\\textdagger");
f(m, g, M, "‡", "\\ddag");
-f(P, g, M, "‡", "\\ddag");
-f(P, g, M, "‡", "\\textdaggerdbl");
+f(H, g, M, "‡", "\\ddag");
+f(H, g, M, "‡", "\\textdaggerdbl");
f(m, g, Kt, "⎱", "\\rmoustache", !0);
-f(m, g, m0, "⎰", "\\lmoustache", !0);
+f(m, g, d0, "⎰", "\\lmoustache", !0);
f(m, g, Kt, "⟯", "\\rgroup", !0);
-f(m, g, m0, "⟮", "\\lgroup", !0);
-f(m, g, $, "∓", "\\mp", !0);
-f(m, g, $, "⊖", "\\ominus", !0);
-f(m, g, $, "⊎", "\\uplus", !0);
-f(m, g, $, "⊓", "\\sqcap", !0);
-f(m, g, $, "∗", "\\ast");
-f(m, g, $, "⊔", "\\sqcup", !0);
-f(m, g, $, "◯", "\\bigcirc", !0);
-f(m, g, $, "∙", "\\bullet", !0);
-f(m, g, $, "‡", "\\ddagger");
-f(m, g, $, "≀", "\\wr", !0);
-f(m, g, $, "⨿", "\\amalg");
-f(m, g, $, "&", "\\And");
+f(m, g, d0, "⟮", "\\lgroup", !0);
+f(m, g, J, "∓", "\\mp", !0);
+f(m, g, J, "⊖", "\\ominus", !0);
+f(m, g, J, "⊎", "\\uplus", !0);
+f(m, g, J, "⊓", "\\sqcap", !0);
+f(m, g, J, "∗", "\\ast");
+f(m, g, J, "⊔", "\\sqcup", !0);
+f(m, g, J, "◯", "\\bigcirc", !0);
+f(m, g, J, "∙", "\\bullet", !0);
+f(m, g, J, "‡", "\\ddagger");
+f(m, g, J, "≀", "\\wr", !0);
+f(m, g, J, "⨿", "\\amalg");
+f(m, g, J, "&", "\\And");
f(m, g, x, "⟵", "\\longleftarrow", !0);
f(m, g, x, "⇐", "\\Leftarrow", !0);
f(m, g, x, "⟸", "\\Longleftarrow", !0);
@@ -5186,8 +5186,8 @@ f(m, A, x, "⊮", "\\nVdash", !0);
f(m, A, x, "⪵", "\\precneqq", !0);
f(m, A, x, "⪶", "\\succneqq", !0);
f(m, A, x, "", "\\@nsubseteqq");
-f(m, A, $, "⊴", "\\unlhd");
-f(m, A, $, "⊵", "\\unrhd");
+f(m, A, J, "⊴", "\\unlhd");
+f(m, A, J, "⊵", "\\unrhd");
f(m, A, x, "↚", "\\nleftarrow", !0);
f(m, A, x, "↛", "\\nrightarrow", !0);
f(m, A, x, "⇍", "\\nLeftarrow", !0);
@@ -5200,7 +5200,7 @@ f(m, A, M, "▽", "\\triangledown");
f(m, A, M, "◊", "\\lozenge");
f(m, A, M, "Ⓢ", "\\circledS");
f(m, A, M, "®", "\\circledR");
-f(P, A, M, "®", "\\circledR");
+f(H, A, M, "®", "\\circledR");
f(m, A, M, "∡", "\\measuredangle", !0);
f(m, A, M, "∄", "\\nexists");
f(m, A, M, "℧", "\\mho");
@@ -5215,24 +5215,24 @@ f(m, A, M, "★", "\\bigstar");
f(m, A, M, "∢", "\\sphericalangle", !0);
f(m, A, M, "∁", "\\complement", !0);
f(m, A, M, "ð", "\\eth", !0);
-f(P, g, M, "ð", "ð");
+f(H, g, M, "ð", "ð");
f(m, A, M, "╱", "\\diagup");
f(m, A, M, "╲", "\\diagdown");
f(m, A, M, "□", "\\square");
f(m, A, M, "□", "\\Box");
f(m, A, M, "◊", "\\Diamond");
f(m, A, M, "¥", "\\yen", !0);
-f(P, A, M, "¥", "\\yen", !0);
+f(H, A, M, "¥", "\\yen", !0);
f(m, A, M, "✓", "\\checkmark", !0);
-f(P, A, M, "✓", "\\checkmark");
+f(H, A, M, "✓", "\\checkmark");
f(m, A, M, "ℶ", "\\beth", !0);
f(m, A, M, "ℸ", "\\daleth", !0);
f(m, A, M, "ℷ", "\\gimel", !0);
f(m, A, M, "ϝ", "\\digamma", !0);
f(m, A, M, "ϰ", "\\varkappa");
-f(m, A, m0, "┌", "\\@ulcorner", !0);
+f(m, A, d0, "┌", "\\@ulcorner", !0);
f(m, A, Kt, "┐", "\\@urcorner", !0);
-f(m, A, m0, "└", "\\@llcorner", !0);
+f(m, A, d0, "└", "\\@llcorner", !0);
f(m, A, Kt, "┘", "\\@lrcorner", !0);
f(m, A, x, "≦", "\\leqq", !0);
f(m, A, x, "⩽", "\\leqslant", !0);
@@ -5240,7 +5240,7 @@ f(m, A, x, "⪕", "\\eqslantless", !0);
f(m, A, x, "≲", "\\lesssim", !0);
f(m, A, x, "⪅", "\\lessapprox", !0);
f(m, A, x, "≊", "\\approxeq", !0);
-f(m, A, $, "⋖", "\\lessdot");
+f(m, A, J, "⋖", "\\lessdot");
f(m, A, x, "⋘", "\\lll", !0);
f(m, A, x, "≶", "\\lessgtr", !0);
f(m, A, x, "⋚", "\\lesseqgtr", !0);
@@ -5270,7 +5270,7 @@ f(m, A, x, "⩾", "\\geqslant", !0);
f(m, A, x, "⪖", "\\eqslantgtr", !0);
f(m, A, x, "≳", "\\gtrsim", !0);
f(m, A, x, "⪆", "\\gtrapprox", !0);
-f(m, A, $, "⋗", "\\gtrdot");
+f(m, A, J, "⋗", "\\gtrdot");
f(m, A, x, "⋙", "\\ggg", !0);
f(m, A, x, "≷", "\\gtrless", !0);
f(m, A, x, "⋛", "\\gtreqless", !0);
@@ -5302,32 +5302,32 @@ f(m, A, x, "▶", "\\blacktriangleright");
f(m, A, x, "∵", "\\because", !0);
f(m, A, x, "⋘", "\\llless");
f(m, A, x, "⋙", "\\gggtr");
-f(m, A, $, "⊲", "\\lhd");
-f(m, A, $, "⊳", "\\rhd");
+f(m, A, J, "⊲", "\\lhd");
+f(m, A, J, "⊳", "\\rhd");
f(m, A, x, "≂", "\\eqsim", !0);
f(m, g, x, "⋈", "\\Join");
f(m, A, x, "≑", "\\Doteq", !0);
-f(m, A, $, "∔", "\\dotplus", !0);
-f(m, A, $, "∖", "\\smallsetminus");
-f(m, A, $, "⋒", "\\Cap", !0);
-f(m, A, $, "⋓", "\\Cup", !0);
-f(m, A, $, "⩞", "\\doublebarwedge", !0);
-f(m, A, $, "⊟", "\\boxminus", !0);
-f(m, A, $, "⊞", "\\boxplus", !0);
-f(m, A, $, "⋇", "\\divideontimes", !0);
-f(m, A, $, "⋉", "\\ltimes", !0);
-f(m, A, $, "⋊", "\\rtimes", !0);
-f(m, A, $, "⋋", "\\leftthreetimes", !0);
-f(m, A, $, "⋌", "\\rightthreetimes", !0);
-f(m, A, $, "⋏", "\\curlywedge", !0);
-f(m, A, $, "⋎", "\\curlyvee", !0);
-f(m, A, $, "⊝", "\\circleddash", !0);
-f(m, A, $, "⊛", "\\circledast", !0);
-f(m, A, $, "⋅", "\\centerdot");
-f(m, A, $, "⊺", "\\intercal", !0);
-f(m, A, $, "⋒", "\\doublecap");
-f(m, A, $, "⋓", "\\doublecup");
-f(m, A, $, "⊠", "\\boxtimes", !0);
+f(m, A, J, "∔", "\\dotplus", !0);
+f(m, A, J, "∖", "\\smallsetminus");
+f(m, A, J, "⋒", "\\Cap", !0);
+f(m, A, J, "⋓", "\\Cup", !0);
+f(m, A, J, "⩞", "\\doublebarwedge", !0);
+f(m, A, J, "⊟", "\\boxminus", !0);
+f(m, A, J, "⊞", "\\boxplus", !0);
+f(m, A, J, "⋇", "\\divideontimes", !0);
+f(m, A, J, "⋉", "\\ltimes", !0);
+f(m, A, J, "⋊", "\\rtimes", !0);
+f(m, A, J, "⋋", "\\leftthreetimes", !0);
+f(m, A, J, "⋌", "\\rightthreetimes", !0);
+f(m, A, J, "⋏", "\\curlywedge", !0);
+f(m, A, J, "⋎", "\\curlyvee", !0);
+f(m, A, J, "⊝", "\\circleddash", !0);
+f(m, A, J, "⊛", "\\circledast", !0);
+f(m, A, J, "⋅", "\\centerdot");
+f(m, A, J, "⊺", "\\intercal", !0);
+f(m, A, J, "⋒", "\\doublecap");
+f(m, A, J, "⋓", "\\doublecup");
+f(m, A, J, "⊠", "\\boxtimes", !0);
f(m, A, x, "⇢", "\\dashrightarrow", !0);
f(m, A, x, "⇠", "\\dashleftarrow", !0);
f(m, A, x, "⇇", "\\leftleftarrows", !0);
@@ -5364,13 +5364,13 @@ f(m, A, x, "⇛", "\\Rrightarrow", !0);
f(m, A, x, "↾", "\\restriction");
f(m, g, M, "‘", "`");
f(m, g, M, "$", "\\$");
-f(P, g, M, "$", "\\$");
-f(P, g, M, "$", "\\textdollar");
+f(H, g, M, "$", "\\$");
+f(H, g, M, "$", "\\textdollar");
f(m, g, M, "%", "\\%");
-f(P, g, M, "%", "\\%");
+f(H, g, M, "%", "\\%");
f(m, g, M, "_", "\\_");
-f(P, g, M, "_", "\\_");
-f(P, g, M, "_", "\\textunderscore");
+f(H, g, M, "_", "\\_");
+f(H, g, M, "_", "\\textunderscore");
f(m, g, M, "∠", "\\angle", !0);
f(m, g, M, "∞", "\\infty", !0);
f(m, g, M, "′", "\\prime");
@@ -5405,55 +5405,55 @@ f(m, g, M, "⊤", "\\top");
f(m, g, M, "⊥", "\\bot");
f(m, g, M, "∅", "\\emptyset");
f(m, A, M, "∅", "\\varnothing");
-f(m, g, ie, "α", "\\alpha", !0);
-f(m, g, ie, "β", "\\beta", !0);
-f(m, g, ie, "γ", "\\gamma", !0);
-f(m, g, ie, "δ", "\\delta", !0);
-f(m, g, ie, "ϵ", "\\epsilon", !0);
-f(m, g, ie, "ζ", "\\zeta", !0);
-f(m, g, ie, "η", "\\eta", !0);
-f(m, g, ie, "θ", "\\theta", !0);
-f(m, g, ie, "ι", "\\iota", !0);
-f(m, g, ie, "κ", "\\kappa", !0);
-f(m, g, ie, "λ", "\\lambda", !0);
-f(m, g, ie, "μ", "\\mu", !0);
-f(m, g, ie, "ν", "\\nu", !0);
-f(m, g, ie, "ξ", "\\xi", !0);
-f(m, g, ie, "ο", "\\omicron", !0);
-f(m, g, ie, "π", "\\pi", !0);
-f(m, g, ie, "ρ", "\\rho", !0);
-f(m, g, ie, "σ", "\\sigma", !0);
-f(m, g, ie, "τ", "\\tau", !0);
-f(m, g, ie, "υ", "\\upsilon", !0);
-f(m, g, ie, "ϕ", "\\phi", !0);
-f(m, g, ie, "χ", "\\chi", !0);
-f(m, g, ie, "ψ", "\\psi", !0);
-f(m, g, ie, "ω", "\\omega", !0);
-f(m, g, ie, "ε", "\\varepsilon", !0);
-f(m, g, ie, "ϑ", "\\vartheta", !0);
-f(m, g, ie, "ϖ", "\\varpi", !0);
-f(m, g, ie, "ϱ", "\\varrho", !0);
-f(m, g, ie, "ς", "\\varsigma", !0);
-f(m, g, ie, "φ", "\\varphi", !0);
-f(m, g, $, "∗", "*", !0);
-f(m, g, $, "+", "+");
-f(m, g, $, "−", "-", !0);
-f(m, g, $, "⋅", "\\cdot", !0);
-f(m, g, $, "∘", "\\circ", !0);
-f(m, g, $, "÷", "\\div", !0);
-f(m, g, $, "±", "\\pm", !0);
-f(m, g, $, "×", "\\times", !0);
-f(m, g, $, "∩", "\\cap", !0);
-f(m, g, $, "∪", "\\cup", !0);
-f(m, g, $, "∖", "\\setminus", !0);
-f(m, g, $, "∧", "\\land");
-f(m, g, $, "∨", "\\lor");
-f(m, g, $, "∧", "\\wedge", !0);
-f(m, g, $, "∨", "\\vee", !0);
+f(m, g, ne, "α", "\\alpha", !0);
+f(m, g, ne, "β", "\\beta", !0);
+f(m, g, ne, "γ", "\\gamma", !0);
+f(m, g, ne, "δ", "\\delta", !0);
+f(m, g, ne, "ϵ", "\\epsilon", !0);
+f(m, g, ne, "ζ", "\\zeta", !0);
+f(m, g, ne, "η", "\\eta", !0);
+f(m, g, ne, "θ", "\\theta", !0);
+f(m, g, ne, "ι", "\\iota", !0);
+f(m, g, ne, "κ", "\\kappa", !0);
+f(m, g, ne, "λ", "\\lambda", !0);
+f(m, g, ne, "μ", "\\mu", !0);
+f(m, g, ne, "ν", "\\nu", !0);
+f(m, g, ne, "ξ", "\\xi", !0);
+f(m, g, ne, "ο", "\\omicron", !0);
+f(m, g, ne, "π", "\\pi", !0);
+f(m, g, ne, "ρ", "\\rho", !0);
+f(m, g, ne, "σ", "\\sigma", !0);
+f(m, g, ne, "τ", "\\tau", !0);
+f(m, g, ne, "υ", "\\upsilon", !0);
+f(m, g, ne, "ϕ", "\\phi", !0);
+f(m, g, ne, "χ", "\\chi", !0);
+f(m, g, ne, "ψ", "\\psi", !0);
+f(m, g, ne, "ω", "\\omega", !0);
+f(m, g, ne, "ε", "\\varepsilon", !0);
+f(m, g, ne, "ϑ", "\\vartheta", !0);
+f(m, g, ne, "ϖ", "\\varpi", !0);
+f(m, g, ne, "ϱ", "\\varrho", !0);
+f(m, g, ne, "ς", "\\varsigma", !0);
+f(m, g, ne, "φ", "\\varphi", !0);
+f(m, g, J, "∗", "*", !0);
+f(m, g, J, "+", "+");
+f(m, g, J, "−", "-", !0);
+f(m, g, J, "⋅", "\\cdot", !0);
+f(m, g, J, "∘", "\\circ", !0);
+f(m, g, J, "÷", "\\div", !0);
+f(m, g, J, "±", "\\pm", !0);
+f(m, g, J, "×", "\\times", !0);
+f(m, g, J, "∩", "\\cap", !0);
+f(m, g, J, "∪", "\\cup", !0);
+f(m, g, J, "∖", "\\setminus", !0);
+f(m, g, J, "∧", "\\land");
+f(m, g, J, "∨", "\\lor");
+f(m, g, J, "∧", "\\wedge", !0);
+f(m, g, J, "∨", "\\vee", !0);
f(m, g, M, "√", "\\surd");
-f(m, g, m0, "⟨", "\\langle", !0);
-f(m, g, m0, "∣", "\\lvert");
-f(m, g, m0, "∥", "\\lVert");
+f(m, g, d0, "⟨", "\\langle", !0);
+f(m, g, d0, "∣", "\\lvert");
+f(m, g, d0, "∥", "\\lVert");
f(m, g, Kt, "?", "?");
f(m, g, Kt, "!", "!");
f(m, g, Kt, "⟩", "\\rangle", !0);
@@ -5484,207 +5484,207 @@ f(m, g, x, "→", "\\rightarrow", !0);
f(m, g, x, "→", "\\to");
f(m, A, x, "≱", "\\ngeq", !0);
f(m, A, x, "≰", "\\nleq", !0);
-f(m, g, Hr, " ", "\\ ");
-f(m, g, Hr, " ", "\\space");
-f(m, g, Hr, " ", "\\nobreakspace");
-f(P, g, Hr, " ", "\\ ");
-f(P, g, Hr, " ", " ");
-f(P, g, Hr, " ", "\\space");
-f(P, g, Hr, " ", "\\nobreakspace");
-f(m, g, Hr, null, "\\nobreak");
-f(m, g, Hr, null, "\\allowbreak");
+f(m, g, Pr, " ", "\\ ");
+f(m, g, Pr, " ", "\\space");
+f(m, g, Pr, " ", "\\nobreakspace");
+f(H, g, Pr, " ", "\\ ");
+f(H, g, Pr, " ", " ");
+f(H, g, Pr, " ", "\\space");
+f(H, g, Pr, " ", "\\nobreakspace");
+f(m, g, Pr, null, "\\nobreak");
+f(m, g, Pr, null, "\\allowbreak");
f(m, g, Zl, ",", ",");
f(m, g, Zl, ";", ";");
-f(m, A, $, "⊼", "\\barwedge", !0);
-f(m, A, $, "⊻", "\\veebar", !0);
-f(m, g, $, "⊙", "\\odot", !0);
-f(m, g, $, "⊕", "\\oplus", !0);
-f(m, g, $, "⊗", "\\otimes", !0);
+f(m, A, J, "⊼", "\\barwedge", !0);
+f(m, A, J, "⊻", "\\veebar", !0);
+f(m, g, J, "⊙", "\\odot", !0);
+f(m, g, J, "⊕", "\\oplus", !0);
+f(m, g, J, "⊗", "\\otimes", !0);
f(m, g, M, "∂", "\\partial", !0);
-f(m, g, $, "⊘", "\\oslash", !0);
-f(m, A, $, "⊚", "\\circledcirc", !0);
-f(m, A, $, "⊡", "\\boxdot", !0);
-f(m, g, $, "△", "\\bigtriangleup");
-f(m, g, $, "▽", "\\bigtriangledown");
-f(m, g, $, "†", "\\dagger");
-f(m, g, $, "⋄", "\\diamond");
-f(m, g, $, "⋆", "\\star");
-f(m, g, $, "◃", "\\triangleleft");
-f(m, g, $, "▹", "\\triangleright");
-f(m, g, m0, "{", "\\{");
-f(P, g, M, "{", "\\{");
-f(P, g, M, "{", "\\textbraceleft");
+f(m, g, J, "⊘", "\\oslash", !0);
+f(m, A, J, "⊚", "\\circledcirc", !0);
+f(m, A, J, "⊡", "\\boxdot", !0);
+f(m, g, J, "△", "\\bigtriangleup");
+f(m, g, J, "▽", "\\bigtriangledown");
+f(m, g, J, "†", "\\dagger");
+f(m, g, J, "⋄", "\\diamond");
+f(m, g, J, "⋆", "\\star");
+f(m, g, J, "◃", "\\triangleleft");
+f(m, g, J, "▹", "\\triangleright");
+f(m, g, d0, "{", "\\{");
+f(H, g, M, "{", "\\{");
+f(H, g, M, "{", "\\textbraceleft");
f(m, g, Kt, "}", "\\}");
-f(P, g, M, "}", "\\}");
-f(P, g, M, "}", "\\textbraceright");
-f(m, g, m0, "{", "\\lbrace");
+f(H, g, M, "}", "\\}");
+f(H, g, M, "}", "\\textbraceright");
+f(m, g, d0, "{", "\\lbrace");
f(m, g, Kt, "}", "\\rbrace");
-f(m, g, m0, "[", "\\lbrack", !0);
-f(P, g, M, "[", "\\lbrack", !0);
+f(m, g, d0, "[", "\\lbrack", !0);
+f(H, g, M, "[", "\\lbrack", !0);
f(m, g, Kt, "]", "\\rbrack", !0);
-f(P, g, M, "]", "\\rbrack", !0);
-f(m, g, m0, "(", "\\lparen", !0);
+f(H, g, M, "]", "\\rbrack", !0);
+f(m, g, d0, "(", "\\lparen", !0);
f(m, g, Kt, ")", "\\rparen", !0);
-f(P, g, M, "<", "\\textless", !0);
-f(P, g, M, ">", "\\textgreater", !0);
-f(m, g, m0, "⌊", "\\lfloor", !0);
+f(H, g, M, "<", "\\textless", !0);
+f(H, g, M, ">", "\\textgreater", !0);
+f(m, g, d0, "⌊", "\\lfloor", !0);
f(m, g, Kt, "⌋", "\\rfloor", !0);
-f(m, g, m0, "⌈", "\\lceil", !0);
+f(m, g, d0, "⌈", "\\lceil", !0);
f(m, g, Kt, "⌉", "\\rceil", !0);
f(m, g, M, "\\", "\\backslash");
f(m, g, M, "∣", "|");
f(m, g, M, "∣", "\\vert");
-f(P, g, M, "|", "\\textbar", !0);
+f(H, g, M, "|", "\\textbar", !0);
f(m, g, M, "∥", "\\|");
f(m, g, M, "∥", "\\Vert");
-f(P, g, M, "∥", "\\textbardbl");
-f(P, g, M, "~", "\\textasciitilde");
-f(P, g, M, "\\", "\\textbackslash");
-f(P, g, M, "^", "\\textasciicircum");
+f(H, g, M, "∥", "\\textbardbl");
+f(H, g, M, "~", "\\textasciitilde");
+f(H, g, M, "\\", "\\textbackslash");
+f(H, g, M, "^", "\\textasciicircum");
f(m, g, x, "↑", "\\uparrow", !0);
f(m, g, x, "⇑", "\\Uparrow", !0);
f(m, g, x, "↓", "\\downarrow", !0);
f(m, g, x, "⇓", "\\Downarrow", !0);
f(m, g, x, "↕", "\\updownarrow", !0);
f(m, g, x, "⇕", "\\Updownarrow", !0);
-f(m, g, ft, "∐", "\\coprod");
-f(m, g, ft, "⋁", "\\bigvee");
-f(m, g, ft, "⋀", "\\bigwedge");
-f(m, g, ft, "⨄", "\\biguplus");
-f(m, g, ft, "⋂", "\\bigcap");
-f(m, g, ft, "⋃", "\\bigcup");
-f(m, g, ft, "∫", "\\int");
-f(m, g, ft, "∫", "\\intop");
-f(m, g, ft, "∬", "\\iint");
-f(m, g, ft, "∭", "\\iiint");
-f(m, g, ft, "∏", "\\prod");
-f(m, g, ft, "∑", "\\sum");
-f(m, g, ft, "⨂", "\\bigotimes");
-f(m, g, ft, "⨁", "\\bigoplus");
-f(m, g, ft, "⨀", "\\bigodot");
-f(m, g, ft, "∮", "\\oint");
-f(m, g, ft, "∯", "\\oiint");
-f(m, g, ft, "∰", "\\oiiint");
-f(m, g, ft, "⨆", "\\bigsqcup");
-f(m, g, ft, "∫", "\\smallint");
-f(P, g, oa, "…", "\\textellipsis");
+f(m, g, ct, "∐", "\\coprod");
+f(m, g, ct, "⋁", "\\bigvee");
+f(m, g, ct, "⋀", "\\bigwedge");
+f(m, g, ct, "⨄", "\\biguplus");
+f(m, g, ct, "⋂", "\\bigcap");
+f(m, g, ct, "⋃", "\\bigcup");
+f(m, g, ct, "∫", "\\int");
+f(m, g, ct, "∫", "\\intop");
+f(m, g, ct, "∬", "\\iint");
+f(m, g, ct, "∭", "\\iiint");
+f(m, g, ct, "∏", "\\prod");
+f(m, g, ct, "∑", "\\sum");
+f(m, g, ct, "⨂", "\\bigotimes");
+f(m, g, ct, "⨁", "\\bigoplus");
+f(m, g, ct, "⨀", "\\bigodot");
+f(m, g, ct, "∮", "\\oint");
+f(m, g, ct, "∯", "\\oiint");
+f(m, g, ct, "∰", "\\oiiint");
+f(m, g, ct, "⨆", "\\bigsqcup");
+f(m, g, ct, "∫", "\\smallint");
+f(H, g, oa, "…", "\\textellipsis");
f(m, g, oa, "…", "\\mathellipsis");
-f(P, g, oa, "…", "\\ldots", !0);
+f(H, g, oa, "…", "\\ldots", !0);
f(m, g, oa, "…", "\\ldots", !0);
f(m, g, oa, "⋯", "\\@cdots", !0);
f(m, g, oa, "⋱", "\\ddots", !0);
f(m, g, M, "⋮", "\\varvdots");
-f(m, g, Ve, "ˊ", "\\acute");
-f(m, g, Ve, "ˋ", "\\grave");
-f(m, g, Ve, "¨", "\\ddot");
-f(m, g, Ve, "~", "\\tilde");
-f(m, g, Ve, "ˉ", "\\bar");
-f(m, g, Ve, "˘", "\\breve");
-f(m, g, Ve, "ˇ", "\\check");
-f(m, g, Ve, "^", "\\hat");
-f(m, g, Ve, "⃗", "\\vec");
-f(m, g, Ve, "˙", "\\dot");
-f(m, g, Ve, "˚", "\\mathring");
-f(m, g, ie, "", "\\@imath");
-f(m, g, ie, "", "\\@jmath");
+f(m, g, Ge, "ˊ", "\\acute");
+f(m, g, Ge, "ˋ", "\\grave");
+f(m, g, Ge, "¨", "\\ddot");
+f(m, g, Ge, "~", "\\tilde");
+f(m, g, Ge, "ˉ", "\\bar");
+f(m, g, Ge, "˘", "\\breve");
+f(m, g, Ge, "ˇ", "\\check");
+f(m, g, Ge, "^", "\\hat");
+f(m, g, Ge, "⃗", "\\vec");
+f(m, g, Ge, "˙", "\\dot");
+f(m, g, Ge, "˚", "\\mathring");
+f(m, g, ne, "", "\\@imath");
+f(m, g, ne, "", "\\@jmath");
f(m, g, M, "ı", "ı");
f(m, g, M, "ȷ", "ȷ");
-f(P, g, M, "ı", "\\i", !0);
-f(P, g, M, "ȷ", "\\j", !0);
-f(P, g, M, "ß", "\\ss", !0);
-f(P, g, M, "æ", "\\ae", !0);
-f(P, g, M, "œ", "\\oe", !0);
-f(P, g, M, "ø", "\\o", !0);
-f(P, g, M, "Æ", "\\AE", !0);
-f(P, g, M, "Œ", "\\OE", !0);
-f(P, g, M, "Ø", "\\O", !0);
-f(P, g, Ve, "ˊ", "\\'");
-f(P, g, Ve, "ˋ", "\\`");
-f(P, g, Ve, "ˆ", "\\^");
-f(P, g, Ve, "˜", "\\~");
-f(P, g, Ve, "ˉ", "\\=");
-f(P, g, Ve, "˘", "\\u");
-f(P, g, Ve, "˙", "\\.");
-f(P, g, Ve, "¸", "\\c");
-f(P, g, Ve, "˚", "\\r");
-f(P, g, Ve, "ˇ", "\\v");
-f(P, g, Ve, "¨", '\\"');
-f(P, g, Ve, "˝", "\\H");
-f(P, g, Ve, "◯", "\\textcircled");
-var Fd = {
+f(H, g, M, "ı", "\\i", !0);
+f(H, g, M, "ȷ", "\\j", !0);
+f(H, g, M, "ß", "\\ss", !0);
+f(H, g, M, "æ", "\\ae", !0);
+f(H, g, M, "œ", "\\oe", !0);
+f(H, g, M, "ø", "\\o", !0);
+f(H, g, M, "Æ", "\\AE", !0);
+f(H, g, M, "Œ", "\\OE", !0);
+f(H, g, M, "Ø", "\\O", !0);
+f(H, g, Ge, "ˊ", "\\'");
+f(H, g, Ge, "ˋ", "\\`");
+f(H, g, Ge, "ˆ", "\\^");
+f(H, g, Ge, "˜", "\\~");
+f(H, g, Ge, "ˉ", "\\=");
+f(H, g, Ge, "˘", "\\u");
+f(H, g, Ge, "˙", "\\.");
+f(H, g, Ge, "¸", "\\c");
+f(H, g, Ge, "˚", "\\r");
+f(H, g, Ge, "ˇ", "\\v");
+f(H, g, Ge, "¨", '\\"');
+f(H, g, Ge, "˝", "\\H");
+f(H, g, Ge, "◯", "\\textcircled");
+var Md = {
"--": !0,
"---": !0,
"``": !0,
"''": !0
};
-f(P, g, M, "–", "--", !0);
-f(P, g, M, "–", "\\textendash");
-f(P, g, M, "—", "---", !0);
-f(P, g, M, "—", "\\textemdash");
-f(P, g, M, "‘", "`", !0);
-f(P, g, M, "‘", "\\textquoteleft");
-f(P, g, M, "’", "'", !0);
-f(P, g, M, "’", "\\textquoteright");
-f(P, g, M, "“", "``", !0);
-f(P, g, M, "“", "\\textquotedblleft");
-f(P, g, M, "”", "''", !0);
-f(P, g, M, "”", "\\textquotedblright");
+f(H, g, M, "–", "--", !0);
+f(H, g, M, "–", "\\textendash");
+f(H, g, M, "—", "---", !0);
+f(H, g, M, "—", "\\textemdash");
+f(H, g, M, "‘", "`", !0);
+f(H, g, M, "‘", "\\textquoteleft");
+f(H, g, M, "’", "'", !0);
+f(H, g, M, "’", "\\textquoteright");
+f(H, g, M, "“", "``", !0);
+f(H, g, M, "“", "\\textquotedblleft");
+f(H, g, M, "”", "''", !0);
+f(H, g, M, "”", "\\textquotedblright");
f(m, g, M, "°", "\\degree", !0);
-f(P, g, M, "°", "\\degree");
-f(P, g, M, "°", "\\textdegree", !0);
+f(H, g, M, "°", "\\degree");
+f(H, g, M, "°", "\\textdegree", !0);
f(m, g, M, "£", "\\pounds");
f(m, g, M, "£", "\\mathsterling", !0);
-f(P, g, M, "£", "\\pounds");
-f(P, g, M, "£", "\\textsterling", !0);
+f(H, g, M, "£", "\\pounds");
+f(H, g, M, "£", "\\textsterling", !0);
f(m, A, M, "✠", "\\maltese");
-f(P, A, M, "✠", "\\maltese");
-var J1 = '0123456789/@."';
-for (var Zs = 0; Zs < J1.length; Zs++) {
- var Q1 = J1.charAt(Zs);
- f(m, g, M, Q1, Q1);
+f(H, A, M, "✠", "\\maltese");
+var Q1 = '0123456789/@."';
+for (var Zs = 0; Zs < Q1.length; Zs++) {
+ var $1 = Q1.charAt(Zs);
+ f(m, g, M, $1, $1);
}
-var $1 = '0123456789!@*()-=+";:?/.,';
-for (var Ks = 0; Ks < $1.length; Ks++) {
- var ec = $1.charAt(Ks);
- f(P, g, M, ec, ec);
+var ec = '0123456789!@*()-=+";:?/.,';
+for (var Ks = 0; Ks < ec.length; Ks++) {
+ var tc = ec.charAt(Ks);
+ f(H, g, M, tc, tc);
}
var Tl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
for (var Js = 0; Js < Tl.length; Js++) {
var Ri = Tl.charAt(Js);
- f(m, g, ie, Ri, Ri), f(P, g, M, Ri, Ri);
+ f(m, g, ne, Ri, Ri), f(H, g, M, Ri, Ri);
}
f(m, A, M, "C", "ℂ");
-f(P, A, M, "C", "ℂ");
+f(H, A, M, "C", "ℂ");
f(m, A, M, "H", "ℍ");
-f(P, A, M, "H", "ℍ");
+f(H, A, M, "H", "ℍ");
f(m, A, M, "N", "ℕ");
-f(P, A, M, "N", "ℕ");
+f(H, A, M, "N", "ℕ");
f(m, A, M, "P", "ℙ");
-f(P, A, M, "P", "ℙ");
+f(H, A, M, "P", "ℙ");
f(m, A, M, "Q", "ℚ");
-f(P, A, M, "Q", "ℚ");
+f(H, A, M, "Q", "ℚ");
f(m, A, M, "R", "ℝ");
-f(P, A, M, "R", "ℝ");
+f(H, A, M, "R", "ℝ");
f(m, A, M, "Z", "ℤ");
-f(P, A, M, "Z", "ℤ");
-f(m, g, ie, "h", "ℎ");
-f(P, g, ie, "h", "ℎ");
+f(H, A, M, "Z", "ℤ");
+f(m, g, ne, "h", "ℎ");
+f(H, g, ne, "h", "ℎ");
var oe = "";
for (var Ht = 0; Ht < Tl.length; Ht++) {
- var Qe = Tl.charAt(Ht);
- oe = String.fromCharCode(55349, 56320 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56372 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56424 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56580 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56684 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56736 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56788 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56840 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56944 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), Ht < 26 && (oe = String.fromCharCode(55349, 56632 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe), oe = String.fromCharCode(55349, 56476 + Ht), f(m, g, ie, Qe, oe), f(P, g, M, Qe, oe));
+ var $e = Tl.charAt(Ht);
+ oe = String.fromCharCode(55349, 56320 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56372 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56424 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56580 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56684 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56736 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56788 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56840 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56944 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), Ht < 26 && (oe = String.fromCharCode(55349, 56632 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe), oe = String.fromCharCode(55349, 56476 + Ht), f(m, g, ne, $e, oe), f(H, g, M, $e, oe));
}
oe = "𝕜";
-f(m, g, ie, "k", oe);
-f(P, g, M, "k", oe);
+f(m, g, ne, "k", oe);
+f(H, g, M, "k", oe);
for (var vn = 0; vn < 10; vn++) {
var Yr = vn.toString();
- oe = String.fromCharCode(55349, 57294 + vn), f(m, g, ie, Yr, oe), f(P, g, M, Yr, oe), oe = String.fromCharCode(55349, 57314 + vn), f(m, g, ie, Yr, oe), f(P, g, M, Yr, oe), oe = String.fromCharCode(55349, 57324 + vn), f(m, g, ie, Yr, oe), f(P, g, M, Yr, oe), oe = String.fromCharCode(55349, 57334 + vn), f(m, g, ie, Yr, oe), f(P, g, M, Yr, oe);
+ oe = String.fromCharCode(55349, 57294 + vn), f(m, g, ne, Yr, oe), f(H, g, M, Yr, oe), oe = String.fromCharCode(55349, 57314 + vn), f(m, g, ne, Yr, oe), f(H, g, M, Yr, oe), oe = String.fromCharCode(55349, 57324 + vn), f(m, g, ne, Yr, oe), f(H, g, M, Yr, oe), oe = String.fromCharCode(55349, 57334 + vn), f(m, g, ne, Yr, oe), f(H, g, M, Yr, oe);
}
-var Zo = "ÐÞþ";
-for (var Qs = 0; Qs < Zo.length; Qs++) {
- var Oi = Zo.charAt(Qs);
- f(m, g, ie, Oi, Oi), f(P, g, M, Oi, Oi);
+var Ko = "ÐÞþ";
+for (var Qs = 0; Qs < Ko.length; Qs++) {
+ var Oi = Ko.charAt(Qs);
+ f(m, g, ne, Oi, Oi), f(H, g, M, Oi, Oi);
}
var qi = [
["mathbf", "textbf", "Main-Bold"],
@@ -5742,7 +5742,7 @@ var qi = [
// A-Z monospace
["mathtt", "texttt", "Typewriter-Regular"]
// a-z monospace
-], tc = [
+], rc = [
["mathbf", "textbf", "Main-Bold"],
// 0-9 bold
["", "", ""],
@@ -5753,14 +5753,14 @@ var qi = [
// 0-9 bold sans-serif
["mathtt", "texttt", "Typewriter-Regular"]
// 0-9 monospace
-], o3 = function(e, t) {
+], u3 = function(e, t) {
var r = e.charCodeAt(0), a = e.charCodeAt(1), i = (r - 55296) * 1024 + (a - 56320) + 65536, l = t === "math" ? 0 : 1;
if (119808 <= i && i < 120484) {
var s = Math.floor((i - 119808) / 26);
return [qi[s][2], qi[s][l]];
} else if (120782 <= i && i <= 120831) {
var o = Math.floor((i - 120782) / 10);
- return [tc[o][2], tc[o][l]];
+ return [rc[o][2], rc[o][l]];
} else {
if (i === 120485 || i === 120486)
return [qi[0][2], qi[0][l]];
@@ -5771,26 +5771,26 @@ var qi = [
}, Kl = function(e, t, r) {
return Ne[r][e] && Ne[r][e].replace && (e = Ne[r][e].replace), {
value: e,
- metrics: Tu(e, t, r)
+ metrics: Cu(e, t, r)
};
-}, P0 = function(e, t, r, a, i) {
+}, q0 = function(e, t, r, a, i) {
var l = Kl(e, t, r), s = l.metrics;
e = l.value;
var o;
if (s) {
var u = s.italic;
- (r === "text" || a && a.font === "mathit") && (u = 0), o = new T0(e, s.height, s.depth, u, s.skew, s.width, i);
+ (r === "text" || a && a.font === "mathit") && (u = 0), o = new x0(e, s.height, s.depth, u, s.skew, s.width, i);
} else
- typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + r + "'")), o = new T0(e, 0, 0, 0, 0, 0, i);
+ typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + r + "'")), o = new x0(e, 0, 0, 0, 0, 0, i);
if (a) {
o.maxFontSize = a.sizeMultiplier, a.style.isTight() && o.classes.push("mtight");
var c = a.getColor();
c && (o.style.color = c);
}
return o;
-}, u3 = function(e, t, r, a) {
- return a === void 0 && (a = []), r.font === "boldsymbol" && Kl(e, "Main-Bold", t).metrics ? P0(e, "Main-Bold", t, r, a.concat(["mathbf"])) : e === "\\" || Ne[t][e].font === "main" ? P0(e, "Main-Regular", t, r, a) : P0(e, "AMS-Regular", t, r, a.concat(["amsrm"]));
-}, c3 = function(e, t, r, a, i) {
+}, c3 = function(e, t, r, a) {
+ return a === void 0 && (a = []), r.font === "boldsymbol" && Kl(e, "Main-Bold", t).metrics ? q0(e, "Main-Bold", t, r, a.concat(["mathbf"])) : e === "\\" || Ne[t][e].font === "main" ? q0(e, "Main-Regular", t, r, a) : q0(e, "AMS-Regular", t, r, a.concat(["amsrm"]));
+}, f3 = function(e, t, r, a, i) {
return i !== "textord" && Kl(e, "Math-BoldItalic", t).metrics ? {
fontName: "Math-BoldItalic",
fontClass: "boldsymbol"
@@ -5798,41 +5798,41 @@ var qi = [
fontName: "Main-Bold",
fontClass: "mathbf"
};
-}, f3 = function(e, t, r) {
+}, h3 = function(e, t, r) {
var a = e.mode, i = e.text, l = ["mord"], s = a === "math" || a === "text" && t.font, o = s ? t.font : t.fontFamily, u = "", c = "";
- if (i.charCodeAt(0) === 55349 && ([u, c] = o3(i, a)), u.length > 0)
- return P0(i, u, a, t, l.concat(c));
+ if (i.charCodeAt(0) === 55349 && ([u, c] = u3(i, a)), u.length > 0)
+ return q0(i, u, a, t, l.concat(c));
if (o) {
var d, h;
if (o === "boldsymbol") {
- var p = c3(i, a, t, l, r);
+ var p = f3(i, a, t, l, r);
d = p.fontName, h = [p.fontClass];
- } else s ? (d = Bd[o].fontName, h = [o]) : (d = Pi(o, t.fontWeight, t.fontShape), h = [o, t.fontWeight, t.fontShape]);
+ } else s ? (d = Id[o].fontName, h = [o]) : (d = Pi(o, t.fontWeight, t.fontShape), h = [o, t.fontWeight, t.fontShape]);
if (Kl(i, d, a).metrics)
- return P0(i, d, a, t, l.concat(h));
- if (Fd.hasOwnProperty(i) && d.slice(0, 10) === "Typewriter") {
+ return q0(i, d, a, t, l.concat(h));
+ if (Md.hasOwnProperty(i) && d.slice(0, 10) === "Typewriter") {
for (var _ = [], b = 0; b < i.length; b++)
- _.push(P0(i[b], d, a, t, l.concat(h)));
- return zd(_);
+ _.push(q0(i[b], d, a, t, l.concat(h)));
+ return Bd(_);
}
}
if (r === "mathord")
- return P0(i, "Math-Italic", a, t, l.concat(["mathnormal"]));
+ return q0(i, "Math-Italic", a, t, l.concat(["mathnormal"]));
if (r === "textord") {
var D = Ne[a][i] && Ne[a][i].font;
if (D === "ams") {
var y = Pi("amsrm", t.fontWeight, t.fontShape);
- return P0(i, y, a, t, l.concat("amsrm", t.fontWeight, t.fontShape));
+ return q0(i, y, a, t, l.concat("amsrm", t.fontWeight, t.fontShape));
} else if (D === "main" || !D) {
var k = Pi("textrm", t.fontWeight, t.fontShape);
- return P0(i, k, a, t, l.concat(t.fontWeight, t.fontShape));
+ return q0(i, k, a, t, l.concat(t.fontWeight, t.fontShape));
} else {
var w = Pi(D, t.fontWeight, t.fontShape);
- return P0(i, w, a, t, l.concat(w, t.fontWeight, t.fontShape));
+ return q0(i, w, a, t, l.concat(w, t.fontWeight, t.fontShape));
}
} else
throw new Error("unexpected type: " + r + " in makeOrd");
-}, h3 = (n, e) => {
+}, d3 = (n, e) => {
if (on(n.classes) !== on(e.classes) || n.skew !== e.skew || n.maxFontSize !== e.maxFontSize)
return !1;
if (n.classes.length === 1) {
@@ -5847,13 +5847,13 @@ var qi = [
if (e.style.hasOwnProperty(a) && n.style[a] !== e.style[a])
return !1;
return !0;
-}, d3 = (n) => {
+}, m3 = (n) => {
for (var e = 0; e < n.length - 1; e++) {
var t = n[e], r = n[e + 1];
- t instanceof T0 && r instanceof T0 && h3(t, r) && (t.text += r.text, t.height = Math.max(t.height, r.height), t.depth = Math.max(t.depth, r.depth), t.italic = r.italic, n.splice(e + 1, 1), e--);
+ t instanceof x0 && r instanceof x0 && d3(t, r) && (t.text += r.text, t.height = Math.max(t.height, r.height), t.depth = Math.max(t.depth, r.depth), t.italic = r.italic, n.splice(e + 1, 1), e--);
}
return n;
-}, Fu = function(e) {
+}, Mu = function(e) {
for (var t = 0, r = 0, a = 0, i = 0; i < e.children.length; i++) {
var l = e.children[i];
l.height > t && (t = l.height), l.depth > r && (r = l.depth), l.maxFontSize > a && (a = l.maxFontSize);
@@ -5861,19 +5861,19 @@ var qi = [
e.height = t, e.depth = r, e.maxFontSize = a;
}, e0 = function(e, t, r, a) {
var i = new ri(e, t, r, a);
- return Fu(i), i;
-}, Md = (n, e, t, r) => new ri(n, e, t, r), m3 = function(e, t, r) {
+ return Mu(i), i;
+}, zd = (n, e, t, r) => new ri(n, e, t, r), p3 = function(e, t, r) {
var a = e0([e], [], t);
return a.height = Math.max(r || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), a.style.borderBottomWidth = X(a.height), a.maxFontSize = 1, a;
-}, p3 = function(e, t, r, a) {
- var i = new Cu(e, t, r, a);
- return Fu(i), i;
-}, zd = function(e) {
+}, g3 = function(e, t, r, a) {
+ var i = new Fu(e, t, r, a);
+ return Mu(i), i;
+}, Bd = function(e) {
var t = new ti(e);
- return Fu(t), t;
-}, g3 = function(e, t) {
+ return Mu(t), t;
+}, _3 = function(e, t) {
return e instanceof ti ? e0([], [e], t) : e;
-}, _3 = function(e) {
+}, v3 = function(e) {
if (e.positionType === "individualShift") {
for (var t = e.children, r = [t[0]], a = -t[0].shift - t[0].elem.depth, i = a, l = 1; l < t.length; l++) {
var s = -t[l].shift - i - t[l].elem.depth, o = s - (t[l - 1].elem.height + t[l - 1].elem.depth);
@@ -5911,11 +5911,11 @@ var qi = [
children: e.children,
depth: u
};
-}, v3 = function(e, t) {
+}, b3 = function(e, t) {
for (var {
children: r,
depth: a
- } = _3(e), i = 0, l = 0; l < r.length; l++) {
+ } = v3(e), i = 0, l = 0; l < r.length; l++) {
var s = r[l];
if (s.type === "elem") {
var o = s.elem;
@@ -5941,13 +5941,13 @@ var qi = [
if (d < 0) {
var T = e0([], []), C = e0(["vlist"], [T]);
C.style.height = X(-d);
- var F = e0(["vlist-s"], [new T0("")]);
+ var F = e0(["vlist-s"], [new x0("")]);
S = [e0(["vlist-r"], [E, F]), e0(["vlist-r"], [C])];
} else
S = [e0(["vlist-r"], [E])];
var B = e0(["vlist-t"], S);
return S.length === 2 && B.classes.push("vlist-t2"), B.height = h, B.depth = -d, B;
-}, b3 = (n, e) => {
+}, w3 = (n, e) => {
var t = e0(["mspace"], [], e), r = Ye(n, e);
return t.style.marginRight = X(r), t;
}, Pi = function(e, t, r) {
@@ -5970,7 +5970,7 @@ var qi = [
}
var i;
return t === "textbf" && r === "textit" ? i = "BoldItalic" : t === "textbf" ? i = "Bold" : t === "textit" ? i = "Italic" : i = "Regular", a + "-" + i;
-}, Bd = {
+}, Id = {
// styles
mathbf: {
variant: "bold",
@@ -6020,7 +6020,7 @@ var qi = [
variant: "monospace",
fontName: "Typewriter-Regular"
}
-}, Id = {
+}, Ld = {
// path, width, height
vec: ["vec", 0.471, 0.714],
// values from the font glyph
@@ -6029,32 +6029,32 @@ var qi = [
oiintSize2: ["oiintSize2", 1.472, 0.659],
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
-}, w3 = function(e, t) {
- var [r, a, i] = Id[e], l = new un(r), s = new Ir([l], {
+}, y3 = function(e, t) {
+ var [r, a, i] = Ld[e], l = new un(r), s = new Br([l], {
width: X(a),
height: X(i),
// Override CSS rule `.katex svg { width: 100% }`
style: "width:" + X(a),
viewBox: "0 0 " + 1e3 * a + " " + 1e3 * i,
preserveAspectRatio: "xMinYMin"
- }), o = Md(["overlay"], [s], t);
+ }), o = zd(["overlay"], [s], t);
return o.height = i, o.style.height = X(i), o.style.width = X(a), o;
-}, N = {
- fontMap: Bd,
- makeSymbol: P0,
- mathsym: u3,
+}, R = {
+ fontMap: Id,
+ makeSymbol: q0,
+ mathsym: c3,
makeSpan: e0,
- makeSvgSpan: Md,
- makeLineSpan: m3,
- makeAnchor: p3,
- makeFragment: zd,
- wrapFragment: g3,
- makeVList: v3,
- makeOrd: f3,
- makeGlue: b3,
- staticSvg: w3,
- svgData: Id,
- tryCombineChars: d3
+ makeSvgSpan: zd,
+ makeLineSpan: p3,
+ makeAnchor: g3,
+ makeFragment: Bd,
+ wrapFragment: _3,
+ makeVList: b3,
+ makeOrd: h3,
+ makeGlue: w3,
+ staticSvg: y3,
+ svgData: Ld,
+ tryCombineChars: m3
}, Xe = {
number: 3,
unit: "mu"
@@ -6064,7 +6064,7 @@ var qi = [
}, wr = {
number: 5,
unit: "mu"
-}, y3 = {
+}, k3 = {
mord: {
mop: Xe,
mbin: bn,
@@ -6114,7 +6114,7 @@ var qi = [
mpunct: Xe,
minner: Xe
}
-}, k3 = {
+}, D3 = {
mord: {
mop: Xe
},
@@ -6132,8 +6132,8 @@ var qi = [
minner: {
mop: Xe
}
-}, Ld = {}, Cl = {}, Fl = {};
-function K(n) {
+}, Nd = {}, Cl = {}, Fl = {};
+function Y(n) {
for (var {
type: e,
names: t,
@@ -6153,7 +6153,7 @@ function K(n) {
primitive: !!r.primitive,
handler: a
}, o = 0; o < t.length; ++o)
- Ld[t[o]] = s;
+ Nd[t[o]] = s;
e && (i && (Cl[e] = i), l && (Fl[e] = l));
}
function Bn(n) {
@@ -6162,7 +6162,7 @@ function Bn(n) {
htmlBuilder: t,
mathmlBuilder: r
} = n;
- K({
+ Y({
type: e,
names: [],
props: {
@@ -6177,14 +6177,14 @@ function Bn(n) {
}
var Ml = function(e) {
return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
-}, rt = function(e) {
+}, tt = function(e) {
return e.type === "ordgroup" ? e.body : [e];
-}, Lr = N.makeSpan, D3 = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], A3 = ["rightmost", "mrel", "mclose", "mpunct"], E3 = {
- display: le.DISPLAY,
- text: le.TEXT,
- script: le.SCRIPT,
- scriptscript: le.SCRIPTSCRIPT
-}, S3 = {
+}, Ir = R.makeSpan, A3 = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], E3 = ["rightmost", "mrel", "mclose", "mpunct"], S3 = {
+ display: ae.DISPLAY,
+ text: ae.TEXT,
+ script: ae.SCRIPT,
+ scriptscript: ae.SCRIPTSCRIPT
+}, x3 = {
mord: "mord",
mop: "mop",
mbin: "mbin",
@@ -6193,40 +6193,40 @@ var Ml = function(e) {
mclose: "mclose",
mpunct: "mpunct",
minner: "minner"
-}, vt = function(e, t, r, a) {
+}, gt = function(e, t, r, a) {
a === void 0 && (a = [null, null]);
for (var i = [], l = 0; l < e.length; l++) {
- var s = Ee(e[l], t);
+ var s = Se(e[l], t);
if (s instanceof ti) {
var o = s.children;
i.push(...o);
} else
i.push(s);
}
- if (N.tryCombineChars(i), !r)
+ if (R.tryCombineChars(i), !r)
return i;
var u = t;
if (e.length === 1) {
var c = e[0];
- c.type === "sizing" ? u = t.havingSize(c.size) : c.type === "styling" && (u = t.havingStyle(E3[c.style]));
+ c.type === "sizing" ? u = t.havingSize(c.size) : c.type === "styling" && (u = t.havingStyle(S3[c.style]));
}
- var d = Lr([a[0] || "leftmost"], [], t), h = Lr([a[1] || "rightmost"], [], t), p = r === "root";
- return rc(i, (_, b) => {
+ var d = Ir([a[0] || "leftmost"], [], t), h = Ir([a[1] || "rightmost"], [], t), p = r === "root";
+ return nc(i, (_, b) => {
var D = b.classes[0], y = _.classes[0];
- D === "mbin" && ae.contains(A3, y) ? b.classes[0] = "mord" : y === "mbin" && ae.contains(D3, D) && (_.classes[0] = "mord");
+ D === "mbin" && re.contains(E3, y) ? b.classes[0] = "mord" : y === "mbin" && re.contains(A3, D) && (_.classes[0] = "mord");
}, {
node: d
- }, h, p), rc(i, (_, b) => {
- var D = Ko(b), y = Ko(_), k = D && y ? _.hasClass("mtight") ? k3[D][y] : y3[D][y] : null;
+ }, h, p), nc(i, (_, b) => {
+ var D = Jo(b), y = Jo(_), k = D && y ? _.hasClass("mtight") ? D3[D][y] : k3[D][y] : null;
if (k)
- return N.makeGlue(k, u);
+ return R.makeGlue(k, u);
}, {
node: d
}, h, p), i;
-}, rc = function n(e, t, r, a, i) {
+}, nc = function n(e, t, r, a, i) {
a && e.push(a);
for (var l = 0; l < e.length; l++) {
- var s = e[l], o = Nd(s);
+ var s = e[l], o = Rd(s);
if (o) {
n(o.children, t, r, null, i);
continue;
@@ -6236,15 +6236,15 @@ var Ml = function(e) {
var c = t(s, r.node);
c && (r.insertAfter ? r.insertAfter(c) : (e.unshift(c), l++));
}
- u ? r.node = s : i && s.hasClass("newline") && (r.node = Lr(["leftmost"])), r.insertAfter = /* @__PURE__ */ ((d) => (h) => {
+ u ? r.node = s : i && s.hasClass("newline") && (r.node = Ir(["leftmost"])), r.insertAfter = /* @__PURE__ */ ((d) => (h) => {
e.splice(d + 1, 0, h), l++;
})(l);
}
a && e.pop();
-}, Nd = function(e) {
- return e instanceof ti || e instanceof Cu || e instanceof ri && e.hasClass("enclosing") ? e : null;
-}, x3 = function n(e, t) {
- var r = Nd(e);
+}, Rd = function(e) {
+ return e instanceof ti || e instanceof Fu || e instanceof ri && e.hasClass("enclosing") ? e : null;
+}, T3 = function n(e, t) {
+ var r = Rd(e);
if (r) {
var a = r.children;
if (a.length) {
@@ -6255,18 +6255,18 @@ var Ml = function(e) {
}
}
return e;
-}, Ko = function(e, t) {
- return e ? (t && (e = x3(e, t)), S3[e.classes[0]] || null) : null;
+}, Jo = function(e, t) {
+ return e ? (t && (e = T3(e, t)), x3[e.classes[0]] || null) : null;
}, Ya = function(e, t) {
var r = ["nulldelimiter"].concat(e.baseSizingClasses());
- return Lr(t.concat(r));
-}, Ee = function(e, t, r) {
+ return Ir(t.concat(r));
+}, Se = function(e, t, r) {
if (!e)
- return Lr();
+ return Ir();
if (Cl[e.type]) {
var a = Cl[e.type](e, t);
if (r && t.size !== r.size) {
- a = Lr(t.sizingClasses(r), [a], t);
+ a = Ir(t.sizingClasses(r), [a], t);
var i = t.sizeMultiplier / r.sizeMultiplier;
a.height *= i, a.depth *= i;
}
@@ -6275,13 +6275,13 @@ var Ml = function(e) {
throw new G("Got group of unknown type: '" + e.type + "'");
};
function Hi(n, e) {
- var t = Lr(["base"], n, e), r = Lr(["strut"]);
+ var t = Ir(["base"], n, e), r = Ir(["strut"]);
return r.style.height = X(t.height + t.depth), t.depth && (r.style.verticalAlign = X(-t.depth)), t.children.unshift(r), t;
}
-function Jo(n, e) {
+function Qo(n, e) {
var t = null;
n.length === 1 && n[0].type === "tag" && (t = n[0].tag, n = n[0].body);
- var r = vt(n, e, "root"), a;
+ var r = gt(n, e, "root"), a;
r.length === 2 && r[1].hasClass("tag") && (a = r.pop());
for (var i = [], l = [], s = 0; s < r.length; s++)
if (l.push(r[s]), r[s].hasClass("mbin") || r[s].hasClass("mrel") || r[s].hasClass("allowbreak")) {
@@ -6291,18 +6291,18 @@ function Jo(n, e) {
} else r[s].hasClass("newline") && (l.pop(), l.length > 0 && (i.push(Hi(l, e)), l = []), i.push(r[s]));
l.length > 0 && i.push(Hi(l, e));
var u;
- t ? (u = Hi(vt(t, e, !0)), u.classes = ["tag"], i.push(u)) : a && i.push(a);
- var c = Lr(["katex-html"], i);
+ t ? (u = Hi(gt(t, e, !0)), u.classes = ["tag"], i.push(u)) : a && i.push(a);
+ var c = Ir(["katex-html"], i);
if (c.setAttribute("aria-hidden", "true"), u) {
var d = u.children[0];
d.style.height = X(c.height + c.depth), c.depth && (d.style.verticalAlign = X(-c.depth));
}
return c;
}
-function Rd(n) {
+function Od(n) {
return new ti(n);
}
-class k0 {
+class y0 {
constructor(e, t, r) {
this.type = void 0, this.attributes = void 0, this.children = void 0, this.classes = void 0, this.type = e, this.attributes = {}, this.children = t || [], this.classes = r || [];
}
@@ -6337,8 +6337,8 @@ class k0 {
toMarkup() {
var e = "<" + this.type;
for (var t in this.attributes)
- Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += ae.escape(this.attributes[t]), e += '"');
- this.classes.length > 0 && (e += ' class ="' + ae.escape(on(this.classes)) + '"'), e += ">";
+ Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += re.escape(this.attributes[t]), e += '"');
+ this.classes.length > 0 && (e += ' class ="' + re.escape(on(this.classes)) + '"'), e += ">";
for (var r = 0; r < this.children.length; r++)
e += this.children[r].toMarkup();
return e += "" + this.type + ">", e;
@@ -6365,7 +6365,7 @@ class Oa {
* (representing the text itself).
*/
toMarkup() {
- return ae.escape(this.toText());
+ return re.escape(this.toText());
}
/**
* Converts the text node into a string
@@ -6375,7 +6375,7 @@ class Oa {
return this.text;
}
}
-class T3 {
+class C3 {
/**
* Create a Space node with width given in CSS ems.
*/
@@ -6405,15 +6405,15 @@ class T3 {
}
}
var U = {
- MathNode: k0,
+ MathNode: y0,
TextNode: Oa,
- SpaceNode: T3,
- newDocumentFragment: Rd
-}, C0 = function(e, t, r) {
- return Ne[t][e] && Ne[t][e].replace && e.charCodeAt(0) !== 55349 && !(Fd.hasOwnProperty(e) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (e = Ne[t][e].replace), new U.TextNode(e);
-}, Mu = function(e) {
+ SpaceNode: C3,
+ newDocumentFragment: Od
+}, T0 = function(e, t, r) {
+ return Ne[t][e] && Ne[t][e].replace && e.charCodeAt(0) !== 55349 && !(Md.hasOwnProperty(e) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (e = Ne[t][e].replace), new U.TextNode(e);
+}, zu = function(e) {
return e.length === 1 ? e[0] : new U.MathNode("mrow", e);
-}, zu = function(e, t) {
+}, Bu = function(e, t) {
if (t.fontFamily === "texttt")
return "monospace";
if (t.fontFamily === "textsf")
@@ -6445,19 +6445,19 @@ var U = {
if (r === "mathtt")
return "monospace";
var i = e.text;
- if (ae.contains(["\\imath", "\\jmath"], i))
+ if (re.contains(["\\imath", "\\jmath"], i))
return null;
Ne[a][i] && Ne[a][i].replace && (i = Ne[a][i].replace);
- var l = N.fontMap[r].fontName;
- return Tu(i, l, a) ? N.fontMap[r].variant : null;
+ var l = R.fontMap[r].fontName;
+ return Cu(i, l, a) ? R.fontMap[r].variant : null;
}, a0 = function(e, t, r) {
if (e.length === 1) {
var a = Ie(e[0], t);
- return r && a instanceof k0 && a.type === "mo" && (a.setAttribute("lspace", "0em"), a.setAttribute("rspace", "0em")), [a];
+ return r && a instanceof y0 && a.type === "mo" && (a.setAttribute("lspace", "0em"), a.setAttribute("rspace", "0em")), [a];
}
for (var i = [], l, s = 0; s < e.length; s++) {
var o = Ie(e[s], t);
- if (o instanceof k0 && l instanceof k0) {
+ if (o instanceof y0 && l instanceof y0) {
if (o.type === "mtext" && l.type === "mtext" && o.getAttribute("mathvariant") === l.getAttribute("mathvariant")) {
l.children.push(...o.children);
continue;
@@ -6482,7 +6482,7 @@ var U = {
}
return i;
}, cn = function(e, t, r) {
- return Mu(a0(e, t, r));
+ return zu(a0(e, t, r));
}, Ie = function(e, t) {
if (!e)
return new U.MathNode("mrow");
@@ -6492,44 +6492,44 @@ var U = {
} else
throw new G("Got group of unknown type: '" + e.type + "'");
};
-function nc(n, e, t, r, a) {
+function ac(n, e, t, r, a) {
var i = a0(n, t), l;
- i.length === 1 && i[0] instanceof k0 && ae.contains(["mrow", "mtable"], i[0].type) ? l = i[0] : l = new U.MathNode("mrow", i);
+ i.length === 1 && i[0] instanceof y0 && re.contains(["mrow", "mtable"], i[0].type) ? l = i[0] : l = new U.MathNode("mrow", i);
var s = new U.MathNode("annotation", [new U.TextNode(e)]);
s.setAttribute("encoding", "application/x-tex");
var o = new U.MathNode("semantics", [l, s]), u = new U.MathNode("math", [o]);
u.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), r && u.setAttribute("display", "block");
var c = a ? "katex" : "katex-mathml";
- return N.makeSpan([c], [u]);
+ return R.makeSpan([c], [u]);
}
-var Od = function(e) {
+var qd = function(e) {
return new Dr({
- style: e.displayMode ? le.DISPLAY : le.TEXT,
+ style: e.displayMode ? ae.DISPLAY : ae.TEXT,
maxSize: e.maxSize,
minRuleThickness: e.minRuleThickness
});
-}, qd = function(e, t) {
+}, Pd = function(e, t) {
if (t.displayMode) {
var r = ["katex-display"];
- t.leqno && r.push("leqno"), t.fleqn && r.push("fleqn"), e = N.makeSpan(r, [e]);
+ t.leqno && r.push("leqno"), t.fleqn && r.push("fleqn"), e = R.makeSpan(r, [e]);
}
return e;
-}, C3 = function(e, t, r) {
- var a = Od(r), i;
- if (r.output === "mathml")
- return nc(e, t, a, r.displayMode, !0);
- if (r.output === "html") {
- var l = Jo(e, a);
- i = N.makeSpan(["katex"], [l]);
- } else {
- var s = nc(e, t, a, r.displayMode, !1), o = Jo(e, a);
- i = N.makeSpan(["katex"], [s, o]);
- }
- return qd(i, r);
}, F3 = function(e, t, r) {
- var a = Od(r), i = Jo(e, a), l = N.makeSpan(["katex"], [i]);
- return qd(l, r);
-}, M3 = {
+ var a = qd(r), i;
+ if (r.output === "mathml")
+ return ac(e, t, a, r.displayMode, !0);
+ if (r.output === "html") {
+ var l = Qo(e, a);
+ i = R.makeSpan(["katex"], [l]);
+ } else {
+ var s = ac(e, t, a, r.displayMode, !1), o = Qo(e, a);
+ i = R.makeSpan(["katex"], [s, o]);
+ }
+ return Pd(i, r);
+}, M3 = function(e, t, r) {
+ var a = qd(r), i = Qo(e, a), l = R.makeSpan(["katex"], [i]);
+ return Pd(l, r);
+}, z3 = {
widehat: "^",
widecheck: "ˇ",
widetilde: "~",
@@ -6574,10 +6574,10 @@ var Od = function(e) {
"\\cdrightarrow": "→",
"\\cdleftarrow": "←",
"\\cdlongequal": "="
-}, z3 = function(e) {
- var t = new U.MathNode("mo", [new U.TextNode(M3[e.replace(/^\\/, "")])]);
+}, B3 = function(e) {
+ var t = new U.MathNode("mo", [new U.TextNode(z3[e.replace(/^\\/, "")])]);
return t.setAttribute("stretchy", "true"), t;
-}, B3 = {
+}, I3 = {
// path(s), minWidth, height, align
overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
@@ -6624,32 +6624,32 @@ var Od = function(e) {
xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901],
xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716],
xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716]
-}, I3 = function(e) {
+}, L3 = function(e) {
return e.type === "ordgroup" ? e.body.length : 1;
-}, L3 = function(e, t) {
+}, N3 = function(e, t) {
function r() {
var s = 4e5, o = e.label.slice(1);
- if (ae.contains(["widehat", "widecheck", "widetilde", "utilde"], o)) {
- var u = e, c = I3(u.base), d, h, p;
+ if (re.contains(["widehat", "widecheck", "widetilde", "utilde"], o)) {
+ var u = e, c = L3(u.base), d, h, p;
if (c > 5)
o === "widehat" || o === "widecheck" ? (d = 420, s = 2364, p = 0.42, h = o + "4") : (d = 312, s = 2340, p = 0.34, h = "tilde4");
else {
var _ = [1, 1, 2, 2, 3, 3][c];
o === "widehat" || o === "widecheck" ? (s = [0, 1062, 2364, 2364, 2364][_], d = [0, 239, 300, 360, 420][_], p = [0, 0.24, 0.3, 0.3, 0.36, 0.42][_], h = o + _) : (s = [0, 600, 1033, 2339, 2340][_], d = [0, 260, 286, 306, 312][_], p = [0, 0.26, 0.286, 0.3, 0.306, 0.34][_], h = "tilde" + _);
}
- var b = new un(h), D = new Ir([b], {
+ var b = new un(h), D = new Br([b], {
width: "100%",
height: X(p),
viewBox: "0 0 " + s + " " + d,
preserveAspectRatio: "none"
});
return {
- span: N.makeSvgSpan([], [D], t),
+ span: R.makeSvgSpan([], [D], t),
minWidth: 0,
height: p
};
} else {
- var y = [], k = B3[o], [w, E, S] = k, T = S / 1e3, C = w.length, F, B;
+ var y = [], k = I3[o], [w, E, S] = k, T = S / 1e3, C = w.length, F, B;
if (C === 1) {
var I = k[3];
F = ["hide-tail"], B = [I];
@@ -6661,22 +6661,22 @@ var Od = function(e) {
throw new Error(`Correct katexImagesData or update code here to support
` + C + " children.");
for (var L = 0; L < C; L++) {
- var q = new un(w[L]), J = new Ir([q], {
+ var P = new un(w[L]), Z = new Br([P], {
width: "400em",
height: X(T),
viewBox: "0 0 " + s + " " + S,
preserveAspectRatio: B[L] + " slice"
- }), Y = N.makeSvgSpan([F[L]], [J], t);
+ }), O = R.makeSvgSpan([F[L]], [Z], t);
if (C === 1)
return {
- span: Y,
+ span: O,
minWidth: E,
height: T
};
- Y.style.height = X(T), y.push(Y);
+ O.style.height = X(T), y.push(O);
}
return {
- span: N.makeSpan(["stretchy"], y, t),
+ span: R.makeSpan(["stretchy"], y, t),
minWidth: E,
height: T
};
@@ -6688,65 +6688,65 @@ var Od = function(e) {
height: l
} = r();
return a.height = l, a.style.height = X(l), i > 0 && (a.style.minWidth = X(i)), a;
-}, N3 = function(e, t, r, a, i) {
+}, R3 = function(e, t, r, a, i) {
var l, s = e.height + e.depth + r + a;
if (/fbox|color|angl/.test(t)) {
- if (l = N.makeSpan(["stretchy", t], [], i), t === "fbox") {
+ if (l = R.makeSpan(["stretchy", t], [], i), t === "fbox") {
var o = i.color && i.getColor();
o && (l.style.borderColor = o);
}
} else {
var u = [];
- /^[bx]cancel$/.test(t) && u.push(new Yo({
+ /^[bx]cancel$/.test(t) && u.push(new Zo({
x1: "0",
y1: "0",
x2: "100%",
y2: "100%",
"stroke-width": "0.046em"
- })), /^x?cancel$/.test(t) && u.push(new Yo({
+ })), /^x?cancel$/.test(t) && u.push(new Zo({
x1: "0",
y1: "100%",
x2: "100%",
y2: "0",
"stroke-width": "0.046em"
}));
- var c = new Ir(u, {
+ var c = new Br(u, {
width: "100%",
height: X(s)
});
- l = N.makeSvgSpan([], [c], i);
+ l = R.makeSvgSpan([], [c], i);
}
return l.height = s, l.style.height = X(s), l;
-}, Nr = {
- encloseSpan: N3,
- mathMLnode: z3,
- svgSpan: L3
+}, Lr = {
+ encloseSpan: R3,
+ mathMLnode: B3,
+ svgSpan: N3
};
-function me(n, e) {
+function pe(n, e) {
if (!n || n.type !== e)
throw new Error("Expected node of type " + e + ", but got " + (n ? "node of type " + n.type : String(n)));
return n;
}
-function Bu(n) {
+function Iu(n) {
var e = Jl(n);
if (!e)
throw new Error("Expected node of symbol group type, but got " + (n ? "node of type " + n.type : String(n)));
return e;
}
function Jl(n) {
- return n && (n.type === "atom" || s3.hasOwnProperty(n.type)) ? n : null;
+ return n && (n.type === "atom" || o3.hasOwnProperty(n.type)) ? n : null;
}
-var Iu = (n, e) => {
+var Lu = (n, e) => {
var t, r, a;
- n && n.type === "supsub" ? (r = me(n.base, "accent"), t = r.base, n.base = t, a = i3(Ee(n, e)), n.base = r) : (r = me(n, "accent"), t = r.base);
- var i = Ee(t, e.havingCrampedStyle()), l = r.isShifty && ae.isCharacterBox(t), s = 0;
+ n && n.type === "supsub" ? (r = pe(n.base, "accent"), t = r.base, n.base = t, a = l3(Se(n, e)), n.base = r) : (r = pe(n, "accent"), t = r.base);
+ var i = Se(t, e.havingCrampedStyle()), l = r.isShifty && re.isCharacterBox(t), s = 0;
if (l) {
- var o = ae.getBaseElem(t), u = Ee(o, e.havingCrampedStyle());
- s = K1(u).skew;
+ var o = re.getBaseElem(t), u = Se(o, e.havingCrampedStyle());
+ s = J1(u).skew;
}
var c = r.label === "\\c", d = c ? i.height + i.depth : Math.min(i.height, e.fontMetrics().xHeight), h;
if (r.isStretchy)
- h = Nr.svgSpan(r, e), h = N.makeVList({
+ h = Lr.svgSpan(r, e), h = R.makeVList({
positionType: "firstBaseline",
children: [{
type: "elem",
@@ -6763,14 +6763,14 @@ var Iu = (n, e) => {
}, e);
else {
var p, _;
- r.label === "\\vec" ? (p = N.staticSvg("vec", e), _ = N.svgData.vec[1]) : (p = N.makeOrd({
+ r.label === "\\vec" ? (p = R.staticSvg("vec", e), _ = R.svgData.vec[1]) : (p = R.makeOrd({
mode: r.mode,
text: r.label
- }, e, "textord"), p = K1(p), p.italic = 0, _ = p.width, c && (d += p.depth)), h = N.makeSpan(["accent-body"], [p]);
+ }, e, "textord"), p = J1(p), p.italic = 0, _ = p.width, c && (d += p.depth)), h = R.makeSpan(["accent-body"], [p]);
var b = r.label === "\\textcircled";
b && (h.classes.push("accent-full"), d = i.height);
var D = s;
- b || (D -= _ / 2), h.style.left = X(D), r.label === "\\textcircled" && (h.style.top = ".2em"), h = N.makeVList({
+ b || (D -= _ / 2), h.style.left = X(D), r.label === "\\textcircled" && (h.style.top = ".2em"), h = R.makeVList({
positionType: "firstBaseline",
children: [{
type: "elem",
@@ -6784,20 +6784,20 @@ var Iu = (n, e) => {
}]
}, e);
}
- var y = N.makeSpan(["mord", "accent"], [h], e);
+ var y = R.makeSpan(["mord", "accent"], [h], e);
return a ? (a.children[0] = y, a.height = Math.max(y.height, a.height), a.classes[0] = "mord", a) : y;
-}, Pd = (n, e) => {
- var t = n.isStretchy ? Nr.mathMLnode(n.label) : new U.MathNode("mo", [C0(n.label, n.mode)]), r = new U.MathNode("mover", [Ie(n.base, e), t]);
+}, Hd = (n, e) => {
+ var t = n.isStretchy ? Lr.mathMLnode(n.label) : new U.MathNode("mo", [T0(n.label, n.mode)]), r = new U.MathNode("mover", [Ie(n.base, e), t]);
return r.setAttribute("accent", "true"), r;
-}, R3 = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((n) => "\\" + n).join("|"));
-K({
+}, O3 = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((n) => "\\" + n).join("|"));
+Y({
type: "accent",
names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
props: {
numArgs: 1
},
handler: (n, e) => {
- var t = Ml(e[0]), r = !R3.test(n.funcName), a = !r || n.funcName === "\\widehat" || n.funcName === "\\widetilde" || n.funcName === "\\widecheck";
+ var t = Ml(e[0]), r = !O3.test(n.funcName), a = !r || n.funcName === "\\widehat" || n.funcName === "\\widetilde" || n.funcName === "\\widecheck";
return {
type: "accent",
mode: n.parser.mode,
@@ -6807,10 +6807,10 @@ K({
base: t
};
},
- htmlBuilder: Iu,
- mathmlBuilder: Pd
+ htmlBuilder: Lu,
+ mathmlBuilder: Hd
});
-K({
+Y({
type: "accent",
names: ["\\'", "\\`", "\\^", "\\~", "\\=", "\\u", "\\.", '\\"', "\\c", "\\r", "\\H", "\\v", "\\textcircled"],
props: {
@@ -6831,10 +6831,10 @@ K({
base: t
};
},
- htmlBuilder: Iu,
- mathmlBuilder: Pd
+ htmlBuilder: Lu,
+ mathmlBuilder: Hd
});
-K({
+Y({
type: "accentUnder",
names: ["\\underleftarrow", "\\underrightarrow", "\\underleftrightarrow", "\\undergroup", "\\underlinesegment", "\\utilde"],
props: {
@@ -6853,7 +6853,7 @@ K({
};
},
htmlBuilder: (n, e) => {
- var t = Ee(n.base, e), r = Nr.svgSpan(n, e), a = n.label === "\\utilde" ? 0.12 : 0, i = N.makeVList({
+ var t = Se(n.base, e), r = Lr.svgSpan(n, e), a = n.label === "\\utilde" ? 0.12 : 0, i = R.makeVList({
positionType: "top",
positionData: t.height,
children: [{
@@ -6868,10 +6868,10 @@ K({
elem: t
}]
}, e);
- return N.makeSpan(["mord", "accentunder"], [i], e);
+ return R.makeSpan(["mord", "accentunder"], [i], e);
},
mathmlBuilder: (n, e) => {
- var t = Nr.mathMLnode(n.label), r = new U.MathNode("munder", [Ie(n.base, e), t]);
+ var t = Lr.mathMLnode(n.label), r = new U.MathNode("munder", [Ie(n.base, e), t]);
return r.setAttribute("accentunder", "true"), r;
}
});
@@ -6879,7 +6879,7 @@ var Ui = (n) => {
var e = new U.MathNode("mpadded", n ? [n] : []);
return e.setAttribute("width", "+0.6em"), e.setAttribute("lspace", "0.3em"), e;
};
-K({
+Y({
type: "xArrow",
names: [
"\\xleftarrow",
@@ -6931,16 +6931,16 @@ K({
// Flow is unable to correctly infer the type of `group`, even though it's
// unambiguously determined from the passed-in `type` above.
htmlBuilder(n, e) {
- var t = e.style, r = e.havingStyle(t.sup()), a = N.wrapFragment(Ee(n.body, r, e), e), i = n.label.slice(0, 2) === "\\x" ? "x" : "cd";
+ var t = e.style, r = e.havingStyle(t.sup()), a = R.wrapFragment(Se(n.body, r, e), e), i = n.label.slice(0, 2) === "\\x" ? "x" : "cd";
a.classes.push(i + "-arrow-pad");
var l;
- n.below && (r = e.havingStyle(t.sub()), l = N.wrapFragment(Ee(n.below, r, e), e), l.classes.push(i + "-arrow-pad"));
- var s = Nr.svgSpan(n, e), o = -e.fontMetrics().axisHeight + 0.5 * s.height, u = -e.fontMetrics().axisHeight - 0.5 * s.height - 0.111;
+ n.below && (r = e.havingStyle(t.sub()), l = R.wrapFragment(Se(n.below, r, e), e), l.classes.push(i + "-arrow-pad"));
+ var s = Lr.svgSpan(n, e), o = -e.fontMetrics().axisHeight + 0.5 * s.height, u = -e.fontMetrics().axisHeight - 0.5 * s.height - 0.111;
(a.depth > 0.25 || n.label === "\\xleftequilibrium") && (u -= a.depth);
var c;
if (l) {
var d = -e.fontMetrics().axisHeight + l.height + 0.5 * s.height + 0.111;
- c = N.makeVList({
+ c = R.makeVList({
positionType: "individualShift",
children: [{
type: "elem",
@@ -6957,7 +6957,7 @@ K({
}]
}, e);
} else
- c = N.makeVList({
+ c = R.makeVList({
positionType: "individualShift",
children: [{
type: "elem",
@@ -6969,10 +6969,10 @@ K({
shift: o
}]
}, e);
- return c.children[0].children[0].children[1].classes.push("svg-align"), N.makeSpan(["mrel", "x-arrow"], [c], e);
+ return c.children[0].children[0].children[1].classes.push("svg-align"), R.makeSpan(["mrel", "x-arrow"], [c], e);
},
mathmlBuilder(n, e) {
- var t = Nr.mathMLnode(n.label);
+ var t = Lr.mathMLnode(n.label);
t.setAttribute("minsize", n.label.charAt(0) === "x" ? "1.75em" : "3.0em");
var r;
if (n.body) {
@@ -6990,16 +6990,16 @@ K({
return r;
}
});
-var O3 = N.makeSpan;
-function Hd(n, e) {
- var t = vt(n.body, e, !0);
- return O3([n.mclass], t, e);
-}
+var q3 = R.makeSpan;
function Ud(n, e) {
+ var t = gt(n.body, e, !0);
+ return q3([n.mclass], t, e);
+}
+function Vd(n, e) {
var t, r = a0(n.body, e);
return n.mclass === "minner" ? t = new U.MathNode("mpadded", r) : n.mclass === "mord" ? n.isCharacterBox ? (t = r[0], t.type = "mi") : t = new U.MathNode("mi", r) : (n.isCharacterBox ? (t = r[0], t.type = "mo") : t = new U.MathNode("mo", r), n.mclass === "mbin" ? (t.attributes.lspace = "0.22em", t.attributes.rspace = "0.22em") : n.mclass === "mpunct" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0.17em") : n.mclass === "mopen" || n.mclass === "mclose" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0em") : n.mclass === "minner" && (t.attributes.lspace = "0.0556em", t.attributes.width = "+0.1111em")), t;
}
-K({
+Y({
type: "mclass",
names: ["\\mathord", "\\mathbin", "\\mathrel", "\\mathopen", "\\mathclose", "\\mathpunct", "\\mathinner"],
props: {
@@ -7016,18 +7016,18 @@ K({
mode: t.mode,
mclass: "m" + r.slice(5),
// TODO(kevinb): don't prefix with 'm'
- body: rt(a),
- isCharacterBox: ae.isCharacterBox(a)
+ body: tt(a),
+ isCharacterBox: re.isCharacterBox(a)
};
},
- htmlBuilder: Hd,
- mathmlBuilder: Ud
+ htmlBuilder: Ud,
+ mathmlBuilder: Vd
});
var Ql = (n) => {
var e = n.type === "ordgroup" && n.body.length ? n.body[0] : n;
return e.type === "atom" && (e.family === "bin" || e.family === "rel") ? "m" + e.family : "mord";
};
-K({
+Y({
type: "mclass",
names: ["\\@binrel"],
props: {
@@ -7041,12 +7041,12 @@ K({
type: "mclass",
mode: t.mode,
mclass: Ql(e[0]),
- body: rt(e[1]),
- isCharacterBox: ae.isCharacterBox(e[1])
+ body: tt(e[1]),
+ isCharacterBox: re.isCharacterBox(e[1])
};
}
});
-K({
+Y({
type: "mclass",
names: ["\\stackrel", "\\overset", "\\underset"],
props: {
@@ -7066,7 +7066,7 @@ K({
parentIsSupSub: !1,
symbol: !1,
suppressBaseShift: r !== "\\stackrel",
- body: rt(a)
+ body: tt(a)
}, o = {
type: "supsub",
mode: i.mode,
@@ -7079,13 +7079,13 @@ K({
mode: t.mode,
mclass: l,
body: [o],
- isCharacterBox: ae.isCharacterBox(o)
+ isCharacterBox: re.isCharacterBox(o)
};
},
- htmlBuilder: Hd,
- mathmlBuilder: Ud
+ htmlBuilder: Ud,
+ mathmlBuilder: Vd
});
-K({
+Y({
type: "pmb",
names: ["\\pmb"],
props: {
@@ -7100,11 +7100,11 @@ K({
type: "pmb",
mode: t.mode,
mclass: Ql(e[0]),
- body: rt(e[0])
+ body: tt(e[0])
};
},
htmlBuilder(n, e) {
- var t = vt(n.body, e, !0), r = N.makeSpan([n.mclass], t, e);
+ var t = gt(n.body, e, !0), r = R.makeSpan([n.mclass], t, e);
return r.style.textShadow = "0.02em 0.01em 0.04px", r;
},
mathmlBuilder(n, e) {
@@ -7112,7 +7112,7 @@ K({
return r.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), r;
}
});
-var q3 = {
+var P3 = {
">": "\\\\cdrightarrow",
"<": "\\\\cdleftarrow",
"=": "\\\\cdlongequal",
@@ -7120,14 +7120,14 @@ var q3 = {
V: "\\downarrow",
"|": "\\Vert",
".": "no arrow"
-}, ac = () => ({
+}, ic = () => ({
type: "styling",
body: [],
mode: "math",
style: "display"
-}), ic = (n) => n.type === "textord" && n.text === "@", P3 = (n, e) => (n.type === "mathord" || n.type === "atom") && n.text === e;
-function H3(n, e, t) {
- var r = q3[n];
+}), lc = (n) => n.type === "textord" && n.text === "@", H3 = (n, e) => (n.type === "mathord" || n.type === "atom") && n.text === e;
+function U3(n, e, t) {
+ var r = P3[n];
switch (r) {
case "\\\\cdrightarrow":
case "\\\\cdleftarrow":
@@ -7164,7 +7164,7 @@ function H3(n, e, t) {
};
}
}
-function U3(n) {
+function V3(n) {
var e = [];
for (n.gullet.beginGroup(), n.gullet.macros.set("\\cr", "\\\\\\relax"), n.gullet.beginGroup(); ; ) {
e.push(n.parseExpression(!1, "\\\\")), n.gullet.endGroup(), n.gullet.beginGroup();
@@ -7178,12 +7178,12 @@ function U3(n) {
throw new G("Expected \\\\ or \\cr or \\end", n.nextToken);
}
for (var r = [], a = [r], i = 0; i < e.length; i++) {
- for (var l = e[i], s = ac(), o = 0; o < l.length; o++)
- if (!ic(l[o]))
+ for (var l = e[i], s = ic(), o = 0; o < l.length; o++)
+ if (!lc(l[o]))
s.body.push(l[o]);
else {
r.push(s), o += 1;
- var u = Bu(l[o]).text, c = new Array(2);
+ var u = Iu(l[o]).text, c = new Array(2);
if (c[0] = {
type: "ordgroup",
mode: "math",
@@ -7195,11 +7195,11 @@ function U3(n) {
}, !("=|.".indexOf(u) > -1)) if ("<>AV".indexOf(u) > -1)
for (var d = 0; d < 2; d++) {
for (var h = !0, p = o + 1; p < l.length; p++) {
- if (P3(l[p], u)) {
+ if (H3(l[p], u)) {
h = !1, o = p;
break;
}
- if (ic(l[p]))
+ if (lc(l[p]))
throw new G("Missing a " + u + " character to complete a CD arrow.", l[p]);
c[d].body.push(l[p]);
}
@@ -7208,14 +7208,14 @@ function U3(n) {
}
else
throw new G('Expected one of "<>AV=|." after @', l[o]);
- var _ = H3(u, c, n), b = {
+ var _ = U3(u, c, n), b = {
type: "styling",
body: [_],
mode: "math",
style: "display"
// CD is always displaystyle.
};
- r.push(b), s = ac();
+ r.push(b), s = ic();
}
i % 2 === 0 ? r.push(s) : r.shift(), r = [], a.push(r);
}
@@ -7240,7 +7240,7 @@ function U3(n) {
hLinesBeforeRow: new Array(a.length + 1).fill([])
};
}
-K({
+Y({
type: "cdlabel",
names: ["\\\\cdleft", "\\\\cdright"],
props: {
@@ -7259,7 +7259,7 @@ K({
};
},
htmlBuilder(n, e) {
- var t = e.havingStyle(e.style.sup()), r = N.wrapFragment(Ee(n.label, t, e), e);
+ var t = e.havingStyle(e.style.sup()), r = R.wrapFragment(Se(n.label, t, e), e);
return r.classes.push("cd-label-" + n.side), r.style.bottom = X(0.8 - r.depth), r.height = 0, r.depth = 0, r;
},
mathmlBuilder(n, e) {
@@ -7267,7 +7267,7 @@ K({
return t = new U.MathNode("mpadded", [t]), t.setAttribute("width", "0"), n.side === "left" && t.setAttribute("lspace", "-1width"), t.setAttribute("voffset", "0.7em"), t = new U.MathNode("mstyle", [t]), t.setAttribute("displaystyle", "false"), t.setAttribute("scriptlevel", "1"), t;
}
});
-K({
+Y({
type: "cdlabelparent",
names: ["\\\\cdparent"],
props: {
@@ -7284,14 +7284,14 @@ K({
};
},
htmlBuilder(n, e) {
- var t = N.wrapFragment(Ee(n.fragment, e), e);
+ var t = R.wrapFragment(Se(n.fragment, e), e);
return t.classes.push("cd-vert-arrow"), t;
},
mathmlBuilder(n, e) {
return new U.MathNode("mrow", [Ie(n.fragment, e)]);
}
});
-K({
+Y({
type: "textord",
names: ["\\@char"],
props: {
@@ -7301,8 +7301,8 @@ K({
handler(n, e) {
for (var {
parser: t
- } = n, r = me(e[0], "ordgroup"), a = r.body, i = "", l = 0; l < a.length; l++) {
- var s = me(a[l], "textord");
+ } = n, r = pe(e[0], "ordgroup"), a = r.body, i = "", l = 0; l < a.length; l++) {
+ var s = pe(a[l], "textord");
i += s.text;
}
var o = parseInt(i), u;
@@ -7317,14 +7317,14 @@ K({
};
}
});
-var Vd = (n, e) => {
- var t = vt(n.body, e.withColor(n.color), !1);
- return N.makeFragment(t);
-}, Gd = (n, e) => {
+var Gd = (n, e) => {
+ var t = gt(n.body, e.withColor(n.color), !1);
+ return R.makeFragment(t);
+}, jd = (n, e) => {
var t = a0(n.body, e.withColor(n.color)), r = new U.MathNode("mstyle", t);
return r.setAttribute("mathcolor", n.color), r;
};
-K({
+Y({
type: "color",
names: ["\\textcolor"],
props: {
@@ -7335,18 +7335,18 @@ K({
handler(n, e) {
var {
parser: t
- } = n, r = me(e[0], "color-token").color, a = e[1];
+ } = n, r = pe(e[0], "color-token").color, a = e[1];
return {
type: "color",
mode: t.mode,
color: r,
- body: rt(a)
+ body: tt(a)
};
},
- htmlBuilder: Vd,
- mathmlBuilder: Gd
+ htmlBuilder: Gd,
+ mathmlBuilder: jd
});
-K({
+Y({
type: "color",
names: ["\\color"],
props: {
@@ -7358,7 +7358,7 @@ K({
var {
parser: t,
breakOnTokenText: r
- } = n, a = me(e[0], "color-token").color;
+ } = n, a = pe(e[0], "color-token").color;
t.gullet.macros.set("\\current@color", a);
var i = t.parseExpression(!0, r);
return {
@@ -7368,10 +7368,10 @@ K({
body: i
};
},
- htmlBuilder: Vd,
- mathmlBuilder: Gd
+ htmlBuilder: Gd,
+ mathmlBuilder: jd
});
-K({
+Y({
type: "cr",
names: ["\\\\"],
props: {
@@ -7387,13 +7387,13 @@ K({
type: "cr",
mode: r.mode,
newLine: i,
- size: a && me(a, "size").value
+ size: a && pe(a, "size").value
};
},
// The following builders are called only at the top level,
// not within tabular/array environments.
htmlBuilder(n, e) {
- var t = N.makeSpan(["mspace"], [], e);
+ var t = R.makeSpan(["mspace"], [], e);
return n.newLine && (t.classes.push("newline"), n.size && (t.style.marginTop = X(Ye(n.size, e)))), t;
},
mathmlBuilder(n, e) {
@@ -7401,7 +7401,7 @@ K({
return n.newLine && (t.setAttribute("linebreak", "newline"), n.size && t.setAttribute("height", X(Ye(n.size, e)))), t;
}
});
-var Qo = {
+var $o = {
"\\global": "\\global",
"\\long": "\\\\globallong",
"\\\\globallong": "\\\\globallong",
@@ -7411,15 +7411,15 @@ var Qo = {
"\\xdef": "\\xdef",
"\\let": "\\\\globallet",
"\\futurelet": "\\\\globalfuture"
-}, jd = (n) => {
+}, Wd = (n) => {
var e = n.text;
if (/^(?:[\\{}$^_]|EOF)$/.test(e))
throw new G("Expected a control sequence", n);
return e;
-}, V3 = (n) => {
+}, G3 = (n) => {
var e = n.gullet.popToken();
return e.text === "=" && (e = n.gullet.popToken(), e.text === " " && (e = n.gullet.popToken())), e;
-}, Wd = (n, e, t, r) => {
+}, Xd = (n, e, t, r) => {
var a = n.gullet.macros.get(t.text);
a == null && (t.noexpand = !0, a = {
tokens: [t],
@@ -7428,7 +7428,7 @@ var Qo = {
unexpandable: !n.gullet.isExpandable(t.text)
}), n.gullet.macros.set(e, a, r);
};
-K({
+Y({
type: "internal",
names: [
"\\global",
@@ -7447,12 +7447,12 @@ K({
} = n;
e.consumeSpaces();
var r = e.fetch();
- if (Qo[r.text])
- return (t === "\\global" || t === "\\\\globallong") && (r.text = Qo[r.text]), me(e.parseFunction(), "internal");
+ if ($o[r.text])
+ return (t === "\\global" || t === "\\\\globallong") && (r.text = $o[r.text]), pe(e.parseFunction(), "internal");
throw new G("Invalid token after macro prefix", r);
}
});
-K({
+Y({
type: "internal",
names: ["\\def", "\\gdef", "\\edef", "\\xdef"],
props: {
@@ -7490,13 +7490,13 @@ K({
tokens: o,
numArgs: i,
delimiters: s
- }, t === Qo[t]), {
+ }, t === $o[t]), {
type: "internal",
mode: e.mode
};
}
});
-K({
+Y({
type: "internal",
names: [
"\\let",
@@ -7512,16 +7512,16 @@ K({
var {
parser: e,
funcName: t
- } = n, r = jd(e.gullet.popToken());
+ } = n, r = Wd(e.gullet.popToken());
e.gullet.consumeSpaces();
- var a = V3(e);
- return Wd(e, r, a, t === "\\\\globallet"), {
+ var a = G3(e);
+ return Xd(e, r, a, t === "\\\\globallet"), {
type: "internal",
mode: e.mode
};
}
});
-K({
+Y({
type: "internal",
names: [
"\\futurelet",
@@ -7537,61 +7537,61 @@ K({
var {
parser: e,
funcName: t
- } = n, r = jd(e.gullet.popToken()), a = e.gullet.popToken(), i = e.gullet.popToken();
- return Wd(e, r, i, t === "\\\\globalfuture"), e.gullet.pushToken(i), e.gullet.pushToken(a), {
+ } = n, r = Wd(e.gullet.popToken()), a = e.gullet.popToken(), i = e.gullet.popToken();
+ return Xd(e, r, i, t === "\\\\globalfuture"), e.gullet.pushToken(i), e.gullet.pushToken(a), {
type: "internal",
mode: e.mode
};
}
});
var La = function(e, t, r) {
- var a = Ne.math[e] && Ne.math[e].replace, i = Tu(a || e, t, r);
+ var a = Ne.math[e] && Ne.math[e].replace, i = Cu(a || e, t, r);
if (!i)
throw new Error("Unsupported symbol " + e + " and font size " + t + ".");
return i;
-}, Lu = function(e, t, r, a) {
- var i = r.havingBaseStyle(t), l = N.makeSpan(a.concat(i.sizingClasses(r)), [e], r), s = i.sizeMultiplier / r.sizeMultiplier;
+}, Nu = function(e, t, r, a) {
+ var i = r.havingBaseStyle(t), l = R.makeSpan(a.concat(i.sizingClasses(r)), [e], r), s = i.sizeMultiplier / r.sizeMultiplier;
return l.height *= s, l.depth *= s, l.maxFontSize = i.sizeMultiplier, l;
-}, Xd = function(e, t, r) {
+}, Yd = function(e, t, r) {
var a = t.havingBaseStyle(r), i = (1 - t.sizeMultiplier / a.sizeMultiplier) * t.fontMetrics().axisHeight;
e.classes.push("delimcenter"), e.style.top = X(i), e.height -= i, e.depth += i;
-}, G3 = function(e, t, r, a, i, l) {
- var s = N.makeSymbol(e, "Main-Regular", i, a), o = Lu(s, t, a, l);
- return r && Xd(o, a, t), o;
-}, j3 = function(e, t, r, a) {
- return N.makeSymbol(e, "Size" + t + "-Regular", r, a);
-}, Yd = function(e, t, r, a, i, l) {
- var s = j3(e, t, i, a), o = Lu(N.makeSpan(["delimsizing", "size" + t], [s], a), le.TEXT, a, l);
- return r && Xd(o, a, le.TEXT), o;
+}, j3 = function(e, t, r, a, i, l) {
+ var s = R.makeSymbol(e, "Main-Regular", i, a), o = Nu(s, t, a, l);
+ return r && Yd(o, a, t), o;
+}, W3 = function(e, t, r, a) {
+ return R.makeSymbol(e, "Size" + t + "-Regular", r, a);
+}, Zd = function(e, t, r, a, i, l) {
+ var s = W3(e, t, i, a), o = Nu(R.makeSpan(["delimsizing", "size" + t], [s], a), ae.TEXT, a, l);
+ return r && Yd(o, a, ae.TEXT), o;
}, $s = function(e, t, r) {
var a;
t === "Size1-Regular" ? a = "delim-size1" : a = "delim-size4";
- var i = N.makeSpan(["delimsizinginner", a], [N.makeSpan([], [N.makeSymbol(e, t, r)])]);
+ var i = R.makeSpan(["delimsizinginner", a], [R.makeSpan([], [R.makeSymbol(e, t, r)])]);
return {
type: "elem",
elem: i
};
}, eo = function(e, t, r) {
- var a = ar["Size4-Regular"][e.charCodeAt(0)] ? ar["Size4-Regular"][e.charCodeAt(0)][4] : ar["Size1-Regular"][e.charCodeAt(0)][4], i = new un("inner", J5(e, Math.round(1e3 * t))), l = new Ir([i], {
+ var a = rr["Size4-Regular"][e.charCodeAt(0)] ? rr["Size4-Regular"][e.charCodeAt(0)][4] : rr["Size1-Regular"][e.charCodeAt(0)][4], i = new un("inner", Q5(e, Math.round(1e3 * t))), l = new Br([i], {
width: X(a),
height: X(t),
// Override CSS rule `.katex svg { width: 100% }`
style: "width:" + X(a),
viewBox: "0 0 " + 1e3 * a + " " + Math.round(1e3 * t),
preserveAspectRatio: "xMinYMin"
- }), s = N.makeSvgSpan([], [l], r);
+ }), s = R.makeSvgSpan([], [l], r);
return s.height = t, s.style.height = X(t), s.style.width = X(a), {
type: "elem",
elem: s
};
-}, $o = 8e-3, Vi = {
+}, eu = 8e-3, Vi = {
type: "kern",
- size: -1 * $o
-}, W3 = ["|", "\\lvert", "\\rvert", "\\vert"], X3 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Zd = function(e, t, r, a, i, l) {
+ size: -1 * eu
+}, X3 = ["|", "\\lvert", "\\rvert", "\\vert"], Y3 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Kd = function(e, t, r, a, i, l) {
var s, o, u, c, d = "", h = 0;
s = u = c = e, o = null;
var p = "Size1-Regular";
- e === "\\uparrow" ? u = c = "⏐" : e === "\\Uparrow" ? u = c = "‖" : e === "\\downarrow" ? s = u = "⏐" : e === "\\Downarrow" ? s = u = "‖" : e === "\\updownarrow" ? (s = "\\uparrow", u = "⏐", c = "\\downarrow") : e === "\\Updownarrow" ? (s = "\\Uparrow", u = "‖", c = "\\Downarrow") : ae.contains(W3, e) ? (u = "∣", d = "vert", h = 333) : ae.contains(X3, e) ? (u = "∥", d = "doublevert", h = 556) : e === "[" || e === "\\lbrack" ? (s = "⎡", u = "⎢", c = "⎣", p = "Size4-Regular", d = "lbrack", h = 667) : e === "]" || e === "\\rbrack" ? (s = "⎤", u = "⎥", c = "⎦", p = "Size4-Regular", d = "rbrack", h = 667) : e === "\\lfloor" || e === "⌊" ? (u = s = "⎢", c = "⎣", p = "Size4-Regular", d = "lfloor", h = 667) : e === "\\lceil" || e === "⌈" ? (s = "⎡", u = c = "⎢", p = "Size4-Regular", d = "lceil", h = 667) : e === "\\rfloor" || e === "⌋" ? (u = s = "⎥", c = "⎦", p = "Size4-Regular", d = "rfloor", h = 667) : e === "\\rceil" || e === "⌉" ? (s = "⎤", u = c = "⎥", p = "Size4-Regular", d = "rceil", h = 667) : e === "(" || e === "\\lparen" ? (s = "⎛", u = "⎜", c = "⎝", p = "Size4-Regular", d = "lparen", h = 875) : e === ")" || e === "\\rparen" ? (s = "⎞", u = "⎟", c = "⎠", p = "Size4-Regular", d = "rparen", h = 875) : e === "\\{" || e === "\\lbrace" ? (s = "⎧", o = "⎨", c = "⎩", u = "⎪", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (s = "⎫", o = "⎬", c = "⎭", u = "⎪", p = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (s = "⎧", c = "⎩", u = "⎪", p = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (s = "⎫", c = "⎭", u = "⎪", p = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (s = "⎧", c = "⎭", u = "⎪", p = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (s = "⎫", c = "⎩", u = "⎪", p = "Size4-Regular");
+ e === "\\uparrow" ? u = c = "⏐" : e === "\\Uparrow" ? u = c = "‖" : e === "\\downarrow" ? s = u = "⏐" : e === "\\Downarrow" ? s = u = "‖" : e === "\\updownarrow" ? (s = "\\uparrow", u = "⏐", c = "\\downarrow") : e === "\\Updownarrow" ? (s = "\\Uparrow", u = "‖", c = "\\Downarrow") : re.contains(X3, e) ? (u = "∣", d = "vert", h = 333) : re.contains(Y3, e) ? (u = "∥", d = "doublevert", h = 556) : e === "[" || e === "\\lbrack" ? (s = "⎡", u = "⎢", c = "⎣", p = "Size4-Regular", d = "lbrack", h = 667) : e === "]" || e === "\\rbrack" ? (s = "⎤", u = "⎥", c = "⎦", p = "Size4-Regular", d = "rbrack", h = 667) : e === "\\lfloor" || e === "⌊" ? (u = s = "⎢", c = "⎣", p = "Size4-Regular", d = "lfloor", h = 667) : e === "\\lceil" || e === "⌈" ? (s = "⎡", u = c = "⎢", p = "Size4-Regular", d = "lceil", h = 667) : e === "\\rfloor" || e === "⌋" ? (u = s = "⎥", c = "⎦", p = "Size4-Regular", d = "rfloor", h = 667) : e === "\\rceil" || e === "⌉" ? (s = "⎤", u = c = "⎥", p = "Size4-Regular", d = "rceil", h = 667) : e === "(" || e === "\\lparen" ? (s = "⎛", u = "⎜", c = "⎝", p = "Size4-Regular", d = "lparen", h = 875) : e === ")" || e === "\\rparen" ? (s = "⎞", u = "⎟", c = "⎠", p = "Size4-Regular", d = "rparen", h = 875) : e === "\\{" || e === "\\lbrace" ? (s = "⎧", o = "⎨", c = "⎩", u = "⎪", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (s = "⎫", o = "⎬", c = "⎭", u = "⎪", p = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (s = "⎧", c = "⎩", u = "⎪", p = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (s = "⎫", c = "⎭", u = "⎪", p = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (s = "⎧", c = "⎭", u = "⎪", p = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (s = "⎫", c = "⎩", u = "⎪", p = "Size4-Regular");
var _ = La(s, p, i), b = _.height + _.depth, D = La(u, p, i), y = D.height + D.depth, k = La(c, p, i), w = k.height + k.depth, E = 0, S = 1;
if (o !== null) {
var T = La(o, p, i);
@@ -7599,44 +7599,44 @@ var La = function(e, t, r) {
}
var C = b + w + E, F = Math.max(0, Math.ceil((t - C) / (S * y))), B = C + F * S * y, I = a.fontMetrics().axisHeight;
r && (I *= a.sizeMultiplier);
- var L = B / 2 - I, q = [];
+ var L = B / 2 - I, P = [];
if (d.length > 0) {
- var J = B - b - w, Y = Math.round(B * 1e3), H = Q5(d, Math.round(J * 1e3)), Q = new un(d, H), fe = (h / 1e3).toFixed(3) + "em", ue = (Y / 1e3).toFixed(3) + "em", De = new Ir([Q], {
- width: fe,
+ var Z = B - b - w, O = Math.round(B * 1e3), se = $5(d, Math.round(Z * 1e3)), K = new un(d, se), he = (h / 1e3).toFixed(3) + "em", ue = (O / 1e3).toFixed(3) + "em", Ae = new Br([K], {
+ width: he,
height: ue,
- viewBox: "0 0 " + h + " " + Y
- }), we = N.makeSvgSpan([], [De], a);
- we.height = Y / 1e3, we.style.width = fe, we.style.height = ue, q.push({
+ viewBox: "0 0 " + h + " " + O
+ }), ye = R.makeSvgSpan([], [Ae], a);
+ ye.height = O / 1e3, ye.style.width = he, ye.style.height = ue, P.push({
type: "elem",
- elem: we
+ elem: ye
});
} else {
- if (q.push($s(c, p, i)), q.push(Vi), o === null) {
- var te = B - b - w + 2 * $o;
- q.push(eo(u, te, a));
+ if (P.push($s(c, p, i)), P.push(Vi), o === null) {
+ var $ = B - b - w + 2 * eu;
+ P.push(eo(u, $, a));
} else {
- var de = (B - b - w - E) / 2 + 2 * $o;
- q.push(eo(u, de, a)), q.push(Vi), q.push($s(o, p, i)), q.push(Vi), q.push(eo(u, de, a));
+ var de = (B - b - w - E) / 2 + 2 * eu;
+ P.push(eo(u, de, a)), P.push(Vi), P.push($s(o, p, i)), P.push(Vi), P.push(eo(u, de, a));
}
- q.push(Vi), q.push($s(s, p, i));
+ P.push(Vi), P.push($s(s, p, i));
}
- var he = a.havingBaseStyle(le.TEXT), Ce = N.makeVList({
+ var ce = a.havingBaseStyle(ae.TEXT), Ce = R.makeVList({
positionType: "bottom",
positionData: L,
- children: q
- }, he);
- return Lu(N.makeSpan(["delimsizing", "mult"], [Ce], he), le.TEXT, a, l);
+ children: P
+ }, ce);
+ return Nu(R.makeSpan(["delimsizing", "mult"], [Ce], ce), ae.TEXT, a, l);
}, to = 80, ro = 0.08, no = function(e, t, r, a, i) {
- var l = K5(e, a, r), s = new un(e, l), o = new Ir([s], {
+ var l = J5(e, a, r), s = new un(e, l), o = new Br([s], {
// Note: 1000:1 ratio of viewBox to document em width.
width: "400em",
height: X(t),
viewBox: "0 0 400000 " + r,
preserveAspectRatio: "xMinYMin slice"
});
- return N.makeSvgSpan(["hide-tail"], [o], i);
-}, Y3 = function(e, t) {
- var r = t.havingBaseSizing(), a = $d("\\surd", e * r.sizeMultiplier, Qd, r), i = r.sizeMultiplier, l = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), s, o = 0, u = 0, c = 0, d;
+ return R.makeSvgSpan(["hide-tail"], [o], i);
+}, Z3 = function(e, t) {
+ var r = t.havingBaseSizing(), a = e4("\\surd", e * r.sizeMultiplier, $d, r), i = r.sizeMultiplier, l = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), s, o = 0, u = 0, c = 0, d;
return a.type === "small" ? (c = 1e3 + 1e3 * l + to, e < 1 ? i = 1 : e < 1.4 && (i = 0.7), o = (1 + l + ro) / i, u = (1 + l) / i, s = no("sqrtMain", o, c, l, t), s.style.minWidth = "0.853em", d = 0.833 / i) : a.type === "large" ? (c = (1e3 + to) * qa[a.size], u = (qa[a.size] + l) / i, o = (qa[a.size] + l + ro) / i, s = no("sqrtSize" + a.size, o, c, l, t), s.style.minWidth = "1.02em", d = 1 / i) : (o = e + l + ro, u = e + l, c = Math.floor(1e3 * e + l) + to, s = no("sqrtTall", o, c, l, t), s.style.minWidth = "0.742em", d = 1.056), s.height = u, s.style.height = X(o), {
span: s,
advanceWidth: d,
@@ -7646,21 +7646,21 @@ var La = function(e, t, r) {
// have thicker rules.
ruleWidth: (t.fontMetrics().sqrtRuleThickness + l) * i
};
-}, Kd = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], Z3 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Jd = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], qa = [0, 1.2, 1.8, 2.4, 3], K3 = function(e, t, r, a, i) {
- if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), ae.contains(Kd, e) || ae.contains(Jd, e))
- return Yd(e, t, !1, r, a, i);
- if (ae.contains(Z3, e))
- return Zd(e, qa[t], !1, r, a, i);
+}, Jd = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], K3 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Qd = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], qa = [0, 1.2, 1.8, 2.4, 3], J3 = function(e, t, r, a, i) {
+ if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), re.contains(Jd, e) || re.contains(Qd, e))
+ return Zd(e, t, !1, r, a, i);
+ if (re.contains(K3, e))
+ return Kd(e, qa[t], !1, r, a, i);
throw new G("Illegal delimiter: '" + e + "'");
-}, J3 = [{
+}, Q3 = [{
type: "small",
- style: le.SCRIPTSCRIPT
+ style: ae.SCRIPTSCRIPT
}, {
type: "small",
- style: le.SCRIPT
+ style: ae.SCRIPT
}, {
type: "small",
- style: le.TEXT
+ style: ae.TEXT
}, {
type: "large",
size: 1
@@ -7673,26 +7673,26 @@ var La = function(e, t, r) {
}, {
type: "large",
size: 4
-}], Q3 = [{
+}], $3 = [{
type: "small",
- style: le.SCRIPTSCRIPT
+ style: ae.SCRIPTSCRIPT
}, {
type: "small",
- style: le.SCRIPT
+ style: ae.SCRIPT
}, {
type: "small",
- style: le.TEXT
+ style: ae.TEXT
}, {
type: "stack"
-}], Qd = [{
+}], $d = [{
type: "small",
- style: le.SCRIPTSCRIPT
+ style: ae.SCRIPTSCRIPT
}, {
type: "small",
- style: le.SCRIPT
+ style: ae.SCRIPT
}, {
type: "small",
- style: le.TEXT
+ style: ae.TEXT
}, {
type: "large",
size: 1
@@ -7707,7 +7707,7 @@ var La = function(e, t, r) {
size: 4
}, {
type: "stack"
-}], $3 = function(e) {
+}], e6 = function(e) {
if (e.type === "small")
return "Main-Regular";
if (e.type === "large")
@@ -7715,9 +7715,9 @@ var La = function(e, t, r) {
if (e.type === "stack")
return "Size4-Regular";
throw new Error("Add support for delim type '" + e.type + "' here.");
-}, $d = function(e, t, r, a) {
+}, e4 = function(e, t, r, a) {
for (var i = Math.min(2, 3 - a.style.size), l = i; l < r.length && r[l].type !== "stack"; l++) {
- var s = La(e, $3(r[l]), "math"), o = s.height + s.depth;
+ var s = La(e, e6(r[l]), "math"), o = s.height + s.depth;
if (r[l].type === "small") {
var u = a.havingBaseStyle(r[l].style);
o *= u.sizeMultiplier;
@@ -7726,13 +7726,13 @@ var La = function(e, t, r) {
return r[l];
}
return r[r.length - 1];
-}, e4 = function(e, t, r, a, i, l) {
+}, t4 = function(e, t, r, a, i, l) {
e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
var s;
- ae.contains(Jd, e) ? s = J3 : ae.contains(Kd, e) ? s = Qd : s = Q3;
- var o = $d(e, t, s, a);
- return o.type === "small" ? G3(e, o.style, r, a, i, l) : o.type === "large" ? Yd(e, o.size, r, a, i, l) : Zd(e, t, r, a, i, l);
-}, e6 = function(e, t, r, a, i, l) {
+ re.contains(Qd, e) ? s = Q3 : re.contains(Jd, e) ? s = $d : s = $3;
+ var o = e4(e, t, s, a);
+ return o.type === "small" ? j3(e, o.style, r, a, i, l) : o.type === "large" ? Zd(e, o.size, r, a, i, l) : Kd(e, t, r, a, i, l);
+}, t6 = function(e, t, r, a, i, l) {
var s = a.fontMetrics().axisHeight * a.sizeMultiplier, o = 901, u = 5 / a.fontMetrics().ptPerEm, c = Math.max(t - s, r + s), d = Math.max(
// In real TeX, calculations are done using integral values which are
// 65536 per pt, or 655360 per em. So, the division here truncates in
@@ -7746,14 +7746,14 @@ var La = function(e, t, r) {
c / 500 * o,
2 * c - u
);
- return e4(e, d, !0, a, i, l);
+ return t4(e, d, !0, a, i, l);
}, Cr = {
- sqrtImage: Y3,
- sizedDelim: K3,
+ sqrtImage: Z3,
+ sizedDelim: J3,
sizeToMaxHeight: qa,
- customSizedDelim: e4,
- leftRightDelim: e6
-}, lc = {
+ customSizedDelim: t4,
+ leftRightDelim: t6
+}, sc = {
"\\bigl": {
mclass: "mopen",
size: 1
@@ -7818,14 +7818,14 @@ var La = function(e, t, r) {
mclass: "mord",
size: 4
}
-}, t6 = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
+}, r6 = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
function $l(n, e) {
var t = Jl(n);
- if (t && ae.contains(t6, t.text))
+ if (t && re.contains(r6, t.text))
return t;
throw t ? new G("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", n) : new G("Invalid delimiter type '" + n.type + "'", n);
}
-K({
+Y({
type: "delimsizing",
names: ["\\bigl", "\\Bigl", "\\biggl", "\\Biggl", "\\bigr", "\\Bigr", "\\biggr", "\\Biggr", "\\bigm", "\\Bigm", "\\biggm", "\\Biggm", "\\big", "\\Big", "\\bigg", "\\Bigg"],
props: {
@@ -7837,26 +7837,26 @@ K({
return {
type: "delimsizing",
mode: n.parser.mode,
- size: lc[n.funcName].size,
- mclass: lc[n.funcName].mclass,
+ size: sc[n.funcName].size,
+ mclass: sc[n.funcName].mclass,
delim: t.text
};
},
- htmlBuilder: (n, e) => n.delim === "." ? N.makeSpan([n.mclass]) : Cr.sizedDelim(n.delim, n.size, e, n.mode, [n.mclass]),
+ htmlBuilder: (n, e) => n.delim === "." ? R.makeSpan([n.mclass]) : Cr.sizedDelim(n.delim, n.size, e, n.mode, [n.mclass]),
mathmlBuilder: (n) => {
var e = [];
- n.delim !== "." && e.push(C0(n.delim, n.mode));
+ n.delim !== "." && e.push(T0(n.delim, n.mode));
var t = new U.MathNode("mo", e);
n.mclass === "mopen" || n.mclass === "mclose" ? t.setAttribute("fence", "true") : t.setAttribute("fence", "false"), t.setAttribute("stretchy", "true");
var r = X(Cr.sizeToMaxHeight[n.size]);
return t.setAttribute("minsize", r), t.setAttribute("maxsize", r), t;
}
});
-function sc(n) {
+function oc(n) {
if (!n.body)
throw new Error("Bug: The leftright ParseNode wasn't fully parsed.");
}
-K({
+Y({
type: "leftright-right",
names: ["\\right"],
props: {
@@ -7876,7 +7876,7 @@ K({
};
}
});
-K({
+Y({
type: "leftright",
names: ["\\left"],
props: {
@@ -7888,7 +7888,7 @@ K({
++r.leftrightDepth;
var a = r.parseExpression(!1);
--r.leftrightDepth, r.expect("\\right", !1);
- var i = me(r.parseFunction(), "leftright-right");
+ var i = pe(r.parseFunction(), "leftright-right");
return {
type: "leftright",
mode: r.mode,
@@ -7899,8 +7899,8 @@ K({
};
},
htmlBuilder: (n, e) => {
- sc(n);
- for (var t = vt(n.body, e, !0, ["mopen", "mclose"]), r = 0, a = 0, i = !1, l = 0; l < t.length; l++)
+ oc(n);
+ for (var t = gt(n.body, e, !0, ["mopen", "mclose"]), r = 0, a = 0, i = !1, l = 0; l < t.length; l++)
t[l].isMiddle ? i = !0 : (r = Math.max(t[l].height, r), a = Math.max(t[l].depth, a));
r *= e.sizeMultiplier, a *= e.sizeMultiplier;
var s;
@@ -7916,23 +7916,23 @@ K({
var h = n.rightColor ? e.withColor(n.rightColor) : e;
d = Cr.leftRightDelim(n.right, r, a, h, n.mode, ["mclose"]);
}
- return t.push(d), N.makeSpan(["minner"], t, e);
+ return t.push(d), R.makeSpan(["minner"], t, e);
},
mathmlBuilder: (n, e) => {
- sc(n);
+ oc(n);
var t = a0(n.body, e);
if (n.left !== ".") {
- var r = new U.MathNode("mo", [C0(n.left, n.mode)]);
+ var r = new U.MathNode("mo", [T0(n.left, n.mode)]);
r.setAttribute("fence", "true"), t.unshift(r);
}
if (n.right !== ".") {
- var a = new U.MathNode("mo", [C0(n.right, n.mode)]);
+ var a = new U.MathNode("mo", [T0(n.right, n.mode)]);
a.setAttribute("fence", "true"), n.rightColor && a.setAttribute("mathcolor", n.rightColor), t.push(a);
}
- return Mu(t);
+ return zu(t);
}
});
-K({
+Y({
type: "middle",
names: ["\\middle"],
props: {
@@ -7964,14 +7964,14 @@ K({
return t;
},
mathmlBuilder: (n, e) => {
- var t = n.delim === "\\vert" || n.delim === "|" ? C0("|", "text") : C0(n.delim, n.mode), r = new U.MathNode("mo", [t]);
+ var t = n.delim === "\\vert" || n.delim === "|" ? T0("|", "text") : T0(n.delim, n.mode), r = new U.MathNode("mo", [t]);
return r.setAttribute("fence", "true"), r.setAttribute("lspace", "0.05em"), r.setAttribute("rspace", "0.05em"), r;
}
});
-var Nu = (n, e) => {
- var t = N.wrapFragment(Ee(n.body, e), e), r = n.label.slice(1), a = e.sizeMultiplier, i, l = 0, s = ae.isCharacterBox(n.body);
+var Ru = (n, e) => {
+ var t = R.wrapFragment(Se(n.body, e), e), r = n.label.slice(1), a = e.sizeMultiplier, i, l = 0, s = re.isCharacterBox(n.body);
if (r === "sout")
- i = N.makeSpan(["stretchy", "sout"]), i.height = e.fontMetrics().defaultRuleThickness / a, l = -0.5 * e.fontMetrics().xHeight;
+ i = R.makeSpan(["stretchy", "sout"]), i.height = e.fontMetrics().defaultRuleThickness / a, l = -0.5 * e.fontMetrics().xHeight;
else if (r === "phase") {
var o = Ye({
number: 0.6,
@@ -7983,13 +7983,13 @@ var Nu = (n, e) => {
a = a / c.sizeMultiplier;
var d = t.height + t.depth + o + u;
t.style.paddingLeft = X(d / 2 + o);
- var h = Math.floor(1e3 * d * a), p = Y5(h), _ = new Ir([new un("phase", p)], {
+ var h = Math.floor(1e3 * d * a), p = Z5(h), _ = new Br([new un("phase", p)], {
width: "400em",
height: X(h / 1e3),
viewBox: "0 0 400000 " + h,
preserveAspectRatio: "xMinYMin slice"
});
- i = N.makeSvgSpan(["hide-tail"], [_], e), i.style.height = X(d), l = t.depth + o + u;
+ i = R.makeSvgSpan(["hide-tail"], [_], e), i.style.height = X(d), l = t.depth + o + u;
} else {
/cancel/.test(r) ? s || t.classes.push("cancel-pad") : r === "angl" ? t.classes.push("anglpad") : t.classes.push("boxpad");
var b = 0, D = 0, y = 0;
@@ -7998,11 +7998,11 @@ var Nu = (n, e) => {
// default
e.minRuleThickness
// User override.
- ), b = e.fontMetrics().fboxsep + (r === "colorbox" ? 0 : y), D = b) : r === "angl" ? (y = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), b = 4 * y, D = Math.max(0, 0.25 - t.depth)) : (b = s ? 0.2 : 0, D = b), i = Nr.encloseSpan(t, r, b, D, e), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth = X(y)) : r === "angl" && y !== 0.049 && (i.style.borderTopWidth = X(y), i.style.borderRightWidth = X(y)), l = t.depth + D, n.backgroundColor && (i.style.backgroundColor = n.backgroundColor, n.borderColor && (i.style.borderColor = n.borderColor));
+ ), b = e.fontMetrics().fboxsep + (r === "colorbox" ? 0 : y), D = b) : r === "angl" ? (y = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), b = 4 * y, D = Math.max(0, 0.25 - t.depth)) : (b = s ? 0.2 : 0, D = b), i = Lr.encloseSpan(t, r, b, D, e), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth = X(y)) : r === "angl" && y !== 0.049 && (i.style.borderTopWidth = X(y), i.style.borderRightWidth = X(y)), l = t.depth + D, n.backgroundColor && (i.style.backgroundColor = n.backgroundColor, n.borderColor && (i.style.borderColor = n.borderColor));
}
var k;
if (n.backgroundColor)
- k = N.makeVList({
+ k = R.makeVList({
positionType: "individualShift",
children: [
// Put the color background behind inner;
@@ -8020,7 +8020,7 @@ var Nu = (n, e) => {
}, e);
else {
var w = /cancel|phase/.test(r) ? ["svg-align"] : [];
- k = N.makeVList({
+ k = R.makeVList({
positionType: "individualShift",
children: [
// Write the \cancel stroke on top of inner.
@@ -8038,8 +8038,8 @@ var Nu = (n, e) => {
]
}, e);
}
- return /cancel/.test(r) && (k.height = t.height, k.depth = t.depth), /cancel/.test(r) && !s ? N.makeSpan(["mord", "cancel-lap"], [k], e) : N.makeSpan(["mord"], [k], e);
-}, Ru = (n, e) => {
+ return /cancel/.test(r) && (k.height = t.height, k.depth = t.depth), /cancel/.test(r) && !s ? R.makeSpan(["mord", "cancel-lap"], [k], e) : R.makeSpan(["mord"], [k], e);
+}, Ou = (n, e) => {
var t = 0, r = new U.MathNode(n.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Ie(n.body, e)]);
switch (n.label) {
case "\\cancel":
@@ -8078,7 +8078,7 @@ var Nu = (n, e) => {
}
return n.backgroundColor && r.setAttribute("mathbackground", n.backgroundColor), r;
};
-K({
+Y({
type: "enclose",
names: ["\\colorbox"],
props: {
@@ -8090,7 +8090,7 @@ K({
var {
parser: r,
funcName: a
- } = n, i = me(e[0], "color-token").color, l = e[1];
+ } = n, i = pe(e[0], "color-token").color, l = e[1];
return {
type: "enclose",
mode: r.mode,
@@ -8099,10 +8099,10 @@ K({
body: l
};
},
- htmlBuilder: Nu,
- mathmlBuilder: Ru
+ htmlBuilder: Ru,
+ mathmlBuilder: Ou
});
-K({
+Y({
type: "enclose",
names: ["\\fcolorbox"],
props: {
@@ -8114,7 +8114,7 @@ K({
var {
parser: r,
funcName: a
- } = n, i = me(e[0], "color-token").color, l = me(e[1], "color-token").color, s = e[2];
+ } = n, i = pe(e[0], "color-token").color, l = pe(e[1], "color-token").color, s = e[2];
return {
type: "enclose",
mode: r.mode,
@@ -8124,10 +8124,10 @@ K({
body: s
};
},
- htmlBuilder: Nu,
- mathmlBuilder: Ru
+ htmlBuilder: Ru,
+ mathmlBuilder: Ou
});
-K({
+Y({
type: "enclose",
names: ["\\fbox"],
props: {
@@ -8147,7 +8147,7 @@ K({
};
}
});
-K({
+Y({
type: "enclose",
names: ["\\cancel", "\\bcancel", "\\xcancel", "\\sout", "\\phase"],
props: {
@@ -8165,10 +8165,10 @@ K({
body: a
};
},
- htmlBuilder: Nu,
- mathmlBuilder: Ru
+ htmlBuilder: Ru,
+ mathmlBuilder: Ou
});
-K({
+Y({
type: "enclose",
names: ["\\angl"],
props: {
@@ -8188,8 +8188,8 @@ K({
};
}
});
-var t4 = {};
-function pr(n) {
+var r4 = {};
+function dr(n) {
for (var {
type: e,
names: t,
@@ -8204,14 +8204,14 @@ function pr(n) {
numOptionalArgs: 0,
handler: a
}, o = 0; o < t.length; ++o)
- t4[t[o]] = s;
+ r4[t[o]] = s;
i && (Cl[e] = i), l && (Fl[e] = l);
}
-var r4 = {};
+var n4 = {};
function v(n, e) {
- r4[n] = e;
+ n4[n] = e;
}
-function oc(n) {
+function uc(n) {
var e = [];
n.consumeSpaces();
var t = n.fetch().text;
@@ -8224,7 +8224,7 @@ var es = (n) => {
if (!e.displayMode)
throw new G("{" + n.envName + "} can be used only in display mode.");
};
-function Ou(n) {
+function qu(n) {
if (n.indexOf("ed") === -1)
return n.indexOf("*") === -1;
}
@@ -8254,9 +8254,9 @@ function dn(n, e, t) {
o && n.gullet.macros.set("\\@eqnsw", "1", !0);
}
function E() {
- k && (n.gullet.macros.get("\\df@tag") ? (k.push(n.subparse([new x0("\\df@tag")])), n.gullet.macros.set("\\df@tag", void 0, !0)) : k.push(!!o && n.gullet.macros.get("\\@eqnsw") === "1"));
+ k && (n.gullet.macros.get("\\df@tag") ? (k.push(n.subparse([new S0("\\df@tag")])), n.gullet.macros.set("\\df@tag", void 0, !0)) : k.push(!!o && n.gullet.macros.get("\\@eqnsw") === "1"));
}
- for (w(), y.push(oc(n)); ; ) {
+ for (w(), y.push(uc(n)); ; ) {
var S = n.parseExpression(!1, u ? "\\end" : "\\\\");
n.gullet.endGroup(), n.gullet.beginGroup(), S = {
type: "ordgroup",
@@ -8282,7 +8282,7 @@ function dn(n, e, t) {
} else if (T === "\\\\") {
n.consume();
var C = void 0;
- n.gullet.future().text !== " " && (C = n.parseSizeGroup(!0)), D.push(C ? C.value : null), E(), y.push(oc(n)), _ = [], b.push(_), w();
+ n.gullet.future().text !== " " && (C = n.parseSizeGroup(!0)), D.push(C ? C.value : null), E(), y.push(uc(n)), _ = [], b.push(_), w();
} else
throw new G("Expected & or \\\\ or \\cr or \\end", n.nextToken);
}
@@ -8301,10 +8301,10 @@ function dn(n, e, t) {
leqno: h
};
}
-function qu(n) {
+function Pu(n) {
return n.slice(0, 1) === "d" ? "display" : "text";
}
-var gr = function(e, t) {
+var mr = function(e, t) {
var r, a, i = e.body.length, l = e.hLinesBeforeRow, s = 0, o = new Array(i), u = [], c = Math.max(
// From LaTeX \showthe\arrayrulewidth. Equals 0.04 em.
t.fontMetrics().arrayRuleWidth,
@@ -8312,18 +8312,18 @@ var gr = function(e, t) {
// User override.
), d = 1 / t.fontMetrics().ptPerEm, h = 5 * d;
if (e.colSeparationType && e.colSeparationType === "small") {
- var p = t.havingStyle(le.SCRIPT).sizeMultiplier;
+ var p = t.havingStyle(ae.SCRIPT).sizeMultiplier;
h = 0.2778 * (p / t.sizeMultiplier);
}
var _ = e.colSeparationType === "CD" ? Ye({
number: 3,
unit: "ex"
}, t) : 12 * d, b = 3 * d, D = e.arraystretch * _, y = 0.7 * D, k = 0.3 * D, w = 0;
- function E(qt) {
- for (var R = 0; R < qt.length; ++R)
- R > 0 && (w += 0.25), u.push({
+ function E(Ot) {
+ for (var qt = 0; qt < Ot.length; ++qt)
+ qt > 0 && (w += 0.25), u.push({
pos: w,
- isDashed: qt[R]
+ isDashed: Ot[qt]
});
}
for (E(l[0]), r = 0; r < e.body.length; ++r) {
@@ -8331,94 +8331,94 @@ var gr = function(e, t) {
s < S.length && (s = S.length);
var F = new Array(S.length);
for (a = 0; a < S.length; ++a) {
- var B = Ee(S[a], t);
+ var B = Se(S[a], t);
C < B.depth && (C = B.depth), T < B.height && (T = B.height), F[a] = B;
}
var I = e.rowGaps[r], L = 0;
I && (L = Ye(I, t), L > 0 && (L += k, C < L && (C = L), L = 0)), e.addJot && (C += b), F.height = T, F.depth = C, w += T, F.pos = w, w += C + L, o[r] = F, E(l[r + 1]);
}
- var q = w / 2 + t.fontMetrics().axisHeight, J = e.cols || [], Y = [], H, Q, fe = [];
- if (e.tags && e.tags.some((qt) => qt))
+ var P = w / 2 + t.fontMetrics().axisHeight, Z = e.cols || [], O = [], se, K, he = [];
+ if (e.tags && e.tags.some((Ot) => Ot))
for (r = 0; r < i; ++r) {
- var ue = o[r], De = ue.pos - q, we = e.tags[r], te = void 0;
- we === !0 ? te = N.makeSpan(["eqn-num"], [], t) : we === !1 ? te = N.makeSpan([], [], t) : te = N.makeSpan([], vt(we, t, !0), t), te.depth = ue.depth, te.height = ue.height, fe.push({
+ var ue = o[r], Ae = ue.pos - P, ye = e.tags[r], $ = void 0;
+ ye === !0 ? $ = R.makeSpan(["eqn-num"], [], t) : ye === !1 ? $ = R.makeSpan([], [], t) : $ = R.makeSpan([], gt(ye, t, !0), t), $.depth = ue.depth, $.height = ue.height, he.push({
type: "elem",
- elem: te,
- shift: De
+ elem: $,
+ shift: Ae
});
}
for (
- a = 0, Q = 0;
+ a = 0, K = 0;
// Continue while either there are more columns or more column
// descriptions, so trailing separators don't get lost.
- a < s || Q < J.length;
- ++a, ++Q
+ a < s || K < Z.length;
+ ++a, ++K
) {
- for (var de = J[Q] || {}, he = !0; de.type === "separator"; ) {
- if (he || (H = N.makeSpan(["arraycolsep"], []), H.style.width = X(t.fontMetrics().doubleRuleSep), Y.push(H)), de.separator === "|" || de.separator === ":") {
- var Ce = de.separator === "|" ? "solid" : "dashed", V = N.makeSpan(["vertical-separator"], [], t);
+ for (var de = Z[K] || {}, ce = !0; de.type === "separator"; ) {
+ if (ce || (se = R.makeSpan(["arraycolsep"], []), se.style.width = X(t.fontMetrics().doubleRuleSep), O.push(se)), de.separator === "|" || de.separator === ":") {
+ var Ce = de.separator === "|" ? "solid" : "dashed", V = R.makeSpan(["vertical-separator"], [], t);
V.style.height = X(w), V.style.borderRightWidth = X(c), V.style.borderRightStyle = Ce, V.style.margin = "0 " + X(-c / 2);
- var j = w - q;
- j && (V.style.verticalAlign = X(-j)), Y.push(V);
+ var j = w - P;
+ j && (V.style.verticalAlign = X(-j)), O.push(V);
} else
throw new G("Invalid separator type: " + de.separator);
- Q++, de = J[Q] || {}, he = !1;
+ K++, de = Z[K] || {}, ce = !1;
}
if (!(a >= s)) {
- var pe = void 0;
- (a > 0 || e.hskipBeforeAndAfter) && (pe = ae.deflt(de.pregap, h), pe !== 0 && (H = N.makeSpan(["arraycolsep"], []), H.style.width = X(pe), Y.push(H)));
- var ye = [];
+ var ge = void 0;
+ (a > 0 || e.hskipBeforeAndAfter) && (ge = re.deflt(de.pregap, h), ge !== 0 && (se = R.makeSpan(["arraycolsep"], []), se.style.width = X(ge), O.push(se)));
+ var ke = [];
for (r = 0; r < i; ++r) {
var Te = o[r], ze = Te[a];
if (ze) {
- var Le = Te.pos - q;
- ze.depth = Te.depth, ze.height = Te.height, ye.push({
+ var Le = Te.pos - P;
+ ze.depth = Te.depth, ze.height = Te.height, ke.push({
type: "elem",
elem: ze,
shift: Le
});
}
}
- ye = N.makeVList({
+ ke = R.makeVList({
positionType: "individualShift",
- children: ye
- }, t), ye = N.makeSpan(["col-align-" + (de.align || "c")], [ye]), Y.push(ye), (a < s - 1 || e.hskipBeforeAndAfter) && (pe = ae.deflt(de.postgap, h), pe !== 0 && (H = N.makeSpan(["arraycolsep"], []), H.style.width = X(pe), Y.push(H)));
+ children: ke
+ }, t), ke = R.makeSpan(["col-align-" + (de.align || "c")], [ke]), O.push(ke), (a < s - 1 || e.hskipBeforeAndAfter) && (ge = re.deflt(de.postgap, h), ge !== 0 && (se = R.makeSpan(["arraycolsep"], []), se.style.width = X(ge), O.push(se)));
}
}
- if (o = N.makeSpan(["mtable"], Y), u.length > 0) {
- for (var Ge = N.makeLineSpan("hline", t, c), ht = N.makeLineSpan("hdashline", t, c), je = [{
+ if (o = R.makeSpan(["mtable"], O), u.length > 0) {
+ for (var je = R.makeLineSpan("hline", t, c), ft = R.makeLineSpan("hdashline", t, c), We = [{
type: "elem",
elem: o,
shift: 0
}]; u.length > 0; ) {
- var Oe = u.pop(), qe = Oe.pos - q;
- Oe.isDashed ? je.push({
+ var qe = u.pop(), Pe = qe.pos - P;
+ qe.isDashed ? We.push({
type: "elem",
- elem: ht,
- shift: qe
- }) : je.push({
+ elem: ft,
+ shift: Pe
+ }) : We.push({
type: "elem",
- elem: Ge,
- shift: qe
+ elem: je,
+ shift: Pe
});
}
- o = N.makeVList({
+ o = R.makeVList({
positionType: "individualShift",
- children: je
+ children: We
}, t);
}
- if (fe.length === 0)
- return N.makeSpan(["mord"], [o], t);
- var st = N.makeVList({
+ if (he.length === 0)
+ return R.makeSpan(["mord"], [o], t);
+ var lt = R.makeVList({
positionType: "individualShift",
- children: fe
+ children: he
}, t);
- return st = N.makeSpan(["tag"], [st], t), N.makeFragment([o, st]);
-}, r6 = {
+ return lt = R.makeSpan(["tag"], [lt], t), R.makeFragment([o, lt]);
+}, n6 = {
c: "center ",
l: "left ",
r: "right "
-}, _r = function(e, t) {
+}, pr = function(e, t) {
for (var r = [], a = new U.MathNode("mtd", [], ["mtr-glue"]), i = new U.MathNode("mtd", [], ["mml-eqn-num"]), l = 0; l < e.body.length; l++) {
for (var s = e.body[l], o = [], u = 0; u < s.length; u++)
o.push(new U.MathNode("mtd", [Ie(s[u], t)]));
@@ -8431,7 +8431,7 @@ var gr = function(e, t) {
var _ = e.cols, b = "", D = !1, y = 0, k = _.length;
_[0].type === "separator" && (h += "top ", y = 1), _[_.length - 1].type === "separator" && (h += "bottom ", k -= 1);
for (var w = y; w < k; w++)
- _[w].type === "align" ? (p += r6[_[w].align], D && (b += "none "), D = !0) : _[w].type === "separator" && D && (b += _[w].separator === "|" ? "solid " : "dashed ", D = !1);
+ _[w].type === "align" ? (p += n6[_[w].align], D && (b += "none "), D = !0) : _[w].type === "separator" && D && (b += _[w].separator === "|" ? "solid " : "dashed ", D = !1);
c.setAttribute("columnalign", p.trim()), /[sd]/.test(b) && c.setAttribute("columnlines", b.trim());
}
if (e.colSeparationType === "align") {
@@ -8444,12 +8444,12 @@ var gr = function(e, t) {
for (var B = 1; B < F.length - 1; B++)
C += F[B].length === 0 ? "none " : F[B][0] ? "dashed " : "solid ";
return /[sd]/.test(C) && c.setAttribute("rowlines", C.trim()), h !== "" && (c = new U.MathNode("menclose", [c]), c.setAttribute("notation", h.trim())), e.arraystretch && e.arraystretch < 1 && (c = new U.MathNode("mstyle", [c]), c.setAttribute("scriptlevel", "1")), c;
-}, n4 = function(e, t) {
+}, a4 = function(e, t) {
e.envName.indexOf("ed") === -1 && es(e);
var r = [], a = e.envName.indexOf("at") > -1 ? "alignat" : "align", i = e.envName === "split", l = dn(e.parser, {
cols: r,
addJot: !0,
- autoTag: i ? void 0 : Ou(e.envName),
+ autoTag: i ? void 0 : qu(e.envName),
emptySingleRow: !0,
colSeparationType: a,
maxNumCols: i ? 2 : void 0,
@@ -8461,7 +8461,7 @@ var gr = function(e, t) {
};
if (t[0] && t[0].type === "ordgroup") {
for (var c = "", d = 0; d < t[0].body.length; d++) {
- var h = me(t[0].body[d], "textord");
+ var h = pe(t[0].body[d], "textord");
c += h.text;
}
s = Number(c), o = s * 2;
@@ -8469,7 +8469,7 @@ var gr = function(e, t) {
var p = !o;
l.body.forEach(function(y) {
for (var k = 1; k < y.length; k += 2) {
- var w = me(y[k], "styling"), E = me(w.body[0], "ordgroup");
+ var w = pe(y[k], "styling"), E = pe(w.body[0], "ordgroup");
E.body.unshift(u);
}
if (p)
@@ -8491,15 +8491,15 @@ var gr = function(e, t) {
}
return l.colSeparationType = p ? "align" : "alignat", l;
};
-pr({
+dr({
type: "array",
names: ["array", "darray"],
props: {
numArgs: 1
},
handler(n, e) {
- var t = Jl(e[0]), r = t ? [e[0]] : me(e[0], "ordgroup").body, a = r.map(function(l) {
- var s = Bu(l), o = s.text;
+ var t = Jl(e[0]), r = t ? [e[0]] : pe(e[0], "ordgroup").body, a = r.map(function(l) {
+ var s = Iu(l), o = s.text;
if ("lcr".indexOf(o) !== -1)
return {
type: "align",
@@ -8522,12 +8522,12 @@ pr({
// \@preamble in lttab.dtx
maxNumCols: a.length
};
- return dn(n.parser, i, qu(n.envName));
+ return dn(n.parser, i, Pu(n.envName));
},
- htmlBuilder: gr,
- mathmlBuilder: _r
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["matrix", "pmatrix", "bmatrix", "Bmatrix", "vmatrix", "Vmatrix", "matrix*", "pmatrix*", "bmatrix*", "Bmatrix*", "vmatrix*", "Vmatrix*"],
props: {
@@ -8559,7 +8559,7 @@ pr({
}];
}
}
- var i = dn(n.parser, r, qu(n.envName)), l = Math.max(0, ...i.body.map((s) => s.length));
+ var i = dn(n.parser, r, Pu(n.envName)), l = Math.max(0, ...i.body.map((s) => s.length));
return i.cols = new Array(l).fill({
type: "align",
align: t
@@ -8573,10 +8573,10 @@ pr({
// \right uninfluenced by \color in array
} : i;
},
- htmlBuilder: gr,
- mathmlBuilder: _r
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["smallmatrix"],
props: {
@@ -8588,18 +8588,18 @@ pr({
}, t = dn(n.parser, e, "script");
return t.colSeparationType = "small", t;
},
- htmlBuilder: gr,
- mathmlBuilder: _r
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["subarray"],
props: {
numArgs: 1
},
handler(n, e) {
- var t = Jl(e[0]), r = t ? [e[0]] : me(e[0], "ordgroup").body, a = r.map(function(l) {
- var s = Bu(l), o = s.text;
+ var t = Jl(e[0]), r = t ? [e[0]] : pe(e[0], "ordgroup").body, a = r.map(function(l) {
+ var s = Iu(l), o = s.text;
if ("lc".indexOf(o) !== -1)
return {
type: "align",
@@ -8618,10 +8618,10 @@ pr({
throw new G("{subarray} can contain only one column");
return i;
},
- htmlBuilder: gr,
- mathmlBuilder: _r
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["cases", "dcases", "rcases", "drcases"],
props: {
@@ -8646,7 +8646,7 @@ pr({
pregap: 0,
postgap: 0
}]
- }, t = dn(n.parser, e, qu(n.envName));
+ }, t = dn(n.parser, e, Pu(n.envName));
return {
type: "leftright",
mode: n.mode,
@@ -8656,27 +8656,27 @@ pr({
rightColor: void 0
};
},
- htmlBuilder: gr,
- mathmlBuilder: _r
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["align", "align*", "aligned", "split"],
props: {
numArgs: 0
},
- handler: n4,
- htmlBuilder: gr,
- mathmlBuilder: _r
+ handler: a4,
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["gathered", "gather", "gather*"],
props: {
numArgs: 0
},
handler(n) {
- ae.contains(["gather", "gather*"], n.envName) && es(n);
+ re.contains(["gather", "gather*"], n.envName) && es(n);
var e = {
cols: [{
type: "align",
@@ -8684,26 +8684,26 @@ pr({
}],
addJot: !0,
colSeparationType: "gather",
- autoTag: Ou(n.envName),
+ autoTag: qu(n.envName),
emptySingleRow: !0,
leqno: n.parser.settings.leqno
};
return dn(n.parser, e, "display");
},
- htmlBuilder: gr,
- mathmlBuilder: _r
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["alignat", "alignat*", "alignedat"],
props: {
numArgs: 1
},
- handler: n4,
- htmlBuilder: gr,
- mathmlBuilder: _r
+ handler: a4,
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["equation", "equation*"],
props: {
@@ -8712,7 +8712,7 @@ pr({
handler(n) {
es(n);
var e = {
- autoTag: Ou(n.envName),
+ autoTag: qu(n.envName),
emptySingleRow: !0,
singleRow: !0,
maxNumCols: 1,
@@ -8720,24 +8720,24 @@ pr({
};
return dn(n.parser, e, "display");
},
- htmlBuilder: gr,
- mathmlBuilder: _r
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
-pr({
+dr({
type: "array",
names: ["CD"],
props: {
numArgs: 0
},
handler(n) {
- return es(n), U3(n.parser);
+ return es(n), V3(n.parser);
},
- htmlBuilder: gr,
- mathmlBuilder: _r
+ htmlBuilder: mr,
+ mathmlBuilder: pr
});
v("\\nonumber", "\\gdef\\@eqnsw{0}");
v("\\notag", "\\nonumber");
-K({
+Y({
type: "text",
// Doesn't matter what this is.
names: ["\\hline", "\\hdashline"],
@@ -8750,8 +8750,8 @@ K({
throw new G(n.funcName + " valid only within array environment");
}
});
-var uc = t4;
-K({
+var cc = r4;
+Y({
type: "environment",
names: ["\\begin", "\\end"],
props: {
@@ -8766,11 +8766,11 @@ K({
if (a.type !== "ordgroup")
throw new G("Invalid environment name", a);
for (var i = "", l = 0; l < a.body.length; ++l)
- i += me(a.body[l], "textord").text;
+ i += pe(a.body[l], "textord").text;
if (r === "\\begin") {
- if (!uc.hasOwnProperty(i))
+ if (!cc.hasOwnProperty(i))
throw new G("No such environment: " + i, a);
- var s = uc[i], {
+ var s = cc[i], {
args: o,
optArgs: u
} = t.parseArguments("\\begin{" + i + "}", s), c = {
@@ -8779,7 +8779,7 @@ K({
parser: t
}, d = s.handler(c, o, u);
t.expect("\\end", !1);
- var h = t.nextToken, p = me(t.parseFunction(), "environment");
+ var h = t.nextToken, p = pe(t.parseFunction(), "environment");
if (p.name !== i)
throw new G("Mismatch: \\begin{" + i + "} matched by \\end{" + p.name + "}", h);
return d;
@@ -8792,19 +8792,19 @@ K({
};
}
});
-var a4 = (n, e) => {
+var i4 = (n, e) => {
var t = n.font, r = e.withFont(t);
- return Ee(n.body, r);
-}, i4 = (n, e) => {
+ return Se(n.body, r);
+}, l4 = (n, e) => {
var t = n.font, r = e.withFont(t);
return Ie(n.body, r);
-}, cc = {
+}, fc = {
"\\Bbb": "\\mathbb",
"\\bold": "\\mathbf",
"\\frak": "\\mathfrak",
"\\bm": "\\boldsymbol"
};
-K({
+Y({
type: "font",
names: [
// styles, except \boldsymbol defined below
@@ -8833,17 +8833,17 @@ K({
parser: t,
funcName: r
} = n, a = Ml(e[0]), i = r;
- return i in cc && (i = cc[i]), {
+ return i in fc && (i = fc[i]), {
type: "font",
mode: t.mode,
font: i.slice(1),
body: a
};
},
- htmlBuilder: a4,
- mathmlBuilder: i4
+ htmlBuilder: i4,
+ mathmlBuilder: l4
});
-K({
+Y({
type: "mclass",
names: ["\\boldsymbol", "\\bm"],
props: {
@@ -8852,7 +8852,7 @@ K({
handler: (n, e) => {
var {
parser: t
- } = n, r = e[0], a = ae.isCharacterBox(r);
+ } = n, r = e[0], a = re.isCharacterBox(r);
return {
type: "mclass",
mode: t.mode,
@@ -8867,7 +8867,7 @@ K({
};
}
});
-K({
+Y({
type: "font",
names: ["\\rm", "\\sf", "\\tt", "\\bf", "\\it", "\\cal"],
props: {
@@ -8893,31 +8893,31 @@ K({
}
};
},
- htmlBuilder: a4,
- mathmlBuilder: i4
+ htmlBuilder: i4,
+ mathmlBuilder: l4
});
-var l4 = (n, e) => {
+var s4 = (n, e) => {
var t = e;
- return n === "display" ? t = t.id >= le.SCRIPT.id ? t.text() : le.DISPLAY : n === "text" && t.size === le.DISPLAY.size ? t = le.TEXT : n === "script" ? t = le.SCRIPT : n === "scriptscript" && (t = le.SCRIPTSCRIPT), t;
-}, Pu = (n, e) => {
- var t = l4(n.size, e.style), r = t.fracNum(), a = t.fracDen(), i;
+ return n === "display" ? t = t.id >= ae.SCRIPT.id ? t.text() : ae.DISPLAY : n === "text" && t.size === ae.DISPLAY.size ? t = ae.TEXT : n === "script" ? t = ae.SCRIPT : n === "scriptscript" && (t = ae.SCRIPTSCRIPT), t;
+}, Hu = (n, e) => {
+ var t = s4(n.size, e.style), r = t.fracNum(), a = t.fracDen(), i;
i = e.havingStyle(r);
- var l = Ee(n.numer, i, e);
+ var l = Se(n.numer, i, e);
if (n.continued) {
var s = 8.5 / e.fontMetrics().ptPerEm, o = 3.5 / e.fontMetrics().ptPerEm;
l.height = l.height < s ? s : l.height, l.depth = l.depth < o ? o : l.depth;
}
i = e.havingStyle(a);
- var u = Ee(n.denom, i, e), c, d, h;
- n.hasBarLine ? (n.barSize ? (d = Ye(n.barSize, e), c = N.makeLineSpan("frac-line", e, d)) : c = N.makeLineSpan("frac-line", e), d = c.height, h = c.height) : (c = null, d = 0, h = e.fontMetrics().defaultRuleThickness);
+ var u = Se(n.denom, i, e), c, d, h;
+ n.hasBarLine ? (n.barSize ? (d = Ye(n.barSize, e), c = R.makeLineSpan("frac-line", e, d)) : c = R.makeLineSpan("frac-line", e), d = c.height, h = c.height) : (c = null, d = 0, h = e.fontMetrics().defaultRuleThickness);
var p, _, b;
- t.size === le.DISPLAY.size || n.size === "display" ? (p = e.fontMetrics().num1, d > 0 ? _ = 3 * h : _ = 7 * h, b = e.fontMetrics().denom1) : (d > 0 ? (p = e.fontMetrics().num2, _ = h) : (p = e.fontMetrics().num3, _ = 3 * h), b = e.fontMetrics().denom2);
+ t.size === ae.DISPLAY.size || n.size === "display" ? (p = e.fontMetrics().num1, d > 0 ? _ = 3 * h : _ = 7 * h, b = e.fontMetrics().denom1) : (d > 0 ? (p = e.fontMetrics().num2, _ = h) : (p = e.fontMetrics().num3, _ = 3 * h), b = e.fontMetrics().denom2);
var D;
if (c) {
var k = e.fontMetrics().axisHeight;
p - l.depth - (k + 0.5 * d) < _ && (p += _ - (p - l.depth - (k + 0.5 * d))), k - 0.5 * d - (u.height - b) < _ && (b += _ - (k - 0.5 * d - (u.height - b)));
var w = -(k - 0.5 * d);
- D = N.makeVList({
+ D = R.makeVList({
positionType: "individualShift",
children: [{
type: "elem",
@@ -8935,7 +8935,7 @@ var l4 = (n, e) => {
}, e);
} else {
var y = p - l.depth - (u.height - b);
- y < _ && (p += 0.5 * (_ - y), b += 0.5 * (_ - y)), D = N.makeVList({
+ y < _ && (p += 0.5 * (_ - y), b += 0.5 * (_ - y)), D = R.makeVList({
positionType: "individualShift",
children: [{
type: "elem",
@@ -8950,10 +8950,10 @@ var l4 = (n, e) => {
}
i = e.havingStyle(t), D.height *= i.sizeMultiplier / e.sizeMultiplier, D.depth *= i.sizeMultiplier / e.sizeMultiplier;
var E;
- t.size === le.DISPLAY.size ? E = e.fontMetrics().delim1 : t.size === le.SCRIPTSCRIPT.size ? E = e.havingStyle(le.SCRIPT).fontMetrics().delim2 : E = e.fontMetrics().delim2;
+ t.size === ae.DISPLAY.size ? E = e.fontMetrics().delim1 : t.size === ae.SCRIPTSCRIPT.size ? E = e.havingStyle(ae.SCRIPT).fontMetrics().delim2 : E = e.fontMetrics().delim2;
var S, T;
- return n.leftDelim == null ? S = Ya(e, ["mopen"]) : S = Cr.customSizedDelim(n.leftDelim, E, !0, e.havingStyle(t), n.mode, ["mopen"]), n.continued ? T = N.makeSpan([]) : n.rightDelim == null ? T = Ya(e, ["mclose"]) : T = Cr.customSizedDelim(n.rightDelim, E, !0, e.havingStyle(t), n.mode, ["mclose"]), N.makeSpan(["mord"].concat(i.sizingClasses(e)), [S, N.makeSpan(["mfrac"], [D]), T], e);
-}, Hu = (n, e) => {
+ return n.leftDelim == null ? S = Ya(e, ["mopen"]) : S = Cr.customSizedDelim(n.leftDelim, E, !0, e.havingStyle(t), n.mode, ["mopen"]), n.continued ? T = R.makeSpan([]) : n.rightDelim == null ? T = Ya(e, ["mclose"]) : T = Cr.customSizedDelim(n.rightDelim, E, !0, e.havingStyle(t), n.mode, ["mclose"]), R.makeSpan(["mord"].concat(i.sizingClasses(e)), [S, R.makeSpan(["mfrac"], [D]), T], e);
+}, Uu = (n, e) => {
var t = new U.MathNode("mfrac", [Ie(n.numer, e), Ie(n.denom, e)]);
if (!n.hasBarLine)
t.setAttribute("linethickness", "0px");
@@ -8961,10 +8961,10 @@ var l4 = (n, e) => {
var r = Ye(n.barSize, e);
t.setAttribute("linethickness", X(r));
}
- var a = l4(n.size, e.style);
+ var a = s4(n.size, e.style);
if (a.size !== e.style.size) {
t = new U.MathNode("mstyle", [t]);
- var i = a.size === le.DISPLAY.size ? "true" : "false";
+ var i = a.size === ae.DISPLAY.size ? "true" : "false";
t.setAttribute("displaystyle", i), t.setAttribute("scriptlevel", "0");
}
if (n.leftDelim != null || n.rightDelim != null) {
@@ -8977,11 +8977,11 @@ var l4 = (n, e) => {
var o = new U.MathNode("mo", [new U.TextNode(n.rightDelim.replace("\\", ""))]);
o.setAttribute("fence", "true"), l.push(o);
}
- return Mu(l);
+ return zu(l);
}
return t;
};
-K({
+Y({
type: "genfrac",
names: [
"\\dfrac",
@@ -9051,10 +9051,10 @@ K({
barSize: null
};
},
- htmlBuilder: Pu,
- mathmlBuilder: Hu
+ htmlBuilder: Hu,
+ mathmlBuilder: Uu
});
-K({
+Y({
type: "genfrac",
names: ["\\cfrac"],
props: {
@@ -9079,7 +9079,7 @@ K({
};
}
});
-K({
+Y({
type: "infix",
names: ["\\over", "\\choose", "\\atop", "\\brace", "\\brack"],
props: {
@@ -9119,11 +9119,11 @@ K({
};
}
});
-var fc = ["display", "text", "script", "scriptscript"], hc = function(e) {
+var hc = ["display", "text", "script", "scriptscript"], dc = function(e) {
var t = null;
return e.length > 0 && (t = e, t = t === "." ? null : t), t;
};
-K({
+Y({
type: "genfrac",
names: ["\\genfrac"],
props: {
@@ -9134,16 +9134,16 @@ K({
handler(n, e) {
var {
parser: t
- } = n, r = e[4], a = e[5], i = Ml(e[0]), l = i.type === "atom" && i.family === "open" ? hc(i.text) : null, s = Ml(e[1]), o = s.type === "atom" && s.family === "close" ? hc(s.text) : null, u = me(e[2], "size"), c, d = null;
+ } = n, r = e[4], a = e[5], i = Ml(e[0]), l = i.type === "atom" && i.family === "open" ? dc(i.text) : null, s = Ml(e[1]), o = s.type === "atom" && s.family === "close" ? dc(s.text) : null, u = pe(e[2], "size"), c, d = null;
u.isBlank ? c = !0 : (d = u.value, c = d.number > 0);
var h = "auto", p = e[3];
if (p.type === "ordgroup") {
if (p.body.length > 0) {
- var _ = me(p.body[0], "textord");
- h = fc[Number(_.text)];
+ var _ = pe(p.body[0], "textord");
+ h = hc[Number(_.text)];
}
} else
- p = me(p, "textord"), h = fc[Number(p.text)];
+ p = pe(p, "textord"), h = hc[Number(p.text)];
return {
type: "genfrac",
mode: t.mode,
@@ -9157,10 +9157,10 @@ K({
size: h
};
},
- htmlBuilder: Pu,
- mathmlBuilder: Hu
+ htmlBuilder: Hu,
+ mathmlBuilder: Uu
});
-K({
+Y({
type: "infix",
names: ["\\above"],
props: {
@@ -9178,12 +9178,12 @@ K({
type: "infix",
mode: t.mode,
replaceWith: "\\\\abovefrac",
- size: me(e[0], "size").value,
+ size: pe(e[0], "size").value,
token: a
};
}
});
-K({
+Y({
type: "genfrac",
names: ["\\\\abovefrac"],
props: {
@@ -9194,7 +9194,7 @@ K({
var {
parser: t,
funcName: r
- } = n, a = e[0], i = B5(me(e[1], "infix").size), l = e[2], s = i.number > 0;
+ } = n, a = e[0], i = I5(pe(e[1], "infix").size), l = e[2], s = i.number > 0;
return {
type: "genfrac",
mode: t.mode,
@@ -9208,14 +9208,14 @@ K({
size: "auto"
};
},
- htmlBuilder: Pu,
- mathmlBuilder: Hu
+ htmlBuilder: Hu,
+ mathmlBuilder: Uu
});
-var s4 = (n, e) => {
+var o4 = (n, e) => {
var t = e.style, r, a;
- n.type === "supsub" ? (r = n.sup ? Ee(n.sup, e.havingStyle(t.sup()), e) : Ee(n.sub, e.havingStyle(t.sub()), e), a = me(n.base, "horizBrace")) : a = me(n, "horizBrace");
- var i = Ee(a.base, e.havingBaseStyle(le.DISPLAY)), l = Nr.svgSpan(a, e), s;
- if (a.isOver ? (s = N.makeVList({
+ n.type === "supsub" ? (r = n.sup ? Se(n.sup, e.havingStyle(t.sup()), e) : Se(n.sub, e.havingStyle(t.sub()), e), a = pe(n.base, "horizBrace")) : a = pe(n, "horizBrace");
+ var i = Se(a.base, e.havingBaseStyle(ae.DISPLAY)), l = Lr.svgSpan(a, e), s;
+ if (a.isOver ? (s = R.makeVList({
positionType: "firstBaseline",
children: [{
type: "elem",
@@ -9227,7 +9227,7 @@ var s4 = (n, e) => {
type: "elem",
elem: l
}]
- }, e), s.children[0].children[0].children[1].classes.push("svg-align")) : (s = N.makeVList({
+ }, e), s.children[0].children[0].children[1].classes.push("svg-align")) : (s = R.makeVList({
positionType: "bottom",
positionData: i.depth + 0.1 + l.height,
children: [{
@@ -9241,8 +9241,8 @@ var s4 = (n, e) => {
elem: i
}]
}, e), s.children[0].children[0].children[0].classes.push("svg-align")), r) {
- var o = N.makeSpan(["mord", a.isOver ? "mover" : "munder"], [s], e);
- a.isOver ? s = N.makeVList({
+ var o = R.makeSpan(["mord", a.isOver ? "mover" : "munder"], [s], e);
+ a.isOver ? s = R.makeVList({
positionType: "firstBaseline",
children: [{
type: "elem",
@@ -9254,7 +9254,7 @@ var s4 = (n, e) => {
type: "elem",
elem: r
}]
- }, e) : s = N.makeVList({
+ }, e) : s = R.makeVList({
positionType: "bottom",
positionData: o.depth + 0.2 + r.height + r.depth,
children: [{
@@ -9269,12 +9269,12 @@ var s4 = (n, e) => {
}]
}, e);
}
- return N.makeSpan(["mord", a.isOver ? "mover" : "munder"], [s], e);
-}, n6 = (n, e) => {
- var t = Nr.mathMLnode(n.label);
+ return R.makeSpan(["mord", a.isOver ? "mover" : "munder"], [s], e);
+}, a6 = (n, e) => {
+ var t = Lr.mathMLnode(n.label);
return new U.MathNode(n.isOver ? "mover" : "munder", [Ie(n.base, e), t]);
};
-K({
+Y({
type: "horizBrace",
names: ["\\overbrace", "\\underbrace"],
props: {
@@ -9293,10 +9293,10 @@ K({
base: e[0]
};
},
- htmlBuilder: s4,
- mathmlBuilder: n6
+ htmlBuilder: o4,
+ mathmlBuilder: a6
});
-K({
+Y({
type: "href",
names: ["\\href"],
props: {
@@ -9307,7 +9307,7 @@ K({
handler: (n, e) => {
var {
parser: t
- } = n, r = e[1], a = me(e[0], "url").url;
+ } = n, r = e[1], a = pe(e[0], "url").url;
return t.settings.isTrusted({
command: "\\href",
url: a
@@ -9315,19 +9315,19 @@ K({
type: "href",
mode: t.mode,
href: a,
- body: rt(r)
+ body: tt(r)
} : t.formatUnsupportedCmd("\\href");
},
htmlBuilder: (n, e) => {
- var t = vt(n.body, e, !1);
- return N.makeAnchor(n.href, [], t, e);
+ var t = gt(n.body, e, !1);
+ return R.makeAnchor(n.href, [], t, e);
},
mathmlBuilder: (n, e) => {
var t = cn(n.body, e);
- return t instanceof k0 || (t = new k0("mrow", [t])), t.setAttribute("href", n.href), t;
+ return t instanceof y0 || (t = new y0("mrow", [t])), t.setAttribute("href", n.href), t;
}
});
-K({
+Y({
type: "href",
names: ["\\url"],
props: {
@@ -9338,7 +9338,7 @@ K({
handler: (n, e) => {
var {
parser: t
- } = n, r = me(e[0], "url").url;
+ } = n, r = pe(e[0], "url").url;
if (!t.settings.isTrusted({
command: "\\url",
url: r
@@ -9362,11 +9362,11 @@ K({
type: "href",
mode: t.mode,
href: r,
- body: rt(s)
+ body: tt(s)
};
}
});
-K({
+Y({
type: "hbox",
names: ["\\hbox"],
props: {
@@ -9382,18 +9382,18 @@ K({
return {
type: "hbox",
mode: t.mode,
- body: rt(e[0])
+ body: tt(e[0])
};
},
htmlBuilder(n, e) {
- var t = vt(n.body, e, !1);
- return N.makeFragment(t);
+ var t = gt(n.body, e, !1);
+ return R.makeFragment(t);
},
mathmlBuilder(n, e) {
return new U.MathNode("mrow", a0(n.body, e));
}
});
-K({
+Y({
type: "html",
names: ["\\htmlClass", "\\htmlId", "\\htmlStyle", "\\htmlData"],
props: {
@@ -9406,7 +9406,7 @@ K({
parser: t,
funcName: r,
token: a
- } = n, i = me(e[0], "raw").string, l = e[1];
+ } = n, i = pe(e[0], "raw").string, l = e[1];
t.settings.strict && t.settings.reportNonstrict("htmlExtension", "HTML extension is disabled on strict mode");
var s, o = {};
switch (r) {
@@ -9448,20 +9448,20 @@ K({
type: "html",
mode: t.mode,
attributes: o,
- body: rt(l)
+ body: tt(l)
} : t.formatUnsupportedCmd(r);
},
htmlBuilder: (n, e) => {
- var t = vt(n.body, e, !1), r = ["enclosing"];
+ var t = gt(n.body, e, !1), r = ["enclosing"];
n.attributes.class && r.push(...n.attributes.class.trim().split(/\s+/));
- var a = N.makeSpan(r, t, e);
+ var a = R.makeSpan(r, t, e);
for (var i in n.attributes)
i !== "class" && n.attributes.hasOwnProperty(i) && a.setAttribute(i, n.attributes[i]);
return a;
},
mathmlBuilder: (n, e) => cn(n.body, e)
});
-K({
+Y({
type: "htmlmathml",
names: ["\\html@mathml"],
props: {
@@ -9475,13 +9475,13 @@ K({
return {
type: "htmlmathml",
mode: t.mode,
- html: rt(e[0]),
- mathml: rt(e[1])
+ html: tt(e[0]),
+ mathml: tt(e[1])
};
},
htmlBuilder: (n, e) => {
- var t = vt(n.html, e, !1);
- return N.makeFragment(t);
+ var t = gt(n.html, e, !1);
+ return R.makeFragment(t);
},
mathmlBuilder: (n, e) => cn(n.mathml, e)
});
@@ -9499,11 +9499,11 @@ var ao = function(e) {
// sign + magnitude, cast to number
unit: t[3]
};
- if (!Sd(r))
+ if (!xd(r))
throw new G("Invalid unit: '" + r.unit + "' in \\includegraphics.");
return r;
};
-K({
+Y({
type: "includegraphics",
names: ["\\includegraphics"],
props: {
@@ -9526,7 +9526,7 @@ K({
unit: "em"
}, s = "";
if (t[0])
- for (var o = me(t[0], "raw").string, u = o.split(","), c = 0; c < u.length; c++) {
+ for (var o = pe(t[0], "raw").string, u = o.split(","), c = 0; c < u.length; c++) {
var d = u[c].split("=");
if (d.length === 2) {
var h = d[1].trim();
@@ -9548,7 +9548,7 @@ K({
}
}
}
- var p = me(e[0], "url").url;
+ var p = pe(e[0], "url").url;
return s === "" && (s = p, s = s.replace(/^.*[\\/]/, ""), s = s.substring(0, s.lastIndexOf("."))), r.settings.isTrusted({
command: "\\includegraphics",
url: p
@@ -9571,7 +9571,7 @@ K({
height: X(t + r)
};
a > 0 && (i.width = X(a)), r > 0 && (i.verticalAlign = X(-r));
- var l = new n3(n.src, n.alt, i);
+ var l = new a3(n.src, n.alt, i);
return l.height = t, l.depth = r, l;
},
mathmlBuilder: (n, e) => {
@@ -9585,7 +9585,7 @@ K({
return t.setAttribute("src", n.src), t;
}
});
-K({
+Y({
type: "kern",
names: ["\\kern", "\\mkern", "\\hskip", "\\mskip"],
props: {
@@ -9598,7 +9598,7 @@ K({
var {
parser: t,
funcName: r
- } = n, a = me(e[0], "size");
+ } = n, a = pe(e[0], "size");
if (t.settings.strict) {
var i = r[1] === "m", l = a.value.unit === "mu";
i ? (l || t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " supports only mu units, " + ("not " + a.value.unit + " units")), t.mode !== "math" && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " works only in math mode")) : l && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + r + " doesn't support mu units");
@@ -9610,14 +9610,14 @@ K({
};
},
htmlBuilder(n, e) {
- return N.makeGlue(n.dimension, e);
+ return R.makeGlue(n.dimension, e);
},
mathmlBuilder(n, e) {
var t = Ye(n.dimension, e);
return new U.SpaceNode(t);
}
});
-K({
+Y({
type: "lap",
names: ["\\mathllap", "\\mathrlap", "\\mathclap"],
props: {
@@ -9638,9 +9638,9 @@ K({
},
htmlBuilder: (n, e) => {
var t;
- n.alignment === "clap" ? (t = N.makeSpan([], [Ee(n.body, e)]), t = N.makeSpan(["inner"], [t], e)) : t = N.makeSpan(["inner"], [Ee(n.body, e)]);
- var r = N.makeSpan(["fix"], []), a = N.makeSpan([n.alignment], [t, r], e), i = N.makeSpan(["strut"]);
- return i.style.height = X(a.height + a.depth), a.depth && (i.style.verticalAlign = X(-a.depth)), a.children.unshift(i), a = N.makeSpan(["thinbox"], [a], e), N.makeSpan(["mord", "vbox"], [a], e);
+ n.alignment === "clap" ? (t = R.makeSpan([], [Se(n.body, e)]), t = R.makeSpan(["inner"], [t], e)) : t = R.makeSpan(["inner"], [Se(n.body, e)]);
+ var r = R.makeSpan(["fix"], []), a = R.makeSpan([n.alignment], [t, r], e), i = R.makeSpan(["strut"]);
+ return i.style.height = X(a.height + a.depth), a.depth && (i.style.verticalAlign = X(-a.depth)), a.children.unshift(i), a = R.makeSpan(["thinbox"], [a], e), R.makeSpan(["mord", "vbox"], [a], e);
},
mathmlBuilder: (n, e) => {
var t = new U.MathNode("mpadded", [Ie(n.body, e)]);
@@ -9651,7 +9651,7 @@ K({
return t.setAttribute("width", "0px"), t;
}
});
-K({
+Y({
type: "styling",
names: ["\\(", "$"],
props: {
@@ -9674,7 +9674,7 @@ K({
};
}
});
-K({
+Y({
type: "text",
// Doesn't matter what this is.
names: ["\\)", "\\]"],
@@ -9687,21 +9687,21 @@ K({
throw new G("Mismatched " + n.funcName);
}
});
-var dc = (n, e) => {
+var mc = (n, e) => {
switch (e.style.size) {
- case le.DISPLAY.size:
+ case ae.DISPLAY.size:
return n.display;
- case le.TEXT.size:
+ case ae.TEXT.size:
return n.text;
- case le.SCRIPT.size:
+ case ae.SCRIPT.size:
return n.script;
- case le.SCRIPTSCRIPT.size:
+ case ae.SCRIPTSCRIPT.size:
return n.scriptscript;
default:
return n.text;
}
};
-K({
+Y({
type: "mathchoice",
names: ["\\mathchoice"],
props: {
@@ -9715,33 +9715,33 @@ K({
return {
type: "mathchoice",
mode: t.mode,
- display: rt(e[0]),
- text: rt(e[1]),
- script: rt(e[2]),
- scriptscript: rt(e[3])
+ display: tt(e[0]),
+ text: tt(e[1]),
+ script: tt(e[2]),
+ scriptscript: tt(e[3])
};
},
htmlBuilder: (n, e) => {
- var t = dc(n, e), r = vt(t, e, !1);
- return N.makeFragment(r);
+ var t = mc(n, e), r = gt(t, e, !1);
+ return R.makeFragment(r);
},
mathmlBuilder: (n, e) => {
- var t = dc(n, e);
+ var t = mc(n, e);
return cn(t, e);
}
});
-var o4 = (n, e, t, r, a, i, l) => {
- n = N.makeSpan([], [n]);
- var s = t && ae.isCharacterBox(t), o, u;
+var u4 = (n, e, t, r, a, i, l) => {
+ n = R.makeSpan([], [n]);
+ var s = t && re.isCharacterBox(t), o, u;
if (e) {
- var c = Ee(e, r.havingStyle(a.sup()), r);
+ var c = Se(e, r.havingStyle(a.sup()), r);
u = {
elem: c,
kern: Math.max(r.fontMetrics().bigOpSpacing1, r.fontMetrics().bigOpSpacing3 - c.depth)
};
}
if (t) {
- var d = Ee(t, r.havingStyle(a.sub()), r);
+ var d = Se(t, r.havingStyle(a.sub()), r);
o = {
elem: d,
kern: Math.max(r.fontMetrics().bigOpSpacing2, r.fontMetrics().bigOpSpacing4 - d.height)
@@ -9750,7 +9750,7 @@ var o4 = (n, e, t, r, a, i, l) => {
var h;
if (u && o) {
var p = r.fontMetrics().bigOpSpacing5 + o.elem.height + o.elem.depth + o.kern + n.depth + l;
- h = N.makeVList({
+ h = R.makeVList({
positionType: "bottom",
positionData: p,
children: [{
@@ -9780,7 +9780,7 @@ var o4 = (n, e, t, r, a, i, l) => {
}, r);
} else if (o) {
var _ = n.height - l;
- h = N.makeVList({
+ h = R.makeVList({
positionType: "top",
positionData: _,
children: [{
@@ -9800,7 +9800,7 @@ var o4 = (n, e, t, r, a, i, l) => {
}, r);
} else if (u) {
var b = n.depth + l;
- h = N.makeVList({
+ h = R.makeVList({
positionType: "bottom",
positionData: b,
children: [{
@@ -9822,21 +9822,21 @@ var o4 = (n, e, t, r, a, i, l) => {
return n;
var D = [h];
if (o && i !== 0 && !s) {
- var y = N.makeSpan(["mspace"], [], r);
+ var y = R.makeSpan(["mspace"], [], r);
y.style.marginRight = X(i), D.unshift(y);
}
- return N.makeSpan(["mop", "op-limits"], D, r);
-}, u4 = ["\\smallint"], ua = (n, e) => {
+ return R.makeSpan(["mop", "op-limits"], D, r);
+}, c4 = ["\\smallint"], ua = (n, e) => {
var t, r, a = !1, i;
- n.type === "supsub" ? (t = n.sup, r = n.sub, i = me(n.base, "op"), a = !0) : i = me(n, "op");
+ n.type === "supsub" ? (t = n.sup, r = n.sub, i = pe(n.base, "op"), a = !0) : i = pe(n, "op");
var l = e.style, s = !1;
- l.size === le.DISPLAY.size && i.symbol && !ae.contains(u4, i.name) && (s = !0);
+ l.size === ae.DISPLAY.size && i.symbol && !re.contains(c4, i.name) && (s = !0);
var o;
if (i.symbol) {
var u = s ? "Size2-Regular" : "Size1-Regular", c = "";
- if ((i.name === "\\oiint" || i.name === "\\oiiint") && (c = i.name.slice(1), i.name = c === "oiint" ? "\\iint" : "\\iiint"), o = N.makeSymbol(i.name, u, "math", e, ["mop", "op-symbol", s ? "large-op" : "small-op"]), c.length > 0) {
- var d = o.italic, h = N.staticSvg(c + "Size" + (s ? "2" : "1"), e);
- o = N.makeVList({
+ if ((i.name === "\\oiint" || i.name === "\\oiiint") && (c = i.name.slice(1), i.name = c === "oiint" ? "\\iint" : "\\iiint"), o = R.makeSymbol(i.name, u, "math", e, ["mop", "op-symbol", s ? "large-op" : "small-op"]), c.length > 0) {
+ var d = o.italic, h = R.staticSvg(c + "Size" + (s ? "2" : "1"), e);
+ o = R.makeVList({
positionType: "individualShift",
children: [{
type: "elem",
@@ -9850,28 +9850,28 @@ var o4 = (n, e, t, r, a, i, l) => {
}, e), i.name = "\\" + c, o.classes.unshift("mop"), o.italic = d;
}
} else if (i.body) {
- var p = vt(i.body, e, !0);
- p.length === 1 && p[0] instanceof T0 ? (o = p[0], o.classes[0] = "mop") : o = N.makeSpan(["mop"], p, e);
+ var p = gt(i.body, e, !0);
+ p.length === 1 && p[0] instanceof x0 ? (o = p[0], o.classes[0] = "mop") : o = R.makeSpan(["mop"], p, e);
} else {
for (var _ = [], b = 1; b < i.name.length; b++)
- _.push(N.mathsym(i.name[b], i.mode, e));
- o = N.makeSpan(["mop"], _, e);
+ _.push(R.mathsym(i.name[b], i.mode, e));
+ o = R.makeSpan(["mop"], _, e);
}
var D = 0, y = 0;
- return (o instanceof T0 || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (D = (o.height - o.depth) / 2 - e.fontMetrics().axisHeight, y = o.italic), a ? o4(o, t, r, e, l, y, D) : (D && (o.style.position = "relative", o.style.top = X(D)), o);
+ return (o instanceof x0 || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (D = (o.height - o.depth) / 2 - e.fontMetrics().axisHeight, y = o.italic), a ? u4(o, t, r, e, l, y, D) : (D && (o.style.position = "relative", o.style.top = X(D)), o);
}, ni = (n, e) => {
var t;
if (n.symbol)
- t = new k0("mo", [C0(n.name, n.mode)]), ae.contains(u4, n.name) && t.setAttribute("largeop", "false");
+ t = new y0("mo", [T0(n.name, n.mode)]), re.contains(c4, n.name) && t.setAttribute("largeop", "false");
else if (n.body)
- t = new k0("mo", a0(n.body, e));
+ t = new y0("mo", a0(n.body, e));
else {
- t = new k0("mi", [new Oa(n.name.slice(1))]);
- var r = new k0("mo", [C0("", "text")]);
- n.parentIsSupSub ? t = new k0("mrow", [t, r]) : t = Rd([t, r]);
+ t = new y0("mi", [new Oa(n.name.slice(1))]);
+ var r = new y0("mo", [T0("", "text")]);
+ n.parentIsSupSub ? t = new y0("mrow", [t, r]) : t = Od([t, r]);
}
return t;
-}, a6 = {
+}, i6 = {
"∏": "\\prod",
"∐": "\\coprod",
"∑": "\\sum",
@@ -9885,7 +9885,7 @@ var o4 = (n, e, t, r, a, i, l) => {
"⨄": "\\biguplus",
"⨆": "\\bigsqcup"
};
-K({
+Y({
type: "op",
names: ["\\coprod", "\\bigvee", "\\bigwedge", "\\biguplus", "\\bigcap", "\\bigcup", "\\intop", "\\prod", "\\sum", "\\bigotimes", "\\bigoplus", "\\bigodot", "\\bigsqcup", "\\smallint", "∏", "∐", "∑", "⋀", "⋁", "⋂", "⋃", "⨀", "⨁", "⨂", "⨄", "⨆"],
props: {
@@ -9896,7 +9896,7 @@ K({
parser: t,
funcName: r
} = n, a = r;
- return a.length === 1 && (a = a6[a]), {
+ return a.length === 1 && (a = i6[a]), {
type: "op",
mode: t.mode,
limits: !0,
@@ -9908,7 +9908,7 @@ K({
htmlBuilder: ua,
mathmlBuilder: ni
});
-K({
+Y({
type: "op",
names: ["\\mathop"],
props: {
@@ -9925,13 +9925,13 @@ K({
limits: !1,
parentIsSupSub: !1,
symbol: !1,
- body: rt(r)
+ body: tt(r)
};
},
htmlBuilder: ua,
mathmlBuilder: ni
});
-var i6 = {
+var l6 = {
"∫": "\\int",
"∬": "\\iint",
"∭": "\\iiint",
@@ -9939,7 +9939,7 @@ var i6 = {
"∯": "\\oiint",
"∰": "\\oiiint"
};
-K({
+Y({
type: "op",
names: ["\\arcsin", "\\arccos", "\\arctan", "\\arctg", "\\arcctg", "\\arg", "\\ch", "\\cos", "\\cosec", "\\cosh", "\\cot", "\\cotg", "\\coth", "\\csc", "\\ctg", "\\cth", "\\deg", "\\dim", "\\exp", "\\hom", "\\ker", "\\lg", "\\ln", "\\log", "\\sec", "\\sin", "\\sinh", "\\sh", "\\tan", "\\tanh", "\\tg", "\\th"],
props: {
@@ -9962,7 +9962,7 @@ K({
htmlBuilder: ua,
mathmlBuilder: ni
});
-K({
+Y({
type: "op",
names: ["\\det", "\\gcd", "\\inf", "\\lim", "\\max", "\\min", "\\Pr", "\\sup"],
props: {
@@ -9985,7 +9985,7 @@ K({
htmlBuilder: ua,
mathmlBuilder: ni
});
-K({
+Y({
type: "op",
names: ["\\int", "\\iint", "\\iiint", "\\oint", "\\oiint", "\\oiiint", "∫", "∬", "∭", "∮", "∯", "∰"],
props: {
@@ -9996,7 +9996,7 @@ K({
parser: e,
funcName: t
} = n, r = t;
- return r.length === 1 && (r = i6[r]), {
+ return r.length === 1 && (r = l6[r]), {
type: "op",
mode: e.mode,
limits: !1,
@@ -10008,9 +10008,9 @@ K({
htmlBuilder: ua,
mathmlBuilder: ni
});
-var c4 = (n, e) => {
+var f4 = (n, e) => {
var t, r, a = !1, i;
- n.type === "supsub" ? (t = n.sup, r = n.sub, i = me(n.base, "operatorname"), a = !0) : i = me(n, "operatorname");
+ n.type === "supsub" ? (t = n.sup, r = n.sub, i = pe(n.base, "operatorname"), a = !0) : i = pe(n, "operatorname");
var l;
if (i.body.length > 0) {
for (var s = i.body.map((d) => {
@@ -10020,15 +10020,15 @@ var c4 = (n, e) => {
mode: d.mode,
text: h
} : d;
- }), o = vt(s, e.withFont("mathrm"), !0), u = 0; u < o.length; u++) {
+ }), o = gt(s, e.withFont("mathrm"), !0), u = 0; u < o.length; u++) {
var c = o[u];
- c instanceof T0 && (c.text = c.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
+ c instanceof x0 && (c.text = c.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
}
- l = N.makeSpan(["mop"], o, e);
+ l = R.makeSpan(["mop"], o, e);
} else
- l = N.makeSpan(["mop"], [], e);
- return a ? o4(l, t, r, e, e.style, 0, 0) : l;
-}, l6 = (n, e) => {
+ l = R.makeSpan(["mop"], [], e);
+ return a ? u4(l, t, r, e, e.style, 0, 0) : l;
+}, s6 = (n, e) => {
for (var t = a0(n.body, e.withFont("mathrm")), r = !0, a = 0; a < t.length; a++) {
var i = t[a];
if (!(i instanceof U.SpaceNode)) if (i instanceof U.MathNode)
@@ -10056,10 +10056,10 @@ var c4 = (n, e) => {
}
var o = new U.MathNode("mi", t);
o.setAttribute("mathvariant", "normal");
- var u = new U.MathNode("mo", [C0("", "text")]);
+ var u = new U.MathNode("mo", [T0("", "text")]);
return n.parentIsSupSub ? new U.MathNode("mrow", [o, u]) : U.newDocumentFragment([o, u]);
};
-K({
+Y({
type: "operatorname",
names: ["\\operatorname@", "\\operatornamewithlimits"],
props: {
@@ -10073,26 +10073,26 @@ K({
return {
type: "operatorname",
mode: t.mode,
- body: rt(a),
+ body: tt(a),
alwaysHandleSupSub: r === "\\operatornamewithlimits",
limits: !1,
parentIsSupSub: !1
};
},
- htmlBuilder: c4,
- mathmlBuilder: l6
+ htmlBuilder: f4,
+ mathmlBuilder: s6
});
v("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
Bn({
type: "ordgroup",
htmlBuilder(n, e) {
- return n.semisimple ? N.makeFragment(vt(n.body, e, !1)) : N.makeSpan(["mord"], vt(n.body, e, !0), e);
+ return n.semisimple ? R.makeFragment(gt(n.body, e, !1)) : R.makeSpan(["mord"], gt(n.body, e, !0), e);
},
mathmlBuilder(n, e) {
return cn(n.body, e, !0);
}
});
-K({
+Y({
type: "overline",
names: ["\\overline"],
props: {
@@ -10109,7 +10109,7 @@ K({
};
},
htmlBuilder(n, e) {
- var t = Ee(n.body, e.havingCrampedStyle()), r = N.makeLineSpan("overline-line", e), a = e.fontMetrics().defaultRuleThickness, i = N.makeVList({
+ var t = Se(n.body, e.havingCrampedStyle()), r = R.makeLineSpan("overline-line", e), a = e.fontMetrics().defaultRuleThickness, i = R.makeVList({
positionType: "firstBaseline",
children: [{
type: "elem",
@@ -10125,7 +10125,7 @@ K({
size: a
}]
}, e);
- return N.makeSpan(["mord", "overline"], [i], e);
+ return R.makeSpan(["mord", "overline"], [i], e);
},
mathmlBuilder(n, e) {
var t = new U.MathNode("mo", [new U.TextNode("‾")]);
@@ -10134,7 +10134,7 @@ K({
return r.setAttribute("accent", "true"), r;
}
});
-K({
+Y({
type: "phantom",
names: ["\\phantom"],
props: {
@@ -10148,19 +10148,19 @@ K({
return {
type: "phantom",
mode: t.mode,
- body: rt(r)
+ body: tt(r)
};
},
htmlBuilder: (n, e) => {
- var t = vt(n.body, e.withPhantom(), !1);
- return N.makeFragment(t);
+ var t = gt(n.body, e.withPhantom(), !1);
+ return R.makeFragment(t);
},
mathmlBuilder: (n, e) => {
var t = a0(n.body, e);
return new U.MathNode("mphantom", t);
}
});
-K({
+Y({
type: "hphantom",
names: ["\\hphantom"],
props: {
@@ -10178,24 +10178,24 @@ K({
};
},
htmlBuilder: (n, e) => {
- var t = N.makeSpan([], [Ee(n.body, e.withPhantom())]);
+ var t = R.makeSpan([], [Se(n.body, e.withPhantom())]);
if (t.height = 0, t.depth = 0, t.children)
for (var r = 0; r < t.children.length; r++)
t.children[r].height = 0, t.children[r].depth = 0;
- return t = N.makeVList({
+ return t = R.makeVList({
positionType: "firstBaseline",
children: [{
type: "elem",
elem: t
}]
- }, e), N.makeSpan(["mord"], [t], e);
+ }, e), R.makeSpan(["mord"], [t], e);
},
mathmlBuilder: (n, e) => {
- var t = a0(rt(n.body), e), r = new U.MathNode("mphantom", t), a = new U.MathNode("mpadded", [r]);
+ var t = a0(tt(n.body), e), r = new U.MathNode("mphantom", t), a = new U.MathNode("mpadded", [r]);
return a.setAttribute("height", "0px"), a.setAttribute("depth", "0px"), a;
}
});
-K({
+Y({
type: "vphantom",
names: ["\\vphantom"],
props: {
@@ -10213,15 +10213,15 @@ K({
};
},
htmlBuilder: (n, e) => {
- var t = N.makeSpan(["inner"], [Ee(n.body, e.withPhantom())]), r = N.makeSpan(["fix"], []);
- return N.makeSpan(["mord", "rlap"], [t, r], e);
+ var t = R.makeSpan(["inner"], [Se(n.body, e.withPhantom())]), r = R.makeSpan(["fix"], []);
+ return R.makeSpan(["mord", "rlap"], [t, r], e);
},
mathmlBuilder: (n, e) => {
- var t = a0(rt(n.body), e), r = new U.MathNode("mphantom", t), a = new U.MathNode("mpadded", [r]);
+ var t = a0(tt(n.body), e), r = new U.MathNode("mphantom", t), a = new U.MathNode("mpadded", [r]);
return a.setAttribute("width", "0px"), a;
}
});
-K({
+Y({
type: "raisebox",
names: ["\\raisebox"],
props: {
@@ -10232,7 +10232,7 @@ K({
handler(n, e) {
var {
parser: t
- } = n, r = me(e[0], "size").value, a = e[1];
+ } = n, r = pe(e[0], "size").value, a = e[1];
return {
type: "raisebox",
mode: t.mode,
@@ -10241,8 +10241,8 @@ K({
};
},
htmlBuilder(n, e) {
- var t = Ee(n.body, e), r = Ye(n.dy, e);
- return N.makeVList({
+ var t = Se(n.body, e), r = Ye(n.dy, e);
+ return R.makeVList({
positionType: "shift",
positionData: -r,
children: [{
@@ -10256,7 +10256,7 @@ K({
return t.setAttribute("voffset", r), t;
}
});
-K({
+Y({
type: "internal",
names: ["\\relax"],
props: {
@@ -10273,7 +10273,7 @@ K({
};
}
});
-K({
+Y({
type: "rule",
names: ["\\rule"],
props: {
@@ -10284,17 +10284,17 @@ K({
handler(n, e, t) {
var {
parser: r
- } = n, a = t[0], i = me(e[0], "size"), l = me(e[1], "size");
+ } = n, a = t[0], i = pe(e[0], "size"), l = pe(e[1], "size");
return {
type: "rule",
mode: r.mode,
- shift: a && me(a, "size").value,
+ shift: a && pe(a, "size").value,
width: i.value,
height: l.value
};
},
htmlBuilder(n, e) {
- var t = N.makeSpan(["mord", "rule"], [], e), r = Ye(n.width, e), a = Ye(n.height, e), i = n.shift ? Ye(n.shift, e) : 0;
+ var t = R.makeSpan(["mord", "rule"], [], e), r = Ye(n.width, e), a = Ye(n.height, e), i = n.shift ? Ye(n.shift, e) : 0;
return t.style.borderRightWidth = X(r), t.style.borderTopWidth = X(a), t.style.bottom = X(i), t.width = r, t.height = a + i, t.depth = -i, t.maxFontSize = a * 1.125 * e.sizeMultiplier, t;
},
mathmlBuilder(n, e) {
@@ -10304,20 +10304,20 @@ K({
return a >= 0 ? s.setAttribute("height", X(a)) : (s.setAttribute("height", X(a)), s.setAttribute("depth", X(-a))), s.setAttribute("voffset", X(a)), s;
}
});
-function f4(n, e, t) {
- for (var r = vt(n, e, !1), a = e.sizeMultiplier / t.sizeMultiplier, i = 0; i < r.length; i++) {
+function h4(n, e, t) {
+ for (var r = gt(n, e, !1), a = e.sizeMultiplier / t.sizeMultiplier, i = 0; i < r.length; i++) {
var l = r[i].classes.indexOf("sizing");
l < 0 ? Array.prototype.push.apply(r[i].classes, e.sizingClasses(t)) : r[i].classes[l + 1] === "reset-size" + e.size && (r[i].classes[l + 1] = "reset-size" + t.size), r[i].height *= a, r[i].depth *= a;
}
- return N.makeFragment(r);
+ return R.makeFragment(r);
}
-var mc = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], s6 = (n, e) => {
+var pc = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], o6 = (n, e) => {
var t = e.havingSize(n.size);
- return f4(n.body, t, e);
+ return h4(n.body, t, e);
};
-K({
+Y({
type: "sizing",
- names: mc,
+ names: pc,
props: {
numArgs: 0,
allowedInText: !0
@@ -10332,17 +10332,17 @@ K({
type: "sizing",
mode: a.mode,
// Figure out what size to use based on the list of functions above
- size: mc.indexOf(r) + 1,
+ size: pc.indexOf(r) + 1,
body: i
};
},
- htmlBuilder: s6,
+ htmlBuilder: o6,
mathmlBuilder: (n, e) => {
var t = e.havingSize(n.size), r = a0(n.body, t), a = new U.MathNode("mstyle", r);
return a.setAttribute("mathsize", X(t.sizeMultiplier)), a;
}
});
-K({
+Y({
type: "smash",
names: ["\\smash"],
props: {
@@ -10353,7 +10353,7 @@ K({
handler: (n, e, t) => {
var {
parser: r
- } = n, a = !1, i = !1, l = t[0] && me(t[0], "ordgroup");
+ } = n, a = !1, i = !1, l = t[0] && pe(t[0], "ordgroup");
if (l)
for (var s = "", o = 0; o < l.body.length; ++o) {
var u = l.body[o];
@@ -10378,7 +10378,7 @@ K({
};
},
htmlBuilder: (n, e) => {
- var t = N.makeSpan([], [Ee(n.body, e)]);
+ var t = R.makeSpan([], [Se(n.body, e)]);
if (!n.smashHeight && !n.smashDepth)
return t;
if (n.smashHeight && (t.height = 0, t.children))
@@ -10387,21 +10387,21 @@ K({
if (n.smashDepth && (t.depth = 0, t.children))
for (var a = 0; a < t.children.length; a++)
t.children[a].depth = 0;
- var i = N.makeVList({
+ var i = R.makeVList({
positionType: "firstBaseline",
children: [{
type: "elem",
elem: t
}]
}, e);
- return N.makeSpan(["mord"], [i], e);
+ return R.makeSpan(["mord"], [i], e);
},
mathmlBuilder: (n, e) => {
var t = new U.MathNode("mpadded", [Ie(n.body, e)]);
return n.smashHeight && t.setAttribute("height", "0px"), n.smashDepth && t.setAttribute("depth", "0px"), t;
}
});
-K({
+Y({
type: "sqrt",
names: ["\\sqrt"],
props: {
@@ -10420,10 +10420,10 @@ K({
};
},
htmlBuilder(n, e) {
- var t = Ee(n.body, e.havingCrampedStyle());
- t.height === 0 && (t.height = e.fontMetrics().xHeight), t = N.wrapFragment(t, e);
+ var t = Se(n.body, e.havingCrampedStyle());
+ t.height === 0 && (t.height = e.fontMetrics().xHeight), t = R.wrapFragment(t, e);
var r = e.fontMetrics(), a = r.defaultRuleThickness, i = a;
- e.style.id < le.TEXT.id && (i = e.fontMetrics().xHeight);
+ e.style.id < ae.TEXT.id && (i = e.fontMetrics().xHeight);
var l = a + i / 4, s = t.height + t.depth + l + a, {
span: o,
ruleWidth: u,
@@ -10432,7 +10432,7 @@ K({
d > t.height + t.depth + l && (l = (l + d - t.height - t.depth) / 2);
var h = o.height - t.height - l - u;
t.style.paddingLeft = X(c);
- var p = N.makeVList({
+ var p = R.makeVList({
positionType: "firstBaseline",
children: [{
type: "elem",
@@ -10450,17 +10450,17 @@ K({
}]
}, e);
if (n.index) {
- var _ = e.havingStyle(le.SCRIPTSCRIPT), b = Ee(n.index, _, e), D = 0.6 * (p.height - p.depth), y = N.makeVList({
+ var _ = e.havingStyle(ae.SCRIPTSCRIPT), b = Se(n.index, _, e), D = 0.6 * (p.height - p.depth), y = R.makeVList({
positionType: "shift",
positionData: -D,
children: [{
type: "elem",
elem: b
}]
- }, e), k = N.makeSpan(["root"], [y]);
- return N.makeSpan(["mord", "sqrt"], [k, p], e);
+ }, e), k = R.makeSpan(["root"], [y]);
+ return R.makeSpan(["mord", "sqrt"], [k, p], e);
} else
- return N.makeSpan(["mord", "sqrt"], [p], e);
+ return R.makeSpan(["mord", "sqrt"], [p], e);
},
mathmlBuilder(n, e) {
var {
@@ -10470,13 +10470,13 @@ K({
return r ? new U.MathNode("mroot", [Ie(t, e), Ie(r, e)]) : new U.MathNode("msqrt", [Ie(t, e)]);
}
});
-var pc = {
- display: le.DISPLAY,
- text: le.TEXT,
- script: le.SCRIPT,
- scriptscript: le.SCRIPTSCRIPT
+var gc = {
+ display: ae.DISPLAY,
+ text: ae.TEXT,
+ script: ae.SCRIPT,
+ scriptscript: ae.SCRIPTSCRIPT
};
-K({
+Y({
type: "styling",
names: ["\\displaystyle", "\\textstyle", "\\scriptstyle", "\\scriptscriptstyle"],
props: {
@@ -10500,11 +10500,11 @@ K({
};
},
htmlBuilder(n, e) {
- var t = pc[n.style], r = e.havingStyle(t).withFont("");
- return f4(n.body, r, e);
+ var t = gc[n.style], r = e.havingStyle(t).withFont("");
+ return h4(n.body, r, e);
},
mathmlBuilder(n, e) {
- var t = pc[n.style], r = e.havingStyle(t), a = a0(n.body, r), i = new U.MathNode("mstyle", a), l = {
+ var t = gc[n.style], r = e.havingStyle(t), a = a0(n.body, r), i = new U.MathNode("mstyle", a), l = {
display: ["0", "true"],
text: ["0", "false"],
script: ["1", "false"],
@@ -10513,21 +10513,21 @@ K({
return i.setAttribute("scriptlevel", s[0]), i.setAttribute("displaystyle", s[1]), i;
}
});
-var o6 = function(e, t) {
+var u6 = function(e, t) {
var r = e.base;
if (r)
if (r.type === "op") {
- var a = r.limits && (t.style.size === le.DISPLAY.size || r.alwaysHandleSupSub);
+ var a = r.limits && (t.style.size === ae.DISPLAY.size || r.alwaysHandleSupSub);
return a ? ua : null;
} else if (r.type === "operatorname") {
- var i = r.alwaysHandleSupSub && (t.style.size === le.DISPLAY.size || r.limits);
- return i ? c4 : null;
+ var i = r.alwaysHandleSupSub && (t.style.size === ae.DISPLAY.size || r.limits);
+ return i ? f4 : null;
} else {
if (r.type === "accent")
- return ae.isCharacterBox(r.base) ? Iu : null;
+ return re.isCharacterBox(r.base) ? Lu : null;
if (r.type === "horizBrace") {
var l = !e.sub;
- return l === r.isOver ? s4 : null;
+ return l === r.isOver ? o4 : null;
} else
return null;
}
@@ -10536,28 +10536,28 @@ var o6 = function(e, t) {
Bn({
type: "supsub",
htmlBuilder(n, e) {
- var t = o6(n, e);
+ var t = u6(n, e);
if (t)
return t(n, e);
var {
base: r,
sup: a,
sub: i
- } = n, l = Ee(r, e), s, o, u = e.fontMetrics(), c = 0, d = 0, h = r && ae.isCharacterBox(r);
+ } = n, l = Se(r, e), s, o, u = e.fontMetrics(), c = 0, d = 0, h = r && re.isCharacterBox(r);
if (a) {
var p = e.havingStyle(e.style.sup());
- s = Ee(a, p, e), h || (c = l.height - p.fontMetrics().supDrop * p.sizeMultiplier / e.sizeMultiplier);
+ s = Se(a, p, e), h || (c = l.height - p.fontMetrics().supDrop * p.sizeMultiplier / e.sizeMultiplier);
}
if (i) {
var _ = e.havingStyle(e.style.sub());
- o = Ee(i, _, e), h || (d = l.depth + _.fontMetrics().subDrop * _.sizeMultiplier / e.sizeMultiplier);
+ o = Se(i, _, e), h || (d = l.depth + _.fontMetrics().subDrop * _.sizeMultiplier / e.sizeMultiplier);
}
var b;
- e.style === le.DISPLAY ? b = u.sup1 : e.style.cramped ? b = u.sup3 : b = u.sup2;
+ e.style === ae.DISPLAY ? b = u.sup1 : e.style.cramped ? b = u.sup3 : b = u.sup2;
var D = e.sizeMultiplier, y = X(0.5 / u.ptPerEm / D), k = null;
if (o) {
var w = n.base && n.base.type === "op" && n.base.name && (n.base.name === "\\oiint" || n.base.name === "\\oiiint");
- (l instanceof T0 || w) && (k = X(-l.italic));
+ (l instanceof x0 || w) && (k = X(-l.italic));
}
var E;
if (s && o) {
@@ -10580,7 +10580,7 @@ Bn({
shift: -c,
marginRight: y
}];
- E = N.makeVList({
+ E = R.makeVList({
positionType: "individualShift",
children: F
}, e);
@@ -10592,13 +10592,13 @@ Bn({
marginLeft: k,
marginRight: y
}];
- E = N.makeVList({
+ E = R.makeVList({
positionType: "shift",
positionData: d,
children: B
}, e);
} else if (s)
- c = Math.max(c, b, s.depth + 0.25 * u.xHeight), E = N.makeVList({
+ c = Math.max(c, b, s.depth + 0.25 * u.xHeight), E = R.makeVList({
positionType: "shift",
positionData: -c,
children: [{
@@ -10609,8 +10609,8 @@ Bn({
}, e);
else
throw new Error("supsub must have either sup or sub.");
- var I = Ko(l, "right") || "mord";
- return N.makeSpan([I], [l, N.makeSpan(["msupsub"], [E])], e);
+ var I = Jo(l, "right") || "mord";
+ return R.makeSpan([I], [l, R.makeSpan(["msupsub"], [E])], e);
},
mathmlBuilder(n, e) {
var t = !1, r, a;
@@ -10623,14 +10623,14 @@ Bn({
else if (n.sub)
if (n.sup) {
var u = n.base;
- u && u.type === "op" && u.limits && e.style === le.DISPLAY || u && u.type === "operatorname" && u.alwaysHandleSupSub && (e.style === le.DISPLAY || u.limits) ? l = "munderover" : l = "msubsup";
+ u && u.type === "op" && u.limits && e.style === ae.DISPLAY || u && u.type === "operatorname" && u.alwaysHandleSupSub && (e.style === ae.DISPLAY || u.limits) ? l = "munderover" : l = "msubsup";
} else {
var o = n.base;
- o && o.type === "op" && o.limits && (e.style === le.DISPLAY || o.alwaysHandleSupSub) || o && o.type === "operatorname" && o.alwaysHandleSupSub && (o.limits || e.style === le.DISPLAY) ? l = "munder" : l = "msub";
+ o && o.type === "op" && o.limits && (e.style === ae.DISPLAY || o.alwaysHandleSupSub) || o && o.type === "operatorname" && o.alwaysHandleSupSub && (o.limits || e.style === ae.DISPLAY) ? l = "munder" : l = "msub";
}
else {
var s = n.base;
- s && s.type === "op" && s.limits && (e.style === le.DISPLAY || s.alwaysHandleSupSub) || s && s.type === "operatorname" && s.alwaysHandleSupSub && (s.limits || e.style === le.DISPLAY) ? l = "mover" : l = "msup";
+ s && s.type === "op" && s.limits && (e.style === ae.DISPLAY || s.alwaysHandleSupSub) || s && s.type === "operatorname" && s.alwaysHandleSupSub && (s.limits || e.style === ae.DISPLAY) ? l = "mover" : l = "msup";
}
return new U.MathNode(l, i);
}
@@ -10638,18 +10638,18 @@ Bn({
Bn({
type: "atom",
htmlBuilder(n, e) {
- return N.mathsym(n.text, n.mode, e, ["m" + n.family]);
+ return R.mathsym(n.text, n.mode, e, ["m" + n.family]);
},
mathmlBuilder(n, e) {
- var t = new U.MathNode("mo", [C0(n.text, n.mode)]);
+ var t = new U.MathNode("mo", [T0(n.text, n.mode)]);
if (n.family === "bin") {
- var r = zu(n, e);
+ var r = Bu(n, e);
r === "bold-italic" && t.setAttribute("mathvariant", r);
} else n.family === "punct" ? t.setAttribute("separator", "true") : (n.family === "open" || n.family === "close") && t.setAttribute("stretchy", "false");
return t;
}
});
-var h4 = {
+var d4 = {
mi: "italic",
mn: "normal",
mtext: "normal"
@@ -10657,21 +10657,21 @@ var h4 = {
Bn({
type: "mathord",
htmlBuilder(n, e) {
- return N.makeOrd(n, e, "mathord");
+ return R.makeOrd(n, e, "mathord");
},
mathmlBuilder(n, e) {
- var t = new U.MathNode("mi", [C0(n.text, n.mode, e)]), r = zu(n, e) || "italic";
- return r !== h4[t.type] && t.setAttribute("mathvariant", r), t;
+ var t = new U.MathNode("mi", [T0(n.text, n.mode, e)]), r = Bu(n, e) || "italic";
+ return r !== d4[t.type] && t.setAttribute("mathvariant", r), t;
}
});
Bn({
type: "textord",
htmlBuilder(n, e) {
- return N.makeOrd(n, e, "textord");
+ return R.makeOrd(n, e, "textord");
},
mathmlBuilder(n, e) {
- var t = C0(n.text, n.mode, e), r = zu(n, e) || "normal", a;
- return n.mode === "text" ? a = new U.MathNode("mtext", [t]) : /[0-9]/.test(n.text) ? a = new U.MathNode("mn", [t]) : n.text === "\\prime" ? a = new U.MathNode("mo", [t]) : a = new U.MathNode("mi", [t]), r !== h4[a.type] && a.setAttribute("mathvariant", r), a;
+ var t = T0(n.text, n.mode, e), r = Bu(n, e) || "normal", a;
+ return n.mode === "text" ? a = new U.MathNode("mtext", [t]) : /[0-9]/.test(n.text) ? a = new U.MathNode("mn", [t]) : n.text === "\\prime" ? a = new U.MathNode("mo", [t]) : a = new U.MathNode("mi", [t]), r !== d4[a.type] && a.setAttribute("mathvariant", r), a;
}
});
var io = {
@@ -10694,13 +10694,13 @@ Bn({
if (lo.hasOwnProperty(n.text)) {
var t = lo[n.text].className || "";
if (n.mode === "text") {
- var r = N.makeOrd(n, e, "textord");
+ var r = R.makeOrd(n, e, "textord");
return r.classes.push(t), r;
} else
- return N.makeSpan(["mspace", t], [N.mathsym(n.text, n.mode, e)], e);
+ return R.makeSpan(["mspace", t], [R.mathsym(n.text, n.mode, e)], e);
} else {
if (io.hasOwnProperty(n.text))
- return N.makeSpan(["mspace", io[n.text]], [], e);
+ return R.makeSpan(["mspace", io[n.text]], [], e);
throw new G('Unknown type of space "' + n.text + '"');
}
},
@@ -10716,42 +10716,42 @@ Bn({
return t;
}
});
-var gc = () => {
+var _c = () => {
var n = new U.MathNode("mtd", []);
return n.setAttribute("width", "50%"), n;
};
Bn({
type: "tag",
mathmlBuilder(n, e) {
- var t = new U.MathNode("mtable", [new U.MathNode("mtr", [gc(), new U.MathNode("mtd", [cn(n.body, e)]), gc(), new U.MathNode("mtd", [cn(n.tag, e)])])]);
+ var t = new U.MathNode("mtable", [new U.MathNode("mtr", [_c(), new U.MathNode("mtd", [cn(n.body, e)]), _c(), new U.MathNode("mtd", [cn(n.tag, e)])])]);
return t.setAttribute("width", "100%"), t;
}
});
-var _c = {
+var vc = {
"\\text": void 0,
"\\textrm": "textrm",
"\\textsf": "textsf",
"\\texttt": "texttt",
"\\textnormal": "textrm"
-}, vc = {
+}, bc = {
"\\textbf": "textbf",
"\\textmd": "textmd"
-}, u6 = {
+}, c6 = {
"\\textit": "textit",
"\\textup": "textup"
-}, bc = (n, e) => {
+}, wc = (n, e) => {
var t = n.font;
if (t) {
- if (_c[t])
- return e.withTextFontFamily(_c[t]);
if (vc[t])
- return e.withTextFontWeight(vc[t]);
+ return e.withTextFontFamily(vc[t]);
+ if (bc[t])
+ return e.withTextFontWeight(bc[t]);
if (t === "\\emph")
return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit");
} else return e;
- return e.withTextFontShape(u6[t]);
+ return e.withTextFontShape(c6[t]);
};
-K({
+Y({
type: "text",
names: [
// Font families
@@ -10782,20 +10782,20 @@ K({
return {
type: "text",
mode: t.mode,
- body: rt(a),
+ body: tt(a),
font: r
};
},
htmlBuilder(n, e) {
- var t = bc(n, e), r = vt(n.body, t, !0);
- return N.makeSpan(["mord", "text"], r, t);
+ var t = wc(n, e), r = gt(n.body, t, !0);
+ return R.makeSpan(["mord", "text"], r, t);
},
mathmlBuilder(n, e) {
- var t = bc(n, e);
+ var t = wc(n, e);
return cn(n.body, t);
}
});
-K({
+Y({
type: "underline",
names: ["\\underline"],
props: {
@@ -10813,7 +10813,7 @@ K({
};
},
htmlBuilder(n, e) {
- var t = Ee(n.body, e), r = N.makeLineSpan("underline-line", e), a = e.fontMetrics().defaultRuleThickness, i = N.makeVList({
+ var t = Se(n.body, e), r = R.makeLineSpan("underline-line", e), a = e.fontMetrics().defaultRuleThickness, i = R.makeVList({
positionType: "top",
positionData: t.height,
children: [{
@@ -10830,7 +10830,7 @@ K({
elem: t
}]
}, e);
- return N.makeSpan(["mord", "underline"], [i], e);
+ return R.makeSpan(["mord", "underline"], [i], e);
},
mathmlBuilder(n, e) {
var t = new U.MathNode("mo", [new U.TextNode("‾")]);
@@ -10839,7 +10839,7 @@ K({
return r.setAttribute("accentunder", "true"), r;
}
});
-K({
+Y({
type: "vcenter",
names: ["\\vcenter"],
props: {
@@ -10859,8 +10859,8 @@ K({
};
},
htmlBuilder(n, e) {
- var t = Ee(n.body, e), r = e.fontMetrics().axisHeight, a = 0.5 * (t.height - r - (t.depth + r));
- return N.makeVList({
+ var t = Se(n.body, e), r = e.fontMetrics().axisHeight, a = 0.5 * (t.height - r - (t.depth + r));
+ return R.makeVList({
positionType: "shift",
positionData: a,
children: [{
@@ -10873,7 +10873,7 @@ K({
return new U.MathNode("mpadded", [Ie(n.body, e)], ["vcenter"]);
}
});
-K({
+Y({
type: "verb",
names: ["\\verb"],
props: {
@@ -10884,34 +10884,34 @@ K({
throw new G("\\verb ended by end of line instead of matching delimiter");
},
htmlBuilder(n, e) {
- for (var t = wc(n), r = [], a = e.havingStyle(e.style.text()), i = 0; i < t.length; i++) {
+ for (var t = yc(n), r = [], a = e.havingStyle(e.style.text()), i = 0; i < t.length; i++) {
var l = t[i];
- l === "~" && (l = "\\textasciitilde"), r.push(N.makeSymbol(l, "Typewriter-Regular", n.mode, a, ["mord", "texttt"]));
+ l === "~" && (l = "\\textasciitilde"), r.push(R.makeSymbol(l, "Typewriter-Regular", n.mode, a, ["mord", "texttt"]));
}
- return N.makeSpan(["mord", "text"].concat(a.sizingClasses(e)), N.tryCombineChars(r), a);
+ return R.makeSpan(["mord", "text"].concat(a.sizingClasses(e)), R.tryCombineChars(r), a);
},
mathmlBuilder(n, e) {
- var t = new U.TextNode(wc(n)), r = new U.MathNode("mtext", [t]);
+ var t = new U.TextNode(yc(n)), r = new U.MathNode("mtext", [t]);
return r.setAttribute("mathvariant", "monospace"), r;
}
});
-var wc = (n) => n.body.replace(/ /g, n.star ? "␣" : " "), an = Ld, d4 = `[ \r
- ]`, c6 = "\\\\[a-zA-Z@]+", f6 = "\\\\[^\uD800-\uDFFF]", h6 = "(" + c6 + ")" + d4 + "*", d6 = `\\\\(
+var yc = (n) => n.body.replace(/ /g, n.star ? "␣" : " "), an = Nd, m4 = `[ \r
+ ]`, f6 = "\\\\[a-zA-Z@]+", h6 = "\\\\[^\uD800-\uDFFF]", d6 = "(" + f6 + ")" + m4 + "*", m6 = `\\\\(
|[ \r ]+
-?)[ \r ]*`, eu = "[̀-ͯ]", m6 = new RegExp(eu + "+$"), p6 = "(" + d4 + "+)|" + // whitespace
-(d6 + "|") + // \whitespace
+?)[ \r ]*`, tu = "[̀-ͯ]", p6 = new RegExp(tu + "+$"), g6 = "(" + m4 + "+)|" + // whitespace
+(m6 + "|") + // \whitespace
"([!-\\[\\]-‧-豈-]" + // single codepoint
-(eu + "*") + // ...plus accents
+(tu + "*") + // ...plus accents
"|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
-(eu + "*") + // ...plus accents
+(tu + "*") + // ...plus accents
"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
-("|" + h6) + // \macroName + spaces
-("|" + f6 + ")");
-class yc {
+("|" + d6) + // \macroName + spaces
+("|" + h6 + ")");
+class kc {
// Category codes. The lexer only supports comment characters (14) for now.
// MacroExpander additionally distinguishes active (13).
constructor(e, t) {
- this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(p6, "g"), this.catcodes = {
+ this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(g6, "g"), this.catcodes = {
"%": 14,
// comment character
"~": 13
@@ -10927,20 +10927,20 @@ class yc {
lex() {
var e = this.input, t = this.tokenRegex.lastIndex;
if (t === e.length)
- return new x0("EOF", new c0(this, t, t));
+ return new S0("EOF", new u0(this, t, t));
var r = this.tokenRegex.exec(e);
if (r === null || r.index !== t)
- throw new G("Unexpected character: '" + e[t] + "'", new x0(e[t], new c0(this, t, t + 1)));
+ throw new G("Unexpected character: '" + e[t] + "'", new S0(e[t], new u0(this, t, t + 1)));
var a = r[6] || r[3] || (r[2] ? "\\ " : " ");
if (this.catcodes[a] === 14) {
var i = e.indexOf(`
`, this.tokenRegex.lastIndex);
return i === -1 ? (this.tokenRegex.lastIndex = e.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = i + 1, this.lex();
}
- return new x0(a, new c0(this, t, this.tokenRegex.lastIndex));
+ return new S0(a, new u0(this, t, this.tokenRegex.lastIndex));
}
}
-class g6 {
+class _6 {
/**
* Both arguments are optional. The first argument is an object of
* built-in mappings which never change. The second argument is an object
@@ -11011,7 +11011,7 @@ class g6 {
t == null ? delete this.current[e] : this.current[e] = t;
}
}
-var _6 = r4;
+var v6 = n4;
v("\\noexpand", function(n) {
var e = n.popToken();
return n.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
@@ -11063,7 +11063,7 @@ v("\\TextOrMath", function(n) {
numArgs: 0
};
});
-var kc = {
+var Dc = {
0: 0,
1: 1,
2: 2,
@@ -11104,14 +11104,14 @@ v("\\char", function(n) {
else
t = 10;
if (t) {
- if (r = kc[e.text], r == null || r >= t)
+ if (r = Dc[e.text], r == null || r >= t)
throw new G("Invalid base-" + t + " digit " + e.text);
- for (var a; (a = kc[n.future().text]) != null && a < t; )
+ for (var a; (a = Dc[n.future().text]) != null && a < t; )
r *= t, r += a, n.popToken();
}
return "\\@char{" + r + "}";
});
-var Uu = (n, e, t) => {
+var Vu = (n, e, t) => {
var r = n.consumeArg().tokens;
if (r.length !== 1)
throw new G("\\newcommand's first argument must be a macro name");
@@ -11133,9 +11133,9 @@ var Uu = (n, e, t) => {
numArgs: l
}), "";
};
-v("\\newcommand", (n) => Uu(n, !1, !0));
-v("\\renewcommand", (n) => Uu(n, !0, !1));
-v("\\providecommand", (n) => Uu(n, !0, !0));
+v("\\newcommand", (n) => Vu(n, !1, !0));
+v("\\renewcommand", (n) => Vu(n, !0, !1));
+v("\\providecommand", (n) => Vu(n, !0, !0));
v("\\message", (n) => {
var e = n.consumeArgs(1)[0];
return console.log(e.reverse().map((t) => t.text).join("")), "";
@@ -11222,7 +11222,7 @@ v("\\boxed", "\\fbox{$\\displaystyle{#1}$}");
v("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;");
v("\\implies", "\\DOTSB\\;\\Longrightarrow\\;");
v("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;");
-var Dc = {
+var Ac = {
",": "\\dotsc",
"\\not": "\\dotsb",
// \keybin@ checks for the following:
@@ -11279,9 +11279,9 @@ var Dc = {
};
v("\\dots", function(n) {
var e = "\\dotso", t = n.expandAfterFuture().text;
- return t in Dc ? e = Dc[t] : (t.slice(0, 4) === "\\not" || t in Ne.math && ae.contains(["bin", "rel"], Ne.math[t].group)) && (e = "\\dotsb"), e;
+ return t in Ac ? e = Ac[t] : (t.slice(0, 4) === "\\not" || t in Ne.math && re.contains(["bin", "rel"], Ne.math[t].group)) && (e = "\\dotsb"), e;
});
-var Vu = {
+var Gu = {
// \rightdelim@ checks for the following:
")": !0,
"]": !0,
@@ -11307,15 +11307,15 @@ var Vu = {
};
v("\\dotso", function(n) {
var e = n.future().text;
- return e in Vu ? "\\ldots\\," : "\\ldots";
+ return e in Gu ? "\\ldots\\," : "\\ldots";
});
v("\\dotsc", function(n) {
var e = n.future().text;
- return e in Vu && e !== "," ? "\\ldots\\," : "\\ldots";
+ return e in Gu && e !== "," ? "\\ldots\\," : "\\ldots";
});
v("\\cdots", function(n) {
var e = n.future().text;
- return e in Vu ? "\\@cdots\\," : "\\@cdots";
+ return e in Gu ? "\\@cdots\\," : "\\@cdots";
});
v("\\dotsb", "\\cdots");
v("\\dotsm", "\\cdots");
@@ -11353,9 +11353,9 @@ v("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
v("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
v("\\newline", "\\\\\\relax");
v("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
-var m4 = X(ar["Main-Regular"][84][1] - 0.7 * ar["Main-Regular"][65][1]);
-v("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + m4 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
-v("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + m4 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
+var p4 = X(rr["Main-Regular"][84][1] - 0.7 * rr["Main-Regular"][65][1]);
+v("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + p4 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
+v("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + p4 + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
v("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
v("\\@hspace", "\\hskip #1\\relax");
v("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax");
@@ -11501,7 +11501,7 @@ v("\\ket", "\\mathinner{|{#1}\\rangle}");
v("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
v("\\Bra", "\\left\\langle#1\\right|");
v("\\Ket", "\\left|#1\\right\\rangle");
-var p4 = (n) => (e) => {
+var g4 = (n) => (e) => {
var t = e.consumeArg().tokens, r = e.consumeArg().tokens, a = e.consumeArg().tokens, i = e.consumeArg().tokens, l = e.macros.get("|"), s = e.macros.get("\\|");
e.macros.beginGroup();
var o = (d) => (h) => {
@@ -11528,8 +11528,8 @@ var p4 = (n) => (e) => {
numArgs: 0
};
};
-v("\\bra@ket", p4(!1));
-v("\\bra@set", p4(!0));
+v("\\bra@ket", g4(!1));
+v("\\bra@set", g4(!0));
v("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");
v("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");
v("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");
@@ -11590,7 +11590,7 @@ v("\\grayH", "\\textcolor{##3b3e40}{#1}");
v("\\grayI", "\\textcolor{##21242c}{#1}");
v("\\kaBlue", "\\textcolor{##314453}{#1}");
v("\\kaGreen", "\\textcolor{##71B307}{#1}");
-var g4 = {
+var _4 = {
"^": !0,
// Parser.js
_: !0,
@@ -11600,16 +11600,16 @@ var g4 = {
"\\nolimits": !0
// Parser.js
};
-class v6 {
+class b6 {
constructor(e, t, r) {
- this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new g6(_6, t.macros), this.mode = r, this.stack = [];
+ this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new _6(v6, t.macros), this.mode = r, this.stack = [];
}
/**
* Feed a new input string to the same MacroExpander
* (with existing macros etc.).
*/
feed(e) {
- this.lexer = new yc(e, this.settings);
+ this.lexer = new kc(e, this.settings);
}
/**
* Switches between "text" and "math" modes.
@@ -11681,7 +11681,7 @@ class v6 {
start: t,
end: r
} = this.consumeArg());
- return this.pushToken(new x0("EOF", r.loc)), this.pushTokens(a), t.range(r, "");
+ return this.pushToken(new S0("EOF", r.loc)), this.pushTokens(a), t.range(r, "");
}
/**
* Consume all following space tokens, without expansion.
@@ -11823,7 +11823,7 @@ class v6 {
* tokens, or return `undefined` if no such macro is defined.
*/
expandMacro(e) {
- return this.macros.has(e) ? this.expandTokens([new x0(e)]) : void 0;
+ return this.macros.has(e) ? this.expandTokens([new S0(e)]) : void 0;
}
/**
* Fully expand the given token stream and return the resulting list of
@@ -11866,7 +11866,7 @@ class v6 {
if (a.indexOf("#") !== -1)
for (var l = a.replace(/##/g, ""); l.indexOf("#" + (i + 1)) !== -1; )
++i;
- for (var s = new yc(a, this.settings), o = [], u = s.lex(); u.text !== "EOF"; )
+ for (var s = new kc(a, this.settings), o = [], u = s.lex(); u.text !== "EOF"; )
o.push(u), u = s.lex();
o.reverse();
var c = {
@@ -11884,7 +11884,7 @@ class v6 {
* `implicitCommands`.
*/
isDefined(e) {
- return this.macros.has(e) || an.hasOwnProperty(e) || Ne.math.hasOwnProperty(e) || Ne.text.hasOwnProperty(e) || g4.hasOwnProperty(e);
+ return this.macros.has(e) || an.hasOwnProperty(e) || Ne.math.hasOwnProperty(e) || Ne.text.hasOwnProperty(e) || _4.hasOwnProperty(e);
}
/**
* Determine whether a command is expandable.
@@ -11894,7 +11894,7 @@ class v6 {
return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : an.hasOwnProperty(e) && !an[e].primitive;
}
}
-var Ac = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Gi = Object.freeze({
+var Ec = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Gi = Object.freeze({
"₊": "+",
"₋": "-",
"₌": "=",
@@ -12044,7 +12044,7 @@ var Ac = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
"̧": {
text: "\\c"
}
-}, Ec = {
+}, Sc = {
á: "á",
à: "à",
ä: "ä",
@@ -12392,7 +12392,7 @@ var Ac = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
};
class ts {
constructor(e, t) {
- this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new v6(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
+ this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new b6(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
}
/**
* Checks a result to make sure it has the right type, and throws an
@@ -12441,7 +12441,7 @@ class ts {
*/
subparse(e) {
var t = this.nextToken;
- this.consume(), this.gullet.pushToken(new x0("}")), this.gullet.pushTokens(e);
+ this.consume(), this.gullet.pushToken(new S0("}")), this.gullet.pushTokens(e);
var r = this.parseExpression(!1);
return this.expect("}"), this.nextToken = t, r;
}
@@ -12578,12 +12578,12 @@ class ts {
body: o
};
} else if (Gi[i.text]) {
- var u = Ac.test(i.text), c = [];
- for (c.push(new x0(Gi[i.text])), this.consume(); ; ) {
+ var u = Ec.test(i.text), c = [];
+ for (c.push(new S0(Gi[i.text])), this.consume(); ; ) {
var d = this.fetch().text;
- if (!Gi[d] || Ac.test(d) !== u)
+ if (!Gi[d] || Ec.test(d) !== u)
break;
- c.unshift(new x0(Gi[d])), this.consume();
+ c.unshift(new S0(Gi[d])), this.consume();
}
var h = this.subparse(c);
u ? a = {
@@ -12778,7 +12778,7 @@ class ts {
// sign + magnitude, cast to number
unit: a[3]
};
- if (!Sd(i))
+ if (!xd(i))
throw new G("Invalid unit: '" + i.unit + "'", t);
return {
type: "size",
@@ -12838,7 +12838,7 @@ class ts {
this.expect(l), this.gullet.endGroup(), i = {
type: "ordgroup",
mode: this.mode,
- loc: c0.range(r, o),
+ loc: u0.range(r, o),
body: s,
// A group formed by \begingroup...\endgroup is a semi-simple group
// which doesn't affect spacing in math mode, i.e., is transparent.
@@ -12846,7 +12846,7 @@ class ts {
// use-begingroup-instead-of-bgroup
semisimple: a === "\\begingroup" || void 0
};
- } else if (i = this.parseFunction(t, e) || this.parseSymbol(), i == null && a[0] === "\\" && !g4.hasOwnProperty(a)) {
+ } else if (i = this.parseFunction(t, e) || this.parseSymbol(), i == null && a[0] === "\\" && !_4.hasOwnProperty(a)) {
if (this.settings.throwOnError)
throw new G("Undefined control sequence: " + a, r);
i = this.formatUnsupportedCmd(a), this.consume();
@@ -12867,17 +12867,17 @@ class ts {
i === "-" && e[r + 1].text === "-" && (r + 1 < t && e[r + 2].text === "-" ? (e.splice(r, 3, {
type: "textord",
mode: "text",
- loc: c0.range(a, e[r + 2]),
+ loc: u0.range(a, e[r + 2]),
text: "---"
}), t -= 2) : (e.splice(r, 2, {
type: "textord",
mode: "text",
- loc: c0.range(a, e[r + 1]),
+ loc: u0.range(a, e[r + 1]),
text: "--"
}), t -= 1)), (i === "'" || i === "`") && e[r + 1].text === i && (e.splice(r, 2, {
type: "textord",
mode: "text",
- loc: c0.range(a, e[r + 1]),
+ loc: u0.range(a, e[r + 1]),
text: i + i
}), t -= 1);
}
@@ -12901,14 +12901,14 @@ class ts {
star: a
};
}
- Ec.hasOwnProperty(t[0]) && !Ne[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = Ec[t[0]] + t.slice(1));
- var i = m6.exec(t);
+ Sc.hasOwnProperty(t[0]) && !Ne[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = Sc[t[0]] + t.slice(1));
+ var i = p6.exec(t);
i && (t = t.substring(0, i.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
var l;
if (Ne[this.mode][t]) {
- this.settings.strict && this.mode === "math" && Zo.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
- var s = Ne[this.mode][t].group, o = c0.range(e), u;
- if (l3.hasOwnProperty(s)) {
+ this.settings.strict && this.mode === "math" && Ko.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
+ var s = Ne[this.mode][t].group, o = u0.range(e), u;
+ if (s3.hasOwnProperty(s)) {
var c = s;
u = {
type: "atom",
@@ -12926,10 +12926,10 @@ class ts {
};
l = u;
} else if (t.charCodeAt(0) >= 128)
- this.settings.strict && (Ed(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), l = {
+ this.settings.strict && (Sd(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), l = {
type: "textord",
mode: "text",
- loc: c0.range(e),
+ loc: u0.range(e),
text: t
};
else
@@ -12945,7 +12945,7 @@ class ts {
l = {
type: "accent",
mode: this.mode,
- loc: c0.range(e),
+ loc: u0.range(e),
label: p,
isStretchy: !1,
isShifty: !0,
@@ -12957,7 +12957,7 @@ class ts {
}
}
ts.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
-var Gu = function(e, t) {
+var ju = function(e, t) {
if (!(typeof e == "string" || e instanceof String))
throw new TypeError("KaTeX can only parse string typed expression");
var r = new ts(e, t);
@@ -12970,46 +12970,46 @@ var Gu = function(e, t) {
type: "tag",
mode: "text",
body: a,
- tag: r.subparse([new x0("\\df@tag")])
+ tag: r.subparse([new S0("\\df@tag")])
}];
}
return a;
-}, _4 = function(e, t, r) {
+}, v4 = function(e, t, r) {
t.textContent = "";
- var a = ju(e, r).toNode();
+ var a = Wu(e, r).toNode();
t.appendChild(a);
};
-typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), _4 = function() {
+typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), v4 = function() {
throw new G("KaTeX doesn't work in quirks mode.");
});
-var b6 = function(e, t) {
- var r = ju(e, t).toMarkup();
+var w6 = function(e, t) {
+ var r = Wu(e, t).toMarkup();
return r;
-}, w6 = function(e, t) {
- var r = new Su(t);
- return Gu(e, r);
-}, v4 = function(e, t, r) {
+}, y6 = function(e, t) {
+ var r = new xu(t);
+ return ju(e, r);
+}, b4 = function(e, t, r) {
if (r.throwOnError || !(e instanceof G))
throw e;
- var a = N.makeSpan(["katex-error"], [new T0(t)]);
+ var a = R.makeSpan(["katex-error"], [new x0(t)]);
return a.setAttribute("title", e.toString()), a.setAttribute("style", "color:" + r.errorColor), a;
-}, ju = function(e, t) {
- var r = new Su(t);
+}, Wu = function(e, t) {
+ var r = new xu(t);
try {
- var a = Gu(e, r);
- return C3(a, e, r);
- } catch (i) {
- return v4(i, e, r);
- }
-}, y6 = function(e, t) {
- var r = new Su(t);
- try {
- var a = Gu(e, r);
+ var a = ju(e, r);
return F3(a, e, r);
} catch (i) {
- return v4(i, e, r);
+ return b4(i, e, r);
}
-}, tu = {
+}, k6 = function(e, t) {
+ var r = new xu(t);
+ try {
+ var a = ju(e, r);
+ return M3(a, e, r);
+ } catch (i) {
+ return b4(i, e, r);
+ }
+}, ru = {
/**
* Current KaTeX version
*/
@@ -13018,12 +13018,12 @@ var b6 = function(e, t) {
* Renders the given LaTeX into an HTML+MathML combination, and adds
* it as a child to the specified DOM node.
*/
- render: _4,
+ render: v4,
/**
* Renders the given LaTeX into an HTML+MathML combination string,
* for sending to the client.
*/
- renderToString: b6,
+ renderToString: w6,
/**
* KaTeX error, usually during parsing.
*/
@@ -13040,7 +13040,7 @@ var b6 = function(e, t) {
* The internal tree representation is unstable and is very likely
* to change. Use at your own risk.
*/
- __parse: w6,
+ __parse: y6,
/**
* Renders the given LaTeX into an HTML+MathML internal DOM tree
* representation, without flattening that representation to a string.
@@ -13049,7 +13049,7 @@ var b6 = function(e, t) {
* The internal tree representation is unstable and is very likely
* to change. Use at your own risk.
*/
- __renderToDomTree: ju,
+ __renderToDomTree: Wu,
/**
* Renders the given LaTeX into an HTML internal DOM tree representation,
* without MathML and without flattening that representation to a string.
@@ -13058,12 +13058,12 @@ var b6 = function(e, t) {
* The internal tree representation is unstable and is very likely
* to change. Use at your own risk.
*/
- __renderToHTMLTree: y6,
+ __renderToHTMLTree: k6,
/**
* extends internal font metrics object with a new object
* each key in the new object represents a font name
*/
- __setFontMetrics: $5,
+ __setFontMetrics: e3,
/**
* adds a new symbol to builtin symbols table
*/
@@ -13073,7 +13073,7 @@ var b6 = function(e, t) {
* which directly produce parse tree elements
* and have their own html/mathml builders
*/
- __defineFunction: K,
+ __defineFunction: Y,
/**
* adds a new macro to builtin macro list
*/
@@ -13087,18 +13087,18 @@ var b6 = function(e, t) {
*/
__domTree: {
Span: ri,
- Anchor: Cu,
- SymbolNode: T0,
- SvgNode: Ir,
+ Anchor: Fu,
+ SymbolNode: x0,
+ SvgNode: Br,
PathNode: un,
- LineNode: Yo
+ LineNode: Zo
}
};
const ry = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
- default: tu
+ default: ru
}, Symbol.toStringTag, { value: "Module" }));
-var k6 = function(e, t, r) {
+var D6 = function(e, t, r) {
for (var a = r, i = 0, l = e.length; a < t.length; ) {
var s = t[a];
if (i <= 0 && t.slice(a, a + l) === e)
@@ -13106,18 +13106,18 @@ var k6 = function(e, t, r) {
s === "\\" ? a++ : s === "{" ? i++ : s === "}" && i--, a++;
}
return -1;
-}, D6 = function(e) {
+}, A6 = function(e) {
return e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
-}, A6 = /^\\begin{/, E6 = function(e, t) {
- for (var r, a = [], i = new RegExp("(" + t.map((u) => D6(u.left)).join("|") + ")"); r = e.search(i), r !== -1; ) {
+}, E6 = /^\\begin{/, S6 = function(e, t) {
+ for (var r, a = [], i = new RegExp("(" + t.map((u) => A6(u.left)).join("|") + ")"); r = e.search(i), r !== -1; ) {
r > 0 && (a.push({
type: "text",
data: e.slice(0, r)
}), e = e.slice(r));
var l = t.findIndex((u) => e.startsWith(u.left));
- if (r = k6(t[l].right, e, t[l].left.length), r === -1)
+ if (r = D6(t[l].right, e, t[l].left.length), r === -1)
break;
- var s = e.slice(0, r + t[l].right.length), o = A6.test(s) ? s : e.slice(t[l].left.length, r);
+ var s = e.slice(0, r + t[l].right.length), o = E6.test(s) ? s : e.slice(t[l].left.length, r);
a.push({
type: "math",
data: o,
@@ -13129,8 +13129,8 @@ var k6 = function(e, t, r) {
type: "text",
data: e
}), a;
-}, S6 = function(e, t) {
- var r = E6(e, t.delimiters);
+}, x6 = function(e, t) {
+ var r = S6(e, t.delimiters);
if (r.length === 1 && r[0].type === "text")
return null;
for (var a = document.createDocumentFragment(), i = 0; i < r.length; i++)
@@ -13140,9 +13140,9 @@ var k6 = function(e, t, r) {
var l = document.createElement("span"), s = r[i].data;
t.displayMode = r[i].display;
try {
- t.preProcess && (s = t.preProcess(s)), tu.render(s, l, t);
+ t.preProcess && (s = t.preProcess(s)), ru.render(s, l, t);
} catch (o) {
- if (!(o instanceof tu.ParseError))
+ if (!(o instanceof ru.ParseError))
throw o;
t.errorCallback("KaTeX auto-render: Failed to parse `" + r[i].data + "` with ", o), a.appendChild(document.createTextNode(r[i].rawData));
continue;
@@ -13150,13 +13150,13 @@ var k6 = function(e, t, r) {
a.appendChild(l);
}
return a;
-}, x6 = function n(e, t) {
+}, T6 = function n(e, t) {
for (var r = 0; r < e.childNodes.length; r++) {
var a = e.childNodes[r];
if (a.nodeType === 3) {
for (var i = a.textContent, l = a.nextSibling, s = 0; l && l.nodeType === Node.TEXT_NODE; )
i += l.textContent, l = l.nextSibling, s++;
- var o = S6(i, t);
+ var o = x6(i, t);
if (o) {
for (var u = 0; u < s; u++)
a.nextSibling.remove();
@@ -13168,7 +13168,7 @@ var k6 = function(e, t, r) {
d && n(a, t);
}();
}
-}, T6 = function(e, t) {
+}, C6 = function(e, t) {
if (!e)
throw new Error("No element provided to render");
var r = {};
@@ -13219,9 +13219,9 @@ var k6 = function(e, t, r) {
right: "\\]",
display: !0
}
- ], r.ignoredTags = r.ignoredTags || ["script", "noscript", "style", "textarea", "pre", "code", "option"], r.ignoredClasses = r.ignoredClasses || [], r.errorCallback = r.errorCallback || console.error, r.macros = r.macros || {}, x6(e, r);
+ ], r.ignoredTags = r.ignoredTags || ["script", "noscript", "style", "textarea", "pre", "code", "option"], r.ignoredClasses = r.ignoredClasses || [], r.errorCallback = r.errorCallback || console.error, r.macros = r.macros || {}, T6(e, r);
};
-function Wu() {
+function Xu() {
return {
async: !1,
breaks: !1,
@@ -13235,43 +13235,43 @@ function Wu() {
walkTokens: null
};
}
-let In = Wu();
-function b4(n) {
+let In = Xu();
+function w4(n) {
In = n;
}
-const w4 = /[&<>"']/, C6 = new RegExp(w4.source, "g"), y4 = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, F6 = new RegExp(y4.source, "g"), M6 = {
+const y4 = /[&<>"']/, F6 = new RegExp(y4.source, "g"), k4 = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, M6 = new RegExp(k4.source, "g"), z6 = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
-}, Sc = (n) => M6[n];
-function f0(n, e) {
+}, xc = (n) => z6[n];
+function c0(n, e) {
if (e) {
- if (w4.test(n))
- return n.replace(C6, Sc);
- } else if (y4.test(n))
- return n.replace(F6, Sc);
+ if (y4.test(n))
+ return n.replace(F6, xc);
+ } else if (k4.test(n))
+ return n.replace(M6, xc);
return n;
}
-const z6 = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
-function B6(n) {
- return n.replace(z6, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
+const B6 = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
+function I6(n) {
+ return n.replace(B6, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
}
-const I6 = /(^|[^\[])\^/g;
+const L6 = /(^|[^\[])\^/g;
function Me(n, e) {
let t = typeof n == "string" ? n : n.source;
e = e || "";
const r = {
replace: (a, i) => {
let l = typeof i == "string" ? i : i.source;
- return l = l.replace(I6, "$1"), t = t.replace(a, l), r;
+ return l = l.replace(L6, "$1"), t = t.replace(a, l), r;
},
getRegex: () => new RegExp(t, e)
};
return r;
}
-function xc(n) {
+function Tc(n) {
try {
n = encodeURI(n).replace(/%25/g, "%");
} catch {
@@ -13280,7 +13280,7 @@ function xc(n) {
return n;
}
const Pa = { exec: () => null };
-function Tc(n, e) {
+function Cc(n, e) {
const t = n.replace(/\|/g, (i, l, s) => {
let o = !1, u = l;
for (; --u >= 0 && s[u] === "\\"; )
@@ -13314,7 +13314,7 @@ function ji(n, e, t) {
}
return n.slice(0, r - a);
}
-function L6(n, e) {
+function N6(n, e) {
if (n.indexOf(e[1]) === -1)
return -1;
let t = 0;
@@ -13327,8 +13327,8 @@ function L6(n, e) {
return r;
return -1;
}
-function Cc(n, e, t, r) {
- const a = e.href, i = e.title ? f0(e.title) : null, l = n[1].replace(/\\([\[\]])/g, "$1");
+function Fc(n, e, t, r) {
+ const a = e.href, i = e.title ? c0(e.title) : null, l = n[1].replace(/\\([\[\]])/g, "$1");
if (n[0].charAt(0) !== "!") {
r.state.inLink = !0;
const s = {
@@ -13346,10 +13346,10 @@ function Cc(n, e, t, r) {
raw: t,
href: a,
title: i,
- text: f0(l)
+ text: c0(l)
};
}
-function N6(n, e) {
+function R6(n, e) {
const t = n.match(/^(\s+)(?:```)/);
if (t === null)
return e;
@@ -13367,10 +13367,10 @@ function N6(n, e) {
class zl {
// set by the lexer
constructor(e) {
- Re(this, "options");
- Re(this, "rules");
+ Oe(this, "options");
+ Oe(this, "rules");
// set by the lexer
- Re(this, "lexer");
+ Oe(this, "lexer");
this.options = e || In;
}
space(e) {
@@ -13397,7 +13397,7 @@ class zl {
fences(e) {
const t = this.rules.block.fences.exec(e);
if (t) {
- const r = t[0], a = N6(r, t[3] || "");
+ const r = t[0], a = R6(r, t[3] || "");
return {
type: "code",
raw: r,
@@ -13547,7 +13547,7 @@ class zl {
const t = this.rules.block.table.exec(e);
if (!t || !/[:|]/.test(t[2]))
return;
- const r = Tc(t[1]), a = t[2].replace(/^\||\| *$/g, "").split("|"), i = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
+ const r = Cc(t[1]), a = t[2].replace(/^\||\| *$/g, "").split("|"), i = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
`) : [], l = {
type: "table",
raw: t[0],
@@ -13564,7 +13564,7 @@ class zl {
tokens: this.lexer.inline(s)
});
for (const s of i)
- l.rows.push(Tc(s, l.header.length).map((o) => ({
+ l.rows.push(Cc(s, l.header.length).map((o) => ({
text: o,
tokens: this.lexer.inline(o)
})));
@@ -13611,7 +13611,7 @@ class zl {
return {
type: "escape",
raw: t[0],
- text: f0(t[1])
+ text: c0(t[1])
};
}
tag(e) {
@@ -13637,7 +13637,7 @@ class zl {
if ((r.length - l.length) % 2 === 0)
return;
} else {
- const l = L6(t[2], "()");
+ const l = N6(t[2], "()");
if (l > -1) {
const o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + l;
t[2] = t[2].substring(0, l), t[0] = t[0].substring(0, o).trim(), t[3] = "";
@@ -13649,7 +13649,7 @@ class zl {
l && (a = l[1], i = l[3]);
} else
i = t[3] ? t[3].slice(1, -1) : "";
- return a = a.trim(), /^$/.test(r) ? a = a.slice(1) : a = a.slice(1, -1)), Cc(t, {
+ return a = a.trim(), /^$/.test(r) ? a = a.slice(1) : a = a.slice(1, -1)), Fc(t, {
href: a && a.replace(this.rules.inline.anyPunctuation, "$1"),
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
}, t[0], this.lexer);
@@ -13667,7 +13667,7 @@ class zl {
text: l
};
}
- return Cc(r, i, r[0], this.lexer);
+ return Fc(r, i, r[0], this.lexer);
}
}
emStrong(e, t, r = "") {
@@ -13716,7 +13716,7 @@ class zl {
if (t) {
let r = t[2].replace(/\n/g, " ");
const a = /[^ ]/.test(r), i = /^ /.test(r) && / $/.test(r);
- return a && i && (r = r.substring(1, r.length - 1)), r = f0(r, !0), {
+ return a && i && (r = r.substring(1, r.length - 1)), r = c0(r, !0), {
type: "codespan",
raw: t[0],
text: r
@@ -13745,7 +13745,7 @@ class zl {
const t = this.rules.inline.autolink.exec(e);
if (t) {
let r, a;
- return t[2] === "@" ? (r = f0(t[1]), a = "mailto:" + r) : (r = f0(t[1]), a = r), {
+ return t[2] === "@" ? (r = c0(t[1]), a = "mailto:" + r) : (r = c0(t[1]), a = r), {
type: "link",
raw: t[0],
text: r,
@@ -13766,13 +13766,13 @@ class zl {
if (t = this.rules.inline.url.exec(e)) {
let a, i;
if (t[2] === "@")
- a = f0(t[0]), i = "mailto:" + a;
+ a = c0(t[0]), i = "mailto:" + a;
else {
let l;
do
l = t[0], t[0] = ((r = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : r[0]) ?? "";
while (l !== t[0]);
- a = f0(t[0]), t[1] === "www." ? i = "http://" + t[0] : i = t[0];
+ a = c0(t[0]), t[1] === "www." ? i = "http://" + t[0] : i = t[0];
}
return {
type: "link",
@@ -13793,7 +13793,7 @@ class zl {
const t = this.rules.inline.text.exec(e);
if (t) {
let r;
- return this.lexer.state.inRawBlock ? r = t[0] : r = f0(t[0]), {
+ return this.lexer.state.inRawBlock ? r = t[0] : r = c0(t[0]), {
type: "text",
raw: t[0],
text: r
@@ -13801,87 +13801,87 @@ class zl {
}
}
}
-const R6 = /^(?: *(?:\n|$))+/, O6 = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, q6 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ai = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, P6 = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, k4 = /(?:[*+-]|\d{1,9}[.)])/, D4 = Me(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, k4).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(), Xu = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, H6 = /^[^\n]+/, Yu = /(?!\s*\])(?:\\.|[^\[\]\\])+/, U6 = Me(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Yu).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), V6 = Me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, k4).getRegex(), rs = "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", Zu = /|$))/, G6 = Me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", Zu).replace("tag", rs).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), A4 = Me(Xu).replace("hr", ai).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", rs).getRegex(), j6 = Me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", A4).getRegex(), Ku = {
- blockquote: j6,
- code: O6,
- def: U6,
- fences: q6,
- heading: P6,
+const O6 = /^(?: *(?:\n|$))+/, q6 = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, P6 = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ai = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, H6 = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, D4 = /(?:[*+-]|\d{1,9}[.)])/, A4 = Me(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, D4).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(), Yu = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, U6 = /^[^\n]+/, Zu = /(?!\s*\])(?:\\.|[^\[\]\\])+/, V6 = Me(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Zu).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), G6 = Me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, D4).getRegex(), rs = "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", Ku = /|$))/, j6 = Me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", Ku).replace("tag", rs).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), E4 = Me(Yu).replace("hr", ai).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", rs).getRegex(), W6 = Me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", E4).getRegex(), Ju = {
+ blockquote: W6,
+ code: q6,
+ def: V6,
+ fences: P6,
+ heading: H6,
hr: ai,
- html: G6,
- lheading: D4,
- list: V6,
- newline: R6,
- paragraph: A4,
+ html: j6,
+ lheading: A4,
+ list: G6,
+ newline: O6,
+ paragraph: E4,
table: Pa,
- text: H6
-}, Fc = Me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ai).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", rs).getRegex(), W6 = {
- ...Ku,
- table: Fc,
- paragraph: Me(Xu).replace("hr", ai).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Fc).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", rs).getRegex()
-}, X6 = {
- ...Ku,
- html: Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Zu).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(),
+ text: U6
+}, Mc = Me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ai).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", rs).getRegex(), X6 = {
+ ...Ju,
+ table: Mc,
+ paragraph: Me(Yu).replace("hr", ai).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Mc).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", rs).getRegex()
+}, Y6 = {
+ ...Ju,
+ html: Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Ku).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
def: /^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
heading: /^(#{1,6})(.*)(?:\n+|$)/,
fences: Pa,
// fences not supported
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
- paragraph: Me(Xu).replace("hr", ai).replace("heading", ` *#{1,6} *[^
-]`).replace("lheading", D4).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
-}, E4 = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Y6 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, S4 = /^( {2,}|\\)\n(?!\s*$)/, Z6 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Q6 = Me(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, ii).getRegex(), $6 = Me("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, ii).getRegex(), e7 = Me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, ii).getRegex(), t7 = Me(/\\([punct])/, "gu").replace(/punct/g, ii).getRegex(), r7 = Me(/^<(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(), n7 = Me(Zu).replace("(?:-->|$)", "-->").getRegex(), a7 = Me("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", n7).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Bl = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, i7 = Me(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Bl).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), x4 = Me(/^!?\[(label)\]\[(ref)\]/).replace("label", Bl).replace("ref", Yu).getRegex(), T4 = Me(/^!?\[(ref)\](?:\[\])?/).replace("ref", Yu).getRegex(), l7 = Me("reflink|nolink(?!\\()", "g").replace("reflink", x4).replace("nolink", T4).getRegex(), Ju = {
+ paragraph: Me(Yu).replace("hr", ai).replace("heading", ` *#{1,6} *[^
+]`).replace("lheading", A4).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
+}, S4 = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Z6 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, x4 = /^( {2,}|\\)\n(?!\s*$)/, K6 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, $6 = Me(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, ii).getRegex(), e7 = Me("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, ii).getRegex(), t7 = Me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, ii).getRegex(), r7 = Me(/\\([punct])/, "gu").replace(/punct/g, ii).getRegex(), n7 = Me(/^<(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(), a7 = Me(Ku).replace("(?:-->|$)", "-->").getRegex(), i7 = Me("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", a7).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Bl = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, l7 = Me(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Bl).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), T4 = Me(/^!?\[(label)\]\[(ref)\]/).replace("label", Bl).replace("ref", Zu).getRegex(), C4 = Me(/^!?\[(ref)\](?:\[\])?/).replace("ref", Zu).getRegex(), s7 = Me("reflink|nolink(?!\\()", "g").replace("reflink", T4).replace("nolink", C4).getRegex(), Qu = {
_backpedal: Pa,
// only used for GFM url
- anyPunctuation: t7,
- autolink: r7,
- blockSkip: J6,
- br: S4,
- code: Y6,
+ anyPunctuation: r7,
+ autolink: n7,
+ blockSkip: Q6,
+ br: x4,
+ code: Z6,
del: Pa,
- emStrongLDelim: Q6,
- emStrongRDelimAst: $6,
- emStrongRDelimUnd: e7,
- escape: E4,
- link: i7,
- nolink: T4,
- punctuation: K6,
- reflink: x4,
- reflinkSearch: l7,
- tag: a7,
- text: Z6,
+ emStrongLDelim: $6,
+ emStrongRDelimAst: e7,
+ emStrongRDelimUnd: t7,
+ escape: S4,
+ link: l7,
+ nolink: C4,
+ punctuation: J6,
+ reflink: T4,
+ reflinkSearch: s7,
+ tag: i7,
+ text: K6,
url: Pa
-}, s7 = {
- ...Ju,
+}, o7 = {
+ ...Qu,
link: Me(/^!?\[(label)\]\((.*?)\)/).replace("label", Bl).getRegex(),
reflink: Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Bl).getRegex()
-}, ru = {
- ...Ju,
- escape: Me(E4).replace("])", "~|])").getRegex(),
+}, nu = {
+ ...Qu,
+ escape: Me(S4).replace("])", "~|])").getRegex(),
url: Me(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\' + (r ? e : f0(e, !0)) + `
-` : "" + (r ? e : f0(e, !0)) + `
+`, a ? '' + (r ? e : c0(e, !0)) + `
+` : "" + (r ? e : c0(e, !0)) + `
`;
}
blockquote(e) {
@@ -14180,7 +14180,7 @@ ${e}
return `${e}`;
}
link(e, t, r) {
- const a = xc(e);
+ const a = Tc(e);
if (a === null)
return r;
e = a;
@@ -14188,7 +14188,7 @@ ${e}
return t && (i += ' title="' + t + '"'), i += ">" + r + "", i;
}
image(e, t, r) {
- const a = xc(e);
+ const a = Tc(e);
if (a === null)
return r;
e = a;
@@ -14199,7 +14199,7 @@ ${e}
return e;
}
}
-class Qu {
+class $u {
// no need for block level renderers
strong(e) {
return e;
@@ -14229,24 +14229,24 @@ class Qu {
return "";
}
}
-class lr {
+class ar {
constructor(e) {
- Re(this, "options");
- Re(this, "renderer");
- Re(this, "textRenderer");
- this.options = e || In, this.options.renderer = this.options.renderer || new Il(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new Qu();
+ Oe(this, "options");
+ Oe(this, "renderer");
+ Oe(this, "textRenderer");
+ this.options = e || In, this.options.renderer = this.options.renderer || new Il(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new $u();
}
/**
* Static Parse Method
*/
static parse(e, t) {
- return new lr(t).parse(e);
+ return new ar(t).parse(e);
}
/**
* Static Parse Inline Method
*/
static parseInline(e, t) {
- return new lr(t).parseInline(e);
+ return new ar(t).parseInline(e);
}
/**
* Parse Loop
@@ -14271,7 +14271,7 @@ class lr {
}
case "heading": {
const l = i;
- r += this.renderer.heading(this.parseInline(l.tokens), l.depth, B6(this.parseInline(l.tokens, this.textRenderer)));
+ r += this.renderer.heading(this.parseInline(l.tokens), l.depth, I6(this.parseInline(l.tokens, this.textRenderer)));
continue;
}
case "code": {
@@ -14425,7 +14425,7 @@ class lr {
}
class Ha {
constructor(e) {
- Re(this, "options");
+ Oe(this, "options");
this.options = e || In;
}
/**
@@ -14447,25 +14447,25 @@ class Ha {
return e;
}
}
-Re(Ha, "passThroughHooks", /* @__PURE__ */ new Set([
+Oe(Ha, "passThroughHooks", /* @__PURE__ */ new Set([
"preprocess",
"postprocess",
"processAllTokens"
]));
-var zn, nu, F4;
-class C4 {
+var zn, au, M4;
+class F4 {
constructor(...e) {
- E1(this, zn);
- Re(this, "defaults", Wu());
- Re(this, "options", this.setOptions);
- Re(this, "parse", yi(this, zn, nu).call(this, ir.lex, lr.parse));
- Re(this, "parseInline", yi(this, zn, nu).call(this, ir.lexInline, lr.parseInline));
- Re(this, "Parser", lr);
- Re(this, "Renderer", Il);
- Re(this, "TextRenderer", Qu);
- Re(this, "Lexer", ir);
- Re(this, "Tokenizer", zl);
- Re(this, "Hooks", Ha);
+ S1(this, zn);
+ Oe(this, "defaults", Xu());
+ Oe(this, "options", this.setOptions);
+ Oe(this, "parse", yi(this, zn, au).call(this, nr.lex, ar.parse));
+ Oe(this, "parseInline", yi(this, zn, au).call(this, nr.lexInline, ar.parseInline));
+ Oe(this, "Parser", ar);
+ Oe(this, "Renderer", Il);
+ Oe(this, "TextRenderer", $u);
+ Oe(this, "Lexer", nr);
+ Oe(this, "Tokenizer", zl);
+ Oe(this, "Hooks", Ha);
this.use(...e);
}
/**
@@ -14585,17 +14585,17 @@ class C4 {
return this.defaults = { ...this.defaults, ...e }, this;
}
lexer(e, t) {
- return ir.lex(e, t ?? this.defaults);
+ return nr.lex(e, t ?? this.defaults);
}
parser(e, t) {
- return lr.parse(e, t ?? this.defaults);
+ return ar.parse(e, t ?? this.defaults);
}
}
-zn = new WeakSet(), nu = function(e, t) {
+zn = new WeakSet(), au = function(e, t) {
return (r, a) => {
const i = { ...a }, l = { ...this.defaults, ...i };
this.defaults.async === !0 && i.async === !1 && (l.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), l.async = !0);
- const s = yi(this, zn, F4).call(this, !!l.silent, !!l.async);
+ const s = yi(this, zn, M4).call(this, !!l.silent, !!l.async);
if (typeof r > "u" || r === null)
return s(new Error("marked(): input parameter is undefined or null"));
if (typeof r != "string")
@@ -14612,11 +14612,11 @@ zn = new WeakSet(), nu = function(e, t) {
return s(o);
}
};
-}, F4 = function(e, t) {
+}, M4 = function(e, t) {
return (r) => {
if (r.message += `
Please report this to https://github.com/markedjs/marked.`, e) {
- const a = "An error occurred:
" + f0(r.message + "", !0) + " ";
+ const a = "An error occurred:
" + c0(r.message + "", !0) + " ";
return t ? Promise.resolve(a) : a;
}
if (t)
@@ -14624,28 +14624,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
throw r;
};
};
-const Fn = new C4();
+const Fn = new F4();
function Fe(n, e) {
return Fn.parse(n, e);
}
Fe.options = Fe.setOptions = function(n) {
- return Fn.setOptions(n), Fe.defaults = Fn.defaults, b4(Fe.defaults), Fe;
+ return Fn.setOptions(n), Fe.defaults = Fn.defaults, w4(Fe.defaults), Fe;
};
-Fe.getDefaults = Wu;
+Fe.getDefaults = Xu;
Fe.defaults = In;
Fe.use = function(...n) {
- return Fn.use(...n), Fe.defaults = Fn.defaults, b4(Fe.defaults), Fe;
+ return Fn.use(...n), Fe.defaults = Fn.defaults, w4(Fe.defaults), Fe;
};
Fe.walkTokens = function(n, e) {
return Fn.walkTokens(n, e);
};
Fe.parseInline = Fn.parseInline;
-Fe.Parser = lr;
-Fe.parser = lr.parse;
+Fe.Parser = ar;
+Fe.parser = ar.parse;
Fe.Renderer = Il;
-Fe.TextRenderer = Qu;
-Fe.Lexer = ir;
-Fe.lexer = ir.lex;
+Fe.TextRenderer = $u;
+Fe.Lexer = nr;
+Fe.lexer = nr.lex;
Fe.Tokenizer = zl;
Fe.Hooks = Ha;
Fe.parse = Fe;
@@ -14654,9 +14654,9 @@ Fe.setOptions;
Fe.use;
Fe.walkTokens;
Fe.parseInline;
-lr.parse;
-ir.lex;
-function u7(n) {
+ar.parse;
+nr.lex;
+function c7(n) {
if (typeof n == "function" && (n = {
highlight: n
}), !n || typeof n.highlight != "function")
@@ -14666,49 +14666,49 @@ function u7(n) {
walkTokens(e) {
if (e.type !== "code")
return;
- const t = Mc(e.lang);
+ const t = zc(e.lang);
if (n.async)
- return Promise.resolve(n.highlight(e.text, t, e.lang || "")).then(zc(e));
+ return Promise.resolve(n.highlight(e.text, t, e.lang || "")).then(Bc(e));
const r = n.highlight(e.text, t, e.lang || "");
if (r instanceof Promise)
throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");
- zc(e)(r);
+ Bc(e)(r);
},
useNewRenderer: !0,
renderer: {
code(e, t, r) {
typeof e == "object" && (r = e.escaped, t = e.lang, e = e.text);
- const a = Mc(t), i = a ? n.langPrefix + Ic(a) : n.emptyLangClass, l = i ? ` class="${i}"` : "";
- return e = e.replace(/\n$/, ""), `${r ? e : Ic(e, !0)}
+ const a = zc(t), i = a ? n.langPrefix + Lc(a) : n.emptyLangClass, l = i ? ` class="${i}"` : "";
+ return e = e.replace(/\n$/, ""), `${r ? e : Lc(e, !0)}
`;
}
}
};
}
-function Mc(n) {
+function zc(n) {
return (n || "").match(/\S*/)[0];
}
-function zc(n) {
+function Bc(n) {
return (e) => {
typeof e == "string" && e !== n.text && (n.escaped = !0, n.text = e);
};
}
-const M4 = /[&<>"']/, c7 = new RegExp(M4.source, "g"), z4 = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, f7 = new RegExp(z4.source, "g"), h7 = {
+const z4 = /[&<>"']/, f7 = new RegExp(z4.source, "g"), B4 = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, h7 = new RegExp(B4.source, "g"), d7 = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
-}, Bc = (n) => h7[n];
-function Ic(n, e) {
+}, Ic = (n) => d7[n];
+function Lc(n, e) {
if (e) {
- if (M4.test(n))
- return n.replace(c7, Bc);
- } else if (z4.test(n))
- return n.replace(f7, Bc);
+ if (z4.test(n))
+ return n.replace(f7, Ic);
+ } else if (B4.test(n))
+ return n.replace(h7, Ic);
return n;
}
-const d7 = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, m7 = Object.hasOwnProperty;
+const m7 = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, p7 = Object.hasOwnProperty;
class ns {
/**
* Create a new slug class.
@@ -14732,9 +14732,9 @@ class ns {
*/
slug(e, t) {
const r = this;
- let a = p7(e, t === !0);
+ let a = g7(e, t === !0);
const i = a;
- for (; m7.call(r.occurrences, a); )
+ for (; p7.call(r.occurrences, a); )
r.occurrences[i]++, a = i + "-" + r.occurrences[i];
return r.occurrences[a] = 0, a;
}
@@ -14747,37 +14747,37 @@ class ns {
this.occurrences = /* @__PURE__ */ Object.create(null);
}
}
-function p7(n, e) {
- return typeof n != "string" ? "" : (e || (n = n.toLowerCase()), n.replace(d7, "").replace(/ /g, "-"));
+function g7(n, e) {
+ return typeof n != "string" ? "" : (e || (n = n.toLowerCase()), n.replace(m7, "").replace(/ /g, "-"));
}
-let B4 = new ns(), I4 = [];
-function g7({ prefix: n = "", globalSlugs: e = !1 } = {}) {
+let I4 = new ns(), L4 = [];
+function _7({ prefix: n = "", globalSlugs: e = !1 } = {}) {
return {
headerIds: !1,
// prevent deprecation warning; remove this once headerIds option is removed
hooks: {
preprocess(t) {
- return e || _7(), t;
+ return e || v7(), t;
}
},
renderer: {
heading(t, r, a) {
a = a.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, "");
- const i = `${n}${B4.slug(a)}`, l = { level: r, text: t, id: i };
- return I4.push(l), `${t}
+ const i = `${n}${I4.slug(a)}`, l = { level: r, text: t, id: i };
+ return L4.push(l), `${t}
`;
}
}
};
}
-function _7() {
- I4 = [], B4 = new ns();
+function v7() {
+ L4 = [], I4 = new ns();
}
-var Lc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
+var Nc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function ny(n) {
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
}
-var L4 = { exports: {} };
+var N4 = { exports: {} };
(function(n) {
var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
/**
@@ -15133,8 +15133,8 @@ var L4 = { exports: {} };
E.hasOwnProperty(F) || (C[F] = T[F]);
}
var I = S[k];
- return S[k] = C, s.languages.DFS(s.languages, function(L, q) {
- q === I && L != k && (this[L] = C);
+ return S[k] = C, s.languages.DFS(s.languages, function(L, P) {
+ P === I && L != k && (this[L] = C);
}), C;
},
// Traverse a language definition with Depth First Search
@@ -15229,8 +15229,8 @@ var L4 = { exports: {} };
grammar: T,
code: F
};
- function I(q) {
- B.highlightedCode = q, s.hooks.run("before-insert", B), B.element.innerHTML = B.highlightedCode, s.hooks.run("after-highlight", B), s.hooks.run("complete", B), E && E.call(B.element);
+ function I(P) {
+ B.highlightedCode = P, s.hooks.run("before-insert", B), B.element.innerHTML = B.highlightedCode, s.hooks.run("after-highlight", B), s.hooks.run("complete", B), E && E.call(B.element);
}
if (s.hooks.run("before-sanity-check", B), C = B.element.parentElement, C && C.nodeName.toLowerCase() === "pre" && !C.hasAttribute("tabindex") && C.setAttribute("tabindex", "0"), !B.code) {
s.hooks.run("complete", B), E && E.call(B.element);
@@ -15242,8 +15242,8 @@ var L4 = { exports: {} };
}
if (w && r.Worker) {
var L = new Worker(s.filename);
- L.onmessage = function(q) {
- I(q.data);
+ L.onmessage = function(P) {
+ I(P.data);
}, L.postMessage(JSON.stringify({
language: B.language,
code: B.code,
@@ -15401,41 +15401,41 @@ var L4 = { exports: {} };
for (var I = 0; I < B.length; ++I) {
if (C && C.cause == F + "," + I)
return;
- var L = B[I], q = L.inside, J = !!L.lookbehind, Y = !!L.greedy, H = L.alias;
- if (Y && !L.pattern.global) {
- var Q = L.pattern.toString().match(/[imsuy]*$/)[0];
- L.pattern = RegExp(L.pattern.source, Q + "g");
+ var L = B[I], P = L.inside, Z = !!L.lookbehind, O = !!L.greedy, se = L.alias;
+ if (O && !L.pattern.global) {
+ var K = L.pattern.toString().match(/[imsuy]*$/)[0];
+ L.pattern = RegExp(L.pattern.source, K + "g");
}
- for (var fe = L.pattern || L, ue = S.next, De = T; ue !== w.tail && !(C && De >= C.reach); De += ue.value.length, ue = ue.next) {
- var we = ue.value;
+ for (var he = L.pattern || L, ue = S.next, Ae = T; ue !== w.tail && !(C && Ae >= C.reach); Ae += ue.value.length, ue = ue.next) {
+ var ye = ue.value;
if (w.length > k.length)
return;
- if (!(we instanceof o)) {
- var te = 1, de;
- if (Y) {
- if (de = u(fe, De, k, J), !de || de.index >= k.length)
+ if (!(ye instanceof o)) {
+ var $ = 1, de;
+ if (O) {
+ if (de = u(he, Ae, k, Z), !de || de.index >= k.length)
break;
- var j = de.index, he = de.index + de[0].length, Ce = De;
+ var j = de.index, ce = de.index + de[0].length, Ce = Ae;
for (Ce += ue.value.length; j >= Ce; )
ue = ue.next, Ce += ue.value.length;
- if (Ce -= ue.value.length, De = Ce, ue.value instanceof o)
+ if (Ce -= ue.value.length, Ae = Ce, ue.value instanceof o)
continue;
- for (var V = ue; V !== w.tail && (Ce < he || typeof V.value == "string"); V = V.next)
- te++, Ce += V.value.length;
- te--, we = k.slice(De, Ce), de.index -= De;
- } else if (de = u(fe, 0, we, J), !de)
+ for (var V = ue; V !== w.tail && (Ce < ce || typeof V.value == "string"); V = V.next)
+ $++, Ce += V.value.length;
+ $--, ye = k.slice(Ae, Ce), de.index -= Ae;
+ } else if (de = u(he, 0, ye, Z), !de)
continue;
- var j = de.index, pe = de[0], ye = we.slice(0, j), Te = we.slice(j + pe.length), ze = De + we.length;
+ var j = de.index, ge = de[0], ke = ye.slice(0, j), Te = ye.slice(j + ge.length), ze = Ae + ye.length;
C && ze > C.reach && (C.reach = ze);
var Le = ue.prev;
- ye && (Le = h(w, Le, ye), De += ye.length), p(w, Le, te);
- var Ge = new o(F, q ? s.tokenize(pe, q) : pe, H, pe);
- if (ue = h(w, Le, Ge), Te && h(w, ue, Te), te > 1) {
- var ht = {
+ ke && (Le = h(w, Le, ke), Ae += ke.length), p(w, Le, $);
+ var je = new o(F, P ? s.tokenize(ge, P) : ge, se, ge);
+ if (ue = h(w, Le, je), Te && h(w, ue, Te), $ > 1) {
+ var ft = {
cause: F + "," + I,
reach: ze
};
- c(k, w, E, ue.prev, De, ht), C && ht.reach > C.reach && (C.reach = ht.reach);
+ c(k, w, E, ue.prev, Ae, ft), C && ft.reach > C.reach && (C.reach = ft.reach);
}
}
}
@@ -15476,7 +15476,7 @@ var L4 = { exports: {} };
}
return s;
}(e);
- n.exports && (n.exports = t), typeof Lc < "u" && (Lc.Prism = t), t.languages.markup = {
+ n.exports && (n.exports = t), typeof Nc < "u" && (Nc.Prism = t), t.languages.markup = {
comment: {
pattern: //,
greedy: !0
@@ -15933,8 +15933,8 @@ var L4 = { exports: {} };
_ || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), _ = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
};
}();
-})(L4);
-var oo = L4.exports;
+})(N4);
+var oo = N4.exports;
Prism.languages.python = {
comment: {
pattern: /(^|[^\\])#.*/,
@@ -16277,13 +16277,13 @@ Prism.languages.py = Prism.languages.python;
n.languages.sh = n.languages.bash, n.languages.shell = n.languages.bash;
})(Prism);
new ns();
-const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b7 = (n) => P7.has(n.tagName), w7 = (n) => "action" in n, y7 = (n) => n.tagName === "IFRAME", k7 = (n) => "formAction" in n, D7 = (n) => "protocol" in n, Xi = /* @__PURE__ */ (() => {
+const iu = (n) => JSON.parse(JSON.stringify(n)), b7 = (n) => n.nodeType === 1, w7 = (n) => H7.has(n.tagName), y7 = (n) => "action" in n, k7 = (n) => n.tagName === "IFRAME", D7 = (n) => "formAction" in n, A7 = (n) => "protocol" in n, Xi = /* @__PURE__ */ (() => {
const n = /^(?:\w+script|data):/i;
return (e) => n.test(e);
-})(), A7 = /* @__PURE__ */ (() => {
+})(), E7 = /* @__PURE__ */ (() => {
const n = /(?:script|data):/i;
return (e) => n.test(e);
-})(), E7 = (n) => {
+})(), S7 = (n) => {
const e = {};
for (let t = 0, r = n.length; t < r; t++) {
const a = n[t];
@@ -16291,20 +16291,20 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
e[i] ? e[i] = e[i].concat(a[i]) : e[i] = a[i];
}
return e;
-}, N4 = (n, e) => {
+}, R4 = (n, e) => {
let t = n.firstChild;
for (; t; ) {
const r = t.nextSibling;
- v7(t) && (e(t, n), t.parentNode && N4(t, e)), t = r;
+ b7(t) && (e(t, n), t.parentNode && R4(t, e)), t = r;
}
-}, S7 = (n, e) => {
+}, x7 = (n, e) => {
const t = document.createNodeIterator(n, NodeFilter.SHOW_ELEMENT);
let r;
for (; r = t.nextNode(); ) {
const a = r.parentNode;
a && e(r, a);
}
-}, x7 = (n, e) => !!globalThis.document && !!globalThis.document.createNodeIterator ? S7(n, e) : N4(n, e), R4 = [
+}, T7 = (n, e) => !!globalThis.document && !!globalThis.document.createNodeIterator ? x7(n, e) : R4(n, e), O4 = [
"a",
"abbr",
"acronym",
@@ -16422,7 +16422,7 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
"var",
"video",
"wbr"
-], T7 = [
+], C7 = [
"basefont",
"command",
"data",
@@ -16435,10 +16435,10 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
"textarea",
"title",
"xmp"
-], C7 = /* @__PURE__ */ new Set([
- ...R4,
- ...T7
-]), O4 = [
+], F7 = /* @__PURE__ */ new Set([
+ ...O4,
+ ...C7
+]), q4 = [
"svg",
"a",
"altglyph",
@@ -16507,7 +16507,7 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
"feSpotLight",
"feTile",
"feTurbulence"
-], F7 = [
+], M7 = [
"animate",
"color-profile",
"cursor",
@@ -16531,10 +16531,10 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
"solidcolor",
"unknown",
"use"
-], M7 = /* @__PURE__ */ new Set([
- ...O4,
- ...F7
-]), q4 = [
+], z7 = /* @__PURE__ */ new Set([
+ ...q4,
+ ...M7
+]), P4 = [
"math",
"menclose",
"merror",
@@ -16564,7 +16564,7 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
"mtr",
"munder",
"munderover"
-], z7 = [
+], B7 = [
"maction",
"maligngroup",
"malignmark",
@@ -16580,10 +16580,10 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
"annotation-xml",
"mprescripts",
"none"
-], B7 = /* @__PURE__ */ new Set([
- ...q4,
- ...z7
-]), I7 = [
+], I7 = /* @__PURE__ */ new Set([
+ ...P4,
+ ...B7
+]), L7 = [
"abbr",
"accept",
"accept-charset",
@@ -16792,7 +16792,7 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
"webkitdirectory",
"width",
"wrap"
-], L7 = [
+], N7 = [
"accent-height",
"accumulate",
"additive",
@@ -16976,7 +16976,7 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
"y2",
"z",
"zoomandpan"
-], N7 = [
+], R7 = [
"accent",
"accentunder",
"align",
@@ -17034,38 +17034,38 @@ const au = (n) => JSON.parse(JSON.stringify(n)), v7 = (n) => n.nodeType === 1, b
HTML: "http://www.w3.org/1999/xhtml",
SVG: "http://www.w3.org/2000/svg",
MATH: "http://www.w3.org/1998/Math/MathML"
-}, R7 = {
- [G0.HTML]: C7,
- [G0.SVG]: M7,
- [G0.MATH]: B7
}, O7 = {
+ [G0.HTML]: F7,
+ [G0.SVG]: z7,
+ [G0.MATH]: I7
+}, q7 = {
[G0.HTML]: "html",
[G0.SVG]: "svg",
[G0.MATH]: "math"
-}, q7 = {
+}, P7 = {
[G0.HTML]: "",
[G0.SVG]: "svg:",
[G0.MATH]: "math:"
-}, P7 = /* @__PURE__ */ new Set([
+}, H7 = /* @__PURE__ */ new Set([
"A",
"AREA",
"BUTTON",
"FORM",
"IFRAME",
"INPUT"
-]), P4 = {
+]), H4 = {
allowComments: !0,
allowCustomElements: !1,
allowUnknownMarkup: !1,
allowElements: [
- ...R4,
- ...O4.map((n) => `svg:${n}`),
- ...q4.map((n) => `math:${n}`)
+ ...O4,
+ ...q4.map((n) => `svg:${n}`),
+ ...P4.map((n) => `math:${n}`)
],
- allowAttributes: E7([
- Object.fromEntries(I7.map((n) => [n, ["*"]])),
- Object.fromEntries(L7.map((n) => [n, ["svg:*"]])),
- Object.fromEntries(N7.map((n) => [n, ["math:*"]]))
+ allowAttributes: S7([
+ Object.fromEntries(L7.map((n) => [n, ["*"]])),
+ Object.fromEntries(N7.map((n) => [n, ["svg:*"]])),
+ Object.fromEntries(R7.map((n) => [n, ["math:*"]]))
])
};
var uo = function(n, e, t, r, a) {
@@ -17078,27 +17078,27 @@ var uo = function(n, e, t, r, a) {
if (typeof e == "function" ? n !== e || !r : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return t === "m" ? r : t === "a" ? r.call(n) : r ? r.value : e.get(n);
}, Qr, vl, bl;
-class H4 {
+class U4 {
/* CONSTRUCTOR */
constructor(e = {}) {
- Qr.set(this, void 0), vl.set(this, void 0), bl.set(this, void 0), this.getConfiguration = () => au(wn(this, Qr, "f")), this.sanitize = (c) => {
+ Qr.set(this, void 0), vl.set(this, void 0), bl.set(this, void 0), this.getConfiguration = () => iu(wn(this, Qr, "f")), this.sanitize = (c) => {
const d = wn(this, vl, "f"), h = wn(this, bl, "f");
- return x7(c, (p, _) => {
- const b = p.namespaceURI || G0.HTML, D = _.namespaceURI || G0.HTML, y = R7[b], k = O7[b], w = q7[b], E = p.tagName.toLowerCase(), S = `${w}${E}`, C = `${w}*`;
+ return T7(c, (p, _) => {
+ const b = p.namespaceURI || G0.HTML, D = _.namespaceURI || G0.HTML, y = O7[b], k = q7[b], w = P7[b], E = p.tagName.toLowerCase(), S = `${w}${E}`, C = `${w}*`;
if (!y.has(E) || !d.has(S) || b !== D && E !== k)
_.removeChild(p);
else {
const F = p.getAttributeNames(), B = F.length;
if (B) {
for (let I = 0; I < B; I++) {
- const L = F[I], q = h[L];
- (!q || !q.has(C) && !q.has(S)) && p.removeAttribute(L);
+ const L = F[I], P = h[L];
+ (!P || !P.has(C) && !P.has(S)) && p.removeAttribute(L);
}
- if (b7(p))
- if (D7(p)) {
+ if (w7(p))
+ if (A7(p)) {
const I = p.getAttribute("href");
- I && A7(I) && Xi(p.protocol) && p.removeAttribute("href");
- } else w7(p) ? Xi(p.action) && p.removeAttribute("action") : k7(p) ? Xi(p.formAction) && p.removeAttribute("formaction") : y7(p) && (Xi(p.src) && p.removeAttribute("formaction"), p.setAttribute("sandbox", "allow-scripts"));
+ I && E7(I) && Xi(p.protocol) && p.removeAttribute("href");
+ } else y7(p) ? Xi(p.action) && p.removeAttribute("action") : D7(p) ? Xi(p.formAction) && p.removeAttribute("formaction") : k7(p) && (Xi(p.src) && p.removeAttribute("formaction"), p.setAttribute("sandbox", "allow-scripts"));
}
}
}), c;
@@ -17118,31 +17118,31 @@ class H4 {
throw new Error('"dropElements" is not supported yet, use "allowElements" instead');
if (s)
throw new Error('"dropAttributes" is not supported yet, use "allowAttributes" instead');
- uo(this, Qr, au(P4), "f");
+ uo(this, Qr, iu(H4), "f");
const { allowElements: o, allowAttributes: u } = e;
o && (wn(this, Qr, "f").allowElements = e.allowElements), u && (wn(this, Qr, "f").allowAttributes = e.allowAttributes), uo(this, vl, new Set(wn(this, Qr, "f").allowElements), "f"), uo(this, bl, Object.fromEntries(Object.entries(wn(this, Qr, "f").allowAttributes || {}).map(([c, d]) => [c, new Set(d)])), "f");
}
}
Qr = /* @__PURE__ */ new WeakMap(), vl = /* @__PURE__ */ new WeakMap(), bl = /* @__PURE__ */ new WeakMap();
-H4.getDefaultConfiguration = () => au(P4);
-const H7 = (n, e) => {
+U4.getDefaultConfiguration = () => iu(H4);
+const U7 = (n, e) => {
try {
return !!n && new URL(n).origin !== new URL(e).origin;
} catch {
return !1;
}
};
-function Nc(n, e) {
- const t = new H4(), r = new DOMParser().parseFromString(n, "text/html");
- return U4(r.body, "A", (a) => {
- a instanceof HTMLElement && "target" in a && H7(a.getAttribute("href"), e) && (a.setAttribute("target", "_blank"), a.setAttribute("rel", "noopener noreferrer"));
+function Rc(n, e) {
+ const t = new U4(), r = new DOMParser().parseFromString(n, "text/html");
+ return V4(r.body, "A", (a) => {
+ a instanceof HTMLElement && "target" in a && U7(a.getAttribute("href"), e) && (a.setAttribute("target", "_blank"), a.setAttribute("rel", "noopener noreferrer"));
}), t.sanitize(r).body.innerHTML;
}
-function U4(n, e, t) {
+function V4(n, e, t) {
n && (n.nodeName === e || typeof e == "function") && t(n);
const r = (n == null ? void 0 : n.childNodes) || [];
for (let a = 0; a < r.length; a++)
- U4(r[a], e, t);
+ V4(r[a], e, t);
}
function ea(n) {
let e = ["", "k", "M", "G", "T", "P", "E", "Z"], t = 0;
@@ -17153,21 +17153,21 @@ function ea(n) {
}
function wl() {
}
-const U7 = (n) => n;
-function V7(n, e) {
+const V7 = (n) => n;
+function G7(n, e) {
return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
}
-const V4 = typeof window < "u";
-let Rc = V4 ? () => window.performance.now() : () => Date.now(), G4 = V4 ? (n) => requestAnimationFrame(n) : wl;
+const G4 = typeof window < "u";
+let Oc = G4 ? () => window.performance.now() : () => Date.now(), j4 = G4 ? (n) => requestAnimationFrame(n) : wl;
const na = /* @__PURE__ */ new Set();
-function j4(n) {
+function W4(n) {
na.forEach((e) => {
e.c(n) || (na.delete(e), e.f());
- }), na.size !== 0 && G4(j4);
+ }), na.size !== 0 && j4(W4);
}
-function G7(n) {
+function j7(n) {
let e;
- return na.size === 0 && G4(j4), {
+ return na.size === 0 && j4(W4), {
promise: new Promise((t) => {
na.add(e = { c: n, f: t });
}),
@@ -17176,7 +17176,7 @@ function G7(n) {
}
};
}
-function $u(n, { delay: e = 0, duration: t = 400, easing: r = U7 } = {}) {
+function e1(n, { delay: e = 0, duration: t = 400, easing: r = V7 } = {}) {
const a = +getComputedStyle(n).opacity;
return {
delay: e,
@@ -17186,11 +17186,11 @@ function $u(n, { delay: e = 0, duration: t = 400, easing: r = U7 } = {}) {
};
}
const Gn = [];
-function j7(n, e = wl) {
+function W7(n, e = wl) {
let t;
const r = /* @__PURE__ */ new Set();
function a(s) {
- if (V7(n, s) && (n = s, t)) {
+ if (G7(n, s) && (n = s, t)) {
const o = !Gn.length;
for (const u of r)
u[1](), Gn.push(u, n);
@@ -17212,34 +17212,34 @@ function j7(n, e = wl) {
}
return { set: a, update: i, subscribe: l };
}
-function Oc(n) {
+function qc(n) {
return Object.prototype.toString.call(n) === "[object Date]";
}
-function iu(n, e, t, r) {
- if (typeof t == "number" || Oc(t)) {
+function lu(n, e, t, r) {
+ if (typeof t == "number" || qc(t)) {
const a = r - t, i = (t - e) / (n.dt || 1 / 60), l = n.opts.stiffness * a, s = n.opts.damping * i, o = (l - s) * n.inv_mass, u = (i + o) * n.dt;
- return Math.abs(u) < n.opts.precision && Math.abs(a) < n.opts.precision ? r : (n.settled = !1, Oc(t) ? new Date(t.getTime() + u) : t + u);
+ return Math.abs(u) < n.opts.precision && Math.abs(a) < n.opts.precision ? r : (n.settled = !1, qc(t) ? new Date(t.getTime() + u) : t + u);
} else {
if (Array.isArray(t))
return t.map(
- (a, i) => iu(n, e[i], t[i], r[i])
+ (a, i) => lu(n, e[i], t[i], r[i])
);
if (typeof t == "object") {
const a = {};
for (const i in t)
- a[i] = iu(n, e[i], t[i], r[i]);
+ a[i] = lu(n, e[i], t[i], r[i]);
return a;
} else
throw new Error(`Cannot spring ${typeof t} values`);
}
}
-function qc(n, e = {}) {
- const t = j7(n), { stiffness: r = 0.15, damping: a = 0.8, precision: i = 0.01 } = e;
+function Pc(n, e = {}) {
+ const t = W7(n), { stiffness: r = 0.15, damping: a = 0.8, precision: i = 0.01 } = e;
let l, s, o, u = n, c = n, d = 1, h = 0, p = !1;
function _(D, y = {}) {
c = D;
const k = o = {};
- return n == null || y.hard || b.stiffness >= 1 && b.damping >= 1 ? (p = !0, l = Rc(), u = D, t.set(n = c), Promise.resolve()) : (y.soft && (h = 1 / ((y.soft === !0 ? 0.5 : +y.soft) * 60), d = 0), s || (l = Rc(), p = !1, s = G7((w) => {
+ return n == null || y.hard || b.stiffness >= 1 && b.damping >= 1 ? (p = !0, l = Oc(), u = D, t.set(n = c), Promise.resolve()) : (y.soft && (h = 1 / ((y.soft === !0 ? 0.5 : +y.soft) * 60), d = 0), s || (l = Oc(), p = !1, s = j7((w) => {
if (p)
return p = !1, s = null, !1;
d = Math.min(d + h, 1);
@@ -17248,7 +17248,7 @@ function qc(n, e = {}) {
opts: b,
settled: !0,
dt: (w - l) * 60 / 1e3
- }, S = iu(E, u, n, c);
+ }, S = lu(E, u, n, c);
return l = w, u = n, t.set(n = S), E.settled && (s = null), !E.settled;
})), new Promise((w) => {
s.promise.then(() => {
@@ -17267,71 +17267,71 @@ function qc(n, e = {}) {
return b;
}
const {
- SvelteComponent: W7,
- append_hydration: N0,
- attr: Ae,
- children: _0,
- claim_element: X7,
- claim_svg_element: R0,
- component_subscribe: Pc,
- detach: o0,
- element: Y7,
- init: Z7,
- insert_hydration: K7,
- noop: Hc,
- safe_not_equal: J7,
+ SvelteComponent: X7,
+ append_hydration: L0,
+ attr: Ee,
+ children: g0,
+ claim_element: Y7,
+ claim_svg_element: N0,
+ component_subscribe: Hc,
+ detach: s0,
+ element: Z7,
+ init: K7,
+ insert_hydration: J7,
+ noop: Uc,
+ safe_not_equal: Q7,
set_style: Yi,
- svg_element: O0,
- toggle_class: Uc
-} = window.__gradio__svelte__internal, { onMount: Q7 } = window.__gradio__svelte__internal;
-function $7(n) {
+ svg_element: R0,
+ toggle_class: Vc
+} = window.__gradio__svelte__internal, { onMount: $7 } = window.__gradio__svelte__internal;
+function ep(n) {
let e, t, r, a, i, l, s, o, u, c, d, h;
return {
c() {
- e = Y7("div"), t = O0("svg"), r = O0("g"), a = O0("path"), i = O0("path"), l = O0("path"), s = O0("path"), o = O0("g"), u = O0("path"), c = O0("path"), d = O0("path"), h = O0("path"), this.h();
+ e = Z7("div"), t = R0("svg"), r = R0("g"), a = R0("path"), i = R0("path"), l = R0("path"), s = R0("path"), o = R0("g"), u = R0("path"), c = R0("path"), d = R0("path"), h = R0("path"), this.h();
},
l(p) {
- e = X7(p, "DIV", { class: !0 });
- var _ = _0(e);
- t = R0(_, "svg", {
+ e = Y7(p, "DIV", { class: !0 });
+ var _ = g0(e);
+ t = N0(_, "svg", {
viewBox: !0,
fill: !0,
xmlns: !0,
class: !0
});
- var b = _0(t);
- r = R0(b, "g", { style: !0 });
- var D = _0(r);
- a = R0(D, "path", {
+ var b = g0(t);
+ r = N0(b, "g", { style: !0 });
+ var D = g0(r);
+ a = N0(D, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), _0(a).forEach(o0), i = R0(D, "path", { d: !0, fill: !0, class: !0 }), _0(i).forEach(o0), l = R0(D, "path", {
+ }), g0(a).forEach(s0), i = N0(D, "path", { d: !0, fill: !0, class: !0 }), g0(i).forEach(s0), l = N0(D, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), _0(l).forEach(o0), s = R0(D, "path", { d: !0, fill: !0, class: !0 }), _0(s).forEach(o0), D.forEach(o0), o = R0(b, "g", { style: !0 });
- var y = _0(o);
- u = R0(y, "path", {
+ }), g0(l).forEach(s0), s = N0(D, "path", { d: !0, fill: !0, class: !0 }), g0(s).forEach(s0), D.forEach(s0), o = N0(b, "g", { style: !0 });
+ var y = g0(o);
+ u = N0(y, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), _0(u).forEach(o0), c = R0(y, "path", { d: !0, fill: !0, class: !0 }), _0(c).forEach(o0), d = R0(y, "path", {
+ }), g0(u).forEach(s0), c = N0(y, "path", { d: !0, fill: !0, class: !0 }), g0(c).forEach(s0), d = N0(y, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), _0(d).forEach(o0), h = R0(y, "path", { d: !0, fill: !0, class: !0 }), _0(h).forEach(o0), y.forEach(o0), b.forEach(o0), _.forEach(o0), this.h();
+ }), g0(d).forEach(s0), h = N0(y, "path", { d: !0, fill: !0, class: !0 }), g0(h).forEach(s0), y.forEach(s0), b.forEach(s0), _.forEach(s0), this.h();
},
h() {
- Ae(a, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), Ae(a, "fill", "#FF7C00"), Ae(a, "fill-opacity", "0.4"), Ae(a, "class", "svelte-43sxxs"), Ae(i, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), Ae(i, "fill", "#FF7C00"), Ae(i, "class", "svelte-43sxxs"), Ae(l, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), Ae(l, "fill", "#FF7C00"), Ae(l, "fill-opacity", "0.4"), Ae(l, "class", "svelte-43sxxs"), Ae(s, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), Ae(s, "fill", "#FF7C00"), Ae(s, "class", "svelte-43sxxs"), Yi(r, "transform", "translate(" + /*$top*/
+ Ee(a, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), Ee(a, "fill", "#FF7C00"), Ee(a, "fill-opacity", "0.4"), Ee(a, "class", "svelte-43sxxs"), Ee(i, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), Ee(i, "fill", "#FF7C00"), Ee(i, "class", "svelte-43sxxs"), Ee(l, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), Ee(l, "fill", "#FF7C00"), Ee(l, "fill-opacity", "0.4"), Ee(l, "class", "svelte-43sxxs"), Ee(s, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), Ee(s, "fill", "#FF7C00"), Ee(s, "class", "svelte-43sxxs"), Yi(r, "transform", "translate(" + /*$top*/
n[1][0] + "px, " + /*$top*/
- n[1][1] + "px)"), Ae(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), Ae(u, "fill", "#FF7C00"), Ae(u, "fill-opacity", "0.4"), Ae(u, "class", "svelte-43sxxs"), Ae(c, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), Ae(c, "fill", "#FF7C00"), Ae(c, "class", "svelte-43sxxs"), Ae(d, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), Ae(d, "fill", "#FF7C00"), Ae(d, "fill-opacity", "0.4"), Ae(d, "class", "svelte-43sxxs"), Ae(h, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), Ae(h, "fill", "#FF7C00"), Ae(h, "class", "svelte-43sxxs"), Yi(o, "transform", "translate(" + /*$bottom*/
+ n[1][1] + "px)"), Ee(u, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), Ee(u, "fill", "#FF7C00"), Ee(u, "fill-opacity", "0.4"), Ee(u, "class", "svelte-43sxxs"), Ee(c, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), Ee(c, "fill", "#FF7C00"), Ee(c, "class", "svelte-43sxxs"), Ee(d, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), Ee(d, "fill", "#FF7C00"), Ee(d, "fill-opacity", "0.4"), Ee(d, "class", "svelte-43sxxs"), Ee(h, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), Ee(h, "fill", "#FF7C00"), Ee(h, "class", "svelte-43sxxs"), Yi(o, "transform", "translate(" + /*$bottom*/
n[2][0] + "px, " + /*$bottom*/
- n[2][1] + "px)"), Ae(t, "viewBox", "-1200 -1200 3000 3000"), Ae(t, "fill", "none"), Ae(t, "xmlns", "http://www.w3.org/2000/svg"), Ae(t, "class", "svelte-43sxxs"), Ae(e, "class", "svelte-43sxxs"), Uc(
+ n[2][1] + "px)"), Ee(t, "viewBox", "-1200 -1200 3000 3000"), Ee(t, "fill", "none"), Ee(t, "xmlns", "http://www.w3.org/2000/svg"), Ee(t, "class", "svelte-43sxxs"), Ee(e, "class", "svelte-43sxxs"), Vc(
e,
"margin",
/*margin*/
@@ -17339,7 +17339,7 @@ function $7(n) {
);
},
m(p, _) {
- K7(p, e, _), N0(e, t), N0(t, r), N0(r, a), N0(r, i), N0(r, l), N0(r, s), N0(t, o), N0(o, u), N0(o, c), N0(o, d), N0(o, h);
+ J7(p, e, _), L0(e, t), L0(t, r), L0(r, a), L0(r, i), L0(r, l), L0(r, s), L0(t, o), L0(o, u), L0(o, c), L0(o, d), L0(o, h);
},
p(p, [_]) {
_ & /*$top*/
@@ -17349,21 +17349,21 @@ function $7(n) {
4 && Yi(o, "transform", "translate(" + /*$bottom*/
p[2][0] + "px, " + /*$bottom*/
p[2][1] + "px)"), _ & /*margin*/
- 1 && Uc(
+ 1 && Vc(
e,
"margin",
/*margin*/
p[0]
);
},
- i: Hc,
- o: Hc,
+ i: Uc,
+ o: Uc,
d(p) {
- p && o0(e);
+ p && s0(e);
}
};
}
-function ep(n, e, t) {
+function tp(n, e, t) {
let r, a;
var i = this && this.__awaiter || function(p, _, b, D) {
function y(k) {
@@ -17393,10 +17393,10 @@ function ep(n, e, t) {
});
};
let { margin: l = !0 } = e;
- const s = qc([0, 0]);
- Pc(n, s, (p) => t(1, r = p));
- const o = qc([0, 0]);
- Pc(n, o, (p) => t(2, a = p));
+ const s = Pc([0, 0]);
+ Hc(n, s, (p) => t(1, r = p));
+ const o = Pc([0, 0]);
+ Hc(n, o, (p) => t(2, a = p));
let u;
function c() {
return i(this, void 0, void 0, function* () {
@@ -17413,67 +17413,67 @@ function ep(n, e, t) {
yield Promise.all([s.set([125, 0]), o.set([-125, 0])]), d();
});
}
- return Q7(() => (h(), () => u = !0)), n.$$set = (p) => {
+ return $7(() => (h(), () => u = !0)), n.$$set = (p) => {
"margin" in p && t(0, l = p.margin);
}, [l, r, a, s, o];
}
-class tp extends W7 {
+class rp extends X7 {
constructor(e) {
- super(), Z7(this, e, ep, $7, J7, { margin: 0 });
+ super(), K7(this, e, tp, ep, Q7, { margin: 0 });
}
}
const {
- SvelteComponent: rp,
+ SvelteComponent: np,
append_hydration: Dn,
attr: V0,
- binding_callbacks: Vc,
- check_outros: lu,
- children: sr,
- claim_component: W4,
- claim_element: or,
- claim_space: A0,
+ binding_callbacks: Gc,
+ check_outros: su,
+ children: ir,
+ claim_component: X4,
+ claim_element: lr,
+ claim_space: D0,
claim_text: Ze,
- create_component: X4,
- create_slot: Y4,
- destroy_component: Z4,
- destroy_each: K4,
- detach: ne,
- element: ur,
- empty: F0,
+ create_component: Y4,
+ create_slot: Z4,
+ destroy_component: K4,
+ destroy_each: J4,
+ detach: te,
+ element: sr,
+ empty: C0,
ensure_array_like: Ll,
- get_all_dirty_from_scope: J4,
- get_slot_changes: Q4,
- group_outros: su,
- init: np,
- insert_hydration: ce,
- mount_component: $4,
- noop: ou,
- safe_not_equal: ap,
- set_data: M0,
+ get_all_dirty_from_scope: Q4,
+ get_slot_changes: $4,
+ group_outros: ou,
+ init: ap,
+ insert_hydration: fe,
+ mount_component: em,
+ noop: uu,
+ safe_not_equal: ip,
+ set_data: F0,
set_style: ln,
- space: E0,
+ space: A0,
text: Ke,
- toggle_class: b0,
- transition_in: U0,
- transition_out: cr,
- update_slot_base: em
-} = window.__gradio__svelte__internal, { tick: ip } = window.__gradio__svelte__internal, { onDestroy: lp } = window.__gradio__svelte__internal, { createEventDispatcher: sp } = window.__gradio__svelte__internal, op = (n) => ({}), Gc = (n) => ({}), up = (n) => ({}), jc = (n) => ({});
-function Wc(n, e, t) {
+ toggle_class: v0,
+ transition_in: H0,
+ transition_out: or,
+ update_slot_base: tm
+} = window.__gradio__svelte__internal, { tick: lp } = window.__gradio__svelte__internal, { onDestroy: sp } = window.__gradio__svelte__internal, { createEventDispatcher: op } = window.__gradio__svelte__internal, up = (n) => ({}), jc = (n) => ({}), cp = (n) => ({}), Wc = (n) => ({});
+function Xc(n, e, t) {
const r = n.slice();
return r[41] = e[t], r[43] = t, r;
}
-function Xc(n, e, t) {
+function Yc(n, e, t) {
const r = n.slice();
return r[41] = e[t], r;
}
-function cp(n) {
+function fp(n) {
let e, t, r, a, i = (
/*i18n*/
n[1]("common.error") + ""
), l, s, o;
- t = new I8({
+ t = new L8({
props: {
- Icon: d2,
+ Icon: m2,
label: (
/*i18n*/
n[1]("common.clear")
@@ -17488,29 +17488,29 @@ function cp(n) {
const u = (
/*#slots*/
n[30].error
- ), c = Y4(
+ ), c = Z4(
u,
n,
/*$$scope*/
n[29],
- Gc
+ jc
);
return {
c() {
- e = ur("div"), X4(t.$$.fragment), r = E0(), a = ur("span"), l = Ke(i), s = E0(), c && c.c(), this.h();
+ e = sr("div"), Y4(t.$$.fragment), r = A0(), a = sr("span"), l = Ke(i), s = A0(), c && c.c(), this.h();
},
l(d) {
- e = or(d, "DIV", { class: !0 });
- var h = sr(e);
- W4(t.$$.fragment, h), h.forEach(ne), r = A0(d), a = or(d, "SPAN", { class: !0 });
- var p = sr(a);
- l = Ze(p, i), p.forEach(ne), s = A0(d), c && c.l(d), this.h();
+ e = lr(d, "DIV", { class: !0 });
+ var h = ir(e);
+ X4(t.$$.fragment, h), h.forEach(te), r = D0(d), a = lr(d, "SPAN", { class: !0 });
+ var p = ir(a);
+ l = Ze(p, i), p.forEach(te), s = D0(d), c && c.l(d), this.h();
},
h() {
V0(e, "class", "clear-status svelte-17v219f"), V0(a, "class", "error svelte-17v219f");
},
m(d, h) {
- ce(d, e, h), $4(t, e, null), ce(d, r, h), ce(d, a, h), Dn(a, l), ce(d, s, h), c && c.m(d, h), o = !0;
+ fe(d, e, h), em(t, e, null), fe(d, r, h), fe(d, a, h), Dn(a, l), fe(d, s, h), c && c.m(d, h), o = !0;
},
p(d, h) {
const p = {};
@@ -17518,65 +17518,65 @@ function cp(n) {
2 && (p.label = /*i18n*/
d[1]("common.clear")), t.$set(p), (!o || h[0] & /*i18n*/
2) && i !== (i = /*i18n*/
- d[1]("common.error") + "") && M0(l, i), c && c.p && (!o || h[0] & /*$$scope*/
- 536870912) && em(
+ d[1]("common.error") + "") && F0(l, i), c && c.p && (!o || h[0] & /*$$scope*/
+ 536870912) && tm(
c,
u,
d,
/*$$scope*/
d[29],
- o ? Q4(
+ o ? $4(
u,
/*$$scope*/
d[29],
h,
- op
- ) : J4(
+ up
+ ) : Q4(
/*$$scope*/
d[29]
),
- Gc
+ jc
);
},
i(d) {
- o || (U0(t.$$.fragment, d), U0(c, d), o = !0);
+ o || (H0(t.$$.fragment, d), H0(c, d), o = !0);
},
o(d) {
- cr(t.$$.fragment, d), cr(c, d), o = !1;
+ or(t.$$.fragment, d), or(c, d), o = !1;
},
d(d) {
- d && (ne(e), ne(r), ne(a), ne(s)), Z4(t), c && c.d(d);
+ d && (te(e), te(r), te(a), te(s)), K4(t), c && c.d(d);
}
};
}
-function fp(n) {
+function hp(n) {
let e, t, r, a, i, l, s, o, u, c = (
/*variant*/
n[8] === "default" && /*show_eta_bar*/
n[18] && /*show_progress*/
- n[6] === "full" && Yc(n)
+ n[6] === "full" && Zc(n)
);
function d(w, E) {
if (
/*progress*/
w[7]
- ) return mp;
+ ) return pp;
if (
/*queue_position*/
w[2] !== null && /*queue_size*/
w[3] !== void 0 && /*queue_position*/
w[2] >= 0
- ) return dp;
+ ) return mp;
if (
/*queue_position*/
w[2] === 0
- ) return hp;
+ ) return dp;
}
let h = d(n), p = h && h(n), _ = (
/*timer*/
- n[5] && Jc(n)
+ n[5] && Qc(n)
);
- const b = [vp, _p], D = [];
+ const b = [bp, vp], D = [];
function y(w, E) {
return (
/*last_progress_level*/
@@ -17588,23 +17588,23 @@ function fp(n) {
}
~(i = y(n)) && (l = D[i] = b[i](n));
let k = !/*timer*/
- n[5] && af(n);
+ n[5] && lf(n);
return {
c() {
- c && c.c(), e = E0(), t = ur("div"), p && p.c(), r = E0(), _ && _.c(), a = E0(), l && l.c(), s = E0(), k && k.c(), o = F0(), this.h();
+ c && c.c(), e = A0(), t = sr("div"), p && p.c(), r = A0(), _ && _.c(), a = A0(), l && l.c(), s = A0(), k && k.c(), o = C0(), this.h();
},
l(w) {
- c && c.l(w), e = A0(w), t = or(w, "DIV", { class: !0 });
- var E = sr(t);
- p && p.l(E), r = A0(E), _ && _.l(E), E.forEach(ne), a = A0(w), l && l.l(w), s = A0(w), k && k.l(w), o = F0(), this.h();
+ c && c.l(w), e = D0(w), t = lr(w, "DIV", { class: !0 });
+ var E = ir(t);
+ p && p.l(E), r = D0(E), _ && _.l(E), E.forEach(te), a = D0(w), l && l.l(w), s = D0(w), k && k.l(w), o = C0(), this.h();
},
h() {
- V0(t, "class", "progress-text svelte-17v219f"), b0(
+ V0(t, "class", "progress-text svelte-17v219f"), v0(
t,
"meta-text-center",
/*variant*/
n[8] === "center"
- ), b0(
+ ), v0(
t,
"meta-text",
/*variant*/
@@ -17612,61 +17612,61 @@ function fp(n) {
);
},
m(w, E) {
- c && c.m(w, E), ce(w, e, E), ce(w, t, E), p && p.m(t, null), Dn(t, r), _ && _.m(t, null), ce(w, a, E), ~i && D[i].m(w, E), ce(w, s, E), k && k.m(w, E), ce(w, o, E), u = !0;
+ c && c.m(w, E), fe(w, e, E), fe(w, t, E), p && p.m(t, null), Dn(t, r), _ && _.m(t, null), fe(w, a, E), ~i && D[i].m(w, E), fe(w, s, E), k && k.m(w, E), fe(w, o, E), u = !0;
},
p(w, E) {
/*variant*/
w[8] === "default" && /*show_eta_bar*/
w[18] && /*show_progress*/
- w[6] === "full" ? c ? c.p(w, E) : (c = Yc(w), c.c(), c.m(e.parentNode, e)) : c && (c.d(1), c = null), h === (h = d(w)) && p ? p.p(w, E) : (p && p.d(1), p = h && h(w), p && (p.c(), p.m(t, r))), /*timer*/
- w[5] ? _ ? _.p(w, E) : (_ = Jc(w), _.c(), _.m(t, null)) : _ && (_.d(1), _ = null), (!u || E[0] & /*variant*/
- 256) && b0(
+ w[6] === "full" ? c ? c.p(w, E) : (c = Zc(w), c.c(), c.m(e.parentNode, e)) : c && (c.d(1), c = null), h === (h = d(w)) && p ? p.p(w, E) : (p && p.d(1), p = h && h(w), p && (p.c(), p.m(t, r))), /*timer*/
+ w[5] ? _ ? _.p(w, E) : (_ = Qc(w), _.c(), _.m(t, null)) : _ && (_.d(1), _ = null), (!u || E[0] & /*variant*/
+ 256) && v0(
t,
"meta-text-center",
/*variant*/
w[8] === "center"
), (!u || E[0] & /*variant*/
- 256) && b0(
+ 256) && v0(
t,
"meta-text",
/*variant*/
w[8] === "default"
);
let S = i;
- i = y(w), i === S ? ~i && D[i].p(w, E) : (l && (su(), cr(D[S], 1, 1, () => {
+ i = y(w), i === S ? ~i && D[i].p(w, E) : (l && (ou(), or(D[S], 1, 1, () => {
D[S] = null;
- }), lu()), ~i ? (l = D[i], l ? l.p(w, E) : (l = D[i] = b[i](w), l.c()), U0(l, 1), l.m(s.parentNode, s)) : l = null), /*timer*/
- w[5] ? k && (su(), cr(k, 1, 1, () => {
+ }), su()), ~i ? (l = D[i], l ? l.p(w, E) : (l = D[i] = b[i](w), l.c()), H0(l, 1), l.m(s.parentNode, s)) : l = null), /*timer*/
+ w[5] ? k && (ou(), or(k, 1, 1, () => {
k = null;
- }), lu()) : k ? (k.p(w, E), E[0] & /*timer*/
- 32 && U0(k, 1)) : (k = af(w), k.c(), U0(k, 1), k.m(o.parentNode, o));
+ }), su()) : k ? (k.p(w, E), E[0] & /*timer*/
+ 32 && H0(k, 1)) : (k = lf(w), k.c(), H0(k, 1), k.m(o.parentNode, o));
},
i(w) {
- u || (U0(l), U0(k), u = !0);
+ u || (H0(l), H0(k), u = !0);
},
o(w) {
- cr(l), cr(k), u = !1;
+ or(l), or(k), u = !1;
},
d(w) {
- w && (ne(e), ne(t), ne(a), ne(s), ne(o)), c && c.d(w), p && p.d(), _ && _.d(), ~i && D[i].d(w), k && k.d(w);
+ w && (te(e), te(t), te(a), te(s), te(o)), c && c.d(w), p && p.d(), _ && _.d(), ~i && D[i].d(w), k && k.d(w);
}
};
}
-function Yc(n) {
+function Zc(n) {
let e, t = `translateX(${/*eta_level*/
(n[17] || 0) * 100 - 100}%)`;
return {
c() {
- e = ur("div"), this.h();
+ e = sr("div"), this.h();
},
l(r) {
- e = or(r, "DIV", { class: !0 }), sr(e).forEach(ne), this.h();
+ e = lr(r, "DIV", { class: !0 }), ir(e).forEach(te), this.h();
},
h() {
V0(e, "class", "eta-bar svelte-17v219f"), ln(e, "transform", t);
},
m(r, a) {
- ce(r, e, a);
+ fe(r, e, a);
},
p(r, a) {
a[0] & /*eta_level*/
@@ -17674,11 +17674,11 @@ function Yc(n) {
(r[17] || 0) * 100 - 100}%)`) && ln(e, "transform", t);
},
d(r) {
- r && ne(e);
+ r && te(e);
}
};
}
-function hp(n) {
+function dp(n) {
let e;
return {
c() {
@@ -17688,15 +17688,15 @@ function hp(n) {
e = Ze(t, "processing |");
},
m(t, r) {
- ce(t, e, r);
+ fe(t, e, r);
},
- p: ou,
+ p: uu,
d(t) {
- t && ne(e);
+ t && te(e);
}
};
}
-function dp(n) {
+function mp(n) {
let e, t = (
/*queue_position*/
n[2] + 1 + ""
@@ -17716,45 +17716,45 @@ function dp(n) {
), l = Ze(s, " |");
},
m(s, o) {
- ce(s, e, o), ce(s, r, o), ce(s, a, o), ce(s, i, o), ce(s, l, o);
+ fe(s, e, o), fe(s, r, o), fe(s, a, o), fe(s, i, o), fe(s, l, o);
},
p(s, o) {
o[0] & /*queue_position*/
4 && t !== (t = /*queue_position*/
- s[2] + 1 + "") && M0(r, t), o[0] & /*queue_size*/
- 8 && M0(
+ s[2] + 1 + "") && F0(r, t), o[0] & /*queue_size*/
+ 8 && F0(
i,
/*queue_size*/
s[3]
);
},
d(s) {
- s && (ne(e), ne(r), ne(a), ne(i), ne(l));
+ s && (te(e), te(r), te(a), te(i), te(l));
}
};
}
-function mp(n) {
+function pp(n) {
let e, t = Ll(
/*progress*/
n[7]
), r = [];
for (let a = 0; a < t.length; a += 1)
- r[a] = Kc(Xc(n, t, a));
+ r[a] = Jc(Yc(n, t, a));
return {
c() {
for (let a = 0; a < r.length; a += 1)
r[a].c();
- e = F0();
+ e = C0();
},
l(a) {
for (let i = 0; i < r.length; i += 1)
r[i].l(a);
- e = F0();
+ e = C0();
},
m(a, i) {
for (let l = 0; l < r.length; l += 1)
r[l] && r[l].m(a, i);
- ce(a, e, i);
+ fe(a, e, i);
},
p(a, i) {
if (i[0] & /*progress*/
@@ -17765,8 +17765,8 @@ function mp(n) {
);
let l;
for (l = 0; l < t.length; l += 1) {
- const s = Xc(a, t, l);
- r[l] ? r[l].p(s, i) : (r[l] = Kc(s), r[l].c(), r[l].m(e.parentNode, e));
+ const s = Yc(a, t, l);
+ r[l] ? r[l].p(s, i) : (r[l] = Jc(s), r[l].c(), r[l].m(e.parentNode, e));
}
for (; l < r.length; l += 1)
r[l].d(1);
@@ -17774,11 +17774,11 @@ function mp(n) {
}
},
d(a) {
- a && ne(e), K4(r, a);
+ a && te(e), J4(r, a);
}
};
}
-function Zc(n) {
+function Kc(n) {
let e, t = (
/*p*/
n[41].unit + ""
@@ -17786,31 +17786,31 @@ function Zc(n) {
function s(c, d) {
return (
/*p*/
- c[41].length != null ? gp : pp
+ c[41].length != null ? _p : gp
);
}
let o = s(n), u = o(n);
return {
c() {
- u.c(), e = E0(), r = Ke(t), a = Ke(" | "), l = Ke(i);
+ u.c(), e = A0(), r = Ke(t), a = Ke(" | "), l = Ke(i);
},
l(c) {
- u.l(c), e = A0(c), r = Ze(c, t), a = Ze(c, " | "), l = Ze(c, i);
+ u.l(c), e = D0(c), r = Ze(c, t), a = Ze(c, " | "), l = Ze(c, i);
},
m(c, d) {
- u.m(c, d), ce(c, e, d), ce(c, r, d), ce(c, a, d), ce(c, l, d);
+ u.m(c, d), fe(c, e, d), fe(c, r, d), fe(c, a, d), fe(c, l, d);
},
p(c, d) {
o === (o = s(c)) && u ? u.p(c, d) : (u.d(1), u = o(c), u && (u.c(), u.m(e.parentNode, e))), d[0] & /*progress*/
128 && t !== (t = /*p*/
- c[41].unit + "") && M0(r, t);
+ c[41].unit + "") && F0(r, t);
},
d(c) {
- c && (ne(e), ne(r), ne(a), ne(l)), u.d(c);
+ c && (te(e), te(r), te(a), te(l)), u.d(c);
}
};
}
-function pp(n) {
+function gp(n) {
let e = ea(
/*p*/
n[41].index || 0
@@ -17823,21 +17823,21 @@ function pp(n) {
t = Ze(r, e);
},
m(r, a) {
- ce(r, t, a);
+ fe(r, t, a);
},
p(r, a) {
a[0] & /*progress*/
128 && e !== (e = ea(
/*p*/
r[41].index || 0
- ) + "") && M0(t, e);
+ ) + "") && F0(t, e);
},
d(r) {
- r && ne(t);
+ r && te(t);
}
};
}
-function gp(n) {
+function _p(n) {
let e = ea(
/*p*/
n[41].index || 0
@@ -17853,49 +17853,49 @@ function gp(n) {
t = Ze(l, e), r = Ze(l, "/"), i = Ze(l, a);
},
m(l, s) {
- ce(l, t, s), ce(l, r, s), ce(l, i, s);
+ fe(l, t, s), fe(l, r, s), fe(l, i, s);
},
p(l, s) {
s[0] & /*progress*/
128 && e !== (e = ea(
/*p*/
l[41].index || 0
- ) + "") && M0(t, e), s[0] & /*progress*/
+ ) + "") && F0(t, e), s[0] & /*progress*/
128 && a !== (a = ea(
/*p*/
l[41].length
- ) + "") && M0(i, a);
+ ) + "") && F0(i, a);
},
d(l) {
- l && (ne(t), ne(r), ne(i));
- }
- };
-}
-function Kc(n) {
- let e, t = (
- /*p*/
- n[41].index != null && Zc(n)
- );
- return {
- c() {
- t && t.c(), e = F0();
- },
- l(r) {
- t && t.l(r), e = F0();
- },
- m(r, a) {
- t && t.m(r, a), ce(r, e, a);
- },
- p(r, a) {
- /*p*/
- r[41].index != null ? t ? t.p(r, a) : (t = Zc(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
- },
- d(r) {
- r && ne(e), t && t.d(r);
+ l && (te(t), te(r), te(i));
}
};
}
function Jc(n) {
+ let e, t = (
+ /*p*/
+ n[41].index != null && Kc(n)
+ );
+ return {
+ c() {
+ t && t.c(), e = C0();
+ },
+ l(r) {
+ t && t.l(r), e = C0();
+ },
+ m(r, a) {
+ t && t.m(r, a), fe(r, e, a);
+ },
+ p(r, a) {
+ /*p*/
+ r[41].index != null ? t ? t.p(r, a) : (t = Kc(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ },
+ d(r) {
+ r && te(e), t && t.d(r);
+ }
+ };
+}
+function Qc(n) {
let e, t = (
/*eta*/
n[0] ? `/${/*formatted_eta*/
@@ -17916,40 +17916,40 @@ function Jc(n) {
), r = Ze(i, t), a = Ze(i, "s");
},
m(i, l) {
- ce(i, e, l), ce(i, r, l), ce(i, a, l);
+ fe(i, e, l), fe(i, r, l), fe(i, a, l);
},
p(i, l) {
l[0] & /*formatted_timer*/
- 1048576 && M0(
+ 1048576 && F0(
e,
/*formatted_timer*/
i[20]
), l[0] & /*eta, formatted_eta*/
524289 && t !== (t = /*eta*/
i[0] ? `/${/*formatted_eta*/
- i[19]}` : "") && M0(r, t);
+ i[19]}` : "") && F0(r, t);
},
d(i) {
- i && (ne(e), ne(r), ne(a));
+ i && (te(e), te(r), te(a));
}
};
}
-function _p(n) {
+function vp(n) {
let e, t;
- return e = new tp({
+ return e = new rp({
props: { margin: (
/*variant*/
n[8] === "default"
) }
}), {
c() {
- X4(e.$$.fragment);
+ Y4(e.$$.fragment);
},
l(r) {
- W4(e.$$.fragment, r);
+ X4(e.$$.fragment, r);
},
m(r, a) {
- $4(e, r, a), t = !0;
+ em(e, r, a), t = !0;
},
p(r, a) {
const i = {};
@@ -17958,76 +17958,76 @@ function _p(n) {
r[8] === "default"), e.$set(i);
},
i(r) {
- t || (U0(e.$$.fragment, r), t = !0);
+ t || (H0(e.$$.fragment, r), t = !0);
},
o(r) {
- cr(e.$$.fragment, r), t = !1;
+ or(e.$$.fragment, r), t = !1;
},
d(r) {
- Z4(e, r);
+ K4(e, r);
}
};
}
-function vp(n) {
+function bp(n) {
let e, t, r, a, i, l = `${/*last_progress_level*/
n[15] * 100}%`, s = (
/*progress*/
- n[7] != null && Qc(n)
+ n[7] != null && $c(n)
);
return {
c() {
- e = ur("div"), t = ur("div"), s && s.c(), r = E0(), a = ur("div"), i = ur("div"), this.h();
+ e = sr("div"), t = sr("div"), s && s.c(), r = A0(), a = sr("div"), i = sr("div"), this.h();
},
l(o) {
- e = or(o, "DIV", { class: !0 });
- var u = sr(e);
- t = or(u, "DIV", { class: !0 });
- var c = sr(t);
- s && s.l(c), c.forEach(ne), r = A0(u), a = or(u, "DIV", { class: !0 });
- var d = sr(a);
- i = or(d, "DIV", { class: !0 }), sr(i).forEach(ne), d.forEach(ne), u.forEach(ne), this.h();
+ e = lr(o, "DIV", { class: !0 });
+ var u = ir(e);
+ t = lr(u, "DIV", { class: !0 });
+ var c = ir(t);
+ s && s.l(c), c.forEach(te), r = D0(u), a = lr(u, "DIV", { class: !0 });
+ var d = ir(a);
+ i = lr(d, "DIV", { class: !0 }), ir(i).forEach(te), d.forEach(te), u.forEach(te), this.h();
},
h() {
V0(t, "class", "progress-level-inner svelte-17v219f"), V0(i, "class", "progress-bar svelte-17v219f"), ln(i, "width", l), V0(a, "class", "progress-bar-wrap svelte-17v219f"), V0(e, "class", "progress-level svelte-17v219f");
},
m(o, u) {
- ce(o, e, u), Dn(e, t), s && s.m(t, null), Dn(e, r), Dn(e, a), Dn(a, i), n[31](i);
+ fe(o, e, u), Dn(e, t), s && s.m(t, null), Dn(e, r), Dn(e, a), Dn(a, i), n[31](i);
},
p(o, u) {
/*progress*/
- o[7] != null ? s ? s.p(o, u) : (s = Qc(o), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u[0] & /*last_progress_level*/
+ o[7] != null ? s ? s.p(o, u) : (s = $c(o), s.c(), s.m(t, null)) : s && (s.d(1), s = null), u[0] & /*last_progress_level*/
32768 && l !== (l = `${/*last_progress_level*/
o[15] * 100}%`) && ln(i, "width", l);
},
- i: ou,
- o: ou,
+ i: uu,
+ o: uu,
d(o) {
- o && ne(e), s && s.d(), n[31](null);
+ o && te(e), s && s.d(), n[31](null);
}
};
}
-function Qc(n) {
+function $c(n) {
let e, t = Ll(
/*progress*/
n[7]
), r = [];
for (let a = 0; a < t.length; a += 1)
- r[a] = nf(Wc(n, t, a));
+ r[a] = af(Xc(n, t, a));
return {
c() {
for (let a = 0; a < r.length; a += 1)
r[a].c();
- e = F0();
+ e = C0();
},
l(a) {
for (let i = 0; i < r.length; i += 1)
r[i].l(a);
- e = F0();
+ e = C0();
},
m(a, i) {
for (let l = 0; l < r.length; l += 1)
r[l] && r[l].m(a, i);
- ce(a, e, i);
+ fe(a, e, i);
},
p(a, i) {
if (i[0] & /*progress_level, progress*/
@@ -18038,8 +18038,8 @@ function Qc(n) {
);
let l;
for (l = 0; l < t.length; l += 1) {
- const s = Wc(a, t, l);
- r[l] ? r[l].p(s, i) : (r[l] = nf(s), r[l].c(), r[l].m(e.parentNode, e));
+ const s = Xc(a, t, l);
+ r[l] ? r[l].p(s, i) : (r[l] = af(s), r[l].c(), r[l].m(e.parentNode, e));
}
for (; l < r.length; l += 1)
r[l].d(1);
@@ -18047,17 +18047,17 @@ function Qc(n) {
}
},
d(a) {
- a && ne(e), K4(r, a);
+ a && te(e), J4(r, a);
}
};
}
-function $c(n) {
+function ef(n) {
let e, t, r, a, i = (
/*i*/
- n[43] !== 0 && bp()
+ n[43] !== 0 && wp()
), l = (
/*p*/
- n[41].desc != null && ef(n)
+ n[41].desc != null && tf(n)
), s = (
/*p*/
n[41].desc != null && /*progress_level*/
@@ -18065,38 +18065,38 @@ function $c(n) {
n[14][
/*i*/
n[43]
- ] != null && tf()
+ ] != null && rf()
), o = (
/*progress_level*/
- n[14] != null && rf(n)
+ n[14] != null && nf(n)
);
return {
c() {
- i && i.c(), e = E0(), l && l.c(), t = E0(), s && s.c(), r = E0(), o && o.c(), a = F0();
+ i && i.c(), e = A0(), l && l.c(), t = A0(), s && s.c(), r = A0(), o && o.c(), a = C0();
},
l(u) {
- i && i.l(u), e = A0(u), l && l.l(u), t = A0(u), s && s.l(u), r = A0(u), o && o.l(u), a = F0();
+ i && i.l(u), e = D0(u), l && l.l(u), t = D0(u), s && s.l(u), r = D0(u), o && o.l(u), a = C0();
},
m(u, c) {
- i && i.m(u, c), ce(u, e, c), l && l.m(u, c), ce(u, t, c), s && s.m(u, c), ce(u, r, c), o && o.m(u, c), ce(u, a, c);
+ i && i.m(u, c), fe(u, e, c), l && l.m(u, c), fe(u, t, c), s && s.m(u, c), fe(u, r, c), o && o.m(u, c), fe(u, a, c);
},
p(u, c) {
/*p*/
- u[41].desc != null ? l ? l.p(u, c) : (l = ef(u), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null), /*p*/
+ u[41].desc != null ? l ? l.p(u, c) : (l = tf(u), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null), /*p*/
u[41].desc != null && /*progress_level*/
u[14] && /*progress_level*/
u[14][
/*i*/
u[43]
- ] != null ? s || (s = tf(), s.c(), s.m(r.parentNode, r)) : s && (s.d(1), s = null), /*progress_level*/
- u[14] != null ? o ? o.p(u, c) : (o = rf(u), o.c(), o.m(a.parentNode, a)) : o && (o.d(1), o = null);
+ ] != null ? s || (s = rf(), s.c(), s.m(r.parentNode, r)) : s && (s.d(1), s = null), /*progress_level*/
+ u[14] != null ? o ? o.p(u, c) : (o = nf(u), o.c(), o.m(a.parentNode, a)) : o && (o.d(1), o = null);
},
d(u) {
- u && (ne(e), ne(t), ne(r), ne(a)), i && i.d(u), l && l.d(u), s && s.d(u), o && o.d(u);
+ u && (te(e), te(t), te(r), te(a)), i && i.d(u), l && l.d(u), s && s.d(u), o && o.d(u);
}
};
}
-function bp(n) {
+function wp(n) {
let e;
return {
c() {
@@ -18106,14 +18106,14 @@ function bp(n) {
e = Ze(t, " /");
},
m(t, r) {
- ce(t, e, r);
+ fe(t, e, r);
},
d(t) {
- t && ne(e);
+ t && te(e);
}
};
}
-function ef(n) {
+function tf(n) {
let e = (
/*p*/
n[41].desc + ""
@@ -18126,19 +18126,19 @@ function ef(n) {
t = Ze(r, e);
},
m(r, a) {
- ce(r, t, a);
+ fe(r, t, a);
},
p(r, a) {
a[0] & /*progress*/
128 && e !== (e = /*p*/
- r[41].desc + "") && M0(t, e);
+ r[41].desc + "") && F0(t, e);
},
d(r) {
- r && ne(t);
+ r && te(t);
}
};
}
-function tf(n) {
+function rf(n) {
let e;
return {
c() {
@@ -18148,14 +18148,14 @@ function tf(n) {
e = Ze(t, "-");
},
m(t, r) {
- ce(t, e, r);
+ fe(t, e, r);
},
d(t) {
- t && ne(e);
+ t && te(e);
}
};
}
-function rf(n) {
+function nf(n) {
let e = (100 * /*progress_level*/
(n[14][
/*i*/
@@ -18169,7 +18169,7 @@ function rf(n) {
t = Ze(a, e), r = Ze(a, "%");
},
m(a, i) {
- ce(a, t, i), ce(a, r, i);
+ fe(a, t, i), fe(a, r, i);
},
p(a, i) {
i[0] & /*progress_level*/
@@ -18177,14 +18177,14 @@ function rf(n) {
(a[14][
/*i*/
a[43]
- ] || 0)).toFixed(1) + "") && M0(t, e);
+ ] || 0)).toFixed(1) + "") && F0(t, e);
},
d(a) {
- a && (ne(t), ne(r));
+ a && (te(t), te(r));
}
};
}
-function nf(n) {
+function af(n) {
let e, t = (
/*p*/
(n[41].desc != null || /*progress_level*/
@@ -18192,17 +18192,17 @@ function nf(n) {
n[14][
/*i*/
n[43]
- ] != null) && $c(n)
+ ] != null) && ef(n)
);
return {
c() {
- t && t.c(), e = F0();
+ t && t.c(), e = C0();
},
l(r) {
- t && t.l(r), e = F0();
+ t && t.l(r), e = C0();
},
m(r, a) {
- t && t.m(r, a), ce(r, e, a);
+ t && t.m(r, a), fe(r, e, a);
},
p(r, a) {
/*p*/
@@ -18211,87 +18211,87 @@ function nf(n) {
r[14][
/*i*/
r[43]
- ] != null ? t ? t.p(r, a) : (t = $c(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ ] != null ? t ? t.p(r, a) : (t = ef(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(r) {
- r && ne(e), t && t.d(r);
+ r && te(e), t && t.d(r);
}
};
}
-function af(n) {
+function lf(n) {
let e, t, r, a;
const i = (
/*#slots*/
n[30]["additional-loading-text"]
- ), l = Y4(
+ ), l = Z4(
i,
n,
/*$$scope*/
n[29],
- jc
+ Wc
);
return {
c() {
- e = ur("p"), t = Ke(
+ e = sr("p"), t = Ke(
/*loading_text*/
n[9]
- ), r = E0(), l && l.c(), this.h();
+ ), r = A0(), l && l.c(), this.h();
},
l(s) {
- e = or(s, "P", { class: !0 });
- var o = sr(e);
+ e = lr(s, "P", { class: !0 });
+ var o = ir(e);
t = Ze(
o,
/*loading_text*/
n[9]
- ), o.forEach(ne), r = A0(s), l && l.l(s), this.h();
+ ), o.forEach(te), r = D0(s), l && l.l(s), this.h();
},
h() {
V0(e, "class", "loading svelte-17v219f");
},
m(s, o) {
- ce(s, e, o), Dn(e, t), ce(s, r, o), l && l.m(s, o), a = !0;
+ fe(s, e, o), Dn(e, t), fe(s, r, o), l && l.m(s, o), a = !0;
},
p(s, o) {
(!a || o[0] & /*loading_text*/
- 512) && M0(
+ 512) && F0(
t,
/*loading_text*/
s[9]
), l && l.p && (!a || o[0] & /*$$scope*/
- 536870912) && em(
+ 536870912) && tm(
l,
i,
s,
/*$$scope*/
s[29],
- a ? Q4(
+ a ? $4(
i,
/*$$scope*/
s[29],
o,
- up
- ) : J4(
+ cp
+ ) : Q4(
/*$$scope*/
s[29]
),
- jc
+ Wc
);
},
i(s) {
- a || (U0(l, s), a = !0);
+ a || (H0(l, s), a = !0);
},
o(s) {
- cr(l, s), a = !1;
+ or(l, s), a = !1;
},
d(s) {
- s && (ne(e), ne(r)), l && l.d(s);
+ s && (te(e), te(r)), l && l.d(s);
}
};
}
-function wp(n) {
+function yp(n) {
let e, t, r, a, i;
- const l = [fp, cp], s = [];
+ const l = [hp, fp], s = [];
function o(u, c) {
return (
/*status*/
@@ -18303,21 +18303,21 @@ function wp(n) {
}
return ~(t = o(n)) && (r = s[t] = l[t](n)), {
c() {
- e = ur("div"), r && r.c(), this.h();
+ e = sr("div"), r && r.c(), this.h();
},
l(u) {
- e = or(u, "DIV", { class: !0 });
- var c = sr(e);
- r && r.l(c), c.forEach(ne), this.h();
+ e = lr(u, "DIV", { class: !0 });
+ var c = ir(e);
+ r && r.l(c), c.forEach(te), this.h();
},
h() {
V0(e, "class", a = "wrap " + /*variant*/
n[8] + " " + /*show_progress*/
- n[6] + " svelte-17v219f"), b0(e, "hide", !/*status*/
+ n[6] + " svelte-17v219f"), v0(e, "hide", !/*status*/
n[4] || /*status*/
n[4] === "complete" || /*show_progress*/
n[6] === "hidden" || /*status*/
- n[4] == "streaming"), b0(
+ n[4] == "streaming"), v0(
e,
"translucent",
/*variant*/
@@ -18326,13 +18326,13 @@ function wp(n) {
n[4] === "error") || /*translucent*/
n[11] || /*show_progress*/
n[6] === "minimal"
- ), b0(
+ ), v0(
e,
"generating",
/*status*/
n[4] === "generating" && /*show_progress*/
n[6] === "full"
- ), b0(
+ ), v0(
e,
"border",
/*border*/
@@ -18350,22 +18350,22 @@ function wp(n) {
);
},
m(u, c) {
- ce(u, e, c), ~t && s[t].m(e, null), n[33](e), i = !0;
+ fe(u, e, c), ~t && s[t].m(e, null), n[33](e), i = !0;
},
p(u, c) {
let d = t;
- t = o(u), t === d ? ~t && s[t].p(u, c) : (r && (su(), cr(s[d], 1, 1, () => {
+ t = o(u), t === d ? ~t && s[t].p(u, c) : (r && (ou(), or(s[d], 1, 1, () => {
s[d] = null;
- }), lu()), ~t ? (r = s[t], r ? r.p(u, c) : (r = s[t] = l[t](u), r.c()), U0(r, 1), r.m(e, null)) : r = null), (!i || c[0] & /*variant, show_progress*/
+ }), su()), ~t ? (r = s[t], r ? r.p(u, c) : (r = s[t] = l[t](u), r.c()), H0(r, 1), r.m(e, null)) : r = null), (!i || c[0] & /*variant, show_progress*/
320 && a !== (a = "wrap " + /*variant*/
u[8] + " " + /*show_progress*/
u[6] + " svelte-17v219f")) && V0(e, "class", a), (!i || c[0] & /*variant, show_progress, status, show_progress*/
- 336) && b0(e, "hide", !/*status*/
+ 336) && v0(e, "hide", !/*status*/
u[4] || /*status*/
u[4] === "complete" || /*show_progress*/
u[6] === "hidden" || /*status*/
u[4] == "streaming"), (!i || c[0] & /*variant, show_progress, variant, status, translucent, show_progress*/
- 2384) && b0(
+ 2384) && v0(
e,
"translucent",
/*variant*/
@@ -18375,14 +18375,14 @@ function wp(n) {
u[11] || /*show_progress*/
u[6] === "minimal"
), (!i || c[0] & /*variant, show_progress, status, show_progress*/
- 336) && b0(
+ 336) && v0(
e,
"generating",
/*status*/
u[4] === "generating" && /*show_progress*/
u[6] === "full"
), (!i || c[0] & /*variant, show_progress, border*/
- 4416) && b0(
+ 4416) && v0(
e,
"border",
/*border*/
@@ -18402,17 +18402,17 @@ function wp(n) {
);
},
i(u) {
- i || (U0(r), i = !0);
+ i || (H0(r), i = !0);
},
o(u) {
- cr(r), i = !1;
+ or(r), i = !1;
},
d(u) {
- u && ne(e), ~t && s[t].d(), n[33](null);
+ u && te(e), ~t && s[t].d(), n[33](null);
}
};
}
-var yp = function(n, e, t, r) {
+var kp = function(n, e, t, r) {
function a(i) {
return i instanceof t ? i : new t(function(l) {
l(i);
@@ -18440,14 +18440,14 @@ var yp = function(n, e, t, r) {
});
};
let Zi = [], co = !1;
-const kp = typeof window < "u", tm = kp ? window.requestAnimationFrame : (n) => {
+const Dp = typeof window < "u", rm = Dp ? window.requestAnimationFrame : (n) => {
};
-function Dp(n) {
- return yp(this, arguments, void 0, function* (e, t = !0) {
+function Ap(n) {
+ return kp(this, arguments, void 0, function* (e, t = !0) {
if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && t !== !0)) {
if (Zi.push(e), !co) co = !0;
else return;
- yield ip(), tm(() => {
+ yield lp(), rm(() => {
let r = [0, 0];
for (let a = 0; a < Zi.length; a++) {
const l = Zi[a].getBoundingClientRect();
@@ -18458,36 +18458,36 @@ function Dp(n) {
}
});
}
-function Ap(n, e, t) {
+function Ep(n, e, t) {
let r, { $$slots: a = {}, $$scope: i } = e;
this && this.__awaiter;
- const l = sp();
- let { i18n: s } = e, { eta: o = null } = e, { queue_position: u } = e, { queue_size: c } = e, { status: d } = e, { scroll_to_output: h = !1 } = e, { timer: p = !0 } = e, { show_progress: _ = "full" } = e, { message: b = null } = e, { progress: D = null } = e, { variant: y = "default" } = e, { loading_text: k = "Loading..." } = e, { absolute: w = !0 } = e, { translucent: E = !1 } = e, { border: S = !1 } = e, { autoscroll: T } = e, C, F = !1, B = 0, I = 0, L = null, q = null, J = 0, Y = null, H, Q = null, fe = !0;
+ const l = op();
+ let { i18n: s } = e, { eta: o = null } = e, { queue_position: u } = e, { queue_size: c } = e, { status: d } = e, { scroll_to_output: h = !1 } = e, { timer: p = !0 } = e, { show_progress: _ = "full" } = e, { message: b = null } = e, { progress: D = null } = e, { variant: y = "default" } = e, { loading_text: k = "Loading..." } = e, { absolute: w = !0 } = e, { translucent: E = !1 } = e, { border: S = !1 } = e, { autoscroll: T } = e, C, F = !1, B = 0, I = 0, L = null, P = null, Z = 0, O = null, se, K = null, he = !0;
const ue = () => {
- t(0, o = t(27, L = t(19, te = null))), t(25, B = performance.now()), t(26, I = 0), F = !0, De();
+ t(0, o = t(27, L = t(19, $ = null))), t(25, B = performance.now()), t(26, I = 0), F = !0, Ae();
};
- function De() {
- tm(() => {
- t(26, I = (performance.now() - B) / 1e3), F && De();
+ function Ae() {
+ rm(() => {
+ t(26, I = (performance.now() - B) / 1e3), F && Ae();
});
}
- function we() {
- t(26, I = 0), t(0, o = t(27, L = t(19, te = null))), F && (F = !1);
+ function ye() {
+ t(26, I = 0), t(0, o = t(27, L = t(19, $ = null))), F && (F = !1);
}
- lp(() => {
- F && we();
+ sp(() => {
+ F && ye();
});
- let te = null;
+ let $ = null;
function de(V) {
- Vc[V ? "unshift" : "push"](() => {
- Q = V, t(16, Q), t(7, D), t(14, Y), t(15, H);
+ Gc[V ? "unshift" : "push"](() => {
+ K = V, t(16, K), t(7, D), t(14, O), t(15, se);
});
}
- const he = () => {
+ const ce = () => {
l("clear_status");
};
function Ce(V) {
- Vc[V ? "unshift" : "push"](() => {
+ Gc[V ? "unshift" : "push"](() => {
C = V, t(13, C);
});
}
@@ -18495,17 +18495,17 @@ function Ap(n, e, t) {
"i18n" in V && t(1, s = V.i18n), "eta" in V && t(0, o = V.eta), "queue_position" in V && t(2, u = V.queue_position), "queue_size" in V && t(3, c = V.queue_size), "status" in V && t(4, d = V.status), "scroll_to_output" in V && t(22, h = V.scroll_to_output), "timer" in V && t(5, p = V.timer), "show_progress" in V && t(6, _ = V.show_progress), "message" in V && t(23, b = V.message), "progress" in V && t(7, D = V.progress), "variant" in V && t(8, y = V.variant), "loading_text" in V && t(9, k = V.loading_text), "absolute" in V && t(10, w = V.absolute), "translucent" in V && t(11, E = V.translucent), "border" in V && t(12, S = V.border), "autoscroll" in V && t(24, T = V.autoscroll), "$$scope" in V && t(29, i = V.$$scope);
}, n.$$.update = () => {
n.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
- 436207617 && (o === null && t(0, o = L), o != null && L !== o && (t(28, q = (performance.now() - B) / 1e3 + o), t(19, te = q.toFixed(1)), t(27, L = o))), n.$$.dirty[0] & /*eta_from_start, timer_diff*/
- 335544320 && t(17, J = q === null || q <= 0 || !I ? null : Math.min(I / q, 1)), n.$$.dirty[0] & /*progress*/
- 128 && D != null && t(18, fe = !1), n.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
- 114816 && (D != null ? t(14, Y = D.map((V) => {
+ 436207617 && (o === null && t(0, o = L), o != null && L !== o && (t(28, P = (performance.now() - B) / 1e3 + o), t(19, $ = P.toFixed(1)), t(27, L = o))), n.$$.dirty[0] & /*eta_from_start, timer_diff*/
+ 335544320 && t(17, Z = P === null || P <= 0 || !I ? null : Math.min(I / P, 1)), n.$$.dirty[0] & /*progress*/
+ 128 && D != null && t(18, he = !1), n.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
+ 114816 && (D != null ? t(14, O = D.map((V) => {
if (V.index != null && V.length != null)
return V.index / V.length;
if (V.progress != null)
return V.progress;
- })) : t(14, Y = null), Y ? (t(15, H = Y[Y.length - 1]), Q && (H === 0 ? t(16, Q.style.transition = "0", Q) : t(16, Q.style.transition = "150ms", Q))) : t(15, H = void 0)), n.$$.dirty[0] & /*status*/
- 16 && (d === "pending" ? ue() : we()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
- 20979728 && C && h && (d === "pending" || d === "complete") && Dp(C, T), n.$$.dirty[0] & /*status, message*/
+ })) : t(14, O = null), O ? (t(15, se = O[O.length - 1]), K && (se === 0 ? t(16, K.style.transition = "0", K) : t(16, K.style.transition = "150ms", K))) : t(15, se = void 0)), n.$$.dirty[0] & /*status*/
+ 16 && (d === "pending" ? ue() : ye()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
+ 20979728 && C && h && (d === "pending" || d === "complete") && Ap(C, T), n.$$.dirty[0] & /*status, message*/
8388624, n.$$.dirty[0] & /*timer_diff*/
67108864 && t(20, r = I.toFixed(1));
}, [
@@ -18523,12 +18523,12 @@ function Ap(n, e, t) {
E,
S,
C,
- Y,
- H,
- Q,
- J,
- fe,
- te,
+ O,
+ se,
+ K,
+ Z,
+ he,
+ $,
r,
l,
h,
@@ -18537,22 +18537,22 @@ function Ap(n, e, t) {
B,
I,
L,
- q,
+ P,
i,
a,
de,
- he,
+ ce,
Ce
];
}
-class Ep extends rp {
+class Sp extends np {
constructor(e) {
- super(), np(
+ super(), ap(
this,
e,
- Ap,
- wp,
- ap,
+ Ep,
+ yp,
+ ip,
{
i18n: 1,
eta: 0,
@@ -18578,108 +18578,108 @@ class Ep extends rp {
}
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
const {
- entries: rm,
- setPrototypeOf: lf,
- isFrozen: Sp,
- getPrototypeOf: xp,
- getOwnPropertyDescriptor: Tp
+ entries: nm,
+ setPrototypeOf: sf,
+ isFrozen: xp,
+ getPrototypeOf: Tp,
+ getOwnPropertyDescriptor: Cp
} = Object;
let {
freeze: Gt,
- seal: z0,
- create: nm
+ seal: M0,
+ create: am
} = Object, {
- apply: uu,
- construct: cu
+ apply: cu,
+ construct: fu
} = typeof Reflect < "u" && Reflect;
Gt || (Gt = function(e) {
return e;
});
-z0 || (z0 = function(e) {
+M0 || (M0 = function(e) {
return e;
});
-uu || (uu = function(e, t, r) {
+cu || (cu = function(e, t, r) {
return e.apply(t, r);
});
-cu || (cu = function(e, t) {
+fu || (fu = function(e, t) {
return new e(...t);
});
-const Ki = jt(Array.prototype.forEach), Cp = jt(Array.prototype.lastIndexOf), sf = jt(Array.prototype.pop), Aa = jt(Array.prototype.push), Fp = jt(Array.prototype.splice), yl = jt(String.prototype.toLowerCase), fo = jt(String.prototype.toString), of = jt(String.prototype.match), Ea = jt(String.prototype.replace), Mp = jt(String.prototype.indexOf), zp = jt(String.prototype.trim), q0 = jt(Object.prototype.hasOwnProperty), Ut = jt(RegExp.prototype.test), Sa = Bp(TypeError);
+const Ki = jt(Array.prototype.forEach), Fp = jt(Array.prototype.lastIndexOf), of = jt(Array.prototype.pop), Aa = jt(Array.prototype.push), Mp = jt(Array.prototype.splice), yl = jt(String.prototype.toLowerCase), fo = jt(String.prototype.toString), uf = jt(String.prototype.match), Ea = jt(String.prototype.replace), zp = jt(String.prototype.indexOf), Bp = jt(String.prototype.trim), O0 = jt(Object.prototype.hasOwnProperty), Ut = jt(RegExp.prototype.test), Sa = Ip(TypeError);
function jt(n) {
return function(e) {
e instanceof RegExp && (e.lastIndex = 0);
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
r[a - 1] = arguments[a];
- return uu(n, e, r);
+ return cu(n, e, r);
};
}
-function Bp(n) {
+function Ip(n) {
return function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
t[r] = arguments[r];
- return cu(n, t);
+ return fu(n, t);
};
}
-function be(n, e) {
+function we(n, e) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : yl;
- lf && lf(n, null);
+ sf && sf(n, null);
let r = e.length;
for (; r--; ) {
let a = e[r];
if (typeof a == "string") {
const i = t(a);
- i !== a && (Sp(e) || (e[r] = i), a = i);
+ i !== a && (xp(e) || (e[r] = i), a = i);
}
n[a] = !0;
}
return n;
}
-function Ip(n) {
+function Lp(n) {
for (let e = 0; e < n.length; e++)
- q0(n, e) || (n[e] = null);
+ O0(n, e) || (n[e] = null);
return n;
}
function kn(n) {
- const e = nm(null);
- for (const [t, r] of rm(n))
- q0(n, t) && (Array.isArray(r) ? e[t] = Ip(r) : r && typeof r == "object" && r.constructor === Object ? e[t] = kn(r) : e[t] = r);
+ const e = am(null);
+ for (const [t, r] of nm(n))
+ O0(n, t) && (Array.isArray(r) ? e[t] = Lp(r) : r && typeof r == "object" && r.constructor === Object ? e[t] = kn(r) : e[t] = r);
return e;
}
function xa(n, e) {
for (; n !== null; ) {
- const r = Tp(n, e);
+ const r = Cp(n, e);
if (r) {
if (r.get)
return jt(r.get);
if (typeof r.value == "function")
return jt(r.value);
}
- n = xp(n);
+ n = Tp(n);
}
function t() {
return null;
}
return t;
}
-const uf = Gt(["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"]), ho = Gt(["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"]), mo = Gt(["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"]), Lp = Gt(["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"]), po = Gt(["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"]), Np = Gt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), cf = Gt(["#text"]), ff = Gt(["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"]), go = Gt(["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"]), hf = Gt(["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"]), Ji = Gt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Rp = z0(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Op = z0(/<%[\w\W]*|[\w\W]*%>/gm), qp = z0(/\$\{[\w\W]*/gm), Pp = z0(/^data-[\-\w.\u00B7-\uFFFF]+$/), Hp = z0(/^aria-[\-\w]+$/), am = z0(
+const cf = Gt(["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"]), ho = Gt(["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"]), mo = Gt(["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"]), Np = Gt(["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"]), po = Gt(["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"]), Rp = Gt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ff = Gt(["#text"]), hf = Gt(["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"]), go = Gt(["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"]), df = Gt(["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"]), Ji = Gt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Op = M0(/\{\{[\w\W]*|[\w\W]*\}\}/gm), qp = M0(/<%[\w\W]*|[\w\W]*%>/gm), Pp = M0(/\$\{[\w\W]*/gm), Hp = M0(/^data-[\-\w.\u00B7-\uFFFF]+$/), Up = M0(/^aria-[\-\w]+$/), im = M0(
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
// eslint-disable-line no-useless-escape
-), Up = z0(/^(?:\w+script|data):/i), Vp = z0(
+), Vp = M0(/^(?:\w+script|data):/i), Gp = M0(
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
// eslint-disable-line no-control-regex
-), im = z0(/^html$/i), Gp = z0(/^[a-z][.\w]*(-[.\w]+)+$/i);
-var df = /* @__PURE__ */ Object.freeze({
+), lm = M0(/^html$/i), jp = M0(/^[a-z][.\w]*(-[.\w]+)+$/i);
+var mf = /* @__PURE__ */ Object.freeze({
__proto__: null,
- ARIA_ATTR: Hp,
- ATTR_WHITESPACE: Vp,
- CUSTOM_ELEMENT: Gp,
- DATA_ATTR: Pp,
- DOCTYPE_NAME: im,
- ERB_EXPR: Op,
- IS_ALLOWED_URI: am,
- IS_SCRIPT_OR_DATA: Up,
- MUSTACHE_EXPR: Rp,
- TMPLIT_EXPR: qp
+ ARIA_ATTR: Up,
+ ATTR_WHITESPACE: Gp,
+ CUSTOM_ELEMENT: jp,
+ DATA_ATTR: Hp,
+ DOCTYPE_NAME: lm,
+ ERB_EXPR: qp,
+ IS_ALLOWED_URI: im,
+ IS_SCRIPT_OR_DATA: Vp,
+ MUSTACHE_EXPR: Op,
+ TMPLIT_EXPR: Pp
});
const Ta = {
element: 1,
@@ -18697,9 +18697,9 @@ const Ta = {
documentFragment: 11,
notation: 12
// Deprecated
-}, jp = function() {
+}, Wp = function() {
return typeof window > "u" ? null : window;
-}, Wp = function(e, t) {
+}, Xp = function(e, t) {
if (typeof e != "object" || typeof e.createPolicy != "function")
return null;
let r = null;
@@ -18718,7 +18718,7 @@ const Ta = {
} catch {
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
}
-}, mf = function() {
+}, pf = function() {
return {
afterSanitizeAttributes: [],
afterSanitizeElements: [],
@@ -18731,9 +18731,9 @@ const Ta = {
uponSanitizeShadowNode: []
};
};
-function lm() {
- let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : jp();
- const e = (re) => lm(re);
+function sm() {
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Wp();
+ const e = (ee) => sm(ee);
if (e.version = "3.2.5", e.removed = [], !n || !n.document || n.document.nodeType !== Ta.document || !n.Element)
return e.isSupported = !1, e;
let {
@@ -18751,8 +18751,8 @@ function lm() {
trustedTypes: p
} = n, _ = o.prototype, b = xa(_, "cloneNode"), D = xa(_, "remove"), y = xa(_, "nextSibling"), k = xa(_, "childNodes"), w = xa(_, "parentNode");
if (typeof l == "function") {
- const re = t.createElement("template");
- re.content && re.content.ownerDocument && (t = re.content.ownerDocument);
+ const ee = t.createElement("template");
+ ee.content && ee.content.ownerDocument && (t = ee.content.ownerDocument);
}
let E, S = "";
const {
@@ -18763,25 +18763,25 @@ function lm() {
} = t, {
importNode: I
} = r;
- let L = mf();
- e.isSupported = typeof rm == "function" && typeof w == "function" && T && T.createHTMLDocument !== void 0;
+ let L = pf();
+ e.isSupported = typeof nm == "function" && typeof w == "function" && T && T.createHTMLDocument !== void 0;
const {
- MUSTACHE_EXPR: q,
- ERB_EXPR: J,
- TMPLIT_EXPR: Y,
- DATA_ATTR: H,
- ARIA_ATTR: Q,
- IS_SCRIPT_OR_DATA: fe,
+ MUSTACHE_EXPR: P,
+ ERB_EXPR: Z,
+ TMPLIT_EXPR: O,
+ DATA_ATTR: se,
+ ARIA_ATTR: K,
+ IS_SCRIPT_OR_DATA: he,
ATTR_WHITESPACE: ue,
- CUSTOM_ELEMENT: De
- } = df;
+ CUSTOM_ELEMENT: Ae
+ } = mf;
let {
- IS_ALLOWED_URI: we
- } = df, te = null;
- const de = be({}, [...uf, ...ho, ...mo, ...po, ...cf]);
- let he = null;
- const Ce = be({}, [...ff, ...go, ...hf, ...Ji]);
- let V = Object.seal(nm(null, {
+ IS_ALLOWED_URI: ye
+ } = mf, $ = null;
+ const de = we({}, [...cf, ...ho, ...mo, ...po, ...ff]);
+ let ce = null;
+ const Ce = we({}, [...hf, ...go, ...df, ...Ji]);
+ let V = Object.seal(am(null, {
tagNameCheck: {
writable: !0,
configurable: !1,
@@ -18800,46 +18800,46 @@ function lm() {
enumerable: !0,
value: !1
}
- })), j = null, pe = null, ye = !0, Te = !0, ze = !1, Le = !0, Ge = !1, ht = !0, je = !1, Oe = !1, qe = !1, st = !1, qt = !1, R = !1, W0 = !0, X0 = !1;
- const Z = "user-content-";
- let et = !0, O = !1, Se = {}, We = null;
- const tt = be({}, ["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 l0 = null;
- const s0 = be({}, ["audio", "video", "img", "source", "image", "track"]);
- let Jt = null;
- const B0 = be({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), dt = "http://www.w3.org/1998/Math/MathML", p0 = "http://www.w3.org/2000/svg", Et = "http://www.w3.org/1999/xhtml";
- let Y0 = Et, gs = !1, _s = null;
- const Cm = be({}, [dt, p0, Et], fo);
- let vi = be({}, ["mi", "mo", "mn", "ms", "mtext"]), bi = be({}, ["annotation-xml"]);
- const Fm = be({}, ["title", "style", "font", "a", "script"]);
+ })), j = null, ge = null, ke = !0, Te = !0, ze = !1, Le = !0, je = !1, ft = !0, We = !1, qe = !1, Pe = !1, lt = !1, Ot = !1, qt = !1, Hr = !0, q = !1;
+ const gr = "user-content-";
+ let z0 = !0, N = !1, me = {}, ie = null;
+ const Qe = we({}, ["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 W0 = null;
+ const Dt = we({}, ["audio", "video", "img", "source", "image", "track"]);
+ let At = null;
+ const _r = we({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), l0 = "http://www.w3.org/1998/Math/MathML", m0 = "http://www.w3.org/2000/svg", Re = "http://www.w3.org/1999/xhtml";
+ let Jt = Re, gs = !1, _s = null;
+ const Fm = we({}, [l0, m0, Re], fo);
+ let vi = we({}, ["mi", "mo", "mn", "ms", "mtext"]), bi = we({}, ["annotation-xml"]);
+ const Mm = we({}, ["title", "style", "font", "a", "script"]);
let fa = null;
- const Mm = ["application/xhtml+xml", "text/html"], zm = "text/html";
- let bt = null, qn = null;
- const Bm = t.createElement("form"), h1 = function(z) {
+ const zm = ["application/xhtml+xml", "text/html"], Bm = "text/html";
+ let _t = null, qn = null;
+ const Im = t.createElement("form"), d1 = function(z) {
return z instanceof RegExp || z instanceof Function;
}, vs = function() {
let z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
if (!(qn && qn === z)) {
if ((!z || typeof z != "object") && (z = {}), z = kn(z), fa = // eslint-disable-next-line unicorn/prefer-includes
- Mm.indexOf(z.PARSER_MEDIA_TYPE) === -1 ? zm : z.PARSER_MEDIA_TYPE, bt = fa === "application/xhtml+xml" ? fo : yl, te = q0(z, "ALLOWED_TAGS") ? be({}, z.ALLOWED_TAGS, bt) : de, he = q0(z, "ALLOWED_ATTR") ? be({}, z.ALLOWED_ATTR, bt) : Ce, _s = q0(z, "ALLOWED_NAMESPACES") ? be({}, z.ALLOWED_NAMESPACES, fo) : Cm, Jt = q0(z, "ADD_URI_SAFE_ATTR") ? be(kn(B0), z.ADD_URI_SAFE_ATTR, bt) : B0, l0 = q0(z, "ADD_DATA_URI_TAGS") ? be(kn(s0), z.ADD_DATA_URI_TAGS, bt) : s0, We = q0(z, "FORBID_CONTENTS") ? be({}, z.FORBID_CONTENTS, bt) : tt, j = q0(z, "FORBID_TAGS") ? be({}, z.FORBID_TAGS, bt) : {}, pe = q0(z, "FORBID_ATTR") ? be({}, z.FORBID_ATTR, bt) : {}, Se = q0(z, "USE_PROFILES") ? z.USE_PROFILES : !1, ye = z.ALLOW_ARIA_ATTR !== !1, Te = z.ALLOW_DATA_ATTR !== !1, ze = z.ALLOW_UNKNOWN_PROTOCOLS || !1, Le = z.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ge = z.SAFE_FOR_TEMPLATES || !1, ht = z.SAFE_FOR_XML !== !1, je = z.WHOLE_DOCUMENT || !1, st = z.RETURN_DOM || !1, qt = z.RETURN_DOM_FRAGMENT || !1, R = z.RETURN_TRUSTED_TYPE || !1, qe = z.FORCE_BODY || !1, W0 = z.SANITIZE_DOM !== !1, X0 = z.SANITIZE_NAMED_PROPS || !1, et = z.KEEP_CONTENT !== !1, O = z.IN_PLACE || !1, we = z.ALLOWED_URI_REGEXP || am, Y0 = z.NAMESPACE || Et, vi = z.MATHML_TEXT_INTEGRATION_POINTS || vi, bi = z.HTML_INTEGRATION_POINTS || bi, V = z.CUSTOM_ELEMENT_HANDLING || {}, z.CUSTOM_ELEMENT_HANDLING && h1(z.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (V.tagNameCheck = z.CUSTOM_ELEMENT_HANDLING.tagNameCheck), z.CUSTOM_ELEMENT_HANDLING && h1(z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (V.attributeNameCheck = z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), z.CUSTOM_ELEMENT_HANDLING && typeof z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ge && (Te = !1), qt && (st = !0), Se && (te = be({}, cf), he = [], Se.html === !0 && (be(te, uf), be(he, ff)), Se.svg === !0 && (be(te, ho), be(he, go), be(he, Ji)), Se.svgFilters === !0 && (be(te, mo), be(he, go), be(he, Ji)), Se.mathMl === !0 && (be(te, po), be(he, hf), be(he, Ji))), z.ADD_TAGS && (te === de && (te = kn(te)), be(te, z.ADD_TAGS, bt)), z.ADD_ATTR && (he === Ce && (he = kn(he)), be(he, z.ADD_ATTR, bt)), z.ADD_URI_SAFE_ATTR && be(Jt, z.ADD_URI_SAFE_ATTR, bt), z.FORBID_CONTENTS && (We === tt && (We = kn(We)), be(We, z.FORBID_CONTENTS, bt)), et && (te["#text"] = !0), je && be(te, ["html", "head", "body"]), te.table && (be(te, ["tbody"]), delete j.tbody), z.TRUSTED_TYPES_POLICY) {
+ zm.indexOf(z.PARSER_MEDIA_TYPE) === -1 ? Bm : z.PARSER_MEDIA_TYPE, _t = fa === "application/xhtml+xml" ? fo : yl, $ = O0(z, "ALLOWED_TAGS") ? we({}, z.ALLOWED_TAGS, _t) : de, ce = O0(z, "ALLOWED_ATTR") ? we({}, z.ALLOWED_ATTR, _t) : Ce, _s = O0(z, "ALLOWED_NAMESPACES") ? we({}, z.ALLOWED_NAMESPACES, fo) : Fm, At = O0(z, "ADD_URI_SAFE_ATTR") ? we(kn(_r), z.ADD_URI_SAFE_ATTR, _t) : _r, W0 = O0(z, "ADD_DATA_URI_TAGS") ? we(kn(Dt), z.ADD_DATA_URI_TAGS, _t) : Dt, ie = O0(z, "FORBID_CONTENTS") ? we({}, z.FORBID_CONTENTS, _t) : Qe, j = O0(z, "FORBID_TAGS") ? we({}, z.FORBID_TAGS, _t) : {}, ge = O0(z, "FORBID_ATTR") ? we({}, z.FORBID_ATTR, _t) : {}, me = O0(z, "USE_PROFILES") ? z.USE_PROFILES : !1, ke = z.ALLOW_ARIA_ATTR !== !1, Te = z.ALLOW_DATA_ATTR !== !1, ze = z.ALLOW_UNKNOWN_PROTOCOLS || !1, Le = z.ALLOW_SELF_CLOSE_IN_ATTR !== !1, je = z.SAFE_FOR_TEMPLATES || !1, ft = z.SAFE_FOR_XML !== !1, We = z.WHOLE_DOCUMENT || !1, lt = z.RETURN_DOM || !1, Ot = z.RETURN_DOM_FRAGMENT || !1, qt = z.RETURN_TRUSTED_TYPE || !1, Pe = z.FORCE_BODY || !1, Hr = z.SANITIZE_DOM !== !1, q = z.SANITIZE_NAMED_PROPS || !1, z0 = z.KEEP_CONTENT !== !1, N = z.IN_PLACE || !1, ye = z.ALLOWED_URI_REGEXP || im, Jt = z.NAMESPACE || Re, vi = z.MATHML_TEXT_INTEGRATION_POINTS || vi, bi = z.HTML_INTEGRATION_POINTS || bi, V = z.CUSTOM_ELEMENT_HANDLING || {}, z.CUSTOM_ELEMENT_HANDLING && d1(z.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (V.tagNameCheck = z.CUSTOM_ELEMENT_HANDLING.tagNameCheck), z.CUSTOM_ELEMENT_HANDLING && d1(z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (V.attributeNameCheck = z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), z.CUSTOM_ELEMENT_HANDLING && typeof z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), je && (Te = !1), Ot && (lt = !0), me && ($ = we({}, ff), ce = [], me.html === !0 && (we($, cf), we(ce, hf)), me.svg === !0 && (we($, ho), we(ce, go), we(ce, Ji)), me.svgFilters === !0 && (we($, mo), we(ce, go), we(ce, Ji)), me.mathMl === !0 && (we($, po), we(ce, df), we(ce, Ji))), z.ADD_TAGS && ($ === de && ($ = kn($)), we($, z.ADD_TAGS, _t)), z.ADD_ATTR && (ce === Ce && (ce = kn(ce)), we(ce, z.ADD_ATTR, _t)), z.ADD_URI_SAFE_ATTR && we(At, z.ADD_URI_SAFE_ATTR, _t), z.FORBID_CONTENTS && (ie === Qe && (ie = kn(ie)), we(ie, z.FORBID_CONTENTS, _t)), z0 && ($["#text"] = !0), We && we($, ["html", "head", "body"]), $.table && (we($, ["tbody"]), delete j.tbody), z.TRUSTED_TYPES_POLICY) {
if (typeof z.TRUSTED_TYPES_POLICY.createHTML != "function")
throw Sa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
if (typeof z.TRUSTED_TYPES_POLICY.createScriptURL != "function")
throw Sa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
E = z.TRUSTED_TYPES_POLICY, S = E.createHTML("");
} else
- E === void 0 && (E = Wp(p, a)), E !== null && typeof S == "string" && (S = E.createHTML(""));
+ E === void 0 && (E = Xp(p, a)), E !== null && typeof S == "string" && (S = E.createHTML(""));
Gt && Gt(z), qn = z;
}
- }, d1 = be({}, [...ho, ...mo, ...Lp]), m1 = be({}, [...po, ...Np]), Im = function(z) {
+ }, m1 = we({}, [...ho, ...mo, ...Np]), p1 = we({}, [...po, ...Rp]), Lm = function(z) {
let W = w(z);
(!W || !W.tagName) && (W = {
- namespaceURI: Y0,
+ namespaceURI: Jt,
tagName: "template"
});
- const ee = yl(z.tagName), Pe = yl(W.tagName);
- return _s[z.namespaceURI] ? z.namespaceURI === p0 ? W.namespaceURI === Et ? ee === "svg" : W.namespaceURI === dt ? ee === "svg" && (Pe === "annotation-xml" || vi[Pe]) : !!d1[ee] : z.namespaceURI === dt ? W.namespaceURI === Et ? ee === "math" : W.namespaceURI === p0 ? ee === "math" && bi[Pe] : !!m1[ee] : z.namespaceURI === Et ? W.namespaceURI === p0 && !bi[Pe] || W.namespaceURI === dt && !vi[Pe] ? !1 : !m1[ee] && (Fm[ee] || !d1[ee]) : !!(fa === "application/xhtml+xml" && _s[z.namespaceURI]) : !1;
- }, Z0 = function(z) {
+ const Q = yl(z.tagName), He = yl(W.tagName);
+ return _s[z.namespaceURI] ? z.namespaceURI === m0 ? W.namespaceURI === Re ? Q === "svg" : W.namespaceURI === l0 ? Q === "svg" && (He === "annotation-xml" || vi[He]) : !!m1[Q] : z.namespaceURI === l0 ? W.namespaceURI === Re ? Q === "math" : W.namespaceURI === m0 ? Q === "math" && bi[He] : !!p1[Q] : z.namespaceURI === Re ? W.namespaceURI === m0 && !bi[He] || W.namespaceURI === l0 && !vi[He] ? !1 : !p1[Q] && (Mm[Q] || !m1[Q]) : !!(fa === "application/xhtml+xml" && _s[z.namespaceURI]) : !1;
+ }, X0 = function(z) {
Aa(e.removed, {
element: z
});
@@ -18861,9 +18861,9 @@ function lm() {
});
}
if (W.removeAttribute(z), z === "is")
- if (st || qt)
+ if (lt || Ot)
try {
- Z0(W);
+ X0(W);
} catch {
}
else
@@ -18871,31 +18871,31 @@ function lm() {
W.setAttribute(z, "");
} catch {
}
- }, p1 = function(z) {
- let W = null, ee = null;
- if (qe)
+ }, g1 = function(z) {
+ let W = null, Q = null;
+ if (Pe)
z = " " + z;
else {
- const St = of(z, /^[\r\n\t ]+/);
- ee = St && St[0];
+ const Et = uf(z, /^[\r\n\t ]+/);
+ Q = Et && Et[0];
}
- fa === "application/xhtml+xml" && Y0 === Et && (z = '' + z + "");
- const Pe = E ? E.createHTML(z) : z;
- if (Y0 === Et)
+ fa === "application/xhtml+xml" && Jt === Re && (z = '' + z + "");
+ const He = E ? E.createHTML(z) : z;
+ if (Jt === Re)
try {
- W = new h().parseFromString(Pe, fa);
+ W = new h().parseFromString(He, fa);
} catch {
}
if (!W || !W.documentElement) {
- W = T.createDocument(Y0, "template", null);
+ W = T.createDocument(Jt, "template", null);
try {
- W.documentElement.innerHTML = gs ? S : Pe;
+ W.documentElement.innerHTML = gs ? S : He;
} catch {
}
}
- const Nt = W.body || W.documentElement;
- return z && ee && Nt.insertBefore(t.createTextNode(ee), Nt.childNodes[0] || null), Y0 === Et ? B.call(W, je ? "html" : "body")[0] : je ? W.documentElement : Nt;
- }, g1 = function(z) {
+ const Lt = W.body || W.documentElement;
+ return z && Q && Lt.insertBefore(t.createTextNode(Q), Lt.childNodes[0] || null), Jt === Re ? B.call(W, We ? "html" : "body")[0] : We ? W.documentElement : Lt;
+ }, _1 = function(z) {
return C.call(
z.ownerDocument || z,
z,
@@ -18905,63 +18905,63 @@ function lm() {
);
}, bs = function(z) {
return z instanceof d && (typeof z.nodeName != "string" || typeof z.textContent != "string" || typeof z.removeChild != "function" || !(z.attributes instanceof c) || typeof z.removeAttribute != "function" || typeof z.setAttribute != "function" || typeof z.namespaceURI != "string" || typeof z.insertBefore != "function" || typeof z.hasChildNodes != "function");
- }, _1 = function(z) {
+ }, v1 = function(z) {
return typeof s == "function" && z instanceof s;
};
- function vr(re, z, W) {
- Ki(re, (ee) => {
- ee.call(e, z, W, qn);
+ function vr(ee, z, W) {
+ Ki(ee, (Q) => {
+ Q.call(e, z, W, qn);
});
}
- const v1 = function(z) {
+ const b1 = function(z) {
let W = null;
if (vr(L.beforeSanitizeElements, z, null), bs(z))
- return Z0(z), !0;
- const ee = bt(z.nodeName);
+ return X0(z), !0;
+ const Q = _t(z.nodeName);
if (vr(L.uponSanitizeElement, z, {
- tagName: ee,
- allowedTags: te
- }), z.hasChildNodes() && !_1(z.firstElementChild) && Ut(/<[/\w!]/g, z.innerHTML) && Ut(/<[/\w!]/g, z.textContent) || z.nodeType === Ta.progressingInstruction || ht && z.nodeType === Ta.comment && Ut(/<[/\w]/g, z.data))
- return Z0(z), !0;
- if (!te[ee] || j[ee]) {
- if (!j[ee] && w1(ee) && (V.tagNameCheck instanceof RegExp && Ut(V.tagNameCheck, ee) || V.tagNameCheck instanceof Function && V.tagNameCheck(ee)))
+ tagName: Q,
+ allowedTags: $
+ }), z.hasChildNodes() && !v1(z.firstElementChild) && Ut(/<[/\w!]/g, z.innerHTML) && Ut(/<[/\w!]/g, z.textContent) || z.nodeType === Ta.progressingInstruction || ft && z.nodeType === Ta.comment && Ut(/<[/\w]/g, z.data))
+ return X0(z), !0;
+ if (!$[Q] || j[Q]) {
+ if (!j[Q] && y1(Q) && (V.tagNameCheck instanceof RegExp && Ut(V.tagNameCheck, Q) || V.tagNameCheck instanceof Function && V.tagNameCheck(Q)))
return !1;
- if (et && !We[ee]) {
- const Pe = w(z) || z.parentNode, Nt = k(z) || z.childNodes;
- if (Nt && Pe) {
- const St = Nt.length;
- for (let Qt = St - 1; Qt >= 0; --Qt) {
- const K0 = b(Nt[Qt], !0);
- K0.__removalCount = (z.__removalCount || 0) + 1, Pe.insertBefore(K0, y(z));
+ if (z0 && !ie[Q]) {
+ const He = w(z) || z.parentNode, Lt = k(z) || z.childNodes;
+ if (Lt && He) {
+ const Et = Lt.length;
+ for (let Qt = Et - 1; Qt >= 0; --Qt) {
+ const Y0 = b(Lt[Qt], !0);
+ Y0.__removalCount = (z.__removalCount || 0) + 1, He.insertBefore(Y0, y(z));
}
}
}
- return Z0(z), !0;
+ return X0(z), !0;
}
- return z instanceof o && !Im(z) || (ee === "noscript" || ee === "noembed" || ee === "noframes") && Ut(/<\/no(script|embed|frames)/i, z.innerHTML) ? (Z0(z), !0) : (Ge && z.nodeType === Ta.text && (W = z.textContent, Ki([q, J, Y], (Pe) => {
- W = Ea(W, Pe, " ");
+ return z instanceof o && !Lm(z) || (Q === "noscript" || Q === "noembed" || Q === "noframes") && Ut(/<\/no(script|embed|frames)/i, z.innerHTML) ? (X0(z), !0) : (je && z.nodeType === Ta.text && (W = z.textContent, Ki([P, Z, O], (He) => {
+ W = Ea(W, He, " ");
}), z.textContent !== W && (Aa(e.removed, {
element: z.cloneNode()
}), z.textContent = W)), vr(L.afterSanitizeElements, z, null), !1);
- }, b1 = function(z, W, ee) {
- if (W0 && (W === "id" || W === "name") && (ee in t || ee in Bm))
+ }, w1 = function(z, W, Q) {
+ if (Hr && (W === "id" || W === "name") && (Q in t || Q in Im))
return !1;
- if (!(Te && !pe[W] && Ut(H, W))) {
- if (!(ye && Ut(Q, W))) {
- if (!he[W] || pe[W]) {
+ if (!(Te && !ge[W] && Ut(se, W))) {
+ if (!(ke && Ut(K, W))) {
+ if (!ce[W] || ge[W]) {
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
- !(w1(z) && (V.tagNameCheck instanceof RegExp && Ut(V.tagNameCheck, z) || V.tagNameCheck instanceof Function && V.tagNameCheck(z)) && (V.attributeNameCheck instanceof RegExp && Ut(V.attributeNameCheck, W) || V.attributeNameCheck instanceof Function && V.attributeNameCheck(W)) || // Alternative, second condition checks if it's an `is`-attribute, AND
+ !(y1(z) && (V.tagNameCheck instanceof RegExp && Ut(V.tagNameCheck, z) || V.tagNameCheck instanceof Function && V.tagNameCheck(z)) && (V.attributeNameCheck instanceof RegExp && Ut(V.attributeNameCheck, W) || V.attributeNameCheck instanceof Function && V.attributeNameCheck(W)) || // Alternative, second condition checks if it's an `is`-attribute, AND
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
- W === "is" && V.allowCustomizedBuiltInElements && (V.tagNameCheck instanceof RegExp && Ut(V.tagNameCheck, ee) || V.tagNameCheck instanceof Function && V.tagNameCheck(ee)))
+ W === "is" && V.allowCustomizedBuiltInElements && (V.tagNameCheck instanceof RegExp && Ut(V.tagNameCheck, Q) || V.tagNameCheck instanceof Function && V.tagNameCheck(Q)))
) return !1;
- } else if (!Jt[W]) {
- if (!Ut(we, Ea(ee, ue, ""))) {
- if (!((W === "src" || W === "xlink:href" || W === "href") && z !== "script" && Mp(ee, "data:") === 0 && l0[z])) {
- if (!(ze && !Ut(fe, Ea(ee, ue, "")))) {
- if (ee)
+ } else if (!At[W]) {
+ if (!Ut(ye, Ea(Q, ue, ""))) {
+ if (!((W === "src" || W === "xlink:href" || W === "href") && z !== "script" && zp(Q, "data:") === 0 && W0[z])) {
+ if (!(ze && !Ut(he, Ea(Q, ue, "")))) {
+ if (Q)
return !1;
}
}
@@ -18970,47 +18970,47 @@ function lm() {
}
}
return !0;
- }, w1 = function(z) {
- return z !== "annotation-xml" && of(z, De);
}, y1 = function(z) {
+ return z !== "annotation-xml" && uf(z, Ae);
+ }, k1 = function(z) {
vr(L.beforeSanitizeAttributes, z, null);
const {
attributes: W
} = z;
if (!W || bs(z))
return;
- const ee = {
+ const Q = {
attrName: "",
attrValue: "",
keepAttr: !0,
- allowedAttributes: he,
+ allowedAttributes: ce,
forceKeepAttr: void 0
};
- let Pe = W.length;
- for (; Pe--; ) {
- const Nt = W[Pe], {
- name: St,
+ let He = W.length;
+ for (; He--; ) {
+ const Lt = W[He], {
+ name: Et,
namespaceURI: Qt,
- value: K0
- } = Nt, ha = bt(St);
- let Pt = St === "value" ? K0 : zp(K0);
- if (ee.attrName = ha, ee.attrValue = Pt, ee.keepAttr = !0, ee.forceKeepAttr = void 0, vr(L.uponSanitizeAttribute, z, ee), Pt = ee.attrValue, X0 && (ha === "id" || ha === "name") && (wi(St, z), Pt = Z + Pt), ht && Ut(/((--!?|])>)|<\/(style|title)/i, Pt)) {
- wi(St, z);
+ value: Y0
+ } = Lt, ha = _t(Et);
+ let Pt = Et === "value" ? Y0 : Bp(Y0);
+ if (Q.attrName = ha, Q.attrValue = Pt, Q.keepAttr = !0, Q.forceKeepAttr = void 0, vr(L.uponSanitizeAttribute, z, Q), Pt = Q.attrValue, q && (ha === "id" || ha === "name") && (wi(Et, z), Pt = gr + Pt), ft && Ut(/((--!?|])>)|<\/(style|title)/i, Pt)) {
+ wi(Et, z);
continue;
}
- if (ee.forceKeepAttr || (wi(St, z), !ee.keepAttr))
+ if (Q.forceKeepAttr || (wi(Et, z), !Q.keepAttr))
continue;
if (!Le && Ut(/\/>/i, Pt)) {
- wi(St, z);
+ wi(Et, z);
continue;
}
- Ge && Ki([q, J, Y], (D1) => {
- Pt = Ea(Pt, D1, " ");
+ je && Ki([P, Z, O], (A1) => {
+ Pt = Ea(Pt, A1, " ");
});
- const k1 = bt(z.nodeName);
- if (b1(k1, ha, Pt)) {
+ const D1 = _t(z.nodeName);
+ if (w1(D1, ha, Pt)) {
if (E && typeof p == "object" && typeof p.getAttributeType == "function" && !Qt)
- switch (p.getAttributeType(k1, ha)) {
+ switch (p.getAttributeType(D1, ha)) {
case "TrustedHTML": {
Pt = E.createHTML(Pt);
break;
@@ -19021,208 +19021,208 @@ function lm() {
}
}
try {
- Qt ? z.setAttributeNS(Qt, St, Pt) : z.setAttribute(St, Pt), bs(z) ? Z0(z) : sf(e.removed);
+ Qt ? z.setAttributeNS(Qt, Et, Pt) : z.setAttribute(Et, Pt), bs(z) ? X0(z) : of(e.removed);
} catch {
}
}
}
vr(L.afterSanitizeAttributes, z, null);
- }, Lm = function re(z) {
+ }, Nm = function ee(z) {
let W = null;
- const ee = g1(z);
- for (vr(L.beforeSanitizeShadowDOM, z, null); W = ee.nextNode(); )
- vr(L.uponSanitizeShadowNode, W, null), v1(W), y1(W), W.content instanceof i && re(W.content);
+ const Q = _1(z);
+ for (vr(L.beforeSanitizeShadowDOM, z, null); W = Q.nextNode(); )
+ vr(L.uponSanitizeShadowNode, W, null), b1(W), k1(W), W.content instanceof i && ee(W.content);
vr(L.afterSanitizeShadowDOM, z, null);
};
- return e.sanitize = function(re) {
- let z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, W = null, ee = null, Pe = null, Nt = null;
- if (gs = !re, gs && (re = ""), typeof re != "string" && !_1(re))
- if (typeof re.toString == "function") {
- if (re = re.toString(), typeof re != "string")
+ return e.sanitize = function(ee) {
+ let z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, W = null, Q = null, He = null, Lt = null;
+ if (gs = !ee, gs && (ee = ""), typeof ee != "string" && !v1(ee))
+ if (typeof ee.toString == "function") {
+ if (ee = ee.toString(), typeof ee != "string")
throw Sa("dirty is not a string, aborting");
} else
throw Sa("toString is not a function");
if (!e.isSupported)
- return re;
- if (Oe || vs(z), e.removed = [], typeof re == "string" && (O = !1), O) {
- if (re.nodeName) {
- const K0 = bt(re.nodeName);
- if (!te[K0] || j[K0])
+ return ee;
+ if (qe || vs(z), e.removed = [], typeof ee == "string" && (N = !1), N) {
+ if (ee.nodeName) {
+ const Y0 = _t(ee.nodeName);
+ if (!$[Y0] || j[Y0])
throw Sa("root node is forbidden and cannot be sanitized in-place");
}
- } else if (re instanceof s)
- W = p1(""), ee = W.ownerDocument.importNode(re, !0), ee.nodeType === Ta.element && ee.nodeName === "BODY" || ee.nodeName === "HTML" ? W = ee : W.appendChild(ee);
+ } else if (ee instanceof s)
+ W = g1(""), Q = W.ownerDocument.importNode(ee, !0), Q.nodeType === Ta.element && Q.nodeName === "BODY" || Q.nodeName === "HTML" ? W = Q : W.appendChild(Q);
else {
- if (!st && !Ge && !je && // eslint-disable-next-line unicorn/prefer-includes
- re.indexOf("<") === -1)
- return E && R ? E.createHTML(re) : re;
- if (W = p1(re), !W)
- return st ? null : R ? S : "";
+ if (!lt && !je && !We && // eslint-disable-next-line unicorn/prefer-includes
+ ee.indexOf("<") === -1)
+ return E && qt ? E.createHTML(ee) : ee;
+ if (W = g1(ee), !W)
+ return lt ? null : qt ? S : "";
}
- W && qe && Z0(W.firstChild);
- const St = g1(O ? re : W);
- for (; Pe = St.nextNode(); )
- v1(Pe), y1(Pe), Pe.content instanceof i && Lm(Pe.content);
- if (O)
- return re;
- if (st) {
- if (qt)
- for (Nt = F.call(W.ownerDocument); W.firstChild; )
- Nt.appendChild(W.firstChild);
+ W && Pe && X0(W.firstChild);
+ const Et = _1(N ? ee : W);
+ for (; He = Et.nextNode(); )
+ b1(He), k1(He), He.content instanceof i && Nm(He.content);
+ if (N)
+ return ee;
+ if (lt) {
+ if (Ot)
+ for (Lt = F.call(W.ownerDocument); W.firstChild; )
+ Lt.appendChild(W.firstChild);
else
- Nt = W;
- return (he.shadowroot || he.shadowrootmode) && (Nt = I.call(r, Nt, !0)), Nt;
+ Lt = W;
+ return (ce.shadowroot || ce.shadowrootmode) && (Lt = I.call(r, Lt, !0)), Lt;
}
- let Qt = je ? W.outerHTML : W.innerHTML;
- return je && te["!doctype"] && W.ownerDocument && W.ownerDocument.doctype && W.ownerDocument.doctype.name && Ut(im, W.ownerDocument.doctype.name) && (Qt = "
-` + Qt), Ge && Ki([q, J, Y], (K0) => {
- Qt = Ea(Qt, K0, " ");
- }), E && R ? E.createHTML(Qt) : Qt;
+ let Qt = We ? W.outerHTML : W.innerHTML;
+ return We && $["!doctype"] && W.ownerDocument && W.ownerDocument.doctype && W.ownerDocument.doctype.name && Ut(lm, W.ownerDocument.doctype.name) && (Qt = "
+` + Qt), je && Ki([P, Z, O], (Y0) => {
+ Qt = Ea(Qt, Y0, " ");
+ }), E && qt ? E.createHTML(Qt) : Qt;
}, e.setConfig = function() {
- let re = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
- vs(re), Oe = !0;
+ let ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
+ vs(ee), qe = !0;
}, e.clearConfig = function() {
- qn = null, Oe = !1;
- }, e.isValidAttribute = function(re, z, W) {
+ qn = null, qe = !1;
+ }, e.isValidAttribute = function(ee, z, W) {
qn || vs({});
- const ee = bt(re), Pe = bt(z);
- return b1(ee, Pe, W);
- }, e.addHook = function(re, z) {
- typeof z == "function" && Aa(L[re], z);
- }, e.removeHook = function(re, z) {
+ const Q = _t(ee), He = _t(z);
+ return w1(Q, He, W);
+ }, e.addHook = function(ee, z) {
+ typeof z == "function" && Aa(L[ee], z);
+ }, e.removeHook = function(ee, z) {
if (z !== void 0) {
- const W = Cp(L[re], z);
- return W === -1 ? void 0 : Fp(L[re], W, 1)[0];
+ const W = Fp(L[ee], z);
+ return W === -1 ? void 0 : Mp(L[ee], W, 1)[0];
}
- return sf(L[re]);
- }, e.removeHooks = function(re) {
- L[re] = [];
+ return of(L[ee]);
+ }, e.removeHooks = function(ee) {
+ L[ee] = [];
}, e.removeAllHooks = function() {
- L = mf();
+ L = pf();
}, e;
}
-var ay = lm();
+var ay = sm();
const {
- SvelteComponent: Xp,
- attr: Yp,
- children: Zp,
- claim_element: Kp,
- detach: fu,
- element: Jp,
- empty: pf,
- init: Qp,
- insert_hydration: sm,
- noop: gf,
- safe_not_equal: $p,
- set_style: _f
+ SvelteComponent: Yp,
+ attr: Zp,
+ children: Kp,
+ claim_element: Jp,
+ detach: hu,
+ element: Qp,
+ empty: gf,
+ init: $p,
+ insert_hydration: om,
+ noop: _f,
+ safe_not_equal: e8,
+ set_style: vf
} = window.__gradio__svelte__internal;
-function vf(n) {
+function bf(n) {
let e, t = `${/*time_limit*/
n[0]}s`;
return {
c() {
- e = Jp("div"), this.h();
+ e = Qp("div"), this.h();
},
l(r) {
- e = Kp(r, "DIV", { class: !0 }), Zp(e).forEach(fu), this.h();
+ e = Jp(r, "DIV", { class: !0 }), Kp(e).forEach(hu), this.h();
},
h() {
- Yp(e, "class", "streaming-bar svelte-ga0jj6"), _f(e, "animation-duration", t);
+ Zp(e, "class", "streaming-bar svelte-ga0jj6"), vf(e, "animation-duration", t);
},
m(r, a) {
- sm(r, e, a);
+ om(r, e, a);
},
p(r, a) {
a & /*time_limit*/
1 && t !== (t = `${/*time_limit*/
- r[0]}s`) && _f(e, "animation-duration", t);
+ r[0]}s`) && vf(e, "animation-duration", t);
},
d(r) {
- r && fu(e);
+ r && hu(e);
}
};
}
-function e8(n) {
+function t8(n) {
let e, t = (
/*time_limit*/
- n[0] && vf(n)
+ n[0] && bf(n)
);
return {
c() {
- t && t.c(), e = pf();
+ t && t.c(), e = gf();
},
l(r) {
- t && t.l(r), e = pf();
+ t && t.l(r), e = gf();
},
m(r, a) {
- t && t.m(r, a), sm(r, e, a);
+ t && t.m(r, a), om(r, e, a);
},
p(r, [a]) {
/*time_limit*/
- r[0] ? t ? t.p(r, a) : (t = vf(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ r[0] ? t ? t.p(r, a) : (t = bf(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
- i: gf,
- o: gf,
+ i: _f,
+ o: _f,
d(r) {
- r && fu(e), t && t.d(r);
+ r && hu(e), t && t.d(r);
}
};
}
-function t8(n, e, t) {
+function r8(n, e, t) {
let { time_limit: r } = e;
return n.$$set = (a) => {
"time_limit" in a && t(0, r = a.time_limit);
}, [r];
}
-class om extends Xp {
+class um extends Yp {
constructor(e) {
- super(), Qp(this, e, t8, e8, $p, { time_limit: 0 });
+ super(), $p(this, e, r8, t8, e8, { time_limit: 0 });
}
}
const {
- SvelteComponent: r8,
+ SvelteComponent: n8,
append_hydration: _o,
attr: Qi,
- children: bf,
- claim_component: n8,
- claim_element: wf,
- claim_space: a8,
- claim_text: i8,
- create_component: l8,
- destroy_component: s8,
+ children: wf,
+ claim_component: a8,
+ claim_element: yf,
+ claim_space: i8,
+ claim_text: l8,
+ create_component: s8,
+ destroy_component: o8,
detach: vo,
- element: yf,
- init: o8,
- insert_hydration: u8,
- mount_component: c8,
- safe_not_equal: f8,
- set_data: h8,
- space: d8,
- text: m8,
+ element: kf,
+ init: u8,
+ insert_hydration: c8,
+ mount_component: f8,
+ safe_not_equal: h8,
+ set_data: d8,
+ space: m8,
+ text: p8,
toggle_class: Zr,
- transition_in: p8,
- transition_out: g8
+ transition_in: g8,
+ transition_out: _8
} = window.__gradio__svelte__internal;
-function _8(n) {
+function v8(n) {
let e, t, r, a, i, l;
return r = new /*Icon*/
n[1]({}), {
c() {
- e = yf("label"), t = yf("span"), l8(r.$$.fragment), a = d8(), i = m8(
+ e = kf("label"), t = kf("span"), s8(r.$$.fragment), a = m8(), i = p8(
/*label*/
n[0]
), this.h();
},
l(s) {
- e = wf(s, "LABEL", {
+ e = yf(s, "LABEL", {
for: !0,
"data-testid": !0,
class: !0
});
- var o = bf(e);
- t = wf(o, "SPAN", { class: !0 });
- var u = bf(t);
- n8(r.$$.fragment, u), u.forEach(vo), a = a8(o), i = i8(
+ var o = wf(e);
+ t = yf(o, "SPAN", { class: !0 });
+ var u = wf(t);
+ a8(r.$$.fragment, u), u.forEach(vo), a = i8(o), i = l8(
o,
/*label*/
n[0]
@@ -19244,11 +19244,11 @@ function _8(n) {
);
},
m(s, o) {
- u8(s, e, o), _o(e, t), c8(r, t, null), _o(e, a), _o(e, i), l = !0;
+ c8(s, e, o), _o(e, t), f8(r, t, null), _o(e, a), _o(e, i), l = !0;
},
p(s, [o]) {
(!l || o & /*label*/
- 1) && h8(
+ 1) && d8(
i,
/*label*/
s[0]
@@ -19271,25 +19271,25 @@ function _8(n) {
);
},
i(s) {
- l || (p8(r.$$.fragment, s), l = !0);
+ l || (g8(r.$$.fragment, s), l = !0);
},
o(s) {
- g8(r.$$.fragment, s), l = !1;
+ _8(r.$$.fragment, s), l = !1;
},
d(s) {
- s && vo(e), s8(r);
+ s && vo(e), o8(r);
}
};
}
-function v8(n, e, t) {
+function b8(n, e, t) {
let { label: r = null } = e, { Icon: a } = e, { show_label: i = !0 } = e, { disable: l = !1 } = e, { float: s = !0 } = e;
return n.$$set = (o) => {
"label" in o && t(0, r = o.label), "Icon" in o && t(1, a = o.Icon), "show_label" in o && t(2, i = o.show_label), "disable" in o && t(3, l = o.disable), "float" in o && t(4, s = o.float);
}, [r, a, i, l, s];
}
-class as extends r8 {
+class as extends n8 {
constructor(e) {
- super(), o8(this, e, v8, _8, f8, {
+ super(), u8(this, e, b8, v8, h8, {
label: 0,
Icon: 1,
show_label: 2,
@@ -19299,48 +19299,48 @@ class as extends r8 {
}
}
const {
- SvelteComponent: b8,
- append_hydration: hu,
+ SvelteComponent: w8,
+ append_hydration: du,
attr: yr,
- bubble: w8,
- check_outros: y8,
- children: du,
- claim_component: k8,
- claim_element: mu,
- claim_space: D8,
- claim_text: A8,
- construct_svelte_component: kf,
- create_component: Df,
- destroy_component: Af,
+ bubble: y8,
+ check_outros: k8,
+ children: mu,
+ claim_component: D8,
+ claim_element: pu,
+ claim_space: A8,
+ claim_text: E8,
+ construct_svelte_component: Df,
+ create_component: Af,
+ destroy_component: Ef,
detach: Ua,
- element: pu,
- group_outros: E8,
- init: S8,
- insert_hydration: um,
- listen: x8,
- mount_component: Ef,
- safe_not_equal: T8,
- set_data: C8,
+ element: gu,
+ group_outros: S8,
+ init: x8,
+ insert_hydration: cm,
+ listen: T8,
+ mount_component: Sf,
+ safe_not_equal: C8,
+ set_data: F8,
set_style: $i,
- space: F8,
- text: M8,
+ space: M8,
+ text: z8,
toggle_class: $t,
- transition_in: Sf,
- transition_out: xf
+ transition_in: xf,
+ transition_out: Tf
} = window.__gradio__svelte__internal;
-function Tf(n) {
+function Cf(n) {
let e, t;
return {
c() {
- e = pu("span"), t = M8(
+ e = gu("span"), t = z8(
/*label*/
n[1]
), this.h();
},
l(r) {
- e = mu(r, "SPAN", { class: !0 });
- var a = du(e);
- t = A8(
+ e = pu(r, "SPAN", { class: !0 });
+ var a = mu(e);
+ t = E8(
a,
/*label*/
n[1]
@@ -19350,11 +19350,11 @@ function Tf(n) {
yr(e, "class", "svelte-vk34kx");
},
m(r, a) {
- um(r, e, a), hu(e, t);
+ cm(r, e, a), du(e, t);
},
p(r, a) {
a & /*label*/
- 2 && C8(
+ 2 && F8(
t,
/*label*/
r[1]
@@ -19365,10 +19365,10 @@ function Tf(n) {
}
};
}
-function z8(n) {
+function B8(n) {
let e, t, r, a, i, l, s, o = (
/*show_label*/
- n[2] && Tf(n)
+ n[2] && Cf(n)
);
var u = (
/*Icon*/
@@ -19377,21 +19377,21 @@ function z8(n) {
function c(d, h) {
return {};
}
- return u && (a = kf(u, c())), {
+ return u && (a = Df(u, c())), {
c() {
- e = pu("button"), o && o.c(), t = F8(), r = pu("div"), a && Df(a.$$.fragment), this.h();
+ e = gu("button"), o && o.c(), t = M8(), r = gu("div"), a && Af(a.$$.fragment), this.h();
},
l(d) {
- e = mu(d, "BUTTON", {
+ e = pu(d, "BUTTON", {
"aria-label": !0,
"aria-haspopup": !0,
title: !0,
class: !0
});
- var h = du(e);
- o && o.l(h), t = D8(h), r = mu(h, "DIV", { class: !0 });
- var p = du(r);
- a && k8(a.$$.fragment, p), p.forEach(Ua), h.forEach(Ua), this.h();
+ var h = mu(e);
+ o && o.l(h), t = A8(h), r = pu(h, "DIV", { class: !0 });
+ var p = mu(r);
+ a && D8(a.$$.fragment, p), p.forEach(Ua), h.forEach(Ua), this.h();
},
h() {
yr(r, "class", "svelte-vk34kx"), $t(
@@ -19457,7 +19457,7 @@ function z8(n) {
));
},
m(d, h) {
- um(d, e, h), o && o.m(e, null), hu(e, t), hu(e, r), a && Ef(a, r, null), i = !0, l || (s = x8(
+ cm(d, e, h), o && o.m(e, null), du(e, t), du(e, r), a && Sf(a, r, null), i = !0, l || (s = T8(
e,
"click",
/*click_handler*/
@@ -19466,17 +19466,17 @@ function z8(n) {
},
p(d, [h]) {
if (/*show_label*/
- d[2] ? o ? o.p(d, h) : (o = Tf(d), o.c(), o.m(e, t)) : o && (o.d(1), o = null), h & /*Icon*/
+ d[2] ? o ? o.p(d, h) : (o = Cf(d), o.c(), o.m(e, t)) : o && (o.d(1), o = null), h & /*Icon*/
1 && u !== (u = /*Icon*/
d[0])) {
if (a) {
- E8();
+ S8();
const p = a;
- xf(p.$$.fragment, 1, 0, () => {
- Af(p, 1);
- }), y8();
+ Tf(p.$$.fragment, 1, 0, () => {
+ Ef(p, 1);
+ }), k8();
}
- u ? (a = kf(u, c()), Df(a.$$.fragment), Sf(a.$$.fragment, 1), Ef(a, r, null)) : a = null;
+ u ? (a = Df(u, c()), Af(a.$$.fragment), xf(a.$$.fragment, 1), Sf(a, r, null)) : a = null;
}
(!i || h & /*size*/
16) && $t(
@@ -19554,20 +19554,20 @@ function z8(n) {
));
},
i(d) {
- i || (a && Sf(a.$$.fragment, d), i = !0);
+ i || (a && xf(a.$$.fragment, d), i = !0);
},
o(d) {
- a && xf(a.$$.fragment, d), i = !1;
+ a && Tf(a.$$.fragment, d), i = !1;
},
d(d) {
- d && Ua(e), o && o.d(), a && Af(a), l = !1, s();
+ d && Ua(e), o && o.d(), a && Ef(a), l = !1, s();
}
};
}
-function B8(n, e, t) {
+function I8(n, e, t) {
let r, { Icon: a } = e, { label: i = "" } = e, { show_label: l = !1 } = e, { pending: s = !1 } = e, { size: o = "small" } = e, { padded: u = !0 } = e, { highlight: c = !1 } = e, { disabled: d = !1 } = e, { hasPopup: h = !1 } = e, { color: p = "var(--block-label-text-color)" } = e, { transparent: _ = !1 } = e, { background: b = "var(--block-background-fill)" } = e;
function D(y) {
- w8.call(this, n, y);
+ y8.call(this, n, y);
}
return n.$$set = (y) => {
"Icon" in y && t(0, a = y.Icon), "label" in y && t(1, i = y.label), "show_label" in y && t(2, l = y.show_label), "pending" in y && t(3, s = y.pending), "size" in y && t(4, o = y.size), "padded" in y && t(5, u = y.padded), "highlight" in y && t(6, c = y.highlight), "disabled" in y && t(7, d = y.disabled), "hasPopup" in y && t(8, h = y.hasPopup), "color" in y && t(12, p = y.color), "transparent" in y && t(9, _ = y.transparent), "background" in y && t(10, b = y.background);
@@ -19591,9 +19591,9 @@ function B8(n, e, t) {
D
];
}
-class I8 extends b8 {
+class L8 extends w8 {
constructor(e) {
- super(), S8(this, e, B8, z8, T8, {
+ super(), x8(this, e, I8, B8, C8, {
Icon: 0,
label: 1,
show_label: 2,
@@ -19610,31 +19610,31 @@ class I8 extends b8 {
}
}
const {
- SvelteComponent: L8,
- append_hydration: N8,
+ SvelteComponent: N8,
+ append_hydration: R8,
attr: bo,
- binding_callbacks: R8,
- children: Cf,
- claim_element: Ff,
- create_slot: O8,
+ binding_callbacks: O8,
+ children: Ff,
+ claim_element: Mf,
+ create_slot: q8,
detach: wo,
- element: Mf,
- get_all_dirty_from_scope: q8,
- get_slot_changes: P8,
- init: H8,
- insert_hydration: U8,
- safe_not_equal: V8,
+ element: zf,
+ get_all_dirty_from_scope: P8,
+ get_slot_changes: H8,
+ init: U8,
+ insert_hydration: V8,
+ safe_not_equal: G8,
toggle_class: Kr,
- transition_in: G8,
- transition_out: j8,
- update_slot_base: W8
+ transition_in: j8,
+ transition_out: W8,
+ update_slot_base: X8
} = window.__gradio__svelte__internal;
-function X8(n) {
+function Y8(n) {
let e, t, r;
const a = (
/*#slots*/
n[5].default
- ), i = O8(
+ ), i = q8(
a,
n,
/*$$scope*/
@@ -19643,13 +19643,13 @@ function X8(n) {
);
return {
c() {
- e = Mf("div"), t = Mf("div"), i && i.c(), this.h();
+ e = zf("div"), t = zf("div"), i && i.c(), this.h();
},
l(l) {
- e = Ff(l, "DIV", { class: !0, "aria-label": !0 });
- var s = Cf(e);
- t = Ff(s, "DIV", { class: !0 });
- var o = Cf(t);
+ e = Mf(l, "DIV", { class: !0, "aria-label": !0 });
+ var s = Ff(e);
+ t = Mf(s, "DIV", { class: !0 });
+ var o = Ff(t);
i && i.l(o), o.forEach(wo), s.forEach(wo), this.h();
},
h() {
@@ -19676,23 +19676,23 @@ function X8(n) {
);
},
m(l, s) {
- U8(l, e, s), N8(e, t), i && i.m(t, null), n[6](e), r = !0;
+ V8(l, e, s), R8(e, t), i && i.m(t, null), n[6](e), r = !0;
},
p(l, [s]) {
i && i.p && (!r || s & /*$$scope*/
- 16) && W8(
+ 16) && X8(
i,
a,
l,
/*$$scope*/
l[4],
- r ? P8(
+ r ? H8(
a,
/*$$scope*/
l[4],
s,
null
- ) : q8(
+ ) : P8(
/*$$scope*/
l[4]
),
@@ -19724,17 +19724,17 @@ function X8(n) {
);
},
i(l) {
- r || (G8(i, l), r = !0);
+ r || (j8(i, l), r = !0);
},
o(l) {
- j8(i, l), r = !1;
+ W8(i, l), r = !1;
},
d(l) {
l && wo(e), i && i.d(l), n[6](null);
}
};
}
-function Y8(n, e, t) {
+function Z8(n, e, t) {
let r, { $$slots: a = {}, $$scope: i } = e, { size: l = "small" } = e, { unpadded_box: s = !1 } = e, o;
function u(d) {
var h;
@@ -19743,7 +19743,7 @@ function Y8(n, e, t) {
return p > _ + 2;
}
function c(d) {
- R8[d ? "unshift" : "push"](() => {
+ O8[d ? "unshift" : "push"](() => {
o = d, t(2, o);
});
}
@@ -19754,14 +19754,14 @@ function Y8(n, e, t) {
4 && t(3, r = u(o));
}, [l, s, o, r, i, a, c];
}
-class cm extends L8 {
+class fm extends N8 {
constructor(e) {
- super(), H8(this, e, Y8, X8, V8, { size: 0, unpadded_box: 1 });
+ super(), U8(this, e, Z8, Y8, G8, { size: 0, unpadded_box: 1 });
}
}
-const Z8 = /^(#\s*)(.+)$/m;
-function K8(n) {
- const e = n.trim(), t = e.match(Z8);
+const K8 = /^(#\s*)(.+)$/m;
+function J8(n) {
+ const e = n.trim(), t = e.match(K8);
if (!t)
return [!1, e || !1];
const [r, , a] = t, i = a.trim();
@@ -19771,66 +19771,43 @@ function K8(n) {
return [i, o];
}
const {
- SvelteComponent: J8,
+ SvelteComponent: Q8,
append_hydration: Sn,
attr: Za,
- check_outros: Q8,
+ check_outros: $8,
children: Ka,
- claim_component: fm,
+ claim_component: hm,
claim_element: Ja,
claim_space: is,
claim_text: An,
- create_component: hm,
- destroy_component: dm,
- detach: Ot,
+ create_component: dm,
+ destroy_component: mm,
+ detach: Rt,
element: Qa,
empty: Nl,
- group_outros: $8,
- init: eg,
+ group_outros: eg,
+ init: tg,
insert_hydration: j0,
- mount_component: mm,
- safe_not_equal: tg,
+ mount_component: pm,
+ safe_not_equal: rg,
set_data: $a,
space: ls,
text: En,
- toggle_class: zf,
+ toggle_class: Bf,
transition_in: Rl,
transition_out: Ol
} = window.__gradio__svelte__internal;
-function rg(n) {
- let e, t;
- return e = new Z2({}), {
- c() {
- hm(e.$$.fragment);
- },
- l(r) {
- fm(e.$$.fragment, r);
- },
- m(r, a) {
- mm(e, r, a), t = !0;
- },
- i(r) {
- t || (Rl(e.$$.fragment, r), t = !0);
- },
- o(r) {
- Ol(e.$$.fragment, r), t = !1;
- },
- d(r) {
- dm(e, r);
- }
- };
-}
function ng(n) {
let e, t;
- return e = new S2({}), {
+ return e = new K2({}), {
c() {
- hm(e.$$.fragment);
+ dm(e.$$.fragment);
},
l(r) {
- fm(e.$$.fragment, r);
+ hm(e.$$.fragment, r);
},
m(r, a) {
- mm(e, r, a), t = !0;
+ pm(e, r, a), t = !0;
},
i(r) {
t || (Rl(e.$$.fragment, r), t = !0);
@@ -19839,11 +19816,34 @@ function ng(n) {
Ol(e.$$.fragment, r), t = !1;
},
d(r) {
- dm(e, r);
+ mm(e, r);
}
};
}
function ag(n) {
+ let e, t;
+ return e = new x2({}), {
+ c() {
+ dm(e.$$.fragment);
+ },
+ l(r) {
+ hm(e.$$.fragment, r);
+ },
+ m(r, a) {
+ pm(e, r, a), t = !0;
+ },
+ i(r) {
+ t || (Rl(e.$$.fragment, r), t = !0);
+ },
+ o(r) {
+ Ol(e.$$.fragment, r), t = !1;
+ },
+ d(r) {
+ mm(e, r);
+ }
+ };
+}
+function ig(n) {
let e = (
/*i18n*/
n[1](
@@ -19856,7 +19856,7 @@ function ag(n) {
) + ""
), t, r, a, i = (
/*mode*/
- n[3] !== "short" && Bf(n)
+ n[3] !== "short" && If(n)
);
return {
c() {
@@ -19879,20 +19879,20 @@ function ag(n) {
] || /*defs*/
l[7].file
) + "") && $a(t, e), /*mode*/
- l[3] !== "short" ? i ? i.p(l, s) : (i = Bf(l), i.c(), i.m(a.parentNode, a)) : i && (i.d(1), i = null);
+ l[3] !== "short" ? i ? i.p(l, s) : (i = If(l), i.c(), i.m(a.parentNode, a)) : i && (i.d(1), i = null);
},
d(l) {
- l && (Ot(t), Ot(r), Ot(a)), i && i.d(l);
+ l && (Rt(t), Rt(r), Rt(a)), i && i.d(l);
}
};
}
-function ig(n) {
+function lg(n) {
let e, t, r = (
/*heading*/
- n[6] && If(n)
+ n[6] && Lf(n)
), a = (
/*paragraph*/
- n[5] && Lf(n)
+ n[5] && Nf(n)
);
return {
c() {
@@ -19906,15 +19906,15 @@ function ig(n) {
},
p(i, l) {
/*heading*/
- i[6] ? r ? r.p(i, l) : (r = If(i), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), /*paragraph*/
- i[5] ? a ? a.p(i, l) : (a = Lf(i), a.c(), a.m(t.parentNode, t)) : a && (a.d(1), a = null);
+ i[6] ? r ? r.p(i, l) : (r = Lf(i), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), /*paragraph*/
+ i[5] ? a ? a.p(i, l) : (a = Nf(i), a.c(), a.m(t.parentNode, t)) : a && (a.d(1), a = null);
},
d(i) {
- i && (Ot(e), Ot(t)), r && r.d(i), a && a.d(i);
+ i && (Rt(e), Rt(t)), r && r.d(i), a && a.d(i);
}
};
}
-function Bf(n) {
+function If(n) {
let e, t, r = (
/*i18n*/
n[1]("common.or") + ""
@@ -19930,7 +19930,7 @@ function Bf(n) {
l(u) {
e = Ja(u, "SPAN", { class: !0 });
var c = Ka(e);
- t = An(c, "- "), a = An(c, r), i = An(c, " -"), c.forEach(Ot), l = is(u), o = An(u, s), this.h();
+ t = An(c, "- "), a = An(c, r), i = An(c, " -"), c.forEach(Rt), l = is(u), o = An(u, s), this.h();
},
h() {
Za(e, "class", "or svelte-1xg7h5n");
@@ -19947,11 +19947,11 @@ function Bf(n) {
u[1]("upload_text.click_to_upload")) + "") && $a(o, s);
},
d(u) {
- u && (Ot(e), Ot(l), Ot(o));
+ u && (Rt(e), Rt(l), Rt(o));
}
};
}
-function If(n) {
+function Lf(n) {
let e, t;
return {
c() {
@@ -19967,7 +19967,7 @@ function If(n) {
a,
/*heading*/
n[6]
- ), a.forEach(Ot), this.h();
+ ), a.forEach(Rt), this.h();
},
h() {
Za(e, "class", "svelte-1xg7h5n");
@@ -19984,11 +19984,11 @@ function If(n) {
);
},
d(r) {
- r && Ot(e);
+ r && Rt(e);
}
};
}
-function Lf(n) {
+function Nf(n) {
let e, t;
return {
c() {
@@ -20004,7 +20004,7 @@ function Lf(n) {
a,
/*paragraph*/
n[5]
- ), a.forEach(Ot), this.h();
+ ), a.forEach(Rt), this.h();
},
h() {
Za(e, "class", "svelte-1xg7h5n");
@@ -20021,13 +20021,13 @@ function Lf(n) {
);
},
d(r) {
- r && Ot(e);
+ r && Rt(e);
}
};
}
-function lg(n) {
+function sg(n) {
let e, t, r, a, i, l;
- const s = [ng, rg], o = [];
+ const s = [ag, ng], o = [];
function u(p, _) {
return (
/*type*/
@@ -20039,7 +20039,7 @@ function lg(n) {
return (
/*heading*/
p[6] || /*paragraph*/
- p[5] ? ig : ag
+ p[5] ? lg : ig
);
}
let d = c(n), h = d(n);
@@ -20052,10 +20052,10 @@ function lg(n) {
var _ = Ka(e);
t = Ja(_, "SPAN", { class: !0 });
var b = Ka(t);
- a.l(b), b.forEach(Ot), i = is(_), h.l(_), _.forEach(Ot), this.h();
+ a.l(b), b.forEach(Rt), i = is(_), h.l(_), _.forEach(Rt), this.h();
},
h() {
- Za(t, "class", "icon-wrap svelte-1xg7h5n"), zf(
+ Za(t, "class", "icon-wrap svelte-1xg7h5n"), Bf(
t,
"hovered",
/*hovered*/
@@ -20067,10 +20067,10 @@ function lg(n) {
},
p(p, [_]) {
let b = r;
- r = u(p), r !== b && ($8(), Ol(o[b], 1, 1, () => {
+ r = u(p), r !== b && (eg(), Ol(o[b], 1, 1, () => {
o[b] = null;
- }), Q8(), a = o[r], a || (a = o[r] = s[r](p), a.c()), Rl(a, 1), a.m(t, null)), (!l || _ & /*hovered*/
- 16) && zf(
+ }), $8(), a = o[r], a || (a = o[r] = s[r](p), a.c()), Rl(a, 1), a.m(t, null)), (!l || _ & /*hovered*/
+ 16) && Bf(
t,
"hovered",
/*hovered*/
@@ -20084,11 +20084,11 @@ function lg(n) {
Ol(a), l = !1;
},
d(p) {
- p && Ot(e), o[r].d(), h.d();
+ p && Rt(e), o[r].d(), h.d();
}
};
}
-function sg(n, e, t) {
+function og(n, e, t) {
let r, a, { type: i = "file" } = e, { i18n: l } = e, { message: s = void 0 } = e, { mode: o = "full" } = e, { hovered: u = !1 } = e, { placeholder: c = void 0 } = e;
const d = {
image: "upload_text.drop_image",
@@ -20103,12 +20103,12 @@ function sg(n, e, t) {
"type" in h && t(0, i = h.type), "i18n" in h && t(1, l = h.i18n), "message" in h && t(2, s = h.message), "mode" in h && t(3, o = h.mode), "hovered" in h && t(4, u = h.hovered), "placeholder" in h && t(8, c = h.placeholder);
}, n.$$.update = () => {
n.$$.dirty & /*placeholder*/
- 256 && t(6, [r, a] = c ? K8(c) : [!1, !1], r, (t(5, a), t(8, c)));
+ 256 && t(6, [r, a] = c ? J8(c) : [!1, !1], r, (t(5, a), t(8, c)));
}, [i, l, s, o, u, a, r, d, c];
}
-class og extends J8 {
+class ug extends Q8 {
constructor(e) {
- super(), eg(this, e, sg, lg, tg, {
+ super(), tg(this, e, og, sg, rg, {
type: 0,
i18n: 1,
message: 2,
@@ -20119,34 +20119,34 @@ class og extends J8 {
}
}
const {
- SvelteComponent: ug,
+ SvelteComponent: cg,
append_hydration: el,
attr: yo,
- check_outros: cg,
+ check_outros: fg,
children: ko,
- claim_component: fg,
+ claim_component: hg,
claim_element: Do,
- claim_space: hg,
- claim_text: dg,
- construct_svelte_component: Nf,
- create_component: Rf,
- destroy_component: Of,
+ claim_space: dg,
+ claim_text: mg,
+ construct_svelte_component: Rf,
+ create_component: Of,
+ destroy_component: qf,
detach: tl,
element: Ao,
- group_outros: mg,
- init: pg,
- insert_hydration: gg,
- listen: _g,
- mount_component: qf,
- safe_not_equal: vg,
- set_data: bg,
- set_style: wg,
- space: yg,
- text: kg,
- transition_in: Pf,
- transition_out: Hf
-} = window.__gradio__svelte__internal, { createEventDispatcher: Dg } = window.__gradio__svelte__internal;
-function Ag(n) {
+ group_outros: pg,
+ init: gg,
+ insert_hydration: _g,
+ listen: vg,
+ mount_component: Pf,
+ safe_not_equal: bg,
+ set_data: wg,
+ set_style: yg,
+ space: kg,
+ text: Dg,
+ transition_in: Hf,
+ transition_out: Uf
+} = window.__gradio__svelte__internal, { createEventDispatcher: Ag } = window.__gradio__svelte__internal;
+function Eg(n) {
let e, t, r, a, i, l, s, o, u;
var c = (
/*icon*/
@@ -20155,9 +20155,9 @@ function Ag(n) {
function d(h, p) {
return {};
}
- return c && (a = Nf(c, d())), {
+ return c && (a = Rf(c, d())), {
c() {
- e = Ao("button"), t = Ao("div"), r = Ao("span"), a && Rf(a.$$.fragment), i = yg(), l = kg(
+ e = Ao("button"), t = Ao("div"), r = Ao("span"), a && Of(a.$$.fragment), i = kg(), l = Dg(
/*text*/
n[1]
), this.h();
@@ -20169,17 +20169,17 @@ function Ag(n) {
var _ = ko(t);
r = Do(_, "SPAN", { class: !0 });
var b = ko(r);
- a && fg(a.$$.fragment, b), b.forEach(tl), i = hg(_), l = dg(
+ a && hg(a.$$.fragment, b), b.forEach(tl), i = dg(_), l = mg(
_,
/*text*/
n[1]
), _.forEach(tl), p.forEach(tl), this.h();
},
h() {
- yo(r, "class", "icon-wrap svelte-1kt44zd"), yo(t, "class", "wrap svelte-1kt44zd"), yo(e, "class", "svelte-1kt44zd"), wg(e, "height", "100%");
+ yo(r, "class", "icon-wrap svelte-1kt44zd"), yo(t, "class", "wrap svelte-1kt44zd"), yo(e, "class", "svelte-1kt44zd"), yg(e, "height", "100%");
},
m(h, p) {
- gg(h, e, p), el(e, t), el(t, r), a && qf(a, r, null), el(t, i), el(t, l), s = !0, o || (u = _g(
+ _g(h, e, p), el(e, t), el(t, r), a && Pf(a, r, null), el(t, i), el(t, l), s = !0, o || (u = vg(
e,
"click",
/*click_handler*/
@@ -20191,54 +20191,54 @@ function Ag(n) {
1 && c !== (c = /*icon*/
h[0])) {
if (a) {
- mg();
+ pg();
const _ = a;
- Hf(_.$$.fragment, 1, 0, () => {
- Of(_, 1);
- }), cg();
+ Uf(_.$$.fragment, 1, 0, () => {
+ qf(_, 1);
+ }), fg();
}
- c ? (a = Nf(c, d()), Rf(a.$$.fragment), Pf(a.$$.fragment, 1), qf(a, r, null)) : a = null;
+ c ? (a = Rf(c, d()), Of(a.$$.fragment), Hf(a.$$.fragment, 1), Pf(a, r, null)) : a = null;
}
(!s || p & /*text*/
- 2) && bg(
+ 2) && wg(
l,
/*text*/
h[1]
);
},
i(h) {
- s || (a && Pf(a.$$.fragment, h), s = !0);
+ s || (a && Hf(a.$$.fragment, h), s = !0);
},
o(h) {
- a && Hf(a.$$.fragment, h), s = !1;
+ a && Uf(a.$$.fragment, h), s = !1;
},
d(h) {
- h && tl(e), a && Of(a), o = !1, u();
+ h && tl(e), a && qf(a), o = !1, u();
}
};
}
-function Eg(n, e, t) {
- let r, { icon: a = G1 } = e;
- const i = Dg(), l = () => i("click");
+function Sg(n, e, t) {
+ let r, { icon: a = j1 } = e;
+ const i = Ag(), l = () => i("click");
return n.$$set = (s) => {
"icon" in s && t(0, a = s.icon);
}, n.$$.update = () => {
n.$$.dirty & /*icon*/
- 1 && t(1, r = a === G1 ? "Click to Access Webcam" : "Click to Access Microphone");
+ 1 && t(1, r = a === j1 ? "Click to Access Webcam" : "Click to Access Microphone");
}, [a, r, i, l];
}
-class pm extends ug {
+class gm extends cg {
constructor(e) {
- super(), pg(this, e, Eg, Ag, vg, { icon: 0 });
+ super(), gg(this, e, Sg, Eg, bg, { icon: 0 });
}
}
-function gm() {
+function _m() {
return navigator.mediaDevices.enumerateDevices();
}
-function Sg(n, e) {
+function xg(n, e) {
e.srcObject = n, e.muted = !0, e.play();
}
-async function Uf(n, e, t, r) {
+async function Vf(n, e, t, r) {
const a = r || {
width: { ideal: 500 },
height: { ideal: 500 }
@@ -20246,14 +20246,14 @@ async function Uf(n, e, t, r) {
video: t ? { deviceId: { exact: t }, ...a } : a,
audio: n
};
- return navigator.mediaDevices.getUserMedia(i).then((l) => (Sg(l, e), l));
+ return navigator.mediaDevices.getUserMedia(i).then((l) => (xg(l, e), l));
}
-function _m(n, e = "videoinput") {
+function vm(n, e = "videoinput") {
return n.filter(
(r) => r.kind === e
);
}
-function xg(n, e) {
+function Tg(n, e) {
return n.addEventListener(
"icegatheringstatechange",
() => {
@@ -20280,7 +20280,7 @@ async function ss(n, e, t, r, a, i = "video", l = () => {
}, s = {}, o = () => {
}, u = () => {
}) {
- e = xg(e, t);
+ e = Tg(e, t);
const c = e.createDataChannel("text");
return c.onopen = () => {
console.debug("Data channel is open"), c.send("handshake");
@@ -20297,9 +20297,9 @@ async function ss(n, e, t, r, a, i = "video", l = () => {
console.debug("Track stream callback", d);
const h = e.addTrack(d, n), _ = { ...h.getParameters(), ...s };
await h.setParameters(_), console.debug("sender params", h.getParameters());
- }) : (console.debug("Creating transceiver!"), e.addTransceiver(i, { direction: "recvonly" })), await Cg(e, r, a, u), e;
+ }) : (console.debug("Creating transceiver!"), e.addTransceiver(i, { direction: "recvonly" })), await Fg(e, r, a, u), e;
}
-function Tg(n, e, t = () => {
+function Cg(n, e, t = () => {
}) {
return new Promise((r, a) => {
n(e).then((i) => {
@@ -20307,7 +20307,7 @@ function Tg(n, e, t = () => {
});
});
}
-async function Cg(n, e, t, r = () => {
+async function Fg(n, e, t, r = () => {
}) {
return n.onicecandidate = ({ candidate: a }) => {
a && (console.debug("Sending ICE candidate", a), e({
@@ -20317,7 +20317,7 @@ async function Cg(n, e, t, r = () => {
}).catch((i) => console.error("Error sending ICE candidate:", i)));
}, n.createOffer().then((a) => n.setLocalDescription(a)).then(() => {
var a = n.localDescription;
- return Tg(
+ return Cg(
e,
{
sdp: a.sdp,
@@ -20338,52 +20338,52 @@ function r0(n) {
}, 500);
}
const {
- SvelteComponent: Fg,
+ SvelteComponent: Mg,
append_hydration: Eo,
attr: sn,
- check_outros: vm,
+ check_outros: bm,
children: aa,
- claim_component: Mg,
+ claim_component: zg,
claim_element: xn,
- claim_space: zg,
- construct_svelte_component: Vf,
- create_component: Gf,
- destroy_component: jf,
- destroy_each: Bg,
- detach: S0,
+ claim_space: Bg,
+ construct_svelte_component: Gf,
+ create_component: jf,
+ destroy_component: Wf,
+ destroy_each: Ig,
+ detach: E0,
element: Tn,
- empty: Wf,
- ensure_array_like: Xf,
- group_outros: bm,
- init: Ig,
+ empty: Xf,
+ ensure_array_like: Yf,
+ group_outros: wm,
+ init: Lg,
insert_hydration: ca,
- mount_component: Yf,
+ mount_component: Zf,
noop: Va,
- safe_not_equal: Lg,
- set_style: w0,
- space: Ng,
- src_url_equal: Zf,
+ safe_not_equal: Ng,
+ set_style: b0,
+ space: Rg,
+ src_url_equal: Kf,
transition_in: ql,
transition_out: Pl
-} = window.__gradio__svelte__internal, { onDestroy: Rg } = window.__gradio__svelte__internal;
-function Kf(n, e, t) {
+} = window.__gradio__svelte__internal, { onDestroy: Og } = window.__gradio__svelte__internal;
+function Jf(n, e, t) {
const r = n.slice();
return r[16] = e[t], r[18] = t, r;
}
-function Jf(n) {
- let e, t = Xf(Array(3)), r = [];
+function Qf(n) {
+ let e, t = Yf(Array(3)), r = [];
for (let a = 0; a < t.length; a += 1)
- r[a] = Qf(Kf(n, t, a));
+ r[a] = $f(Jf(n, t, a));
return {
c() {
for (let a = 0; a < r.length; a += 1)
r[a].c();
- e = Wf();
+ e = Xf();
},
l(a) {
for (let i = 0; i < r.length; i += 1)
r[i].l(a);
- e = Wf();
+ e = Xf();
},
m(a, i) {
for (let l = 0; l < r.length; l += 1)
@@ -20393,11 +20393,11 @@ function Jf(n) {
p(a, i) {
if (i & /*pulse_color, maxPulseScale, pulseIntensity*/
82) {
- t = Xf(Array(3));
+ t = Yf(Array(3));
let l;
for (l = 0; l < t.length; l += 1) {
- const s = Kf(a, t, l);
- r[l] ? r[l].p(s, i) : (r[l] = Qf(s), r[l].c(), r[l].m(e.parentNode, e));
+ const s = Jf(a, t, l);
+ r[l] ? r[l].p(s, i) : (r[l] = $f(s), r[l].c(), r[l].m(e.parentNode, e));
}
for (; l < r.length; l += 1)
r[l].d(1);
@@ -20405,32 +20405,32 @@ function Jf(n) {
}
},
d(a) {
- a && S0(e), Bg(r, a);
+ a && E0(e), Ig(r, a);
}
};
}
-function Qf(n) {
+function $f(n) {
let e;
return {
c() {
e = Tn("div"), this.h();
},
l(t) {
- e = xn(t, "DIV", { class: !0 }), aa(e).forEach(S0), this.h();
+ e = xn(t, "DIV", { class: !0 }), aa(e).forEach(E0), this.h();
},
h() {
- sn(e, "class", "pulse-ring svelte-126lrgf"), w0(
+ sn(e, "class", "pulse-ring svelte-126lrgf"), b0(
e,
"background",
/*pulse_color*/
n[1]
- ), w0(e, "animation-delay", `${/*i*/
- n[18] * 0.4}s`), w0(
+ ), b0(e, "animation-delay", `${/*i*/
+ n[18] * 0.4}s`), b0(
e,
"--max-scale",
/*maxPulseScale*/
n[6]
- ), w0(e, "opacity", 0.5 * /*pulseIntensity*/
+ ), b0(e, "opacity", 0.5 * /*pulseIntensity*/
n[4]);
},
m(t, r) {
@@ -20438,27 +20438,27 @@ function Qf(n) {
},
p(t, r) {
r & /*pulse_color*/
- 2 && w0(
+ 2 && b0(
e,
"background",
/*pulse_color*/
t[1]
), r & /*maxPulseScale*/
- 64 && w0(
+ 64 && b0(
e,
"--max-scale",
/*maxPulseScale*/
t[6]
), r & /*pulseIntensity*/
- 16 && w0(e, "opacity", 0.5 * /*pulseIntensity*/
+ 16 && b0(e, "opacity", 0.5 * /*pulseIntensity*/
t[4]);
},
d(t) {
- t && S0(e);
+ t && E0(e);
}
};
}
-function Og(n) {
+function qg(n) {
let e, t, r;
var a = (
/*icon*/
@@ -20467,30 +20467,30 @@ function Og(n) {
function i(l, s) {
return {};
}
- return a && (t = Vf(a, i())), {
+ return a && (t = Gf(a, i())), {
c() {
- e = Tn("div"), t && Gf(t.$$.fragment);
+ e = Tn("div"), t && jf(t.$$.fragment);
},
l(l) {
e = xn(l, "DIV", {});
var s = aa(e);
- t && Mg(t.$$.fragment, s), s.forEach(S0);
+ t && zg(t.$$.fragment, s), s.forEach(E0);
},
m(l, s) {
- ca(l, e, s), t && Yf(t, e, null), r = !0;
+ ca(l, e, s), t && Zf(t, e, null), r = !0;
},
p(l, s) {
if (s & /*icon*/
1 && a !== (a = /*icon*/
l[0])) {
if (t) {
- bm();
+ wm();
const o = t;
Pl(o.$$.fragment, 1, 0, () => {
- jf(o, 1);
- }), vm();
+ Wf(o, 1);
+ }), bm();
}
- a ? (t = Vf(a, i()), Gf(t.$$.fragment), ql(t.$$.fragment, 1), Yf(t, e, null)) : t = null;
+ a ? (t = Gf(a, i()), jf(t.$$.fragment), ql(t.$$.fragment, 1), Zf(t, e, null)) : t = null;
}
},
i(l) {
@@ -20500,18 +20500,18 @@ function Og(n) {
t && Pl(t.$$.fragment, l), r = !1;
},
d(l) {
- l && S0(e), t && jf(t);
+ l && E0(e), t && Wf(t);
}
};
}
-function qg(n) {
+function Pg(n) {
let e;
return {
c() {
e = Tn("div");
},
l(t) {
- e = xn(t, "DIV", {}), aa(e).forEach(S0);
+ e = xn(t, "DIV", {}), aa(e).forEach(E0);
},
m(t, r) {
ca(t, e, r);
@@ -20520,11 +20520,11 @@ function qg(n) {
i: Va,
o: Va,
d(t) {
- t && S0(e);
+ t && E0(e);
}
};
}
-function Pg(n) {
+function Hg(n) {
let e, t;
return {
c() {
@@ -20534,8 +20534,8 @@ function Pg(n) {
e = xn(r, "IMG", { src: !0, alt: !0, class: !0 }), this.h();
},
h() {
- Zf(e.src, t = /*icon*/
- n[0]) || sn(e, "src", t), sn(e, "alt", "Audio visualization icon"), sn(e, "class", "icon-image svelte-126lrgf"), w0(e, "border-radius", `${/*icon_radius*/
+ Kf(e.src, t = /*icon*/
+ n[0]) || sn(e, "src", t), sn(e, "alt", "Audio visualization icon"), sn(e, "class", "icon-image svelte-126lrgf"), b0(e, "border-radius", `${/*icon_radius*/
n[2]}%`);
},
m(r, a) {
@@ -20543,25 +20543,25 @@ function Pg(n) {
},
p(r, a) {
a & /*icon*/
- 1 && !Zf(e.src, t = /*icon*/
+ 1 && !Kf(e.src, t = /*icon*/
r[0]) && sn(e, "src", t), a & /*icon_radius*/
- 4 && w0(e, "border-radius", `${/*icon_radius*/
+ 4 && b0(e, "border-radius", `${/*icon_radius*/
r[2]}%`);
},
i: Va,
o: Va,
d(r) {
- r && S0(e);
+ r && E0(e);
}
};
}
-function Hg(n) {
+function Ug(n) {
let e, t, r, a, i, l, s, o = (
/*pulseIntensity*/
n[4] > /*pulse_intensity_threshold*/
- n[3] && Jf(n)
+ n[3] && Qf(n)
);
- const u = [Pg, qg, Og], c = [];
+ const u = [Hg, Pg, qg], c = [];
function d(h, p) {
return typeof /*icon*/
h[0] == "string" ? 0 : (
@@ -20571,20 +20571,20 @@ function Hg(n) {
}
return i = d(n), l = c[i] = u[i](n), {
c() {
- e = Tn("div"), t = Tn("div"), o && o.c(), r = Ng(), a = Tn("div"), l.c(), this.h();
+ e = Tn("div"), t = Tn("div"), o && o.c(), r = Rg(), a = Tn("div"), l.c(), this.h();
},
l(h) {
e = xn(h, "DIV", { class: !0 });
var p = aa(e);
t = xn(p, "DIV", { class: !0 });
var _ = aa(t);
- o && o.l(_), r = zg(_), a = xn(_, "DIV", { class: !0 });
+ o && o.l(_), r = Bg(_), a = xn(_, "DIV", { class: !0 });
var b = aa(a);
- l.l(b), b.forEach(S0), _.forEach(S0), p.forEach(S0), this.h();
+ l.l(b), b.forEach(E0), _.forEach(E0), p.forEach(E0), this.h();
},
h() {
- sn(a, "class", "gradio-webrtc-pulsing-icon svelte-126lrgf"), w0(a, "transform", `scale(${/*pulseScale*/
- n[5]})`), w0(a, "background", "none"), sn(t, "class", "gradio-webrtc-pulsing-icon-container svelte-126lrgf"), sn(e, "class", "gradio-webrtc-icon-wrapper svelte-126lrgf");
+ sn(a, "class", "gradio-webrtc-pulsing-icon svelte-126lrgf"), b0(a, "transform", `scale(${/*pulseScale*/
+ n[5]})`), b0(a, "background", "none"), sn(t, "class", "gradio-webrtc-pulsing-icon-container svelte-126lrgf"), sn(e, "class", "gradio-webrtc-icon-wrapper svelte-126lrgf");
},
m(h, p) {
ca(h, e, p), Eo(e, t), o && o.m(t, null), Eo(t, r), Eo(t, a), c[i].m(a, null), s = !0;
@@ -20592,12 +20592,12 @@ function Hg(n) {
p(h, [p]) {
/*pulseIntensity*/
h[4] > /*pulse_intensity_threshold*/
- h[3] ? o ? o.p(h, p) : (o = Jf(h), o.c(), o.m(t, r)) : o && (o.d(1), o = null);
+ h[3] ? o ? o.p(h, p) : (o = Qf(h), o.c(), o.m(t, r)) : o && (o.d(1), o = null);
let _ = i;
- i = d(h), i === _ ? c[i].p(h, p) : (bm(), Pl(c[_], 1, 1, () => {
+ i = d(h), i === _ ? c[i].p(h, p) : (wm(), Pl(c[_], 1, 1, () => {
c[_] = null;
- }), vm(), l = c[i], l ? l.p(h, p) : (l = c[i] = u[i](h), l.c()), ql(l, 1), l.m(a, null)), p & /*pulseScale*/
- 32 && w0(a, "transform", `scale(${/*pulseScale*/
+ }), bm(), l = c[i], l ? l.p(h, p) : (l = c[i] = u[i](h), l.c()), ql(l, 1), l.m(a, null)), p & /*pulseScale*/
+ 32 && b0(a, "transform", `scale(${/*pulseScale*/
h[5]})`);
},
i(h) {
@@ -20607,13 +20607,13 @@ function Hg(n) {
Pl(l), s = !1;
},
d(h) {
- h && S0(e), o && o.d(), c[i].d();
+ h && E0(e), o && o.d(), c[i].d();
}
};
}
-function Ug(n, e, t) {
+function Vg(n, e, t) {
let r, { stream_state: a = "closed" } = e, { audio_source_callback: i } = e, { icon: l = void 0 } = e, { icon_button_color: s = "var(--color-accent)" } = e, { pulse_color: o = "var(--color-accent)" } = e, { icon_radius: u = 50 } = e, { pulse_intensity_threshold: c = 0 } = e, d, h, p, _, b = 1, D = 0;
- Rg(() => {
+ Og(() => {
_ && cancelAnimationFrame(_), d && d.close();
});
function y() {
@@ -20643,9 +20643,9 @@ function Ug(n, e, t) {
s
];
}
-class li extends Fg {
+class li extends Mg {
constructor(e) {
- super(), Ig(this, e, Ug, Hg, Lg, {
+ super(), Lg(this, e, Vg, Ug, Ng, {
stream_state: 7,
audio_source_callback: 8,
icon: 0,
@@ -20657,49 +20657,49 @@ class li extends Fg {
}
}
const {
- SvelteComponent: Vg,
- action_destroyer: Gg,
- add_render_callback: jg,
- append_hydration: ct,
+ SvelteComponent: Gg,
+ action_destroyer: jg,
+ add_render_callback: Wg,
+ append_hydration: ut,
attr: Je,
- binding_callbacks: Wg,
+ binding_callbacks: Xg,
check_outros: Hl,
- children: Bt,
+ children: zt,
claim_component: mn,
- claim_element: It,
- claim_space: fr,
+ claim_element: Bt,
+ claim_space: ur,
claim_text: si,
create_component: pn,
- create_in_transition: Xg,
+ create_in_transition: Yg,
destroy_component: gn,
- destroy_each: Yg,
+ destroy_each: Zg,
detach: xe,
- element: Lt,
+ element: It,
empty: Ul,
- ensure_array_like: $f,
+ ensure_array_like: eh,
group_outros: Vl,
- init: Zg,
+ init: Kg,
insert_hydration: n0,
listen: Gl,
mount_component: _n,
- noop: wm,
- run_all: Kg,
- safe_not_equal: Jg,
+ noop: ym,
+ run_all: Jg,
+ safe_not_equal: Qg,
set_data: oi,
- set_input_value: gu,
- set_style: Qg,
- space: hr,
- stop_propagation: $g,
+ set_input_value: _u,
+ set_style: $g,
+ space: cr,
+ stop_propagation: e9,
text: ui,
toggle_class: rl,
- transition_in: _t,
- transition_out: zt
-} = window.__gradio__svelte__internal, { createEventDispatcher: e9, onMount: t9 } = window.__gradio__svelte__internal;
-function eh(n, e, t) {
+ transition_in: pt,
+ transition_out: Mt
+} = window.__gradio__svelte__internal, { createEventDispatcher: t9, onMount: r9 } = window.__gradio__svelte__internal;
+function th(n, e, t) {
const r = n.slice();
return r[42] = e[t], r;
}
-function th(n) {
+function rh(n) {
let e, t, r;
return t = new li({
props: {
@@ -20730,11 +20730,11 @@ function th(n) {
}
}), {
c() {
- e = Lt("div"), pn(t.$$.fragment), this.h();
+ e = It("div"), pn(t.$$.fragment), this.h();
},
l(a) {
- e = It(a, "DIV", { class: !0 });
- var i = Bt(e);
+ e = Bt(a, "DIV", { class: !0 });
+ var i = zt(e);
mn(t.$$.fragment, i), i.forEach(xe), this.h();
},
h() {
@@ -20758,19 +20758,19 @@ function th(n) {
a[2]), t.$set(l);
},
i(a) {
- r || (_t(t.$$.fragment, a), r = !0);
+ r || (pt(t.$$.fragment, a), r = !0);
},
o(a) {
- zt(t.$$.fragment, a), r = !1;
+ Mt(t.$$.fragment, a), r = !1;
},
d(a) {
a && xe(e), gn(t);
}
};
}
-function r9(n) {
+function n9(n) {
let e, t, r, a, i, l, s, o, u, c;
- const d = [l9, i9, a9], h = [];
+ const d = [s9, l9, i9], h = [];
function p(D, y) {
return (
/*stream_state*/
@@ -20781,27 +20781,27 @@ function r9(n) {
);
}
r = p(n), a = h[r] = d[r](n);
- let _ = s9(n), b = (
+ let _ = o9(n), b = (
/*options_open*/
n[14] && /*selected_device*/
- n[10] && rh(n)
+ n[10] && nh(n)
);
return {
c() {
- e = Lt("div"), t = Lt("button"), a.c(), i = hr(), _ && _.c(), l = hr(), b && b.c(), s = Ul(), this.h();
+ e = It("div"), t = It("button"), a.c(), i = cr(), _ && _.c(), l = cr(), b && b.c(), s = Ul(), this.h();
},
l(D) {
- e = It(D, "DIV", { class: !0 });
- var y = Bt(e);
- t = It(y, "BUTTON", { "aria-label": !0, class: !0 });
- var k = Bt(t);
- a.l(k), k.forEach(xe), i = fr(y), _ && _.l(y), y.forEach(xe), l = fr(D), b && b.l(D), s = Ul(), this.h();
+ e = Bt(D, "DIV", { class: !0 });
+ var y = zt(e);
+ t = Bt(y, "BUTTON", { "aria-label": !0, class: !0 });
+ var k = zt(t);
+ a.l(k), k.forEach(xe), i = ur(y), _ && _.l(y), y.forEach(xe), l = ur(D), b && b.l(D), s = Ul(), this.h();
},
h() {
Je(t, "aria-label", "start stream"), Je(t, "class", "svelte-1y5s2o2"), Je(e, "class", "button-wrap svelte-1y5s2o2");
},
m(D, y) {
- n0(D, e, y), ct(e, t), h[r].m(t, null), ct(e, i), _ && _.m(e, null), n0(D, l, y), b && b.m(D, y), n0(D, s, y), o = !0, u || (c = Gl(
+ n0(D, e, y), ut(e, t), h[r].m(t, null), ut(e, i), _ && _.m(e, null), n0(D, l, y), b && b.m(D, y), n0(D, s, y), o = !0, u || (c = Gl(
t,
"click",
/*start_webrtc*/
@@ -20810,62 +20810,62 @@ function r9(n) {
},
p(D, y) {
let k = r;
- r = p(D), r === k ? h[r].p(D, y) : (Vl(), zt(h[k], 1, 1, () => {
+ r = p(D), r === k ? h[r].p(D, y) : (Vl(), Mt(h[k], 1, 1, () => {
h[k] = null;
- }), Hl(), a = h[r], a ? a.p(D, y) : (a = h[r] = d[r](D), a.c()), _t(a, 1), a.m(t, null)), _.p(D, y), /*options_open*/
+ }), Hl(), a = h[r], a ? a.p(D, y) : (a = h[r] = d[r](D), a.c()), pt(a, 1), a.m(t, null)), _.p(D, y), /*options_open*/
D[14] && /*selected_device*/
D[10] ? b ? (b.p(D, y), y[0] & /*options_open, selected_device*/
- 17408 && _t(b, 1)) : (b = rh(D), b.c(), _t(b, 1), b.m(s.parentNode, s)) : b && (Vl(), zt(b, 1, 1, () => {
+ 17408 && pt(b, 1)) : (b = nh(D), b.c(), pt(b, 1), b.m(s.parentNode, s)) : b && (Vl(), Mt(b, 1, 1, () => {
b = null;
}), Hl());
},
i(D) {
- o || (_t(a), _t(_), _t(b), o = !0);
+ o || (pt(a), pt(_), pt(b), o = !0);
},
o(D) {
- zt(a), zt(_), zt(b), o = !1;
+ Mt(a), Mt(_), Mt(b), o = !1;
},
d(D) {
D && (xe(e), xe(l), xe(s)), h[r].d(), _ && _.d(), b && b.d(D), u = !1, c();
}
};
}
-function n9(n) {
+function a9(n) {
let e, t, r, a;
- return t = new pm({}), t.$on(
+ return t = new gm({}), t.$on(
"click",
/*click_handler*/
n[32]
), {
c() {
- e = Lt("div"), pn(t.$$.fragment), this.h();
+ e = It("div"), pn(t.$$.fragment), this.h();
},
l(i) {
- e = It(i, "DIV", { title: !0, style: !0 });
- var l = Bt(e);
+ e = Bt(i, "DIV", { title: !0, style: !0 });
+ var l = zt(e);
mn(t.$$.fragment, l), l.forEach(xe), this.h();
},
h() {
- Je(e, "title", "grant webcam access"), Qg(e, "height", "100%");
+ Je(e, "title", "grant webcam access"), $g(e, "height", "100%");
},
m(i, l) {
n0(i, e, l), _n(t, e, null), a = !0;
},
- p: wm,
+ p: ym,
i(i) {
- a || (_t(t.$$.fragment, i), i && (r || jg(() => {
- r = Xg(e, $u, { delay: 100, duration: 200 }), r.start();
+ a || (pt(t.$$.fragment, i), i && (r || Wg(() => {
+ r = Yg(e, e1, { delay: 100, duration: 200 }), r.start();
})), a = !0);
},
o(i) {
- zt(t.$$.fragment, i), a = !1;
+ Mt(t.$$.fragment, i), a = !1;
},
d(i) {
i && xe(e), gn(t);
}
};
}
-function a9(n) {
+function i9(n) {
let e, t, r, a, i = (
/*button_labels*/
(n[4].start || /*i18n*/
@@ -20873,20 +20873,20 @@ function a9(n) {
), l, s;
return r = new Xl({}), {
c() {
- e = Lt("div"), t = Lt("div"), pn(r.$$.fragment), a = hr(), l = ui(i), this.h();
+ e = It("div"), t = It("div"), pn(r.$$.fragment), a = cr(), l = ui(i), this.h();
},
l(o) {
- e = It(o, "DIV", { class: !0 });
- var u = Bt(e);
- t = It(u, "DIV", { class: !0, title: !0 });
- var c = Bt(t);
- mn(r.$$.fragment, c), c.forEach(xe), a = fr(u), l = si(u, i), u.forEach(xe), this.h();
+ e = Bt(o, "DIV", { class: !0 });
+ var u = zt(e);
+ t = Bt(u, "DIV", { class: !0, title: !0 });
+ var c = zt(t);
+ mn(r.$$.fragment, c), c.forEach(xe), a = ur(u), l = si(u, i), u.forEach(xe), this.h();
},
h() {
Je(t, "class", "icon color-primary svelte-1y5s2o2"), Je(t, "title", "start recording"), Je(e, "class", "icon-with-text svelte-1y5s2o2");
},
m(o, u) {
- n0(o, e, u), ct(e, t), _n(r, t, null), ct(e, a), ct(e, l), s = !0;
+ n0(o, e, u), ut(e, t), _n(r, t, null), ut(e, a), ut(e, l), s = !0;
},
p(o, u) {
(!s || u[0] & /*button_labels, i18n*/
@@ -20895,50 +20895,10 @@ function a9(n) {
o[6]("audio.record")) + "") && oi(l, i);
},
i(o) {
- s || (_t(r.$$.fragment, o), s = !0);
+ s || (pt(r.$$.fragment, o), s = !0);
},
o(o) {
- zt(r.$$.fragment, o), s = !1;
- },
- d(o) {
- o && xe(e), gn(r);
- }
- };
-}
-function i9(n) {
- let e, t, r, a, i = (
- /*button_labels*/
- (n[4].stop || /*i18n*/
- n[6]("audio.stop")) + ""
- ), l, s;
- return r = new Dd({}), {
- c() {
- e = Lt("div"), t = Lt("div"), pn(r.$$.fragment), a = hr(), l = ui(i), this.h();
- },
- l(o) {
- e = It(o, "DIV", { class: !0 });
- var u = Bt(e);
- t = It(u, "DIV", { class: !0, title: !0 });
- var c = Bt(t);
- mn(r.$$.fragment, c), c.forEach(xe), a = fr(u), l = si(u, i), u.forEach(xe), this.h();
- },
- h() {
- Je(t, "class", "icon color-primary svelte-1y5s2o2"), Je(t, "title", "stop recording"), Je(e, "class", "icon-with-text svelte-1y5s2o2");
- },
- m(o, u) {
- n0(o, e, u), ct(e, t), _n(r, t, null), ct(e, a), ct(e, l), s = !0;
- },
- p(o, u) {
- (!s || u[0] & /*button_labels, i18n*/
- 80) && i !== (i = /*button_labels*/
- (o[4].stop || /*i18n*/
- o[6]("audio.stop")) + "") && oi(l, i);
- },
- i(o) {
- s || (_t(r.$$.fragment, o), s = !0);
- },
- o(o) {
- zt(r.$$.fragment, o), s = !1;
+ Mt(r.$$.fragment, o), s = !1;
},
d(o) {
o && xe(e), gn(r);
@@ -20946,27 +20906,67 @@ function i9(n) {
};
}
function l9(n) {
+ let e, t, r, a, i = (
+ /*button_labels*/
+ (n[4].stop || /*i18n*/
+ n[6]("audio.stop")) + ""
+ ), l, s;
+ return r = new Ad({}), {
+ c() {
+ e = It("div"), t = It("div"), pn(r.$$.fragment), a = cr(), l = ui(i), this.h();
+ },
+ l(o) {
+ e = Bt(o, "DIV", { class: !0 });
+ var u = zt(e);
+ t = Bt(u, "DIV", { class: !0, title: !0 });
+ var c = zt(t);
+ mn(r.$$.fragment, c), c.forEach(xe), a = ur(u), l = si(u, i), u.forEach(xe), this.h();
+ },
+ h() {
+ Je(t, "class", "icon color-primary svelte-1y5s2o2"), Je(t, "title", "stop recording"), Je(e, "class", "icon-with-text svelte-1y5s2o2");
+ },
+ m(o, u) {
+ n0(o, e, u), ut(e, t), _n(r, t, null), ut(e, a), ut(e, l), s = !0;
+ },
+ p(o, u) {
+ (!s || u[0] & /*button_labels, i18n*/
+ 80) && i !== (i = /*button_labels*/
+ (o[4].stop || /*i18n*/
+ o[6]("audio.stop")) + "") && oi(l, i);
+ },
+ i(o) {
+ s || (pt(r.$$.fragment, o), s = !0);
+ },
+ o(o) {
+ Mt(r.$$.fragment, o), s = !1;
+ },
+ d(o) {
+ o && xe(e), gn(r);
+ }
+ };
+}
+function s9(n) {
let e, t, r, a, i = (
/*button_labels*/
(n[4].waiting || /*i18n*/
n[6]("audio.waiting")) + ""
), l, s;
- return r = new Eu({}), {
+ return r = new Su({}), {
c() {
- e = Lt("div"), t = Lt("div"), pn(r.$$.fragment), a = hr(), l = ui(i), this.h();
+ e = It("div"), t = It("div"), pn(r.$$.fragment), a = cr(), l = ui(i), this.h();
},
l(o) {
- e = It(o, "DIV", { class: !0 });
- var u = Bt(e);
- t = It(u, "DIV", { class: !0, title: !0 });
- var c = Bt(t);
- mn(r.$$.fragment, c), c.forEach(xe), a = fr(u), l = si(u, i), u.forEach(xe), this.h();
+ e = Bt(o, "DIV", { class: !0 });
+ var u = zt(e);
+ t = Bt(u, "DIV", { class: !0, title: !0 });
+ var c = zt(t);
+ mn(r.$$.fragment, c), c.forEach(xe), a = ur(u), l = si(u, i), u.forEach(xe), this.h();
},
h() {
Je(t, "class", "icon color-primary svelte-1y5s2o2"), Je(t, "title", "spinner"), Je(e, "class", "icon-with-text svelte-1y5s2o2");
},
m(o, u) {
- n0(o, e, u), ct(e, t), _n(r, t, null), ct(e, a), ct(e, l), s = !0;
+ n0(o, e, u), ut(e, t), _n(r, t, null), ut(e, a), ut(e, l), s = !0;
},
p(o, u) {
(!s || u[0] & /*button_labels, i18n*/
@@ -20975,25 +20975,25 @@ function l9(n) {
o[6]("audio.waiting")) + "") && oi(l, i);
},
i(o) {
- s || (_t(r.$$.fragment, o), s = !0);
+ s || (pt(r.$$.fragment, o), s = !0);
},
o(o) {
- zt(r.$$.fragment, o), s = !1;
+ Mt(r.$$.fragment, o), s = !1;
},
d(o) {
o && xe(e), gn(r);
}
};
}
-function s9(n) {
+function o9(n) {
let e, t, r, a, i;
return t = new Yl({}), {
c() {
- e = Lt("button"), pn(t.$$.fragment), this.h();
+ e = It("button"), pn(t.$$.fragment), this.h();
},
l(l) {
- e = It(l, "BUTTON", { class: !0, "aria-label": !0 });
- var s = Bt(e);
+ e = Bt(l, "BUTTON", { class: !0, "aria-label": !0 });
+ var s = zt(e);
mn(t.$$.fragment, s), s.forEach(xe), this.h();
},
h() {
@@ -21007,49 +21007,49 @@ function s9(n) {
n[33]
), a = !0);
},
- p: wm,
+ p: ym,
i(l) {
- r || (_t(t.$$.fragment, l), r = !0);
+ r || (pt(t.$$.fragment, l), r = !0);
},
o(l) {
- zt(t.$$.fragment, l), r = !1;
+ Mt(t.$$.fragment, l), r = !1;
},
d(l) {
l && xe(e), gn(t), a = !1, i();
}
};
}
-function rh(n) {
+function nh(n) {
let e, t, r, a, i, l, s;
r = new Yl({});
function o(d, h) {
return (
/*available_video_devices*/
- d[9].length === 0 ? u9 : o9
+ d[9].length === 0 ? c9 : u9
);
}
let u = o(n), c = u(n);
return {
c() {
- e = Lt("select"), t = Lt("button"), pn(r.$$.fragment), a = hr(), c.c(), this.h();
+ e = It("select"), t = It("button"), pn(r.$$.fragment), a = cr(), c.c(), this.h();
},
l(d) {
- e = It(d, "SELECT", { class: !0, "aria-label": !0 });
- var h = Bt(e);
- t = It(h, "BUTTON", { class: !0 });
- var p = Bt(t);
- mn(r.$$.fragment, p), a = fr(p), p.forEach(xe), c.l(h), h.forEach(xe), this.h();
+ e = Bt(d, "SELECT", { class: !0, "aria-label": !0 });
+ var h = zt(e);
+ t = Bt(h, "BUTTON", { class: !0 });
+ var p = zt(t);
+ mn(r.$$.fragment, p), a = ur(p), p.forEach(xe), c.l(h), h.forEach(xe), this.h();
},
h() {
Je(t, "class", "inset-icon svelte-1y5s2o2"), Je(e, "class", "select-wrap svelte-1y5s2o2"), Je(e, "aria-label", "select source");
},
m(d, h) {
- n0(d, e, h), ct(e, t), _n(r, t, null), ct(t, a), c.m(e, null), i = !0, l || (s = [
- Gl(t, "click", $g(
+ n0(d, e, h), ut(e, t), _n(r, t, null), ut(t, a), c.m(e, null), i = !0, l || (s = [
+ Gl(t, "click", e9(
/*click_handler_2*/
n[34]
)),
- Gg(e1.call(
+ jg(t1.call(
null,
e,
/*handle_click_outside*/
@@ -21067,23 +21067,23 @@ function rh(n) {
u === (u = o(d)) && c ? c.p(d, h) : (c.d(1), c = u(d), c && (c.c(), c.m(e, null)));
},
i(d) {
- i || (_t(r.$$.fragment, d), i = !0);
+ i || (pt(r.$$.fragment, d), i = !0);
},
o(d) {
- zt(r.$$.fragment, d), i = !1;
+ Mt(r.$$.fragment, d), i = !1;
},
d(d) {
- d && xe(e), gn(r), c.d(), l = !1, Kg(s);
+ d && xe(e), gn(r), c.d(), l = !1, Jg(s);
}
};
}
-function o9(n) {
- let e, t = $f(
+function u9(n) {
+ let e, t = eh(
/*available_video_devices*/
n[9]
), r = [];
for (let a = 0; a < t.length; a += 1)
- r[a] = nh(eh(n, t, a));
+ r[a] = ah(th(n, t, a));
return {
c() {
for (let a = 0; a < r.length; a += 1)
@@ -21103,14 +21103,14 @@ function o9(n) {
p(a, i) {
if (i[0] & /*available_video_devices, selected_device*/
1536) {
- t = $f(
+ t = eh(
/*available_video_devices*/
a[9]
);
let l;
for (l = 0; l < t.length; l += 1) {
- const s = eh(a, t, l);
- r[l] ? r[l].p(s, i) : (r[l] = nh(s), r[l].c(), r[l].m(e.parentNode, e));
+ const s = th(a, t, l);
+ r[l] ? r[l].p(s, i) : (r[l] = ah(s), r[l].c(), r[l].m(e.parentNode, e));
}
for (; l < r.length; l += 1)
r[l].d(1);
@@ -21118,29 +21118,29 @@ function o9(n) {
}
},
d(a) {
- a && xe(e), Yg(r, a);
+ a && xe(e), Zg(r, a);
}
};
}
-function u9(n) {
+function c9(n) {
let e, t = (
/*i18n*/
n[6]("common.no_devices") + ""
), r;
return {
c() {
- e = Lt("option"), r = ui(t), this.h();
+ e = It("option"), r = ui(t), this.h();
},
l(a) {
- e = It(a, "OPTION", { class: !0 });
- var i = Bt(e);
+ e = Bt(a, "OPTION", { class: !0 });
+ var i = zt(e);
r = si(i, t), i.forEach(xe), this.h();
},
h() {
- e.__value = "", gu(e, e.__value), Je(e, "class", "svelte-1y5s2o2");
+ e.__value = "", _u(e, e.__value), Je(e, "class", "svelte-1y5s2o2");
},
m(a, i) {
- n0(a, e, i), ct(e, r);
+ n0(a, e, i), ut(e, r);
},
p(a, i) {
i[0] & /*i18n*/
@@ -21152,35 +21152,35 @@ function u9(n) {
}
};
}
-function nh(n) {
+function ah(n) {
let e, t = (
/*device*/
n[42].label + ""
), r, a, i, l;
return {
c() {
- e = Lt("option"), r = ui(t), a = hr(), this.h();
+ e = It("option"), r = ui(t), a = cr(), this.h();
},
l(s) {
- e = It(s, "OPTION", { class: !0 });
- var o = Bt(e);
- r = si(o, t), a = fr(o), o.forEach(xe), this.h();
+ e = Bt(s, "OPTION", { class: !0 });
+ var o = zt(e);
+ r = si(o, t), a = ur(o), o.forEach(xe), this.h();
},
h() {
e.__value = i = /*device*/
- n[42].deviceId, gu(e, e.__value), e.selected = l = /*selected_device*/
+ n[42].deviceId, _u(e, e.__value), e.selected = l = /*selected_device*/
n[10].deviceId === /*device*/
n[42].deviceId, Je(e, "class", "svelte-1y5s2o2");
},
m(s, o) {
- n0(s, e, o), ct(e, r), ct(e, a);
+ n0(s, e, o), ut(e, r), ut(e, a);
},
p(s, o) {
o[0] & /*available_video_devices*/
512 && t !== (t = /*device*/
s[42].label + "") && oi(r, t), o[0] & /*available_video_devices*/
512 && i !== (i = /*device*/
- s[42].deviceId) && (e.__value = i, gu(e, e.__value)), o[0] & /*selected_device, available_video_devices*/
+ s[42].deviceId) && (e.__value = i, _u(e, e.__value)), o[0] & /*selected_device, available_video_devices*/
1536 && l !== (l = /*selected_device*/
s[10].deviceId === /*device*/
s[42].deviceId) && (e.selected = l);
@@ -21190,9 +21190,9 @@ function nh(n) {
}
};
}
-function c9(n) {
+function f9(n) {
let e, t, r, a, i, l, s, o, u;
- t = new om({
+ t = new um({
props: { time_limit: (
/*_time_limit*/
n[11]
@@ -21201,9 +21201,9 @@ function c9(n) {
let c = (
/*stream_state*/
n[12] === "open" && /*include_audio*/
- n[5] && th(n)
+ n[5] && rh(n)
);
- const d = [n9, r9], h = [];
+ const d = [a9, n9], h = [];
function p(_, b) {
return (
/*webcam_accessed*/
@@ -21212,12 +21212,12 @@ function c9(n) {
}
return s = p(n), o = h[s] = d[s](n), {
c() {
- e = Lt("div"), pn(t.$$.fragment), r = hr(), c && c.c(), a = hr(), i = Lt("video"), l = hr(), o.c(), this.h();
+ e = It("div"), pn(t.$$.fragment), r = cr(), c && c.c(), a = cr(), i = It("video"), l = cr(), o.c(), this.h();
},
l(_) {
- e = It(_, "DIV", { class: !0 });
- var b = Bt(e);
- mn(t.$$.fragment, b), r = fr(b), c && c.l(b), a = fr(b), i = It(b, "VIDEO", { class: !0 }), Bt(i).forEach(xe), l = fr(b), o.l(b), b.forEach(xe), this.h();
+ e = Bt(_, "DIV", { class: !0 });
+ var b = zt(e);
+ mn(t.$$.fragment, b), r = ur(b), c && c.l(b), a = ur(b), i = Bt(b, "VIDEO", { class: !0 }), zt(i).forEach(xe), l = ur(b), o.l(b), b.forEach(xe), this.h();
},
h() {
i.autoplay = !0, i.playsInline = !0, Je(i, "class", "svelte-1y5s2o2"), rl(i, "hide", !/*webcam_accessed*/
@@ -21231,7 +21231,7 @@ function c9(n) {
), Je(e, "class", "wrap svelte-1y5s2o2");
},
m(_, b) {
- n0(_, e, b), _n(t, e, null), ct(e, r), c && c.m(e, null), ct(e, a), ct(e, i), n[31](i), ct(e, l), h[s].m(e, null), u = !0;
+ n0(_, e, b), _n(t, e, null), ut(e, r), c && c.m(e, null), ut(e, a), ut(e, i), n[31](i), ut(e, l), h[s].m(e, null), u = !0;
},
p(_, b) {
const D = {};
@@ -21240,7 +21240,7 @@ function c9(n) {
_[11]), t.$set(D), /*stream_state*/
_[12] === "open" && /*include_audio*/
_[5] ? c ? (c.p(_, b), b[0] & /*stream_state, include_audio*/
- 4128 && _t(c, 1)) : (c = th(_), c.c(), _t(c, 1), c.m(e, a)) : c && (Vl(), zt(c, 1, 1, () => {
+ 4128 && pt(c, 1)) : (c = rh(_), c.c(), pt(c, 1), c.m(e, a)) : c && (Vl(), Mt(c, 1, 1, () => {
c = null;
}), Hl()), (!u || b[0] & /*webcam_accessed*/
8192) && rl(i, "hide", !/*webcam_accessed*/
@@ -21254,22 +21254,22 @@ function c9(n) {
_[5]
);
let y = s;
- s = p(_), s === y ? h[s].p(_, b) : (Vl(), zt(h[y], 1, 1, () => {
+ s = p(_), s === y ? h[s].p(_, b) : (Vl(), Mt(h[y], 1, 1, () => {
h[y] = null;
- }), Hl(), o = h[s], o ? o.p(_, b) : (o = h[s] = d[s](_), o.c()), _t(o, 1), o.m(e, null));
+ }), Hl(), o = h[s], o ? o.p(_, b) : (o = h[s] = d[s](_), o.c()), pt(o, 1), o.m(e, null));
},
i(_) {
- u || (_t(t.$$.fragment, _), _t(c), _t(o), u = !0);
+ u || (pt(t.$$.fragment, _), pt(c), pt(o), u = !0);
},
o(_) {
- zt(t.$$.fragment, _), zt(c), zt(o), u = !1;
+ Mt(t.$$.fragment, _), Mt(c), Mt(o), u = !1;
},
d(_) {
_ && xe(e), gn(t), c && c.d(), n[31](null), h[s].d();
}
};
}
-function e1(n, e) {
+function t1(n, e) {
const t = (r) => {
n && !n.contains(r.target) && !r.defaultPrevented && e(r);
};
@@ -21279,32 +21279,32 @@ function e1(n, e) {
}
};
}
-function f9(n, e, t) {
- var r = this && this.__awaiter || function(j, pe, ye, Te) {
+function h9(n, e, t) {
+ var r = this && this.__awaiter || function(j, ge, ke, Te) {
function ze(Le) {
- return Le instanceof ye ? Le : new ye(function(Ge) {
- Ge(Le);
+ return Le instanceof ke ? Le : new ke(function(je) {
+ je(Le);
});
}
- return new (ye || (ye = Promise))(function(Le, Ge) {
- function ht(qe) {
+ return new (ke || (ke = Promise))(function(Le, je) {
+ function ft(Pe) {
try {
- Oe(Te.next(qe));
- } catch (st) {
- Ge(st);
+ qe(Te.next(Pe));
+ } catch (lt) {
+ je(lt);
}
}
- function je(qe) {
+ function We(Pe) {
try {
- Oe(Te.throw(qe));
- } catch (st) {
- Ge(st);
+ qe(Te.throw(Pe));
+ } catch (lt) {
+ je(lt);
}
}
- function Oe(qe) {
- qe.done ? Le(qe.value) : ze(qe.value).then(ht, je);
+ function qe(Pe) {
+ Pe.done ? Le(Pe.value) : ze(Pe.value).then(ft, We);
}
- Oe((Te = Te.apply(j, pe || [])).next());
+ qe((Te = Te.apply(j, ge || [])).next());
});
};
let a, i = [], l = null, s = null, { time_limit: o = null } = e, u = "closed", { on_change_cb: c } = e, { reject_cb: d } = e, { mode: h } = e;
@@ -21314,26 +21314,26 @@ function f9(n, e, t) {
j === "closed" ? (t(11, s = null), t(12, u = "closed")) : j === "waiting" ? t(12, u = "waiting") : t(12, u = "open");
};
let { track_constraints: E = null } = e, { rtc_configuration: S } = e, { stream_every: T = 1 } = e, { server: C } = e, { include_audio: F } = e, { i18n: B } = e;
- const I = e9();
- t9(() => document.createElement("canvas"));
+ const I = t9();
+ r9(() => document.createElement("canvas"));
const L = (j) => r(void 0, void 0, void 0, function* () {
- const ye = j.target.value;
- yield Uf(F, a, ye, E).then((Te) => r(void 0, void 0, void 0, function* () {
- Y = Te, t(10, l = i.find((ze) => ze.deviceId === ye) || null), t(14, De = !1);
+ const ke = j.target.value;
+ yield Vf(F, a, ke, E).then((Te) => r(void 0, void 0, void 0, function* () {
+ O = Te, t(10, l = i.find((ze) => ze.deviceId === ke) || null), t(14, Ae = !1);
}));
});
- function q() {
+ function P() {
return r(this, void 0, void 0, function* () {
try {
- Uf(F, a, null, E).then((j) => r(this, void 0, void 0, function* () {
- t(13, H = !0), t(9, i = yield gm()), Y = j;
- })).then(() => _m(i)).then((j) => {
+ Vf(F, a, null, E).then((j) => r(this, void 0, void 0, function* () {
+ t(13, se = !0), t(9, i = yield _m()), O = j;
+ })).then(() => vm(i)).then((j) => {
t(9, i = j);
- const pe = Y.getTracks().map((ye) => {
+ const ge = O.getTracks().map((ke) => {
var Te;
- return (Te = ye.getSettings()) === null || Te === void 0 ? void 0 : Te.deviceId;
+ return (Te = ke.getSettings()) === null || Te === void 0 ? void 0 : Te.deviceId;
})[0];
- t(10, l = pe && j.find((ye) => ye.deviceId === pe) || i[0]);
+ t(10, l = ge && j.find((ke) => ke.deviceId === ge) || i[0]);
}), (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) && I("error", B("image.no_webcam_support"));
} catch (j) {
if (j instanceof DOMException && j.name == "NotAllowedError")
@@ -21343,59 +21343,59 @@ function f9(n, e, t) {
}
});
}
- let J = (j) => {
- j.type === "end_stream" ? (c(j), t(12, u = "closed"), r0(Q), q()) : (console.debug("calling on_change_cb with msg", j), c(j));
- }, Y, H = !1, Q, { webrtc_id: fe } = e;
+ let Z = (j) => {
+ j.type === "end_stream" ? (c(j), t(12, u = "closed"), r0(K), P()) : (console.debug("calling on_change_cb with msg", j), c(j));
+ }, O, se = !1, K, { webrtc_id: he } = e;
function ue() {
return r(this, void 0, void 0, function* () {
if (u === "closed") {
- yield C.turn().then((pe) => {
- if (pe.error) {
- I("error", pe.error);
+ I("start_recording"), yield C.turn().then((ge) => {
+ if (ge.error) {
+ I("error", ge.error);
return;
}
- t(20, S = pe), console.info("rtc_configuration", pe);
- }), Q = new RTCPeerConnection(S), Q.addEventListener("connectionstatechange", (pe) => r(this, void 0, void 0, function* () {
- switch (Q.connectionState) {
+ t(20, S = ge), console.info("rtc_configuration", ge);
+ }), K = new RTCPeerConnection(S), K.addEventListener("connectionstatechange", (ge) => r(this, void 0, void 0, function* () {
+ switch (K.connectionState) {
case "connected":
t(12, u = "open"), t(11, s = o), I("tick");
break;
case "disconnected":
- t(12, u = "closed"), t(11, s = null), r0(Q), yield q();
+ t(12, u = "closed"), t(11, s = null), r0(K), yield P();
break;
case "failed":
- t(12, u = "closed"), t(11, s = null), I("error", "Connection failed!"), r0(Q);
+ t(12, u = "closed"), t(11, s = null), I("error", "Connection failed!"), r0(K);
break;
}
- })), t(12, u = "waiting"), t(21, fe = Math.random().toString(36).substring(2));
+ })), t(12, u = "waiting"), t(21, he = Math.random().toString(36).substring(2));
const j = setTimeout(
() => {
c({ type: "connection_timeout" });
},
1e4
);
- ss(Y, Q, h === "send" ? null : a, C.offer, fe, "video", J, p, void 0, d).then((pe) => {
- clearTimeout(j), Q = pe;
+ ss(O, K, h === "send" ? null : a, C.offer, he, "video", Z, p, void 0, d).then((ge) => {
+ clearTimeout(j), K = ge;
}).catch(() => {
clearTimeout(j), console.info("catching"), t(12, u = "closed");
});
} else
- r0(Q), t(12, u = "closed"), t(11, s = null), yield q();
+ I("stop_recording"), r0(K), t(12, u = "closed"), t(11, s = null), yield P();
});
}
- let De = !1;
- function we(j) {
- j.preventDefault(), j.stopPropagation(), t(14, De = !1);
+ let Ae = !1;
+ function ye(j) {
+ j.preventDefault(), j.stopPropagation(), t(14, Ae = !1);
}
- const te = () => a.srcObject;
+ const $ = () => a.srcObject;
function de(j) {
- Wg[j ? "unshift" : "push"](() => {
+ Xg[j ? "unshift" : "push"](() => {
a = j, t(8, a);
});
}
- const he = async () => q(), Ce = () => t(14, De = !0), V = () => t(14, De = !1);
+ const ce = async () => P(), Ce = () => t(14, Ae = !0), V = () => t(14, Ae = !1);
return n.$$set = (j) => {
- "time_limit" in j && t(22, o = j.time_limit), "on_change_cb" in j && t(23, c = j.on_change_cb), "reject_cb" in j && t(24, d = j.reject_cb), "mode" in j && t(25, h = j.mode), "rtp_params" in j && t(26, p = j.rtp_params), "icon" in j && t(0, _ = j.icon), "icon_button_color" in j && t(1, b = j.icon_button_color), "icon_radius" in j && t(2, D = j.icon_radius), "pulse_color" in j && t(3, y = j.pulse_color), "button_labels" in j && t(4, k = j.button_labels), "track_constraints" in j && t(28, E = j.track_constraints), "rtc_configuration" in j && t(20, S = j.rtc_configuration), "stream_every" in j && t(29, T = j.stream_every), "server" in j && t(30, C = j.server), "include_audio" in j && t(5, F = j.include_audio), "i18n" in j && t(6, B = j.i18n), "webrtc_id" in j && t(21, fe = j.webrtc_id);
+ "time_limit" in j && t(22, o = j.time_limit), "on_change_cb" in j && t(23, c = j.on_change_cb), "reject_cb" in j && t(24, d = j.reject_cb), "mode" in j && t(25, h = j.mode), "rtp_params" in j && t(26, p = j.rtp_params), "icon" in j && t(0, _ = j.icon), "icon_button_color" in j && t(1, b = j.icon_button_color), "icon_radius" in j && t(2, D = j.icon_radius), "pulse_color" in j && t(3, y = j.pulse_color), "button_labels" in j && t(4, k = j.button_labels), "track_constraints" in j && t(28, E = j.track_constraints), "rtc_configuration" in j && t(20, S = j.rtc_configuration), "stream_every" in j && t(29, T = j.stream_every), "server" in j && t(30, C = j.server), "include_audio" in j && t(5, F = j.include_audio), "i18n" in j && t(6, B = j.i18n), "webrtc_id" in j && t(21, he = j.webrtc_id);
}, [
_,
b,
@@ -21404,21 +21404,21 @@ function f9(n, e, t) {
k,
F,
B,
- e1,
+ t1,
a,
i,
l,
s,
u,
- H,
- De,
+ se,
+ Ae,
L,
- q,
+ P,
ue,
- we,
- te,
+ ye,
+ $,
S,
- fe,
+ he,
o,
c,
d,
@@ -21429,19 +21429,19 @@ function f9(n, e, t) {
T,
C,
de,
- he,
+ ce,
Ce,
V
];
}
-class h9 extends Vg {
+class d9 extends Gg {
constructor(e) {
- super(), Zg(
+ super(), Kg(
this,
e,
+ h9,
f9,
- c9,
- Jg,
+ Qg,
{
time_limit: 22,
on_change_cb: 23,
@@ -21471,231 +21471,230 @@ class h9 extends Vg {
return this.$$.ctx[27];
}
get click_outside() {
- return e1;
+ return t1;
}
}
const {
- SvelteComponent: d9,
- add_flush_callback: m9,
- attr: ah,
- bind: p9,
- binding_callbacks: g9,
+ SvelteComponent: m9,
+ add_flush_callback: p9,
+ attr: ih,
+ bind: g9,
+ binding_callbacks: _9,
bubble: nl,
- children: _9,
- claim_component: ih,
- claim_element: v9,
- claim_space: b9,
- create_component: lh,
- destroy_component: sh,
+ children: v9,
+ claim_component: lh,
+ claim_element: b9,
+ claim_space: w9,
+ create_component: sh,
+ destroy_component: oh,
detach: So,
- element: w9,
- init: y9,
- insert_hydration: oh,
- mount_component: uh,
- safe_not_equal: k9,
- space: D9,
- transition_in: ch,
- transition_out: fh
-} = window.__gradio__svelte__internal, { createEventDispatcher: A9 } = window.__gradio__svelte__internal;
-function E9(n) {
+ element: y9,
+ init: k9,
+ insert_hydration: uh,
+ mount_component: ch,
+ safe_not_equal: D9,
+ space: A9,
+ transition_in: fh,
+ transition_out: hh
+} = window.__gradio__svelte__internal, { createEventDispatcher: E9 } = window.__gradio__svelte__internal;
+function S9(n) {
let e, t, r, a, i, l;
e = new as({
props: {
show_label: (
/*show_label*/
- n[1]
+ n[2]
),
- Icon: Au,
+ Icon: Eu,
label: (
/*label*/
- n[0] || "Video"
+ n[1] || "Video"
)
}
});
function s(u) {
- n[22](u);
+ n[21](u);
}
let o = {
rtc_configuration: (
/*rtc_configuration*/
- n[7]
+ n[8]
),
include_audio: (
/*include_audio*/
- n[2]
+ n[3]
),
time_limit: (
/*time_limit*/
- n[4]
+ n[5]
),
track_constraints: (
/*track_constraints*/
- n[8]
+ n[9]
),
mode: (
/*mode*/
- n[9]
+ n[10]
),
rtp_params: (
/*rtp_params*/
- n[12]
+ n[13]
),
on_change_cb: (
/*on_change_cb*/
- n[10]
+ n[11]
),
icon: (
/*icon*/
- n[13]
+ n[14]
),
icon_button_color: (
/*icon_button_color*/
- n[14]
+ n[15]
),
pulse_color: (
/*pulse_color*/
- n[15]
+ n[16]
),
icon_radius: (
/*icon_radius*/
- n[16]
+ n[17]
),
button_labels: (
/*button_labels*/
- n[5]
+ n[6]
),
i18n: (
/*i18n*/
- n[3]
+ n[4]
),
stream_every: 0.5,
server: (
/*server*/
- n[6]
+ n[7]
),
reject_cb: (
/*reject_cb*/
- n[11]
+ n[12]
)
};
return (
- /*webrtc_id*/
- n[17] !== void 0 && (o.webrtc_id = /*webrtc_id*/
- n[17]), a = new h9({ props: o }), g9.push(() => p9(a, "webrtc_id", s)), a.$on(
+ /*value*/
+ n[0] !== void 0 && (o.webrtc_id = /*value*/
+ n[0]), a = new d9({ props: o }), _9.push(() => g9(a, "webrtc_id", s)), a.$on(
"error",
/*error_handler*/
- n[23]
+ n[22]
), a.$on(
"start_recording",
/*start_recording_handler*/
- n[24]
+ n[23]
), a.$on(
"stop_recording",
/*stop_recording_handler*/
- n[25]
+ n[24]
), a.$on(
"tick",
/*tick_handler*/
- n[26]
+ n[25]
), {
c() {
- lh(e.$$.fragment), t = D9(), r = w9("div"), lh(a.$$.fragment), this.h();
+ sh(e.$$.fragment), t = A9(), r = y9("div"), sh(a.$$.fragment), this.h();
},
l(u) {
- ih(e.$$.fragment, u), t = b9(u), r = v9(u, "DIV", { "data-testid": !0, class: !0 });
- var c = _9(r);
- ih(a.$$.fragment, c), c.forEach(So), this.h();
+ lh(e.$$.fragment, u), t = w9(u), r = b9(u, "DIV", { "data-testid": !0, class: !0 });
+ var c = v9(r);
+ lh(a.$$.fragment, c), c.forEach(So), this.h();
},
h() {
- ah(r, "data-testid", "video"), ah(r, "class", "video-container svelte-dn5v7y");
+ ih(r, "data-testid", "video"), ih(r, "class", "video-container svelte-dn5v7y");
},
m(u, c) {
- uh(e, u, c), oh(u, t, c), oh(u, r, c), uh(a, r, null), l = !0;
+ ch(e, u, c), uh(u, t, c), uh(u, r, c), ch(a, r, null), l = !0;
},
p(u, [c]) {
const d = {};
c & /*show_label*/
- 2 && (d.show_label = /*show_label*/
- u[1]), c & /*label*/
- 1 && (d.label = /*label*/
- u[0] || "Video"), e.$set(d);
+ 4 && (d.show_label = /*show_label*/
+ u[2]), c & /*label*/
+ 2 && (d.label = /*label*/
+ u[1] || "Video"), e.$set(d);
const h = {};
c & /*rtc_configuration*/
- 128 && (h.rtc_configuration = /*rtc_configuration*/
- u[7]), c & /*include_audio*/
- 4 && (h.include_audio = /*include_audio*/
- u[2]), c & /*time_limit*/
- 16 && (h.time_limit = /*time_limit*/
- u[4]), c & /*track_constraints*/
- 256 && (h.track_constraints = /*track_constraints*/
- u[8]), c & /*mode*/
- 512 && (h.mode = /*mode*/
- u[9]), c & /*rtp_params*/
- 4096 && (h.rtp_params = /*rtp_params*/
- u[12]), c & /*on_change_cb*/
- 1024 && (h.on_change_cb = /*on_change_cb*/
- u[10]), c & /*icon*/
- 8192 && (h.icon = /*icon*/
- u[13]), c & /*icon_button_color*/
- 16384 && (h.icon_button_color = /*icon_button_color*/
- u[14]), c & /*pulse_color*/
- 32768 && (h.pulse_color = /*pulse_color*/
- u[15]), c & /*icon_radius*/
- 65536 && (h.icon_radius = /*icon_radius*/
- u[16]), c & /*button_labels*/
- 32 && (h.button_labels = /*button_labels*/
- u[5]), c & /*i18n*/
- 8 && (h.i18n = /*i18n*/
- u[3]), c & /*server*/
- 64 && (h.server = /*server*/
- u[6]), c & /*reject_cb*/
- 2048 && (h.reject_cb = /*reject_cb*/
- u[11]), !i && c & /*webrtc_id*/
- 131072 && (i = !0, h.webrtc_id = /*webrtc_id*/
- u[17], m9(() => i = !1)), a.$set(h);
+ 256 && (h.rtc_configuration = /*rtc_configuration*/
+ u[8]), c & /*include_audio*/
+ 8 && (h.include_audio = /*include_audio*/
+ u[3]), c & /*time_limit*/
+ 32 && (h.time_limit = /*time_limit*/
+ u[5]), c & /*track_constraints*/
+ 512 && (h.track_constraints = /*track_constraints*/
+ u[9]), c & /*mode*/
+ 1024 && (h.mode = /*mode*/
+ u[10]), c & /*rtp_params*/
+ 8192 && (h.rtp_params = /*rtp_params*/
+ u[13]), c & /*on_change_cb*/
+ 2048 && (h.on_change_cb = /*on_change_cb*/
+ u[11]), c & /*icon*/
+ 16384 && (h.icon = /*icon*/
+ u[14]), c & /*icon_button_color*/
+ 32768 && (h.icon_button_color = /*icon_button_color*/
+ u[15]), c & /*pulse_color*/
+ 65536 && (h.pulse_color = /*pulse_color*/
+ u[16]), c & /*icon_radius*/
+ 131072 && (h.icon_radius = /*icon_radius*/
+ u[17]), c & /*button_labels*/
+ 64 && (h.button_labels = /*button_labels*/
+ u[6]), c & /*i18n*/
+ 16 && (h.i18n = /*i18n*/
+ u[4]), c & /*server*/
+ 128 && (h.server = /*server*/
+ u[7]), c & /*reject_cb*/
+ 4096 && (h.reject_cb = /*reject_cb*/
+ u[12]), !i && c & /*value*/
+ 1 && (i = !0, h.webrtc_id = /*value*/
+ u[0], p9(() => i = !1)), a.$set(h);
},
i(u) {
- l || (ch(e.$$.fragment, u), ch(a.$$.fragment, u), l = !0);
+ l || (fh(e.$$.fragment, u), fh(a.$$.fragment, u), l = !0);
},
o(u) {
- fh(e.$$.fragment, u), fh(a.$$.fragment, u), l = !1;
+ hh(e.$$.fragment, u), hh(a.$$.fragment, u), l = !1;
},
d(u) {
- u && (So(t), So(r)), sh(e, u), sh(a);
+ u && (So(t), So(r)), oh(e, u), oh(a);
}
}
);
}
-let S9 = !1;
-function x9(n, e, t) {
- let r, { value: a = null } = e, { label: i = void 0 } = e, { show_label: l = !0 } = e, { include_audio: s } = e, { i18n: o } = e, { active_source: u = "webcam" } = e, { handle_reset_value: c = () => {
- } } = e, { stream_handler: d } = e, { time_limit: h = null } = e, { button_labels: p } = e, { server: _ } = e, { rtc_configuration: b } = e, { track_constraints: D = {} } = e, { mode: y } = e, { on_change_cb: k } = e, { reject_cb: w } = e, { rtp_params: E = {} } = e, { icon: S = void 0 } = e, { icon_button_color: T = "var(--color-accent)" } = e, { pulse_color: C = "var(--color-accent)" } = e, { icon_radius: F = 50 } = e;
- const B = A9();
- function I(H) {
- r = H, t(17, r), t(18, a);
+let x9 = !1;
+function T9(n, e, t) {
+ let { value: r = null } = e, { label: a = void 0 } = e, { show_label: i = !0 } = e, { include_audio: l } = e, { i18n: s } = e, { active_source: o = "webcam" } = e, { handle_reset_value: u = () => {
+ } } = e, { stream_handler: c } = e, { time_limit: d = null } = e, { button_labels: h } = e, { server: p } = e, { rtc_configuration: _ } = e, { track_constraints: b = {} } = e, { mode: D } = e, { on_change_cb: y } = e, { reject_cb: k } = e, { rtp_params: w = {} } = e, { icon: E = void 0 } = e, { icon_button_color: S = "var(--color-accent)" } = e, { pulse_color: T = "var(--color-accent)" } = e, { icon_radius: C = 50 } = e;
+ const F = E9();
+ function B(O) {
+ r = O, t(0, r);
}
- function L(H) {
- nl.call(this, n, H);
+ function I(O) {
+ nl.call(this, n, O);
}
- function q(H) {
- nl.call(this, n, H);
+ function L(O) {
+ nl.call(this, n, O);
}
- function J(H) {
- nl.call(this, n, H);
+ function P(O) {
+ nl.call(this, n, O);
}
- function Y(H) {
- nl.call(this, n, H);
+ function Z(O) {
+ nl.call(this, n, O);
}
- return n.$$set = (H) => {
- "value" in H && t(18, a = H.value), "label" in H && t(0, i = H.label), "show_label" in H && t(1, l = H.show_label), "include_audio" in H && t(2, s = H.include_audio), "i18n" in H && t(3, o = H.i18n), "active_source" in H && t(19, u = H.active_source), "handle_reset_value" in H && t(20, c = H.handle_reset_value), "stream_handler" in H && t(21, d = H.stream_handler), "time_limit" in H && t(4, h = H.time_limit), "button_labels" in H && t(5, p = H.button_labels), "server" in H && t(6, _ = H.server), "rtc_configuration" in H && t(7, b = H.rtc_configuration), "track_constraints" in H && t(8, D = H.track_constraints), "mode" in H && t(9, y = H.mode), "on_change_cb" in H && t(10, k = H.on_change_cb), "reject_cb" in H && t(11, w = H.reject_cb), "rtp_params" in H && t(12, E = H.rtp_params), "icon" in H && t(13, S = H.icon), "icon_button_color" in H && t(14, T = H.icon_button_color), "pulse_color" in H && t(15, C = H.pulse_color), "icon_radius" in H && t(16, F = H.icon_radius);
- }, n.$$.update = () => {
- n.$$.dirty & /*value*/
- 262144 && t(17, r = typeof a == "string" ? a : a.webrtc_id);
- }, B("drag", S9), [
+ return n.$$set = (O) => {
+ "value" in O && t(0, r = O.value), "label" in O && t(1, a = O.label), "show_label" in O && t(2, i = O.show_label), "include_audio" in O && t(3, l = O.include_audio), "i18n" in O && t(4, s = O.i18n), "active_source" in O && t(18, o = O.active_source), "handle_reset_value" in O && t(19, u = O.handle_reset_value), "stream_handler" in O && t(20, c = O.stream_handler), "time_limit" in O && t(5, d = O.time_limit), "button_labels" in O && t(6, h = O.button_labels), "server" in O && t(7, p = O.server), "rtc_configuration" in O && t(8, _ = O.rtc_configuration), "track_constraints" in O && t(9, b = O.track_constraints), "mode" in O && t(10, D = O.mode), "on_change_cb" in O && t(11, y = O.on_change_cb), "reject_cb" in O && t(12, k = O.reject_cb), "rtp_params" in O && t(13, w = O.rtp_params), "icon" in O && t(14, E = O.icon), "icon_button_color" in O && t(15, S = O.icon_button_color), "pulse_color" in O && t(16, T = O.pulse_color), "icon_radius" in O && t(17, C = O.icon_radius);
+ }, F("drag", x9), [
+ r,
+ a,
i,
l,
s,
- o,
+ d,
h,
p,
_,
@@ -21708,50 +21707,47 @@ function x9(n, e, t) {
S,
T,
C,
- F,
- r,
- a,
+ o,
u,
c,
- d,
+ B,
I,
L,
- q,
- J,
- Y
+ P,
+ Z
];
}
-class T9 extends d9 {
+class C9 extends m9 {
constructor(e) {
- super(), y9(this, e, x9, E9, k9, {
- value: 18,
- label: 0,
- show_label: 1,
- include_audio: 2,
- i18n: 3,
- active_source: 19,
- handle_reset_value: 20,
- stream_handler: 21,
- time_limit: 4,
- button_labels: 5,
- server: 6,
- rtc_configuration: 7,
- track_constraints: 8,
- mode: 9,
- on_change_cb: 10,
- reject_cb: 11,
- rtp_params: 12,
- icon: 13,
- icon_button_color: 14,
- pulse_color: 15,
- icon_radius: 16
+ super(), k9(this, e, T9, S9, D9, {
+ value: 0,
+ label: 1,
+ show_label: 2,
+ include_audio: 3,
+ i18n: 4,
+ active_source: 18,
+ handle_reset_value: 19,
+ stream_handler: 20,
+ time_limit: 5,
+ button_labels: 6,
+ server: 7,
+ rtc_configuration: 8,
+ track_constraints: 9,
+ mode: 10,
+ on_change_cb: 11,
+ reject_cb: 12,
+ rtp_params: 13,
+ icon: 14,
+ icon_button_color: 15,
+ pulse_color: 16,
+ icon_radius: 17
});
}
}
-var hh;
+var dh;
(function(n) {
n.LOAD = "LOAD", n.EXEC = "EXEC", n.WRITE_FILE = "WRITE_FILE", n.READ_FILE = "READ_FILE", n.DELETE_FILE = "DELETE_FILE", n.RENAME = "RENAME", n.CREATE_DIR = "CREATE_DIR", n.LIST_DIR = "LIST_DIR", n.DELETE_DIR = "DELETE_DIR", n.ERROR = "ERROR", n.DOWNLOAD = "DOWNLOAD", n.PROGRESS = "PROGRESS", n.LOG = "LOG", n.MOUNT = "MOUNT", n.UNMOUNT = "UNMOUNT";
-})(hh || (hh = {}));
+})(dh || (dh = {}));
const iy = (n) => {
let e = ["B", "KB", "MB", "GB", "PB"], t = 0;
for (; n > 1024; )
@@ -21770,32 +21766,32 @@ function sy(n, { autoplay: e }) {
};
}
const {
- SvelteComponent: C9,
- append_hydration: F9,
+ SvelteComponent: F9,
+ append_hydration: M9,
attr: xo,
- binding_callbacks: M9,
- children: dh,
- claim_element: mh,
+ binding_callbacks: z9,
+ children: mh,
+ claim_element: ph,
claim_text: oy,
detach: Ga,
- element: ph,
+ element: gh,
empty: jl,
- init: z9,
- insert_hydration: t1,
- is_function: gh,
+ init: B9,
+ insert_hydration: r1,
+ is_function: _h,
listen: To,
- noop: _h,
- run_all: B9,
- safe_not_equal: I9,
+ noop: vh,
+ run_all: I9,
+ safe_not_equal: L9,
set_data: uy,
- src_url_equal: vh,
+ src_url_equal: bh,
text: cy,
toggle_class: jn
} = window.__gradio__svelte__internal;
-function bh(n) {
+function wh(n) {
let e;
function t(i, l) {
- return L9;
+ return N9;
}
let a = t()(n);
return {
@@ -21806,7 +21802,7 @@ function bh(n) {
a.l(i), e = jl();
},
m(i, l) {
- a.m(i, l), t1(i, e, l);
+ a.m(i, l), r1(i, e, l);
},
p(i, l) {
a.p(i, l);
@@ -21816,20 +21812,20 @@ function bh(n) {
}
};
}
-function L9(n) {
+function N9(n) {
let e, t, r, a, i;
return {
c() {
- e = ph("div"), t = ph("video"), this.h();
+ e = gh("div"), t = gh("video"), this.h();
},
l(l) {
- e = mh(l, "DIV", { class: !0 });
- var s = dh(e);
- t = mh(s, "VIDEO", { src: !0 }), dh(t).forEach(Ga), s.forEach(Ga), this.h();
+ e = ph(l, "DIV", { class: !0 });
+ var s = mh(e);
+ t = ph(s, "VIDEO", { src: !0 }), mh(t).forEach(Ga), s.forEach(Ga), this.h();
},
h() {
var l;
- vh(t.src, r = /*value*/
+ bh(t.src, r = /*value*/
(l = n[2]) == null ? void 0 : l.video.url) || xo(t, "src", r), xo(e, "class", "container svelte-1uoo7dd"), jn(
e,
"table",
@@ -21848,7 +21844,7 @@ function L9(n) {
);
},
m(l, s) {
- t1(l, e, s), F9(e, t), n[6](t), a || (i = [
+ r1(l, e, s), M9(e, t), n[6](t), a || (i = [
To(
t,
"loadeddata",
@@ -21856,7 +21852,7 @@ function L9(n) {
n[4]
),
To(t, "mouseover", function() {
- gh(
+ _h(
/*video*/
n[3].play.bind(
/*video*/
@@ -21868,7 +21864,7 @@ function L9(n) {
).apply(this, arguments);
}),
To(t, "mouseout", function() {
- gh(
+ _h(
/*video*/
n[3].pause.bind(
/*video*/
@@ -21884,7 +21880,7 @@ function L9(n) {
p(l, s) {
var o;
n = l, s & /*value*/
- 4 && !vh(t.src, r = /*value*/
+ 4 && !bh(t.src, r = /*value*/
(o = n[2]) == null ? void 0 : o.video.url) && xo(t, "src", r), s & /*type*/
1 && jn(
e,
@@ -21906,14 +21902,14 @@ function L9(n) {
);
},
d(l) {
- l && Ga(e), n[6](null), a = !1, B9(i);
+ l && Ga(e), n[6](null), a = !1, I9(i);
}
};
}
-function N9(n) {
+function R9(n) {
let e, t = (
/*value*/
- n[2] && bh(n)
+ n[2] && wh(n)
);
return {
c() {
@@ -21923,20 +21919,20 @@ function N9(n) {
t && t.l(r), e = jl();
},
m(r, a) {
- t && t.m(r, a), t1(r, e, a);
+ t && t.m(r, a), r1(r, e, a);
},
p(r, [a]) {
/*value*/
- r[2] ? t ? t.p(r, a) : (t = bh(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ r[2] ? t ? t.p(r, a) : (t = wh(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
- i: _h,
- o: _h,
+ i: vh,
+ o: vh,
d(r) {
r && Ga(e), t && t.d(r);
}
};
}
-function R9(n, e, t) {
+function O9(n, e, t) {
var r = this && this.__awaiter || function(d, h, p, _) {
function b(D) {
return D instanceof p ? D : new p(function(y) {
@@ -21971,7 +21967,7 @@ function R9(n, e, t) {
});
}
function c(d) {
- M9[d ? "unshift" : "push"](() => {
+ z9[d ? "unshift" : "push"](() => {
o = d, t(3, o);
});
}
@@ -21979,58 +21975,58 @@ function R9(n, e, t) {
"type" in d && t(0, a = d.type), "selected" in d && t(1, i = d.selected), "value" in d && t(2, l = d.value), "loop" in d && t(5, s = d.loop);
}, [a, i, l, o, u, s, c];
}
-class fy extends C9 {
+class fy extends F9 {
constructor(e) {
- super(), z9(this, e, R9, N9, I9, { type: 0, selected: 1, value: 2, loop: 5 });
+ super(), B9(this, e, O9, R9, L9, { type: 0, selected: 1, value: 2, loop: 5 });
}
}
const {
- SvelteComponent: O9,
- append_hydration: wh,
- assign: yh,
+ SvelteComponent: q9,
+ append_hydration: yh,
+ assign: kh,
attr: Wn,
- binding_callbacks: q9,
- bubble: P9,
- check_outros: H9,
- children: kh,
- claim_component: r1,
+ binding_callbacks: P9,
+ bubble: H9,
+ check_outros: U9,
+ children: Dh,
+ claim_component: n1,
claim_element: Co,
- claim_space: Dh,
- create_component: n1,
- destroy_component: a1,
+ claim_space: Ah,
+ create_component: a1,
+ destroy_component: i1,
detach: Ca,
element: Fo,
- exclude_internal_props: Ah,
- group_outros: U9,
- init: V9,
+ exclude_internal_props: Eh,
+ group_outros: V9,
+ init: G9,
insert_hydration: Mo,
- listen: Q0,
- mount_component: i1,
- run_all: G9,
- safe_not_equal: j9,
- space: Eh,
- toggle_class: Sh,
+ listen: K0,
+ mount_component: l1,
+ run_all: j9,
+ safe_not_equal: W9,
+ space: Sh,
+ toggle_class: xh,
transition_in: ta,
transition_out: ja
-} = window.__gradio__svelte__internal, { createEventDispatcher: W9 } = window.__gradio__svelte__internal;
-function xh(n) {
+} = window.__gradio__svelte__internal, { createEventDispatcher: X9 } = window.__gradio__svelte__internal;
+function Th(n) {
let e, t;
- return e = new cm({
+ return e = new fm({
props: {
unpadded_box: !0,
size: "large",
- $$slots: { default: [X9] },
+ $$slots: { default: [Y9] },
$$scope: { ctx: n }
}
}), {
c() {
- n1(e.$$.fragment);
+ a1(e.$$.fragment);
},
l(r) {
- r1(e.$$.fragment, r);
+ n1(e.$$.fragment, r);
},
m(r, a) {
- i1(e, r, a), t = !0;
+ l1(e, r, a), t = !0;
},
i(r) {
t || (ta(e.$$.fragment, r), t = !0);
@@ -22039,34 +22035,34 @@ function xh(n) {
ja(e.$$.fragment, r), t = !1;
},
d(r) {
- a1(e, r);
- }
- };
-}
-function X9(n) {
- let e, t;
- return e = new Au({}), {
- c() {
- n1(e.$$.fragment);
- },
- l(r) {
- r1(e.$$.fragment, r);
- },
- m(r, a) {
- i1(e, r, a), t = !0;
- },
- i(r) {
- t || (ta(e.$$.fragment, r), t = !0);
- },
- o(r) {
- ja(e.$$.fragment, r), t = !1;
- },
- d(r) {
- a1(e, r);
+ i1(e, r);
}
};
}
function Y9(n) {
+ let e, t;
+ return e = new Eu({}), {
+ c() {
+ a1(e.$$.fragment);
+ },
+ l(r) {
+ n1(e.$$.fragment, r);
+ },
+ m(r, a) {
+ l1(e, r, a), t = !0;
+ },
+ i(r) {
+ t || (ta(e.$$.fragment, r), t = !0);
+ },
+ o(r) {
+ ja(e.$$.fragment, r), t = !1;
+ },
+ d(r) {
+ i1(e, r);
+ }
+ };
+}
+function Z9(n) {
let e, t, r, a, i, l, s, o, u, c;
e = new as({
props: {
@@ -22074,7 +22070,7 @@ function Y9(n) {
/*show_label*/
n[2]
),
- Icon: Au,
+ Icon: Eu,
label: (
/*label*/
n[1] || "Video"
@@ -22083,26 +22079,26 @@ function Y9(n) {
});
let d = (
/*value*/
- n[0] === "__webrtc_value__" && xh(n)
+ n[0] === "__webrtc_value__" && Th(n)
);
return {
c() {
- n1(e.$$.fragment), t = Eh(), d && d.c(), r = Eh(), a = Fo("div"), i = Fo("video"), l = Fo("track"), this.h();
+ a1(e.$$.fragment), t = Sh(), d && d.c(), r = Sh(), a = Fo("div"), i = Fo("video"), l = Fo("track"), this.h();
},
l(h) {
- r1(e.$$.fragment, h), t = Dh(h), d && d.l(h), r = Dh(h), a = Co(h, "DIV", { class: !0 });
- var p = kh(a);
+ n1(e.$$.fragment, h), t = Ah(h), d && d.l(h), r = Ah(h), a = Co(h, "DIV", { class: !0 });
+ var p = Dh(a);
i = Co(p, "VIDEO", {
"data-testid": !0,
crossorigin: !0,
class: !0
});
- var _ = kh(i);
+ var _ = Dh(i);
l = Co(_, "TRACK", { kind: !0 }), _.forEach(Ca), p.forEach(Ca), this.h();
},
h() {
Wn(l, "kind", "captions"), i.autoplay = !0, Wn(i, "data-testid", s = /*$$props*/
- n[5]["data-testid"]), Wn(i, "crossorigin", "anonymous"), Wn(i, "class", "svelte-1yzqfy6"), Sh(
+ n[5]["data-testid"]), Wn(i, "crossorigin", "anonymous"), Wn(i, "class", "svelte-1yzqfy6"), xh(
i,
"hidden",
/*value*/
@@ -22110,62 +22106,62 @@ function Y9(n) {
), Wn(a, "class", "wrap svelte-1yzqfy6");
},
m(h, p) {
- i1(e, h, p), Mo(h, t, p), d && d.m(h, p), Mo(h, r, p), Mo(h, a, p), wh(a, i), wh(i, l), n[12](i), o = !0, u || (c = [
- Q0(
+ l1(e, h, p), Mo(h, t, p), d && d.m(h, p), Mo(h, r, p), Mo(h, a, p), yh(a, i), yh(i, l), n[12](i), o = !0, u || (c = [
+ K0(
i,
"loadeddata",
/*dispatch*/
n[4].bind(null, "loadeddata")
),
- Q0(
+ K0(
i,
"click",
/*dispatch*/
n[4].bind(null, "click")
),
- Q0(
+ K0(
i,
"play",
/*dispatch*/
n[4].bind(null, "play")
),
- Q0(
+ K0(
i,
"pause",
/*dispatch*/
n[4].bind(null, "pause")
),
- Q0(
+ K0(
i,
"ended",
/*dispatch*/
n[4].bind(null, "ended")
),
- Q0(
+ K0(
i,
"mouseover",
/*dispatch*/
n[4].bind(null, "mouseover")
),
- Q0(
+ K0(
i,
"mouseout",
/*dispatch*/
n[4].bind(null, "mouseout")
),
- Q0(
+ K0(
i,
"focus",
/*dispatch*/
n[4].bind(null, "focus")
),
- Q0(
+ K0(
i,
"blur",
/*dispatch*/
n[4].bind(null, "blur")
),
- Q0(
+ K0(
i,
"load",
/*load_handler*/
@@ -22181,12 +22177,12 @@ function Y9(n) {
2 && (_.label = /*label*/
h[1] || "Video"), e.$set(_), /*value*/
h[0] === "__webrtc_value__" ? d ? p & /*value*/
- 1 && ta(d, 1) : (d = xh(h), d.c(), ta(d, 1), d.m(r.parentNode, r)) : d && (U9(), ja(d, 1, 1, () => {
+ 1 && ta(d, 1) : (d = Th(h), d.c(), ta(d, 1), d.m(r.parentNode, r)) : d && (V9(), ja(d, 1, 1, () => {
d = null;
- }), H9()), (!o || p & /*$$props*/
+ }), U9()), (!o || p & /*$$props*/
32 && s !== (s = /*$$props*/
h[5]["data-testid"])) && Wn(i, "data-testid", s), (!o || p & /*value*/
- 1) && Sh(
+ 1) && xh(
i,
"hidden",
/*value*/
@@ -22200,11 +22196,11 @@ function Y9(n) {
ja(e.$$.fragment, h), ja(d), o = !1;
},
d(h) {
- h && (Ca(t), Ca(r), Ca(a)), a1(e, h), d && d.d(h), n[12](null), u = !1, G9(c);
+ h && (Ca(t), Ca(r), Ca(a)), i1(e, h), d && d.d(h), n[12](null), u = !1, j9(c);
}
};
}
-function Z9(n, e, t) {
+function K9(n, e, t) {
var r = this && this.__awaiter || function(y, k, w, E) {
function S(T) {
return T instanceof w ? T : new w(function(C) {
@@ -22215,15 +22211,15 @@ function Z9(n, e, t) {
function F(L) {
try {
I(E.next(L));
- } catch (q) {
- C(q);
+ } catch (P) {
+ C(P);
}
}
function B(L) {
try {
I(E.throw(L));
- } catch (q) {
- C(q);
+ } catch (P) {
+ C(P);
}
}
function I(L) {
@@ -22233,20 +22229,20 @@ function Z9(n, e, t) {
});
};
let { value: a = null } = e, { label: i = void 0 } = e, { show_label: l = !0 } = e, { rtc_configuration: s = null } = e, { on_change_cb: o } = e, { server: u } = e, c, d = Math.random().toString(36).substring(2), h;
- const p = W9();
+ const p = X9();
let _ = (y) => {
y.type === "end_stream" ? (o(y), r0(h)) : (console.debug("calling on_change_cb with msg", y), o(y));
};
function b(y) {
- P9.call(this, n, y);
+ H9.call(this, n, y);
}
function D(y) {
- q9[y ? "unshift" : "push"](() => {
+ P9[y ? "unshift" : "push"](() => {
c = y, t(3, c);
});
}
return n.$$set = (y) => {
- t(5, e = yh(yh({}, e), Ah(y))), "value" in y && t(0, a = y.value), "label" in y && t(1, i = y.label), "show_label" in y && t(2, l = y.show_label), "rtc_configuration" in y && t(6, s = y.rtc_configuration), "on_change_cb" in y && t(7, o = y.on_change_cb), "server" in y && t(8, u = y.server);
+ t(5, e = kh(kh({}, e), Eh(y))), "value" in y && t(0, a = y.value), "label" in y && t(1, i = y.label), "show_label" in y && t(2, l = y.show_label), "rtc_configuration" in y && t(6, s = y.rtc_configuration), "on_change_cb" in y && t(7, o = y.on_change_cb), "server" in y && t(8, u = y.server);
}, n.$$.update = () => {
if (n.$$.dirty & /*value, server, _webrtc_id, rtc_configuration, pc, on_change_cb, video_element*/
1993 && a === "start_webrtc_stream") {
@@ -22279,7 +22275,7 @@ function Z9(n, e, t) {
clearTimeout(y), p("error", "Too many concurrent users. Come back later!");
});
}
- }, e = Ah(e), [
+ }, e = Eh(e), [
a,
i,
l,
@@ -22295,9 +22291,9 @@ function Z9(n, e, t) {
D
];
}
-class K9 extends O9 {
+class J9 extends q9 {
constructor(e) {
- super(), V9(this, e, Z9, Y9, j9, {
+ super(), G9(this, e, K9, Z9, W9, {
value: 0,
label: 1,
show_label: 2,
@@ -22308,42 +22304,42 @@ class K9 extends O9 {
}
}
const {
- SvelteComponent: J9,
+ SvelteComponent: Q9,
append_hydration: Qn,
attr: Ar,
- check_outros: Q9,
+ check_outros: $9,
children: Er,
- claim_component: $9,
+ claim_component: e_,
claim_element: Sr,
- claim_space: Th,
- create_component: e_,
- destroy_component: t_,
- destroy_each: r_,
+ claim_space: Ch,
+ create_component: t_,
+ destroy_component: r_,
+ destroy_each: n_,
detach: t0,
element: xr,
- ensure_array_like: Ch,
- group_outros: n_,
- init: a_,
+ ensure_array_like: Fh,
+ group_outros: a_,
+ init: i_,
insert_hydration: ci,
- mount_component: i_,
+ mount_component: l_,
noop: ei,
- safe_not_equal: l_,
- set_style: y0,
- space: Fh,
- transition_in: _u,
- transition_out: vu
-} = window.__gradio__svelte__internal, { onDestroy: s_ } = window.__gradio__svelte__internal;
-function Mh(n, e, t) {
+ safe_not_equal: s_,
+ set_style: w0,
+ space: Mh,
+ transition_in: vu,
+ transition_out: bu
+} = window.__gradio__svelte__internal, { onDestroy: o_ } = window.__gradio__svelte__internal;
+function zh(n, e, t) {
const r = n.slice();
return r[16] = e[t], r;
}
-function o_(n) {
- let e, t = Ch(Array(
+function u_(n) {
+ let e, t = Fh(Array(
/*numBars*/
n[0]
)), r = [];
for (let a = 0; a < t.length; a += 1)
- r[a] = zh(Mh(n, t, a));
+ r[a] = Bh(zh(n, t, a));
return {
c() {
e = xr("div");
@@ -22359,7 +22355,7 @@ function o_(n) {
i.forEach(t0), this.h();
},
h() {
- Ar(e, "class", "gradio-webrtc-boxContainer svelte-1x8be7j"), y0(
+ Ar(e, "class", "gradio-webrtc-boxContainer svelte-1x8be7j"), w0(
e,
"width",
/*containerWidth*/
@@ -22374,21 +22370,21 @@ function o_(n) {
p(a, i) {
if (i & /*numBars*/
1) {
- t = Ch(Array(
+ t = Fh(Array(
/*numBars*/
a[0]
));
let l;
for (l = 0; l < t.length; l += 1) {
- const s = Mh(a, t, l);
- r[l] ? r[l].p(s, i) : (r[l] = zh(), r[l].c(), r[l].m(e, null));
+ const s = zh(a, t, l);
+ r[l] ? r[l].p(s, i) : (r[l] = Bh(), r[l].c(), r[l].m(e, null));
}
for (; l < r.length; l += 1)
r[l].d(1);
r.length = t.length;
}
i & /*containerWidth*/
- 512 && y0(
+ 512 && w0(
e,
"width",
/*containerWidth*/
@@ -22398,33 +22394,33 @@ function o_(n) {
i: ei,
o: ei,
d(a) {
- a && t0(e), r_(r, a);
+ a && t0(e), n_(r, a);
}
};
}
-function u_(n) {
+function c_(n) {
let e, t, r, a, i, l;
return {
c() {
- e = xr("div"), t = xr("div"), r = Fh(), a = xr("div"), i = Fh(), l = xr("div"), this.h();
+ e = xr("div"), t = xr("div"), r = Mh(), a = xr("div"), i = Mh(), l = xr("div"), this.h();
},
l(s) {
e = Sr(s, "DIV", { class: !0 });
var o = Er(e);
- t = Sr(o, "DIV", { class: !0 }), Er(t).forEach(t0), r = Th(o), a = Sr(o, "DIV", { class: !0 }), Er(a).forEach(t0), i = Th(o), l = Sr(o, "DIV", { class: !0 }), Er(l).forEach(t0), o.forEach(t0), this.h();
+ t = Sr(o, "DIV", { class: !0 }), Er(t).forEach(t0), r = Ch(o), a = Sr(o, "DIV", { class: !0 }), Er(a).forEach(t0), i = Ch(o), l = Sr(o, "DIV", { class: !0 }), Er(l).forEach(t0), o.forEach(t0), this.h();
},
h() {
- Ar(t, "class", "dot svelte-1x8be7j"), y0(
+ Ar(t, "class", "dot svelte-1x8be7j"), w0(
t,
"background-color",
/*pulse_color*/
n[5]
- ), Ar(a, "class", "dot svelte-1x8be7j"), y0(
+ ), Ar(a, "class", "dot svelte-1x8be7j"), w0(
a,
"background-color",
/*pulse_color*/
n[5]
- ), Ar(l, "class", "dot svelte-1x8be7j"), y0(
+ ), Ar(l, "class", "dot svelte-1x8be7j"), w0(
l,
"background-color",
/*pulse_color*/
@@ -22436,19 +22432,19 @@ function u_(n) {
},
p(s, o) {
o & /*pulse_color*/
- 32 && y0(
+ 32 && w0(
t,
"background-color",
/*pulse_color*/
s[5]
), o & /*pulse_color*/
- 32 && y0(
+ 32 && w0(
a,
"background-color",
/*pulse_color*/
s[5]
), o & /*pulse_color*/
- 32 && y0(
+ 32 && w0(
l,
"background-color",
/*pulse_color*/
@@ -22462,7 +22458,7 @@ function u_(n) {
}
};
}
-function c_(n) {
+function f_(n) {
let e, t, r, a;
return r = new li({
props: {
@@ -22493,18 +22489,18 @@ function c_(n) {
}
}), {
c() {
- e = xr("div"), t = xr("div"), e_(r.$$.fragment), this.h();
+ e = xr("div"), t = xr("div"), t_(r.$$.fragment), this.h();
},
l(i) {
e = Sr(i, "DIV", { class: !0 });
var l = Er(e);
t = Sr(l, "DIV", { class: !0 });
var s = Er(t);
- $9(r.$$.fragment, s), s.forEach(t0), l.forEach(t0), this.h();
+ e_(r.$$.fragment, s), s.forEach(t0), l.forEach(t0), this.h();
},
h() {
- Ar(t, "class", "gradio-webrtc-icon svelte-1x8be7j"), y0(t, "transform", `scale(${/*pulseScale*/
- n[8]})`), y0(
+ Ar(t, "class", "gradio-webrtc-icon svelte-1x8be7j"), w0(t, "transform", `scale(${/*pulseScale*/
+ n[8]})`), w0(
t,
"background",
/*icon_button_color*/
@@ -22512,7 +22508,7 @@ function c_(n) {
), Ar(e, "class", "gradio-webrtc-icon-container svelte-1x8be7j");
},
m(i, l) {
- ci(i, e, l), Qn(e, t), i_(r, t, null), a = !0;
+ ci(i, e, l), Qn(e, t), l_(r, t, null), a = !0;
},
p(i, l) {
const s = {};
@@ -22529,9 +22525,9 @@ function c_(n) {
i[7]), l & /*audio_source_callback*/
4 && (s.audio_source_callback = /*audio_source_callback*/
i[2]), r.$set(s), l & /*pulseScale*/
- 256 && y0(t, "transform", `scale(${/*pulseScale*/
+ 256 && w0(t, "transform", `scale(${/*pulseScale*/
i[8]})`), l & /*icon_button_color*/
- 16 && y0(
+ 16 && w0(
t,
"background",
/*icon_button_color*/
@@ -22539,17 +22535,17 @@ function c_(n) {
);
},
i(i) {
- a || (_u(r.$$.fragment, i), a = !0);
+ a || (vu(r.$$.fragment, i), a = !0);
},
o(i) {
- vu(r.$$.fragment, i), a = !1;
+ bu(r.$$.fragment, i), a = !1;
},
d(i) {
- i && t0(e), t_(r);
+ i && t0(e), r_(r);
}
};
}
-function zh(n) {
+function Bh(n) {
let e;
return {
c() {
@@ -22570,9 +22566,9 @@ function zh(n) {
}
};
}
-function f_(n) {
+function h_(n) {
let e, t, r, a;
- const i = [c_, u_, o_], l = [];
+ const i = [f_, c_, u_], l = [];
function s(o, u) {
return (
/*icon*/
@@ -22600,24 +22596,24 @@ function f_(n) {
},
p(o, [u]) {
let c = t;
- t = s(o), t === c ? l[t].p(o, u) : (n_(), vu(l[c], 1, 1, () => {
+ t = s(o), t === c ? l[t].p(o, u) : (a_(), bu(l[c], 1, 1, () => {
l[c] = null;
- }), Q9(), r = l[t], r ? r.p(o, u) : (r = l[t] = i[t](o), r.c()), _u(r, 1), r.m(e, null));
+ }), $9(), r = l[t], r ? r.p(o, u) : (r = l[t] = i[t](o), r.c()), vu(r, 1), r.m(e, null));
},
i(o) {
- a || (_u(r), a = !0);
+ a || (vu(r), a = !0);
},
o(o) {
- vu(r), a = !1;
+ bu(r), a = !1;
},
d(o) {
o && t0(e), l[t].d();
}
};
}
-function h_(n, e, t) {
+function d_(n, e, t) {
let r, { numBars: a = 16 } = e, { stream_state: i = "closed" } = e, { audio_source_callback: l } = e, { icon: s = void 0 } = e, { icon_button_color: o = "var(--color-accent)" } = e, { pulse_color: u = "var(--color-accent)" } = e, { pending: c = !1 } = e, { icon_radius: d = 50 } = e, h, p, _, b, { pulseScale: D = 1 } = e;
- s_(() => {
+ o_(() => {
b && cancelAnimationFrame(b), h && h.close();
});
function y() {
@@ -22651,9 +22647,9 @@ function h_(n, e, t) {
r
];
}
-class ym extends J9 {
+class km extends Q9 {
constructor(e) {
- super(), a_(this, e, h_, f_, l_, {
+ super(), i_(this, e, d_, h_, s_, {
numBars: 0,
stream_state: 1,
audio_source_callback: 2,
@@ -22667,35 +22663,35 @@ class ym extends J9 {
}
}
const {
- SvelteComponent: d_,
- attr: km,
- binding_callbacks: m_,
- bubble: p_,
- check_outros: Bh,
- children: Dm,
+ SvelteComponent: m_,
+ attr: Dm,
+ binding_callbacks: p_,
+ bubble: g_,
+ check_outros: Ih,
+ children: Am,
claim_component: os,
- claim_element: Am,
+ claim_element: Em,
claim_space: zo,
create_component: us,
destroy_component: cs,
detach: $r,
- element: Em,
- empty: Ih,
- group_outros: Lh,
- init: g_,
+ element: Sm,
+ empty: Lh,
+ group_outros: Nh,
+ init: __,
insert_hydration: $n,
listen: Bo,
mount_component: fs,
- run_all: __,
- safe_not_equal: v_,
+ run_all: v_,
+ safe_not_equal: b_,
space: Io,
- toggle_class: b_,
- transition_in: er,
+ toggle_class: w_,
+ transition_in: Q0,
transition_out: en
-} = window.__gradio__svelte__internal, { createEventDispatcher: w_ } = window.__gradio__svelte__internal;
-function Nh(n) {
+} = window.__gradio__svelte__internal, { createEventDispatcher: y_ } = window.__gradio__svelte__internal;
+function Rh(n) {
let e, t, r;
- return t = new ym({
+ return t = new km({
props: {
audio_source_callback: (
/*func*/
@@ -22724,15 +22720,15 @@ function Nh(n) {
}
}), {
c() {
- e = Em("div"), us(t.$$.fragment), this.h();
+ e = Sm("div"), us(t.$$.fragment), this.h();
},
l(a) {
- e = Am(a, "DIV", { class: !0 });
- var i = Dm(e);
+ e = Em(a, "DIV", { class: !0 });
+ var i = Am(e);
os(t.$$.fragment, i), i.forEach($r), this.h();
},
h() {
- km(e, "class", "audio-container svelte-js69uk");
+ Dm(e, "class", "audio-container svelte-js69uk");
},
m(a, i) {
$n(a, e, i), fs(t, e, null), r = !0;
@@ -22754,7 +22750,7 @@ function Nh(n) {
a[7]), t.$set(l);
},
i(a) {
- r || (er(t.$$.fragment, a), r = !0);
+ r || (Q0(t.$$.fragment, a), r = !0);
},
o(a) {
en(t.$$.fragment, a), r = !1;
@@ -22764,12 +22760,12 @@ function Nh(n) {
}
};
}
-function Rh(n) {
+function Oh(n) {
let e, t;
- return e = new cm({
+ return e = new fm({
props: {
size: "small",
- $$slots: { default: [y_] },
+ $$slots: { default: [k_] },
$$scope: { ctx: n }
}
}), {
@@ -22783,30 +22779,7 @@ function Rh(n) {
fs(e, r, a), t = !0;
},
i(r) {
- t || (er(e.$$.fragment, r), t = !0);
- },
- o(r) {
- en(e.$$.fragment, r), t = !1;
- },
- d(r) {
- cs(e, r);
- }
- };
-}
-function y_(n) {
- let e, t;
- return e = new Du({}), {
- c() {
- us(e.$$.fragment);
- },
- l(r) {
- os(e.$$.fragment, r);
- },
- m(r, a) {
- fs(e, r, a), t = !0;
- },
- i(r) {
- t || (er(e.$$.fragment, r), t = !0);
+ t || (Q0(e.$$.fragment, r), t = !0);
},
o(r) {
en(e.$$.fragment, r), t = !1;
@@ -22817,6 +22790,29 @@ function y_(n) {
};
}
function k_(n) {
+ let e, t;
+ return e = new Au({}), {
+ c() {
+ us(e.$$.fragment);
+ },
+ l(r) {
+ os(e.$$.fragment, r);
+ },
+ m(r, a) {
+ fs(e, r, a), t = !0;
+ },
+ i(r) {
+ t || (Q0(e.$$.fragment, r), t = !0);
+ },
+ o(r) {
+ en(e.$$.fragment, r), t = !1;
+ },
+ d(r) {
+ cs(e, r);
+ }
+ };
+}
+function D_(n) {
let e, t, r, a, i, l, s, o, u;
e = new as({
props: {
@@ -22824,7 +22820,7 @@ function k_(n) {
/*show_label*/
n[2]
),
- Icon: Du,
+ Icon: Au,
float: !1,
label: (
/*label*/
@@ -22835,20 +22831,20 @@ function k_(n) {
});
let c = (
/*value*/
- n[0] !== "__webrtc_value__" && Nh(n)
+ n[0] !== "__webrtc_value__" && Rh(n)
), d = (
/*value*/
- n[0] === "__webrtc_value__" && Rh(n)
+ n[0] === "__webrtc_value__" && Oh(n)
);
return {
c() {
- us(e.$$.fragment), t = Io(), r = Em("audio"), a = Io(), c && c.c(), i = Io(), d && d.c(), l = Ih(), this.h();
+ us(e.$$.fragment), t = Io(), r = Sm("audio"), a = Io(), c && c.c(), i = Io(), d && d.c(), l = Lh(), this.h();
},
l(h) {
- os(e.$$.fragment, h), t = zo(h), r = Am(h, "AUDIO", { class: !0 }), Dm(r).forEach($r), a = zo(h), c && c.l(h), i = zo(h), d && d.l(h), l = Ih(), this.h();
+ os(e.$$.fragment, h), t = zo(h), r = Em(h, "AUDIO", { class: !0 }), Am(r).forEach($r), a = zo(h), c && c.l(h), i = zo(h), d && d.l(h), l = Lh(), this.h();
},
h() {
- km(r, "class", "standard-player svelte-js69uk"), b_(r, "hidden", !0);
+ Dm(r, "class", "standard-player svelte-js69uk"), w_(r, "hidden", !0);
},
m(h, p) {
fs(e, h, p), $n(h, t, p), $n(h, r, p), n[15](r), $n(h, a, p), c && c.m(h, p), $n(h, i, p), d && d.m(h, p), $n(h, l, p), s = !0, o || (u = [
@@ -22881,61 +22877,61 @@ function k_(n) {
h[1] || /*i18n*/
h[3]("audio.audio")), e.$set(_), /*value*/
h[0] !== "__webrtc_value__" ? c ? (c.p(h, p), p & /*value*/
- 1 && er(c, 1)) : (c = Nh(h), c.c(), er(c, 1), c.m(i.parentNode, i)) : c && (Lh(), en(c, 1, 1, () => {
+ 1 && Q0(c, 1)) : (c = Rh(h), c.c(), Q0(c, 1), c.m(i.parentNode, i)) : c && (Nh(), en(c, 1, 1, () => {
c = null;
- }), Bh()), /*value*/
+ }), Ih()), /*value*/
h[0] === "__webrtc_value__" ? d ? p & /*value*/
- 1 && er(d, 1) : (d = Rh(h), d.c(), er(d, 1), d.m(l.parentNode, l)) : d && (Lh(), en(d, 1, 1, () => {
+ 1 && Q0(d, 1) : (d = Oh(h), d.c(), Q0(d, 1), d.m(l.parentNode, l)) : d && (Nh(), en(d, 1, 1, () => {
d = null;
- }), Bh());
+ }), Ih());
},
i(h) {
- s || (er(e.$$.fragment, h), er(c), er(d), s = !0);
+ s || (Q0(e.$$.fragment, h), Q0(c), Q0(d), s = !0);
},
o(h) {
en(e.$$.fragment, h), en(c), en(d), s = !1;
},
d(h) {
- h && ($r(t), $r(r), $r(a), $r(i), $r(l)), cs(e, h), n[15](null), c && c.d(h), d && d.d(h), o = !1, __(u);
+ h && ($r(t), $r(r), $r(a), $r(i), $r(l)), cs(e, h), n[15](null), c && c.d(h), d && d.d(h), o = !1, v_(u);
}
};
}
-function D_(n, e, t) {
- var r = this && this.__awaiter || function(L, q, J, Y) {
- function H(Q) {
- return Q instanceof J ? Q : new J(function(fe) {
- fe(Q);
+function A_(n, e, t) {
+ var r = this && this.__awaiter || function(L, P, Z, O) {
+ function se(K) {
+ return K instanceof Z ? K : new Z(function(he) {
+ he(K);
});
}
- return new (J || (J = Promise))(function(Q, fe) {
- function ue(te) {
+ return new (Z || (Z = Promise))(function(K, he) {
+ function ue($) {
try {
- we(Y.next(te));
+ ye(O.next($));
} catch (de) {
- fe(de);
+ he(de);
}
}
- function De(te) {
+ function Ae($) {
try {
- we(Y.throw(te));
+ ye(O.throw($));
} catch (de) {
- fe(de);
+ he(de);
}
}
- function we(te) {
- te.done ? Q(te.value) : H(te.value).then(ue, De);
+ function ye($) {
+ $.done ? K($.value) : se($.value).then(ue, Ae);
}
- we((Y = Y.apply(L, q || [])).next());
+ ye((O = O.apply(L, P || [])).next());
});
};
let { value: a = null } = e, { label: i = void 0 } = e, { show_label: l = !0 } = e, { rtc_configuration: s = null } = e, { i18n: o } = e, { on_change_cb: u } = e, { icon: c = void 0 } = e, { icon_button_color: d = "var(--color-accent)" } = e, { pulse_color: h = "var(--color-accent)" } = e, { icon_radius: p = 50 } = e, { server: _ } = e, b = "closed", D, y, k = Math.random().toString(36).substring(2), w = (L) => {
L.type === "end_stream" ? (u(L), t(8, b = "closed"), r0(y)) : (console.debug("calling on_change_cb with msg", L), u(L));
};
- const E = w_();
+ const E = y_();
function S(L) {
return r(this, void 0, void 0, function* () {
if (L === "start_webrtc_stream") {
- t(8, b = "waiting"), k = Math.random().toString(36).substring(2), L = k, y = new RTCPeerConnection(s), y.addEventListener("connectionstatechange", (Y) => r(this, void 0, void 0, function* () {
+ t(8, b = "waiting"), k = Math.random().toString(36).substring(2), L = k, y = new RTCPeerConnection(s), y.addEventListener("connectionstatechange", (O) => r(this, void 0, void 0, function* () {
switch (y.connectionState) {
case "connected":
console.info("connected"), t(8, b = "open"), E("tick");
@@ -22948,27 +22944,27 @@ function D_(n, e, t) {
break;
}
}));
- let q = null;
- const J = setTimeout(
+ let P = null;
+ const Z = setTimeout(
() => {
u({ type: "connection_timeout" });
},
1e4
);
- ss(q, y, D, _.offer, k, "audio", w).then((Y) => {
- clearTimeout(J), y = Y;
+ ss(P, y, D, _.offer, k, "audio", w).then((O) => {
+ clearTimeout(Z), y = O;
}).catch(() => {
- clearTimeout(J), console.info("catching"), E("error", "Too many concurrent users. Come back later!");
+ clearTimeout(Z), console.info("catching"), E("error", "Too many concurrent users. Come back later!");
});
}
return L;
});
}
function T(L) {
- p_.call(this, n, L);
+ g_.call(this, n, L);
}
function C(L) {
- m_[L ? "unshift" : "push"](() => {
+ p_[L ? "unshift" : "push"](() => {
D = L, t(9, D);
});
}
@@ -23002,9 +22998,9 @@ function D_(n, e, t) {
I
];
}
-class A_ extends d_ {
+class E_ extends m_ {
constructor(e) {
- super(), g_(this, e, D_, k_, v_, {
+ super(), __(this, e, A_, D_, b_, {
value: 0,
label: 1,
show_label: 2,
@@ -23020,19 +23016,19 @@ class A_ extends d_ {
}
}
const {
- SvelteComponent: E_,
+ SvelteComponent: S_,
append_hydration: Fa,
- attr: He,
+ attr: Ue,
children: Xn,
claim_svg_element: Yn,
detach: yn,
- init: S_,
- insert_hydration: x_,
+ init: x_,
+ insert_hydration: T_,
noop: Lo,
- safe_not_equal: T_,
+ safe_not_equal: C_,
svg_element: Zn
} = window.__gradio__svelte__internal;
-function C_(n) {
+function F_(n) {
let e, t, r, a, i, l;
return {
c() {
@@ -23055,10 +23051,10 @@ function C_(n) {
t = Yn(o, "path", { d: !0 }), Xn(t).forEach(yn), r = Yn(o, "path", { d: !0 }), Xn(r).forEach(yn), a = Yn(o, "line", { x1: !0, y1: !0, x2: !0, y2: !0 }), Xn(a).forEach(yn), i = Yn(o, "line", { x1: !0, y1: !0, x2: !0, y2: !0 }), Xn(i).forEach(yn), l = Yn(o, "line", { x1: !0, y1: !0, x2: !0, y2: !0 }), Xn(l).forEach(yn), o.forEach(yn), this.h();
},
h() {
- He(t, "d", "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"), He(r, "d", "M19 10v2a7 7 0 0 1-14 0v-2"), He(a, "x1", "12"), He(a, "y1", "19"), He(a, "x2", "12"), He(a, "y2", "23"), He(i, "x1", "8"), He(i, "y1", "23"), He(i, "x2", "16"), He(i, "y2", "23"), He(l, "x1", "1"), He(l, "y1", "1"), He(l, "x2", "23"), He(l, "y2", "23"), He(e, "xmlns", "http://www.w3.org/2000/svg"), He(e, "width", "100%"), He(e, "height", "100%"), He(e, "viewBox", "0 0 24 24"), He(e, "fill", "none"), He(e, "stroke", "currentColor"), He(e, "stroke-width", "2"), He(e, "stroke-linecap", "round"), He(e, "stroke-linejoin", "round"), He(e, "class", "feather feather-mic");
+ Ue(t, "d", "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"), Ue(r, "d", "M19 10v2a7 7 0 0 1-14 0v-2"), Ue(a, "x1", "12"), Ue(a, "y1", "19"), Ue(a, "x2", "12"), Ue(a, "y2", "23"), Ue(i, "x1", "8"), Ue(i, "y1", "23"), Ue(i, "x2", "16"), Ue(i, "y2", "23"), Ue(l, "x1", "1"), Ue(l, "y1", "1"), Ue(l, "x2", "23"), Ue(l, "y2", "23"), Ue(e, "xmlns", "http://www.w3.org/2000/svg"), Ue(e, "width", "100%"), Ue(e, "height", "100%"), Ue(e, "viewBox", "0 0 24 24"), Ue(e, "fill", "none"), Ue(e, "stroke", "currentColor"), Ue(e, "stroke-width", "2"), Ue(e, "stroke-linecap", "round"), Ue(e, "stroke-linejoin", "round"), Ue(e, "class", "feather feather-mic");
},
m(s, o) {
- x_(s, e, o), Fa(e, t), Fa(e, r), Fa(e, a), Fa(e, i), Fa(e, l);
+ T_(s, e, o), Fa(e, t), Fa(e, r), Fa(e, a), Fa(e, i), Fa(e, l);
},
p: Lo,
i: Lo,
@@ -23068,39 +23064,39 @@ function C_(n) {
}
};
}
-class bu extends E_ {
+class wu extends S_ {
constructor(e) {
- super(), S_(this, e, null, C_, T_, {});
+ super(), x_(this, e, null, F_, C_, {});
}
}
-const F_ = ' ', M_ = `
+const M_ = ' ', z_ = `
-`, z_ = `
+`, B_ = `
-`, Oh = `
- ${M_}
- ${z_}
- `, Sm = /[&<>"']/, B_ = new RegExp(Sm.source, "g"), xm = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, I_ = new RegExp(xm.source, "g"), L_ = {
+`, qh = `
+ ${z_}
+ ${B_}
+ `, xm = /[&<>"']/, I_ = new RegExp(xm.source, "g"), Tm = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, L_ = new RegExp(Tm.source, "g"), N_ = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
-}, qh = (n) => L_[n] || "";
+}, Ph = (n) => N_[n] || "";
function No(n, e) {
if (e) {
- if (Sm.test(n))
- return n.replace(B_, qh);
- } else if (xm.test(n))
- return n.replace(I_, qh);
+ if (xm.test(n))
+ return n.replace(I_, Ph);
+ } else if (Tm.test(n))
+ return n.replace(L_, Ph);
return n;
}
-function N_(n) {
+function R_(n) {
const e = n.map((t) => ({
start: new RegExp(t.left.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")),
end: new RegExp(t.right.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"))
@@ -23134,7 +23130,7 @@ function N_(n) {
}
};
}
-function R_() {
+function O_() {
return {
name: "mermaid",
level: "block",
@@ -23157,54 +23153,54 @@ function R_() {
}
};
}
-const O_ = {
+const q_ = {
code(n, e, t) {
var a;
const r = ((a = (e ?? "").match(/\S*/)) == null ? void 0 : a[0]) ?? "";
return n = n.replace(/\n$/, "") + `
-`, !r || r === "mermaid" ? '' + Oh + "
" + (t ? n : No(n, !0)) + `
-` : '' + Oh + '
' + (t ? n : No(n, !0)) + `
+`, !r || r === "mermaid" ? '' + qh + "
" + (t ? n : No(n, !0)) + `
+` : '' + qh + '
' + (t ? n : No(n, !0)) + `
`;
}
-}, q_ = new ns();
-function P_({
+}, P_ = new ns();
+function H_({
header_links: n,
line_breaks: e,
latex_delimiters: t
}) {
- const r = new C4();
+ const r = new F4();
r.use(
{
gfm: !0,
pedantic: !1,
breaks: e
},
- u7({
+ c7({
highlight: (l, s) => {
var o;
return (o = oo.languages) != null && o[s] ? oo.highlight(l, oo.languages[s], s) : l;
}
}),
- { renderer: O_ }
- ), n && (r.use(g7()), r.use({
+ { renderer: q_ }
+ ), n && (r.use(_7()), r.use({
extensions: [
{
name: "heading",
level: "block",
renderer(l) {
- const s = l.raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, ""), o = "h" + q_.slug(s), u = l.depth, c = this.parser.parseInline(l.tokens);
- return `${c}
+ const s = l.raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, ""), o = "h" + P_.slug(s), u = l.depth, c = this.parser.parseInline(l.tokens);
+ return `${c}
`;
}
}
]
}));
- const a = R_(), i = N_(t);
+ const a = O_(), i = R_(t);
return r.use({
extensions: [a, i]
}), r;
}
-const Ph = [
+const Hh = [
"!--",
"!doctype",
"a",
@@ -23332,7 +23328,7 @@ const Ph = [
"var",
"video",
"wbr"
-], H_ = [
+], U_ = [
// Base structural elements
"g",
"defs",
@@ -23397,38 +23393,38 @@ const Ph = [
"title",
"metadata",
"switch"
-], U_ = [
- ...Ph,
- ...H_.filter((n) => !Ph.includes(n))
+], V_ = [
+ ...Hh,
+ ...U_.filter((n) => !Hh.includes(n))
], {
- HtmlTagHydration: V_,
- SvelteComponent: G_,
- attr: j_,
- binding_callbacks: W_,
- children: X_,
- claim_element: Y_,
- claim_html_tag: Z_,
- detach: Hh,
- element: K_,
- init: J_,
- insert_hydration: Q_,
- noop: Uh,
- safe_not_equal: $_,
+ HtmlTagHydration: G_,
+ SvelteComponent: j_,
+ attr: W_,
+ binding_callbacks: X_,
+ children: Y_,
+ claim_element: Z_,
+ claim_html_tag: K_,
+ detach: Uh,
+ element: J_,
+ init: Q_,
+ insert_hydration: $_,
+ noop: Vh,
+ safe_not_equal: ev,
toggle_class: al
-} = window.__gradio__svelte__internal, { afterUpdate: ev, tick: tv } = window.__gradio__svelte__internal;
-function rv(n) {
+} = window.__gradio__svelte__internal, { afterUpdate: tv, tick: rv } = window.__gradio__svelte__internal;
+function nv(n) {
let e, t;
return {
c() {
- e = K_("span"), t = new V_(!1), this.h();
+ e = J_("span"), t = new G_(!1), this.h();
},
l(r) {
- e = Y_(r, "SPAN", { class: !0 });
- var a = X_(e);
- t = Z_(a, !1), a.forEach(Hh), this.h();
+ e = Z_(r, "SPAN", { class: !0 });
+ var a = Y_(e);
+ t = K_(a, !1), a.forEach(Uh), this.h();
},
h() {
- t.a = null, j_(e, "class", "md svelte-1m32c2s"), al(
+ t.a = null, W_(e, "class", "md svelte-1m32c2s"), al(
e,
"chatbot",
/*chatbot*/
@@ -23441,7 +23437,7 @@ function rv(n) {
);
},
m(r, a) {
- Q_(r, e, a), t.m(
+ $_(r, e, a), t.m(
/*html*/
n[3],
e
@@ -23466,17 +23462,17 @@ function rv(n) {
r[1]
);
},
- i: Uh,
- o: Uh,
+ i: Vh,
+ o: Vh,
d(r) {
- r && Hh(e), n[12](null);
+ r && Uh(e), n[12](null);
}
};
}
-function Vh(n) {
+function Gh(n) {
return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
-function nv(n, e, t) {
+function av(n, e, t) {
var r = this && this.__awaiter || function(S, T, C, F) {
function B(I) {
return I instanceof C ? I : new C(function(L) {
@@ -23484,28 +23480,28 @@ function nv(n, e, t) {
});
}
return new (C || (C = Promise))(function(I, L) {
- function q(H) {
+ function P(se) {
try {
- Y(F.next(H));
- } catch (Q) {
- L(Q);
+ O(F.next(se));
+ } catch (K) {
+ L(K);
}
}
- function J(H) {
+ function Z(se) {
try {
- Y(F.throw(H));
- } catch (Q) {
- L(Q);
+ O(F.throw(se));
+ } catch (K) {
+ L(K);
}
}
- function Y(H) {
- H.done ? I(H.value) : B(H.value).then(q, J);
+ function O(se) {
+ se.done ? I(se.value) : B(se.value).then(P, Z);
}
- Y((F = F.apply(S, T || [])).next());
+ O((F = F.apply(S, T || [])).next());
});
};
let { chatbot: a = !0 } = e, { message: i } = e, { sanitize_html: l = !0 } = e, { latex_delimiters: s = [] } = e, { render_markdown: o = !0 } = e, { line_breaks: u = !0 } = e, { header_links: c = !1 } = e, { root: d } = e, { allow_tags: h = !1 } = e, { theme_mode: p = "system" } = e, _, b;
- const D = P_({
+ const D = H_({
header_links: c,
line_breaks: u,
latex_delimiters: s || []
@@ -23513,7 +23509,7 @@ function nv(n, e, t) {
function y(S, T) {
if (T === !0) {
const C = /<\/?([a-zA-Z][a-zA-Z0-9-]*)([\s>])/g;
- return S.replace(C, (F, B, I) => U_.includes(B.toLowerCase()) ? F : F.replace(//g, ">"));
+ return S.replace(C, (F, B, I) => V_.includes(B.toLowerCase()) ? F : F.replace(//g, ">"));
}
if (Array.isArray(T)) {
const C = T.map((B) => ({
@@ -23532,22 +23528,22 @@ function nv(n, e, t) {
if (o) {
const C = [];
s.forEach((F, B) => {
- const I = Vh(F.left), L = Vh(F.right), q = new RegExp(`${I}([\\s\\S]+?)${L}`, "g");
- T = T.replace(q, (J, Y) => (C.push(J), `%%%LATEX_BLOCK_${C.length - 1}%%%`));
+ const I = Gh(F.left), L = Gh(F.right), P = new RegExp(`${I}([\\s\\S]+?)${L}`, "g");
+ T = T.replace(P, (Z, O) => (C.push(Z), `%%%LATEX_BLOCK_${C.length - 1}%%%`));
}), T = D.parse(T), T = T.replace(/%%%LATEX_BLOCK_(\d+)%%%/g, (F, B) => C[parseInt(B, 10)]);
}
- return h && (T = y(T, h)), l && Nc && (T = Nc(T, d)), T;
+ return h && (T = y(T, h)), l && Rc && (T = Rc(T, d)), T;
}
function w(S) {
return r(this, void 0, void 0, function* () {
- if (s.length > 0 && S && s.some((C) => S.includes(C.left) && S.includes(C.right)) && T6(_, {
+ if (s.length > 0 && S && s.some((C) => S.includes(C.left) && S.includes(C.right)) && C6(_, {
delimiters: s,
throwOnError: !1
}), _) {
const T = _.querySelectorAll(".mermaid");
if (T.length > 0) {
- yield tv();
- const { default: C } = yield import("./mermaid.core-C0Blj36u.js").then((F) => F.by);
+ yield rv();
+ const { default: C } = yield import("./mermaid.core-Cmyps_S7.js").then((F) => F.by);
C.initialize({
startOnLoad: !1,
theme: p === "dark" ? "dark" : "default",
@@ -23559,11 +23555,11 @@ function nv(n, e, t) {
}
});
}
- ev(() => r(void 0, void 0, void 0, function* () {
+ tv(() => r(void 0, void 0, void 0, function* () {
_ && document.body.contains(_) ? yield w(i) : console.error("Element is not in the DOM");
}));
function E(S) {
- W_[S ? "unshift" : "push"](() => {
+ X_[S ? "unshift" : "push"](() => {
_ = S, t(2, _);
});
}
@@ -23588,9 +23584,9 @@ function nv(n, e, t) {
E
];
}
-class av extends G_ {
+class iv extends j_ {
constructor(e) {
- super(), J_(this, e, nv, rv, $_, {
+ super(), Q_(this, e, av, nv, ev, {
chatbot: 0,
message: 4,
sanitize_html: 5,
@@ -23605,25 +23601,25 @@ class av extends G_ {
}
}
const {
- SvelteComponent: iv,
- attr: lv,
- children: sv,
- claim_component: ov,
- claim_element: uv,
- create_component: cv,
- destroy_component: fv,
- detach: Gh,
- element: hv,
- init: dv,
- insert_hydration: mv,
- mount_component: pv,
- safe_not_equal: gv,
- transition_in: _v,
- transition_out: vv
+ SvelteComponent: lv,
+ attr: sv,
+ children: ov,
+ claim_component: uv,
+ claim_element: cv,
+ create_component: fv,
+ destroy_component: hv,
+ detach: jh,
+ element: dv,
+ init: mv,
+ insert_hydration: pv,
+ mount_component: gv,
+ safe_not_equal: _v,
+ transition_in: vv,
+ transition_out: bv
} = window.__gradio__svelte__internal;
-function bv(n) {
+function wv(n) {
let e, t, r;
- return t = new av({
+ return t = new iv({
props: {
root: (
/*root*/
@@ -23637,18 +23633,18 @@ function bv(n) {
}
}), {
c() {
- e = hv("div"), cv(t.$$.fragment), this.h();
+ e = dv("div"), fv(t.$$.fragment), this.h();
},
l(a) {
- e = uv(a, "DIV", { class: !0 });
- var i = sv(e);
- ov(t.$$.fragment, i), i.forEach(Gh), this.h();
+ e = cv(a, "DIV", { class: !0 });
+ var i = ov(e);
+ uv(t.$$.fragment, i), i.forEach(jh), this.h();
},
h() {
- lv(e, "class", "svelte-17qq50w");
+ sv(e, "class", "svelte-17qq50w");
},
m(a, i) {
- mv(a, e, i), pv(t, e, null), r = !0;
+ pv(a, e, i), gv(t, e, null), r = !0;
},
p(a, [i]) {
const l = {};
@@ -23659,57 +23655,57 @@ function bv(n) {
a[0]), t.$set(l);
},
i(a) {
- r || (_v(t.$$.fragment, a), r = !0);
+ r || (vv(t.$$.fragment, a), r = !0);
},
o(a) {
- vv(t.$$.fragment, a), r = !1;
+ bv(t.$$.fragment, a), r = !1;
},
d(a) {
- a && Gh(e), fv(t);
+ a && jh(e), hv(t);
}
};
}
-function wv(n, e, t) {
+function yv(n, e, t) {
let { info: r } = e, { root: a } = e;
return n.$$set = (i) => {
"info" in i && t(0, r = i.info), "root" in i && t(1, a = i.root);
}, [r, a];
}
-class yv extends iv {
+class kv extends lv {
constructor(e) {
- super(), dv(this, e, wv, bv, gv, { info: 0, root: 1 });
+ super(), mv(this, e, yv, wv, _v, { info: 0, root: 1 });
}
}
const {
- SvelteComponent: kv,
+ SvelteComponent: Dv,
attr: il,
- check_outros: Dv,
- children: Av,
- claim_component: Ev,
- claim_element: Sv,
- claim_space: xv,
- create_component: Tv,
- create_slot: Cv,
- destroy_component: Fv,
+ check_outros: Av,
+ children: Ev,
+ claim_component: Sv,
+ claim_element: xv,
+ claim_space: Tv,
+ create_component: Cv,
+ create_slot: Fv,
+ destroy_component: Mv,
detach: ll,
- element: Mv,
- empty: jh,
- get_all_dirty_from_scope: zv,
- get_slot_changes: Bv,
- group_outros: Iv,
- init: Lv,
+ element: zv,
+ empty: Wh,
+ get_all_dirty_from_scope: Bv,
+ get_slot_changes: Iv,
+ group_outros: Lv,
+ init: Nv,
insert_hydration: Ro,
- mount_component: Nv,
- safe_not_equal: Rv,
- space: Ov,
+ mount_component: Rv,
+ safe_not_equal: Ov,
+ space: qv,
toggle_class: Kn,
transition_in: Na,
transition_out: kl,
- update_slot_base: qv
+ update_slot_base: Pv
} = window.__gradio__svelte__internal;
-function Wh(n) {
+function Xh(n) {
let e, t;
- return e = new yv({
+ return e = new kv({
props: {
root: (
/*root*/
@@ -23722,13 +23718,13 @@ function Wh(n) {
}
}), {
c() {
- Tv(e.$$.fragment);
+ Cv(e.$$.fragment);
},
l(r) {
- Ev(e.$$.fragment, r);
+ Sv(e.$$.fragment, r);
},
m(r, a) {
- Nv(e, r, a), t = !0;
+ Rv(e, r, a), t = !0;
},
p(r, a) {
const i = {};
@@ -23745,16 +23741,16 @@ function Wh(n) {
kl(e.$$.fragment, r), t = !1;
},
d(r) {
- Fv(e, r);
+ Mv(e, r);
}
};
}
-function Pv(n) {
+function Hv(n) {
let e, t, r, a, i;
const l = (
/*#slots*/
n[5].default
- ), s = Cv(
+ ), s = Fv(
l,
n,
/*$$scope*/
@@ -23763,20 +23759,20 @@ function Pv(n) {
);
let o = (
/*info*/
- n[1] && Wh(n)
+ n[1] && Xh(n)
);
return {
c() {
- e = Mv("span"), s && s.c(), r = Ov(), o && o.c(), a = jh(), this.h();
+ e = zv("span"), s && s.c(), r = qv(), o && o.c(), a = Wh(), this.h();
},
l(u) {
- e = Sv(u, "SPAN", {
+ e = xv(u, "SPAN", {
"data-testid": !0,
dir: !0,
class: !0
});
- var c = Av(e);
- s && s.l(c), c.forEach(ll), r = xv(u), o && o.l(u), a = jh(), this.h();
+ var c = Ev(e);
+ s && s.l(c), c.forEach(ll), r = Tv(u), o && o.l(u), a = Wh(), this.h();
},
h() {
il(e, "data-testid", "block-info"), il(e, "dir", t = /*rtl*/
@@ -23794,19 +23790,19 @@ function Pv(n) {
},
p(u, [c]) {
s && s.p && (!i || c & /*$$scope*/
- 16) && qv(
+ 16) && Pv(
s,
l,
u,
/*$$scope*/
u[4],
- i ? Bv(
+ i ? Iv(
l,
/*$$scope*/
u[4],
c,
null
- ) : zv(
+ ) : Bv(
/*$$scope*/
u[4]
),
@@ -23825,9 +23821,9 @@ function Pv(n) {
u[1] != null
), /*info*/
u[1] ? o ? (o.p(u, c), c & /*info*/
- 2 && Na(o, 1)) : (o = Wh(u), o.c(), Na(o, 1), o.m(a.parentNode, a)) : o && (Iv(), kl(o, 1, 1, () => {
+ 2 && Na(o, 1)) : (o = Xh(u), o.c(), Na(o, 1), o.m(a.parentNode, a)) : o && (Lv(), kl(o, 1, 1, () => {
o = null;
- }), Dv());
+ }), Av());
},
i(u) {
i || (Na(s, u), Na(o), i = !0);
@@ -23840,38 +23836,38 @@ function Pv(n) {
}
};
}
-function Hv(n, e, t) {
+function Uv(n, e, t) {
let { $$slots: r = {}, $$scope: a } = e, { show_label: i = !0 } = e, { info: l = void 0 } = e, { root: s } = e, { rtl: o = !1 } = e;
return n.$$set = (u) => {
"show_label" in u && t(0, i = u.show_label), "info" in u && t(1, l = u.info), "root" in u && t(2, s = u.root), "rtl" in u && t(3, o = u.rtl), "$$scope" in u && t(4, a = u.$$scope);
}, [i, l, s, o, a, r];
}
-class Uv extends kv {
+class Vv extends Dv {
constructor(e) {
- super(), Lv(this, e, Hv, Pv, Rv, { show_label: 0, info: 1, root: 2, rtl: 3 });
+ super(), Nv(this, e, Uv, Hv, Ov, { show_label: 0, info: 1, root: 2, rtl: 3 });
}
}
const {
- SvelteComponent: Vv,
- append_hydration: Gv,
- attr: v0,
- children: Xh,
- claim_svg_element: Yh,
+ SvelteComponent: Gv,
+ append_hydration: jv,
+ attr: _0,
+ children: Yh,
+ claim_svg_element: Zh,
detach: Oo,
- init: jv,
- insert_hydration: Wv,
+ init: Wv,
+ insert_hydration: Xv,
noop: qo,
- safe_not_equal: Xv,
- svg_element: Zh
+ safe_not_equal: Yv,
+ svg_element: Kh
} = window.__gradio__svelte__internal;
-function Yv(n) {
+function Zv(n) {
let e, t;
return {
c() {
- e = Zh("svg"), t = Zh("path"), this.h();
+ e = Kh("svg"), t = Kh("path"), this.h();
},
l(r) {
- e = Yh(r, "svg", {
+ e = Zh(r, "svg", {
width: !0,
height: !0,
"stroke-width": !0,
@@ -23880,20 +23876,20 @@ function Yv(n) {
xmlns: !0,
color: !0
});
- var a = Xh(e);
- t = Yh(a, "path", {
+ var a = Yh(e);
+ t = Zh(a, "path", {
d: !0,
stroke: !0,
"stroke-width": !0,
"stroke-linecap": !0,
"stroke-linejoin": !0
- }), Xh(t).forEach(Oo), a.forEach(Oo), this.h();
+ }), Yh(t).forEach(Oo), a.forEach(Oo), this.h();
},
h() {
- v0(t, "d", "M5 13L9 17L19 7"), v0(t, "stroke", "currentColor"), v0(t, "stroke-width", "1.5"), v0(t, "stroke-linecap", "round"), v0(t, "stroke-linejoin", "round"), v0(e, "width", "100%"), v0(e, "height", "100%"), v0(e, "stroke-width", "1.5"), v0(e, "viewBox", "0 0 24 24"), v0(e, "fill", "none"), v0(e, "xmlns", "http://www.w3.org/2000/svg"), v0(e, "color", "currentColor");
+ _0(t, "d", "M5 13L9 17L19 7"), _0(t, "stroke", "currentColor"), _0(t, "stroke-width", "1.5"), _0(t, "stroke-linecap", "round"), _0(t, "stroke-linejoin", "round"), _0(e, "width", "100%"), _0(e, "height", "100%"), _0(e, "stroke-width", "1.5"), _0(e, "viewBox", "0 0 24 24"), _0(e, "fill", "none"), _0(e, "xmlns", "http://www.w3.org/2000/svg"), _0(e, "color", "currentColor");
},
m(r, a) {
- Wv(r, e, a), Gv(e, t);
+ Xv(r, e, a), jv(e, t);
},
p: qo,
i: qo,
@@ -23903,25 +23899,25 @@ function Yv(n) {
}
};
}
-class Zv extends Vv {
+class Kv extends Gv {
constructor(e) {
- super(), jv(this, e, null, Yv, Xv, {});
+ super(), Wv(this, e, null, Zv, Yv, {});
}
}
const {
- SvelteComponent: Kv,
- append_hydration: Kh,
- attr: $0,
+ SvelteComponent: Jv,
+ append_hydration: Jh,
+ attr: J0,
children: Po,
claim_svg_element: Ho,
detach: sl,
- init: Jv,
- insert_hydration: Qv,
+ init: Qv,
+ insert_hydration: $v,
noop: Uo,
- safe_not_equal: $v,
+ safe_not_equal: eb,
svg_element: Vo
} = window.__gradio__svelte__internal;
-function eb(n) {
+function tb(n) {
let e, t, r;
return {
c() {
@@ -23940,10 +23936,10 @@ function eb(n) {
t = Ho(i, "path", { fill: !0, d: !0 }), Po(t).forEach(sl), r = Ho(i, "path", { fill: !0, d: !0 }), Po(r).forEach(sl), i.forEach(sl), this.h();
},
h() {
- $0(t, "fill", "currentColor"), $0(t, "d", "M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"), $0(r, "fill", "currentColor"), $0(r, "d", "M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"), $0(e, "xmlns", "http://www.w3.org/2000/svg"), $0(e, "viewBox", "0 0 33 33"), $0(e, "color", "currentColor"), $0(e, "aria-hidden", "true"), $0(e, "width", "100%"), $0(e, "height", "100%");
+ J0(t, "fill", "currentColor"), J0(t, "d", "M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"), J0(r, "fill", "currentColor"), J0(r, "d", "M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"), J0(e, "xmlns", "http://www.w3.org/2000/svg"), J0(e, "viewBox", "0 0 33 33"), J0(e, "color", "currentColor"), J0(e, "aria-hidden", "true"), J0(e, "width", "100%"), J0(e, "height", "100%");
},
m(a, i) {
- Qv(a, e, i), Kh(e, t), Kh(e, r);
+ $v(a, e, i), Jh(e, t), Jh(e, r);
},
p: Uo,
i: Uo,
@@ -23953,25 +23949,25 @@ function eb(n) {
}
};
}
-class tb extends Kv {
+class rb extends Jv {
constructor(e) {
- super(), Jv(this, e, null, eb, $v, {});
+ super(), Qv(this, e, null, tb, eb, {});
}
}
const {
- SvelteComponent: rb,
+ SvelteComponent: nb,
append_hydration: ol,
- attr: u0,
+ attr: o0,
children: Ma,
claim_svg_element: za,
detach: Jn,
- init: nb,
- insert_hydration: ab,
+ init: ab,
+ insert_hydration: ib,
noop: Go,
- safe_not_equal: ib,
+ safe_not_equal: lb,
svg_element: Ba
} = window.__gradio__svelte__internal;
-function lb(n) {
+function sb(n) {
let e, t, r, a, i;
return {
c() {
@@ -23995,10 +23991,10 @@ function lb(n) {
i = za(o, "path", { d: !0, fill: !0 }), Ma(i).forEach(Jn), o.forEach(Jn), s.forEach(Jn), this.h();
},
h() {
- u0(t, "id", "SVGRepo_bgCarrier"), u0(t, "stroke-width", "0"), u0(r, "id", "SVGRepo_tracerCarrier"), u0(r, "stroke-linecap", "round"), u0(r, "stroke-linejoin", "round"), u0(i, "d", "M19.1168 12.1484C19.474 12.3581 19.9336 12.2384 20.1432 11.8811C20.3528 11.5238 20.2331 11.0643 19.8758 10.8547L19.1168 12.1484ZM6.94331 4.13656L6.55624 4.77902L6.56378 4.78344L6.94331 4.13656ZM5.92408 4.1598L5.50816 3.5357L5.50816 3.5357L5.92408 4.1598ZM5.51031 5.09156L4.76841 5.20151C4.77575 5.25101 4.78802 5.29965 4.80505 5.34671L5.51031 5.09156ZM7.12405 11.7567C7.26496 12.1462 7.69495 12.3477 8.08446 12.2068C8.47397 12.0659 8.67549 11.6359 8.53458 11.2464L7.12405 11.7567ZM19.8758 12.1484C20.2331 11.9388 20.3528 11.4793 20.1432 11.122C19.9336 10.7648 19.474 10.6451 19.1168 10.8547L19.8758 12.1484ZM6.94331 18.8666L6.56375 18.2196L6.55627 18.2241L6.94331 18.8666ZM5.92408 18.8433L5.50815 19.4674H5.50815L5.92408 18.8433ZM5.51031 17.9116L4.80505 17.6564C4.78802 17.7035 4.77575 17.7521 4.76841 17.8016L5.51031 17.9116ZM8.53458 11.7567C8.67549 11.3672 8.47397 10.9372 8.08446 10.7963C7.69495 10.6554 7.26496 10.8569 7.12405 11.2464L8.53458 11.7567ZM19.4963 12.2516C19.9105 12.2516 20.2463 11.9158 20.2463 11.5016C20.2463 11.0873 19.9105 10.7516 19.4963 10.7516V12.2516ZM7.82931 10.7516C7.4151 10.7516 7.07931 11.0873 7.07931 11.5016C7.07931 11.9158 7.4151 12.2516 7.82931 12.2516V10.7516ZM19.8758 10.8547L7.32284 3.48968L6.56378 4.78344L19.1168 12.1484L19.8758 10.8547ZM7.33035 3.49414C6.76609 3.15419 6.05633 3.17038 5.50816 3.5357L6.34 4.78391C6.40506 4.74055 6.4893 4.73863 6.55627 4.77898L7.33035 3.49414ZM5.50816 3.5357C4.95998 3.90102 4.67184 4.54987 4.76841 5.20151L6.25221 4.98161C6.24075 4.90427 6.27494 4.82727 6.34 4.78391L5.50816 3.5357ZM4.80505 5.34671L7.12405 11.7567L8.53458 11.2464L6.21558 4.83641L4.80505 5.34671ZM19.1168 10.8547L6.56378 18.2197L7.32284 19.5134L19.8758 12.1484L19.1168 10.8547ZM6.55627 18.2241C6.4893 18.2645 6.40506 18.2626 6.34 18.2192L5.50815 19.4674C6.05633 19.8327 6.76609 19.8489 7.33035 19.509L6.55627 18.2241ZM6.34 18.2192C6.27494 18.1759 6.24075 18.0988 6.25221 18.0215L4.76841 17.8016C4.67184 18.4532 4.95998 19.1021 5.50815 19.4674L6.34 18.2192ZM6.21558 18.1667L8.53458 11.7567L7.12405 11.2464L4.80505 17.6564L6.21558 18.1667ZM19.4963 10.7516H7.82931V12.2516H19.4963V10.7516Z"), u0(i, "fill", "currentColor"), u0(a, "id", "SVGRepo_iconCarrier"), u0(e, "viewBox", "0 0 22 24"), u0(e, "width", "100%"), u0(e, "height", "100%"), u0(e, "fill", "none"), u0(e, "xmlns", "http://www.w3.org/2000/svg");
+ o0(t, "id", "SVGRepo_bgCarrier"), o0(t, "stroke-width", "0"), o0(r, "id", "SVGRepo_tracerCarrier"), o0(r, "stroke-linecap", "round"), o0(r, "stroke-linejoin", "round"), o0(i, "d", "M19.1168 12.1484C19.474 12.3581 19.9336 12.2384 20.1432 11.8811C20.3528 11.5238 20.2331 11.0643 19.8758 10.8547L19.1168 12.1484ZM6.94331 4.13656L6.55624 4.77902L6.56378 4.78344L6.94331 4.13656ZM5.92408 4.1598L5.50816 3.5357L5.50816 3.5357L5.92408 4.1598ZM5.51031 5.09156L4.76841 5.20151C4.77575 5.25101 4.78802 5.29965 4.80505 5.34671L5.51031 5.09156ZM7.12405 11.7567C7.26496 12.1462 7.69495 12.3477 8.08446 12.2068C8.47397 12.0659 8.67549 11.6359 8.53458 11.2464L7.12405 11.7567ZM19.8758 12.1484C20.2331 11.9388 20.3528 11.4793 20.1432 11.122C19.9336 10.7648 19.474 10.6451 19.1168 10.8547L19.8758 12.1484ZM6.94331 18.8666L6.56375 18.2196L6.55627 18.2241L6.94331 18.8666ZM5.92408 18.8433L5.50815 19.4674H5.50815L5.92408 18.8433ZM5.51031 17.9116L4.80505 17.6564C4.78802 17.7035 4.77575 17.7521 4.76841 17.8016L5.51031 17.9116ZM8.53458 11.7567C8.67549 11.3672 8.47397 10.9372 8.08446 10.7963C7.69495 10.6554 7.26496 10.8569 7.12405 11.2464L8.53458 11.7567ZM19.4963 12.2516C19.9105 12.2516 20.2463 11.9158 20.2463 11.5016C20.2463 11.0873 19.9105 10.7516 19.4963 10.7516V12.2516ZM7.82931 10.7516C7.4151 10.7516 7.07931 11.0873 7.07931 11.5016C7.07931 11.9158 7.4151 12.2516 7.82931 12.2516V10.7516ZM19.8758 10.8547L7.32284 3.48968L6.56378 4.78344L19.1168 12.1484L19.8758 10.8547ZM7.33035 3.49414C6.76609 3.15419 6.05633 3.17038 5.50816 3.5357L6.34 4.78391C6.40506 4.74055 6.4893 4.73863 6.55627 4.77898L7.33035 3.49414ZM5.50816 3.5357C4.95998 3.90102 4.67184 4.54987 4.76841 5.20151L6.25221 4.98161C6.24075 4.90427 6.27494 4.82727 6.34 4.78391L5.50816 3.5357ZM4.80505 5.34671L7.12405 11.7567L8.53458 11.2464L6.21558 4.83641L4.80505 5.34671ZM19.1168 10.8547L6.56378 18.2197L7.32284 19.5134L19.8758 12.1484L19.1168 10.8547ZM6.55627 18.2241C6.4893 18.2645 6.40506 18.2626 6.34 18.2192L5.50815 19.4674C6.05633 19.8327 6.76609 19.8489 7.33035 19.509L6.55627 18.2241ZM6.34 18.2192C6.27494 18.1759 6.24075 18.0988 6.25221 18.0215L4.76841 17.8016C4.67184 18.4532 4.95998 19.1021 5.50815 19.4674L6.34 18.2192ZM6.21558 18.1667L8.53458 11.7567L7.12405 11.2464L4.80505 17.6564L6.21558 18.1667ZM19.4963 10.7516H7.82931V12.2516H19.4963V10.7516Z"), o0(i, "fill", "currentColor"), o0(a, "id", "SVGRepo_iconCarrier"), o0(e, "viewBox", "0 0 22 24"), o0(e, "width", "100%"), o0(e, "height", "100%"), o0(e, "fill", "none"), o0(e, "xmlns", "http://www.w3.org/2000/svg");
},
m(l, s) {
- ab(l, e, s), ol(e, t), ol(e, r), ol(e, a), ol(a, i);
+ ib(l, e, s), ol(e, t), ol(e, r), ol(e, a), ol(a, i);
},
p: Go,
i: Go,
@@ -24008,32 +24004,32 @@ function lb(n) {
}
};
}
-class sb extends rb {
+class ob extends nb {
constructor(e) {
- super(), nb(this, e, null, lb, ib, {});
+ super(), ab(this, e, null, sb, lb, {});
}
}
const {
- SvelteComponent: ob,
- append_hydration: ub,
- attr: Dt,
- children: Jh,
- claim_svg_element: Qh,
+ SvelteComponent: ub,
+ append_hydration: cb,
+ attr: yt,
+ children: Qh,
+ claim_svg_element: $h,
detach: jo,
- init: cb,
- insert_hydration: fb,
- noop: $h,
- safe_not_equal: hb,
- svg_element: ed
+ init: fb,
+ insert_hydration: hb,
+ noop: ed,
+ safe_not_equal: db,
+ svg_element: td
} = window.__gradio__svelte__internal;
-function db(n) {
+function mb(n) {
let e, t, r;
return {
c() {
- e = ed("svg"), t = ed("rect"), this.h();
+ e = td("svg"), t = td("rect"), this.h();
},
l(a) {
- e = Qh(a, "svg", {
+ e = $h(a, "svg", {
xmlns: !0,
width: !0,
height: !0,
@@ -24045,58 +24041,58 @@ function db(n) {
"stroke-linejoin": !0,
class: !0
});
- var i = Jh(e);
- t = Qh(i, "rect", {
+ var i = Qh(e);
+ t = $h(i, "rect", {
x: !0,
y: !0,
width: !0,
height: !0,
rx: !0,
ry: !0
- }), Jh(t).forEach(jo), i.forEach(jo), this.h();
+ }), Qh(t).forEach(jo), i.forEach(jo), this.h();
},
h() {
- Dt(t, "x", "3"), Dt(t, "y", "3"), Dt(t, "width", "18"), Dt(t, "height", "18"), Dt(t, "rx", "2"), Dt(t, "ry", "2"), Dt(e, "xmlns", "http://www.w3.org/2000/svg"), Dt(e, "width", "100%"), Dt(e, "height", "100%"), Dt(e, "viewBox", "0 0 24 24"), Dt(
+ yt(t, "x", "3"), yt(t, "y", "3"), yt(t, "width", "18"), yt(t, "height", "18"), yt(t, "rx", "2"), yt(t, "ry", "2"), yt(e, "xmlns", "http://www.w3.org/2000/svg"), yt(e, "width", "100%"), yt(e, "height", "100%"), yt(e, "viewBox", "0 0 24 24"), yt(
e,
"fill",
/*fill*/
n[0]
- ), Dt(e, "stroke", "currentColor"), Dt(e, "stroke-width", r = `${/*stroke_width*/
- n[1]}`), Dt(e, "stroke-linecap", "round"), Dt(e, "stroke-linejoin", "round"), Dt(e, "class", "feather feather-square");
+ ), yt(e, "stroke", "currentColor"), yt(e, "stroke-width", r = `${/*stroke_width*/
+ n[1]}`), yt(e, "stroke-linecap", "round"), yt(e, "stroke-linejoin", "round"), yt(e, "class", "feather feather-square");
},
m(a, i) {
- fb(a, e, i), ub(e, t);
+ hb(a, e, i), cb(e, t);
},
p(a, [i]) {
i & /*fill*/
- 1 && Dt(
+ 1 && yt(
e,
"fill",
/*fill*/
a[0]
), i & /*stroke_width*/
2 && r !== (r = `${/*stroke_width*/
- a[1]}`) && Dt(e, "stroke-width", r);
+ a[1]}`) && yt(e, "stroke-width", r);
},
- i: $h,
- o: $h,
+ i: ed,
+ o: ed,
d(a) {
a && jo(e);
}
};
}
-function mb(n, e, t) {
+function pb(n, e, t) {
let { fill: r = "currentColor" } = e, { stroke_width: a = 1.5 } = e;
return n.$$set = (i) => {
"fill" in i && t(0, r = i.fill), "stroke_width" in i && t(1, a = i.stroke_width);
}, [r, a];
}
-class pb extends ob {
+class gb extends ub {
constructor(e) {
- super(), cb(this, e, mb, db, hb, { fill: 0, stroke_width: 1 });
+ super(), fb(this, e, pb, mb, db, { fill: 0, stroke_width: 1 });
}
}
-const gb = [
+const _b = [
{ color: "red", primary: 600, secondary: 100 },
{ color: "green", primary: 600, secondary: 100 },
{ color: "blue", primary: 600, secondary: 100 },
@@ -24107,7 +24103,7 @@ const gb = [
{ color: "cyan", primary: 600, secondary: 100 },
{ color: "lime", primary: 500, secondary: 100 },
{ color: "pink", primary: 600, secondary: 100 }
-], td = {
+], rd = {
inherit: "inherit",
current: "currentColor",
transparent: "transparent",
@@ -24400,56 +24396,56 @@ const gb = [
950: "#4c0519"
}
};
-gb.reduce(
+_b.reduce(
(n, { color: e, primary: t, secondary: r }) => ({
...n,
[e]: {
- primary: td[e][t],
- secondary: td[e][r]
+ primary: rd[e][t],
+ secondary: rd[e][r]
}
}),
{}
);
const {
- SvelteComponent: _b,
- action_destroyer: vb,
- add_render_callback: bb,
+ SvelteComponent: vb,
+ action_destroyer: bb,
+ add_render_callback: wb,
append_hydration: Ia,
- attr: se,
+ attr: le,
binding_callbacks: ul,
bubble: Jr,
check_outros: ia,
children: Mn,
claim_component: fi,
- claim_element: dr,
+ claim_element: fr,
claim_space: cl,
- claim_text: l1,
+ claim_text: s1,
create_component: hi,
- create_in_transition: wb,
+ create_in_transition: yb,
destroy_component: di,
- detach: nt,
- element: mr,
+ detach: rt,
+ element: hr,
empty: Wl,
group_outros: la,
- init: yb,
+ init: kb,
insert_hydration: i0,
- is_function: kb,
- listen: Ue,
+ is_function: Db,
+ listen: Ve,
mount_component: mi,
noop: fn,
run_all: hs,
- safe_not_equal: Db,
- set_data: s1,
+ safe_not_equal: Ab,
+ set_data: o1,
set_input_value: hn,
space: fl,
- text: o1,
+ text: u1,
toggle_class: Fr,
- transition_in: ut,
- transition_out: Mt
-} = window.__gradio__svelte__internal, { beforeUpdate: Ab, afterUpdate: Eb, createEventDispatcher: Sb, tick: rd } = window.__gradio__svelte__internal;
-function nd(n) {
+ transition_in: ot,
+ transition_out: Ft
+} = window.__gradio__svelte__internal, { beforeUpdate: Eb, afterUpdate: Sb, createEventDispatcher: xb, tick: nd } = window.__gradio__svelte__internal;
+function ad(n) {
let e, t, r, a;
- const i = [Tb, xb], l = [];
+ const i = [Cb, Tb], l = [];
function s(o, u) {
return (
/*copied*/
@@ -24468,41 +24464,41 @@ function nd(n) {
},
p(o, u) {
let c = e;
- e = s(o), e === c ? l[e].p(o, u) : (la(), Mt(l[c], 1, 1, () => {
+ e = s(o), e === c ? l[e].p(o, u) : (la(), Ft(l[c], 1, 1, () => {
l[c] = null;
- }), ia(), t = l[e], t ? t.p(o, u) : (t = l[e] = i[e](o), t.c()), ut(t, 1), t.m(r.parentNode, r));
+ }), ia(), t = l[e], t ? t.p(o, u) : (t = l[e] = i[e](o), t.c()), ot(t, 1), t.m(r.parentNode, r));
},
i(o) {
- a || (ut(t), a = !0);
+ a || (ot(t), a = !0);
},
o(o) {
- Mt(t), a = !1;
+ Ft(t), a = !1;
},
d(o) {
- o && nt(r), l[e].d(o);
+ o && rt(r), l[e].d(o);
}
};
}
-function xb(n) {
+function Tb(n) {
let e, t, r, a, i;
- return t = new tb({}), {
+ return t = new rb({}), {
c() {
- e = mr("button"), hi(t.$$.fragment), this.h();
+ e = hr("button"), hi(t.$$.fragment), this.h();
},
l(l) {
- e = dr(l, "BUTTON", {
+ e = fr(l, "BUTTON", {
class: !0,
"aria-label": !0,
"aria-roledescription": !0
});
var s = Mn(e);
- fi(t.$$.fragment, s), s.forEach(nt), this.h();
+ fi(t.$$.fragment, s), s.forEach(rt), this.h();
},
h() {
- se(e, "class", "copy-button svelte-bj4kw9"), se(e, "aria-label", "Copy"), se(e, "aria-roledescription", "Copy text");
+ le(e, "class", "copy-button svelte-bj4kw9"), le(e, "aria-label", "Copy"), le(e, "aria-roledescription", "Copy text");
},
m(l, s) {
- i0(l, e, s), mi(t, e, null), r = !0, a || (i = Ue(
+ i0(l, e, s), mi(t, e, null), r = !0, a || (i = Ve(
e,
"click",
/*handle_copy*/
@@ -24511,62 +24507,62 @@ function xb(n) {
},
p: fn,
i(l) {
- r || (ut(t.$$.fragment, l), r = !0);
+ r || (ot(t.$$.fragment, l), r = !0);
},
o(l) {
- Mt(t.$$.fragment, l), r = !1;
+ Ft(t.$$.fragment, l), r = !1;
},
d(l) {
- l && nt(e), di(t), a = !1, i();
+ l && rt(e), di(t), a = !1, i();
}
};
}
-function Tb(n) {
+function Cb(n) {
let e, t, r, a;
- return t = new Zv({}), {
+ return t = new Kv({}), {
c() {
- e = mr("button"), hi(t.$$.fragment), this.h();
+ e = hr("button"), hi(t.$$.fragment), this.h();
},
l(i) {
- e = dr(i, "BUTTON", {
+ e = fr(i, "BUTTON", {
class: !0,
"aria-label": !0,
"aria-roledescription": !0
});
var l = Mn(e);
- fi(t.$$.fragment, l), l.forEach(nt), this.h();
+ fi(t.$$.fragment, l), l.forEach(rt), this.h();
},
h() {
- se(e, "class", "copy-button svelte-bj4kw9"), se(e, "aria-label", "Copied"), se(e, "aria-roledescription", "Text copied");
+ le(e, "class", "copy-button svelte-bj4kw9"), le(e, "aria-label", "Copied"), le(e, "aria-roledescription", "Text copied");
},
m(i, l) {
i0(i, e, l), mi(t, e, null), a = !0;
},
p: fn,
i(i) {
- a || (ut(t.$$.fragment, i), i && (r || bb(() => {
- r = wb(e, $u, { duration: 300 }), r.start();
+ a || (ot(t.$$.fragment, i), i && (r || wb(() => {
+ r = yb(e, e1, { duration: 300 }), r.start();
})), a = !0);
},
o(i) {
- Mt(t.$$.fragment, i), a = !1;
+ Ft(t.$$.fragment, i), a = !1;
},
d(i) {
- i && nt(e), di(t);
+ i && rt(e), di(t);
}
};
}
-function Cb(n) {
+function Fb(n) {
let e;
return {
c() {
- e = o1(
+ e = u1(
/*label*/
n[3]
);
},
l(t) {
- e = l1(
+ e = s1(
t,
/*label*/
n[3]
@@ -24577,25 +24573,25 @@ function Cb(n) {
},
p(t, r) {
r[0] & /*label*/
- 8 && s1(
+ 8 && o1(
e,
/*label*/
t[3]
);
},
d(t) {
- t && nt(e);
+ t && rt(e);
}
};
}
-function Fb(n) {
+function Mb(n) {
let e, t, r, a, i, l;
return {
c() {
- e = mr("textarea"), this.h();
+ e = hr("textarea"), this.h();
},
l(s) {
- e = dr(s, "TEXTAREA", {
+ e = fr(s, "TEXTAREA", {
"data-testid": !0,
class: !0,
dir: !0,
@@ -24603,28 +24599,28 @@ function Fb(n) {
rows: !0,
maxlength: !0,
style: !0
- }), Mn(e).forEach(nt), this.h();
+ }), Mn(e).forEach(rt), this.h();
},
h() {
- se(e, "data-testid", "textbox"), se(e, "class", "scroll-hide svelte-bj4kw9"), se(e, "dir", t = /*rtl*/
- n[12] ? "rtl" : "ltr"), se(
+ le(e, "data-testid", "textbox"), le(e, "class", "scroll-hide svelte-bj4kw9"), le(e, "dir", t = /*rtl*/
+ n[12] ? "rtl" : "ltr"), le(
e,
"placeholder",
/*placeholder*/
n[2]
- ), se(
+ ), le(
e,
"rows",
/*lines*/
n[1]
), e.disabled = /*disabled*/
n[5], e.autofocus = /*autofocus*/
- n[13], se(
+ n[13], le(
e,
"maxlength",
/*max_length*/
n[15]
- ), se(e, "style", r = /*text_align*/
+ ), le(e, "style", r = /*text_align*/
n[14] ? "text-align: " + /*text_align*/
n[14] : ""), Fr(e, "no-label", !/*show_label*/
n[6] && /*submit_btn*/
@@ -24638,44 +24634,44 @@ function Fb(n) {
n[0]
), n[46](e), /*autofocus*/
n[13] && e.focus(), i || (l = [
- vb(a = /*text_area_resize*/
+ bb(a = /*text_area_resize*/
n[27].call(
null,
e,
/*value*/
n[0]
)),
- Ue(
+ Ve(
e,
"input",
/*textarea_input_handler*/
n[45]
),
- Ue(
+ Ve(
e,
"keypress",
/*handle_keypress*/
n[23]
),
- Ue(
+ Ve(
e,
"blur",
/*blur_handler_3*/
n[37]
),
- Ue(
+ Ve(
e,
"select",
/*handle_select*/
n[22]
),
- Ue(
+ Ve(
e,
"focus",
/*focus_handler_3*/
n[38]
),
- Ue(
+ Ve(
e,
"scroll",
/*handle_scroll*/
@@ -24686,14 +24682,14 @@ function Fb(n) {
p(s, o) {
o[0] & /*rtl*/
4096 && t !== (t = /*rtl*/
- s[12] ? "rtl" : "ltr") && se(e, "dir", t), o[0] & /*placeholder*/
- 4 && se(
+ s[12] ? "rtl" : "ltr") && le(e, "dir", t), o[0] & /*placeholder*/
+ 4 && le(
e,
"placeholder",
/*placeholder*/
s[2]
), o[0] & /*lines*/
- 2 && se(
+ 2 && le(
e,
"rows",
/*lines*/
@@ -24703,7 +24699,7 @@ function Fb(n) {
s[5]), o[0] & /*autofocus*/
8192 && (e.autofocus = /*autofocus*/
s[13]), o[0] & /*max_length*/
- 32768 && se(
+ 32768 && le(
e,
"maxlength",
/*max_length*/
@@ -24711,7 +24707,7 @@ function Fb(n) {
), o[0] & /*text_align*/
16384 && r !== (r = /*text_align*/
s[14] ? "text-align: " + /*text_align*/
- s[14] : "") && se(e, "style", r), a && kb(a.update) && o[0] & /*value*/
+ s[14] : "") && le(e, "style", r), a && Db(a.update) && o[0] & /*value*/
1 && a.update.call(
null,
/*value*/
@@ -24728,25 +24724,25 @@ function Fb(n) {
s[11]));
},
d(s) {
- s && nt(e), n[46](null), i = !1, hs(l);
+ s && rt(e), n[46](null), i = !1, hs(l);
}
};
}
-function Mb(n) {
+function zb(n) {
let e;
function t(i, l) {
if (
/*type*/
i[8] === "text"
- ) return Ib;
+ ) return Lb;
if (
/*type*/
i[8] === "password"
- ) return Bb;
+ ) return Ib;
if (
/*type*/
i[8] === "email"
- ) return zb;
+ ) return Bb;
}
let r = t(n), a = r && r(n);
return {
@@ -24763,18 +24759,18 @@ function Mb(n) {
r === (r = t(i)) && a ? a.p(i, l) : (a && a.d(1), a = r && r(i), a && (a.c(), a.m(e.parentNode, e)));
},
d(i) {
- i && nt(e), a && a.d(i);
+ i && rt(e), a && a.d(i);
}
};
}
-function zb(n) {
+function Bb(n) {
let e, t, r;
return {
c() {
- e = mr("input"), this.h();
+ e = hr("input"), this.h();
},
l(a) {
- e = dr(a, "INPUT", {
+ e = fr(a, "INPUT", {
"data-testid": !0,
type: !0,
class: !0,
@@ -24784,19 +24780,19 @@ function zb(n) {
}), this.h();
},
h() {
- se(e, "data-testid", "textbox"), se(e, "type", "email"), se(e, "class", "scroll-hide svelte-bj4kw9"), se(
+ le(e, "data-testid", "textbox"), le(e, "type", "email"), le(e, "class", "scroll-hide svelte-bj4kw9"), le(
e,
"placeholder",
/*placeholder*/
n[2]
), e.disabled = /*disabled*/
n[5], e.autofocus = /*autofocus*/
- n[13], se(
+ n[13], le(
e,
"maxlength",
/*max_length*/
n[15]
- ), se(e, "autocomplete", "email");
+ ), le(e, "autocomplete", "email");
},
m(a, i) {
i0(a, e, i), hn(
@@ -24805,31 +24801,31 @@ function zb(n) {
n[0]
), n[44](e), /*autofocus*/
n[13] && e.focus(), t || (r = [
- Ue(
+ Ve(
e,
"input",
/*input_input_handler_2*/
n[43]
),
- Ue(
+ Ve(
e,
"keypress",
/*handle_keypress*/
n[23]
),
- Ue(
+ Ve(
e,
"blur",
/*blur_handler_2*/
n[35]
),
- Ue(
+ Ve(
e,
"select",
/*handle_select*/
n[22]
),
- Ue(
+ Ve(
e,
"focus",
/*focus_handler_2*/
@@ -24839,7 +24835,7 @@ function zb(n) {
},
p(a, i) {
i[0] & /*placeholder*/
- 4 && se(
+ 4 && le(
e,
"placeholder",
/*placeholder*/
@@ -24849,7 +24845,7 @@ function zb(n) {
a[5]), i[0] & /*autofocus*/
8192 && (e.autofocus = /*autofocus*/
a[13]), i[0] & /*max_length*/
- 32768 && se(
+ 32768 && le(
e,
"maxlength",
/*max_length*/
@@ -24863,18 +24859,18 @@ function zb(n) {
);
},
d(a) {
- a && nt(e), n[44](null), t = !1, hs(r);
+ a && rt(e), n[44](null), t = !1, hs(r);
}
};
}
-function Bb(n) {
+function Ib(n) {
let e, t, r;
return {
c() {
- e = mr("input"), this.h();
+ e = hr("input"), this.h();
},
l(a) {
- e = dr(a, "INPUT", {
+ e = fr(a, "INPUT", {
"data-testid": !0,
type: !0,
class: !0,
@@ -24884,19 +24880,19 @@ function Bb(n) {
}), this.h();
},
h() {
- se(e, "data-testid", "password"), se(e, "type", "password"), se(e, "class", "scroll-hide svelte-bj4kw9"), se(
+ le(e, "data-testid", "password"), le(e, "type", "password"), le(e, "class", "scroll-hide svelte-bj4kw9"), le(
e,
"placeholder",
/*placeholder*/
n[2]
), e.disabled = /*disabled*/
n[5], e.autofocus = /*autofocus*/
- n[13], se(
+ n[13], le(
e,
"maxlength",
/*max_length*/
n[15]
- ), se(e, "autocomplete", "");
+ ), le(e, "autocomplete", "");
},
m(a, i) {
i0(a, e, i), hn(
@@ -24905,31 +24901,31 @@ function Bb(n) {
n[0]
), n[42](e), /*autofocus*/
n[13] && e.focus(), t || (r = [
- Ue(
+ Ve(
e,
"input",
/*input_input_handler_1*/
n[41]
),
- Ue(
+ Ve(
e,
"keypress",
/*handle_keypress*/
n[23]
),
- Ue(
+ Ve(
e,
"blur",
/*blur_handler_1*/
n[33]
),
- Ue(
+ Ve(
e,
"select",
/*handle_select*/
n[22]
),
- Ue(
+ Ve(
e,
"focus",
/*focus_handler_1*/
@@ -24939,7 +24935,7 @@ function Bb(n) {
},
p(a, i) {
i[0] & /*placeholder*/
- 4 && se(
+ 4 && le(
e,
"placeholder",
/*placeholder*/
@@ -24949,7 +24945,7 @@ function Bb(n) {
a[5]), i[0] & /*autofocus*/
8192 && (e.autofocus = /*autofocus*/
a[13]), i[0] & /*max_length*/
- 32768 && se(
+ 32768 && le(
e,
"maxlength",
/*max_length*/
@@ -24963,18 +24959,18 @@ function Bb(n) {
);
},
d(a) {
- a && nt(e), n[42](null), t = !1, hs(r);
+ a && rt(e), n[42](null), t = !1, hs(r);
}
};
}
-function Ib(n) {
+function Lb(n) {
let e, t, r, a, i;
return {
c() {
- e = mr("input"), this.h();
+ e = hr("input"), this.h();
},
l(l) {
- e = dr(l, "INPUT", {
+ e = fr(l, "INPUT", {
"data-testid": !0,
type: !0,
class: !0,
@@ -24985,20 +24981,20 @@ function Ib(n) {
}), this.h();
},
h() {
- se(e, "data-testid", "textbox"), se(e, "type", "text"), se(e, "class", "scroll-hide svelte-bj4kw9"), se(e, "dir", t = /*rtl*/
- n[12] ? "rtl" : "ltr"), se(
+ le(e, "data-testid", "textbox"), le(e, "type", "text"), le(e, "class", "scroll-hide svelte-bj4kw9"), le(e, "dir", t = /*rtl*/
+ n[12] ? "rtl" : "ltr"), le(
e,
"placeholder",
/*placeholder*/
n[2]
), e.disabled = /*disabled*/
n[5], e.autofocus = /*autofocus*/
- n[13], se(
+ n[13], le(
e,
"maxlength",
/*max_length*/
n[15]
- ), se(e, "style", r = /*text_align*/
+ ), le(e, "style", r = /*text_align*/
n[14] ? "text-align: " + /*text_align*/
n[14] : "");
},
@@ -25009,31 +25005,31 @@ function Ib(n) {
n[0]
), n[40](e), /*autofocus*/
n[13] && e.focus(), a || (i = [
- Ue(
+ Ve(
e,
"input",
/*input_input_handler*/
n[39]
),
- Ue(
+ Ve(
e,
"keypress",
/*handle_keypress*/
n[23]
),
- Ue(
+ Ve(
e,
"blur",
/*blur_handler*/
n[31]
),
- Ue(
+ Ve(
e,
"select",
/*handle_select*/
n[22]
),
- Ue(
+ Ve(
e,
"focus",
/*focus_handler*/
@@ -25044,8 +25040,8 @@ function Ib(n) {
p(l, s) {
s[0] & /*rtl*/
4096 && t !== (t = /*rtl*/
- l[12] ? "rtl" : "ltr") && se(e, "dir", t), s[0] & /*placeholder*/
- 4 && se(
+ l[12] ? "rtl" : "ltr") && le(e, "dir", t), s[0] & /*placeholder*/
+ 4 && le(
e,
"placeholder",
/*placeholder*/
@@ -25055,7 +25051,7 @@ function Ib(n) {
l[5]), s[0] & /*autofocus*/
8192 && (e.autofocus = /*autofocus*/
l[13]), s[0] & /*max_length*/
- 32768 && se(
+ 32768 && le(
e,
"maxlength",
/*max_length*/
@@ -25063,7 +25059,7 @@ function Ib(n) {
), s[0] & /*text_align*/
16384 && r !== (r = /*text_align*/
l[14] ? "text-align: " + /*text_align*/
- l[14] : "") && se(e, "style", r), s[0] & /*value*/
+ l[14] : "") && le(e, "style", r), s[0] & /*value*/
1 && e.value !== /*value*/
l[0] && hn(
e,
@@ -25072,13 +25068,13 @@ function Ib(n) {
);
},
d(l) {
- l && nt(e), n[40](null), a = !1, hs(i);
+ l && rt(e), n[40](null), a = !1, hs(i);
}
};
}
-function ad(n) {
+function id(n) {
let e, t, r, a, i, l;
- const s = [Nb, Lb], o = [];
+ const s = [Rb, Nb], o = [];
function u(c, d) {
return (
/*submit_btn*/
@@ -25087,15 +25083,15 @@ function ad(n) {
}
return t = u(n), r = o[t] = s[t](n), {
c() {
- e = mr("button"), r.c(), this.h();
+ e = hr("button"), r.c(), this.h();
},
l(c) {
- e = dr(c, "BUTTON", { class: !0 });
+ e = fr(c, "BUTTON", { class: !0 });
var d = Mn(e);
- r.l(d), d.forEach(nt), this.h();
+ r.l(d), d.forEach(rt), this.h();
},
h() {
- se(e, "class", "submit-button svelte-bj4kw9"), Fr(
+ le(e, "class", "submit-button svelte-bj4kw9"), Fr(
e,
"padded-button",
/*submit_btn*/
@@ -25103,7 +25099,7 @@ function ad(n) {
);
},
m(c, d) {
- i0(c, e, d), o[t].m(e, null), a = !0, i || (l = Ue(
+ i0(c, e, d), o[t].m(e, null), a = !0, i || (l = Ve(
e,
"click",
/*handle_submit*/
@@ -25112,9 +25108,9 @@ function ad(n) {
},
p(c, d) {
let h = t;
- t = u(c), t === h ? o[t].p(c, d) : (la(), Mt(o[h], 1, 1, () => {
+ t = u(c), t === h ? o[t].p(c, d) : (la(), Ft(o[h], 1, 1, () => {
o[h] = null;
- }), ia(), r = o[t], r ? r.p(c, d) : (r = o[t] = s[t](c), r.c()), ut(r, 1), r.m(e, null)), (!a || d[0] & /*submit_btn*/
+ }), ia(), r = o[t], r ? r.p(c, d) : (r = o[t] = s[t](c), r.c()), ot(r, 1), r.m(e, null)), (!a || d[0] & /*submit_btn*/
1024) && Fr(
e,
"padded-button",
@@ -25123,27 +25119,27 @@ function ad(n) {
);
},
i(c) {
- a || (ut(r), a = !0);
+ a || (ot(r), a = !0);
},
o(c) {
- Mt(r), a = !1;
+ Ft(r), a = !1;
},
d(c) {
- c && nt(e), o[t].d(), i = !1, l();
+ c && rt(e), o[t].d(), i = !1, l();
}
};
}
-function Lb(n) {
+function Nb(n) {
let e;
return {
c() {
- e = o1(
+ e = u1(
/*submit_btn*/
n[10]
);
},
l(t) {
- e = l1(
+ e = s1(
t,
/*submit_btn*/
n[10]
@@ -25154,7 +25150,7 @@ function Lb(n) {
},
p(t, r) {
r[0] & /*submit_btn*/
- 1024 && s1(
+ 1024 && o1(
e,
/*submit_btn*/
t[10]
@@ -25163,13 +25159,13 @@ function Lb(n) {
i: fn,
o: fn,
d(t) {
- t && nt(e);
+ t && rt(e);
}
};
}
-function Nb(n) {
+function Rb(n) {
let e, t;
- return e = new sb({}), {
+ return e = new ob({}), {
c() {
hi(e.$$.fragment);
},
@@ -25181,19 +25177,19 @@ function Nb(n) {
},
p: fn,
i(r) {
- t || (ut(e.$$.fragment, r), t = !0);
+ t || (ot(e.$$.fragment, r), t = !0);
},
o(r) {
- Mt(e.$$.fragment, r), t = !1;
+ Ft(e.$$.fragment, r), t = !1;
},
d(r) {
di(e, r);
}
};
}
-function id(n) {
+function ld(n) {
let e, t, r, a, i, l;
- const s = [Ob, Rb], o = [];
+ const s = [qb, Ob], o = [];
function u(c, d) {
return (
/*stop_btn*/
@@ -25202,15 +25198,15 @@ function id(n) {
}
return t = u(n), r = o[t] = s[t](n), {
c() {
- e = mr("button"), r.c(), this.h();
+ e = hr("button"), r.c(), this.h();
},
l(c) {
- e = dr(c, "BUTTON", { class: !0 });
+ e = fr(c, "BUTTON", { class: !0 });
var d = Mn(e);
- r.l(d), d.forEach(nt), this.h();
+ r.l(d), d.forEach(rt), this.h();
},
h() {
- se(e, "class", "stop-button svelte-bj4kw9"), Fr(
+ le(e, "class", "stop-button svelte-bj4kw9"), Fr(
e,
"padded-button",
/*stop_btn*/
@@ -25218,7 +25214,7 @@ function id(n) {
);
},
m(c, d) {
- i0(c, e, d), o[t].m(e, null), a = !0, i || (l = Ue(
+ i0(c, e, d), o[t].m(e, null), a = !0, i || (l = Ve(
e,
"click",
/*handle_stop*/
@@ -25227,9 +25223,9 @@ function id(n) {
},
p(c, d) {
let h = t;
- t = u(c), t === h ? o[t].p(c, d) : (la(), Mt(o[h], 1, 1, () => {
+ t = u(c), t === h ? o[t].p(c, d) : (la(), Ft(o[h], 1, 1, () => {
o[h] = null;
- }), ia(), r = o[t], r ? r.p(c, d) : (r = o[t] = s[t](c), r.c()), ut(r, 1), r.m(e, null)), (!a || d[0] & /*stop_btn*/
+ }), ia(), r = o[t], r ? r.p(c, d) : (r = o[t] = s[t](c), r.c()), ot(r, 1), r.m(e, null)), (!a || d[0] & /*stop_btn*/
2048) && Fr(
e,
"padded-button",
@@ -25238,27 +25234,27 @@ function id(n) {
);
},
i(c) {
- a || (ut(r), a = !0);
+ a || (ot(r), a = !0);
},
o(c) {
- Mt(r), a = !1;
+ Ft(r), a = !1;
},
d(c) {
- c && nt(e), o[t].d(), i = !1, l();
+ c && rt(e), o[t].d(), i = !1, l();
}
};
}
-function Rb(n) {
+function Ob(n) {
let e;
return {
c() {
- e = o1(
+ e = u1(
/*stop_btn*/
n[11]
);
},
l(t) {
- e = l1(
+ e = s1(
t,
/*stop_btn*/
n[11]
@@ -25269,7 +25265,7 @@ function Rb(n) {
},
p(t, r) {
r[0] & /*stop_btn*/
- 2048 && s1(
+ 2048 && o1(
e,
/*stop_btn*/
t[11]
@@ -25278,13 +25274,13 @@ function Rb(n) {
i: fn,
o: fn,
d(t) {
- t && nt(e);
+ t && rt(e);
}
};
}
-function Ob(n) {
+function qb(n) {
let e, t;
- return e = new pb({
+ return e = new gb({
props: { fill: "none", stroke_width: 2.5 }
}), {
c() {
@@ -25298,23 +25294,23 @@ function Ob(n) {
},
p: fn,
i(r) {
- t || (ut(e.$$.fragment, r), t = !0);
+ t || (ot(e.$$.fragment, r), t = !0);
},
o(r) {
- Mt(e.$$.fragment, r), t = !1;
+ Ft(e.$$.fragment, r), t = !1;
},
d(r) {
di(e, r);
}
};
}
-function qb(n) {
+function Pb(n) {
let e, t, r, a, i, l, s, o, u = (
/*show_label*/
n[6] && /*show_copy_button*/
- n[9] && nd(n)
+ n[9] && ad(n)
);
- r = new Uv({
+ r = new Vv({
props: {
root: (
/*root*/
@@ -25328,7 +25324,7 @@ function qb(n) {
/*info*/
n[4]
),
- $$slots: { default: [Cb] },
+ $$slots: { default: [Fb] },
$$scope: { ctx: n }
}
});
@@ -25336,29 +25332,29 @@ function qb(n) {
return (
/*lines*/
b[1] === 1 && /*_max_lines*/
- b[18] === 1 ? Mb : Fb
+ b[18] === 1 ? zb : Mb
);
}
let d = c(n), h = d(n), p = (
/*submit_btn*/
- n[10] && ad(n)
+ n[10] && id(n)
), _ = (
/*stop_btn*/
- n[11] && id(n)
+ n[11] && ld(n)
);
return {
c() {
- e = mr("label"), u && u.c(), t = fl(), hi(r.$$.fragment), a = fl(), i = mr("div"), h.c(), l = fl(), p && p.c(), s = fl(), _ && _.c(), this.h();
+ e = hr("label"), u && u.c(), t = fl(), hi(r.$$.fragment), a = fl(), i = hr("div"), h.c(), l = fl(), p && p.c(), s = fl(), _ && _.c(), this.h();
},
l(b) {
- e = dr(b, "LABEL", { class: !0 });
+ e = fr(b, "LABEL", { class: !0 });
var D = Mn(e);
- u && u.l(D), t = cl(D), fi(r.$$.fragment, D), a = cl(D), i = dr(D, "DIV", { class: !0 });
+ u && u.l(D), t = cl(D), fi(r.$$.fragment, D), a = cl(D), i = fr(D, "DIV", { class: !0 });
var y = Mn(i);
- h.l(y), l = cl(y), p && p.l(y), s = cl(y), _ && _.l(y), y.forEach(nt), D.forEach(nt), this.h();
+ h.l(y), l = cl(y), p && p.l(y), s = cl(y), _ && _.l(y), y.forEach(rt), D.forEach(rt), this.h();
},
h() {
- se(i, "class", "input-container svelte-bj4kw9"), se(e, "class", "svelte-bj4kw9"), Fr(
+ le(i, "class", "input-container svelte-bj4kw9"), le(e, "class", "svelte-bj4kw9"), Fr(
e,
"container",
/*container*/
@@ -25377,7 +25373,7 @@ function qb(n) {
/*show_label*/
b[6] && /*show_copy_button*/
b[9] ? u ? (u.p(b, D), D[0] & /*show_label, show_copy_button*/
- 576 && ut(u, 1)) : (u = nd(b), u.c(), ut(u, 1), u.m(e, t)) : u && (la(), Mt(u, 1, 1, () => {
+ 576 && ot(u, 1)) : (u = ad(b), u.c(), ot(u, 1), u.m(e, t)) : u && (la(), Ft(u, 1, 1, () => {
u = null;
}), ia());
const y = {};
@@ -25391,11 +25387,11 @@ function qb(n) {
8 | D[1] & /*$$scope*/
67108864 && (y.$$scope = { dirty: D, ctx: b }), r.$set(y), d === (d = c(b)) && h ? h.p(b, D) : (h.d(1), h = d(b), h && (h.c(), h.m(i, l))), /*submit_btn*/
b[10] ? p ? (p.p(b, D), D[0] & /*submit_btn*/
- 1024 && ut(p, 1)) : (p = ad(b), p.c(), ut(p, 1), p.m(i, s)) : p && (la(), Mt(p, 1, 1, () => {
+ 1024 && ot(p, 1)) : (p = id(b), p.c(), ot(p, 1), p.m(i, s)) : p && (la(), Ft(p, 1, 1, () => {
p = null;
}), ia()), /*stop_btn*/
b[11] ? _ ? (_.p(b, D), D[0] & /*stop_btn*/
- 2048 && ut(_, 1)) : (_ = id(b), _.c(), ut(_, 1), _.m(i, null)) : _ && (la(), Mt(_, 1, 1, () => {
+ 2048 && ot(_, 1)) : (_ = ld(b), _.c(), ot(_, 1), _.m(i, null)) : _ && (la(), Ft(_, 1, 1, () => {
_ = null;
}), ia()), (!o || D[0] & /*container*/
128) && Fr(
@@ -25406,64 +25402,64 @@ function qb(n) {
);
},
i(b) {
- o || (ut(u), ut(r.$$.fragment, b), ut(p), ut(_), o = !0);
+ o || (ot(u), ot(r.$$.fragment, b), ot(p), ot(_), o = !0);
},
o(b) {
- Mt(u), Mt(r.$$.fragment, b), Mt(p), Mt(_), o = !1;
+ Ft(u), Ft(r.$$.fragment, b), Ft(p), Ft(_), o = !1;
},
d(b) {
- b && nt(e), u && u.d(), di(r), h.d(), p && p.d(), _ && _.d();
+ b && rt(e), u && u.d(), di(r), h.d(), p && p.d(), _ && _.d();
}
};
}
-function Pb(n, e, t) {
- var r = this && this.__awaiter || function(O, Se, We, tt) {
- function l0(s0) {
- return s0 instanceof We ? s0 : new We(function(Jt) {
- Jt(s0);
+function Hb(n, e, t) {
+ var r = this && this.__awaiter || function(N, me, ie, Qe) {
+ function W0(Dt) {
+ return Dt instanceof ie ? Dt : new ie(function(At) {
+ At(Dt);
});
}
- return new (We || (We = Promise))(function(s0, Jt) {
- function B0(Et) {
+ return new (ie || (ie = Promise))(function(Dt, At) {
+ function _r(Re) {
try {
- p0(tt.next(Et));
- } catch (Y0) {
- Jt(Y0);
+ m0(Qe.next(Re));
+ } catch (Jt) {
+ At(Jt);
}
}
- function dt(Et) {
+ function l0(Re) {
try {
- p0(tt.throw(Et));
- } catch (Y0) {
- Jt(Y0);
+ m0(Qe.throw(Re));
+ } catch (Jt) {
+ At(Jt);
}
}
- function p0(Et) {
- Et.done ? s0(Et.value) : l0(Et.value).then(B0, dt);
+ function m0(Re) {
+ Re.done ? Dt(Re.value) : W0(Re.value).then(_r, l0);
}
- p0((tt = tt.apply(O, Se || [])).next());
+ m0((Qe = Qe.apply(N, me || [])).next());
});
};
- let { value: a = "" } = e, { value_is_output: i = !1 } = e, { lines: l = 1 } = e, { placeholder: s = "Type here..." } = e, { label: o } = e, { info: u = void 0 } = e, { disabled: c = !1 } = e, { show_label: d = !0 } = e, { container: h = !0 } = e, { max_lines: p = void 0 } = e, { type: _ = "text" } = e, { show_copy_button: b = !1 } = e, { submit_btn: D = null } = e, { stop_btn: y = null } = e, { rtl: k = !1 } = e, { autofocus: w = !1 } = e, { text_align: E = void 0 } = e, { autoscroll: S = !0 } = e, { max_length: T = void 0 } = e, { root: C } = e, F, B = !1, I, L, q = 0, J = !1, Y;
- const H = !D, Q = Sb();
- Ab(() => {
+ let { value: a = "" } = e, { value_is_output: i = !1 } = e, { lines: l = 1 } = e, { placeholder: s = "Type here..." } = e, { label: o } = e, { info: u = void 0 } = e, { disabled: c = !1 } = e, { show_label: d = !0 } = e, { container: h = !0 } = e, { max_lines: p = void 0 } = e, { type: _ = "text" } = e, { show_copy_button: b = !1 } = e, { submit_btn: D = null } = e, { stop_btn: y = null } = e, { rtl: k = !1 } = e, { autofocus: w = !1 } = e, { text_align: E = void 0 } = e, { autoscroll: S = !0 } = e, { max_length: T = void 0 } = e, { root: C } = e, F, B = !1, I, L, P = 0, Z = !1, O;
+ const se = !D, K = xb();
+ Eb(() => {
L = F && F.offsetHeight + F.scrollTop > F.scrollHeight - 100;
});
- const fe = () => {
- L && S && !J && F.scrollTo(0, F.scrollHeight);
+ const he = () => {
+ L && S && !Z && F.scrollTo(0, F.scrollHeight);
};
function ue() {
- Q("change", a), i || Q("input");
+ K("change", a), i || K("input");
}
- Eb(() => {
- w && F.focus(), L && S && fe(), t(28, i = !1);
+ Sb(() => {
+ w && F.focus(), L && S && he(), t(28, i = !1);
});
- function De() {
+ function Ae() {
return r(this, void 0, void 0, function* () {
- "clipboard" in navigator && (yield navigator.clipboard.writeText(a), Q("copy", { value: a }), we());
+ "clipboard" in navigator && (yield navigator.clipboard.writeText(a), K("copy", { value: a }), ye());
});
}
- function we() {
+ function ye() {
t(19, B = !0), I && clearTimeout(I), I = setTimeout(
() => {
t(19, B = !1);
@@ -25471,106 +25467,106 @@ function Pb(n, e, t) {
1e3
);
}
- function te(O) {
- const Se = O.target, We = Se.value, tt = [Se.selectionStart, Se.selectionEnd];
- Q("select", { value: We.substring(...tt), index: tt });
+ function $(N) {
+ const me = N.target, ie = me.value, Qe = [me.selectionStart, me.selectionEnd];
+ K("select", { value: ie.substring(...Qe), index: Qe });
}
- function de(O) {
+ function de(N) {
return r(this, void 0, void 0, function* () {
- yield rd(), (O.key === "Enter" && O.shiftKey && l > 1 || O.key === "Enter" && !O.shiftKey && l === 1 && Y >= 1) && (O.preventDefault(), Q("submit"));
+ yield nd(), (N.key === "Enter" && N.shiftKey && l > 1 || N.key === "Enter" && !N.shiftKey && l === 1 && O >= 1) && (N.preventDefault(), K("submit"));
});
}
- function he(O) {
- const Se = O.target, We = Se.scrollTop;
- We < q && (J = !0), q = We;
- const tt = Se.scrollHeight - Se.clientHeight;
- We >= tt && (J = !1);
+ function ce(N) {
+ const me = N.target, ie = me.scrollTop;
+ ie < P && (Z = !0), P = ie;
+ const Qe = me.scrollHeight - me.clientHeight;
+ ie >= Qe && (Z = !1);
}
function Ce() {
- Q("stop");
+ K("stop");
}
function V() {
- Q("submit");
+ K("submit");
}
- function j(O) {
+ function j(N) {
return r(this, void 0, void 0, function* () {
- if (yield rd(), l === Y) return;
- const Se = O.target, We = window.getComputedStyle(Se), tt = parseFloat(We.paddingTop), l0 = parseFloat(We.paddingBottom), s0 = parseFloat(We.lineHeight);
- let Jt = Y === void 0 ? !1 : tt + l0 + s0 * Y, B0 = tt + l0 + l * s0;
- Se.style.height = "1px";
- let dt;
- Jt && Se.scrollHeight > Jt ? dt = Jt : Se.scrollHeight < B0 ? dt = B0 : dt = Se.scrollHeight, Se.style.height = `${dt}px`;
+ if (yield nd(), l === O) return;
+ const me = N.target, ie = window.getComputedStyle(me), Qe = parseFloat(ie.paddingTop), W0 = parseFloat(ie.paddingBottom), Dt = parseFloat(ie.lineHeight);
+ let At = O === void 0 ? !1 : Qe + W0 + Dt * O, _r = Qe + W0 + l * Dt;
+ me.style.height = "1px";
+ let l0;
+ At && me.scrollHeight > At ? l0 = At : me.scrollHeight < _r ? l0 = _r : l0 = me.scrollHeight, me.style.height = `${l0}px`;
});
}
- function pe(O, Se) {
- if (l !== Y && (O.style.overflowY = "scroll", O.addEventListener("input", j), !!Se.trim()))
- return j({ target: O }), {
- destroy: () => O.removeEventListener("input", j)
+ function ge(N, me) {
+ if (l !== O && (N.style.overflowY = "scroll", N.addEventListener("input", j), !!me.trim()))
+ return j({ target: N }), {
+ destroy: () => N.removeEventListener("input", j)
};
}
- function ye(O) {
- Jr.call(this, n, O);
+ function ke(N) {
+ Jr.call(this, n, N);
}
- function Te(O) {
- Jr.call(this, n, O);
+ function Te(N) {
+ Jr.call(this, n, N);
}
- function ze(O) {
- Jr.call(this, n, O);
+ function ze(N) {
+ Jr.call(this, n, N);
}
- function Le(O) {
- Jr.call(this, n, O);
+ function Le(N) {
+ Jr.call(this, n, N);
}
- function Ge(O) {
- Jr.call(this, n, O);
+ function je(N) {
+ Jr.call(this, n, N);
}
- function ht(O) {
- Jr.call(this, n, O);
+ function ft(N) {
+ Jr.call(this, n, N);
}
- function je(O) {
- Jr.call(this, n, O);
+ function We(N) {
+ Jr.call(this, n, N);
}
- function Oe(O) {
- Jr.call(this, n, O);
+ function qe(N) {
+ Jr.call(this, n, N);
}
- function qe() {
+ function Pe() {
a = this.value, t(0, a);
}
- function st(O) {
- ul[O ? "unshift" : "push"](() => {
- F = O, t(17, F);
+ function lt(N) {
+ ul[N ? "unshift" : "push"](() => {
+ F = N, t(17, F);
});
}
- function qt() {
+ function Ot() {
a = this.value, t(0, a);
}
- function R(O) {
- ul[O ? "unshift" : "push"](() => {
- F = O, t(17, F);
+ function qt(N) {
+ ul[N ? "unshift" : "push"](() => {
+ F = N, t(17, F);
});
}
- function W0() {
+ function Hr() {
a = this.value, t(0, a);
}
- function X0(O) {
- ul[O ? "unshift" : "push"](() => {
- F = O, t(17, F);
+ function q(N) {
+ ul[N ? "unshift" : "push"](() => {
+ F = N, t(17, F);
});
}
- function Z() {
+ function gr() {
a = this.value, t(0, a);
}
- function et(O) {
- ul[O ? "unshift" : "push"](() => {
- F = O, t(17, F);
+ function z0(N) {
+ ul[N ? "unshift" : "push"](() => {
+ F = N, t(17, F);
});
}
- return n.$$set = (O) => {
- "value" in O && t(0, a = O.value), "value_is_output" in O && t(28, i = O.value_is_output), "lines" in O && t(1, l = O.lines), "placeholder" in O && t(2, s = O.placeholder), "label" in O && t(3, o = O.label), "info" in O && t(4, u = O.info), "disabled" in O && t(5, c = O.disabled), "show_label" in O && t(6, d = O.show_label), "container" in O && t(7, h = O.container), "max_lines" in O && t(29, p = O.max_lines), "type" in O && t(8, _ = O.type), "show_copy_button" in O && t(9, b = O.show_copy_button), "submit_btn" in O && t(10, D = O.submit_btn), "stop_btn" in O && t(11, y = O.stop_btn), "rtl" in O && t(12, k = O.rtl), "autofocus" in O && t(13, w = O.autofocus), "text_align" in O && t(14, E = O.text_align), "autoscroll" in O && t(30, S = O.autoscroll), "max_length" in O && t(15, T = O.max_length), "root" in O && t(16, C = O.root);
+ return n.$$set = (N) => {
+ "value" in N && t(0, a = N.value), "value_is_output" in N && t(28, i = N.value_is_output), "lines" in N && t(1, l = N.lines), "placeholder" in N && t(2, s = N.placeholder), "label" in N && t(3, o = N.label), "info" in N && t(4, u = N.info), "disabled" in N && t(5, c = N.disabled), "show_label" in N && t(6, d = N.show_label), "container" in N && t(7, h = N.container), "max_lines" in N && t(29, p = N.max_lines), "type" in N && t(8, _ = N.type), "show_copy_button" in N && t(9, b = N.show_copy_button), "submit_btn" in N && t(10, D = N.submit_btn), "stop_btn" in N && t(11, y = N.stop_btn), "rtl" in N && t(12, k = N.rtl), "autofocus" in N && t(13, w = N.autofocus), "text_align" in N && t(14, E = N.text_align), "autoscroll" in N && t(30, S = N.autoscroll), "max_length" in N && t(15, T = N.max_length), "root" in N && t(16, C = N.root);
}, n.$$.update = () => {
n.$$.dirty[0] & /*max_lines, type, lines*/
- 536871170 && (p === void 0 ? _ === "text" ? t(18, Y = Math.max(l, 20)) : t(18, Y = 1) : t(18, Y = Math.max(p, l))), n.$$.dirty[0] & /*value*/
+ 536871170 && (p === void 0 ? _ === "text" ? t(18, O = Math.max(l, 20)) : t(18, O = 1) : t(18, O = Math.max(p, l))), n.$$.dirty[0] & /*value*/
1 && a === null && t(0, a = ""), n.$$.dirty[0] & /*value, el, lines, _max_lines*/
- 393219 && F && l !== Y && j({ target: F }), n.$$.dirty[0] & /*value*/
+ 393219 && F && l !== O && j({ target: F }), n.$$.dirty[0] & /*value*/
1 && ue();
}, [
a,
@@ -25591,45 +25587,45 @@ function Pb(n, e, t) {
T,
C,
F,
- Y,
+ O,
B,
- H,
- De,
- te,
+ se,
+ Ae,
+ $,
de,
- he,
+ ce,
Ce,
V,
- pe,
+ ge,
i,
p,
S,
- ye,
+ ke,
Te,
ze,
Le,
- Ge,
- ht,
je,
- Oe,
+ ft,
+ We,
qe,
- st,
+ Pe,
+ lt,
+ Ot,
qt,
- R,
- W0,
- X0,
- Z,
- et
+ Hr,
+ q,
+ gr,
+ z0
];
}
-class Hb extends _b {
+class Ub extends vb {
constructor(e) {
- super(), yb(
+ super(), kb(
this,
e,
+ Hb,
Pb,
- qb,
- Db,
+ Ab,
{
value: 0,
value_is_output: 28,
@@ -25658,98 +25654,98 @@ class Hb extends _b {
}
}
const {
- SvelteComponent: Ub,
- add_flush_callback: Vb,
+ SvelteComponent: Vb,
+ add_flush_callback: Gb,
append_hydration: kr,
- attr: pt,
- bind: Gb,
- binding_callbacks: jb,
+ attr: dt,
+ bind: jb,
+ binding_callbacks: Wb,
check_outros: Dl,
children: tn,
- claim_component: Rr,
+ claim_component: Nr,
claim_element: rn,
claim_space: hl,
- create_component: Or,
- destroy_component: qr,
- detach: H0,
+ create_component: Rr,
+ destroy_component: Or,
+ detach: P0,
element: nn,
group_outros: Al,
- init: Wb,
- insert_hydration: u1,
- is_function: Xb,
- listen: wu,
- mount_component: Pr,
- noop: c1,
- run_all: Yb,
- safe_not_equal: Zb,
+ init: Xb,
+ insert_hydration: c1,
+ is_function: Yb,
+ listen: yu,
+ mount_component: qr,
+ noop: f1,
+ run_all: Zb,
+ safe_not_equal: Kb,
space: dl,
toggle_class: Wa,
- transition_in: gt,
- transition_out: Ft
+ transition_in: mt,
+ transition_out: Ct
} = window.__gradio__svelte__internal;
-function ld(n) {
+function sd(n) {
let e, t, r, a;
- return t = new Eu({}), {
+ return t = new Su({}), {
c() {
- e = nn("div"), Or(t.$$.fragment), this.h();
+ e = nn("div"), Rr(t.$$.fragment), this.h();
},
l(i) {
e = rn(i, "DIV", { class: !0, style: !0 });
var l = tn(e);
- Rr(t.$$.fragment, l), l.forEach(H0), this.h();
+ Nr(t.$$.fragment, l), l.forEach(P0), this.h();
},
h() {
- pt(e, "class", "button svelte-1j1z049"), pt(e, "style", r = `fill: ${/*icon_button_color*/
+ dt(e, "class", "button svelte-1j1z049"), dt(e, "style", r = `fill: ${/*icon_button_color*/
n[6]}; stroke: ${/*icon_button_color*/
n[6]}; color: ${/*icon_button_color*/
n[6]};`);
},
m(i, l) {
- u1(i, e, l), Pr(t, e, null), a = !0;
+ c1(i, e, l), qr(t, e, null), a = !0;
},
p(i, l) {
(!a || l & /*icon_button_color*/
64 && r !== (r = `fill: ${/*icon_button_color*/
i[6]}; stroke: ${/*icon_button_color*/
i[6]}; color: ${/*icon_button_color*/
- i[6]};`)) && pt(e, "style", r);
+ i[6]};`)) && dt(e, "style", r);
},
i(i) {
- a || (gt(t.$$.fragment, i), a = !0);
+ a || (mt(t.$$.fragment, i), a = !0);
},
o(i) {
- Ft(t.$$.fragment, i), a = !1;
+ Ct(t.$$.fragment, i), a = !1;
},
d(i) {
- i && H0(e), qr(t);
- }
- };
-}
-function Kb(n) {
- let e, t;
- return e = new Cn({}), {
- c() {
- Or(e.$$.fragment);
- },
- l(r) {
- Rr(e.$$.fragment, r);
- },
- m(r, a) {
- Pr(e, r, a), t = !0;
- },
- p: c1,
- i(r) {
- t || (gt(e.$$.fragment, r), t = !0);
- },
- o(r) {
- Ft(e.$$.fragment, r), t = !1;
- },
- d(r) {
- qr(e, r);
+ i && P0(e), Or(t);
}
};
}
function Jb(n) {
+ let e, t;
+ return e = new Cn({}), {
+ c() {
+ Rr(e.$$.fragment);
+ },
+ l(r) {
+ Nr(e.$$.fragment, r);
+ },
+ m(r, a) {
+ qr(e, r, a), t = !0;
+ },
+ p: f1,
+ i(r) {
+ t || (mt(e.$$.fragment, r), t = !0);
+ },
+ o(r) {
+ Ct(e.$$.fragment, r), t = !1;
+ },
+ d(r) {
+ Or(e, r);
+ }
+ };
+}
+function Qb(n) {
let e, t;
return e = new li({
props: {
@@ -25760,7 +25756,7 @@ function Jb(n) {
stream_state: "open",
icon: (
/*is_mic_muted*/
- n[12] ? bu : Cn
+ n[12] ? wu : Cn
),
icon_button_color: (
/*icon_button_color*/
@@ -25774,13 +25770,13 @@ function Jb(n) {
}
}), {
c() {
- Or(e.$$.fragment);
+ Rr(e.$$.fragment);
},
l(r) {
- Rr(e.$$.fragment, r);
+ Nr(e.$$.fragment, r);
},
m(r, a) {
- Pr(e, r, a), t = !0;
+ qr(e, r, a), t = !0;
},
p(r, a) {
const i = {};
@@ -25788,26 +25784,26 @@ function Jb(n) {
8 && (i.audio_source_callback = /*input_audio_source_callback*/
r[3]), a & /*is_mic_muted*/
4096 && (i.icon = /*is_mic_muted*/
- r[12] ? bu : Cn), a & /*icon_button_color*/
+ r[12] ? wu : Cn), a & /*icon_button_color*/
64 && (i.icon_button_color = /*icon_button_color*/
r[6]), a & /*pulse_color*/
128 && (i.pulse_color = /*pulse_color*/
r[7]), e.$set(i);
},
i(r) {
- t || (gt(e.$$.fragment, r), t = !0);
+ t || (mt(e.$$.fragment, r), t = !0);
},
o(r) {
- Ft(e.$$.fragment, r), t = !1;
+ Ct(e.$$.fragment, r), t = !1;
},
d(r) {
- qr(e, r);
+ Or(e, r);
}
};
}
-function sd(n) {
+function od(n) {
let e, t, r, a, i, l, s, o, u;
- const c = [ew, $b, Qb], d = [];
+ const c = [tw, ew, $b], d = [];
function h(p, _) {
return (
/*stream_state*/
@@ -25826,13 +25822,13 @@ function sd(n) {
var _ = tn(e);
t = rn(_, "DIV", { class: !0, style: !0 });
var b = tn(t);
- a.l(b), b.forEach(H0), _.forEach(H0), this.h();
+ a.l(b), b.forEach(P0), _.forEach(P0), this.h();
},
h() {
- pt(t, "class", "icon"), pt(t, "style", i = `fill: ${/*icon_button_color*/
+ dt(t, "class", "icon"), dt(t, "style", i = `fill: ${/*icon_button_color*/
n[6]}; stroke: ${/*icon_button_color*/
n[6]}; color: ${/*icon_button_color*/
- n[6]};`), pt(e, "class", "button svelte-1j1z049"), pt(e, "aria-label", l = /*is_muted*/
+ n[6]};`), dt(e, "class", "button svelte-1j1z049"), dt(e, "aria-label", l = /*is_muted*/
n[11] ? "unmute audio" : "mute audio"), Wa(
e,
"hidden",
@@ -25841,8 +25837,8 @@ function sd(n) {
);
},
m(p, _) {
- u1(p, e, _), kr(e, t), d[r].m(t, null), s = !0, o || (u = wu(e, "click", function() {
- Xb(
+ c1(p, e, _), kr(e, t), d[r].m(t, null), s = !0, o || (u = yu(e, "click", function() {
+ Yb(
/*toggleMute*/
n[4]
) && n[4].apply(this, arguments);
@@ -25851,15 +25847,15 @@ function sd(n) {
p(p, _) {
n = p;
let b = r;
- r = h(n), r === b ? d[r].p(n, _) : (Al(), Ft(d[b], 1, 1, () => {
+ r = h(n), r === b ? d[r].p(n, _) : (Al(), Ct(d[b], 1, 1, () => {
d[b] = null;
- }), Dl(), a = d[r], a ? a.p(n, _) : (a = d[r] = c[r](n), a.c()), gt(a, 1), a.m(t, null)), (!s || _ & /*icon_button_color*/
+ }), Dl(), a = d[r], a ? a.p(n, _) : (a = d[r] = c[r](n), a.c()), mt(a, 1), a.m(t, null)), (!s || _ & /*icon_button_color*/
64 && i !== (i = `fill: ${/*icon_button_color*/
n[6]}; stroke: ${/*icon_button_color*/
n[6]}; color: ${/*icon_button_color*/
- n[6]};`)) && pt(t, "style", i), (!s || _ & /*is_muted*/
+ n[6]};`)) && dt(t, "style", i), (!s || _ & /*is_muted*/
2048 && l !== (l = /*is_muted*/
- n[11] ? "unmute audio" : "mute audio")) && pt(e, "aria-label", l), (!s || _ & /*stream_state*/
+ n[11] ? "unmute audio" : "mute audio")) && dt(e, "aria-label", l), (!s || _ & /*stream_state*/
256) && Wa(
e,
"hidden",
@@ -25868,65 +25864,65 @@ function sd(n) {
);
},
i(p) {
- s || (gt(a), s = !0);
+ s || (mt(a), s = !0);
},
o(p) {
- Ft(a), s = !1;
+ Ct(a), s = !1;
},
d(p) {
- p && H0(e), d[r].d(), o = !1, u();
- }
- };
-}
-function Qb(n) {
- let e, t;
- return e = new El({}), {
- c() {
- Or(e.$$.fragment);
- },
- l(r) {
- Rr(e.$$.fragment, r);
- },
- m(r, a) {
- Pr(e, r, a), t = !0;
- },
- p: c1,
- i(r) {
- t || (gt(e.$$.fragment, r), t = !0);
- },
- o(r) {
- Ft(e.$$.fragment, r), t = !1;
- },
- d(r) {
- qr(e, r);
+ p && P0(e), d[r].d(), o = !1, u();
}
};
}
function $b(n) {
let e, t;
- return e = new Sl({}), {
+ return e = new El({}), {
c() {
- Or(e.$$.fragment);
+ Rr(e.$$.fragment);
},
l(r) {
- Rr(e.$$.fragment, r);
+ Nr(e.$$.fragment, r);
},
m(r, a) {
- Pr(e, r, a), t = !0;
+ qr(e, r, a), t = !0;
},
- p: c1,
+ p: f1,
i(r) {
- t || (gt(e.$$.fragment, r), t = !0);
+ t || (mt(e.$$.fragment, r), t = !0);
},
o(r) {
- Ft(e.$$.fragment, r), t = !1;
+ Ct(e.$$.fragment, r), t = !1;
},
d(r) {
- qr(e, r);
+ Or(e, r);
}
};
}
function ew(n) {
+ let e, t;
+ return e = new Sl({}), {
+ c() {
+ Rr(e.$$.fragment);
+ },
+ l(r) {
+ Nr(e.$$.fragment, r);
+ },
+ m(r, a) {
+ qr(e, r, a), t = !0;
+ },
+ p: f1,
+ i(r) {
+ t || (mt(e.$$.fragment, r), t = !0);
+ },
+ o(r) {
+ Ct(e.$$.fragment, r), t = !1;
+ },
+ d(r) {
+ Or(e, r);
+ }
+ };
+}
+function tw(n) {
let e, t;
return e = new li({
props: {
@@ -25951,13 +25947,13 @@ function ew(n) {
}
}), {
c() {
- Or(e.$$.fragment);
+ Rr(e.$$.fragment);
},
l(r) {
- Rr(e.$$.fragment, r);
+ Nr(e.$$.fragment, r);
},
m(r, a) {
- Pr(e, r, a), t = !0;
+ qr(e, r, a), t = !0;
},
p(r, a) {
const i = {};
@@ -25972,17 +25968,17 @@ function ew(n) {
r[7]), e.$set(i);
},
i(r) {
- t || (gt(e.$$.fragment, r), t = !0);
+ t || (mt(e.$$.fragment, r), t = !0);
},
o(r) {
- Ft(e.$$.fragment, r), t = !1;
+ Ct(e.$$.fragment, r), t = !1;
},
d(r) {
- qr(e, r);
+ Or(e, r);
}
};
}
-function tw(n) {
+function rw(n) {
let e, t, r, a, i, l, s, o, u, c, d, h, p, _, b, D, y, k, w;
function E(L) {
n[17](L);
@@ -26001,17 +25997,17 @@ function tw(n) {
};
/*value*/
n[0].textbox !== void 0 && (S.value = /*value*/
- n[0].textbox), t = new Hb({ props: S }), jb.push(() => Gb(t, "value", E)), t.$on(
+ n[0].textbox), t = new Ub({ props: S }), Wb.push(() => jb(t, "value", E)), t.$on(
"submit",
/*submit_handler*/
n[18]
);
let T = (
/*pending*/
- n[10] && ld(n)
+ n[10] && sd(n)
);
- const C = [Jb, Kb], F = [];
- function B(L, q) {
+ const C = [Qb, Jb], F = [];
+ function B(L, P) {
return (
/*stream_state*/
L[8] === "open" ? 0 : 1
@@ -26020,48 +26016,48 @@ function tw(n) {
o = B(n), u = F[o] = C[o](n);
let I = (
/*mode*/
- n[9] === "send-receive" && sd(n)
+ n[9] === "send-receive" && od(n)
);
- return b = new Dd({ props: { fill: "none" } }), {
+ return b = new Ad({ props: { fill: "none" } }), {
c() {
- e = nn("div"), Or(t.$$.fragment), a = dl(), T && T.c(), i = dl(), l = nn("button"), s = nn("div"), u.c(), d = dl(), I && I.c(), h = dl(), p = nn("button"), _ = nn("div"), Or(b.$$.fragment), this.h();
+ e = nn("div"), Rr(t.$$.fragment), a = dl(), T && T.c(), i = dl(), l = nn("button"), s = nn("div"), u.c(), d = dl(), I && I.c(), h = dl(), p = nn("button"), _ = nn("div"), Rr(b.$$.fragment), this.h();
},
l(L) {
e = rn(L, "DIV", { class: !0 });
- var q = tn(e);
- Rr(t.$$.fragment, q), a = hl(q), T && T.l(q), i = hl(q), l = rn(q, "BUTTON", { class: !0 });
- var J = tn(l);
- s = rn(J, "DIV", { class: !0, style: !0 });
- var Y = tn(s);
- u.l(Y), Y.forEach(H0), J.forEach(H0), d = hl(q), I && I.l(q), h = hl(q), p = rn(q, "BUTTON", { class: !0, "aria-label": !0 });
- var H = tn(p);
- _ = rn(H, "DIV", { class: !0, style: !0 });
- var Q = tn(_);
- Rr(b.$$.fragment, Q), Q.forEach(H0), H.forEach(H0), q.forEach(H0), this.h();
+ var P = tn(e);
+ Nr(t.$$.fragment, P), a = hl(P), T && T.l(P), i = hl(P), l = rn(P, "BUTTON", { class: !0 });
+ var Z = tn(l);
+ s = rn(Z, "DIV", { class: !0, style: !0 });
+ var O = tn(s);
+ u.l(O), O.forEach(P0), Z.forEach(P0), d = hl(P), I && I.l(P), h = hl(P), p = rn(P, "BUTTON", { class: !0, "aria-label": !0 });
+ var se = tn(p);
+ _ = rn(se, "DIV", { class: !0, style: !0 });
+ var K = tn(_);
+ Nr(b.$$.fragment, K), K.forEach(P0), se.forEach(P0), P.forEach(P0), this.h();
},
h() {
- pt(s, "class", "icon"), pt(s, "style", c = `fill: ${/*icon_button_color*/
+ dt(s, "class", "icon"), dt(s, "style", c = `fill: ${/*icon_button_color*/
n[6]}; stroke: ${/*icon_button_color*/
n[6]}; color: ${/*icon_button_color*/
- n[6]};`), pt(l, "class", "button svelte-1j1z049"), Wa(l, "padded-button", !1), pt(_, "class", "icon"), pt(_, "style", D = `fill: ${/*icon_button_color*/
+ n[6]};`), dt(l, "class", "button svelte-1j1z049"), Wa(l, "padded-button", !1), dt(_, "class", "icon"), dt(_, "style", D = `fill: ${/*icon_button_color*/
n[6]}; stroke: ${/*icon_button_color*/
n[6]}; color: ${/*icon_button_color*/
- n[6]};`), pt(p, "class", "button svelte-1j1z049"), pt(p, "aria-label", "stop stream"), Wa(
+ n[6]};`), dt(p, "class", "button svelte-1j1z049"), dt(p, "aria-label", "stop stream"), Wa(
p,
"hidden",
/*stream_state*/
n[8] === "closed"
- ), pt(e, "class", "input-container svelte-1j1z049");
+ ), dt(e, "class", "input-container svelte-1j1z049");
},
- m(L, q) {
- u1(L, e, q), Pr(t, e, null), kr(e, a), T && T.m(e, null), kr(e, i), kr(e, l), kr(l, s), F[o].m(s, null), kr(e, d), I && I.m(e, null), kr(e, h), kr(e, p), kr(p, _), Pr(b, _, null), y = !0, k || (w = [
- wu(
+ m(L, P) {
+ c1(L, e, P), qr(t, e, null), kr(e, a), T && T.m(e, null), kr(e, i), kr(e, l), kr(l, s), F[o].m(s, null), kr(e, d), I && I.m(e, null), kr(e, h), kr(e, p), kr(p, _), qr(b, _, null), y = !0, k || (w = [
+ yu(
l,
"click",
/*click_mic_icon*/
n[13]
),
- wu(
+ yu(
p,
"click",
/*click_stop_stream*/
@@ -26069,35 +26065,35 @@ function tw(n) {
)
], k = !0);
},
- p(L, q) {
- const J = {};
- q & /*pending*/
- 1024 && (J.submit_btn = !/*pending*/
- L[10]), q & /*pending*/
- 1024 && (J.disabled = /*pending*/
- L[10]), !r && q & /*value*/
- 1 && (r = !0, J.value = /*value*/
- L[0].textbox, Vb(() => r = !1)), t.$set(J), /*pending*/
- L[10] ? T ? (T.p(L, q), q & /*pending*/
- 1024 && gt(T, 1)) : (T = ld(L), T.c(), gt(T, 1), T.m(e, i)) : T && (Al(), Ft(T, 1, 1, () => {
+ p(L, P) {
+ const Z = {};
+ P & /*pending*/
+ 1024 && (Z.submit_btn = !/*pending*/
+ L[10]), P & /*pending*/
+ 1024 && (Z.disabled = /*pending*/
+ L[10]), !r && P & /*value*/
+ 1 && (r = !0, Z.value = /*value*/
+ L[0].textbox, Gb(() => r = !1)), t.$set(Z), /*pending*/
+ L[10] ? T ? (T.p(L, P), P & /*pending*/
+ 1024 && mt(T, 1)) : (T = sd(L), T.c(), mt(T, 1), T.m(e, i)) : T && (Al(), Ct(T, 1, 1, () => {
T = null;
}), Dl());
- let Y = o;
- o = B(L), o === Y ? F[o].p(L, q) : (Al(), Ft(F[Y], 1, 1, () => {
- F[Y] = null;
- }), Dl(), u = F[o], u ? u.p(L, q) : (u = F[o] = C[o](L), u.c()), gt(u, 1), u.m(s, null)), (!y || q & /*icon_button_color*/
+ let O = o;
+ o = B(L), o === O ? F[o].p(L, P) : (Al(), Ct(F[O], 1, 1, () => {
+ F[O] = null;
+ }), Dl(), u = F[o], u ? u.p(L, P) : (u = F[o] = C[o](L), u.c()), mt(u, 1), u.m(s, null)), (!y || P & /*icon_button_color*/
64 && c !== (c = `fill: ${/*icon_button_color*/
L[6]}; stroke: ${/*icon_button_color*/
L[6]}; color: ${/*icon_button_color*/
- L[6]};`)) && pt(s, "style", c), /*mode*/
- L[9] === "send-receive" ? I ? (I.p(L, q), q & /*mode*/
- 512 && gt(I, 1)) : (I = sd(L), I.c(), gt(I, 1), I.m(e, h)) : I && (Al(), Ft(I, 1, 1, () => {
+ L[6]};`)) && dt(s, "style", c), /*mode*/
+ L[9] === "send-receive" ? I ? (I.p(L, P), P & /*mode*/
+ 512 && mt(I, 1)) : (I = od(L), I.c(), mt(I, 1), I.m(e, h)) : I && (Al(), Ct(I, 1, 1, () => {
I = null;
- }), Dl()), (!y || q & /*icon_button_color*/
+ }), Dl()), (!y || P & /*icon_button_color*/
64 && D !== (D = `fill: ${/*icon_button_color*/
L[6]}; stroke: ${/*icon_button_color*/
L[6]}; color: ${/*icon_button_color*/
- L[6]};`)) && pt(_, "style", D), (!y || q & /*stream_state*/
+ L[6]};`)) && dt(_, "style", D), (!y || P & /*stream_state*/
256) && Wa(
p,
"hidden",
@@ -26106,32 +26102,32 @@ function tw(n) {
);
},
i(L) {
- y || (gt(t.$$.fragment, L), gt(T), gt(u), gt(I), gt(b.$$.fragment, L), y = !0);
+ y || (mt(t.$$.fragment, L), mt(T), mt(u), mt(I), mt(b.$$.fragment, L), y = !0);
},
o(L) {
- Ft(t.$$.fragment, L), Ft(T), Ft(u), Ft(I), Ft(b.$$.fragment, L), y = !1;
+ Ct(t.$$.fragment, L), Ct(T), Ct(u), Ct(I), Ct(b.$$.fragment, L), y = !1;
},
d(L) {
- L && H0(e), qr(t), T && T.d(), F[o].d(), I && I.d(), qr(b), k = !1, Yb(w);
+ L && P0(e), Or(t), T && T.d(), F[o].d(), I && I.d(), Or(b), k = !1, Zb(w);
}
};
}
-function rw(n) {
+function nw(n) {
let e, t;
- return e = new kd({
+ return e = new Dd({
props: {
- $$slots: { default: [tw] },
+ $$slots: { default: [rw] },
$$scope: { ctx: n }
}
}), {
c() {
- Or(e.$$.fragment);
+ Rr(e.$$.fragment);
},
l(r) {
- Rr(e.$$.fragment, r);
+ Nr(e.$$.fragment, r);
},
m(r, a) {
- Pr(e, r, a), t = !0;
+ qr(e, r, a), t = !0;
},
p(r, [a]) {
const i = {};
@@ -26139,42 +26135,42 @@ function rw(n) {
1056767 && (i.$$scope = { dirty: a, ctx: r }), e.$set(i);
},
i(r) {
- t || (gt(e.$$.fragment, r), t = !0);
+ t || (mt(e.$$.fragment, r), t = !0);
},
o(r) {
- Ft(e.$$.fragment, r), t = !1;
+ Ct(e.$$.fragment, r), t = !1;
},
d(r) {
- qr(e, r);
+ Or(e, r);
}
};
}
-function nw(n, e, t) {
+function aw(n, e, t) {
var r = this && this.__awaiter || function(C, F, B, I) {
- function L(q) {
- return q instanceof B ? q : new B(function(J) {
- J(q);
+ function L(P) {
+ return P instanceof B ? P : new B(function(Z) {
+ Z(P);
});
}
- return new (B || (B = Promise))(function(q, J) {
- function Y(fe) {
+ return new (B || (B = Promise))(function(P, Z) {
+ function O(he) {
try {
- Q(I.next(fe));
+ K(I.next(he));
} catch (ue) {
- J(ue);
+ Z(ue);
}
}
- function H(fe) {
+ function se(he) {
try {
- Q(I.throw(fe));
+ K(I.throw(he));
} catch (ue) {
- J(ue);
+ Z(ue);
}
}
- function Q(fe) {
- fe.done ? q(fe.value) : L(fe.value).then(Y, H);
+ function K(he) {
+ he.done ? P(he.value) : L(he.value).then(O, se);
}
- Q((I = I.apply(C, F || [])).next());
+ K((I = I.apply(C, F || [])).next());
});
};
let { value: a = null } = e, { access_mic: i } = e, { start_stream: l } = e, { audio_source_callback: s } = e, { input_audio_source_callback: o } = e, { toggleMuteMicrophone: u } = e, { toggleMute: c } = e, { on_change_cb: d } = e, { icon_button_color: h = "var(--color-accent)" } = e, { pulse_color: p = "var(--color-accent)" } = e, { stream_state: _ = "closed" } = e, { mode: b = "send-receive" } = e, { pending: D = !1 } = e, { is_muted: y = !1 } = e, { is_mic_muted: k = !1 } = e;
@@ -26231,9 +26227,9 @@ function nw(n, e, t) {
T
];
}
-class aw extends Ub {
+class iw extends Vb {
constructor(e) {
- super(), Wb(this, e, nw, rw, Zb, {
+ super(), Xb(this, e, aw, nw, Kb, {
value: 0,
access_mic: 15,
start_stream: 1,
@@ -26253,52 +26249,52 @@ class aw extends Ub {
}
}
const {
- SvelteComponent: iw,
- action_destroyer: lw,
+ SvelteComponent: lw,
+ action_destroyer: sw,
add_flush_callback: ml,
- add_render_callback: sw,
- append_hydration: $e,
- attr: ve,
+ add_render_callback: ow,
+ append_hydration: et,
+ attr: be,
bind: pl,
binding_callbacks: Ra,
- bubble: ow,
- check_outros: rr,
- children: at,
+ bubble: Wo,
+ check_outros: er,
+ children: nt,
claim_component: Wt,
- claim_element: it,
- claim_space: h0,
+ claim_element: at,
+ claim_space: f0,
claim_text: pi,
create_component: Xt,
create_in_transition: uw,
destroy_component: Yt,
destroy_each: cw,
- detach: _e,
- element: lt,
- empty: od,
- ensure_array_like: ud,
- group_outros: nr,
+ detach: ve,
+ element: it,
+ empty: ud,
+ ensure_array_like: cd,
+ group_outros: tr,
init: fw,
- insert_hydration: At,
- listen: Mr,
+ insert_hydration: kt,
+ listen: U0,
mount_component: Zt,
- noop: f1,
- run_all: Tm,
+ noop: h1,
+ run_all: Cm,
safe_not_equal: hw,
set_data: gi,
- set_input_value: yu,
+ set_input_value: ku,
set_style: dw,
- space: d0,
+ space: h0,
stop_propagation: mw,
text: _i,
- toggle_class: ku,
- transition_in: ge,
- transition_out: ke
+ toggle_class: Du,
+ transition_in: _e,
+ transition_out: De
} = window.__gradio__svelte__internal, { createEventDispatcher: pw } = window.__gradio__svelte__internal, { onMount: gw } = window.__gradio__svelte__internal;
-function cd(n, e, t) {
+function fd(n, e, t) {
const r = n.slice();
- return r[55] = e[t], r;
+ return r[57] = e[t], r;
}
-function fd(n) {
+function hd(n) {
let e, t;
return e = new as({
props: {
@@ -26306,7 +26302,7 @@ function fd(n) {
/*show_label*/
n[3]
),
- Icon: Du,
+ Icon: Au,
float: !1,
label: (
/*label*/
@@ -26334,10 +26330,10 @@ function fd(n) {
r[4]("audio.audio")), e.$set(i);
},
i(r) {
- t || (ge(e.$$.fragment, r), t = !0);
+ t || (_e(e.$$.fragment, r), t = !0);
},
o(r) {
- ke(e.$$.fragment, r), t = !1;
+ De(e.$$.fragment, r), t = !1;
},
d(r) {
Yt(e, r);
@@ -26350,7 +26346,7 @@ function _w(n) {
n[16] === "open" && /*mode*/
n[1].includes("send")
), p, _, b, D;
- e = new ym({
+ e = new km({
props: {
audio_source_callback: (
/*audio_source_callback*/
@@ -26381,7 +26377,7 @@ function _w(n) {
n[9]
)
}
- }), r = new om({
+ }), r = new um({
props: { time_limit: (
/*_time_limit*/
n[15]
@@ -26400,29 +26396,29 @@ function _w(n) {
s = w(n), o = k[s] = y[s](n);
let E = (
/*stream_state*/
- n[16] === "closed" && hd(n)
+ n[16] === "closed" && dd(n)
), S = (
/*stream_state*/
n[16] === "open" && /*mode*/
- n[1] === "send-receive" && dd(n)
- ), T = h && md(n), C = (
+ n[1] === "send-receive" && md(n)
+ ), T = h && pd(n), C = (
/*options_open*/
n[14] && /*selected_device*/
- n[19] && pd(n)
+ n[19] && gd(n)
);
return {
c() {
- Xt(e.$$.fragment), t = d0(), Xt(r.$$.fragment), a = d0(), i = lt("div"), l = lt("button"), o.c(), u = d0(), E && E.c(), c = d0(), S && S.c(), d = d0(), T && T.c(), p = d0(), C && C.c(), this.h();
+ Xt(e.$$.fragment), t = h0(), Xt(r.$$.fragment), a = h0(), i = it("div"), l = it("button"), o.c(), u = h0(), E && E.c(), c = h0(), S && S.c(), d = h0(), T && T.c(), p = h0(), C && C.c(), this.h();
},
l(F) {
- Wt(e.$$.fragment, F), t = h0(F), Wt(r.$$.fragment, F), a = h0(F), i = it(F, "DIV", { class: !0 });
- var B = at(i);
- l = it(B, "BUTTON", { "aria-label": !0, class: !0 });
- var I = at(l);
- o.l(I), I.forEach(_e), u = h0(B), E && E.l(B), c = h0(B), S && S.l(B), d = h0(B), T && T.l(B), p = h0(B), C && C.l(B), B.forEach(_e), this.h();
+ Wt(e.$$.fragment, F), t = f0(F), Wt(r.$$.fragment, F), a = f0(F), i = at(F, "DIV", { class: !0 });
+ var B = nt(i);
+ l = at(B, "BUTTON", { "aria-label": !0, class: !0 });
+ var I = nt(l);
+ o.l(I), I.forEach(ve), u = f0(B), E && E.l(B), c = f0(B), S && S.l(B), d = f0(B), T && T.l(B), p = f0(B), C && C.l(B), B.forEach(ve), this.h();
},
h() {
- ve(l, "aria-label", "start stream"), ve(l, "class", "svelte-k2wuss"), ve(i, "class", "button-wrap svelte-k2wuss"), ku(
+ be(l, "aria-label", "start stream"), be(l, "class", "svelte-k2wuss"), be(i, "class", "button-wrap svelte-k2wuss"), Du(
i,
"pulse",
/*stopword_recognized*/
@@ -26430,7 +26426,7 @@ function _w(n) {
);
},
m(F, B) {
- Zt(e, F, B), At(F, t, B), Zt(r, F, B), At(F, a, B), At(F, i, B), $e(i, l), k[s].m(l, null), $e(i, u), E && E.m(i, null), $e(i, c), S && S.m(i, null), $e(i, d), T && T.m(i, null), $e(i, p), C && C.m(i, null), _ = !0, b || (D = Mr(
+ Zt(e, F, B), kt(F, t, B), Zt(r, F, B), kt(F, a, B), kt(F, i, B), et(i, l), k[s].m(l, null), et(i, u), E && E.m(i, null), et(i, c), S && S.m(i, null), et(i, d), T && T.m(i, null), et(i, p), C && C.m(i, null), _ = !0, b || (D = U0(
l,
"click",
/*start_stream*/
@@ -26456,31 +26452,31 @@ function _w(n) {
B[0] & /*_time_limit*/
32768 && (L.time_limit = /*_time_limit*/
F[15]), r.$set(L);
- let q = s;
- s = w(F), s === q ? k[s].p(F, B) : (nr(), ke(k[q], 1, 1, () => {
- k[q] = null;
- }), rr(), o = k[s], o ? o.p(F, B) : (o = k[s] = y[s](F), o.c()), ge(o, 1), o.m(l, null)), /*stream_state*/
+ let P = s;
+ s = w(F), s === P ? k[s].p(F, B) : (tr(), De(k[P], 1, 1, () => {
+ k[P] = null;
+ }), er(), o = k[s], o ? o.p(F, B) : (o = k[s] = y[s](F), o.c()), _e(o, 1), o.m(l, null)), /*stream_state*/
F[16] === "closed" ? E ? (E.p(F, B), B[0] & /*stream_state*/
- 65536 && ge(E, 1)) : (E = hd(F), E.c(), ge(E, 1), E.m(i, c)) : E && (nr(), ke(E, 1, 1, () => {
+ 65536 && _e(E, 1)) : (E = dd(F), E.c(), _e(E, 1), E.m(i, c)) : E && (tr(), De(E, 1, 1, () => {
E = null;
- }), rr()), /*stream_state*/
+ }), er()), /*stream_state*/
F[16] === "open" && /*mode*/
F[1] === "send-receive" ? S ? (S.p(F, B), B[0] & /*stream_state, mode*/
- 65538 && ge(S, 1)) : (S = dd(F), S.c(), ge(S, 1), S.m(i, d)) : S && (nr(), ke(S, 1, 1, () => {
+ 65538 && _e(S, 1)) : (S = md(F), S.c(), _e(S, 1), S.m(i, d)) : S && (tr(), De(S, 1, 1, () => {
S = null;
- }), rr()), B[0] & /*stream_state, mode*/
+ }), er()), B[0] & /*stream_state, mode*/
65538 && (h = /*stream_state*/
F[16] === "open" && /*mode*/
F[1].includes("send")), h ? T ? (T.p(F, B), B[0] & /*stream_state, mode*/
- 65538 && ge(T, 1)) : (T = md(F), T.c(), ge(T, 1), T.m(i, p)) : T && (nr(), ke(T, 1, 1, () => {
+ 65538 && _e(T, 1)) : (T = pd(F), T.c(), _e(T, 1), T.m(i, p)) : T && (tr(), De(T, 1, 1, () => {
T = null;
- }), rr()), /*options_open*/
+ }), er()), /*options_open*/
F[14] && /*selected_device*/
F[19] ? C ? (C.p(F, B), B[0] & /*options_open, selected_device*/
- 540672 && ge(C, 1)) : (C = pd(F), C.c(), ge(C, 1), C.m(i, null)) : C && (nr(), ke(C, 1, 1, () => {
+ 540672 && _e(C, 1)) : (C = gd(F), C.c(), _e(C, 1), C.m(i, null)) : C && (tr(), De(C, 1, 1, () => {
C = null;
- }), rr()), (!_ || B[0] & /*stopword_recognized*/
- 4096) && ku(
+ }), er()), (!_ || B[0] & /*stopword_recognized*/
+ 4096) && Du(
i,
"pulse",
/*stopword_recognized*/
@@ -26488,65 +26484,65 @@ function _w(n) {
);
},
i(F) {
- _ || (ge(e.$$.fragment, F), ge(r.$$.fragment, F), ge(o), ge(E), ge(S), ge(T), ge(C), _ = !0);
+ _ || (_e(e.$$.fragment, F), _e(r.$$.fragment, F), _e(o), _e(E), _e(S), _e(T), _e(C), _ = !0);
},
o(F) {
- ke(e.$$.fragment, F), ke(r.$$.fragment, F), ke(o), ke(E), ke(S), ke(T), ke(C), _ = !1;
+ De(e.$$.fragment, F), De(r.$$.fragment, F), De(o), De(E), De(S), De(T), De(C), _ = !1;
},
d(F) {
- F && (_e(t), _e(a), _e(i)), Yt(e, F), Yt(r, F), k[s].d(), E && E.d(), S && S.d(), T && T.d(), C && C.d(), b = !1, D();
+ F && (ve(t), ve(a), ve(i)), Yt(e, F), Yt(r, F), k[s].d(), E && E.d(), S && S.d(), T && T.d(), C && C.d(), b = !1, D();
}
};
}
function vw(n) {
let e, t, r, a;
- return t = new pm({ props: { icon: Cn } }), t.$on(
+ return t = new gm({ props: { icon: Cn } }), t.$on(
"click",
/*click_handler*/
- n[47]
+ n[49]
), {
c() {
- e = lt("div"), Xt(t.$$.fragment), this.h();
+ e = it("div"), Xt(t.$$.fragment), this.h();
},
l(i) {
- e = it(i, "DIV", { title: !0, style: !0 });
- var l = at(e);
- Wt(t.$$.fragment, l), l.forEach(_e), this.h();
+ e = at(i, "DIV", { title: !0, style: !0 });
+ var l = nt(e);
+ Wt(t.$$.fragment, l), l.forEach(ve), this.h();
},
h() {
- ve(e, "title", "grant webcam access"), dw(e, "height", "100%");
+ be(e, "title", "grant webcam access"), dw(e, "height", "100%");
},
m(i, l) {
- At(i, e, l), Zt(t, e, null), a = !0;
+ kt(i, e, l), Zt(t, e, null), a = !0;
},
- p: f1,
+ p: h1,
i(i) {
- a || (ge(t.$$.fragment, i), i && (r || sw(() => {
- r = uw(e, $u, { delay: 100, duration: 200 }), r.start();
+ a || (_e(t.$$.fragment, i), i && (r || ow(() => {
+ r = uw(e, e1, { delay: 100, duration: 200 }), r.start();
})), a = !0);
},
o(i) {
- ke(t.$$.fragment, i), a = !1;
+ De(t.$$.fragment, i), a = !1;
},
d(i) {
- i && _e(e), Yt(t);
+ i && ve(e), Yt(t);
}
};
}
function bw(n) {
let e, t, r, a, i, l;
function s(h) {
- n[43](h);
- }
- function o(h) {
- n[44](h);
- }
- function u(h) {
n[45](h);
}
- function c(h) {
+ function o(h) {
n[46](h);
}
+ function u(h) {
+ n[47](h);
+ }
+ function c(h) {
+ n[48](h);
+ }
let d = {
start_stream: (
/*start_stream*/
@@ -26602,7 +26598,7 @@ function bw(n) {
n[21] !== void 0 && (d.is_muted = /*is_muted*/
n[21]), /*is_mic_muted*/
n[22] !== void 0 && (d.is_mic_muted = /*is_mic_muted*/
- n[22]), e = new aw({ props: d }), Ra.push(() => pl(e, "value", s)), Ra.push(() => pl(e, "stream_state", o)), Ra.push(() => pl(e, "is_muted", u)), Ra.push(() => pl(e, "is_mic_muted", c)), {
+ n[22]), e = new iw({ props: d }), Ra.push(() => pl(e, "value", s)), Ra.push(() => pl(e, "stream_state", o)), Ra.push(() => pl(e, "is_muted", u)), Ra.push(() => pl(e, "is_mic_muted", c)), {
c() {
Xt(e.$$.fragment);
},
@@ -26635,10 +26631,10 @@ function bw(n) {
h[22], ml(() => i = !1)), e.$set(_);
},
i(h) {
- l || (ge(e.$$.fragment, h), l = !0);
+ l || (_e(e.$$.fragment, h), l = !0);
},
o(h) {
- ke(e.$$.fragment, h), l = !1;
+ De(e.$$.fragment, h), l = !1;
},
d(h) {
Yt(e, h);
@@ -26654,20 +26650,20 @@ function ww(n) {
), l, s;
return r = new Xl({}), {
c() {
- e = lt("div"), t = lt("div"), Xt(r.$$.fragment), a = d0(), l = _i(i), this.h();
+ e = it("div"), t = it("div"), Xt(r.$$.fragment), a = h0(), l = _i(i), this.h();
},
l(o) {
- e = it(o, "DIV", { class: !0 });
- var u = at(e);
- t = it(u, "DIV", { class: !0, title: !0 });
- var c = at(t);
- Wt(r.$$.fragment, c), c.forEach(_e), a = h0(u), l = pi(u, i), u.forEach(_e), this.h();
+ e = at(o, "DIV", { class: !0 });
+ var u = nt(e);
+ t = at(u, "DIV", { class: !0, title: !0 });
+ var c = nt(t);
+ Wt(r.$$.fragment, c), c.forEach(ve), a = f0(u), l = pi(u, i), u.forEach(ve), this.h();
},
h() {
- ve(t, "class", "icon color-primary svelte-k2wuss"), ve(t, "title", "start recording"), ve(e, "class", "icon-with-text svelte-k2wuss");
+ be(t, "class", "icon color-primary svelte-k2wuss"), be(t, "title", "start recording"), be(e, "class", "icon-with-text svelte-k2wuss");
},
m(o, u) {
- At(o, e, u), $e(e, t), Zt(r, t, null), $e(e, a), $e(e, l), s = !0;
+ kt(o, e, u), et(e, t), Zt(r, t, null), et(e, a), et(e, l), s = !0;
},
p(o, u) {
(!s || u[0] & /*button_labels, i18n*/
@@ -26676,13 +26672,13 @@ function ww(n) {
o[4]("audio.record")) + "") && gi(l, i);
},
i(o) {
- s || (ge(r.$$.fragment, o), s = !0);
+ s || (_e(r.$$.fragment, o), s = !0);
},
o(o) {
- ke(r.$$.fragment, o), s = !1;
+ De(r.$$.fragment, o), s = !1;
},
d(o) {
- o && _e(e), Yt(r);
+ o && ve(e), Yt(r);
}
};
}
@@ -26701,36 +26697,36 @@ function yw(n) {
}
return t = c(n), r = u[t] = o[t](n), {
c() {
- e = lt("div"), r.c(), a = d0(), l = _i(i), this.h();
+ e = it("div"), r.c(), a = h0(), l = _i(i), this.h();
},
l(d) {
- e = it(d, "DIV", { class: !0 });
- var h = at(e);
- r.l(h), a = h0(h), l = pi(h, i), h.forEach(_e), this.h();
+ e = at(d, "DIV", { class: !0 });
+ var h = nt(e);
+ r.l(h), a = f0(h), l = pi(h, i), h.forEach(ve), this.h();
},
h() {
- ve(e, "class", "icon-with-text svelte-k2wuss");
+ be(e, "class", "icon-with-text svelte-k2wuss");
},
m(d, h) {
- At(d, e, h), u[t].m(e, null), $e(e, a), $e(e, l), s = !0;
+ kt(d, e, h), u[t].m(e, null), et(e, a), et(e, l), s = !0;
},
p(d, h) {
let p = t;
- t = c(d), t === p ? u[t].p(d, h) : (nr(), ke(u[p], 1, 1, () => {
+ t = c(d), t === p ? u[t].p(d, h) : (tr(), De(u[p], 1, 1, () => {
u[p] = null;
- }), rr(), r = u[t], r ? r.p(d, h) : (r = u[t] = o[t](d), r.c()), ge(r, 1), r.m(e, a)), (!s || h[0] & /*button_labels, i18n*/
+ }), er(), r = u[t], r ? r.p(d, h) : (r = u[t] = o[t](d), r.c()), _e(r, 1), r.m(e, a)), (!s || h[0] & /*button_labels, i18n*/
1040) && i !== (i = /*button_labels*/
(d[10].stop || /*i18n*/
d[4]("audio.stop")) + "") && gi(l, i);
},
i(d) {
- s || (ge(r), s = !0);
+ s || (_e(r), s = !0);
},
o(d) {
- ke(r), s = !1;
+ De(r), s = !1;
},
d(d) {
- d && _e(e), u[t].d();
+ d && ve(e), u[t].d();
}
};
}
@@ -26739,22 +26735,22 @@ function kw(n) {
/*button_labels*/
(n[10].waiting || "Connecting...") + ""
), l, s;
- return r = new Eu({}), {
+ return r = new Su({}), {
c() {
- e = lt("div"), t = lt("div"), Xt(r.$$.fragment), a = d0(), l = _i(i), this.h();
+ e = it("div"), t = it("div"), Xt(r.$$.fragment), a = h0(), l = _i(i), this.h();
},
l(o) {
- e = it(o, "DIV", { class: !0 });
- var u = at(e);
- t = it(u, "DIV", { class: !0, title: !0 });
- var c = at(t);
- Wt(r.$$.fragment, c), c.forEach(_e), a = h0(u), l = pi(u, i), u.forEach(_e), this.h();
+ e = at(o, "DIV", { class: !0 });
+ var u = nt(e);
+ t = at(u, "DIV", { class: !0, title: !0 });
+ var c = nt(t);
+ Wt(r.$$.fragment, c), c.forEach(ve), a = f0(u), l = pi(u, i), u.forEach(ve), this.h();
},
h() {
- ve(t, "class", "icon color-primary svelte-k2wuss"), ve(t, "title", "spinner"), ve(e, "class", "icon-with-text svelte-k2wuss");
+ be(t, "class", "icon color-primary svelte-k2wuss"), be(t, "title", "spinner"), be(e, "class", "icon-with-text svelte-k2wuss");
},
m(o, u) {
- At(o, e, u), $e(e, t), Zt(r, t, null), $e(e, a), $e(e, l), s = !0;
+ kt(o, e, u), et(e, t), Zt(r, t, null), et(e, a), et(e, l), s = !0;
},
p(o, u) {
(!s || u[0] & /*button_labels*/
@@ -26762,13 +26758,13 @@ function kw(n) {
(o[10].waiting || "Connecting...") + "") && gi(l, i);
},
i(o) {
- s || (ge(r.$$.fragment, o), s = !0);
+ s || (_e(r.$$.fragment, o), s = !0);
},
o(o) {
- ke(r.$$.fragment, o), s = !1;
+ De(r.$$.fragment, o), s = !1;
},
d(o) {
- o && _e(e), Yt(r);
+ o && ve(e), Yt(r);
}
};
}
@@ -26776,28 +26772,28 @@ function Dw(n) {
let e, t, r;
return t = new Xl({}), {
c() {
- e = lt("div"), Xt(t.$$.fragment), this.h();
+ e = it("div"), Xt(t.$$.fragment), this.h();
},
l(a) {
- e = it(a, "DIV", { class: !0, title: !0 });
- var i = at(e);
- Wt(t.$$.fragment, i), i.forEach(_e), this.h();
+ e = at(a, "DIV", { class: !0, title: !0 });
+ var i = nt(e);
+ Wt(t.$$.fragment, i), i.forEach(ve), this.h();
},
h() {
- ve(e, "class", "icon color-primary svelte-k2wuss"), ve(e, "title", "start recording");
+ be(e, "class", "icon color-primary svelte-k2wuss"), be(e, "title", "start recording");
},
m(a, i) {
- At(a, e, i), Zt(t, e, null), r = !0;
+ kt(a, e, i), Zt(t, e, null), r = !0;
},
- p: f1,
+ p: h1,
i(a) {
- r || (ge(t.$$.fragment, a), r = !0);
+ r || (_e(t.$$.fragment, a), r = !0);
},
o(a) {
- ke(t.$$.fragment, a), r = !1;
+ De(t.$$.fragment, a), r = !1;
},
d(a) {
- a && _e(e), Yt(t);
+ a && ve(e), Yt(t);
}
};
}
@@ -26822,21 +26818,21 @@ function Aw(n) {
}
}), {
c() {
- e = lt("div"), Xt(t.$$.fragment), this.h();
+ e = it("div"), Xt(t.$$.fragment), this.h();
},
l(i) {
- e = it(i, "DIV", { class: !0, title: !0, style: !0 });
- var l = at(e);
- Wt(t.$$.fragment, l), l.forEach(_e), this.h();
+ e = at(i, "DIV", { class: !0, title: !0, style: !0 });
+ var l = nt(e);
+ Wt(t.$$.fragment, l), l.forEach(ve), this.h();
},
h() {
- ve(e, "class", "icon svelte-k2wuss"), ve(e, "title", "stop recording"), ve(e, "style", r = `fill: ${/*icon_button_color*/
+ be(e, "class", "icon svelte-k2wuss"), be(e, "title", "stop recording"), be(e, "style", r = `fill: ${/*icon_button_color*/
n[7]}; stroke: ${/*icon_button_color*/
n[7]}; color: ${/*icon_button_color*/
n[7]};`);
},
m(i, l) {
- At(i, e, l), Zt(t, e, null), a = !0;
+ kt(i, e, l), Zt(t, e, null), a = !0;
},
p(i, l) {
const s = {};
@@ -26848,54 +26844,54 @@ function Aw(n) {
128 && r !== (r = `fill: ${/*icon_button_color*/
i[7]}; stroke: ${/*icon_button_color*/
i[7]}; color: ${/*icon_button_color*/
- i[7]};`)) && ve(e, "style", r);
+ i[7]};`)) && be(e, "style", r);
},
i(i) {
- a || (ge(t.$$.fragment, i), a = !0);
+ a || (_e(t.$$.fragment, i), a = !0);
},
o(i) {
- ke(t.$$.fragment, i), a = !1;
+ De(t.$$.fragment, i), a = !1;
},
d(i) {
- i && _e(e), Yt(t);
- }
- };
-}
-function hd(n) {
- let e, t, r, a, i;
- return t = new Yl({}), {
- c() {
- e = lt("button"), Xt(t.$$.fragment), this.h();
- },
- l(l) {
- e = it(l, "BUTTON", { class: !0, "aria-label": !0 });
- var s = at(e);
- Wt(t.$$.fragment, s), s.forEach(_e), this.h();
- },
- h() {
- ve(e, "class", "icon svelte-k2wuss"), ve(e, "aria-label", "select input source");
- },
- m(l, s) {
- At(l, e, s), Zt(t, e, null), r = !0, a || (i = Mr(
- e,
- "click",
- /*click_handler_1*/
- n[48]
- ), a = !0);
- },
- p: f1,
- i(l) {
- r || (ge(t.$$.fragment, l), r = !0);
- },
- o(l) {
- ke(t.$$.fragment, l), r = !1;
- },
- d(l) {
- l && _e(e), Yt(t), a = !1, i();
+ i && ve(e), Yt(t);
}
};
}
function dd(n) {
+ let e, t, r, a, i;
+ return t = new Yl({}), {
+ c() {
+ e = it("button"), Xt(t.$$.fragment), this.h();
+ },
+ l(l) {
+ e = at(l, "BUTTON", { class: !0, "aria-label": !0 });
+ var s = nt(e);
+ Wt(t.$$.fragment, s), s.forEach(ve), this.h();
+ },
+ h() {
+ be(e, "class", "icon svelte-k2wuss"), be(e, "aria-label", "select input source");
+ },
+ m(l, s) {
+ kt(l, e, s), Zt(t, e, null), r = !0, a || (i = U0(
+ e,
+ "click",
+ /*click_handler_1*/
+ n[50]
+ ), a = !0);
+ },
+ p: h1,
+ i(l) {
+ r || (_e(t.$$.fragment, l), r = !0);
+ },
+ o(l) {
+ De(t.$$.fragment, l), r = !1;
+ },
+ d(l) {
+ l && ve(e), Yt(t), a = !1, i();
+ }
+ };
+}
+function md(n) {
let e, t, r, a, i, l, s, o, u;
const c = [Sw, Ew], d = [];
function h(p, _) {
@@ -26906,24 +26902,24 @@ function dd(n) {
}
return r = h(n), a = d[r] = c[r](n), {
c() {
- e = lt("button"), t = lt("div"), a.c(), this.h();
+ e = it("button"), t = it("div"), a.c(), this.h();
},
l(p) {
- e = it(p, "BUTTON", { class: !0, "aria-label": !0 });
- var _ = at(e);
- t = it(_, "DIV", { class: !0, style: !0 });
- var b = at(t);
- a.l(b), b.forEach(_e), _.forEach(_e), this.h();
+ e = at(p, "BUTTON", { class: !0, "aria-label": !0 });
+ var _ = nt(e);
+ t = at(_, "DIV", { class: !0, style: !0 });
+ var b = nt(t);
+ a.l(b), b.forEach(ve), _.forEach(ve), this.h();
},
h() {
- ve(t, "class", "icon svelte-k2wuss"), ve(t, "style", i = `fill: ${/*icon_button_color*/
+ be(t, "class", "icon svelte-k2wuss"), be(t, "style", i = `fill: ${/*icon_button_color*/
n[7]}; stroke: ${/*icon_button_color*/
n[7]}; color: ${/*icon_button_color*/
- n[7]};`), ve(e, "class", "mute-button svelte-k2wuss"), ve(e, "aria-label", l = /*is_muted*/
+ n[7]};`), be(e, "class", "mute-button svelte-k2wuss"), be(e, "aria-label", l = /*is_muted*/
n[21] ? "unmute audio" : "mute audio");
},
m(p, _) {
- At(p, e, _), $e(e, t), d[r].m(t, null), s = !0, o || (u = Mr(
+ kt(p, e, _), et(e, t), d[r].m(t, null), s = !0, o || (u = U0(
e,
"click",
/*toggleMute*/
@@ -26932,24 +26928,24 @@ function dd(n) {
},
p(p, _) {
let b = r;
- r = h(p), r !== b && (nr(), ke(d[b], 1, 1, () => {
+ r = h(p), r !== b && (tr(), De(d[b], 1, 1, () => {
d[b] = null;
- }), rr(), a = d[r], a || (a = d[r] = c[r](p), a.c()), ge(a, 1), a.m(t, null)), (!s || _[0] & /*icon_button_color*/
+ }), er(), a = d[r], a || (a = d[r] = c[r](p), a.c()), _e(a, 1), a.m(t, null)), (!s || _[0] & /*icon_button_color*/
128 && i !== (i = `fill: ${/*icon_button_color*/
p[7]}; stroke: ${/*icon_button_color*/
p[7]}; color: ${/*icon_button_color*/
- p[7]};`)) && ve(t, "style", i), (!s || _[0] & /*is_muted*/
+ p[7]};`)) && be(t, "style", i), (!s || _[0] & /*is_muted*/
2097152 && l !== (l = /*is_muted*/
- p[21] ? "unmute audio" : "mute audio")) && ve(e, "aria-label", l);
+ p[21] ? "unmute audio" : "mute audio")) && be(e, "aria-label", l);
},
i(p) {
- s || (ge(a), s = !0);
+ s || (_e(a), s = !0);
},
o(p) {
- ke(a), s = !1;
+ De(a), s = !1;
},
d(p) {
- p && _e(e), d[r].d(), o = !1, u();
+ p && ve(e), d[r].d(), o = !1, u();
}
};
}
@@ -26966,10 +26962,10 @@ function Ew(n) {
Zt(e, r, a), t = !0;
},
i(r) {
- t || (ge(e.$$.fragment, r), t = !0);
+ t || (_e(e.$$.fragment, r), t = !0);
},
o(r) {
- ke(e.$$.fragment, r), t = !1;
+ De(e.$$.fragment, r), t = !1;
},
d(r) {
Yt(e, r);
@@ -26989,17 +26985,17 @@ function Sw(n) {
Zt(e, r, a), t = !0;
},
i(r) {
- t || (ge(e.$$.fragment, r), t = !0);
+ t || (_e(e.$$.fragment, r), t = !0);
},
o(r) {
- ke(e.$$.fragment, r), t = !1;
+ De(e.$$.fragment, r), t = !1;
},
d(r) {
Yt(e, r);
}
};
}
-function md(n) {
+function pd(n) {
let e, t, r, a, i, l, s, o, u;
const c = [Tw, xw], d = [];
function h(p, _) {
@@ -27010,24 +27006,24 @@ function md(n) {
}
return r = h(n), a = d[r] = c[r](n), {
c() {
- e = lt("button"), t = lt("div"), a.c(), this.h();
+ e = it("button"), t = it("div"), a.c(), this.h();
},
l(p) {
- e = it(p, "BUTTON", { class: !0, "aria-label": !0 });
- var _ = at(e);
- t = it(_, "DIV", { class: !0, style: !0 });
- var b = at(t);
- a.l(b), b.forEach(_e), _.forEach(_e), this.h();
+ e = at(p, "BUTTON", { class: !0, "aria-label": !0 });
+ var _ = nt(e);
+ t = at(_, "DIV", { class: !0, style: !0 });
+ var b = nt(t);
+ a.l(b), b.forEach(ve), _.forEach(ve), this.h();
},
h() {
- ve(t, "class", "icon svelte-k2wuss"), ve(t, "style", i = `fill: ${/*icon_button_color*/
+ be(t, "class", "icon svelte-k2wuss"), be(t, "style", i = `fill: ${/*icon_button_color*/
n[7]}; stroke: ${/*icon_button_color*/
n[7]}; color: ${/*icon_button_color*/
- n[7]};`), ve(e, "class", "mute-button svelte-k2wuss"), ve(e, "aria-label", l = /*is_mic_muted*/
+ n[7]};`), be(e, "class", "mute-button svelte-k2wuss"), be(e, "aria-label", l = /*is_mic_muted*/
n[22] ? "unmute mic" : "mute mic");
},
m(p, _) {
- At(p, e, _), $e(e, t), d[r].m(t, null), s = !0, o || (u = Mr(
+ kt(p, e, _), et(e, t), d[r].m(t, null), s = !0, o || (u = U0(
e,
"click",
/*toggleMuteMicrophone*/
@@ -27036,24 +27032,24 @@ function md(n) {
},
p(p, _) {
let b = r;
- r = h(p), r !== b && (nr(), ke(d[b], 1, 1, () => {
+ r = h(p), r !== b && (tr(), De(d[b], 1, 1, () => {
d[b] = null;
- }), rr(), a = d[r], a || (a = d[r] = c[r](p), a.c()), ge(a, 1), a.m(t, null)), (!s || _[0] & /*icon_button_color*/
+ }), er(), a = d[r], a || (a = d[r] = c[r](p), a.c()), _e(a, 1), a.m(t, null)), (!s || _[0] & /*icon_button_color*/
128 && i !== (i = `fill: ${/*icon_button_color*/
p[7]}; stroke: ${/*icon_button_color*/
p[7]}; color: ${/*icon_button_color*/
- p[7]};`)) && ve(t, "style", i), (!s || _[0] & /*is_mic_muted*/
+ p[7]};`)) && be(t, "style", i), (!s || _[0] & /*is_mic_muted*/
4194304 && l !== (l = /*is_mic_muted*/
- p[22] ? "unmute mic" : "mute mic")) && ve(e, "aria-label", l);
+ p[22] ? "unmute mic" : "mute mic")) && be(e, "aria-label", l);
},
i(p) {
- s || (ge(a), s = !0);
+ s || (_e(a), s = !0);
},
o(p) {
- ke(a), s = !1;
+ De(a), s = !1;
},
d(p) {
- p && _e(e), d[r].d(), o = !1, u();
+ p && ve(e), d[r].d(), o = !1, u();
}
};
}
@@ -27070,10 +27066,10 @@ function xw(n) {
Zt(e, r, a), t = !0;
},
i(r) {
- t || (ge(e.$$.fragment, r), t = !0);
+ t || (_e(e.$$.fragment, r), t = !0);
},
o(r) {
- ke(e.$$.fragment, r), t = !1;
+ De(e.$$.fragment, r), t = !1;
},
d(r) {
Yt(e, r);
@@ -27082,7 +27078,7 @@ function xw(n) {
}
function Tw(n) {
let e, t;
- return e = new bu({}), {
+ return e = new wu({}), {
c() {
Xt(e.$$.fragment);
},
@@ -27093,17 +27089,17 @@ function Tw(n) {
Zt(e, r, a), t = !0;
},
i(r) {
- t || (ge(e.$$.fragment, r), t = !0);
+ t || (_e(e.$$.fragment, r), t = !0);
},
o(r) {
- ke(e.$$.fragment, r), t = !1;
+ De(e.$$.fragment, r), t = !1;
},
d(r) {
Yt(e, r);
}
};
}
-function pd(n) {
+function gd(n) {
let e, t, r, a, i, l, s;
r = new Yl({});
function o(d, h) {
@@ -27115,31 +27111,31 @@ function pd(n) {
let u = o(n), c = u(n);
return {
c() {
- e = lt("select"), t = lt("button"), Xt(r.$$.fragment), a = d0(), c.c(), this.h();
+ e = it("select"), t = it("button"), Xt(r.$$.fragment), a = h0(), c.c(), this.h();
},
l(d) {
- e = it(d, "SELECT", { class: !0, "aria-label": !0 });
- var h = at(e);
- t = it(h, "BUTTON", { class: !0 });
- var p = at(t);
- Wt(r.$$.fragment, p), a = h0(p), p.forEach(_e), c.l(h), h.forEach(_e), this.h();
+ e = at(d, "SELECT", { class: !0, "aria-label": !0 });
+ var h = nt(e);
+ t = at(h, "BUTTON", { class: !0 });
+ var p = nt(t);
+ Wt(r.$$.fragment, p), a = f0(p), p.forEach(ve), c.l(h), h.forEach(ve), this.h();
},
h() {
- ve(t, "class", "inset-icon svelte-k2wuss"), ve(e, "class", "select-wrap svelte-k2wuss"), ve(e, "aria-label", "select source");
+ be(t, "class", "inset-icon svelte-k2wuss"), be(e, "class", "select-wrap svelte-k2wuss"), be(e, "aria-label", "select source");
},
m(d, h) {
- At(d, e, h), $e(e, t), Zt(r, t, null), $e(t, a), c.m(e, null), i = !0, l || (s = [
- Mr(t, "click", mw(
+ kt(d, e, h), et(e, t), Zt(r, t, null), et(t, a), c.m(e, null), i = !0, l || (s = [
+ U0(t, "click", mw(
/*click_handler_2*/
- n[49]
+ n[51]
)),
- lw(zw.call(
+ sw(zw.call(
null,
e,
/*handle_click_outside*/
n[27]
)),
- Mr(
+ U0(
e,
"change",
/*handle_device_change*/
@@ -27151,50 +27147,50 @@ function pd(n) {
u === (u = o(d)) && c ? c.p(d, h) : (c.d(1), c = u(d), c && (c.c(), c.m(e, null)));
},
i(d) {
- i || (ge(r.$$.fragment, d), i = !0);
+ i || (_e(r.$$.fragment, d), i = !0);
},
o(d) {
- ke(r.$$.fragment, d), i = !1;
+ De(r.$$.fragment, d), i = !1;
},
d(d) {
- d && _e(e), Yt(r), c.d(), l = !1, Tm(s);
+ d && ve(e), Yt(r), c.d(), l = !1, Cm(s);
}
};
}
function Cw(n) {
- let e, t = ud(
+ let e, t = cd(
/*available_audio_devices*/
n[18]
), r = [];
for (let a = 0; a < t.length; a += 1)
- r[a] = gd(cd(n, t, a));
+ r[a] = _d(fd(n, t, a));
return {
c() {
for (let a = 0; a < r.length; a += 1)
r[a].c();
- e = od();
+ e = ud();
},
l(a) {
for (let i = 0; i < r.length; i += 1)
r[i].l(a);
- e = od();
+ e = ud();
},
m(a, i) {
for (let l = 0; l < r.length; l += 1)
r[l] && r[l].m(a, i);
- At(a, e, i);
+ kt(a, e, i);
},
p(a, i) {
if (i[0] & /*available_audio_devices, selected_device*/
786432) {
- t = ud(
+ t = cd(
/*available_audio_devices*/
a[18]
);
let l;
for (l = 0; l < t.length; l += 1) {
- const s = cd(a, t, l);
- r[l] ? r[l].p(s, i) : (r[l] = gd(s), r[l].c(), r[l].m(e.parentNode, e));
+ const s = fd(a, t, l);
+ r[l] ? r[l].p(s, i) : (r[l] = _d(s), r[l].c(), r[l].m(e.parentNode, e));
}
for (; l < r.length; l += 1)
r[l].d(1);
@@ -27202,7 +27198,7 @@ function Cw(n) {
}
},
d(a) {
- a && _e(e), cw(r, a);
+ a && ve(e), cw(r, a);
}
};
}
@@ -27213,18 +27209,18 @@ function Fw(n) {
), r;
return {
c() {
- e = lt("option"), r = _i(t), this.h();
+ e = it("option"), r = _i(t), this.h();
},
l(a) {
- e = it(a, "OPTION", { class: !0 });
- var i = at(e);
- r = pi(i, t), i.forEach(_e), this.h();
+ e = at(a, "OPTION", { class: !0 });
+ var i = nt(e);
+ r = pi(i, t), i.forEach(ve), this.h();
},
h() {
- e.__value = "", yu(e, e.__value), ve(e, "class", "svelte-k2wuss");
+ e.__value = "", ku(e, e.__value), be(e, "class", "svelte-k2wuss");
},
m(a, i) {
- At(a, e, i), $e(e, r);
+ kt(a, e, i), et(e, r);
},
p(a, i) {
i[0] & /*i18n*/
@@ -27232,52 +27228,52 @@ function Fw(n) {
a[4]("common.no_devices") + "") && gi(r, t);
},
d(a) {
- a && _e(e);
+ a && ve(e);
}
};
}
-function gd(n) {
+function _d(n) {
let e, t = (
/*device*/
- n[55].label + ""
+ n[57].label + ""
), r, a, i, l;
return {
c() {
- e = lt("option"), r = _i(t), a = d0(), this.h();
+ e = it("option"), r = _i(t), a = h0(), this.h();
},
l(s) {
- e = it(s, "OPTION", { class: !0 });
- var o = at(e);
- r = pi(o, t), a = h0(o), o.forEach(_e), this.h();
+ e = at(s, "OPTION", { class: !0 });
+ var o = nt(e);
+ r = pi(o, t), a = f0(o), o.forEach(ve), this.h();
},
h() {
e.__value = i = /*device*/
- n[55].deviceId, yu(e, e.__value), e.selected = l = /*selected_device*/
+ n[57].deviceId, ku(e, e.__value), e.selected = l = /*selected_device*/
n[19].deviceId === /*device*/
- n[55].deviceId, ve(e, "class", "svelte-k2wuss");
+ n[57].deviceId, be(e, "class", "svelte-k2wuss");
},
m(s, o) {
- At(s, e, o), $e(e, r), $e(e, a);
+ kt(s, e, o), et(e, r), et(e, a);
},
p(s, o) {
o[0] & /*available_audio_devices*/
262144 && t !== (t = /*device*/
- s[55].label + "") && gi(r, t), o[0] & /*available_audio_devices*/
+ s[57].label + "") && gi(r, t), o[0] & /*available_audio_devices*/
262144 && i !== (i = /*device*/
- s[55].deviceId) && (e.__value = i, yu(e, e.__value)), o[0] & /*selected_device, available_audio_devices*/
+ s[57].deviceId) && (e.__value = i, ku(e, e.__value)), o[0] & /*selected_device, available_audio_devices*/
786432 && l !== (l = /*selected_device*/
s[19].deviceId === /*device*/
- s[55].deviceId) && (e.selected = l);
+ s[57].deviceId) && (e.selected = l);
},
d(s) {
- s && _e(e);
+ s && ve(e);
}
};
}
function Mw(n) {
let e, t, r, a, i, l, s, o, u, c = (
/*variant*/
- n[11] !== "textbox" && fd(n)
+ n[11] !== "textbox" && hd(n)
);
const d = [bw, vw, _w], h = [];
function p(_, b) {
@@ -27291,57 +27287,69 @@ function Mw(n) {
}
return i = p(n), l = h[i] = d[i](n), {
c() {
- c && c.c(), e = d0(), t = lt("div"), r = lt("audio"), a = d0(), l.c(), this.h();
+ c && c.c(), e = h0(), t = it("div"), r = it("audio"), a = h0(), l.c(), this.h();
},
l(_) {
- c && c.l(_), e = h0(_), t = it(_, "DIV", { class: !0 });
- var b = at(t);
- r = it(b, "AUDIO", { class: !0 }), at(r).forEach(_e), a = h0(b), l.l(b), b.forEach(_e), this.h();
+ c && c.l(_), e = f0(_), t = at(_, "DIV", { class: !0 });
+ var b = nt(t);
+ r = at(b, "AUDIO", { class: !0 }), nt(r).forEach(ve), a = f0(b), l.l(b), b.forEach(ve), this.h();
},
h() {
- ve(r, "class", "standard-player svelte-k2wuss"), ku(r, "hidden", !0), ve(t, "class", "audio-container svelte-k2wuss");
+ be(r, "class", "standard-player svelte-k2wuss"), Du(r, "hidden", !0), be(t, "class", "audio-container svelte-k2wuss");
},
m(_, b) {
- c && c.m(_, b), At(_, e, b), At(_, t, b), $e(t, r), n[40](r), $e(t, a), h[i].m(t, null), s = !0, o || (u = [
- Mr(
+ c && c.m(_, b), kt(_, e, b), kt(_, t, b), et(t, r), n[42](r), et(t, a), h[i].m(t, null), s = !0, o || (u = [
+ U0(
r,
"load",
/*load_handler*/
n[39]
),
- Mr(
+ U0(
r,
"ended",
/*ended_handler*/
- n[41]
+ n[43]
),
- Mr(
+ U0(
r,
"play",
/*play_handler*/
- n[42]
+ n[44]
+ ),
+ U0(
+ r,
+ "start_recording",
+ /*start_recording_handler*/
+ n[40]
+ ),
+ U0(
+ r,
+ "stop_recording",
+ /*stop_recording_handler*/
+ n[41]
)
], o = !0);
},
p(_, b) {
/*variant*/
_[11] !== "textbox" ? c ? (c.p(_, b), b[0] & /*variant*/
- 2048 && ge(c, 1)) : (c = fd(_), c.c(), ge(c, 1), c.m(e.parentNode, e)) : c && (nr(), ke(c, 1, 1, () => {
+ 2048 && _e(c, 1)) : (c = hd(_), c.c(), _e(c, 1), c.m(e.parentNode, e)) : c && (tr(), De(c, 1, 1, () => {
c = null;
- }), rr());
+ }), er());
let D = i;
- i = p(_), i === D ? h[i].p(_, b) : (nr(), ke(h[D], 1, 1, () => {
+ i = p(_), i === D ? h[i].p(_, b) : (tr(), De(h[D], 1, 1, () => {
h[D] = null;
- }), rr(), l = h[i], l ? l.p(_, b) : (l = h[i] = d[i](_), l.c()), ge(l, 1), l.m(t, null));
+ }), er(), l = h[i], l ? l.p(_, b) : (l = h[i] = d[i](_), l.c()), _e(l, 1), l.m(t, null));
},
i(_) {
- s || (ge(c), ge(l), s = !0);
+ s || (_e(c), _e(l), s = !0);
},
o(_) {
- ke(c), ke(l), s = !1;
+ De(c), De(l), s = !1;
},
d(_) {
- _ && (_e(e), _e(t)), c && c.d(_), n[40](null), h[i].d(), o = !1, Tm(u);
+ _ && (ve(e), ve(t)), c && c.d(_), n[42](null), h[i].d(), o = !1, Cm(u);
}
};
}
@@ -27356,177 +27364,183 @@ function zw(n, e) {
};
}
function Bw(n, e, t) {
- var r = this && this.__awaiter || function(Z, et, O, Se) {
- function We(tt) {
- return tt instanceof O ? tt : new O(function(l0) {
- l0(tt);
+ var r = this && this.__awaiter || function(N, me, ie, Qe) {
+ function W0(Dt) {
+ return Dt instanceof ie ? Dt : new ie(function(At) {
+ At(Dt);
});
}
- return new (O || (O = Promise))(function(tt, l0) {
- function s0(dt) {
+ return new (ie || (ie = Promise))(function(Dt, At) {
+ function _r(Re) {
try {
- B0(Se.next(dt));
- } catch (p0) {
- l0(p0);
+ m0(Qe.next(Re));
+ } catch (Jt) {
+ At(Jt);
}
}
- function Jt(dt) {
+ function l0(Re) {
try {
- B0(Se.throw(dt));
- } catch (p0) {
- l0(p0);
+ m0(Qe.throw(Re));
+ } catch (Jt) {
+ At(Jt);
}
}
- function B0(dt) {
- dt.done ? tt(dt.value) : We(dt.value).then(s0, Jt);
+ function m0(Re) {
+ Re.done ? Dt(Re.value) : W0(Re.value).then(_r, l0);
}
- B0((Se = Se.apply(Z, et || [])).next());
+ m0((Qe = Qe.apply(N, me || [])).next());
});
};
let { mode: a } = e, { value: i = null } = e, { label: l = void 0 } = e, { show_label: s = !0 } = e, { rtc_configuration: o = null } = e, { i18n: u } = e, { time_limit: c = null } = e, { track_constraints: d = {} } = e, { rtp_params: h = {} } = e, { on_change_cb: p } = e, { reject_cb: _ } = e, { icon: b = void 0 } = e, { icon_button_color: D = "var(--color-accent)" } = e, { pulse_color: y = "var(--color-accent)" } = e, { icon_radius: k = 50 } = e, { button_labels: w } = e, { variant: E = "wave" } = e, S = !1, T = !1, C;
gw(() => {
(i == null ? void 0 : i.webrtc_id) === "__webrtc_value__" && t(38, C = new Audio("https://huggingface.co/datasets/freddyaboulton/bucket/resolve/main/pop-sounds.mp3"));
});
- let F = (Z) => {
- Z === "stopword" ? (t(12, T = !0), setTimeout(
+ let F = (N) => {
+ N === "stopword" ? (t(12, T = !0), setTimeout(
() => {
t(12, T = !1);
},
3e3
- )) : Z.type === "end_stream" ? (t(16, q = "closed"), r0(Y), p(Z)) : (console.debug("calling on_change_cb with msg", Z), p(Z));
- }, B = !1, I = null, { server: L } = e, q = "closed", J, Y, H = null, Q, fe, ue = null, De = !1, we = !1, te = !1;
- const de = () => a === "send" ? Q : J.srcObject, he = pw();
+ )) : N.type === "end_stream" ? (t(16, P = "closed"), r0(O), p(N)) : (console.debug("calling on_change_cb with msg", N), p(N));
+ }, B = !1, I = null, { server: L } = e, P = "closed", Z, O, se = null, K, he, ue = null, Ae = !1, ye = !1, $ = !1;
+ const de = () => a === "send" ? K : Z.srcObject, ce = pw();
function Ce() {
return r(this, void 0, void 0, function* () {
try {
- const et = ue ? Object.assign(
+ const me = ue ? Object.assign(
{
deviceId: { exact: ue.deviceId }
},
d
) : d;
- Q = yield navigator.mediaDevices.getUserMedia({ audio: et });
- } catch (et) {
+ K = yield navigator.mediaDevices.getUserMedia({ audio: me });
+ } catch (me) {
if (!navigator.mediaDevices) {
- he("error", u("audio.no_device_support"));
+ ce("error", u("audio.no_device_support"));
return;
}
- if (et instanceof DOMException && et.name == "NotAllowedError") {
- he("error", u("audio.allow_recording_access"));
+ if (me instanceof DOMException && me.name == "NotAllowedError") {
+ ce("error", u("audio.allow_recording_access"));
return;
}
- throw et;
+ throw me;
}
- t(18, fe = _m(yield gm(), "audioinput")), t(20, De = !0);
- const Z = Q.getTracks().map((et) => {
- var O;
- return (O = et.getSettings()) === null || O === void 0 ? void 0 : O.deviceId;
+ t(18, he = vm(yield _m(), "audioinput")), t(20, Ae = !0);
+ const N = K.getTracks().map((me) => {
+ var ie;
+ return (ie = me.getSettings()) === null || ie === void 0 ? void 0 : ie.deviceId;
})[0];
- t(19, ue = Z && fe.find((et) => et.deviceId === Z) || fe[0]);
+ t(19, ue = N && he.find((me) => me.deviceId === N) || he[0]);
});
}
function V() {
return r(this, void 0, void 0, function* () {
- if (q === "open") {
- r0(Y), t(16, q = "closed"), t(15, I = null), yield Ce(), yield L.quit_output_stream({ webrtc_id: H });
+ if (P === "open") {
+ ce("stop_recording"), r0(O), t(16, P = "closed"), t(15, I = null), yield Ce(), yield L.quit_output_stream({ webrtc_id: se });
return;
}
- H = Math.random().toString(36).substring(2), t(0, i.webrtc_id = H, i), t(16, q = "waiting"), yield L.turn().then((O) => {
- if (O.error) {
- he("error", O.error);
+ ce("start_recording"), se = Math.random().toString(36).substring(2), t(0, i.webrtc_id = se, i), t(16, P = "waiting"), yield L.turn().then((ie) => {
+ if (ie.error) {
+ ce("error", ie.error);
return;
}
- t(32, o = O), console.info("rtc_configuration", O);
- }), Y = new RTCPeerConnection(o), console.info("created"), Y.addEventListener("connectionstatechange", (O) => r(this, void 0, void 0, function* () {
- switch (Y.connectionState) {
+ t(32, o = ie), console.info("rtc_configuration", ie);
+ }), O = new RTCPeerConnection(o), console.info("created"), O.addEventListener("connectionstatechange", (ie) => r(this, void 0, void 0, function* () {
+ switch (O.connectionState) {
case "connected":
- console.info("connected"), t(16, q = "open"), t(15, I = c);
+ console.info("connected"), t(16, P = "open"), t(15, I = c);
break;
case "disconnected":
- console.info("closed"), t(16, q = "closed"), t(15, I = null), r0(Y);
+ console.info("closed"), t(16, P = "closed"), t(15, I = null), r0(O);
break;
case "failed":
- console.info("failed"), t(16, q = "closed"), t(15, I = null), he("error", "Connection failed!"), r0(Y);
+ console.info("failed"), t(16, P = "closed"), t(15, I = null), ce("error", "Connection failed!"), r0(O);
break;
}
- })), Q = null;
+ })), K = null;
try {
yield Ce();
- } catch (O) {
+ } catch (ie) {
if (!navigator.mediaDevices) {
- he("error", u("audio.no_device_support"));
+ ce("error", u("audio.no_device_support"));
return;
}
- if (O instanceof DOMException && O.name == "NotAllowedError") {
- he("error", u("audio.allow_recording_access"));
+ if (ie instanceof DOMException && ie.name == "NotAllowedError") {
+ ce("error", u("audio.allow_recording_access"));
return;
}
- throw O;
+ throw ie;
}
- if (Q == null) return;
- const Z = (O) => {
- O.type === "log" && O.data === "pause_detected" ? t(13, S = !0) : O.type === "log" && O.data === "response_starting" && t(
+ if (K == null) return;
+ const N = (ie) => {
+ ie.type === "log" && ie.data === "pause_detected" ? t(13, S = !0) : ie.type === "log" && ie.data === "response_starting" && t(
13,
S = !1
);
- }, et = setTimeout(
+ }, me = setTimeout(
() => {
F({ type: "connection_timeout" });
},
1e4
);
- ss(Q, Y, a === "send" ? null : J, L.offer, H, "audio", F, h, Z, _).then((O) => {
- clearTimeout(et), Y = O;
+ ss(K, O, a === "send" ? null : Z, L.offer, se, "audio", F, h, N, _).then((ie) => {
+ clearTimeout(me), O = ie;
}).catch(() => {
- console.info("catching"), clearTimeout(et), t(16, q = "closed");
+ console.info("catching"), clearTimeout(me), t(16, P = "closed");
});
});
}
- function j(Z) {
- Z.preventDefault(), Z.stopPropagation(), t(14, B = !1);
+ function j(N) {
+ N.preventDefault(), N.stopPropagation(), t(14, B = !1);
}
- const pe = (Z) => r(void 0, void 0, void 0, function* () {
- const O = Z.target.value;
- Q = yield navigator.mediaDevices.getUserMedia({
- audio: Object.assign({ deviceId: { exact: O } }, d)
- }), t(19, ue = fe.find((Se) => Se.deviceId === O) || null), t(14, B = !1);
+ const ge = (N) => r(void 0, void 0, void 0, function* () {
+ const ie = N.target.value;
+ K = yield navigator.mediaDevices.getUserMedia({
+ audio: Object.assign({ deviceId: { exact: ie } }, d)
+ }), t(19, ue = he.find((Qe) => Qe.deviceId === ie) || null), t(14, B = !1);
});
- function ye() {
- J && (t(17, J.muted = !J.muted, J), t(21, we = J.muted));
+ function ke() {
+ Z && (t(17, Z.muted = !Z.muted, Z), t(21, ye = Z.muted));
}
function Te() {
- if (Q && Q.getAudioTracks().length > 0) {
- const Z = Q.getAudioTracks()[0];
- Z.enabled = !Z.enabled, t(22, te = !Z.enabled);
+ if (K && K.getAudioTracks().length > 0) {
+ const N = K.getAudioTracks()[0];
+ N.enabled = !N.enabled, t(22, $ = !N.enabled);
}
}
function ze() {
- return Q;
+ return K;
}
- function Le(Z) {
- ow.call(this, n, Z);
+ function Le(N) {
+ Wo.call(this, n, N);
}
- function Ge(Z) {
- Ra[Z ? "unshift" : "push"](() => {
- J = Z, t(17, J);
+ function je(N) {
+ Wo.call(this, n, N);
+ }
+ function ft(N) {
+ Wo.call(this, n, N);
+ }
+ function We(N) {
+ Ra[N ? "unshift" : "push"](() => {
+ Z = N, t(17, Z);
});
}
- const ht = () => he("stop"), je = () => he("play");
- function Oe(Z) {
- i = Z, t(0, i);
+ const qe = () => ce("stop"), Pe = () => ce("play");
+ function lt(N) {
+ i = N, t(0, i);
}
- function qe(Z) {
- q = Z, t(16, q);
+ function Ot(N) {
+ P = N, t(16, P);
}
- function st(Z) {
- we = Z, t(21, we);
+ function qt(N) {
+ ye = N, t(21, ye);
}
- function qt(Z) {
- te = Z, t(22, te);
+ function Hr(N) {
+ $ = N, t(22, $);
}
- const R = async () => Ce(), W0 = () => t(14, B = !0), X0 = () => t(14, B = !1);
- return n.$$set = (Z) => {
- "mode" in Z && t(1, a = Z.mode), "value" in Z && t(0, i = Z.value), "label" in Z && t(2, l = Z.label), "show_label" in Z && t(3, s = Z.show_label), "rtc_configuration" in Z && t(32, o = Z.rtc_configuration), "i18n" in Z && t(4, u = Z.i18n), "time_limit" in Z && t(33, c = Z.time_limit), "track_constraints" in Z && t(34, d = Z.track_constraints), "rtp_params" in Z && t(35, h = Z.rtp_params), "on_change_cb" in Z && t(5, p = Z.on_change_cb), "reject_cb" in Z && t(36, _ = Z.reject_cb), "icon" in Z && t(6, b = Z.icon), "icon_button_color" in Z && t(7, D = Z.icon_button_color), "pulse_color" in Z && t(8, y = Z.pulse_color), "icon_radius" in Z && t(9, k = Z.icon_radius), "button_labels" in Z && t(10, w = Z.button_labels), "variant" in Z && t(11, E = Z.variant), "server" in Z && t(37, L = Z.server);
+ const q = async () => Ce(), gr = () => t(14, B = !0), z0 = () => t(14, B = !1);
+ return n.$$set = (N) => {
+ "mode" in N && t(1, a = N.mode), "value" in N && t(0, i = N.value), "label" in N && t(2, l = N.label), "show_label" in N && t(3, s = N.show_label), "rtc_configuration" in N && t(32, o = N.rtc_configuration), "i18n" in N && t(4, u = N.i18n), "time_limit" in N && t(33, c = N.time_limit), "track_constraints" in N && t(34, d = N.track_constraints), "rtp_params" in N && t(35, h = N.rtp_params), "on_change_cb" in N && t(5, p = N.on_change_cb), "reject_cb" in N && t(36, _ = N.reject_cb), "icon" in N && t(6, b = N.icon), "icon_button_color" in N && t(7, D = N.icon_button_color), "pulse_color" in N && t(8, y = N.pulse_color), "icon_radius" in N && t(9, k = N.icon_radius), "button_labels" in N && t(10, w = N.button_labels), "variant" in N && t(11, E = N.variant), "server" in N && t(37, L = N.server);
}, n.$$.update = () => {
n.$$.dirty[0] & /*stopword_recognized*/
4096 | n.$$.dirty[1] & /*notification_sound*/
@@ -27548,20 +27562,20 @@ function Bw(n, e, t) {
S,
B,
I,
- q,
- J,
- fe,
- ue,
- De,
- we,
- te,
- de,
+ P,
+ Z,
he,
+ ue,
+ Ae,
+ ye,
+ $,
+ de,
+ ce,
Ce,
V,
j,
- pe,
- ye,
+ ge,
+ ke,
Te,
ze,
o,
@@ -27572,19 +27586,21 @@ function Bw(n, e, t) {
L,
C,
Le,
- Ge,
- ht,
je,
- Oe,
+ ft,
+ We,
qe,
- st,
+ Pe,
+ lt,
+ Ot,
qt,
- R,
- W0,
- X0
+ Hr,
+ q,
+ gr,
+ z0
];
}
-class Iw extends iw {
+class Iw extends lw {
constructor(e) {
super(), fw(
this,
@@ -27628,19 +27644,19 @@ const {
claim_space: Ow,
create_component: Nn,
destroy_component: Rn,
- detach: _d,
- empty: vd,
+ detach: vd,
+ empty: bd,
flush: Be,
get_spread_object: qw,
get_spread_update: Pw,
group_outros: Hw,
init: Uw,
- insert_hydration: bd,
+ insert_hydration: wd,
mount_component: On,
safe_not_equal: Vw,
space: Gw,
- transition_in: zr,
- transition_out: Br
+ transition_in: Mr,
+ transition_out: zr
} = window.__gradio__svelte__internal;
function jw(n) {
let e, t, r;
@@ -27721,17 +27737,25 @@ function jw(n) {
/*value*/
n[0] !== void 0 && (i.value = /*value*/
n[0]), e = new Iw({ props: i }), ps.push(() => ms(e, "value", a)), e.$on(
+ "start_recording",
+ /*start_recording_handler_1*/
+ n[49]
+ ), e.$on(
+ "stop_recording",
+ /*stop_recording_handler_1*/
+ n[50]
+ ), e.$on(
"tick",
/*tick_handler_3*/
- n[49]
+ n[51]
), e.$on(
"error",
/*error_handler_3*/
- n[50]
+ n[52]
), e.$on(
"warning",
/*warning_handler*/
- n[51]
+ n[53]
), {
c() {
Nn(e.$$.fragment);
@@ -27779,10 +27803,10 @@ function jw(n) {
l[0], ds(() => t = !1)), e.$set(o);
},
i(l) {
- r || (zr(e.$$.fragment, l), r = !0);
+ r || (Mr(e.$$.fragment, l), r = !0);
},
o(l) {
- Br(e.$$.fragment, l), r = !1;
+ zr(e.$$.fragment, l), r = !1;
},
d(l) {
Rn(e, l);
@@ -27875,7 +27899,7 @@ function Ww(n) {
return (
/*value*/
n[0] !== void 0 && (i.value = /*value*/
- n[0]), e = new T9({ props: i }), ps.push(() => ms(e, "value", a)), e.$on(
+ n[0]), e = new C9({ props: i }), ps.push(() => ms(e, "value", a)), e.$on(
"clear",
/*clear_handler*/
n[38]
@@ -27961,15 +27985,15 @@ function Ww(n) {
16384 && (o.stream_handler = /*func*/
l[36]), s[0] & /*gradio*/
16384 | s[1] & /*$$scope*/
- 2097152 && (o.$$scope = { dirty: s, ctx: l }), !t && s[0] & /*value*/
+ 8388608 && (o.$$scope = { dirty: s, ctx: l }), !t && s[0] & /*value*/
1 && (t = !0, o.value = /*value*/
l[0], ds(() => t = !1)), e.$set(o);
},
i(l) {
- r || (zr(e.$$.fragment, l), r = !0);
+ r || (Mr(e.$$.fragment, l), r = !0);
},
o(l) {
- Br(e.$$.fragment, l), r = !1;
+ zr(e.$$.fragment, l), r = !1;
},
d(l) {
Rn(e, l);
@@ -28027,7 +28051,7 @@ function Xw(n) {
return (
/*value*/
n[0] !== void 0 && (i.value = /*value*/
- n[0]), e = new A_({ props: i }), ps.push(() => ms(e, "value", a)), e.$on(
+ n[0]), e = new E_({ props: i }), ps.push(() => ms(e, "value", a)), e.$on(
"tick",
/*tick_handler_1*/
n[34]
@@ -28070,10 +28094,10 @@ function Xw(n) {
l[0], ds(() => t = !1)), e.$set(o);
},
i(l) {
- r || (zr(e.$$.fragment, l), r = !0);
+ r || (Mr(e.$$.fragment, l), r = !0);
},
o(l) {
- Br(e.$$.fragment, l), r = !1;
+ zr(e.$$.fragment, l), r = !1;
},
d(l) {
Rn(e, l);
@@ -28111,7 +28135,7 @@ function Yw(n) {
return (
/*value*/
n[0] !== void 0 && (i.value = /*value*/
- n[0]), e = new K9({ props: i }), ps.push(() => ms(e, "value", a)), e.$on(
+ n[0]), e = new J9({ props: i }), ps.push(() => ms(e, "value", a)), e.$on(
"tick",
/*tick_handler*/
n[31]
@@ -28144,10 +28168,10 @@ function Yw(n) {
l[0], ds(() => t = !1)), e.$set(o);
},
i(l) {
- r || (zr(e.$$.fragment, l), r = !0);
+ r || (Mr(e.$$.fragment, l), r = !0);
},
o(l) {
- Br(e.$$.fragment, l), r = !1;
+ zr(e.$$.fragment, l), r = !1;
},
d(l) {
Rn(e, l);
@@ -28157,7 +28181,7 @@ function Yw(n) {
}
function Zw(n) {
let e, t;
- return e = new og({
+ return e = new ug({
props: {
i18n: (
/*gradio*/
@@ -28182,10 +28206,10 @@ function Zw(n) {
r[14].i18n), e.$set(i);
},
i(r) {
- t || (zr(e.$$.fragment, r), t = !0);
+ t || (Mr(e.$$.fragment, r), t = !0);
},
o(r) {
- Br(e.$$.fragment, r), t = !1;
+ zr(e.$$.fragment, r), t = !1;
},
d(r) {
Rn(e, r);
@@ -28211,7 +28235,7 @@ function Kw(n) {
let o = {};
for (let h = 0; h < s.length; h += 1)
o = Nw(o, s[h]);
- e = new Ep({ props: o }), e.$on(
+ e = new Sp({ props: o }), e.$on(
"clear_status",
/*clear_status_handler*/
n[29]
@@ -28241,13 +28265,13 @@ function Kw(n) {
}
return ~(r = d(n)) && (a = c[r] = u[r](n)), {
c() {
- Nn(e.$$.fragment), t = Gw(), a && a.c(), i = vd();
+ Nn(e.$$.fragment), t = Gw(), a && a.c(), i = bd();
},
l(h) {
- Ln(e.$$.fragment, h), t = Ow(h), a && a.l(h), i = vd();
+ Ln(e.$$.fragment, h), t = Ow(h), a && a.l(h), i = bd();
},
m(h, p) {
- On(e, h, p), bd(h, t, p), ~r && c[r].m(h, p), bd(h, i, p), l = !0;
+ On(e, h, p), wd(h, t, p), ~r && c[r].m(h, p), wd(h, i, p), l = !0;
},
p(h, p) {
const _ = p[0] & /*gradio, loading_status*/
@@ -28272,24 +28296,24 @@ function Kw(n) {
]) : {};
e.$set(_);
let b = r;
- r = d(h), r === b ? ~r && c[r].p(h, p) : (a && (Hw(), Br(c[b], 1, 1, () => {
+ r = d(h), r === b ? ~r && c[r].p(h, p) : (a && (Hw(), zr(c[b], 1, 1, () => {
c[b] = null;
- }), Rw()), ~r ? (a = c[r], a ? a.p(h, p) : (a = c[r] = u[r](h), a.c()), zr(a, 1), a.m(i.parentNode, i)) : a = null);
+ }), Rw()), ~r ? (a = c[r], a ? a.p(h, p) : (a = c[r] = u[r](h), a.c()), Mr(a, 1), a.m(i.parentNode, i)) : a = null);
},
i(h) {
- l || (zr(e.$$.fragment, h), zr(a), l = !0);
+ l || (Mr(e.$$.fragment, h), Mr(a), l = !0);
},
o(h) {
- Br(e.$$.fragment, h), Br(a), l = !1;
+ zr(e.$$.fragment, h), zr(a), l = !1;
},
d(h) {
- h && (_d(t), _d(i)), Rn(e, h), ~r && c[r].d(h);
+ h && (vd(t), vd(i)), Rn(e, h), ~r && c[r].d(h);
}
};
}
function Jw(n) {
let e, t;
- return e = new kd({
+ return e = new Dd({
props: {
visible: (
/*visible*/
@@ -28360,13 +28384,13 @@ function Jw(n) {
8192 && (i.min_width = /*min_width*/
r[13]), a[0] & /*label, show_label, server, rtc_configuration, value, gradio, mode, modality, icon, icon_button_color, pulse_color, icon_radius, time_limit, track_constraints, rtp_params, button_labels, variant, loading_status*/
67093745 | a[1] & /*$$scope*/
- 2097152 && (i.$$scope = { dirty: a, ctx: r }), e.$set(i);
+ 8388608 && (i.$$scope = { dirty: a, ctx: r }), e.$set(i);
},
i(r) {
- t || (zr(e.$$.fragment, r), t = !0);
+ t || (Mr(e.$$.fragment, r), t = !0);
},
o(r) {
- Br(e.$$.fragment, r), t = !1;
+ zr(e.$$.fragment, r), t = !1;
},
d(r) {
Rn(e, r);
@@ -28374,39 +28398,39 @@ function Jw(n) {
};
}
function Qw(n, e, t) {
- let { elem_id: r = "" } = e, { elem_classes: a = [] } = e, { visible: i = !0 } = e, { button_labels: l } = e, { label: s } = e, { root: o } = e, { show_label: u } = e, { loading_status: c } = e, { height: d } = e, { width: h } = e, { server: p } = e, { container: _ = !1 } = e, { scale: b = null } = e, { min_width: D = void 0 } = e, { gradio: y } = e, { rtc_configuration: k } = e, { time_limit: w = null } = e, { modality: E = "video" } = e, { mode: S = "send-receive" } = e, { rtp_params: T = {} } = e, { track_constraints: C = {} } = e, { icon: F = void 0 } = e, { icon_button_color: B = "var(--color-accent)" } = e, { pulse_color: I = "var(--color-accent)" } = e, { icon_radius: L = 50 } = e, { variant: q = "wave" } = e, { value: J = q === "textbox" || (S === "send-receive" || S == "send") && E === "audio" ? {
+ let { elem_id: r = "" } = e, { elem_classes: a = [] } = e, { visible: i = !0 } = e, { button_labels: l } = e, { label: s } = e, { root: o } = e, { show_label: u } = e, { loading_status: c } = e, { height: d } = e, { width: h } = e, { server: p } = e, { container: _ = !1 } = e, { scale: b = null } = e, { min_width: D = void 0 } = e, { gradio: y } = e, { rtc_configuration: k } = e, { time_limit: w = null } = e, { modality: E = "video" } = e, { mode: S = "send-receive" } = e, { rtp_params: T = {} } = e, { track_constraints: C = {} } = e, { icon: F = void 0 } = e, { icon_button_color: B = "var(--color-accent)" } = e, { pulse_color: I = "var(--color-accent)" } = e, { icon_radius: L = 50 } = e, { variant: P = "wave" } = e, { value: Z = P === "textbox" || (S === "send-receive" || S == "send") && E === "audio" ? {
textbox: "",
webrtc_id: "__webrtc_value__"
} : "__webrtc_value__" } = e;
- const Y = (R) => {
- console.log("on_change_cb in index.svelte", R), (R == null ? void 0 : R.type) === "info" || (R == null ? void 0 : R.type) === "warning" || (R == null ? void 0 : R.type) === "error" ? y.dispatch(
- (R == null ? void 0 : R.type) === "error" ? "error" : "warning",
- (R == null ? void 0 : R.data) || (R == null ? void 0 : R.message)
- ) : (R == null ? void 0 : R.type) === "end_stream" ? y.dispatch("warning", R.data) : (R == null ? void 0 : R.type) === "fetch_output" ? y.dispatch("state_change") : (R == null ? void 0 : R.type) === "send_input" ? y.dispatch("tick") : (R == null ? void 0 : R.type) === "submit" ? (console.log("submit in index.svelte", R.data), y.dispatch("submit", R.data)) : (R == null ? void 0 : R.type) === "connection_timeout" && y.dispatch("warning", "Taking a while to connect. Are you on a VPN?"), R.type === "state_change" && y.dispatch(R === "change" ? "state_change" : "tick");
- }, H = (R) => {
- var W0, X0;
- R.status === "failed" && ((W0 = R.meta) === null || W0 === void 0 ? void 0 : W0.error) === "concurrency_limit_reached" ? y.dispatch("error", "Too many concurrent connections. Please try again later!") : R.status === "failed" && ((X0 = R.meta) === null || X0 === void 0 ? void 0 : X0.error) === "connection_already_exists" ? y.dispatch("error", "Connection already exists") : y.dispatch("error", "Unexpected server error");
- }, Q = () => y.dispatch("clear_status", c);
- function fe(R) {
- J = R, t(0, J);
+ const O = (q) => {
+ console.log("on_change_cb in index.svelte", q), (q == null ? void 0 : q.type) === "info" || (q == null ? void 0 : q.type) === "warning" || (q == null ? void 0 : q.type) === "error" ? y.dispatch(
+ (q == null ? void 0 : q.type) === "error" ? "error" : "warning",
+ (q == null ? void 0 : q.data) || (q == null ? void 0 : q.message)
+ ) : (q == null ? void 0 : q.type) === "end_stream" ? y.dispatch("warning", q.data) : (q == null ? void 0 : q.type) === "fetch_output" ? y.dispatch("state_change") : (q == null ? void 0 : q.type) === "send_input" ? y.dispatch("tick") : (q == null ? void 0 : q.type) === "submit" ? (console.log("submit in index.svelte", q.data), y.dispatch("submit", q.data)) : (q == null ? void 0 : q.type) === "connection_timeout" && y.dispatch("warning", "Taking a while to connect. Are you on a VPN?"), q.type === "state_change" && y.dispatch(q === "change" ? "state_change" : "tick");
+ }, se = (q) => {
+ var gr, z0;
+ q.status === "failed" && ((gr = q.meta) === null || gr === void 0 ? void 0 : gr.error) === "concurrency_limit_reached" ? y.dispatch("error", "Too many concurrent connections. Please try again later!") : q.status === "failed" && ((z0 = q.meta) === null || z0 === void 0 ? void 0 : z0.error) === "connection_already_exists" ? y.dispatch("error", "Connection already exists") : y.dispatch("error", "Unexpected server error");
+ }, K = () => y.dispatch("clear_status", c);
+ function he(q) {
+ Z = q, t(0, Z);
}
- const ue = () => y.dispatch("tick"), De = ({ detail: R }) => y.dispatch("error", R);
- function we(R) {
- J = R, t(0, J);
+ const ue = () => y.dispatch("tick"), Ae = ({ detail: q }) => y.dispatch("error", q);
+ function ye(q) {
+ Z = q, t(0, Z);
}
- const te = () => y.dispatch("tick"), de = ({ detail: R }) => y.dispatch("error", R), he = (...R) => y.client.stream(...R);
- function Ce(R) {
- J = R, t(0, J);
+ const $ = () => y.dispatch("tick"), de = ({ detail: q }) => y.dispatch("error", q), ce = (...q) => y.client.stream(...q);
+ function Ce(q) {
+ Z = q, t(0, Z);
}
- const V = () => y.dispatch("clear"), j = () => y.dispatch("play"), pe = () => y.dispatch("pause"), ye = () => y.dispatch("upload"), Te = () => y.dispatch("stop"), ze = () => y.dispatch("end"), Le = () => y.dispatch("start_recording"), Ge = () => y.dispatch("stop_recording"), ht = () => y.dispatch("tick"), je = ({ detail: R }) => y.dispatch("error", R);
- function Oe(R) {
- J = R, t(0, J);
+ const V = () => y.dispatch("clear"), j = () => y.dispatch("play"), ge = () => y.dispatch("pause"), ke = () => y.dispatch("upload"), Te = () => y.dispatch("stop"), ze = () => y.dispatch("end"), Le = () => y.dispatch("start_recording"), je = () => y.dispatch("stop_recording"), ft = () => y.dispatch("tick"), We = ({ detail: q }) => y.dispatch("error", q);
+ function qe(q) {
+ Z = q, t(0, Z);
}
- const qe = () => y.dispatch("tick"), st = ({ detail: R }) => y.dispatch("error", R), qt = ({ detail: R }) => y.dispatch("warning", R);
- return n.$$set = (R) => {
- "elem_id" in R && t(1, r = R.elem_id), "elem_classes" in R && t(2, a = R.elem_classes), "visible" in R && t(3, i = R.visible), "button_labels" in R && t(4, l = R.button_labels), "label" in R && t(5, s = R.label), "root" in R && t(28, o = R.root), "show_label" in R && t(6, u = R.show_label), "loading_status" in R && t(7, c = R.loading_status), "height" in R && t(8, d = R.height), "width" in R && t(9, h = R.width), "server" in R && t(10, p = R.server), "container" in R && t(11, _ = R.container), "scale" in R && t(12, b = R.scale), "min_width" in R && t(13, D = R.min_width), "gradio" in R && t(14, y = R.gradio), "rtc_configuration" in R && t(15, k = R.rtc_configuration), "time_limit" in R && t(16, w = R.time_limit), "modality" in R && t(17, E = R.modality), "mode" in R && t(18, S = R.mode), "rtp_params" in R && t(19, T = R.rtp_params), "track_constraints" in R && t(20, C = R.track_constraints), "icon" in R && t(21, F = R.icon), "icon_button_color" in R && t(22, B = R.icon_button_color), "pulse_color" in R && t(23, I = R.pulse_color), "icon_radius" in R && t(24, L = R.icon_radius), "variant" in R && t(25, q = R.variant), "value" in R && t(0, J = R.value);
+ const Pe = () => y.dispatch("start_recording"), lt = () => y.dispatch("stop_recording"), Ot = () => y.dispatch("tick"), qt = ({ detail: q }) => y.dispatch("error", q), Hr = ({ detail: q }) => y.dispatch("warning", q);
+ return n.$$set = (q) => {
+ "elem_id" in q && t(1, r = q.elem_id), "elem_classes" in q && t(2, a = q.elem_classes), "visible" in q && t(3, i = q.visible), "button_labels" in q && t(4, l = q.button_labels), "label" in q && t(5, s = q.label), "root" in q && t(28, o = q.root), "show_label" in q && t(6, u = q.show_label), "loading_status" in q && t(7, c = q.loading_status), "height" in q && t(8, d = q.height), "width" in q && t(9, h = q.width), "server" in q && t(10, p = q.server), "container" in q && t(11, _ = q.container), "scale" in q && t(12, b = q.scale), "min_width" in q && t(13, D = q.min_width), "gradio" in q && t(14, y = q.gradio), "rtc_configuration" in q && t(15, k = q.rtc_configuration), "time_limit" in q && t(16, w = q.time_limit), "modality" in q && t(17, E = q.modality), "mode" in q && t(18, S = q.mode), "rtp_params" in q && t(19, T = q.rtp_params), "track_constraints" in q && t(20, C = q.track_constraints), "icon" in q && t(21, F = q.icon), "icon_button_color" in q && t(22, B = q.icon_button_color), "pulse_color" in q && t(23, I = q.pulse_color), "icon_radius" in q && t(24, L = q.icon_radius), "variant" in q && t(25, P = q.variant), "value" in q && t(0, Z = q.value);
}, [
- J,
+ Z,
r,
a,
i,
@@ -28431,33 +28455,35 @@ function Qw(n, e, t) {
B,
I,
L,
- q,
- Y,
- H,
+ P,
+ O,
+ se,
o,
- Q,
- fe,
- ue,
- De,
- we,
- te,
- de,
+ K,
he,
+ ue,
+ Ae,
+ ye,
+ $,
+ de,
+ ce,
Ce,
V,
j,
- pe,
- ye,
+ ge,
+ ke,
Te,
ze,
Le,
- Ge,
- ht,
je,
- Oe,
+ ft,
+ We,
qe,
- st,
- qt
+ Pe,
+ lt,
+ Ot,
+ qt,
+ Hr
];
}
class hy extends Lw {
@@ -28667,9 +28693,9 @@ class hy extends Lw {
export {
fy as E,
hy as I,
- T9 as a,
+ C9 as a,
iy as b,
- Lc as c,
+ Nc as c,
ly as d,
ny as g,
ry as k,
diff --git a/backend/fastrtc/templates/component/index.js b/backend/fastrtc/templates/component/index.js
index a791b62..3c2a344 100644
--- a/backend/fastrtc/templates/component/index.js
+++ b/backend/fastrtc/templates/component/index.js
@@ -1,4 +1,4 @@
-import { E as s, a as t, I as l, l as d, d as o, b as p } from "./index-xxHpJ_RR.js";
+import { E as s, a as t, I as l, l as d, d as o, b as p } from "./index-DeMSGuTm.js";
export {
s as BaseExample,
t as BaseInteractiveVideo,
diff --git a/backend/fastrtc/templates/component/infoDiagram-PH2N3AL5-fhMlkv6w.js b/backend/fastrtc/templates/component/infoDiagram-PH2N3AL5-CR5Da0AD.js
similarity index 90%
rename from backend/fastrtc/templates/component/infoDiagram-PH2N3AL5-fhMlkv6w.js
rename to backend/fastrtc/templates/component/infoDiagram-PH2N3AL5-CR5Da0AD.js
index 319b348..e337b84 100644
--- a/backend/fastrtc/templates/component/infoDiagram-PH2N3AL5-fhMlkv6w.js
+++ b/backend/fastrtc/templates/component/infoDiagram-PH2N3AL5-CR5Da0AD.js
@@ -1,5 +1,5 @@
-import { _ as e, l as s, H as o, k as i, I as g } from "./mermaid.core-C0Blj36u.js";
-import { p } from "./radar-MK3ICKWK-Uwn-jZp4.js";
+import { _ as e, l as s, H as o, k as i, I as g } from "./mermaid.core-Cmyps_S7.js";
+import { p } from "./radar-MK3ICKWK-Bw4p6KaX.js";
var v = {
parse: /* @__PURE__ */ e(async (r) => {
const a = await p("info", r);
diff --git a/backend/fastrtc/templates/component/journeyDiagram-U35MCT3I-BI3B5NA4.js b/backend/fastrtc/templates/component/journeyDiagram-U35MCT3I-CrknTRGa.js
similarity index 99%
rename from backend/fastrtc/templates/component/journeyDiagram-U35MCT3I-BI3B5NA4.js
rename to backend/fastrtc/templates/component/journeyDiagram-U35MCT3I-CrknTRGa.js
index 0a9ff30..5330dfa 100644
--- a/backend/fastrtc/templates/component/journeyDiagram-U35MCT3I-BI3B5NA4.js
+++ b/backend/fastrtc/templates/component/journeyDiagram-U35MCT3I-CrknTRGa.js
@@ -1,6 +1,6 @@
-import { d as ft, f as gt, g as at, b as mt } from "./chunk-D6G4REZN-BSQJOIKu.js";
-import { _ as i, d as A, n as xt, o as kt, s as _t, g as vt, c as bt, b as wt, t as Tt, j as W, k as St } from "./mermaid.core-C0Blj36u.js";
-import { d as tt } from "./arc-BHDr2DIN.js";
+import { d as ft, f as gt, g as at, b as mt } from "./chunk-D6G4REZN-BlR0637Q.js";
+import { _ as i, d as A, n as xt, o as kt, s as _t, g as vt, c as bt, b as wt, t as Tt, j as W, k as St } from "./mermaid.core-Cmyps_S7.js";
+import { d as tt } from "./arc-DNvJTUeW.js";
var H = function() {
var t = /* @__PURE__ */ i(function(g, r, a, l) {
for (a = a || {}, l = g.length; l--; a[g[l]] = r) ;
diff --git a/backend/fastrtc/templates/component/kanban-definition-NDS4AKOZ-BdftdmWH.js b/backend/fastrtc/templates/component/kanban-definition-NDS4AKOZ-LMIj9hLY.js
similarity index 99%
rename from backend/fastrtc/templates/component/kanban-definition-NDS4AKOZ-BdftdmWH.js
rename to backend/fastrtc/templates/component/kanban-definition-NDS4AKOZ-LMIj9hLY.js
index 9b1784e..dad57b7 100644
--- a/backend/fastrtc/templates/component/kanban-definition-NDS4AKOZ-BdftdmWH.js
+++ b/backend/fastrtc/templates/component/kanban-definition-NDS4AKOZ-LMIj9hLY.js
@@ -1,4 +1,4 @@
-import { _ as c, l as te, d as W, H as fe, ae as ye, af as be, ag as me, V as _e, C as K, i as G, p as Ee, J as ke, W as Se, X as le, Y as ce } from "./mermaid.core-C0Blj36u.js";
+import { _ as c, l as te, d as W, H as fe, ae as ye, af as be, ag as me, V as _e, C as K, i as G, p as Ee, J as ke, W as Se, X as le, Y as ce } from "./mermaid.core-Cmyps_S7.js";
var $ = function() {
var t = /* @__PURE__ */ c(function(_, s, n, a) {
for (n = n || {}, a = _.length; a--; n[_[a]] = s) ;
diff --git a/backend/fastrtc/templates/component/layout-BG95tefZ.js b/backend/fastrtc/templates/component/layout-ZrEF_W9p.js
similarity index 99%
rename from backend/fastrtc/templates/component/layout-BG95tefZ.js
rename to backend/fastrtc/templates/component/layout-ZrEF_W9p.js
index 5a4fb69..b8f8f59 100644
--- a/backend/fastrtc/templates/component/layout-BG95tefZ.js
+++ b/backend/fastrtc/templates/component/layout-ZrEF_W9p.js
@@ -1,7 +1,7 @@
-import { G as g } from "./graph-as_7zmXK.js";
-import { b as Te, p as ce, q as le, g as z, e as ee, l as j, o as Ie, s as Me, c as Se, u as Fe, d as f, i as m, f as _, v as x, r as M } from "./_baseUniq-BfI_PfuI.js";
-import { f as O, b as he, a as je, c as Ve, d as Be, t as V, m as w, e as P, h as ve, g as X, l as T, i as Ae } from "./_basePickBy-BWyW5hVA.js";
-import { b3 as Ge, b4 as Ye, b5 as De, aL as qe, b6 as $e, aP as pe, aO as we, b7 as We, aK as q, az as ze, aR as Xe, aB as Ue, b8 as $ } from "./mermaid.core-C0Blj36u.js";
+import { G as g } from "./graph-BaPzJnYr.js";
+import { b as Te, p as ce, q as le, g as z, e as ee, l as j, o as Ie, s as Me, c as Se, u as Fe, d as f, i as m, f as _, v as x, r as M } from "./_baseUniq-BN26mYqf.js";
+import { f as O, b as he, a as je, c as Ve, d as Be, t as V, m as w, e as P, h as ve, g as X, l as T, i as Ae } from "./_basePickBy-Bz_aTL3_.js";
+import { b3 as Ge, b4 as Ye, b5 as De, aL as qe, b6 as $e, aP as pe, aO as we, b7 as We, aK as q, az as ze, aR as Xe, aB as Ue, b8 as $ } from "./mermaid.core-Cmyps_S7.js";
function He(e) {
return Ge(Ye(e, void 0, O), e + "");
}
diff --git a/backend/fastrtc/templates/component/linear-CRa8eD4r.js b/backend/fastrtc/templates/component/linear-a_bmPvcN.js
similarity index 99%
rename from backend/fastrtc/templates/component/linear-CRa8eD4r.js
rename to backend/fastrtc/templates/component/linear-a_bmPvcN.js
index 44f55a2..e0ac020 100644
--- a/backend/fastrtc/templates/component/linear-CRa8eD4r.js
+++ b/backend/fastrtc/templates/component/linear-a_bmPvcN.js
@@ -1,4 +1,4 @@
-import { a_ as un, a$ as I, b0 as U, b1 as Y, b2 as fn } from "./mermaid.core-C0Blj36u.js";
+import { a_ as un, a$ as I, b0 as U, b1 as Y, b2 as fn } from "./mermaid.core-Cmyps_S7.js";
import { i as cn } from "./init-DjUOC4st.js";
function F(n, t) {
return n == null || t == null ? NaN : n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
diff --git a/backend/fastrtc/templates/component/mermaid.core-C0Blj36u.js b/backend/fastrtc/templates/component/mermaid.core-Cmyps_S7.js
similarity index 99%
rename from backend/fastrtc/templates/component/mermaid.core-C0Blj36u.js
rename to backend/fastrtc/templates/component/mermaid.core-Cmyps_S7.js
index 8544fb1..6d5227f 100644
--- a/backend/fastrtc/templates/component/mermaid.core-C0Blj36u.js
+++ b/backend/fastrtc/templates/component/mermaid.core-Cmyps_S7.js
@@ -1,7 +1,7 @@
var Hd = Object.defineProperty;
var jd = (e, t, r) => t in e ? Hd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var lt = (e, t, r) => jd(e, typeof t != "symbol" ? t + "" : t, r);
-import { c as Yd, g as Gd, p as fr } from "./index-xxHpJ_RR.js";
+import { c as Yd, g as Gd, p as fr } from "./index-DeMSGuTm.js";
var $l = { exports: {} };
(function(e, t) {
(function(r, i) {
@@ -1997,7 +1997,7 @@ var Xl = /* @__PURE__ */ d((e) => (vg(), fr.sanitize(e)), "removeScript"), lo =
return e;
if (!(ho() || t.legacyMathML || t.forceLegacyMathML))
return e.replace(da, "MathML is unsupported in this environment.");
- const { default: r } = await import("./index-xxHpJ_RR.js").then((n) => n.k), i = t.forceLegacyMathML || !ho() && t.legacyMathML ? "htmlAndMathml" : "mathml";
+ const { default: r } = await import("./index-DeMSGuTm.js").then((n) => n.k), i = t.forceLegacyMathML || !ho() && t.legacyMathML ? "htmlAndMathml" : "mathml";
return e.split(hi).map(
(n) => mr(n) ? `${n}
` : `${n}
`
).join("").replace(
@@ -13601,7 +13601,7 @@ var yl = /* @__PURE__ */ d(function(e, t, r) {
Zp([
{
name: "dagre",
- loader: /* @__PURE__ */ d(async () => await import("./dagre-OKDRZEBW-BpZfNC14.js"), "loader")
+ loader: /* @__PURE__ */ d(async () => await import("./dagre-OKDRZEBW-7tjnWrwm.js"), "loader")
}
]);
}, "registerDefaultLayoutLoaders");
@@ -14067,7 +14067,7 @@ function Tl(e) {
return !0;
}
var id = "c4", Dk = /* @__PURE__ */ d((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"), Rk = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./c4Diagram-VJAJSXHY-BFLwyIU9.js");
+ const { diagram: e } = await import("./c4Diagram-VJAJSXHY-nowPICdC.js");
return { id, diagram: e };
}, "loader"), Ik = {
id,
@@ -14077,7 +14077,7 @@ var id = "c4", Dk = /* @__PURE__ */ d((e) => /^\s*C4Context|C4Container|C4Compon
var r, i;
return ((r = t == null ? void 0 : t.flowchart) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" || ((i = t == null ? void 0 : t.flowchart) == null ? void 0 : i.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(e);
}, "detector"), zk = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./flowDiagram-4HSFHLVR-DiHdHcaJ.js");
+ const { diagram: e } = await import("./flowDiagram-4HSFHLVR-BEKKIWnV.js");
return { id: nd, diagram: e };
}, "loader"), qk = {
id: nd,
@@ -14087,70 +14087,70 @@ var id = "c4", Dk = /* @__PURE__ */ d((e) => /^\s*C4Context|C4Container|C4Compon
var r, i, n;
return ((r = t == null ? void 0 : t.flowchart) == null ? void 0 : r.defaultRenderer) === "dagre-d3" ? !1 : (((i = t == null ? void 0 : t.flowchart) == null ? void 0 : i.defaultRenderer) === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && ((n = t == null ? void 0 : t.flowchart) == null ? void 0 : n.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e));
}, "detector"), jk = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./flowDiagram-4HSFHLVR-DiHdHcaJ.js");
+ const { diagram: e } = await import("./flowDiagram-4HSFHLVR-BEKKIWnV.js");
return { id: ad, diagram: e };
}, "loader"), Yk = {
id: ad,
detector: Hk,
loader: jk
}, Gk = Yk, sd = "er", Uk = /* @__PURE__ */ d((e) => /^\s*erDiagram/.test(e), "detector"), Xk = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./erDiagram-Q7BY3M3F-CO2pasYc.js");
+ const { diagram: e } = await import("./erDiagram-Q7BY3M3F-B_BAUKms.js");
return { id: sd, diagram: e };
}, "loader"), Vk = {
id: sd,
detector: Uk,
loader: Xk
}, Zk = Vk, od = "gitGraph", Kk = /* @__PURE__ */ d((e) => /^\s*gitGraph/.test(e), "detector"), Qk = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./gitGraphDiagram-7IBYFJ6S-DFMHUBmV.js");
+ const { diagram: e } = await import("./gitGraphDiagram-7IBYFJ6S-BXKIFSAy.js");
return { id: od, diagram: e };
}, "loader"), Jk = {
id: od,
detector: Kk,
loader: Qk
}, tv = Jk, ld = "gantt", ev = /* @__PURE__ */ d((e) => /^\s*gantt/.test(e), "detector"), rv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./ganttDiagram-APWFNJXF-BzPYWX9W.js");
+ const { diagram: e } = await import("./ganttDiagram-APWFNJXF-DujTUm7n.js");
return { id: ld, diagram: e };
}, "loader"), iv = {
id: ld,
detector: ev,
loader: rv
}, nv = iv, cd = "info", av = /* @__PURE__ */ d((e) => /^\s*info/.test(e), "detector"), sv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./infoDiagram-PH2N3AL5-fhMlkv6w.js");
+ const { diagram: e } = await import("./infoDiagram-PH2N3AL5-CR5Da0AD.js");
return { id: cd, diagram: e };
}, "loader"), ov = {
id: cd,
detector: av,
loader: sv
}, hd = "pie", lv = /* @__PURE__ */ d((e) => /^\s*pie/.test(e), "detector"), cv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./pieDiagram-IB7DONF6-DDe9KgBF.js");
+ const { diagram: e } = await import("./pieDiagram-IB7DONF6-CPKKNIJA.js");
return { id: hd, diagram: e };
}, "loader"), hv = {
id: hd,
detector: lv,
loader: cv
}, ud = "quadrantChart", uv = /* @__PURE__ */ d((e) => /^\s*quadrantChart/.test(e), "detector"), fv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./quadrantDiagram-7GDLP6J5-BGl9qPho.js");
+ const { diagram: e } = await import("./quadrantDiagram-7GDLP6J5-CoYJaz14.js");
return { id: ud, diagram: e };
}, "loader"), pv = {
id: ud,
detector: uv,
loader: fv
}, dv = pv, fd = "xychart", gv = /* @__PURE__ */ d((e) => /^\s*xychart-beta/.test(e), "detector"), mv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./xychartDiagram-VJFVF3MP-BKtEAN5R.js");
+ const { diagram: e } = await import("./xychartDiagram-VJFVF3MP-CDS8V_Oo.js");
return { id: fd, diagram: e };
}, "loader"), yv = {
id: fd,
detector: gv,
loader: mv
}, xv = yv, pd = "requirement", bv = /* @__PURE__ */ d((e) => /^\s*requirement(Diagram)?/.test(e), "detector"), Cv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./requirementDiagram-KVF5MWMF-BvKrRVax.js");
+ const { diagram: e } = await import("./requirementDiagram-KVF5MWMF-BPlrnpfF.js");
return { id: pd, diagram: e };
}, "loader"), wv = {
id: pd,
detector: bv,
loader: Cv
}, _v = wv, dd = "sequence", kv = /* @__PURE__ */ d((e) => /^\s*sequenceDiagram/.test(e), "detector"), vv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./sequenceDiagram-X6HHIX6F-Bfni-YW_.js");
+ const { diagram: e } = await import("./sequenceDiagram-X6HHIX6F-9fny8oT9.js");
return { id: dd, diagram: e };
}, "loader"), Sv = {
id: dd,
@@ -14160,7 +14160,7 @@ var id = "c4", Dk = /* @__PURE__ */ d((e) => /^\s*C4Context|C4Container|C4Compon
var r;
return ((r = t == null ? void 0 : t.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e);
}, "detector"), Lv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./classDiagram-GIVACNV2-KrkkVrlR.js");
+ const { diagram: e } = await import("./classDiagram-GIVACNV2-DDZHRR0W.js");
return { id: gd, diagram: e };
}, "loader"), Mv = {
id: gd,
@@ -14170,7 +14170,7 @@ var id = "c4", Dk = /* @__PURE__ */ d((e) => /^\s*C4Context|C4Container|C4Compon
var r;
return /^\s*classDiagram/.test(e) && ((r = t == null ? void 0 : t.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e);
}, "detector"), Fv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./classDiagram-v2-COTLJTTW-KrkkVrlR.js");
+ const { diagram: e } = await import("./classDiagram-v2-COTLJTTW-DDZHRR0W.js");
return { id: md, diagram: e };
}, "loader"), Ev = {
id: md,
@@ -14180,7 +14180,7 @@ var id = "c4", Dk = /* @__PURE__ */ d((e) => /^\s*C4Context|C4Container|C4Compon
var r;
return ((r = t == null ? void 0 : t.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e);
}, "detector"), Rv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./stateDiagram-DGXRK772-CpehDlzW.js");
+ const { diagram: e } = await import("./stateDiagram-DGXRK772-05WQMe4G.js");
return { id: yd, diagram: e };
}, "loader"), Iv = {
id: yd,
@@ -14190,14 +14190,14 @@ var id = "c4", Dk = /* @__PURE__ */ d((e) => /^\s*C4Context|C4Container|C4Compon
var r;
return !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && ((r = t == null ? void 0 : t.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper");
}, "detector"), zv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./stateDiagram-v2-YXO3MK2T-CFM2lJF8.js");
+ const { diagram: e } = await import("./stateDiagram-v2-YXO3MK2T-Vpes2Qgn.js");
return { id: xd, diagram: e };
}, "loader"), qv = {
id: xd,
detector: Nv,
loader: zv
}, Wv = qv, bd = "journey", Hv = /* @__PURE__ */ d((e) => /^\s*journey/.test(e), "detector"), jv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./journeyDiagram-U35MCT3I-BI3B5NA4.js");
+ const { diagram: e } = await import("./journeyDiagram-U35MCT3I-CrknTRGa.js");
return { id: bd, diagram: e };
}, "loader"), Yv = {
id: bd,
@@ -14241,63 +14241,63 @@ var id = "c4", Dk = /* @__PURE__ */ d((e) => /^\s*C4Context|C4Container|C4Compon
/^\s*flowchart|graph/.test(e) && ((r = t == null ? void 0 : t.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? (t.layout = "elk", !0) : !1
);
}, "detector"), Qv = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./flowDiagram-4HSFHLVR-DiHdHcaJ.js");
+ const { diagram: e } = await import("./flowDiagram-4HSFHLVR-BEKKIWnV.js");
return { id: wd, diagram: e };
}, "loader"), Jv = {
id: wd,
detector: Kv,
loader: Qv
}, tS = Jv, _d = "timeline", eS = /* @__PURE__ */ d((e) => /^\s*timeline/.test(e), "detector"), rS = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./timeline-definition-BDJGKUSR-C6DrPqLg.js");
+ const { diagram: e } = await import("./timeline-definition-BDJGKUSR-DEUF8bfN.js");
return { id: _d, diagram: e };
}, "loader"), iS = {
id: _d,
detector: eS,
loader: rS
}, nS = iS, kd = "mindmap", aS = /* @__PURE__ */ d((e) => /^\s*mindmap/.test(e), "detector"), sS = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./mindmap-definition-ALO5MXBD-BO2Uu9ee.js");
+ const { diagram: e } = await import("./mindmap-definition-ALO5MXBD-BBC42sMH.js");
return { id: kd, diagram: e };
}, "loader"), oS = {
id: kd,
detector: aS,
loader: sS
}, lS = oS, vd = "kanban", cS = /* @__PURE__ */ d((e) => /^\s*kanban/.test(e), "detector"), hS = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./kanban-definition-NDS4AKOZ-BdftdmWH.js");
+ const { diagram: e } = await import("./kanban-definition-NDS4AKOZ-LMIj9hLY.js");
return { id: vd, diagram: e };
}, "loader"), uS = {
id: vd,
detector: cS,
loader: hS
}, fS = uS, Sd = "sankey", pS = /* @__PURE__ */ d((e) => /^\s*sankey-beta/.test(e), "detector"), dS = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./sankeyDiagram-QLVOVGJD-B_m0WTk6.js");
+ const { diagram: e } = await import("./sankeyDiagram-QLVOVGJD-DIxmBNYR.js");
return { id: Sd, diagram: e };
}, "loader"), gS = {
id: Sd,
detector: pS,
loader: dS
}, mS = gS, Td = "packet", yS = /* @__PURE__ */ d((e) => /^\s*packet-beta/.test(e), "detector"), xS = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./diagram-VNBRO52H-CxKrAEhh.js");
+ const { diagram: e } = await import("./diagram-VNBRO52H-B6l1DKJW.js");
return { id: Td, diagram: e };
}, "loader"), bS = {
id: Td,
detector: yS,
loader: xS
}, Bd = "radar", CS = /* @__PURE__ */ d((e) => /^\s*radar-beta/.test(e), "detector"), wS = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./diagram-SSKATNLV-OTX44Aig.js");
+ const { diagram: e } = await import("./diagram-SSKATNLV-BR7Vb9FL.js");
return { id: Bd, diagram: e };
}, "loader"), _S = {
id: Bd,
detector: CS,
loader: wS
}, Ld = "block", kS = /* @__PURE__ */ d((e) => /^\s*block-beta/.test(e), "detector"), vS = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./blockDiagram-JOT3LUYC-DoVxwmWs.js");
+ const { diagram: e } = await import("./blockDiagram-JOT3LUYC-DC6f4uVN.js");
return { id: Ld, diagram: e };
}, "loader"), SS = {
id: Ld,
detector: kS,
loader: vS
}, TS = SS, Md = "architecture", BS = /* @__PURE__ */ d((e) => /^\s*architecture/.test(e), "detector"), LS = /* @__PURE__ */ d(async () => {
- const { diagram: e } = await import("./architectureDiagram-IEHRJDOE-SNjtt7L7.js");
+ const { diagram: e } = await import("./architectureDiagram-IEHRJDOE-Dkm_-XtH.js");
return { id: Md, diagram: e };
}, "loader"), MS = {
id: Md,
diff --git a/backend/fastrtc/templates/component/mindmap-definition-ALO5MXBD-BO2Uu9ee.js b/backend/fastrtc/templates/component/mindmap-definition-ALO5MXBD-BBC42sMH.js
similarity index 99%
rename from backend/fastrtc/templates/component/mindmap-definition-ALO5MXBD-BO2Uu9ee.js
rename to backend/fastrtc/templates/component/mindmap-definition-ALO5MXBD-BBC42sMH.js
index b396b02..04e4db9 100644
--- a/backend/fastrtc/templates/component/mindmap-definition-ALO5MXBD-BO2Uu9ee.js
+++ b/backend/fastrtc/templates/component/mindmap-definition-ALO5MXBD-BBC42sMH.js
@@ -1,6 +1,6 @@
-import { _ as S, l as z, j as Nt, aj as Dt, O as mt, d as at, H as Ot, V as At, C as tt, i as et, W as It, X as Ct, Y as Rt } from "./mermaid.core-C0Blj36u.js";
+import { _ as S, l as z, j as Nt, aj as Dt, O as mt, d as at, H as Ot, V as At, C as tt, i as et, W as It, X as Ct, Y as Rt } from "./mermaid.core-Cmyps_S7.js";
import { c as pt } from "./cytoscape.esm-C2cgT2B2.js";
-import { c as ot, g as xt } from "./index-xxHpJ_RR.js";
+import { c as ot, g as xt } from "./index-DeMSGuTm.js";
var dt = { exports: {} }, it = { exports: {} }, nt = { exports: {} }, ut;
function Mt() {
return ut || (ut = 1, function(I, w) {
diff --git a/backend/fastrtc/templates/component/pieDiagram-IB7DONF6-DDe9KgBF.js b/backend/fastrtc/templates/component/pieDiagram-IB7DONF6-CPKKNIJA.js
similarity index 96%
rename from backend/fastrtc/templates/component/pieDiagram-IB7DONF6-DDe9KgBF.js
rename to backend/fastrtc/templates/component/pieDiagram-IB7DONF6-CPKKNIJA.js
index 2fd3068..b0bc7a8 100644
--- a/backend/fastrtc/templates/component/pieDiagram-IB7DONF6-DDe9KgBF.js
+++ b/backend/fastrtc/templates/component/pieDiagram-IB7DONF6-CPKKNIJA.js
@@ -1,7 +1,7 @@
-import { p as U } from "./chunk-4BMEZGHF-4N88GRXN.js";
-import { aa as y, a2 as z, aF as j, C as H, n as Z, o as q, s as J, g as K, c as Q, b as X, _ as p, l as F, t as Y, d as tt, D as et, H as at, O as rt, k as nt } from "./mermaid.core-C0Blj36u.js";
-import { p as it } from "./radar-MK3ICKWK-Uwn-jZp4.js";
-import { d as P } from "./arc-BHDr2DIN.js";
+import { p as U } from "./chunk-4BMEZGHF-skpIwyQ5.js";
+import { aa as y, a2 as z, aF as j, C as H, n as Z, o as q, s as J, g as K, c as Q, b as X, _ as p, l as F, t as Y, d as tt, D as et, H as at, O as rt, k as nt } from "./mermaid.core-Cmyps_S7.js";
+import { p as it } from "./radar-MK3ICKWK-Bw4p6KaX.js";
+import { d as P } from "./arc-DNvJTUeW.js";
import { o as st } from "./ordinal-DfAQgscy.js";
function ot(t, a) {
return a < t ? -1 : a > t ? 1 : a >= t ? 0 : NaN;
diff --git a/backend/fastrtc/templates/component/quadrantDiagram-7GDLP6J5-BGl9qPho.js b/backend/fastrtc/templates/component/quadrantDiagram-7GDLP6J5-CoYJaz14.js
similarity index 99%
rename from backend/fastrtc/templates/component/quadrantDiagram-7GDLP6J5-BGl9qPho.js
rename to backend/fastrtc/templates/component/quadrantDiagram-7GDLP6J5-CoYJaz14.js
index 60ec6b4..7c27527 100644
--- a/backend/fastrtc/templates/component/quadrantDiagram-7GDLP6J5-BGl9qPho.js
+++ b/backend/fastrtc/templates/component/quadrantDiagram-7GDLP6J5-CoYJaz14.js
@@ -1,5 +1,5 @@
-import { _ as o, K as _e, C as D, l as At, d as wt, i as Ae, o as ie, s as ke, g as Fe, n as Pe, b as ve, c as Ce, t as Le, j as zt, k as Ee } from "./mermaid.core-C0Blj36u.js";
-import { l as ee } from "./linear-CRa8eD4r.js";
+import { _ as o, K as _e, C as D, l as At, d as wt, i as Ae, o as ie, s as ke, g as Fe, n as Pe, b as ve, c as Ce, t as Le, j as zt, k as Ee } from "./mermaid.core-Cmyps_S7.js";
+import { l as ee } from "./linear-a_bmPvcN.js";
var Vt = function() {
var t = /* @__PURE__ */ o(function(j, r, l, g) {
for (l = l || {}, g = j.length; g--; l[j[g]] = r) ;
diff --git a/backend/fastrtc/templates/component/radar-MK3ICKWK-Uwn-jZp4.js b/backend/fastrtc/templates/component/radar-MK3ICKWK-Bw4p6KaX.js
similarity index 99%
rename from backend/fastrtc/templates/component/radar-MK3ICKWK-Uwn-jZp4.js
rename to backend/fastrtc/templates/component/radar-MK3ICKWK-Bw4p6KaX.js
index 7ed6a50..1deea04 100644
--- a/backend/fastrtc/templates/component/radar-MK3ICKWK-Uwn-jZp4.js
+++ b/backend/fastrtc/templates/component/radar-MK3ICKWK-Bw4p6KaX.js
@@ -1,10 +1,10 @@
var ku = Object.defineProperty;
var Su = (n, e, t) => e in n ? ku(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
var Qe = (n, e, t) => Su(n, typeof e != "symbol" ? e + "" : e, t);
-import { bw as xu, bx as Iu, aN as vl, bg as $u, aR as Cu, aO as ee, az as Nu, aA as pa, b6 as wu, b9 as Al, ba as El, bl as ma, b7 as _u, aC as gt, aD as D, aP as ga, aJ as Lu } from "./mermaid.core-C0Blj36u.js";
-import { k as Wt, j as Ms, g as Jt, S as Ou, w as bu, x as Pu, c as kl, v as z, y as Sl, l as Mu, z as Du, A as Fu, B as Gu, C as Uu, a as xl, d as C, i as qe, r as oe, f as Se, D as Y } from "./_baseUniq-BfI_PfuI.js";
-import { j as Ds, m as x, d as Bu, f as Ne, g as jt, i as Fs, h as N, l as Kt, e as Vu } from "./_basePickBy-BWyW5hVA.js";
-import { c as ne } from "./clone-D_f12Uao.js";
+import { bw as xu, bx as Iu, aN as vl, bg as $u, aR as Cu, aO as ee, az as Nu, aA as pa, b6 as wu, b9 as Al, ba as El, bl as ma, b7 as _u, aC as gt, aD as D, aP as ga, aJ as Lu } from "./mermaid.core-Cmyps_S7.js";
+import { k as Wt, j as Ms, g as Jt, S as Ou, w as bu, x as Pu, c as kl, v as z, y as Sl, l as Mu, z as Du, A as Fu, B as Gu, C as Uu, a as xl, d as C, i as qe, r as oe, f as Se, D as Y } from "./_baseUniq-BN26mYqf.js";
+import { j as Ds, m as x, d as Bu, f as Ne, g as jt, i as Fs, h as N, l as Kt, e as Vu } from "./_basePickBy-Bz_aTL3_.js";
+import { c as ne } from "./clone-Bt-5RraT.js";
var Wu = Object.prototype, ju = Wu.hasOwnProperty, ke = xu(function(n, e) {
if (Iu(e) || vl(e)) {
$u(e, Wt(e), n);
diff --git a/backend/fastrtc/templates/component/requirementDiagram-KVF5MWMF-BvKrRVax.js b/backend/fastrtc/templates/component/requirementDiagram-KVF5MWMF-BPlrnpfF.js
similarity index 99%
rename from backend/fastrtc/templates/component/requirementDiagram-KVF5MWMF-BvKrRVax.js
rename to backend/fastrtc/templates/component/requirementDiagram-KVF5MWMF-BPlrnpfF.js
index f378b9d..130ab37 100644
--- a/backend/fastrtc/templates/component/requirementDiagram-KVF5MWMF-BvKrRVax.js
+++ b/backend/fastrtc/templates/component/requirementDiagram-KVF5MWMF-BPlrnpfF.js
@@ -1,5 +1,5 @@
-import { g as ze, s as Ge } from "./chunk-RZ5BOZE2-BQm8zocb.js";
-import { _ as f, s as Xe, g as Je, c as Ze, b as et, n as tt, o as st, d as Ne, l as qe, t as it, B as rt, y as nt, z as at, u as lt } from "./mermaid.core-C0Blj36u.js";
+import { g as ze, s as Ge } from "./chunk-RZ5BOZE2-C6qYYKQn.js";
+import { _ as f, s as Xe, g as Je, c as Ze, b as et, n as tt, o as st, d as Ne, l as qe, t as it, B as rt, y as nt, z as at, u as lt } from "./mermaid.core-Cmyps_S7.js";
var Ae = function() {
var e = /* @__PURE__ */ f(function(P, i, r, l) {
for (r = r || {}, l = P.length; l--; r[P[l]] = i) ;
diff --git a/backend/fastrtc/templates/component/sankeyDiagram-QLVOVGJD-B_m0WTk6.js b/backend/fastrtc/templates/component/sankeyDiagram-QLVOVGJD-DIxmBNYR.js
similarity index 99%
rename from backend/fastrtc/templates/component/sankeyDiagram-QLVOVGJD-B_m0WTk6.js
rename to backend/fastrtc/templates/component/sankeyDiagram-QLVOVGJD-DIxmBNYR.js
index 8534d63..e937c42 100644
--- a/backend/fastrtc/templates/component/sankeyDiagram-QLVOVGJD-B_m0WTk6.js
+++ b/backend/fastrtc/templates/component/sankeyDiagram-QLVOVGJD-DIxmBNYR.js
@@ -1,4 +1,4 @@
-import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt, o as wt, n as St, t as Lt, e as Et, v as At, j as X, V as Tt } from "./mermaid.core-C0Blj36u.js";
+import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt, o as wt, n as St, t as Lt, e as Et, v as At, j as X, V as Tt } from "./mermaid.core-Cmyps_S7.js";
import { o as Mt } from "./ordinal-DfAQgscy.js";
function Nt(t) {
for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; ) i[a] = "#" + t.slice(a * 6, ++a * 6);
diff --git a/backend/fastrtc/templates/component/sequenceDiagram-X6HHIX6F-Bfni-YW_.js b/backend/fastrtc/templates/component/sequenceDiagram-X6HHIX6F-9fny8oT9.js
similarity index 99%
rename from backend/fastrtc/templates/component/sequenceDiagram-X6HHIX6F-Bfni-YW_.js
rename to backend/fastrtc/templates/component/sequenceDiagram-X6HHIX6F-9fny8oT9.js
index 3ccce01..4821d25 100644
--- a/backend/fastrtc/templates/component/sequenceDiagram-X6HHIX6F-Bfni-YW_.js
+++ b/backend/fastrtc/templates/component/sequenceDiagram-X6HHIX6F-9fny8oT9.js
@@ -1,6 +1,6 @@
-import { g as At, a as Yt, d as xe, b as Te, c as ye, e as Ee } from "./chunk-D6G4REZN-BSQJOIKu.js";
-import { I as be } from "./chunk-XZIHB7SX-DIHERCaT.js";
-import { _ as u, s as Gt, c as me, n as we, g as ve, b as Ie, o as Le, d as $, t as _e, l as G, i as Lt, x as Pe, e as I, L as ot, M as bt, u as Y, a as Ae, j as _t, k as ke, m as Zt, N as Qt, E as Ct, O as jt, Z as Ne } from "./mermaid.core-C0Blj36u.js";
+import { g as At, a as Yt, d as xe, b as Te, c as ye, e as Ee } from "./chunk-D6G4REZN-BlR0637Q.js";
+import { I as be } from "./chunk-XZIHB7SX-BL75jMe6.js";
+import { _ as u, s as Gt, c as me, n as we, g as ve, b as Ie, o as Le, d as $, t as _e, l as G, i as Lt, x as Pe, e as I, L as ot, M as bt, u as Y, a as Ae, j as _t, k as ke, m as Zt, N as Qt, E as Ct, O as jt, Z as Ne } from "./mermaid.core-Cmyps_S7.js";
var Ot = function() {
var e = /* @__PURE__ */ u(function(ht, v, L, P) {
for (L = L || {}, P = ht.length; P--; L[ht[P]] = v) ;
diff --git a/backend/fastrtc/templates/component/stateDiagram-DGXRK772-CpehDlzW.js b/backend/fastrtc/templates/component/stateDiagram-DGXRK772-05WQMe4G.js
similarity index 98%
rename from backend/fastrtc/templates/component/stateDiagram-DGXRK772-CpehDlzW.js
rename to backend/fastrtc/templates/component/stateDiagram-DGXRK772-05WQMe4G.js
index 901ece6..4e4d33c 100644
--- a/backend/fastrtc/templates/component/stateDiagram-DGXRK772-CpehDlzW.js
+++ b/backend/fastrtc/templates/component/stateDiagram-DGXRK772-05WQMe4G.js
@@ -1,7 +1,7 @@
-import { s as W, S as N, a as P } from "./chunk-AEK57VVT-OrsXQu-U.js";
-import { _ as u, d as t, j as H, l as S, k as C, e as z, Q as U, R as F, u as O } from "./mermaid.core-C0Blj36u.js";
-import { G as J } from "./graph-as_7zmXK.js";
-import { l as X } from "./layout-BG95tefZ.js";
+import { s as W, S as N, a as P } from "./chunk-AEK57VVT-Bi19bt7P.js";
+import { _ as u, d as t, j as H, l as S, k as C, e as z, Q as U, R as F, u as O } from "./mermaid.core-Cmyps_S7.js";
+import { G as J } from "./graph-BaPzJnYr.js";
+import { l as X } from "./layout-ZrEF_W9p.js";
var L = {}, D = /* @__PURE__ */ u((e, i) => {
L[e] = i;
}, "set"), Y = /* @__PURE__ */ u((e) => L[e], "get"), A = /* @__PURE__ */ u(() => Object.keys(L), "keys"), I = /* @__PURE__ */ u(() => A().length, "size"), $ = {
diff --git a/backend/fastrtc/templates/component/stateDiagram-v2-YXO3MK2T-CFM2lJF8.js b/backend/fastrtc/templates/component/stateDiagram-v2-YXO3MK2T-Vpes2Qgn.js
similarity index 82%
rename from backend/fastrtc/templates/component/stateDiagram-v2-YXO3MK2T-CFM2lJF8.js
rename to backend/fastrtc/templates/component/stateDiagram-v2-YXO3MK2T-Vpes2Qgn.js
index 2e0fbc5..e7ffe24 100644
--- a/backend/fastrtc/templates/component/stateDiagram-v2-YXO3MK2T-CFM2lJF8.js
+++ b/backend/fastrtc/templates/component/stateDiagram-v2-YXO3MK2T-Vpes2Qgn.js
@@ -1,5 +1,5 @@
-import { s as a, S as t, b as r, a as s } from "./chunk-AEK57VVT-OrsXQu-U.js";
-import { _ as i } from "./mermaid.core-C0Blj36u.js";
+import { s as a, S as t, b as r, a as s } from "./chunk-AEK57VVT-Bi19bt7P.js";
+import { _ as i } from "./mermaid.core-Cmyps_S7.js";
var _ = {
parser: a,
get db() {
diff --git a/backend/fastrtc/templates/component/timeline-definition-BDJGKUSR-C6DrPqLg.js b/backend/fastrtc/templates/component/timeline-definition-BDJGKUSR-DEUF8bfN.js
similarity index 99%
rename from backend/fastrtc/templates/component/timeline-definition-BDJGKUSR-C6DrPqLg.js
rename to backend/fastrtc/templates/component/timeline-definition-BDJGKUSR-DEUF8bfN.js
index 6ba7484..a0ec889 100644
--- a/backend/fastrtc/templates/component/timeline-definition-BDJGKUSR-C6DrPqLg.js
+++ b/backend/fastrtc/templates/component/timeline-definition-BDJGKUSR-DEUF8bfN.js
@@ -1,5 +1,5 @@
-import { _ as s, B as xt, U as kt, t as vt, j as U, d as _t, l as T, V as bt, W as wt, X as St, Y as Et } from "./mermaid.core-C0Blj36u.js";
-import { d as nt } from "./arc-BHDr2DIN.js";
+import { _ as s, B as xt, U as kt, t as vt, j as U, d as _t, l as T, V as bt, W as wt, X as St, Y as Et } from "./mermaid.core-Cmyps_S7.js";
+import { d as nt } from "./arc-DNvJTUeW.js";
var X = function() {
var n = /* @__PURE__ */ s(function(f, i, a, d) {
for (a = a || {}, d = f.length; d--; a[f[d]] = i) ;
diff --git a/backend/fastrtc/templates/component/xychartDiagram-VJFVF3MP-BKtEAN5R.js b/backend/fastrtc/templates/component/xychartDiagram-VJFVF3MP-CDS8V_Oo.js
similarity index 99%
rename from backend/fastrtc/templates/component/xychartDiagram-VJFVF3MP-BKtEAN5R.js
rename to backend/fastrtc/templates/component/xychartDiagram-VJFVF3MP-CDS8V_Oo.js
index bb75d30..30fb9a0 100644
--- a/backend/fastrtc/templates/component/xychartDiagram-VJFVF3MP-BKtEAN5R.js
+++ b/backend/fastrtc/templates/component/xychartDiagram-VJFVF3MP-CDS8V_Oo.js
@@ -1,7 +1,7 @@
-import { _ as a, aE as ui, l as Ft, Q as Bt, K as gi, E as At, D as Xt, C as xi, i as di, o as Nt, s as pi, g as fi, n as mi, b as yi, c as bi, t as Ai, H as wi, k as Ci } from "./mermaid.core-C0Blj36u.js";
+import { _ as a, aE as ui, l as Ft, Q as Bt, K as gi, E as At, D as Xt, C as xi, i as di, o as Nt, s as pi, g as fi, n as mi, b as yi, c as bi, t as Ai, H as wi, k as Ci } from "./mermaid.core-Cmyps_S7.js";
import { i as Si } from "./init-DjUOC4st.js";
import { o as _i } from "./ordinal-DfAQgscy.js";
-import { l as Wt } from "./linear-CRa8eD4r.js";
+import { l as Wt } from "./linear-a_bmPvcN.js";
function ki(e, t, i) {
e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
diff --git a/backend/fastrtc/tracks.py b/backend/fastrtc/tracks.py
index 0d62aaa..6d3710e 100644
--- a/backend/fastrtc/tracks.py
+++ b/backend/fastrtc/tracks.py
@@ -114,14 +114,14 @@ class VideoCallback(VideoStreamTrack):
self.channel_set.set()
def set_args(self, args: list[Any]):
- self.latest_args = ["__webrtc_value__"] + list(args)
+ self.latest_args = list(args)
def add_frame_to_payload(
self, args: list[Any], frame: np.ndarray | None
) -> list[Any]:
new_args = []
- for val in args:
- if isinstance(val, str) and val == "__webrtc_value__":
+ for i, val in enumerate(args):
+ if i == 0:
new_args.append(frame)
else:
new_args.append(val)
diff --git a/frontend/shared/InteractiveVideo.svelte b/frontend/shared/InteractiveVideo.svelte
index 7f3cbbc..3d68e87 100644
--- a/frontend/shared/InteractiveVideo.svelte
+++ b/frontend/shared/InteractiveVideo.svelte
@@ -45,12 +45,11 @@
upload: FileData;
start_recording?: never;
stop_recording?: never;
- tick: never;
+ tick: undefined;
}>();
let dragging = false;
$: dispatch("drag", dragging);
- $: webrtc_id = typeof value === "string" ? value : value.webrtc_id;
@@ -75,7 +74,7 @@
{i18n}
stream_every={0.5}
{server}
- bind:webrtc_id
+ bind:webrtc_id={value}
{reject_cb}
/>