UNPKG

mongodb-chatbot-ui

Version:

UI React components for the MongoDB Chatbot Framework

1,430 lines 58.2 kB
import oe from "react"; var Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Ce(l) { return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l; } function qe(l) { if (l.__esModule) return l; var s = l.default; if (typeof s == "function") { var p = function w() { return this instanceof w ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments); }; p.prototype = s.prototype; } else p = {}; return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(l).forEach(function(w) { var x = Object.getOwnPropertyDescriptor(l, w); Object.defineProperty(p, w, x.get ? x : { enumerable: !0, get: function() { return l[w]; } }); }), p; } var Be = {}, Pr = {}; Pr.byteLength = Ue; Pr.toByteArray = ke; Pr.fromByteArray = Le; var H = [], $ = [], Ie = typeof Uint8Array < "u" ? Uint8Array : Array, Gr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; for (var sr = 0, Se = Gr.length; sr < Se; ++sr) H[sr] = Gr[sr], $[Gr.charCodeAt(sr)] = sr; $["-".charCodeAt(0)] = 62; $["_".charCodeAt(0)] = 63; function ue(l) { var s = l.length; if (s % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4"); var p = l.indexOf("="); p === -1 && (p = s); var w = p === s ? 0 : 4 - p % 4; return [p, w]; } function Ue(l) { var s = ue(l), p = s[0], w = s[1]; return (p + w) * 3 / 4 - w; } function Oe(l, s, p) { return (s + p) * 3 / 4 - p; } function ke(l) { var s, p = ue(l), w = p[0], x = p[1], m = new Ie(Oe(l, w, x)), y = 0, o = x > 0 ? w - 4 : w, d; for (d = 0; d < o; d += 4) s = $[l.charCodeAt(d)] << 18 | $[l.charCodeAt(d + 1)] << 12 | $[l.charCodeAt(d + 2)] << 6 | $[l.charCodeAt(d + 3)], m[y++] = s >> 16 & 255, m[y++] = s >> 8 & 255, m[y++] = s & 255; return x === 2 && (s = $[l.charCodeAt(d)] << 2 | $[l.charCodeAt(d + 1)] >> 4, m[y++] = s & 255), x === 1 && (s = $[l.charCodeAt(d)] << 10 | $[l.charCodeAt(d + 1)] << 4 | $[l.charCodeAt(d + 2)] >> 2, m[y++] = s >> 8 & 255, m[y++] = s & 255), m; } function De(l) { return H[l >> 18 & 63] + H[l >> 12 & 63] + H[l >> 6 & 63] + H[l & 63]; } function Pe(l, s, p) { for (var w, x = [], m = s; m < p; m += 3) w = (l[m] << 16 & 16711680) + (l[m + 1] << 8 & 65280) + (l[m + 2] & 255), x.push(De(w)); return x.join(""); } function Le(l) { for (var s, p = l.length, w = p % 3, x = [], m = 16383, y = 0, o = p - w; y < o; y += m) x.push(Pe(l, y, y + m > o ? o : y + m)); return w === 1 ? (s = l[p - 1], x.push( H[s >> 2] + H[s << 4 & 63] + "==" )) : w === 2 && (s = (l[p - 2] << 8) + l[p - 1], x.push( H[s >> 10] + H[s >> 4 & 63] + H[s << 2 & 63] + "=" )), x.join(""); } var Xr = {}; /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ Xr.read = function(l, s, p, w, x) { var m, y, o = x * 8 - w - 1, d = (1 << o) - 1, P = d >> 1, T = -7, A = p ? x - 1 : 0, M = p ? -1 : 1, k = l[s + A]; for (A += M, m = k & (1 << -T) - 1, k >>= -T, T += o; T > 0; m = m * 256 + l[s + A], A += M, T -= 8) ; for (y = m & (1 << -T) - 1, m >>= -T, T += w; T > 0; y = y * 256 + l[s + A], A += M, T -= 8) ; if (m === 0) m = 1 - P; else { if (m === d) return y ? NaN : (k ? -1 : 1) * (1 / 0); y = y + Math.pow(2, w), m = m - P; } return (k ? -1 : 1) * y * Math.pow(2, m - w); }; Xr.write = function(l, s, p, w, x, m) { var y, o, d, P = m * 8 - x - 1, T = (1 << P) - 1, A = T >> 1, M = x === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = w ? 0 : m - 1, rr = w ? 1 : -1, nr = s < 0 || s === 0 && 1 / s < 0 ? 1 : 0; for (s = Math.abs(s), isNaN(s) || s === 1 / 0 ? (o = isNaN(s) ? 1 : 0, y = T) : (y = Math.floor(Math.log(s) / Math.LN2), s * (d = Math.pow(2, -y)) < 1 && (y--, d *= 2), y + A >= 1 ? s += M / d : s += M * Math.pow(2, 1 - A), s * d >= 2 && (y++, d /= 2), y + A >= T ? (o = 0, y = T) : y + A >= 1 ? (o = (s * d - 1) * Math.pow(2, x), y = y + A) : (o = s * Math.pow(2, A - 1) * Math.pow(2, x), y = 0)); x >= 8; l[p + k] = o & 255, k += rr, o /= 256, x -= 8) ; for (y = y << x | o, P += x; P > 0; l[p + k] = y & 255, k += rr, y /= 256, P -= 8) ; l[p + k - rr] |= nr * 128; }; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ (function(l) { var s = Pr, p = Xr, w = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; l.Buffer = o, l.SlowBuffer = L, l.INSPECT_MAX_BYTES = 50; var x = 2147483647; l.kMaxLength = x, o.TYPED_ARRAY_SUPPORT = m(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error( "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support." ); function m() { try { var t = new Uint8Array(1), r = { foo: function() { return 42; } }; return Object.setPrototypeOf(r, Uint8Array.prototype), Object.setPrototypeOf(t, r), t.foo() === 42; } catch { return !1; } } Object.defineProperty(o.prototype, "parent", { enumerable: !0, get: function() { if (o.isBuffer(this)) return this.buffer; } }), Object.defineProperty(o.prototype, "offset", { enumerable: !0, get: function() { if (o.isBuffer(this)) return this.byteOffset; } }); function y(t) { if (t > x) throw new RangeError('The value "' + t + '" is invalid for option "size"'); var r = new Uint8Array(t); return Object.setPrototypeOf(r, o.prototype), r; } function o(t, r, e) { if (typeof t == "number") { if (typeof r == "string") throw new TypeError( 'The "string" argument must be of type string. Received type number' ); return A(t); } return d(t, r, e); } o.poolSize = 8192; function d(t, r, e) { if (typeof t == "string") return M(t, r); if (ArrayBuffer.isView(t)) return rr(t); if (t == null) throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t ); if (W(t, ArrayBuffer) || t && W(t.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (W(t, SharedArrayBuffer) || t && W(t.buffer, SharedArrayBuffer))) return nr(t, r, e); if (typeof t == "number") throw new TypeError( 'The "value" argument must not be of type number. Received type number' ); var n = t.valueOf && t.valueOf(); if (n != null && n !== t) return o.from(n, r, e); var a = Lr(t); if (a) return a; if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof t[Symbol.toPrimitive] == "function") return o.from( t[Symbol.toPrimitive]("string"), r, e ); throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t ); } o.from = function(t, r, e) { return d(t, r, e); }, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array); function P(t) { if (typeof t != "number") throw new TypeError('"size" argument must be of type number'); if (t < 0) throw new RangeError('The value "' + t + '" is invalid for option "size"'); } function T(t, r, e) { return P(t), t <= 0 ? y(t) : r !== void 0 ? typeof e == "string" ? y(t).fill(r, e) : y(t).fill(r) : y(t); } o.alloc = function(t, r, e) { return T(t, r, e); }; function A(t) { return P(t), y(t < 0 ? 0 : q(t) | 0); } o.allocUnsafe = function(t) { return A(t); }, o.allocUnsafeSlow = function(t) { return A(t); }; function M(t, r) { if ((typeof r != "string" || r === "") && (r = "utf8"), !o.isEncoding(r)) throw new TypeError("Unknown encoding: " + r); var e = Fr(t, r) | 0, n = y(e), a = n.write(t, r); return a !== e && (n = n.slice(0, a)), n; } function k(t) { for (var r = t.length < 0 ? 0 : q(t.length) | 0, e = y(r), n = 0; n < r; n += 1) e[n] = t[n] & 255; return e; } function rr(t) { if (W(t, Uint8Array)) { var r = new Uint8Array(t); return nr(r.buffer, r.byteOffset, r.byteLength); } return k(t); } function nr(t, r, e) { if (r < 0 || t.byteLength < r) throw new RangeError('"offset" is outside of buffer bounds'); if (t.byteLength < r + (e || 0)) throw new RangeError('"length" is outside of buffer bounds'); var n; return r === void 0 && e === void 0 ? n = new Uint8Array(t) : e === void 0 ? n = new Uint8Array(t, r) : n = new Uint8Array(t, r, e), Object.setPrototypeOf(n, o.prototype), n; } function Lr(t) { if (o.isBuffer(t)) { var r = q(t.length) | 0, e = y(r); return e.length === 0 || t.copy(e, 0, 0, r), e; } if (t.length !== void 0) return typeof t.length != "number" || dr(t.length) ? y(0) : k(t); if (t.type === "Buffer" && Array.isArray(t.data)) return k(t.data); } function q(t) { if (t >= x) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + x.toString(16) + " bytes"); return t | 0; } function L(t) { return +t != t && (t = 0), o.alloc(+t); } o.isBuffer = function(r) { return r != null && r._isBuffer === !0 && r !== o.prototype; }, o.compare = function(r, e) { if (W(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), W(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), !o.isBuffer(r) || !o.isBuffer(e)) throw new TypeError( 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' ); if (r === e) return 0; for (var n = r.length, a = e.length, u = 0, c = Math.min(n, a); u < c; ++u) if (r[u] !== e[u]) { n = r[u], a = e[u]; break; } return n < a ? -1 : a < n ? 1 : 0; }, o.isEncoding = function(r) { switch (String(r).toLowerCase()) { case "hex": case "utf8": case "utf-8": case "ascii": case "latin1": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return !0; default: return !1; } }, o.concat = function(r, e) { if (!Array.isArray(r)) throw new TypeError('"list" argument must be an Array of Buffers'); if (r.length === 0) return o.alloc(0); var n; if (e === void 0) for (e = 0, n = 0; n < r.length; ++n) e += r[n].length; var a = o.allocUnsafe(e), u = 0; for (n = 0; n < r.length; ++n) { var c = r[n]; if (W(c, Uint8Array)) u + c.length > a.length ? o.from(c).copy(a, u) : Uint8Array.prototype.set.call( a, c, u ); else if (o.isBuffer(c)) c.copy(a, u); else throw new TypeError('"list" argument must be an Array of Buffers'); u += c.length; } return a; }; function Fr(t, r) { if (o.isBuffer(t)) return t.length; if (ArrayBuffer.isView(t) || W(t, ArrayBuffer)) return t.byteLength; if (typeof t != "string") throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof t ); var e = t.length, n = arguments.length > 2 && arguments[2] === !0; if (!n && e === 0) return 0; for (var a = !1; ; ) switch (r) { case "ascii": case "latin1": case "binary": return e; case "utf8": case "utf-8": return tr(t).length; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return e * 2; case "hex": return e >>> 1; case "base64": return kr(t).length; default: if (a) return n ? -1 : tr(t).length; r = ("" + r).toLowerCase(), a = !0; } } o.byteLength = Fr; function jr(t, r, e) { var n = !1; if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((e === void 0 || e > this.length) && (e = this.length), e <= 0) || (e >>>= 0, r >>>= 0, e <= r)) return ""; for (t || (t = "utf8"); ; ) switch (t) { case "hex": return Ir(this, r, e); case "utf8": case "utf-8": return G(this, r, e); case "ascii": return Cr(this, r, e); case "latin1": case "binary": return Br(this, r, e); case "base64": return V(this, r, e); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return Sr(this, r, e); default: if (n) throw new TypeError("Unknown encoding: " + t); t = (t + "").toLowerCase(), n = !0; } } o.prototype._isBuffer = !0; function X(t, r, e) { var n = t[r]; t[r] = t[e], t[e] = n; } o.prototype.swap16 = function() { var r = this.length; if (r % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); for (var e = 0; e < r; e += 2) X(this, e, e + 1); return this; }, o.prototype.swap32 = function() { var r = this.length; if (r % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); for (var e = 0; e < r; e += 4) X(this, e, e + 3), X(this, e + 1, e + 2); return this; }, o.prototype.swap64 = function() { var r = this.length; if (r % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); for (var e = 0; e < r; e += 8) X(this, e, e + 7), X(this, e + 1, e + 6), X(this, e + 2, e + 5), X(this, e + 3, e + 4); return this; }, o.prototype.toString = function() { var r = this.length; return r === 0 ? "" : arguments.length === 0 ? G(this, 0, r) : jr.apply(this, arguments); }, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(r) { if (!o.isBuffer(r)) throw new TypeError("Argument must be a Buffer"); return this === r ? !0 : o.compare(this, r) === 0; }, o.prototype.inspect = function() { var r = "", e = l.INSPECT_MAX_BYTES; return r = this.toString("hex", 0, e).replace(/(.{2})/g, "$1 ").trim(), this.length > e && (r += " ... "), "<Buffer " + r + ">"; }, w && (o.prototype[w] = o.prototype.inspect), o.prototype.compare = function(r, e, n, a, u) { if (W(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), !o.isBuffer(r)) throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r ); if (e === void 0 && (e = 0), n === void 0 && (n = r ? r.length : 0), a === void 0 && (a = 0), u === void 0 && (u = this.length), e < 0 || n > r.length || a < 0 || u > this.length) throw new RangeError("out of range index"); if (a >= u && e >= n) return 0; if (a >= u) return -1; if (e >= n) return 1; if (e >>>= 0, n >>>= 0, a >>>= 0, u >>>= 0, this === r) return 0; for (var c = u - a, g = n - e, b = Math.min(c, g), C = this.slice(a, u), D = r.slice(e, n), R = 0; R < b; ++R) if (C[R] !== D[R]) { c = C[R], g = D[R]; break; } return c < g ? -1 : g < c ? 1 : 0; }; function Tr(t, r, e, n, a) { if (t.length === 0) return -1; if (typeof e == "string" ? (n = e, e = 0) : e > 2147483647 ? e = 2147483647 : e < -2147483648 && (e = -2147483648), e = +e, dr(e) && (e = a ? 0 : t.length - 1), e < 0 && (e = t.length + e), e >= t.length) { if (a) return -1; e = t.length - 1; } else if (e < 0) if (a) e = 0; else return -1; if (typeof r == "string" && (r = o.from(r, n)), o.isBuffer(r)) return r.length === 0 ? -1 : _r(t, r, e, n, a); if (typeof r == "number") return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? a ? Uint8Array.prototype.indexOf.call(t, r, e) : Uint8Array.prototype.lastIndexOf.call(t, r, e) : _r(t, [r], e, n, a); throw new TypeError("val must be string, number or Buffer"); } function _r(t, r, e, n, a) { var u = 1, c = t.length, g = r.length; if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) { if (t.length < 2 || r.length < 2) return -1; u = 2, c /= 2, g /= 2, e /= 2; } function b(mr, xr) { return u === 1 ? mr[xr] : mr.readUInt16BE(xr * u); } var C; if (a) { var D = -1; for (C = e; C < c; C++) if (b(t, C) === b(r, D === -1 ? 0 : C - D)) { if (D === -1 && (D = C), C - D + 1 === g) return D * u; } else D !== -1 && (C -= C - D), D = -1; } else for (e + g > c && (e = c - g), C = e; C >= 0; C--) { for (var R = !0, fr = 0; fr < g; fr++) if (b(t, C + fr) !== b(r, fr)) { R = !1; break; } if (R) return C; } return -1; } o.prototype.includes = function(r, e, n) { return this.indexOf(r, e, n) !== -1; }, o.prototype.indexOf = function(r, e, n) { return Tr(this, r, e, n, !0); }, o.prototype.lastIndexOf = function(r, e, n) { return Tr(this, r, e, n, !1); }; function Mr(t, r, e, n) { e = Number(e) || 0; var a = t.length - e; n ? (n = Number(n), n > a && (n = a)) : n = a; var u = r.length; n > u / 2 && (n = u / 2); for (var c = 0; c < n; ++c) { var g = parseInt(r.substr(c * 2, 2), 16); if (dr(g)) return c; t[e + c] = g; } return c; } function br(t, r, e, n) { return ir(tr(r, t.length - e), t, e, n); } function Nr(t, r, e, n) { return ir(wr(r), t, e, n); } function Wr(t, r, e, n) { return ir(kr(r), t, e, n); } function Rr(t, r, e, n) { return ir(or(r, t.length - e), t, e, n); } o.prototype.write = function(r, e, n, a) { if (e === void 0) a = "utf8", n = this.length, e = 0; else if (n === void 0 && typeof e == "string") a = e, n = this.length, e = 0; else if (isFinite(e)) e = e >>> 0, isFinite(n) ? (n = n >>> 0, a === void 0 && (a = "utf8")) : (a = n, n = void 0); else throw new Error( "Buffer.write(string, encoding, offset[, length]) is no longer supported" ); var u = this.length - e; if ((n === void 0 || n > u) && (n = u), r.length > 0 && (n < 0 || e < 0) || e > this.length) throw new RangeError("Attempt to write outside buffer bounds"); a || (a = "utf8"); for (var c = !1; ; ) switch (a) { case "hex": return Mr(this, r, e, n); case "utf8": case "utf-8": return br(this, r, e, n); case "ascii": case "latin1": case "binary": return Nr(this, r, e, n); case "base64": return Wr(this, r, e, n); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return Rr(this, r, e, n); default: if (c) throw new TypeError("Unknown encoding: " + a); a = ("" + a).toLowerCase(), c = !0; } }, o.prototype.toJSON = function() { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; }; function V(t, r, e) { return r === 0 && e === t.length ? s.fromByteArray(t) : s.fromByteArray(t.slice(r, e)); } function G(t, r, e) { e = Math.min(t.length, e); for (var n = [], a = r; a < e; ) { var u = t[a], c = null, g = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1; if (a + g <= e) { var b, C, D, R; switch (g) { case 1: u < 128 && (c = u); break; case 2: b = t[a + 1], (b & 192) === 128 && (R = (u & 31) << 6 | b & 63, R > 127 && (c = R)); break; case 3: b = t[a + 1], C = t[a + 2], (b & 192) === 128 && (C & 192) === 128 && (R = (u & 15) << 12 | (b & 63) << 6 | C & 63, R > 2047 && (R < 55296 || R > 57343) && (c = R)); break; case 4: b = t[a + 1], C = t[a + 2], D = t[a + 3], (b & 192) === 128 && (C & 192) === 128 && (D & 192) === 128 && (R = (u & 15) << 18 | (b & 63) << 12 | (C & 63) << 6 | D & 63, R > 65535 && R < 1114112 && (c = R)); } } c === null ? (c = 65533, g = 1) : c > 65535 && (c -= 65536, n.push(c >>> 10 & 1023 | 55296), c = 56320 | c & 1023), n.push(c), a += g; } return Ar(n); } var er = 4096; function Ar(t) { var r = t.length; if (r <= er) return String.fromCharCode.apply(String, t); for (var e = "", n = 0; n < r; ) e += String.fromCharCode.apply( String, t.slice(n, n += er) ); return e; } function Cr(t, r, e) { var n = ""; e = Math.min(t.length, e); for (var a = r; a < e; ++a) n += String.fromCharCode(t[a] & 127); return n; } function Br(t, r, e) { var n = ""; e = Math.min(t.length, e); for (var a = r; a < e; ++a) n += String.fromCharCode(t[a]); return n; } function Ir(t, r, e) { var n = t.length; (!r || r < 0) && (r = 0), (!e || e < 0 || e > n) && (e = n); for (var a = "", u = r; u < e; ++u) a += ur[t[u]]; return a; } function Sr(t, r, e) { for (var n = t.slice(r, e), a = "", u = 0; u < n.length - 1; u += 2) a += String.fromCharCode(n[u] + n[u + 1] * 256); return a; } o.prototype.slice = function(r, e) { var n = this.length; r = ~~r, e = e === void 0 ? n : ~~e, r < 0 ? (r += n, r < 0 && (r = 0)) : r > n && (r = n), e < 0 ? (e += n, e < 0 && (e = 0)) : e > n && (e = n), e < r && (e = r); var a = this.subarray(r, e); return Object.setPrototypeOf(a, o.prototype), a; }; function I(t, r, e) { if (t % 1 !== 0 || t < 0) throw new RangeError("offset is not uint"); if (t + r > e) throw new RangeError("Trying to access beyond buffer length"); } o.prototype.readUintLE = o.prototype.readUIntLE = function(r, e, n) { r = r >>> 0, e = e >>> 0, n || I(r, e, this.length); for (var a = this[r], u = 1, c = 0; ++c < e && (u *= 256); ) a += this[r + c] * u; return a; }, o.prototype.readUintBE = o.prototype.readUIntBE = function(r, e, n) { r = r >>> 0, e = e >>> 0, n || I(r, e, this.length); for (var a = this[r + --e], u = 1; e > 0 && (u *= 256); ) a += this[r + --e] * u; return a; }, o.prototype.readUint8 = o.prototype.readUInt8 = function(r, e) { return r = r >>> 0, e || I(r, 1, this.length), this[r]; }, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(r, e) { return r = r >>> 0, e || I(r, 2, this.length), this[r] | this[r + 1] << 8; }, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(r, e) { return r = r >>> 0, e || I(r, 2, this.length), this[r] << 8 | this[r + 1]; }, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(r, e) { return r = r >>> 0, e || I(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216; }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(r, e) { return r = r >>> 0, e || I(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]); }, o.prototype.readIntLE = function(r, e, n) { r = r >>> 0, e = e >>> 0, n || I(r, e, this.length); for (var a = this[r], u = 1, c = 0; ++c < e && (u *= 256); ) a += this[r + c] * u; return u *= 128, a >= u && (a -= Math.pow(2, 8 * e)), a; }, o.prototype.readIntBE = function(r, e, n) { r = r >>> 0, e = e >>> 0, n || I(r, e, this.length); for (var a = e, u = 1, c = this[r + --a]; a > 0 && (u *= 256); ) c += this[r + --a] * u; return u *= 128, c >= u && (c -= Math.pow(2, 8 * e)), c; }, o.prototype.readInt8 = function(r, e) { return r = r >>> 0, e || I(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r]; }, o.prototype.readInt16LE = function(r, e) { r = r >>> 0, e || I(r, 2, this.length); var n = this[r] | this[r + 1] << 8; return n & 32768 ? n | 4294901760 : n; }, o.prototype.readInt16BE = function(r, e) { r = r >>> 0, e || I(r, 2, this.length); var n = this[r + 1] | this[r] << 8; return n & 32768 ? n | 4294901760 : n; }, o.prototype.readInt32LE = function(r, e) { return r = r >>> 0, e || I(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24; }, o.prototype.readInt32BE = function(r, e) { return r = r >>> 0, e || I(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]; }, o.prototype.readFloatLE = function(r, e) { return r = r >>> 0, e || I(r, 4, this.length), p.read(this, r, !0, 23, 4); }, o.prototype.readFloatBE = function(r, e) { return r = r >>> 0, e || I(r, 4, this.length), p.read(this, r, !1, 23, 4); }, o.prototype.readDoubleLE = function(r, e) { return r = r >>> 0, e || I(r, 8, this.length), p.read(this, r, !0, 52, 8); }, o.prototype.readDoubleBE = function(r, e) { return r = r >>> 0, e || I(r, 8, this.length), p.read(this, r, !1, 52, 8); }; function j(t, r, e, n, a, u) { if (!o.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (r > a || r < u) throw new RangeError('"value" argument is out of bounds'); if (e + n > t.length) throw new RangeError("Index out of range"); } o.prototype.writeUintLE = o.prototype.writeUIntLE = function(r, e, n, a) { if (r = +r, e = e >>> 0, n = n >>> 0, !a) { var u = Math.pow(2, 8 * n) - 1; j(this, r, e, n, u, 0); } var c = 1, g = 0; for (this[e] = r & 255; ++g < n && (c *= 256); ) this[e + g] = r / c & 255; return e + n; }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(r, e, n, a) { if (r = +r, e = e >>> 0, n = n >>> 0, !a) { var u = Math.pow(2, 8 * n) - 1; j(this, r, e, n, u, 0); } var c = n - 1, g = 1; for (this[e + c] = r & 255; --c >= 0 && (g *= 256); ) this[e + c] = r / g & 255; return e + n; }, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 1, 255, 0), this[e] = r & 255, e + 1; }, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 2, 65535, 0), this[e] = r & 255, this[e + 1] = r >>> 8, e + 2; }, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 2, 65535, 0), this[e] = r >>> 8, this[e + 1] = r & 255, e + 2; }, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 4, 4294967295, 0), this[e + 3] = r >>> 24, this[e + 2] = r >>> 16, this[e + 1] = r >>> 8, this[e] = r & 255, e + 4; }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 4, 4294967295, 0), this[e] = r >>> 24, this[e + 1] = r >>> 16, this[e + 2] = r >>> 8, this[e + 3] = r & 255, e + 4; }, o.prototype.writeIntLE = function(r, e, n, a) { if (r = +r, e = e >>> 0, !a) { var u = Math.pow(2, 8 * n - 1); j(this, r, e, n, u - 1, -u); } var c = 0, g = 1, b = 0; for (this[e] = r & 255; ++c < n && (g *= 256); ) r < 0 && b === 0 && this[e + c - 1] !== 0 && (b = 1), this[e + c] = (r / g >> 0) - b & 255; return e + n; }, o.prototype.writeIntBE = function(r, e, n, a) { if (r = +r, e = e >>> 0, !a) { var u = Math.pow(2, 8 * n - 1); j(this, r, e, n, u - 1, -u); } var c = n - 1, g = 1, b = 0; for (this[e + c] = r & 255; --c >= 0 && (g *= 256); ) r < 0 && b === 0 && this[e + c + 1] !== 0 && (b = 1), this[e + c] = (r / g >> 0) - b & 255; return e + n; }, o.prototype.writeInt8 = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[e] = r & 255, e + 1; }, o.prototype.writeInt16LE = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 2, 32767, -32768), this[e] = r & 255, this[e + 1] = r >>> 8, e + 2; }, o.prototype.writeInt16BE = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 2, 32767, -32768), this[e] = r >>> 8, this[e + 1] = r & 255, e + 2; }, o.prototype.writeInt32LE = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 4, 2147483647, -2147483648), this[e] = r & 255, this[e + 1] = r >>> 8, this[e + 2] = r >>> 16, this[e + 3] = r >>> 24, e + 4; }, o.prototype.writeInt32BE = function(r, e, n) { return r = +r, e = e >>> 0, n || j(this, r, e, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[e] = r >>> 24, this[e + 1] = r >>> 16, this[e + 2] = r >>> 8, this[e + 3] = r & 255, e + 4; }; function pr(t, r, e, n, a, u) { if (e + n > t.length) throw new RangeError("Index out of range"); if (e < 0) throw new RangeError("Index out of range"); } function Ur(t, r, e, n, a) { return r = +r, e = e >>> 0, a || pr(t, r, e, 4), p.write(t, r, e, n, 23, 4), e + 4; } o.prototype.writeFloatLE = function(r, e, n) { return Ur(this, r, e, !0, n); }, o.prototype.writeFloatBE = function(r, e, n) { return Ur(this, r, e, !1, n); }; function Or(t, r, e, n, a) { return r = +r, e = e >>> 0, a || pr(t, r, e, 8), p.write(t, r, e, n, 52, 8), e + 8; } o.prototype.writeDoubleLE = function(r, e, n) { return Or(this, r, e, !0, n); }, o.prototype.writeDoubleBE = function(r, e, n) { return Or(this, r, e, !1, n); }, o.prototype.copy = function(r, e, n, a) { if (!o.isBuffer(r)) throw new TypeError("argument should be a Buffer"); if (n || (n = 0), !a && a !== 0 && (a = this.length), e >= r.length && (e = r.length), e || (e = 0), a > 0 && a < n && (a = n), a === n || r.length === 0 || this.length === 0) return 0; if (e < 0) throw new RangeError("targetStart out of bounds"); if (n < 0 || n >= this.length) throw new RangeError("Index out of range"); if (a < 0) throw new RangeError("sourceEnd out of bounds"); a > this.length && (a = this.length), r.length - e < a - n && (a = r.length - e + n); var u = a - n; return this === r && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(e, n, a) : Uint8Array.prototype.set.call( r, this.subarray(n, a), e ), u; }, o.prototype.fill = function(r, e, n, a) { if (typeof r == "string") { if (typeof e == "string" ? (a = e, e = 0, n = this.length) : typeof n == "string" && (a = n, n = this.length), a !== void 0 && typeof a != "string") throw new TypeError("encoding must be a string"); if (typeof a == "string" && !o.isEncoding(a)) throw new TypeError("Unknown encoding: " + a); if (r.length === 1) { var u = r.charCodeAt(0); (a === "utf8" && u < 128 || a === "latin1") && (r = u); } } else typeof r == "number" ? r = r & 255 : typeof r == "boolean" && (r = Number(r)); if (e < 0 || this.length < e || this.length < n) throw new RangeError("Out of range index"); if (n <= e) return this; e = e >>> 0, n = n === void 0 ? this.length : n >>> 0, r || (r = 0); var c; if (typeof r == "number") for (c = e; c < n; ++c) this[c] = r; else { var g = o.isBuffer(r) ? r : o.from(r, a), b = g.length; if (b === 0) throw new TypeError('The value "' + r + '" is invalid for argument "value"'); for (c = 0; c < n - e; ++c) this[c + e] = g[c % b]; } return this; }; var yr = /[^+/0-9A-Za-z-_]/g; function vr(t) { if (t = t.split("=")[0], t = t.trim().replace(yr, ""), t.length < 2) return ""; for (; t.length % 4 !== 0; ) t = t + "="; return t; } function tr(t, r) { r = r || 1 / 0; for (var e, n = t.length, a = null, u = [], c = 0; c < n; ++c) { if (e = t.charCodeAt(c), e > 55295 && e < 57344) { if (!a) { if (e > 56319) { (r -= 3) > -1 && u.push(239, 191, 189); continue; } else if (c + 1 === n) { (r -= 3) > -1 && u.push(239, 191, 189); continue; } a = e; continue; } if (e < 56320) { (r -= 3) > -1 && u.push(239, 191, 189), a = e; continue; } e = (a - 55296 << 10 | e - 56320) + 65536; } else a && (r -= 3) > -1 && u.push(239, 191, 189); if (a = null, e < 128) { if ((r -= 1) < 0) break; u.push(e); } else if (e < 2048) { if ((r -= 2) < 0) break; u.push( e >> 6 | 192, e & 63 | 128 ); } else if (e < 65536) { if ((r -= 3) < 0) break; u.push( e >> 12 | 224, e >> 6 & 63 | 128, e & 63 | 128 ); } else if (e < 1114112) { if ((r -= 4) < 0) break; u.push( e >> 18 | 240, e >> 12 & 63 | 128, e >> 6 & 63 | 128, e & 63 | 128 ); } else throw new Error("Invalid code point"); } return u; } function wr(t) { for (var r = [], e = 0; e < t.length; ++e) r.push(t.charCodeAt(e) & 255); return r; } function or(t, r) { for (var e, n, a, u = [], c = 0; c < t.length && !((r -= 2) < 0); ++c) e = t.charCodeAt(c), n = e >> 8, a = e % 256, u.push(a), u.push(n); return u; } function kr(t) { return s.toByteArray(vr(t)); } function ir(t, r, e, n) { for (var a = 0; a < n && !(a + e >= r.length || a >= t.length); ++a) r[a + e] = t[a]; return a; } function W(t, r) { return t instanceof r || t != null && t.constructor != null && t.constructor.name != null && t.constructor.name === r.name; } function dr(t) { return t !== t; } var ur = function() { for (var t = "0123456789abcdef", r = new Array(256), e = 0; e < 16; ++e) for (var n = e * 16, a = 0; a < 16; ++a) r[n + a] = t[e] + t[a]; return r; }(); })(Be); var fe = { exports: {} }, U = fe.exports = {}, J, z; function Jr() { throw new Error("setTimeout has not been defined"); } function zr() { throw new Error("clearTimeout has not been defined"); } (function() { try { typeof setTimeout == "function" ? J = setTimeout : J = Jr; } catch { J = Jr; } try { typeof clearTimeout == "function" ? z = clearTimeout : z = zr; } catch { z = zr; } })(); function ce(l) { if (J === setTimeout) return setTimeout(l, 0); if ((J === Jr || !J) && setTimeout) return J = setTimeout, setTimeout(l, 0); try { return J(l, 0); } catch { try { return J.call(null, l, 0); } catch { return J.call(this, l, 0); } } } function je(l) { if (z === clearTimeout) return clearTimeout(l); if ((z === zr || !z) && clearTimeout) return z = clearTimeout, clearTimeout(l); try { return z(l); } catch { try { return z.call(null, l); } catch { return z.call(this, l); } } } var Q = [], hr = !1, ar, Dr = -1; function Me() { !hr || !ar || (hr = !1, ar.length ? Q = ar.concat(Q) : Dr = -1, Q.length && le()); } function le() { if (!hr) { var l = ce(Me); hr = !0; for (var s = Q.length; s; ) { for (ar = Q, Q = []; ++Dr < s; ) ar && ar[Dr].run(); Dr = -1, s = Q.length; } ar = null, hr = !1, je(l); } } U.nextTick = function(l) { var s = new Array(arguments.length - 1); if (arguments.length > 1) for (var p = 1; p < arguments.length; p++) s[p - 1] = arguments[p]; Q.push(new se(l, s)), Q.length === 1 && !hr && ce(le); }; function se(l, s) { this.fun = l, this.array = s; } se.prototype.run = function() { this.fun.apply(null, this.array); }; U.title = "browser"; U.browser = !0; U.env = {}; U.argv = []; U.version = ""; U.versions = {}; function Z() { } U.on = Z; U.addListener = Z; U.once = Z; U.off = Z; U.removeListener = Z; U.removeAllListeners = Z; U.emit = Z; U.prependListener = Z; U.prependOnceListener = Z; U.listeners = function(l) { return []; }; U.binding = function(l) { throw new Error("process.binding is not supported"); }; U.cwd = function() { return "/"; }; U.chdir = function(l) { throw new Error("process.chdir is not supported"); }; U.umask = function() { return 0; }; var Ne = fe.exports; const he = /* @__PURE__ */ Ce(Ne); (function(l) { function s() { var w = this || self; return delete l.prototype.__magic__, w; } if (typeof globalThis == "object") return globalThis; if (this) return s(); l.defineProperty(l.prototype, "__magic__", { configurable: !0, get: s }); var p = __magic__; return p; })(Object); var Hr = { exports: {} }, Er = {}; /** * @license React * react-jsx-runtime.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 ie; function We() { if (ie) return Er; ie = 1; var l = oe, s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), w = Object.prototype.hasOwnProperty, x = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 }; function y(o, d, P) { var T, A = {}, M = null, k = null; P !== void 0 && (M = "" + P), d.key !== void 0 && (M = "" + d.key), d.ref !== void 0 && (k = d.ref); for (T in d) w.call(d, T) && !m.hasOwnProperty(T) && (A[T] = d[T]); if (o && o.defaultProps) for (T in d = o.defaultProps, d) A[T] === void 0 && (A[T] = d[T]); return { $$typeof: s, type: o, key: M, ref: k, props: A, _owner: x.current }; } return Er.Fragment = p, Er.jsx = y, Er.jsxs = y, Er; } var gr = {}, ae; function Ye() { return ae || (ae = 1, he.env.NODE_ENV !== "production" && function() { var l = oe, s = Symbol.for("react.element"), p = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), o = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), rr = Symbol.iterator, nr = "@@iterator"; function Lr(i) { if (i === null || typeof i != "object") return null; var f = rr && i[rr] || i[nr]; return typeof f == "function" ? f : null; } var q = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function L(i) { { for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), v = 1; v < f; v++) h[v - 1] = arguments[v]; Fr("error", i, h); } } function Fr(i, f, h) { { var v = q.ReactDebugCurrentFrame, _ = v.getStackAddendum(); _ !== "" && (f += "%s", h = h.concat([_])); var B = h.map(function(F) { return String(F); }); B.unshift("Warning: " + f), Function.prototype.apply.call(console[i], console, B); } } var jr = !1, X = !1, Tr = !1, _r = !1, Mr = !1, br; br = Symbol.for("react.module.reference"); function Nr(i) { return !!(typeof i == "string" || typeof i == "function" || i === w || i === m || Mr || i === x || i === P || i === T || _r || i === k || jr || X || Tr || typeof i == "object" && i !== null && (i.$$typeof === M || i.$$typeof === A || i.$$typeof === y || i.$$typeof === o || i.$$typeof === d || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. i.$$typeof === br || i.getModuleId !== void 0)); } function Wr(i, f, h) { var v = i.displayName; if (v) return v; var _ = f.displayName || f.name || ""; return _ !== "" ? h + "(" + _ + ")" : h; } function Rr(i) { return i.displayName || "Context"; } function V(i) { if (i == null) return null; if (typeof i.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function") return i.displayName || i.name || null; if (typeof i == "string") return i; switch (i) { case w: return "Fragment"; case p: return "Portal"; case m: return "Profiler"; case x: return "StrictMode"; case P: return "Suspense"; case T: return "SuspenseList"; } if (typeof i == "object") switch (i.$$typeof) { case o: var f = i; return Rr(f) + ".Consumer"; case y: var h = i; return Rr(h._context) + ".Provider"; case d: return Wr(i, i.render, "ForwardRef"); case A: var v = i.displayName || null; return v !== null ? v : V(i.type) || "Memo"; case M: { var _ = i, B = _._payload, F = _._init; try { return V(F(B)); } catch { return null; } } } return null; } var G = Object.assign, er = 0, Ar, Cr, Br, Ir, Sr, I, j; function pr() { } pr.__reactDisabledLog = !0; function Ur() { { if (er === 0) { Ar = console.log, Cr = console.info, Br = console.warn, Ir = console.error, Sr = console.group, I = console.groupCollapsed, j = console.groupEnd; var i = { configurable: !0, enumerable: !0, value: pr, writable: !0 }; Object.defineProperties(console, { info: i, log: i, warn: i, error: i, group: i, groupCollapsed: i, groupEnd: i }); } er++; } } function Or() { { if (er--, er === 0) { var i = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: G({}, i, { value: Ar }), info: G({}, i, { value: Cr }), warn: G({}, i, { value: Br }), error: G({}, i, { value: Ir }), group: G({}, i, { value: Sr }), groupCollapsed: G({}, i, { value: I }), groupEnd: G({}, i, { value: j }) }); } er < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var yr = q.ReactCurrentDispatcher, vr; function tr(i, f, h) { { if (vr === void 0) try { throw Error(); } catch (_) { var v = _.stack.trim().match(/\n( *(at )?)/); vr = v && v[1] || ""; } return ` ` + vr + i; } } var wr = !1, or; { var kr = typeof WeakMap == "function" ? WeakMap : Map; or = new kr(); } function ir(i, f) { if (!i || wr) return ""; { var h = or.get(i); if (h !== void 0) return h; } var v; wr = !0; var _ = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var B; B = yr.current, yr.current = null, Ur(); try { if (f) { var F = function() { throw Error(); }; if (Object.defineProperty(F.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(F, []); } catch (K) { v = K; } Reflect.construct(i, [], F); } else { try { F.call(); } catch (K) { v = K; } i.call(F.prototype); } } else { try { throw Error(); } catch (K) { v = K; } i(); } } catch (K) { if (K && v && typeof K.stack == "string") { for (var E = K.stack.split(` `), N = v.stack.split(` `), S = E.length - 1, O = N.length - 1; S >= 1 && O >= 0 && E[S] !== N[O]; ) O--; for (; S >= 1 && O >= 0; S--, O--) if (E[S] !== N[O]) { if (S !== 1 || O !== 1) do if (S--, O--, O < 0 || E[S] !== N[O]) { var Y = ` ` + E[S].replace(" at new ", " at "); return i.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", i.displayName)), typeof i == "function" && or.set(i, Y), Y; } while (S >= 1 && O >= 0); break; } } } finally { wr = !1, yr.current = B, Or(), Error.prepareStackTrace = _; } var lr = i ? i.displayName || i.name : "", ne = lr ? tr(lr) : ""; return typeof i == "function" && or.set(i, ne), ne; } function W(i, f, h) { return ir(i, !1); } function dr(i) { var f = i.prototype; return !!(f && f.isReactComponent); } function ur(i, f, h) { if (i == null) return ""; if (typeof i == "function") return ir(i, dr(i)); if (typeof i == "string") return tr(i); switch (i) { case P: return tr("Suspense"); case T: return tr("SuspenseList"); } if (typeof i == "object") switch (i.$$typeof) { case d: return W(i.render); case A: return ur(i.type, f, h); case M: { var v = i, _ = v._payload, B = v._init; try { return ur(B(_), f, h); } catch { } } } return ""; } var t = Object.prototype.hasOwnProperty, r = {}, e = q.ReactDebugCurrentFrame; function n(i) { if (i) { var f = i._owner, h = ur(i.type, i._source, f ? f.type : null); e.setExtraStackFrame(h); } else e.setExtraStackFrame(null); } function a(i, f, h, v, _) { { var B = Function.call.bind(t); for (var F in i) if (B(i, F)) { var E = void 0; try { if (typeof i[F] != "function") { var N = Error((v || "React class") + ": " + h + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw N.name = "Invariant Violation", N; } E = i[F](f, F, v, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (S) { E = S; } E && !(E instanceof Error) && (n(_), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", h, F, typeof E), n(null)), E instanceof Error && !(E.message in r) && (r[E.message] = !0, n(_), L("Failed %s type: %s", h, E.message), n(null)); } } } var u = Array.isArray; function c(i) { return u(i); } function g(i) { { var f = typeof Symbol == "function" && Symbol.toStringTag, h = f && i[Symbol.toStringTag] || i.constructor.name || "Object"; return h; } } function b(i) { try { return C(i), !1; } catch { return !0; } } function C(i) { return "" + i; } function D(i) { if (b(i)) return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", g(i)), C(i); } var R = q.ReactCurrentOwner, fr = { key: !0, ref: !0, __self: !0, __source: !0 }, mr, xr, Yr; Yr = {}; function pe(i) { if (t.call(i, "ref")) { var f = Object.getOwnPropertyDescriptor(i, "ref").get; if (f && f.isReactWarning) return !1; } return i.ref !== void 0; } function ye(i) { if (t.call(i, "key")) { var f = Object.getOwnPropertyDescriptor(i, "key").get; if (f && f.isReactWarning) return !1; } return i.key !== void 0; } function ve(i, f) { if (typeof i.ref == "string" && R.current && f && R.current.stateNode !== f) { var h = V(R.current.type); Yr[h] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an