UNPKG

@mankindui/core

Version:

- a react component library - you can see how @mankindui/core can be used via examples: [usage examples](https://github.com/clarklindev/mankindui-test)

1,436 lines (1,435 loc) 232 kB
import "../../../_virtual/_commonjsHelpers.js"; import { __exports as Qn } from "../../../_virtual/react-dom-server.browser.development.js"; import "../../../_virtual/_react.js"; import "../../../_virtual/_react-dom.js"; import mu from "react"; import Fu from "react-dom"; /** * @license React * react-dom-server.browser.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 Hl; function Wu() { return Hl ? Qn : (Hl = 1, process.env.NODE_ENV !== "production" && function() { function Nl(e, t, n, r) { return "" + t + (n === "s" ? "\\73 " : "\\53 ") + r; } function _l(e, t, n, r) { return "" + t + (n === "s" ? "\\u0073" : "\\u0053") + r; } function qo(e) { return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/, function(t, n) { return n; }); } function jo(e) { var t = JSON.stringify(e); return '"' + e + '"' === t ? e : t; } function Jn(e) { switch (typeof e) { case "string": return JSON.stringify( 10 >= e.length ? e : e.slice(0, 10) + "..." ); case "object": return gt(e) ? "[...]" : e !== null && e.$$typeof === To ? "client" : (e = qo(e), e === "Object" ? "{...}" : e); case "function": return e.$$typeof === To ? "client" : (e = e.displayName || e.name) ? "function " + e : "function"; default: return String(e); } } function st(e) { if (typeof e == "string") return e; switch (e) { case Tn: return "Suspense"; case fr: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { case dr: return st(e.render); case hr: return st(e.type); case Wt: var t = e._payload; e = e._init; try { return st(e(t)); } catch { } } return ""; } function rn(e, t) { var n = qo(e); if (n !== "Object" && n !== "Array") return n; var r = -1, o = 0; if (gt(e)) if (oa.has(e)) { var i = oa.get(e); n = "<" + st(i) + ">"; for (var a = 0; a < e.length; a++) { var l = e[a]; l = typeof l == "string" ? l : typeof l == "object" && l !== null ? "{" + rn(l) + "}" : "{" + Jn(l) + "}", "" + a === t ? (r = n.length, o = l.length, n += l) : n = 15 > l.length && 40 > n.length + l.length ? n + l : n + "{...}"; } n += "</" + st(i) + ">"; } else { for (n = "[", i = 0; i < e.length; i++) 0 < i && (n += ", "), a = e[i], a = typeof a == "object" && a !== null ? rn(a) : Jn(a), "" + i === t ? (r = n.length, o = a.length, n += a) : n = 10 > a.length && 40 > n.length + a.length ? n + a : n + "..."; n += "]"; } else if (e.$$typeof === ur) n = "<" + st(e.type) + "/>"; else { if (e.$$typeof === To) return "client"; if (ra.has(e)) { for (n = ra.get(e), n = "<" + (st(n) || "..."), i = Object.keys(e), a = 0; a < i.length; a++) { n += " ", l = i[a], n += jo(l) + "="; var s = e[l], c = l === t && typeof s == "object" && s !== null ? rn(s) : Jn(s); typeof s != "string" && (c = "{" + c + "}"), l === t ? (r = n.length, o = c.length, n += c) : n = 10 > c.length && 40 > n.length + c.length ? n + c : n + "..."; } n += ">"; } else { for (n = "{", i = Object.keys(e), a = 0; a < i.length; a++) 0 < a && (n += ", "), l = i[a], n += jo(l) + ": ", s = e[l], s = typeof s == "object" && s !== null ? rn(s) : Jn(s), l === t ? (r = n.length, o = s.length, n += s) : n = 10 > s.length && 40 > n.length + s.length ? n + s : n + "..."; n += "}"; } } return t === void 0 ? n : -1 < r && 0 < o ? (e = " ".repeat(r) + "^".repeat(o), ` ` + n + ` ` + e) : ` ` + n; } function $o(e, t) { var n = e.length & 3, r = e.length - n, o = t; for (t = 0; t < r; ) { var i = e.charCodeAt(t) & 255 | (e.charCodeAt(++t) & 255) << 8 | (e.charCodeAt(++t) & 255) << 16 | (e.charCodeAt(++t) & 255) << 24; ++t, i = 3432918353 * (i & 65535) + ((3432918353 * (i >>> 16) & 65535) << 16) & 4294967295, i = i << 15 | i >>> 17, i = 461845907 * (i & 65535) + ((461845907 * (i >>> 16) & 65535) << 16) & 4294967295, o ^= i, o = o << 13 | o >>> 19, o = 5 * (o & 65535) + ((5 * (o >>> 16) & 65535) << 16) & 4294967295, o = (o & 65535) + 27492 + (((o >>> 16) + 58964 & 65535) << 16); } switch (i = 0, n) { case 3: i ^= (e.charCodeAt(t + 2) & 255) << 16; case 2: i ^= (e.charCodeAt(t + 1) & 255) << 8; case 1: i ^= e.charCodeAt(t) & 255, i = 3432918353 * (i & 65535) + ((3432918353 * (i >>> 16) & 65535) << 16) & 4294967295, i = i << 15 | i >>> 17, o ^= 461845907 * (i & 65535) + ((461845907 * (i >>> 16) & 65535) << 16) & 4294967295; } return o ^= e.length, o ^= o >>> 16, o = 2246822507 * (o & 65535) + ((2246822507 * (o >>> 16) & 65535) << 16) & 4294967295, o ^= o >>> 13, o = 3266489909 * (o & 65535) + ((3266489909 * (o >>> 16) & 65535) << 16) & 4294967295, (o ^ o >>> 16) >>> 0; } function Zr(e) { aa.push(e), ia.port2.postMessage(null); } function Yl(e) { setTimeout(function() { throw e; }); } function u(e, t) { if (t.byteLength !== 0) if (2048 < t.byteLength) 0 < oe && (e.enqueue( new Uint8Array(re.buffer, 0, oe) ), re = new Uint8Array(2048), oe = 0), e.enqueue(t); else { var n = re.length - oe; n < t.byteLength && (n === 0 ? e.enqueue(re) : (re.set( t.subarray(0, n), oe ), e.enqueue(re), t = t.subarray(n)), re = new Uint8Array(2048), oe = 0), re.set(t, oe), oe += t.byteLength; } } function E(e, t) { return u(e, t), !0; } function Vr(e) { re && 0 < oe && (e.enqueue( new Uint8Array(re.buffer, 0, oe) ), re = null, oe = 0); } function y(e) { return ca.encode(e); } function d(e) { return e = ca.encode(e), 2048 < e.byteLength && console.error( "precomputed chunks must be smaller than the view size configured for this host. This is a bug in React." ), e; } function ei(e, t) { typeof e.error == "function" ? e.error(t) : e.close(); } function Kn(e) { return typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object"; } function qn(e) { try { return on(e), !1; } catch { return !0; } } function on(e) { return "" + e; } function j(e, t) { if (qn(e)) return console.error( "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", t, Kn(e) ), on(e); } function ti(e, t) { if (qn(e)) return console.error( "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", t, Kn(e) ), on(e); } function ut(e) { if (qn(e)) return console.error( "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.", Kn(e) ), on(e); } function Qr(e) { return P.call(ua, e) ? !0 : P.call(sa, e) ? !1 : Ac.test(e) ? ua[e] = !0 : (sa[e] = !0, console.error("Invalid attribute name: `%s`", e), !1); } function Jr(e, t) { Ic[t.type] || t.onChange || t.onInput || t.readOnly || t.disabled || t.value == null || console.error( e === "select" ? "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." : "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." ), t.onChange || t.readOnly || t.disabled || t.checked == null || console.error( "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." ); } function Gl(e, t) { if (P.call(zt, t) && zt[t]) return !0; if (Lc.test(t)) { if (e = "aria-" + t.slice(4).toLowerCase(), e = da.hasOwnProperty(e) ? e : null, e == null) return console.error( "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", t ), zt[t] = !0; if (t !== e) return console.error( "Invalid ARIA attribute `%s`. Did you mean `%s`?", t, e ), zt[t] = !0; } if (Dc.test(t)) { if (e = t.toLowerCase(), e = da.hasOwnProperty(e) ? e : null, e == null) return zt[t] = !0, !1; t !== e && (console.error( "Unknown ARIA attribute `%s`. Did you mean `%s`?", t, e ), zt[t] = !0); } return !0; } function Xl(e, t) { var n = [], r; for (r in t) Gl(e, r) || n.push(r); t = n.map(function(o) { return "`" + o + "`"; }).join(", "), n.length === 1 ? console.error( "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", t, e ) : 1 < n.length && console.error( "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", t, e ); } function Zl(e, t, n, r) { if (P.call(J, t) && J[t]) return !0; var o = t.toLowerCase(); if (o === "onfocusin" || o === "onfocusout") return console.error( "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React." ), J[t] = !0; if (typeof n == "function" && (e === "form" && t === "action" || e === "input" && t === "formAction" || e === "button" && t === "formAction")) return !0; if (r != null) { if (e = r.possibleRegistrationNames, r.registrationNameDependencies.hasOwnProperty(t)) return !0; if (r = e.hasOwnProperty(o) ? e[o] : null, r != null) return console.error( "Invalid event handler property `%s`. Did you mean `%s`?", t, r ), J[t] = !0; if (ga.test(t)) return console.error( "Unknown event handler property `%s`. It will be ignored.", t ), J[t] = !0; } else if (ga.test(t)) return Wc.test(t) && console.error( "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", t ), J[t] = !0; if (zc.test(t) || Bc.test(t)) return !0; if (o === "innerhtml") return console.error( "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`." ), J[t] = !0; if (o === "aria") return console.error( "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead." ), J[t] = !0; if (o === "is" && n !== null && n !== void 0 && typeof n != "string") return console.error( "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof n ), J[t] = !0; if (typeof n == "number" && isNaN(n)) return console.error( "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", t ), J[t] = !0; if (ha.hasOwnProperty(o)) { if (o = ha[o], o !== t) return console.error( "Invalid DOM property `%s`. Did you mean `%s`?", t, o ), J[t] = !0; } else if (t !== o) return console.error( "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", t, o ), J[t] = !0; switch (t) { case "dangerouslySetInnerHTML": case "children": case "style": case "suppressContentEditableWarning": case "suppressHydrationWarning": case "defaultValue": case "defaultChecked": case "innerHTML": case "ref": return !0; case "innerText": case "textContent": return !0; } switch (typeof n) { case "boolean": switch (t) { case "autoFocus": case "checked": case "multiple": case "muted": case "selected": case "contentEditable": case "spellCheck": case "draggable": case "value": case "autoReverse": case "externalResourcesRequired": case "focusable": case "preserveAlpha": case "allowFullScreen": case "async": case "autoPlay": case "controls": case "default": case "defer": case "disabled": case "disablePictureInPicture": case "disableRemotePlayback": case "formNoValidate": case "hidden": case "loop": case "noModule": case "noValidate": case "open": case "playsInline": case "readOnly": case "required": case "reversed": case "scoped": case "seamless": case "itemScope": case "capture": case "download": case "inert": return !0; default: return o = t.toLowerCase().slice(0, 5), o === "data-" || o === "aria-" ? !0 : (n ? console.error( 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', n, t, t, n, t ) : console.error( 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', n, t, t, n, t, t, t ), J[t] = !0); } case "function": case "symbol": return J[t] = !0, !1; case "string": if (n === "false" || n === "true") { switch (t) { case "checked": case "selected": case "multiple": case "muted": case "allowFullScreen": case "async": case "autoPlay": case "controls": case "default": case "defer": case "disabled": case "disablePictureInPicture": case "disableRemotePlayback": case "formNoValidate": case "hidden": case "loop": case "noModule": case "noValidate": case "open": case "playsInline": case "readOnly": case "required": case "reversed": case "scoped": case "seamless": case "itemScope": case "inert": break; default: return !0; } console.error( "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", n, t, n === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', t, n ), J[t] = !0; } } return !0; } function Vl(e, t, n) { var r = [], o; for (o in t) Zl(e, o, t[o], n) || r.push(o); t = r.map(function(i) { return "`" + i + "`"; }).join(", "), r.length === 1 ? console.error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ", t, e ) : 1 < r.length && console.error( "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ", t, e ); } function Ql(e) { return e.replace(Nc, function(t, n) { return n.toUpperCase(); }); } function k(e) { if (typeof e == "boolean" || typeof e == "number" || typeof e == "bigint") return "" + e; ut(e), e = "" + e; var t = _c.exec(e); if (t) { var n = "", r, o = 0; for (r = t.index; r < e.length; r++) { switch (e.charCodeAt(r)) { case 34: t = "&quot;"; break; case 38: t = "&amp;"; break; case 39: t = "&#x27;"; break; case 60: t = "&lt;"; break; case 62: t = "&gt;"; break; default: continue; } o !== r && (n += e.slice(o, r)), o = r + 1, n += t; } e = o !== r ? n + e.slice(o, r) : n; } return e; } function an(e) { return Xc.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e; } function Kr(e) { return ut(e), ("" + e).replace(Kc, _l); } function ni(e, t, n, r, o, i) { var a = t === void 0 ? Vc : d( '<script nonce="' + k(t) + '">' ), l = e.idPrefix; n = []; var s = e.bootstrapScriptContent, c = e.bootstrapScripts, g = e.bootstrapModules; if (s !== void 0 && n.push( a, y( Kr(s) ), Ta ), s = [], r !== void 0 && (s.push(qc), s.push( y( Kr(JSON.stringify(r)) ) ), s.push(jc)), o && typeof i == "number" && 0 >= i && console.error( "React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.", i === 0 ? "zero" : i ), r = o ? { preconnects: "", fontPreloads: "", highImagePreloads: "", remainingCapacity: 2 + (typeof i == "number" ? i : 2e3) } : null, o = { placeholderPrefix: d(l + "P:"), segmentPrefix: d(l + "S:"), boundaryPrefix: d(l + "B:"), startInlineScript: a, preamble: ln(), externalRuntimeScript: null, bootstrapChunks: n, importMapChunks: s, onHeaders: o, headers: r, resets: { font: {}, dns: {}, connect: { default: {}, anonymous: {}, credentials: {} }, image: {}, style: {} }, charsetChunks: [], viewportChunks: [], hoistableChunks: [], preconnects: /* @__PURE__ */ new Set(), fontPreloads: /* @__PURE__ */ new Set(), highImagePreloads: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Map(), bootstrapScripts: /* @__PURE__ */ new Set(), scripts: /* @__PURE__ */ new Set(), bulkPreloads: /* @__PURE__ */ new Set(), preloads: { images: /* @__PURE__ */ new Map(), stylesheets: /* @__PURE__ */ new Map(), scripts: /* @__PURE__ */ new Map(), moduleScripts: /* @__PURE__ */ new Map() }, nonce: t, hoistableState: null, stylesToHoist: !1 }, c !== void 0) for (r = 0; r < c.length; r++) { i = c[r], s = l = void 0; var h = { rel: "preload", as: "script", fetchPriority: "low", nonce: t }; typeof i == "string" ? h.href = a = i : (h.href = a = i.src, h.integrity = s = typeof i.integrity == "string" ? i.integrity : void 0, h.crossOrigin = l = typeof i == "string" || i.crossOrigin == null ? void 0 : i.crossOrigin === "use-credentials" ? "use-credentials" : ""), Ti( e, o, a, h ), n.push( Qc, y(k(a)) ), t && n.push( Ra, y(k(t)) ), typeof s == "string" && n.push( xa, y(k(s)) ), typeof l == "string" && n.push( Ea, y(k(l)) ), n.push(Ca); } if (g !== void 0) for (c = 0; c < g.length; c++) r = g[c], l = a = void 0, s = { rel: "modulepreload", fetchPriority: "low", nonce: t }, typeof r == "string" ? s.href = i = r : (s.href = i = r.src, s.integrity = l = typeof r.integrity == "string" ? r.integrity : void 0, s.crossOrigin = a = typeof r == "string" || r.crossOrigin == null ? void 0 : r.crossOrigin === "use-credentials" ? "use-credentials" : ""), Ti( e, o, i, s ), n.push( Jc, y(k(i)) ), t && n.push( Ra, y(k(t)) ), typeof l == "string" && n.push( xa, y(k(l)) ), typeof a == "string" && n.push( Ea, y(k(a)) ), n.push(Ca); return o; } function ri(e, t, n, r, o) { return { idPrefix: e === void 0 ? "" : e, nextFormID: 0, streamingFormat: 0, bootstrapScriptContent: n, bootstrapScripts: r, bootstrapModules: o, instructions: yt, hasBody: !1, hasHtml: !1, unknownResources: {}, dnsResources: {}, connectResources: { default: {}, anonymous: {}, credentials: {} }, imageResources: {}, styleResources: {}, scriptResources: {}, moduleUnknownResources: {}, moduleScriptResources: {} }; } function ln() { return { htmlChunks: null, headChunks: null, bodyChunks: null, contribution: Sa }; } function $(e, t, n) { return { insertionMode: e, selectedValue: t, tagScope: n }; } function oi(e) { return $( e === "http://www.w3.org/2000/svg" ? Se : e === "http://www.w3.org/1998/Math/MathML" ? xn : Ut, null, 0 ); } function ii(e, t, n) { switch (t) { case "noscript": return $( le, null, e.tagScope | 1 ); case "select": return $( le, n.value != null ? n.value : n.defaultValue, e.tagScope ); case "svg": return $(Se, null, e.tagScope); case "picture": return $( le, null, e.tagScope | 2 ); case "math": return $(xn, null, e.tagScope); case "foreignObject": return $(le, null, e.tagScope); case "table": return $( br, null, e.tagScope ); case "thead": case "tbody": case "tfoot": return $( Eo, null, e.tagScope ); case "colgroup": return $( Po, null, e.tagScope ); case "tr": return $( Co, null, e.tagScope ); case "head": if (e.insertionMode < le) return $( yr, null, e.tagScope ); break; case "html": if (e.insertionMode === Ut) return $( Rn, null, e.tagScope ); } return e.insertionMode >= br || e.insertionMode < le ? $(le, null, e.tagScope) : e; } function ai(e, t, n, r) { return t === "" ? r : (r && e.push(Ye), e.push(y(k(t))), !0); } function li(e, t) { if (typeof t != "object") 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." ); var n = !0, r; for (r in t) if (P.call(t, r)) { var o = t[r]; if (o != null && typeof o != "boolean" && o !== "") { if (r.indexOf("--") === 0) { var i = y(k(r)); ti(o, r), o = y( k(("" + o).trim()) ); } else { i = r; var a = o; if (-1 < i.indexOf("-")) { var l = i; Bt.hasOwnProperty(l) && Bt[l] || (Bt[l] = !0, console.error( "Unsupported style property %s. Did you mean %s?", l, Ql(l.replace(Hc, "ms-")) )); } else if (Uc.test(i)) l = i, Bt.hasOwnProperty(l) && Bt[l] || (Bt[l] = !0, console.error( "Unsupported vendor-prefixed style property %s. Did you mean %s?", l, l.charAt(0).toUpperCase() + l.slice(1) )); else if (ya.test(a)) { l = i; var s = a; Ro.hasOwnProperty(s) && Ro[s] || (Ro[s] = !0, console.error( `Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`, l, s.replace( ya, "" ) )); } typeof a == "number" && (isNaN(a) ? ba || (ba = !0, console.error( "`NaN` is an invalid value for the `%s` css style property.", i )) : isFinite(a) || va || (va = !0, console.error( "`Infinity` is an invalid value for the `%s` css style property.", i ))), i = r, a = ma.get(i), a !== void 0 || (a = d( k( i.replace(Yc, "-$1").toLowerCase().replace(Gc, "-ms-") ) ), ma.set(i, a)), i = a, typeof o == "number" ? o = o === 0 || Oc.has(r) ? y("" + o) : y(o + "px") : (ti(o, r), o = y( k(("" + o).trim()) )); } n ? (n = !1, e.push( $c, i, Fa, o )) : e.push(es, i, Fa, o); } } n || e.push(ce); } function qr(e, t, n) { n && typeof n != "function" && typeof n != "symbol" && e.push( K, y(t), So ); } function Y(e, t, n) { typeof n != "function" && typeof n != "symbol" && typeof n != "boolean" && e.push( K, y(t), ve, y(k(n)), ce ); } function jr(e, t) { this.push(Oa), ci(e), Y(this, "name", t), Y(this, "value", e), this.push(En); } function ci(e) { if (typeof e != "string") throw Error( "File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration." ); } function si(e, t) { if (typeof t.$$FORM_ACTION == "function") { var n = e.nextFormID++; e = e.idPrefix + n; try { var r = t.$$FORM_ACTION(e); if (r) { var o = r.data; o != null && o.forEach(ci); } return r; } catch (i) { if (typeof i == "object" && i !== null && typeof i.then == "function") throw i; console.error( `Failed to serialize an action for progressive enhancement: %s`, i ); } } return null; } function ui(e, t, n, r, o, i, a, l) { var s = null; if (typeof r == "function") { l === null || Ua || (Ua = !0, console.error( 'Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.' )), o === null && i === null || wr || (wr = !0, console.error( "Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden." )), a === null || pr || (pr = !0, console.error( "Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window." )); var c = si(t, r); c !== null ? (l = c.name, r = c.action || "", o = c.encType, i = c.method, a = c.target, s = c.data) : (e.push( K, y("formAction"), ve, Aa, ce ), a = i = o = r = l = null, fi(t, n)); } return l != null && C(e, "name", l), r != null && C(e, "formAction", r), o != null && C(e, "formEncType", o), i != null && C(e, "formMethod", i), a != null && C(e, "formTarget", a), s; } function C(e, t, n) { switch (t) { case "className": Y(e, "class", n); break; case "tabIndex": Y(e, "tabindex", n); break; case "dir": case "role": case "viewBox": case "width": case "height": Y(e, t, n); break; case "style": li(e, n); break; case "src": case "href": if (n === "") { console.error( t === "src" ? 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.' : 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', t, t ); break; } case "action": case "formAction": if (n == null || typeof n == "function" || typeof n == "symbol" || typeof n == "boolean") break; j(n, t), n = an("" + n), e.push( K, y(t), ve, y(k(n)), ce ); break; case "defaultValue": case "defaultChecked": case "innerHTML": case "suppressContentEditableWarning": case "suppressHydrationWarning": case "ref": break; case "autoFocus": case "multiple": case "muted": qr(e, t.toLowerCase(), n); break; case "xlinkHref": if (typeof n == "function" || typeof n == "symbol" || typeof n == "boolean") break; j(n, t), n = an("" + n), e.push( K, y("xlink:href"), ve, y(k(n)), ce ); break; case "contentEditable": case "spellCheck": case "draggable": case "value": case "autoReverse": case "externalResourcesRequired": case "focusable": case "preserveAlpha": typeof n != "function" && typeof n != "symbol" && e.push( K, y(t), ve, y(k(n)), ce ); break; case "inert": n !== "" || Pa[t] || (Pa[t] = !0, console.error( "Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", t )); case "allowFullScreen": case "async": case "autoPlay": case "controls": case "default": case "defer": case "disabled": case "disablePictureInPicture": case "disableRemotePlayback": case "formNoValidate": case "hidden": case "loop": case "noModule": case "noValidate": case "open": case "playsInline": case "readOnly": case "required": case "reversed": case "scoped": case "seamless": case "itemScope": n && typeof n != "function" && typeof n != "symbol" && e.push( K, y(t), So ); break; case "capture": case "download": n === !0 ? e.push( K, y(t), So ) : n !== !1 && typeof n != "function" && typeof n != "symbol" && e.push( K, y(t), ve, y(k(n)), ce ); break; case "cols": case "rows": case "size": case "span": typeof n != "function" && typeof n != "symbol" && !isNaN(n) && 1 <= n && e.push( K, y(t), ve, y(k(n)), ce ); break; case "rowSpan": case "start": typeof n == "function" || typeof n == "symbol" || isNaN(n) || e.push( K, y(t), ve, y(k(n)), ce ); break; case "xlinkActuate": Y(e, "xlink:actuate", n); break; case "xlinkArcrole": Y(e, "xlink:arcrole", n); break; case "xlinkRole": Y(e, "xlink:role", n); break; case "xlinkShow": Y(e, "xlink:show", n); break; case "xlinkTitle": Y(e, "xlink:title", n); break; case "xlinkType": Y(e, "xlink:type", n); break; case "xmlBase": Y(e, "xml:base", n); break; case "xmlLang": Y(e, "xml:lang", n); break; case "xmlSpace": Y(e, "xml:space", n); break; default: if ((!(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (t = Mc.get(t) || t, Qr(t))) { switch (typeof n) { case "function": case "symbol": return; case "boolean": var r = t.toLowerCase().slice(0, 5); if (r !== "data-" && r !== "aria-") return; } e.push( K, y(t), ve, y(k(n)), ce ); } } } function te(e, t, n) { if (t != null) { if (n != null) throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." ); if (typeof t != "object" || !("__html" in t)) throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information." ); t = t.__html, t != null && (ut(t), e.push(y("" + t))); } } function di(e, t) { var n = e[t]; n != null && (n = gt(n), e.multiple && !n ? console.error( "The `%s` prop supplied to <select> must be an array if `multiple` is true.", t ) : !e.multiple && n && console.error( "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.", t )); } function Jl(e) { var t = ""; return po.Children.forEach(e, function(n) { n != null && (t += n, Wa || typeof n == "string" || typeof n == "number" || typeof n == "bigint" || (Wa = !0, console.error( "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>." ))); }), t; } function fi(e, t) { (e.instructions & 16) === yt && (e.instructions |= 16, t.bootstrapChunks.unshift( t.startInlineScript, ts, Ta )); } function Q(e, t) { e.push(L("link")); for (var n in t) if (P.call(t, n)) { var r = t[n]; if (r != null) switch (n) { case "children": case "dangerouslySetInnerHTML": throw Error( "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); default: C(e, n, r); } } return e.push(En), null; } function hi(e) { return ut(e), ("" + e).replace(os, Nl); } function Ft(e, t, n) { e.push(L(n)); for (var r in t) if (P.call(t, r)) { var o = t[r]; if (o != null) switch (r) { case "children": case "dangerouslySetInnerHTML": throw Error( n + " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); default: C(e, r, o); } } return e.push(En), null; } function gi(e, t) { e.push(L("title")); var n = null, r = null, o; for (o in t) if (P.call(t, o)) { var i = t[o]; if (i != null) switch (o) { case "children": n = i; break; case "dangerouslySetInnerHTML": r = i; break; default: C(e, o, i); } } return e.push(G), t = Array.isArray(n) ? 2 > n.length ? n[0] : null : n, typeof t != "function" && typeof t != "symbol" && t !== null && t !== void 0 && e.push(y(k("" + t))), te(e, r, n), e.push(dt("title")), null; } function jn(e, t) { e.push(L("script")); var n = null, r = null, o; for (o in t) if (P.call(t, o)) { var i = t[o]; if (i != null) switch (o) { case "children": n = i; break; case "dangerouslySetInnerHTML": r = i; break; default: C(e, o, i); } } return e.push(G), n != null && typeof n != "string" && (t = typeof n == "number" ? "a number for children" : Array.isArray(n) ? "an array for children" : "something unexpected for children", console.error( "A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.", t )), te(e, r, n), typeof n == "string" && e.push(y(Kr(n))), e.push(dt("script")), null; } function $r(e, t, n) { e.push(L(n)); var r = n = null, o; for (o in t) if (P.call(t, o)) { var i = t[o]; if (i != null) switch (o) { case "children": n = i; break; case "dangerouslySetInnerHTML": r = i; break; default: C(e, o, i); } } return e.push(G), te(e, r, n), n; } function $n(e, t, n) { e.push(L(n)); var r = n = null, o; for (o in t) if (P.call(t, o)) { var i = t[o]; if (i != null) switch (o) { case "children": n = i; break; case "dangerouslySetInnerHTML": r = i; break; default: C(e, o, i); } } return e.push(G), te(e, r, n), typeof n == "string" ? (e.push(y(k(n))), null) : n; } function L(e) { var t = Ha.get(e); if (t === void 0) { if (!is.test(e)) throw Error("Invalid tag: " + e); t = d("<" + e), Ha.set(e, t); } return t; } function Kl(e, t, n, r, o, i, a, l, s, c) { Xl(t, n), t !== "input" && t !== "textarea" && t !== "select" || n == null || n.value !== null || fa || (fa = !0, t === "select" && n.multiple ? console.error( "`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", t ) : console.error( "`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", t )); e: if (t.indexOf("-") === -1) var g = !1; else switch (t) { 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": g = !1; break e; default: g = !0; } switch (g || typeof n.is == "string" || Vl(t, n, null), !n.suppressContentEditableWarning && n.contentEditable && n.children != null && console.error( "A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional." ), l.insertionMode !== Se && l.insertionMode !== xn && t.indexOf("-") === -1 && t.toLowerCase() !== t && console.error( "<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", t ), t) { case "div": case "span": case "svg": case "path": break; case "a": e.push(L("a")); var h = null, b = null, v; for (v in n) if (P.call(n, v)) { var f = n[v]; if (f != null) switch (v) { case "children": h = f; break; case "dangerouslySetInnerHTML": b = f; break; case "href": f === "" ? Y(e, "href", "") : C(e, v, f); break; default: C(e, v, f); } } if (e.push(G), te(e, b, h), typeof h == "string") { e.push(y(k(h))); var T = null; } else T = h; return T; case "g": case "p": case "li": break; case "select": Jr("select", n), di(n, "value"), di(n, "defaultValue"), n.value === void 0 || n.defaultValue === void 0 || Da || (console.error( "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components" ), Da = !0), e.push(L("select")); var S = null, w = null, p; for (p in n) if (P.call(n, p)) { var B = n[p]; if (B != null) switch (p) { case "children": S = B; break; case "dangerouslySetInnerHTML": w = B; break; case "defaultValue": case "value": break; default: C( e, p, B ); } } return e.push(G), te(e, w, S), S; case "option": var F = l.selectedValue; e.push(L("option")); var R = null, N = null, xe = null, ue = null, U; for (U in n) if (P.call(n, U)) { var D = n[U]; if (D != null) switch (U) { case "children": R = D; break; case "selected": xe = D, Ba || (console.error( "Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>." ), Ba = !0); break; case "dangerouslySetInnerHTML": ue = D; break; case "value": N = D; default: C( e, U, D ); } } if (F != null) { if (N !== null) { j(N, "value"); var ee = "" + N; } else ue === null || za || (za = !0, console.error( "Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected." )), ee = Jl(R); if (gt(F)) { for (var X = 0; X < F.length; X++) if (j(F[X], "value"), "" + F[X] === ee) { e.push(mo); break; } } else j(F, "select.value"), "" + F === ee && e.push(mo); } else xe && e.push(mo); return e.push(G), te(e, ue, R), R; case "textarea": Jr("textarea", n), n.value === void 0 || n.defaultValue === void 0 || La || (console.error( "Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components" ), La = !0), e.push(L("textarea")); var x = null, W = null, A = null, pe; for (pe in n) if (P.call(n, pe)) { var de = n[pe]; if (de != null) switch (pe) { case "children": A = de; break; case "value": x = de; break; case "defaultValue": W = de; break; case "dangerouslySetInnerHTML": throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." ); default: C( e, pe, de ); } } if (x === null && W !== null && (x = W), e.push(G), A != null) { if (console.error( "Use the `defaultValue` or `value` props instead of setting children on <textarea>." ), x != null) throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." ); if (gt(A)) { if (1 < A.length) throw Error("<textarea> can only have at most one child."); ut(A[0]), x = "" + A[0]; } ut(A), x = "" + A; } return typeof x == "string" && x[0] === ` ` && e.push(Fo), x !== null && (j(x, "value"), e.push( y(k("" + x)) )), null; case "input": Jr("input", n), e.push(L("input")); var fe = null, Ae = null, he = null, On = null, _t = null, $e = null, et = null, Yt = null, Gt = null, Oe; for (Oe in n) if (P.call(n, Oe)) { var ge = n[Oe]; if (ge != null) switch (Oe) { case "children": case "dangerouslySetInnerHTML": throw Error( "input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." );