aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/react-dom-server.bun.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/react-dom-server.bun.cjs')
-rw-r--r--test/bun.js/react-dom-server.bun.cjs592
1 files changed, 130 insertions, 462 deletions
diff --git a/test/bun.js/react-dom-server.bun.cjs b/test/bun.js/react-dom-server.bun.cjs
index 6367ee8aa..f67e54a8c 100644
--- a/test/bun.js/react-dom-server.bun.cjs
+++ b/test/bun.js/react-dom-server.bun.cjs
@@ -42,7 +42,7 @@ function t(a, b, c, d, e, f, g) {
var v = {},
ja =
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(
- " "
+ " ",
);
ja.push("innerText", "textContent");
ja.forEach(function (a) {
@@ -60,12 +60,7 @@ ja.forEach(function (a) {
["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) {
v[a] = new t(a, 2, !1, a.toLowerCase(), null, !1, !1);
});
-[
- "autoReverse",
- "externalResourcesRequired",
- "focusable",
- "preserveAlpha",
-].forEach(function (a) {
+["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a) {
v[a] = new t(a, 2, !1, a, null, !1, !1);
});
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope"
@@ -95,12 +90,10 @@ function la(a) {
var b = a.replace(ka, la);
v[b] = new t(b, 1, !1, a, null, !1, !1);
});
-"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type"
- .split(" ")
- .forEach(function (a) {
- var b = a.replace(ka, la);
- v[b] = new t(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1);
- });
+"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a) {
+ var b = a.replace(ka, la);
+ v[b] = new t(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1);
+});
["xml:base", "xml:lang", "xml:space"].forEach(function (a) {
var b = a.replace(ka, la);
v[b] = new t(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1);
@@ -108,15 +101,7 @@ function la(a) {
["tabIndex", "crossOrigin"].forEach(function (a) {
v[a] = new t(a, 1, !1, a.toLowerCase(), null, !1, !1);
});
-v.xlinkHref = new t(
- "xlinkHref",
- 1,
- !1,
- "xlink:href",
- "http://www.w3.org/1999/xlink",
- !0,
- !1
-);
+v.xlinkHref = new t("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
["src", "href", "action", "formAction"].forEach(function (a) {
v[a] = new t(a, 1, !1, a.toLowerCase(), null, !0, !0);
});
@@ -312,9 +297,7 @@ function wa(a, b, c, d) {
null == d.crossOrigin && (d.crossOrigin = a.crossOrigin),
null == d.referrerPolicy && (d.referrerPolicy = a.referrerPolicy),
null == d.title && (d.title = a.title))
- : ((f = ya(b, d)),
- (f = z(a, b, "style", f)),
- a.explicitStylePreloads.add(f));
+ : ((f = ya(b, d)), (f = z(a, b, "style", f)), a.explicitStylePreloads.add(f));
c = {
type: "style",
href: b,
@@ -336,18 +319,13 @@ function xa(a, b, c) {
null == c.crossOrigin && (c.crossOrigin = a.crossOrigin),
null == c.referrerPolicy && (c.referrerPolicy = a.referrerPolicy),
null == c.integrity && (c.integrity = a.integrity))
- : ((e = za(b, c)),
- (e = z(a, b, "script", e)),
- a.explicitScriptPreloads.add(e));
+ : ((e = za(b, c)), (e = z(a, b, "script", e)), a.explicitScriptPreloads.add(e));
c = { type: "script", src: b, flushed: !1, props: c, hint: e };
d.set(b, c);
return c;
}
function Aa(a, b) {
- if (!y)
- throw Error(
- '"currentResources" was expected to exist. This is a bug in React.'
- );
+ if (!y) throw Error('"currentResources" was expected to exist. This is a bug in React.');
var c = y;
switch (a) {
case "title":
@@ -367,11 +345,9 @@ function Aa(a, b) {
case "meta":
if ("string" === typeof b.charSet) e = "charSet";
else if ("string" === typeof b.content)
- if (((a = "::" + b.content), "string" === typeof b.httpEquiv))
- e = "httpEquiv::" + b.httpEquiv + a;
+ if (((a = "::" + b.content), "string" === typeof b.httpEquiv)) e = "httpEquiv::" + b.httpEquiv + a;
else if ("string" === typeof b.name) e = "name::" + b.name + a;
- else if ("string" === typeof b.itemProp)
- e = "itemProp::" + b.itemProp + a;
+ else if ("string" === typeof b.itemProp) e = "itemProp::" + b.itemProp + a;
else if ("string" === typeof b.property) {
var f = b.property;
e = "property::" + f + a;
@@ -383,9 +359,7 @@ function Aa(a, b) {
!c.headsMap.has(e) &&
((b = { type: "meta", key: e, props: x({}, b), flushed: !1 }),
c.headsMap.set(e, b),
- "charSet" === e
- ? (c.charset = b)
- : (d && c.structuredMetaKeys.set(d, b), c.headResources.add(b)));
+ "charSet" === e ? (c.charset = b) : (d && c.structuredMetaKeys.set(d, b), c.headResources.add(b)));
return !0;
case "base":
return (
@@ -396,19 +370,14 @@ function Aa(a, b) {
("string" === typeof d ? '[href="' + d + '"]' : ":not([href])") +
("string" === typeof e ? '[target="' + e + '"]' : ":not([target])")),
c.headsMap.has(e) ||
- ((b = { type: "base", props: x({}, b), flushed: !1 }),
- c.headsMap.set(e, b),
- c.bases.add(b)),
+ ((b = { type: "base", props: x({}, b), flushed: !1 }), c.headsMap.set(e, b), c.bases.add(b)),
!0
);
}
return !1;
}
function Ba(a) {
- if (!y)
- throw Error(
- '"currentResources" was expected to exist. This is a bug in React.'
- );
+ if (!y) throw Error('"currentResources" was expected to exist. This is a bug in React.');
var b = y,
c = a.rel,
d = a.href;
@@ -420,11 +389,7 @@ function Ba(a) {
c = a.precedence;
var g = a.disabled;
if ("string" !== typeof c || e || f || null != g)
- return (
- (c = b.preloadsMap.get(d)),
- c || ((c = z(b, d, "style", ya(d, a))), b.usedStylePreloads.add(c)),
- !1
- );
+ return (c = b.preloadsMap.get(d)), c || ((c = z(b, d, "style", ya(d, a))), b.usedStylePreloads.add(c)), !1;
e = b.stylesMap.get(d);
e ||
((a = x({}, a)),
@@ -476,11 +441,7 @@ function Ba(a) {
("string" === typeof a.media ? a.media : "");
e = b.headsMap.get(d);
if (!e)
- switch (
- ((e = { type: "link", props: x({}, a), flushed: !1 }),
- b.headsMap.set(d, e),
- c)
- ) {
+ switch (((e = { type: "link", props: x({}, a), flushed: !1 }), b.headsMap.set(d, e), c)) {
case "preconnect":
case "dns-prefetch":
b.preconnects.add(e);
@@ -526,10 +487,7 @@ function Ha(a, b, c, d, e) {
for (d = 0; d < e.length; d++)
(c = e[d]),
(g = "string" === typeof c ? void 0 : c.integrity),
- f.push(
- '<script type="module" src="',
- w("string" === typeof c ? c : c.src)
- ),
+ f.push('<script type="module" src="', w("string" === typeof c ? c : c.src)),
g && f.push('" integrity="', w(g)),
f.push('" async="">\x3c/script>');
return {
@@ -550,26 +508,14 @@ function A(a, b, c) {
return { insertionMode: a, selectedValue: b, noscriptTagInScope: c };
}
function Ia(a) {
- return A(
- "http://www.w3.org/2000/svg" === a
- ? 2
- : "http://www.w3.org/1998/Math/MathML" === a
- ? 3
- : 0,
- null,
- !1
- );
+ return A("http://www.w3.org/2000/svg" === a ? 2 : "http://www.w3.org/1998/Math/MathML" === a ? 3 : 0, null, !1);
}
function Ja(a, b, c) {
switch (b) {
case "noscript":
return A(1, null, !0);
case "select":
- return A(
- 1,
- null != c.value ? c.value : c.defaultValue,
- a.noscriptTagInScope
- );
+ return A(1, null != c.value ? c.value : c.defaultValue, a.noscriptTagInScope);
case "svg":
return A(2, null, a.noscriptTagInScope);
case "math":
@@ -587,9 +533,7 @@ function Ja(a, b, c) {
case "tr":
return A(6, null, a.noscriptTagInScope);
}
- return 4 <= a.insertionMode || 0 === a.insertionMode
- ? A(1, null, a.noscriptTagInScope)
- : a;
+ return 4 <= a.insertionMode || 0 === a.insertionMode ? A(1, null, a.noscriptTagInScope) : a;
}
function Ka(a, b, c, d) {
if ("" === b) return d;
@@ -601,7 +545,7 @@ var La = new Map();
function Ma(a, b, c) {
if ("object" !== typeof c)
throw Error(
- "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."
+ "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.",
);
b = !0;
for (var d in c)
@@ -616,15 +560,8 @@ function Ma(a, b, c) {
var g = La.get(f);
void 0 !== g
? (f = g)
- : ((g = w(f.replace(pa, "-$1").toLowerCase().replace(qa, "-ms-"))),
- La.set(f, g),
- (f = g));
- e =
- "number" === typeof e
- ? 0 === e || r.call(ma, d)
- ? "" + e
- : e + "px"
- : w(("" + e).trim());
+ : ((g = w(f.replace(pa, "-$1").toLowerCase().replace(qa, "-ms-"))), La.set(f, g), (f = g));
+ e = "number" === typeof e ? (0 === e || r.call(ma, d) ? "" + e : e + "px") : w(("" + e).trim());
}
b ? ((b = !1), a.push(' style="', f, ":", e)) : a.push(";", f, ":", e);
}
@@ -643,11 +580,7 @@ function C(a, b, c, d) {
case "suppressHydrationWarning":
return;
}
- if (
- !(2 < c.length) ||
- ("o" !== c[0] && "O" !== c[0]) ||
- ("n" !== c[1] && "N" !== c[1])
- )
+ if (!(2 < c.length) || ("o" !== c[0] && "O" !== c[0]) || ("n" !== c[1] && "N" !== c[1]))
if (((b = v.hasOwnProperty(c) ? v[c] : null), null !== b)) {
switch (typeof d) {
case "function":
@@ -662,9 +595,7 @@ function C(a, b, c, d) {
d && a.push(" ", c, '=""');
break;
case 4:
- !0 === d
- ? a.push(" ", c, '=""')
- : !1 !== d && a.push(" ", c, '="', w(d), '"');
+ !0 === d ? a.push(" ", c, '=""') : !1 !== d && a.push(" ", c, '="', w(d), '"');
break;
case 5:
isNaN(d) || a.push(" ", c, '="', w(d), '"');
@@ -681,23 +612,17 @@ function C(a, b, c, d) {
case "symbol":
return;
case "boolean":
- if (
- ((b = c.toLowerCase().slice(0, 5)), "data-" !== b && "aria-" !== b)
- )
- return;
+ if (((b = c.toLowerCase().slice(0, 5)), "data-" !== b && "aria-" !== b)) return;
}
a.push(" ", c, '="', w(d), '"');
}
}
function D(a, b, c) {
if (null != b) {
- if (null != c)
- throw Error(
- "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
- );
+ if (null != c) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
if ("object" !== typeof b || !("__html" in b))
throw Error(
- "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information."
+ "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
);
b = b.__html;
null !== b && void 0 !== b && a.push("" + b);
@@ -721,7 +646,7 @@ function F(a, b, c) {
case "children":
case "dangerouslySetInnerHTML":
throw Error(
- "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
+ "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
case "precedence":
if (d) continue;
@@ -742,8 +667,7 @@ function I(a, b, c, d) {
case "children":
case "dangerouslySetInnerHTML":
throw Error(
- c +
- " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
+ c + " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
default:
C(a, d, e, f);
@@ -765,9 +689,7 @@ function Oa(a, b, c) {
d = f;
break;
case "dangerouslySetInnerHTML":
- throw Error(
- "`dangerouslySetInnerHTML` does not make sense on <title>."
- );
+ throw Error("`dangerouslySetInnerHTML` does not make sense on <title>.");
default:
C(a, c, e, f);
}
@@ -919,21 +841,15 @@ function Sa(a, b, c, d, e, f, g) {
h = m;
break;
case "dangerouslySetInnerHTML":
- throw Error(
- "`dangerouslySetInnerHTML` does not make sense on <textarea>."
- );
+ throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");
default:
C(a, e, n, m);
}
null === g && null !== h && (g = h);
a.push(">");
if (null != k) {
- if (null != g)
- throw Error(
- "If you supply `defaultValue` on a <textarea>, do not pass children."
- );
- if (ra(k) && 1 < k.length)
- throw Error("<textarea> can only have at most one child.");
+ if (null != g) throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");
+ if (ra(k) && 1 < k.length) throw Error("<textarea> can only have at most one child.");
g = "" + k;
}
"string" === typeof g && "\n" === g[0] && a.push("\n");
@@ -948,7 +864,7 @@ function Sa(a, b, c, d, e, f, g) {
case "children":
case "dangerouslySetInnerHTML":
throw Error(
- "input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
+ "input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
case "defaultChecked":
m = p;
@@ -976,35 +892,19 @@ function Sa(a, b, c, d, e, f, g) {
switch (u) {
case "children":
case "dangerouslySetInnerHTML":
- throw Error(
- "menuitems cannot have `children` nor `dangerouslySetInnerHTML`."
- );
+ throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");
default:
C(a, e, u, g);
}
a.push(">");
return null;
case "title":
- return (
- (a =
- 2 !== f.insertionMode && !f.noscriptTagInScope && Aa("title", d)
- ? null
- : Oa(a, d, e)),
- a
- );
+ return (a = 2 !== f.insertionMode && !f.noscriptTagInScope && Aa("title", d) ? null : Oa(a, d, e)), a;
case "link":
- return (
- !f.noscriptTagInScope && Ba(d)
- ? (g && a.push("\x3c!-- --\x3e"), (a = null))
- : (a = F(a, d, e)),
- a
- );
+ return !f.noscriptTagInScope && Ba(d) ? (g && a.push("\x3c!-- --\x3e"), (a = null)) : (a = F(a, d, e)), a;
case "script":
if ((h = !f.noscriptTagInScope)) {
- if (!y)
- throw Error(
- '"currentResources" was expected to exist. This is a bug in React.'
- );
+ if (!y) throw Error('"currentResources" was expected to exist. This is a bug in React.');
h = y;
k = d.src;
n = d.onLoad;
@@ -1012,16 +912,8 @@ function Sa(a, b, c, d, e, f, g) {
k && "string" === typeof k
? d.async
? (n || m
- ? ((n = h.preloadsMap.get(k)),
- n ||
- ((n = z(h, k, "script", za(k, d))),
- h.usedScriptPreloads.add(n)))
- : ((n = h.scriptsMap.get(k)),
- n ||
- ((n = x({}, d)),
- (n.src = k),
- (n = xa(h, k, n)),
- h.scripts.add(n))),
+ ? ((n = h.preloadsMap.get(k)), n || ((n = z(h, k, "script", za(k, d))), h.usedScriptPreloads.add(n)))
+ : ((n = h.scriptsMap.get(k)), n || ((n = x({}, d)), (n.src = k), (n = xa(h, k, n)), h.scripts.add(n))),
(h = !0))
: (h = !1)
: (h = !1);
@@ -1030,16 +922,12 @@ function Sa(a, b, c, d, e, f, g) {
return a;
case "meta":
return (
- !f.noscriptTagInScope && Aa("meta", d)
- ? (g && a.push("\x3c!-- --\x3e"), (a = null))
- : (a = I(a, d, "meta", e)),
+ !f.noscriptTagInScope && Aa("meta", d) ? (g && a.push("\x3c!-- --\x3e"), (a = null)) : (a = I(a, d, "meta", e)),
a
);
case "base":
return (
- !f.noscriptTagInScope && Aa("base", d)
- ? (g && a.push("\x3c!-- --\x3e"), (a = null))
- : (a = I(a, d, "base", e)),
+ !f.noscriptTagInScope && Aa("base", d) ? (g && a.push("\x3c!-- --\x3e"), (a = null)) : (a = I(a, d, "base", e)),
a
);
case "listing":
@@ -1060,20 +948,15 @@ function Sa(a, b, c, d, e, f, g) {
}
a.push(">");
if (null != h) {
- if (null != g)
- throw Error(
- "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
- );
+ if (null != g) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
if ("object" !== typeof h || !("__html" in h))
throw Error(
- "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information."
+ "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
);
d = h.__html;
null !== d &&
void 0 !== d &&
- ("string" === typeof d && 0 < d.length && "\n" === d[0]
- ? a.push("\n", d)
- : a.push("" + d));
+ ("string" === typeof d && 0 < d.length && "\n" === d[0] ? a.push("\n", d) : a.push("" + d));
}
"string" === typeof g && "\n" === g[0] && a.push("\n");
return g;
@@ -1103,22 +986,12 @@ function Sa(a, b, c, d, e, f, g) {
case "html":
return 0 === f.insertionMode && b.push("<!DOCTYPE html>"), J(b, d, c, e);
default:
- if (-1 === c.indexOf("-") && "string" !== typeof d.is)
- return J(a, d, c, e);
+ if (-1 === c.indexOf("-") && "string" !== typeof d.is) return J(a, d, c, e);
a.push(G(c));
h = g = null;
for (q in d)
- if (
- r.call(d, q) &&
- ((k = d[q]),
- null != k &&
- "function" !== typeof k &&
- "object" !== typeof k &&
- !1 !== k)
- )
- switch (
- (!0 === k && (k = ""), "className" === q && (q = "class"), q)
- ) {
+ if (r.call(d, q) && ((k = d[q]), null != k && "function" !== typeof k && "object" !== typeof k && !1 !== k))
+ switch ((!0 === k && (k = ""), "className" === q && (q = "class"), q)) {
case "children":
g = k;
break;
@@ -1132,10 +1005,7 @@ function Sa(a, b, c, d, e, f, g) {
case "suppressHydrationWarning":
break;
default:
- ia(q) &&
- "function" !== typeof k &&
- "symbol" !== typeof k &&
- a.push(" ", q, '="', w(k), '"');
+ ia(q) && "function" !== typeof k && "symbol" !== typeof k && a.push(" ", q, '="', w(k), '"');
}
a.push(">");
D(a, h, g);
@@ -1173,10 +1043,7 @@ function Ta(a, b, c) {
}
function Ua(a, b, c) {
l(a, '\x3c!--$?--\x3e<template id="');
- if (null === c)
- throw Error(
- "An ID must have been assigned before we can complete the boundary."
- );
+ if (null === c) throw Error("An ID must have been assigned before we can complete the boundary.");
l(a, c);
return !!a.write('"></template>');
}
@@ -1184,12 +1051,7 @@ function Va(a, b, c, d) {
switch (c.insertionMode) {
case 0:
case 1:
- return (
- l(a, '<div hidden id="'),
- l(a, b.segmentPrefix),
- l(a, d.toString(16)),
- !!a.write('">')
- );
+ return l(a, '<div hidden id="'), l(a, b.segmentPrefix), l(a, d.toString(16)), !!a.write('">');
case 2:
return (
l(a, '<svg aria-hidden="true" style="display:none" id="'),
@@ -1205,33 +1067,13 @@ function Va(a, b, c, d) {
!!a.write('">')
);
case 4:
- return (
- l(a, '<table hidden id="'),
- l(a, b.segmentPrefix),
- l(a, d.toString(16)),
- !!a.write('">')
- );
+ return l(a, '<table hidden id="'), l(a, b.segmentPrefix), l(a, d.toString(16)), !!a.write('">');
case 5:
- return (
- l(a, '<table hidden><tbody id="'),
- l(a, b.segmentPrefix),
- l(a, d.toString(16)),
- !!a.write('">')
- );
+ return l(a, '<table hidden><tbody id="'), l(a, b.segmentPrefix), l(a, d.toString(16)), !!a.write('">');
case 6:
- return (
- l(a, '<table hidden><tr id="'),
- l(a, b.segmentPrefix),
- l(a, d.toString(16)),
- !!a.write('">')
- );
+ return l(a, '<table hidden><tr id="'), l(a, b.segmentPrefix), l(a, d.toString(16)), !!a.write('">');
case 7:
- return (
- l(a, '<table hidden><colgroup id="'),
- l(a, b.segmentPrefix),
- l(a, d.toString(16)),
- !!a.write('">')
- );
+ return l(a, '<table hidden><colgroup id="'), l(a, b.segmentPrefix), l(a, d.toString(16)), !!a.write('">');
default:
throw Error("Unknown insertion mode. This is a bug in React.");
}
@@ -1269,7 +1111,7 @@ function Ya(a) {
return "\\u2029";
default:
throw Error(
- "escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
+ "escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React",
);
}
});
@@ -1290,7 +1132,7 @@ function K(a) {
return "\\u2029";
default:
throw Error(
- "escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
+ "escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React",
);
}
});
@@ -1457,7 +1299,7 @@ function bb(a, b) {
case "children":
case "dangerouslySetInnerHTML":
throw Error(
- "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
+ "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.",
);
default:
a: {
@@ -1488,16 +1330,8 @@ function bb(a, b) {
default:
if (!ia(m)) break a;
}
- if (
- !(2 < m.length) ||
- ("o" !== m[0] && "O" !== m[0]) ||
- ("n" !== m[1] && "N" !== m[1])
- )
- (h = "" + h),
- l(d, ","),
- l(d, K(k)),
- l(d, ","),
- l(d, K(h));
+ if (!(2 < m.length) || ("o" !== m[0] && "O" !== m[0]) || ("n" !== m[1] && "N" !== m[1]))
+ (h = "" + h), l(d, ","), l(d, K(k)), l(d, ","), l(d, K(h));
}
}
}
@@ -1559,14 +1393,10 @@ function xb(a) {
case kb:
var b = a.render;
a = a.displayName;
- a ||
- ((a = b.displayName || b.name || ""),
- (a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"));
+ a || ((a = b.displayName || b.name || ""), (a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"));
return a;
case nb:
- return (
- (b = a.displayName || null), null !== b ? b : xb(a.type) || "Memo"
- );
+ return (b = a.displayName || null), null !== b ? b : xb(a.type) || "Memo";
case ob:
b = a._payload;
a = a._init;
@@ -1597,15 +1427,9 @@ function Bb(a, b) {
a = a.parent;
var c = b.parent;
if (null === a) {
- if (null !== c)
- throw Error(
- "The stacks must reach the root at the same time. This is a bug in React."
- );
+ if (null !== c) throw Error("The stacks must reach the root at the same time. This is a bug in React.");
} else {
- if (null === c)
- throw Error(
- "The stacks must reach the root at the same time. This is a bug in React."
- );
+ if (null === c) throw Error("The stacks must reach the root at the same time. This is a bug in React.");
Bb(a, c);
}
b.context._currentValue = b.value;
@@ -1625,32 +1449,20 @@ function Eb(a, b) {
a.context._currentValue = a.parentValue;
a = a.parent;
if (null === a)
- throw Error(
- "The depth must equal at least at zero before reaching the root. This is a bug in React."
- );
+ throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");
a.depth === b.depth ? Bb(a, b) : Eb(a, b);
}
function Fb(a, b) {
var c = b.parent;
if (null === c)
- throw Error(
- "The depth must equal at least at zero before reaching the root. This is a bug in React."
- );
+ throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");
a.depth === c.depth ? Bb(a, c) : Fb(a, c);
b.context._currentValue = b.value;
}
function Gb(a) {
var b = L;
b !== a &&
- (null === b
- ? Db(a)
- : null === a
- ? Cb(b)
- : b.depth === a.depth
- ? Bb(b, a)
- : b.depth > a.depth
- ? Eb(b, a)
- : Fb(b, a),
+ (null === b ? Db(a) : null === a ? Cb(b) : b.depth === a.depth ? Bb(b, a) : b.depth > a.depth ? Eb(b, a) : Fb(b, a),
(L = a));
}
var Hb = {
@@ -1678,32 +1490,20 @@ function Ib(a, b, c, d) {
var g = b.contextType;
a.context = "object" === typeof g && null !== g ? g._currentValue : d;
g = b.getDerivedStateFromProps;
- "function" === typeof g &&
- ((g = g(c, e)),
- (e = null === g || void 0 === g ? e : x({}, e, g)),
- (a.state = e));
+ "function" === typeof g && ((g = g(c, e)), (e = null === g || void 0 === g ? e : x({}, e, g)), (a.state = e));
if (
"function" !== typeof b.getDerivedStateFromProps &&
"function" !== typeof a.getSnapshotBeforeUpdate &&
- ("function" === typeof a.UNSAFE_componentWillMount ||
- "function" === typeof a.componentWillMount)
+ ("function" === typeof a.UNSAFE_componentWillMount || "function" === typeof a.componentWillMount)
)
if (
((b = a.state),
"function" === typeof a.componentWillMount && a.componentWillMount(),
- "function" === typeof a.UNSAFE_componentWillMount &&
- a.UNSAFE_componentWillMount(),
+ "function" === typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount(),
b !== a.state && Hb.enqueueReplaceState(a, a.state, null),
null !== f.queue && 0 < f.queue.length)
)
- if (
- ((b = f.queue),
- (g = f.replace),
- (f.queue = null),
- (f.replace = !1),
- g && 1 === b.length)
- )
- a.state = b[0];
+ if (((b = f.queue), (g = f.replace), (f.queue = null), (f.replace = !1), g && 1 === b.length)) a.state = b[0];
else {
f = g ? b[0] : a.state;
e = !0;
@@ -1741,7 +1541,7 @@ function Mb(a) {
return 0 === a ? 32 : (31 - ((Nb(a) / Ob) | 0)) | 0;
}
var Pb = Error(
- "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"
+ "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`",
);
function Qb() {}
function Rb(a, b, c) {
@@ -1771,7 +1571,7 @@ function Rb(a, b, c) {
c.status = "rejected";
c.reason = a;
}
- }
+ },
),
b.status)
) {
@@ -1786,10 +1586,7 @@ function Rb(a, b, c) {
}
var Sb = null;
function Tb() {
- if (null === Sb)
- throw Error(
- "Expected a suspended thenable. This is a bug in React. Please file an issue."
- );
+ if (null === Sb) throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");
var a = Sb;
Sb = null;
return a;
@@ -1812,13 +1609,12 @@ var Vb = "function" === typeof Object.is ? Object.is : Ub,
function U() {
if (null === M)
throw Error(
- "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
+ "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.",
);
return M;
}
function $b() {
- if (0 < Zb)
- throw Error("Rendered more hooks than during the previous render");
+ if (0 < Zb) throw Error("Rendered more hooks than during the previous render");
return { memoizedState: null, queue: null, next: null };
}
function ac() {
@@ -1898,18 +1694,9 @@ function hc(a, b) {
return a;
}
function gc(a, b, c) {
- if (25 <= Zb)
- throw Error(
- "Too many re-renders. React limits the number of renders to prevent an infinite loop."
- );
+ if (25 <= Zb) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");
if (a === M)
- if (
- ((Yb = !0),
- (a = { action: c, next: null }),
- null === T && (T = new Map()),
- (c = T.get(b)),
- void 0 === c)
- )
+ if (((Yb = !0), (a = { action: c, next: null }), null === T && (T = new Map()), (c = T.get(b)), void 0 === c))
T.set(b, a);
else {
for (b = c; null !== b.next; ) b = b.next;
@@ -1917,9 +1704,7 @@ function gc(a, b, c) {
}
}
function ic() {
- throw Error(
- "A function wrapped in useEvent can't be called during rendering."
- );
+ throw Error("A function wrapped in useEvent can't be called during rendering.");
}
function jc() {
throw Error("startTransition cannot be called during server rendering.");
@@ -1972,9 +1757,7 @@ var nc = {
a = (a & ~(1 << (32 - Lb(a) - 1))).toString(32) + b;
var c = mc;
if (null === c)
- throw Error(
- "Invalid hook call. Hooks can only be called inside of the body of a function component."
- );
+ throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");
b = Q++;
a = ":" + c.idPrefix + "R" + a;
0 < b && (a += "H" + b.toString(32));
@@ -1987,7 +1770,7 @@ var nc = {
useSyncExternalStore: function (a, b, c) {
if (void 0 === c)
throw Error(
- "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
+ "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.",
);
return c();
},
@@ -2123,7 +1906,7 @@ function X(a, b) {
throw Error(
'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' +
typeof a +
- '" instead'
+ '" instead',
);
return a;
}
@@ -2132,9 +1915,7 @@ function Y(a, b) {
c(b);
c = a.onFatalError;
c(b);
- null !== a.destination
- ? ((a.status = 2), da(a.destination, b))
- : ((a.status = 1), (a.fatalError = b));
+ null !== a.destination ? ((a.status = 2), da(a.destination, b)) : ((a.status = 1), (a.fatalError = b));
}
function wc(a, b, c, d) {
var e = c.render(),
@@ -2147,10 +1928,7 @@ function wc(a, b, c, d) {
for (var h in c)
if (!(h in f))
throw Error(
- (xb(d) || "Unknown") +
- '.getChildContext(): key "' +
- h +
- '" is not defined in childContextTypes.'
+ (xb(d) || "Unknown") + '.getChildContext(): key "' + h + '" is not defined in childContextTypes.',
);
d = x({}, g, c);
}
@@ -2173,10 +1951,7 @@ function yc(a, b, c, d, e, f) {
if (d.prototype && d.prototype.isReactComponent)
(c = Ab(d, b.legacyContext)),
(f = d.contextType),
- (f = new d(
- e,
- "object" === typeof f && null !== f ? f._currentValue : c
- )),
+ (f = new d(e, "object" === typeof f && null !== f ? f._currentValue : c)),
Ib(f, d, e, c),
wc(a, b, f, d);
else {
@@ -2188,12 +1963,7 @@ function yc(a, b, c, d, e, f) {
c = d(e, f);
c = bc(d, e, c, f);
var g = 0 !== Q;
- if (
- "object" === typeof c &&
- null !== c &&
- "function" === typeof c.render &&
- void 0 === c.$$typeof
- )
+ if ("object" === typeof c && null !== c && "function" === typeof c.render && void 0 === c.$$typeof)
Ib(c, d, e, f), wc(a, b, c, d);
else if (g) {
e = b.treeContext;
@@ -2207,15 +1977,7 @@ function yc(a, b, c, d, e, f) {
}
else if ("string" === typeof d)
(c = b.blockedSegment),
- (f = Sa(
- c.chunks,
- a.preamble,
- d,
- e,
- a.responseState,
- c.formatContext,
- c.lastPushedText
- )),
+ (f = Sa(c.chunks, a.preamble, d, e, a.responseState, c.formatContext, c.lastPushedText)),
(c.lastPushedText = !1),
(g = c.formatContext),
(c.formatContext = Ja(g, d, e)),
@@ -2270,9 +2032,7 @@ function yc(a, b, c, d, e, f) {
try {
if (
(zc(a, b, e),
- k.lastPushedText &&
- k.textEmbedded &&
- k.chunks.push("\x3c!-- --\x3e"),
+ k.lastPushedText && k.textEmbedded && k.chunks.push("\x3c!-- --\x3e"),
(k.status = 1),
0 === h.pendingTasks &&
(null !== a.completedRootSegment || 0 < a.pendingRootTasks) &&
@@ -2282,25 +2042,11 @@ function yc(a, b, c, d, e, f) {
)
break a;
} catch (p) {
- (k.status = 4),
- (h.forceClientRender = !0),
- (h.errorDigest = X(a, p));
+ (k.status = 4), (h.forceClientRender = !0), (h.errorDigest = X(a, p));
} finally {
- (a.resources.boundaryResources = d ? d.resources : null),
- (b.blockedBoundary = d),
- (b.blockedSegment = c);
+ (a.resources.boundaryResources = d ? d.resources : null), (b.blockedBoundary = d), (b.blockedSegment = c);
}
- b = uc(
- a,
- null,
- f,
- d,
- m,
- g,
- b.legacyContext,
- b.context,
- b.treeContext
- );
+ b = uc(a, null, f, d, m, g, b.legacyContext, b.context, b.treeContext);
a.pingedTasks.push(b);
}
return;
@@ -2347,10 +2093,7 @@ function yc(a, b, c, d, e, f) {
b.context = e;
Z(a, b, null, c);
a = L;
- if (null === a)
- throw Error(
- "Tried to pop a Context at the root of the app. This is a bug in React."
- );
+ if (null === a) throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
e = a.parentValue;
a.context._currentValue = e === ub ? a.context._defaultValue : e;
a = L = a.parent;
@@ -2370,7 +2113,7 @@ function yc(a, b, c, d, e, f) {
}
throw Error(
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
- ((null == d ? d : typeof d) + ".")
+ ((null == d ? d : typeof d) + "."),
);
}
}
@@ -2383,7 +2126,7 @@ function Z(a, b, c, d) {
return;
case db:
throw Error(
- "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
+ "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.",
);
case ob:
c = d._init;
@@ -2397,8 +2140,7 @@ function Z(a, b, c, d) {
}
null === d || "object" !== typeof d
? (c = null)
- : ((c = (wb && d[wb]) || d["@@iterator"]),
- (c = "function" === typeof c ? c : null));
+ : ((c = (wb && d[wb]) || d["@@iterator"]), (c = "function" === typeof c ? c : null));
if (c && (c = c.call(d))) {
d = c.next();
if (!d.done) {
@@ -2412,28 +2154,15 @@ function Z(a, b, c, d) {
a = Object.prototype.toString.call(d);
throw Error(
"Objects are not valid as a React child (found: " +
- ("[object Object]" === a
- ? "object with keys {" + Object.keys(d).join(", ") + "}"
- : a) +
- "). If you meant to render a collection of children, use an array instead."
+ ("[object Object]" === a ? "object with keys {" + Object.keys(d).join(", ") + "}" : a) +
+ "). If you meant to render a collection of children, use an array instead.",
);
}
"string" === typeof d
- ? ((c = b.blockedSegment),
- (c.lastPushedText = Ka(
- b.blockedSegment.chunks,
- d,
- a.responseState,
- c.lastPushedText
- )))
+ ? ((c = b.blockedSegment), (c.lastPushedText = Ka(b.blockedSegment.chunks, d, a.responseState, c.lastPushedText)))
: "number" === typeof d &&
((c = b.blockedSegment),
- (c.lastPushedText = Ka(
- b.blockedSegment.chunks,
- "" + d,
- a.responseState,
- c.lastPushedText
- )));
+ (c.lastPushedText = Ka(b.blockedSegment.chunks, "" + d, a.responseState, c.lastPushedText)));
}
function Bc(a, b, c) {
for (var d = c.length, e = 0; e < d; e++) {
@@ -2453,40 +2182,19 @@ function zc(a, b, c) {
try {
return Z(a, b, null, c);
} catch (k) {
- if (
- (cc(),
- (c = k === Pb ? Tb() : k),
- "object" === typeof c && null !== c && "function" === typeof c.then)
- ) {
+ if ((cc(), (c = k === Pb ? Tb() : k), "object" === typeof c && null !== c && "function" === typeof c.then)) {
var g = dc(),
h = b.blockedSegment,
m = tc(a, h.chunks.length, null, h.formatContext, h.lastPushedText, !0);
h.children.push(m);
h.lastPushedText = !1;
- a = uc(
- a,
- g,
- b.node,
- b.blockedBoundary,
- m,
- b.abortSet,
- b.legacyContext,
- b.context,
- b.treeContext
- ).ping;
+ a = uc(a, g, b.node, b.blockedBoundary, m, b.abortSet, b.legacyContext, b.context, b.treeContext).ping;
c.then(a, a);
b.blockedSegment.formatContext = d;
b.legacyContext = e;
b.context = f;
Gb(f);
- } else
- throw (
- ((b.blockedSegment.formatContext = d),
- (b.legacyContext = e),
- (b.context = f),
- Gb(f),
- c)
- );
+ } else throw ((b.blockedSegment.formatContext = d), (b.legacyContext = e), (b.context = f), Gb(f), c);
}
}
function Cc(a) {
@@ -2499,8 +2207,7 @@ function Ec(a, b, c) {
var d = a.blockedBoundary;
a.blockedSegment.status = 3;
null === d
- ? (b.allPendingTasks--,
- 1 !== b.status && 2 !== b.status && (X(b, c), Y(b, c)))
+ ? (b.allPendingTasks--, 1 !== b.status && 2 !== b.status && (X(b, c), Y(b, c)))
: (d.pendingTasks--,
d.forceClientRender ||
((d.forceClientRender = !0),
@@ -2514,11 +2221,7 @@ function Ec(a, b, c) {
0 === b.allPendingTasks && ((a = b.onAllReady), a()));
}
function Ac(a, b) {
- if (
- 0 === b.chunks.length &&
- 1 === b.children.length &&
- null === b.children[0].boundary
- ) {
+ if (0 === b.chunks.length && 1 === b.children.length && null === b.children[0].boundary) {
var c = b.children[0];
c.id = b.id;
c.parentFlushed = !0;
@@ -2528,31 +2231,23 @@ function Ac(a, b) {
function Dc(a, b, c) {
if (null === b) {
if (c.parentFlushed) {
- if (null !== a.completedRootSegment)
- throw Error(
- "There can only be one root segment. This is a bug in React."
- );
+ if (null !== a.completedRootSegment) throw Error("There can only be one root segment. This is a bug in React.");
a.completedRootSegment = c;
}
a.pendingRootTasks--;
- 0 === a.pendingRootTasks &&
- ((a.onShellError = W), (b = a.onShellReady), b());
+ 0 === a.pendingRootTasks && ((a.onShellError = W), (b = a.onShellReady), b());
} else
b.pendingTasks--,
b.forceClientRender ||
(0 === b.pendingTasks
? (c.parentFlushed && 1 === c.status && Ac(b, c),
- (null !== a.completedRootSegment || 0 < a.pendingRootTasks) &&
- Da(a.resources, b.resources),
+ (null !== a.completedRootSegment || 0 < a.pendingRootTasks) && Da(a.resources, b.resources),
b.parentFlushed && a.completedBoundaries.push(b),
b.fallbackAbortableTasks.forEach(Cc, a),
b.fallbackAbortableTasks.clear())
: c.parentFlushed &&
1 === c.status &&
- (Ac(b, c),
- 1 === b.completedSegments.length &&
- b.parentFlushed &&
- a.partialBoundaries.push(b)));
+ (Ac(b, c), 1 === b.completedSegments.length && b.parentFlushed && a.partialBoundaries.push(b)));
a.allPendingTasks--;
0 === a.allPendingTasks && ((a = a.onAllReady), a());
}
@@ -2585,20 +2280,14 @@ function vc(a) {
var q = m.thenableState;
m.thenableState = null;
Z(k, m, q, m.node);
- n.lastPushedText &&
- n.textEmbedded &&
- n.chunks.push("\x3c!-- --\x3e");
+ n.lastPushedText && n.textEmbedded && n.chunks.push("\x3c!-- --\x3e");
m.abortSet.delete(m);
n.status = 1;
Dc(k, m.blockedBoundary, n);
} catch (aa) {
cc();
var u = aa === Pb ? Tb() : aa;
- if (
- "object" === typeof u &&
- null !== u &&
- "function" === typeof u.then
- ) {
+ if ("object" === typeof u && null !== u && "function" === typeof u.then) {
var H = m.ping;
u.then(H, H);
m.thenableState = dc();
@@ -2632,12 +2321,7 @@ function vc(a) {
} catch (aa) {
X(a, aa), Y(a, aa);
} finally {
- (mc = f),
- (pc.current = c),
- (qc.current = d),
- (y = sa.pop()),
- (Ea.current = e),
- c === nc && Gb(b);
+ (mc = f), (pc.current = c), (qc.current = d), (y = sa.pop()), (Ea.current = e), c === nc && Gb(b);
}
}
}
@@ -2669,7 +2353,7 @@ function Gc(a, b, c) {
return e;
default:
throw Error(
- "Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React."
+ "Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.",
);
}
}
@@ -2694,18 +2378,13 @@ function Hc(a, b, c) {
Ua(b, a.responseState, d);
Gc(a, b, c);
} else if (d.byteSize > a.progressiveChunkSize)
- (d.rootSegmentID = a.nextSegmentId++),
- a.completedBoundaries.push(d),
- Ua(b, a.responseState, d.id),
- Gc(a, b, c);
+ (d.rootSegmentID = a.nextSegmentId++), a.completedBoundaries.push(d), Ua(b, a.responseState, d.id), Gc(a, b, c);
else {
Ca(a.resources, d.resources);
b.write("\x3c!--$--\x3e");
c = d.completedSegments;
if (1 !== c.length)
- throw Error(
- "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
- );
+ throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");
Hc(a, b, c[0]);
}
return !!b.write("\x3c!--/$--\x3e");
@@ -2743,25 +2422,22 @@ function Jc(a, b, c) {
: ((a.sentStyleInsertionFunction = !0),
l(
b,
- '$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("'
+ '$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("',
))
: ((a.sentCompleteBoundaryFunction = !0),
(a.sentStyleInsertionFunction = !0),
l(
b,
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("'
+ '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("',
))
: a.sentCompleteBoundaryFunction
? l(b, '$RC("')
: ((a.sentCompleteBoundaryFunction = !0),
l(
b,
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RC("'
+ '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RC("',
));
- if (null === d)
- throw Error(
- "An ID must have been assigned before we can complete the boundary."
- );
+ if (null === d) throw Error("An ID must have been assigned before we can complete the boundary.");
e = e.toString(16);
l(b, d);
l(b, '","');
@@ -2775,9 +2451,7 @@ function Kc(a, b, c, d) {
var e = d.id;
if (-1 === e) {
if (-1 === (d.id = c.rootSegmentID))
- throw Error(
- "A root segment ID must have been assigned by now. This is a bug in React."
- );
+ throw Error("A root segment ID must have been assigned by now. This is a bug in React.");
return Ic(a, b, d);
}
Ic(a, b, d);
@@ -2788,7 +2462,7 @@ function Kc(a, b, c, d) {
: ((a.sentCompleteSegmentFunction = !0),
l(
b,
- '$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("'
+ '$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("',
));
l(b, a.segmentPrefix);
e = e.toString(16);
@@ -2829,12 +2503,9 @@ function Fc(a, b) {
: ((m.sentClientRenderFunction = !0),
l(
f,
- '$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("'
+ '$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("',
));
- if (null === k)
- throw Error(
- "An ID must have been assigned before we can complete the boundary."
- );
+ if (null === k) throw Error("An ID must have been assigned before we can complete the boundary.");
l(f, k);
l(f, '"');
if (p || n || q) l(f, ","), l(f, Ya(p || ""));
@@ -2909,10 +2580,7 @@ function Lc(a, b) {
try {
var c = a.abortableTasks;
if (0 < c.size) {
- var d =
- void 0 === b
- ? Error("The render was aborted by the server without a reason.")
- : b;
+ var d = void 0 === b ? Error("The render was aborted by the server without a reason.") : b;
c.forEach(function (b) {
return Ec(b, a, d);
});
@@ -2925,7 +2593,7 @@ function Lc(a, b) {
}
exports.renderToNodeStream = function () {
throw Error(
- "ReactDOMServer.renderToNodeStream(): The Node Stream API is not available in Bun. Use ReactDOMServer.renderToReadableStream() instead."
+ "ReactDOMServer.renderToNodeStream(): The Node Stream API is not available in Bun. Use ReactDOMServer.renderToReadableStream() instead.",
);
};
exports.renderToReadableStream = function (a, b) {
@@ -2944,7 +2612,7 @@ exports.renderToReadableStream = function (a, b) {
b ? b.bootstrapScriptContent : void 0,
b ? b.bootstrapScripts : void 0,
b ? b.bootstrapModules : void 0,
- b ? b.unstable_externalRuntimeSrc : void 0
+ b ? b.unstable_externalRuntimeSrc : void 0,
),
Ia(b ? b.namespaceURI : void 0),
b ? b.progressiveChunkSize : void 0,
@@ -2969,7 +2637,7 @@ exports.renderToReadableStream = function (a, b) {
Lc(h);
},
},
- { highWaterMark: 2048 }
+ { highWaterMark: 2048 },
);
a.allReady = g;
c(a);
@@ -2978,7 +2646,7 @@ exports.renderToReadableStream = function (a, b) {
g.catch(function () {});
d(a);
},
- e
+ e,
);
if (b && b.signal) {
var m = b.signal;
@@ -2996,7 +2664,7 @@ exports.renderToReadableStream = function (a, b) {
};
exports.renderToStaticNodeStream = function () {
throw Error(
- "ReactDOMServer.renderToStaticNodeStream(): The Node Stream API is not available in Bun. Use ReactDOMServer.renderToReadableStream() instead."
+ "ReactDOMServer.renderToStaticNodeStream(): The Node Stream API is not available in Bun. Use ReactDOMServer.renderToReadableStream() instead.",
);
};
exports.version = "18.2.0";