@ea-lab/reactive-json
Version:
A REACT-based lib that transforms JSON (or YAML) into interactive HTML markup.
1,489 lines • 576 kB
JavaScript
import { jsx as R, jsxs as qe, Fragment as Ot } from "react/jsx-runtime";
import * as ne from "react";
import ue, { useContext as Z, useMemo as he, useEffect as me, useRef as ae, useState as Oe, useCallback as pe, useLayoutEffect as $a, useReducer as Ua, createContext as In, cloneElement as kn, forwardRef as di, useImperativeHandle as Cf, createElement as pi, memo as Af, Children as _o, Fragment as Sf, isValidElement as xf } from "react";
import { GlobalDataContext as Fe } from "./engine/GlobalDataContext.js";
import { TemplateContext as Te } from "./engine/TemplateContext.js";
import { c as ge, a as Se, b as Of, d as Df, A as hu, e as Tf, f as _t, B as Rf, g as Ha, u as _f } from "./usePagination-Bb6lefHG.js";
import { g as yr, c as Po } from "./_commonjsHelpers-DaMA6jEr.js";
import { EventDispatcherContext as mu } from "./engine/EventDispatcherContext.js";
import { Hide as Pf } from "./component/action/Hide.js";
import { l as en, a as vu } from "./alterData-CjaFWyAA.js";
import { VisuallyHide as If } from "./component/action/VisuallyHide.js";
import { PaginationContext as kf } from "./engine/PaginationContext.js";
import { EventDispatcherProvider as Nf } from "./engine/EventDispatcherProvider.js";
import { parseRjBuild as Ff } from "./engine/utility/parseRjBuild.js";
import { PageControls as Bf } from "./component/element/special/PageControls.js";
import { coreDataProcessorComponents as Lf } from "./component/dataProcessor/index.js";
import { mergeComponentCollections as Mf } from "./engine/ComponentCollector.js";
import { GlobalDataContextProvider as jf } from "./engine/GlobalDataContextProvider.js";
import { applyDataMapping as gu } from "./engine/utility/dataMappingSystem.js";
import { stringToBoolean as $f } from "./engine/utility/stringToBoolean.js";
import { triggerEvent as Uf } from "./component/reaction/triggerEvent.js";
var _r = { exports: {} }, Pr = { exports: {} }, Pe = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Io;
function Hf() {
if (Io) return Pe;
Io = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
function S(m) {
if (typeof m == "object" && m !== null) {
var E = m.$$typeof;
switch (E) {
case t:
switch (m = m.type, m) {
case s:
case u:
case r:
case a:
case i:
case c:
return m;
default:
switch (m = m && m.$$typeof, m) {
case l:
case f:
case g:
case v:
case o:
return m;
default:
return E;
}
}
case n:
return E;
}
}
}
function b(m) {
return S(m) === u;
}
return Pe.AsyncMode = s, Pe.ConcurrentMode = u, Pe.ContextConsumer = l, Pe.ContextProvider = o, Pe.Element = t, Pe.ForwardRef = f, Pe.Fragment = r, Pe.Lazy = g, Pe.Memo = v, Pe.Portal = n, Pe.Profiler = a, Pe.StrictMode = i, Pe.Suspense = c, Pe.isAsyncMode = function(m) {
return b(m) || S(m) === s;
}, Pe.isConcurrentMode = b, Pe.isContextConsumer = function(m) {
return S(m) === l;
}, Pe.isContextProvider = function(m) {
return S(m) === o;
}, Pe.isElement = function(m) {
return typeof m == "object" && m !== null && m.$$typeof === t;
}, Pe.isForwardRef = function(m) {
return S(m) === f;
}, Pe.isFragment = function(m) {
return S(m) === r;
}, Pe.isLazy = function(m) {
return S(m) === g;
}, Pe.isMemo = function(m) {
return S(m) === v;
}, Pe.isPortal = function(m) {
return S(m) === n;
}, Pe.isProfiler = function(m) {
return S(m) === a;
}, Pe.isStrictMode = function(m) {
return S(m) === i;
}, Pe.isSuspense = function(m) {
return S(m) === c;
}, Pe.isValidElementType = function(m) {
return typeof m == "string" || typeof m == "function" || m === r || m === u || m === a || m === i || m === c || m === d || typeof m == "object" && m !== null && (m.$$typeof === g || m.$$typeof === v || m.$$typeof === o || m.$$typeof === l || m.$$typeof === f || m.$$typeof === h || m.$$typeof === A || m.$$typeof === x || m.$$typeof === y);
}, Pe.typeOf = S, Pe;
}
var Ie = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ko;
function zf() {
return ko || (ko = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
function S($) {
return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
$ === r || $ === u || $ === a || $ === i || $ === c || $ === d || typeof $ == "object" && $ !== null && ($.$$typeof === g || $.$$typeof === v || $.$$typeof === o || $.$$typeof === l || $.$$typeof === f || $.$$typeof === h || $.$$typeof === A || $.$$typeof === x || $.$$typeof === y);
}
function b($) {
if (typeof $ == "object" && $ !== null) {
var ve = $.$$typeof;
switch (ve) {
case t:
var Ce = $.type;
switch (Ce) {
case s:
case u:
case r:
case a:
case i:
case c:
return Ce;
default:
var oe = Ce && Ce.$$typeof;
switch (oe) {
case l:
case f:
case g:
case v:
case o:
return oe;
default:
return ve;
}
}
case n:
return ve;
}
}
}
var m = s, E = u, C = l, T = o, I = t, L = f, k = r, W = g, H = v, z = n, Q = a, re = i, Y = c, j = !1;
function ie($) {
return j || (j = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F($) || b($) === s;
}
function F($) {
return b($) === u;
}
function V($) {
return b($) === l;
}
function ee($) {
return b($) === o;
}
function D($) {
return typeof $ == "object" && $ !== null && $.$$typeof === t;
}
function P($) {
return b($) === f;
}
function U($) {
return b($) === r;
}
function G($) {
return b($) === g;
}
function K($) {
return b($) === v;
}
function X($) {
return b($) === n;
}
function M($) {
return b($) === a;
}
function N($) {
return b($) === i;
}
function J($) {
return b($) === c;
}
Ie.AsyncMode = m, Ie.ConcurrentMode = E, Ie.ContextConsumer = C, Ie.ContextProvider = T, Ie.Element = I, Ie.ForwardRef = L, Ie.Fragment = k, Ie.Lazy = W, Ie.Memo = H, Ie.Portal = z, Ie.Profiler = Q, Ie.StrictMode = re, Ie.Suspense = Y, Ie.isAsyncMode = ie, Ie.isConcurrentMode = F, Ie.isContextConsumer = V, Ie.isContextProvider = ee, Ie.isElement = D, Ie.isForwardRef = P, Ie.isFragment = U, Ie.isLazy = G, Ie.isMemo = K, Ie.isPortal = X, Ie.isProfiler = M, Ie.isStrictMode = N, Ie.isSuspense = J, Ie.isValidElementType = S, Ie.typeOf = b;
}()), Ie;
}
var No;
function yu() {
return No || (No = 1, process.env.NODE_ENV === "production" ? Pr.exports = Hf() : Pr.exports = zf()), Pr.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var Ui, Fo;
function qf() {
if (Fo) return Ui;
Fo = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
function r(a) {
if (a == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(a);
}
function i() {
try {
if (!Object.assign)
return !1;
var a = new String("abc");
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
return !1;
for (var o = {}, l = 0; l < 10; l++)
o["_" + String.fromCharCode(l)] = l;
var s = Object.getOwnPropertyNames(o).map(function(f) {
return o[f];
});
if (s.join("") !== "0123456789")
return !1;
var u = {};
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
u[f] = f;
}), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return Ui = i() ? Object.assign : function(a, o) {
for (var l, s = r(a), u, f = 1; f < arguments.length; f++) {
l = Object(arguments[f]);
for (var c in l)
t.call(l, c) && (s[c] = l[c]);
if (e) {
u = e(l);
for (var d = 0; d < u.length; d++)
n.call(l, u[d]) && (s[u[d]] = l[u[d]]);
}
}
return s;
}, Ui;
}
var Hi, Bo;
function za() {
if (Bo) return Hi;
Bo = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return Hi = e, Hi;
}
var zi, Lo;
function bu() {
return Lo || (Lo = 1, zi = Function.call.bind(Object.prototype.hasOwnProperty)), zi;
}
var qi, Mo;
function Vf() {
if (Mo) return qi;
Mo = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = /* @__PURE__ */ za(), n = {}, r = /* @__PURE__ */ bu();
e = function(a) {
var o = "Warning: " + a;
typeof console < "u" && console.error(o);
try {
throw new Error(o);
} catch {
}
};
}
function i(a, o, l, s, u) {
if (process.env.NODE_ENV !== "production") {
for (var f in a)
if (r(a, f)) {
var c;
try {
if (typeof a[f] != "function") {
var d = Error(
(s || "React class") + ": " + l + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw d.name = "Invariant Violation", d;
}
c = a[f](o, f, s, l, null, t);
} catch (g) {
c = g;
}
if (c && !(c instanceof Error) && e(
(s || "React class") + ": type specification of " + l + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), c instanceof Error && !(c.message in n)) {
n[c.message] = !0;
var v = u ? u() : "";
e(
"Failed " + l + " type: " + c.message + (v ?? "")
);
}
}
}
}
return i.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (n = {});
}, qi = i, qi;
}
var Vi, jo;
function Wf() {
if (jo) return Vi;
jo = 1;
var e = yu(), t = qf(), n = /* @__PURE__ */ za(), r = /* @__PURE__ */ bu(), i = /* @__PURE__ */ Vf(), a = function() {
};
process.env.NODE_ENV !== "production" && (a = function(l) {
var s = "Warning: " + l;
typeof console < "u" && console.error(s);
try {
throw new Error(s);
} catch {
}
});
function o() {
return null;
}
return Vi = function(l, s) {
var u = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
function c(F) {
var V = F && (u && F[u] || F[f]);
if (typeof V == "function")
return V;
}
var d = "<<anonymous>>", v = {
array: A("array"),
bigint: A("bigint"),
bool: A("boolean"),
func: A("function"),
number: A("number"),
object: A("object"),
string: A("string"),
symbol: A("symbol"),
any: x(),
arrayOf: S,
element: b(),
elementType: m(),
instanceOf: E,
node: L(),
objectOf: T,
oneOf: C,
oneOfType: I,
shape: W,
exact: H
};
function g(F, V) {
return F === V ? F !== 0 || 1 / F === 1 / V : F !== F && V !== V;
}
function y(F, V) {
this.message = F, this.data = V && typeof V == "object" ? V : {}, this.stack = "";
}
y.prototype = Error.prototype;
function h(F) {
if (process.env.NODE_ENV !== "production")
var V = {}, ee = 0;
function D(U, G, K, X, M, N, J) {
if (X = X || d, N = N || K, J !== n) {
if (s) {
var $ = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
);
throw $.name = "Invariant Violation", $;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var ve = X + ":" + K;
!V[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
ee < 3 && (a(
"You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" + X + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
), V[ve] = !0, ee++);
}
}
return G[K] == null ? U ? G[K] === null ? new y("The " + M + " `" + N + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new y("The " + M + " `" + N + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : F(G, K, X, M, N);
}
var P = D.bind(null, !1);
return P.isRequired = D.bind(null, !0), P;
}
function A(F) {
function V(ee, D, P, U, G, K) {
var X = ee[D], M = re(X);
if (M !== F) {
var N = Y(X);
return new y(
"Invalid " + U + " `" + G + "` of type " + ("`" + N + "` supplied to `" + P + "`, expected ") + ("`" + F + "`."),
{ expectedType: F }
);
}
return null;
}
return h(V);
}
function x() {
return h(o);
}
function S(F) {
function V(ee, D, P, U, G) {
if (typeof F != "function")
return new y("Property `" + G + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
var K = ee[D];
if (!Array.isArray(K)) {
var X = re(K);
return new y("Invalid " + U + " `" + G + "` of type " + ("`" + X + "` supplied to `" + P + "`, expected an array."));
}
for (var M = 0; M < K.length; M++) {
var N = F(K, M, P, U, G + "[" + M + "]", n);
if (N instanceof Error)
return N;
}
return null;
}
return h(V);
}
function b() {
function F(V, ee, D, P, U) {
var G = V[ee];
if (!l(G)) {
var K = re(G);
return new y("Invalid " + P + " `" + U + "` of type " + ("`" + K + "` supplied to `" + D + "`, expected a single ReactElement."));
}
return null;
}
return h(F);
}
function m() {
function F(V, ee, D, P, U) {
var G = V[ee];
if (!e.isValidElementType(G)) {
var K = re(G);
return new y("Invalid " + P + " `" + U + "` of type " + ("`" + K + "` supplied to `" + D + "`, expected a single ReactElement type."));
}
return null;
}
return h(F);
}
function E(F) {
function V(ee, D, P, U, G) {
if (!(ee[D] instanceof F)) {
var K = F.name || d, X = ie(ee[D]);
return new y("Invalid " + U + " `" + G + "` of type " + ("`" + X + "` supplied to `" + P + "`, expected ") + ("instance of `" + K + "`."));
}
return null;
}
return h(V);
}
function C(F) {
if (!Array.isArray(F))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
function V(ee, D, P, U, G) {
for (var K = ee[D], X = 0; X < F.length; X++)
if (g(K, F[X]))
return null;
var M = JSON.stringify(F, function(J, $) {
var ve = Y($);
return ve === "symbol" ? String($) : $;
});
return new y("Invalid " + U + " `" + G + "` of value `" + String(K) + "` " + ("supplied to `" + P + "`, expected one of " + M + "."));
}
return h(V);
}
function T(F) {
function V(ee, D, P, U, G) {
if (typeof F != "function")
return new y("Property `" + G + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
var K = ee[D], X = re(K);
if (X !== "object")
return new y("Invalid " + U + " `" + G + "` of type " + ("`" + X + "` supplied to `" + P + "`, expected an object."));
for (var M in K)
if (r(K, M)) {
var N = F(K, M, P, U, G + "." + M, n);
if (N instanceof Error)
return N;
}
return null;
}
return h(V);
}
function I(F) {
if (!Array.isArray(F))
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
for (var V = 0; V < F.length; V++) {
var ee = F[V];
if (typeof ee != "function")
return a(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + j(ee) + " at index " + V + "."
), o;
}
function D(P, U, G, K, X) {
for (var M = [], N = 0; N < F.length; N++) {
var J = F[N], $ = J(P, U, G, K, X, n);
if ($ == null)
return null;
$.data && r($.data, "expectedType") && M.push($.data.expectedType);
}
var ve = M.length > 0 ? ", expected one of type [" + M.join(", ") + "]" : "";
return new y("Invalid " + K + " `" + X + "` supplied to " + ("`" + G + "`" + ve + "."));
}
return h(D);
}
function L() {
function F(V, ee, D, P, U) {
return z(V[ee]) ? null : new y("Invalid " + P + " `" + U + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
}
return h(F);
}
function k(F, V, ee, D, P) {
return new y(
(F || "React class") + ": " + V + " type `" + ee + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
);
}
function W(F) {
function V(ee, D, P, U, G) {
var K = ee[D], X = re(K);
if (X !== "object")
return new y("Invalid " + U + " `" + G + "` of type `" + X + "` " + ("supplied to `" + P + "`, expected `object`."));
for (var M in F) {
var N = F[M];
if (typeof N != "function")
return k(P, U, G, M, Y(N));
var J = N(K, M, P, U, G + "." + M, n);
if (J)
return J;
}
return null;
}
return h(V);
}
function H(F) {
function V(ee, D, P, U, G) {
var K = ee[D], X = re(K);
if (X !== "object")
return new y("Invalid " + U + " `" + G + "` of type `" + X + "` " + ("supplied to `" + P + "`, expected `object`."));
var M = t({}, ee[D], F);
for (var N in M) {
var J = F[N];
if (r(F, N) && typeof J != "function")
return k(P, U, G, N, Y(J));
if (!J)
return new y(
"Invalid " + U + " `" + G + "` key `" + N + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(ee[D], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
);
var $ = J(K, N, P, U, G + "." + N, n);
if ($)
return $;
}
return null;
}
return h(V);
}
function z(F) {
switch (typeof F) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !F;
case "object":
if (Array.isArray(F))
return F.every(z);
if (F === null || l(F))
return !0;
var V = c(F);
if (V) {
var ee = V.call(F), D;
if (V !== F.entries) {
for (; !(D = ee.next()).done; )
if (!z(D.value))
return !1;
} else
for (; !(D = ee.next()).done; ) {
var P = D.value;
if (P && !z(P[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function Q(F, V) {
return F === "symbol" ? !0 : V ? V["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && V instanceof Symbol : !1;
}
function re(F) {
var V = typeof F;
return Array.isArray(F) ? "array" : F instanceof RegExp ? "object" : Q(V, F) ? "symbol" : V;
}
function Y(F) {
if (typeof F > "u" || F === null)
return "" + F;
var V = re(F);
if (V === "object") {
if (F instanceof Date)
return "date";
if (F instanceof RegExp)
return "regexp";
}
return V;
}
function j(F) {
var V = Y(F);
switch (V) {
case "array":
case "object":
return "an " + V;
case "boolean":
case "date":
case "regexp":
return "a " + V;
default:
return V;
}
}
function ie(F) {
return !F.constructor || !F.constructor.name ? d : F.constructor.name;
}
return v.checkPropTypes = i, v.resetWarningCache = i.resetWarningCache, v.PropTypes = v, v;
}, Vi;
}
var Wi, $o;
function Gf() {
if ($o) return Wi;
$o = 1;
var e = /* @__PURE__ */ za();
function t() {
}
function n() {
}
return n.resetWarningCache = t, Wi = function() {
function r(o, l, s, u, f, c) {
if (c !== e) {
var d = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
);
throw d.name = "Invariant Violation", d;
}
}
r.isRequired = r;
function i() {
return r;
}
var a = {
array: r,
bigint: r,
bool: r,
func: r,
number: r,
object: r,
string: r,
symbol: r,
any: r,
arrayOf: i,
element: r,
elementType: r,
instanceOf: i,
node: r,
objectOf: i,
oneOf: i,
oneOfType: i,
shape: i,
exact: i,
checkPropTypes: n,
resetWarningCache: t
};
return a.PropTypes = a, a;
}, Wi;
}
var Uo;
function Xf() {
if (Uo) return _r.exports;
if (Uo = 1, process.env.NODE_ENV !== "production") {
var e = yu(), t = !0;
_r.exports = /* @__PURE__ */ Wf()(e.isElement, t);
} else
_r.exports = /* @__PURE__ */ Gf()();
return _r.exports;
}
var Kf = /* @__PURE__ */ Xf();
const ce = /* @__PURE__ */ yr(Kf), Yf = {
/**
* Specify whether the feedback is for valid or invalid fields
*
* @type {('valid'|'invalid')}
*/
type: ce.string,
/** Display feedback as a tooltip. */
tooltip: ce.bool,
as: ce.elementType
}, hi = /* @__PURE__ */ ne.forwardRef(
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
({
as: e = "div",
className: t,
type: n = "valid",
tooltip: r = !1,
...i
}, a) => /* @__PURE__ */ R(e, {
...i,
ref: a,
className: ge(t, `${n}-${r ? "tooltip" : "feedback"}`)
})
);
hi.displayName = "Feedback";
hi.propTypes = Yf;
const qt = /* @__PURE__ */ ne.createContext({}), qa = /* @__PURE__ */ ne.forwardRef(({
id: e,
bsPrefix: t,
className: n,
type: r = "checkbox",
isValid: i = !1,
isInvalid: a = !1,
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
as: o = "input",
...l
}, s) => {
const {
controlId: u
} = Z(qt);
return t = Se(t, "form-check-input"), /* @__PURE__ */ R(o, {
...l,
ref: s,
type: r,
id: e || u,
className: ge(n, t, i && "is-valid", a && "is-invalid")
});
});
qa.displayName = "FormCheckInput";
const Yr = /* @__PURE__ */ ne.forwardRef(({
bsPrefix: e,
className: t,
htmlFor: n,
...r
}, i) => {
const {
controlId: a
} = Z(qt);
return e = Se(e, "form-check-label"), /* @__PURE__ */ R("label", {
...r,
ref: i,
htmlFor: n || a,
className: ge(t, e)
});
});
Yr.displayName = "FormCheckLabel";
function Ho(e, t) {
let n = 0;
return ne.Children.map(e, (r) => /* @__PURE__ */ ne.isValidElement(r) ? t(r, n++) : r);
}
function Jf(e, t) {
let n = 0;
ne.Children.forEach(e, (r) => {
/* @__PURE__ */ ne.isValidElement(r) && t(r, n++);
});
}
function Zf(e, t) {
return ne.Children.toArray(e).some((n) => /* @__PURE__ */ ne.isValidElement(n) && n.type === t);
}
const Eu = /* @__PURE__ */ ne.forwardRef(({
id: e,
bsPrefix: t,
bsSwitchPrefix: n,
inline: r = !1,
reverse: i = !1,
disabled: a = !1,
isValid: o = !1,
isInvalid: l = !1,
feedbackTooltip: s = !1,
feedback: u,
feedbackType: f,
className: c,
style: d,
title: v = "",
type: g = "checkbox",
label: y,
children: h,
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
as: A = "input",
...x
}, S) => {
t = Se(t, "form-check"), n = Se(n, "form-switch");
const {
controlId: b
} = Z(qt), m = he(() => ({
controlId: e || b
}), [b, e]), E = !h && y != null && y !== !1 || Zf(h, Yr), C = /* @__PURE__ */ R(qa, {
...x,
type: g === "switch" ? "checkbox" : g,
ref: S,
isValid: o,
isInvalid: l,
disabled: a,
as: A
});
return /* @__PURE__ */ R(qt.Provider, {
value: m,
children: /* @__PURE__ */ R("div", {
style: d,
className: ge(c, E && t, r && `${t}-inline`, i && `${t}-reverse`, g === "switch" && n),
children: h || /* @__PURE__ */ qe(Ot, {
children: [C, E && /* @__PURE__ */ R(Yr, {
title: v,
children: y
}), u && /* @__PURE__ */ R(hi, {
type: f,
tooltip: s,
children: u
})]
})
})
});
});
Eu.displayName = "FormCheck";
const Jr = Object.assign(Eu, {
Input: qa,
Label: Yr
});
var Gi, zo;
function Qf() {
if (zo) return Gi;
zo = 1;
var e = process.env.NODE_ENV !== "production", t = function() {
};
if (e) {
var n = function(i, a) {
var o = arguments.length;
a = new Array(o > 1 ? o - 1 : 0);
for (var l = 1; l < o; l++)
a[l - 1] = arguments[l];
var s = 0, u = "Warning: " + i.replace(/%s/g, function() {
return a[s++];
});
typeof console < "u" && console.error(u);
try {
throw new Error(u);
} catch {
}
};
t = function(r, i, a) {
var o = arguments.length;
a = new Array(o > 2 ? o - 2 : 0);
for (var l = 2; l < o; l++)
a[l - 2] = arguments[l];
if (i === void 0)
throw new Error(
"`warning(condition, format, ...args)` requires a warning message argument"
);
r || n.apply(null, [i].concat(a));
};
}
return Gi = t, Gi;
}
var ed = Qf();
const mi = /* @__PURE__ */ yr(ed), wu = /* @__PURE__ */ ne.forwardRef(({
bsPrefix: e,
type: t,
size: n,
htmlSize: r,
id: i,
className: a,
isValid: o = !1,
isInvalid: l = !1,
plaintext: s,
readOnly: u,
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
as: f = "input",
...c
}, d) => {
const {
controlId: v
} = Z(qt);
return e = Se(e, "form-control"), process.env.NODE_ENV !== "production" && mi(v == null || !i, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ R(f, {
...c,
type: t,
size: r,
ref: d,
readOnly: u,
id: i || v,
className: ge(a, s ? `${e}-plaintext` : e, n && `${e}-${n}`, t === "color" && `${e}-color`, o && "is-valid", l && "is-invalid")
});
});
wu.displayName = "FormControl";
const td = Object.assign(wu, {
Feedback: hi
}), Cu = /* @__PURE__ */ ne.forwardRef(({
className: e,
bsPrefix: t,
as: n = "div",
...r
}, i) => (t = Se(t, "form-floating"), /* @__PURE__ */ R(n, {
ref: i,
className: ge(e, t),
...r
})));
Cu.displayName = "FormFloating";
const Va = /* @__PURE__ */ ne.forwardRef(({
controlId: e,
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
as: t = "div",
...n
}, r) => {
const i = he(() => ({
controlId: e
}), [e]);
return /* @__PURE__ */ R(qt.Provider, {
value: i,
children: /* @__PURE__ */ R(t, {
...n,
ref: r
})
});
});
Va.displayName = "FormGroup";
function nd({
as: e,
bsPrefix: t,
className: n,
...r
}) {
t = Se(t, "col");
const i = Of(), a = Df(), o = [], l = [];
return i.forEach((s) => {
const u = r[s];
delete r[s];
let f, c, d;
typeof u == "object" && u != null ? {
span: f,
offset: c,
order: d
} = u : f = u;
const v = s !== a ? `-${s}` : "";
f && o.push(f === !0 ? `${t}${v}` : `${t}${v}-${f}`), d != null && l.push(`order${v}-${d}`), c != null && l.push(`offset${v}-${c}`);
}), [{
...r,
className: ge(n, ...o, ...l)
}, {
as: e,
bsPrefix: t,
spans: o
}];
}
const Au = /* @__PURE__ */ ne.forwardRef(
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
(e, t) => {
const [{
className: n,
...r
}, {
as: i = "div",
bsPrefix: a,
spans: o
}] = nd(e);
return /* @__PURE__ */ R(i, {
...r,
ref: t,
className: ge(n, !o.length && a)
});
}
);
Au.displayName = "Col";
const Su = /* @__PURE__ */ ne.forwardRef(({
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
as: e = "label",
bsPrefix: t,
column: n = !1,
visuallyHidden: r = !1,
className: i,
htmlFor: a,
...o
}, l) => {
const {
controlId: s
} = Z(qt);
t = Se(t, "form-label");
let u = "col-form-label";
typeof n == "string" && (u = `${u} ${u}-${n}`);
const f = ge(i, t, r && "visually-hidden", n && u);
return process.env.NODE_ENV !== "production" && mi(s == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || s, n ? /* @__PURE__ */ R(Au, {
ref: l,
as: "label",
className: f,
htmlFor: a,
...o
}) : /* @__PURE__ */ R(e, {
ref: l,
className: f,
htmlFor: a,
...o
});
});
Su.displayName = "FormLabel";
const xu = /* @__PURE__ */ ne.forwardRef(({
bsPrefix: e,
className: t,
id: n,
...r
}, i) => {
const {
controlId: a
} = Z(qt);
return e = Se(e, "form-range"), /* @__PURE__ */ R("input", {
...r,
type: "range",
ref: i,
className: ge(t, e),
id: n || a
});
});
xu.displayName = "FormRange";
const Ou = /* @__PURE__ */ ne.forwardRef(({
bsPrefix: e,
size: t,
htmlSize: n,
className: r,
isValid: i = !1,
isInvalid: a = !1,
id: o,
...l
}, s) => {
const {
controlId: u
} = Z(qt);
return e = Se(e, "form-select"), /* @__PURE__ */ R("select", {
...l,
size: n,
ref: s,
className: ge(r, e, t && `${e}-${t}`, i && "is-valid", a && "is-invalid"),
id: o || u
});
});
Ou.displayName = "FormSelect";
const Du = /* @__PURE__ */ ne.forwardRef(
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
({
bsPrefix: e,
className: t,
as: n = "small",
muted: r,
...i
}, a) => (e = Se(e, "form-text"), /* @__PURE__ */ R(n, {
...i,
ref: a,
className: ge(t, e, r && "text-muted")
}))
);
Du.displayName = "FormText";
const Tu = /* @__PURE__ */ ne.forwardRef((e, t) => /* @__PURE__ */ R(Jr, {
...e,
ref: t,
type: "switch"
}));
Tu.displayName = "Switch";
const rd = Object.assign(Tu, {
Input: Jr.Input,
Label: Jr.Label
}), Ru = /* @__PURE__ */ ne.forwardRef(({
bsPrefix: e,
className: t,
children: n,
controlId: r,
label: i,
...a
}, o) => (e = Se(e, "form-floating"), /* @__PURE__ */ qe(Va, {
ref: o,
className: ge(t, e),
controlId: r,
...a,
children: [n, /* @__PURE__ */ R("label", {
htmlFor: r,
children: i
})]
})));
Ru.displayName = "FloatingLabel";
const id = {
/**
* The Form `ref` will be forwarded to the underlying element,
* which means, unless it's rendered `as` a composite component,
* it will be a DOM node, when resolved.
*
* @type {ReactRef}
* @alias ref
*/
_ref: ce.any,
/**
* Mark a form as having been validated. Setting it to `true` will
* toggle any validation styles on the forms elements.
*/
validated: ce.bool,
as: ce.elementType
}, Wa = /* @__PURE__ */ ne.forwardRef(({
className: e,
validated: t,
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
as: n = "form",
...r
}, i) => /* @__PURE__ */ R(n, {
...r,
ref: i,
className: ge(e, t && "was-validated")
}));
Wa.displayName = "Form";
Wa.propTypes = id;
const et = Object.assign(Wa, {
Group: Va,
Control: td,
Floating: Cu,
Check: Jr,
Switch: rd,
Label: Su,
Text: Du,
Range: xu,
Select: Ou,
FloatingLabel: Ru
}), Nn = ({
currentPath: e,
datafield: t,
dataLocation: n,
defaultValue: r,
globalDataContext: i,
templateContext: a
}) => {
const o = {
// This is the data that contains the current checked state.
formData: void 0,
// This is the path that leads to the data.
formDataPath: void 0
};
return n && typeof n == "string" ? (o.formData = Be({
globalDataContext: i,
templateContext: a,
valueToEvaluate: n
}) ?? r, o.formDataPath = lt({ dataLocation: n, currentPath: e, globalDataContext: i, templateContext: a })) : ((a.templateData[t] ?? void 0) === void 0 && (a.templateData = typeof a.templateData == "object" ? a.templateData : {}, a.templateData[t] = r), o.formData = a.templateData[t], o.formDataPath = lt({
dataLocation: "~." + t,
currentPath: a.templatePath,
globalDataContext: i,
templateContext: a
})), o;
}, ad = (e) => {
const t = Z(mu), n = Z(Fe), r = Z(Te), i = (e == null ? void 0 : e.actionProps) ?? void 0;
return me(() => {
const a = i ?? void 0, o = (i == null ? void 0 : i.what) ?? void 0, l = (i == null ? void 0 : i.whenMessageIs) ?? void 0, s = wt({
globalDataContext: n,
templateContext: r,
valueToEvaluate: l
}), u = (f) => {
if (f.origin !== window.location.origin || !en.isEqual(f.data, s))
return;
const c = o && (qn[o] ?? void 0);
c && c({ args: a, event: f, globalDataContext: n, templateContext: r });
};
return t == null || t.addEventListener("message", u), () => {
t == null || t.removeEventListener("message", u);
};
}, [t, n, i, r]), /* @__PURE__ */ R(Ot, { children: e.children });
};
function ma() {
return ma = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, ma.apply(null, arguments);
}
function _u(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
if (t.indexOf(r) !== -1) continue;
n[r] = e[r];
}
return n;
}
function qo(e) {
return "default" + e.charAt(0).toUpperCase() + e.substr(1);
}
function od(e) {
var t = sd(e, "string");
return typeof t == "symbol" ? t : String(t);
}
function sd(e, t) {
if (typeof e != "object" || e === null) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(e, t);
if (typeof r != "object") return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(e);
}
function Pu(e, t, n) {
var r = ae(e !== void 0), i = Oe(t), a = i[0], o = i[1], l = e !== void 0, s = r.current;
return r.current = l, !l && s && a !== t && o(t), [l ? e : a, pe(function(u) {
for (var f = arguments.length, c = new Array(f > 1 ? f - 1 : 0), d = 1; d < f; d++)
c[d - 1] = arguments[d];
n && n.apply(void 0, [u].concat(c)), o(u);
}, [n])];
}
function vi(e, t) {
return Object.keys(t).reduce(function(n, r) {
var i, a = n, o = a[qo(r)], l = a[r], s = _u(a, [qo(r), r].map(od)), u = t[r], f = Pu(l, o, e[u]), c = f[0], d = f[1];
return ma({}, s, (i = {}, i[r] = c, i[u] = d, i));
}, e);
}
function va(e, t) {
return va = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
return n.__proto__ = r, n;
}, va(e, t);
}
function ud(e, t) {
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, va(e, t);
}
function Fn(e) {
return e && e.ownerDocument || document;
}
function ld(e) {
var t = Fn(e);
return t && t.defaultView || window;
}
function cd(e, t) {
return ld(e).getComputedStyle(e, t);
}
var fd = /([A-Z])/g;
function dd(e) {
return e.replace(fd, "-$1").toLowerCase();
}
var pd = /^ms-/;
function Ir(e) {
return dd(e).replace(pd, "-ms-");
}
var hd = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
function md(e) {
return !!(e && hd.test(e));
}
function zt(e, t) {
var n = "", r = "";
if (typeof t == "string")
return e.style.getPropertyValue(Ir(t)) || cd(e).getPropertyValue(Ir(t));
Object.keys(t).forEach(function(i) {
var a = t[i];
!a && a !== 0 ? e.style.removeProperty(Ir(i)) : md(i) ? r += i + "(" + a + ") " : n += Ir(i) + ": " + a + ";";
}), r && (n += "transform: " + r + ";"), e.style.cssText += ";" + n;
}
var kr = { exports: {} }, at = {};
/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Vo;
function vd() {
if (Vo) return at;
Vo = 1;
var e = ue;
function t(s) {
var u = "https://react.dev/errors/" + s;
if (1 < arguments.length) {
u += "?args[]=" + encodeURIComponent(arguments[1]);
for (var f = 2; f < arguments.length; f++)
u += "&args[]=" + encodeURIComponent(arguments[f]);
}
return "Minified React error #" + s + "; visit " + u + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
function n() {
}
var r = {
d: {
f: n,
r: function() {
throw Error(t(522));
},
D: n,
C: n,
L: n,
m: n,
X: n,
S: n,
M: n
},
p: 0,
findDOMNode: null
}, i = Symbol.for("react.portal");
function a(s, u, f) {
var c = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
return {
$$typeof: i,
key: c == null ? null : "" + c,
children: s,
containerInfo: u,
implementation: f
};
}
var o = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function l(s, u) {
if (s === "font") return "";
if (typeof u == "string")
return u === "use-credentials" ? u : "";
}
return at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = r, at.createPortal = function(s, u) {
var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
if (!u || u.nodeType !== 1 && u.nodeType !== 9 && u.nodeType !== 11)
throw Error(t(299));
return a(s, u, null, f);
}, at.flushSync = function(s) {
var u = o.T, f = r.p;
try {
if (o.T = null, r.p = 2, s) return s();
} finally {
o.T = u, r.p = f, r.d.f();
}
}, at.preconnect = function(s, u) {
typeof s == "string" && (u ? (u = u.crossOrigin, u = typeof u == "string" ? u === "use-credentials" ? u : "" : void 0) : u = null, r.d.C(s, u));
}, at.prefetchDNS = function(s) {
typeof s == "string" && r.d.D(s);
}, at.preinit = function(s, u) {
if (typeof s == "string" && u && typeof u.as == "string") {
var f = u.as, c = l(f, u.crossOrigin), d = typeof u.integrity == "string" ? u.integrity : void 0, v = typeof u.fetchPriority == "string" ? u.fetchPriority : void 0;
f === "style" ? r.d.S(
s,
typeof u.precedence == "string" ? u.precedence : void 0,
{
crossOrigin: c,
integrity: d,
fetchPriority: v
}
) : f === "script" && r.d.X(s, {
crossOrigin: c,
integrity: d,
fetchPriority: v,
nonce: typeof u.nonce == "string" ? u.nonce : void 0
});
}
}, at.preinitModule = function(s, u) {
if (typeof s == "string")
if (typeof u == "object" && u !== null) {
if (u.as == null || u.as === "script") {
var f = l(
u.as,
u.crossOrigin
);
r.d.M(s, {
crossOrigin: f,
integrity: typeof u.integrity == "string" ? u.integrity : void 0,
nonce: typeof u.nonce == "string" ? u.nonce : void 0
});
}
} else u == null && r.d.M(s);
}, at.preload = function(s, u) {
if (typeof s == "string" && typeof u == "object" && u !== null && typeof u.as == "string") {
var f = u.as, c = l(f, u.crossOrigin);
r.d.L(s, f, {
crossOrigin: c,
integrity: typeof u.integrity == "string" ? u.integrity : void 0,
nonce: typeof u.nonce == "string" ? u.nonce : void 0,
type: typeof u.type == "string" ? u.type : void 0,
fetchPriority: typeof u.fetchPriority == "string" ? u.fetchPriority : void 0,
referrerPolicy: typeof u.referrerPolicy == "string" ? u.referrerPolicy : void 0,
imageSrcSet: typeof u.imageSrcSet == "string" ? u.imageSrcSet : void 0,
imageSizes: typeof u.imageSizes == "string" ? u.imageSizes : void 0,
media: typeof u.media == "string" ? u.media : void 0
});
}
}, at.preloadModule = function(s, u) {
if (typeof s == "string")
if (u) {
var f = l(u.as, u.crossOrigin);
r.d.m(s, {
as: typeof u.as == "string" && u.as !== "script" ? u.as : void 0,
crossOrigin: f,
integrity: typeof u.integrity == "string" ? u.integrity : void 0
});
} else r.d.m(s);
}, at.requestFormReset = function(s) {
r.d.r(s);
}, at.unstable_batchedUpdates = function(s, u) {
return s(u);
}, at.useFormState = function(s, u, f) {
return o.H.useFormState(s, u, f);
}, at.useFormStatus = function() {
return o.H.useHostTransitionStatus();
}, at.version = "19.1.0", at;
}
var ot = {};
/**
* @license React
* react-dom.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Wo;
function gd() {
return Wo || (Wo = 1, process.env.NODE_ENV !== "production" && function() {
function e() {
}
function t(c) {
return "" + c;
}
function n(c, d, v) {
var g = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
try {
t(g);
var y = !1;
} catch {
y = !0;
}
return y && (console.error(
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object"
), t(g)), {
$$typeof: u,
key: g == null ? null : "" + g,
children: c,
containerInfo: d,
implementation: v
};
}
function r(c, d) {
if (c === "font") return "";
if (typeof d == "string")
return d === "use-credentials" ? d : "";
}
function i(c) {
return c === null ? "`null`" : c === void 0 ? "`undefined`" : c === "" ? "an empty string" : 'something with type "' + typeof c + '"';
}
function a(c) {
return c === null ? "`null`" : c === void 0 ? "`undefined`" : c === "" ? "an empty string" : typeof c == "string" ? JSON.stringify(c) : typeof c == "number" ? "`" + c + "`" : 'something with type "' + typeof c + '"';
}
function o() {
var c = f.H;
return c === null && console.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:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
), c;
}
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
var l = ue, s = {
d: {
f: e,
r: function() {
throw Error(
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
);
},
D: e,
C: e,
L: e,
m: e,
X: e,
S: e,
M: e
},
p: 0,
findDOMNode: null
}, u = Symbol.for("react.portal"), f = l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
), ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, ot.createPortal = function(c, d) {
var v = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
if (!d || d.nodeType !== 1 && d.nodeType !== 9 && d.nodeType !== 11)
throw Error("Target container is not a DOM element.");
return n(c, d, null, v);
}, ot.flushSync = function(c) {
var d = f.T, v = s.p;
try {
if (f.T = null, s.p = 2, c)
return c();
} finally {
f.T = d, s.p = v, s.d.f() && console.error(
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
);
}
}, ot.preconnect = function(c, d) {
typeof c == "string" && c ? d != null && typeof d != "object" ? console.error(
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
a(