UNPKG

rag-chatbot-ui-gptbots

Version:

React RAG Chatbot UI with Developer Console

1,419 lines (1,418 loc) 207 kB
import * as de from "react"; import $e, { forwardRef as zn, useContext as Bn, useState as re, useRef as je, useEffect as ut } from "react"; function Ln(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Xt = { exports: {} }, Xe = {}; /** * @license React * react-jsx-runtime.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 br; function Fn() { if (br) return Xe; br = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment"); function r(n, o, a) { var c = null; if (a !== void 0 && (c = "" + a), o.key !== void 0 && (c = "" + o.key), "key" in o) { a = {}; for (var l in o) l !== "key" && (a[l] = o[l]); } else a = o; return o = a.ref, { $$typeof: e, type: n, key: c, ref: o !== void 0 ? o : null, props: a }; } return Xe.Fragment = t, Xe.jsx = r, Xe.jsxs = r, Xe; } var Je = {}; /** * @license React * react-jsx-runtime.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 xr; function Vn() { return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() { function e(u) { if (u == null) return null; if (typeof u == "function") return u.$$typeof === i ? null : u.displayName || u.name || null; if (typeof u == "string") return u; switch (u) { case s: return "Fragment"; case O: return "Profiler"; case E: return "StrictMode"; case v: return "Suspense"; case z: return "SuspenseList"; case te: return "Activity"; } if (typeof u == "object") switch (typeof u.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), u.$$typeof) { case S: return "Portal"; case j: return (u.displayName || "Context") + ".Provider"; case I: return (u._context.displayName || "Context") + ".Consumer"; case P: var w = u.render; return u = u.displayName, u || (u = w.displayName || w.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u; case M: return w = u.displayName || null, w !== null ? w : e(u.type) || "Memo"; case K: w = u._payload, u = u._init; try { return e(u(w)); } catch { } } return null; } function t(u) { return "" + u; } function r(u) { try { t(u); var w = !1; } catch { w = !0; } if (w) { w = console; var $ = w.error, N = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object"; return $.call( w, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", N ), t(u); } } function n(u) { if (u === s) return "<>"; if (typeof u == "object" && u !== null && u.$$typeof === K) return "<...>"; try { var w = e(u); return w ? "<" + w + ">" : "<...>"; } catch { return "<...>"; } } function o() { var u = A.A; return u === null ? null : u.getOwner(); } function a() { return Error("react-stack-top-frame"); } function c(u) { if (B.call(u, "key")) { var w = Object.getOwnPropertyDescriptor(u, "key").get; if (w && w.isReactWarning) return !1; } return u.key !== void 0; } function l(u, w) { function $() { oe || (oe = !0, console.error( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", w )); } $.isReactWarning = !0, Object.defineProperty(u, "key", { get: $, configurable: !0 }); } function d() { var u = e(this.type); return Q[u] || (Q[u] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), u = this.props.ref, u !== void 0 ? u : null; } function p(u, w, $, N, D, L, g, C) { return $ = L.ref, u = { $$typeof: k, type: u, key: w, props: L, _owner: D }, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(u, "ref", { enumerable: !1, get: d }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(u, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(u, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: g }), Object.defineProperty(u, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: C }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u; } function h(u, w, $, N, D, L, g, C) { var T = w.children; if (T !== void 0) if (N) if (V(T)) { for (N = 0; N < T.length; N++) m(T[N]); Object.freeze && Object.freeze(T); } else console.error( "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." ); else m(T); if (B.call(w, "key")) { T = e(u); var x = Object.keys(w).filter(function(F) { return F !== "key"; }); N = 0 < x.length ? "{key: someKey, " + x.join(": ..., ") + ": ...}" : "{key: someKey}", he[T + N] || (x = 0 < x.length ? "{" + x.join(": ..., ") + ": ...}" : "{}", console.error( `A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, N, T, x, T ), he[T + N] = !0); } if (T = null, $ !== void 0 && (r($), T = "" + $), c(w) && (r(w.key), T = "" + w.key), "key" in w) { $ = {}; for (var _ in w) _ !== "key" && ($[_] = w[_]); } else $ = w; return T && l( $, typeof u == "function" ? u.displayName || u.name || "Unknown" : u ), p( u, T, L, D, o(), $, g, C ); } function m(u) { typeof u == "object" && u !== null && u.$$typeof === k && u._store && (u._store.validated = 1); } var y = $e, k = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), j = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), te = Symbol.for("react.activity"), i = Symbol.for("react.client.reference"), A = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, V = Array.isArray, U = console.createTask ? console.createTask : function() { return null; }; y = { "react-stack-bottom-frame": function(u) { return u(); } }; var oe, Q = {}, le = y["react-stack-bottom-frame"].bind( y, a )(), me = U(n(a)), he = {}; Je.Fragment = s, Je.jsx = function(u, w, $, N, D) { var L = 1e4 > A.recentlyCreatedOwnerStacks++; return h( u, w, $, !1, N, D, L ? Error("react-stack-top-frame") : le, L ? U(n(u)) : me ); }, Je.jsxs = function(u, w, $, N, D) { var L = 1e4 > A.recentlyCreatedOwnerStacks++; return h( u, w, $, !0, N, D, L ? Error("react-stack-top-frame") : le, L ? U(n(u)) : me ); }; }()), Je; } process.env.NODE_ENV === "production" ? Xt.exports = Fn() : Xt.exports = Vn(); var f = Xt.exports; const vr = (e) => e, Un = () => { let e = vr; return { configure(t) { e = t; }, generate(t) { return e(t); }, reset() { e = vr; } }; }, Wn = Un(); function Ne(e, ...t) { const r = new URL(`https://mui.com/production-error/?code=${e}`); return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`; } function ze(e) { if (typeof e != "string") throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ne(7)); return e.charAt(0).toUpperCase() + e.slice(1); } var Jt = { exports: {} }, dt = { exports: {} }, G = {}; /** @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 wr; function Yn() { if (wr) return G; wr = 1; var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119; function j(v) { if (typeof v == "object" && v !== null) { var z = v.$$typeof; switch (z) { case t: switch (v = v.type, v) { case d: case p: case n: case a: case o: case m: return v; default: switch (v = v && v.$$typeof, v) { case l: case h: case S: case k: case c: return v; default: return z; } } case r: return z; } } } function P(v) { return j(v) === p; } return G.AsyncMode = d, G.ConcurrentMode = p, G.ContextConsumer = l, G.ContextProvider = c, G.Element = t, G.ForwardRef = h, G.Fragment = n, G.Lazy = S, G.Memo = k, G.Portal = r, G.Profiler = a, G.StrictMode = o, G.Suspense = m, G.isAsyncMode = function(v) { return P(v) || j(v) === d; }, G.isConcurrentMode = P, G.isContextConsumer = function(v) { return j(v) === l; }, G.isContextProvider = function(v) { return j(v) === c; }, G.isElement = function(v) { return typeof v == "object" && v !== null && v.$$typeof === t; }, G.isForwardRef = function(v) { return j(v) === h; }, G.isFragment = function(v) { return j(v) === n; }, G.isLazy = function(v) { return j(v) === S; }, G.isMemo = function(v) { return j(v) === k; }, G.isPortal = function(v) { return j(v) === r; }, G.isProfiler = function(v) { return j(v) === a; }, G.isStrictMode = function(v) { return j(v) === o; }, G.isSuspense = function(v) { return j(v) === m; }, G.isValidElementType = function(v) { return typeof v == "string" || typeof v == "function" || v === n || v === p || v === a || v === o || v === m || v === y || typeof v == "object" && v !== null && (v.$$typeof === S || v.$$typeof === k || v.$$typeof === c || v.$$typeof === l || v.$$typeof === h || v.$$typeof === E || v.$$typeof === O || v.$$typeof === I || v.$$typeof === s); }, G.typeOf = j, G; } var q = {}; /** @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 Sr; function Hn() { return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119; function j(R) { return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. R === n || R === p || R === a || R === o || R === m || R === y || typeof R == "object" && R !== null && (R.$$typeof === S || R.$$typeof === k || R.$$typeof === c || R.$$typeof === l || R.$$typeof === h || R.$$typeof === E || R.$$typeof === O || R.$$typeof === I || R.$$typeof === s); } function P(R) { if (typeof R == "object" && R !== null) { var pe = R.$$typeof; switch (pe) { case t: var Be = R.type; switch (Be) { case d: case p: case n: case a: case o: case m: return Be; default: var De = Be && Be.$$typeof; switch (De) { case l: case h: case S: case k: case c: return De; default: return pe; } } case r: return pe; } } } var v = d, z = p, M = l, K = c, te = t, i = h, A = n, B = S, V = k, U = r, oe = a, Q = o, le = m, me = !1; function he(R) { return me || (me = !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.")), u(R) || P(R) === d; } function u(R) { return P(R) === p; } function w(R) { return P(R) === l; } function $(R) { return P(R) === c; } function N(R) { return typeof R == "object" && R !== null && R.$$typeof === t; } function D(R) { return P(R) === h; } function L(R) { return P(R) === n; } function g(R) { return P(R) === S; } function C(R) { return P(R) === k; } function T(R) { return P(R) === r; } function x(R) { return P(R) === a; } function _(R) { return P(R) === o; } function F(R) { return P(R) === m; } q.AsyncMode = v, q.ConcurrentMode = z, q.ContextConsumer = M, q.ContextProvider = K, q.Element = te, q.ForwardRef = i, q.Fragment = A, q.Lazy = B, q.Memo = V, q.Portal = U, q.Profiler = oe, q.StrictMode = Q, q.Suspense = le, q.isAsyncMode = he, q.isConcurrentMode = u, q.isContextConsumer = w, q.isContextProvider = $, q.isElement = N, q.isForwardRef = D, q.isFragment = L, q.isLazy = g, q.isMemo = C, q.isPortal = T, q.isProfiler = x, q.isStrictMode = _, q.isSuspense = F, q.isValidElementType = j, q.typeOf = P; }()), q; } var Cr; function on() { return Cr || (Cr = 1, process.env.NODE_ENV === "production" ? dt.exports = Yn() : dt.exports = Hn()), dt.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var Lt, Er; function Gn() { if (Er) return Lt; Er = 1; var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable; function n(a) { if (a == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(a); } function o() { try { if (!Object.assign) return !1; var a = new String("abc"); if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5") return !1; for (var c = {}, l = 0; l < 10; l++) c["_" + String.fromCharCode(l)] = l; var d = Object.getOwnPropertyNames(c).map(function(h) { return c[h]; }); if (d.join("") !== "0123456789") return !1; var p = {}; return "abcdefghijklmnopqrst".split("").forEach(function(h) { p[h] = h; }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return Lt = o() ? Object.assign : function(a, c) { for (var l, d = n(a), p, h = 1; h < arguments.length; h++) { l = Object(arguments[h]); for (var m in l) t.call(l, m) && (d[m] = l[m]); if (e) { p = e(l); for (var y = 0; y < p.length; y++) r.call(l, p[y]) && (d[p[y]] = l[p[y]]); } } return d; }, Lt; } var Ft, Tr; function ir() { if (Tr) return Ft; Tr = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Ft = e, Ft; } var Vt, kr; function an() { return kr || (kr = 1, Vt = Function.call.bind(Object.prototype.hasOwnProperty)), Vt; } var Ut, Or; function qn() { if (Or) return Ut; Or = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { var t = ir(), r = {}, n = an(); e = function(a) { var c = "Warning: " + a; typeof console < "u" && console.error(c); try { throw new Error(c); } catch { } }; } function o(a, c, l, d, p) { if (process.env.NODE_ENV !== "production") { for (var h in a) if (n(a, h)) { var m; try { if (typeof a[h] != "function") { var y = Error( (d || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw y.name = "Invariant Violation", y; } m = a[h](c, h, d, l, null, t); } catch (S) { m = S; } if (m && !(m instanceof Error) && e( (d || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), m instanceof Error && !(m.message in r)) { r[m.message] = !0; var k = p ? p() : ""; e( "Failed " + l + " type: " + m.message + (k ?? "") ); } } } } return o.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (r = {}); }, Ut = o, Ut; } var Wt, _r; function Kn() { if (_r) return Wt; _r = 1; var e = on(), t = Gn(), r = ir(), n = an(), o = qn(), a = function() { }; process.env.NODE_ENV !== "production" && (a = function(l) { var d = "Warning: " + l; typeof console < "u" && console.error(d); try { throw new Error(d); } catch { } }); function c() { return null; } return Wt = function(l, d) { var p = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator"; function m(u) { var w = u && (p && u[p] || u[h]); if (typeof w == "function") return w; } var y = "<<anonymous>>", k = { array: O("array"), bigint: O("bigint"), bool: O("boolean"), func: O("function"), number: O("number"), object: O("object"), string: O("string"), symbol: O("symbol"), any: I(), arrayOf: j, element: P(), elementType: v(), instanceOf: z, node: i(), objectOf: K, oneOf: M, oneOfType: te, shape: B, exact: V }; function S(u, w) { return u === w ? u !== 0 || 1 / u === 1 / w : u !== u && w !== w; } function s(u, w) { this.message = u, this.data = w && typeof w == "object" ? w : {}, this.stack = ""; } s.prototype = Error.prototype; function E(u) { if (process.env.NODE_ENV !== "production") var w = {}, $ = 0; function N(L, g, C, T, x, _, F) { if (T = T || y, _ = _ || C, F !== r) { if (d) { var R = 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 R.name = "Invariant Violation", R; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { var pe = T + ":" + C; !w[pe] && // Avoid spamming the console because they are often not actionable except for lib authors $ < 3 && (a( "You are manually calling a React.PropTypes validation function for the `" + _ + "` prop on `" + T + "`. 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." ), w[pe] = !0, $++); } } return g[C] == null ? L ? g[C] === null ? new s("The " + x + " `" + _ + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new s("The " + x + " `" + _ + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : u(g, C, T, x, _); } var D = N.bind(null, !1); return D.isRequired = N.bind(null, !0), D; } function O(u) { function w($, N, D, L, g, C) { var T = $[N], x = Q(T); if (x !== u) { var _ = le(T); return new s( "Invalid " + L + " `" + g + "` of type " + ("`" + _ + "` supplied to `" + D + "`, expected ") + ("`" + u + "`."), { expectedType: u } ); } return null; } return E(w); } function I() { return E(c); } function j(u) { function w($, N, D, L, g) { if (typeof u != "function") return new s("Property `" + g + "` of component `" + D + "` has invalid PropType notation inside arrayOf."); var C = $[N]; if (!Array.isArray(C)) { var T = Q(C); return new s("Invalid " + L + " `" + g + "` of type " + ("`" + T + "` supplied to `" + D + "`, expected an array.")); } for (var x = 0; x < C.length; x++) { var _ = u(C, x, D, L, g + "[" + x + "]", r); if (_ instanceof Error) return _; } return null; } return E(w); } function P() { function u(w, $, N, D, L) { var g = w[$]; if (!l(g)) { var C = Q(g); return new s("Invalid " + D + " `" + L + "` of type " + ("`" + C + "` supplied to `" + N + "`, expected a single ReactElement.")); } return null; } return E(u); } function v() { function u(w, $, N, D, L) { var g = w[$]; if (!e.isValidElementType(g)) { var C = Q(g); return new s("Invalid " + D + " `" + L + "` of type " + ("`" + C + "` supplied to `" + N + "`, expected a single ReactElement type.")); } return null; } return E(u); } function z(u) { function w($, N, D, L, g) { if (!($[N] instanceof u)) { var C = u.name || y, T = he($[N]); return new s("Invalid " + L + " `" + g + "` of type " + ("`" + T + "` supplied to `" + D + "`, expected ") + ("instance of `" + C + "`.")); } return null; } return E(w); } function M(u) { if (!Array.isArray(u)) 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.")), c; function w($, N, D, L, g) { for (var C = $[N], T = 0; T < u.length; T++) if (S(C, u[T])) return null; var x = JSON.stringify(u, function(F, R) { var pe = le(R); return pe === "symbol" ? String(R) : R; }); return new s("Invalid " + L + " `" + g + "` of value `" + String(C) + "` " + ("supplied to `" + D + "`, expected one of " + x + ".")); } return E(w); } function K(u) { function w($, N, D, L, g) { if (typeof u != "function") return new s("Property `" + g + "` of component `" + D + "` has invalid PropType notation inside objectOf."); var C = $[N], T = Q(C); if (T !== "object") return new s("Invalid " + L + " `" + g + "` of type " + ("`" + T + "` supplied to `" + D + "`, expected an object.")); for (var x in C) if (n(C, x)) { var _ = u(C, x, D, L, g + "." + x, r); if (_ instanceof Error) return _; } return null; } return E(w); } function te(u) { if (!Array.isArray(u)) return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), c; for (var w = 0; w < u.length; w++) { var $ = u[w]; if (typeof $ != "function") return a( "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + me($) + " at index " + w + "." ), c; } function N(D, L, g, C, T) { for (var x = [], _ = 0; _ < u.length; _++) { var F = u[_], R = F(D, L, g, C, T, r); if (R == null) return null; R.data && n(R.data, "expectedType") && x.push(R.data.expectedType); } var pe = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : ""; return new s("Invalid " + C + " `" + T + "` supplied to " + ("`" + g + "`" + pe + ".")); } return E(N); } function i() { function u(w, $, N, D, L) { return U(w[$]) ? null : new s("Invalid " + D + " `" + L + "` supplied to " + ("`" + N + "`, expected a ReactNode.")); } return E(u); } function A(u, w, $, N, D) { return new s( (u || "React class") + ": " + w + " type `" + $ + "." + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`." ); } function B(u) { function w($, N, D, L, g) { var C = $[N], T = Q(C); if (T !== "object") return new s("Invalid " + L + " `" + g + "` of type `" + T + "` " + ("supplied to `" + D + "`, expected `object`.")); for (var x in u) { var _ = u[x]; if (typeof _ != "function") return A(D, L, g, x, le(_)); var F = _(C, x, D, L, g + "." + x, r); if (F) return F; } return null; } return E(w); } function V(u) { function w($, N, D, L, g) { var C = $[N], T = Q(C); if (T !== "object") return new s("Invalid " + L + " `" + g + "` of type `" + T + "` " + ("supplied to `" + D + "`, expected `object`.")); var x = t({}, $[N], u); for (var _ in x) { var F = u[_]; if (n(u, _) && typeof F != "function") return A(D, L, g, _, le(F)); if (!F) return new s( "Invalid " + L + " `" + g + "` key `" + _ + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify($[N], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(u), null, " ") ); var R = F(C, _, D, L, g + "." + _, r); if (R) return R; } return null; } return E(w); } function U(u) { switch (typeof u) { case "number": case "string": case "undefined": return !0; case "boolean": return !u; case "object": if (Array.isArray(u)) return u.every(U); if (u === null || l(u)) return !0; var w = m(u); if (w) { var $ = w.call(u), N; if (w !== u.entries) { for (; !(N = $.next()).done; ) if (!U(N.value)) return !1; } else for (; !(N = $.next()).done; ) { var D = N.value; if (D && !U(D[1])) return !1; } } else return !1; return !0; default: return !1; } } function oe(u, w) { return u === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1; } function Q(u) { var w = typeof u; return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : oe(w, u) ? "symbol" : w; } function le(u) { if (typeof u > "u" || u === null) return "" + u; var w = Q(u); if (w === "object") { if (u instanceof Date) return "date"; if (u instanceof RegExp) return "regexp"; } return w; } function me(u) { var w = le(u); switch (w) { case "array": case "object": return "an " + w; case "boolean": case "date": case "regexp": return "a " + w; default: return w; } } function he(u) { return !u.constructor || !u.constructor.name ? y : u.constructor.name; } return k.checkPropTypes = o, k.resetWarningCache = o.resetWarningCache, k.PropTypes = k, k; }, Wt; } var Yt, Rr; function Xn() { if (Rr) return Yt; Rr = 1; var e = ir(); function t() { } function r() { } return r.resetWarningCache = t, Yt = function() { function n(c, l, d, p, h, m) { if (m !== e) { var y = 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 y.name = "Invariant Violation", y; } } n.isRequired = n; function o() { return n; } var a = { array: n, bigint: n, bool: n, func: n, number: n, object: n, string: n, symbol: n, any: n, arrayOf: o, element: n, elementType: n, instanceOf: o, node: n, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: r, resetWarningCache: t }; return a.PropTypes = a, a; }, Yt; } if (process.env.NODE_ENV !== "production") { var Jn = on(), Qn = !0; Jt.exports = Kn()(Jn.isElement, Qn); } else Jt.exports = Xn()(); var Zn = Jt.exports; const W = /* @__PURE__ */ Ln(Zn); function sn(e) { var t, r, n = ""; if (typeof e == "string" || typeof e == "number") n += e; else if (typeof e == "object") if (Array.isArray(e)) { var o = e.length; for (t = 0; t < o; t++) e[t] && (r = sn(e[t])) && (n && (n += " "), n += r); } else for (r in e) e[r] && (n && (n += " "), n += r); return n; } function eo() { for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = sn(e)) && (n && (n += " "), n += t); return n; } function to(e, t, r = void 0) { const n = {}; for (const o in e) { const a = e[o]; let c = "", l = !0; for (let d = 0; d < a.length; d += 1) { const p = a[d]; p && (c += (l === !0 ? "" : " ") + t(p), l = !1, r && r[p] && (c += " " + r[p])); } n[o] = c; } return n; } var Qt = { exports: {} }, X = {}; /** * @license React * react-is.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 Pr; function ro() { if (Pr) return X; Pr = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), y = Symbol.for("react.view_transition"), k = Symbol.for("react.client.reference"); function S(s) { if (typeof s == "object" && s !== null) { var E = s.$$typeof; switch (E) { case e: switch (s = s.type, s) { case r: case o: case n: case d: case p: case y: return s; default: switch (s = s && s.$$typeof, s) { case c: case l: case m: case h: return s; case a: return s; default: return E; } } case t: return E; } } } return X.ContextConsumer = a, X.ContextProvider = c, X.Element = e, X.ForwardRef = l, X.Fragment = r, X.Lazy = m, X.Memo = h, X.Portal = t, X.Profiler = o, X.StrictMode = n, X.Suspense = d, X.SuspenseList = p, X.isContextConsumer = function(s) { return S(s) === a; }, X.isContextProvider = function(s) { return S(s) === c; }, X.isElement = function(s) { return typeof s == "object" && s !== null && s.$$typeof === e; }, X.isForwardRef = function(s) { return S(s) === l; }, X.isFragment = function(s) { return S(s) === r; }, X.isLazy = function(s) { return S(s) === m; }, X.isMemo = function(s) { return S(s) === h; }, X.isPortal = function(s) { return S(s) === t; }, X.isProfiler = function(s) { return S(s) === o; }, X.isStrictMode = function(s) { return S(s) === n; }, X.isSuspense = function(s) { return S(s) === d; }, X.isSuspenseList = function(s) { return S(s) === p; }, X.isValidElementType = function(s) { return typeof s == "string" || typeof s == "function" || s === r || s === o || s === n || s === d || s === p || typeof s == "object" && s !== null && (s.$$typeof === m || s.$$typeof === h || s.$$typeof === c || s.$$typeof === a || s.$$typeof === l || s.$$typeof === k || s.getModuleId !== void 0); }, X.typeOf = S, X; } var J = {}; /** * @license React * react-is.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 Ar; function no() { return Ar || (Ar = 1, process.env.NODE_ENV !== "production" && function() { function e(s) { if (typeof s == "object" && s !== null) { var E = s.$$typeof; switch (E) { case t: switch (s = s.type, s) { case n: case a: case o: case p: case h: case k: return s; default: switch (s = s && s.$$typeof, s) { case l: case d: case y: case m: return s; case c: return s; default: return E; } } case r: return E; } } } var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), k = Symbol.for("react.view_transition"), S = Symbol.for("react.client.reference"); J.ContextConsumer = c, J.ContextProvider = l, J.Element = t, J.ForwardRef = d, J.Fragment = n, J.Lazy = y, J.Memo = m, J.Portal = r, J.Profiler = a, J.StrictMode = o, J.Suspense = p, J.SuspenseList = h, J.isContextConsumer = function(s) { return e(s) === c; }, J.isContextProvider = function(s) { return e(s) === l; }, J.isElement = function(s) { return typeof s == "object" && s !== null && s.$$typeof === t; }, J.isForwardRef = function(s) { return e(s) === d; }, J.isFragment = function(s) { return e(s) === n; }, J.isLazy = function(s) { return e(s) === y; }, J.isMemo = function(s) { return e(s) === m; }, J.isPortal = function(s) { return e(s) === r; }, J.isProfiler = function(s) { return e(s) === a; }, J.isStrictMode = function(s) { return e(s) === o; }, J.isSuspense = function(s) { return e(s) === p; }, J.isSuspenseList = function(s) { return e(s) === h; }, J.isValidElementType = function(s) { return typeof s == "string" || typeof s == "function" || s === n || s === a || s === o || s === p || s === h || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === m || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || s.$$typeof === S || s.getModuleId !== void 0); }, J.typeOf = e; }()), J; } process.env.NODE_ENV === "production" ? Qt.exports = ro() : Qt.exports = no(); var vt = Qt.exports; function Re(e) { if (typeof e != "object" || e === null) return !1; const t = Object.getPrototypeOf(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e); } function cn(e) { if (/* @__PURE__ */ de.isValidElement(e) || vt.isValidElementType(e) || !Re(e)) return e; const t = {}; return Object.keys(e).forEach((r) => { t[r] = cn(e[r]); }), t; } function be(e, t, r = { clone: !0 }) { const n = r.clone ? { ...e } : e; return Re(e) && Re(t) && Object.keys(t).forEach((o) => { /* @__PURE__ */ de.isValidElement(t[o]) || vt.isValidElementType(t[o]) ? n[o] = t[o] : Re(t[o]) && // Avoid prototype pollution Object.prototype.hasOwnProperty.call(e, o) && Re(e[o]) ? n[o] = be(e[o], t[o], r) : r.clone ? n[o] = Re(t[o]) ? cn(t[o]) : t[o] : n[o] = t[o]; }), n; } function rt(e, t) { return t ? be(e, t, { clone: !1 // No need to clone deep, it's way faster. }) : e; } const Me = process.env.NODE_ENV !== "production" ? W.oneOfType([W.number, W.string, W.object, W.array]) : {}; function oo(e, t) { if (!e.containerQueries) return t; const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => { var c, l; const a = /min-width:\s*([0-9.]+)/; return +(((c = n.match(a)) == null ? void 0 : c[1]) || 0) - +(((l = o.match(a)) == null ? void 0 : l[1]) || 0); }); return r.length ? r.reduce((n, o) => { const a = t[o]; return delete n[o], n[o] = a, n; }, { ...t }) : t; } function ao(e, t) { return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/)); } function io(e, t) { const r = t.match(/^@([^/]+)?\/?(.+)?$/); if (!r) { if (process.env.NODE_ENV !== "production") throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`. For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Ne(18, `(${t})`)); return null; } const [, n, o] = r, a = Number.isNaN(+n) ? n || 0 : +n; return e.containerQueries(o).up(a); } function so(e) { const t = (a, c) => a.replace("@media", c ? `@container ${c}` : "@container"); function r(a, c) { a.up = (...l) => t(e.breakpoints.up(...l), c), a.down = (...l) => t(e.breakpoints.down(...l), c), a.between = (...l) => t(e.breakpoints.between(...l), c), a.only = (...l) => t(e.breakpoints.only(...l), c), a.not = (...l) => { const d = t(e.breakpoints.not(...l), c); return d.includes("not all and") ? d.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : d; }; } const n = {}, o = (a) => (r(n, a), n); return r(o), { ...e, containerQueries: o }; } const kt = { xs: 0, // phone sm: 600, // tablet md: 900, // small laptop lg: 1200, // desktop xl: 1536 // large screen }, jr = { // Sorted ASC by size. That's important. // It can't be configured as it's used statically for propTypes. keys: ["xs", "sm", "md", "lg", "xl"], up: (e) => `@media (min-width:${kt[e]}px)` }, co = { containerQueries: (e) => ({ up: (t) => { let r = typeof t == "number" ? t : kt[t] || t; return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`; } }) }; function Pe(e, t, r) { const n = e.theme || {}; if (Array.isArray(t)) { const a = n.breakpoints || jr; return t.reduce((c, l, d) => (c[a.up(a.keys[d])] = r(t[d]), c), {}); } if (typeof t == "object") { const a = n.breakpoints || jr; return Object.keys(t).reduce((c, l) => { if (ao(a.keys, l)) { const d = io(n.containerQueries ? n : co, l); d && (c[d] = r(t[l], l)); } else if (Object.keys(a.values || kt).includes(l)) { const d = a.up(l); c[d] = r(t[l], l); } else { const d = l; c[d] = t[d]; } return c; }, {}); } return r(t); } function lo(e = {}) { var r; return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => { const a = e.up(o); return n[a] = {}, n; }, {})) || {}; } function uo(e, t) { return e.reduce((r, n) => { const o = r[n]; return (!o || Object.keys(o).length === 0) && delete r[n], r; }, t); } function Ot(e, t, r = !0) { if (!t || typeof t != "string") return null; if (e && e.vars && r) { const n = `vars.${t}`.split(".").reduce((o, a) => o && o[a] ? o[a] : null, e); if (n != null) return n; } return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e); } function wt(e, t, r, n = r) { let o; return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = Ot(e, r) || n, t && (o = t(o, n, e)), o; } function se(e) { const { prop: t, cssProperty: r = e.prop, themeKey: n, transform: o } = e, a = (c) => { if (c[t] == null) return null; const l = c[t], d = c.theme, p = Ot(d, n) || {}; return Pe(c, l, (m) => { let y = wt(p, o, m); return m === y && typeof m == "string" && (y = wt(p, o, `${t}${m === "default" ? "" : ze(m)}`, m)), r === !1 ? y : { [r]: y }; }); }; return a.propTypes = process.env.NODE_ENV !== "production" ? { [t]: Me } : {}, a.filterProps = [t], a; } function fo(e) { const t = {}; return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]); } const po = { m: "margin", p: "padding" }, mo = { t: "Top", r: "Right", b: "Bottom", l: "Left", x: ["Left", "Right"], y: ["Top", "Bottom"] }, $r = { marginX: "mx", marginY: "my", paddingX: "px", paddingY: "py" }, ho = fo((e) => { if (e.length > 2) if ($r[e]) e = $r[e]; else return [e]; const [t, r] = e.split(""), n = po[t], o = mo[r] || ""; return Array.isArray(o) ? o.map((a) => n + a) : [n + o]; }), _t = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Rt = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], go = [..._t, ...Rt]; function st(e, t, r, n) { const o = Ot(e, t, !0) ?? r; return typeof o == "number" || typeof o == "string" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`), typeof o == "string" ? o.startsWith("var(") && a === 0 ? 0 : o.startsWith("var(") && a === 1 ? o : `calc(${a} * ${o})` : o * a) : Array.isArray(o) ? (a) => { if (typeof a == "string") return a; const c = Math.abs(a); process.env.NODE_ENV !== "production" && (Number.isInteger(c) ? c > o.length - 1 && console.error([`MUI: The value provided (${c}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${c} > ${o.length - 1}, you need to add the missing values.`].join(` `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` `))); const l = o[c]; return a >= 0 ? l : typeof l == "number" ? -l : typeof l == "string" && l.startsWith("var(") ? `calc(-1 * ${l})` : `-${l}`; } : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(` `)), () => { }); } function sr(e) { return st(e, "spacing", 8, "spacing"); } function ct(e, t) { return typeof t == "string" || t == null ? t : e(t); } function yo(e, t) { return (r) => e.reduce((n, o) => (n[o] = ct(t, r), n), {}); } function bo(e, t, r, n) { if (!t.includes(r)) return null; const o = ho(r), a = yo(o, n), c = e[r]; return Pe(e, c, a); } function ln(e, t) { const r = sr(e.theme); return Object.keys(e).map((n) => bo(e, t, n, r)).reduce(rt, {}); } function ae(e) { return ln(e, _t); } ae.propTypes = process.env.NODE_ENV !== "production" ? _t.reduce((e, t) => (e[t] = Me, e), {}) : {}; ae.filterProps = _t; function ie(e) { return ln(e, Rt); } ie.propTypes = process.env.NODE_ENV !== "production" ? Rt.reduce((e, t) => (e[t] = Me, e), {}) : {}; ie.filterProps = Rt; process.env.NODE_ENV !== "production" && go.reduce((e, t) => (e[t] = Me, e), {}); function Pt(...e) { const t = e.reduce((n, o) => (o.filterProps.forEach((a) => { n[a] = o; }), n), {}), r = (n) => Object.keys(n).reduce((o, a) => t[a] ? rt(o, t[a](n)) : o, {}); return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r; } function ve(e) { return typeof e != "number" ? e : `${e}px solid`; } function we(e, t) { return se({ prop: e, themeKey: "borders", transform: t }); } const xo = we("border", ve), vo = we("borderTop", ve), wo = we("borderRight", ve), So = we("borderBottom", ve), Co = we("borderLeft", ve), Eo = we("borderColor"), To = we("borderTopColor"), ko = we("borderRightColor"), Oo = we("borderBottomColor"), _o = we("borderLeftColor"), Ro = we("outline", ve), Po = we("outlineColor"), At = (e) => { if (e.borderRadius !== void 0 && e.borderRadius !== null) { const t = st(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({ borderRadius: ct(t, n) }); return Pe(e, e.borderRadius, r); } return null; }; At.propTypes = process.env.NODE_ENV !== "production" ? { borderRadius: Me } : {}; At.filterProps = ["borderRadius"]; Pt(xo, vo, wo, So, Co, Eo, To, ko, Oo, _o, At, Ro, Po); const jt = (e) => { if (e.gap !== void 0 && e.gap !== null) { const t = st(e.theme, "spacing", 8, "gap"), r = (n) => ({ gap: ct(t, n) });