@wix/cli
Version:
CLI tool for building Wix sites and applications
1,336 lines (1,335 loc) • 3.96 MB
JavaScript
import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
require_typescript
} from "./chunk-A4SLQB4K.js";
import {
require_scheduler
} from "./chunk-MZDJNQLB.js";
import {
require_react
} from "./chunk-QNHANFRW.js";
import {
__commonJS,
__require,
__toESM,
init_esm_shims
} from "./chunk-EXLZF52D.js";
// ../../node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js
var require_react_dom_server_legacy_node_production_min = __commonJS({
"../../node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js"(exports) {
"use strict";
init_esm_shims();
var ea2 = require_react();
var fa = __require("stream");
var n = Object.prototype.hasOwnProperty;
var ha = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/;
var ia2 = {};
var ja2 = {};
function ka2(a) {
if (n.call(ja2, a)) return true;
if (n.call(ia2, a)) return false;
if (ha.test(a)) return ja2[a] = true;
ia2[a] = true;
return false;
}
function q(a, b3, c, d, f, e, g) {
this.acceptsBooleans = 2 === b3 || 3 === b3 || 4 === b3;
this.attributeName = d;
this.attributeNamespace = f;
this.mustUseProperty = c;
this.propertyName = a;
this.type = b3;
this.sanitizeURL = e;
this.removeEmptyString = g;
}
var r = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) {
r[a] = new q(a, 0, false, a, null, false, false);
});
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a) {
var b3 = a[0];
r[b3] = new q(b3, 1, false, a[1], null, false, false);
});
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a) {
r[a] = new q(a, 2, false, a.toLowerCase(), null, false, false);
});
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a) {
r[a] = new q(a, 2, false, a, null, false, false);
});
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a) {
r[a] = new q(a, 3, false, a.toLowerCase(), null, false, false);
});
["checked", "multiple", "muted", "selected"].forEach(function(a) {
r[a] = new q(a, 3, true, a, null, false, false);
});
["capture", "download"].forEach(function(a) {
r[a] = new q(a, 4, false, a, null, false, false);
});
["cols", "rows", "size", "span"].forEach(function(a) {
r[a] = new q(a, 6, false, a, null, false, false);
});
["rowSpan", "start"].forEach(function(a) {
r[a] = new q(a, 5, false, a.toLowerCase(), null, false, false);
});
var la2 = /[\-:]([a-z])/g;
function ma(a) {
return a[1].toUpperCase();
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a) {
var b3 = a.replace(
la2,
ma
);
r[b3] = new q(b3, 1, false, a, null, false, false);
});
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) {
var b3 = a.replace(la2, ma);
r[b3] = new q(b3, 1, false, a, "http://www.w3.org/1999/xlink", false, false);
});
["xml:base", "xml:lang", "xml:space"].forEach(function(a) {
var b3 = a.replace(la2, ma);
r[b3] = new q(b3, 1, false, a, "http://www.w3.org/XML/1998/namespace", false, false);
});
["tabIndex", "crossOrigin"].forEach(function(a) {
r[a] = new q(a, 1, false, a.toLowerCase(), null, false, false);
});
r.xlinkHref = new q("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false);
["src", "href", "action", "formAction"].forEach(function(a) {
r[a] = new q(a, 1, false, a.toLowerCase(), null, true, true);
});
var t = {
animationIterationCount: true,
aspectRatio: true,
borderImageOutset: true,
borderImageSlice: true,
borderImageWidth: true,
boxFlex: true,
boxFlexGroup: true,
boxOrdinalGroup: true,
columnCount: true,
columns: true,
flex: true,
flexGrow: true,
flexPositive: true,
flexShrink: true,
flexNegative: true,
flexOrder: true,
gridArea: true,
gridRow: true,
gridRowEnd: true,
gridRowSpan: true,
gridRowStart: true,
gridColumn: true,
gridColumnEnd: true,
gridColumnSpan: true,
gridColumnStart: true,
fontWeight: true,
lineClamp: true,
lineHeight: true,
opacity: true,
order: true,
orphans: true,
tabSize: true,
widows: true,
zIndex: true,
zoom: true,
fillOpacity: true,
floodOpacity: true,
stopOpacity: true,
strokeDasharray: true,
strokeDashoffset: true,
strokeMiterlimit: true,
strokeOpacity: true,
strokeWidth: true
};
var na2 = ["Webkit", "ms", "Moz", "O"];
Object.keys(t).forEach(function(a) {
na2.forEach(function(b3) {
b3 = b3 + a.charAt(0).toUpperCase() + a.substring(1);
t[b3] = t[a];
});
});
var oa2 = /["'&<>]/;
function u(a) {
if ("boolean" === typeof a || "number" === typeof a) return "" + a;
a = "" + a;
var b3 = oa2.exec(a);
if (b3) {
var c = "", d, f = 0;
for (d = b3.index; d < a.length; d++) {
switch (a.charCodeAt(d)) {
case 34:
b3 = """;
break;
case 38:
b3 = "&";
break;
case 39:
b3 = "'";
break;
case 60:
b3 = "<";
break;
case 62:
b3 = ">";
break;
default:
continue;
}
f !== d && (c += a.substring(f, d));
f = d + 1;
c += b3;
}
a = f !== d ? c + a.substring(f, d) : c;
}
return a;
}
var pa = /([A-Z])/g;
var qa2 = /^ms-/;
var ra2 = Array.isArray;
function v(a, b3) {
return { insertionMode: a, selectedValue: b3 };
}
function sa2(a, b3, c) {
switch (b3) {
case "select":
return v(1, null != c.value ? c.value : c.defaultValue);
case "svg":
return v(2, null);
case "math":
return v(3, null);
case "foreignObject":
return v(1, null);
case "table":
return v(4, null);
case "thead":
case "tbody":
case "tfoot":
return v(5, null);
case "colgroup":
return v(7, null);
case "tr":
return v(6, null);
}
return 4 <= a.insertionMode || 0 === a.insertionMode ? v(1, null) : a;
}
var ta2 = /* @__PURE__ */ new Map();
function ua2(a, b3, 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.");
b3 = true;
for (var d in c) if (n.call(c, d)) {
var f = c[d];
if (null != f && "boolean" !== typeof f && "" !== f) {
if (0 === d.indexOf("--")) {
var e = u(d);
f = u(("" + f).trim());
} else {
e = d;
var g = ta2.get(e);
void 0 !== g ? e = g : (g = u(e.replace(pa, "-$1").toLowerCase().replace(qa2, "-ms-")), ta2.set(e, g), e = g);
f = "number" === typeof f ? 0 === f || n.call(
t,
d
) ? "" + f : f + "px" : u(("" + f).trim());
}
b3 ? (b3 = false, a.push(' style="', e, ":", f)) : a.push(";", e, ":", f);
}
}
b3 || a.push('"');
}
function w(a, b3, c, d) {
switch (c) {
case "style":
ua2(a, b3, d);
return;
case "defaultValue":
case "defaultChecked":
case "innerHTML":
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
return;
}
if (!(2 < c.length) || "o" !== c[0] && "O" !== c[0] || "n" !== c[1] && "N" !== c[1]) {
if (b3 = r.hasOwnProperty(c) ? r[c] : null, null !== b3) {
switch (typeof d) {
case "function":
case "symbol":
return;
case "boolean":
if (!b3.acceptsBooleans) return;
}
c = b3.attributeName;
switch (b3.type) {
case 3:
d && a.push(" ", c, '=""');
break;
case 4:
true === d ? a.push(" ", c, '=""') : false !== d && a.push(" ", c, '="', u(d), '"');
break;
case 5:
isNaN(d) || a.push(" ", c, '="', u(d), '"');
break;
case 6:
!isNaN(d) && 1 <= d && a.push(" ", c, '="', u(d), '"');
break;
default:
b3.sanitizeURL && (d = "" + d), a.push(" ", c, '="', u(d), '"');
}
} else if (ka2(c)) {
switch (typeof d) {
case "function":
case "symbol":
return;
case "boolean":
if (b3 = c.toLowerCase().slice(0, 5), "data-" !== b3 && "aria-" !== b3) return;
}
a.push(" ", c, '="', u(d), '"');
}
}
}
function x(a, b3, c) {
if (null != b3) {
if (null != c) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
if ("object" !== typeof b3 || !("__html" in b3)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
b3 = b3.__html;
null !== b3 && void 0 !== b3 && a.push("" + b3);
}
}
function va2(a) {
var b3 = "";
ea2.Children.forEach(a, function(a3) {
null != a3 && (b3 += a3);
});
return b3;
}
function wa2(a, b3, c, d) {
a.push(z3(c));
var f = c = null, e;
for (e in b3) if (n.call(b3, e)) {
var g = b3[e];
if (null != g) switch (e) {
case "children":
c = g;
break;
case "dangerouslySetInnerHTML":
f = g;
break;
default:
w(a, d, e, g);
}
}
a.push(">");
x(a, f, c);
return "string" === typeof c ? (a.push(u(c)), null) : c;
}
var xa2 = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/;
var ya2 = /* @__PURE__ */ new Map();
function z3(a) {
var b3 = ya2.get(a);
if (void 0 === b3) {
if (!xa2.test(a)) throw Error("Invalid tag: " + a);
b3 = "<" + a;
ya2.set(a, b3);
}
return b3;
}
function za2(a, b3, c, d, f) {
switch (b3) {
case "select":
a.push(z3("select"));
var e = null, g = null;
for (l in c) if (n.call(c, l)) {
var h = c[l];
if (null != h) switch (l) {
case "children":
e = h;
break;
case "dangerouslySetInnerHTML":
g = h;
break;
case "defaultValue":
case "value":
break;
default:
w(a, d, l, h);
}
}
a.push(">");
x(a, g, e);
return e;
case "option":
g = f.selectedValue;
a.push(z3("option"));
var k = h = null, m = null;
var l = null;
for (e in c) if (n.call(c, e)) {
var p = c[e];
if (null != p) switch (e) {
case "children":
h = p;
break;
case "selected":
m = p;
break;
case "dangerouslySetInnerHTML":
l = p;
break;
case "value":
k = p;
default:
w(a, d, e, p);
}
}
if (null != g) if (c = null !== k ? "" + k : va2(h), ra2(g)) for (d = 0; d < g.length; d++) {
if ("" + g[d] === c) {
a.push(' selected=""');
break;
}
}
else "" + g === c && a.push(' selected=""');
else m && a.push(' selected=""');
a.push(">");
x(a, l, h);
return h;
case "textarea":
a.push(z3("textarea"));
l = g = e = null;
for (h in c) if (n.call(c, h) && (k = c[h], null != k)) switch (h) {
case "children":
l = k;
break;
case "value":
e = k;
break;
case "defaultValue":
g = k;
break;
case "dangerouslySetInnerHTML":
throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");
default:
w(a, d, h, k);
}
null === e && null !== g && (e = g);
a.push(">");
if (null != l) {
if (null != e) throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");
if (ra2(l) && 1 < l.length) throw Error("<textarea> can only have at most one child.");
e = "" + l;
}
"string" === typeof e && "\n" === e[0] && a.push("\n");
null !== e && a.push(u("" + e));
return null;
case "input":
a.push(z3("input"));
k = l = h = e = null;
for (g in c) if (n.call(c, g) && (m = c[g], null != m)) switch (g) {
case "children":
case "dangerouslySetInnerHTML":
throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
case "defaultChecked":
k = m;
break;
case "defaultValue":
h = m;
break;
case "checked":
l = m;
break;
case "value":
e = m;
break;
default:
w(a, d, g, m);
}
null !== l ? w(a, d, "checked", l) : null !== k && w(a, d, "checked", k);
null !== e ? w(a, d, "value", e) : null !== h && w(a, d, "value", h);
a.push("/>");
return null;
case "menuitem":
a.push(z3("menuitem"));
for (var B in c) if (n.call(c, B) && (e = c[B], null != e)) switch (B) {
case "children":
case "dangerouslySetInnerHTML":
throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");
default:
w(
a,
d,
B,
e
);
}
a.push(">");
return null;
case "title":
a.push(z3("title"));
e = null;
for (p in c) if (n.call(c, p) && (g = c[p], null != g)) switch (p) {
case "children":
e = g;
break;
case "dangerouslySetInnerHTML":
throw Error("`dangerouslySetInnerHTML` does not make sense on <title>.");
default:
w(a, d, p, g);
}
a.push(">");
return e;
case "listing":
case "pre":
a.push(z3(b3));
g = e = null;
for (k in c) if (n.call(c, k) && (h = c[k], null != h)) switch (k) {
case "children":
e = h;
break;
case "dangerouslySetInnerHTML":
g = h;
break;
default:
w(a, d, k, h);
}
a.push(">");
if (null != g) {
if (null != e) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
if ("object" !== typeof g || !("__html" in g)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
c = g.__html;
null !== c && void 0 !== c && ("string" === typeof c && 0 < c.length && "\n" === c[0] ? a.push("\n", c) : a.push("" + c));
}
"string" === typeof e && "\n" === e[0] && a.push("\n");
return e;
case "area":
case "base":
case "br":
case "col":
case "embed":
case "hr":
case "img":
case "keygen":
case "link":
case "meta":
case "param":
case "source":
case "track":
case "wbr":
a.push(z3(b3));
for (var C3 in c) if (n.call(c, C3) && (e = c[C3], null != e)) switch (C3) {
case "children":
case "dangerouslySetInnerHTML":
throw Error(b3 + " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
default:
w(a, d, C3, e);
}
a.push("/>");
return null;
case "annotation-xml":
case "color-profile":
case "font-face":
case "font-face-src":
case "font-face-uri":
case "font-face-format":
case "font-face-name":
case "missing-glyph":
return wa2(a, c, b3, d);
case "html":
return 0 === f.insertionMode && a.push("<!DOCTYPE html>"), wa2(a, c, b3, d);
default:
if (-1 === b3.indexOf("-") && "string" !== typeof c.is) return wa2(a, c, b3, d);
a.push(z3(b3));
g = e = null;
for (m in c) if (n.call(c, m) && (h = c[m], null != h)) switch (m) {
case "children":
e = h;
break;
case "dangerouslySetInnerHTML":
g = h;
break;
case "style":
ua2(a, d, h);
break;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
break;
default:
ka2(m) && "function" !== typeof h && "symbol" !== typeof h && a.push(" ", m, '="', u(h), '"');
}
a.push(">");
x(a, g, e);
return e;
}
}
function Aa2(a, b3, c) {
a.push('<!--$?--><template id="');
if (null === c) throw Error("An ID must have been assigned before we can complete the boundary.");
a.push(c);
return a.push('"></template>');
}
function Ba2(a, b3, c, d) {
switch (c.insertionMode) {
case 0:
case 1:
return a.push('<div hidden id="'), a.push(b3.segmentPrefix), b3 = d.toString(16), a.push(b3), a.push('">');
case 2:
return a.push('<svg aria-hidden="true" style="display:none" id="'), a.push(b3.segmentPrefix), b3 = d.toString(16), a.push(b3), a.push('">');
case 3:
return a.push('<math aria-hidden="true" style="display:none" id="'), a.push(b3.segmentPrefix), b3 = d.toString(16), a.push(b3), a.push('">');
case 4:
return a.push('<table hidden id="'), a.push(b3.segmentPrefix), b3 = d.toString(16), a.push(b3), a.push('">');
case 5:
return a.push('<table hidden><tbody id="'), a.push(b3.segmentPrefix), b3 = d.toString(16), a.push(b3), a.push('">');
case 6:
return a.push('<table hidden><tr id="'), a.push(b3.segmentPrefix), b3 = d.toString(16), a.push(b3), a.push('">');
case 7:
return a.push('<table hidden><colgroup id="'), a.push(b3.segmentPrefix), b3 = d.toString(16), a.push(b3), a.push('">');
default:
throw Error("Unknown insertion mode. This is a bug in React.");
}
}
function Ca2(a, b3) {
switch (b3.insertionMode) {
case 0:
case 1:
return a.push("</div>");
case 2:
return a.push("</svg>");
case 3:
return a.push("</math>");
case 4:
return a.push("</table>");
case 5:
return a.push("</tbody></table>");
case 6:
return a.push("</tr></table>");
case 7:
return a.push("</colgroup></table>");
default:
throw Error("Unknown insertion mode. This is a bug in React.");
}
}
var Da2 = /[<\u2028\u2029]/g;
function Ea2(a) {
return JSON.stringify(a).replace(Da2, function(a3) {
switch (a3) {
case "<":
return "\\u003c";
case "\u2028":
return "\\u2028";
case "\u2029":
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");
}
});
}
function Fa2(a, b3) {
b3 = void 0 === b3 ? "" : b3;
return { bootstrapChunks: [], startInlineScript: "<script>", placeholderPrefix: b3 + "P:", segmentPrefix: b3 + "S:", boundaryPrefix: b3 + "B:", idPrefix: b3, nextSuspenseID: 0, sentCompleteSegmentFunction: false, sentCompleteBoundaryFunction: false, sentClientRenderFunction: false, generateStaticMarkup: a };
}
function Ga2() {
return { insertionMode: 1, selectedValue: null };
}
function Ha2(a, b3, c, d) {
if (c.generateStaticMarkup) return a.push(u(b3)), false;
"" === b3 ? a = d : (d && a.push("<!-- -->"), a.push(u(b3)), a = true);
return a;
}
var A3 = Object.assign;
var Ia2 = Symbol.for("react.element");
var Ja = Symbol.for("react.portal");
var Ka2 = Symbol.for("react.fragment");
var La2 = Symbol.for("react.strict_mode");
var Ma2 = Symbol.for("react.profiler");
var Na2 = Symbol.for("react.provider");
var Oa2 = Symbol.for("react.context");
var Pa2 = Symbol.for("react.forward_ref");
var Qa = Symbol.for("react.suspense");
var Ra2 = Symbol.for("react.suspense_list");
var Sa2 = Symbol.for("react.memo");
var Ta2 = Symbol.for("react.lazy");
var Ua2 = Symbol.for("react.scope");
var Va2 = Symbol.for("react.debug_trace_mode");
var Wa2 = Symbol.for("react.legacy_hidden");
var Xa = Symbol.for("react.default_value");
var Ya2 = Symbol.iterator;
function Za(a) {
if (null == a) return null;
if ("function" === typeof a) return a.displayName || a.name || null;
if ("string" === typeof a) return a;
switch (a) {
case Ka2:
return "Fragment";
case Ja:
return "Portal";
case Ma2:
return "Profiler";
case La2:
return "StrictMode";
case Qa:
return "Suspense";
case Ra2:
return "SuspenseList";
}
if ("object" === typeof a) switch (a.$$typeof) {
case Oa2:
return (a.displayName || "Context") + ".Consumer";
case Na2:
return (a._context.displayName || "Context") + ".Provider";
case Pa2:
var b3 = a.render;
a = a.displayName;
a || (a = b3.displayName || b3.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
return a;
case Sa2:
return b3 = a.displayName || null, null !== b3 ? b3 : Za(a.type) || "Memo";
case Ta2:
b3 = a._payload;
a = a._init;
try {
return Za(a(b3));
} catch (c) {
}
}
return null;
}
var $a2 = {};
function ab(a, b3) {
a = a.contextTypes;
if (!a) return $a2;
var c = {}, d;
for (d in a) c[d] = b3[d];
return c;
}
var D = null;
function E(a, b3) {
if (a !== b3) {
a.context._currentValue2 = a.parentValue;
a = a.parent;
var c = b3.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.");
} else {
if (null === c) throw Error("The stacks must reach the root at the same time. This is a bug in React.");
E(a, c);
}
b3.context._currentValue2 = b3.value;
}
}
function bb(a) {
a.context._currentValue2 = a.parentValue;
a = a.parent;
null !== a && bb(a);
}
function cb(a) {
var b3 = a.parent;
null !== b3 && cb(b3);
a.context._currentValue2 = a.value;
}
function db(a, b3) {
a.context._currentValue2 = 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.");
a.depth === b3.depth ? E(a, b3) : db(a, b3);
}
function eb(a, b3) {
var c = b3.parent;
if (null === c) throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");
a.depth === c.depth ? E(a, c) : eb(a, c);
b3.context._currentValue2 = b3.value;
}
function F3(a) {
var b3 = D;
b3 !== a && (null === b3 ? cb(a) : null === a ? bb(b3) : b3.depth === a.depth ? E(b3, a) : b3.depth > a.depth ? db(b3, a) : eb(b3, a), D = a);
}
var fb = { isMounted: function() {
return false;
}, enqueueSetState: function(a, b3) {
a = a._reactInternals;
null !== a.queue && a.queue.push(b3);
}, enqueueReplaceState: function(a, b3) {
a = a._reactInternals;
a.replace = true;
a.queue = [b3];
}, enqueueForceUpdate: function() {
} };
function gb(a, b3, c, d) {
var f = void 0 !== a.state ? a.state : null;
a.updater = fb;
a.props = c;
a.state = f;
var e = { queue: [], replace: false };
a._reactInternals = e;
var g = b3.contextType;
a.context = "object" === typeof g && null !== g ? g._currentValue2 : d;
g = b3.getDerivedStateFromProps;
"function" === typeof g && (g = g(c, f), f = null === g || void 0 === g ? f : A3({}, f, g), a.state = f);
if ("function" !== typeof b3.getDerivedStateFromProps && "function" !== typeof a.getSnapshotBeforeUpdate && ("function" === typeof a.UNSAFE_componentWillMount || "function" === typeof a.componentWillMount)) if (b3 = a.state, "function" === typeof a.componentWillMount && a.componentWillMount(), "function" === typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount(), b3 !== a.state && fb.enqueueReplaceState(a, a.state, null), null !== e.queue && 0 < e.queue.length) if (b3 = e.queue, g = e.replace, e.queue = null, e.replace = false, g && 1 === b3.length) a.state = b3[0];
else {
e = g ? b3[0] : a.state;
f = true;
for (g = g ? 1 : 0; g < b3.length; g++) {
var h = b3[g];
h = "function" === typeof h ? h.call(a, e, c, d) : h;
null != h && (f ? (f = false, e = A3({}, e, h)) : A3(e, h));
}
a.state = e;
}
else e.queue = null;
}
var hb = { id: 1, overflow: "" };
function ib(a, b3, c) {
var d = a.id;
a = a.overflow;
var f = 32 - G(d) - 1;
d &= ~(1 << f);
c += 1;
var e = 32 - G(b3) + f;
if (30 < e) {
var g = f - f % 5;
e = (d & (1 << g) - 1).toString(32);
d >>= g;
f -= g;
return { id: 1 << 32 - G(b3) + f | c << f | d, overflow: e + a };
}
return { id: 1 << e | c << f | d, overflow: a };
}
var G = Math.clz32 ? Math.clz32 : jb2;
var kb2 = Math.log;
var lb = Math.LN2;
function jb2(a) {
a >>>= 0;
return 0 === a ? 32 : 31 - (kb2(a) / lb | 0) | 0;
}
function mb(a, b3) {
return a === b3 && (0 !== a || 1 / a === 1 / b3) || a !== a && b3 !== b3;
}
var nb = "function" === typeof Object.is ? Object.is : mb;
var H = null;
var ob = null;
var I = null;
var J = null;
var K3 = false;
var L = false;
var M3 = 0;
var N = null;
var O3 = 0;
function P() {
if (null === H) 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.");
return H;
}
function rb() {
if (0 < O3) throw Error("Rendered more hooks than during the previous render");
return { memoizedState: null, queue: null, next: null };
}
function sb() {
null === J ? null === I ? (K3 = false, I = J = rb()) : (K3 = true, J = I) : null === J.next ? (K3 = false, J = J.next = rb()) : (K3 = true, J = J.next);
return J;
}
function tb() {
ob = H = null;
L = false;
I = null;
O3 = 0;
J = N = null;
}
function ub(a, b3) {
return "function" === typeof b3 ? b3(a) : b3;
}
function vb2(a, b3, c) {
H = P();
J = sb();
if (K3) {
var d = J.queue;
b3 = d.dispatch;
if (null !== N && (c = N.get(d), void 0 !== c)) {
N.delete(d);
d = J.memoizedState;
do
d = a(d, c.action), c = c.next;
while (null !== c);
J.memoizedState = d;
return [d, b3];
}
return [J.memoizedState, b3];
}
a = a === ub ? "function" === typeof b3 ? b3() : b3 : void 0 !== c ? c(b3) : b3;
J.memoizedState = a;
a = J.queue = { last: null, dispatch: null };
a = a.dispatch = wb2.bind(null, H, a);
return [J.memoizedState, a];
}
function xb2(a, b3) {
H = P();
J = sb();
b3 = void 0 === b3 ? null : b3;
if (null !== J) {
var c = J.memoizedState;
if (null !== c && null !== b3) {
var d = c[1];
a: if (null === d) d = false;
else {
for (var f = 0; f < d.length && f < b3.length; f++) if (!nb(b3[f], d[f])) {
d = false;
break a;
}
d = true;
}
if (d) return c[0];
}
}
a = a();
J.memoizedState = [a, b3];
return a;
}
function wb2(a, b3, c) {
if (25 <= O3) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");
if (a === H) if (L = true, a = { action: c, next: null }, null === N && (N = /* @__PURE__ */ new Map()), c = N.get(b3), void 0 === c) N.set(b3, a);
else {
for (b3 = c; null !== b3.next; ) b3 = b3.next;
b3.next = a;
}
}
function yb() {
throw Error("startTransition cannot be called during server rendering.");
}
function Q() {
}
var zb2 = { readContext: function(a) {
return a._currentValue2;
}, useContext: function(a) {
P();
return a._currentValue2;
}, useMemo: xb2, useReducer: vb2, useRef: function(a) {
H = P();
J = sb();
var b3 = J.memoizedState;
return null === b3 ? (a = { current: a }, J.memoizedState = a) : b3;
}, useState: function(a) {
return vb2(ub, a);
}, useInsertionEffect: Q, useLayoutEffect: function() {
}, useCallback: function(a, b3) {
return xb2(function() {
return a;
}, b3);
}, useImperativeHandle: Q, useEffect: Q, useDebugValue: Q, useDeferredValue: function(a) {
P();
return a;
}, useTransition: function() {
P();
return [false, yb];
}, useId: function() {
var a = ob.treeContext;
var b3 = a.overflow;
a = a.id;
a = (a & ~(1 << 32 - G(a) - 1)).toString(32) + b3;
var c = R;
if (null === c) throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");
b3 = M3++;
a = ":" + c.idPrefix + "R" + a;
0 < b3 && (a += "H" + b3.toString(32));
return a + ":";
}, useMutableSource: function(a, b3) {
P();
return b3(a._source);
}, useSyncExternalStore: function(a, b3, c) {
if (void 0 === c) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
return c();
} };
var R = null;
var Ab2 = ea2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
function Bb2(a) {
console.error(a);
return null;
}
function S() {
}
function Cb2(a, b3, c, d, f, e, g, h, k) {
var m = [], l = /* @__PURE__ */ new Set();
b3 = { destination: null, responseState: b3, progressiveChunkSize: void 0 === d ? 12800 : d, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: l, pingedTasks: m, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: void 0 === f ? Bb2 : f, onAllReady: void 0 === e ? S : e, onShellReady: void 0 === g ? S : g, onShellError: void 0 === h ? S : h, onFatalError: void 0 === k ? S : k };
c = T(b3, 0, null, c, false, false);
c.parentFlushed = true;
a = Db2(b3, a, null, c, l, $a2, null, hb);
m.push(a);
return b3;
}
function Db2(a, b3, c, d, f, e, g, h) {
a.allPendingTasks++;
null === c ? a.pendingRootTasks++ : c.pendingTasks++;
var k = { node: b3, ping: function() {
var b10 = a.pingedTasks;
b10.push(k);
1 === b10.length && Eb2(a);
}, blockedBoundary: c, blockedSegment: d, abortSet: f, legacyContext: e, context: g, treeContext: h };
f.add(k);
return k;
}
function T(a, b3, c, d, f, e) {
return { status: 0, id: -1, index: b3, parentFlushed: false, chunks: [], children: [], formatContext: d, boundary: c, lastPushedText: f, textEmbedded: e };
}
function U(a, b3) {
a = a.onError(b3);
if (null != a && "string" !== typeof a) 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');
return a;
}
function V(a, b3) {
var c = a.onShellError;
c(b3);
c = a.onFatalError;
c(b3);
null !== a.destination ? (a.status = 2, a.destination.destroy(b3)) : (a.status = 1, a.fatalError = b3);
}
function Fb2(a, b3, c, d, f) {
H = {};
ob = b3;
M3 = 0;
for (a = c(d, f); L; ) L = false, M3 = 0, O3 += 1, J = null, a = c(d, f);
tb();
return a;
}
function Gb2(a, b3, c, d) {
var f = c.render(), e = d.childContextTypes;
if (null !== e && void 0 !== e) {
var g = b3.legacyContext;
if ("function" !== typeof c.getChildContext) d = g;
else {
c = c.getChildContext();
for (var h in c) if (!(h in e)) throw Error((Za(d) || "Unknown") + '.getChildContext(): key "' + h + '" is not defined in childContextTypes.');
d = A3({}, g, c);
}
b3.legacyContext = d;
W3(a, b3, f);
b3.legacyContext = g;
} else W3(a, b3, f);
}
function Hb2(a, b3) {
if (a && a.defaultProps) {
b3 = A3({}, b3);
a = a.defaultProps;
for (var c in a) void 0 === b3[c] && (b3[c] = a[c]);
return b3;
}
return b3;
}
function Ib2(a, b3, c, d, f) {
if ("function" === typeof c) if (c.prototype && c.prototype.isReactComponent) {
f = ab(c, b3.legacyContext);
var e = c.contextType;
e = new c(d, "object" === typeof e && null !== e ? e._currentValue2 : f);
gb(e, c, d, f);
Gb2(a, b3, e, c);
} else {
e = ab(c, b3.legacyContext);
f = Fb2(a, b3, c, d, e);
var g = 0 !== M3;
if ("object" === typeof f && null !== f && "function" === typeof f.render && void 0 === f.$$typeof) gb(f, c, d, e), Gb2(a, b3, f, c);
else if (g) {
d = b3.treeContext;
b3.treeContext = ib(d, 1, 0);
try {
W3(a, b3, f);
} finally {
b3.treeContext = d;
}
} else W3(a, b3, f);
}
else if ("string" === typeof c) {
f = b3.blockedSegment;
e = za2(f.chunks, c, d, a.responseState, f.formatContext);
f.lastPushedText = false;
g = f.formatContext;
f.formatContext = sa2(g, c, d);
Jb2(a, b3, e);
f.formatContext = g;
switch (c) {
case "area":
case "base":
case "br":
case "col":
case "embed":
case "hr":
case "img":
case "input":
case "keygen":
case "link":
case "meta":
case "param":
case "source":
case "track":
case "wbr":
break;
default:
f.chunks.push("</", c, ">");
}
f.lastPushedText = false;
} else {
switch (c) {
case Wa2:
case Va2:
case La2:
case Ma2:
case Ka2:
W3(a, b3, d.children);
return;
case Ra2:
W3(a, b3, d.children);
return;
case Ua2:
throw Error("ReactDOMServer does not yet support scope components.");
case Qa:
a: {
c = b3.blockedBoundary;
f = b3.blockedSegment;
e = d.fallback;
d = d.children;
g = /* @__PURE__ */ new Set();
var h = { id: null, rootSegmentID: -1, parentFlushed: false, pendingTasks: 0, forceClientRender: false, completedSegments: [], byteSize: 0, fallbackAbortableTasks: g, errorDigest: null }, k = T(a, f.chunks.length, h, f.formatContext, false, false);
f.children.push(k);
f.lastPushedText = false;
var m = T(a, 0, null, f.formatContext, false, false);
m.parentFlushed = true;
b3.blockedBoundary = h;
b3.blockedSegment = m;
try {
if (Jb2(a, b3, d), a.responseState.generateStaticMarkup || m.lastPushedText && m.textEmbedded && m.chunks.push("<!-- -->"), m.status = 1, X3(h, m), 0 === h.pendingTasks) break a;
} catch (l) {
m.status = 4, h.forceClientRender = true, h.errorDigest = U(a, l);
} finally {
b3.blockedBoundary = c, b3.blockedSegment = f;
}
b3 = Db2(a, e, c, k, g, b3.legacyContext, b3.context, b3.treeContext);
a.pingedTasks.push(b3);
}
return;
}
if ("object" === typeof c && null !== c) switch (c.$$typeof) {
case Pa2:
d = Fb2(a, b3, c.render, d, f);
if (0 !== M3) {
c = b3.treeContext;
b3.treeContext = ib(c, 1, 0);
try {
W3(a, b3, d);
} finally {
b3.treeContext = c;
}
} else W3(a, b3, d);
return;
case Sa2:
c = c.type;
d = Hb2(c, d);
Ib2(a, b3, c, d, f);
return;
case Na2:
f = d.children;
c = c._context;
d = d.value;
e = c._currentValue2;
c._currentValue2 = d;
g = D;
D = d = { parent: g, depth: null === g ? 0 : g.depth + 1, context: c, parentValue: e, value: d };
b3.context = d;
W3(a, b3, f);
a = D;
if (null === a) throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
d = a.parentValue;
a.context._currentValue2 = d === Xa ? a.context._defaultValue : d;
a = D = a.parent;
b3.context = a;
return;
case Oa2:
d = d.children;
d = d(c._currentValue2);
W3(a, b3, d);
return;
case Ta2:
f = c._init;
c = f(c._payload);
d = Hb2(c, d);
Ib2(a, b3, c, d, void 0);
return;
}
throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + ((null == c ? c : typeof c) + "."));
}
}
function W3(a, b3, c) {
b3.node = c;
if ("object" === typeof c && null !== c) {
switch (c.$$typeof) {
case Ia2:
Ib2(a, b3, c.type, c.props, c.ref);
return;
case Ja:
throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");
case Ta2:
var d = c._init;
c = d(c._payload);
W3(a, b3, c);
return;
}
if (ra2(c)) {
Kb2(a, b3, c);
return;
}
null === c || "object" !== typeof c ? d = null : (d = Ya2 && c[Ya2] || c["@@iterator"], d = "function" === typeof d ? d : null);
if (d && (d = d.call(c))) {
c = d.next();
if (!c.done) {
var f = [];
do
f.push(c.value), c = d.next();
while (!c.done);
Kb2(a, b3, f);
}
return;
}
a = Object.prototype.toString.call(c);
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === a ? "object with keys {" + Object.keys(c).join(", ") + "}" : a) + "). If you meant to render a collection of children, use an array instead.");
}
"string" === typeof c ? (d = b3.blockedSegment, d.lastPushedText = Ha2(b3.blockedSegment.chunks, c, a.responseState, d.lastPushedText)) : "number" === typeof c && (d = b3.blockedSegment, d.lastPushedText = Ha2(
b3.blockedSegment.chunks,
"" + c,
a.responseState,
d.lastPushedText
));
}
function Kb2(a, b3, c) {
for (var d = c.length, f = 0; f < d; f++) {
var e = b3.treeContext;
b3.treeContext = ib(e, d, f);
try {
Jb2(a, b3, c[f]);
} finally {
b3.treeContext = e;
}
}
}
function Jb2(a, b3, c) {
var d = b3.blockedSegment.formatContext, f = b3.legacyContext, e = b3.context;
try {
return W3(a, b3, c);
} catch (k) {
if (tb(), "object" === typeof k && null !== k && "function" === typeof k.then) {
c = k;
var g = b3.blockedSegment, h = T(a, g.chunks.length, null, g.formatContext, g.lastPushedText, true);
g.children.push(h);
g.lastPushedText = false;
a = Db2(a, b3.node, b3.blockedBoundary, h, b3.abortSet, b3.legacyContext, b3.context, b3.treeContext).ping;
c.then(a, a);
b3.blockedSegment.formatContext = d;
b3.legacyContext = f;
b3.context = e;
F3(e);
} else throw b3.blockedSegment.formatContext = d, b3.legacyContext = f, b3.context = e, F3(e), k;
}
}
function Lb2(a) {
var b3 = a.blockedBoundary;
a = a.blockedSegment;
a.status = 3;
Mb2(this, b3, a);
}
function Nb2(a, b3, c) {
var d = a.blockedBoundary;
a.blockedSegment.status = 3;
null === d ? (b3.allPendingTasks--, 2 !== b3.status && (b3.status = 2, null !== b3.destination && b3.destination.push(null))) : (d.pendingTasks--, d.forceClientRender || (d.forceClientRender = true, d.errorDigest = b3.onError(void 0 === c ? Error("The render was aborted by the server without a reason.") : c), d.parentFlushed && b3.clientRenderedBoundaries.push(d)), d.fallbackAbortableTasks.forEach(function(a3) {
return Nb2(a3, b3, c);
}), d.fallbackAbortableTasks.clear(), b3.allPendingTasks--, 0 === b3.allPendingTasks && (a = b3.onAllReady, a()));
}
function X3(a, b3) {
if (0 === b3.chunks.length && 1 === b3.children.length && null === b3.children[0].boundary) {
var c = b3.children[0];
c.id = b3.id;
c.parentFlushed = true;
1 === c.status && X3(a, c);
} else a.completedSegments.push(b3);
}
function Mb2(a, b3, c) {
if (null === b3) {
if (c.parentFlushed) {
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 = S, b3 = a.onShellReady, b3());
} else b3.pendingTasks--, b3.forceClientRender || (0 === b3.pendingTasks ? (c.parentFlushed && 1 === c.status && X3(b3, c), b3.parentFlushed && a.completedBoundaries.push(b3), b3.fallbackAbortableTasks.forEach(Lb2, a), b3.fallbackAbortableTasks.clear()) : c.parentFlushed && 1 === c.status && (X3(b3, c), 1 === b3.completedSegments.length && b3.parentFlushed && a.partialBoundaries.push(b3)));
a.allPendingTasks--;
0 === a.allPendingTasks && (a = a.onAllReady, a());
}
function Eb2(a) {
if (2 !== a.status) {
var b3 = D, c = Ab2.current;
Ab2.current = zb2;
var d = R;
R = a.responseState;
try {
var f = a.pingedTasks, e;
for (e = 0; e < f.length; e++) {
var g = f[e];
var h = a, k = g.blockedSegment;
if (0 === k.status) {
F3(g.context);
try {
W3(h, g, g.node), h.responseState.generateStaticMarkup || k.lastPushedText && k.textEmbedded && k.chunks.push("<!-- -->"), g.abortSet.delete(g), k.status = 1, Mb2(h, g.blockedBoundary, k);
} catch (y) {
if (tb(), "object" === typeof y && null !== y && "function" === typeof y.then) {
var m = g.ping;
y.then(m, m);
} else {
g.abortSet.delete(g);
k.status = 4;
var l = g.blockedBoundary, p = y, B = U(h, p);
null === l ? V(h, p) : (l.pendingTasks--, l.forceClientRender || (l.forceClientRender = true, l.errorDigest = B, l.parentFlushed && h.clientRenderedBoundaries.push(l)));
h.allPendingTasks--;
if (0 === h.allPendingTasks) {
var C3 = h.onAllReady;
C3();
}
}
} finally {
}
}
}
f.splice(0, e);
null !== a.destination && Ob2(a, a.destination);
} catch (y) {
U(a, y), V(a, y);
} finally {
R = d, Ab2.current = c, c === zb2 && F3(b3);
}
}
}
function Y(a, b3, c) {
c.parentFlushed = true;
switch (c.status) {
case 0:
var d = c.id = a.nextSegmentId++;
c.lastPushedText = false;
c.textEmbedded = false;
a = a.responseState;
b3.push('<template id="');
b3.push(a.placeholderPrefix);
a = d.toString(16);
b3.push(a);
return b3.push('"></template>');
case 1:
c.status = 2;
var f = true;
d = c.chunks;
var e = 0;
c = c.children;
for (var g = 0; g < c.length; g++) {
for (f = c[g]; e < f.index; e++) b3.push(d[e]);
f = Z(a, b3, f);
}
for (; e < d.length - 1; e++) b3.push(d[e]);
e < d.length && (f = b3.push(d[e]));
return f;
default:
throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.");
}
}
function Z(a, b3, c) {
var d = c.boundary;
if (null === d) return Y(a, b3, c);
d.parentFlushed = true;
if (d.forceClientRender) return a.responseState.generateStaticMarkup || (d = d.errorDigest, b3.push("<!--$!-->"), b3.push("<template"), d && (b3.push(' data-dgst="'), d = u(d), b3.push(d), b3.push('"')), b3.push("></template>")), Y(a, b3, c), a