UNPKG

betabounty-sdk

Version:

BetaBounty SDK for integrating user testing widgets into web applications

1,620 lines 390 kB
class Dg { SESSION_PARAM = "bb_session"; /** * Detect session token from URL parameters */ detectSessionToken() { const v = new URLSearchParams(window.location.search).get(this.SESSION_PARAM); return v ? (this.removeSessionParam(), v) : null; } /** * Remove session parameter from URL without page reload */ removeSessionParam() { const o = new URL(window.location.href); o.searchParams.delete(this.SESSION_PARAM), window.history.replaceState({}, "", o.toString()); } /** * Check if current page is likely a testing session */ isTestingSession() { return this.detectSessionToken() !== null; } } var Ws = { exports: {} }, vn = {}, $s = { exports: {} }, Fs = {}; /** * @license React * scheduler.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 $r; function Rg() { return $r || ($r = 1, function(C) { function o(x, O) { var Y = x.length; x.push(O); t: for (; 0 < Y; ) { var I = Y - 1 >>> 1, r = x[I]; if (0 < D(r, O)) x[I] = O, x[Y] = r, Y = I; else break t; } } function v(x) { return x.length === 0 ? null : x[0]; } function f(x) { if (x.length === 0) return null; var O = x[0], Y = x.pop(); if (Y !== O) { x[0] = Y; t: for (var I = 0, r = x.length, M = r >>> 1; I < M; ) { var h = 2 * (I + 1) - 1, _ = x[h], H = h + 1, J = x[H]; if (0 > D(_, Y)) H < r && 0 > D(J, _) ? (x[I] = J, x[H] = Y, I = H) : (x[I] = _, x[h] = Y, I = h); else if (H < r && 0 > D(J, Y)) x[I] = J, x[H] = Y, I = H; else break t; } } return O; } function D(x, O) { var Y = x.sortIndex - O.sortIndex; return Y !== 0 ? Y : x.id - O.id; } if (C.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") { var R = performance; C.unstable_now = function() { return R.now(); }; } else { var q = Date, at = q.now(); C.unstable_now = function() { return q.now() - at; }; } var U = [], T = [], N = 1, st = null, tt = 3, Ot = !1, yt = !1, Kt = !1, Ut = !1, De = typeof setTimeout == "function" ? setTimeout : null, zt = typeof clearTimeout == "function" ? clearTimeout : null, Tt = typeof setImmediate < "u" ? setImmediate : null; function kt(x) { for (var O = v(T); O !== null; ) { if (O.callback === null) f(T); else if (O.startTime <= x) f(T), O.sortIndex = O.expirationTime, o(U, O); else break; O = v(T); } } function W(x) { if (Kt = !1, kt(x), !yt) if (v(U) !== null) yt = !0, ht || (ht = !0, Mt()); else { var O = v(T); O !== null && ot(W, O.startTime - x); } } var ht = !1, qt = -1, Qt = 5, Zt = -1; function Yt() { return Ut ? !0 : !(C.unstable_now() - Zt < Qt); } function Jt() { if (Ut = !1, ht) { var x = C.unstable_now(); Zt = x; var O = !0; try { t: { yt = !1, Kt && (Kt = !1, zt(qt), qt = -1), Ot = !0; var Y = tt; try { e: { for (kt(x), st = v(U); st !== null && !(st.expirationTime > x && Yt()); ) { var I = st.callback; if (typeof I == "function") { st.callback = null, tt = st.priorityLevel; var r = I( st.expirationTime <= x ); if (x = C.unstable_now(), typeof r == "function") { st.callback = r, kt(x), O = !0; break e; } st === v(U) && f(U), kt(x); } else f(U); st = v(U); } if (st !== null) O = !0; else { var M = v(T); M !== null && ot( W, M.startTime - x ), O = !1; } } break t; } finally { st = null, tt = Y, Ot = !1; } O = void 0; } } finally { O ? Mt() : ht = !1; } } } var Mt; if (typeof Tt == "function") Mt = function() { Tt(Jt); }; else if (typeof MessageChannel < "u") { var Nt = new MessageChannel(), te = Nt.port2; Nt.port1.onmessage = Jt, Mt = function() { te.postMessage(null); }; } else Mt = function() { De(Jt, 0); }; function ot(x, O) { qt = De(function() { x(C.unstable_now()); }, O); } C.unstable_IdlePriority = 5, C.unstable_ImmediatePriority = 1, C.unstable_LowPriority = 4, C.unstable_NormalPriority = 3, C.unstable_Profiling = null, C.unstable_UserBlockingPriority = 2, C.unstable_cancelCallback = function(x) { x.callback = null; }, C.unstable_forceFrameRate = function(x) { 0 > x || 125 < x ? console.error( "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" ) : Qt = 0 < x ? Math.floor(1e3 / x) : 5; }, C.unstable_getCurrentPriorityLevel = function() { return tt; }, C.unstable_next = function(x) { switch (tt) { case 1: case 2: case 3: var O = 3; break; default: O = tt; } var Y = tt; tt = O; try { return x(); } finally { tt = Y; } }, C.unstable_requestPaint = function() { Ut = !0; }, C.unstable_runWithPriority = function(x, O) { switch (x) { case 1: case 2: case 3: case 4: case 5: break; default: x = 3; } var Y = tt; tt = x; try { return O(); } finally { tt = Y; } }, C.unstable_scheduleCallback = function(x, O, Y) { var I = C.unstable_now(); switch (typeof Y == "object" && Y !== null ? (Y = Y.delay, Y = typeof Y == "number" && 0 < Y ? I + Y : I) : Y = I, x) { case 1: var r = -1; break; case 2: r = 250; break; case 5: r = 1073741823; break; case 4: r = 1e4; break; default: r = 5e3; } return r = Y + r, x = { id: N++, callback: O, priorityLevel: x, startTime: Y, expirationTime: r, sortIndex: -1 }, Y > I ? (x.sortIndex = Y, o(T, x), v(U) === null && x === v(T) && (Kt ? (zt(qt), qt = -1) : Kt = !0, ot(W, Y - I))) : (x.sortIndex = r, o(U, x), yt || Ot || (yt = !0, ht || (ht = !0, Mt()))), x; }, C.unstable_shouldYield = Yt, C.unstable_wrapCallback = function(x) { var O = tt; return function() { var Y = tt; tt = O; try { return x.apply(this, arguments); } finally { tt = Y; } }; }; }(Fs)), Fs; } var Fr; function Og() { return Fr || (Fr = 1, $s.exports = Rg()), $s.exports; } var Is = { exports: {} }, Z = {}; /** * @license React * react.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 Ir; function Ug() { if (Ir) return Z; Ir = 1; var C = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), q = Symbol.for("react.context"), at = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), T = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), st = Symbol.iterator; function tt(r) { return r === null || typeof r != "object" ? null : (r = st && r[st] || r["@@iterator"], typeof r == "function" ? r : null); } var Ot = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, yt = Object.assign, Kt = {}; function Ut(r, M, h) { this.props = r, this.context = M, this.refs = Kt, this.updater = h || Ot; } Ut.prototype.isReactComponent = {}, Ut.prototype.setState = function(r, M) { if (typeof r != "object" && typeof r != "function" && r != null) throw Error( "takes an object of state variables to update or a function which returns an object of state variables." ); this.updater.enqueueSetState(this, r, M, "setState"); }, Ut.prototype.forceUpdate = function(r) { this.updater.enqueueForceUpdate(this, r, "forceUpdate"); }; function De() { } De.prototype = Ut.prototype; function zt(r, M, h) { this.props = r, this.context = M, this.refs = Kt, this.updater = h || Ot; } var Tt = zt.prototype = new De(); Tt.constructor = zt, yt(Tt, Ut.prototype), Tt.isPureReactComponent = !0; var kt = Array.isArray, W = { H: null, A: null, T: null, S: null, V: null }, ht = Object.prototype.hasOwnProperty; function qt(r, M, h, _, H, J) { return h = J.ref, { $$typeof: C, type: r, key: M, ref: h !== void 0 ? h : null, props: J }; } function Qt(r, M) { return qt( r.type, M, void 0, void 0, void 0, r.props ); } function Zt(r) { return typeof r == "object" && r !== null && r.$$typeof === C; } function Yt(r) { var M = { "=": "=0", ":": "=2" }; return "$" + r.replace(/[=:]/g, function(h) { return M[h]; }); } var Jt = /\/+/g; function Mt(r, M) { return typeof r == "object" && r !== null && r.key != null ? Yt("" + r.key) : M.toString(36); } function Nt() { } function te(r) { switch (r.status) { case "fulfilled": return r.value; case "rejected": throw r.reason; default: switch (typeof r.status == "string" ? r.then(Nt, Nt) : (r.status = "pending", r.then( function(M) { r.status === "pending" && (r.status = "fulfilled", r.value = M); }, function(M) { r.status === "pending" && (r.status = "rejected", r.reason = M); } )), r.status) { case "fulfilled": return r.value; case "rejected": throw r.reason; } } throw r; } function ot(r, M, h, _, H) { var J = typeof r; (J === "undefined" || J === "boolean") && (r = null); var Q = !1; if (r === null) Q = !0; else switch (J) { case "bigint": case "string": case "number": Q = !0; break; case "object": switch (r.$$typeof) { case C: case o: Q = !0; break; case N: return Q = r._init, ot( Q(r._payload), M, h, _, H ); } } if (Q) return H = H(r), Q = _ === "" ? "." + Mt(r, 0) : _, kt(H) ? (h = "", Q != null && (h = Q.replace(Jt, "$&/") + "/"), ot(H, M, h, "", function(Ve) { return Ve; })) : H != null && (Zt(H) && (H = Qt( H, h + (H.key == null || r && r.key === H.key ? "" : ("" + H.key).replace( Jt, "$&/" ) + "/") + Q )), M.push(H)), 1; Q = 0; var ee = _ === "" ? "." : _ + ":"; if (kt(r)) for (var rt = 0; rt < r.length; rt++) _ = r[rt], J = ee + Mt(_, rt), Q += ot( _, M, h, J, H ); else if (rt = tt(r), typeof rt == "function") for (r = rt.call(r), rt = 0; !(_ = r.next()).done; ) _ = _.value, J = ee + Mt(_, rt++), Q += ot( _, M, h, J, H ); else if (J === "object") { if (typeof r.then == "function") return ot( te(r), M, h, _, H ); throw M = String(r), Error( "Objects are not valid as a React child (found: " + (M === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : M) + "). If you meant to render a collection of children, use an array instead." ); } return Q; } function x(r, M, h) { if (r == null) return r; var _ = [], H = 0; return ot(r, _, "", "", function(J) { return M.call(h, J, H++); }), _; } function O(r) { if (r._status === -1) { var M = r._result; M = M(), M.then( function(h) { (r._status === 0 || r._status === -1) && (r._status = 1, r._result = h); }, function(h) { (r._status === 0 || r._status === -1) && (r._status = 2, r._result = h); } ), r._status === -1 && (r._status = 0, r._result = M); } if (r._status === 1) return r._result.default; throw r._result; } var Y = typeof reportError == "function" ? reportError : function(r) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { var M = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: typeof r == "object" && r !== null && typeof r.message == "string" ? String(r.message) : String(r), error: r }); if (!window.dispatchEvent(M)) return; } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", r); return; } console.error(r); }; function I() { } return Z.Children = { map: x, forEach: function(r, M, h) { x( r, function() { M.apply(this, arguments); }, h ); }, count: function(r) { var M = 0; return x(r, function() { M++; }), M; }, toArray: function(r) { return x(r, function(M) { return M; }) || []; }, only: function(r) { if (!Zt(r)) throw Error( "React.Children.only expected to receive a single React element child." ); return r; } }, Z.Component = Ut, Z.Fragment = v, Z.Profiler = D, Z.PureComponent = zt, Z.StrictMode = f, Z.Suspense = U, Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = W, Z.__COMPILER_RUNTIME = { __proto__: null, c: function(r) { return W.H.useMemoCache(r); } }, Z.cache = function(r) { return function() { return r.apply(null, arguments); }; }, Z.cloneElement = function(r, M, h) { if (r == null) throw Error( "The argument must be a React element, but you passed " + r + "." ); var _ = yt({}, r.props), H = r.key, J = void 0; if (M != null) for (Q in M.ref !== void 0 && (J = void 0), M.key !== void 0 && (H = "" + M.key), M) !ht.call(M, Q) || Q === "key" || Q === "__self" || Q === "__source" || Q === "ref" && M.ref === void 0 || (_[Q] = M[Q]); var Q = arguments.length - 2; if (Q === 1) _.children = h; else if (1 < Q) { for (var ee = Array(Q), rt = 0; rt < Q; rt++) ee[rt] = arguments[rt + 2]; _.children = ee; } return qt(r.type, H, void 0, void 0, J, _); }, Z.createContext = function(r) { return r = { $$typeof: q, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null }, r.Provider = r, r.Consumer = { $$typeof: R, _context: r }, r; }, Z.createElement = function(r, M, h) { var _, H = {}, J = null; if (M != null) for (_ in M.key !== void 0 && (J = "" + M.key), M) ht.call(M, _) && _ !== "key" && _ !== "__self" && _ !== "__source" && (H[_] = M[_]); var Q = arguments.length - 2; if (Q === 1) H.children = h; else if (1 < Q) { for (var ee = Array(Q), rt = 0; rt < Q; rt++) ee[rt] = arguments[rt + 2]; H.children = ee; } if (r && r.defaultProps) for (_ in Q = r.defaultProps, Q) H[_] === void 0 && (H[_] = Q[_]); return qt(r, J, void 0, void 0, null, H); }, Z.createRef = function() { return { current: null }; }, Z.forwardRef = function(r) { return { $$typeof: at, render: r }; }, Z.isValidElement = Zt, Z.lazy = function(r) { return { $$typeof: N, _payload: { _status: -1, _result: r }, _init: O }; }, Z.memo = function(r, M) { return { $$typeof: T, type: r, compare: M === void 0 ? null : M }; }, Z.startTransition = function(r) { var M = W.T, h = {}; W.T = h; try { var _ = r(), H = W.S; H !== null && H(h, _), typeof _ == "object" && _ !== null && typeof _.then == "function" && _.then(I, Y); } catch (J) { Y(J); } finally { W.T = M; } }, Z.unstable_useCacheRefresh = function() { return W.H.useCacheRefresh(); }, Z.use = function(r) { return W.H.use(r); }, Z.useActionState = function(r, M, h) { return W.H.useActionState(r, M, h); }, Z.useCallback = function(r, M) { return W.H.useCallback(r, M); }, Z.useContext = function(r) { return W.H.useContext(r); }, Z.useDebugValue = function() { }, Z.useDeferredValue = function(r, M) { return W.H.useDeferredValue(r, M); }, Z.useEffect = function(r, M, h) { var _ = W.H; if (typeof h == "function") throw Error( "useEffect CRUD overload is not enabled in this build of React." ); return _.useEffect(r, M); }, Z.useId = function() { return W.H.useId(); }, Z.useImperativeHandle = function(r, M, h) { return W.H.useImperativeHandle(r, M, h); }, Z.useInsertionEffect = function(r, M) { return W.H.useInsertionEffect(r, M); }, Z.useLayoutEffect = function(r, M) { return W.H.useLayoutEffect(r, M); }, Z.useMemo = function(r, M) { return W.H.useMemo(r, M); }, Z.useOptimistic = function(r, M) { return W.H.useOptimistic(r, M); }, Z.useReducer = function(r, M, h) { return W.H.useReducer(r, M, h); }, Z.useRef = function(r) { return W.H.useRef(r); }, Z.useState = function(r) { return W.H.useState(r); }, Z.useSyncExternalStore = function(r, M, h) { return W.H.useSyncExternalStore( r, M, h ); }, Z.useTransition = function() { return W.H.useTransition(); }, Z.version = "19.1.0", Z; } var Pr; function ec() { return Pr || (Pr = 1, Is.exports = Ug()), Is.exports; } var Ps = { exports: {} }, Xt = {}; /** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var td; function Ng() { if (td) return Xt; td = 1; var C = ec(); function o(U) { var T = "https://react.dev/errors/" + U; if (1 < arguments.length) { T += "?args[]=" + encodeURIComponent(arguments[1]); for (var N = 2; N < arguments.length; N++) T += "&args[]=" + encodeURIComponent(arguments[N]); } return "Minified React error #" + U + "; visit " + T + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } function v() { } var f = { d: { f: v, r: function() { throw Error(o(522)); }, D: v, C: v, L: v, m: v, X: v, S: v, M: v }, p: 0, findDOMNode: null }, D = Symbol.for("react.portal"); function R(U, T, N) { var st = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: D, key: st == null ? null : "" + st, children: U, containerInfo: T, implementation: N }; } var q = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; function at(U, T) { if (U === "font") return ""; if (typeof T == "string") return T === "use-credentials" ? T : ""; } return Xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = f, Xt.createPortal = function(U, T) { var N = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!T || T.nodeType !== 1 && T.nodeType !== 9 && T.nodeType !== 11) throw Error(o(299)); return R(U, T, null, N); }, Xt.flushSync = function(U) { var T = q.T, N = f.p; try { if (q.T = null, f.p = 2, U) return U(); } finally { q.T = T, f.p = N, f.d.f(); } }, Xt.preconnect = function(U, T) { typeof U == "string" && (T ? (T = T.crossOrigin, T = typeof T == "string" ? T === "use-credentials" ? T : "" : void 0) : T = null, f.d.C(U, T)); }, Xt.prefetchDNS = function(U) { typeof U == "string" && f.d.D(U); }, Xt.preinit = function(U, T) { if (typeof U == "string" && T && typeof T.as == "string") { var N = T.as, st = at(N, T.crossOrigin), tt = typeof T.integrity == "string" ? T.integrity : void 0, Ot = typeof T.fetchPriority == "string" ? T.fetchPriority : void 0; N === "style" ? f.d.S( U, typeof T.precedence == "string" ? T.precedence : void 0, { crossOrigin: st, integrity: tt, fetchPriority: Ot } ) : N === "script" && f.d.X(U, { crossOrigin: st, integrity: tt, fetchPriority: Ot, nonce: typeof T.nonce == "string" ? T.nonce : void 0 }); } }, Xt.preinitModule = function(U, T) { if (typeof U == "string") if (typeof T == "object" && T !== null) { if (T.as == null || T.as === "script") { var N = at( T.as, T.crossOrigin ); f.d.M(U, { crossOrigin: N, integrity: typeof T.integrity == "string" ? T.integrity : void 0, nonce: typeof T.nonce == "string" ? T.nonce : void 0 }); } } else T == null && f.d.M(U); }, Xt.preload = function(U, T) { if (typeof U == "string" && typeof T == "object" && T !== null && typeof T.as == "string") { var N = T.as, st = at(N, T.crossOrigin); f.d.L(U, N, { crossOrigin: st, integrity: typeof T.integrity == "string" ? T.integrity : void 0, nonce: typeof T.nonce == "string" ? T.nonce : void 0, type: typeof T.type == "string" ? T.type : void 0, fetchPriority: typeof T.fetchPriority == "string" ? T.fetchPriority : void 0, referrerPolicy: typeof T.referrerPolicy == "string" ? T.referrerPolicy : void 0, imageSrcSet: typeof T.imageSrcSet == "string" ? T.imageSrcSet : void 0, imageSizes: typeof T.imageSizes == "string" ? T.imageSizes : void 0, media: typeof T.media == "string" ? T.media : void 0 }); } }, Xt.preloadModule = function(U, T) { if (typeof U == "string") if (T) { var N = at(T.as, T.crossOrigin); f.d.m(U, { as: typeof T.as == "string" && T.as !== "script" ? T.as : void 0, crossOrigin: N, integrity: typeof T.integrity == "string" ? T.integrity : void 0 }); } else f.d.m(U); }, Xt.requestFormReset = function(U) { f.d.r(U); }, Xt.unstable_batchedUpdates = function(U, T) { return U(T); }, Xt.useFormState = function(U, T, N) { return q.H.useFormState(U, T, N); }, Xt.useFormStatus = function() { return q.H.useHostTransitionStatus(); }, Xt.version = "19.1.0", Xt; } var ed; function jg() { if (ed) return Ps.exports; ed = 1; function C() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C); } catch (o) { console.error(o); } } return C(), Ps.exports = Ng(), Ps.exports; } /** * @license React * react-dom-client.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 ld; function Hg() { if (ld) return vn; ld = 1; var C = Og(), o = ec(), v = jg(); function f(t) { var e = "https://react.dev/errors/" + t; if (1 < arguments.length) { e += "?args[]=" + encodeURIComponent(arguments[1]); for (var l = 2; l < arguments.length; l++) e += "&args[]=" + encodeURIComponent(arguments[l]); } return "Minified React error #" + t + "; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } function D(t) { return !(!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11); } function R(t) { var e = t, l = t; if (t.alternate) for (; e.return; ) e = e.return; else { t = e; do e = t, (e.flags & 4098) !== 0 && (l = e.return), t = e.return; while (t); } return e.tag === 3 ? l : null; } function q(t) { if (t.tag === 13) { var e = t.memoizedState; if (e === null && (t = t.alternate, t !== null && (e = t.memoizedState)), e !== null) return e.dehydrated; } return null; } function at(t) { if (R(t) !== t) throw Error(f(188)); } function U(t) { var e = t.alternate; if (!e) { if (e = R(t), e === null) throw Error(f(188)); return e !== t ? null : t; } for (var l = t, a = e; ; ) { var n = l.return; if (n === null) break; var u = n.alternate; if (u === null) { if (a = n.return, a !== null) { l = a; continue; } break; } if (n.child === u.child) { for (u = n.child; u; ) { if (u === l) return at(n), t; if (u === a) return at(n), e; u = u.sibling; } throw Error(f(188)); } if (l.return !== a.return) l = n, a = u; else { for (var i = !1, s = n.child; s; ) { if (s === l) { i = !0, l = n, a = u; break; } if (s === a) { i = !0, a = n, l = u; break; } s = s.sibling; } if (!i) { for (s = u.child; s; ) { if (s === l) { i = !0, l = u, a = n; break; } if (s === a) { i = !0, a = u, l = n; break; } s = s.sibling; } if (!i) throw Error(f(189)); } } if (l.alternate !== a) throw Error(f(190)); } if (l.tag !== 3) throw Error(f(188)); return l.stateNode.current === l ? t : e; } function T(t) { var e = t.tag; if (e === 5 || e === 26 || e === 27 || e === 6) return t; for (t = t.child; t !== null; ) { if (e = T(t), e !== null) return e; t = t.sibling; } return null; } var N = Object.assign, st = Symbol.for("react.element"), tt = Symbol.for("react.transitional.element"), Ot = Symbol.for("react.portal"), yt = Symbol.for("react.fragment"), Kt = Symbol.for("react.strict_mode"), Ut = Symbol.for("react.profiler"), De = Symbol.for("react.provider"), zt = Symbol.for("react.consumer"), Tt = Symbol.for("react.context"), kt = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), ht = Symbol.for("react.suspense_list"), qt = Symbol.for("react.memo"), Qt = Symbol.for("react.lazy"), Zt = Symbol.for("react.activity"), Yt = Symbol.for("react.memo_cache_sentinel"), Jt = Symbol.iterator; function Mt(t) { return t === null || typeof t != "object" ? null : (t = Jt && t[Jt] || t["@@iterator"], typeof t == "function" ? t : null); } var Nt = Symbol.for("react.client.reference"); function te(t) { if (t == null) return null; if (typeof t == "function") return t.$$typeof === Nt ? null : t.displayName || t.name || null; if (typeof t == "string") return t; switch (t) { case yt: return "Fragment"; case Ut: return "Profiler"; case Kt: return "StrictMode"; case W: return "Suspense"; case ht: return "SuspenseList"; case Zt: return "Activity"; } if (typeof t == "object") switch (t.$$typeof) { case Ot: return "Portal"; case Tt: return (t.displayName || "Context") + ".Provider"; case zt: return (t._context.displayName || "Context") + ".Consumer"; case kt: var e = t.render; return t = t.displayName, t || (t = e.displayName || e.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t; case qt: return e = t.displayName || null, e !== null ? e : te(t.type) || "Memo"; case Qt: e = t._payload, t = t._init; try { return te(t(e)); } catch { } } return null; } var ot = Array.isArray, x = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = v.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = { pending: !1, data: null, method: null, action: null }, I = [], r = -1; function M(t) { return { current: t }; } function h(t) { 0 > r || (t.current = I[r], I[r] = null, r--); } function _(t, e) { r++, I[r] = t.current, t.current = e; } var H = M(null), J = M(null), Q = M(null), ee = M(null); function rt(t, e) { switch (_(Q, e), _(J, t), _(H, null), e.nodeType) { case 9: case 11: t = (t = e.documentElement) && (t = t.namespaceURI) ? Ar(t) : 0; break; default: if (t = e.tagName, e = e.namespaceURI) e = Ar(e), t = zr(e, t); else switch (t) { case "svg": t = 1; break; case "math": t = 2; break; default: t = 0; } } h(H), _(H, t); } function Ve() { h(H), h(J), h(Q); } function ju(t) { t.memoizedState !== null && _(ee, t); var e = H.current, l = zr(e, t.type); e !== l && (_(J, t), _(H, l)); } function bn(t) { J.current === t && (h(H), h(J)), ee.current === t && (h(ee), dn._currentValue = Y); } var Hu = Object.prototype.hasOwnProperty, Bu = C.unstable_scheduleCallback, qu = C.unstable_cancelCallback, sd = C.unstable_shouldYield, cd = C.unstable_requestPaint, Ee = C.unstable_now, fd = C.unstable_getCurrentPriorityLevel, lc = C.unstable_ImmediatePriority, ac = C.unstable_UserBlockingPriority, Sn = C.unstable_NormalPriority, od = C.unstable_LowPriority, nc = C.unstable_IdlePriority, rd = C.log, dd = C.unstable_setDisableYieldValue, ba = null, le = null; function Ke(t) { if (typeof rd == "function" && dd(t), le && typeof le.setStrictMode == "function") try { le.setStrictMode(ba, t); } catch { } } var ae = Math.clz32 ? Math.clz32 : yd, hd = Math.log, gd = Math.LN2; function yd(t) { return t >>>= 0, t === 0 ? 32 : 31 - (hd(t) / gd | 0) | 0; } var xn = 256, Tn = 4194304; function ml(t) { var e = t & 42; if (e !== 0) return e; switch (t & -t) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: return 64; case 128: return 128; case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return t & 4194048; case 4194304: case 8388608: case 16777216: case 33554432: return t & 62914560; case 67108864: return 67108864; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 0; default: return t; } } function En(t, e, l) { var a = t.pendingLanes; if (a === 0) return 0; var n = 0, u = t.suspendedLanes, i = t.pingedLanes; t = t.warmLanes; var s = a & 134217727; return s !== 0 ? (a = s & ~u, a !== 0 ? n = ml(a) : (i &= s, i !== 0 ? n = ml(i) : l || (l = s & ~t, l !== 0 && (n = ml(l))))) : (s = a & ~u, s !== 0 ? n = ml(s) : i !== 0 ? n = ml(i) : l || (l = a & ~t, l !== 0 && (n = ml(l)))), n === 0 ? 0 : e !== 0 && e !== n && (e & u) === 0 && (u = n & -n, l = e & -e, u >= l || u === 32 && (l & 4194048) !== 0) ? e : n; } function Sa(t, e) { return (t.pendingLanes & ~(t.suspendedLanes & ~t.pingedLanes) & e) === 0; } function md(t, e) { switch (t) { case 1: case 2: case 4: case 8: case 64: return e + 250; case 16: case 32: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return e + 5e3; case 4194304: case 8388608: case 16777216: case 33554432: return -1; case 67108864: case 134217728: case 268435456: case 536870912: case 1073741824: return -1; default: return -1; } } function uc() { var t = xn; return xn <<= 1, (xn & 4194048) === 0 && (xn = 256), t; } function ic() { var t = Tn; return Tn <<= 1, (Tn & 62914560) === 0 && (Tn = 4194304), t; } function Yu(t) { for (var e = [], l = 0; 31 > l; l++) e.push(t); return e; } function xa(t, e) { t.pendingLanes |= e, e !== 268435456 && (t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0); } function vd(t, e, l, a, n, u) { var i = t.pendingLanes; t.pendingLanes = l, t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0, t.expiredLanes &= l, t.entangledLanes &= l, t.errorRecoveryDisabledLanes &= l, t.shellSuspendCounter = 0; var s = t.entanglements, c = t.expirationTimes, m = t.hiddenUpdates; for (l = i & ~l; 0 < l; ) { var E = 31 - ae(l), z = 1 << E; s[E] = 0, c[E] = -1; var b = m[E]; if (b !== null) for (m[E] = null, E = 0; E < b.length; E++) { var S = b[E]; S !== null && (S.lane &= -536870913); } l &= ~z; } a !== 0 && sc(t, a, 0), u !== 0 && n === 0 && t.tag !== 0 && (t.suspendedLanes |= u & ~(i & ~e)); } function sc(t, e, l) { t.pendingLanes |= e, t.suspendedLanes &= ~e; var a = 31 - ae(e); t.entangledLanes |= e, t.entanglements[a] = t.entanglements[a] | 1073741824 | l & 4194090; } function cc(t, e) { var l = t.entangledLanes |= e; for (t = t.entanglements; l; ) { var a = 31 - ae(l), n = 1 << a; n & e | t[a] & e && (t[a] |= e), l &= ~n; } } function wu(t) { switch (t) { case 2: t = 1; break; case 8: t = 4; break; case 32: t = 16; break; case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: t = 128; break; case 268435456: t = 134217728; break; default: t = 0; } return t; } function Gu(t) { return t &= -t, 2 < t ? 8 < t ? (t & 134217727) !== 0 ? 32 : 268435456 : 8 : 2; } function fc() { var t = O.p; return t !== 0 ? t : (t = window.event, t === void 0 ? 32 : Lr(t.type)); } function pd(t, e) { var l = O.p; try { return O.p = t, e(); } finally { O.p = l; } } var ke = Math.random().toString(36).slice(2), wt = "__reactFiber$" + ke, Wt = "__reactProps$" + ke, jl = "__reactContainer$" + ke, Xu = "__reactEvents$" + ke, bd = "__reactListeners$" + ke, Sd = "__reactHandles$" + ke, oc = "__reactResources$" + ke, Ta = "__reactMarker$" + ke; function Qu(t) { delete t[wt], delete t[Wt], delete t[Xu], delete t[bd], delete t[Sd]; } function Hl(t) { var e = t[wt]; if (e) return e; for (var l = t.parentNode; l; ) { if (e = l[jl] || l[wt]) { if (l = e.alternate, e.child !== null || l !== null && l.child !== null) for (t = Dr(t); t !== null; ) { if (l = t[wt]) return l; t = Dr(t); } return e; } t = l, l = t.parentNode; } return null; } function Bl(t) { if (t = t[wt] || t[jl]) { var e = t.tag; if (e === 5 || e === 6 || e === 13 || e === 26 || e === 27 || e === 3) return t; } return null; } function Ea(t) { var e = t.tag; if (e === 5 || e === 26 || e === 27 || e === 6) return t.stateNode; throw Error(f(33)); } function ql(t) { var e = t[oc]; return e || (e = t[oc] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), e; } function _t(t) { t[Ta] = !0; } var rc = /* @__PURE__ */ new Set(), dc = {}; function vl(t, e) { Yl(t, e), Yl(t + "Capture", e); } function Yl(t, e) { for (dc[t] = e, t = 0; t < e.length; t++) rc.add(e[t]); } var xd = RegExp( "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" ), hc = {}, gc = {}; function Td(t) { return Hu.call(gc, t) ? !0 : Hu.call(hc, t) ? !1 : xd.test(t) ? gc[t] = !0 : (hc[t] = !0, !1); } function An(t, e, l) { if (Td(e)) if (l === null) t.removeAttribute(e); else { switch (typeof l) { case "undefined": case "function": case "symbol": t.removeAttribute(e); return; case "boolean": var a = e.toLowerCase().slice(0, 5); if (a !== "data-" && a !== "aria-") { t.removeAttribute(e); return; } } t.setAttribute(e, "" + l); } } function zn(t, e, l) { if (l === null) t.removeAttribute(e); else { switch (typeof l) { case "undefined": case "function": case "symbol": case "boolean": t.removeAttribute(e); return; } t.setAttribute(e, "" + l); } } function Re(t, e, l, a) { if (a === null) t.removeAttribute(l); else { switch (typeof a) { case "undefined": case "function": case "symbol": case "boolean": t.removeAttribute(l); return; } t.setAttributeNS(e, l, "" + a); } } var Zu, yc; function wl(t) { if (Zu === void 0) try { throw Error(); } catch (l) { var e = l.stack.trim().match(/\n( *(at )?)/); Zu = e && e[1] || "", yc = -1 < l.stack.indexOf(` at`) ? " (<anonymous>)" : -1 < l.stack.indexOf("@") ? "@unknown:0:0" : ""; } return ` ` + Zu + t + yc; } var Lu = !1; function Vu(t, e) { if (!t || Lu) return ""; Lu = !0; var l = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { var a = { DetermineComponentFrameRoot: function() { try { if (e) { var z = function() { throw Error(); }; if (Object.defineProperty(z.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(z, []); } catch (S) { var b = S; } Reflect.construct(t, [], z); } else { try { z.call(); } catch (S) { b = S; } t.call(z.prototype); } } else { try { throw Error(); } catch (S) { b = S; } (z = t()) && typeof z.catch == "function" && z.catch(function() { }); } } catch (S) { if (S && b && typeof S.stack == "string") return [S.stack, b.stack]; } return [null, null]; } }; a.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; var n = Object.getOwnPropertyDescriptor( a.DetermineComponentFrameRoot, "name" ); n && n.configurable && Object.defineProperty( a.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" } ); var u = a.DetermineComponentFrameRoot(), i = u[0], s = u[1]; if (i && s) { var c = i.split(` `), m = s.split(` `); for (n = a = 0; a < c.length && !c[a].includes("DetermineComponentFrameRoot"); ) a++; for (; n < m.length && !m[n].includes( "DetermineComponentFrameRoot" ); ) n++; if (a === c.length || n === m.length) for (a = c.length - 1, n = m.length - 1; 1 <= a && 0 <= n && c[a] !== m[n]; ) n--; for (; 1 <= a && 0 <= n; a--, n--) if (c[a] !== m[n]) { if (a !== 1 || n !== 1) do if (a--, n--, 0 > n || c[a] !== m[n]) { var E = ` ` + c[a].replace(" at new ", " at "); return t.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", t.displayName)), E; } while (1 <= a && 0 <= n); break; } } } finally { Lu = !1, Error.prepareStackTrace = l; } return (l = t ? t.displayName || t.name : "") ? wl(l) : ""; } function Ed(t) { switch (t.tag) { case 26: case 27: case 5: return wl(t.type); case 16: return wl("Lazy"); case 13: return wl("Suspense"); case 19: return wl("SuspenseList"); case 0: case 15: return Vu(t.type, !1); case 11: return Vu(t.type.render, !1); case 1: return Vu(t.type, !0); case 31: return wl("Activity"); default: return ""; } } function mc(t) { try { var e = ""; do e += Ed(t), t = t.return; while (t); return e; } catch (l) { return ` Error generating stack: ` + l.message + ` ` + l.stack; } } function re(t) { switch (typeof t) { case "bigint": case "boolean": case "number": case "string": case "undefined": return t; case "object": return t; default: return ""; } } function vc(t) { var e = t.type; return (t = t.nodeName) && t.toLowerCase() === "input" && (e === "checkbox" || e === "radio"); } function Ad(t) { var e = vc(t) ? "checked" : "value", l = Object.getOwnPropertyDescriptor( t.constructor.prototype, e ), a = "" + t[e]; if (!t.hasOwnProperty(e) && typeof l < "u" && typeof l.get == "function" && typeof l.set == "function") { var n = l.get, u = l.set; return Object.defineProperty(t, e, { configurable: !0, get: function() { return n.call(this); }, set: function(i) { a = "" + i, u.call(this, i); } }), Object.defineProperty(t, e, { enumerable: l.enumerable }), { getValue: function() { return a; }, setValue: function(i) { a = "" + i; }, stopTracking: function() { t._valueTracker = null, delete t[e]; } }; } } function Mn(t) { t._valueTracker || (t._valueTracker = Ad(t)); } function pc(t) { if (!t) return !1; var e = t._valueTracker; if (!e) return !0; var l = e.getValue(), a = ""; return t && (a = vc(t) ? t.checked ? "true" : "false" : t.value), t = a, t !== l ? (e.setValue(t), !0) : !1; } function _n(t) { if (t = t || (typeof document < "u" ? document : void 0), typeof t > "u") return null; try { return t.activeElement || t.body; } catch { return t.body; } } var zd = /[\n"\\]/g; function de(t) { return t.replace( zd, function(e) { return "\\" + e.charCodeAt(0).toString(16) + " "; } ); } function Ku(t, e, l, a, n, u, i, s) { t.name = "", i != null && typeof i != "function" && typeof i != "symbol" && typeof i != "boolean" ? t.type = i : t.removeAttribute("type"), e != null ? i === "number" ? (e === 0 && t.value === "" || t.value != e) && (t.value = "" + re(e)) : t.value !== "" + re(e) && (t.value = "" + re(e)) : i !== "submit" && i !== "reset" || t.removeAttribute("value"), e != null ? ku(t, i, re(e)) : l != null ? ku(t, i, re(l)) : a != null && t.removeAttribute("value"), n == null && u != null && (t.defaultChecked = !!u), n != null && (t.checked = n && typeof n != "function" && typeof n != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? t.name = "" + re(s) : t.removeAttribute("name"); } function bc(t, e, l, a, n, u, i, s) { if (u != null && typeof u != "function" && typeof u != "symbol" && typeof u != "boolean" && (t.type = u), e != null || l != null) { if (!(u !== "submit" && u !== "reset" || e != null)) return; l = l != null ? "" + re(l) : "", e = e != null ? "" + re(e) : l, s || e === t.value || (t.value = e), t.defaultValue = e; } a = a ?? n, a = typeof a != "function" && typeof a != "symbol" && !!a, t.checked = s ? t.checked : !!a, t.defaultChecked = !!a, i != null && typeof i != "function" && typeof i != "symbol" && typeof i != "boolean" && (t.name = i); } function ku(t, e, l) { e === "number" && _n(t.ownerDocument) === t || t.defaultValue === "" + l || (t.defaultValue = "" + l); } function Gl(t, e, l, a) { if (t = t.options, e) { e = {}; for (var n = 0; n < l.length; n++) e["$" + l[n]] = !0; for (l = 0; l < t.length; l++) n = e.hasOwnProperty("$" + t[l].value), t[l].selected !== n && (t[l].selected = n), n && a && (t[l].defaultSelected = !0); } else { for (l = "" + re(l), e = null, n = 0; n < t.length; n++) { if (t[n].value === l) { t[n].selected = !0, a && (t[n].defaultSelected = !0); return; } e !== null || t[n].disabled || (e = t[n]); } e !== null && (e.selected = !0); } } function Sc(t, e, l) { if (e != null && (e = "" + re(e), e !== t.value && (t.value = e), l == null)) { t.defaultValue !== e && (t.defaultValue = e); return; } t.defaultValue = l != null ? "" + re(l) : ""; } function xc(t, e, l, a) { if (e == null) { if (a != null) { if (l != null) throw Error(f(92)); if (ot(a)) { if (1 < a.length) throw Error(f(93)); a = a[0]; } l = a; } l == null && (l = ""), e = l; } l = re(e), t.defaultValue = l, a = t.textContent, a === l && a !== "" && a !== null && (t.value = a); } function Xl(t, e) { if (e) { var l = t.firstChild; if (l && l === t.lastChild && l.nodeType === 3) { l.nodeValue = e; return; } } t.textContent = e; } var Md = new Set( "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split( " " ) ); function Tc(t, e, l) { var a = e.indexOf("--") === 0; l == null || typeof l == "boolean" || l === "" ? a ? t.setProperty(e, "") : e === "float" ? t.cssFloat = "" : t[e] = "" : a ? t.setProperty(e, l) : typeof l != "number" || l === 0 || Md.has(e) ? e === "float" ? t.cssFloat = l : t[e] = ("" + l).trim() : t[e] = l + "px"; } function Ec(t, e, l) { if (e != null && typeof e != "object") throw Error(f(62)); if (t = t.style, l != null) { for (var a in l) !l.hasOwnProperty(a) || e != nu