//#region \0rolldown/runtime.js
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (e && (t = e(e = 0)), t), s = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), c = (e, n) => {
	let r = {};
	for (var i in e) t(r, i, {
		get: e[i],
		enumerable: !0
	});
	return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
}, l = (e, i, o, s) => {
	if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
		get: ((e) => i[e]).bind(null, d),
		enumerable: !(s = n(i, d)) || s.enumerable
	});
	return e;
}, u = (n, r, a) => (a = n == null ? {} : e(i(n)), l(r || !n || !n.__esModule ? t(a, "default", {
	value: n,
	enumerable: !0
}) : a, n)), d = /* @__PURE__ */ s(((e) => {
	function t(e, t) {
		var n = e.length;
		e.push(t);
		a: for (; 0 < n;) {
			var r = n - 1 >>> 1, a = e[r];
			if (0 < i(a, t)) e[r] = t, e[n] = a, n = r;
			else break a;
		}
	}
	function n(e) {
		return e.length === 0 ? null : e[0];
	}
	function r(e) {
		if (e.length === 0) return null;
		var t = e[0], n = e.pop();
		if (n !== t) {
			e[0] = n;
			a: for (var r = 0, a = e.length, o = a >>> 1; r < o;) {
				var s = 2 * (r + 1) - 1, c = e[s], l = s + 1, u = e[l];
				if (0 > i(c, n)) l < a && 0 > i(u, c) ? (e[r] = u, e[l] = n, r = l) : (e[r] = c, e[s] = n, r = s);
				else if (l < a && 0 > i(u, n)) e[r] = u, e[l] = n, r = l;
				else break a;
			}
		}
		return t;
	}
	function i(e, t) {
		var n = e.sortIndex - t.sortIndex;
		return n === 0 ? e.id - t.id : n;
	}
	if (e.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
		var a = performance;
		e.unstable_now = function() {
			return a.now();
		};
	} else {
		var o = Date, s = o.now();
		e.unstable_now = function() {
			return o.now() - s;
		};
	}
	var c = [], l = [], u = 1, d = null, f = 3, p = !1, m = !1, h = !1, g = !1, _ = typeof setTimeout == "function" ? setTimeout : null, v = typeof clearTimeout == "function" ? clearTimeout : null, y = typeof setImmediate < "u" ? setImmediate : null;
	function b(e) {
		for (var i = n(l); i !== null;) {
			if (i.callback === null) r(l);
			else if (i.startTime <= e) r(l), i.sortIndex = i.expirationTime, t(c, i);
			else break;
			i = n(l);
		}
	}
	function x(e) {
		if (h = !1, b(e), !m) if (n(c) !== null) m = !0, ee || (ee = !0, T());
		else {
			var t = n(l);
			t !== null && re(x, t.startTime - e);
		}
	}
	var ee = !1, S = -1, C = 5, te = -1;
	function ne() {
		return g ? !0 : !(e.unstable_now() - te < C);
	}
	function w() {
		if (g = !1, ee) {
			var t = e.unstable_now();
			te = t;
			var i = !0;
			try {
				a: {
					m = !1, h && (h = !1, v(S), S = -1), p = !0;
					var a = f;
					try {
						b: {
							for (b(t), d = n(c); d !== null && !(d.expirationTime > t && ne());) {
								var o = d.callback;
								if (typeof o == "function") {
									d.callback = null, f = d.priorityLevel;
									var s = o(d.expirationTime <= t);
									if (t = e.unstable_now(), typeof s == "function") {
										d.callback = s, b(t), i = !0;
										break b;
									}
									d === n(c) && r(c), b(t);
								} else r(c);
								d = n(c);
							}
							if (d !== null) i = !0;
							else {
								var u = n(l);
								u !== null && re(x, u.startTime - t), i = !1;
							}
						}
						break a;
					} finally {
						d = null, f = a, p = !1;
					}
					i = void 0;
				}
			} finally {
				i ? T() : ee = !1;
			}
		}
	}
	var T;
	if (typeof y == "function") T = function() {
		y(w);
	};
	else if (typeof MessageChannel < "u") {
		var E = new MessageChannel(), D = E.port2;
		E.port1.onmessage = w, T = function() {
			D.postMessage(null);
		};
	} else T = function() {
		_(w, 0);
	};
	function re(t, n) {
		S = _(function() {
			t(e.unstable_now());
		}, n);
	}
	e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(e) {
		e.callback = null;
	}, e.unstable_forceFrameRate = function(e) {
		0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : C = 0 < e ? Math.floor(1e3 / e) : 5;
	}, e.unstable_getCurrentPriorityLevel = function() {
		return f;
	}, e.unstable_next = function(e) {
		switch (f) {
			case 1:
			case 2:
			case 3:
				var t = 3;
				break;
			default: t = f;
		}
		var n = f;
		f = t;
		try {
			return e();
		} finally {
			f = n;
		}
	}, e.unstable_requestPaint = function() {
		g = !0;
	}, e.unstable_runWithPriority = function(e, t) {
		switch (e) {
			case 1:
			case 2:
			case 3:
			case 4:
			case 5: break;
			default: e = 3;
		}
		var n = f;
		f = e;
		try {
			return t();
		} finally {
			f = n;
		}
	}, e.unstable_scheduleCallback = function(r, i, a) {
		var o = e.unstable_now();
		switch (typeof a == "object" && a ? (a = a.delay, a = typeof a == "number" && 0 < a ? o + a : o) : a = o, r) {
			case 1:
				var s = -1;
				break;
			case 2:
				s = 250;
				break;
			case 5:
				s = 1073741823;
				break;
			case 4:
				s = 1e4;
				break;
			default: s = 5e3;
		}
		return s = a + s, r = {
			id: u++,
			callback: i,
			priorityLevel: r,
			startTime: a,
			expirationTime: s,
			sortIndex: -1
		}, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(S), S = -1) : h = !0, re(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, ee || (ee = !0, T()))), r;
	}, e.unstable_shouldYield = ne, e.unstable_wrapCallback = function(e) {
		var t = f;
		return function() {
			var n = f;
			f = t;
			try {
				return e.apply(this, arguments);
			} finally {
				f = n;
			}
		};
	};
})), f = /* @__PURE__ */ s(((e) => {
	process.env.NODE_ENV !== "production" && (function() {
		function t() {
			if (x = !1, te) {
				var t = e.unstable_now();
				T = t;
				var n = !0;
				try {
					a: {
						y = !1, b && (b = !1, S(ne), ne = -1), v = !0;
						var a = _;
						try {
							b: {
								for (o(t), g = r(p); g !== null && !(g.expirationTime > t && c());) {
									var u = g.callback;
									if (typeof u == "function") {
										g.callback = null, _ = g.priorityLevel;
										var d = u(g.expirationTime <= t);
										if (t = e.unstable_now(), typeof d == "function") {
											g.callback = d, o(t), n = !0;
											break b;
										}
										g === r(p) && i(p), o(t);
									} else i(p);
									g = r(p);
								}
								if (g !== null) n = !0;
								else {
									var f = r(m);
									f !== null && l(s, f.startTime - t), n = !1;
								}
							}
							break a;
						} finally {
							g = null, _ = a, v = !1;
						}
						n = void 0;
					}
				} finally {
					n ? E() : te = !1;
				}
			}
		}
		function n(e, t) {
			var n = e.length;
			e.push(t);
			a: for (; 0 < n;) {
				var r = n - 1 >>> 1, i = e[r];
				if (0 < a(i, t)) e[r] = t, e[n] = i, n = r;
				else break a;
			}
		}
		function r(e) {
			return e.length === 0 ? null : e[0];
		}
		function i(e) {
			if (e.length === 0) return null;
			var t = e[0], n = e.pop();
			if (n !== t) {
				e[0] = n;
				a: for (var r = 0, i = e.length, o = i >>> 1; r < o;) {
					var s = 2 * (r + 1) - 1, c = e[s], l = s + 1, u = e[l];
					if (0 > a(c, n)) l < i && 0 > a(u, c) ? (e[r] = u, e[l] = n, r = l) : (e[r] = c, e[s] = n, r = s);
					else if (l < i && 0 > a(u, n)) e[r] = u, e[l] = n, r = l;
					else break a;
				}
			}
			return t;
		}
		function a(e, t) {
			var n = e.sortIndex - t.sortIndex;
			return n === 0 ? e.id - t.id : n;
		}
		function o(e) {
			for (var t = r(m); t !== null;) {
				if (t.callback === null) i(m);
				else if (t.startTime <= e) i(m), t.sortIndex = t.expirationTime, n(p, t);
				else break;
				t = r(m);
			}
		}
		function s(e) {
			if (b = !1, o(e), !y) if (r(p) !== null) y = !0, te || (te = !0, E());
			else {
				var t = r(m);
				t !== null && l(s, t.startTime - e);
			}
		}
		function c() {
			return x ? !0 : !(e.unstable_now() - T < w);
		}
		function l(t, n) {
			ne = ee(function() {
				t(e.unstable_now());
			}, n);
		}
		if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()), e.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
			var u = performance;
			e.unstable_now = function() {
				return u.now();
			};
		} else {
			var d = Date, f = d.now();
			e.unstable_now = function() {
				return d.now() - f;
			};
		}
		var p = [], m = [], h = 1, g = null, _ = 3, v = !1, y = !1, b = !1, x = !1, ee = typeof setTimeout == "function" ? setTimeout : null, S = typeof clearTimeout == "function" ? clearTimeout : null, C = typeof setImmediate < "u" ? setImmediate : null, te = !1, ne = -1, w = 5, T = -1;
		if (typeof C == "function") var E = function() {
			C(t);
		};
		else if (typeof MessageChannel < "u") {
			var D = new MessageChannel(), re = D.port2;
			D.port1.onmessage = t, E = function() {
				re.postMessage(null);
			};
		} else E = function() {
			ee(t, 0);
		};
		e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(e) {
			e.callback = null;
		}, e.unstable_forceFrameRate = function(e) {
			0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : w = 0 < e ? Math.floor(1e3 / e) : 5;
		}, e.unstable_getCurrentPriorityLevel = function() {
			return _;
		}, e.unstable_next = function(e) {
			switch (_) {
				case 1:
				case 2:
				case 3:
					var t = 3;
					break;
				default: t = _;
			}
			var n = _;
			_ = t;
			try {
				return e();
			} finally {
				_ = n;
			}
		}, e.unstable_requestPaint = function() {
			x = !0;
		}, e.unstable_runWithPriority = function(e, t) {
			switch (e) {
				case 1:
				case 2:
				case 3:
				case 4:
				case 5: break;
				default: e = 3;
			}
			var n = _;
			_ = e;
			try {
				return t();
			} finally {
				_ = n;
			}
		}, e.unstable_scheduleCallback = function(t, i, a) {
			var o = e.unstable_now();
			switch (typeof a == "object" && a ? (a = a.delay, a = typeof a == "number" && 0 < a ? o + a : o) : a = o, t) {
				case 1:
					var c = -1;
					break;
				case 2:
					c = 250;
					break;
				case 5:
					c = 1073741823;
					break;
				case 4:
					c = 1e4;
					break;
				default: c = 5e3;
			}
			return c = a + c, t = {
				id: h++,
				callback: i,
				priorityLevel: t,
				startTime: a,
				expirationTime: c,
				sortIndex: -1
			}, a > o ? (t.sortIndex = a, n(m, t), r(p) === null && t === r(m) && (b ? (S(ne), ne = -1) : b = !0, l(s, a - o))) : (t.sortIndex = c, n(p, t), y || v || (y = !0, te || (te = !0, E()))), t;
		}, e.unstable_shouldYield = c, e.unstable_wrapCallback = function(e) {
			var t = _;
			return function() {
				var n = _;
				_ = t;
				try {
					return e.apply(this, arguments);
				} finally {
					_ = n;
				}
			};
		}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
	})();
})), p = /* @__PURE__ */ s(((e, t) => {
	process.env.NODE_ENV === "production" ? t.exports = d() : t.exports = f();
})), m = /* @__PURE__ */ s(((e) => {
	var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator;
	function m(e) {
		return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
	}
	var h = {
		isMounted: function() {
			return !1;
		},
		enqueueForceUpdate: function() {},
		enqueueReplaceState: function() {},
		enqueueSetState: function() {}
	}, g = Object.assign, _ = {};
	function v(e, t, n) {
		this.props = e, this.context = t, this.refs = _, this.updater = n || h;
	}
	v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) {
		if (typeof e != "object" && typeof e != "function" && e != 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, e, t, "setState");
	}, v.prototype.forceUpdate = function(e) {
		this.updater.enqueueForceUpdate(this, e, "forceUpdate");
	};
	function y() {}
	y.prototype = v.prototype;
	function b(e, t, n) {
		this.props = e, this.context = t, this.refs = _, this.updater = n || h;
	}
	var x = b.prototype = new y();
	x.constructor = b, g(x, v.prototype), x.isPureReactComponent = !0;
	var ee = Array.isArray;
	function S() {}
	var C = {
		H: null,
		A: null,
		T: null,
		S: null
	}, te = Object.prototype.hasOwnProperty;
	function ne(e, n, r) {
		var i = r.ref;
		return {
			$$typeof: t,
			type: e,
			key: n,
			ref: i === void 0 ? null : i,
			props: r
		};
	}
	function w(e, t) {
		return ne(e.type, t, e.props);
	}
	function T(e) {
		return typeof e == "object" && !!e && e.$$typeof === t;
	}
	function E(e) {
		var t = {
			"=": "=0",
			":": "=2"
		};
		return "$" + e.replace(/[=:]/g, function(e) {
			return t[e];
		});
	}
	var D = /\/+/g;
	function re(e, t) {
		return typeof e == "object" && e && e.key != null ? E("" + e.key) : t.toString(36);
	}
	function O(e) {
		switch (e.status) {
			case "fulfilled": return e.value;
			case "rejected": throw e.reason;
			default: switch (typeof e.status == "string" ? e.then(S, S) : (e.status = "pending", e.then(function(t) {
				e.status === "pending" && (e.status = "fulfilled", e.value = t);
			}, function(t) {
				e.status === "pending" && (e.status = "rejected", e.reason = t);
			})), e.status) {
				case "fulfilled": return e.value;
				case "rejected": throw e.reason;
			}
		}
		throw e;
	}
	function k(e, r, i, a, o) {
		var s = typeof e;
		(s === "undefined" || s === "boolean") && (e = null);
		var c = !1;
		if (e === null) c = !0;
		else switch (s) {
			case "bigint":
			case "string":
			case "number":
				c = !0;
				break;
			case "object": switch (e.$$typeof) {
				case t:
				case n:
					c = !0;
					break;
				case d: return c = e._init, k(c(e._payload), r, i, a, o);
			}
		}
		if (c) return o = o(e), c = a === "" ? "." + re(e, 0) : a, ee(o) ? (i = "", c != null && (i = c.replace(D, "$&/") + "/"), k(o, r, i, "", function(e) {
			return e;
		})) : o != null && (T(o) && (o = w(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(D, "$&/") + "/") + c)), r.push(o)), 1;
		c = 0;
		var l = a === "" ? "." : a + ":";
		if (ee(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + re(a, u), c += k(a, r, i, s, o);
		else if (u = m(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + re(a, u++), c += k(a, r, i, s, o);
		else if (s === "object") {
			if (typeof e.then == "function") return k(O(e), r, i, a, o);
			throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");
		}
		return c;
	}
	function A(e, t, n) {
		if (e == null) return e;
		var r = [], i = 0;
		return k(e, r, "", "", function(e) {
			return t.call(n, e, i++);
		}), r;
	}
	function ie(e) {
		if (e._status === -1) {
			var t = e._result;
			t = t(), t.then(function(t) {
				(e._status === 0 || e._status === -1) && (e._status = 1, e._result = t);
			}, function(t) {
				(e._status === 0 || e._status === -1) && (e._status = 2, e._result = t);
			}), e._status === -1 && (e._status = 0, e._result = t);
		}
		if (e._status === 1) return e._result.default;
		throw e._result;
	}
	var j = typeof reportError == "function" ? reportError : function(e) {
		if (typeof window == "object" && typeof window.ErrorEvent == "function") {
			var t = new window.ErrorEvent("error", {
				bubbles: !0,
				cancelable: !0,
				message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
				error: e
			});
			if (!window.dispatchEvent(t)) return;
		} else if (typeof process == "object" && typeof process.emit == "function") {
			process.emit("uncaughtException", e);
			return;
		}
		console.error(e);
	}, ae = {
		map: A,
		forEach: function(e, t, n) {
			A(e, function() {
				t.apply(this, arguments);
			}, n);
		},
		count: function(e) {
			var t = 0;
			return A(e, function() {
				t++;
			}), t;
		},
		toArray: function(e) {
			return A(e, function(e) {
				return e;
			}) || [];
		},
		only: function(e) {
			if (!T(e)) throw Error("React.Children.only expected to receive a single React element child.");
			return e;
		}
	};
	e.Activity = f, e.Children = ae, e.Component = v, e.Fragment = r, e.Profiler = a, e.PureComponent = b, e.StrictMode = i, e.Suspense = l, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, e.__COMPILER_RUNTIME = {
		__proto__: null,
		c: function(e) {
			return C.H.useMemoCache(e);
		}
	}, e.cache = function(e) {
		return function() {
			return e.apply(null, arguments);
		};
	}, e.cacheSignal = function() {
		return null;
	}, e.cloneElement = function(e, t, n) {
		if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
		var r = g({}, e.props), i = e.key;
		if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !te.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]);
		var a = arguments.length - 2;
		if (a === 1) r.children = n;
		else if (1 < a) {
			for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
			r.children = o;
		}
		return ne(e.type, i, r);
	}, e.createContext = function(e) {
		return e = {
			$$typeof: s,
			_currentValue: e,
			_currentValue2: e,
			_threadCount: 0,
			Provider: null,
			Consumer: null
		}, e.Provider = e, e.Consumer = {
			$$typeof: o,
			_context: e
		}, e;
	}, e.createElement = function(e, t, n) {
		var r, i = {}, a = null;
		if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) te.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]);
		var o = arguments.length - 2;
		if (o === 1) i.children = n;
		else if (1 < o) {
			for (var s = Array(o), c = 0; c < o; c++) s[c] = arguments[c + 2];
			i.children = s;
		}
		if (e && e.defaultProps) for (r in o = e.defaultProps, o) i[r] === void 0 && (i[r] = o[r]);
		return ne(e, a, i);
	}, e.createRef = function() {
		return { current: null };
	}, e.forwardRef = function(e) {
		return {
			$$typeof: c,
			render: e
		};
	}, e.isValidElement = T, e.lazy = function(e) {
		return {
			$$typeof: d,
			_payload: {
				_status: -1,
				_result: e
			},
			_init: ie
		};
	}, e.memo = function(e, t) {
		return {
			$$typeof: u,
			type: e,
			compare: t === void 0 ? null : t
		};
	}, e.startTransition = function(e) {
		var t = C.T, n = {};
		C.T = n;
		try {
			var r = e(), i = C.S;
			i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(S, j);
		} catch (e) {
			j(e);
		} finally {
			t !== null && n.types !== null && (t.types = n.types), C.T = t;
		}
	}, e.unstable_useCacheRefresh = function() {
		return C.H.useCacheRefresh();
	}, e.use = function(e) {
		return C.H.use(e);
	}, e.useActionState = function(e, t, n) {
		return C.H.useActionState(e, t, n);
	}, e.useCallback = function(e, t) {
		return C.H.useCallback(e, t);
	}, e.useContext = function(e) {
		return C.H.useContext(e);
	}, e.useDebugValue = function() {}, e.useDeferredValue = function(e, t) {
		return C.H.useDeferredValue(e, t);
	}, e.useEffect = function(e, t) {
		return C.H.useEffect(e, t);
	}, e.useEffectEvent = function(e) {
		return C.H.useEffectEvent(e);
	}, e.useId = function() {
		return C.H.useId();
	}, e.useImperativeHandle = function(e, t, n) {
		return C.H.useImperativeHandle(e, t, n);
	}, e.useInsertionEffect = function(e, t) {
		return C.H.useInsertionEffect(e, t);
	}, e.useLayoutEffect = function(e, t) {
		return C.H.useLayoutEffect(e, t);
	}, e.useMemo = function(e, t) {
		return C.H.useMemo(e, t);
	}, e.useOptimistic = function(e, t) {
		return C.H.useOptimistic(e, t);
	}, e.useReducer = function(e, t, n) {
		return C.H.useReducer(e, t, n);
	}, e.useRef = function(e) {
		return C.H.useRef(e);
	}, e.useState = function(e) {
		return C.H.useState(e);
	}, e.useSyncExternalStore = function(e, t, n) {
		return C.H.useSyncExternalStore(e, t, n);
	}, e.useTransition = function() {
		return C.H.useTransition();
	}, e.version = "19.2.4";
})), h = /* @__PURE__ */ s(((e, t) => {
	process.env.NODE_ENV !== "production" && (function() {
		function n(e, t) {
			Object.defineProperty(a.prototype, e, { get: function() {
				console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
			} });
		}
		function r(e) {
			return typeof e != "object" || !e ? null : (e = ge && e[ge] || e["@@iterator"], typeof e == "function" ? e : null);
		}
		function i(e, t) {
			e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
			var n = e + "." + t;
			_e[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), _e[n] = !0);
		}
		function a(e, t, n) {
			this.props = e, this.context = t, this.refs = ye, this.updater = n || ve;
		}
		function o() {}
		function s(e, t, n) {
			this.props = e, this.context = t, this.refs = ye, this.updater = n || ve;
		}
		function c() {}
		function l(e) {
			return "" + e;
		}
		function u(e) {
			try {
				l(e);
				var t = !1;
			} catch {
				t = !0;
			}
			if (t) {
				t = console;
				var n = t.error, r = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
				return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", r), l(e);
			}
		}
		function d(e) {
			if (e == null) return null;
			if (typeof e == "function") return e.$$typeof === Se ? null : e.displayName || e.name || null;
			if (typeof e == "string") return e;
			switch (e) {
				case ae: return "Fragment";
				case se: return "Profiler";
				case oe: return "StrictMode";
				case de: return "Suspense";
				case fe: return "SuspenseList";
				case he: return "Activity";
			}
			if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
				case j: return "Portal";
				case le: return e.displayName || "Context";
				case ce: return (e._context.displayName || "Context") + ".Consumer";
				case ue:
					var t = e.render;
					return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
				case pe: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
				case me:
					t = e._payload, e = e._init;
					try {
						return d(e(t));
					} catch {}
			}
			return null;
		}
		function f(e) {
			if (e === ae) return "<>";
			if (typeof e == "object" && e && e.$$typeof === me) return "<...>";
			try {
				var t = d(e);
				return t ? "<" + t + ">" : "<...>";
			} catch {
				return "<...>";
			}
		}
		function p() {
			var e = N.A;
			return e === null ? null : e.getOwner();
		}
		function m() {
			return Error("react-stack-top-frame");
		}
		function h(e) {
			if (Ce.call(e, "key")) {
				var t = Object.getOwnPropertyDescriptor(e, "key").get;
				if (t && t.isReactWarning) return !1;
			}
			return e.key !== void 0;
		}
		function g(e, t) {
			function n() {
				Te || (Te = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
			}
			n.isReactWarning = !0, Object.defineProperty(e, "key", {
				get: n,
				configurable: !0
			});
		}
		function _() {
			var e = d(this.type);
			return De[e] || (De[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
		}
		function v(e, t, n, r, i, a) {
			var o = n.ref;
			return e = {
				$$typeof: ie,
				type: e,
				key: t,
				props: n,
				_owner: r
			}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
				enumerable: !1,
				value: null
			}) : Object.defineProperty(e, "ref", {
				enumerable: !1,
				get: _
			}), e._store = {}, Object.defineProperty(e._store, "validated", {
				configurable: !1,
				enumerable: !1,
				writable: !0,
				value: 0
			}), Object.defineProperty(e, "_debugInfo", {
				configurable: !1,
				enumerable: !1,
				writable: !0,
				value: null
			}), Object.defineProperty(e, "_debugStack", {
				configurable: !1,
				enumerable: !1,
				writable: !0,
				value: i
			}), Object.defineProperty(e, "_debugTask", {
				configurable: !1,
				enumerable: !1,
				writable: !0,
				value: a
			}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
		}
		function y(e, t) {
			return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
		}
		function b(e) {
			x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === me && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
		}
		function x(e) {
			return typeof e == "object" && !!e && e.$$typeof === ie;
		}
		function ee(e) {
			var t = {
				"=": "=0",
				":": "=2"
			};
			return "$" + e.replace(/[=:]/g, function(e) {
				return t[e];
			});
		}
		function S(e, t) {
			return typeof e == "object" && e && e.key != null ? (u(e.key), ee("" + e.key)) : t.toString(36);
		}
		function C(e) {
			switch (e.status) {
				case "fulfilled": return e.value;
				case "rejected": throw e.reason;
				default: switch (typeof e.status == "string" ? e.then(c, c) : (e.status = "pending", e.then(function(t) {
					e.status === "pending" && (e.status = "fulfilled", e.value = t);
				}, function(t) {
					e.status === "pending" && (e.status = "rejected", e.reason = t);
				})), e.status) {
					case "fulfilled": return e.value;
					case "rejected": throw e.reason;
				}
			}
			throw e;
		}
		function te(e, t, n, i, a) {
			var o = typeof e;
			(o === "undefined" || o === "boolean") && (e = null);
			var s = !1;
			if (e === null) s = !0;
			else switch (o) {
				case "bigint":
				case "string":
				case "number":
					s = !0;
					break;
				case "object": switch (e.$$typeof) {
					case ie:
					case j:
						s = !0;
						break;
					case me: return s = e._init, te(s(e._payload), t, n, i, a);
				}
			}
			if (s) {
				s = e, a = a(s);
				var c = i === "" ? "." + S(s, 0) : i;
				return xe(a) ? (n = "", c != null && (n = c.replace(je, "$&/") + "/"), te(a, t, n, "", function(e) {
					return e;
				})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(je, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
			}
			if (s = 0, c = i === "" ? "." : i + ":", xe(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + S(i, l), s += te(i, t, n, o, a);
			else if (l = r(e), typeof l == "function") for (l === e.entries && (Ae || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Ae = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + S(i, l++), s += te(i, t, n, o, a);
			else if (o === "object") {
				if (typeof e.then == "function") return te(C(e), t, n, i, a);
				throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
			}
			return s;
		}
		function ne(e, t, n) {
			if (e == null) return e;
			var r = [], i = 0;
			return te(e, r, "", "", function(e) {
				return t.call(n, e, i++);
			}), r;
		}
		function w(e) {
			if (e._status === -1) {
				var t = e._ioInfo;
				t != null && (t.start = t.end = performance.now()), t = e._result;
				var n = t();
				if (n.then(function(t) {
					if (e._status === 0 || e._status === -1) {
						e._status = 1, e._result = t;
						var r = e._ioInfo;
						r != null && (r.end = performance.now()), n.status === void 0 && (n.status = "fulfilled", n.value = t);
					}
				}, function(t) {
					if (e._status === 0 || e._status === -1) {
						e._status = 2, e._result = t;
						var r = e._ioInfo;
						r != null && (r.end = performance.now()), n.status === void 0 && (n.status = "rejected", n.reason = t);
					}
				}), t = e._ioInfo, t != null) {
					t.value = n;
					var r = n.displayName;
					typeof r == "string" && (t.name = r);
				}
				e._status === -1 && (e._status = 0, e._result = n);
			}
			if (e._status === 1) return t = e._result, t === void 0 && console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n  const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", t), "default" in t || console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n  const MyComponent = lazy(() => import('./MyComponent'))", t), t.default;
			throw e._result;
		}
		function T() {
			var e = N.H;
			return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
		}
		function E() {
			N.asyncTransitions--;
		}
		function D(e) {
			if (Ne === null) try {
				var n = ("require" + Math.random()).slice(0, 7);
				Ne = (t && t[n]).call(t, "timers").setImmediate;
			} catch {
				Ne = function(e) {
					!1 === P && (P = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
					var t = new MessageChannel();
					t.port1.onmessage = e, t.port2.postMessage(void 0);
				};
			}
			return Ne(e);
		}
		function re(e) {
			return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
		}
		function O(e, t) {
			t !== Pe - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Pe = t;
		}
		function k(e, t, n) {
			var r = N.actQueue;
			if (r !== null) if (r.length !== 0) try {
				A(r), D(function() {
					return k(e, t, n);
				});
				return;
			} catch (e) {
				N.thrownErrors.push(e);
			}
			else N.actQueue = null;
			0 < N.thrownErrors.length ? (r = re(N.thrownErrors), N.thrownErrors.length = 0, n(r)) : t(e);
		}
		function A(e) {
			if (!Ie) {
				Ie = !0;
				var t = 0;
				try {
					for (; t < e.length; t++) {
						var n = e[t];
						do {
							N.didUsePromise = !1;
							var r = n(!1);
							if (r !== null) {
								if (N.didUsePromise) {
									e[t] = n, e.splice(0, t);
									return;
								}
								n = r;
							} else break;
						} while (1);
					}
					e.length = 0;
				} catch (n) {
					e.splice(0, t + 1), N.thrownErrors.push(n);
				} finally {
					Ie = !1;
				}
			}
		}
		typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
		var ie = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), ae = Symbol.for("react.fragment"), oe = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), ce = Symbol.for("react.consumer"), le = Symbol.for("react.context"), ue = Symbol.for("react.forward_ref"), de = Symbol.for("react.suspense"), fe = Symbol.for("react.suspense_list"), pe = Symbol.for("react.memo"), me = Symbol.for("react.lazy"), he = Symbol.for("react.activity"), ge = Symbol.iterator, _e = {}, ve = {
			isMounted: function() {
				return !1;
			},
			enqueueForceUpdate: function(e) {
				i(e, "forceUpdate");
			},
			enqueueReplaceState: function(e) {
				i(e, "replaceState");
			},
			enqueueSetState: function(e) {
				i(e, "setState");
			}
		}, M = Object.assign, ye = {};
		Object.freeze(ye), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
			if (typeof e != "object" && typeof e != "function" && e != 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, e, t, "setState");
		}, a.prototype.forceUpdate = function(e) {
			this.updater.enqueueForceUpdate(this, e, "forceUpdate");
		};
		var be = {
			isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
			replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
		};
		for (Re in be) be.hasOwnProperty(Re) && n(Re, be[Re]);
		o.prototype = a.prototype, be = s.prototype = new o(), be.constructor = s, M(be, a.prototype), be.isPureReactComponent = !0;
		var xe = Array.isArray, Se = Symbol.for("react.client.reference"), N = {
			H: null,
			A: null,
			T: null,
			S: null,
			actQueue: null,
			asyncTransitions: 0,
			isBatchingLegacy: !1,
			didScheduleLegacyUpdate: !1,
			didUsePromise: !1,
			thrownErrors: [],
			getCurrentStack: null,
			recentlyCreatedOwnerStacks: 0
		}, Ce = Object.prototype.hasOwnProperty, we = console.createTask ? console.createTask : function() {
			return null;
		};
		be = { react_stack_bottom_frame: function(e) {
			return e();
		} };
		var Te, Ee, De = {}, Oe = be.react_stack_bottom_frame.bind(be, m)(), ke = we(f(m)), Ae = !1, je = /\/+/g, Me = typeof reportError == "function" ? reportError : function(e) {
			if (typeof window == "object" && typeof window.ErrorEvent == "function") {
				var t = new window.ErrorEvent("error", {
					bubbles: !0,
					cancelable: !0,
					message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
					error: e
				});
				if (!window.dispatchEvent(t)) return;
			} else if (typeof process == "object" && typeof process.emit == "function") {
				process.emit("uncaughtException", e);
				return;
			}
			console.error(e);
		}, P = !1, Ne = null, Pe = 0, Fe = !1, Ie = !1, Le = typeof queueMicrotask == "function" ? function(e) {
			queueMicrotask(function() {
				return queueMicrotask(e);
			});
		} : D;
		be = Object.freeze({
			__proto__: null,
			c: function(e) {
				return T().useMemoCache(e);
			}
		});
		var Re = {
			map: ne,
			forEach: function(e, t, n) {
				ne(e, function() {
					t.apply(this, arguments);
				}, n);
			},
			count: function(e) {
				var t = 0;
				return ne(e, function() {
					t++;
				}), t;
			},
			toArray: function(e) {
				return ne(e, function(e) {
					return e;
				}) || [];
			},
			only: function(e) {
				if (!x(e)) throw Error("React.Children.only expected to receive a single React element child.");
				return e;
			}
		};
		e.Activity = he, e.Children = Re, e.Component = a, e.Fragment = ae, e.Profiler = se, e.PureComponent = s, e.StrictMode = oe, e.Suspense = de, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = N, e.__COMPILER_RUNTIME = be, e.act = function(e) {
			var t = N.actQueue, n = Pe;
			Pe++;
			var r = N.actQueue = t === null ? [] : t, i = !1;
			try {
				var a = e();
			} catch (e) {
				N.thrownErrors.push(e);
			}
			if (0 < N.thrownErrors.length) throw O(t, n), e = re(N.thrownErrors), N.thrownErrors.length = 0, e;
			if (typeof a == "object" && a && typeof a.then == "function") {
				var o = a;
				return Le(function() {
					i || Fe || (Fe = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
				}), { then: function(e, a) {
					i = !0, o.then(function(i) {
						if (O(t, n), n === 0) {
							try {
								A(r), D(function() {
									return k(i, e, a);
								});
							} catch (e) {
								N.thrownErrors.push(e);
							}
							if (0 < N.thrownErrors.length) {
								var o = re(N.thrownErrors);
								N.thrownErrors.length = 0, a(o);
							}
						} else e(i);
					}, function(e) {
						O(t, n), 0 < N.thrownErrors.length ? (e = re(N.thrownErrors), N.thrownErrors.length = 0, a(e)) : a(e);
					});
				} };
			}
			var s = a;
			if (O(t, n), n === 0 && (A(r), r.length !== 0 && Le(function() {
				i || Fe || (Fe = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
			}), N.actQueue = null), 0 < N.thrownErrors.length) throw e = re(N.thrownErrors), N.thrownErrors.length = 0, e;
			return { then: function(e, t) {
				i = !0, n === 0 ? (N.actQueue = r, D(function() {
					return k(s, e, t);
				})) : e(s);
			} };
		}, e.cache = function(e) {
			return function() {
				return e.apply(null, arguments);
			};
		}, e.cacheSignal = function() {
			return null;
		}, e.captureOwnerStack = function() {
			var e = N.getCurrentStack;
			return e === null ? null : e();
		}, e.cloneElement = function(e, t, n) {
			if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
			var r = M({}, e.props), i = e.key, a = e._owner;
			if (t != null) {
				var o;
				a: {
					if (Ce.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
						o = !1;
						break a;
					}
					o = t.ref !== void 0;
				}
				for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !Ce.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
			}
			var s = arguments.length - 2;
			if (s === 1) r.children = n;
			else if (1 < s) {
				o = Array(s);
				for (var c = 0; c < s; c++) o[c] = arguments[c + 2];
				r.children = o;
			}
			for (r = v(e.type, i, r, a, e._debugStack, e._debugTask), i = 2; i < arguments.length; i++) b(arguments[i]);
			return r;
		}, e.createContext = function(e) {
			return e = {
				$$typeof: le,
				_currentValue: e,
				_currentValue2: e,
				_threadCount: 0,
				Provider: null,
				Consumer: null
			}, e.Provider = e, e.Consumer = {
				$$typeof: ce,
				_context: e
			}, e._currentRenderer = null, e._currentRenderer2 = null, e;
		}, e.createElement = function(e, t, n) {
			for (var r = 2; r < arguments.length; r++) b(arguments[r]);
			r = {};
			var i = null;
			if (t != null) for (c in Ee || !("__self" in t) || "key" in t || (Ee = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), i = "" + t.key), t) Ce.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
			var a = arguments.length - 2;
			if (a === 1) r.children = n;
			else if (1 < a) {
				for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
				Object.freeze && Object.freeze(o), r.children = o;
			}
			if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
			i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
			var c = 1e4 > N.recentlyCreatedOwnerStacks++;
			return v(e, i, r, p(), c ? Error("react-stack-top-frame") : Oe, c ? we(f(e)) : ke);
		}, e.createRef = function() {
			var e = { current: null };
			return Object.seal(e), e;
		}, e.forwardRef = function(e) {
			e != null && e.$$typeof === pe ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
			var t = {
				$$typeof: ue,
				render: e
			}, n;
			return Object.defineProperty(t, "displayName", {
				enumerable: !1,
				configurable: !0,
				get: function() {
					return n;
				},
				set: function(t) {
					n = t, e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
				}
			}), t;
		}, e.isValidElement = x, e.lazy = function(e) {
			e = {
				_status: -1,
				_result: e
			};
			var t = {
				$$typeof: me,
				_payload: e,
				_init: w
			}, n = {
				name: "lazy",
				start: -1,
				end: -1,
				value: null,
				owner: null,
				debugStack: Error("react-stack-top-frame"),
				debugTask: console.createTask ? console.createTask("lazy()") : null
			};
			return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
		}, e.memo = function(e, t) {
			e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
				$$typeof: pe,
				type: e,
				compare: t === void 0 ? null : t
			};
			var n;
			return Object.defineProperty(t, "displayName", {
				enumerable: !1,
				configurable: !0,
				get: function() {
					return n;
				},
				set: function(t) {
					n = t, e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
				}
			}), t;
		}, e.startTransition = function(e) {
			var t = N.T, n = {};
			n._updatedFibers = /* @__PURE__ */ new Set(), N.T = n;
			try {
				var r = e(), i = N.S;
				i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (N.asyncTransitions++, r.then(E, E), r.then(c, Me));
			} catch (e) {
				Me(e);
			} finally {
				t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), N.T = t;
			}
		}, e.unstable_useCacheRefresh = function() {
			return T().useCacheRefresh();
		}, e.use = function(e) {
			return T().use(e);
		}, e.useActionState = function(e, t, n) {
			return T().useActionState(e, t, n);
		}, e.useCallback = function(e, t) {
			return T().useCallback(e, t);
		}, e.useContext = function(e) {
			var t = T();
			return e.$$typeof === ce && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
		}, e.useDebugValue = function(e, t) {
			return T().useDebugValue(e, t);
		}, e.useDeferredValue = function(e, t) {
			return T().useDeferredValue(e, t);
		}, e.useEffect = function(e, t) {
			return e ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"), T().useEffect(e, t);
		}, e.useEffectEvent = function(e) {
			return T().useEffectEvent(e);
		}, e.useId = function() {
			return T().useId();
		}, e.useImperativeHandle = function(e, t, n) {
			return T().useImperativeHandle(e, t, n);
		}, e.useInsertionEffect = function(e, t) {
			return e ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"), T().useInsertionEffect(e, t);
		}, e.useLayoutEffect = function(e, t) {
			return e ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"), T().useLayoutEffect(e, t);
		}, e.useMemo = function(e, t) {
			return T().useMemo(e, t);
		}, e.useOptimistic = function(e, t) {
			return T().useOptimistic(e, t);
		}, e.useReducer = function(e, t, n) {
			return T().useReducer(e, t, n);
		}, e.useRef = function(e) {
			return T().useRef(e);
		}, e.useState = function(e) {
			return T().useState(e);
		}, e.useSyncExternalStore = function(e, t, n) {
			return T().useSyncExternalStore(e, t, n);
		}, e.useTransition = function() {
			return T().useTransition();
		}, e.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
	})();
})), g = /* @__PURE__ */ s(((e, t) => {
	process.env.NODE_ENV === "production" ? t.exports = m() : t.exports = h();
})), _ = /* @__PURE__ */ s(((e) => {
	var t = g();
	function n(e) {
		var t = "https://react.dev/errors/" + e;
		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 #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
	}
	function r() {}
	var i = {
		d: {
			f: r,
			r: function() {
				throw Error(n(522));
			},
			D: r,
			C: r,
			L: r,
			m: r,
			X: r,
			S: r,
			M: r
		},
		p: 0,
		findDOMNode: null
	}, a = Symbol.for("react.portal");
	function o(e, t, n) {
		var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
		return {
			$$typeof: a,
			key: r == null ? null : "" + r,
			children: e,
			containerInfo: t,
			implementation: n
		};
	}
	var s = t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
	function c(e, t) {
		if (e === "font") return "";
		if (typeof t == "string") return t === "use-credentials" ? t : "";
	}
	e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, e.createPortal = function(e, t) {
		var r = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
		if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11) throw Error(n(299));
		return o(e, t, null, r);
	}, e.flushSync = function(e) {
		var t = s.T, n = i.p;
		try {
			if (s.T = null, i.p = 2, e) return e();
		} finally {
			s.T = t, i.p = n, i.d.f();
		}
	}, e.preconnect = function(e, t) {
		typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, i.d.C(e, t));
	}, e.prefetchDNS = function(e) {
		typeof e == "string" && i.d.D(e);
	}, e.preinit = function(e, t) {
		if (typeof e == "string" && t && typeof t.as == "string") {
			var n = t.as, r = c(n, t.crossOrigin), a = typeof t.integrity == "string" ? t.integrity : void 0, o = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
			n === "style" ? i.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, {
				crossOrigin: r,
				integrity: a,
				fetchPriority: o
			}) : n === "script" && i.d.X(e, {
				crossOrigin: r,
				integrity: a,
				fetchPriority: o,
				nonce: typeof t.nonce == "string" ? t.nonce : void 0
			});
		}
	}, e.preinitModule = function(e, t) {
		if (typeof e == "string") if (typeof t == "object" && t) {
			if (t.as == null || t.as === "script") {
				var n = c(t.as, t.crossOrigin);
				i.d.M(e, {
					crossOrigin: n,
					integrity: typeof t.integrity == "string" ? t.integrity : void 0,
					nonce: typeof t.nonce == "string" ? t.nonce : void 0
				});
			}
		} else t ?? i.d.M(e);
	}, e.preload = function(e, t) {
		if (typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") {
			var n = t.as, r = c(n, t.crossOrigin);
			i.d.L(e, n, {
				crossOrigin: r,
				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
			});
		}
	}, e.preloadModule = function(e, t) {
		if (typeof e == "string") if (t) {
			var n = c(t.as, t.crossOrigin);
			i.d.m(e, {
				as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
				crossOrigin: n,
				integrity: typeof t.integrity == "string" ? t.integrity : void 0
			});
		} else i.d.m(e);
	}, e.requestFormReset = function(e) {
		i.d.r(e);
	}, e.unstable_batchedUpdates = function(e, t) {
		return e(t);
	}, e.useFormState = function(e, t, n) {
		return s.H.useFormState(e, t, n);
	}, e.useFormStatus = function() {
		return s.H.useHostTransitionStatus();
	}, e.version = "19.2.4";
})), v = /* @__PURE__ */ s(((e) => {
	process.env.NODE_ENV !== "production" && (function() {
		function t() {}
		function n(e) {
			return "" + e;
		}
		function r(e, t, r) {
			var i = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
			try {
				n(i);
				var a = !1;
			} catch {
				a = !0;
			}
			return a && (console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object"), n(i)), {
				$$typeof: u,
				key: i == null ? null : "" + i,
				children: e,
				containerInfo: t,
				implementation: r
			};
		}
		function i(e, t) {
			if (e === "font") return "";
			if (typeof t == "string") return t === "use-credentials" ? t : "";
		}
		function a(e) {
			return e === null ? "`null`" : e === void 0 ? "`undefined`" : e === "" ? "an empty string" : "something with type \"" + typeof e + "\"";
		}
		function o(e) {
			return e === null ? "`null`" : e === void 0 ? "`undefined`" : e === "" ? "an empty string" : typeof e == "string" ? JSON.stringify(e) : typeof e == "number" ? "`" + e + "`" : "something with type \"" + typeof e + "\"";
		}
		function s() {
			var e = d.H;
			return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
		}
		typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
		var c = g(), l = {
			d: {
				f: t,
				r: function() {
					throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.");
				},
				D: t,
				C: t,
				L: t,
				m: t,
				X: t,
				S: t,
				M: t
			},
			p: 0,
			findDOMNode: null
		}, u = Symbol.for("react.portal"), d = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
		typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = l, e.createPortal = function(e, 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("Target container is not a DOM element.");
			return r(e, t, null, n);
		}, e.flushSync = function(e) {
			var t = d.T, n = l.p;
			try {
				if (d.T = null, l.p = 2, e) return e();
			} finally {
				d.T = t, l.p = n, l.d.f() && console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.");
			}
		}, e.preconnect = function(e, t) {
			typeof e == "string" && e ? t != null && typeof t != "object" ? console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", o(t)) : t != null && typeof t.crossOrigin != "string" && console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", a(t.crossOrigin)) : console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", a(e)), typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, l.d.C(e, t));
		}, e.prefetchDNS = function(e) {
			if (typeof e != "string" || !e) console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", a(e));
			else if (1 < arguments.length) {
				var t = arguments[1];
				typeof t == "object" && t.hasOwnProperty("crossOrigin") ? console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", o(t)) : console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", o(t));
			}
			typeof e == "string" && l.d.D(e);
		}, e.preinit = function(e, t) {
			if (typeof e == "string" && e ? typeof t != "object" || !t ? console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.", o(t)) : t.as !== "style" && t.as !== "script" && console.error("ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".", o(t.as)) : console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", a(e)), typeof e == "string" && t && typeof t.as == "string") {
				var n = t.as, r = i(n, t.crossOrigin), s = typeof t.integrity == "string" ? t.integrity : void 0, c = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
				n === "style" ? l.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, {
					crossOrigin: r,
					integrity: s,
					fetchPriority: c
				}) : n === "script" && l.d.X(e, {
					crossOrigin: r,
					integrity: s,
					fetchPriority: c,
					nonce: typeof t.nonce == "string" ? t.nonce : void 0
				});
			}
		}, e.preinitModule = function(e, t) {
			var n = "";
			if (typeof e == "string" && e || (n += " The `href` argument encountered was " + a(e) + "."), t !== void 0 && typeof t != "object" ? n += " The `options` argument encountered was " + a(t) + "." : t && "as" in t && t.as !== "script" && (n += " The `as` option encountered was " + o(t.as) + "."), n) console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", n);
			else switch (n = t && typeof t.as == "string" ? t.as : "script", n) {
				case "script": break;
				default: n = o(n), console.error("ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)", n, e);
			}
			typeof e == "string" && (typeof t == "object" && t ? (t.as == null || t.as === "script") && (n = i(t.as, t.crossOrigin), l.d.M(e, {
				crossOrigin: n,
				integrity: typeof t.integrity == "string" ? t.integrity : void 0,
				nonce: typeof t.nonce == "string" ? t.nonce : void 0
			})) : t ?? l.d.M(e));
		}, e.preload = function(e, t) {
			var n = "";
			if (typeof e == "string" && e || (n += " The `href` argument encountered was " + a(e) + "."), typeof t != "object" || !t ? n += " The `options` argument encountered was " + a(t) + "." : typeof t.as == "string" && t.as || (n += " The `as` option encountered was " + a(t.as) + "."), n && console.error("ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s", n), typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") {
				n = t.as;
				var r = i(n, t.crossOrigin);
				l.d.L(e, n, {
					crossOrigin: r,
					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
				});
			}
		}, e.preloadModule = function(e, t) {
			var n = "";
			typeof e == "string" && e || (n += " The `href` argument encountered was " + a(e) + "."), t !== void 0 && typeof t != "object" ? n += " The `options` argument encountered was " + a(t) + "." : t && "as" in t && typeof t.as != "string" && (n += " The `as` option encountered was " + a(t.as) + "."), n && console.error("ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s", n), typeof e == "string" && (t ? (n = i(t.as, t.crossOrigin), l.d.m(e, {
				as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
				crossOrigin: n,
				integrity: typeof t.integrity == "string" ? t.integrity : void 0
			})) : l.d.m(e));
		}, e.requestFormReset = function(e) {
			l.d.r(e);
		}, e.unstable_batchedUpdates = function(e, t) {
			return e(t);
		}, e.useFormState = function(e, t, n) {
			return s().useFormState(e, t, n);
		}, e.useFormStatus = function() {
			return s().useHostTransitionStatus();
		}, e.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
	})();
})), y = /* @__PURE__ */ s(((e, t) => {
	function n() {
		if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
			if (process.env.NODE_ENV !== "production") throw Error("^_^");
			try {
				__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
			} catch (e) {
				console.error(e);
			}
		}
	}
	process.env.NODE_ENV === "production" ? (n(), t.exports = _()) : t.exports = v();
})), b = /* @__PURE__ */ s(((e) => {
	var t = p(), n = g(), r = y();
	function i(e) {
		var t = "https://react.dev/errors/" + e;
		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 #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
	}
	function a(e) {
		return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11);
	}
	function o(e) {
		var t = e, n = e;
		if (e.alternate) for (; t.return;) t = t.return;
		else {
			e = t;
			do
				t = e, t.flags & 4098 && (n = t.return), e = t.return;
			while (e);
		}
		return t.tag === 3 ? n : null;
	}
	function s(e) {
		if (e.tag === 13) {
			var t = e.memoizedState;
			if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;
		}
		return null;
	}
	function c(e) {
		if (e.tag === 31) {
			var t = e.memoizedState;
			if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;
		}
		return null;
	}
	function l(e) {
		if (o(e) !== e) throw Error(i(188));
	}
	function u(e) {
		var t = e.alternate;
		if (!t) {
			if (t = o(e), t === null) throw Error(i(188));
			return t === e ? e : null;
		}
		for (var n = e, r = t;;) {
			var a = n.return;
			if (a === null) break;
			var s = a.alternate;
			if (s === null) {
				if (r = a.return, r !== null) {
					n = r;
					continue;
				}
				break;
			}
			if (a.child === s.child) {
				for (s = a.child; s;) {
					if (s === n) return l(a), e;
					if (s === r) return l(a), t;
					s = s.sibling;
				}
				throw Error(i(188));
			}
			if (n.return !== r.return) n = a, r = s;
			else {
				for (var c = !1, u = a.child; u;) {
					if (u === n) {
						c = !0, n = a, r = s;
						break;
					}
					if (u === r) {
						c = !0, r = a, n = s;
						break;
					}
					u = u.sibling;
				}
				if (!c) {
					for (u = s.child; u;) {
						if (u === n) {
							c = !0, n = s, r = a;
							break;
						}
						if (u === r) {
							c = !0, r = s, n = a;
							break;
						}
						u = u.sibling;
					}
					if (!c) throw Error(i(189));
				}
			}
			if (n.alternate !== r) throw Error(i(190));
		}
		if (n.tag !== 3) throw Error(i(188));
		return n.stateNode.current === n ? e : t;
	}
	function d(e) {
		var t = e.tag;
		if (t === 5 || t === 26 || t === 27 || t === 6) return e;
		for (e = e.child; e !== null;) {
			if (t = d(e), t !== null) return t;
			e = e.sibling;
		}
		return null;
	}
	var f = Object.assign, m = Symbol.for("react.element"), h = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), te = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), D = Symbol.for("react.memo_cache_sentinel"), re = Symbol.iterator;
	function O(e) {
		return typeof e != "object" || !e ? null : (e = re && e[re] || e["@@iterator"], typeof e == "function" ? e : null);
	}
	var k = Symbol.for("react.client.reference");
	function A(e) {
		if (e == null) return null;
		if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
		if (typeof e == "string") return e;
		switch (e) {
			case v: return "Fragment";
			case x: return "Profiler";
			case b: return "StrictMode";
			case te: return "Suspense";
			case ne: return "SuspenseList";
			case E: return "Activity";
		}
		if (typeof e == "object") switch (e.$$typeof) {
			case _: return "Portal";
			case S: return e.displayName || "Context";
			case ee: return (e._context.displayName || "Context") + ".Consumer";
			case C:
				var t = e.render;
				return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
			case w: return t = e.displayName || null, t === null ? A(e.type) || "Memo" : t;
			case T:
				t = e._payload, e = e._init;
				try {
					return A(e(t));
				} catch {}
		}
		return null;
	}
	var ie = Array.isArray, j = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ae = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, oe = {
		pending: !1,
		data: null,
		method: null,
		action: null
	}, se = [], ce = -1;
	function le(e) {
		return { current: e };
	}
	function ue(e) {
		0 > ce || (e.current = se[ce], se[ce] = null, ce--);
	}
	function de(e, t) {
		ce++, se[ce] = e.current, e.current = t;
	}
	var fe = le(null), pe = le(null), me = le(null), he = le(null);
	function ge(e, t) {
		switch (de(me, t), de(pe, e), de(fe, null), t.nodeType) {
			case 9:
			case 11:
				e = (e = t.documentElement) && (e = e.namespaceURI) ? Jd(e) : 0;
				break;
			default: if (e = t.tagName, t = t.namespaceURI) t = Jd(t), e = Yd(t, e);
			else switch (e) {
				case "svg":
					e = 1;
					break;
				case "math":
					e = 2;
					break;
				default: e = 0;
			}
		}
		ue(fe), de(fe, e);
	}
	function _e() {
		ue(fe), ue(pe), ue(me);
	}
	function ve(e) {
		e.memoizedState !== null && de(he, e);
		var t = fe.current, n = Yd(t, e.type);
		t !== n && (de(pe, e), de(fe, n));
	}
	function M(e) {
		pe.current === e && (ue(fe), ue(pe)), he.current === e && (ue(he), ip._currentValue = oe);
	}
	var ye, be;
	function xe(e) {
		if (ye === void 0) try {
			throw Error();
		} catch (e) {
			var t = e.stack.trim().match(/\n( *(at )?)/);
			ye = t && t[1] || "", be = -1 < e.stack.indexOf("\n    at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
		}
		return "\n" + ye + e + be;
	}
	var Se = !1;
	function N(e, t) {
		if (!e || Se) return "";
		Se = !0;
		var n = Error.prepareStackTrace;
		Error.prepareStackTrace = void 0;
		try {
			var r = { DetermineComponentFrameRoot: function() {
				try {
					if (t) {
						var n = function() {
							throw Error();
						};
						if (Object.defineProperty(n.prototype, "props", { set: function() {
							throw Error();
						} }), typeof Reflect == "object" && Reflect.construct) {
							try {
								Reflect.construct(n, []);
							} catch (e) {
								var r = e;
							}
							Reflect.construct(e, [], n);
						} else {
							try {
								n.call();
							} catch (e) {
								r = e;
							}
							e.call(n.prototype);
						}
					} else {
						try {
							throw Error();
						} catch (e) {
							r = e;
						}
						(n = e()) && typeof n.catch == "function" && n.catch(function() {});
					}
				} catch (e) {
					if (e && r && typeof e.stack == "string") return [e.stack, r.stack];
				}
				return [null, null];
			} };
			r.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
			var i = Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot, "name");
			i && i.configurable && Object.defineProperty(r.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });
			var a = r.DetermineComponentFrameRoot(), o = a[0], s = a[1];
			if (o && s) {
				var c = o.split("\n"), l = s.split("\n");
				for (i = r = 0; r < c.length && !c[r].includes("DetermineComponentFrameRoot");) r++;
				for (; i < l.length && !l[i].includes("DetermineComponentFrameRoot");) i++;
				if (r === c.length || i === l.length) for (r = c.length - 1, i = l.length - 1; 1 <= r && 0 <= i && c[r] !== l[i];) i--;
				for (; 1 <= r && 0 <= i; r--, i--) if (c[r] !== l[i]) {
					if (r !== 1 || i !== 1) do
						if (r--, i--, 0 > i || c[r] !== l[i]) {
							var u = "\n" + c[r].replace(" at new ", " at ");
							return e.displayName && u.includes("<anonymous>") && (u = u.replace("<anonymous>", e.displayName)), u;
						}
					while (1 <= r && 0 <= i);
					break;
				}
			}
		} finally {
			Se = !1, Error.prepareStackTrace = n;
		}
		return (n = e ? e.displayName || e.name : "") ? xe(n) : "";
	}
	function Ce(e, t) {
		switch (e.tag) {
			case 26:
			case 27:
			case 5: return xe(e.type);
			case 16: return xe("Lazy");
			case 13: return e.child !== t && t !== null ? xe("Suspense Fallback") : xe("Suspense");
			case 19: return xe("SuspenseList");
			case 0:
			case 15: return N(e.type, !1);
			case 11: return N(e.type.render, !1);
			case 1: return N(e.type, !0);
			case 31: return xe("Activity");
			default: return "";
		}
	}
	function we(e) {
		try {
			var t = "", n = null;
			do
				t += Ce(e, n), n = e, e = e.return;
			while (e);
			return t;
		} catch (e) {
			return "\nError generating stack: " + e.message + "\n" + e.stack;
		}
	}
	var Te = Object.prototype.hasOwnProperty, Ee = t.unstable_scheduleCallback, De = t.unstable_cancelCallback, Oe = t.unstable_shouldYield, ke = t.unstable_requestPaint, Ae = t.unstable_now, je = t.unstable_getCurrentPriorityLevel, Me = t.unstable_ImmediatePriority, P = t.unstable_UserBlockingPriority, Ne = t.unstable_NormalPriority, Pe = t.unstable_LowPriority, Fe = t.unstable_IdlePriority, Ie = t.log, Le = t.unstable_setDisableYieldValue, Re = null, ze = null;
	function Be(e) {
		if (typeof Ie == "function" && Le(e), ze && typeof ze.setStrictMode == "function") try {
			ze.setStrictMode(Re, e);
		} catch {}
	}
	var Ve = Math.clz32 ? Math.clz32 : We, He = Math.log, Ue = Math.LN2;
	function We(e) {
		return e >>>= 0, e === 0 ? 32 : 31 - (He(e) / Ue | 0) | 0;
	}
	var Ge = 256, Ke = 262144, qe = 4194304;
	function Je(e) {
		var t = e & 42;
		if (t !== 0) return t;
		switch (e & -e) {
			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: return e & 261888;
			case 262144:
			case 524288:
			case 1048576:
			case 2097152: return e & 3932160;
			case 4194304:
			case 8388608:
			case 16777216:
			case 33554432: return e & 62914560;
			case 67108864: return 67108864;
			case 134217728: return 134217728;
			case 268435456: return 268435456;
			case 536870912: return 536870912;
			case 1073741824: return 0;
			default: return e;
		}
	}
	function Ye(e, t, n) {
		var r = e.pendingLanes;
		if (r === 0) return 0;
		var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
		e = e.warmLanes;
		var s = r & 134217727;
		return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = Je(n))) : i = Je(o) : i = Je(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = Je(n))) : i = Je(o)) : i = Je(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
	}
	function Xe(e, t) {
		return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
	}
	function Ze(e, t) {
		switch (e) {
			case 1:
			case 2:
			case 4:
			case 8:
			case 64: return t + 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 t + 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 Qe() {
		var e = qe;
		return qe <<= 1, !(qe & 62914560) && (qe = 4194304), e;
	}
	function $e(e) {
		for (var t = [], n = 0; 31 > n; n++) t.push(e);
		return t;
	}
	function F(e, t) {
		e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
	}
	function et(e, t, n, r, i, a) {
		var o = e.pendingLanes;
		e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;
		var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
		for (n = o & ~n; 0 < n;) {
			var u = 31 - Ve(n), d = 1 << u;
			s[u] = 0, c[u] = -1;
			var f = l[u];
			if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
				var p = f[u];
				p !== null && (p.lane &= -536870913);
			}
			n &= ~d;
		}
		r !== 0 && tt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
	}
	function tt(e, t, n) {
		e.pendingLanes |= t, e.suspendedLanes &= ~t;
		var r = 31 - Ve(t);
		e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
	}
	function nt(e, t) {
		var n = e.entangledLanes |= t;
		for (e = e.entanglements; n;) {
			var r = 31 - Ve(n), i = 1 << r;
			i & t | e[r] & t && (e[r] |= t), n &= ~i;
		}
	}
	function rt(e, t) {
		var n = t & -t;
		return n = n & 42 ? 1 : it(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
	}
	function it(e) {
		switch (e) {
			case 2:
				e = 1;
				break;
			case 8:
				e = 4;
				break;
			case 32:
				e = 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:
				e = 128;
				break;
			case 268435456:
				e = 134217728;
				break;
			default: e = 0;
		}
		return e;
	}
	function at(e) {
		return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
	}
	function ot() {
		var e = ae.p;
		return e === 0 ? (e = window.event, e === void 0 ? 32 : bp(e.type)) : e;
	}
	function st(e, t) {
		var n = ae.p;
		try {
			return ae.p = e, t();
		} finally {
			ae.p = n;
		}
	}
	var ct = Math.random().toString(36).slice(2), lt = "__reactFiber$" + ct, ut = "__reactProps$" + ct, dt = "__reactContainer$" + ct, ft = "__reactEvents$" + ct, pt = "__reactListeners$" + ct, mt = "__reactHandles$" + ct, ht = "__reactResources$" + ct, gt = "__reactMarker$" + ct;
	function I(e) {
		delete e[lt], delete e[ut], delete e[ft], delete e[pt], delete e[mt];
	}
	function _t(e) {
		var t = e[lt];
		if (t) return t;
		for (var n = e.parentNode; n;) {
			if (t = n[dt] || n[lt]) {
				if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = vf(e); e !== null;) {
					if (n = e[lt]) return n;
					e = vf(e);
				}
				return t;
			}
			e = n, n = e.parentNode;
		}
		return null;
	}
	function vt(e) {
		if (e = e[lt] || e[dt]) {
			var t = e.tag;
			if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
		}
		return null;
	}
	function yt(e) {
		var t = e.tag;
		if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
		throw Error(i(33));
	}
	function bt(e) {
		var t = e[ht];
		return t ||= e[ht] = {
			hoistableStyles: /* @__PURE__ */ new Map(),
			hoistableScripts: /* @__PURE__ */ new Map()
		}, t;
	}
	function L(e) {
		e[gt] = !0;
	}
	var xt = /* @__PURE__ */ new Set(), St = {};
	function R(e, t) {
		Ct(e, t), Ct(e + "Capture", t);
	}
	function Ct(e, t) {
		for (St[e] = t, e = 0; e < t.length; e++) xt.add(t[e]);
	}
	var wt = 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]*$"), Tt = {}, Et = {};
	function Dt(e) {
		return Te.call(Et, e) ? !0 : Te.call(Tt, e) ? !1 : wt.test(e) ? Et[e] = !0 : (Tt[e] = !0, !1);
	}
	function Ot(e, t, n) {
		if (Dt(t)) if (n === null) e.removeAttribute(t);
		else {
			switch (typeof n) {
				case "undefined":
				case "function":
				case "symbol":
					e.removeAttribute(t);
					return;
				case "boolean":
					var r = t.toLowerCase().slice(0, 5);
					if (r !== "data-" && r !== "aria-") {
						e.removeAttribute(t);
						return;
					}
			}
			e.setAttribute(t, "" + n);
		}
	}
	function kt(e, t, n) {
		if (n === null) e.removeAttribute(t);
		else {
			switch (typeof n) {
				case "undefined":
				case "function":
				case "symbol":
				case "boolean":
					e.removeAttribute(t);
					return;
			}
			e.setAttribute(t, "" + n);
		}
	}
	function At(e, t, n, r) {
		if (r === null) e.removeAttribute(n);
		else {
			switch (typeof r) {
				case "undefined":
				case "function":
				case "symbol":
				case "boolean":
					e.removeAttribute(n);
					return;
			}
			e.setAttributeNS(t, n, "" + r);
		}
	}
	function jt(e) {
		switch (typeof e) {
			case "bigint":
			case "boolean":
			case "number":
			case "string":
			case "undefined": return e;
			case "object": return e;
			default: return "";
		}
	}
	function z(e) {
		var t = e.type;
		return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
	}
	function Mt(e, t, n) {
		var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
		if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {
			var i = r.get, a = r.set;
			return Object.defineProperty(e, t, {
				configurable: !0,
				get: function() {
					return i.call(this);
				},
				set: function(e) {
					n = "" + e, a.call(this, e);
				}
			}), Object.defineProperty(e, t, { enumerable: r.enumerable }), {
				getValue: function() {
					return n;
				},
				setValue: function(e) {
					n = "" + e;
				},
				stopTracking: function() {
					e._valueTracker = null, delete e[t];
				}
			};
		}
	}
	function Nt(e) {
		if (!e._valueTracker) {
			var t = z(e) ? "checked" : "value";
			e._valueTracker = Mt(e, t, "" + e[t]);
		}
	}
	function Pt(e) {
		if (!e) return !1;
		var t = e._valueTracker;
		if (!t) return !0;
		var n = t.getValue(), r = "";
		return e && (r = z(e) ? e.checked ? "true" : "false" : e.value), e = r, e === n ? !1 : (t.setValue(e), !0);
	}
	function Ft(e) {
		if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
		try {
			return e.activeElement || e.body;
		} catch {
			return e.body;
		}
	}
	var It = /[\n"\\]/g;
	function Lt(e) {
		return e.replace(It, function(e) {
			return "\\" + e.charCodeAt(0).toString(16) + " ";
		});
	}
	function Rt(e, t, n, r, i, a, o, s) {
		e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + jt(t)) : e.value !== "" + jt(t) && (e.value = "" + jt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : Bt(e, o, jt(n)) : Bt(e, o, jt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + jt(s) : e.removeAttribute("name");
	}
	function zt(e, t, n, r, i, a, o, s) {
		if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {
			if (!(a !== "submit" && a !== "reset" || t != null)) {
				Nt(e);
				return;
			}
			n = n == null ? "" : "" + jt(n), t = t == null ? n : "" + jt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
		}
		r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Nt(e);
	}
	function Bt(e, t, n) {
		t === "number" && Ft(e.ownerDocument) === e || e.defaultValue === "" + n || (e.defaultValue = "" + n);
	}
	function Vt(e, t, n, r) {
		if (e = e.options, t) {
			t = {};
			for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;
			for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);
		} else {
			for (n = "" + jt(n), t = null, i = 0; i < e.length; i++) {
				if (e[i].value === n) {
					e[i].selected = !0, r && (e[i].defaultSelected = !0);
					return;
				}
				t !== null || e[i].disabled || (t = e[i]);
			}
			t !== null && (t.selected = !0);
		}
	}
	function Ht(e, t, n) {
		if (t != null && (t = "" + jt(t), t !== e.value && (e.value = t), n == null)) {
			e.defaultValue !== t && (e.defaultValue = t);
			return;
		}
		e.defaultValue = n == null ? "" : "" + jt(n);
	}
	function Ut(e, t, n, r) {
		if (t == null) {
			if (r != null) {
				if (n != null) throw Error(i(92));
				if (ie(r)) {
					if (1 < r.length) throw Error(i(93));
					r = r[0];
				}
				n = r;
			}
			n ??= "", t = n;
		}
		n = jt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Nt(e);
	}
	function Wt(e, t) {
		if (t) {
			var n = e.firstChild;
			if (n && n === e.lastChild && n.nodeType === 3) {
				n.nodeValue = t;
				return;
			}
		}
		e.textContent = t;
	}
	var Gt = 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 Kt(e, t, n) {
		var r = t.indexOf("--") === 0;
		n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || Gt.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
	}
	function qt(e, t, n) {
		if (t != null && typeof t != "object") throw Error(i(62));
		if (e = e.style, n != null) {
			for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "");
			for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && Kt(e, a, r);
		} else for (var o in t) t.hasOwnProperty(o) && Kt(e, o, t[o]);
	}
	function Jt(e) {
		if (e.indexOf("-") === -1) return !1;
		switch (e) {
			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": return !1;
			default: return !0;
		}
	}
	var Yt = new Map([
		["acceptCharset", "accept-charset"],
		["htmlFor", "for"],
		["httpEquiv", "http-equiv"],
		["crossOrigin", "crossorigin"],
		["accentHeight", "accent-height"],
		["alignmentBaseline", "alignment-baseline"],
		["arabicForm", "arabic-form"],
		["baselineShift", "baseline-shift"],
		["capHeight", "cap-height"],
		["clipPath", "clip-path"],
		["clipRule", "clip-rule"],
		["colorInterpolation", "color-interpolation"],
		["colorInterpolationFilters", "color-interpolation-filters"],
		["colorProfile", "color-profile"],
		["colorRendering", "color-rendering"],
		["dominantBaseline", "dominant-baseline"],
		["enableBackground", "enable-background"],
		["fillOpacity", "fill-opacity"],
		["fillRule", "fill-rule"],
		["floodColor", "flood-color"],
		["floodOpacity", "flood-opacity"],
		["fontFamily", "font-family"],
		["fontSize", "font-size"],
		["fontSizeAdjust", "font-size-adjust"],
		["fontStretch", "font-stretch"],
		["fontStyle", "font-style"],
		["fontVariant", "font-variant"],
		["fontWeight", "font-weight"],
		["glyphName", "glyph-name"],
		["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
		["glyphOrientationVertical", "glyph-orientation-vertical"],
		["horizAdvX", "horiz-adv-x"],
		["horizOriginX", "horiz-origin-x"],
		["imageRendering", "image-rendering"],
		["letterSpacing", "letter-spacing"],
		["lightingColor", "lighting-color"],
		["markerEnd", "marker-end"],
		["markerMid", "marker-mid"],
		["markerStart", "marker-start"],
		["overlinePosition", "overline-position"],
		["overlineThickness", "overline-thickness"],
		["paintOrder", "paint-order"],
		["panose-1", "panose-1"],
		["pointerEvents", "pointer-events"],
		["renderingIntent", "rendering-intent"],
		["shapeRendering", "shape-rendering"],
		["stopColor", "stop-color"],
		["stopOpacity", "stop-opacity"],
		["strikethroughPosition", "strikethrough-position"],
		["strikethroughThickness", "strikethrough-thickness"],
		["strokeDasharray", "stroke-dasharray"],
		["strokeDashoffset", "stroke-dashoffset"],
		["strokeLinecap", "stroke-linecap"],
		["strokeLinejoin", "stroke-linejoin"],
		["strokeMiterlimit", "stroke-miterlimit"],
		["strokeOpacity", "stroke-opacity"],
		["strokeWidth", "stroke-width"],
		["textAnchor", "text-anchor"],
		["textDecoration", "text-decoration"],
		["textRendering", "text-rendering"],
		["transformOrigin", "transform-origin"],
		["underlinePosition", "underline-position"],
		["underlineThickness", "underline-thickness"],
		["unicodeBidi", "unicode-bidi"],
		["unicodeRange", "unicode-range"],
		["unitsPerEm", "units-per-em"],
		["vAlphabetic", "v-alphabetic"],
		["vHanging", "v-hanging"],
		["vIdeographic", "v-ideographic"],
		["vMathematical", "v-mathematical"],
		["vectorEffect", "vector-effect"],
		["vertAdvY", "vert-adv-y"],
		["vertOriginX", "vert-origin-x"],
		["vertOriginY", "vert-origin-y"],
		["wordSpacing", "word-spacing"],
		["writingMode", "writing-mode"],
		["xmlnsXlink", "xmlns:xlink"],
		["xHeight", "x-height"]
	]), Xt = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
	function Zt(e) {
		return Xt.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
	}
	function Qt() {}
	var $t = null;
	function en(e) {
		return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
	}
	var tn = null, nn = null;
	function B(e) {
		var t = vt(e);
		if (t && (e = t.stateNode)) {
			var n = e[ut] || null;
			a: switch (e = t.stateNode, t.type) {
				case "input":
					if (Rt(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
						for (n = e; n.parentNode;) n = n.parentNode;
						for (n = n.querySelectorAll("input[name=\"" + Lt("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
							var r = n[t];
							if (r !== e && r.form === e.form) {
								var a = r[ut] || null;
								if (!a) throw Error(i(90));
								Rt(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
							}
						}
						for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Pt(r);
					}
					break a;
				case "textarea":
					Ht(e, n.value, n.defaultValue);
					break a;
				case "select": t = n.value, t != null && Vt(e, !!n.multiple, t, !1);
			}
		}
	}
	var rn = !1;
	function an(e, t, n) {
		if (rn) return e(t, n);
		rn = !0;
		try {
			return e(t);
		} finally {
			if (rn = !1, (tn !== null || nn !== null) && (wu(), tn && (t = tn, e = nn, nn = tn = null, B(t), e))) for (t = 0; t < e.length; t++) B(e[t]);
		}
	}
	function on(e, t) {
		var n = e.stateNode;
		if (n === null) return null;
		var r = n[ut] || null;
		if (r === null) return null;
		n = r[t];
		a: switch (t) {
			case "onClick":
			case "onClickCapture":
			case "onDoubleClick":
			case "onDoubleClickCapture":
			case "onMouseDown":
			case "onMouseDownCapture":
			case "onMouseMove":
			case "onMouseMoveCapture":
			case "onMouseUp":
			case "onMouseUpCapture":
			case "onMouseEnter":
				(r = !r.disabled) || (e = e.type, r = !(e === "button" || e === "input" || e === "select" || e === "textarea")), e = !r;
				break a;
			default: e = !1;
		}
		if (e) return null;
		if (n && typeof n != "function") throw Error(i(231, t, typeof n));
		return n;
	}
	var sn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), cn = !1;
	if (sn) try {
		var ln = {};
		Object.defineProperty(ln, "passive", { get: function() {
			cn = !0;
		} }), window.addEventListener("test", ln, ln), window.removeEventListener("test", ln, ln);
	} catch {
		cn = !1;
	}
	var un = null, dn = null, fn = null;
	function pn() {
		if (fn) return fn;
		var e, t = dn, n = t.length, r, i = "value" in un ? un.value : un.textContent, a = i.length;
		for (e = 0; e < n && t[e] === i[e]; e++);
		var o = n - e;
		for (r = 1; r <= o && t[n - r] === i[a - r]; r++);
		return fn = i.slice(e, 1 < r ? 1 - r : void 0);
	}
	function mn(e) {
		var t = e.keyCode;
		return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;
	}
	function hn() {
		return !0;
	}
	function gn() {
		return !1;
	}
	function _n(e) {
		function t(t, n, r, i, a) {
			for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);
			return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? hn : gn, this.isPropagationStopped = gn, this;
		}
		return f(t.prototype, {
			preventDefault: function() {
				this.defaultPrevented = !0;
				var e = this.nativeEvent;
				e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = hn);
			},
			stopPropagation: function() {
				var e = this.nativeEvent;
				e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = hn);
			},
			persist: function() {},
			isPersistent: hn
		}), t;
	}
	var vn = {
		eventPhase: 0,
		bubbles: 0,
		cancelable: 0,
		timeStamp: function(e) {
			return e.timeStamp || Date.now();
		},
		defaultPrevented: 0,
		isTrusted: 0
	}, yn = _n(vn), bn = f({}, vn, {
		view: 0,
		detail: 0
	}), xn = _n(bn), Sn, Cn, wn, Tn = f({}, bn, {
		screenX: 0,
		screenY: 0,
		clientX: 0,
		clientY: 0,
		pageX: 0,
		pageY: 0,
		ctrlKey: 0,
		shiftKey: 0,
		altKey: 0,
		metaKey: 0,
		getModifierState: In,
		button: 0,
		buttons: 0,
		relatedTarget: function(e) {
			return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
		},
		movementX: function(e) {
			return "movementX" in e ? e.movementX : (e !== wn && (wn && e.type === "mousemove" ? (Sn = e.screenX - wn.screenX, Cn = e.screenY - wn.screenY) : Cn = Sn = 0, wn = e), Sn);
		},
		movementY: function(e) {
			return "movementY" in e ? e.movementY : Cn;
		}
	}), En = _n(Tn), Dn = _n(f({}, Tn, { dataTransfer: 0 })), On = _n(f({}, bn, { relatedTarget: 0 })), kn = _n(f({}, vn, {
		animationName: 0,
		elapsedTime: 0,
		pseudoElement: 0
	})), An = _n(f({}, vn, { clipboardData: function(e) {
		return "clipboardData" in e ? e.clipboardData : window.clipboardData;
	} })), jn = _n(f({}, vn, { data: 0 })), Mn = {
		Esc: "Escape",
		Spacebar: " ",
		Left: "ArrowLeft",
		Up: "ArrowUp",
		Right: "ArrowRight",
		Down: "ArrowDown",
		Del: "Delete",
		Win: "OS",
		Menu: "ContextMenu",
		Apps: "ContextMenu",
		Scroll: "ScrollLock",
		MozPrintableKey: "Unidentified"
	}, Nn = {
		8: "Backspace",
		9: "Tab",
		12: "Clear",
		13: "Enter",
		16: "Shift",
		17: "Control",
		18: "Alt",
		19: "Pause",
		20: "CapsLock",
		27: "Escape",
		32: " ",
		33: "PageUp",
		34: "PageDown",
		35: "End",
		36: "Home",
		37: "ArrowLeft",
		38: "ArrowUp",
		39: "ArrowRight",
		40: "ArrowDown",
		45: "Insert",
		46: "Delete",
		112: "F1",
		113: "F2",
		114: "F3",
		115: "F4",
		116: "F5",
		117: "F6",
		118: "F7",
		119: "F8",
		120: "F9",
		121: "F10",
		122: "F11",
		123: "F12",
		144: "NumLock",
		145: "ScrollLock",
		224: "Meta"
	}, Pn = {
		Alt: "altKey",
		Control: "ctrlKey",
		Meta: "metaKey",
		Shift: "shiftKey"
	};
	function Fn(e) {
		var t = this.nativeEvent;
		return t.getModifierState ? t.getModifierState(e) : (e = Pn[e]) ? !!t[e] : !1;
	}
	function In() {
		return Fn;
	}
	var Ln = _n(f({}, bn, {
		key: function(e) {
			if (e.key) {
				var t = Mn[e.key] || e.key;
				if (t !== "Unidentified") return t;
			}
			return e.type === "keypress" ? (e = mn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Nn[e.keyCode] || "Unidentified" : "";
		},
		code: 0,
		location: 0,
		ctrlKey: 0,
		shiftKey: 0,
		altKey: 0,
		metaKey: 0,
		repeat: 0,
		locale: 0,
		getModifierState: In,
		charCode: function(e) {
			return e.type === "keypress" ? mn(e) : 0;
		},
		keyCode: function(e) {
			return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
		},
		which: function(e) {
			return e.type === "keypress" ? mn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
		}
	})), Rn = _n(f({}, Tn, {
		pointerId: 0,
		width: 0,
		height: 0,
		pressure: 0,
		tangentialPressure: 0,
		tiltX: 0,
		tiltY: 0,
		twist: 0,
		pointerType: 0,
		isPrimary: 0
	})), zn = _n(f({}, bn, {
		touches: 0,
		targetTouches: 0,
		changedTouches: 0,
		altKey: 0,
		metaKey: 0,
		ctrlKey: 0,
		shiftKey: 0,
		getModifierState: In
	})), Bn = _n(f({}, vn, {
		propertyName: 0,
		elapsedTime: 0,
		pseudoElement: 0
	})), Vn = _n(f({}, Tn, {
		deltaX: function(e) {
			return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
		},
		deltaY: function(e) {
			return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0;
		},
		deltaZ: 0,
		deltaMode: 0
	})), Hn = _n(f({}, vn, {
		newState: 0,
		oldState: 0
	})), Un = [
		9,
		13,
		27,
		32
	], Wn = sn && "CompositionEvent" in window, Gn = null;
	sn && "documentMode" in document && (Gn = document.documentMode);
	var Kn = sn && "TextEvent" in window && !Gn, qn = sn && (!Wn || Gn && 8 < Gn && 11 >= Gn), Jn = " ", Yn = !1;
	function Xn(e, t) {
		switch (e) {
			case "keyup": return Un.indexOf(t.keyCode) !== -1;
			case "keydown": return t.keyCode !== 229;
			case "keypress":
			case "mousedown":
			case "focusout": return !0;
			default: return !1;
		}
	}
	function Zn(e) {
		return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
	}
	var Qn = !1;
	function $n(e, t) {
		switch (e) {
			case "compositionend": return Zn(t);
			case "keypress": return t.which === 32 ? (Yn = !0, Jn) : null;
			case "textInput": return e = t.data, e === Jn && Yn ? null : e;
			default: return null;
		}
	}
	function er(e, t) {
		if (Qn) return e === "compositionend" || !Wn && Xn(e, t) ? (e = pn(), fn = dn = un = null, Qn = !1, e) : null;
		switch (e) {
			case "paste": return null;
			case "keypress":
				if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {
					if (t.char && 1 < t.char.length) return t.char;
					if (t.which) return String.fromCharCode(t.which);
				}
				return null;
			case "compositionend": return qn && t.locale !== "ko" ? null : t.data;
			default: return null;
		}
	}
	var tr = {
		color: !0,
		date: !0,
		datetime: !0,
		"datetime-local": !0,
		email: !0,
		month: !0,
		number: !0,
		password: !0,
		range: !0,
		search: !0,
		tel: !0,
		text: !0,
		time: !0,
		url: !0,
		week: !0
	};
	function nr(e) {
		var t = e && e.nodeName && e.nodeName.toLowerCase();
		return t === "input" ? !!tr[e.type] : t === "textarea";
	}
	function rr(e, t, n, r) {
		tn ? nn ? nn.push(r) : nn = [r] : tn = r, t = Md(t, "onChange"), 0 < t.length && (n = new yn("onChange", "change", null, n, r), e.push({
			event: n,
			listeners: t
		}));
	}
	var ir = null, ar = null;
	function or(e) {
		wd(e, 0);
	}
	function sr(e) {
		if (Pt(yt(e))) return e;
	}
	function cr(e, t) {
		if (e === "change") return t;
	}
	var lr = !1;
	if (sn) {
		var V;
		if (sn) {
			var ur = "oninput" in document;
			if (!ur) {
				var dr = document.createElement("div");
				dr.setAttribute("oninput", "return;"), ur = typeof dr.oninput == "function";
			}
			V = ur;
		} else V = !1;
		lr = V && (!document.documentMode || 9 < document.documentMode);
	}
	function fr() {
		ir && (ir.detachEvent("onpropertychange", pr), ar = ir = null);
	}
	function pr(e) {
		if (e.propertyName === "value" && sr(ar)) {
			var t = [];
			rr(t, ar, e, en(e)), an(or, t);
		}
	}
	function mr(e, t, n) {
		e === "focusin" ? (fr(), ir = t, ar = n, ir.attachEvent("onpropertychange", pr)) : e === "focusout" && fr();
	}
	function H(e) {
		if (e === "selectionchange" || e === "keyup" || e === "keydown") return sr(ar);
	}
	function hr(e, t) {
		if (e === "click") return sr(t);
	}
	function gr(e, t) {
		if (e === "input" || e === "change") return sr(t);
	}
	function _r(e, t) {
		return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
	}
	var vr = typeof Object.is == "function" ? Object.is : _r;
	function yr(e, t) {
		if (vr(e, t)) return !0;
		if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
		var n = Object.keys(e), r = Object.keys(t);
		if (n.length !== r.length) return !1;
		for (r = 0; r < n.length; r++) {
			var i = n[r];
			if (!Te.call(t, i) || !vr(e[i], t[i])) return !1;
		}
		return !0;
	}
	function br(e) {
		for (; e && e.firstChild;) e = e.firstChild;
		return e;
	}
	function xr(e, t) {
		var n = br(e);
		e = 0;
		for (var r; n;) {
			if (n.nodeType === 3) {
				if (r = e + n.textContent.length, e <= t && r >= t) return {
					node: n,
					offset: t - e
				};
				e = r;
			}
			a: {
				for (; n;) {
					if (n.nextSibling) {
						n = n.nextSibling;
						break a;
					}
					n = n.parentNode;
				}
				n = void 0;
			}
			n = br(n);
		}
	}
	function Sr(e, t) {
		return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Sr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
	}
	function Cr(e) {
		e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
		for (var t = Ft(e.document); t instanceof e.HTMLIFrameElement;) {
			try {
				var n = typeof t.contentWindow.location.href == "string";
			} catch {
				n = !1;
			}
			if (n) e = t.contentWindow;
			else break;
			t = Ft(e.document);
		}
		return t;
	}
	function wr(e) {
		var t = e && e.nodeName && e.nodeName.toLowerCase();
		return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
	}
	var Tr = sn && "documentMode" in document && 11 >= document.documentMode, Er = null, Dr = null, Or = null, kr = !1;
	function Ar(e, t, n) {
		var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
		kr || Er == null || Er !== Ft(r) || (r = Er, "selectionStart" in r && wr(r) ? r = {
			start: r.selectionStart,
			end: r.selectionEnd
		} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
			anchorNode: r.anchorNode,
			anchorOffset: r.anchorOffset,
			focusNode: r.focusNode,
			focusOffset: r.focusOffset
		}), Or && yr(Or, r) || (Or = r, r = Md(Dr, "onSelect"), 0 < r.length && (t = new yn("onSelect", "select", null, t, n), e.push({
			event: t,
			listeners: r
		}), t.target = Er)));
	}
	function jr(e, t) {
		var n = {};
		return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
	}
	var Mr = {
		animationend: jr("Animation", "AnimationEnd"),
		animationiteration: jr("Animation", "AnimationIteration"),
		animationstart: jr("Animation", "AnimationStart"),
		transitionrun: jr("Transition", "TransitionRun"),
		transitionstart: jr("Transition", "TransitionStart"),
		transitioncancel: jr("Transition", "TransitionCancel"),
		transitionend: jr("Transition", "TransitionEnd")
	}, Nr = {}, Pr = {};
	sn && (Pr = document.createElement("div").style, "AnimationEvent" in window || (delete Mr.animationend.animation, delete Mr.animationiteration.animation, delete Mr.animationstart.animation), "TransitionEvent" in window || delete Mr.transitionend.transition);
	function Fr(e) {
		if (Nr[e]) return Nr[e];
		if (!Mr[e]) return e;
		var t = Mr[e], n;
		for (n in t) if (t.hasOwnProperty(n) && n in Pr) return Nr[e] = t[n];
		return e;
	}
	var Ir = Fr("animationend"), Lr = Fr("animationiteration"), Rr = Fr("animationstart"), zr = Fr("transitionrun"), Br = Fr("transitionstart"), Vr = Fr("transitioncancel"), Hr = Fr("transitionend"), Ur = /* @__PURE__ */ new Map(), Wr = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
	Wr.push("scrollEnd");
	function Gr(e, t) {
		Ur.set(e, t), R(t, [e]);
	}
	var Kr = typeof reportError == "function" ? reportError : function(e) {
		if (typeof window == "object" && typeof window.ErrorEvent == "function") {
			var t = new window.ErrorEvent("error", {
				bubbles: !0,
				cancelable: !0,
				message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
				error: e
			});
			if (!window.dispatchEvent(t)) return;
		} else if (typeof process == "object" && typeof process.emit == "function") {
			process.emit("uncaughtException", e);
			return;
		}
		console.error(e);
	}, qr = [], Jr = 0, Yr = 0;
	function Xr() {
		for (var e = Jr, t = Yr = Jr = 0; t < e;) {
			var n = qr[t];
			qr[t++] = null;
			var r = qr[t];
			qr[t++] = null;
			var i = qr[t];
			qr[t++] = null;
			var a = qr[t];
			if (qr[t++] = null, r !== null && i !== null) {
				var o = r.pending;
				o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
			}
			a !== 0 && ei(n, i, a);
		}
	}
	function Zr(e, t, n, r) {
		qr[Jr++] = e, qr[Jr++] = t, qr[Jr++] = n, qr[Jr++] = r, Yr |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
	}
	function Qr(e, t, n, r) {
		return Zr(e, t, n, r), ti(e);
	}
	function $r(e, t) {
		return Zr(e, null, null, t), ti(e);
	}
	function ei(e, t, n) {
		e.lanes |= n;
		var r = e.alternate;
		r !== null && (r.lanes |= n);
		for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
		return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Ve(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
	}
	function ti(e) {
		if (50 < hu) throw hu = 0, gu = null, Error(i(185));
		for (var t = e.return; t !== null;) e = t, t = e.return;
		return e.tag === 3 ? e.stateNode : null;
	}
	var ni = {};
	function ri(e, t, n, r) {
		this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
	}
	function ii(e, t, n, r) {
		return new ri(e, t, n, r);
	}
	function ai(e) {
		return e = e.prototype, !(!e || !e.isReactComponent);
	}
	function oi(e, t) {
		var n = e.alternate;
		return n === null ? (n = ii(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 65011712, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
			lanes: t.lanes,
			firstContext: t.firstContext
		}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;
	}
	function si(e, t) {
		e.flags &= 65011714;
		var n = e.alternate;
		return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
			lanes: t.lanes,
			firstContext: t.firstContext
		}), e;
	}
	function ci(e, t, n, r, a, o) {
		var s = 0;
		if (r = e, typeof e == "function") ai(e) && (s = 1);
		else if (typeof e == "string") s = Yf(e, n, fe.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
		else a: switch (e) {
			case E: return e = ii(31, n, t, a), e.elementType = E, e.lanes = o, e;
			case v: return li(n.children, a, o, t);
			case b:
				s = 8, a |= 24;
				break;
			case x: return e = ii(12, n, t, a | 2), e.elementType = x, e.lanes = o, e;
			case te: return e = ii(13, n, t, a), e.elementType = te, e.lanes = o, e;
			case ne: return e = ii(19, n, t, a), e.elementType = ne, e.lanes = o, e;
			default:
				if (typeof e == "object" && e) switch (e.$$typeof) {
					case S:
						s = 10;
						break a;
					case ee:
						s = 9;
						break a;
					case C:
						s = 11;
						break a;
					case w:
						s = 14;
						break a;
					case T:
						s = 16, r = null;
						break a;
				}
				s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
		}
		return t = ii(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
	}
	function li(e, t, n, r) {
		return e = ii(7, e, r, t), e.lanes = n, e;
	}
	function ui(e, t, n) {
		return e = ii(6, e, null, t), e.lanes = n, e;
	}
	function di(e) {
		var t = ii(18, null, null, 0);
		return t.stateNode = e, t;
	}
	function fi(e, t, n) {
		return t = ii(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
			containerInfo: e.containerInfo,
			pendingChildren: null,
			implementation: e.implementation
		}, t;
	}
	var pi = /* @__PURE__ */ new WeakMap();
	function mi(e, t) {
		if (typeof e == "object" && e) {
			var n = pi.get(e);
			return n === void 0 ? (t = {
				value: e,
				source: t,
				stack: we(t)
			}, pi.set(e, t), t) : n;
		}
		return {
			value: e,
			source: t,
			stack: we(t)
		};
	}
	var hi = [], gi = 0, _i = null, vi = 0, yi = [], bi = 0, xi = null, Si = 1, Ci = "";
	function wi(e, t) {
		hi[gi++] = vi, hi[gi++] = _i, _i = e, vi = t;
	}
	function Ti(e, t, n) {
		yi[bi++] = Si, yi[bi++] = Ci, yi[bi++] = xi, xi = e;
		var r = Si;
		e = Ci;
		var i = 32 - Ve(r) - 1;
		r &= ~(1 << i), n += 1;
		var a = 32 - Ve(t) + i;
		if (30 < a) {
			var o = i - i % 5;
			a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Si = 1 << 32 - Ve(t) + i | n << i | r, Ci = a + e;
		} else Si = 1 << a | n << i | r, Ci = e;
	}
	function Ei(e) {
		e.return !== null && (wi(e, 1), Ti(e, 1, 0));
	}
	function Di(e) {
		for (; e === _i;) _i = hi[--gi], hi[gi] = null, vi = hi[--gi], hi[gi] = null;
		for (; e === xi;) xi = yi[--bi], yi[bi] = null, Ci = yi[--bi], yi[bi] = null, Si = yi[--bi], yi[bi] = null;
	}
	function Oi(e, t) {
		yi[bi++] = Si, yi[bi++] = Ci, yi[bi++] = xi, Si = t.id, Ci = t.overflow, xi = e;
	}
	var ki = null, Ai = null, ji = !1, Mi = null, Ni = !1, Pi = Error(i(519));
	function Fi(e) {
		throw Vi(mi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), Pi;
	}
	function Ii(e) {
		var t = e.stateNode, n = e.type, r = e.memoizedProps;
		switch (t[lt] = e, t[ut] = r, n) {
			case "dialog":
				Td("cancel", t), Td("close", t);
				break;
			case "iframe":
			case "object":
			case "embed":
				Td("load", t);
				break;
			case "video":
			case "audio":
				for (n = 0; n < Sd.length; n++) Td(Sd[n], t);
				break;
			case "source":
				Td("error", t);
				break;
			case "img":
			case "image":
			case "link":
				Td("error", t), Td("load", t);
				break;
			case "details":
				Td("toggle", t);
				break;
			case "input":
				Td("invalid", t), zt(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
				break;
			case "select":
				Td("invalid", t);
				break;
			case "textarea": Td("invalid", t), Ut(t, r.value, r.defaultValue, r.children);
		}
		n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || Rd(t.textContent, n) ? (r.popover != null && (Td("beforetoggle", t), Td("toggle", t)), r.onScroll != null && Td("scroll", t), r.onScrollEnd != null && Td("scrollend", t), r.onClick != null && (t.onclick = Qt), t = !0) : t = !1, t || Fi(e, !0);
	}
	function Li(e) {
		for (ki = e.return; ki;) switch (ki.tag) {
			case 5:
			case 31:
			case 13:
				Ni = !1;
				return;
			case 27:
			case 3:
				Ni = !0;
				return;
			default: ki = ki.return;
		}
	}
	function Ri(e) {
		if (e !== ki) return !1;
		if (!ji) return Li(e), ji = !0, !1;
		var t = e.tag, n;
		if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = !(n !== "form" && n !== "button") || Xd(e.type, e.memoizedProps)), n = !n), n && Ai && Fi(e), Li(e), t === 13) {
			if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
			Ai = _f(e);
		} else if (t === 31) {
			if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
			Ai = _f(e);
		} else t === 27 ? (t = Ai, af(e.type) ? (e = gf, gf = null, Ai = e) : Ai = t) : Ai = ki ? hf(e.stateNode.nextSibling) : null;
		return !0;
	}
	function zi() {
		Ai = ki = null, ji = !1;
	}
	function Bi() {
		var e = Mi;
		return e !== null && (tu === null ? tu = e : tu.push.apply(tu, e), Mi = null), e;
	}
	function Vi(e) {
		Mi === null ? Mi = [e] : Mi.push(e);
	}
	var Hi = le(null), Ui = null, Wi = null;
	function Gi(e, t, n) {
		de(Hi, t._currentValue), t._currentValue = n;
	}
	function Ki(e) {
		e._currentValue = Hi.current, ue(Hi);
	}
	function qi(e, t, n) {
		for (; e !== null;) {
			var r = e.alternate;
			if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
			e = e.return;
		}
	}
	function Ji(e, t, n, r) {
		var a = e.child;
		for (a !== null && (a.return = e); a !== null;) {
			var o = a.dependencies;
			if (o !== null) {
				var s = a.child;
				o = o.firstContext;
				a: for (; o !== null;) {
					var c = o;
					o = a;
					for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
						o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), qi(o.return, n, e), r || (s = null);
						break a;
					}
					o = c.next;
				}
			} else if (a.tag === 18) {
				if (s = a.return, s === null) throw Error(i(341));
				s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), qi(s, n, e), s = null;
			} else s = a.child;
			if (s !== null) s.return = a;
			else for (s = a; s !== null;) {
				if (s === e) {
					s = null;
					break;
				}
				if (a = s.sibling, a !== null) {
					a.return = s.return, s = a;
					break;
				}
				s = s.return;
			}
			a = s;
		}
	}
	function Yi(e, t, n, r) {
		e = null;
		for (var a = t, o = !1; a !== null;) {
			if (!o) {
				if (a.flags & 524288) o = !0;
				else if (a.flags & 262144) break;
			}
			if (a.tag === 10) {
				var s = a.alternate;
				if (s === null) throw Error(i(387));
				if (s = s.memoizedProps, s !== null) {
					var c = a.type;
					vr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
				}
			} else if (a === he.current) {
				if (s = a.alternate, s === null) throw Error(i(387));
				s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [ip] : e.push(ip));
			}
			a = a.return;
		}
		e !== null && Ji(t, e, n, r), t.flags |= 262144;
	}
	function Xi(e) {
		for (e = e.firstContext; e !== null;) {
			if (!vr(e.context._currentValue, e.memoizedValue)) return !0;
			e = e.next;
		}
		return !1;
	}
	function Zi(e) {
		Ui = e, Wi = null, e = e.dependencies, e !== null && (e.firstContext = null);
	}
	function Qi(e) {
		return ea(Ui, e);
	}
	function $i(e, t) {
		return Ui === null && Zi(e), ea(e, t);
	}
	function ea(e, t) {
		var n = t._currentValue;
		if (t = {
			context: t,
			memoizedValue: n,
			next: null
		}, Wi === null) {
			if (e === null) throw Error(i(308));
			Wi = t, e.dependencies = {
				lanes: 0,
				firstContext: t
			}, e.flags |= 524288;
		} else Wi = Wi.next = t;
		return n;
	}
	var ta = typeof AbortController < "u" ? AbortController : function() {
		var e = [], t = this.signal = {
			aborted: !1,
			addEventListener: function(t, n) {
				e.push(n);
			}
		};
		this.abort = function() {
			t.aborted = !0, e.forEach(function(e) {
				return e();
			});
		};
	}, na = t.unstable_scheduleCallback, ra = t.unstable_NormalPriority, ia = {
		$$typeof: S,
		Consumer: null,
		Provider: null,
		_currentValue: null,
		_currentValue2: null,
		_threadCount: 0
	};
	function aa() {
		return {
			controller: new ta(),
			data: /* @__PURE__ */ new Map(),
			refCount: 0
		};
	}
	function oa(e) {
		e.refCount--, e.refCount === 0 && na(ra, function() {
			e.controller.abort();
		});
	}
	var sa = null, ca = 0, U = 0, la = null;
	function ua(e, t) {
		if (sa === null) {
			var n = sa = [];
			ca = 0, U = gd(), la = {
				status: "pending",
				value: void 0,
				then: function(e) {
					n.push(e);
				}
			};
		}
		return ca++, t.then(da, da), t;
	}
	function da() {
		if (--ca === 0 && sa !== null) {
			la !== null && (la.status = "fulfilled");
			var e = sa;
			sa = null, U = 0, la = null;
			for (var t = 0; t < e.length; t++) (0, e[t])();
		}
	}
	function fa(e, t) {
		var n = [], r = {
			status: "pending",
			value: null,
			reason: null,
			then: function(e) {
				n.push(e);
			}
		};
		return e.then(function() {
			r.status = "fulfilled", r.value = t;
			for (var e = 0; e < n.length; e++) (0, n[e])(t);
		}, function(e) {
			for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
		}), r;
	}
	var pa = j.S;
	j.S = function(e, t) {
		iu = Ae(), typeof t == "object" && t && typeof t.then == "function" && ua(e, t), pa !== null && pa(e, t);
	};
	var ma = le(null);
	function ha() {
		var e = ma.current;
		return e === null ? zl.pooledCache : e;
	}
	function ga(e, t) {
		t === null ? de(ma, ma.current) : de(ma, t.pool);
	}
	function _a() {
		var e = ha();
		return e === null ? null : {
			parent: ia._currentValue,
			pool: e
		};
	}
	var va = Error(i(460)), ya = Error(i(474)), ba = Error(i(542)), xa = { then: function() {} };
	function Sa(e) {
		return e = e.status, e === "fulfilled" || e === "rejected";
	}
	function Ca(e, t, n) {
		switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(Qt, Qt), t = n), t.status) {
			case "fulfilled": return t.value;
			case "rejected": throw e = t.reason, Da(e), e;
			default:
				if (typeof t.status == "string") t.then(Qt, Qt);
				else {
					if (e = zl, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
					e = t, e.status = "pending", e.then(function(e) {
						if (t.status === "pending") {
							var n = t;
							n.status = "fulfilled", n.value = e;
						}
					}, function(e) {
						if (t.status === "pending") {
							var n = t;
							n.status = "rejected", n.reason = e;
						}
					});
				}
				switch (t.status) {
					case "fulfilled": return t.value;
					case "rejected": throw e = t.reason, Da(e), e;
				}
				throw Ta = t, va;
		}
	}
	function wa(e) {
		try {
			var t = e._init;
			return t(e._payload);
		} catch (e) {
			throw typeof e == "object" && e && typeof e.then == "function" ? (Ta = e, va) : e;
		}
	}
	var Ta = null;
	function Ea() {
		if (Ta === null) throw Error(i(459));
		var e = Ta;
		return Ta = null, e;
	}
	function Da(e) {
		if (e === va || e === ba) throw Error(i(483));
	}
	var Oa = null, ka = 0;
	function Aa(e) {
		var t = ka;
		return ka += 1, Oa === null && (Oa = []), Ca(Oa, e, t);
	}
	function ja(e, t) {
		t = t.props.ref, e.ref = t === void 0 ? null : t;
	}
	function Ma(e, t) {
		throw t.$$typeof === m ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
	}
	function Na(e) {
		function t(t, n) {
			if (e) {
				var r = t.deletions;
				r === null ? (t.deletions = [n], t.flags |= 16) : r.push(n);
			}
		}
		function n(n, r) {
			if (!e) return null;
			for (; r !== null;) t(n, r), r = r.sibling;
			return null;
		}
		function r(e) {
			for (var t = /* @__PURE__ */ new Map(); e !== null;) e.key === null ? t.set(e.index, e) : t.set(e.key, e), e = e.sibling;
			return t;
		}
		function a(e, t) {
			return e = oi(e, t), e.index = 0, e.sibling = null, e;
		}
		function o(t, n, r) {
			return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 67108866, n) : (r = r.index, r < n ? (t.flags |= 67108866, n) : r)) : (t.flags |= 1048576, n);
		}
		function s(t) {
			return e && t.alternate === null && (t.flags |= 67108866), t;
		}
		function c(e, t, n, r) {
			return t === null || t.tag !== 6 ? (t = ui(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
		}
		function l(e, t, n, r) {
			var i = n.type;
			return i === v ? d(e, t, n.props.children, r, n.key) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === T && wa(i) === t.type) ? (t = a(t, n.props), ja(t, n), t.return = e, t) : (t = ci(n.type, n.key, n.props, null, e.mode, r), ja(t, n), t.return = e, t);
		}
		function u(e, t, n, r) {
			return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = fi(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
		}
		function d(e, t, n, r, i) {
			return t === null || t.tag !== 7 ? (t = li(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
		}
		function f(e, t, n) {
			if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = ui("" + t, e.mode, n), t.return = e, t;
			if (typeof t == "object" && t) {
				switch (t.$$typeof) {
					case h: return n = ci(t.type, t.key, t.props, null, e.mode, n), ja(n, t), n.return = e, n;
					case _: return t = fi(t, e.mode, n), t.return = e, t;
					case T: return t = wa(t), f(e, t, n);
				}
				if (ie(t) || O(t)) return t = li(t, e.mode, n, null), t.return = e, t;
				if (typeof t.then == "function") return f(e, Aa(t), n);
				if (t.$$typeof === S) return f(e, $i(e, t), n);
				Ma(e, t);
			}
			return null;
		}
		function p(e, t, n, r) {
			var i = t === null ? null : t.key;
			if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? c(e, t, "" + n, r) : null;
			if (typeof n == "object" && n) {
				switch (n.$$typeof) {
					case h: return n.key === i ? l(e, t, n, r) : null;
					case _: return n.key === i ? u(e, t, n, r) : null;
					case T: return n = wa(n), p(e, t, n, r);
				}
				if (ie(n) || O(n)) return i === null ? d(e, t, n, r, null) : null;
				if (typeof n.then == "function") return p(e, t, Aa(n), r);
				if (n.$$typeof === S) return p(e, t, $i(e, n), r);
				Ma(e, n);
			}
			return null;
		}
		function m(e, t, n, r, i) {
			if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, c(t, e, "" + r, i);
			if (typeof r == "object" && r) {
				switch (r.$$typeof) {
					case h: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
					case _: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
					case T: return r = wa(r), m(e, t, n, r, i);
				}
				if (ie(r) || O(r)) return e = e.get(n) || null, d(t, e, r, i, null);
				if (typeof r.then == "function") return m(e, t, n, Aa(r), i);
				if (r.$$typeof === S) return m(e, t, n, $i(t, r), i);
				Ma(t, r);
			}
			return null;
		}
		function g(i, a, s, c) {
			for (var l = null, u = null, d = a, h = a = 0, g = null; d !== null && h < s.length; h++) {
				d.index > h ? (g = d, d = null) : g = d.sibling;
				var _ = p(i, d, s[h], c);
				if (_ === null) {
					d === null && (d = g);
					break;
				}
				e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;
			}
			if (h === s.length) return n(i, d), ji && wi(i, h), l;
			if (d === null) {
				for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);
				return ji && wi(i, h), l;
			}
			for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && g.alternate !== null && d.delete(g.key === null ? h : g.key), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);
			return e && d.forEach(function(e) {
				return t(i, e);
			}), ji && wi(i, h), l;
		}
		function y(a, s, c, l) {
			if (c == null) throw Error(i(151));
			for (var u = null, d = null, h = s, g = s = 0, _ = null, v = c.next(); h !== null && !v.done; g++, v = c.next()) {
				h.index > g ? (_ = h, h = null) : _ = h.sibling;
				var y = p(a, h, v.value, l);
				if (y === null) {
					h === null && (h = _);
					break;
				}
				e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;
			}
			if (v.done) return n(a, h), ji && wi(a, g), u;
			if (h === null) {
				for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
				return ji && wi(a, g), u;
			}
			for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && v.alternate !== null && h.delete(v.key === null ? g : v.key), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
			return e && h.forEach(function(e) {
				return t(a, e);
			}), ji && wi(a, g), u;
		}
		function b(e, r, o, c) {
			if (typeof o == "object" && o && o.type === v && o.key === null && (o = o.props.children), typeof o == "object" && o) {
				switch (o.$$typeof) {
					case h:
						a: {
							for (var l = o.key; r !== null;) {
								if (r.key === l) {
									if (l = o.type, l === v) {
										if (r.tag === 7) {
											n(e, r.sibling), c = a(r, o.props.children), c.return = e, e = c;
											break a;
										}
									} else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === T && wa(l) === r.type) {
										n(e, r.sibling), c = a(r, o.props), ja(c, o), c.return = e, e = c;
										break a;
									}
									n(e, r);
									break;
								} else t(e, r);
								r = r.sibling;
							}
							o.type === v ? (c = li(o.props.children, e.mode, c, o.key), c.return = e, e = c) : (c = ci(o.type, o.key, o.props, null, e.mode, c), ja(c, o), c.return = e, e = c);
						}
						return s(e);
					case _:
						a: {
							for (l = o.key; r !== null;) {
								if (r.key === l) if (r.tag === 4 && r.stateNode.containerInfo === o.containerInfo && r.stateNode.implementation === o.implementation) {
									n(e, r.sibling), c = a(r, o.children || []), c.return = e, e = c;
									break a;
								} else {
									n(e, r);
									break;
								}
								else t(e, r);
								r = r.sibling;
							}
							c = fi(o, e.mode, c), c.return = e, e = c;
						}
						return s(e);
					case T: return o = wa(o), b(e, r, o, c);
				}
				if (ie(o)) return g(e, r, o, c);
				if (O(o)) {
					if (l = O(o), typeof l != "function") throw Error(i(150));
					return o = l.call(o), y(e, r, o, c);
				}
				if (typeof o.then == "function") return b(e, r, Aa(o), c);
				if (o.$$typeof === S) return b(e, r, $i(e, o), c);
				Ma(e, o);
			}
			return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = ui(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
		}
		return function(e, t, n, r) {
			try {
				ka = 0;
				var i = b(e, t, n, r);
				return Oa = null, i;
			} catch (t) {
				if (t === va || t === ba) throw t;
				var a = ii(29, t, null, e.mode);
				return a.lanes = r, a.return = e, a;
			}
		};
	}
	var Pa = Na(!0), Fa = Na(!1), Ia = !1;
	function La(e) {
		e.updateQueue = {
			baseState: e.memoizedState,
			firstBaseUpdate: null,
			lastBaseUpdate: null,
			shared: {
				pending: null,
				lanes: 0,
				hiddenCallbacks: null
			},
			callbacks: null
		};
	}
	function Ra(e, t) {
		e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
			baseState: e.baseState,
			firstBaseUpdate: e.firstBaseUpdate,
			lastBaseUpdate: e.lastBaseUpdate,
			shared: e.shared,
			callbacks: null
		});
	}
	function za(e) {
		return {
			lane: e,
			tag: 0,
			payload: null,
			callback: null,
			next: null
		};
	}
	function Ba(e, t, n) {
		var r = e.updateQueue;
		if (r === null) return null;
		if (r = r.shared, Rl & 2) {
			var i = r.pending;
			return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = ti(e), ei(e, null, n), t;
		}
		return Zr(e, r, t, n), ti(e);
	}
	function Va(e, t, n) {
		if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
			var r = t.lanes;
			r &= e.pendingLanes, n |= r, t.lanes = n, nt(e, n);
		}
	}
	function Ha(e, t) {
		var n = e.updateQueue, r = e.alternate;
		if (r !== null && (r = r.updateQueue, n === r)) {
			var i = null, a = null;
			if (n = n.firstBaseUpdate, n !== null) {
				do {
					var o = {
						lane: n.lane,
						tag: n.tag,
						payload: n.payload,
						callback: null,
						next: null
					};
					a === null ? i = a = o : a = a.next = o, n = n.next;
				} while (n !== null);
				a === null ? i = a = t : a = a.next = t;
			} else i = a = t;
			n = {
				baseState: r.baseState,
				firstBaseUpdate: i,
				lastBaseUpdate: a,
				shared: r.shared,
				callbacks: r.callbacks
			}, e.updateQueue = n;
			return;
		}
		e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
	}
	var Ua = !1;
	function Wa() {
		if (Ua) {
			var e = la;
			if (e !== null) throw e;
		}
	}
	function Ga(e, t, n, r) {
		Ua = !1;
		var i = e.updateQueue;
		Ia = !1;
		var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
		if (s !== null) {
			i.shared.pending = null;
			var c = s, l = c.next;
			c.next = null, o === null ? a = l : o.next = l, o = c;
			var u = e.alternate;
			u !== null && (u = u.updateQueue, s = u.lastBaseUpdate, s !== o && (s === null ? u.firstBaseUpdate = l : s.next = l, u.lastBaseUpdate = c));
		}
		if (a !== null) {
			var d = i.baseState;
			o = 0, u = l = c = null, s = a;
			do {
				var p = s.lane & -536870913, m = p !== s.lane;
				if (m ? (Vl & p) === p : (r & p) === p) {
					p !== 0 && p === U && (Ua = !0), u !== null && (u = u.next = {
						lane: 0,
						tag: s.tag,
						payload: s.payload,
						callback: null,
						next: null
					});
					a: {
						var h = e, g = s;
						p = t;
						var _ = n;
						switch (g.tag) {
							case 1:
								if (h = g.payload, typeof h == "function") {
									d = h.call(_, d, p);
									break a;
								}
								d = h;
								break a;
							case 3: h.flags = h.flags & -65537 | 128;
							case 0:
								if (h = g.payload, p = typeof h == "function" ? h.call(_, d, p) : h, p == null) break a;
								d = f({}, d, p);
								break a;
							case 2: Ia = !0;
						}
					}
					p = s.callback, p !== null && (e.flags |= 64, m && (e.flags |= 8192), m = i.callbacks, m === null ? i.callbacks = [p] : m.push(p));
				} else m = {
					lane: p,
					tag: s.tag,
					payload: s.payload,
					callback: s.callback,
					next: null
				}, u === null ? (l = u = m, c = d) : u = u.next = m, o |= p;
				if (s = s.next, s === null) {
					if (s = i.shared.pending, s === null) break;
					m = s, s = m.next, m.next = null, i.lastBaseUpdate = m, i.shared.pending = null;
				}
			} while (1);
			u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), Yl |= o, e.lanes = o, e.memoizedState = d;
		}
	}
	function Ka(e, t) {
		if (typeof e != "function") throw Error(i(191, e));
		e.call(t);
	}
	function qa(e, t) {
		var n = e.callbacks;
		if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) Ka(n[e], t);
	}
	var Ja = le(null), Ya = le(0);
	function W(e, t) {
		e = ql, de(Ya, e), de(Ja, t), ql = e | t.baseLanes;
	}
	function Xa() {
		de(Ya, ql), de(Ja, Ja.current);
	}
	function Za() {
		ql = Ya.current, ue(Ja), ue(Ya);
	}
	var Qa = le(null), $a = null;
	function eo(e) {
		var t = e.alternate;
		de(ao, ao.current & 1), de(Qa, e), $a === null && (t === null || Ja.current !== null || t.memoizedState !== null) && ($a = e);
	}
	function to(e) {
		de(ao, ao.current), de(Qa, e), $a === null && ($a = e);
	}
	function no(e) {
		e.tag === 22 ? (de(ao, ao.current), de(Qa, e), $a === null && ($a = e)) : ro(e);
	}
	function ro() {
		de(ao, ao.current), de(Qa, Qa.current);
	}
	function io(e) {
		ue(Qa), $a === e && ($a = null), ue(ao);
	}
	var ao = le(0);
	function oo(e) {
		for (var t = e; t !== null;) {
			if (t.tag === 13) {
				var n = t.memoizedState;
				if (n !== null && (n = n.dehydrated, n === null || ff(n) || pf(n))) return t;
			} else if (t.tag === 19 && (t.memoizedProps.revealOrder === "forwards" || t.memoizedProps.revealOrder === "backwards" || t.memoizedProps.revealOrder === "unstable_legacy-backwards" || t.memoizedProps.revealOrder === "together")) {
				if (t.flags & 128) return t;
			} else if (t.child !== null) {
				t.child.return = t, t = t.child;
				continue;
			}
			if (t === e) break;
			for (; t.sibling === null;) {
				if (t.return === null || t.return === e) return null;
				t = t.return;
			}
			t.sibling.return = t.return, t = t.sibling;
		}
		return null;
	}
	var so = 0, co = null, lo = null, uo = null, fo = !1, po = !1, mo = !1, ho = 0, go = 0, _o = null, vo = 0;
	function yo() {
		throw Error(i(321));
	}
	function bo(e, t) {
		if (t === null) return !1;
		for (var n = 0; n < t.length && n < e.length; n++) if (!vr(e[n], t[n])) return !1;
		return !0;
	}
	function xo(e, t, n, r, i, a) {
		return so = a, co = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, j.H = e === null || e.memoizedState === null ? Rs : zs, mo = !1, a = n(r, i), mo = !1, po && (a = Co(t, n, r, i)), So(e), a;
	}
	function So(e) {
		j.H = Ls;
		var t = lo !== null && lo.next !== null;
		if (so = 0, uo = lo = co = null, fo = !1, go = 0, _o = null, t) throw Error(i(300));
		e === null || nc || (e = e.dependencies, e !== null && Xi(e) && (nc = !0));
	}
	function Co(e, t, n, r) {
		co = e;
		var a = 0;
		do {
			if (po && (_o = null), go = 0, po = !1, 25 <= a) throw Error(i(301));
			if (a += 1, uo = lo = null, e.updateQueue != null) {
				var o = e.updateQueue;
				o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
			}
			j.H = Bs, o = t(n, r);
		} while (po);
		return o;
	}
	function wo() {
		var e = j.H, t = e.useState()[0];
		return t = typeof t.then == "function" ? jo(t) : t, e = e.useState()[0], (lo === null ? null : lo.memoizedState) !== e && (co.flags |= 1024), t;
	}
	function To() {
		var e = ho !== 0;
		return ho = 0, e;
	}
	function Eo(e, t, n) {
		t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
	}
	function Do(e) {
		if (fo) {
			for (e = e.memoizedState; e !== null;) {
				var t = e.queue;
				t !== null && (t.pending = null), e = e.next;
			}
			fo = !1;
		}
		so = 0, uo = lo = co = null, po = !1, go = ho = 0, _o = null;
	}
	function Oo() {
		var e = {
			memoizedState: null,
			baseState: null,
			baseQueue: null,
			queue: null,
			next: null
		};
		return uo === null ? co.memoizedState = uo = e : uo = uo.next = e, uo;
	}
	function ko() {
		if (lo === null) {
			var e = co.alternate;
			e = e === null ? null : e.memoizedState;
		} else e = lo.next;
		var t = uo === null ? co.memoizedState : uo.next;
		if (t !== null) uo = t, lo = e;
		else {
			if (e === null) throw co.alternate === null ? Error(i(467)) : Error(i(310));
			lo = e, e = {
				memoizedState: lo.memoizedState,
				baseState: lo.baseState,
				baseQueue: lo.baseQueue,
				queue: lo.queue,
				next: null
			}, uo === null ? co.memoizedState = uo = e : uo = uo.next = e;
		}
		return uo;
	}
	function Ao() {
		return {
			lastEffect: null,
			events: null,
			stores: null,
			memoCache: null
		};
	}
	function jo(e) {
		var t = go;
		return go += 1, _o === null && (_o = []), e = Ca(_o, e, t), t = co, (uo === null ? t.memoizedState : uo.next) === null && (t = t.alternate, j.H = t === null || t.memoizedState === null ? Rs : zs), e;
	}
	function Mo(e) {
		if (typeof e == "object" && e) {
			if (typeof e.then == "function") return jo(e);
			if (e.$$typeof === S) return Qi(e);
		}
		throw Error(i(438, String(e)));
	}
	function No(e) {
		var t = null, n = co.updateQueue;
		if (n !== null && (t = n.memoCache), t == null) {
			var r = co.alternate;
			r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
				data: r.data.map(function(e) {
					return e.slice();
				}),
				index: 0
			})));
		}
		if (t ??= {
			data: [],
			index: 0
		}, n === null && (n = Ao(), co.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = D;
		return t.index++, n;
	}
	function Po(e, t) {
		return typeof t == "function" ? t(e) : t;
	}
	function Fo(e) {
		return Io(ko(), lo, e);
	}
	function Io(e, t, n) {
		var r = e.queue;
		if (r === null) throw Error(i(311));
		r.lastRenderedReducer = n;
		var a = e.baseQueue, o = r.pending;
		if (o !== null) {
			if (a !== null) {
				var s = a.next;
				a.next = o.next, o.next = s;
			}
			t.baseQueue = a = o, r.pending = null;
		}
		if (o = e.baseState, a === null) e.memoizedState = o;
		else {
			t = a.next;
			var c = s = null, l = null, u = t, d = !1;
			do {
				var f = u.lane & -536870913;
				if (f === u.lane ? (so & f) === f : (Vl & f) === f) {
					var p = u.revertLane;
					if (p === 0) l !== null && (l = l.next = {
						lane: 0,
						revertLane: 0,
						gesture: null,
						action: u.action,
						hasEagerState: u.hasEagerState,
						eagerState: u.eagerState,
						next: null
					}), f === U && (d = !0);
					else if ((so & p) === p) {
						u = u.next, p === U && (d = !0);
						continue;
					} else f = {
						lane: 0,
						revertLane: u.revertLane,
						gesture: null,
						action: u.action,
						hasEagerState: u.hasEagerState,
						eagerState: u.eagerState,
						next: null
					}, l === null ? (c = l = f, s = o) : l = l.next = f, co.lanes |= p, Yl |= p;
					f = u.action, mo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
				} else p = {
					lane: f,
					revertLane: u.revertLane,
					gesture: u.gesture,
					action: u.action,
					hasEagerState: u.hasEagerState,
					eagerState: u.eagerState,
					next: null
				}, l === null ? (c = l = p, s = o) : l = l.next = p, co.lanes |= f, Yl |= f;
				u = u.next;
			} while (u !== null && u !== t);
			if (l === null ? s = o : l.next = c, !vr(o, e.memoizedState) && (nc = !0, d && (n = la, n !== null))) throw n;
			e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
		}
		return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
	}
	function Lo(e) {
		var t = ko(), n = t.queue;
		if (n === null) throw Error(i(311));
		n.lastRenderedReducer = e;
		var r = n.dispatch, a = n.pending, o = t.memoizedState;
		if (a !== null) {
			n.pending = null;
			var s = a = a.next;
			do
				o = e(o, s.action), s = s.next;
			while (s !== a);
			vr(o, t.memoizedState) || (nc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
		}
		return [o, r];
	}
	function Ro(e, t, n) {
		var r = co, a = ko(), o = ji;
		if (o) {
			if (n === void 0) throw Error(i(407));
			n = n();
		} else n = t();
		var s = !vr((lo || a).memoizedState, n);
		if (s && (a.memoizedState = n, nc = !0), a = a.queue, ls(Vo.bind(null, r, a, e), [e]), a.getSnapshot !== t || s || uo !== null && uo.memoizedState.tag & 1) {
			if (r.flags |= 2048, is(9, { destroy: void 0 }, Bo.bind(null, r, a, n, t), null), zl === null) throw Error(i(349));
			o || so & 127 || zo(r, t, n);
		}
		return n;
	}
	function zo(e, t, n) {
		e.flags |= 16384, e = {
			getSnapshot: t,
			value: n
		}, t = co.updateQueue, t === null ? (t = Ao(), co.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
	}
	function Bo(e, t, n, r) {
		t.value = n, t.getSnapshot = r, Ho(t) && Uo(e);
	}
	function Vo(e, t, n) {
		return n(function() {
			Ho(t) && Uo(e);
		});
	}
	function Ho(e) {
		var t = e.getSnapshot;
		e = e.value;
		try {
			var n = t();
			return !vr(e, n);
		} catch {
			return !0;
		}
	}
	function Uo(e) {
		var t = $r(e, 2);
		t !== null && yu(t, e, 2);
	}
	function Wo(e) {
		var t = Oo();
		if (typeof e == "function") {
			var n = e;
			if (e = n(), mo) {
				Be(!0);
				try {
					n();
				} finally {
					Be(!1);
				}
			}
		}
		return t.memoizedState = t.baseState = e, t.queue = {
			pending: null,
			lanes: 0,
			dispatch: null,
			lastRenderedReducer: Po,
			lastRenderedState: e
		}, t;
	}
	function Go(e, t, n, r) {
		return e.baseState = n, Io(e, lo, typeof r == "function" ? r : Po);
	}
	function Ko(e, t, n, r, a) {
		if (Ps(e)) throw Error(i(485));
		if (e = t.action, e !== null) {
			var o = {
				payload: a,
				action: e,
				next: null,
				isTransition: !0,
				status: "pending",
				value: null,
				reason: null,
				listeners: [],
				then: function(e) {
					o.listeners.push(e);
				}
			};
			j.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, qo(t, o)) : (o.next = n.next, t.pending = n.next = o);
		}
	}
	function qo(e, t) {
		var n = t.action, r = t.payload, i = e.state;
		if (t.isTransition) {
			var a = j.T, o = {};
			j.T = o;
			try {
				var s = n(i, r), c = j.S;
				c !== null && c(o, s), Jo(e, t, s);
			} catch (n) {
				Xo(e, t, n);
			} finally {
				a !== null && o.types !== null && (a.types = o.types), j.T = a;
			}
		} else try {
			a = n(i, r), Jo(e, t, a);
		} catch (n) {
			Xo(e, t, n);
		}
	}
	function Jo(e, t, n) {
		typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
			Yo(e, t, n);
		}, function(n) {
			return Xo(e, t, n);
		}) : Yo(e, t, n);
	}
	function Yo(e, t, n) {
		t.status = "fulfilled", t.value = n, Zo(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, qo(e, n)));
	}
	function Xo(e, t, n) {
		var r = e.pending;
		if (e.pending = null, r !== null) {
			r = r.next;
			do
				t.status = "rejected", t.reason = n, Zo(t), t = t.next;
			while (t !== r);
		}
		e.action = null;
	}
	function Zo(e) {
		e = e.listeners;
		for (var t = 0; t < e.length; t++) (0, e[t])();
	}
	function Qo(e, t) {
		return t;
	}
	function $o(e, t) {
		if (ji) {
			var n = zl.formState;
			if (n !== null) {
				a: {
					var r = co;
					if (ji) {
						if (Ai) {
							b: {
								for (var i = Ai, a = Ni; i.nodeType !== 8;) {
									if (!a) {
										i = null;
										break b;
									}
									if (i = hf(i.nextSibling), i === null) {
										i = null;
										break b;
									}
								}
								a = i.data, i = a === "F!" || a === "F" ? i : null;
							}
							if (i) {
								Ai = hf(i.nextSibling), r = i.data === "F!";
								break a;
							}
						}
						Fi(r);
					}
					r = !1;
				}
				r && (t = n[0]);
			}
		}
		return n = Oo(), n.memoizedState = n.baseState = t, r = {
			pending: null,
			lanes: 0,
			dispatch: null,
			lastRenderedReducer: Qo,
			lastRenderedState: t
		}, n.queue = r, n = js.bind(null, co, r), r.dispatch = n, r = Wo(!1), a = Ns.bind(null, co, !1, r.queue), r = Oo(), i = {
			state: t,
			dispatch: null,
			action: e,
			pending: null
		}, r.queue = i, n = Ko.bind(null, co, i, a, n), i.dispatch = n, r.memoizedState = e, [
			t,
			n,
			!1
		];
	}
	function es(e) {
		return ts(ko(), lo, e);
	}
	function ts(e, t, n) {
		if (t = Io(e, t, Qo)[0], e = Fo(Po)[0], typeof t == "object" && t && typeof t.then == "function") try {
			var r = jo(t);
		} catch (e) {
			throw e === va ? ba : e;
		}
		else r = t;
		t = ko();
		var i = t.queue, a = i.dispatch;
		return n !== t.memoizedState && (co.flags |= 2048, is(9, { destroy: void 0 }, ns.bind(null, i, n), null)), [
			r,
			a,
			e
		];
	}
	function ns(e, t) {
		e.action = t;
	}
	function rs(e) {
		var t = ko(), n = lo;
		if (n !== null) return ts(t, n, e);
		ko(), t = t.memoizedState, n = ko();
		var r = n.queue.dispatch;
		return n.memoizedState = e, [
			t,
			r,
			!1
		];
	}
	function is(e, t, n, r) {
		return e = {
			tag: e,
			create: n,
			deps: r,
			inst: t,
			next: null
		}, t = co.updateQueue, t === null && (t = Ao(), co.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
	}
	function as() {
		return ko().memoizedState;
	}
	function os(e, t, n, r) {
		var i = Oo();
		co.flags |= e, i.memoizedState = is(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
	}
	function ss(e, t, n, r) {
		var i = ko();
		r = r === void 0 ? null : r;
		var a = i.memoizedState.inst;
		lo !== null && r !== null && bo(r, lo.memoizedState.deps) ? i.memoizedState = is(t, a, n, r) : (co.flags |= e, i.memoizedState = is(1 | t, a, n, r));
	}
	function cs(e, t) {
		os(8390656, 8, e, t);
	}
	function ls(e, t) {
		ss(2048, 8, e, t);
	}
	function us(e) {
		co.flags |= 4;
		var t = co.updateQueue;
		if (t === null) t = Ao(), co.updateQueue = t, t.events = [e];
		else {
			var n = t.events;
			n === null ? t.events = [e] : n.push(e);
		}
	}
	function ds(e) {
		var t = ko().memoizedState;
		return us({
			ref: t,
			nextImpl: e
		}), function() {
			if (Rl & 2) throw Error(i(440));
			return t.impl.apply(void 0, arguments);
		};
	}
	function fs(e, t) {
		return ss(4, 2, e, t);
	}
	function ps(e, t) {
		return ss(4, 4, e, t);
	}
	function ms(e, t) {
		if (typeof t == "function") {
			e = e();
			var n = t(e);
			return function() {
				typeof n == "function" ? n() : t(null);
			};
		}
		if (t != null) return e = e(), t.current = e, function() {
			t.current = null;
		};
	}
	function hs(e, t, n) {
		n = n == null ? null : n.concat([e]), ss(4, 4, ms.bind(null, t, e), n);
	}
	function gs() {}
	function _s(e, t) {
		var n = ko();
		t = t === void 0 ? null : t;
		var r = n.memoizedState;
		return t !== null && bo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
	}
	function vs(e, t) {
		var n = ko();
		t = t === void 0 ? null : t;
		var r = n.memoizedState;
		if (t !== null && bo(t, r[1])) return r[0];
		if (r = e(), mo) {
			Be(!0);
			try {
				e();
			} finally {
				Be(!1);
			}
		}
		return n.memoizedState = [r, t], r;
	}
	function ys(e, t, n) {
		return n === void 0 || so & 1073741824 && !(Vl & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = vu(), co.lanes |= e, Yl |= e, n);
	}
	function bs(e, t, n, r) {
		return vr(n, t) ? n : Ja.current === null ? !(so & 42) || so & 1073741824 && !(Vl & 261930) ? (nc = !0, e.memoizedState = n) : (e = vu(), co.lanes |= e, Yl |= e, t) : (e = ys(e, n, r), vr(e, t) || (nc = !0), e);
	}
	function xs(e, t, n, r, i) {
		var a = ae.p;
		ae.p = a !== 0 && 8 > a ? a : 8;
		var o = j.T, s = {};
		j.T = s, Ns(e, !1, t, n);
		try {
			var c = i(), l = j.S;
			l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? Ms(e, t, fa(c, r), _u(e)) : Ms(e, t, r, _u(e));
		} catch (n) {
			Ms(e, t, {
				then: function() {},
				status: "rejected",
				reason: n
			}, _u());
		} finally {
			ae.p = a, o !== null && s.types !== null && (o.types = s.types), j.T = o;
		}
	}
	function Ss() {}
	function Cs(e, t, n, r) {
		if (e.tag !== 5) throw Error(i(476));
		var a = ws(e).queue;
		xs(e, a, t, oe, n === null ? Ss : function() {
			return Ts(e), n(r);
		});
	}
	function ws(e) {
		var t = e.memoizedState;
		if (t !== null) return t;
		t = {
			memoizedState: oe,
			baseState: oe,
			baseQueue: null,
			queue: {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: Po,
				lastRenderedState: oe
			},
			next: null
		};
		var n = {};
		return t.next = {
			memoizedState: n,
			baseState: n,
			baseQueue: null,
			queue: {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: Po,
				lastRenderedState: n
			},
			next: null
		}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
	}
	function Ts(e) {
		var t = ws(e);
		t.next === null && (t = e.alternate.memoizedState), Ms(e, t.next.queue, {}, _u());
	}
	function Es() {
		return Qi(ip);
	}
	function Ds() {
		return ko().memoizedState;
	}
	function Os() {
		return ko().memoizedState;
	}
	function ks(e) {
		for (var t = e.return; t !== null;) {
			switch (t.tag) {
				case 24:
				case 3:
					var n = _u();
					e = za(n);
					var r = Ba(t, e, n);
					r !== null && (yu(r, t, n), Va(r, t, n)), t = { cache: aa() }, e.payload = t;
					return;
			}
			t = t.return;
		}
	}
	function As(e, t, n) {
		var r = _u();
		n = {
			lane: r,
			revertLane: 0,
			gesture: null,
			action: n,
			hasEagerState: !1,
			eagerState: null,
			next: null
		}, Ps(e) ? Fs(t, n) : (n = Qr(e, t, n, r), n !== null && (yu(n, e, r), Is(n, t, r)));
	}
	function js(e, t, n) {
		Ms(e, t, n, _u());
	}
	function Ms(e, t, n, r) {
		var i = {
			lane: r,
			revertLane: 0,
			gesture: null,
			action: n,
			hasEagerState: !1,
			eagerState: null,
			next: null
		};
		if (Ps(e)) Fs(t, i);
		else {
			var a = e.alternate;
			if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
				var o = t.lastRenderedState, s = a(o, n);
				if (i.hasEagerState = !0, i.eagerState = s, vr(s, o)) return Zr(e, t, i, 0), zl === null && Xr(), !1;
			} catch {}
			if (n = Qr(e, t, i, r), n !== null) return yu(n, e, r), Is(n, t, r), !0;
		}
		return !1;
	}
	function Ns(e, t, n, r) {
		if (r = {
			lane: 2,
			revertLane: gd(),
			gesture: null,
			action: r,
			hasEagerState: !1,
			eagerState: null,
			next: null
		}, Ps(e)) {
			if (t) throw Error(i(479));
		} else t = Qr(e, n, r, 2), t !== null && yu(t, e, 2);
	}
	function Ps(e) {
		var t = e.alternate;
		return e === co || t !== null && t === co;
	}
	function Fs(e, t) {
		po = fo = !0;
		var n = e.pending;
		n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
	}
	function Is(e, t, n) {
		if (n & 4194048) {
			var r = t.lanes;
			r &= e.pendingLanes, n |= r, t.lanes = n, nt(e, n);
		}
	}
	var Ls = {
		readContext: Qi,
		use: Mo,
		useCallback: yo,
		useContext: yo,
		useEffect: yo,
		useImperativeHandle: yo,
		useLayoutEffect: yo,
		useInsertionEffect: yo,
		useMemo: yo,
		useReducer: yo,
		useRef: yo,
		useState: yo,
		useDebugValue: yo,
		useDeferredValue: yo,
		useTransition: yo,
		useSyncExternalStore: yo,
		useId: yo,
		useHostTransitionStatus: yo,
		useFormState: yo,
		useActionState: yo,
		useOptimistic: yo,
		useMemoCache: yo,
		useCacheRefresh: yo
	};
	Ls.useEffectEvent = yo;
	var Rs = {
		readContext: Qi,
		use: Mo,
		useCallback: function(e, t) {
			return Oo().memoizedState = [e, t === void 0 ? null : t], e;
		},
		useContext: Qi,
		useEffect: cs,
		useImperativeHandle: function(e, t, n) {
			n = n == null ? null : n.concat([e]), os(4194308, 4, ms.bind(null, t, e), n);
		},
		useLayoutEffect: function(e, t) {
			return os(4194308, 4, e, t);
		},
		useInsertionEffect: function(e, t) {
			os(4, 2, e, t);
		},
		useMemo: function(e, t) {
			var n = Oo();
			t = t === void 0 ? null : t;
			var r = e();
			if (mo) {
				Be(!0);
				try {
					e();
				} finally {
					Be(!1);
				}
			}
			return n.memoizedState = [r, t], r;
		},
		useReducer: function(e, t, n) {
			var r = Oo();
			if (n !== void 0) {
				var i = n(t);
				if (mo) {
					Be(!0);
					try {
						n(t);
					} finally {
						Be(!1);
					}
				}
			} else i = t;
			return r.memoizedState = r.baseState = i, e = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: e,
				lastRenderedState: i
			}, r.queue = e, e = e.dispatch = As.bind(null, co, e), [r.memoizedState, e];
		},
		useRef: function(e) {
			var t = Oo();
			return e = { current: e }, t.memoizedState = e;
		},
		useState: function(e) {
			e = Wo(e);
			var t = e.queue, n = js.bind(null, co, t);
			return t.dispatch = n, [e.memoizedState, n];
		},
		useDebugValue: gs,
		useDeferredValue: function(e, t) {
			return ys(Oo(), e, t);
		},
		useTransition: function() {
			var e = Wo(!1);
			return e = xs.bind(null, co, e.queue, !0, !1), Oo().memoizedState = e, [!1, e];
		},
		useSyncExternalStore: function(e, t, n) {
			var r = co, a = Oo();
			if (ji) {
				if (n === void 0) throw Error(i(407));
				n = n();
			} else {
				if (n = t(), zl === null) throw Error(i(349));
				Vl & 127 || zo(r, t, n);
			}
			a.memoizedState = n;
			var o = {
				value: n,
				getSnapshot: t
			};
			return a.queue = o, cs(Vo.bind(null, r, o, e), [e]), r.flags |= 2048, is(9, { destroy: void 0 }, Bo.bind(null, r, o, n, t), null), n;
		},
		useId: function() {
			var e = Oo(), t = zl.identifierPrefix;
			if (ji) {
				var n = Ci, r = Si;
				n = (r & ~(1 << 32 - Ve(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = ho++, 0 < n && (t += "H" + n.toString(32)), t += "_";
			} else n = vo++, t = "_" + t + "r_" + n.toString(32) + "_";
			return e.memoizedState = t;
		},
		useHostTransitionStatus: Es,
		useFormState: $o,
		useActionState: $o,
		useOptimistic: function(e) {
			var t = Oo();
			t.memoizedState = t.baseState = e;
			var n = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: null,
				lastRenderedState: null
			};
			return t.queue = n, t = Ns.bind(null, co, !0, n), n.dispatch = t, [e, t];
		},
		useMemoCache: No,
		useCacheRefresh: function() {
			return Oo().memoizedState = ks.bind(null, co);
		},
		useEffectEvent: function(e) {
			var t = Oo(), n = { impl: e };
			return t.memoizedState = n, function() {
				if (Rl & 2) throw Error(i(440));
				return n.impl.apply(void 0, arguments);
			};
		}
	}, zs = {
		readContext: Qi,
		use: Mo,
		useCallback: _s,
		useContext: Qi,
		useEffect: ls,
		useImperativeHandle: hs,
		useInsertionEffect: fs,
		useLayoutEffect: ps,
		useMemo: vs,
		useReducer: Fo,
		useRef: as,
		useState: function() {
			return Fo(Po);
		},
		useDebugValue: gs,
		useDeferredValue: function(e, t) {
			return bs(ko(), lo.memoizedState, e, t);
		},
		useTransition: function() {
			var e = Fo(Po)[0], t = ko().memoizedState;
			return [typeof e == "boolean" ? e : jo(e), t];
		},
		useSyncExternalStore: Ro,
		useId: Ds,
		useHostTransitionStatus: Es,
		useFormState: es,
		useActionState: es,
		useOptimistic: function(e, t) {
			return Go(ko(), lo, e, t);
		},
		useMemoCache: No,
		useCacheRefresh: Os
	};
	zs.useEffectEvent = ds;
	var Bs = {
		readContext: Qi,
		use: Mo,
		useCallback: _s,
		useContext: Qi,
		useEffect: ls,
		useImperativeHandle: hs,
		useInsertionEffect: fs,
		useLayoutEffect: ps,
		useMemo: vs,
		useReducer: Lo,
		useRef: as,
		useState: function() {
			return Lo(Po);
		},
		useDebugValue: gs,
		useDeferredValue: function(e, t) {
			var n = ko();
			return lo === null ? ys(n, e, t) : bs(n, lo.memoizedState, e, t);
		},
		useTransition: function() {
			var e = Lo(Po)[0], t = ko().memoizedState;
			return [typeof e == "boolean" ? e : jo(e), t];
		},
		useSyncExternalStore: Ro,
		useId: Ds,
		useHostTransitionStatus: Es,
		useFormState: rs,
		useActionState: rs,
		useOptimistic: function(e, t) {
			var n = ko();
			return lo === null ? (n.baseState = e, [e, n.queue.dispatch]) : Go(n, lo, e, t);
		},
		useMemoCache: No,
		useCacheRefresh: Os
	};
	Bs.useEffectEvent = ds;
	function Vs(e, t, n, r) {
		t = e.memoizedState, n = n(r, t), n = n == null ? t : f({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
	}
	var Hs = {
		enqueueSetState: function(e, t, n) {
			e = e._reactInternals;
			var r = _u(), i = za(r);
			i.payload = t, n != null && (i.callback = n), t = Ba(e, i, r), t !== null && (yu(t, e, r), Va(t, e, r));
		},
		enqueueReplaceState: function(e, t, n) {
			e = e._reactInternals;
			var r = _u(), i = za(r);
			i.tag = 1, i.payload = t, n != null && (i.callback = n), t = Ba(e, i, r), t !== null && (yu(t, e, r), Va(t, e, r));
		},
		enqueueForceUpdate: function(e, t) {
			e = e._reactInternals;
			var n = _u(), r = za(n);
			r.tag = 2, t != null && (r.callback = t), t = Ba(e, r, n), t !== null && (yu(t, e, n), Va(t, e, n));
		}
	};
	function Us(e, t, n, r, i, a, o) {
		return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !yr(n, r) || !yr(i, a) : !0;
	}
	function Ws(e, t, n, r) {
		e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Hs.enqueueReplaceState(t, t.state, null);
	}
	function Gs(e, t) {
		var n = t;
		if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
		if (e = e.defaultProps) for (var i in n === t && (n = f({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
		return n;
	}
	function Ks(e) {
		Kr(e);
	}
	function qs(e) {
		console.error(e);
	}
	function Js(e) {
		Kr(e);
	}
	function Ys(e, t) {
		try {
			var n = e.onUncaughtError;
			n(t.value, { componentStack: t.stack });
		} catch (e) {
			setTimeout(function() {
				throw e;
			});
		}
	}
	function Xs(e, t, n) {
		try {
			var r = e.onCaughtError;
			r(n.value, {
				componentStack: n.stack,
				errorBoundary: t.tag === 1 ? t.stateNode : null
			});
		} catch (e) {
			setTimeout(function() {
				throw e;
			});
		}
	}
	function Zs(e, t, n) {
		return n = za(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
			Ys(e, t);
		}, n;
	}
	function Qs(e) {
		return e = za(e), e.tag = 3, e;
	}
	function $s(e, t, n, r) {
		var i = n.type.getDerivedStateFromError;
		if (typeof i == "function") {
			var a = r.value;
			e.payload = function() {
				return i(a);
			}, e.callback = function() {
				Xs(t, n, r);
			};
		}
		var o = n.stateNode;
		o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
			Xs(t, n, r), typeof i != "function" && (su === null ? su = new Set([this]) : su.add(this));
			var e = r.stack;
			this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
		});
	}
	function ec(e, t, n, r, a) {
		if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
			if (t = n.alternate, t !== null && Yi(t, n, a, !0), n = Qa.current, n !== null) {
				switch (n.tag) {
					case 31:
					case 13: return $a === null ? ju() : n.alternate === null && Jl === 0 && (Jl = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = new Set([r]) : t.add(r), Xu(e, r, a)), !1;
					case 22: return n.flags |= 65536, r === xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
						transitions: null,
						markerInstances: null,
						retryQueue: new Set([r])
					}, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = new Set([r]) : n.add(r)), Xu(e, r, a)), !1;
				}
				throw Error(i(435, n.tag));
			}
			return Xu(e, r, a), ju(), !1;
		}
		if (ji) return t = Qa.current, t === null ? (r !== Pi && (t = Error(i(423), { cause: r }), Vi(mi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = mi(r, n), a = Zs(e.stateNode, r, a), Ha(e, a), Jl !== 4 && (Jl = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== Pi && (e = Error(i(422), { cause: r }), Vi(mi(e, n)))), !1;
		var o = Error(i(520), { cause: r });
		if (o = mi(o, n), eu === null ? eu = [o] : eu.push(o), Jl !== 4 && (Jl = 2), t === null) return !0;
		r = mi(r, n), n = t;
		do {
			switch (n.tag) {
				case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Zs(n.stateNode, r, e), Ha(n, e), !1;
				case 1: if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (su === null || !su.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Qs(a), $s(a, e, n, r), Ha(n, a), !1;
			}
			n = n.return;
		} while (n !== null);
		return !1;
	}
	var tc = Error(i(461)), nc = !1;
	function rc(e, t, n, r) {
		t.child = e === null ? Fa(t, null, n, r) : Pa(t, e.child, n, r);
	}
	function ic(e, t, n, r, i) {
		n = n.render;
		var a = t.ref;
		if ("ref" in r) {
			var o = {};
			for (var s in r) s !== "ref" && (o[s] = r[s]);
		} else o = r;
		return Zi(t), r = xo(e, t, n, o, a, i), s = To(), e !== null && !nc ? (Eo(e, t, i), Oc(e, t, i)) : (ji && s && Ei(t), t.flags |= 1, rc(e, t, r, i), t.child);
	}
	function ac(e, t, n, r, i) {
		if (e === null) {
			var a = n.type;
			return typeof a == "function" && !ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, oc(e, t, a, r, i)) : (e = ci(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
		}
		if (a = e.child, !kc(e, i)) {
			var o = a.memoizedProps;
			if (n = n.compare, n = n === null ? yr : n, n(o, r) && e.ref === t.ref) return Oc(e, t, i);
		}
		return t.flags |= 1, e = oi(a, r), e.ref = t.ref, e.return = t, t.child = e;
	}
	function oc(e, t, n, r, i) {
		if (e !== null) {
			var a = e.memoizedProps;
			if (yr(a, r) && e.ref === t.ref) if (nc = !1, t.pendingProps = r = a, kc(e, i)) e.flags & 131072 && (nc = !0);
			else return t.lanes = e.lanes, Oc(e, t, i);
		}
		return mc(e, t, n, r, i);
	}
	function sc(e, t, n, r) {
		var i = r.children, a = e === null ? null : e.memoizedState;
		if (e === null && t.stateNode === null && (t.stateNode = {
			_visibility: 1,
			_pendingMarkers: null,
			_retryCache: null,
			_transitions: null
		}), r.mode === "hidden") {
			if (t.flags & 128) {
				if (a = a === null ? n : a.baseLanes | n, e !== null) {
					for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
					r = i & ~a;
				} else r = 0, t.child = null;
				return lc(e, t, a, n, r);
			}
			if (n & 536870912) t.memoizedState = {
				baseLanes: 0,
				cachePool: null
			}, e !== null && ga(t, a === null ? null : a.cachePool), a === null ? Xa() : W(t, a), no(t);
			else return r = t.lanes = 536870912, lc(e, t, a === null ? n : a.baseLanes | n, n, r);
		} else a === null ? (e !== null && ga(t, null), Xa(), ro(t)) : (ga(t, a.cachePool), W(t, a), ro(t), t.memoizedState = null);
		return rc(e, t, i, n), t.child;
	}
	function cc(e, t) {
		return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
			_visibility: 1,
			_pendingMarkers: null,
			_retryCache: null,
			_transitions: null
		}), t.sibling;
	}
	function lc(e, t, n, r, i) {
		var a = ha();
		return a = a === null ? null : {
			parent: ia._currentValue,
			pool: a
		}, t.memoizedState = {
			baseLanes: n,
			cachePool: a
		}, e !== null && ga(t, null), Xa(), no(t), e !== null && Yi(e, t, r, !0), t.childLanes = i, null;
	}
	function uc(e, t) {
		return t = Cc({
			mode: t.mode,
			children: t.children
		}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
	}
	function dc(e, t, n) {
		return Pa(t, e.child, null, n), e = uc(t, t.pendingProps), e.flags |= 2, io(t), t.memoizedState = null, e;
	}
	function fc(e, t, n) {
		var r = t.pendingProps, a = (t.flags & 128) != 0;
		if (t.flags &= -129, e === null) {
			if (ji) {
				if (r.mode === "hidden") return e = uc(t, r), t.lanes = 536870912, cc(null, e);
				if (to(t), (e = Ai) ? (e = df(e, Ni), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
					dehydrated: e,
					treeContext: xi === null ? null : {
						id: Si,
						overflow: Ci
					},
					retryLane: 536870912,
					hydrationErrors: null
				}, n = di(e), n.return = t, t.child = n, ki = t, Ai = null)) : e = null, e === null) throw Fi(t);
				return t.lanes = 536870912, null;
			}
			return uc(t, r);
		}
		var o = e.memoizedState;
		if (o !== null) {
			var s = o.dehydrated;
			if (to(t), a) if (t.flags & 256) t.flags &= -257, t = dc(e, t, n);
			else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
			else throw Error(i(558));
			else if (nc || Yi(e, t, n, !1), a = (n & e.childLanes) !== 0, nc || a) {
				if (r = zl, r !== null && (s = rt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, $r(e, s), yu(r, e, s), tc;
				ju(), t = dc(e, t, n);
			} else e = o.treeContext, Ai = hf(s.nextSibling), ki = t, ji = !0, Mi = null, Ni = !1, e !== null && Oi(t, e), t = uc(t, r), t.flags |= 4096;
			return t;
		}
		return e = oi(e.child, {
			mode: r.mode,
			children: r.children
		}), e.ref = t.ref, t.child = e, e.return = t, e;
	}
	function pc(e, t) {
		var n = t.ref;
		if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
		else {
			if (typeof n != "function" && typeof n != "object") throw Error(i(284));
			(e === null || e.ref !== n) && (t.flags |= 4194816);
		}
	}
	function mc(e, t, n, r, i) {
		return Zi(t), n = xo(e, t, n, r, void 0, i), r = To(), e !== null && !nc ? (Eo(e, t, i), Oc(e, t, i)) : (ji && r && Ei(t), t.flags |= 1, rc(e, t, n, i), t.child);
	}
	function hc(e, t, n, r, i, a) {
		return Zi(t), t.updateQueue = null, n = Co(t, r, n, i), So(e), r = To(), e !== null && !nc ? (Eo(e, t, a), Oc(e, t, a)) : (ji && r && Ei(t), t.flags |= 1, rc(e, t, n, a), t.child);
	}
	function gc(e, t, n, r, i) {
		if (Zi(t), t.stateNode === null) {
			var a = ni, o = n.contextType;
			typeof o == "object" && o && (a = Qi(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = Hs, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, La(t), o = n.contextType, a.context = typeof o == "object" && o ? Qi(o) : ni, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (Vs(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && Hs.enqueueReplaceState(a, a.state, null), Ga(t, r, a, i), Wa(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
		} else if (e === null) {
			a = t.stateNode;
			var s = t.memoizedProps, c = Gs(n, s);
			a.props = c;
			var l = a.context, u = n.contextType;
			o = ni, typeof u == "object" && u && (o = Qi(u));
			var d = n.getDerivedStateFromProps;
			u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && Ws(t, a, r, o), Ia = !1;
			var f = t.memoizedState;
			a.state = f, Ga(t, r, a, i), Wa(), l = t.memoizedState, s || f !== l || Ia ? (typeof d == "function" && (Vs(t, n, d, r), l = t.memoizedState), (c = Ia || Us(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
		} else {
			a = t.stateNode, Ra(e, t), o = t.memoizedProps, u = Gs(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = ni, typeof l == "object" && l && (c = Qi(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && Ws(t, a, r, c), Ia = !1, f = t.memoizedState, a.state = f, Ga(t, r, a, i), Wa();
			var p = t.memoizedState;
			o !== d || f !== p || Ia || e !== null && e.dependencies !== null && Xi(e.dependencies) ? (typeof s == "function" && (Vs(t, n, s, r), p = t.memoizedState), (u = Ia || Us(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && Xi(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
		}
		return a = r, pc(e, t), r = (t.flags & 128) != 0, a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = Pa(t, e.child, null, i), t.child = Pa(t, null, n, i)) : rc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = Oc(e, t, i), e;
	}
	function _c(e, t, n, r) {
		return zi(), t.flags |= 256, rc(e, t, n, r), t.child;
	}
	var vc = {
		dehydrated: null,
		treeContext: null,
		retryLane: 0,
		hydrationErrors: null
	};
	function yc(e) {
		return {
			baseLanes: e,
			cachePool: _a()
		};
	}
	function bc(e, t, n) {
		return e = e === null ? 0 : e.childLanes & ~n, t && (e |= Ql), e;
	}
	function xc(e, t, n) {
		var r = t.pendingProps, a = !1, o = (t.flags & 128) != 0, s;
		if ((s = o) || (s = e !== null && e.memoizedState === null ? !1 : (ao.current & 2) != 0), s && (a = !0, t.flags &= -129), s = (t.flags & 32) != 0, t.flags &= -33, e === null) {
			if (ji) {
				if (a ? eo(t) : ro(t), (e = Ai) ? (e = df(e, Ni), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
					dehydrated: e,
					treeContext: xi === null ? null : {
						id: Si,
						overflow: Ci
					},
					retryLane: 536870912,
					hydrationErrors: null
				}, n = di(e), n.return = t, t.child = n, ki = t, Ai = null)) : e = null, e === null) throw Fi(t);
				return pf(e) ? t.lanes = 32 : t.lanes = 536870912, null;
			}
			var c = r.children;
			return r = r.fallback, a ? (ro(t), a = t.mode, c = Cc({
				mode: "hidden",
				children: c
			}, a), r = li(r, a, n, null), c.return = t, r.return = t, c.sibling = r, t.child = c, r = t.child, r.memoizedState = yc(n), r.childLanes = bc(e, s, n), t.memoizedState = vc, cc(null, r)) : (eo(t), Sc(t, c));
		}
		var l = e.memoizedState;
		if (l !== null && (c = l.dehydrated, c !== null)) {
			if (o) t.flags & 256 ? (eo(t), t.flags &= -257, t = wc(e, t, n)) : t.memoizedState === null ? (ro(t), c = r.fallback, a = t.mode, r = Cc({
				mode: "visible",
				children: r.children
			}, a), c = li(c, a, n, null), c.flags |= 2, r.return = t, c.return = t, r.sibling = c, t.child = r, Pa(t, e.child, null, n), r = t.child, r.memoizedState = yc(n), r.childLanes = bc(e, s, n), t.memoizedState = vc, t = cc(null, r)) : (ro(t), t.child = e.child, t.flags |= 128, t = null);
			else if (eo(t), pf(c)) {
				if (s = c.nextSibling && c.nextSibling.dataset, s) var u = s.dgst;
				s = u, r = Error(i(419)), r.stack = "", r.digest = s, Vi({
					value: r,
					source: null,
					stack: null
				}), t = wc(e, t, n);
			} else if (nc || Yi(e, t, n, !1), s = (n & e.childLanes) !== 0, nc || s) {
				if (s = zl, s !== null && (r = rt(s, n), r !== 0 && r !== l.retryLane)) throw l.retryLane = r, $r(e, r), yu(s, e, r), tc;
				ff(c) || ju(), t = wc(e, t, n);
			} else ff(c) ? (t.flags |= 192, t.child = e.child, t = null) : (e = l.treeContext, Ai = hf(c.nextSibling), ki = t, ji = !0, Mi = null, Ni = !1, e !== null && Oi(t, e), t = Sc(t, r.children), t.flags |= 4096);
			return t;
		}
		return a ? (ro(t), c = r.fallback, a = t.mode, l = e.child, u = l.sibling, r = oi(l, {
			mode: "hidden",
			children: r.children
		}), r.subtreeFlags = l.subtreeFlags & 65011712, u === null ? (c = li(c, a, n, null), c.flags |= 2) : c = oi(u, c), c.return = t, r.return = t, r.sibling = c, t.child = r, cc(null, r), r = t.child, c = e.child.memoizedState, c === null ? c = yc(n) : (a = c.cachePool, a === null ? a = _a() : (l = ia._currentValue, a = a.parent === l ? a : {
			parent: l,
			pool: l
		}), c = {
			baseLanes: c.baseLanes | n,
			cachePool: a
		}), r.memoizedState = c, r.childLanes = bc(e, s, n), t.memoizedState = vc, cc(e.child, r)) : (eo(t), n = e.child, e = n.sibling, n = oi(n, {
			mode: "visible",
			children: r.children
		}), n.return = t, n.sibling = null, e !== null && (s = t.deletions, s === null ? (t.deletions = [e], t.flags |= 16) : s.push(e)), t.child = n, t.memoizedState = null, n);
	}
	function Sc(e, t) {
		return t = Cc({
			mode: "visible",
			children: t
		}, e.mode), t.return = e, e.child = t;
	}
	function Cc(e, t) {
		return e = ii(22, e, null, t), e.lanes = 0, e;
	}
	function wc(e, t, n) {
		return Pa(t, e.child, null, n), e = Sc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
	}
	function Tc(e, t, n) {
		e.lanes |= t;
		var r = e.alternate;
		r !== null && (r.lanes |= t), qi(e.return, t, n);
	}
	function Ec(e, t, n, r, i, a) {
		var o = e.memoizedState;
		o === null ? e.memoizedState = {
			isBackwards: t,
			rendering: null,
			renderingStartTime: 0,
			last: r,
			tail: n,
			tailMode: i,
			treeForkCount: a
		} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
	}
	function Dc(e, t, n) {
		var r = t.pendingProps, i = r.revealOrder, a = r.tail;
		r = r.children;
		var o = ao.current, s = (o & 2) != 0;
		if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, de(ao, o), rc(e, t, r, n), r = ji ? vi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
			if (e.tag === 13) e.memoizedState !== null && Tc(e, n, t);
			else if (e.tag === 19) Tc(e, n, t);
			else if (e.child !== null) {
				e.child.return = e, e = e.child;
				continue;
			}
			if (e === t) break a;
			for (; e.sibling === null;) {
				if (e.return === null || e.return === t) break a;
				e = e.return;
			}
			e.sibling.return = e.return, e = e.sibling;
		}
		switch (i) {
			case "forwards":
				for (n = t.child, i = null; n !== null;) e = n.alternate, e !== null && oo(e) === null && (i = n), n = n.sibling;
				n = i, n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), Ec(t, !1, i, n, a, r);
				break;
			case "backwards":
			case "unstable_legacy-backwards":
				for (n = null, i = t.child, t.child = null; i !== null;) {
					if (e = i.alternate, e !== null && oo(e) === null) {
						t.child = i;
						break;
					}
					e = i.sibling, i.sibling = n, n = i, i = e;
				}
				Ec(t, !0, n, null, a, r);
				break;
			case "together":
				Ec(t, !1, null, null, void 0, r);
				break;
			default: t.memoizedState = null;
		}
		return t.child;
	}
	function Oc(e, t, n) {
		if (e !== null && (t.dependencies = e.dependencies), Yl |= t.lanes, (n & t.childLanes) === 0) if (e !== null) {
			if (Yi(e, t, n, !1), (n & t.childLanes) === 0) return null;
		} else return null;
		if (e !== null && t.child !== e.child) throw Error(i(153));
		if (t.child !== null) {
			for (e = t.child, n = oi(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = oi(e, e.pendingProps), n.return = t;
			n.sibling = null;
		}
		return t.child;
	}
	function kc(e, t) {
		return (e.lanes & t) === 0 ? (e = e.dependencies, !!(e !== null && Xi(e))) : !0;
	}
	function Ac(e, t, n) {
		switch (t.tag) {
			case 3:
				ge(t, t.stateNode.containerInfo), Gi(t, ia, e.memoizedState.cache), zi();
				break;
			case 27:
			case 5:
				ve(t);
				break;
			case 4:
				ge(t, t.stateNode.containerInfo);
				break;
			case 10:
				Gi(t, t.type, t.memoizedProps.value);
				break;
			case 31:
				if (t.memoizedState !== null) return t.flags |= 128, to(t), null;
				break;
			case 13:
				var r = t.memoizedState;
				if (r !== null) return r.dehydrated === null ? (n & t.child.childLanes) === 0 ? (eo(t), e = Oc(e, t, n), e === null ? null : e.sibling) : xc(e, t, n) : (eo(t), t.flags |= 128, null);
				eo(t);
				break;
			case 19:
				var i = (e.flags & 128) != 0;
				if (r = (n & t.childLanes) !== 0, r ||= (Yi(e, t, n, !1), (n & t.childLanes) !== 0), i) {
					if (r) return Dc(e, t, n);
					t.flags |= 128;
				}
				if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), de(ao, ao.current), r) break;
				return null;
			case 22: return t.lanes = 0, sc(e, t, n, t.pendingProps);
			case 24: Gi(t, ia, e.memoizedState.cache);
		}
		return Oc(e, t, n);
	}
	function jc(e, t, n) {
		if (e !== null) if (e.memoizedProps !== t.pendingProps) nc = !0;
		else {
			if (!kc(e, n) && !(t.flags & 128)) return nc = !1, Ac(e, t, n);
			nc = !!(e.flags & 131072);
		}
		else nc = !1, ji && t.flags & 1048576 && Ti(t, vi, t.index);
		switch (t.lanes = 0, t.tag) {
			case 16:
				a: {
					var r = t.pendingProps;
					if (e = wa(t.elementType), t.type = e, typeof e == "function") ai(e) ? (r = Gs(e, r), t.tag = 1, t = gc(null, t, e, r, n)) : (t.tag = 0, t = mc(null, t, e, r, n));
					else {
						if (e != null) {
							var a = e.$$typeof;
							if (a === C) {
								t.tag = 11, t = ic(null, t, e, r, n);
								break a;
							} else if (a === w) {
								t.tag = 14, t = ac(null, t, e, r, n);
								break a;
							}
						}
						throw t = A(e) || e, Error(i(306, t, ""));
					}
				}
				return t;
			case 0: return mc(e, t, t.type, t.pendingProps, n);
			case 1: return r = t.type, a = Gs(r, t.pendingProps), gc(e, t, r, a, n);
			case 3:
				a: {
					if (ge(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
					r = t.pendingProps;
					var o = t.memoizedState;
					a = o.element, Ra(e, t), Ga(t, r, null, n);
					var s = t.memoizedState;
					if (r = s.cache, Gi(t, ia, r), r !== o.cache && Ji(t, [ia], n, !0), Wa(), r = s.element, o.isDehydrated) if (o = {
						element: r,
						isDehydrated: !1,
						cache: s.cache
					}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
						t = _c(e, t, r, n);
						break a;
					} else if (r !== a) {
						a = mi(Error(i(424)), t), Vi(a), t = _c(e, t, r, n);
						break a;
					} else {
						switch (e = t.stateNode.containerInfo, e.nodeType) {
							case 9:
								e = e.body;
								break;
							default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
						}
						for (Ai = hf(e.firstChild), ki = t, ji = !0, Mi = null, Ni = !0, n = Fa(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 4096, n = n.sibling;
					}
					else {
						if (zi(), r === a) {
							t = Oc(e, t, n);
							break a;
						}
						rc(e, t, r, n);
					}
					t = t.child;
				}
				return t;
			case 26: return pc(e, t), e === null ? (n = If(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ji || (n = t.type, e = t.pendingProps, r = qd(me.current).createElement(n), r[lt] = t, r[ut] = e, Vd(r, n, e), L(r), t.stateNode = r) : t.memoizedState = If(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
			case 27: return ve(t), e === null && ji && (r = t.stateNode = yf(t.type, t.pendingProps, me.current), ki = t, Ni = !0, a = Ai, af(t.type) ? (gf = a, Ai = hf(r.firstChild)) : Ai = a), rc(e, t, t.pendingProps.children, n), pc(e, t), e === null && (t.flags |= 4194304), t.child;
			case 5: return e === null && ji && ((a = r = Ai) && (r = lf(r, t.type, t.pendingProps, Ni), r === null ? a = !1 : (t.stateNode = r, ki = t, Ai = hf(r.firstChild), Ni = !1, a = !0)), a || Fi(t)), ve(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Xd(a, o) ? r = null : s !== null && Xd(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = xo(e, t, wo, null, null, n), ip._currentValue = a), pc(e, t), rc(e, t, r, n), t.child;
			case 6: return e === null && ji && ((e = n = Ai) && (n = uf(n, t.pendingProps, Ni), n === null ? e = !1 : (t.stateNode = n, ki = t, Ai = null, e = !0)), e || Fi(t)), null;
			case 13: return xc(e, t, n);
			case 4: return ge(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = Pa(t, null, r, n) : rc(e, t, r, n), t.child;
			case 11: return ic(e, t, t.type, t.pendingProps, n);
			case 7: return rc(e, t, t.pendingProps, n), t.child;
			case 8: return rc(e, t, t.pendingProps.children, n), t.child;
			case 12: return rc(e, t, t.pendingProps.children, n), t.child;
			case 10: return r = t.pendingProps, Gi(t, t.type, r.value), rc(e, t, r.children, n), t.child;
			case 9: return a = t.type._context, r = t.pendingProps.children, Zi(t), a = Qi(a), r = r(a), t.flags |= 1, rc(e, t, r, n), t.child;
			case 14: return ac(e, t, t.type, t.pendingProps, n);
			case 15: return oc(e, t, t.type, t.pendingProps, n);
			case 19: return Dc(e, t, n);
			case 31: return fc(e, t, n);
			case 22: return sc(e, t, n, t.pendingProps);
			case 24: return Zi(t), r = Qi(ia), e === null ? (a = ha(), a === null && (a = zl, o = aa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
				parent: r,
				cache: a
			}, La(t), Gi(t, ia, a)) : ((e.lanes & n) !== 0 && (Ra(e, t), Ga(t, null, null, n), Wa()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, Gi(t, ia, r), r !== a.cache && Ji(t, [ia], n, !0)) : (a = {
				parent: r,
				cache: r
			}, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), Gi(t, ia, r))), rc(e, t, t.pendingProps.children, n), t.child;
			case 29: throw t.pendingProps;
		}
		throw Error(i(156, t.tag));
	}
	function Mc(e) {
		e.flags |= 4;
	}
	function Nc(e, t, n, r, i) {
		if ((t = (e.mode & 32) != 0) && (t = !1), t) {
			if (e.flags |= 16777216, (i & 335544128) === i) if (e.stateNode.complete) e.flags |= 8192;
			else if (Ou()) e.flags |= 8192;
			else throw Ta = xa, ya;
		} else e.flags &= -16777217;
	}
	function Pc(e, t) {
		if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
		else if (e.flags |= 16777216, !Xf(t)) if (Ou()) e.flags |= 8192;
		else throw Ta = xa, ya;
	}
	function Fc(e, t) {
		t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : Qe(), e.lanes |= t, $l |= t);
	}
	function G(e, t) {
		if (!ji) switch (e.tailMode) {
			case "hidden":
				t = e.tail;
				for (var n = null; t !== null;) t.alternate !== null && (n = t), t = t.sibling;
				n === null ? e.tail = null : n.sibling = null;
				break;
			case "collapsed":
				n = e.tail;
				for (var r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
				r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null;
		}
	}
	function Ic(e) {
		var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
		if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 65011712, r |= i.flags & 65011712, i.return = e, i = i.sibling;
		else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
		return e.subtreeFlags |= r, e.childLanes = n, t;
	}
	function Lc(e, t, n) {
		var r = t.pendingProps;
		switch (Di(t), t.tag) {
			case 16:
			case 15:
			case 0:
			case 11:
			case 7:
			case 8:
			case 12:
			case 9:
			case 14: return Ic(t), null;
			case 1: return Ic(t), null;
			case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), Ki(ia), _e(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (Ri(t) ? Mc(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Bi())), Ic(t), null;
			case 26:
				var a = t.type, o = t.memoizedState;
				return e === null ? (Mc(t), o === null ? (Ic(t), Nc(t, a, null, r, n)) : (Ic(t), Pc(t, o))) : o ? o === e.memoizedState ? (Ic(t), t.flags &= -16777217) : (Mc(t), Ic(t), Pc(t, o)) : (e = e.memoizedProps, e !== r && Mc(t), Ic(t), Nc(t, a, e, r, n)), null;
			case 27:
				if (M(t), n = me.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && Mc(t);
				else {
					if (!r) {
						if (t.stateNode === null) throw Error(i(166));
						return Ic(t), null;
					}
					e = fe.current, Ri(t) ? Ii(t, e) : (e = yf(a, r, n), t.stateNode = e, Mc(t));
				}
				return Ic(t), null;
			case 5:
				if (M(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && Mc(t);
				else {
					if (!r) {
						if (t.stateNode === null) throw Error(i(166));
						return Ic(t), null;
					}
					if (o = fe.current, Ri(t)) Ii(t, o);
					else {
						var s = qd(me.current);
						switch (o) {
							case 1:
								o = s.createElementNS("http://www.w3.org/2000/svg", a);
								break;
							case 2:
								o = s.createElementNS("http://www.w3.org/1998/Math/MathML", a);
								break;
							default: switch (a) {
								case "svg":
									o = s.createElementNS("http://www.w3.org/2000/svg", a);
									break;
								case "math":
									o = s.createElementNS("http://www.w3.org/1998/Math/MathML", a);
									break;
								case "script":
									o = s.createElement("div"), o.innerHTML = "<script><\/script>", o = o.removeChild(o.firstChild);
									break;
								case "select":
									o = typeof r.is == "string" ? s.createElement("select", { is: r.is }) : s.createElement("select"), r.multiple ? o.multiple = !0 : r.size && (o.size = r.size);
									break;
								default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
							}
						}
						o[lt] = t, o[ut] = r;
						a: for (s = t.child; s !== null;) {
							if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);
							else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {
								s.child.return = s, s = s.child;
								continue;
							}
							if (s === t) break a;
							for (; s.sibling === null;) {
								if (s.return === null || s.return === t) break a;
								s = s.return;
							}
							s.sibling.return = s.return, s = s.sibling;
						}
						t.stateNode = o;
						a: switch (Vd(o, a, r), a) {
							case "button":
							case "input":
							case "select":
							case "textarea":
								r = !!r.autoFocus;
								break a;
							case "img":
								r = !0;
								break a;
							default: r = !1;
						}
						r && Mc(t);
					}
				}
				return Ic(t), Nc(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
			case 6:
				if (e && t.stateNode != null) e.memoizedProps !== r && Mc(t);
				else {
					if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
					if (e = me.current, Ri(t)) {
						if (e = t.stateNode, n = t.memoizedProps, r = null, a = ki, a !== null) switch (a.tag) {
							case 27:
							case 5: r = a.memoizedProps;
						}
						e[lt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || Rd(e.nodeValue, n)), e || Fi(t, !0);
					} else e = qd(e).createTextNode(r), e[lt] = t, t.stateNode = e;
				}
				return Ic(t), null;
			case 31:
				if (n = t.memoizedState, e === null || e.memoizedState !== null) {
					if (r = Ri(t), n !== null) {
						if (e === null) {
							if (!r) throw Error(i(318));
							if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
							e[lt] = t;
						} else zi(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
						Ic(t), e = !1;
					} else n = Bi(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
					if (!e) return t.flags & 256 ? (io(t), t) : (io(t), null);
					if (t.flags & 128) throw Error(i(558));
				}
				return Ic(t), null;
			case 13:
				if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
					if (a = Ri(t), r !== null && r.dehydrated !== null) {
						if (e === null) {
							if (!a) throw Error(i(318));
							if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
							a[lt] = t;
						} else zi(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
						Ic(t), a = !1;
					} else a = Bi(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
					if (!a) return t.flags & 256 ? (io(t), t) : (io(t), null);
				}
				return io(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), Fc(t, t.updateQueue), Ic(t), null);
			case 4: return _e(), e === null && Od(t.stateNode.containerInfo), Ic(t), null;
			case 10: return Ki(t.type), Ic(t), null;
			case 19:
				if (ue(ao), r = t.memoizedState, r === null) return Ic(t), null;
				if (a = (t.flags & 128) != 0, o = r.rendering, o === null) if (a) G(r, !1);
				else {
					if (Jl !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
						if (o = oo(e), o !== null) {
							for (t.flags |= 128, G(r, !1), e = o.updateQueue, t.updateQueue = e, Fc(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) si(n, e), n = n.sibling;
							return de(ao, ao.current & 1 | 2), ji && wi(t, r.treeForkCount), t.child;
						}
						e = e.sibling;
					}
					r.tail !== null && Ae() > au && (t.flags |= 128, a = !0, G(r, !1), t.lanes = 4194304);
				}
				else {
					if (!a) if (e = oo(o), e !== null) {
						if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, Fc(t, e), G(r, !0), r.tail === null && r.tailMode === "hidden" && !o.alternate && !ji) return Ic(t), null;
					} else 2 * Ae() - r.renderingStartTime > au && n !== 536870912 && (t.flags |= 128, a = !0, G(r, !1), t.lanes = 4194304);
					r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
				}
				return r.tail === null ? (Ic(t), null) : (e = r.tail, r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ae(), e.sibling = null, n = ao.current, de(ao, a ? n & 1 | 2 : n & 1), ji && wi(t, r.treeForkCount), e);
			case 22:
			case 23: return io(t), Za(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (Ic(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Ic(t), n = t.updateQueue, n !== null && Fc(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ue(ma), null;
			case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), Ki(ia), Ic(t), null;
			case 25: return null;
			case 30: return null;
		}
		throw Error(i(156, t.tag));
	}
	function Rc(e, t) {
		switch (Di(t), t.tag) {
			case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
			case 3: return Ki(ia), _e(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
			case 26:
			case 27:
			case 5: return M(t), null;
			case 31:
				if (t.memoizedState !== null) {
					if (io(t), t.alternate === null) throw Error(i(340));
					zi();
				}
				return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
			case 13:
				if (io(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
					if (t.alternate === null) throw Error(i(340));
					zi();
				}
				return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
			case 19: return ue(ao), null;
			case 4: return _e(), null;
			case 10: return Ki(t.type), null;
			case 22:
			case 23: return io(t), Za(), e !== null && ue(ma), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
			case 24: return Ki(ia), null;
			case 25: return null;
			default: return null;
		}
	}
	function zc(e, t) {
		switch (Di(t), t.tag) {
			case 3:
				Ki(ia), _e();
				break;
			case 26:
			case 27:
			case 5:
				M(t);
				break;
			case 4:
				_e();
				break;
			case 31:
				t.memoizedState !== null && io(t);
				break;
			case 13:
				io(t);
				break;
			case 19:
				ue(ao);
				break;
			case 10:
				Ki(t.type);
				break;
			case 22:
			case 23:
				io(t), Za(), e !== null && ue(ma);
				break;
			case 24: Ki(ia);
		}
	}
	function Bc(e, t) {
		try {
			var n = t.updateQueue, r = n === null ? null : n.lastEffect;
			if (r !== null) {
				var i = r.next;
				n = i;
				do {
					if ((n.tag & e) === e) {
						r = void 0;
						var a = n.create, o = n.inst;
						r = a(), o.destroy = r;
					}
					n = n.next;
				} while (n !== i);
			}
		} catch (e) {
			Yu(t, t.return, e);
		}
	}
	function Vc(e, t, n) {
		try {
			var r = t.updateQueue, i = r === null ? null : r.lastEffect;
			if (i !== null) {
				var a = i.next;
				r = a;
				do {
					if ((r.tag & e) === e) {
						var o = r.inst, s = o.destroy;
						if (s !== void 0) {
							o.destroy = void 0, i = t;
							var c = n, l = s;
							try {
								l();
							} catch (e) {
								Yu(i, c, e);
							}
						}
					}
					r = r.next;
				} while (r !== a);
			}
		} catch (e) {
			Yu(t, t.return, e);
		}
	}
	function Hc(e) {
		var t = e.updateQueue;
		if (t !== null) {
			var n = e.stateNode;
			try {
				qa(t, n);
			} catch (t) {
				Yu(e, e.return, t);
			}
		}
	}
	function Uc(e, t, n) {
		n.props = Gs(e.type, e.memoizedProps), n.state = e.memoizedState;
		try {
			n.componentWillUnmount();
		} catch (n) {
			Yu(e, t, n);
		}
	}
	function Wc(e, t) {
		try {
			var n = e.ref;
			if (n !== null) {
				switch (e.tag) {
					case 26:
					case 27:
					case 5:
						var r = e.stateNode;
						break;
					case 30:
						r = e.stateNode;
						break;
					default: r = e.stateNode;
				}
				typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
			}
		} catch (n) {
			Yu(e, t, n);
		}
	}
	function K(e, t) {
		var n = e.ref, r = e.refCleanup;
		if (n !== null) if (typeof r == "function") try {
			r();
		} catch (n) {
			Yu(e, t, n);
		} finally {
			e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
		}
		else if (typeof n == "function") try {
			n(null);
		} catch (n) {
			Yu(e, t, n);
		}
		else n.current = null;
	}
	function Gc(e) {
		var t = e.type, n = e.memoizedProps, r = e.stateNode;
		try {
			a: switch (t) {
				case "button":
				case "input":
				case "select":
				case "textarea":
					n.autoFocus && r.focus();
					break a;
				case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
			}
		} catch (t) {
			Yu(e, e.return, t);
		}
	}
	function Kc(e, t, n) {
		try {
			var r = e.stateNode;
			Hd(r, e.type, n, t), r[ut] = t;
		} catch (t) {
			Yu(e, e.return, t);
		}
	}
	function qc(e) {
		return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && af(e.type) || e.tag === 4;
	}
	function Jc(e) {
		a: for (;;) {
			for (; e.sibling === null;) {
				if (e.return === null || qc(e.return)) return null;
				e = e.return;
			}
			for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
				if (e.tag === 27 && af(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
				e.child.return = e, e = e.child;
			}
			if (!(e.flags & 2)) return e.stateNode;
		}
	}
	function Yc(e, t, n) {
		var r = e.tag;
		if (r === 5 || r === 6) e = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(e, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(e), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = Qt));
		else if (r !== 4 && (r === 27 && af(e.type) && (n = e.stateNode, t = null), e = e.child, e !== null)) for (Yc(e, t, n), e = e.sibling; e !== null;) Yc(e, t, n), e = e.sibling;
	}
	function Xc(e, t, n) {
		var r = e.tag;
		if (r === 5 || r === 6) e = e.stateNode, t ? n.insertBefore(e, t) : n.appendChild(e);
		else if (r !== 4 && (r === 27 && af(e.type) && (n = e.stateNode), e = e.child, e !== null)) for (Xc(e, t, n), e = e.sibling; e !== null;) Xc(e, t, n), e = e.sibling;
	}
	function Zc(e) {
		var t = e.stateNode, n = e.memoizedProps;
		try {
			for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
			Vd(t, r, n), t[lt] = e, t[ut] = n;
		} catch (t) {
			Yu(e, e.return, t);
		}
	}
	var Qc = !1, $c = !1, el = !1, tl = typeof WeakSet == "function" ? WeakSet : Set, nl = null;
	function rl(e, t) {
		if (e = e.containerInfo, Gd = pp, e = Cr(e), wr(e)) {
			if ("selectionStart" in e) var n = {
				start: e.selectionStart,
				end: e.selectionEnd
			};
			else a: {
				n = (n = e.ownerDocument) && n.defaultView || window;
				var r = n.getSelection && n.getSelection();
				if (r && r.rangeCount !== 0) {
					n = r.anchorNode;
					var a = r.anchorOffset, o = r.focusNode;
					r = r.focusOffset;
					try {
						n.nodeType, o.nodeType;
					} catch {
						n = null;
						break a;
					}
					var s = 0, c = -1, l = -1, u = 0, d = 0, f = e, p = null;
					b: for (;;) {
						for (var m; f !== n || a !== 0 && f.nodeType !== 3 || (c = s + a), f !== o || r !== 0 && f.nodeType !== 3 || (l = s + r), f.nodeType === 3 && (s += f.nodeValue.length), (m = f.firstChild) !== null;) p = f, f = m;
						for (;;) {
							if (f === e) break b;
							if (p === n && ++u === a && (c = s), p === o && ++d === r && (l = s), (m = f.nextSibling) !== null) break;
							f = p, p = f.parentNode;
						}
						f = m;
					}
					n = c === -1 || l === -1 ? null : {
						start: c,
						end: l
					};
				} else n = null;
			}
			n ||= {
				start: 0,
				end: 0
			};
		} else n = null;
		for (Kd = {
			focusedElem: e,
			selectionRange: n
		}, pp = !1, nl = t; nl !== null;) if (t = nl, e = t.child, t.subtreeFlags & 1028 && e !== null) e.return = t, nl = e;
		else for (; nl !== null;) {
			switch (t = nl, o = t.alternate, e = t.flags, t.tag) {
				case 0:
					if (e & 4 && (e = t.updateQueue, e = e === null ? null : e.events, e !== null)) for (n = 0; n < e.length; n++) a = e[n], a.ref.impl = a.nextImpl;
					break;
				case 11:
				case 15: break;
				case 1:
					if (e & 1024 && o !== null) {
						e = void 0, n = t, a = o.memoizedProps, o = o.memoizedState, r = n.stateNode;
						try {
							var h = Gs(n.type, a);
							e = r.getSnapshotBeforeUpdate(h, o), r.__reactInternalSnapshotBeforeUpdate = e;
						} catch (e) {
							Yu(n, n.return, e);
						}
					}
					break;
				case 3:
					if (e & 1024) {
						if (e = t.stateNode.containerInfo, n = e.nodeType, n === 9) cf(e);
						else if (n === 1) switch (e.nodeName) {
							case "HEAD":
							case "HTML":
							case "BODY":
								cf(e);
								break;
							default: e.textContent = "";
						}
					}
					break;
				case 5:
				case 26:
				case 27:
				case 6:
				case 4:
				case 17: break;
				default: if (e & 1024) throw Error(i(163));
			}
			if (e = t.sibling, e !== null) {
				e.return = t.return, nl = e;
				break;
			}
			nl = t.return;
		}
	}
	function il(e, t, n) {
		var r = n.flags;
		switch (n.tag) {
			case 0:
			case 11:
			case 15:
				yl(e, n), r & 4 && Bc(5, n);
				break;
			case 1:
				if (yl(e, n), r & 4) if (e = n.stateNode, t === null) try {
					e.componentDidMount();
				} catch (e) {
					Yu(n, n.return, e);
				}
				else {
					var i = Gs(n.type, t.memoizedProps);
					t = t.memoizedState;
					try {
						e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
					} catch (e) {
						Yu(n, n.return, e);
					}
				}
				r & 64 && Hc(n), r & 512 && Wc(n, n.return);
				break;
			case 3:
				if (yl(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
					if (t = null, n.child !== null) switch (n.child.tag) {
						case 27:
						case 5:
							t = n.child.stateNode;
							break;
						case 1: t = n.child.stateNode;
					}
					try {
						qa(e, t);
					} catch (e) {
						Yu(n, n.return, e);
					}
				}
				break;
			case 27: t === null && r & 4 && Zc(n);
			case 26:
			case 5:
				yl(e, n), t === null && r & 4 && Gc(n), r & 512 && Wc(n, n.return);
				break;
			case 12:
				yl(e, n);
				break;
			case 31:
				yl(e, n), r & 4 && ul(e, n);
				break;
			case 13:
				yl(e, n), r & 4 && dl(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = $u.bind(null, n), mf(e, n))));
				break;
			case 22:
				if (r = n.memoizedState !== null || Qc, !r) {
					t = t !== null && t.memoizedState !== null || $c, i = Qc;
					var a = $c;
					Qc = r, ($c = t) && !a ? xl(e, n, (n.subtreeFlags & 8772) != 0) : yl(e, n), Qc = i, $c = a;
				}
				break;
			case 30: break;
			default: yl(e, n);
		}
	}
	function al(e) {
		var t = e.alternate;
		t !== null && (e.alternate = null, al(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && I(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
	}
	var ol = null, sl = !1;
	function cl(e, t, n) {
		for (n = n.child; n !== null;) ll(e, t, n), n = n.sibling;
	}
	function ll(e, t, n) {
		if (ze && typeof ze.onCommitFiberUnmount == "function") try {
			ze.onCommitFiberUnmount(Re, n);
		} catch {}
		switch (n.tag) {
			case 26:
				$c || K(n, t), cl(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && (n = n.stateNode, n.parentNode.removeChild(n));
				break;
			case 27:
				$c || K(n, t);
				var r = ol, i = sl;
				af(n.type) && (ol = n.stateNode, sl = !1), cl(e, t, n), bf(n.stateNode), ol = r, sl = i;
				break;
			case 5: $c || K(n, t);
			case 6:
				if (r = ol, i = sl, ol = null, cl(e, t, n), ol = r, sl = i, ol !== null) if (sl) try {
					(ol.nodeType === 9 ? ol.body : ol.nodeName === "HTML" ? ol.ownerDocument.body : ol).removeChild(n.stateNode);
				} catch (e) {
					Yu(n, t, e);
				}
				else try {
					ol.removeChild(n.stateNode);
				} catch (e) {
					Yu(n, t, e);
				}
				break;
			case 18:
				ol !== null && (sl ? (e = ol, of(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), zp(e)) : of(ol, n.stateNode));
				break;
			case 4:
				r = ol, i = sl, ol = n.stateNode.containerInfo, sl = !0, cl(e, t, n), ol = r, sl = i;
				break;
			case 0:
			case 11:
			case 14:
			case 15:
				Vc(2, n, t), $c || Vc(4, n, t), cl(e, t, n);
				break;
			case 1:
				$c || (K(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Uc(n, t, r)), cl(e, t, n);
				break;
			case 21:
				cl(e, t, n);
				break;
			case 22:
				$c = (r = $c) || n.memoizedState !== null, cl(e, t, n), $c = r;
				break;
			default: cl(e, t, n);
		}
	}
	function ul(e, t) {
		if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
			e = e.dehydrated;
			try {
				zp(e);
			} catch (e) {
				Yu(t, t.return, e);
			}
		}
	}
	function dl(e, t) {
		if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
			zp(e);
		} catch (e) {
			Yu(t, t.return, e);
		}
	}
	function fl(e) {
		switch (e.tag) {
			case 31:
			case 13:
			case 19:
				var t = e.stateNode;
				return t === null && (t = e.stateNode = new tl()), t;
			case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new tl()), t;
			default: throw Error(i(435, e.tag));
		}
	}
	function pl(e, t) {
		var n = fl(e);
		t.forEach(function(t) {
			if (!n.has(t)) {
				n.add(t);
				var r = ed.bind(null, e, t);
				t.then(r, r);
			}
		});
	}
	function ml(e, t) {
		var n = t.deletions;
		if (n !== null) for (var r = 0; r < n.length; r++) {
			var a = n[r], o = e, s = t, c = s;
			a: for (; c !== null;) {
				switch (c.tag) {
					case 27:
						if (af(c.type)) {
							ol = c.stateNode, sl = !1;
							break a;
						}
						break;
					case 5:
						ol = c.stateNode, sl = !1;
						break a;
					case 3:
					case 4:
						ol = c.stateNode.containerInfo, sl = !0;
						break a;
				}
				c = c.return;
			}
			if (ol === null) throw Error(i(160));
			ll(o, s, a), ol = null, sl = !1, o = a.alternate, o !== null && (o.return = null), a.return = null;
		}
		if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) gl(t, e), t = t.sibling;
	}
	var hl = null;
	function gl(e, t) {
		var n = e.alternate, r = e.flags;
		switch (e.tag) {
			case 0:
			case 11:
			case 14:
			case 15:
				ml(t, e), _l(e), r & 4 && (Vc(3, e, e.return), Bc(3, e), Vc(5, e, e.return));
				break;
			case 1:
				ml(t, e), _l(e), r & 512 && ($c || n === null || K(n, n.return)), r & 64 && Qc && (e = e.updateQueue, e !== null && (r = e.callbacks, r !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? r : n.concat(r))));
				break;
			case 26:
				var a = hl;
				if (ml(t, e), _l(e), r & 512 && ($c || n === null || K(n, n.return)), r & 4) {
					var o = n === null ? null : n.memoizedState;
					if (r = e.memoizedState, n === null) if (r === null) if (e.stateNode === null) {
						a: {
							r = e.type, n = e.memoizedProps, a = a.ownerDocument || a;
							b: switch (r) {
								case "title":
									o = a.getElementsByTagName("title")[0], (!o || o[gt] || o[lt] || o.namespaceURI === "http://www.w3.org/2000/svg" || o.hasAttribute("itemprop")) && (o = a.createElement(r), a.head.insertBefore(o, a.querySelector("head > title"))), Vd(o, r, n), o[lt] = e, L(o), r = o;
									break a;
								case "link":
									var s = qf("link", "href", a).get(r + (n.href || ""));
									if (s) {
										for (var c = 0; c < s.length; c++) if (o = s[c], o.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && o.getAttribute("rel") === (n.rel == null ? null : n.rel) && o.getAttribute("title") === (n.title == null ? null : n.title) && o.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {
											s.splice(c, 1);
											break b;
										}
									}
									o = a.createElement(r), Vd(o, r, n), a.head.appendChild(o);
									break;
								case "meta":
									if (s = qf("meta", "content", a).get(r + (n.content || ""))) {
										for (c = 0; c < s.length; c++) if (o = s[c], o.getAttribute("content") === (n.content == null ? null : "" + n.content) && o.getAttribute("name") === (n.name == null ? null : n.name) && o.getAttribute("property") === (n.property == null ? null : n.property) && o.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && o.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {
											s.splice(c, 1);
											break b;
										}
									}
									o = a.createElement(r), Vd(o, r, n), a.head.appendChild(o);
									break;
								default: throw Error(i(468, r));
							}
							o[lt] = e, L(o), r = o;
						}
						e.stateNode = r;
					} else Jf(a, e.type, e.stateNode);
					else e.stateNode = Hf(a, r, e.memoizedProps);
					else o === r ? r === null && e.stateNode !== null && Kc(e, e.memoizedProps, n.memoizedProps) : (o === null ? n.stateNode !== null && (n = n.stateNode, n.parentNode.removeChild(n)) : o.count--, r === null ? Jf(a, e.type, e.stateNode) : Hf(a, r, e.memoizedProps));
				}
				break;
			case 27:
				ml(t, e), _l(e), r & 512 && ($c || n === null || K(n, n.return)), n !== null && r & 4 && Kc(e, e.memoizedProps, n.memoizedProps);
				break;
			case 5:
				if (ml(t, e), _l(e), r & 512 && ($c || n === null || K(n, n.return)), e.flags & 32) {
					a = e.stateNode;
					try {
						Wt(a, "");
					} catch (t) {
						Yu(e, e.return, t);
					}
				}
				r & 4 && e.stateNode != null && (a = e.memoizedProps, Kc(e, a, n === null ? a : n.memoizedProps)), r & 1024 && (el = !0);
				break;
			case 6:
				if (ml(t, e), _l(e), r & 4) {
					if (e.stateNode === null) throw Error(i(162));
					r = e.memoizedProps, n = e.stateNode;
					try {
						n.nodeValue = r;
					} catch (t) {
						Yu(e, e.return, t);
					}
				}
				break;
			case 3:
				if (Kf = null, a = hl, hl = Cf(t.containerInfo), ml(t, e), hl = a, _l(e), r & 4 && n !== null && n.memoizedState.isDehydrated) try {
					zp(t.containerInfo);
				} catch (t) {
					Yu(e, e.return, t);
				}
				el && (el = !1, vl(e));
				break;
			case 4:
				r = hl, hl = Cf(e.stateNode.containerInfo), ml(t, e), _l(e), hl = r;
				break;
			case 12:
				ml(t, e), _l(e);
				break;
			case 31:
				ml(t, e), _l(e), r & 4 && (r = e.updateQueue, r !== null && (e.updateQueue = null, pl(e, r)));
				break;
			case 13:
				ml(t, e), _l(e), e.child.flags & 8192 && e.memoizedState !== null != (n !== null && n.memoizedState !== null) && (ru = Ae()), r & 4 && (r = e.updateQueue, r !== null && (e.updateQueue = null, pl(e, r)));
				break;
			case 22:
				a = e.memoizedState !== null;
				var l = n !== null && n.memoizedState !== null, u = Qc, d = $c;
				if (Qc = u || a, $c = d || l, ml(t, e), $c = d, Qc = u, _l(e), r & 8192) a: for (t = e.stateNode, t._visibility = a ? t._visibility & -2 : t._visibility | 1, a && (n === null || l || Qc || $c || bl(e)), n = null, t = e;;) {
					if (t.tag === 5 || t.tag === 26) {
						if (n === null) {
							l = n = t;
							try {
								if (o = l.stateNode, a) s = o.style, typeof s.setProperty == "function" ? s.setProperty("display", "none", "important") : s.display = "none";
								else {
									c = l.stateNode;
									var f = l.memoizedProps.style, p = f != null && f.hasOwnProperty("display") ? f.display : null;
									c.style.display = p == null || typeof p == "boolean" ? "" : ("" + p).trim();
								}
							} catch (e) {
								Yu(l, l.return, e);
							}
						}
					} else if (t.tag === 6) {
						if (n === null) {
							l = t;
							try {
								l.stateNode.nodeValue = a ? "" : l.memoizedProps;
							} catch (e) {
								Yu(l, l.return, e);
							}
						}
					} else if (t.tag === 18) {
						if (n === null) {
							l = t;
							try {
								var m = l.stateNode;
								a ? sf(m, !0) : sf(l.stateNode, !1);
							} catch (e) {
								Yu(l, l.return, e);
							}
						}
					} else if ((t.tag !== 22 && t.tag !== 23 || t.memoizedState === null || t === e) && t.child !== null) {
						t.child.return = t, t = t.child;
						continue;
					}
					if (t === e) break a;
					for (; t.sibling === null;) {
						if (t.return === null || t.return === e) break a;
						n === t && (n = null), t = t.return;
					}
					n === t && (n = null), t.sibling.return = t.return, t = t.sibling;
				}
				r & 4 && (r = e.updateQueue, r !== null && (n = r.retryQueue, n !== null && (r.retryQueue = null, pl(e, n))));
				break;
			case 19:
				ml(t, e), _l(e), r & 4 && (r = e.updateQueue, r !== null && (e.updateQueue = null, pl(e, r)));
				break;
			case 30: break;
			case 21: break;
			default: ml(t, e), _l(e);
		}
	}
	function _l(e) {
		var t = e.flags;
		if (t & 2) {
			try {
				for (var n, r = e.return; r !== null;) {
					if (qc(r)) {
						n = r;
						break;
					}
					r = r.return;
				}
				if (n == null) throw Error(i(160));
				switch (n.tag) {
					case 27:
						var a = n.stateNode;
						Xc(e, Jc(e), a);
						break;
					case 5:
						var o = n.stateNode;
						n.flags & 32 && (Wt(o, ""), n.flags &= -33), Xc(e, Jc(e), o);
						break;
					case 3:
					case 4:
						var s = n.stateNode.containerInfo;
						Yc(e, Jc(e), s);
						break;
					default: throw Error(i(161));
				}
			} catch (t) {
				Yu(e, e.return, t);
			}
			e.flags &= -3;
		}
		t & 4096 && (e.flags &= -4097);
	}
	function vl(e) {
		if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
			var t = e;
			vl(t), t.tag === 5 && t.flags & 1024 && t.stateNode.reset(), e = e.sibling;
		}
	}
	function yl(e, t) {
		if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) il(e, t.alternate, t), t = t.sibling;
	}
	function bl(e) {
		for (e = e.child; e !== null;) {
			var t = e;
			switch (t.tag) {
				case 0:
				case 11:
				case 14:
				case 15:
					Vc(4, t, t.return), bl(t);
					break;
				case 1:
					K(t, t.return);
					var n = t.stateNode;
					typeof n.componentWillUnmount == "function" && Uc(t, t.return, n), bl(t);
					break;
				case 27: bf(t.stateNode);
				case 26:
				case 5:
					K(t, t.return), bl(t);
					break;
				case 22:
					t.memoizedState === null && bl(t);
					break;
				case 30:
					bl(t);
					break;
				default: bl(t);
			}
			e = e.sibling;
		}
	}
	function xl(e, t, n) {
		for (n &&= (t.subtreeFlags & 8772) != 0, t = t.child; t !== null;) {
			var r = t.alternate, i = e, a = t, o = a.flags;
			switch (a.tag) {
				case 0:
				case 11:
				case 15:
					xl(i, a, n), Bc(4, a);
					break;
				case 1:
					if (xl(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
						i.componentDidMount();
					} catch (e) {
						Yu(r, r.return, e);
					}
					if (r = a, i = r.updateQueue, i !== null) {
						var s = r.stateNode;
						try {
							var c = i.shared.hiddenCallbacks;
							if (c !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < c.length; i++) Ka(c[i], s);
						} catch (e) {
							Yu(r, r.return, e);
						}
					}
					n && o & 64 && Hc(a), Wc(a, a.return);
					break;
				case 27: Zc(a);
				case 26:
				case 5:
					xl(i, a, n), n && r === null && o & 4 && Gc(a), Wc(a, a.return);
					break;
				case 12:
					xl(i, a, n);
					break;
				case 31:
					xl(i, a, n), n && o & 4 && ul(i, a);
					break;
				case 13:
					xl(i, a, n), n && o & 4 && dl(i, a);
					break;
				case 22:
					a.memoizedState === null && xl(i, a, n), Wc(a, a.return);
					break;
				case 30: break;
				default: xl(i, a, n);
			}
			t = t.sibling;
		}
	}
	function Sl(e, t) {
		var n = null;
		e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && oa(n));
	}
	function Cl(e, t) {
		e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && oa(e));
	}
	function wl(e, t, n, r) {
		if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) Tl(e, t, n, r), t = t.sibling;
	}
	function Tl(e, t, n, r) {
		var i = t.flags;
		switch (t.tag) {
			case 0:
			case 11:
			case 15:
				wl(e, t, n, r), i & 2048 && Bc(9, t);
				break;
			case 1:
				wl(e, t, n, r);
				break;
			case 3:
				wl(e, t, n, r), i & 2048 && (e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && oa(e)));
				break;
			case 12:
				if (i & 2048) {
					wl(e, t, n, r), e = t.stateNode;
					try {
						var a = t.memoizedProps, o = a.id, s = a.onPostCommit;
						typeof s == "function" && s(o, t.alternate === null ? "mount" : "update", e.passiveEffectDuration, -0);
					} catch (e) {
						Yu(t, t.return, e);
					}
				} else wl(e, t, n, r);
				break;
			case 31:
				wl(e, t, n, r);
				break;
			case 13:
				wl(e, t, n, r);
				break;
			case 23: break;
			case 22:
				a = t.stateNode, o = t.alternate, t.memoizedState === null ? a._visibility & 2 ? wl(e, t, n, r) : (a._visibility |= 2, El(e, t, n, r, (t.subtreeFlags & 10256) != 0 || !1)) : a._visibility & 2 ? wl(e, t, n, r) : Dl(e, t), i & 2048 && Sl(o, t);
				break;
			case 24:
				wl(e, t, n, r), i & 2048 && Cl(t.alternate, t);
				break;
			default: wl(e, t, n, r);
		}
	}
	function El(e, t, n, r, i) {
		for (i &&= (t.subtreeFlags & 10256) != 0 || !1, t = t.child; t !== null;) {
			var a = e, o = t, s = n, c = r, l = o.flags;
			switch (o.tag) {
				case 0:
				case 11:
				case 15:
					El(a, o, s, c, i), Bc(8, o);
					break;
				case 23: break;
				case 22:
					var u = o.stateNode;
					o.memoizedState === null ? (u._visibility |= 2, El(a, o, s, c, i)) : u._visibility & 2 ? El(a, o, s, c, i) : Dl(a, o), i && l & 2048 && Sl(o.alternate, o);
					break;
				case 24:
					El(a, o, s, c, i), i && l & 2048 && Cl(o.alternate, o);
					break;
				default: El(a, o, s, c, i);
			}
			t = t.sibling;
		}
	}
	function Dl(e, t) {
		if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
			var n = e, r = t, i = r.flags;
			switch (r.tag) {
				case 22:
					Dl(n, r), i & 2048 && Sl(r.alternate, r);
					break;
				case 24:
					Dl(n, r), i & 2048 && Cl(r.alternate, r);
					break;
				default: Dl(n, r);
			}
			t = t.sibling;
		}
	}
	var Ol = 8192;
	function kl(e, t, n) {
		if (e.subtreeFlags & Ol) for (e = e.child; e !== null;) Al(e, t, n), e = e.sibling;
	}
	function Al(e, t, n) {
		switch (e.tag) {
			case 26:
				kl(e, t, n), e.flags & Ol && e.memoizedState !== null && Zf(n, hl, e.memoizedState, e.memoizedProps);
				break;
			case 5:
				kl(e, t, n);
				break;
			case 3:
			case 4:
				var r = hl;
				hl = Cf(e.stateNode.containerInfo), kl(e, t, n), hl = r;
				break;
			case 22:
				e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Ol, Ol = 16777216, kl(e, t, n), Ol = r) : kl(e, t, n));
				break;
			default: kl(e, t, n);
		}
	}
	function jl(e) {
		var t = e.alternate;
		if (t !== null && (e = t.child, e !== null)) {
			t.child = null;
			do
				t = e.sibling, e.sibling = null, e = t;
			while (e !== null);
		}
	}
	function Ml(e) {
		var t = e.deletions;
		if (e.flags & 16) {
			if (t !== null) for (var n = 0; n < t.length; n++) {
				var r = t[n];
				nl = r, Fl(r, e);
			}
			jl(e);
		}
		if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Nl(e), e = e.sibling;
	}
	function Nl(e) {
		switch (e.tag) {
			case 0:
			case 11:
			case 15:
				Ml(e), e.flags & 2048 && Vc(9, e, e.return);
				break;
			case 3:
				Ml(e);
				break;
			case 12:
				Ml(e);
				break;
			case 22:
				var t = e.stateNode;
				e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Pl(e)) : Ml(e);
				break;
			default: Ml(e);
		}
	}
	function Pl(e) {
		var t = e.deletions;
		if (e.flags & 16) {
			if (t !== null) for (var n = 0; n < t.length; n++) {
				var r = t[n];
				nl = r, Fl(r, e);
			}
			jl(e);
		}
		for (e = e.child; e !== null;) {
			switch (t = e, t.tag) {
				case 0:
				case 11:
				case 15:
					Vc(8, t, t.return), Pl(t);
					break;
				case 22:
					n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Pl(t));
					break;
				default: Pl(t);
			}
			e = e.sibling;
		}
	}
	function Fl(e, t) {
		for (; nl !== null;) {
			var n = nl;
			switch (n.tag) {
				case 0:
				case 11:
				case 15:
					Vc(8, n, t);
					break;
				case 23:
				case 22:
					if (n.memoizedState !== null && n.memoizedState.cachePool !== null) {
						var r = n.memoizedState.cachePool.pool;
						r != null && r.refCount++;
					}
					break;
				case 24: oa(n.memoizedState.cache);
			}
			if (r = n.child, r !== null) r.return = n, nl = r;
			else a: for (n = e; nl !== null;) {
				r = nl;
				var i = r.sibling, a = r.return;
				if (al(r), r === n) {
					nl = null;
					break a;
				}
				if (i !== null) {
					i.return = a, nl = i;
					break a;
				}
				nl = a;
			}
		}
	}
	var Il = {
		getCacheForType: function(e) {
			var t = Qi(ia), n = t.data.get(e);
			return n === void 0 && (n = e(), t.data.set(e, n)), n;
		},
		cacheSignal: function() {
			return Qi(ia).controller.signal;
		}
	}, Ll = typeof WeakMap == "function" ? WeakMap : Map, Rl = 0, zl = null, Bl = null, Vl = 0, Hl = 0, Ul = null, Wl = !1, Gl = !1, Kl = !1, ql = 0, Jl = 0, Yl = 0, Xl = 0, Zl = 0, Ql = 0, $l = 0, eu = null, tu = null, nu = !1, ru = 0, iu = 0, au = Infinity, ou = null, su = null, cu = 0, lu = null, uu = null, du = 0, fu = 0, pu = null, mu = null, hu = 0, gu = null;
	function _u() {
		return Rl & 2 && Vl !== 0 ? Vl & -Vl : j.T === null ? ot() : gd();
	}
	function vu() {
		if (Ql === 0) if (!(Vl & 536870912) || ji) {
			var e = Ke;
			Ke <<= 1, !(Ke & 3932160) && (Ke = 262144), Ql = e;
		} else Ql = 536870912;
		return e = Qa.current, e !== null && (e.flags |= 32), Ql;
	}
	function yu(e, t, n) {
		(e === zl && (Hl === 2 || Hl === 9) || e.cancelPendingCommit !== null) && (Eu(e, 0), Cu(e, Vl, Ql, !1)), F(e, n), (!(Rl & 2) || e !== zl) && (e === zl && (!(Rl & 2) && (Xl |= n), Jl === 4 && Cu(e, Vl, Ql, !1)), cd(e));
	}
	function bu(e, t, n) {
		if (Rl & 6) throw Error(i(327));
		var r = !n && (t & 127) == 0 && (t & e.expiredLanes) === 0 || Xe(e, t), a = r ? Pu(e, t) : Mu(e, t, !0), o = r;
		do {
			if (a === 0) {
				Gl && !r && Cu(e, t, 0, !1);
				break;
			} else {
				if (n = e.current.alternate, o && !Su(n)) {
					a = Mu(e, t, !1), o = !1;
					continue;
				}
				if (a === 2) {
					if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;
					else s = e.pendingLanes & -536870913, s = s === 0 ? s & 536870912 ? 536870912 : 0 : s;
					if (s !== 0) {
						t = s;
						a: {
							var c = e;
							a = eu;
							var l = c.current.memoizedState.isDehydrated;
							if (l && (Eu(c, s).flags |= 256), s = Mu(c, s, !1), s !== 2) {
								if (Kl && !l) {
									c.errorRecoveryDisabledLanes |= o, Xl |= o, a = 4;
									break a;
								}
								o = tu, tu = a, o !== null && (tu === null ? tu = o : tu.push.apply(tu, o));
							}
							a = s;
						}
						if (o = !1, a !== 2) continue;
					}
				}
				if (a === 1) {
					Eu(e, 0), Cu(e, t, 0, !0);
					break;
				}
				a: {
					switch (r = e, o = a, o) {
						case 0:
						case 1: throw Error(i(345));
						case 4: if ((t & 4194048) !== t) break;
						case 6:
							Cu(r, t, Ql, !Wl);
							break a;
						case 2:
							tu = null;
							break;
						case 3:
						case 5: break;
						default: throw Error(i(329));
					}
					if ((t & 62914560) === t && (a = ru + 300 - Ae(), 10 < a)) {
						if (Cu(r, t, Ql, !Wl), Ye(r, 0, !0) !== 0) break a;
						du = t, r.timeoutHandle = $d(xu.bind(null, r, n, tu, ou, nu, t, Ql, Xl, $l, Wl, o, "Throttled", -0, 0), a);
						break a;
					}
					xu(r, n, tu, ou, nu, t, Ql, Xl, $l, Wl, o, null, -0, 0);
				}
			}
			break;
		} while (1);
		cd(e);
	}
	function xu(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
		if (e.timeoutHandle = -1, d = t.subtreeFlags, d & 8192 || (d & 16785408) == 16785408) {
			d = {
				stylesheets: null,
				count: 0,
				imgCount: 0,
				imgBytes: 0,
				suspenseyImages: [],
				waitingForImages: !0,
				waitingForViewTransition: !1,
				unsuspend: Qt
			}, Al(t, a, d);
			var m = (a & 62914560) === a ? ru - Ae() : (a & 4194048) === a ? iu - Ae() : 0;
			if (m = $f(d, m), m !== null) {
				du = a, e.cancelPendingCommit = m(Vu.bind(null, e, t, a, n, r, i, o, s, c, u, d, null, f, p)), Cu(e, a, o, !l);
				return;
			}
		}
		Vu(e, t, a, n, r, i, o, s, c);
	}
	function Su(e) {
		for (var t = e;;) {
			var n = t.tag;
			if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
				var i = n[r], a = i.getSnapshot;
				i = i.value;
				try {
					if (!vr(a(), i)) return !1;
				} catch {
					return !1;
				}
			}
			if (n = t.child, t.subtreeFlags & 16384 && n !== null) n.return = t, t = n;
			else {
				if (t === e) break;
				for (; t.sibling === null;) {
					if (t.return === null || t.return === e) return !0;
					t = t.return;
				}
				t.sibling.return = t.return, t = t.sibling;
			}
		}
		return !0;
	}
	function Cu(e, t, n, r) {
		t &= ~Zl, t &= ~Xl, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
		for (var i = t; 0 < i;) {
			var a = 31 - Ve(i), o = 1 << a;
			r[a] = -1, i &= ~o;
		}
		n !== 0 && tt(e, n, t);
	}
	function wu() {
		return Rl & 6 ? !0 : (ld(0, !1), !1);
	}
	function Tu() {
		if (Bl !== null) {
			if (Hl === 0) var e = Bl.return;
			else e = Bl, Wi = Ui = null, Do(e), Oa = null, ka = 0, e = Bl;
			for (; e !== null;) zc(e.alternate, e), e = e.return;
			Bl = null;
		}
	}
	function Eu(e, t) {
		var n = e.timeoutHandle;
		n !== -1 && (e.timeoutHandle = -1, ef(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), du = 0, Tu(), zl = e, Bl = n = oi(e.current, null), Vl = t, Hl = 0, Ul = null, Wl = !1, Gl = Xe(e, t), Kl = !1, $l = Ql = Zl = Xl = Yl = Jl = 0, tu = eu = null, nu = !1, t & 8 && (t |= t & 32);
		var r = e.entangledLanes;
		if (r !== 0) for (e = e.entanglements, r &= t; 0 < r;) {
			var i = 31 - Ve(r), a = 1 << i;
			t |= e[i], r &= ~a;
		}
		return ql = t, Xr(), n;
	}
	function Du(e, t) {
		co = null, j.H = Ls, t === va || t === ba ? (t = Ea(), Hl = 3) : t === ya ? (t = Ea(), Hl = 4) : Hl = t === tc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, Ul = t, Bl === null && (Jl = 1, Ys(e, mi(t, e.current)));
	}
	function Ou() {
		var e = Qa.current;
		return e === null ? !0 : (Vl & 4194048) === Vl ? $a === null : (Vl & 62914560) === Vl || Vl & 536870912 ? e === $a : !1;
	}
	function ku() {
		var e = j.H;
		return j.H = Ls, e === null ? Ls : e;
	}
	function Au() {
		var e = j.A;
		return j.A = Il, e;
	}
	function ju() {
		Jl = 4, Wl || (Vl & 4194048) !== Vl && Qa.current !== null || (Gl = !0), !(Yl & 134217727) && !(Xl & 134217727) || zl === null || Cu(zl, Vl, Ql, !1);
	}
	function Mu(e, t, n) {
		var r = Rl;
		Rl |= 2;
		var i = ku(), a = Au();
		(zl !== e || Vl !== t) && (ou = null, Eu(e, t)), t = !1;
		var o = Jl;
		a: do
			try {
				if (Hl !== 0 && Bl !== null) {
					var s = Bl, c = Ul;
					switch (Hl) {
						case 8:
							Tu(), o = 6;
							break a;
						case 3:
						case 2:
						case 9:
						case 6:
							Qa.current === null && (t = !0);
							var l = Hl;
							if (Hl = 0, Ul = null, Ru(e, s, c, l), n && Gl) {
								o = 0;
								break a;
							}
							break;
						default: l = Hl, Hl = 0, Ul = null, Ru(e, s, c, l);
					}
				}
				Nu(), o = Jl;
				break;
			} catch (t) {
				Du(e, t);
			}
		while (1);
		return t && e.shellSuspendCounter++, Wi = Ui = null, Rl = r, j.H = i, j.A = a, Bl === null && (zl = null, Vl = 0, Xr()), o;
	}
	function Nu() {
		for (; Bl !== null;) Iu(Bl);
	}
	function Pu(e, t) {
		var n = Rl;
		Rl |= 2;
		var r = ku(), a = Au();
		zl !== e || Vl !== t ? (ou = null, au = Ae() + 500, Eu(e, t)) : Gl = Xe(e, t);
		a: do
			try {
				if (Hl !== 0 && Bl !== null) {
					t = Bl;
					var o = Ul;
					b: switch (Hl) {
						case 1:
							Hl = 0, Ul = null, Ru(e, t, o, 1);
							break;
						case 2:
						case 9:
							if (Sa(o)) {
								Hl = 0, Ul = null, Lu(t);
								break;
							}
							t = function() {
								Hl !== 2 && Hl !== 9 || zl !== e || (Hl = 7), cd(e);
							}, o.then(t, t);
							break a;
						case 3:
							Hl = 7;
							break a;
						case 4:
							Hl = 5;
							break a;
						case 7:
							Sa(o) ? (Hl = 0, Ul = null, Lu(t)) : (Hl = 0, Ul = null, Ru(e, t, o, 7));
							break;
						case 5:
							var s = null;
							switch (Bl.tag) {
								case 26: s = Bl.memoizedState;
								case 5:
								case 27:
									var c = Bl;
									if (s ? Xf(s) : c.stateNode.complete) {
										Hl = 0, Ul = null;
										var l = c.sibling;
										if (l !== null) Bl = l;
										else {
											var u = c.return;
											u === null ? Bl = null : (Bl = u, zu(u));
										}
										break b;
									}
							}
							Hl = 0, Ul = null, Ru(e, t, o, 5);
							break;
						case 6:
							Hl = 0, Ul = null, Ru(e, t, o, 6);
							break;
						case 8:
							Tu(), Jl = 6;
							break a;
						default: throw Error(i(462));
					}
				}
				Fu();
				break;
			} catch (t) {
				Du(e, t);
			}
		while (1);
		return Wi = Ui = null, j.H = r, j.A = a, Rl = n, Bl === null ? (zl = null, Vl = 0, Xr(), Jl) : 0;
	}
	function Fu() {
		for (; Bl !== null && !Oe();) Iu(Bl);
	}
	function Iu(e) {
		var t = jc(e.alternate, e, ql);
		e.memoizedProps = e.pendingProps, t === null ? zu(e) : Bl = t;
	}
	function Lu(e) {
		var t = e, n = t.alternate;
		switch (t.tag) {
			case 15:
			case 0:
				t = hc(n, t, t.pendingProps, t.type, void 0, Vl);
				break;
			case 11:
				t = hc(n, t, t.pendingProps, t.type.render, t.ref, Vl);
				break;
			case 5: Do(t);
			default: zc(n, t), t = Bl = si(t, ql), t = jc(n, t, ql);
		}
		e.memoizedProps = e.pendingProps, t === null ? zu(e) : Bl = t;
	}
	function Ru(e, t, n, r) {
		Wi = Ui = null, Do(t), Oa = null, ka = 0;
		var i = t.return;
		try {
			if (ec(e, i, t, n, Vl)) {
				Jl = 1, Ys(e, mi(n, e.current)), Bl = null;
				return;
			}
		} catch (t) {
			if (i !== null) throw Bl = i, t;
			Jl = 1, Ys(e, mi(n, e.current)), Bl = null;
			return;
		}
		t.flags & 32768 ? (ji || r === 1 ? e = !0 : Gl || Vl & 536870912 ? e = !1 : (Wl = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Qa.current, r !== null && r.tag === 13 && (r.flags |= 16384))), Bu(t, e)) : zu(t);
	}
	function zu(e) {
		var t = e;
		do {
			if (t.flags & 32768) {
				Bu(t, Wl);
				return;
			}
			e = t.return;
			var n = Lc(t.alternate, t, ql);
			if (n !== null) {
				Bl = n;
				return;
			}
			if (t = t.sibling, t !== null) {
				Bl = t;
				return;
			}
			Bl = t = e;
		} while (t !== null);
		Jl === 0 && (Jl = 5);
	}
	function Bu(e, t) {
		do {
			var n = Rc(e.alternate, e);
			if (n !== null) {
				n.flags &= 32767, Bl = n;
				return;
			}
			if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
				Bl = e;
				return;
			}
			Bl = e = n;
		} while (e !== null);
		Jl = 6, Bl = null;
	}
	function Vu(e, t, n, r, a, o, s, c, l) {
		e.cancelPendingCommit = null;
		do
			Ku();
		while (cu !== 0);
		if (Rl & 6) throw Error(i(327));
		if (t !== null) {
			if (t === e.current) throw Error(i(177));
			if (o = t.lanes | t.childLanes, o |= Yr, et(e, n, o, s, c, l), e === zl && (Bl = zl = null, Vl = 0), uu = t, lu = e, du = n, fu = o, pu = a, mu = r, t.subtreeFlags & 10256 || t.flags & 10256 ? (e.callbackNode = null, e.callbackPriority = 0, td(Ne, function() {
				return qu(), null;
			})) : (e.callbackNode = null, e.callbackPriority = 0), r = (t.flags & 13878) != 0, t.subtreeFlags & 13878 || r) {
				r = j.T, j.T = null, a = ae.p, ae.p = 2, s = Rl, Rl |= 4;
				try {
					rl(e, t, n);
				} finally {
					Rl = s, ae.p = a, j.T = r;
				}
			}
			cu = 1, Hu(), Uu(), Wu();
		}
	}
	function Hu() {
		if (cu === 1) {
			cu = 0;
			var e = lu, t = uu, n = (t.flags & 13878) != 0;
			if (t.subtreeFlags & 13878 || n) {
				n = j.T, j.T = null;
				var r = ae.p;
				ae.p = 2;
				var i = Rl;
				Rl |= 4;
				try {
					gl(t, e);
					var a = Kd, o = Cr(e.containerInfo), s = a.focusedElem, c = a.selectionRange;
					if (o !== s && s && s.ownerDocument && Sr(s.ownerDocument.documentElement, s)) {
						if (c !== null && wr(s)) {
							var l = c.start, u = c.end;
							if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);
							else {
								var d = s.ownerDocument || document, f = d && d.defaultView || window;
								if (f.getSelection) {
									var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);
									!p.extend && h > g && (o = g, g = h, h = o);
									var _ = xr(s, h), v = xr(s, g);
									if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {
										var y = d.createRange();
										y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));
									}
								}
							}
						}
						for (d = [], p = s; p = p.parentNode;) p.nodeType === 1 && d.push({
							element: p,
							left: p.scrollLeft,
							top: p.scrollTop
						});
						for (typeof s.focus == "function" && s.focus(), s = 0; s < d.length; s++) {
							var b = d[s];
							b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
						}
					}
					pp = !!Gd, Kd = Gd = null;
				} finally {
					Rl = i, ae.p = r, j.T = n;
				}
			}
			e.current = t, cu = 2;
		}
	}
	function Uu() {
		if (cu === 2) {
			cu = 0;
			var e = lu, t = uu, n = (t.flags & 8772) != 0;
			if (t.subtreeFlags & 8772 || n) {
				n = j.T, j.T = null;
				var r = ae.p;
				ae.p = 2;
				var i = Rl;
				Rl |= 4;
				try {
					il(e, t.alternate, t);
				} finally {
					Rl = i, ae.p = r, j.T = n;
				}
			}
			cu = 3;
		}
	}
	function Wu() {
		if (cu === 4 || cu === 3) {
			cu = 0, ke();
			var e = lu, t = uu, n = du, r = mu;
			t.subtreeFlags & 10256 || t.flags & 10256 ? cu = 5 : (cu = 0, uu = lu = null, Gu(e, e.pendingLanes));
			var i = e.pendingLanes;
			if (i === 0 && (su = null), at(n), t = t.stateNode, ze && typeof ze.onCommitFiberRoot == "function") try {
				ze.onCommitFiberRoot(Re, t, void 0, (t.current.flags & 128) == 128);
			} catch {}
			if (r !== null) {
				t = j.T, i = ae.p, ae.p = 2, j.T = null;
				try {
					for (var a = e.onRecoverableError, o = 0; o < r.length; o++) {
						var s = r[o];
						a(s.value, { componentStack: s.stack });
					}
				} finally {
					j.T = t, ae.p = i;
				}
			}
			du & 3 && Ku(), cd(e), i = e.pendingLanes, n & 261930 && i & 42 ? e === gu ? hu++ : (hu = 0, gu = e) : hu = 0, ld(0, !1);
		}
	}
	function Gu(e, t) {
		(e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, oa(t)));
	}
	function Ku() {
		return Hu(), Uu(), Wu(), qu();
	}
	function qu() {
		if (cu !== 5) return !1;
		var e = lu, t = fu;
		fu = 0;
		var n = at(du), r = j.T, a = ae.p;
		try {
			ae.p = 32 > n ? 32 : n, j.T = null, n = pu, pu = null;
			var o = lu, s = du;
			if (cu = 0, uu = lu = null, du = 0, Rl & 6) throw Error(i(331));
			var c = Rl;
			if (Rl |= 4, Nl(o.current), Tl(o, o.current, s, n), Rl = c, ld(0, !1), ze && typeof ze.onPostCommitFiberRoot == "function") try {
				ze.onPostCommitFiberRoot(Re, o);
			} catch {}
			return !0;
		} finally {
			ae.p = a, j.T = r, Gu(e, t);
		}
	}
	function Ju(e, t, n) {
		t = mi(n, t), t = Zs(e.stateNode, t, 2), e = Ba(e, t, 2), e !== null && (F(e, 2), cd(e));
	}
	function Yu(e, t, n) {
		if (e.tag === 3) Ju(e, e, n);
		else for (; t !== null;) {
			if (t.tag === 3) {
				Ju(t, e, n);
				break;
			} else if (t.tag === 1) {
				var r = t.stateNode;
				if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (su === null || !su.has(r))) {
					e = mi(n, e), n = Qs(2), r = Ba(t, n, 2), r !== null && ($s(n, r, t, e), F(r, 2), cd(r));
					break;
				}
			}
			t = t.return;
		}
	}
	function Xu(e, t, n) {
		var r = e.pingCache;
		if (r === null) {
			r = e.pingCache = new Ll();
			var i = /* @__PURE__ */ new Set();
			r.set(t, i);
		} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
		i.has(n) || (Kl = !0, i.add(n), e = Zu.bind(null, e, t, n), t.then(e, e));
	}
	function Zu(e, t, n) {
		var r = e.pingCache;
		r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, zl === e && (Vl & n) === n && (Jl === 4 || Jl === 3 && (Vl & 62914560) === Vl && 300 > Ae() - ru ? !(Rl & 2) && Eu(e, 0) : Zl |= n, $l === Vl && ($l = 0)), cd(e);
	}
	function Qu(e, t) {
		t === 0 && (t = Qe()), e = $r(e, t), e !== null && (F(e, t), cd(e));
	}
	function $u(e) {
		var t = e.memoizedState, n = 0;
		t !== null && (n = t.retryLane), Qu(e, n);
	}
	function ed(e, t) {
		var n = 0;
		switch (e.tag) {
			case 31:
			case 13:
				var r = e.stateNode, a = e.memoizedState;
				a !== null && (n = a.retryLane);
				break;
			case 19:
				r = e.stateNode;
				break;
			case 22:
				r = e.stateNode._retryCache;
				break;
			default: throw Error(i(314));
		}
		r !== null && r.delete(t), Qu(e, n);
	}
	function td(e, t) {
		return Ee(e, t);
	}
	var nd = null, rd = null, id = !1, ad = !1, od = !1, sd = 0;
	function cd(e) {
		e !== rd && e.next === null && (rd === null ? nd = rd = e : rd = rd.next = e), ad = !0, id || (id = !0, hd());
	}
	function ld(e, t) {
		if (!od && ad) {
			od = !0;
			do
				for (var n = !1, r = nd; r !== null;) {
					if (!t) if (e !== 0) {
						var i = r.pendingLanes;
						if (i === 0) var a = 0;
						else {
							var o = r.suspendedLanes, s = r.pingedLanes;
							a = (1 << 31 - Ve(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
						}
						a !== 0 && (n = !0, md(r, a));
					} else a = Vl, a = Ye(r, r === zl ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || Xe(r, a) || (n = !0, md(r, a));
					r = r.next;
				}
			while (n);
			od = !1;
		}
	}
	function ud() {
		dd();
	}
	function dd() {
		ad = id = !1;
		var e = 0;
		sd !== 0 && Qd() && (e = sd);
		for (var t = Ae(), n = null, r = nd; r !== null;) {
			var i = r.next, a = fd(r, t);
			a === 0 ? (r.next = null, n === null ? nd = i : n.next = i, i === null && (rd = n)) : (n = r, (e !== 0 || a & 3) && (ad = !0)), r = i;
		}
		cu !== 0 && cu !== 5 || ld(e, !1), sd !== 0 && (sd = 0);
	}
	function fd(e, t) {
		for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
			var o = 31 - Ve(a), s = 1 << o, c = i[o];
			c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = Ze(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
		}
		if (t = zl, n = Vl, n = Ye(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (Hl === 2 || Hl === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && De(r), e.callbackNode = null, e.callbackPriority = 0;
		if (!(n & 3) || Xe(e, n)) {
			if (t = n & -n, t === e.callbackPriority) return t;
			switch (r !== null && De(r), at(n)) {
				case 2:
				case 8:
					n = P;
					break;
				case 32:
					n = Ne;
					break;
				case 268435456:
					n = Fe;
					break;
				default: n = Ne;
			}
			return r = pd.bind(null, e), n = Ee(n, r), e.callbackPriority = t, e.callbackNode = n, t;
		}
		return r !== null && r !== null && De(r), e.callbackPriority = 2, e.callbackNode = null, 2;
	}
	function pd(e, t) {
		if (cu !== 0 && cu !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
		var n = e.callbackNode;
		if (Ku() && e.callbackNode !== n) return null;
		var r = Vl;
		return r = Ye(e, e === zl ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (bu(e, r, t), fd(e, Ae()), e.callbackNode != null && e.callbackNode === n ? pd.bind(null, e) : null);
	}
	function md(e, t) {
		if (Ku()) return null;
		bu(e, t, !0);
	}
	function hd() {
		nf(function() {
			Rl & 6 ? Ee(Me, ud) : dd();
		});
	}
	function gd() {
		if (sd === 0) {
			var e = U;
			e === 0 && (e = Ge, Ge <<= 1, !(Ge & 261888) && (Ge = 256)), sd = e;
		}
		return sd;
	}
	function _d(e) {
		return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : Zt("" + e);
	}
	function vd(e, t) {
		var n = t.ownerDocument.createElement("input");
		return n.name = t.name, n.value = t.value, e.id && n.setAttribute("form", e.id), t.parentNode.insertBefore(n, t), e = new FormData(e), n.parentNode.removeChild(n), e;
	}
	function yd(e, t, n, r, i) {
		if (t === "submit" && n && n.stateNode === i) {
			var a = _d((i[ut] || null).action), o = r.submitter;
			o && (t = (t = o[ut] || null) ? _d(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
			var s = new yn("action", "action", null, r, i);
			e.push({
				event: s,
				listeners: [{
					instance: null,
					listener: function() {
						if (r.defaultPrevented) {
							if (sd !== 0) {
								var e = o ? vd(i, o) : new FormData(i);
								Cs(n, {
									pending: !0,
									data: e,
									method: i.method,
									action: a
								}, null, e);
							}
						} else typeof a == "function" && (s.preventDefault(), e = o ? vd(i, o) : new FormData(i), Cs(n, {
							pending: !0,
							data: e,
							method: i.method,
							action: a
						}, a, e));
					},
					currentTarget: i
				}]
			});
		}
	}
	for (var bd = 0; bd < Wr.length; bd++) {
		var xd = Wr[bd];
		Gr(xd.toLowerCase(), "on" + (xd[0].toUpperCase() + xd.slice(1)));
	}
	Gr(Ir, "onAnimationEnd"), Gr(Lr, "onAnimationIteration"), Gr(Rr, "onAnimationStart"), Gr("dblclick", "onDoubleClick"), Gr("focusin", "onFocus"), Gr("focusout", "onBlur"), Gr(zr, "onTransitionRun"), Gr(Br, "onTransitionStart"), Gr(Vr, "onTransitionCancel"), Gr(Hr, "onTransitionEnd"), Ct("onMouseEnter", ["mouseout", "mouseover"]), Ct("onMouseLeave", ["mouseout", "mouseover"]), Ct("onPointerEnter", ["pointerout", "pointerover"]), Ct("onPointerLeave", ["pointerout", "pointerover"]), R("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), R("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), R("onBeforeInput", [
		"compositionend",
		"keypress",
		"textInput",
		"paste"
	]), R("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), R("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), R("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
	var Sd = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Cd = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sd));
	function wd(e, t) {
		t = (t & 4) != 0;
		for (var n = 0; n < e.length; n++) {
			var r = e[n], i = r.event;
			r = r.listeners;
			a: {
				var a = void 0;
				if (t) for (var o = r.length - 1; 0 <= o; o--) {
					var s = r[o], c = s.instance, l = s.currentTarget;
					if (s = s.listener, c !== a && i.isPropagationStopped()) break a;
					a = s, i.currentTarget = l;
					try {
						a(i);
					} catch (e) {
						Kr(e);
					}
					i.currentTarget = null, a = c;
				}
				else for (o = 0; o < r.length; o++) {
					if (s = r[o], c = s.instance, l = s.currentTarget, s = s.listener, c !== a && i.isPropagationStopped()) break a;
					a = s, i.currentTarget = l;
					try {
						a(i);
					} catch (e) {
						Kr(e);
					}
					i.currentTarget = null, a = c;
				}
			}
		}
	}
	function Td(e, t) {
		var n = t[ft];
		n === void 0 && (n = t[ft] = /* @__PURE__ */ new Set());
		var r = e + "__bubble";
		n.has(r) || (kd(t, e, 2, !1), n.add(r));
	}
	function Ed(e, t, n) {
		var r = 0;
		t && (r |= 4), kd(n, e, r, t);
	}
	var Dd = "_reactListening" + Math.random().toString(36).slice(2);
	function Od(e) {
		if (!e[Dd]) {
			e[Dd] = !0, xt.forEach(function(t) {
				t !== "selectionchange" && (Cd.has(t) || Ed(t, !1, e), Ed(t, !0, e));
			});
			var t = e.nodeType === 9 ? e : e.ownerDocument;
			t === null || t[Dd] || (t[Dd] = !0, Ed("selectionchange", !1, t));
		}
	}
	function kd(e, t, n, r) {
		switch (bp(t)) {
			case 2:
				var i = mp;
				break;
			case 8:
				i = hp;
				break;
			default: i = gp;
		}
		n = i.bind(null, t, n, e), i = void 0, !cn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
			capture: !0,
			passive: i
		}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
	}
	function Ad(e, t, n, r, i) {
		var a = r;
		if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
			if (r === null) return;
			var s = r.tag;
			if (s === 3 || s === 4) {
				var c = r.stateNode.containerInfo;
				if (c === i) break;
				if (s === 4) for (s = r.return; s !== null;) {
					var l = s.tag;
					if ((l === 3 || l === 4) && s.stateNode.containerInfo === i) return;
					s = s.return;
				}
				for (; c !== null;) {
					if (s = _t(c), s === null) return;
					if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
						r = a = s;
						continue a;
					}
					c = c.parentNode;
				}
			}
			r = r.return;
		}
		an(function() {
			var r = a, i = en(n), s = [];
			a: {
				var c = Ur.get(e);
				if (c !== void 0) {
					var l = yn, u = e;
					switch (e) {
						case "keypress": if (mn(n) === 0) break a;
						case "keydown":
						case "keyup":
							l = Ln;
							break;
						case "focusin":
							u = "focus", l = On;
							break;
						case "focusout":
							u = "blur", l = On;
							break;
						case "beforeblur":
						case "afterblur":
							l = On;
							break;
						case "click": if (n.button === 2) break a;
						case "auxclick":
						case "dblclick":
						case "mousedown":
						case "mousemove":
						case "mouseup":
						case "mouseout":
						case "mouseover":
						case "contextmenu":
							l = En;
							break;
						case "drag":
						case "dragend":
						case "dragenter":
						case "dragexit":
						case "dragleave":
						case "dragover":
						case "dragstart":
						case "drop":
							l = Dn;
							break;
						case "touchcancel":
						case "touchend":
						case "touchmove":
						case "touchstart":
							l = zn;
							break;
						case Ir:
						case Lr:
						case Rr:
							l = kn;
							break;
						case Hr:
							l = Bn;
							break;
						case "scroll":
						case "scrollend":
							l = xn;
							break;
						case "wheel":
							l = Vn;
							break;
						case "copy":
						case "cut":
						case "paste":
							l = An;
							break;
						case "gotpointercapture":
						case "lostpointercapture":
						case "pointercancel":
						case "pointerdown":
						case "pointermove":
						case "pointerout":
						case "pointerover":
						case "pointerup":
							l = Rn;
							break;
						case "toggle":
						case "beforetoggle": l = Hn;
					}
					var d = (t & 4) != 0, f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;
					d = [];
					for (var m = r, h; m !== null;) {
						var g = m;
						if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = on(m, p), g != null && d.push(jd(m, g, h))), f) break;
						m = m.return;
					}
					0 < d.length && (c = new l(c, u, null, n, i), s.push({
						event: c,
						listeners: d
					}));
				}
			}
			if (!(t & 7)) {
				a: {
					if (c = e === "mouseover" || e === "pointerover", l = e === "mouseout" || e === "pointerout", c && n !== $t && (u = n.relatedTarget || n.fromElement) && (_t(u) || u[dt])) break a;
					if ((l || c) && (c = i.window === i ? i : (c = i.ownerDocument) ? c.defaultView || c.parentWindow : window, l ? (u = n.relatedTarget || n.toElement, l = r, u = u ? _t(u) : null, u !== null && (f = o(u), d = u.tag, u !== f || d !== 5 && d !== 27 && d !== 6) && (u = null)) : (l = null, u = r), l !== u)) {
						if (d = En, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = Rn, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = l == null ? c : yt(l), h = u == null ? c : yt(u), c = new d(g, m + "leave", l, n, i), c.target = f, c.relatedTarget = h, g = null, _t(i) === r && (d = new d(p, m + "enter", u, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, l && u) b: {
							for (d = Nd, p = l, m = u, h = 0, g = p; g; g = d(g)) h++;
							g = 0;
							for (var _ = m; _; _ = d(_)) g++;
							for (; 0 < h - g;) p = d(p), h--;
							for (; 0 < g - h;) m = d(m), g--;
							for (; h--;) {
								if (p === m || m !== null && p === m.alternate) {
									d = p;
									break b;
								}
								p = d(p), m = d(m);
							}
							d = null;
						}
						else d = null;
						l !== null && Pd(s, c, l, d, !1), u !== null && f !== null && Pd(s, f, u, d, !0);
					}
				}
				a: {
					if (c = r ? yt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var v = cr;
					else if (nr(c)) if (lr) v = gr;
					else {
						v = H;
						var y = mr;
					}
					else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && Jt(r.elementType) && (v = cr) : v = hr;
					if (v &&= v(e, r)) {
						rr(s, v, n, i);
						break a;
					}
					y && y(e, c, r), e === "focusout" && r && c.type === "number" && r.memoizedProps.value != null && Bt(c, "number", c.value);
				}
				switch (y = r ? yt(r) : window, e) {
					case "focusin":
						(nr(y) || y.contentEditable === "true") && (Er = y, Dr = r, Or = null);
						break;
					case "focusout":
						Or = Dr = Er = null;
						break;
					case "mousedown":
						kr = !0;
						break;
					case "contextmenu":
					case "mouseup":
					case "dragend":
						kr = !1, Ar(s, n, i);
						break;
					case "selectionchange": if (Tr) break;
					case "keydown":
					case "keyup": Ar(s, n, i);
				}
				var b;
				if (Wn) b: {
					switch (e) {
						case "compositionstart":
							var x = "onCompositionStart";
							break b;
						case "compositionend":
							x = "onCompositionEnd";
							break b;
						case "compositionupdate":
							x = "onCompositionUpdate";
							break b;
					}
					x = void 0;
				}
				else Qn ? Xn(e, n) && (x = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (x = "onCompositionStart");
				x && (qn && n.locale !== "ko" && (Qn || x !== "onCompositionStart" ? x === "onCompositionEnd" && Qn && (b = pn()) : (un = i, dn = "value" in un ? un.value : un.textContent, Qn = !0)), y = Md(r, x), 0 < y.length && (x = new jn(x, e, null, n, i), s.push({
					event: x,
					listeners: y
				}), b ? x.data = b : (b = Zn(n), b !== null && (x.data = b)))), (b = Kn ? $n(e, n) : er(e, n)) && (x = Md(r, "onBeforeInput"), 0 < x.length && (y = new jn("onBeforeInput", "beforeinput", null, n, i), s.push({
					event: y,
					listeners: x
				}), y.data = b)), yd(s, e, r, n, i);
			}
			wd(s, t);
		});
	}
	function jd(e, t, n) {
		return {
			instance: e,
			listener: t,
			currentTarget: n
		};
	}
	function Md(e, t) {
		for (var n = t + "Capture", r = []; e !== null;) {
			var i = e, a = i.stateNode;
			if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = on(e, n), i != null && r.unshift(jd(e, i, a)), i = on(e, t), i != null && r.push(jd(e, i, a))), e.tag === 3) return r;
			e = e.return;
		}
		return [];
	}
	function Nd(e) {
		if (e === null) return null;
		do
			e = e.return;
		while (e && e.tag !== 5 && e.tag !== 27);
		return e || null;
	}
	function Pd(e, t, n, r, i) {
		for (var a = t._reactName, o = []; n !== null && n !== r;) {
			var s = n, c = s.alternate, l = s.stateNode;
			if (s = s.tag, c !== null && c === r) break;
			s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = on(n, a), l != null && o.unshift(jd(n, l, c))) : i || (l = on(n, a), l != null && o.push(jd(n, l, c)))), n = n.return;
		}
		o.length !== 0 && e.push({
			event: t,
			listeners: o
		});
	}
	var Fd = /\r\n?/g, Id = /\u0000|\uFFFD/g;
	function Ld(e) {
		return (typeof e == "string" ? e : "" + e).replace(Fd, "\n").replace(Id, "");
	}
	function Rd(e, t) {
		return t = Ld(t), Ld(e) === t;
	}
	function zd(e, t, n, r, a, o) {
		switch (n) {
			case "children":
				typeof r == "string" ? t === "body" || t === "textarea" && r === "" || Wt(e, r) : (typeof r == "number" || typeof r == "bigint") && t !== "body" && Wt(e, "" + r);
				break;
			case "className":
				kt(e, "class", r);
				break;
			case "tabIndex":
				kt(e, "tabindex", r);
				break;
			case "dir":
			case "role":
			case "viewBox":
			case "width":
			case "height":
				kt(e, n, r);
				break;
			case "style":
				qt(e, r, o);
				break;
			case "data": if (t !== "object") {
				kt(e, "data", r);
				break;
			}
			case "src":
			case "href":
				if (r === "" && (t !== "a" || n !== "href")) {
					e.removeAttribute(n);
					break;
				}
				if (r == null || typeof r == "function" || typeof r == "symbol" || typeof r == "boolean") {
					e.removeAttribute(n);
					break;
				}
				r = Zt("" + r), e.setAttribute(n, r);
				break;
			case "action":
			case "formAction":
				if (typeof r == "function") {
					e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
					break;
				} else typeof o == "function" && (n === "formAction" ? (t !== "input" && zd(e, t, "name", a.name, a, null), zd(e, t, "formEncType", a.formEncType, a, null), zd(e, t, "formMethod", a.formMethod, a, null), zd(e, t, "formTarget", a.formTarget, a, null)) : (zd(e, t, "encType", a.encType, a, null), zd(e, t, "method", a.method, a, null), zd(e, t, "target", a.target, a, null)));
				if (r == null || typeof r == "symbol" || typeof r == "boolean") {
					e.removeAttribute(n);
					break;
				}
				r = Zt("" + r), e.setAttribute(n, r);
				break;
			case "onClick":
				r != null && (e.onclick = Qt);
				break;
			case "onScroll":
				r != null && Td("scroll", e);
				break;
			case "onScrollEnd":
				r != null && Td("scrollend", e);
				break;
			case "dangerouslySetInnerHTML":
				if (r != null) {
					if (typeof r != "object" || !("__html" in r)) throw Error(i(61));
					if (n = r.__html, n != null) {
						if (a.children != null) throw Error(i(60));
						e.innerHTML = n;
					}
				}
				break;
			case "multiple":
				e.multiple = r && typeof r != "function" && typeof r != "symbol";
				break;
			case "muted":
				e.muted = r && typeof r != "function" && typeof r != "symbol";
				break;
			case "suppressContentEditableWarning":
			case "suppressHydrationWarning":
			case "defaultValue":
			case "defaultChecked":
			case "innerHTML":
			case "ref": break;
			case "autoFocus": break;
			case "xlinkHref":
				if (r == null || typeof r == "function" || typeof r == "boolean" || typeof r == "symbol") {
					e.removeAttribute("xlink:href");
					break;
				}
				n = Zt("" + r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
				break;
			case "contentEditable":
			case "spellCheck":
			case "draggable":
			case "value":
			case "autoReverse":
			case "externalResourcesRequired":
			case "focusable":
			case "preserveAlpha":
				r != null && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, "" + r) : e.removeAttribute(n);
				break;
			case "inert":
			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":
				r && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, "") : e.removeAttribute(n);
				break;
			case "capture":
			case "download":
				!0 === r ? e.setAttribute(n, "") : !1 !== r && r != null && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, r) : e.removeAttribute(n);
				break;
			case "cols":
			case "rows":
			case "size":
			case "span":
				r != null && typeof r != "function" && typeof r != "symbol" && !isNaN(r) && 1 <= r ? e.setAttribute(n, r) : e.removeAttribute(n);
				break;
			case "rowSpan":
			case "start":
				r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
				break;
			case "popover":
				Td("beforetoggle", e), Td("toggle", e), Ot(e, "popover", r);
				break;
			case "xlinkActuate":
				At(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
				break;
			case "xlinkArcrole":
				At(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
				break;
			case "xlinkRole":
				At(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
				break;
			case "xlinkShow":
				At(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
				break;
			case "xlinkTitle":
				At(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
				break;
			case "xlinkType":
				At(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
				break;
			case "xmlBase":
				At(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
				break;
			case "xmlLang":
				At(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
				break;
			case "xmlSpace":
				At(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
				break;
			case "is":
				Ot(e, "is", r);
				break;
			case "innerText":
			case "textContent": break;
			default: (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") && (n = Yt.get(n) || n, Ot(e, n, r));
		}
	}
	function Bd(e, t, n, r, a, o) {
		switch (n) {
			case "style":
				qt(e, r, o);
				break;
			case "dangerouslySetInnerHTML":
				if (r != null) {
					if (typeof r != "object" || !("__html" in r)) throw Error(i(61));
					if (n = r.__html, n != null) {
						if (a.children != null) throw Error(i(60));
						e.innerHTML = n;
					}
				}
				break;
			case "children":
				typeof r == "string" ? Wt(e, r) : (typeof r == "number" || typeof r == "bigint") && Wt(e, "" + r);
				break;
			case "onScroll":
				r != null && Td("scroll", e);
				break;
			case "onScrollEnd":
				r != null && Td("scrollend", e);
				break;
			case "onClick":
				r != null && (e.onclick = Qt);
				break;
			case "suppressContentEditableWarning":
			case "suppressHydrationWarning":
			case "innerHTML":
			case "ref": break;
			case "innerText":
			case "textContent": break;
			default: if (!St.hasOwnProperty(n)) a: {
				if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), t = n.slice(2, a ? n.length - 7 : void 0), o = e[ut] || null, o = o == null ? null : o[n], typeof o == "function" && e.removeEventListener(t, o, a), typeof r == "function")) {
					typeof o != "function" && o !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(t, r, a);
					break a;
				}
				n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Ot(e, n, r);
			}
		}
	}
	function Vd(e, t, n) {
		switch (t) {
			case "div":
			case "span":
			case "svg":
			case "path":
			case "a":
			case "g":
			case "p":
			case "li": break;
			case "img":
				Td("error", e), Td("load", e);
				var r = !1, a = !1, o;
				for (o in n) if (n.hasOwnProperty(o)) {
					var s = n[o];
					if (s != null) switch (o) {
						case "src":
							r = !0;
							break;
						case "srcSet":
							a = !0;
							break;
						case "children":
						case "dangerouslySetInnerHTML": throw Error(i(137, t));
						default: zd(e, t, o, s, n, null);
					}
				}
				a && zd(e, t, "srcSet", n.srcSet, n, null), r && zd(e, t, "src", n.src, n, null);
				return;
			case "input":
				Td("invalid", e);
				var c = o = s = a = null, l = null, u = null;
				for (r in n) if (n.hasOwnProperty(r)) {
					var d = n[r];
					if (d != null) switch (r) {
						case "name":
							a = d;
							break;
						case "type":
							s = d;
							break;
						case "checked":
							l = d;
							break;
						case "defaultChecked":
							u = d;
							break;
						case "value":
							o = d;
							break;
						case "defaultValue":
							c = d;
							break;
						case "children":
						case "dangerouslySetInnerHTML":
							if (d != null) throw Error(i(137, t));
							break;
						default: zd(e, t, r, d, n, null);
					}
				}
				zt(e, o, c, l, u, s, a, !1);
				return;
			case "select":
				for (a in Td("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
					case "value":
						o = c;
						break;
					case "defaultValue":
						s = c;
						break;
					case "multiple": r = c;
					default: zd(e, t, a, c, n, null);
				}
				t = o, n = s, e.multiple = !!r, t == null ? n != null && Vt(e, !!r, n, !0) : Vt(e, !!r, t, !1);
				return;
			case "textarea":
				for (s in Td("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
					case "value":
						r = c;
						break;
					case "defaultValue":
						a = c;
						break;
					case "children":
						o = c;
						break;
					case "dangerouslySetInnerHTML":
						if (c != null) throw Error(i(91));
						break;
					default: zd(e, t, s, c, n, null);
				}
				Ut(e, r, a, o);
				return;
			case "option":
				for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
					case "selected":
						e.selected = r && typeof r != "function" && typeof r != "symbol";
						break;
					default: zd(e, t, l, r, n, null);
				}
				return;
			case "dialog":
				Td("beforetoggle", e), Td("toggle", e), Td("cancel", e), Td("close", e);
				break;
			case "iframe":
			case "object":
				Td("load", e);
				break;
			case "video":
			case "audio":
				for (r = 0; r < Sd.length; r++) Td(Sd[r], e);
				break;
			case "image":
				Td("error", e), Td("load", e);
				break;
			case "details":
				Td("toggle", e);
				break;
			case "embed":
			case "source":
			case "link": Td("error", e), Td("load", e);
			case "area":
			case "base":
			case "br":
			case "col":
			case "hr":
			case "keygen":
			case "meta":
			case "param":
			case "track":
			case "wbr":
			case "menuitem":
				for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
					case "children":
					case "dangerouslySetInnerHTML": throw Error(i(137, t));
					default: zd(e, t, u, r, n, null);
				}
				return;
			default: if (Jt(t)) {
				for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && Bd(e, t, d, r, n, void 0));
				return;
			}
		}
		for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && zd(e, t, c, r, n, null));
	}
	function Hd(e, t, n, r) {
		switch (t) {
			case "div":
			case "span":
			case "svg":
			case "path":
			case "a":
			case "g":
			case "p":
			case "li": break;
			case "input":
				var a = null, o = null, s = null, c = null, l = null, u = null, d = null;
				for (m in n) {
					var f = n[m];
					if (n.hasOwnProperty(m) && f != null) switch (m) {
						case "checked": break;
						case "value": break;
						case "defaultValue": l = f;
						default: r.hasOwnProperty(m) || zd(e, t, m, null, r, f);
					}
				}
				for (var p in r) {
					var m = r[p];
					if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {
						case "type":
							o = m;
							break;
						case "name":
							a = m;
							break;
						case "checked":
							u = m;
							break;
						case "defaultChecked":
							d = m;
							break;
						case "value":
							s = m;
							break;
						case "defaultValue":
							c = m;
							break;
						case "children":
						case "dangerouslySetInnerHTML":
							if (m != null) throw Error(i(137, t));
							break;
						default: m !== f && zd(e, t, p, m, r, f);
					}
				}
				Rt(e, s, c, l, u, d, o, a);
				return;
			case "select":
				for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
					case "value": break;
					case "multiple": m = l;
					default: r.hasOwnProperty(o) || zd(e, t, o, null, r, l);
				}
				for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
					case "value":
						p = o;
						break;
					case "defaultValue":
						c = o;
						break;
					case "multiple": s = o;
					default: o !== l && zd(e, t, a, o, r, l);
				}
				t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? Vt(e, !!n, n ? [] : "", !1) : Vt(e, !!n, t, !0)) : Vt(e, !!n, p, !1);
				return;
			case "textarea":
				for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
					case "value": break;
					case "children": break;
					default: zd(e, t, c, null, r, a);
				}
				for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
					case "value":
						p = a;
						break;
					case "defaultValue":
						m = a;
						break;
					case "children": break;
					case "dangerouslySetInnerHTML":
						if (a != null) throw Error(i(91));
						break;
					default: a !== o && zd(e, t, s, a, r, o);
				}
				Ht(e, p, m);
				return;
			case "option":
				for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {
					case "selected":
						e.selected = !1;
						break;
					default: zd(e, t, h, null, r, p);
				}
				for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
					case "selected":
						e.selected = p && typeof p != "function" && typeof p != "symbol";
						break;
					default: zd(e, t, l, p, r, m);
				}
				return;
			case "img":
			case "link":
			case "area":
			case "base":
			case "br":
			case "col":
			case "embed":
			case "hr":
			case "keygen":
			case "meta":
			case "param":
			case "source":
			case "track":
			case "wbr":
			case "menuitem":
				for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && zd(e, t, g, null, r, p);
				for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
					case "children":
					case "dangerouslySetInnerHTML":
						if (p != null) throw Error(i(137, t));
						break;
					default: zd(e, t, u, p, r, m);
				}
				return;
			default: if (Jt(t)) {
				for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && Bd(e, t, _, void 0, r, p);
				for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || Bd(e, t, d, p, r, m);
				return;
			}
		}
		for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && zd(e, t, v, null, r, p);
		for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || zd(e, t, f, p, r, m);
	}
	function Ud(e) {
		switch (e) {
			case "css":
			case "script":
			case "font":
			case "img":
			case "image":
			case "input":
			case "link": return !0;
			default: return !1;
		}
	}
	function Wd() {
		if (typeof performance.getEntriesByType == "function") {
			for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {
				var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;
				if (a && s && Ud(o)) {
					for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {
						var c = n[r], l = c.startTime;
						if (l > s) break;
						var u = c.transferSize, d = c.initiatorType;
						u && Ud(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
					}
					if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;
				}
			}
			if (0 < e) return t / e / 1e6;
		}
		return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
	}
	var Gd = null, Kd = null;
	function qd(e) {
		return e.nodeType === 9 ? e : e.ownerDocument;
	}
	function Jd(e) {
		switch (e) {
			case "http://www.w3.org/2000/svg": return 1;
			case "http://www.w3.org/1998/Math/MathML": return 2;
			default: return 0;
		}
	}
	function Yd(e, t) {
		if (e === 0) switch (t) {
			case "svg": return 1;
			case "math": return 2;
			default: return 0;
		}
		return e === 1 && t === "foreignObject" ? 0 : e;
	}
	function Xd(e, t) {
		return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
	}
	var Zd = null;
	function Qd() {
		var e = window.event;
		return e && e.type === "popstate" ? e === Zd ? !1 : (Zd = e, !0) : (Zd = null, !1);
	}
	var $d = typeof setTimeout == "function" ? setTimeout : void 0, ef = typeof clearTimeout == "function" ? clearTimeout : void 0, tf = typeof Promise == "function" ? Promise : void 0, nf = typeof queueMicrotask == "function" ? queueMicrotask : tf === void 0 ? $d : function(e) {
		return tf.resolve(null).then(e).catch(rf);
	};
	function rf(e) {
		setTimeout(function() {
			throw e;
		});
	}
	function af(e) {
		return e === "head";
	}
	function of(e, t) {
		var n = t, r = 0;
		do {
			var i = n.nextSibling;
			if (e.removeChild(n), i && i.nodeType === 8) if (n = i.data, n === "/$" || n === "/&") {
				if (r === 0) {
					e.removeChild(i), zp(t);
					return;
				}
				r--;
			} else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;
			else if (n === "html") bf(e.ownerDocument.documentElement);
			else if (n === "head") {
				n = e.ownerDocument.head, bf(n);
				for (var a = n.firstChild; a;) {
					var o = a.nextSibling, s = a.nodeName;
					a[gt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
				}
			} else n === "body" && bf(e.ownerDocument.body);
			n = i;
		} while (n);
		zp(t);
	}
	function sf(e, t) {
		var n = e;
		e = 0;
		do {
			var r = n.nextSibling;
			if (n.nodeType === 1 ? t ? (n._stashedDisplay = n.style.display, n.style.display = "none") : (n.style.display = n._stashedDisplay || "", n.getAttribute("style") === "" && n.removeAttribute("style")) : n.nodeType === 3 && (t ? (n._stashedText = n.nodeValue, n.nodeValue = "") : n.nodeValue = n._stashedText || ""), r && r.nodeType === 8) if (n = r.data, n === "/$") {
				if (e === 0) break;
				e--;
			} else n !== "$" && n !== "$?" && n !== "$~" && n !== "$!" || e++;
			n = r;
		} while (n);
	}
	function cf(e) {
		var t = e.firstChild;
		for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
			var n = t;
			switch (t = t.nextSibling, n.nodeName) {
				case "HTML":
				case "HEAD":
				case "BODY":
					cf(n), I(n);
					continue;
				case "SCRIPT":
				case "STYLE": continue;
				case "LINK": if (n.rel.toLowerCase() === "stylesheet") continue;
			}
			e.removeChild(n);
		}
	}
	function lf(e, t, n, r) {
		for (; e.nodeType === 1;) {
			var i = n;
			if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
				if (!r && (e.nodeName !== "INPUT" || e.type !== "hidden")) break;
			} else if (!r) if (t === "input" && e.type === "hidden") {
				var a = i.name == null ? null : "" + i.name;
				if (i.type === "hidden" && e.getAttribute("name") === a) return e;
			} else return e;
			else if (!e[gt]) switch (t) {
				case "meta":
					if (!e.hasAttribute("itemprop")) break;
					return e;
				case "link":
					if (a = e.getAttribute("rel"), a === "stylesheet" && e.hasAttribute("data-precedence") || a !== i.rel || e.getAttribute("href") !== (i.href == null || i.href === "" ? null : i.href) || e.getAttribute("crossorigin") !== (i.crossOrigin == null ? null : i.crossOrigin) || e.getAttribute("title") !== (i.title == null ? null : i.title)) break;
					return e;
				case "style":
					if (e.hasAttribute("data-precedence")) break;
					return e;
				case "script":
					if (a = e.getAttribute("src"), (a !== (i.src == null ? null : i.src) || e.getAttribute("type") !== (i.type == null ? null : i.type) || e.getAttribute("crossorigin") !== (i.crossOrigin == null ? null : i.crossOrigin)) && a && e.hasAttribute("async") && !e.hasAttribute("itemprop")) break;
					return e;
				default: return e;
			}
			if (e = hf(e.nextSibling), e === null) break;
		}
		return null;
	}
	function uf(e, t, n) {
		if (t === "") return null;
		for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = hf(e.nextSibling), e === null)) return null;
		return e;
	}
	function df(e, t) {
		for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = hf(e.nextSibling), e === null)) return null;
		return e;
	}
	function ff(e) {
		return e.data === "$?" || e.data === "$~";
	}
	function pf(e) {
		return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";
	}
	function mf(e, t) {
		var n = e.ownerDocument;
		if (e.data === "$~") e._reactRetry = t;
		else if (e.data !== "$?" || n.readyState !== "loading") t();
		else {
			var r = function() {
				t(), n.removeEventListener("DOMContentLoaded", r);
			};
			n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
		}
	}
	function hf(e) {
		for (; e != null; e = e.nextSibling) {
			var t = e.nodeType;
			if (t === 1 || t === 3) break;
			if (t === 8) {
				if (t = e.data, t === "$" || t === "$!" || t === "$?" || t === "$~" || t === "&" || t === "F!" || t === "F") break;
				if (t === "/$" || t === "/&") return null;
			}
		}
		return e;
	}
	var gf = null;
	function _f(e) {
		e = e.nextSibling;
		for (var t = 0; e;) {
			if (e.nodeType === 8) {
				var n = e.data;
				if (n === "/$" || n === "/&") {
					if (t === 0) return hf(e.nextSibling);
					t--;
				} else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;
			}
			e = e.nextSibling;
		}
		return null;
	}
	function vf(e) {
		e = e.previousSibling;
		for (var t = 0; e;) {
			if (e.nodeType === 8) {
				var n = e.data;
				if (n === "$" || n === "$!" || n === "$?" || n === "$~" || n === "&") {
					if (t === 0) return e;
					t--;
				} else n !== "/$" && n !== "/&" || t++;
			}
			e = e.previousSibling;
		}
		return null;
	}
	function yf(e, t, n) {
		switch (t = qd(n), e) {
			case "html":
				if (e = t.documentElement, !e) throw Error(i(452));
				return e;
			case "head":
				if (e = t.head, !e) throw Error(i(453));
				return e;
			case "body":
				if (e = t.body, !e) throw Error(i(454));
				return e;
			default: throw Error(i(451));
		}
	}
	function bf(e) {
		for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
		I(e);
	}
	var xf = /* @__PURE__ */ new Map(), Sf = /* @__PURE__ */ new Set();
	function Cf(e) {
		return typeof e.getRootNode == "function" ? e.getRootNode() : e.nodeType === 9 ? e : e.ownerDocument;
	}
	var wf = ae.d;
	ae.d = {
		f: Tf,
		r: Ef,
		D: kf,
		C: Af,
		L: jf,
		m: Mf,
		X: Pf,
		S: Nf,
		M: Ff
	};
	function Tf() {
		var e = wf.f(), t = wu();
		return e || t;
	}
	function Ef(e) {
		var t = vt(e);
		t !== null && t.tag === 5 && t.type === "form" ? Ts(t) : wf.r(e);
	}
	var Df = typeof document > "u" ? null : document;
	function Of(e, t, n) {
		var r = Df;
		if (r && typeof t == "string" && t) {
			var i = Lt(t);
			i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Sf.has(i) || (Sf.add(i), e = {
				rel: e,
				crossOrigin: n,
				href: t
			}, r.querySelector(i) === null && (t = r.createElement("link"), Vd(t, "link", e), L(t), r.head.appendChild(t)));
		}
	}
	function kf(e) {
		wf.D(e), Of("dns-prefetch", e, null);
	}
	function Af(e, t) {
		wf.C(e, t), Of("preconnect", e, t);
	}
	function jf(e, t, n) {
		wf.L(e, t, n);
		var r = Df;
		if (r && e && t) {
			var i = "link[rel=\"preload\"][as=\"" + Lt(t) + "\"]";
			t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + Lt(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + Lt(n.imageSizes) + "\"]")) : i += "[href=\"" + Lt(e) + "\"]";
			var a = i;
			switch (t) {
				case "style":
					a = Lf(e);
					break;
				case "script": a = Vf(e);
			}
			xf.has(a) || (e = f({
				rel: "preload",
				href: t === "image" && n && n.imageSrcSet ? void 0 : e,
				as: t
			}, n), xf.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Rf(a)) || t === "script" && r.querySelector(q(a)) || (t = r.createElement("link"), Vd(t, "link", e), L(t), r.head.appendChild(t)));
		}
	}
	function Mf(e, t) {
		wf.m(e, t);
		var n = Df;
		if (n && e) {
			var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + Lt(r) + "\"][href=\"" + Lt(e) + "\"]", a = i;
			switch (r) {
				case "audioworklet":
				case "paintworklet":
				case "serviceworker":
				case "sharedworker":
				case "worker":
				case "script": a = Vf(e);
			}
			if (!xf.has(a) && (e = f({
				rel: "modulepreload",
				href: e
			}, t), xf.set(a, e), n.querySelector(i) === null)) {
				switch (r) {
					case "audioworklet":
					case "paintworklet":
					case "serviceworker":
					case "sharedworker":
					case "worker":
					case "script": if (n.querySelector(q(a))) return;
				}
				r = n.createElement("link"), Vd(r, "link", e), L(r), n.head.appendChild(r);
			}
		}
	}
	function Nf(e, t, n) {
		wf.S(e, t, n);
		var r = Df;
		if (r && e) {
			var i = bt(r).hoistableStyles, a = Lf(e);
			t ||= "default";
			var o = i.get(a);
			if (!o) {
				var s = {
					loading: 0,
					preload: null
				};
				if (o = r.querySelector(Rf(a))) s.loading = 5;
				else {
					e = f({
						rel: "stylesheet",
						href: e,
						"data-precedence": t
					}, n), (n = xf.get(a)) && Wf(e, n);
					var c = o = r.createElement("link");
					L(c), Vd(c, "link", e), c._p = new Promise(function(e, t) {
						c.onload = e, c.onerror = t;
					}), c.addEventListener("load", function() {
						s.loading |= 1;
					}), c.addEventListener("error", function() {
						s.loading |= 2;
					}), s.loading |= 4, Uf(o, t, r);
				}
				o = {
					type: "stylesheet",
					instance: o,
					count: 1,
					state: s
				}, i.set(a, o);
			}
		}
	}
	function Pf(e, t) {
		wf.X(e, t);
		var n = Df;
		if (n && e) {
			var r = bt(n).hoistableScripts, i = Vf(e), a = r.get(i);
			a || (a = n.querySelector(q(i)), a || (e = f({
				src: e,
				async: !0
			}, t), (t = xf.get(i)) && Gf(e, t), a = n.createElement("script"), L(a), Vd(a, "link", e), n.head.appendChild(a)), a = {
				type: "script",
				instance: a,
				count: 1,
				state: null
			}, r.set(i, a));
		}
	}
	function Ff(e, t) {
		wf.M(e, t);
		var n = Df;
		if (n && e) {
			var r = bt(n).hoistableScripts, i = Vf(e), a = r.get(i);
			a || (a = n.querySelector(q(i)), a || (e = f({
				src: e,
				async: !0,
				type: "module"
			}, t), (t = xf.get(i)) && Gf(e, t), a = n.createElement("script"), L(a), Vd(a, "link", e), n.head.appendChild(a)), a = {
				type: "script",
				instance: a,
				count: 1,
				state: null
			}, r.set(i, a));
		}
	}
	function If(e, t, n, r) {
		var a = (a = me.current) ? Cf(a) : null;
		if (!a) throw Error(i(446));
		switch (e) {
			case "meta":
			case "title": return null;
			case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (t = Lf(n.href), n = bt(a).hoistableStyles, r = n.get(t), r || (r = {
				type: "style",
				instance: null,
				count: 0,
				state: null
			}, n.set(t, r)), r) : {
				type: "void",
				instance: null,
				count: 0,
				state: null
			};
			case "link":
				if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
					e = Lf(n.href);
					var o = bt(a).hoistableStyles, s = o.get(e);
					if (s || (a = a.ownerDocument || a, s = {
						type: "stylesheet",
						instance: null,
						count: 0,
						state: {
							loading: 0,
							preload: null
						}
					}, o.set(e, s), (o = a.querySelector(Rf(e))) && !o._p && (s.instance = o, s.state.loading = 5), xf.has(e) || (n = {
						rel: "preload",
						as: "style",
						href: n.href,
						crossOrigin: n.crossOrigin,
						integrity: n.integrity,
						media: n.media,
						hrefLang: n.hrefLang,
						referrerPolicy: n.referrerPolicy
					}, xf.set(e, n), o || Bf(a, e, n, s.state))), t && r === null) throw Error(i(528, ""));
					return s;
				}
				if (t && r !== null) throw Error(i(529, ""));
				return null;
			case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (t = Vf(n), n = bt(a).hoistableScripts, r = n.get(t), r || (r = {
				type: "script",
				instance: null,
				count: 0,
				state: null
			}, n.set(t, r)), r) : {
				type: "void",
				instance: null,
				count: 0,
				state: null
			};
			default: throw Error(i(444, e));
		}
	}
	function Lf(e) {
		return "href=\"" + Lt(e) + "\"";
	}
	function Rf(e) {
		return "link[rel=\"stylesheet\"][" + e + "]";
	}
	function zf(e) {
		return f({}, e, {
			"data-precedence": e.precedence,
			precedence: null
		});
	}
	function Bf(e, t, n, r) {
		e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]") ? r.loading = 1 : (t = e.createElement("link"), r.preload = t, t.addEventListener("load", function() {
			return r.loading |= 1;
		}), t.addEventListener("error", function() {
			return r.loading |= 2;
		}), Vd(t, "link", n), L(t), e.head.appendChild(t));
	}
	function Vf(e) {
		return "[src=\"" + Lt(e) + "\"]";
	}
	function q(e) {
		return "script[async]" + e;
	}
	function Hf(e, t, n) {
		if (t.count++, t.instance === null) switch (t.type) {
			case "style":
				var r = e.querySelector("style[data-href~=\"" + Lt(n.href) + "\"]");
				if (r) return t.instance = r, L(r), r;
				var a = f({}, n, {
					"data-href": n.href,
					"data-precedence": n.precedence,
					href: null,
					precedence: null
				});
				return r = (e.ownerDocument || e).createElement("style"), L(r), Vd(r, "style", a), Uf(r, n.precedence, e), t.instance = r;
			case "stylesheet":
				a = Lf(n.href);
				var o = e.querySelector(Rf(a));
				if (o) return t.state.loading |= 4, t.instance = o, L(o), o;
				r = zf(n), (a = xf.get(a)) && Wf(r, a), o = (e.ownerDocument || e).createElement("link"), L(o);
				var s = o;
				return s._p = new Promise(function(e, t) {
					s.onload = e, s.onerror = t;
				}), Vd(o, "link", r), t.state.loading |= 4, Uf(o, n.precedence, e), t.instance = o;
			case "script": return o = Vf(n.src), (a = e.querySelector(q(o))) ? (t.instance = a, L(a), a) : (r = n, (a = xf.get(o)) && (r = f({}, n), Gf(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), L(a), Vd(a, "link", r), e.head.appendChild(a), t.instance = a);
			case "void": return null;
			default: throw Error(i(443, t.type));
		}
		else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Uf(r, n.precedence, e));
		return t.instance;
	}
	function Uf(e, t, n) {
		for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {
			var s = r[o];
			if (s.dataset.precedence === t) a = s;
			else if (a !== i) break;
		}
		a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
	}
	function Wf(e, t) {
		e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
	}
	function Gf(e, t) {
		e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
	}
	var Kf = null;
	function qf(e, t, n) {
		if (Kf === null) {
			var r = /* @__PURE__ */ new Map(), i = Kf = /* @__PURE__ */ new Map();
			i.set(n, r);
		} else i = Kf, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
		if (r.has(e)) return r;
		for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
			var a = n[i];
			if (!(a[gt] || a[lt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
				var o = a.getAttribute(t) || "";
				o = e + o;
				var s = r.get(o);
				s ? s.push(a) : r.set(o, [a]);
			}
		}
		return r;
	}
	function Jf(e, t, n) {
		e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
	}
	function Yf(e, t, n) {
		if (n === 1 || t.itemProp != null) return !1;
		switch (e) {
			case "meta":
			case "title": return !0;
			case "style":
				if (typeof t.precedence != "string" || typeof t.href != "string" || t.href === "") break;
				return !0;
			case "link":
				if (typeof t.rel != "string" || typeof t.href != "string" || t.href === "" || t.onLoad || t.onError) break;
				switch (t.rel) {
					case "stylesheet": return e = t.disabled, typeof t.precedence == "string" && e == null;
					default: return !0;
				}
			case "script": if (t.async && typeof t.async != "function" && typeof t.async != "symbol" && !t.onLoad && !t.onError && t.src && typeof t.src == "string") return !0;
		}
		return !1;
	}
	function Xf(e) {
		return !(e.type === "stylesheet" && !(e.state.loading & 3));
	}
	function Zf(e, t, n, r) {
		if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {
			if (n.instance === null) {
				var i = Lf(r.href), a = t.querySelector(Rf(i));
				if (a) {
					t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = ep.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, L(a);
					return;
				}
				a = t.ownerDocument || t, r = zf(r), (i = xf.get(i)) && Wf(r, i), a = a.createElement("link"), L(a);
				var o = a;
				o._p = new Promise(function(e, t) {
					o.onload = e, o.onerror = t;
				}), Vd(a, "link", r), n.instance = a;
			}
			e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = ep.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
		}
	}
	var Qf = 0;
	function $f(e, t) {
		return e.stylesheets && e.count === 0 && np(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
			var r = setTimeout(function() {
				if (e.stylesheets && np(e, e.stylesheets), e.unsuspend) {
					var t = e.unsuspend;
					e.unsuspend = null, t();
				}
			}, 6e4 + t);
			0 < e.imgBytes && Qf === 0 && (Qf = 62500 * Wd());
			var i = setTimeout(function() {
				if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && np(e, e.stylesheets), e.unsuspend)) {
					var t = e.unsuspend;
					e.unsuspend = null, t();
				}
			}, (e.imgBytes > Qf ? 50 : 800) + t);
			return e.unsuspend = n, function() {
				e.unsuspend = null, clearTimeout(r), clearTimeout(i);
			};
		} : null;
	}
	function ep() {
		if (this.count--, this.count === 0 && (this.imgCount === 0 || !this.waitingForImages)) {
			if (this.stylesheets) np(this, this.stylesheets);
			else if (this.unsuspend) {
				var e = this.unsuspend;
				this.unsuspend = null, e();
			}
		}
	}
	var tp = null;
	function np(e, t) {
		e.stylesheets = null, e.unsuspend !== null && (e.count++, tp = /* @__PURE__ */ new Map(), t.forEach(rp, e), tp = null, ep.call(e));
	}
	function rp(e, t) {
		if (!(t.state.loading & 4)) {
			var n = tp.get(e);
			if (n) var r = n.get(null);
			else {
				n = /* @__PURE__ */ new Map(), tp.set(e, n);
				for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {
					var o = i[a];
					(o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);
				}
				r && n.set(null, r);
			}
			i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = ep.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
		}
	}
	var ip = {
		$$typeof: S,
		Provider: null,
		Consumer: null,
		_currentValue: oe,
		_currentValue2: oe,
		_threadCount: 0
	};
	function ap(e, t, n, r, i, a, o, s, c) {
		this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = $e(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = $e(0), this.hiddenUpdates = $e(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.incompleteTransitions = /* @__PURE__ */ new Map();
	}
	function op(e, t, n, r, i, a, o, s, c, l, u, d) {
		return e = new ap(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ii(3, null, null, t), e.current = a, a.stateNode = e, t = aa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
			element: r,
			isDehydrated: n,
			cache: t
		}, La(a), e;
	}
	function sp(e) {
		return e ? (e = ni, e) : ni;
	}
	function cp(e, t, n, r, i, a) {
		i = sp(i), r.context === null ? r.context = i : r.pendingContext = i, r = za(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = Ba(e, r, t), n !== null && (yu(n, e, t), Va(n, e, t));
	}
	function lp(e, t) {
		if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
			var n = e.retryLane;
			e.retryLane = n !== 0 && n < t ? n : t;
		}
	}
	function up(e, t) {
		lp(e, t), (e = e.alternate) && lp(e, t);
	}
	function dp(e) {
		if (e.tag === 13 || e.tag === 31) {
			var t = $r(e, 67108864);
			t !== null && yu(t, e, 67108864), up(e, 67108864);
		}
	}
	function fp(e) {
		if (e.tag === 13 || e.tag === 31) {
			var t = _u();
			t = it(t);
			var n = $r(e, t);
			n !== null && yu(n, e, t), up(e, t);
		}
	}
	var pp = !0;
	function mp(e, t, n, r) {
		var i = j.T;
		j.T = null;
		var a = ae.p;
		try {
			ae.p = 2, gp(e, t, n, r);
		} finally {
			ae.p = a, j.T = i;
		}
	}
	function hp(e, t, n, r) {
		var i = j.T;
		j.T = null;
		var a = ae.p;
		try {
			ae.p = 8, gp(e, t, n, r);
		} finally {
			ae.p = a, j.T = i;
		}
	}
	function gp(e, t, n, r) {
		if (pp) {
			var i = _p(r);
			if (i === null) Ad(e, t, r, vp, n), kp(e, r);
			else if (jp(i, e, t, n, r)) r.stopPropagation();
			else if (kp(e, r), t & 4 && -1 < Op.indexOf(e)) {
				for (; i !== null;) {
					var a = vt(i);
					if (a !== null) switch (a.tag) {
						case 3:
							if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
								var o = Je(a.pendingLanes);
								if (o !== 0) {
									var s = a;
									for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
										var c = 1 << 31 - Ve(o);
										s.entanglements[1] |= c, o &= ~c;
									}
									cd(a), !(Rl & 6) && (au = Ae() + 500, ld(0, !1));
								}
							}
							break;
						case 31:
						case 13: s = $r(a, 2), s !== null && yu(s, a, 2), wu(), up(a, 2);
					}
					if (a = _p(r), a === null && Ad(e, t, r, vp, n), a === i) break;
					i = a;
				}
				i !== null && r.stopPropagation();
			} else Ad(e, t, r, null, n);
		}
	}
	function _p(e) {
		return e = en(e), yp(e);
	}
	var vp = null;
	function yp(e) {
		if (vp = null, e = _t(e), e !== null) {
			var t = o(e);
			if (t === null) e = null;
			else {
				var n = t.tag;
				if (n === 13) {
					if (e = s(t), e !== null) return e;
					e = null;
				} else if (n === 31) {
					if (e = c(t), e !== null) return e;
					e = null;
				} else if (n === 3) {
					if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null;
					e = null;
				} else t !== e && (e = null);
			}
		}
		return vp = e, null;
	}
	function bp(e) {
		switch (e) {
			case "beforetoggle":
			case "cancel":
			case "click":
			case "close":
			case "contextmenu":
			case "copy":
			case "cut":
			case "auxclick":
			case "dblclick":
			case "dragend":
			case "dragstart":
			case "drop":
			case "focusin":
			case "focusout":
			case "input":
			case "invalid":
			case "keydown":
			case "keypress":
			case "keyup":
			case "mousedown":
			case "mouseup":
			case "paste":
			case "pause":
			case "play":
			case "pointercancel":
			case "pointerdown":
			case "pointerup":
			case "ratechange":
			case "reset":
			case "resize":
			case "seeked":
			case "submit":
			case "toggle":
			case "touchcancel":
			case "touchend":
			case "touchstart":
			case "volumechange":
			case "change":
			case "selectionchange":
			case "textInput":
			case "compositionstart":
			case "compositionend":
			case "compositionupdate":
			case "beforeblur":
			case "afterblur":
			case "beforeinput":
			case "blur":
			case "fullscreenchange":
			case "focus":
			case "hashchange":
			case "popstate":
			case "select":
			case "selectstart": return 2;
			case "drag":
			case "dragenter":
			case "dragexit":
			case "dragleave":
			case "dragover":
			case "mousemove":
			case "mouseout":
			case "mouseover":
			case "pointermove":
			case "pointerout":
			case "pointerover":
			case "scroll":
			case "touchmove":
			case "wheel":
			case "mouseenter":
			case "mouseleave":
			case "pointerenter":
			case "pointerleave": return 8;
			case "message": switch (je()) {
				case Me: return 2;
				case P: return 8;
				case Ne:
				case Pe: return 32;
				case Fe: return 268435456;
				default: return 32;
			}
			default: return 32;
		}
	}
	var xp = !1, Sp = null, Cp = null, wp = null, Tp = /* @__PURE__ */ new Map(), Ep = /* @__PURE__ */ new Map(), Dp = [], Op = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
	function kp(e, t) {
		switch (e) {
			case "focusin":
			case "focusout":
				Sp = null;
				break;
			case "dragenter":
			case "dragleave":
				Cp = null;
				break;
			case "mouseover":
			case "mouseout":
				wp = null;
				break;
			case "pointerover":
			case "pointerout":
				Tp.delete(t.pointerId);
				break;
			case "gotpointercapture":
			case "lostpointercapture": Ep.delete(t.pointerId);
		}
	}
	function Ap(e, t, n, r, i, a) {
		return e === null || e.nativeEvent !== a ? (e = {
			blockedOn: t,
			domEventName: n,
			eventSystemFlags: r,
			nativeEvent: a,
			targetContainers: [i]
		}, t !== null && (t = vt(t), t !== null && dp(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
	}
	function jp(e, t, n, r, i) {
		switch (t) {
			case "focusin": return Sp = Ap(Sp, e, t, n, r, i), !0;
			case "dragenter": return Cp = Ap(Cp, e, t, n, r, i), !0;
			case "mouseover": return wp = Ap(wp, e, t, n, r, i), !0;
			case "pointerover":
				var a = i.pointerId;
				return Tp.set(a, Ap(Tp.get(a) || null, e, t, n, r, i)), !0;
			case "gotpointercapture": return a = i.pointerId, Ep.set(a, Ap(Ep.get(a) || null, e, t, n, r, i)), !0;
		}
		return !1;
	}
	function Mp(e) {
		var t = _t(e.target);
		if (t !== null) {
			var n = o(t);
			if (n !== null) {
				if (t = n.tag, t === 13) {
					if (t = s(n), t !== null) {
						e.blockedOn = t, st(e.priority, function() {
							fp(n);
						});
						return;
					}
				} else if (t === 31) {
					if (t = c(n), t !== null) {
						e.blockedOn = t, st(e.priority, function() {
							fp(n);
						});
						return;
					}
				} else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) {
					e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null;
					return;
				}
			}
		}
		e.blockedOn = null;
	}
	function Np(e) {
		if (e.blockedOn !== null) return !1;
		for (var t = e.targetContainers; 0 < t.length;) {
			var n = _p(e.nativeEvent);
			if (n === null) {
				n = e.nativeEvent;
				var r = new n.constructor(n.type, n);
				$t = r, n.target.dispatchEvent(r), $t = null;
			} else return t = vt(n), t !== null && dp(t), e.blockedOn = n, !1;
			t.shift();
		}
		return !0;
	}
	function Pp(e, t, n) {
		Np(e) && n.delete(t);
	}
	function Fp() {
		xp = !1, Sp !== null && Np(Sp) && (Sp = null), Cp !== null && Np(Cp) && (Cp = null), wp !== null && Np(wp) && (wp = null), Tp.forEach(Pp), Ep.forEach(Pp);
	}
	function Ip(e, n) {
		e.blockedOn === n && (e.blockedOn = null, xp || (xp = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Fp)));
	}
	var Lp = null;
	function Rp(e) {
		Lp !== e && (Lp = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
			Lp === e && (Lp = null);
			for (var t = 0; t < e.length; t += 3) {
				var n = e[t], r = e[t + 1], i = e[t + 2];
				if (typeof r != "function") {
					if (yp(r || n) === null) continue;
					break;
				}
				var a = vt(n);
				a !== null && (e.splice(t, 3), t -= 3, Cs(a, {
					pending: !0,
					data: i,
					method: n.method,
					action: r
				}, r, i));
			}
		}));
	}
	function zp(e) {
		function t(t) {
			return Ip(t, e);
		}
		Sp !== null && Ip(Sp, e), Cp !== null && Ip(Cp, e), wp !== null && Ip(wp, e), Tp.forEach(t), Ep.forEach(t);
		for (var n = 0; n < Dp.length; n++) {
			var r = Dp[n];
			r.blockedOn === e && (r.blockedOn = null);
		}
		for (; 0 < Dp.length && (n = Dp[0], n.blockedOn === null);) Mp(n), n.blockedOn === null && Dp.shift();
		if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
			var i = n[r], a = n[r + 1], o = i[ut] || null;
			if (typeof a == "function") o || Rp(n);
			else if (o) {
				var s = null;
				if (a && a.hasAttribute("formAction")) {
					if (i = a, o = a[ut] || null) s = o.formAction;
					else if (yp(i) !== null) continue;
				} else s = o.action;
				typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Rp(n);
			}
		}
	}
	function Bp() {
		function e(e) {
			e.canIntercept && e.info === "react-transition" && e.intercept({
				handler: function() {
					return new Promise(function(e) {
						return i = e;
					});
				},
				focusReset: "manual",
				scroll: "manual"
			});
		}
		function t() {
			i !== null && (i(), i = null), r || setTimeout(n, 20);
		}
		function n() {
			if (!r && !navigation.transition) {
				var e = navigation.currentEntry;
				e && e.url != null && navigation.navigate(e.url, {
					state: e.getState(),
					info: "react-transition",
					history: "replace"
				});
			}
		}
		if (typeof navigation == "object") {
			var r = !1, i = null;
			return navigation.addEventListener("navigate", e), navigation.addEventListener("navigatesuccess", t), navigation.addEventListener("navigateerror", t), setTimeout(n, 100), function() {
				r = !0, navigation.removeEventListener("navigate", e), navigation.removeEventListener("navigatesuccess", t), navigation.removeEventListener("navigateerror", t), i !== null && (i(), i = null);
			};
		}
	}
	function Vp(e) {
		this._internalRoot = e;
	}
	Hp.prototype.render = Vp.prototype.render = function(e) {
		var t = this._internalRoot;
		if (t === null) throw Error(i(409));
		var n = t.current;
		cp(n, _u(), e, t, null, null);
	}, Hp.prototype.unmount = Vp.prototype.unmount = function() {
		var e = this._internalRoot;
		if (e !== null) {
			this._internalRoot = null;
			var t = e.containerInfo;
			cp(e.current, 2, null, e, null, null), wu(), t[dt] = null;
		}
	};
	function Hp(e) {
		this._internalRoot = e;
	}
	Hp.prototype.unstable_scheduleHydration = function(e) {
		if (e) {
			var t = ot();
			e = {
				blockedOn: null,
				target: e,
				priority: t
			};
			for (var n = 0; n < Dp.length && t !== 0 && t < Dp[n].priority; n++);
			Dp.splice(n, 0, e), n === 0 && Mp(e);
		}
	};
	var Up = n.version;
	if (Up !== "19.2.4") throw Error(i(527, Up, "19.2.4"));
	ae.findDOMNode = function(e) {
		var t = e._reactInternals;
		if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
		return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
	};
	var Wp = {
		bundleType: 0,
		version: "19.2.4",
		rendererPackageName: "react-dom",
		currentDispatcherRef: j,
		reconcilerVersion: "19.2.4"
	};
	if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
		var Gp = __REACT_DEVTOOLS_GLOBAL_HOOK__;
		if (!Gp.isDisabled && Gp.supportsFiber) try {
			Re = Gp.inject(Wp), ze = Gp;
		} catch {}
	}
	e.createRoot = function(e, t) {
		if (!a(e)) throw Error(i(299));
		var n = !1, r = "", o = Ks, s = qs, c = Js;
		return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = op(e, 1, !1, null, null, n, r, null, o, s, c, Bp), e[dt] = t.current, Od(e), new Vp(t);
	}, e.hydrateRoot = function(e, t, n) {
		if (!a(e)) throw Error(i(299));
		var r = !1, o = "", s = Ks, c = qs, l = Js, u = null;
		return n != null && (!0 === n.unstable_strictMode && (r = !0), n.identifierPrefix !== void 0 && (o = n.identifierPrefix), n.onUncaughtError !== void 0 && (s = n.onUncaughtError), n.onCaughtError !== void 0 && (c = n.onCaughtError), n.onRecoverableError !== void 0 && (l = n.onRecoverableError), n.formState !== void 0 && (u = n.formState)), t = op(e, 1, !0, t, n ?? null, r, o, u, s, c, l, Bp), t.context = sp(null), n = t.current, r = _u(), r = it(r), o = za(r), o.callback = null, Ba(n, o, r), n = r, t.current.lanes = n, F(t, n), cd(t), e[dt] = t.current, Od(e), new Hp(t);
	}, e.version = "19.2.4";
})), x = /* @__PURE__ */ s(((e) => {
	process.env.NODE_ENV !== "production" && (function() {
		function t(e, t) {
			for (e = e.memoizedState; e !== null && 0 < t;) e = e.next, t--;
			return e;
		}
		function n(e, t, r, i) {
			if (r >= t.length) return i;
			var a = t[r], o = Vf(e) ? e.slice() : Cf({}, e);
			return o[a] = n(e[a], t, r + 1, i), o;
		}
		function r(e, t, n) {
			if (t.length !== n.length) console.warn("copyWithRename() expects paths of the same length");
			else {
				for (var r = 0; r < n.length - 1; r++) if (t[r] !== n[r]) {
					console.warn("copyWithRename() expects paths to be the same except for the deepest key");
					return;
				}
				return i(e, t, n, 0);
			}
		}
		function i(e, t, n, r) {
			var a = t[r], o = Vf(e) ? e.slice() : Cf({}, e);
			return r + 1 === t.length ? (o[n[r]] = o[a], Vf(o) ? o.splice(a, 1) : delete o[a]) : o[a] = i(e[a], t, n, r + 1), o;
		}
		function a(e, t, n) {
			var r = t[n], i = Vf(e) ? e.slice() : Cf({}, e);
			return n + 1 === t.length ? (Vf(i) ? i.splice(r, 1) : delete i[r], i) : (i[r] = a(e[r], t, n + 1), i);
		}
		function o() {
			return !1;
		}
		function s() {
			return null;
		}
		function c() {
			console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks");
		}
		function l() {
			console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
		}
		function u() {}
		function d() {}
		function f(e) {
			var t = [];
			return e.forEach(function(e) {
				t.push(e);
			}), t.sort().join(", ");
		}
		function m(e, t, n, r) {
			return new ur(e, t, n, r);
		}
		function h(e, t) {
			e.context === Eg && (qd(e.current, 2, t, e, null, null), Zc());
		}
		function _(e, t) {
			if (Dg !== null) {
				var n = t.staleFamilies;
				t = t.updatedFamilies, Cl(), V(e.current, t, n), Zc();
			}
		}
		function v(e) {
			Dg = e;
		}
		function b(e) {
			return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11);
		}
		function x(e) {
			var t = e, n = e;
			if (e.alternate) for (; t.return;) t = t.return;
			else {
				e = t;
				do
					t = e, t.flags & 4098 && (n = t.return), e = t.return;
				while (e);
			}
			return t.tag === 3 ? n : null;
		}
		function ee(e) {
			if (e.tag === 13) {
				var t = e.memoizedState;
				if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;
			}
			return null;
		}
		function S(e) {
			if (e.tag === 31) {
				var t = e.memoizedState;
				if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;
			}
			return null;
		}
		function C(e) {
			if (x(e) !== e) throw Error("Unable to find node on an unmounted component.");
		}
		function te(e) {
			var t = e.alternate;
			if (!t) {
				if (t = x(e), t === null) throw Error("Unable to find node on an unmounted component.");
				return t === e ? e : null;
			}
			for (var n = e, r = t;;) {
				var i = n.return;
				if (i === null) break;
				var a = i.alternate;
				if (a === null) {
					if (r = i.return, r !== null) {
						n = r;
						continue;
					}
					break;
				}
				if (i.child === a.child) {
					for (a = i.child; a;) {
						if (a === n) return C(i), e;
						if (a === r) return C(i), t;
						a = a.sibling;
					}
					throw Error("Unable to find node on an unmounted component.");
				}
				if (n.return !== r.return) n = i, r = a;
				else {
					for (var o = !1, s = i.child; s;) {
						if (s === n) {
							o = !0, n = i, r = a;
							break;
						}
						if (s === r) {
							o = !0, r = i, n = a;
							break;
						}
						s = s.sibling;
					}
					if (!o) {
						for (s = a.child; s;) {
							if (s === n) {
								o = !0, n = a, r = i;
								break;
							}
							if (s === r) {
								o = !0, r = a, n = i;
								break;
							}
							s = s.sibling;
						}
						if (!o) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
					}
				}
				if (n.alternate !== r) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
			}
			if (n.tag !== 3) throw Error("Unable to find node on an unmounted component.");
			return n.stateNode.current === n ? e : t;
		}
		function ne(e) {
			var t = e.tag;
			if (t === 5 || t === 26 || t === 27 || t === 6) return e;
			for (e = e.child; e !== null;) {
				if (t = ne(e), t !== null) return t;
				e = e.sibling;
			}
			return null;
		}
		function w(e) {
			return typeof e != "object" || !e ? null : (e = zf && e[zf] || e["@@iterator"], typeof e == "function" ? e : null);
		}
		function T(e) {
			if (e == null) return null;
			if (typeof e == "function") return e.$$typeof === Bf ? null : e.displayName || e.name || null;
			if (typeof e == "string") return e;
			switch (e) {
				case Df: return "Fragment";
				case kf: return "Profiler";
				case Of: return "StrictMode";
				case Nf: return "Suspense";
				case Pf: return "SuspenseList";
				case Lf: return "Activity";
			}
			if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
				case Ef: return "Portal";
				case jf: return e.displayName || "Context";
				case Af: return (e._context.displayName || "Context") + ".Consumer";
				case Mf:
					var t = e.render;
					return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
				case Ff: return t = e.displayName || null, t === null ? T(e.type) || "Memo" : t;
				case If:
					t = e._payload, e = e._init;
					try {
						return T(e(t));
					} catch {}
			}
			return null;
		}
		function E(e) {
			return typeof e.tag == "number" ? D(e) : typeof e.name == "string" ? e.name : null;
		}
		function D(e) {
			var t = e.type;
			switch (e.tag) {
				case 31: return "Activity";
				case 24: return "Cache";
				case 9: return (t._context.displayName || "Context") + ".Consumer";
				case 10: return t.displayName || "Context";
				case 18: return "DehydratedFragment";
				case 11: return e = t.render, e = e.displayName || e.name || "", t.displayName || (e === "" ? "ForwardRef" : "ForwardRef(" + e + ")");
				case 7: return "Fragment";
				case 26:
				case 27:
				case 5: return t;
				case 4: return "Portal";
				case 3: return "Root";
				case 6: return "Text";
				case 16: return T(t);
				case 8: return t === Of ? "StrictMode" : "Mode";
				case 22: return "Offscreen";
				case 12: return "Profiler";
				case 21: return "Scope";
				case 13: return "Suspense";
				case 19: return "SuspenseList";
				case 25: return "TracingMarker";
				case 1:
				case 0:
				case 14:
				case 15:
					if (typeof t == "function") return t.displayName || t.name || null;
					if (typeof t == "string") return t;
					break;
				case 29:
					if (t = e._debugInfo, t != null) {
						for (var n = t.length - 1; 0 <= n; n--) if (typeof t[n].name == "string") return t[n].name;
					}
					if (e.return !== null) return D(e.return);
			}
			return null;
		}
		function re(e) {
			return { current: e };
		}
		function O(e, t) {
			0 > Kf ? console.error("Unexpected pop.") : (t !== Gf[Kf] && console.error("Unexpected Fiber popped."), e.current = Wf[Kf], Wf[Kf] = null, Gf[Kf] = null, Kf--);
		}
		function k(e, t, n) {
			Kf++, Wf[Kf] = e.current, Gf[Kf] = n, e.current = t;
		}
		function A(e) {
			return e === null && console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."), e;
		}
		function ie(e, t) {
			k(Yf, t, e), k(Jf, e, e), k(qf, null, e);
			var n = t.nodeType;
			switch (n) {
				case 9:
				case 11:
					n = n === 9 ? "#document" : "#fragment", t = (t = t.documentElement) && (t = t.namespaceURI) ? Nu(t) : WS;
					break;
				default: if (n = t.tagName, t = t.namespaceURI) t = Nu(t), t = Pu(t, n);
				else switch (n) {
					case "svg":
						t = GS;
						break;
					case "math":
						t = KS;
						break;
					default: t = WS;
				}
			}
			n = n.toLowerCase(), n = Pt(null, n), n = {
				context: t,
				ancestorInfo: n
			}, O(qf, e), k(qf, n, e);
		}
		function j(e) {
			O(qf, e), O(Jf, e), O(Yf, e);
		}
		function ae() {
			return A(qf.current);
		}
		function oe(e) {
			e.memoizedState !== null && k(Xf, e, e);
			var t = A(qf.current), n = e.type, r = Pu(t.context, n);
			n = Pt(t.ancestorInfo, n), r = {
				context: r,
				ancestorInfo: n
			}, t !== r && (k(Jf, e, e), k(qf, r, e));
		}
		function se(e) {
			Jf.current === e && (O(qf, e), O(Jf, e)), Xf.current === e && (O(Xf, e), xC._currentValue = bC);
		}
		function ce() {}
		function le() {
			if (Zf === 0) {
				Qf = console.log, $f = console.info, ep = console.warn, tp = console.error, np = console.group, rp = console.groupCollapsed, ip = console.groupEnd;
				var e = {
					configurable: !0,
					enumerable: !0,
					value: ce,
					writable: !0
				};
				Object.defineProperties(console, {
					info: e,
					log: e,
					warn: e,
					error: e,
					group: e,
					groupCollapsed: e,
					groupEnd: e
				});
			}
			Zf++;
		}
		function ue() {
			if (Zf--, Zf === 0) {
				var e = {
					configurable: !0,
					enumerable: !0,
					writable: !0
				};
				Object.defineProperties(console, {
					log: Cf({}, e, { value: Qf }),
					info: Cf({}, e, { value: $f }),
					warn: Cf({}, e, { value: ep }),
					error: Cf({}, e, { value: tp }),
					group: Cf({}, e, { value: np }),
					groupCollapsed: Cf({}, e, { value: rp }),
					groupEnd: Cf({}, e, { value: ip })
				});
			}
			0 > Zf && console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
		}
		function de(e) {
			var t = Error.prepareStackTrace;
			if (Error.prepareStackTrace = void 0, e = e.stack, Error.prepareStackTrace = t, e.startsWith("Error: react-stack-top-frame\n") && (e = e.slice(29)), t = e.indexOf("\n"), t !== -1 && (e = e.slice(t + 1)), t = e.indexOf("react_stack_bottom_frame"), t !== -1 && (t = e.lastIndexOf("\n", t)), t !== -1) e = e.slice(0, t);
			else return "";
			return e;
		}
		function fe(e) {
			if (ap === void 0) try {
				throw Error();
			} catch (e) {
				var t = e.stack.trim().match(/\n( *(at )?)/);
				ap = t && t[1] || "", op = -1 < e.stack.indexOf("\n    at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
			}
			return "\n" + ap + e + op;
		}
		function pe(e, t) {
			if (!e || sp) return "";
			var n = cp.get(e);
			if (n !== void 0) return n;
			sp = !0, n = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
			var r = null;
			r = q.H, q.H = null, le();
			try {
				var i = { DetermineComponentFrameRoot: function() {
					try {
						if (t) {
							var n = function() {
								throw Error();
							};
							if (Object.defineProperty(n.prototype, "props", { set: function() {
								throw Error();
							} }), typeof Reflect == "object" && Reflect.construct) {
								try {
									Reflect.construct(n, []);
								} catch (e) {
									var r = e;
								}
								Reflect.construct(e, [], n);
							} else {
								try {
									n.call();
								} catch (e) {
									r = e;
								}
								e.call(n.prototype);
							}
						} else {
							try {
								throw Error();
							} catch (e) {
								r = e;
							}
							(n = e()) && typeof n.catch == "function" && n.catch(function() {});
						}
					} catch (e) {
						if (e && r && typeof e.stack == "string") return [e.stack, r.stack];
					}
					return [null, null];
				} };
				i.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
				var a = Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot, "name");
				a && a.configurable && Object.defineProperty(i.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });
				var o = i.DetermineComponentFrameRoot(), s = o[0], c = o[1];
				if (s && c) {
					var l = s.split("\n"), u = c.split("\n");
					for (o = a = 0; a < l.length && !l[a].includes("DetermineComponentFrameRoot");) a++;
					for (; o < u.length && !u[o].includes("DetermineComponentFrameRoot");) o++;
					if (a === l.length || o === u.length) for (a = l.length - 1, o = u.length - 1; 1 <= a && 0 <= o && l[a] !== u[o];) o--;
					for (; 1 <= a && 0 <= o; a--, o--) if (l[a] !== u[o]) {
						if (a !== 1 || o !== 1) do
							if (a--, o--, 0 > o || l[a] !== u[o]) {
								var d = "\n" + l[a].replace(" at new ", " at ");
								return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && cp.set(e, d), d;
							}
						while (1 <= a && 0 <= o);
						break;
					}
				}
			} finally {
				sp = !1, q.H = r, ue(), Error.prepareStackTrace = n;
			}
			return l = (l = e ? e.displayName || e.name : "") ? fe(l) : "", typeof e == "function" && cp.set(e, l), l;
		}
		function me(e, t) {
			switch (e.tag) {
				case 26:
				case 27:
				case 5: return fe(e.type);
				case 16: return fe("Lazy");
				case 13: return e.child !== t && t !== null ? fe("Suspense Fallback") : fe("Suspense");
				case 19: return fe("SuspenseList");
				case 0:
				case 15: return pe(e.type, !1);
				case 11: return pe(e.type.render, !1);
				case 1: return pe(e.type, !0);
				case 31: return fe("Activity");
				default: return "";
			}
		}
		function he(e) {
			try {
				var t = "", n = null;
				do {
					t += me(e, n);
					var r = e._debugInfo;
					if (r) for (var i = r.length - 1; 0 <= i; i--) {
						var a = r[i];
						if (typeof a.name == "string") {
							var o = t;
							a: {
								var s = a.name, c = a.env, l = a.debugLocation;
								if (l != null) {
									var u = de(l), d = u.lastIndexOf("\n"), f = d === -1 ? u : u.slice(d + 1);
									if (f.indexOf(s) !== -1) {
										var p = "\n" + f;
										break a;
									}
								}
								p = fe(s + (c ? " [" + c + "]" : ""));
							}
							t = o + p;
						}
					}
					n = e, e = e.return;
				} while (e);
				return t;
			} catch (e) {
				return "\nError generating stack: " + e.message + "\n" + e.stack;
			}
		}
		function ge(e) {
			return (e = e ? e.displayName || e.name : "") ? fe(e) : "";
		}
		function _e() {
			if (lp === null) return null;
			var e = lp._debugOwner;
			return e == null ? null : E(e);
		}
		function ve() {
			if (lp === null) return "";
			var e = lp;
			try {
				var t = "";
				switch (e.tag === 6 && (e = e.return), e.tag) {
					case 26:
					case 27:
					case 5:
						t += fe(e.type);
						break;
					case 13:
						t += fe("Suspense");
						break;
					case 19:
						t += fe("SuspenseList");
						break;
					case 31:
						t += fe("Activity");
						break;
					case 30:
					case 0:
					case 15:
					case 1:
						e._debugOwner || t !== "" || (t += ge(e.type));
						break;
					case 11: e._debugOwner || t !== "" || (t += ge(e.type.render));
				}
				for (; e;) if (typeof e.tag == "number") {
					var n = e;
					e = n._debugOwner;
					var r = n._debugStack;
					if (e && r) {
						var i = de(r);
						i !== "" && (t += "\n" + i);
					}
				} else if (e.debugStack != null) {
					var a = e.debugStack;
					(e = e.owner) && a && (t += "\n" + de(a));
				} else break;
				var o = t;
			} catch (e) {
				o = "\nError generating stack: " + e.message + "\n" + e.stack;
			}
			return o;
		}
		function M(e, t, n, r, i, a, o) {
			var s = lp;
			ye(e);
			try {
				return e !== null && e._debugTask ? e._debugTask.run(t.bind(null, n, r, i, a, o)) : t(n, r, i, a, o);
			} finally {
				ye(s);
			}
			throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.");
		}
		function ye(e) {
			q.getCurrentStack = e === null ? null : ve, up = !1, lp = e;
		}
		function be(e) {
			return typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
		}
		function xe(e) {
			try {
				return Se(e), !1;
			} catch {
				return !0;
			}
		}
		function Se(e) {
			return "" + e;
		}
		function N(e, t) {
			if (xe(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, be(e)), Se(e);
		}
		function Ce(e, t) {
			if (xe(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, be(e)), Se(e);
		}
		function we(e) {
			if (xe(e)) return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", be(e)), Se(e);
		}
		function Te(e) {
			if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") return !1;
			var t = __REACT_DEVTOOLS_GLOBAL_HOOK__;
			if (t.isDisabled) return !0;
			if (!t.supportsFiber) return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"), !0;
			try {
				Tp = t.inject(e), Ep = t;
			} catch (e) {
				console.error("React instrumentation encountered an error: %o.", e);
			}
			return !!t.checkDCE;
		}
		function Ee(e) {
			if (typeof Cp == "function" && wp(e), Ep && typeof Ep.setStrictMode == "function") try {
				Ep.setStrictMode(Tp, e);
			} catch (e) {
				Dp || (Dp = !0, console.error("React instrumentation encountered an error: %o", e));
			}
		}
		function De(e) {
			return e >>>= 0, e === 0 ? 32 : 31 - (Ap(e) / jp | 0) | 0;
		}
		function Oe(e) {
			var t = e & 42;
			if (t !== 0) return t;
			switch (e & -e) {
				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: return e & 261888;
				case 262144:
				case 524288:
				case 1048576:
				case 2097152: return e & 3932160;
				case 4194304:
				case 8388608:
				case 16777216:
				case 33554432: return e & 62914560;
				case 67108864: return 67108864;
				case 134217728: return 134217728;
				case 268435456: return 268435456;
				case 536870912: return 536870912;
				case 1073741824: return 0;
				default: return console.error("Should have found matching lanes. This is a bug in React."), e;
			}
		}
		function ke(e, t, n) {
			var r = e.pendingLanes;
			if (r === 0) return 0;
			var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
			e = e.warmLanes;
			var s = r & 134217727;
			return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = Oe(n))) : i = Oe(o) : i = Oe(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = Oe(n))) : i = Oe(o)) : i = Oe(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
		}
		function Ae(e, t) {
			return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
		}
		function je(e, t) {
			switch (e) {
				case 1:
				case 2:
				case 4:
				case 8:
				case 64: return t + 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 t + 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 console.error("Should have found matching lanes. This is a bug in React."), -1;
			}
		}
		function Me() {
			var e = Pp;
			return Pp <<= 1, !(Pp & 62914560) && (Pp = 4194304), e;
		}
		function P(e) {
			for (var t = [], n = 0; 31 > n; n++) t.push(e);
			return t;
		}
		function Ne(e, t) {
			e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
		}
		function Pe(e, t, n, r, i, a) {
			var o = e.pendingLanes;
			e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;
			var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
			for (n = o & ~n; 0 < n;) {
				var u = 31 - kp(n), d = 1 << u;
				s[u] = 0, c[u] = -1;
				var f = l[u];
				if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
					var p = f[u];
					p !== null && (p.lane &= -536870913);
				}
				n &= ~d;
			}
			r !== 0 && Fe(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
		}
		function Fe(e, t, n) {
			e.pendingLanes |= t, e.suspendedLanes &= ~t;
			var r = 31 - kp(t);
			e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
		}
		function Ie(e, t) {
			var n = e.entangledLanes |= t;
			for (e = e.entanglements; n;) {
				var r = 31 - kp(n), i = 1 << r;
				i & t | e[r] & t && (e[r] |= t), n &= ~i;
			}
		}
		function Le(e, t) {
			var n = t & -t;
			return n = n & 42 ? 1 : Re(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
		}
		function Re(e) {
			switch (e) {
				case 2:
					e = 1;
					break;
				case 8:
					e = 4;
					break;
				case 32:
					e = 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:
					e = 128;
					break;
				case 268435456:
					e = 134217728;
					break;
				default: e = 0;
			}
			return e;
		}
		function ze(e, t, n) {
			if (Op) for (e = e.pendingUpdatersLaneMap; 0 < n;) {
				var r = 31 - kp(n), i = 1 << r;
				e[r].add(t), n &= ~i;
			}
		}
		function Be(e, t) {
			if (Op) for (var n = e.pendingUpdatersLaneMap, r = e.memoizedUpdaters; 0 < t;) {
				var i = 31 - kp(t);
				e = 1 << i, i = n[i], 0 < i.size && (i.forEach(function(e) {
					var t = e.alternate;
					t !== null && r.has(t) || r.add(e);
				}), i.clear()), t &= ~e;
			}
		}
		function Ve(e) {
			return e &= -e, Fp !== 0 && Fp < e ? Ip !== 0 && Ip < e ? e & 134217727 ? Lp : Rp : Ip : Fp;
		}
		function He() {
			var e = Hf.p;
			return e === 0 ? (e = window.event, e === void 0 ? Lp : af(e.type)) : e;
		}
		function Ue(e, t) {
			var n = Hf.p;
			try {
				return Hf.p = e, t();
			} finally {
				Hf.p = n;
			}
		}
		function We(e) {
			delete e[Bp], delete e[Vp], delete e[Up], delete e[Wp], delete e[Gp];
		}
		function Ge(e) {
			var t = e[Bp];
			if (t) return t;
			for (var n = e.parentNode; n;) {
				if (t = n[Hp] || n[Bp]) {
					if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = md(e); e !== null;) {
						if (n = e[Bp]) return n;
						e = md(e);
					}
					return t;
				}
				e = n, n = e.parentNode;
			}
			return null;
		}
		function Ke(e) {
			if (e = e[Bp] || e[Hp]) {
				var t = e.tag;
				if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
			}
			return null;
		}
		function qe(e) {
			var t = e.tag;
			if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
			throw Error("getNodeFromInstance: Invalid argument.");
		}
		function Je(e) {
			var t = e[Kp];
			return t ||= e[Kp] = {
				hoistableStyles: /* @__PURE__ */ new Map(),
				hoistableScripts: /* @__PURE__ */ new Map()
			}, t;
		}
		function Ye(e) {
			e[qp] = !0;
		}
		function Xe(e, t) {
			Ze(e, t), Ze(e + "Capture", t);
		}
		function Ze(e, t) {
			Yp[e] && console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", e), Yp[e] = t;
			var n = e.toLowerCase();
			for (Xp[n] = e, e === "onDoubleClick" && (Xp.ondblclick = e), e = 0; e < t.length; e++) Jp.add(t[e]);
		}
		function Qe(e, t) {
			Zp[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 $e(e) {
			return dp.call(em, e) ? !0 : dp.call($p, e) ? !1 : Qp.test(e) ? em[e] = !0 : ($p[e] = !0, console.error("Invalid attribute name: `%s`", e), !1);
		}
		function F(e, t, n) {
			if ($e(t)) {
				if (!e.hasAttribute(t)) {
					switch (typeof n) {
						case "symbol":
						case "object": return n;
						case "function": return n;
						case "boolean": if (!1 === n) return n;
					}
					return n === void 0 ? void 0 : null;
				}
				return e = e.getAttribute(t), e === "" && !0 === n ? !0 : (N(n, t), e === "" + n ? n : e);
			}
		}
		function et(e, t, n) {
			if ($e(t)) if (n === null) e.removeAttribute(t);
			else {
				switch (typeof n) {
					case "undefined":
					case "function":
					case "symbol":
						e.removeAttribute(t);
						return;
					case "boolean":
						var r = t.toLowerCase().slice(0, 5);
						if (r !== "data-" && r !== "aria-") {
							e.removeAttribute(t);
							return;
						}
				}
				N(n, t), e.setAttribute(t, "" + n);
			}
		}
		function tt(e, t, n) {
			if (n === null) e.removeAttribute(t);
			else {
				switch (typeof n) {
					case "undefined":
					case "function":
					case "symbol":
					case "boolean":
						e.removeAttribute(t);
						return;
				}
				N(n, t), e.setAttribute(t, "" + n);
			}
		}
		function nt(e, t, n, r) {
			if (r === null) e.removeAttribute(n);
			else {
				switch (typeof r) {
					case "undefined":
					case "function":
					case "symbol":
					case "boolean":
						e.removeAttribute(n);
						return;
				}
				N(r, n), e.setAttributeNS(t, n, "" + r);
			}
		}
		function rt(e) {
			switch (typeof e) {
				case "bigint":
				case "boolean":
				case "number":
				case "string":
				case "undefined": return e;
				case "object": return we(e), e;
				default: return "";
			}
		}
		function it(e) {
			var t = e.type;
			return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
		}
		function at(e, t, n) {
			var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
			if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {
				var i = r.get, a = r.set;
				return Object.defineProperty(e, t, {
					configurable: !0,
					get: function() {
						return i.call(this);
					},
					set: function(e) {
						we(e), n = "" + e, a.call(this, e);
					}
				}), Object.defineProperty(e, t, { enumerable: r.enumerable }), {
					getValue: function() {
						return n;
					},
					setValue: function(e) {
						we(e), n = "" + e;
					},
					stopTracking: function() {
						e._valueTracker = null, delete e[t];
					}
				};
			}
		}
		function ot(e) {
			if (!e._valueTracker) {
				var t = it(e) ? "checked" : "value";
				e._valueTracker = at(e, t, "" + e[t]);
			}
		}
		function st(e) {
			if (!e) return !1;
			var t = e._valueTracker;
			if (!t) return !0;
			var n = t.getValue(), r = "";
			return e && (r = it(e) ? e.checked ? "true" : "false" : e.value), e = r, e === n ? !1 : (t.setValue(e), !0);
		}
		function ct(e) {
			if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
			try {
				return e.activeElement || e.body;
			} catch {
				return e.body;
			}
		}
		function lt(e) {
			return e.replace(tm, function(e) {
				return "\\" + e.charCodeAt(0).toString(16) + " ";
			});
		}
		function ut(e, t) {
			t.checked === void 0 || t.defaultChecked === void 0 || rm || (console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", _e() || "A component", t.type), rm = !0), t.value === void 0 || t.defaultValue === void 0 || nm || (console.error("%s contains an input of type %s with both value and defaultValue props. Input 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 input element and remove one of these props. More info: https://react.dev/link/controlled-components", _e() || "A component", t.type), nm = !0);
		}
		function dt(e, t, n, r, i, a, o, s) {
			e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? (N(o, "type"), e.type = o) : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + rt(t)) : e.value !== "" + rt(t) && (e.value = "" + rt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : pt(e, o, rt(n)) : pt(e, o, rt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? (N(s, "name"), e.name = "" + rt(s)) : e.removeAttribute("name");
		}
		function ft(e, t, n, r, i, a, o, s) {
			if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (N(a, "type"), e.type = a), t != null || n != null) {
				if (!(a !== "submit" && a !== "reset" || t != null)) {
					ot(e);
					return;
				}
				n = n == null ? "" : "" + rt(n), t = t == null ? n : "" + rt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
			}
			r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (N(o, "name"), e.name = o), ot(e);
		}
		function pt(e, t, n) {
			t === "number" && ct(e.ownerDocument) === e || e.defaultValue === "" + n || (e.defaultValue = "" + n);
		}
		function mt(e, t) {
			t.value ?? (typeof t.children == "object" && t.children !== null ? xf.Children.forEach(t.children, function(e) {
				e == null || typeof e == "string" || typeof e == "number" || typeof e == "bigint" || am || (am = !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.dangerouslySetInnerHTML == null || om || (om = !0, console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))), t.selected == null || im || (console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."), im = !0);
		}
		function ht() {
			var e = _e();
			return e ? "\n\nCheck the render method of `" + e + "`." : "";
		}
		function gt(e, t, n, r) {
			if (e = e.options, t) {
				t = {};
				for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;
				for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);
			} else {
				for (n = "" + rt(n), t = null, i = 0; i < e.length; i++) {
					if (e[i].value === n) {
						e[i].selected = !0, r && (e[i].defaultSelected = !0);
						return;
					}
					t !== null || e[i].disabled || (t = e[i]);
				}
				t !== null && (t.selected = !0);
			}
		}
		function I(e, t) {
			for (e = 0; e < cm.length; e++) {
				var n = cm[e];
				if (t[n] != null) {
					var r = Vf(t[n]);
					t.multiple && !r ? console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", n, ht()) : !t.multiple && r && console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", n, ht());
				}
			}
			t.value === void 0 || t.defaultValue === void 0 || sm || (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"), sm = !0);
		}
		function _t(e, t) {
			t.value === void 0 || t.defaultValue === void 0 || lm || (console.error("%s contains a textarea with both value and defaultValue props. 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", _e() || "A component"), lm = !0), t.children != null && t.value == null && console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");
		}
		function vt(e, t, n) {
			if (t != null && (t = "" + rt(t), t !== e.value && (e.value = t), n == null)) {
				e.defaultValue !== t && (e.defaultValue = t);
				return;
			}
			e.defaultValue = n == null ? "" : "" + rt(n);
		}
		function yt(e, t, n, r) {
			if (t == null) {
				if (r != null) {
					if (n != null) throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");
					if (Vf(r)) {
						if (1 < r.length) throw Error("<textarea> can only have at most one child.");
						r = r[0];
					}
					n = r;
				}
				n ??= "", t = n;
			}
			n = rt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), ot(e);
		}
		function bt(e, t) {
			return e.serverProps === void 0 && e.serverTail.length === 0 && e.children.length === 1 && 3 < e.distanceFromLeaf && e.distanceFromLeaf > 15 - t ? bt(e.children[0], t) : e;
		}
		function L(e) {
			return "  " + "  ".repeat(e);
		}
		function xt(e) {
			return "+ " + "  ".repeat(e);
		}
		function St(e) {
			return "- " + "  ".repeat(e);
		}
		function R(e) {
			switch (e.tag) {
				case 26:
				case 27:
				case 5: return e.type;
				case 16: return "Lazy";
				case 31: return "Activity";
				case 13: return "Suspense";
				case 19: return "SuspenseList";
				case 0:
				case 15: return e = e.type, e.displayName || e.name || null;
				case 11: return e = e.type.render, e.displayName || e.name || null;
				case 1: return e = e.type, e.displayName || e.name || null;
				default: return null;
			}
		}
		function Ct(e, t) {
			return um.test(e) ? (e = JSON.stringify(e), e.length > t - 2 ? 8 > t ? "{\"...\"}" : "{" + e.slice(0, t - 7) + "...\"}" : "{" + e + "}") : e.length > t ? 5 > t ? "{\"...\"}" : e.slice(0, t - 3) + "..." : e;
		}
		function wt(e, t, n) {
			var r = 120 - 2 * n;
			if (t === null) return xt(n) + Ct(e, r) + "\n";
			if (typeof t == "string") {
				for (var i = 0; i < t.length && i < e.length && t.charCodeAt(i) === e.charCodeAt(i); i++);
				return i > r - 8 && 10 < i && (e = "..." + e.slice(i - 8), t = "..." + t.slice(i - 8)), xt(n) + Ct(e, r) + "\n" + St(n) + Ct(t, r) + "\n";
			}
			return L(n) + Ct(e, r) + "\n";
		}
		function Tt(e) {
			return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/, function(e, t) {
				return t;
			});
		}
		function Et(e, t) {
			switch (typeof e) {
				case "string": return e = JSON.stringify(e), e.length > t ? 5 > t ? "\"...\"" : e.slice(0, t - 4) + "...\"" : e;
				case "object":
					if (e === null) return "null";
					if (Vf(e)) return "[...]";
					if (e.$$typeof === Tf) return (t = T(e.type)) ? "<" + t + ">" : "<...>";
					var n = Tt(e);
					if (n === "Object") {
						for (var r in n = "", t -= 2, e) if (e.hasOwnProperty(r)) {
							var i = JSON.stringify(r);
							if (i !== "\"" + r + "\"" && (r = i), t -= r.length - 2, i = Et(e[r], 15 > t ? t : 15), t -= i.length, 0 > t) {
								n += n === "" ? "..." : ", ...";
								break;
							}
							n += (n === "" ? "" : ",") + r + ":" + i;
						}
						return "{" + n + "}";
					}
					return n;
				case "function": return (t = e.displayName || e.name) ? "function " + t : "function";
				default: return String(e);
			}
		}
		function Dt(e, t) {
			return typeof e != "string" || um.test(e) ? "{" + Et(e, t - 2) + "}" : e.length > t - 2 ? 5 > t ? "\"...\"" : "\"" + e.slice(0, t - 5) + "...\"" : "\"" + e + "\"";
		}
		function Ot(e, t, n) {
			var r = 120 - n.length - e.length, i = [], a;
			for (a in t) if (t.hasOwnProperty(a) && a !== "children") {
				var o = Dt(t[a], 120 - n.length - a.length - 1);
				r -= a.length + o.length + 2, i.push(a + "=" + o);
			}
			return i.length === 0 ? n + "<" + e + ">\n" : 0 < r ? n + "<" + e + " " + i.join(" ") + ">\n" : n + "<" + e + "\n" + n + "  " + i.join("\n" + n + "  ") + "\n" + n + ">\n";
		}
		function kt(e, t, n) {
			var r = "", i = Cf({}, t), a;
			for (a in e) if (e.hasOwnProperty(a)) {
				delete i[a];
				var o = 120 - 2 * n - a.length - 2, s = Et(e[a], o);
				t.hasOwnProperty(a) ? (o = Et(t[a], o), r += xt(n) + a + ": " + s + "\n", r += St(n) + a + ": " + o + "\n") : r += xt(n) + a + ": " + s + "\n";
			}
			for (var c in i) i.hasOwnProperty(c) && (e = Et(i[c], 120 - 2 * n - c.length - 2), r += St(n) + c + ": " + e + "\n");
			return r;
		}
		function At(e, t, n, r) {
			var i = "", a = /* @__PURE__ */ new Map();
			for (l in n) n.hasOwnProperty(l) && a.set(l.toLowerCase(), l);
			if (a.size === 1 && a.has("children")) i += Ot(e, t, L(r));
			else {
				for (var o in t) if (t.hasOwnProperty(o) && o !== "children") {
					var s = 120 - 2 * (r + 1) - o.length - 1, c = a.get(o.toLowerCase());
					if (c !== void 0) {
						a.delete(o.toLowerCase());
						var l = t[o];
						c = n[c];
						var u = Dt(l, s);
						s = Dt(c, s), typeof l == "object" && l && typeof c == "object" && c && Tt(l) === "Object" && Tt(c) === "Object" && (2 < Object.keys(l).length || 2 < Object.keys(c).length || -1 < u.indexOf("...") || -1 < s.indexOf("...")) ? i += L(r + 1) + o + "={{\n" + kt(l, c, r + 2) + L(r + 1) + "}}\n" : (i += xt(r + 1) + o + "=" + u + "\n", i += St(r + 1) + o + "=" + s + "\n");
					} else i += L(r + 1) + o + "=" + Dt(t[o], s) + "\n";
				}
				a.forEach(function(e) {
					if (e !== "children") {
						var t = 120 - 2 * (r + 1) - e.length - 1;
						i += St(r + 1) + e + "=" + Dt(n[e], t) + "\n";
					}
				}), i = i === "" ? L(r) + "<" + e + ">\n" : L(r) + "<" + e + "\n" + i + L(r) + ">\n";
			}
			return e = n.children, t = t.children, typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? (a = "", (typeof t == "string" || typeof t == "number" || typeof t == "bigint") && (a = "" + t), i += wt(a, "" + e, r + 1)) : (typeof t == "string" || typeof t == "number" || typeof t == "bigint") && (i = e == null ? i + wt("" + t, null, r + 1) : i + wt("" + t, void 0, r + 1)), i;
		}
		function jt(e, t) {
			var n = R(e);
			if (n === null) {
				for (n = "", e = e.child; e;) n += jt(e, t), e = e.sibling;
				return n;
			}
			return L(t) + "<" + n + ">\n";
		}
		function z(e, t) {
			var n = bt(e, t);
			if (n !== e && (e.children.length !== 1 || e.children[0] !== n)) return L(t) + "...\n" + z(n, t + 1);
			n = "";
			var r = e.fiber._debugInfo;
			if (r) for (var i = 0; i < r.length; i++) {
				var a = r[i].name;
				typeof a == "string" && (n += L(t) + "<" + a + ">\n", t++);
			}
			if (r = "", i = e.fiber.pendingProps, e.fiber.tag === 6) r = wt(i, e.serverProps, t), t++;
			else if (a = R(e.fiber), a !== null) if (e.serverProps === void 0) {
				r = t;
				var o = 120 - 2 * r - a.length - 2, s = "";
				for (l in i) if (i.hasOwnProperty(l) && l !== "children") {
					var c = Dt(i[l], 15);
					if (o -= l.length + c.length + 2, 0 > o) {
						s += " ...";
						break;
					}
					s += " " + l + "=" + c;
				}
				r = L(r) + "<" + a + s + ">\n", t++;
			} else e.serverProps === null ? (r = Ot(a, i, xt(t)), t++) : typeof e.serverProps == "string" ? console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React.") : (r = At(a, i, e.serverProps, t), t++);
			var l = "";
			for (i = e.fiber.child, a = 0; i && a < e.children.length;) o = e.children[a], o.fiber === i ? (l += z(o, t), a++) : l += jt(i, t), i = i.sibling;
			for (i && 0 < e.children.length && (l += L(t) + "...\n"), i = e.serverTail, e.serverProps === null && t--, e = 0; e < i.length; e++) a = i[e], l = typeof a == "string" ? l + (St(t) + Ct(a, 120 - 2 * t) + "\n") : l + Ot(a.type, a.props, St(t));
			return n + r + l;
		}
		function Mt(e) {
			try {
				return "\n\n" + z(e, 0);
			} catch {
				return "";
			}
		}
		function Nt(e, t, n) {
			for (var r = t, i = null, a = 0; r;) r === e && (a = 0), i = {
				fiber: r,
				children: i === null ? [] : [i],
				serverProps: r === t ? n : r === e ? null : void 0,
				serverTail: [],
				distanceFromLeaf: a
			}, a++, r = r.return;
			return i === null ? "" : Mt(i).replaceAll(/^[+-]/gm, ">");
		}
		function Pt(e, t) {
			var n = Cf({}, e || hm), r = { tag: t };
			return fm.indexOf(t) !== -1 && (n.aTagInScope = null, n.buttonTagInScope = null, n.nobrTagInScope = null), pm.indexOf(t) !== -1 && (n.pTagInButtonScope = null), dm.indexOf(t) !== -1 && t !== "address" && t !== "div" && t !== "p" && (n.listItemTagAutoclosing = null, n.dlItemTagAutoclosing = null), n.current = r, t === "form" && (n.formTag = r), t === "a" && (n.aTagInScope = r), t === "button" && (n.buttonTagInScope = r), t === "nobr" && (n.nobrTagInScope = r), t === "p" && (n.pTagInButtonScope = r), t === "li" && (n.listItemTagAutoclosing = r), (t === "dd" || t === "dt") && (n.dlItemTagAutoclosing = r), t === "#document" || t === "html" ? n.containerTagInScope = null : n.containerTagInScope ||= r, e !== null || t !== "#document" && t !== "html" && t !== "body" ? !0 === n.implicitRootScope && (n.implicitRootScope = !1) : n.implicitRootScope = !0, n;
		}
		function Ft(e, t, n) {
			switch (t) {
				case "select": return e === "hr" || e === "option" || e === "optgroup" || e === "script" || e === "template" || e === "#text";
				case "optgroup": return e === "option" || e === "#text";
				case "option": return e === "#text";
				case "tr": return e === "th" || e === "td" || e === "style" || e === "script" || e === "template";
				case "tbody":
				case "thead":
				case "tfoot": return e === "tr" || e === "style" || e === "script" || e === "template";
				case "colgroup": return e === "col" || e === "template";
				case "table": return e === "caption" || e === "colgroup" || e === "tbody" || e === "tfoot" || e === "thead" || e === "style" || e === "script" || e === "template";
				case "head": return e === "base" || e === "basefont" || e === "bgsound" || e === "link" || e === "meta" || e === "title" || e === "noscript" || e === "noframes" || e === "style" || e === "script" || e === "template";
				case "html":
					if (n) break;
					return e === "head" || e === "body" || e === "frameset";
				case "frameset": return e === "frame";
				case "#document": if (!n) return e === "html";
			}
			switch (e) {
				case "h1":
				case "h2":
				case "h3":
				case "h4":
				case "h5":
				case "h6": return t !== "h1" && t !== "h2" && t !== "h3" && t !== "h4" && t !== "h5" && t !== "h6";
				case "rp":
				case "rt": return mm.indexOf(t) === -1;
				case "caption":
				case "col":
				case "colgroup":
				case "frameset":
				case "frame":
				case "tbody":
				case "td":
				case "tfoot":
				case "th":
				case "thead":
				case "tr": return t == null;
				case "head": return n || t === null;
				case "html": return n && t === "#document" || t === null;
				case "body": return n && (t === "#document" || t === "html") || t === null;
			}
			return !0;
		}
		function It(e, t) {
			switch (e) {
				case "address":
				case "article":
				case "aside":
				case "blockquote":
				case "center":
				case "details":
				case "dialog":
				case "dir":
				case "div":
				case "dl":
				case "fieldset":
				case "figcaption":
				case "figure":
				case "footer":
				case "header":
				case "hgroup":
				case "main":
				case "menu":
				case "nav":
				case "ol":
				case "p":
				case "section":
				case "summary":
				case "ul":
				case "pre":
				case "listing":
				case "table":
				case "hr":
				case "xmp":
				case "h1":
				case "h2":
				case "h3":
				case "h4":
				case "h5":
				case "h6": return t.pTagInButtonScope;
				case "form": return t.formTag || t.pTagInButtonScope;
				case "li": return t.listItemTagAutoclosing;
				case "dd":
				case "dt": return t.dlItemTagAutoclosing;
				case "button": return t.buttonTagInScope;
				case "a": return t.aTagInScope;
				case "nobr": return t.nobrTagInScope;
			}
			return null;
		}
		function Lt(e, t) {
			for (; e;) {
				switch (e.tag) {
					case 5:
					case 26:
					case 27: if (e.type === t) return e;
				}
				e = e.return;
			}
			return null;
		}
		function Rt(e, t) {
			t ||= hm;
			var n = t.current;
			if (t = (n = Ft(e, n && n.tag, t.implicitRootScope) ? null : n) ? null : It(e, t), t = n || t, !t) return !0;
			var r = t.tag;
			if (t = String(!!n) + "|" + e + "|" + r, gm[t]) return !1;
			gm[t] = !0;
			var i = (t = lp) ? Lt(t.return, r) : null, a = t !== null && i !== null ? Nt(i, t, null) : "", o = "<" + e + ">";
			return n ? (n = "", r === "table" && e === "tr" && (n += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), console.error("In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s", o, r, n, a)) : console.error("In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s", o, r, a), t && (e = t.return, i === null || e === null || i === e && e._debugOwner === t._debugOwner || M(i, function() {
				console.error("<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.", r, o);
			})), !1;
		}
		function zt(e, t, n) {
			if (n || Ft("#text", t, !1)) return !0;
			if (n = "#text|" + t, gm[n]) return !1;
			gm[n] = !0;
			var r = (n = lp) ? Lt(n, t) : null;
			return n = n !== null && r !== null ? Nt(r, n, n.tag === 6 ? null : { children: null }) : "", /\S/.test(e) ? console.error("In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s", t, n) : console.error("In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s", t, n), !1;
		}
		function Bt(e, t) {
			if (t) {
				var n = e.firstChild;
				if (n && n === e.lastChild && n.nodeType === 3) {
					n.nodeValue = t;
					return;
				}
			}
			e.textContent = t;
		}
		function Vt(e) {
			return e.replace(xm, function(e, t) {
				return t.toUpperCase();
			});
		}
		function Ht(e, t, n) {
			var r = t.indexOf("--") === 0;
			r || (-1 < t.indexOf("-") ? Cm.hasOwnProperty(t) && Cm[t] || (Cm[t] = !0, console.error("Unsupported style property %s. Did you mean %s?", t, Vt(t.replace(J, "ms-")))) : bm.test(t) ? Cm.hasOwnProperty(t) && Cm[t] || (Cm[t] = !0, console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?", t, t.charAt(0).toUpperCase() + t.slice(1))) : !Sm.test(n) || wm.hasOwnProperty(n) && wm[n] || (wm[n] = !0, console.error("Style property values shouldn't contain a semicolon. Try \"%s: %s\" instead.", t, n.replace(Sm, ""))), typeof n == "number" && (isNaN(n) ? Tm || (Tm = !0, console.error("`NaN` is an invalid value for the `%s` css style property.", t)) : isFinite(n) || Em || (Em = !0, console.error("`Infinity` is an invalid value for the `%s` css style property.", t)))), n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || Y.has(t) ? t === "float" ? e.cssFloat = n : (Ce(n, t), e[t] = ("" + n).trim()) : e[t] = n + "px";
		}
		function Ut(e, t, n) {
			if (t != null && 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.");
			if (t && Object.freeze(t), e = e.style, n != null) {
				if (t) {
					var r = {};
					if (n) {
						for (var i in n) if (n.hasOwnProperty(i) && !t.hasOwnProperty(i)) for (var a = _m[i] || [i], o = 0; o < a.length; o++) r[a[o]] = i;
					}
					for (var s in t) if (t.hasOwnProperty(s) && (!n || n[s] !== t[s])) for (i = _m[s] || [s], a = 0; a < i.length; a++) r[i[a]] = s;
					for (var c in s = {}, t) for (i = _m[c] || [c], a = 0; a < i.length; a++) s[i[a]] = c;
					for (var l in c = {}, r) if (i = r[l], (a = s[l]) && i !== a && (o = i + "," + a, !c[o])) {
						c[o] = !0, o = console;
						var u = t[i];
						o.error.call(o, "%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.", u == null || typeof u == "boolean" || u === "" ? "Removing" : "Updating", i, a);
					}
				}
				for (var d in n) !n.hasOwnProperty(d) || t != null && t.hasOwnProperty(d) || (d.indexOf("--") === 0 ? e.setProperty(d, "") : d === "float" ? e.cssFloat = "" : e[d] = "");
				for (var f in t) l = t[f], t.hasOwnProperty(f) && n[f] !== l && Ht(e, f, l);
			} else for (r in t) t.hasOwnProperty(r) && Ht(e, r, t[r]);
		}
		function Wt(e) {
			if (e.indexOf("-") === -1) return !1;
			switch (e) {
				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": return !1;
				default: return !0;
			}
		}
		function Gt(e) {
			return X.get(e) || e;
		}
		function Kt(e, t) {
			if (dp.call(jm, t) && jm[t]) return !0;
			if (Nm.test(t)) {
				if (e = "aria-" + t.slice(4).toLowerCase(), e = Am.hasOwnProperty(e) ? e : null, e == null) return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", t), jm[t] = !0;
				if (t !== e) return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?", t, e), jm[t] = !0;
			}
			if (Mm.test(t)) {
				if (e = t.toLowerCase(), e = Am.hasOwnProperty(e) ? e : null, e == null) return jm[t] = !0, !1;
				t !== e && (console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?", t, e), jm[t] = !0);
			}
			return !0;
		}
		function qt(e, t) {
			var n = [], r;
			for (r in t) Kt(e, r) || n.push(r);
			t = n.map(function(e) {
				return "`" + e + "`";
			}).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 Jt(e, t, n, r) {
			if (dp.call(Fm, t) && Fm[t]) return !0;
			var i = t.toLowerCase();
			if (i === "onfocusin" || i === "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."), Fm[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(i) ? e[i] : null, r != null) return console.error("Invalid event handler property `%s`. Did you mean `%s`?", t, r), Fm[t] = !0;
				if (Im.test(t)) return console.error("Unknown event handler property `%s`. It will be ignored.", t), Fm[t] = !0;
			} else if (Im.test(t)) return Lm.test(t) && console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", t), Fm[t] = !0;
			if (Rm.test(t) || zm.test(t)) return !0;
			if (i === "innerhtml") return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."), Fm[t] = !0;
			if (i === "aria") return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."), Fm[t] = !0;
			if (i === "is" && n != null && 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), Fm[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), Fm[t] = !0;
			if (km.hasOwnProperty(i)) {
				if (i = km[i], i !== t) return console.error("Invalid DOM property `%s`. Did you mean `%s`?", t, i), Fm[t] = !0;
			} else if (t !== i) 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, i), Fm[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 i = t.toLowerCase().slice(0, 5), i === "data-" || i === "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), Fm[t] = !0);
				}
				case "function":
				case "symbol": return Fm[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), Fm[t] = !0;
				}
			}
			return !0;
		}
		function Yt(e, t, n) {
			var r = [], i;
			for (i in t) Jt(e, i, t[i], n) || r.push(i);
			t = r.map(function(e) {
				return "`" + e + "`";
			}).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 Xt(e) {
			return Bm.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
		}
		function Zt() {}
		function Qt(e) {
			return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
		}
		function $t(e) {
			var t = Ke(e);
			if (t && (e = t.stateNode)) {
				var n = e[Vp] || null;
				a: switch (e = t.stateNode, t.type) {
					case "input":
						if (dt(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
							for (n = e; n.parentNode;) n = n.parentNode;
							for (N(t, "name"), n = n.querySelectorAll("input[name=\"" + lt("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
								var r = n[t];
								if (r !== e && r.form === e.form) {
									var i = r[Vp] || null;
									if (!i) throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");
									dt(r, i.value, i.defaultValue, i.defaultValue, i.checked, i.defaultChecked, i.type, i.name);
								}
							}
							for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && st(r);
						}
						break a;
					case "textarea":
						vt(e, n.value, n.defaultValue);
						break a;
					case "select": t = n.value, t != null && gt(e, !!n.multiple, t, !1);
				}
			}
		}
		function en(e, t, n) {
			if (Wm) return e(t, n);
			Wm = !0;
			try {
				return e(t);
			} finally {
				if (Wm = !1, (Hm !== null || Um !== null) && (Zc(), Hm && (t = Hm, e = Um, Um = Hm = null, $t(t), e))) for (t = 0; t < e.length; t++) $t(e[t]);
			}
		}
		function tn(e, t) {
			var n = e.stateNode;
			if (n === null) return null;
			var r = n[Vp] || null;
			if (r === null) return null;
			n = r[t];
			a: switch (t) {
				case "onClick":
				case "onClickCapture":
				case "onDoubleClick":
				case "onDoubleClickCapture":
				case "onMouseDown":
				case "onMouseDownCapture":
				case "onMouseMove":
				case "onMouseMoveCapture":
				case "onMouseUp":
				case "onMouseUpCapture":
				case "onMouseEnter":
					(r = !r.disabled) || (e = e.type, r = !(e === "button" || e === "input" || e === "select" || e === "textarea")), e = !r;
					break a;
				default: e = !1;
			}
			if (e) return null;
			if (n && typeof n != "function") throw Error("Expected `" + t + "` listener to be a function, instead got a value of `" + typeof n + "` type.");
			return n;
		}
		function nn() {
			if (Xm) return Xm;
			var e, t = Ym, n = t.length, r, i = "value" in Jm ? Jm.value : Jm.textContent, a = i.length;
			for (e = 0; e < n && t[e] === i[e]; e++);
			var o = n - e;
			for (r = 1; r <= o && t[n - r] === i[a - r]; r++);
			return Xm = i.slice(e, 1 < r ? 1 - r : void 0);
		}
		function B(e) {
			var t = e.keyCode;
			return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;
		}
		function rn() {
			return !0;
		}
		function an() {
			return !1;
		}
		function on(e) {
			function t(t, n, r, i, a) {
				for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);
				return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? rn : an, this.isPropagationStopped = an, this;
			}
			return Cf(t.prototype, {
				preventDefault: function() {
					this.defaultPrevented = !0;
					var e = this.nativeEvent;
					e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = rn);
				},
				stopPropagation: function() {
					var e = this.nativeEvent;
					e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = rn);
				},
				persist: function() {},
				isPersistent: rn
			}), t;
		}
		function sn(e) {
			var t = this.nativeEvent;
			return t.getModifierState ? t.getModifierState(e) : (e = mh[e]) ? !!t[e] : !1;
		}
		function cn() {
			return sn;
		}
		function ln(e, t) {
			switch (e) {
				case "keyup": return xh.indexOf(t.keyCode) !== -1;
				case "keydown": return t.keyCode !== Sh;
				case "keypress":
				case "mousedown":
				case "focusout": return !0;
				default: return !1;
			}
		}
		function un(e) {
			return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
		}
		function dn(e, t) {
			switch (e) {
				case "compositionend": return un(t);
				case "keypress": return t.which === Eh ? (Oh = !0, Dh) : null;
				case "textInput": return e = t.data, e === Dh && Oh ? null : e;
				default: return null;
			}
		}
		function fn(e, t) {
			if (kh) return e === "compositionend" || !Ch && ln(e, t) ? (e = nn(), Xm = Ym = Jm = null, kh = !1, e) : null;
			switch (e) {
				case "paste": return null;
				case "keypress":
					if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {
						if (t.char && 1 < t.char.length) return t.char;
						if (t.which) return String.fromCharCode(t.which);
					}
					return null;
				case "compositionend": return Th && t.locale !== "ko" ? null : t.data;
				default: return null;
			}
		}
		function pn(e) {
			var t = e && e.nodeName && e.nodeName.toLowerCase();
			return t === "input" ? !!Ah[e.type] : t === "textarea";
		}
		function mn(e) {
			if (!Gm) return !1;
			e = "on" + e;
			var t = e in document;
			return t ||= (t = document.createElement("div"), t.setAttribute(e, "return;"), typeof t[e] == "function"), t;
		}
		function hn(e, t, n, r) {
			Hm ? Um ? Um.push(r) : Um = [r] : Hm = r, t = ou(t, "onChange"), 0 < t.length && (n = new Qm("onChange", "change", null, n, r), e.push({
				event: n,
				listeners: t
			}));
		}
		function gn(e) {
			$l(e, 0);
		}
		function _n(e) {
			if (st(qe(e))) return e;
		}
		function vn(e, t) {
			if (e === "change") return t;
		}
		function yn() {
			jh && (jh.detachEvent("onpropertychange", bn), Mh = jh = null);
		}
		function bn(e) {
			if (e.propertyName === "value" && _n(Mh)) {
				var t = [];
				hn(t, Mh, e, Qt(e)), en(gn, t);
			}
		}
		function xn(e, t, n) {
			e === "focusin" ? (yn(), jh = t, Mh = n, jh.attachEvent("onpropertychange", bn)) : e === "focusout" && yn();
		}
		function Sn(e) {
			if (e === "selectionchange" || e === "keyup" || e === "keydown") return _n(Mh);
		}
		function Cn(e, t) {
			if (e === "click") return _n(t);
		}
		function wn(e, t) {
			if (e === "input" || e === "change") return _n(t);
		}
		function Tn(e, t) {
			return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
		}
		function En(e, t) {
			if (Ph(e, t)) return !0;
			if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
			var n = Object.keys(e), r = Object.keys(t);
			if (n.length !== r.length) return !1;
			for (r = 0; r < n.length; r++) {
				var i = n[r];
				if (!dp.call(t, i) || !Ph(e[i], t[i])) return !1;
			}
			return !0;
		}
		function Dn(e) {
			for (; e && e.firstChild;) e = e.firstChild;
			return e;
		}
		function On(e, t) {
			var n = Dn(e);
			e = 0;
			for (var r; n;) {
				if (n.nodeType === 3) {
					if (r = e + n.textContent.length, e <= t && r >= t) return {
						node: n,
						offset: t - e
					};
					e = r;
				}
				a: {
					for (; n;) {
						if (n.nextSibling) {
							n = n.nextSibling;
							break a;
						}
						n = n.parentNode;
					}
					n = void 0;
				}
				n = Dn(n);
			}
		}
		function kn(e, t) {
			return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? kn(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
		}
		function An(e) {
			e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
			for (var t = ct(e.document); t instanceof e.HTMLIFrameElement;) {
				try {
					var n = typeof t.contentWindow.location.href == "string";
				} catch {
					n = !1;
				}
				if (n) e = t.contentWindow;
				else break;
				t = ct(e.document);
			}
			return t;
		}
		function jn(e) {
			var t = e && e.nodeName && e.nodeName.toLowerCase();
			return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
		}
		function Mn(e, t, n) {
			var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
			zh || Ih == null || Ih !== ct(r) || (r = Ih, "selectionStart" in r && jn(r) ? r = {
				start: r.selectionStart,
				end: r.selectionEnd
			} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
				anchorNode: r.anchorNode,
				anchorOffset: r.anchorOffset,
				focusNode: r.focusNode,
				focusOffset: r.focusOffset
			}), Rh && En(Rh, r) || (Rh = r, r = ou(Lh, "onSelect"), 0 < r.length && (t = new Qm("onSelect", "select", null, t, n), e.push({
				event: t,
				listeners: r
			}), t.target = Ih)));
		}
		function Nn(e, t) {
			var n = {};
			return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
		}
		function Pn(e) {
			if (Vh[e]) return Vh[e];
			if (!Bh[e]) return e;
			var t = Bh[e], n;
			for (n in t) if (t.hasOwnProperty(n) && n in Hh) return Vh[e] = t[n];
			return e;
		}
		function Fn(e, t) {
			Xh.set(e, t), Xe(t, [e]);
		}
		function In(e) {
			for (var t = ig, n = 0; n < e.length; n++) {
				var r = e[n];
				if (typeof r == "object" && r) if (Vf(r) && r.length === 2 && typeof r[0] == "string") {
					if (t !== ig && t !== sg) return ag;
					t = sg;
				} else return ag;
				else {
					if (typeof r == "function" || typeof r == "string" && 50 < r.length || t !== ig && t !== og) return ag;
					t = og;
				}
			}
			return t;
		}
		function Ln(e, t, n, r) {
			for (var i in e) dp.call(e, i) && i[0] !== "_" && Rn(i, e[i], t, n, r);
		}
		function Rn(e, t, n, r, i) {
			switch (typeof t) {
				case "object": if (t === null) {
					t = "null";
					break;
				} else {
					if (t.$$typeof === Tf) {
						var a = T(t.type) || "…", o = t.key;
						t = t.props;
						var s = Object.keys(t), c = s.length;
						if (o == null && c === 0) {
							t = "<" + a + " />";
							break;
						}
						if (3 > r || c === 1 && s[0] === "children" && o == null) {
							t = "<" + a + " … />";
							break;
						}
						for (var l in n.push([i + "\xA0\xA0".repeat(r) + e, "<" + a]), o !== null && Rn("key", o, n, r + 1, i), e = !1, t) l === "children" ? t.children != null && (!Vf(t.children) || 0 < t.children.length) && (e = !0) : dp.call(t, l) && l[0] !== "_" && Rn(l, t[l], n, r + 1, i);
						n.push(["", e ? ">…</" + a + ">" : "/>"]);
						return;
					}
					if (a = Object.prototype.toString.call(t), a = a.slice(8, a.length - 1), a === "Array") {
						if (l = In(t), l === og || l === ig) {
							t = JSON.stringify(t);
							break;
						} else if (l === sg) {
							for (n.push([i + "\xA0\xA0".repeat(r) + e, ""]), e = 0; e < t.length; e++) a = t[e], Rn(a[0], a[1], n, r + 1, i);
							return;
						}
					}
					if (a === "Promise") {
						if (t.status === "fulfilled") {
							if (a = n.length, Rn(e, t.value, n, r, i), n.length > a) {
								n = n[a], n[1] = "Promise<" + (n[1] || "Object") + ">";
								return;
							}
						} else if (t.status === "rejected" && (a = n.length, Rn(e, t.reason, n, r, i), n.length > a)) {
							n = n[a], n[1] = "Rejected Promise<" + n[1] + ">";
							return;
						}
						n.push(["\xA0\xA0".repeat(r) + e, "Promise"]);
						return;
					}
					a === "Object" && (l = Object.getPrototypeOf(t)) && typeof l.constructor == "function" && (a = l.constructor.name), n.push([i + "\xA0\xA0".repeat(r) + e, a === "Object" ? 3 > r ? "" : "…" : a]), 3 > r && Ln(t, n, r + 1, i);
					return;
				}
				case "function":
					t = t.name === "" ? "() => {}" : t.name + "() {}";
					break;
				case "string":
					t = t === rg ? "…" : JSON.stringify(t);
					break;
				case "undefined":
					t = "undefined";
					break;
				case "boolean":
					t = t ? "true" : "false";
					break;
				default: t = String(t);
			}
			n.push([i + "\xA0\xA0".repeat(r) + e, t]);
		}
		function zn(e, t, n, r) {
			var i = !0;
			for (o in e) o in t || (n.push([cg + "\xA0\xA0".repeat(r) + o, "…"]), i = !1);
			for (var a in t) if (a in e) {
				var o = e[a], s = t[a];
				if (o !== s) {
					if (r === 0 && a === "children") i = "\xA0\xA0".repeat(r) + a, n.push([cg + i, "…"], [lg + i, "…"]);
					else {
						if (!(3 <= r)) {
							if (typeof o == "object" && typeof s == "object" && o !== null && s !== null && o.$$typeof === s.$$typeof) if (s.$$typeof === Tf) {
								if (o.type === s.type && o.key === s.key) {
									o = T(s.type) || "…", i = "\xA0\xA0".repeat(r) + a, o = "<" + o + " … />", n.push([cg + i, o], [lg + i, o]), i = !1;
									continue;
								}
							} else {
								var c = Object.prototype.toString.call(o), l = Object.prototype.toString.call(s);
								if (c === l && (l === "[object Object]" || l === "[object Array]")) {
									c = [ug + "\xA0\xA0".repeat(r) + a, l === "[object Array]" ? "Array" : ""], n.push(c), l = n.length, zn(o, s, n, r + 1) ? l === n.length && (c[1] = "Referentially unequal but deeply equal objects. Consider memoization.") : i = !1;
									continue;
								}
							}
							else if (typeof o == "function" && typeof s == "function" && o.name === s.name && o.length === s.length && (c = Function.prototype.toString.call(o), l = Function.prototype.toString.call(s), c === l)) {
								o = s.name === "" ? "() => {}" : s.name + "() {}", n.push([ug + "\xA0\xA0".repeat(r) + a, o + " Referentially unequal function closure. Consider memoization."]);
								continue;
							}
						}
						Rn(a, o, n, r, cg), Rn(a, s, n, r, lg);
					}
					i = !1;
				}
			} else n.push([lg + "\xA0\xA0".repeat(r) + a, "…"]), i = !1;
			return i;
		}
		function Bn(e) {
			mg = e & 63 ? "Blocking" : e & 64 ? "Gesture" : e & 4194176 ? "Transition" : e & 62914560 ? "Suspense" : e & 2080374784 ? "Idle" : "Other";
		}
		function Vn(e, t, n, r) {
			dg && (_g.start = t, _g.end = n, gg.color = "warning", gg.tooltipText = r, gg.properties = null, (e = e._debugTask) ? e.run(performance.measure.bind(performance, r, _g)) : performance.measure(r, _g));
		}
		function Hn(e, t, n) {
			Vn(e, t, n, "Reconnect");
		}
		function Un(e, t, n, r, i) {
			var a = D(e);
			if (a !== null && dg) {
				var o = e.alternate, s = e.actualDuration;
				if (o === null || o.child !== e.child) for (var c = e.child; c !== null; c = c.sibling) s -= c.actualDuration;
				r = .5 > s ? r ? "tertiary-light" : "primary-light" : 10 > s ? r ? "tertiary" : "primary" : 100 > s ? r ? "tertiary-dark" : "primary-dark" : "error";
				var l = e.memoizedProps;
				s = e._debugTask, l !== null && o !== null && o.memoizedProps !== l ? (c = [vg], l = zn(o.memoizedProps, l, c, 0), 1 < c.length && (l && !hg && (o.lanes & i) === 0 && 100 < e.actualDuration ? (hg = !0, c[0] = bg, gg.color = "warning", gg.tooltipText = yg) : (gg.color = r, gg.tooltipText = a), gg.properties = c, _g.start = t, _g.end = n, s == null ? performance.measure("​" + a, _g) : s.run(performance.measure.bind(performance, "​" + a, _g)))) : s == null ? console.timeStamp(a, t, n, fg, void 0, r) : s.run(console.timeStamp.bind(console, a, t, n, fg, void 0, r));
			}
		}
		function Wn(e, t, n, r) {
			if (dg) {
				var i = D(e);
				if (i !== null) {
					for (var a = null, o = [], s = 0; s < r.length; s++) {
						var c = r[s];
						a == null && c.source !== null && (a = c.source._debugTask), c = c.value, o.push(["Error", typeof c == "object" && c && typeof c.message == "string" ? String(c.message) : String(c)]);
					}
					e.key !== null && Rn("key", e.key, o, 0, ""), e.memoizedProps !== null && Ln(e.memoizedProps, o, 0, ""), a ??= e._debugTask, e = {
						start: t,
						end: n,
						detail: { devtools: {
							color: "error",
							track: fg,
							tooltipText: e.tag === 13 ? "Hydration failed" : "Error boundary caught an error",
							properties: o
						} }
					}, a ? a.run(performance.measure.bind(performance, "​" + i, e)) : performance.measure("​" + i, e);
				}
			}
		}
		function Gn(e, t, n, r, i) {
			if (i !== null) {
				if (dg) {
					var a = D(e);
					if (a !== null) {
						r = [];
						for (var o = 0; o < i.length; o++) {
							var s = i[o].value;
							r.push(["Error", typeof s == "object" && s && typeof s.message == "string" ? String(s.message) : String(s)]);
						}
						e.key !== null && Rn("key", e.key, r, 0, ""), e.memoizedProps !== null && Ln(e.memoizedProps, r, 0, ""), t = {
							start: t,
							end: n,
							detail: { devtools: {
								color: "error",
								track: fg,
								tooltipText: "A lifecycle or effect errored",
								properties: r
							} }
						}, (e = e._debugTask) ? e.run(performance.measure.bind(performance, "​" + a, t)) : performance.measure("​" + a, t);
					}
				}
			} else a = D(e), a !== null && dg && (i = 1 > r ? "secondary-light" : 100 > r ? "secondary" : 500 > r ? "secondary-dark" : "error", (e = e._debugTask) ? e.run(console.timeStamp.bind(console, a, t, n, fg, void 0, i)) : console.timeStamp(a, t, n, fg, void 0, i));
		}
		function Kn(e, t, n, r) {
			if (dg && !(t <= e)) {
				var i = (n & 738197653) === n ? "tertiary-dark" : "primary-dark";
				n = (n & 536870912) === n ? "Prepared" : (n & 201326741) === n ? "Hydrated" : "Render", r ? r.run(console.timeStamp.bind(console, n, e, t, mg, pg, i)) : console.timeStamp(n, e, t, mg, pg, i);
			}
		}
		function qn(e, t, n, r) {
			!dg || t <= e || (n = (n & 738197653) === n ? "tertiary-dark" : "primary-dark", r ? r.run(console.timeStamp.bind(console, "Prewarm", e, t, mg, pg, n)) : console.timeStamp("Prewarm", e, t, mg, pg, n));
		}
		function Jn(e, t, n, r) {
			!dg || t <= e || (n = (n & 738197653) === n ? "tertiary-dark" : "primary-dark", r ? r.run(console.timeStamp.bind(console, "Suspended", e, t, mg, pg, n)) : console.timeStamp("Suspended", e, t, mg, pg, n));
		}
		function Yn(e, t, n, r, i, a) {
			if (dg && !(t <= e)) {
				n = [];
				for (var o = 0; o < r.length; o++) {
					var s = r[o].value;
					n.push(["Recoverable Error", typeof s == "object" && s && typeof s.message == "string" ? String(s.message) : String(s)]);
				}
				e = {
					start: e,
					end: t,
					detail: { devtools: {
						color: "primary-dark",
						track: mg,
						trackGroup: pg,
						tooltipText: i ? "Hydration Failed" : "Recovered after Error",
						properties: n
					} }
				}, a ? a.run(performance.measure.bind(performance, "Recovered", e)) : performance.measure("Recovered", e);
			}
		}
		function Xn(e, t, n, r) {
			!dg || t <= e || (r ? r.run(console.timeStamp.bind(console, "Errored", e, t, mg, pg, "error")) : console.timeStamp("Errored", e, t, mg, pg, "error"));
		}
		function Zn(e, t, n, r) {
			!dg || t <= e || (r ? r.run(console.timeStamp.bind(console, n, e, t, mg, pg, "secondary-light")) : console.timeStamp(n, e, t, mg, pg, "secondary-light"));
		}
		function Qn(e, t, n, r, i) {
			if (dg && !(t <= e)) {
				for (var a = [], o = 0; o < n.length; o++) {
					var s = n[o].value;
					a.push(["Error", typeof s == "object" && s && typeof s.message == "string" ? String(s.message) : String(s)]);
				}
				e = {
					start: e,
					end: t,
					detail: { devtools: {
						color: "error",
						track: mg,
						trackGroup: pg,
						tooltipText: r ? "Remaining Effects Errored" : "Commit Errored",
						properties: a
					} }
				}, i ? i.run(performance.measure.bind(performance, "Errored", e)) : performance.measure("Errored", e);
			}
		}
		function $n(e, t, n) {
			!dg || t <= e || (n ? n.run(console.timeStamp.bind(console, "Animating", e, t, mg, pg, "secondary-dark")) : console.timeStamp("Animating", e, t, mg, pg, "secondary-dark"));
		}
		function er() {
			for (var e = wg, t = Tg = wg = 0; t < e;) {
				var n = Cg[t];
				Cg[t++] = null;
				var r = Cg[t];
				Cg[t++] = null;
				var i = Cg[t];
				Cg[t++] = null;
				var a = Cg[t];
				if (Cg[t++] = null, r !== null && i !== null) {
					var o = r.pending;
					o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
				}
				a !== 0 && ir(n, i, a);
			}
		}
		function tr(e, t, n, r) {
			Cg[wg++] = e, Cg[wg++] = t, Cg[wg++] = n, Cg[wg++] = r, Tg |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
		}
		function nr(e, t, n, r) {
			return tr(e, t, n, r), ar(e);
		}
		function rr(e, t) {
			return tr(e, null, null, t), ar(e);
		}
		function ir(e, t, n) {
			e.lanes |= n;
			var r = e.alternate;
			r !== null && (r.lanes |= n);
			for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & xg || (i = !0)), e = a, a = a.return;
			return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - kp(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
		}
		function ar(e) {
			if (qx > Kx) throw Qx = qx = 0, $x = Jx = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");
			Qx > Zx && (Qx = 0, $x = null, console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")), e.alternate === null && e.flags & 4098 && Fl(e);
			for (var t = e, n = t.return; n !== null;) t.alternate === null && t.flags & 4098 && Fl(e), t = n, n = t.return;
			return t.tag === 3 ? t.stateNode : null;
		}
		function or(e) {
			if (Dg === null) return e;
			var t = Dg(e);
			return t === void 0 ? e : t.current;
		}
		function sr(e) {
			if (Dg === null) return e;
			var t = Dg(e);
			return t === void 0 ? e != null && typeof e.render == "function" && (t = or(e.render), e.render !== t) ? (t = {
				$$typeof: Mf,
				render: t
			}, e.displayName !== void 0 && (t.displayName = e.displayName), t) : e : t.current;
		}
		function cr(e, t) {
			if (Dg === null) return !1;
			var n = e.elementType;
			t = t.type;
			var r = !1, i = typeof t == "object" && t ? t.$$typeof : null;
			switch (e.tag) {
				case 1:
					typeof t == "function" && (r = !0);
					break;
				case 0:
					(typeof t == "function" || i === If) && (r = !0);
					break;
				case 11:
					(i === Mf || i === If) && (r = !0);
					break;
				case 14:
				case 15:
					(i === Ff || i === If) && (r = !0);
					break;
				default: return !1;
			}
			return !!(r && (e = Dg(n), e !== void 0 && e === Dg(t)));
		}
		function lr(e) {
			Dg !== null && typeof WeakSet == "function" && (Og === null && (Og = /* @__PURE__ */ new WeakSet()), Og.add(e));
		}
		function V(e, t, n) {
			do {
				var r = e, i = r.alternate, a = r.child, o = r.sibling, s = r.tag;
				r = r.type;
				var c = null;
				switch (s) {
					case 0:
					case 15:
					case 1:
						c = r;
						break;
					case 11: c = r.render;
				}
				if (Dg === null) throw Error("Expected resolveFamily to be set during hot reload.");
				var l = !1;
				if (r = !1, c !== null && (c = Dg(c), c !== void 0 && (n.has(c) ? r = !0 : t.has(c) && (s === 1 ? r = !0 : l = !0))), Og !== null && (Og.has(e) || i !== null && Og.has(i)) && (r = !0), r && (e._debugNeedsRemount = !0), (r || l) && (i = rr(e, 2), i !== null && Kc(i, e, 2)), a === null || r || V(a, t, n), o === null) break;
				e = o;
			} while (1);
		}
		function ur(e, t, n, r) {
			this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null, this.actualDuration = -0, this.actualStartTime = -1.1, this.treeBaseDuration = this.selfBaseDuration = -0, this._debugTask = this._debugStack = this._debugOwner = this._debugInfo = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, Pg || typeof Object.preventExtensions != "function" || Object.preventExtensions(this);
		}
		function dr(e) {
			return e = e.prototype, !(!e || !e.isReactComponent);
		}
		function fr(e, t) {
			var n = e.alternate;
			switch (n === null ? (n = m(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n._debugOwner = e._debugOwner, n._debugStack = e._debugStack, n._debugTask = e._debugTask, n._debugHookTypes = e._debugHookTypes, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null, n.actualDuration = -0, n.actualStartTime = -1.1), n.flags = e.flags & 65011712, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
				lanes: t.lanes,
				firstContext: t.firstContext,
				_debugThenableState: t._debugThenableState
			}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n.selfBaseDuration = e.selfBaseDuration, n.treeBaseDuration = e.treeBaseDuration, n._debugInfo = e._debugInfo, n._debugNeedsRemount = e._debugNeedsRemount, n.tag) {
				case 0:
				case 15:
					n.type = or(e.type);
					break;
				case 1:
					n.type = or(e.type);
					break;
				case 11: n.type = sr(e.type);
			}
			return n;
		}
		function pr(e, t) {
			e.flags &= 65011714;
			var n = e.alternate;
			return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null, e.selfBaseDuration = 0, e.treeBaseDuration = 0) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
				lanes: t.lanes,
				firstContext: t.firstContext,
				_debugThenableState: t._debugThenableState
			}, e.selfBaseDuration = n.selfBaseDuration, e.treeBaseDuration = n.treeBaseDuration), e;
		}
		function mr(e, t, n, r, i, a) {
			var o = 0, s = e;
			if (typeof e == "function") dr(e) && (o = 1), s = or(s);
			else if (typeof e == "string") o = ae(), o = Ld(e, n, o) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
			else a: switch (e) {
				case Lf: return t = m(31, n, t, i), t.elementType = Lf, t.lanes = a, t;
				case Df: return hr(n.children, i, a, t);
				case Of:
					o = 8, i |= jg, i |= Mg;
					break;
				case kf: return e = n, r = i, typeof e.id != "string" && console.error("Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.", typeof e.id), t = m(12, e, t, r | Ag), t.elementType = kf, t.lanes = a, t.stateNode = {
					effectDuration: 0,
					passiveEffectDuration: 0
				}, t;
				case Nf: return t = m(13, n, t, i), t.elementType = Nf, t.lanes = a, t;
				case Pf: return t = m(19, n, t, i), t.elementType = Pf, t.lanes = a, t;
				default:
					if (typeof e == "object" && e) switch (e.$$typeof) {
						case jf:
							o = 10;
							break a;
						case Af:
							o = 9;
							break a;
						case Mf:
							o = 11, s = sr(s);
							break a;
						case Ff:
							o = 14;
							break a;
						case If:
							o = 16, s = null;
							break a;
					}
					s = "", (e === void 0 || typeof e == "object" && e && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : Vf(e) ? n = "array" : e !== void 0 && e.$$typeof === Tf ? (n = "<" + (T(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, (o = r ? E(r) : null) && (s += "\n\nCheck the render method of `" + o + "`."), o = 29, n = Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (n + "." + s)), s = null;
			}
			return t = m(o, n, t, i), t.elementType = e, t.type = s, t.lanes = a, t._debugOwner = r, t;
		}
		function H(e, t, n) {
			return t = mr(e.type, e.key, e.props, e._owner, t, n), t._debugOwner = e._owner, t._debugStack = e._debugStack, t._debugTask = e._debugTask, t;
		}
		function hr(e, t, n, r) {
			return e = m(7, e, r, t), e.lanes = n, e;
		}
		function gr(e, t, n) {
			return e = m(6, e, null, t), e.lanes = n, e;
		}
		function _r(e) {
			var t = m(18, null, null, Q);
			return t.stateNode = e, t;
		}
		function vr(e, t, n) {
			return t = m(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
				containerInfo: e.containerInfo,
				pendingChildren: null,
				implementation: e.implementation
			}, t;
		}
		function yr(e, t) {
			if (typeof e == "object" && e) {
				var n = Ig.get(e);
				return n === void 0 ? (t = {
					value: e,
					source: t,
					stack: he(t)
				}, Ig.set(e, t), t) : n;
			}
			return {
				value: e,
				source: t,
				stack: he(t)
			};
		}
		function br(e, t) {
			Er(), Lg[Rg++] = Bg, Lg[Rg++] = zg, zg = e, Bg = t;
		}
		function xr(e, t, n) {
			Er(), Vg[Hg++] = Wg, Vg[Hg++] = Gg, Vg[Hg++] = Ug, Ug = e;
			var r = Wg;
			e = Gg;
			var i = 32 - kp(r) - 1;
			r &= ~(1 << i), n += 1;
			var a = 32 - kp(t) + i;
			if (30 < a) {
				var o = i - i % 5;
				a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Wg = 1 << 32 - kp(t) + i | n << i | r, Gg = a + e;
			} else Wg = 1 << a | n << i | r, Gg = e;
		}
		function Sr(e) {
			Er(), e.return !== null && (br(e, 1), xr(e, 1, 0));
		}
		function Cr(e) {
			for (; e === zg;) zg = Lg[--Rg], Lg[Rg] = null, Bg = Lg[--Rg], Lg[Rg] = null;
			for (; e === Ug;) Ug = Vg[--Hg], Vg[Hg] = null, Gg = Vg[--Hg], Vg[Hg] = null, Wg = Vg[--Hg], Vg[Hg] = null;
		}
		function wr() {
			return Er(), Ug === null ? null : {
				id: Wg,
				overflow: Gg
			};
		}
		function Tr(e, t) {
			Er(), Vg[Hg++] = Wg, Vg[Hg++] = Gg, Vg[Hg++] = Ug, Wg = t.id, Gg = t.overflow, Ug = e;
		}
		function Er() {
			Jg || console.error("Expected to be hydrating. This is a bug in React. Please file an issue.");
		}
		function Dr(e, t) {
			if (e.return === null) {
				if (Xg === null) Xg = {
					fiber: e,
					children: [],
					serverProps: void 0,
					serverTail: [],
					distanceFromLeaf: t
				};
				else {
					if (Xg.fiber !== e) throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");
					Xg.distanceFromLeaf > t && (Xg.distanceFromLeaf = t);
				}
				return Xg;
			}
			var n = Dr(e.return, t + 1).children;
			return 0 < n.length && n[n.length - 1].fiber === e ? (n = n[n.length - 1], n.distanceFromLeaf > t && (n.distanceFromLeaf = t), n) : (t = {
				fiber: e,
				children: [],
				serverProps: void 0,
				serverTail: [],
				distanceFromLeaf: t
			}, n.push(t), t);
		}
		function Or() {
			Jg && console.error("We should not be hydrating here. This is a bug in React. Please file a bug.");
		}
		function kr(e, t) {
			Yg || (e = Dr(e, 0), e.serverProps = null, t !== null && (t = dd(t), e.serverTail.push(t)));
		}
		function Ar(e) {
			var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : !1, n = "", r = Xg;
			throw r !== null && (Xg = null, n = Mt(r)), Ir(yr(Error("Hydration failed because the server rendered " + (t ? "text" : "HTML") + " didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" + n), e)), $g;
		}
		function jr(e) {
			var t = e.stateNode, n = e.type, r = e.memoizedProps;
			switch (t[Bp] = e, t[Vp] = r, lu(n, r), n) {
				case "dialog":
					eu("cancel", t), eu("close", t);
					break;
				case "iframe":
				case "object":
				case "embed":
					eu("load", t);
					break;
				case "video":
				case "audio":
					for (n = 0; n < pS.length; n++) eu(pS[n], t);
					break;
				case "source":
					eu("error", t);
					break;
				case "img":
				case "image":
				case "link":
					eu("error", t), eu("load", t);
					break;
				case "details":
					eu("toggle", t);
					break;
				case "input":
					Qe("input", r), eu("invalid", t), ut(t, r), ft(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
					break;
				case "option":
					mt(t, r);
					break;
				case "select":
					Qe("select", r), eu("invalid", t), I(t, r);
					break;
				case "textarea": Qe("textarea", r), eu("invalid", t), _t(t, r), yt(t, r.value, r.defaultValue, r.children);
			}
			n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || hu(t.textContent, n) ? (r.popover != null && (eu("beforetoggle", t), eu("toggle", t)), r.onScroll != null && eu("scroll", t), r.onScrollEnd != null && eu("scrollend", t), r.onClick != null && (t.onclick = Zt), t = !0) : t = !1, t || Ar(e, !0);
		}
		function Mr(e) {
			for (Kg = e.return; Kg;) switch (Kg.tag) {
				case 5:
				case 31:
				case 13:
					Qg = !1;
					return;
				case 27:
				case 3:
					Qg = !0;
					return;
				default: Kg = Kg.return;
			}
		}
		function Nr(e) {
			if (e !== Kg) return !1;
			if (!Jg) return Mr(e), Jg = !0, !1;
			var t = e.tag, n;
			if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = !(n !== "form" && n !== "button") || Fu(e.type, e.memoizedProps)), n = !n), n && qg) {
				for (n = qg; n;) {
					var r = Dr(e, 0), i = dd(n);
					r.serverTail.push(i), n = i.type === "Suspense" ? pd(n) : ud(n.nextSibling);
				}
				Ar(e);
			}
			if (Mr(e), t === 13) {
				if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
				qg = pd(e);
			} else if (t === 31) {
				if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
				qg = pd(e);
			} else t === 27 ? (t = qg, Ku(e.type) ? (e = rC, rC = null, qg = e) : qg = t) : qg = Kg ? ud(e.stateNode.nextSibling) : null;
			return !0;
		}
		function Pr() {
			qg = Kg = null, Yg = Jg = !1;
		}
		function Fr() {
			var e = Zg;
			return e !== null && (hx === null ? hx = e : hx.push.apply(hx, e), Zg = null), e;
		}
		function Ir(e) {
			Zg === null ? Zg = [e] : Zg.push(e);
		}
		function Lr() {
			var e = Xg;
			if (e !== null) {
				Xg = null;
				for (var t = Mt(e); 0 < e.children.length;) e = e.children[0];
				M(e.fiber, function() {
					console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s", "https://react.dev/link/hydration-mismatch", t);
				});
			}
		}
		function Rr() {
			i_ = r_ = null, a_ = !1;
		}
		function zr(e, t, n) {
			k(e_, t._currentValue, e), t._currentValue = n, k(t_, t._currentRenderer, e), t._currentRenderer !== void 0 && t._currentRenderer !== null && t._currentRenderer !== n_ && console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), t._currentRenderer = n_;
		}
		function Br(e, t) {
			e._currentValue = e_.current;
			var n = t_.current;
			O(t_, t), e._currentRenderer = n, O(e_, t);
		}
		function Vr(e, t, n) {
			for (; e !== null;) {
				var r = e.alternate;
				if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
				e = e.return;
			}
			e !== n && console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.");
		}
		function Hr(e, t, n, r) {
			var i = e.child;
			for (i !== null && (i.return = e); i !== null;) {
				var a = i.dependencies;
				if (a !== null) {
					var o = i.child;
					a = a.firstContext;
					a: for (; a !== null;) {
						var s = a;
						a = i;
						for (var c = 0; c < t.length; c++) if (s.context === t[c]) {
							a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), Vr(a.return, n, e), r || (o = null);
							break a;
						}
						a = s.next;
					}
				} else if (i.tag === 18) {
					if (o = i.return, o === null) throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");
					o.lanes |= n, a = o.alternate, a !== null && (a.lanes |= n), Vr(o, n, e), o = null;
				} else o = i.child;
				if (o !== null) o.return = i;
				else for (o = i; o !== null;) {
					if (o === e) {
						o = null;
						break;
					}
					if (i = o.sibling, i !== null) {
						i.return = o.return, o = i;
						break;
					}
					o = o.return;
				}
				i = o;
			}
		}
		function Ur(e, t, n, r) {
			e = null;
			for (var i = t, a = !1; i !== null;) {
				if (!a) {
					if (i.flags & 524288) a = !0;
					else if (i.flags & 262144) break;
				}
				if (i.tag === 10) {
					var o = i.alternate;
					if (o === null) throw Error("Should have a current fiber. This is a bug in React.");
					if (o = o.memoizedProps, o !== null) {
						var s = i.type;
						Ph(i.pendingProps.value, o.value) || (e === null ? e = [s] : e.push(s));
					}
				} else if (i === Xf.current) {
					if (o = i.alternate, o === null) throw Error("Should have a current fiber. This is a bug in React.");
					o.memoizedState.memoizedState !== i.memoizedState.memoizedState && (e === null ? e = [xC] : e.push(xC));
				}
				i = i.return;
			}
			e !== null && Hr(t, e, n, r), t.flags |= 262144;
		}
		function Wr(e) {
			for (e = e.firstContext; e !== null;) {
				if (!Ph(e.context._currentValue, e.memoizedValue)) return !0;
				e = e.next;
			}
			return !1;
		}
		function Gr(e) {
			r_ = e, i_ = null, e = e.dependencies, e !== null && (e.firstContext = null);
		}
		function Kr(e) {
			return a_ && console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."), Jr(r_, e);
		}
		function qr(e, t) {
			return r_ === null && Gr(e), Jr(e, t);
		}
		function Jr(e, t) {
			var n = t._currentValue;
			if (t = {
				context: t,
				memoizedValue: n,
				next: null
			}, i_ === null) {
				if (e === null) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
				i_ = t, e.dependencies = {
					lanes: 0,
					firstContext: t,
					_debugThenableState: null
				}, e.flags |= 524288;
			} else i_ = i_.next = t;
			return n;
		}
		function Yr() {
			return {
				controller: new o_(),
				data: /* @__PURE__ */ new Map(),
				refCount: 0
			};
		}
		function Xr(e) {
			e.controller.signal.aborted && console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."), e.refCount++;
		}
		function Zr(e) {
			e.refCount--, 0 > e.refCount && console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."), e.refCount === 0 && s_(c_, function() {
				e.controller.abort();
			});
		}
		function Qr(e, t, n) {
			e & 127 ? 0 > E_ && (E_ = u_(), D_ = d_(t), k_ = t, n != null && (A_ = D(n)), (Hb & (Nb | Pb)) !== Mb && (w_ = !0, O_ = f_), e = Ru(), t = Lu(), e !== N_ || t !== M_ ? N_ = -1.1 : t !== null && (O_ = f_), j_ = e, M_ = t) : e & 4194048 && 0 > L_ && (L_ = u_(), z_ = d_(t), B_ = t, n != null && (V_ = D(n)), 0 > I_) && (e = Ru(), t = Lu(), (e !== W_ || t !== U_) && (W_ = -1.1), H_ = e, U_ = t);
		}
		function $r(e) {
			if (0 > E_) {
				E_ = u_(), D_ = e._debugTask == null ? null : e._debugTask, (Hb & (Nb | Pb)) !== Mb && (O_ = f_);
				var t = Ru(), n = Lu();
				t !== N_ || n !== M_ ? N_ = -1.1 : n !== null && (O_ = f_), j_ = t, M_ = n;
			}
			0 > L_ && (L_ = u_(), z_ = e._debugTask == null ? null : e._debugTask, 0 > I_) && (e = Ru(), t = Lu(), (e !== W_ || t !== U_) && (W_ = -1.1), H_ = e, U_ = t);
		}
		function ei() {
			var e = y_;
			return y_ = 0, e;
		}
		function ti(e) {
			var t = y_;
			return y_ = e, t;
		}
		function ni(e) {
			var t = y_;
			return y_ += e, t;
		}
		function ri() {
			S_ = x_ = -1.1;
		}
		function ii() {
			var e = x_;
			return x_ = -1.1, e;
		}
		function ai(e) {
			0 <= e && (x_ = e);
		}
		function oi() {
			var e = b_;
			return b_ = -0, e;
		}
		function si(e) {
			0 <= e && (b_ = e);
		}
		function ci() {
			var e = C_;
			return C_ = null, e;
		}
		function li() {
			var e = w_;
			return w_ = !1, e;
		}
		function ui(e) {
			v_ = u_(), 0 > e.actualStartTime && (e.actualStartTime = v_);
		}
		function di(e) {
			if (0 <= v_) {
				var t = u_() - v_;
				e.actualDuration += t, e.selfBaseDuration = t, v_ = -1;
			}
		}
		function fi(e) {
			if (0 <= v_) {
				var t = u_() - v_;
				e.actualDuration += t, v_ = -1;
			}
		}
		function pi() {
			if (0 <= v_) {
				var e = u_(), t = e - v_;
				v_ = -1, y_ += t, b_ += t, S_ = e;
			}
		}
		function mi(e) {
			C_ === null && (C_ = []), C_.push(e), __ === null && (__ = []), __.push(e);
		}
		function hi() {
			v_ = u_(), 0 > x_ && (x_ = v_);
		}
		function gi(e) {
			for (var t = e.child; t;) e.actualDuration += t.actualDuration, t = t.sibling;
		}
		function _i(e, t) {
			if (ev === null) {
				var n = ev = [];
				tv = 0, nv = Jl(), rv = {
					status: "pending",
					value: void 0,
					then: function(e) {
						n.push(e);
					}
				};
			}
			return tv++, t.then(vi, vi), t;
		}
		function vi() {
			if (--tv === 0 && (-1 < L_ || (I_ = -1.1), ev !== null)) {
				rv !== null && (rv.status = "fulfilled");
				var e = ev;
				ev = null, nv = 0, rv = null;
				for (var t = 0; t < e.length; t++) (0, e[t])();
			}
		}
		function yi(e, t) {
			var n = [], r = {
				status: "pending",
				value: null,
				reason: null,
				then: function(e) {
					n.push(e);
				}
			};
			return e.then(function() {
				r.status = "fulfilled", r.value = t;
				for (var e = 0; e < n.length; e++) (0, n[e])(t);
			}, function(e) {
				for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
			}), r;
		}
		function bi() {
			var e = av.current;
			return e === null ? Ub.pooledCache : e;
		}
		function xi(e, t) {
			t === null ? k(av, av.current, e) : k(av, t.pool, e);
		}
		function Si() {
			var e = bi();
			return e === null ? null : {
				parent: l_._currentValue,
				pool: e
			};
		}
		function Ci() {
			return {
				didWarnAboutUncachedPromise: !1,
				thenables: []
			};
		}
		function wi(e) {
			return e = e.status, e === "fulfilled" || e === "rejected";
		}
		function Ti(e, t, n) {
			q.actQueue !== null && (q.didUsePromise = !0);
			var r = e.thenables;
			if (n = r[n], n === void 0 ? r.push(t) : n !== t && (e.didWarnAboutUncachedPromise || (e.didWarnAboutUncachedPromise = !0, console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")), t.then(Zt, Zt), t = n), t._debugInfo === void 0) {
				e = performance.now(), r = t.displayName;
				var i = {
					name: typeof r == "string" ? r : "Promise",
					start: e,
					end: e,
					value: t
				};
				t._debugInfo = [{ awaited: i }], t.status !== "fulfilled" && t.status !== "rejected" && (e = function() {
					i.end = performance.now();
				}, t.then(e, e));
			}
			switch (t.status) {
				case "fulfilled": return t.value;
				case "rejected": throw e = t.reason, Oi(e), e;
				default:
					if (typeof t.status == "string") t.then(Zt, Zt);
					else {
						if (e = Ub, e !== null && 100 < e.shellSuspendCounter) throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");
						e = t, e.status = "pending", e.then(function(e) {
							if (t.status === "pending") {
								var n = t;
								n.status = "fulfilled", n.value = e;
							}
						}, function(e) {
							if (t.status === "pending") {
								var n = t;
								n.status = "rejected", n.reason = e;
							}
						});
					}
					switch (t.status) {
						case "fulfilled": return t.value;
						case "rejected": throw e = t.reason, Oi(e), e;
					}
					throw Rv = t, zv = !0, Pv;
			}
		}
		function Ei(e) {
			try {
				return Nv(e);
			} catch (e) {
				throw typeof e == "object" && e && typeof e.then == "function" ? (Rv = e, zv = !0, Pv) : e;
			}
		}
		function Di() {
			if (Rv === null) throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");
			var e = Rv;
			return Rv = null, zv = !1, e;
		}
		function Oi(e) {
			if (e === Pv || e === Iv) throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");
		}
		function ki(e) {
			var t = Hv;
			return e != null && (Hv = t === null ? e : t.concat(e)), t;
		}
		function Ai() {
			var e = Hv;
			if (e != null) {
				for (var t = e.length - 1; 0 <= t; t--) if (e[t].name != null) {
					var n = e[t].debugTask;
					if (n != null) return n;
				}
			}
			return null;
		}
		function ji(e, t, n) {
			for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
				var a = r[i];
				if (a !== "children" && a !== "key") {
					t === null && (t = H(e, n.mode, 0), t._debugInfo = Hv, t.return = n), M(t, function(e) {
						console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", e);
					}, a);
					break;
				}
			}
		}
		function Mi(e) {
			var t = Vv;
			return Vv += 1, Bv === null && (Bv = Ci()), Ti(Bv, e, t);
		}
		function Ni(e, t) {
			t = t.props.ref, e.ref = t === void 0 ? null : t;
		}
		function Pi(e, t) {
			throw t.$$typeof === wf ? Error("A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the \"react\" package is used.\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\n- A compiler tries to \"inline\" JSX instead of using the runtime.") : (e = Object.prototype.toString.call(t), Error("Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead."));
		}
		function Fi(e, t) {
			var n = Ai();
			n === null ? Pi(e, t) : n.run(Pi.bind(null, e, t));
		}
		function Ii(e, t) {
			var n = D(e) || "Component";
			Kv[n] || (Kv[n] = !0, t = t.displayName || t.name || "Component", e.tag === 3 ? console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n  root.render(%s)", t, t, t) : console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n  <%s>{%s}</%s>", t, t, n, t, n));
		}
		function Li(e, t) {
			var n = Ai();
			n === null ? Ii(e, t) : n.run(Ii.bind(null, e, t));
		}
		function Ri(e, t) {
			var n = D(e) || "Component";
			qv[n] || (qv[n] = !0, t = String(t), e.tag === 3 ? console.error("Symbols are not valid as a React child.\n  root.render(%s)", t) : console.error("Symbols are not valid as a React child.\n  <%s>%s</%s>", n, t, n));
		}
		function zi(e, t) {
			var n = Ai();
			n === null ? Ri(e, t) : n.run(Ri.bind(null, e, t));
		}
		function Bi(e) {
			function t(t, n) {
				if (e) {
					var r = t.deletions;
					r === null ? (t.deletions = [n], t.flags |= 16) : r.push(n);
				}
			}
			function n(n, r) {
				if (!e) return null;
				for (; r !== null;) t(n, r), r = r.sibling;
				return null;
			}
			function r(e) {
				for (var t = /* @__PURE__ */ new Map(); e !== null;) e.key === null ? t.set(e.index, e) : t.set(e.key, e), e = e.sibling;
				return t;
			}
			function i(e, t) {
				return e = fr(e, t), e.index = 0, e.sibling = null, e;
			}
			function a(t, n, r) {
				return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 67108866, n) : (r = r.index, r < n ? (t.flags |= 67108866, n) : r)) : (t.flags |= 1048576, n);
			}
			function o(t) {
				return e && t.alternate === null && (t.flags |= 67108866), t;
			}
			function s(e, t, n, r) {
				return t === null || t.tag !== 6 ? (t = gr(n, e.mode, r), t.return = e, t._debugOwner = e, t._debugTask = e._debugTask, t._debugInfo = Hv, t) : (t = i(t, n), t.return = e, t._debugInfo = Hv, t);
			}
			function c(e, t, n, r) {
				var a = n.type;
				return a === Df ? (t = u(e, t, n.props.children, r, n.key), ji(n, t, e), t) : t !== null && (t.elementType === a || cr(t, n) || typeof a == "object" && a && a.$$typeof === If && Ei(a) === t.type) ? (t = i(t, n.props), Ni(t, n), t.return = e, t._debugOwner = n._owner, t._debugInfo = Hv, t) : (t = H(n, e.mode, r), Ni(t, n), t.return = e, t._debugInfo = Hv, t);
			}
			function l(e, t, n, r) {
				return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = vr(n, e.mode, r), t.return = e, t._debugInfo = Hv, t) : (t = i(t, n.children || []), t.return = e, t._debugInfo = Hv, t);
			}
			function u(e, t, n, r, a) {
				return t === null || t.tag !== 7 ? (t = hr(n, e.mode, r, a), t.return = e, t._debugOwner = e, t._debugTask = e._debugTask, t._debugInfo = Hv, t) : (t = i(t, n), t.return = e, t._debugInfo = Hv, t);
			}
			function f(e, t, n) {
				if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = gr("" + t, e.mode, n), t.return = e, t._debugOwner = e, t._debugTask = e._debugTask, t._debugInfo = Hv, t;
				if (typeof t == "object" && t) {
					switch (t.$$typeof) {
						case Tf: return n = H(t, e.mode, n), Ni(n, t), n.return = e, e = ki(t._debugInfo), n._debugInfo = Hv, Hv = e, n;
						case Ef: return t = vr(t, e.mode, n), t.return = e, t._debugInfo = Hv, t;
						case If:
							var r = ki(t._debugInfo);
							return t = Ei(t), e = f(e, t, n), Hv = r, e;
					}
					if (Vf(t) || w(t)) return n = hr(t, e.mode, n, null), n.return = e, n._debugOwner = e, n._debugTask = e._debugTask, e = ki(t._debugInfo), n._debugInfo = Hv, Hv = e, n;
					if (typeof t.then == "function") return r = ki(t._debugInfo), e = f(e, Mi(t), n), Hv = r, e;
					if (t.$$typeof === jf) return f(e, qr(e, t), n);
					Fi(e, t);
				}
				return typeof t == "function" && Li(e, t), typeof t == "symbol" && zi(e, t), null;
			}
			function p(e, t, n, r) {
				var i = t === null ? null : t.key;
				if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? s(e, t, "" + n, r) : null;
				if (typeof n == "object" && n) {
					switch (n.$$typeof) {
						case Tf: return n.key === i ? (i = ki(n._debugInfo), e = c(e, t, n, r), Hv = i, e) : null;
						case Ef: return n.key === i ? l(e, t, n, r) : null;
						case If: return i = ki(n._debugInfo), n = Ei(n), e = p(e, t, n, r), Hv = i, e;
					}
					if (Vf(n) || w(n)) return i === null ? (i = ki(n._debugInfo), e = u(e, t, n, r, null), Hv = i, e) : null;
					if (typeof n.then == "function") return i = ki(n._debugInfo), e = p(e, t, Mi(n), r), Hv = i, e;
					if (n.$$typeof === jf) return p(e, t, qr(e, n), r);
					Fi(e, n);
				}
				return typeof n == "function" && Li(e, n), typeof n == "symbol" && zi(e, n), null;
			}
			function h(e, t, n, r, i) {
				if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, s(t, e, "" + r, i);
				if (typeof r == "object" && r) {
					switch (r.$$typeof) {
						case Tf: return n = e.get(r.key === null ? n : r.key) || null, e = ki(r._debugInfo), t = c(t, n, r, i), Hv = e, t;
						case Ef: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
						case If:
							var a = ki(r._debugInfo);
							return r = Ei(r), t = h(e, t, n, r, i), Hv = a, t;
					}
					if (Vf(r) || w(r)) return n = e.get(n) || null, e = ki(r._debugInfo), t = u(t, n, r, i, null), Hv = e, t;
					if (typeof r.then == "function") return a = ki(r._debugInfo), t = h(e, t, n, Mi(r), i), Hv = a, t;
					if (r.$$typeof === jf) return h(e, t, n, qr(t, r), i);
					Fi(t, r);
				}
				return typeof r == "function" && Li(t, r), typeof r == "symbol" && zi(t, r), null;
			}
			function g(e, t, n, r) {
				if (typeof n != "object" || !n) return r;
				switch (n.$$typeof) {
					case Tf:
					case Ef:
						d(e, t, n);
						var i = n.key;
						if (typeof i != "string") break;
						if (r === null) {
							r = /* @__PURE__ */ new Set(), r.add(i);
							break;
						}
						if (!r.has(i)) {
							r.add(i);
							break;
						}
						M(t, function() {
							console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.", i);
						});
						break;
					case If: n = Ei(n), g(e, t, n, r);
				}
				return r;
			}
			function _(i, o, s, c) {
				for (var l = null, u = null, d = null, m = o, _ = o = 0, v = null; m !== null && _ < s.length; _++) {
					m.index > _ ? (v = m, m = null) : v = m.sibling;
					var y = p(i, m, s[_], c);
					if (y === null) {
						m === null && (m = v);
						break;
					}
					l = g(i, y, s[_], l), e && m && y.alternate === null && t(i, m), o = a(y, o, _), d === null ? u = y : d.sibling = y, d = y, m = v;
				}
				if (_ === s.length) return n(i, m), Jg && br(i, _), u;
				if (m === null) {
					for (; _ < s.length; _++) m = f(i, s[_], c), m !== null && (l = g(i, m, s[_], l), o = a(m, o, _), d === null ? u = m : d.sibling = m, d = m);
					return Jg && br(i, _), u;
				}
				for (m = r(m); _ < s.length; _++) v = h(m, i, _, s[_], c), v !== null && (l = g(i, v, s[_], l), e && v.alternate !== null && m.delete(v.key === null ? _ : v.key), o = a(v, o, _), d === null ? u = v : d.sibling = v, d = v);
				return e && m.forEach(function(e) {
					return t(i, e);
				}), Jg && br(i, _), u;
			}
			function v(i, o, s, c) {
				if (s == null) throw Error("An iterable object provided no iterator.");
				for (var l = null, u = null, d = o, m = o = 0, _ = null, v = null, y = s.next(); d !== null && !y.done; m++, y = s.next()) {
					d.index > m ? (_ = d, d = null) : _ = d.sibling;
					var b = p(i, d, y.value, c);
					if (b === null) {
						d === null && (d = _);
						break;
					}
					v = g(i, b, y.value, v), e && d && b.alternate === null && t(i, d), o = a(b, o, m), u === null ? l = b : u.sibling = b, u = b, d = _;
				}
				if (y.done) return n(i, d), Jg && br(i, m), l;
				if (d === null) {
					for (; !y.done; m++, y = s.next()) d = f(i, y.value, c), d !== null && (v = g(i, d, y.value, v), o = a(d, o, m), u === null ? l = d : u.sibling = d, u = d);
					return Jg && br(i, m), l;
				}
				for (d = r(d); !y.done; m++, y = s.next()) _ = h(d, i, m, y.value, c), _ !== null && (v = g(i, _, y.value, v), e && _.alternate !== null && d.delete(_.key === null ? m : _.key), o = a(_, o, m), u === null ? l = _ : u.sibling = _, u = _);
				return e && d.forEach(function(e) {
					return t(i, e);
				}), Jg && br(i, m), l;
			}
			function y(e, r, a, s) {
				if (typeof a == "object" && a && a.type === Df && a.key === null && (ji(a, null, e), a = a.props.children), typeof a == "object" && a) {
					switch (a.$$typeof) {
						case Tf:
							var c = ki(a._debugInfo);
							a: {
								for (var l = a.key; r !== null;) {
									if (r.key === l) {
										if (l = a.type, l === Df) {
											if (r.tag === 7) {
												n(e, r.sibling), s = i(r, a.props.children), s.return = e, s._debugOwner = a._owner, s._debugInfo = Hv, ji(a, s, e), e = s;
												break a;
											}
										} else if (r.elementType === l || cr(r, a) || typeof l == "object" && l && l.$$typeof === If && Ei(l) === r.type) {
											n(e, r.sibling), s = i(r, a.props), Ni(s, a), s.return = e, s._debugOwner = a._owner, s._debugInfo = Hv, e = s;
											break a;
										}
										n(e, r);
										break;
									} else t(e, r);
									r = r.sibling;
								}
								a.type === Df ? (s = hr(a.props.children, e.mode, s, a.key), s.return = e, s._debugOwner = e, s._debugTask = e._debugTask, s._debugInfo = Hv, ji(a, s, e), e = s) : (s = H(a, e.mode, s), Ni(s, a), s.return = e, s._debugInfo = Hv, e = s);
							}
							return e = o(e), Hv = c, e;
						case Ef:
							a: {
								for (c = a, a = c.key; r !== null;) {
									if (r.key === a) if (r.tag === 4 && r.stateNode.containerInfo === c.containerInfo && r.stateNode.implementation === c.implementation) {
										n(e, r.sibling), s = i(r, c.children || []), s.return = e, e = s;
										break a;
									} else {
										n(e, r);
										break;
									}
									else t(e, r);
									r = r.sibling;
								}
								s = vr(c, e.mode, s), s.return = e, e = s;
							}
							return o(e);
						case If: return c = ki(a._debugInfo), a = Ei(a), e = y(e, r, a, s), Hv = c, e;
					}
					if (Vf(a)) return c = ki(a._debugInfo), e = _(e, r, a, s), Hv = c, e;
					if (w(a)) {
						if (c = ki(a._debugInfo), l = w(a), typeof l != "function") throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");
						var u = l.call(a);
						return u === a ? (e.tag !== 0 || Object.prototype.toString.call(e.type) !== "[object GeneratorFunction]" || Object.prototype.toString.call(u) !== "[object Generator]") && (Wv || console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."), Wv = !0) : a.entries !== l || Uv || (console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Uv = !0), e = v(e, r, u, s), Hv = c, e;
					}
					if (typeof a.then == "function") return c = ki(a._debugInfo), e = y(e, r, Mi(a), s), Hv = c, e;
					if (a.$$typeof === jf) return y(e, r, qr(e, a), s);
					Fi(e, a);
				}
				return typeof a == "string" && a !== "" || typeof a == "number" || typeof a == "bigint" ? (c = "" + a, r !== null && r.tag === 6 ? (n(e, r.sibling), s = i(r, c), s.return = e, e = s) : (n(e, r), s = gr(c, e.mode, s), s.return = e, s._debugOwner = e, s._debugTask = e._debugTask, s._debugInfo = Hv, e = s), o(e)) : (typeof a == "function" && Li(e, a), typeof a == "symbol" && zi(e, a), n(e, r));
			}
			return function(e, t, n, r) {
				var i = Hv;
				Hv = null;
				try {
					Vv = 0;
					var a = y(e, t, n, r);
					return Bv = null, a;
				} catch (t) {
					if (t === Pv || t === Iv) throw t;
					var o = m(29, t, null, e.mode);
					o.lanes = r, o.return = e;
					var s = o._debugInfo = Hv;
					if (o._debugOwner = e._debugOwner, o._debugTask = e._debugTask, s != null) {
						for (var c = s.length - 1; 0 <= c; c--) if (typeof s[c].stack == "string") {
							o._debugOwner = s[c], o._debugTask = s[c].debugTask;
							break;
						}
					}
					return o;
				} finally {
					Hv = i;
				}
			};
		}
		function Vi(e, t) {
			var n = Vf(e);
			return e = !n && typeof w(e) == "function", n || e ? (n = n ? "array" : "iterable", console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>", n, t, n), !1) : !0;
		}
		function Hi(e) {
			e.updateQueue = {
				baseState: e.memoizedState,
				firstBaseUpdate: null,
				lastBaseUpdate: null,
				shared: {
					pending: null,
					lanes: 0,
					hiddenCallbacks: null
				},
				callbacks: null
			};
		}
		function Ui(e, t) {
			e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
				baseState: e.baseState,
				firstBaseUpdate: e.firstBaseUpdate,
				lastBaseUpdate: e.lastBaseUpdate,
				shared: e.shared,
				callbacks: null
			});
		}
		function Wi(e) {
			return {
				lane: e,
				tag: Xv,
				payload: null,
				callback: null,
				next: null
			};
		}
		function Gi(e, t, n) {
			var r = e.updateQueue;
			if (r === null) return null;
			if (r = r.shared, ny === r && !ty) {
				var i = D(e);
				console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s", i), ty = !0;
			}
			return (Hb & Nb) === Mb ? (tr(e, r, t, n), ar(e)) : (i = r.pending, i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = ar(e), ir(e, null, n), t);
		}
		function Ki(e, t, n) {
			if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
				var r = t.lanes;
				r &= e.pendingLanes, n |= r, t.lanes = n, Ie(e, n);
			}
		}
		function qi(e, t) {
			var n = e.updateQueue, r = e.alternate;
			if (r !== null && (r = r.updateQueue, n === r)) {
				var i = null, a = null;
				if (n = n.firstBaseUpdate, n !== null) {
					do {
						var o = {
							lane: n.lane,
							tag: n.tag,
							payload: n.payload,
							callback: null,
							next: null
						};
						a === null ? i = a = o : a = a.next = o, n = n.next;
					} while (n !== null);
					a === null ? i = a = t : a = a.next = t;
				} else i = a = t;
				n = {
					baseState: r.baseState,
					firstBaseUpdate: i,
					lastBaseUpdate: a,
					shared: r.shared,
					callbacks: r.callbacks
				}, e.updateQueue = n;
				return;
			}
			e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
		}
		function Ji() {
			if (ry) {
				var e = rv;
				if (e !== null) throw e;
			}
		}
		function Yi(e, t, n, r) {
			ry = !1;
			var i = e.updateQueue;
			ey = !1, ny = i.shared;
			var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
			if (s !== null) {
				i.shared.pending = null;
				var c = s, l = c.next;
				c.next = null, o === null ? a = l : o.next = l, o = c;
				var u = e.alternate;
				u !== null && (u = u.updateQueue, s = u.lastBaseUpdate, s !== o && (s === null ? u.firstBaseUpdate = l : s.next = l, u.lastBaseUpdate = c));
			}
			if (a !== null) {
				var d = i.baseState;
				o = 0, u = l = c = null, s = a;
				do {
					var f = s.lane & -536870913, p = f !== s.lane;
					if (p ? (Gb & f) === f : (r & f) === f) {
						f !== 0 && f === nv && (ry = !0), u !== null && (u = u.next = {
							lane: 0,
							tag: s.tag,
							payload: s.payload,
							callback: null,
							next: null
						});
						a: {
							f = e;
							var m = s, h = t, g = n;
							switch (m.tag) {
								case Zv:
									if (m = m.payload, typeof m == "function") {
										a_ = !0;
										var _ = m.call(g, d, h);
										if (f.mode & jg) {
											Ee(!0);
											try {
												m.call(g, d, h);
											} finally {
												Ee(!1);
											}
										}
										a_ = !1, d = _;
										break a;
									}
									d = m;
									break a;
								case $v: f.flags = f.flags & -65537 | 128;
								case Xv:
									if (_ = m.payload, typeof _ == "function") {
										if (a_ = !0, m = _.call(g, d, h), f.mode & jg) {
											Ee(!0);
											try {
												_.call(g, d, h);
											} finally {
												Ee(!1);
											}
										}
										a_ = !1;
									} else m = _;
									if (m == null) break a;
									d = Cf({}, d, m);
									break a;
								case Qv: ey = !0;
							}
						}
						f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
					} else p = {
						lane: f,
						tag: s.tag,
						payload: s.payload,
						callback: s.callback,
						next: null
					}, u === null ? (l = u = p, c = d) : u = u.next = p, o |= f;
					if (s = s.next, s === null) {
						if (s = i.shared.pending, s === null) break;
						p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
					}
				} while (1);
				u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), lx |= o, e.lanes = o, e.memoizedState = d;
			}
			ny = null;
		}
		function Xi(e, t) {
			if (typeof e != "function") throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + e);
			e.call(t);
		}
		function Zi(e, t) {
			var n = e.shared.hiddenCallbacks;
			if (n !== null) for (e.shared.hiddenCallbacks = null, e = 0; e < n.length; e++) Xi(n[e], t);
		}
		function Qi(e, t) {
			var n = e.callbacks;
			if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) Xi(n[e], t);
		}
		function $i(e, t) {
			var n = sx;
			k(ay, n, e), k(iy, t, e), sx = n | t.baseLanes;
		}
		function ea(e) {
			k(ay, sx, e), k(iy, iy.current, e);
		}
		function ta(e) {
			sx = ay.current, O(iy, e), O(ay, e);
		}
		function na(e) {
			var t = e.alternate;
			k(uy, uy.current & cy, e), k(oy, e, e), sy === null && (t === null || iy.current !== null || t.memoizedState !== null) && (sy = e);
		}
		function ra(e) {
			k(uy, uy.current, e), k(oy, e, e), sy === null && (sy = e);
		}
		function ia(e) {
			e.tag === 22 ? (k(uy, uy.current, e), k(oy, e, e), sy === null && (sy = e)) : aa(e);
		}
		function aa(e) {
			k(uy, uy.current, e), k(oy, oy.current, e);
		}
		function oa(e) {
			O(oy, e), sy === e && (sy = null), O(uy, e);
		}
		function sa(e) {
			for (var t = e; t !== null;) {
				if (t.tag === 13) {
					var n = t.memoizedState;
					if (n !== null && (n = n.dehydrated, n === null || sd(n) || cd(n))) return t;
				} else if (t.tag === 19 && (t.memoizedProps.revealOrder === "forwards" || t.memoizedProps.revealOrder === "backwards" || t.memoizedProps.revealOrder === "unstable_legacy-backwards" || t.memoizedProps.revealOrder === "together")) {
					if (t.flags & 128) return t;
				} else if (t.child !== null) {
					t.child.return = t, t = t.child;
					continue;
				}
				if (t === e) break;
				for (; t.sibling === null;) {
					if (t.return === null || t.return === e) return null;
					t = t.return;
				}
				t.sibling.return = t.return, t = t.sibling;
			}
			return null;
		}
		function ca() {
			var e = $;
			Ny === null ? Ny = [e] : Ny.push(e);
		}
		function U() {
			var e = $;
			if (Ny !== null && (Py++, Ny[Py] !== e)) {
				var t = D(Sy);
				if (!_y.has(t) && (_y.add(t), Ny !== null)) {
					for (var n = "", r = 0; r <= Py; r++) {
						var i = Ny[r], a = r === Py ? e : i;
						for (i = r + 1 + ". " + i; 30 > i.length;) i += " ";
						i += a + "\n", n += i;
					}
					console.error("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n   Previous render            Next render\n   ------------------------------------------------------\n%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", t, n);
				}
			}
		}
		function la(e) {
			e == null || Vf(e) || console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", $, typeof e);
		}
		function ua() {
			var e = D(Sy);
			by.has(e) || (by.add(e), console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.", e));
		}
		function da() {
			throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.");
		}
		function fa(e, t) {
			if (Fy) return !1;
			if (t === null) return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", $), !1;
			e.length !== t.length && console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", $, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
			for (var n = 0; n < t.length && n < e.length; n++) if (!Ph(e[n], t[n])) return !1;
			return !0;
		}
		function pa(e, t, n, r, i, a) {
			xy = a, Sy = t, Ny = e === null ? null : e._debugHookTypes, Py = -1, Fy = e !== null && e.type !== t.type, (Object.prototype.toString.call(n) === "[object AsyncFunction]" || Object.prototype.toString.call(n) === "[object AsyncGeneratorFunction]") && (a = D(Sy), yy.has(a) || (yy.add(a), console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.", a === null ? "An unknown Component" : "<" + a + ">"))), t.memoizedState = null, t.updateQueue = null, t.lanes = 0, q.H = e !== null && e.memoizedState !== null ? zy : Ny === null ? Ly : Ry, Dy = a = (t.mode & jg) !== Q;
			var o = _v(n, r, i);
			if (Dy = !1, Ey && (o = ha(t, n, r, i)), a) {
				Ee(!0);
				try {
					o = ha(t, n, r, i);
				} finally {
					Ee(!1);
				}
			}
			return ma(e, t), o;
		}
		function ma(e, t) {
			t._debugHookTypes = Ny, t.dependencies === null ? Ay !== null && (t.dependencies = {
				lanes: 0,
				firstContext: null,
				_debugThenableState: Ay
			}) : t.dependencies._debugThenableState = Ay, q.H = Iy;
			var n = Cy !== null && Cy.next !== null;
			if (xy = 0, Ny = $ = wy = Cy = Sy = null, Py = -1, e !== null && (e.flags & 65011712) != (t.flags & 65011712) && console.error("Internal React error: Expected static flag was missing. Please notify the React team."), Ty = !1, ky = 0, Ay = null, n) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");
			e === null || ab || (e = e.dependencies, e !== null && Wr(e) && (ab = !0)), zv ? (zv = !1, e = !0) : e = !1, e && (t = D(t) || "Unknown", vy.has(t) || yy.has(t) || (vy.add(t), console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")));
		}
		function ha(e, t, n, r) {
			Sy = e;
			var i = 0;
			do {
				if (Ey && (Ay = null), ky = 0, Ey = !1, i >= My) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");
				if (i += 1, Fy = !1, wy = Cy = null, e.updateQueue != null) {
					var a = e.updateQueue;
					a.lastEffect = null, a.events = null, a.stores = null, a.memoCache != null && (a.memoCache.index = 0);
				}
				Py = -1, q.H = By, a = _v(t, n, r);
			} while (Ey);
			return a;
		}
		function ga() {
			var e = q.H, t = e.useState()[0];
			return t = typeof t.then == "function" ? Ca(t) : t, e = e.useState()[0], (Cy === null ? null : Cy.memoizedState) !== e && (Sy.flags |= 1024), t;
		}
		function _a() {
			var e = Oy !== 0;
			return Oy = 0, e;
		}
		function va(e, t, n) {
			t.updateQueue = e.updateQueue, t.flags = (t.mode & Mg) === Q ? t.flags & -2053 : t.flags & -402655237, e.lanes &= ~n;
		}
		function ya(e) {
			if (Ty) {
				for (e = e.memoizedState; e !== null;) {
					var t = e.queue;
					t !== null && (t.pending = null), e = e.next;
				}
				Ty = !1;
			}
			xy = 0, Ny = wy = Cy = Sy = null, Py = -1, $ = null, Ey = !1, ky = Oy = 0, Ay = null;
		}
		function ba() {
			var e = {
				memoizedState: null,
				baseState: null,
				baseQueue: null,
				queue: null,
				next: null
			};
			return wy === null ? Sy.memoizedState = wy = e : wy = wy.next = e, wy;
		}
		function xa() {
			if (Cy === null) {
				var e = Sy.alternate;
				e = e === null ? null : e.memoizedState;
			} else e = Cy.next;
			var t = wy === null ? Sy.memoizedState : wy.next;
			if (t !== null) wy = t, Cy = e;
			else {
				if (e === null) throw Sy.alternate === null ? Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.") : Error("Rendered more hooks than during the previous render.");
				Cy = e, e = {
					memoizedState: Cy.memoizedState,
					baseState: Cy.baseState,
					baseQueue: Cy.baseQueue,
					queue: Cy.queue,
					next: null
				}, wy === null ? Sy.memoizedState = wy = e : wy = wy.next = e;
			}
			return wy;
		}
		function Sa() {
			return {
				lastEffect: null,
				events: null,
				stores: null,
				memoCache: null
			};
		}
		function Ca(e) {
			var t = ky;
			return ky += 1, Ay === null && (Ay = Ci()), e = Ti(Ay, e, t), t = Sy, (wy === null ? t.memoizedState : wy.next) === null && (t = t.alternate, q.H = t !== null && t.memoizedState !== null ? zy : Ly), e;
		}
		function wa(e) {
			if (typeof e == "object" && e) {
				if (typeof e.then == "function") return Ca(e);
				if (e.$$typeof === jf) return Kr(e);
			}
			throw Error("An unsupported type was passed to use(): " + String(e));
		}
		function Ta(e) {
			var t = null, n = Sy.updateQueue;
			if (n !== null && (t = n.memoCache), t == null) {
				var r = Sy.alternate;
				r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
					data: r.data.map(function(e) {
						return e.slice();
					}),
					index: 0
				})));
			}
			if (t ??= {
				data: [],
				index: 0
			}, n === null && (n = Sa(), Sy.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0 || Fy) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = Rf;
			else n.length !== e && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", n.length, e);
			return t.index++, n;
		}
		function Ea(e, t) {
			return typeof t == "function" ? t(e) : t;
		}
		function Da(e, t, n) {
			var r = ba();
			if (n !== void 0) {
				var i = n(t);
				if (Dy) {
					Ee(!0);
					try {
						n(t);
					} finally {
						Ee(!1);
					}
				}
			} else i = t;
			return r.memoizedState = r.baseState = i, e = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: e,
				lastRenderedState: i
			}, r.queue = e, e = e.dispatch = Fo.bind(null, Sy, e), [r.memoizedState, e];
		}
		function Oa(e) {
			return ka(xa(), Cy, e);
		}
		function ka(e, t, n) {
			var r = e.queue;
			if (r === null) throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");
			r.lastRenderedReducer = n;
			var i = e.baseQueue, a = r.pending;
			if (a !== null) {
				if (i !== null) {
					var o = i.next;
					i.next = a.next, a.next = o;
				}
				t.baseQueue !== i && console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), t.baseQueue = i = a, r.pending = null;
			}
			if (a = e.baseState, i === null) e.memoizedState = a;
			else {
				t = i.next;
				var s = o = null, c = null, l = t, u = !1;
				do {
					var d = l.lane & -536870913;
					if (d === l.lane ? (xy & d) === d : (Gb & d) === d) {
						var f = l.revertLane;
						if (f === 0) c !== null && (c = c.next = {
							lane: 0,
							revertLane: 0,
							gesture: null,
							action: l.action,
							hasEagerState: l.hasEagerState,
							eagerState: l.eagerState,
							next: null
						}), d === nv && (u = !0);
						else if ((xy & f) === f) {
							l = l.next, f === nv && (u = !0);
							continue;
						} else d = {
							lane: 0,
							revertLane: l.revertLane,
							gesture: null,
							action: l.action,
							hasEagerState: l.hasEagerState,
							eagerState: l.eagerState,
							next: null
						}, c === null ? (s = c = d, o = a) : c = c.next = d, Sy.lanes |= f, lx |= f;
						d = l.action, Dy && n(a, d), a = l.hasEagerState ? l.eagerState : n(a, d);
					} else f = {
						lane: d,
						revertLane: l.revertLane,
						gesture: l.gesture,
						action: l.action,
						hasEagerState: l.hasEagerState,
						eagerState: l.eagerState,
						next: null
					}, c === null ? (s = c = f, o = a) : c = c.next = f, Sy.lanes |= d, lx |= d;
					l = l.next;
				} while (l !== null && l !== t);
				if (c === null ? o = a : c.next = s, !Ph(a, e.memoizedState) && (ab = !0, u && (n = rv, n !== null))) throw n;
				e.memoizedState = a, e.baseState = o, e.baseQueue = c, r.lastRenderedState = a;
			}
			return i === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
		}
		function Aa(e) {
			var t = xa(), n = t.queue;
			if (n === null) throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");
			n.lastRenderedReducer = e;
			var r = n.dispatch, i = n.pending, a = t.memoizedState;
			if (i !== null) {
				n.pending = null;
				var o = i = i.next;
				do
					a = e(a, o.action), o = o.next;
				while (o !== i);
				Ph(a, t.memoizedState) || (ab = !0), t.memoizedState = a, t.baseQueue === null && (t.baseState = a), n.lastRenderedState = a;
			}
			return [a, r];
		}
		function ja(e, t, n) {
			var r = Sy, i = ba();
			if (Jg) {
				if (n === void 0) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
				var a = n();
				gy || a === n() || (console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"), gy = !0);
			} else {
				if (a = t(), gy || (n = t(), Ph(a, n) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), gy = !0)), Ub === null) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
				Gb & 127 || Na(r, t, a);
			}
			return i.memoizedState = a, n = {
				value: a,
				getSnapshot: t
			}, i.queue = n, ao(Fa.bind(null, r, n, e), [e]), r.flags |= 2048, to(fy | hy, { destroy: void 0 }, Pa.bind(null, r, n, a, t), null), a;
		}
		function Ma(e, t, n) {
			var r = Sy, i = xa(), a = Jg;
			if (a) {
				if (n === void 0) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
				n = n();
			} else if (n = t(), !gy) {
				var o = t();
				Ph(n, o) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), gy = !0);
			}
			if ((o = !Ph((Cy || i).memoizedState, n)) && (i.memoizedState = n, ab = !0), i = i.queue, io(2048, hy, Fa.bind(null, r, i, e), [e]), i.getSnapshot !== t || o || wy !== null && wy.memoizedState.tag & fy) {
				if (r.flags |= 2048, to(fy | hy, { destroy: void 0 }, Pa.bind(null, r, i, n, t), null), Ub === null) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
				a || xy & 127 || Na(r, t, n);
			}
			return n;
		}
		function Na(e, t, n) {
			e.flags |= 16384, e = {
				getSnapshot: t,
				value: n
			}, t = Sy.updateQueue, t === null ? (t = Sa(), Sy.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
		}
		function Pa(e, t, n, r) {
			t.value = n, t.getSnapshot = r, Ia(t) && La(e);
		}
		function Fa(e, t, n) {
			return n(function() {
				Ia(t) && (Qr(2, "updateSyncExternalStore()", e), La(e));
			});
		}
		function Ia(e) {
			var t = e.getSnapshot;
			e = e.value;
			try {
				var n = t();
				return !Ph(e, n);
			} catch {
				return !0;
			}
		}
		function La(e) {
			var t = rr(e, 2);
			t !== null && Kc(t, e, 2);
		}
		function Ra(e) {
			var t = ba();
			if (typeof e == "function") {
				var n = e;
				if (e = n(), Dy) {
					Ee(!0);
					try {
						n();
					} finally {
						Ee(!1);
					}
				}
			}
			return t.memoizedState = t.baseState = e, t.queue = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: Ea,
				lastRenderedState: e
			}, t;
		}
		function za(e) {
			e = Ra(e);
			var t = e.queue, n = Io.bind(null, Sy, t);
			return t.dispatch = n, [e.memoizedState, n];
		}
		function Ba(e) {
			var t = ba();
			t.memoizedState = t.baseState = e;
			var n = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: null,
				lastRenderedState: null
			};
			return t.queue = n, t = Ro.bind(null, Sy, !0, n), n.dispatch = t, [e, t];
		}
		function Va(e, t) {
			return Ha(xa(), Cy, e, t);
		}
		function Ha(e, t, n, r) {
			return e.baseState = n, ka(e, Cy, typeof r == "function" ? r : Ea);
		}
		function Ua(e, t) {
			var n = xa();
			return Cy === null ? (n.baseState = e, [e, n.queue.dispatch]) : Ha(n, Cy, e, t);
		}
		function Wa(e, t, n, r, i) {
			if (zo(e)) throw Error("Cannot update form state while rendering.");
			if (e = t.action, e !== null) {
				var a = {
					payload: i,
					action: e,
					next: null,
					isTransition: !0,
					status: "pending",
					value: null,
					reason: null,
					listeners: [],
					then: function(e) {
						a.listeners.push(e);
					}
				};
				q.T === null ? a.isTransition = !1 : n(!0), r(a), n = t.pending, n === null ? (a.next = t.pending = a, Ga(t, a)) : (a.next = n.next, t.pending = n.next = a);
			}
		}
		function Ga(e, t) {
			var n = t.action, r = t.payload, i = e.state;
			if (t.isTransition) {
				var a = q.T, o = {};
				o._updatedFibers = /* @__PURE__ */ new Set(), q.T = o;
				try {
					var s = n(i, r), c = q.S;
					c !== null && c(o, s), Ka(e, t, s);
				} catch (n) {
					Ja(e, t, n);
				} finally {
					a !== null && o.types !== null && (a.types !== null && a.types !== o.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), a.types = o.types), q.T = a, a === null && o._updatedFibers && (e = o._updatedFibers.size, o._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."));
				}
			} else try {
				o = n(i, r), Ka(e, t, o);
			} catch (n) {
				Ja(e, t, n);
			}
		}
		function Ka(e, t, n) {
			typeof n == "object" && n && typeof n.then == "function" ? (q.asyncTransitions++, n.then(Co, Co), n.then(function(n) {
				qa(e, t, n);
			}, function(n) {
				return Ja(e, t, n);
			}), t.isTransition || console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")) : qa(e, t, n);
		}
		function qa(e, t, n) {
			t.status = "fulfilled", t.value = n, Ya(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Ga(e, n)));
		}
		function Ja(e, t, n) {
			var r = e.pending;
			if (e.pending = null, r !== null) {
				r = r.next;
				do
					t.status = "rejected", t.reason = n, Ya(t), t = t.next;
				while (t !== r);
			}
			e.action = null;
		}
		function Ya(e) {
			e = e.listeners;
			for (var t = 0; t < e.length; t++) (0, e[t])();
		}
		function W(e, t) {
			return t;
		}
		function Xa(e, t) {
			if (Jg) {
				var n = Ub.formState;
				if (n !== null) {
					a: {
						var r = Sy;
						if (Jg) {
							if (qg) {
								b: {
									for (var i = qg, a = Qg; i.nodeType !== 8;) {
										if (!a) {
											i = null;
											break b;
										}
										if (i = ud(i.nextSibling), i === null) {
											i = null;
											break b;
										}
									}
									a = i.data, i = a === BS || a === VS ? i : null;
								}
								if (i) {
									qg = ud(i.nextSibling), r = i.data === BS;
									break a;
								}
							}
							Ar(r);
						}
						r = !1;
					}
					r && (t = n[0]);
				}
			}
			return n = ba(), n.memoizedState = n.baseState = t, r = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: W,
				lastRenderedState: t
			}, n.queue = r, n = Io.bind(null, Sy, r), r.dispatch = n, r = Ra(!1), a = Ro.bind(null, Sy, !1, r.queue), r = ba(), i = {
				state: t,
				dispatch: null,
				action: e,
				pending: null
			}, r.queue = i, n = Wa.bind(null, Sy, i, a, n), i.dispatch = n, r.memoizedState = e, [
				t,
				n,
				!1
			];
		}
		function Za(e) {
			return Qa(xa(), Cy, e);
		}
		function Qa(e, t, n) {
			if (t = ka(e, t, W)[0], e = Oa(Ea)[0], typeof t == "object" && t && typeof t.then == "function") try {
				var r = Ca(t);
			} catch (e) {
				throw e === Pv ? Iv : e;
			}
			else r = t;
			t = xa();
			var i = t.queue, a = i.dispatch;
			return n !== t.memoizedState && (Sy.flags |= 2048, to(fy | hy, { destroy: void 0 }, $a.bind(null, i, n), null)), [
				r,
				a,
				e
			];
		}
		function $a(e, t) {
			e.action = t;
		}
		function eo(e) {
			var t = xa(), n = Cy;
			if (n !== null) return Qa(t, n, e);
			xa(), t = t.memoizedState, n = xa();
			var r = n.queue.dispatch;
			return n.memoizedState = e, [
				t,
				r,
				!1
			];
		}
		function to(e, t, n, r) {
			return e = {
				tag: e,
				create: n,
				deps: r,
				inst: t,
				next: null
			}, t = Sy.updateQueue, t === null && (t = Sa(), Sy.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
		}
		function no(e) {
			var t = ba();
			return e = { current: e }, t.memoizedState = e;
		}
		function ro(e, t, n, r) {
			var i = ba();
			Sy.flags |= e, i.memoizedState = to(fy | t, { destroy: void 0 }, n, r === void 0 ? null : r);
		}
		function io(e, t, n, r) {
			var i = xa();
			r = r === void 0 ? null : r;
			var a = i.memoizedState.inst;
			Cy !== null && r !== null && fa(r, Cy.memoizedState.deps) ? i.memoizedState = to(t, a, n, r) : (Sy.flags |= e, i.memoizedState = to(fy | t, a, n, r));
		}
		function ao(e, t) {
			(Sy.mode & Mg) === Q ? ro(8390656, hy, e, t) : ro(276826112, hy, e, t);
		}
		function oo(e) {
			Sy.flags |= 4;
			var t = Sy.updateQueue;
			if (t === null) t = Sa(), Sy.updateQueue = t, t.events = [e];
			else {
				var n = t.events;
				n === null ? t.events = [e] : n.push(e);
			}
		}
		function so(e) {
			var t = ba(), n = { impl: e };
			return t.memoizedState = n, function() {
				if ((Hb & Nb) !== Mb) throw Error("A function wrapped in useEffectEvent can't be called during rendering.");
				return n.impl.apply(void 0, arguments);
			};
		}
		function co(e) {
			var t = xa().memoizedState;
			return oo({
				ref: t,
				nextImpl: e
			}), function() {
				if ((Hb & Nb) !== Mb) throw Error("A function wrapped in useEffectEvent can't be called during rendering.");
				return t.impl.apply(void 0, arguments);
			};
		}
		function lo(e, t) {
			var n = 4194308;
			return (Sy.mode & Mg) !== Q && (n |= 134217728), ro(n, my, e, t);
		}
		function uo(e, t) {
			if (typeof t == "function") {
				e = e();
				var n = t(e);
				return function() {
					typeof n == "function" ? n() : t(null);
				};
			}
			if (t != null) return t.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(t).join(", ") + "}"), e = e(), t.current = e, function() {
				t.current = null;
			};
		}
		function fo(e, t, n) {
			typeof t != "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", t === null ? "null" : typeof t), n = n == null ? null : n.concat([e]);
			var r = 4194308;
			(Sy.mode & Mg) !== Q && (r |= 134217728), ro(r, my, uo.bind(null, t, e), n);
		}
		function po(e, t, n) {
			typeof t != "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", t === null ? "null" : typeof t), n = n == null ? null : n.concat([e]), io(4, my, uo.bind(null, t, e), n);
		}
		function mo(e, t) {
			return ba().memoizedState = [e, t === void 0 ? null : t], e;
		}
		function ho(e, t) {
			var n = xa();
			t = t === void 0 ? null : t;
			var r = n.memoizedState;
			return t !== null && fa(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
		}
		function go(e, t) {
			var n = ba();
			t = t === void 0 ? null : t;
			var r = e();
			if (Dy) {
				Ee(!0);
				try {
					e();
				} finally {
					Ee(!1);
				}
			}
			return n.memoizedState = [r, t], r;
		}
		function _o(e, t) {
			var n = xa();
			t = t === void 0 ? null : t;
			var r = n.memoizedState;
			if (t !== null && fa(t, r[1])) return r[0];
			if (r = e(), Dy) {
				Ee(!0);
				try {
					e();
				} finally {
					Ee(!1);
				}
			}
			return n.memoizedState = [r, t], r;
		}
		function vo(e, t) {
			return xo(ba(), e, t);
		}
		function yo(e, t) {
			return So(xa(), Cy.memoizedState, e, t);
		}
		function bo(e, t) {
			var n = xa();
			return Cy === null ? xo(n, e, t) : So(n, Cy.memoizedState, e, t);
		}
		function xo(e, t, n) {
			return n === void 0 || xy & 1073741824 && !(Gb & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Gc(), Sy.lanes |= e, lx |= e, n);
		}
		function So(e, t, n, r) {
			return Ph(n, t) ? n : iy.current === null ? !(xy & 42) || xy & 1073741824 && !(Gb & 261930) ? (ab = !0, e.memoizedState = n) : (e = Gc(), Sy.lanes |= e, lx |= e, t) : (e = xo(e, n, r), Ph(e, t) || (ab = !0), e);
		}
		function Co() {
			q.asyncTransitions--;
		}
		function wo(e, t, n, r, i) {
			var a = Hf.p;
			Hf.p = a !== 0 && a < Ip ? a : Ip;
			var o = q.T, s = {};
			s._updatedFibers = /* @__PURE__ */ new Set(), q.T = s, Ro(e, !1, t, n);
			try {
				var c = i(), l = q.S;
				if (l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function") {
					q.asyncTransitions++, c.then(Co, Co);
					var u = yi(c, r);
					Lo(e, t, u, K(e));
				} else Lo(e, t, r, K(e));
			} catch (n) {
				Lo(e, t, {
					then: function() {},
					status: "rejected",
					reason: n
				}, K(e));
			} finally {
				Hf.p = a, o !== null && s.types !== null && (o.types !== null && o.types !== s.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), o.types = s.types), q.T = o, o === null && s._updatedFibers && (e = s._updatedFibers.size, s._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."));
			}
		}
		function To(e, t, n, r) {
			if (e.tag !== 5) throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");
			var i = Eo(e).queue;
			$r(e), wo(e, i, t, bC, n === null ? u : function() {
				return Do(e), n(r);
			});
		}
		function Eo(e) {
			var t = e.memoizedState;
			if (t !== null) return t;
			t = {
				memoizedState: bC,
				baseState: bC,
				baseQueue: null,
				queue: {
					pending: null,
					lanes: 0,
					dispatch: null,
					lastRenderedReducer: Ea,
					lastRenderedState: bC
				},
				next: null
			};
			var n = {};
			return t.next = {
				memoizedState: n,
				baseState: n,
				baseQueue: null,
				queue: {
					pending: null,
					lanes: 0,
					dispatch: null,
					lastRenderedReducer: Ea,
					lastRenderedState: n
				},
				next: null
			}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
		}
		function Do(e) {
			q.T === null && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");
			var t = Eo(e);
			t.next === null && (t = e.alternate.memoizedState), Lo(e, t.next.queue, {}, K(e));
		}
		function Oo() {
			var e = Ra(!1);
			return e = wo.bind(null, Sy, e.queue, !0, !1), ba().memoizedState = e, [!1, e];
		}
		function ko() {
			var e = Oa(Ea)[0], t = xa().memoizedState;
			return [typeof e == "boolean" ? e : Ca(e), t];
		}
		function Ao() {
			var e = Aa(Ea)[0], t = xa().memoizedState;
			return [typeof e == "boolean" ? e : Ca(e), t];
		}
		function jo() {
			return Kr(xC);
		}
		function Mo() {
			var e = ba(), t = Ub.identifierPrefix;
			if (Jg) {
				var n = Gg, r = Wg;
				n = (r & ~(1 << 32 - kp(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Oy++, 0 < n && (t += "H" + n.toString(32)), t += "_";
			} else n = jy++, t = "_" + t + "r_" + n.toString(32) + "_";
			return e.memoizedState = t;
		}
		function No() {
			return ba().memoizedState = Po.bind(null, Sy);
		}
		function Po(e, t) {
			for (var n = e.return; n !== null;) {
				switch (n.tag) {
					case 24:
					case 3:
						var r = K(n), i = Wi(r), a = Gi(n, i, r);
						a !== null && (Qr(r, "refresh()", e), Kc(a, n, r), Ki(a, n, r)), e = Yr(), t != null && a !== null && console.error("The seed argument is not enabled outside experimental channels."), i.payload = { cache: e };
						return;
				}
				n = n.return;
			}
		}
		function Fo(e, t, n) {
			var r = arguments;
			typeof r[3] == "function" && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."), r = K(e);
			var i = {
				lane: r,
				revertLane: 0,
				gesture: null,
				action: n,
				hasEagerState: !1,
				eagerState: null,
				next: null
			};
			zo(e) ? Bo(t, i) : (i = nr(e, t, i, r), i !== null && (Qr(r, "dispatch()", e), Kc(i, e, r), Vo(i, t, r)));
		}
		function Io(e, t, n) {
			var r = arguments;
			typeof r[3] == "function" && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."), r = K(e), Lo(e, t, n, r) && Qr(r, "setState()", e);
		}
		function Lo(e, t, n, r) {
			var i = {
				lane: r,
				revertLane: 0,
				gesture: null,
				action: n,
				hasEagerState: !1,
				eagerState: null,
				next: null
			};
			if (zo(e)) Bo(t, i);
			else {
				var a = e.alternate;
				if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) {
					var o = q.H;
					q.H = Hy;
					try {
						var s = t.lastRenderedState, c = a(s, n);
						if (i.hasEagerState = !0, i.eagerState = c, Ph(c, s)) return tr(e, t, i, 0), Ub === null && er(), !1;
					} catch {} finally {
						q.H = o;
					}
				}
				if (n = nr(e, t, i, r), n !== null) return Kc(n, e, r), Vo(n, t, r), !0;
			}
			return !1;
		}
		function Ro(e, t, n, r) {
			if (q.T === null && nv === 0 && console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."), r = {
				lane: 2,
				revertLane: Jl(),
				gesture: null,
				action: r,
				hasEagerState: !1,
				eagerState: null,
				next: null
			}, zo(e)) {
				if (t) throw Error("Cannot update optimistic state while rendering.");
				console.error("Cannot call startTransition while rendering.");
			} else t = nr(e, n, r, 2), t !== null && (Qr(2, "setOptimistic()", e), Kc(t, e, 2));
		}
		function zo(e) {
			var t = e.alternate;
			return e === Sy || t !== null && t === Sy;
		}
		function Bo(e, t) {
			Ey = Ty = !0;
			var n = e.pending;
			n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
		}
		function Vo(e, t, n) {
			if (n & 4194048) {
				var r = t.lanes;
				r &= e.pendingLanes, n |= r, t.lanes = n, Ie(e, n);
			}
		}
		function Ho(e) {
			if (e !== null && typeof e != "function") {
				var t = String(e);
				eb.has(t) || (eb.add(t), console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.", e));
			}
		}
		function Uo(e, t, n, r) {
			var i = e.memoizedState, a = n(r, i);
			if (e.mode & jg) {
				Ee(!0);
				try {
					a = n(r, i);
				} finally {
					Ee(!1);
				}
			}
			a === void 0 && (t = T(t) || "Component", Xy.has(t) || (Xy.add(t), console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", t))), i = a == null ? i : Cf({}, i, a), e.memoizedState = i, e.lanes === 0 && (e.updateQueue.baseState = i);
		}
		function Wo(e, t, n, r, i, a, o) {
			var s = e.stateNode;
			if (typeof s.shouldComponentUpdate == "function") {
				if (n = s.shouldComponentUpdate(r, a, o), e.mode & jg) {
					Ee(!0);
					try {
						n = s.shouldComponentUpdate(r, a, o);
					} finally {
						Ee(!1);
					}
				}
				return n === void 0 && console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", T(t) || "Component"), n;
			}
			return t.prototype && t.prototype.isPureReactComponent ? !En(n, r) || !En(i, a) : !0;
		}
		function Go(e, t, n, r) {
			var i = t.state;
			typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== i && (e = D(e) || "Component", Gy.has(e) || (Gy.add(e), console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", e)), tb.enqueueReplaceState(t, t.state, null));
		}
		function Ko(e, t) {
			var n = t;
			if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
			if (e = e.defaultProps) for (var i in n === t && (n = Cf({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
			return n;
		}
		function qo(e) {
			ng(e), console.warn("%s\n\n%s\n", nb ? "An error occurred in the <" + nb + "> component." : "An error occurred in one of your React components.", "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.");
		}
		function Jo(e) {
			var t = nb ? "The above error occurred in the <" + nb + "> component." : "The above error occurred in one of your React components.", n = "React will try to recreate this component tree from scratch using the error boundary you provided, " + ((rb || "Anonymous") + ".");
			if (typeof e == "object" && e && typeof e.environmentName == "string") {
				var r = e.environmentName;
				e = [
					"%o\n\n%s\n\n%s\n",
					e,
					t,
					n
				].slice(0), typeof e[0] == "string" ? e.splice(0, 1, SC + " " + e[0], CC, TC + r + TC, wC) : e.splice(0, 0, SC, CC, TC + r + TC, wC), e.unshift(console), r = EC.apply(console.error, e), r();
			} else console.error("%o\n\n%s\n\n%s\n", e, t, n);
		}
		function Yo(e) {
			ng(e);
		}
		function Xo(e, t) {
			try {
				nb = t.source ? D(t.source) : null, rb = null;
				var n = t.value;
				if (q.actQueue !== null) q.thrownErrors.push(n);
				else {
					var r = e.onUncaughtError;
					r(n, { componentStack: t.stack });
				}
			} catch (e) {
				setTimeout(function() {
					throw e;
				});
			}
		}
		function Zo(e, t, n) {
			try {
				nb = n.source ? D(n.source) : null, rb = D(t);
				var r = e.onCaughtError;
				r(n.value, {
					componentStack: n.stack,
					errorBoundary: t.tag === 1 ? t.stateNode : null
				});
			} catch (e) {
				setTimeout(function() {
					throw e;
				});
			}
		}
		function Qo(e, t, n) {
			return n = Wi(n), n.tag = $v, n.payload = { element: null }, n.callback = function() {
				M(t.source, Xo, e, t);
			}, n;
		}
		function $o(e) {
			return e = Wi(e), e.tag = $v, e;
		}
		function es(e, t, n, r) {
			var i = n.type.getDerivedStateFromError;
			if (typeof i == "function") {
				var a = r.value;
				e.payload = function() {
					return i(a);
				}, e.callback = function() {
					lr(n), M(r.source, Zo, t, n, r);
				};
			}
			var o = n.stateNode;
			o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
				lr(n), M(r.source, Zo, t, n, r), typeof i != "function" && (wx === null ? wx = new Set([this]) : wx.add(this)), Tv(this, r), typeof i == "function" || !(n.lanes & 2) && console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", D(n) || "Unknown");
			});
		}
		function ts(e, t, n, r, i) {
			if (n.flags |= 32768, Op && Il(e, i), typeof r == "object" && r && typeof r.then == "function") {
				if (t = n.alternate, t !== null && Ur(t, n, i, !0), Jg && (Yg = !0), n = oy.current, n !== null) {
					switch (n.tag) {
						case 31:
						case 13: return sy === null ? ol() : n.alternate === null && cx === Fb && (cx = Rb), n.flags &= -257, n.flags |= 65536, n.lanes = i, r === Lv ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = new Set([r]) : t.add(r), Dl(e, r, i)), !1;
						case 22: return n.flags |= 65536, r === Lv ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
							transitions: null,
							markerInstances: null,
							retryQueue: new Set([r])
						}, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = new Set([r]) : n.add(r)), Dl(e, r, i)), !1;
					}
					throw Error("Unexpected Suspense handler tag (" + n.tag + "). This is a bug in React.");
				}
				return Dl(e, r, i), ol(), !1;
			}
			if (Jg) return Yg = !0, t = oy.current, t === null ? (r !== $g && Ir(yr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.", { cause: r }), n)), e = e.current.alternate, e.flags |= 65536, i &= -i, e.lanes |= i, r = yr(r, n), i = Qo(e.stateNode, r, i), qi(e, i), cx !== zb && (cx = Lb)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = i, r !== $g && Ir(yr(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.", { cause: r }), n))), !1;
			var a = yr(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.", { cause: r }), n);
			if (mx === null ? mx = [a] : mx.push(a), cx !== zb && (cx = Lb), t === null) return !0;
			r = yr(r, n), n = t;
			do {
				switch (n.tag) {
					case 3: return n.flags |= 65536, e = i & -i, n.lanes |= e, e = Qo(n.stateNode, r, e), qi(n, e), !1;
					case 1: if (t = n.type, a = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || a !== null && typeof a.componentDidCatch == "function" && (wx === null || !wx.has(a)))) return n.flags |= 65536, i &= -i, n.lanes |= i, i = $o(i), es(i, e, n, r), qi(n, i), !1;
				}
				n = n.return;
			} while (n !== null);
			return !1;
		}
		function ns(e, t, n, r) {
			t.child = e === null ? Yv(t, null, n, r) : Jv(t, e.child, n, r);
		}
		function rs(e, t, n, r, i) {
			n = n.render;
			var a = t.ref;
			if ("ref" in r) {
				var o = {};
				for (var s in r) s !== "ref" && (o[s] = r[s]);
			} else o = r;
			return Gr(t), r = pa(e, t, n, o, a, i), s = _a(), e !== null && !ab ? (va(e, t, i), Ds(e, t, i)) : (Jg && s && Sr(t), t.flags |= 1, ns(e, t, r, i), t.child);
		}
		function is(e, t, n, r, i) {
			if (e === null) {
				var a = n.type;
				return typeof a == "function" && !dr(a) && a.defaultProps === void 0 && n.compare === null ? (n = or(a), t.tag = 15, t.type = n, _s(t, a), as(e, t, n, r, i)) : (e = mr(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
			}
			if (a = e.child, !Os(e, i)) {
				var o = a.memoizedProps;
				if (n = n.compare, n = n === null ? En : n, n(o, r) && e.ref === t.ref) return Ds(e, t, i);
			}
			return t.flags |= 1, e = fr(a, r), e.ref = t.ref, e.return = t, t.child = e;
		}
		function as(e, t, n, r, i) {
			if (e !== null) {
				var a = e.memoizedProps;
				if (En(a, r) && e.ref === t.ref && t.type === e.type) if (ab = !1, t.pendingProps = r = a, Os(e, i)) e.flags & 131072 && (ab = !0);
				else return t.lanes = e.lanes, Ds(e, t, i);
			}
			return ps(e, t, n, r, i);
		}
		function os(e, t, n, r) {
			var i = r.children, a = e === null ? null : e.memoizedState;
			if (e === null && t.stateNode === null && (t.stateNode = {
				_visibility: xg,
				_pendingMarkers: null,
				_retryCache: null,
				_transitions: null
			}), r.mode === "hidden") {
				if (t.flags & 128) {
					if (a = a === null ? n : a.baseLanes | n, e !== null) {
						for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
						r = i & ~a;
					} else r = 0, t.child = null;
					return cs(e, t, a, n, r);
				}
				if (n & 536870912) t.memoizedState = {
					baseLanes: 0,
					cachePool: null
				}, e !== null && xi(t, a === null ? null : a.cachePool), a === null ? ea(t) : $i(t, a), ia(t);
				else return r = t.lanes = 536870912, cs(e, t, a === null ? n : a.baseLanes | n, n, r);
			} else a === null ? (e !== null && xi(t, null), ea(t), aa(t)) : (xi(t, a.cachePool), $i(t, a), aa(t), t.memoizedState = null);
			return ns(e, t, i, n), t.child;
		}
		function ss(e, t) {
			return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
				_visibility: xg,
				_pendingMarkers: null,
				_retryCache: null,
				_transitions: null
			}), t.sibling;
		}
		function cs(e, t, n, r, i) {
			var a = bi();
			return a = a === null ? null : {
				parent: l_._currentValue,
				pool: a
			}, t.memoizedState = {
				baseLanes: n,
				cachePool: a
			}, e !== null && xi(t, null), ea(t), ia(t), e !== null && Ur(e, t, r, !0), t.childLanes = i, null;
		}
		function ls(e, t) {
			var n = t.hidden;
			return n !== void 0 && console.error("<Activity> doesn't accept a hidden prop. Use mode=\"hidden\" instead.\n- <Activity %s>\n+ <Activity %s>", !0 === n ? "hidden" : !1 === n ? "hidden={false}" : "hidden={...}", n ? "mode=\"hidden\"" : "mode=\"visible\""), t = Ss({
				mode: t.mode,
				children: t.children
			}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
		}
		function us(e, t, n) {
			return Jv(t, e.child, null, n), e = ls(t, t.pendingProps), e.flags |= 2, oa(t), t.memoizedState = null, e;
		}
		function ds(e, t, n) {
			var r = t.pendingProps, i = (t.flags & 128) != 0;
			if (t.flags &= -129, e === null) {
				if (Jg) {
					if (r.mode === "hidden") return e = ls(t, r), t.lanes = 536870912, ss(null, e);
					if (ra(t), (e = qg) ? (n = od(e, Qg), n = n !== null && n.data === AS ? n : null, n !== null && (r = {
						dehydrated: n,
						treeContext: wr(),
						retryLane: 536870912,
						hydrationErrors: null
					}, t.memoizedState = r, r = _r(n), r.return = t, t.child = r, Kg = t, qg = null)) : n = null, n === null) throw kr(t, e), Ar(t);
					return t.lanes = 536870912, null;
				}
				return ls(t, r);
			}
			var a = e.memoizedState;
			if (a !== null) {
				var o = a.dehydrated;
				if (ra(t), i) if (t.flags & 256) t.flags &= -257, t = us(e, t, n);
				else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
				else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");
				else if (Or(), n & 536870912 && al(t), ab || Ur(e, t, n, !1), i = (n & e.childLanes) !== 0, ab || i) {
					if (r = Ub, r !== null && (o = Le(r, n), o !== 0 && o !== a.retryLane)) throw a.retryLane = o, rr(e, o), Kc(r, e, o), ib;
					ol(), t = us(e, t, n);
				} else e = a.treeContext, qg = ud(o.nextSibling), Kg = t, Jg = !0, Zg = null, Yg = !1, Xg = null, Qg = !1, e !== null && Tr(t, e), t = ls(t, r), t.flags |= 4096;
				return t;
			}
			return a = e.child, r = {
				mode: r.mode,
				children: r.children
			}, n & 536870912 && (n & e.lanes) !== 0 && al(t), e = fr(a, r), e.ref = t.ref, t.child = e, e.return = t, e;
		}
		function fs(e, t) {
			var n = t.ref;
			if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
			else {
				if (typeof n != "function" && typeof n != "object") throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");
				(e === null || e.ref !== n) && (t.flags |= 4194816);
			}
		}
		function ps(e, t, n, r, i) {
			if (n.prototype && typeof n.prototype.render == "function") {
				var a = T(n) || "Unknown";
				ob[a] || (console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", a, a), ob[a] = !0);
			}
			return t.mode & jg && ov.recordLegacyContextWarning(t, null), e === null && (_s(t, t.type), n.contextTypes && (a = T(n) || "Unknown", cb[a] || (cb[a] = !0, console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)", a)))), Gr(t), n = pa(e, t, n, r, void 0, i), r = _a(), e !== null && !ab ? (va(e, t, i), Ds(e, t, i)) : (Jg && r && Sr(t), t.flags |= 1, ns(e, t, n, i), t.child);
		}
		function ms(e, t, n, r, i, a) {
			return Gr(t), Py = -1, Fy = e !== null && e.type !== t.type, t.updateQueue = null, n = ha(t, r, n, i), ma(e, t), r = _a(), e !== null && !ab ? (va(e, t, a), Ds(e, t, a)) : (Jg && r && Sr(t), t.flags |= 1, ns(e, t, n, a), t.child);
		}
		function hs(e, t, n, r, i) {
			switch (s(t)) {
				case !1:
					var a = t.stateNode, o = new t.type(t.memoizedProps, a.context).state;
					a.updater.enqueueSetState(a, o, null);
					break;
				case !0:
					t.flags |= 128, t.flags |= 65536, a = Error("Simulated error coming from DevTools");
					var c = i & -i;
					if (t.lanes |= c, o = Ub, o === null) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
					c = $o(c), es(c, o, t, yr(a, t)), qi(t, c);
			}
			if (Gr(t), t.stateNode === null) {
				if (o = Eg, a = n.contextType, "contextType" in n && a !== null && (a === void 0 || a.$$typeof !== jf) && !$y.has(n) && ($y.add(n), c = a === void 0 ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof a == "object" ? a.$$typeof === Af ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(a).join(", ") + "}." : " However, it is set to a " + typeof a + ".", console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", T(n) || "Component", c)), typeof a == "object" && a && (o = Kr(a)), a = new n(r, o), t.mode & jg) {
					Ee(!0);
					try {
						a = new n(r, o);
					} finally {
						Ee(!1);
					}
				}
				if (o = t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = tb, t.stateNode = a, a._reactInternals = t, a._reactInternalInstance = Wy, typeof n.getDerivedStateFromProps == "function" && o === null && (o = T(n) || "Component", Ky.has(o) || (Ky.add(o), console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", o, a.state === null ? "null" : "undefined", o))), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function") {
					var l = c = o = null;
					if (typeof a.componentWillMount == "function" && !0 !== a.componentWillMount.__suppressDeprecationWarning ? o = "componentWillMount" : typeof a.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof a.componentWillReceiveProps == "function" && !0 !== a.componentWillReceiveProps.__suppressDeprecationWarning ? c = "componentWillReceiveProps" : typeof a.UNSAFE_componentWillReceiveProps == "function" && (c = "UNSAFE_componentWillReceiveProps"), typeof a.componentWillUpdate == "function" && !0 !== a.componentWillUpdate.__suppressDeprecationWarning ? l = "componentWillUpdate" : typeof a.UNSAFE_componentWillUpdate == "function" && (l = "UNSAFE_componentWillUpdate"), o !== null || c !== null || l !== null) {
						a = T(n) || "Component";
						var u = typeof n.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
						Jy.has(a) || (Jy.add(a), console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", a, u, o === null ? "" : "\n  " + o, c === null ? "" : "\n  " + c, l === null ? "" : "\n  " + l));
					}
				}
				a = t.stateNode, o = T(n) || "Component", a.render || (n.prototype && typeof n.prototype.render == "function" ? console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?", o) : console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.", o)), !a.getInitialState || a.getInitialState.isReactClassApproved || a.state || console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", o), a.getDefaultProps && !a.getDefaultProps.isReactClassApproved && console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", o), a.contextType && console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", o), n.childContextTypes && !Qy.has(n) && (Qy.add(n), console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", o)), n.contextTypes && !Zy.has(n) && (Zy.add(n), console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", o)), typeof a.componentShouldUpdate == "function" && console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", o), n.prototype && n.prototype.isPureReactComponent && a.shouldComponentUpdate !== void 0 && console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", T(n) || "A pure component"), typeof a.componentDidUnmount == "function" && console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", o), typeof a.componentDidReceiveProps == "function" && console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", o), typeof a.componentWillRecieveProps == "function" && console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", o), typeof a.UNSAFE_componentWillRecieveProps == "function" && console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", o), c = a.props !== r, a.props !== void 0 && c && console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", o), a.defaultProps && console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", o, o), typeof a.getSnapshotBeforeUpdate != "function" || typeof a.componentDidUpdate == "function" || qy.has(n) || (qy.add(n), console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", T(n))), typeof a.getDerivedStateFromProps == "function" && console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", o), typeof a.getDerivedStateFromError == "function" && console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", o), typeof n.getSnapshotBeforeUpdate == "function" && console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", o), (c = a.state) && (typeof c != "object" || Vf(c)) && console.error("%s.state: must be set to an object or null", o), typeof a.getChildContext == "function" && typeof n.childContextTypes != "object" && console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", o), a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, Hi(t), o = n.contextType, a.context = typeof o == "object" && o ? Kr(o) : Eg, a.state === r && (o = T(n) || "Component", Yy.has(o) || (Yy.add(o), console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", o))), t.mode & jg && ov.recordLegacyContextWarning(t, a), ov.recordUnsafeLifecycleWarnings(t, a), a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (Uo(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && (console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", D(t) || "Component"), tb.enqueueReplaceState(a, a.state, null)), Yi(t, r, a, i), Ji(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & Mg) !== Q && (t.flags |= 134217728), a = !0;
			} else if (e === null) {
				a = t.stateNode;
				var d = t.memoizedProps;
				c = Ko(n, d), a.props = c;
				var f = a.context;
				l = n.contextType, o = Eg, typeof l == "object" && l && (o = Kr(l)), u = n.getDerivedStateFromProps, l = typeof u == "function" || typeof a.getSnapshotBeforeUpdate == "function", d = t.pendingProps !== d, l || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (d || f !== o) && Go(t, a, r, o), ey = !1;
				var p = t.memoizedState;
				a.state = p, Yi(t, r, a, i), Ji(), f = t.memoizedState, d || p !== f || ey ? (typeof u == "function" && (Uo(t, n, u, r), f = t.memoizedState), (c = ey || Wo(t, n, c, r, p, f, o)) ? (l || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & Mg) !== Q && (t.flags |= 134217728)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & Mg) !== Q && (t.flags |= 134217728), t.memoizedProps = r, t.memoizedState = f), a.props = r, a.state = f, a.context = o, a = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & Mg) !== Q && (t.flags |= 134217728), a = !1);
			} else {
				a = t.stateNode, Ui(e, t), o = t.memoizedProps, l = Ko(n, o), a.props = l, u = t.pendingProps, p = a.context, f = n.contextType, c = Eg, typeof f == "object" && f && (c = Kr(f)), d = n.getDerivedStateFromProps, (f = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== u || p !== c) && Go(t, a, r, c), ey = !1, p = t.memoizedState, a.state = p, Yi(t, r, a, i), Ji();
				var m = t.memoizedState;
				o !== u || p !== m || ey || e !== null && e.dependencies !== null && Wr(e.dependencies) ? (typeof d == "function" && (Uo(t, n, d, r), m = t.memoizedState), (l = ey || Wo(t, n, l, r, p, m, c) || e !== null && e.dependencies !== null && Wr(e.dependencies)) ? (f || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, m, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, m, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = m), a.props = r, a.state = m, a.context = c, a = l) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), a = !1);
			}
			if (c = a, fs(e, t), o = (t.flags & 128) != 0, c || o) {
				if (c = t.stateNode, ye(t), o && typeof n.getDerivedStateFromError != "function") n = null, v_ = -1;
				else if (n = yv(c), t.mode & jg) {
					Ee(!0);
					try {
						yv(c);
					} finally {
						Ee(!1);
					}
				}
				t.flags |= 1, e !== null && o ? (t.child = Jv(t, e.child, null, i), t.child = Jv(t, null, n, i)) : ns(e, t, n, i), t.memoizedState = c.state, e = t.child;
			} else e = Ds(e, t, i);
			return i = t.stateNode, a && i.props !== r && (ub || console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", D(t) || "a component"), ub = !0), e;
		}
		function gs(e, t, n, r) {
			return Pr(), t.flags |= 256, ns(e, t, n, r), t.child;
		}
		function _s(e, t) {
			t && t.childContextTypes && console.error("childContextTypes cannot be defined on a function component.\n  %s.childContextTypes = ...", t.displayName || t.name || "Component"), typeof t.getDerivedStateFromProps == "function" && (e = T(t) || "Unknown", lb[e] || (console.error("%s: Function components do not support getDerivedStateFromProps.", e), lb[e] = !0)), typeof t.contextType == "object" && t.contextType !== null && (t = T(t) || "Unknown", sb[t] || (console.error("%s: Function components do not support contextType.", t), sb[t] = !0));
		}
		function vs(e) {
			return {
				baseLanes: e,
				cachePool: Si()
			};
		}
		function ys(e, t, n) {
			return e = e === null ? 0 : e.childLanes & ~n, t && (e |= fx), e;
		}
		function bs(e, t, n) {
			var r, i = t.pendingProps;
			o(t) && (t.flags |= 128);
			var a = !1, s = (t.flags & 128) != 0;
			if ((r = s) || (r = e !== null && e.memoizedState === null ? !1 : (uy.current & ly) !== 0), r && (a = !0, t.flags &= -129), r = (t.flags & 32) != 0, t.flags &= -33, e === null) {
				if (Jg) {
					if (a ? na(t) : aa(t), (e = qg) ? (n = od(e, Qg), n = n !== null && n.data !== AS ? n : null, n !== null && (r = {
						dehydrated: n,
						treeContext: wr(),
						retryLane: 536870912,
						hydrationErrors: null
					}, t.memoizedState = r, r = _r(n), r.return = t, t.child = r, Kg = t, qg = null)) : n = null, n === null) throw kr(t, e), Ar(t);
					return cd(n) ? t.lanes = 32 : t.lanes = 536870912, null;
				}
				var c = i.children;
				if (i = i.fallback, a) {
					aa(t);
					var l = t.mode;
					return c = Ss({
						mode: "hidden",
						children: c
					}, l), i = hr(i, l, n, null), c.return = t, i.return = t, c.sibling = i, t.child = c, i = t.child, i.memoizedState = vs(n), i.childLanes = ys(e, r, n), t.memoizedState = pb, ss(null, i);
				}
				return na(t), xs(t, c);
			}
			var u = e.memoizedState;
			if (u !== null) {
				var d = u.dehydrated;
				if (d !== null) {
					if (s) t.flags & 256 ? (na(t), t.flags &= -257, t = Cs(e, t, n)) : t.memoizedState === null ? (aa(t), c = i.fallback, l = t.mode, i = Ss({
						mode: "visible",
						children: i.children
					}, l), c = hr(c, l, n, null), c.flags |= 2, i.return = t, c.return = t, i.sibling = c, t.child = i, Jv(t, e.child, null, n), i = t.child, i.memoizedState = vs(n), i.childLanes = ys(e, r, n), t.memoizedState = pb, t = ss(null, i)) : (aa(t), t.child = e.child, t.flags |= 128, t = null);
					else if (na(t), Or(), n & 536870912 && al(t), cd(d)) {
						if (r = d.nextSibling && d.nextSibling.dataset, r) {
							c = r.dgst;
							var f = r.msg;
							l = r.stck;
							var p = r.cstck;
						}
						a = f, r = c, i = l, d = p, c = a, l = d, c = Error(c || "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."), c.stack = i || "", c.digest = r, r = l === void 0 ? null : l, i = {
							value: c,
							source: null,
							stack: r
						}, typeof r == "string" && Ig.set(c, i), Ir(i), t = Cs(e, t, n);
					} else if (ab || Ur(e, t, n, !1), r = (n & e.childLanes) !== 0, ab || r) {
						if (r = Ub, r !== null && (i = Le(r, n), i !== 0 && i !== u.retryLane)) throw u.retryLane = i, rr(e, i), Kc(r, e, i), ib;
						sd(d) || ol(), t = Cs(e, t, n);
					} else sd(d) ? (t.flags |= 192, t.child = e.child, t = null) : (e = u.treeContext, qg = ud(d.nextSibling), Kg = t, Jg = !0, Zg = null, Yg = !1, Xg = null, Qg = !1, e !== null && Tr(t, e), t = xs(t, i.children), t.flags |= 4096);
					return t;
				}
			}
			return a ? (aa(t), c = i.fallback, l = t.mode, p = e.child, d = p.sibling, i = fr(p, {
				mode: "hidden",
				children: i.children
			}), i.subtreeFlags = p.subtreeFlags & 65011712, d === null ? (c = hr(c, l, n, null), c.flags |= 2) : c = fr(d, c), c.return = t, i.return = t, i.sibling = c, t.child = i, ss(null, i), i = t.child, c = e.child.memoizedState, c === null ? c = vs(n) : (l = c.cachePool, l === null ? l = Si() : (p = l_._currentValue, l = l.parent === p ? l : {
				parent: p,
				pool: p
			}), c = {
				baseLanes: c.baseLanes | n,
				cachePool: l
			}), i.memoizedState = c, i.childLanes = ys(e, r, n), t.memoizedState = pb, ss(e.child, i)) : (u !== null && (n & 62914560) === n && (n & e.lanes) !== 0 && al(t), na(t), n = e.child, e = n.sibling, n = fr(n, {
				mode: "visible",
				children: i.children
			}), n.return = t, n.sibling = null, e !== null && (r = t.deletions, r === null ? (t.deletions = [e], t.flags |= 16) : r.push(e)), t.child = n, t.memoizedState = null, n);
		}
		function xs(e, t) {
			return t = Ss({
				mode: "visible",
				children: t
			}, e.mode), t.return = e, e.child = t;
		}
		function Ss(e, t) {
			return e = m(22, e, null, t), e.lanes = 0, e;
		}
		function Cs(e, t, n) {
			return Jv(t, e.child, null, n), e = xs(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
		}
		function ws(e, t, n) {
			e.lanes |= t;
			var r = e.alternate;
			r !== null && (r.lanes |= t), Vr(e.return, t, n);
		}
		function Ts(e, t, n, r, i, a) {
			var o = e.memoizedState;
			o === null ? e.memoizedState = {
				isBackwards: t,
				rendering: null,
				renderingStartTime: 0,
				last: r,
				tail: n,
				tailMode: i,
				treeForkCount: a
			} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
		}
		function Es(e, t, n) {
			var r = t.pendingProps, i = r.revealOrder, a = r.tail, o = r.children, s = uy.current;
			if ((r = (s & ly) !== 0) ? (s = s & cy | ly, t.flags |= 128) : s &= cy, k(uy, s, t), s = i ?? "null", i !== "forwards" && i !== "unstable_legacy-backwards" && i !== "together" && i !== "independent" && !db[s]) if (db[s] = !0, i == null) console.error("The default for the <SuspenseList revealOrder=\"...\"> prop is changing. To be future compatible you must explictly specify either \"independent\" (the current default), \"together\", \"forwards\" or \"legacy_unstable-backwards\".");
			else if (i === "backwards") console.error("The rendering order of <SuspenseList revealOrder=\"backwards\"> is changing. To be future compatible you must specify revealOrder=\"legacy_unstable-backwards\" instead.");
			else if (typeof i == "string") switch (i.toLowerCase()) {
				case "together":
				case "forwards":
				case "backwards":
				case "independent":
					console.error("\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead.", i, i.toLowerCase());
					break;
				case "forward":
				case "backward":
					console.error("\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead.", i, i.toLowerCase());
					break;
				default: console.error("\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?", i);
			}
			else console.error("%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?", i);
			s = a ?? "null", fb[s] || (a == null ? (i === "forwards" || i === "backwards" || i === "unstable_legacy-backwards") && (fb[s] = !0, console.error("The default for the <SuspenseList tail=\"...\"> prop is changing. To be future compatible you must explictly specify either \"visible\" (the current default), \"collapsed\" or \"hidden\".")) : a !== "visible" && a !== "collapsed" && a !== "hidden" ? (fb[s] = !0, console.error("\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"visible\", \"collapsed\" or \"hidden\"?", a)) : i !== "forwards" && i !== "backwards" && i !== "unstable_legacy-backwards" && (fb[s] = !0, console.error("<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?", a)));
			a: if ((i === "forwards" || i === "backwards" || i === "unstable_legacy-backwards") && o != null && !1 !== o) if (Vf(o)) {
				for (s = 0; s < o.length; s++) if (!Vi(o[s], s)) break a;
			} else if (s = w(o), typeof s == "function") {
				if (s = s.call(o)) for (var c = s.next(), l = 0; !c.done; c = s.next()) {
					if (!Vi(c.value, l)) break a;
					l++;
				}
			} else console.error("A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?", i);
			if (ns(e, t, o, n), Jg ? (Er(), o = Bg) : o = 0, !r && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
				if (e.tag === 13) e.memoizedState !== null && ws(e, n, t);
				else if (e.tag === 19) ws(e, n, t);
				else if (e.child !== null) {
					e.child.return = e, e = e.child;
					continue;
				}
				if (e === t) break a;
				for (; e.sibling === null;) {
					if (e.return === null || e.return === t) break a;
					e = e.return;
				}
				e.sibling.return = e.return, e = e.sibling;
			}
			switch (i) {
				case "forwards":
					for (n = t.child, i = null; n !== null;) e = n.alternate, e !== null && sa(e) === null && (i = n), n = n.sibling;
					n = i, n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), Ts(t, !1, i, n, a, o);
					break;
				case "backwards":
				case "unstable_legacy-backwards":
					for (n = null, i = t.child, t.child = null; i !== null;) {
						if (e = i.alternate, e !== null && sa(e) === null) {
							t.child = i;
							break;
						}
						e = i.sibling, i.sibling = n, n = i, i = e;
					}
					Ts(t, !0, n, null, a, o);
					break;
				case "together":
					Ts(t, !1, null, null, void 0, o);
					break;
				default: t.memoizedState = null;
			}
			return t.child;
		}
		function Ds(e, t, n) {
			if (e !== null && (t.dependencies = e.dependencies), v_ = -1, lx |= t.lanes, (n & t.childLanes) === 0) if (e !== null) {
				if (Ur(e, t, n, !1), (n & t.childLanes) === 0) return null;
			} else return null;
			if (e !== null && t.child !== e.child) throw Error("Resuming work not yet implemented.");
			if (t.child !== null) {
				for (e = t.child, n = fr(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = fr(e, e.pendingProps), n.return = t;
				n.sibling = null;
			}
			return t.child;
		}
		function Os(e, t) {
			return (e.lanes & t) === 0 ? (e = e.dependencies, !!(e !== null && Wr(e))) : !0;
		}
		function ks(e, t, n) {
			switch (t.tag) {
				case 3:
					ie(t, t.stateNode.containerInfo), zr(t, l_, e.memoizedState.cache), Pr();
					break;
				case 27:
				case 5:
					oe(t);
					break;
				case 4:
					ie(t, t.stateNode.containerInfo);
					break;
				case 10:
					zr(t, t.type, t.memoizedProps.value);
					break;
				case 12:
					(n & t.childLanes) !== 0 && (t.flags |= 4), t.flags |= 2048;
					var r = t.stateNode;
					r.effectDuration = -0, r.passiveEffectDuration = -0;
					break;
				case 31:
					if (t.memoizedState !== null) return t.flags |= 128, ra(t), null;
					break;
				case 13:
					if (r = t.memoizedState, r !== null) return r.dehydrated === null ? (n & t.child.childLanes) === 0 ? (na(t), e = Ds(e, t, n), e === null ? null : e.sibling) : bs(e, t, n) : (na(t), t.flags |= 128, null);
					na(t);
					break;
				case 19:
					var i = (e.flags & 128) != 0;
					if (r = (n & t.childLanes) !== 0, r ||= (Ur(e, t, n, !1), (n & t.childLanes) !== 0), i) {
						if (r) return Es(e, t, n);
						t.flags |= 128;
					}
					if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), k(uy, uy.current, t), r) break;
					return null;
				case 22: return t.lanes = 0, os(e, t, n, t.pendingProps);
				case 24: zr(t, l_, e.memoizedState.cache);
			}
			return Ds(e, t, n);
		}
		function As(e, t, n) {
			if (t._debugNeedsRemount && e !== null) {
				n = mr(t.type, t.key, t.pendingProps, t._debugOwner || null, t.mode, t.lanes), n._debugStack = t._debugStack, n._debugTask = t._debugTask;
				var r = t.return;
				if (r === null) throw Error("Cannot swap the root fiber.");
				if (e.alternate = null, t.alternate = null, n.index = t.index, n.sibling = t.sibling, n.return = t.return, n.ref = t.ref, n._debugInfo = t._debugInfo, t === r.child) r.child = n;
				else {
					var i = r.child;
					if (i === null) throw Error("Expected parent to have a child.");
					for (; i.sibling !== t;) if (i = i.sibling, i === null) throw Error("Expected to find the previous sibling.");
					i.sibling = n;
				}
				return t = r.deletions, t === null ? (r.deletions = [e], r.flags |= 16) : t.push(e), n.flags |= 2, n;
			}
			if (e !== null) if (e.memoizedProps !== t.pendingProps || t.type !== e.type) ab = !0;
			else {
				if (!Os(e, n) && !(t.flags & 128)) return ab = !1, ks(e, t, n);
				ab = !!(e.flags & 131072);
			}
			else ab = !1, (r = Jg) && (Er(), r = (t.flags & 1048576) != 0), r && (r = t.index, Er(), xr(t, Bg, r));
			switch (t.lanes = 0, t.tag) {
				case 16:
					a: if (r = t.pendingProps, e = Ei(t.elementType), t.type = e, typeof e == "function") dr(e) ? (r = Ko(e, r), t.tag = 1, t.type = e = or(e), t = hs(null, t, e, r, n)) : (t.tag = 0, _s(t, e), t.type = e = or(e), t = ps(null, t, e, r, n));
					else {
						if (e != null) {
							if (i = e.$$typeof, i === Mf) {
								t.tag = 11, t.type = e = sr(e), t = rs(null, t, e, r, n);
								break a;
							} else if (i === Ff) {
								t.tag = 14, t = is(null, t, e, r, n);
								break a;
							}
						}
						throw t = "", typeof e == "object" && e && e.$$typeof === If && (t = " Did you wrap a component in React.lazy() more than once?"), n = T(e) || e, Error("Element type is invalid. Received a promise that resolves to: " + n + ". Lazy element type must resolve to a class or function." + t);
					}
					return t;
				case 0: return ps(e, t, t.type, t.pendingProps, n);
				case 1: return r = t.type, i = Ko(r, t.pendingProps), hs(e, t, r, i, n);
				case 3:
					a: {
						if (ie(t, t.stateNode.containerInfo), e === null) throw Error("Should have a current fiber. This is a bug in React.");
						r = t.pendingProps;
						var a = t.memoizedState;
						i = a.element, Ui(e, t), Yi(t, r, null, n);
						var o = t.memoizedState;
						if (r = o.cache, zr(t, l_, r), r !== a.cache && Hr(t, [l_], n, !0), Ji(), r = o.element, a.isDehydrated) if (a = {
							element: r,
							isDehydrated: !1,
							cache: o.cache
						}, t.updateQueue.baseState = a, t.memoizedState = a, t.flags & 256) {
							t = gs(e, t, r, n);
							break a;
						} else if (r !== i) {
							i = yr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."), t), Ir(i), t = gs(e, t, r, n);
							break a;
						} else {
							switch (e = t.stateNode.containerInfo, e.nodeType) {
								case 9:
									e = e.body;
									break;
								default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
							}
							for (qg = ud(e.firstChild), Kg = t, Jg = !0, Zg = null, Yg = !1, Xg = null, Qg = !0, n = Yv(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 4096, n = n.sibling;
						}
						else {
							if (Pr(), r === i) {
								t = Ds(e, t, n);
								break a;
							}
							ns(e, t, r, n);
						}
						t = t.child;
					}
					return t;
				case 26: return fs(e, t), e === null ? (n = Cd(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : Jg || (n = t.type, e = t.pendingProps, r = A(Yf.current), r = Mu(r).createElement(n), r[Bp] = t, r[Vp] = e, vu(r, n, e), Ye(r), t.stateNode = r) : t.memoizedState = Cd(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
				case 27: return oe(t), e === null && Jg && (r = A(Yf.current), i = ae(), r = t.stateNode = vd(t.type, t.pendingProps, r, i, !1), Yg || (i = Ou(r, t.type, t.pendingProps, i), i !== null && (Dr(t, 0).serverProps = i)), Kg = t, Qg = !0, i = qg, Ku(t.type) ? (rC = i, qg = ud(r.firstChild)) : qg = i), ns(e, t, t.pendingProps.children, n), fs(e, t), e === null && (t.flags |= 4194304), t.child;
				case 5: return e === null && Jg && (a = ae(), r = Rt(t.type, a.ancestorInfo), i = qg, (o = !i) || (o = id(i, t.type, t.pendingProps, Qg), o === null ? a = !1 : (t.stateNode = o, Yg || (a = Ou(o, t.type, t.pendingProps, a), a !== null && (Dr(t, 0).serverProps = a)), Kg = t, qg = ud(o.firstChild), Qg = !1, a = !0), o = !a), o && (r && kr(t, i), Ar(t))), oe(t), i = t.type, a = t.pendingProps, o = e === null ? null : e.memoizedProps, r = a.children, Fu(i, a) ? r = null : o !== null && Fu(i, o) && (t.flags |= 32), t.memoizedState !== null && (i = pa(e, t, ga, null, null, n), xC._currentValue = i), fs(e, t), ns(e, t, r, n), t.child;
				case 6: return e === null && Jg && (n = t.pendingProps, e = ae(), r = e.ancestorInfo.current, n = r == null ? !0 : zt(n, r.tag, e.ancestorInfo.implicitRootScope), e = qg, (r = !e) || (r = ad(e, t.pendingProps, Qg), r === null ? r = !1 : (t.stateNode = r, Kg = t, qg = null, r = !0), r = !r), r && (n && kr(t, e), Ar(t))), null;
				case 13: return bs(e, t, n);
				case 4: return ie(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = Jv(t, null, r, n) : ns(e, t, r, n), t.child;
				case 11: return rs(e, t, t.type, t.pendingProps, n);
				case 7: return ns(e, t, t.pendingProps, n), t.child;
				case 8: return ns(e, t, t.pendingProps.children, n), t.child;
				case 12: return t.flags |= 4, t.flags |= 2048, r = t.stateNode, r.effectDuration = -0, r.passiveEffectDuration = -0, ns(e, t, t.pendingProps.children, n), t.child;
				case 10: return r = t.type, i = t.pendingProps, a = i.value, "value" in i || mb || (mb = !0, console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")), zr(t, r, a), ns(e, t, i.children, n), t.child;
				case 9: return i = t.type._context, r = t.pendingProps.children, typeof r != "function" && console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."), Gr(t), i = Kr(i), r = _v(r, i, void 0), t.flags |= 1, ns(e, t, r, n), t.child;
				case 14: return is(e, t, t.type, t.pendingProps, n);
				case 15: return as(e, t, t.type, t.pendingProps, n);
				case 19: return Es(e, t, n);
				case 31: return ds(e, t, n);
				case 22: return os(e, t, n, t.pendingProps);
				case 24: return Gr(t), r = Kr(l_), e === null ? (i = bi(), i === null && (i = Ub, a = Yr(), i.pooledCache = a, Xr(a), a !== null && (i.pooledCacheLanes |= n), i = a), t.memoizedState = {
					parent: r,
					cache: i
				}, Hi(t), zr(t, l_, i)) : ((e.lanes & n) !== 0 && (Ui(e, t), Yi(t, null, null, n), Ji()), i = e.memoizedState, a = t.memoizedState, i.parent === r ? (r = a.cache, zr(t, l_, r), r !== i.cache && Hr(t, [l_], n, !0)) : (i = {
					parent: r,
					cache: r
				}, t.memoizedState = i, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = i), zr(t, l_, r))), ns(e, t, t.pendingProps.children, n), t.child;
				case 29: throw t.pendingProps;
			}
			throw Error("Unknown unit of work tag (" + t.tag + "). This error is likely caused by a bug in React. Please file an issue.");
		}
		function js(e) {
			e.flags |= 4;
		}
		function Ms(e, t, n, r, i) {
			if ((t = (e.mode & Ng) !== Q) && (t = !1), t) {
				if (e.flags |= 16777216, (i & 335544128) === i) if (e.stateNode.complete) e.flags |= 8192;
				else if (nl()) e.flags |= 8192;
				else throw Rv = Lv, Fv;
			} else e.flags &= -16777217;
		}
		function Ns(e, t) {
			if (t.type !== "stylesheet" || (t.state.loading & cC) !== iC) e.flags &= -16777217;
			else if (e.flags |= 16777216, !Rd(t)) if (nl()) e.flags |= 8192;
			else throw Rv = Lv, Fv;
		}
		function Ps(e, t) {
			t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : Me(), e.lanes |= t, px |= t);
		}
		function Fs(e, t) {
			if (!Jg) switch (e.tailMode) {
				case "hidden":
					t = e.tail;
					for (var n = null; t !== null;) t.alternate !== null && (n = t), t = t.sibling;
					n === null ? e.tail = null : n.sibling = null;
					break;
				case "collapsed":
					n = e.tail;
					for (var r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
					r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null;
			}
		}
		function Is(e) {
			var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
			if (t) if ((e.mode & Ag) !== Q) {
				for (var i = e.selfBaseDuration, a = e.child; a !== null;) n |= a.lanes | a.childLanes, r |= a.subtreeFlags & 65011712, r |= a.flags & 65011712, i += a.treeBaseDuration, a = a.sibling;
				e.treeBaseDuration = i;
			} else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 65011712, r |= i.flags & 65011712, i.return = e, i = i.sibling;
			else if ((e.mode & Ag) !== Q) {
				i = e.actualDuration, a = e.selfBaseDuration;
				for (var o = e.child; o !== null;) n |= o.lanes | o.childLanes, r |= o.subtreeFlags, r |= o.flags, i += o.actualDuration, a += o.treeBaseDuration, o = o.sibling;
				e.actualDuration = i, e.treeBaseDuration = a;
			} else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
			return e.subtreeFlags |= r, e.childLanes = n, t;
		}
		function Ls(e, t, n) {
			var r = t.pendingProps;
			switch (Cr(t), t.tag) {
				case 16:
				case 15:
				case 0:
				case 11:
				case 7:
				case 8:
				case 12:
				case 9:
				case 14: return Is(t), null;
				case 1: return Is(t), null;
				case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), Br(l_, t), j(t), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (Nr(t) ? (Lr(), js(t)) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Fr())), Is(t), null;
				case 26:
					var i = t.type, a = t.memoizedState;
					return e === null ? (js(t), a === null ? (Is(t), Ms(t, i, null, r, n)) : (Is(t), Ns(t, a))) : a ? a === e.memoizedState ? (Is(t), t.flags &= -16777217) : (js(t), Is(t), Ns(t, a)) : (e = e.memoizedProps, e !== r && js(t), Is(t), Ms(t, i, e, r, n)), null;
				case 27:
					if (se(t), n = A(Yf.current), i = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && js(t);
					else {
						if (!r) {
							if (t.stateNode === null) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
							return Is(t), null;
						}
						e = ae(), Nr(t) ? jr(t, e) : (e = vd(i, r, n, e, !0), t.stateNode = e, js(t));
					}
					return Is(t), null;
				case 5:
					if (se(t), i = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && js(t);
					else {
						if (!r) {
							if (t.stateNode === null) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
							return Is(t), null;
						}
						var o = ae();
						if (Nr(t)) jr(t, o);
						else {
							switch (a = A(Yf.current), Rt(i, o.ancestorInfo), o = o.context, a = Mu(a), o) {
								case GS:
									a = a.createElementNS(Om, i);
									break;
								case KS:
									a = a.createElementNS(Dm, i);
									break;
								default: switch (i) {
									case "svg":
										a = a.createElementNS(Om, i);
										break;
									case "math":
										a = a.createElementNS(Dm, i);
										break;
									case "script":
										a = a.createElement("div"), a.innerHTML = "<script><\/script>", a = a.removeChild(a.firstChild);
										break;
									case "select":
										a = typeof r.is == "string" ? a.createElement("select", { is: r.is }) : a.createElement("select"), r.multiple ? a.multiple = !0 : r.size && (a.size = r.size);
										break;
									default: a = typeof r.is == "string" ? a.createElement(i, { is: r.is }) : a.createElement(i), i.indexOf("-") === -1 && (i !== i.toLowerCase() && console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", i), Object.prototype.toString.call(a) !== "[object HTMLUnknownElement]" || dp.call(YS, i) || (YS[i] = !0, console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", i)));
								}
							}
							a[Bp] = t, a[Vp] = r;
							a: for (o = t.child; o !== null;) {
								if (o.tag === 5 || o.tag === 6) a.appendChild(o.stateNode);
								else if (o.tag !== 4 && o.tag !== 27 && o.child !== null) {
									o.child.return = o, o = o.child;
									continue;
								}
								if (o === t) break a;
								for (; o.sibling === null;) {
									if (o.return === null || o.return === t) break a;
									o = o.return;
								}
								o.sibling.return = o.return, o = o.sibling;
							}
							t.stateNode = a;
							a: switch (vu(a, i, r), i) {
								case "button":
								case "input":
								case "select":
								case "textarea":
									r = !!r.autoFocus;
									break a;
								case "img":
									r = !0;
									break a;
								default: r = !1;
							}
							r && js(t);
						}
					}
					return Is(t), Ms(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
				case 6:
					if (e && t.stateNode != null) e.memoizedProps !== r && js(t);
					else {
						if (typeof r != "string" && t.stateNode === null) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
						if (e = A(Yf.current), n = ae(), Nr(t)) {
							if (e = t.stateNode, n = t.memoizedProps, i = !Yg, r = null, a = Kg, a !== null) switch (a.tag) {
								case 3:
									i && (i = fd(e, n, r), i !== null && (Dr(t, 0).serverProps = i));
									break;
								case 27:
								case 5: r = a.memoizedProps, i && (i = fd(e, n, r), i !== null && (Dr(t, 0).serverProps = i));
							}
							e[Bp] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || hu(e.nodeValue, n)), e || Ar(t, !0);
						} else i = n.ancestorInfo.current, i != null && zt(r, i.tag, n.ancestorInfo.implicitRootScope), e = Mu(e).createTextNode(r), e[Bp] = t, t.stateNode = e;
					}
					return Is(t), null;
				case 31:
					if (n = t.memoizedState, e === null || e.memoizedState !== null) {
						if (r = Nr(t), n !== null) {
							if (e === null) {
								if (!r) throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");
								if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");
								e[Bp] = t, Is(t), (t.mode & Ag) !== Q && n !== null && (e = t.child, e !== null && (t.treeBaseDuration -= e.treeBaseDuration));
							} else Lr(), Pr(), !(t.flags & 128) && (n = t.memoizedState = null), t.flags |= 4, Is(t), (t.mode & Ag) !== Q && n !== null && (e = t.child, e !== null && (t.treeBaseDuration -= e.treeBaseDuration));
							e = !1;
						} else n = Fr(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
						if (!e) return t.flags & 256 ? (oa(t), t) : (oa(t), null);
						if (t.flags & 128) throw Error("Client rendering an Activity suspended it again. This is a bug in React.");
					}
					return Is(t), null;
				case 13:
					if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
						if (i = r, a = Nr(t), i !== null && i.dehydrated !== null) {
							if (e === null) {
								if (!a) throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");
								if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
								a[Bp] = t, Is(t), (t.mode & Ag) !== Q && i !== null && (i = t.child, i !== null && (t.treeBaseDuration -= i.treeBaseDuration));
							} else Lr(), Pr(), !(t.flags & 128) && (i = t.memoizedState = null), t.flags |= 4, Is(t), (t.mode & Ag) !== Q && i !== null && (i = t.child, i !== null && (t.treeBaseDuration -= i.treeBaseDuration));
							i = !1;
						} else i = Fr(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = i), i = !0;
						if (!i) return t.flags & 256 ? (oa(t), t) : (oa(t), null);
					}
					return oa(t), t.flags & 128 ? (t.lanes = n, (t.mode & Ag) !== Q && gi(t), t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, i = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (i = r.alternate.memoizedState.cachePool.pool), a = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (a = r.memoizedState.cachePool.pool), a !== i && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), Ps(t, t.updateQueue), Is(t), (t.mode & Ag) !== Q && n && (e = t.child, e !== null && (t.treeBaseDuration -= e.treeBaseDuration)), null);
				case 4: return j(t), e === null && nu(t.stateNode.containerInfo), Is(t), null;
				case 10: return Br(t.type, t), Is(t), null;
				case 19:
					if (O(uy, t), r = t.memoizedState, r === null) return Is(t), null;
					if (i = (t.flags & 128) != 0, a = r.rendering, a === null) if (i) Fs(r, !1);
					else {
						if (cx !== Fb || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
							if (a = sa(e), a !== null) {
								for (t.flags |= 128, Fs(r, !1), e = a.updateQueue, t.updateQueue = e, Ps(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) pr(n, e), n = n.sibling;
								return k(uy, uy.current & cy | ly, t), Jg && br(t, r.treeForkCount), t.child;
							}
							e = e.sibling;
						}
						r.tail !== null && gp() > bx && (t.flags |= 128, i = !0, Fs(r, !1), t.lanes = 4194304);
					}
					else {
						if (!i) if (e = sa(a), e !== null) {
							if (t.flags |= 128, i = !0, e = e.updateQueue, t.updateQueue = e, Ps(t, e), Fs(r, !0), r.tail === null && r.tailMode === "hidden" && !a.alternate && !Jg) return Is(t), null;
						} else 2 * gp() - r.renderingStartTime > bx && n !== 536870912 && (t.flags |= 128, i = !0, Fs(r, !1), t.lanes = 4194304);
						r.isBackwards ? (a.sibling = t.child, t.child = a) : (e = r.last, e === null ? t.child = a : e.sibling = a, r.last = a);
					}
					return r.tail === null ? (Is(t), null) : (e = r.tail, r.rendering = e, r.tail = e.sibling, r.renderingStartTime = gp(), e.sibling = null, n = uy.current, n = i ? n & cy | ly : n & cy, k(uy, n, t), Jg && br(t, r.treeForkCount), e);
				case 22:
				case 23: return oa(t), ta(t), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (Is(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Is(t), n = t.updateQueue, n !== null && Ps(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && O(av, t), null;
				case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), Br(l_, t), Is(t), null;
				case 25: return null;
				case 30: return null;
			}
			throw Error("Unknown unit of work tag (" + t.tag + "). This error is likely caused by a bug in React. Please file an issue.");
		}
		function Rs(e, t) {
			switch (Cr(t), t.tag) {
				case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, (t.mode & Ag) !== Q && gi(t), t) : null;
				case 3: return Br(l_, t), j(t), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
				case 26:
				case 27:
				case 5: return se(t), null;
				case 31:
					if (t.memoizedState !== null) {
						if (oa(t), t.alternate === null) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");
						Pr();
					}
					return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, (t.mode & Ag) !== Q && gi(t), t) : null;
				case 13:
					if (oa(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
						if (t.alternate === null) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");
						Pr();
					}
					return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, (t.mode & Ag) !== Q && gi(t), t) : null;
				case 19: return O(uy, t), null;
				case 4: return j(t), null;
				case 10: return Br(t.type, t), null;
				case 22:
				case 23: return oa(t), ta(t), e !== null && O(av, t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, (t.mode & Ag) !== Q && gi(t), t) : null;
				case 24: return Br(l_, t), null;
				case 25: return null;
				default: return null;
			}
		}
		function zs(e, t) {
			switch (Cr(t), t.tag) {
				case 3:
					Br(l_, t), j(t);
					break;
				case 26:
				case 27:
				case 5:
					se(t);
					break;
				case 4:
					j(t);
					break;
				case 31:
					t.memoizedState !== null && oa(t);
					break;
				case 13:
					oa(t);
					break;
				case 19:
					O(uy, t);
					break;
				case 10:
					Br(t.type, t);
					break;
				case 22:
				case 23:
					oa(t), ta(t), e !== null && O(av, t);
					break;
				case 24: Br(l_, t);
			}
		}
		function Bs(e) {
			return (e.mode & Ag) !== Q;
		}
		function Vs(e, t) {
			Bs(e) ? (hi(), Us(t, e), pi()) : Us(t, e);
		}
		function Hs(e, t, n) {
			Bs(e) ? (hi(), Ws(n, e, t), pi()) : Ws(n, e, t);
		}
		function Us(e, t) {
			try {
				var n = t.updateQueue, r = n === null ? null : n.lastEffect;
				if (r !== null) {
					var i = r.next;
					n = i;
					do {
						if ((n.tag & e) === e && (r = void 0, (e & py) !== dy && (eS = !0), r = M(t, kv, n), (e & py) !== dy && (eS = !1), r !== void 0 && typeof r != "function")) {
							var a = void 0;
							a = (n.tag & my) === 0 ? (n.tag & py) === 0 ? "useEffect" : "useInsertionEffect" : "useLayoutEffect";
							var o = void 0;
							o = r === null ? " You returned null. If your effect does not require clean up, return undefined (or nothing)." : typeof r.then == "function" ? "\n\nIt looks like you wrote " + a + "(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n" + a + "(() => {\n  async function fetchData() {\n    // You can await here\n    const response = await MyAPI.getData(someId);\n    // ...\n  }\n  fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching" : " You returned: " + r, M(t, function(e, t) {
								console.error("%s must not return anything besides a function, which is used for clean-up.%s", e, t);
							}, a, o);
						}
						n = n.next;
					} while (n !== i);
				}
			} catch (e) {
				El(t, t.return, e);
			}
		}
		function Ws(e, t, n) {
			try {
				var r = t.updateQueue, i = r === null ? null : r.lastEffect;
				if (i !== null) {
					var a = i.next;
					r = a;
					do {
						if ((r.tag & e) === e) {
							var o = r.inst, s = o.destroy;
							s !== void 0 && (o.destroy = void 0, (e & py) !== dy && (eS = !0), i = t, M(i, jv, i, n, s), (e & py) !== dy && (eS = !1));
						}
						r = r.next;
					} while (r !== a);
				}
			} catch (e) {
				El(t, t.return, e);
			}
		}
		function Gs(e, t) {
			Bs(e) ? (hi(), Us(t, e), pi()) : Us(t, e);
		}
		function Ks(e, t, n) {
			Bs(e) ? (hi(), Ws(n, e, t), pi()) : Ws(n, e, t);
		}
		function qs(e) {
			var t = e.updateQueue;
			if (t !== null) {
				var n = e.stateNode;
				e.type.defaultProps || "ref" in e.memoizedProps || ub || (n.props !== e.memoizedProps && console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", D(e) || "instance"), n.state !== e.memoizedState && console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", D(e) || "instance"));
				try {
					M(e, Qi, t, n);
				} catch (t) {
					El(e, e.return, t);
				}
			}
		}
		function Js(e, t, n) {
			return e.getSnapshotBeforeUpdate(t, n);
		}
		function Ys(e, t) {
			var n = t.memoizedProps, r = t.memoizedState;
			t = e.stateNode, e.type.defaultProps || "ref" in e.memoizedProps || ub || (t.props !== e.memoizedProps && console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", D(e) || "instance"), t.state !== e.memoizedState && console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", D(e) || "instance"));
			try {
				var i = Ko(e.type, n), a = M(e, Js, t, i, r);
				n = hb, a !== void 0 || n.has(e.type) || (n.add(e.type), M(e, function() {
					console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", D(e));
				})), t.__reactInternalSnapshotBeforeUpdate = a;
			} catch (t) {
				El(e, e.return, t);
			}
		}
		function Xs(e, t, n) {
			n.props = Ko(e.type, e.memoizedProps), n.state = e.memoizedState, Bs(e) ? (hi(), M(e, Dv, e, t, n), pi()) : M(e, Dv, e, t, n);
		}
		function Zs(e) {
			var t = e.ref;
			if (t !== null) {
				switch (e.tag) {
					case 26:
					case 27:
					case 5:
						var n = e.stateNode;
						break;
					case 30:
						n = e.stateNode;
						break;
					default: n = e.stateNode;
				}
				if (typeof t == "function") if (Bs(e)) try {
					hi(), e.refCleanup = t(n);
				} finally {
					pi();
				}
				else e.refCleanup = t(n);
				else typeof t == "string" ? console.error("String refs are no longer supported.") : t.hasOwnProperty("current") || console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", D(e)), t.current = n;
			}
		}
		function Qs(e, t) {
			try {
				M(e, Zs, e);
			} catch (n) {
				El(e, t, n);
			}
		}
		function $s(e, t) {
			var n = e.ref, r = e.refCleanup;
			if (n !== null) if (typeof r == "function") try {
				if (Bs(e)) try {
					hi(), M(e, r);
				} finally {
					pi(e);
				}
				else M(e, r);
			} catch (n) {
				El(e, t, n);
			} finally {
				e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
			}
			else if (typeof n == "function") try {
				if (Bs(e)) try {
					hi(), M(e, n, null);
				} finally {
					pi(e);
				}
				else M(e, n, null);
			} catch (n) {
				El(e, t, n);
			}
			else n.current = null;
		}
		function ec(e, t, n, r) {
			var i = e.memoizedProps, a = i.id, o = i.onCommit;
			i = i.onRender, t = t === null ? "mount" : "update", Q_ && (t = "nested-update"), typeof i == "function" && i(a, t, e.actualDuration, e.treeBaseDuration, e.actualStartTime, n), typeof o == "function" && o(a, t, r, n);
		}
		function tc(e, t, n, r) {
			var i = e.memoizedProps;
			e = i.id, i = i.onPostCommit, t = t === null ? "mount" : "update", Q_ && (t = "nested-update"), typeof i == "function" && i(e, t, r, n);
		}
		function nc(e) {
			var t = e.type, n = e.memoizedProps, r = e.stateNode;
			try {
				M(e, Bu, r, t, n, e);
			} catch (t) {
				El(e, e.return, t);
			}
		}
		function rc(e, t, n) {
			try {
				M(e, Hu, e.stateNode, e.type, n, t, e);
			} catch (t) {
				El(e, e.return, t);
			}
		}
		function ic(e) {
			return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Ku(e.type) || e.tag === 4;
		}
		function ac(e) {
			a: for (;;) {
				for (; e.sibling === null;) {
					if (e.return === null || ic(e.return)) return null;
					e = e.return;
				}
				for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
					if (e.tag === 27 && Ku(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
					e.child.return = e, e = e.child;
				}
				if (!(e.flags & 2)) return e.stateNode;
			}
		}
		function oc(e, t, n) {
			var r = e.tag;
			if (r === 5 || r === 6) e = e.stateNode, t ? (Gu(n), (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(e, t)) : (Gu(n), t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(e), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = Zt));
			else if (r !== 4 && (r === 27 && Ku(e.type) && (n = e.stateNode, t = null), e = e.child, e !== null)) for (oc(e, t, n), e = e.sibling; e !== null;) oc(e, t, n), e = e.sibling;
		}
		function sc(e, t, n) {
			var r = e.tag;
			if (r === 5 || r === 6) e = e.stateNode, t ? n.insertBefore(e, t) : n.appendChild(e);
			else if (r !== 4 && (r === 27 && Ku(e.type) && (n = e.stateNode), e = e.child, e !== null)) for (sc(e, t, n), e = e.sibling; e !== null;) sc(e, t, n), e = e.sibling;
		}
		function cc(e) {
			for (var t, n = e.return; n !== null;) {
				if (ic(n)) {
					t = n;
					break;
				}
				n = n.return;
			}
			if (t == null) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
			switch (t.tag) {
				case 27:
					t = t.stateNode, n = ac(e), sc(e, n, t);
					break;
				case 5:
					n = t.stateNode, t.flags & 32 && (Uu(n), t.flags &= -33), t = ac(e), sc(e, t, n);
					break;
				case 3:
				case 4:
					t = t.stateNode.containerInfo, n = ac(e), oc(e, n, t);
					break;
				default: throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.");
			}
		}
		function lc(e) {
			var t = e.stateNode, n = e.memoizedProps;
			try {
				M(e, yd, e.type, n, t, e);
			} catch (t) {
				El(e, e.return, t);
			}
		}
		function uc(e, t) {
			return t.tag === 31 ? (t = t.memoizedState, e.memoizedState !== null && t === null) : t.tag === 13 ? (e = e.memoizedState, t = t.memoizedState, e !== null && e.dehydrated !== null && (t === null || t.dehydrated === null)) : t.tag === 3 ? e.memoizedState.isDehydrated && (t.flags & 256) == 0 : !1;
		}
		function dc(e, t) {
			if (e = e.containerInfo, qS = RC, e = An(e), jn(e)) {
				if ("selectionStart" in e) var n = {
					start: e.selectionStart,
					end: e.selectionEnd
				};
				else a: {
					n = (n = e.ownerDocument) && n.defaultView || window;
					var r = n.getSelection && n.getSelection();
					if (r && r.rangeCount !== 0) {
						n = r.anchorNode;
						var i = r.anchorOffset, a = r.focusNode;
						r = r.focusOffset;
						try {
							n.nodeType, a.nodeType;
						} catch {
							n = null;
							break a;
						}
						var o = 0, s = -1, c = -1, l = 0, u = 0, d = e, f = null;
						b: for (;;) {
							for (var p; d !== n || i !== 0 && d.nodeType !== 3 || (s = o + i), d !== a || r !== 0 && d.nodeType !== 3 || (c = o + r), d.nodeType === 3 && (o += d.nodeValue.length), (p = d.firstChild) !== null;) f = d, d = p;
							for (;;) {
								if (d === e) break b;
								if (f === n && ++l === i && (s = o), f === a && ++u === r && (c = o), (p = d.nextSibling) !== null) break;
								d = f, f = d.parentNode;
							}
							d = p;
						}
						n = s === -1 || c === -1 ? null : {
							start: s,
							end: c
						};
					} else n = null;
				}
				n ||= {
					start: 0,
					end: 0
				};
			} else n = null;
			for (JS = {
				focusedElem: e,
				selectionRange: n
			}, RC = !1, bb = t; bb !== null;) if (t = bb, e = t.child, t.subtreeFlags & 1028 && e !== null) e.return = t, bb = e;
			else for (; bb !== null;) {
				switch (e = t = bb, n = e.alternate, i = e.flags, e.tag) {
					case 0:
						if (i & 4 && (e = e.updateQueue, e = e === null ? null : e.events, e !== null)) for (n = 0; n < e.length; n++) i = e[n], i.ref.impl = i.nextImpl;
						break;
					case 11:
					case 15: break;
					case 1:
						i & 1024 && n !== null && Ys(e, n);
						break;
					case 3:
						if (i & 1024) {
							if (e = e.stateNode.containerInfo, n = e.nodeType, n === 9) rd(e);
							else if (n === 1) switch (e.nodeName) {
								case "HEAD":
								case "HTML":
								case "BODY":
									rd(e);
									break;
								default: e.textContent = "";
							}
						}
						break;
					case 5:
					case 26:
					case 27:
					case 6:
					case 4:
					case 17: break;
					default: if (i & 1024) throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.");
				}
				if (e = t.sibling, e !== null) {
					e.return = t.return, bb = e;
					break;
				}
				bb = t.return;
			}
		}
		function fc(e, t, n) {
			var r = ii(), i = oi(), a = ci(), o = li(), s = n.flags;
			switch (n.tag) {
				case 0:
				case 11:
				case 15:
					wc(e, n), s & 4 && Vs(n, my | fy);
					break;
				case 1:
					if (wc(e, n), s & 4) if (e = n.stateNode, t === null) n.type.defaultProps || "ref" in n.memoizedProps || ub || (e.props !== n.memoizedProps && console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", D(n) || "instance"), e.state !== n.memoizedState && console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", D(n) || "instance")), Bs(n) ? (hi(), M(n, xv, n, e), pi()) : M(n, xv, n, e);
					else {
						var c = Ko(n.type, t.memoizedProps);
						t = t.memoizedState, n.type.defaultProps || "ref" in n.memoizedProps || ub || (e.props !== n.memoizedProps && console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", D(n) || "instance"), e.state !== n.memoizedState && console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", D(n) || "instance")), Bs(n) ? (hi(), M(n, Cv, n, e, c, t, e.__reactInternalSnapshotBeforeUpdate), pi()) : M(n, Cv, n, e, c, t, e.__reactInternalSnapshotBeforeUpdate);
					}
					s & 64 && qs(n), s & 512 && Qs(n, n.return);
					break;
				case 3:
					if (t = ei(), wc(e, n), s & 64 && (s = n.updateQueue, s !== null)) {
						if (c = null, n.child !== null) switch (n.child.tag) {
							case 27:
							case 5:
								c = n.child.stateNode;
								break;
							case 1: c = n.child.stateNode;
						}
						try {
							M(n, Qi, s, c);
						} catch (e) {
							El(n, n.return, e);
						}
					}
					e.effectDuration += ti(t);
					break;
				case 27: t === null && s & 4 && lc(n);
				case 26:
				case 5:
					if (wc(e, n), t === null) {
						if (s & 4) nc(n);
						else if (s & 64) {
							e = n.type, t = n.memoizedProps, c = n.stateNode;
							try {
								M(n, Vu, c, e, t, n);
							} catch (e) {
								El(n, n.return, e);
							}
						}
					}
					s & 512 && Qs(n, n.return);
					break;
				case 12:
					if (s & 4) {
						s = ei(), wc(e, n), e = n.stateNode, e.effectDuration += ni(s);
						try {
							M(n, ec, n, t, h_, e.effectDuration);
						} catch (e) {
							El(n, n.return, e);
						}
					} else wc(e, n);
					break;
				case 31:
					wc(e, n), s & 4 && gc(e, n);
					break;
				case 13:
					wc(e, n), s & 4 && _c(e, n), s & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (s = Al.bind(null, n), ld(e, s))));
					break;
				case 22:
					if (s = n.memoizedState !== null || gb, !s) {
						t = t !== null && t.memoizedState !== null || _b, c = gb;
						var l = _b;
						gb = s, (_b = t) && !l ? (Oc(e, n, (n.subtreeFlags & 8772) != 0), (n.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && .05 < S_ - x_ && Hn(n, x_, S_)) : wc(e, n), gb = c, _b = l;
					}
					break;
				case 30: break;
				default: wc(e, n);
			}
			(n.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && ((w_ || .05 < b_) && Gn(n, x_, S_, b_, C_), n.alternate === null && n.return !== null && n.return.alternate !== null && .05 < S_ - x_ && (uc(n.return.alternate, n.return) || Vn(n, x_, S_, "Mount"))), ai(r), si(i), C_ = a, w_ = o;
		}
		function pc(e) {
			var t = e.alternate;
			t !== null && (e.alternate = null, pc(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && We(t)), e.stateNode = null, e._debugOwner = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
		}
		function mc(e, t, n) {
			for (n = n.child; n !== null;) hc(e, t, n), n = n.sibling;
		}
		function hc(e, t, n) {
			if (Ep && typeof Ep.onCommitFiberUnmount == "function") try {
				Ep.onCommitFiberUnmount(Tp, n);
			} catch (e) {
				Dp || (Dp = !0, console.error("React instrumentation encountered an error: %o", e));
			}
			var r = ii(), i = oi(), a = ci(), o = li();
			switch (n.tag) {
				case 26:
					_b || $s(n, t), mc(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && (e = n.stateNode, e.parentNode.removeChild(e));
					break;
				case 27:
					_b || $s(n, t);
					var s = Cb, c = wb;
					Ku(n.type) && (Cb = n.stateNode, wb = !1), mc(e, t, n), M(n, bd, n.stateNode), Cb = s, wb = c;
					break;
				case 5: _b || $s(n, t);
				case 6:
					if (s = Cb, c = wb, Cb = null, mc(e, t, n), Cb = s, wb = c, Cb !== null) if (wb) try {
						M(n, Ju, Cb, n.stateNode);
					} catch (e) {
						El(n, t, e);
					}
					else try {
						M(n, qu, Cb, n.stateNode);
					} catch (e) {
						El(n, t, e);
					}
					break;
				case 18:
					Cb !== null && (wb ? (e = Cb, Yu(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), hf(e)) : Yu(Cb, n.stateNode));
					break;
				case 4:
					s = Cb, c = wb, Cb = n.stateNode.containerInfo, wb = !0, mc(e, t, n), Cb = s, wb = c;
					break;
				case 0:
				case 11:
				case 14:
				case 15:
					Ws(py, n, t), _b || Hs(n, t, my), mc(e, t, n);
					break;
				case 1:
					_b || ($s(n, t), s = n.stateNode, typeof s.componentWillUnmount == "function" && Xs(n, t, s)), mc(e, t, n);
					break;
				case 21:
					mc(e, t, n);
					break;
				case 22:
					_b = (s = _b) || n.memoizedState !== null, mc(e, t, n), _b = s;
					break;
				default: mc(e, t, n);
			}
			(n.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && (w_ || .05 < b_) && Gn(n, x_, S_, b_, C_), ai(r), si(i), C_ = a, w_ = o;
		}
		function gc(e, t) {
			if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
				e = e.dehydrated;
				try {
					M(t, gd, e);
				} catch (e) {
					El(t, t.return, e);
				}
			}
		}
		function _c(e, t) {
			if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
				M(t, _d, e);
			} catch (e) {
				El(t, t.return, e);
			}
		}
		function vc(e) {
			switch (e.tag) {
				case 31:
				case 13:
				case 19:
					var t = e.stateNode;
					return t === null && (t = e.stateNode = new yb()), t;
				case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new yb()), t;
				default: throw Error("Unexpected Suspense handler tag (" + e.tag + "). This is a bug in React.");
			}
		}
		function yc(e, t) {
			var n = vc(e);
			t.forEach(function(t) {
				if (!n.has(t)) {
					if (n.add(t), Op) if (xb !== null && Sb !== null) Il(Sb, xb);
					else throw Error("Expected finished root and lanes to be set. This is a bug in React.");
					var r = jl.bind(null, e, t);
					t.then(r, r);
				}
			});
		}
		function bc(e, t) {
			var n = t.deletions;
			if (n !== null) for (var r = 0; r < n.length; r++) {
				var i = e, a = t, o = n[r], s = ii(), c = a;
				a: for (; c !== null;) {
					switch (c.tag) {
						case 27:
							if (Ku(c.type)) {
								Cb = c.stateNode, wb = !1;
								break a;
							}
							break;
						case 5:
							Cb = c.stateNode, wb = !1;
							break a;
						case 3:
						case 4:
							Cb = c.stateNode.containerInfo, wb = !0;
							break a;
					}
					c = c.return;
				}
				if (Cb === null) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
				hc(i, a, o), Cb = null, wb = !1, (o.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && .05 < S_ - x_ && Vn(o, x_, S_, "Unmount"), ai(s), i = o, a = i.alternate, a !== null && (a.return = null), i.return = null;
			}
			if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) xc(t, e), t = t.sibling;
		}
		function xc(e, t) {
			var n = ii(), r = oi(), i = ci(), a = li(), o = e.alternate, s = e.flags;
			switch (e.tag) {
				case 0:
				case 11:
				case 14:
				case 15:
					bc(t, e), Sc(e), s & 4 && (Ws(py | fy, e, e.return), Us(py | fy, e), Hs(e, e.return, my | fy));
					break;
				case 1:
					if (bc(t, e), Sc(e), s & 512 && (_b || o === null || $s(o, o.return)), s & 64 && gb && (s = e.updateQueue, s !== null && (o = s.callbacks, o !== null))) {
						var c = s.shared.hiddenCallbacks;
						s.shared.hiddenCallbacks = c === null ? o : c.concat(o);
					}
					break;
				case 26:
					if (c = Tb, bc(t, e), Sc(e), s & 512 && (_b || o === null || $s(o, o.return)), s & 4) {
						var l = o === null ? null : o.memoizedState;
						if (s = e.memoizedState, o === null) if (s === null) if (e.stateNode === null) {
							a: {
								s = e.type, o = e.memoizedProps, c = c.ownerDocument || c;
								b: switch (s) {
									case "title":
										l = c.getElementsByTagName("title")[0], (!l || l[qp] || l[Bp] || l.namespaceURI === Om || l.hasAttribute("itemprop")) && (l = c.createElement(s), c.head.insertBefore(l, c.querySelector("head > title"))), vu(l, s, o), l[Bp] = e, Ye(l), s = l;
										break a;
									case "link":
										var u = Fd("link", "href", c).get(s + (o.href || ""));
										if (u) {
											for (var d = 0; d < u.length; d++) if (l = u[d], l.getAttribute("href") === (o.href == null || o.href === "" ? null : o.href) && l.getAttribute("rel") === (o.rel == null ? null : o.rel) && l.getAttribute("title") === (o.title == null ? null : o.title) && l.getAttribute("crossorigin") === (o.crossOrigin == null ? null : o.crossOrigin)) {
												u.splice(d, 1);
												break b;
											}
										}
										l = c.createElement(s), vu(l, s, o), c.head.appendChild(l);
										break;
									case "meta":
										if (u = Fd("meta", "content", c).get(s + (o.content || ""))) {
											for (d = 0; d < u.length; d++) if (l = u[d], N(o.content, "content"), l.getAttribute("content") === (o.content == null ? null : "" + o.content) && l.getAttribute("name") === (o.name == null ? null : o.name) && l.getAttribute("property") === (o.property == null ? null : o.property) && l.getAttribute("http-equiv") === (o.httpEquiv == null ? null : o.httpEquiv) && l.getAttribute("charset") === (o.charSet == null ? null : o.charSet)) {
												u.splice(d, 1);
												break b;
											}
										}
										l = c.createElement(s), vu(l, s, o), c.head.appendChild(l);
										break;
									default: throw Error("getNodesForType encountered a type it did not expect: \"" + s + "\". This is a bug in React.");
								}
								l[Bp] = e, Ye(l), s = l;
							}
							e.stateNode = s;
						} else Id(c, e.type, e.stateNode);
						else e.stateNode = jd(c, s, e.memoizedProps);
						else l === s ? s === null && e.stateNode !== null && rc(e, e.memoizedProps, o.memoizedProps) : (l === null ? o.stateNode !== null && (o = o.stateNode, o.parentNode.removeChild(o)) : l.count--, s === null ? Id(c, e.type, e.stateNode) : jd(c, s, e.memoizedProps));
					}
					break;
				case 27:
					bc(t, e), Sc(e), s & 512 && (_b || o === null || $s(o, o.return)), o !== null && s & 4 && rc(e, e.memoizedProps, o.memoizedProps);
					break;
				case 5:
					if (bc(t, e), Sc(e), s & 512 && (_b || o === null || $s(o, o.return)), e.flags & 32) {
						c = e.stateNode;
						try {
							M(e, Uu, c);
						} catch (t) {
							El(e, e.return, t);
						}
					}
					s & 4 && e.stateNode != null && (c = e.memoizedProps, rc(e, c, o === null ? c : o.memoizedProps)), s & 1024 && (vb = !0, e.type !== "form" && console.error("Unexpected host component type. Expected a form. This is a bug in React."));
					break;
				case 6:
					if (bc(t, e), Sc(e), s & 4) {
						if (e.stateNode === null) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
						s = e.memoizedProps, o = o === null ? s : o.memoizedProps, c = e.stateNode;
						try {
							M(e, Wu, c, o, s);
						} catch (t) {
							El(e, e.return, t);
						}
					}
					break;
				case 3:
					if (c = ei(), pC = null, l = Tb, Tb = xd(t.containerInfo), bc(t, e), Tb = l, Sc(e), s & 4 && o !== null && o.memoizedState.isDehydrated) try {
						M(e, hd, t.containerInfo);
					} catch (t) {
						El(e, e.return, t);
					}
					vb && (vb = !1, Cc(e)), t.effectDuration += ti(c);
					break;
				case 4:
					s = Tb, Tb = xd(e.stateNode.containerInfo), bc(t, e), Sc(e), Tb = s;
					break;
				case 12:
					s = ei(), bc(t, e), Sc(e), e.stateNode.effectDuration += ni(s);
					break;
				case 31:
					bc(t, e), Sc(e), s & 4 && (s = e.updateQueue, s !== null && (e.updateQueue = null, yc(e, s)));
					break;
				case 13:
					bc(t, e), Sc(e), e.child.flags & 8192 && e.memoizedState !== null != (o !== null && o.memoizedState !== null) && (_x = gp()), s & 4 && (s = e.updateQueue, s !== null && (e.updateQueue = null, yc(e, s)));
					break;
				case 22:
					c = e.memoizedState !== null;
					var f = o !== null && o.memoizedState !== null, p = gb, m = _b;
					if (gb = p || c, _b = m || f, bc(t, e), _b = m, gb = p, f && !c && !p && !m && (e.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && .05 < S_ - x_ && Hn(e, x_, S_), Sc(e), s & 8192) a: for (t = e.stateNode, t._visibility = c ? t._visibility & ~xg : t._visibility | xg, !c || o === null || f || gb || _b || (Ec(e), (e.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && .05 < S_ - x_ && Vn(e, x_, S_, "Disconnect")), o = null, t = e;;) {
						if (t.tag === 5 || t.tag === 26) {
							if (o === null) {
								f = o = t;
								try {
									l = f.stateNode, c ? M(f, Qu, l) : M(f, td, f.stateNode, f.memoizedProps);
								} catch (e) {
									El(f, f.return, e);
								}
							}
						} else if (t.tag === 6) {
							if (o === null) {
								f = t;
								try {
									u = f.stateNode, c ? M(f, $u, u) : M(f, nd, u, f.memoizedProps);
								} catch (e) {
									El(f, f.return, e);
								}
							}
						} else if (t.tag === 18) {
							if (o === null) {
								f = t;
								try {
									d = f.stateNode, c ? M(f, Zu, d) : M(f, ed, f.stateNode);
								} catch (e) {
									El(f, f.return, e);
								}
							}
						} else if ((t.tag !== 22 && t.tag !== 23 || t.memoizedState === null || t === e) && t.child !== null) {
							t.child.return = t, t = t.child;
							continue;
						}
						if (t === e) break a;
						for (; t.sibling === null;) {
							if (t.return === null || t.return === e) break a;
							o === t && (o = null), t = t.return;
						}
						o === t && (o = null), t.sibling.return = t.return, t = t.sibling;
					}
					s & 4 && (s = e.updateQueue, s !== null && (o = s.retryQueue, o !== null && (s.retryQueue = null, yc(e, o))));
					break;
				case 19:
					bc(t, e), Sc(e), s & 4 && (s = e.updateQueue, s !== null && (e.updateQueue = null, yc(e, s)));
					break;
				case 30: break;
				case 21: break;
				default: bc(t, e), Sc(e);
			}
			(e.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && ((w_ || .05 < b_) && Gn(e, x_, S_, b_, C_), e.alternate === null && e.return !== null && e.return.alternate !== null && .05 < S_ - x_ && (uc(e.return.alternate, e.return) || Vn(e, x_, S_, "Mount"))), ai(n), si(r), C_ = i, w_ = a;
		}
		function Sc(e) {
			var t = e.flags;
			if (t & 2) {
				try {
					M(e, cc, e);
				} catch (t) {
					El(e, e.return, t);
				}
				e.flags &= -3;
			}
			t & 4096 && (e.flags &= -4097);
		}
		function Cc(e) {
			if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
				var t = e;
				Cc(t), t.tag === 5 && t.flags & 1024 && t.stateNode.reset(), e = e.sibling;
			}
		}
		function wc(e, t) {
			if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) fc(e, t.alternate, t), t = t.sibling;
		}
		function Tc(e) {
			var t = ii(), n = oi(), r = ci(), i = li();
			switch (e.tag) {
				case 0:
				case 11:
				case 14:
				case 15:
					Hs(e, e.return, my), Ec(e);
					break;
				case 1:
					$s(e, e.return);
					var a = e.stateNode;
					typeof a.componentWillUnmount == "function" && Xs(e, e.return, a), Ec(e);
					break;
				case 27: M(e, bd, e.stateNode);
				case 26:
				case 5:
					$s(e, e.return), Ec(e);
					break;
				case 22:
					e.memoizedState === null && Ec(e);
					break;
				case 30:
					Ec(e);
					break;
				default: Ec(e);
			}
			(e.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && (w_ || .05 < b_) && Gn(e, x_, S_, b_, C_), ai(t), si(n), C_ = r, w_ = i;
		}
		function Ec(e) {
			for (e = e.child; e !== null;) Tc(e), e = e.sibling;
		}
		function Dc(e, t, n, r) {
			var i = ii(), a = oi(), o = ci(), s = li(), c = n.flags;
			switch (n.tag) {
				case 0:
				case 11:
				case 15:
					Oc(e, n, r), Vs(n, my);
					break;
				case 1:
					if (Oc(e, n, r), t = n.stateNode, typeof t.componentDidMount == "function" && M(n, xv, n, t), t = n.updateQueue, t !== null) {
						e = n.stateNode;
						try {
							M(n, Zi, t, e);
						} catch (e) {
							El(n, n.return, e);
						}
					}
					r && c & 64 && qs(n), Qs(n, n.return);
					break;
				case 27: lc(n);
				case 26:
				case 5:
					Oc(e, n, r), r && t === null && c & 4 && nc(n), Qs(n, n.return);
					break;
				case 12:
					if (r && c & 4) {
						c = ei(), Oc(e, n, r), r = n.stateNode, r.effectDuration += ni(c);
						try {
							M(n, ec, n, t, h_, r.effectDuration);
						} catch (e) {
							El(n, n.return, e);
						}
					} else Oc(e, n, r);
					break;
				case 31:
					Oc(e, n, r), r && c & 4 && gc(e, n);
					break;
				case 13:
					Oc(e, n, r), r && c & 4 && _c(e, n);
					break;
				case 22:
					n.memoizedState === null && Oc(e, n, r), Qs(n, n.return);
					break;
				case 30: break;
				default: Oc(e, n, r);
			}
			(n.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && (w_ || .05 < b_) && Gn(n, x_, S_, b_, C_), ai(i), si(a), C_ = o, w_ = s;
		}
		function Oc(e, t, n) {
			for (n &&= (t.subtreeFlags & 8772) != 0, t = t.child; t !== null;) Dc(e, t.alternate, t, n), t = t.sibling;
		}
		function kc(e, t) {
			var n = null;
			e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && Xr(e), n != null && Zr(n));
		}
		function Ac(e, t) {
			e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (Xr(t), e != null && Zr(e));
		}
		function jc(e, t, n, r, i) {
			if (t.subtreeFlags & 10256 || t.actualDuration !== 0 && (t.alternate === null || t.alternate.child !== t.child)) for (t = t.child; t !== null;) {
				var a = t.sibling;
				Mc(e, t, n, r, a === null ? i : a.actualStartTime), t = a;
			}
		}
		function Mc(e, t, n, r, i) {
			var a = ii(), o = oi(), s = ci(), c = li(), l = hg, u = t.flags;
			switch (t.tag) {
				case 0:
				case 11:
				case 15:
					(t.mode & Ag) !== Q && 0 < t.actualStartTime && t.flags & 1 && Un(t, t.actualStartTime, i, Eb, n), jc(e, t, n, r, i), u & 2048 && Gs(t, hy | fy);
					break;
				case 1:
					(t.mode & Ag) !== Q && 0 < t.actualStartTime && (t.flags & 128 ? Wn(t, t.actualStartTime, i, []) : t.flags & 1 && Un(t, t.actualStartTime, i, Eb, n)), jc(e, t, n, r, i);
					break;
				case 3:
					var d = ei(), f = Eb;
					Eb = t.alternate !== null && t.alternate.memoizedState.isDehydrated && (t.flags & 256) == 0, jc(e, t, n, r, i), Eb = f, u & 2048 && (n = null, t.alternate !== null && (n = t.alternate.memoizedState.cache), r = t.memoizedState.cache, r !== n && (Xr(r), n != null && Zr(n))), e.passiveEffectDuration += ti(d);
					break;
				case 12:
					if (u & 2048) {
						u = ei(), jc(e, t, n, r, i), e = t.stateNode, e.passiveEffectDuration += ni(u);
						try {
							M(t, tc, t, t.alternate, h_, e.passiveEffectDuration);
						} catch (e) {
							El(t, t.return, e);
						}
					} else jc(e, t, n, r, i);
					break;
				case 31:
					u = Eb, d = t.alternate === null ? null : t.alternate.memoizedState, f = t.memoizedState, d !== null && f === null ? (f = t.deletions, f !== null && 0 < f.length && f[0].tag === 18 ? (Eb = !1, d = d.hydrationErrors, d !== null && Wn(t, t.actualStartTime, i, d)) : Eb = !0) : Eb = !1, jc(e, t, n, r, i), Eb = u;
					break;
				case 13:
					u = Eb, d = t.alternate === null ? null : t.alternate.memoizedState, f = t.memoizedState, d === null || d.dehydrated === null || f !== null && f.dehydrated !== null ? Eb = !1 : (f = t.deletions, f !== null && 0 < f.length && f[0].tag === 18 ? (Eb = !1, d = d.hydrationErrors, d !== null && Wn(t, t.actualStartTime, i, d)) : Eb = !0), jc(e, t, n, r, i), Eb = u;
					break;
				case 23: break;
				case 22:
					f = t.stateNode, d = t.alternate, t.memoizedState === null ? f._visibility & Sg ? jc(e, t, n, r, i) : (f._visibility |= Sg, Nc(e, t, n, r, (t.subtreeFlags & 10256) != 0 || t.actualDuration !== 0 && (t.alternate === null || t.alternate.child !== t.child), i), (t.mode & Ag) === Q || Eb || (e = t.actualStartTime, 0 <= e && .05 < i - e && Hn(t, e, i), 0 <= x_ && 0 <= S_ && .05 < S_ - x_ && Hn(t, x_, S_))) : f._visibility & Sg ? jc(e, t, n, r, i) : Fc(e, t, n, r, i), u & 2048 && kc(d, t);
					break;
				case 24:
					jc(e, t, n, r, i), u & 2048 && Ac(t.alternate, t);
					break;
				default: jc(e, t, n, r, i);
			}
			(t.mode & Ag) !== Q && ((e = !Eb && t.alternate === null && t.return !== null && t.return.alternate !== null) && (n = t.actualStartTime, 0 <= n && .05 < i - n && Vn(t, n, i, "Mount")), 0 <= x_ && 0 <= S_ && ((w_ || .05 < b_) && Gn(t, x_, S_, b_, C_), e && .05 < S_ - x_ && Vn(t, x_, S_, "Mount"))), ai(a), si(o), C_ = s, w_ = c, hg = l;
		}
		function Nc(e, t, n, r, i, a) {
			for (i &&= (t.subtreeFlags & 10256) != 0 || t.actualDuration !== 0 && (t.alternate === null || t.alternate.child !== t.child), t = t.child; t !== null;) {
				var o = t.sibling;
				Pc(e, t, n, r, i, o === null ? a : o.actualStartTime), t = o;
			}
		}
		function Pc(e, t, n, r, i, a) {
			var o = ii(), s = oi(), c = ci(), l = li(), u = hg;
			i && (t.mode & Ag) !== Q && 0 < t.actualStartTime && t.flags & 1 && Un(t, t.actualStartTime, a, Eb, n);
			var d = t.flags;
			switch (t.tag) {
				case 0:
				case 11:
				case 15:
					Nc(e, t, n, r, i, a), Gs(t, hy);
					break;
				case 23: break;
				case 22:
					var f = t.stateNode;
					t.memoizedState === null ? (f._visibility |= Sg, Nc(e, t, n, r, i, a)) : f._visibility & Sg ? Nc(e, t, n, r, i, a) : Fc(e, t, n, r, a), i && d & 2048 && kc(t.alternate, t);
					break;
				case 24:
					Nc(e, t, n, r, i, a), i && d & 2048 && Ac(t.alternate, t);
					break;
				default: Nc(e, t, n, r, i, a);
			}
			(t.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && (w_ || .05 < b_) && Gn(t, x_, S_, b_, C_), ai(o), si(s), C_ = c, w_ = l, hg = u;
		}
		function Fc(e, t, n, r, i) {
			if (t.subtreeFlags & 10256 || t.actualDuration !== 0 && (t.alternate === null || t.alternate.child !== t.child)) for (var a = t.child; a !== null;) {
				t = a.sibling;
				var o = e, s = n, c = r, l = t === null ? i : t.actualStartTime, u = hg;
				(a.mode & Ag) !== Q && 0 < a.actualStartTime && a.flags & 1 && Un(a, a.actualStartTime, l, Eb, s);
				var d = a.flags;
				switch (a.tag) {
					case 22:
						Fc(o, a, s, c, l), d & 2048 && kc(a.alternate, a);
						break;
					case 24:
						Fc(o, a, s, c, l), d & 2048 && Ac(a.alternate, a);
						break;
					default: Fc(o, a, s, c, l);
				}
				hg = u, a = t;
			}
		}
		function G(e, t, n) {
			if (e.subtreeFlags & Db) for (e = e.child; e !== null;) Ic(e, t, n), e = e.sibling;
		}
		function Ic(e, t, n) {
			switch (e.tag) {
				case 26:
					G(e, t, n), e.flags & Db && e.memoizedState !== null && zd(n, Tb, e.memoizedState, e.memoizedProps);
					break;
				case 5:
					G(e, t, n);
					break;
				case 3:
				case 4:
					var r = Tb;
					Tb = xd(e.stateNode.containerInfo), G(e, t, n), Tb = r;
					break;
				case 22:
					e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Db, Db = 16777216, G(e, t, n), Db = r) : G(e, t, n));
					break;
				default: G(e, t, n);
			}
		}
		function Lc(e) {
			var t = e.alternate;
			if (t !== null && (e = t.child, e !== null)) {
				t.child = null;
				do
					t = e.sibling, e.sibling = null, e = t;
				while (e !== null);
			}
		}
		function Rc(e) {
			var t = e.deletions;
			if (e.flags & 16) {
				if (t !== null) for (var n = 0; n < t.length; n++) {
					var r = t[n], i = ii();
					bb = r, Hc(r, e), (r.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && .05 < S_ - x_ && Vn(r, x_, S_, "Unmount"), ai(i);
				}
				Lc(e);
			}
			if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) zc(e), e = e.sibling;
		}
		function zc(e) {
			var t = ii(), n = oi(), r = ci(), i = li();
			switch (e.tag) {
				case 0:
				case 11:
				case 15:
					Rc(e), e.flags & 2048 && Ks(e, e.return, hy | fy);
					break;
				case 3:
					var a = ei();
					Rc(e), e.stateNode.passiveEffectDuration += ti(a);
					break;
				case 12:
					a = ei(), Rc(e), e.stateNode.passiveEffectDuration += ni(a);
					break;
				case 22:
					a = e.stateNode, e.memoizedState !== null && a._visibility & Sg && (e.return === null || e.return.tag !== 13) ? (a._visibility &= ~Sg, Bc(e), (e.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && .05 < S_ - x_ && Vn(e, x_, S_, "Disconnect")) : Rc(e);
					break;
				default: Rc(e);
			}
			(e.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && (w_ || .05 < b_) && Gn(e, x_, S_, b_, C_), ai(t), si(n), w_ = i, C_ = r;
		}
		function Bc(e) {
			var t = e.deletions;
			if (e.flags & 16) {
				if (t !== null) for (var n = 0; n < t.length; n++) {
					var r = t[n], i = ii();
					bb = r, Hc(r, e), (r.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && .05 < S_ - x_ && Vn(r, x_, S_, "Unmount"), ai(i);
				}
				Lc(e);
			}
			for (e = e.child; e !== null;) Vc(e), e = e.sibling;
		}
		function Vc(e) {
			var t = ii(), n = oi(), r = ci(), i = li();
			switch (e.tag) {
				case 0:
				case 11:
				case 15:
					Ks(e, e.return, hy), Bc(e);
					break;
				case 22:
					var a = e.stateNode;
					a._visibility & Sg && (a._visibility &= ~Sg, Bc(e));
					break;
				default: Bc(e);
			}
			(e.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && (w_ || .05 < b_) && Gn(e, x_, S_, b_, C_), ai(t), si(n), w_ = i, C_ = r;
		}
		function Hc(e, t) {
			for (; bb !== null;) {
				var n = bb, r = n, i = t, a = ii(), o = oi(), s = ci(), c = li();
				switch (r.tag) {
					case 0:
					case 11:
					case 15:
						Ks(r, i, hy);
						break;
					case 23:
					case 22:
						r.memoizedState !== null && r.memoizedState.cachePool !== null && (i = r.memoizedState.cachePool.pool, i != null && Xr(i));
						break;
					case 24: Zr(r.memoizedState.cache);
				}
				if ((r.mode & Ag) !== Q && 0 <= x_ && 0 <= S_ && (w_ || .05 < b_) && Gn(r, x_, S_, b_, C_), ai(a), si(o), w_ = c, C_ = s, r = n.child, r !== null) r.return = n, bb = r;
				else a: for (n = e; bb !== null;) {
					if (r = bb, a = r.sibling, o = r.return, pc(r), r === n) {
						bb = null;
						break a;
					}
					if (a !== null) {
						a.return = o, bb = a;
						break a;
					}
					bb = o;
				}
			}
		}
		function Uc() {
			Ab.forEach(function(e) {
				return e();
			});
		}
		function Wc() {
			var e = typeof IS_REACT_ACT_ENVIRONMENT < "u" ? IS_REACT_ACT_ENVIRONMENT : void 0;
			return e || q.actQueue === null || console.error("The current testing environment is not configured to support act(...)"), e;
		}
		function K(e) {
			if ((Hb & Nb) !== Mb && Gb !== 0) return Gb & -Gb;
			var t = q.T;
			return t === null ? He() : (t._updatedFibers ||= /* @__PURE__ */ new Set(), t._updatedFibers.add(e), Jl());
		}
		function Gc() {
			if (fx === 0) if (!(Gb & 536870912) || Jg) {
				var e = Np;
				Np <<= 1, !(Np & 3932160) && (Np = 262144), fx = e;
			} else fx = 536870912;
			return e = oy.current, e !== null && (e.flags |= 32), fx;
		}
		function Kc(e, t, n) {
			if (eS && console.error("useInsertionEffect must not schedule updates."), Yx && (Xx = !0), (e === Ub && (nx === Jb || nx === tx) || e.cancelPendingCommit !== null) && (el(e, 0), Xc(e, Gb, fx, !1)), Ne(e, n), (Hb & Nb) !== Mb && e === Ub) {
				if (up) switch (t.tag) {
					case 0:
					case 11:
					case 15:
						e = Wb && D(Wb) || "Unknown", rS.has(e) || (rS.add(e), t = D(t) || "Unknown", console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render", t, e, e));
						break;
					case 1: nS ||= (console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), !0);
				}
			} else Op && ze(e, t, n), Rl(t), e === Ub && ((Hb & Nb) === Mb && (ux |= n), cx === zb && Xc(e, Gb, fx, !1)), zl(e);
		}
		function qc(e, t, n) {
			if ((Hb & (Nb | Pb)) !== Mb) throw Error("Should not already be working.");
			if (Gb !== 0 && Wb !== null) {
				var r = Wb, i = gp();
				switch (X_) {
					case Yb:
					case Jb:
						var a = Z_;
						dg && ((r = r._debugTask) ? r.run(console.timeStamp.bind(console, "Suspended", a, i, fg, void 0, "primary-light")) : console.timeStamp("Suspended", a, i, fg, void 0, "primary-light"));
						break;
					case tx:
						a = Z_, dg && ((r = r._debugTask) ? r.run(console.timeStamp.bind(console, "Action", a, i, fg, void 0, "primary-light")) : console.timeStamp("Action", a, i, fg, void 0, "primary-light"));
						break;
					default: dg && (r = i - Z_, 3 > r || console.timeStamp("Blocked", Z_, i, fg, void 0, 5 > r ? "primary-light" : 10 > r ? "primary" : 100 > r ? "primary-dark" : "error"));
				}
			}
			a = (n = !n && (t & 127) == 0 && (t & e.expiredLanes) === 0 || Ae(e, t)) ? ll(e, t) : sl(e, t, !0);
			var o = n;
			do {
				if (a === Fb) {
					ax && !n && Xc(e, t, 0, !1), t = nx, Z_ = u_(), X_ = t;
					break;
				} else {
					if (r = gp(), i = e.current.alternate, o && !Yc(i)) {
						Bn(t), i = m_, a = r, !dg || a <= i || (Cx ? Cx.run(console.timeStamp.bind(console, "Teared Render", i, a, mg, pg, "error")) : console.timeStamp("Teared Render", i, a, mg, pg, "error")), $c(t, r), a = sl(e, t, !1), o = !1;
						continue;
					}
					if (a === Lb) {
						if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;
						else s = e.pendingLanes & -536870913, s = s === 0 ? s & 536870912 ? 536870912 : 0 : s;
						if (s !== 0) {
							Bn(t), Xn(m_, r, t, Cx), $c(t, r), t = s;
							a: {
								r = e, a = o, o = mx;
								var c = r.current.memoizedState.isDehydrated;
								if (c && (el(r, s).flags |= 256), s = sl(r, s, !1), s !== Lb) {
									if (ox && !c) {
										r.errorRecoveryDisabledLanes |= a, ux |= a, a = zb;
										break a;
									}
									r = hx, hx = o, r !== null && (hx === null ? hx = r : hx.push.apply(hx, r));
								}
								a = s;
							}
							if (o = !1, a !== Lb) continue;
							r = gp();
						}
					}
					if (a === Ib) {
						Bn(t), Xn(m_, r, t, Cx), $c(t, r), el(e, 0), Xc(e, t, 0, !0);
						break;
					}
					a: {
						switch (n = e, a) {
							case Fb:
							case Ib: throw Error("Root did not complete. This is a bug in React.");
							case zb: if ((t & 4194048) !== t) break;
							case Bb:
								Bn(t), qn(m_, r, t, Cx), $c(t, r), i = t, i & 127 ? P_ = r : i & 4194048 && (G_ = r), Xc(n, t, fx, !ix);
								break a;
							case Lb:
								hx = null;
								break;
							case Rb:
							case Vb: break;
							default: throw Error("Unknown root exit status.");
						}
						if (q.actQueue !== null) _l(n, i, t, hx, Sx, gx, fx, ux, px, a, null, null, m_, r);
						else {
							if ((t & 62914560) === t && (o = _x + yx - gp(), 10 < o)) {
								if (Xc(n, t, fx, !ix), ke(n, 0, !0) !== 0) break a;
								Rx = t, n.timeoutHandle = QS(Jc.bind(null, n, i, hx, Sx, gx, t, fx, ux, px, ix, a, "Throttled", m_, r), o);
								break a;
							}
							Jc(n, i, hx, Sx, gx, t, fx, ux, px, ix, a, null, m_, r);
						}
					}
				}
				break;
			} while (1);
			zl(e);
		}
		function Jc(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
			e.timeoutHandle = eC;
			var m = t.subtreeFlags, h = null;
			if ((m & 8192 || (m & 16785408) == 16785408) && (h = {
				stylesheets: null,
				count: 0,
				imgCount: 0,
				imgBytes: 0,
				suspenseyImages: [],
				waitingForImages: !0,
				waitingForViewTransition: !1,
				unsuspend: Zt
			}, Ic(t, a, h), m = (a & 62914560) === a ? _x - gp() : (a & 4194048) === a ? vx - gp() : 0, m = Bd(h, m), m !== null)) {
				Rx = a, e.cancelPendingCommit = m(_l.bind(null, e, t, a, n, r, i, o, s, c, u, h, h.waitingForViewTransition ? "Waiting for the previous Animation" : 0 < h.count ? 0 < h.imgCount ? "Suspended on CSS and Images" : "Suspended on CSS" : h.imgCount === 1 ? "Suspended on an Image" : 0 < h.imgCount ? "Suspended on Images" : null, f, p)), Xc(e, a, o, !l);
				return;
			}
			_l(e, t, a, n, r, i, o, s, c, u, h, d, f, p);
		}
		function Yc(e) {
			for (var t = e;;) {
				var n = t.tag;
				if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
					var i = n[r], a = i.getSnapshot;
					i = i.value;
					try {
						if (!Ph(a(), i)) return !1;
					} catch {
						return !1;
					}
				}
				if (n = t.child, t.subtreeFlags & 16384 && n !== null) n.return = t, t = n;
				else {
					if (t === e) break;
					for (; t.sibling === null;) {
						if (t.return === null || t.return === e) return !0;
						t = t.return;
					}
					t.sibling.return = t.return, t = t.sibling;
				}
			}
			return !0;
		}
		function Xc(e, t, n, r) {
			t &= ~dx, t &= ~ux, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
			for (var i = t; 0 < i;) {
				var a = 31 - kp(i), o = 1 << a;
				r[a] = -1, i &= ~o;
			}
			n !== 0 && Fe(e, n, t);
		}
		function Zc() {
			return (Hb & (Nb | Pb)) === Mb ? (Bl(0, !1), !1) : !0;
		}
		function Qc() {
			if (Wb !== null) {
				if (nx === Kb) var e = Wb.return;
				else e = Wb, Rr(), ya(e), Bv = null, Vv = 0, e = Wb;
				for (; e !== null;) zs(e.alternate, e), e = e.return;
				Wb = null;
			}
		}
		function $c(e, t) {
			e & 127 && (T_ = t), e & 4194048 && (F_ = t), e & 62914560 && (K_ = t), e & 2080374784 && (q_ = t);
		}
		function el(e, t) {
			dg && (console.timeStamp("Blocking Track", .003, .003, "Blocking", pg, "primary-light"), console.timeStamp("Transition Track", .003, .003, "Transition", pg, "primary-light"), console.timeStamp("Suspense Track", .003, .003, "Suspense", pg, "primary-light"), console.timeStamp("Idle Track", .003, .003, "Idle", pg, "primary-light"));
			var n = m_;
			if (m_ = u_(), Gb !== 0 && 0 < n) {
				if (Bn(Gb), cx === Rb || cx === zb) qn(n, m_, t, Cx);
				else {
					var r = m_, i = Cx;
					if (dg && !(r <= n)) {
						var a = (t & 738197653) === t ? "tertiary-dark" : "primary-dark", o = (t & 536870912) === t ? "Prewarm" : (t & 201326741) === t ? "Interrupted Hydration" : "Interrupted Render";
						i ? i.run(console.timeStamp.bind(console, o, n, r, mg, pg, a)) : console.timeStamp(o, n, r, mg, pg, a);
					}
				}
				$c(Gb, m_);
			}
			if (n = Cx, Cx = null, t & 127) {
				Cx = D_, i = 0 <= E_ && E_ < T_ ? T_ : E_, r = 0 <= j_ && j_ < T_ ? T_ : j_, a = 0 <= r ? r : 0 <= i ? i : m_, 0 <= P_ ? (Bn(2), Jn(P_, a, t, n)) : J_ & 127 && (Bn(2), $n(T_, a, Y_)), n = i;
				var s = r, c = M_, l = 0 < N_, u = O_ === f_, d = O_ === p_;
				if (i = m_, r = D_, a = k_, o = A_, dg) {
					if (mg = "Blocking", 0 < n ? n > i && (n = i) : n = i, 0 < s ? s > n && (s = n) : s = n, c !== null && n > s) {
						var f = l ? "secondary-light" : "warning";
						r ? r.run(console.timeStamp.bind(console, l ? "Consecutive" : "Event: " + c, s, n, mg, pg, f)) : console.timeStamp(l ? "Consecutive" : "Event: " + c, s, n, mg, pg, f);
					}
					i > n && (s = u ? "error" : (t & 738197653) === t ? "tertiary-light" : "primary-light", u = d ? "Promise Resolved" : u ? "Cascading Update" : 5 < i - n ? "Update Blocked" : "Update", d = [], o != null && d.push(["Component name", o]), a != null && d.push(["Method name", a]), n = {
						start: n,
						end: i,
						detail: { devtools: {
							properties: d,
							track: mg,
							trackGroup: pg,
							color: s
						} }
					}, r ? r.run(performance.measure.bind(performance, u, n)) : performance.measure(u, n));
				}
				E_ = -1.1, O_ = 0, A_ = k_ = null, P_ = -1.1, N_ = j_, j_ = -1.1, T_ = u_();
			}
			if (t & 4194048 && (Cx = z_, i = 0 <= I_ && I_ < F_ ? F_ : I_, n = 0 <= L_ && L_ < F_ ? F_ : L_, r = 0 <= H_ && H_ < F_ ? F_ : H_, a = 0 <= r ? r : 0 <= n ? n : m_, 0 <= G_ ? (Bn(256), Jn(G_, a, t, Cx)) : J_ & 4194048 && (Bn(256), $n(F_, a, Y_)), d = r, s = U_, c = 0 < W_, l = R_ === p_, a = m_, r = z_, o = B_, u = V_, dg && (mg = "Transition", 0 < n ? n > a && (n = a) : n = a, 0 < i ? i > n && (i = n) : i = n, 0 < d ? d > i && (d = i) : d = i, i > d && s !== null && (f = c ? "secondary-light" : "warning", r ? r.run(console.timeStamp.bind(console, c ? "Consecutive" : "Event: " + s, d, i, mg, pg, f)) : console.timeStamp(c ? "Consecutive" : "Event: " + s, d, i, mg, pg, f)), n > i && (r ? r.run(console.timeStamp.bind(console, "Action", i, n, mg, pg, "primary-dark")) : console.timeStamp("Action", i, n, mg, pg, "primary-dark")), a > n && (i = l ? "Promise Resolved" : 5 < a - n ? "Update Blocked" : "Update", d = [], u != null && d.push(["Component name", u]), o != null && d.push(["Method name", o]), n = {
				start: n,
				end: a,
				detail: { devtools: {
					properties: d,
					track: mg,
					trackGroup: pg,
					color: "primary-light"
				} }
			}, r ? r.run(performance.measure.bind(performance, i, n)) : performance.measure(i, n))), L_ = I_ = -1.1, R_ = 0, G_ = -1.1, W_ = H_, H_ = -1.1, F_ = u_()), t & 62914560 && J_ & 62914560 && (Bn(4194304), $n(K_, m_, Y_)), t & 2080374784 && J_ & 2080374784 && (Bn(268435456), $n(q_, m_, Y_)), n = e.timeoutHandle, n !== eC && (e.timeoutHandle = eC, $S(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Rx = 0, Qc(), Ub = e, Wb = n = fr(e.current, null), Gb = t, nx = Kb, rx = null, ix = !1, ax = Ae(e, t), ox = !1, cx = Fb, px = fx = dx = ux = lx = 0, hx = mx = null, gx = !1, t & 8 && (t |= t & 32), r = e.entangledLanes, r !== 0) for (e = e.entanglements, r &= t; 0 < r;) i = 31 - kp(r), a = 1 << i, t |= e[i], r &= ~a;
			return sx = t, er(), e = eg(), 1e3 < e - Qh && (q.recentlyCreatedOwnerStacks = 0, Qh = e), ov.discardPendingWarnings(), n;
		}
		function tl(e, t) {
			Sy = null, q.H = Iy, q.getCurrentStack = null, up = !1, lp = null, t === Pv || t === Iv ? (t = Di(), nx = Yb) : t === Fv ? (t = Di(), nx = Xb) : nx = t === ib ? ex : typeof t == "object" && t && typeof t.then == "function" ? Qb : qb, rx = t;
			var n = Wb;
			n === null ? (cx = Ib, Xo(e, yr(t, e.current))) : n.mode & Ag && di(n);
		}
		function nl() {
			var e = oy.current;
			return e === null ? !0 : (Gb & 4194048) === Gb ? sy === null : (Gb & 62914560) === Gb || Gb & 536870912 ? e === sy : !1;
		}
		function rl() {
			var e = q.H;
			return q.H = Iy, e === null ? Iy : e;
		}
		function il() {
			var e = q.A;
			return q.A = Ob, e;
		}
		function al(e) {
			Cx === null && (Cx = e._debugTask == null ? null : e._debugTask);
		}
		function ol() {
			cx = zb, ix || (Gb & 4194048) !== Gb && oy.current !== null || (ax = !0), !(lx & 134217727) && !(ux & 134217727) || Ub === null || Xc(Ub, Gb, fx, !1);
		}
		function sl(e, t, n) {
			var r = Hb;
			Hb |= Nb;
			var i = rl(), a = il();
			if (Ub !== e || Gb !== t) {
				if (Op) {
					var o = e.memoizedUpdaters;
					0 < o.size && (Il(e, Gb), o.clear()), Be(e, t);
				}
				Sx = null, el(e, t);
			}
			t = !1, o = cx;
			a: do
				try {
					if (nx !== Kb && Wb !== null) {
						var s = Wb, c = rx;
						switch (nx) {
							case ex:
								Qc(), o = Bb;
								break a;
							case Yb:
							case Jb:
							case tx:
							case Qb:
								oy.current === null && (t = !0);
								var l = nx;
								if (nx = Kb, rx = null, ml(e, s, c, l), n && ax) {
									o = Fb;
									break a;
								}
								break;
							default: l = nx, nx = Kb, rx = null, ml(e, s, c, l);
						}
					}
					cl(), o = cx;
					break;
				} catch (t) {
					tl(e, t);
				}
			while (1);
			return t && e.shellSuspendCounter++, Rr(), Hb = r, q.H = i, q.A = a, Wb === null && (Ub = null, Gb = 0, er()), o;
		}
		function cl() {
			for (; Wb !== null;) dl(Wb);
		}
		function ll(e, t) {
			var n = Hb;
			Hb |= Nb;
			var r = rl(), i = il();
			if (Ub !== e || Gb !== t) {
				if (Op) {
					var a = e.memoizedUpdaters;
					0 < a.size && (Il(e, Gb), a.clear()), Be(e, t);
				}
				Sx = null, bx = gp() + xx, el(e, t);
			} else ax = Ae(e, t);
			a: do
				try {
					if (nx !== Kb && Wb !== null) b: switch (t = Wb, a = rx, nx) {
						case qb:
							nx = Kb, rx = null, ml(e, t, a, qb);
							break;
						case Jb:
						case tx:
							if (wi(a)) {
								nx = Kb, rx = null, fl(t);
								break;
							}
							t = function() {
								nx !== Jb && nx !== tx || Ub !== e || (nx = $b), zl(e);
							}, a.then(t, t);
							break a;
						case Yb:
							nx = $b;
							break a;
						case Xb:
							nx = Zb;
							break a;
						case $b:
							wi(a) ? (nx = Kb, rx = null, fl(t)) : (nx = Kb, rx = null, ml(e, t, a, $b));
							break;
						case Zb:
							var o = null;
							switch (Wb.tag) {
								case 26: o = Wb.memoizedState;
								case 5:
								case 27:
									var s = Wb;
									if (o ? Rd(o) : s.stateNode.complete) {
										nx = Kb, rx = null;
										var c = s.sibling;
										if (c !== null) Wb = c;
										else {
											var l = s.return;
											l === null ? Wb = null : (Wb = l, hl(l));
										}
										break b;
									}
									break;
								default: console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.");
							}
							nx = Kb, rx = null, ml(e, t, a, Zb);
							break;
						case Qb:
							nx = Kb, rx = null, ml(e, t, a, Qb);
							break;
						case ex:
							Qc(), cx = Bb;
							break a;
						default: throw Error("Unexpected SuspendedReason. This is a bug in React.");
					}
					q.actQueue === null ? ul() : cl();
					break;
				} catch (t) {
					tl(e, t);
				}
			while (1);
			return Rr(), q.H = r, q.A = i, Hb = n, Wb === null ? (Ub = null, Gb = 0, er(), cx) : Fb;
		}
		function ul() {
			for (; Wb !== null && !mp();) dl(Wb);
		}
		function dl(e) {
			var t = e.alternate;
			(e.mode & Ag) === Q ? t = M(e, As, t, e, sx) : (ui(e), t = M(e, As, t, e, sx), di(e)), e.memoizedProps = e.pendingProps, t === null ? hl(e) : Wb = t;
		}
		function fl(e) {
			var t = M(e, pl, e);
			e.memoizedProps = e.pendingProps, t === null ? hl(e) : Wb = t;
		}
		function pl(e) {
			var t = e.alternate, n = (e.mode & Ag) !== Q;
			switch (n && ui(e), e.tag) {
				case 15:
				case 0:
					t = ms(t, e, e.pendingProps, e.type, void 0, Gb);
					break;
				case 11:
					t = ms(t, e, e.pendingProps, e.type.render, e.ref, Gb);
					break;
				case 5: ya(e);
				default: zs(t, e), e = Wb = pr(e, sx), t = As(t, e, sx);
			}
			return n && di(e), t;
		}
		function ml(e, t, n, r) {
			Rr(), ya(t), Bv = null, Vv = 0;
			var i = t.return;
			try {
				if (ts(e, i, t, n, Gb)) {
					cx = Ib, Xo(e, yr(n, e.current)), Wb = null;
					return;
				}
			} catch (t) {
				if (i !== null) throw Wb = i, t;
				cx = Ib, Xo(e, yr(n, e.current)), Wb = null;
				return;
			}
			t.flags & 32768 ? (Jg || r === qb ? e = !0 : ax || Gb & 536870912 ? e = !1 : (ix = e = !0, (r === Jb || r === tx || r === Yb || r === Qb) && (r = oy.current, r !== null && r.tag === 13 && (r.flags |= 16384))), gl(t, e)) : hl(t);
		}
		function hl(e) {
			var t = e;
			do {
				if (t.flags & 32768) {
					gl(t, ix);
					return;
				}
				var n = t.alternate;
				if (e = t.return, ui(t), n = M(t, Ls, n, t, sx), (t.mode & Ag) !== Q && fi(t), n !== null) {
					Wb = n;
					return;
				}
				if (t = t.sibling, t !== null) {
					Wb = t;
					return;
				}
				Wb = t = e;
			} while (t !== null);
			cx === Fb && (cx = Vb);
		}
		function gl(e, t) {
			do {
				var n = Rs(e.alternate, e);
				if (n !== null) {
					n.flags &= 32767, Wb = n;
					return;
				}
				if ((e.mode & Ag) !== Q) {
					fi(e), n = e.actualDuration;
					for (var r = e.child; r !== null;) n += r.actualDuration, r = r.sibling;
					e.actualDuration = n;
				}
				if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
					Wb = e;
					return;
				}
				Wb = e = n;
			} while (e !== null);
			cx = Bb, Wb = null;
		}
		function _l(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
			e.cancelPendingCommit = null;
			do
				Cl();
			while (Fx !== kx);
			if (ov.flushLegacyContextWarning(), ov.flushPendingUnsafeLifecycleWarnings(), (Hb & (Nb | Pb)) !== Mb) throw Error("Should not already be working.");
			if (Bn(n), l === Lb ? Xn(f, p, n, Cx) : r === null ? Kn(f, p, n, Cx) : Yn(f, p, n, r, t !== null && t.alternate !== null && t.alternate.memoizedState.isDehydrated && (t.flags & 256) != 0, Cx), t !== null) {
				if (n === 0 && console.error("finishedLanes should not be empty during a commit. This is a bug in React."), t === e.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");
				if (a = t.lanes | t.childLanes, a |= Tg, Pe(e, n, a, o, s, c), e === Ub && (Wb = Ub = null, Gb = 0), Lx = t, Ix = e, Rx = n, zx = a, Vx = i, Hx = r, Bx = p, Ux = d, Wx = Tx, Gx = null, t.actualDuration !== 0 || t.subtreeFlags & 10256 || t.flags & 10256 ? (e.callbackNode = null, e.callbackPriority = 0, Ll(bp, function() {
					return ZS = window.event, Wx === Tx && (Wx = Dx), wl(), null;
				})) : (e.callbackNode = null, e.callbackPriority = 0), __ = null, h_ = u_(), d !== null && Zn(p, h_, d, Cx), r = (t.flags & 13878) != 0, t.subtreeFlags & 13878 || r) {
					r = q.T, q.T = null, i = Hf.p, Hf.p = Fp, o = Hb, Hb |= Pb;
					try {
						dc(e, t, n);
					} finally {
						Hb = o, Hf.p = i, q.T = r;
					}
				}
				Fx = Ax, vl(), yl(), bl();
			}
		}
		function vl() {
			if (Fx === Ax) {
				Fx = kx;
				var e = Ix, t = Lx, n = Rx, r = (t.flags & 13878) != 0;
				if (t.subtreeFlags & 13878 || r) {
					r = q.T, q.T = null;
					var i = Hf.p;
					Hf.p = Fp;
					var a = Hb;
					Hb |= Pb;
					try {
						xb = n, Sb = e, ri(), xc(t, e), Sb = xb = null, n = JS;
						var o = An(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
						if (o !== s && s && s.ownerDocument && kn(s.ownerDocument.documentElement, s)) {
							if (c !== null && jn(s)) {
								var l = c.start, u = c.end;
								if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);
								else {
									var d = s.ownerDocument || document, f = d && d.defaultView || window;
									if (f.getSelection) {
										var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);
										!p.extend && h > g && (o = g, g = h, h = o);
										var _ = On(s, h), v = On(s, g);
										if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {
											var y = d.createRange();
											y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));
										}
									}
								}
							}
							for (d = [], p = s; p = p.parentNode;) p.nodeType === 1 && d.push({
								element: p,
								left: p.scrollLeft,
								top: p.scrollTop
							});
							for (typeof s.focus == "function" && s.focus(), s = 0; s < d.length; s++) {
								var b = d[s];
								b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
							}
						}
						RC = !!qS, JS = qS = null;
					} finally {
						Hb = a, Hf.p = i, q.T = r;
					}
				}
				e.current = t, Fx = jx;
			}
		}
		function yl() {
			if (Fx === jx) {
				Fx = kx;
				var e = Gx;
				if (e !== null) {
					h_ = u_();
					var t = g_, n = h_;
					!dg || n <= t || (Y_ ? Y_.run(console.timeStamp.bind(console, e, t, n, mg, pg, "secondary-light")) : console.timeStamp(e, t, n, mg, pg, "secondary-light"));
				}
				e = Ix, t = Lx, n = Rx;
				var r = (t.flags & 8772) != 0;
				if (t.subtreeFlags & 8772 || r) {
					r = q.T, q.T = null;
					var i = Hf.p;
					Hf.p = Fp;
					var a = Hb;
					Hb |= Pb;
					try {
						xb = n, Sb = e, ri(), fc(e, t.alternate, t), Sb = xb = null;
					} finally {
						Hb = a, Hf.p = i, q.T = r;
					}
				}
				e = Bx, t = Ux, g_ = u_(), e = t === null ? e : h_, t = g_, n = Wx === Ex, r = Cx, __ === null ? !dg || t <= e || (r ? r.run(console.timeStamp.bind(console, n ? "Commit Interrupted View Transition" : "Commit", e, t, mg, pg, n ? "error" : "secondary-dark")) : console.timeStamp(n ? "Commit Interrupted View Transition" : "Commit", e, t, mg, pg, n ? "error" : "secondary-dark")) : Qn(e, t, __, !1, r), Fx = Mx;
			}
		}
		function bl() {
			if (Fx === Nx || Fx === Mx) {
				if (Fx === Nx) {
					var e = g_;
					g_ = u_();
					var t = g_, n = Wx === Ex;
					!dg || t <= e || (Y_ ? Y_.run(console.timeStamp.bind(console, n ? "Interrupted View Transition" : "Starting Animation", e, t, mg, pg, n ? "error" : "secondary-light")) : console.timeStamp(n ? "Interrupted View Transition" : "Starting Animation", e, t, mg, pg, n ? " error" : "secondary-light")), Wx !== Ex && (Wx = Ox);
				}
				Fx = kx, hp(), e = Ix;
				var r = Lx;
				t = Rx, n = Hx;
				var i = r.actualDuration !== 0 || (r.subtreeFlags & 10256) != 0 || (r.flags & 10256) != 0;
				i ? Fx = Px : (Fx = kx, Lx = Ix = null, Sl(e, e.pendingLanes), Qx = 0, $x = null);
				var a = e.pendingLanes;
				if (a === 0 && (wx = null), i || Pl(e), a = Ve(t), r = r.stateNode, Ep && typeof Ep.onCommitFiberRoot == "function") try {
					var o = (r.current.flags & 128) == 128;
					switch (a) {
						case Fp:
							var s = vp;
							break;
						case Ip:
							s = yp;
							break;
						case Lp:
							s = bp;
							break;
						case Rp:
							s = Sp;
							break;
						default: s = bp;
					}
					Ep.onCommitFiberRoot(Tp, r, s, o);
				} catch (e) {
					Dp || (Dp = !0, console.error("React instrumentation encountered an error: %o", e));
				}
				if (Op && e.memoizedUpdaters.clear(), Uc(), n !== null) {
					o = q.T, s = Hf.p, Hf.p = Fp, q.T = null;
					try {
						var c = e.onRecoverableError;
						for (r = 0; r < n.length; r++) {
							var l = n[r], u = xl(l.stack);
							M(l.source, c, l.value, u);
						}
					} finally {
						q.T = o, Hf.p = s;
					}
				}
				Rx & 3 && Cl(), zl(e), a = e.pendingLanes, t & 261930 && a & 42 ? ($_ = !0, e === Jx ? qx++ : (qx = 0, Jx = e)) : qx = 0, i || $c(t, g_), Bl(0, !1);
			}
		}
		function xl(e) {
			return e = { componentStack: e }, Object.defineProperty(e, "digest", { get: function() {
				console.error("You are accessing \"digest\" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.");
			} }), e;
		}
		function Sl(e, t) {
			(e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Zr(t)));
		}
		function Cl() {
			return vl(), yl(), bl(), wl();
		}
		function wl() {
			if (Fx !== Px) return !1;
			var e = Ix, t = zx;
			zx = 0;
			var n = Ve(Rx), r = Lp === 0 || Lp > n ? Lp : n;
			n = q.T;
			var i = Hf.p;
			try {
				Hf.p = r, q.T = null;
				var a = Vx;
				Vx = null, r = Ix;
				var o = Rx;
				if (Fx = kx, Lx = Ix = null, Rx = 0, (Hb & (Nb | Pb)) !== Mb) throw Error("Cannot flush passive effects while already rendering.");
				Bn(o), Yx = !0, Xx = !1;
				var s = 0;
				if (__ = null, s = gp(), Wx === Ox) $n(g_, s, Y_);
				else {
					var c = g_, l = s, u = Wx === Dx;
					!dg || l <= c || (Cx ? Cx.run(console.timeStamp.bind(console, u ? "Waiting for Paint" : "Waiting", c, l, mg, pg, "secondary-light")) : console.timeStamp(u ? "Waiting for Paint" : "Waiting", c, l, mg, pg, "secondary-light"));
				}
				c = Hb, Hb |= Pb;
				var d = r.current;
				ri(), zc(d);
				var f = r.current;
				d = Bx, ri(), Mc(r, f, o, a, d), Pl(r), Hb = c;
				var p = gp();
				if (f = s, d = Cx, __ === null ? !dg || p <= f || (d ? d.run(console.timeStamp.bind(console, "Remaining Effects", f, p, mg, pg, "secondary-dark")) : console.timeStamp("Remaining Effects", f, p, mg, pg, "secondary-dark")) : Qn(f, p, __, !0, d), $c(o, p), Bl(0, !1), Xx ? r === $x ? Qx++ : (Qx = 0, $x = r) : Qx = 0, Xx = Yx = !1, Ep && typeof Ep.onPostCommitFiberRoot == "function") try {
					Ep.onPostCommitFiberRoot(Tp, r);
				} catch (e) {
					Dp || (Dp = !0, console.error("React instrumentation encountered an error: %o", e));
				}
				var m = r.current.stateNode;
				return m.effectDuration = 0, m.passiveEffectDuration = 0, !0;
			} finally {
				Hf.p = i, q.T = n, Sl(e, t);
			}
		}
		function Tl(e, t, n) {
			t = yr(n, t), mi(t), t = Qo(e.stateNode, t, 2), e = Gi(e, t, 2), e !== null && (Ne(e, 2), zl(e));
		}
		function El(e, t, n) {
			if (eS = !1, e.tag === 3) Tl(e, e, n);
			else {
				for (; t !== null;) {
					if (t.tag === 3) {
						Tl(t, e, n);
						return;
					}
					if (t.tag === 1) {
						var r = t.stateNode;
						if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (wx === null || !wx.has(r))) {
							e = yr(n, e), mi(e), n = $o(2), r = Gi(t, n, 2), r !== null && (es(n, r, t, e), Ne(r, 2), zl(r));
							return;
						}
					}
					t = t.return;
				}
				console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s", n);
			}
		}
		function Dl(e, t, n) {
			var r = e.pingCache;
			if (r === null) {
				r = e.pingCache = new jb();
				var i = /* @__PURE__ */ new Set();
				r.set(t, i);
			} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
			i.has(n) || (ox = !0, i.add(n), r = Ol.bind(null, e, t, n), Op && Il(e, n), t.then(r, r));
		}
		function Ol(e, t, n) {
			var r = e.pingCache;
			r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, n & 127 ? 0 > E_ && (T_ = E_ = u_(), D_ = d_("Promise Resolved"), O_ = p_) : n & 4194048 && 0 > L_ && (F_ = L_ = u_(), z_ = d_("Promise Resolved"), R_ = p_), Wc() && q.actQueue === null && console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n  /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"), Ub === e && (Gb & n) === n && (cx === zb || cx === Rb && (Gb & 62914560) === Gb && gp() - _x < yx ? (Hb & Nb) === Mb && el(e, 0) : dx |= n, px === Gb && (px = 0)), zl(e);
		}
		function kl(e, t) {
			t === 0 && (t = Me()), e = rr(e, t), e !== null && (Ne(e, t), zl(e));
		}
		function Al(e) {
			var t = e.memoizedState, n = 0;
			t !== null && (n = t.retryLane), kl(e, n);
		}
		function jl(e, t) {
			var n = 0;
			switch (e.tag) {
				case 31:
				case 13:
					var r = e.stateNode, i = e.memoizedState;
					i !== null && (n = i.retryLane);
					break;
				case 19:
					r = e.stateNode;
					break;
				case 22:
					r = e.stateNode._retryCache;
					break;
				default: throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.");
			}
			r !== null && r.delete(t), kl(e, n);
		}
		function Ml(e, t, n) {
			if (t.subtreeFlags & 67117056) for (t = t.child; t !== null;) {
				var r = e, i = t, a = i.type === Of;
				a = n || a, i.tag === 22 ? i.memoizedState === null && (a && i.flags & 8192 ? M(i, Nl, r, i) : i.subtreeFlags & 67108864 && M(i, Ml, r, i, a)) : i.flags & 67108864 ? a && M(i, Nl, r, i) : Ml(r, i, a), t = t.sibling;
			}
		}
		function Nl(e, t) {
			Ee(!0);
			try {
				Tc(t), Vc(t), Dc(e, t.alternate, t, !1), Pc(e, t, 0, null, !1, 0);
			} finally {
				Ee(!1);
			}
		}
		function Pl(e) {
			var t = !0;
			e.current.mode & (jg | Mg) || (t = !1), Ml(e, e.current, t);
		}
		function Fl(e) {
			if ((Hb & Nb) === Mb) {
				var t = e.tag;
				if (t === 3 || t === 1 || t === 0 || t === 11 || t === 14 || t === 15) {
					if (t = D(e) || "ReactComponent", tS !== null) {
						if (tS.has(t)) return;
						tS.add(t);
					} else tS = new Set([t]);
					M(e, function() {
						console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.");
					});
				}
			}
		}
		function Il(e, t) {
			Op && e.memoizedUpdaters.forEach(function(n) {
				ze(e, n, t);
			});
		}
		function Ll(e, t) {
			var n = q.actQueue;
			return n === null ? fp(e, t) : (n.push(t), iS);
		}
		function Rl(e) {
			Wc() && q.actQueue === null && M(e, function() {
				console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n  /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act", D(e));
			});
		}
		function zl(e) {
			e !== oS && e.next === null && (oS === null ? aS = oS = e : oS = oS.next = e), lS = !0, q.actQueue === null ? sS || (sS = !0, ql()) : cS || (cS = !0, ql());
		}
		function Bl(e, t) {
			if (!uS && lS) {
				uS = !0;
				do
					for (var n = !1, r = aS; r !== null;) {
						if (!t) if (e !== 0) {
							var i = r.pendingLanes;
							if (i === 0) var a = 0;
							else {
								var o = r.suspendedLanes, s = r.pingedLanes;
								a = (1 << 31 - kp(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
							}
							a !== 0 && (n = !0, Gl(r, a));
						} else a = Gb, a = ke(r, r === Ub ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== eC), !(a & 3) || Ae(r, a) || (n = !0, Gl(r, a));
						r = r.next;
					}
				while (n);
				uS = !1;
			}
		}
		function Vl() {
			ZS = window.event, Hl();
		}
		function Hl() {
			lS = cS = sS = !1;
			var e = 0;
			dS !== 0 && Iu() && (e = dS);
			for (var t = gp(), n = null, r = aS; r !== null;) {
				var i = r.next, a = Ul(r, t);
				a === 0 ? (r.next = null, n === null ? aS = i : n.next = i, i === null && (oS = n)) : (n = r, (e !== 0 || a & 3) && (lS = !0)), r = i;
			}
			Fx !== kx && Fx !== Px || Bl(e, !1), dS !== 0 && (dS = 0);
		}
		function Ul(e, t) {
			for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
				var o = 31 - kp(a), s = 1 << o, c = i[o];
				c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = je(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
			}
			if (t = Ub, n = Gb, n = ke(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== eC), r = e.callbackNode, n === 0 || e === t && (nx === Jb || nx === tx) || e.cancelPendingCommit !== null) return r !== null && Kl(r), e.callbackNode = null, e.callbackPriority = 0;
			if (!(n & 3) || Ae(e, n)) {
				if (t = n & -n, t !== e.callbackPriority || q.actQueue !== null && r !== fS) Kl(r);
				else return t;
				switch (Ve(n)) {
					case Fp:
					case Ip:
						n = yp;
						break;
					case Lp:
						n = bp;
						break;
					case Rp:
						n = Sp;
						break;
					default: n = bp;
				}
				return r = Wl.bind(null, e), q.actQueue === null ? n = fp(n, r) : (q.actQueue.push(r), n = fS), e.callbackPriority = t, e.callbackNode = n, t;
			}
			return r !== null && Kl(r), e.callbackPriority = 2, e.callbackNode = null, 2;
		}
		function Wl(e, t) {
			if ($_ = Q_ = !1, ZS = window.event, Fx !== kx && Fx !== Px) return e.callbackNode = null, e.callbackPriority = 0, null;
			var n = e.callbackNode;
			if (Wx === Tx && (Wx = Dx), Cl() && e.callbackNode !== n) return null;
			var r = Gb;
			return r = ke(e, e === Ub ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== eC), r === 0 ? null : (qc(e, r, t), Ul(e, gp()), e.callbackNode != null && e.callbackNode === n ? Wl.bind(null, e) : null);
		}
		function Gl(e, t) {
			if (Cl()) return null;
			Q_ = $_, $_ = !1, qc(e, t, !0);
		}
		function Kl(e) {
			e !== fS && e !== null && pp(e);
		}
		function ql() {
			q.actQueue !== null && q.actQueue.push(function() {
				return Hl(), null;
			}), nC(function() {
				(Hb & (Nb | Pb)) === Mb ? Hl() : fp(vp, Vl);
			});
		}
		function Jl() {
			if (dS === 0) {
				var e = nv;
				e === 0 && (e = Mp, Mp <<= 1, !(Mp & 261888) && (Mp = 256)), dS = e;
			}
			return dS;
		}
		function Yl(e) {
			return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : (N(e, "action"), Xt("" + e));
		}
		function Xl(e, t) {
			var n = t.ownerDocument.createElement("input");
			return n.name = t.name, n.value = t.value, e.id && n.setAttribute("form", e.id), t.parentNode.insertBefore(n, t), e = new FormData(e), n.parentNode.removeChild(n), e;
		}
		function Zl(e, t, n, r, i) {
			if (t === "submit" && n && n.stateNode === i) {
				var a = Yl((i[Vp] || null).action), o = r.submitter;
				o && (t = (t = o[Vp] || null) ? Yl(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
				var s = new Qm("action", "action", null, r, i);
				e.push({
					event: s,
					listeners: [{
						instance: null,
						listener: function() {
							if (r.defaultPrevented) {
								if (dS !== 0) {
									var e = o ? Xl(i, o) : new FormData(i), t = {
										pending: !0,
										data: e,
										method: i.method,
										action: a
									};
									Object.freeze(t), To(n, t, null, e);
								}
							} else typeof a == "function" && (s.preventDefault(), e = o ? Xl(i, o) : new FormData(i), t = {
								pending: !0,
								data: e,
								method: i.method,
								action: a
							}, Object.freeze(t), To(n, t, a, e));
						},
						currentTarget: i
					}]
				});
			}
		}
		function Ql(e, t, n) {
			e.currentTarget = n;
			try {
				t(e);
			} catch (e) {
				ng(e);
			}
			e.currentTarget = null;
		}
		function $l(e, t) {
			t = (t & 4) != 0;
			for (var n = 0; n < e.length; n++) {
				var r = e[n];
				a: {
					var i = void 0, a = r.event;
					if (r = r.listeners, t) for (var o = r.length - 1; 0 <= o; o--) {
						var s = r[o], c = s.instance, l = s.currentTarget;
						if (s = s.listener, c !== i && a.isPropagationStopped()) break a;
						c === null ? Ql(a, s, l) : M(c, Ql, a, s, l), i = c;
					}
					else for (o = 0; o < r.length; o++) {
						if (s = r[o], c = s.instance, l = s.currentTarget, s = s.listener, c !== i && a.isPropagationStopped()) break a;
						c === null ? Ql(a, s, l) : M(c, Ql, a, s, l), i = c;
					}
				}
			}
		}
		function eu(e, t) {
			mS.has(e) || console.error("Did not expect a listenToNonDelegatedEvent() call for \"%s\". This is a bug in React. Please file an issue.", e);
			var n = t[Up];
			n === void 0 && (n = t[Up] = /* @__PURE__ */ new Set());
			var r = e + "__bubble";
			n.has(r) || (ru(t, e, 2, !1), n.add(r));
		}
		function tu(e, t, n) {
			mS.has(e) && !t && console.error("Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. This is a bug in React. Please file an issue.", e);
			var r = 0;
			t && (r |= 4), ru(n, e, r, t);
		}
		function nu(e) {
			if (!e[hS]) {
				e[hS] = !0, Jp.forEach(function(t) {
					t !== "selectionchange" && (mS.has(t) || tu(t, !1, e), tu(t, !0, e));
				});
				var t = e.nodeType === 9 ? e : e.ownerDocument;
				t === null || t[hS] || (t[hS] = !0, tu("selectionchange", !1, t));
			}
		}
		function ru(e, t, n, r) {
			switch (af(t)) {
				case Fp:
					var i = $d;
					break;
				case Ip:
					i = ef;
					break;
				default: i = tf;
			}
			n = i.bind(null, t, n, e), i = void 0, !Km || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
				capture: !0,
				passive: i
			}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
		}
		function iu(e, t, n, r, i) {
			var a = r;
			if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
				if (r === null) return;
				var o = r.tag;
				if (o === 3 || o === 4) {
					var s = r.stateNode.containerInfo;
					if (s === i) break;
					if (o === 4) for (o = r.return; o !== null;) {
						var c = o.tag;
						if ((c === 3 || c === 4) && o.stateNode.containerInfo === i) return;
						o = o.return;
					}
					for (; s !== null;) {
						if (o = Ge(s), o === null) return;
						if (c = o.tag, c === 5 || c === 6 || c === 26 || c === 27) {
							r = a = o;
							continue a;
						}
						s = s.parentNode;
					}
				}
				r = r.return;
			}
			en(function() {
				var r = a, i = Qt(n), o = [];
				a: {
					var s = Xh.get(e);
					if (s !== void 0) {
						var c = Qm, l = e;
						switch (e) {
							case "keypress": if (B(n) === 0) break a;
							case "keydown":
							case "keyup":
								c = hh;
								break;
							case "focusin":
								l = "focus", c = sh;
								break;
							case "focusout":
								l = "blur", c = sh;
								break;
							case "beforeblur":
							case "afterblur":
								c = sh;
								break;
							case "click": if (n.button === 2) break a;
							case "auxclick":
							case "dblclick":
							case "mousedown":
							case "mousemove":
							case "mouseup":
							case "mouseout":
							case "mouseover":
							case "contextmenu":
								c = ah;
								break;
							case "drag":
							case "dragend":
							case "dragenter":
							case "dragexit":
							case "dragleave":
							case "dragover":
							case "dragstart":
							case "drop":
								c = oh;
								break;
							case "touchcancel":
							case "touchend":
							case "touchmove":
							case "touchstart":
								c = _h;
								break;
							case Uh:
							case Wh:
							case Gh:
								c = ch;
								break;
							case Yh:
								c = vh;
								break;
							case "scroll":
							case "scrollend":
								c = eh;
								break;
							case "wheel":
								c = yh;
								break;
							case "copy":
							case "cut":
							case "paste":
								c = lh;
								break;
							case "gotpointercapture":
							case "lostpointercapture":
							case "pointercancel":
							case "pointerdown":
							case "pointermove":
							case "pointerout":
							case "pointerover":
							case "pointerup":
								c = gh;
								break;
							case "toggle":
							case "beforetoggle": c = bh;
						}
						var u = (t & 4) != 0, d = !u && (e === "scroll" || e === "scrollend"), f = u ? s === null ? null : s + "Capture" : s;
						u = [];
						for (var p = r, m; p !== null;) {
							var h = p;
							if (m = h.stateNode, h = h.tag, h !== 5 && h !== 26 && h !== 27 || m === null || f === null || (h = tn(p, f), h != null && u.push(au(p, h, m))), d) break;
							p = p.return;
						}
						0 < u.length && (s = new c(s, l, null, n, i), o.push({
							event: s,
							listeners: u
						}));
					}
				}
				if (!(t & 7)) {
					a: {
						if (s = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", s && n !== Vm && (l = n.relatedTarget || n.fromElement) && (Ge(l) || l[Hp])) break a;
						if ((c || s) && (s = i.window === i ? i : (s = i.ownerDocument) ? s.defaultView || s.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Ge(l) : null, l !== null && (d = x(l), u = l.tag, l !== d || u !== 5 && u !== 27 && u !== 6) && (l = null)) : (c = null, l = r), c !== l)) {
							if (u = ah, h = "onMouseLeave", f = "onMouseEnter", p = "mouse", (e === "pointerout" || e === "pointerover") && (u = gh, h = "onPointerLeave", f = "onPointerEnter", p = "pointer"), d = c == null ? s : qe(c), m = l == null ? s : qe(l), s = new u(h, p + "leave", c, n, i), s.target = d, s.relatedTarget = m, h = null, Ge(i) === r && (u = new u(f, p + "enter", l, n, i), u.target = m, u.relatedTarget = d, h = u), d = h, c && l) b: {
								for (u = su, f = c, p = l, m = 0, h = f; h; h = u(h)) m++;
								h = 0;
								for (var g = p; g; g = u(g)) h++;
								for (; 0 < m - h;) f = u(f), m--;
								for (; 0 < h - m;) p = u(p), h--;
								for (; m--;) {
									if (f === p || p !== null && f === p.alternate) {
										u = f;
										break b;
									}
									f = u(f), p = u(p);
								}
								u = null;
							}
							else u = null;
							c !== null && cu(o, s, c, u, !1), l !== null && d !== null && cu(o, d, l, u, !0);
						}
					}
					a: {
						if (s = r ? qe(r) : window, c = s.nodeName && s.nodeName.toLowerCase(), c === "select" || c === "input" && s.type === "file") var _ = vn;
						else if (pn(s)) if (Nh) _ = wn;
						else {
							_ = Sn;
							var v = xn;
						}
						else c = s.nodeName, !c || c.toLowerCase() !== "input" || s.type !== "checkbox" && s.type !== "radio" ? r && Wt(r.elementType) && (_ = vn) : _ = Cn;
						if (_ &&= _(e, r)) {
							hn(o, _, n, i);
							break a;
						}
						v && v(e, s, r), e === "focusout" && r && s.type === "number" && r.memoizedProps.value != null && pt(s, "number", s.value);
					}
					switch (v = r ? qe(r) : window, e) {
						case "focusin":
							(pn(v) || v.contentEditable === "true") && (Ih = v, Lh = r, Rh = null);
							break;
						case "focusout":
							Rh = Lh = Ih = null;
							break;
						case "mousedown":
							zh = !0;
							break;
						case "contextmenu":
						case "mouseup":
						case "dragend":
							zh = !1, Mn(o, n, i);
							break;
						case "selectionchange": if (Fh) break;
						case "keydown":
						case "keyup": Mn(o, n, i);
					}
					var y;
					if (Ch) b: {
						switch (e) {
							case "compositionstart":
								var b = "onCompositionStart";
								break b;
							case "compositionend":
								b = "onCompositionEnd";
								break b;
							case "compositionupdate":
								b = "onCompositionUpdate";
								break b;
						}
						b = void 0;
					}
					else kh ? ln(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === Sh && (b = "onCompositionStart");
					b && (Th && n.locale !== "ko" && (kh || b !== "onCompositionStart" ? b === "onCompositionEnd" && kh && (y = nn()) : (Jm = i, Ym = "value" in Jm ? Jm.value : Jm.textContent, kh = !0)), v = ou(r, b), 0 < v.length && (b = new uh(b, e, null, n, i), o.push({
						event: b,
						listeners: v
					}), y ? b.data = y : (y = un(n), y !== null && (b.data = y)))), (y = wh ? dn(e, n) : fn(e, n)) && (b = ou(r, "onBeforeInput"), 0 < b.length && (v = new dh("onBeforeInput", "beforeinput", null, n, i), o.push({
						event: v,
						listeners: b
					}), v.data = y)), Zl(o, e, r, n, i);
				}
				$l(o, t);
			});
		}
		function au(e, t, n) {
			return {
				instance: e,
				listener: t,
				currentTarget: n
			};
		}
		function ou(e, t) {
			for (var n = t + "Capture", r = []; e !== null;) {
				var i = e, a = i.stateNode;
				if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = tn(e, n), i != null && r.unshift(au(e, i, a)), i = tn(e, t), i != null && r.push(au(e, i, a))), e.tag === 3) return r;
				e = e.return;
			}
			return [];
		}
		function su(e) {
			if (e === null) return null;
			do
				e = e.return;
			while (e && e.tag !== 5 && e.tag !== 27);
			return e || null;
		}
		function cu(e, t, n, r, i) {
			for (var a = t._reactName, o = []; n !== null && n !== r;) {
				var s = n, c = s.alternate, l = s.stateNode;
				if (s = s.tag, c !== null && c === r) break;
				s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = tn(n, a), l != null && o.unshift(au(n, l, c))) : i || (l = tn(n, a), l != null && o.push(au(n, l, c)))), n = n.return;
			}
			o.length !== 0 && e.push({
				event: t,
				listeners: o
			});
		}
		function lu(e, t) {
			qt(e, t), e !== "input" && e !== "textarea" && e !== "select" || t == null || t.value !== null || Pm || (Pm = !0, e === "select" && t.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.", e) : console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", e));
			var n = {
				registrationNameDependencies: Yp,
				possibleRegistrationNames: Xp
			};
			Wt(e) || typeof t.is == "string" || Yt(e, t, n), t.contentEditable && !t.suppressContentEditableWarning && t.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.");
		}
		function uu(e, t, n, r) {
			t !== n && (n = mu(n), mu(t) !== n && (r[e] = t));
		}
		function du(e, t, n) {
			t.forEach(function(t) {
				n[bu(t)] = t === "style" ? xu(e) : e.getAttribute(t);
			});
		}
		function fu(e, t) {
			!1 === t ? console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", e, e, e) : console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.", e, typeof t);
		}
		function pu(e, t) {
			return e = e.namespaceURI === Dm || e.namespaceURI === Om ? e.ownerDocument.createElementNS(e.namespaceURI, e.tagName) : e.ownerDocument.createElement(e.tagName), e.innerHTML = t, e.innerHTML;
		}
		function mu(e) {
			return xe(e) && (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.", be(e)), Se(e)), (typeof e == "string" ? e : "" + e).replace(wS, "\n").replace(TS, "");
		}
		function hu(e, t) {
			return t = mu(t), mu(e) === t;
		}
		function gu(e, t, n, r, i, a) {
			switch (n) {
				case "children":
					typeof r == "string" ? (zt(r, t, !1), t === "body" || t === "textarea" && r === "" || Bt(e, r)) : (typeof r == "number" || typeof r == "bigint") && (zt("" + r, t, !1), t !== "body" && Bt(e, "" + r));
					break;
				case "className":
					tt(e, "class", r);
					break;
				case "tabIndex":
					tt(e, "tabindex", r);
					break;
				case "dir":
				case "role":
				case "viewBox":
				case "width":
				case "height":
					tt(e, n, r);
					break;
				case "style":
					Ut(e, r, a);
					break;
				case "data": if (t !== "object") {
					tt(e, "data", r);
					break;
				}
				case "src":
				case "href":
					if (r === "" && (t !== "a" || n !== "href")) {
						console.error(n === "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.", n, n), e.removeAttribute(n);
						break;
					}
					if (r == null || typeof r == "function" || typeof r == "symbol" || typeof r == "boolean") {
						e.removeAttribute(n);
						break;
					}
					N(r, n), r = Xt("" + r), e.setAttribute(n, r);
					break;
				case "action":
				case "formAction":
					if (r != null && (t === "form" ? n === "formAction" ? console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.") : typeof r == "function" && (i.encType == null && i.method == null || xS || (xS = !0, console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")), i.target == null || bS || (bS = !0, console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))) : t === "input" || t === "button" ? n === "action" ? console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.") : t !== "input" || i.type === "submit" || i.type === "image" || vS ? t !== "button" || i.type == null || i.type === "submit" || vS ? typeof r == "function" && (i.name == null || yS || (yS = !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.")), i.formEncType == null && i.formMethod == null || xS || (xS = !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.")), i.formTarget == null || bS || (bS = !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."))) : (vS = !0, console.error("A button can only specify a formAction along with type=\"submit\" or no type.")) : (vS = !0, console.error("An input can only specify a formAction along with type=\"submit\" or type=\"image\".")) : console.error(n === "action" ? "You can only pass the action prop to <form>." : "You can only pass the formAction prop to <input> or <button>.")), typeof r == "function") {
						e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
						break;
					} else typeof a == "function" && (n === "formAction" ? (t !== "input" && gu(e, t, "name", i.name, i, null), gu(e, t, "formEncType", i.formEncType, i, null), gu(e, t, "formMethod", i.formMethod, i, null), gu(e, t, "formTarget", i.formTarget, i, null)) : (gu(e, t, "encType", i.encType, i, null), gu(e, t, "method", i.method, i, null), gu(e, t, "target", i.target, i, null)));
					if (r == null || typeof r == "symbol" || typeof r == "boolean") {
						e.removeAttribute(n);
						break;
					}
					N(r, n), r = Xt("" + r), e.setAttribute(n, r);
					break;
				case "onClick":
					r != null && (typeof r != "function" && fu(n, r), e.onclick = Zt);
					break;
				case "onScroll":
					r != null && (typeof r != "function" && fu(n, r), eu("scroll", e));
					break;
				case "onScrollEnd":
					r != null && (typeof r != "function" && fu(n, r), eu("scrollend", e));
					break;
				case "dangerouslySetInnerHTML":
					if (r != null) {
						if (typeof r != "object" || !("__html" in r)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");
						if (n = r.__html, n != null) {
							if (i.children != null) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
							e.innerHTML = n;
						}
					}
					break;
				case "multiple":
					e.multiple = r && typeof r != "function" && typeof r != "symbol";
					break;
				case "muted":
					e.muted = r && typeof r != "function" && typeof r != "symbol";
					break;
				case "suppressContentEditableWarning":
				case "suppressHydrationWarning":
				case "defaultValue":
				case "defaultChecked":
				case "innerHTML":
				case "ref": break;
				case "autoFocus": break;
				case "xlinkHref":
					if (r == null || typeof r == "function" || typeof r == "boolean" || typeof r == "symbol") {
						e.removeAttribute("xlink:href");
						break;
					}
					N(r, n), n = Xt("" + r), e.setAttributeNS(ES, "xlink:href", n);
					break;
				case "contentEditable":
				case "spellCheck":
				case "draggable":
				case "value":
				case "autoReverse":
				case "externalResourcesRequired":
				case "focusable":
				case "preserveAlpha":
					r != null && typeof r != "function" && typeof r != "symbol" ? (N(r, n), e.setAttribute(n, "" + r)) : e.removeAttribute(n);
					break;
				case "inert": r !== "" || CS[n] || (CS[n] = !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.", n));
				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":
					r && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, "") : e.removeAttribute(n);
					break;
				case "capture":
				case "download":
					!0 === r ? e.setAttribute(n, "") : !1 !== r && r != null && typeof r != "function" && typeof r != "symbol" ? (N(r, n), e.setAttribute(n, r)) : e.removeAttribute(n);
					break;
				case "cols":
				case "rows":
				case "size":
				case "span":
					r != null && typeof r != "function" && typeof r != "symbol" && !isNaN(r) && 1 <= r ? (N(r, n), e.setAttribute(n, r)) : e.removeAttribute(n);
					break;
				case "rowSpan":
				case "start":
					r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : (N(r, n), e.setAttribute(n, r));
					break;
				case "popover":
					eu("beforetoggle", e), eu("toggle", e), et(e, "popover", r);
					break;
				case "xlinkActuate":
					nt(e, ES, "xlink:actuate", r);
					break;
				case "xlinkArcrole":
					nt(e, ES, "xlink:arcrole", r);
					break;
				case "xlinkRole":
					nt(e, ES, "xlink:role", r);
					break;
				case "xlinkShow":
					nt(e, ES, "xlink:show", r);
					break;
				case "xlinkTitle":
					nt(e, ES, "xlink:title", r);
					break;
				case "xlinkType":
					nt(e, ES, "xlink:type", r);
					break;
				case "xmlBase":
					nt(e, DS, "xml:base", r);
					break;
				case "xmlLang":
					nt(e, DS, "xml:lang", r);
					break;
				case "xmlSpace":
					nt(e, DS, "xml:space", r);
					break;
				case "is":
					a != null && console.error("Cannot update the \"is\" prop after it has been initialized."), et(e, "is", r);
					break;
				case "innerText":
				case "textContent": break;
				case "popoverTarget": SS || typeof r != "object" || !r || (SS = !0, console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.", r));
				default: !(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N" ? (n = Gt(n), et(e, n, r)) : Yp.hasOwnProperty(n) && r != null && typeof r != "function" && fu(n, r);
			}
		}
		function _u(e, t, n, r, i, a) {
			switch (n) {
				case "style":
					Ut(e, r, a);
					break;
				case "dangerouslySetInnerHTML":
					if (r != null) {
						if (typeof r != "object" || !("__html" in r)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");
						if (n = r.__html, n != null) {
							if (i.children != null) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
							e.innerHTML = n;
						}
					}
					break;
				case "children":
					typeof r == "string" ? Bt(e, r) : (typeof r == "number" || typeof r == "bigint") && Bt(e, "" + r);
					break;
				case "onScroll":
					r != null && (typeof r != "function" && fu(n, r), eu("scroll", e));
					break;
				case "onScrollEnd":
					r != null && (typeof r != "function" && fu(n, r), eu("scrollend", e));
					break;
				case "onClick":
					r != null && (typeof r != "function" && fu(n, r), e.onclick = Zt);
					break;
				case "suppressContentEditableWarning":
				case "suppressHydrationWarning":
				case "innerHTML":
				case "ref": break;
				case "innerText":
				case "textContent": break;
				default: if (Yp.hasOwnProperty(n)) r != null && typeof r != "function" && fu(n, r);
				else a: {
					if (n[0] === "o" && n[1] === "n" && (i = n.endsWith("Capture"), t = n.slice(2, i ? n.length - 7 : void 0), a = e[Vp] || null, a = a == null ? null : a[n], typeof a == "function" && e.removeEventListener(t, a, i), typeof r == "function")) {
						typeof a != "function" && a !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(t, r, i);
						break a;
					}
					n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : et(e, n, r);
				}
			}
		}
		function vu(e, t, n) {
			switch (lu(t, n), t) {
				case "div":
				case "span":
				case "svg":
				case "path":
				case "a":
				case "g":
				case "p":
				case "li": break;
				case "img":
					eu("error", e), eu("load", e);
					var r = !1, i = !1, a;
					for (a in n) if (n.hasOwnProperty(a)) {
						var o = n[a];
						if (o != null) switch (a) {
							case "src":
								r = !0;
								break;
							case "srcSet":
								i = !0;
								break;
							case "children":
							case "dangerouslySetInnerHTML": throw Error(t + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
							default: gu(e, t, a, o, n, null);
						}
					}
					i && gu(e, t, "srcSet", n.srcSet, n, null), r && gu(e, t, "src", n.src, n, null);
					return;
				case "input":
					Qe("input", n), eu("invalid", e);
					var s = a = o = i = null, c = null, l = null;
					for (r in n) if (n.hasOwnProperty(r)) {
						var u = n[r];
						if (u != null) switch (r) {
							case "name":
								i = u;
								break;
							case "type":
								o = u;
								break;
							case "checked":
								c = u;
								break;
							case "defaultChecked":
								l = u;
								break;
							case "value":
								a = u;
								break;
							case "defaultValue":
								s = u;
								break;
							case "children":
							case "dangerouslySetInnerHTML":
								if (u != null) throw Error(t + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
								break;
							default: gu(e, t, r, u, n, null);
						}
					}
					ut(e, n), ft(e, a, s, c, l, o, i, !1);
					return;
				case "select":
					for (i in Qe("select", n), eu("invalid", e), r = o = a = null, n) if (n.hasOwnProperty(i) && (s = n[i], s != null)) switch (i) {
						case "value":
							a = s;
							break;
						case "defaultValue":
							o = s;
							break;
						case "multiple": r = s;
						default: gu(e, t, i, s, n, null);
					}
					I(e, n), t = a, n = o, e.multiple = !!r, t == null ? n != null && gt(e, !!r, n, !0) : gt(e, !!r, t, !1);
					return;
				case "textarea":
					for (o in Qe("textarea", n), eu("invalid", e), a = i = r = null, n) if (n.hasOwnProperty(o) && (s = n[o], s != null)) switch (o) {
						case "value":
							r = s;
							break;
						case "defaultValue":
							i = s;
							break;
						case "children":
							a = s;
							break;
						case "dangerouslySetInnerHTML":
							if (s != null) throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");
							break;
						default: gu(e, t, o, s, n, null);
					}
					_t(e, n), yt(e, r, i, a);
					return;
				case "option":
					for (c in mt(e, n), n) if (n.hasOwnProperty(c) && (r = n[c], r != null)) switch (c) {
						case "selected":
							e.selected = r && typeof r != "function" && typeof r != "symbol";
							break;
						default: gu(e, t, c, r, n, null);
					}
					return;
				case "dialog":
					eu("beforetoggle", e), eu("toggle", e), eu("cancel", e), eu("close", e);
					break;
				case "iframe":
				case "object":
					eu("load", e);
					break;
				case "video":
				case "audio":
					for (r = 0; r < pS.length; r++) eu(pS[r], e);
					break;
				case "image":
					eu("error", e), eu("load", e);
					break;
				case "details":
					eu("toggle", e);
					break;
				case "embed":
				case "source":
				case "link": eu("error", e), eu("load", e);
				case "area":
				case "base":
				case "br":
				case "col":
				case "hr":
				case "keygen":
				case "meta":
				case "param":
				case "track":
				case "wbr":
				case "menuitem":
					for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
						case "children":
						case "dangerouslySetInnerHTML": throw Error(t + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
						default: gu(e, t, l, r, n, null);
					}
					return;
				default: if (Wt(t)) {
					for (u in n) n.hasOwnProperty(u) && (r = n[u], r !== void 0 && _u(e, t, u, r, n, void 0));
					return;
				}
			}
			for (s in n) n.hasOwnProperty(s) && (r = n[s], r != null && gu(e, t, s, r, n, null));
		}
		function yu(e, t, n, r) {
			switch (lu(t, r), t) {
				case "div":
				case "span":
				case "svg":
				case "path":
				case "a":
				case "g":
				case "p":
				case "li": break;
				case "input":
					var i = null, a = null, o = null, s = null, c = null, l = null, u = null;
					for (p in n) {
						var d = n[p];
						if (n.hasOwnProperty(p) && d != null) switch (p) {
							case "checked": break;
							case "value": break;
							case "defaultValue": c = d;
							default: r.hasOwnProperty(p) || gu(e, t, p, null, r, d);
						}
					}
					for (var f in r) {
						var p = r[f];
						if (d = n[f], r.hasOwnProperty(f) && (p != null || d != null)) switch (f) {
							case "type":
								a = p;
								break;
							case "name":
								i = p;
								break;
							case "checked":
								l = p;
								break;
							case "defaultChecked":
								u = p;
								break;
							case "value":
								o = p;
								break;
							case "defaultValue":
								s = p;
								break;
							case "children":
							case "dangerouslySetInnerHTML":
								if (p != null) throw Error(t + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
								break;
							default: p !== d && gu(e, t, f, p, r, d);
						}
					}
					t = n.type === "checkbox" || n.type === "radio" ? n.checked != null : n.value != null, r = r.type === "checkbox" || r.type === "radio" ? r.checked != null : r.value != null, t || !r || _S || (console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"), _S = !0), !t || r || gS || (console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"), gS = !0), dt(e, o, s, c, l, u, a, i);
					return;
				case "select":
					for (a in p = o = s = f = null, n) if (c = n[a], n.hasOwnProperty(a) && c != null) switch (a) {
						case "value": break;
						case "multiple": p = c;
						default: r.hasOwnProperty(a) || gu(e, t, a, null, r, c);
					}
					for (i in r) if (a = r[i], c = n[i], r.hasOwnProperty(i) && (a != null || c != null)) switch (i) {
						case "value":
							f = a;
							break;
						case "defaultValue":
							s = a;
							break;
						case "multiple": o = a;
						default: a !== c && gu(e, t, i, a, r, c);
					}
					r = s, t = o, n = p, f == null ? !!n != !!t && (r == null ? gt(e, !!t, t ? [] : "", !1) : gt(e, !!t, r, !0)) : gt(e, !!t, f, !1);
					return;
				case "textarea":
					for (s in p = f = null, n) if (i = n[s], n.hasOwnProperty(s) && i != null && !r.hasOwnProperty(s)) switch (s) {
						case "value": break;
						case "children": break;
						default: gu(e, t, s, null, r, i);
					}
					for (o in r) if (i = r[o], a = n[o], r.hasOwnProperty(o) && (i != null || a != null)) switch (o) {
						case "value":
							f = i;
							break;
						case "defaultValue":
							p = i;
							break;
						case "children": break;
						case "dangerouslySetInnerHTML":
							if (i != null) throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");
							break;
						default: i !== a && gu(e, t, o, i, r, a);
					}
					vt(e, f, p);
					return;
				case "option":
					for (var m in n) if (f = n[m], n.hasOwnProperty(m) && f != null && !r.hasOwnProperty(m)) switch (m) {
						case "selected":
							e.selected = !1;
							break;
						default: gu(e, t, m, null, r, f);
					}
					for (c in r) if (f = r[c], p = n[c], r.hasOwnProperty(c) && f !== p && (f != null || p != null)) switch (c) {
						case "selected":
							e.selected = f && typeof f != "function" && typeof f != "symbol";
							break;
						default: gu(e, t, c, f, r, p);
					}
					return;
				case "img":
				case "link":
				case "area":
				case "base":
				case "br":
				case "col":
				case "embed":
				case "hr":
				case "keygen":
				case "meta":
				case "param":
				case "source":
				case "track":
				case "wbr":
				case "menuitem":
					for (var h in n) f = n[h], n.hasOwnProperty(h) && f != null && !r.hasOwnProperty(h) && gu(e, t, h, null, r, f);
					for (l in r) if (f = r[l], p = n[l], r.hasOwnProperty(l) && f !== p && (f != null || p != null)) switch (l) {
						case "children":
						case "dangerouslySetInnerHTML":
							if (f != null) throw Error(t + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
							break;
						default: gu(e, t, l, f, r, p);
					}
					return;
				default: if (Wt(t)) {
					for (var g in n) f = n[g], n.hasOwnProperty(g) && f !== void 0 && !r.hasOwnProperty(g) && _u(e, t, g, void 0, r, f);
					for (u in r) f = r[u], p = n[u], !r.hasOwnProperty(u) || f === p || f === void 0 && p === void 0 || _u(e, t, u, f, r, p);
					return;
				}
			}
			for (var _ in n) f = n[_], n.hasOwnProperty(_) && f != null && !r.hasOwnProperty(_) && gu(e, t, _, null, r, f);
			for (d in r) f = r[d], p = n[d], !r.hasOwnProperty(d) || f === p || f == null && p == null || gu(e, t, d, f, r, p);
		}
		function bu(e) {
			switch (e) {
				case "class": return "className";
				case "for": return "htmlFor";
				default: return e;
			}
		}
		function xu(e) {
			var t = {};
			e = e.style;
			for (var n = 0; n < e.length; n++) {
				var r = e[n];
				t[r] = e.getPropertyValue(r);
			}
			return t;
		}
		function Su(e, t, n) {
			if (t != null && typeof t != "object") console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
			else {
				var r, i = r = "", a;
				for (a in t) if (t.hasOwnProperty(a)) {
					var o = t[a];
					o != null && typeof o != "boolean" && o !== "" && (a.indexOf("--") === 0 ? (Ce(o, a), r += i + a + ":" + ("" + o).trim()) : typeof o != "number" || o === 0 || Y.has(a) ? (Ce(o, a), r += i + a.replace(vm, "-$1").toLowerCase().replace(ym, "-ms-") + ":" + ("" + o).trim()) : r += i + a.replace(vm, "-$1").toLowerCase().replace(ym, "-ms-") + ":" + o + "px", i = ";");
				}
				r ||= null, t = e.getAttribute("style"), t !== r && (r = mu(r), mu(t) !== r && (n.style = xu(e)));
			}
		}
		function Cu(e, t, n, r, i, a) {
			if (i.delete(n), e = e.getAttribute(n), e === null) switch (typeof r) {
				case "undefined":
				case "function":
				case "symbol":
				case "boolean": return;
			}
			else if (r != null) switch (typeof r) {
				case "function":
				case "symbol":
				case "boolean": break;
				default: if (N(r, t), e === "" + r) return;
			}
			uu(t, e, r, a);
		}
		function wu(e, t, n, r, i, a) {
			if (i.delete(n), e = e.getAttribute(n), e === null) {
				switch (typeof r) {
					case "function":
					case "symbol": return;
				}
				if (!r) return;
			} else switch (typeof r) {
				case "function":
				case "symbol": break;
				default: if (r) return;
			}
			uu(t, e, r, a);
		}
		function Tu(e, t, n, r, i, a) {
			if (i.delete(n), e = e.getAttribute(n), e === null) switch (typeof r) {
				case "undefined":
				case "function":
				case "symbol": return;
			}
			else if (r != null) switch (typeof r) {
				case "function":
				case "symbol": break;
				default: if (N(r, n), e === "" + r) return;
			}
			uu(t, e, r, a);
		}
		function Eu(e, t, n, r, i, a) {
			if (i.delete(n), e = e.getAttribute(n), e === null) switch (typeof r) {
				case "undefined":
				case "function":
				case "symbol":
				case "boolean": return;
				default: if (isNaN(r)) return;
			}
			else if (r != null) switch (typeof r) {
				case "function":
				case "symbol":
				case "boolean": break;
				default: if (!isNaN(r) && (N(r, t), e === "" + r)) return;
			}
			uu(t, e, r, a);
		}
		function Du(e, t, n, r, i, a) {
			if (i.delete(n), e = e.getAttribute(n), e === null) switch (typeof r) {
				case "undefined":
				case "function":
				case "symbol":
				case "boolean": return;
			}
			else if (r != null) switch (typeof r) {
				case "function":
				case "symbol":
				case "boolean": break;
				default: if (N(r, t), n = Xt("" + r), e === n) return;
			}
			uu(t, e, r, a);
		}
		function Ou(e, t, n, r) {
			for (var i = {}, a = /* @__PURE__ */ new Set(), o = e.attributes, s = 0; s < o.length; s++) switch (o[s].name.toLowerCase()) {
				case "value": break;
				case "checked": break;
				case "selected": break;
				default: a.add(o[s].name);
			}
			if (Wt(t)) {
				for (var c in n) if (n.hasOwnProperty(c)) {
					var l = n[c];
					if (l != null) {
						if (Yp.hasOwnProperty(c)) typeof l != "function" && fu(c, l);
						else if (!0 !== n.suppressHydrationWarning) switch (c) {
							case "children":
								typeof l != "string" && typeof l != "number" || uu("children", e.textContent, l, i);
								continue;
							case "suppressContentEditableWarning":
							case "suppressHydrationWarning":
							case "defaultValue":
							case "defaultChecked":
							case "innerHTML":
							case "ref": continue;
							case "dangerouslySetInnerHTML":
								o = e.innerHTML, l = l ? l.__html : void 0, l != null && (l = pu(e, l), uu(c, o, l, i));
								continue;
							case "style":
								a.delete(c), Su(e, l, i);
								continue;
							case "offsetParent":
							case "offsetTop":
							case "offsetLeft":
							case "offsetWidth":
							case "offsetHeight":
							case "isContentEditable":
							case "outerText":
							case "outerHTML":
								a.delete(c.toLowerCase()), console.error("Assignment to read-only property will result in a no-op: `%s`", c);
								continue;
							case "className":
								a.delete("class"), o = F(e, "class", l), uu("className", o, l, i);
								continue;
							default: r.context === WS && t !== "svg" && t !== "math" ? a.delete(c.toLowerCase()) : a.delete(c), o = F(e, c, l), uu(c, o, l, i);
						}
					}
				}
			} else for (l in n) if (n.hasOwnProperty(l) && (c = n[l], c != null)) {
				if (Yp.hasOwnProperty(l)) typeof c != "function" && fu(l, c);
				else if (!0 !== n.suppressHydrationWarning) switch (l) {
					case "children":
						typeof c != "string" && typeof c != "number" || uu("children", e.textContent, c, i);
						continue;
					case "suppressContentEditableWarning":
					case "suppressHydrationWarning":
					case "value":
					case "checked":
					case "selected":
					case "defaultValue":
					case "defaultChecked":
					case "innerHTML":
					case "ref": continue;
					case "dangerouslySetInnerHTML":
						o = e.innerHTML, c = c ? c.__html : void 0, c != null && (c = pu(e, c), o !== c && (i[l] = { __html: o }));
						continue;
					case "className":
						Cu(e, l, "class", c, a, i);
						continue;
					case "tabIndex":
						Cu(e, l, "tabindex", c, a, i);
						continue;
					case "style":
						a.delete(l), Su(e, c, i);
						continue;
					case "multiple":
						a.delete(l), uu(l, e.multiple, c, i);
						continue;
					case "muted":
						a.delete(l), uu(l, e.muted, c, i);
						continue;
					case "autoFocus":
						a.delete("autofocus"), uu(l, e.autofocus, c, i);
						continue;
					case "data": if (t !== "object") {
						a.delete(l), o = e.getAttribute("data"), uu(l, o, c, i);
						continue;
					}
					case "src":
					case "href":
						if (!(c !== "" || t === "a" && l === "href" || t === "object" && l === "data")) {
							console.error(l === "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.", l, l);
							continue;
						}
						Du(e, l, l, c, a, i);
						continue;
					case "action":
					case "formAction":
						if (o = e.getAttribute(l), typeof c == "function") {
							a.delete(l.toLowerCase()), l === "formAction" ? (a.delete("name"), a.delete("formenctype"), a.delete("formmethod"), a.delete("formtarget")) : (a.delete("enctype"), a.delete("method"), a.delete("target"));
							continue;
						} else if (o === OS) {
							a.delete(l.toLowerCase()), uu(l, "function", c, i);
							continue;
						}
						Du(e, l, l.toLowerCase(), c, a, i);
						continue;
					case "xlinkHref":
						Du(e, l, "xlink:href", c, a, i);
						continue;
					case "contentEditable":
						Tu(e, l, "contenteditable", c, a, i);
						continue;
					case "spellCheck":
						Tu(e, l, "spellcheck", c, a, i);
						continue;
					case "draggable":
					case "autoReverse":
					case "externalResourcesRequired":
					case "focusable":
					case "preserveAlpha":
						Tu(e, l, l, c, a, i);
						continue;
					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":
						wu(e, l, l.toLowerCase(), c, a, i);
						continue;
					case "capture":
					case "download":
						a: {
							s = e;
							var u = o = l, d = i;
							if (a.delete(u), s = s.getAttribute(u), s === null) switch (typeof c) {
								case "undefined":
								case "function":
								case "symbol": break a;
								default: if (!1 === c) break a;
							}
							else if (c != null) switch (typeof c) {
								case "function":
								case "symbol": break;
								case "boolean":
									if (!0 === c && s === "") break a;
									break;
								default: if (N(c, o), s === "" + c) break a;
							}
							uu(o, s, c, d);
						}
						continue;
					case "cols":
					case "rows":
					case "size":
					case "span":
						a: {
							if (s = e, u = o = l, d = i, a.delete(u), s = s.getAttribute(u), s === null) switch (typeof c) {
								case "undefined":
								case "function":
								case "symbol":
								case "boolean": break a;
								default: if (isNaN(c) || 1 > c) break a;
							}
							else if (c != null) switch (typeof c) {
								case "function":
								case "symbol":
								case "boolean": break;
								default: if (!(isNaN(c) || 1 > c) && (N(c, o), s === "" + c)) break a;
							}
							uu(o, s, c, d);
						}
						continue;
					case "rowSpan":
						Eu(e, l, "rowspan", c, a, i);
						continue;
					case "start":
						Eu(e, l, l, c, a, i);
						continue;
					case "xHeight":
						Cu(e, l, "x-height", c, a, i);
						continue;
					case "xlinkActuate":
						Cu(e, l, "xlink:actuate", c, a, i);
						continue;
					case "xlinkArcrole":
						Cu(e, l, "xlink:arcrole", c, a, i);
						continue;
					case "xlinkRole":
						Cu(e, l, "xlink:role", c, a, i);
						continue;
					case "xlinkShow":
						Cu(e, l, "xlink:show", c, a, i);
						continue;
					case "xlinkTitle":
						Cu(e, l, "xlink:title", c, a, i);
						continue;
					case "xlinkType":
						Cu(e, l, "xlink:type", c, a, i);
						continue;
					case "xmlBase":
						Cu(e, l, "xml:base", c, a, i);
						continue;
					case "xmlLang":
						Cu(e, l, "xml:lang", c, a, i);
						continue;
					case "xmlSpace":
						Cu(e, l, "xml:space", c, a, i);
						continue;
					case "inert":
						c !== "" || CS[l] || (CS[l] = !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.", l)), wu(e, l, l, c, a, i);
						continue;
					default: if (!(2 < l.length) || l[0] !== "o" && l[0] !== "O" || l[1] !== "n" && l[1] !== "N") {
						s = Gt(l), o = !1, r.context === WS && t !== "svg" && t !== "math" ? a.delete(s.toLowerCase()) : (u = l.toLowerCase(), u = km.hasOwnProperty(u) && km[u] || null, u !== null && u !== l && (o = !0, a.delete(u)), a.delete(s));
						a: if (u = e, d = s, s = c, $e(d)) if (u.hasAttribute(d)) u = u.getAttribute(d), N(s, d), s = u === "" + s ? s : u;
						else {
							switch (typeof s) {
								case "function":
								case "symbol": break a;
								case "boolean": if (u = d.toLowerCase().slice(0, 5), u !== "data-" && u !== "aria-") break a;
							}
							s = s === void 0 ? void 0 : null;
						}
						else s = void 0;
						o || uu(l, s, c, i);
					}
				}
			}
			return 0 < a.size && !0 !== n.suppressHydrationWarning && du(e, a, i), Object.keys(i).length === 0 ? null : i;
		}
		function ku(e, t) {
			switch (e.length) {
				case 0: return "";
				case 1: return e[0];
				case 2: return e[0] + " " + t + " " + e[1];
				default: return e.slice(0, -1).join(", ") + ", " + t + " " + e[e.length - 1];
			}
		}
		function Au(e) {
			switch (e) {
				case "css":
				case "script":
				case "font":
				case "img":
				case "image":
				case "input":
				case "link": return !0;
				default: return !1;
			}
		}
		function ju() {
			if (typeof performance.getEntriesByType == "function") {
				for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {
					var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;
					if (a && s && Au(o)) {
						for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {
							var c = n[r], l = c.startTime;
							if (l > s) break;
							var u = c.transferSize, d = c.initiatorType;
							u && Au(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
						}
						if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;
					}
				}
				if (0 < e) return t / e / 1e6;
			}
			return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
		}
		function Mu(e) {
			return e.nodeType === 9 ? e : e.ownerDocument;
		}
		function Nu(e) {
			switch (e) {
				case Om: return GS;
				case Dm: return KS;
				default: return WS;
			}
		}
		function Pu(e, t) {
			if (e === WS) switch (t) {
				case "svg": return GS;
				case "math": return KS;
				default: return WS;
			}
			return e === GS && t === "foreignObject" ? WS : e;
		}
		function Fu(e, t) {
			return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
		}
		function Iu() {
			var e = window.event;
			return e && e.type === "popstate" ? e === XS ? !1 : (XS = e, !0) : (XS = null, !1);
		}
		function Lu() {
			var e = window.event;
			return e && e !== ZS ? e.type : null;
		}
		function Ru() {
			var e = window.event;
			return e && e !== ZS ? e.timeStamp : -1.1;
		}
		function zu(e) {
			setTimeout(function() {
				throw e;
			});
		}
		function Bu(e, t, n) {
			switch (t) {
				case "button":
				case "input":
				case "select":
				case "textarea":
					n.autoFocus && e.focus();
					break;
				case "img": n.src ? e.src = n.src : n.srcSet && (e.srcset = n.srcSet);
			}
		}
		function Vu() {}
		function Hu(e, t, n, r) {
			yu(e, t, n, r), e[Vp] = r;
		}
		function Uu(e) {
			Bt(e, "");
		}
		function Wu(e, t, n) {
			e.nodeValue = n;
		}
		function Gu(e) {
			if (!e.__reactWarnedAboutChildrenConflict) {
				var t = e[Vp] || null;
				if (t !== null) {
					var n = Ke(e);
					n !== null && (typeof t.children == "string" || typeof t.children == "number" ? (e.__reactWarnedAboutChildrenConflict = !0, M(n, function() {
						console.error("Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"children\" text content using React. It should be a leaf with no children. Otherwise it's ambiguous which children should be used.");
					})) : t.dangerouslySetInnerHTML != null && (e.__reactWarnedAboutChildrenConflict = !0, M(n, function() {
						console.error("Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"dangerouslySetInnerHTML\" using React. It should be a leaf with no children. Otherwise it's ambiguous which children should be used.");
					})));
				}
			}
		}
		function Ku(e) {
			return e === "head";
		}
		function qu(e, t) {
			e.removeChild(t);
		}
		function Ju(e, t) {
			(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e).removeChild(t);
		}
		function Yu(e, t) {
			var n = t, r = 0;
			do {
				var i = n.nextSibling;
				if (e.removeChild(n), i && i.nodeType === 8) if (n = i.data, n === NS || n === jS) {
					if (r === 0) {
						e.removeChild(i), hf(t);
						return;
					}
					r--;
				} else if (n === MS || n === PS || n === FS || n === IS || n === AS) r++;
				else if (n === LS) bd(e.ownerDocument.documentElement);
				else if (n === zS) {
					n = e.ownerDocument.head, bd(n);
					for (var a = n.firstChild; a;) {
						var o = a.nextSibling, s = a.nodeName;
						a[qp] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
					}
				} else n === RS && bd(e.ownerDocument.body);
				n = i;
			} while (n);
			hf(t);
		}
		function Xu(e, t) {
			var n = e;
			e = 0;
			do {
				var r = n.nextSibling;
				if (n.nodeType === 1 ? t ? (n._stashedDisplay = n.style.display, n.style.display = "none") : (n.style.display = n._stashedDisplay || "", n.getAttribute("style") === "" && n.removeAttribute("style")) : n.nodeType === 3 && (t ? (n._stashedText = n.nodeValue, n.nodeValue = "") : n.nodeValue = n._stashedText || ""), r && r.nodeType === 8) if (n = r.data, n === NS) {
					if (e === 0) break;
					e--;
				} else n !== MS && n !== PS && n !== FS && n !== IS || e++;
				n = r;
			} while (n);
		}
		function Zu(e) {
			Xu(e, !0);
		}
		function Qu(e) {
			e = e.style, typeof e.setProperty == "function" ? e.setProperty("display", "none", "important") : e.display = "none";
		}
		function $u(e) {
			e.nodeValue = "";
		}
		function ed(e) {
			Xu(e, !1);
		}
		function td(e, t) {
			t = t[US], t = t != null && t.hasOwnProperty("display") ? t.display : null, e.style.display = t == null || typeof t == "boolean" ? "" : ("" + t).trim();
		}
		function nd(e, t) {
			e.nodeValue = t;
		}
		function rd(e) {
			var t = e.firstChild;
			for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
				var n = t;
				switch (t = t.nextSibling, n.nodeName) {
					case "HTML":
					case "HEAD":
					case "BODY":
						rd(n), We(n);
						continue;
					case "SCRIPT":
					case "STYLE": continue;
					case "LINK": if (n.rel.toLowerCase() === "stylesheet") continue;
				}
				e.removeChild(n);
			}
		}
		function id(e, t, n, r) {
			for (; e.nodeType === 1;) {
				var i = n;
				if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
					if (!r && (e.nodeName !== "INPUT" || e.type !== "hidden")) break;
				} else if (!r) if (t === "input" && e.type === "hidden") {
					N(i.name, "name");
					var a = i.name == null ? null : "" + i.name;
					if (i.type === "hidden" && e.getAttribute("name") === a) return e;
				} else return e;
				else if (!e[qp]) switch (t) {
					case "meta":
						if (!e.hasAttribute("itemprop")) break;
						return e;
					case "link":
						if (a = e.getAttribute("rel"), a === "stylesheet" && e.hasAttribute("data-precedence") || a !== i.rel || e.getAttribute("href") !== (i.href == null || i.href === "" ? null : i.href) || e.getAttribute("crossorigin") !== (i.crossOrigin == null ? null : i.crossOrigin) || e.getAttribute("title") !== (i.title == null ? null : i.title)) break;
						return e;
					case "style":
						if (e.hasAttribute("data-precedence")) break;
						return e;
					case "script":
						if (a = e.getAttribute("src"), (a !== (i.src == null ? null : i.src) || e.getAttribute("type") !== (i.type == null ? null : i.type) || e.getAttribute("crossorigin") !== (i.crossOrigin == null ? null : i.crossOrigin)) && a && e.hasAttribute("async") && !e.hasAttribute("itemprop")) break;
						return e;
					default: return e;
				}
				if (e = ud(e.nextSibling), e === null) break;
			}
			return null;
		}
		function ad(e, t, n) {
			if (t === "") return null;
			for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = ud(e.nextSibling), e === null)) return null;
			return e;
		}
		function od(e, t) {
			for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = ud(e.nextSibling), e === null)) return null;
			return e;
		}
		function sd(e) {
			return e.data === PS || e.data === FS;
		}
		function cd(e) {
			return e.data === IS || e.data === PS && e.ownerDocument.readyState !== HS;
		}
		function ld(e, t) {
			var n = e.ownerDocument;
			if (e.data === FS) e._reactRetry = t;
			else if (e.data !== PS || n.readyState !== HS) t();
			else {
				var r = function() {
					t(), n.removeEventListener("DOMContentLoaded", r);
				};
				n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
			}
		}
		function ud(e) {
			for (; e != null; e = e.nextSibling) {
				var t = e.nodeType;
				if (t === 1 || t === 3) break;
				if (t === 8) {
					if (t = e.data, t === MS || t === IS || t === PS || t === FS || t === AS || t === BS || t === VS) break;
					if (t === NS || t === jS) return null;
				}
			}
			return e;
		}
		function dd(e) {
			if (e.nodeType === 1) {
				for (var t = e.nodeName.toLowerCase(), n = {}, r = e.attributes, i = 0; i < r.length; i++) {
					var a = r[i];
					n[bu(a.name)] = a.name.toLowerCase() === "style" ? xu(e) : a.value;
				}
				return {
					type: t,
					props: n
				};
			}
			return e.nodeType === 8 ? e.data === AS ? {
				type: "Activity",
				props: {}
			} : {
				type: "Suspense",
				props: {}
			} : e.nodeValue;
		}
		function fd(e, t, n) {
			return n === null || !0 !== n[kS] ? (e.nodeValue === t ? e = null : (t = mu(t), e = mu(e.nodeValue) === t ? null : e.nodeValue), e) : null;
		}
		function pd(e) {
			e = e.nextSibling;
			for (var t = 0; e;) {
				if (e.nodeType === 8) {
					var n = e.data;
					if (n === NS || n === jS) {
						if (t === 0) return ud(e.nextSibling);
						t--;
					} else n !== MS && n !== IS && n !== PS && n !== FS && n !== AS || t++;
				}
				e = e.nextSibling;
			}
			return null;
		}
		function md(e) {
			e = e.previousSibling;
			for (var t = 0; e;) {
				if (e.nodeType === 8) {
					var n = e.data;
					if (n === MS || n === IS || n === PS || n === FS || n === AS) {
						if (t === 0) return e;
						t--;
					} else n !== NS && n !== jS || t++;
				}
				e = e.previousSibling;
			}
			return null;
		}
		function hd(e) {
			hf(e);
		}
		function gd(e) {
			hf(e);
		}
		function _d(e) {
			hf(e);
		}
		function vd(e, t, n, r, i) {
			switch (i && Rt(e, r.ancestorInfo), t = Mu(n), e) {
				case "html":
					if (e = t.documentElement, !e) throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");
					return e;
				case "head":
					if (e = t.head, !e) throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");
					return e;
				case "body":
					if (e = t.body, !e) throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");
					return e;
				default: throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.");
			}
		}
		function yd(e, t, n, r) {
			if (!n[Hp] && Ke(n)) {
				var i = n.tagName.toLowerCase();
				console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.", i, i, i);
			}
			switch (e) {
				case "html":
				case "head":
				case "body": break;
				default: console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.");
			}
			for (i = n.attributes; i.length;) n.removeAttributeNode(i[0]);
			vu(n, e, t), n[Bp] = r, n[Vp] = t;
		}
		function bd(e) {
			for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
			We(e);
		}
		function xd(e) {
			return typeof e.getRootNode == "function" ? e.getRootNode() : e.nodeType === 9 ? e : e.ownerDocument;
		}
		function Sd(e, t, n) {
			var r = fC;
			if (r && typeof t == "string" && t) {
				var i = lt(t);
				i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), uC.has(i) || (uC.add(i), e = {
					rel: e,
					crossOrigin: n,
					href: t
				}, r.querySelector(i) === null && (t = r.createElement("link"), vu(t, "link", e), Ye(t), r.head.appendChild(t)));
			}
		}
		function Cd(e, t, n, r) {
			var i = (i = Yf.current) ? xd(i) : null;
			if (!i) throw Error("\"resourceRoot\" was expected to exist. This is a bug in React.");
			switch (e) {
				case "meta":
				case "title": return null;
				case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Td(n.href), t = Je(i).hoistableStyles, r = t.get(n), r || (r = {
					type: "style",
					instance: null,
					count: 0,
					state: null
				}, t.set(n, r)), r) : {
					type: "void",
					instance: null,
					count: 0,
					state: null
				};
				case "link":
					if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
						e = Td(n.href);
						var a = Je(i).hoistableStyles, o = a.get(e);
						if (!o && (i = i.ownerDocument || i, o = {
							type: "stylesheet",
							instance: null,
							count: 0,
							state: {
								loading: iC,
								preload: null
							}
						}, a.set(e, o), (a = i.querySelector(Ed(e))) && !a._p && (o.instance = a, o.state.loading = aC | cC), !lC.has(e))) {
							var s = {
								rel: "preload",
								as: "style",
								href: n.href,
								crossOrigin: n.crossOrigin,
								integrity: n.integrity,
								media: n.media,
								hrefLang: n.hrefLang,
								referrerPolicy: n.referrerPolicy
							};
							lC.set(e, s), a || Od(i, e, s, o.state);
						}
						if (t && r === null) throw n = "\n\n  - " + wd(t) + "\n  + " + wd(n), Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key." + n);
						return o;
					}
					if (t && r !== null) throw n = "\n\n  - " + wd(t) + "\n  + " + wd(n), Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key." + n);
					return null;
				case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = kd(n), t = Je(i).hoistableScripts, r = t.get(n), r || (r = {
					type: "script",
					instance: null,
					count: 0,
					state: null
				}, t.set(n, r)), r) : {
					type: "void",
					instance: null,
					count: 0,
					state: null
				};
				default: throw Error("getResource encountered a type it did not expect: \"" + e + "\". this is a bug in React.");
			}
		}
		function wd(e) {
			var t = 0, n = "<link";
			return typeof e.rel == "string" ? (t++, n += " rel=\"" + e.rel + "\"") : dp.call(e, "rel") && (t++, n += " rel=\"" + (e.rel === null ? "null" : "invalid type " + typeof e.rel) + "\""), typeof e.href == "string" ? (t++, n += " href=\"" + e.href + "\"") : dp.call(e, "href") && (t++, n += " href=\"" + (e.href === null ? "null" : "invalid type " + typeof e.href) + "\""), typeof e.precedence == "string" ? (t++, n += " precedence=\"" + e.precedence + "\"") : dp.call(e, "precedence") && (t++, n += " precedence={" + (e.precedence === null ? "null" : "invalid type " + typeof e.precedence) + "}"), Object.getOwnPropertyNames(e).length > t && (n += " ..."), n + " />";
		}
		function Td(e) {
			return "href=\"" + lt(e) + "\"";
		}
		function Ed(e) {
			return "link[rel=\"stylesheet\"][" + e + "]";
		}
		function Dd(e) {
			return Cf({}, e, {
				"data-precedence": e.precedence,
				precedence: null
			});
		}
		function Od(e, t, n, r) {
			e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]") ? r.loading = aC : (t = e.createElement("link"), r.preload = t, t.addEventListener("load", function() {
				return r.loading |= aC;
			}), t.addEventListener("error", function() {
				return r.loading |= oC;
			}), vu(t, "link", n), Ye(t), e.head.appendChild(t));
		}
		function kd(e) {
			return "[src=\"" + lt(e) + "\"]";
		}
		function Ad(e) {
			return "script[async]" + e;
		}
		function jd(e, t, n) {
			if (t.count++, t.instance === null) switch (t.type) {
				case "style":
					var r = e.querySelector("style[data-href~=\"" + lt(n.href) + "\"]");
					if (r) return t.instance = r, Ye(r), r;
					var i = Cf({}, n, {
						"data-href": n.href,
						"data-precedence": n.precedence,
						href: null,
						precedence: null
					});
					return r = (e.ownerDocument || e).createElement("style"), Ye(r), vu(r, "style", i), Md(r, n.precedence, e), t.instance = r;
				case "stylesheet":
					i = Td(n.href);
					var a = e.querySelector(Ed(i));
					if (a) return t.state.loading |= cC, t.instance = a, Ye(a), a;
					r = Dd(n), (i = lC.get(i)) && Nd(r, i), a = (e.ownerDocument || e).createElement("link"), Ye(a);
					var o = a;
					return o._p = new Promise(function(e, t) {
						o.onload = e, o.onerror = t;
					}), vu(a, "link", r), t.state.loading |= cC, Md(a, n.precedence, e), t.instance = a;
				case "script": return a = kd(n.src), (i = e.querySelector(Ad(a))) ? (t.instance = i, Ye(i), i) : (r = n, (i = lC.get(a)) && (r = Cf({}, n), Pd(r, i)), e = e.ownerDocument || e, i = e.createElement("script"), Ye(i), vu(i, "link", r), e.head.appendChild(i), t.instance = i);
				case "void": return null;
				default: throw Error("acquireResource encountered a resource type it did not expect: \"" + t.type + "\". this is a bug in React.");
			}
			else t.type === "stylesheet" && (t.state.loading & cC) === iC && (r = t.instance, t.state.loading |= cC, Md(r, n.precedence, e));
			return t.instance;
		}
		function Md(e, t, n) {
			for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {
				var s = r[o];
				if (s.dataset.precedence === t) a = s;
				else if (a !== i) break;
			}
			a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
		}
		function Nd(e, t) {
			e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
		}
		function Pd(e, t) {
			e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
		}
		function Fd(e, t, n) {
			if (pC === null) {
				var r = /* @__PURE__ */ new Map(), i = pC = /* @__PURE__ */ new Map();
				i.set(n, r);
			} else i = pC, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
			if (r.has(e)) return r;
			for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
				var a = n[i];
				if (!(a[qp] || a[Bp] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== Om) {
					var o = a.getAttribute(t) || "";
					o = e + o;
					var s = r.get(o);
					s ? s.push(a) : r.set(o, [a]);
				}
			}
			return r;
		}
		function Id(e, t, n) {
			e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
		}
		function Ld(e, t, n) {
			var r = !n.ancestorInfo.containerTagInScope;
			if (n.context === GS || t.itemProp != null) return !r || t.itemProp == null || e !== "meta" && e !== "title" && e !== "style" && e !== "link" && e !== "script" || console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.", e, e), !1;
			switch (e) {
				case "meta":
				case "title": return !0;
				case "style":
					if (typeof t.precedence != "string" || typeof t.href != "string" || t.href === "") {
						r && console.error("Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel=\"stylesheet\" ...> tags.  Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence=\"default\"` and `href=\"some unique resource identifier\"`.");
						break;
					}
					return !0;
				case "link":
					if (typeof t.rel != "string" || typeof t.href != "string" || t.href === "" || t.onLoad || t.onError) {
						if (t.rel === "stylesheet" && typeof t.precedence == "string") {
							e = t.href;
							var i = t.onError, a = t.disabled;
							n = [], t.onLoad && n.push("`onLoad`"), i && n.push("`onError`"), a != null && n.push("`disabled`"), i = ku(n, "and"), i += n.length === 1 ? " prop" : " props", a = n.length === 1 ? "an " + i : "the " + i, n.length && console.error("React encountered a <link rel=\"stylesheet\" href=\"%s\" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.", e, a, i);
						}
						r && (typeof t.rel != "string" || typeof t.href != "string" || t.href === "" ? console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag") : (t.onError || t.onLoad) && console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));
						break;
					}
					switch (t.rel) {
						case "stylesheet": return e = t.precedence, t = t.disabled, typeof e != "string" && r && console.error("Cannot render a <link rel=\"stylesheet\" /> outside the main document without knowing its precedence. Consider adding precedence=\"default\" or moving it into the root <head> tag."), typeof e == "string" && t == null;
						default: return !0;
					}
				case "script":
					if (e = t.async && typeof t.async != "function" && typeof t.async != "symbol", !e || t.onLoad || t.onError || !t.src || typeof t.src != "string") {
						r && (e ? t.onLoad || t.onError ? console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.") : console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>.") : console.error("Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async=\"\" or moving it into the root <head> tag."));
						break;
					}
					return !0;
				case "noscript":
				case "template": r && console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.", e);
			}
			return !1;
		}
		function Rd(e) {
			return !(e.type === "stylesheet" && (e.state.loading & sC) === iC);
		}
		function zd(e, t, n, r) {
			if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && (n.state.loading & cC) === iC) {
				if (n.instance === null) {
					var i = Td(r.href), a = t.querySelector(Ed(i));
					if (a) {
						t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = Vd.bind(e), t.then(e, e)), n.state.loading |= cC, n.instance = a, Ye(a);
						return;
					}
					a = t.ownerDocument || t, r = Dd(r), (i = lC.get(i)) && Nd(r, i), a = a.createElement("link"), Ye(a);
					var o = a;
					o._p = new Promise(function(e, t) {
						o.onload = e, o.onerror = t;
					}), vu(a, "link", r), n.instance = a;
				}
				e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && (n.state.loading & sC) === iC && (e.count++, n = Vd.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
			}
		}
		function Bd(e, t) {
			return e.stylesheets && e.count === 0 && Hd(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
				var r = setTimeout(function() {
					if (e.stylesheets && Hd(e, e.stylesheets), e.unsuspend) {
						var t = e.unsuspend;
						e.unsuspend = null, t();
					}
				}, mC + t);
				0 < e.imgBytes && _C === 0 && (_C = 125 * ju() * gC);
				var i = setTimeout(function() {
					if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && Hd(e, e.stylesheets), e.unsuspend)) {
						var t = e.unsuspend;
						e.unsuspend = null, t();
					}
				}, (e.imgBytes > _C ? 50 : hC) + t);
				return e.unsuspend = n, function() {
					e.unsuspend = null, clearTimeout(r), clearTimeout(i);
				};
			} : null;
		}
		function Vd() {
			if (this.count--, this.count === 0 && (this.imgCount === 0 || !this.waitingForImages)) {
				if (this.stylesheets) Hd(this, this.stylesheets);
				else if (this.unsuspend) {
					var e = this.unsuspend;
					this.unsuspend = null, e();
				}
			}
		}
		function Hd(e, t) {
			e.stylesheets = null, e.unsuspend !== null && (e.count++, yC = /* @__PURE__ */ new Map(), t.forEach(Ud, e), yC = null, Vd.call(e));
		}
		function Ud(e, t) {
			if (!(t.state.loading & cC)) {
				var n = yC.get(e);
				if (n) var r = n.get(vC);
				else {
					n = /* @__PURE__ */ new Map(), yC.set(e, n);
					for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {
						var o = i[a];
						(o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);
					}
					r && n.set(vC, r);
				}
				i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(vC, i), n.set(o, i), this.count++, r = Vd.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= cC;
			}
		}
		function Wd(e, t, n, r, i, a, o, s, c) {
			for (this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = eC, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = P(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = P(0), this.hiddenUpdates = P(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.incompleteTransitions = /* @__PURE__ */ new Map(), this.passiveEffectDuration = this.effectDuration = -0, this.memoizedUpdaters = /* @__PURE__ */ new Set(), e = this.pendingUpdatersLaneMap = [], t = 0; 31 > t; t++) e.push(/* @__PURE__ */ new Set());
			this._debugRootType = n ? "hydrateRoot()" : "createRoot()";
		}
		function Gd(e, t, n, r, i, a, o, s, c, l, u, d) {
			return e = new Wd(e, t, n, o, c, l, u, d, s), t = kg, !0 === a && (t |= jg | Mg), t |= Ag, a = m(3, null, null, t), e.current = a, a.stateNode = e, t = Yr(), Xr(t), e.pooledCache = t, Xr(t), a.memoizedState = {
				element: r,
				isDehydrated: n,
				cache: t
			}, Hi(a), e;
		}
		function Kd(e) {
			return e ? (e = Eg, e) : Eg;
		}
		function qd(e, t, n, r, i, a) {
			if (Ep && typeof Ep.onScheduleFiberRoot == "function") try {
				Ep.onScheduleFiberRoot(Tp, r, n);
			} catch (e) {
				Dp || (Dp = !0, console.error("React instrumentation encountered an error: %o", e));
			}
			i = Kd(i), r.context === null ? r.context = i : r.pendingContext = i, up && lp !== null && !DC && (DC = !0, console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", D(lp) || "Unknown")), r = Wi(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (typeof a != "function" && console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.", a), r.callback = a), n = Gi(e, r, t), n !== null && (Qr(t, "root.render()", null), Kc(n, e, t), Ki(n, e, t));
		}
		function Jd(e, t) {
			if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
				var n = e.retryLane;
				e.retryLane = n !== 0 && n < t ? n : t;
			}
		}
		function Yd(e, t) {
			Jd(e, t), (e = e.alternate) && Jd(e, t);
		}
		function Xd(e) {
			if (e.tag === 13 || e.tag === 31) {
				var t = rr(e, 67108864);
				t !== null && Kc(t, e, 67108864), Yd(e, 67108864);
			}
		}
		function Zd(e) {
			if (e.tag === 13 || e.tag === 31) {
				var t = K(e);
				t = Re(t);
				var n = rr(e, t);
				n !== null && Kc(n, e, t), Yd(e, t);
			}
		}
		function Qd() {
			return lp;
		}
		function $d(e, t, n, r) {
			var i = q.T;
			q.T = null;
			var a = Hf.p;
			try {
				Hf.p = Fp, tf(e, t, n, r);
			} finally {
				Hf.p = a, q.T = i;
			}
		}
		function ef(e, t, n, r) {
			var i = q.T;
			q.T = null;
			var a = Hf.p;
			try {
				Hf.p = Ip, tf(e, t, n, r);
			} finally {
				Hf.p = a, q.T = i;
			}
		}
		function tf(e, t, n, r) {
			if (RC) {
				var i = nf(r);
				if (i === null) iu(e, t, r, zC, n), of(e, r);
				else if (cf(i, e, t, n, r)) r.stopPropagation();
				else if (of(e, r), t & 4 && -1 < qC.indexOf(e)) {
					for (; i !== null;) {
						var a = Ke(i);
						if (a !== null) switch (a.tag) {
							case 3:
								if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
									var o = Oe(a.pendingLanes);
									if (o !== 0) {
										var s = a;
										for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
											var c = 1 << 31 - kp(o);
											s.entanglements[1] |= c, o &= ~c;
										}
										zl(a), (Hb & (Nb | Pb)) === Mb && (bx = gp() + xx, Bl(0, !1));
									}
								}
								break;
							case 31:
							case 13: s = rr(a, 2), s !== null && Kc(s, a, 2), Zc(), Yd(a, 2);
						}
						if (a = nf(r), a === null && iu(e, t, r, zC, n), a === i) break;
						i = a;
					}
					i !== null && r.stopPropagation();
				} else iu(e, t, r, null, n);
			}
		}
		function nf(e) {
			return e = Qt(e), rf(e);
		}
		function rf(e) {
			if (zC = null, e = Ge(e), e !== null) {
				var t = x(e);
				if (t === null) e = null;
				else {
					var n = t.tag;
					if (n === 13) {
						if (e = ee(t), e !== null) return e;
						e = null;
					} else if (n === 31) {
						if (e = S(t), e !== null) return e;
						e = null;
					} else if (n === 3) {
						if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null;
						e = null;
					} else t !== e && (e = null);
				}
			}
			return zC = e, null;
		}
		function af(e) {
			switch (e) {
				case "beforetoggle":
				case "cancel":
				case "click":
				case "close":
				case "contextmenu":
				case "copy":
				case "cut":
				case "auxclick":
				case "dblclick":
				case "dragend":
				case "dragstart":
				case "drop":
				case "focusin":
				case "focusout":
				case "input":
				case "invalid":
				case "keydown":
				case "keypress":
				case "keyup":
				case "mousedown":
				case "mouseup":
				case "paste":
				case "pause":
				case "play":
				case "pointercancel":
				case "pointerdown":
				case "pointerup":
				case "ratechange":
				case "reset":
				case "resize":
				case "seeked":
				case "submit":
				case "toggle":
				case "touchcancel":
				case "touchend":
				case "touchstart":
				case "volumechange":
				case "change":
				case "selectionchange":
				case "textInput":
				case "compositionstart":
				case "compositionend":
				case "compositionupdate":
				case "beforeblur":
				case "afterblur":
				case "beforeinput":
				case "blur":
				case "fullscreenchange":
				case "focus":
				case "hashchange":
				case "popstate":
				case "select":
				case "selectstart": return Fp;
				case "drag":
				case "dragenter":
				case "dragexit":
				case "dragleave":
				case "dragover":
				case "mousemove":
				case "mouseout":
				case "mouseover":
				case "pointermove":
				case "pointerout":
				case "pointerover":
				case "scroll":
				case "touchmove":
				case "wheel":
				case "mouseenter":
				case "mouseleave":
				case "pointerenter":
				case "pointerleave": return Ip;
				case "message": switch (_p()) {
					case vp: return Fp;
					case yp: return Ip;
					case bp:
					case xp: return Lp;
					case Sp: return Rp;
					default: return Lp;
				}
				default: return Lp;
			}
		}
		function of(e, t) {
			switch (e) {
				case "focusin":
				case "focusout":
					VC = null;
					break;
				case "dragenter":
				case "dragleave":
					HC = null;
					break;
				case "mouseover":
				case "mouseout":
					UC = null;
					break;
				case "pointerover":
				case "pointerout":
					WC.delete(t.pointerId);
					break;
				case "gotpointercapture":
				case "lostpointercapture": GC.delete(t.pointerId);
			}
		}
		function sf(e, t, n, r, i, a) {
			return e === null || e.nativeEvent !== a ? (e = {
				blockedOn: t,
				domEventName: n,
				eventSystemFlags: r,
				nativeEvent: a,
				targetContainers: [i]
			}, t !== null && (t = Ke(t), t !== null && Xd(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
		}
		function cf(e, t, n, r, i) {
			switch (t) {
				case "focusin": return VC = sf(VC, e, t, n, r, i), !0;
				case "dragenter": return HC = sf(HC, e, t, n, r, i), !0;
				case "mouseover": return UC = sf(UC, e, t, n, r, i), !0;
				case "pointerover":
					var a = i.pointerId;
					return WC.set(a, sf(WC.get(a) || null, e, t, n, r, i)), !0;
				case "gotpointercapture": return a = i.pointerId, GC.set(a, sf(GC.get(a) || null, e, t, n, r, i)), !0;
			}
			return !1;
		}
		function lf(e) {
			var t = Ge(e.target);
			if (t !== null) {
				var n = x(t);
				if (n !== null) {
					if (t = n.tag, t === 13) {
						if (t = ee(n), t !== null) {
							e.blockedOn = t, Ue(e.priority, function() {
								Zd(n);
							});
							return;
						}
					} else if (t === 31) {
						if (t = S(n), t !== null) {
							e.blockedOn = t, Ue(e.priority, function() {
								Zd(n);
							});
							return;
						}
					} else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) {
						e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null;
						return;
					}
				}
			}
			e.blockedOn = null;
		}
		function uf(e) {
			if (e.blockedOn !== null) return !1;
			for (var t = e.targetContainers; 0 < t.length;) {
				var n = nf(e.nativeEvent);
				if (n === null) {
					n = e.nativeEvent;
					var r = new n.constructor(n.type, n), i = r;
					Vm !== null && console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."), Vm = i, n.target.dispatchEvent(r), Vm === null && console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."), Vm = null;
				} else return t = Ke(n), t !== null && Xd(t), e.blockedOn = n, !1;
				t.shift();
			}
			return !0;
		}
		function df(e, t, n) {
			uf(e) && n.delete(t);
		}
		function ff() {
			BC = !1, VC !== null && uf(VC) && (VC = null), HC !== null && uf(HC) && (HC = null), UC !== null && uf(UC) && (UC = null), WC.forEach(df), GC.forEach(df);
		}
		function pf(e, t) {
			e.blockedOn === t && (e.blockedOn = null, BC || (BC = !0, bf.unstable_scheduleCallback(bf.unstable_NormalPriority, ff)));
		}
		function mf(e) {
			JC !== e && (JC = e, bf.unstable_scheduleCallback(bf.unstable_NormalPriority, function() {
				JC === e && (JC = null);
				for (var t = 0; t < e.length; t += 3) {
					var n = e[t], r = e[t + 1], i = e[t + 2];
					if (typeof r != "function") {
						if (rf(r || n) === null) continue;
						break;
					}
					var a = Ke(n);
					a !== null && (e.splice(t, 3), t -= 3, n = {
						pending: !0,
						data: i,
						method: n.method,
						action: r
					}, Object.freeze(n), To(a, n, r, i));
				}
			}));
		}
		function hf(e) {
			function t(t) {
				return pf(t, e);
			}
			VC !== null && pf(VC, e), HC !== null && pf(HC, e), UC !== null && pf(UC, e), WC.forEach(t), GC.forEach(t);
			for (var n = 0; n < KC.length; n++) {
				var r = KC[n];
				r.blockedOn === e && (r.blockedOn = null);
			}
			for (; 0 < KC.length && (n = KC[0], n.blockedOn === null);) lf(n), n.blockedOn === null && KC.shift();
			if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
				var i = n[r], a = n[r + 1], o = i[Vp] || null;
				if (typeof a == "function") o || mf(n);
				else if (o) {
					var s = null;
					if (a && a.hasAttribute("formAction")) {
						if (i = a, o = a[Vp] || null) s = o.formAction;
						else if (rf(i) !== null) continue;
					} else s = o.action;
					typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), mf(n);
				}
			}
		}
		function gf() {
			function e(e) {
				e.canIntercept && e.info === "react-transition" && e.intercept({
					handler: function() {
						return new Promise(function(e) {
							return i = e;
						});
					},
					focusReset: "manual",
					scroll: "manual"
				});
			}
			function t() {
				i !== null && (i(), i = null), r || setTimeout(n, 20);
			}
			function n() {
				if (!r && !navigation.transition) {
					var e = navigation.currentEntry;
					e && e.url != null && navigation.navigate(e.url, {
						state: e.getState(),
						info: "react-transition",
						history: "replace"
					});
				}
			}
			if (typeof navigation == "object") {
				var r = !1, i = null;
				return navigation.addEventListener("navigate", e), navigation.addEventListener("navigatesuccess", t), navigation.addEventListener("navigateerror", t), setTimeout(n, 100), function() {
					r = !0, navigation.removeEventListener("navigate", e), navigation.removeEventListener("navigatesuccess", t), navigation.removeEventListener("navigateerror", t), i !== null && (i(), i = null);
				};
			}
		}
		function _f(e) {
			this._internalRoot = e;
		}
		function vf(e) {
			this._internalRoot = e;
		}
		function yf(e) {
			e[Hp] && (e._reactRootContainer ? console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.") : console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."));
		}
		typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
		var bf = p(), xf = g(), Sf = y(), Cf = Object.assign, wf = Symbol.for("react.element"), Tf = Symbol.for("react.transitional.element"), Ef = Symbol.for("react.portal"), Df = Symbol.for("react.fragment"), Of = Symbol.for("react.strict_mode"), kf = Symbol.for("react.profiler"), Af = Symbol.for("react.consumer"), jf = Symbol.for("react.context"), Mf = Symbol.for("react.forward_ref"), Nf = Symbol.for("react.suspense"), Pf = Symbol.for("react.suspense_list"), Ff = Symbol.for("react.memo"), If = Symbol.for("react.lazy"), Lf = Symbol.for("react.activity"), Rf = Symbol.for("react.memo_cache_sentinel"), zf = Symbol.iterator, Bf = Symbol.for("react.client.reference"), Vf = Array.isArray, q = xf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Hf = Sf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Uf = Object.freeze({
			pending: !1,
			data: null,
			method: null,
			action: null
		}), Wf = [], Gf = [], Kf = -1, qf = re(null), Jf = re(null), Yf = re(null), Xf = re(null), Zf = 0, Qf, $f, ep, tp, np, rp, ip;
		ce.__reactDisabledLog = !0;
		var ap, op, sp = !1, cp = new (typeof WeakMap == "function" ? WeakMap : Map)(), lp = null, up = !1, dp = Object.prototype.hasOwnProperty, fp = bf.unstable_scheduleCallback, pp = bf.unstable_cancelCallback, mp = bf.unstable_shouldYield, hp = bf.unstable_requestPaint, gp = bf.unstable_now, _p = bf.unstable_getCurrentPriorityLevel, vp = bf.unstable_ImmediatePriority, yp = bf.unstable_UserBlockingPriority, bp = bf.unstable_NormalPriority, xp = bf.unstable_LowPriority, Sp = bf.unstable_IdlePriority, Cp = bf.log, wp = bf.unstable_setDisableYieldValue, Tp = null, Ep = null, Dp = !1, Op = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u", kp = Math.clz32 ? Math.clz32 : De, Ap = Math.log, jp = Math.LN2, Mp = 256, Np = 262144, Pp = 4194304, Fp = 2, Ip = 8, Lp = 32, Rp = 268435456, zp = Math.random().toString(36).slice(2), Bp = "__reactFiber$" + zp, Vp = "__reactProps$" + zp, Hp = "__reactContainer$" + zp, Up = "__reactEvents$" + zp, Wp = "__reactListeners$" + zp, Gp = "__reactHandles$" + zp, Kp = "__reactResources$" + zp, qp = "__reactMarker$" + zp, Jp = /* @__PURE__ */ new Set(), Yp = {}, Xp = {}, Zp = {
			button: !0,
			checkbox: !0,
			image: !0,
			hidden: !0,
			radio: !0,
			reset: !0,
			submit: !0
		}, Qp = 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]*$"), $p = {}, em = {}, tm = /[\n"\\]/g, nm = !1, rm = !1, im = !1, am = !1, om = !1, sm = !1, cm = ["value", "defaultValue"], lm = !1, um = /["'&<>\n\t]|^\s|\s$/, dm = "address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "), fm = "applet caption html table td th marquee object template foreignObject desc title".split(" "), pm = fm.concat(["button"]), mm = "dd dt li option optgroup p rp rt".split(" "), hm = {
			current: null,
			formTag: null,
			aTagInScope: null,
			buttonTagInScope: null,
			nobrTagInScope: null,
			pTagInButtonScope: null,
			listItemTagAutoclosing: null,
			dlItemTagAutoclosing: null,
			containerTagInScope: null,
			implicitRootScope: !1
		}, gm = {}, _m = {
			animation: "animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),
			background: "backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),
			backgroundPosition: ["backgroundPositionX", "backgroundPositionY"],
			border: "borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),
			borderBlockEnd: [
				"borderBlockEndColor",
				"borderBlockEndStyle",
				"borderBlockEndWidth"
			],
			borderBlockStart: [
				"borderBlockStartColor",
				"borderBlockStartStyle",
				"borderBlockStartWidth"
			],
			borderBottom: [
				"borderBottomColor",
				"borderBottomStyle",
				"borderBottomWidth"
			],
			borderColor: [
				"borderBottomColor",
				"borderLeftColor",
				"borderRightColor",
				"borderTopColor"
			],
			borderImage: [
				"borderImageOutset",
				"borderImageRepeat",
				"borderImageSlice",
				"borderImageSource",
				"borderImageWidth"
			],
			borderInlineEnd: [
				"borderInlineEndColor",
				"borderInlineEndStyle",
				"borderInlineEndWidth"
			],
			borderInlineStart: [
				"borderInlineStartColor",
				"borderInlineStartStyle",
				"borderInlineStartWidth"
			],
			borderLeft: [
				"borderLeftColor",
				"borderLeftStyle",
				"borderLeftWidth"
			],
			borderRadius: [
				"borderBottomLeftRadius",
				"borderBottomRightRadius",
				"borderTopLeftRadius",
				"borderTopRightRadius"
			],
			borderRight: [
				"borderRightColor",
				"borderRightStyle",
				"borderRightWidth"
			],
			borderStyle: [
				"borderBottomStyle",
				"borderLeftStyle",
				"borderRightStyle",
				"borderTopStyle"
			],
			borderTop: [
				"borderTopColor",
				"borderTopStyle",
				"borderTopWidth"
			],
			borderWidth: [
				"borderBottomWidth",
				"borderLeftWidth",
				"borderRightWidth",
				"borderTopWidth"
			],
			columnRule: [
				"columnRuleColor",
				"columnRuleStyle",
				"columnRuleWidth"
			],
			columns: ["columnCount", "columnWidth"],
			flex: [
				"flexBasis",
				"flexGrow",
				"flexShrink"
			],
			flexFlow: ["flexDirection", "flexWrap"],
			font: "fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),
			fontVariant: "fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),
			gap: ["columnGap", "rowGap"],
			grid: "gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),
			gridArea: [
				"gridColumnEnd",
				"gridColumnStart",
				"gridRowEnd",
				"gridRowStart"
			],
			gridColumn: ["gridColumnEnd", "gridColumnStart"],
			gridColumnGap: ["columnGap"],
			gridGap: ["columnGap", "rowGap"],
			gridRow: ["gridRowEnd", "gridRowStart"],
			gridRowGap: ["rowGap"],
			gridTemplate: [
				"gridTemplateAreas",
				"gridTemplateColumns",
				"gridTemplateRows"
			],
			listStyle: [
				"listStyleImage",
				"listStylePosition",
				"listStyleType"
			],
			margin: [
				"marginBottom",
				"marginLeft",
				"marginRight",
				"marginTop"
			],
			marker: [
				"markerEnd",
				"markerMid",
				"markerStart"
			],
			mask: "maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),
			maskPosition: ["maskPositionX", "maskPositionY"],
			outline: [
				"outlineColor",
				"outlineStyle",
				"outlineWidth"
			],
			overflow: ["overflowX", "overflowY"],
			padding: [
				"paddingBottom",
				"paddingLeft",
				"paddingRight",
				"paddingTop"
			],
			placeContent: ["alignContent", "justifyContent"],
			placeItems: ["alignItems", "justifyItems"],
			placeSelf: ["alignSelf", "justifySelf"],
			textDecoration: [
				"textDecorationColor",
				"textDecorationLine",
				"textDecorationStyle"
			],
			textEmphasis: ["textEmphasisColor", "textEmphasisStyle"],
			transition: [
				"transitionDelay",
				"transitionDuration",
				"transitionProperty",
				"transitionTimingFunction"
			],
			wordWrap: ["overflowWrap"]
		}, vm = /([A-Z])/g, ym = /^ms-/, bm = /^(?:webkit|moz|o)[A-Z]/, J = /^-ms-/, xm = /-(.)/g, Sm = /;\s*$/, Cm = {}, wm = {}, Tm = !1, Em = !1, Y = 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(" ")), Dm = "http://www.w3.org/1998/Math/MathML", Om = "http://www.w3.org/2000/svg", X = new Map([
			["acceptCharset", "accept-charset"],
			["htmlFor", "for"],
			["httpEquiv", "http-equiv"],
			["crossOrigin", "crossorigin"],
			["accentHeight", "accent-height"],
			["alignmentBaseline", "alignment-baseline"],
			["arabicForm", "arabic-form"],
			["baselineShift", "baseline-shift"],
			["capHeight", "cap-height"],
			["clipPath", "clip-path"],
			["clipRule", "clip-rule"],
			["colorInterpolation", "color-interpolation"],
			["colorInterpolationFilters", "color-interpolation-filters"],
			["colorProfile", "color-profile"],
			["colorRendering", "color-rendering"],
			["dominantBaseline", "dominant-baseline"],
			["enableBackground", "enable-background"],
			["fillOpacity", "fill-opacity"],
			["fillRule", "fill-rule"],
			["floodColor", "flood-color"],
			["floodOpacity", "flood-opacity"],
			["fontFamily", "font-family"],
			["fontSize", "font-size"],
			["fontSizeAdjust", "font-size-adjust"],
			["fontStretch", "font-stretch"],
			["fontStyle", "font-style"],
			["fontVariant", "font-variant"],
			["fontWeight", "font-weight"],
			["glyphName", "glyph-name"],
			["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
			["glyphOrientationVertical", "glyph-orientation-vertical"],
			["horizAdvX", "horiz-adv-x"],
			["horizOriginX", "horiz-origin-x"],
			["imageRendering", "image-rendering"],
			["letterSpacing", "letter-spacing"],
			["lightingColor", "lighting-color"],
			["markerEnd", "marker-end"],
			["markerMid", "marker-mid"],
			["markerStart", "marker-start"],
			["overlinePosition", "overline-position"],
			["overlineThickness", "overline-thickness"],
			["paintOrder", "paint-order"],
			["panose-1", "panose-1"],
			["pointerEvents", "pointer-events"],
			["renderingIntent", "rendering-intent"],
			["shapeRendering", "shape-rendering"],
			["stopColor", "stop-color"],
			["stopOpacity", "stop-opacity"],
			["strikethroughPosition", "strikethrough-position"],
			["strikethroughThickness", "strikethrough-thickness"],
			["strokeDasharray", "stroke-dasharray"],
			["strokeDashoffset", "stroke-dashoffset"],
			["strokeLinecap", "stroke-linecap"],
			["strokeLinejoin", "stroke-linejoin"],
			["strokeMiterlimit", "stroke-miterlimit"],
			["strokeOpacity", "stroke-opacity"],
			["strokeWidth", "stroke-width"],
			["textAnchor", "text-anchor"],
			["textDecoration", "text-decoration"],
			["textRendering", "text-rendering"],
			["transformOrigin", "transform-origin"],
			["underlinePosition", "underline-position"],
			["underlineThickness", "underline-thickness"],
			["unicodeBidi", "unicode-bidi"],
			["unicodeRange", "unicode-range"],
			["unitsPerEm", "units-per-em"],
			["vAlphabetic", "v-alphabetic"],
			["vHanging", "v-hanging"],
			["vIdeographic", "v-ideographic"],
			["vMathematical", "v-mathematical"],
			["vectorEffect", "vector-effect"],
			["vertAdvY", "vert-adv-y"],
			["vertOriginX", "vert-origin-x"],
			["vertOriginY", "vert-origin-y"],
			["wordSpacing", "word-spacing"],
			["writingMode", "writing-mode"],
			["xmlnsXlink", "xmlns:xlink"],
			["xHeight", "x-height"]
		]), km = {
			accept: "accept",
			acceptcharset: "acceptCharset",
			"accept-charset": "acceptCharset",
			accesskey: "accessKey",
			action: "action",
			allowfullscreen: "allowFullScreen",
			alt: "alt",
			as: "as",
			async: "async",
			autocapitalize: "autoCapitalize",
			autocomplete: "autoComplete",
			autocorrect: "autoCorrect",
			autofocus: "autoFocus",
			autoplay: "autoPlay",
			autosave: "autoSave",
			capture: "capture",
			cellpadding: "cellPadding",
			cellspacing: "cellSpacing",
			challenge: "challenge",
			charset: "charSet",
			checked: "checked",
			children: "children",
			cite: "cite",
			class: "className",
			classid: "classID",
			classname: "className",
			cols: "cols",
			colspan: "colSpan",
			content: "content",
			contenteditable: "contentEditable",
			contextmenu: "contextMenu",
			controls: "controls",
			controlslist: "controlsList",
			coords: "coords",
			crossorigin: "crossOrigin",
			dangerouslysetinnerhtml: "dangerouslySetInnerHTML",
			data: "data",
			datetime: "dateTime",
			default: "default",
			defaultchecked: "defaultChecked",
			defaultvalue: "defaultValue",
			defer: "defer",
			dir: "dir",
			disabled: "disabled",
			disablepictureinpicture: "disablePictureInPicture",
			disableremoteplayback: "disableRemotePlayback",
			download: "download",
			draggable: "draggable",
			enctype: "encType",
			enterkeyhint: "enterKeyHint",
			fetchpriority: "fetchPriority",
			for: "htmlFor",
			form: "form",
			formmethod: "formMethod",
			formaction: "formAction",
			formenctype: "formEncType",
			formnovalidate: "formNoValidate",
			formtarget: "formTarget",
			frameborder: "frameBorder",
			headers: "headers",
			height: "height",
			hidden: "hidden",
			high: "high",
			href: "href",
			hreflang: "hrefLang",
			htmlfor: "htmlFor",
			httpequiv: "httpEquiv",
			"http-equiv": "httpEquiv",
			icon: "icon",
			id: "id",
			imagesizes: "imageSizes",
			imagesrcset: "imageSrcSet",
			inert: "inert",
			innerhtml: "innerHTML",
			inputmode: "inputMode",
			integrity: "integrity",
			is: "is",
			itemid: "itemID",
			itemprop: "itemProp",
			itemref: "itemRef",
			itemscope: "itemScope",
			itemtype: "itemType",
			keyparams: "keyParams",
			keytype: "keyType",
			kind: "kind",
			label: "label",
			lang: "lang",
			list: "list",
			loop: "loop",
			low: "low",
			manifest: "manifest",
			marginwidth: "marginWidth",
			marginheight: "marginHeight",
			max: "max",
			maxlength: "maxLength",
			media: "media",
			mediagroup: "mediaGroup",
			method: "method",
			min: "min",
			minlength: "minLength",
			multiple: "multiple",
			muted: "muted",
			name: "name",
			nomodule: "noModule",
			nonce: "nonce",
			novalidate: "noValidate",
			open: "open",
			optimum: "optimum",
			pattern: "pattern",
			placeholder: "placeholder",
			playsinline: "playsInline",
			poster: "poster",
			preload: "preload",
			profile: "profile",
			radiogroup: "radioGroup",
			readonly: "readOnly",
			referrerpolicy: "referrerPolicy",
			rel: "rel",
			required: "required",
			reversed: "reversed",
			role: "role",
			rows: "rows",
			rowspan: "rowSpan",
			sandbox: "sandbox",
			scope: "scope",
			scoped: "scoped",
			scrolling: "scrolling",
			seamless: "seamless",
			selected: "selected",
			shape: "shape",
			size: "size",
			sizes: "sizes",
			span: "span",
			spellcheck: "spellCheck",
			src: "src",
			srcdoc: "srcDoc",
			srclang: "srcLang",
			srcset: "srcSet",
			start: "start",
			step: "step",
			style: "style",
			summary: "summary",
			tabindex: "tabIndex",
			target: "target",
			title: "title",
			type: "type",
			usemap: "useMap",
			value: "value",
			width: "width",
			wmode: "wmode",
			wrap: "wrap",
			about: "about",
			accentheight: "accentHeight",
			"accent-height": "accentHeight",
			accumulate: "accumulate",
			additive: "additive",
			alignmentbaseline: "alignmentBaseline",
			"alignment-baseline": "alignmentBaseline",
			allowreorder: "allowReorder",
			alphabetic: "alphabetic",
			amplitude: "amplitude",
			arabicform: "arabicForm",
			"arabic-form": "arabicForm",
			ascent: "ascent",
			attributename: "attributeName",
			attributetype: "attributeType",
			autoreverse: "autoReverse",
			azimuth: "azimuth",
			basefrequency: "baseFrequency",
			baselineshift: "baselineShift",
			"baseline-shift": "baselineShift",
			baseprofile: "baseProfile",
			bbox: "bbox",
			begin: "begin",
			bias: "bias",
			by: "by",
			calcmode: "calcMode",
			capheight: "capHeight",
			"cap-height": "capHeight",
			clip: "clip",
			clippath: "clipPath",
			"clip-path": "clipPath",
			clippathunits: "clipPathUnits",
			cliprule: "clipRule",
			"clip-rule": "clipRule",
			color: "color",
			colorinterpolation: "colorInterpolation",
			"color-interpolation": "colorInterpolation",
			colorinterpolationfilters: "colorInterpolationFilters",
			"color-interpolation-filters": "colorInterpolationFilters",
			colorprofile: "colorProfile",
			"color-profile": "colorProfile",
			colorrendering: "colorRendering",
			"color-rendering": "colorRendering",
			contentscripttype: "contentScriptType",
			contentstyletype: "contentStyleType",
			cursor: "cursor",
			cx: "cx",
			cy: "cy",
			d: "d",
			datatype: "datatype",
			decelerate: "decelerate",
			descent: "descent",
			diffuseconstant: "diffuseConstant",
			direction: "direction",
			display: "display",
			divisor: "divisor",
			dominantbaseline: "dominantBaseline",
			"dominant-baseline": "dominantBaseline",
			dur: "dur",
			dx: "dx",
			dy: "dy",
			edgemode: "edgeMode",
			elevation: "elevation",
			enablebackground: "enableBackground",
			"enable-background": "enableBackground",
			end: "end",
			exponent: "exponent",
			externalresourcesrequired: "externalResourcesRequired",
			fill: "fill",
			fillopacity: "fillOpacity",
			"fill-opacity": "fillOpacity",
			fillrule: "fillRule",
			"fill-rule": "fillRule",
			filter: "filter",
			filterres: "filterRes",
			filterunits: "filterUnits",
			floodopacity: "floodOpacity",
			"flood-opacity": "floodOpacity",
			floodcolor: "floodColor",
			"flood-color": "floodColor",
			focusable: "focusable",
			fontfamily: "fontFamily",
			"font-family": "fontFamily",
			fontsize: "fontSize",
			"font-size": "fontSize",
			fontsizeadjust: "fontSizeAdjust",
			"font-size-adjust": "fontSizeAdjust",
			fontstretch: "fontStretch",
			"font-stretch": "fontStretch",
			fontstyle: "fontStyle",
			"font-style": "fontStyle",
			fontvariant: "fontVariant",
			"font-variant": "fontVariant",
			fontweight: "fontWeight",
			"font-weight": "fontWeight",
			format: "format",
			from: "from",
			fx: "fx",
			fy: "fy",
			g1: "g1",
			g2: "g2",
			glyphname: "glyphName",
			"glyph-name": "glyphName",
			glyphorientationhorizontal: "glyphOrientationHorizontal",
			"glyph-orientation-horizontal": "glyphOrientationHorizontal",
			glyphorientationvertical: "glyphOrientationVertical",
			"glyph-orientation-vertical": "glyphOrientationVertical",
			glyphref: "glyphRef",
			gradienttransform: "gradientTransform",
			gradientunits: "gradientUnits",
			hanging: "hanging",
			horizadvx: "horizAdvX",
			"horiz-adv-x": "horizAdvX",
			horizoriginx: "horizOriginX",
			"horiz-origin-x": "horizOriginX",
			ideographic: "ideographic",
			imagerendering: "imageRendering",
			"image-rendering": "imageRendering",
			in2: "in2",
			in: "in",
			inlist: "inlist",
			intercept: "intercept",
			k1: "k1",
			k2: "k2",
			k3: "k3",
			k4: "k4",
			k: "k",
			kernelmatrix: "kernelMatrix",
			kernelunitlength: "kernelUnitLength",
			kerning: "kerning",
			keypoints: "keyPoints",
			keysplines: "keySplines",
			keytimes: "keyTimes",
			lengthadjust: "lengthAdjust",
			letterspacing: "letterSpacing",
			"letter-spacing": "letterSpacing",
			lightingcolor: "lightingColor",
			"lighting-color": "lightingColor",
			limitingconeangle: "limitingConeAngle",
			local: "local",
			markerend: "markerEnd",
			"marker-end": "markerEnd",
			markerheight: "markerHeight",
			markermid: "markerMid",
			"marker-mid": "markerMid",
			markerstart: "markerStart",
			"marker-start": "markerStart",
			markerunits: "markerUnits",
			markerwidth: "markerWidth",
			mask: "mask",
			maskcontentunits: "maskContentUnits",
			maskunits: "maskUnits",
			mathematical: "mathematical",
			mode: "mode",
			numoctaves: "numOctaves",
			offset: "offset",
			opacity: "opacity",
			operator: "operator",
			order: "order",
			orient: "orient",
			orientation: "orientation",
			origin: "origin",
			overflow: "overflow",
			overlineposition: "overlinePosition",
			"overline-position": "overlinePosition",
			overlinethickness: "overlineThickness",
			"overline-thickness": "overlineThickness",
			paintorder: "paintOrder",
			"paint-order": "paintOrder",
			panose1: "panose1",
			"panose-1": "panose1",
			pathlength: "pathLength",
			patterncontentunits: "patternContentUnits",
			patterntransform: "patternTransform",
			patternunits: "patternUnits",
			pointerevents: "pointerEvents",
			"pointer-events": "pointerEvents",
			points: "points",
			pointsatx: "pointsAtX",
			pointsaty: "pointsAtY",
			pointsatz: "pointsAtZ",
			popover: "popover",
			popovertarget: "popoverTarget",
			popovertargetaction: "popoverTargetAction",
			prefix: "prefix",
			preservealpha: "preserveAlpha",
			preserveaspectratio: "preserveAspectRatio",
			primitiveunits: "primitiveUnits",
			property: "property",
			r: "r",
			radius: "radius",
			refx: "refX",
			refy: "refY",
			renderingintent: "renderingIntent",
			"rendering-intent": "renderingIntent",
			repeatcount: "repeatCount",
			repeatdur: "repeatDur",
			requiredextensions: "requiredExtensions",
			requiredfeatures: "requiredFeatures",
			resource: "resource",
			restart: "restart",
			result: "result",
			results: "results",
			rotate: "rotate",
			rx: "rx",
			ry: "ry",
			scale: "scale",
			security: "security",
			seed: "seed",
			shaperendering: "shapeRendering",
			"shape-rendering": "shapeRendering",
			slope: "slope",
			spacing: "spacing",
			specularconstant: "specularConstant",
			specularexponent: "specularExponent",
			speed: "speed",
			spreadmethod: "spreadMethod",
			startoffset: "startOffset",
			stddeviation: "stdDeviation",
			stemh: "stemh",
			stemv: "stemv",
			stitchtiles: "stitchTiles",
			stopcolor: "stopColor",
			"stop-color": "stopColor",
			stopopacity: "stopOpacity",
			"stop-opacity": "stopOpacity",
			strikethroughposition: "strikethroughPosition",
			"strikethrough-position": "strikethroughPosition",
			strikethroughthickness: "strikethroughThickness",
			"strikethrough-thickness": "strikethroughThickness",
			string: "string",
			stroke: "stroke",
			strokedasharray: "strokeDasharray",
			"stroke-dasharray": "strokeDasharray",
			strokedashoffset: "strokeDashoffset",
			"stroke-dashoffset": "strokeDashoffset",
			strokelinecap: "strokeLinecap",
			"stroke-linecap": "strokeLinecap",
			strokelinejoin: "strokeLinejoin",
			"stroke-linejoin": "strokeLinejoin",
			strokemiterlimit: "strokeMiterlimit",
			"stroke-miterlimit": "strokeMiterlimit",
			strokewidth: "strokeWidth",
			"stroke-width": "strokeWidth",
			strokeopacity: "strokeOpacity",
			"stroke-opacity": "strokeOpacity",
			suppresscontenteditablewarning: "suppressContentEditableWarning",
			suppresshydrationwarning: "suppressHydrationWarning",
			surfacescale: "surfaceScale",
			systemlanguage: "systemLanguage",
			tablevalues: "tableValues",
			targetx: "targetX",
			targety: "targetY",
			textanchor: "textAnchor",
			"text-anchor": "textAnchor",
			textdecoration: "textDecoration",
			"text-decoration": "textDecoration",
			textlength: "textLength",
			textrendering: "textRendering",
			"text-rendering": "textRendering",
			to: "to",
			transform: "transform",
			transformorigin: "transformOrigin",
			"transform-origin": "transformOrigin",
			typeof: "typeof",
			u1: "u1",
			u2: "u2",
			underlineposition: "underlinePosition",
			"underline-position": "underlinePosition",
			underlinethickness: "underlineThickness",
			"underline-thickness": "underlineThickness",
			unicode: "unicode",
			unicodebidi: "unicodeBidi",
			"unicode-bidi": "unicodeBidi",
			unicoderange: "unicodeRange",
			"unicode-range": "unicodeRange",
			unitsperem: "unitsPerEm",
			"units-per-em": "unitsPerEm",
			unselectable: "unselectable",
			valphabetic: "vAlphabetic",
			"v-alphabetic": "vAlphabetic",
			values: "values",
			vectoreffect: "vectorEffect",
			"vector-effect": "vectorEffect",
			version: "version",
			vertadvy: "vertAdvY",
			"vert-adv-y": "vertAdvY",
			vertoriginx: "vertOriginX",
			"vert-origin-x": "vertOriginX",
			vertoriginy: "vertOriginY",
			"vert-origin-y": "vertOriginY",
			vhanging: "vHanging",
			"v-hanging": "vHanging",
			videographic: "vIdeographic",
			"v-ideographic": "vIdeographic",
			viewbox: "viewBox",
			viewtarget: "viewTarget",
			visibility: "visibility",
			vmathematical: "vMathematical",
			"v-mathematical": "vMathematical",
			vocab: "vocab",
			widths: "widths",
			wordspacing: "wordSpacing",
			"word-spacing": "wordSpacing",
			writingmode: "writingMode",
			"writing-mode": "writingMode",
			x1: "x1",
			x2: "x2",
			x: "x",
			xchannelselector: "xChannelSelector",
			xheight: "xHeight",
			"x-height": "xHeight",
			xlinkactuate: "xlinkActuate",
			"xlink:actuate": "xlinkActuate",
			xlinkarcrole: "xlinkArcrole",
			"xlink:arcrole": "xlinkArcrole",
			xlinkhref: "xlinkHref",
			"xlink:href": "xlinkHref",
			xlinkrole: "xlinkRole",
			"xlink:role": "xlinkRole",
			xlinkshow: "xlinkShow",
			"xlink:show": "xlinkShow",
			xlinktitle: "xlinkTitle",
			"xlink:title": "xlinkTitle",
			xlinktype: "xlinkType",
			"xlink:type": "xlinkType",
			xmlbase: "xmlBase",
			"xml:base": "xmlBase",
			xmllang: "xmlLang",
			"xml:lang": "xmlLang",
			xmlns: "xmlns",
			"xml:space": "xmlSpace",
			xmlnsxlink: "xmlnsXlink",
			"xmlns:xlink": "xmlnsXlink",
			xmlspace: "xmlSpace",
			y1: "y1",
			y2: "y2",
			y: "y",
			ychannelselector: "yChannelSelector",
			z: "z",
			zoomandpan: "zoomAndPan"
		}, Am = {
			"aria-current": 0,
			"aria-description": 0,
			"aria-details": 0,
			"aria-disabled": 0,
			"aria-hidden": 0,
			"aria-invalid": 0,
			"aria-keyshortcuts": 0,
			"aria-label": 0,
			"aria-roledescription": 0,
			"aria-autocomplete": 0,
			"aria-checked": 0,
			"aria-expanded": 0,
			"aria-haspopup": 0,
			"aria-level": 0,
			"aria-modal": 0,
			"aria-multiline": 0,
			"aria-multiselectable": 0,
			"aria-orientation": 0,
			"aria-placeholder": 0,
			"aria-pressed": 0,
			"aria-readonly": 0,
			"aria-required": 0,
			"aria-selected": 0,
			"aria-sort": 0,
			"aria-valuemax": 0,
			"aria-valuemin": 0,
			"aria-valuenow": 0,
			"aria-valuetext": 0,
			"aria-atomic": 0,
			"aria-busy": 0,
			"aria-live": 0,
			"aria-relevant": 0,
			"aria-dropeffect": 0,
			"aria-grabbed": 0,
			"aria-activedescendant": 0,
			"aria-colcount": 0,
			"aria-colindex": 0,
			"aria-colspan": 0,
			"aria-controls": 0,
			"aria-describedby": 0,
			"aria-errormessage": 0,
			"aria-flowto": 0,
			"aria-labelledby": 0,
			"aria-owns": 0,
			"aria-posinset": 0,
			"aria-rowcount": 0,
			"aria-rowindex": 0,
			"aria-rowspan": 0,
			"aria-setsize": 0,
			"aria-braillelabel": 0,
			"aria-brailleroledescription": 0,
			"aria-colindextext": 0,
			"aria-rowindextext": 0
		}, jm = {}, Mm = RegExp("^(aria)-[: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]*$"), Nm = RegExp("^(aria)[A-Z][: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]*$"), Pm = !1, Fm = {}, Im = /^on./, Lm = /^on[^A-Z]/, Rm = RegExp("^(aria)-[: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]*$"), zm = RegExp("^(aria)[A-Z][: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]*$"), Bm = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i, Vm = null, Hm = null, Um = null, Wm = !1, Gm = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), Km = !1;
		if (Gm) try {
			var qm = {};
			Object.defineProperty(qm, "passive", { get: function() {
				Km = !0;
			} }), window.addEventListener("test", qm, qm), window.removeEventListener("test", qm, qm);
		} catch {
			Km = !1;
		}
		var Jm = null, Ym = null, Xm = null, Zm = {
			eventPhase: 0,
			bubbles: 0,
			cancelable: 0,
			timeStamp: function(e) {
				return e.timeStamp || Date.now();
			},
			defaultPrevented: 0,
			isTrusted: 0
		}, Qm = on(Zm), $m = Cf({}, Zm, {
			view: 0,
			detail: 0
		}), eh = on($m), th, nh, rh, ih = Cf({}, $m, {
			screenX: 0,
			screenY: 0,
			clientX: 0,
			clientY: 0,
			pageX: 0,
			pageY: 0,
			ctrlKey: 0,
			shiftKey: 0,
			altKey: 0,
			metaKey: 0,
			getModifierState: cn,
			button: 0,
			buttons: 0,
			relatedTarget: function(e) {
				return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
			},
			movementX: function(e) {
				return "movementX" in e ? e.movementX : (e !== rh && (rh && e.type === "mousemove" ? (th = e.screenX - rh.screenX, nh = e.screenY - rh.screenY) : nh = th = 0, rh = e), th);
			},
			movementY: function(e) {
				return "movementY" in e ? e.movementY : nh;
			}
		}), ah = on(ih), oh = on(Cf({}, ih, { dataTransfer: 0 })), sh = on(Cf({}, $m, { relatedTarget: 0 })), ch = on(Cf({}, Zm, {
			animationName: 0,
			elapsedTime: 0,
			pseudoElement: 0
		})), lh = on(Cf({}, Zm, { clipboardData: function(e) {
			return "clipboardData" in e ? e.clipboardData : window.clipboardData;
		} })), uh = on(Cf({}, Zm, { data: 0 })), dh = uh, fh = {
			Esc: "Escape",
			Spacebar: " ",
			Left: "ArrowLeft",
			Up: "ArrowUp",
			Right: "ArrowRight",
			Down: "ArrowDown",
			Del: "Delete",
			Win: "OS",
			Menu: "ContextMenu",
			Apps: "ContextMenu",
			Scroll: "ScrollLock",
			MozPrintableKey: "Unidentified"
		}, ph = {
			8: "Backspace",
			9: "Tab",
			12: "Clear",
			13: "Enter",
			16: "Shift",
			17: "Control",
			18: "Alt",
			19: "Pause",
			20: "CapsLock",
			27: "Escape",
			32: " ",
			33: "PageUp",
			34: "PageDown",
			35: "End",
			36: "Home",
			37: "ArrowLeft",
			38: "ArrowUp",
			39: "ArrowRight",
			40: "ArrowDown",
			45: "Insert",
			46: "Delete",
			112: "F1",
			113: "F2",
			114: "F3",
			115: "F4",
			116: "F5",
			117: "F6",
			118: "F7",
			119: "F8",
			120: "F9",
			121: "F10",
			122: "F11",
			123: "F12",
			144: "NumLock",
			145: "ScrollLock",
			224: "Meta"
		}, mh = {
			Alt: "altKey",
			Control: "ctrlKey",
			Meta: "metaKey",
			Shift: "shiftKey"
		}, hh = on(Cf({}, $m, {
			key: function(e) {
				if (e.key) {
					var t = fh[e.key] || e.key;
					if (t !== "Unidentified") return t;
				}
				return e.type === "keypress" ? (e = B(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? ph[e.keyCode] || "Unidentified" : "";
			},
			code: 0,
			location: 0,
			ctrlKey: 0,
			shiftKey: 0,
			altKey: 0,
			metaKey: 0,
			repeat: 0,
			locale: 0,
			getModifierState: cn,
			charCode: function(e) {
				return e.type === "keypress" ? B(e) : 0;
			},
			keyCode: function(e) {
				return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
			},
			which: function(e) {
				return e.type === "keypress" ? B(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
			}
		})), gh = on(Cf({}, ih, {
			pointerId: 0,
			width: 0,
			height: 0,
			pressure: 0,
			tangentialPressure: 0,
			tiltX: 0,
			tiltY: 0,
			twist: 0,
			pointerType: 0,
			isPrimary: 0
		})), _h = on(Cf({}, $m, {
			touches: 0,
			targetTouches: 0,
			changedTouches: 0,
			altKey: 0,
			metaKey: 0,
			ctrlKey: 0,
			shiftKey: 0,
			getModifierState: cn
		})), vh = on(Cf({}, Zm, {
			propertyName: 0,
			elapsedTime: 0,
			pseudoElement: 0
		})), yh = on(Cf({}, ih, {
			deltaX: function(e) {
				return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
			},
			deltaY: function(e) {
				return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0;
			},
			deltaZ: 0,
			deltaMode: 0
		})), bh = on(Cf({}, Zm, {
			newState: 0,
			oldState: 0
		})), xh = [
			9,
			13,
			27,
			32
		], Sh = 229, Ch = Gm && "CompositionEvent" in window, Z = null;
		Gm && "documentMode" in document && (Z = document.documentMode);
		var wh = Gm && "TextEvent" in window && !Z, Th = Gm && (!Ch || Z && 8 < Z && 11 >= Z), Eh = 32, Dh = String.fromCharCode(Eh), Oh = !1, kh = !1, Ah = {
			color: !0,
			date: !0,
			datetime: !0,
			"datetime-local": !0,
			email: !0,
			month: !0,
			number: !0,
			password: !0,
			range: !0,
			search: !0,
			tel: !0,
			text: !0,
			time: !0,
			url: !0,
			week: !0
		}, jh = null, Mh = null, Nh = !1;
		Gm && (Nh = mn("input") && (!document.documentMode || 9 < document.documentMode));
		var Ph = typeof Object.is == "function" ? Object.is : Tn, Fh = Gm && "documentMode" in document && 11 >= document.documentMode, Ih = null, Lh = null, Rh = null, zh = !1, Bh = {
			animationend: Nn("Animation", "AnimationEnd"),
			animationiteration: Nn("Animation", "AnimationIteration"),
			animationstart: Nn("Animation", "AnimationStart"),
			transitionrun: Nn("Transition", "TransitionRun"),
			transitionstart: Nn("Transition", "TransitionStart"),
			transitioncancel: Nn("Transition", "TransitionCancel"),
			transitionend: Nn("Transition", "TransitionEnd")
		}, Vh = {}, Hh = {};
		Gm && (Hh = document.createElement("div").style, "AnimationEvent" in window || (delete Bh.animationend.animation, delete Bh.animationiteration.animation, delete Bh.animationstart.animation), "TransitionEvent" in window || delete Bh.transitionend.transition);
		var Uh = Pn("animationend"), Wh = Pn("animationiteration"), Gh = Pn("animationstart"), Kh = Pn("transitionrun"), qh = Pn("transitionstart"), Jh = Pn("transitioncancel"), Yh = Pn("transitionend"), Xh = /* @__PURE__ */ new Map(), Zh = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
		Zh.push("scrollEnd");
		var Qh = 0;
		if (typeof performance == "object" && typeof performance.now == "function") var $h = performance, eg = function() {
			return $h.now();
		};
		else {
			var tg = Date;
			eg = function() {
				return tg.now();
			};
		}
		var ng = typeof reportError == "function" ? reportError : function(e) {
			if (typeof window == "object" && typeof window.ErrorEvent == "function") {
				var t = new window.ErrorEvent("error", {
					bubbles: !0,
					cancelable: !0,
					message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
					error: e
				});
				if (!window.dispatchEvent(t)) return;
			} else if (typeof process == "object" && typeof process.emit == "function") {
				process.emit("uncaughtException", e);
				return;
			}
			console.error(e);
		}, rg = "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.", ig = 0, ag = 1, og = 2, sg = 3, cg = "–\xA0", lg = "+\xA0", ug = " \xA0", dg = typeof console < "u" && typeof console.timeStamp == "function" && typeof performance < "u" && typeof performance.measure == "function", fg = "Components ⚛", pg = "Scheduler ⚛", mg = "Blocking", hg = !1, gg = {
			color: "primary",
			properties: null,
			tooltipText: "",
			track: fg
		}, _g = {
			start: -0,
			end: -0,
			detail: { devtools: gg }
		}, vg = ["Changed Props", ""], yg = "This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.", bg = ["Changed Props", yg], xg = 1, Sg = 2, Cg = [], wg = 0, Tg = 0, Eg = {};
		Object.freeze(Eg);
		var Dg = null, Og = null, Q = 0, kg = 1, Ag = 2, jg = 8, Mg = 16, Ng = 32, Pg = !1;
		try {
			var Fg = Object.preventExtensions({});
			new Map([[Fg, null]]), new Set([Fg]);
		} catch {
			Pg = !0;
		}
		var Ig = /* @__PURE__ */ new WeakMap(), Lg = [], Rg = 0, zg = null, Bg = 0, Vg = [], Hg = 0, Ug = null, Wg = 1, Gg = "", Kg = null, qg = null, Jg = !1, Yg = !1, Xg = null, Zg = null, Qg = !1, $g = Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."), e_ = re(null), t_ = re(null), n_ = {}, r_ = null, i_ = null, a_ = !1, o_ = typeof AbortController < "u" ? AbortController : function() {
			var e = [], t = this.signal = {
				aborted: !1,
				addEventListener: function(t, n) {
					e.push(n);
				}
			};
			this.abort = function() {
				t.aborted = !0, e.forEach(function(e) {
					return e();
				});
			};
		}, s_ = bf.unstable_scheduleCallback, c_ = bf.unstable_NormalPriority, l_ = {
			$$typeof: jf,
			Consumer: null,
			Provider: null,
			_currentValue: null,
			_currentValue2: null,
			_threadCount: 0,
			_currentRenderer: null,
			_currentRenderer2: null
		}, u_ = bf.unstable_now, d_ = console.createTask ? console.createTask : function() {
			return null;
		}, f_ = 1, p_ = 2, m_ = -0, h_ = -0, g_ = -0, __ = null, v_ = -1.1, y_ = -0, b_ = -0, x_ = -1.1, S_ = -1.1, C_ = null, w_ = !1, T_ = -0, E_ = -1.1, D_ = null, O_ = 0, k_ = null, A_ = null, j_ = -1.1, M_ = null, N_ = -1.1, P_ = -1.1, F_ = -0, I_ = -1.1, L_ = -1.1, R_ = 0, z_ = null, B_ = null, V_ = null, H_ = -1.1, U_ = null, W_ = -1.1, G_ = -1.1, K_ = -0, q_ = -0, J_ = 0, Y_ = null, X_ = 0, Z_ = -1.1, Q_ = !1, $_ = !1, ev = null, tv = 0, nv = 0, rv = null, iv = q.S;
		q.S = function(e, t) {
			if (vx = gp(), typeof t == "object" && t && typeof t.then == "function") {
				if (0 > I_ && 0 > L_) {
					I_ = u_();
					var n = Ru(), r = Lu();
					(n !== W_ || r !== U_) && (W_ = -1.1), H_ = n, U_ = r;
				}
				_i(e, t);
			}
			iv !== null && iv(e, t);
		};
		var av = re(null), ov = {
			recordUnsafeLifecycleWarnings: function() {},
			flushPendingUnsafeLifecycleWarnings: function() {},
			recordLegacyContextWarning: function() {},
			flushLegacyContextWarning: function() {},
			discardPendingWarnings: function() {}
		}, sv = [], cv = [], lv = [], uv = [], dv = [], fv = [], pv = /* @__PURE__ */ new Set();
		ov.recordUnsafeLifecycleWarnings = function(e, t) {
			pv.has(e.type) || (typeof t.componentWillMount == "function" && !0 !== t.componentWillMount.__suppressDeprecationWarning && sv.push(e), e.mode & jg && typeof t.UNSAFE_componentWillMount == "function" && cv.push(e), typeof t.componentWillReceiveProps == "function" && !0 !== t.componentWillReceiveProps.__suppressDeprecationWarning && lv.push(e), e.mode & jg && typeof t.UNSAFE_componentWillReceiveProps == "function" && uv.push(e), typeof t.componentWillUpdate == "function" && !0 !== t.componentWillUpdate.__suppressDeprecationWarning && dv.push(e), e.mode & jg && typeof t.UNSAFE_componentWillUpdate == "function" && fv.push(e));
		}, ov.flushPendingUnsafeLifecycleWarnings = function() {
			var e = /* @__PURE__ */ new Set();
			0 < sv.length && (sv.forEach(function(t) {
				e.add(D(t) || "Component"), pv.add(t.type);
			}), sv = []);
			var t = /* @__PURE__ */ new Set();
			0 < cv.length && (cv.forEach(function(e) {
				t.add(D(e) || "Component"), pv.add(e.type);
			}), cv = []);
			var n = /* @__PURE__ */ new Set();
			0 < lv.length && (lv.forEach(function(e) {
				n.add(D(e) || "Component"), pv.add(e.type);
			}), lv = []);
			var r = /* @__PURE__ */ new Set();
			0 < uv.length && (uv.forEach(function(e) {
				r.add(D(e) || "Component"), pv.add(e.type);
			}), uv = []);
			var i = /* @__PURE__ */ new Set();
			0 < dv.length && (dv.forEach(function(e) {
				i.add(D(e) || "Component"), pv.add(e.type);
			}), dv = []);
			var a = /* @__PURE__ */ new Set();
			if (0 < fv.length && (fv.forEach(function(e) {
				a.add(D(e) || "Component"), pv.add(e.type);
			}), fv = []), 0 < t.size) {
				var o = f(t);
				console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", o);
			}
			0 < r.size && (o = f(r), console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s", o)), 0 < a.size && (o = f(a), console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", o)), 0 < e.size && (o = f(e), console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", o)), 0 < n.size && (o = f(n), console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", o)), 0 < i.size && (o = f(i), console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", o));
		};
		var mv = /* @__PURE__ */ new Map(), hv = /* @__PURE__ */ new Set();
		ov.recordLegacyContextWarning = function(e, t) {
			for (var n = null, r = e; r !== null;) r.mode & jg && (n = r), r = r.return;
			n === null ? console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.") : !hv.has(e.type) && (r = mv.get(n), e.type.contextTypes != null || e.type.childContextTypes != null || t !== null && typeof t.getChildContext == "function") && (r === void 0 && (r = [], mv.set(n, r)), r.push(e));
		}, ov.flushLegacyContextWarning = function() {
			mv.forEach(function(e) {
				if (e.length !== 0) {
					var t = e[0], n = /* @__PURE__ */ new Set();
					e.forEach(function(e) {
						n.add(D(e) || "Component"), hv.add(e.type);
					});
					var r = f(n);
					M(t, function() {
						console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context", r);
					});
				}
			});
		}, ov.discardPendingWarnings = function() {
			sv = [], cv = [], lv = [], uv = [], dv = [], fv = [], mv = /* @__PURE__ */ new Map();
		};
		var gv = { react_stack_bottom_frame: function(e, t, n) {
			var r = up;
			up = !0;
			try {
				return e(t, n);
			} finally {
				up = r;
			}
		} }, _v = gv.react_stack_bottom_frame.bind(gv), vv = { react_stack_bottom_frame: function(e) {
			var t = up;
			up = !0;
			try {
				return e.render();
			} finally {
				up = t;
			}
		} }, yv = vv.react_stack_bottom_frame.bind(vv), bv = { react_stack_bottom_frame: function(e, t) {
			try {
				t.componentDidMount();
			} catch (t) {
				El(e, e.return, t);
			}
		} }, xv = bv.react_stack_bottom_frame.bind(bv), Sv = { react_stack_bottom_frame: function(e, t, n, r, i) {
			try {
				t.componentDidUpdate(n, r, i);
			} catch (t) {
				El(e, e.return, t);
			}
		} }, Cv = Sv.react_stack_bottom_frame.bind(Sv), wv = { react_stack_bottom_frame: function(e, t) {
			var n = t.stack;
			e.componentDidCatch(t.value, { componentStack: n === null ? "" : n });
		} }, Tv = wv.react_stack_bottom_frame.bind(wv), Ev = { react_stack_bottom_frame: function(e, t, n) {
			try {
				n.componentWillUnmount();
			} catch (n) {
				El(e, t, n);
			}
		} }, Dv = Ev.react_stack_bottom_frame.bind(Ev), Ov = { react_stack_bottom_frame: function(e) {
			var t = e.create;
			return e = e.inst, t = t(), e.destroy = t;
		} }, kv = Ov.react_stack_bottom_frame.bind(Ov), Av = { react_stack_bottom_frame: function(e, t, n) {
			try {
				n();
			} catch (n) {
				El(e, t, n);
			}
		} }, jv = Av.react_stack_bottom_frame.bind(Av), Mv = { react_stack_bottom_frame: function(e) {
			var t = e._init;
			return t(e._payload);
		} }, Nv = Mv.react_stack_bottom_frame.bind(Mv), Pv = Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."), Fv = Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."), Iv = Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."), Lv = { then: function() {
			console.error("Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue.");
		} }, Rv = null, zv = !1, Bv = null, Vv = 0, Hv = null, Uv, Wv = Uv = !1, Gv = {}, Kv = {}, qv = {};
		d = function(e, t, n) {
			if (typeof n == "object" && n && n._store && (!n._store.validated && n.key == null || n._store.validated === 2)) {
				if (typeof n._store != "object") throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");
				n._store.validated = 1;
				var r = D(e), i = r || "null";
				if (!Gv[i]) {
					Gv[i] = !0, n = n._owner, e = e._debugOwner;
					var a = "";
					e && typeof e.tag == "number" && (i = D(e)) && (a = "\n\nCheck the render method of `" + i + "`."), a || r && (a = "\n\nCheck the top-level render call using <" + r + ">.");
					var o = "";
					n != null && e !== n && (r = null, typeof n.tag == "number" ? r = D(n) : typeof n.name == "string" && (r = n.name), r && (o = " It was passed a child from " + r + ".")), M(t, function() {
						console.error("Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.", a, o);
					});
				}
			}
		};
		var Jv = Bi(!0), Yv = Bi(!1), Xv = 0, Zv = 1, Qv = 2, $v = 3, ey = !1, ty = !1, ny = null, ry = !1, iy = re(null), ay = re(0), oy = re(null), sy = null, cy = 1, ly = 2, uy = re(0), dy = 0, fy = 1, py = 2, my = 4, hy = 8, gy, _y = /* @__PURE__ */ new Set(), vy = /* @__PURE__ */ new Set(), yy = /* @__PURE__ */ new Set(), by = /* @__PURE__ */ new Set(), xy = 0, Sy = null, Cy = null, wy = null, Ty = !1, Ey = !1, Dy = !1, Oy = 0, ky = 0, Ay = null, jy = 0, My = 25, $ = null, Ny = null, Py = -1, Fy = !1, Iy = {
			readContext: Kr,
			use: wa,
			useCallback: da,
			useContext: da,
			useEffect: da,
			useImperativeHandle: da,
			useLayoutEffect: da,
			useInsertionEffect: da,
			useMemo: da,
			useReducer: da,
			useRef: da,
			useState: da,
			useDebugValue: da,
			useDeferredValue: da,
			useTransition: da,
			useSyncExternalStore: da,
			useId: da,
			useHostTransitionStatus: da,
			useFormState: da,
			useActionState: da,
			useOptimistic: da,
			useMemoCache: da,
			useCacheRefresh: da
		};
		Iy.useEffectEvent = da;
		var Ly = null, Ry = null, zy = null, By = null, Vy = null, Hy = null, Uy = null;
		Ly = {
			readContext: function(e) {
				return Kr(e);
			},
			use: wa,
			useCallback: function(e, t) {
				return $ = "useCallback", ca(), la(t), mo(e, t);
			},
			useContext: function(e) {
				return $ = "useContext", ca(), Kr(e);
			},
			useEffect: function(e, t) {
				return $ = "useEffect", ca(), la(t), ao(e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return $ = "useImperativeHandle", ca(), la(n), fo(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				$ = "useInsertionEffect", ca(), la(t), ro(4, py, e, t);
			},
			useLayoutEffect: function(e, t) {
				return $ = "useLayoutEffect", ca(), la(t), lo(e, t);
			},
			useMemo: function(e, t) {
				$ = "useMemo", ca(), la(t);
				var n = q.H;
				q.H = Vy;
				try {
					return go(e, t);
				} finally {
					q.H = n;
				}
			},
			useReducer: function(e, t, n) {
				$ = "useReducer", ca();
				var r = q.H;
				q.H = Vy;
				try {
					return Da(e, t, n);
				} finally {
					q.H = r;
				}
			},
			useRef: function(e) {
				return $ = "useRef", ca(), no(e);
			},
			useState: function(e) {
				$ = "useState", ca();
				var t = q.H;
				q.H = Vy;
				try {
					return za(e);
				} finally {
					q.H = t;
				}
			},
			useDebugValue: function() {
				$ = "useDebugValue", ca();
			},
			useDeferredValue: function(e, t) {
				return $ = "useDeferredValue", ca(), vo(e, t);
			},
			useTransition: function() {
				return $ = "useTransition", ca(), Oo();
			},
			useSyncExternalStore: function(e, t, n) {
				return $ = "useSyncExternalStore", ca(), ja(e, t, n);
			},
			useId: function() {
				return $ = "useId", ca(), Mo();
			},
			useFormState: function(e, t) {
				return $ = "useFormState", ca(), ua(), Xa(e, t);
			},
			useActionState: function(e, t) {
				return $ = "useActionState", ca(), Xa(e, t);
			},
			useOptimistic: function(e) {
				return $ = "useOptimistic", ca(), Ba(e);
			},
			useHostTransitionStatus: jo,
			useMemoCache: Ta,
			useCacheRefresh: function() {
				return $ = "useCacheRefresh", ca(), No();
			},
			useEffectEvent: function(e) {
				return $ = "useEffectEvent", ca(), so(e);
			}
		}, Ry = {
			readContext: function(e) {
				return Kr(e);
			},
			use: wa,
			useCallback: function(e, t) {
				return $ = "useCallback", U(), mo(e, t);
			},
			useContext: function(e) {
				return $ = "useContext", U(), Kr(e);
			},
			useEffect: function(e, t) {
				return $ = "useEffect", U(), ao(e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return $ = "useImperativeHandle", U(), fo(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				$ = "useInsertionEffect", U(), ro(4, py, e, t);
			},
			useLayoutEffect: function(e, t) {
				return $ = "useLayoutEffect", U(), lo(e, t);
			},
			useMemo: function(e, t) {
				$ = "useMemo", U();
				var n = q.H;
				q.H = Vy;
				try {
					return go(e, t);
				} finally {
					q.H = n;
				}
			},
			useReducer: function(e, t, n) {
				$ = "useReducer", U();
				var r = q.H;
				q.H = Vy;
				try {
					return Da(e, t, n);
				} finally {
					q.H = r;
				}
			},
			useRef: function(e) {
				return $ = "useRef", U(), no(e);
			},
			useState: function(e) {
				$ = "useState", U();
				var t = q.H;
				q.H = Vy;
				try {
					return za(e);
				} finally {
					q.H = t;
				}
			},
			useDebugValue: function() {
				$ = "useDebugValue", U();
			},
			useDeferredValue: function(e, t) {
				return $ = "useDeferredValue", U(), vo(e, t);
			},
			useTransition: function() {
				return $ = "useTransition", U(), Oo();
			},
			useSyncExternalStore: function(e, t, n) {
				return $ = "useSyncExternalStore", U(), ja(e, t, n);
			},
			useId: function() {
				return $ = "useId", U(), Mo();
			},
			useActionState: function(e, t) {
				return $ = "useActionState", U(), Xa(e, t);
			},
			useFormState: function(e, t) {
				return $ = "useFormState", U(), ua(), Xa(e, t);
			},
			useOptimistic: function(e) {
				return $ = "useOptimistic", U(), Ba(e);
			},
			useHostTransitionStatus: jo,
			useMemoCache: Ta,
			useCacheRefresh: function() {
				return $ = "useCacheRefresh", U(), No();
			},
			useEffectEvent: function(e) {
				return $ = "useEffectEvent", U(), so(e);
			}
		}, zy = {
			readContext: function(e) {
				return Kr(e);
			},
			use: wa,
			useCallback: function(e, t) {
				return $ = "useCallback", U(), ho(e, t);
			},
			useContext: function(e) {
				return $ = "useContext", U(), Kr(e);
			},
			useEffect: function(e, t) {
				$ = "useEffect", U(), io(2048, hy, e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return $ = "useImperativeHandle", U(), po(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				return $ = "useInsertionEffect", U(), io(4, py, e, t);
			},
			useLayoutEffect: function(e, t) {
				return $ = "useLayoutEffect", U(), io(4, my, e, t);
			},
			useMemo: function(e, t) {
				$ = "useMemo", U();
				var n = q.H;
				q.H = Hy;
				try {
					return _o(e, t);
				} finally {
					q.H = n;
				}
			},
			useReducer: function(e, t, n) {
				$ = "useReducer", U();
				var r = q.H;
				q.H = Hy;
				try {
					return Oa(e, t, n);
				} finally {
					q.H = r;
				}
			},
			useRef: function() {
				return $ = "useRef", U(), xa().memoizedState;
			},
			useState: function() {
				$ = "useState", U();
				var e = q.H;
				q.H = Hy;
				try {
					return Oa(Ea);
				} finally {
					q.H = e;
				}
			},
			useDebugValue: function() {
				$ = "useDebugValue", U();
			},
			useDeferredValue: function(e, t) {
				return $ = "useDeferredValue", U(), yo(e, t);
			},
			useTransition: function() {
				return $ = "useTransition", U(), ko();
			},
			useSyncExternalStore: function(e, t, n) {
				return $ = "useSyncExternalStore", U(), Ma(e, t, n);
			},
			useId: function() {
				return $ = "useId", U(), xa().memoizedState;
			},
			useFormState: function(e) {
				return $ = "useFormState", U(), ua(), Za(e);
			},
			useActionState: function(e) {
				return $ = "useActionState", U(), Za(e);
			},
			useOptimistic: function(e, t) {
				return $ = "useOptimistic", U(), Va(e, t);
			},
			useHostTransitionStatus: jo,
			useMemoCache: Ta,
			useCacheRefresh: function() {
				return $ = "useCacheRefresh", U(), xa().memoizedState;
			},
			useEffectEvent: function(e) {
				return $ = "useEffectEvent", U(), co(e);
			}
		}, By = {
			readContext: function(e) {
				return Kr(e);
			},
			use: wa,
			useCallback: function(e, t) {
				return $ = "useCallback", U(), ho(e, t);
			},
			useContext: function(e) {
				return $ = "useContext", U(), Kr(e);
			},
			useEffect: function(e, t) {
				$ = "useEffect", U(), io(2048, hy, e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return $ = "useImperativeHandle", U(), po(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				return $ = "useInsertionEffect", U(), io(4, py, e, t);
			},
			useLayoutEffect: function(e, t) {
				return $ = "useLayoutEffect", U(), io(4, my, e, t);
			},
			useMemo: function(e, t) {
				$ = "useMemo", U();
				var n = q.H;
				q.H = Uy;
				try {
					return _o(e, t);
				} finally {
					q.H = n;
				}
			},
			useReducer: function(e, t, n) {
				$ = "useReducer", U();
				var r = q.H;
				q.H = Uy;
				try {
					return Aa(e, t, n);
				} finally {
					q.H = r;
				}
			},
			useRef: function() {
				return $ = "useRef", U(), xa().memoizedState;
			},
			useState: function() {
				$ = "useState", U();
				var e = q.H;
				q.H = Uy;
				try {
					return Aa(Ea);
				} finally {
					q.H = e;
				}
			},
			useDebugValue: function() {
				$ = "useDebugValue", U();
			},
			useDeferredValue: function(e, t) {
				return $ = "useDeferredValue", U(), bo(e, t);
			},
			useTransition: function() {
				return $ = "useTransition", U(), Ao();
			},
			useSyncExternalStore: function(e, t, n) {
				return $ = "useSyncExternalStore", U(), Ma(e, t, n);
			},
			useId: function() {
				return $ = "useId", U(), xa().memoizedState;
			},
			useFormState: function(e) {
				return $ = "useFormState", U(), ua(), eo(e);
			},
			useActionState: function(e) {
				return $ = "useActionState", U(), eo(e);
			},
			useOptimistic: function(e, t) {
				return $ = "useOptimistic", U(), Ua(e, t);
			},
			useHostTransitionStatus: jo,
			useMemoCache: Ta,
			useCacheRefresh: function() {
				return $ = "useCacheRefresh", U(), xa().memoizedState;
			},
			useEffectEvent: function(e) {
				return $ = "useEffectEvent", U(), co(e);
			}
		}, Vy = {
			readContext: function(e) {
				return l(), Kr(e);
			},
			use: function(e) {
				return c(), wa(e);
			},
			useCallback: function(e, t) {
				return $ = "useCallback", c(), ca(), mo(e, t);
			},
			useContext: function(e) {
				return $ = "useContext", c(), ca(), Kr(e);
			},
			useEffect: function(e, t) {
				return $ = "useEffect", c(), ca(), ao(e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return $ = "useImperativeHandle", c(), ca(), fo(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				$ = "useInsertionEffect", c(), ca(), ro(4, py, e, t);
			},
			useLayoutEffect: function(e, t) {
				return $ = "useLayoutEffect", c(), ca(), lo(e, t);
			},
			useMemo: function(e, t) {
				$ = "useMemo", c(), ca();
				var n = q.H;
				q.H = Vy;
				try {
					return go(e, t);
				} finally {
					q.H = n;
				}
			},
			useReducer: function(e, t, n) {
				$ = "useReducer", c(), ca();
				var r = q.H;
				q.H = Vy;
				try {
					return Da(e, t, n);
				} finally {
					q.H = r;
				}
			},
			useRef: function(e) {
				return $ = "useRef", c(), ca(), no(e);
			},
			useState: function(e) {
				$ = "useState", c(), ca();
				var t = q.H;
				q.H = Vy;
				try {
					return za(e);
				} finally {
					q.H = t;
				}
			},
			useDebugValue: function() {
				$ = "useDebugValue", c(), ca();
			},
			useDeferredValue: function(e, t) {
				return $ = "useDeferredValue", c(), ca(), vo(e, t);
			},
			useTransition: function() {
				return $ = "useTransition", c(), ca(), Oo();
			},
			useSyncExternalStore: function(e, t, n) {
				return $ = "useSyncExternalStore", c(), ca(), ja(e, t, n);
			},
			useId: function() {
				return $ = "useId", c(), ca(), Mo();
			},
			useFormState: function(e, t) {
				return $ = "useFormState", c(), ca(), Xa(e, t);
			},
			useActionState: function(e, t) {
				return $ = "useActionState", c(), ca(), Xa(e, t);
			},
			useOptimistic: function(e) {
				return $ = "useOptimistic", c(), ca(), Ba(e);
			},
			useMemoCache: function(e) {
				return c(), Ta(e);
			},
			useHostTransitionStatus: jo,
			useCacheRefresh: function() {
				return $ = "useCacheRefresh", ca(), No();
			},
			useEffectEvent: function(e) {
				return $ = "useEffectEvent", c(), ca(), so(e);
			}
		}, Hy = {
			readContext: function(e) {
				return l(), Kr(e);
			},
			use: function(e) {
				return c(), wa(e);
			},
			useCallback: function(e, t) {
				return $ = "useCallback", c(), U(), ho(e, t);
			},
			useContext: function(e) {
				return $ = "useContext", c(), U(), Kr(e);
			},
			useEffect: function(e, t) {
				$ = "useEffect", c(), U(), io(2048, hy, e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return $ = "useImperativeHandle", c(), U(), po(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				return $ = "useInsertionEffect", c(), U(), io(4, py, e, t);
			},
			useLayoutEffect: function(e, t) {
				return $ = "useLayoutEffect", c(), U(), io(4, my, e, t);
			},
			useMemo: function(e, t) {
				$ = "useMemo", c(), U();
				var n = q.H;
				q.H = Hy;
				try {
					return _o(e, t);
				} finally {
					q.H = n;
				}
			},
			useReducer: function(e, t, n) {
				$ = "useReducer", c(), U();
				var r = q.H;
				q.H = Hy;
				try {
					return Oa(e, t, n);
				} finally {
					q.H = r;
				}
			},
			useRef: function() {
				return $ = "useRef", c(), U(), xa().memoizedState;
			},
			useState: function() {
				$ = "useState", c(), U();
				var e = q.H;
				q.H = Hy;
				try {
					return Oa(Ea);
				} finally {
					q.H = e;
				}
			},
			useDebugValue: function() {
				$ = "useDebugValue", c(), U();
			},
			useDeferredValue: function(e, t) {
				return $ = "useDeferredValue", c(), U(), yo(e, t);
			},
			useTransition: function() {
				return $ = "useTransition", c(), U(), ko();
			},
			useSyncExternalStore: function(e, t, n) {
				return $ = "useSyncExternalStore", c(), U(), Ma(e, t, n);
			},
			useId: function() {
				return $ = "useId", c(), U(), xa().memoizedState;
			},
			useFormState: function(e) {
				return $ = "useFormState", c(), U(), Za(e);
			},
			useActionState: function(e) {
				return $ = "useActionState", c(), U(), Za(e);
			},
			useOptimistic: function(e, t) {
				return $ = "useOptimistic", c(), U(), Va(e, t);
			},
			useMemoCache: function(e) {
				return c(), Ta(e);
			},
			useHostTransitionStatus: jo,
			useCacheRefresh: function() {
				return $ = "useCacheRefresh", U(), xa().memoizedState;
			},
			useEffectEvent: function(e) {
				return $ = "useEffectEvent", c(), U(), co(e);
			}
		}, Uy = {
			readContext: function(e) {
				return l(), Kr(e);
			},
			use: function(e) {
				return c(), wa(e);
			},
			useCallback: function(e, t) {
				return $ = "useCallback", c(), U(), ho(e, t);
			},
			useContext: function(e) {
				return $ = "useContext", c(), U(), Kr(e);
			},
			useEffect: function(e, t) {
				$ = "useEffect", c(), U(), io(2048, hy, e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return $ = "useImperativeHandle", c(), U(), po(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				return $ = "useInsertionEffect", c(), U(), io(4, py, e, t);
			},
			useLayoutEffect: function(e, t) {
				return $ = "useLayoutEffect", c(), U(), io(4, my, e, t);
			},
			useMemo: function(e, t) {
				$ = "useMemo", c(), U();
				var n = q.H;
				q.H = Hy;
				try {
					return _o(e, t);
				} finally {
					q.H = n;
				}
			},
			useReducer: function(e, t, n) {
				$ = "useReducer", c(), U();
				var r = q.H;
				q.H = Hy;
				try {
					return Aa(e, t, n);
				} finally {
					q.H = r;
				}
			},
			useRef: function() {
				return $ = "useRef", c(), U(), xa().memoizedState;
			},
			useState: function() {
				$ = "useState", c(), U();
				var e = q.H;
				q.H = Hy;
				try {
					return Aa(Ea);
				} finally {
					q.H = e;
				}
			},
			useDebugValue: function() {
				$ = "useDebugValue", c(), U();
			},
			useDeferredValue: function(e, t) {
				return $ = "useDeferredValue", c(), U(), bo(e, t);
			},
			useTransition: function() {
				return $ = "useTransition", c(), U(), Ao();
			},
			useSyncExternalStore: function(e, t, n) {
				return $ = "useSyncExternalStore", c(), U(), Ma(e, t, n);
			},
			useId: function() {
				return $ = "useId", c(), U(), xa().memoizedState;
			},
			useFormState: function(e) {
				return $ = "useFormState", c(), U(), eo(e);
			},
			useActionState: function(e) {
				return $ = "useActionState", c(), U(), eo(e);
			},
			useOptimistic: function(e, t) {
				return $ = "useOptimistic", c(), U(), Ua(e, t);
			},
			useMemoCache: function(e) {
				return c(), Ta(e);
			},
			useHostTransitionStatus: jo,
			useCacheRefresh: function() {
				return $ = "useCacheRefresh", U(), xa().memoizedState;
			},
			useEffectEvent: function(e) {
				return $ = "useEffectEvent", c(), U(), co(e);
			}
		};
		var Wy = {}, Gy = /* @__PURE__ */ new Set(), Ky = /* @__PURE__ */ new Set(), qy = /* @__PURE__ */ new Set(), Jy = /* @__PURE__ */ new Set(), Yy = /* @__PURE__ */ new Set(), Xy = /* @__PURE__ */ new Set(), Zy = /* @__PURE__ */ new Set(), Qy = /* @__PURE__ */ new Set(), $y = /* @__PURE__ */ new Set(), eb = /* @__PURE__ */ new Set();
		Object.freeze(Wy);
		var tb = {
			enqueueSetState: function(e, t, n) {
				e = e._reactInternals;
				var r = K(e), i = Wi(r);
				i.payload = t, n != null && (Ho(n), i.callback = n), t = Gi(e, i, r), t !== null && (Qr(r, "this.setState()", e), Kc(t, e, r), Ki(t, e, r));
			},
			enqueueReplaceState: function(e, t, n) {
				e = e._reactInternals;
				var r = K(e), i = Wi(r);
				i.tag = Zv, i.payload = t, n != null && (Ho(n), i.callback = n), t = Gi(e, i, r), t !== null && (Qr(r, "this.replaceState()", e), Kc(t, e, r), Ki(t, e, r));
			},
			enqueueForceUpdate: function(e, t) {
				e = e._reactInternals;
				var n = K(e), r = Wi(n);
				r.tag = Qv, t != null && (Ho(t), r.callback = t), t = Gi(e, r, n), t !== null && (Qr(n, "this.forceUpdate()", e), Kc(t, e, n), Ki(t, e, n));
			}
		}, nb = null, rb = null, ib = Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."), ab = !1, ob = {}, sb = {}, cb = {}, lb = {}, ub = !1, db = {}, fb = {}, pb = {
			dehydrated: null,
			treeContext: null,
			retryLane: 0,
			hydrationErrors: null
		}, mb = !1, hb = null;
		hb = /* @__PURE__ */ new Set();
		var gb = !1, _b = !1, vb = !1, yb = typeof WeakSet == "function" ? WeakSet : Set, bb = null, xb = null, Sb = null, Cb = null, wb = !1, Tb = null, Eb = !1, Db = 8192, Ob = {
			getCacheForType: function(e) {
				var t = Kr(l_), n = t.data.get(e);
				return n === void 0 && (n = e(), t.data.set(e, n)), n;
			},
			cacheSignal: function() {
				return Kr(l_).controller.signal;
			},
			getOwner: function() {
				return lp;
			}
		};
		if (typeof Symbol == "function" && Symbol.for) {
			var kb = Symbol.for;
			kb("selector.component"), kb("selector.has_pseudo_class"), kb("selector.role"), kb("selector.test_id"), kb("selector.text");
		}
		var Ab = [], jb = typeof WeakMap == "function" ? WeakMap : Map, Mb = 0, Nb = 2, Pb = 4, Fb = 0, Ib = 1, Lb = 2, Rb = 3, zb = 4, Bb = 6, Vb = 5, Hb = Mb, Ub = null, Wb = null, Gb = 0, Kb = 0, qb = 1, Jb = 2, Yb = 3, Xb = 4, Zb = 5, Qb = 6, $b = 7, ex = 8, tx = 9, nx = Kb, rx = null, ix = !1, ax = !1, ox = !1, sx = 0, cx = Fb, lx = 0, ux = 0, dx = 0, fx = 0, px = 0, mx = null, hx = null, gx = !1, _x = 0, vx = 0, yx = 300, bx = Infinity, xx = 500, Sx = null, Cx = null, wx = null, Tx = 0, Ex = 1, Dx = 2, Ox = 3, kx = 0, Ax = 1, jx = 2, Mx = 3, Nx = 4, Px = 5, Fx = 0, Ix = null, Lx = null, Rx = 0, zx = 0, Bx = -0, Vx = null, Hx = null, Ux = null, Wx = Tx, Gx = null, Kx = 50, qx = 0, Jx = null, Yx = !1, Xx = !1, Zx = 50, Qx = 0, $x = null, eS = !1, tS = null, nS = !1, rS = /* @__PURE__ */ new Set(), iS = {}, aS = null, oS = null, sS = !1, cS = !1, lS = !1, uS = !1, dS = 0, fS = {};
		(function() {
			for (var e = 0; e < Zh.length; e++) {
				var t = Zh[e], n = t.toLowerCase();
				t = t[0].toUpperCase() + t.slice(1), Fn(n, "on" + t);
			}
			Fn(Uh, "onAnimationEnd"), Fn(Wh, "onAnimationIteration"), Fn(Gh, "onAnimationStart"), Fn("dblclick", "onDoubleClick"), Fn("focusin", "onFocus"), Fn("focusout", "onBlur"), Fn(Kh, "onTransitionRun"), Fn(qh, "onTransitionStart"), Fn(Jh, "onTransitionCancel"), Fn(Yh, "onTransitionEnd");
		})(), Ze("onMouseEnter", ["mouseout", "mouseover"]), Ze("onMouseLeave", ["mouseout", "mouseover"]), Ze("onPointerEnter", ["pointerout", "pointerover"]), Ze("onPointerLeave", ["pointerout", "pointerover"]), Xe("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Xe("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Xe("onBeforeInput", [
			"compositionend",
			"keypress",
			"textInput",
			"paste"
		]), Xe("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Xe("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Xe("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
		var pS = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), mS = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pS)), hS = "_reactListening" + Math.random().toString(36).slice(2), gS = !1, _S = !1, vS = !1, yS = !1, bS = !1, xS = !1, SS = !1, CS = {}, wS = /\r\n?/g, TS = /\u0000|\uFFFD/g, ES = "http://www.w3.org/1999/xlink", DS = "http://www.w3.org/XML/1998/namespace", OS = "javascript:throw new Error('React form unexpectedly submitted.')", kS = "suppressHydrationWarning", AS = "&", jS = "/&", MS = "$", NS = "/$", PS = "$?", FS = "$~", IS = "$!", LS = "html", RS = "body", zS = "head", BS = "F!", VS = "F", HS = "loading", US = "style", WS = 0, GS = 1, KS = 2, qS = null, JS = null, YS = {
			dialog: !0,
			webview: !0
		}, XS = null, ZS = void 0, QS = typeof setTimeout == "function" ? setTimeout : void 0, $S = typeof clearTimeout == "function" ? clearTimeout : void 0, eC = -1, tC = typeof Promise == "function" ? Promise : void 0, nC = typeof queueMicrotask == "function" ? queueMicrotask : tC === void 0 ? QS : function(e) {
			return tC.resolve(null).then(e).catch(zu);
		}, rC = null, iC = 0, aC = 1, oC = 2, sC = 3, cC = 4, lC = /* @__PURE__ */ new Map(), uC = /* @__PURE__ */ new Set(), dC = Hf.d;
		Hf.d = {
			f: function() {
				var e = dC.f(), t = Zc();
				return e || t;
			},
			r: function(e) {
				var t = Ke(e);
				t !== null && t.tag === 5 && t.type === "form" ? Do(t) : dC.r(e);
			},
			D: function(e) {
				dC.D(e), Sd("dns-prefetch", e, null);
			},
			C: function(e, t) {
				dC.C(e, t), Sd("preconnect", e, t);
			},
			L: function(e, t, n) {
				dC.L(e, t, n);
				var r = fC;
				if (r && e && t) {
					var i = "link[rel=\"preload\"][as=\"" + lt(t) + "\"]";
					t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + lt(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + lt(n.imageSizes) + "\"]")) : i += "[href=\"" + lt(e) + "\"]";
					var a = i;
					switch (t) {
						case "style":
							a = Td(e);
							break;
						case "script": a = kd(e);
					}
					lC.has(a) || (e = Cf({
						rel: "preload",
						href: t === "image" && n && n.imageSrcSet ? void 0 : e,
						as: t
					}, n), lC.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Ed(a)) || t === "script" && r.querySelector(Ad(a)) || (t = r.createElement("link"), vu(t, "link", e), Ye(t), r.head.appendChild(t)));
				}
			},
			m: function(e, t) {
				dC.m(e, t);
				var n = fC;
				if (n && e) {
					var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + lt(r) + "\"][href=\"" + lt(e) + "\"]", a = i;
					switch (r) {
						case "audioworklet":
						case "paintworklet":
						case "serviceworker":
						case "sharedworker":
						case "worker":
						case "script": a = kd(e);
					}
					if (!lC.has(a) && (e = Cf({
						rel: "modulepreload",
						href: e
					}, t), lC.set(a, e), n.querySelector(i) === null)) {
						switch (r) {
							case "audioworklet":
							case "paintworklet":
							case "serviceworker":
							case "sharedworker":
							case "worker":
							case "script": if (n.querySelector(Ad(a))) return;
						}
						r = n.createElement("link"), vu(r, "link", e), Ye(r), n.head.appendChild(r);
					}
				}
			},
			X: function(e, t) {
				dC.X(e, t);
				var n = fC;
				if (n && e) {
					var r = Je(n).hoistableScripts, i = kd(e), a = r.get(i);
					a || (a = n.querySelector(Ad(i)), a || (e = Cf({
						src: e,
						async: !0
					}, t), (t = lC.get(i)) && Pd(e, t), a = n.createElement("script"), Ye(a), vu(a, "link", e), n.head.appendChild(a)), a = {
						type: "script",
						instance: a,
						count: 1,
						state: null
					}, r.set(i, a));
				}
			},
			S: function(e, t, n) {
				dC.S(e, t, n);
				var r = fC;
				if (r && e) {
					var i = Je(r).hoistableStyles, a = Td(e);
					t ||= "default";
					var o = i.get(a);
					if (!o) {
						var s = {
							loading: iC,
							preload: null
						};
						if (o = r.querySelector(Ed(a))) s.loading = aC | cC;
						else {
							e = Cf({
								rel: "stylesheet",
								href: e,
								"data-precedence": t
							}, n), (n = lC.get(a)) && Nd(e, n);
							var c = o = r.createElement("link");
							Ye(c), vu(c, "link", e), c._p = new Promise(function(e, t) {
								c.onload = e, c.onerror = t;
							}), c.addEventListener("load", function() {
								s.loading |= aC;
							}), c.addEventListener("error", function() {
								s.loading |= oC;
							}), s.loading |= cC, Md(o, t, r);
						}
						o = {
							type: "stylesheet",
							instance: o,
							count: 1,
							state: s
						}, i.set(a, o);
					}
				}
			},
			M: function(e, t) {
				dC.M(e, t);
				var n = fC;
				if (n && e) {
					var r = Je(n).hoistableScripts, i = kd(e), a = r.get(i);
					a || (a = n.querySelector(Ad(i)), a || (e = Cf({
						src: e,
						async: !0,
						type: "module"
					}, t), (t = lC.get(i)) && Pd(e, t), a = n.createElement("script"), Ye(a), vu(a, "link", e), n.head.appendChild(a)), a = {
						type: "script",
						instance: a,
						count: 1,
						state: null
					}, r.set(i, a));
				}
			}
		};
		var fC = typeof document > "u" ? null : document, pC = null, mC = 6e4, hC = 800, gC = 500, _C = 0, vC = null, yC = null, bC = Uf, xC = {
			$$typeof: jf,
			Provider: null,
			Consumer: null,
			_currentValue: bC,
			_currentValue2: bC,
			_threadCount: 0
		}, SC = "%c%s%c", CC = "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", wC = "", TC = " ", EC = Function.prototype.bind, DC = !1, OC = null, kC = null, AC = null, jC = null, MC = null, NC = null, PC = null, FC = null, IC = null, LC = null;
		OC = function(e, r, i, a) {
			r = t(e, r), r !== null && (i = n(r.memoizedState, i, 0, a), r.memoizedState = i, r.baseState = i, e.memoizedProps = Cf({}, e.memoizedProps), i = rr(e, 2), i !== null && Kc(i, e, 2));
		}, kC = function(e, n, r) {
			n = t(e, n), n !== null && (r = a(n.memoizedState, r, 0), n.memoizedState = r, n.baseState = r, e.memoizedProps = Cf({}, e.memoizedProps), r = rr(e, 2), r !== null && Kc(r, e, 2));
		}, AC = function(e, n, i, a) {
			n = t(e, n), n !== null && (i = r(n.memoizedState, i, a), n.memoizedState = i, n.baseState = i, e.memoizedProps = Cf({}, e.memoizedProps), i = rr(e, 2), i !== null && Kc(i, e, 2));
		}, jC = function(e, t, r) {
			e.pendingProps = n(e.memoizedProps, t, 0, r), e.alternate && (e.alternate.pendingProps = e.pendingProps), t = rr(e, 2), t !== null && Kc(t, e, 2);
		}, MC = function(e, t) {
			e.pendingProps = a(e.memoizedProps, t, 0), e.alternate && (e.alternate.pendingProps = e.pendingProps), t = rr(e, 2), t !== null && Kc(t, e, 2);
		}, NC = function(e, t, n) {
			e.pendingProps = r(e.memoizedProps, t, n), e.alternate && (e.alternate.pendingProps = e.pendingProps), t = rr(e, 2), t !== null && Kc(t, e, 2);
		}, PC = function(e) {
			var t = rr(e, 2);
			t !== null && Kc(t, e, 2);
		}, FC = function(e) {
			var t = Me(), n = rr(e, t);
			n !== null && Kc(n, e, t);
		}, IC = function(e) {
			s = e;
		}, LC = function(e) {
			o = e;
		};
		var RC = !0, zC = null, BC = !1, VC = null, HC = null, UC = null, WC = /* @__PURE__ */ new Map(), GC = /* @__PURE__ */ new Map(), KC = [], qC = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "), JC = null;
		if (vf.prototype.render = _f.prototype.render = function(e) {
			var t = this._internalRoot;
			if (t === null) throw Error("Cannot update an unmounted root.");
			var n = arguments;
			typeof n[1] == "function" ? console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().") : b(n[1]) ? console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.") : n[1] !== void 0 && console.error("You passed a second argument to root.render(...) but it only accepts one argument."), n = e;
			var r = t.current;
			qd(r, K(r), n, t, null, null);
		}, vf.prototype.unmount = _f.prototype.unmount = function() {
			var e = arguments;
			if (typeof e[0] == "function" && console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."), e = this._internalRoot, e !== null) {
				this._internalRoot = null;
				var t = e.containerInfo;
				(Hb & (Nb | Pb)) !== Mb && console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."), qd(e.current, 2, null, e, null, null), Zc(), t[Hp] = null;
			}
		}, vf.prototype.unstable_scheduleHydration = function(e) {
			if (e) {
				var t = He();
				e = {
					blockedOn: null,
					target: e,
					priority: t
				};
				for (var n = 0; n < KC.length && t !== 0 && t < KC[n].priority; n++);
				KC.splice(n, 0, e), n === 0 && lf(e);
			}
		}, (function() {
			var e = xf.version;
			if (e !== "19.2.4") throw Error("Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\n  - react:      " + (e + "\n  - react-dom:  19.2.4\nLearn more: https://react.dev/warnings/version-mismatch"));
		})(), typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"), Hf.findDOMNode = function(e) {
			var t = e._reactInternals;
			if (t === void 0) throw typeof e.render == "function" ? Error("Unable to find node on an unmounted component.") : (e = Object.keys(e).join(","), Error("Argument appears to not be a ReactComponent. Keys: " + e));
			return e = te(t), e = e === null ? null : ne(e), e = e === null ? null : e.stateNode, e;
		}, !(function() {
			var e = {
				bundleType: 1,
				version: "19.2.4",
				rendererPackageName: "react-dom",
				currentDispatcherRef: q,
				reconcilerVersion: "19.2.4"
			};
			return e.overrideHookState = OC, e.overrideHookStateDeletePath = kC, e.overrideHookStateRenamePath = AC, e.overrideProps = jC, e.overridePropsDeletePath = MC, e.overridePropsRenamePath = NC, e.scheduleUpdate = PC, e.scheduleRetry = FC, e.setErrorHandler = IC, e.setSuspenseHandler = LC, e.scheduleRefresh = _, e.scheduleRoot = h, e.setRefreshHandler = v, e.getCurrentFiber = Qd, Te(e);
		})() && Gm && window.top === window.self && (-1 < navigator.userAgent.indexOf("Chrome") && navigator.userAgent.indexOf("Edge") === -1 || -1 < navigator.userAgent.indexOf("Firefox"))) {
			var YC = window.location.protocol;
			/^(https?|file):$/.test(YC) && console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools" + (YC === "file:" ? "\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq" : ""), "font-weight:bold");
		}
		e.createRoot = function(e, t) {
			if (!b(e)) throw Error("Target container is not a DOM element.");
			yf(e);
			var n = !1, r = "", i = qo, a = Jo, o = Yo;
			return t != null && (t.hydrate ? console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.") : typeof t == "object" && t && t.$$typeof === Tf && console.error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n  let root = createRoot(domContainer);\n  root.render(<App />);"), !0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (i = t.onUncaughtError), t.onCaughtError !== void 0 && (a = t.onCaughtError), t.onRecoverableError !== void 0 && (o = t.onRecoverableError)), t = Gd(e, 1, !1, null, null, n, r, null, i, a, o, gf), e[Hp] = t.current, nu(e), new _f(t);
		}, e.hydrateRoot = function(e, t, n) {
			if (!b(e)) throw Error("Target container is not a DOM element.");
			yf(e), t === void 0 && console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");
			var r = !1, i = "", a = qo, o = Jo, s = Yo, c = null;
			return n != null && (!0 === n.unstable_strictMode && (r = !0), n.identifierPrefix !== void 0 && (i = n.identifierPrefix), n.onUncaughtError !== void 0 && (a = n.onUncaughtError), n.onCaughtError !== void 0 && (o = n.onCaughtError), n.onRecoverableError !== void 0 && (s = n.onRecoverableError), n.formState !== void 0 && (c = n.formState)), t = Gd(e, 1, !0, t, n ?? null, r, i, c, a, o, s, gf), t.context = Kd(null), n = t.current, r = K(n), r = Re(r), i = Wi(r), i.callback = null, Gi(n, i, r), Qr(r, "hydrateRoot()", null), n = r, t.current.lanes = n, Ne(t, n), zl(t), e[Hp] = t.current, nu(e), new vf(t);
		}, e.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
	})();
})), ee = (/* @__PURE__ */ s(((e, t) => {
	function n() {
		if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
			if (process.env.NODE_ENV !== "production") throw Error("^_^");
			try {
				__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
			} catch (e) {
				console.error(e);
			}
		}
	}
	process.env.NODE_ENV === "production" ? (n(), t.exports = b()) : t.exports = x();
})))(), S = /* @__PURE__ */ u(g(), 1);
function C(e, t) {
	switch (t.type) {
		case "ADD_OBJECT": return {
			...e,
			objects: [...e.objects, t.object]
		};
		case "REMOVE_OBJECT": return {
			...e,
			objects: e.objects.filter((e) => e.id !== t.id),
			selectedIds: e.selectedIds.filter((e) => e !== t.id)
		};
		case "UPDATE_OBJECT": return {
			...e,
			objects: e.objects.map((e) => e.id === t.id ? {
				...e,
				...t.changes
			} : e)
		};
		case "SELECT_OBJECTS": return {
			...e,
			selectedIds: t.ids
		};
		case "DESELECT_ALL": return {
			...e,
			selectedIds: []
		};
		case "REORDER_OBJECT": {
			let n = e.objects.findIndex((e) => e.id === t.id);
			if (n === -1) return e;
			let r = [...e.objects], [i] = r.splice(n, 1), a = Math.max(0, Math.min(t.toIndex, r.length));
			return r.splice(a, 0, i), {
				...e,
				objects: r
			};
		}
		case "TOGGLE_VISIBILITY": return {
			...e,
			objects: e.objects.map((e) => e.id === t.id ? {
				...e,
				visible: !e.visible
			} : e)
		};
		case "TOGGLE_LOCK": return {
			...e,
			objects: e.objects.map((e) => e.id === t.id ? {
				...e,
				locked: !e.locked
			} : e)
		};
		case "SET_ARTBOARD": return {
			...e,
			artboard: t.config
		};
		case "RESTORE": return t.state;
		default: return e;
	}
}
var te = 50;
function ne(e = null) {
	let [t, n] = (0, S.useReducer)(C, {
		objects: [],
		selectedIds: [],
		artboard: null,
		traceMetadata: e
	}), r = (0, S.useRef)({
		undoStack: [],
		redoStack: []
	}), i = (0, S.useCallback)((e) => {
		let t = r.current;
		t.undoStack = [...t.undoStack.slice(-(te - 1)), e], t.redoStack = [];
	}, []);
	return {
		state: t,
		addObject: (0, S.useCallback)((e) => {
			i(t), n({
				type: "ADD_OBJECT",
				object: e
			});
		}, [t, i]),
		removeObject: (0, S.useCallback)((e) => {
			i(t), n({
				type: "REMOVE_OBJECT",
				id: e
			});
		}, [t, i]),
		updateObject: (0, S.useCallback)((e, r) => {
			i(t), n({
				type: "UPDATE_OBJECT",
				id: e,
				changes: r
			});
		}, [t, i]),
		selectObjects: (0, S.useCallback)((e) => {
			n({
				type: "SELECT_OBJECTS",
				ids: e
			});
		}, []),
		deselectAll: (0, S.useCallback)(() => {
			n({ type: "DESELECT_ALL" });
		}, []),
		reorderObject: (0, S.useCallback)((e, r) => {
			i(t), n({
				type: "REORDER_OBJECT",
				id: e,
				toIndex: r
			});
		}, [t, i]),
		toggleVisibility: (0, S.useCallback)((e) => {
			i(t), n({
				type: "TOGGLE_VISIBILITY",
				id: e
			});
		}, [t, i]),
		toggleLock: (0, S.useCallback)((e) => {
			i(t), n({
				type: "TOGGLE_LOCK",
				id: e
			});
		}, [t, i]),
		setArtboard: (0, S.useCallback)((e) => {
			i(t), n({
				type: "SET_ARTBOARD",
				config: e
			});
		}, [t, i]),
		undo: (0, S.useCallback)(() => {
			let e = r.current;
			if (e.undoStack.length === 0) return;
			let i = e.undoStack[e.undoStack.length - 1];
			e.undoStack = e.undoStack.slice(0, -1), e.redoStack = [...e.redoStack, t], n({
				type: "RESTORE",
				state: i
			});
		}, [t]),
		redo: (0, S.useCallback)(() => {
			let e = r.current;
			if (e.redoStack.length === 0) return;
			let i = e.redoStack[e.redoStack.length - 1];
			e.redoStack = e.redoStack.slice(0, -1), e.undoStack = [...e.undoStack, t], n({
				type: "RESTORE",
				state: i
			});
		}, [t]),
		canUndo: r.current.undoStack.length > 0,
		canRedo: r.current.redoStack.length > 0
	};
}
//#endregion
//#region ../node_modules/react/cjs/react-jsx-runtime.production.js
var w = /* @__PURE__ */ s(((e) => {
	var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
	function r(e, n, r) {
		var i = null;
		if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
		else r = n;
		return n = r.ref, {
			$$typeof: t,
			type: e,
			key: i,
			ref: n === void 0 ? null : n,
			props: r
		};
	}
	e.Fragment = n, e.jsx = r, e.jsxs = r;
})), T = /* @__PURE__ */ s(((e) => {
	process.env.NODE_ENV !== "production" && (function() {
		function t(e) {
			if (e == null) return null;
			if (typeof e == "function") return e.$$typeof === E ? null : e.displayName || e.name || null;
			if (typeof e == "string") return e;
			switch (e) {
				case v: return "Fragment";
				case b: return "Profiler";
				case y: return "StrictMode";
				case C: return "Suspense";
				case te: return "SuspenseList";
				case T: return "Activity";
			}
			if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
				case _: return "Portal";
				case ee: return e.displayName || "Context";
				case x: return (e._context.displayName || "Context") + ".Consumer";
				case S:
					var n = e.render;
					return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
				case ne: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
				case w:
					n = e._payload, e = e._init;
					try {
						return t(e(n));
					} catch {}
			}
			return null;
		}
		function n(e) {
			return "" + e;
		}
		function r(e) {
			try {
				n(e);
				var t = !1;
			} catch {
				t = !0;
			}
			if (t) {
				t = console;
				var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
				return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
			}
		}
		function i(e) {
			if (e === v) return "<>";
			if (typeof e == "object" && e && e.$$typeof === w) return "<...>";
			try {
				var n = t(e);
				return n ? "<" + n + ">" : "<...>";
			} catch {
				return "<...>";
			}
		}
		function a() {
			var e = D.A;
			return e === null ? null : e.getOwner();
		}
		function o() {
			return Error("react-stack-top-frame");
		}
		function s(e) {
			if (re.call(e, "key")) {
				var t = Object.getOwnPropertyDescriptor(e, "key").get;
				if (t && t.isReactWarning) return !1;
			}
			return e.key !== void 0;
		}
		function c(e, t) {
			function n() {
				A || (A = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
			}
			n.isReactWarning = !0, Object.defineProperty(e, "key", {
				get: n,
				configurable: !0
			});
		}
		function l() {
			var e = t(this.type);
			return ie[e] || (ie[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
		}
		function u(e, t, n, r, i, a) {
			var o = n.ref;
			return e = {
				$$typeof: h,
				type: e,
				key: t,
				props: n,
				_owner: r
			}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
				enumerable: !1,
				value: null
			}) : Object.defineProperty(e, "ref", {
				enumerable: !1,
				get: l
			}), e._store = {}, Object.defineProperty(e._store, "validated", {
				configurable: !1,
				enumerable: !1,
				writable: !0,
				value: 0
			}), Object.defineProperty(e, "_debugInfo", {
				configurable: !1,
				enumerable: !1,
				writable: !0,
				value: null
			}), Object.defineProperty(e, "_debugStack", {
				configurable: !1,
				enumerable: !1,
				writable: !0,
				value: i
			}), Object.defineProperty(e, "_debugTask", {
				configurable: !1,
				enumerable: !1,
				writable: !0,
				value: a
			}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
		}
		function d(e, n, i, o, l, d) {
			var p = n.children;
			if (p !== void 0) if (o) if (O(p)) {
				for (o = 0; o < p.length; o++) f(p[o]);
				Object.freeze && Object.freeze(p);
			} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
			else f(p);
			if (re.call(n, "key")) {
				p = t(e);
				var m = Object.keys(n).filter(function(e) {
					return e !== "key";
				});
				o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", oe[p + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n  let props = %s;\n  <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n  let props = %s;\n  <%s key={someKey} {...props} />", o, p, m, p), oe[p + o] = !0);
			}
			if (p = null, i !== void 0 && (r(i), p = "" + i), s(n) && (r(n.key), p = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
			else i = n;
			return p && c(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), u(e, p, i, a(), l, d);
		}
		function f(e) {
			p(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === w && (e._payload.status === "fulfilled" ? p(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
		}
		function p(e) {
			return typeof e == "object" && !!e && e.$$typeof === h;
		}
		var m = g(), h = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), D = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, O = Array.isArray, k = console.createTask ? console.createTask : function() {
			return null;
		};
		m = { react_stack_bottom_frame: function(e) {
			return e();
		} };
		var A, ie = {}, j = m.react_stack_bottom_frame.bind(m, o)(), ae = k(i(o)), oe = {};
		e.Fragment = v, e.jsx = function(e, t, n) {
			var r = 1e4 > D.recentlyCreatedOwnerStacks++;
			return d(e, t, n, !1, r ? Error("react-stack-top-frame") : j, r ? k(i(e)) : ae);
		}, e.jsxs = function(e, t, n) {
			var r = 1e4 > D.recentlyCreatedOwnerStacks++;
			return d(e, t, n, !0, r ? Error("react-stack-top-frame") : j, r ? k(i(e)) : ae);
		};
	})();
})), E = (/* @__PURE__ */ s(((e, t) => {
	process.env.NODE_ENV === "production" ? t.exports = w() : t.exports = T();
})))(), D = ".png,.jpg,.jpeg,.bmp,.tiff,.webp,.svg";
function re(e) {
	return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
}
function O(e) {
	return e.type === "image/svg+xml" || e.name.toLowerCase().endsWith(".svg");
}
function k({ onFileSelect: e, selectedFile: t }) {
	let n = (0, S.useRef)(null), [r, i] = (0, S.useState)(!1), [a, o] = (0, S.useState)(null), s = (0, S.useCallback)((t) => {
		a && URL.revokeObjectURL(a), o(URL.createObjectURL(t)), e(t, O(t));
	}, [e, a]), c = (0, S.useCallback)((e) => {
		e.preventDefault(), e.stopPropagation(), i(!0);
	}, []), l = (0, S.useCallback)((e) => {
		e.preventDefault(), e.stopPropagation(), i(!1);
	}, []), u = (0, S.useCallback)((e) => {
		e.preventDefault(), e.stopPropagation(), i(!1);
		let t = e.dataTransfer.files[0];
		t && s(t);
	}, [s]), d = (0, S.useCallback)((e) => {
		let t = e.target.files?.[0];
		t && s(t);
	}, [s]);
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: `file-upload-zone ${r ? "file-upload-zone--drag-over" : ""}`,
		onDragOver: c,
		onDragLeave: l,
		onDrop: u,
		onClick: () => n.current?.click(),
		role: "button",
		tabIndex: 0,
		onKeyDown: (e) => {
			(e.key === "Enter" || e.key === " ") && n.current?.click();
		},
		"aria-label": "Upload image file",
		children: [/* @__PURE__ */ (0, E.jsx)("input", {
			ref: n,
			type: "file",
			accept: D,
			onChange: d,
			style: { display: "none" },
			"data-testid": "file-input"
		}), t ? /* @__PURE__ */ (0, E.jsxs)("div", {
			className: "file-upload-preview",
			children: [a && /* @__PURE__ */ (0, E.jsx)("img", {
				src: a,
				alt: "Uploaded preview",
				className: "file-upload-thumb"
			}), /* @__PURE__ */ (0, E.jsxs)("div", {
				className: "file-upload-info",
				children: [
					/* @__PURE__ */ (0, E.jsx)("span", {
						className: "file-upload-name",
						children: t.name
					}),
					/* @__PURE__ */ (0, E.jsx)("span", {
						className: "file-upload-size",
						children: re(t.size)
					}),
					O(t) && /* @__PURE__ */ (0, E.jsx)("span", {
						className: "file-upload-badge",
						children: "SVG — simplify mode"
					})
				]
			})]
		}) : /* @__PURE__ */ (0, E.jsxs)("div", {
			className: "file-upload-prompt",
			children: [
				/* @__PURE__ */ (0, E.jsx)("span", {
					className: "file-upload-icon",
					children: "📁"
				}),
				/* @__PURE__ */ (0, E.jsxs)("p", { children: [/* @__PURE__ */ (0, E.jsx)("strong", { children: "Drop an image here" }), " or click to browse"] }),
				/* @__PURE__ */ (0, E.jsx)("small", { children: "PNG, JPG, BMP, TIFF, WebP, or SVG" })
			]
		})]
	});
}
//#endregion
//#region src/api/engine.ts
var A = "/engine";
function ie(e) {
	A = e.replace(/\/+$/, "");
}
function j() {
	return A;
}
async function ae(e) {
	let t = await fetch(`${j()}/presets`, { signal: e });
	if (!t.ok) throw Error(`GET /engine/presets failed: ${t.status} ${t.statusText}`);
	return t.json();
}
async function oe(e, t, n, r) {
	let i = new FormData();
	i.append("file", e), i.append("output_format", "svg"), i.append("preset", t), i.append("params", JSON.stringify(n));
	let a = await fetch(`${j()}/trace`, {
		method: "POST",
		body: i,
		signal: r
	});
	if (!a.ok) {
		let e = await a.text().catch(() => a.statusText);
		throw Error(`POST /engine/trace failed: ${a.status} — ${e}`);
	}
	return a.json();
}
async function se(e, t, n) {
	let r = new FormData();
	r.append("file", e), r.append("epsilon", String(t)), r.append("output_format", "svg");
	let i = await fetch(`${j()}/simplify`, {
		method: "POST",
		body: r,
		signal: n
	});
	if (!i.ok) {
		let e = await i.text().catch(() => i.statusText);
		throw Error(`POST /engine/simplify failed: ${i.status} — ${e}`);
	}
	return i.json();
}
async function ce(e, t, n, r) {
	let i = new FormData();
	i.append("file", new Blob([e], { type: "image/svg+xml" }), "export.svg"), i.append("output_format", "dxf"), i.append("units", t), i.append("scale_factor", String(n));
	let a = await fetch(`${j()}/simplify`, {
		method: "POST",
		body: i,
		signal: r
	});
	if (!a.ok) {
		let e = await a.text().catch(() => a.statusText);
		throw Error(`POST /engine/simplify (DXF export) failed: ${a.status} — ${e}`);
	}
	return a.blob();
}
//#endregion
//#region src/components/PresetSelector.tsx
function le({ selectedPreset: e, onPresetSelect: t }) {
	let [n, r] = (0, S.useState)({}), [i, a] = (0, S.useState)(!0), [o, s] = (0, S.useState)(null);
	if ((0, S.useEffect)(() => {
		let n = new AbortController();
		return ae(n.signal).then((n) => {
			if (r(n.presets), a(!1), !n.presets[e]) {
				let e = n.presets.sign ? "sign" : Object.keys(n.presets)[0];
				e && n.presets[e] && t(e, n.presets[e]);
			}
		}).catch((e) => {
			e instanceof Error && e.name === "AbortError" || (s(e instanceof Error ? e.message : "Failed to load presets"), a(!1));
		}), () => n.abort();
	}, []), i) return /* @__PURE__ */ (0, E.jsx)("div", {
		className: "preset-selector",
		children: /* @__PURE__ */ (0, E.jsx)("p", {
			className: "preset-loading",
			children: "Loading presets…"
		})
	});
	if (o) return /* @__PURE__ */ (0, E.jsx)("div", {
		className: "preset-selector",
		children: /* @__PURE__ */ (0, E.jsxs)("p", {
			className: "preset-error",
			children: ["⚠ ", o]
		})
	});
	let c = Object.entries(n);
	return c.length === 0 ? /* @__PURE__ */ (0, E.jsx)("div", {
		className: "preset-selector",
		children: /* @__PURE__ */ (0, E.jsx)("p", { children: "No presets available." })
	}) : /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "preset-selector",
		children: [/* @__PURE__ */ (0, E.jsx)("h3", {
			className: "preset-heading",
			children: "Preset"
		}), /* @__PURE__ */ (0, E.jsx)("div", {
			className: "preset-grid",
			children: c.map(([n, r]) => /* @__PURE__ */ (0, E.jsxs)("button", {
				className: `preset-card ${e === n ? "preset-card--selected" : ""}`,
				onClick: () => t(n, r),
				type: "button",
				children: [/* @__PURE__ */ (0, E.jsx)("span", {
					className: "preset-card-name",
					children: r.name
				}), /* @__PURE__ */ (0, E.jsx)("span", {
					className: "preset-card-desc",
					children: r.description
				})]
			}, n))
		})]
	});
}
//#endregion
//#region src/components/ParameterSliders.tsx
function ue(e) {
	let t = e.vectorization.mode, n = e.vectorization.potrace, r = e.vectorization.vtracer, i = [{
		key: "epsilon",
		label: "Detail Level",
		min: .5,
		max: 10,
		step: .5,
		defaultValue: e.postprocessing.epsilon ?? 2.5
	}];
	return t === "potrace" ? i.push({
		key: "turdsize",
		label: "Noise Filter",
		min: 0,
		max: 50,
		step: 1,
		defaultValue: n?.turdsize ?? 10,
		modeFilter: "potrace"
	}, {
		key: "alphamax",
		label: "Smooth Curves",
		min: 0,
		max: 1.334,
		step: .1,
		defaultValue: n?.alphamax ?? 1,
		modeFilter: "potrace"
	}) : i.push({
		key: "filter_speckle",
		label: "Noise Filter",
		min: 0,
		max: 50,
		step: 1,
		defaultValue: r?.filter_speckle ?? 20,
		modeFilter: "vtracer"
	}, {
		key: "corner_threshold",
		label: "Corner Threshold",
		min: 0,
		max: 180,
		step: 1,
		defaultValue: r?.corner_threshold ?? 60,
		modeFilter: "vtracer"
	}), i;
}
function de({ presetConfig: e, params: t, onChange: n }) {
	let r = (0, S.useCallback)((e, r) => {
		n({
			...t,
			[e]: r
		});
	}, [t, n]);
	if (!e) return null;
	let i = ue(e);
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "parameter-sliders",
		children: [/* @__PURE__ */ (0, E.jsx)("h3", {
			className: "parameter-heading",
			children: "Parameters"
		}), i.map((e) => {
			let n = typeof t[e.key] == "number" ? t[e.key] : e.defaultValue;
			return /* @__PURE__ */ (0, E.jsxs)("div", {
				className: "slider-row",
				children: [
					/* @__PURE__ */ (0, E.jsx)("label", {
						className: "slider-label",
						htmlFor: `slider-${e.key}`,
						children: e.label
					}),
					/* @__PURE__ */ (0, E.jsx)("input", {
						id: `slider-${e.key}`,
						type: "range",
						className: "slider-input",
						min: e.min,
						max: e.max,
						step: e.step,
						value: n,
						onChange: (t) => r(e.key, parseFloat(t.target.value))
					}),
					/* @__PURE__ */ (0, E.jsx)("span", {
						className: "slider-value",
						children: n
					})
				]
			}, e.key);
		})]
	});
}
//#endregion
//#region src/components/SvgPreview.tsx
function fe(e) {
	return e.replace(/\s+width="[^"]*"/g, "").replace(/\s+height="[^"]*"/g, "").replace(/\s+width='[^']*'/g, "").replace(/\s+height='[^']*'/g, "");
}
function pe({ svgOutput: e, isLoading: t, error: n, metadata: r }) {
	return n ? /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "svg-preview svg-preview--error",
		children: [/* @__PURE__ */ (0, E.jsxs)("p", {
			className: "svg-preview-error",
			children: ["⚠ ", n]
		}), /* @__PURE__ */ (0, E.jsx)("p", {
			className: "svg-preview-hint",
			children: "Try adjusting parameters or selecting a different preset"
		})]
	}) : t ? /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "svg-preview svg-preview--loading",
		children: [/* @__PURE__ */ (0, E.jsx)("div", { className: "svg-preview-spinner" }), /* @__PURE__ */ (0, E.jsx)("p", {
			className: "svg-preview-status",
			children: "Vectorizing…"
		})]
	}) : e ? /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "svg-preview svg-preview--ready",
		children: [/* @__PURE__ */ (0, E.jsx)("div", {
			className: "svg-preview-container",
			dangerouslySetInnerHTML: { __html: fe(e) }
		}), r && /* @__PURE__ */ (0, E.jsxs)("div", {
			className: "svg-preview-meta",
			children: [
				/* @__PURE__ */ (0, E.jsxs)("span", { children: [
					r.path_count,
					" paths · ",
					r.node_count_total,
					" nodes"
				] }),
				/* @__PURE__ */ (0, E.jsxs)("span", { children: [r.processing_ms, "ms"] }),
				r.warnings.length > 0 && /* @__PURE__ */ (0, E.jsxs)("span", {
					className: "svg-preview-warnings",
					children: ["⚠ ", r.warnings.join(", ")]
				})
			]
		})]
	}) : /* @__PURE__ */ (0, E.jsx)("div", {
		className: "svg-preview svg-preview--empty",
		children: /* @__PURE__ */ (0, E.jsx)("p", {
			className: "svg-preview-placeholder",
			children: "Upload an image to begin vectorization"
		})
	});
}
//#endregion
//#region src/components/OutputInfoBar.tsx
function me(e) {
	return e > 5e3 ? "yellow" : "green";
}
function he(e) {
	return e > 0 ? "red" : "green";
}
function ge({ metadata: e }) {
	if (!e) return /* @__PURE__ */ (0, E.jsx)("div", {
		className: "output-info-bar output-info-bar--empty",
		children: /* @__PURE__ */ (0, E.jsx)("span", {
			className: "output-info-placeholder",
			children: "Trace an image to see output stats"
		})
	});
	let t = me(e.node_count_total), n = he(e.open_paths);
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "output-info-bar",
		children: [/* @__PURE__ */ (0, E.jsxs)("div", {
			className: "output-info-stats",
			children: [
				/* @__PURE__ */ (0, E.jsxs)("span", {
					className: "output-stat output-stat--green",
					"data-testid": "stat-paths",
					children: [/* @__PURE__ */ (0, E.jsx)("span", {
						className: "output-stat-label",
						children: "Paths"
					}), /* @__PURE__ */ (0, E.jsx)("span", {
						className: "output-stat-value",
						children: e.path_count
					})]
				}),
				/* @__PURE__ */ (0, E.jsxs)("span", {
					className: `output-stat output-stat--${t}`,
					"data-testid": "stat-nodes",
					children: [/* @__PURE__ */ (0, E.jsx)("span", {
						className: "output-stat-label",
						children: "Nodes"
					}), /* @__PURE__ */ (0, E.jsx)("span", {
						className: "output-stat-value",
						children: e.node_count_total.toLocaleString()
					})]
				}),
				/* @__PURE__ */ (0, E.jsxs)("span", {
					className: `output-stat output-stat--${n}`,
					"data-testid": "stat-open-paths",
					children: [/* @__PURE__ */ (0, E.jsx)("span", {
						className: "output-stat-label",
						children: "Open Paths"
					}), /* @__PURE__ */ (0, E.jsx)("span", {
						className: "output-stat-value",
						children: e.open_paths
					})]
				}),
				/* @__PURE__ */ (0, E.jsxs)("span", {
					className: "output-stat output-stat--green",
					"data-testid": "stat-time",
					children: [/* @__PURE__ */ (0, E.jsx)("span", {
						className: "output-stat-label",
						children: "Time"
					}), /* @__PURE__ */ (0, E.jsxs)("span", {
						className: "output-stat-value",
						children: [e.processing_ms, "ms"]
					})]
				})
			]
		}), e.warnings.length > 0 && /* @__PURE__ */ (0, E.jsx)("div", {
			className: "output-info-warnings",
			"data-testid": "warnings",
			children: e.warnings.map((e, t) => /* @__PURE__ */ (0, E.jsxs)("span", {
				className: "output-info-warning",
				children: ["⚠ ", e]
			}, t))
		})]
	});
}
//#endregion
//#region src/hooks/useDebouncedTrace.ts
function _e(e) {
	return e.type === "image/svg+xml" || e.name.toLowerCase().endsWith(".svg");
}
function ve(e, t, n, r = 300) {
	let [i, a] = (0, S.useState)(null), [o, s] = (0, S.useState)(null), [c, l] = (0, S.useState)(!1), [u, d] = (0, S.useState)(null), f = (0, S.useRef)(null), p = (0, S.useRef)(null), m = JSON.stringify(n);
	return (0, S.useEffect)(() => {
		if (p.current !== null && (clearTimeout(p.current), p.current = null), f.current &&= (f.current.abort(), null), !e) {
			a(null), s(null), l(!1), d(null);
			return;
		}
		let n = JSON.parse(m);
		return l(!0), d(null), p.current = setTimeout(async () => {
			let r = new AbortController();
			f.current = r;
			try {
				let i;
				i = _e(e) ? await se(e, typeof n.epsilon == "number" ? n.epsilon : 2.5, r.signal) : await oe(e, t, n, r.signal), r.signal.aborted || (a(i.output), s(i.metadata), l(!1));
			} catch (e) {
				if (e instanceof Error && e.name === "AbortError") return;
				r.signal.aborted || (d(e instanceof Error ? e.message : "Vectorization failed"), l(!1));
			}
		}, r), () => {
			p.current !== null && (clearTimeout(p.current), p.current = null), f.current &&= (f.current.abort(), null);
		};
	}, [
		e,
		t,
		m,
		r
	]), {
		svgOutput: i,
		metadata: o,
		isLoading: c,
		error: u
	};
}
var M = {
	container: "_container_1ywxc_3",
	leftPanel: "_leftPanel_1ywxc_11",
	rightPanel: "_rightPanel_1ywxc_18",
	previewPlaceholder: "_previewPlaceholder_1ywxc_31"
};
//#endregion
//#region src/views/ImportConvert.tsx
function ye(e) {
	let t = e.vectorization.mode, n = { epsilon: e.postprocessing.epsilon ?? 2.5 };
	return t === "potrace" ? (n.turdsize = e.vectorization.potrace?.turdsize ?? 10, n.alphamax = e.vectorization.potrace?.alphamax ?? 1) : (n.filter_speckle = e.vectorization.vtracer?.filter_speckle ?? 20, n.corner_threshold = e.vectorization.vtracer?.corner_threshold ?? 60), n;
}
function be({ onUseThis: e }) {
	let [t, n] = (0, S.useState)(null), [r, i] = (0, S.useState)(!1), [a, o] = (0, S.useState)("sign"), [s, c] = (0, S.useState)(null), [l, u] = (0, S.useState)({
		epsilon: 2.5,
		turdsize: 10,
		alphamax: 1
	}), { svgOutput: d, metadata: f, isLoading: p, error: m } = ve(t, a, l, 300), h = (0, S.useCallback)((e, t) => {
		n(e), i(t);
	}, []), g = (0, S.useCallback)((e, t) => {
		o(e), c(t), u(ye(t));
	}, []), _ = (0, S.useCallback)((e) => {
		u(e);
	}, []), v = (0, S.useCallback)(() => {
		d && f && e(d, f);
	}, [
		d,
		f,
		e
	]);
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: M.container,
		children: [/* @__PURE__ */ (0, E.jsxs)("div", {
			className: M.leftPanel,
			children: [
				/* @__PURE__ */ (0, E.jsx)(k, {
					onFileSelect: h,
					selectedFile: t
				}),
				/* @__PURE__ */ (0, E.jsx)(le, {
					selectedPreset: a,
					onPresetSelect: g
				}),
				/* @__PURE__ */ (0, E.jsx)(de, {
					presetConfig: s,
					params: l,
					onChange: _
				}),
				/* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: "use-this-btn",
					disabled: !d || p,
					onClick: v,
					children: "Use This →"
				})
			]
		}), /* @__PURE__ */ (0, E.jsxs)("div", {
			className: M.rightPanel,
			children: [/* @__PURE__ */ (0, E.jsx)(pe, {
				svgOutput: d,
				isLoading: p,
				error: m,
				metadata: f
			}), /* @__PURE__ */ (0, E.jsx)(ge, { metadata: f })]
		})]
	});
}
//#endregion
//#region src/utils/artboardShapes.ts
var xe = {
	rect: {
		label: "Rectangle",
		width: 4,
		height: 6,
		unit: "inches"
	},
	square: {
		label: "Square",
		width: 4,
		height: 4,
		unit: "inches"
	},
	circle: {
		label: "Circle",
		width: 4,
		height: 4,
		unit: "inches"
	},
	oval: {
		label: "Oval",
		width: 3,
		height: 4,
		unit: "inches"
	},
	shield: {
		label: "Shield",
		width: 4,
		height: 5,
		unit: "inches"
	},
	pennant: {
		label: "Pennant",
		width: 3.5,
		height: 8,
		unit: "inches"
	},
	custom: {
		label: "Custom",
		width: 4,
		height: 4,
		unit: "inches"
	}
};
function Se(e, t) {
	let n = e * .08;
	return [
		`M ${n} 0`,
		`L ${e - n} 0`,
		`Q ${e} 0, ${e} ${t * .08}`,
		`L ${e} ${t * .5}`,
		`Q ${e} ${t * .75}, ${e / 2} ${t}`,
		`Q 0 ${t * .75}, 0 ${t * .5}`,
		`L 0 ${t * .08}`,
		`Q 0 0, ${n} 0`,
		"Z"
	].join(" ");
}
function N(e, t) {
	return `M 0 0 L ${e} 0 L ${e / 2} ${t} Z`;
}
function Ce(e) {
	let { shape: t, width: n, height: r } = e, i = Ee(n, e.unit), a = Ee(r, e.unit);
	switch (t) {
		case "shield": return Se(i, a);
		case "pennant": return N(i, a);
		case "custom": return e.clipPath;
		default: return;
	}
}
var we = 96, Te = we / 25.4;
function Ee(e, t) {
	return t === "inches" ? e * we : e * Te;
}
//#endregion
//#region src/components/canvas/ArtboardSetup.tsx
var De = [
	"rect",
	"square",
	"circle",
	"oval",
	"shield",
	"pennant",
	"custom"
], Oe = {
	rect: "Rectangle",
	square: "Square",
	circle: "Circle",
	oval: "Oval",
	shield: "Shield",
	pennant: "Pennant",
	custom: "Custom"
};
function ke({ onConfirm: e }) {
	let [t, n] = (0, S.useState)("rect"), [r, i] = (0, S.useState)(xe.rect.width), [a, o] = (0, S.useState)(xe.rect.height), [s, c] = (0, S.useState)("inches"), l = (e) => {
		n(e);
		let t = xe[e];
		i(t.width), o(t.height), (e === "square" || e === "circle") && o(t.width);
	}, u = (e) => {
		i(e), (t === "square" || t === "circle") && o(e);
	}, d = (e) => {
		t === "square" || t === "circle" || o(e);
	}, f = () => {
		let n = {
			shape: t,
			width: r,
			height: a,
			unit: s
		}, i = Ce(n);
		i && (n.clipPath = i), e(n);
	};
	return /* @__PURE__ */ (0, E.jsx)("div", {
		className: "artboard-setup-overlay",
		"data-testid": "artboard-setup",
		children: /* @__PURE__ */ (0, E.jsxs)("div", {
			className: "artboard-setup-modal",
			children: [
				/* @__PURE__ */ (0, E.jsx)("h2", { children: "Set Up Artboard" }),
				/* @__PURE__ */ (0, E.jsxs)("fieldset", {
					className: "artboard-setup-shapes",
					children: [/* @__PURE__ */ (0, E.jsx)("legend", { children: "Shape" }), /* @__PURE__ */ (0, E.jsx)("div", {
						className: "artboard-shape-grid",
						children: De.map((e) => /* @__PURE__ */ (0, E.jsx)("button", {
							type: "button",
							className: `artboard-shape-btn${e === t ? " active" : ""}`,
							onClick: () => l(e),
							"aria-pressed": e === t,
							children: Oe[e]
						}, e))
					})]
				}),
				/* @__PURE__ */ (0, E.jsxs)("div", {
					className: "artboard-setup-dimensions",
					children: [/* @__PURE__ */ (0, E.jsxs)("label", { children: ["Width", /* @__PURE__ */ (0, E.jsx)("input", {
						type: "number",
						min: .5,
						step: .25,
						value: r,
						onChange: (e) => u(Number(e.target.value)),
						"data-testid": "artboard-width"
					})] }), /* @__PURE__ */ (0, E.jsxs)("label", { children: ["Height", /* @__PURE__ */ (0, E.jsx)("input", {
						type: "number",
						min: .5,
						step: .25,
						value: a,
						onChange: (e) => d(Number(e.target.value)),
						disabled: t === "square" || t === "circle",
						"data-testid": "artboard-height"
					})] })]
				}),
				/* @__PURE__ */ (0, E.jsxs)("fieldset", {
					className: "artboard-setup-units",
					children: [
						/* @__PURE__ */ (0, E.jsx)("legend", { children: "Units" }),
						/* @__PURE__ */ (0, E.jsxs)("label", { children: [/* @__PURE__ */ (0, E.jsx)("input", {
							type: "radio",
							name: "unit",
							value: "inches",
							checked: s === "inches",
							onChange: () => c("inches")
						}), "Inches"] }),
						/* @__PURE__ */ (0, E.jsxs)("label", { children: [/* @__PURE__ */ (0, E.jsx)("input", {
							type: "radio",
							name: "unit",
							value: "mm",
							checked: s === "mm",
							onChange: () => c("mm")
						}), "Millimeters"] })
					]
				}),
				/* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: "artboard-setup-confirm",
					onClick: f,
					"data-testid": "artboard-confirm",
					children: "Create Artboard"
				})
			]
		})
	});
}
//#endregion
//#region ../node_modules/konva/lib/Global.js
var Ae = Math.PI / 180;
function je() {
	return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
}
var Me = typeof global < "u" ? global : typeof window < "u" ? window : typeof WorkerGlobalScope < "u" ? self : {}, P = {
	_global: Me,
	version: "10.2.3",
	isBrowser: je(),
	isUnminified: /param/.test(function(e) {}.toString()),
	dblClickWindow: 400,
	getAngle(e) {
		return P.angleDeg ? e * Ae : e;
	},
	enableTrace: !1,
	pointerEventsEnabled: !0,
	autoDrawEnabled: !0,
	hitOnDragEnabled: !1,
	capturePointerEventsEnabled: !1,
	_mouseListenClick: !1,
	_touchListenClick: !1,
	_pointerListenClick: !1,
	_mouseInDblClickWindow: !1,
	_touchInDblClickWindow: !1,
	_pointerInDblClickWindow: !1,
	_mouseDblClickPointerId: null,
	_touchDblClickPointerId: null,
	_pointerDblClickPointerId: null,
	_renderBackend: "web",
	legacyTextRendering: !1,
	pixelRatio: typeof window < "u" && window.devicePixelRatio || 1,
	dragDistance: 3,
	angleDeg: !0,
	showWarnings: !0,
	dragButtons: [0, 1],
	isDragging() {
		return P.DD.isDragging;
	},
	isTransforming() {
		return P.Transformer?.isTransforming() ?? !1;
	},
	isDragReady() {
		return !!P.DD.node;
	},
	releaseCanvasOnDestroy: !0,
	document: Me.document,
	_injectGlobal(e) {
		Me.Konva !== void 0 && console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."), Me.Konva = e;
	}
}, Ne = (e) => {
	P[e.prototype.getClassName()] = e;
};
P._injectGlobal(P);
//#endregion
//#region ../node_modules/konva/lib/Util.js
var Pe = "Konva.js unsupported environment.\n\nLooks like you are trying to use Konva.js in Node.js environment. because \"document\" object is undefined.\n\nTo use Konva.js in Node.js environment, you need to use the \"canvas-backend\" or \"skia-backend\" module.\n\nbash: npm install canvas\njs: import \"konva/canvas-backend\";\n\nor\n\nbash: npm install skia-canvas\njs: import \"konva/skia-backend\";\n", Fe = () => {
	if (typeof document > "u") throw Error(Pe);
}, Ie = class e {
	constructor(e = [
		1,
		0,
		0,
		1,
		0,
		0
	]) {
		this.dirty = !1, this.m = e && e.slice() || [
			1,
			0,
			0,
			1,
			0,
			0
		];
	}
	reset() {
		this.m[0] = 1, this.m[1] = 0, this.m[2] = 0, this.m[3] = 1, this.m[4] = 0, this.m[5] = 0;
	}
	copy() {
		return new e(this.m);
	}
	copyInto(e) {
		e.m[0] = this.m[0], e.m[1] = this.m[1], e.m[2] = this.m[2], e.m[3] = this.m[3], e.m[4] = this.m[4], e.m[5] = this.m[5];
	}
	point(e) {
		let t = this.m;
		return {
			x: t[0] * e.x + t[2] * e.y + t[4],
			y: t[1] * e.x + t[3] * e.y + t[5]
		};
	}
	translate(e, t) {
		return this.m[4] += this.m[0] * e + this.m[2] * t, this.m[5] += this.m[1] * e + this.m[3] * t, this;
	}
	scale(e, t) {
		return this.m[0] *= e, this.m[1] *= e, this.m[2] *= t, this.m[3] *= t, this;
	}
	rotate(e) {
		let t = Math.cos(e), n = Math.sin(e), r = this.m[0] * t + this.m[2] * n, i = this.m[1] * t + this.m[3] * n, a = this.m[0] * -n + this.m[2] * t, o = this.m[1] * -n + this.m[3] * t;
		return this.m[0] = r, this.m[1] = i, this.m[2] = a, this.m[3] = o, this;
	}
	getTranslation() {
		return {
			x: this.m[4],
			y: this.m[5]
		};
	}
	skew(e, t) {
		let n = this.m[0] + this.m[2] * t, r = this.m[1] + this.m[3] * t, i = this.m[2] + this.m[0] * e, a = this.m[3] + this.m[1] * e;
		return this.m[0] = n, this.m[1] = r, this.m[2] = i, this.m[3] = a, this;
	}
	multiply(e) {
		let t = this.m[0] * e.m[0] + this.m[2] * e.m[1], n = this.m[1] * e.m[0] + this.m[3] * e.m[1], r = this.m[0] * e.m[2] + this.m[2] * e.m[3], i = this.m[1] * e.m[2] + this.m[3] * e.m[3], a = this.m[0] * e.m[4] + this.m[2] * e.m[5] + this.m[4], o = this.m[1] * e.m[4] + this.m[3] * e.m[5] + this.m[5];
		return this.m[0] = t, this.m[1] = n, this.m[2] = r, this.m[3] = i, this.m[4] = a, this.m[5] = o, this;
	}
	invert() {
		let e = 1 / (this.m[0] * this.m[3] - this.m[1] * this.m[2]), t = this.m[3] * e, n = -this.m[1] * e, r = -this.m[2] * e, i = this.m[0] * e, a = e * (this.m[2] * this.m[5] - this.m[3] * this.m[4]), o = e * (this.m[1] * this.m[4] - this.m[0] * this.m[5]);
		return this.m[0] = t, this.m[1] = n, this.m[2] = r, this.m[3] = i, this.m[4] = a, this.m[5] = o, this;
	}
	getMatrix() {
		return this.m;
	}
	decompose() {
		let e = this.m[0], t = this.m[1], n = this.m[2], r = this.m[3], i = this.m[4], a = this.m[5], o = e * r - t * n, s = {
			x: i,
			y: a,
			rotation: 0,
			scaleX: 0,
			scaleY: 0,
			skewX: 0,
			skewY: 0
		};
		if (e != 0 || t != 0) {
			let i = Math.sqrt(e * e + t * t);
			s.rotation = t > 0 ? Math.acos(e / i) : -Math.acos(e / i), s.scaleX = i, s.scaleY = o / i, s.skewX = (e * n + t * r) / o, s.skewY = 0;
		} else if (n != 0 || r != 0) {
			let i = Math.sqrt(n * n + r * r);
			s.rotation = Math.PI / 2 - (r > 0 ? Math.acos(-n / i) : -Math.acos(n / i)), s.scaleX = o / i, s.scaleY = i, s.skewX = 0, s.skewY = (e * n + t * r) / o;
		}
		return s.rotation = F._getRotation(s.rotation), s;
	}
}, Le = "[object Array]", Re = "[object Number]", ze = "[object String]", Be = "[object Boolean]", Ve = Math.PI / 180, He = 180 / Math.PI, Ue = "#", We = "", Ge = "0", Ke = "Konva warning: ", qe = "Konva error: ", Je = "rgb(", Ye = {
	aliceblue: [
		240,
		248,
		255
	],
	antiquewhite: [
		250,
		235,
		215
	],
	aqua: [
		0,
		255,
		255
	],
	aquamarine: [
		127,
		255,
		212
	],
	azure: [
		240,
		255,
		255
	],
	beige: [
		245,
		245,
		220
	],
	bisque: [
		255,
		228,
		196
	],
	black: [
		0,
		0,
		0
	],
	blanchedalmond: [
		255,
		235,
		205
	],
	blue: [
		0,
		0,
		255
	],
	blueviolet: [
		138,
		43,
		226
	],
	brown: [
		165,
		42,
		42
	],
	burlywood: [
		222,
		184,
		135
	],
	cadetblue: [
		95,
		158,
		160
	],
	chartreuse: [
		127,
		255,
		0
	],
	chocolate: [
		210,
		105,
		30
	],
	coral: [
		255,
		127,
		80
	],
	cornflowerblue: [
		100,
		149,
		237
	],
	cornsilk: [
		255,
		248,
		220
	],
	crimson: [
		220,
		20,
		60
	],
	cyan: [
		0,
		255,
		255
	],
	darkblue: [
		0,
		0,
		139
	],
	darkcyan: [
		0,
		139,
		139
	],
	darkgoldenrod: [
		184,
		132,
		11
	],
	darkgray: [
		169,
		169,
		169
	],
	darkgreen: [
		0,
		100,
		0
	],
	darkgrey: [
		169,
		169,
		169
	],
	darkkhaki: [
		189,
		183,
		107
	],
	darkmagenta: [
		139,
		0,
		139
	],
	darkolivegreen: [
		85,
		107,
		47
	],
	darkorange: [
		255,
		140,
		0
	],
	darkorchid: [
		153,
		50,
		204
	],
	darkred: [
		139,
		0,
		0
	],
	darksalmon: [
		233,
		150,
		122
	],
	darkseagreen: [
		143,
		188,
		143
	],
	darkslateblue: [
		72,
		61,
		139
	],
	darkslategray: [
		47,
		79,
		79
	],
	darkslategrey: [
		47,
		79,
		79
	],
	darkturquoise: [
		0,
		206,
		209
	],
	darkviolet: [
		148,
		0,
		211
	],
	deeppink: [
		255,
		20,
		147
	],
	deepskyblue: [
		0,
		191,
		255
	],
	dimgray: [
		105,
		105,
		105
	],
	dimgrey: [
		105,
		105,
		105
	],
	dodgerblue: [
		30,
		144,
		255
	],
	firebrick: [
		178,
		34,
		34
	],
	floralwhite: [
		255,
		255,
		240
	],
	forestgreen: [
		34,
		139,
		34
	],
	fuchsia: [
		255,
		0,
		255
	],
	gainsboro: [
		220,
		220,
		220
	],
	ghostwhite: [
		248,
		248,
		255
	],
	gold: [
		255,
		215,
		0
	],
	goldenrod: [
		218,
		165,
		32
	],
	gray: [
		128,
		128,
		128
	],
	green: [
		0,
		128,
		0
	],
	greenyellow: [
		173,
		255,
		47
	],
	grey: [
		128,
		128,
		128
	],
	honeydew: [
		240,
		255,
		240
	],
	hotpink: [
		255,
		105,
		180
	],
	indianred: [
		205,
		92,
		92
	],
	indigo: [
		75,
		0,
		130
	],
	ivory: [
		255,
		255,
		240
	],
	khaki: [
		240,
		230,
		140
	],
	lavender: [
		230,
		230,
		250
	],
	lavenderblush: [
		255,
		240,
		245
	],
	lawngreen: [
		124,
		252,
		0
	],
	lemonchiffon: [
		255,
		250,
		205
	],
	lightblue: [
		173,
		216,
		230
	],
	lightcoral: [
		240,
		128,
		128
	],
	lightcyan: [
		224,
		255,
		255
	],
	lightgoldenrodyellow: [
		250,
		250,
		210
	],
	lightgray: [
		211,
		211,
		211
	],
	lightgreen: [
		144,
		238,
		144
	],
	lightgrey: [
		211,
		211,
		211
	],
	lightpink: [
		255,
		182,
		193
	],
	lightsalmon: [
		255,
		160,
		122
	],
	lightseagreen: [
		32,
		178,
		170
	],
	lightskyblue: [
		135,
		206,
		250
	],
	lightslategray: [
		119,
		136,
		153
	],
	lightslategrey: [
		119,
		136,
		153
	],
	lightsteelblue: [
		176,
		196,
		222
	],
	lightyellow: [
		255,
		255,
		224
	],
	lime: [
		0,
		255,
		0
	],
	limegreen: [
		50,
		205,
		50
	],
	linen: [
		250,
		240,
		230
	],
	magenta: [
		255,
		0,
		255
	],
	maroon: [
		128,
		0,
		0
	],
	mediumaquamarine: [
		102,
		205,
		170
	],
	mediumblue: [
		0,
		0,
		205
	],
	mediumorchid: [
		186,
		85,
		211
	],
	mediumpurple: [
		147,
		112,
		219
	],
	mediumseagreen: [
		60,
		179,
		113
	],
	mediumslateblue: [
		123,
		104,
		238
	],
	mediumspringgreen: [
		0,
		250,
		154
	],
	mediumturquoise: [
		72,
		209,
		204
	],
	mediumvioletred: [
		199,
		21,
		133
	],
	midnightblue: [
		25,
		25,
		112
	],
	mintcream: [
		245,
		255,
		250
	],
	mistyrose: [
		255,
		228,
		225
	],
	moccasin: [
		255,
		228,
		181
	],
	navajowhite: [
		255,
		222,
		173
	],
	navy: [
		0,
		0,
		128
	],
	oldlace: [
		253,
		245,
		230
	],
	olive: [
		128,
		128,
		0
	],
	olivedrab: [
		107,
		142,
		35
	],
	orange: [
		255,
		165,
		0
	],
	orangered: [
		255,
		69,
		0
	],
	orchid: [
		218,
		112,
		214
	],
	palegoldenrod: [
		238,
		232,
		170
	],
	palegreen: [
		152,
		251,
		152
	],
	paleturquoise: [
		175,
		238,
		238
	],
	palevioletred: [
		219,
		112,
		147
	],
	papayawhip: [
		255,
		239,
		213
	],
	peachpuff: [
		255,
		218,
		185
	],
	peru: [
		205,
		133,
		63
	],
	pink: [
		255,
		192,
		203
	],
	plum: [
		221,
		160,
		203
	],
	powderblue: [
		176,
		224,
		230
	],
	purple: [
		128,
		0,
		128
	],
	rebeccapurple: [
		102,
		51,
		153
	],
	red: [
		255,
		0,
		0
	],
	rosybrown: [
		188,
		143,
		143
	],
	royalblue: [
		65,
		105,
		225
	],
	saddlebrown: [
		139,
		69,
		19
	],
	salmon: [
		250,
		128,
		114
	],
	sandybrown: [
		244,
		164,
		96
	],
	seagreen: [
		46,
		139,
		87
	],
	seashell: [
		255,
		245,
		238
	],
	sienna: [
		160,
		82,
		45
	],
	silver: [
		192,
		192,
		192
	],
	skyblue: [
		135,
		206,
		235
	],
	slateblue: [
		106,
		90,
		205
	],
	slategray: [
		119,
		128,
		144
	],
	slategrey: [
		119,
		128,
		144
	],
	snow: [
		255,
		255,
		250
	],
	springgreen: [
		0,
		255,
		127
	],
	steelblue: [
		70,
		130,
		180
	],
	tan: [
		210,
		180,
		140
	],
	teal: [
		0,
		128,
		128
	],
	thistle: [
		216,
		191,
		216
	],
	transparent: [
		255,
		255,
		255,
		0
	],
	tomato: [
		255,
		99,
		71
	],
	turquoise: [
		64,
		224,
		208
	],
	violet: [
		238,
		130,
		238
	],
	wheat: [
		245,
		222,
		179
	],
	white: [
		255,
		255,
		255
	],
	whitesmoke: [
		245,
		245,
		245
	],
	yellow: [
		255,
		255,
		0
	],
	yellowgreen: [
		154,
		205,
		5
	]
}, Xe = /rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/, Ze = [], Qe = null, $e = typeof requestAnimationFrame < "u" && requestAnimationFrame || function(e) {
	setTimeout(e, 16);
}, F = {
	_isElement(e) {
		return !!(e && e.nodeType == 1);
	},
	_isFunction(e) {
		return !!(e && e.constructor && e.call && e.apply);
	},
	_isPlainObject(e) {
		return !!e && e.constructor === Object;
	},
	_isArray(e) {
		return Object.prototype.toString.call(e) === Le;
	},
	_isNumber(e) {
		return Object.prototype.toString.call(e) === Re && !isNaN(e) && isFinite(e);
	},
	_isString(e) {
		return Object.prototype.toString.call(e) === ze;
	},
	_isBoolean(e) {
		return Object.prototype.toString.call(e) === Be;
	},
	isObject(e) {
		return e instanceof Object;
	},
	isValidSelector(e) {
		if (typeof e != "string") return !1;
		let t = e[0];
		return t === "#" || t === "." || t === t.toUpperCase();
	},
	_sign(e) {
		return e === 0 || e > 0 ? 1 : -1;
	},
	requestAnimFrame(e) {
		Ze.push(e), Ze.length === 1 && $e(function() {
			let e = Ze;
			Ze = [], e.forEach(function(e) {
				e();
			});
		});
	},
	createCanvasElement() {
		Fe();
		let e = document.createElement("canvas");
		try {
			e.style = e.style || {};
		} catch {}
		return e;
	},
	createImageElement() {
		return Fe(), document.createElement("img");
	},
	_isInDocument(e) {
		for (; e = e.parentNode;) if (e == document) return !0;
		return !1;
	},
	_urlToImage(e, t) {
		let n = F.createImageElement();
		n.onload = function() {
			t(n);
		}, n.src = e;
	},
	_rgbToHex(e, t, n) {
		return ((1 << 24) + (e << 16) + (t << 8) + n).toString(16).slice(1);
	},
	_hexToRgb(e) {
		e = e.replace(Ue, We);
		let t = parseInt(e, 16);
		return {
			r: t >> 16 & 255,
			g: t >> 8 & 255,
			b: t & 255
		};
	},
	getRandomColor() {
		let e = (Math.random() * 16777215 << 0).toString(16);
		for (; e.length < 6;) e = Ge + e;
		return Ue + e;
	},
	isCanvasFarblingActive() {
		if (Qe !== null) return Qe;
		if (typeof document > "u") return Qe = !1, !1;
		let e = this.createCanvasElement();
		e.width = 10, e.height = 10;
		let t = e.getContext("2d", { willReadFrequently: !0 });
		t.clearRect(0, 0, 10, 10), t.fillStyle = "#282828", t.fillRect(0, 0, 10, 10);
		let n = t.getImageData(0, 0, 10, 10).data, r = !1;
		for (let e = 0; e < 100; e++) if (n[e * 4] !== 40 || n[e * 4 + 1] !== 40 || n[e * 4 + 2] !== 40 || n[e * 4 + 3] !== 255) {
			r = !0;
			break;
		}
		return Qe = r, this.releaseCanvas(e), Qe;
	},
	getHitColor() {
		let e = this.getRandomColor();
		return this.isCanvasFarblingActive() ? this.getSnappedHexColor(e) : e;
	},
	getHitColorKey(e, t, n) {
		return this.isCanvasFarblingActive() && (e = Math.round(e / 5) * 5, t = Math.round(t / 5) * 5, n = Math.round(n / 5) * 5), Ue + this._rgbToHex(e, t, n);
	},
	getSnappedHexColor(e) {
		let t = this._hexToRgb(e);
		return Ue + this._rgbToHex(Math.round(t.r / 5) * 5, Math.round(t.g / 5) * 5, Math.round(t.b / 5) * 5);
	},
	getRGB(e) {
		let t;
		return e in Ye ? (t = Ye[e], {
			r: t[0],
			g: t[1],
			b: t[2]
		}) : e[0] === Ue ? this._hexToRgb(e.substring(1)) : e.substr(0, 4) === Je ? (t = Xe.exec(e.replace(/ /g, "")), {
			r: parseInt(t[1], 10),
			g: parseInt(t[2], 10),
			b: parseInt(t[3], 10)
		}) : {
			r: 0,
			g: 0,
			b: 0
		};
	},
	colorToRGBA(e) {
		return e ||= "black", F._namedColorToRBA(e) || F._hex3ColorToRGBA(e) || F._hex4ColorToRGBA(e) || F._hex6ColorToRGBA(e) || F._hex8ColorToRGBA(e) || F._rgbColorToRGBA(e) || F._rgbaColorToRGBA(e) || F._hslColorToRGBA(e);
	},
	_namedColorToRBA(e) {
		let t = Ye[e.toLowerCase()];
		return t ? {
			r: t[0],
			g: t[1],
			b: t[2],
			a: 1
		} : null;
	},
	_rgbColorToRGBA(e) {
		if (e.indexOf("rgb(") === 0) {
			e = e.match(/rgb\(([^)]+)\)/)[1];
			let t = e.split(/ *, */).map(Number);
			return {
				r: t[0],
				g: t[1],
				b: t[2],
				a: 1
			};
		}
	},
	_rgbaColorToRGBA(e) {
		if (e.indexOf("rgba(") === 0) {
			e = e.match(/rgba\(([^)]+)\)/)[1];
			let t = e.split(/ *, */).map((e, t) => e.slice(-1) === "%" ? t === 3 ? parseInt(e) / 100 : parseInt(e) / 100 * 255 : Number(e));
			return {
				r: t[0],
				g: t[1],
				b: t[2],
				a: t[3]
			};
		}
	},
	_hex8ColorToRGBA(e) {
		if (e[0] === "#" && e.length === 9) return {
			r: parseInt(e.slice(1, 3), 16),
			g: parseInt(e.slice(3, 5), 16),
			b: parseInt(e.slice(5, 7), 16),
			a: parseInt(e.slice(7, 9), 16) / 255
		};
	},
	_hex6ColorToRGBA(e) {
		if (e[0] === "#" && e.length === 7) return {
			r: parseInt(e.slice(1, 3), 16),
			g: parseInt(e.slice(3, 5), 16),
			b: parseInt(e.slice(5, 7), 16),
			a: 1
		};
	},
	_hex4ColorToRGBA(e) {
		if (e[0] === "#" && e.length === 5) return {
			r: parseInt(e[1] + e[1], 16),
			g: parseInt(e[2] + e[2], 16),
			b: parseInt(e[3] + e[3], 16),
			a: parseInt(e[4] + e[4], 16) / 255
		};
	},
	_hex3ColorToRGBA(e) {
		if (e[0] === "#" && e.length === 4) return {
			r: parseInt(e[1] + e[1], 16),
			g: parseInt(e[2] + e[2], 16),
			b: parseInt(e[3] + e[3], 16),
			a: 1
		};
	},
	_hslColorToRGBA(e) {
		if (/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)) {
			let [t, ...n] = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e), r = Number(n[0]) / 360, i = Number(n[1]) / 100, a = Number(n[2]) / 100, o, s, c;
			if (i === 0) return c = a * 255, {
				r: Math.round(c),
				g: Math.round(c),
				b: Math.round(c),
				a: 1
			};
			o = a < .5 ? a * (1 + i) : a + i - a * i;
			let l = 2 * a - o, u = [
				0,
				0,
				0
			];
			for (let e = 0; e < 3; e++) s = r + 1 / 3 * -(e - 1), s < 0 && s++, s > 1 && s--, c = 6 * s < 1 ? l + (o - l) * 6 * s : 2 * s < 1 ? o : 3 * s < 2 ? l + (o - l) * (2 / 3 - s) * 6 : l, u[e] = c * 255;
			return {
				r: Math.round(u[0]),
				g: Math.round(u[1]),
				b: Math.round(u[2]),
				a: 1
			};
		}
	},
	haveIntersection(e, t) {
		return !(t.x > e.x + e.width || t.x + t.width < e.x || t.y > e.y + e.height || t.y + t.height < e.y);
	},
	cloneObject(e) {
		let t = {};
		for (let n in e) this._isPlainObject(e[n]) ? t[n] = this.cloneObject(e[n]) : this._isArray(e[n]) ? t[n] = this.cloneArray(e[n]) : t[n] = e[n];
		return t;
	},
	cloneArray(e) {
		return e.slice(0);
	},
	degToRad(e) {
		return e * Ve;
	},
	radToDeg(e) {
		return e * He;
	},
	_degToRad(e) {
		return F.warn("Util._degToRad is removed. Please use public Util.degToRad instead."), F.degToRad(e);
	},
	_radToDeg(e) {
		return F.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."), F.radToDeg(e);
	},
	_getRotation(e) {
		return P.angleDeg ? F.radToDeg(e) : e;
	},
	_capitalize(e) {
		return e.charAt(0).toUpperCase() + e.slice(1);
	},
	throw(e) {
		throw Error(qe + e);
	},
	error(e) {
		console.error(qe + e);
	},
	warn(e) {
		P.showWarnings && console.warn(Ke + e);
	},
	each(e, t) {
		for (let n in e) t(n, e[n]);
	},
	_inRange(e, t, n) {
		return t <= e && e < n;
	},
	_getProjectionToSegment(e, t, n, r, i, a) {
		let o, s, c, l = (e - n) * (e - n) + (t - r) * (t - r);
		if (l == 0) o = e, s = t, c = (i - n) * (i - n) + (a - r) * (a - r);
		else {
			let u = ((i - e) * (n - e) + (a - t) * (r - t)) / l;
			u < 0 ? (o = e, s = t, c = (e - i) * (e - i) + (t - a) * (t - a)) : u > 1 ? (o = n, s = r, c = (n - i) * (n - i) + (r - a) * (r - a)) : (o = e + u * (n - e), s = t + u * (r - t), c = (o - i) * (o - i) + (s - a) * (s - a));
		}
		return [
			o,
			s,
			c
		];
	},
	_getProjectionToLine(e, t, n) {
		let r = F.cloneObject(e), i = Number.MAX_VALUE;
		return t.forEach(function(a, o) {
			if (!n && o === t.length - 1) return;
			let s = t[(o + 1) % t.length], c = F._getProjectionToSegment(a.x, a.y, s.x, s.y, e.x, e.y), l = c[0], u = c[1], d = c[2];
			d < i && (r.x = l, r.y = u, i = d);
		}), r;
	},
	_prepareArrayForTween(e, t, n) {
		let r = [], i = [];
		if (e.length > t.length) {
			let n = t;
			t = e, e = n;
		}
		for (let t = 0; t < e.length; t += 2) r.push({
			x: e[t],
			y: e[t + 1]
		});
		for (let e = 0; e < t.length; e += 2) i.push({
			x: t[e],
			y: t[e + 1]
		});
		let a = [];
		return i.forEach(function(e) {
			let t = F._getProjectionToLine(e, r, n);
			a.push(t.x), a.push(t.y);
		}), a;
	},
	_prepareToStringify(e) {
		let t;
		e.visitedByCircularReferenceRemoval = !0;
		for (let n in e) if (e.hasOwnProperty(n) && e[n] && typeof e[n] == "object") {
			if (t = Object.getOwnPropertyDescriptor(e, n), e[n].visitedByCircularReferenceRemoval || F._isElement(e[n])) if (t.configurable) delete e[n];
			else return null;
			else if (F._prepareToStringify(e[n]) === null) if (t.configurable) delete e[n];
			else return null;
		}
		return delete e.visitedByCircularReferenceRemoval, e;
	},
	_assign(e, t) {
		for (let n in t) e[n] = t[n];
		return e;
	},
	_getFirstPointerId(e) {
		return e.touches ? e.changedTouches[0].identifier : e.pointerId || 999;
	},
	releaseCanvas(...e) {
		P.releaseCanvasOnDestroy && e.forEach((e) => {
			e.width = 0, e.height = 0;
		});
	},
	drawRoundedRectPath(e, t, n, r) {
		let i = t < 0 ? t : 0, a = n < 0 ? n : 0;
		t = Math.abs(t), n = Math.abs(n);
		let o = 0, s = 0, c = 0, l = 0;
		typeof r == "number" ? o = s = c = l = Math.min(r, t / 2, n / 2) : (o = Math.min(r[0] || 0, t / 2, n / 2), s = Math.min(r[1] || 0, t / 2, n / 2), l = Math.min(r[2] || 0, t / 2, n / 2), c = Math.min(r[3] || 0, t / 2, n / 2)), e.moveTo(i + o, a), e.lineTo(i + t - s, a), e.arc(i + t - s, a + s, s, Math.PI * 3 / 2, 0, !1), e.lineTo(i + t, a + n - l), e.arc(i + t - l, a + n - l, l, 0, Math.PI / 2, !1), e.lineTo(i + c, a + n), e.arc(i + c, a + n - c, c, Math.PI / 2, Math.PI, !1), e.lineTo(i, a + o), e.arc(i + o, a + o, o, Math.PI, Math.PI * 3 / 2, !1);
	},
	drawRoundedPolygonPath(e, t, n, r, i) {
		r = Math.abs(r);
		for (let a = 0; a < n; a++) {
			let o = t[(a - 1 + n) % n], s = t[a], c = t[(a + 1) % n], l = {
				x: s.x - o.x,
				y: s.y - o.y
			}, u = {
				x: c.x - s.x,
				y: c.y - s.y
			}, d = Math.hypot(l.x, l.y), f = Math.hypot(u.x, u.y), p;
			p = typeof i == "number" ? i : a < i.length ? i[a] : 0, p = r * Math.cos(Math.PI / n) * Math.min(1, p / r * 2);
			let m = {
				x: l.x / d,
				y: l.y / d
			}, h = {
				x: u.x / f,
				y: u.y / f
			}, g = {
				x: s.x - m.x * p,
				y: s.y - m.y * p
			}, _ = {
				x: s.x + h.x * p,
				y: s.y + h.y * p
			};
			a === 0 ? e.moveTo(g.x, g.y) : e.lineTo(g.x, g.y), e.arcTo(s.x, s.y, _.x, _.y, p);
		}
	}
};
//#endregion
//#region ../node_modules/konva/lib/Context.js
function et(e) {
	let t = [], n = e.length, r = F;
	for (let i = 0; i < n; i++) {
		let n = e[i];
		r._isNumber(n) ? n = Math.round(n * 1e3) / 1e3 : r._isString(n) || (n += ""), t.push(n);
	}
	return t;
}
var tt = ",", nt = "(", rt = ")", it = "([", at = "])", ot = ";", st = "()", ct = "=", lt = /* @__PURE__ */ "arc.arcTo.beginPath.bezierCurveTo.clearRect.clip.closePath.createLinearGradient.createPattern.createRadialGradient.drawImage.ellipse.fill.fillText.getImageData.createImageData.lineTo.moveTo.putImageData.quadraticCurveTo.rect.roundRect.restore.rotate.save.scale.setLineDash.setTransform.stroke.strokeText.transform.translate".split("."), ut = [
	"fillStyle",
	"strokeStyle",
	"shadowColor",
	"shadowBlur",
	"shadowOffsetX",
	"shadowOffsetY",
	"letterSpacing",
	"lineCap",
	"lineDashOffset",
	"lineJoin",
	"lineWidth",
	"miterLimit",
	"direction",
	"font",
	"textAlign",
	"textBaseline",
	"globalAlpha",
	"globalCompositeOperation",
	"imageSmoothingEnabled",
	"filter"
], dt = 100, ft = null;
function pt() {
	if (ft !== null) return ft;
	try {
		let e = F.createCanvasElement().getContext("2d");
		return e ? !!e && "filter" in e : (ft = !1, !1);
	} catch {
		return ft = !1, !1;
	}
}
var mt = class {
	constructor(e) {
		this.canvas = e, P.enableTrace && (this.traceArr = [], this._enableTrace());
	}
	fillShape(e) {
		e.fillEnabled() && this._fill(e);
	}
	_fill(e) {}
	strokeShape(e) {
		e.hasStroke() && this._stroke(e);
	}
	_stroke(e) {}
	fillStrokeShape(e) {
		e.attrs.fillAfterStrokeEnabled ? (this.strokeShape(e), this.fillShape(e)) : (this.fillShape(e), this.strokeShape(e));
	}
	getTrace(e, t) {
		let n = this.traceArr, r = n.length, i = "", a, o, s, c;
		for (a = 0; a < r; a++) o = n[a], s = o.method, s ? (c = o.args, i += s, e ? i += st : F._isArray(c[0]) ? i += it + c.join(tt) + at : (t && (c = c.map((e) => typeof e == "number" ? Math.floor(e) : e)), i += nt + c.join(tt) + rt)) : (i += o.property, e || (i += ct + o.val)), i += ot;
		return i;
	}
	clearTrace() {
		this.traceArr = [];
	}
	_trace(e) {
		let t = this.traceArr, n;
		t.push(e), n = t.length, n >= dt && t.shift();
	}
	reset() {
		let e = this.getCanvas().getPixelRatio();
		this.setTransform(1 * e, 0, 0, 1 * e, 0, 0);
	}
	getCanvas() {
		return this.canvas;
	}
	clear(e) {
		let t = this.getCanvas();
		e ? this.clearRect(e.x || 0, e.y || 0, e.width || 0, e.height || 0) : this.clearRect(0, 0, t.getWidth() / t.pixelRatio, t.getHeight() / t.pixelRatio);
	}
	_applyLineCap(e) {
		let t = e.attrs.lineCap;
		t && this.setAttr("lineCap", t);
	}
	_applyOpacity(e) {
		let t = e.getAbsoluteOpacity();
		t !== 1 && this.setAttr("globalAlpha", t);
	}
	_applyLineJoin(e) {
		let t = e.attrs.lineJoin;
		t && this.setAttr("lineJoin", t);
	}
	_applyMiterLimit(e) {
		let t = e.attrs.miterLimit;
		t != null && this.setAttr("miterLimit", t);
	}
	setAttr(e, t) {
		this._context[e] = t;
	}
	arc(e, t, n, r, i, a) {
		this._context.arc(e, t, n, r, i, a);
	}
	arcTo(e, t, n, r, i) {
		this._context.arcTo(e, t, n, r, i);
	}
	beginPath() {
		this._context.beginPath();
	}
	bezierCurveTo(e, t, n, r, i, a) {
		this._context.bezierCurveTo(e, t, n, r, i, a);
	}
	clearRect(e, t, n, r) {
		this._context.clearRect(e, t, n, r);
	}
	clip(...e) {
		this._context.clip.apply(this._context, e);
	}
	closePath() {
		this._context.closePath();
	}
	createImageData(e, t) {
		let n = arguments;
		if (n.length === 2) return this._context.createImageData(e, t);
		if (n.length === 1) return this._context.createImageData(e);
	}
	createLinearGradient(e, t, n, r) {
		return this._context.createLinearGradient(e, t, n, r);
	}
	createPattern(e, t) {
		return this._context.createPattern(e, t);
	}
	createRadialGradient(e, t, n, r, i, a) {
		return this._context.createRadialGradient(e, t, n, r, i, a);
	}
	drawImage(e, t, n, r, i, a, o, s, c) {
		let l = arguments, u = this._context;
		l.length === 3 ? u.drawImage(e, t, n) : l.length === 5 ? u.drawImage(e, t, n, r, i) : l.length === 9 && u.drawImage(e, t, n, r, i, a, o, s, c);
	}
	ellipse(e, t, n, r, i, a, o, s) {
		this._context.ellipse(e, t, n, r, i, a, o, s);
	}
	isPointInPath(e, t, n, r) {
		return n ? this._context.isPointInPath(n, e, t, r) : this._context.isPointInPath(e, t, r);
	}
	fill(...e) {
		this._context.fill.apply(this._context, e);
	}
	fillRect(e, t, n, r) {
		this._context.fillRect(e, t, n, r);
	}
	strokeRect(e, t, n, r) {
		this._context.strokeRect(e, t, n, r);
	}
	fillText(e, t, n, r) {
		r ? this._context.fillText(e, t, n, r) : this._context.fillText(e, t, n);
	}
	measureText(e) {
		return this._context.measureText(e);
	}
	getImageData(e, t, n, r) {
		return this._context.getImageData(e, t, n, r);
	}
	lineTo(e, t) {
		this._context.lineTo(e, t);
	}
	moveTo(e, t) {
		this._context.moveTo(e, t);
	}
	rect(e, t, n, r) {
		this._context.rect(e, t, n, r);
	}
	roundRect(e, t, n, r, i) {
		this._context.roundRect(e, t, n, r, i);
	}
	putImageData(e, t, n) {
		this._context.putImageData(e, t, n);
	}
	quadraticCurveTo(e, t, n, r) {
		this._context.quadraticCurveTo(e, t, n, r);
	}
	restore() {
		this._context.restore();
	}
	rotate(e) {
		this._context.rotate(e);
	}
	save() {
		this._context.save();
	}
	scale(e, t) {
		this._context.scale(e, t);
	}
	setLineDash(e) {
		this._context.setLineDash ? this._context.setLineDash(e) : "mozDash" in this._context ? this._context.mozDash = e : "webkitLineDash" in this._context && (this._context.webkitLineDash = e);
	}
	getLineDash() {
		return this._context.getLineDash();
	}
	setTransform(e, t, n, r, i, a) {
		this._context.setTransform(e, t, n, r, i, a);
	}
	stroke(e) {
		e ? this._context.stroke(e) : this._context.stroke();
	}
	strokeText(e, t, n, r) {
		this._context.strokeText(e, t, n, r);
	}
	transform(e, t, n, r, i, a) {
		this._context.transform(e, t, n, r, i, a);
	}
	translate(e, t) {
		this._context.translate(e, t);
	}
	_enableTrace() {
		let e = this, t = lt.length, n = this.setAttr, r, i, a = function(t) {
			let n = e[t], r;
			e[t] = function() {
				return i = et(Array.prototype.slice.call(arguments, 0)), r = n.apply(e, arguments), e._trace({
					method: t,
					args: i
				}), r;
			};
		};
		for (r = 0; r < t; r++) a(lt[r]);
		e.setAttr = function() {
			n.apply(e, arguments);
			let t = arguments[0], r = arguments[1];
			(t === "shadowOffsetX" || t === "shadowOffsetY" || t === "shadowBlur") && (r /= this.canvas.getPixelRatio()), e._trace({
				property: t,
				val: r
			});
		};
	}
	_applyGlobalCompositeOperation(e) {
		let t = e.attrs.globalCompositeOperation;
		!t || t === "source-over" || this.setAttr("globalCompositeOperation", t);
	}
};
ut.forEach(function(e) {
	Object.defineProperty(mt.prototype, e, {
		get() {
			return this._context[e];
		},
		set(t) {
			this._context[e] = t;
		}
	});
});
var ht = class extends mt {
	constructor(e, { willReadFrequently: t = !1 } = {}) {
		super(e), this._context = e._canvas.getContext("2d", { willReadFrequently: t });
	}
	_fillColor(e) {
		let t = e.fill();
		this.setAttr("fillStyle", t), e._fillFunc(this);
	}
	_fillPattern(e) {
		this.setAttr("fillStyle", e._getFillPattern()), e._fillFunc(this);
	}
	_fillLinearGradient(e) {
		let t = e._getLinearGradient();
		t && (this.setAttr("fillStyle", t), e._fillFunc(this));
	}
	_fillRadialGradient(e) {
		let t = e._getRadialGradient();
		t && (this.setAttr("fillStyle", t), e._fillFunc(this));
	}
	_fill(e) {
		let t = e.fill(), n = e.getFillPriority();
		if (t && n === "color") {
			this._fillColor(e);
			return;
		}
		let r = e.getFillPatternImage();
		if (r && n === "pattern") {
			this._fillPattern(e);
			return;
		}
		let i = e.getFillLinearGradientColorStops();
		if (i && n === "linear-gradient") {
			this._fillLinearGradient(e);
			return;
		}
		let a = e.getFillRadialGradientColorStops();
		if (a && n === "radial-gradient") {
			this._fillRadialGradient(e);
			return;
		}
		t ? this._fillColor(e) : r ? this._fillPattern(e) : i ? this._fillLinearGradient(e) : a && this._fillRadialGradient(e);
	}
	_strokeLinearGradient(e) {
		let t = e.getStrokeLinearGradientStartPoint(), n = e.getStrokeLinearGradientEndPoint(), r = e.getStrokeLinearGradientColorStops(), i = this.createLinearGradient(t.x, t.y, n.x, n.y);
		if (r) {
			for (let e = 0; e < r.length; e += 2) i.addColorStop(r[e], r[e + 1]);
			this.setAttr("strokeStyle", i);
		}
	}
	_stroke(e) {
		let t = e.dash(), n = e.getStrokeScaleEnabled();
		if (e.hasStroke()) {
			if (!n) {
				this.save();
				let e = this.getCanvas().getPixelRatio();
				this.setTransform(e, 0, 0, e, 0, 0);
			}
			this._applyLineCap(e), t && e.dashEnabled() && (this.setLineDash(t), this.setAttr("lineDashOffset", e.dashOffset())), this.setAttr("lineWidth", e.strokeWidth()), e.getShadowForStrokeEnabled() || this.setAttr("shadowColor", "rgba(0,0,0,0)"), e.getStrokeLinearGradientColorStops() ? this._strokeLinearGradient(e) : this.setAttr("strokeStyle", e.stroke()), e._strokeFunc(this), n || this.restore();
		}
	}
	_applyShadow(e) {
		let t = e.getShadowRGBA() ?? "black", n = e.getShadowBlur() ?? 5, r = e.getShadowOffset() ?? {
			x: 0,
			y: 0
		}, i = e.getAbsoluteScale(), a = this.canvas.getPixelRatio(), o = i.x * a, s = i.y * a;
		this.setAttr("shadowColor", t), this.setAttr("shadowBlur", n * Math.min(Math.abs(o), Math.abs(s))), this.setAttr("shadowOffsetX", r.x * o), this.setAttr("shadowOffsetY", r.y * s);
	}
}, gt = class extends mt {
	constructor(e) {
		super(e), this._context = e._canvas.getContext("2d", { willReadFrequently: !0 });
	}
	_fill(e) {
		this.save(), this.setAttr("fillStyle", e.colorKey), e._fillFuncHit(this), this.restore();
	}
	strokeShape(e) {
		e.hasHitStroke() && this._stroke(e);
	}
	_stroke(e) {
		if (e.hasHitStroke()) {
			let t = e.getStrokeScaleEnabled();
			if (!t) {
				this.save();
				let e = this.getCanvas().getPixelRatio();
				this.setTransform(e, 0, 0, e, 0, 0);
			}
			this._applyLineCap(e);
			let n = e.hitStrokeWidth(), r = n === "auto" ? e.strokeWidth() : n;
			this.setAttr("lineWidth", r), this.setAttr("strokeStyle", e.colorKey), e._strokeFuncHit(this), t || this.restore();
		}
	}
}, I;
function _t() {
	if (I) return I;
	let e = F.createCanvasElement(), t = e.getContext("2d");
	return I = (function() {
		return (P._global.devicePixelRatio || 1) / (t.webkitBackingStorePixelRatio || t.mozBackingStorePixelRatio || t.msBackingStorePixelRatio || t.oBackingStorePixelRatio || t.backingStorePixelRatio || 1);
	})(), F.releaseCanvas(e), I;
}
var vt = class {
	constructor(e) {
		this.pixelRatio = 1, this.width = 0, this.height = 0, this.isCache = !1, this.pixelRatio = (e || {}).pixelRatio || P.pixelRatio || _t(), this._canvas = F.createCanvasElement(), this._canvas.style.padding = "0", this._canvas.style.margin = "0", this._canvas.style.border = "0", this._canvas.style.background = "transparent", this._canvas.style.position = "absolute", this._canvas.style.top = "0", this._canvas.style.left = "0";
	}
	getContext() {
		return this.context;
	}
	getPixelRatio() {
		return this.pixelRatio;
	}
	setPixelRatio(e) {
		let t = this.pixelRatio;
		this.pixelRatio = e, this.setSize(this.getWidth() / t, this.getHeight() / t);
	}
	setWidth(e) {
		this.width = this._canvas.width = e * this.pixelRatio, this._canvas.style.width = e + "px";
		let t = this.pixelRatio;
		this.getContext()._context.scale(t, t);
	}
	setHeight(e) {
		this.height = this._canvas.height = e * this.pixelRatio, this._canvas.style.height = e + "px";
		let t = this.pixelRatio;
		this.getContext()._context.scale(t, t);
	}
	getWidth() {
		return this.width;
	}
	getHeight() {
		return this.height;
	}
	setSize(e, t) {
		this.setWidth(e || 0), this.setHeight(t || 0);
	}
	toDataURL(e, t) {
		try {
			return this._canvas.toDataURL(e, t);
		} catch {
			try {
				return this._canvas.toDataURL();
			} catch (e) {
				return F.error("Unable to get data URL. " + e.message + " For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."), "";
			}
		}
	}
}, yt = class extends vt {
	constructor(e = {
		width: 0,
		height: 0,
		willReadFrequently: !1
	}) {
		super(e), this.context = new ht(this, { willReadFrequently: e.willReadFrequently }), this.setSize(e.width, e.height);
	}
}, bt = class extends vt {
	constructor(e = {
		width: 0,
		height: 0
	}) {
		super(e), this.hitCanvas = !0, this.context = new gt(this), this.setSize(e.width, e.height);
	}
}, L = {
	get isDragging() {
		let e = !1;
		return L._dragElements.forEach((t) => {
			t.dragStatus === "dragging" && (e = !0);
		}), e;
	},
	justDragged: !1,
	get node() {
		let e;
		return L._dragElements.forEach((t) => {
			e = t.node;
		}), e;
	},
	_dragElements: /* @__PURE__ */ new Map(),
	_drag(e) {
		let t = [];
		L._dragElements.forEach((n, r) => {
			let { node: i } = n, a = i.getStage();
			a.setPointersPositions(e), n.pointerId === void 0 && (n.pointerId = F._getFirstPointerId(e));
			let o = a._changedPointerPositions.find((e) => e.id === n.pointerId);
			if (o) {
				if (n.dragStatus !== "dragging") {
					let t = i.dragDistance();
					if (Math.max(Math.abs(o.x - n.startPointerPos.x), Math.abs(o.y - n.startPointerPos.y)) < t || (i.startDrag({ evt: e }), !i.isDragging())) return;
				}
				i._setDragPosition(e, n), t.push(i);
			}
		}), t.forEach((t) => {
			t.getStage() && t.fire("dragmove", {
				type: "dragmove",
				target: t,
				evt: e
			}, !0);
		});
	},
	_endDragBefore(e) {
		let t = [];
		L._dragElements.forEach((n) => {
			let { node: r } = n, i = r.getStage();
			if (e && i.setPointersPositions(e), !i._changedPointerPositions.find((e) => e.id === n.pointerId)) return;
			(n.dragStatus === "dragging" || n.dragStatus === "stopped") && (L.justDragged = !0, P._mouseListenClick = !1, P._touchListenClick = !1, P._pointerListenClick = !1, n.dragStatus = "stopped");
			let a = n.node.getLayer() || n.node instanceof P.Stage && n.node;
			a && t.indexOf(a) === -1 && t.push(a);
		}), t.forEach((e) => {
			e.draw();
		});
	},
	_endDragAfter(e) {
		L._dragElements.forEach((t, n) => {
			t.dragStatus === "stopped" && t.node.fire("dragend", {
				type: "dragend",
				target: t.node,
				evt: e
			}, !0), t.dragStatus !== "dragging" && L._dragElements.delete(n);
		});
	}
};
P.isBrowser && (window.addEventListener("mouseup", L._endDragBefore, !0), window.addEventListener("touchend", L._endDragBefore, !0), window.addEventListener("touchcancel", L._endDragBefore, !0), window.addEventListener("mousemove", L._drag), window.addEventListener("touchmove", L._drag), window.addEventListener("mouseup", L._endDragAfter, !1), window.addEventListener("touchend", L._endDragAfter, !1), window.addEventListener("touchcancel", L._endDragAfter, !1));
//#endregion
//#region ../node_modules/konva/lib/Validators.js
function xt(e) {
	return F._isString(e) ? "\"" + e + "\"" : Object.prototype.toString.call(e) === "[object Number]" || F._isBoolean(e) ? e : Object.prototype.toString.call(e);
}
function St(e) {
	return e > 255 ? 255 : e < 0 ? 0 : Math.round(e);
}
function R() {
	if (P.isUnminified) return function(e, t) {
		return F._isNumber(e) || F.warn(xt(e) + " is a not valid value for \"" + t + "\" attribute. The value should be a number."), e;
	};
}
function Ct(e) {
	if (P.isUnminified) return function(t, n) {
		let r = F._isNumber(t), i = F._isArray(t) && t.length == e;
		return !r && !i && F.warn(xt(t) + " is a not valid value for \"" + n + "\" attribute. The value should be a number or Array<number>(" + e + ")"), t;
	};
}
function wt() {
	if (P.isUnminified) return function(e, t) {
		return F._isNumber(e) || e === "auto" || F.warn(xt(e) + " is a not valid value for \"" + t + "\" attribute. The value should be a number or \"auto\"."), e;
	};
}
function Tt() {
	if (P.isUnminified) return function(e, t) {
		return F._isString(e) || F.warn(xt(e) + " is a not valid value for \"" + t + "\" attribute. The value should be a string."), e;
	};
}
function Et() {
	if (P.isUnminified) return function(e, t) {
		let n = F._isString(e), r = Object.prototype.toString.call(e) === "[object CanvasGradient]" || e && e.addColorStop;
		return n || r || F.warn(xt(e) + " is a not valid value for \"" + t + "\" attribute. The value should be a string or a native gradient."), e;
	};
}
function Dt() {
	if (P.isUnminified) return function(e, t) {
		let n = Int8Array ? Object.getPrototypeOf(Int8Array) : null;
		return n && e instanceof n || (F._isArray(e) ? e.forEach(function(e) {
			F._isNumber(e) || F.warn("\"" + t + "\" attribute has non numeric element " + e + ". Make sure that all elements are numbers.");
		}) : F.warn(xt(e) + " is a not valid value for \"" + t + "\" attribute. The value should be a array of numbers.")), e;
	};
}
function Ot() {
	if (P.isUnminified) return function(e, t) {
		return e === !0 || e === !1 || F.warn(xt(e) + " is a not valid value for \"" + t + "\" attribute. The value should be a boolean."), e;
	};
}
function kt(e) {
	if (P.isUnminified) return function(t, n) {
		return t == null || F.isObject(t) || F.warn(xt(t) + " is a not valid value for \"" + n + "\" attribute. The value should be an object with properties " + e), t;
	};
}
//#endregion
//#region ../node_modules/konva/lib/Factory.js
var At = "get", jt = "set", z = {
	addGetterSetter(e, t, n, r, i) {
		z.addGetter(e, t, n), z.addSetter(e, t, r, i), z.addOverloadedGetterSetter(e, t);
	},
	addGetter(e, t, n) {
		let r = At + F._capitalize(t);
		e.prototype[r] = e.prototype[r] || function() {
			let e = this.attrs[t];
			return e === void 0 ? n : e;
		};
	},
	addSetter(e, t, n, r) {
		let i = jt + F._capitalize(t);
		e.prototype[i] || z.overWriteSetter(e, t, n, r);
	},
	overWriteSetter(e, t, n, r) {
		let i = jt + F._capitalize(t);
		e.prototype[i] = function(e) {
			return n && e != null && (e = n.call(this, e, t)), this._setAttr(t, e), r && r.call(this), this;
		};
	},
	addComponentsGetterSetter(e, t, n, r, i) {
		let a = n.length, o = F._capitalize, s = At + o(t), c = jt + o(t);
		e.prototype[s] = function() {
			let e = {};
			for (let r = 0; r < a; r++) {
				let i = n[r];
				e[i] = this.getAttr(t + o(i));
			}
			return e;
		};
		let l = kt(n);
		e.prototype[c] = function(e) {
			let a = this.attrs[t];
			r && (e = r.call(this, e, t)), l && l.call(this, e, t);
			for (let n in e) e.hasOwnProperty(n) && this._setAttr(t + o(n), e[n]);
			return e || n.forEach((e) => {
				this._setAttr(t + o(e), void 0);
			}), this._fireChangeEvent(t, a, e), i && i.call(this), this;
		}, z.addOverloadedGetterSetter(e, t);
	},
	addOverloadedGetterSetter(e, t) {
		let n = F._capitalize(t), r = jt + n, i = At + n;
		e.prototype[t] = function() {
			return arguments.length ? (this[r](arguments[0]), this) : this[i]();
		};
	},
	addDeprecatedGetterSetter(e, t, n, r) {
		F.error("Adding deprecated " + t);
		let i = At + F._capitalize(t), a = t + " property is deprecated and will be removed soon. Look at Konva change log for more information.";
		e.prototype[i] = function() {
			F.error(a);
			let e = this.attrs[t];
			return e === void 0 ? n : e;
		}, z.addSetter(e, t, r, function() {
			F.error(a);
		}), z.addOverloadedGetterSetter(e, t);
	},
	backCompat(e, t) {
		F.each(t, function(t, n) {
			let r = e.prototype[n], i = At + F._capitalize(t), a = jt + F._capitalize(t);
			function o() {
				r.apply(this, arguments), F.error("\"" + t + "\" method is deprecated and will be removed soon. Use \"\"" + n + "\" instead.");
			}
			e.prototype[t] = o, e.prototype[i] = o, e.prototype[a] = o;
		});
	},
	afterSetFilter() {
		this._filterUpToDate = !1;
	}
};
//#endregion
//#region ../node_modules/konva/lib/Node.js
function Mt(e) {
	let t = /(\w+)\(([^)]+)\)/g, n;
	for (; (n = t.exec(e)) !== null;) {
		let [, e, t] = n;
		switch (e) {
			case "blur": {
				let e = parseFloat(t.replace("px", ""));
				return function(t) {
					this.blurRadius(e * .5);
					let n = P.Filters;
					n && n.Blur && n.Blur.call(this, t);
				};
			}
			case "brightness": {
				let e = t.includes("%") ? parseFloat(t) / 100 : parseFloat(t);
				return function(t) {
					this.brightness(e);
					let n = P.Filters;
					n && n.Brightness && n.Brightness.call(this, t);
				};
			}
			case "contrast": {
				let e = parseFloat(t);
				return function(t) {
					let n = 100 * (Math.sqrt(e) - 1);
					this.contrast(n);
					let r = P.Filters;
					r && r.Contrast && r.Contrast.call(this, t);
				};
			}
			case "grayscale": return function(e) {
				let t = P.Filters;
				t && t.Grayscale && t.Grayscale.call(this, e);
			};
			case "sepia": return function(e) {
				let t = P.Filters;
				t && t.Sepia && t.Sepia.call(this, e);
			};
			case "invert": return function(e) {
				let t = P.Filters;
				t && t.Invert && t.Invert.call(this, e);
			};
			default:
				F.warn(`CSS filter "${e}" is not supported in fallback mode. Consider using function filters for better compatibility.`);
				break;
		}
	}
	return () => {};
}
var Nt = "absoluteOpacity", Pt = "allEventListeners", Ft = "absoluteTransform", It = "absoluteScale", Lt = "canvas", Rt = "Change", zt = "children", Bt = "konva", Vt = "listening", Ht = "mouseenter", Ut = "mouseleave", Wt = "pointerenter", Gt = "pointerleave", Kt = "touchenter", qt = "touchleave", Jt = "set", Yt = "Shape", Xt = " ", Zt = "stage", Qt = "transform", $t = "Stage", en = "visible", tn = [
	"xChange.konva",
	"yChange.konva",
	"scaleXChange.konva",
	"scaleYChange.konva",
	"skewXChange.konva",
	"skewYChange.konva",
	"rotationChange.konva",
	"offsetXChange.konva",
	"offsetYChange.konva",
	"transformsEnabledChange.konva"
].join(Xt), nn = 1, B = class e {
	constructor(e) {
		this._id = nn++, this.eventListeners = {}, this.attrs = {}, this.index = 0, this._allEventListeners = null, this.parent = null, this._cache = /* @__PURE__ */ new Map(), this._attachedDepsListeners = /* @__PURE__ */ new Map(), this._lastPos = null, this._batchingTransformChange = !1, this._needClearTransformCache = !1, this._filterUpToDate = !1, this._isUnderCache = !1, this._dragEventId = null, this._shouldFireChangeEvents = !1, this.setAttrs(e), this._shouldFireChangeEvents = !0;
	}
	hasChildren() {
		return !1;
	}
	_clearCache(e) {
		(e === Qt || e === Ft) && this._cache.get(e) ? this._cache.get(e).dirty = !0 : e ? this._cache.delete(e) : this._cache.clear();
	}
	_getCache(e, t) {
		let n = this._cache.get(e);
		return (n === void 0 || (e === Qt || e === Ft) && n.dirty === !0) && (n = t.call(this), this._cache.set(e, n)), n;
	}
	_calculate(e, t, n) {
		if (!this._attachedDepsListeners.get(e)) {
			let n = t.map((e) => e + "Change.konva").join(Xt);
			this.on(n, () => {
				this._clearCache(e);
			}), this._attachedDepsListeners.set(e, !0);
		}
		return this._getCache(e, n);
	}
	_getCanvasCache() {
		return this._cache.get(Lt);
	}
	_clearSelfAndDescendantCache(e) {
		this._clearCache(e), e === Ft && this.fire("absoluteTransformChange");
	}
	clearCache() {
		if (this._cache.has(Lt)) {
			let { scene: e, filter: t, hit: n } = this._cache.get(Lt);
			F.releaseCanvas(e._canvas, t._canvas, n._canvas), this._cache.delete(Lt);
		}
		return this._clearSelfAndDescendantCache(), this._requestDraw(), this;
	}
	cache(e) {
		let t = e || {}, n = {};
		(t.x === void 0 || t.y === void 0 || t.width === void 0 || t.height === void 0) && (n = this.getClientRect({
			skipTransform: !0,
			relativeTo: this.getParent() || void 0
		}));
		let r = Math.ceil(t.width || n.width), i = Math.ceil(t.height || n.height), a = t.pixelRatio, o = t.x === void 0 ? Math.floor(n.x) : t.x, s = t.y === void 0 ? Math.floor(n.y) : t.y, c = t.offset || 0, l = t.drawBorder || !1, u = t.hitCanvasPixelRatio || 1;
		if (!r || !i) {
			F.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");
			return;
		}
		let d = Math.abs(Math.round(n.x) - o) > .5 ? 1 : 0, f = Math.abs(Math.round(n.y) - s) > .5 ? 1 : 0;
		r += c * 2 + d, i += c * 2 + f, o -= c, s -= c;
		let p = new yt({
			pixelRatio: a,
			width: r,
			height: i
		}), m = new yt({
			pixelRatio: a,
			width: 0,
			height: 0,
			willReadFrequently: !0
		}), h = new bt({
			pixelRatio: u,
			width: r,
			height: i
		}), g = p.getContext(), _ = h.getContext(), v = new yt({
			width: p.width / p.pixelRatio + Math.abs(o),
			height: p.height / p.pixelRatio + Math.abs(s),
			pixelRatio: p.pixelRatio
		}), y = v.getContext();
		return h.isCache = !0, p.isCache = !0, this._cache.delete(Lt), this._filterUpToDate = !1, t.imageSmoothingEnabled === !1 && (p.getContext()._context.imageSmoothingEnabled = !1, m.getContext()._context.imageSmoothingEnabled = !1), g.save(), _.save(), y.save(), g.translate(-o, -s), _.translate(-o, -s), y.translate(-o, -s), v.x = o, v.y = s, this._isUnderCache = !0, this._clearSelfAndDescendantCache(Nt), this._clearSelfAndDescendantCache(It), this.drawScene(p, this, v), this.drawHit(h, this), this._isUnderCache = !1, g.restore(), _.restore(), l && (g.save(), g.beginPath(), g.rect(0, 0, r, i), g.closePath(), g.setAttr("strokeStyle", "red"), g.setAttr("lineWidth", 5), g.stroke(), g.restore()), F.releaseCanvas(v._canvas), this._cache.set(Lt, {
			scene: p,
			filter: m,
			hit: h,
			x: o,
			y: s
		}), this._requestDraw(), this;
	}
	isCached() {
		return this._cache.has(Lt);
	}
	getClientRect(e) {
		throw Error("abstract \"getClientRect\" method call");
	}
	_transformedRect(e, t) {
		let n = [
			{
				x: e.x,
				y: e.y
			},
			{
				x: e.x + e.width,
				y: e.y
			},
			{
				x: e.x + e.width,
				y: e.y + e.height
			},
			{
				x: e.x,
				y: e.y + e.height
			}
		], r = Infinity, i = Infinity, a = -Infinity, o = -Infinity, s = this.getAbsoluteTransform(t);
		return n.forEach(function(e) {
			let t = s.point(e);
			r === void 0 && (r = a = t.x, i = o = t.y), r = Math.min(r, t.x), i = Math.min(i, t.y), a = Math.max(a, t.x), o = Math.max(o, t.y);
		}), {
			x: r,
			y: i,
			width: a - r,
			height: o - i
		};
	}
	_drawCachedSceneCanvas(e) {
		e.save(), e._applyOpacity(this), e._applyGlobalCompositeOperation(this);
		let t = this._getCanvasCache();
		e.translate(t.x, t.y);
		let n = this._getCachedSceneCanvas(), r = n.pixelRatio;
		e.drawImage(n._canvas, 0, 0, n.width / r, n.height / r), e.restore();
	}
	_drawCachedHitCanvas(e) {
		let t = this._getCanvasCache(), n = t.hit;
		e.save(), e.translate(t.x, t.y), e.drawImage(n._canvas, 0, 0, n.width / n.pixelRatio, n.height / n.pixelRatio), e.restore();
	}
	_getCachedSceneCanvas() {
		let e = this.filters(), t = this._getCanvasCache(), n = t.scene, r = t.filter, i = r.getContext(), a, o, s, c;
		if (!e || e.length === 0) return n;
		if (this._filterUpToDate) return r;
		let l = !0;
		for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && pt(), typeof e[t] != "string" || !pt()) {
			l = !1;
			break;
		}
		let u = n.pixelRatio;
		if (r.setSize(n.width / n.pixelRatio, n.height / n.pixelRatio), l) {
			let t = e.join(" ");
			return i.save(), i.setAttr("filter", t), i.drawImage(n._canvas, 0, 0, n.getWidth() / u, n.getHeight() / u), i.restore(), this._filterUpToDate = !0, r;
		}
		try {
			for (a = e.length, i.clear(), i.drawImage(n._canvas, 0, 0, n.getWidth() / u, n.getHeight() / u), o = i.getImageData(0, 0, r.getWidth(), r.getHeight()), s = 0; s < a; s++) c = e[s], typeof c == "string" && (c = Mt(c)), c.call(this, o), i.putImageData(o, 0, 0);
		} catch (e) {
			F.error("Unable to apply filter. " + e.message + " This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.");
		}
		return this._filterUpToDate = !0, r;
	}
	on(...e) {
		let t = e[0], n = e[1];
		if (e[2], this._cache && this._cache.delete(Pt), e.length === 3) return this._delegate.apply(this, e);
		let r = t.split(Xt);
		for (let e = 0; e < r.length; e++) {
			let t = r[e].split("."), i = t[0], a = t[1] || "";
			this.eventListeners[i] || (this.eventListeners[i] = []), this.eventListeners[i].push({
				name: a,
				handler: n
			});
		}
		return this;
	}
	off(e, t) {
		let n = (e || "").split(Xt), r = n.length, i, a, o, s, c, l;
		if (this._cache && this._cache.delete(Pt), !e) for (a in this.eventListeners) this._off(a);
		for (i = 0; i < r; i++) if (o = n[i], s = o.split("."), c = s[0], l = s[1], c) this.eventListeners[c] && this._off(c, l, t);
		else for (a in this.eventListeners) this._off(a, l, t);
		return this;
	}
	dispatchEvent(e) {
		let t = {
			target: this,
			type: e.type,
			evt: e
		};
		return this.fire(e.type, t), this;
	}
	addEventListener(e, t) {
		return this.on(e, function(e) {
			t.call(this, e.evt);
		}), this;
	}
	removeEventListener(e) {
		return this.off(e), this;
	}
	_delegate(e, t, n) {
		let r = this;
		return this.on(e, function(e) {
			let i = e.target.findAncestors(t, !0, r);
			for (let t = 0; t < i.length; t++) e = F.cloneObject(e), e.currentTarget = i[t], n.call(i[t], e);
		}), this;
	}
	remove() {
		return this.isDragging() && this.stopDrag(), L._dragElements.delete(this._id), L._dragElements.forEach((e, t) => {
			this.isAncestorOf(e.node) && L._dragElements.delete(t);
		}), this._remove(), this;
	}
	_clearCaches() {
		this._clearSelfAndDescendantCache(Ft), this._clearSelfAndDescendantCache(Nt), this._clearSelfAndDescendantCache(It), this._clearSelfAndDescendantCache(Zt), this._clearSelfAndDescendantCache(en), this._clearSelfAndDescendantCache(Vt);
	}
	_remove() {
		this._clearCaches();
		let e = this.getParent();
		e && e.children && (e.children.splice(this.index, 1), e._setChildrenIndices(), this.parent = null);
	}
	destroy() {
		return this.remove(), this.clearCache(), this;
	}
	getAttr(e) {
		let t = "get" + F._capitalize(e);
		return F._isFunction(this[t]) ? this[t]() : this.attrs[e];
	}
	getAncestors() {
		let e = this.getParent(), t = [];
		for (; e;) t.push(e), e = e.getParent();
		return t;
	}
	getAttrs() {
		return this.attrs || {};
	}
	setAttrs(e) {
		return this._batchTransformChanges(() => {
			let t, n;
			if (!e) return this;
			for (t in e) t !== zt && (n = Jt + F._capitalize(t), F._isFunction(this[n]) ? this[n](e[t]) : this._setAttr(t, e[t]));
		}), this;
	}
	isListening() {
		return this._getCache(Vt, this._isListening);
	}
	_isListening(e) {
		if (!this.listening()) return !1;
		let t = this.getParent();
		return t && t !== e && this !== e ? t._isListening(e) : !0;
	}
	isVisible() {
		return this._getCache(en, this._isVisible);
	}
	_isVisible(e) {
		if (!this.visible()) return !1;
		let t = this.getParent();
		return t && t !== e && this !== e ? t._isVisible(e) : !0;
	}
	shouldDrawHit(e, t = !1) {
		if (e) return this._isVisible(e) && this._isListening(e);
		let n = this.getLayer(), r = !1;
		L._dragElements.forEach((e) => {
			e.dragStatus === "dragging" && (e.node.nodeType === "Stage" || e.node.getLayer() === n) && (r = !0);
		});
		let i = !t && !P.hitOnDragEnabled && (r || P.isTransforming());
		return this.isListening() && this.isVisible() && !i;
	}
	show() {
		return this.visible(!0), this;
	}
	hide() {
		return this.visible(!1), this;
	}
	getZIndex() {
		return this.index || 0;
	}
	getAbsoluteZIndex() {
		let e = this.getDepth(), t = this, n = 0, r, i, a, o;
		function s(c) {
			for (r = [], i = c.length, a = 0; a < i; a++) o = c[a], n++, o.nodeType !== Yt && (r = r.concat(o.getChildren().slice())), o._id === t._id && (a = i);
			r.length > 0 && r[0].getDepth() <= e && s(r);
		}
		let c = this.getStage();
		return t.nodeType !== $t && c && s(c.getChildren()), n;
	}
	getDepth() {
		let e = 0, t = this.parent;
		for (; t;) e++, t = t.parent;
		return e;
	}
	_batchTransformChanges(e) {
		this._batchingTransformChange = !0, e(), this._batchingTransformChange = !1, this._needClearTransformCache && (this._clearCache(Qt), this._clearSelfAndDescendantCache(Ft)), this._needClearTransformCache = !1;
	}
	setPosition(e) {
		return this._batchTransformChanges(() => {
			this.x(e.x), this.y(e.y);
		}), this;
	}
	getPosition() {
		return {
			x: this.x(),
			y: this.y()
		};
	}
	getRelativePointerPosition() {
		let e = this.getStage();
		if (!e) return null;
		let t = e.getPointerPosition();
		if (!t) return null;
		let n = this.getAbsoluteTransform().copy();
		return n.invert(), n.point(t);
	}
	getAbsolutePosition(e) {
		let t = !1, n = this.parent;
		for (; n;) {
			if (n.isCached()) {
				t = !0;
				break;
			}
			n = n.parent;
		}
		t && !e && (e = !0);
		let r = this.getAbsoluteTransform(e).getMatrix(), i = new Ie(), a = this.offset();
		return i.m = r.slice(), i.translate(a.x, a.y), i.getTranslation();
	}
	setAbsolutePosition(e) {
		let { x: t, y: n, ...r } = this._clearTransform();
		this.attrs.x = t, this.attrs.y = n, this._clearCache(Qt);
		let i = this._getAbsoluteTransform().copy();
		return i.invert(), i.translate(e.x, e.y), e = {
			x: this.attrs.x + i.getTranslation().x,
			y: this.attrs.y + i.getTranslation().y
		}, this._setTransform(r), this.setPosition({
			x: e.x,
			y: e.y
		}), this._clearCache(Qt), this._clearSelfAndDescendantCache(Ft), this;
	}
	_setTransform(e) {
		let t;
		for (t in e) this.attrs[t] = e[t];
	}
	_clearTransform() {
		let e = {
			x: this.x(),
			y: this.y(),
			rotation: this.rotation(),
			scaleX: this.scaleX(),
			scaleY: this.scaleY(),
			offsetX: this.offsetX(),
			offsetY: this.offsetY(),
			skewX: this.skewX(),
			skewY: this.skewY()
		};
		return this.attrs.x = 0, this.attrs.y = 0, this.attrs.rotation = 0, this.attrs.scaleX = 1, this.attrs.scaleY = 1, this.attrs.offsetX = 0, this.attrs.offsetY = 0, this.attrs.skewX = 0, this.attrs.skewY = 0, e;
	}
	move(e) {
		let t = e.x, n = e.y, r = this.x(), i = this.y();
		return t !== void 0 && (r += t), n !== void 0 && (i += n), this.setPosition({
			x: r,
			y: i
		}), this;
	}
	_eachAncestorReverse(e, t) {
		let n = [], r = this.getParent(), i, a;
		if (!(t && t._id === this._id)) {
			for (n.unshift(this); r && (!t || r._id !== t._id);) n.unshift(r), r = r.parent;
			for (i = n.length, a = 0; a < i; a++) e(n[a]);
		}
	}
	rotate(e) {
		return this.rotation(this.rotation() + e), this;
	}
	moveToTop() {
		if (!this.parent) return F.warn("Node has no parent. moveToTop function is ignored."), !1;
		let e = this.index;
		return e < this.parent.getChildren().length - 1 ? (this.parent.children.splice(e, 1), this.parent.children.push(this), this.parent._setChildrenIndices(), !0) : !1;
	}
	moveUp() {
		if (!this.parent) return F.warn("Node has no parent. moveUp function is ignored."), !1;
		let e = this.index;
		return e < this.parent.getChildren().length - 1 ? (this.parent.children.splice(e, 1), this.parent.children.splice(e + 1, 0, this), this.parent._setChildrenIndices(), !0) : !1;
	}
	moveDown() {
		if (!this.parent) return F.warn("Node has no parent. moveDown function is ignored."), !1;
		let e = this.index;
		return e > 0 ? (this.parent.children.splice(e, 1), this.parent.children.splice(e - 1, 0, this), this.parent._setChildrenIndices(), !0) : !1;
	}
	moveToBottom() {
		if (!this.parent) return F.warn("Node has no parent. moveToBottom function is ignored."), !1;
		let e = this.index;
		return e > 0 ? (this.parent.children.splice(e, 1), this.parent.children.unshift(this), this.parent._setChildrenIndices(), !0) : !1;
	}
	setZIndex(e) {
		if (!this.parent) return F.warn("Node has no parent. zIndex parameter is ignored."), this;
		(e < 0 || e >= this.parent.children.length) && F.warn("Unexpected value " + e + " for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to " + (this.parent.children.length - 1) + ".");
		let t = this.index;
		return this.parent.children.splice(t, 1), this.parent.children.splice(e, 0, this), this.parent._setChildrenIndices(), this;
	}
	getAbsoluteOpacity() {
		return this._getCache(Nt, this._getAbsoluteOpacity);
	}
	_getAbsoluteOpacity() {
		let e = this.opacity(), t = this.getParent();
		return t && !t._isUnderCache && (e *= t.getAbsoluteOpacity()), e;
	}
	moveTo(e) {
		return this.getParent() !== e && (this._remove(), e.add(this)), this;
	}
	toObject() {
		let e = this.getAttrs(), t, n, r, i, a, o = {
			attrs: {},
			className: this.getClassName()
		};
		for (t in e) n = e[t], a = F.isObject(n) && !F._isPlainObject(n) && !F._isArray(n), !a && (r = typeof this[t] == "function" && this[t], delete e[t], i = r ? r.call(this) : null, e[t] = n, i !== n && (o.attrs[t] = n));
		return F._prepareToStringify(o);
	}
	toJSON() {
		return JSON.stringify(this.toObject());
	}
	getParent() {
		return this.parent;
	}
	findAncestors(e, t, n) {
		let r = [];
		t && this._isMatch(e) && r.push(this);
		let i = this.parent;
		for (; i;) {
			if (i === n) return r;
			i._isMatch(e) && r.push(i), i = i.parent;
		}
		return r;
	}
	isAncestorOf(e) {
		return !1;
	}
	findAncestor(e, t, n) {
		return this.findAncestors(e, t, n)[0];
	}
	_isMatch(e) {
		if (!e) return !1;
		if (typeof e == "function") return e(this);
		let t = e.replace(/ /g, "").split(","), n = t.length, r, i;
		for (r = 0; r < n; r++) if (i = t[r], F.isValidSelector(i) || (F.warn("Selector \"" + i + "\" is invalid. Allowed selectors examples are \"#foo\", \".bar\" or \"Group\"."), F.warn("If you have a custom shape with such className, please change it to start with upper letter like \"Triangle\"."), F.warn("Konva is awesome, right?")), i.charAt(0) === "#") {
			if (this.id() === i.slice(1)) return !0;
		} else if (i.charAt(0) === ".") {
			if (this.hasName(i.slice(1))) return !0;
		} else if (this.className === i || this.nodeType === i) return !0;
		return !1;
	}
	getLayer() {
		let e = this.getParent();
		return e ? e.getLayer() : null;
	}
	getStage() {
		return this._getCache(Zt, this._getStage);
	}
	_getStage() {
		let e = this.getParent();
		return e ? e.getStage() : null;
	}
	fire(e, t = {}, n) {
		return t.target = t.target || this, n ? this._fireAndBubble(e, t) : this._fire(e, t), this;
	}
	getAbsoluteTransform(e) {
		return e ? this._getAbsoluteTransform(e) : this._getCache(Ft, this._getAbsoluteTransform);
	}
	_getAbsoluteTransform(e) {
		let t;
		if (e) return t = new Ie(), this._eachAncestorReverse(function(e) {
			let n = e.transformsEnabled();
			n === "all" ? t.multiply(e.getTransform()) : n === "position" && t.translate(e.x() - e.offsetX(), e.y() - e.offsetY());
		}, e), t;
		{
			t = this._cache.get(Ft) || new Ie(), this.parent ? this.parent.getAbsoluteTransform().copyInto(t) : t.reset();
			let e = this.transformsEnabled();
			if (e === "all") t.multiply(this.getTransform());
			else if (e === "position") {
				let e = this.attrs.x || 0, n = this.attrs.y || 0, r = this.attrs.offsetX || 0, i = this.attrs.offsetY || 0;
				t.translate(e - r, n - i);
			}
			return t.dirty = !1, t;
		}
	}
	getAbsoluteScale(e) {
		let t = this;
		for (; t;) t._isUnderCache && (e = t), t = t.getParent();
		let n = this.getAbsoluteTransform(e).decompose();
		return {
			x: n.scaleX,
			y: n.scaleY
		};
	}
	getAbsoluteRotation() {
		return this.getAbsoluteTransform().decompose().rotation;
	}
	getTransform() {
		return this._getCache(Qt, this._getTransform);
	}
	_getTransform() {
		let e = this._cache.get(Qt) || new Ie();
		e.reset();
		let t = this.x(), n = this.y(), r = P.getAngle(this.rotation()), i = this.attrs.scaleX ?? 1, a = this.attrs.scaleY ?? 1, o = this.attrs.skewX || 0, s = this.attrs.skewY || 0, c = this.attrs.offsetX || 0, l = this.attrs.offsetY || 0;
		return (t !== 0 || n !== 0) && e.translate(t, n), r !== 0 && e.rotate(r), (o !== 0 || s !== 0) && e.skew(o, s), (i !== 1 || a !== 1) && e.scale(i, a), (c !== 0 || l !== 0) && e.translate(-1 * c, -1 * l), e.dirty = !1, e;
	}
	clone(e) {
		let t = F.cloneObject(this.attrs), n, r, i, a, o;
		for (n in e) t[n] = e[n];
		let s = new this.constructor(t);
		for (n in this.eventListeners) for (r = this.eventListeners[n], i = r.length, a = 0; a < i; a++) o = r[a], o.name.indexOf(Bt) < 0 && (s.eventListeners[n] || (s.eventListeners[n] = []), s.eventListeners[n].push(o));
		return s;
	}
	_toKonvaCanvas(e) {
		e ||= {};
		let t = this.getClientRect(), n = this.getStage(), r = e.x === void 0 ? Math.floor(t.x) : e.x, i = e.y === void 0 ? Math.floor(t.y) : e.y, a = e.pixelRatio || 1, o = new yt({
			width: e.width || Math.ceil(t.width) || (n ? n.width() : 0),
			height: e.height || Math.ceil(t.height) || (n ? n.height() : 0),
			pixelRatio: a
		}), s = o.getContext(), c = new yt({
			width: o.width / o.pixelRatio + Math.abs(r),
			height: o.height / o.pixelRatio + Math.abs(i),
			pixelRatio: o.pixelRatio
		});
		return e.imageSmoothingEnabled === !1 && (s._context.imageSmoothingEnabled = !1), s.save(), (r || i) && s.translate(-1 * r, -1 * i), this.drawScene(o, void 0, c), s.restore(), o;
	}
	toCanvas(e) {
		return this._toKonvaCanvas(e)._canvas;
	}
	toDataURL(e) {
		e ||= {};
		let t = e.mimeType || null, n = e.quality || null, r = this._toKonvaCanvas(e).toDataURL(t, n);
		return e.callback && e.callback(r), r;
	}
	toImage(e) {
		return new Promise((t, n) => {
			try {
				let n = e?.callback;
				n && delete e.callback, F._urlToImage(this.toDataURL(e), function(e) {
					t(e), n?.(e);
				});
			} catch (e) {
				n(e);
			}
		});
	}
	toBlob(e) {
		return new Promise((t, n) => {
			try {
				let n = e?.callback;
				n && delete e.callback, this.toCanvas(e).toBlob((e) => {
					t(e), n?.(e);
				}, e?.mimeType, e?.quality);
			} catch (e) {
				n(e);
			}
		});
	}
	setSize(e) {
		return this.width(e.width), this.height(e.height), this;
	}
	getSize() {
		return {
			width: this.width(),
			height: this.height()
		};
	}
	getClassName() {
		return this.className || this.nodeType;
	}
	getType() {
		return this.nodeType;
	}
	getDragDistance() {
		return this.attrs.dragDistance === void 0 ? this.parent ? this.parent.getDragDistance() : P.dragDistance : this.attrs.dragDistance;
	}
	_off(e, t, n) {
		let r = this.eventListeners[e], i, a, o;
		for (i = 0; i < r.length; i++) if (a = r[i].name, o = r[i].handler, (a !== "konva" || t === "konva") && (!t || a === t) && (!n || n === o)) {
			if (r.splice(i, 1), r.length === 0) {
				delete this.eventListeners[e];
				break;
			}
			i--;
		}
	}
	_fireChangeEvent(e, t, n) {
		this._fire(e + Rt, {
			oldVal: t,
			newVal: n
		});
	}
	addName(e) {
		if (!this.hasName(e)) {
			let t = this.name(), n = t ? t + " " + e : e;
			this.name(n);
		}
		return this;
	}
	hasName(e) {
		if (!e) return !1;
		let t = this.name();
		return t ? (t || "").split(/\s/g).indexOf(e) !== -1 : !1;
	}
	removeName(e) {
		let t = (this.name() || "").split(/\s/g), n = t.indexOf(e);
		return n !== -1 && (t.splice(n, 1), this.name(t.join(" "))), this;
	}
	setAttr(e, t) {
		let n = this[Jt + F._capitalize(e)];
		return F._isFunction(n) ? n.call(this, t) : this._setAttr(e, t), this;
	}
	_requestDraw() {
		P.autoDrawEnabled && (this.getLayer() || this.getStage())?.batchDraw();
	}
	_setAttr(e, t) {
		let n = this.attrs[e];
		n === t && !F.isObject(t) || (t == null ? delete this.attrs[e] : this.attrs[e] = t, this._shouldFireChangeEvents && this._fireChangeEvent(e, n, t), this._requestDraw());
	}
	_setComponentAttr(e, t, n) {
		let r;
		n !== void 0 && (r = this.attrs[e], r || (this.attrs[e] = this.getAttr(e)), this.attrs[e][t] = n, this._fireChangeEvent(e, r, n));
	}
	_fireAndBubble(e, t, n) {
		t && this.nodeType === Yt && (t.target = this);
		let r = [
			Ht,
			Ut,
			Wt,
			Gt,
			Kt,
			qt
		];
		if (!(r.indexOf(e) !== -1 && (n && (this === n || this.isAncestorOf && this.isAncestorOf(n)) || this.nodeType === "Stage" && !n))) {
			this._fire(e, t);
			let i = r.indexOf(e) !== -1 && n && n.isAncestorOf && n.isAncestorOf(this) && !n.isAncestorOf(this.parent);
			(t && !t.cancelBubble || !t) && this.parent && this.parent.isListening() && !i && (n && n.parent ? this._fireAndBubble.call(this.parent, e, t, n) : this._fireAndBubble.call(this.parent, e, t));
		}
	}
	_getProtoListeners(t) {
		let { nodeType: n } = this, r = e.protoListenerMap.get(n) || {}, i = r?.[t];
		if (i === void 0) {
			i = [];
			let a = Object.getPrototypeOf(this);
			for (; a;) {
				let e = a.eventListeners?.[t] ?? [];
				i.push(...e), a = Object.getPrototypeOf(a);
			}
			r[t] = i, e.protoListenerMap.set(n, r);
		}
		return i;
	}
	_fire(e, t) {
		t ||= {}, t.currentTarget = this, t.type = e;
		let n = this._getProtoListeners(e);
		if (n) for (let e = 0; e < n.length; e++) n[e].handler.call(this, t);
		let r = this.eventListeners[e];
		if (r) for (let e = 0; e < r.length; e++) r[e].handler.call(this, t);
	}
	draw() {
		return this.drawScene(), this.drawHit(), this;
	}
	_createDragElement(e) {
		let t = e ? e.pointerId : void 0, n = this.getStage(), r = this.getAbsolutePosition();
		if (!n) return;
		let i = n._getPointerById(t) || n._changedPointerPositions[0] || r;
		L._dragElements.set(this._id, {
			node: this,
			startPointerPos: i,
			offset: {
				x: i.x - r.x,
				y: i.y - r.y
			},
			dragStatus: "ready",
			pointerId: t,
			startEvent: e
		});
	}
	startDrag(e, t = !0) {
		L._dragElements.has(this._id) || this._createDragElement(e);
		let n = L._dragElements.get(this._id);
		n.dragStatus = "dragging", this.fire("dragstart", {
			type: "dragstart",
			target: this,
			evt: n.startEvent && n.startEvent.evt || e && e.evt
		}, t);
	}
	_setDragPosition(e, t) {
		let n = this.getStage()._getPointerById(t.pointerId);
		if (!n) return;
		let r = {
			x: n.x - t.offset.x,
			y: n.y - t.offset.y
		}, i = this.dragBoundFunc();
		if (i !== void 0) {
			let t = i.call(this, r, e);
			t ? r = t : F.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.");
		}
		(!this._lastPos || this._lastPos.x !== r.x || this._lastPos.y !== r.y) && (this.setAbsolutePosition(r), this._requestDraw()), this._lastPos = r;
	}
	stopDrag(e) {
		let t = L._dragElements.get(this._id);
		t && (t.dragStatus = "stopped"), L._endDragBefore(e), L._endDragAfter(e);
	}
	setDraggable(e) {
		this._setAttr("draggable", e), this._dragChange();
	}
	isDragging() {
		let e = L._dragElements.get(this._id);
		return e ? e.dragStatus === "dragging" : !1;
	}
	_listenDrag() {
		this._dragCleanup(), this.on("mousedown.konva touchstart.konva", function(e) {
			if (!(e.evt.button === void 0 || P.dragButtons.indexOf(e.evt.button) >= 0) || this.isDragging()) return;
			let t = !1;
			L._dragElements.forEach((e) => {
				this.isAncestorOf(e.node) && (t = !0);
			}), t || this._createDragElement(e);
		});
	}
	_dragChange() {
		if (this.attrs.draggable) this._listenDrag();
		else {
			if (this._dragCleanup(), !this.getStage()) return;
			let e = L._dragElements.get(this._id), t = e && e.dragStatus === "dragging", n = e && e.dragStatus === "ready";
			t ? this.stopDrag() : n && L._dragElements.delete(this._id);
		}
	}
	_dragCleanup() {
		this.off("mousedown.konva"), this.off("touchstart.konva");
	}
	isClientRectOnScreen(e = {
		x: 0,
		y: 0
	}) {
		let t = this.getStage();
		if (!t) return !1;
		let n = {
			x: -e.x,
			y: -e.y,
			width: t.width() + 2 * e.x,
			height: t.height() + 2 * e.y
		};
		return F.haveIntersection(n, this.getClientRect());
	}
	static create(e, t) {
		return F._isString(e) && (e = JSON.parse(e)), this._createNode(e, t);
	}
	static _createNode(t, n) {
		let r = e.prototype.getClassName.call(t), i = t.children, a, o, s;
		n && (t.attrs.container = n), P[r] || (F.warn("Can not find a node with class name \"" + r + "\". Fallback to \"Shape\"."), r = "Shape");
		let c = P[r];
		if (a = new c(t.attrs), i) for (o = i.length, s = 0; s < o; s++) a.add(e._createNode(i[s]));
		return a;
	}
};
B.protoListenerMap = /* @__PURE__ */ new Map(), B.prototype.nodeType = "Node", B.prototype._attrsAffectingSize = [], B.prototype.eventListeners = {}, B.prototype.on(tn, function() {
	if (this._batchingTransformChange) {
		this._needClearTransformCache = !0;
		return;
	}
	this._clearCache(Qt), this._clearSelfAndDescendantCache(Ft);
}), B.prototype.on("visibleChange.konva", function() {
	this._clearSelfAndDescendantCache(en);
}), B.prototype.on("listeningChange.konva", function() {
	this._clearSelfAndDescendantCache(Vt);
}), B.prototype.on("opacityChange.konva", function() {
	this._clearSelfAndDescendantCache(Nt);
});
var rn = z.addGetterSetter;
rn(B, "zIndex"), rn(B, "absolutePosition"), rn(B, "position"), rn(B, "x", 0, R()), rn(B, "y", 0, R()), rn(B, "globalCompositeOperation", "source-over", Tt()), rn(B, "opacity", 1, R()), rn(B, "name", "", Tt()), rn(B, "id", "", Tt()), rn(B, "rotation", 0, R()), z.addComponentsGetterSetter(B, "scale", ["x", "y"]), rn(B, "scaleX", 1, R()), rn(B, "scaleY", 1, R()), z.addComponentsGetterSetter(B, "skew", ["x", "y"]), rn(B, "skewX", 0, R()), rn(B, "skewY", 0, R()), z.addComponentsGetterSetter(B, "offset", ["x", "y"]), rn(B, "offsetX", 0, R()), rn(B, "offsetY", 0, R()), rn(B, "dragDistance", void 0, R()), rn(B, "width", 0, R()), rn(B, "height", 0, R()), rn(B, "listening", !0, Ot()), rn(B, "preventDefault", !0, Ot()), rn(B, "filters", void 0, function(e) {
	return this._filterUpToDate = !1, e;
}), rn(B, "visible", !0, Ot()), rn(B, "transformsEnabled", "all", Tt()), rn(B, "size"), rn(B, "dragBoundFunc"), rn(B, "draggable", !1, Ot()), z.backCompat(B, {
	rotateDeg: "rotate",
	setRotationDeg: "setRotation",
	getRotationDeg: "getRotation"
});
//#endregion
//#region ../node_modules/konva/lib/Container.js
var an = class extends B {
	constructor() {
		super(...arguments), this.children = [];
	}
	getChildren(e) {
		let t = this.children || [];
		return e ? t.filter(e) : t;
	}
	hasChildren() {
		return this.getChildren().length > 0;
	}
	removeChildren() {
		return this.getChildren().forEach((e) => {
			e.parent = null, e.index = 0, e.remove();
		}), this.children = [], this._requestDraw(), this;
	}
	destroyChildren() {
		return this.getChildren().forEach((e) => {
			e.parent = null, e.index = 0, e.destroy();
		}), this.children = [], this._requestDraw(), this;
	}
	add(...e) {
		if (e.length === 0) return this;
		if (e.length > 1) {
			for (let t = 0; t < e.length; t++) this.add(e[t]);
			return this;
		}
		let t = e[0];
		return t.getParent() ? (t.moveTo(this), this) : (this._validateAdd(t), t.index = this.getChildren().length, t.parent = this, t._clearCaches(), this.getChildren().push(t), this._fire("add", { child: t }), this._requestDraw(), this);
	}
	destroy() {
		return this.hasChildren() && this.destroyChildren(), super.destroy(), this;
	}
	find(e) {
		return this._generalFind(e, !1);
	}
	findOne(e) {
		let t = this._generalFind(e, !0);
		return t.length > 0 ? t[0] : void 0;
	}
	_generalFind(e, t) {
		let n = [];
		return this._descendants((r) => {
			let i = r._isMatch(e);
			return i && n.push(r), !!(i && t);
		}), n;
	}
	_descendants(e) {
		let t = !1, n = this.getChildren();
		for (let r of n) if (t = e(r), t || r.hasChildren() && (t = r._descendants(e), t)) return !0;
		return !1;
	}
	toObject() {
		let e = B.prototype.toObject.call(this);
		return e.children = [], this.getChildren().forEach((t) => {
			e.children.push(t.toObject());
		}), e;
	}
	isAncestorOf(e) {
		let t = e.getParent();
		for (; t;) {
			if (t._id === this._id) return !0;
			t = t.getParent();
		}
		return !1;
	}
	clone(e) {
		let t = B.prototype.clone.call(this, e);
		return this.getChildren().forEach(function(e) {
			t.add(e.clone());
		}), t;
	}
	getAllIntersections(e) {
		let t = [];
		return this.find("Shape").forEach((n) => {
			n.isVisible() && n.intersects(e) && t.push(n);
		}), t;
	}
	_clearSelfAndDescendantCache(e) {
		var t;
		super._clearSelfAndDescendantCache(e), !this.isCached() && ((t = this.children) == null || t.forEach(function(t) {
			t._clearSelfAndDescendantCache(e);
		}));
	}
	_setChildrenIndices() {
		var e;
		(e = this.children) == null || e.forEach(function(e, t) {
			e.index = t;
		}), this._requestDraw();
	}
	drawScene(e, t, n) {
		let r = this.getLayer(), i = e || r && r.getCanvas(), a = i && i.getContext(), o = this._getCanvasCache(), s = o && o.scene, c = i && i.isCache;
		if (!this.isVisible() && !c) return this;
		if (s) {
			a.save();
			let e = this.getAbsoluteTransform(t).getMatrix();
			a.transform(e[0], e[1], e[2], e[3], e[4], e[5]), this._drawCachedSceneCanvas(a), a.restore();
		} else this._drawChildren("drawScene", i, t, n);
		return this;
	}
	drawHit(e, t) {
		if (!this.shouldDrawHit(t)) return this;
		let n = this.getLayer(), r = e || n && n.hitCanvas, i = r && r.getContext(), a = this._getCanvasCache();
		if (a && a.hit) {
			i.save();
			let e = this.getAbsoluteTransform(t).getMatrix();
			i.transform(e[0], e[1], e[2], e[3], e[4], e[5]), this._drawCachedHitCanvas(i), i.restore();
		} else this._drawChildren("drawHit", r, t);
		return this;
	}
	_drawChildren(e, t, n, r) {
		var i;
		let a = t && t.getContext(), o = this.clipWidth(), s = this.clipHeight(), c = this.clipFunc(), l = typeof o == "number" && typeof s == "number" || c, u = n === this;
		if (l) {
			a.save();
			let e = this.getAbsoluteTransform(n), t = e.getMatrix();
			a.transform(t[0], t[1], t[2], t[3], t[4], t[5]), a.beginPath();
			let r;
			if (c) r = c.call(this, a, this);
			else {
				let e = this.clipX(), t = this.clipY();
				a.rect(e || 0, t || 0, o, s);
			}
			a.clip.apply(a, r), t = e.copy().invert().getMatrix(), a.transform(t[0], t[1], t[2], t[3], t[4], t[5]);
		}
		let d = !u && this.globalCompositeOperation() !== "source-over" && e === "drawScene";
		d && (a.save(), a._applyGlobalCompositeOperation(this)), (i = this.children) == null || i.forEach(function(i) {
			i[e](t, n, r);
		}), d && a.restore(), l && a.restore();
	}
	getClientRect(e = {}) {
		var t;
		let n = e.skipTransform, r = e.relativeTo, i, a, o, s, c = {
			x: Infinity,
			y: Infinity,
			width: 0,
			height: 0
		}, l = this;
		(t = this.children) == null || t.forEach(function(t) {
			if (!t.visible()) return;
			let n = t.getClientRect({
				relativeTo: l,
				skipShadow: e.skipShadow,
				skipStroke: e.skipStroke
			});
			n.width === 0 && n.height === 0 || (i === void 0 ? (i = n.x, a = n.y, o = n.x + n.width, s = n.y + n.height) : (i = Math.min(i, n.x), a = Math.min(a, n.y), o = Math.max(o, n.x + n.width), s = Math.max(s, n.y + n.height)));
		});
		let u = this.find("Shape"), d = !1;
		for (let e = 0; e < u.length; e++) if (u[e]._isVisible(this)) {
			d = !0;
			break;
		}
		return c = d && i !== void 0 ? {
			x: i,
			y: a,
			width: o - i,
			height: s - a
		} : {
			x: 0,
			y: 0,
			width: 0,
			height: 0
		}, n ? c : this._transformedRect(c, r);
	}
};
z.addComponentsGetterSetter(an, "clip", [
	"x",
	"y",
	"width",
	"height"
]), z.addGetterSetter(an, "clipX", void 0, R()), z.addGetterSetter(an, "clipY", void 0, R()), z.addGetterSetter(an, "clipWidth", void 0, R()), z.addGetterSetter(an, "clipHeight", void 0, R()), z.addGetterSetter(an, "clipFunc");
//#endregion
//#region ../node_modules/konva/lib/PointerEvents.js
var on = /* @__PURE__ */ new Map(), sn = P._global.PointerEvent !== void 0;
function cn(e) {
	return on.get(e);
}
function ln(e) {
	return {
		evt: e,
		pointerId: e.pointerId
	};
}
function un(e, t) {
	return on.get(e) === t;
}
function dn(e, t) {
	fn(e), t.getStage() && (on.set(e, t), sn && t._fire("gotpointercapture", ln(new PointerEvent("gotpointercapture"))));
}
function fn(e, t) {
	let n = on.get(e);
	if (!n) return;
	let r = n.getStage();
	r && r.content, on.delete(e), sn && n._fire("lostpointercapture", ln(new PointerEvent("lostpointercapture")));
}
//#endregion
//#region ../node_modules/konva/lib/Stage.js
var pn = "Stage", mn = "string", hn = "px", gn = "mouseout", _n = "mouseleave", vn = "mouseover", yn = "mouseenter", bn = "mousemove", xn = "mousedown", Sn = "mouseup", Cn = "pointermove", wn = "pointerdown", Tn = "pointerup", En = "pointercancel", Dn = "lostpointercapture", On = "pointerout", kn = "pointerleave", An = "pointerover", jn = "pointerenter", Mn = "contextmenu", Nn = "touchstart", Pn = "touchend", Fn = "touchmove", In = "touchcancel", Ln = "wheel", Rn = 5, zn = [
	[yn, "_pointerenter"],
	[xn, "_pointerdown"],
	[bn, "_pointermove"],
	[Sn, "_pointerup"],
	[_n, "_pointerleave"],
	[Nn, "_pointerdown"],
	[Fn, "_pointermove"],
	[Pn, "_pointerup"],
	[In, "_pointercancel"],
	[vn, "_pointerover"],
	[Ln, "_wheel"],
	[Mn, "_contextmenu"],
	[wn, "_pointerdown"],
	[Cn, "_pointermove"],
	[Tn, "_pointerup"],
	[En, "_pointercancel"],
	[kn, "_pointerleave"],
	[Dn, "_lostpointercapture"]
], Bn = {
	mouse: {
		[On]: gn,
		[kn]: _n,
		[An]: vn,
		[jn]: yn,
		[Cn]: bn,
		[wn]: xn,
		[Tn]: Sn,
		[En]: "mousecancel",
		pointerclick: "click",
		pointerdblclick: "dblclick"
	},
	touch: {
		[On]: "touchout",
		[kn]: "touchleave",
		[An]: "touchover",
		[jn]: "touchenter",
		[Cn]: Fn,
		[wn]: Nn,
		[Tn]: Pn,
		[En]: In,
		pointerclick: "tap",
		pointerdblclick: "dbltap"
	},
	pointer: {
		[On]: On,
		[kn]: kn,
		[An]: An,
		[jn]: jn,
		[Cn]: Cn,
		[wn]: wn,
		[Tn]: Tn,
		[En]: En,
		pointerclick: "pointerclick",
		pointerdblclick: "pointerdblclick"
	}
}, Vn = (e) => e.indexOf("pointer") >= 0 ? "pointer" : e.indexOf("touch") >= 0 ? "touch" : "mouse", Hn = (e) => {
	let t = Vn(e);
	if (t === "pointer") return P.pointerEventsEnabled && Bn.pointer;
	if (t === "touch") return Bn.touch;
	if (t === "mouse") return Bn.mouse;
};
function Un(e = {}) {
	return (e.clipFunc || e.clipWidth || e.clipHeight) && F.warn("Stage does not support clipping. Please use clip for Layers or Groups."), e;
}
var Wn = "Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);", Gn = [], Kn = class extends an {
	constructor(e) {
		super(Un(e)), this._pointerPositions = [], this._changedPointerPositions = [], this._buildDOM(), this._bindContentEvents(), Gn.push(this), this.on("widthChange.konva heightChange.konva", this._resizeDOM), this.on("visibleChange.konva", this._checkVisibility), this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva", () => {
			Un(this.attrs);
		}), this._checkVisibility();
	}
	_validateAdd(e) {
		let t = e.getType() === "Layer", n = e.getType() === "FastLayer";
		t || n || F.throw("You may only add layers to the stage.");
	}
	_checkVisibility() {
		if (!this.content) return;
		let e = this.visible() ? "" : "none";
		this.content.style.display = e;
	}
	setContainer(e) {
		if (typeof e === mn) {
			let t;
			if (e.charAt(0) === ".") {
				let t = e.slice(1);
				e = document.getElementsByClassName(t)[0];
			} else t = e.charAt(0) === "#" ? e.slice(1) : e, e = document.getElementById(t);
			if (!e) throw "Can not find container in document with id " + t;
		}
		return this._setAttr("container", e), this.content && (this.content.parentElement && this.content.parentElement.removeChild(this.content), e.appendChild(this.content)), this;
	}
	shouldDrawHit() {
		return !0;
	}
	clear() {
		let e = this.children, t = e.length;
		for (let n = 0; n < t; n++) e[n].clear();
		return this;
	}
	clone(e) {
		return e ||= {}, e.container = typeof document < "u" && document.createElement("div"), an.prototype.clone.call(this, e);
	}
	destroy() {
		super.destroy();
		let e = this.content;
		e && F._isInDocument(e) && this.container().removeChild(e);
		let t = Gn.indexOf(this);
		return t > -1 && Gn.splice(t, 1), F.releaseCanvas(this.bufferCanvas._canvas, this.bufferHitCanvas._canvas), this;
	}
	getPointerPosition() {
		let e = this._pointerPositions[0] || this._changedPointerPositions[0];
		return e ? {
			x: e.x,
			y: e.y
		} : (F.warn(Wn), null);
	}
	_getPointerById(e) {
		return this._pointerPositions.find((t) => t.id === e);
	}
	getPointersPositions() {
		return this._pointerPositions;
	}
	getStage() {
		return this;
	}
	getContent() {
		return this.content;
	}
	_toKonvaCanvas(e) {
		e = { ...e }, e.x = e.x || 0, e.y = e.y || 0, e.width = e.width || this.width(), e.height = e.height || this.height();
		let t = new yt({
			width: e.width,
			height: e.height,
			pixelRatio: e.pixelRatio || 1
		}), n = t.getContext()._context, r = this.children;
		return (e.x || e.y) && n.translate(-1 * e.x, -1 * e.y), r.forEach(function(t) {
			if (!t.isVisible()) return;
			let r = t._toKonvaCanvas(e);
			n.drawImage(r._canvas, e.x, e.y, r.getWidth() / r.getPixelRatio(), r.getHeight() / r.getPixelRatio());
		}), t;
	}
	getIntersection(e) {
		if (!e) return null;
		let t = this.children, n = t.length - 1;
		for (let r = n; r >= 0; r--) {
			let n = t[r].getIntersection(e);
			if (n) return n;
		}
		return null;
	}
	_resizeDOM() {
		let e = this.width(), t = this.height();
		this.content && (this.content.style.width = e + hn, this.content.style.height = t + hn), this.bufferCanvas.setSize(e, t), this.bufferHitCanvas.setSize(e, t), this.children.forEach((n) => {
			n.setSize({
				width: e,
				height: t
			}), n.draw();
		});
	}
	add(e, ...t) {
		if (arguments.length > 1) {
			for (let e = 0; e < arguments.length; e++) this.add(arguments[e]);
			return this;
		}
		super.add(e);
		let n = this.children.length;
		return n > Rn && F.warn("The stage has " + n + " layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."), e.setSize({
			width: this.width(),
			height: this.height()
		}), e.draw(), P.isBrowser && this.content.appendChild(e.canvas._canvas), this;
	}
	getParent() {
		return null;
	}
	getLayer() {
		return null;
	}
	hasPointerCapture(e) {
		return un(e, this);
	}
	setPointerCapture(e) {
		dn(e, this);
	}
	releaseCapture(e) {
		fn(e, this);
	}
	getLayers() {
		return this.children;
	}
	_bindContentEvents() {
		P.isBrowser && zn.forEach(([e, t]) => {
			this.content.addEventListener(e, (e) => {
				this[t](e);
			}, { passive: !1 });
		});
	}
	_pointerenter(e) {
		this.setPointersPositions(e);
		let t = Hn(e.type);
		t && this._fire(t.pointerenter, {
			evt: e,
			target: this,
			currentTarget: this
		});
	}
	_pointerover(e) {
		this.setPointersPositions(e);
		let t = Hn(e.type);
		t && this._fire(t.pointerover, {
			evt: e,
			target: this,
			currentTarget: this
		});
	}
	_getTargetShape(e) {
		let t = this[e + "targetShape"];
		return t && !t.getStage() && (t = null), t;
	}
	_pointerleave(e) {
		let t = Hn(e.type), n = Vn(e.type);
		if (!t) return;
		this.setPointersPositions(e);
		let r = this._getTargetShape(n), i = !(P.isDragging() || P.isTransforming()) || P.hitOnDragEnabled;
		r && i ? (r._fireAndBubble(t.pointerout, { evt: e }), r._fireAndBubble(t.pointerleave, { evt: e }), this._fire(t.pointerleave, {
			evt: e,
			target: this,
			currentTarget: this
		}), this[n + "targetShape"] = null) : i && (this._fire(t.pointerleave, {
			evt: e,
			target: this,
			currentTarget: this
		}), this._fire(t.pointerout, {
			evt: e,
			target: this,
			currentTarget: this
		})), this.pointerPos = null, this._pointerPositions = [];
	}
	_pointerdown(e) {
		let t = Hn(e.type), n = Vn(e.type);
		if (!t) return;
		this.setPointersPositions(e);
		let r = !1;
		this._changedPointerPositions.forEach((i) => {
			let a = this.getIntersection(i);
			if (L.justDragged = !1, P["_" + n + "ListenClick"] = !0, !a || !a.isListening()) {
				this[n + "ClickStartShape"] = void 0;
				return;
			}
			P.capturePointerEventsEnabled && a.setPointerCapture(i.id), this[n + "ClickStartShape"] = a, a._fireAndBubble(t.pointerdown, {
				evt: e,
				pointerId: i.id
			}), r = !0;
			let o = e.type.indexOf("touch") >= 0;
			a.preventDefault() && e.cancelable && o && e.preventDefault();
		}), r || this._fire(t.pointerdown, {
			evt: e,
			target: this,
			currentTarget: this,
			pointerId: this._pointerPositions[0].id
		});
	}
	_pointermove(e) {
		let t = Hn(e.type), n = Vn(e.type);
		if (!t) return;
		let r = e.type.indexOf("touch") >= 0 || e.pointerType === "touch";
		if (P.isDragging() && L.node.preventDefault() && e.cancelable && r && e.preventDefault(), this.setPointersPositions(e), !(!(P.isDragging() || P.isTransforming()) || P.hitOnDragEnabled)) return;
		let i = {}, a = !1, o = this._getTargetShape(n);
		this._changedPointerPositions.forEach((r) => {
			let s = cn(r.id) || this.getIntersection(r), c = r.id, l = {
				evt: e,
				pointerId: c
			}, u = o !== s;
			if (u && o && (o._fireAndBubble(t.pointerout, { ...l }, s), o._fireAndBubble(t.pointerleave, { ...l }, s)), s) {
				if (i[s._id]) return;
				i[s._id] = !0;
			}
			s && s.isListening() ? (a = !0, u && (s._fireAndBubble(t.pointerover, { ...l }, o), s._fireAndBubble(t.pointerenter, { ...l }, o), this[n + "targetShape"] = s), s._fireAndBubble(t.pointermove, { ...l })) : o && (this._fire(t.pointerover, {
				evt: e,
				target: this,
				currentTarget: this,
				pointerId: c
			}), this[n + "targetShape"] = null);
		}), a || this._fire(t.pointermove, {
			evt: e,
			target: this,
			currentTarget: this,
			pointerId: this._changedPointerPositions[0].id
		});
	}
	_pointerup(e) {
		let t = Hn(e.type), n = Vn(e.type);
		if (!t) return;
		this.setPointersPositions(e);
		let r = this[n + "ClickStartShape"], i = this[n + "ClickEndShape"], a = {}, o = !1;
		this._changedPointerPositions.forEach((s) => {
			let c = cn(s.id) || this.getIntersection(s);
			if (c) {
				if (c.releaseCapture(s.id), a[c._id]) return;
				a[c._id] = !0;
			}
			let l = s.id, u = {
				evt: e,
				pointerId: l
			}, d = !1;
			P["_" + n + "InDblClickWindow"] ? (d = !0, clearTimeout(this[n + "DblTimeout"])) : L.justDragged || (P["_" + n + "InDblClickWindow"] = !0, clearTimeout(this[n + "DblTimeout"])), this[n + "DblTimeout"] = setTimeout(function() {
				P["_" + n + "InDblClickWindow"] = !1;
			}, P.dblClickWindow), c && c.isListening() ? (o = !0, this[n + "ClickEndShape"] = c, c._fireAndBubble(t.pointerup, { ...u }), P["_" + n + "ListenClick"] && r && r === c && (c._fireAndBubble(t.pointerclick, { ...u }), d && i && i === c && c._fireAndBubble(t.pointerdblclick, { ...u }))) : (this[n + "ClickEndShape"] = null, o ||= (this._fire(t.pointerup, {
				evt: e,
				target: this,
				currentTarget: this,
				pointerId: this._changedPointerPositions[0].id
			}), !0), P["_" + n + "ListenClick"] && this._fire(t.pointerclick, {
				evt: e,
				target: this,
				currentTarget: this,
				pointerId: l
			}), d && this._fire(t.pointerdblclick, {
				evt: e,
				target: this,
				currentTarget: this,
				pointerId: l
			}));
		}), o || this._fire(t.pointerup, {
			evt: e,
			target: this,
			currentTarget: this,
			pointerId: this._changedPointerPositions[0].id
		}), P["_" + n + "ListenClick"] = !1, e.cancelable && n !== "touch" && n !== "pointer" && e.preventDefault();
	}
	_contextmenu(e) {
		this.setPointersPositions(e);
		let t = this.getIntersection(this.getPointerPosition());
		t && t.isListening() ? t._fireAndBubble(Mn, { evt: e }) : this._fire(Mn, {
			evt: e,
			target: this,
			currentTarget: this
		});
	}
	_wheel(e) {
		this.setPointersPositions(e);
		let t = this.getIntersection(this.getPointerPosition());
		t && t.isListening() ? t._fireAndBubble(Ln, { evt: e }) : this._fire(Ln, {
			evt: e,
			target: this,
			currentTarget: this
		});
	}
	_pointercancel(e) {
		this.setPointersPositions(e);
		let t = cn(e.pointerId) || this.getIntersection(this.getPointerPosition());
		t && t._fireAndBubble(Tn, ln(e)), fn(e.pointerId);
	}
	_lostpointercapture(e) {
		fn(e.pointerId);
	}
	setPointersPositions(e) {
		let t = this._getContentPosition(), n = null, r = null;
		e ||= window.event, e.touches === void 0 ? (n = (e.clientX - t.left) / t.scaleX, r = (e.clientY - t.top) / t.scaleY, this.pointerPos = {
			x: n,
			y: r
		}, this._pointerPositions = [{
			x: n,
			y: r,
			id: F._getFirstPointerId(e)
		}], this._changedPointerPositions = [{
			x: n,
			y: r,
			id: F._getFirstPointerId(e)
		}]) : (this._pointerPositions = [], this._changedPointerPositions = [], Array.prototype.forEach.call(e.touches, (e) => {
			this._pointerPositions.push({
				id: e.identifier,
				x: (e.clientX - t.left) / t.scaleX,
				y: (e.clientY - t.top) / t.scaleY
			});
		}), Array.prototype.forEach.call(e.changedTouches || e.touches, (e) => {
			this._changedPointerPositions.push({
				id: e.identifier,
				x: (e.clientX - t.left) / t.scaleX,
				y: (e.clientY - t.top) / t.scaleY
			});
		}));
	}
	_setPointerPosition(e) {
		F.warn("Method _setPointerPosition is deprecated. Use \"stage.setPointersPositions(event)\" instead."), this.setPointersPositions(e);
	}
	_getContentPosition() {
		if (!this.content || !this.content.getBoundingClientRect) return {
			top: 0,
			left: 0,
			scaleX: 1,
			scaleY: 1
		};
		let e = this.content.getBoundingClientRect();
		return {
			top: e.top,
			left: e.left,
			scaleX: e.width / this.content.clientWidth || 1,
			scaleY: e.height / this.content.clientHeight || 1
		};
	}
	_buildDOM() {
		if (this.bufferCanvas = new yt({
			width: this.width(),
			height: this.height()
		}), this.bufferHitCanvas = new bt({
			pixelRatio: 1,
			width: this.width(),
			height: this.height()
		}), !P.isBrowser) return;
		let e = this.container();
		if (!e) throw "Stage has no container. A container is required.";
		e.innerHTML = "", this.content = document.createElement("div"), this.content.style.position = "relative", this.content.style.userSelect = "none", this.content.className = "konvajs-content", this.content.setAttribute("role", "presentation"), e.appendChild(this.content), this._resizeDOM();
	}
	cache() {
		return F.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."), this;
	}
	clearCache() {
		return this;
	}
	batchDraw() {
		return this.getChildren().forEach(function(e) {
			e.batchDraw();
		}), this;
	}
};
Kn.prototype.nodeType = pn, Ne(Kn), z.addGetterSetter(Kn, "container"), P.isBrowser && document.addEventListener("visibilitychange", () => {
	Gn.forEach((e) => {
		e.batchDraw();
	});
});
//#endregion
//#region ../node_modules/konva/lib/Shape.js
var qn = "hasShadow", Jn = "shadowRGBA", Yn = "patternImage", Xn = "linearGradient", Zn = "radialGradient", Qn;
function $n() {
	return Qn || (Qn = F.createCanvasElement().getContext("2d"), Qn);
}
var er = {};
function tr(e) {
	let t = this.attrs.fillRule;
	t ? e.fill(t) : e.fill();
}
function nr(e) {
	e.stroke();
}
function rr(e) {
	let t = this.attrs.fillRule;
	t ? e.fill(t) : e.fill();
}
function ir(e) {
	e.stroke();
}
function ar() {
	this._clearCache(qn);
}
function or() {
	this._clearCache(Jn);
}
function sr() {
	this._clearCache(Yn);
}
function cr() {
	this._clearCache(Xn);
}
function lr() {
	this._clearCache(Zn);
}
var V = class extends B {
	constructor(e) {
		super(e);
		let t, n = 0;
		for (; t = F.getHitColor(), !(t && !(t in er));) if (n++, n >= 1e4) {
			F.warn("Failed to find a unique color key for a shape. Konva may work incorrectly. Most likely your browser is using canvas farbling. Consider disabling it."), t = F.getRandomColor();
			break;
		}
		this.colorKey = t, er[t] = this;
	}
	getContext() {
		return F.warn("shape.getContext() method is deprecated. Please do not use it."), this.getLayer().getContext();
	}
	getCanvas() {
		return F.warn("shape.getCanvas() method is deprecated. Please do not use it."), this.getLayer().getCanvas();
	}
	getSceneFunc() {
		return this.attrs.sceneFunc || this._sceneFunc;
	}
	getHitFunc() {
		return this.attrs.hitFunc || this._hitFunc;
	}
	hasShadow() {
		return this._getCache(qn, this._hasShadow);
	}
	_hasShadow() {
		return this.shadowEnabled() && this.shadowOpacity() !== 0 && !!(this.shadowColor() || this.shadowBlur() || this.shadowOffsetX() || this.shadowOffsetY());
	}
	_getFillPattern() {
		return this._getCache(Yn, this.__getFillPattern);
	}
	__getFillPattern() {
		if (this.fillPatternImage()) {
			let e = $n().createPattern(this.fillPatternImage(), this.fillPatternRepeat() || "repeat");
			if (e && e.setTransform) {
				let t = new Ie();
				t.translate(this.fillPatternX(), this.fillPatternY()), t.rotate(P.getAngle(this.fillPatternRotation())), t.scale(this.fillPatternScaleX(), this.fillPatternScaleY()), t.translate(-1 * this.fillPatternOffsetX(), -1 * this.fillPatternOffsetY());
				let n = t.getMatrix(), r = typeof DOMMatrix > "u" ? {
					a: n[0],
					b: n[1],
					c: n[2],
					d: n[3],
					e: n[4],
					f: n[5]
				} : new DOMMatrix(n);
				e.setTransform(r);
			}
			return e;
		}
	}
	_getLinearGradient() {
		return this._getCache(Xn, this.__getLinearGradient);
	}
	__getLinearGradient() {
		let e = this.fillLinearGradientColorStops();
		if (e) {
			let t = $n(), n = this.fillLinearGradientStartPoint(), r = this.fillLinearGradientEndPoint(), i = t.createLinearGradient(n.x, n.y, r.x, r.y);
			for (let t = 0; t < e.length; t += 2) i.addColorStop(e[t], e[t + 1]);
			return i;
		}
	}
	_getRadialGradient() {
		return this._getCache(Zn, this.__getRadialGradient);
	}
	__getRadialGradient() {
		let e = this.fillRadialGradientColorStops();
		if (e) {
			let t = $n(), n = this.fillRadialGradientStartPoint(), r = this.fillRadialGradientEndPoint(), i = t.createRadialGradient(n.x, n.y, this.fillRadialGradientStartRadius(), r.x, r.y, this.fillRadialGradientEndRadius());
			for (let t = 0; t < e.length; t += 2) i.addColorStop(e[t], e[t + 1]);
			return i;
		}
	}
	getShadowRGBA() {
		return this._getCache(Jn, this._getShadowRGBA);
	}
	_getShadowRGBA() {
		if (!this.hasShadow()) return;
		let e = F.colorToRGBA(this.shadowColor());
		if (e) return "rgba(" + e.r + "," + e.g + "," + e.b + "," + e.a * (this.shadowOpacity() || 1) + ")";
	}
	hasFill() {
		return this._calculate("hasFill", [
			"fillEnabled",
			"fill",
			"fillPatternImage",
			"fillLinearGradientColorStops",
			"fillRadialGradientColorStops"
		], () => this.fillEnabled() && !!(this.fill() || this.fillPatternImage() || this.fillLinearGradientColorStops() || this.fillRadialGradientColorStops()));
	}
	hasStroke() {
		return this._calculate("hasStroke", [
			"strokeEnabled",
			"strokeWidth",
			"stroke",
			"strokeLinearGradientColorStops"
		], () => this.strokeEnabled() && this.strokeWidth() && !!(this.stroke() || this.strokeLinearGradientColorStops()));
	}
	hasHitStroke() {
		let e = this.hitStrokeWidth();
		return e === "auto" ? this.hasStroke() : this.strokeEnabled() && !!e;
	}
	intersects(e) {
		let t = this.getStage();
		if (!t) return !1;
		let n = t.bufferHitCanvas;
		return n.getContext().clear(), this.drawHit(n, void 0, !0), n.context.getImageData(Math.round(e.x), Math.round(e.y), 1, 1).data[3] > 0;
	}
	destroy() {
		return B.prototype.destroy.call(this), delete er[this.colorKey], delete this.colorKey, this;
	}
	_useBufferCanvas(e) {
		if (!(this.attrs.perfectDrawEnabled ?? !0)) return !1;
		let t = e || this.hasFill(), n = this.hasStroke(), r = this.getAbsoluteOpacity() !== 1;
		if (t && n && r) return !0;
		let i = this.hasShadow(), a = this.shadowForStrokeEnabled();
		return !!(t && n && i && a);
	}
	setStrokeHitEnabled(e) {
		F.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."), e ? this.hitStrokeWidth("auto") : this.hitStrokeWidth(0);
	}
	getStrokeHitEnabled() {
		return this.hitStrokeWidth() !== 0;
	}
	getSelfRect() {
		let e = this.size();
		return {
			x: this._centroid ? -e.width / 2 : 0,
			y: this._centroid ? -e.height / 2 : 0,
			width: e.width,
			height: e.height
		};
	}
	getClientRect(e = {}) {
		let t = !1, n = this.getParent();
		for (; n;) {
			if (n.isCached()) {
				t = !0;
				break;
			}
			n = n.getParent();
		}
		let r = e.skipTransform, i = e.relativeTo || t && this.getStage() || void 0, a = this.getSelfRect(), o = !e.skipStroke && this.hasStroke() && this.strokeWidth() || 0, s = a.width + o, c = a.height + o, l = !e.skipShadow && this.hasShadow(), u = l ? this.shadowOffsetX() : 0, d = l ? this.shadowOffsetY() : 0, f = s + Math.abs(u), p = c + Math.abs(d), m = l && this.shadowBlur() || 0, h = {
			width: f + m * 2,
			height: p + m * 2,
			x: -(o / 2 + m) + Math.min(u, 0) + a.x,
			y: -(o / 2 + m) + Math.min(d, 0) + a.y
		};
		return r ? h : this._transformedRect(h, i);
	}
	drawScene(e, t, n) {
		let r = this.getLayer(), i = (e || r.getCanvas()).getContext(), a = this._getCanvasCache(), o = this.getSceneFunc(), s = this.hasShadow(), c, l = t === this;
		if (!this.isVisible() && !l) return this;
		if (a) {
			i.save();
			let e = this.getAbsoluteTransform(t).getMatrix();
			return i.transform(e[0], e[1], e[2], e[3], e[4], e[5]), this._drawCachedSceneCanvas(i), i.restore(), this;
		}
		if (!o) return this;
		if (i.save(), this._useBufferCanvas()) {
			c = this.getStage();
			let e = n || c.bufferCanvas, r = e.getContext();
			n ? (r.save(), r.setTransform(1, 0, 0, 1, 0, 0), r.clearRect(0, 0, e.width, e.height), r.restore()) : r.clear(), r.save(), r._applyLineJoin(this), r._applyMiterLimit(this);
			let a = this.getAbsoluteTransform(t).getMatrix();
			r.transform(a[0], a[1], a[2], a[3], a[4], a[5]), o.call(this, r, this), r.restore();
			let u = e.pixelRatio;
			s && i._applyShadow(this), l || (i._applyOpacity(this), i._applyGlobalCompositeOperation(this)), i.drawImage(e._canvas, e.x || 0, e.y || 0, e.width / u, e.height / u);
		} else {
			if (i._applyLineJoin(this), i._applyMiterLimit(this), !l) {
				let e = this.getAbsoluteTransform(t).getMatrix();
				i.transform(e[0], e[1], e[2], e[3], e[4], e[5]), i._applyOpacity(this), i._applyGlobalCompositeOperation(this);
			}
			s && i._applyShadow(this), o.call(this, i, this);
		}
		return i.restore(), this;
	}
	drawHit(e, t, n = !1) {
		if (!this.shouldDrawHit(t, n)) return this;
		let r = this.getLayer(), i = e || r.hitCanvas, a = i && i.getContext(), o = this.hitFunc() || this.sceneFunc(), s = this._getCanvasCache(), c = s && s.hit;
		if (this.colorKey || F.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"), c) {
			a.save();
			let e = this.getAbsoluteTransform(t).getMatrix();
			return a.transform(e[0], e[1], e[2], e[3], e[4], e[5]), this._drawCachedHitCanvas(a), a.restore(), this;
		}
		if (!o) return this;
		if (a.save(), a._applyLineJoin(this), a._applyMiterLimit(this), this !== t) {
			let e = this.getAbsoluteTransform(t).getMatrix();
			a.transform(e[0], e[1], e[2], e[3], e[4], e[5]);
		}
		return o.call(this, a, this), a.restore(), this;
	}
	drawHitFromCache(e = 0) {
		let t = this._getCanvasCache(), n = this._getCachedSceneCanvas(), r = t.hit, i = r.getContext(), a = r.getWidth(), o = r.getHeight();
		i.clear(), i.drawImage(n._canvas, 0, 0, a, o);
		try {
			let t = i.getImageData(0, 0, a, o), n = t.data, r = n.length, s = F._hexToRgb(this.colorKey);
			for (let t = 0; t < r; t += 4) n[t + 3] > e ? (n[t] = s.r, n[t + 1] = s.g, n[t + 2] = s.b, n[t + 3] = 255) : n[t + 3] = 0;
			i.putImageData(t, 0, 0);
		} catch (e) {
			F.error("Unable to draw hit graph from cached scene canvas. " + e.message);
		}
		return this;
	}
	hasPointerCapture(e) {
		return un(e, this);
	}
	setPointerCapture(e) {
		dn(e, this);
	}
	releaseCapture(e) {
		fn(e, this);
	}
};
V.prototype._fillFunc = tr, V.prototype._strokeFunc = nr, V.prototype._fillFuncHit = rr, V.prototype._strokeFuncHit = ir, V.prototype._centroid = !1, V.prototype.nodeType = "Shape", Ne(V), V.prototype.eventListeners = {}, V.prototype.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", ar), V.prototype.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", or), V.prototype.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva", sr), V.prototype.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva", cr), V.prototype.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva", lr), z.addGetterSetter(V, "stroke", void 0, Et()), z.addGetterSetter(V, "strokeWidth", 2, R()), z.addGetterSetter(V, "fillAfterStrokeEnabled", !1), z.addGetterSetter(V, "hitStrokeWidth", "auto", wt()), z.addGetterSetter(V, "strokeHitEnabled", !0, Ot()), z.addGetterSetter(V, "perfectDrawEnabled", !0, Ot()), z.addGetterSetter(V, "shadowForStrokeEnabled", !0, Ot()), z.addGetterSetter(V, "lineJoin"), z.addGetterSetter(V, "lineCap"), z.addGetterSetter(V, "miterLimit"), z.addGetterSetter(V, "sceneFunc"), z.addGetterSetter(V, "hitFunc"), z.addGetterSetter(V, "dash"), z.addGetterSetter(V, "dashOffset", 0, R()), z.addGetterSetter(V, "shadowColor", void 0, Tt()), z.addGetterSetter(V, "shadowBlur", 0, R()), z.addGetterSetter(V, "shadowOpacity", 1, R()), z.addComponentsGetterSetter(V, "shadowOffset", ["x", "y"]), z.addGetterSetter(V, "shadowOffsetX", 0, R()), z.addGetterSetter(V, "shadowOffsetY", 0, R()), z.addGetterSetter(V, "fillPatternImage"), z.addGetterSetter(V, "fill", void 0, Et()), z.addGetterSetter(V, "fillPatternX", 0, R()), z.addGetterSetter(V, "fillPatternY", 0, R()), z.addGetterSetter(V, "fillLinearGradientColorStops"), z.addGetterSetter(V, "strokeLinearGradientColorStops"), z.addGetterSetter(V, "fillRadialGradientStartRadius", 0), z.addGetterSetter(V, "fillRadialGradientEndRadius", 0), z.addGetterSetter(V, "fillRadialGradientColorStops"), z.addGetterSetter(V, "fillPatternRepeat", "repeat"), z.addGetterSetter(V, "fillEnabled", !0), z.addGetterSetter(V, "strokeEnabled", !0), z.addGetterSetter(V, "shadowEnabled", !0), z.addGetterSetter(V, "dashEnabled", !0), z.addGetterSetter(V, "strokeScaleEnabled", !0), z.addGetterSetter(V, "fillPriority", "color"), z.addComponentsGetterSetter(V, "fillPatternOffset", ["x", "y"]), z.addGetterSetter(V, "fillPatternOffsetX", 0, R()), z.addGetterSetter(V, "fillPatternOffsetY", 0, R()), z.addComponentsGetterSetter(V, "fillPatternScale", ["x", "y"]), z.addGetterSetter(V, "fillPatternScaleX", 1, R()), z.addGetterSetter(V, "fillPatternScaleY", 1, R()), z.addComponentsGetterSetter(V, "fillLinearGradientStartPoint", ["x", "y"]), z.addComponentsGetterSetter(V, "strokeLinearGradientStartPoint", ["x", "y"]), z.addGetterSetter(V, "fillLinearGradientStartPointX", 0), z.addGetterSetter(V, "strokeLinearGradientStartPointX", 0), z.addGetterSetter(V, "fillLinearGradientStartPointY", 0), z.addGetterSetter(V, "strokeLinearGradientStartPointY", 0), z.addComponentsGetterSetter(V, "fillLinearGradientEndPoint", ["x", "y"]), z.addComponentsGetterSetter(V, "strokeLinearGradientEndPoint", ["x", "y"]), z.addGetterSetter(V, "fillLinearGradientEndPointX", 0), z.addGetterSetter(V, "strokeLinearGradientEndPointX", 0), z.addGetterSetter(V, "fillLinearGradientEndPointY", 0), z.addGetterSetter(V, "strokeLinearGradientEndPointY", 0), z.addComponentsGetterSetter(V, "fillRadialGradientStartPoint", ["x", "y"]), z.addGetterSetter(V, "fillRadialGradientStartPointX", 0), z.addGetterSetter(V, "fillRadialGradientStartPointY", 0), z.addComponentsGetterSetter(V, "fillRadialGradientEndPoint", ["x", "y"]), z.addGetterSetter(V, "fillRadialGradientEndPointX", 0), z.addGetterSetter(V, "fillRadialGradientEndPointY", 0), z.addGetterSetter(V, "fillPatternRotation", 0), z.addGetterSetter(V, "fillRule", void 0, Tt()), z.backCompat(V, {
	dashArray: "dash",
	getDashArray: "getDash",
	setDashArray: "getDash",
	drawFunc: "sceneFunc",
	getDrawFunc: "getSceneFunc",
	setDrawFunc: "setSceneFunc",
	drawHitFunc: "hitFunc",
	getDrawHitFunc: "getHitFunc",
	setDrawHitFunc: "setHitFunc"
});
//#endregion
//#region ../node_modules/konva/lib/Layer.js
var ur = "beforeDraw", dr = "draw", fr = [
	{
		x: 0,
		y: 0
	},
	{
		x: -1,
		y: -1
	},
	{
		x: 1,
		y: -1
	},
	{
		x: 1,
		y: 1
	},
	{
		x: -1,
		y: 1
	}
], pr = fr.length, mr = class extends an {
	constructor(e) {
		super(e), this.canvas = new yt(), this.hitCanvas = new bt({ pixelRatio: 1 }), this._waitingForDraw = !1, this.on("visibleChange.konva", this._checkVisibility), this._checkVisibility(), this.on("imageSmoothingEnabledChange.konva", this._setSmoothEnabled), this._setSmoothEnabled();
	}
	createPNGStream() {
		return this.canvas._canvas.createPNGStream();
	}
	getCanvas() {
		return this.canvas;
	}
	getNativeCanvasElement() {
		return this.canvas._canvas;
	}
	getHitCanvas() {
		return this.hitCanvas;
	}
	getContext() {
		return this.getCanvas().getContext();
	}
	clear(e) {
		return this.getContext().clear(e), this.getHitCanvas().getContext().clear(e), this;
	}
	setZIndex(e) {
		super.setZIndex(e);
		let t = this.getStage();
		return t && t.content && (t.content.removeChild(this.getNativeCanvasElement()), e < t.children.length - 1 ? t.content.insertBefore(this.getNativeCanvasElement(), t.children[e + 1].getCanvas()._canvas) : t.content.appendChild(this.getNativeCanvasElement())), this;
	}
	moveToTop() {
		B.prototype.moveToTop.call(this);
		let e = this.getStage();
		return e && e.content && (e.content.removeChild(this.getNativeCanvasElement()), e.content.appendChild(this.getNativeCanvasElement())), !0;
	}
	moveUp() {
		if (!B.prototype.moveUp.call(this)) return !1;
		let e = this.getStage();
		return !e || !e.content ? !1 : (e.content.removeChild(this.getNativeCanvasElement()), this.index < e.children.length - 1 ? e.content.insertBefore(this.getNativeCanvasElement(), e.children[this.index + 1].getCanvas()._canvas) : e.content.appendChild(this.getNativeCanvasElement()), !0);
	}
	moveDown() {
		if (B.prototype.moveDown.call(this)) {
			let e = this.getStage();
			if (e) {
				let t = e.children;
				e.content && (e.content.removeChild(this.getNativeCanvasElement()), e.content.insertBefore(this.getNativeCanvasElement(), t[this.index + 1].getCanvas()._canvas));
			}
			return !0;
		}
		return !1;
	}
	moveToBottom() {
		if (B.prototype.moveToBottom.call(this)) {
			let e = this.getStage();
			if (e) {
				let t = e.children;
				e.content && (e.content.removeChild(this.getNativeCanvasElement()), e.content.insertBefore(this.getNativeCanvasElement(), t[1].getCanvas()._canvas));
			}
			return !0;
		}
		return !1;
	}
	getLayer() {
		return this;
	}
	remove() {
		let e = this.getNativeCanvasElement();
		return B.prototype.remove.call(this), e && e.parentNode && F._isInDocument(e) && e.parentNode.removeChild(e), this;
	}
	getStage() {
		return this.parent;
	}
	setSize({ width: e, height: t }) {
		return this.canvas.setSize(e, t), this.hitCanvas.setSize(e, t), this._setSmoothEnabled(), this;
	}
	_validateAdd(e) {
		let t = e.getType();
		t !== "Group" && t !== "Shape" && F.throw("You may only add groups and shapes to a layer.");
	}
	_toKonvaCanvas(e) {
		return e = { ...e }, e.width = e.width || this.getWidth(), e.height = e.height || this.getHeight(), e.x = e.x === void 0 ? this.x() : e.x, e.y = e.y === void 0 ? this.y() : e.y, B.prototype._toKonvaCanvas.call(this, e);
	}
	_checkVisibility() {
		this.visible() ? this.canvas._canvas.style.display = "block" : this.canvas._canvas.style.display = "none";
	}
	_setSmoothEnabled() {
		this.getContext()._context.imageSmoothingEnabled = this.imageSmoothingEnabled();
	}
	getWidth() {
		if (this.parent) return this.parent.width();
	}
	setWidth() {
		F.warn("Can not change width of layer. Use \"stage.width(value)\" function instead.");
	}
	getHeight() {
		if (this.parent) return this.parent.height();
	}
	setHeight() {
		F.warn("Can not change height of layer. Use \"stage.height(value)\" function instead.");
	}
	batchDraw() {
		return this._waitingForDraw || (this._waitingForDraw = !0, F.requestAnimFrame(() => {
			this.draw(), this._waitingForDraw = !1;
		})), this;
	}
	getIntersection(e) {
		if (!this.isListening() || !this.isVisible()) return null;
		let t = 1, n = !1;
		for (;;) {
			for (let r = 0; r < pr; r++) {
				let i = fr[r], a = this._getIntersection({
					x: e.x + i.x * t,
					y: e.y + i.y * t
				}), o = a.shape;
				if (o) return o;
				if (n = !!a.antialiased, !a.antialiased) break;
			}
			if (n) t += 1;
			else return null;
		}
	}
	_getIntersection(e) {
		let t = this.hitCanvas.pixelRatio, n = this.hitCanvas.context.getImageData(Math.round(e.x * t), Math.round(e.y * t), 1, 1).data, r = n[3];
		if (r === 255) {
			let e = er[F.getHitColorKey(n[0], n[1], n[2])];
			return e ? { shape: e } : { antialiased: !0 };
		} else if (r > 0) return { antialiased: !0 };
		return {};
	}
	drawScene(e, t, n) {
		let r = this.getLayer(), i = e || r && r.getCanvas();
		return this._fire(ur, { node: this }), this.clearBeforeDraw() && i.getContext().clear(), an.prototype.drawScene.call(this, i, t, n), this._fire(dr, { node: this }), this;
	}
	drawHit(e, t) {
		let n = this.getLayer(), r = e || n && n.hitCanvas;
		return n && n.clearBeforeDraw() && n.getHitCanvas().getContext().clear(), an.prototype.drawHit.call(this, r, t), this;
	}
	enableHitGraph() {
		return this.hitGraphEnabled(!0), this;
	}
	disableHitGraph() {
		return this.hitGraphEnabled(!1), this;
	}
	setHitGraphEnabled(e) {
		F.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."), this.listening(e);
	}
	getHitGraphEnabled(e) {
		return F.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."), this.listening();
	}
	toggleHitCanvas() {
		if (!this.parent || !this.parent.content) return;
		let e = this.parent;
		this.hitCanvas._canvas.parentNode ? e.content.removeChild(this.hitCanvas._canvas) : e.content.appendChild(this.hitCanvas._canvas);
	}
	destroy() {
		return F.releaseCanvas(this.getNativeCanvasElement(), this.getHitCanvas()._canvas), super.destroy();
	}
};
mr.prototype.nodeType = "Layer", Ne(mr), z.addGetterSetter(mr, "imageSmoothingEnabled", !0), z.addGetterSetter(mr, "clearBeforeDraw", !0), z.addGetterSetter(mr, "hitGraphEnabled", !0, Ot());
//#endregion
//#region ../node_modules/konva/lib/FastLayer.js
var H = class extends mr {
	constructor(e) {
		super(e), this.listening(!1), F.warn("Konva.Fast layer is deprecated. Please use \"new Konva.Layer({ listening: false })\" instead.");
	}
};
H.prototype.nodeType = "FastLayer", Ne(H);
//#endregion
//#region ../node_modules/konva/lib/Group.js
var hr = class extends an {
	_validateAdd(e) {
		let t = e.getType();
		t !== "Group" && t !== "Shape" && F.throw("You may only add groups and shapes to groups.");
	}
};
hr.prototype.nodeType = "Group", Ne(hr);
//#endregion
//#region ../node_modules/konva/lib/Animation.js
var gr = (function() {
	return Me.performance && Me.performance.now ? function() {
		return Me.performance.now();
	} : function() {
		return (/* @__PURE__ */ new Date()).getTime();
	};
})(), _r = class e {
	constructor(t, n) {
		this.id = e.animIdCounter++, this.frame = {
			time: 0,
			timeDiff: 0,
			lastTime: gr(),
			frameRate: 0
		}, this.func = t, this.setLayers(n);
	}
	setLayers(e) {
		let t = [];
		return e && (t = Array.isArray(e) ? e : [e]), this.layers = t, this;
	}
	getLayers() {
		return this.layers;
	}
	addLayer(e) {
		let t = this.layers, n = t.length;
		for (let r = 0; r < n; r++) if (t[r]._id === e._id) return !1;
		return this.layers.push(e), !0;
	}
	isRunning() {
		let t = e.animations, n = t.length;
		for (let e = 0; e < n; e++) if (t[e].id === this.id) return !0;
		return !1;
	}
	start() {
		return this.stop(), this.frame.timeDiff = 0, this.frame.lastTime = gr(), e._addAnimation(this), this;
	}
	stop() {
		return e._removeAnimation(this), this;
	}
	_updateFrameObject(e) {
		this.frame.timeDiff = e - this.frame.lastTime, this.frame.lastTime = e, this.frame.time += this.frame.timeDiff, this.frame.frameRate = 1e3 / this.frame.timeDiff;
	}
	static _addAnimation(e) {
		this.animations.push(e), this._handleAnimation();
	}
	static _removeAnimation(e) {
		let t = e.id, n = this.animations, r = n.length;
		for (let e = 0; e < r; e++) if (n[e].id === t) {
			this.animations.splice(e, 1);
			break;
		}
	}
	static _runFrames() {
		let e = {}, t = this.animations;
		for (let n = 0; n < t.length; n++) {
			let r = t[n], i = r.layers, a = r.func;
			r._updateFrameObject(gr());
			let o = i.length, s;
			if (s = a ? a.call(r, r.frame) !== !1 : !0, s) for (let t = 0; t < o; t++) {
				let n = i[t];
				n._id !== void 0 && (e[n._id] = n);
			}
		}
		for (let t in e) e.hasOwnProperty(t) && e[t].batchDraw();
	}
	static _animationLoop() {
		let t = e;
		t.animations.length ? (t._runFrames(), F.requestAnimFrame(t._animationLoop)) : t.animRunning = !1;
	}
	static _handleAnimation() {
		this.animRunning || (this.animRunning = !0, F.requestAnimFrame(this._animationLoop));
	}
};
_r.animations = [], _r.animIdCounter = 0, _r.animRunning = !1;
//#endregion
//#region ../node_modules/konva/lib/Tween.js
var vr = {
	node: 1,
	duration: 1,
	easing: 1,
	onFinish: 1,
	yoyo: 1
}, yr = 1, br = 2, xr = 3, Sr = [
	"fill",
	"stroke",
	"shadowColor"
], Cr = 0, wr = class {
	constructor(e, t, n, r, i, a, o) {
		this.prop = e, this.propFunc = t, this.begin = r, this._pos = r, this.duration = a, this._change = 0, this.prevPos = 0, this.yoyo = o, this._time = 0, this._position = 0, this._startTime = 0, this._finish = 0, this.func = n, this._change = i - this.begin, this.pause();
	}
	fire(e) {
		let t = this[e];
		t && t();
	}
	setTime(e) {
		e > this.duration ? this.yoyo ? (this._time = this.duration, this.reverse()) : this.finish() : e < 0 ? this.yoyo ? (this._time = 0, this.play()) : this.reset() : (this._time = e, this.update());
	}
	getTime() {
		return this._time;
	}
	setPosition(e) {
		this.prevPos = this._pos, this.propFunc(e), this._pos = e;
	}
	getPosition(e) {
		return e === void 0 && (e = this._time), this.func(e, this.begin, this._change, this.duration);
	}
	play() {
		this.state = br, this._startTime = this.getTimer() - this._time, this.onEnterFrame(), this.fire("onPlay");
	}
	reverse() {
		this.state = xr, this._time = this.duration - this._time, this._startTime = this.getTimer() - this._time, this.onEnterFrame(), this.fire("onReverse");
	}
	seek(e) {
		this.pause(), this._time = e, this.update(), this.fire("onSeek");
	}
	reset() {
		this.pause(), this._time = 0, this.update(), this.fire("onReset");
	}
	finish() {
		this.pause(), this._time = this.duration, this.update(), this.fire("onFinish");
	}
	update() {
		this.setPosition(this.getPosition(this._time)), this.fire("onUpdate");
	}
	onEnterFrame() {
		let e = this.getTimer() - this._startTime;
		this.state === br ? this.setTime(e) : this.state === xr && this.setTime(this.duration - e);
	}
	pause() {
		this.state = yr, this.fire("onPause");
	}
	getTimer() {
		return (/* @__PURE__ */ new Date()).getTime();
	}
}, Tr = class e {
	constructor(t) {
		let n = this, r = t.node, i = r._id, a = t.easing || Er.Linear, o = !!t.yoyo, s, c;
		s = t.duration === void 0 ? .3 : t.duration === 0 ? .001 : t.duration, this.node = r, this._id = Cr++;
		let l = r.getLayer() || (r instanceof P.Stage ? r.getLayers() : null);
		for (c in l || F.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."), this.anim = new _r(function() {
			n.tween.onEnterFrame();
		}, l), this.tween = new wr(c, function(e) {
			n._tweenFunc(e);
		}, a, 0, 1, s * 1e3, o), this._addListeners(), e.attrs[i] || (e.attrs[i] = {}), e.attrs[i][this._id] || (e.attrs[i][this._id] = {}), e.tweens[i] || (e.tweens[i] = {}), t) vr[c] === void 0 && this._addAttr(c, t[c]);
		this.reset(), this.onFinish = t.onFinish, this.onReset = t.onReset, this.onUpdate = t.onUpdate;
	}
	_addAttr(t, n) {
		let r = this.node, i = r._id, a, o, s, c, l, u = e.tweens[i][t];
		u && delete e.attrs[i][u][t];
		let d = r.getAttr(t);
		if (F._isArray(n)) if (a = [], o = Math.max(n.length, d.length), t === "points" && n.length !== d.length && (n.length > d.length ? (c = d, d = F._prepareArrayForTween(d, n, r.closed())) : (s = n, n = F._prepareArrayForTween(n, d, r.closed()))), t.indexOf("fill") === 0) for (let e = 0; e < o; e++) if (e % 2 == 0) a.push(n[e] - d[e]);
		else {
			let t = F.colorToRGBA(d[e]);
			l = F.colorToRGBA(n[e]), d[e] = t, a.push({
				r: l.r - t.r,
				g: l.g - t.g,
				b: l.b - t.b,
				a: l.a - t.a
			});
		}
		else for (let e = 0; e < o; e++) a.push(n[e] - d[e]);
		else Sr.indexOf(t) === -1 ? a = n - d : (d = F.colorToRGBA(d), l = F.colorToRGBA(n), a = {
			r: l.r - d.r,
			g: l.g - d.g,
			b: l.b - d.b,
			a: l.a - d.a
		});
		e.attrs[i][this._id][t] = {
			start: d,
			diff: a,
			end: n,
			trueEnd: s,
			trueStart: c
		}, e.tweens[i][t] = this._id;
	}
	_tweenFunc(t) {
		let n = this.node, r = e.attrs[n._id][this._id], i, a, o, s, c, l, u, d;
		for (i in r) {
			if (a = r[i], o = a.start, s = a.diff, d = a.end, F._isArray(o)) if (c = [], u = Math.max(o.length, d.length), i.indexOf("fill") === 0) for (l = 0; l < u; l++) l % 2 == 0 ? c.push((o[l] || 0) + s[l] * t) : c.push("rgba(" + Math.round(o[l].r + s[l].r * t) + "," + Math.round(o[l].g + s[l].g * t) + "," + Math.round(o[l].b + s[l].b * t) + "," + (o[l].a + s[l].a * t) + ")");
			else for (l = 0; l < u; l++) c.push((o[l] || 0) + s[l] * t);
			else c = Sr.indexOf(i) === -1 ? o + s * t : "rgba(" + Math.round(o.r + s.r * t) + "," + Math.round(o.g + s.g * t) + "," + Math.round(o.b + s.b * t) + "," + (o.a + s.a * t) + ")";
			n.setAttr(i, c);
		}
	}
	_addListeners() {
		this.tween.onPlay = () => {
			this.anim.start();
		}, this.tween.onReverse = () => {
			this.anim.start();
		}, this.tween.onPause = () => {
			this.anim.stop();
		}, this.tween.onFinish = () => {
			let t = this.node, n = e.attrs[t._id][this._id];
			n.points && n.points.trueEnd && t.setAttr("points", n.points.trueEnd), this.onFinish && this.onFinish.call(this);
		}, this.tween.onReset = () => {
			let t = this.node, n = e.attrs[t._id][this._id];
			n.points && n.points.trueStart && t.points(n.points.trueStart), this.onReset && this.onReset();
		}, this.tween.onUpdate = () => {
			this.onUpdate && this.onUpdate.call(this);
		};
	}
	play() {
		return this.tween.play(), this;
	}
	reverse() {
		return this.tween.reverse(), this;
	}
	reset() {
		return this.tween.reset(), this;
	}
	seek(e) {
		return this.tween.seek(e * 1e3), this;
	}
	pause() {
		return this.tween.pause(), this;
	}
	finish() {
		return this.tween.finish(), this;
	}
	destroy() {
		let t = this.node._id, n = this._id, r = e.tweens[t];
		this.pause(), this.anim && this.anim.stop();
		for (let n in r) delete e.tweens[t][n];
		delete e.attrs[t][n], e.tweens[t] && (Object.keys(e.tweens[t]).length === 0 && delete e.tweens[t], Object.keys(e.attrs[t]).length === 0 && delete e.attrs[t]);
	}
};
Tr.attrs = {}, Tr.tweens = {}, B.prototype.to = function(e) {
	let t = e.onFinish;
	e.node = this, e.onFinish = function() {
		this.destroy(), t && t();
	}, new Tr(e).play();
};
var Er = {
	BackEaseIn(e, t, n, r) {
		let i = 1.70158;
		return n * (e /= r) * e * ((i + 1) * e - i) + t;
	},
	BackEaseOut(e, t, n, r) {
		let i = 1.70158;
		return n * ((e = e / r - 1) * e * ((i + 1) * e + i) + 1) + t;
	},
	BackEaseInOut(e, t, n, r) {
		let i = 1.70158;
		return (e /= r / 2) < 1 ? n / 2 * (e * e * (((i *= 1.525) + 1) * e - i)) + t : n / 2 * ((e -= 2) * e * (((i *= 1.525) + 1) * e + i) + 2) + t;
	},
	ElasticEaseIn(e, t, n, r, i, a) {
		let o = 0;
		return e === 0 ? t : (e /= r) === 1 ? t + n : (a ||= r * .3, !i || i < Math.abs(n) ? (i = n, o = a / 4) : o = a / (2 * Math.PI) * Math.asin(n / i), -(i * 2 ** (10 * --e) * Math.sin((e * r - o) * (2 * Math.PI) / a)) + t);
	},
	ElasticEaseOut(e, t, n, r, i, a) {
		let o = 0;
		return e === 0 ? t : (e /= r) === 1 ? t + n : (a ||= r * .3, !i || i < Math.abs(n) ? (i = n, o = a / 4) : o = a / (2 * Math.PI) * Math.asin(n / i), i * 2 ** (-10 * e) * Math.sin((e * r - o) * (2 * Math.PI) / a) + n + t);
	},
	ElasticEaseInOut(e, t, n, r, i, a) {
		let o = 0;
		return e === 0 ? t : (e /= r / 2) == 2 ? t + n : (a ||= .3 * 1.5 * r, !i || i < Math.abs(n) ? (i = n, o = a / 4) : o = a / (2 * Math.PI) * Math.asin(n / i), e < 1 ? -.5 * (i * 2 ** (10 * --e) * Math.sin((e * r - o) * (2 * Math.PI) / a)) + t : i * 2 ** (-10 * --e) * Math.sin((e * r - o) * (2 * Math.PI) / a) * .5 + n + t);
	},
	BounceEaseOut(e, t, n, r) {
		return (e /= r) < 1 / 2.75 ? n * (7.5625 * e * e) + t : e < 2 / 2.75 ? n * (7.5625 * (e -= 1.5 / 2.75) * e + .75) + t : e < 2.5 / 2.75 ? n * (7.5625 * (e -= 2.25 / 2.75) * e + .9375) + t : n * (7.5625 * (e -= 2.625 / 2.75) * e + .984375) + t;
	},
	BounceEaseIn(e, t, n, r) {
		return n - Er.BounceEaseOut(r - e, 0, n, r) + t;
	},
	BounceEaseInOut(e, t, n, r) {
		return e < r / 2 ? Er.BounceEaseIn(e * 2, 0, n, r) * .5 + t : Er.BounceEaseOut(e * 2 - r, 0, n, r) * .5 + n * .5 + t;
	},
	EaseIn(e, t, n, r) {
		return n * (e /= r) * e + t;
	},
	EaseOut(e, t, n, r) {
		return -n * (e /= r) * (e - 2) + t;
	},
	EaseInOut(e, t, n, r) {
		return (e /= r / 2) < 1 ? n / 2 * e * e + t : -n / 2 * (--e * (e - 2) - 1) + t;
	},
	StrongEaseIn(e, t, n, r) {
		return n * (e /= r) * e * e * e * e + t;
	},
	StrongEaseOut(e, t, n, r) {
		return n * ((e = e / r - 1) * e * e * e * e + 1) + t;
	},
	StrongEaseInOut(e, t, n, r) {
		return (e /= r / 2) < 1 ? n / 2 * e * e * e * e * e + t : n / 2 * ((e -= 2) * e * e * e * e + 2) + t;
	},
	Linear(e, t, n, r) {
		return n * e / r + t;
	}
}, Dr = F._assign(P, {
	Util: F,
	Transform: Ie,
	Node: B,
	Container: an,
	Stage: Kn,
	stages: Gn,
	Layer: mr,
	FastLayer: H,
	Group: hr,
	DD: L,
	Shape: V,
	shapes: er,
	Animation: _r,
	Tween: Tr,
	Easings: Er,
	Context: mt,
	Canvas: vt
}), Or = class extends V {
	_sceneFunc(e) {
		let t = P.getAngle(this.angle()), n = this.clockwise();
		e.beginPath(), e.arc(0, 0, this.outerRadius(), 0, t, n), e.arc(0, 0, this.innerRadius(), t, 0, !n), e.closePath(), e.fillStrokeShape(this);
	}
	getWidth() {
		return this.outerRadius() * 2;
	}
	getHeight() {
		return this.outerRadius() * 2;
	}
	setWidth(e) {
		this.outerRadius(e / 2);
	}
	setHeight(e) {
		this.outerRadius(e / 2);
	}
	getSelfRect() {
		let e = this.innerRadius(), t = this.outerRadius(), n = this.clockwise(), r = P.getAngle(n ? 360 - this.angle() : this.angle()), i = Math.cos(Math.min(r, Math.PI)), a = Math.sin(Math.min(Math.max(Math.PI, r), 3 * Math.PI / 2)), o = Math.sin(Math.min(r, Math.PI / 2)), s = i * (i > 0 ? e : t), c = 1 * t, l = a * (a > 0 ? e : t), u = o * (o > 0 ? t : e);
		return {
			x: s,
			y: n ? -1 * u : l,
			width: c - s,
			height: u - l
		};
	}
};
Or.prototype._centroid = !0, Or.prototype.className = "Arc", Or.prototype._attrsAffectingSize = [
	"innerRadius",
	"outerRadius",
	"angle",
	"clockwise"
], Ne(Or), z.addGetterSetter(Or, "innerRadius", 0, R()), z.addGetterSetter(Or, "outerRadius", 0, R()), z.addGetterSetter(Or, "angle", 0, R()), z.addGetterSetter(Or, "clockwise", !1, Ot());
//#endregion
//#region ../node_modules/konva/lib/shapes/Line.js
function kr(e, t, n, r, i, a, o) {
	let s = Math.sqrt((n - e) ** 2 + (r - t) ** 2), c = Math.sqrt((i - n) ** 2 + (a - r) ** 2), l = o * s / (s + c), u = o * c / (s + c);
	return [
		n - l * (i - e),
		r - l * (a - t),
		n + u * (i - e),
		r + u * (a - t)
	];
}
function Ar(e, t) {
	let n = e.length, r = [];
	for (let i = 2; i < n - 2; i += 2) {
		let n = kr(e[i - 2], e[i - 1], e[i], e[i + 1], e[i + 2], e[i + 3], t);
		isNaN(n[0]) || (r.push(n[0]), r.push(n[1]), r.push(e[i]), r.push(e[i + 1]), r.push(n[2]), r.push(n[3]));
	}
	return r;
}
function jr(e) {
	let t = [[
		e[0],
		e[2],
		e[4],
		e[6]
	], [
		e[1],
		e[3],
		e[5],
		e[7]
	]], n = [];
	for (let e of t) {
		let t = -3 * e[0] + 9 * e[1] - 9 * e[2] + 3 * e[3];
		if (t !== 0) {
			let r = 6 * e[0] - 12 * e[1] + 6 * e[2], i = -3 * e[0] + 3 * e[1], a = r * r - 4 * t * i;
			if (a >= 0) {
				let e = Math.sqrt(a);
				n.push((-r + e) / (2 * t)), n.push((-r - e) / (2 * t));
			}
		}
	}
	return n.filter((e) => e > 0 && e < 1).flatMap((e) => t.map((t) => {
		let n = 1 - e;
		return n * n * n * t[0] + 3 * n * n * e * t[1] + 3 * n * e * e * t[2] + e * e * e * t[3];
	}));
}
var Mr = class extends V {
	constructor(e) {
		super(e), this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva", function() {
			this._clearCache("tensionPoints");
		});
	}
	_sceneFunc(e) {
		let t = this.points(), n = t.length, r = this.tension(), i = this.closed(), a = this.bezier();
		if (!n) return;
		let o = 0;
		if (e.beginPath(), e.moveTo(t[0], t[1]), r !== 0 && n > 4) {
			let r = this.getTensionPoints(), a = r.length;
			for (o = i ? 0 : 4, i || e.quadraticCurveTo(r[0], r[1], r[2], r[3]); o < a - 2;) e.bezierCurveTo(r[o++], r[o++], r[o++], r[o++], r[o++], r[o++]);
			i || e.quadraticCurveTo(r[a - 2], r[a - 1], t[n - 2], t[n - 1]);
		} else if (a) for (o = 2; o < n;) e.bezierCurveTo(t[o++], t[o++], t[o++], t[o++], t[o++], t[o++]);
		else for (o = 2; o < n; o += 2) e.lineTo(t[o], t[o + 1]);
		i ? (e.closePath(), e.fillStrokeShape(this)) : e.strokeShape(this);
	}
	getTensionPoints() {
		return this._getCache("tensionPoints", this._getTensionPoints);
	}
	_getTensionPoints() {
		return this.closed() ? this._getTensionPointsClosed() : Ar(this.points(), this.tension());
	}
	_getTensionPointsClosed() {
		let e = this.points(), t = e.length, n = this.tension(), r = kr(e[t - 2], e[t - 1], e[0], e[1], e[2], e[3], n), i = kr(e[t - 4], e[t - 3], e[t - 2], e[t - 1], e[0], e[1], n), a = Ar(e, n);
		return [r[2], r[3]].concat(a, [
			i[0],
			i[1],
			e[t - 2],
			e[t - 1],
			i[2],
			i[3],
			r[0],
			r[1],
			e[0],
			e[1]
		]);
	}
	getWidth() {
		return this.getSelfRect().width;
	}
	getHeight() {
		return this.getSelfRect().height;
	}
	getSelfRect() {
		let e = this.points();
		if (e.length < 4) return {
			x: e[0] || 0,
			y: e[1] || 0,
			width: 0,
			height: 0
		};
		e = this.tension() === 0 ? this.bezier() ? [
			e[0],
			e[1],
			...jr(this.points()),
			e[e.length - 2],
			e[e.length - 1]
		] : this.points() : [
			e[0],
			e[1],
			...this._getTensionPoints(),
			e[e.length - 2],
			e[e.length - 1]
		];
		let t = e[0], n = e[0], r = e[1], i = e[1], a, o;
		for (let s = 0; s < e.length / 2; s++) a = e[s * 2], o = e[s * 2 + 1], t = Math.min(t, a), n = Math.max(n, a), r = Math.min(r, o), i = Math.max(i, o);
		return {
			x: t,
			y: r,
			width: n - t,
			height: i - r
		};
	}
};
Mr.prototype.className = "Line", Mr.prototype._attrsAffectingSize = [
	"points",
	"bezier",
	"tension"
], Ne(Mr), z.addGetterSetter(Mr, "closed", !1), z.addGetterSetter(Mr, "bezier", !1), z.addGetterSetter(Mr, "tension", 0, R()), z.addGetterSetter(Mr, "points", [], Dt());
//#endregion
//#region ../node_modules/konva/lib/BezierFunctions.js
var Nr = [
	[],
	[],
	[-.5773502691896257, .5773502691896257],
	[
		0,
		-.7745966692414834,
		.7745966692414834
	],
	[
		-.33998104358485626,
		.33998104358485626,
		-.8611363115940526,
		.8611363115940526
	],
	[
		0,
		-.5384693101056831,
		.5384693101056831,
		-.906179845938664,
		.906179845938664
	],
	[
		.6612093864662645,
		-.6612093864662645,
		-.2386191860831969,
		.2386191860831969,
		-.932469514203152,
		.932469514203152
	],
	[
		0,
		.4058451513773972,
		-.4058451513773972,
		-.7415311855993945,
		.7415311855993945,
		-.9491079123427585,
		.9491079123427585
	],
	[
		-.1834346424956498,
		.1834346424956498,
		-.525532409916329,
		.525532409916329,
		-.7966664774136267,
		.7966664774136267,
		-.9602898564975363,
		.9602898564975363
	],
	[
		0,
		-.8360311073266358,
		.8360311073266358,
		-.9681602395076261,
		.9681602395076261,
		-.3242534234038089,
		.3242534234038089,
		-.6133714327005904,
		.6133714327005904
	],
	[
		-.14887433898163122,
		.14887433898163122,
		-.4333953941292472,
		.4333953941292472,
		-.6794095682990244,
		.6794095682990244,
		-.8650633666889845,
		.8650633666889845,
		-.9739065285171717,
		.9739065285171717
	],
	[
		0,
		-.26954315595234496,
		.26954315595234496,
		-.5190961292068118,
		.5190961292068118,
		-.7301520055740494,
		.7301520055740494,
		-.8870625997680953,
		.8870625997680953,
		-.978228658146057,
		.978228658146057
	],
	[
		-.1252334085114689,
		.1252334085114689,
		-.3678314989981802,
		.3678314989981802,
		-.5873179542866175,
		.5873179542866175,
		-.7699026741943047,
		.7699026741943047,
		-.9041172563704749,
		.9041172563704749,
		-.9815606342467192,
		.9815606342467192
	],
	[
		0,
		-.2304583159551348,
		.2304583159551348,
		-.44849275103644687,
		.44849275103644687,
		-.6423493394403402,
		.6423493394403402,
		-.8015780907333099,
		.8015780907333099,
		-.9175983992229779,
		.9175983992229779,
		-.9841830547185881,
		.9841830547185881
	],
	[
		-.10805494870734367,
		.10805494870734367,
		-.31911236892788974,
		.31911236892788974,
		-.5152486363581541,
		.5152486363581541,
		-.6872929048116855,
		.6872929048116855,
		-.827201315069765,
		.827201315069765,
		-.9284348836635735,
		.9284348836635735,
		-.9862838086968123,
		.9862838086968123
	],
	[
		0,
		-.20119409399743451,
		.20119409399743451,
		-.3941513470775634,
		.3941513470775634,
		-.5709721726085388,
		.5709721726085388,
		-.7244177313601701,
		.7244177313601701,
		-.8482065834104272,
		.8482065834104272,
		-.937273392400706,
		.937273392400706,
		-.9879925180204854,
		.9879925180204854
	],
	[
		-.09501250983763744,
		.09501250983763744,
		-.2816035507792589,
		.2816035507792589,
		-.45801677765722737,
		.45801677765722737,
		-.6178762444026438,
		.6178762444026438,
		-.755404408355003,
		.755404408355003,
		-.8656312023878318,
		.8656312023878318,
		-.9445750230732326,
		.9445750230732326,
		-.9894009349916499,
		.9894009349916499
	],
	[
		0,
		-.17848418149584785,
		.17848418149584785,
		-.3512317634538763,
		.3512317634538763,
		-.5126905370864769,
		.5126905370864769,
		-.6576711592166907,
		.6576711592166907,
		-.7815140038968014,
		.7815140038968014,
		-.8802391537269859,
		.8802391537269859,
		-.9506755217687678,
		.9506755217687678,
		-.9905754753144174,
		.9905754753144174
	],
	[
		-.0847750130417353,
		.0847750130417353,
		-.2518862256915055,
		.2518862256915055,
		-.41175116146284263,
		.41175116146284263,
		-.5597708310739475,
		.5597708310739475,
		-.6916870430603532,
		.6916870430603532,
		-.8037049589725231,
		.8037049589725231,
		-.8926024664975557,
		.8926024664975557,
		-.9558239495713977,
		.9558239495713977,
		-.9915651684209309,
		.9915651684209309
	],
	[
		0,
		-.16035864564022537,
		.16035864564022537,
		-.31656409996362983,
		.31656409996362983,
		-.46457074137596094,
		.46457074137596094,
		-.600545304661681,
		.600545304661681,
		-.7209661773352294,
		.7209661773352294,
		-.8227146565371428,
		.8227146565371428,
		-.9031559036148179,
		.9031559036148179,
		-.96020815213483,
		.96020815213483,
		-.9924068438435844,
		.9924068438435844
	],
	[
		-.07652652113349734,
		.07652652113349734,
		-.22778585114164507,
		.22778585114164507,
		-.37370608871541955,
		.37370608871541955,
		-.5108670019508271,
		.5108670019508271,
		-.636053680726515,
		.636053680726515,
		-.7463319064601508,
		.7463319064601508,
		-.8391169718222188,
		.8391169718222188,
		-.912234428251326,
		.912234428251326,
		-.9639719272779138,
		.9639719272779138,
		-.9931285991850949,
		.9931285991850949
	],
	[
		0,
		-.1455618541608951,
		.1455618541608951,
		-.2880213168024011,
		.2880213168024011,
		-.4243421202074388,
		.4243421202074388,
		-.5516188358872198,
		.5516188358872198,
		-.6671388041974123,
		.6671388041974123,
		-.7684399634756779,
		.7684399634756779,
		-.8533633645833173,
		.8533633645833173,
		-.9200993341504008,
		.9200993341504008,
		-.9672268385663063,
		.9672268385663063,
		-.9937521706203895,
		.9937521706203895
	],
	[
		-.06973927331972223,
		.06973927331972223,
		-.20786042668822127,
		.20786042668822127,
		-.34193582089208424,
		.34193582089208424,
		-.469355837986757,
		.469355837986757,
		-.5876404035069116,
		.5876404035069116,
		-.6944872631866827,
		.6944872631866827,
		-.7878168059792081,
		.7878168059792081,
		-.8658125777203002,
		.8658125777203002,
		-.926956772187174,
		.926956772187174,
		-.9700604978354287,
		.9700604978354287,
		-.9942945854823992,
		.9942945854823992
	],
	[
		0,
		-.1332568242984661,
		.1332568242984661,
		-.26413568097034495,
		.26413568097034495,
		-.3903010380302908,
		.3903010380302908,
		-.5095014778460075,
		.5095014778460075,
		-.6196098757636461,
		.6196098757636461,
		-.7186613631319502,
		.7186613631319502,
		-.8048884016188399,
		.8048884016188399,
		-.8767523582704416,
		.8767523582704416,
		-.9329710868260161,
		.9329710868260161,
		-.9725424712181152,
		.9725424712181152,
		-.9947693349975522,
		.9947693349975522
	],
	[
		-.06405689286260563,
		.06405689286260563,
		-.1911188674736163,
		.1911188674736163,
		-.3150426796961634,
		.3150426796961634,
		-.4337935076260451,
		.4337935076260451,
		-.5454214713888396,
		.5454214713888396,
		-.6480936519369755,
		.6480936519369755,
		-.7401241915785544,
		.7401241915785544,
		-.820001985973903,
		.820001985973903,
		-.8864155270044011,
		.8864155270044011,
		-.9382745520027328,
		.9382745520027328,
		-.9747285559713095,
		.9747285559713095,
		-.9951872199970213,
		.9951872199970213
	]
], Pr = [
	[],
	[],
	[1, 1],
	[
		.8888888888888888,
		.5555555555555556,
		.5555555555555556
	],
	[
		.6521451548625461,
		.6521451548625461,
		.34785484513745385,
		.34785484513745385
	],
	[
		.5688888888888889,
		.47862867049936647,
		.47862867049936647,
		.23692688505618908,
		.23692688505618908
	],
	[
		.3607615730481386,
		.3607615730481386,
		.46791393457269104,
		.46791393457269104,
		.17132449237917036,
		.17132449237917036
	],
	[
		.4179591836734694,
		.3818300505051189,
		.3818300505051189,
		.27970539148927664,
		.27970539148927664,
		.1294849661688697,
		.1294849661688697
	],
	[
		.362683783378362,
		.362683783378362,
		.31370664587788727,
		.31370664587788727,
		.22238103445337448,
		.22238103445337448,
		.10122853629037626,
		.10122853629037626
	],
	[
		.3302393550012598,
		.1806481606948574,
		.1806481606948574,
		.08127438836157441,
		.08127438836157441,
		.31234707704000286,
		.31234707704000286,
		.26061069640293544,
		.26061069640293544
	],
	[
		.29552422471475287,
		.29552422471475287,
		.26926671930999635,
		.26926671930999635,
		.21908636251598204,
		.21908636251598204,
		.1494513491505806,
		.1494513491505806,
		.06667134430868814,
		.06667134430868814
	],
	[
		.2729250867779006,
		.26280454451024665,
		.26280454451024665,
		.23319376459199048,
		.23319376459199048,
		.18629021092773426,
		.18629021092773426,
		.1255803694649046,
		.1255803694649046,
		.05566856711617366,
		.05566856711617366
	],
	[
		.24914704581340277,
		.24914704581340277,
		.2334925365383548,
		.2334925365383548,
		.20316742672306592,
		.20316742672306592,
		.16007832854334622,
		.16007832854334622,
		.10693932599531843,
		.10693932599531843,
		.04717533638651183,
		.04717533638651183
	],
	[
		.2325515532308739,
		.22628318026289723,
		.22628318026289723,
		.2078160475368885,
		.2078160475368885,
		.17814598076194574,
		.17814598076194574,
		.13887351021978725,
		.13887351021978725,
		.09212149983772845,
		.09212149983772845,
		.04048400476531588,
		.04048400476531588
	],
	[
		.2152638534631578,
		.2152638534631578,
		.2051984637212956,
		.2051984637212956,
		.18553839747793782,
		.18553839747793782,
		.15720316715819355,
		.15720316715819355,
		.12151857068790319,
		.12151857068790319,
		.08015808715976021,
		.08015808715976021,
		.03511946033175186,
		.03511946033175186
	],
	[
		.2025782419255613,
		.19843148532711158,
		.19843148532711158,
		.1861610000155622,
		.1861610000155622,
		.16626920581699392,
		.16626920581699392,
		.13957067792615432,
		.13957067792615432,
		.10715922046717194,
		.10715922046717194,
		.07036604748810812,
		.07036604748810812,
		.03075324199611727,
		.03075324199611727
	],
	[
		.1894506104550685,
		.1894506104550685,
		.18260341504492358,
		.18260341504492358,
		.16915651939500254,
		.16915651939500254,
		.14959598881657674,
		.14959598881657674,
		.12462897125553388,
		.12462897125553388,
		.09515851168249279,
		.09515851168249279,
		.062253523938647894,
		.062253523938647894,
		.027152459411754096,
		.027152459411754096
	],
	[
		.17944647035620653,
		.17656270536699264,
		.17656270536699264,
		.16800410215645004,
		.16800410215645004,
		.15404576107681028,
		.15404576107681028,
		.13513636846852548,
		.13513636846852548,
		.11188384719340397,
		.11188384719340397,
		.08503614831717918,
		.08503614831717918,
		.0554595293739872,
		.0554595293739872,
		.02414830286854793,
		.02414830286854793
	],
	[
		.1691423829631436,
		.1691423829631436,
		.16427648374583273,
		.16427648374583273,
		.15468467512626524,
		.15468467512626524,
		.14064291467065065,
		.14064291467065065,
		.12255520671147846,
		.12255520671147846,
		.10094204410628717,
		.10094204410628717,
		.07642573025488905,
		.07642573025488905,
		.0497145488949698,
		.0497145488949698,
		.02161601352648331,
		.02161601352648331
	],
	[
		.1610544498487837,
		.15896884339395434,
		.15896884339395434,
		.15276604206585967,
		.15276604206585967,
		.1426067021736066,
		.1426067021736066,
		.12875396253933621,
		.12875396253933621,
		.11156664554733399,
		.11156664554733399,
		.09149002162245,
		.09149002162245,
		.06904454273764123,
		.06904454273764123,
		.0448142267656996,
		.0448142267656996,
		.019461788229726478,
		.019461788229726478
	],
	[
		.15275338713072584,
		.15275338713072584,
		.14917298647260374,
		.14917298647260374,
		.14209610931838204,
		.14209610931838204,
		.13168863844917664,
		.13168863844917664,
		.11819453196151841,
		.11819453196151841,
		.10193011981724044,
		.10193011981724044,
		.08327674157670475,
		.08327674157670475,
		.06267204833410907,
		.06267204833410907,
		.04060142980038694,
		.04060142980038694,
		.017614007139152118,
		.017614007139152118
	],
	[
		.14608113364969041,
		.14452440398997005,
		.14452440398997005,
		.13988739479107315,
		.13988739479107315,
		.13226893863333747,
		.13226893863333747,
		.12183141605372853,
		.12183141605372853,
		.10879729916714838,
		.10879729916714838,
		.09344442345603386,
		.09344442345603386,
		.0761001136283793,
		.0761001136283793,
		.057134425426857205,
		.057134425426857205,
		.036953789770852494,
		.036953789770852494,
		.016017228257774335,
		.016017228257774335
	],
	[
		.13925187285563198,
		.13925187285563198,
		.13654149834601517,
		.13654149834601517,
		.13117350478706238,
		.13117350478706238,
		.12325237681051242,
		.12325237681051242,
		.11293229608053922,
		.11293229608053922,
		.10041414444288096,
		.10041414444288096,
		.08594160621706773,
		.08594160621706773,
		.06979646842452049,
		.06979646842452049,
		.052293335152683286,
		.052293335152683286,
		.03377490158481415,
		.03377490158481415,
		.0146279952982722,
		.0146279952982722
	],
	[
		.13365457218610619,
		.1324620394046966,
		.1324620394046966,
		.12890572218808216,
		.12890572218808216,
		.12304908430672953,
		.12304908430672953,
		.11499664022241136,
		.11499664022241136,
		.10489209146454141,
		.10489209146454141,
		.09291576606003515,
		.09291576606003515,
		.07928141177671895,
		.07928141177671895,
		.06423242140852585,
		.06423242140852585,
		.04803767173108467,
		.04803767173108467,
		.030988005856979445,
		.030988005856979445,
		.013411859487141771,
		.013411859487141771
	],
	[
		.12793819534675216,
		.12793819534675216,
		.1258374563468283,
		.1258374563468283,
		.12167047292780339,
		.12167047292780339,
		.1155056680537256,
		.1155056680537256,
		.10744427011596563,
		.10744427011596563,
		.09761865210411388,
		.09761865210411388,
		.08619016153195327,
		.08619016153195327,
		.0733464814110803,
		.0733464814110803,
		.05929858491543678,
		.05929858491543678,
		.04427743881741981,
		.04427743881741981,
		.028531388628933663,
		.028531388628933663,
		.0123412297999872,
		.0123412297999872
	]
], Fr = [
	[1],
	[1, 1],
	[
		1,
		2,
		1
	],
	[
		1,
		3,
		3,
		1
	]
], Ir = (e, t, n) => {
	let r, i, a = n / 2;
	r = 0;
	for (let n = 0; n < 20; n++) i = a * Nr[20][n] + a, r += Pr[20][n] * Rr(e, t, i);
	return a * r;
}, Lr = (e, t, n) => {
	n === void 0 && (n = 1);
	let r = e[0] - 2 * e[1] + e[2], i = t[0] - 2 * t[1] + t[2], a = 2 * e[1] - 2 * e[0], o = 2 * t[1] - 2 * t[0], s = 4 * (r * r + i * i), c = 4 * (r * a + i * o), l = a * a + o * o;
	if (s === 0) return n * Math.sqrt((e[2] - e[0]) ** 2 + (t[2] - t[0]) ** 2);
	let u = c / (2 * s), d = l / s, f = n + u, p = d - u * u, m = f * f + p > 0 ? Math.sqrt(f * f + p) : 0, h = u * u + p > 0 ? Math.sqrt(u * u + p) : 0, g = u + Math.sqrt(u * u + p) === 0 ? 0 : p * Math.log(Math.abs((f + m) / (u + h)));
	return Math.sqrt(s) / 2 * (f * m - u * h + g);
};
function Rr(e, t, n) {
	let r = zr(1, n, e), i = zr(1, n, t), a = r * r + i * i;
	return Math.sqrt(a);
}
var zr = (e, t, n) => {
	let r = n.length - 1, i, a;
	if (r === 0) return 0;
	if (e === 0) {
		a = 0;
		for (let e = 0; e <= r; e++) a += Fr[r][e] * (1 - t) ** (r - e) * t ** +e * n[e];
		return a;
	} else {
		i = Array(r);
		for (let e = 0; e < r; e++) i[e] = r * (n[e + 1] - n[e]);
		return zr(e - 1, t, i);
	}
}, Br = (e, t, n) => {
	let r = 1, i = e / t, a = (e - n(i)) / t, o = 0;
	for (; r > .001;) {
		let s = n(i + a), c = Math.abs(e - s) / t;
		if (c < r) r = c, i += a;
		else {
			let o = n(i - a), s = Math.abs(e - o) / t;
			s < r ? (r = s, i -= a) : a /= 2;
		}
		if (o++, o > 500) break;
	}
	return i;
}, Vr = class e extends V {
	constructor(e) {
		super(e), this.dataArray = [], this.pathLength = 0, this._readDataAttribute(), this.on("dataChange.konva", function() {
			this._readDataAttribute();
		});
	}
	_readDataAttribute() {
		this.dataArray = e.parsePathData(this.data()), this.pathLength = e.getPathLength(this.dataArray);
	}
	_sceneFunc(e) {
		let t = this.dataArray;
		e.beginPath();
		let n = !1;
		for (let r = 0; r < t.length; r++) {
			let i = t[r].command, a = t[r].points;
			switch (i) {
				case "L":
					e.lineTo(a[0], a[1]);
					break;
				case "M":
					e.moveTo(a[0], a[1]);
					break;
				case "C":
					e.bezierCurveTo(a[0], a[1], a[2], a[3], a[4], a[5]);
					break;
				case "Q":
					e.quadraticCurveTo(a[0], a[1], a[2], a[3]);
					break;
				case "A":
					let t = a[0], r = a[1], i = a[2], o = a[3], s = a[4], c = a[5], l = a[6], u = a[7], d = i > o ? i : o, f = i > o ? 1 : i / o, p = i > o ? o / i : 1;
					e.translate(t, r), e.rotate(l), e.scale(f, p), e.arc(0, 0, d, s, s + c, 1 - u), e.scale(1 / f, 1 / p), e.rotate(-l), e.translate(-t, -r);
					break;
				case "z":
					n = !0, e.closePath();
					break;
			}
		}
		!n && !this.hasFill() ? e.strokeShape(this) : e.fillStrokeShape(this);
	}
	getSelfRect() {
		let t = [];
		this.dataArray.forEach(function(n) {
			if (n.command === "A") {
				let r = n.points[4], i = n.points[5], a = n.points[4] + i, o = Math.PI / 180;
				if (Math.abs(r - a) < o && (o = Math.abs(r - a)), i < 0) for (let i = r - o; i > a; i -= o) {
					let r = e.getPointOnEllipticalArc(n.points[0], n.points[1], n.points[2], n.points[3], i, 0);
					t.push(r.x, r.y);
				}
				else for (let i = r + o; i < a; i += o) {
					let r = e.getPointOnEllipticalArc(n.points[0], n.points[1], n.points[2], n.points[3], i, 0);
					t.push(r.x, r.y);
				}
			} else if (n.command === "C") for (let r = 0; r <= 1; r += .01) {
				let i = e.getPointOnCubicBezier(r, n.start.x, n.start.y, n.points[0], n.points[1], n.points[2], n.points[3], n.points[4], n.points[5]);
				t.push(i.x, i.y);
			}
			else t = t.concat(n.points);
		});
		let n = t[0], r = t[0], i = t[1], a = t[1], o, s;
		for (let e = 0; e < t.length / 2; e++) o = t[e * 2], s = t[e * 2 + 1], isNaN(o) || (n = Math.min(n, o), r = Math.max(r, o)), isNaN(s) || (i = Math.min(i, s), a = Math.max(a, s));
		return {
			x: n,
			y: i,
			width: r - n,
			height: a - i
		};
	}
	getLength() {
		return this.pathLength;
	}
	getPointAtLength(t) {
		return e.getPointAtLengthOfDataArray(t, this.dataArray);
	}
	static getLineLength(e, t, n, r) {
		return Math.sqrt((n - e) * (n - e) + (r - t) * (r - t));
	}
	static getPathLength(e) {
		let t = 0;
		for (let n = 0; n < e.length; ++n) t += e[n].pathLength;
		return t;
	}
	static getPointAtLengthOfDataArray(t, n) {
		let r, i = 0, a = n.length;
		if (!a) return null;
		for (; i < a && t > n[i].pathLength;) t -= n[i].pathLength, ++i;
		if (i === a) return r = n[i - 1].points.slice(-2), {
			x: r[0],
			y: r[1]
		};
		if (t < .01) return n[i].command === "M" ? (r = n[i].points.slice(0, 2), {
			x: r[0],
			y: r[1]
		}) : {
			x: n[i].start.x,
			y: n[i].start.y
		};
		let o = n[i], s = o.points;
		switch (o.command) {
			case "L": return e.getPointOnLine(t, o.start.x, o.start.y, s[0], s[1]);
			case "C": return e.getPointOnCubicBezier(Br(t, e.getPathLength(n), (e) => Ir([
				o.start.x,
				s[0],
				s[2],
				s[4]
			], [
				o.start.y,
				s[1],
				s[3],
				s[5]
			], e)), o.start.x, o.start.y, s[0], s[1], s[2], s[3], s[4], s[5]);
			case "Q": return e.getPointOnQuadraticBezier(Br(t, e.getPathLength(n), (e) => Lr([
				o.start.x,
				s[0],
				s[2]
			], [
				o.start.y,
				s[1],
				s[3]
			], e)), o.start.x, o.start.y, s[0], s[1], s[2], s[3]);
			case "A":
				let r = s[0], i = s[1], a = s[2], c = s[3], l = s[5], u = s[6], d = s[4];
				return d += l * t / o.pathLength, e.getPointOnEllipticalArc(r, i, a, c, d, u);
		}
		return null;
	}
	static getPointOnLine(e, t, n, r, i, a, o) {
		a ??= t, o ??= n;
		let s = this.getLineLength(t, n, r, i);
		if (s < 1e-10) return {
			x: t,
			y: n
		};
		if (r === t) return {
			x: a,
			y: o + (i > n ? e : -e)
		};
		let c = (i - n) / (r - t), l = Math.sqrt(e * e / (1 + c * c)) * (r < t ? -1 : 1), u = c * l;
		if (Math.abs(o - n - c * (a - t)) < 1e-10) return {
			x: a + l,
			y: o + u
		};
		let d = ((a - t) * (r - t) + (o - n) * (i - n)) / (s * s), f = t + d * (r - t), p = n + d * (i - n), m = this.getLineLength(a, o, f, p), h = Math.sqrt(e * e - m * m), g = Math.sqrt(h * h / (1 + c * c)) * (r < t ? -1 : 1), _ = c * g;
		return {
			x: f + g,
			y: p + _
		};
	}
	static getPointOnCubicBezier(e, t, n, r, i, a, o, s, c) {
		function l(e) {
			return e * e * e;
		}
		function u(e) {
			return 3 * e * e * (1 - e);
		}
		function d(e) {
			return 3 * e * (1 - e) * (1 - e);
		}
		function f(e) {
			return (1 - e) * (1 - e) * (1 - e);
		}
		return {
			x: s * l(e) + a * u(e) + r * d(e) + t * f(e),
			y: c * l(e) + o * u(e) + i * d(e) + n * f(e)
		};
	}
	static getPointOnQuadraticBezier(e, t, n, r, i, a, o) {
		function s(e) {
			return e * e;
		}
		function c(e) {
			return 2 * e * (1 - e);
		}
		function l(e) {
			return (1 - e) * (1 - e);
		}
		return {
			x: a * s(e) + r * c(e) + t * l(e),
			y: o * s(e) + i * c(e) + n * l(e)
		};
	}
	static getPointOnEllipticalArc(e, t, n, r, i, a) {
		let o = Math.cos(a), s = Math.sin(a), c = {
			x: n * Math.cos(i),
			y: r * Math.sin(i)
		};
		return {
			x: e + (c.x * o - c.y * s),
			y: t + (c.x * s + c.y * o)
		};
	}
	static parsePathData(e) {
		if (!e) return [];
		let t = e, n = [
			"m",
			"M",
			"l",
			"L",
			"v",
			"V",
			"h",
			"H",
			"z",
			"Z",
			"c",
			"C",
			"q",
			"Q",
			"t",
			"T",
			"s",
			"S",
			"a",
			"A"
		];
		t = t.replace(/* @__PURE__ */ RegExp(" ", "g"), ",");
		for (let e = 0; e < n.length; e++) t = t.replace(new RegExp(n[e], "g"), "|" + n[e]);
		let r = t.split("|"), i = [], a = [], o = 0, s = 0, c = /([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi, l;
		for (let e = 1; e < r.length; e++) {
			let t = r[e], n = t.charAt(0);
			for (t = t.slice(1), a.length = 0; l = c.exec(t);) a.push(l[0]);
			let u = [], d = n === "A" || n === "a" ? 0 : -1;
			for (let e = 0, t = a.length; e < t; e++) {
				let t = a[e];
				if (t === "00") {
					u.push(0, 0), d >= 0 && (d += 2, d >= 7 && (d -= 7));
					continue;
				}
				if (d >= 0) {
					if (d === 3) {
						if (/^[01]{2}\d+(?:\.\d+)?$/.test(t)) {
							u.push(parseInt(t[0], 10)), u.push(parseInt(t[1], 10)), u.push(parseFloat(t.slice(2))), d += 3, d >= 7 && (d -= 7);
							continue;
						}
						if (t === "11" || t === "10" || t === "01") {
							u.push(parseInt(t[0], 10)), u.push(parseInt(t[1], 10)), d += 2, d >= 7 && (d -= 7);
							continue;
						}
						if (t === "0" || t === "1") {
							u.push(parseInt(t, 10)), d += 1, d >= 7 && (d -= 7);
							continue;
						}
					} else if (d === 4) {
						if (/^[01]\d+(?:\.\d+)?$/.test(t)) {
							u.push(parseInt(t[0], 10)), u.push(parseFloat(t.slice(1))), d += 2, d >= 7 && (d -= 7);
							continue;
						}
						if (t === "0" || t === "1") {
							u.push(parseInt(t, 10)), d += 1, d >= 7 && (d -= 7);
							continue;
						}
					}
					let e = parseFloat(t);
					isNaN(e) ? u.push(0) : u.push(e), d += 1, d >= 7 && (d -= 7);
				} else {
					let e = parseFloat(t);
					isNaN(e) ? u.push(0) : u.push(e);
				}
			}
			for (; u.length > 0 && !isNaN(u[0]);) {
				let e = "", t = [], r = o, a = s, c, l, d, f, p, m, h, g, _, v;
				switch (n) {
					case "l":
						o += u.shift(), s += u.shift(), e = "L", t.push(o, s);
						break;
					case "L":
						o = u.shift(), s = u.shift(), t.push(o, s);
						break;
					case "m":
						let r = u.shift(), a = u.shift();
						if (o += r, s += a, e = "M", i.length > 2 && i[i.length - 1].command === "z") {
							for (let e = i.length - 2; e >= 0; e--) if (i[e].command === "M") {
								o = i[e].points[0] + r, s = i[e].points[1] + a;
								break;
							}
						}
						t.push(o, s), n = "l";
						break;
					case "M":
						o = u.shift(), s = u.shift(), e = "M", t.push(o, s), n = "L";
						break;
					case "h":
						o += u.shift(), e = "L", t.push(o, s);
						break;
					case "H":
						o = u.shift(), e = "L", t.push(o, s);
						break;
					case "v":
						s += u.shift(), e = "L", t.push(o, s);
						break;
					case "V":
						s = u.shift(), e = "L", t.push(o, s);
						break;
					case "C":
						t.push(u.shift(), u.shift(), u.shift(), u.shift()), o = u.shift(), s = u.shift(), t.push(o, s);
						break;
					case "c":
						t.push(o + u.shift(), s + u.shift(), o + u.shift(), s + u.shift()), o += u.shift(), s += u.shift(), e = "C", t.push(o, s);
						break;
					case "S":
						l = o, d = s, c = i[i.length - 1], c.command === "C" && (l = o + (o - c.points[2]), d = s + (s - c.points[3])), t.push(l, d, u.shift(), u.shift()), o = u.shift(), s = u.shift(), e = "C", t.push(o, s);
						break;
					case "s":
						l = o, d = s, c = i[i.length - 1], c.command === "C" && (l = o + (o - c.points[2]), d = s + (s - c.points[3])), t.push(l, d, o + u.shift(), s + u.shift()), o += u.shift(), s += u.shift(), e = "C", t.push(o, s);
						break;
					case "Q":
						t.push(u.shift(), u.shift()), o = u.shift(), s = u.shift(), t.push(o, s);
						break;
					case "q":
						t.push(o + u.shift(), s + u.shift()), o += u.shift(), s += u.shift(), e = "Q", t.push(o, s);
						break;
					case "T":
						l = o, d = s, c = i[i.length - 1], c.command === "Q" && (l = o + (o - c.points[0]), d = s + (s - c.points[1])), o = u.shift(), s = u.shift(), e = "Q", t.push(l, d, o, s);
						break;
					case "t":
						l = o, d = s, c = i[i.length - 1], c.command === "Q" && (l = o + (o - c.points[0]), d = s + (s - c.points[1])), o += u.shift(), s += u.shift(), e = "Q", t.push(l, d, o, s);
						break;
					case "A":
						f = u.shift(), p = u.shift(), m = u.shift(), h = u.shift(), g = u.shift(), _ = o, v = s, o = u.shift(), s = u.shift(), e = "A", t = this.convertEndpointToCenterParameterization(_, v, o, s, h, g, f, p, m);
						break;
					case "a":
						f = u.shift(), p = u.shift(), m = u.shift(), h = u.shift(), g = u.shift(), _ = o, v = s, o += u.shift(), s += u.shift(), e = "A", t = this.convertEndpointToCenterParameterization(_, v, o, s, h, g, f, p, m);
						break;
				}
				i.push({
					command: e || n,
					points: t,
					start: {
						x: r,
						y: a
					},
					pathLength: this.calcLength(r, a, e || n, t)
				});
			}
			(n === "z" || n === "Z") && i.push({
				command: "z",
				points: [],
				start: void 0,
				pathLength: 0
			});
		}
		return i;
	}
	static calcLength(t, n, r, i) {
		let a, o, s, c, l = e;
		switch (r) {
			case "L": return l.getLineLength(t, n, i[0], i[1]);
			case "C": return Ir([
				t,
				i[0],
				i[2],
				i[4]
			], [
				n,
				i[1],
				i[3],
				i[5]
			], 1);
			case "Q": return Lr([
				t,
				i[0],
				i[2]
			], [
				n,
				i[1],
				i[3]
			], 1);
			case "A":
				a = 0;
				let e = i[4], r = i[5], u = i[4] + r, d = Math.PI / 180;
				if (Math.abs(e - u) < d && (d = Math.abs(e - u)), o = l.getPointOnEllipticalArc(i[0], i[1], i[2], i[3], e, 0), r < 0) for (c = e - d; c > u; c -= d) s = l.getPointOnEllipticalArc(i[0], i[1], i[2], i[3], c, 0), a += l.getLineLength(o.x, o.y, s.x, s.y), o = s;
				else for (c = e + d; c < u; c += d) s = l.getPointOnEllipticalArc(i[0], i[1], i[2], i[3], c, 0), a += l.getLineLength(o.x, o.y, s.x, s.y), o = s;
				return s = l.getPointOnEllipticalArc(i[0], i[1], i[2], i[3], u, 0), a += l.getLineLength(o.x, o.y, s.x, s.y), a;
		}
		return 0;
	}
	static convertEndpointToCenterParameterization(e, t, n, r, i, a, o, s, c) {
		let l = Math.PI / 180 * c, u = Math.cos(l) * (e - n) / 2 + Math.sin(l) * (t - r) / 2, d = -1 * Math.sin(l) * (e - n) / 2 + Math.cos(l) * (t - r) / 2, f = u * u / (o * o) + d * d / (s * s);
		f > 1 && (o *= Math.sqrt(f), s *= Math.sqrt(f));
		let p = Math.sqrt((o * o * (s * s) - o * o * (d * d) - s * s * (u * u)) / (o * o * (d * d) + s * s * (u * u)));
		i === a && (p *= -1), isNaN(p) && (p = 0);
		let m = p * o * d / s, h = p * -s * u / o, g = (e + n) / 2 + Math.cos(l) * m - Math.sin(l) * h, _ = (t + r) / 2 + Math.sin(l) * m + Math.cos(l) * h, v = function(e) {
			return Math.sqrt(e[0] * e[0] + e[1] * e[1]);
		}, y = function(e, t) {
			return (e[0] * t[0] + e[1] * t[1]) / (v(e) * v(t));
		}, b = function(e, t) {
			return (e[0] * t[1] < e[1] * t[0] ? -1 : 1) * Math.acos(y(e, t));
		}, x = b([1, 0], [(u - m) / o, (d - h) / s]), ee = [(u - m) / o, (d - h) / s], S = [(-1 * u - m) / o, (-1 * d - h) / s], C = b(ee, S);
		return y(ee, S) <= -1 && (C = Math.PI), y(ee, S) >= 1 && (C = 0), a === 0 && C > 0 && (C -= 2 * Math.PI), a === 1 && C < 0 && (C += 2 * Math.PI), [
			g,
			_,
			o,
			s,
			x,
			C,
			l,
			a
		];
	}
};
Vr.prototype.className = "Path", Vr.prototype._attrsAffectingSize = ["data"], Ne(Vr), z.addGetterSetter(Vr, "data");
//#endregion
//#region ../node_modules/konva/lib/shapes/Arrow.js
var Hr = class extends Mr {
	_sceneFunc(e) {
		super._sceneFunc(e);
		let t = Math.PI * 2, n = this.points(), r = n, i = this.tension() !== 0 && n.length > 4;
		i && (r = this.getTensionPoints());
		let a = this.pointerLength(), o = n.length, s, c;
		if (i) {
			let e = [
				r[r.length - 4],
				r[r.length - 3],
				r[r.length - 2],
				r[r.length - 1],
				n[o - 2],
				n[o - 1]
			], t = Vr.calcLength(r[r.length - 4], r[r.length - 3], "C", e), i = Vr.getPointOnQuadraticBezier(Math.min(1, 1 - a / t), e[0], e[1], e[2], e[3], e[4], e[5]);
			s = n[o - 2] - i.x, c = n[o - 1] - i.y;
		} else s = n[o - 2] - n[o - 4], c = n[o - 1] - n[o - 3];
		let l = (Math.atan2(c, s) + t) % t, u = this.pointerWidth();
		this.pointerAtEnding() && (e.save(), e.beginPath(), e.translate(n[o - 2], n[o - 1]), e.rotate(l), e.moveTo(0, 0), e.lineTo(-a, u / 2), e.lineTo(-a, -u / 2), e.closePath(), e.restore(), this.__fillStroke(e)), this.pointerAtBeginning() && (e.save(), e.beginPath(), e.translate(n[0], n[1]), i ? (s = (r[0] + r[2]) / 2 - n[0], c = (r[1] + r[3]) / 2 - n[1]) : (s = n[2] - n[0], c = n[3] - n[1]), e.rotate((Math.atan2(-c, -s) + t) % t), e.moveTo(0, 0), e.lineTo(-a, u / 2), e.lineTo(-a, -u / 2), e.closePath(), e.restore(), this.__fillStroke(e));
	}
	__fillStroke(e) {
		let t = this.dashEnabled();
		t && (this.attrs.dashEnabled = !1, e.setLineDash([])), e.fillStrokeShape(this), t && (this.attrs.dashEnabled = !0);
	}
	getSelfRect() {
		let e = super.getSelfRect(), t = this.pointerWidth() / 2;
		return {
			x: e.x,
			y: e.y - t,
			width: e.width,
			height: e.height + t * 2
		};
	}
};
Hr.prototype.className = "Arrow", Ne(Hr), z.addGetterSetter(Hr, "pointerLength", 10, R()), z.addGetterSetter(Hr, "pointerWidth", 10, R()), z.addGetterSetter(Hr, "pointerAtBeginning", !1), z.addGetterSetter(Hr, "pointerAtEnding", !0);
//#endregion
//#region ../node_modules/konva/lib/shapes/Circle.js
var Ur = class extends V {
	_sceneFunc(e) {
		e.beginPath(), e.arc(0, 0, this.attrs.radius || 0, 0, Math.PI * 2, !1), e.closePath(), e.fillStrokeShape(this);
	}
	getWidth() {
		return this.radius() * 2;
	}
	getHeight() {
		return this.radius() * 2;
	}
	setWidth(e) {
		this.radius() !== e / 2 && this.radius(e / 2);
	}
	setHeight(e) {
		this.radius() !== e / 2 && this.radius(e / 2);
	}
};
Ur.prototype._centroid = !0, Ur.prototype.className = "Circle", Ur.prototype._attrsAffectingSize = ["radius"], Ne(Ur), z.addGetterSetter(Ur, "radius", 0, R());
//#endregion
//#region ../node_modules/konva/lib/shapes/Ellipse.js
var Wr = class extends V {
	_sceneFunc(e) {
		let t = this.radiusX(), n = this.radiusY();
		e.beginPath(), e.save(), t !== n && e.scale(1, n / t), e.arc(0, 0, t, 0, Math.PI * 2, !1), e.restore(), e.closePath(), e.fillStrokeShape(this);
	}
	getWidth() {
		return this.radiusX() * 2;
	}
	getHeight() {
		return this.radiusY() * 2;
	}
	setWidth(e) {
		this.radiusX(e / 2);
	}
	setHeight(e) {
		this.radiusY(e / 2);
	}
};
Wr.prototype.className = "Ellipse", Wr.prototype._centroid = !0, Wr.prototype._attrsAffectingSize = ["radiusX", "radiusY"], Ne(Wr), z.addComponentsGetterSetter(Wr, "radius", ["x", "y"]), z.addGetterSetter(Wr, "radiusX", 0, R()), z.addGetterSetter(Wr, "radiusY", 0, R());
//#endregion
//#region ../node_modules/konva/lib/shapes/Image.js
var Gr = class e extends V {
	constructor(e) {
		super(e), this._loadListener = () => {
			this._requestDraw();
		}, this.on("imageChange.konva", (e) => {
			this._removeImageLoad(e.oldVal), this._setImageLoad();
		}), this._setImageLoad();
	}
	_setImageLoad() {
		let e = this.image();
		e && e.complete || e && e.readyState === 4 || e && e.addEventListener && e.addEventListener("load", this._loadListener);
	}
	_removeImageLoad(e) {
		e && e.removeEventListener && e.removeEventListener("load", this._loadListener);
	}
	destroy() {
		return this._removeImageLoad(this.image()), super.destroy(), this;
	}
	_useBufferCanvas() {
		let e = !!this.cornerRadius(), t = this.hasShadow();
		return e && t ? !0 : super._useBufferCanvas(!0);
	}
	_sceneFunc(e) {
		let t = this.getWidth(), n = this.getHeight(), r = this.cornerRadius(), i = this.attrs.image, a;
		if (i) {
			let e = this.attrs.cropWidth, r = this.attrs.cropHeight;
			a = e && r ? [
				i,
				this.cropX(),
				this.cropY(),
				e,
				r,
				0,
				0,
				t,
				n
			] : [
				i,
				0,
				0,
				t,
				n
			];
		}
		(this.hasFill() || this.hasStroke() || r) && (e.beginPath(), r ? F.drawRoundedRectPath(e, t, n, r) : e.rect(0, 0, t, n), e.closePath(), e.fillStrokeShape(this)), i && (r && e.clip(), e.drawImage.apply(e, a));
	}
	_hitFunc(e) {
		let t = this.width(), n = this.height(), r = this.cornerRadius();
		e.beginPath(), r ? F.drawRoundedRectPath(e, t, n, r) : e.rect(0, 0, t, n), e.closePath(), e.fillStrokeShape(this);
	}
	getWidth() {
		return this.attrs.width ?? this.image()?.width ?? 0;
	}
	getHeight() {
		return this.attrs.height ?? this.image()?.height ?? 0;
	}
	static fromURL(t, n, r = null) {
		let i = F.createImageElement();
		i.onload = function() {
			n(new e({ image: i }));
		}, i.onerror = r, i.crossOrigin = "Anonymous", i.src = t;
	}
};
Gr.prototype.className = "Image", Gr.prototype._attrsAffectingSize = ["image"], Ne(Gr), z.addGetterSetter(Gr, "cornerRadius", 0, Ct(4)), z.addGetterSetter(Gr, "image"), z.addComponentsGetterSetter(Gr, "crop", [
	"x",
	"y",
	"width",
	"height"
]), z.addGetterSetter(Gr, "cropX", 0, R()), z.addGetterSetter(Gr, "cropY", 0, R()), z.addGetterSetter(Gr, "cropWidth", 0, R()), z.addGetterSetter(Gr, "cropHeight", 0, R());
//#endregion
//#region ../node_modules/konva/lib/shapes/Label.js
var Kr = [
	"fontFamily",
	"fontSize",
	"fontStyle",
	"padding",
	"lineHeight",
	"text",
	"width",
	"height",
	"pointerDirection",
	"pointerWidth",
	"pointerHeight"
], qr = "Change.konva", Jr = "none", Yr = "up", Xr = "right", Zr = "down", Qr = "left", $r = Kr.length, ei = class extends hr {
	constructor(e) {
		super(e), this.on("add.konva", function(e) {
			this._addListeners(e.child), this._sync();
		});
	}
	getText() {
		return this.find("Text")[0];
	}
	getTag() {
		return this.find("Tag")[0];
	}
	_addListeners(e) {
		let t = this, n, r = function() {
			t._sync();
		};
		for (n = 0; n < $r; n++) e.on(Kr[n] + qr, r);
	}
	getWidth() {
		return this.getText().width();
	}
	getHeight() {
		return this.getText().height();
	}
	_sync() {
		let e = this.getText(), t = this.getTag(), n, r, i, a, o, s, c;
		if (e && t) {
			switch (n = e.width(), r = e.height(), i = t.pointerDirection(), a = t.pointerWidth(), c = t.pointerHeight(), o = 0, s = 0, i) {
				case Yr:
					o = n / 2, s = -1 * c;
					break;
				case Xr:
					o = n + a, s = r / 2;
					break;
				case Zr:
					o = n / 2, s = r + c;
					break;
				case Qr:
					o = -1 * a, s = r / 2;
					break;
			}
			t.setAttrs({
				x: -1 * o,
				y: -1 * s,
				width: n,
				height: r
			}), e.setAttrs({
				x: -1 * o,
				y: -1 * s
			});
		}
	}
};
ei.prototype.className = "Label", Ne(ei);
var ti = class extends V {
	_sceneFunc(e) {
		let t = this.width(), n = this.height(), r = this.pointerDirection(), i = this.pointerWidth(), a = this.pointerHeight(), o = this.cornerRadius(), s = 0, c = 0, l = 0, u = 0;
		typeof o == "number" ? s = c = l = u = Math.min(o, t / 2, n / 2) : (s = Math.min(o[0] || 0, t / 2, n / 2), c = Math.min(o[1] || 0, t / 2, n / 2), u = Math.min(o[2] || 0, t / 2, n / 2), l = Math.min(o[3] || 0, t / 2, n / 2)), e.beginPath(), e.moveTo(s, 0), r === Yr && (e.lineTo((t - i) / 2, 0), e.lineTo(t / 2, -1 * a), e.lineTo((t + i) / 2, 0)), e.lineTo(t - c, 0), e.arc(t - c, c, c, Math.PI * 3 / 2, 0, !1), r === Xr && (e.lineTo(t, (n - a) / 2), e.lineTo(t + i, n / 2), e.lineTo(t, (n + a) / 2)), e.lineTo(t, n - u), e.arc(t - u, n - u, u, 0, Math.PI / 2, !1), r === Zr && (e.lineTo((t + i) / 2, n), e.lineTo(t / 2, n + a), e.lineTo((t - i) / 2, n)), e.lineTo(l, n), e.arc(l, n - l, l, Math.PI / 2, Math.PI, !1), r === Qr && (e.lineTo(0, (n + a) / 2), e.lineTo(-1 * i, n / 2), e.lineTo(0, (n - a) / 2)), e.lineTo(0, s), e.arc(s, s, s, Math.PI, Math.PI * 3 / 2, !1), e.closePath(), e.fillStrokeShape(this);
	}
	getSelfRect() {
		let e = 0, t = 0, n = this.pointerWidth(), r = this.pointerHeight(), i = this.pointerDirection(), a = this.width(), o = this.height();
		return i === Yr ? (t -= r, o += r) : i === Zr ? o += r : i === Qr ? (e -= n * 1.5, a += n) : i === Xr && (a += n * 1.5), {
			x: e,
			y: t,
			width: a,
			height: o
		};
	}
};
ti.prototype.className = "Tag", Ne(ti), z.addGetterSetter(ti, "pointerDirection", Jr), z.addGetterSetter(ti, "pointerWidth", 0, R()), z.addGetterSetter(ti, "pointerHeight", 0, R()), z.addGetterSetter(ti, "cornerRadius", 0, Ct(4));
//#endregion
//#region ../node_modules/konva/lib/shapes/Rect.js
var ni = class extends V {
	_sceneFunc(e) {
		let t = this.cornerRadius(), n = this.width(), r = this.height();
		e.beginPath(), t ? F.drawRoundedRectPath(e, n, r, t) : e.rect(0, 0, n, r), e.closePath(), e.fillStrokeShape(this);
	}
};
ni.prototype.className = "Rect", Ne(ni), z.addGetterSetter(ni, "cornerRadius", 0, Ct(4));
//#endregion
//#region ../node_modules/konva/lib/shapes/RegularPolygon.js
var ri = class extends V {
	_sceneFunc(e) {
		let t = this._getPoints(), n = this.radius(), r = this.sides(), i = this.cornerRadius();
		if (e.beginPath(), i) F.drawRoundedPolygonPath(e, t, r, n, i);
		else {
			e.moveTo(t[0].x, t[0].y);
			for (let n = 1; n < t.length; n++) e.lineTo(t[n].x, t[n].y);
		}
		e.closePath(), e.fillStrokeShape(this);
	}
	_getPoints() {
		let e = this.attrs.sides, t = this.attrs.radius || 0, n = [];
		for (let r = 0; r < e; r++) n.push({
			x: t * Math.sin(r * 2 * Math.PI / e),
			y: -1 * t * Math.cos(r * 2 * Math.PI / e)
		});
		return n;
	}
	getSelfRect() {
		let e = this._getPoints(), t = e[0].x, n = e[0].x, r = e[0].y, i = e[0].y;
		return e.forEach((e) => {
			t = Math.min(t, e.x), n = Math.max(n, e.x), r = Math.min(r, e.y), i = Math.max(i, e.y);
		}), {
			x: t,
			y: r,
			width: n - t,
			height: i - r
		};
	}
	getWidth() {
		return this.radius() * 2;
	}
	getHeight() {
		return this.radius() * 2;
	}
	setWidth(e) {
		this.radius(e / 2);
	}
	setHeight(e) {
		this.radius(e / 2);
	}
};
ri.prototype.className = "RegularPolygon", ri.prototype._centroid = !0, ri.prototype._attrsAffectingSize = ["radius"], Ne(ri), z.addGetterSetter(ri, "radius", 0, R()), z.addGetterSetter(ri, "sides", 0, R()), z.addGetterSetter(ri, "cornerRadius", 0, Ct(4));
//#endregion
//#region ../node_modules/konva/lib/shapes/Ring.js
var ii = Math.PI * 2, ai = class extends V {
	_sceneFunc(e) {
		e.beginPath(), e.arc(0, 0, this.innerRadius(), 0, ii, !1), e.moveTo(this.outerRadius(), 0), e.arc(0, 0, this.outerRadius(), ii, 0, !0), e.closePath(), e.fillStrokeShape(this);
	}
	getWidth() {
		return this.outerRadius() * 2;
	}
	getHeight() {
		return this.outerRadius() * 2;
	}
	setWidth(e) {
		this.outerRadius(e / 2);
	}
	setHeight(e) {
		this.outerRadius(e / 2);
	}
};
ai.prototype.className = "Ring", ai.prototype._centroid = !0, ai.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"], Ne(ai), z.addGetterSetter(ai, "innerRadius", 0, R()), z.addGetterSetter(ai, "outerRadius", 0, R());
//#endregion
//#region ../node_modules/konva/lib/shapes/Sprite.js
var oi = class extends V {
	constructor(e) {
		super(e), this._updated = !0, this.anim = new _r(() => {
			let e = this._updated;
			return this._updated = !1, e;
		}), this.on("animationChange.konva", function() {
			this.frameIndex(0);
		}), this.on("frameIndexChange.konva", function() {
			this._updated = !0;
		}), this.on("frameRateChange.konva", function() {
			this.anim.isRunning() && (clearInterval(this.interval), this._setInterval());
		});
	}
	_sceneFunc(e) {
		let t = this.animation(), n = this.frameIndex(), r = n * 4, i = this.animations()[t], a = this.frameOffsets(), o = i[r + 0], s = i[r + 1], c = i[r + 2], l = i[r + 3], u = this.image();
		if ((this.hasFill() || this.hasStroke()) && (e.beginPath(), e.rect(0, 0, c, l), e.closePath(), e.fillStrokeShape(this)), u) if (a) {
			let r = a[t], i = n * 2;
			e.drawImage(u, o, s, c, l, r[i + 0], r[i + 1], c, l);
		} else e.drawImage(u, o, s, c, l, 0, 0, c, l);
	}
	_hitFunc(e) {
		let t = this.animation(), n = this.frameIndex(), r = n * 4, i = this.animations()[t], a = this.frameOffsets(), o = i[r + 2], s = i[r + 3];
		if (e.beginPath(), a) {
			let r = a[t], i = n * 2;
			e.rect(r[i + 0], r[i + 1], o, s);
		} else e.rect(0, 0, o, s);
		e.closePath(), e.fillShape(this);
	}
	_useBufferCanvas() {
		return super._useBufferCanvas(!0);
	}
	_setInterval() {
		let e = this;
		this.interval = setInterval(function() {
			e._updateIndex();
		}, 1e3 / this.frameRate());
	}
	start() {
		if (this.isRunning()) return;
		let e = this.getLayer();
		this.anim.setLayers(e), this._setInterval(), this.anim.start();
	}
	stop() {
		this.anim.stop(), clearInterval(this.interval);
	}
	isRunning() {
		return this.anim.isRunning();
	}
	_updateIndex() {
		let e = this.frameIndex(), t = this.animation();
		e < this.animations()[t].length / 4 - 1 ? this.frameIndex(e + 1) : this.frameIndex(0);
	}
};
oi.prototype.className = "Sprite", Ne(oi), z.addGetterSetter(oi, "animation"), z.addGetterSetter(oi, "animations"), z.addGetterSetter(oi, "frameOffsets"), z.addGetterSetter(oi, "image"), z.addGetterSetter(oi, "frameIndex", 0, R()), z.addGetterSetter(oi, "frameRate", 17, R()), z.backCompat(oi, {
	index: "frameIndex",
	getIndex: "getFrameIndex",
	setIndex: "setFrameIndex"
});
//#endregion
//#region ../node_modules/konva/lib/shapes/Star.js
var si = class extends V {
	_sceneFunc(e) {
		let t = this.innerRadius(), n = this.outerRadius(), r = this.numPoints();
		e.beginPath(), e.moveTo(0, 0 - n);
		for (let i = 1; i < r * 2; i++) {
			let a = i % 2 == 0 ? n : t, o = a * Math.sin(i * Math.PI / r), s = -1 * a * Math.cos(i * Math.PI / r);
			e.lineTo(o, s);
		}
		e.closePath(), e.fillStrokeShape(this);
	}
	getWidth() {
		return this.outerRadius() * 2;
	}
	getHeight() {
		return this.outerRadius() * 2;
	}
	setWidth(e) {
		this.outerRadius(e / 2);
	}
	setHeight(e) {
		this.outerRadius(e / 2);
	}
};
si.prototype.className = "Star", si.prototype._centroid = !0, si.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"], Ne(si), z.addGetterSetter(si, "numPoints", 5, R()), z.addGetterSetter(si, "innerRadius", 0, R()), z.addGetterSetter(si, "outerRadius", 0, R());
//#endregion
//#region ../node_modules/konva/lib/shapes/Text.js
function ci(e) {
	return [...e].reduce((e, t, n, r) => {
		if (/\p{Emoji}/u.test(t)) {
			let i = r[n + 1];
			i && /\p{Emoji_Modifier}|\u200D/u.test(i) ? (e.push(t + i), r[n + 1] = "") : e.push(t);
		} else /\p{Regional_Indicator}{2}/u.test(t + (r[n + 1] || "")) ? e.push(t + r[n + 1]) : n > 0 && /\p{Mn}|\p{Me}|\p{Mc}/u.test(t) ? e[e.length - 1] += t : t && e.push(t);
		return e;
	}, []);
}
var li = "auto", ui = "center", di = "inherit", fi = "justify", pi = "Change.konva", mi = "2d", hi = "-", gi = "left", _i = "text", vi = "Text", yi = "top", bi = "bottom", xi = "middle", Si = "normal", Ci = "px ", wi = " ", Ti = "right", Ei = "rtl", Di = "word", Oi = "char", ki = "none", Ai = "…", ji = [
	"direction",
	"fontFamily",
	"fontSize",
	"fontStyle",
	"fontVariant",
	"padding",
	"align",
	"verticalAlign",
	"lineHeight",
	"text",
	"width",
	"height",
	"wrap",
	"ellipsis",
	"letterSpacing"
], Mi = ji.length;
function Ni(e) {
	return e.split(",").map((e) => {
		e = e.trim();
		let t = e.indexOf(" ") >= 0, n = e.indexOf("\"") >= 0 || e.indexOf("'") >= 0;
		return t && !n && (e = `"${e}"`), e;
	}).join(", ");
}
var Pi;
function Fi() {
	return Pi || (Pi = F.createCanvasElement().getContext(mi), Pi);
}
function Ii(e) {
	e.fillText(this._partialText, this._partialTextX, this._partialTextY);
}
function Li(e) {
	e.setAttr("miterLimit", 2), e.strokeText(this._partialText, this._partialTextX, this._partialTextY);
}
function Ri(e) {
	return e ||= {}, !e.fillLinearGradientColorStops && !e.fillRadialGradientColorStops && !e.fillPatternImage && (e.fill = e.fill || "black"), e;
}
var zi = class extends V {
	constructor(e) {
		super(Ri(e)), this._partialTextX = 0, this._partialTextY = 0;
		for (let e = 0; e < Mi; e++) this.on(ji[e] + pi, this._setTextData);
		this._setTextData();
	}
	_sceneFunc(e) {
		let t = this.textArr, n = t.length;
		if (!this.text()) return;
		let r = this.padding(), i = this.fontSize(), a = this.lineHeight() * i, o = this.verticalAlign(), s = this.direction(), c = 0, l = this.align(), u = this.getWidth(), d = this.letterSpacing(), f = this.charRenderFunc(), p = this.fill(), m = this.textDecoration(), h = this.underlineOffset(), g = m.indexOf("underline") !== -1, _ = m.indexOf("line-through") !== -1, v;
		s = s === di ? e.direction : s;
		let y = a / 2, b = xi;
		if (!P.legacyTextRendering) {
			let e = this.measureSize("M");
			b = "alphabetic", y = ((e.fontBoundingBoxAscent ?? e.actualBoundingBoxAscent) - (e.fontBoundingBoxDescent ?? e.actualBoundingBoxDescent)) / 2 + a / 2;
		}
		for (s === Ei && e.setAttr("direction", s), e.setAttr("font", this._getContextFont()), e.setAttr("textBaseline", b), e.setAttr("textAlign", gi), o === xi ? c = (this.getHeight() - n * a - r * 2) / 2 : o === bi && (c = this.getHeight() - n * a - r * 2), e.translate(r, c + r), v = 0; v < n; v++) {
			let o = 0, c = t[v], m = c.text, b = c.width, x = c.lastInParagraph;
			if (e.save(), l === Ti ? o += u - b - r * 2 : l === ui && (o += (u - b - r * 2) / 2), g) {
				e.save(), e.beginPath();
				let t = h ?? (P.legacyTextRendering ? Math.round(i / 2) : Math.round(i / 4)), n = o, a = y + 0 + t;
				e.moveTo(n, a);
				let s = l === fi && !x ? u - r * 2 : b;
				e.lineTo(n + Math.round(s), a), e.lineWidth = i / 15, e.strokeStyle = this._getLinearGradient() || p, e.stroke(), e.restore();
			}
			let ee = o;
			if (s !== Ei && (d !== 0 || l === fi || f)) {
				let n = m.split(" ").length - 1, i = ci(m);
				for (let a = 0; a < i.length; a++) {
					let s = i[a];
					if (s === " " && !x && l === fi && (o += (u - r * 2 - b) / n), this._partialTextX = o, this._partialTextY = y + 0, this._partialText = s, f) {
						e.save();
						let n = t.slice(0, v).reduce((e, t) => e + ci(t.text).length, 0);
						f({
							char: s,
							index: a + n,
							x: o,
							y: y + 0,
							lineIndex: v,
							column: a,
							isLastInLine: x,
							width: this.measureSize(s).width,
							context: e
						});
					}
					e.fillStrokeShape(this), f && e.restore(), o += this.measureSize(s).width + d;
				}
			} else d !== 0 && e.setAttr("letterSpacing", `${d}px`), this._partialTextX = o, this._partialTextY = y + 0, this._partialText = m, e.fillStrokeShape(this);
			if (_) {
				e.save(), e.beginPath();
				let t = P.legacyTextRendering ? 0 : -Math.round(i / 4), n = ee;
				e.moveTo(n, y + 0 + t);
				let a = l === fi && !x ? u - r * 2 : b;
				e.lineTo(n + Math.round(a), y + 0 + t), e.lineWidth = i / 15, e.strokeStyle = this._getLinearGradient() || p, e.stroke(), e.restore();
			}
			e.restore(), n > 1 && (y += a);
		}
	}
	_hitFunc(e) {
		let t = this.getWidth(), n = this.getHeight();
		e.beginPath(), e.rect(0, 0, t, n), e.closePath(), e.fillStrokeShape(this);
	}
	setText(e) {
		let t = F._isString(e) ? e : e == null ? "" : e + "";
		return this._setAttr(_i, t), this;
	}
	getWidth() {
		return this.attrs.width === li || this.attrs.width === void 0 ? this.getTextWidth() + this.padding() * 2 : this.attrs.width;
	}
	getHeight() {
		return this.attrs.height === li || this.attrs.height === void 0 ? this.fontSize() * this.textArr.length * this.lineHeight() + this.padding() * 2 : this.attrs.height;
	}
	getTextWidth() {
		return this.textWidth;
	}
	getTextHeight() {
		return F.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."), this.textHeight;
	}
	measureSize(e) {
		let t = Fi(), n = this.fontSize(), r;
		t.save(), t.font = this._getContextFont(), r = t.measureText(e), t.restore();
		let i = n / 100;
		return {
			actualBoundingBoxAscent: r.actualBoundingBoxAscent ?? 71.58203125 * i,
			actualBoundingBoxDescent: r.actualBoundingBoxDescent ?? 0,
			actualBoundingBoxLeft: r.actualBoundingBoxLeft ?? -7.421875 * i,
			actualBoundingBoxRight: r.actualBoundingBoxRight ?? 75.732421875 * i,
			alphabeticBaseline: r.alphabeticBaseline ?? 0,
			emHeightAscent: r.emHeightAscent ?? 100 * i,
			emHeightDescent: r.emHeightDescent ?? -20 * i,
			fontBoundingBoxAscent: r.fontBoundingBoxAscent ?? 91 * i,
			fontBoundingBoxDescent: r.fontBoundingBoxDescent ?? 21 * i,
			hangingBaseline: r.hangingBaseline ?? 72.80000305175781 * i,
			ideographicBaseline: r.ideographicBaseline ?? -21 * i,
			width: r.width,
			height: n
		};
	}
	_getContextFont() {
		return this.fontStyle() + wi + this.fontVariant() + wi + (this.fontSize() + Ci) + Ni(this.fontFamily());
	}
	_addTextLine(e) {
		this.align() === fi && (e = e.trim());
		let t = this._getTextWidth(e);
		return this.textArr.push({
			text: e,
			width: t,
			lastInParagraph: !1
		});
	}
	_getTextWidth(e) {
		let t = this.letterSpacing(), n = e.length;
		return Fi().measureText(e).width + t * n;
	}
	_setTextData() {
		let e = this.text().split("\n"), t = +this.fontSize(), n = 0, r = this.lineHeight() * t, i = this.attrs.width, a = this.attrs.height, o = i !== li && i !== void 0, s = a !== li && a !== void 0, c = this.padding(), l = i - c * 2, u = a - c * 2, d = 0, f = this.wrap(), p = f !== Oi && f !== ki, m = this.ellipsis();
		this.textArr = [], Fi().font = this._getContextFont();
		let h = m ? this._getTextWidth(Ai) : 0;
		for (let t = 0, i = e.length; t < i; ++t) {
			let a = e[t], c = this._getTextWidth(a);
			if (o && c > l) for (; a.length > 0;) {
				let e = 0, t = ci(a).length, i = "", o = 0;
				for (; e < t;) {
					let n = e + t >>> 1, c = ci(a).slice(0, n + 1).join(""), f = this._getTextWidth(c);
					(m && s && d + r > u ? f + h : f) <= l ? (e = n + 1, i = c, o = f) : t = n;
				}
				if (i) {
					if (p) {
						let t = ci(a), n = ci(i), r = t[n.length], s = r === wi || r === hi, c;
						if (s && o <= l) c = n.length;
						else {
							let e = n.lastIndexOf(wi), t = n.lastIndexOf(hi);
							c = Math.max(e, t) + 1;
						}
						c > 0 && (e = c, i = t.slice(0, e).join(""), o = this._getTextWidth(i));
					}
					if (i = i.trimRight(), this._addTextLine(i), n = Math.max(n, o), d += r, this._shouldHandleEllipsis(d)) {
						this._tryToAddEllipsisToLastLine();
						break;
					}
					if (a = ci(a).slice(e).join("").trimLeft(), a.length > 0 && (c = this._getTextWidth(a), c <= l)) {
						this._addTextLine(a), d += r, n = Math.max(n, c);
						break;
					}
				} else break;
			}
			else this._addTextLine(a), d += r, n = Math.max(n, c), this._shouldHandleEllipsis(d) && t < i - 1 && this._tryToAddEllipsisToLastLine();
			if (this.textArr[this.textArr.length - 1] && (this.textArr[this.textArr.length - 1].lastInParagraph = !0), s && d + r > u) break;
		}
		this.textHeight = t, this.textWidth = n;
	}
	_shouldHandleEllipsis(e) {
		let t = +this.fontSize(), n = this.lineHeight() * t, r = this.attrs.height, i = r !== li && r !== void 0, a = r - this.padding() * 2;
		return this.wrap() === ki || i && e + n > a;
	}
	_tryToAddEllipsisToLastLine() {
		let e = this.attrs.width, t = e !== li && e !== void 0, n = e - this.padding() * 2, r = this.ellipsis(), i = this.textArr[this.textArr.length - 1];
		!i || !r || (t && (this._getTextWidth(i.text + Ai) < n || (i.text = i.text.slice(0, i.text.length - 3))), this.textArr.splice(this.textArr.length - 1, 1), this._addTextLine(i.text + Ai));
	}
	getStrokeScaleEnabled() {
		return !0;
	}
	_useBufferCanvas() {
		let e = this.textDecoration().indexOf("underline") !== -1 || this.textDecoration().indexOf("line-through") !== -1, t = this.hasShadow();
		return e && t ? !0 : super._useBufferCanvas();
	}
};
zi.prototype._fillFunc = Ii, zi.prototype._strokeFunc = Li, zi.prototype.className = vi, zi.prototype._attrsAffectingSize = [
	"text",
	"fontSize",
	"padding",
	"wrap",
	"lineHeight",
	"letterSpacing"
], Ne(zi), z.overWriteSetter(zi, "width", wt()), z.overWriteSetter(zi, "height", wt()), z.addGetterSetter(zi, "direction", di), z.addGetterSetter(zi, "fontFamily", "Arial"), z.addGetterSetter(zi, "fontSize", 12, R()), z.addGetterSetter(zi, "fontStyle", Si), z.addGetterSetter(zi, "fontVariant", Si), z.addGetterSetter(zi, "padding", 0, R()), z.addGetterSetter(zi, "align", gi), z.addGetterSetter(zi, "verticalAlign", yi), z.addGetterSetter(zi, "lineHeight", 1, R()), z.addGetterSetter(zi, "wrap", Di), z.addGetterSetter(zi, "ellipsis", !1, Ot()), z.addGetterSetter(zi, "letterSpacing", 0, R()), z.addGetterSetter(zi, "text", "", Tt()), z.addGetterSetter(zi, "textDecoration", ""), z.addGetterSetter(zi, "underlineOffset", void 0, R()), z.addGetterSetter(zi, "charRenderFunc", void 0);
//#endregion
//#region ../node_modules/konva/lib/shapes/TextPath.js
var Bi = "", Vi = "normal";
function Hi(e) {
	e.fillText(this.partialText, 0, 0);
}
function Ui(e) {
	e.strokeText(this.partialText, 0, 0);
}
var Wi = class extends V {
	constructor(e) {
		super(e), this.dummyCanvas = F.createCanvasElement(), this.dataArray = [], this._readDataAttribute(), this.on("dataChange.konva", function() {
			this._readDataAttribute(), this._setTextData();
		}), this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva", this._setTextData), this._setTextData();
	}
	_getTextPathLength() {
		return Vr.getPathLength(this.dataArray);
	}
	_getPointAtLength(e) {
		return !this.attrs.data || e > this.pathLength ? null : Vr.getPointAtLengthOfDataArray(e, this.dataArray);
	}
	_readDataAttribute() {
		this.dataArray = Vr.parsePathData(this.attrs.data), this.pathLength = this._getTextPathLength();
	}
	_sceneFunc(e) {
		e.setAttr("font", this._getContextFont()), e.setAttr("textBaseline", this.textBaseline()), e.setAttr("textAlign", "left"), e.save();
		let t = this.textDecoration(), n = this.fill(), r = this.fontSize(), i = this.glyphInfo, a = t.indexOf("underline") !== -1, o = t.indexOf("line-through") !== -1;
		a && e.beginPath();
		for (let t = 0; t < i.length; t++) {
			e.save();
			let n = i[t].p0;
			e.translate(n.x, n.y), e.rotate(i[t].rotation), this.partialText = i[t].text, e.fillStrokeShape(this), a && (t === 0 && e.moveTo(0, r / 2 + 1), e.lineTo(i[t].width, r / 2 + 1)), e.restore();
		}
		if (a && (e.strokeStyle = n, e.lineWidth = r / 20, e.stroke()), o) {
			e.beginPath();
			for (let t = 0; t < i.length; t++) {
				e.save();
				let n = i[t].p0;
				e.translate(n.x, n.y), e.rotate(i[t].rotation), t === 0 && e.moveTo(0, 0), e.lineTo(i[t].width, 0), e.restore();
			}
			e.strokeStyle = n, e.lineWidth = r / 20, e.stroke();
		}
		e.restore();
	}
	_hitFunc(e) {
		e.beginPath();
		let t = this.glyphInfo;
		if (t.length >= 1) {
			let n = t[0].p0;
			e.moveTo(n.x, n.y);
		}
		for (let n = 0; n < t.length; n++) {
			let r = t[n].p1;
			e.lineTo(r.x, r.y);
		}
		e.setAttr("lineWidth", this.fontSize()), e.setAttr("strokeStyle", this.colorKey), e.stroke();
	}
	getTextWidth() {
		return this.textWidth;
	}
	getTextHeight() {
		return F.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."), this.textHeight;
	}
	setText(e) {
		return zi.prototype.setText.call(this, e);
	}
	_getContextFont() {
		return zi.prototype._getContextFont.call(this);
	}
	_getTextSize(e) {
		let t = this.dummyCanvas.getContext("2d");
		t.save(), t.font = this._getContextFont();
		let n = t.measureText(e);
		return t.restore(), {
			width: n.width,
			height: parseInt(`${this.fontSize()}`, 10)
		};
	}
	_setTextData() {
		let e = ci(this.text()), t = [], n = 0;
		for (let r = 0; r < e.length; r++) t.push({
			char: e[r],
			width: this._getTextSize(e[r]).width
		}), n += t[r].width;
		let { width: r, height: i } = this._getTextSize(this.attrs.text);
		if (this.textWidth = n, this.textHeight = i, this.glyphInfo = [], !this.attrs.data) return null;
		let a = this.letterSpacing(), o = this.align(), s = this.kerningFunc(), c = Math.max(0, n - r), l = Math.max(this.textWidth + ((this.attrs.text || "").length - 1) * a, 0), u = 0;
		o === "center" && (u = Math.max(0, this.pathLength / 2 - l / 2)), o === "right" && (u = Math.max(0, this.pathLength - l));
		let d = u;
		for (let n = 0; n < t.length; n++) {
			let r = this._getPointAtLength(d);
			if (!r) return;
			let i = t[n].char, u = t[n].width + a;
			if (i === " " && o === "justify") {
				let e = this.text().split(" ").length - 1;
				u += (this.pathLength - l) / e;
			}
			let f = d + u, p = this._getPointAtLength(f > this.pathLength && f - this.pathLength <= c ? this.pathLength : f);
			if (!p) return;
			let m = Vr.getLineLength(r.x, r.y, p.x, p.y), h = 0;
			if (s) try {
				h = s(t[n - 1].char, i) * this.fontSize();
			} catch {
				h = 0;
			}
			r.x += h, p.x += h, this.textWidth += h;
			let g = Vr.getPointOnLine(h + m / 2, r.x, r.y, p.x, p.y), _ = Math.atan2(p.y - r.y, p.x - r.x);
			this.glyphInfo.push({
				transposeX: g.x,
				transposeY: g.y,
				text: e[n],
				rotation: _,
				p0: r,
				p1: p,
				width: m
			}), d += u;
		}
	}
	getSelfRect() {
		if (!this.glyphInfo.length) return {
			x: 0,
			y: 0,
			width: 0,
			height: 0
		};
		let e = [];
		this.glyphInfo.forEach(function(t) {
			e.push(t.p0.x), e.push(t.p0.y), e.push(t.p1.x), e.push(t.p1.y);
		});
		let t = e[0] || 0, n = e[0] || 0, r = e[1] || 0, i = e[1] || 0, a, o;
		for (let s = 0; s < e.length / 2; s++) a = e[s * 2], o = e[s * 2 + 1], t = Math.min(t, a), n = Math.max(n, a), r = Math.min(r, o), i = Math.max(i, o);
		let s = this.fontSize();
		return {
			x: t - s / 2,
			y: r - s / 2,
			width: n - t + s,
			height: i - r + s
		};
	}
	destroy() {
		return F.releaseCanvas(this.dummyCanvas), super.destroy();
	}
};
Wi.prototype._fillFunc = Hi, Wi.prototype._strokeFunc = Ui, Wi.prototype._fillFuncHit = Hi, Wi.prototype._strokeFuncHit = Ui, Wi.prototype.className = "TextPath", Wi.prototype._attrsAffectingSize = [
	"text",
	"fontSize",
	"data"
], Ne(Wi), z.addGetterSetter(Wi, "data"), z.addGetterSetter(Wi, "fontFamily", "Arial"), z.addGetterSetter(Wi, "fontSize", 12, R()), z.addGetterSetter(Wi, "fontStyle", Vi), z.addGetterSetter(Wi, "align", "left"), z.addGetterSetter(Wi, "letterSpacing", 0, R()), z.addGetterSetter(Wi, "textBaseline", "middle"), z.addGetterSetter(Wi, "fontVariant", Vi), z.addGetterSetter(Wi, "text", Bi), z.addGetterSetter(Wi, "textDecoration", ""), z.addGetterSetter(Wi, "kerningFunc", void 0);
//#endregion
//#region ../node_modules/konva/lib/shapes/Transformer.js
var Gi = "tr-konva", Ki = [
	"resizeEnabledChange",
	"rotateAnchorOffsetChange",
	"rotateAnchorAngleChange",
	"rotateEnabledChange",
	"enabledAnchorsChange",
	"anchorSizeChange",
	"borderEnabledChange",
	"borderStrokeChange",
	"borderStrokeWidthChange",
	"borderDashChange",
	"anchorStrokeChange",
	"anchorStrokeWidthChange",
	"anchorFillChange",
	"anchorCornerRadiusChange",
	"ignoreStrokeChange",
	"anchorStyleFuncChange"
].map((e) => e + `.${Gi}`).join(" "), qi = "nodesRect", Ji = [
	"widthChange",
	"heightChange",
	"scaleXChange",
	"scaleYChange",
	"skewXChange",
	"skewYChange",
	"rotationChange",
	"offsetXChange",
	"offsetYChange",
	"transformsEnabledChange",
	"strokeWidthChange",
	"draggableChange"
], Yi = {
	"top-left": -45,
	"top-center": 0,
	"top-right": 45,
	"middle-right": -90,
	"middle-left": 90,
	"bottom-left": -135,
	"bottom-center": 180,
	"bottom-right": 135
}, Xi = "ontouchstart" in P._global;
function Zi(e, t, n) {
	if (e === "rotater") return n;
	t += F.degToRad(Yi[e] || 0);
	let r = (F.radToDeg(t) % 360 + 360) % 360;
	return F._inRange(r, 337.5, 360) || F._inRange(r, 0, 22.5) ? "ns-resize" : F._inRange(r, 22.5, 67.5) ? "nesw-resize" : F._inRange(r, 67.5, 112.5) ? "ew-resize" : F._inRange(r, 112.5, 157.5) ? "nwse-resize" : F._inRange(r, 157.5, 202.5) ? "ns-resize" : F._inRange(r, 202.5, 247.5) ? "nesw-resize" : F._inRange(r, 247.5, 292.5) ? "ew-resize" : F._inRange(r, 292.5, 337.5) ? "nwse-resize" : (F.error("Transformer has unknown angle for cursor detection: " + r), "pointer");
}
var Qi = [
	"top-left",
	"top-center",
	"top-right",
	"middle-right",
	"middle-left",
	"bottom-left",
	"bottom-center",
	"bottom-right"
], $i = 1e8;
function ea(e) {
	return {
		x: e.x + e.width / 2 * Math.cos(e.rotation) + e.height / 2 * Math.sin(-e.rotation),
		y: e.y + e.height / 2 * Math.cos(e.rotation) + e.width / 2 * Math.sin(e.rotation)
	};
}
function ta(e, t, n) {
	let r = n.x + (e.x - n.x) * Math.cos(t) - (e.y - n.y) * Math.sin(t), i = n.y + (e.x - n.x) * Math.sin(t) + (e.y - n.y) * Math.cos(t);
	return {
		...e,
		rotation: e.rotation + t,
		x: r,
		y: i
	};
}
function na(e, t) {
	return ta(e, t, ea(e));
}
function ra(e, t, n) {
	let r = t;
	for (let i = 0; i < e.length; i++) {
		let a = P.getAngle(e[i]), o = Math.abs(a - t) % (Math.PI * 2);
		Math.min(o, Math.PI * 2 - o) < n && (r = a);
	}
	return r;
}
var ia = 0, aa = class extends hr {
	constructor(e) {
		super(e), this._movingAnchorName = null, this._transforming = !1, this._elementsCreated = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(Ki, this.update), this.getNode() && this.update();
	}
	attachTo(e) {
		return this.setNode(e), this;
	}
	setNode(e) {
		return F.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."), this.setNodes([e]);
	}
	getNode() {
		return this._nodes && this._nodes[0];
	}
	_getEventNamespace() {
		return Gi + this._id;
	}
	setNodes(e = []) {
		return this._nodes && this._nodes.length && this.detach(), this._nodes = e = e.filter((e) => e.isAncestorOf(this) ? (F.error("Konva.Transformer cannot be an a child of the node you are trying to attach"), !1) : !0), e.length === 1 && this.useSingleNodeRotation() ? this.rotation(e[0].getAbsoluteRotation()) : this.rotation(0), this._nodes.forEach((e) => {
			let t = () => {
				this.nodes().length === 1 && this.useSingleNodeRotation() && this.rotation(this.nodes()[0].getAbsoluteRotation()), this._resetTransformCache(), !this._transforming && !this.isDragging() && this.update();
			};
			if (e._attrsAffectingSize.length) {
				let n = e._attrsAffectingSize.map((e) => e + "Change." + this._getEventNamespace()).join(" ");
				e.on(n, t);
			}
			e.on(Ji.map((e) => e + `.${this._getEventNamespace()}`).join(" "), t), e.on(`absoluteTransformChange.${this._getEventNamespace()}`, t), this._proxyDrag(e);
		}), this._resetTransformCache(), this.findOne(".top-left") && this.update(), this;
	}
	_proxyDrag(e) {
		let t;
		e.on(`dragstart.${this._getEventNamespace()}`, (n) => {
			t = e.getAbsolutePosition(), !this.isDragging() && e !== this.findOne(".back") && this.startDrag(n, !1);
		}), e.on(`dragmove.${this._getEventNamespace()}`, (n) => {
			if (!t) return;
			let r = e.getAbsolutePosition(), i = r.x - t.x, a = r.y - t.y;
			this.nodes().forEach((t) => {
				if (t === e || t.isDragging()) return;
				let r = t.getAbsolutePosition();
				t.setAbsolutePosition({
					x: r.x + i,
					y: r.y + a
				}), t.startDrag(n);
			}), t = null;
		});
	}
	getNodes() {
		return this._nodes || [];
	}
	getActiveAnchor() {
		return this._movingAnchorName;
	}
	detach() {
		this._nodes && this._nodes.forEach((e) => {
			e.off("." + this._getEventNamespace());
		}), this._nodes = [], this._resetTransformCache();
	}
	_resetTransformCache() {
		this._clearCache(qi), this._clearCache("transform"), this._clearSelfAndDescendantCache("absoluteTransform");
	}
	_getNodeRect() {
		return this._getCache(qi, this.__getNodeRect);
	}
	__getNodeShape(e, t = this.rotation(), n) {
		let r = e.getClientRect({
			skipTransform: !0,
			skipShadow: !0,
			skipStroke: this.ignoreStroke()
		}), i = e.getAbsoluteScale(n), a = e.getAbsolutePosition(n), o = r.x * i.x - e.offsetX() * i.x, s = r.y * i.y - e.offsetY() * i.y, c = (P.getAngle(e.getAbsoluteRotation()) + Math.PI * 2) % (Math.PI * 2);
		return ta({
			x: a.x + o * Math.cos(c) + s * Math.sin(-c),
			y: a.y + s * Math.cos(c) + o * Math.sin(c),
			width: r.width * i.x,
			height: r.height * i.y,
			rotation: c
		}, -P.getAngle(t), {
			x: 0,
			y: 0
		});
	}
	__getNodeRect() {
		if (!this.getNode()) return {
			x: -$i,
			y: -$i,
			width: 0,
			height: 0,
			rotation: 0
		};
		let e = [];
		this.nodes().map((t) => {
			let n = t.getClientRect({
				skipTransform: !0,
				skipShadow: !0,
				skipStroke: this.ignoreStroke()
			}), r = [
				{
					x: n.x,
					y: n.y
				},
				{
					x: n.x + n.width,
					y: n.y
				},
				{
					x: n.x + n.width,
					y: n.y + n.height
				},
				{
					x: n.x,
					y: n.y + n.height
				}
			], i = t.getAbsoluteTransform();
			r.forEach(function(t) {
				let n = i.point(t);
				e.push(n);
			});
		});
		let t = new Ie();
		t.rotate(-P.getAngle(this.rotation()));
		let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
		e.forEach(function(e) {
			let o = t.point(e);
			n === void 0 && (n = i = o.x, r = a = o.y), n = Math.min(n, o.x), r = Math.min(r, o.y), i = Math.max(i, o.x), a = Math.max(a, o.y);
		}), t.invert();
		let o = t.point({
			x: n,
			y: r
		});
		return {
			x: o.x,
			y: o.y,
			width: i - n,
			height: a - r,
			rotation: P.getAngle(this.rotation())
		};
	}
	getX() {
		return this._getNodeRect().x;
	}
	getY() {
		return this._getNodeRect().y;
	}
	getWidth() {
		return this._getNodeRect().width;
	}
	getHeight() {
		return this._getNodeRect().height;
	}
	_createElements() {
		this._createBack(), Qi.forEach((e) => {
			this._createAnchor(e);
		}), this._createAnchor("rotater"), this._elementsCreated = !0;
	}
	_createAnchor(e) {
		let t = new ni({
			stroke: "rgb(0, 161, 255)",
			fill: "white",
			strokeWidth: 1,
			name: e + " _anchor",
			dragDistance: 0,
			draggable: !0,
			hitStrokeWidth: Xi ? 10 : "auto"
		}), n = this;
		t.on("mousedown touchstart", function(e) {
			n._handleMouseDown(e);
		}), t.on("dragstart", (e) => {
			t.stopDrag(), e.cancelBubble = !0;
		}), t.on("dragend", (e) => {
			e.cancelBubble = !0;
		}), t.on("mouseenter", () => {
			let n = Zi(e, P.getAngle(this.rotation()), this.rotateAnchorCursor());
			t.getStage().content && (t.getStage().content.style.cursor = n), this._cursorChange = !0;
		}), t.on("mouseout", () => {
			t.getStage().content && (t.getStage().content.style.cursor = ""), this._cursorChange = !1;
		}), this.add(t);
	}
	_createBack() {
		let e = new V({
			name: "back",
			width: 0,
			height: 0,
			sceneFunc(e, t) {
				let n = t.getParent(), r = n.padding(), i = t.width(), a = t.height();
				if (e.beginPath(), e.rect(-r, -r, i + r * 2, a + r * 2), n.rotateEnabled() && n.rotateLineVisible()) {
					let t = n.rotateAnchorAngle(), r = n.rotateAnchorOffset(), o = F.degToRad(t), s = Math.sin(o), c = -Math.cos(o), l = i / 2, u = a / 2, d = Infinity;
					c < 0 ? d = Math.min(d, -u / c) : c > 0 && (d = Math.min(d, (a - u) / c)), s < 0 ? d = Math.min(d, -l / s) : s > 0 && (d = Math.min(d, (i - l) / s));
					let f = l + s * d, p = u + c * d, m = F._sign(a), h = f + s * r * m, g = p + c * r * m;
					e.moveTo(f, p), e.lineTo(h, g);
				}
				e.fillStrokeShape(t);
			},
			hitFunc: (e, t) => {
				if (!this.shouldOverdrawWholeArea()) return;
				let n = this.padding();
				e.beginPath(), e.rect(-n, -n, t.width() + n * 2, t.height() + n * 2), e.fillStrokeShape(t);
			}
		});
		this.add(e), this._proxyDrag(e), e.on("dragstart", (e) => {
			e.cancelBubble = !0;
		}), e.on("dragmove", (e) => {
			e.cancelBubble = !0;
		}), e.on("dragend", (e) => {
			e.cancelBubble = !0;
		}), this.on("dragmove", (e) => {
			this.update();
		});
	}
	_handleMouseDown(e) {
		if (this._transforming) return;
		this._movingAnchorName = e.target.name().split(" ")[0];
		let t = this._getNodeRect(), n = t.width, r = t.height, i = Math.sqrt(n ** 2 + r ** 2);
		this.sin = Math.abs(r / i), this.cos = Math.abs(n / i), typeof window < "u" && (window.addEventListener("mousemove", this._handleMouseMove), window.addEventListener("touchmove", this._handleMouseMove), window.addEventListener("mouseup", this._handleMouseUp, !0), window.addEventListener("touchend", this._handleMouseUp, !0)), this._transforming = !0;
		let a = e.target.getAbsolutePosition(), o = e.target.getStage().getPointerPosition();
		this._anchorDragOffset = {
			x: o.x - a.x,
			y: o.y - a.y
		}, ia++, this._fire("transformstart", {
			evt: e.evt,
			target: this.getNode()
		}), this._nodes.forEach((t) => {
			t._fire("transformstart", {
				evt: e.evt,
				target: t
			});
		});
	}
	_handleMouseMove(e) {
		let t, n, r, i = this.findOne("." + this._movingAnchorName), a = i.getStage();
		a.setPointersPositions(e);
		let o = a.getPointerPosition(), s = {
			x: o.x - this._anchorDragOffset.x,
			y: o.y - this._anchorDragOffset.y
		}, c = i.getAbsolutePosition();
		this.anchorDragBoundFunc() && (s = this.anchorDragBoundFunc()(c, s, e)), i.setAbsolutePosition(s);
		let l = i.getAbsolutePosition();
		if (c.x === l.x && c.y === l.y) return;
		if (this._movingAnchorName === "rotater") {
			let r = this._getNodeRect();
			t = i.x() - r.width / 2, n = -i.y() + r.height / 2;
			let a = P.getAngle(this.rotateAnchorAngle()), o = Math.atan2(-n, t) + Math.PI / 2 - a;
			r.height < 0 && (o -= Math.PI);
			let s = P.getAngle(this.rotation()) + o, c = P.getAngle(this.rotationSnapTolerance()), l = na(r, ra(this.rotationSnaps(), s, c) - r.rotation);
			this._fitNodesInto(l, e);
			return;
		}
		let u = this.shiftBehavior(), d;
		d = u === "inverted" ? this.keepRatio() && !e.shiftKey : u === "none" ? this.keepRatio() : this.keepRatio() || e.shiftKey;
		let f = this.centeredScaling() || e.altKey;
		if (this._movingAnchorName === "top-left") {
			if (d) {
				let e = f ? {
					x: this.width() / 2,
					y: this.height() / 2
				} : {
					x: this.findOne(".bottom-right").x(),
					y: this.findOne(".bottom-right").y()
				};
				r = Math.sqrt((e.x - i.x()) ** 2 + (e.y - i.y()) ** 2);
				let a = this.findOne(".top-left").x() > e.x ? -1 : 1, o = this.findOne(".top-left").y() > e.y ? -1 : 1;
				t = r * this.cos * a, n = r * this.sin * o, this.findOne(".top-left").x(e.x - t), this.findOne(".top-left").y(e.y - n);
			}
		} else if (this._movingAnchorName === "top-center") this.findOne(".top-left").y(i.y());
		else if (this._movingAnchorName === "top-right") {
			if (d) {
				let e = f ? {
					x: this.width() / 2,
					y: this.height() / 2
				} : {
					x: this.findOne(".bottom-left").x(),
					y: this.findOne(".bottom-left").y()
				};
				r = Math.sqrt((i.x() - e.x) ** 2 + (e.y - i.y()) ** 2);
				let a = this.findOne(".top-right").x() < e.x ? -1 : 1, o = this.findOne(".top-right").y() > e.y ? -1 : 1;
				t = r * this.cos * a, n = r * this.sin * o, this.findOne(".top-right").x(e.x + t), this.findOne(".top-right").y(e.y - n);
			}
			var p = i.position();
			this.findOne(".top-left").y(p.y), this.findOne(".bottom-right").x(p.x);
		} else if (this._movingAnchorName === "middle-left") this.findOne(".top-left").x(i.x());
		else if (this._movingAnchorName === "middle-right") this.findOne(".bottom-right").x(i.x());
		else if (this._movingAnchorName === "bottom-left") {
			if (d) {
				let e = f ? {
					x: this.width() / 2,
					y: this.height() / 2
				} : {
					x: this.findOne(".top-right").x(),
					y: this.findOne(".top-right").y()
				};
				r = Math.sqrt((e.x - i.x()) ** 2 + (i.y() - e.y) ** 2);
				let a = e.x < i.x() ? -1 : 1, o = i.y() < e.y ? -1 : 1;
				t = r * this.cos * a, n = r * this.sin * o, i.x(e.x - t), i.y(e.y + n);
			}
			p = i.position(), this.findOne(".top-left").x(p.x), this.findOne(".bottom-right").y(p.y);
		} else if (this._movingAnchorName === "bottom-center") this.findOne(".bottom-right").y(i.y());
		else if (this._movingAnchorName === "bottom-right") {
			if (d) {
				let e = f ? {
					x: this.width() / 2,
					y: this.height() / 2
				} : {
					x: this.findOne(".top-left").x(),
					y: this.findOne(".top-left").y()
				};
				r = Math.sqrt((i.x() - e.x) ** 2 + (i.y() - e.y) ** 2);
				let a = this.findOne(".bottom-right").x() < e.x ? -1 : 1, o = this.findOne(".bottom-right").y() < e.y ? -1 : 1;
				t = r * this.cos * a, n = r * this.sin * o, this.findOne(".bottom-right").x(e.x + t), this.findOne(".bottom-right").y(e.y + n);
			}
		} else console.error(/* @__PURE__ */ Error("Wrong position argument of selection resizer: " + this._movingAnchorName));
		if (f = this.centeredScaling() || e.altKey, f) {
			let e = this.findOne(".top-left"), t = this.findOne(".bottom-right"), n = e.x(), r = e.y(), i = this.getWidth() - t.x(), a = this.getHeight() - t.y();
			t.move({
				x: -n,
				y: -r
			}), e.move({
				x: i,
				y: a
			});
		}
		let m = this.findOne(".top-left").getAbsolutePosition();
		t = m.x, n = m.y;
		let h = this.findOne(".bottom-right").x() - this.findOne(".top-left").x(), g = this.findOne(".bottom-right").y() - this.findOne(".top-left").y();
		this._fitNodesInto({
			x: t,
			y: n,
			width: h,
			height: g,
			rotation: P.getAngle(this.rotation())
		}, e);
	}
	_handleMouseUp(e) {
		this._removeEvents(e);
	}
	getAbsoluteTransform() {
		return this.getTransform();
	}
	_removeEvents(e) {
		var t;
		if (this._transforming) {
			this._transforming = !1, typeof window < "u" && (window.removeEventListener("mousemove", this._handleMouseMove), window.removeEventListener("touchmove", this._handleMouseMove), window.removeEventListener("mouseup", this._handleMouseUp, !0), window.removeEventListener("touchend", this._handleMouseUp, !0));
			let n = this.getNode();
			ia--, this._fire("transformend", {
				evt: e,
				target: n
			}), (t = this.getLayer()) == null || t.batchDraw(), n && this._nodes.forEach((t) => {
				var n;
				t._fire("transformend", {
					evt: e,
					target: t
				}), (n = t.getLayer()) == null || n.batchDraw();
			}), this._movingAnchorName = null;
		}
	}
	_fitNodesInto(e, t) {
		let n = this._getNodeRect();
		if (F._inRange(e.width, -this.padding() * 2 - 1, 1)) {
			this.update();
			return;
		}
		if (F._inRange(e.height, -this.padding() * 2 - 1, 1)) {
			this.update();
			return;
		}
		let r = new Ie();
		if (r.rotate(P.getAngle(this.rotation())), this._movingAnchorName && e.width < 0 && this._movingAnchorName.indexOf("left") >= 0) {
			let t = r.point({
				x: -this.padding() * 2,
				y: 0
			});
			e.x += t.x, e.y += t.y, e.width += this.padding() * 2, this._movingAnchorName = this._movingAnchorName.replace("left", "right"), this._anchorDragOffset.x -= t.x, this._anchorDragOffset.y -= t.y;
		} else if (this._movingAnchorName && e.width < 0 && this._movingAnchorName.indexOf("right") >= 0) {
			let t = r.point({
				x: this.padding() * 2,
				y: 0
			});
			this._movingAnchorName = this._movingAnchorName.replace("right", "left"), this._anchorDragOffset.x -= t.x, this._anchorDragOffset.y -= t.y, e.width += this.padding() * 2;
		}
		if (this._movingAnchorName && e.height < 0 && this._movingAnchorName.indexOf("top") >= 0) {
			let t = r.point({
				x: 0,
				y: -this.padding() * 2
			});
			e.x += t.x, e.y += t.y, this._movingAnchorName = this._movingAnchorName.replace("top", "bottom"), this._anchorDragOffset.x -= t.x, this._anchorDragOffset.y -= t.y, e.height += this.padding() * 2;
		} else if (this._movingAnchorName && e.height < 0 && this._movingAnchorName.indexOf("bottom") >= 0) {
			let t = r.point({
				x: 0,
				y: this.padding() * 2
			});
			this._movingAnchorName = this._movingAnchorName.replace("bottom", "top"), this._anchorDragOffset.x -= t.x, this._anchorDragOffset.y -= t.y, e.height += this.padding() * 2;
		}
		if (this.boundBoxFunc()) {
			let t = this.boundBoxFunc()(n, e);
			t ? e = t : F.warn("boundBoxFunc returned falsy. You should return new bound rect from it!");
		}
		let i = 1e7, a = new Ie();
		a.translate(n.x, n.y), a.rotate(n.rotation), a.scale(n.width / i, n.height / i);
		let o = new Ie(), s = e.width / i, c = e.height / i;
		this.flipEnabled() === !1 ? (o.translate(e.x, e.y), o.rotate(e.rotation), o.translate(e.width < 0 ? e.width : 0, e.height < 0 ? e.height : 0), o.scale(Math.abs(s), Math.abs(c))) : (o.translate(e.x, e.y), o.rotate(e.rotation), o.scale(s, c));
		let l = o.multiply(a.invert());
		this._nodes.forEach((e) => {
			var t;
			if (!e.getStage()) return;
			let n = e.getParent().getAbsoluteTransform(), r = e.getTransform().copy();
			r.translate(e.offsetX(), e.offsetY());
			let i = new Ie();
			i.multiply(n.copy().invert()).multiply(l).multiply(n).multiply(r);
			let a = i.decompose();
			e.setAttrs(a), (t = e.getLayer()) == null || t.batchDraw();
		}), this.rotation(F._getRotation(e.rotation)), this._nodes.forEach((e) => {
			this._fire("transform", {
				evt: t,
				target: e
			}), e._fire("transform", {
				evt: t,
				target: e
			});
		}), this._resetTransformCache(), this.update(), this.getLayer().batchDraw();
	}
	forceUpdate() {
		this._resetTransformCache(), this.update();
	}
	_batchChangeChild(e, t) {
		this.findOne(e).setAttrs(t);
	}
	update() {
		var e;
		let t = this._getNodeRect();
		this.rotation(F._getRotation(t.rotation));
		let n = t.width, r = t.height, i = this.enabledAnchors(), a = this.resizeEnabled(), o = this.padding(), s = this.anchorSize(), c = this.find("._anchor");
		c.forEach((e) => {
			e.setAttrs({
				width: s,
				height: s,
				offsetX: s / 2,
				offsetY: s / 2,
				stroke: this.anchorStroke(),
				strokeWidth: this.anchorStrokeWidth(),
				fill: this.anchorFill(),
				cornerRadius: this.anchorCornerRadius()
			});
		}), this._batchChangeChild(".top-left", {
			x: 0,
			y: 0,
			offsetX: s / 2 + o,
			offsetY: s / 2 + o,
			visible: a && i.indexOf("top-left") >= 0
		}), this._batchChangeChild(".top-center", {
			x: n / 2,
			y: 0,
			offsetY: s / 2 + o,
			visible: a && i.indexOf("top-center") >= 0
		}), this._batchChangeChild(".top-right", {
			x: n,
			y: 0,
			offsetX: s / 2 - o,
			offsetY: s / 2 + o,
			visible: a && i.indexOf("top-right") >= 0
		}), this._batchChangeChild(".middle-left", {
			x: 0,
			y: r / 2,
			offsetX: s / 2 + o,
			visible: a && i.indexOf("middle-left") >= 0
		}), this._batchChangeChild(".middle-right", {
			x: n,
			y: r / 2,
			offsetX: s / 2 - o,
			visible: a && i.indexOf("middle-right") >= 0
		}), this._batchChangeChild(".bottom-left", {
			x: 0,
			y: r,
			offsetX: s / 2 + o,
			offsetY: s / 2 - o,
			visible: a && i.indexOf("bottom-left") >= 0
		}), this._batchChangeChild(".bottom-center", {
			x: n / 2,
			y: r,
			offsetY: s / 2 - o,
			visible: a && i.indexOf("bottom-center") >= 0
		}), this._batchChangeChild(".bottom-right", {
			x: n,
			y: r,
			offsetX: s / 2 - o,
			offsetY: s / 2 - o,
			visible: a && i.indexOf("bottom-right") >= 0
		});
		let l = this.rotateAnchorAngle(), u = this.rotateAnchorOffset(), d = F.degToRad(l), f = Math.sin(d), p = -Math.cos(d), m = n / 2, h = r / 2, g = Infinity;
		p < 0 ? g = Math.min(g, -h / p) : p > 0 && (g = Math.min(g, (r - h) / p)), f < 0 ? g = Math.min(g, -m / f) : f > 0 && (g = Math.min(g, (n - m) / f));
		let _ = m + f * g, v = h + p * g, y = F._sign(r);
		this._batchChangeChild(".rotater", {
			x: _ + f * u * y,
			y: v + p * u * y - o * p,
			visible: this.rotateEnabled()
		}), this._batchChangeChild(".back", {
			width: n,
			height: r,
			visible: this.borderEnabled(),
			stroke: this.borderStroke(),
			strokeWidth: this.borderStrokeWidth(),
			dash: this.borderDash(),
			draggable: this.nodes().some((e) => e.draggable()),
			x: 0,
			y: 0
		});
		let b = this.anchorStyleFunc();
		b && c.forEach((e) => {
			b(e);
		}), (e = this.getLayer()) == null || e.batchDraw();
	}
	isTransforming() {
		return this._transforming;
	}
	stopTransform() {
		if (this._transforming) {
			this._removeEvents();
			let e = this.findOne("." + this._movingAnchorName);
			e && e.stopDrag();
		}
	}
	destroy() {
		return this.getStage() && this._cursorChange && this.getStage().content && (this.getStage().content.style.cursor = ""), hr.prototype.destroy.call(this), this.detach(), this._removeEvents(), this;
	}
	add(...e) {
		return this._elementsCreated ? (F.error("You cannot add external nodes to the Transformer. Use tr.nodes([node]) instead."), this) : super.add(...e);
	}
	toObject() {
		return B.prototype.toObject.call(this);
	}
	clone(e) {
		return B.prototype.clone.call(this, e);
	}
	getClientRect() {
		return this.nodes().length > 0 ? super.getClientRect() : {
			x: 0,
			y: 0,
			width: 0,
			height: 0
		};
	}
};
aa.isTransforming = () => ia > 0;
function oa(e) {
	return e instanceof Array || F.warn("enabledAnchors value should be an array"), e instanceof Array && e.forEach(function(e) {
		Qi.indexOf(e) === -1 && F.warn("Unknown anchor name: " + e + ". Available names are: " + Qi.join(", "));
	}), e || [];
}
aa.prototype.className = "Transformer", Ne(aa), z.addGetterSetter(aa, "enabledAnchors", Qi, oa), z.addGetterSetter(aa, "flipEnabled", !0, Ot()), z.addGetterSetter(aa, "resizeEnabled", !0), z.addGetterSetter(aa, "anchorSize", 10, R()), z.addGetterSetter(aa, "rotateEnabled", !0), z.addGetterSetter(aa, "rotateLineVisible", !0), z.addGetterSetter(aa, "rotationSnaps", []), z.addGetterSetter(aa, "rotateAnchorOffset", 50, R()), z.addGetterSetter(aa, "rotateAnchorAngle", 0, R()), z.addGetterSetter(aa, "rotateAnchorCursor", "crosshair"), z.addGetterSetter(aa, "rotationSnapTolerance", 5, R()), z.addGetterSetter(aa, "borderEnabled", !0), z.addGetterSetter(aa, "anchorStroke", "rgb(0, 161, 255)"), z.addGetterSetter(aa, "anchorStrokeWidth", 1, R()), z.addGetterSetter(aa, "anchorFill", "white"), z.addGetterSetter(aa, "anchorCornerRadius", 0, R()), z.addGetterSetter(aa, "borderStroke", "rgb(0, 161, 255)"), z.addGetterSetter(aa, "borderStrokeWidth", 1, R()), z.addGetterSetter(aa, "borderDash"), z.addGetterSetter(aa, "keepRatio", !0), z.addGetterSetter(aa, "shiftBehavior", "default"), z.addGetterSetter(aa, "centeredScaling", !1), z.addGetterSetter(aa, "ignoreStroke", !1), z.addGetterSetter(aa, "padding", 0, R()), z.addGetterSetter(aa, "nodes"), z.addGetterSetter(aa, "node"), z.addGetterSetter(aa, "boundBoxFunc"), z.addGetterSetter(aa, "anchorDragBoundFunc"), z.addGetterSetter(aa, "anchorStyleFunc"), z.addGetterSetter(aa, "shouldOverdrawWholeArea", !1), z.addGetterSetter(aa, "useSingleNodeRotation", !0), z.backCompat(aa, {
	lineEnabled: "borderEnabled",
	rotateHandlerOffset: "rotateAnchorOffset",
	enabledHandlers: "enabledAnchors"
});
//#endregion
//#region ../node_modules/konva/lib/shapes/Wedge.js
var sa = class extends V {
	_sceneFunc(e) {
		e.beginPath(), e.arc(0, 0, this.radius(), 0, P.getAngle(this.angle()), this.clockwise()), e.lineTo(0, 0), e.closePath(), e.fillStrokeShape(this);
	}
	getWidth() {
		return this.radius() * 2;
	}
	getHeight() {
		return this.radius() * 2;
	}
	setWidth(e) {
		this.radius(e / 2);
	}
	setHeight(e) {
		this.radius(e / 2);
	}
};
sa.prototype.className = "Wedge", sa.prototype._centroid = !0, sa.prototype._attrsAffectingSize = ["radius"], Ne(sa), z.addGetterSetter(sa, "radius", 0, R()), z.addGetterSetter(sa, "angle", 0, R()), z.addGetterSetter(sa, "clockwise", !1), z.backCompat(sa, {
	angleDeg: "angle",
	getAngleDeg: "getAngle",
	setAngleDeg: "setAngle"
});
//#endregion
//#region ../node_modules/konva/lib/filters/Blur.js
function ca() {
	this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
}
var U = [
	512,
	512,
	456,
	512,
	328,
	456,
	335,
	512,
	405,
	328,
	271,
	456,
	388,
	335,
	292,
	512,
	454,
	405,
	364,
	328,
	298,
	271,
	496,
	456,
	420,
	388,
	360,
	335,
	312,
	292,
	273,
	512,
	482,
	454,
	428,
	405,
	383,
	364,
	345,
	328,
	312,
	298,
	284,
	271,
	259,
	496,
	475,
	456,
	437,
	420,
	404,
	388,
	374,
	360,
	347,
	335,
	323,
	312,
	302,
	292,
	282,
	273,
	265,
	512,
	497,
	482,
	468,
	454,
	441,
	428,
	417,
	405,
	394,
	383,
	373,
	364,
	354,
	345,
	337,
	328,
	320,
	312,
	305,
	298,
	291,
	284,
	278,
	271,
	265,
	259,
	507,
	496,
	485,
	475,
	465,
	456,
	446,
	437,
	428,
	420,
	412,
	404,
	396,
	388,
	381,
	374,
	367,
	360,
	354,
	347,
	341,
	335,
	329,
	323,
	318,
	312,
	307,
	302,
	297,
	292,
	287,
	282,
	278,
	273,
	269,
	265,
	261,
	512,
	505,
	497,
	489,
	482,
	475,
	468,
	461,
	454,
	447,
	441,
	435,
	428,
	422,
	417,
	411,
	405,
	399,
	394,
	389,
	383,
	378,
	373,
	368,
	364,
	359,
	354,
	350,
	345,
	341,
	337,
	332,
	328,
	324,
	320,
	316,
	312,
	309,
	305,
	301,
	298,
	294,
	291,
	287,
	284,
	281,
	278,
	274,
	271,
	268,
	265,
	262,
	259,
	257,
	507,
	501,
	496,
	491,
	485,
	480,
	475,
	470,
	465,
	460,
	456,
	451,
	446,
	442,
	437,
	433,
	428,
	424,
	420,
	416,
	412,
	408,
	404,
	400,
	396,
	392,
	388,
	385,
	381,
	377,
	374,
	370,
	367,
	363,
	360,
	357,
	354,
	350,
	347,
	344,
	341,
	338,
	335,
	332,
	329,
	326,
	323,
	320,
	318,
	315,
	312,
	310,
	307,
	304,
	302,
	299,
	297,
	294,
	292,
	289,
	287,
	285,
	282,
	280,
	278,
	275,
	273,
	271,
	269,
	267,
	265,
	263,
	261,
	259
], la = [
	9,
	11,
	12,
	13,
	13,
	14,
	14,
	15,
	15,
	15,
	15,
	16,
	16,
	16,
	16,
	17,
	17,
	17,
	17,
	17,
	17,
	17,
	18,
	18,
	18,
	18,
	18,
	18,
	18,
	18,
	18,
	19,
	19,
	19,
	19,
	19,
	19,
	19,
	19,
	19,
	19,
	19,
	19,
	19,
	19,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	20,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	21,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	22,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	23,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24,
	24
];
function ua(e, t) {
	let n = e.data, r = e.width, i = e.height, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, ee, S, C, te = t + t + 1, ne = r - 1, w = i - 1, T = t + 1, E = T * (T + 1) / 2, D = new ca(), re = U[t], O = la[t], k = null, A = D, ie = null, j = null;
	for (let e = 1; e < te; e++) A = A.next = new ca(), e === T && (k = A);
	A.next = D, s = o = 0;
	for (let e = 0; e < i; e++) {
		g = _ = v = y = c = l = u = d = 0, f = T * (b = n[o]), p = T * (x = n[o + 1]), m = T * (ee = n[o + 2]), h = T * (S = n[o + 3]), c += E * b, l += E * x, u += E * ee, d += E * S, A = D;
		for (let e = 0; e < T; e++) A.r = b, A.g = x, A.b = ee, A.a = S, A = A.next;
		for (let e = 1; e < T; e++) a = o + ((ne < e ? ne : e) << 2), c += (A.r = b = n[a]) * (C = T - e), l += (A.g = x = n[a + 1]) * C, u += (A.b = ee = n[a + 2]) * C, d += (A.a = S = n[a + 3]) * C, g += b, _ += x, v += ee, y += S, A = A.next;
		ie = D, j = k;
		for (let e = 0; e < r; e++) n[o + 3] = S = d * re >> O, S === 0 ? n[o] = n[o + 1] = n[o + 2] = 0 : (S = 255 / S, n[o] = (c * re >> O) * S, n[o + 1] = (l * re >> O) * S, n[o + 2] = (u * re >> O) * S), c -= f, l -= p, u -= m, d -= h, f -= ie.r, p -= ie.g, m -= ie.b, h -= ie.a, a = s + ((a = e + t + 1) < ne ? a : ne) << 2, g += ie.r = n[a], _ += ie.g = n[a + 1], v += ie.b = n[a + 2], y += ie.a = n[a + 3], c += g, l += _, u += v, d += y, ie = ie.next, f += b = j.r, p += x = j.g, m += ee = j.b, h += S = j.a, g -= b, _ -= x, v -= ee, y -= S, j = j.next, o += 4;
		s += r;
	}
	for (let e = 0; e < r; e++) {
		_ = v = y = g = l = u = d = c = 0, o = e << 2, f = T * (b = n[o]), p = T * (x = n[o + 1]), m = T * (ee = n[o + 2]), h = T * (S = n[o + 3]), c += E * b, l += E * x, u += E * ee, d += E * S, A = D;
		for (let e = 0; e < T; e++) A.r = b, A.g = x, A.b = ee, A.a = S, A = A.next;
		let s = r;
		for (let i = 1; i <= t; i++) o = s + e << 2, c += (A.r = b = n[o]) * (C = T - i), l += (A.g = x = n[o + 1]) * C, u += (A.b = ee = n[o + 2]) * C, d += (A.a = S = n[o + 3]) * C, g += b, _ += x, v += ee, y += S, A = A.next, i < w && (s += r);
		o = e, ie = D, j = k;
		for (let t = 0; t < i; t++) a = o << 2, n[a + 3] = S = d * re >> O, S > 0 ? (S = 255 / S, n[a] = (c * re >> O) * S, n[a + 1] = (l * re >> O) * S, n[a + 2] = (u * re >> O) * S) : n[a] = n[a + 1] = n[a + 2] = 0, c -= f, l -= p, u -= m, d -= h, f -= ie.r, p -= ie.g, m -= ie.b, h -= ie.a, a = e + ((a = t + T) < w ? a : w) * r << 2, c += g += ie.r = n[a], l += _ += ie.g = n[a + 1], u += v += ie.b = n[a + 2], d += y += ie.a = n[a + 3], ie = ie.next, f += b = j.r, p += x = j.g, m += ee = j.b, h += S = j.a, g -= b, _ -= x, v -= ee, y -= S, j = j.next, o += r;
	}
}
var da = function(e) {
	let t = Math.round(this.blurRadius());
	t > 0 && ua(e, t);
};
z.addGetterSetter(B, "blurRadius", 0, R(), z.afterSetFilter);
//#endregion
//#region ../node_modules/konva/lib/filters/Brighten.js
var fa = function(e) {
	let t = this.brightness() * 255, n = e.data, r = n.length;
	for (let e = 0; e < r; e += 4) n[e] += t, n[e + 1] += t, n[e + 2] += t;
};
z.addGetterSetter(B, "brightness", 0, R(), z.afterSetFilter);
//#endregion
//#region ../node_modules/konva/lib/filters/Brightness.js
var pa = function(e) {
	let t = this.brightness(), n = e.data, r = n.length;
	for (let e = 0; e < r; e += 4) n[e] = Math.min(255, n[e] * t), n[e + 1] = Math.min(255, n[e + 1] * t), n[e + 2] = Math.min(255, n[e + 2] * t);
}, ma = function(e) {
	let t = ((this.contrast() + 100) / 100) ** 2, n = e.data, r = n.length, i = 150, a = 150, o = 150;
	for (let e = 0; e < r; e += 4) i = n[e], a = n[e + 1], o = n[e + 2], i /= 255, i -= .5, i *= t, i += .5, i *= 255, a /= 255, a -= .5, a *= t, a += .5, a *= 255, o /= 255, o -= .5, o *= t, o += .5, o *= 255, i = i < 0 ? 0 : i > 255 ? 255 : i, a = a < 0 ? 0 : a > 255 ? 255 : a, o = o < 0 ? 0 : o > 255 ? 255 : o, n[e] = i, n[e + 1] = a, n[e + 2] = o;
};
z.addGetterSetter(B, "contrast", 0, R(), z.afterSetFilter);
//#endregion
//#region ../node_modules/konva/lib/filters/Emboss.js
var ha = function(e) {
	let t = e.data, n = e.width, r = e.height, i = Math.min(1, Math.max(0, this.embossStrength?.call(this) ?? .5)), a = Math.min(1, Math.max(0, this.embossWhiteLevel?.call(this) ?? .5)), o = {
		"top-left": 315,
		top: 270,
		"top-right": 225,
		right: 180,
		"bottom-right": 135,
		bottom: 90,
		"bottom-left": 45,
		left: 0
	}[this.embossDirection?.call(this) ?? "top-left"] ?? 315, s = !!(this.embossBlend?.call(this) ?? !1), c = i * 10, l = a * 255, u = o * Math.PI / 180, d = Math.cos(u), f = Math.sin(u), p = 128 / 1020 * c, m = new Uint8ClampedArray(t), h = new Float32Array(n * r);
	for (let e = 0, n = 0; n < t.length; n += 4, e++) h[e] = .2126 * m[n] + .7152 * m[n + 1] + .0722 * m[n + 2];
	let g = [
		-1,
		0,
		1,
		-2,
		0,
		2,
		-1,
		0,
		1
	], _ = [
		-1,
		-2,
		-1,
		0,
		0,
		0,
		1,
		2,
		1
	], v = [
		-n - 1,
		-n,
		-n + 1,
		-1,
		0,
		1,
		n - 1,
		n,
		n + 1
	], y = (e) => e < 0 ? 0 : e > 255 ? 255 : e;
	for (let e = 1; e < r - 1; e++) for (let r = 1; r < n - 1; r++) {
		let i = e * n + r, a = 0, o = 0;
		a += h[i + v[0]] * g[0], o += h[i + v[0]] * _[0], a += h[i + v[1]] * g[1], o += h[i + v[1]] * _[1], a += h[i + v[2]] * g[2], o += h[i + v[2]] * _[2], a += h[i + v[3]] * g[3], o += h[i + v[3]] * _[3], a += h[i + v[5]] * g[5], o += h[i + v[5]] * _[5], a += h[i + v[6]] * g[6], o += h[i + v[6]] * _[6], a += h[i + v[7]] * g[7], o += h[i + v[7]] * _[7], a += h[i + v[8]] * g[8], o += h[i + v[8]] * _[8];
		let c = y(l + (d * a + f * o) * p), u = i * 4;
		if (s) {
			let e = c - l;
			t[u] = y(m[u] + e), t[u + 1] = y(m[u + 1] + e), t[u + 2] = y(m[u + 2] + e), t[u + 3] = m[u + 3];
		} else t[u] = t[u + 1] = t[u + 2] = c, t[u + 3] = m[u + 3];
	}
	for (let e = 0; e < n; e++) {
		let i = e * 4, a = ((r - 1) * n + e) * 4;
		t[i] = m[i], t[i + 1] = m[i + 1], t[i + 2] = m[i + 2], t[i + 3] = m[i + 3], t[a] = m[a], t[a + 1] = m[a + 1], t[a + 2] = m[a + 2], t[a + 3] = m[a + 3];
	}
	for (let e = 1; e < r - 1; e++) {
		let r = e * n * 4, i = (e * n + (n - 1)) * 4;
		t[r] = m[r], t[r + 1] = m[r + 1], t[r + 2] = m[r + 2], t[r + 3] = m[r + 3], t[i] = m[i], t[i + 1] = m[i + 1], t[i + 2] = m[i + 2], t[i + 3] = m[i + 3];
	}
	return e;
};
z.addGetterSetter(B, "embossStrength", .5, R(), z.afterSetFilter), z.addGetterSetter(B, "embossWhiteLevel", .5, R(), z.afterSetFilter), z.addGetterSetter(B, "embossDirection", "top-left", void 0, z.afterSetFilter), z.addGetterSetter(B, "embossBlend", !1, void 0, z.afterSetFilter);
//#endregion
//#region ../node_modules/konva/lib/filters/Enhance.js
function ga(e, t, n, r, i) {
	let a = n - t, o = i - r;
	if (a === 0) return r + o / 2;
	if (o === 0) return r;
	let s = (e - t) / a;
	return s = o * s + r, s;
}
var _a = function(e) {
	let t = e.data, n = t.length, r = t[0], i = r, a, o = t[1], s = o, c, l = t[2], u = l, d, f = this.enhance();
	if (f === 0) return;
	for (let e = 0; e < n; e += 4) a = t[e + 0], a < r ? r = a : a > i && (i = a), c = t[e + 1], c < o ? o = c : c > s && (s = c), d = t[e + 2], d < l ? l = d : d > u && (u = d);
	i === r && (i = 255, r = 0), s === o && (s = 255, o = 0), u === l && (u = 255, l = 0);
	let p, m, h, g, _, v;
	if (f > 0) p = i + f * (255 - i), m = r - f * (r - 0), h = s + f * (255 - s), g = o - f * (o - 0), _ = u + f * (255 - u), v = l - f * (l - 0);
	else {
		let e = (i + r) * .5;
		p = i + f * (i - e), m = r + f * (r - e);
		let t = (s + o) * .5;
		h = s + f * (s - t), g = o + f * (o - t);
		let n = (u + l) * .5;
		_ = u + f * (u - n), v = l + f * (l - n);
	}
	for (let e = 0; e < n; e += 4) t[e + 0] = ga(t[e + 0], r, i, m, p), t[e + 1] = ga(t[e + 1], o, s, g, h), t[e + 2] = ga(t[e + 2], l, u, v, _);
};
z.addGetterSetter(B, "enhance", 0, R(), z.afterSetFilter);
//#endregion
//#region ../node_modules/konva/lib/filters/Grayscale.js
var va = function(e) {
	let t = e.data, n = t.length;
	for (let e = 0; e < n; e += 4) {
		let n = .34 * t[e] + .5 * t[e + 1] + .16 * t[e + 2];
		t[e] = n, t[e + 1] = n, t[e + 2] = n;
	}
};
z.addGetterSetter(B, "hue", 0, R(), z.afterSetFilter), z.addGetterSetter(B, "saturation", 0, R(), z.afterSetFilter), z.addGetterSetter(B, "luminance", 0, R(), z.afterSetFilter);
var ya = function(e) {
	let t = e.data, n = t.length, r = 2 ** this.saturation(), i = Math.abs(this.hue() + 360) % 360, a = this.luminance() * 127, o = 1 * r * Math.cos(i * Math.PI / 180), s = 1 * r * Math.sin(i * Math.PI / 180), c = .299 * 1 + .701 * o + .167 * s, l = .587 * 1 - .587 * o + .33 * s, u = .114 * 1 - .114 * o - .497 * s, d = .299 * 1 - .299 * o - .328 * s, f = .587 * 1 + .413 * o + .035 * s, p = .114 * 1 - .114 * o + .293 * s, m = .299 * 1 - .3 * o + 1.25 * s, h = .587 * 1 - .586 * o - 1.05 * s, g = .114 * 1 + .886 * o - .2 * s, _, v, y, b;
	for (let e = 0; e < n; e += 4) _ = t[e + 0], v = t[e + 1], y = t[e + 2], b = t[e + 3], t[e + 0] = c * _ + l * v + u * y + a, t[e + 1] = d * _ + f * v + p * y + a, t[e + 2] = m * _ + h * v + g * y + a, t[e + 3] = b;
}, ba = function(e) {
	let t = e.data, n = t.length, r = 2 ** this.value(), i = 2 ** this.saturation(), a = Math.abs(this.hue() + 360) % 360, o = r * i * Math.cos(a * Math.PI / 180), s = r * i * Math.sin(a * Math.PI / 180), c = .299 * r + .701 * o + .167 * s, l = .587 * r - .587 * o + .33 * s, u = .114 * r - .114 * o - .497 * s, d = .299 * r - .299 * o - .328 * s, f = .587 * r + .413 * o + .035 * s, p = .114 * r - .114 * o + .293 * s, m = .299 * r - .3 * o + 1.25 * s, h = .587 * r - .586 * o - 1.05 * s, g = .114 * r + .886 * o - .2 * s;
	for (let e = 0; e < n; e += 4) {
		let n = t[e + 0], r = t[e + 1], i = t[e + 2], a = t[e + 3];
		t[e + 0] = c * n + l * r + u * i, t[e + 1] = d * n + f * r + p * i, t[e + 2] = m * n + h * r + g * i, t[e + 3] = a;
	}
};
z.addGetterSetter(B, "hue", 0, R(), z.afterSetFilter), z.addGetterSetter(B, "saturation", 0, R(), z.afterSetFilter), z.addGetterSetter(B, "value", 0, R(), z.afterSetFilter);
//#endregion
//#region ../node_modules/konva/lib/filters/Invert.js
var xa = function(e) {
	let t = e.data, n = t.length;
	for (let e = 0; e < n; e += 4) t[e] = 255 - t[e], t[e + 1] = 255 - t[e + 1], t[e + 2] = 255 - t[e + 2];
}, Sa = function(e, t, n) {
	let r = e.data, i = t.data, a = e.width, o = e.height, s = n.polarCenterX || a / 2, c = n.polarCenterY || o / 2, l = Math.sqrt(s * s + c * c), u = a - s, d = o - c, f = Math.sqrt(u * u + d * d);
	l = f > l ? f : l;
	let p = o, m = a, h = 360 / m * Math.PI / 180;
	for (let e = 0; e < m; e += 1) {
		let t = Math.sin(e * h), n = Math.cos(e * h);
		for (let o = 0; o < p; o += 1) {
			u = Math.floor(s + l * o / p * n), d = Math.floor(c + l * o / p * t);
			let f = (d * a + u) * 4, m = r[f + 0], h = r[f + 1], g = r[f + 2], _ = r[f + 3];
			f = (e + o * a) * 4, i[f + 0] = m, i[f + 1] = h, i[f + 2] = g, i[f + 3] = _;
		}
	}
}, Ca = function(e, t, n) {
	let r = e.data, i = t.data, a = e.width, o = e.height, s = n.polarCenterX || a / 2, c = n.polarCenterY || o / 2, l = Math.sqrt(s * s + c * c), u = a - s, d = o - c, f = Math.sqrt(u * u + d * d);
	l = f > l ? f : l;
	let p = o, m = a, h = n.polarRotation || 0, g, _;
	for (u = 0; u < a; u += 1) for (d = 0; d < o; d += 1) {
		let e = u - s, t = d - c, n = Math.sqrt(e * e + t * t) * p / l, o = (Math.atan2(t, e) * 180 / Math.PI + 360 + h) % 360;
		o = o * m / 360, g = Math.floor(o), _ = Math.floor(n);
		let f = (_ * a + g) * 4, v = r[f + 0], y = r[f + 1], b = r[f + 2], x = r[f + 3];
		f = (d * a + u) * 4, i[f + 0] = v, i[f + 1] = y, i[f + 2] = b, i[f + 3] = x;
	}
}, wa = function(e) {
	let t = e.width, n = e.height, r, i, a, o, s, c, l, u, d, f, p = Math.round(this.kaleidoscopePower()), m = Math.round(this.kaleidoscopeAngle()), h = Math.floor(m % 360 * t / 360);
	if (p < 1) return;
	let g = F.createCanvasElement();
	g.width = t, g.height = n;
	let _ = g.getContext("2d").getImageData(0, 0, t, n);
	F.releaseCanvas(g), Sa(e, _, {
		polarCenterX: t / 2,
		polarCenterY: n / 2
	});
	let v = t / 2 ** p;
	for (; v <= 8;) v *= 2, --p;
	v = Math.ceil(v);
	let y = v, b = 0, x = y, ee = 1;
	for (h + v > t && (b = y, x = 0, ee = -1), i = 0; i < n; i += 1) for (r = b; r !== x; r += ee) a = Math.round(r + h) % t, d = (t * i + a) * 4, s = _.data[d + 0], c = _.data[d + 1], l = _.data[d + 2], u = _.data[d + 3], f = (t * i + r) * 4, _.data[f + 0] = s, _.data[f + 1] = c, _.data[f + 2] = l, _.data[f + 3] = u;
	for (i = 0; i < n; i += 1) for (y = Math.floor(v), o = 0; o < p; o += 1) {
		for (r = 0; r < y + 1; r += 1) d = (t * i + r) * 4, s = _.data[d + 0], c = _.data[d + 1], l = _.data[d + 2], u = _.data[d + 3], f = (t * i + y * 2 - r - 1) * 4, _.data[f + 0] = s, _.data[f + 1] = c, _.data[f + 2] = l, _.data[f + 3] = u;
		y *= 2;
	}
	Ca(_, e, { polarRotation: 0 });
};
z.addGetterSetter(B, "kaleidoscopePower", 2, R(), z.afterSetFilter), z.addGetterSetter(B, "kaleidoscopeAngle", 0, R(), z.afterSetFilter);
//#endregion
//#region ../node_modules/konva/lib/filters/Mask.js
function Ta(e, t, n) {
	let r = (n * e.width + t) * 4, i = [];
	return i.push(e.data[r++], e.data[r++], e.data[r++], e.data[r++]), i;
}
function Ea(e, t) {
	return Math.sqrt((e[0] - t[0]) ** 2 + (e[1] - t[1]) ** 2 + (e[2] - t[2]) ** 2);
}
function Da(e) {
	let t = [
		0,
		0,
		0
	];
	for (let n = 0; n < e.length; n++) t[0] += e[n][0], t[1] += e[n][1], t[2] += e[n][2];
	return t[0] /= e.length, t[1] /= e.length, t[2] /= e.length, t;
}
function Oa(e, t) {
	let n = Ta(e, 0, 0), r = Ta(e, e.width - 1, 0), i = Ta(e, 0, e.height - 1), a = Ta(e, e.width - 1, e.height - 1), o = t || 10;
	if (Ea(n, r) < o && Ea(r, a) < o && Ea(a, i) < o && Ea(i, n) < o) {
		let t = Da([
			r,
			n,
			a,
			i
		]), s = [];
		for (let n = 0; n < e.width * e.height; n++) s[n] = Ea(t, [
			e.data[n * 4],
			e.data[n * 4 + 1],
			e.data[n * 4 + 2]
		]) < o ? 0 : 255;
		return s;
	}
}
function ka(e, t) {
	for (let n = 0; n < e.width * e.height; n++) e.data[4 * n + 3] = t[n];
}
function Aa(e, t, n) {
	let r = [
		1,
		1,
		1,
		1,
		0,
		1,
		1,
		1,
		1
	], i = Math.round(Math.sqrt(r.length)), a = Math.floor(i / 2), o = [];
	for (let s = 0; s < n; s++) for (let c = 0; c < t; c++) {
		let l = s * t + c, u = 0;
		for (let o = 0; o < i; o++) for (let l = 0; l < i; l++) {
			let d = s + o - a, f = c + l - a;
			if (d >= 0 && d < n && f >= 0 && f < t) {
				let n = d * t + f, a = r[o * i + l];
				u += e[n] * a;
			}
		}
		o[l] = u === 2040 ? 255 : 0;
	}
	return o;
}
function ja(e, t, n) {
	let r = [
		1,
		1,
		1,
		1,
		1,
		1,
		1,
		1,
		1
	], i = Math.round(Math.sqrt(r.length)), a = Math.floor(i / 2), o = [];
	for (let s = 0; s < n; s++) for (let c = 0; c < t; c++) {
		let l = s * t + c, u = 0;
		for (let o = 0; o < i; o++) for (let l = 0; l < i; l++) {
			let d = s + o - a, f = c + l - a;
			if (d >= 0 && d < n && f >= 0 && f < t) {
				let n = d * t + f, a = r[o * i + l];
				u += e[n] * a;
			}
		}
		o[l] = u >= 1020 ? 255 : 0;
	}
	return o;
}
function Ma(e, t, n) {
	let r = [
		1 / 9,
		1 / 9,
		1 / 9,
		1 / 9,
		1 / 9,
		1 / 9,
		1 / 9,
		1 / 9,
		1 / 9
	], i = Math.round(Math.sqrt(r.length)), a = Math.floor(i / 2), o = [];
	for (let s = 0; s < n; s++) for (let c = 0; c < t; c++) {
		let l = s * t + c, u = 0;
		for (let o = 0; o < i; o++) for (let l = 0; l < i; l++) {
			let d = s + o - a, f = c + l - a;
			if (d >= 0 && d < n && f >= 0 && f < t) {
				let n = d * t + f, a = r[o * i + l];
				u += e[n] * a;
			}
		}
		o[l] = u;
	}
	return o;
}
z.addGetterSetter(B, "threshold", 0, R(), z.afterSetFilter), z.addGetterSetter(B, "noise", .2, R(), z.afterSetFilter), z.addGetterSetter(B, "pixelSize", 8, R(), z.afterSetFilter), z.addGetterSetter(B, "levels", .5, R(), z.afterSetFilter), z.addGetterSetter(B, "red", 0, function(e) {
	return this._filterUpToDate = !1, e > 255 ? 255 : e < 0 ? 0 : Math.round(e);
}), z.addGetterSetter(B, "green", 0, function(e) {
	return this._filterUpToDate = !1, e > 255 ? 255 : e < 0 ? 0 : Math.round(e);
}), z.addGetterSetter(B, "blue", 0, St, z.afterSetFilter), z.addGetterSetter(B, "red", 0, function(e) {
	return this._filterUpToDate = !1, e > 255 ? 255 : e < 0 ? 0 : Math.round(e);
}), z.addGetterSetter(B, "green", 0, function(e) {
	return this._filterUpToDate = !1, e > 255 ? 255 : e < 0 ? 0 : Math.round(e);
}), z.addGetterSetter(B, "blue", 0, St, z.afterSetFilter), z.addGetterSetter(B, "alpha", 1, function(e) {
	return this._filterUpToDate = !1, e > 1 ? 1 : e < 0 ? 0 : e;
}), z.addGetterSetter(B, "threshold", .5, R(), z.afterSetFilter), Dr.Util._assign(Dr, {
	Arc: Or,
	Arrow: Hr,
	Circle: Ur,
	Ellipse: Wr,
	Image: Gr,
	Label: ei,
	Tag: ti,
	Line: Mr,
	Path: Vr,
	Rect: ni,
	RegularPolygon: ri,
	Ring: ai,
	Sprite: oi,
	Star: si,
	Text: zi,
	TextPath: Wi,
	Transformer: aa,
	Wedge: sa,
	Filters: {
		Blur: da,
		Brightness: pa,
		Brighten: fa,
		Contrast: ma,
		Emboss: ha,
		Enhance: _a,
		Grayscale: va,
		HSL: ya,
		HSV: ba,
		Invert: xa,
		Kaleidoscope: wa,
		Mask: function(e) {
			let t = Oa(e, this.threshold());
			return t && (t = Aa(t, e.width, e.height), t = ja(t, e.width, e.height), t = Ma(t, e.width, e.height), ka(e, t)), e;
		},
		Noise: function(e) {
			let t = this.noise() * 255, n = e.data, r = n.length, i = t / 2;
			for (let e = 0; e < r; e += 4) n[e + 0] += i - 2 * i * Math.random(), n[e + 1] += i - 2 * i * Math.random(), n[e + 2] += i - 2 * i * Math.random();
		},
		Pixelate: function(e) {
			let t = Math.ceil(this.pixelSize()), n = e.width, r = e.height, i = Math.ceil(n / t), a = Math.ceil(r / t), o = e.data;
			if (t <= 0) {
				F.error("pixelSize value can not be <= 0");
				return;
			}
			for (let e = 0; e < i; e += 1) for (let i = 0; i < a; i += 1) {
				let a = 0, s = 0, c = 0, l = 0, u = e * t, d = u + t, f = i * t, p = f + t, m = 0;
				for (let e = u; e < d; e += 1) if (!(e >= n)) for (let t = f; t < p; t += 1) {
					if (t >= r) continue;
					let i = (n * t + e) * 4;
					a += o[i + 0], s += o[i + 1], c += o[i + 2], l += o[i + 3], m += 1;
				}
				a /= m, s /= m, c /= m, l /= m;
				for (let e = u; e < d; e += 1) if (!(e >= n)) for (let t = f; t < p; t += 1) {
					if (t >= r) continue;
					let i = (n * t + e) * 4;
					o[i + 0] = a, o[i + 1] = s, o[i + 2] = c, o[i + 3] = l;
				}
			}
		},
		Posterize: function(e) {
			let t = Math.round(this.levels() * 254) + 1, n = e.data, r = n.length, i = 255 / t;
			for (let e = 0; e < r; e += 1) n[e] = Math.floor(n[e] / i) * i;
		},
		RGB: function(e) {
			let t = e.data, n = t.length, r = this.red(), i = this.green(), a = this.blue();
			for (let e = 0; e < n; e += 4) {
				let n = (.34 * t[e] + .5 * t[e + 1] + .16 * t[e + 2]) / 255;
				t[e] = n * r, t[e + 1] = n * i, t[e + 2] = n * a, t[e + 3] = t[e + 3];
			}
		},
		RGBA: function(e) {
			let t = e.data, n = t.length, r = this.red(), i = this.green(), a = this.blue(), o = this.alpha();
			for (let e = 0; e < n; e += 4) {
				let n = 1 - o;
				t[e] = r * o + t[e] * n, t[e + 1] = i * o + t[e + 1] * n, t[e + 2] = a * o + t[e + 2] * n;
			}
		},
		Sepia: function(e) {
			let t = e.data, n = t.length;
			for (let e = 0; e < n; e += 4) {
				let n = t[e + 0], r = t[e + 1], i = t[e + 2];
				t[e + 0] = Math.min(255, n * .393 + r * .769 + i * .189), t[e + 1] = Math.min(255, n * .349 + r * .686 + i * .168), t[e + 2] = Math.min(255, n * .272 + r * .534 + i * .131);
			}
		},
		Solarize: function(e) {
			let t = e.data;
			for (let e = 0; e < t.length; e += 4) {
				let n = t[e], r = t[e + 1], i = t[e + 2];
				.2126 * n + .7152 * r + .0722 * i >= 128 && (t[e] = 255 - n, t[e + 1] = 255 - r, t[e + 2] = 255 - i);
			}
			return e;
		},
		Threshold: function(e) {
			let t = this.threshold() * 255, n = e.data, r = n.length;
			for (let e = 0; e < r; e += 1) n[e] = n[e] < t ? 0 : 255;
		}
	}
});
//#endregion
//#region ../node_modules/konva/lib/Core.js
var Na = Dr, Pa = /* @__PURE__ */ s(((e, t) => {
	t.exports = function(e) {
		function t(e, t, n, r) {
			return new fa(e, t, n, r);
		}
		function n() {}
		function r(e) {
			var t = "https://react.dev/errors/" + e;
			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 #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
		}
		function i(e) {
			var t = e, n = e;
			if (e.alternate) for (; t.return;) t = t.return;
			else {
				e = t;
				do
					t = e, t.flags & 4098 && (n = t.return), e = t.return;
				while (e);
			}
			return t.tag === 3 ? n : null;
		}
		function a(e) {
			if (i(e) !== e) throw Error(r(188));
		}
		function o(e) {
			var t = e.alternate;
			if (!t) {
				if (t = i(e), t === null) throw Error(r(188));
				return t === e ? e : null;
			}
			for (var n = e, o = t;;) {
				var s = n.return;
				if (s === null) break;
				var c = s.alternate;
				if (c === null) {
					if (o = s.return, o !== null) {
						n = o;
						continue;
					}
					break;
				}
				if (s.child === c.child) {
					for (c = s.child; c;) {
						if (c === n) return a(s), e;
						if (c === o) return a(s), t;
						c = c.sibling;
					}
					throw Error(r(188));
				}
				if (n.return !== o.return) n = s, o = c;
				else {
					for (var l = !1, u = s.child; u;) {
						if (u === n) {
							l = !0, n = s, o = c;
							break;
						}
						if (u === o) {
							l = !0, o = s, n = c;
							break;
						}
						u = u.sibling;
					}
					if (!l) {
						for (u = c.child; u;) {
							if (u === n) {
								l = !0, n = c, o = s;
								break;
							}
							if (u === o) {
								l = !0, o = c, n = s;
								break;
							}
							u = u.sibling;
						}
						if (!l) throw Error(r(189));
					}
				}
				if (n.alternate !== o) throw Error(r(190));
			}
			if (n.tag !== 3) throw Error(r(188));
			return n.stateNode.current === n ? e : t;
		}
		function s(e) {
			var t = e.tag;
			if (t === 5 || t === 26 || t === 27 || t === 6) return e;
			for (e = e.child; e !== null;) {
				if (t = s(e), t !== null) return t;
				e = e.sibling;
			}
			return null;
		}
		function c(e) {
			var t = e.tag;
			if (t === 5 || t === 26 || t === 27 || t === 6) return e;
			for (e = e.child; e !== null;) {
				if (e.tag !== 4 && (t = c(e), t !== null)) return t;
				e = e.sibling;
			}
			return null;
		}
		function l(e) {
			return typeof e != "object" || !e ? null : (e = qa && e[qa] || e["@@iterator"], typeof e == "function" ? e : null);
		}
		function u(e) {
			if (e == null) return null;
			if (typeof e == "function") return e.$$typeof === Ja ? null : e.displayName || e.name || null;
			if (typeof e == "string") return e;
			switch (e) {
				case Fa: return "Fragment";
				case La: return "Profiler";
				case Ia: return "StrictMode";
				case Va: return "Suspense";
				case Ha: return "SuspenseList";
				case Ga: return "Activity";
			}
			if (typeof e == "object") switch (e.$$typeof) {
				case Pa: return "Portal";
				case za: return e.displayName || "Context";
				case Ra: return (e._context.displayName || "Context") + ".Consumer";
				case Ba:
					var t = e.render;
					return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
				case Ua: return t = e.displayName || null, t === null ? u(e.type) || "Memo" : t;
				case Wa:
					t = e._payload, e = e._init;
					try {
						return u(e(t));
					} catch {}
			}
			return null;
		}
		function d(e) {
			return { current: e };
		}
		function f(e) {
			0 > hc || (e.current = mc[hc], mc[hc] = null, hc--);
		}
		function m(e, t) {
			hc++, mc[hc] = e.current, e.current = t;
		}
		function h(e) {
			return e >>>= 0, e === 0 ? 32 : 31 - (vc(e) / yc | 0) | 0;
		}
		function _(e) {
			var t = e & 42;
			if (t !== 0) return t;
			switch (e & -e) {
				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: return e & 261888;
				case 262144:
				case 524288:
				case 1048576:
				case 2097152: return e & 3932160;
				case 4194304:
				case 8388608:
				case 16777216:
				case 33554432: return e & 62914560;
				case 67108864: return 67108864;
				case 134217728: return 134217728;
				case 268435456: return 268435456;
				case 536870912: return 536870912;
				case 1073741824: return 0;
				default: return e;
			}
		}
		function v(e, t, n) {
			var r = e.pendingLanes;
			if (r === 0) return 0;
			var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
			e = e.warmLanes;
			var s = r & 134217727;
			return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = _(n))) : i = _(o) : i = _(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = _(n))) : i = _(o)) : i = _(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
		}
		function y(e, t) {
			return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
		}
		function b(e, t) {
			switch (e) {
				case 1:
				case 2:
				case 4:
				case 8:
				case 64: return t + 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 t + 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 x() {
			var e = Sc;
			return Sc <<= 1, !(Sc & 62914560) && (Sc = 4194304), e;
		}
		function ee(e) {
			for (var t = [], n = 0; 31 > n; n++) t.push(e);
			return t;
		}
		function S(e, t) {
			e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
		}
		function C(e, t, n, r, i, a) {
			var o = e.pendingLanes;
			e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;
			var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
			for (n = o & ~n; 0 < n;) {
				var u = 31 - _c(n), d = 1 << u;
				s[u] = 0, c[u] = -1;
				var f = l[u];
				if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
					var p = f[u];
					p !== null && (p.lane &= -536870913);
				}
				n &= ~d;
			}
			r !== 0 && te(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
		}
		function te(e, t, n) {
			e.pendingLanes |= t, e.suspendedLanes &= ~t;
			var r = 31 - _c(t);
			e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
		}
		function ne(e, t) {
			var n = e.entangledLanes |= t;
			for (e = e.entanglements; n;) {
				var r = 31 - _c(n), i = 1 << r;
				i & t | e[r] & t && (e[r] |= t), n &= ~i;
			}
		}
		function w(e, t) {
			var n = t & -t;
			return n = n & 42 ? 1 : T(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
		}
		function T(e) {
			switch (e) {
				case 2:
					e = 1;
					break;
				case 8:
					e = 4;
					break;
				case 32:
					e = 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:
					e = 128;
					break;
				case 268435456:
					e = 134217728;
					break;
				default: e = 0;
			}
			return e;
		}
		function E(e) {
			return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
		}
		function D(e) {
			if (typeof Mc == "function" && Nc(e), Fc && typeof Fc.setStrictMode == "function") try {
				Fc.setStrictMode(Pc, e);
			} catch {}
		}
		function re(e, t) {
			return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
		}
		function O(e) {
			if (Rc === void 0) try {
				throw Error();
			} catch (e) {
				var t = e.stack.trim().match(/\n( *(at )?)/);
				Rc = t && t[1] || "", zc = -1 < e.stack.indexOf("\n    at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
			}
			return "\n" + Rc + e + zc;
		}
		function k(e, t) {
			if (!e || Bc) return "";
			Bc = !0;
			var n = Error.prepareStackTrace;
			Error.prepareStackTrace = void 0;
			try {
				var r = { DetermineComponentFrameRoot: function() {
					try {
						if (t) {
							var n = function() {
								throw Error();
							};
							if (Object.defineProperty(n.prototype, "props", { set: function() {
								throw Error();
							} }), typeof Reflect == "object" && Reflect.construct) {
								try {
									Reflect.construct(n, []);
								} catch (e) {
									var r = e;
								}
								Reflect.construct(e, [], n);
							} else {
								try {
									n.call();
								} catch (e) {
									r = e;
								}
								e.call(n.prototype);
							}
						} else {
							try {
								throw Error();
							} catch (e) {
								r = e;
							}
							(n = e()) && typeof n.catch == "function" && n.catch(function() {});
						}
					} catch (e) {
						if (e && r && typeof e.stack == "string") return [e.stack, r.stack];
					}
					return [null, null];
				} };
				r.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
				var i = Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot, "name");
				i && i.configurable && Object.defineProperty(r.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });
				var a = r.DetermineComponentFrameRoot(), o = a[0], s = a[1];
				if (o && s) {
					var c = o.split("\n"), l = s.split("\n");
					for (i = r = 0; r < c.length && !c[r].includes("DetermineComponentFrameRoot");) r++;
					for (; i < l.length && !l[i].includes("DetermineComponentFrameRoot");) i++;
					if (r === c.length || i === l.length) for (r = c.length - 1, i = l.length - 1; 1 <= r && 0 <= i && c[r] !== l[i];) i--;
					for (; 1 <= r && 0 <= i; r--, i--) if (c[r] !== l[i]) {
						if (r !== 1 || i !== 1) do
							if (r--, i--, 0 > i || c[r] !== l[i]) {
								var u = "\n" + c[r].replace(" at new ", " at ");
								return e.displayName && u.includes("<anonymous>") && (u = u.replace("<anonymous>", e.displayName)), u;
							}
						while (1 <= r && 0 <= i);
						break;
					}
				}
			} finally {
				Bc = !1, Error.prepareStackTrace = n;
			}
			return (n = e ? e.displayName || e.name : "") ? O(n) : "";
		}
		function A(e, t) {
			switch (e.tag) {
				case 26:
				case 27:
				case 5: return O(e.type);
				case 16: return O("Lazy");
				case 13: return e.child !== t && t !== null ? O("Suspense Fallback") : O("Suspense");
				case 19: return O("SuspenseList");
				case 0:
				case 15: return k(e.type, !1);
				case 11: return k(e.type.render, !1);
				case 1: return k(e.type, !0);
				case 31: return O("Activity");
				default: return "";
			}
		}
		function ie(e) {
			try {
				var t = "", n = null;
				do
					t += A(e, n), n = e, e = e.return;
				while (e);
				return t;
			} catch (e) {
				return "\nError generating stack: " + e.message + "\n" + e.stack;
			}
		}
		function j(e, t) {
			if (typeof e == "object" && e) {
				var n = Vc.get(e);
				return n === void 0 ? (t = {
					value: e,
					source: t,
					stack: ie(t)
				}, Vc.set(e, t), t) : n;
			}
			return {
				value: e,
				source: t,
				stack: ie(t)
			};
		}
		function ae(e, t) {
			Hc[Uc++] = K, Hc[Uc++] = Wc, Wc = e, K = t;
		}
		function oe(e, t, n) {
			Gc[Kc++] = Jc, Gc[Kc++] = Yc, Gc[Kc++] = qc, qc = e;
			var r = Jc;
			e = Yc;
			var i = 32 - _c(r) - 1;
			r &= ~(1 << i), n += 1;
			var a = 32 - _c(t) + i;
			if (30 < a) {
				var o = i - i % 5;
				a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Jc = 1 << 32 - _c(t) + i | n << i | r, Yc = a + e;
			} else Jc = 1 << a | n << i | r, Yc = e;
		}
		function se(e) {
			e.return !== null && (ae(e, 1), oe(e, 1, 0));
		}
		function ce(e) {
			for (; e === Wc;) Wc = Hc[--Uc], Hc[Uc] = null, K = Hc[--Uc], Hc[Uc] = null;
			for (; e === qc;) qc = Gc[--Kc], Gc[Kc] = null, Yc = Gc[--Kc], Gc[Kc] = null, Jc = Gc[--Kc], Gc[Kc] = null;
		}
		function le(e, t) {
			Gc[Kc++] = Jc, Gc[Kc++] = Yc, Gc[Kc++] = qc, Jc = t.id, Yc = t.overflow, qc = e;
		}
		function ue(e, t) {
			m(Qc, t), m(Zc, e), m(Xc, null), e = eo(t), f(Xc), m(Xc, e);
		}
		function de() {
			f(Xc), f(Zc), f(Qc);
		}
		function fe(e) {
			e.memoizedState !== null && m($c, e);
			var t = Xc.current, n = to(t, e.type);
			t !== n && (m(Zc, e), m(Xc, n));
		}
		function pe(e) {
			Zc.current === e && (f(Xc), f(Zc)), $c.current === e && (f($c), po ? Mo._currentValue = jo : Mo._currentValue2 = jo);
		}
		function me(e) {
			throw ye(j(Error(r(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), al;
		}
		function he(e, t) {
			if (!go) throw Error(r(175));
			ks(e.stateNode, e.type, e.memoizedProps, t, e) || me(e, !0);
		}
		function ge(e) {
			for (el = e.return; el;) switch (el.tag) {
				case 5:
				case 31:
				case 13:
					il = !1;
					return;
				case 27:
				case 3:
					il = !0;
					return;
				default: el = el.return;
			}
		}
		function _e(e) {
			if (!go || e !== el) return !1;
			if (!nl) return ge(e), nl = !0, !1;
			var t = e.tag;
			if (cc ? t !== 3 && t !== 27 && (t !== 5 || Gs(e.type) && !so(e.type, e.memoizedProps)) && tl && me(e) : t !== 3 && (t !== 5 || Gs(e.type) && !so(e.type, e.memoizedProps)) && tl && me(e), ge(e), t === 13) {
				if (!go) throw Error(r(316));
				if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(r(317));
				tl = Ps(e);
			} else if (t === 31) {
				if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(r(317));
				tl = Ns(e);
			} else tl = cc && t === 27 ? ys(e.type, tl) : el ? vs(e.stateNode) : null;
			return !0;
		}
		function ve() {
			go && (tl = el = null, nl = !1);
		}
		function M() {
			var e = rl;
			return e !== null && (Uu === null ? Uu = e : Uu.push.apply(Uu, e), rl = null), e;
		}
		function ye(e) {
			rl === null ? rl = [e] : rl.push(e);
		}
		function be(e, t, n) {
			po ? (m(ol, t._currentValue), t._currentValue = n) : (m(ol, t._currentValue2), t._currentValue2 = n);
		}
		function xe(e) {
			var t = ol.current;
			po ? e._currentValue = t : e._currentValue2 = t, f(ol);
		}
		function Se(e, t, n) {
			for (; e !== null;) {
				var r = e.alternate;
				if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
				e = e.return;
			}
		}
		function N(e, t, n, i) {
			var a = e.child;
			for (a !== null && (a.return = e); a !== null;) {
				var o = a.dependencies;
				if (o !== null) {
					var s = a.child;
					o = o.firstContext;
					a: for (; o !== null;) {
						var c = o;
						o = a;
						for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
							o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), Se(o.return, n, e), i || (s = null);
							break a;
						}
						o = c.next;
					}
				} else if (a.tag === 18) {
					if (s = a.return, s === null) throw Error(r(341));
					s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), Se(s, n, e), s = null;
				} else s = a.child;
				if (s !== null) s.return = a;
				else for (s = a; s !== null;) {
					if (s === e) {
						s = null;
						break;
					}
					if (a = s.sibling, a !== null) {
						a.return = s.return, s = a;
						break;
					}
					s = s.return;
				}
				a = s;
			}
		}
		function Ce(e, t, n, i) {
			e = null;
			for (var a = t, o = !1; a !== null;) {
				if (!o) {
					if (a.flags & 524288) o = !0;
					else if (a.flags & 262144) break;
				}
				if (a.tag === 10) {
					var s = a.alternate;
					if (s === null) throw Error(r(387));
					if (s = s.memoizedProps, s !== null) {
						var c = a.type;
						G(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
					}
				} else if (a === $c.current) {
					if (s = a.alternate, s === null) throw Error(r(387));
					s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [Mo] : e.push(Mo));
				}
				a = a.return;
			}
			e !== null && N(t, e, n, i), t.flags |= 262144;
		}
		function we(e) {
			for (e = e.firstContext; e !== null;) {
				var t = e.context;
				if (!G(po ? t._currentValue : t._currentValue2, e.memoizedValue)) return !0;
				e = e.next;
			}
			return !1;
		}
		function Te(e) {
			sl = e, cl = null, e = e.dependencies, e !== null && (e.firstContext = null);
		}
		function Ee(e) {
			return Oe(sl, e);
		}
		function De(e, t) {
			return sl === null && Te(e), Oe(e, t);
		}
		function Oe(e, t) {
			var n = po ? t._currentValue : t._currentValue2;
			if (t = {
				context: t,
				memoizedValue: n,
				next: null
			}, cl === null) {
				if (e === null) throw Error(r(308));
				cl = t, e.dependencies = {
					lanes: 0,
					firstContext: t
				}, e.flags |= 524288;
			} else cl = cl.next = t;
			return n;
		}
		function ke() {
			return {
				controller: new ll(),
				data: /* @__PURE__ */ new Map(),
				refCount: 0
			};
		}
		function Ae(e) {
			e.refCount--, e.refCount === 0 && ul(dl, function() {
				e.controller.abort();
			});
		}
		function je() {}
		function Me(e) {
			e !== ml && e.next === null && (ml === null ? pl = ml = e : ml = ml.next = e), gl = !0, hl || (hl = !0, Re());
		}
		function P(e, t) {
			if (!_l && gl) {
				_l = !0;
				do
					for (var n = !1, r = pl; r !== null;) {
						if (!t) if (e !== 0) {
							var i = r.pendingLanes;
							if (i === 0) var a = 0;
							else {
								var o = r.suspendedLanes, s = r.pingedLanes;
								a = (1 << 31 - _c(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
							}
							a !== 0 && (n = !0, Le(r, a));
						} else a = ku, a = v(r, r === Du ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== fo), !(a & 3) || y(r, a) || (n = !0, Le(r, a));
						r = r.next;
					}
				while (n);
				_l = !1;
			}
		}
		function Ne() {
			Pe();
		}
		function Pe() {
			gl = hl = !1;
			var e = 0;
			vl !== 0 && So() && (e = vl);
			for (var t = Dc(), n = null, r = pl; r !== null;) {
				var i = r.next, a = Fe(r, t);
				a === 0 ? (r.next = null, n === null ? pl = i : n.next = i, i === null && (ml = n)) : (n = r, (e !== 0 || a & 3) && (gl = !0)), r = i;
			}
			Xu !== 0 && Xu !== 5 || P(e, !1), vl !== 0 && (vl = 0);
		}
		function Fe(e, t) {
			for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
				var o = 31 - _c(a), s = 1 << o, c = i[o];
				c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = b(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
			}
			if (t = Du, n = ku, n = v(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== fo), r = e.callbackNode, n === 0 || e === t && (Au === 2 || Au === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && wc(r), e.callbackNode = null, e.callbackPriority = 0;
			if (!(n & 3) || y(e, n)) {
				if (t = n & -n, t === e.callbackPriority) return t;
				switch (r !== null && wc(r), E(n)) {
					case 2:
					case 8:
						n = kc;
						break;
					case 32:
						n = Ac;
						break;
					case 268435456:
						n = jc;
						break;
					default: n = Ac;
				}
				return r = Ie.bind(null, e), n = Cc(n, r), e.callbackPriority = t, e.callbackNode = n, t;
			}
			return r !== null && r !== null && wc(r), e.callbackPriority = 2, e.callbackNode = null, 2;
		}
		function Ie(e, t) {
			if (Xu !== 0 && Xu !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
			var n = e.callbackNode;
			if (ra() && e.callbackNode !== n) return null;
			var r = ku;
			return r = v(e, e === Du ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== fo), r === 0 ? null : (ji(e, r, t), Fe(e, Dc()), e.callbackNode != null && e.callbackNode === n ? Ie.bind(null, e) : null);
		}
		function Le(e, t) {
			if (ra()) return null;
			ji(e, t, !0);
		}
		function Re() {
			Po ? Fo(function() {
				Eu & 6 ? Cc(Oc, Ne) : Pe();
			}) : Cc(Oc, Ne);
		}
		function ze() {
			if (vl === 0) {
				var e = xl;
				e === 0 && (e = bc, bc <<= 1, !(bc & 261888) && (bc = 256)), vl = e;
			}
			return vl;
		}
		function Be(e, t) {
			if (yl === null) {
				var n = yl = [];
				bl = 0, xl = ze(), Sl = {
					status: "pending",
					value: void 0,
					then: function(e) {
						n.push(e);
					}
				};
			}
			return bl++, t.then(Ve, Ve), t;
		}
		function Ve() {
			if (--bl === 0 && yl !== null) {
				Sl !== null && (Sl.status = "fulfilled");
				var e = yl;
				yl = null, xl = 0, Sl = null;
				for (var t = 0; t < e.length; t++) (0, e[t])();
			}
		}
		function He(e, t) {
			var n = [], r = {
				status: "pending",
				value: null,
				reason: null,
				then: function(e) {
					n.push(e);
				}
			};
			return e.then(function() {
				r.status = "fulfilled", r.value = t;
				for (var e = 0; e < n.length; e++) (0, n[e])(t);
			}, function(e) {
				for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
			}), r;
		}
		function Ue() {
			var e = wl.current;
			return e === null ? Du.pooledCache : e;
		}
		function We(e, t) {
			t === null ? m(wl, wl.current) : m(wl, t.pool);
		}
		function Ge() {
			var e = Ue();
			return e === null ? null : {
				parent: po ? fl._currentValue : fl._currentValue2,
				pool: e
			};
		}
		function Ke(e, t) {
			if (G(e, t)) return !0;
			if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
			var n = Object.keys(e), r = Object.keys(t);
			if (n.length !== r.length) return !1;
			for (r = 0; r < n.length; r++) {
				var i = n[r];
				if (!Lc.call(t, i) || !G(e[i], t[i])) return !1;
			}
			return !0;
		}
		function qe(e) {
			return e = e.status, e === "fulfilled" || e === "rejected";
		}
		function Je(e, t, n) {
			switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(je, je), t = n), t.status) {
				case "fulfilled": return t.value;
				case "rejected": throw e = t.reason, Ze(e), e;
				default:
					if (typeof t.status == "string") t.then(je, je);
					else {
						if (e = Du, e !== null && 100 < e.shellSuspendCounter) throw Error(r(482));
						e = t, e.status = "pending", e.then(function(e) {
							if (t.status === "pending") {
								var n = t;
								n.status = "fulfilled", n.value = e;
							}
						}, function(e) {
							if (t.status === "pending") {
								var n = t;
								n.status = "rejected", n.reason = e;
							}
						});
					}
					switch (t.status) {
						case "fulfilled": return t.value;
						case "rejected": throw e = t.reason, Ze(e), e;
					}
					throw kl = t, Tl;
			}
		}
		function Ye(e) {
			try {
				var t = e._init;
				return t(e._payload);
			} catch (e) {
				throw typeof e == "object" && e && typeof e.then == "function" ? (kl = e, Tl) : e;
			}
		}
		function Xe() {
			if (kl === null) throw Error(r(459));
			var e = kl;
			return kl = null, e;
		}
		function Ze(e) {
			if (e === Tl || e === Dl) throw Error(r(483));
		}
		function Qe(e) {
			var t = jl;
			return jl += 1, Al === null && (Al = []), Je(Al, e, t);
		}
		function $e(e, t) {
			t = t.props.ref, e.ref = t === void 0 ? null : t;
		}
		function F(e, t) {
			throw t.$$typeof === Ma ? Error(r(525)) : (e = Object.prototype.toString.call(t), Error(r(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
		}
		function et(e) {
			function n(t, n) {
				if (e) {
					var r = t.deletions;
					r === null ? (t.deletions = [n], t.flags |= 16) : r.push(n);
				}
			}
			function i(t, r) {
				if (!e) return null;
				for (; r !== null;) n(t, r), r = r.sibling;
				return null;
			}
			function a(e) {
				for (var t = /* @__PURE__ */ new Map(); e !== null;) e.key === null ? t.set(e.index, e) : t.set(e.key, e), e = e.sibling;
				return t;
			}
			function o(e, t) {
				return e = ma(e, t), e.index = 0, e.sibling = null, e;
			}
			function s(t, n, r) {
				return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 67108866, n) : (r = r.index, r < n ? (t.flags |= 67108866, n) : r)) : (t.flags |= 1048576, n);
			}
			function c(t) {
				return e && t.alternate === null && (t.flags |= 67108866), t;
			}
			function u(e, t, n, r) {
				return t === null || t.tag !== 6 ? (t = va(n, e.mode, r), t.return = e, t) : (t = o(t, n), t.return = e, t);
			}
			function d(e, t, n, r) {
				var i = n.type;
				return i === Fa ? p(e, t, n.props.children, r, n.key) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === Wa && Ye(i) === t.type) ? (t = o(t, n.props), $e(t, n), t.return = e, t) : (t = ga(n.type, n.key, n.props, null, e.mode, r), $e(t, n), t.return = e, t);
			}
			function f(e, t, n, r) {
				return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = ba(n, e.mode, r), t.return = e, t) : (t = o(t, n.children || []), t.return = e, t);
			}
			function p(e, t, n, r, i) {
				return t === null || t.tag !== 7 ? (t = _a(n, e.mode, r, i), t.return = e, t) : (t = o(t, n), t.return = e, t);
			}
			function m(e, t, n) {
				if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = va("" + t, e.mode, n), t.return = e, t;
				if (typeof t == "object" && t) {
					switch (t.$$typeof) {
						case Na: return n = ga(t.type, t.key, t.props, null, e.mode, n), $e(n, t), n.return = e, n;
						case Pa: return t = ba(t, e.mode, n), t.return = e, t;
						case Wa: return t = Ye(t), m(e, t, n);
					}
					if (Ya(t) || l(t)) return t = _a(t, e.mode, n, null), t.return = e, t;
					if (typeof t.then == "function") return m(e, Qe(t), n);
					if (t.$$typeof === za) return m(e, De(e, t), n);
					F(e, t);
				}
				return null;
			}
			function h(e, t, n, r) {
				var i = t === null ? null : t.key;
				if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? u(e, t, "" + n, r) : null;
				if (typeof n == "object" && n) {
					switch (n.$$typeof) {
						case Na: return n.key === i ? d(e, t, n, r) : null;
						case Pa: return n.key === i ? f(e, t, n, r) : null;
						case Wa: return n = Ye(n), h(e, t, n, r);
					}
					if (Ya(n) || l(n)) return i === null ? p(e, t, n, r, null) : null;
					if (typeof n.then == "function") return h(e, t, Qe(n), r);
					if (n.$$typeof === za) return h(e, t, De(e, n), r);
					F(e, n);
				}
				return null;
			}
			function g(e, t, n, r, i) {
				if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, u(t, e, "" + r, i);
				if (typeof r == "object" && r) {
					switch (r.$$typeof) {
						case Na: return e = e.get(r.key === null ? n : r.key) || null, d(t, e, r, i);
						case Pa: return e = e.get(r.key === null ? n : r.key) || null, f(t, e, r, i);
						case Wa: return r = Ye(r), g(e, t, n, r, i);
					}
					if (Ya(r) || l(r)) return e = e.get(n) || null, p(t, e, r, i, null);
					if (typeof r.then == "function") return g(e, t, n, Qe(r), i);
					if (r.$$typeof === za) return g(e, t, n, De(t, r), i);
					F(t, r);
				}
				return null;
			}
			function _(t, r, o, c) {
				for (var l = null, u = null, d = r, f = r = 0, p = null; d !== null && f < o.length; f++) {
					d.index > f ? (p = d, d = null) : p = d.sibling;
					var _ = h(t, d, o[f], c);
					if (_ === null) {
						d === null && (d = p);
						break;
					}
					e && d && _.alternate === null && n(t, d), r = s(_, r, f), u === null ? l = _ : u.sibling = _, u = _, d = p;
				}
				if (f === o.length) return i(t, d), nl && ae(t, f), l;
				if (d === null) {
					for (; f < o.length; f++) d = m(t, o[f], c), d !== null && (r = s(d, r, f), u === null ? l = d : u.sibling = d, u = d);
					return nl && ae(t, f), l;
				}
				for (d = a(d); f < o.length; f++) p = g(d, t, f, o[f], c), p !== null && (e && p.alternate !== null && d.delete(p.key === null ? f : p.key), r = s(p, r, f), u === null ? l = p : u.sibling = p, u = p);
				return e && d.forEach(function(e) {
					return n(t, e);
				}), nl && ae(t, f), l;
			}
			function v(t, o, c, l) {
				if (c == null) throw Error(r(151));
				for (var u = null, d = null, f = o, p = o = 0, _ = null, v = c.next(); f !== null && !v.done; p++, v = c.next()) {
					f.index > p ? (_ = f, f = null) : _ = f.sibling;
					var y = h(t, f, v.value, l);
					if (y === null) {
						f === null && (f = _);
						break;
					}
					e && f && y.alternate === null && n(t, f), o = s(y, o, p), d === null ? u = y : d.sibling = y, d = y, f = _;
				}
				if (v.done) return i(t, f), nl && ae(t, p), u;
				if (f === null) {
					for (; !v.done; p++, v = c.next()) v = m(t, v.value, l), v !== null && (o = s(v, o, p), d === null ? u = v : d.sibling = v, d = v);
					return nl && ae(t, p), u;
				}
				for (f = a(f); !v.done; p++, v = c.next()) v = g(f, t, p, v.value, l), v !== null && (e && v.alternate !== null && f.delete(v.key === null ? p : v.key), o = s(v, o, p), d === null ? u = v : d.sibling = v, d = v);
				return e && f.forEach(function(e) {
					return n(t, e);
				}), nl && ae(t, p), u;
			}
			function y(e, t, a, s) {
				if (typeof a == "object" && a && a.type === Fa && a.key === null && (a = a.props.children), typeof a == "object" && a) {
					switch (a.$$typeof) {
						case Na:
							a: {
								for (var u = a.key; t !== null;) {
									if (t.key === u) {
										if (u = a.type, u === Fa) {
											if (t.tag === 7) {
												i(e, t.sibling), s = o(t, a.props.children), s.return = e, e = s;
												break a;
											}
										} else if (t.elementType === u || typeof u == "object" && u && u.$$typeof === Wa && Ye(u) === t.type) {
											i(e, t.sibling), s = o(t, a.props), $e(s, a), s.return = e, e = s;
											break a;
										}
										i(e, t);
										break;
									} else n(e, t);
									t = t.sibling;
								}
								a.type === Fa ? (s = _a(a.props.children, e.mode, s, a.key), s.return = e, e = s) : (s = ga(a.type, a.key, a.props, null, e.mode, s), $e(s, a), s.return = e, e = s);
							}
							return c(e);
						case Pa:
							a: {
								for (u = a.key; t !== null;) {
									if (t.key === u) if (t.tag === 4 && t.stateNode.containerInfo === a.containerInfo && t.stateNode.implementation === a.implementation) {
										i(e, t.sibling), s = o(t, a.children || []), s.return = e, e = s;
										break a;
									} else {
										i(e, t);
										break;
									}
									else n(e, t);
									t = t.sibling;
								}
								s = ba(a, e.mode, s), s.return = e, e = s;
							}
							return c(e);
						case Wa: return a = Ye(a), y(e, t, a, s);
					}
					if (Ya(a)) return _(e, t, a, s);
					if (l(a)) {
						if (u = l(a), typeof u != "function") throw Error(r(150));
						return a = u.call(a), v(e, t, a, s);
					}
					if (typeof a.then == "function") return y(e, t, Qe(a), s);
					if (a.$$typeof === za) return y(e, t, De(e, a), s);
					F(e, a);
				}
				return typeof a == "string" && a !== "" || typeof a == "number" || typeof a == "bigint" ? (a = "" + a, t !== null && t.tag === 6 ? (i(e, t.sibling), s = o(t, a), s.return = e, e = s) : (i(e, t), s = va(a, e.mode, s), s.return = e, e = s), c(e)) : i(e, t);
			}
			return function(e, n, r, i) {
				try {
					jl = 0;
					var a = y(e, n, r, i);
					return Al = null, a;
				} catch (n) {
					if (n === Tl || n === Dl) throw n;
					var o = t(29, n, null, e.mode);
					return o.lanes = i, o.return = e, o;
				}
			};
		}
		function tt() {
			for (var e = Fl, t = Il = Fl = 0; t < e;) {
				var n = Pl[t];
				Pl[t++] = null;
				var r = Pl[t];
				Pl[t++] = null;
				var i = Pl[t];
				Pl[t++] = null;
				var a = Pl[t];
				if (Pl[t++] = null, r !== null && i !== null) {
					var o = r.pending;
					o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
				}
				a !== 0 && at(n, i, a);
			}
		}
		function nt(e, t, n, r) {
			Pl[Fl++] = e, Pl[Fl++] = t, Pl[Fl++] = n, Pl[Fl++] = r, Il |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
		}
		function rt(e, t, n, r) {
			return nt(e, t, n, r), ot(e);
		}
		function it(e, t) {
			return nt(e, null, null, t), ot(e);
		}
		function at(e, t, n) {
			e.lanes |= n;
			var r = e.alternate;
			r !== null && (r.lanes |= n);
			for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
			return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - _c(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
		}
		function ot(e) {
			if (50 < rd) throw rd = 0, id = null, Error(r(185));
			for (var t = e.return; t !== null;) e = t, t = e.return;
			return e.tag === 3 ? e.stateNode : null;
		}
		function st(e) {
			e.updateQueue = {
				baseState: e.memoizedState,
				firstBaseUpdate: null,
				lastBaseUpdate: null,
				shared: {
					pending: null,
					lanes: 0,
					hiddenCallbacks: null
				},
				callbacks: null
			};
		}
		function ct(e, t) {
			e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
				baseState: e.baseState,
				firstBaseUpdate: e.firstBaseUpdate,
				lastBaseUpdate: e.lastBaseUpdate,
				shared: e.shared,
				callbacks: null
			});
		}
		function lt(e) {
			return {
				lane: e,
				tag: 0,
				payload: null,
				callback: null,
				next: null
			};
		}
		function ut(e, t, n) {
			var r = e.updateQueue;
			if (r === null) return null;
			if (r = r.shared, Eu & 2) {
				var i = r.pending;
				return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = ot(e), at(e, null, n), t;
			}
			return nt(e, r, t, n), ot(e);
		}
		function dt(e, t, n) {
			if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
				var r = t.lanes;
				r &= e.pendingLanes, n |= r, t.lanes = n, ne(e, n);
			}
		}
		function ft(e, t) {
			var n = e.updateQueue, r = e.alternate;
			if (r !== null && (r = r.updateQueue, n === r)) {
				var i = null, a = null;
				if (n = n.firstBaseUpdate, n !== null) {
					do {
						var o = {
							lane: n.lane,
							tag: n.tag,
							payload: n.payload,
							callback: null,
							next: null
						};
						a === null ? i = a = o : a = a.next = o, n = n.next;
					} while (n !== null);
					a === null ? i = a = t : a = a.next = t;
				} else i = a = t;
				n = {
					baseState: r.baseState,
					firstBaseUpdate: i,
					lastBaseUpdate: a,
					shared: r.shared,
					callbacks: r.callbacks
				}, e.updateQueue = n;
				return;
			}
			e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
		}
		function pt() {
			if (Rl) {
				var e = Sl;
				if (e !== null) throw e;
			}
		}
		function mt(e, t, n, r) {
			Rl = !1;
			var i = e.updateQueue;
			Ll = !1;
			var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
			if (s !== null) {
				i.shared.pending = null;
				var c = s, l = c.next;
				c.next = null, o === null ? a = l : o.next = l, o = c;
				var u = e.alternate;
				u !== null && (u = u.updateQueue, s = u.lastBaseUpdate, s !== o && (s === null ? u.firstBaseUpdate = l : s.next = l, u.lastBaseUpdate = c));
			}
			if (a !== null) {
				var d = i.baseState;
				o = 0, u = l = c = null, s = a;
				do {
					var f = s.lane & -536870913, p = f !== s.lane;
					if (p ? (ku & f) === f : (r & f) === f) {
						f !== 0 && f === xl && (Rl = !0), u !== null && (u = u.next = {
							lane: 0,
							tag: s.tag,
							payload: s.payload,
							callback: null,
							next: null
						});
						a: {
							var m = e, h = s;
							f = t;
							var g = n;
							switch (h.tag) {
								case 1:
									if (m = h.payload, typeof m == "function") {
										d = m.call(g, d, f);
										break a;
									}
									d = m;
									break a;
								case 3: m.flags = m.flags & -65537 | 128;
								case 0:
									if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
									d = ja({}, d, f);
									break a;
								case 2: Ll = !0;
							}
						}
						f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
					} else p = {
						lane: f,
						tag: s.tag,
						payload: s.payload,
						callback: s.callback,
						next: null
					}, u === null ? (l = u = p, c = d) : u = u.next = p, o |= f;
					if (s = s.next, s === null) {
						if (s = i.shared.pending, s === null) break;
						p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
					}
				} while (1);
				u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), Lu |= o, e.lanes = o, e.memoizedState = d;
			}
		}
		function ht(e, t) {
			if (typeof e != "function") throw Error(r(191, e));
			e.call(t);
		}
		function gt(e, t) {
			var n = e.callbacks;
			if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) ht(n[e], t);
		}
		function I(e, t) {
			e = Fu, m(Bl, e), m(zl, t), Fu = e | t.baseLanes;
		}
		function _t() {
			m(Bl, Fu), m(zl, zl.current);
		}
		function vt() {
			Fu = Bl.current, f(zl), f(Bl);
		}
		function yt(e) {
			var t = e.alternate;
			m(Ul, Ul.current & 1), m(Vl, e), Hl === null && (t === null || zl.current !== null || t.memoizedState !== null) && (Hl = e);
		}
		function bt(e) {
			m(Ul, Ul.current), m(Vl, e), Hl === null && (Hl = e);
		}
		function L(e) {
			e.tag === 22 ? (m(Ul, Ul.current), m(Vl, e), Hl === null && (Hl = e)) : xt(e);
		}
		function xt() {
			m(Ul, Ul.current), m(Vl, Vl.current);
		}
		function St(e) {
			f(Vl), Hl === e && (Hl = null), f(Ul);
		}
		function R(e) {
			for (var t = e; t !== null;) {
				if (t.tag === 13) {
					var n = t.memoizedState;
					if (n !== null && (n = n.dehydrated, n === null || fs(n) || ps(n))) return t;
				} else if (t.tag === 19 && (t.memoizedProps.revealOrder === "forwards" || t.memoizedProps.revealOrder === "backwards" || t.memoizedProps.revealOrder === "unstable_legacy-backwards" || t.memoizedProps.revealOrder === "together")) {
					if (t.flags & 128) return t;
				} else if (t.child !== null) {
					t.child.return = t, t = t.child;
					continue;
				}
				if (t === e) break;
				for (; t.sibling === null;) {
					if (t.return === null || t.return === e) return null;
					t = t.return;
				}
				t.sibling.return = t.return, t = t.sibling;
			}
			return null;
		}
		function Ct() {
			throw Error(r(321));
		}
		function wt(e, t) {
			if (t === null) return !1;
			for (var n = 0; n < t.length && n < e.length; n++) if (!G(e[n], t[n])) return !1;
			return !0;
		}
		function Tt(e, t, n, r, i, a) {
			return Wl = a, Gl = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, W.H = e === null || e.memoizedState === null ? nu : ru, Xl = !1, a = n(r, i), Xl = !1, Yl && (a = Dt(t, n, r, i)), Et(e), a;
		}
		function Et(e) {
			W.H = tu;
			var t = Kl !== null && Kl.next !== null;
			if (Wl = 0, ql = Kl = Gl = null, Jl = !1, Ql = 0, $l = null, t) throw Error(r(300));
			e === null || su || (e = e.dependencies, e !== null && we(e) && (su = !0));
		}
		function Dt(e, t, n, i) {
			Gl = e;
			var a = 0;
			do {
				if (Yl && ($l = null), Ql = 0, Yl = !1, 25 <= a) throw Error(r(301));
				if (a += 1, ql = Kl = null, e.updateQueue != null) {
					var o = e.updateQueue;
					o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
				}
				W.H = iu, o = t(n, i);
			} while (Yl);
			return o;
		}
		function Ot() {
			var e = W.H, t = e.useState()[0];
			return t = typeof t.then == "function" ? Pt(t) : t, e = e.useState()[0], (Kl === null ? null : Kl.memoizedState) !== e && (Gl.flags |= 1024), t;
		}
		function kt() {
			var e = Zl !== 0;
			return Zl = 0, e;
		}
		function At(e, t, n) {
			t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
		}
		function jt(e) {
			if (Jl) {
				for (e = e.memoizedState; e !== null;) {
					var t = e.queue;
					t !== null && (t.pending = null), e = e.next;
				}
				Jl = !1;
			}
			Wl = 0, ql = Kl = Gl = null, Yl = !1, Ql = Zl = 0, $l = null;
		}
		function z() {
			var e = {
				memoizedState: null,
				baseState: null,
				baseQueue: null,
				queue: null,
				next: null
			};
			return ql === null ? Gl.memoizedState = ql = e : ql = ql.next = e, ql;
		}
		function Mt() {
			if (Kl === null) {
				var e = Gl.alternate;
				e = e === null ? null : e.memoizedState;
			} else e = Kl.next;
			var t = ql === null ? Gl.memoizedState : ql.next;
			if (t !== null) ql = t, Kl = e;
			else {
				if (e === null) throw Gl.alternate === null ? Error(r(467)) : Error(r(310));
				Kl = e, e = {
					memoizedState: Kl.memoizedState,
					baseState: Kl.baseState,
					baseQueue: Kl.baseQueue,
					queue: Kl.queue,
					next: null
				}, ql === null ? Gl.memoizedState = ql = e : ql = ql.next = e;
			}
			return ql;
		}
		function Nt() {
			return {
				lastEffect: null,
				events: null,
				stores: null,
				memoCache: null
			};
		}
		function Pt(e) {
			var t = Ql;
			return Ql += 1, $l === null && ($l = []), e = Je($l, e, t), t = Gl, (ql === null ? t.memoizedState : ql.next) === null && (t = t.alternate, W.H = t === null || t.memoizedState === null ? nu : ru), e;
		}
		function Ft(e) {
			if (typeof e == "object" && e) {
				if (typeof e.then == "function") return Pt(e);
				if (e.$$typeof === za) return Ee(e);
			}
			throw Error(r(438, String(e)));
		}
		function It(e) {
			var t = null, n = Gl.updateQueue;
			if (n !== null && (t = n.memoCache), t == null) {
				var r = Gl.alternate;
				r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
					data: r.data.map(function(e) {
						return e.slice();
					}),
					index: 0
				})));
			}
			if (t ??= {
				data: [],
				index: 0
			}, n === null && (n = Nt(), Gl.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = Ka;
			return t.index++, n;
		}
		function Lt(e, t) {
			return typeof t == "function" ? t(e) : t;
		}
		function Rt(e) {
			return zt(Mt(), Kl, e);
		}
		function zt(e, t, n) {
			var i = e.queue;
			if (i === null) throw Error(r(311));
			i.lastRenderedReducer = n;
			var a = e.baseQueue, o = i.pending;
			if (o !== null) {
				if (a !== null) {
					var s = a.next;
					a.next = o.next, o.next = s;
				}
				t.baseQueue = a = o, i.pending = null;
			}
			if (o = e.baseState, a === null) e.memoizedState = o;
			else {
				t = a.next;
				var c = s = null, l = null, u = t, d = !1;
				do {
					var f = u.lane & -536870913;
					if (f === u.lane ? (Wl & f) === f : (ku & f) === f) {
						var p = u.revertLane;
						if (p === 0) l !== null && (l = l.next = {
							lane: 0,
							revertLane: 0,
							gesture: null,
							action: u.action,
							hasEagerState: u.hasEagerState,
							eagerState: u.eagerState,
							next: null
						}), f === xl && (d = !0);
						else if ((Wl & p) === p) {
							u = u.next, p === xl && (d = !0);
							continue;
						} else f = {
							lane: 0,
							revertLane: u.revertLane,
							gesture: null,
							action: u.action,
							hasEagerState: u.hasEagerState,
							eagerState: u.eagerState,
							next: null
						}, l === null ? (c = l = f, s = o) : l = l.next = f, Gl.lanes |= p, Lu |= p;
						f = u.action, Xl && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
					} else p = {
						lane: f,
						revertLane: u.revertLane,
						gesture: u.gesture,
						action: u.action,
						hasEagerState: u.hasEagerState,
						eagerState: u.eagerState,
						next: null
					}, l === null ? (c = l = p, s = o) : l = l.next = p, Gl.lanes |= f, Lu |= f;
					u = u.next;
				} while (u !== null && u !== t);
				if (l === null ? s = o : l.next = c, !G(o, e.memoizedState) && (su = !0, d && (n = Sl, n !== null))) throw n;
				e.memoizedState = o, e.baseState = s, e.baseQueue = l, i.lastRenderedState = o;
			}
			return a === null && (i.lanes = 0), [e.memoizedState, i.dispatch];
		}
		function Bt(e) {
			var t = Mt(), n = t.queue;
			if (n === null) throw Error(r(311));
			n.lastRenderedReducer = e;
			var i = n.dispatch, a = n.pending, o = t.memoizedState;
			if (a !== null) {
				n.pending = null;
				var s = a = a.next;
				do
					o = e(o, s.action), s = s.next;
				while (s !== a);
				G(o, t.memoizedState) || (su = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
			}
			return [o, i];
		}
		function Vt(e, t, n) {
			var i = Gl, a = Mt(), o = nl;
			if (o) {
				if (n === void 0) throw Error(r(407));
				n = n();
			} else n = t();
			var s = !G((Kl || a).memoizedState, n);
			if (s && (a.memoizedState = n, su = !0), a = a.queue, fn(Wt.bind(null, i, a, e), [e]), a.getSnapshot !== t || s || ql !== null && ql.memoizedState.tag & 1) {
				if (i.flags |= 2048, sn(9, { destroy: void 0 }, Ut.bind(null, i, a, n, t), null), Du === null) throw Error(r(349));
				o || Wl & 127 || Ht(i, t, n);
			}
			return n;
		}
		function Ht(e, t, n) {
			e.flags |= 16384, e = {
				getSnapshot: t,
				value: n
			}, t = Gl.updateQueue, t === null ? (t = Nt(), Gl.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
		}
		function Ut(e, t, n, r) {
			t.value = n, t.getSnapshot = r, Gt(t) && Kt(e);
		}
		function Wt(e, t, n) {
			return n(function() {
				Gt(t) && Kt(e);
			});
		}
		function Gt(e) {
			var t = e.getSnapshot;
			e = e.value;
			try {
				var n = t();
				return !G(e, n);
			} catch {
				return !0;
			}
		}
		function Kt(e) {
			var t = it(e, 2);
			t !== null && Ai(t, e, 2);
		}
		function qt(e) {
			var t = z();
			if (typeof e == "function") {
				var n = e;
				if (e = n(), Xl) {
					D(!0);
					try {
						n();
					} finally {
						D(!1);
					}
				}
			}
			return t.memoizedState = t.baseState = e, t.queue = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: Lt,
				lastRenderedState: e
			}, t;
		}
		function Jt(e, t, n, r) {
			return e.baseState = n, zt(e, Kl, typeof r == "function" ? r : Lt);
		}
		function Yt(e, t, n, i, a) {
			if (Pn(e)) throw Error(r(485));
			if (e = t.action, e !== null) {
				var o = {
					payload: a,
					action: e,
					next: null,
					isTransition: !0,
					status: "pending",
					value: null,
					reason: null,
					listeners: [],
					then: function(e) {
						o.listeners.push(e);
					}
				};
				W.T === null ? o.isTransition = !1 : n(!0), i(o), n = t.pending, n === null ? (o.next = t.pending = o, Xt(t, o)) : (o.next = n.next, t.pending = n.next = o);
			}
		}
		function Xt(e, t) {
			var n = t.action, r = t.payload, i = e.state;
			if (t.isTransition) {
				var a = W.T, o = {};
				W.T = o;
				try {
					var s = n(i, r), c = W.S;
					c !== null && c(o, s), Zt(e, t, s);
				} catch (n) {
					$t(e, t, n);
				} finally {
					a !== null && o.types !== null && (a.types = o.types), W.T = a;
				}
			} else try {
				a = n(i, r), Zt(e, t, a);
			} catch (n) {
				$t(e, t, n);
			}
		}
		function Zt(e, t, n) {
			typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
				Qt(e, t, n);
			}, function(n) {
				return $t(e, t, n);
			}) : Qt(e, t, n);
		}
		function Qt(e, t, n) {
			t.status = "fulfilled", t.value = n, en(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Xt(e, n)));
		}
		function $t(e, t, n) {
			var r = e.pending;
			if (e.pending = null, r !== null) {
				r = r.next;
				do
					t.status = "rejected", t.reason = n, en(t), t = t.next;
				while (t !== r);
			}
			e.action = null;
		}
		function en(e) {
			e = e.listeners;
			for (var t = 0; t < e.length; t++) (0, e[t])();
		}
		function tn(e, t) {
			return t;
		}
		function nn(e, t) {
			if (nl) {
				var n = Du.formState;
				if (n !== null) {
					a: {
						var r = Gl;
						if (nl) {
							if (tl) {
								var i = gs(tl, il);
								if (i) {
									tl = vs(i), r = _s(i);
									break a;
								}
							}
							me(r);
						}
						r = !1;
					}
					r && (t = n[0]);
				}
			}
			n = z(), n.memoizedState = n.baseState = t, r = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: tn,
				lastRenderedState: t
			}, n.queue = r, n = jn.bind(null, Gl, r), r.dispatch = n, r = qt(!1);
			var a = Nn.bind(null, Gl, !1, r.queue);
			return r = z(), i = {
				state: t,
				dispatch: null,
				action: e,
				pending: null
			}, r.queue = i, n = Yt.bind(null, Gl, i, a, n), i.dispatch = n, r.memoizedState = e, [
				t,
				n,
				!1
			];
		}
		function B(e) {
			return rn(Mt(), Kl, e);
		}
		function rn(e, t, n) {
			if (t = zt(e, t, tn)[0], e = Rt(Lt)[0], typeof t == "object" && t && typeof t.then == "function") try {
				var r = Pt(t);
			} catch (e) {
				throw e === Tl ? Dl : e;
			}
			else r = t;
			t = Mt();
			var i = t.queue, a = i.dispatch;
			return n !== t.memoizedState && (Gl.flags |= 2048, sn(9, { destroy: void 0 }, an.bind(null, i, n), null)), [
				r,
				a,
				e
			];
		}
		function an(e, t) {
			e.action = t;
		}
		function on(e) {
			var t = Mt(), n = Kl;
			if (n !== null) return rn(t, n, e);
			Mt(), t = t.memoizedState, n = Mt();
			var r = n.queue.dispatch;
			return n.memoizedState = e, [
				t,
				r,
				!1
			];
		}
		function sn(e, t, n, r) {
			return e = {
				tag: e,
				create: n,
				deps: r,
				inst: t,
				next: null
			}, t = Gl.updateQueue, t === null && (t = Nt(), Gl.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
		}
		function cn() {
			return Mt().memoizedState;
		}
		function ln(e, t, n, r) {
			var i = z();
			Gl.flags |= e, i.memoizedState = sn(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
		}
		function un(e, t, n, r) {
			var i = Mt();
			r = r === void 0 ? null : r;
			var a = i.memoizedState.inst;
			Kl !== null && r !== null && wt(r, Kl.memoizedState.deps) ? i.memoizedState = sn(t, a, n, r) : (Gl.flags |= e, i.memoizedState = sn(1 | t, a, n, r));
		}
		function dn(e, t) {
			ln(8390656, 8, e, t);
		}
		function fn(e, t) {
			un(2048, 8, e, t);
		}
		function pn(e) {
			Gl.flags |= 4;
			var t = Gl.updateQueue;
			if (t === null) t = Nt(), Gl.updateQueue = t, t.events = [e];
			else {
				var n = t.events;
				n === null ? t.events = [e] : n.push(e);
			}
		}
		function mn(e) {
			var t = Mt().memoizedState;
			return pn({
				ref: t,
				nextImpl: e
			}), function() {
				if (Eu & 2) throw Error(r(440));
				return t.impl.apply(void 0, arguments);
			};
		}
		function hn(e, t) {
			return un(4, 2, e, t);
		}
		function gn(e, t) {
			return un(4, 4, e, t);
		}
		function _n(e, t) {
			if (typeof t == "function") {
				e = e();
				var n = t(e);
				return function() {
					typeof n == "function" ? n() : t(null);
				};
			}
			if (t != null) return e = e(), t.current = e, function() {
				t.current = null;
			};
		}
		function vn(e, t, n) {
			n = n == null ? null : n.concat([e]), un(4, 4, _n.bind(null, t, e), n);
		}
		function yn() {}
		function bn(e, t) {
			var n = Mt();
			t = t === void 0 ? null : t;
			var r = n.memoizedState;
			return t !== null && wt(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
		}
		function xn(e, t) {
			var n = Mt();
			t = t === void 0 ? null : t;
			var r = n.memoizedState;
			if (t !== null && wt(t, r[1])) return r[0];
			if (r = e(), Xl) {
				D(!0);
				try {
					e();
				} finally {
					D(!1);
				}
			}
			return n.memoizedState = [r, t], r;
		}
		function Sn(e, t, n) {
			return n === void 0 || Wl & 1073741824 && !(ku & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = ki(), Gl.lanes |= e, Lu |= e, n);
		}
		function Cn(e, t, n, r) {
			return G(n, t) ? n : zl.current === null ? !(Wl & 42) || Wl & 1073741824 && !(ku & 261930) ? (su = !0, e.memoizedState = n) : (e = ki(), Gl.lanes |= e, Lu |= e, t) : (e = Sn(e, n, r), G(e, t) || (su = !0), e);
		}
		function wn(e, t, n, r, i) {
			var a = bo();
			yo(a !== 0 && 8 > a ? a : 8);
			var o = W.T, s = {};
			W.T = s, Nn(e, !1, t, n);
			try {
				var c = i(), l = W.S;
				l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? Mn(e, t, He(c, r), Oi(e)) : Mn(e, t, r, Oi(e));
			} catch (n) {
				Mn(e, t, {
					then: function() {},
					status: "rejected",
					reason: n
				}, Oi());
			} finally {
				yo(a), o !== null && s.types !== null && (o.types = s.types), W.T = o;
			}
		}
		function Tn(e) {
			var t = e.memoizedState;
			if (t !== null) return t;
			t = {
				memoizedState: jo,
				baseState: jo,
				baseQueue: null,
				queue: {
					pending: null,
					lanes: 0,
					dispatch: null,
					lastRenderedReducer: Lt,
					lastRenderedState: jo
				},
				next: null
			};
			var n = {};
			return t.next = {
				memoizedState: n,
				baseState: n,
				baseQueue: null,
				queue: {
					pending: null,
					lanes: 0,
					dispatch: null,
					lastRenderedReducer: Lt,
					lastRenderedState: n
				},
				next: null
			}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
		}
		function En() {
			return Ee(Mo);
		}
		function Dn() {
			return Mt().memoizedState;
		}
		function On() {
			return Mt().memoizedState;
		}
		function kn(e) {
			for (var t = e.return; t !== null;) {
				switch (t.tag) {
					case 24:
					case 3:
						var n = Oi();
						e = lt(n);
						var r = ut(t, e, n);
						r !== null && (Ai(r, t, n), dt(r, t, n)), t = { cache: ke() }, e.payload = t;
						return;
				}
				t = t.return;
			}
		}
		function An(e, t, n) {
			var r = Oi();
			n = {
				lane: r,
				revertLane: 0,
				gesture: null,
				action: n,
				hasEagerState: !1,
				eagerState: null,
				next: null
			}, Pn(e) ? Fn(t, n) : (n = rt(e, t, n, r), n !== null && (Ai(n, e, r), In(n, t, r)));
		}
		function jn(e, t, n) {
			Mn(e, t, n, Oi());
		}
		function Mn(e, t, n, r) {
			var i = {
				lane: r,
				revertLane: 0,
				gesture: null,
				action: n,
				hasEagerState: !1,
				eagerState: null,
				next: null
			};
			if (Pn(e)) Fn(t, i);
			else {
				var a = e.alternate;
				if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
					var o = t.lastRenderedState, s = a(o, n);
					if (i.hasEagerState = !0, i.eagerState = s, G(s, o)) return nt(e, t, i, 0), Du === null && tt(), !1;
				} catch {}
				if (n = rt(e, t, i, r), n !== null) return Ai(n, e, r), In(n, t, r), !0;
			}
			return !1;
		}
		function Nn(e, t, n, i) {
			if (i = {
				lane: 2,
				revertLane: ze(),
				gesture: null,
				action: i,
				hasEagerState: !1,
				eagerState: null,
				next: null
			}, Pn(e)) {
				if (t) throw Error(r(479));
			} else t = rt(e, n, i, 2), t !== null && Ai(t, e, 2);
		}
		function Pn(e) {
			var t = e.alternate;
			return e === Gl || t !== null && t === Gl;
		}
		function Fn(e, t) {
			Yl = Jl = !0;
			var n = e.pending;
			n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
		}
		function In(e, t, n) {
			if (n & 4194048) {
				var r = t.lanes;
				r &= e.pendingLanes, n |= r, t.lanes = n, ne(e, n);
			}
		}
		function Ln(e, t, n, r) {
			t = e.memoizedState, n = n(r, t), n = n == null ? t : ja({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
		}
		function Rn(e, t, n, r, i, a, o) {
			return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Ke(n, r) || !Ke(i, a) : !0;
		}
		function zn(e, t, n, r) {
			e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && au.enqueueReplaceState(t, t.state, null);
		}
		function Bn(e, t) {
			var n = t;
			if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
			if (e = e.defaultProps) for (var i in n === t && (n = ja({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
			return n;
		}
		function Vn(e, t) {
			try {
				var n = e.onUncaughtError;
				n(t.value, { componentStack: t.stack });
			} catch (e) {
				setTimeout(function() {
					throw e;
				});
			}
		}
		function Hn(e, t, n) {
			try {
				var r = e.onCaughtError;
				r(n.value, {
					componentStack: n.stack,
					errorBoundary: t.tag === 1 ? t.stateNode : null
				});
			} catch (e) {
				setTimeout(function() {
					throw e;
				});
			}
		}
		function Un(e, t, n) {
			return n = lt(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
				Vn(e, t);
			}, n;
		}
		function Wn(e) {
			return e = lt(e), e.tag = 3, e;
		}
		function Gn(e, t, n, r) {
			var i = n.type.getDerivedStateFromError;
			if (typeof i == "function") {
				var a = r.value;
				e.payload = function() {
					return i(a);
				}, e.callback = function() {
					Hn(t, n, r);
				};
			}
			var o = n.stateNode;
			o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
				Hn(t, n, r), typeof i != "function" && (Yu === null ? Yu = new Set([this]) : Yu.add(this));
				var e = r.stack;
				this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
			});
		}
		function Kn(e, t, n, i, a) {
			if (n.flags |= 32768, typeof i == "object" && i && typeof i.then == "function") {
				if (t = n.alternate, t !== null && Ce(t, n, a, !0), n = Vl.current, n !== null) {
					switch (n.tag) {
						case 31:
						case 13: return Hl === null ? Hi() : n.alternate === null && Iu === 0 && (Iu = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, i === Ol ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = new Set([i]) : t.add(i), sa(e, i, a)), !1;
						case 22: return n.flags |= 65536, i === Ol ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
							transitions: null,
							markerInstances: null,
							retryQueue: new Set([i])
						}, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = new Set([i]) : n.add(i)), sa(e, i, a)), !1;
					}
					throw Error(r(435, n.tag));
				}
				return sa(e, i, a), Hi(), !1;
			}
			if (nl) return t = Vl.current, t === null ? (i !== al && (t = Error(r(423), { cause: i }), ye(j(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, i = j(i, n), a = Un(e.stateNode, i, a), ft(e, a), Iu !== 4 && (Iu = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, i !== al && (e = Error(r(422), { cause: i }), ye(j(e, n)))), !1;
			var o = Error(r(520), { cause: i });
			if (o = j(o, n), Hu === null ? Hu = [o] : Hu.push(o), Iu !== 4 && (Iu = 2), t === null) return !0;
			i = j(i, n), n = t;
			do {
				switch (n.tag) {
					case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Un(n.stateNode, i, e), ft(n, e), !1;
					case 1: if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (Yu === null || !Yu.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Wn(a), Gn(a, e, n, i), ft(n, a), !1;
				}
				n = n.return;
			} while (n !== null);
			return !1;
		}
		function qn(e, t, n, r) {
			t.child = e === null ? Nl(t, null, n, r) : Ml(t, e.child, n, r);
		}
		function Jn(e, t, n, r, i) {
			n = n.render;
			var a = t.ref;
			if ("ref" in r) {
				var o = {};
				for (var s in r) s !== "ref" && (o[s] = r[s]);
			} else o = r;
			return Te(t), r = Tt(e, t, n, o, a, i), s = kt(), e !== null && !su ? (At(e, t, i), hr(e, t, i)) : (nl && s && se(t), t.flags |= 1, qn(e, t, r, i), t.child);
		}
		function Yn(e, t, n, r, i) {
			if (e === null) {
				var a = n.type;
				return typeof a == "function" && !pa(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Xn(e, t, a, r, i)) : (e = ga(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
			}
			if (a = e.child, !gr(e, i)) {
				var o = a.memoizedProps;
				if (n = n.compare, n = n === null ? Ke : n, n(o, r) && e.ref === t.ref) return hr(e, t, i);
			}
			return t.flags |= 1, e = ma(a, r), e.ref = t.ref, e.return = t, t.child = e;
		}
		function Xn(e, t, n, r, i) {
			if (e !== null) {
				var a = e.memoizedProps;
				if (Ke(a, r) && e.ref === t.ref) if (su = !1, t.pendingProps = r = a, gr(e, i)) e.flags & 131072 && (su = !0);
				else return t.lanes = e.lanes, hr(e, t, i);
			}
			return ir(e, t, n, r, i);
		}
		function Zn(e, t, n, r) {
			var i = r.children, a = e === null ? null : e.memoizedState;
			if (e === null && t.stateNode === null && (t.stateNode = {
				_visibility: 1,
				_pendingMarkers: null,
				_retryCache: null,
				_transitions: null
			}), r.mode === "hidden") {
				if (t.flags & 128) {
					if (a = a === null ? n : a.baseLanes | n, e !== null) {
						for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
						r = i & ~a;
					} else r = 0, t.child = null;
					return $n(e, t, a, n, r);
				}
				if (n & 536870912) t.memoizedState = {
					baseLanes: 0,
					cachePool: null
				}, e !== null && We(t, a === null ? null : a.cachePool), a === null ? _t() : I(t, a), L(t);
				else return r = t.lanes = 536870912, $n(e, t, a === null ? n : a.baseLanes | n, n, r);
			} else a === null ? (e !== null && We(t, null), _t(), xt(t)) : (We(t, a.cachePool), I(t, a), xt(t), t.memoizedState = null);
			return qn(e, t, i, n), t.child;
		}
		function Qn(e, t) {
			return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
				_visibility: 1,
				_pendingMarkers: null,
				_retryCache: null,
				_transitions: null
			}), t.sibling;
		}
		function $n(e, t, n, r, i) {
			var a = Ue();
			return a = a === null ? null : {
				parent: po ? fl._currentValue : fl._currentValue2,
				pool: a
			}, t.memoizedState = {
				baseLanes: n,
				cachePool: a
			}, e !== null && We(t, null), _t(), L(t), e !== null && Ce(e, t, r, !0), t.childLanes = i, null;
		}
		function er(e, t) {
			return t = dr({
				mode: t.mode,
				children: t.children
			}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
		}
		function tr(e, t, n) {
			return Ml(t, e.child, null, n), e = er(t, t.pendingProps), e.flags |= 2, St(t), t.memoizedState = null, e;
		}
		function nr(e, t, n) {
			var i = t.pendingProps, a = (t.flags & 128) != 0;
			if (t.flags &= -129, e === null) {
				if (nl) {
					if (i.mode === "hidden") return e = er(t, i), t.lanes = 536870912, Qn(null, e);
					if (bt(t), (e = tl) ? (e = Ds(e, il), e !== null && (t.memoizedState = {
						dehydrated: e,
						treeContext: qc === null ? null : {
							id: Jc,
							overflow: Yc
						},
						retryLane: 536870912,
						hydrationErrors: null
					}, n = ya(e), n.return = t, t.child = n, el = t, tl = null)) : e = null, e === null) throw me(t);
					return t.lanes = 536870912, null;
				}
				return er(t, i);
			}
			var o = e.memoizedState;
			if (o !== null) {
				var s = o.dehydrated;
				if (bt(t), a) if (t.flags & 256) t.flags &= -257, t = tr(e, t, n);
				else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
				else throw Error(r(558));
				else if (su || Ce(e, t, n, !1), a = (n & e.childLanes) !== 0, su || a) {
					if (i = Du, i !== null && (s = w(i, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, it(e, s), Ai(i, e, s), ou;
					Hi(), t = tr(e, t, n);
				} else e = o.treeContext, go && (tl = Ss(s), el = t, nl = !0, rl = null, il = !1, e !== null && le(t, e)), t = er(t, i), t.flags |= 4096;
				return t;
			}
			return e = ma(e.child, {
				mode: i.mode,
				children: i.children
			}), e.ref = t.ref, t.child = e, e.return = t, e;
		}
		function rr(e, t) {
			var n = t.ref;
			if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
			else {
				if (typeof n != "function" && typeof n != "object") throw Error(r(284));
				(e === null || e.ref !== n) && (t.flags |= 4194816);
			}
		}
		function ir(e, t, n, r, i) {
			return Te(t), n = Tt(e, t, n, r, void 0, i), r = kt(), e !== null && !su ? (At(e, t, i), hr(e, t, i)) : (nl && r && se(t), t.flags |= 1, qn(e, t, n, i), t.child);
		}
		function ar(e, t, n, r, i, a) {
			return Te(t), t.updateQueue = null, n = Dt(t, r, n, i), Et(e), r = kt(), e !== null && !su ? (At(e, t, a), hr(e, t, a)) : (nl && r && se(t), t.flags |= 1, qn(e, t, n, a), t.child);
		}
		function or(e, t, n, r, i) {
			if (Te(t), t.stateNode === null) {
				var a = gc, o = n.contextType;
				typeof o == "object" && o && (a = Ee(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = au, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, st(t), o = n.contextType, a.context = typeof o == "object" && o ? Ee(o) : gc, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (Ln(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && au.enqueueReplaceState(a, a.state, null), mt(t, r, a, i), pt(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
			} else if (e === null) {
				a = t.stateNode;
				var s = t.memoizedProps, c = Bn(n, s);
				a.props = c;
				var l = a.context, u = n.contextType;
				o = gc, typeof u == "object" && u && (o = Ee(u));
				var d = n.getDerivedStateFromProps;
				u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && zn(t, a, r, o), Ll = !1;
				var f = t.memoizedState;
				a.state = f, mt(t, r, a, i), pt(), l = t.memoizedState, s || f !== l || Ll ? (typeof d == "function" && (Ln(t, n, d, r), l = t.memoizedState), (c = Ll || Rn(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
			} else {
				a = t.stateNode, ct(e, t), o = t.memoizedProps, u = Bn(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = gc, typeof l == "object" && l && (c = Ee(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && zn(t, a, r, c), Ll = !1, f = t.memoizedState, a.state = f, mt(t, r, a, i), pt();
				var p = t.memoizedState;
				o !== d || f !== p || Ll || e !== null && e.dependencies !== null && we(e.dependencies) ? (typeof s == "function" && (Ln(t, n, s, r), p = t.memoizedState), (u = Ll || Rn(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && we(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
			}
			return a = r, rr(e, t), r = (t.flags & 128) != 0, a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = Ml(t, e.child, null, i), t.child = Ml(t, null, n, i)) : qn(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = hr(e, t, i), e;
		}
		function sr(e, t, n, r) {
			return ve(), t.flags |= 256, qn(e, t, n, r), t.child;
		}
		function cr(e) {
			return {
				baseLanes: e,
				cachePool: Ge()
			};
		}
		function lr(e, t, n) {
			return e = e === null ? 0 : e.childLanes & ~n, t && (e |= Bu), e;
		}
		function V(e, t, n) {
			var i = t.pendingProps, a = !1, o = (t.flags & 128) != 0, s;
			if ((s = o) || (s = e !== null && e.memoizedState === null ? !1 : (Ul.current & 2) != 0), s && (a = !0, t.flags &= -129), s = (t.flags & 32) != 0, t.flags &= -33, e === null) {
				if (nl) {
					if (a ? yt(t) : xt(t), (e = tl) ? (e = Os(e, il), e !== null && (t.memoizedState = {
						dehydrated: e,
						treeContext: qc === null ? null : {
							id: Jc,
							overflow: Yc
						},
						retryLane: 536870912,
						hydrationErrors: null
					}, n = ya(e), n.return = t, t.child = n, el = t, tl = null)) : e = null, e === null) throw me(t);
					return ps(e) ? t.lanes = 32 : t.lanes = 536870912, null;
				}
				var c = i.children;
				return i = i.fallback, a ? (xt(t), a = t.mode, c = dr({
					mode: "hidden",
					children: c
				}, a), i = _a(i, a, n, null), c.return = t, i.return = t, c.sibling = i, t.child = c, i = t.child, i.memoizedState = cr(n), i.childLanes = lr(e, s, n), t.memoizedState = cu, Qn(null, i)) : (yt(t), ur(t, c));
			}
			var l = e.memoizedState;
			if (l !== null && (c = l.dehydrated, c !== null)) {
				if (o) t.flags & 256 ? (yt(t), t.flags &= -257, t = fr(e, t, n)) : t.memoizedState === null ? (xt(t), c = i.fallback, a = t.mode, i = dr({
					mode: "visible",
					children: i.children
				}, a), c = _a(c, a, n, null), c.flags |= 2, i.return = t, c.return = t, i.sibling = c, t.child = i, Ml(t, e.child, null, n), i = t.child, i.memoizedState = cr(n), i.childLanes = lr(e, s, n), t.memoizedState = cu, t = Qn(null, i)) : (xt(t), t.child = e.child, t.flags |= 128, t = null);
				else if (yt(t), ps(c)) s = ms(c).digest, i = Error(r(419)), i.stack = "", i.digest = s, ye({
					value: i,
					source: null,
					stack: null
				}), t = fr(e, t, n);
				else if (su || Ce(e, t, n, !1), s = (n & e.childLanes) !== 0, su || s) {
					if (s = Du, s !== null && (i = w(s, n), i !== 0 && i !== l.retryLane)) throw l.retryLane = i, it(e, i), Ai(s, e, i), ou;
					fs(c) || Hi(), t = fr(e, t, n);
				} else fs(c) ? (t.flags |= 192, t.child = e.child, t = null) : (e = l.treeContext, go && (tl = Cs(c), el = t, nl = !0, rl = null, il = !1, e !== null && le(t, e)), t = ur(t, i.children), t.flags |= 4096);
				return t;
			}
			return a ? (xt(t), c = i.fallback, a = t.mode, l = e.child, o = l.sibling, i = ma(l, {
				mode: "hidden",
				children: i.children
			}), i.subtreeFlags = l.subtreeFlags & 65011712, o === null ? (c = _a(c, a, n, null), c.flags |= 2) : c = ma(o, c), c.return = t, i.return = t, i.sibling = c, t.child = i, Qn(null, i), i = t.child, c = e.child.memoizedState, c === null ? c = cr(n) : (a = c.cachePool, a === null ? a = Ge() : (l = po ? fl._currentValue : fl._currentValue2, a = a.parent === l ? a : {
				parent: l,
				pool: l
			}), c = {
				baseLanes: c.baseLanes | n,
				cachePool: a
			}), i.memoizedState = c, i.childLanes = lr(e, s, n), t.memoizedState = cu, Qn(e.child, i)) : (yt(t), n = e.child, e = n.sibling, n = ma(n, {
				mode: "visible",
				children: i.children
			}), n.return = t, n.sibling = null, e !== null && (s = t.deletions, s === null ? (t.deletions = [e], t.flags |= 16) : s.push(e)), t.child = n, t.memoizedState = null, n);
		}
		function ur(e, t) {
			return t = dr({
				mode: "visible",
				children: t
			}, e.mode), t.return = e, e.child = t;
		}
		function dr(e, n) {
			return e = t(22, e, null, n), e.lanes = 0, e;
		}
		function fr(e, t, n) {
			return Ml(t, e.child, null, n), e = ur(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
		}
		function pr(e, t, n) {
			e.lanes |= t;
			var r = e.alternate;
			r !== null && (r.lanes |= t), Se(e.return, t, n);
		}
		function mr(e, t, n, r, i, a) {
			var o = e.memoizedState;
			o === null ? e.memoizedState = {
				isBackwards: t,
				rendering: null,
				renderingStartTime: 0,
				last: r,
				tail: n,
				tailMode: i,
				treeForkCount: a
			} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
		}
		function H(e, t, n) {
			var r = t.pendingProps, i = r.revealOrder, a = r.tail;
			r = r.children;
			var o = Ul.current, s = (o & 2) != 0;
			if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, m(Ul, o), qn(e, t, r, n), r = nl ? K : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
				if (e.tag === 13) e.memoizedState !== null && pr(e, n, t);
				else if (e.tag === 19) pr(e, n, t);
				else if (e.child !== null) {
					e.child.return = e, e = e.child;
					continue;
				}
				if (e === t) break a;
				for (; e.sibling === null;) {
					if (e.return === null || e.return === t) break a;
					e = e.return;
				}
				e.sibling.return = e.return, e = e.sibling;
			}
			switch (i) {
				case "forwards":
					for (n = t.child, i = null; n !== null;) e = n.alternate, e !== null && R(e) === null && (i = n), n = n.sibling;
					n = i, n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), mr(t, !1, i, n, a, r);
					break;
				case "backwards":
				case "unstable_legacy-backwards":
					for (n = null, i = t.child, t.child = null; i !== null;) {
						if (e = i.alternate, e !== null && R(e) === null) {
							t.child = i;
							break;
						}
						e = i.sibling, i.sibling = n, n = i, i = e;
					}
					mr(t, !0, n, null, a, r);
					break;
				case "together":
					mr(t, !1, null, null, void 0, r);
					break;
				default: t.memoizedState = null;
			}
			return t.child;
		}
		function hr(e, t, n) {
			if (e !== null && (t.dependencies = e.dependencies), Lu |= t.lanes, (n & t.childLanes) === 0) if (e !== null) {
				if (Ce(e, t, n, !1), (n & t.childLanes) === 0) return null;
			} else return null;
			if (e !== null && t.child !== e.child) throw Error(r(153));
			if (t.child !== null) {
				for (e = t.child, n = ma(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ma(e, e.pendingProps), n.return = t;
				n.sibling = null;
			}
			return t.child;
		}
		function gr(e, t) {
			return (e.lanes & t) === 0 ? (e = e.dependencies, !!(e !== null && we(e))) : !0;
		}
		function _r(e, t, n) {
			switch (t.tag) {
				case 3:
					ue(t, t.stateNode.containerInfo), be(t, fl, e.memoizedState.cache), ve();
					break;
				case 27:
				case 5:
					fe(t);
					break;
				case 4:
					ue(t, t.stateNode.containerInfo);
					break;
				case 10:
					be(t, t.type, t.memoizedProps.value);
					break;
				case 31:
					if (t.memoizedState !== null) return t.flags |= 128, bt(t), null;
					break;
				case 13:
					var r = t.memoizedState;
					if (r !== null) return r.dehydrated === null ? (n & t.child.childLanes) === 0 ? (yt(t), e = hr(e, t, n), e === null ? null : e.sibling) : V(e, t, n) : (yt(t), t.flags |= 128, null);
					yt(t);
					break;
				case 19:
					var i = (e.flags & 128) != 0;
					if (r = (n & t.childLanes) !== 0, r ||= (Ce(e, t, n, !1), (n & t.childLanes) !== 0), i) {
						if (r) return H(e, t, n);
						t.flags |= 128;
					}
					if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), m(Ul, Ul.current), r) break;
					return null;
				case 22: return t.lanes = 0, Zn(e, t, n, t.pendingProps);
				case 24: be(t, fl, e.memoizedState.cache);
			}
			return hr(e, t, n);
		}
		function vr(e, t, n) {
			if (e !== null) if (e.memoizedProps !== t.pendingProps) su = !0;
			else {
				if (!gr(e, n) && !(t.flags & 128)) return su = !1, _r(e, t, n);
				su = !!(e.flags & 131072);
			}
			else su = !1, nl && t.flags & 1048576 && oe(t, K, t.index);
			switch (t.lanes = 0, t.tag) {
				case 16:
					a: {
						var i = t.pendingProps;
						if (e = Ye(t.elementType), t.type = e, typeof e == "function") pa(e) ? (i = Bn(e, i), t.tag = 1, t = or(null, t, e, i, n)) : (t.tag = 0, t = ir(null, t, e, i, n));
						else {
							if (e != null) {
								var a = e.$$typeof;
								if (a === Ba) {
									t.tag = 11, t = Jn(null, t, e, i, n);
									break a;
								} else if (a === Ua) {
									t.tag = 14, t = Yn(null, t, e, i, n);
									break a;
								}
							}
							throw t = u(e) || e, Error(r(306, t, ""));
						}
					}
					return t;
				case 0: return ir(e, t, t.type, t.pendingProps, n);
				case 1: return i = t.type, a = Bn(i, t.pendingProps), or(e, t, i, a, n);
				case 3:
					a: {
						if (ue(t, t.stateNode.containerInfo), e === null) throw Error(r(387));
						var o = t.pendingProps;
						a = t.memoizedState, i = a.element, ct(e, t), mt(t, o, null, n);
						var s = t.memoizedState;
						if (o = s.cache, be(t, fl, o), o !== a.cache && N(t, [fl], n, !0), pt(), o = s.element, go && a.isDehydrated) if (a = {
							element: o,
							isDehydrated: !1,
							cache: s.cache
						}, t.updateQueue.baseState = a, t.memoizedState = a, t.flags & 256) {
							t = sr(e, t, o, n);
							break a;
						} else if (o !== i) {
							i = j(Error(r(424)), t), ye(i), t = sr(e, t, o, n);
							break a;
						} else for (go && (tl = xs(t.stateNode.containerInfo), el = t, nl = !0, rl = null, il = !0), n = Nl(t, null, o, n), t.child = n; n;) n.flags = n.flags & -3 | 4096, n = n.sibling;
						else {
							if (ve(), o === i) {
								t = hr(e, t, n);
								break a;
							}
							qn(e, t, o, n);
						}
						t = t.child;
					}
					return t;
				case 26: if (Js) return rr(e, t), e === null ? (n = Zs(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : nl || (t.stateNode = rc(t.type, t.pendingProps, Qc.current, t)) : t.memoizedState = Zs(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
				case 27: if (cc) return fe(t), e === null && cc && nl && (i = t.stateNode = lc(t.type, t.pendingProps, Qc.current, Xc.current, !1), el = t, il = !0, tl = ws(t.type, i, tl)), qn(e, t, t.pendingProps.children, n), rr(e, t), e === null && (t.flags |= 4194304), t.child;
				case 5: return e === null && nl && (Ks(t.type, t.pendingProps, Xc.current), (a = i = tl) && (i = Ts(i, t.type, t.pendingProps, il), i === null ? a = !1 : (t.stateNode = i, el = t, tl = bs(i), il = !1, a = !0)), a || me(t)), fe(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, i = o.children, so(a, o) ? i = null : s !== null && so(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Tt(e, t, Ot, null, null, n), po ? Mo._currentValue = a : Mo._currentValue2 = a), rr(e, t), qn(e, t, i, n), t.child;
				case 6: return e === null && nl && (qs(t.pendingProps, Xc.current), (e = n = tl) && (n = Es(n, t.pendingProps, il), n === null ? e = !1 : (t.stateNode = n, el = t, tl = null, e = !0)), e || me(t)), null;
				case 13: return V(e, t, n);
				case 4: return ue(t, t.stateNode.containerInfo), i = t.pendingProps, e === null ? t.child = Ml(t, null, i, n) : qn(e, t, i, n), t.child;
				case 11: return Jn(e, t, t.type, t.pendingProps, n);
				case 7: return qn(e, t, t.pendingProps, n), t.child;
				case 8: return qn(e, t, t.pendingProps.children, n), t.child;
				case 12: return qn(e, t, t.pendingProps.children, n), t.child;
				case 10: return i = t.pendingProps, be(t, t.type, i.value), qn(e, t, i.children, n), t.child;
				case 9: return a = t.type._context, i = t.pendingProps.children, Te(t), a = Ee(a), i = i(a), t.flags |= 1, qn(e, t, i, n), t.child;
				case 14: return Yn(e, t, t.type, t.pendingProps, n);
				case 15: return Xn(e, t, t.type, t.pendingProps, n);
				case 19: return H(e, t, n);
				case 31: return nr(e, t, n);
				case 22: return Zn(e, t, n, t.pendingProps);
				case 24: return Te(t), i = Ee(fl), e === null ? (a = Ue(), a === null && (a = Du, o = ke(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
					parent: i,
					cache: a
				}, st(t), be(t, fl, a)) : ((e.lanes & n) !== 0 && (ct(e, t), mt(t, null, null, n), pt()), a = e.memoizedState, o = t.memoizedState, a.parent === i ? (i = o.cache, be(t, fl, i), i !== a.cache && N(t, [fl], n, !0)) : (a = {
					parent: i,
					cache: i
				}, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), be(t, fl, i))), qn(e, t, t.pendingProps.children, n), t.child;
				case 29: throw t.pendingProps;
			}
			throw Error(r(156, t.tag));
		}
		function yr(e) {
			e.flags |= 4;
		}
		function br(e) {
			ho && (e.flags |= 8);
		}
		function xr(e, t) {
			if (e !== null && e.child === t.child) return !1;
			if (t.flags & 16) return !0;
			for (e = t.child; e !== null;) {
				if (e.flags & 8218 || e.subtreeFlags & 8218) return !0;
				e = e.sibling;
			}
			return !1;
		}
		function Sr(e, t, n, r) {
			if (mo) for (n = t.child; n !== null;) {
				if (n.tag === 5 || n.tag === 6) ao(e, n.stateNode);
				else if (!(n.tag === 4 || cc && n.tag === 27) && n.child !== null) {
					n.child.return = n, n = n.child;
					continue;
				}
				if (n === t) break;
				for (; n.sibling === null;) {
					if (n.return === null || n.return === t) return;
					n = n.return;
				}
				n.sibling.return = n.return, n = n.sibling;
			}
			else if (ho) for (var i = t.child; i !== null;) {
				if (i.tag === 5) {
					var a = i.stateNode;
					n && r && (a = us(a, i.type, i.memoizedProps)), ao(e, a);
				} else if (i.tag === 6) a = i.stateNode, n && r && (a = ds(a, i.memoizedProps)), ao(e, a);
				else if (i.tag !== 4) {
					if (i.tag === 22 && i.memoizedState !== null) a = i.child, a !== null && (a.return = i), Sr(e, i, !0, !0);
					else if (i.child !== null) {
						i.child.return = i, i = i.child;
						continue;
					}
				}
				if (i === t) break;
				for (; i.sibling === null;) {
					if (i.return === null || i.return === t) return;
					i = i.return;
				}
				i.sibling.return = i.return, i = i.sibling;
			}
		}
		function Cr(e, t, n, r) {
			var i = !1;
			if (ho) for (var a = t.child; a !== null;) {
				if (a.tag === 5) {
					var o = a.stateNode;
					n && r && (o = us(o, a.type, a.memoizedProps)), ss(e, o);
				} else if (a.tag === 6) o = a.stateNode, n && r && (o = ds(o, a.memoizedProps)), ss(e, o);
				else if (a.tag !== 4) {
					if (a.tag === 22 && a.memoizedState !== null) i = a.child, i !== null && (i.return = a), Cr(e, a, !0, !0), i = !0;
					else if (a.child !== null) {
						a.child.return = a, a = a.child;
						continue;
					}
				}
				if (a === t) break;
				for (; a.sibling === null;) {
					if (a.return === null || a.return === t) return i;
					a = a.return;
				}
				a.sibling.return = a.return, a = a.sibling;
			}
			return i;
		}
		function wr(e, t) {
			if (ho && xr(e, t)) {
				e = t.stateNode;
				var n = e.containerInfo, r = os();
				Cr(r, t, !1, !1), e.pendingChildren = r, yr(t), cs(n, r);
			}
		}
		function Tr(e, t, n, r) {
			if (mo) e.memoizedProps !== r && yr(t);
			else if (ho) {
				var i = e.stateNode, a = e.memoizedProps;
				if ((e = xr(e, t)) || a !== r) {
					var o = Xc.current;
					a = as(i, n, a, r, !e, null), a === i ? t.stateNode = i : (br(t), oo(a, n, r, o) && yr(t), t.stateNode = a, e && Sr(a, t, !1, !1));
				} else t.stateNode = i;
			}
		}
		function Er(e, t, n, r, i) {
			if (e.mode & 32 && (n === null ? wo(t, r) : To(t, n, r))) {
				if (e.flags |= 16777216, (i & 335544128) === i || Eo(t, r)) if (Do(e.stateNode, t, r)) e.flags |= 8192;
				else if (zi()) e.flags |= 8192;
				else throw kl = Ol, El;
			} else e.flags &= -16777217;
		}
		function Dr(e, t) {
			if (ac(t)) {
				if (e.flags |= 16777216, !oc(t)) if (zi()) e.flags |= 8192;
				else throw kl = Ol, El;
			} else e.flags &= -16777217;
		}
		function Or(e, t) {
			t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : x(), e.lanes |= t, Vu |= t);
		}
		function kr(e, t) {
			if (!nl) switch (e.tailMode) {
				case "hidden":
					t = e.tail;
					for (var n = null; t !== null;) t.alternate !== null && (n = t), t = t.sibling;
					n === null ? e.tail = null : n.sibling = null;
					break;
				case "collapsed":
					n = e.tail;
					for (var r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
					r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null;
			}
		}
		function Ar(e) {
			var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
			if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 65011712, r |= i.flags & 65011712, i.return = e, i = i.sibling;
			else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
			return e.subtreeFlags |= r, e.childLanes = n, t;
		}
		function jr(e, t, n) {
			var i = t.pendingProps;
			switch (ce(t), t.tag) {
				case 16:
				case 15:
				case 0:
				case 11:
				case 7:
				case 8:
				case 12:
				case 9:
				case 14: return Ar(t), null;
				case 1: return Ar(t), null;
				case 3: return n = t.stateNode, i = null, e !== null && (i = e.memoizedState.cache), t.memoizedState.cache !== i && (t.flags |= 2048), xe(fl), de(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (_e(t) ? yr(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, M())), wr(e, t), Ar(t), null;
				case 26: if (Js) {
					var a = t.type, o = t.memoizedState;
					return e === null ? (yr(t), o === null ? (Ar(t), Er(t, a, null, i, n)) : (Ar(t), Dr(t, o))) : o ? o === e.memoizedState ? (Ar(t), t.flags &= -16777217) : (yr(t), Ar(t), Dr(t, o)) : (o = e.memoizedProps, mo ? o !== i && yr(t) : Tr(e, t, a, i), Ar(t), Er(t, a, o, i, n)), null;
				}
				case 27: if (cc) {
					if (pe(t), n = Qc.current, a = t.type, e !== null && t.stateNode != null) mo ? e.memoizedProps !== i && yr(t) : Tr(e, t, a, i);
					else {
						if (!i) {
							if (t.stateNode === null) throw Error(r(166));
							return Ar(t), null;
						}
						e = Xc.current, _e(t) ? he(t, e) : (e = lc(a, i, n, e, !0), t.stateNode = e, yr(t));
					}
					return Ar(t), null;
				}
				case 5:
					if (pe(t), a = t.type, e !== null && t.stateNode != null) Tr(e, t, a, i);
					else {
						if (!i) {
							if (t.stateNode === null) throw Error(r(166));
							return Ar(t), null;
						}
						if (o = Xc.current, _e(t)) he(t, o), zs(t.stateNode, a, i, o) && (t.flags |= 64);
						else {
							var s = io(a, i, Qc.current, o, t);
							br(t), Sr(s, t, !1, !1), t.stateNode = s, oo(s, a, i, o) && yr(t);
						}
					}
					return Ar(t), Er(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
				case 6:
					if (e && t.stateNode != null) n = e.memoizedProps, mo ? n !== i && yr(t) : ho && (n === i ? t.stateNode = e.stateNode : (e = Qc.current, n = Xc.current, br(t), t.stateNode = co(i, e, n, t)));
					else {
						if (typeof i != "string" && t.stateNode === null) throw Error(r(166));
						if (e = Qc.current, n = Xc.current, _e(t)) {
							if (!go) throw Error(r(176));
							if (e = t.stateNode, n = t.memoizedProps, i = null, a = el, a !== null) switch (a.tag) {
								case 27:
								case 5: i = a.memoizedProps;
							}
							As(e, n, t, i) || me(t, !0);
						} else br(t), t.stateNode = co(i, e, n, t);
					}
					return Ar(t), null;
				case 31:
					if (n = t.memoizedState, e === null || e.memoizedState !== null) {
						if (i = _e(t), n !== null) {
							if (e === null) {
								if (!i) throw Error(r(318));
								if (!go) throw Error(r(556));
								if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(r(557));
								js(e, t);
							} else ve(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
							Ar(t), e = !1;
						} else n = M(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
						if (!e) return t.flags & 256 ? (St(t), t) : (St(t), null);
						if (t.flags & 128) throw Error(r(558));
					}
					return Ar(t), null;
				case 13:
					if (i = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
						if (a = _e(t), i !== null && i.dehydrated !== null) {
							if (e === null) {
								if (!a) throw Error(r(318));
								if (!go) throw Error(r(344));
								if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(r(317));
								Ms(a, t);
							} else ve(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
							Ar(t), a = !1;
						} else a = M(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
						if (!a) return t.flags & 256 ? (St(t), t) : (St(t), null);
					}
					return St(t), t.flags & 128 ? (t.lanes = n, t) : (n = i !== null, e = e !== null && e.memoizedState !== null, n && (i = t.child, a = null, i.alternate !== null && i.alternate.memoizedState !== null && i.alternate.memoizedState.cachePool !== null && (a = i.alternate.memoizedState.cachePool.pool), o = null, i.memoizedState !== null && i.memoizedState.cachePool !== null && (o = i.memoizedState.cachePool.pool), o !== a && (i.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), Or(t, t.updateQueue), Ar(t), null);
				case 4: return de(), wr(e, t), e === null && vo(t.stateNode.containerInfo), Ar(t), null;
				case 10: return xe(t.type), Ar(t), null;
				case 19:
					if (f(Ul), i = t.memoizedState, i === null) return Ar(t), null;
					if (a = (t.flags & 128) != 0, o = i.rendering, o === null) if (a) kr(i, !1);
					else {
						if (Iu !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
							if (o = R(e), o !== null) {
								for (t.flags |= 128, kr(i, !1), e = o.updateQueue, t.updateQueue = e, Or(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ha(n, e), n = n.sibling;
								return m(Ul, Ul.current & 1 | 2), nl && ae(t, i.treeForkCount), t.child;
							}
							e = e.sibling;
						}
						i.tail !== null && Dc() > qu && (t.flags |= 128, a = !0, kr(i, !1), t.lanes = 4194304);
					}
					else {
						if (!a) if (e = R(o), e !== null) {
							if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, Or(t, e), kr(i, !0), i.tail === null && i.tailMode === "hidden" && !o.alternate && !nl) return Ar(t), null;
						} else 2 * Dc() - i.renderingStartTime > qu && n !== 536870912 && (t.flags |= 128, a = !0, kr(i, !1), t.lanes = 4194304);
						i.isBackwards ? (o.sibling = t.child, t.child = o) : (e = i.last, e === null ? t.child = o : e.sibling = o, i.last = o);
					}
					return i.tail === null ? (Ar(t), null) : (e = i.tail, i.rendering = e, i.tail = e.sibling, i.renderingStartTime = Dc(), e.sibling = null, n = Ul.current, m(Ul, a ? n & 1 | 2 : n & 1), nl && ae(t, i.treeForkCount), e);
				case 22:
				case 23: return St(t), vt(), i = t.memoizedState !== null, e === null ? i && (t.flags |= 8192) : e.memoizedState !== null !== i && (t.flags |= 8192), i ? n & 536870912 && !(t.flags & 128) && (Ar(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Ar(t), n = t.updateQueue, n !== null && Or(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), i = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (i = t.memoizedState.cachePool.pool), i !== n && (t.flags |= 2048), e !== null && f(wl), null;
				case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), xe(fl), Ar(t), null;
				case 25: return null;
				case 30: return null;
			}
			throw Error(r(156, t.tag));
		}
		function Mr(e, t) {
			switch (ce(t), t.tag) {
				case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
				case 3: return xe(fl), de(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
				case 26:
				case 27:
				case 5: return pe(t), null;
				case 31:
					if (t.memoizedState !== null) {
						if (St(t), t.alternate === null) throw Error(r(340));
						ve();
					}
					return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
				case 13:
					if (St(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
						if (t.alternate === null) throw Error(r(340));
						ve();
					}
					return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
				case 19: return f(Ul), null;
				case 4: return de(), null;
				case 10: return xe(t.type), null;
				case 22:
				case 23: return St(t), vt(), e !== null && f(wl), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
				case 24: return xe(fl), null;
				case 25: return null;
				default: return null;
			}
		}
		function Nr(e, t) {
			switch (ce(t), t.tag) {
				case 3:
					xe(fl), de();
					break;
				case 26:
				case 27:
				case 5:
					pe(t);
					break;
				case 4:
					de();
					break;
				case 31:
					t.memoizedState !== null && St(t);
					break;
				case 13:
					St(t);
					break;
				case 19:
					f(Ul);
					break;
				case 10:
					xe(t.type);
					break;
				case 22:
				case 23:
					St(t), vt(), e !== null && f(wl);
					break;
				case 24: xe(fl);
			}
		}
		function Pr(e, t) {
			try {
				var n = t.updateQueue, r = n === null ? null : n.lastEffect;
				if (r !== null) {
					var i = r.next;
					n = i;
					do {
						if ((n.tag & e) === e) {
							r = void 0;
							var a = n.create, o = n.inst;
							r = a(), o.destroy = r;
						}
						n = n.next;
					} while (n !== i);
				}
			} catch (e) {
				oa(t, t.return, e);
			}
		}
		function Fr(e, t, n) {
			try {
				var r = t.updateQueue, i = r === null ? null : r.lastEffect;
				if (i !== null) {
					var a = i.next;
					r = a;
					do {
						if ((r.tag & e) === e) {
							var o = r.inst, s = o.destroy;
							if (s !== void 0) {
								o.destroy = void 0, i = t;
								var c = n, l = s;
								try {
									l();
								} catch (e) {
									oa(i, c, e);
								}
							}
						}
						r = r.next;
					} while (r !== a);
				}
			} catch (e) {
				oa(t, t.return, e);
			}
		}
		function Ir(e) {
			var t = e.updateQueue;
			if (t !== null) {
				var n = e.stateNode;
				try {
					gt(t, n);
				} catch (t) {
					oa(e, e.return, t);
				}
			}
		}
		function Lr(e, t, n) {
			n.props = Bn(e.type, e.memoizedProps), n.state = e.memoizedState;
			try {
				n.componentWillUnmount();
			} catch (n) {
				oa(e, t, n);
			}
		}
		function Rr(e, t) {
			try {
				var n = e.ref;
				if (n !== null) {
					switch (e.tag) {
						case 26:
						case 27:
						case 5:
							var r = $a(e.stateNode);
							break;
						case 30:
							r = e.stateNode;
							break;
						default: r = e.stateNode;
					}
					typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
				}
			} catch (n) {
				oa(e, t, n);
			}
		}
		function zr(e, t) {
			var n = e.ref, r = e.refCleanup;
			if (n !== null) if (typeof r == "function") try {
				r();
			} catch (n) {
				oa(e, t, n);
			} finally {
				e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
			}
			else if (typeof n == "function") try {
				n(null);
			} catch (n) {
				oa(e, t, n);
			}
			else n.current = null;
		}
		function Br(e) {
			var t = e.type, n = e.memoizedProps, r = e.stateNode;
			try {
				qo(r, t, n, e);
			} catch (t) {
				oa(e, e.return, t);
			}
		}
		function Vr(e, t, n) {
			try {
				Jo(e.stateNode, e.type, n, t, e);
			} catch (t) {
				oa(e, e.return, t);
			}
		}
		function Hr(e) {
			return e.tag === 5 || e.tag === 3 || (Js ? e.tag === 26 : !1) || (cc ? e.tag === 27 && pc(e.type) : !1) || e.tag === 4;
		}
		function Ur(e) {
			a: for (;;) {
				for (; e.sibling === null;) {
					if (e.return === null || Hr(e.return)) return null;
					e = e.return;
				}
				for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
					if (cc && e.tag === 27 && pc(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
					e.child.return = e, e = e.child;
				}
				if (!(e.flags & 2)) return e.stateNode;
			}
		}
		function Wr(e, t, n) {
			var r = e.tag;
			if (r === 5 || r === 6) e = e.stateNode, t ? Xo(n, e, t) : Go(n, e);
			else if (r !== 4 && (cc && r === 27 && pc(e.type) && (n = e.stateNode, t = null), e = e.child, e !== null)) for (Wr(e, t, n), e = e.sibling; e !== null;) Wr(e, t, n), e = e.sibling;
		}
		function Gr(e, t, n) {
			var r = e.tag;
			if (r === 5 || r === 6) e = e.stateNode, t ? Yo(n, e, t) : Wo(n, e);
			else if (r !== 4 && (cc && r === 27 && pc(e.type) && (n = e.stateNode), e = e.child, e !== null)) for (Gr(e, t, n), e = e.sibling; e !== null;) Gr(e, t, n), e = e.sibling;
		}
		function Kr(e, t, n) {
			e = e.containerInfo;
			try {
				ls(e, n);
			} catch (e) {
				oa(t, t.return, e);
			}
		}
		function qr(e) {
			var t = e.stateNode, n = e.memoizedProps;
			try {
				uc(e.type, n, t, e);
			} catch (t) {
				oa(e, e.return, t);
			}
		}
		function Jr(e, t) {
			for (no(e.containerInfo), pu = t; pu !== null;) if (e = pu, t = e.child, e.subtreeFlags & 1028 && t !== null) t.return = e, pu = t;
			else for (; pu !== null;) {
				e = pu;
				var n = e.alternate;
				switch (t = e.flags, e.tag) {
					case 0:
						if (t & 4 && (t = e.updateQueue, t = t === null ? null : t.events, t !== null)) for (var i = 0; i < t.length; i++) {
							var a = t[i];
							a.ref.impl = a.nextImpl;
						}
						break;
					case 11:
					case 15: break;
					case 1:
						if (t & 1024 && n !== null) {
							t = void 0, i = e, a = n.memoizedProps, n = n.memoizedState;
							var o = i.stateNode;
							try {
								var s = Bn(i.type, a);
								t = o.getSnapshotBeforeUpdate(s, n), o.__reactInternalSnapshotBeforeUpdate = t;
							} catch (e) {
								oa(i, i.return, e);
							}
						}
						break;
					case 3:
						t & 1024 && mo && is(e.stateNode.containerInfo);
						break;
					case 5:
					case 26:
					case 27:
					case 6:
					case 4:
					case 17: break;
					default: if (t & 1024) throw Error(r(163));
				}
				if (t = e.sibling, t !== null) {
					t.return = e.return, pu = t;
					break;
				}
				pu = e.return;
			}
		}
		function Yr(e, t, n) {
			var r = n.flags;
			switch (n.tag) {
				case 0:
				case 11:
				case 15:
					si(e, n), r & 4 && Pr(5, n);
					break;
				case 1:
					if (si(e, n), r & 4) if (e = n.stateNode, t === null) try {
						e.componentDidMount();
					} catch (e) {
						oa(n, n.return, e);
					}
					else {
						var i = Bn(n.type, t.memoizedProps);
						t = t.memoizedState;
						try {
							e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
						} catch (e) {
							oa(n, n.return, e);
						}
					}
					r & 64 && Ir(n), r & 512 && Rr(n, n.return);
					break;
				case 3:
					if (si(e, n), r & 64 && (r = n.updateQueue, r !== null)) {
						if (e = null, n.child !== null) switch (n.child.tag) {
							case 27:
							case 5:
								e = $a(n.child.stateNode);
								break;
							case 1: e = n.child.stateNode;
						}
						try {
							gt(r, e);
						} catch (e) {
							oa(n, n.return, e);
						}
					}
					break;
				case 27: cc && t === null && r & 4 && qr(n);
				case 26:
				case 5:
					if (si(e, n), t === null) {
						if (r & 4) Br(n);
						else if (r & 64) {
							e = n.type, t = n.memoizedProps, i = n.stateNode;
							try {
								Fs(i, e, t, n);
							} catch (e) {
								oa(n, n.return, e);
							}
						}
					}
					r & 512 && Rr(n, n.return);
					break;
				case 12:
					si(e, n);
					break;
				case 31:
					si(e, n), r & 4 && $r(e, n);
					break;
				case 13:
					si(e, n), r & 4 && ei(e, n), r & 64 && (r = n.memoizedState, r !== null && (r = r.dehydrated, r !== null && (n = la.bind(null, n), hs(r, n))));
					break;
				case 22:
					if (r = n.memoizedState !== null || lu, !r) {
						t = t !== null && t.memoizedState !== null || uu, i = lu;
						var a = uu;
						lu = r, (uu = t) && !a ? li(e, n, (n.subtreeFlags & 8772) != 0) : si(e, n), lu = i, uu = a;
					}
					break;
				case 30: break;
				default: si(e, n);
			}
		}
		function Xr(e) {
			var t = e.alternate;
			t !== null && (e.alternate = null, Xr(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Co(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
		}
		function Zr(e, t, n) {
			for (n = n.child; n !== null;) Qr(e, t, n), n = n.sibling;
		}
		function Qr(e, t, n) {
			if (Fc && typeof Fc.onCommitFiberUnmount == "function") try {
				Fc.onCommitFiberUnmount(Pc, n);
			} catch {}
			switch (n.tag) {
				case 26: if (Js) {
					uu || zr(n, t), Zr(e, t, n), n.memoizedState ? $s(n.memoizedState) : n.stateNode && nc(n.stateNode);
					break;
				}
				case 27: if (cc) {
					uu || zr(n, t);
					var r = mu, i = hu;
					pc(n.type) && (mu = n.stateNode, hu = !1), Zr(e, t, n), dc(n.stateNode), mu = r, hu = i;
					break;
				}
				case 5: uu || zr(n, t);
				case 6:
					if (mo) {
						if (r = mu, i = hu, mu = null, Zr(e, t, n), mu = r, hu = i, mu !== null) if (hu) try {
							Qo(mu, n.stateNode);
						} catch (e) {
							oa(n, t, e);
						}
						else try {
							Zo(mu, n.stateNode);
						} catch (e) {
							oa(n, t, e);
						}
					} else Zr(e, t, n);
					break;
				case 18:
					mo && mu !== null && (hu ? Hs(mu, n.stateNode) : Vs(mu, n.stateNode));
					break;
				case 4:
					mo ? (r = mu, i = hu, mu = n.stateNode.containerInfo, hu = !0, Zr(e, t, n), mu = r, hu = i) : (ho && Kr(n.stateNode, n, os()), Zr(e, t, n));
					break;
				case 0:
				case 11:
				case 14:
				case 15:
					Fr(2, n, t), uu || Fr(4, n, t), Zr(e, t, n);
					break;
				case 1:
					uu || (zr(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Lr(n, t, r)), Zr(e, t, n);
					break;
				case 21:
					Zr(e, t, n);
					break;
				case 22:
					uu = (r = uu) || n.memoizedState !== null, Zr(e, t, n), uu = r;
					break;
				default: Zr(e, t, n);
			}
		}
		function $r(e, t) {
			if (go && t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
				e = e.dehydrated;
				try {
					Ls(e);
				} catch (e) {
					oa(t, t.return, e);
				}
			}
		}
		function ei(e, t) {
			if (go && t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
				Rs(e);
			} catch (e) {
				oa(t, t.return, e);
			}
		}
		function ti(e) {
			switch (e.tag) {
				case 31:
				case 13:
				case 19:
					var t = e.stateNode;
					return t === null && (t = e.stateNode = new fu()), t;
				case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new fu()), t;
				default: throw Error(r(435, e.tag));
			}
		}
		function ni(e, t) {
			var n = ti(e);
			t.forEach(function(t) {
				if (!n.has(t)) {
					n.add(t);
					var r = ua.bind(null, e, t);
					t.then(r, r);
				}
			});
		}
		function ri(e, t) {
			var n = t.deletions;
			if (n !== null) for (var i = 0; i < n.length; i++) {
				var a = n[i], o = e, s = t;
				if (mo) {
					var c = s;
					a: for (; c !== null;) {
						switch (c.tag) {
							case 27: if (cc) {
								if (pc(c.type)) {
									mu = c.stateNode, hu = !1;
									break a;
								}
								break;
							}
							case 5:
								mu = c.stateNode, hu = !1;
								break a;
							case 3:
							case 4:
								mu = c.stateNode.containerInfo, hu = !0;
								break a;
						}
						c = c.return;
					}
					if (mu === null) throw Error(r(160));
					Qr(o, s, a), mu = null, hu = !1;
				} else Qr(o, s, a);
				o = a.alternate, o !== null && (o.return = null), a.return = null;
			}
			if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ii(t, e), t = t.sibling;
		}
		function ii(e, t) {
			var n = e.alternate, i = e.flags;
			switch (e.tag) {
				case 0:
				case 11:
				case 14:
				case 15:
					ri(t, e), ai(e), i & 4 && (Fr(3, e, e.return), Pr(3, e), Fr(5, e, e.return));
					break;
				case 1:
					ri(t, e), ai(e), i & 512 && (uu || n === null || zr(n, n.return)), i & 64 && lu && (e = e.updateQueue, e !== null && (i = e.callbacks, i !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? i : n.concat(i))));
					break;
				case 26: if (Js) {
					var a = gu;
					if (ri(t, e), ai(e), i & 512 && (uu || n === null || zr(n, n.return)), i & 4) {
						i = n === null ? null : n.memoizedState;
						var o = e.memoizedState;
						n === null ? o === null ? e.stateNode === null ? e.stateNode = ec(a, e.type, e.memoizedProps, e) : tc(a, e.type, e.stateNode) : e.stateNode = Qs(a, o, e.memoizedProps) : i === o ? o === null && e.stateNode !== null && Vr(e, e.memoizedProps, n.memoizedProps) : (i === null ? n.stateNode !== null && nc(n.stateNode) : $s(i), o === null ? tc(a, e.type, e.stateNode) : Qs(a, o, e.memoizedProps));
					}
					break;
				}
				case 27: if (cc) {
					ri(t, e), ai(e), i & 512 && (uu || n === null || zr(n, n.return)), n !== null && i & 4 && Vr(e, e.memoizedProps, n.memoizedProps);
					break;
				}
				case 5:
					if (ri(t, e), ai(e), i & 512 && (uu || n === null || zr(n, n.return)), mo) {
						if (e.flags & 32) {
							a = e.stateNode;
							try {
								$o(a);
							} catch (t) {
								oa(e, e.return, t);
							}
						}
						i & 4 && e.stateNode != null && (a = e.memoizedProps, Vr(e, a, n === null ? a : n.memoizedProps)), i & 1024 && (du = !0);
					} else ho && e.alternate !== null && (e.alternate.stateNode = e.stateNode);
					break;
				case 6:
					if (ri(t, e), ai(e), i & 4 && mo) {
						if (e.stateNode === null) throw Error(r(162));
						i = e.memoizedProps, n = n === null ? i : n.memoizedProps, a = e.stateNode;
						try {
							Ko(a, n, i);
						} catch (t) {
							oa(e, e.return, t);
						}
					}
					break;
				case 3:
					if (Js ? (ic(), a = gu, gu = Xs(t.containerInfo), ri(t, e), gu = a) : ri(t, e), ai(e), i & 4) {
						if (mo && go && n !== null && n.memoizedState.isDehydrated) try {
							Is(t.containerInfo);
						} catch (t) {
							oa(e, e.return, t);
						}
						if (ho) {
							i = t.containerInfo, n = t.pendingChildren;
							try {
								ls(i, n);
							} catch (t) {
								oa(e, e.return, t);
							}
						}
					}
					du && (du = !1, oi(e));
					break;
				case 4:
					Js ? (n = gu, gu = Xs(e.stateNode.containerInfo), ri(t, e), ai(e), gu = n) : (ri(t, e), ai(e)), i & 4 && ho && Kr(e.stateNode, e, e.stateNode.pendingChildren);
					break;
				case 12:
					ri(t, e), ai(e);
					break;
				case 31:
					ri(t, e), ai(e), i & 4 && (i = e.updateQueue, i !== null && (e.updateQueue = null, ni(e, i)));
					break;
				case 13:
					ri(t, e), ai(e), e.child.flags & 8192 && e.memoizedState !== null != (n !== null && n.memoizedState !== null) && (Gu = Dc()), i & 4 && (i = e.updateQueue, i !== null && (e.updateQueue = null, ni(e, i)));
					break;
				case 22:
					a = e.memoizedState !== null;
					var s = n !== null && n.memoizedState !== null, c = lu, l = uu;
					if (lu = c || a, uu = l || s, ri(t, e), uu = l, lu = c, ai(e), i & 8192 && (t = e.stateNode, t._visibility = a ? t._visibility & -2 : t._visibility | 1, a && (n === null || s || lu || uu || ci(e)), mo)) {
						a: if (n = null, mo) for (t = e;;) {
							if (t.tag === 5 || Js && t.tag === 26) {
								if (n === null) {
									s = n = t;
									try {
										o = s.stateNode, a ? es(o) : ns(s.stateNode, s.memoizedProps);
									} catch (e) {
										oa(s, s.return, e);
									}
								}
							} else if (t.tag === 6) {
								if (n === null) {
									s = t;
									try {
										var u = s.stateNode;
										a ? ts(u) : rs(u, s.memoizedProps);
									} catch (e) {
										oa(s, s.return, e);
									}
								}
							} else if (t.tag === 18) {
								if (n === null) {
									s = t;
									try {
										var d = s.stateNode;
										a ? Us(d) : Ws(s.stateNode);
									} catch (e) {
										oa(s, s.return, e);
									}
								}
							} else if ((t.tag !== 22 && t.tag !== 23 || t.memoizedState === null || t === e) && t.child !== null) {
								t.child.return = t, t = t.child;
								continue;
							}
							if (t === e) break a;
							for (; t.sibling === null;) {
								if (t.return === null || t.return === e) break a;
								n === t && (n = null), t = t.return;
							}
							n === t && (n = null), t.sibling.return = t.return, t = t.sibling;
						}
					}
					i & 4 && (i = e.updateQueue, i !== null && (n = i.retryQueue, n !== null && (i.retryQueue = null, ni(e, n))));
					break;
				case 19:
					ri(t, e), ai(e), i & 4 && (i = e.updateQueue, i !== null && (e.updateQueue = null, ni(e, i)));
					break;
				case 30: break;
				case 21: break;
				default: ri(t, e), ai(e);
			}
		}
		function ai(e) {
			var t = e.flags;
			if (t & 2) {
				try {
					for (var n, i = e.return; i !== null;) {
						if (Hr(i)) {
							n = i;
							break;
						}
						i = i.return;
					}
					if (mo) {
						if (n == null) throw Error(r(160));
						switch (n.tag) {
							case 27: if (cc) {
								var a = n.stateNode;
								Gr(e, Ur(e), a);
								break;
							}
							case 5:
								var o = n.stateNode;
								n.flags & 32 && ($o(o), n.flags &= -33), Gr(e, Ur(e), o);
								break;
							case 3:
							case 4:
								var s = n.stateNode.containerInfo;
								Wr(e, Ur(e), s);
								break;
							default: throw Error(r(161));
						}
					}
				} catch (t) {
					oa(e, e.return, t);
				}
				e.flags &= -3;
			}
			t & 4096 && (e.flags &= -4097);
		}
		function oi(e) {
			if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
				var t = e;
				oi(t), t.tag === 5 && t.flags & 1024 && No(t.stateNode), e = e.sibling;
			}
		}
		function si(e, t) {
			if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) Yr(e, t.alternate, t), t = t.sibling;
		}
		function ci(e) {
			for (e = e.child; e !== null;) {
				var t = e;
				switch (t.tag) {
					case 0:
					case 11:
					case 14:
					case 15:
						Fr(4, t, t.return), ci(t);
						break;
					case 1:
						zr(t, t.return);
						var n = t.stateNode;
						typeof n.componentWillUnmount == "function" && Lr(t, t.return, n), ci(t);
						break;
					case 27: cc && dc(t.stateNode);
					case 26:
					case 5:
						zr(t, t.return), ci(t);
						break;
					case 22:
						t.memoizedState === null && ci(t);
						break;
					case 30:
						ci(t);
						break;
					default: ci(t);
				}
				e = e.sibling;
			}
		}
		function li(e, t, n) {
			for (n &&= (t.subtreeFlags & 8772) != 0, t = t.child; t !== null;) {
				var r = t.alternate, i = e, a = t, o = a.flags;
				switch (a.tag) {
					case 0:
					case 11:
					case 15:
						li(i, a, n), Pr(4, a);
						break;
					case 1:
						if (li(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
							i.componentDidMount();
						} catch (e) {
							oa(r, r.return, e);
						}
						if (r = a, i = r.updateQueue, i !== null) {
							var s = r.stateNode;
							try {
								var c = i.shared.hiddenCallbacks;
								if (c !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < c.length; i++) ht(c[i], s);
							} catch (e) {
								oa(r, r.return, e);
							}
						}
						n && o & 64 && Ir(a), Rr(a, a.return);
						break;
					case 27: cc && qr(a);
					case 26:
					case 5:
						li(i, a, n), n && r === null && o & 4 && Br(a), Rr(a, a.return);
						break;
					case 12:
						li(i, a, n);
						break;
					case 31:
						li(i, a, n), n && o & 4 && $r(i, a);
						break;
					case 13:
						li(i, a, n), n && o & 4 && ei(i, a);
						break;
					case 22:
						a.memoizedState === null && li(i, a, n), Rr(a, a.return);
						break;
					case 30: break;
					default: li(i, a, n);
				}
				t = t.sibling;
			}
		}
		function ui(e, t) {
			var n = null;
			e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Ae(n));
		}
		function di(e, t) {
			e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ae(e));
		}
		function fi(e, t, n, r) {
			if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) pi(e, t, n, r), t = t.sibling;
		}
		function pi(e, t, n, r) {
			var i = t.flags;
			switch (t.tag) {
				case 0:
				case 11:
				case 15:
					fi(e, t, n, r), i & 2048 && Pr(9, t);
					break;
				case 1:
					fi(e, t, n, r);
					break;
				case 3:
					fi(e, t, n, r), i & 2048 && (e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ae(e)));
					break;
				case 12:
					if (i & 2048) {
						fi(e, t, n, r), e = t.stateNode;
						try {
							var a = t.memoizedProps, o = a.id, s = a.onPostCommit;
							typeof s == "function" && s(o, t.alternate === null ? "mount" : "update", e.passiveEffectDuration, -0);
						} catch (e) {
							oa(t, t.return, e);
						}
					} else fi(e, t, n, r);
					break;
				case 31:
					fi(e, t, n, r);
					break;
				case 13:
					fi(e, t, n, r);
					break;
				case 23: break;
				case 22:
					a = t.stateNode, o = t.alternate, t.memoizedState === null ? a._visibility & 2 ? fi(e, t, n, r) : (a._visibility |= 2, mi(e, t, n, r, (t.subtreeFlags & 10256) != 0 || !1)) : a._visibility & 2 ? fi(e, t, n, r) : hi(e, t), i & 2048 && ui(o, t);
					break;
				case 24:
					fi(e, t, n, r), i & 2048 && di(t.alternate, t);
					break;
				default: fi(e, t, n, r);
			}
		}
		function mi(e, t, n, r, i) {
			for (i &&= (t.subtreeFlags & 10256) != 0 || !1, t = t.child; t !== null;) {
				var a = e, o = t, s = n, c = r, l = o.flags;
				switch (o.tag) {
					case 0:
					case 11:
					case 15:
						mi(a, o, s, c, i), Pr(8, o);
						break;
					case 23: break;
					case 22:
						var u = o.stateNode;
						o.memoizedState === null ? (u._visibility |= 2, mi(a, o, s, c, i)) : u._visibility & 2 ? mi(a, o, s, c, i) : hi(a, o), i && l & 2048 && ui(o.alternate, o);
						break;
					case 24:
						mi(a, o, s, c, i), i && l & 2048 && di(o.alternate, o);
						break;
					default: mi(a, o, s, c, i);
				}
				t = t.sibling;
			}
		}
		function hi(e, t) {
			if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
				var n = e, r = t, i = r.flags;
				switch (r.tag) {
					case 22:
						hi(n, r), i & 2048 && ui(r.alternate, r);
						break;
					case 24:
						hi(n, r), i & 2048 && di(r.alternate, r);
						break;
					default: hi(n, r);
				}
				t = t.sibling;
			}
		}
		function gi(e, t, n) {
			if (e.subtreeFlags & _u) for (e = e.child; e !== null;) _i(e, t, n), e = e.sibling;
		}
		function _i(e, t, n) {
			switch (e.tag) {
				case 26:
					if (gi(e, t, n), e.flags & _u) if (e.memoizedState !== null) sc(n, gu, e.memoizedState, e.memoizedProps);
					else {
						var r = e.stateNode, i = e.type;
						e = e.memoizedProps, ((t & 335544128) === t || Eo(i, e)) && ko(n, r, i, e);
					}
					break;
				case 5:
					gi(e, t, n), e.flags & _u && (r = e.stateNode, i = e.type, e = e.memoizedProps, ((t & 335544128) === t || Eo(i, e)) && ko(n, r, i, e));
					break;
				case 3:
				case 4:
					Js ? (r = gu, gu = Xs(e.stateNode.containerInfo), gi(e, t, n), gu = r) : gi(e, t, n);
					break;
				case 22:
					e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = _u, _u = 16777216, gi(e, t, n), _u = r) : gi(e, t, n));
					break;
				default: gi(e, t, n);
			}
		}
		function vi(e) {
			var t = e.alternate;
			if (t !== null && (e = t.child, e !== null)) {
				t.child = null;
				do
					t = e.sibling, e.sibling = null, e = t;
				while (e !== null);
			}
		}
		function yi(e) {
			var t = e.deletions;
			if (e.flags & 16) {
				if (t !== null) for (var n = 0; n < t.length; n++) {
					var r = t[n];
					pu = r, Si(r, e);
				}
				vi(e);
			}
			if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) bi(e), e = e.sibling;
		}
		function bi(e) {
			switch (e.tag) {
				case 0:
				case 11:
				case 15:
					yi(e), e.flags & 2048 && Fr(9, e, e.return);
					break;
				case 3:
					yi(e);
					break;
				case 12:
					yi(e);
					break;
				case 22:
					var t = e.stateNode;
					e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, xi(e)) : yi(e);
					break;
				default: yi(e);
			}
		}
		function xi(e) {
			var t = e.deletions;
			if (e.flags & 16) {
				if (t !== null) for (var n = 0; n < t.length; n++) {
					var r = t[n];
					pu = r, Si(r, e);
				}
				vi(e);
			}
			for (e = e.child; e !== null;) {
				switch (t = e, t.tag) {
					case 0:
					case 11:
					case 15:
						Fr(8, t, t.return), xi(t);
						break;
					case 22:
						n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, xi(t));
						break;
					default: xi(t);
				}
				e = e.sibling;
			}
		}
		function Si(e, t) {
			for (; pu !== null;) {
				var n = pu;
				switch (n.tag) {
					case 0:
					case 11:
					case 15:
						Fr(8, n, t);
						break;
					case 23:
					case 22:
						if (n.memoizedState !== null && n.memoizedState.cachePool !== null) {
							var r = n.memoizedState.cachePool.pool;
							r != null && r.refCount++;
						}
						break;
					case 24: Ae(n.memoizedState.cache);
				}
				if (r = n.child, r !== null) r.return = n, pu = r;
				else a: for (n = e; pu !== null;) {
					r = pu;
					var i = r.sibling, a = r.return;
					if (Xr(r), r === n) {
						pu = null;
						break a;
					}
					if (i !== null) {
						i.return = a, pu = i;
						break a;
					}
					pu = a;
				}
			}
		}
		function Ci(e) {
			var t = _o(e);
			if (t != null) {
				if (typeof t.memoizedProps["data-testname"] != "string") throw Error(r(364));
				return t;
			}
			if (e = Lo(e), e === null) throw Error(r(362));
			return e.stateNode.current;
		}
		function wi(e, t) {
			var n = e.tag;
			switch (t.$$typeof) {
				case yu:
					if (e.type === t.value) return !0;
					break;
				case bu:
					a: {
						for (t = t.value, e = [e, 0], n = 0; n < e.length;) {
							var i = e[n++], a = i.tag, o = e[n++], s = t[o];
							if (a !== 5 && a !== 26 && a !== 27 || !Bo(i)) {
								for (; s != null && wi(i, s);) o++, s = t[o];
								if (o === t.length) {
									t = !0;
									break a;
								} else for (i = i.child; i !== null;) e.push(i, o), i = i.sibling;
							}
						}
						t = !1;
					}
					return t;
				case xu:
					if ((n === 5 || n === 26 || n === 27) && Vo(e.stateNode, t.value)) return !0;
					break;
				case Cu:
					if ((n === 5 || n === 6 || n === 26 || n === 27) && (e = zo(e), e !== null && 0 <= e.indexOf(t.value))) return !0;
					break;
				case Su:
					if ((n === 5 || n === 26 || n === 27) && (e = e.memoizedProps["data-testname"], typeof e == "string" && e.toLowerCase() === t.value.toLowerCase())) return !0;
					break;
				default: throw Error(r(365));
			}
			return !1;
		}
		function Ti(e) {
			switch (e.$$typeof) {
				case yu: return "<" + (u(e.value) || "Unknown") + ">";
				case bu: return ":has(" + (Ti(e) || "") + ")";
				case xu: return "[role=\"" + e.value + "\"]";
				case Cu: return "\"" + e.value + "\"";
				case Su: return "[data-testname=\"" + e.value + "\"]";
				default: throw Error(r(365));
			}
		}
		function Ei(e, t) {
			var n = [];
			e = [e, 0];
			for (var r = 0; r < e.length;) {
				var i = e[r++], a = i.tag, o = e[r++], s = t[o];
				if (a !== 5 && a !== 26 && a !== 27 || !Bo(i)) {
					for (; s != null && wi(i, s);) o++, s = t[o];
					if (o === t.length) n.push(i);
					else for (i = i.child; i !== null;) e.push(i, o), i = i.sibling;
				}
			}
			return n;
		}
		function Di(e, t) {
			if (!Io) throw Error(r(363));
			e = Ci(e), e = Ei(e, t), t = [], e = Array.from(e);
			for (var n = 0; n < e.length;) {
				var i = e[n++], a = i.tag;
				if (a === 5 || a === 26 || a === 27) Bo(i) || t.push(i.stateNode);
				else for (i = i.child; i !== null;) e.push(i), i = i.sibling;
			}
			return t;
		}
		function Oi() {
			return Eu & 2 && ku !== 0 ? ku & -ku : W.T === null ? xo() : ze();
		}
		function ki() {
			if (Bu === 0) if (!(ku & 536870912) || nl) {
				var e = xc;
				xc <<= 1, !(xc & 3932160) && (xc = 262144), Bu = e;
			} else Bu = 536870912;
			return e = Vl.current, e !== null && (e.flags |= 32), Bu;
		}
		function Ai(e, t, n) {
			(e === Du && (Au === 2 || Au === 9) || e.cancelPendingCommit !== null) && (Li(e, 0), Pi(e, ku, Bu, !1)), S(e, n), (!(Eu & 2) || e !== Du) && (e === Du && (!(Eu & 2) && (Ru |= n), Iu === 4 && Pi(e, ku, Bu, !1)), Me(e));
		}
		function ji(e, t, n) {
			if (Eu & 6) throw Error(r(327));
			var i = !n && (t & 127) == 0 && (t & e.expiredLanes) === 0 || y(e, t), a = i ? Gi(e, t) : Ui(e, t, !0), o = i;
			do {
				if (a === 0) {
					Nu && !i && Pi(e, t, 0, !1);
					break;
				} else {
					if (n = e.current.alternate, o && !Ni(n)) {
						a = Ui(e, t, !1), o = !1;
						continue;
					}
					if (a === 2) {
						if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;
						else s = e.pendingLanes & -536870913, s = s === 0 ? s & 536870912 ? 536870912 : 0 : s;
						if (s !== 0) {
							t = s;
							a: {
								var c = e;
								a = Hu;
								var l = go && c.current.memoizedState.isDehydrated;
								if (l && (Li(c, s).flags |= 256), s = Ui(c, s, !1), s !== 2) {
									if (Pu && !l) {
										c.errorRecoveryDisabledLanes |= o, Ru |= o, a = 4;
										break a;
									}
									o = Uu, Uu = a, o !== null && (Uu === null ? Uu = o : Uu.push.apply(Uu, o));
								}
								a = s;
							}
							if (o = !1, a !== 2) continue;
						}
					}
					if (a === 1) {
						Li(e, 0), Pi(e, t, 0, !0);
						break;
					}
					a: {
						switch (i = e, o = a, o) {
							case 0:
							case 1: throw Error(r(345));
							case 4: if ((t & 4194048) !== t) break;
							case 6:
								Pi(i, t, Bu, !Mu);
								break a;
							case 2:
								Uu = null;
								break;
							case 3:
							case 5: break;
							default: throw Error(r(329));
						}
						if ((t & 62914560) === t && (a = Gu + 300 - Dc(), 10 < a)) {
							if (Pi(i, t, Bu, !Mu), v(i, 0, !0) !== 0) break a;
							$u = t, i.timeoutHandle = lo(Mi.bind(null, i, n, Uu, Ju, Wu, t, Bu, Ru, Vu, Mu, o, "Throttled", -0, 0), a);
							break a;
						}
						Mi(i, n, Uu, Ju, Wu, t, Bu, Ru, Vu, Mu, o, null, -0, 0);
					}
				}
				break;
			} while (1);
			Me(e);
		}
		function Mi(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
			if (e.timeoutHandle = fo, d = t.subtreeFlags, d & 8192 || (d & 16785408) == 16785408) {
				d = Oo(), _i(t, a, d);
				var m = (a & 62914560) === a ? Gu - Dc() : (a & 4194048) === a ? Ku - Dc() : 0;
				if (m = Ao(d, m), m !== null) {
					$u = a, e.cancelPendingCommit = m(Qi.bind(null, e, t, a, n, r, i, o, s, c, u, d, null, f, p)), Pi(e, a, o, !l);
					return;
				}
			}
			Qi(e, t, a, n, r, i, o, s, c);
		}
		function Ni(e) {
			for (var t = e;;) {
				var n = t.tag;
				if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
					var i = n[r], a = i.getSnapshot;
					i = i.value;
					try {
						if (!G(a(), i)) return !1;
					} catch {
						return !1;
					}
				}
				if (n = t.child, t.subtreeFlags & 16384 && n !== null) n.return = t, t = n;
				else {
					if (t === e) break;
					for (; t.sibling === null;) {
						if (t.return === null || t.return === e) return !0;
						t = t.return;
					}
					t.sibling.return = t.return, t = t.sibling;
				}
			}
			return !0;
		}
		function Pi(e, t, n, r) {
			t &= ~zu, t &= ~Ru, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
			for (var i = t; 0 < i;) {
				var a = 31 - _c(i), o = 1 << a;
				r[a] = -1, i &= ~o;
			}
			n !== 0 && te(e, n, t);
		}
		function Fi() {
			return Eu & 6 ? !0 : (P(0, !1), !1);
		}
		function Ii() {
			if (Ou !== null) {
				if (Au === 0) var e = Ou.return;
				else e = Ou, cl = sl = null, jt(e), Al = null, jl = 0, e = Ou;
				for (; e !== null;) Nr(e.alternate, e), e = e.return;
				Ou = null;
			}
		}
		function Li(e, t) {
			var n = e.timeoutHandle;
			n !== fo && (e.timeoutHandle = fo, uo(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), $u = 0, Ii(), Du = e, Ou = n = ma(e.current, null), ku = t, Au = 0, ju = null, Mu = !1, Nu = y(e, t), Pu = !1, Vu = Bu = zu = Ru = Lu = Iu = 0, Uu = Hu = null, Wu = !1, t & 8 && (t |= t & 32);
			var r = e.entangledLanes;
			if (r !== 0) for (e = e.entanglements, r &= t; 0 < r;) {
				var i = 31 - _c(r), a = 1 << i;
				t |= e[i], r &= ~a;
			}
			return Fu = t, tt(), n;
		}
		function Ri(e, t) {
			Gl = null, W.H = tu, t === Tl || t === Dl ? (t = Xe(), Au = 3) : t === El ? (t = Xe(), Au = 4) : Au = t === ou ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, ju = t, Ou === null && (Iu = 1, Vn(e, j(t, e.current)));
		}
		function zi() {
			var e = Vl.current;
			return e === null ? !0 : (ku & 4194048) === ku ? Hl === null : (ku & 62914560) === ku || ku & 536870912 ? e === Hl : !1;
		}
		function Bi() {
			var e = W.H;
			return W.H = tu, e === null ? tu : e;
		}
		function Vi() {
			var e = W.A;
			return W.A = vu, e;
		}
		function Hi() {
			Iu = 4, Mu || (ku & 4194048) !== ku && Vl.current !== null || (Nu = !0), !(Lu & 134217727) && !(Ru & 134217727) || Du === null || Pi(Du, ku, Bu, !1);
		}
		function Ui(e, t, n) {
			var r = Eu;
			Eu |= 2;
			var i = Bi(), a = Vi();
			(Du !== e || ku !== t) && (Ju = null, Li(e, t)), t = !1;
			var o = Iu;
			a: do
				try {
					if (Au !== 0 && Ou !== null) {
						var s = Ou, c = ju;
						switch (Au) {
							case 8:
								Ii(), o = 6;
								break a;
							case 3:
							case 2:
							case 9:
							case 6:
								Vl.current === null && (t = !0);
								var l = Au;
								if (Au = 0, ju = null, Yi(e, s, c, l), n && Nu) {
									o = 0;
									break a;
								}
								break;
							default: l = Au, Au = 0, ju = null, Yi(e, s, c, l);
						}
					}
					Wi(), o = Iu;
					break;
				} catch (t) {
					Ri(e, t);
				}
			while (1);
			return t && e.shellSuspendCounter++, cl = sl = null, Eu = r, W.H = i, W.A = a, Ou === null && (Du = null, ku = 0, tt()), o;
		}
		function Wi() {
			for (; Ou !== null;) qi(Ou);
		}
		function Gi(e, t) {
			var n = Eu;
			Eu |= 2;
			var i = Bi(), a = Vi();
			Du !== e || ku !== t ? (Ju = null, qu = Dc() + 500, Li(e, t)) : Nu = y(e, t);
			a: do
				try {
					if (Au !== 0 && Ou !== null) {
						t = Ou;
						var o = ju;
						b: switch (Au) {
							case 1:
								Au = 0, ju = null, Yi(e, t, o, 1);
								break;
							case 2:
							case 9:
								if (qe(o)) {
									Au = 0, ju = null, Ji(t);
									break;
								}
								t = function() {
									Au !== 2 && Au !== 9 || Du !== e || (Au = 7), Me(e);
								}, o.then(t, t);
								break a;
							case 3:
								Au = 7;
								break a;
							case 4:
								Au = 5;
								break a;
							case 7:
								qe(o) ? (Au = 0, ju = null, Ji(t)) : (Au = 0, ju = null, Yi(e, t, o, 7));
								break;
							case 5:
								var s = null;
								switch (Ou.tag) {
									case 26: s = Ou.memoizedState;
									case 5:
									case 27:
										var c = Ou, l = c.type, u = c.pendingProps;
										if (s ? oc(s) : Do(c.stateNode, l, u)) {
											Au = 0, ju = null;
											var d = c.sibling;
											if (d !== null) Ou = d;
											else {
												var f = c.return;
												f === null ? Ou = null : (Ou = f, Xi(f));
											}
											break b;
										}
								}
								Au = 0, ju = null, Yi(e, t, o, 5);
								break;
							case 6:
								Au = 0, ju = null, Yi(e, t, o, 6);
								break;
							case 8:
								Ii(), Iu = 6;
								break a;
							default: throw Error(r(462));
						}
					}
					Ki();
					break;
				} catch (t) {
					Ri(e, t);
				}
			while (1);
			return cl = sl = null, W.H = i, W.A = a, Eu = n, Ou === null ? (Du = null, ku = 0, tt(), Iu) : 0;
		}
		function Ki() {
			for (; Ou !== null && !Tc();) qi(Ou);
		}
		function qi(e) {
			var t = vr(e.alternate, e, Fu);
			e.memoizedProps = e.pendingProps, t === null ? Xi(e) : Ou = t;
		}
		function Ji(e) {
			var t = e, n = t.alternate;
			switch (t.tag) {
				case 15:
				case 0:
					t = ar(n, t, t.pendingProps, t.type, void 0, ku);
					break;
				case 11:
					t = ar(n, t, t.pendingProps, t.type.render, t.ref, ku);
					break;
				case 5: jt(t);
				default: Nr(n, t), t = Ou = ha(t, Fu), t = vr(n, t, Fu);
			}
			e.memoizedProps = e.pendingProps, t === null ? Xi(e) : Ou = t;
		}
		function Yi(e, t, n, r) {
			cl = sl = null, jt(t), Al = null, jl = 0;
			var i = t.return;
			try {
				if (Kn(e, i, t, n, ku)) {
					Iu = 1, Vn(e, j(n, e.current)), Ou = null;
					return;
				}
			} catch (t) {
				if (i !== null) throw Ou = i, t;
				Iu = 1, Vn(e, j(n, e.current)), Ou = null;
				return;
			}
			t.flags & 32768 ? (nl || r === 1 ? e = !0 : Nu || ku & 536870912 ? e = !1 : (Mu = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Vl.current, r !== null && r.tag === 13 && (r.flags |= 16384))), Zi(t, e)) : Xi(t);
		}
		function Xi(e) {
			var t = e;
			do {
				if (t.flags & 32768) {
					Zi(t, Mu);
					return;
				}
				e = t.return;
				var n = jr(t.alternate, t, Fu);
				if (n !== null) {
					Ou = n;
					return;
				}
				if (t = t.sibling, t !== null) {
					Ou = t;
					return;
				}
				Ou = t = e;
			} while (t !== null);
			Iu === 0 && (Iu = 5);
		}
		function Zi(e, t) {
			do {
				var n = Mr(e.alternate, e);
				if (n !== null) {
					n.flags &= 32767, Ou = n;
					return;
				}
				if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
					Ou = e;
					return;
				}
				Ou = e = n;
			} while (e !== null);
			Iu = 6, Ou = null;
		}
		function Qi(e, t, n, i, a, o, s, c, l) {
			e.cancelPendingCommit = null;
			do
				ra();
			while (Xu !== 0);
			if (Eu & 6) throw Error(r(327));
			if (t !== null) {
				if (t === e.current) throw Error(r(177));
				if (o = t.lanes | t.childLanes, o |= Il, C(e, n, o, s, c, l), e === Du && (Ou = Du = null, ku = 0), Qu = t, Zu = e, $u = n, ed = o, td = a, nd = i, t.subtreeFlags & 10256 || t.flags & 10256 ? (e.callbackNode = null, e.callbackPriority = 0, da(Ac, function() {
					return ia(), null;
				})) : (e.callbackNode = null, e.callbackPriority = 0), i = (t.flags & 13878) != 0, t.subtreeFlags & 13878 || i) {
					i = W.T, W.T = null, a = bo(), yo(2), s = Eu, Eu |= 4;
					try {
						Jr(e, t, n);
					} finally {
						Eu = s, yo(a), W.T = i;
					}
				}
				Xu = 1, $i(), ea(), ta();
			}
		}
		function $i() {
			if (Xu === 1) {
				Xu = 0;
				var e = Zu, t = Qu, n = (t.flags & 13878) != 0;
				if (t.subtreeFlags & 13878 || n) {
					n = W.T, W.T = null;
					var r = bo();
					yo(2);
					var i = Eu;
					Eu |= 4;
					try {
						ii(t, e), ro(e.containerInfo);
					} finally {
						Eu = i, yo(r), W.T = n;
					}
				}
				e.current = t, Xu = 2;
			}
		}
		function ea() {
			if (Xu === 2) {
				Xu = 0;
				var e = Zu, t = Qu, n = (t.flags & 8772) != 0;
				if (t.subtreeFlags & 8772 || n) {
					n = W.T, W.T = null;
					var r = bo();
					yo(2);
					var i = Eu;
					Eu |= 4;
					try {
						Yr(e, t.alternate, t);
					} finally {
						Eu = i, yo(r), W.T = n;
					}
				}
				Xu = 3;
			}
		}
		function ta() {
			if (Xu === 4 || Xu === 3) {
				Xu = 0, Ec();
				var e = Zu, t = Qu, n = $u, r = nd;
				t.subtreeFlags & 10256 || t.flags & 10256 ? Xu = 5 : (Xu = 0, Qu = Zu = null, na(e, e.pendingLanes));
				var i = e.pendingLanes;
				if (i === 0 && (Yu = null), E(n), t = t.stateNode, Fc && typeof Fc.onCommitFiberRoot == "function") try {
					Fc.onCommitFiberRoot(Pc, t, void 0, (t.current.flags & 128) == 128);
				} catch {}
				if (r !== null) {
					t = W.T, i = bo(), yo(2), W.T = null;
					try {
						for (var a = e.onRecoverableError, o = 0; o < r.length; o++) {
							var s = r[o];
							a(s.value, { componentStack: s.stack });
						}
					} finally {
						W.T = t, yo(i);
					}
				}
				$u & 3 && ra(), Me(e), i = e.pendingLanes, n & 261930 && i & 42 ? e === id ? rd++ : (rd = 0, id = e) : rd = 0, go && Bs(), P(0, !1);
			}
		}
		function na(e, t) {
			(e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Ae(t)));
		}
		function ra() {
			return $i(), ea(), ta(), ia();
		}
		function ia() {
			if (Xu !== 5) return !1;
			var e = Zu, t = ed;
			ed = 0;
			var n = E($u), i = 32 > n ? 32 : n;
			n = W.T;
			var a = bo();
			try {
				yo(i), W.T = null, i = td, td = null;
				var o = Zu, s = $u;
				if (Xu = 0, Qu = Zu = null, $u = 0, Eu & 6) throw Error(r(331));
				var c = Eu;
				if (Eu |= 4, bi(o.current), pi(o, o.current, s, i), Eu = c, P(0, !1), Fc && typeof Fc.onPostCommitFiberRoot == "function") try {
					Fc.onPostCommitFiberRoot(Pc, o);
				} catch {}
				return !0;
			} finally {
				yo(a), W.T = n, na(e, t);
			}
		}
		function aa(e, t, n) {
			t = j(n, t), t = Un(e.stateNode, t, 2), e = ut(e, t, 2), e !== null && (S(e, 2), Me(e));
		}
		function oa(e, t, n) {
			if (e.tag === 3) aa(e, e, n);
			else for (; t !== null;) {
				if (t.tag === 3) {
					aa(t, e, n);
					break;
				} else if (t.tag === 1) {
					var r = t.stateNode;
					if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Yu === null || !Yu.has(r))) {
						e = j(n, e), n = Wn(2), r = ut(t, n, 2), r !== null && (Gn(n, r, t, e), S(r, 2), Me(r));
						break;
					}
				}
				t = t.return;
			}
		}
		function sa(e, t, n) {
			var r = e.pingCache;
			if (r === null) {
				r = e.pingCache = new Tu();
				var i = /* @__PURE__ */ new Set();
				r.set(t, i);
			} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
			i.has(n) || (Pu = !0, i.add(n), e = ca.bind(null, e, t, n), t.then(e, e));
		}
		function ca(e, t, n) {
			var r = e.pingCache;
			r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Du === e && (ku & n) === n && (Iu === 4 || Iu === 3 && (ku & 62914560) === ku && 300 > Dc() - Gu ? !(Eu & 2) && Li(e, 0) : zu |= n, Vu === ku && (Vu = 0)), Me(e);
		}
		function U(e, t) {
			t === 0 && (t = x()), e = it(e, t), e !== null && (S(e, t), Me(e));
		}
		function la(e) {
			var t = e.memoizedState, n = 0;
			t !== null && (n = t.retryLane), U(e, n);
		}
		function ua(e, t) {
			var n = 0;
			switch (e.tag) {
				case 31:
				case 13:
					var i = e.stateNode, a = e.memoizedState;
					a !== null && (n = a.retryLane);
					break;
				case 19:
					i = e.stateNode;
					break;
				case 22:
					i = e.stateNode._retryCache;
					break;
				default: throw Error(r(314));
			}
			i !== null && i.delete(t), U(e, n);
		}
		function da(e, t) {
			return Cc(e, t);
		}
		function fa(e, t, n, r) {
			this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
		}
		function pa(e) {
			return e = e.prototype, !(!e || !e.isReactComponent);
		}
		function ma(e, n) {
			var r = e.alternate;
			return r === null ? (r = t(e.tag, n, e.key, e.mode), r.elementType = e.elementType, r.type = e.type, r.stateNode = e.stateNode, r.alternate = e, e.alternate = r) : (r.pendingProps = n, r.type = e.type, r.flags = 0, r.subtreeFlags = 0, r.deletions = null), r.flags = e.flags & 65011712, r.childLanes = e.childLanes, r.lanes = e.lanes, r.child = e.child, r.memoizedProps = e.memoizedProps, r.memoizedState = e.memoizedState, r.updateQueue = e.updateQueue, n = e.dependencies, r.dependencies = n === null ? null : {
				lanes: n.lanes,
				firstContext: n.firstContext
			}, r.sibling = e.sibling, r.index = e.index, r.ref = e.ref, r.refCleanup = e.refCleanup, r;
		}
		function ha(e, t) {
			e.flags &= 65011714;
			var n = e.alternate;
			return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
				lanes: t.lanes,
				firstContext: t.firstContext
			}), e;
		}
		function ga(e, n, i, a, o, s) {
			var c = 0;
			if (a = e, typeof e == "function") pa(e) && (c = 1);
			else if (typeof e == "string") c = Js && cc ? Ys(e, i, Xc.current) ? 26 : fc(e) ? 27 : 5 : Js ? Ys(e, i, Xc.current) ? 26 : 5 : cc && fc(e) ? 27 : 5;
			else a: switch (e) {
				case Ga: return e = t(31, i, n, o), e.elementType = Ga, e.lanes = s, e;
				case Fa: return _a(i.children, o, s, n);
				case Ia:
					c = 8, o |= 24;
					break;
				case La: return e = t(12, i, n, o | 2), e.elementType = La, e.lanes = s, e;
				case Va: return e = t(13, i, n, o), e.elementType = Va, e.lanes = s, e;
				case Ha: return e = t(19, i, n, o), e.elementType = Ha, e.lanes = s, e;
				default:
					if (typeof e == "object" && e) switch (e.$$typeof) {
						case za:
							c = 10;
							break a;
						case Ra:
							c = 9;
							break a;
						case Ba:
							c = 11;
							break a;
						case Ua:
							c = 14;
							break a;
						case Wa:
							c = 16, a = null;
							break a;
					}
					c = 29, i = Error(r(130, e === null ? "null" : typeof e, "")), a = null;
			}
			return n = t(c, i, n, o), n.elementType = e, n.type = a, n.lanes = s, n;
		}
		function _a(e, n, r, i) {
			return e = t(7, e, i, n), e.lanes = r, e;
		}
		function va(e, n, r) {
			return e = t(6, e, null, n), e.lanes = r, e;
		}
		function ya(e) {
			var n = t(18, null, null, 0);
			return n.stateNode = e, n;
		}
		function ba(e, n, r) {
			return n = t(4, e.children === null ? [] : e.children, e.key, n), n.lanes = r, n.stateNode = {
				containerInfo: e.containerInfo,
				pendingChildren: null,
				implementation: e.implementation
			}, n;
		}
		function xa(e, t, n, r, i, a, o, s, c) {
			this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = fo, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ee(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ee(0), this.hiddenUpdates = ee(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.incompleteTransitions = /* @__PURE__ */ new Map();
		}
		function Sa(e, n, r, i, a, o, s, c, l, u, d, f) {
			return e = new xa(e, n, r, s, l, u, d, f, c), n = 1, !0 === o && (n |= 24), o = t(3, null, null, n), e.current = o, o.stateNode = e, n = ke(), n.refCount++, e.pooledCache = n, n.refCount++, o.memoizedState = {
				element: i,
				isDehydrated: r,
				cache: n
			}, st(o), e;
		}
		function Ca(e) {
			return e ? (e = gc, e) : gc;
		}
		function wa(e) {
			var t = e._reactInternals;
			if (t === void 0) throw typeof e.render == "function" ? Error(r(188)) : (e = Object.keys(e).join(","), Error(r(268, e)));
			return e = o(t), e = e === null ? null : s(e), e === null ? null : $a(e.stateNode);
		}
		function Ta(e, t, n, r, i, a) {
			i = Ca(i), r.context === null ? r.context = i : r.pendingContext = i, r = lt(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = ut(e, r, t), n !== null && (Ai(n, e, t), dt(n, e, t));
		}
		function Ea(e, t) {
			if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
				var n = e.retryLane;
				e.retryLane = n !== 0 && n < t ? n : t;
			}
		}
		function Da(e, t) {
			Ea(e, t), (e = e.alternate) && Ea(e, t);
		}
		var Oa = {}, ka = g(), Aa = p(), ja = Object.assign, Ma = Symbol.for("react.element"), Na = Symbol.for("react.transitional.element"), Pa = Symbol.for("react.portal"), Fa = Symbol.for("react.fragment"), Ia = Symbol.for("react.strict_mode"), La = Symbol.for("react.profiler"), Ra = Symbol.for("react.consumer"), za = Symbol.for("react.context"), Ba = Symbol.for("react.forward_ref"), Va = Symbol.for("react.suspense"), Ha = Symbol.for("react.suspense_list"), Ua = Symbol.for("react.memo"), Wa = Symbol.for("react.lazy"), Ga = Symbol.for("react.activity"), Ka = Symbol.for("react.memo_cache_sentinel"), qa = Symbol.iterator, Ja = Symbol.for("react.client.reference"), Ya = Array.isArray, W = ka.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Xa = e.rendererVersion, Za = e.rendererPackageName, Qa = e.extraDevToolsConfig, $a = e.getPublicInstance, eo = e.getRootHostContext, to = e.getChildHostContext, no = e.prepareForCommit, ro = e.resetAfterCommit, io = e.createInstance;
		e.cloneMutableInstance;
		var ao = e.appendInitialChild, oo = e.finalizeInitialChildren, so = e.shouldSetTextContent, co = e.createTextInstance;
		e.cloneMutableTextInstance;
		var lo = e.scheduleTimeout, uo = e.cancelTimeout, fo = e.noTimeout, po = e.isPrimaryRenderer;
		e.warnsIfNotActing;
		var mo = e.supportsMutation, ho = e.supportsPersistence, go = e.supportsHydration, _o = e.getInstanceFromNode;
		e.beforeActiveInstanceBlur;
		var vo = e.preparePortalMount;
		e.prepareScopeUpdate, e.getInstanceFromScope;
		var yo = e.setCurrentUpdatePriority, bo = e.getCurrentUpdatePriority, xo = e.resolveUpdatePriority;
		e.trackSchedulerEvent, e.resolveEventType, e.resolveEventTimeStamp;
		var So = e.shouldAttemptEagerTransition, Co = e.detachDeletedInstance;
		e.requestPostPaintCallback;
		var wo = e.maySuspendCommit, To = e.maySuspendCommitOnUpdate, Eo = e.maySuspendCommitInSyncRender, Do = e.preloadInstance, Oo = e.startSuspendingCommit, ko = e.suspendInstance;
		e.suspendOnActiveViewTransition;
		var Ao = e.waitForCommitToBeReady;
		e.getSuspendedCommitReason;
		var jo = e.NotPendingTransition, Mo = e.HostTransitionContext, No = e.resetFormInstance;
		e.bindToConsole;
		var Po = e.supportsMicrotasks, Fo = e.scheduleMicrotask, Io = e.supportsTestSelectors, Lo = e.findFiberRoot, Ro = e.getBoundingRect, zo = e.getTextContent, Bo = e.isHiddenSubtree, Vo = e.matchAccessibilityRole, Ho = e.setFocusIfFocusable, Uo = e.setupIntersectionObserver, Wo = e.appendChild, Go = e.appendChildToContainer, Ko = e.commitTextUpdate, qo = e.commitMount, Jo = e.commitUpdate, Yo = e.insertBefore, Xo = e.insertInContainerBefore, Zo = e.removeChild, Qo = e.removeChildFromContainer, $o = e.resetTextContent, es = e.hideInstance, ts = e.hideTextInstance, ns = e.unhideInstance, rs = e.unhideTextInstance;
		e.cancelViewTransitionName, e.cancelRootViewTransitionName, e.restoreRootViewTransitionName, e.cloneRootViewTransitionContainer, e.removeRootViewTransitionClone, e.measureClonedInstance, e.hasInstanceChanged, e.hasInstanceAffectedParent, e.startViewTransition, e.startGestureTransition, e.stopViewTransition, e.getCurrentGestureOffset, e.createViewTransitionInstance;
		var is = e.clearContainer;
		e.createFragmentInstance, e.updateFragmentInstanceFiber, e.commitNewChildToFragmentInstance, e.deleteChildFromFragmentInstance;
		var as = e.cloneInstance, os = e.createContainerChildSet, ss = e.appendChildToContainerChildSet, cs = e.finalizeContainerChildren, ls = e.replaceContainerChildren, us = e.cloneHiddenInstance, ds = e.cloneHiddenTextInstance, fs = e.isSuspenseInstancePending, ps = e.isSuspenseInstanceFallback, ms = e.getSuspenseInstanceFallbackErrorDetails, hs = e.registerSuspenseInstanceRetry, gs = e.canHydrateFormStateMarker, _s = e.isFormStateMarkerMatching, vs = e.getNextHydratableSibling, ys = e.getNextHydratableSiblingAfterSingleton, bs = e.getFirstHydratableChild, xs = e.getFirstHydratableChildWithinContainer, Ss = e.getFirstHydratableChildWithinActivityInstance, Cs = e.getFirstHydratableChildWithinSuspenseInstance, ws = e.getFirstHydratableChildWithinSingleton, Ts = e.canHydrateInstance, Es = e.canHydrateTextInstance, Ds = e.canHydrateActivityInstance, Os = e.canHydrateSuspenseInstance, ks = e.hydrateInstance, As = e.hydrateTextInstance, js = e.hydrateActivityInstance, Ms = e.hydrateSuspenseInstance, Ns = e.getNextHydratableInstanceAfterActivityInstance, Ps = e.getNextHydratableInstanceAfterSuspenseInstance, Fs = e.commitHydratedInstance, Is = e.commitHydratedContainer, Ls = e.commitHydratedActivityInstance, Rs = e.commitHydratedSuspenseInstance, zs = e.finalizeHydratedChildren, Bs = e.flushHydrationEvents;
		e.clearActivityBoundary;
		var Vs = e.clearSuspenseBoundary;
		e.clearActivityBoundaryFromContainer;
		var Hs = e.clearSuspenseBoundaryFromContainer, Us = e.hideDehydratedBoundary, Ws = e.unhideDehydratedBoundary, Gs = e.shouldDeleteUnhydratedTailInstances;
		e.diffHydratedPropsForDevWarnings, e.diffHydratedTextForDevWarnings, e.describeHydratableInstanceForDevWarnings;
		var Ks = e.validateHydratableInstance, qs = e.validateHydratableTextInstance, Js = e.supportsResources, Ys = e.isHostHoistableType, Xs = e.getHoistableRoot, Zs = e.getResource, Qs = e.acquireResource, $s = e.releaseResource, ec = e.hydrateHoistable, tc = e.mountHoistable, nc = e.unmountHoistable, rc = e.createHoistableInstance, ic = e.prepareToCommitHoistables, ac = e.mayResourceSuspendCommit, oc = e.preloadResource, sc = e.suspendResource, cc = e.supportsSingletons, lc = e.resolveSingletonInstance, uc = e.acquireSingletonInstance, dc = e.releaseSingletonInstance, fc = e.isHostSingletonType, pc = e.isSingletonScope, mc = [], hc = -1, gc = {}, _c = Math.clz32 ? Math.clz32 : h, vc = Math.log, yc = Math.LN2, bc = 256, xc = 262144, Sc = 4194304, Cc = Aa.unstable_scheduleCallback, wc = Aa.unstable_cancelCallback, Tc = Aa.unstable_shouldYield, Ec = Aa.unstable_requestPaint, Dc = Aa.unstable_now, Oc = Aa.unstable_ImmediatePriority, kc = Aa.unstable_UserBlockingPriority, Ac = Aa.unstable_NormalPriority, jc = Aa.unstable_IdlePriority, Mc = Aa.log, Nc = Aa.unstable_setDisableYieldValue, Pc = null, Fc = null, G = typeof Object.is == "function" ? Object.is : re, Ic = typeof reportError == "function" ? reportError : function(e) {
			if (typeof window == "object" && typeof window.ErrorEvent == "function") {
				var t = new window.ErrorEvent("error", {
					bubbles: !0,
					cancelable: !0,
					message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
					error: e
				});
				if (!window.dispatchEvent(t)) return;
			} else if (typeof process == "object" && typeof process.emit == "function") {
				process.emit("uncaughtException", e);
				return;
			}
			console.error(e);
		}, Lc = Object.prototype.hasOwnProperty, Rc, zc, Bc = !1, Vc = /* @__PURE__ */ new WeakMap(), Hc = [], Uc = 0, Wc = null, K = 0, Gc = [], Kc = 0, qc = null, Jc = 1, Yc = "", Xc = d(null), Zc = d(null), Qc = d(null), $c = d(null), el = null, tl = null, nl = !1, rl = null, il = !1, al = Error(r(519)), ol = d(null), sl = null, cl = null, ll = typeof AbortController < "u" ? AbortController : function() {
			var e = [], t = this.signal = {
				aborted: !1,
				addEventListener: function(t, n) {
					e.push(n);
				}
			};
			this.abort = function() {
				t.aborted = !0, e.forEach(function(e) {
					return e();
				});
			};
		}, ul = Aa.unstable_scheduleCallback, dl = Aa.unstable_NormalPriority, fl = {
			$$typeof: za,
			Consumer: null,
			Provider: null,
			_currentValue: null,
			_currentValue2: null,
			_threadCount: 0
		}, pl = null, ml = null, hl = !1, gl = !1, _l = !1, vl = 0, yl = null, bl = 0, xl = 0, Sl = null, Cl = W.S;
		W.S = function(e, t) {
			Ku = Dc(), typeof t == "object" && t && typeof t.then == "function" && Be(e, t), Cl !== null && Cl(e, t);
		};
		var wl = d(null), Tl = Error(r(460)), El = Error(r(474)), Dl = Error(r(542)), Ol = { then: function() {} }, kl = null, Al = null, jl = 0, Ml = et(!0), Nl = et(!1), Pl = [], Fl = 0, Il = 0, Ll = !1, Rl = !1, zl = d(null), Bl = d(0), Vl = d(null), Hl = null, Ul = d(0), Wl = 0, Gl = null, Kl = null, ql = null, Jl = !1, Yl = !1, Xl = !1, Zl = 0, Ql = 0, $l = null, eu = 0, tu = {
			readContext: Ee,
			use: Ft,
			useCallback: Ct,
			useContext: Ct,
			useEffect: Ct,
			useImperativeHandle: Ct,
			useLayoutEffect: Ct,
			useInsertionEffect: Ct,
			useMemo: Ct,
			useReducer: Ct,
			useRef: Ct,
			useState: Ct,
			useDebugValue: Ct,
			useDeferredValue: Ct,
			useTransition: Ct,
			useSyncExternalStore: Ct,
			useId: Ct,
			useHostTransitionStatus: Ct,
			useFormState: Ct,
			useActionState: Ct,
			useOptimistic: Ct,
			useMemoCache: Ct,
			useCacheRefresh: Ct
		};
		tu.useEffectEvent = Ct;
		var nu = {
			readContext: Ee,
			use: Ft,
			useCallback: function(e, t) {
				return z().memoizedState = [e, t === void 0 ? null : t], e;
			},
			useContext: Ee,
			useEffect: dn,
			useImperativeHandle: function(e, t, n) {
				n = n == null ? null : n.concat([e]), ln(4194308, 4, _n.bind(null, t, e), n);
			},
			useLayoutEffect: function(e, t) {
				return ln(4194308, 4, e, t);
			},
			useInsertionEffect: function(e, t) {
				ln(4, 2, e, t);
			},
			useMemo: function(e, t) {
				var n = z();
				t = t === void 0 ? null : t;
				var r = e();
				if (Xl) {
					D(!0);
					try {
						e();
					} finally {
						D(!1);
					}
				}
				return n.memoizedState = [r, t], r;
			},
			useReducer: function(e, t, n) {
				var r = z();
				if (n !== void 0) {
					var i = n(t);
					if (Xl) {
						D(!0);
						try {
							n(t);
						} finally {
							D(!1);
						}
					}
				} else i = t;
				return r.memoizedState = r.baseState = i, e = {
					pending: null,
					lanes: 0,
					dispatch: null,
					lastRenderedReducer: e,
					lastRenderedState: i
				}, r.queue = e, e = e.dispatch = An.bind(null, Gl, e), [r.memoizedState, e];
			},
			useRef: function(e) {
				var t = z();
				return e = { current: e }, t.memoizedState = e;
			},
			useState: function(e) {
				e = qt(e);
				var t = e.queue, n = jn.bind(null, Gl, t);
				return t.dispatch = n, [e.memoizedState, n];
			},
			useDebugValue: yn,
			useDeferredValue: function(e, t) {
				return Sn(z(), e, t);
			},
			useTransition: function() {
				var e = qt(!1);
				return e = wn.bind(null, Gl, e.queue, !0, !1), z().memoizedState = e, [!1, e];
			},
			useSyncExternalStore: function(e, t, n) {
				var i = Gl, a = z();
				if (nl) {
					if (n === void 0) throw Error(r(407));
					n = n();
				} else {
					if (n = t(), Du === null) throw Error(r(349));
					ku & 127 || Ht(i, t, n);
				}
				a.memoizedState = n;
				var o = {
					value: n,
					getSnapshot: t
				};
				return a.queue = o, dn(Wt.bind(null, i, o, e), [e]), i.flags |= 2048, sn(9, { destroy: void 0 }, Ut.bind(null, i, o, n, t), null), n;
			},
			useId: function() {
				var e = z(), t = Du.identifierPrefix;
				if (nl) {
					var n = Yc, r = Jc;
					n = (r & ~(1 << 32 - _c(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Zl++, 0 < n && (t += "H" + n.toString(32)), t += "_";
				} else n = eu++, t = "_" + t + "r_" + n.toString(32) + "_";
				return e.memoizedState = t;
			},
			useHostTransitionStatus: En,
			useFormState: nn,
			useActionState: nn,
			useOptimistic: function(e) {
				var t = z();
				t.memoizedState = t.baseState = e;
				var n = {
					pending: null,
					lanes: 0,
					dispatch: null,
					lastRenderedReducer: null,
					lastRenderedState: null
				};
				return t.queue = n, t = Nn.bind(null, Gl, !0, n), n.dispatch = t, [e, t];
			},
			useMemoCache: It,
			useCacheRefresh: function() {
				return z().memoizedState = kn.bind(null, Gl);
			},
			useEffectEvent: function(e) {
				var t = z(), n = { impl: e };
				return t.memoizedState = n, function() {
					if (Eu & 2) throw Error(r(440));
					return n.impl.apply(void 0, arguments);
				};
			}
		}, ru = {
			readContext: Ee,
			use: Ft,
			useCallback: bn,
			useContext: Ee,
			useEffect: fn,
			useImperativeHandle: vn,
			useInsertionEffect: hn,
			useLayoutEffect: gn,
			useMemo: xn,
			useReducer: Rt,
			useRef: cn,
			useState: function() {
				return Rt(Lt);
			},
			useDebugValue: yn,
			useDeferredValue: function(e, t) {
				return Cn(Mt(), Kl.memoizedState, e, t);
			},
			useTransition: function() {
				var e = Rt(Lt)[0], t = Mt().memoizedState;
				return [typeof e == "boolean" ? e : Pt(e), t];
			},
			useSyncExternalStore: Vt,
			useId: Dn,
			useHostTransitionStatus: En,
			useFormState: B,
			useActionState: B,
			useOptimistic: function(e, t) {
				return Jt(Mt(), Kl, e, t);
			},
			useMemoCache: It,
			useCacheRefresh: On
		};
		ru.useEffectEvent = mn;
		var iu = {
			readContext: Ee,
			use: Ft,
			useCallback: bn,
			useContext: Ee,
			useEffect: fn,
			useImperativeHandle: vn,
			useInsertionEffect: hn,
			useLayoutEffect: gn,
			useMemo: xn,
			useReducer: Bt,
			useRef: cn,
			useState: function() {
				return Bt(Lt);
			},
			useDebugValue: yn,
			useDeferredValue: function(e, t) {
				var n = Mt();
				return Kl === null ? Sn(n, e, t) : Cn(n, Kl.memoizedState, e, t);
			},
			useTransition: function() {
				var e = Bt(Lt)[0], t = Mt().memoizedState;
				return [typeof e == "boolean" ? e : Pt(e), t];
			},
			useSyncExternalStore: Vt,
			useId: Dn,
			useHostTransitionStatus: En,
			useFormState: on,
			useActionState: on,
			useOptimistic: function(e, t) {
				var n = Mt();
				return Kl === null ? (n.baseState = e, [e, n.queue.dispatch]) : Jt(n, Kl, e, t);
			},
			useMemoCache: It,
			useCacheRefresh: On
		};
		iu.useEffectEvent = mn;
		var au = {
			enqueueSetState: function(e, t, n) {
				e = e._reactInternals;
				var r = Oi(), i = lt(r);
				i.payload = t, n != null && (i.callback = n), t = ut(e, i, r), t !== null && (Ai(t, e, r), dt(t, e, r));
			},
			enqueueReplaceState: function(e, t, n) {
				e = e._reactInternals;
				var r = Oi(), i = lt(r);
				i.tag = 1, i.payload = t, n != null && (i.callback = n), t = ut(e, i, r), t !== null && (Ai(t, e, r), dt(t, e, r));
			},
			enqueueForceUpdate: function(e, t) {
				e = e._reactInternals;
				var n = Oi(), r = lt(n);
				r.tag = 2, t != null && (r.callback = t), t = ut(e, r, n), t !== null && (Ai(t, e, n), dt(t, e, n));
			}
		}, ou = Error(r(461)), su = !1, cu = {
			dehydrated: null,
			treeContext: null,
			retryLane: 0,
			hydrationErrors: null
		}, lu = !1, uu = !1, du = !1, fu = typeof WeakSet == "function" ? WeakSet : Set, pu = null, mu = null, hu = !1, gu = null, _u = 8192, vu = {
			getCacheForType: function(e) {
				var t = Ee(fl), n = t.data.get(e);
				return n === void 0 && (n = e(), t.data.set(e, n)), n;
			},
			cacheSignal: function() {
				return Ee(fl).controller.signal;
			}
		}, yu = 0, bu = 1, xu = 2, Su = 3, Cu = 4;
		if (typeof Symbol == "function" && Symbol.for) {
			var wu = Symbol.for;
			yu = wu("selector.component"), bu = wu("selector.has_pseudo_class"), xu = wu("selector.role"), Su = wu("selector.test_id"), Cu = wu("selector.text");
		}
		var Tu = typeof WeakMap == "function" ? WeakMap : Map, Eu = 0, Du = null, Ou = null, ku = 0, Au = 0, ju = null, Mu = !1, Nu = !1, Pu = !1, Fu = 0, Iu = 0, Lu = 0, Ru = 0, zu = 0, Bu = 0, Vu = 0, Hu = null, Uu = null, Wu = !1, Gu = 0, Ku = 0, qu = Infinity, Ju = null, Yu = null, Xu = 0, Zu = null, Qu = null, $u = 0, ed = 0, td = null, nd = null, rd = 0, id = null;
		return Oa.attemptContinuousHydration = function(e) {
			if (e.tag === 13 || e.tag === 31) {
				var t = it(e, 67108864);
				t !== null && Ai(t, e, 67108864), Da(e, 67108864);
			}
		}, Oa.attemptHydrationAtCurrentPriority = function(e) {
			if (e.tag === 13 || e.tag === 31) {
				var t = Oi();
				t = T(t);
				var n = it(e, t);
				n !== null && Ai(n, e, t), Da(e, t);
			}
		}, Oa.attemptSynchronousHydration = function(e) {
			switch (e.tag) {
				case 3:
					if (e = e.stateNode, e.current.memoizedState.isDehydrated) {
						var t = _(e.pendingLanes);
						if (t !== 0) {
							for (e.pendingLanes |= 2, e.entangledLanes |= 2; t;) {
								var n = 1 << 31 - _c(t);
								e.entanglements[1] |= n, t &= ~n;
							}
							Me(e), !(Eu & 6) && (qu = Dc() + 500, P(0, !1));
						}
					}
					break;
				case 31:
				case 13: t = it(e, 2), t !== null && Ai(t, e, 2), Fi(), Da(e, 2);
			}
		}, Oa.batchedUpdates = function(e, t) {
			return e(t);
		}, Oa.createComponentSelector = function(e) {
			return {
				$$typeof: yu,
				value: e
			};
		}, Oa.createContainer = function(e, t, n, r, i, a, o, s, c, l) {
			return Sa(e, t, !1, null, n, r, a, null, o, s, c, l);
		}, Oa.createHasPseudoClassSelector = function(e) {
			return {
				$$typeof: bu,
				value: e
			};
		}, Oa.createHydrationContainer = function(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
			return e = Sa(n, r, !0, e, i, a, s, p, c, l, u, d), e.context = Ca(null), n = e.current, r = Oi(), r = T(r), i = lt(r), i.callback = t ?? null, ut(n, i, r), t = r, e.current.lanes = t, S(e, t), Me(e), e;
		}, Oa.createPortal = function(e, t, n) {
			var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
			return {
				$$typeof: Pa,
				key: r == null ? null : "" + r,
				children: e,
				containerInfo: t,
				implementation: n
			};
		}, Oa.createRoleSelector = function(e) {
			return {
				$$typeof: xu,
				value: e
			};
		}, Oa.createTestNameSelector = function(e) {
			return {
				$$typeof: Su,
				value: e
			};
		}, Oa.createTextSelector = function(e) {
			return {
				$$typeof: Cu,
				value: e
			};
		}, Oa.defaultOnCaughtError = function(e) {
			console.error(e);
		}, Oa.defaultOnRecoverableError = function(e) {
			Ic(e);
		}, Oa.defaultOnUncaughtError = function(e) {
			Ic(e);
		}, Oa.deferredUpdates = function(e) {
			var t = W.T, n = bo();
			try {
				return yo(32), W.T = null, e();
			} finally {
				yo(n), W.T = t;
			}
		}, Oa.discreteUpdates = function(e, t, n, r, i) {
			var a = W.T, o = bo();
			try {
				return yo(2), W.T = null, e(t, n, r, i);
			} finally {
				yo(o), W.T = a, Eu === 0 && (qu = Dc() + 500);
			}
		}, Oa.findAllNodes = Di, Oa.findBoundingRects = function(e, t) {
			if (!Io) throw Error(r(363));
			t = Di(e, t), e = [];
			for (var n = 0; n < t.length; n++) e.push(Ro(t[n]));
			for (t = e.length - 1; 0 < t; t--) {
				n = e[t];
				for (var i = n.x, a = i + n.width, o = n.y, s = o + n.height, c = t - 1; 0 <= c; c--) if (t !== c) {
					var l = e[c], u = l.x, d = u + l.width, f = l.y, p = f + l.height;
					if (i >= u && o >= f && a <= d && s <= p) {
						e.splice(t, 1);
						break;
					} else if (!(i !== u || n.width !== l.width || p < o || f > s)) {
						f > o && (l.height += f - o, l.y = o), p < s && (l.height = s - f), e.splice(t, 1);
						break;
					} else if (!(o !== f || n.height !== l.height || d < i || u > a)) {
						u > i && (l.width += u - i, l.x = i), d < a && (l.width = a - u), e.splice(t, 1);
						break;
					}
				}
			}
			return e;
		}, Oa.findHostInstance = wa, Oa.findHostInstanceWithNoPortals = function(e) {
			return e = o(e), e = e === null ? null : c(e), e === null ? null : $a(e.stateNode);
		}, Oa.findHostInstanceWithWarning = function(e) {
			return wa(e);
		}, Oa.flushPassiveEffects = ra, Oa.flushSyncFromReconciler = function(e) {
			var t = Eu;
			Eu |= 1;
			var n = W.T, r = bo();
			try {
				if (yo(2), W.T = null, e) return e();
			} finally {
				yo(r), W.T = n, Eu = t, !(Eu & 6) && P(0, !1);
			}
		}, Oa.flushSyncWork = Fi, Oa.focusWithin = function(e, t) {
			if (!Io) throw Error(r(363));
			for (e = Ci(e), t = Ei(e, t), t = Array.from(t), e = 0; e < t.length;) {
				var n = t[e++], i = n.tag;
				if (!Bo(n)) {
					if ((i === 5 || i === 26 || i === 27) && Ho(n.stateNode)) return !0;
					for (n = n.child; n !== null;) t.push(n), n = n.sibling;
				}
			}
			return !1;
		}, Oa.getFindAllNodesFailureDescription = function(e, t) {
			if (!Io) throw Error(r(363));
			var n = 0, i = [];
			e = [Ci(e), 0];
			for (var a = 0; a < e.length;) {
				var o = e[a++], s = o.tag, c = e[a++], l = t[c];
				if ((s !== 5 && s !== 26 && s !== 27 || !Bo(o)) && (wi(o, l) && (i.push(Ti(l)), c++, c > n && (n = c)), c < t.length)) for (o = o.child; o !== null;) e.push(o, c), o = o.sibling;
			}
			if (n < t.length) {
				for (e = []; n < t.length; n++) e.push(Ti(t[n]));
				return "findAllNodes was able to match part of the selector:\n  " + (i.join(" > ") + "\n\nNo matching component was found for:\n  ") + e.join(" > ");
			}
			return null;
		}, Oa.getPublicRootInstance = function(e) {
			if (e = e.current, !e.child) return null;
			switch (e.child.tag) {
				case 27:
				case 5: return $a(e.child.stateNode);
				default: return e.child.stateNode;
			}
		}, Oa.injectIntoDevTools = function() {
			var e = {
				bundleType: 0,
				version: Xa,
				rendererPackageName: Za,
				currentDispatcherRef: W,
				reconcilerVersion: "19.2.0"
			};
			if (Qa !== null && (e.rendererConfig = Qa), typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") e = !1;
			else {
				var t = __REACT_DEVTOOLS_GLOBAL_HOOK__;
				if (t.isDisabled || !t.supportsFiber) e = !0;
				else {
					try {
						Pc = t.inject(e), Fc = t;
					} catch {}
					e = !!t.checkDCE;
				}
			}
			return e;
		}, Oa.isAlreadyRendering = function() {
			return (Eu & 6) != 0;
		}, Oa.observeVisibleRects = function(e, t, n, i) {
			if (!Io) throw Error(r(363));
			e = Di(e, t);
			var a = Uo(e, n, i).disconnect;
			return { disconnect: function() {
				a();
			} };
		}, Oa.shouldError = function() {
			return null;
		}, Oa.shouldSuspend = function() {
			return !1;
		}, Oa.startHostTransition = function(e, t, i, a) {
			if (e.tag !== 5) throw Error(r(476));
			var o = Tn(e).queue;
			wn(e, o, t, jo, i === null ? n : function() {
				var t = Tn(e);
				return t.next === null && (t = e.alternate.memoizedState), Mn(e, t.next.queue, {}, Oi()), i(a);
			});
		}, Oa.updateContainer = function(e, t, n, r) {
			var i = t.current, a = Oi();
			return Ta(i, a, e, t, n, r), a;
		}, Oa.updateContainerSync = function(e, t, n, r) {
			return Ta(t.current, 2, e, t, n, r), 2;
		}, Oa;
	}, t.exports.default = t.exports, Object.defineProperty(t.exports, "__esModule", { value: !0 });
})), Fa = /* @__PURE__ */ s(((e, t) => {
	process.env.NODE_ENV !== "production" && (t.exports = function(e) {
		function t(e, t) {
			for (e = e.memoizedState; e !== null && 0 < t;) e = e.next, t--;
			return e;
		}
		function n(e, t, r, i) {
			if (r >= t.length) return i;
			var a = t[r], o = Wc(e) ? e.slice() : Dc({}, e);
			return o[a] = n(e[a], t, r + 1, i), o;
		}
		function r(e, t, n) {
			if (t.length !== n.length) console.warn("copyWithRename() expects paths of the same length");
			else {
				for (var r = 0; r < n.length - 1; r++) if (t[r] !== n[r]) {
					console.warn("copyWithRename() expects paths to be the same except for the deepest key");
					return;
				}
				return i(e, t, n, 0);
			}
		}
		function i(e, t, n, r) {
			var a = t[r], o = Wc(e) ? e.slice() : Dc({}, e);
			return r + 1 === t.length ? (o[n[r]] = o[a], Wc(o) ? o.splice(a, 1) : delete o[a]) : o[a] = i(e[a], t, n, r + 1), o;
		}
		function a(e, t, n) {
			var r = t[n], i = Wc(e) ? e.slice() : Dc({}, e);
			return n + 1 === t.length ? (Wc(i) ? i.splice(r, 1) : delete i[r], i) : (i[r] = a(e[r], t, n + 1), i);
		}
		function o() {
			return !1;
		}
		function s() {
			return null;
		}
		function c(e, t, n, r) {
			return new ac(e, t, n, r);
		}
		function l(e, t) {
			e.context === yd && (yc(t, e, null, null), ds());
		}
		function u(e, t) {
			if (ev !== null) {
				var n = t.staleFamilies;
				t = t.updatedFamilies, Rs(), ic(e.current, t, n), ds();
			}
		}
		function d(e) {
			ev = e;
		}
		function f() {
			console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks");
		}
		function m() {
			console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
		}
		function h() {}
		function _() {}
		function v(e) {
			var t = [];
			return e.forEach(function(e) {
				t.push(e);
			}), t.sort().join(", ");
		}
		function y(e) {
			var t = e, n = e;
			if (e.alternate) for (; t.return;) t = t.return;
			else {
				e = t;
				do
					t = e, t.flags & 4098 && (n = t.return), e = t.return;
				while (e);
			}
			return t.tag === 3 ? n : null;
		}
		function b(e) {
			if (y(e) !== e) throw Error("Unable to find node on an unmounted component.");
		}
		function x(e) {
			var t = e.alternate;
			if (!t) {
				if (t = y(e), t === null) throw Error("Unable to find node on an unmounted component.");
				return t === e ? e : null;
			}
			for (var n = e, r = t;;) {
				var i = n.return;
				if (i === null) break;
				var a = i.alternate;
				if (a === null) {
					if (r = i.return, r !== null) {
						n = r;
						continue;
					}
					break;
				}
				if (i.child === a.child) {
					for (a = i.child; a;) {
						if (a === n) return b(i), e;
						if (a === r) return b(i), t;
						a = a.sibling;
					}
					throw Error("Unable to find node on an unmounted component.");
				}
				if (n.return !== r.return) n = i, r = a;
				else {
					for (var o = !1, s = i.child; s;) {
						if (s === n) {
							o = !0, n = i, r = a;
							break;
						}
						if (s === r) {
							o = !0, r = i, n = a;
							break;
						}
						s = s.sibling;
					}
					if (!o) {
						for (s = a.child; s;) {
							if (s === n) {
								o = !0, n = a, r = i;
								break;
							}
							if (s === r) {
								o = !0, r = a, n = i;
								break;
							}
							s = s.sibling;
						}
						if (!o) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
					}
				}
				if (n.alternate !== r) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
			}
			if (n.tag !== 3) throw Error("Unable to find node on an unmounted component.");
			return n.stateNode.current === n ? e : t;
		}
		function ee(e) {
			return e = x(e), e === null ? null : S(e);
		}
		function S(e) {
			var t = e.tag;
			if (t === 5 || t === 26 || t === 27 || t === 6) return e;
			for (e = e.child; e !== null;) {
				if (t = S(e), t !== null) return t;
				e = e.sibling;
			}
			return null;
		}
		function C(e) {
			var t = e.tag;
			if (t === 5 || t === 26 || t === 27 || t === 6) return e;
			for (e = e.child; e !== null;) {
				if (e.tag !== 4 && (t = C(e), t !== null)) return t;
				e = e.sibling;
			}
			return null;
		}
		function te(e) {
			return typeof e != "object" || !e ? null : (e = Hc && e[Hc] || e["@@iterator"], typeof e == "function" ? e : null);
		}
		function ne(e) {
			if (e == null) return null;
			if (typeof e == "function") return e.$$typeof === Uc ? null : e.displayName || e.name || null;
			if (typeof e == "string") return e;
			switch (e) {
				case jc: return "Fragment";
				case Nc: return "Profiler";
				case Mc: return "StrictMode";
				case Ic: return "Suspense";
				case Lc: return "SuspenseList";
				case Bc: return "Activity";
			}
			if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
				case Ac: return "Portal";
				case Fc: return e.displayName || "Context";
				case Pc: return (e._context.displayName || "Context") + ".Consumer";
				case G:
					var t = e.render;
					return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
				case Rc: return t = e.displayName || null, t === null ? ne(e.type) || "Memo" : t;
				case zc:
					t = e._payload, e = e._init;
					try {
						return ne(e(t));
					} catch {}
			}
			return null;
		}
		function w(e) {
			var t = e.type;
			switch (e.tag) {
				case 31: return "Activity";
				case 24: return "Cache";
				case 9: return (t._context.displayName || "Context") + ".Consumer";
				case 10: return t.displayName || "Context";
				case 18: return "DehydratedFragment";
				case 11: return e = t.render, e = e.displayName || e.name || "", t.displayName || (e === "" ? "ForwardRef" : "ForwardRef(" + e + ")");
				case 7: return "Fragment";
				case 26:
				case 27:
				case 5: return t;
				case 4: return "Portal";
				case 3: return "Root";
				case 6: return "Text";
				case 16: return ne(t);
				case 8: return t === Mc ? "StrictMode" : "Mode";
				case 22: return "Offscreen";
				case 12: return "Profiler";
				case 21: return "Scope";
				case 13: return "Suspense";
				case 19: return "SuspenseList";
				case 25: return "TracingMarker";
				case 1:
				case 0:
				case 14:
				case 15:
					if (typeof t == "function") return t.displayName || t.name || null;
					if (typeof t == "string") return t;
					break;
				case 29:
					if (t = e._debugInfo, t != null) {
						for (var n = t.length - 1; 0 <= n; n--) if (typeof t[n].name == "string") return t[n].name;
					}
					if (e.return !== null) return w(e.return);
			}
			return null;
		}
		function T(e) {
			return { current: e };
		}
		function E(e, t) {
			0 > vd ? console.error("Unexpected pop.") : (t !== _d[vd] && console.error("Unexpected Fiber popped."), e.current = gd[vd], gd[vd] = null, _d[vd] = null, vd--);
		}
		function D(e, t, n) {
			vd++, gd[vd] = e.current, _d[vd] = n, e.current = t;
		}
		function re(e) {
			return e >>>= 0, e === 0 ? 32 : 31 - (xd(e) / Sd | 0) | 0;
		}
		function O(e) {
			var t = e & 42;
			if (t !== 0) return t;
			switch (e & -e) {
				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: return e & 261888;
				case 262144:
				case 524288:
				case 1048576:
				case 2097152: return e & 3932160;
				case 4194304:
				case 8388608:
				case 16777216:
				case 33554432: return e & 62914560;
				case 67108864: return 67108864;
				case 134217728: return 134217728;
				case 268435456: return 268435456;
				case 536870912: return 536870912;
				case 1073741824: return 0;
				default: return console.error("Should have found matching lanes. This is a bug in React."), e;
			}
		}
		function k(e, t, n) {
			var r = e.pendingLanes;
			if (r === 0) return 0;
			var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
			e = e.warmLanes;
			var s = r & 134217727;
			return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = O(n))) : i = O(o) : i = O(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = O(n))) : i = O(o)) : i = O(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
		}
		function A(e, t) {
			return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
		}
		function ie(e, t) {
			switch (e) {
				case 1:
				case 2:
				case 4:
				case 8:
				case 64: return t + 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 t + 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 console.error("Should have found matching lanes. This is a bug in React."), -1;
			}
		}
		function j() {
			var e = Td;
			return Td <<= 1, !(Td & 62914560) && (Td = 4194304), e;
		}
		function ae(e) {
			for (var t = [], n = 0; 31 > n; n++) t.push(e);
			return t;
		}
		function oe(e, t) {
			e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
		}
		function se(e, t, n, r, i, a) {
			var o = e.pendingLanes;
			e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;
			var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
			for (n = o & ~n; 0 < n;) {
				var u = 31 - bd(n), d = 1 << u;
				s[u] = 0, c[u] = -1;
				var f = l[u];
				if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
					var p = f[u];
					p !== null && (p.lane &= -536870913);
				}
				n &= ~d;
			}
			r !== 0 && ce(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
		}
		function ce(e, t, n) {
			e.pendingLanes |= t, e.suspendedLanes &= ~t;
			var r = 31 - bd(t);
			e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
		}
		function le(e, t) {
			var n = e.entangledLanes |= t;
			for (e = e.entanglements; n;) {
				var r = 31 - bd(n), i = 1 << r;
				i & t | e[r] & t && (e[r] |= t), n &= ~i;
			}
		}
		function ue(e, t) {
			var n = t & -t;
			return n = n & 42 ? 1 : de(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
		}
		function de(e) {
			switch (e) {
				case 2:
					e = 1;
					break;
				case 8:
					e = 4;
					break;
				case 32:
					e = 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:
					e = 128;
					break;
				case 268435456:
					e = 134217728;
					break;
				default: e = 0;
			}
			return e;
		}
		function fe(e, t, n) {
			if (Bd) for (e = e.pendingUpdatersLaneMap; 0 < n;) {
				var r = 31 - bd(n), i = 1 << r;
				e[r].add(t), n &= ~i;
			}
		}
		function pe(e, t) {
			if (Bd) for (var n = e.pendingUpdatersLaneMap, r = e.memoizedUpdaters; 0 < t;) {
				var i = 31 - bd(t);
				e = 1 << i, i = n[i], 0 < i.size && (i.forEach(function(e) {
					var t = e.alternate;
					t !== null && r.has(t) || r.add(e);
				}), i.clear()), t &= ~e;
			}
		}
		function me(e) {
			return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
		}
		function he(e) {
			if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") return !1;
			var t = __REACT_DEVTOOLS_GLOBAL_HOOK__;
			if (t.isDisabled) return !0;
			if (!t.supportsFiber) return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"), !0;
			try {
				Ld = t.inject(e), Rd = t;
			} catch (e) {
				console.error("React instrumentation encountered an error: %o.", e);
			}
			return !!t.checkDCE;
		}
		function ge(e) {
			if (typeof Fd == "function" && Id(e), Rd && typeof Rd.setStrictMode == "function") try {
				Rd.setStrictMode(Ld, e);
			} catch (e) {
				zd || (zd = !0, console.error("React instrumentation encountered an error: %o", e));
			}
		}
		function _e(e, t) {
			return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
		}
		function ve(e) {
			for (var t = 0, n = 0; n < e.length; n++) {
				var r = e[n];
				if (typeof r == "object" && r) if (Wc(r) && r.length === 2 && typeof r[0] == "string") {
					if (t !== 0 && t !== 3) return 1;
					t = 3;
				} else return 1;
				else {
					if (typeof r == "function" || typeof r == "string" && 50 < r.length || t !== 0 && t !== 2) return 1;
					t = 2;
				}
			}
			return t;
		}
		function M(e, t, n, r) {
			for (var i in e) qd.call(e, i) && i[0] !== "_" && ye(i, e[i], t, n, r);
		}
		function ye(e, t, n, r, i) {
			switch (typeof t) {
				case "object": if (t === null) {
					t = "null";
					break;
				} else {
					if (t.$$typeof === kc) {
						var a = ne(t.type) || "…", o = t.key;
						t = t.props;
						var s = Object.keys(t), c = s.length;
						if (o == null && c === 0) {
							t = "<" + a + " />";
							break;
						}
						if (3 > r || c === 1 && s[0] === "children" && o == null) {
							t = "<" + a + " … />";
							break;
						}
						for (var l in n.push([i + "\xA0\xA0".repeat(r) + e, "<" + a]), o !== null && ye("key", o, n, r + 1, i), e = !1, t) l === "children" ? t.children != null && (!Wc(t.children) || 0 < t.children.length) && (e = !0) : qd.call(t, l) && l[0] !== "_" && ye(l, t[l], n, r + 1, i);
						n.push(["", e ? ">…</" + a + ">" : "/>"]);
						return;
					}
					if (a = Object.prototype.toString.call(t), a = a.slice(8, a.length - 1), a === "Array") {
						if (l = ve(t), l === 2 || l === 0) {
							t = JSON.stringify(t);
							break;
						} else if (l === 3) {
							for (n.push([i + "\xA0\xA0".repeat(r) + e, ""]), e = 0; e < t.length; e++) a = t[e], ye(a[0], a[1], n, r + 1, i);
							return;
						}
					}
					if (a === "Promise") {
						if (t.status === "fulfilled") {
							if (a = n.length, ye(e, t.value, n, r, i), n.length > a) {
								n = n[a], n[1] = "Promise<" + (n[1] || "Object") + ">";
								return;
							}
						} else if (t.status === "rejected" && (a = n.length, ye(e, t.reason, n, r, i), n.length > a)) {
							n = n[a], n[1] = "Rejected Promise<" + n[1] + ">";
							return;
						}
						n.push(["\xA0\xA0".repeat(r) + e, "Promise"]);
						return;
					}
					a === "Object" && (l = Object.getPrototypeOf(t)) && typeof l.constructor == "function" && (a = l.constructor.name), n.push([i + "\xA0\xA0".repeat(r) + e, a === "Object" ? 3 > r ? "" : "…" : a]), 3 > r && M(t, n, r + 1, i);
					return;
				}
				case "function":
					t = t.name === "" ? "() => {}" : t.name + "() {}";
					break;
				case "string":
					t = t === "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects." ? "…" : JSON.stringify(t);
					break;
				case "undefined":
					t = "undefined";
					break;
				case "boolean":
					t = t ? "true" : "false";
					break;
				default: t = String(t);
			}
			n.push([i + "\xA0\xA0".repeat(r) + e, t]);
		}
		function be(e, t, n, r) {
			var i = !0;
			for (o in e) o in t || (n.push(["–\xA0" + "\xA0\xA0".repeat(r) + o, "…"]), i = !1);
			for (var a in t) if (a in e) {
				var o = e[a], s = t[a];
				if (o !== s) {
					if (r === 0 && a === "children") i = "\xA0\xA0".repeat(r) + a, n.push(["–\xA0" + i, "…"], ["+\xA0" + i, "…"]);
					else {
						if (!(3 <= r)) {
							if (typeof o == "object" && typeof s == "object" && o !== null && s !== null && o.$$typeof === s.$$typeof) if (s.$$typeof === kc) {
								if (o.type === s.type && o.key === s.key) {
									o = ne(s.type) || "…", i = "\xA0\xA0".repeat(r) + a, o = "<" + o + " … />", n.push(["–\xA0" + i, o], ["+\xA0" + i, o]), i = !1;
									continue;
								}
							} else {
								var c = Object.prototype.toString.call(o), l = Object.prototype.toString.call(s);
								if (c === l && (l === "[object Object]" || l === "[object Array]")) {
									c = [" \xA0" + "\xA0\xA0".repeat(r) + a, l === "[object Array]" ? "Array" : ""], n.push(c), l = n.length, be(o, s, n, r + 1) ? l === n.length && (c[1] = "Referentially unequal but deeply equal objects. Consider memoization.") : i = !1;
									continue;
								}
							}
							else if (typeof o == "function" && typeof s == "function" && o.name === s.name && o.length === s.length && (c = Function.prototype.toString.call(o), l = Function.prototype.toString.call(s), c === l)) {
								o = s.name === "" ? "() => {}" : s.name + "() {}", n.push([" \xA0" + "\xA0\xA0".repeat(r) + a, o + " Referentially unequal function closure. Consider memoization."]);
								continue;
							}
						}
						ye(a, o, n, r, "–\xA0"), ye(a, s, n, r, "+\xA0");
					}
					i = !1;
				}
			} else n.push(["+\xA0" + "\xA0\xA0".repeat(r) + a, "…"]), i = !1;
			return i;
		}
		function xe(e) {
			Yd = e & 63 ? "Blocking" : e & 64 ? "Gesture" : e & 4194176 ? "Transition" : e & 62914560 ? "Suspense" : e & 2080374784 ? "Idle" : "Other";
		}
		function Se(e, t, n, r) {
			Jd && (Qd.start = t, Qd.end = n, Zd.color = "warning", Zd.tooltipText = r, Zd.properties = null, (e = e._debugTask) ? e.run(performance.measure.bind(performance, r, Qd)) : performance.measure(r, Qd));
		}
		function N(e, t, n) {
			Se(e, t, n, "Reconnect");
		}
		function Ce(e, t, n, r, i) {
			var a = w(e);
			if (a !== null && Jd) {
				var o = e.alternate, s = e.actualDuration;
				if (o === null || o.child !== e.child) for (var c = e.child; c !== null; c = c.sibling) s -= c.actualDuration;
				r = .5 > s ? r ? "tertiary-light" : "primary-light" : 10 > s ? r ? "tertiary" : "primary" : 100 > s ? r ? "tertiary-dark" : "primary-dark" : "error";
				var l = e.memoizedProps;
				s = e._debugTask, l !== null && o !== null && o.memoizedProps !== l ? (c = [$d], l = be(o.memoizedProps, l, c, 0), 1 < c.length && (l && !Xd && (o.lanes & i) === 0 && 100 < e.actualDuration ? (Xd = !0, c[0] = ef, Zd.color = "warning", Zd.tooltipText = "This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.") : (Zd.color = r, Zd.tooltipText = a), Zd.properties = c, Qd.start = t, Qd.end = n, s == null ? performance.measure("​" + a, Qd) : s.run(performance.measure.bind(performance, "​" + a, Qd)))) : s == null ? console.timeStamp(a, t, n, "Components ⚛", void 0, r) : s.run(console.timeStamp.bind(console, a, t, n, "Components ⚛", void 0, r));
			}
		}
		function we(e, t, n, r) {
			if (Jd) {
				var i = w(e);
				if (i !== null) {
					for (var a = null, o = [], s = 0; s < r.length; s++) {
						var c = r[s];
						a == null && c.source !== null && (a = c.source._debugTask), c = c.value, o.push(["Error", typeof c == "object" && c && typeof c.message == "string" ? String(c.message) : String(c)]);
					}
					e.key !== null && ye("key", e.key, o, 0, ""), e.memoizedProps !== null && M(e.memoizedProps, o, 0, ""), a ??= e._debugTask, e = {
						start: t,
						end: n,
						detail: { devtools: {
							color: "error",
							track: "Components ⚛",
							tooltipText: e.tag === 13 ? "Hydration failed" : "Error boundary caught an error",
							properties: o
						} }
					}, a ? a.run(performance.measure.bind(performance, "​" + i, e)) : performance.measure("​" + i, e);
				}
			}
		}
		function Te(e, t, n, r, i) {
			if (i !== null) {
				if (Jd) {
					var a = w(e);
					if (a !== null) {
						r = [];
						for (var o = 0; o < i.length; o++) {
							var s = i[o].value;
							r.push(["Error", typeof s == "object" && s && typeof s.message == "string" ? String(s.message) : String(s)]);
						}
						e.key !== null && ye("key", e.key, r, 0, ""), e.memoizedProps !== null && M(e.memoizedProps, r, 0, ""), t = {
							start: t,
							end: n,
							detail: { devtools: {
								color: "error",
								track: "Components ⚛",
								tooltipText: "A lifecycle or effect errored",
								properties: r
							} }
						}, (e = e._debugTask) ? e.run(performance.measure.bind(performance, "​" + a, t)) : performance.measure("​" + a, t);
					}
				}
			} else a = w(e), a !== null && Jd && (i = 1 > r ? "secondary-light" : 100 > r ? "secondary" : 500 > r ? "secondary-dark" : "error", (e = e._debugTask) ? e.run(console.timeStamp.bind(console, a, t, n, "Components ⚛", void 0, i)) : console.timeStamp(a, t, n, "Components ⚛", void 0, i));
		}
		function Ee(e, t, n, r) {
			if (Jd && !(t <= e)) {
				var i = (n & 738197653) === n ? "tertiary-dark" : "primary-dark";
				n = (n & 536870912) === n ? "Prepared" : (n & 201326741) === n ? "Hydrated" : "Render", r ? r.run(console.timeStamp.bind(console, n, e, t, Yd, "Scheduler ⚛", i)) : console.timeStamp(n, e, t, Yd, "Scheduler ⚛", i);
			}
		}
		function De(e, t, n, r) {
			!Jd || t <= e || (n = (n & 738197653) === n ? "tertiary-dark" : "primary-dark", r ? r.run(console.timeStamp.bind(console, "Prewarm", e, t, Yd, "Scheduler ⚛", n)) : console.timeStamp("Prewarm", e, t, Yd, "Scheduler ⚛", n));
		}
		function Oe(e, t, n, r) {
			!Jd || t <= e || (n = (n & 738197653) === n ? "tertiary-dark" : "primary-dark", r ? r.run(console.timeStamp.bind(console, "Suspended", e, t, Yd, "Scheduler ⚛", n)) : console.timeStamp("Suspended", e, t, Yd, "Scheduler ⚛", n));
		}
		function ke(e, t, n, r, i, a) {
			if (Jd && !(t <= e)) {
				n = [];
				for (var o = 0; o < r.length; o++) {
					var s = r[o].value;
					n.push(["Recoverable Error", typeof s == "object" && s && typeof s.message == "string" ? String(s.message) : String(s)]);
				}
				e = {
					start: e,
					end: t,
					detail: { devtools: {
						color: "primary-dark",
						track: Yd,
						trackGroup: "Scheduler ⚛",
						tooltipText: i ? "Hydration Failed" : "Recovered after Error",
						properties: n
					} }
				}, a ? a.run(performance.measure.bind(performance, "Recovered", e)) : performance.measure("Recovered", e);
			}
		}
		function Ae(e, t, n, r) {
			!Jd || t <= e || (r ? r.run(console.timeStamp.bind(console, "Errored", e, t, Yd, "Scheduler ⚛", "error")) : console.timeStamp("Errored", e, t, Yd, "Scheduler ⚛", "error"));
		}
		function je(e, t, n, r) {
			!Jd || t <= e || (r ? r.run(console.timeStamp.bind(console, n, e, t, Yd, "Scheduler ⚛", "secondary-light")) : console.timeStamp(n, e, t, Yd, "Scheduler ⚛", "secondary-light"));
		}
		function Me(e, t, n, r, i) {
			if (Jd && !(t <= e)) {
				for (var a = [], o = 0; o < n.length; o++) {
					var s = n[o].value;
					a.push(["Error", typeof s == "object" && s && typeof s.message == "string" ? String(s.message) : String(s)]);
				}
				e = {
					start: e,
					end: t,
					detail: { devtools: {
						color: "error",
						track: Yd,
						trackGroup: "Scheduler ⚛",
						tooltipText: r ? "Remaining Effects Errored" : "Commit Errored",
						properties: a
					} }
				}, i ? i.run(performance.measure.bind(performance, "Errored", e)) : performance.measure("Errored", e);
			}
		}
		function P() {}
		function Ne() {
			if (tf === 0) {
				nf = console.log, rf = console.info, af = console.warn, of = console.error, sf = console.group, cf = console.groupCollapsed, lf = console.groupEnd;
				var e = {
					configurable: !0,
					enumerable: !0,
					value: P,
					writable: !0
				};
				Object.defineProperties(console, {
					info: e,
					log: e,
					warn: e,
					error: e,
					group: e,
					groupCollapsed: e,
					groupEnd: e
				});
			}
			tf++;
		}
		function Pe() {
			if (tf--, tf === 0) {
				var e = {
					configurable: !0,
					enumerable: !0,
					writable: !0
				};
				Object.defineProperties(console, {
					log: Dc({}, e, { value: nf }),
					info: Dc({}, e, { value: rf }),
					warn: Dc({}, e, { value: af }),
					error: Dc({}, e, { value: of }),
					group: Dc({}, e, { value: sf }),
					groupCollapsed: Dc({}, e, { value: cf }),
					groupEnd: Dc({}, e, { value: lf })
				});
			}
			0 > tf && console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
		}
		function Fe(e) {
			var t = Error.prepareStackTrace;
			if (Error.prepareStackTrace = void 0, e = e.stack, Error.prepareStackTrace = t, e.startsWith("Error: react-stack-top-frame\n") && (e = e.slice(29)), t = e.indexOf("\n"), t !== -1 && (e = e.slice(t + 1)), t = e.indexOf("react_stack_bottom_frame"), t !== -1 && (t = e.lastIndexOf("\n", t)), t !== -1) e = e.slice(0, t);
			else return "";
			return e;
		}
		function Ie(e) {
			if (uf === void 0) try {
				throw Error();
			} catch (e) {
				var t = e.stack.trim().match(/\n( *(at )?)/);
				uf = t && t[1] || "", df = -1 < e.stack.indexOf("\n    at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
			}
			return "\n" + uf + e + df;
		}
		function Le(e, t) {
			if (!e || ff) return "";
			var n = pf.get(e);
			if (n !== void 0) return n;
			ff = !0, n = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
			var r = null;
			r = K.H, K.H = null, Ne();
			try {
				var i = { DetermineComponentFrameRoot: function() {
					try {
						if (t) {
							var n = function() {
								throw Error();
							};
							if (Object.defineProperty(n.prototype, "props", { set: function() {
								throw Error();
							} }), typeof Reflect == "object" && Reflect.construct) {
								try {
									Reflect.construct(n, []);
								} catch (e) {
									var r = e;
								}
								Reflect.construct(e, [], n);
							} else {
								try {
									n.call();
								} catch (e) {
									r = e;
								}
								e.call(n.prototype);
							}
						} else {
							try {
								throw Error();
							} catch (e) {
								r = e;
							}
							(n = e()) && typeof n.catch == "function" && n.catch(function() {});
						}
					} catch (e) {
						if (e && r && typeof e.stack == "string") return [e.stack, r.stack];
					}
					return [null, null];
				} };
				i.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
				var a = Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot, "name");
				a && a.configurable && Object.defineProperty(i.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });
				var o = i.DetermineComponentFrameRoot(), s = o[0], c = o[1];
				if (s && c) {
					var l = s.split("\n"), u = c.split("\n");
					for (o = a = 0; a < l.length && !l[a].includes("DetermineComponentFrameRoot");) a++;
					for (; o < u.length && !u[o].includes("DetermineComponentFrameRoot");) o++;
					if (a === l.length || o === u.length) for (a = l.length - 1, o = u.length - 1; 1 <= a && 0 <= o && l[a] !== u[o];) o--;
					for (; 1 <= a && 0 <= o; a--, o--) if (l[a] !== u[o]) {
						if (a !== 1 || o !== 1) do
							if (a--, o--, 0 > o || l[a] !== u[o]) {
								var d = "\n" + l[a].replace(" at new ", " at ");
								return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && pf.set(e, d), d;
							}
						while (1 <= a && 0 <= o);
						break;
					}
				}
			} finally {
				ff = !1, K.H = r, Pe(), Error.prepareStackTrace = n;
			}
			return l = (l = e ? e.displayName || e.name : "") ? Ie(l) : "", typeof e == "function" && pf.set(e, l), l;
		}
		function Re(e, t) {
			switch (e.tag) {
				case 26:
				case 27:
				case 5: return Ie(e.type);
				case 16: return Ie("Lazy");
				case 13: return e.child !== t && t !== null ? Ie("Suspense Fallback") : Ie("Suspense");
				case 19: return Ie("SuspenseList");
				case 0:
				case 15: return Le(e.type, !1);
				case 11: return Le(e.type.render, !1);
				case 1: return Le(e.type, !0);
				case 31: return Ie("Activity");
				default: return "";
			}
		}
		function ze(e) {
			try {
				var t = "", n = null;
				do {
					t += Re(e, n);
					var r = e._debugInfo;
					if (r) for (var i = r.length - 1; 0 <= i; i--) {
						var a = r[i];
						if (typeof a.name == "string") {
							var o = t;
							a: {
								var s = a.name, c = a.env, l = a.debugLocation;
								if (l != null) {
									var u = Fe(l), d = u.lastIndexOf("\n"), f = d === -1 ? u : u.slice(d + 1);
									if (f.indexOf(s) !== -1) {
										var p = "\n" + f;
										break a;
									}
								}
								p = Ie(s + (c ? " [" + c + "]" : ""));
							}
							t = o + p;
						}
					}
					n = e, e = e.return;
				} while (e);
				return t;
			} catch (e) {
				return "\nError generating stack: " + e.message + "\n" + e.stack;
			}
		}
		function Be(e) {
			return (e = e ? e.displayName || e.name : "") ? Ie(e) : "";
		}
		function Ve(e, t) {
			if (typeof e == "object" && e) {
				var n = mf.get(e);
				return n === void 0 ? (t = {
					value: e,
					source: t,
					stack: ze(t)
				}, mf.set(e, t), t) : n;
			}
			return {
				value: e,
				source: t,
				stack: ze(t)
			};
		}
		function He(e, t) {
			Je(), hf[gf++] = vf, hf[gf++] = _f, _f = e, vf = t;
		}
		function Ue(e, t, n) {
			Je(), yf[bf++] = Sf, yf[bf++] = Cf, yf[bf++] = xf, xf = e;
			var r = Sf;
			e = Cf;
			var i = 32 - bd(r) - 1;
			r &= ~(1 << i), n += 1;
			var a = 32 - bd(t) + i;
			if (30 < a) {
				var o = i - i % 5;
				a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Sf = 1 << 32 - bd(t) + i | n << i | r, Cf = a + e;
			} else Sf = 1 << a | n << i | r, Cf = e;
		}
		function We(e) {
			Je(), e.return !== null && (He(e, 1), Ue(e, 1, 0));
		}
		function Ge(e) {
			for (; e === _f;) _f = hf[--gf], hf[gf] = null, vf = hf[--gf], hf[gf] = null;
			for (; e === xf;) xf = yf[--bf], yf[bf] = null, Cf = yf[--bf], yf[bf] = null, Sf = yf[--bf], yf[bf] = null;
		}
		function Ke() {
			return Je(), xf === null ? null : {
				id: Sf,
				overflow: Cf
			};
		}
		function qe(e, t) {
			Je(), yf[bf++] = Sf, yf[bf++] = Cf, yf[bf++] = xf, Sf = t.id, Cf = t.overflow, xf = e;
		}
		function Je() {
			Nf || console.error("Expected to be hydrating. This is a bug in React. Please file an issue.");
		}
		function Ye(e) {
			return e === null && console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."), e;
		}
		function Xe(e, t) {
			D(Ef, t, e), D(Tf, e, e), D(wf, null, e), t = Yc(t), E(wf, e), D(wf, t, e);
		}
		function Ze(e) {
			E(wf, e), E(Tf, e), E(Ef, e);
		}
		function Qe() {
			return Ye(wf.current);
		}
		function $e(e) {
			e.memoizedState !== null && D(Df, e, e);
			var t = Ye(wf.current), n = Xc(t, e.type);
			t !== n && (D(Tf, e, e), D(wf, n, e));
		}
		function F(e) {
			Tf.current === e && (E(wf, e), E(Tf, e)), Df.current === e && (E(Df, e), sl ? Al._currentValue = kl : Al._currentValue2 = kl);
		}
		function et(e, t) {
			return e.serverProps === void 0 && e.serverTail.length === 0 && e.children.length === 1 && 3 < e.distanceFromLeaf && e.distanceFromLeaf > 15 - t ? et(e.children[0], t) : e;
		}
		function tt(e) {
			return "  " + "  ".repeat(e);
		}
		function nt(e) {
			return "+ " + "  ".repeat(e);
		}
		function rt(e) {
			return "- " + "  ".repeat(e);
		}
		function it(e) {
			switch (e.tag) {
				case 26:
				case 27:
				case 5: return e.type;
				case 16: return "Lazy";
				case 31: return "Activity";
				case 13: return "Suspense";
				case 19: return "SuspenseList";
				case 0:
				case 15: return e = e.type, e.displayName || e.name || null;
				case 11: return e = e.type.render, e.displayName || e.name || null;
				case 1: return e = e.type, e.displayName || e.name || null;
				default: return null;
			}
		}
		function at(e, t) {
			return Of.test(e) ? (e = JSON.stringify(e), e.length > t - 2 ? 8 > t ? "{\"...\"}" : "{" + e.slice(0, t - 7) + "...\"}" : "{" + e + "}") : e.length > t ? 5 > t ? "{\"...\"}" : e.slice(0, t - 3) + "..." : e;
		}
		function ot(e, t, n) {
			var r = 120 - 2 * n;
			if (t === null) return nt(n) + at(e, r) + "\n";
			if (typeof t == "string") {
				for (var i = 0; i < t.length && i < e.length && t.charCodeAt(i) === e.charCodeAt(i); i++);
				return i > r - 8 && 10 < i && (e = "..." + e.slice(i - 8), t = "..." + t.slice(i - 8)), nt(n) + at(e, r) + "\n" + rt(n) + at(t, r) + "\n";
			}
			return tt(n) + at(e, r) + "\n";
		}
		function st(e) {
			return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/, function(e, t) {
				return t;
			});
		}
		function ct(e, t) {
			switch (typeof e) {
				case "string": return e = JSON.stringify(e), e.length > t ? 5 > t ? "\"...\"" : e.slice(0, t - 4) + "...\"" : e;
				case "object":
					if (e === null) return "null";
					if (Wc(e)) return "[...]";
					if (e.$$typeof === kc) return (t = ne(e.type)) ? "<" + t + ">" : "<...>";
					var n = st(e);
					if (n === "Object") {
						for (var r in n = "", t -= 2, e) if (e.hasOwnProperty(r)) {
							var i = JSON.stringify(r);
							if (i !== "\"" + r + "\"" && (r = i), t -= r.length - 2, i = ct(e[r], 15 > t ? t : 15), t -= i.length, 0 > t) {
								n += n === "" ? "..." : ", ...";
								break;
							}
							n += (n === "" ? "" : ",") + r + ":" + i;
						}
						return "{" + n + "}";
					}
					return n;
				case "function": return (t = e.displayName || e.name) ? "function " + t : "function";
				default: return String(e);
			}
		}
		function lt(e, t) {
			return typeof e != "string" || Of.test(e) ? "{" + ct(e, t - 2) + "}" : e.length > t - 2 ? 5 > t ? "\"...\"" : "\"" + e.slice(0, t - 5) + "...\"" : "\"" + e + "\"";
		}
		function ut(e, t, n) {
			var r = 120 - n.length - e.length, i = [], a;
			for (a in t) if (t.hasOwnProperty(a) && a !== "children") {
				var o = lt(t[a], 120 - n.length - a.length - 1);
				r -= a.length + o.length + 2, i.push(a + "=" + o);
			}
			return i.length === 0 ? n + "<" + e + ">\n" : 0 < r ? n + "<" + e + " " + i.join(" ") + ">\n" : n + "<" + e + "\n" + n + "  " + i.join("\n" + n + "  ") + "\n" + n + ">\n";
		}
		function dt(e, t, n) {
			var r = "", i = Dc({}, t), a;
			for (a in e) if (e.hasOwnProperty(a)) {
				delete i[a];
				var o = 120 - 2 * n - a.length - 2, s = ct(e[a], o);
				t.hasOwnProperty(a) ? (o = ct(t[a], o), r += nt(n) + a + ": " + s + "\n", r += rt(n) + a + ": " + o + "\n") : r += nt(n) + a + ": " + s + "\n";
			}
			for (var c in i) i.hasOwnProperty(c) && (e = ct(i[c], 120 - 2 * n - c.length - 2), r += rt(n) + c + ": " + e + "\n");
			return r;
		}
		function ft(e, t, n, r) {
			var i = "", a = /* @__PURE__ */ new Map();
			for (l in n) n.hasOwnProperty(l) && a.set(l.toLowerCase(), l);
			if (a.size === 1 && a.has("children")) i += ut(e, t, tt(r));
			else {
				for (var o in t) if (t.hasOwnProperty(o) && o !== "children") {
					var s = 120 - 2 * (r + 1) - o.length - 1, c = a.get(o.toLowerCase());
					if (c !== void 0) {
						a.delete(o.toLowerCase());
						var l = t[o];
						c = n[c];
						var u = lt(l, s);
						s = lt(c, s), typeof l == "object" && l && typeof c == "object" && c && st(l) === "Object" && st(c) === "Object" && (2 < Object.keys(l).length || 2 < Object.keys(c).length || -1 < u.indexOf("...") || -1 < s.indexOf("...")) ? i += tt(r + 1) + o + "={{\n" + dt(l, c, r + 2) + tt(r + 1) + "}}\n" : (i += nt(r + 1) + o + "=" + u + "\n", i += rt(r + 1) + o + "=" + s + "\n");
					} else i += tt(r + 1) + o + "=" + lt(t[o], s) + "\n";
				}
				a.forEach(function(e) {
					if (e !== "children") {
						var t = 120 - 2 * (r + 1) - e.length - 1;
						i += rt(r + 1) + e + "=" + lt(n[e], t) + "\n";
					}
				}), i = i === "" ? tt(r) + "<" + e + ">\n" : tt(r) + "<" + e + "\n" + i + tt(r) + ">\n";
			}
			return e = n.children, t = t.children, typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? (a = "", (typeof t == "string" || typeof t == "number" || typeof t == "bigint") && (a = "" + t), i += ot(a, "" + e, r + 1)) : (typeof t == "string" || typeof t == "number" || typeof t == "bigint") && (i = e == null ? i + ot("" + t, null, r + 1) : i + ot("" + t, void 0, r + 1)), i;
		}
		function pt(e, t) {
			var n = it(e);
			if (n === null) {
				for (n = "", e = e.child; e;) n += pt(e, t), e = e.sibling;
				return n;
			}
			return tt(t) + "<" + n + ">\n";
		}
		function mt(e, t) {
			var n = et(e, t);
			if (n !== e && (e.children.length !== 1 || e.children[0] !== n)) return tt(t) + "...\n" + mt(n, t + 1);
			n = "";
			var r = e.fiber._debugInfo;
			if (r) for (var i = 0; i < r.length; i++) {
				var a = r[i].name;
				typeof a == "string" && (n += tt(t) + "<" + a + ">\n", t++);
			}
			if (r = "", i = e.fiber.pendingProps, e.fiber.tag === 6) r = ot(i, e.serverProps, t), t++;
			else if (a = it(e.fiber), a !== null) if (e.serverProps === void 0) {
				r = t;
				var o = 120 - 2 * r - a.length - 2, s = "";
				for (l in i) if (i.hasOwnProperty(l) && l !== "children") {
					var c = lt(i[l], 15);
					if (o -= l.length + c.length + 2, 0 > o) {
						s += " ...";
						break;
					}
					s += " " + l + "=" + c;
				}
				r = tt(r) + "<" + a + s + ">\n", t++;
			} else e.serverProps === null ? (r = ut(a, i, nt(t)), t++) : typeof e.serverProps == "string" ? console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React.") : (r = ft(a, i, e.serverProps, t), t++);
			var l = "";
			for (i = e.fiber.child, a = 0; i && a < e.children.length;) o = e.children[a], o.fiber === i ? (l += mt(o, t), a++) : l += pt(i, t), i = i.sibling;
			for (i && 0 < e.children.length && (l += tt(t) + "...\n"), i = e.serverTail, e.serverProps === null && t--, e = 0; e < i.length; e++) a = i[e], l = typeof a == "string" ? l + (rt(t) + at(a, 120 - 2 * t) + "\n") : l + ut(a.type, a.props, rt(t));
			return n + r + l;
		}
		function ht(e) {
			try {
				return "\n\n" + mt(e, 0);
			} catch {
				return "";
			}
		}
		function gt() {
			if (kf === null) return "";
			var e = kf;
			try {
				var t = "";
				switch (e.tag === 6 && (e = e.return), e.tag) {
					case 26:
					case 27:
					case 5:
						t += Ie(e.type);
						break;
					case 13:
						t += Ie("Suspense");
						break;
					case 19:
						t += Ie("SuspenseList");
						break;
					case 31:
						t += Ie("Activity");
						break;
					case 30:
					case 0:
					case 15:
					case 1:
						e._debugOwner || t !== "" || (t += Be(e.type));
						break;
					case 11: e._debugOwner || t !== "" || (t += Be(e.type.render));
				}
				for (; e;) if (typeof e.tag == "number") {
					var n = e;
					e = n._debugOwner;
					var r = n._debugStack;
					if (e && r) {
						var i = Fe(r);
						i !== "" && (t += "\n" + i);
					}
				} else if (e.debugStack != null) {
					var a = e.debugStack;
					(e = e.owner) && a && (t += "\n" + Fe(a));
				} else break;
				var o = t;
			} catch (e) {
				o = "\nError generating stack: " + e.message + "\n" + e.stack;
			}
			return o;
		}
		function I(e, t, n, r, i, a, o) {
			var s = kf;
			_t(e);
			try {
				return e !== null && e._debugTask ? e._debugTask.run(t.bind(null, n, r, i, a, o)) : t(n, r, i, a, o);
			} finally {
				_t(s);
			}
			throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.");
		}
		function _t(e) {
			K.getCurrentStack = e === null ? null : gt, Af = !1, kf = e;
		}
		function vt(e, t) {
			if (e.return === null) {
				if (Ff === null) Ff = {
					fiber: e,
					children: [],
					serverProps: void 0,
					serverTail: [],
					distanceFromLeaf: t
				};
				else {
					if (Ff.fiber !== e) throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");
					Ff.distanceFromLeaf > t && (Ff.distanceFromLeaf = t);
				}
				return Ff;
			}
			var n = vt(e.return, t + 1).children;
			return 0 < n.length && n[n.length - 1].fiber === e ? (n = n[n.length - 1], n.distanceFromLeaf > t && (n.distanceFromLeaf = t), n) : (t = {
				fiber: e,
				children: [],
				serverProps: void 0,
				serverTail: [],
				distanceFromLeaf: t
			}, n.push(t), t);
		}
		function yt() {
			Nf && console.error("We should not be hydrating here. This is a bug in React. Please file a bug.");
		}
		function bt(e, t) {
			Pf || (e = vt(e, 0), e.serverProps = null, t !== null && (t = qu(t), e.serverTail.push(t)));
		}
		function L(e) {
			var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : !1, n = "", r = Ff;
			throw r !== null && (Ff = null, n = ht(r)), Et(Ve(Error("Hydration failed because the server rendered " + (t ? "text" : "HTML") + " didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" + n), e)), Rf;
		}
		function xt(e, t) {
			if (!ul) throw Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");
			Ou(e.stateNode, e.type, e.memoizedProps, t, e) || L(e, !0);
		}
		function St(e) {
			for (jf = e.return; jf;) switch (jf.tag) {
				case 5:
				case 31:
				case 13:
					Lf = !1;
					return;
				case 27:
				case 3:
					Lf = !0;
					return;
				default: jf = jf.return;
			}
		}
		function R(e) {
			if (!ul || e !== jf) return !1;
			if (!Nf) return St(e), Nf = !0, !1;
			var t = e.tag;
			if (ud ? t !== 3 && t !== 27 && (t !== 5 || Wu(e.type) && !nl(e.type, e.memoizedProps)) && Mf && (Ct(e), L(e)) : t !== 3 && (t !== 5 || Wu(e.type) && !nl(e.type, e.memoizedProps)) && Mf && (Ct(e), L(e)), St(e), t === 13) {
				if (!ul) throw Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");
				if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
				Mf = Nu(e);
			} else if (t === 31) {
				if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
				Mf = Mu(e);
			} else Mf = ud && t === 27 ? vu(e.type, Mf) : jf ? _u(e.stateNode) : null;
			return !0;
		}
		function Ct(e) {
			for (var t = Mf; t;) {
				var n = vt(e, 0), r = qu(t);
				n.serverTail.push(r), t = r.type === "Suspense" ? Nu(t) : _u(t);
			}
		}
		function wt() {
			ul && (Mf = jf = null, Pf = Nf = !1);
		}
		function Tt() {
			var e = If;
			return e !== null && (u_ === null ? u_ = e : u_.push.apply(u_, e), If = null), e;
		}
		function Et(e) {
			If === null ? If = [e] : If.push(e);
		}
		function Dt() {
			var e = Ff;
			if (e !== null) {
				Ff = null;
				for (var t = ht(e); 0 < e.children.length;) e = e.children[0];
				I(e.fiber, function() {
					console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s", "https://react.dev/link/hydration-mismatch", t);
				});
			}
		}
		function Ot() {
			Wf = Uf = null, Gf = !1;
		}
		function kt(e, t, n) {
			sl ? (D(Bf, t._currentValue, e), t._currentValue = n, D(Vf, t._currentRenderer, e), t._currentRenderer !== void 0 && t._currentRenderer !== null && t._currentRenderer !== Hf && console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), t._currentRenderer = Hf) : (D(Bf, t._currentValue2, e), t._currentValue2 = n, D(q, t._currentRenderer2, e), t._currentRenderer2 !== void 0 && t._currentRenderer2 !== null && t._currentRenderer2 !== Hf && console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), t._currentRenderer2 = Hf);
		}
		function At(e, t) {
			var n = Bf.current;
			sl ? (e._currentValue = n, n = Vf.current, E(Vf, t), e._currentRenderer = n) : (e._currentValue2 = n, n = q.current, E(q, t), e._currentRenderer2 = n), E(Bf, t);
		}
		function jt(e, t, n) {
			for (; e !== null;) {
				var r = e.alternate;
				if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
				e = e.return;
			}
			e !== n && console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.");
		}
		function z(e, t, n, r) {
			var i = e.child;
			for (i !== null && (i.return = e); i !== null;) {
				var a = i.dependencies;
				if (a !== null) {
					var o = i.child;
					a = a.firstContext;
					a: for (; a !== null;) {
						var s = a;
						a = i;
						for (var c = 0; c < t.length; c++) if (s.context === t[c]) {
							a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), jt(a.return, n, e), r || (o = null);
							break a;
						}
						a = s.next;
					}
				} else if (i.tag === 18) {
					if (o = i.return, o === null) throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");
					o.lanes |= n, a = o.alternate, a !== null && (a.lanes |= n), jt(o, n, e), o = null;
				} else o = i.child;
				if (o !== null) o.return = i;
				else for (o = i; o !== null;) {
					if (o === e) {
						o = null;
						break;
					}
					if (i = o.sibling, i !== null) {
						i.return = o.return, o = i;
						break;
					}
					o = o.return;
				}
				i = o;
			}
		}
		function Mt(e, t, n, r) {
			e = null;
			for (var i = t, a = !1; i !== null;) {
				if (!a) {
					if (i.flags & 524288) a = !0;
					else if (i.flags & 262144) break;
				}
				if (i.tag === 10) {
					var o = i.alternate;
					if (o === null) throw Error("Should have a current fiber. This is a bug in React.");
					if (o = o.memoizedProps, o !== null) {
						var s = i.type;
						Gd(i.pendingProps.value, o.value) || (e === null ? e = [s] : e.push(s));
					}
				} else if (i === Df.current) {
					if (o = i.alternate, o === null) throw Error("Should have a current fiber. This is a bug in React.");
					o.memoizedState.memoizedState !== i.memoizedState.memoizedState && (e === null ? e = [Al] : e.push(Al));
				}
				i = i.return;
			}
			e !== null && z(t, e, n, r), t.flags |= 262144;
		}
		function Nt(e) {
			for (e = e.firstContext; e !== null;) {
				var t = e.context;
				if (!Gd(sl ? t._currentValue : t._currentValue2, e.memoizedValue)) return !0;
				e = e.next;
			}
			return !1;
		}
		function Pt(e) {
			Uf = e, Wf = null, e = e.dependencies, e !== null && (e.firstContext = null);
		}
		function Ft(e) {
			return Gf && console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."), Lt(Uf, e);
		}
		function It(e, t) {
			return Uf === null && Pt(e), Lt(e, t);
		}
		function Lt(e, t) {
			var n = sl ? t._currentValue : t._currentValue2;
			if (t = {
				context: t,
				memoizedValue: n,
				next: null
			}, Wf === null) {
				if (e === null) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
				Wf = t, e.dependencies = {
					lanes: 0,
					firstContext: t,
					_debugThenableState: null
				}, e.flags |= 524288;
			} else Wf = Wf.next = t;
			return n;
		}
		function Rt() {
			return {
				controller: new Kf(),
				data: /* @__PURE__ */ new Map(),
				refCount: 0
			};
		}
		function zt(e) {
			e.controller.signal.aborted && console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."), e.refCount++;
		}
		function Bt(e) {
			e.refCount--, 0 > e.refCount && console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."), e.refCount === 0 && qf(Jf, function() {
				e.controller.abort();
			});
		}
		function Vt(e, t, n) {
			e & 127 ? 0 > up && (up = Xf(), dp = Zf(t), pp = t, n != null && (mp = w(n)), fs() && (cp = !0, fp = 1), e = vl(), t = _l(), e !== _p || t !== gp ? _p = -1.1 : t !== null && (fp = 1), hp = e, gp = t) : e & 4194048 && 0 > xp && (xp = Xf(), Cp = Zf(t), wp = t, n != null && (Tp = w(n)), 0 > bp) && (e = vl(), t = _l(), (e !== Op || t !== Dp) && (Op = -1.1), Ep = e, Dp = t);
		}
		function Ht(e) {
			if (0 > up) {
				up = Xf(), dp = e._debugTask == null ? null : e._debugTask, fs() && (fp = 1);
				var t = vl(), n = _l();
				t !== _p || n !== gp ? _p = -1.1 : n !== null && (fp = 1), hp = t, gp = n;
			}
			0 > xp && (xp = Xf(), Cp = e._debugTask == null ? null : e._debugTask, 0 > bp) && (e = vl(), t = _l(), (e !== Op || t !== Dp) && (Op = -1.1), Ep = e, Dp = t);
		}
		function Ut() {
			var e = rp;
			return rp = 0, e;
		}
		function Wt(e) {
			var t = rp;
			return rp = e, t;
		}
		function Gt(e) {
			var t = rp;
			return rp += e, t;
		}
		function Kt() {
			op = ap = -1.1;
		}
		function qt() {
			var e = ap;
			return ap = -1.1, e;
		}
		function Jt(e) {
			0 <= e && (ap = e);
		}
		function Yt() {
			var e = ip;
			return ip = -0, e;
		}
		function Xt(e) {
			0 <= e && (ip = e);
		}
		function Zt() {
			var e = sp;
			return sp = null, e;
		}
		function Qt() {
			var e = cp;
			return cp = !1, e;
		}
		function $t(e) {
			np = Xf(), 0 > e.actualStartTime && (e.actualStartTime = np);
		}
		function en(e) {
			if (0 <= np) {
				var t = Xf() - np;
				e.actualDuration += t, e.selfBaseDuration = t, np = -1;
			}
		}
		function tn(e) {
			if (0 <= np) {
				var t = Xf() - np;
				e.actualDuration += t, np = -1;
			}
		}
		function nn() {
			if (0 <= np) {
				var e = Xf(), t = e - np;
				np = -1, rp += t, ip += t, op = e;
			}
		}
		function B(e) {
			sp === null && (sp = []), sp.push(e), tp === null && (tp = []), tp.push(e);
		}
		function rn() {
			np = Xf(), 0 > ap && (ap = np);
		}
		function an(e) {
			for (var t = e.child; t;) e.actualDuration += t.actualDuration, t = t.sibling;
		}
		function on() {}
		function sn(e) {
			e !== Ip && e.next === null && (Ip === null ? Fp = Ip = e : Ip = Ip.next = e), zp = !0, K.actQueue === null ? Lp || (Lp = !0, hn()) : Rp || (Rp = !0, hn());
		}
		function cn(e, t) {
			if (!Bp && zp) {
				Bp = !0;
				do
					for (var n = !1, r = Fp; r !== null;) {
						if (!t) if (e !== 0) {
							var i = r.pendingLanes;
							if (i === 0) var a = 0;
							else {
								var o = r.suspendedLanes, s = r.pingedLanes;
								a = (1 << 31 - bd(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
							}
							a !== 0 && (n = !0, pn(r, a));
						} else a = Bg, a = k(r, r === Rg ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== ol), !(a & 3) || A(r, a) || (n = !0, pn(r, a));
						r = r.next;
					}
				while (n);
				Bp = !1;
			}
		}
		function ln() {
			gl(), un();
		}
		function un() {
			zp = Rp = Lp = !1;
			var e = 0;
			Vp !== 0 && yl() && (e = Vp);
			for (var t = Ad(), n = null, r = Fp; r !== null;) {
				var i = r.next, a = dn(r, t);
				a === 0 ? (r.next = null, n === null ? Fp = i : n.next = i, i === null && (Ip = n)) : (n = r, (e !== 0 || a & 3) && (zp = !0)), r = i;
			}
			A_ !== w_ && A_ !== k_ || cn(e, !1), Vp !== 0 && (Vp = 0);
		}
		function dn(e, t) {
			for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
				var o = 31 - bd(a), s = 1 << o, c = i[o];
				c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ie(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
			}
			if (t = Rg, n = Bg, n = k(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== ol), r = e.callbackNode, n === 0 || e === t && (Zg === Ug || Zg === Xg) || e.cancelPendingCommit !== null) return r !== null && mn(r), e.callbackNode = null, e.callbackPriority = 0;
			if (!(n & 3) || A(e, n)) {
				if (t = n & -n, t !== e.callbackPriority || K.actQueue !== null && r !== Hp) mn(r);
				else return t;
				switch (me(n)) {
					case 2:
					case 8:
						n = Md;
						break;
					case 32:
						n = Nd;
						break;
					case 268435456:
						n = Pd;
						break;
					default: n = Nd;
				}
				return r = fn.bind(null, e), K.actQueue === null ? n = Ed(n, r) : (K.actQueue.push(r), n = Hp), e.callbackPriority = t, e.callbackNode = n, t;
			}
			return r !== null && mn(r), e.callbackPriority = 2, e.callbackNode = null, 2;
		}
		function fn(e, t) {
			if (Pp = Np = !1, gl(), A_ !== w_ && A_ !== k_) return e.callbackNode = null, e.callbackPriority = 0, null;
			var n = e.callbackNode;
			if (z_ === b_ && (z_ = S_), Rs() && e.callbackNode !== n) return null;
			var r = Bg;
			return r = k(e, e === Rg ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== ol), r === 0 ? null : (ss(e, r, t), dn(e, Ad()), e.callbackNode != null && e.callbackNode === n ? fn.bind(null, e) : null);
		}
		function pn(e, t) {
			if (Rs()) return null;
			Np = Pp, Pp = !1, ss(e, t, !0);
		}
		function mn(e) {
			e !== Hp && e !== null && Dd(e);
		}
		function hn() {
			K.actQueue !== null && K.actQueue.push(function() {
				return un(), null;
			}), Nl ? Pl(function() {
				(Lg & (Q | kg)) === Og ? un() : Ed(jd, ln);
			}) : Ed(jd, ln);
		}
		function gn() {
			if (Vp === 0) {
				var e = Gp;
				e === 0 && (e = Cd, Cd <<= 1, !(Cd & 261888) && (Cd = 256)), Vp = e;
			}
			return Vp;
		}
		function _n(e, t) {
			if (Up === null) {
				var n = Up = [];
				Wp = 0, Gp = gn(), Kp = {
					status: "pending",
					value: void 0,
					then: function(e) {
						n.push(e);
					}
				};
			}
			return Wp++, t.then(vn, vn), t;
		}
		function vn() {
			if (--Wp === 0 && (-1 < xp || (bp = -1.1), Up !== null)) {
				Kp !== null && (Kp.status = "fulfilled");
				var e = Up;
				Up = null, Gp = 0, Kp = null;
				for (var t = 0; t < e.length; t++) (0, e[t])();
			}
		}
		function yn(e, t) {
			var n = [], r = {
				status: "pending",
				value: null,
				reason: null,
				then: function(e) {
					n.push(e);
				}
			};
			return e.then(function() {
				r.status = "fulfilled", r.value = t;
				for (var e = 0; e < n.length; e++) (0, n[e])(t);
			}, function(e) {
				for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
			}), r;
		}
		function bn() {
			var e = Jp.current;
			return e === null ? Rg.pooledCache : e;
		}
		function xn(e, t) {
			t === null ? D(Jp, Jp.current, e) : D(Jp, t.pool, e);
		}
		function Sn() {
			var e = bn();
			return e === null ? null : {
				parent: sl ? Yf._currentValue : Yf._currentValue2,
				pool: e
			};
		}
		function Cn(e, t) {
			if (Gd(e, t)) return !0;
			if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
			var n = Object.keys(e), r = Object.keys(t);
			if (n.length !== r.length) return !1;
			for (r = 0; r < n.length; r++) {
				var i = n[r];
				if (!qd.call(t, i) || !Gd(e[i], t[i])) return !1;
			}
			return !0;
		}
		function wn() {
			return {
				didWarnAboutUncachedPromise: !1,
				thenables: []
			};
		}
		function Tn(e) {
			return e = e.status, e === "fulfilled" || e === "rejected";
		}
		function En(e, t, n) {
			K.actQueue !== null && (K.didUsePromise = !0);
			var r = e.thenables;
			if (n = r[n], n === void 0 ? r.push(t) : n !== t && (e.didWarnAboutUncachedPromise || (e.didWarnAboutUncachedPromise = !0, console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")), t.then(on, on), t = n), t._debugInfo === void 0) {
				e = performance.now(), r = t.displayName;
				var i = {
					name: typeof r == "string" ? r : "Promise",
					start: e,
					end: e,
					value: t
				};
				t._debugInfo = [{ awaited: i }], t.status !== "fulfilled" && t.status !== "rejected" && (e = function() {
					i.end = performance.now();
				}, t.then(e, e));
			}
			switch (t.status) {
				case "fulfilled": return t.value;
				case "rejected": throw e = t.reason, kn(e), e;
				default:
					if (typeof t.status == "string") t.then(on, on);
					else {
						if (e = Rg, e !== null && 100 < e.shellSuspendCounter) throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");
						e = t, e.status = "pending", e.then(function(e) {
							if (t.status === "pending") {
								var n = t;
								n.status = "fulfilled", n.value = e;
							}
						}, function(e) {
							if (t.status === "pending") {
								var n = t;
								n.status = "rejected", n.reason = e;
							}
						});
					}
					switch (t.status) {
						case "fulfilled": return t.value;
						case "rejected": throw e = t.reason, kn(e), e;
					}
					throw Em = t, Y = !0, Sm;
			}
		}
		function Dn(e) {
			try {
				return xm(e);
			} catch (e) {
				throw typeof e == "object" && e && typeof e.then == "function" ? (Em = e, Y = !0, Sm) : e;
			}
		}
		function On() {
			if (Em === null) throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");
			var e = Em;
			return Em = null, Y = !1, e;
		}
		function kn(e) {
			if (e === Sm || e === wm) throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");
		}
		function An(e) {
			var t = X;
			return e != null && (X = t === null ? e : t.concat(e)), t;
		}
		function jn() {
			var e = X;
			if (e != null) {
				for (var t = e.length - 1; 0 <= t; t--) if (e[t].name != null) {
					var n = e[t].debugTask;
					if (n != null) return n;
				}
			}
			return null;
		}
		function Mn(e, t, n) {
			for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
				var a = r[i];
				if (a !== "children" && a !== "key") {
					t === null && (t = uc(e, n.mode, 0), t._debugInfo = X, t.return = n), I(t, function(e) {
						console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", e);
					}, a);
					break;
				}
			}
		}
		function Nn(e) {
			var t = Om;
			return Om += 1, Dm === null && (Dm = wn()), En(Dm, e, t);
		}
		function Pn(e, t) {
			t = t.props.ref, e.ref = t === void 0 ? null : t;
		}
		function Fn(e, t) {
			throw t.$$typeof === Oc ? Error("A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the \"react\" package is used.\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\n- A compiler tries to \"inline\" JSX instead of using the runtime.") : (e = Object.prototype.toString.call(t), Error("Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead."));
		}
		function In(e, t) {
			var n = jn();
			n === null ? Fn(e, t) : n.run(Fn.bind(null, e, t));
		}
		function Ln(e, t) {
			var n = w(e) || "Component";
			Mm[n] || (Mm[n] = !0, t = t.displayName || t.name || "Component", e.tag === 3 ? console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n  root.render(%s)", t, t, t) : console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n  <%s>{%s}</%s>", t, t, n, t, n));
		}
		function Rn(e, t) {
			var n = jn();
			n === null ? Ln(e, t) : n.run(Ln.bind(null, e, t));
		}
		function zn(e, t) {
			var n = w(e) || "Component";
			Nm[n] || (Nm[n] = !0, t = String(t), e.tag === 3 ? console.error("Symbols are not valid as a React child.\n  root.render(%s)", t) : console.error("Symbols are not valid as a React child.\n  <%s>%s</%s>", n, t, n));
		}
		function Bn(e, t) {
			var n = jn();
			n === null ? zn(e, t) : n.run(zn.bind(null, e, t));
		}
		function Vn(e) {
			function t(t, n) {
				if (e) {
					var r = t.deletions;
					r === null ? (t.deletions = [n], t.flags |= 16) : r.push(n);
				}
			}
			function n(n, r) {
				if (!e) return null;
				for (; r !== null;) t(n, r), r = r.sibling;
				return null;
			}
			function r(e) {
				for (var t = /* @__PURE__ */ new Map(); e !== null;) e.key === null ? t.set(e.index, e) : t.set(e.key, e), e = e.sibling;
				return t;
			}
			function i(e, t) {
				return e = sc(e, t), e.index = 0, e.sibling = null, e;
			}
			function a(t, n, r) {
				return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 67108866, n) : (r = r.index, r < n ? (t.flags |= 67108866, n) : r)) : (t.flags |= 1048576, n);
			}
			function o(t) {
				return e && t.alternate === null && (t.flags |= 67108866), t;
			}
			function s(e, t, n, r) {
				return t === null || t.tag !== 6 ? (t = fc(n, e.mode, r), t.return = e, t._debugOwner = e, t._debugTask = e._debugTask, t._debugInfo = X, t) : (t = i(t, n), t.return = e, t._debugInfo = X, t);
			}
			function l(e, t, n, r) {
				var a = n.type;
				return a === jc ? (t = d(e, t, n.props.children, r, n.key), Mn(n, t, e), t) : t !== null && (t.elementType === a || nc(t, n) || typeof a == "object" && a && a.$$typeof === zc && Dn(a) === t.type) ? (t = i(t, n.props), Pn(t, n), t.return = e, t._debugOwner = n._owner, t._debugInfo = X, t) : (t = uc(n, e.mode, r), Pn(t, n), t.return = e, t._debugInfo = X, t);
			}
			function u(e, t, n, r) {
				return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = mc(n, e.mode, r), t.return = e, t._debugInfo = X, t) : (t = i(t, n.children || []), t.return = e, t._debugInfo = X, t);
			}
			function d(e, t, n, r, a) {
				return t === null || t.tag !== 7 ? (t = dc(n, e.mode, r, a), t.return = e, t._debugOwner = e, t._debugTask = e._debugTask, t._debugInfo = X, t) : (t = i(t, n), t.return = e, t._debugInfo = X, t);
			}
			function f(e, t, n) {
				if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = fc("" + t, e.mode, n), t.return = e, t._debugOwner = e, t._debugTask = e._debugTask, t._debugInfo = X, t;
				if (typeof t == "object" && t) {
					switch (t.$$typeof) {
						case kc: return n = uc(t, e.mode, n), Pn(n, t), n.return = e, e = An(t._debugInfo), n._debugInfo = X, X = e, n;
						case Ac: return t = mc(t, e.mode, n), t.return = e, t._debugInfo = X, t;
						case zc:
							var r = An(t._debugInfo);
							return t = Dn(t), e = f(e, t, n), X = r, e;
					}
					if (Wc(t) || te(t)) return n = dc(t, e.mode, n, null), n.return = e, n._debugOwner = e, n._debugTask = e._debugTask, e = An(t._debugInfo), n._debugInfo = X, X = e, n;
					if (typeof t.then == "function") return r = An(t._debugInfo), e = f(e, Nn(t), n), X = r, e;
					if (t.$$typeof === Fc) return f(e, It(e, t), n);
					In(e, t);
				}
				return typeof t == "function" && Rn(e, t), typeof t == "symbol" && Bn(e, t), null;
			}
			function p(e, t, n, r) {
				var i = t === null ? null : t.key;
				if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? s(e, t, "" + n, r) : null;
				if (typeof n == "object" && n) {
					switch (n.$$typeof) {
						case kc: return n.key === i ? (i = An(n._debugInfo), e = l(e, t, n, r), X = i, e) : null;
						case Ac: return n.key === i ? u(e, t, n, r) : null;
						case zc: return i = An(n._debugInfo), n = Dn(n), e = p(e, t, n, r), X = i, e;
					}
					if (Wc(n) || te(n)) return i === null ? (i = An(n._debugInfo), e = d(e, t, n, r, null), X = i, e) : null;
					if (typeof n.then == "function") return i = An(n._debugInfo), e = p(e, t, Nn(n), r), X = i, e;
					if (n.$$typeof === Fc) return p(e, t, It(e, n), r);
					In(e, n);
				}
				return typeof n == "function" && Rn(e, n), typeof n == "symbol" && Bn(e, n), null;
			}
			function m(e, t, n, r, i) {
				if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, s(t, e, "" + r, i);
				if (typeof r == "object" && r) {
					switch (r.$$typeof) {
						case kc: return n = e.get(r.key === null ? n : r.key) || null, e = An(r._debugInfo), t = l(t, n, r, i), X = e, t;
						case Ac: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
						case zc:
							var a = An(r._debugInfo);
							return r = Dn(r), t = m(e, t, n, r, i), X = a, t;
					}
					if (Wc(r) || te(r)) return n = e.get(n) || null, e = An(r._debugInfo), t = d(t, n, r, i, null), X = e, t;
					if (typeof r.then == "function") return a = An(r._debugInfo), t = m(e, t, n, Nn(r), i), X = a, t;
					if (r.$$typeof === Fc) return m(e, t, n, It(t, r), i);
					In(t, r);
				}
				return typeof r == "function" && Rn(t, r), typeof r == "symbol" && Bn(t, r), null;
			}
			function h(e, t, n, r) {
				if (typeof n != "object" || !n) return r;
				switch (n.$$typeof) {
					case kc:
					case Ac:
						_(e, t, n);
						var i = n.key;
						if (typeof i != "string") break;
						if (r === null) {
							r = /* @__PURE__ */ new Set(), r.add(i);
							break;
						}
						if (!r.has(i)) {
							r.add(i);
							break;
						}
						I(t, function() {
							console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.", i);
						});
						break;
					case zc: n = Dn(n), h(e, t, n, r);
				}
				return r;
			}
			function g(i, o, s, c) {
				for (var l = null, u = null, d = null, g = o, _ = o = 0, v = null; g !== null && _ < s.length; _++) {
					g.index > _ ? (v = g, g = null) : v = g.sibling;
					var y = p(i, g, s[_], c);
					if (y === null) {
						g === null && (g = v);
						break;
					}
					l = h(i, y, s[_], l), e && g && y.alternate === null && t(i, g), o = a(y, o, _), d === null ? u = y : d.sibling = y, d = y, g = v;
				}
				if (_ === s.length) return n(i, g), Nf && He(i, _), u;
				if (g === null) {
					for (; _ < s.length; _++) g = f(i, s[_], c), g !== null && (l = h(i, g, s[_], l), o = a(g, o, _), d === null ? u = g : d.sibling = g, d = g);
					return Nf && He(i, _), u;
				}
				for (g = r(g); _ < s.length; _++) v = m(g, i, _, s[_], c), v !== null && (l = h(i, v, s[_], l), e && v.alternate !== null && g.delete(v.key === null ? _ : v.key), o = a(v, o, _), d === null ? u = v : d.sibling = v, d = v);
				return e && g.forEach(function(e) {
					return t(i, e);
				}), Nf && He(i, _), u;
			}
			function v(i, o, s, c) {
				if (s == null) throw Error("An iterable object provided no iterator.");
				for (var l = null, u = null, d = o, g = o = 0, _ = null, v = null, y = s.next(); d !== null && !y.done; g++, y = s.next()) {
					d.index > g ? (_ = d, d = null) : _ = d.sibling;
					var b = p(i, d, y.value, c);
					if (b === null) {
						d === null && (d = _);
						break;
					}
					v = h(i, b, y.value, v), e && d && b.alternate === null && t(i, d), o = a(b, o, g), u === null ? l = b : u.sibling = b, u = b, d = _;
				}
				if (y.done) return n(i, d), Nf && He(i, g), l;
				if (d === null) {
					for (; !y.done; g++, y = s.next()) d = f(i, y.value, c), d !== null && (v = h(i, d, y.value, v), o = a(d, o, g), u === null ? l = d : u.sibling = d, u = d);
					return Nf && He(i, g), l;
				}
				for (d = r(d); !y.done; g++, y = s.next()) _ = m(d, i, g, y.value, c), _ !== null && (v = h(i, _, y.value, v), e && _.alternate !== null && d.delete(_.key === null ? g : _.key), o = a(_, o, g), u === null ? l = _ : u.sibling = _, u = _);
				return e && d.forEach(function(e) {
					return t(i, e);
				}), Nf && He(i, g), l;
			}
			function y(e, r, a, s) {
				if (typeof a == "object" && a && a.type === jc && a.key === null && (Mn(a, null, e), a = a.props.children), typeof a == "object" && a) {
					switch (a.$$typeof) {
						case kc:
							var c = An(a._debugInfo);
							a: {
								for (var l = a.key; r !== null;) {
									if (r.key === l) {
										if (l = a.type, l === jc) {
											if (r.tag === 7) {
												n(e, r.sibling), s = i(r, a.props.children), s.return = e, s._debugOwner = a._owner, s._debugInfo = X, Mn(a, s, e), e = s;
												break a;
											}
										} else if (r.elementType === l || nc(r, a) || typeof l == "object" && l && l.$$typeof === zc && Dn(l) === r.type) {
											n(e, r.sibling), s = i(r, a.props), Pn(s, a), s.return = e, s._debugOwner = a._owner, s._debugInfo = X, e = s;
											break a;
										}
										n(e, r);
										break;
									} else t(e, r);
									r = r.sibling;
								}
								a.type === jc ? (s = dc(a.props.children, e.mode, s, a.key), s.return = e, s._debugOwner = e, s._debugTask = e._debugTask, s._debugInfo = X, Mn(a, s, e), e = s) : (s = uc(a, e.mode, s), Pn(s, a), s.return = e, s._debugInfo = X, e = s);
							}
							return e = o(e), X = c, e;
						case Ac:
							a: {
								for (c = a, a = c.key; r !== null;) {
									if (r.key === a) if (r.tag === 4 && r.stateNode.containerInfo === c.containerInfo && r.stateNode.implementation === c.implementation) {
										n(e, r.sibling), s = i(r, c.children || []), s.return = e, e = s;
										break a;
									} else {
										n(e, r);
										break;
									}
									else t(e, r);
									r = r.sibling;
								}
								s = mc(c, e.mode, s), s.return = e, e = s;
							}
							return o(e);
						case zc: return c = An(a._debugInfo), a = Dn(a), e = y(e, r, a, s), X = c, e;
					}
					if (Wc(a)) return c = An(a._debugInfo), e = g(e, r, a, s), X = c, e;
					if (te(a)) {
						if (c = An(a._debugInfo), l = te(a), typeof l != "function") throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");
						var u = l.call(a);
						return u === a ? (e.tag !== 0 || Object.prototype.toString.call(e.type) !== "[object GeneratorFunction]" || Object.prototype.toString.call(u) !== "[object Generator]") && (Am || console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."), Am = !0) : a.entries !== l || km || (console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), km = !0), e = v(e, r, u, s), X = c, e;
					}
					if (typeof a.then == "function") return c = An(a._debugInfo), e = y(e, r, Nn(a), s), X = c, e;
					if (a.$$typeof === Fc) return y(e, r, It(e, a), s);
					In(e, a);
				}
				return typeof a == "string" && a !== "" || typeof a == "number" || typeof a == "bigint" ? (c = "" + a, r !== null && r.tag === 6 ? (n(e, r.sibling), s = i(r, c), s.return = e, e = s) : (n(e, r), s = fc(c, e.mode, s), s.return = e, s._debugOwner = e, s._debugTask = e._debugTask, s._debugInfo = X, e = s), o(e)) : (typeof a == "function" && Rn(e, a), typeof a == "symbol" && Bn(e, a), n(e, r));
			}
			return function(e, t, n, r) {
				var i = X;
				X = null;
				try {
					Om = 0;
					var a = y(e, t, n, r);
					return Dm = null, a;
				} catch (t) {
					if (t === Sm || t === wm) throw t;
					var o = c(29, t, null, e.mode);
					o.lanes = r, o.return = e;
					var s = o._debugInfo = X;
					if (o._debugOwner = e._debugOwner, o._debugTask = e._debugTask, s != null) {
						for (var l = s.length - 1; 0 <= l; l--) if (typeof s[l].stack == "string") {
							o._debugOwner = s[l], o._debugTask = s[l].debugTask;
							break;
						}
					}
					return o;
				} finally {
					X = i;
				}
			};
		}
		function Hn(e, t) {
			var n = Wc(e);
			return e = !n && typeof te(e) == "function", n || e ? (n = n ? "array" : "iterable", console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>", n, t, n), !1) : !0;
		}
		function Un() {
			for (var e = zm, t = Bm = zm = 0; t < e;) {
				var n = Rm[t];
				Rm[t++] = null;
				var r = Rm[t];
				Rm[t++] = null;
				var i = Rm[t];
				Rm[t++] = null;
				var a = Rm[t];
				if (Rm[t++] = null, r !== null && i !== null) {
					var o = r.pending;
					o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
				}
				a !== 0 && qn(n, i, a);
			}
		}
		function Wn(e, t, n, r) {
			Rm[zm++] = e, Rm[zm++] = t, Rm[zm++] = n, Rm[zm++] = r, Bm |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
		}
		function Gn(e, t, n, r) {
			return Wn(e, t, n, r), Jn(e);
		}
		function Kn(e, t) {
			return Wn(e, null, null, t), Jn(e);
		}
		function qn(e, t, n) {
			e.lanes |= n;
			var r = e.alternate;
			r !== null && (r.lanes |= n);
			for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & Im || (i = !0)), e = a, a = a.return;
			return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - bd(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
		}
		function Jn(e) {
			if (H_ > V_) throw q_ = H_ = 0, J_ = U_ = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");
			q_ > K_ && (q_ = 0, J_ = null, console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")), e.alternate === null && e.flags & 4098 && Xs(e);
			for (var t = e, n = t.return; n !== null;) t.alternate === null && t.flags & 4098 && Xs(e), t = n, n = t.return;
			return t.tag === 3 ? t.stateNode : null;
		}
		function Yn(e) {
			e.updateQueue = {
				baseState: e.memoizedState,
				firstBaseUpdate: null,
				lastBaseUpdate: null,
				shared: {
					pending: null,
					lanes: 0,
					hiddenCallbacks: null
				},
				callbacks: null
			};
		}
		function Xn(e, t) {
			e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
				baseState: e.baseState,
				firstBaseUpdate: e.firstBaseUpdate,
				lastBaseUpdate: e.lastBaseUpdate,
				shared: e.shared,
				callbacks: null
			});
		}
		function Zn(e) {
			return {
				lane: e,
				tag: Vm,
				payload: null,
				callback: null,
				next: null
			};
		}
		function Qn(e, t, n) {
			var r = e.updateQueue;
			if (r === null) return null;
			if (r = r.shared, qm === r && !Km) {
				var i = w(e);
				console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s", i), Km = !0;
			}
			return (Lg & Q) === Og ? (Wn(e, r, t, n), Jn(e)) : (i = r.pending, i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Jn(e), qn(e, null, n), t);
		}
		function $n(e, t, n) {
			if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
				var r = t.lanes;
				r &= e.pendingLanes, n |= r, t.lanes = n, le(e, n);
			}
		}
		function er(e, t) {
			var n = e.updateQueue, r = e.alternate;
			if (r !== null && (r = r.updateQueue, n === r)) {
				var i = null, a = null;
				if (n = n.firstBaseUpdate, n !== null) {
					do {
						var o = {
							lane: n.lane,
							tag: n.tag,
							payload: n.payload,
							callback: null,
							next: null
						};
						a === null ? i = a = o : a = a.next = o, n = n.next;
					} while (n !== null);
					a === null ? i = a = t : a = a.next = t;
				} else i = a = t;
				n = {
					baseState: r.baseState,
					firstBaseUpdate: i,
					lastBaseUpdate: a,
					shared: r.shared,
					callbacks: r.callbacks
				}, e.updateQueue = n;
				return;
			}
			e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
		}
		function tr() {
			if (Jm) {
				var e = Kp;
				if (e !== null) throw e;
			}
		}
		function nr(e, t, n, r) {
			Jm = !1;
			var i = e.updateQueue;
			Gm = !1, qm = i.shared;
			var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
			if (s !== null) {
				i.shared.pending = null;
				var c = s, l = c.next;
				c.next = null, o === null ? a = l : o.next = l, o = c;
				var u = e.alternate;
				u !== null && (u = u.updateQueue, s = u.lastBaseUpdate, s !== o && (s === null ? u.firstBaseUpdate = l : s.next = l, u.lastBaseUpdate = c));
			}
			if (a !== null) {
				var d = i.baseState;
				o = 0, u = l = c = null, s = a;
				do {
					var f = s.lane & -536870913, p = f !== s.lane;
					if (p ? (Bg & f) === f : (r & f) === f) {
						f !== 0 && f === Gp && (Jm = !0), u !== null && (u = u.next = {
							lane: 0,
							tag: s.tag,
							payload: s.payload,
							callback: null,
							next: null
						});
						a: {
							f = e;
							var m = s, h = t, g = n;
							switch (m.tag) {
								case Hm:
									if (m = m.payload, typeof m == "function") {
										Gf = !0;
										var _ = m.call(g, d, h);
										if (f.mode & 8) {
											ge(!0);
											try {
												m.call(g, d, h);
											} finally {
												ge(!1);
											}
										}
										Gf = !1, d = _;
										break a;
									}
									d = m;
									break a;
								case Wm: f.flags = f.flags & -65537 | 128;
								case Vm:
									if (_ = m.payload, typeof _ == "function") {
										if (Gf = !0, m = _.call(g, d, h), f.mode & 8) {
											ge(!0);
											try {
												_.call(g, d, h);
											} finally {
												ge(!1);
											}
										}
										Gf = !1;
									} else m = _;
									if (m == null) break a;
									d = Dc({}, d, m);
									break a;
								case Um: Gm = !0;
							}
						}
						f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
					} else p = {
						lane: f,
						tag: s.tag,
						payload: s.payload,
						callback: s.callback,
						next: null
					}, u === null ? (l = u = p, c = d) : u = u.next = p, o |= f;
					if (s = s.next, s === null) {
						if (s = i.shared.pending, s === null) break;
						p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
					}
				} while (1);
				u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), i_ |= o, e.lanes = o, e.memoizedState = d;
			}
			qm = null;
		}
		function rr(e, t) {
			if (typeof e != "function") throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + e);
			e.call(t);
		}
		function ir(e, t) {
			var n = e.shared.hiddenCallbacks;
			if (n !== null) for (e.shared.hiddenCallbacks = null, e = 0; e < n.length; e++) rr(n[e], t);
		}
		function ar(e, t) {
			var n = e.callbacks;
			if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) rr(n[e], t);
		}
		function or(e, t) {
			var n = n_;
			D(Xm, n, e), D(Ym, t, e), n_ = n | t.baseLanes;
		}
		function sr(e) {
			D(Xm, n_, e), D(Ym, Ym.current, e);
		}
		function cr(e) {
			n_ = Xm.current, E(Ym, e), E(Xm, e);
		}
		function lr(e) {
			var t = e.alternate;
			D(th, th.current & $m, e), D(Zm, e, e), Qm === null && (t === null || Ym.current !== null || t.memoizedState !== null) && (Qm = e);
		}
		function V(e) {
			D(th, th.current, e), D(Zm, e, e), Qm === null && (Qm = e);
		}
		function ur(e) {
			e.tag === 22 ? (D(th, th.current, e), D(Zm, e, e), Qm === null && (Qm = e)) : dr(e);
		}
		function dr(e) {
			D(th, th.current, e), D(Zm, Zm.current, e);
		}
		function fr(e) {
			E(Zm, e), Qm === e && (Qm = null), E(th, e);
		}
		function pr(e) {
			for (var t = e; t !== null;) {
				if (t.tag === 13) {
					var n = t.memoizedState;
					if (n !== null && (n = n.dehydrated, n === null || du(n) || fu(n))) return t;
				} else if (t.tag === 19 && (t.memoizedProps.revealOrder === "forwards" || t.memoizedProps.revealOrder === "backwards" || t.memoizedProps.revealOrder === "unstable_legacy-backwards" || t.memoizedProps.revealOrder === "together")) {
					if (t.flags & 128) return t;
				} else if (t.child !== null) {
					t.child.return = t, t = t.child;
					continue;
				}
				if (t === e) break;
				for (; t.sibling === null;) {
					if (t.return === null || t.return === e) return null;
					t = t.return;
				}
				t.sibling.return = t.return, t = t.sibling;
			}
			return null;
		}
		function mr() {
			var e = Z;
			wh === null ? wh = [e] : wh.push(e);
		}
		function H() {
			var e = Z;
			if (wh !== null && (Th++, wh[Th] !== e)) {
				var t = w(ph);
				if (!ch.has(t) && (ch.add(t), wh !== null)) {
					for (var n = "", r = 0; r <= Th; r++) {
						var i = wh[r], a = r === Th ? e : i;
						for (i = r + 1 + ". " + i; 30 > i.length;) i += " ";
						i += a + "\n", n += i;
					}
					console.error("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n   Previous render            Next render\n   ------------------------------------------------------\n%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", t, n);
				}
			}
		}
		function hr(e) {
			e == null || Wc(e) || console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", Z, typeof e);
		}
		function gr() {
			var e = w(ph);
			dh.has(e) || (dh.add(e), console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.", e));
		}
		function _r() {
			throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.");
		}
		function vr(e, t) {
			if (Eh) return !1;
			if (t === null) return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", Z), !1;
			e.length !== t.length && console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", Z, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
			for (var n = 0; n < t.length && n < e.length; n++) if (!Gd(e[n], t[n])) return !1;
			return !0;
		}
		function yr(e, t, n, r, i, a) {
			fh = a, ph = t, wh = e === null ? null : e._debugHookTypes, Th = -1, Eh = e !== null && e.type !== t.type, (Object.prototype.toString.call(n) === "[object AsyncFunction]" || Object.prototype.toString.call(n) === "[object AsyncGeneratorFunction]") && (a = w(ph), uh.has(a) || (uh.add(a), console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.", a === null ? "An unknown Component" : "<" + a + ">"))), t.memoizedState = null, t.updateQueue = null, t.lanes = 0, K.H = e !== null && e.memoizedState !== null ? Ah : wh === null ? Oh : kh, vh = a = (t.mode & 8) !== zf;
			var o = om(n, r, i);
			if (vh = !1, _h && (o = xr(t, n, r, i)), a) {
				ge(!0);
				try {
					o = xr(t, n, r, i);
				} finally {
					ge(!1);
				}
			}
			return br(e, t), o;
		}
		function br(e, t) {
			t._debugHookTypes = wh, t.dependencies === null ? xh !== null && (t.dependencies = {
				lanes: 0,
				firstContext: null,
				_debugThenableState: xh
			}) : t.dependencies._debugThenableState = xh, K.H = Dh;
			var n = mh !== null && mh.next !== null;
			if (fh = 0, wh = Z = hh = mh = ph = null, Th = -1, e !== null && (e.flags & 65011712) != (t.flags & 65011712) && console.error("Internal React error: Expected static flag was missing. Please notify the React team."), gh = !1, bh = 0, xh = null, n) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");
			e === null || Xh || (e = e.dependencies, e !== null && Nt(e) && (Xh = !0)), Y ? (Y = !1, e = !0) : e = !1, e && (t = w(t) || "Unknown", lh.has(t) || uh.has(t) || (lh.add(t), console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")));
		}
		function xr(e, t, n, r) {
			ph = e;
			var i = 0;
			do {
				if (_h && (xh = null), bh = 0, _h = !1, i >= Ch) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");
				if (i += 1, Eh = !1, hh = mh = null, e.updateQueue != null) {
					var a = e.updateQueue;
					a.lastEffect = null, a.events = null, a.stores = null, a.memoCache != null && (a.memoCache.index = 0);
				}
				Th = -1, K.H = jh, a = om(t, n, r);
			} while (_h);
			return a;
		}
		function Sr() {
			var e = K.H, t = e.useState()[0];
			return t = typeof t.then == "function" ? kr(t) : t, e = e.useState()[0], (mh === null ? null : mh.memoizedState) !== e && (ph.flags |= 1024), t;
		}
		function Cr() {
			var e = yh !== 0;
			return yh = 0, e;
		}
		function wr(e, t, n) {
			t.updateQueue = e.updateQueue, t.flags = (t.mode & 16) === zf ? t.flags & -2053 : t.flags & -402655237, e.lanes &= ~n;
		}
		function Tr(e) {
			if (gh) {
				for (e = e.memoizedState; e !== null;) {
					var t = e.queue;
					t !== null && (t.pending = null), e = e.next;
				}
				gh = !1;
			}
			fh = 0, wh = hh = mh = ph = null, Th = -1, Z = null, _h = !1, bh = yh = 0, xh = null;
		}
		function Er() {
			var e = {
				memoizedState: null,
				baseState: null,
				baseQueue: null,
				queue: null,
				next: null
			};
			return hh === null ? ph.memoizedState = hh = e : hh = hh.next = e, hh;
		}
		function Dr() {
			if (mh === null) {
				var e = ph.alternate;
				e = e === null ? null : e.memoizedState;
			} else e = mh.next;
			var t = hh === null ? ph.memoizedState : hh.next;
			if (t !== null) hh = t, mh = e;
			else {
				if (e === null) throw ph.alternate === null ? Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.") : Error("Rendered more hooks than during the previous render.");
				mh = e, e = {
					memoizedState: mh.memoizedState,
					baseState: mh.baseState,
					baseQueue: mh.baseQueue,
					queue: mh.queue,
					next: null
				}, hh === null ? ph.memoizedState = hh = e : hh = hh.next = e;
			}
			return hh;
		}
		function Or() {
			return {
				lastEffect: null,
				events: null,
				stores: null,
				memoCache: null
			};
		}
		function kr(e) {
			var t = bh;
			return bh += 1, xh === null && (xh = wn()), e = En(xh, e, t), t = ph, (hh === null ? t.memoizedState : hh.next) === null && (t = t.alternate, K.H = t !== null && t.memoizedState !== null ? Ah : Oh), e;
		}
		function Ar(e) {
			if (typeof e == "object" && e) {
				if (typeof e.then == "function") return kr(e);
				if (e.$$typeof === Fc) return Ft(e);
			}
			throw Error("An unsupported type was passed to use(): " + String(e));
		}
		function jr(e) {
			var t = null, n = ph.updateQueue;
			if (n !== null && (t = n.memoCache), t == null) {
				var r = ph.alternate;
				r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
					data: r.data.map(function(e) {
						return e.slice();
					}),
					index: 0
				})));
			}
			if (t ??= {
				data: [],
				index: 0
			}, n === null && (n = Or(), ph.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0 || Eh) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = Vc;
			else n.length !== e && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", n.length, e);
			return t.index++, n;
		}
		function Mr(e, t) {
			return typeof t == "function" ? t(e) : t;
		}
		function Nr(e, t, n) {
			var r = Er();
			if (n !== void 0) {
				var i = n(t);
				if (vh) {
					ge(!0);
					try {
						n(t);
					} finally {
						ge(!1);
					}
				}
			} else i = t;
			return r.memoizedState = r.baseState = i, e = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: e,
				lastRenderedState: i
			}, r.queue = e, e = e.dispatch = zi.bind(null, ph, e), [r.memoizedState, e];
		}
		function Pr(e) {
			return Fr(Dr(), mh, e);
		}
		function Fr(e, t, n) {
			var r = e.queue;
			if (r === null) throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");
			r.lastRenderedReducer = n;
			var i = e.baseQueue, a = r.pending;
			if (a !== null) {
				if (i !== null) {
					var o = i.next;
					i.next = a.next, a.next = o;
				}
				t.baseQueue !== i && console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), t.baseQueue = i = a, r.pending = null;
			}
			if (a = e.baseState, i === null) e.memoizedState = a;
			else {
				t = i.next;
				var s = o = null, c = null, l = t, u = !1;
				do {
					var d = l.lane & -536870913;
					if (d === l.lane ? (fh & d) === d : (Bg & d) === d) {
						var f = l.revertLane;
						if (f === 0) c !== null && (c = c.next = {
							lane: 0,
							revertLane: 0,
							gesture: null,
							action: l.action,
							hasEagerState: l.hasEagerState,
							eagerState: l.eagerState,
							next: null
						}), d === Gp && (u = !0);
						else if ((fh & f) === f) {
							l = l.next, f === Gp && (u = !0);
							continue;
						} else d = {
							lane: 0,
							revertLane: l.revertLane,
							gesture: null,
							action: l.action,
							hasEagerState: l.hasEagerState,
							eagerState: l.eagerState,
							next: null
						}, c === null ? (s = c = d, o = a) : c = c.next = d, ph.lanes |= f, i_ |= f;
						d = l.action, vh && n(a, d), a = l.hasEagerState ? l.eagerState : n(a, d);
					} else f = {
						lane: d,
						revertLane: l.revertLane,
						gesture: l.gesture,
						action: l.action,
						hasEagerState: l.hasEagerState,
						eagerState: l.eagerState,
						next: null
					}, c === null ? (s = c = f, o = a) : c = c.next = f, ph.lanes |= d, i_ |= d;
					l = l.next;
				} while (l !== null && l !== t);
				if (c === null ? o = a : c.next = s, !Gd(a, e.memoizedState) && (Xh = !0, u && (n = Kp, n !== null))) throw n;
				e.memoizedState = a, e.baseState = o, e.baseQueue = c, r.lastRenderedState = a;
			}
			return i === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
		}
		function Ir(e) {
			var t = Dr(), n = t.queue;
			if (n === null) throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");
			n.lastRenderedReducer = e;
			var r = n.dispatch, i = n.pending, a = t.memoizedState;
			if (i !== null) {
				n.pending = null;
				var o = i = i.next;
				do
					a = e(a, o.action), o = o.next;
				while (o !== i);
				Gd(a, t.memoizedState) || (Xh = !0), t.memoizedState = a, t.baseQueue === null && (t.baseState = a), n.lastRenderedState = a;
			}
			return [a, r];
		}
		function Lr(e, t, n) {
			var r = ph, i = Er();
			if (Nf) {
				if (n === void 0) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
				var a = n();
				sh || a === n() || (console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"), sh = !0);
			} else {
				if (a = t(), sh || (n = t(), Gd(a, n) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), sh = !0)), Rg === null) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
				Bg & 127 || zr(r, t, a);
			}
			return i.memoizedState = a, n = {
				value: a,
				getSnapshot: t
			}, i.queue = n, fi(Vr.bind(null, r, n, e), [e]), r.flags |= 2048, ci(rh | oh, { destroy: void 0 }, Br.bind(null, r, n, a, t), null), a;
		}
		function Rr(e, t, n) {
			var r = ph, i = Dr(), a = Nf;
			if (a) {
				if (n === void 0) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
				n = n();
			} else if (n = t(), !sh) {
				var o = t();
				Gd(n, o) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), sh = !0);
			}
			if ((o = !Gd((mh || i).memoizedState, n)) && (i.memoizedState = n, Xh = !0), i = i.queue, di(2048, oh, Vr.bind(null, r, i, e), [e]), i.getSnapshot !== t || o || hh !== null && hh.memoizedState.tag & rh) {
				if (r.flags |= 2048, ci(rh | oh, { destroy: void 0 }, Br.bind(null, r, i, n, t), null), Rg === null) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
				a || fh & 127 || zr(r, t, n);
			}
			return n;
		}
		function zr(e, t, n) {
			e.flags |= 16384, e = {
				getSnapshot: t,
				value: n
			}, t = ph.updateQueue, t === null ? (t = Or(), ph.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
		}
		function Br(e, t, n, r) {
			t.value = n, t.getSnapshot = r, Hr(t) && Ur(e);
		}
		function Vr(e, t, n) {
			return n(function() {
				Hr(t) && (Vt(2, "updateSyncExternalStore()", e), Ur(e));
			});
		}
		function Hr(e) {
			var t = e.getSnapshot;
			e = e.value;
			try {
				var n = t();
				return !Gd(e, n);
			} catch {
				return !0;
			}
		}
		function Ur(e) {
			var t = Kn(e, 2);
			t !== null && os(t, e, 2);
		}
		function Wr(e) {
			var t = Er();
			if (typeof e == "function") {
				var n = e;
				if (e = n(), vh) {
					ge(!0);
					try {
						n();
					} finally {
						ge(!1);
					}
				}
			}
			return t.memoizedState = t.baseState = e, t.queue = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: Mr,
				lastRenderedState: e
			}, t;
		}
		function Gr(e) {
			e = Wr(e);
			var t = e.queue, n = Bi.bind(null, ph, t);
			return t.dispatch = n, [e.memoizedState, n];
		}
		function Kr(e) {
			var t = Er();
			t.memoizedState = t.baseState = e;
			var n = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: null,
				lastRenderedState: null
			};
			return t.queue = n, t = Hi.bind(null, ph, !0, n), n.dispatch = t, [e, t];
		}
		function qr(e, t) {
			return Jr(Dr(), mh, e, t);
		}
		function Jr(e, t, n, r) {
			return e.baseState = n, Fr(e, mh, typeof r == "function" ? r : Mr);
		}
		function Yr(e, t) {
			var n = Dr();
			return mh === null ? (n.baseState = e, [e, n.queue.dispatch]) : Jr(n, mh, e, t);
		}
		function Xr(e, t, n, r, i) {
			if (Ui(e)) throw Error("Cannot update form state while rendering.");
			if (e = t.action, e !== null) {
				var a = {
					payload: i,
					action: e,
					next: null,
					isTransition: !0,
					status: "pending",
					value: null,
					reason: null,
					listeners: [],
					then: function(e) {
						a.listeners.push(e);
					}
				};
				K.T === null ? a.isTransition = !1 : n(!0), r(a), n = t.pending, n === null ? (a.next = t.pending = a, Zr(t, a)) : (a.next = n.next, t.pending = n.next = a);
			}
		}
		function Zr(e, t) {
			var n = t.action, r = t.payload, i = e.state;
			if (t.isTransition) {
				var a = K.T, o = {};
				o._updatedFibers = /* @__PURE__ */ new Set(), K.T = o;
				try {
					var s = n(i, r), c = K.S;
					c !== null && c(o, s), Qr(e, t, s);
				} catch (n) {
					ei(e, t, n);
				} finally {
					a !== null && o.types !== null && (a.types !== null && a.types !== o.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), a.types = o.types), K.T = a, a === null && o._updatedFibers && (e = o._updatedFibers.size, o._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."));
				}
			} else try {
				o = n(i, r), Qr(e, t, o);
			} catch (n) {
				ei(e, t, n);
			}
		}
		function Qr(e, t, n) {
			typeof n == "object" && n && typeof n.then == "function" ? (K.asyncTransitions++, n.then(ki, ki), n.then(function(n) {
				$r(e, t, n);
			}, function(n) {
				return ei(e, t, n);
			}), t.isTransition || console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")) : $r(e, t, n);
		}
		function $r(e, t, n) {
			t.status = "fulfilled", t.value = n, ti(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Zr(e, n)));
		}
		function ei(e, t, n) {
			var r = e.pending;
			if (e.pending = null, r !== null) {
				r = r.next;
				do
					t.status = "rejected", t.reason = n, ti(t), t = t.next;
				while (t !== r);
			}
			e.action = null;
		}
		function ti(e) {
			e = e.listeners;
			for (var t = 0; t < e.length; t++) (0, e[t])();
		}
		function ni(e, t) {
			return t;
		}
		function ri(e, t) {
			if (Nf) {
				var n = Rg.formState;
				if (n !== null) {
					a: {
						var r = ph;
						if (Nf) {
							if (Mf) {
								var i = hu(Mf, Lf);
								if (i) {
									Mf = _u(i), r = gu(i);
									break a;
								}
							}
							L(r);
						}
						r = !1;
					}
					r && (t = n[0]);
				}
			}
			n = Er(), n.memoizedState = n.baseState = t, r = {
				pending: null,
				lanes: 0,
				dispatch: null,
				lastRenderedReducer: ni,
				lastRenderedState: t
			}, n.queue = r, n = Bi.bind(null, ph, r), r.dispatch = n, r = Wr(!1);
			var a = Hi.bind(null, ph, !1, r.queue);
			return r = Er(), i = {
				state: t,
				dispatch: null,
				action: e,
				pending: null
			}, r.queue = i, n = Xr.bind(null, ph, i, a, n), i.dispatch = n, r.memoizedState = e, [
				t,
				n,
				!1
			];
		}
		function ii(e) {
			return ai(Dr(), mh, e);
		}
		function ai(e, t, n) {
			if (t = Fr(e, t, ni)[0], e = Pr(Mr)[0], typeof t == "object" && t && typeof t.then == "function") try {
				var r = kr(t);
			} catch (e) {
				throw e === Sm ? wm : e;
			}
			else r = t;
			t = Dr();
			var i = t.queue, a = i.dispatch;
			return n !== t.memoizedState && (ph.flags |= 2048, ci(rh | oh, { destroy: void 0 }, oi.bind(null, i, n), null)), [
				r,
				a,
				e
			];
		}
		function oi(e, t) {
			e.action = t;
		}
		function si(e) {
			var t = Dr(), n = mh;
			if (n !== null) return ai(t, n, e);
			Dr(), t = t.memoizedState, n = Dr();
			var r = n.queue.dispatch;
			return n.memoizedState = e, [
				t,
				r,
				!1
			];
		}
		function ci(e, t, n, r) {
			return e = {
				tag: e,
				create: n,
				deps: r,
				inst: t,
				next: null
			}, t = ph.updateQueue, t === null && (t = Or(), ph.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
		}
		function li(e) {
			var t = Er();
			return e = { current: e }, t.memoizedState = e;
		}
		function ui(e, t, n, r) {
			var i = Er();
			ph.flags |= e, i.memoizedState = ci(rh | t, { destroy: void 0 }, n, r === void 0 ? null : r);
		}
		function di(e, t, n, r) {
			var i = Dr();
			r = r === void 0 ? null : r;
			var a = i.memoizedState.inst;
			mh !== null && r !== null && vr(r, mh.memoizedState.deps) ? i.memoizedState = ci(t, a, n, r) : (ph.flags |= e, i.memoizedState = ci(rh | t, a, n, r));
		}
		function fi(e, t) {
			(ph.mode & 16) === zf ? ui(8390656, oh, e, t) : ui(276826112, oh, e, t);
		}
		function pi(e) {
			ph.flags |= 4;
			var t = ph.updateQueue;
			if (t === null) t = Or(), ph.updateQueue = t, t.events = [e];
			else {
				var n = t.events;
				n === null ? t.events = [e] : n.push(e);
			}
		}
		function mi(e) {
			var t = Er(), n = { impl: e };
			return t.memoizedState = n, function() {
				if ((Lg & Q) !== Og) throw Error("A function wrapped in useEffectEvent can't be called during rendering.");
				return n.impl.apply(void 0, arguments);
			};
		}
		function hi(e) {
			var t = Dr().memoizedState;
			return pi({
				ref: t,
				nextImpl: e
			}), function() {
				if ((Lg & Q) !== Og) throw Error("A function wrapped in useEffectEvent can't be called during rendering.");
				return t.impl.apply(void 0, arguments);
			};
		}
		function gi(e, t) {
			var n = 4194308;
			return (ph.mode & 16) !== zf && (n |= 134217728), ui(n, ah, e, t);
		}
		function _i(e, t) {
			if (typeof t == "function") {
				e = e();
				var n = t(e);
				return function() {
					typeof n == "function" ? n() : t(null);
				};
			}
			if (t != null) return t.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(t).join(", ") + "}"), e = e(), t.current = e, function() {
				t.current = null;
			};
		}
		function vi(e, t, n) {
			typeof t != "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", t === null ? "null" : typeof t), n = n == null ? null : n.concat([e]);
			var r = 4194308;
			(ph.mode & 16) !== zf && (r |= 134217728), ui(r, ah, _i.bind(null, t, e), n);
		}
		function yi(e, t, n) {
			typeof t != "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", t === null ? "null" : typeof t), n = n == null ? null : n.concat([e]), di(4, ah, _i.bind(null, t, e), n);
		}
		function bi(e, t) {
			return Er().memoizedState = [e, t === void 0 ? null : t], e;
		}
		function xi(e, t) {
			var n = Dr();
			t = t === void 0 ? null : t;
			var r = n.memoizedState;
			return t !== null && vr(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
		}
		function Si(e, t) {
			var n = Er();
			t = t === void 0 ? null : t;
			var r = e();
			if (vh) {
				ge(!0);
				try {
					e();
				} finally {
					ge(!1);
				}
			}
			return n.memoizedState = [r, t], r;
		}
		function Ci(e, t) {
			var n = Dr();
			t = t === void 0 ? null : t;
			var r = n.memoizedState;
			if (t !== null && vr(t, r[1])) return r[0];
			if (r = e(), vh) {
				ge(!0);
				try {
					e();
				} finally {
					ge(!1);
				}
			}
			return n.memoizedState = [r, t], r;
		}
		function wi(e, t) {
			return Di(Er(), e, t);
		}
		function Ti(e, t) {
			return Oi(Dr(), mh.memoizedState, e, t);
		}
		function Ei(e, t) {
			var n = Dr();
			return mh === null ? Di(n, e, t) : Oi(n, mh.memoizedState, e, t);
		}
		function Di(e, t, n) {
			return n === void 0 || fh & 1073741824 && !(Bg & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = as(), ph.lanes |= e, i_ |= e, n);
		}
		function Oi(e, t, n, r) {
			return Gd(n, t) ? n : Ym.current === null ? !(fh & 42) || fh & 1073741824 && !(Bg & 261930) ? (Xh = !0, e.memoizedState = n) : (e = as(), ph.lanes |= e, i_ |= e, t) : (e = Di(e, n, r), Gd(e, t) || (Xh = !0), e);
		}
		function ki() {
			K.asyncTransitions--;
		}
		function Ai(e, t, n, r, i) {
			var a = ml();
			pl(a !== 0 && 8 > a ? a : 8);
			var o = K.T, s = {};
			s._updatedFibers = /* @__PURE__ */ new Set(), K.T = s, Hi(e, !1, t, n);
			try {
				var c = i(), l = K.S;
				if (l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function") {
					K.asyncTransitions++, c.then(ki, ki);
					var u = yn(c, r);
					Vi(e, t, u, is(e));
				} else Vi(e, t, r, is(e));
			} catch (n) {
				Vi(e, t, {
					then: function() {},
					status: "rejected",
					reason: n
				}, is(e));
			} finally {
				pl(a), o !== null && s.types !== null && (o.types !== null && o.types !== s.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), o.types = s.types), K.T = o, o === null && s._updatedFibers && (e = s._updatedFibers.size, s._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."));
			}
		}
		function ji(e) {
			var t = e.memoizedState;
			if (t !== null) return t;
			t = {
				memoizedState: kl,
				baseState: kl,
				baseQueue: null,
				queue: {
					pending: null,
					lanes: 0,
					dispatch: null,
					lastRenderedReducer: Mr,
					lastRenderedState: kl
				},
				next: null
			};
			var n = {};
			return t.next = {
				memoizedState: n,
				baseState: n,
				baseQueue: null,
				queue: {
					pending: null,
					lanes: 0,
					dispatch: null,
					lastRenderedReducer: Mr,
					lastRenderedState: n
				},
				next: null
			}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
		}
		function Mi() {
			var e = Wr(!1);
			return e = Ai.bind(null, ph, e.queue, !0, !1), Er().memoizedState = e, [!1, e];
		}
		function Ni() {
			var e = Pr(Mr)[0], t = Dr().memoizedState;
			return [typeof e == "boolean" ? e : kr(e), t];
		}
		function Pi() {
			var e = Ir(Mr)[0], t = Dr().memoizedState;
			return [typeof e == "boolean" ? e : kr(e), t];
		}
		function Fi() {
			return Ft(Al);
		}
		function Ii() {
			var e = Er(), t = Rg.identifierPrefix;
			if (Nf) {
				var n = Cf, r = Sf;
				n = (r & ~(1 << 32 - bd(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = yh++, 0 < n && (t += "H" + n.toString(32)), t += "_";
			} else n = Sh++, t = "_" + t + "r_" + n.toString(32) + "_";
			return e.memoizedState = t;
		}
		function Li() {
			return Er().memoizedState = Ri.bind(null, ph);
		}
		function Ri(e, t) {
			for (var n = e.return; n !== null;) {
				switch (n.tag) {
					case 24:
					case 3:
						var r = is(n), i = Zn(r), a = Qn(n, i, r);
						a !== null && (Vt(r, "refresh()", e), os(a, n, r), $n(a, n, r)), e = Rt(), t != null && a !== null && console.error("The seed argument is not enabled outside experimental channels."), i.payload = { cache: e };
						return;
				}
				n = n.return;
			}
		}
		function zi(e, t, n) {
			var r = arguments;
			typeof r[3] == "function" && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."), r = is(e);
			var i = {
				lane: r,
				revertLane: 0,
				gesture: null,
				action: n,
				hasEagerState: !1,
				eagerState: null,
				next: null
			};
			Ui(e) ? Wi(t, i) : (i = Gn(e, t, i, r), i !== null && (Vt(r, "dispatch()", e), os(i, e, r), Gi(i, t, r)));
		}
		function Bi(e, t, n) {
			var r = arguments;
			typeof r[3] == "function" && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."), r = is(e), Vi(e, t, n, r) && Vt(r, "setState()", e);
		}
		function Vi(e, t, n, r) {
			var i = {
				lane: r,
				revertLane: 0,
				gesture: null,
				action: n,
				hasEagerState: !1,
				eagerState: null,
				next: null
			};
			if (Ui(e)) Wi(t, i);
			else {
				var a = e.alternate;
				if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) {
					var o = K.H;
					K.H = Nh;
					try {
						var s = t.lastRenderedState, c = a(s, n);
						if (i.hasEagerState = !0, i.eagerState = c, Gd(c, s)) return Wn(e, t, i, 0), Rg === null && Un(), !1;
					} catch {} finally {
						K.H = o;
					}
				}
				if (n = Gn(e, t, i, r), n !== null) return os(n, e, r), Gi(n, t, r), !0;
			}
			return !1;
		}
		function Hi(e, t, n, r) {
			if (K.T === null && Gp === 0 && console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."), r = {
				lane: 2,
				revertLane: gn(),
				gesture: null,
				action: r,
				hasEagerState: !1,
				eagerState: null,
				next: null
			}, Ui(e)) {
				if (t) throw Error("Cannot update optimistic state while rendering.");
				console.error("Cannot call startTransition while rendering.");
			} else t = Gn(e, n, r, 2), t !== null && (Vt(2, "setOptimistic()", e), os(t, e, 2));
		}
		function Ui(e) {
			var t = e.alternate;
			return e === ph || t !== null && t === ph;
		}
		function Wi(e, t) {
			_h = gh = !0;
			var n = e.pending;
			n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
		}
		function Gi(e, t, n) {
			if (n & 4194048) {
				var r = t.lanes;
				r &= e.pendingLanes, n |= r, t.lanes = n, le(e, n);
			}
		}
		function Ki(e) {
			if (e !== null && typeof e != "function") {
				var t = String(e);
				Gh.has(t) || (Gh.add(t), console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.", e));
			}
		}
		function qi(e, t, n, r) {
			var i = e.memoizedState, a = n(r, i);
			if (e.mode & 8) {
				ge(!0);
				try {
					a = n(r, i);
				} finally {
					ge(!1);
				}
			}
			a === void 0 && (t = ne(t) || "Component", Vh.has(t) || (Vh.add(t), console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", t))), i = a == null ? i : Dc({}, i, a), e.memoizedState = i, e.lanes === 0 && (e.updateQueue.baseState = i);
		}
		function Ji(e, t, n, r, i, a, o) {
			var s = e.stateNode;
			if (typeof s.shouldComponentUpdate == "function") {
				if (n = s.shouldComponentUpdate(r, a, o), e.mode & 8) {
					ge(!0);
					try {
						n = s.shouldComponentUpdate(r, a, o);
					} finally {
						ge(!1);
					}
				}
				return n === void 0 && console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", ne(t) || "Component"), n;
			}
			return t.prototype && t.prototype.isPureReactComponent ? !Cn(n, r) || !Cn(i, a) : !0;
		}
		function Yi(e, t, n, r) {
			var i = t.state;
			typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== i && (e = w(e) || "Component", Ih.has(e) || (Ih.add(e), console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", e)), Kh.enqueueReplaceState(t, t.state, null));
		}
		function Xi(e, t) {
			var n = t;
			if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
			if (e = e.defaultProps) for (var i in n === t && (n = Dc({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
			return n;
		}
		function Zi(e, t) {
			try {
				qh = t.source ? w(t.source) : null, Jh = null;
				var n = t.value;
				if (K.actQueue !== null) K.thrownErrors.push(n);
				else {
					var r = e.onUncaughtError;
					r(n, { componentStack: t.stack });
				}
			} catch (e) {
				setTimeout(function() {
					throw e;
				});
			}
		}
		function Qi(e, t, n) {
			try {
				qh = n.source ? w(n.source) : null, Jh = w(t);
				var r = e.onCaughtError;
				r(n.value, {
					componentStack: n.stack,
					errorBoundary: t.tag === 1 ? t.stateNode : null
				});
			} catch (e) {
				setTimeout(function() {
					throw e;
				});
			}
		}
		function $i(e, t, n) {
			return n = Zn(n), n.tag = Wm, n.payload = { element: null }, n.callback = function() {
				I(t.source, Zi, e, t);
			}, n;
		}
		function ea(e) {
			return e = Zn(e), e.tag = Wm, e;
		}
		function ta(e, t, n, r) {
			var i = n.type.getDerivedStateFromError;
			if (typeof i == "function") {
				var a = r.value;
				e.payload = function() {
					return i(a);
				}, e.callback = function() {
					rc(n), I(r.source, Qi, t, n, r);
				};
			}
			var o = n.stateNode;
			o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
				rc(n), I(r.source, Qi, t, n, r), typeof i != "function" && (y_ === null ? y_ = new Set([this]) : y_.add(this)), mm(this, r), typeof i == "function" || !(n.lanes & 2) && console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", w(n) || "Unknown");
			});
		}
		function na(e, t, n, r, i) {
			if (n.flags |= 32768, Bd && Zs(e, i), typeof r == "object" && r && typeof r.then == "function") {
				if (t = n.alternate, t !== null && Mt(t, n, i, !0), Nf && (Pf = !0), n = Zm.current, n !== null) {
					switch (n.tag) {
						case 31:
						case 13: return Qm === null ? xs() : n.alternate === null && r_ === Ag && (r_ = Ng), n.flags &= -257, n.flags |= 65536, n.lanes = i, r === Tm ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = new Set([r]) : t.add(r), Hs(e, r, i)), !1;
						case 22: return n.flags |= 65536, r === Tm ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
							transitions: null,
							markerInstances: null,
							retryQueue: new Set([r])
						}, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = new Set([r]) : n.add(r)), Hs(e, r, i)), !1;
					}
					throw Error("Unexpected Suspense handler tag (" + n.tag + "). This is a bug in React.");
				}
				return Hs(e, r, i), xs(), !1;
			}
			if (Nf) return Pf = !0, t = Zm.current, t === null ? (r !== Rf && Et(Ve(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.", { cause: r }), n)), e = e.current.alternate, e.flags |= 65536, i &= -i, e.lanes |= i, r = Ve(r, n), i = $i(e.stateNode, r, i), er(e, i), r_ !== Pg && (r_ = Mg)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = i, r !== Rf && Et(Ve(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.", { cause: r }), n))), !1;
			var a = Ve(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.", { cause: r }), n);
			if (l_ === null ? l_ = [a] : l_.push(a), r_ !== Pg && (r_ = Mg), t === null) return !0;
			r = Ve(r, n), n = t;
			do {
				switch (n.tag) {
					case 3: return n.flags |= 65536, e = i & -i, n.lanes |= e, e = $i(n.stateNode, r, e), er(n, e), !1;
					case 1: if (t = n.type, a = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || a !== null && typeof a.componentDidCatch == "function" && (y_ === null || !y_.has(a)))) return n.flags |= 65536, i &= -i, n.lanes |= i, i = ea(i), ta(i, e, n, r), er(n, i), !1;
				}
				n = n.return;
			} while (n !== null);
			return !1;
		}
		function ra(e, t, n, r) {
			t.child = e === null ? Fm(t, null, n, r) : Pm(t, e.child, n, r);
		}
		function ia(e, t, n, r, i) {
			n = n.render;
			var a = t.ref;
			if ("ref" in r) {
				var o = {};
				for (var s in r) s !== "ref" && (o[s] = r[s]);
			} else o = r;
			return Pt(t), r = yr(e, t, n, o, a, i), s = Cr(), e !== null && !Xh ? (wr(e, t, i), Da(e, t, i)) : (Nf && s && We(t), t.flags |= 1, ra(e, t, r, i), t.child);
		}
		function aa(e, t, n, r, i) {
			if (e === null) {
				var a = n.type;
				return typeof a == "function" && !oc(a) && a.defaultProps === void 0 && n.compare === null ? (n = ec(a), t.tag = 15, t.type = n, _a(t, a), oa(e, t, n, r, i)) : (e = lc(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
			}
			if (a = e.child, !Oa(e, i)) {
				var o = a.memoizedProps;
				if (n = n.compare, n = n === null ? Cn : n, n(o, r) && e.ref === t.ref) return Da(e, t, i);
			}
			return t.flags |= 1, e = sc(a, r), e.ref = t.ref, e.return = t, t.child = e;
		}
		function oa(e, t, n, r, i) {
			if (e !== null) {
				var a = e.memoizedProps;
				if (Cn(a, r) && e.ref === t.ref && t.type === e.type) if (Xh = !1, t.pendingProps = r = a, Oa(e, i)) e.flags & 131072 && (Xh = !0);
				else return t.lanes = e.lanes, Da(e, t, i);
			}
			return pa(e, t, n, r, i);
		}
		function sa(e, t, n, r) {
			var i = r.children, a = e === null ? null : e.memoizedState;
			if (e === null && t.stateNode === null && (t.stateNode = {
				_visibility: Im,
				_pendingMarkers: null,
				_retryCache: null,
				_transitions: null
			}), r.mode === "hidden") {
				if (t.flags & 128) {
					if (a = a === null ? n : a.baseLanes | n, e !== null) {
						for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
						r = i & ~a;
					} else r = 0, t.child = null;
					return U(e, t, a, n, r);
				}
				if (n & 536870912) t.memoizedState = {
					baseLanes: 0,
					cachePool: null
				}, e !== null && xn(t, a === null ? null : a.cachePool), a === null ? sr(t) : or(t, a), ur(t);
				else return r = t.lanes = 536870912, U(e, t, a === null ? n : a.baseLanes | n, n, r);
			} else a === null ? (e !== null && xn(t, null), sr(t), dr(t)) : (xn(t, a.cachePool), or(t, a), dr(t), t.memoizedState = null);
			return ra(e, t, i, n), t.child;
		}
		function ca(e, t) {
			return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
				_visibility: Im,
				_pendingMarkers: null,
				_retryCache: null,
				_transitions: null
			}), t.sibling;
		}
		function U(e, t, n, r, i) {
			var a = bn();
			return a = a === null ? null : {
				parent: sl ? Yf._currentValue : Yf._currentValue2,
				pool: a
			}, t.memoizedState = {
				baseLanes: n,
				cachePool: a
			}, e !== null && xn(t, null), sr(t), ur(t), e !== null && Mt(e, t, r, !0), t.childLanes = i, null;
		}
		function la(e, t) {
			var n = t.hidden;
			return n !== void 0 && console.error("<Activity> doesn't accept a hidden prop. Use mode=\"hidden\" instead.\n- <Activity %s>\n+ <Activity %s>", !0 === n ? "hidden" : !1 === n ? "hidden={false}" : "hidden={...}", n ? "mode=\"hidden\"" : "mode=\"visible\""), t = Sa({
				mode: t.mode,
				children: t.children
			}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
		}
		function ua(e, t, n) {
			return Pm(t, e.child, null, n), e = la(t, t.pendingProps), e.flags |= 2, fr(t), t.memoizedState = null, e;
		}
		function da(e, t, n) {
			var r = t.pendingProps, i = (t.flags & 128) != 0;
			if (t.flags &= -129, e === null) {
				if (Nf) {
					if (r.mode === "hidden") return e = la(t, r), t.lanes = 536870912, ca(null, e);
					if (V(t), (e = Mf) ? (n = Eu(e, Lf), n !== null && (r = {
						dehydrated: n,
						treeContext: Ke(),
						retryLane: 536870912,
						hydrationErrors: null
					}, t.memoizedState = r, r = pc(n), r.return = t, t.child = r, jf = t, Mf = null)) : n = null, n === null) throw bt(t, e), L(t);
					return t.lanes = 536870912, null;
				}
				return la(t, r);
			}
			var a = e.memoizedState;
			if (a !== null) {
				var o = a.dehydrated;
				if (V(t), i) if (t.flags & 256) t.flags &= -257, t = ua(e, t, n);
				else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
				else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");
				else if (yt(), n & 536870912 && bs(t), Xh || Mt(e, t, n, !1), i = (n & e.childLanes) !== 0, Xh || i) {
					if (r = Rg, r !== null && (o = ue(r, n), o !== 0 && o !== a.retryLane)) throw a.retryLane = o, Kn(e, o), os(r, e, o), Yh;
					xs(), t = ua(e, t, n);
				} else e = a.treeContext, ul && (Mf = xu(o), jf = t, Nf = !0, If = null, Pf = !1, Ff = null, Lf = !1, e !== null && qe(t, e)), t = la(t, r), t.flags |= 4096;
				return t;
			}
			return a = e.child, r = {
				mode: r.mode,
				children: r.children
			}, n & 536870912 && (n & e.lanes) !== 0 && bs(t), e = sc(a, r), e.ref = t.ref, t.child = e, e.return = t, e;
		}
		function fa(e, t) {
			var n = t.ref;
			if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
			else {
				if (typeof n != "function" && typeof n != "object") throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");
				(e === null || e.ref !== n) && (t.flags |= 4194816);
			}
		}
		function pa(e, t, n, r, i) {
			if (n.prototype && typeof n.prototype.render == "function") {
				var a = ne(n) || "Unknown";
				Zh[a] || (console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", a, a), Zh[a] = !0);
			}
			return t.mode & 8 && Yp.recordLegacyContextWarning(t, null), e === null && (_a(t, t.type), n.contextTypes && (a = ne(n) || "Unknown", $h[a] || ($h[a] = !0, console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)", a)))), Pt(t), n = yr(e, t, n, r, void 0, i), r = Cr(), e !== null && !Xh ? (wr(e, t, i), Da(e, t, i)) : (Nf && r && We(t), t.flags |= 1, ra(e, t, n, i), t.child);
		}
		function ma(e, t, n, r, i, a) {
			return Pt(t), Th = -1, Eh = e !== null && e.type !== t.type, t.updateQueue = null, n = xr(t, r, n, i), br(e, t), r = Cr(), e !== null && !Xh ? (wr(e, t, a), Da(e, t, a)) : (Nf && r && We(t), t.flags |= 1, ra(e, t, n, a), t.child);
		}
		function ha(e, t, n, r, i) {
			switch (s(t)) {
				case !1:
					var a = t.stateNode, o = new t.type(t.memoizedProps, a.context).state;
					a.updater.enqueueSetState(a, o, null);
					break;
				case !0:
					t.flags |= 128, t.flags |= 65536, a = Error("Simulated error coming from DevTools");
					var c = i & -i;
					if (t.lanes |= c, o = Rg, o === null) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
					c = ea(c), ta(c, o, t, Ve(a, t)), er(t, c);
			}
			if (Pt(t), t.stateNode === null) {
				if (o = yd, a = n.contextType, "contextType" in n && a !== null && (a === void 0 || a.$$typeof !== Fc) && !Wh.has(n) && (Wh.add(n), c = a === void 0 ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof a == "object" ? a.$$typeof === Pc ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(a).join(", ") + "}." : " However, it is set to a " + typeof a + ".", console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", ne(n) || "Component", c)), typeof a == "object" && a && (o = Ft(a)), a = new n(r, o), t.mode & 8) {
					ge(!0);
					try {
						a = new n(r, o);
					} finally {
						ge(!1);
					}
				}
				if (o = t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = Kh, t.stateNode = a, a._reactInternals = t, a._reactInternalInstance = Fh, typeof n.getDerivedStateFromProps == "function" && o === null && (o = ne(n) || "Component", Lh.has(o) || (Lh.add(o), console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", o, a.state === null ? "null" : "undefined", o))), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function") {
					var l = c = o = null;
					if (typeof a.componentWillMount == "function" && !0 !== a.componentWillMount.__suppressDeprecationWarning ? o = "componentWillMount" : typeof a.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof a.componentWillReceiveProps == "function" && !0 !== a.componentWillReceiveProps.__suppressDeprecationWarning ? c = "componentWillReceiveProps" : typeof a.UNSAFE_componentWillReceiveProps == "function" && (c = "UNSAFE_componentWillReceiveProps"), typeof a.componentWillUpdate == "function" && !0 !== a.componentWillUpdate.__suppressDeprecationWarning ? l = "componentWillUpdate" : typeof a.UNSAFE_componentWillUpdate == "function" && (l = "UNSAFE_componentWillUpdate"), o !== null || c !== null || l !== null) {
						a = ne(n) || "Component";
						var u = typeof n.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
						zh.has(a) || (zh.add(a), console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", a, u, o === null ? "" : "\n  " + o, c === null ? "" : "\n  " + c, l === null ? "" : "\n  " + l));
					}
				}
				a = t.stateNode, o = ne(n) || "Component", a.render || (n.prototype && typeof n.prototype.render == "function" ? console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?", o) : console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.", o)), !a.getInitialState || a.getInitialState.isReactClassApproved || a.state || console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", o), a.getDefaultProps && !a.getDefaultProps.isReactClassApproved && console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", o), a.contextType && console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", o), n.childContextTypes && !Uh.has(n) && (Uh.add(n), console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", o)), n.contextTypes && !Hh.has(n) && (Hh.add(n), console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", o)), typeof a.componentShouldUpdate == "function" && console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", o), n.prototype && n.prototype.isPureReactComponent && a.shouldComponentUpdate !== void 0 && console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", ne(n) || "A pure component"), typeof a.componentDidUnmount == "function" && console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", o), typeof a.componentDidReceiveProps == "function" && console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", o), typeof a.componentWillRecieveProps == "function" && console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", o), typeof a.UNSAFE_componentWillRecieveProps == "function" && console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", o), c = a.props !== r, a.props !== void 0 && c && console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", o), a.defaultProps && console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", o, o), typeof a.getSnapshotBeforeUpdate != "function" || typeof a.componentDidUpdate == "function" || Rh.has(n) || (Rh.add(n), console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", ne(n))), typeof a.getDerivedStateFromProps == "function" && console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", o), typeof a.getDerivedStateFromError == "function" && console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", o), typeof n.getSnapshotBeforeUpdate == "function" && console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", o), (c = a.state) && (typeof c != "object" || Wc(c)) && console.error("%s.state: must be set to an object or null", o), typeof a.getChildContext == "function" && typeof n.childContextTypes != "object" && console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", o), a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, Yn(t), o = n.contextType, a.context = typeof o == "object" && o ? Ft(o) : yd, a.state === r && (o = ne(n) || "Component", Bh.has(o) || (Bh.add(o), console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", o))), t.mode & 8 && Yp.recordLegacyContextWarning(t, a), Yp.recordUnsafeLifecycleWarnings(t, a), a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (qi(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && (console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", w(t) || "Component"), Kh.enqueueReplaceState(a, a.state, null)), nr(t, r, a, i), tr(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & 16) !== zf && (t.flags |= 134217728), a = !0;
			} else if (e === null) {
				a = t.stateNode;
				var d = t.memoizedProps;
				c = Xi(n, d), a.props = c;
				var f = a.context;
				l = n.contextType, o = yd, typeof l == "object" && l && (o = Ft(l)), u = n.getDerivedStateFromProps, l = typeof u == "function" || typeof a.getSnapshotBeforeUpdate == "function", d = t.pendingProps !== d, l || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (d || f !== o) && Yi(t, a, r, o), Gm = !1;
				var p = t.memoizedState;
				a.state = p, nr(t, r, a, i), tr(), f = t.memoizedState, d || p !== f || Gm ? (typeof u == "function" && (qi(t, n, u, r), f = t.memoizedState), (c = Gm || Ji(t, n, c, r, p, f, o)) ? (l || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & 16) !== zf && (t.flags |= 134217728)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & 16) !== zf && (t.flags |= 134217728), t.memoizedProps = r, t.memoizedState = f), a.props = r, a.state = f, a.context = o, a = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), (t.mode & 16) !== zf && (t.flags |= 134217728), a = !1);
			} else {
				a = t.stateNode, Xn(e, t), o = t.memoizedProps, l = Xi(n, o), a.props = l, u = t.pendingProps, p = a.context, f = n.contextType, c = yd, typeof f == "object" && f && (c = Ft(f)), d = n.getDerivedStateFromProps, (f = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== u || p !== c) && Yi(t, a, r, c), Gm = !1, p = t.memoizedState, a.state = p, nr(t, r, a, i), tr();
				var m = t.memoizedState;
				o !== u || p !== m || Gm || e !== null && e.dependencies !== null && Nt(e.dependencies) ? (typeof d == "function" && (qi(t, n, d, r), m = t.memoizedState), (l = Gm || Ji(t, n, l, r, p, m, c) || e !== null && e.dependencies !== null && Nt(e.dependencies)) ? (f || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, m, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, m, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = m), a.props = r, a.state = m, a.context = c, a = l) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), a = !1);
			}
			if (c = a, fa(e, t), o = (t.flags & 128) != 0, c || o) {
				if (c = t.stateNode, _t(t), o && typeof n.getDerivedStateFromError != "function") n = null, np = -1;
				else if (n = cm(c), t.mode & 8) {
					ge(!0);
					try {
						cm(c);
					} finally {
						ge(!1);
					}
				}
				t.flags |= 1, e !== null && o ? (t.child = Pm(t, e.child, null, i), t.child = Pm(t, null, n, i)) : ra(e, t, n, i), t.memoizedState = c.state, e = t.child;
			} else e = Da(e, t, i);
			return i = t.stateNode, a && i.props !== r && (tg || console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", w(t) || "a component"), tg = !0), e;
		}
		function ga(e, t, n, r) {
			return wt(), t.flags |= 256, ra(e, t, n, r), t.child;
		}
		function _a(e, t) {
			t && t.childContextTypes && console.error("childContextTypes cannot be defined on a function component.\n  %s.childContextTypes = ...", t.displayName || t.name || "Component"), typeof t.getDerivedStateFromProps == "function" && (e = ne(t) || "Unknown", eg[e] || (console.error("%s: Function components do not support getDerivedStateFromProps.", e), eg[e] = !0)), typeof t.contextType == "object" && t.contextType !== null && (t = ne(t) || "Unknown", Qh[t] || (console.error("%s: Function components do not support contextType.", t), Qh[t] = !0));
		}
		function va(e) {
			return {
				baseLanes: e,
				cachePool: Sn()
			};
		}
		function ya(e, t, n) {
			return e = e === null ? 0 : e.childLanes & ~n, t && (e |= s_), e;
		}
		function ba(e, t, n) {
			var r = t.pendingProps;
			o(t) && (t.flags |= 128);
			var i = !1, a = (t.flags & 128) != 0, s;
			if ((s = a) || (s = e !== null && e.memoizedState === null ? !1 : (th.current & eh) !== 0), s && (i = !0, t.flags &= -129), s = (t.flags & 32) != 0, t.flags &= -33, e === null) {
				if (Nf) {
					if (i ? lr(t) : dr(t), (e = Mf) ? (n = Du(e, Lf), n !== null && (s = {
						dehydrated: n,
						treeContext: Ke(),
						retryLane: 536870912,
						hydrationErrors: null
					}, t.memoizedState = s, s = pc(n), s.return = t, t.child = s, jf = t, Mf = null)) : n = null, n === null) throw bt(t, e), L(t);
					return fu(n) ? t.lanes = 32 : t.lanes = 536870912, null;
				}
				var c = r.children;
				return r = r.fallback, i ? (dr(t), i = t.mode, c = Sa({
					mode: "hidden",
					children: c
				}, i), r = dc(r, i, n, null), c.return = t, r.return = t, c.sibling = r, t.child = c, r = t.child, r.memoizedState = va(n), r.childLanes = ya(e, s, n), t.memoizedState = ig, ca(null, r)) : (lr(t), xa(t, c));
			}
			var l = e.memoizedState;
			if (l !== null && (c = l.dehydrated, c !== null)) {
				if (a) t.flags & 256 ? (lr(t), t.flags &= -257, t = Ca(e, t, n)) : t.memoizedState === null ? (dr(t), c = r.fallback, i = t.mode, r = Sa({
					mode: "visible",
					children: r.children
				}, i), c = dc(c, i, n, null), c.flags |= 2, r.return = t, c.return = t, r.sibling = c, t.child = r, Pm(t, e.child, null, n), r = t.child, r.memoizedState = va(n), r.childLanes = ya(e, s, n), t.memoizedState = ig, t = ca(null, r)) : (dr(t), t.child = e.child, t.flags |= 128, t = null);
				else if (lr(t), yt(), n & 536870912 && bs(t), fu(c)) i = pu(c), s = i.digest, c = i.message, r = i.stack, i = i.componentStack, c = Error(c || "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."), c.stack = r || "", c.digest = s, s = i === void 0 ? null : i, r = {
					value: c,
					source: null,
					stack: s
				}, typeof s == "string" && mf.set(c, r), Et(r), t = Ca(e, t, n);
				else if (Xh || Mt(e, t, n, !1), s = (n & e.childLanes) !== 0, Xh || s) {
					if (s = Rg, s !== null && (r = ue(s, n), r !== 0 && r !== l.retryLane)) throw l.retryLane = r, Kn(e, r), os(s, e, r), Yh;
					du(c) || xs(), t = Ca(e, t, n);
				} else du(c) ? (t.flags |= 192, t.child = e.child, t = null) : (e = l.treeContext, ul && (Mf = Su(c), jf = t, Nf = !0, If = null, Pf = !1, Ff = null, Lf = !1, e !== null && qe(t, e)), t = xa(t, r.children), t.flags |= 4096);
				return t;
			}
			return i ? (dr(t), c = r.fallback, i = t.mode, l = e.child, a = l.sibling, r = sc(l, {
				mode: "hidden",
				children: r.children
			}), r.subtreeFlags = l.subtreeFlags & 65011712, a === null ? (c = dc(c, i, n, null), c.flags |= 2) : c = sc(a, c), c.return = t, r.return = t, r.sibling = c, t.child = r, ca(null, r), r = t.child, c = e.child.memoizedState, c === null ? c = va(n) : (i = c.cachePool, i === null ? i = Sn() : (l = sl ? Yf._currentValue : Yf._currentValue2, i = i.parent === l ? i : {
				parent: l,
				pool: l
			}), c = {
				baseLanes: c.baseLanes | n,
				cachePool: i
			}), r.memoizedState = c, r.childLanes = ya(e, s, n), t.memoizedState = ig, ca(e.child, r)) : (l !== null && (n & 62914560) === n && (n & e.lanes) !== 0 && bs(t), lr(t), n = e.child, e = n.sibling, n = sc(n, {
				mode: "visible",
				children: r.children
			}), n.return = t, n.sibling = null, e !== null && (s = t.deletions, s === null ? (t.deletions = [e], t.flags |= 16) : s.push(e)), t.child = n, t.memoizedState = null, n);
		}
		function xa(e, t) {
			return t = Sa({
				mode: "visible",
				children: t
			}, e.mode), t.return = e, e.child = t;
		}
		function Sa(e, t) {
			return e = c(22, e, null, t), e.lanes = 0, e;
		}
		function Ca(e, t, n) {
			return Pm(t, e.child, null, n), e = xa(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
		}
		function wa(e, t, n) {
			e.lanes |= t;
			var r = e.alternate;
			r !== null && (r.lanes |= t), jt(e.return, t, n);
		}
		function Ta(e, t, n, r, i, a) {
			var o = e.memoizedState;
			o === null ? e.memoizedState = {
				isBackwards: t,
				rendering: null,
				renderingStartTime: 0,
				last: r,
				tail: n,
				tailMode: i,
				treeForkCount: a
			} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
		}
		function Ea(e, t, n) {
			var r = t.pendingProps, i = r.revealOrder, a = r.tail, o = r.children, s = th.current;
			if ((r = (s & eh) !== 0) ? (s = s & $m | eh, t.flags |= 128) : s &= $m, D(th, s, t), s = i ?? "null", i !== "forwards" && i !== "unstable_legacy-backwards" && i !== "together" && i !== "independent" && !ng[s]) if (ng[s] = !0, i == null) console.error("The default for the <SuspenseList revealOrder=\"...\"> prop is changing. To be future compatible you must explictly specify either \"independent\" (the current default), \"together\", \"forwards\" or \"legacy_unstable-backwards\".");
			else if (i === "backwards") console.error("The rendering order of <SuspenseList revealOrder=\"backwards\"> is changing. To be future compatible you must specify revealOrder=\"legacy_unstable-backwards\" instead.");
			else if (typeof i == "string") switch (i.toLowerCase()) {
				case "together":
				case "forwards":
				case "backwards":
				case "independent":
					console.error("\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead.", i, i.toLowerCase());
					break;
				case "forward":
				case "backward":
					console.error("\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead.", i, i.toLowerCase());
					break;
				default: console.error("\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?", i);
			}
			else console.error("%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?", i);
			s = a ?? "null", rg[s] || (a == null ? (i === "forwards" || i === "backwards" || i === "unstable_legacy-backwards") && (rg[s] = !0, console.error("The default for the <SuspenseList tail=\"...\"> prop is changing. To be future compatible you must explictly specify either \"visible\" (the current default), \"collapsed\" or \"hidden\".")) : a !== "visible" && a !== "collapsed" && a !== "hidden" ? (rg[s] = !0, console.error("\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"visible\", \"collapsed\" or \"hidden\"?", a)) : i !== "forwards" && i !== "backwards" && i !== "unstable_legacy-backwards" && (rg[s] = !0, console.error("<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?", a)));
			a: if ((i === "forwards" || i === "backwards" || i === "unstable_legacy-backwards") && o != null && !1 !== o) if (Wc(o)) {
				for (s = 0; s < o.length; s++) if (!Hn(o[s], s)) break a;
			} else if (s = te(o), typeof s == "function") {
				if (s = s.call(o)) for (var c = s.next(), l = 0; !c.done; c = s.next()) {
					if (!Hn(c.value, l)) break a;
					l++;
				}
			} else console.error("A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?", i);
			if (ra(e, t, o, n), Nf ? (Je(), o = vf) : o = 0, !r && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
				if (e.tag === 13) e.memoizedState !== null && wa(e, n, t);
				else if (e.tag === 19) wa(e, n, t);
				else if (e.child !== null) {
					e.child.return = e, e = e.child;
					continue;
				}
				if (e === t) break a;
				for (; e.sibling === null;) {
					if (e.return === null || e.return === t) break a;
					e = e.return;
				}
				e.sibling.return = e.return, e = e.sibling;
			}
			switch (i) {
				case "forwards":
					for (n = t.child, i = null; n !== null;) e = n.alternate, e !== null && pr(e) === null && (i = n), n = n.sibling;
					n = i, n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), Ta(t, !1, i, n, a, o);
					break;
				case "backwards":
				case "unstable_legacy-backwards":
					for (n = null, i = t.child, t.child = null; i !== null;) {
						if (e = i.alternate, e !== null && pr(e) === null) {
							t.child = i;
							break;
						}
						e = i.sibling, i.sibling = n, n = i, i = e;
					}
					Ta(t, !0, n, null, a, o);
					break;
				case "together":
					Ta(t, !1, null, null, void 0, o);
					break;
				default: t.memoizedState = null;
			}
			return t.child;
		}
		function Da(e, t, n) {
			if (e !== null && (t.dependencies = e.dependencies), np = -1, i_ |= t.lanes, (n & t.childLanes) === 0) if (e !== null) {
				if (Mt(e, t, n, !1), (n & t.childLanes) === 0) return null;
			} else return null;
			if (e !== null && t.child !== e.child) throw Error("Resuming work not yet implemented.");
			if (t.child !== null) {
				for (e = t.child, n = sc(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = sc(e, e.pendingProps), n.return = t;
				n.sibling = null;
			}
			return t.child;
		}
		function Oa(e, t) {
			return (e.lanes & t) === 0 ? (e = e.dependencies, !!(e !== null && Nt(e))) : !0;
		}
		function ka(e, t, n) {
			switch (t.tag) {
				case 3:
					Xe(t, t.stateNode.containerInfo), kt(t, Yf, e.memoizedState.cache), wt();
					break;
				case 27:
				case 5:
					$e(t);
					break;
				case 4:
					Xe(t, t.stateNode.containerInfo);
					break;
				case 10:
					kt(t, t.type, t.memoizedProps.value);
					break;
				case 12:
					(n & t.childLanes) !== 0 && (t.flags |= 4), t.flags |= 2048;
					var r = t.stateNode;
					r.effectDuration = -0, r.passiveEffectDuration = -0;
					break;
				case 31:
					if (t.memoizedState !== null) return t.flags |= 128, V(t), null;
					break;
				case 13:
					if (r = t.memoizedState, r !== null) return r.dehydrated === null ? (n & t.child.childLanes) === 0 ? (lr(t), e = Da(e, t, n), e === null ? null : e.sibling) : ba(e, t, n) : (lr(t), t.flags |= 128, null);
					lr(t);
					break;
				case 19:
					var i = (e.flags & 128) != 0;
					if (r = (n & t.childLanes) !== 0, r ||= (Mt(e, t, n, !1), (n & t.childLanes) !== 0), i) {
						if (r) return Ea(e, t, n);
						t.flags |= 128;
					}
					if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), D(th, th.current, t), r) break;
					return null;
				case 22: return t.lanes = 0, sa(e, t, n, t.pendingProps);
				case 24: kt(t, Yf, e.memoizedState.cache);
			}
			return Da(e, t, n);
		}
		function Aa(e, t, n) {
			if (t._debugNeedsRemount && e !== null) {
				n = lc(t.type, t.key, t.pendingProps, t._debugOwner || null, t.mode, t.lanes), n._debugStack = t._debugStack, n._debugTask = t._debugTask;
				var r = t.return;
				if (r === null) throw Error("Cannot swap the root fiber.");
				if (e.alternate = null, t.alternate = null, n.index = t.index, n.sibling = t.sibling, n.return = t.return, n.ref = t.ref, n._debugInfo = t._debugInfo, t === r.child) r.child = n;
				else {
					var i = r.child;
					if (i === null) throw Error("Expected parent to have a child.");
					for (; i.sibling !== t;) if (i = i.sibling, i === null) throw Error("Expected to find the previous sibling.");
					i.sibling = n;
				}
				return t = r.deletions, t === null ? (r.deletions = [e], r.flags |= 16) : t.push(e), n.flags |= 2, n;
			}
			if (e !== null) if (e.memoizedProps !== t.pendingProps || t.type !== e.type) Xh = !0;
			else {
				if (!Oa(e, n) && !(t.flags & 128)) return Xh = !1, ka(e, t, n);
				Xh = !!(e.flags & 131072);
			}
			else Xh = !1, (r = Nf) && (Je(), r = (t.flags & 1048576) != 0), r && (r = t.index, Je(), Ue(t, vf, r));
			switch (t.lanes = 0, t.tag) {
				case 16:
					a: if (r = t.pendingProps, e = Dn(t.elementType), t.type = e, typeof e == "function") oc(e) ? (r = Xi(e, r), t.tag = 1, t.type = e = ec(e), t = ha(null, t, e, r, n)) : (t.tag = 0, _a(t, e), t.type = e = ec(e), t = pa(null, t, e, r, n));
					else {
						if (e != null) {
							if (i = e.$$typeof, i === G) {
								t.tag = 11, t.type = e = tc(e), t = ia(null, t, e, r, n);
								break a;
							} else if (i === Rc) {
								t.tag = 14, t = aa(null, t, e, r, n);
								break a;
							}
						}
						throw t = "", typeof e == "object" && e && e.$$typeof === zc && (t = " Did you wrap a component in React.lazy() more than once?"), e = ne(e) || e, Error("Element type is invalid. Received a promise that resolves to: " + e + ". Lazy element type must resolve to a class or function." + t);
					}
					return t;
				case 0: return pa(e, t, t.type, t.pendingProps, n);
				case 1: return r = t.type, i = Xi(r, t.pendingProps), ha(e, t, r, i, n);
				case 3:
					a: {
						if (Xe(t, t.stateNode.containerInfo), e === null) throw Error("Should have a current fiber. This is a bug in React.");
						var a = t.pendingProps;
						i = t.memoizedState, r = i.element, Xn(e, t), nr(t, a, null, n);
						var o = t.memoizedState;
						if (a = o.cache, kt(t, Yf, a), a !== i.cache && z(t, [Yf], n, !0), tr(), a = o.element, ul && i.isDehydrated) if (i = {
							element: a,
							isDehydrated: !1,
							cache: o.cache
						}, t.updateQueue.baseState = i, t.memoizedState = i, t.flags & 256) {
							t = ga(e, t, a, n);
							break a;
						} else if (a !== r) {
							r = Ve(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."), t), Et(r), t = ga(e, t, a, n);
							break a;
						} else for (ul && (Mf = bu(t.stateNode.containerInfo), jf = t, Nf = !0, If = null, Pf = !1, Ff = null, Lf = !0), e = Fm(t, null, a, n), t.child = e; e;) e.flags = e.flags & -3 | 4096, e = e.sibling;
						else {
							if (wt(), a === r) {
								t = Da(e, t, n);
								break a;
							}
							ra(e, t, a, n);
						}
						t = t.child;
					}
					return t;
				case 26: if (Xu) return fa(e, t), e === null ? (e = $u(t.type, null, t.pendingProps, null)) ? t.memoizedState = e : Nf || (t.stateNode = ad(t.type, t.pendingProps, Ye(Ef.current), t)) : t.memoizedState = $u(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
				case 27: if (ud) return $e(t), e === null && ud && Nf && (i = Ye(Ef.current), r = Qe(), i = t.stateNode = dd(t.type, t.pendingProps, i, r, !1), Pf || (r = Gu(i, t.type, t.pendingProps, r), r !== null && (vt(t, 0).serverProps = r)), jf = t, Lf = !0, Mf = Cu(t.type, i, Mf)), ra(e, t, t.pendingProps.children, n), fa(e, t), e === null && (t.flags |= 4194304), t.child;
				case 5: return e === null && Nf && (a = Qe(), r = Ju(t.type, t.pendingProps, a), i = Mf, (o = !i) || (o = wu(i, t.type, t.pendingProps, Lf), o === null ? a = !1 : (t.stateNode = o, Pf || (a = Gu(o, t.type, t.pendingProps, a), a !== null && (vt(t, 0).serverProps = a)), jf = t, Mf = yu(o), Lf = !1, a = !0), o = !a), o && (r && bt(t, i), L(t))), $e(t), i = t.type, a = t.pendingProps, o = e === null ? null : e.memoizedProps, r = a.children, nl(i, a) ? r = null : o !== null && nl(i, o) && (t.flags |= 32), t.memoizedState !== null && (i = yr(e, t, Sr, null, null, n), sl ? Al._currentValue = i : Al._currentValue2 = i), fa(e, t), ra(e, t, r, n), t.child;
				case 6: return e === null && Nf && (e = t.pendingProps, n = Qe(), e = Yu(e, n), n = Mf, (r = !n) || (r = Tu(n, t.pendingProps, Lf), r === null ? r = !1 : (t.stateNode = r, jf = t, Mf = null, r = !0), r = !r), r && (e && bt(t, n), L(t))), null;
				case 13: return ba(e, t, n);
				case 4: return Xe(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = Pm(t, null, r, n) : ra(e, t, r, n), t.child;
				case 11: return ia(e, t, t.type, t.pendingProps, n);
				case 7: return ra(e, t, t.pendingProps, n), t.child;
				case 8: return ra(e, t, t.pendingProps.children, n), t.child;
				case 12: return t.flags |= 4, t.flags |= 2048, r = t.stateNode, r.effectDuration = -0, r.passiveEffectDuration = -0, ra(e, t, t.pendingProps.children, n), t.child;
				case 10: return r = t.type, i = t.pendingProps, a = i.value, "value" in i || ag || (ag = !0, console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")), kt(t, r, a), ra(e, t, i.children, n), t.child;
				case 9: return i = t.type._context, r = t.pendingProps.children, typeof r != "function" && console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."), Pt(t), i = Ft(i), r = om(r, i, void 0), t.flags |= 1, ra(e, t, r, n), t.child;
				case 14: return aa(e, t, t.type, t.pendingProps, n);
				case 15: return oa(e, t, t.type, t.pendingProps, n);
				case 19: return Ea(e, t, n);
				case 31: return da(e, t, n);
				case 22: return sa(e, t, n, t.pendingProps);
				case 24: return Pt(t), r = Ft(Yf), e === null ? (i = bn(), i === null && (i = Rg, a = Rt(), i.pooledCache = a, zt(a), a !== null && (i.pooledCacheLanes |= n), i = a), t.memoizedState = {
					parent: r,
					cache: i
				}, Yn(t), kt(t, Yf, i)) : ((e.lanes & n) !== 0 && (Xn(e, t), nr(t, null, null, n), tr()), i = e.memoizedState, a = t.memoizedState, i.parent === r ? (r = a.cache, kt(t, Yf, r), r !== i.cache && z(t, [Yf], n, !0)) : (i = {
					parent: r,
					cache: r
				}, t.memoizedState = i, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = i), kt(t, Yf, r))), ra(e, t, t.pendingProps.children, n), t.child;
				case 29: throw t.pendingProps;
			}
			throw Error("Unknown unit of work tag (" + t.tag + "). This error is likely caused by a bug in React. Please file an issue.");
		}
		function ja(e) {
			e.flags |= 4;
		}
		function Ma(e) {
			ll && (e.flags |= 8);
		}
		function Na(e, t) {
			if (e !== null && e.child === t.child) return !1;
			if (t.flags & 16) return !0;
			for (e = t.child; e !== null;) {
				if (e.flags & 8218 || e.subtreeFlags & 8218) return !0;
				e = e.sibling;
			}
			return !1;
		}
		function Pa(e, t, n, r) {
			if (cl) for (n = t.child; n !== null;) {
				if (n.tag === 5 || n.tag === 6) el(e, n.stateNode);
				else if (!(n.tag === 4 || ud && n.tag === 27) && n.child !== null) {
					n.child.return = n, n = n.child;
					continue;
				}
				if (n === t) break;
				for (; n.sibling === null;) {
					if (n.return === null || n.return === t) return;
					n = n.return;
				}
				n.sibling.return = n.return, n = n.sibling;
			}
			else if (ll) for (var i = t.child; i !== null;) {
				if (i.tag === 5) {
					var a = i.stateNode;
					n && r && (a = lu(a, i.type, i.memoizedProps)), el(e, a);
				} else if (i.tag === 6) a = i.stateNode, n && r && (a = uu(a, i.memoizedProps)), el(e, a);
				else if (i.tag !== 4) {
					if (i.tag === 22 && i.memoizedState !== null) a = i.child, a !== null && (a.return = i), Pa(e, i, !0, !0);
					else if (i.child !== null) {
						i.child.return = i, i = i.child;
						continue;
					}
				}
				if (i === t) break;
				for (; i.sibling === null;) {
					if (i.return === null || i.return === t) return;
					i = i.return;
				}
				i.sibling.return = i.return, i = i.sibling;
			}
		}
		function Fa(e, t, n, r) {
			var i = !1;
			if (ll) for (var a = t.child; a !== null;) {
				if (a.tag === 5) {
					var o = a.stateNode;
					n && r && (o = lu(o, a.type, a.memoizedProps)), ou(e, o);
				} else if (a.tag === 6) o = a.stateNode, n && r && (o = uu(o, a.memoizedProps)), ou(e, o);
				else if (a.tag !== 4) {
					if (a.tag === 22 && a.memoizedState !== null) i = a.child, i !== null && (i.return = a), Fa(e, a, !0, !0), i = !0;
					else if (a.child !== null) {
						a.child.return = a, a = a.child;
						continue;
					}
				}
				if (a === t) break;
				for (; a.sibling === null;) {
					if (a.return === null || a.return === t) return i;
					a = a.return;
				}
				a.sibling.return = a.return, a = a.sibling;
			}
			return i;
		}
		function Ia(e, t) {
			if (ll && Na(e, t)) {
				e = t.stateNode;
				var n = e.containerInfo, r = au();
				Fa(r, t, !1, !1), e.pendingChildren = r, ja(t), su(n, r);
			}
		}
		function La(e, t, n, r) {
			if (cl) e.memoizedProps !== r && ja(t);
			else if (ll) {
				var i = e.stateNode, a = e.memoizedProps;
				if ((e = Na(e, t)) || a !== r) {
					var o = Qe();
					a = iu(i, n, a, r, !e, null), a === i ? t.stateNode = i : (Ma(t), tl(a, n, r, o) && ja(t), t.stateNode = a, e && Pa(a, t, !1, !1));
				} else t.stateNode = i;
			}
		}
		function Ra(e, t, n, r, i) {
			if ((e.mode & 32) !== zf && (n === null ? xl(t, r) : Sl(t, n, r))) {
				if (e.flags |= 16777216, (i & 335544128) === i || Cl(t, r)) if (wl(e.stateNode, t, r)) e.flags |= 8192;
				else if (_s()) e.flags |= 8192;
				else throw Em = Tm, Cm;
			} else e.flags &= -16777217;
		}
		function za(e, t) {
			if (sd(t)) {
				if (e.flags |= 16777216, !cd(t)) if (_s()) e.flags |= 8192;
				else throw Em = Tm, Cm;
			} else e.flags &= -16777217;
		}
		function Ba(e, t) {
			t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : j(), e.lanes |= t, c_ |= t);
		}
		function Va(e, t) {
			if (!Nf) switch (e.tailMode) {
				case "hidden":
					t = e.tail;
					for (var n = null; t !== null;) t.alternate !== null && (n = t), t = t.sibling;
					n === null ? e.tail = null : n.sibling = null;
					break;
				case "collapsed":
					n = e.tail;
					for (var r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
					r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null;
			}
		}
		function Ha(e) {
			var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
			if (t) if ((e.mode & 2) !== zf) {
				for (var i = e.selfBaseDuration, a = e.child; a !== null;) n |= a.lanes | a.childLanes, r |= a.subtreeFlags & 65011712, r |= a.flags & 65011712, i += a.treeBaseDuration, a = a.sibling;
				e.treeBaseDuration = i;
			} else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 65011712, r |= i.flags & 65011712, i.return = e, i = i.sibling;
			else if ((e.mode & 2) !== zf) {
				i = e.actualDuration, a = e.selfBaseDuration;
				for (var o = e.child; o !== null;) n |= o.lanes | o.childLanes, r |= o.subtreeFlags, r |= o.flags, i += o.actualDuration, a += o.treeBaseDuration, o = o.sibling;
				e.actualDuration = i, e.treeBaseDuration = a;
			} else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
			return e.subtreeFlags |= r, e.childLanes = n, t;
		}
		function Ua(e, t, n) {
			var r = t.pendingProps;
			switch (Ge(t), t.tag) {
				case 16:
				case 15:
				case 0:
				case 11:
				case 7:
				case 8:
				case 12:
				case 9:
				case 14: return Ha(t), null;
				case 1: return Ha(t), null;
				case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), At(Yf, t), Ze(t), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (R(t) ? (Dt(), ja(t)) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Tt())), Ia(e, t), Ha(t), null;
				case 26: if (Xu) {
					var i = t.type, a = t.memoizedState;
					return e === null ? (ja(t), a === null ? (Ha(t), Ra(t, i, null, r, n)) : (Ha(t), za(t, a))) : a ? a === e.memoizedState ? (Ha(t), t.flags &= -16777217) : (ja(t), Ha(t), za(t, a)) : (a = e.memoizedProps, cl ? a !== r && ja(t) : La(e, t, i, r), Ha(t), Ra(t, i, a, r, n)), null;
				}
				case 27: if (ud) {
					if (F(t), n = Ye(Ef.current), i = t.type, e !== null && t.stateNode != null) cl ? e.memoizedProps !== r && ja(t) : La(e, t, i, r);
					else {
						if (!r) {
							if (t.stateNode === null) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
							return Ha(t), null;
						}
						e = Qe(), R(t) ? xt(t, e) : (e = dd(i, r, n, e, !0), t.stateNode = e, ja(t));
					}
					return Ha(t), null;
				}
				case 5:
					if (F(t), i = t.type, e !== null && t.stateNode != null) La(e, t, i, r);
					else {
						if (!r) {
							if (t.stateNode === null) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
							return Ha(t), null;
						}
						if (a = Qe(), R(t)) xt(t, a), Ru(t.stateNode, i, r, a) && (t.flags |= 64);
						else {
							var o = Ye(Ef.current);
							o = $c(i, r, o, a, t), Ma(t), Pa(o, t, !1, !1), t.stateNode = o, tl(o, i, r, a) && ja(t);
						}
					}
					return Ha(t), Ra(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
				case 6:
					if (e && t.stateNode != null) n = e.memoizedProps, cl ? n !== r && ja(t) : ll && (n === r ? t.stateNode = e.stateNode : (e = Ye(Ef.current), n = Qe(), Ma(t), t.stateNode = rl(r, e, n, t)));
					else {
						if (typeof r != "string" && t.stateNode === null) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
						if (e = Ye(Ef.current), n = Qe(), R(t)) {
							if (!ul) throw Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");
							if (e = t.stateNode, n = t.memoizedProps, i = !Pf, r = null, a = jf, a !== null) switch (a.tag) {
								case 3:
									i && (i = Ku(e, n, r), i !== null && (vt(t, 0).serverProps = i));
									break;
								case 27:
								case 5: r = a.memoizedProps, i && (i = Ku(e, n, r), i !== null && (vt(t, 0).serverProps = i));
							}
							ku(e, n, t, r) || L(t, !0);
						} else Ma(t), t.stateNode = rl(r, e, n, t);
					}
					return Ha(t), null;
				case 31:
					if (n = t.memoizedState, e === null || e.memoizedState !== null) {
						if (r = R(t), n !== null) {
							if (e === null) {
								if (!r) throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");
								if (!ul) throw Error("Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");
								if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");
								Au(e, t), Ha(t), (t.mode & 2) !== zf && n !== null && (e = t.child, e !== null && (t.treeBaseDuration -= e.treeBaseDuration));
							} else Dt(), wt(), !(t.flags & 128) && (n = t.memoizedState = null), t.flags |= 4, Ha(t), (t.mode & 2) !== zf && n !== null && (e = t.child, e !== null && (t.treeBaseDuration -= e.treeBaseDuration));
							e = !1;
						} else n = Tt(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
						if (!e) return t.flags & 256 ? (fr(t), t) : (fr(t), null);
						if (t.flags & 128) throw Error("Client rendering an Activity suspended it again. This is a bug in React.");
					}
					return Ha(t), null;
				case 13:
					if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
						if (i = r, a = R(t), i !== null && i.dehydrated !== null) {
							if (e === null) {
								if (!a) throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");
								if (!ul) throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");
								if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
								ju(a, t), Ha(t), (t.mode & 2) !== zf && i !== null && (i = t.child, i !== null && (t.treeBaseDuration -= i.treeBaseDuration));
							} else Dt(), wt(), !(t.flags & 128) && (i = t.memoizedState = null), t.flags |= 4, Ha(t), (t.mode & 2) !== zf && i !== null && (i = t.child, i !== null && (t.treeBaseDuration -= i.treeBaseDuration));
							i = !1;
						} else i = Tt(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = i), i = !0;
						if (!i) return t.flags & 256 ? (fr(t), t) : (fr(t), null);
					}
					return fr(t), t.flags & 128 ? (t.lanes = n, (t.mode & 2) !== zf && an(t), t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, i = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (i = r.alternate.memoizedState.cachePool.pool), a = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (a = r.memoizedState.cachePool.pool), a !== i && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), Ba(t, t.updateQueue), Ha(t), (t.mode & 2) !== zf && n && (e = t.child, e !== null && (t.treeBaseDuration -= e.treeBaseDuration)), null);
				case 4: return Ze(t), Ia(e, t), e === null && fl(t.stateNode.containerInfo), Ha(t), null;
				case 10: return At(t.type, t), Ha(t), null;
				case 19:
					if (E(th, t), r = t.memoizedState, r === null) return Ha(t), null;
					if (i = (t.flags & 128) != 0, a = r.rendering, a === null) if (i) Va(r, !1);
					else {
						if (r_ !== Ag || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
							if (a = pr(e), a !== null) {
								for (t.flags |= 128, Va(r, !1), e = a.updateQueue, t.updateQueue = e, Ba(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) cc(n, e), n = n.sibling;
								return D(th, th.current & $m | eh, t), Nf && He(t, r.treeForkCount), t.child;
							}
							e = e.sibling;
						}
						r.tail !== null && Ad() > h_ && (t.flags |= 128, i = !0, Va(r, !1), t.lanes = 4194304);
					}
					else {
						if (!i) if (e = pr(a), e !== null) {
							if (t.flags |= 128, i = !0, e = e.updateQueue, t.updateQueue = e, Ba(t, e), Va(r, !0), r.tail === null && r.tailMode === "hidden" && !a.alternate && !Nf) return Ha(t), null;
						} else 2 * Ad() - r.renderingStartTime > h_ && n !== 536870912 && (t.flags |= 128, i = !0, Va(r, !1), t.lanes = 4194304);
						r.isBackwards ? (a.sibling = t.child, t.child = a) : (e = r.last, e === null ? t.child = a : e.sibling = a, r.last = a);
					}
					return r.tail === null ? (Ha(t), null) : (e = r.tail, r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ad(), e.sibling = null, n = th.current, n = i ? n & $m | eh : n & $m, D(th, n, t), Nf && He(t, r.treeForkCount), e);
				case 22:
				case 23: return fr(t), cr(t), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (Ha(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Ha(t), n = t.updateQueue, n !== null && Ba(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && E(Jp, t), null;
				case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), At(Yf, t), Ha(t), null;
				case 25: return null;
				case 30: return null;
			}
			throw Error("Unknown unit of work tag (" + t.tag + "). This error is likely caused by a bug in React. Please file an issue.");
		}
		function Wa(e, t) {
			switch (Ge(t), t.tag) {
				case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, (t.mode & 2) !== zf && an(t), t) : null;
				case 3: return At(Yf, t), Ze(t), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
				case 26:
				case 27:
				case 5: return F(t), null;
				case 31:
					if (t.memoizedState !== null) {
						if (fr(t), t.alternate === null) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");
						wt();
					}
					return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, (t.mode & 2) !== zf && an(t), t) : null;
				case 13:
					if (fr(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
						if (t.alternate === null) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");
						wt();
					}
					return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, (t.mode & 2) !== zf && an(t), t) : null;
				case 19: return E(th, t), null;
				case 4: return Ze(t), null;
				case 10: return At(t.type, t), null;
				case 22:
				case 23: return fr(t), cr(t), e !== null && E(Jp, t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, (t.mode & 2) !== zf && an(t), t) : null;
				case 24: return At(Yf, t), null;
				case 25: return null;
				default: return null;
			}
		}
		function Ga(e, t) {
			switch (Ge(t), t.tag) {
				case 3:
					At(Yf, t), Ze(t);
					break;
				case 26:
				case 27:
				case 5:
					F(t);
					break;
				case 4:
					Ze(t);
					break;
				case 31:
					t.memoizedState !== null && fr(t);
					break;
				case 13:
					fr(t);
					break;
				case 19:
					E(th, t);
					break;
				case 10:
					At(t.type, t);
					break;
				case 22:
				case 23:
					fr(t), cr(t), e !== null && E(Jp, t);
					break;
				case 24: At(Yf, t);
			}
		}
		function Ka(e) {
			return (e.mode & 2) !== zf;
		}
		function qa(e, t) {
			Ka(e) ? (rn(), Ya(t, e), nn()) : Ya(t, e);
		}
		function Ja(e, t, n) {
			Ka(e) ? (rn(), W(n, e, t), nn()) : W(n, e, t);
		}
		function Ya(e, t) {
			try {
				var n = t.updateQueue, r = n === null ? null : n.lastEffect;
				if (r !== null) {
					var i = r.next;
					n = i;
					do {
						if ((n.tag & e) === e && (r = void 0, (e & ih) !== nh && (Y_ = !0), r = I(t, vm, n), (e & ih) !== nh && (Y_ = !1), r !== void 0 && typeof r != "function")) {
							var a = void 0;
							a = (n.tag & ah) === 0 ? (n.tag & ih) === 0 ? "useEffect" : "useInsertionEffect" : "useLayoutEffect";
							var o = void 0;
							o = r === null ? " You returned null. If your effect does not require clean up, return undefined (or nothing)." : typeof r.then == "function" ? "\n\nIt looks like you wrote " + a + "(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n" + a + "(() => {\n  async function fetchData() {\n    // You can await here\n    const response = await MyAPI.getData(someId);\n    // ...\n  }\n  fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching" : " You returned: " + r, I(t, function(e, t) {
								console.error("%s must not return anything besides a function, which is used for clean-up.%s", e, t);
							}, a, o);
						}
						n = n.next;
					} while (n !== i);
				}
			} catch (e) {
				Vs(t, t.return, e);
			}
		}
		function W(e, t, n) {
			try {
				var r = t.updateQueue, i = r === null ? null : r.lastEffect;
				if (i !== null) {
					var a = i.next;
					r = a;
					do {
						if ((r.tag & e) === e) {
							var o = r.inst, s = o.destroy;
							s !== void 0 && (o.destroy = void 0, (e & ih) !== nh && (Y_ = !0), i = t, I(i, bm, i, n, s), (e & ih) !== nh && (Y_ = !1));
						}
						r = r.next;
					} while (r !== a);
				}
			} catch (e) {
				Vs(t, t.return, e);
			}
		}
		function Xa(e, t) {
			Ka(e) ? (rn(), Ya(t, e), nn()) : Ya(t, e);
		}
		function Za(e, t, n) {
			Ka(e) ? (rn(), W(n, e, t), nn()) : W(n, e, t);
		}
		function Qa(e) {
			var t = e.updateQueue;
			if (t !== null) {
				var n = e.stateNode;
				e.type.defaultProps || "ref" in e.memoizedProps || tg || (n.props !== e.memoizedProps && console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", w(e) || "instance"), n.state !== e.memoizedState && console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", w(e) || "instance"));
				try {
					I(e, ar, t, n);
				} catch (t) {
					Vs(e, e.return, t);
				}
			}
		}
		function $a(e, t, n) {
			return e.getSnapshotBeforeUpdate(t, n);
		}
		function eo(e, t) {
			var n = t.memoizedProps, r = t.memoizedState;
			t = e.stateNode, e.type.defaultProps || "ref" in e.memoizedProps || tg || (t.props !== e.memoizedProps && console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", w(e) || "instance"), t.state !== e.memoizedState && console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", w(e) || "instance"));
			try {
				var i = Xi(e.type, n), a = I(e, $a, t, i, r);
				n = og, a !== void 0 || n.has(e.type) || (n.add(e.type), I(e, function() {
					console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", w(e));
				})), t.__reactInternalSnapshotBeforeUpdate = a;
			} catch (t) {
				Vs(e, e.return, t);
			}
		}
		function to(e, t, n) {
			n.props = Xi(e.type, e.memoizedProps), n.state = e.memoizedState, Ka(e) ? (rn(), I(e, gm, e, t, n), nn()) : I(e, gm, e, t, n);
		}
		function no(e) {
			var t = e.ref;
			if (t !== null) {
				switch (e.tag) {
					case 26:
					case 27:
					case 5:
						var n = Jc(e.stateNode);
						break;
					case 30:
						n = e.stateNode;
						break;
					default: n = e.stateNode;
				}
				if (typeof t == "function") if (Ka(e)) try {
					rn(), e.refCleanup = t(n);
				} finally {
					nn();
				}
				else e.refCleanup = t(n);
				else typeof t == "string" ? console.error("String refs are no longer supported.") : t.hasOwnProperty("current") || console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", w(e)), t.current = n;
			}
		}
		function ro(e, t) {
			try {
				I(e, no, e);
			} catch (n) {
				Vs(e, t, n);
			}
		}
		function io(e, t) {
			var n = e.ref, r = e.refCleanup;
			if (n !== null) if (typeof r == "function") try {
				if (Ka(e)) try {
					rn(), I(e, r);
				} finally {
					nn(e);
				}
				else I(e, r);
			} catch (n) {
				Vs(e, t, n);
			} finally {
				e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
			}
			else if (typeof n == "function") try {
				if (Ka(e)) try {
					rn(), I(e, n, null);
				} finally {
					nn(e);
				}
				else I(e, n, null);
			} catch (n) {
				Vs(e, t, n);
			}
			else n.current = null;
		}
		function ao(e, t, n, r) {
			var i = e.memoizedProps, a = i.id, o = i.onCommit;
			i = i.onRender, t = t === null ? "mount" : "update", Np && (t = "nested-update"), typeof i == "function" && i(a, t, e.actualDuration, e.treeBaseDuration, e.actualStartTime, n), typeof o == "function" && o(a, t, r, n);
		}
		function oo(e, t, n, r) {
			var i = e.memoizedProps;
			e = i.id, i = i.onPostCommit, t = t === null ? "mount" : "update", Np && (t = "nested-update"), typeof i == "function" && i(e, t, r, n);
		}
		function so(e) {
			var t = e.type, n = e.memoizedProps, r = e.stateNode;
			try {
				I(e, Kl, r, t, n, e);
			} catch (t) {
				Vs(e, e.return, t);
			}
		}
		function co(e, t, n) {
			try {
				I(e, ql, e.stateNode, e.type, n, t, e);
			} catch (t) {
				Vs(e, e.return, t);
			}
		}
		function lo(e) {
			return e.tag === 5 || e.tag === 3 || (Xu ? e.tag === 26 : !1) || (ud ? e.tag === 27 && hd(e.type) : !1) || e.tag === 4;
		}
		function uo(e) {
			a: for (;;) {
				for (; e.sibling === null;) {
					if (e.return === null || lo(e.return)) return null;
					e = e.return;
				}
				for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
					if (ud && e.tag === 27 && hd(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
					e.child.return = e, e = e.child;
				}
				if (!(e.flags & 2)) return e.stateNode;
			}
		}
		function fo(e, t, n) {
			var r = e.tag;
			if (r === 5 || r === 6) e = e.stateNode, t ? Yl(n, e, t) : Wl(n, e);
			else if (r !== 4 && (ud && r === 27 && hd(e.type) && (n = e.stateNode, t = null), e = e.child, e !== null)) for (fo(e, t, n), e = e.sibling; e !== null;) fo(e, t, n), e = e.sibling;
		}
		function po(e, t, n) {
			var r = e.tag;
			if (r === 5 || r === 6) e = e.stateNode, t ? Jl(n, e, t) : Ul(n, e);
			else if (r !== 4 && (ud && r === 27 && hd(e.type) && (n = e.stateNode), e = e.child, e !== null)) for (po(e, t, n), e = e.sibling; e !== null;) po(e, t, n), e = e.sibling;
		}
		function mo(e) {
			for (var t, n = e.return; n !== null;) {
				if (lo(n)) {
					t = n;
					break;
				}
				n = n.return;
			}
			if (cl) {
				if (t == null) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
				switch (t.tag) {
					case 27: if (ud) {
						t = t.stateNode, n = uo(e), po(e, n, t);
						break;
					}
					case 5:
						n = t.stateNode, t.flags & 32 && (Ql(n), t.flags &= -33), t = uo(e), po(e, t, n);
						break;
					case 3:
					case 4:
						t = t.stateNode.containerInfo, n = uo(e), fo(e, n, t);
						break;
					default: throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.");
				}
			}
		}
		function ho(e, t, n) {
			e = e.containerInfo;
			try {
				I(t, cu, e, n);
			} catch (e) {
				Vs(t, t.return, e);
			}
		}
		function go(e) {
			var t = e.stateNode, n = e.memoizedProps;
			try {
				I(e, fd, e.type, n, t, e);
			} catch (t) {
				Vs(e, e.return, t);
			}
		}
		function _o(e, t) {
			return t.tag === 31 ? (t = t.memoizedState, e.memoizedState !== null && t === null) : t.tag === 13 ? (e = e.memoizedState, t = t.memoizedState, e !== null && e.dehydrated !== null && (t === null || t.dehydrated === null)) : t.tag === 3 ? e.memoizedState.isDehydrated && (t.flags & 256) == 0 : !1;
		}
		function vo(e, t) {
			for (Zc(e.containerInfo), dg = t; dg !== null;) if (e = dg, t = e.child, e.subtreeFlags & 1028 && t !== null) t.return = e, dg = t;
			else for (; dg !== null;) {
				t = e = dg;
				var n = t.alternate, r = t.flags;
				switch (t.tag) {
					case 0:
						if (r & 4 && (t = t.updateQueue, t = t === null ? null : t.events, t !== null)) for (n = 0; n < t.length; n++) r = t[n], r.ref.impl = r.nextImpl;
						break;
					case 11:
					case 15: break;
					case 1:
						r & 1024 && n !== null && eo(t, n);
						break;
					case 3:
						r & 1024 && cl && ru(t.stateNode.containerInfo);
						break;
					case 5:
					case 26:
					case 27:
					case 6:
					case 4:
					case 17: break;
					default: if (r & 1024) throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.");
				}
				if (t = e.sibling, t !== null) {
					t.return = e.return, dg = t;
					break;
				}
				dg = e.return;
			}
		}
		function yo(e, t, n) {
			var r = qt(), i = Yt(), a = Zt(), o = Qt(), s = n.flags;
			switch (n.tag) {
				case 0:
				case 11:
				case 15:
					jo(e, n), s & 4 && qa(n, ah | rh);
					break;
				case 1:
					if (jo(e, n), s & 4) if (e = n.stateNode, t === null) n.type.defaultProps || "ref" in n.memoizedProps || tg || (e.props !== n.memoizedProps && console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", w(n) || "instance"), e.state !== n.memoizedState && console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", w(n) || "instance")), Ka(n) ? (rn(), I(n, um, n, e), nn()) : I(n, um, n, e);
					else {
						var c = Xi(n.type, t.memoizedProps);
						t = t.memoizedState, n.type.defaultProps || "ref" in n.memoizedProps || tg || (e.props !== n.memoizedProps && console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", w(n) || "instance"), e.state !== n.memoizedState && console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", w(n) || "instance")), Ka(n) ? (rn(), I(n, fm, n, e, c, t, e.__reactInternalSnapshotBeforeUpdate), nn()) : I(n, fm, n, e, c, t, e.__reactInternalSnapshotBeforeUpdate);
					}
					s & 64 && Qa(n), s & 512 && ro(n, n.return);
					break;
				case 3:
					if (t = Ut(), jo(e, n), s & 64 && (s = n.updateQueue, s !== null)) {
						if (c = null, n.child !== null) switch (n.child.tag) {
							case 27:
							case 5:
								c = Jc(n.child.stateNode);
								break;
							case 1: c = n.child.stateNode;
						}
						try {
							I(n, ar, s, c);
						} catch (e) {
							Vs(n, n.return, e);
						}
					}
					e.effectDuration += Wt(t);
					break;
				case 27: ud && t === null && s & 4 && go(n);
				case 26:
				case 5:
					if (jo(e, n), t === null) {
						if (s & 4) so(n);
						else if (s & 64) {
							e = n.type, t = n.memoizedProps, c = n.stateNode;
							try {
								I(n, Pu, c, e, t, n);
							} catch (e) {
								Vs(n, n.return, e);
							}
						}
					}
					s & 512 && ro(n, n.return);
					break;
				case 12:
					if (s & 4) {
						s = Ut(), jo(e, n), e = n.stateNode, e.effectDuration += Gt(s);
						try {
							I(n, ao, n, t, $f, e.effectDuration);
						} catch (e) {
							Vs(n, n.return, e);
						}
					} else jo(e, n);
					break;
				case 31:
					jo(e, n), s & 4 && Co(e, n);
					break;
				case 13:
					jo(e, n), s & 4 && wo(e, n), s & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (s = Gs.bind(null, n), mu(e, s))));
					break;
				case 22:
					if (s = n.memoizedState !== null || sg, !s) {
						t = t !== null && t.memoizedState !== null || cg, c = sg;
						var l = cg;
						sg = s, (cg = t) && !l ? (Fo(e, n, (n.subtreeFlags & 8772) != 0), (n.mode & 2) !== zf && 0 <= ap && 0 <= op && .05 < op - ap && N(n, ap, op)) : jo(e, n), sg = c, cg = l;
					}
					break;
				case 30: break;
				default: jo(e, n);
			}
			(n.mode & 2) !== zf && 0 <= ap && 0 <= op && ((cp || .05 < ip) && Te(n, ap, op, ip, sp), n.alternate === null && n.return !== null && n.return.alternate !== null && .05 < op - ap && (_o(n.return.alternate, n.return) || Se(n, ap, op, "Mount"))), Jt(r), Xt(i), sp = a, cp = o;
		}
		function bo(e) {
			var t = e.alternate;
			t !== null && (e.alternate = null, bo(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && bl(t)), e.stateNode = null, e._debugOwner = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
		}
		function xo(e, t, n) {
			for (n = n.child; n !== null;) So(e, t, n), n = n.sibling;
		}
		function So(e, t, n) {
			if (Rd && typeof Rd.onCommitFiberUnmount == "function") try {
				Rd.onCommitFiberUnmount(Ld, n);
			} catch (e) {
				zd || (zd = !0, console.error("React instrumentation encountered an error: %o", e));
			}
			var r = qt(), i = Yt(), a = Zt(), o = Qt();
			switch (n.tag) {
				case 26: if (Xu) {
					cg || io(n, t), xo(e, t, n), n.memoizedState ? td(n.memoizedState) : n.stateNode && id(n.stateNode);
					break;
				}
				case 27: if (ud) {
					cg || io(n, t);
					var s = mg, c = hg;
					hd(n.type) && (mg = n.stateNode, hg = !1), xo(e, t, n), I(n, pd, n.stateNode), mg = s, hg = c;
					break;
				}
				case 5: cg || io(n, t);
				case 6:
					if (cl) {
						if (s = mg, c = hg, mg = null, xo(e, t, n), mg = s, hg = c, mg !== null) if (hg) try {
							I(n, Zl, mg, n.stateNode);
						} catch (e) {
							Vs(n, t, e);
						}
						else try {
							I(n, Xl, mg, n.stateNode);
						} catch (e) {
							Vs(n, t, e);
						}
					} else xo(e, t, n);
					break;
				case 18:
					cl && mg !== null && (hg ? Vu(mg, n.stateNode) : Bu(mg, n.stateNode));
					break;
				case 4:
					cl ? (s = mg, c = hg, mg = n.stateNode.containerInfo, hg = !0, xo(e, t, n), mg = s, hg = c) : (ll && ho(n.stateNode, n, au()), xo(e, t, n));
					break;
				case 0:
				case 11:
				case 14:
				case 15:
					W(ih, n, t), cg || Ja(n, t, ah), xo(e, t, n);
					break;
				case 1:
					cg || (io(n, t), s = n.stateNode, typeof s.componentWillUnmount == "function" && to(n, t, s)), xo(e, t, n);
					break;
				case 21:
					xo(e, t, n);
					break;
				case 22:
					cg = (s = cg) || n.memoizedState !== null, xo(e, t, n), cg = s;
					break;
				default: xo(e, t, n);
			}
			(n.mode & 2) !== zf && 0 <= ap && 0 <= op && (cp || .05 < ip) && Te(n, ap, op, ip, sp), Jt(r), Xt(i), sp = a, cp = o;
		}
		function Co(e, t) {
			if (ul && t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
				e = e.dehydrated;
				try {
					I(t, Iu, e);
				} catch (e) {
					Vs(t, t.return, e);
				}
			}
		}
		function wo(e, t) {
			if (ul && t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
				I(t, Lu, e);
			} catch (e) {
				Vs(t, t.return, e);
			}
		}
		function To(e) {
			switch (e.tag) {
				case 31:
				case 13:
				case 19:
					var t = e.stateNode;
					return t === null && (t = e.stateNode = new ug()), t;
				case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new ug()), t;
				default: throw Error("Unexpected Suspense handler tag (" + e.tag + "). This is a bug in React.");
			}
		}
		function Eo(e, t) {
			var n = To(e);
			t.forEach(function(t) {
				if (!n.has(t)) {
					if (n.add(t), Bd) if (fg !== null && pg !== null) Zs(pg, fg);
					else throw Error("Expected finished root and lanes to be set. This is a bug in React.");
					var r = Ks.bind(null, e, t);
					t.then(r, r);
				}
			});
		}
		function Do(e, t) {
			var n = t.deletions;
			if (n !== null) for (var r = 0; r < n.length; r++) {
				var i = e, a = t, o = n[r], s = qt();
				if (cl) {
					var c = a;
					a: for (; c !== null;) {
						switch (c.tag) {
							case 27: if (ud) {
								if (hd(c.type)) {
									mg = c.stateNode, hg = !1;
									break a;
								}
								break;
							}
							case 5:
								mg = c.stateNode, hg = !1;
								break a;
							case 3:
							case 4:
								mg = c.stateNode.containerInfo, hg = !0;
								break a;
						}
						c = c.return;
					}
					if (mg === null) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
					So(i, a, o), mg = null, hg = !1;
				} else So(i, a, o);
				(o.mode & 2) !== zf && 0 <= ap && 0 <= op && .05 < op - ap && Se(o, ap, op, "Unmount"), Jt(s), i = o, a = i.alternate, a !== null && (a.return = null), i.return = null;
			}
			if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Oo(t, e), t = t.sibling;
		}
		function Oo(e, t) {
			var n = qt(), r = Yt(), i = Zt(), a = Qt(), o = e.alternate, s = e.flags;
			switch (e.tag) {
				case 0:
				case 11:
				case 14:
				case 15:
					Do(t, e), ko(e), s & 4 && (W(ih | rh, e, e.return), Ya(ih | rh, e), Ja(e, e.return, ah | rh));
					break;
				case 1:
					Do(t, e), ko(e), s & 512 && (cg || o === null || io(o, o.return)), s & 64 && sg && (s = e.updateQueue, s !== null && (o = s.callbacks, o !== null && (t = s.shared.hiddenCallbacks, s.shared.hiddenCallbacks = t === null ? o : t.concat(o))));
					break;
				case 26: if (Xu) {
					var c = gg;
					Do(t, e), ko(e), s & 512 && (cg || o === null || io(o, o.return)), s & 4 && (s = o === null ? null : o.memoizedState, t = e.memoizedState, o === null ? t === null ? e.stateNode === null ? e.stateNode = nd(c, e.type, e.memoizedProps, e) : rd(c, e.type, e.stateNode) : e.stateNode = ed(c, t, e.memoizedProps) : s === t ? t === null && e.stateNode !== null && co(e, e.memoizedProps, o.memoizedProps) : (s === null ? o.stateNode !== null && id(o.stateNode) : td(s), t === null ? rd(c, e.type, e.stateNode) : ed(c, t, e.memoizedProps)));
					break;
				}
				case 27: if (ud) {
					Do(t, e), ko(e), s & 512 && (cg || o === null || io(o, o.return)), o !== null && s & 4 && co(e, e.memoizedProps, o.memoizedProps);
					break;
				}
				case 5:
					if (Do(t, e), ko(e), s & 512 && (cg || o === null || io(o, o.return)), cl) {
						if (e.flags & 32) {
							t = e.stateNode;
							try {
								I(e, Ql, t);
							} catch (t) {
								Vs(e, e.return, t);
							}
						}
						s & 4 && e.stateNode != null && (t = e.memoizedProps, co(e, t, o === null ? t : o.memoizedProps)), s & 1024 && (lg = !0, e.type !== "form" && console.error("Unexpected host component type. Expected a form. This is a bug in React."));
					} else ll && e.alternate !== null && (e.alternate.stateNode = e.stateNode);
					break;
				case 6:
					if (Do(t, e), ko(e), s & 4 && cl) {
						if (e.stateNode === null) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
						s = e.memoizedProps, o = o === null ? s : o.memoizedProps, t = e.stateNode;
						try {
							I(e, Gl, t, o, s);
						} catch (t) {
							Vs(e, e.return, t);
						}
					}
					break;
				case 3:
					if (c = Ut(), Xu) {
						od();
						var l = gg;
						gg = Qu(t.containerInfo), Do(t, e), gg = l;
					} else Do(t, e);
					if (ko(e), s & 4) {
						if (cl && ul && o !== null && o.memoizedState.isDehydrated) try {
							I(e, Fu, t.containerInfo);
						} catch (t) {
							Vs(e, e.return, t);
						}
						if (ll) {
							s = t.containerInfo, o = t.pendingChildren;
							try {
								I(e, cu, s, o);
							} catch (t) {
								Vs(e, e.return, t);
							}
						}
					}
					lg && (lg = !1, Ao(e)), t.effectDuration += Wt(c);
					break;
				case 4:
					Xu ? (o = gg, gg = Qu(e.stateNode.containerInfo), Do(t, e), ko(e), gg = o) : (Do(t, e), ko(e)), s & 4 && ll && ho(e.stateNode, e, e.stateNode.pendingChildren);
					break;
				case 12:
					s = Ut(), Do(t, e), ko(e), e.stateNode.effectDuration += Gt(s);
					break;
				case 31:
					Do(t, e), ko(e), s & 4 && (s = e.updateQueue, s !== null && (e.updateQueue = null, Eo(e, s)));
					break;
				case 13:
					Do(t, e), ko(e), e.child.flags & 8192 && e.memoizedState !== null != (o !== null && o.memoizedState !== null) && (f_ = Ad()), s & 4 && (s = e.updateQueue, s !== null && (e.updateQueue = null, Eo(e, s)));
					break;
				case 22:
					c = e.memoizedState !== null;
					var u = o !== null && o.memoizedState !== null, d = sg, f = cg;
					if (sg = d || c, cg = f || u, Do(t, e), cg = f, sg = d, u && !c && !d && !f && (e.mode & 2) !== zf && 0 <= ap && 0 <= op && .05 < op - ap && N(e, ap, op), ko(e), s & 8192 && (t = e.stateNode, t._visibility = c ? t._visibility & ~Im : t._visibility | Im, !c || o === null || u || sg || cg || (No(e), (e.mode & 2) !== zf && 0 <= ap && 0 <= op && .05 < op - ap && Se(e, ap, op, "Disconnect")), cl)) {
						a: if (o = null, cl) for (t = e;;) {
							if (t.tag === 5 || Xu && t.tag === 26) {
								if (o === null) {
									u = o = t;
									try {
										l = u.stateNode, c ? I(u, $l, l) : I(u, tu, u.stateNode, u.memoizedProps);
									} catch (e) {
										Vs(u, u.return, e);
									}
								}
							} else if (t.tag === 6) {
								if (o === null) {
									u = t;
									try {
										var p = u.stateNode;
										c ? I(u, eu, p) : I(u, nu, p, u.memoizedProps);
									} catch (e) {
										Vs(u, u.return, e);
									}
								}
							} else if (t.tag === 18) {
								if (o === null) {
									u = t;
									try {
										var m = u.stateNode;
										c ? I(u, Hu, m) : I(u, Uu, u.stateNode);
									} catch (e) {
										Vs(u, u.return, e);
									}
								}
							} else if ((t.tag !== 22 && t.tag !== 23 || t.memoizedState === null || t === e) && t.child !== null) {
								t.child.return = t, t = t.child;
								continue;
							}
							if (t === e) break a;
							for (; t.sibling === null;) {
								if (t.return === null || t.return === e) break a;
								o === t && (o = null), t = t.return;
							}
							o === t && (o = null), t.sibling.return = t.return, t = t.sibling;
						}
					}
					s & 4 && (s = e.updateQueue, s !== null && (o = s.retryQueue, o !== null && (s.retryQueue = null, Eo(e, o))));
					break;
				case 19:
					Do(t, e), ko(e), s & 4 && (s = e.updateQueue, s !== null && (e.updateQueue = null, Eo(e, s)));
					break;
				case 30: break;
				case 21: break;
				default: Do(t, e), ko(e);
			}
			(e.mode & 2) !== zf && 0 <= ap && 0 <= op && ((cp || .05 < ip) && Te(e, ap, op, ip, sp), e.alternate === null && e.return !== null && e.return.alternate !== null && .05 < op - ap && (_o(e.return.alternate, e.return) || Se(e, ap, op, "Mount"))), Jt(n), Xt(r), sp = i, cp = a;
		}
		function ko(e) {
			var t = e.flags;
			if (t & 2) {
				try {
					I(e, mo, e);
				} catch (t) {
					Vs(e, e.return, t);
				}
				e.flags &= -3;
			}
			t & 4096 && (e.flags &= -4097);
		}
		function Ao(e) {
			if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
				var t = e;
				Ao(t), t.tag === 5 && t.flags & 1024 && jl(t.stateNode), e = e.sibling;
			}
		}
		function jo(e, t) {
			if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) yo(e, t.alternate, t), t = t.sibling;
		}
		function Mo(e) {
			var t = qt(), n = Yt(), r = Zt(), i = Qt();
			switch (e.tag) {
				case 0:
				case 11:
				case 14:
				case 15:
					Ja(e, e.return, ah), No(e);
					break;
				case 1:
					io(e, e.return);
					var a = e.stateNode;
					typeof a.componentWillUnmount == "function" && to(e, e.return, a), No(e);
					break;
				case 27: ud && I(e, pd, e.stateNode);
				case 26:
				case 5:
					io(e, e.return), No(e);
					break;
				case 22:
					e.memoizedState === null && No(e);
					break;
				case 30:
					No(e);
					break;
				default: No(e);
			}
			(e.mode & 2) !== zf && 0 <= ap && 0 <= op && (cp || .05 < ip) && Te(e, ap, op, ip, sp), Jt(t), Xt(n), sp = r, cp = i;
		}
		function No(e) {
			for (e = e.child; e !== null;) Mo(e), e = e.sibling;
		}
		function Po(e, t, n, r) {
			var i = qt(), a = Yt(), o = Zt(), s = Qt(), c = n.flags;
			switch (n.tag) {
				case 0:
				case 11:
				case 15:
					Fo(e, n, r), qa(n, ah);
					break;
				case 1:
					if (Fo(e, n, r), t = n.stateNode, typeof t.componentDidMount == "function" && I(n, um, n, t), t = n.updateQueue, t !== null) {
						e = n.stateNode;
						try {
							I(n, ir, t, e);
						} catch (e) {
							Vs(n, n.return, e);
						}
					}
					r && c & 64 && Qa(n), ro(n, n.return);
					break;
				case 27: ud && go(n);
				case 26:
				case 5:
					Fo(e, n, r), r && t === null && c & 4 && so(n), ro(n, n.return);
					break;
				case 12:
					if (r && c & 4) {
						c = Ut(), Fo(e, n, r), r = n.stateNode, r.effectDuration += Gt(c);
						try {
							I(n, ao, n, t, $f, r.effectDuration);
						} catch (e) {
							Vs(n, n.return, e);
						}
					} else Fo(e, n, r);
					break;
				case 31:
					Fo(e, n, r), r && c & 4 && Co(e, n);
					break;
				case 13:
					Fo(e, n, r), r && c & 4 && wo(e, n);
					break;
				case 22:
					n.memoizedState === null && Fo(e, n, r), ro(n, n.return);
					break;
				case 30: break;
				default: Fo(e, n, r);
			}
			(n.mode & 2) !== zf && 0 <= ap && 0 <= op && (cp || .05 < ip) && Te(n, ap, op, ip, sp), Jt(i), Xt(a), sp = o, cp = s;
		}
		function Fo(e, t, n) {
			for (n &&= (t.subtreeFlags & 8772) != 0, t = t.child; t !== null;) Po(e, t.alternate, t, n), t = t.sibling;
		}
		function Io(e, t) {
			var n = null;
			e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && zt(e), n != null && Bt(n));
		}
		function Lo(e, t) {
			e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (zt(t), e != null && Bt(e));
		}
		function Ro(e, t, n, r, i) {
			if (t.subtreeFlags & 10256 || t.actualDuration !== 0 && (t.alternate === null || t.alternate.child !== t.child)) for (t = t.child; t !== null;) {
				var a = t.sibling;
				zo(e, t, n, r, a === null ? i : a.actualStartTime), t = a;
			}
		}
		function zo(e, t, n, r, i) {
			var a = qt(), o = Yt(), s = Zt(), c = Qt(), l = Xd, u = t.flags;
			switch (t.tag) {
				case 0:
				case 11:
				case 15:
					(t.mode & 2) !== zf && 0 < t.actualStartTime && t.flags & 1 && Ce(t, t.actualStartTime, i, _g, n), Ro(e, t, n, r, i), u & 2048 && Xa(t, oh | rh);
					break;
				case 1:
					(t.mode & 2) !== zf && 0 < t.actualStartTime && (t.flags & 128 ? we(t, t.actualStartTime, i, []) : t.flags & 1 && Ce(t, t.actualStartTime, i, _g, n)), Ro(e, t, n, r, i);
					break;
				case 3:
					var d = Ut(), f = _g;
					_g = t.alternate !== null && t.alternate.memoizedState.isDehydrated && (t.flags & 256) == 0, Ro(e, t, n, r, i), _g = f, u & 2048 && (n = null, t.alternate !== null && (n = t.alternate.memoizedState.cache), r = t.memoizedState.cache, r !== n && (zt(r), n != null && Bt(n))), e.passiveEffectDuration += Wt(d);
					break;
				case 12:
					if (u & 2048) {
						u = Ut(), Ro(e, t, n, r, i), e = t.stateNode, e.passiveEffectDuration += Gt(u);
						try {
							I(t, oo, t, t.alternate, $f, e.passiveEffectDuration);
						} catch (e) {
							Vs(t, t.return, e);
						}
					} else Ro(e, t, n, r, i);
					break;
				case 31:
					u = _g, d = t.alternate === null ? null : t.alternate.memoizedState, f = t.memoizedState, d !== null && f === null ? (f = t.deletions, f !== null && 0 < f.length && f[0].tag === 18 ? (_g = !1, d = d.hydrationErrors, d !== null && we(t, t.actualStartTime, i, d)) : _g = !0) : _g = !1, Ro(e, t, n, r, i), _g = u;
					break;
				case 13:
					u = _g, d = t.alternate === null ? null : t.alternate.memoizedState, f = t.memoizedState, d === null || d.dehydrated === null || f !== null && f.dehydrated !== null ? _g = !1 : (f = t.deletions, f !== null && 0 < f.length && f[0].tag === 18 ? (_g = !1, d = d.hydrationErrors, d !== null && we(t, t.actualStartTime, i, d)) : _g = !0), Ro(e, t, n, r, i), _g = u;
					break;
				case 23: break;
				case 22:
					f = t.stateNode, d = t.alternate, t.memoizedState === null ? f._visibility & Lm ? Ro(e, t, n, r, i) : (f._visibility |= Lm, Bo(e, t, n, r, (t.subtreeFlags & 10256) != 0 || t.actualDuration !== 0 && (t.alternate === null || t.alternate.child !== t.child), i), (t.mode & 2) === zf || _g || (e = t.actualStartTime, 0 <= e && .05 < i - e && N(t, e, i), 0 <= ap && 0 <= op && .05 < op - ap && N(t, ap, op))) : f._visibility & Lm ? Ro(e, t, n, r, i) : Ho(e, t, n, r, i), u & 2048 && Io(d, t);
					break;
				case 24:
					Ro(e, t, n, r, i), u & 2048 && Lo(t.alternate, t);
					break;
				default: Ro(e, t, n, r, i);
			}
			(t.mode & 2) !== zf && ((e = !_g && t.alternate === null && t.return !== null && t.return.alternate !== null) && (n = t.actualStartTime, 0 <= n && .05 < i - n && Se(t, n, i, "Mount")), 0 <= ap && 0 <= op && ((cp || .05 < ip) && Te(t, ap, op, ip, sp), e && .05 < op - ap && Se(t, ap, op, "Mount"))), Jt(a), Xt(o), sp = s, cp = c, Xd = l;
		}
		function Bo(e, t, n, r, i, a) {
			for (i &&= (t.subtreeFlags & 10256) != 0 || t.actualDuration !== 0 && (t.alternate === null || t.alternate.child !== t.child), t = t.child; t !== null;) {
				var o = t.sibling;
				Vo(e, t, n, r, i, o === null ? a : o.actualStartTime), t = o;
			}
		}
		function Vo(e, t, n, r, i, a) {
			var o = qt(), s = Yt(), c = Zt(), l = Qt(), u = Xd;
			i && (t.mode & 2) !== zf && 0 < t.actualStartTime && t.flags & 1 && Ce(t, t.actualStartTime, a, _g, n);
			var d = t.flags;
			switch (t.tag) {
				case 0:
				case 11:
				case 15:
					Bo(e, t, n, r, i, a), Xa(t, oh);
					break;
				case 23: break;
				case 22:
					var f = t.stateNode;
					t.memoizedState === null ? (f._visibility |= Lm, Bo(e, t, n, r, i, a)) : f._visibility & Lm ? Bo(e, t, n, r, i, a) : Ho(e, t, n, r, a), i && d & 2048 && Io(t.alternate, t);
					break;
				case 24:
					Bo(e, t, n, r, i, a), i && d & 2048 && Lo(t.alternate, t);
					break;
				default: Bo(e, t, n, r, i, a);
			}
			(t.mode & 2) !== zf && 0 <= ap && 0 <= op && (cp || .05 < ip) && Te(t, ap, op, ip, sp), Jt(o), Xt(s), sp = c, cp = l, Xd = u;
		}
		function Ho(e, t, n, r, i) {
			if (t.subtreeFlags & 10256 || t.actualDuration !== 0 && (t.alternate === null || t.alternate.child !== t.child)) for (var a = t.child; a !== null;) {
				t = a.sibling;
				var o = e, s = n, c = r, l = t === null ? i : t.actualStartTime, u = Xd;
				(a.mode & 2) !== zf && 0 < a.actualStartTime && a.flags & 1 && Ce(a, a.actualStartTime, l, _g, s);
				var d = a.flags;
				switch (a.tag) {
					case 22:
						Ho(o, a, s, c, l), d & 2048 && Io(a.alternate, a);
						break;
					case 24:
						Ho(o, a, s, c, l), d & 2048 && Lo(a.alternate, a);
						break;
					default: Ho(o, a, s, c, l);
				}
				Xd = u, a = t;
			}
		}
		function Uo(e, t, n) {
			if (e.subtreeFlags & vg) for (e = e.child; e !== null;) Wo(e, t, n), e = e.sibling;
		}
		function Wo(e, t, n) {
			switch (e.tag) {
				case 26:
					if (Uo(e, t, n), e.flags & vg) if (e.memoizedState !== null) ld(n, gg, e.memoizedState, e.memoizedProps);
					else {
						var r = e.stateNode, i = e.type;
						e = e.memoizedProps, ((t & 335544128) === t || Cl(i, e)) && El(n, r, i, e);
					}
					break;
				case 5:
					Uo(e, t, n), e.flags & vg && (r = e.stateNode, i = e.type, e = e.memoizedProps, ((t & 335544128) === t || Cl(i, e)) && El(n, r, i, e));
					break;
				case 3:
				case 4:
					Xu ? (r = gg, gg = Qu(e.stateNode.containerInfo), Uo(e, t, n), gg = r) : Uo(e, t, n);
					break;
				case 22:
					e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = vg, vg = 16777216, Uo(e, t, n), vg = r) : Uo(e, t, n));
					break;
				default: Uo(e, t, n);
			}
		}
		function Go(e) {
			var t = e.alternate;
			if (t !== null && (e = t.child, e !== null)) {
				t.child = null;
				do
					t = e.sibling, e.sibling = null, e = t;
				while (e !== null);
			}
		}
		function Ko(e) {
			var t = e.deletions;
			if (e.flags & 16) {
				if (t !== null) for (var n = 0; n < t.length; n++) {
					var r = t[n], i = qt();
					dg = r, Xo(r, e), (r.mode & 2) !== zf && 0 <= ap && 0 <= op && .05 < op - ap && Se(r, ap, op, "Unmount"), Jt(i);
				}
				Go(e);
			}
			if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) qo(e), e = e.sibling;
		}
		function qo(e) {
			var t = qt(), n = Yt(), r = Zt(), i = Qt();
			switch (e.tag) {
				case 0:
				case 11:
				case 15:
					Ko(e), e.flags & 2048 && Za(e, e.return, oh | rh);
					break;
				case 3:
					var a = Ut();
					Ko(e), e.stateNode.passiveEffectDuration += Wt(a);
					break;
				case 12:
					a = Ut(), Ko(e), e.stateNode.passiveEffectDuration += Gt(a);
					break;
				case 22:
					a = e.stateNode, e.memoizedState !== null && a._visibility & Lm && (e.return === null || e.return.tag !== 13) ? (a._visibility &= ~Lm, Jo(e), (e.mode & 2) !== zf && 0 <= ap && 0 <= op && .05 < op - ap && Se(e, ap, op, "Disconnect")) : Ko(e);
					break;
				default: Ko(e);
			}
			(e.mode & 2) !== zf && 0 <= ap && 0 <= op && (cp || .05 < ip) && Te(e, ap, op, ip, sp), Jt(t), Xt(n), cp = i, sp = r;
		}
		function Jo(e) {
			var t = e.deletions;
			if (e.flags & 16) {
				if (t !== null) for (var n = 0; n < t.length; n++) {
					var r = t[n], i = qt();
					dg = r, Xo(r, e), (r.mode & 2) !== zf && 0 <= ap && 0 <= op && .05 < op - ap && Se(r, ap, op, "Unmount"), Jt(i);
				}
				Go(e);
			}
			for (e = e.child; e !== null;) Yo(e), e = e.sibling;
		}
		function Yo(e) {
			var t = qt(), n = Yt(), r = Zt(), i = Qt();
			switch (e.tag) {
				case 0:
				case 11:
				case 15:
					Za(e, e.return, oh), Jo(e);
					break;
				case 22:
					var a = e.stateNode;
					a._visibility & Lm && (a._visibility &= ~Lm, Jo(e));
					break;
				default: Jo(e);
			}
			(e.mode & 2) !== zf && 0 <= ap && 0 <= op && (cp || .05 < ip) && Te(e, ap, op, ip, sp), Jt(t), Xt(n), cp = i, sp = r;
		}
		function Xo(e, t) {
			for (; dg !== null;) {
				var n = dg, r = n, i = t, a = qt(), o = Yt(), s = Zt(), c = Qt();
				switch (r.tag) {
					case 0:
					case 11:
					case 15:
						Za(r, i, oh);
						break;
					case 23:
					case 22:
						r.memoizedState !== null && r.memoizedState.cachePool !== null && (i = r.memoizedState.cachePool.pool, i != null && zt(i));
						break;
					case 24: Bt(r.memoizedState.cache);
				}
				if ((r.mode & 2) !== zf && 0 <= ap && 0 <= op && (cp || .05 < ip) && Te(r, ap, op, ip, sp), Jt(a), Xt(o), cp = c, sp = s, r = n.child, r !== null) r.return = n, dg = r;
				else a: for (n = e; dg !== null;) {
					if (r = dg, a = r.sibling, o = r.return, bo(r), r === n) {
						dg = null;
						break a;
					}
					if (a !== null) {
						a.return = o, dg = a;
						break a;
					}
					dg = o;
				}
			}
		}
		function Zo(e) {
			var t = dl(e);
			if (t != null) {
				if (typeof t.memoizedProps["data-testname"] != "string") throw Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");
				return t;
			}
			if (e = Il(e), e === null) throw Error("Could not find React container within specified host subtree.");
			return e.stateNode.current;
		}
		function Qo(e, t) {
			var n = e.tag;
			switch (t.$$typeof) {
				case bg:
					if (e.type === t.value) return !0;
					break;
				case xg:
					a: {
						for (t = t.value, e = [e, 0], n = 0; n < e.length;) {
							var r = e[n++], i = r.tag, a = e[n++], o = t[a];
							if (i !== 5 && i !== 26 && i !== 27 || !zl(r)) {
								for (; o != null && Qo(r, o);) a++, o = t[a];
								if (a === t.length) {
									t = !0;
									break a;
								} else for (r = r.child; r !== null;) e.push(r, a), r = r.sibling;
							}
						}
						t = !1;
					}
					return t;
				case Sg:
					if ((n === 5 || n === 26 || n === 27) && Bl(e.stateNode, t.value)) return !0;
					break;
				case wg:
					if ((n === 5 || n === 6 || n === 26 || n === 27) && (e = Rl(e), e !== null && 0 <= e.indexOf(t.value))) return !0;
					break;
				case Cg:
					if ((n === 5 || n === 26 || n === 27) && (e = e.memoizedProps["data-testname"], typeof e == "string" && e.toLowerCase() === t.value.toLowerCase())) return !0;
					break;
				default: throw Error("Invalid selector type specified.");
			}
			return !1;
		}
		function $o(e) {
			switch (e.$$typeof) {
				case bg: return "<" + (ne(e.value) || "Unknown") + ">";
				case xg: return ":has(" + ($o(e) || "") + ")";
				case Sg: return "[role=\"" + e.value + "\"]";
				case wg: return "\"" + e.value + "\"";
				case Cg: return "[data-testname=\"" + e.value + "\"]";
				default: throw Error("Invalid selector type specified.");
			}
		}
		function es(e, t) {
			var n = [];
			e = [e, 0];
			for (var r = 0; r < e.length;) {
				var i = e[r++], a = i.tag, o = e[r++], s = t[o];
				if (a !== 5 && a !== 26 && a !== 27 || !zl(i)) {
					for (; s != null && Qo(i, s);) o++, s = t[o];
					if (o === t.length) n.push(i);
					else for (i = i.child; i !== null;) e.push(i, o), i = i.sibling;
				}
			}
			return n;
		}
		function ts(e, t) {
			if (!Fl) throw Error("Test selector API is not supported by this renderer.");
			e = Zo(e), e = es(e, t), t = [], e = Array.from(e);
			for (var n = 0; n < e.length;) {
				var r = e[n++], i = r.tag;
				if (i === 5 || i === 26 || i === 27) zl(r) || t.push(r.stateNode);
				else for (r = r.child; r !== null;) e.push(r), r = r.sibling;
			}
			return t;
		}
		function ns() {
			Fl && Eg.forEach(function(e) {
				return e();
			});
		}
		function rs() {
			var e = typeof IS_REACT_ACT_ENVIRONMENT < "u" ? IS_REACT_ACT_ENVIRONMENT : void 0;
			return e || K.actQueue === null || console.error("The current testing environment is not configured to support act(...)"), e;
		}
		function is(e) {
			if ((Lg & Q) !== Og && Bg !== 0) return Bg & -Bg;
			var t = K.T;
			return t === null ? hl() : (t._updatedFibers ||= /* @__PURE__ */ new Set(), t._updatedFibers.add(e), gn());
		}
		function as() {
			if (s_ === 0) if (!(Bg & 536870912) || Nf) {
				var e = wd;
				wd <<= 1, !(wd & 3932160) && (wd = 262144), s_ = e;
			} else s_ = 536870912;
			return e = Zm.current, e !== null && (e.flags |= 32), s_;
		}
		function os(e, t, n) {
			if (Y_ && console.error("useInsertionEffect must not schedule updates."), W_ && (G_ = !0), (e === Rg && (Zg === Ug || Zg === Xg) || e.cancelPendingCommit !== null) && (hs(e, 0), us(e, Bg, s_, !1)), oe(e, n), (Lg & Q) !== Og && e === Rg) {
				if (Af) switch (t.tag) {
					case 0:
					case 11:
					case 15:
						e = zg && w(zg) || "Unknown", Q_.has(e) || (Q_.add(e), t = w(t) || "Unknown", console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render", t, e, e));
						break;
					case 1: Z_ ||= (console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), !0);
				}
			} else Bd && fe(e, t, n), $s(t), e === Rg && ((Lg & Q) === Og && (a_ |= n), r_ === Pg && us(e, Bg, s_, !1)), sn(e);
		}
		function ss(e, t, n) {
			if ((Lg & (Q | kg)) !== Og) throw Error("Should not already be working.");
			if (Bg !== 0 && zg !== null) {
				var r = zg, i = Ad();
				switch (jp) {
					case Wg:
					case Ug:
						var a = Mp;
						Jd && ((r = r._debugTask) ? r.run(console.timeStamp.bind(console, "Suspended", a, i, "Components ⚛", void 0, "primary-light")) : console.timeStamp("Suspended", a, i, "Components ⚛", void 0, "primary-light"));
						break;
					case Xg:
						a = Mp, Jd && ((r = r._debugTask) ? r.run(console.timeStamp.bind(console, "Action", a, i, "Components ⚛", void 0, "primary-light")) : console.timeStamp("Action", a, i, "Components ⚛", void 0, "primary-light"));
						break;
					default: Jd && (r = i - Mp, 3 > r || console.timeStamp("Blocked", Mp, i, "Components ⚛", void 0, 5 > r ? "primary-light" : 10 > r ? "primary" : 100 > r ? "primary-dark" : "error"));
				}
			}
			a = (n = !n && (t & 127) == 0 && (t & e.expiredLanes) === 0 || A(e, t)) ? ws(e, t) : Ss(e, t, !0);
			var o = n;
			do {
				if (a === Ag) {
					e_ && !n && us(e, t, 0, !1), t = Zg, Mp = Xf(), jp = t;
					break;
				} else {
					if (r = Ad(), i = e.current.alternate, o && !ls(i)) {
						xe(t), i = Qf, a = r, !Jd || a <= i || (v_ ? v_.run(console.timeStamp.bind(console, "Teared Render", i, a, Yd, "Scheduler ⚛", "error")) : console.timeStamp("Teared Render", i, a, Yd, "Scheduler ⚛", "error")), ms(t, r), a = Ss(e, t, !1), o = !1;
						continue;
					}
					if (a === Mg) {
						if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;
						else s = e.pendingLanes & -536870913, s = s === 0 ? s & 536870912 ? 536870912 : 0 : s;
						if (s !== 0) {
							xe(t), Ae(Qf, r, t, v_), ms(t, r), t = s;
							a: {
								r = e, a = o, o = l_;
								var c = ul && r.current.memoizedState.isDehydrated;
								if (c && (hs(r, s).flags |= 256), s = Ss(r, s, !1), s !== Mg) {
									if (t_ && !c) {
										r.errorRecoveryDisabledLanes |= a, a_ |= a, a = Pg;
										break a;
									}
									r = u_, u_ = o, r !== null && (u_ === null ? u_ = r : u_.push.apply(u_, r));
								}
								a = s;
							}
							if (o = !1, a !== Mg) continue;
							r = Ad();
						}
					}
					if (a === jg) {
						xe(t), Ae(Qf, r, t, v_), ms(t, r), hs(e, 0), us(e, t, 0, !0);
						break;
					}
					a: {
						switch (n = e, a) {
							case Ag:
							case jg: throw Error("Root did not complete. This is a bug in React.");
							case Pg: if ((t & 4194048) !== t) break;
							case Fg:
								xe(t), De(Qf, r, t, v_), ms(t, r), i = t, i & 127 ? vp = r : i & 4194048 && (kp = r), us(n, t, s_, !$g);
								break a;
							case Mg:
								u_ = null;
								break;
							case Ng:
							case Ig: break;
							default: throw Error("Unknown root exit status.");
						}
						if (K.actQueue !== null) Ms(n, i, t, u_, __, d_, s_, a_, c_, a, null, null, Qf, r);
						else {
							if ((t & 62914560) === t && (o = f_ + m_ - Ad(), 10 < o)) {
								if (us(n, t, s_, !$g), k(n, 0, !0) !== 0) break a;
								N_ = t, n.timeoutHandle = il(cs.bind(null, n, i, u_, __, d_, t, s_, a_, c_, $g, a, "Throttled", Qf, r), o);
								break a;
							}
							cs(n, i, u_, __, d_, t, s_, a_, c_, $g, a, null, Qf, r);
						}
					}
				}
				break;
			} while (1);
			sn(e);
		}
		function cs(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
			e.timeoutHandle = ol;
			var m = t.subtreeFlags, h = null;
			if ((m & 8192 || (m & 16785408) == 16785408) && (h = Tl(), Wo(t, a, h), m = (a & 62914560) === a ? f_ - Ad() : (a & 4194048) === a ? p_ - Ad() : 0, m = Dl(h, m), m !== null)) {
				N_ = a, e.cancelPendingCommit = m(Ms.bind(null, e, t, a, n, r, i, o, s, c, u, h, Ol(h, e.containerInfo), f, p)), us(e, a, o, !l);
				return;
			}
			Ms(e, t, a, n, r, i, o, s, c, u, h, d, f, p);
		}
		function ls(e) {
			for (var t = e;;) {
				var n = t.tag;
				if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
					var i = n[r], a = i.getSnapshot;
					i = i.value;
					try {
						if (!Gd(a(), i)) return !1;
					} catch {
						return !1;
					}
				}
				if (n = t.child, t.subtreeFlags & 16384 && n !== null) n.return = t, t = n;
				else {
					if (t === e) break;
					for (; t.sibling === null;) {
						if (t.return === null || t.return === e) return !0;
						t = t.return;
					}
					t.sibling.return = t.return, t = t.sibling;
				}
			}
			return !0;
		}
		function us(e, t, n, r) {
			t &= ~o_, t &= ~a_, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
			for (var i = t; 0 < i;) {
				var a = 31 - bd(i), o = 1 << a;
				r[a] = -1, i &= ~o;
			}
			n !== 0 && ce(e, n, t);
		}
		function ds() {
			return (Lg & (Q | kg)) === Og ? (cn(0, !1), !1) : !0;
		}
		function fs() {
			return (Lg & (Q | kg)) !== Og;
		}
		function ps() {
			if (zg !== null) {
				if (Zg === Vg) var e = zg.return;
				else e = zg, Ot(), Tr(e), Dm = null, Om = 0, e = zg;
				for (; e !== null;) Ga(e.alternate, e), e = e.return;
				zg = null;
			}
		}
		function ms(e, t) {
			e & 127 && (lp = t), e & 4194048 && (yp = t);
		}
		function hs(e, t) {
			Jd && (console.timeStamp("Blocking Track", .003, .003, "Blocking", "Scheduler ⚛", "primary-light"), console.timeStamp("Transition Track", .003, .003, "Transition", "Scheduler ⚛", "primary-light"), console.timeStamp("Suspense Track", .003, .003, "Suspense", "Scheduler ⚛", "primary-light"), console.timeStamp("Idle Track", .003, .003, "Idle", "Scheduler ⚛", "primary-light"));
			var n = Qf;
			if (Qf = Xf(), Bg !== 0 && 0 < n) {
				if (xe(Bg), r_ === Ng || r_ === Pg) De(n, Qf, t, v_);
				else {
					var r = Qf, i = v_;
					if (Jd && !(r <= n)) {
						var a = (t & 738197653) === t ? "tertiary-dark" : "primary-dark", o = (t & 536870912) === t ? "Prewarm" : (t & 201326741) === t ? "Interrupted Hydration" : "Interrupted Render";
						i ? i.run(console.timeStamp.bind(console, o, n, r, Yd, "Scheduler ⚛", a)) : console.timeStamp(o, n, r, Yd, "Scheduler ⚛", a);
					}
				}
				ms(Bg, Qf);
			}
			if (n = v_, v_ = null, t & 127) {
				v_ = dp, i = 0 <= up && up < lp ? lp : up, r = 0 <= hp && hp < lp ? lp : hp, a = 0 <= r ? r : 0 <= i ? i : Qf, 0 <= vp && (xe(2), Oe(vp, a, t, n)), n = i;
				var s = r, c = gp, l = 0 < _p, u = fp === 1, d = fp === 2;
				if (i = Qf, r = dp, a = pp, o = mp, Jd) {
					if (Yd = "Blocking", 0 < n ? n > i && (n = i) : n = i, 0 < s ? s > n && (s = n) : s = n, c !== null && n > s) {
						var f = l ? "secondary-light" : "warning";
						r ? r.run(console.timeStamp.bind(console, l ? "Consecutive" : "Event: " + c, s, n, Yd, "Scheduler ⚛", f)) : console.timeStamp(l ? "Consecutive" : "Event: " + c, s, n, Yd, "Scheduler ⚛", f);
					}
					i > n && (s = u ? "error" : (t & 738197653) === t ? "tertiary-light" : "primary-light", u = d ? "Promise Resolved" : u ? "Cascading Update" : 5 < i - n ? "Update Blocked" : "Update", d = [], o != null && d.push(["Component name", o]), a != null && d.push(["Method name", a]), n = {
						start: n,
						end: i,
						detail: { devtools: {
							properties: d,
							track: Yd,
							trackGroup: "Scheduler ⚛",
							color: s
						} }
					}, r ? r.run(performance.measure.bind(performance, u, n)) : performance.measure(u, n));
				}
				up = -1.1, fp = 0, mp = pp = null, vp = -1.1, _p = hp, hp = -1.1, lp = Xf();
			}
			if (t & 4194048 && (v_ = Cp, i = 0 <= bp && bp < yp ? yp : bp, n = 0 <= xp && xp < yp ? yp : xp, r = 0 <= Ep && Ep < yp ? yp : Ep, a = 0 <= r ? r : 0 <= n ? n : Qf, 0 <= kp && (xe(256), Oe(kp, a, t, v_)), d = r, s = Dp, c = 0 < Op, l = Sp === 2, a = Qf, r = Cp, o = wp, u = Tp, Jd && (Yd = "Transition", 0 < n ? n > a && (n = a) : n = a, 0 < i ? i > n && (i = n) : i = n, 0 < d ? d > i && (d = i) : d = i, i > d && s !== null && (f = c ? "secondary-light" : "warning", r ? r.run(console.timeStamp.bind(console, c ? "Consecutive" : "Event: " + s, d, i, Yd, "Scheduler ⚛", f)) : console.timeStamp(c ? "Consecutive" : "Event: " + s, d, i, Yd, "Scheduler ⚛", f)), n > i && (r ? r.run(console.timeStamp.bind(console, "Action", i, n, Yd, "Scheduler ⚛", "primary-dark")) : console.timeStamp("Action", i, n, Yd, "Scheduler ⚛", "primary-dark")), a > n && (i = l ? "Promise Resolved" : 5 < a - n ? "Update Blocked" : "Update", d = [], u != null && d.push(["Component name", u]), o != null && d.push(["Method name", o]), n = {
				start: n,
				end: a,
				detail: { devtools: {
					properties: d,
					track: Yd,
					trackGroup: "Scheduler ⚛",
					color: "primary-light"
				} }
			}, r ? r.run(performance.measure.bind(performance, i, n)) : performance.measure(i, n))), xp = bp = -1.1, Sp = 0, kp = -1.1, Op = Ep, Ep = -1.1, yp = Xf()), n = e.timeoutHandle, n !== ol && (e.timeoutHandle = ol, al(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), N_ = 0, ps(), Rg = e, zg = n = sc(e.current, null), Bg = t, Zg = Vg, Qg = null, $g = !1, e_ = A(e, t), t_ = !1, r_ = Ag, c_ = s_ = o_ = a_ = i_ = 0, u_ = l_ = null, d_ = !1, t & 8 && (t |= t & 32), r = e.entangledLanes, r !== 0) for (e = e.entanglements, r &= t; 0 < r;) i = 31 - bd(r), a = 1 << i, t |= e[i], r &= ~a;
			return n_ = t, Un(), e = Ud(), 1e3 < e - Vd && (K.recentlyCreatedOwnerStacks = 0, Vd = e), Yp.discardPendingWarnings(), n;
		}
		function gs(e, t) {
			ph = null, K.H = Dh, K.getCurrentStack = null, Af = !1, kf = null, t === Sm || t === wm ? (t = On(), Zg = Wg) : t === Cm ? (t = On(), Zg = Gg) : Zg = t === Yh ? Yg : typeof t == "object" && t && typeof t.then == "function" ? qg : Hg, Qg = t;
			var n = zg;
			n === null ? (r_ = jg, Zi(e, Ve(t, e.current))) : n.mode & 2 && en(n);
		}
		function _s() {
			var e = Zm.current;
			return e === null ? !0 : (Bg & 4194048) === Bg ? Qm === null : (Bg & 62914560) === Bg || Bg & 536870912 ? e === Qm : !1;
		}
		function vs() {
			var e = K.H;
			return K.H = Dh, e === null ? Dh : e;
		}
		function ys() {
			var e = K.A;
			return K.A = yg, e;
		}
		function bs(e) {
			v_ === null && (v_ = e._debugTask == null ? null : e._debugTask);
		}
		function xs() {
			r_ = Pg, $g || (Bg & 4194048) !== Bg && Zm.current !== null || (e_ = !0), !(i_ & 134217727) && !(a_ & 134217727) || Rg === null || us(Rg, Bg, s_, !1);
		}
		function Ss(e, t, n) {
			var r = Lg;
			Lg |= Q;
			var i = vs(), a = ys();
			if (Rg !== e || Bg !== t) {
				if (Bd) {
					var o = e.memoizedUpdaters;
					0 < o.size && (Zs(e, Bg), o.clear()), pe(e, t);
				}
				__ = null, hs(e, t);
			}
			t = !1, o = r_;
			a: do
				try {
					if (Zg !== Vg && zg !== null) {
						var s = zg, c = Qg;
						switch (Zg) {
							case Yg:
								ps(), o = Fg;
								break a;
							case Wg:
							case Ug:
							case Xg:
							case qg:
								Zm.current === null && (t = !0);
								var l = Zg;
								if (Zg = Vg, Qg = null, ks(e, s, c, l), n && e_) {
									o = Ag;
									break a;
								}
								break;
							default: l = Zg, Zg = Vg, Qg = null, ks(e, s, c, l);
						}
					}
					Cs(), o = r_;
					break;
				} catch (t) {
					gs(e, t);
				}
			while (1);
			return t && e.shellSuspendCounter++, Ot(), Lg = r, K.H = i, K.A = a, zg === null && (Rg = null, Bg = 0, Un()), o;
		}
		function Cs() {
			for (; zg !== null;) Es(zg);
		}
		function ws(e, t) {
			var n = Lg;
			Lg |= Q;
			var r = vs(), i = ys();
			if (Rg !== e || Bg !== t) {
				if (Bd) {
					var a = e.memoizedUpdaters;
					0 < a.size && (Zs(e, Bg), a.clear()), pe(e, t);
				}
				__ = null, h_ = Ad() + g_, hs(e, t);
			} else e_ = A(e, t);
			a: do
				try {
					if (Zg !== Vg && zg !== null) b: switch (t = zg, a = Qg, Zg) {
						case Hg:
							Zg = Vg, Qg = null, ks(e, t, a, Hg);
							break;
						case Ug:
						case Xg:
							if (Tn(a)) {
								Zg = Vg, Qg = null, Ds(t);
								break;
							}
							t = function() {
								Zg !== Ug && Zg !== Xg || Rg !== e || (Zg = Jg), sn(e);
							}, a.then(t, t);
							break a;
						case Wg:
							Zg = Jg;
							break a;
						case Gg:
							Zg = Kg;
							break a;
						case Jg:
							Tn(a) ? (Zg = Vg, Qg = null, Ds(t)) : (Zg = Vg, Qg = null, ks(e, t, a, Jg));
							break;
						case Kg:
							var o = null;
							switch (zg.tag) {
								case 26: o = zg.memoizedState;
								case 5:
								case 27:
									var s = zg, c = s.type, l = s.pendingProps;
									if (o ? cd(o) : wl(s.stateNode, c, l)) {
										Zg = Vg, Qg = null;
										var u = s.sibling;
										if (u !== null) zg = u;
										else {
											var d = s.return;
											d === null ? zg = null : (zg = d, As(d));
										}
										break b;
									}
									break;
								default: console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.");
							}
							Zg = Vg, Qg = null, ks(e, t, a, Kg);
							break;
						case qg:
							Zg = Vg, Qg = null, ks(e, t, a, qg);
							break;
						case Yg:
							ps(), r_ = Fg;
							break a;
						default: throw Error("Unexpected SuspendedReason. This is a bug in React.");
					}
					K.actQueue === null ? Ts() : Cs();
					break;
				} catch (t) {
					gs(e, t);
				}
			while (1);
			return Ot(), K.H = r, K.A = i, Lg = n, zg === null ? (Rg = null, Bg = 0, Un(), r_) : Ag;
		}
		function Ts() {
			for (; zg !== null && !Od();) Es(zg);
		}
		function Es(e) {
			var t = e.alternate;
			(e.mode & 2) === zf ? t = I(e, Aa, t, e, n_) : ($t(e), t = I(e, Aa, t, e, n_), en(e)), e.memoizedProps = e.pendingProps, t === null ? As(e) : zg = t;
		}
		function Ds(e) {
			var t = I(e, Os, e);
			e.memoizedProps = e.pendingProps, t === null ? As(e) : zg = t;
		}
		function Os(e) {
			var t = e.alternate, n = (e.mode & 2) !== zf;
			switch (n && $t(e), e.tag) {
				case 15:
				case 0:
					t = ma(t, e, e.pendingProps, e.type, void 0, Bg);
					break;
				case 11:
					t = ma(t, e, e.pendingProps, e.type.render, e.ref, Bg);
					break;
				case 5: Tr(e);
				default: Ga(t, e), e = zg = cc(e, n_), t = Aa(t, e, n_);
			}
			return n && en(e), t;
		}
		function ks(e, t, n, r) {
			Ot(), Tr(t), Dm = null, Om = 0;
			var i = t.return;
			try {
				if (na(e, i, t, n, Bg)) {
					r_ = jg, Zi(e, Ve(n, e.current)), zg = null;
					return;
				}
			} catch (t) {
				if (i !== null) throw zg = i, t;
				r_ = jg, Zi(e, Ve(n, e.current)), zg = null;
				return;
			}
			t.flags & 32768 ? (Nf || r === Hg ? e = !0 : e_ || Bg & 536870912 ? e = !1 : ($g = e = !0, (r === Ug || r === Xg || r === Wg || r === qg) && (r = Zm.current, r !== null && r.tag === 13 && (r.flags |= 16384))), js(t, e)) : As(t);
		}
		function As(e) {
			var t = e;
			do {
				if (t.flags & 32768) {
					js(t, $g);
					return;
				}
				var n = t.alternate;
				if (e = t.return, $t(t), n = I(t, Ua, n, t, n_), (t.mode & 2) !== zf && tn(t), n !== null) {
					zg = n;
					return;
				}
				if (t = t.sibling, t !== null) {
					zg = t;
					return;
				}
				zg = t = e;
			} while (t !== null);
			r_ === Ag && (r_ = Ig);
		}
		function js(e, t) {
			do {
				var n = Wa(e.alternate, e);
				if (n !== null) {
					n.flags &= 32767, zg = n;
					return;
				}
				if ((e.mode & 2) !== zf) {
					tn(e), n = e.actualDuration;
					for (var r = e.child; r !== null;) n += r.actualDuration, r = r.sibling;
					e.actualDuration = n;
				}
				if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
					zg = e;
					return;
				}
				zg = e = n;
			} while (e !== null);
			r_ = Fg, zg = null;
		}
		function Ms(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
			e.cancelPendingCommit = null;
			do
				Rs();
			while (A_ !== w_);
			if (Yp.flushLegacyContextWarning(), Yp.flushPendingUnsafeLifecycleWarnings(), (Lg & (Q | kg)) !== Og) throw Error("Should not already be working.");
			if (xe(n), l === Mg ? Ae(f, p, n, v_) : r === null ? Ee(f, p, n, v_) : ke(f, p, n, r, t !== null && t.alternate !== null && t.alternate.memoizedState.isDehydrated && (t.flags & 256) != 0, v_), t !== null) {
				if (n === 0 && console.error("finishedLanes should not be empty during a commit. This is a bug in React."), t === e.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");
				if (a = t.lanes | t.childLanes, a |= Bm, se(e, n, a, o, s, c), e === Rg && (zg = Rg = null, Bg = 0), M_ = t, j_ = e, N_ = n, P_ = a, I_ = i, L_ = r, F_ = p, R_ = d, z_ = b_, B_ = null, t.actualDuration !== 0 || t.subtreeFlags & 10256 || t.flags & 10256 ? (e.callbackNode = null, e.callbackPriority = 0, Qs(Nd, function() {
					return gl(), z_ === b_ && (z_ = S_), zs(), null;
				})) : (e.callbackNode = null, e.callbackPriority = 0), tp = null, $f = Xf(), d !== null && je(p, $f, d, v_), r = (t.flags & 13878) != 0, t.subtreeFlags & 13878 || r) {
					r = K.T, K.T = null, i = ml(), pl(2), o = Lg, Lg |= kg;
					try {
						vo(e, t, n);
					} finally {
						Lg = o, pl(i), K.T = r;
					}
				}
				A_ = T_, Ns(), Ps(), Fs();
			}
		}
		function Ns() {
			if (A_ === T_) {
				A_ = w_;
				var e = j_, t = M_, n = N_, r = (t.flags & 13878) != 0;
				if (t.subtreeFlags & 13878 || r) {
					r = K.T, K.T = null;
					var i = ml();
					pl(2);
					var a = Lg;
					Lg |= kg;
					try {
						fg = n, pg = e, Kt(), Oo(t, e), pg = fg = null, Qc(e.containerInfo);
					} finally {
						Lg = a, pl(i), K.T = r;
					}
				}
				e.current = t, A_ = E_;
			}
		}
		function Ps() {
			if (A_ === E_) {
				A_ = w_;
				var e = B_;
				if (e !== null) {
					$f = Xf();
					var t = ep, n = $f;
					!Jd || n <= t || (Ap ? Ap.run(console.timeStamp.bind(console, e, t, n, Yd, "Scheduler ⚛", "secondary-light")) : console.timeStamp(e, t, n, Yd, "Scheduler ⚛", "secondary-light"));
				}
				e = j_, t = M_, n = N_;
				var r = (t.flags & 8772) != 0;
				if (t.subtreeFlags & 8772 || r) {
					r = K.T, K.T = null;
					var i = ml();
					pl(2);
					var a = Lg;
					Lg |= kg;
					try {
						fg = n, pg = e, Kt(), yo(e, t.alternate, t), pg = fg = null;
					} finally {
						Lg = a, pl(i), K.T = r;
					}
				}
				e = F_, t = R_, ep = Xf(), e = t === null ? e : $f, t = ep, n = z_ === x_, r = v_, tp === null ? !Jd || t <= e || (r ? r.run(console.timeStamp.bind(console, n ? "Commit Interrupted View Transition" : "Commit", e, t, Yd, "Scheduler ⚛", n ? "error" : "secondary-dark")) : console.timeStamp(n ? "Commit Interrupted View Transition" : "Commit", e, t, Yd, "Scheduler ⚛", n ? "error" : "secondary-dark")) : Me(e, t, tp, !1, r), A_ = D_;
			}
		}
		function Fs() {
			if (A_ === O_ || A_ === D_) {
				if (A_ === O_) {
					var e = ep;
					ep = Xf();
					var t = ep, n = z_ === x_;
					!Jd || t <= e || (Ap ? Ap.run(console.timeStamp.bind(console, n ? "Interrupted View Transition" : "Starting Animation", e, t, Yd, "Scheduler ⚛", n ? "error" : "secondary-light")) : console.timeStamp(n ? "Interrupted View Transition" : "Starting Animation", e, t, Yd, "Scheduler ⚛", n ? " error" : "secondary-light")), z_ !== x_ && (z_ = C_);
				}
				A_ = w_, kd(), e = j_;
				var r = M_;
				t = N_, n = L_;
				var i = r.actualDuration !== 0 || (r.subtreeFlags & 10256) != 0 || (r.flags & 10256) != 0;
				i ? A_ = k_ : (A_ = w_, M_ = j_ = null, Ls(e, e.pendingLanes), q_ = 0, J_ = null);
				var a = e.pendingLanes;
				if (a === 0 && (y_ = null), i || Ys(e), a = me(t), r = r.stateNode, Rd && typeof Rd.onCommitFiberRoot == "function") try {
					var o = (r.current.flags & 128) == 128;
					switch (a) {
						case 2:
							var s = jd;
							break;
						case 8:
							s = Md;
							break;
						case 32:
							s = Nd;
							break;
						case 268435456:
							s = Pd;
							break;
						default: s = Nd;
					}
					Rd.onCommitFiberRoot(Ld, r, s, o);
				} catch (e) {
					zd || (zd = !0, console.error("React instrumentation encountered an error: %o", e));
				}
				if (Bd && e.memoizedUpdaters.clear(), ns(), n !== null) {
					o = K.T, s = ml(), pl(2), K.T = null;
					try {
						var c = e.onRecoverableError;
						for (r = 0; r < n.length; r++) {
							var l = n[r], u = Is(l.stack);
							I(l.source, c, l.value, u);
						}
					} finally {
						K.T = o, pl(s);
					}
				}
				N_ & 3 && Rs(), sn(e), a = e.pendingLanes, t & 261930 && a & 42 ? (Pp = !0, e === U_ ? H_++ : (H_ = 0, U_ = e)) : H_ = 0, i || ms(t, ep), ul && zu(), cn(0, !1);
			}
		}
		function Is(e) {
			return e = { componentStack: e }, Object.defineProperty(e, "digest", { get: function() {
				console.error("You are accessing \"digest\" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.");
			} }), e;
		}
		function Ls(e, t) {
			(e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Bt(t)));
		}
		function Rs() {
			return Ns(), Ps(), Fs(), zs();
		}
		function zs() {
			if (A_ !== k_) return !1;
			var e = j_, t = P_;
			P_ = 0;
			var n = me(N_), r = 32 > n ? 32 : n;
			n = K.T;
			var i = ml();
			try {
				pl(r), K.T = null;
				var a = I_;
				I_ = null, r = j_;
				var o = N_;
				if (A_ = w_, M_ = j_ = null, N_ = 0, (Lg & (Q | kg)) !== Og) throw Error("Cannot flush passive effects while already rendering.");
				xe(o), W_ = !0, G_ = !1;
				var s = 0;
				if (tp = null, s = Ad(), z_ === C_) {
					var c = ep, l = s;
					!Jd || l <= c || (Ap ? Ap.run(console.timeStamp.bind(console, "Animating", c, l, Yd, "Scheduler ⚛", "secondary-dark")) : console.timeStamp("Animating", c, l, Yd, "Scheduler ⚛", "secondary-dark"));
				} else {
					c = ep, l = s;
					var u = z_ === S_;
					!Jd || l <= c || (v_ ? v_.run(console.timeStamp.bind(console, u ? "Waiting for Paint" : "Waiting", c, l, Yd, "Scheduler ⚛", "secondary-light")) : console.timeStamp(u ? "Waiting for Paint" : "Waiting", c, l, Yd, "Scheduler ⚛", "secondary-light"));
				}
				c = Lg, Lg |= kg;
				var d = r.current;
				Kt(), qo(d);
				var f = r.current;
				d = F_, Kt(), zo(r, f, o, a, d), Ys(r), Lg = c;
				var p = Ad();
				if (f = s, d = v_, tp === null ? !Jd || p <= f || (d ? d.run(console.timeStamp.bind(console, "Remaining Effects", f, p, Yd, "Scheduler ⚛", "secondary-dark")) : console.timeStamp("Remaining Effects", f, p, Yd, "Scheduler ⚛", "secondary-dark")) : Me(f, p, tp, !0, d), ms(o, p), cn(0, !1), G_ ? r === J_ ? q_++ : (q_ = 0, J_ = r) : q_ = 0, G_ = W_ = !1, Rd && typeof Rd.onPostCommitFiberRoot == "function") try {
					Rd.onPostCommitFiberRoot(Ld, r);
				} catch (e) {
					zd || (zd = !0, console.error("React instrumentation encountered an error: %o", e));
				}
				var m = r.current.stateNode;
				return m.effectDuration = 0, m.passiveEffectDuration = 0, !0;
			} finally {
				pl(i), K.T = n, Ls(e, t);
			}
		}
		function Bs(e, t, n) {
			t = Ve(n, t), B(t), t = $i(e.stateNode, t, 2), e = Qn(e, t, 2), e !== null && (oe(e, 2), sn(e));
		}
		function Vs(e, t, n) {
			if (Y_ = !1, e.tag === 3) Bs(e, e, n);
			else {
				for (; t !== null;) {
					if (t.tag === 3) {
						Bs(t, e, n);
						return;
					}
					if (t.tag === 1) {
						var r = t.stateNode;
						if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (y_ === null || !y_.has(r))) {
							e = Ve(n, e), B(e), n = ea(2), r = Qn(t, n, 2), r !== null && (ta(n, r, t, e), oe(r, 2), sn(r));
							return;
						}
					}
					t = t.return;
				}
				console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s", n);
			}
		}
		function Hs(e, t, n) {
			var r = e.pingCache;
			if (r === null) {
				r = e.pingCache = new Dg();
				var i = /* @__PURE__ */ new Set();
				r.set(t, i);
			} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
			i.has(n) || (t_ = !0, i.add(n), r = Us.bind(null, e, t, n), Bd && Zs(e, n), t.then(r, r));
		}
		function Us(e, t, n) {
			var r = e.pingCache;
			r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, n & 127 ? 0 > up && (lp = up = Xf(), dp = Zf("Promise Resolved"), fp = 2) : n & 4194048 && 0 > xp && (yp = xp = Xf(), Cp = Zf("Promise Resolved"), Sp = 2), rs() && K.actQueue === null && console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n  /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"), Rg === e && (Bg & n) === n && (r_ === Pg || r_ === Ng && (Bg & 62914560) === Bg && Ad() - f_ < m_ ? (Lg & Q) === Og && hs(e, 0) : o_ |= n, c_ === Bg && (c_ = 0)), sn(e);
		}
		function Ws(e, t) {
			t === 0 && (t = j()), e = Kn(e, t), e !== null && (oe(e, t), sn(e));
		}
		function Gs(e) {
			var t = e.memoizedState, n = 0;
			t !== null && (n = t.retryLane), Ws(e, n);
		}
		function Ks(e, t) {
			var n = 0;
			switch (e.tag) {
				case 31:
				case 13:
					var r = e.stateNode, i = e.memoizedState;
					i !== null && (n = i.retryLane);
					break;
				case 19:
					r = e.stateNode;
					break;
				case 22:
					r = e.stateNode._retryCache;
					break;
				default: throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.");
			}
			r !== null && r.delete(t), Ws(e, n);
		}
		function qs(e, t, n) {
			if (t.subtreeFlags & 67117056) for (t = t.child; t !== null;) {
				var r = e, i = t, a = i.type === Mc;
				a = n || a, i.tag === 22 ? i.memoizedState === null && (a && i.flags & 8192 ? I(i, Js, r, i) : i.subtreeFlags & 67108864 && I(i, qs, r, i, a)) : i.flags & 67108864 ? a && I(i, Js, r, i) : qs(r, i, a), t = t.sibling;
			}
		}
		function Js(e, t) {
			ge(!0);
			try {
				Mo(t), Yo(t), Po(e, t.alternate, t, !1), Vo(e, t, 0, null, !1, 0);
			} finally {
				ge(!1);
			}
		}
		function Ys(e) {
			var t = !0;
			e.current.mode & 24 || (t = !1), qs(e, e.current, t);
		}
		function Xs(e) {
			if ((Lg & Q) === Og) {
				var t = e.tag;
				if (t === 3 || t === 1 || t === 0 || t === 11 || t === 14 || t === 15) {
					if (t = w(e) || "ReactComponent", X_ !== null) {
						if (X_.has(t)) return;
						X_.add(t);
					} else X_ = new Set([t]);
					I(e, function() {
						console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.");
					});
				}
			}
		}
		function Zs(e, t) {
			Bd && e.memoizedUpdaters.forEach(function(n) {
				fe(e, n, t);
			});
		}
		function Qs(e, t) {
			var n = K.actQueue;
			return n === null ? Ed(e, t) : (n.push(t), $_);
		}
		function $s(e) {
			rs() && K.actQueue === null && I(e, function() {
				console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n  /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act", w(e));
			});
		}
		function ec(e) {
			if (ev === null) return e;
			var t = ev(e);
			return t === void 0 ? e : t.current;
		}
		function tc(e) {
			if (ev === null) return e;
			var t = ev(e);
			return t === void 0 ? e != null && typeof e.render == "function" && (t = ec(e.render), e.render !== t) ? (t = {
				$$typeof: G,
				render: t
			}, e.displayName !== void 0 && (t.displayName = e.displayName), t) : e : t.current;
		}
		function nc(e, t) {
			if (ev === null) return !1;
			var n = e.elementType;
			t = t.type;
			var r = !1, i = typeof t == "object" && t ? t.$$typeof : null;
			switch (e.tag) {
				case 1:
					typeof t == "function" && (r = !0);
					break;
				case 0:
					(typeof t == "function" || i === zc) && (r = !0);
					break;
				case 11:
					(i === G || i === zc) && (r = !0);
					break;
				case 14:
				case 15:
					(i === Rc || i === zc) && (r = !0);
					break;
				default: return !1;
			}
			return !!(r && (e = ev(n), e !== void 0 && e === ev(t)));
		}
		function rc(e) {
			ev !== null && typeof WeakSet == "function" && (tv === null && (tv = /* @__PURE__ */ new WeakSet()), tv.add(e));
		}
		function ic(e, t, n) {
			do {
				var r = e, i = r.alternate, a = r.child, o = r.sibling, s = r.tag;
				r = r.type;
				var c = null;
				switch (s) {
					case 0:
					case 15:
					case 1:
						c = r;
						break;
					case 11: c = r.render;
				}
				if (ev === null) throw Error("Expected resolveFamily to be set during hot reload.");
				var l = !1;
				if (r = !1, c !== null && (c = ev(c), c !== void 0 && (n.has(c) ? r = !0 : t.has(c) && (s === 1 ? r = !0 : l = !0))), tv !== null && (tv.has(e) || i !== null && tv.has(i)) && (r = !0), r && (e._debugNeedsRemount = !0), (r || l) && (i = Kn(e, 2), i !== null && os(i, e, 2)), a === null || r || ic(a, t, n), o === null) break;
				e = o;
			} while (1);
		}
		function ac(e, t, n, r) {
			this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null, this.actualDuration = -0, this.actualStartTime = -1.1, this.treeBaseDuration = this.selfBaseDuration = -0, this._debugTask = this._debugStack = this._debugOwner = this._debugInfo = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, nv || typeof Object.preventExtensions != "function" || Object.preventExtensions(this);
		}
		function oc(e) {
			return e = e.prototype, !(!e || !e.isReactComponent);
		}
		function sc(e, t) {
			var n = e.alternate;
			switch (n === null ? (n = c(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n._debugOwner = e._debugOwner, n._debugStack = e._debugStack, n._debugTask = e._debugTask, n._debugHookTypes = e._debugHookTypes, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null, n.actualDuration = -0, n.actualStartTime = -1.1), n.flags = e.flags & 65011712, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
				lanes: t.lanes,
				firstContext: t.firstContext,
				_debugThenableState: t._debugThenableState
			}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n.selfBaseDuration = e.selfBaseDuration, n.treeBaseDuration = e.treeBaseDuration, n._debugInfo = e._debugInfo, n._debugNeedsRemount = e._debugNeedsRemount, n.tag) {
				case 0:
				case 15:
					n.type = ec(e.type);
					break;
				case 1:
					n.type = ec(e.type);
					break;
				case 11: n.type = tc(e.type);
			}
			return n;
		}
		function cc(e, t) {
			e.flags &= 65011714;
			var n = e.alternate;
			return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null, e.selfBaseDuration = 0, e.treeBaseDuration = 0) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
				lanes: t.lanes,
				firstContext: t.firstContext,
				_debugThenableState: t._debugThenableState
			}, e.selfBaseDuration = n.selfBaseDuration, e.treeBaseDuration = n.treeBaseDuration), e;
		}
		function lc(e, t, n, r, i, a) {
			var o = 0, s = e;
			if (typeof e == "function") oc(e) && (o = 1), s = ec(s);
			else if (typeof e == "string") Xu && ud ? (o = Qe(), o = Zu(e, n, o) ? 26 : md(e) ? 27 : 5) : Xu ? (o = Qe(), o = Zu(e, n, o) ? 26 : 5) : o = ud && md(e) ? 27 : 5;
			else a: switch (e) {
				case Bc: return t = c(31, n, t, i), t.elementType = Bc, t.lanes = a, t;
				case jc: return dc(n.children, i, a, t);
				case Mc:
					o = 8, i |= 24;
					break;
				case Nc: return e = n, r = i, typeof e.id != "string" && console.error("Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.", typeof e.id), t = c(12, e, t, r | 2), t.elementType = Nc, t.lanes = a, t.stateNode = {
					effectDuration: 0,
					passiveEffectDuration: 0
				}, t;
				case Ic: return t = c(13, n, t, i), t.elementType = Ic, t.lanes = a, t;
				case Lc: return t = c(19, n, t, i), t.elementType = Lc, t.lanes = a, t;
				default:
					if (typeof e == "object" && e) switch (e.$$typeof) {
						case Fc:
							o = 10;
							break a;
						case Pc:
							o = 9;
							break a;
						case G:
							o = 11, s = tc(s);
							break a;
						case Rc:
							o = 14;
							break a;
						case zc:
							o = 16, s = null;
							break a;
					}
					s = "", (e === void 0 || typeof e == "object" && e && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : Wc(e) ? n = "array" : e !== void 0 && e.$$typeof === kc ? (n = "<" + (ne(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, o = r ? typeof r.tag == "number" ? w(r) : typeof r.name == "string" ? r.name : null : null, o && (s += "\n\nCheck the render method of `" + o + "`."), o = 29, n = Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (n + "." + s)), s = null;
			}
			return t = c(o, n, t, i), t.elementType = e, t.type = s, t.lanes = a, t._debugOwner = r, t;
		}
		function uc(e, t, n) {
			return t = lc(e.type, e.key, e.props, e._owner, t, n), t._debugOwner = e._owner, t._debugStack = e._debugStack, t._debugTask = e._debugTask, t;
		}
		function dc(e, t, n, r) {
			return e = c(7, e, r, t), e.lanes = n, e;
		}
		function fc(e, t, n) {
			return e = c(6, e, null, t), e.lanes = n, e;
		}
		function pc(e) {
			var t = c(18, null, null, zf);
			return t.stateNode = e, t;
		}
		function mc(e, t, n) {
			return t = c(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
				containerInfo: e.containerInfo,
				pendingChildren: null,
				implementation: e.implementation
			}, t;
		}
		function hc(e, t, n, r, i, a, o, s, c) {
			for (this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = ol, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ae(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ae(0), this.hiddenUpdates = ae(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.incompleteTransitions = /* @__PURE__ */ new Map(), this.passiveEffectDuration = this.effectDuration = -0, this.memoizedUpdaters = /* @__PURE__ */ new Set(), e = this.pendingUpdatersLaneMap = [], t = 0; 31 > t; t++) e.push(/* @__PURE__ */ new Set());
			this._debugRootType = n ? "hydrateRoot()" : "createRoot()";
		}
		function gc(e, t, n, r, i, a, o, s, l, u, d, f) {
			return e = new hc(e, t, n, o, l, u, d, f, s), t = 1, !0 === a && (t |= 24), a = c(3, null, null, t | 2), e.current = a, a.stateNode = e, t = Rt(), zt(t), e.pooledCache = t, zt(t), a.memoizedState = {
				element: r,
				isDehydrated: n,
				cache: t
			}, Yn(a), e;
		}
		function _c(e) {
			return "" + e;
		}
		function vc(e) {
			return e ? (e = yd, e) : yd;
		}
		function yc(e, t, n, r) {
			return bc(t.current, 2, e, t, n, r), 2;
		}
		function bc(e, t, n, r, i, a) {
			if (Rd && typeof Rd.onScheduleFiberRoot == "function") try {
				Rd.onScheduleFiberRoot(Ld, r, n);
			} catch (e) {
				zd || (zd = !0, console.error("React instrumentation encountered an error: %o", e));
			}
			i = vc(i), r.context === null ? r.context = i : r.pendingContext = i, Af && kf !== null && !iv && (iv = !0, console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", w(kf) || "Unknown")), r = Zn(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (typeof a != "function" && console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.", a), r.callback = a), n = Qn(e, r, t), n !== null && (Vt(t, "root.render()", null), os(n, e, t), $n(n, e, t));
		}
		function xc(e, t) {
			if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
				var n = e.retryLane;
				e.retryLane = n !== 0 && n < t ? n : t;
			}
		}
		function Sc(e, t) {
			xc(e, t), (e = e.alternate) && xc(e, t);
		}
		function Cc() {
			return kf;
		}
		var wc = {}, Tc = g(), Ec = p(), Dc = Object.assign, Oc = Symbol.for("react.element"), kc = Symbol.for("react.transitional.element"), Ac = Symbol.for("react.portal"), jc = Symbol.for("react.fragment"), Mc = Symbol.for("react.strict_mode"), Nc = Symbol.for("react.profiler"), Pc = Symbol.for("react.consumer"), Fc = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), Ic = Symbol.for("react.suspense"), Lc = Symbol.for("react.suspense_list"), Rc = Symbol.for("react.memo"), zc = Symbol.for("react.lazy"), Bc = Symbol.for("react.activity"), Vc = Symbol.for("react.memo_cache_sentinel"), Hc = Symbol.iterator, Uc = Symbol.for("react.client.reference"), Wc = Array.isArray, K = Tc.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Gc = e.rendererVersion, Kc = e.rendererPackageName, qc = e.extraDevToolsConfig, Jc = e.getPublicInstance, Yc = e.getRootHostContext, Xc = e.getChildHostContext, Zc = e.prepareForCommit, Qc = e.resetAfterCommit, $c = e.createInstance;
		e.cloneMutableInstance;
		var el = e.appendInitialChild, tl = e.finalizeInitialChildren, nl = e.shouldSetTextContent, rl = e.createTextInstance;
		e.cloneMutableTextInstance;
		var il = e.scheduleTimeout, al = e.cancelTimeout, ol = e.noTimeout, sl = e.isPrimaryRenderer;
		e.warnsIfNotActing;
		var cl = e.supportsMutation, ll = e.supportsPersistence, ul = e.supportsHydration, dl = e.getInstanceFromNode;
		e.beforeActiveInstanceBlur;
		var fl = e.preparePortalMount;
		e.prepareScopeUpdate, e.getInstanceFromScope;
		var pl = e.setCurrentUpdatePriority, ml = e.getCurrentUpdatePriority, hl = e.resolveUpdatePriority, gl = e.trackSchedulerEvent, _l = e.resolveEventType, vl = e.resolveEventTimeStamp, yl = e.shouldAttemptEagerTransition, bl = e.detachDeletedInstance;
		e.requestPostPaintCallback;
		var xl = e.maySuspendCommit, Sl = e.maySuspendCommitOnUpdate, Cl = e.maySuspendCommitInSyncRender, wl = e.preloadInstance, Tl = e.startSuspendingCommit, El = e.suspendInstance;
		e.suspendOnActiveViewTransition;
		var Dl = e.waitForCommitToBeReady, Ol = e.getSuspendedCommitReason, kl = e.NotPendingTransition, Al = e.HostTransitionContext, jl = e.resetFormInstance, Ml = e.bindToConsole, Nl = e.supportsMicrotasks, Pl = e.scheduleMicrotask, Fl = e.supportsTestSelectors, Il = e.findFiberRoot, Ll = e.getBoundingRect, Rl = e.getTextContent, zl = e.isHiddenSubtree, Bl = e.matchAccessibilityRole, Vl = e.setFocusIfFocusable, Hl = e.setupIntersectionObserver, Ul = e.appendChild, Wl = e.appendChildToContainer, Gl = e.commitTextUpdate, Kl = e.commitMount, ql = e.commitUpdate, Jl = e.insertBefore, Yl = e.insertInContainerBefore, Xl = e.removeChild, Zl = e.removeChildFromContainer, Ql = e.resetTextContent, $l = e.hideInstance, eu = e.hideTextInstance, tu = e.unhideInstance, nu = e.unhideTextInstance;
		e.cancelViewTransitionName, e.cancelRootViewTransitionName, e.restoreRootViewTransitionName, e.cloneRootViewTransitionContainer, e.removeRootViewTransitionClone, e.measureClonedInstance, e.hasInstanceChanged, e.hasInstanceAffectedParent, e.startViewTransition, e.startGestureTransition, e.stopViewTransition, e.getCurrentGestureOffset, e.createViewTransitionInstance;
		var ru = e.clearContainer;
		e.createFragmentInstance, e.updateFragmentInstanceFiber, e.commitNewChildToFragmentInstance, e.deleteChildFromFragmentInstance;
		var iu = e.cloneInstance, au = e.createContainerChildSet, ou = e.appendChildToContainerChildSet, su = e.finalizeContainerChildren, cu = e.replaceContainerChildren, lu = e.cloneHiddenInstance, uu = e.cloneHiddenTextInstance, du = e.isSuspenseInstancePending, fu = e.isSuspenseInstanceFallback, pu = e.getSuspenseInstanceFallbackErrorDetails, mu = e.registerSuspenseInstanceRetry, hu = e.canHydrateFormStateMarker, gu = e.isFormStateMarkerMatching, _u = e.getNextHydratableSibling, vu = e.getNextHydratableSiblingAfterSingleton, yu = e.getFirstHydratableChild, bu = e.getFirstHydratableChildWithinContainer, xu = e.getFirstHydratableChildWithinActivityInstance, Su = e.getFirstHydratableChildWithinSuspenseInstance, Cu = e.getFirstHydratableChildWithinSingleton, wu = e.canHydrateInstance, Tu = e.canHydrateTextInstance, Eu = e.canHydrateActivityInstance, Du = e.canHydrateSuspenseInstance, Ou = e.hydrateInstance, ku = e.hydrateTextInstance, Au = e.hydrateActivityInstance, ju = e.hydrateSuspenseInstance, Mu = e.getNextHydratableInstanceAfterActivityInstance, Nu = e.getNextHydratableInstanceAfterSuspenseInstance, Pu = e.commitHydratedInstance, Fu = e.commitHydratedContainer, Iu = e.commitHydratedActivityInstance, Lu = e.commitHydratedSuspenseInstance, Ru = e.finalizeHydratedChildren, zu = e.flushHydrationEvents;
		e.clearActivityBoundary;
		var Bu = e.clearSuspenseBoundary;
		e.clearActivityBoundaryFromContainer;
		var Vu = e.clearSuspenseBoundaryFromContainer, Hu = e.hideDehydratedBoundary, Uu = e.unhideDehydratedBoundary, Wu = e.shouldDeleteUnhydratedTailInstances, Gu = e.diffHydratedPropsForDevWarnings, Ku = e.diffHydratedTextForDevWarnings, qu = e.describeHydratableInstanceForDevWarnings, Ju = e.validateHydratableInstance, Yu = e.validateHydratableTextInstance, Xu = e.supportsResources, Zu = e.isHostHoistableType, Qu = e.getHoistableRoot, $u = e.getResource, ed = e.acquireResource, td = e.releaseResource, nd = e.hydrateHoistable, rd = e.mountHoistable, id = e.unmountHoistable, ad = e.createHoistableInstance, od = e.prepareToCommitHoistables, sd = e.mayResourceSuspendCommit, cd = e.preloadResource, ld = e.suspendResource, ud = e.supportsSingletons, dd = e.resolveSingletonInstance, fd = e.acquireSingletonInstance, pd = e.releaseSingletonInstance, md = e.isHostSingletonType, hd = e.isSingletonScope, gd = [], _d = [], vd = -1, yd = {};
		Object.freeze(yd);
		var bd = Math.clz32 ? Math.clz32 : re, xd = Math.log, Sd = Math.LN2, Cd = 256, wd = 262144, Td = 4194304, Ed = Ec.unstable_scheduleCallback, Dd = Ec.unstable_cancelCallback, Od = Ec.unstable_shouldYield, kd = Ec.unstable_requestPaint, Ad = Ec.unstable_now, jd = Ec.unstable_ImmediatePriority, Md = Ec.unstable_UserBlockingPriority, Nd = Ec.unstable_NormalPriority, Pd = Ec.unstable_IdlePriority, Fd = Ec.log, Id = Ec.unstable_setDisableYieldValue, Ld = null, Rd = null, zd = !1, Bd = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u", Vd = 0;
		if (typeof performance == "object" && typeof performance.now == "function") var Hd = performance, Ud = function() {
			return Hd.now();
		};
		else {
			var Wd = Date;
			Ud = function() {
				return Wd.now();
			};
		}
		var Gd = typeof Object.is == "function" ? Object.is : _e, Kd = typeof reportError == "function" ? reportError : function(e) {
			if (typeof window == "object" && typeof window.ErrorEvent == "function") {
				var t = new window.ErrorEvent("error", {
					bubbles: !0,
					cancelable: !0,
					message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
					error: e
				});
				if (!window.dispatchEvent(t)) return;
			} else if (typeof process == "object" && typeof process.emit == "function") {
				process.emit("uncaughtException", e);
				return;
			}
			console.error(e);
		}, qd = Object.prototype.hasOwnProperty, Jd = typeof console < "u" && typeof console.timeStamp == "function" && typeof performance < "u" && typeof performance.measure == "function", Yd = "Blocking", Xd = !1, Zd = {
			color: "primary",
			properties: null,
			tooltipText: "",
			track: "Components ⚛"
		}, Qd = {
			start: -0,
			end: -0,
			detail: { devtools: Zd }
		}, $d = ["Changed Props", ""], ef = ["Changed Props", "This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."], tf = 0, nf, rf, af, of, sf, cf, lf;
		P.__reactDisabledLog = !0;
		var uf, df, ff = !1, pf = new (typeof WeakMap == "function" ? WeakMap : Map)(), mf = /* @__PURE__ */ new WeakMap(), hf = [], gf = 0, _f = null, vf = 0, yf = [], bf = 0, xf = null, Sf = 1, Cf = "", wf = T(null), Tf = T(null), Ef = T(null), Df = T(null), Of = /["'&<>\n\t]|^\s|\s$/, kf = null, Af = !1, jf = null, Mf = null, Nf = !1, Pf = !1, Ff = null, If = null, Lf = !1, Rf = Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."), zf = 0, Bf = T(null), Vf = T(null), q = T(null), Hf = {}, Uf = null, Wf = null, Gf = !1, Kf = typeof AbortController < "u" ? AbortController : function() {
			var e = [], t = this.signal = {
				aborted: !1,
				addEventListener: function(t, n) {
					e.push(n);
				}
			};
			this.abort = function() {
				t.aborted = !0, e.forEach(function(e) {
					return e();
				});
			};
		}, qf = Ec.unstable_scheduleCallback, Jf = Ec.unstable_NormalPriority, Yf = {
			$$typeof: Fc,
			Consumer: null,
			Provider: null,
			_currentValue: null,
			_currentValue2: null,
			_threadCount: 0,
			_currentRenderer: null,
			_currentRenderer2: null
		}, Xf = Ec.unstable_now, Zf = console.createTask ? console.createTask : function() {
			return null;
		}, Qf = -0, $f = -0, ep = -0, tp = null, np = -1.1, rp = -0, ip = -0, ap = -1.1, op = -1.1, sp = null, cp = !1, lp = -0, up = -1.1, dp = null, fp = 0, pp = null, mp = null, hp = -1.1, gp = null, _p = -1.1, vp = -1.1, yp = -0, bp = -1.1, xp = -1.1, Sp = 0, Cp = null, wp = null, Tp = null, Ep = -1.1, Dp = null, Op = -1.1, kp = -1.1, Ap = null, jp = 0, Mp = -1.1, Np = !1, Pp = !1, Fp = null, Ip = null, Lp = !1, Rp = !1, zp = !1, Bp = !1, Vp = 0, Hp = {}, Up = null, Wp = 0, Gp = 0, Kp = null, qp = K.S;
		K.S = function(e, t) {
			if (p_ = Ad(), typeof t == "object" && t && typeof t.then == "function") {
				if (0 > bp && 0 > xp) {
					bp = Xf();
					var n = vl(), r = _l();
					(n !== Op || r !== Dp) && (Op = -1.1), Ep = n, Dp = r;
				}
				_n(e, t);
			}
			qp !== null && qp(e, t);
		};
		var Jp = T(null), Yp = {
			recordUnsafeLifecycleWarnings: function() {},
			flushPendingUnsafeLifecycleWarnings: function() {},
			recordLegacyContextWarning: function() {},
			flushLegacyContextWarning: function() {},
			discardPendingWarnings: function() {}
		}, Xp = [], Zp = [], Qp = [], $p = [], em = [], tm = [], nm = /* @__PURE__ */ new Set();
		Yp.recordUnsafeLifecycleWarnings = function(e, t) {
			nm.has(e.type) || (typeof t.componentWillMount == "function" && !0 !== t.componentWillMount.__suppressDeprecationWarning && Xp.push(e), e.mode & 8 && typeof t.UNSAFE_componentWillMount == "function" && Zp.push(e), typeof t.componentWillReceiveProps == "function" && !0 !== t.componentWillReceiveProps.__suppressDeprecationWarning && Qp.push(e), e.mode & 8 && typeof t.UNSAFE_componentWillReceiveProps == "function" && $p.push(e), typeof t.componentWillUpdate == "function" && !0 !== t.componentWillUpdate.__suppressDeprecationWarning && em.push(e), e.mode & 8 && typeof t.UNSAFE_componentWillUpdate == "function" && tm.push(e));
		}, Yp.flushPendingUnsafeLifecycleWarnings = function() {
			var e = /* @__PURE__ */ new Set();
			0 < Xp.length && (Xp.forEach(function(t) {
				e.add(w(t) || "Component"), nm.add(t.type);
			}), Xp = []);
			var t = /* @__PURE__ */ new Set();
			0 < Zp.length && (Zp.forEach(function(e) {
				t.add(w(e) || "Component"), nm.add(e.type);
			}), Zp = []);
			var n = /* @__PURE__ */ new Set();
			0 < Qp.length && (Qp.forEach(function(e) {
				n.add(w(e) || "Component"), nm.add(e.type);
			}), Qp = []);
			var r = /* @__PURE__ */ new Set();
			0 < $p.length && ($p.forEach(function(e) {
				r.add(w(e) || "Component"), nm.add(e.type);
			}), $p = []);
			var i = /* @__PURE__ */ new Set();
			0 < em.length && (em.forEach(function(e) {
				i.add(w(e) || "Component"), nm.add(e.type);
			}), em = []);
			var a = /* @__PURE__ */ new Set();
			if (0 < tm.length && (tm.forEach(function(e) {
				a.add(w(e) || "Component"), nm.add(e.type);
			}), tm = []), 0 < t.size) {
				var o = v(t);
				console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", o);
			}
			0 < r.size && (o = v(r), console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s", o)), 0 < a.size && (o = v(a), console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", o)), 0 < e.size && (o = v(e), console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", o)), 0 < n.size && (o = v(n), console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", o)), 0 < i.size && (o = v(i), console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", o));
		};
		var rm = /* @__PURE__ */ new Map(), im = /* @__PURE__ */ new Set();
		Yp.recordLegacyContextWarning = function(e, t) {
			for (var n = null, r = e; r !== null;) r.mode & 8 && (n = r), r = r.return;
			n === null ? console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.") : !im.has(e.type) && (r = rm.get(n), e.type.contextTypes != null || e.type.childContextTypes != null || t !== null && typeof t.getChildContext == "function") && (r === void 0 && (r = [], rm.set(n, r)), r.push(e));
		}, Yp.flushLegacyContextWarning = function() {
			rm.forEach(function(e) {
				if (e.length !== 0) {
					var t = e[0], n = /* @__PURE__ */ new Set();
					e.forEach(function(e) {
						n.add(w(e) || "Component"), im.add(e.type);
					});
					var r = v(n);
					I(t, function() {
						console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context", r);
					});
				}
			});
		}, Yp.discardPendingWarnings = function() {
			Xp = [], Zp = [], Qp = [], $p = [], em = [], tm = [], rm = /* @__PURE__ */ new Map();
		};
		var am = { react_stack_bottom_frame: function(e, t, n) {
			var r = Af;
			Af = !0;
			try {
				return e(t, n);
			} finally {
				Af = r;
			}
		} }, om = am.react_stack_bottom_frame.bind(am), sm = { react_stack_bottom_frame: function(e) {
			var t = Af;
			Af = !0;
			try {
				return e.render();
			} finally {
				Af = t;
			}
		} }, cm = sm.react_stack_bottom_frame.bind(sm), lm = { react_stack_bottom_frame: function(e, t) {
			try {
				t.componentDidMount();
			} catch (t) {
				Vs(e, e.return, t);
			}
		} }, um = lm.react_stack_bottom_frame.bind(lm), dm = { react_stack_bottom_frame: function(e, t, n, r, i) {
			try {
				t.componentDidUpdate(n, r, i);
			} catch (t) {
				Vs(e, e.return, t);
			}
		} }, fm = dm.react_stack_bottom_frame.bind(dm), pm = { react_stack_bottom_frame: function(e, t) {
			var n = t.stack;
			e.componentDidCatch(t.value, { componentStack: n === null ? "" : n });
		} }, mm = pm.react_stack_bottom_frame.bind(pm), hm = { react_stack_bottom_frame: function(e, t, n) {
			try {
				n.componentWillUnmount();
			} catch (n) {
				Vs(e, t, n);
			}
		} }, gm = hm.react_stack_bottom_frame.bind(hm), _m = { react_stack_bottom_frame: function(e) {
			var t = e.create;
			return e = e.inst, t = t(), e.destroy = t;
		} }, vm = _m.react_stack_bottom_frame.bind(_m), ym = { react_stack_bottom_frame: function(e, t, n) {
			try {
				n();
			} catch (n) {
				Vs(e, t, n);
			}
		} }, bm = ym.react_stack_bottom_frame.bind(ym), J = { react_stack_bottom_frame: function(e) {
			var t = e._init;
			return t(e._payload);
		} }, xm = J.react_stack_bottom_frame.bind(J), Sm = Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."), Cm = Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."), wm = Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."), Tm = { then: function() {
			console.error("Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue.");
		} }, Em = null, Y = !1, Dm = null, Om = 0, X = null, km, Am = km = !1, jm = {}, Mm = {}, Nm = {};
		_ = function(e, t, n) {
			if (typeof n == "object" && n && n._store && (!n._store.validated && n.key == null || n._store.validated === 2)) {
				if (typeof n._store != "object") throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");
				n._store.validated = 1;
				var r = w(e), i = r || "null";
				if (!jm[i]) {
					jm[i] = !0, n = n._owner, e = e._debugOwner;
					var a = "";
					e && typeof e.tag == "number" && (i = w(e)) && (a = "\n\nCheck the render method of `" + i + "`."), a || r && (a = "\n\nCheck the top-level render call using <" + r + ">.");
					var o = "";
					n != null && e !== n && (r = null, typeof n.tag == "number" ? r = w(n) : typeof n.name == "string" && (r = n.name), r && (o = " It was passed a child from " + r + ".")), I(t, function() {
						console.error("Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.", a, o);
					});
				}
			}
		};
		var Pm = Vn(!0), Fm = Vn(!1), Im = 1, Lm = 2, Rm = [], zm = 0, Bm = 0, Vm = 0, Hm = 1, Um = 2, Wm = 3, Gm = !1, Km = !1, qm = null, Jm = !1, Ym = T(null), Xm = T(0), Zm = T(null), Qm = null, $m = 1, eh = 2, th = T(0), nh = 0, rh = 1, ih = 2, ah = 4, oh = 8, sh, ch = /* @__PURE__ */ new Set(), lh = /* @__PURE__ */ new Set(), uh = /* @__PURE__ */ new Set(), dh = /* @__PURE__ */ new Set(), fh = 0, ph = null, mh = null, hh = null, gh = !1, _h = !1, vh = !1, yh = 0, bh = 0, xh = null, Sh = 0, Ch = 25, Z = null, wh = null, Th = -1, Eh = !1, Dh = {
			readContext: Ft,
			use: Ar,
			useCallback: _r,
			useContext: _r,
			useEffect: _r,
			useImperativeHandle: _r,
			useLayoutEffect: _r,
			useInsertionEffect: _r,
			useMemo: _r,
			useReducer: _r,
			useRef: _r,
			useState: _r,
			useDebugValue: _r,
			useDeferredValue: _r,
			useTransition: _r,
			useSyncExternalStore: _r,
			useId: _r,
			useHostTransitionStatus: _r,
			useFormState: _r,
			useActionState: _r,
			useOptimistic: _r,
			useMemoCache: _r,
			useCacheRefresh: _r
		};
		Dh.useEffectEvent = _r;
		var Oh = null, kh = null, Ah = null, jh = null, Mh = null, Nh = null, Ph = null;
		Oh = {
			readContext: function(e) {
				return Ft(e);
			},
			use: Ar,
			useCallback: function(e, t) {
				return Z = "useCallback", mr(), hr(t), bi(e, t);
			},
			useContext: function(e) {
				return Z = "useContext", mr(), Ft(e);
			},
			useEffect: function(e, t) {
				return Z = "useEffect", mr(), hr(t), fi(e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return Z = "useImperativeHandle", mr(), hr(n), vi(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				Z = "useInsertionEffect", mr(), hr(t), ui(4, ih, e, t);
			},
			useLayoutEffect: function(e, t) {
				return Z = "useLayoutEffect", mr(), hr(t), gi(e, t);
			},
			useMemo: function(e, t) {
				Z = "useMemo", mr(), hr(t);
				var n = K.H;
				K.H = Mh;
				try {
					return Si(e, t);
				} finally {
					K.H = n;
				}
			},
			useReducer: function(e, t, n) {
				Z = "useReducer", mr();
				var r = K.H;
				K.H = Mh;
				try {
					return Nr(e, t, n);
				} finally {
					K.H = r;
				}
			},
			useRef: function(e) {
				return Z = "useRef", mr(), li(e);
			},
			useState: function(e) {
				Z = "useState", mr();
				var t = K.H;
				K.H = Mh;
				try {
					return Gr(e);
				} finally {
					K.H = t;
				}
			},
			useDebugValue: function() {
				Z = "useDebugValue", mr();
			},
			useDeferredValue: function(e, t) {
				return Z = "useDeferredValue", mr(), wi(e, t);
			},
			useTransition: function() {
				return Z = "useTransition", mr(), Mi();
			},
			useSyncExternalStore: function(e, t, n) {
				return Z = "useSyncExternalStore", mr(), Lr(e, t, n);
			},
			useId: function() {
				return Z = "useId", mr(), Ii();
			},
			useFormState: function(e, t) {
				return Z = "useFormState", mr(), gr(), ri(e, t);
			},
			useActionState: function(e, t) {
				return Z = "useActionState", mr(), ri(e, t);
			},
			useOptimistic: function(e) {
				return Z = "useOptimistic", mr(), Kr(e);
			},
			useHostTransitionStatus: Fi,
			useMemoCache: jr,
			useCacheRefresh: function() {
				return Z = "useCacheRefresh", mr(), Li();
			},
			useEffectEvent: function(e) {
				return Z = "useEffectEvent", mr(), mi(e);
			}
		}, kh = {
			readContext: function(e) {
				return Ft(e);
			},
			use: Ar,
			useCallback: function(e, t) {
				return Z = "useCallback", H(), bi(e, t);
			},
			useContext: function(e) {
				return Z = "useContext", H(), Ft(e);
			},
			useEffect: function(e, t) {
				return Z = "useEffect", H(), fi(e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return Z = "useImperativeHandle", H(), vi(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				Z = "useInsertionEffect", H(), ui(4, ih, e, t);
			},
			useLayoutEffect: function(e, t) {
				return Z = "useLayoutEffect", H(), gi(e, t);
			},
			useMemo: function(e, t) {
				Z = "useMemo", H();
				var n = K.H;
				K.H = Mh;
				try {
					return Si(e, t);
				} finally {
					K.H = n;
				}
			},
			useReducer: function(e, t, n) {
				Z = "useReducer", H();
				var r = K.H;
				K.H = Mh;
				try {
					return Nr(e, t, n);
				} finally {
					K.H = r;
				}
			},
			useRef: function(e) {
				return Z = "useRef", H(), li(e);
			},
			useState: function(e) {
				Z = "useState", H();
				var t = K.H;
				K.H = Mh;
				try {
					return Gr(e);
				} finally {
					K.H = t;
				}
			},
			useDebugValue: function() {
				Z = "useDebugValue", H();
			},
			useDeferredValue: function(e, t) {
				return Z = "useDeferredValue", H(), wi(e, t);
			},
			useTransition: function() {
				return Z = "useTransition", H(), Mi();
			},
			useSyncExternalStore: function(e, t, n) {
				return Z = "useSyncExternalStore", H(), Lr(e, t, n);
			},
			useId: function() {
				return Z = "useId", H(), Ii();
			},
			useActionState: function(e, t) {
				return Z = "useActionState", H(), ri(e, t);
			},
			useFormState: function(e, t) {
				return Z = "useFormState", H(), gr(), ri(e, t);
			},
			useOptimistic: function(e) {
				return Z = "useOptimistic", H(), Kr(e);
			},
			useHostTransitionStatus: Fi,
			useMemoCache: jr,
			useCacheRefresh: function() {
				return Z = "useCacheRefresh", H(), Li();
			},
			useEffectEvent: function(e) {
				return Z = "useEffectEvent", H(), mi(e);
			}
		}, Ah = {
			readContext: function(e) {
				return Ft(e);
			},
			use: Ar,
			useCallback: function(e, t) {
				return Z = "useCallback", H(), xi(e, t);
			},
			useContext: function(e) {
				return Z = "useContext", H(), Ft(e);
			},
			useEffect: function(e, t) {
				Z = "useEffect", H(), di(2048, oh, e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return Z = "useImperativeHandle", H(), yi(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				return Z = "useInsertionEffect", H(), di(4, ih, e, t);
			},
			useLayoutEffect: function(e, t) {
				return Z = "useLayoutEffect", H(), di(4, ah, e, t);
			},
			useMemo: function(e, t) {
				Z = "useMemo", H();
				var n = K.H;
				K.H = Nh;
				try {
					return Ci(e, t);
				} finally {
					K.H = n;
				}
			},
			useReducer: function(e, t, n) {
				Z = "useReducer", H();
				var r = K.H;
				K.H = Nh;
				try {
					return Pr(e, t, n);
				} finally {
					K.H = r;
				}
			},
			useRef: function() {
				return Z = "useRef", H(), Dr().memoizedState;
			},
			useState: function() {
				Z = "useState", H();
				var e = K.H;
				K.H = Nh;
				try {
					return Pr(Mr);
				} finally {
					K.H = e;
				}
			},
			useDebugValue: function() {
				Z = "useDebugValue", H();
			},
			useDeferredValue: function(e, t) {
				return Z = "useDeferredValue", H(), Ti(e, t);
			},
			useTransition: function() {
				return Z = "useTransition", H(), Ni();
			},
			useSyncExternalStore: function(e, t, n) {
				return Z = "useSyncExternalStore", H(), Rr(e, t, n);
			},
			useId: function() {
				return Z = "useId", H(), Dr().memoizedState;
			},
			useFormState: function(e) {
				return Z = "useFormState", H(), gr(), ii(e);
			},
			useActionState: function(e) {
				return Z = "useActionState", H(), ii(e);
			},
			useOptimistic: function(e, t) {
				return Z = "useOptimistic", H(), qr(e, t);
			},
			useHostTransitionStatus: Fi,
			useMemoCache: jr,
			useCacheRefresh: function() {
				return Z = "useCacheRefresh", H(), Dr().memoizedState;
			},
			useEffectEvent: function(e) {
				return Z = "useEffectEvent", H(), hi(e);
			}
		}, jh = {
			readContext: function(e) {
				return Ft(e);
			},
			use: Ar,
			useCallback: function(e, t) {
				return Z = "useCallback", H(), xi(e, t);
			},
			useContext: function(e) {
				return Z = "useContext", H(), Ft(e);
			},
			useEffect: function(e, t) {
				Z = "useEffect", H(), di(2048, oh, e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return Z = "useImperativeHandle", H(), yi(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				return Z = "useInsertionEffect", H(), di(4, ih, e, t);
			},
			useLayoutEffect: function(e, t) {
				return Z = "useLayoutEffect", H(), di(4, ah, e, t);
			},
			useMemo: function(e, t) {
				Z = "useMemo", H();
				var n = K.H;
				K.H = Ph;
				try {
					return Ci(e, t);
				} finally {
					K.H = n;
				}
			},
			useReducer: function(e, t, n) {
				Z = "useReducer", H();
				var r = K.H;
				K.H = Ph;
				try {
					return Ir(e, t, n);
				} finally {
					K.H = r;
				}
			},
			useRef: function() {
				return Z = "useRef", H(), Dr().memoizedState;
			},
			useState: function() {
				Z = "useState", H();
				var e = K.H;
				K.H = Ph;
				try {
					return Ir(Mr);
				} finally {
					K.H = e;
				}
			},
			useDebugValue: function() {
				Z = "useDebugValue", H();
			},
			useDeferredValue: function(e, t) {
				return Z = "useDeferredValue", H(), Ei(e, t);
			},
			useTransition: function() {
				return Z = "useTransition", H(), Pi();
			},
			useSyncExternalStore: function(e, t, n) {
				return Z = "useSyncExternalStore", H(), Rr(e, t, n);
			},
			useId: function() {
				return Z = "useId", H(), Dr().memoizedState;
			},
			useFormState: function(e) {
				return Z = "useFormState", H(), gr(), si(e);
			},
			useActionState: function(e) {
				return Z = "useActionState", H(), si(e);
			},
			useOptimistic: function(e, t) {
				return Z = "useOptimistic", H(), Yr(e, t);
			},
			useHostTransitionStatus: Fi,
			useMemoCache: jr,
			useCacheRefresh: function() {
				return Z = "useCacheRefresh", H(), Dr().memoizedState;
			},
			useEffectEvent: function(e) {
				return Z = "useEffectEvent", H(), hi(e);
			}
		}, Mh = {
			readContext: function(e) {
				return m(), Ft(e);
			},
			use: function(e) {
				return f(), Ar(e);
			},
			useCallback: function(e, t) {
				return Z = "useCallback", f(), mr(), bi(e, t);
			},
			useContext: function(e) {
				return Z = "useContext", f(), mr(), Ft(e);
			},
			useEffect: function(e, t) {
				return Z = "useEffect", f(), mr(), fi(e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return Z = "useImperativeHandle", f(), mr(), vi(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				Z = "useInsertionEffect", f(), mr(), ui(4, ih, e, t);
			},
			useLayoutEffect: function(e, t) {
				return Z = "useLayoutEffect", f(), mr(), gi(e, t);
			},
			useMemo: function(e, t) {
				Z = "useMemo", f(), mr();
				var n = K.H;
				K.H = Mh;
				try {
					return Si(e, t);
				} finally {
					K.H = n;
				}
			},
			useReducer: function(e, t, n) {
				Z = "useReducer", f(), mr();
				var r = K.H;
				K.H = Mh;
				try {
					return Nr(e, t, n);
				} finally {
					K.H = r;
				}
			},
			useRef: function(e) {
				return Z = "useRef", f(), mr(), li(e);
			},
			useState: function(e) {
				Z = "useState", f(), mr();
				var t = K.H;
				K.H = Mh;
				try {
					return Gr(e);
				} finally {
					K.H = t;
				}
			},
			useDebugValue: function() {
				Z = "useDebugValue", f(), mr();
			},
			useDeferredValue: function(e, t) {
				return Z = "useDeferredValue", f(), mr(), wi(e, t);
			},
			useTransition: function() {
				return Z = "useTransition", f(), mr(), Mi();
			},
			useSyncExternalStore: function(e, t, n) {
				return Z = "useSyncExternalStore", f(), mr(), Lr(e, t, n);
			},
			useId: function() {
				return Z = "useId", f(), mr(), Ii();
			},
			useFormState: function(e, t) {
				return Z = "useFormState", f(), mr(), ri(e, t);
			},
			useActionState: function(e, t) {
				return Z = "useActionState", f(), mr(), ri(e, t);
			},
			useOptimistic: function(e) {
				return Z = "useOptimistic", f(), mr(), Kr(e);
			},
			useMemoCache: function(e) {
				return f(), jr(e);
			},
			useHostTransitionStatus: Fi,
			useCacheRefresh: function() {
				return Z = "useCacheRefresh", mr(), Li();
			},
			useEffectEvent: function(e) {
				return Z = "useEffectEvent", f(), mr(), mi(e);
			}
		}, Nh = {
			readContext: function(e) {
				return m(), Ft(e);
			},
			use: function(e) {
				return f(), Ar(e);
			},
			useCallback: function(e, t) {
				return Z = "useCallback", f(), H(), xi(e, t);
			},
			useContext: function(e) {
				return Z = "useContext", f(), H(), Ft(e);
			},
			useEffect: function(e, t) {
				Z = "useEffect", f(), H(), di(2048, oh, e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return Z = "useImperativeHandle", f(), H(), yi(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				return Z = "useInsertionEffect", f(), H(), di(4, ih, e, t);
			},
			useLayoutEffect: function(e, t) {
				return Z = "useLayoutEffect", f(), H(), di(4, ah, e, t);
			},
			useMemo: function(e, t) {
				Z = "useMemo", f(), H();
				var n = K.H;
				K.H = Nh;
				try {
					return Ci(e, t);
				} finally {
					K.H = n;
				}
			},
			useReducer: function(e, t, n) {
				Z = "useReducer", f(), H();
				var r = K.H;
				K.H = Nh;
				try {
					return Pr(e, t, n);
				} finally {
					K.H = r;
				}
			},
			useRef: function() {
				return Z = "useRef", f(), H(), Dr().memoizedState;
			},
			useState: function() {
				Z = "useState", f(), H();
				var e = K.H;
				K.H = Nh;
				try {
					return Pr(Mr);
				} finally {
					K.H = e;
				}
			},
			useDebugValue: function() {
				Z = "useDebugValue", f(), H();
			},
			useDeferredValue: function(e, t) {
				return Z = "useDeferredValue", f(), H(), Ti(e, t);
			},
			useTransition: function() {
				return Z = "useTransition", f(), H(), Ni();
			},
			useSyncExternalStore: function(e, t, n) {
				return Z = "useSyncExternalStore", f(), H(), Rr(e, t, n);
			},
			useId: function() {
				return Z = "useId", f(), H(), Dr().memoizedState;
			},
			useFormState: function(e) {
				return Z = "useFormState", f(), H(), ii(e);
			},
			useActionState: function(e) {
				return Z = "useActionState", f(), H(), ii(e);
			},
			useOptimistic: function(e, t) {
				return Z = "useOptimistic", f(), H(), qr(e, t);
			},
			useMemoCache: function(e) {
				return f(), jr(e);
			},
			useHostTransitionStatus: Fi,
			useCacheRefresh: function() {
				return Z = "useCacheRefresh", H(), Dr().memoizedState;
			},
			useEffectEvent: function(e) {
				return Z = "useEffectEvent", f(), H(), hi(e);
			}
		}, Ph = {
			readContext: function(e) {
				return m(), Ft(e);
			},
			use: function(e) {
				return f(), Ar(e);
			},
			useCallback: function(e, t) {
				return Z = "useCallback", f(), H(), xi(e, t);
			},
			useContext: function(e) {
				return Z = "useContext", f(), H(), Ft(e);
			},
			useEffect: function(e, t) {
				Z = "useEffect", f(), H(), di(2048, oh, e, t);
			},
			useImperativeHandle: function(e, t, n) {
				return Z = "useImperativeHandle", f(), H(), yi(e, t, n);
			},
			useInsertionEffect: function(e, t) {
				return Z = "useInsertionEffect", f(), H(), di(4, ih, e, t);
			},
			useLayoutEffect: function(e, t) {
				return Z = "useLayoutEffect", f(), H(), di(4, ah, e, t);
			},
			useMemo: function(e, t) {
				Z = "useMemo", f(), H();
				var n = K.H;
				K.H = Nh;
				try {
					return Ci(e, t);
				} finally {
					K.H = n;
				}
			},
			useReducer: function(e, t, n) {
				Z = "useReducer", f(), H();
				var r = K.H;
				K.H = Nh;
				try {
					return Ir(e, t, n);
				} finally {
					K.H = r;
				}
			},
			useRef: function() {
				return Z = "useRef", f(), H(), Dr().memoizedState;
			},
			useState: function() {
				Z = "useState", f(), H();
				var e = K.H;
				K.H = Nh;
				try {
					return Ir(Mr);
				} finally {
					K.H = e;
				}
			},
			useDebugValue: function() {
				Z = "useDebugValue", f(), H();
			},
			useDeferredValue: function(e, t) {
				return Z = "useDeferredValue", f(), H(), Ei(e, t);
			},
			useTransition: function() {
				return Z = "useTransition", f(), H(), Pi();
			},
			useSyncExternalStore: function(e, t, n) {
				return Z = "useSyncExternalStore", f(), H(), Rr(e, t, n);
			},
			useId: function() {
				return Z = "useId", f(), H(), Dr().memoizedState;
			},
			useFormState: function(e) {
				return Z = "useFormState", f(), H(), si(e);
			},
			useActionState: function(e) {
				return Z = "useActionState", f(), H(), si(e);
			},
			useOptimistic: function(e, t) {
				return Z = "useOptimistic", f(), H(), Yr(e, t);
			},
			useMemoCache: function(e) {
				return f(), jr(e);
			},
			useHostTransitionStatus: Fi,
			useCacheRefresh: function() {
				return Z = "useCacheRefresh", H(), Dr().memoizedState;
			},
			useEffectEvent: function(e) {
				return Z = "useEffectEvent", f(), H(), hi(e);
			}
		};
		var Fh = {}, Ih = /* @__PURE__ */ new Set(), Lh = /* @__PURE__ */ new Set(), Rh = /* @__PURE__ */ new Set(), zh = /* @__PURE__ */ new Set(), Bh = /* @__PURE__ */ new Set(), Vh = /* @__PURE__ */ new Set(), Hh = /* @__PURE__ */ new Set(), Uh = /* @__PURE__ */ new Set(), Wh = /* @__PURE__ */ new Set(), Gh = /* @__PURE__ */ new Set();
		Object.freeze(Fh);
		var Kh = {
			enqueueSetState: function(e, t, n) {
				e = e._reactInternals;
				var r = is(e), i = Zn(r);
				i.payload = t, n != null && (Ki(n), i.callback = n), t = Qn(e, i, r), t !== null && (Vt(r, "this.setState()", e), os(t, e, r), $n(t, e, r));
			},
			enqueueReplaceState: function(e, t, n) {
				e = e._reactInternals;
				var r = is(e), i = Zn(r);
				i.tag = Hm, i.payload = t, n != null && (Ki(n), i.callback = n), t = Qn(e, i, r), t !== null && (Vt(r, "this.replaceState()", e), os(t, e, r), $n(t, e, r));
			},
			enqueueForceUpdate: function(e, t) {
				e = e._reactInternals;
				var n = is(e), r = Zn(n);
				r.tag = Um, t != null && (Ki(t), r.callback = t), t = Qn(e, r, n), t !== null && (Vt(n, "this.forceUpdate()", e), os(t, e, n), $n(t, e, n));
			}
		}, qh = null, Jh = null, Yh = Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."), Xh = !1, Zh = {}, Qh = {}, $h = {}, eg = {}, tg = !1, ng = {}, rg = {}, ig = {
			dehydrated: null,
			treeContext: null,
			retryLane: 0,
			hydrationErrors: null
		}, ag = !1, og = null;
		og = /* @__PURE__ */ new Set();
		var sg = !1, cg = !1, lg = !1, ug = typeof WeakSet == "function" ? WeakSet : Set, dg = null, fg = null, pg = null, mg = null, hg = !1, gg = null, _g = !1, vg = 8192, yg = {
			getCacheForType: function(e) {
				var t = Ft(Yf), n = t.data.get(e);
				return n === void 0 && (n = e(), t.data.set(e, n)), n;
			},
			cacheSignal: function() {
				return Ft(Yf).controller.signal;
			},
			getOwner: function() {
				return kf;
			}
		}, bg = 0, xg = 1, Sg = 2, Cg = 3, wg = 4;
		if (typeof Symbol == "function" && Symbol.for) {
			var Tg = Symbol.for;
			bg = Tg("selector.component"), xg = Tg("selector.has_pseudo_class"), Sg = Tg("selector.role"), Cg = Tg("selector.test_id"), wg = Tg("selector.text");
		}
		var Eg = [], Dg = typeof WeakMap == "function" ? WeakMap : Map, Og = 0, Q = 2, kg = 4, Ag = 0, jg = 1, Mg = 2, Ng = 3, Pg = 4, Fg = 6, Ig = 5, Lg = Og, Rg = null, zg = null, Bg = 0, Vg = 0, Hg = 1, Ug = 2, Wg = 3, Gg = 4, Kg = 5, qg = 6, Jg = 7, Yg = 8, Xg = 9, Zg = Vg, Qg = null, $g = !1, e_ = !1, t_ = !1, n_ = 0, r_ = Ag, i_ = 0, a_ = 0, o_ = 0, s_ = 0, c_ = 0, l_ = null, u_ = null, d_ = !1, f_ = 0, p_ = 0, m_ = 300, h_ = Infinity, g_ = 500, __ = null, v_ = null, y_ = null, b_ = 0, x_ = 1, S_ = 2, C_ = 3, w_ = 0, T_ = 1, E_ = 2, D_ = 3, O_ = 4, k_ = 5, A_ = 0, j_ = null, M_ = null, N_ = 0, P_ = 0, F_ = -0, I_ = null, L_ = null, R_ = null, z_ = b_, B_ = null, V_ = 50, H_ = 0, U_ = null, W_ = !1, G_ = !1, K_ = 50, q_ = 0, J_ = null, Y_ = !1, X_ = null, Z_ = !1, Q_ = /* @__PURE__ */ new Set(), $_ = {}, ev = null, tv = null, nv = !1;
		try {
			var rv = Object.preventExtensions({});
			new Map([[rv, null]]), new Set([rv]);
		} catch {
			nv = !0;
		}
		var iv = !1, av = {}, ov = null, sv = null, cv = null, lv = null, uv = null, dv = null, fv = null, pv = null, mv = null, hv = null;
		return ov = function(e, r, i, a) {
			r = t(e, r), r !== null && (i = n(r.memoizedState, i, 0, a), r.memoizedState = i, r.baseState = i, e.memoizedProps = Dc({}, e.memoizedProps), i = Kn(e, 2), i !== null && os(i, e, 2));
		}, sv = function(e, n, r) {
			n = t(e, n), n !== null && (r = a(n.memoizedState, r, 0), n.memoizedState = r, n.baseState = r, e.memoizedProps = Dc({}, e.memoizedProps), r = Kn(e, 2), r !== null && os(r, e, 2));
		}, cv = function(e, n, i, a) {
			n = t(e, n), n !== null && (i = r(n.memoizedState, i, a), n.memoizedState = i, n.baseState = i, e.memoizedProps = Dc({}, e.memoizedProps), i = Kn(e, 2), i !== null && os(i, e, 2));
		}, lv = function(e, t, r) {
			e.pendingProps = n(e.memoizedProps, t, 0, r), e.alternate && (e.alternate.pendingProps = e.pendingProps), t = Kn(e, 2), t !== null && os(t, e, 2);
		}, uv = function(e, t) {
			e.pendingProps = a(e.memoizedProps, t, 0), e.alternate && (e.alternate.pendingProps = e.pendingProps), t = Kn(e, 2), t !== null && os(t, e, 2);
		}, dv = function(e, t, n) {
			e.pendingProps = r(e.memoizedProps, t, n), e.alternate && (e.alternate.pendingProps = e.pendingProps), t = Kn(e, 2), t !== null && os(t, e, 2);
		}, fv = function(e) {
			var t = Kn(e, 2);
			t !== null && os(t, e, 2);
		}, pv = function(e) {
			var t = j(), n = Kn(e, t);
			n !== null && os(n, e, t);
		}, mv = function(e) {
			s = e;
		}, hv = function(e) {
			o = e;
		}, wc.attemptContinuousHydration = function(e) {
			if (e.tag === 13 || e.tag === 31) {
				var t = Kn(e, 67108864);
				t !== null && os(t, e, 67108864), Sc(e, 67108864);
			}
		}, wc.attemptHydrationAtCurrentPriority = function(e) {
			if (e.tag === 13 || e.tag === 31) {
				var t = is(e);
				t = de(t);
				var n = Kn(e, t);
				n !== null && os(n, e, t), Sc(e, t);
			}
		}, wc.attemptSynchronousHydration = function(e) {
			switch (e.tag) {
				case 3:
					if (e = e.stateNode, e.current.memoizedState.isDehydrated) {
						var t = O(e.pendingLanes);
						if (t !== 0) {
							for (e.pendingLanes |= 2, e.entangledLanes |= 2; t;) {
								var n = 1 << 31 - bd(t);
								e.entanglements[1] |= n, t &= ~n;
							}
							sn(e), (Lg & (Q | kg)) === Og && (h_ = Ad() + g_, cn(0, !1));
						}
					}
					break;
				case 31:
				case 13: t = Kn(e, 2), t !== null && os(t, e, 2), ds(), Sc(e, 2);
			}
		}, wc.batchedUpdates = function(e, t) {
			return e(t);
		}, wc.createComponentSelector = function(e) {
			return {
				$$typeof: bg,
				value: e
			};
		}, wc.createContainer = function(e, t, n, r, i, a, o, s, c, l) {
			return gc(e, t, !1, null, n, r, a, null, o, s, c, l);
		}, wc.createHasPseudoClassSelector = function(e) {
			return {
				$$typeof: xg,
				value: e
			};
		}, wc.createHydrationContainer = function(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
			return e = gc(n, r, !0, e, i, a, s, p, c, l, u, d), e.context = vc(null), n = e.current, r = is(n), r = de(r), i = Zn(r), i.callback = t ?? null, Qn(n, i, r), Vt(r, "hydrateRoot()", null), t = r, e.current.lanes = t, oe(e, t), sn(e), e;
		}, wc.createPortal = function(e, t, n) {
			var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
			try {
				_c(r);
				var i = !1;
			} catch {
				i = !0;
			}
			return i && (console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object"), _c(r)), {
				$$typeof: Ac,
				key: r == null ? null : "" + r,
				children: e,
				containerInfo: t,
				implementation: n
			};
		}, wc.createRoleSelector = function(e) {
			return {
				$$typeof: Sg,
				value: e
			};
		}, wc.createTestNameSelector = function(e) {
			return {
				$$typeof: Cg,
				value: e
			};
		}, wc.createTextSelector = function(e) {
			return {
				$$typeof: wg,
				value: e
			};
		}, wc.defaultOnCaughtError = function(e) {
			var t = qh ? "The above error occurred in the <" + qh + "> component." : "The above error occurred in one of your React components.", n = "React will try to recreate this component tree from scratch using the error boundary you provided, " + ((Jh || "Anonymous") + ".");
			typeof e == "object" && e && typeof e.environmentName == "string" ? Ml("error", [
				"%o\n\n%s\n\n%s\n",
				e,
				t,
				n
			], e.environmentName)() : console.error("%o\n\n%s\n\n%s\n", e, t, n);
		}, wc.defaultOnRecoverableError = function(e) {
			Kd(e);
		}, wc.defaultOnUncaughtError = function(e) {
			Kd(e), console.warn("%s\n\n%s\n", qh ? "An error occurred in the <" + qh + "> component." : "An error occurred in one of your React components.", "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.");
		}, wc.deferredUpdates = function(e) {
			var t = K.T, n = ml();
			try {
				return pl(32), K.T = null, e();
			} finally {
				pl(n), K.T = t;
			}
		}, wc.discreteUpdates = function(e, t, n, r, i) {
			var a = K.T, o = ml();
			try {
				return pl(2), K.T = null, e(t, n, r, i);
			} finally {
				pl(o), K.T = a, Lg === Og && (h_ = Ad() + g_);
			}
		}, wc.findAllNodes = ts, wc.findBoundingRects = function(e, t) {
			if (!Fl) throw Error("Test selector API is not supported by this renderer.");
			t = ts(e, t), e = [];
			for (var n = 0; n < t.length; n++) e.push(Ll(t[n]));
			for (t = e.length - 1; 0 < t; t--) {
				n = e[t];
				for (var r = n.x, i = r + n.width, a = n.y, o = a + n.height, s = t - 1; 0 <= s; s--) if (t !== s) {
					var c = e[s], l = c.x, u = l + c.width, d = c.y, f = d + c.height;
					if (r >= l && a >= d && i <= u && o <= f) {
						e.splice(t, 1);
						break;
					} else if (!(r !== l || n.width !== c.width || f < a || d > o)) {
						d > a && (c.height += d - a, c.y = a), f < o && (c.height = o - d), e.splice(t, 1);
						break;
					} else if (!(a !== d || n.height !== c.height || u < r || l > i)) {
						l > r && (c.width += l - r, c.x = r), u < i && (c.width = i - l), e.splice(t, 1);
						break;
					}
				}
			}
			return e;
		}, wc.findHostInstance = function(e) {
			var t = e._reactInternals;
			if (t === void 0) throw typeof e.render == "function" ? Error("Unable to find node on an unmounted component.") : (e = Object.keys(e).join(","), Error("Argument appears to not be a ReactComponent. Keys: " + e));
			return e = ee(t), e === null ? null : Jc(e.stateNode);
		}, wc.findHostInstanceWithNoPortals = function(e) {
			return e = x(e), e = e === null ? null : C(e), e === null ? null : Jc(e.stateNode);
		}, wc.findHostInstanceWithWarning = function(e, t) {
			var n = e._reactInternals;
			if (n === void 0) throw typeof e.render == "function" ? Error("Unable to find node on an unmounted component.") : (e = Object.keys(e).join(","), Error("Argument appears to not be a ReactComponent. Keys: " + e));
			if (e = ee(n), e === null) return null;
			if (e.mode & 8) {
				var r = w(n) || "Component";
				av[r] || (av[r] = !0, I(e, function() {
					n.mode & 8 ? console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node", t, t, r) : console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node", t, t, r);
				}));
			}
			return Jc(e.stateNode);
		}, wc.flushPassiveEffects = Rs, wc.flushSyncFromReconciler = function(e) {
			var t = Lg;
			Lg |= 1;
			var n = K.T, r = ml();
			try {
				if (pl(2), K.T = null, e) return e();
			} finally {
				pl(r), K.T = n, Lg = t, (Lg & (Q | kg)) === Og && cn(0, !1);
			}
		}, wc.flushSyncWork = ds, wc.focusWithin = function(e, t) {
			if (!Fl) throw Error("Test selector API is not supported by this renderer.");
			for (e = Zo(e), t = es(e, t), t = Array.from(t), e = 0; e < t.length;) {
				var n = t[e++], r = n.tag;
				if (!zl(n)) {
					if ((r === 5 || r === 26 || r === 27) && Vl(n.stateNode)) return !0;
					for (n = n.child; n !== null;) t.push(n), n = n.sibling;
				}
			}
			return !1;
		}, wc.getFindAllNodesFailureDescription = function(e, t) {
			if (!Fl) throw Error("Test selector API is not supported by this renderer.");
			var n = 0, r = [];
			e = [Zo(e), 0];
			for (var i = 0; i < e.length;) {
				var a = e[i++], o = a.tag, s = e[i++], c = t[s];
				if ((o !== 5 && o !== 26 && o !== 27 || !zl(a)) && (Qo(a, c) && (r.push($o(c)), s++, s > n && (n = s)), s < t.length)) for (a = a.child; a !== null;) e.push(a, s), a = a.sibling;
			}
			if (n < t.length) {
				for (e = []; n < t.length; n++) e.push($o(t[n]));
				return "findAllNodes was able to match part of the selector:\n  " + (r.join(" > ") + "\n\nNo matching component was found for:\n  ") + e.join(" > ");
			}
			return null;
		}, wc.getPublicRootInstance = function(e) {
			if (e = e.current, !e.child) return null;
			switch (e.child.tag) {
				case 27:
				case 5: return Jc(e.child.stateNode);
				default: return e.child.stateNode;
			}
		}, wc.injectIntoDevTools = function() {
			var e = {
				bundleType: 1,
				version: Gc,
				rendererPackageName: Kc,
				currentDispatcherRef: K,
				reconcilerVersion: "19.2.0"
			};
			return qc !== null && (e.rendererConfig = qc), e.overrideHookState = ov, e.overrideHookStateDeletePath = sv, e.overrideHookStateRenamePath = cv, e.overrideProps = lv, e.overridePropsDeletePath = uv, e.overridePropsRenamePath = dv, e.scheduleUpdate = fv, e.scheduleRetry = pv, e.setErrorHandler = mv, e.setSuspenseHandler = hv, e.scheduleRefresh = u, e.scheduleRoot = l, e.setRefreshHandler = d, e.getCurrentFiber = Cc, he(e);
		}, wc.isAlreadyRendering = fs, wc.observeVisibleRects = function(e, t, n, r) {
			function i() {
				var n = ts(e, t);
				a.forEach(function(e) {
					0 > n.indexOf(e) && c(e);
				}), n.forEach(function(e) {
					0 > a.indexOf(e) && s(e);
				});
			}
			if (!Fl) throw Error("Test selector API is not supported by this renderer.");
			var a = ts(e, t);
			n = Hl(a, n, r);
			var o = n.disconnect, s = n.observe, c = n.unobserve;
			return Eg.push(i), { disconnect: function() {
				var e = Eg.indexOf(i);
				0 <= e && Eg.splice(e, 1), o();
			} };
		}, wc.shouldError = function(e) {
			return s(e);
		}, wc.shouldSuspend = function(e) {
			return o(e);
		}, wc.startHostTransition = function(e, t, n, r) {
			if (e.tag !== 5) throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");
			var i = ji(e).queue;
			Ht(e), Ai(e, i, t, kl, n === null ? h : function() {
				K.T === null && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");
				var t = ji(e);
				return t.next === null && (t = e.alternate.memoizedState), Vi(e, t.next.queue, {}, is(e)), n(r);
			});
		}, wc.updateContainer = function(e, t, n, r) {
			var i = t.current, a = is(i);
			return bc(i, a, e, t, n, r), a;
		}, wc.updateContainerSync = yc, wc;
	}, t.exports.default = t.exports, Object.defineProperty(t.exports, "__esModule", { value: !0 }));
})), Ia = /* @__PURE__ */ s(((e, t) => {
	process.env.NODE_ENV === "production" ? t.exports = Pa() : t.exports = Fa();
})), La = /* @__PURE__ */ s(((e) => {
	e.ConcurrentRoot = 1, e.ContinuousEventPriority = 8, e.DefaultEventPriority = 32, e.DiscreteEventPriority = 2, e.IdleEventPriority = 268435456, e.LegacyRoot = 0, e.NoEventPriority = 0;
})), Ra = /* @__PURE__ */ s(((e) => {
	process.env.NODE_ENV !== "production" && (e.ConcurrentRoot = 1, e.ContinuousEventPriority = 8, e.DefaultEventPriority = 32, e.DiscreteEventPriority = 2, e.IdleEventPriority = 268435456, e.LegacyRoot = 0, e.NoEventPriority = 0);
})), za = /* @__PURE__ */ s(((e, t) => {
	process.env.NODE_ENV === "production" ? t.exports = La() : t.exports = Ra();
})), Ba = /* @__PURE__ */ u(Ia()), Va = za(), Ha = {
	children: !0,
	ref: !0,
	key: !0,
	style: !0,
	forwardedRef: !0,
	unstable_applyCache: !0,
	unstable_applyDrawHitFromCache: !0
}, Ua = !1, Wa = !1, Ga = ".react-konva-event", Ka = !1, qa = "ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.\nPosition of a node will be changed during drag&drop, so you should update state of the react app as well.\nConsider to add onDragMove or onDragEnd events.\nFor more info see: https://github.com/konvajs/react-konva/issues/256\n", Ja = "ReactKonva: You are using \"zIndex\" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor more info see: https://github.com/konvajs/react-konva/issues/194\n", Ya = {};
function W(e, t, n = Ya) {
	if (!Ua && "zIndex" in t && (console.warn(Ja), Ua = !0), !Wa && t.draggable) {
		var r = t.x !== void 0 || t.y !== void 0, i = t.onDragEnd || t.onDragMove;
		r && !i && (console.warn(qa), Wa = !0);
	}
	for (var a in n) if (!Ha[a]) {
		var o = a.slice(0, 2) === "on", s = n[a] !== t[a];
		if (o && s) {
			var c = a.substr(2).toLowerCase();
			c.substr(0, 7) === "content" && (c = "content" + c.substr(7, 1).toUpperCase() + c.substr(8)), e.off(c, n[a]);
		}
		t.hasOwnProperty(a) || e.setAttr(a, void 0);
	}
	var l = Ka || t._useStrictMode, u = {}, d = !1;
	let f = {};
	for (var a in t) if (!Ha[a]) {
		var o = a.slice(0, 2) === "on", p = n[a] !== t[a];
		if (o && p) {
			var c = a.substr(2).toLowerCase();
			c.substr(0, 7) === "content" && (c = "content" + c.substr(7, 1).toUpperCase() + c.substr(8)), t[a] && (f[c] = t[a]);
		}
		!o && (t[a] !== n[a] || l && t[a] !== e.getAttr(a)) && (d = !0, u[a] = t[a]);
	}
	for (var c in d && (e.setAttrs(u), Xa(e)), f) e.off(c + Ga), e.on(c + Ga, f[c]);
}
function Xa(e) {
	if (!P.autoDrawEnabled) {
		var t = e.getLayer() || e.getStage();
		t && t.batchDraw();
	}
}
//#endregion
//#region ../node_modules/react-konva/es/ReactKonvaHostConfig.js
var Za = /* @__PURE__ */ c({
	HostTransitionContext: () => es,
	NotPendingTransition: () => null,
	afterActiveInstanceBlur: () => Lo,
	appendChild: () => bo,
	appendChildToContainer: () => xo,
	appendInitialChild: () => no,
	beforeActiveInstanceBlur: () => Io,
	cancelTimeout: () => _o,
	clearContainer: () => No,
	commitMount: () => Do,
	commitTextUpdate: () => Eo,
	commitUpdate: () => Oo,
	createInstance: () => ro,
	createTextInstance: () => io,
	detachDeletedInstance: () => Po,
	finalizeInitialChildren: () => ao,
	getChildHostContext: () => ho,
	getCurrentEventPriority: () => Ro,
	getCurrentUpdatePriority: () => Ho,
	getInstanceFromNode: () => Fo,
	getInstanceFromScope: () => Bo,
	getPublicInstance: () => oo,
	getRootHostContext: () => mo,
	hideInstance: () => ko,
	hideTextInstance: () => Ao,
	idlePriority: () => Qa.unstable_IdlePriority,
	insertBefore: () => So,
	insertInContainerBefore: () => Co,
	isPrimaryRenderer: () => !1,
	maySuspendCommit: () => Yo,
	noTimeout: () => -1,
	now: () => Qa.unstable_now,
	preloadInstance: () => Xo,
	prepareForCommit: () => so,
	preparePortalMount: () => co,
	prepareScopeUpdate: () => zo,
	prepareUpdate: () => lo,
	removeChild: () => wo,
	removeChildFromContainer: () => To,
	requestPostPaintCallback: () => Jo,
	resetAfterCommit: () => uo,
	resetFormInstance: () => ts,
	resetTextContent: () => fo,
	resolveEventTimeStamp: () => qo,
	resolveEventType: () => Ko,
	resolveUpdatePriority: () => Uo,
	run: () => Qa.unstable_runWithPriority,
	scheduleMicrotask: () => vo,
	scheduleTimeout: () => go,
	setCurrentUpdatePriority: () => Vo,
	shouldAttemptEagerTransition: () => Wo,
	shouldDeprioritizeSubtree: () => po,
	shouldSetTextContent: () => yo,
	startSuspendingCommit: () => Zo,
	supportsHydration: () => !1,
	supportsMicrotasks: () => !0,
	supportsMutation: () => !0,
	supportsPersistence: () => !1,
	suspendInstance: () => Qo,
	trackSchedulerEvent: () => Go,
	unhideInstance: () => jo,
	unhideTextInstance: () => Mo,
	waitForCommitToBeReady: () => $o,
	warnsIfNotActing: () => !1
}), Qa = p(), $a = {}, eo = {};
Na.Node.prototype._applyProps = W;
var to = Va.DefaultEventPriority;
function no(e, t) {
	if (typeof t == "string") {
		console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);
		return;
	}
	e.add(t), Xa(e);
}
function ro(e, t, n) {
	let r = Na[e];
	r ||= (console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}"  If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`), Na.Group);
	let i = {}, a = {};
	for (var o in t) o !== "ref" && (o.slice(0, 2) === "on" ? a[o] = t[o] : i[o] = t[o]);
	let s = new r(i);
	return W(s, a), s;
}
function io(e, t, n) {
	console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`);
}
function ao(e, t, n) {
	return !1;
}
function oo(e) {
	return e;
}
function so() {
	return null;
}
function co() {
	return null;
}
function lo(e, t, n, r) {
	return eo;
}
function uo() {}
function fo(e) {}
function po(e, t) {
	return !1;
}
function mo() {
	return $a;
}
function ho() {
	return $a;
}
var go = setTimeout, _o = clearTimeout, vo = (e) => {
	e();
};
function yo(e, t) {
	return !1;
}
function bo(e, t) {
	t.parent === e ? t.moveToTop() : e.add(t), Xa(e);
}
function xo(e, t) {
	t.parent === e ? t.moveToTop() : e.add(t), Xa(e);
}
function So(e, t, n) {
	t._remove(), e.add(t), t.setZIndex(n.getZIndex()), Xa(e);
}
function Co(e, t, n) {
	So(e, t, n);
}
function wo(e, t) {
	t.destroy(), t.off(Ga), Xa(e);
}
function To(e, t) {
	t.destroy(), t.off(Ga), Xa(e);
}
function Eo(e, t, n) {
	console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`);
}
function Do(e, t, n) {}
function Oo(e, t, n, r) {
	W(e, r, n);
}
function ko(e) {
	e.hide(), Xa(e);
}
function Ao(e) {}
function jo(e, t) {
	(t.visible == null || t.visible) && e.show();
}
function Mo(e, t) {}
function No(e) {}
function Po() {}
function Fo() {
	return null;
}
function Io() {}
function Lo() {}
function Ro() {
	return Va.DefaultEventPriority;
}
function zo() {}
function Bo() {
	return null;
}
function Vo(e) {
	to = e;
}
function Ho() {
	return to;
}
function Uo() {
	return Va.DiscreteEventPriority;
}
function Wo() {
	return !1;
}
function Go() {}
function Ko() {
	return null;
}
function qo() {
	return -1.1;
}
function Jo() {}
function Yo() {
	return !1;
}
function Xo() {
	return !0;
}
function Zo() {}
function Qo() {}
function $o() {
	return null;
}
var es = /* @__PURE__ */ S.createContext(null);
function ts() {}
typeof window < "u" && (window.document?.createElement || window.navigator?.product === "ReactNative") ? S.useLayoutEffect : S.useEffect;
function ns(e, t, n) {
	if (!e) return;
	if (n(e) === !0) return e;
	let r = t ? e.return : e.child;
	for (; r;) {
		let e = ns(r, t, n);
		if (e) return e;
		r = t ? null : r.sibling;
	}
}
function rs(e) {
	try {
		return Object.defineProperties(e, {
			_currentRenderer: {
				get() {
					return null;
				},
				set() {}
			},
			_currentRenderer2: {
				get() {
					return null;
				},
				set() {}
			}
		});
	} catch {
		return e;
	}
}
var is = /* @__PURE__ */ rs(/* @__PURE__ */ S.createContext(null)), as = class extends S.Component {
	render() {
		return /* @__PURE__ */ S.createElement(is.Provider, { value: this._reactInternals }, this.props.children);
	}
};
function os() {
	let e = S.useContext(is);
	if (e === null) throw Error("its-fine: useFiber must be called within a <FiberProvider />!");
	let t = S.useId();
	return S.useMemo(() => {
		for (let n of [e, e?.alternate]) {
			if (!n) continue;
			let e = ns(n, !1, (e) => {
				let n = e.memoizedState;
				for (; n;) {
					if (n.memoizedState === t) return !0;
					n = n.next;
				}
			});
			if (e) return e;
		}
	}, [e, t]);
}
var ss = Symbol.for("react.context"), cs = (e) => typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === ss;
function ls() {
	let e = os(), [t] = S.useState(() => /* @__PURE__ */ new Map());
	t.clear();
	let n = e;
	for (; n;) {
		let e = n.type;
		cs(e) && e !== is && !t.has(e) && t.set(e, S.use(rs(e))), n = n.return;
	}
	return t;
}
function us() {
	let e = ls();
	return S.useMemo(() => Array.from(e.keys()).reduce((t, n) => (r) => /* @__PURE__ */ S.createElement(t, null, /* @__PURE__ */ S.createElement(n.Provider, {
		...r,
		value: e.get(n)
	})), (e) => /* @__PURE__ */ S.createElement(as, { ...e })), [e]);
}
function ds(e) {
	let t = S.useRef({});
	return S.useLayoutEffect(() => {
		t.current = e;
	}), S.useLayoutEffect(() => () => {
		t.current = {};
	}, []), t.current;
}
var fs = () => {
	let e = S.useRef(0);
	return S.useMemo(() => {
		e.current++;
	}, []), e.current > 1;
}, ps = (e) => {
	let t = S.useRef(null), n = S.useRef(null), r = S.useRef(null), i = ds(e), a = us(), o = S.useRef(null), s = (t) => {
		let { forwardedRef: n } = e;
		n && (typeof n == "function" ? n(t) : n.current = t);
	}, c = fs(), l = () => {
		s(null), Cs.flushSyncFromReconciler(() => {
			Cs.updateContainer(null, r.current, null);
		}), n.current?.destroy(), n.current = null;
	};
	return S.useLayoutEffect(() => (o.current &&= (clearTimeout(o.current), null), n.current ? s(n.current) : (n.current = new Na.Stage({
		width: e.width,
		height: e.height,
		container: t.current
	}), s(n.current), r.current = Cs.createContainer(n.current, Va.ConcurrentRoot, null, !1, null, "", console.error, console.error, console.error, null), Cs.updateContainer(S.createElement(a, {}, e.children), r.current, null, () => {})), () => {
		c ? o.current = setTimeout(l, 0) : l();
	}), []), S.useLayoutEffect(() => {
		s(n.current), W(n.current, e, i), Cs.flushSyncFromReconciler(() => {
			Cs.updateContainer(S.createElement(a, {}, e.children), r.current, null);
		});
	}), S.createElement("div", {
		ref: t,
		id: e.id,
		accessKey: e.accessKey,
		className: e.className,
		role: e.role,
		style: e.style,
		tabIndex: e.tabIndex,
		title: e.title
	});
}, ms = "Layer", hs = "Rect", gs = "Circle", _s = "Ellipse", vs = "Line", ys = "Image", bs = "Text", xs = "Path", Ss = "Transformer", Cs = (0, Ba.default)(Za), ws = S.forwardRef((e, t) => S.createElement(as, {}, S.createElement(ps, {
	...e,
	forwardedRef: t
}))), Ts = 1;
function Es(e) {
	return `${e}-${Date.now()}-${Ts++}`;
}
var Ds = {
	solid: [],
	dashed: [10, 5],
	dotted: [2, 4]
};
function Os(e) {
	return Ds[e] ?? [];
}
function ks({ width: e, height: t, artboard: n, objects: r, selectedIds: i, activeTool: a, onSelect: o, onDeselectAll: s, onAddObject: c, onUpdateObject: l, stageRef: u }) {
	let d = (0, S.useRef)(null), f = (0, S.useRef)(null), [p, m] = (0, S.useState)({
		x: 0,
		y: 0,
		width: 0,
		height: 0,
		visible: !1
	}), h = (0, S.useRef)(null), g = n ? Ee(n.width, n.unit) : e, _ = n ? Ee(n.height, n.unit) : t, v = Math.max(0, (e - g) / 2), y = Math.max(0, (t - _) / 2);
	(0, S.useEffect)(() => {
		let e = d.current, t = u.current;
		if (!e || !t) return;
		let n = i.map((e) => t.findOne(`#${e}`)).filter((e) => e != null);
		e.nodes(n), e.getLayer()?.batchDraw();
	}, [i, u]);
	function b() {
		if (!n) return null;
		let e = Ce(n), t = /* @__PURE__ */ (0, E.jsx)(hs, {
			x: v,
			y,
			width: g,
			height: _,
			fill: "#ffffff",
			stroke: "#cccccc",
			strokeWidth: 1,
			listening: !1
		}, "artboard-bg");
		if (e) return /* @__PURE__ */ (0, E.jsxs)(E.Fragment, { children: [t, /* @__PURE__ */ (0, E.jsx)(xs, {
			x: v,
			y,
			data: e,
			stroke: "#999999",
			strokeWidth: 1,
			fill: "rgba(255,255,255,0.5)",
			listening: !1
		}, "artboard-clip")] });
		if (n.shape === "circle") {
			let e = Math.min(g, _) / 2;
			return /* @__PURE__ */ (0, E.jsxs)(E.Fragment, { children: [t, /* @__PURE__ */ (0, E.jsx)(gs, {
				x: v + g / 2,
				y: y + _ / 2,
				radius: e,
				stroke: "#999999",
				strokeWidth: 1,
				fill: "rgba(255,255,255,0.5)",
				listening: !1
			}, "artboard-circle")] });
		}
		return n.shape === "oval" ? /* @__PURE__ */ (0, E.jsxs)(E.Fragment, { children: [t, /* @__PURE__ */ (0, E.jsx)(_s, {
			x: v + g / 2,
			y: y + _ / 2,
			radiusX: g / 2,
			radiusY: _ / 2,
			stroke: "#999999",
			strokeWidth: 1,
			fill: "rgba(255,255,255,0.5)",
			listening: !1
		}, "artboard-oval")] }) : t;
	}
	function x(e) {
		if (!e.visible) return null;
		let t = {
			id: e.id,
			x: e.x + v,
			y: e.y + y,
			rotation: e.rotation,
			opacity: e.opacity,
			draggable: !e.locked && a === "pointer",
			onClick: (t) => {
				t.cancelBubble = !0;
				let n = t.evt.shiftKey;
				o([e.id], n);
			},
			onDragEnd: (t) => {
				l(e.id, {
					x: t.target.x() - v,
					y: t.target.y() - y
				});
			},
			onTransformEnd: (t) => {
				let n = t.target, r = n.scaleX(), i = n.scaleY();
				n.scaleX(1), n.scaleY(1);
				let a = {
					x: n.x() - v,
					y: n.y() - y,
					rotation: n.rotation()
				};
				e.type === "rect" || e.type === "image" ? (a.width = Math.max(5, n.width() * r), a.height = Math.max(5, n.height() * i)) : e.type === "circle" ? a.radius = Math.max(5, n.width() * r / 2) : e.type === "ellipse" ? (a.radiusX = Math.max(5, n.width() * r / 2), a.radiusY = Math.max(5, n.height() * i / 2)) : e.type === "text" && (a.width = Math.max(20, n.width() * r)), l(e.id, a);
			}
		};
		switch (e.type) {
			case "rect": return /* @__PURE__ */ (0, E.jsx)(hs, {
				...t,
				width: e.width,
				height: e.height,
				fill: e.fill,
				stroke: e.stroke,
				strokeWidth: e.strokeWidth
			}, e.id);
			case "circle": return /* @__PURE__ */ (0, E.jsx)(gs, {
				...t,
				radius: e.radius,
				fill: e.fill,
				stroke: e.stroke,
				strokeWidth: e.strokeWidth
			}, e.id);
			case "ellipse": return /* @__PURE__ */ (0, E.jsx)(_s, {
				...t,
				radiusX: e.radiusX,
				radiusY: e.radiusY,
				fill: e.fill,
				stroke: e.stroke,
				strokeWidth: e.strokeWidth
			}, e.id);
			case "line": return /* @__PURE__ */ (0, E.jsx)(vs, {
				...t,
				points: e.points,
				stroke: e.stroke,
				strokeWidth: e.strokeWidth,
				dash: Os(e.lineStyle)
			}, e.id);
			case "image": return /* @__PURE__ */ (0, E.jsx)(As, {
				...t,
				width: e.width,
				height: e.height,
				src: e.src
			}, e.id);
			case "text": return /* @__PURE__ */ (0, E.jsx)(bs, {
				...t,
				text: e.text,
				fontFamily: e.fontFamily,
				fontSize: e.fontSize,
				fill: e.fill,
				stroke: e.stroke,
				strokeWidth: e.strokeWidth,
				width: e.width,
				letterSpacing: e.letterSpacing,
				lineHeight: e.lineHeight
			}, e.id);
			default: return null;
		}
	}
	return /* @__PURE__ */ (0, E.jsx)(ws, {
		ref: u,
		width: e,
		height: t,
		onMouseDown: (0, S.useCallback)((e) => {
			let t = e.target === e.target.getStage();
			if (a === "pointer") {
				if (t) {
					s();
					let t = e.target.getStage()?.getPointerPosition();
					t && (h.current = {
						x: t.x,
						y: t.y
					}, m({
						x: t.x,
						y: t.y,
						width: 0,
						height: 0,
						visible: !0
					}));
				}
				return;
			}
			if (!t) return;
			let n = e.target.getStage()?.getPointerPosition();
			if (!n) return;
			let r = n.x - v, i = n.y - y, l = null;
			switch (a) {
				case "rect":
					l = {
						id: Es("rect"),
						type: "rect",
						name: "Rectangle",
						x: r,
						y: i,
						width: 100,
						height: 80,
						rotation: 0,
						visible: !0,
						locked: !1,
						opacity: 1,
						fill: "transparent",
						stroke: "#000000",
						strokeWidth: 2
					};
					break;
				case "circle":
					l = {
						id: Es("circle"),
						type: "circle",
						name: "Circle",
						x: r,
						y: i,
						radius: 50,
						rotation: 0,
						visible: !0,
						locked: !1,
						opacity: 1,
						fill: "transparent",
						stroke: "#000000",
						strokeWidth: 2
					};
					break;
				case "ellipse":
					l = {
						id: Es("ellipse"),
						type: "ellipse",
						name: "Ellipse",
						x: r,
						y: i,
						radiusX: 60,
						radiusY: 40,
						rotation: 0,
						visible: !0,
						locked: !1,
						opacity: 1,
						fill: "transparent",
						stroke: "#000000",
						strokeWidth: 2
					};
					break;
				case "line":
					l = {
						id: Es("line"),
						type: "line",
						name: "Line",
						x: r,
						y: i,
						points: [
							0,
							0,
							100,
							0
						],
						rotation: 0,
						visible: !0,
						locked: !1,
						opacity: 1,
						stroke: "#000000",
						strokeWidth: 2,
						lineStyle: "solid",
						dash: []
					};
					break;
				case "text":
					l = {
						id: Es("text"),
						type: "text",
						name: "Text",
						x: r,
						y: i,
						rotation: 0,
						visible: !0,
						locked: !1,
						opacity: 1,
						text: "Text",
						fontFamily: "Roboto",
						fontSize: 24,
						letterSpacing: 0,
						lineHeight: 1.2,
						fill: "#000000",
						stroke: "transparent",
						strokeWidth: 0,
						width: 200
					};
					break;
			}
			l && (c(l), o([l.id], !1));
		}, [
			a,
			v,
			y,
			s,
			c,
			o
		]),
		onMouseMove: (0, S.useCallback)((e) => {
			if (!h.current) return;
			let t = e.target.getStage()?.getPointerPosition();
			if (!t) return;
			let n = h.current.x, r = h.current.y;
			m({
				x: Math.min(n, t.x),
				y: Math.min(r, t.y),
				width: Math.abs(t.x - n),
				height: Math.abs(t.y - r),
				visible: !0
			});
		}, []),
		onMouseUp: (0, S.useCallback)((e) => {
			if (h.current) {
				if (p.width > 5 || p.height > 5) {
					let e = {
						x: p.x - v,
						y: p.y - y,
						width: p.width,
						height: p.height
					}, t = r.filter((t) => {
						if (!t.visible || t.locked) return !1;
						let n = js(t), r = Ms(t);
						return Ns(e.x, e.y, e.width, e.height, t.x, t.y, n, r);
					}).map((e) => e.id);
					t.length > 0 && o(t, !1);
				}
				h.current = null, m({
					x: 0,
					y: 0,
					width: 0,
					height: 0,
					visible: !1
				});
			}
		}, [
			p,
			r,
			v,
			y,
			o
		]),
		style: { cursor: a === "pointer" ? "default" : "crosshair" },
		children: /* @__PURE__ */ (0, E.jsxs)(ms, {
			ref: f,
			children: [
				b(),
				r.map(x),
				/* @__PURE__ */ (0, E.jsx)(Ss, {
					ref: d,
					flipEnabled: !1,
					boundBoxFunc: (e, t) => Math.abs(t.width) < 5 || Math.abs(t.height) < 5 ? e : t
				}),
				p.visible && /* @__PURE__ */ (0, E.jsx)("Rect", {
					x: p.x,
					y: p.y,
					width: p.width,
					height: p.height,
					fill: "rgba(170, 59, 255, 0.1)",
					stroke: "rgba(170, 59, 255, 0.6)",
					strokeWidth: 1,
					listening: !1
				})
			]
		})
	});
}
function As({ src: e, ...t }) {
	let [n, r] = (0, S.useState)(null);
	return (0, S.useEffect)(() => {
		let t = new window.Image();
		return t.crossOrigin = "anonymous", t.onload = () => r(t), t.src = e, () => {
			t.onload = null;
		};
	}, [e]), n ? /* @__PURE__ */ (0, E.jsx)(ys, {
		...t,
		image: n
	}) : null;
}
function js(e) {
	switch (e.type) {
		case "rect":
		case "image": return e.width;
		case "circle": return e.radius * 2;
		case "ellipse": return e.radiusX * 2;
		case "line": return Math.max(...e.points.filter((e, t) => t % 2 == 0)) - Math.min(...e.points.filter((e, t) => t % 2 == 0));
		case "text": return e.width || e.fontSize * e.text.length * .6;
	}
}
function Ms(e) {
	switch (e.type) {
		case "rect":
		case "image": return e.height;
		case "circle": return e.radius * 2;
		case "ellipse": return e.radiusY * 2;
		case "line": return Math.max(...e.points.filter((e, t) => t % 2 == 1)) - Math.min(...e.points.filter((e, t) => t % 2 == 1));
		case "text": return e.fontSize * e.lineHeight;
	}
}
function Ns(e, t, n, r, i, a, o, s) {
	return e < i + o && e + n > i && t < a + s && t + r > a;
}
//#endregion
//#region src/components/canvas/CanvasToolbar.tsx
var Ps = [
	{
		tool: "pointer",
		label: "Select",
		icon: "↖"
	},
	{
		tool: "rect",
		label: "Rectangle",
		icon: "▭"
	},
	{
		tool: "circle",
		label: "Circle",
		icon: "○"
	},
	{
		tool: "ellipse",
		label: "Ellipse",
		icon: "⬯"
	},
	{
		tool: "line",
		label: "Line",
		icon: "╱"
	},
	{
		tool: "text",
		label: "Text",
		icon: "T"
	}
];
function Fs({ activeTool: e, onToolChange: t, canUndo: n, canRedo: r, onUndo: i, onRedo: a, showGrid: o, onToggleGrid: s, zoomLevel: c, onZoomIn: l, onZoomOut: u, onZoomFit: d }) {
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "canvas-toolbar",
		"data-testid": "canvas-toolbar",
		children: [
			/* @__PURE__ */ (0, E.jsx)("div", {
				className: "canvas-toolbar-group",
				"data-testid": "tool-group",
				children: Ps.map(({ tool: n, label: r, icon: i }) => /* @__PURE__ */ (0, E.jsxs)("button", {
					type: "button",
					className: `canvas-tool-btn${e === n ? " canvas-tool-btn--active" : ""}`,
					onClick: () => t(n),
					title: r,
					"aria-pressed": e === n,
					"data-testid": `tool-btn-${n}`,
					children: [/* @__PURE__ */ (0, E.jsx)("span", {
						className: "canvas-tool-icon",
						children: i
					}), /* @__PURE__ */ (0, E.jsx)("span", {
						className: "canvas-tool-label",
						children: r
					})]
				}, n))
			}),
			/* @__PURE__ */ (0, E.jsxs)("div", {
				className: "canvas-toolbar-group",
				"data-testid": "undo-redo-group",
				children: [/* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: "canvas-tool-btn",
					onClick: i,
					disabled: !n,
					title: "Undo (Ctrl+Z)",
					"data-testid": "undo-btn",
					children: "↩ Undo"
				}), /* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: "canvas-tool-btn",
					onClick: a,
					disabled: !r,
					title: "Redo (Ctrl+Shift+Z)",
					"data-testid": "redo-btn",
					children: "↪ Redo"
				})]
			}),
			/* @__PURE__ */ (0, E.jsx)("div", {
				className: "canvas-toolbar-group",
				children: /* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: `canvas-tool-btn${o ? " canvas-tool-btn--active" : ""}`,
					onClick: s,
					title: o ? "Hide grid" : "Show grid",
					"aria-pressed": o,
					"data-testid": "grid-toggle-btn",
					children: "# Grid"
				})
			}),
			/* @__PURE__ */ (0, E.jsxs)("div", {
				className: "canvas-toolbar-group",
				"data-testid": "zoom-group",
				children: [
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "canvas-tool-btn",
						onClick: u,
						title: "Zoom out",
						"data-testid": "zoom-out-btn",
						children: "−"
					}),
					/* @__PURE__ */ (0, E.jsxs)("span", {
						className: "canvas-toolbar-zoom-label",
						"data-testid": "zoom-level",
						children: [Math.round(c * 100), "%"]
					}),
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "canvas-tool-btn",
						onClick: l,
						title: "Zoom in",
						"data-testid": "zoom-in-btn",
						children: "+"
					}),
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "canvas-tool-btn",
						onClick: d,
						title: "Fit to artboard",
						"data-testid": "zoom-fit-btn",
						children: "⊞ Fit"
					})
				]
			})
		]
	});
}
//#endregion
//#region src/components/canvas/ObjectPanel.tsx
var Is = {
	rect: "▭",
	circle: "○",
	ellipse: "⬯",
	line: "╱",
	image: "🖼",
	text: "T"
};
function Ls({ objects: e, selectedIds: t, onSelect: n, onReorder: r, onToggleVisibility: i, onToggleLock: a, onRename: o }) {
	let [s, c] = (0, S.useState)(null), [l, u] = (0, S.useState)(""), d = (0, S.useRef)(null), f = (0, S.useRef)(null), p = (0, S.useRef)(null), m = [...e].reverse(), h = (0, S.useCallback)((e, t) => {
		n([e], t.shiftKey);
	}, [n]), g = (0, S.useCallback)((e, t) => {
		c(e), u(t), setTimeout(() => d.current?.select(), 0);
	}, []), _ = (0, S.useCallback)((e) => {
		let t = l.trim();
		t && o(e, t), c(null);
	}, [l, o]), v = (0, S.useCallback)((e) => {
		f.current = e;
	}, []), y = (0, S.useCallback)((e, t) => {
		e.preventDefault(), p.current = t;
	}, []), b = (0, S.useCallback)((t) => {
		let n = f.current, i = p.current;
		n == null || i == null || (r(n, e.length - 1 - i), f.current = null, p.current = null);
	}, [e.length, r]);
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "object-panel",
		"data-testid": "object-panel",
		children: [/* @__PURE__ */ (0, E.jsx)("div", {
			className: "object-panel-header",
			children: "Layers"
		}), m.length === 0 ? /* @__PURE__ */ (0, E.jsx)("div", {
			className: "object-panel-empty",
			children: "No objects on canvas"
		}) : /* @__PURE__ */ (0, E.jsx)("div", {
			className: "object-panel-list",
			role: "listbox",
			"aria-label": "Layer list",
			children: m.map((e, n) => {
				let r = t.includes(e.id), o = s === e.id;
				return /* @__PURE__ */ (0, E.jsxs)("div", {
					role: "option",
					"aria-selected": r,
					className: `object-panel-row${r ? " object-panel-row--selected" : ""}${e.visible ? "" : " object-panel-row--hidden"}`,
					onClick: (t) => h(e.id, t),
					onDoubleClick: () => g(e.id, e.name),
					draggable: !o,
					onDragStart: () => v(e.id),
					onDragOver: (e) => y(e, n),
					onDrop: b,
					"data-testid": `object-row-${e.id}`,
					children: [
						/* @__PURE__ */ (0, E.jsx)("span", {
							className: "object-panel-drag",
							"aria-hidden": "true",
							children: "⠿"
						}),
						/* @__PURE__ */ (0, E.jsx)("span", {
							className: "object-panel-type-icon",
							title: e.type,
							children: Is[e.type]
						}),
						o ? /* @__PURE__ */ (0, E.jsx)("input", {
							ref: d,
							className: "object-panel-name-input",
							value: l,
							onChange: (e) => u(e.target.value),
							onBlur: () => _(e.id),
							onKeyDown: (t) => {
								t.key === "Enter" && _(e.id), t.key === "Escape" && c(null);
							},
							onClick: (e) => e.stopPropagation(),
							"data-testid": `rename-input-${e.id}`
						}) : /* @__PURE__ */ (0, E.jsx)("span", {
							className: "object-panel-name",
							title: e.name,
							children: e.name
						}),
						/* @__PURE__ */ (0, E.jsx)("button", {
							type: "button",
							className: `object-panel-icon-btn${e.visible ? "" : " object-panel-icon-btn--off"}`,
							onClick: (t) => {
								t.stopPropagation(), i(e.id);
							},
							title: e.visible ? "Hide" : "Show",
							"aria-label": e.visible ? "Hide layer" : "Show layer",
							"data-testid": `visibility-toggle-${e.id}`,
							children: e.visible ? "👁" : "👁‍🗨"
						}),
						/* @__PURE__ */ (0, E.jsx)("button", {
							type: "button",
							className: `object-panel-icon-btn${e.locked ? " object-panel-icon-btn--on" : ""}`,
							onClick: (t) => {
								t.stopPropagation(), a(e.id);
							},
							title: e.locked ? "Unlock" : "Lock",
							"aria-label": e.locked ? "Unlock layer" : "Lock layer",
							"data-testid": `lock-toggle-${e.id}`,
							children: e.locked ? "🔒" : "🔓"
						})
					]
				}, e.id);
			})
		})]
	});
}
//#endregion
//#region src/utils/alignment.ts
function Rs(e) {
	let t = Math.min(...e.map((e) => e.x));
	return e.map((e) => ({
		id: e.id,
		x: t,
		y: e.y
	}));
}
function zs(e) {
	let t = e.map((e) => e.x + e.width / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
	return e.map((e) => ({
		id: e.id,
		x: n - e.width / 2,
		y: e.y
	}));
}
function Bs(e) {
	let t = Math.max(...e.map((e) => e.x + e.width));
	return e.map((e) => ({
		id: e.id,
		x: t - e.width,
		y: e.y
	}));
}
function Vs(e) {
	let t = Math.min(...e.map((e) => e.y));
	return e.map((e) => ({
		id: e.id,
		x: e.x,
		y: t
	}));
}
function Hs(e) {
	let t = e.map((e) => e.y + e.height / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
	return e.map((e) => ({
		id: e.id,
		x: e.x,
		y: n - e.height / 2
	}));
}
function Us(e) {
	let t = Math.max(...e.map((e) => e.y + e.height));
	return e.map((e) => ({
		id: e.id,
		x: e.x,
		y: t - e.height
	}));
}
function Ws(e) {
	if (e.length < 3) return e.map((e) => ({
		id: e.id,
		x: e.x,
		y: e.y
	}));
	let t = [...e].sort((e, t) => e.x - t.x), n = t[0], r = t[t.length - 1], i = t.reduce((e, t) => e + t.width, 0), a = (r.x + r.width - n.x - i) / (t.length - 1), o = n.x;
	return t.map((e) => {
		let t = {
			id: e.id,
			x: o,
			y: e.y
		};
		return o += e.width + a, t;
	});
}
function Gs(e) {
	if (e.length < 3) return e.map((e) => ({
		id: e.id,
		x: e.x,
		y: e.y
	}));
	let t = [...e].sort((e, t) => e.y - t.y), n = t[0], r = t[t.length - 1], i = t.reduce((e, t) => e + t.height, 0), a = (r.y + r.height - n.y - i) / (t.length - 1), o = n.y;
	return t.map((e) => {
		let t = {
			id: e.id,
			x: e.x,
			y: o
		};
		return o += e.height + a, t;
	});
}
function Ks(e, t, n) {
	if (e.length === 0) return [];
	let r = Math.min(...e.map((e) => e.x)), i = Math.min(...e.map((e) => e.y)), a = Math.max(...e.map((e) => e.x + e.width)), o = Math.max(...e.map((e) => e.y + e.height)), s = a - r, c = o - i, l = (t - s) / 2 - r, u = (n - c) / 2 - i;
	return e.map((e) => ({
		id: e.id,
		x: e.x + l,
		y: e.y + u
	}));
}
//#endregion
//#region src/components/canvas/AlignmentBar.tsx
function qs(e) {
	let t, n;
	switch (e.type) {
		case "rect":
		case "image":
			t = e.width, n = e.height;
			break;
		case "circle":
			t = e.radius * 2, n = e.radius * 2;
			break;
		case "ellipse":
			t = e.radiusX * 2, n = e.radiusY * 2;
			break;
		case "line": {
			let r = e.points.filter((e, t) => t % 2 == 0), i = e.points.filter((e, t) => t % 2 == 1);
			t = Math.max(...r) - Math.min(...r), n = Math.max(...i) - Math.min(...i);
			break;
		}
		case "text":
			t = e.width, n = e.fontSize * e.lineHeight;
			break;
	}
	return {
		id: e.id,
		x: e.x,
		y: e.y,
		width: t,
		height: n
	};
}
function Js({ objects: e, selectedIds: t, artboard: n, onUpdateObject: r }) {
	let i = (0, S.useMemo)(() => e.filter((e) => t.includes(e.id)), [e, t]), a = (0, S.useCallback)((e) => {
		for (let t of e) r(t.id, {
			x: t.x,
			y: t.y
		});
	}, [r]), o = (0, S.useMemo)(() => i.map(qs), [i]);
	if (t.length === 0) return null;
	let s = t.length >= 2;
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "alignment-bar",
		"data-testid": "alignment-bar",
		children: [
			/* @__PURE__ */ (0, E.jsxs)("div", {
				className: "alignment-bar-group",
				"data-testid": "align-group",
				children: [
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "alignment-btn",
						onClick: () => a(Rs(o)),
						title: "Align left",
						"aria-label": "Align left",
						children: "⬱"
					}),
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "alignment-btn",
						onClick: () => a(zs(o)),
						title: "Align center",
						"aria-label": "Align center horizontally",
						children: "⬌"
					}),
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "alignment-btn",
						onClick: () => a(Bs(o)),
						title: "Align right",
						"aria-label": "Align right",
						children: "⬲"
					}),
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "alignment-btn",
						onClick: () => a(Vs(o)),
						title: "Align top",
						"aria-label": "Align top",
						children: "⬑"
					}),
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "alignment-btn",
						onClick: () => a(Hs(o)),
						title: "Align middle",
						"aria-label": "Align middle vertically",
						children: "⬍"
					}),
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: "alignment-btn",
						onClick: () => a(Us(o)),
						title: "Align bottom",
						"aria-label": "Align bottom",
						children: "⬐"
					})
				]
			}),
			s && /* @__PURE__ */ (0, E.jsxs)("div", {
				className: "alignment-bar-group",
				"data-testid": "distribute-group",
				children: [/* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: "alignment-btn",
					onClick: () => a(Ws(o)),
					title: "Distribute horizontally",
					"aria-label": "Distribute horizontally",
					children: "⟺"
				}), /* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: "alignment-btn",
					onClick: () => a(Gs(o)),
					title: "Distribute vertically",
					"aria-label": "Distribute vertically",
					children: "⟷"
				})]
			}),
			n && /* @__PURE__ */ (0, E.jsx)("div", {
				className: "alignment-bar-group",
				"data-testid": "center-group",
				children: /* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: "alignment-btn",
					onClick: () => {
						a(Ks(o, Ee(n.width, n.unit), Ee(n.height, n.unit)));
					},
					title: "Center on artboard",
					"aria-label": "Center on artboard",
					children: "⊹"
				})
			})
		]
	});
}
//#endregion
//#region __vite-browser-external
var Ys = /* @__PURE__ */ s(((e, t) => {
	t.exports = {};
})), Xs = /* @__PURE__ */ c({
	BoundingBox: () => uc,
	Font: () => Fp,
	Glyph: () => Xc,
	Path: () => dc,
	_parse: () => X,
	default: () => Mh,
	load: () => nm,
	loadSync: () => rm,
	parse: () => tm
});
function Zs() {
	this.table = new Uint16Array(16), this.trans = new Uint16Array(288);
}
function Qs(e, t) {
	this.source = e, this.sourceIndex = 0, this.tag = 0, this.bitcount = 0, this.dest = t, this.destLen = 0, this.ltree = new Zs(), this.dtree = new Zs();
}
function $s(e, t, n, r) {
	var i, a;
	for (i = 0; i < n; ++i) e[i] = 0;
	for (i = 0; i < 30 - n; ++i) e[i + n] = i / n | 0;
	for (a = r, i = 0; i < 30; ++i) t[i] = a, a += 1 << e[i];
}
function ec(e, t) {
	var n;
	for (n = 0; n < 7; ++n) e.table[n] = 0;
	for (e.table[7] = 24, e.table[8] = 152, e.table[9] = 112, n = 0; n < 24; ++n) e.trans[n] = 256 + n;
	for (n = 0; n < 144; ++n) e.trans[24 + n] = n;
	for (n = 0; n < 8; ++n) e.trans[168 + n] = 280 + n;
	for (n = 0; n < 112; ++n) e.trans[176 + n] = 144 + n;
	for (n = 0; n < 5; ++n) t.table[n] = 0;
	for (t.table[5] = 32, n = 0; n < 32; ++n) t.trans[n] = n;
}
function tc(e, t, n, r) {
	var i, a;
	for (i = 0; i < 16; ++i) e.table[i] = 0;
	for (i = 0; i < r; ++i) e.table[t[n + i]]++;
	for (e.table[0] = 0, a = 0, i = 0; i < 16; ++i) hm[i] = a, a += e.table[i];
	for (i = 0; i < r; ++i) t[n + i] && (e.trans[hm[t[n + i]]++] = i);
}
function nc(e) {
	e.bitcount-- || (e.tag = e.source[e.sourceIndex++], e.bitcount = 7);
	var t = e.tag & 1;
	return e.tag >>>= 1, t;
}
function rc(e, t, n) {
	if (!t) return n;
	for (; e.bitcount < 24;) e.tag |= e.source[e.sourceIndex++] << e.bitcount, e.bitcount += 8;
	var r = e.tag & 65535 >>> 16 - t;
	return e.tag >>>= t, e.bitcount -= t, r + n;
}
function ic(e, t) {
	for (; e.bitcount < 24;) e.tag |= e.source[e.sourceIndex++] << e.bitcount, e.bitcount += 8;
	var n = 0, r = 0, i = 0, a = e.tag;
	do
		r = 2 * r + (a & 1), a >>>= 1, ++i, n += t.table[i], r -= t.table[i];
	while (r >= 0);
	return e.tag = a, e.bitcount -= i, t.trans[n + r];
}
function ac(e, t, n) {
	var r = rc(e, 5, 257), i = rc(e, 5, 1), a = rc(e, 4, 4), o, s, c;
	for (o = 0; o < 19; ++o) mm[o] = 0;
	for (o = 0; o < a; ++o) {
		var l = rc(e, 3, 0);
		mm[fm[o]] = l;
	}
	for (tc(pm, mm, 0, 19), s = 0; s < r + i;) {
		var u = ic(e, pm);
		switch (u) {
			case 16:
				var d = mm[s - 1];
				for (c = rc(e, 2, 3); c; --c) mm[s++] = d;
				break;
			case 17:
				for (c = rc(e, 3, 3); c; --c) mm[s++] = 0;
				break;
			case 18:
				for (c = rc(e, 7, 11); c; --c) mm[s++] = 0;
				break;
			default:
				mm[s++] = u;
				break;
		}
	}
	tc(t, mm, 0, r), tc(n, mm, r, i);
}
function oc(e, t, n) {
	for (;;) {
		var r = ic(e, t);
		if (r === 256) return im;
		if (r < 256) e.dest[e.destLen++] = r;
		else {
			var i, a, o, s;
			for (r -= 257, i = rc(e, cm[r], lm[r]), a = ic(e, n), o = e.destLen - rc(e, um[a], dm[a]), s = o; s < o + i; ++s) e.dest[e.destLen++] = e.dest[s];
		}
	}
}
function sc(e) {
	for (var t, n, r; e.bitcount > 8;) e.sourceIndex--, e.bitcount -= 8;
	if (t = e.source[e.sourceIndex + 1], t = 256 * t + e.source[e.sourceIndex], n = e.source[e.sourceIndex + 3], n = 256 * n + e.source[e.sourceIndex + 2], t !== (~n & 65535)) return am;
	for (e.sourceIndex += 4, r = t; r; --r) e.dest[e.destLen++] = e.source[e.sourceIndex++];
	return e.bitcount = 0, im;
}
function cc(e, t) {
	var n = new Qs(e, t), r, i, a;
	do {
		switch (r = nc(n), i = rc(n, 2, 0), i) {
			case 0:
				a = sc(n);
				break;
			case 1:
				a = oc(n, om, sm);
				break;
			case 2:
				ac(n, n.ltree, n.dtree), a = oc(n, n.ltree, n.dtree);
				break;
			default: a = am;
		}
		if (a !== im) throw Error("Data error");
	} while (!r);
	return n.destLen < n.dest.length ? typeof n.dest.slice == "function" ? n.dest.slice(0, n.destLen) : n.dest.subarray(0, n.destLen) : n.dest;
}
function lc(e, t, n, r, i) {
	return (1 - i) ** 3 * e + 3 * (1 - i) ** 2 * i * t + 3 * (1 - i) * i ** 2 * n + i ** 3 * r;
}
function uc() {
	this.x1 = NaN, this.y1 = NaN, this.x2 = NaN, this.y2 = NaN;
}
function dc() {
	this.commands = [], this.fill = "black", this.stroke = null, this.strokeWidth = 1;
}
function fc(e) {
	throw Error(e);
}
function pc(e, t) {
	e || fc(t);
}
function mc(e) {
	return function() {
		return e;
	};
}
function hc(e) {
	return e >= -128 && e <= 127;
}
function gc(e, t, n) {
	for (var r = 0, i = e.length; t < i && r < 64 && e[t] === 0;) ++t, ++r;
	return n.push(128 | r - 1), t;
}
function _c(e, t, n) {
	for (var r = 0, i = e.length, a = t; a < i && r < 64;) {
		var o = e[a];
		if (!hc(o) || o === 0 && a + 1 < i && e[a + 1] === 0) break;
		++a, ++r;
	}
	n.push(r - 1);
	for (var s = t; s < a; ++s) n.push(e[s] + 256 & 255);
	return a;
}
function vc(e, t, n) {
	for (var r = 0, i = e.length, a = t; a < i && r < 64;) {
		var o = e[a];
		if (o === 0 || hc(o) && a + 1 < i && hc(e[a + 1])) break;
		++a, ++r;
	}
	n.push(64 | r - 1);
	for (var s = t; s < a; ++s) {
		var c = e[s];
		n.push(c + 65536 >> 8 & 255, c + 256 & 255);
	}
	return a;
}
function yc(e, t, n) {
	if (t.length && (t[0].name !== "coverageFormat" || t[0].value === 1)) for (var r = 0; r < t.length; r += 1) {
		var i = t[r];
		this[i.name] = i.value;
	}
	if (this.tableName = e, this.fields = t, n) for (var a = Object.keys(n), o = 0; o < a.length; o += 1) {
		var s = a[o], c = n[s];
		this[s] !== void 0 && (this[s] = c);
	}
}
function bc(e, t, n) {
	n === void 0 && (n = t.length);
	var r = Array(t.length + 1);
	r[0] = {
		name: e + "Count",
		type: "USHORT",
		value: n
	};
	for (var i = 0; i < t.length; i++) r[i + 1] = {
		name: e + i,
		type: "USHORT",
		value: t[i]
	};
	return r;
}
function xc(e, t, n) {
	var r = t.length, i = Array(r + 1);
	i[0] = {
		name: e + "Count",
		type: "USHORT",
		value: r
	};
	for (var a = 0; a < r; a++) i[a + 1] = {
		name: e + a,
		type: "TABLE",
		value: n(t[a], a)
	};
	return i;
}
function Sc(e, t, n) {
	var r = t.length, i = [];
	i[0] = {
		name: e + "Count",
		type: "USHORT",
		value: r
	};
	for (var a = 0; a < r; a++) i = i.concat(n(t[a], a));
	return i;
}
function Cc(e) {
	e.format === 1 ? yc.call(this, "coverageTable", [{
		name: "coverageFormat",
		type: "USHORT",
		value: 1
	}].concat(bc("glyph", e.glyphs))) : e.format === 2 ? yc.call(this, "coverageTable", [{
		name: "coverageFormat",
		type: "USHORT",
		value: 2
	}].concat(Sc("rangeRecord", e.ranges, function(e) {
		return [
			{
				name: "startGlyphID",
				type: "USHORT",
				value: e.start
			},
			{
				name: "endGlyphID",
				type: "USHORT",
				value: e.end
			},
			{
				name: "startCoverageIndex",
				type: "USHORT",
				value: e.index
			}
		];
	}))) : _m.assert(!1, "Coverage format must be 1 or 2.");
}
function wc(e) {
	yc.call(this, "scriptListTable", Sc("scriptRecord", e, function(e, t) {
		var n = e.script, r = n.defaultLangSys;
		return _m.assert(!!r, "Unable to write GSUB: script " + e.tag + " has no default language system."), [{
			name: "scriptTag" + t,
			type: "TAG",
			value: e.tag
		}, {
			name: "script" + t,
			type: "TABLE",
			value: new yc("scriptTable", [{
				name: "defaultLangSys",
				type: "TABLE",
				value: new yc("defaultLangSys", [{
					name: "lookupOrder",
					type: "USHORT",
					value: 0
				}, {
					name: "reqFeatureIndex",
					type: "USHORT",
					value: r.reqFeatureIndex
				}].concat(bc("featureIndex", r.featureIndexes)))
			}].concat(Sc("langSys", n.langSysRecords, function(e, t) {
				var n = e.langSys;
				return [{
					name: "langSysTag" + t,
					type: "TAG",
					value: e.tag
				}, {
					name: "langSys" + t,
					type: "TABLE",
					value: new yc("langSys", [{
						name: "lookupOrder",
						type: "USHORT",
						value: 0
					}, {
						name: "reqFeatureIndex",
						type: "USHORT",
						value: n.reqFeatureIndex
					}].concat(bc("featureIndex", n.featureIndexes)))
				}];
			})))
		}];
	}));
}
function Tc(e) {
	yc.call(this, "featureListTable", Sc("featureRecord", e, function(e, t) {
		var n = e.feature;
		return [{
			name: "featureTag" + t,
			type: "TAG",
			value: e.tag
		}, {
			name: "feature" + t,
			type: "TABLE",
			value: new yc("featureTable", [{
				name: "featureParams",
				type: "USHORT",
				value: n.featureParams
			}].concat(bc("lookupListIndex", n.lookupListIndexes)))
		}];
	}));
}
function Ec(e, t) {
	yc.call(this, "lookupListTable", xc("lookup", e, function(e) {
		var n = t[e.lookupType];
		return _m.assert(!!n, "Unable to write GSUB lookup type " + e.lookupType + " tables."), new yc("lookupTable", [{
			name: "lookupType",
			type: "USHORT",
			value: e.lookupType
		}, {
			name: "lookupFlag",
			type: "USHORT",
			value: e.lookupFlag
		}].concat(xc("subtable", e.subtables, n)));
	}));
}
function Dc(e, t) {
	return e.getUint8(t);
}
function Oc(e, t) {
	return e.getUint16(t, !1);
}
function kc(e, t) {
	return e.getInt16(t, !1);
}
function Ac(e, t) {
	return e.getUint32(t, !1);
}
function jc(e, t) {
	return e.getInt16(t, !1) + e.getUint16(t + 2, !1) / 65535;
}
function Mc(e, t) {
	for (var n = "", r = t; r < t + 4; r += 1) n += String.fromCharCode(e.getInt8(r));
	return n;
}
function Nc(e, t, n) {
	for (var r = 0, i = 0; i < n; i += 1) r <<= 8, r += e.getUint8(t + i);
	return r;
}
function Pc(e, t, n) {
	for (var r = [], i = t; i < n; i += 1) r.push(e.getUint8(i));
	return r;
}
function Fc(e) {
	for (var t = "", n = 0; n < e.length; n += 1) t += String.fromCharCode(e[n]);
	return t;
}
function G(e, t) {
	this.data = e, this.offset = t, this.relativeOffset = 0;
}
function Ic(e, t) {
	t.parseUShort(), e.length = t.parseULong(), e.language = t.parseULong();
	var n;
	e.groupCount = n = t.parseULong(), e.glyphIndexMap = {};
	for (var r = 0; r < n; r += 1) for (var i = t.parseULong(), a = t.parseULong(), o = t.parseULong(), s = i; s <= a; s += 1) e.glyphIndexMap[s] = o, o++;
}
function Lc(e, t, n, r, i) {
	e.length = t.parseUShort(), e.language = t.parseUShort();
	var a;
	e.segCount = a = t.parseUShort() >> 1, t.skip("uShort", 3), e.glyphIndexMap = {};
	for (var o = new X.Parser(n, r + i + 14), s = new X.Parser(n, r + i + 16 + a * 2), c = new X.Parser(n, r + i + 16 + a * 4), l = new X.Parser(n, r + i + 16 + a * 6), u = r + i + 16 + a * 8, d = 0; d < a - 1; d += 1) for (var f = void 0, p = o.parseUShort(), m = s.parseUShort(), h = c.parseShort(), g = l.parseUShort(), _ = m; _ <= p; _ += 1) g === 0 ? f = _ + h & 65535 : (u = l.offset + l.relativeOffset - 2, u += g, u += (_ - m) * 2, f = X.getUShort(n, u), f !== 0 && (f = f + h & 65535)), e.glyphIndexMap[_] = f;
}
function Rc(e, t) {
	var n = {};
	n.version = X.getUShort(e, t), _m.argument(n.version === 0, "cmap table version should be 0."), n.numTables = X.getUShort(e, t + 2);
	for (var r = -1, i = n.numTables - 1; i >= 0; --i) {
		var a = X.getUShort(e, t + 4 + i * 8), o = X.getUShort(e, t + 4 + i * 8 + 2);
		if (a === 3 && (o === 0 || o === 1 || o === 10) || a === 0 && (o === 0 || o === 1 || o === 2 || o === 3 || o === 4)) {
			r = X.getULong(e, t + 4 + i * 8 + 4);
			break;
		}
	}
	if (r === -1) throw Error("No valid cmap sub-tables found.");
	var s = new X.Parser(e, t + r);
	if (n.format = s.parseUShort(), n.format === 12) Ic(n, s);
	else if (n.format === 4) Lc(n, s, e, t, r);
	else throw Error("Only format 4 and 12 cmap tables are supported (found format " + n.format + ").");
	return n;
}
function zc(e, t, n) {
	e.segments.push({
		end: t,
		start: t,
		delta: -(t - n),
		offset: 0,
		glyphIndex: n
	});
}
function Bc(e) {
	e.segments.push({
		end: 65535,
		start: 65535,
		delta: 1,
		offset: 0
	});
}
function Vc(e) {
	var t = !0, n;
	for (n = e.length - 1; n > 0; --n) if (e.get(n).unicode > 65535) {
		console.log("Adding CMAP format 12 (needed!)"), t = !1;
		break;
	}
	var r = [
		{
			name: "version",
			type: "USHORT",
			value: 0
		},
		{
			name: "numTables",
			type: "USHORT",
			value: t ? 1 : 2
		},
		{
			name: "platformID",
			type: "USHORT",
			value: 3
		},
		{
			name: "encodingID",
			type: "USHORT",
			value: 1
		},
		{
			name: "offset",
			type: "ULONG",
			value: t ? 12 : 20
		}
	];
	t || (r = r.concat([
		{
			name: "cmap12PlatformID",
			type: "USHORT",
			value: 3
		},
		{
			name: "cmap12EncodingID",
			type: "USHORT",
			value: 10
		},
		{
			name: "cmap12Offset",
			type: "ULONG",
			value: 0
		}
	])), r = r.concat([
		{
			name: "format",
			type: "USHORT",
			value: 4
		},
		{
			name: "cmap4Length",
			type: "USHORT",
			value: 0
		},
		{
			name: "language",
			type: "USHORT",
			value: 0
		},
		{
			name: "segCountX2",
			type: "USHORT",
			value: 0
		},
		{
			name: "searchRange",
			type: "USHORT",
			value: 0
		},
		{
			name: "entrySelector",
			type: "USHORT",
			value: 0
		},
		{
			name: "rangeShift",
			type: "USHORT",
			value: 0
		}
	]);
	var i = new Y.Table("cmap", r);
	for (i.segments = [], n = 0; n < e.length; n += 1) {
		for (var a = e.get(n), o = 0; o < a.unicodes.length; o += 1) zc(i, a.unicodes[o], n);
		i.segments = i.segments.sort(function(e, t) {
			return e.start - t.start;
		});
	}
	Bc(i);
	var s = i.segments.length, c = 0, l = [], u = [], d = [], f = [], p = [], m = [];
	for (n = 0; n < s; n += 1) {
		var h = i.segments[n];
		h.end <= 65535 && h.start <= 65535 ? (l = l.concat({
			name: "end_" + n,
			type: "USHORT",
			value: h.end
		}), u = u.concat({
			name: "start_" + n,
			type: "USHORT",
			value: h.start
		}), d = d.concat({
			name: "idDelta_" + n,
			type: "SHORT",
			value: h.delta
		}), f = f.concat({
			name: "idRangeOffset_" + n,
			type: "USHORT",
			value: h.offset
		}), h.glyphId !== void 0 && (p = p.concat({
			name: "glyph_" + n,
			type: "USHORT",
			value: h.glyphId
		}))) : c += 1, !t && h.glyphIndex !== void 0 && (m = m.concat({
			name: "cmap12Start_" + n,
			type: "ULONG",
			value: h.start
		}), m = m.concat({
			name: "cmap12End_" + n,
			type: "ULONG",
			value: h.end
		}), m = m.concat({
			name: "cmap12Glyph_" + n,
			type: "ULONG",
			value: h.glyphIndex
		}));
	}
	if (i.segCountX2 = (s - c) * 2, i.searchRange = 2 ** Math.floor(Math.log(s - c) / Math.log(2)) * 2, i.entrySelector = Math.log(i.searchRange / 2) / Math.log(2), i.rangeShift = i.segCountX2 - i.searchRange, i.fields = i.fields.concat(l), i.fields.push({
		name: "reservedPad",
		type: "USHORT",
		value: 0
	}), i.fields = i.fields.concat(u), i.fields = i.fields.concat(d), i.fields = i.fields.concat(f), i.fields = i.fields.concat(p), i.cmap4Length = 14 + l.length * 2 + 2 + u.length * 2 + d.length * 2 + f.length * 2 + p.length * 2, !t) {
		var g = 16 + m.length * 4;
		i.cmap12Offset = 20 + i.cmap4Length, i.fields = i.fields.concat([
			{
				name: "cmap12Format",
				type: "USHORT",
				value: 12
			},
			{
				name: "cmap12Reserved",
				type: "USHORT",
				value: 0
			},
			{
				name: "cmap12Length",
				type: "ULONG",
				value: g
			},
			{
				name: "cmap12Language",
				type: "ULONG",
				value: 0
			},
			{
				name: "cmap12nGroups",
				type: "ULONG",
				value: m.length / 3
			}
		]), i.fields = i.fields.concat(m);
	}
	return i;
}
function Hc(e) {
	this.font = e;
}
function Uc(e) {
	this.cmap = e;
}
function Wc(e, t) {
	this.encoding = e, this.charset = t;
}
function K(e) {
	switch (e.version) {
		case 1:
			this.names = Nm.slice();
			break;
		case 2:
			this.names = Array(e.numberOfGlyphs);
			for (var t = 0; t < e.numberOfGlyphs; t++) e.glyphNameIndex[t] < Nm.length ? this.names[t] = Nm[e.glyphNameIndex[t]] : this.names[t] = e.names[e.glyphNameIndex[t] - Nm.length];
			break;
		case 2.5:
			this.names = Array(e.numberOfGlyphs);
			for (var n = 0; n < e.numberOfGlyphs; n++) this.names[n] = Nm[n + e.glyphNameIndex[n]];
			break;
		case 3:
			this.names = [];
			break;
		default:
			this.names = [];
			break;
	}
}
function Gc(e) {
	for (var t, n = e.tables.cmap.glyphIndexMap, r = Object.keys(n), i = 0; i < r.length; i += 1) {
		var a = r[i], o = n[a];
		t = e.glyphs.get(o), t.addUnicode(parseInt(a));
	}
	for (var s = 0; s < e.glyphs.length; s += 1) t = e.glyphs.get(s), e.cffEncoding ? e.isCIDFont ? t.name = "gid" + s : t.name = e.cffEncoding.charset[s] : e.glyphNames.names && (t.name = e.glyphNames.glyphIndexToName(s));
}
function Kc(e) {
	e._IndexToUnicodeMap = {};
	for (var t = e.tables.cmap.glyphIndexMap, n = Object.keys(t), r = 0; r < n.length; r += 1) {
		var i = n[r], a = t[i];
		e._IndexToUnicodeMap[a] === void 0 ? e._IndexToUnicodeMap[a] = { unicodes: [parseInt(i)] } : e._IndexToUnicodeMap[a].unicodes.push(parseInt(i));
	}
}
function qc(e, t) {
	t.lowMemory ? Kc(e) : Gc(e);
}
function Jc(e, t, n, r, i) {
	e.beginPath(), e.moveTo(t, n), e.lineTo(r, i), e.stroke();
}
function Yc(e, t) {
	var n = t || new dc();
	return {
		configurable: !0,
		get: function() {
			return typeof n == "function" && (n = n()), n;
		},
		set: function(e) {
			n = e;
		}
	};
}
function Xc(e) {
	this.bindConstructorValues(e);
}
function Zc(e, t, n) {
	Object.defineProperty(e, t, {
		get: function() {
			return e.path, e[n];
		},
		set: function(t) {
			e[n] = t;
		},
		enumerable: !0,
		configurable: !0
	});
}
function Qc(e, t) {
	if (this.font = e, this.glyphs = {}, Array.isArray(t)) for (var n = 0; n < t.length; n++) {
		var r = t[n];
		r.path.unitsPerEm = e.unitsPerEm, this.glyphs[n] = r;
	}
	this.length = t && t.length || 0;
}
function $c(e, t) {
	return new Xc({
		index: t,
		font: e
	});
}
function el(e, t, n, r, i, a) {
	return function() {
		var o = new Xc({
			index: t,
			font: e
		});
		return o.path = function() {
			n(o, r, i);
			var t = a(e.glyphs, o);
			return t.unitsPerEm = e.unitsPerEm, t;
		}, Zc(o, "xMin", "_xMin"), Zc(o, "xMax", "_xMax"), Zc(o, "yMin", "_yMin"), Zc(o, "yMax", "_yMax"), o;
	};
}
function tl(e, t, n, r) {
	return function() {
		var i = new Xc({
			index: t,
			font: e
		});
		return i.path = function() {
			var t = n(e, i, r);
			return t.unitsPerEm = e.unitsPerEm, t;
		}, i;
	};
}
function nl(e, t) {
	if (e === t) return !0;
	if (Array.isArray(e) && Array.isArray(t)) {
		if (e.length !== t.length) return !1;
		for (var n = 0; n < e.length; n += 1) if (!nl(e[n], t[n])) return !1;
		return !0;
	} else return !1;
}
function rl(e) {
	return e.length < 1240 ? 107 : e.length < 33900 ? 1131 : 32768;
}
function il(e, t, n) {
	var r = [], i = [], a = X.getCard16(e, t), o, s;
	if (a !== 0) {
		var c = X.getByte(e, t + 2);
		o = t + (a + 1) * c + 2;
		for (var l = t + 3, u = 0; u < a + 1; u += 1) r.push(X.getOffset(e, l, c)), l += c;
		s = o + r[a];
	} else s = t + 2;
	for (var d = 0; d < r.length - 1; d += 1) {
		var f = X.getBytes(e, o + r[d], o + r[d + 1]);
		n && (f = n(f)), i.push(f);
	}
	return {
		objects: i,
		startOffset: t,
		endOffset: s
	};
}
function al(e, t) {
	var n = [], r = X.getCard16(e, t), i, a;
	if (r !== 0) {
		var o = X.getByte(e, t + 2);
		i = t + (r + 1) * o + 2;
		for (var s = t + 3, c = 0; c < r + 1; c += 1) n.push(X.getOffset(e, s, o)), s += o;
		a = i + n[r];
	} else a = t + 2;
	return {
		offsets: n,
		startOffset: t,
		endOffset: a
	};
}
function ol(e, t, n, r, i) {
	var a = X.getCard16(n, r), o = 0;
	if (a !== 0) {
		var s = X.getByte(n, r + 2);
		o = r + (a + 1) * s + 2;
	}
	var c = X.getBytes(n, o + t[e], o + t[e + 1]);
	return i && (c = i(c)), c;
}
function sl(e) {
	for (var t = "", n = 15, r = [
		"0",
		"1",
		"2",
		"3",
		"4",
		"5",
		"6",
		"7",
		"8",
		"9",
		".",
		"E",
		"E-",
		null,
		"-"
	];;) {
		var i = e.parseByte(), a = i >> 4, o = i & 15;
		if (a === n || (t += r[a], o === n)) break;
		t += r[o];
	}
	return parseFloat(t);
}
function cl(e, t) {
	var n, r, i, a;
	if (t === 28) return n = e.parseByte(), r = e.parseByte(), n << 8 | r;
	if (t === 29) return n = e.parseByte(), r = e.parseByte(), i = e.parseByte(), a = e.parseByte(), n << 24 | r << 16 | i << 8 | a;
	if (t === 30) return sl(e);
	if (t >= 32 && t <= 246) return t - 139;
	if (t >= 247 && t <= 250) return n = e.parseByte(), (t - 247) * 256 + n + 108;
	if (t >= 251 && t <= 254) return n = e.parseByte(), -(t - 251) * 256 - n - 108;
	throw Error("Invalid b0 " + t);
}
function ll(e) {
	for (var t = {}, n = 0; n < e.length; n += 1) {
		var r = e[n][0], i = e[n][1], a = void 0;
		if (a = i.length === 1 ? i[0] : i, t.hasOwnProperty(r) && !isNaN(t[r])) throw Error("Object " + t + " already has key " + r);
		t[r] = a;
	}
	return t;
}
function ul(e, t, n) {
	t = t === void 0 ? 0 : t;
	var r = new X.Parser(e, t), i = [], a = [];
	for (n = n === void 0 ? e.length : n; r.relativeOffset < n;) {
		var o = r.parseByte();
		o <= 21 ? (o === 12 && (o = 1200 + r.parseByte()), i.push([o, a]), a = []) : a.push(cl(r, o));
	}
	return ll(i);
}
function dl(e, t) {
	return t = t <= 390 ? Am[t] : e[t - 391], t;
}
function fl(e, t, n) {
	for (var r = {}, i, a = 0; a < t.length; a += 1) {
		var o = t[a];
		if (Array.isArray(o.type)) {
			var s = [];
			s.length = o.type.length;
			for (var c = 0; c < o.type.length; c++) i = e[o.op] === void 0 ? void 0 : e[o.op][c], i === void 0 && (i = o.value !== void 0 && o.value[c] !== void 0 ? o.value[c] : null), o.type[c] === "SID" && (i = dl(n, i)), s[c] = i;
			r[o.name] = s;
		} else i = e[o.op], i === void 0 && (i = o.value === void 0 ? null : o.value), o.type === "SID" && (i = dl(n, i)), r[o.name] = i;
	}
	return r;
}
function pl(e, t) {
	var n = {};
	return n.formatMajor = X.getCard8(e, t), n.formatMinor = X.getCard8(e, t + 1), n.size = X.getCard8(e, t + 2), n.offsetSize = X.getCard8(e, t + 3), n.startOffset = t, n.endOffset = t + 4, n;
}
function ml(e, t) {
	return fl(ul(e, 0, e.byteLength), Im, t);
}
function hl(e, t, n, r) {
	return fl(ul(e, t, n), Lm, r);
}
function gl(e, t, n, r) {
	for (var i = [], a = 0; a < n.length; a += 1) {
		var o = ml(new DataView(new Uint8Array(n[a]).buffer), r);
		o._subrs = [], o._subrsBias = 0, o._defaultWidthX = 0, o._nominalWidthX = 0;
		var s = o.private[0], c = o.private[1];
		if (s !== 0 && c !== 0) {
			var l = hl(e, c + t, s, r);
			o._defaultWidthX = l.defaultWidthX, o._nominalWidthX = l.nominalWidthX, l.subrs !== 0 && (o._subrs = il(e, c + l.subrs + t).objects, o._subrsBias = rl(o._subrs)), o._privateDict = l;
		}
		i.push(o);
	}
	return i;
}
function _l(e, t, n, r) {
	var i, a, o = new X.Parser(e, t);
	--n;
	var s = [".notdef"], c = o.parseCard8();
	if (c === 0) for (var l = 0; l < n; l += 1) i = o.parseSID(), s.push(dl(r, i));
	else if (c === 1) for (; s.length <= n;) {
		i = o.parseSID(), a = o.parseCard8();
		for (var u = 0; u <= a; u += 1) s.push(dl(r, i)), i += 1;
	}
	else if (c === 2) for (; s.length <= n;) {
		i = o.parseSID(), a = o.parseCard16();
		for (var d = 0; d <= a; d += 1) s.push(dl(r, i)), i += 1;
	}
	else throw Error("Unknown charset format " + c);
	return s;
}
function vl(e, t, n) {
	var r, i = {}, a = new X.Parser(e, t), o = a.parseCard8();
	if (o === 0) for (var s = a.parseCard8(), c = 0; c < s; c += 1) r = a.parseCard8(), i[r] = c;
	else if (o === 1) {
		var l = a.parseCard8();
		r = 1;
		for (var u = 0; u < l; u += 1) for (var d = a.parseCard8(), f = a.parseCard8(), p = d; p <= d + f; p += 1) i[p] = r, r += 1;
	} else throw Error("Unknown encoding format " + o);
	return new Wc(i, n);
}
function yl(e, t, n) {
	var r, i, a, o, s = new dc(), c = [], l = 0, u = !1, d = !1, f = 0, p = 0, m, h, g, _;
	if (e.isCIDFont) {
		var v = e.tables.cff.topDict._fdSelect[t.index], y = e.tables.cff.topDict._fdArray[v];
		m = y._subrs, h = y._subrsBias, g = y._defaultWidthX, _ = y._nominalWidthX;
	} else m = e.tables.cff.topDict._subrs, h = e.tables.cff.topDict._subrsBias, g = e.tables.cff.topDict._defaultWidthX, _ = e.tables.cff.topDict._nominalWidthX;
	var b = g;
	function x(e, t) {
		d && s.closePath(), s.moveTo(e, t), d = !0;
	}
	function ee() {
		c.length % 2 != 0 && !u && (b = c.shift() + _), l += c.length >> 1, c.length = 0, u = !0;
	}
	function S(n) {
		for (var g, v, y, C, te, ne, w, T, E, D, re, O, k = 0; k < n.length;) {
			var A = n[k];
			switch (k += 1, A) {
				case 1:
					ee();
					break;
				case 3:
					ee();
					break;
				case 4:
					c.length > 1 && !u && (b = c.shift() + _, u = !0), p += c.pop(), x(f, p);
					break;
				case 5:
					for (; c.length > 0;) f += c.shift(), p += c.shift(), s.lineTo(f, p);
					break;
				case 6:
					for (; c.length > 0 && (f += c.shift(), s.lineTo(f, p), c.length !== 0);) p += c.shift(), s.lineTo(f, p);
					break;
				case 7:
					for (; c.length > 0 && (p += c.shift(), s.lineTo(f, p), c.length !== 0);) f += c.shift(), s.lineTo(f, p);
					break;
				case 8:
					for (; c.length > 0;) r = f + c.shift(), i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), f = a + c.shift(), p = o + c.shift(), s.curveTo(r, i, a, o, f, p);
					break;
				case 10:
					te = c.pop() + h, ne = m[te], ne && S(ne);
					break;
				case 11: return;
				case 12:
					switch (A = n[k], k += 1, A) {
						case 35:
							r = f + c.shift(), i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), w = a + c.shift(), T = o + c.shift(), E = w + c.shift(), D = T + c.shift(), re = E + c.shift(), O = D + c.shift(), f = re + c.shift(), p = O + c.shift(), c.shift(), s.curveTo(r, i, a, o, w, T), s.curveTo(E, D, re, O, f, p);
							break;
						case 34:
							r = f + c.shift(), i = p, a = r + c.shift(), o = i + c.shift(), w = a + c.shift(), T = o, E = w + c.shift(), D = o, re = E + c.shift(), O = p, f = re + c.shift(), s.curveTo(r, i, a, o, w, T), s.curveTo(E, D, re, O, f, p);
							break;
						case 36:
							r = f + c.shift(), i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), w = a + c.shift(), T = o, E = w + c.shift(), D = o, re = E + c.shift(), O = D + c.shift(), f = re + c.shift(), s.curveTo(r, i, a, o, w, T), s.curveTo(E, D, re, O, f, p);
							break;
						case 37:
							r = f + c.shift(), i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), w = a + c.shift(), T = o + c.shift(), E = w + c.shift(), D = T + c.shift(), re = E + c.shift(), O = D + c.shift(), Math.abs(re - f) > Math.abs(O - p) ? f = re + c.shift() : p = O + c.shift(), s.curveTo(r, i, a, o, w, T), s.curveTo(E, D, re, O, f, p);
							break;
						default: console.log("Glyph " + t.index + ": unknown operator 1200" + A), c.length = 0;
					}
					break;
				case 14:
					c.length > 0 && !u && (b = c.shift() + _, u = !0), d &&= (s.closePath(), !1);
					break;
				case 18:
					ee();
					break;
				case 19:
				case 20:
					ee(), k += l + 7 >> 3;
					break;
				case 21:
					c.length > 2 && !u && (b = c.shift() + _, u = !0), p += c.pop(), f += c.pop(), x(f, p);
					break;
				case 22:
					c.length > 1 && !u && (b = c.shift() + _, u = !0), f += c.pop(), x(f, p);
					break;
				case 23:
					ee();
					break;
				case 24:
					for (; c.length > 2;) r = f + c.shift(), i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), f = a + c.shift(), p = o + c.shift(), s.curveTo(r, i, a, o, f, p);
					f += c.shift(), p += c.shift(), s.lineTo(f, p);
					break;
				case 25:
					for (; c.length > 6;) f += c.shift(), p += c.shift(), s.lineTo(f, p);
					r = f + c.shift(), i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), f = a + c.shift(), p = o + c.shift(), s.curveTo(r, i, a, o, f, p);
					break;
				case 26:
					for (c.length % 2 && (f += c.shift()); c.length > 0;) r = f, i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), f = a, p = o + c.shift(), s.curveTo(r, i, a, o, f, p);
					break;
				case 27:
					for (c.length % 2 && (p += c.shift()); c.length > 0;) r = f + c.shift(), i = p, a = r + c.shift(), o = i + c.shift(), f = a + c.shift(), p = o, s.curveTo(r, i, a, o, f, p);
					break;
				case 28:
					g = n[k], v = n[k + 1], c.push((g << 24 | v << 16) >> 16), k += 2;
					break;
				case 29:
					te = c.pop() + e.gsubrsBias, ne = e.gsubrs[te], ne && S(ne);
					break;
				case 30:
					for (; c.length > 0 && (r = f, i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), f = a + c.shift(), p = o + (c.length === 1 ? c.shift() : 0), s.curveTo(r, i, a, o, f, p), c.length !== 0);) r = f + c.shift(), i = p, a = r + c.shift(), o = i + c.shift(), p = o + c.shift(), f = a + (c.length === 1 ? c.shift() : 0), s.curveTo(r, i, a, o, f, p);
					break;
				case 31:
					for (; c.length > 0 && (r = f + c.shift(), i = p, a = r + c.shift(), o = i + c.shift(), p = o + c.shift(), f = a + (c.length === 1 ? c.shift() : 0), s.curveTo(r, i, a, o, f, p), c.length !== 0);) r = f, i = p + c.shift(), a = r + c.shift(), o = i + c.shift(), f = a + c.shift(), p = o + (c.length === 1 ? c.shift() : 0), s.curveTo(r, i, a, o, f, p);
					break;
				default: A < 32 ? console.log("Glyph " + t.index + ": unknown operator " + A) : A < 247 ? c.push(A - 139) : A < 251 ? (g = n[k], k += 1, c.push((A - 247) * 256 + g + 108)) : A < 255 ? (g = n[k], k += 1, c.push(-(A - 251) * 256 - g - 108)) : (g = n[k], v = n[k + 1], y = n[k + 2], C = n[k + 3], k += 4, c.push((g << 24 | v << 16 | y << 8 | C) / 65536));
			}
		}
	}
	return S(n), t.advanceWidth = b, s;
}
function bl(e, t, n, r) {
	var i = [], a, o = new X.Parser(e, t), s = o.parseCard8();
	if (s === 0) for (var c = 0; c < n; c++) {
		if (a = o.parseCard8(), a >= r) throw Error("CFF table CID Font FDSelect has bad FD index value " + a + " (FD count " + r + ")");
		i.push(a);
	}
	else if (s === 3) {
		var l = o.parseCard16(), u = o.parseCard16();
		if (u !== 0) throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID " + u);
		for (var d, f = 0; f < l; f++) {
			if (a = o.parseCard8(), d = o.parseCard16(), a >= r) throw Error("CFF table CID Font FDSelect has bad FD index value " + a + " (FD count " + r + ")");
			if (d > n) throw Error("CFF Table CID Font FDSelect format 3 range has bad GID " + d);
			for (; u < d; u++) i.push(a);
			u = d;
		}
		if (d !== n) throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID " + d);
	} else throw Error("CFF Table CID Font FDSelect table has unsupported format " + s);
	return i;
}
function xl(e, t, n, r) {
	n.tables.cff = {};
	var i = il(e, il(e, pl(e, t).endOffset, X.bytesToString).endOffset), a = il(e, i.endOffset, X.bytesToString);
	n.gsubrs = il(e, a.endOffset).objects, n.gsubrsBias = rl(n.gsubrs);
	var o = gl(e, t, i.objects, a.objects);
	if (o.length !== 1) throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + o.length);
	var s = o[0];
	if (n.tables.cff.topDict = s, s._privateDict && (n.defaultWidthX = s._privateDict.defaultWidthX, n.nominalWidthX = s._privateDict.nominalWidthX), s.ros[0] !== void 0 && s.ros[1] !== void 0 && (n.isCIDFont = !0), n.isCIDFont) {
		var c = s.fdArray, l = s.fdSelect;
		if (c === 0 || l === 0) throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");
		c += t;
		var u = gl(e, t, il(e, c).objects, a.objects);
		s._fdArray = u, l += t, s._fdSelect = bl(e, l, n.numGlyphs, u.length);
	}
	var d = t + s.private[1], f = hl(e, d, s.private[0], a.objects);
	n.defaultWidthX = f.defaultWidthX, n.nominalWidthX = f.nominalWidthX, f.subrs === 0 ? (n.subrs = [], n.subrsBias = 0) : (n.subrs = il(e, d + f.subrs).objects, n.subrsBias = rl(n.subrs));
	var p;
	r.lowMemory ? (p = al(e, t + s.charStrings), n.nGlyphs = p.offsets.length) : (p = il(e, t + s.charStrings), n.nGlyphs = p.objects.length);
	var m = _l(e, t + s.charset, n.nGlyphs, a.objects);
	if (s.encoding === 0 ? n.cffEncoding = new Wc(jm, m) : s.encoding === 1 ? n.cffEncoding = new Wc(Mm, m) : n.cffEncoding = vl(e, t + s.encoding, m), n.encoding = n.encoding || n.cffEncoding, n.glyphs = new Fm.GlyphSet(n), r.lowMemory) n._push = function(r) {
		var i = ol(r, p.offsets, e, t + s.charStrings);
		n.glyphs.push(r, Fm.cffGlyphLoader(n, r, yl, i));
	};
	else for (var h = 0; h < n.nGlyphs; h += 1) {
		var g = p.objects[h];
		n.glyphs.push(h, Fm.cffGlyphLoader(n, h, yl, g));
	}
}
function Sl(e, t) {
	var n, r = Am.indexOf(e);
	return r >= 0 && (n = r), r = t.indexOf(e), r >= 0 ? n = r + Am.length : (n = Am.length + t.length, t.push(e)), n;
}
function Cl() {
	return new Y.Record("Header", [
		{
			name: "major",
			type: "Card8",
			value: 1
		},
		{
			name: "minor",
			type: "Card8",
			value: 0
		},
		{
			name: "hdrSize",
			type: "Card8",
			value: 4
		},
		{
			name: "major",
			type: "Card8",
			value: 1
		}
	]);
}
function wl(e) {
	var t = new Y.Record("Name INDEX", [{
		name: "names",
		type: "INDEX",
		value: []
	}]);
	t.names = [];
	for (var n = 0; n < e.length; n += 1) t.names.push({
		name: "name_" + n,
		type: "NAME",
		value: e[n]
	});
	return t;
}
function Tl(e, t, n) {
	for (var r = {}, i = 0; i < e.length; i += 1) {
		var a = e[i], o = t[a.name];
		o !== void 0 && !nl(o, a.value) && (a.type === "SID" && (o = Sl(o, n)), r[a.op] = {
			name: a.name,
			type: a.type,
			value: o
		});
	}
	return r;
}
function El(e, t) {
	var n = new Y.Record("Top DICT", [{
		name: "dict",
		type: "DICT",
		value: {}
	}]);
	return n.dict = Tl(Im, e, t), n;
}
function Dl(e) {
	var t = new Y.Record("Top DICT INDEX", [{
		name: "topDicts",
		type: "INDEX",
		value: []
	}]);
	return t.topDicts = [{
		name: "topDict_0",
		type: "TABLE",
		value: e
	}], t;
}
function Ol(e) {
	var t = new Y.Record("String INDEX", [{
		name: "strings",
		type: "INDEX",
		value: []
	}]);
	t.strings = [];
	for (var n = 0; n < e.length; n += 1) t.strings.push({
		name: "string_" + n,
		type: "STRING",
		value: e[n]
	});
	return t;
}
function kl() {
	return new Y.Record("Global Subr INDEX", [{
		name: "subrs",
		type: "INDEX",
		value: []
	}]);
}
function Al(e, t) {
	for (var n = new Y.Record("Charsets", [{
		name: "format",
		type: "Card8",
		value: 0
	}]), r = 0; r < e.length; r += 1) {
		var i = e[r], a = Sl(i, t);
		n.fields.push({
			name: "glyph_" + r,
			type: "SID",
			value: a
		});
	}
	return n;
}
function jl(e) {
	var t = [], n = e.path;
	t.push({
		name: "width",
		type: "NUMBER",
		value: e.advanceWidth
	});
	for (var r = 0, i = 0, a = 0; a < n.commands.length; a += 1) {
		var o = void 0, s = void 0, c = n.commands[a];
		if (c.type === "Q") {
			var l = 1 / 3, u = 2 / 3;
			c = {
				type: "C",
				x: c.x,
				y: c.y,
				x1: Math.round(l * r + u * c.x1),
				y1: Math.round(l * i + u * c.y1),
				x2: Math.round(l * c.x + u * c.x1),
				y2: Math.round(l * c.y + u * c.y1)
			};
		}
		if (c.type === "M") o = Math.round(c.x - r), s = Math.round(c.y - i), t.push({
			name: "dx",
			type: "NUMBER",
			value: o
		}), t.push({
			name: "dy",
			type: "NUMBER",
			value: s
		}), t.push({
			name: "rmoveto",
			type: "OP",
			value: 21
		}), r = Math.round(c.x), i = Math.round(c.y);
		else if (c.type === "L") o = Math.round(c.x - r), s = Math.round(c.y - i), t.push({
			name: "dx",
			type: "NUMBER",
			value: o
		}), t.push({
			name: "dy",
			type: "NUMBER",
			value: s
		}), t.push({
			name: "rlineto",
			type: "OP",
			value: 5
		}), r = Math.round(c.x), i = Math.round(c.y);
		else if (c.type === "C") {
			var d = Math.round(c.x1 - r), f = Math.round(c.y1 - i), p = Math.round(c.x2 - c.x1), m = Math.round(c.y2 - c.y1);
			o = Math.round(c.x - c.x2), s = Math.round(c.y - c.y2), t.push({
				name: "dx1",
				type: "NUMBER",
				value: d
			}), t.push({
				name: "dy1",
				type: "NUMBER",
				value: f
			}), t.push({
				name: "dx2",
				type: "NUMBER",
				value: p
			}), t.push({
				name: "dy2",
				type: "NUMBER",
				value: m
			}), t.push({
				name: "dx",
				type: "NUMBER",
				value: o
			}), t.push({
				name: "dy",
				type: "NUMBER",
				value: s
			}), t.push({
				name: "rrcurveto",
				type: "OP",
				value: 8
			}), r = Math.round(c.x), i = Math.round(c.y);
		}
	}
	return t.push({
		name: "endchar",
		type: "OP",
		value: 14
	}), t;
}
function Ml(e) {
	for (var t = new Y.Record("CharStrings INDEX", [{
		name: "charStrings",
		type: "INDEX",
		value: []
	}]), n = 0; n < e.length; n += 1) {
		var r = e.get(n), i = jl(r);
		t.charStrings.push({
			name: r.name,
			type: "CHARSTRING",
			value: i
		});
	}
	return t;
}
function Nl(e, t) {
	var n = new Y.Record("Private DICT", [{
		name: "dict",
		type: "DICT",
		value: {}
	}]);
	return n.dict = Tl(Lm, e, t), n;
}
function Pl(e, t) {
	for (var n = new Y.Table("CFF ", [
		{
			name: "header",
			type: "RECORD"
		},
		{
			name: "nameIndex",
			type: "RECORD"
		},
		{
			name: "topDictIndex",
			type: "RECORD"
		},
		{
			name: "stringIndex",
			type: "RECORD"
		},
		{
			name: "globalSubrIndex",
			type: "RECORD"
		},
		{
			name: "charsets",
			type: "RECORD"
		},
		{
			name: "charStringsIndex",
			type: "RECORD"
		},
		{
			name: "privateDict",
			type: "RECORD"
		}
	]), r = 1 / t.unitsPerEm, i = {
		version: t.version,
		fullName: t.fullName,
		familyName: t.familyName,
		weight: t.weightName,
		fontBBox: t.fontBBox || [
			0,
			0,
			0,
			0
		],
		fontMatrix: [
			r,
			0,
			0,
			r,
			0,
			0
		],
		charset: 999,
		encoding: 0,
		charStrings: 999,
		private: [0, 999]
	}, a = {}, o = [], s, c = 1; c < e.length; c += 1) s = e.get(c), o.push(s.name);
	var l = [];
	n.header = Cl(), n.nameIndex = wl([t.postScriptName]);
	var u = El(i, l);
	return n.topDictIndex = Dl(u), n.globalSubrIndex = kl(), n.charsets = Al(o, l), n.charStringsIndex = Ml(e), n.privateDict = Nl(a, l), n.stringIndex = Ol(l), i.charset = n.header.sizeOf() + n.nameIndex.sizeOf() + n.topDictIndex.sizeOf() + n.stringIndex.sizeOf() + n.globalSubrIndex.sizeOf(), i.encoding = 0, i.charStrings = i.charset + n.charsets.sizeOf(), i.private[1] = i.charStrings + n.charStringsIndex.sizeOf(), u = El(i, l), n.topDictIndex = Dl(u), n;
}
function Fl(e, t) {
	var n = {}, r = new X.Parser(e, t);
	return n.version = r.parseVersion(), n.fontRevision = Math.round(r.parseFixed() * 1e3) / 1e3, n.checkSumAdjustment = r.parseULong(), n.magicNumber = r.parseULong(), _m.argument(n.magicNumber === 1594834165, "Font header has wrong magic number."), n.flags = r.parseUShort(), n.unitsPerEm = r.parseUShort(), n.created = r.parseLongDateTime(), n.modified = r.parseLongDateTime(), n.xMin = r.parseShort(), n.yMin = r.parseShort(), n.xMax = r.parseShort(), n.yMax = r.parseShort(), n.macStyle = r.parseUShort(), n.lowestRecPPEM = r.parseUShort(), n.fontDirectionHint = r.parseShort(), n.indexToLocFormat = r.parseShort(), n.glyphDataFormat = r.parseShort(), n;
}
function Il(e) {
	var t = Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3) + 2082844800, n = t;
	return e.createdTimestamp && (n = e.createdTimestamp + 2082844800), new Y.Table("head", [
		{
			name: "version",
			type: "FIXED",
			value: 65536
		},
		{
			name: "fontRevision",
			type: "FIXED",
			value: 65536
		},
		{
			name: "checkSumAdjustment",
			type: "ULONG",
			value: 0
		},
		{
			name: "magicNumber",
			type: "ULONG",
			value: 1594834165
		},
		{
			name: "flags",
			type: "USHORT",
			value: 0
		},
		{
			name: "unitsPerEm",
			type: "USHORT",
			value: 1e3
		},
		{
			name: "created",
			type: "LONGDATETIME",
			value: n
		},
		{
			name: "modified",
			type: "LONGDATETIME",
			value: t
		},
		{
			name: "xMin",
			type: "SHORT",
			value: 0
		},
		{
			name: "yMin",
			type: "SHORT",
			value: 0
		},
		{
			name: "xMax",
			type: "SHORT",
			value: 0
		},
		{
			name: "yMax",
			type: "SHORT",
			value: 0
		},
		{
			name: "macStyle",
			type: "USHORT",
			value: 0
		},
		{
			name: "lowestRecPPEM",
			type: "USHORT",
			value: 0
		},
		{
			name: "fontDirectionHint",
			type: "SHORT",
			value: 2
		},
		{
			name: "indexToLocFormat",
			type: "SHORT",
			value: 0
		},
		{
			name: "glyphDataFormat",
			type: "SHORT",
			value: 0
		}
	], e);
}
function Ll(e, t) {
	var n = {}, r = new X.Parser(e, t);
	return n.version = r.parseVersion(), n.ascender = r.parseShort(), n.descender = r.parseShort(), n.lineGap = r.parseShort(), n.advanceWidthMax = r.parseUShort(), n.minLeftSideBearing = r.parseShort(), n.minRightSideBearing = r.parseShort(), n.xMaxExtent = r.parseShort(), n.caretSlopeRise = r.parseShort(), n.caretSlopeRun = r.parseShort(), n.caretOffset = r.parseShort(), r.relativeOffset += 8, n.metricDataFormat = r.parseShort(), n.numberOfHMetrics = r.parseUShort(), n;
}
function Rl(e) {
	return new Y.Table("hhea", [
		{
			name: "version",
			type: "FIXED",
			value: 65536
		},
		{
			name: "ascender",
			type: "FWORD",
			value: 0
		},
		{
			name: "descender",
			type: "FWORD",
			value: 0
		},
		{
			name: "lineGap",
			type: "FWORD",
			value: 0
		},
		{
			name: "advanceWidthMax",
			type: "UFWORD",
			value: 0
		},
		{
			name: "minLeftSideBearing",
			type: "FWORD",
			value: 0
		},
		{
			name: "minRightSideBearing",
			type: "FWORD",
			value: 0
		},
		{
			name: "xMaxExtent",
			type: "FWORD",
			value: 0
		},
		{
			name: "caretSlopeRise",
			type: "SHORT",
			value: 1
		},
		{
			name: "caretSlopeRun",
			type: "SHORT",
			value: 0
		},
		{
			name: "caretOffset",
			type: "SHORT",
			value: 0
		},
		{
			name: "reserved1",
			type: "SHORT",
			value: 0
		},
		{
			name: "reserved2",
			type: "SHORT",
			value: 0
		},
		{
			name: "reserved3",
			type: "SHORT",
			value: 0
		},
		{
			name: "reserved4",
			type: "SHORT",
			value: 0
		},
		{
			name: "metricDataFormat",
			type: "SHORT",
			value: 0
		},
		{
			name: "numberOfHMetrics",
			type: "USHORT",
			value: 0
		}
	], e);
}
function zl(e, t, n, r, i) {
	for (var a, o, s = new X.Parser(e, t), c = 0; c < r; c += 1) {
		c < n && (a = s.parseUShort(), o = s.parseShort());
		var l = i.get(c);
		l.advanceWidth = a, l.leftSideBearing = o;
	}
}
function Bl(e, t, n, r, i) {
	e._hmtxTableData = {};
	for (var a, o, s = new X.Parser(t, n), c = 0; c < i; c += 1) c < r && (a = s.parseUShort(), o = s.parseShort()), e._hmtxTableData[c] = {
		advanceWidth: a,
		leftSideBearing: o
	};
}
function Vl(e, t, n, r, i, a, o) {
	o.lowMemory ? Bl(e, t, n, r, i) : zl(t, n, r, i, a);
}
function Hl(e) {
	for (var t = new Y.Table("hmtx", []), n = 0; n < e.length; n += 1) {
		var r = e.get(n), i = r.advanceWidth || 0, a = r.leftSideBearing || 0;
		t.fields.push({
			name: "advanceWidth_" + n,
			type: "USHORT",
			value: i
		}), t.fields.push({
			name: "leftSideBearing_" + n,
			type: "SHORT",
			value: a
		});
	}
	return t;
}
function Ul(e) {
	for (var t = new Y.Table("ltag", [
		{
			name: "version",
			type: "ULONG",
			value: 1
		},
		{
			name: "flags",
			type: "ULONG",
			value: 0
		},
		{
			name: "numTags",
			type: "ULONG",
			value: e.length
		}
	]), n = "", r = 12 + e.length * 4, i = 0; i < e.length; ++i) {
		var a = n.indexOf(e[i]);
		a < 0 && (a = n.length, n += e[i]), t.fields.push({
			name: "offset " + i,
			type: "USHORT",
			value: r + a
		}), t.fields.push({
			name: "length " + i,
			type: "USHORT",
			value: e[i].length
		});
	}
	return t.fields.push({
		name: "stringPool",
		type: "CHARARRAY",
		value: n
	}), t;
}
function Wl(e, t) {
	var n = new X.Parser(e, t), r = n.parseULong();
	_m.argument(r === 1, "Unsupported ltag table version."), n.skip("uLong", 1);
	for (var i = n.parseULong(), a = [], o = 0; o < i; o++) {
		for (var s = "", c = t + n.parseUShort(), l = n.parseUShort(), u = c; u < c + l; ++u) s += String.fromCharCode(e.getInt8(u));
		a.push(s);
	}
	return a;
}
function Gl(e, t) {
	var n = {}, r = new X.Parser(e, t);
	return n.version = r.parseVersion(), n.numGlyphs = r.parseUShort(), n.version === 1 && (n.maxPoints = r.parseUShort(), n.maxContours = r.parseUShort(), n.maxCompositePoints = r.parseUShort(), n.maxCompositeContours = r.parseUShort(), n.maxZones = r.parseUShort(), n.maxTwilightPoints = r.parseUShort(), n.maxStorage = r.parseUShort(), n.maxFunctionDefs = r.parseUShort(), n.maxInstructionDefs = r.parseUShort(), n.maxStackElements = r.parseUShort(), n.maxSizeOfInstructions = r.parseUShort(), n.maxComponentElements = r.parseUShort(), n.maxComponentDepth = r.parseUShort()), n;
}
function Kl(e) {
	return new Y.Table("maxp", [{
		name: "version",
		type: "FIXED",
		value: 20480
	}, {
		name: "numGlyphs",
		type: "USHORT",
		value: e
	}]);
}
function ql(e, t, n) {
	switch (e) {
		case 0:
			if (t === 65535) return "und";
			if (n) return n[t];
			break;
		case 1: return Gm[t];
		case 3: return qm[t];
	}
}
function Jl(e, t, n) {
	switch (e) {
		case 0: return Jm;
		case 1: return Xm[n] || Ym[t];
		case 3:
			if (t === 1 || t === 10) return Jm;
			break;
	}
}
function Yl(e, t, n) {
	for (var r = {}, i = new X.Parser(e, t), a = i.parseUShort(), o = i.parseUShort(), s = i.offset + i.parseUShort(), c = 0; c < o; c++) {
		var l = i.parseUShort(), u = i.parseUShort(), d = i.parseUShort(), f = i.parseUShort(), p = Wm[f] || f, m = i.parseUShort(), h = i.parseUShort(), g = ql(l, d, n), _ = Jl(l, u, d);
		if (_ !== void 0 && g !== void 0) {
			var v = void 0;
			if (v = _ === Jm ? bm.UTF16(e, s + h, m) : bm.MACSTRING(e, s + h, m, _), v) {
				var y = r[p];
				y === void 0 && (y = r[p] = {}), y[g] = v;
			}
		}
	}
	return a === 1 && i.parseUShort(), r;
}
function Xl(e) {
	var t = {};
	for (var n in e) t[e[n]] = parseInt(n);
	return t;
}
function Zl(e, t, n, r, i, a) {
	return new Y.Record("NameRecord", [
		{
			name: "platformID",
			type: "USHORT",
			value: e
		},
		{
			name: "encodingID",
			type: "USHORT",
			value: t
		},
		{
			name: "languageID",
			type: "USHORT",
			value: n
		},
		{
			name: "nameID",
			type: "USHORT",
			value: r
		},
		{
			name: "length",
			type: "USHORT",
			value: i
		},
		{
			name: "offset",
			type: "USHORT",
			value: a
		}
	]);
}
function Ql(e, t) {
	var n = e.length, r = t.length - n + 1;
	loop: for (var i = 0; i < r; i++) for (; i < r; i++) {
		for (var a = 0; a < n; a++) if (t[i + a] !== e[a]) continue loop;
		return i;
	}
	return -1;
}
function $l(e, t) {
	var n = Ql(e, t);
	if (n < 0) {
		n = t.length;
		for (var r = 0, i = e.length; r < i; ++r) t.push(e[r]);
	}
	return n;
}
function eu(e, t) {
	var n, r = [], i = {}, a = Xl(Wm);
	for (var o in e) {
		var s = a[o];
		if (s === void 0 && (s = o), n = parseInt(s), isNaN(n)) throw Error("Name table entry \"" + o + "\" does not exist, see nameTableNames for complete list.");
		i[n] = e[o], r.push(n);
	}
	for (var c = Xl(Gm), l = Xl(qm), u = [], d = [], f = 0; f < r.length; f++) {
		n = r[f];
		var p = i[n];
		for (var m in p) {
			var h = p[m], g = 1, _ = c[m], v = Km[_], y = Jl(g, v, _), b = J.MACSTRING(h, y);
			b === void 0 && (g = 0, _ = t.indexOf(m), _ < 0 && (_ = t.length, t.push(m)), v = 4, b = J.UTF16(h));
			var x = $l(b, d);
			u.push(Zl(g, v, _, n, b.length, x));
			var ee = l[m];
			if (ee !== void 0) {
				var S = J.UTF16(h), C = $l(S, d);
				u.push(Zl(3, 1, ee, n, S.length, C));
			}
		}
	}
	u.sort(function(e, t) {
		return e.platformID - t.platformID || e.encodingID - t.encodingID || e.languageID - t.languageID || e.nameID - t.nameID;
	});
	for (var te = new Y.Table("name", [
		{
			name: "format",
			type: "USHORT",
			value: 0
		},
		{
			name: "count",
			type: "USHORT",
			value: u.length
		},
		{
			name: "stringOffset",
			type: "USHORT",
			value: 6 + u.length * 12
		}
	]), ne = 0; ne < u.length; ne++) te.fields.push({
		name: "record_" + ne,
		type: "RECORD",
		value: u[ne]
	});
	return te.fields.push({
		name: "strings",
		type: "LITERAL",
		value: d
	}), te;
}
function tu(e) {
	for (var t = 0; t < Qm.length; t += 1) {
		var n = Qm[t];
		if (e >= n.begin && e < n.end) return t;
	}
	return -1;
}
function nu(e, t) {
	var n = {}, r = new X.Parser(e, t);
	n.version = r.parseUShort(), n.xAvgCharWidth = r.parseShort(), n.usWeightClass = r.parseUShort(), n.usWidthClass = r.parseUShort(), n.fsType = r.parseUShort(), n.ySubscriptXSize = r.parseShort(), n.ySubscriptYSize = r.parseShort(), n.ySubscriptXOffset = r.parseShort(), n.ySubscriptYOffset = r.parseShort(), n.ySuperscriptXSize = r.parseShort(), n.ySuperscriptYSize = r.parseShort(), n.ySuperscriptXOffset = r.parseShort(), n.ySuperscriptYOffset = r.parseShort(), n.yStrikeoutSize = r.parseShort(), n.yStrikeoutPosition = r.parseShort(), n.sFamilyClass = r.parseShort(), n.panose = [];
	for (var i = 0; i < 10; i++) n.panose[i] = r.parseByte();
	return n.ulUnicodeRange1 = r.parseULong(), n.ulUnicodeRange2 = r.parseULong(), n.ulUnicodeRange3 = r.parseULong(), n.ulUnicodeRange4 = r.parseULong(), n.achVendID = String.fromCharCode(r.parseByte(), r.parseByte(), r.parseByte(), r.parseByte()), n.fsSelection = r.parseUShort(), n.usFirstCharIndex = r.parseUShort(), n.usLastCharIndex = r.parseUShort(), n.sTypoAscender = r.parseShort(), n.sTypoDescender = r.parseShort(), n.sTypoLineGap = r.parseShort(), n.usWinAscent = r.parseUShort(), n.usWinDescent = r.parseUShort(), n.version >= 1 && (n.ulCodePageRange1 = r.parseULong(), n.ulCodePageRange2 = r.parseULong()), n.version >= 2 && (n.sxHeight = r.parseShort(), n.sCapHeight = r.parseShort(), n.usDefaultChar = r.parseUShort(), n.usBreakChar = r.parseUShort(), n.usMaxContent = r.parseUShort()), n;
}
function ru(e) {
	return new Y.Table("OS/2", [
		{
			name: "version",
			type: "USHORT",
			value: 3
		},
		{
			name: "xAvgCharWidth",
			type: "SHORT",
			value: 0
		},
		{
			name: "usWeightClass",
			type: "USHORT",
			value: 0
		},
		{
			name: "usWidthClass",
			type: "USHORT",
			value: 0
		},
		{
			name: "fsType",
			type: "USHORT",
			value: 0
		},
		{
			name: "ySubscriptXSize",
			type: "SHORT",
			value: 650
		},
		{
			name: "ySubscriptYSize",
			type: "SHORT",
			value: 699
		},
		{
			name: "ySubscriptXOffset",
			type: "SHORT",
			value: 0
		},
		{
			name: "ySubscriptYOffset",
			type: "SHORT",
			value: 140
		},
		{
			name: "ySuperscriptXSize",
			type: "SHORT",
			value: 650
		},
		{
			name: "ySuperscriptYSize",
			type: "SHORT",
			value: 699
		},
		{
			name: "ySuperscriptXOffset",
			type: "SHORT",
			value: 0
		},
		{
			name: "ySuperscriptYOffset",
			type: "SHORT",
			value: 479
		},
		{
			name: "yStrikeoutSize",
			type: "SHORT",
			value: 49
		},
		{
			name: "yStrikeoutPosition",
			type: "SHORT",
			value: 258
		},
		{
			name: "sFamilyClass",
			type: "SHORT",
			value: 0
		},
		{
			name: "bFamilyType",
			type: "BYTE",
			value: 0
		},
		{
			name: "bSerifStyle",
			type: "BYTE",
			value: 0
		},
		{
			name: "bWeight",
			type: "BYTE",
			value: 0
		},
		{
			name: "bProportion",
			type: "BYTE",
			value: 0
		},
		{
			name: "bContrast",
			type: "BYTE",
			value: 0
		},
		{
			name: "bStrokeVariation",
			type: "BYTE",
			value: 0
		},
		{
			name: "bArmStyle",
			type: "BYTE",
			value: 0
		},
		{
			name: "bLetterform",
			type: "BYTE",
			value: 0
		},
		{
			name: "bMidline",
			type: "BYTE",
			value: 0
		},
		{
			name: "bXHeight",
			type: "BYTE",
			value: 0
		},
		{
			name: "ulUnicodeRange1",
			type: "ULONG",
			value: 0
		},
		{
			name: "ulUnicodeRange2",
			type: "ULONG",
			value: 0
		},
		{
			name: "ulUnicodeRange3",
			type: "ULONG",
			value: 0
		},
		{
			name: "ulUnicodeRange4",
			type: "ULONG",
			value: 0
		},
		{
			name: "achVendID",
			type: "CHARARRAY",
			value: "XXXX"
		},
		{
			name: "fsSelection",
			type: "USHORT",
			value: 0
		},
		{
			name: "usFirstCharIndex",
			type: "USHORT",
			value: 0
		},
		{
			name: "usLastCharIndex",
			type: "USHORT",
			value: 0
		},
		{
			name: "sTypoAscender",
			type: "SHORT",
			value: 0
		},
		{
			name: "sTypoDescender",
			type: "SHORT",
			value: 0
		},
		{
			name: "sTypoLineGap",
			type: "SHORT",
			value: 0
		},
		{
			name: "usWinAscent",
			type: "USHORT",
			value: 0
		},
		{
			name: "usWinDescent",
			type: "USHORT",
			value: 0
		},
		{
			name: "ulCodePageRange1",
			type: "ULONG",
			value: 0
		},
		{
			name: "ulCodePageRange2",
			type: "ULONG",
			value: 0
		},
		{
			name: "sxHeight",
			type: "SHORT",
			value: 0
		},
		{
			name: "sCapHeight",
			type: "SHORT",
			value: 0
		},
		{
			name: "usDefaultChar",
			type: "USHORT",
			value: 0
		},
		{
			name: "usBreakChar",
			type: "USHORT",
			value: 0
		},
		{
			name: "usMaxContext",
			type: "USHORT",
			value: 0
		}
	], e);
}
function iu(e, t) {
	var n = {}, r = new X.Parser(e, t);
	switch (n.version = r.parseVersion(), n.italicAngle = r.parseFixed(), n.underlinePosition = r.parseShort(), n.underlineThickness = r.parseShort(), n.isFixedPitch = r.parseULong(), n.minMemType42 = r.parseULong(), n.maxMemType42 = r.parseULong(), n.minMemType1 = r.parseULong(), n.maxMemType1 = r.parseULong(), n.version) {
		case 1:
			n.names = Nm.slice();
			break;
		case 2:
			n.numberOfGlyphs = r.parseUShort(), n.glyphNameIndex = Array(n.numberOfGlyphs);
			for (var i = 0; i < n.numberOfGlyphs; i++) n.glyphNameIndex[i] = r.parseUShort();
			n.names = [];
			for (var a = 0; a < n.numberOfGlyphs; a++) if (n.glyphNameIndex[a] >= Nm.length) {
				var o = r.parseChar();
				n.names.push(r.parseString(o));
			}
			break;
		case 2.5:
			n.numberOfGlyphs = r.parseUShort(), n.offset = Array(n.numberOfGlyphs);
			for (var s = 0; s < n.numberOfGlyphs; s++) n.offset[s] = r.parseChar();
			break;
	}
	return n;
}
function au() {
	return new Y.Table("post", [
		{
			name: "version",
			type: "FIXED",
			value: 196608
		},
		{
			name: "italicAngle",
			type: "FIXED",
			value: 0
		},
		{
			name: "underlinePosition",
			type: "FWORD",
			value: 0
		},
		{
			name: "underlineThickness",
			type: "FWORD",
			value: 0
		},
		{
			name: "isFixedPitch",
			type: "ULONG",
			value: 0
		},
		{
			name: "minMemType42",
			type: "ULONG",
			value: 0
		},
		{
			name: "maxMemType42",
			type: "ULONG",
			value: 0
		},
		{
			name: "minMemType1",
			type: "ULONG",
			value: 0
		},
		{
			name: "maxMemType1",
			type: "ULONG",
			value: 0
		}
	]);
}
function ou(e, t) {
	t ||= 0;
	var n = new G(e, t), r = n.parseVersion(1);
	return _m.argument(r === 1 || r === 1.1, "Unsupported GSUB table version."), r === 1 ? {
		version: r,
		scripts: n.parseScriptList(),
		features: n.parseFeatureList(),
		lookups: n.parseLookupList(th)
	} : {
		version: r,
		scripts: n.parseScriptList(),
		features: n.parseFeatureList(),
		lookups: n.parseLookupList(th),
		variations: n.parseFeatureVariationsList()
	};
}
function su(e) {
	return new Y.Table("GSUB", [
		{
			name: "version",
			type: "ULONG",
			value: 65536
		},
		{
			name: "scripts",
			type: "TABLE",
			value: new Y.ScriptList(e.scripts)
		},
		{
			name: "features",
			type: "TABLE",
			value: new Y.FeatureList(e.features)
		},
		{
			name: "lookups",
			type: "TABLE",
			value: new Y.LookupList(e.lookups, rh)
		}
	]);
}
function cu(e, t) {
	var n = new X.Parser(e, t), r = n.parseULong();
	_m.argument(r === 1, "Unsupported META table version."), n.parseULong(), n.parseULong();
	for (var i = n.parseULong(), a = {}, o = 0; o < i; o++) {
		var s = n.parseTag(), c = n.parseULong(), l = n.parseULong();
		a[s] = bm.UTF8(e, t + c, l);
	}
	return a;
}
function lu(e) {
	var t = Object.keys(e).length, n = "", r = 16 + t * 12, i = new Y.Table("meta", [
		{
			name: "version",
			type: "ULONG",
			value: 1
		},
		{
			name: "flags",
			type: "ULONG",
			value: 0
		},
		{
			name: "offset",
			type: "ULONG",
			value: r
		},
		{
			name: "numTags",
			type: "ULONG",
			value: t
		}
	]);
	for (var a in e) {
		var o = n.length;
		n += e[a], i.fields.push({
			name: "tag " + a,
			type: "TAG",
			value: a
		}), i.fields.push({
			name: "offset " + a,
			type: "ULONG",
			value: r + o
		}), i.fields.push({
			name: "length " + a,
			type: "ULONG",
			value: e[a].length
		});
	}
	return i.fields.push({
		name: "stringPool",
		type: "CHARARRAY",
		value: n
	}), i;
}
function uu(e) {
	return Math.log(e) / Math.log(2) | 0;
}
function du(e) {
	for (; e.length % 4 != 0;) e.push(0);
	for (var t = 0, n = 0; n < e.length; n += 4) t += (e[n] << 24) + (e[n + 1] << 16) + (e[n + 2] << 8) + e[n + 3];
	return t %= 2 ** 32, t;
}
function fu(e, t, n, r) {
	return new Y.Record("Table Record", [
		{
			name: "tag",
			type: "TAG",
			value: e === void 0 ? "" : e
		},
		{
			name: "checkSum",
			type: "ULONG",
			value: t === void 0 ? 0 : t
		},
		{
			name: "offset",
			type: "ULONG",
			value: n === void 0 ? 0 : n
		},
		{
			name: "length",
			type: "ULONG",
			value: r === void 0 ? 0 : r
		}
	]);
}
function pu(e) {
	var t = new Y.Table("sfnt", [
		{
			name: "version",
			type: "TAG",
			value: "OTTO"
		},
		{
			name: "numTables",
			type: "USHORT",
			value: 0
		},
		{
			name: "searchRange",
			type: "USHORT",
			value: 0
		},
		{
			name: "entrySelector",
			type: "USHORT",
			value: 0
		},
		{
			name: "rangeShift",
			type: "USHORT",
			value: 0
		}
	]);
	t.tables = e, t.numTables = e.length;
	var n = 2 ** uu(t.numTables);
	t.searchRange = 16 * n, t.entrySelector = uu(n), t.rangeShift = t.numTables * 16 - t.searchRange;
	for (var r = [], i = [], a = t.sizeOf() + fu().sizeOf() * t.numTables; a % 4 != 0;) a += 1, i.push({
		name: "padding",
		type: "BYTE",
		value: 0
	});
	for (var o = 0; o < e.length; o += 1) {
		var s = e[o];
		_m.argument(s.tableName.length === 4, "Table name" + s.tableName + " is invalid.");
		var c = s.sizeOf(), l = fu(s.tableName, du(s.encode()), a, c);
		for (r.push({
			name: l.tag + " Table Record",
			type: "RECORD",
			value: l
		}), i.push({
			name: s.tableName + " table",
			type: "RECORD",
			value: s
		}), a += c, _m.argument(!isNaN(a), "Something went wrong calculating the offset."); a % 4 != 0;) a += 1, i.push({
			name: "padding",
			type: "BYTE",
			value: 0
		});
	}
	return r.sort(function(e, t) {
		return e.value.tag > t.value.tag ? 1 : -1;
	}), t.fields = t.fields.concat(r), t.fields = t.fields.concat(i), t;
}
function mu(e, t, n) {
	for (var r = 0; r < t.length; r += 1) {
		var i = e.charToGlyphIndex(t[r]);
		if (i > 0) return e.glyphs.get(i).getMetrics();
	}
	return n;
}
function hu(e) {
	for (var t = 0, n = 0; n < e.length; n += 1) t += e[n];
	return t / e.length;
}
function gu(e) {
	for (var t = [], n = [], r = [], i = [], a = [], o = [], s = [], c, l = 0, u = 0, d = 0, f = 0, p = 0, m = 0; m < e.glyphs.length; m += 1) {
		var h = e.glyphs.get(m), g = h.unicode | 0;
		if (isNaN(h.advanceWidth)) throw Error("Glyph " + h.name + " (" + m + "): advanceWidth is not a number.");
		(c > g || c === void 0) && g > 0 && (c = g), l < g && (l = g);
		var _ = $m.getUnicodeRange(g);
		if (_ < 32) u |= 1 << _;
		else if (_ < 64) d |= 1 << _ - 32;
		else if (_ < 96) f |= 1 << _ - 64;
		else if (_ < 123) p |= 1 << _ - 96;
		else throw Error("Unicode ranges bits > 123 are reserved for internal usage");
		if (h.name !== ".notdef") {
			var v = h.getMetrics();
			t.push(v.xMin), n.push(v.yMin), r.push(v.xMax), i.push(v.yMax), o.push(v.leftSideBearing), s.push(v.rightSideBearing), a.push(h.advanceWidth);
		}
	}
	var y = {
		xMin: Math.min.apply(null, t),
		yMin: Math.min.apply(null, n),
		xMax: Math.max.apply(null, r),
		yMax: Math.max.apply(null, i),
		advanceWidthMax: Math.max.apply(null, a),
		advanceWidthAvg: hu(a),
		minLeftSideBearing: Math.min.apply(null, o),
		maxLeftSideBearing: Math.max.apply(null, o),
		minRightSideBearing: Math.min.apply(null, s)
	};
	y.ascender = e.ascender, y.descender = e.descender;
	var b = zm.make({
		flags: 3,
		unitsPerEm: e.unitsPerEm,
		xMin: y.xMin,
		yMin: y.yMin,
		xMax: y.xMax,
		yMax: y.yMax,
		lowestRecPPEM: 3,
		createdTimestamp: e.createdTimestamp
	}), x = Bm.make({
		ascender: y.ascender,
		descender: y.descender,
		advanceWidthMax: y.advanceWidthMax,
		minLeftSideBearing: y.minLeftSideBearing,
		minRightSideBearing: y.minRightSideBearing,
		xMaxExtent: y.maxLeftSideBearing + (y.xMax - y.xMin),
		numberOfHMetrics: e.glyphs.length
	}), ee = Um.make(e.glyphs.length), S = $m.make(Object.assign({
		xAvgCharWidth: Math.round(y.advanceWidthAvg),
		usFirstCharIndex: c,
		usLastCharIndex: l,
		ulUnicodeRange1: u,
		ulUnicodeRange2: d,
		ulUnicodeRange3: f,
		ulUnicodeRange4: p,
		sTypoAscender: y.ascender,
		sTypoDescender: y.descender,
		sTypoLineGap: 0,
		usWinAscent: y.yMax,
		usWinDescent: Math.abs(y.yMin),
		ulCodePageRange1: 1,
		sxHeight: mu(e, "xyvw", { yMax: Math.round(y.ascender / 2) }).yMax,
		sCapHeight: mu(e, "HIKLEFJMNTZBDPRAGOQSUVWXY", y).yMax,
		usDefaultChar: e.hasChar(" ") ? 32 : 0,
		usBreakChar: e.hasChar(" ") ? 32 : 0
	}, e.tables.os2)), C = Vm.make(e.glyphs), te = km.make(e.glyphs), ne = e.getEnglishName("fontFamily"), w = e.getEnglishName("fontSubfamily"), T = ne + " " + w, E = e.getEnglishName("postScriptName");
	E ||= ne.replace(/\s/g, "") + "-" + w;
	var D = {};
	for (var re in e.names) D[re] = e.names[re];
	D.uniqueID ||= { en: e.getEnglishName("manufacturer") + ":" + T }, D.postScriptName ||= { en: E }, D.preferredFamily ||= e.names.fontFamily, D.preferredSubfamily ||= e.names.fontSubfamily;
	var O = [], k = Zm.make(D, O), A = O.length > 0 ? Hm.make(O) : void 0, ie = eh.make(), j = Rm.make(e.glyphs, {
		version: e.getEnglishName("version"),
		fullName: T,
		familyName: ne,
		weightName: w,
		postScriptName: E,
		unitsPerEm: e.unitsPerEm,
		fontBBox: [
			0,
			y.yMin,
			y.ascender,
			y.advanceWidthMax
		]
	}), ae = e.metas && Object.keys(e.metas).length > 0 ? ah.make(e.metas) : void 0, oe = [
		b,
		x,
		ee,
		S,
		k,
		te,
		ie,
		j,
		C
	];
	A && oe.push(A), e.tables.gsub && oe.push(ih.make(e.tables.gsub)), ae && oe.push(ae);
	for (var se = pu(oe), ce = du(se.encode()), le = se.fields, ue = !1, de = 0; de < le.length; de += 1) if (le[de].name === "head table") {
		le[de].value.checkSumAdjustment = 2981146554 - ce, ue = !0;
		break;
	}
	if (!ue) throw Error("Could not find head table with checkSum to adjust.");
	return se;
}
function _u(e, t) {
	for (var n = 0, r = e.length - 1; n <= r;) {
		var i = n + r >>> 1, a = e[i].tag;
		if (a === t) return i;
		a < t ? n = i + 1 : r = i - 1;
	}
	return -n - 1;
}
function vu(e, t) {
	for (var n = 0, r = e.length - 1; n <= r;) {
		var i = n + r >>> 1, a = e[i];
		if (a === t) return i;
		a < t ? n = i + 1 : r = i - 1;
	}
	return -n - 1;
}
function yu(e, t) {
	for (var n, r = 0, i = e.length - 1; r <= i;) {
		var a = r + i >>> 1;
		n = e[a];
		var o = n.start;
		if (o === t) return n;
		o < t ? r = a + 1 : i = a - 1;
	}
	if (r > 0) return n = e[r - 1], t > n.end ? 0 : n;
}
function bu(e, t) {
	this.font = e, this.tableName = t;
}
function xu(e) {
	bu.call(this, e, "gpos");
}
function Su(e) {
	bu.call(this, e, "gsub");
}
function Cu(e, t) {
	var n = e.length;
	if (n !== t.length) return !1;
	for (var r = 0; r < n; r++) if (e[r] !== t[r]) return !1;
	return !0;
}
function wu(e, t, n) {
	for (var r = e.subtables, i = 0; i < r.length; i++) {
		var a = r[i];
		if (a.substFormat === t) return a;
	}
	if (n) return r.push(n), n;
}
function Tu() {
	return typeof window < "u";
}
function Eu(e) {
	for (var t = new ArrayBuffer(e.length), n = new Uint8Array(t), r = 0; r < e.length; ++r) n[r] = e[r];
	return t;
}
function Du(e) {
	for (var t = new Buffer(e.byteLength), n = new Uint8Array(e), r = 0; r < t.length; ++r) t[r] = n[r];
	return t;
}
function Ou(e, t) {
	if (!e) throw t;
}
function ku(e, t, n, r, i) {
	var a;
	return (t & r) > 0 ? (a = e.parseByte(), (t & i) === 0 && (a = -a), a = n + a) : a = (t & i) > 0 ? n : n + e.parseShort(), a;
}
function Au(e, t, n) {
	var r = new X.Parser(t, n);
	e.numberOfContours = r.parseShort(), e._xMin = r.parseShort(), e._yMin = r.parseShort(), e._xMax = r.parseShort(), e._yMax = r.parseShort();
	var i, a;
	if (e.numberOfContours > 0) {
		for (var o = e.endPointIndices = [], s = 0; s < e.numberOfContours; s += 1) o.push(r.parseUShort());
		e.instructionLength = r.parseUShort(), e.instructions = [];
		for (var c = 0; c < e.instructionLength; c += 1) e.instructions.push(r.parseByte());
		var l = o[o.length - 1] + 1;
		i = [];
		for (var u = 0; u < l; u += 1) if (a = r.parseByte(), i.push(a), (a & 8) > 0) for (var d = r.parseByte(), f = 0; f < d; f += 1) i.push(a), u += 1;
		if (_m.argument(i.length === l, "Bad flags."), o.length > 0) {
			var p = [], m;
			if (l > 0) {
				for (var h = 0; h < l; h += 1) a = i[h], m = {}, m.onCurve = !!(a & 1), m.lastPointOfContour = o.indexOf(h) >= 0, p.push(m);
				for (var g = 0, _ = 0; _ < l; _ += 1) a = i[_], m = p[_], m.x = ku(r, a, g, 2, 16), g = m.x;
				for (var v = 0, y = 0; y < l; y += 1) a = i[y], m = p[y], m.y = ku(r, a, v, 4, 32), v = m.y;
			}
			e.points = p;
		} else e.points = [];
	} else if (e.numberOfContours === 0) e.points = [];
	else {
		e.isComposite = !0, e.points = [], e.components = [];
		for (var b = !0; b;) {
			i = r.parseUShort();
			var x = {
				glyphIndex: r.parseUShort(),
				xScale: 1,
				scale01: 0,
				scale10: 0,
				yScale: 1,
				dx: 0,
				dy: 0
			};
			(i & 1) > 0 ? (i & 2) > 0 ? (x.dx = r.parseShort(), x.dy = r.parseShort()) : x.matchedPoints = [r.parseUShort(), r.parseUShort()] : (i & 2) > 0 ? (x.dx = r.parseChar(), x.dy = r.parseChar()) : x.matchedPoints = [r.parseByte(), r.parseByte()], (i & 8) > 0 ? x.xScale = x.yScale = r.parseF2Dot14() : (i & 64) > 0 ? (x.xScale = r.parseF2Dot14(), x.yScale = r.parseF2Dot14()) : (i & 128) > 0 && (x.xScale = r.parseF2Dot14(), x.scale01 = r.parseF2Dot14(), x.scale10 = r.parseF2Dot14(), x.yScale = r.parseF2Dot14()), e.components.push(x), b = !!(i & 32);
		}
		if (i & 256) {
			e.instructionLength = r.parseUShort(), e.instructions = [];
			for (var ee = 0; ee < e.instructionLength; ee += 1) e.instructions.push(r.parseByte());
		}
	}
}
function ju(e, t) {
	for (var n = [], r = 0; r < e.length; r += 1) {
		var i = e[r], a = {
			x: t.xScale * i.x + t.scale01 * i.y + t.dx,
			y: t.scale10 * i.x + t.yScale * i.y + t.dy,
			onCurve: i.onCurve,
			lastPointOfContour: i.lastPointOfContour
		};
		n.push(a);
	}
	return n;
}
function Mu(e) {
	for (var t = [], n = [], r = 0; r < e.length; r += 1) {
		var i = e[r];
		n.push(i), i.lastPointOfContour && (t.push(n), n = []);
	}
	return _m.argument(n.length === 0, "There are still points left in the current contour."), t;
}
function Nu(e) {
	var t = new dc();
	if (!e) return t;
	for (var n = Mu(e), r = 0; r < n.length; ++r) {
		var i = n[r], a = null, o = i[i.length - 1], s = i[0];
		if (o.onCurve) t.moveTo(o.x, o.y);
		else if (s.onCurve) t.moveTo(s.x, s.y);
		else {
			var c = {
				x: (o.x + s.x) * .5,
				y: (o.y + s.y) * .5
			};
			t.moveTo(c.x, c.y);
		}
		for (var l = 0; l < i.length; ++l) if (a = o, o = s, s = i[(l + 1) % i.length], o.onCurve) t.lineTo(o.x, o.y);
		else {
			var u = s;
			a.onCurve || ((o.x + a.x) * .5, (o.y + a.y) * .5), s.onCurve || (u = {
				x: (o.x + s.x) * .5,
				y: (o.y + s.y) * .5
			}), t.quadraticCurveTo(o.x, o.y, u.x, u.y);
		}
		t.closePath();
	}
	return t;
}
function Pu(e, t) {
	if (t.isComposite) for (var n = 0; n < t.components.length; n += 1) {
		var r = t.components[n], i = e.get(r.glyphIndex);
		if (i.getPath(), i.points) {
			var a = void 0;
			if (r.matchedPoints === void 0) a = ju(i.points, r);
			else {
				if (r.matchedPoints[0] > t.points.length - 1 || r.matchedPoints[1] > i.points.length - 1) throw Error("Matched points out of range in " + t.name);
				var o = t.points[r.matchedPoints[0]], s = i.points[r.matchedPoints[1]], c = {
					xScale: r.xScale,
					scale01: r.scale01,
					scale10: r.scale10,
					yScale: r.yScale,
					dx: 0,
					dy: 0
				};
				s = ju([s], c)[0], c.dx = o.x - s.x, c.dy = o.y - s.y, a = ju(i.points, c);
			}
			t.points = t.points.concat(a);
		}
	}
	return Nu(t.points);
}
function Fu(e, t, n, r) {
	for (var i = new Fm.GlyphSet(r), a = 0; a < n.length - 1; a += 1) {
		var o = n[a];
		o === n[a + 1] ? i.push(a, Fm.glyphLoader(r, a)) : i.push(a, Fm.ttfGlyphLoader(r, a, Au, e, t + o, Pu));
	}
	return i;
}
function Iu(e, t, n, r) {
	var i = new Fm.GlyphSet(r);
	return r._push = function(a) {
		var o = n[a];
		o === n[a + 1] ? i.push(a, Fm.glyphLoader(r, a)) : i.push(a, Fm.ttfGlyphLoader(r, a, Au, e, t + o, Pu));
	}, i;
}
function Lu(e, t, n, r, i) {
	return i.lowMemory ? Iu(e, t, n, r) : Fu(e, t, n, r);
}
function Ru(e) {
	this.font = e, this.getCommands = function(e) {
		return sh.getPath(e).commands;
	}, this._fpgmState = this._prepState = void 0, this._errorState = 0;
}
function zu(e) {
	return e;
}
function Bu(e) {
	return Math.sign(e) * Math.round(Math.abs(e));
}
function Vu(e) {
	return Math.sign(e) * Math.round(Math.abs(e * 2)) / 2;
}
function Hu(e) {
	return Math.sign(e) * (Math.round(Math.abs(e) + .5) - .5);
}
function Uu(e) {
	return Math.sign(e) * Math.ceil(Math.abs(e));
}
function Wu(e) {
	return Math.sign(e) * Math.floor(Math.abs(e));
}
function Gu(e, t) {
	this.x = e, this.y = t, this.axis = void 0, this.slope = t / e, this.normalSlope = -e / t, Object.freeze(this);
}
function Ku(e, t) {
	var n = Math.sqrt(e * e + t * t);
	return e /= n, t /= n, e === 1 && t === 0 ? ph : e === 0 && t === 1 ? mh : new Gu(e, t);
}
function qu(e, t, n, r) {
	this.x = this.xo = Math.round(e * 64) / 64, this.y = this.yo = Math.round(t * 64) / 64, this.lastPointOfContour = n, this.onCurve = r, this.prevPointOnContour = void 0, this.nextPointOnContour = void 0, this.xTouched = !1, this.yTouched = !1, Object.preventExtensions(this);
}
function Ju(e, t) {
	switch (this.env = e, this.stack = [], this.prog = t, e) {
		case "glyf": this.zp0 = this.zp1 = this.zp2 = 1, this.rp0 = this.rp1 = this.rp2 = 0;
		case "prep": this.fv = this.pv = this.dpv = ph, this.round = Bu;
	}
}
function Yu(e) {
	for (var t = e.tZone = Array(e.gZone.length), n = 0; n < t.length; n++) t[n] = new qu(0, 0);
}
function Xu(e, t) {
	var n = e.prog, r = e.ip, i = 1, a;
	do
		if (a = n[++r], a === 88) i++;
		else if (a === 89) i--;
		else if (a === 64) r += n[r + 1] + 1;
		else if (a === 65) r += 2 * n[r + 1] + 1;
		else if (a >= 176 && a <= 183) r += a - 176 + 1;
		else if (a >= 184 && a <= 191) r += (a - 184 + 1) * 2;
		else if (t && i === 1 && a === 27) break;
	while (i > 0);
	e.ip = r;
}
function Zu(e, t) {
	exports.DEBUG && console.log(t.step, "SVTCA[" + e.axis + "]"), t.fv = t.pv = t.dpv = e;
}
function Qu(e, t) {
	exports.DEBUG && console.log(t.step, "SPVTCA[" + e.axis + "]"), t.pv = t.dpv = e;
}
function $u(e, t) {
	exports.DEBUG && console.log(t.step, "SFVTCA[" + e.axis + "]"), t.fv = e;
}
function ed(e, t) {
	var n = t.stack, r = n.pop(), i = n.pop(), a = t.z2[r], o = t.z1[i];
	exports.DEBUG && console.log("SPVTL[" + e + "]", r, i);
	var s, c;
	e ? (s = a.y - o.y, c = o.x - a.x) : (s = o.x - a.x, c = o.y - a.y), t.pv = t.dpv = Ku(s, c);
}
function td(e, t) {
	var n = t.stack, r = n.pop(), i = n.pop(), a = t.z2[r], o = t.z1[i];
	exports.DEBUG && console.log("SFVTL[" + e + "]", r, i);
	var s, c;
	e ? (s = a.y - o.y, c = o.x - a.x) : (s = o.x - a.x, c = o.y - a.y), t.fv = Ku(s, c);
}
function nd(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "SPVFS[]", n, r), e.pv = e.dpv = Ku(r, n);
}
function rd(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "SPVFS[]", n, r), e.fv = Ku(r, n);
}
function id(e) {
	var t = e.stack, n = e.pv;
	exports.DEBUG && console.log(e.step, "GPV[]"), t.push(n.x * 16384), t.push(n.y * 16384);
}
function ad(e) {
	var t = e.stack, n = e.fv;
	exports.DEBUG && console.log(e.step, "GFV[]"), t.push(n.x * 16384), t.push(n.y * 16384);
}
function od(e) {
	e.fv = e.pv, exports.DEBUG && console.log(e.step, "SFVTPV[]");
}
function sd(e) {
	var t = e.stack, n = t.pop(), r = t.pop(), i = t.pop(), a = t.pop(), o = t.pop(), s = e.z0, c = e.z1, l = s[n], u = s[r], d = c[i], f = c[a], p = e.z2[o];
	exports.DEBUG && console.log("ISECT[], ", n, r, i, a, o);
	var m = l.x, h = l.y, g = u.x, _ = u.y, v = d.x, y = d.y, b = f.x, x = f.y, ee = (m - g) * (y - x) - (h - _) * (v - b), S = m * _ - h * g, C = v * x - y * b;
	p.x = (S * (v - b) - C * (m - g)) / ee, p.y = (S * (y - x) - C * (h - _)) / ee;
}
function cd(e) {
	e.rp0 = e.stack.pop(), exports.DEBUG && console.log(e.step, "SRP0[]", e.rp0);
}
function ld(e) {
	e.rp1 = e.stack.pop(), exports.DEBUG && console.log(e.step, "SRP1[]", e.rp1);
}
function ud(e) {
	e.rp2 = e.stack.pop(), exports.DEBUG && console.log(e.step, "SRP2[]", e.rp2);
}
function dd(e) {
	var t = e.stack.pop();
	switch (exports.DEBUG && console.log(e.step, "SZP0[]", t), e.zp0 = t, t) {
		case 0:
			e.tZone || Yu(e), e.z0 = e.tZone;
			break;
		case 1:
			e.z0 = e.gZone;
			break;
		default: throw Error("Invalid zone pointer");
	}
}
function fd(e) {
	var t = e.stack.pop();
	switch (exports.DEBUG && console.log(e.step, "SZP1[]", t), e.zp1 = t, t) {
		case 0:
			e.tZone || Yu(e), e.z1 = e.tZone;
			break;
		case 1:
			e.z1 = e.gZone;
			break;
		default: throw Error("Invalid zone pointer");
	}
}
function pd(e) {
	var t = e.stack.pop();
	switch (exports.DEBUG && console.log(e.step, "SZP2[]", t), e.zp2 = t, t) {
		case 0:
			e.tZone || Yu(e), e.z2 = e.tZone;
			break;
		case 1:
			e.z2 = e.gZone;
			break;
		default: throw Error("Invalid zone pointer");
	}
}
function md(e) {
	var t = e.stack.pop();
	switch (exports.DEBUG && console.log(e.step, "SZPS[]", t), e.zp0 = e.zp1 = e.zp2 = t, t) {
		case 0:
			e.tZone || Yu(e), e.z0 = e.z1 = e.z2 = e.tZone;
			break;
		case 1:
			e.z0 = e.z1 = e.z2 = e.gZone;
			break;
		default: throw Error("Invalid zone pointer");
	}
}
function hd(e) {
	e.loop = e.stack.pop(), exports.DEBUG && console.log(e.step, "SLOOP[]", e.loop);
}
function gd(e) {
	exports.DEBUG && console.log(e.step, "RTG[]"), e.round = Bu;
}
function _d(e) {
	exports.DEBUG && console.log(e.step, "RTHG[]"), e.round = Hu;
}
function vd(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "SMD[]", t), e.minDis = t / 64;
}
function yd(e) {
	exports.DEBUG && console.log(e.step, "ELSE[]"), Xu(e, !1);
}
function bd(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "JMPR[]", t), e.ip += t - 1;
}
function xd(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "SCVTCI[]", t), e.cvCutIn = t / 64;
}
function Sd(e) {
	var t = e.stack;
	exports.DEBUG && console.log(e.step, "DUP[]"), t.push(t[t.length - 1]);
}
function Cd(e) {
	exports.DEBUG && console.log(e.step, "POP[]"), e.stack.pop();
}
function wd(e) {
	exports.DEBUG && console.log(e.step, "CLEAR[]"), e.stack.length = 0;
}
function Td(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "SWAP[]"), t.push(n), t.push(r);
}
function Ed(e) {
	var t = e.stack;
	exports.DEBUG && console.log(e.step, "DEPTH[]"), t.push(t.length);
}
function Dd(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "LOOPCALL[]", n, r);
	var i = e.ip, a = e.prog;
	e.prog = e.funcs[n];
	for (var o = 0; o < r; o++) lh(e), exports.DEBUG && console.log(++e.step, o + 1 < r ? "next loopcall" : "done loopcall", o);
	e.ip = i, e.prog = a;
}
function Od(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "CALL[]", t);
	var n = e.ip, r = e.prog;
	e.prog = e.funcs[t], lh(e), e.ip = n, e.prog = r, exports.DEBUG && console.log(++e.step, "returning from", t);
}
function kd(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "CINDEX[]", n), t.push(t[t.length - n]);
}
function Ad(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "MINDEX[]", n), t.push(t.splice(t.length - n, 1)[0]);
}
function jd(e) {
	if (e.env !== "fpgm") throw Error("FDEF not allowed here");
	var t = e.stack, n = e.prog, r = e.ip, i = t.pop(), a = r;
	for (exports.DEBUG && console.log(e.step, "FDEF[]", i); n[++r] !== 45;);
	e.ip = r, e.funcs[i] = n.slice(a + 1, r);
}
function Md(e, t) {
	var n = t.stack.pop(), r = t.z0[n], i = t.fv, a = t.pv;
	exports.DEBUG && console.log(t.step, "MDAP[" + e + "]", n);
	var o = a.distance(r, hh);
	e && (o = t.round(o)), i.setRelative(r, hh, o, a), i.touch(r), t.rp0 = t.rp1 = n;
}
function Nd(e, t) {
	var n = t.z2, r = n.length - 2, i, a, o;
	exports.DEBUG && console.log(t.step, "IUP[" + e.axis + "]");
	for (var s = 0; s < r; s++) i = n[s], !e.touched(i) && (a = i.prevTouched(e), a !== i && (o = i.nextTouched(e), a === o && e.setRelative(i, i, e.distance(a, a, !1, !0), e, !0), e.interpolate(i, a, o, e)));
}
function Pd(e, t) {
	for (var n = t.stack, r = e ? t.rp1 : t.rp2, i = (e ? t.z0 : t.z1)[r], a = t.fv, o = t.pv, s = t.loop, c = t.z2; s--;) {
		var l = n.pop(), u = c[l], d = o.distance(i, i, !1, !0);
		a.setRelative(u, u, d, o), a.touch(u), exports.DEBUG && console.log(t.step, (t.loop > 1 ? "loop " + (t.loop - s) + ": " : "") + "SHP[" + (e ? "rp1" : "rp2") + "]", l);
	}
	t.loop = 1;
}
function Fd(e, t) {
	var n = t.stack, r = e ? t.rp1 : t.rp2, i = (e ? t.z0 : t.z1)[r], a = t.fv, o = t.pv, s = n.pop(), c = t.z2[t.contours[s]], l = c;
	exports.DEBUG && console.log(t.step, "SHC[" + e + "]", s);
	var u = o.distance(i, i, !1, !0);
	do
		l !== i && a.setRelative(l, l, u, o), l = l.nextPointOnContour;
	while (l !== c);
}
function Id(e, t) {
	var n = t.stack, r = e ? t.rp1 : t.rp2, i = (e ? t.z0 : t.z1)[r], a = t.fv, o = t.pv, s = n.pop();
	exports.DEBUG && console.log(t.step, "SHZ[" + e + "]", s);
	var c;
	switch (s) {
		case 0:
			c = t.tZone;
			break;
		case 1:
			c = t.gZone;
			break;
		default: throw Error("Invalid zone");
	}
	for (var l, u = o.distance(i, i, !1, !0), d = c.length - 2, f = 0; f < d; f++) l = c[f], a.setRelative(l, l, u, o);
}
function Ld(e) {
	for (var t = e.stack, n = e.loop, r = e.fv, i = t.pop() / 64, a = e.z2; n--;) {
		var o = t.pop(), s = a[o];
		exports.DEBUG && console.log(e.step, (e.loop > 1 ? "loop " + (e.loop - n) + ": " : "") + "SHPIX[]", o, i), r.setRelative(s, s, i), r.touch(s);
	}
	e.loop = 1;
}
function Rd(e) {
	for (var t = e.stack, n = e.rp1, r = e.rp2, i = e.loop, a = e.z0[n], o = e.z1[r], s = e.fv, c = e.dpv, l = e.z2; i--;) {
		var u = t.pop(), d = l[u];
		exports.DEBUG && console.log(e.step, (e.loop > 1 ? "loop " + (e.loop - i) + ": " : "") + "IP[]", u, n, "<->", r), s.interpolate(d, a, o, c), s.touch(d);
	}
	e.loop = 1;
}
function zd(e, t) {
	var n = t.stack, r = n.pop() / 64, i = n.pop(), a = t.z1[i], o = t.z0[t.rp0], s = t.fv, c = t.pv;
	s.setRelative(a, o, r, c), s.touch(a), exports.DEBUG && console.log(t.step, "MSIRP[" + e + "]", r, i), t.rp1 = t.rp0, t.rp2 = i, e && (t.rp0 = i);
}
function Bd(e) {
	for (var t = e.stack, n = e.rp0, r = e.z0[n], i = e.loop, a = e.fv, o = e.pv, s = e.z1; i--;) {
		var c = t.pop(), l = s[c];
		exports.DEBUG && console.log(e.step, (e.loop > 1 ? "loop " + (e.loop - i) + ": " : "") + "ALIGNRP[]", c), a.setRelative(l, r, 0, o), a.touch(l);
	}
	e.loop = 1;
}
function Vd(e) {
	exports.DEBUG && console.log(e.step, "RTDG[]"), e.round = Vu;
}
function Hd(e, t) {
	var n = t.stack, r = n.pop(), i = n.pop(), a = t.z0[i], o = t.fv, s = t.pv, c = t.cvt[r];
	exports.DEBUG && console.log(t.step, "MIAP[" + e + "]", r, "(", c, ")", i);
	var l = s.distance(a, hh);
	e && (Math.abs(l - c) < t.cvCutIn && (l = c), l = t.round(l)), o.setRelative(a, hh, l, s), t.zp0 === 0 && (a.xo = a.x, a.yo = a.y), o.touch(a), t.rp0 = t.rp1 = i;
}
function Ud(e) {
	var t = e.prog, n = e.ip, r = e.stack, i = t[++n];
	exports.DEBUG && console.log(e.step, "NPUSHB[]", i);
	for (var a = 0; a < i; a++) r.push(t[++n]);
	e.ip = n;
}
function Wd(e) {
	var t = e.ip, n = e.prog, r = e.stack, i = n[++t];
	exports.DEBUG && console.log(e.step, "NPUSHW[]", i);
	for (var a = 0; a < i; a++) {
		var o = n[++t] << 8 | n[++t];
		o & 32768 && (o = -((o ^ 65535) + 1)), r.push(o);
	}
	e.ip = t;
}
function Gd(e) {
	var t = e.stack, n = e.store;
	n ||= e.store = [];
	var r = t.pop(), i = t.pop();
	exports.DEBUG && console.log(e.step, "WS", r, i), n[i] = r;
}
function Kd(e) {
	var t = e.stack, n = e.store, r = t.pop();
	exports.DEBUG && console.log(e.step, "RS", r);
	var i = n && n[r] || 0;
	t.push(i);
}
function qd(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "WCVTP", n, r), e.cvt[r] = n / 64;
}
function Jd(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "RCVT", n), t.push(e.cvt[n] * 64);
}
function Yd(e, t) {
	var n = t.stack, r = n.pop(), i = t.z2[r];
	exports.DEBUG && console.log(t.step, "GC[" + e + "]", r), n.push(t.dpv.distance(i, hh, e, !1) * 64);
}
function Xd(e, t) {
	var n = t.stack, r = n.pop(), i = n.pop(), a = t.z1[r], o = t.z0[i], s = t.dpv.distance(o, a, e, e);
	exports.DEBUG && console.log(t.step, "MD[" + e + "]", r, i, "->", s), t.stack.push(Math.round(s * 64));
}
function Zd(e) {
	exports.DEBUG && console.log(e.step, "MPPEM[]"), e.stack.push(e.ppem);
}
function Qd(e) {
	exports.DEBUG && console.log(e.step, "FLIPON[]"), e.autoFlip = !0;
}
function $d(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "LT[]", n, r), t.push(r < n ? 1 : 0);
}
function ef(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "LTEQ[]", n, r), t.push(r <= n ? 1 : 0);
}
function tf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "GT[]", n, r), t.push(r > n ? 1 : 0);
}
function nf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "GTEQ[]", n, r), t.push(r >= n ? 1 : 0);
}
function rf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "EQ[]", n, r), t.push(n === r ? 1 : 0);
}
function af(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "NEQ[]", n, r), t.push(n === r ? 0 : 1);
}
function of(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "ODD[]", n), t.push(Math.trunc(n) % 2 ? 1 : 0);
}
function sf(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "EVEN[]", n), t.push(Math.trunc(n) % 2 ? 0 : 1);
}
function cf(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "IF[]", t), t || (Xu(e, !0), exports.DEBUG && console.log(e.step, "EIF[]"));
}
function lf(e) {
	exports.DEBUG && console.log(e.step, "EIF[]");
}
function uf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "AND[]", n, r), t.push(n && r ? 1 : 0);
}
function df(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "OR[]", n, r), t.push(n || r ? 1 : 0);
}
function ff(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "NOT[]", n), t.push(n ? 0 : 1);
}
function pf(e, t) {
	var n = t.stack, r = n.pop(), i = t.fv, a = t.pv, o = t.ppem, s = t.deltaBase + (e - 1) * 16, c = t.deltaShift, l = t.z0;
	exports.DEBUG && console.log(t.step, "DELTAP[" + e + "]", r, n);
	for (var u = 0; u < r; u++) {
		var d = n.pop(), f = n.pop();
		if (s + ((f & 240) >> 4) === o) {
			var p = (f & 15) - 8;
			p >= 0 && p++, exports.DEBUG && console.log(t.step, "DELTAPFIX", d, "by", p * c);
			var m = l[d];
			i.setRelative(m, m, p * c, a);
		}
	}
}
function mf(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "SDB[]", t), e.deltaBase = t;
}
function hf(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "SDS[]", t), e.deltaShift = .5 ** t;
}
function gf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "ADD[]", n, r), t.push(r + n);
}
function _f(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "SUB[]", n, r), t.push(r - n);
}
function vf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "DIV[]", n, r), t.push(r * 64 / n);
}
function yf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "MUL[]", n, r), t.push(r * n / 64);
}
function bf(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "ABS[]", n), t.push(Math.abs(n));
}
function xf(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "NEG[]", n), t.push(-n);
}
function Sf(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "FLOOR[]", n), t.push(Math.floor(n / 64) * 64);
}
function Cf(e) {
	var t = e.stack, n = t.pop();
	exports.DEBUG && console.log(e.step, "CEILING[]", n), t.push(Math.ceil(n / 64) * 64);
}
function wf(e, t) {
	var n = t.stack, r = n.pop();
	exports.DEBUG && console.log(t.step, "ROUND[]"), n.push(t.round(r / 64) * 64);
}
function Tf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "WCVTF[]", n, r), e.cvt[r] = n * e.ppem / e.font.unitsPerEm;
}
function Ef(e, t) {
	var n = t.stack, r = n.pop(), i = t.ppem, a = t.deltaBase + (e - 1) * 16, o = t.deltaShift;
	exports.DEBUG && console.log(t.step, "DELTAC[" + e + "]", r, n);
	for (var s = 0; s < r; s++) {
		var c = n.pop(), l = n.pop();
		if (a + ((l & 240) >> 4) === i) {
			var u = (l & 15) - 8;
			u >= 0 && u++;
			var d = u * o;
			exports.DEBUG && console.log(t.step, "DELTACFIX", c, "by", d), t.cvt[c] += d;
		}
	}
}
function Df(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "SROUND[]", t), e.round = fh;
	var n;
	switch (t & 192) {
		case 0:
			n = .5;
			break;
		case 64:
			n = 1;
			break;
		case 128:
			n = 2;
			break;
		default: throw Error("invalid SROUND value");
	}
	switch (e.srPeriod = n, t & 48) {
		case 0:
			e.srPhase = 0;
			break;
		case 16:
			e.srPhase = .25 * n;
			break;
		case 32:
			e.srPhase = .5 * n;
			break;
		case 48:
			e.srPhase = .75 * n;
			break;
		default: throw Error("invalid SROUND value");
	}
	t &= 15, t === 0 ? e.srThreshold = 0 : e.srThreshold = (t / 8 - .5) * n;
}
function Of(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "S45ROUND[]", t), e.round = fh;
	var n;
	switch (t & 192) {
		case 0:
			n = Math.sqrt(2) / 2;
			break;
		case 64:
			n = Math.sqrt(2);
			break;
		case 128:
			n = 2 * Math.sqrt(2);
			break;
		default: throw Error("invalid S45ROUND value");
	}
	switch (e.srPeriod = n, t & 48) {
		case 0:
			e.srPhase = 0;
			break;
		case 16:
			e.srPhase = .25 * n;
			break;
		case 32:
			e.srPhase = .5 * n;
			break;
		case 48:
			e.srPhase = .75 * n;
			break;
		default: throw Error("invalid S45ROUND value");
	}
	t &= 15, t === 0 ? e.srThreshold = 0 : e.srThreshold = (t / 8 - .5) * n;
}
function kf(e) {
	exports.DEBUG && console.log(e.step, "ROFF[]"), e.round = zu;
}
function Af(e) {
	exports.DEBUG && console.log(e.step, "RUTG[]"), e.round = Uu;
}
function jf(e) {
	exports.DEBUG && console.log(e.step, "RDTG[]"), e.round = Wu;
}
function Mf(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "SCANCTRL[]", t);
}
function Nf(e, t) {
	var n = t.stack, r = n.pop(), i = n.pop(), a = t.z2[r], o = t.z1[i];
	exports.DEBUG && console.log(t.step, "SDPVTL[" + e + "]", r, i);
	var s, c;
	e ? (s = a.y - o.y, c = o.x - a.x) : (s = o.x - a.x, c = o.y - a.y), t.dpv = Ku(s, c);
}
function Pf(e) {
	var t = e.stack, n = t.pop(), r = 0;
	exports.DEBUG && console.log(e.step, "GETINFO[]", n), n & 1 && (r = 35), n & 32 && (r |= 4096), t.push(r);
}
function Ff(e) {
	var t = e.stack, n = t.pop(), r = t.pop(), i = t.pop();
	exports.DEBUG && console.log(e.step, "ROLL[]"), t.push(r), t.push(n), t.push(i);
}
function If(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "MAX[]", n, r), t.push(Math.max(r, n));
}
function Lf(e) {
	var t = e.stack, n = t.pop(), r = t.pop();
	exports.DEBUG && console.log(e.step, "MIN[]", n, r), t.push(Math.min(r, n));
}
function Rf(e) {
	var t = e.stack.pop();
	exports.DEBUG && console.log(e.step, "SCANTYPE[]", t);
}
function zf(e) {
	var t = e.stack.pop(), n = e.stack.pop();
	switch (exports.DEBUG && console.log(e.step, "INSTCTRL[]", t, n), t) {
		case 1:
			e.inhibitGridFit = !!n;
			return;
		case 2:
			e.ignoreCvt = !!n;
			return;
		default: throw Error("invalid INSTCTRL[] selector");
	}
}
function Bf(e, t) {
	var n = t.stack, r = t.prog, i = t.ip;
	exports.DEBUG && console.log(t.step, "PUSHB[" + e + "]");
	for (var a = 0; a < e; a++) n.push(r[++i]);
	t.ip = i;
}
function Vf(e, t) {
	var n = t.ip, r = t.prog, i = t.stack;
	exports.DEBUG && console.log(t.ip, "PUSHW[" + e + "]");
	for (var a = 0; a < e; a++) {
		var o = r[++n] << 8 | r[++n];
		o & 32768 && (o = -((o ^ 65535) + 1)), i.push(o);
	}
	t.ip = n;
}
function q(e, t, n, r, i, a) {
	var o = a.stack, s = e && o.pop(), c = o.pop(), l = a.rp0, u = a.z0[l], d = a.z1[c], f = a.minDis, p = a.fv, m = a.dpv, h, g = h = m.distance(d, u, !0, !0), _ = g >= 0 ? 1 : -1, v;
	g = Math.abs(g), e && (v = a.cvt[s], r && Math.abs(g - v) < a.cvCutIn && (g = v)), n && g < f && (g = f), r && (g = a.round(g)), p.setRelative(d, u, _ * g, m), p.touch(d), exports.DEBUG && console.log(a.step, (e ? "MIRP[" : "MDRP[") + (t ? "M" : "m") + (n ? ">" : "_") + (r ? "R" : "_") + (i === 0 ? "Gr" : i === 1 ? "Bl" : i === 2 ? "Wh" : "") + "]", e ? s + "(" + a.cvt[s] + "," + v + ")" : "", c, "(d =", h, "->", _ * g, ")"), a.rp1 = a.rp0, a.rp2 = c, t && (a.rp0 = c);
}
function Hf(e) {
	this.char = e, this.state = {}, this.activeState = null;
}
function Uf(e, t, n) {
	this.contextName = n, this.startIndex = e, this.endOffset = t;
}
function Wf(e, t, n) {
	this.contextName = e, this.openRange = null, this.ranges = [], this.checkStart = t, this.checkEnd = n;
}
function Gf(e, t) {
	this.context = e, this.index = t, this.length = e.length, this.current = e[t], this.backtrack = e.slice(0, t), this.lookahead = e.slice(t + 1);
}
function Kf(e) {
	this.eventId = e, this.subscribers = [];
}
function qf(e) {
	var t = this, n = [
		"start",
		"end",
		"next",
		"newToken",
		"contextStart",
		"contextEnd",
		"insertToken",
		"removeToken",
		"removeRange",
		"replaceToken",
		"replaceRange",
		"composeRUD",
		"updateContextsRanges"
	];
	n.forEach(function(e) {
		Object.defineProperty(t.events, e, { value: new Kf(e) });
	}), e && n.forEach(function(n) {
		var r = e[n];
		typeof r == "function" && t.events[n].subscribe(r);
	}), [
		"insertToken",
		"removeToken",
		"removeRange",
		"replaceToken",
		"replaceRange",
		"composeRUD"
	].forEach(function(e) {
		t.events[e].subscribe(t.updateContextsRanges);
	});
}
function Jf(e) {
	this.tokens = [], this.registeredContexts = {}, this.contextCheckers = [], this.events = {}, this.registeredModifiers = [], qf.call(this, e);
}
function Yf(e) {
	return /[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e);
}
function Xf(e) {
	return /[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e);
}
function Zf(e) {
	return /[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e);
}
function Qf(e) {
	return /[A-z]/.test(e);
}
function $f(e) {
	return /\s/.test(e);
}
function ep(e) {
	this.font = e, this.features = {};
}
function tp(e) {
	this.id = e.id, this.tag = e.tag, this.substitution = e.substitution;
}
function np(e, t) {
	if (!e) return -1;
	switch (t.format) {
		case 1: return t.glyphs.indexOf(e);
		case 2:
			for (var n = t.ranges, r = 0; r < n.length; r++) {
				var i = n[r];
				if (e >= i.start && e <= i.end) {
					var a = e - i.start;
					return i.index + a;
				}
			}
			break;
		default: return -1;
	}
	return -1;
}
function rp(e, t) {
	return np(e, t.coverage) === -1 ? null : e + t.deltaGlyphId;
}
function ip(e, t) {
	var n = np(e, t.coverage);
	return n === -1 ? null : t.substitute[n];
}
function ap(e, t) {
	for (var n = [], r = 0; r < e.length; r++) {
		var i = e[r], a = t.current;
		a = Array.isArray(a) ? a[0] : a;
		var o = np(a, i);
		o !== -1 && n.push(o);
	}
	return n.length === e.length ? n : -1;
}
function op(e, t) {
	var n = t.inputCoverage.length + t.lookaheadCoverage.length + t.backtrackCoverage.length;
	if (e.context.length < n) return [];
	var r = ap(t.inputCoverage, e);
	if (r === -1) return [];
	var i = t.inputCoverage.length - 1;
	if (e.lookahead.length < t.lookaheadCoverage.length) return [];
	for (var a = e.lookahead.slice(i); a.length && Zf(a[0].char);) a.shift();
	var o = new Gf(a, 0), s = ap(t.lookaheadCoverage, o), c = [].concat(e.backtrack);
	for (c.reverse(); c.length && Zf(c[0].char);) c.shift();
	if (c.length < t.backtrackCoverage.length) return [];
	var l = new Gf(c, 0), u = ap(t.backtrackCoverage, l), d = r.length === t.inputCoverage.length && s.length === t.lookaheadCoverage.length && u.length === t.backtrackCoverage.length, f = [];
	if (d) for (var p = 0; p < t.lookupRecords.length; p++) for (var m = t.lookupRecords[p].lookupListIndex, h = this.getLookupByIndex(m), g = 0; g < h.subtables.length; g++) {
		var _ = h.subtables[g], v = this.getLookupMethod(h, _);
		if (this.getSubstitutionType(h, _) === "12") for (var y = 0; y < r.length; y++) {
			var b = v(e.get(y));
			b && f.push(b);
		}
	}
	return f;
}
function sp(e, t) {
	var n = e.current, r = np(n, t.coverage);
	if (r === -1) return null;
	for (var i, a = t.ligatureSets[r], o = 0; o < a.length; o++) {
		i = a[o];
		for (var s = 0; s < i.components.length && e.lookahead[s] === i.components[s]; s++) if (s === i.components.length - 1) return i;
	}
	return null;
}
function cp(e, t) {
	var n = np(e, t.coverage);
	return n === -1 ? null : t.sequences[n];
}
function lp(e) {
	var t = e.current, n = e.get(-1);
	return n === null && Yf(t) || !Yf(n) && Yf(t);
}
function up(e) {
	var t = e.get(1);
	return t === null || !Yf(t);
}
function dp(e) {
	var t = e.current, n = e.get(-1);
	return (Yf(t) || Zf(t)) && !Yf(n);
}
function fp(e) {
	var t = e.get(1);
	switch (!0) {
		case t === null: return !0;
		case !Yf(t) && !Zf(t):
			var n = $f(t);
			if (!n) return !0;
			if (n) {
				var r = !1;
				if (r = e.lookahead.some(function(e) {
					return Yf(e) || Zf(e);
				}), !r) return !0;
			}
			break;
		default: return !1;
	}
}
function pp(e, t, n) {
	t[n].setState(e.tag, e.substitution);
}
function mp(e, t, n) {
	t[n].setState(e.tag, e.substitution);
}
function hp(e, t, n) {
	e.substitution.forEach(function(r, i) {
		t[n + i].setState(e.tag, r);
	});
}
function gp(e, t, n) {
	var r = t[n];
	r.setState(e.tag, e.substitution.ligGlyph);
	for (var i = e.substitution.components.length, a = 0; a < i; a++) r = t[n + a + 1], r.setState("deleted", !0);
}
function _p(e, t, n) {
	e instanceof tp && yh[e.id] && yh[e.id](e, t, n);
}
function vp(e) {
	for (var t = [].concat(e.backtrack), n = t.length - 1; n >= 0; n--) {
		var r = t[n], i = Xf(r), a = Zf(r);
		if (!i && !a) return !0;
		if (i) return !1;
	}
	return !1;
}
function yp(e) {
	if (Xf(e.current)) return !1;
	for (var t = 0; t < e.lookahead.length; t++) {
		var n = e.lookahead[t];
		if (!Zf(n)) return !0;
	}
	return !1;
}
function bp(e) {
	var t = this, n = "arab", r = this.featuresTags[n], i = this.tokenizer.getRangeTokens(e);
	if (i.length !== 1) {
		var a = new Gf(i.map(function(e) {
			return e.getState("glyphIndex");
		}), 0), o = new Gf(i.map(function(e) {
			return e.char;
		}), 0);
		i.forEach(function(e, s) {
			if (!Zf(e.char)) {
				a.setCurrentIndex(s), o.setCurrentIndex(s);
				var c = 0;
				vp(o) && (c |= 1), yp(o) && (c |= 2);
				var l;
				switch (c) {
					case 1:
						l = "fina";
						break;
					case 2:
						l = "init";
						break;
					case 3:
						l = "medi";
						break;
				}
				if (r.indexOf(l) !== -1) {
					var u = t.query.lookupFeature({
						tag: l,
						script: n,
						contextParams: a
					});
					if (u instanceof Error) return console.info(u.message);
					u.forEach(function(e, t) {
						e instanceof tp && (_p(e, i, t), a.context[t] = e.substitution);
					});
				}
			}
		});
	}
}
function xp(e, t) {
	return new Gf(e.map(function(e) {
		return e.activeState.value;
	}), t || 0);
}
function Sp(e) {
	var t = this, n = "arab", r = this.tokenizer.getRangeTokens(e), i = xp(r);
	i.context.forEach(function(e, a) {
		i.setCurrentIndex(a);
		var o = t.query.lookupFeature({
			tag: "rlig",
			script: n,
			contextParams: i
		});
		o.length && (o.forEach(function(e) {
			return _p(e, r, a);
		}), i = xp(r));
	});
}
function Cp(e) {
	var t = e.current, n = e.get(-1);
	return n === null && Qf(t) || !Qf(n) && Qf(t);
}
function wp(e) {
	var t = e.get(1);
	return t === null || !Qf(t);
}
function Tp(e, t) {
	return new Gf(e.map(function(e) {
		return e.activeState.value;
	}), t || 0);
}
function Ep(e) {
	var t = this, n = "latn", r = this.tokenizer.getRangeTokens(e), i = Tp(r);
	i.context.forEach(function(e, a) {
		i.setCurrentIndex(a);
		var o = t.query.lookupFeature({
			tag: "liga",
			script: n,
			contextParams: i
		});
		o.length && (o.forEach(function(e) {
			return _p(e, r, a);
		}), i = Tp(r));
	});
}
function Dp(e) {
	this.baseDir = e || "ltr", this.tokenizer = new Jf(), this.featuresTags = {};
}
function Op(e) {
	var t = this.contextChecks[e + "Check"];
	return this.tokenizer.registerContextChecker(e, t.startCheck, t.endCheck);
}
function kp() {
	return Op.call(this, "latinWord"), Op.call(this, "arabicWord"), Op.call(this, "arabicSentence"), this.tokenizer.tokenize(this.text);
}
function Ap() {
	var e = this;
	this.tokenizer.getContextRanges("arabicSentence").forEach(function(t) {
		var n = e.tokenizer.getRangeTokens(t);
		e.tokenizer.replaceRange(t.startIndex, t.endOffset, n.reverse());
	});
}
function jp() {
	if (this.tokenizer.registeredModifiers.indexOf("glyphIndex") === -1) throw Error("glyphIndex modifier is required to apply arabic presentation features.");
}
function Mp() {
	var e = this;
	this.featuresTags.hasOwnProperty("arab") && (jp.call(this), this.tokenizer.getContextRanges("arabicWord").forEach(function(t) {
		bp.call(e, t);
	}));
}
function Np() {
	var e = this, t = "arab";
	this.featuresTags.hasOwnProperty(t) && this.featuresTags[t].indexOf("rlig") !== -1 && (jp.call(this), this.tokenizer.getContextRanges("arabicWord").forEach(function(t) {
		Sp.call(e, t);
	}));
}
function Pp() {
	var e = this, t = "latn";
	this.featuresTags.hasOwnProperty(t) && this.featuresTags[t].indexOf("liga") !== -1 && (jp.call(this), this.tokenizer.getContextRanges("latinWord").forEach(function(t) {
		Ep.call(e, t);
	}));
}
function Fp(e) {
	e ||= {}, e.tables = e.tables || {}, e.empty || (Ou(e.familyName, "When creating a new Font object, familyName is required."), Ou(e.styleName, "When creating a new Font object, styleName is required."), Ou(e.unitsPerEm, "When creating a new Font object, unitsPerEm is required."), Ou(e.ascender, "When creating a new Font object, ascender is required."), Ou(e.descender <= 0, "When creating a new Font object, negative descender value is required."), this.names = {
		fontFamily: { en: e.familyName || " " },
		fontSubfamily: { en: e.styleName || " " },
		fullName: { en: e.fullName || e.familyName + " " + e.styleName },
		postScriptName: { en: e.postScriptName || (e.familyName + e.styleName).replace(/\s/g, "") },
		designer: { en: e.designer || " " },
		designerURL: { en: e.designerURL || " " },
		manufacturer: { en: e.manufacturer || " " },
		manufacturerURL: { en: e.manufacturerURL || " " },
		license: { en: e.license || " " },
		licenseURL: { en: e.licenseURL || " " },
		version: { en: e.version || "Version 0.1" },
		description: { en: e.description || " " },
		copyright: { en: e.copyright || " " },
		trademark: { en: e.trademark || " " }
	}, this.unitsPerEm = e.unitsPerEm || 1e3, this.ascender = e.ascender, this.descender = e.descender, this.createdTimestamp = e.createdTimestamp, this.tables = Object.assign(e.tables, { os2: Object.assign({
		usWeightClass: e.weightClass || this.usWeightClasses.MEDIUM,
		usWidthClass: e.widthClass || this.usWidthClasses.MEDIUM,
		fsSelection: e.fsSelection || this.fsSelectionValues.REGULAR
	}, e.tables.os2) })), this.supported = !0, this.glyphs = new Fm.GlyphSet(this, e.glyphs || []), this.encoding = new Hc(this), this.position = new xu(this), this.substitution = new Su(this), this.tables = this.tables || {}, this._push = null, this._hmtxTableData = {}, Object.defineProperty(this, "hinting", { get: function() {
		if (this._hinting) return this._hinting;
		if (this.outlinesFormat === "truetype") return this._hinting = new Ru(this);
	} });
}
function Ip(e, t) {
	var n = JSON.stringify(e), r = 256;
	for (var i in t) {
		var a = parseInt(i);
		if (!(!a || a < 256)) {
			if (JSON.stringify(t[i]) === n) return a;
			r <= a && (r = a + 1);
		}
	}
	return t[r] = e, r;
}
function Lp(e, t, n) {
	var r = Ip(t.name, n);
	return [
		{
			name: "tag_" + e,
			type: "TAG",
			value: t.tag
		},
		{
			name: "minValue_" + e,
			type: "FIXED",
			value: t.minValue << 16
		},
		{
			name: "defaultValue_" + e,
			type: "FIXED",
			value: t.defaultValue << 16
		},
		{
			name: "maxValue_" + e,
			type: "FIXED",
			value: t.maxValue << 16
		},
		{
			name: "flags_" + e,
			type: "USHORT",
			value: 0
		},
		{
			name: "nameID_" + e,
			type: "USHORT",
			value: r
		}
	];
}
function Rp(e, t, n) {
	var r = {}, i = new X.Parser(e, t);
	return r.tag = i.parseTag(), r.minValue = i.parseFixed(), r.defaultValue = i.parseFixed(), r.maxValue = i.parseFixed(), i.skip("uShort", 1), r.name = n[i.parseUShort()] || {}, r;
}
function zp(e, t, n, r) {
	for (var i = Ip(t.name, r), a = [{
		name: "nameID_" + e,
		type: "USHORT",
		value: i
	}, {
		name: "flags_" + e,
		type: "USHORT",
		value: 0
	}], o = 0; o < n.length; ++o) {
		var s = n[o].tag;
		a.push({
			name: "axis_" + e + " " + s,
			type: "FIXED",
			value: t.coordinates[s] << 16
		});
	}
	return a;
}
function Bp(e, t, n, r) {
	var i = {}, a = new X.Parser(e, t);
	i.name = r[a.parseUShort()] || {}, a.skip("uShort", 1), i.coordinates = {};
	for (var o = 0; o < n.length; ++o) i.coordinates[n[o].tag] = a.parseFixed();
	return i;
}
function Vp(e, t) {
	var n = new Y.Table("fvar", [
		{
			name: "version",
			type: "ULONG",
			value: 65536
		},
		{
			name: "offsetToData",
			type: "USHORT",
			value: 0
		},
		{
			name: "countSizePairs",
			type: "USHORT",
			value: 2
		},
		{
			name: "axisCount",
			type: "USHORT",
			value: e.axes.length
		},
		{
			name: "axisSize",
			type: "USHORT",
			value: 20
		},
		{
			name: "instanceCount",
			type: "USHORT",
			value: e.instances.length
		},
		{
			name: "instanceSize",
			type: "USHORT",
			value: 4 + e.axes.length * 4
		}
	]);
	n.offsetToData = n.sizeOf();
	for (var r = 0; r < e.axes.length; r++) n.fields = n.fields.concat(Lp(r, e.axes[r], t));
	for (var i = 0; i < e.instances.length; i++) n.fields = n.fields.concat(zp(i, e.instances[i], e.axes, t));
	return n;
}
function Hp(e, t, n) {
	var r = new X.Parser(e, t), i = r.parseULong();
	_m.argument(i === 65536, "Unsupported fvar table version.");
	var a = r.parseOffset16();
	r.skip("uShort", 1);
	for (var o = r.parseUShort(), s = r.parseUShort(), c = r.parseUShort(), l = r.parseUShort(), u = [], d = 0; d < o; d++) u.push(Rp(e, t + a + d * s, n));
	for (var f = [], p = t + a + o * s, m = 0; m < c; m++) f.push(Bp(e, p + m * l, u, n));
	return {
		axes: u,
		instances: f
	};
}
function Up(e, t) {
	t ||= 0;
	var n = new G(e, t), r = n.parseVersion(1);
	_m.argument(r === 1 || r === 1.2 || r === 1.3, "Unsupported GDEF table version.");
	var i = {
		version: r,
		classDef: n.parsePointer(G.classDef),
		attachList: n.parsePointer(Sh),
		ligCaretList: n.parsePointer(wh),
		markAttachClassDef: n.parsePointer(G.classDef)
	};
	return r >= 1.2 && (i.markGlyphSets = n.parsePointer(Th)), i;
}
function Wp(e, t) {
	t ||= 0;
	var n = new G(e, t), r = n.parseVersion(1);
	return _m.argument(r === 1 || r === 1.1, "Unsupported GPOS table version " + r), r === 1 ? {
		version: r,
		scripts: n.parseScriptList(),
		features: n.parseFeatureList(),
		lookups: n.parseLookupList(Dh)
	} : {
		version: r,
		scripts: n.parseScriptList(),
		features: n.parseFeatureList(),
		lookups: n.parseLookupList(Dh),
		variations: n.parseFeatureVariationsList()
	};
}
function Gp(e) {
	return new Y.Table("GPOS", [
		{
			name: "version",
			type: "ULONG",
			value: 65536
		},
		{
			name: "scripts",
			type: "TABLE",
			value: new Y.ScriptList(e.scripts)
		},
		{
			name: "features",
			type: "TABLE",
			value: new Y.FeatureList(e.features)
		},
		{
			name: "lookups",
			type: "TABLE",
			value: new Y.LookupList(e.lookups, Oh)
		}
	]);
}
function Kp(e) {
	var t = {};
	e.skip("uShort");
	var n = e.parseUShort();
	_m.argument(n === 0, "Unsupported kern sub-table version."), e.skip("uShort", 2);
	var r = e.parseUShort();
	e.skip("uShort", 3);
	for (var i = 0; i < r; i += 1) {
		var a = e.parseUShort(), o = e.parseUShort(), s = e.parseShort();
		t[a + "," + o] = s;
	}
	return t;
}
function qp(e) {
	var t = {};
	e.skip("uShort"), e.parseULong() > 1 && console.warn("Only the first kern subtable is supported."), e.skip("uLong");
	var n = e.parseUShort() & 255;
	if (e.skip("uShort"), n === 0) {
		var r = e.parseUShort();
		e.skip("uShort", 3);
		for (var i = 0; i < r; i += 1) {
			var a = e.parseUShort(), o = e.parseUShort(), s = e.parseShort();
			t[a + "," + o] = s;
		}
	}
	return t;
}
function Jp(e, t) {
	var n = new X.Parser(e, t), r = n.parseUShort();
	if (r === 0) return Kp(n);
	if (r === 1) return qp(n);
	throw Error("Unsupported kern table version (" + r + ").");
}
function Yp(e, t, n, r) {
	for (var i = new X.Parser(e, t), a = r ? i.parseUShort : i.parseULong, o = [], s = 0; s < n + 1; s += 1) {
		var c = a.call(i);
		r && (c *= 2), o.push(c);
	}
	return o;
}
function Xp(e, t) {
	Ys().readFile(e, function(e, n) {
		if (e) return t(e.message);
		t(null, Eu(n));
	});
}
function Zp(e, t) {
	var n = new XMLHttpRequest();
	n.open("get", e, !0), n.responseType = "arraybuffer", n.onload = function() {
		return n.response ? t(null, n.response) : t("Font could not be loaded: " + n.statusText);
	}, n.onerror = function() {
		t("Font could not be loaded");
	}, n.send();
}
function Qp(e, t) {
	for (var n = [], r = 12, i = 0; i < t; i += 1) {
		var a = X.getTag(e, r), o = X.getULong(e, r + 4), s = X.getULong(e, r + 8), c = X.getULong(e, r + 12);
		n.push({
			tag: a,
			checksum: o,
			offset: s,
			length: c,
			compression: !1
		}), r += 16;
	}
	return n;
}
function $p(e, t) {
	for (var n = [], r = 44, i = 0; i < t; i += 1) {
		var a = X.getTag(e, r), o = X.getULong(e, r + 4), s = X.getULong(e, r + 8), c = X.getULong(e, r + 12), l = void 0;
		l = s < c ? "WOFF" : !1, n.push({
			tag: a,
			offset: o,
			compression: l,
			compressedLength: s,
			length: c
		}), r += 20;
	}
	return n;
}
function em(e, t) {
	if (t.compression === "WOFF") {
		var n = new Uint8Array(e.buffer, t.offset + 2, t.compressedLength - 2), r = new Uint8Array(t.length);
		if (gm(n, r), r.byteLength !== t.length) throw Error("Decompression error: " + t.tag + " decompressed length doesn't match recorded length");
		return {
			data: new DataView(r.buffer, 0),
			offset: 0
		};
	} else return {
		data: e,
		offset: t.offset
	};
}
function tm(e, t) {
	t ??= {};
	var n, r, i = new Fp({ empty: !0 }), a = new DataView(e, 0), o, s = [], c = X.getTag(a, 0);
	if (c === "\0\0\0" || c === "true" || c === "typ1") i.outlinesFormat = "truetype", o = X.getUShort(a, 4), s = Qp(a, o);
	else if (c === "OTTO") i.outlinesFormat = "cff", o = X.getUShort(a, 4), s = Qp(a, o);
	else if (c === "wOFF") {
		var l = X.getTag(a, 4);
		if (l === "\0\0\0") i.outlinesFormat = "truetype";
		else if (l === "OTTO") i.outlinesFormat = "cff";
		else throw Error("Unsupported OpenType flavor " + c);
		o = X.getUShort(a, 12), s = $p(a, o);
	} else throw Error("Unsupported OpenType signature " + c);
	for (var u, d, f, p, m, h, g, _, v, y, b, x, ee = 0; ee < o; ee += 1) {
		var S = s[ee], C = void 0;
		switch (S.tag) {
			case "cmap":
				C = em(a, S), i.tables.cmap = km.parse(C.data, C.offset), i.encoding = new Uc(i.tables.cmap);
				break;
			case "cvt ":
				C = em(a, S), x = new X.Parser(C.data, C.offset), i.tables.cvt = x.parseShortList(S.length / 2);
				break;
			case "fvar":
				d = S;
				break;
			case "fpgm":
				C = em(a, S), x = new X.Parser(C.data, C.offset), i.tables.fpgm = x.parseByteList(S.length);
				break;
			case "head":
				C = em(a, S), i.tables.head = zm.parse(C.data, C.offset), i.unitsPerEm = i.tables.head.unitsPerEm, n = i.tables.head.indexToLocFormat;
				break;
			case "hhea":
				C = em(a, S), i.tables.hhea = Bm.parse(C.data, C.offset), i.ascender = i.tables.hhea.ascender, i.descender = i.tables.hhea.descender, i.numberOfHMetrics = i.tables.hhea.numberOfHMetrics;
				break;
			case "hmtx":
				g = S;
				break;
			case "ltag":
				C = em(a, S), r = Hm.parse(C.data, C.offset);
				break;
			case "maxp":
				C = em(a, S), i.tables.maxp = Um.parse(C.data, C.offset), i.numGlyphs = i.tables.maxp.numGlyphs;
				break;
			case "name":
				y = S;
				break;
			case "OS/2":
				C = em(a, S), i.tables.os2 = $m.parse(C.data, C.offset);
				break;
			case "post":
				C = em(a, S), i.tables.post = eh.parse(C.data, C.offset), i.glyphNames = new K(i.tables.post);
				break;
			case "prep":
				C = em(a, S), x = new X.Parser(C.data, C.offset), i.tables.prep = x.parseByteList(S.length);
				break;
			case "glyf":
				f = S;
				break;
			case "loca":
				v = S;
				break;
			case "CFF ":
				u = S;
				break;
			case "kern":
				_ = S;
				break;
			case "GDEF":
				p = S;
				break;
			case "GPOS":
				m = S;
				break;
			case "GSUB":
				h = S;
				break;
			case "meta":
				b = S;
				break;
		}
	}
	var te = em(a, y);
	if (i.tables.name = Zm.parse(te.data, te.offset, r), i.names = i.tables.name, f && v) {
		var ne = n === 0, w = em(a, v), T = jh.parse(w.data, w.offset, i.numGlyphs, ne), E = em(a, f);
		i.glyphs = sh.parse(E.data, E.offset, T, i, t);
	} else if (u) {
		var D = em(a, u);
		Rm.parse(D.data, D.offset, i, t);
	} else throw Error("Font doesn't contain TrueType or CFF outlines.");
	var re = em(a, g);
	if (Vm.parse(i, re.data, re.offset, i.numberOfHMetrics, i.numGlyphs, i.glyphs, t), qc(i, t), _) {
		var O = em(a, _);
		i.kerningPairs = Ah.parse(O.data, O.offset);
	} else i.kerningPairs = {};
	if (p) {
		var k = em(a, p);
		i.tables.gdef = Eh.parse(k.data, k.offset);
	}
	if (m) {
		var A = em(a, m);
		i.tables.gpos = kh.parse(A.data, A.offset), i.position.init();
	}
	if (h) {
		var ie = em(a, h);
		i.tables.gsub = ih.parse(ie.data, ie.offset);
	}
	if (d) {
		var j = em(a, d);
		i.tables.fvar = xh.parse(j.data, j.offset, i.names);
	}
	if (b) {
		var ae = em(a, b);
		i.tables.meta = ah.parse(ae.data, ae.offset), i.metas = i.tables.meta;
	}
	return i;
}
function nm(e, t, n) {
	n ??= {};
	var r = typeof window > "u" && !n.isUrl ? Xp : Zp;
	return new Promise(function(i, a) {
		r(e, function(e, r) {
			if (e) {
				if (t) return t(e);
				a(e);
			}
			var o;
			try {
				o = tm(r, n);
			} catch (e) {
				if (t) return t(e, null);
				a(e);
			}
			if (t) return t(null, o);
			i(o);
		});
	});
}
function rm(e, t) {
	return tm(Eu(Ys().readFileSync(e)), t);
}
var im, am, om, sm, cm, lm, um, dm, fm, pm, mm, hm, gm, _m, vm, ym, bm, J, xm, Sm, Cm, wm, Tm, Em, Y, Dm, Om, X, km, Am, jm, Mm, Nm, Pm, Fm, Im, Lm, Rm, zm, Bm, Vm, Hm, Um, Wm, Gm, Km, qm, Jm, Ym, Xm, Zm, Qm, $m, eh, th, nh, rh, ih, ah, oh, sh, ch, lh, uh, dh, fh, ph, mh, hh, gh, _h, vh, yh, bh, xh, Sh, Ch, Z, wh, Th, Eh, Dh, Oh, kh, Ah, jh, Mh, Nh = o((() => {
	String.prototype.codePointAt || (function() {
		var e = function() {
			try {
				var e = {}, t = Object.defineProperty, n = t(e, e, e) && t;
			} catch {}
			return n;
		}(), t = function(e) {
			if (this == null) throw TypeError();
			var t = String(this), n = t.length, r = e ? Number(e) : 0;
			if (r != r && (r = 0), !(r < 0 || r >= n)) {
				var i = t.charCodeAt(r), a;
				return i >= 55296 && i <= 56319 && n > r + 1 && (a = t.charCodeAt(r + 1), a >= 56320 && a <= 57343) ? (i - 55296) * 1024 + a - 56320 + 65536 : i;
			}
		};
		e ? e(String.prototype, "codePointAt", {
			value: t,
			configurable: !0,
			writable: !0
		}) : String.prototype.codePointAt = t;
	})(), im = 0, am = -3, om = new Zs(), sm = new Zs(), cm = new Uint8Array(30), lm = new Uint16Array(30), um = new Uint8Array(30), dm = new Uint16Array(30), fm = new Uint8Array([
		16,
		17,
		18,
		0,
		8,
		7,
		9,
		6,
		10,
		5,
		11,
		4,
		12,
		3,
		13,
		2,
		14,
		1,
		15
	]), pm = new Zs(), mm = new Uint8Array(320), hm = new Uint16Array(16), ec(om, sm), $s(cm, lm, 4, 3), $s(um, dm, 2, 1), cm[28] = 0, lm[28] = 258, gm = cc, uc.prototype.isEmpty = function() {
		return isNaN(this.x1) || isNaN(this.y1) || isNaN(this.x2) || isNaN(this.y2);
	}, uc.prototype.addPoint = function(e, t) {
		typeof e == "number" && ((isNaN(this.x1) || isNaN(this.x2)) && (this.x1 = e, this.x2 = e), e < this.x1 && (this.x1 = e), e > this.x2 && (this.x2 = e)), typeof t == "number" && ((isNaN(this.y1) || isNaN(this.y2)) && (this.y1 = t, this.y2 = t), t < this.y1 && (this.y1 = t), t > this.y2 && (this.y2 = t));
	}, uc.prototype.addX = function(e) {
		this.addPoint(e, null);
	}, uc.prototype.addY = function(e) {
		this.addPoint(null, e);
	}, uc.prototype.addBezier = function(e, t, n, r, i, a, o, s) {
		var c = [e, t], l = [n, r], u = [i, a], d = [o, s];
		this.addPoint(e, t), this.addPoint(o, s);
		for (var f = 0; f <= 1; f++) {
			var p = 6 * c[f] - 12 * l[f] + 6 * u[f], m = -3 * c[f] + 9 * l[f] - 9 * u[f] + 3 * d[f], h = 3 * l[f] - 3 * c[f];
			if (m === 0) {
				if (p === 0) continue;
				var g = -h / p;
				0 < g && g < 1 && (f === 0 && this.addX(lc(c[f], l[f], u[f], d[f], g)), f === 1 && this.addY(lc(c[f], l[f], u[f], d[f], g)));
				continue;
			}
			var _ = p ** 2 - 4 * h * m;
			if (!(_ < 0)) {
				var v = (-p + Math.sqrt(_)) / (2 * m);
				0 < v && v < 1 && (f === 0 && this.addX(lc(c[f], l[f], u[f], d[f], v)), f === 1 && this.addY(lc(c[f], l[f], u[f], d[f], v)));
				var y = (-p - Math.sqrt(_)) / (2 * m);
				0 < y && y < 1 && (f === 0 && this.addX(lc(c[f], l[f], u[f], d[f], y)), f === 1 && this.addY(lc(c[f], l[f], u[f], d[f], y)));
			}
		}
	}, uc.prototype.addQuad = function(e, t, n, r, i, a) {
		var o = e + 2 / 3 * (n - e), s = t + 2 / 3 * (r - t), c = o + 1 / 3 * (i - e), l = s + 1 / 3 * (a - t);
		this.addBezier(e, t, o, s, c, l, i, a);
	}, dc.prototype.moveTo = function(e, t) {
		this.commands.push({
			type: "M",
			x: e,
			y: t
		});
	}, dc.prototype.lineTo = function(e, t) {
		this.commands.push({
			type: "L",
			x: e,
			y: t
		});
	}, dc.prototype.curveTo = dc.prototype.bezierCurveTo = function(e, t, n, r, i, a) {
		this.commands.push({
			type: "C",
			x1: e,
			y1: t,
			x2: n,
			y2: r,
			x: i,
			y: a
		});
	}, dc.prototype.quadTo = dc.prototype.quadraticCurveTo = function(e, t, n, r) {
		this.commands.push({
			type: "Q",
			x1: e,
			y1: t,
			x: n,
			y: r
		});
	}, dc.prototype.close = dc.prototype.closePath = function() {
		this.commands.push({ type: "Z" });
	}, dc.prototype.extend = function(e) {
		if (e.commands) e = e.commands;
		else if (e instanceof uc) {
			var t = e;
			this.moveTo(t.x1, t.y1), this.lineTo(t.x2, t.y1), this.lineTo(t.x2, t.y2), this.lineTo(t.x1, t.y2), this.close();
			return;
		}
		Array.prototype.push.apply(this.commands, e);
	}, dc.prototype.getBoundingBox = function() {
		for (var e = new uc(), t = 0, n = 0, r = 0, i = 0, a = 0; a < this.commands.length; a++) {
			var o = this.commands[a];
			switch (o.type) {
				case "M":
					e.addPoint(o.x, o.y), t = r = o.x, n = i = o.y;
					break;
				case "L":
					e.addPoint(o.x, o.y), r = o.x, i = o.y;
					break;
				case "Q":
					e.addQuad(r, i, o.x1, o.y1, o.x, o.y), r = o.x, i = o.y;
					break;
				case "C":
					e.addBezier(r, i, o.x1, o.y1, o.x2, o.y2, o.x, o.y), r = o.x, i = o.y;
					break;
				case "Z":
					r = t, i = n;
					break;
				default: throw Error("Unexpected path command " + o.type);
			}
		}
		return e.isEmpty() && e.addPoint(0, 0), e;
	}, dc.prototype.draw = function(e) {
		e.beginPath();
		for (var t = 0; t < this.commands.length; t += 1) {
			var n = this.commands[t];
			n.type === "M" ? e.moveTo(n.x, n.y) : n.type === "L" ? e.lineTo(n.x, n.y) : n.type === "C" ? e.bezierCurveTo(n.x1, n.y1, n.x2, n.y2, n.x, n.y) : n.type === "Q" ? e.quadraticCurveTo(n.x1, n.y1, n.x, n.y) : n.type === "Z" && e.closePath();
		}
		this.fill && (e.fillStyle = this.fill, e.fill()), this.stroke && (e.strokeStyle = this.stroke, e.lineWidth = this.strokeWidth, e.stroke());
	}, dc.prototype.toPathData = function(e) {
		e = e === void 0 ? 2 : e;
		function t(t) {
			return Math.round(t) === t ? "" + Math.round(t) : t.toFixed(e);
		}
		function n() {
			for (var e = arguments, n = "", r = 0; r < arguments.length; r += 1) {
				var i = e[r];
				i >= 0 && r > 0 && (n += " "), n += t(i);
			}
			return n;
		}
		for (var r = "", i = 0; i < this.commands.length; i += 1) {
			var a = this.commands[i];
			a.type === "M" ? r += "M" + n(a.x, a.y) : a.type === "L" ? r += "L" + n(a.x, a.y) : a.type === "C" ? r += "C" + n(a.x1, a.y1, a.x2, a.y2, a.x, a.y) : a.type === "Q" ? r += "Q" + n(a.x1, a.y1, a.x, a.y) : a.type === "Z" && (r += "Z");
		}
		return r;
	}, dc.prototype.toSVG = function(e) {
		var t = "<path d=\"";
		return t += this.toPathData(e), t += "\"", this.fill && this.fill !== "black" && (this.fill === null ? t += " fill=\"none\"" : t += " fill=\"" + this.fill + "\""), this.stroke && (t += " stroke=\"" + this.stroke + "\" stroke-width=\"" + this.strokeWidth + "\""), t += "/>", t;
	}, dc.prototype.toDOMElement = function(e) {
		var t = this.toPathData(e), n = document.createElementNS("http://www.w3.org/2000/svg", "path");
		return n.setAttribute("d", t), n;
	}, _m = {
		fail: fc,
		argument: pc,
		assert: pc
	}, vm = 32768, ym = 2147483648, bm = {}, J = {}, xm = {}, J.BYTE = function(e) {
		return _m.argument(e >= 0 && e <= 255, "Byte value should be between 0 and 255."), [e];
	}, xm.BYTE = mc(1), J.CHAR = function(e) {
		return [e.charCodeAt(0)];
	}, xm.CHAR = mc(1), J.CHARARRAY = function(e) {
		e === void 0 && (e = "", console.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));
		for (var t = [], n = 0; n < e.length; n += 1) t[n] = e.charCodeAt(n);
		return t;
	}, xm.CHARARRAY = function(e) {
		return e === void 0 ? 0 : e.length;
	}, J.USHORT = function(e) {
		return [e >> 8 & 255, e & 255];
	}, xm.USHORT = mc(2), J.SHORT = function(e) {
		return e >= vm && (e = -(2 * vm - e)), [e >> 8 & 255, e & 255];
	}, xm.SHORT = mc(2), J.UINT24 = function(e) {
		return [
			e >> 16 & 255,
			e >> 8 & 255,
			e & 255
		];
	}, xm.UINT24 = mc(3), J.ULONG = function(e) {
		return [
			e >> 24 & 255,
			e >> 16 & 255,
			e >> 8 & 255,
			e & 255
		];
	}, xm.ULONG = mc(4), J.LONG = function(e) {
		return e >= ym && (e = -(2 * ym - e)), [
			e >> 24 & 255,
			e >> 16 & 255,
			e >> 8 & 255,
			e & 255
		];
	}, xm.LONG = mc(4), J.FIXED = J.ULONG, xm.FIXED = xm.ULONG, J.FWORD = J.SHORT, xm.FWORD = xm.SHORT, J.UFWORD = J.USHORT, xm.UFWORD = xm.USHORT, J.LONGDATETIME = function(e) {
		return [
			0,
			0,
			0,
			0,
			e >> 24 & 255,
			e >> 16 & 255,
			e >> 8 & 255,
			e & 255
		];
	}, xm.LONGDATETIME = mc(8), J.TAG = function(e) {
		return _m.argument(e.length === 4, "Tag should be exactly 4 ASCII characters."), [
			e.charCodeAt(0),
			e.charCodeAt(1),
			e.charCodeAt(2),
			e.charCodeAt(3)
		];
	}, xm.TAG = mc(4), J.Card8 = J.BYTE, xm.Card8 = xm.BYTE, J.Card16 = J.USHORT, xm.Card16 = xm.USHORT, J.OffSize = J.BYTE, xm.OffSize = xm.BYTE, J.SID = J.USHORT, xm.SID = xm.USHORT, J.NUMBER = function(e) {
		return e >= -107 && e <= 107 ? [e + 139] : e >= 108 && e <= 1131 ? (e -= 108, [(e >> 8) + 247, e & 255]) : e >= -1131 && e <= -108 ? (e = -e - 108, [(e >> 8) + 251, e & 255]) : e >= -32768 && e <= 32767 ? J.NUMBER16(e) : J.NUMBER32(e);
	}, xm.NUMBER = function(e) {
		return J.NUMBER(e).length;
	}, J.NUMBER16 = function(e) {
		return [
			28,
			e >> 8 & 255,
			e & 255
		];
	}, xm.NUMBER16 = mc(3), J.NUMBER32 = function(e) {
		return [
			29,
			e >> 24 & 255,
			e >> 16 & 255,
			e >> 8 & 255,
			e & 255
		];
	}, xm.NUMBER32 = mc(5), J.REAL = function(e) {
		var t = e.toString(), n = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);
		if (n) {
			var r = parseFloat("1e" + ((n[2] ? +n[2] : 0) + n[1].length));
			t = (Math.round(e * r) / r).toString();
		}
		for (var i = "", a = 0, o = t.length; a < o; a += 1) {
			var s = t[a];
			s === "e" ? i += t[++a] === "-" ? "c" : "b" : s === "." ? i += "a" : s === "-" ? i += "e" : i += s;
		}
		i += i.length & 1 ? "f" : "ff";
		for (var c = [30], l = 0, u = i.length; l < u; l += 2) c.push(parseInt(i.substr(l, 2), 16));
		return c;
	}, xm.REAL = function(e) {
		return J.REAL(e).length;
	}, J.NAME = J.CHARARRAY, xm.NAME = xm.CHARARRAY, J.STRING = J.CHARARRAY, xm.STRING = xm.CHARARRAY, bm.UTF8 = function(e, t, n) {
		for (var r = [], i = n, a = 0; a < i; a++, t += 1) r[a] = e.getUint8(t);
		return String.fromCharCode.apply(null, r);
	}, bm.UTF16 = function(e, t, n) {
		for (var r = [], i = n / 2, a = 0; a < i; a++, t += 2) r[a] = e.getUint16(t);
		return String.fromCharCode.apply(null, r);
	}, J.UTF16 = function(e) {
		for (var t = [], n = 0; n < e.length; n += 1) {
			var r = e.charCodeAt(n);
			t[t.length] = r >> 8 & 255, t[t.length] = r & 255;
		}
		return t;
	}, xm.UTF16 = function(e) {
		return e.length * 2;
	}, Sm = {
		"x-mac-croatian": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č…\xA0ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ",
		"x-mac-cyrillic": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю",
		"x-mac-gaelic": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»…\xA0ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ",
		"x-mac-greek": "Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­",
		"x-mac-icelandic": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
		"x-mac-inuit": "ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ…\xA0ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł",
		"x-mac-ce": "ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",
		macintosh: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
		"x-mac-romanian": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
		"x-mac-turkish": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"
	}, bm.MACSTRING = function(e, t, n, r) {
		var i = Sm[r];
		if (i !== void 0) {
			for (var a = "", o = 0; o < n; o++) {
				var s = e.getUint8(t + o);
				s <= 127 ? a += String.fromCharCode(s) : a += i[s & 127];
			}
			return a;
		}
	}, Cm = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap(), Tm = function(e) {
		if (!wm) for (var t in wm = {}, Sm) wm[t] = new String(t);
		var n = wm[e];
		if (n !== void 0) {
			if (Cm) {
				var r = Cm.get(n);
				if (r !== void 0) return r;
			}
			var i = Sm[e];
			if (i !== void 0) {
				for (var a = {}, o = 0; o < i.length; o++) a[i.charCodeAt(o)] = o + 128;
				return Cm && Cm.set(n, a), a;
			}
		}
	}, J.MACSTRING = function(e, t) {
		var n = Tm(t);
		if (n !== void 0) {
			for (var r = [], i = 0; i < e.length; i++) {
				var a = e.charCodeAt(i);
				if (a >= 128 && (a = n[a], a === void 0)) return;
				r[i] = a;
			}
			return r;
		}
	}, xm.MACSTRING = function(e, t) {
		var n = J.MACSTRING(e, t);
		return n === void 0 ? 0 : n.length;
	}, J.VARDELTAS = function(e) {
		for (var t = 0, n = []; t < e.length;) {
			var r = e[t];
			t = r === 0 ? gc(e, t, n) : r >= -128 && r <= 127 ? _c(e, t, n) : vc(e, t, n);
		}
		return n;
	}, J.INDEX = function(e) {
		for (var t = 1, n = [t], r = [], i = 0; i < e.length; i += 1) {
			var a = J.OBJECT(e[i]);
			Array.prototype.push.apply(r, a), t += a.length, n.push(t);
		}
		if (r.length === 0) return [0, 0];
		for (var o = [], s = 1 + Math.floor(Math.log(t) / Math.log(2)) / 8 | 0, c = [
			void 0,
			J.BYTE,
			J.USHORT,
			J.UINT24,
			J.ULONG
		][s], l = 0; l < n.length; l += 1) {
			var u = c(n[l]);
			Array.prototype.push.apply(o, u);
		}
		return Array.prototype.concat(J.Card16(e.length), J.OffSize(s), o, r);
	}, xm.INDEX = function(e) {
		return J.INDEX(e).length;
	}, J.DICT = function(e) {
		for (var t = [], n = Object.keys(e), r = n.length, i = 0; i < r; i += 1) {
			var a = parseInt(n[i], 0), o = e[a];
			t = t.concat(J.OPERAND(o.value, o.type)), t = t.concat(J.OPERATOR(a));
		}
		return t;
	}, xm.DICT = function(e) {
		return J.DICT(e).length;
	}, J.OPERATOR = function(e) {
		return e < 1200 ? [e] : [12, e - 1200];
	}, J.OPERAND = function(e, t) {
		var n = [];
		if (Array.isArray(t)) for (var r = 0; r < t.length; r += 1) _m.argument(e.length === t.length, "Not enough arguments given for type" + t), n = n.concat(J.OPERAND(e[r], t[r]));
		else if (t === "SID") n = n.concat(J.NUMBER(e));
		else if (t === "offset") n = n.concat(J.NUMBER32(e));
		else if (t === "number") n = n.concat(J.NUMBER(e));
		else if (t === "real") n = n.concat(J.REAL(e));
		else throw Error("Unknown operand type " + t);
		return n;
	}, J.OP = J.BYTE, xm.OP = xm.BYTE, Em = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap(), J.CHARSTRING = function(e) {
		if (Em) {
			var t = Em.get(e);
			if (t !== void 0) return t;
		}
		for (var n = [], r = e.length, i = 0; i < r; i += 1) {
			var a = e[i];
			n = n.concat(J[a.type](a.value));
		}
		return Em && Em.set(e, n), n;
	}, xm.CHARSTRING = function(e) {
		return J.CHARSTRING(e).length;
	}, J.OBJECT = function(e) {
		var t = J[e.type];
		return _m.argument(t !== void 0, "No encoding function for type " + e.type), t(e.value);
	}, xm.OBJECT = function(e) {
		var t = xm[e.type];
		return _m.argument(t !== void 0, "No sizeOf function for type " + e.type), t(e.value);
	}, J.TABLE = function(e) {
		for (var t = [], n = e.fields.length, r = [], i = [], a = 0; a < n; a += 1) {
			var o = e.fields[a], s = J[o.type];
			_m.argument(s !== void 0, "No encoding function for field type " + o.type + " (" + o.name + ")");
			var c = e[o.name];
			c === void 0 && (c = o.value);
			var l = s(c);
			o.type === "TABLE" ? (i.push(t.length), t = t.concat([0, 0]), r.push(l)) : t = t.concat(l);
		}
		for (var u = 0; u < r.length; u += 1) {
			var d = i[u], f = t.length;
			_m.argument(f < 65536, "Table " + e.tableName + " too big."), t[d] = f >> 8, t[d + 1] = f & 255, t = t.concat(r[u]);
		}
		return t;
	}, xm.TABLE = function(e) {
		for (var t = 0, n = e.fields.length, r = 0; r < n; r += 1) {
			var i = e.fields[r], a = xm[i.type];
			_m.argument(a !== void 0, "No sizeOf function for field type " + i.type + " (" + i.name + ")");
			var o = e[i.name];
			o === void 0 && (o = i.value), t += a(o), i.type === "TABLE" && (t += 2);
		}
		return t;
	}, J.RECORD = J.TABLE, xm.RECORD = xm.TABLE, J.LITERAL = function(e) {
		return e;
	}, xm.LITERAL = function(e) {
		return e.length;
	}, yc.prototype.encode = function() {
		return J.TABLE(this);
	}, yc.prototype.sizeOf = function() {
		return xm.TABLE(this);
	}, Cc.prototype = Object.create(yc.prototype), Cc.prototype.constructor = Cc, wc.prototype = Object.create(yc.prototype), wc.prototype.constructor = wc, Tc.prototype = Object.create(yc.prototype), Tc.prototype.constructor = Tc, Ec.prototype = Object.create(yc.prototype), Ec.prototype.constructor = Ec, Y = {
		Table: yc,
		Record: yc,
		Coverage: Cc,
		ScriptList: wc,
		FeatureList: Tc,
		LookupList: Ec,
		ushortList: bc,
		tableList: xc,
		recordList: Sc
	}, Dm = {
		byte: 1,
		uShort: 2,
		short: 2,
		uLong: 4,
		fixed: 4,
		longDateTime: 8,
		tag: 4
	}, G.prototype.parseByte = function() {
		var e = this.data.getUint8(this.offset + this.relativeOffset);
		return this.relativeOffset += 1, e;
	}, G.prototype.parseChar = function() {
		var e = this.data.getInt8(this.offset + this.relativeOffset);
		return this.relativeOffset += 1, e;
	}, G.prototype.parseCard8 = G.prototype.parseByte, G.prototype.parseUShort = function() {
		var e = this.data.getUint16(this.offset + this.relativeOffset);
		return this.relativeOffset += 2, e;
	}, G.prototype.parseCard16 = G.prototype.parseUShort, G.prototype.parseSID = G.prototype.parseUShort, G.prototype.parseOffset16 = G.prototype.parseUShort, G.prototype.parseShort = function() {
		var e = this.data.getInt16(this.offset + this.relativeOffset);
		return this.relativeOffset += 2, e;
	}, G.prototype.parseF2Dot14 = function() {
		var e = this.data.getInt16(this.offset + this.relativeOffset) / 16384;
		return this.relativeOffset += 2, e;
	}, G.prototype.parseULong = function() {
		var e = Ac(this.data, this.offset + this.relativeOffset);
		return this.relativeOffset += 4, e;
	}, G.prototype.parseOffset32 = G.prototype.parseULong, G.prototype.parseFixed = function() {
		var e = jc(this.data, this.offset + this.relativeOffset);
		return this.relativeOffset += 4, e;
	}, G.prototype.parseString = function(e) {
		var t = this.data, n = this.offset + this.relativeOffset, r = "";
		this.relativeOffset += e;
		for (var i = 0; i < e; i++) r += String.fromCharCode(t.getUint8(n + i));
		return r;
	}, G.prototype.parseTag = function() {
		return this.parseString(4);
	}, G.prototype.parseLongDateTime = function() {
		var e = Ac(this.data, this.offset + this.relativeOffset + 4);
		return e -= 2082844800, this.relativeOffset += 8, e;
	}, G.prototype.parseVersion = function(e) {
		var t = Oc(this.data, this.offset + this.relativeOffset), n = Oc(this.data, this.offset + this.relativeOffset + 2);
		return this.relativeOffset += 4, e === void 0 && (e = 4096), t + n / e / 10;
	}, G.prototype.skip = function(e, t) {
		t === void 0 && (t = 1), this.relativeOffset += Dm[e] * t;
	}, G.prototype.parseULongList = function(e) {
		e === void 0 && (e = this.parseULong());
		for (var t = Array(e), n = this.data, r = this.offset + this.relativeOffset, i = 0; i < e; i++) t[i] = n.getUint32(r), r += 4;
		return this.relativeOffset += e * 4, t;
	}, G.prototype.parseOffset16List = G.prototype.parseUShortList = function(e) {
		e === void 0 && (e = this.parseUShort());
		for (var t = Array(e), n = this.data, r = this.offset + this.relativeOffset, i = 0; i < e; i++) t[i] = n.getUint16(r), r += 2;
		return this.relativeOffset += e * 2, t;
	}, G.prototype.parseShortList = function(e) {
		for (var t = Array(e), n = this.data, r = this.offset + this.relativeOffset, i = 0; i < e; i++) t[i] = n.getInt16(r), r += 2;
		return this.relativeOffset += e * 2, t;
	}, G.prototype.parseByteList = function(e) {
		for (var t = Array(e), n = this.data, r = this.offset + this.relativeOffset, i = 0; i < e; i++) t[i] = n.getUint8(r++);
		return this.relativeOffset += e, t;
	}, G.prototype.parseList = function(e, t) {
		t || (t = e, e = this.parseUShort());
		for (var n = Array(e), r = 0; r < e; r++) n[r] = t.call(this);
		return n;
	}, G.prototype.parseList32 = function(e, t) {
		t || (t = e, e = this.parseULong());
		for (var n = Array(e), r = 0; r < e; r++) n[r] = t.call(this);
		return n;
	}, G.prototype.parseRecordList = function(e, t) {
		t || (t = e, e = this.parseUShort());
		for (var n = Array(e), r = Object.keys(t), i = 0; i < e; i++) {
			for (var a = {}, o = 0; o < r.length; o++) {
				var s = r[o];
				a[s] = t[s].call(this);
			}
			n[i] = a;
		}
		return n;
	}, G.prototype.parseRecordList32 = function(e, t) {
		t || (t = e, e = this.parseULong());
		for (var n = Array(e), r = Object.keys(t), i = 0; i < e; i++) {
			for (var a = {}, o = 0; o < r.length; o++) {
				var s = r[o];
				a[s] = t[s].call(this);
			}
			n[i] = a;
		}
		return n;
	}, G.prototype.parseStruct = function(e) {
		if (typeof e == "function") return e.call(this);
		for (var t = Object.keys(e), n = {}, r = 0; r < t.length; r++) {
			var i = t[r];
			n[i] = e[i].call(this);
		}
		return n;
	}, G.prototype.parseValueRecord = function(e) {
		if (e === void 0 && (e = this.parseUShort()), e !== 0) {
			var t = {};
			return e & 1 && (t.xPlacement = this.parseShort()), e & 2 && (t.yPlacement = this.parseShort()), e & 4 && (t.xAdvance = this.parseShort()), e & 8 && (t.yAdvance = this.parseShort()), e & 16 && (t.xPlaDevice = void 0, this.parseShort()), e & 32 && (t.yPlaDevice = void 0, this.parseShort()), e & 64 && (t.xAdvDevice = void 0, this.parseShort()), e & 128 && (t.yAdvDevice = void 0, this.parseShort()), t;
		}
	}, G.prototype.parseValueRecordList = function() {
		for (var e = this.parseUShort(), t = this.parseUShort(), n = Array(t), r = 0; r < t; r++) n[r] = this.parseValueRecord(e);
		return n;
	}, G.prototype.parsePointer = function(e) {
		var t = this.parseOffset16();
		if (t > 0) return new G(this.data, this.offset + t).parseStruct(e);
	}, G.prototype.parsePointer32 = function(e) {
		var t = this.parseOffset32();
		if (t > 0) return new G(this.data, this.offset + t).parseStruct(e);
	}, G.prototype.parseListOfLists = function(e) {
		for (var t = this.parseOffset16List(), n = t.length, r = this.relativeOffset, i = Array(n), a = 0; a < n; a++) {
			var o = t[a];
			if (o === 0) {
				i[a] = void 0;
				continue;
			}
			if (this.relativeOffset = o, e) {
				for (var s = this.parseOffset16List(), c = Array(s.length), l = 0; l < s.length; l++) this.relativeOffset = o + s[l], c[l] = e.call(this);
				i[a] = c;
			} else i[a] = this.parseUShortList();
		}
		return this.relativeOffset = r, i;
	}, G.prototype.parseCoverage = function() {
		var e = this.offset + this.relativeOffset, t = this.parseUShort(), n = this.parseUShort();
		if (t === 1) return {
			format: 1,
			glyphs: this.parseUShortList(n)
		};
		if (t === 2) {
			for (var r = Array(n), i = 0; i < n; i++) r[i] = {
				start: this.parseUShort(),
				end: this.parseUShort(),
				index: this.parseUShort()
			};
			return {
				format: 2,
				ranges: r
			};
		}
		throw Error("0x" + e.toString(16) + ": Coverage format must be 1 or 2.");
	}, G.prototype.parseClassDef = function() {
		var e = this.offset + this.relativeOffset, t = this.parseUShort();
		if (t === 1) return {
			format: 1,
			startGlyph: this.parseUShort(),
			classes: this.parseUShortList()
		};
		if (t === 2) return {
			format: 2,
			ranges: this.parseRecordList({
				start: G.uShort,
				end: G.uShort,
				classId: G.uShort
			})
		};
		throw Error("0x" + e.toString(16) + ": ClassDef format must be 1 or 2.");
	}, G.list = function(e, t) {
		return function() {
			return this.parseList(e, t);
		};
	}, G.list32 = function(e, t) {
		return function() {
			return this.parseList32(e, t);
		};
	}, G.recordList = function(e, t) {
		return function() {
			return this.parseRecordList(e, t);
		};
	}, G.recordList32 = function(e, t) {
		return function() {
			return this.parseRecordList32(e, t);
		};
	}, G.pointer = function(e) {
		return function() {
			return this.parsePointer(e);
		};
	}, G.pointer32 = function(e) {
		return function() {
			return this.parsePointer32(e);
		};
	}, G.tag = G.prototype.parseTag, G.byte = G.prototype.parseByte, G.uShort = G.offset16 = G.prototype.parseUShort, G.uShortList = G.prototype.parseUShortList, G.uLong = G.offset32 = G.prototype.parseULong, G.uLongList = G.prototype.parseULongList, G.struct = G.prototype.parseStruct, G.coverage = G.prototype.parseCoverage, G.classDef = G.prototype.parseClassDef, Om = {
		reserved: G.uShort,
		reqFeatureIndex: G.uShort,
		featureIndexes: G.uShortList
	}, G.prototype.parseScriptList = function() {
		return this.parsePointer(G.recordList({
			tag: G.tag,
			script: G.pointer({
				defaultLangSys: G.pointer(Om),
				langSysRecords: G.recordList({
					tag: G.tag,
					langSys: G.pointer(Om)
				})
			})
		})) || [];
	}, G.prototype.parseFeatureList = function() {
		return this.parsePointer(G.recordList({
			tag: G.tag,
			feature: G.pointer({
				featureParams: G.offset16,
				lookupListIndexes: G.uShortList
			})
		})) || [];
	}, G.prototype.parseLookupList = function(e) {
		return this.parsePointer(G.list(G.pointer(function() {
			var t = this.parseUShort();
			_m.argument(1 <= t && t <= 9, "GPOS/GSUB lookup type " + t + " unknown.");
			var n = this.parseUShort(), r = n & 16;
			return {
				lookupType: t,
				lookupFlag: n,
				subtables: this.parseList(G.pointer(e[t])),
				markFilteringSet: r ? this.parseUShort() : void 0
			};
		}))) || [];
	}, G.prototype.parseFeatureVariationsList = function() {
		return this.parsePointer32(function() {
			var e = this.parseUShort(), t = this.parseUShort();
			return _m.argument(e === 1 && t < 1, "GPOS/GSUB feature variations table unknown."), this.parseRecordList32({
				conditionSetOffset: G.offset32,
				featureTableSubstitutionOffset: G.offset32
			});
		}) || [];
	}, X = {
		getByte: Dc,
		getCard8: Dc,
		getUShort: Oc,
		getCard16: Oc,
		getShort: kc,
		getULong: Ac,
		getFixed: jc,
		getTag: Mc,
		getOffset: Nc,
		getBytes: Pc,
		bytesToString: Fc,
		Parser: G
	}, km = {
		parse: Rc,
		make: Vc
	}, Am = /* @__PURE__ */ ".notdef,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quoteright,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,quoteleft,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,exclamdown,cent,sterling,fraction,yen,florin,section,currency,quotesingle,quotedblleft,guillemotleft,guilsinglleft,guilsinglright,fi,fl,endash,dagger,daggerdbl,periodcentered,paragraph,bullet,quotesinglbase,quotedblbase,quotedblright,guillemotright,ellipsis,perthousand,questiondown,grave,acute,circumflex,tilde,macron,breve,dotaccent,dieresis,ring,cedilla,hungarumlaut,ogonek,caron,emdash,AE,ordfeminine,Lslash,Oslash,OE,ordmasculine,ae,dotlessi,lslash,oslash,oe,germandbls,onesuperior,logicalnot,mu,trademark,Eth,onehalf,plusminus,Thorn,onequarter,divide,brokenbar,degree,thorn,threequarters,twosuperior,registered,minus,eth,multiply,threesuperior,copyright,Aacute,Acircumflex,Adieresis,Agrave,Aring,Atilde,Ccedilla,Eacute,Ecircumflex,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Ntilde,Oacute,Ocircumflex,Odieresis,Ograve,Otilde,Scaron,Uacute,Ucircumflex,Udieresis,Ugrave,Yacute,Ydieresis,Zcaron,aacute,acircumflex,adieresis,agrave,aring,atilde,ccedilla,eacute,ecircumflex,edieresis,egrave,iacute,icircumflex,idieresis,igrave,ntilde,oacute,ocircumflex,odieresis,ograve,otilde,scaron,uacute,ucircumflex,udieresis,ugrave,yacute,ydieresis,zcaron,exclamsmall,Hungarumlautsmall,dollaroldstyle,dollarsuperior,ampersandsmall,Acutesmall,parenleftsuperior,parenrightsuperior,266 ff,onedotenleader,zerooldstyle,oneoldstyle,twooldstyle,threeoldstyle,fouroldstyle,fiveoldstyle,sixoldstyle,sevenoldstyle,eightoldstyle,nineoldstyle,commasuperior,threequartersemdash,periodsuperior,questionsmall,asuperior,bsuperior,centsuperior,dsuperior,esuperior,isuperior,lsuperior,msuperior,nsuperior,osuperior,rsuperior,ssuperior,tsuperior,ff,ffi,ffl,parenleftinferior,parenrightinferior,Circumflexsmall,hyphensuperior,Gravesmall,Asmall,Bsmall,Csmall,Dsmall,Esmall,Fsmall,Gsmall,Hsmall,Ismall,Jsmall,Ksmall,Lsmall,Msmall,Nsmall,Osmall,Psmall,Qsmall,Rsmall,Ssmall,Tsmall,Usmall,Vsmall,Wsmall,Xsmall,Ysmall,Zsmall,colonmonetary,onefitted,rupiah,Tildesmall,exclamdownsmall,centoldstyle,Lslashsmall,Scaronsmall,Zcaronsmall,Dieresissmall,Brevesmall,Caronsmall,Dotaccentsmall,Macronsmall,figuredash,hypheninferior,Ogoneksmall,Ringsmall,Cedillasmall,questiondownsmall,oneeighth,threeeighths,fiveeighths,seveneighths,onethird,twothirds,zerosuperior,foursuperior,fivesuperior,sixsuperior,sevensuperior,eightsuperior,ninesuperior,zeroinferior,oneinferior,twoinferior,threeinferior,fourinferior,fiveinferior,sixinferior,seveninferior,eightinferior,nineinferior,centinferior,dollarinferior,periodinferior,commainferior,Agravesmall,Aacutesmall,Acircumflexsmall,Atildesmall,Adieresissmall,Aringsmall,AEsmall,Ccedillasmall,Egravesmall,Eacutesmall,Ecircumflexsmall,Edieresissmall,Igravesmall,Iacutesmall,Icircumflexsmall,Idieresissmall,Ethsmall,Ntildesmall,Ogravesmall,Oacutesmall,Ocircumflexsmall,Otildesmall,Odieresissmall,OEsmall,Oslashsmall,Ugravesmall,Uacutesmall,Ucircumflexsmall,Udieresissmall,Yacutesmall,Thornsmall,Ydieresissmall,001.000,001.001,001.002,001.003,Black,Bold,Book,Light,Medium,Regular,Roman,Semibold".split(","), jm = /* @__PURE__ */ "................................space.exclam.quotedbl.numbersign.dollar.percent.ampersand.quoteright.parenleft.parenright.asterisk.plus.comma.hyphen.period.slash.zero.one.two.three.four.five.six.seven.eight.nine.colon.semicolon.less.equal.greater.question.at.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.bracketleft.backslash.bracketright.asciicircum.underscore.quoteleft.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.braceleft.bar.braceright.asciitilde...................................exclamdown.cent.sterling.fraction.yen.florin.section.currency.quotesingle.quotedblleft.guillemotleft.guilsinglleft.guilsinglright.fi.fl..endash.dagger.daggerdbl.periodcentered..paragraph.bullet.quotesinglbase.quotedblbase.quotedblright.guillemotright.ellipsis.perthousand..questiondown..grave.acute.circumflex.tilde.macron.breve.dotaccent.dieresis..ring.cedilla..hungarumlaut.ogonek.caron.emdash.................AE..ordfeminine.....Lslash.Oslash.OE.ordmasculine......ae....dotlessi...lslash.oslash.oe.germandbls".split("."), Mm = /* @__PURE__ */ "................................space.exclamsmall.Hungarumlautsmall..dollaroldstyle.dollarsuperior.ampersandsmall.Acutesmall.parenleftsuperior.parenrightsuperior.twodotenleader.onedotenleader.comma.hyphen.period.fraction.zerooldstyle.oneoldstyle.twooldstyle.threeoldstyle.fouroldstyle.fiveoldstyle.sixoldstyle.sevenoldstyle.eightoldstyle.nineoldstyle.colon.semicolon.commasuperior.threequartersemdash.periodsuperior.questionsmall..asuperior.bsuperior.centsuperior.dsuperior.esuperior...isuperior...lsuperior.msuperior.nsuperior.osuperior...rsuperior.ssuperior.tsuperior..ff.fi.fl.ffi.ffl.parenleftinferior..parenrightinferior.Circumflexsmall.hyphensuperior.Gravesmall.Asmall.Bsmall.Csmall.Dsmall.Esmall.Fsmall.Gsmall.Hsmall.Ismall.Jsmall.Ksmall.Lsmall.Msmall.Nsmall.Osmall.Psmall.Qsmall.Rsmall.Ssmall.Tsmall.Usmall.Vsmall.Wsmall.Xsmall.Ysmall.Zsmall.colonmonetary.onefitted.rupiah.Tildesmall...................................exclamdownsmall.centoldstyle.Lslashsmall...Scaronsmall.Zcaronsmall.Dieresissmall.Brevesmall.Caronsmall..Dotaccentsmall...Macronsmall...figuredash.hypheninferior...Ogoneksmall.Ringsmall.Cedillasmall....onequarter.onehalf.threequarters.questiondownsmall.oneeighth.threeeighths.fiveeighths.seveneighths.onethird.twothirds...zerosuperior.onesuperior.twosuperior.threesuperior.foursuperior.fivesuperior.sixsuperior.sevensuperior.eightsuperior.ninesuperior.zeroinferior.oneinferior.twoinferior.threeinferior.fourinferior.fiveinferior.sixinferior.seveninferior.eightinferior.nineinferior.centinferior.dollarinferior.periodinferior.commainferior.Agravesmall.Aacutesmall.Acircumflexsmall.Atildesmall.Adieresissmall.Aringsmall.AEsmall.Ccedillasmall.Egravesmall.Eacutesmall.Ecircumflexsmall.Edieresissmall.Igravesmall.Iacutesmall.Icircumflexsmall.Idieresissmall.Ethsmall.Ntildesmall.Ogravesmall.Oacutesmall.Ocircumflexsmall.Otildesmall.Odieresissmall.OEsmall.Oslashsmall.Ugravesmall.Uacutesmall.Ucircumflexsmall.Udieresissmall.Yacutesmall.Thornsmall.Ydieresissmall".split("."), Nm = /* @__PURE__ */ ".notdef,.null,nonmarkingreturn,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quotesingle,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,grave,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,Adieresis,Aring,Ccedilla,Eacute,Ntilde,Odieresis,Udieresis,aacute,agrave,acircumflex,adieresis,atilde,aring,ccedilla,eacute,egrave,ecircumflex,edieresis,iacute,igrave,icircumflex,idieresis,ntilde,oacute,ograve,ocircumflex,odieresis,otilde,uacute,ugrave,ucircumflex,udieresis,dagger,degree,cent,sterling,section,bullet,paragraph,germandbls,registered,copyright,trademark,acute,dieresis,notequal,AE,Oslash,infinity,plusminus,lessequal,greaterequal,yen,mu,partialdiff,summation,product,pi,integral,ordfeminine,ordmasculine,Omega,ae,oslash,questiondown,exclamdown,logicalnot,radical,florin,approxequal,Delta,guillemotleft,guillemotright,ellipsis,nonbreakingspace,Agrave,Atilde,Otilde,OE,oe,endash,emdash,quotedblleft,quotedblright,quoteleft,quoteright,divide,lozenge,ydieresis,Ydieresis,fraction,currency,guilsinglleft,guilsinglright,fi,fl,daggerdbl,periodcentered,quotesinglbase,quotedblbase,perthousand,Acircumflex,Ecircumflex,Aacute,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Oacute,Ocircumflex,apple,Ograve,Uacute,Ucircumflex,Ugrave,dotlessi,circumflex,tilde,macron,breve,dotaccent,ring,cedilla,hungarumlaut,ogonek,caron,Lslash,lslash,Scaron,scaron,Zcaron,zcaron,brokenbar,Eth,eth,Yacute,yacute,Thorn,thorn,minus,multiply,onesuperior,twosuperior,threesuperior,onehalf,onequarter,threequarters,franc,Gbreve,gbreve,Idotaccent,Scedilla,scedilla,Cacute,cacute,Ccaron,ccaron,dcroat".split(","), Hc.prototype.charToGlyphIndex = function(e) {
		var t = e.codePointAt(0), n = this.font.glyphs;
		if (n) {
			for (var r = 0; r < n.length; r += 1) for (var i = n.get(r), a = 0; a < i.unicodes.length; a += 1) if (i.unicodes[a] === t) return r;
		}
		return null;
	}, Uc.prototype.charToGlyphIndex = function(e) {
		return this.cmap.glyphIndexMap[e.codePointAt(0)] || 0;
	}, Wc.prototype.charToGlyphIndex = function(e) {
		var t = e.codePointAt(0), n = this.encoding[t];
		return this.charset.indexOf(n);
	}, K.prototype.nameToGlyphIndex = function(e) {
		return this.names.indexOf(e);
	}, K.prototype.glyphIndexToName = function(e) {
		return this.names[e];
	}, Pm = { line: Jc }, Xc.prototype.bindConstructorValues = function(e) {
		this.index = e.index || 0, this.name = e.name || null, this.unicode = e.unicode || void 0, this.unicodes = e.unicodes || e.unicode !== void 0 ? [e.unicode] : [], "xMin" in e && (this.xMin = e.xMin), "yMin" in e && (this.yMin = e.yMin), "xMax" in e && (this.xMax = e.xMax), "yMax" in e && (this.yMax = e.yMax), "advanceWidth" in e && (this.advanceWidth = e.advanceWidth), Object.defineProperty(this, "path", Yc(this, e.path));
	}, Xc.prototype.addUnicode = function(e) {
		this.unicodes.length === 0 && (this.unicode = e), this.unicodes.push(e);
	}, Xc.prototype.getBoundingBox = function() {
		return this.path.getBoundingBox();
	}, Xc.prototype.getPath = function(e, t, n, r, i) {
		e = e === void 0 ? 0 : e, t = t === void 0 ? 0 : t, n = n === void 0 ? 72 : n;
		var a, o;
		r ||= {};
		var s = r.xScale, c = r.yScale;
		if (r.hinting && i && i.hinting && (o = this.path && i.hinting.exec(this, n)), o) a = i.hinting.getCommands(o), e = Math.round(e), t = Math.round(t), s = c = 1;
		else {
			a = this.path.commands;
			var l = 1 / (this.path.unitsPerEm || 1e3) * n;
			s === void 0 && (s = l), c === void 0 && (c = l);
		}
		for (var u = new dc(), d = 0; d < a.length; d += 1) {
			var f = a[d];
			f.type === "M" ? u.moveTo(e + f.x * s, t + -f.y * c) : f.type === "L" ? u.lineTo(e + f.x * s, t + -f.y * c) : f.type === "Q" ? u.quadraticCurveTo(e + f.x1 * s, t + -f.y1 * c, e + f.x * s, t + -f.y * c) : f.type === "C" ? u.curveTo(e + f.x1 * s, t + -f.y1 * c, e + f.x2 * s, t + -f.y2 * c, e + f.x * s, t + -f.y * c) : f.type === "Z" && u.closePath();
		}
		return u;
	}, Xc.prototype.getContours = function() {
		if (this.points === void 0) return [];
		for (var e = [], t = [], n = 0; n < this.points.length; n += 1) {
			var r = this.points[n];
			t.push(r), r.lastPointOfContour && (e.push(t), t = []);
		}
		return _m.argument(t.length === 0, "There are still points left in the current contour."), e;
	}, Xc.prototype.getMetrics = function() {
		for (var e = this.path.commands, t = [], n = [], r = 0; r < e.length; r += 1) {
			var i = e[r];
			i.type !== "Z" && (t.push(i.x), n.push(i.y)), (i.type === "Q" || i.type === "C") && (t.push(i.x1), n.push(i.y1)), i.type === "C" && (t.push(i.x2), n.push(i.y2));
		}
		var a = {
			xMin: Math.min.apply(null, t),
			yMin: Math.min.apply(null, n),
			xMax: Math.max.apply(null, t),
			yMax: Math.max.apply(null, n),
			leftSideBearing: this.leftSideBearing
		};
		return isFinite(a.xMin) || (a.xMin = 0), isFinite(a.xMax) || (a.xMax = this.advanceWidth), isFinite(a.yMin) || (a.yMin = 0), isFinite(a.yMax) || (a.yMax = 0), a.rightSideBearing = this.advanceWidth - a.leftSideBearing - (a.xMax - a.xMin), a;
	}, Xc.prototype.draw = function(e, t, n, r, i) {
		this.getPath(t, n, r, i).draw(e);
	}, Xc.prototype.drawPoints = function(e, t, n, r) {
		function i(t, n, r, i) {
			e.beginPath();
			for (var a = 0; a < t.length; a += 1) e.moveTo(n + t[a].x * i, r + t[a].y * i), e.arc(n + t[a].x * i, r + t[a].y * i, 2, 0, Math.PI * 2, !1);
			e.closePath(), e.fill();
		}
		t = t === void 0 ? 0 : t, n = n === void 0 ? 0 : n, r = r === void 0 ? 24 : r;
		for (var a = 1 / this.path.unitsPerEm * r, o = [], s = [], c = this.path, l = 0; l < c.commands.length; l += 1) {
			var u = c.commands[l];
			u.x !== void 0 && o.push({
				x: u.x,
				y: -u.y
			}), u.x1 !== void 0 && s.push({
				x: u.x1,
				y: -u.y1
			}), u.x2 !== void 0 && s.push({
				x: u.x2,
				y: -u.y2
			});
		}
		e.fillStyle = "blue", i(o, t, n, a), e.fillStyle = "red", i(s, t, n, a);
	}, Xc.prototype.drawMetrics = function(e, t, n, r) {
		var i;
		t = t === void 0 ? 0 : t, n = n === void 0 ? 0 : n, r = r === void 0 ? 24 : r, i = 1 / this.path.unitsPerEm * r, e.lineWidth = 1, e.strokeStyle = "black", Pm.line(e, t, -1e4, t, 1e4), Pm.line(e, -1e4, n, 1e4, n);
		var a = this.xMin || 0, o = this.yMin || 0, s = this.xMax || 0, c = this.yMax || 0, l = this.advanceWidth || 0;
		e.strokeStyle = "blue", Pm.line(e, t + a * i, -1e4, t + a * i, 1e4), Pm.line(e, t + s * i, -1e4, t + s * i, 1e4), Pm.line(e, -1e4, n + -o * i, 1e4, n + -o * i), Pm.line(e, -1e4, n + -c * i, 1e4, n + -c * i), e.strokeStyle = "green", Pm.line(e, t + l * i, -1e4, t + l * i, 1e4);
	}, Qc.prototype.get = function(e) {
		if (this.glyphs[e] === void 0) {
			this.font._push(e), typeof this.glyphs[e] == "function" && (this.glyphs[e] = this.glyphs[e]());
			var t = this.glyphs[e], n = this.font._IndexToUnicodeMap[e];
			if (n) for (var r = 0; r < n.unicodes.length; r++) t.addUnicode(n.unicodes[r]);
			this.font.cffEncoding ? this.font.isCIDFont ? t.name = "gid" + e : t.name = this.font.cffEncoding.charset[e] : this.font.glyphNames.names && (t.name = this.font.glyphNames.glyphIndexToName(e)), this.glyphs[e].advanceWidth = this.font._hmtxTableData[e].advanceWidth, this.glyphs[e].leftSideBearing = this.font._hmtxTableData[e].leftSideBearing;
		} else typeof this.glyphs[e] == "function" && (this.glyphs[e] = this.glyphs[e]());
		return this.glyphs[e];
	}, Qc.prototype.push = function(e, t) {
		this.glyphs[e] = t, this.length++;
	}, Fm = {
		GlyphSet: Qc,
		glyphLoader: $c,
		ttfGlyphLoader: el,
		cffGlyphLoader: tl
	}, Im = [
		{
			name: "version",
			op: 0,
			type: "SID"
		},
		{
			name: "notice",
			op: 1,
			type: "SID"
		},
		{
			name: "copyright",
			op: 1200,
			type: "SID"
		},
		{
			name: "fullName",
			op: 2,
			type: "SID"
		},
		{
			name: "familyName",
			op: 3,
			type: "SID"
		},
		{
			name: "weight",
			op: 4,
			type: "SID"
		},
		{
			name: "isFixedPitch",
			op: 1201,
			type: "number",
			value: 0
		},
		{
			name: "italicAngle",
			op: 1202,
			type: "number",
			value: 0
		},
		{
			name: "underlinePosition",
			op: 1203,
			type: "number",
			value: -100
		},
		{
			name: "underlineThickness",
			op: 1204,
			type: "number",
			value: 50
		},
		{
			name: "paintType",
			op: 1205,
			type: "number",
			value: 0
		},
		{
			name: "charstringType",
			op: 1206,
			type: "number",
			value: 2
		},
		{
			name: "fontMatrix",
			op: 1207,
			type: [
				"real",
				"real",
				"real",
				"real",
				"real",
				"real"
			],
			value: [
				.001,
				0,
				0,
				.001,
				0,
				0
			]
		},
		{
			name: "uniqueId",
			op: 13,
			type: "number"
		},
		{
			name: "fontBBox",
			op: 5,
			type: [
				"number",
				"number",
				"number",
				"number"
			],
			value: [
				0,
				0,
				0,
				0
			]
		},
		{
			name: "strokeWidth",
			op: 1208,
			type: "number",
			value: 0
		},
		{
			name: "xuid",
			op: 14,
			type: [],
			value: null
		},
		{
			name: "charset",
			op: 15,
			type: "offset",
			value: 0
		},
		{
			name: "encoding",
			op: 16,
			type: "offset",
			value: 0
		},
		{
			name: "charStrings",
			op: 17,
			type: "offset",
			value: 0
		},
		{
			name: "private",
			op: 18,
			type: ["number", "offset"],
			value: [0, 0]
		},
		{
			name: "ros",
			op: 1230,
			type: [
				"SID",
				"SID",
				"number"
			]
		},
		{
			name: "cidFontVersion",
			op: 1231,
			type: "number",
			value: 0
		},
		{
			name: "cidFontRevision",
			op: 1232,
			type: "number",
			value: 0
		},
		{
			name: "cidFontType",
			op: 1233,
			type: "number",
			value: 0
		},
		{
			name: "cidCount",
			op: 1234,
			type: "number",
			value: 8720
		},
		{
			name: "uidBase",
			op: 1235,
			type: "number"
		},
		{
			name: "fdArray",
			op: 1236,
			type: "offset"
		},
		{
			name: "fdSelect",
			op: 1237,
			type: "offset"
		},
		{
			name: "fontName",
			op: 1238,
			type: "SID"
		}
	], Lm = [
		{
			name: "subrs",
			op: 19,
			type: "offset",
			value: 0
		},
		{
			name: "defaultWidthX",
			op: 20,
			type: "number",
			value: 0
		},
		{
			name: "nominalWidthX",
			op: 21,
			type: "number",
			value: 0
		}
	], Rm = {
		parse: xl,
		make: Pl
	}, zm = {
		parse: Fl,
		make: Il
	}, Bm = {
		parse: Ll,
		make: Rl
	}, Vm = {
		parse: Vl,
		make: Hl
	}, Hm = {
		make: Ul,
		parse: Wl
	}, Um = {
		parse: Gl,
		make: Kl
	}, Wm = [
		"copyright",
		"fontFamily",
		"fontSubfamily",
		"uniqueID",
		"fullName",
		"version",
		"postScriptName",
		"trademark",
		"manufacturer",
		"designer",
		"description",
		"manufacturerURL",
		"designerURL",
		"license",
		"licenseURL",
		"reserved",
		"preferredFamily",
		"preferredSubfamily",
		"compatibleFullName",
		"sampleText",
		"postScriptFindFontName",
		"wwsFamily",
		"wwsSubfamily"
	], Gm = {
		0: "en",
		1: "fr",
		2: "de",
		3: "it",
		4: "nl",
		5: "sv",
		6: "es",
		7: "da",
		8: "pt",
		9: "no",
		10: "he",
		11: "ja",
		12: "ar",
		13: "fi",
		14: "el",
		15: "is",
		16: "mt",
		17: "tr",
		18: "hr",
		19: "zh-Hant",
		20: "ur",
		21: "hi",
		22: "th",
		23: "ko",
		24: "lt",
		25: "pl",
		26: "hu",
		27: "es",
		28: "lv",
		29: "se",
		30: "fo",
		31: "fa",
		32: "ru",
		33: "zh",
		34: "nl-BE",
		35: "ga",
		36: "sq",
		37: "ro",
		38: "cz",
		39: "sk",
		40: "si",
		41: "yi",
		42: "sr",
		43: "mk",
		44: "bg",
		45: "uk",
		46: "be",
		47: "uz",
		48: "kk",
		49: "az-Cyrl",
		50: "az-Arab",
		51: "hy",
		52: "ka",
		53: "mo",
		54: "ky",
		55: "tg",
		56: "tk",
		57: "mn-CN",
		58: "mn",
		59: "ps",
		60: "ks",
		61: "ku",
		62: "sd",
		63: "bo",
		64: "ne",
		65: "sa",
		66: "mr",
		67: "bn",
		68: "as",
		69: "gu",
		70: "pa",
		71: "or",
		72: "ml",
		73: "kn",
		74: "ta",
		75: "te",
		76: "si",
		77: "my",
		78: "km",
		79: "lo",
		80: "vi",
		81: "id",
		82: "tl",
		83: "ms",
		84: "ms-Arab",
		85: "am",
		86: "ti",
		87: "om",
		88: "so",
		89: "sw",
		90: "rw",
		91: "rn",
		92: "ny",
		93: "mg",
		94: "eo",
		128: "cy",
		129: "eu",
		130: "ca",
		131: "la",
		132: "qu",
		133: "gn",
		134: "ay",
		135: "tt",
		136: "ug",
		137: "dz",
		138: "jv",
		139: "su",
		140: "gl",
		141: "af",
		142: "br",
		143: "iu",
		144: "gd",
		145: "gv",
		146: "ga",
		147: "to",
		148: "el-polyton",
		149: "kl",
		150: "az",
		151: "nn"
	}, Km = {
		0: 0,
		1: 0,
		2: 0,
		3: 0,
		4: 0,
		5: 0,
		6: 0,
		7: 0,
		8: 0,
		9: 0,
		10: 5,
		11: 1,
		12: 4,
		13: 0,
		14: 6,
		15: 0,
		16: 0,
		17: 0,
		18: 0,
		19: 2,
		20: 4,
		21: 9,
		22: 21,
		23: 3,
		24: 29,
		25: 29,
		26: 29,
		27: 29,
		28: 29,
		29: 0,
		30: 0,
		31: 4,
		32: 7,
		33: 25,
		34: 0,
		35: 0,
		36: 0,
		37: 0,
		38: 29,
		39: 29,
		40: 0,
		41: 5,
		42: 7,
		43: 7,
		44: 7,
		45: 7,
		46: 7,
		47: 7,
		48: 7,
		49: 7,
		50: 4,
		51: 24,
		52: 23,
		53: 7,
		54: 7,
		55: 7,
		56: 7,
		57: 27,
		58: 7,
		59: 4,
		60: 4,
		61: 4,
		62: 4,
		63: 26,
		64: 9,
		65: 9,
		66: 9,
		67: 13,
		68: 13,
		69: 11,
		70: 10,
		71: 12,
		72: 17,
		73: 16,
		74: 14,
		75: 15,
		76: 18,
		77: 19,
		78: 20,
		79: 22,
		80: 30,
		81: 0,
		82: 0,
		83: 0,
		84: 4,
		85: 28,
		86: 28,
		87: 28,
		88: 0,
		89: 0,
		90: 0,
		91: 0,
		92: 0,
		93: 0,
		94: 0,
		128: 0,
		129: 0,
		130: 0,
		131: 0,
		132: 0,
		133: 0,
		134: 0,
		135: 7,
		136: 4,
		137: 26,
		138: 0,
		139: 0,
		140: 0,
		141: 0,
		142: 0,
		143: 28,
		144: 0,
		145: 0,
		146: 0,
		147: 0,
		148: 6,
		149: 0,
		150: 0,
		151: 0
	}, qm = {
		1078: "af",
		1052: "sq",
		1156: "gsw",
		1118: "am",
		5121: "ar-DZ",
		15361: "ar-BH",
		3073: "ar",
		2049: "ar-IQ",
		11265: "ar-JO",
		13313: "ar-KW",
		12289: "ar-LB",
		4097: "ar-LY",
		6145: "ary",
		8193: "ar-OM",
		16385: "ar-QA",
		1025: "ar-SA",
		10241: "ar-SY",
		7169: "aeb",
		14337: "ar-AE",
		9217: "ar-YE",
		1067: "hy",
		1101: "as",
		2092: "az-Cyrl",
		1068: "az",
		1133: "ba",
		1069: "eu",
		1059: "be",
		2117: "bn",
		1093: "bn-IN",
		8218: "bs-Cyrl",
		5146: "bs",
		1150: "br",
		1026: "bg",
		1027: "ca",
		3076: "zh-HK",
		5124: "zh-MO",
		2052: "zh",
		4100: "zh-SG",
		1028: "zh-TW",
		1155: "co",
		1050: "hr",
		4122: "hr-BA",
		1029: "cs",
		1030: "da",
		1164: "prs",
		1125: "dv",
		2067: "nl-BE",
		1043: "nl",
		3081: "en-AU",
		10249: "en-BZ",
		4105: "en-CA",
		9225: "en-029",
		16393: "en-IN",
		6153: "en-IE",
		8201: "en-JM",
		17417: "en-MY",
		5129: "en-NZ",
		13321: "en-PH",
		18441: "en-SG",
		7177: "en-ZA",
		11273: "en-TT",
		2057: "en-GB",
		1033: "en",
		12297: "en-ZW",
		1061: "et",
		1080: "fo",
		1124: "fil",
		1035: "fi",
		2060: "fr-BE",
		3084: "fr-CA",
		1036: "fr",
		5132: "fr-LU",
		6156: "fr-MC",
		4108: "fr-CH",
		1122: "fy",
		1110: "gl",
		1079: "ka",
		3079: "de-AT",
		1031: "de",
		5127: "de-LI",
		4103: "de-LU",
		2055: "de-CH",
		1032: "el",
		1135: "kl",
		1095: "gu",
		1128: "ha",
		1037: "he",
		1081: "hi",
		1038: "hu",
		1039: "is",
		1136: "ig",
		1057: "id",
		1117: "iu",
		2141: "iu-Latn",
		2108: "ga",
		1076: "xh",
		1077: "zu",
		1040: "it",
		2064: "it-CH",
		1041: "ja",
		1099: "kn",
		1087: "kk",
		1107: "km",
		1158: "quc",
		1159: "rw",
		1089: "sw",
		1111: "kok",
		1042: "ko",
		1088: "ky",
		1108: "lo",
		1062: "lv",
		1063: "lt",
		2094: "dsb",
		1134: "lb",
		1071: "mk",
		2110: "ms-BN",
		1086: "ms",
		1100: "ml",
		1082: "mt",
		1153: "mi",
		1146: "arn",
		1102: "mr",
		1148: "moh",
		1104: "mn",
		2128: "mn-CN",
		1121: "ne",
		1044: "nb",
		2068: "nn",
		1154: "oc",
		1096: "or",
		1123: "ps",
		1045: "pl",
		1046: "pt",
		2070: "pt-PT",
		1094: "pa",
		1131: "qu-BO",
		2155: "qu-EC",
		3179: "qu",
		1048: "ro",
		1047: "rm",
		1049: "ru",
		9275: "smn",
		4155: "smj-NO",
		5179: "smj",
		3131: "se-FI",
		1083: "se",
		2107: "se-SE",
		8251: "sms",
		6203: "sma-NO",
		7227: "sms",
		1103: "sa",
		7194: "sr-Cyrl-BA",
		3098: "sr",
		6170: "sr-Latn-BA",
		2074: "sr-Latn",
		1132: "nso",
		1074: "tn",
		1115: "si",
		1051: "sk",
		1060: "sl",
		11274: "es-AR",
		16394: "es-BO",
		13322: "es-CL",
		9226: "es-CO",
		5130: "es-CR",
		7178: "es-DO",
		12298: "es-EC",
		17418: "es-SV",
		4106: "es-GT",
		18442: "es-HN",
		2058: "es-MX",
		19466: "es-NI",
		6154: "es-PA",
		15370: "es-PY",
		10250: "es-PE",
		20490: "es-PR",
		3082: "es",
		1034: "es",
		21514: "es-US",
		14346: "es-UY",
		8202: "es-VE",
		2077: "sv-FI",
		1053: "sv",
		1114: "syr",
		1064: "tg",
		2143: "tzm",
		1097: "ta",
		1092: "tt",
		1098: "te",
		1054: "th",
		1105: "bo",
		1055: "tr",
		1090: "tk",
		1152: "ug",
		1058: "uk",
		1070: "hsb",
		1056: "ur",
		2115: "uz-Cyrl",
		1091: "uz",
		1066: "vi",
		1106: "cy",
		1160: "wo",
		1157: "sah",
		1144: "ii",
		1130: "yo"
	}, Jm = "utf-16", Ym = {
		0: "macintosh",
		1: "x-mac-japanese",
		2: "x-mac-chinesetrad",
		3: "x-mac-korean",
		6: "x-mac-greek",
		7: "x-mac-cyrillic",
		9: "x-mac-devanagai",
		10: "x-mac-gurmukhi",
		11: "x-mac-gujarati",
		12: "x-mac-oriya",
		13: "x-mac-bengali",
		14: "x-mac-tamil",
		15: "x-mac-telugu",
		16: "x-mac-kannada",
		17: "x-mac-malayalam",
		18: "x-mac-sinhalese",
		19: "x-mac-burmese",
		20: "x-mac-khmer",
		21: "x-mac-thai",
		22: "x-mac-lao",
		23: "x-mac-georgian",
		24: "x-mac-armenian",
		25: "x-mac-chinesesimp",
		26: "x-mac-tibetan",
		27: "x-mac-mongolian",
		28: "x-mac-ethiopic",
		29: "x-mac-ce",
		30: "x-mac-vietnamese",
		31: "x-mac-extarabic"
	}, Xm = {
		15: "x-mac-icelandic",
		17: "x-mac-turkish",
		18: "x-mac-croatian",
		24: "x-mac-ce",
		25: "x-mac-ce",
		26: "x-mac-ce",
		27: "x-mac-ce",
		28: "x-mac-ce",
		30: "x-mac-icelandic",
		37: "x-mac-romanian",
		38: "x-mac-ce",
		39: "x-mac-ce",
		40: "x-mac-ce",
		143: "x-mac-inuit",
		146: "x-mac-gaelic"
	}, Zm = {
		parse: Yl,
		make: eu
	}, Qm = [
		{
			begin: 0,
			end: 127
		},
		{
			begin: 128,
			end: 255
		},
		{
			begin: 256,
			end: 383
		},
		{
			begin: 384,
			end: 591
		},
		{
			begin: 592,
			end: 687
		},
		{
			begin: 688,
			end: 767
		},
		{
			begin: 768,
			end: 879
		},
		{
			begin: 880,
			end: 1023
		},
		{
			begin: 11392,
			end: 11519
		},
		{
			begin: 1024,
			end: 1279
		},
		{
			begin: 1328,
			end: 1423
		},
		{
			begin: 1424,
			end: 1535
		},
		{
			begin: 42240,
			end: 42559
		},
		{
			begin: 1536,
			end: 1791
		},
		{
			begin: 1984,
			end: 2047
		},
		{
			begin: 2304,
			end: 2431
		},
		{
			begin: 2432,
			end: 2559
		},
		{
			begin: 2560,
			end: 2687
		},
		{
			begin: 2688,
			end: 2815
		},
		{
			begin: 2816,
			end: 2943
		},
		{
			begin: 2944,
			end: 3071
		},
		{
			begin: 3072,
			end: 3199
		},
		{
			begin: 3200,
			end: 3327
		},
		{
			begin: 3328,
			end: 3455
		},
		{
			begin: 3584,
			end: 3711
		},
		{
			begin: 3712,
			end: 3839
		},
		{
			begin: 4256,
			end: 4351
		},
		{
			begin: 6912,
			end: 7039
		},
		{
			begin: 4352,
			end: 4607
		},
		{
			begin: 7680,
			end: 7935
		},
		{
			begin: 7936,
			end: 8191
		},
		{
			begin: 8192,
			end: 8303
		},
		{
			begin: 8304,
			end: 8351
		},
		{
			begin: 8352,
			end: 8399
		},
		{
			begin: 8400,
			end: 8447
		},
		{
			begin: 8448,
			end: 8527
		},
		{
			begin: 8528,
			end: 8591
		},
		{
			begin: 8592,
			end: 8703
		},
		{
			begin: 8704,
			end: 8959
		},
		{
			begin: 8960,
			end: 9215
		},
		{
			begin: 9216,
			end: 9279
		},
		{
			begin: 9280,
			end: 9311
		},
		{
			begin: 9312,
			end: 9471
		},
		{
			begin: 9472,
			end: 9599
		},
		{
			begin: 9600,
			end: 9631
		},
		{
			begin: 9632,
			end: 9727
		},
		{
			begin: 9728,
			end: 9983
		},
		{
			begin: 9984,
			end: 10175
		},
		{
			begin: 12288,
			end: 12351
		},
		{
			begin: 12352,
			end: 12447
		},
		{
			begin: 12448,
			end: 12543
		},
		{
			begin: 12544,
			end: 12591
		},
		{
			begin: 12592,
			end: 12687
		},
		{
			begin: 43072,
			end: 43135
		},
		{
			begin: 12800,
			end: 13055
		},
		{
			begin: 13056,
			end: 13311
		},
		{
			begin: 44032,
			end: 55215
		},
		{
			begin: 55296,
			end: 57343
		},
		{
			begin: 67840,
			end: 67871
		},
		{
			begin: 19968,
			end: 40959
		},
		{
			begin: 57344,
			end: 63743
		},
		{
			begin: 12736,
			end: 12783
		},
		{
			begin: 64256,
			end: 64335
		},
		{
			begin: 64336,
			end: 65023
		},
		{
			begin: 65056,
			end: 65071
		},
		{
			begin: 65040,
			end: 65055
		},
		{
			begin: 65104,
			end: 65135
		},
		{
			begin: 65136,
			end: 65279
		},
		{
			begin: 65280,
			end: 65519
		},
		{
			begin: 65520,
			end: 65535
		},
		{
			begin: 3840,
			end: 4095
		},
		{
			begin: 1792,
			end: 1871
		},
		{
			begin: 1920,
			end: 1983
		},
		{
			begin: 3456,
			end: 3583
		},
		{
			begin: 4096,
			end: 4255
		},
		{
			begin: 4608,
			end: 4991
		},
		{
			begin: 5024,
			end: 5119
		},
		{
			begin: 5120,
			end: 5759
		},
		{
			begin: 5760,
			end: 5791
		},
		{
			begin: 5792,
			end: 5887
		},
		{
			begin: 6016,
			end: 6143
		},
		{
			begin: 6144,
			end: 6319
		},
		{
			begin: 10240,
			end: 10495
		},
		{
			begin: 40960,
			end: 42127
		},
		{
			begin: 5888,
			end: 5919
		},
		{
			begin: 66304,
			end: 66351
		},
		{
			begin: 66352,
			end: 66383
		},
		{
			begin: 66560,
			end: 66639
		},
		{
			begin: 118784,
			end: 119039
		},
		{
			begin: 119808,
			end: 120831
		},
		{
			begin: 1044480,
			end: 1048573
		},
		{
			begin: 65024,
			end: 65039
		},
		{
			begin: 917504,
			end: 917631
		},
		{
			begin: 6400,
			end: 6479
		},
		{
			begin: 6480,
			end: 6527
		},
		{
			begin: 6528,
			end: 6623
		},
		{
			begin: 6656,
			end: 6687
		},
		{
			begin: 11264,
			end: 11359
		},
		{
			begin: 11568,
			end: 11647
		},
		{
			begin: 19904,
			end: 19967
		},
		{
			begin: 43008,
			end: 43055
		},
		{
			begin: 65536,
			end: 65663
		},
		{
			begin: 65856,
			end: 65935
		},
		{
			begin: 66432,
			end: 66463
		},
		{
			begin: 66464,
			end: 66527
		},
		{
			begin: 66640,
			end: 66687
		},
		{
			begin: 66688,
			end: 66735
		},
		{
			begin: 67584,
			end: 67647
		},
		{
			begin: 68096,
			end: 68191
		},
		{
			begin: 119552,
			end: 119647
		},
		{
			begin: 73728,
			end: 74751
		},
		{
			begin: 119648,
			end: 119679
		},
		{
			begin: 7040,
			end: 7103
		},
		{
			begin: 7168,
			end: 7247
		},
		{
			begin: 7248,
			end: 7295
		},
		{
			begin: 43136,
			end: 43231
		},
		{
			begin: 43264,
			end: 43311
		},
		{
			begin: 43312,
			end: 43359
		},
		{
			begin: 43520,
			end: 43615
		},
		{
			begin: 65936,
			end: 65999
		},
		{
			begin: 66e3,
			end: 66047
		},
		{
			begin: 66208,
			end: 66271
		},
		{
			begin: 127024,
			end: 127135
		}
	], $m = {
		parse: nu,
		make: ru,
		unicodeRanges: Qm,
		getUnicodeRange: tu
	}, eh = {
		parse: iu,
		make: au
	}, th = Array(9), th[1] = function() {
		var e = this.offset + this.relativeOffset, t = this.parseUShort();
		if (t === 1) return {
			substFormat: 1,
			coverage: this.parsePointer(G.coverage),
			deltaGlyphId: this.parseUShort()
		};
		if (t === 2) return {
			substFormat: 2,
			coverage: this.parsePointer(G.coverage),
			substitute: this.parseOffset16List()
		};
		_m.assert(!1, "0x" + e.toString(16) + ": lookup type 1 format must be 1 or 2.");
	}, th[2] = function() {
		var e = this.parseUShort();
		return _m.argument(e === 1, "GSUB Multiple Substitution Subtable identifier-format must be 1"), {
			substFormat: e,
			coverage: this.parsePointer(G.coverage),
			sequences: this.parseListOfLists()
		};
	}, th[3] = function() {
		var e = this.parseUShort();
		return _m.argument(e === 1, "GSUB Alternate Substitution Subtable identifier-format must be 1"), {
			substFormat: e,
			coverage: this.parsePointer(G.coverage),
			alternateSets: this.parseListOfLists()
		};
	}, th[4] = function() {
		var e = this.parseUShort();
		return _m.argument(e === 1, "GSUB ligature table identifier-format must be 1"), {
			substFormat: e,
			coverage: this.parsePointer(G.coverage),
			ligatureSets: this.parseListOfLists(function() {
				return {
					ligGlyph: this.parseUShort(),
					components: this.parseUShortList(this.parseUShort() - 1)
				};
			})
		};
	}, nh = {
		sequenceIndex: G.uShort,
		lookupListIndex: G.uShort
	}, th[5] = function() {
		var e = this.offset + this.relativeOffset, t = this.parseUShort();
		if (t === 1) return {
			substFormat: t,
			coverage: this.parsePointer(G.coverage),
			ruleSets: this.parseListOfLists(function() {
				var e = this.parseUShort(), t = this.parseUShort();
				return {
					input: this.parseUShortList(e - 1),
					lookupRecords: this.parseRecordList(t, nh)
				};
			})
		};
		if (t === 2) return {
			substFormat: t,
			coverage: this.parsePointer(G.coverage),
			classDef: this.parsePointer(G.classDef),
			classSets: this.parseListOfLists(function() {
				var e = this.parseUShort(), t = this.parseUShort();
				return {
					classes: this.parseUShortList(e - 1),
					lookupRecords: this.parseRecordList(t, nh)
				};
			})
		};
		if (t === 3) {
			var n = this.parseUShort(), r = this.parseUShort();
			return {
				substFormat: t,
				coverages: this.parseList(n, G.pointer(G.coverage)),
				lookupRecords: this.parseRecordList(r, nh)
			};
		}
		_m.assert(!1, "0x" + e.toString(16) + ": lookup type 5 format must be 1, 2 or 3.");
	}, th[6] = function() {
		var e = this.offset + this.relativeOffset, t = this.parseUShort();
		if (t === 1) return {
			substFormat: 1,
			coverage: this.parsePointer(G.coverage),
			chainRuleSets: this.parseListOfLists(function() {
				return {
					backtrack: this.parseUShortList(),
					input: this.parseUShortList(this.parseShort() - 1),
					lookahead: this.parseUShortList(),
					lookupRecords: this.parseRecordList(nh)
				};
			})
		};
		if (t === 2) return {
			substFormat: 2,
			coverage: this.parsePointer(G.coverage),
			backtrackClassDef: this.parsePointer(G.classDef),
			inputClassDef: this.parsePointer(G.classDef),
			lookaheadClassDef: this.parsePointer(G.classDef),
			chainClassSet: this.parseListOfLists(function() {
				return {
					backtrack: this.parseUShortList(),
					input: this.parseUShortList(this.parseShort() - 1),
					lookahead: this.parseUShortList(),
					lookupRecords: this.parseRecordList(nh)
				};
			})
		};
		if (t === 3) return {
			substFormat: 3,
			backtrackCoverage: this.parseList(G.pointer(G.coverage)),
			inputCoverage: this.parseList(G.pointer(G.coverage)),
			lookaheadCoverage: this.parseList(G.pointer(G.coverage)),
			lookupRecords: this.parseRecordList(nh)
		};
		_m.assert(!1, "0x" + e.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
	}, th[7] = function() {
		var e = this.parseUShort();
		_m.argument(e === 1, "GSUB Extension Substitution subtable identifier-format must be 1");
		var t = this.parseUShort(), n = new G(this.data, this.offset + this.parseULong());
		return {
			substFormat: 1,
			lookupType: t,
			extension: th[t].call(n)
		};
	}, th[8] = function() {
		var e = this.parseUShort();
		return _m.argument(e === 1, "GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"), {
			substFormat: e,
			coverage: this.parsePointer(G.coverage),
			backtrackCoverage: this.parseList(G.pointer(G.coverage)),
			lookaheadCoverage: this.parseList(G.pointer(G.coverage)),
			substitutes: this.parseUShortList()
		};
	}, rh = Array(9), rh[1] = function(e) {
		return e.substFormat === 1 ? new Y.Table("substitutionTable", [
			{
				name: "substFormat",
				type: "USHORT",
				value: 1
			},
			{
				name: "coverage",
				type: "TABLE",
				value: new Y.Coverage(e.coverage)
			},
			{
				name: "deltaGlyphID",
				type: "USHORT",
				value: e.deltaGlyphId
			}
		]) : new Y.Table("substitutionTable", [{
			name: "substFormat",
			type: "USHORT",
			value: 2
		}, {
			name: "coverage",
			type: "TABLE",
			value: new Y.Coverage(e.coverage)
		}].concat(Y.ushortList("substitute", e.substitute)));
	}, rh[2] = function(e) {
		return _m.assert(e.substFormat === 1, "Lookup type 2 substFormat must be 1."), new Y.Table("substitutionTable", [{
			name: "substFormat",
			type: "USHORT",
			value: 1
		}, {
			name: "coverage",
			type: "TABLE",
			value: new Y.Coverage(e.coverage)
		}].concat(Y.tableList("seqSet", e.sequences, function(e) {
			return new Y.Table("sequenceSetTable", Y.ushortList("sequence", e));
		})));
	}, rh[3] = function(e) {
		return _m.assert(e.substFormat === 1, "Lookup type 3 substFormat must be 1."), new Y.Table("substitutionTable", [{
			name: "substFormat",
			type: "USHORT",
			value: 1
		}, {
			name: "coverage",
			type: "TABLE",
			value: new Y.Coverage(e.coverage)
		}].concat(Y.tableList("altSet", e.alternateSets, function(e) {
			return new Y.Table("alternateSetTable", Y.ushortList("alternate", e));
		})));
	}, rh[4] = function(e) {
		return _m.assert(e.substFormat === 1, "Lookup type 4 substFormat must be 1."), new Y.Table("substitutionTable", [{
			name: "substFormat",
			type: "USHORT",
			value: 1
		}, {
			name: "coverage",
			type: "TABLE",
			value: new Y.Coverage(e.coverage)
		}].concat(Y.tableList("ligSet", e.ligatureSets, function(e) {
			return new Y.Table("ligatureSetTable", Y.tableList("ligature", e, function(e) {
				return new Y.Table("ligatureTable", [{
					name: "ligGlyph",
					type: "USHORT",
					value: e.ligGlyph
				}].concat(Y.ushortList("component", e.components, e.components.length + 1)));
			}));
		})));
	}, rh[6] = function(e) {
		if (e.substFormat === 1) return new Y.Table("chainContextTable", [{
			name: "substFormat",
			type: "USHORT",
			value: e.substFormat
		}, {
			name: "coverage",
			type: "TABLE",
			value: new Y.Coverage(e.coverage)
		}].concat(Y.tableList("chainRuleSet", e.chainRuleSets, function(e) {
			return new Y.Table("chainRuleSetTable", Y.tableList("chainRule", e, function(e) {
				var t = Y.ushortList("backtrackGlyph", e.backtrack, e.backtrack.length).concat(Y.ushortList("inputGlyph", e.input, e.input.length + 1)).concat(Y.ushortList("lookaheadGlyph", e.lookahead, e.lookahead.length)).concat(Y.ushortList("substitution", [], e.lookupRecords.length));
				return e.lookupRecords.forEach(function(e, n) {
					t = t.concat({
						name: "sequenceIndex" + n,
						type: "USHORT",
						value: e.sequenceIndex
					}).concat({
						name: "lookupListIndex" + n,
						type: "USHORT",
						value: e.lookupListIndex
					});
				}), new Y.Table("chainRuleTable", t);
			}));
		})));
		if (e.substFormat === 2) _m.assert(!1, "lookup type 6 format 2 is not yet supported.");
		else if (e.substFormat === 3) {
			var t = [{
				name: "substFormat",
				type: "USHORT",
				value: e.substFormat
			}];
			return t.push({
				name: "backtrackGlyphCount",
				type: "USHORT",
				value: e.backtrackCoverage.length
			}), e.backtrackCoverage.forEach(function(e, n) {
				t.push({
					name: "backtrackCoverage" + n,
					type: "TABLE",
					value: new Y.Coverage(e)
				});
			}), t.push({
				name: "inputGlyphCount",
				type: "USHORT",
				value: e.inputCoverage.length
			}), e.inputCoverage.forEach(function(e, n) {
				t.push({
					name: "inputCoverage" + n,
					type: "TABLE",
					value: new Y.Coverage(e)
				});
			}), t.push({
				name: "lookaheadGlyphCount",
				type: "USHORT",
				value: e.lookaheadCoverage.length
			}), e.lookaheadCoverage.forEach(function(e, n) {
				t.push({
					name: "lookaheadCoverage" + n,
					type: "TABLE",
					value: new Y.Coverage(e)
				});
			}), t.push({
				name: "substitutionCount",
				type: "USHORT",
				value: e.lookupRecords.length
			}), e.lookupRecords.forEach(function(e, n) {
				t = t.concat({
					name: "sequenceIndex" + n,
					type: "USHORT",
					value: e.sequenceIndex
				}).concat({
					name: "lookupListIndex" + n,
					type: "USHORT",
					value: e.lookupListIndex
				});
			}), new Y.Table("chainContextTable", t);
		}
		_m.assert(!1, "lookup type 6 format must be 1, 2 or 3.");
	}, ih = {
		parse: ou,
		make: su
	}, ah = {
		parse: cu,
		make: lu
	}, oh = {
		make: pu,
		fontToTable: gu,
		computeCheckSum: du
	}, bu.prototype = {
		searchTag: _u,
		binSearch: vu,
		getTable: function(e) {
			var t = this.font.tables[this.tableName];
			return !t && e && (t = this.font.tables[this.tableName] = this.createDefaultTable()), t;
		},
		getScriptNames: function() {
			var e = this.getTable();
			return e ? e.scripts.map(function(e) {
				return e.tag;
			}) : [];
		},
		getDefaultScriptName: function() {
			var e = this.getTable();
			if (e) {
				for (var t = !1, n = 0; n < e.scripts.length; n++) {
					var r = e.scripts[n].tag;
					if (r === "DFLT") return r;
					r === "latn" && (t = !0);
				}
				if (t) return "latn";
			}
		},
		getScriptTable: function(e, t) {
			var n = this.getTable(t);
			if (n) {
				e ||= "DFLT";
				var r = n.scripts, i = _u(n.scripts, e);
				if (i >= 0) return r[i].script;
				if (t) {
					var a = {
						tag: e,
						script: {
							defaultLangSys: {
								reserved: 0,
								reqFeatureIndex: 65535,
								featureIndexes: []
							},
							langSysRecords: []
						}
					};
					return r.splice(-1 - i, 0, a), a.script;
				}
			}
		},
		getLangSysTable: function(e, t, n) {
			var r = this.getScriptTable(e, n);
			if (r) {
				if (!t || t === "dflt" || t === "DFLT") return r.defaultLangSys;
				var i = _u(r.langSysRecords, t);
				if (i >= 0) return r.langSysRecords[i].langSys;
				if (n) {
					var a = {
						tag: t,
						langSys: {
							reserved: 0,
							reqFeatureIndex: 65535,
							featureIndexes: []
						}
					};
					return r.langSysRecords.splice(-1 - i, 0, a), a.langSys;
				}
			}
		},
		getFeatureTable: function(e, t, n, r) {
			var i = this.getLangSysTable(e, t, r);
			if (i) {
				for (var a, o = i.featureIndexes, s = this.font.tables[this.tableName].features, c = 0; c < o.length; c++) if (a = s[o[c]], a.tag === n) return a.feature;
				if (r) {
					var l = s.length;
					return _m.assert(l === 0 || n >= s[l - 1].tag, "Features must be added in alphabetical order."), a = {
						tag: n,
						feature: {
							params: 0,
							lookupListIndexes: []
						}
					}, s.push(a), o.push(l), a.feature;
				}
			}
		},
		getLookupTables: function(e, t, n, r, i) {
			var a = this.getFeatureTable(e, t, n, i), o = [];
			if (a) {
				for (var s, c = a.lookupListIndexes, l = this.font.tables[this.tableName].lookups, u = 0; u < c.length; u++) s = l[c[u]], s.lookupType === r && o.push(s);
				if (o.length === 0 && i) {
					s = {
						lookupType: r,
						lookupFlag: 0,
						subtables: [],
						markFilteringSet: void 0
					};
					var d = l.length;
					return l.push(s), c.push(d), [s];
				}
			}
			return o;
		},
		getGlyphClass: function(e, t) {
			switch (e.format) {
				case 1: return e.startGlyph <= t && t < e.startGlyph + e.classes.length ? e.classes[t - e.startGlyph] : 0;
				case 2:
					var n = yu(e.ranges, t);
					return n ? n.classId : 0;
			}
		},
		getCoverageIndex: function(e, t) {
			switch (e.format) {
				case 1:
					var n = vu(e.glyphs, t);
					return n >= 0 ? n : -1;
				case 2:
					var r = yu(e.ranges, t);
					return r ? r.index + t - r.start : -1;
			}
		},
		expandCoverage: function(e) {
			if (e.format === 1) return e.glyphs;
			for (var t = [], n = e.ranges, r = 0; r < n.length; r++) for (var i = n[r], a = i.start, o = i.end, s = a; s <= o; s++) t.push(s);
			return t;
		}
	}, xu.prototype = bu.prototype, xu.prototype.init = function() {
		var e = this.getDefaultScriptName();
		this.defaultKerningTables = this.getKerningTables(e);
	}, xu.prototype.getKerningValue = function(e, t, n) {
		for (var r = 0; r < e.length; r++) for (var i = e[r].subtables, a = 0; a < i.length; a++) {
			var o = i[a], s = this.getCoverageIndex(o.coverage, t);
			if (!(s < 0)) switch (o.posFormat) {
				case 1:
					for (var c = o.pairSets[s], l = 0; l < c.length; l++) {
						var u = c[l];
						if (u.secondGlyph === n) return u.value1 && u.value1.xAdvance || 0;
					}
					break;
				case 2:
					var d = this.getGlyphClass(o.classDef1, t), f = this.getGlyphClass(o.classDef2, n), p = o.classRecords[d][f];
					return p.value1 && p.value1.xAdvance || 0;
			}
		}
		return 0;
	}, xu.prototype.getKerningTables = function(e, t) {
		if (this.font.tables.gpos) return this.getLookupTables(e, t, "kern", 2);
	}, Su.prototype = bu.prototype, Su.prototype.createDefaultTable = function() {
		return {
			version: 1,
			scripts: [{
				tag: "DFLT",
				script: {
					defaultLangSys: {
						reserved: 0,
						reqFeatureIndex: 65535,
						featureIndexes: []
					},
					langSysRecords: []
				}
			}],
			features: [],
			lookups: []
		};
	}, Su.prototype.getSingle = function(e, t, n) {
		for (var r = [], i = this.getLookupTables(t, n, e, 1), a = 0; a < i.length; a++) for (var o = i[a].subtables, s = 0; s < o.length; s++) {
			var c = o[s], l = this.expandCoverage(c.coverage), u = void 0;
			if (c.substFormat === 1) {
				var d = c.deltaGlyphId;
				for (u = 0; u < l.length; u++) {
					var f = l[u];
					r.push({
						sub: f,
						by: f + d
					});
				}
			} else {
				var p = c.substitute;
				for (u = 0; u < l.length; u++) r.push({
					sub: l[u],
					by: p[u]
				});
			}
		}
		return r;
	}, Su.prototype.getMultiple = function(e, t, n) {
		for (var r = [], i = this.getLookupTables(t, n, e, 2), a = 0; a < i.length; a++) for (var o = i[a].subtables, s = 0; s < o.length; s++) {
			var c = o[s], l = this.expandCoverage(c.coverage), u = void 0;
			for (u = 0; u < l.length; u++) {
				var d = l[u], f = c.sequences[u];
				r.push({
					sub: d,
					by: f
				});
			}
		}
		return r;
	}, Su.prototype.getAlternates = function(e, t, n) {
		for (var r = [], i = this.getLookupTables(t, n, e, 3), a = 0; a < i.length; a++) for (var o = i[a].subtables, s = 0; s < o.length; s++) for (var c = o[s], l = this.expandCoverage(c.coverage), u = c.alternateSets, d = 0; d < l.length; d++) r.push({
			sub: l[d],
			by: u[d]
		});
		return r;
	}, Su.prototype.getLigatures = function(e, t, n) {
		for (var r = [], i = this.getLookupTables(t, n, e, 4), a = 0; a < i.length; a++) for (var o = i[a].subtables, s = 0; s < o.length; s++) for (var c = o[s], l = this.expandCoverage(c.coverage), u = c.ligatureSets, d = 0; d < l.length; d++) for (var f = l[d], p = u[d], m = 0; m < p.length; m++) {
			var h = p[m];
			r.push({
				sub: [f].concat(h.components),
				by: h.ligGlyph
			});
		}
		return r;
	}, Su.prototype.addSingle = function(e, t, n, r) {
		var i = this.getLookupTables(n, r, e, 1, !0)[0], a = wu(i, 2, {
			substFormat: 2,
			coverage: {
				format: 1,
				glyphs: []
			},
			substitute: []
		});
		_m.assert(a.coverage.format === 1, "Single: unable to modify coverage table format " + a.coverage.format);
		var o = t.sub, s = this.binSearch(a.coverage.glyphs, o);
		s < 0 && (s = -1 - s, a.coverage.glyphs.splice(s, 0, o), a.substitute.splice(s, 0, 0)), a.substitute[s] = t.by;
	}, Su.prototype.addMultiple = function(e, t, n, r) {
		_m.assert(t.by instanceof Array && t.by.length > 1, "Multiple: \"by\" must be an array of two or more ids");
		var i = this.getLookupTables(n, r, e, 2, !0)[0], a = wu(i, 1, {
			substFormat: 1,
			coverage: {
				format: 1,
				glyphs: []
			},
			sequences: []
		});
		_m.assert(a.coverage.format === 1, "Multiple: unable to modify coverage table format " + a.coverage.format);
		var o = t.sub, s = this.binSearch(a.coverage.glyphs, o);
		s < 0 && (s = -1 - s, a.coverage.glyphs.splice(s, 0, o), a.sequences.splice(s, 0, 0)), a.sequences[s] = t.by;
	}, Su.prototype.addAlternate = function(e, t, n, r) {
		var i = this.getLookupTables(n, r, e, 3, !0)[0], a = wu(i, 1, {
			substFormat: 1,
			coverage: {
				format: 1,
				glyphs: []
			},
			alternateSets: []
		});
		_m.assert(a.coverage.format === 1, "Alternate: unable to modify coverage table format " + a.coverage.format);
		var o = t.sub, s = this.binSearch(a.coverage.glyphs, o);
		s < 0 && (s = -1 - s, a.coverage.glyphs.splice(s, 0, o), a.alternateSets.splice(s, 0, 0)), a.alternateSets[s] = t.by;
	}, Su.prototype.addLigature = function(e, t, n, r) {
		var i = this.getLookupTables(n, r, e, 4, !0)[0], a = i.subtables[0];
		a || (a = {
			substFormat: 1,
			coverage: {
				format: 1,
				glyphs: []
			},
			ligatureSets: []
		}, i.subtables[0] = a), _m.assert(a.coverage.format === 1, "Ligature: unable to modify coverage table format " + a.coverage.format);
		var o = t.sub[0], s = t.sub.slice(1), c = {
			ligGlyph: t.by,
			components: s
		}, l = this.binSearch(a.coverage.glyphs, o);
		if (l >= 0) {
			for (var u = a.ligatureSets[l], d = 0; d < u.length; d++) if (Cu(u[d].components, s)) return;
			u.push(c);
		} else l = -1 - l, a.coverage.glyphs.splice(l, 0, o), a.ligatureSets.splice(l, 0, [c]);
	}, Su.prototype.getFeature = function(e, t, n) {
		if (/ss\d\d/.test(e)) return this.getSingle(e, t, n);
		switch (e) {
			case "aalt":
			case "salt": return this.getSingle(e, t, n).concat(this.getAlternates(e, t, n));
			case "dlig":
			case "liga":
			case "rlig": return this.getLigatures(e, t, n);
			case "ccmp": return this.getMultiple(e, t, n).concat(this.getLigatures(e, t, n));
			case "stch": return this.getMultiple(e, t, n);
		}
	}, Su.prototype.add = function(e, t, n, r) {
		if (/ss\d\d/.test(e)) return this.addSingle(e, t, n, r);
		switch (e) {
			case "aalt":
			case "salt": return typeof t.by == "number" ? this.addSingle(e, t, n, r) : this.addAlternate(e, t, n, r);
			case "dlig":
			case "liga":
			case "rlig": return this.addLigature(e, t, n, r);
			case "ccmp": return t.by instanceof Array ? this.addMultiple(e, t, n, r) : this.addLigature(e, t, n, r);
		}
	}, sh = {
		getPath: Nu,
		parse: Lu
	}, fh = function(e) {
		var t = this.srPeriod, n = this.srPhase, r = this.srThreshold, i = 1;
		return e < 0 && (e = -e, i = -1), e += r - n, e = Math.trunc(e / t) * t, e += n, e < 0 ? n * i : e * i;
	}, ph = {
		x: 1,
		y: 0,
		axis: "x",
		distance: function(e, t, n, r) {
			return (n ? e.xo : e.x) - (r ? t.xo : t.x);
		},
		interpolate: function(e, t, n, r) {
			var i, a, o, s, c, l, u;
			if (!r || r === this) {
				if (i = e.xo - t.xo, a = e.xo - n.xo, c = t.x - t.xo, l = n.x - n.xo, o = Math.abs(i), s = Math.abs(a), u = o + s, u === 0) {
					e.x = e.xo + (c + l) / 2;
					return;
				}
				e.x = e.xo + (c * s + l * o) / u;
				return;
			}
			if (i = r.distance(e, t, !0, !0), a = r.distance(e, n, !0, !0), c = r.distance(t, t, !1, !0), l = r.distance(n, n, !1, !0), o = Math.abs(i), s = Math.abs(a), u = o + s, u === 0) {
				ph.setRelative(e, e, (c + l) / 2, r, !0);
				return;
			}
			ph.setRelative(e, e, (c * s + l * o) / u, r, !0);
		},
		normalSlope: -Infinity,
		setRelative: function(e, t, n, r, i) {
			if (!r || r === this) {
				e.x = (i ? t.xo : t.x) + n;
				return;
			}
			var a = i ? t.xo : t.x, o = i ? t.yo : t.y, s = a + n * r.x, c = o + n * r.y;
			e.x = s + (e.y - c) / r.normalSlope;
		},
		slope: 0,
		touch: function(e) {
			e.xTouched = !0;
		},
		touched: function(e) {
			return e.xTouched;
		},
		untouch: function(e) {
			e.xTouched = !1;
		}
	}, mh = {
		x: 0,
		y: 1,
		axis: "y",
		distance: function(e, t, n, r) {
			return (n ? e.yo : e.y) - (r ? t.yo : t.y);
		},
		interpolate: function(e, t, n, r) {
			var i, a, o, s, c, l, u;
			if (!r || r === this) {
				if (i = e.yo - t.yo, a = e.yo - n.yo, c = t.y - t.yo, l = n.y - n.yo, o = Math.abs(i), s = Math.abs(a), u = o + s, u === 0) {
					e.y = e.yo + (c + l) / 2;
					return;
				}
				e.y = e.yo + (c * s + l * o) / u;
				return;
			}
			if (i = r.distance(e, t, !0, !0), a = r.distance(e, n, !0, !0), c = r.distance(t, t, !1, !0), l = r.distance(n, n, !1, !0), o = Math.abs(i), s = Math.abs(a), u = o + s, u === 0) {
				mh.setRelative(e, e, (c + l) / 2, r, !0);
				return;
			}
			mh.setRelative(e, e, (c * s + l * o) / u, r, !0);
		},
		normalSlope: 0,
		setRelative: function(e, t, n, r, i) {
			if (!r || r === this) {
				e.y = (i ? t.yo : t.y) + n;
				return;
			}
			var a = i ? t.xo : t.x, o = i ? t.yo : t.y, s = a + n * r.x;
			e.y = o + n * r.y + r.normalSlope * (e.x - s);
		},
		slope: Infinity,
		touch: function(e) {
			e.yTouched = !0;
		},
		touched: function(e) {
			return e.yTouched;
		},
		untouch: function(e) {
			e.yTouched = !1;
		}
	}, Object.freeze(ph), Object.freeze(mh), Gu.prototype.distance = function(e, t, n, r) {
		return this.x * ph.distance(e, t, n, r) + this.y * mh.distance(e, t, n, r);
	}, Gu.prototype.interpolate = function(e, t, n, r) {
		var i, a, o = r.distance(e, t, !0, !0), s = r.distance(e, n, !0, !0), c, l, u;
		if (i = r.distance(t, t, !1, !0), a = r.distance(n, n, !1, !0), c = Math.abs(o), l = Math.abs(s), u = c + l, u === 0) {
			this.setRelative(e, e, (i + a) / 2, r, !0);
			return;
		}
		this.setRelative(e, e, (i * l + a * c) / u, r, !0);
	}, Gu.prototype.setRelative = function(e, t, n, r, i) {
		r ||= this;
		var a = i ? t.xo : t.x, o = i ? t.yo : t.y, s = a + n * r.x, c = o + n * r.y, l = r.normalSlope, u = this.slope, d = e.x, f = e.y;
		e.x = (u * d - l * s + c - f) / (u - l), e.y = u * (e.x - d) + f;
	}, Gu.prototype.touch = function(e) {
		e.xTouched = !0, e.yTouched = !0;
	}, qu.prototype.nextTouched = function(e) {
		for (var t = this.nextPointOnContour; !e.touched(t) && t !== this;) t = t.nextPointOnContour;
		return t;
	}, qu.prototype.prevTouched = function(e) {
		for (var t = this.prevPointOnContour; !e.touched(t) && t !== this;) t = t.prevPointOnContour;
		return t;
	}, hh = Object.freeze(new qu(0, 0)), gh = {
		cvCutIn: 17 / 16,
		deltaBase: 9,
		deltaShift: .125,
		loop: 1,
		minDis: 1,
		autoFlip: !0
	}, Ru.prototype.exec = function(e, t) {
		if (typeof t != "number") throw Error("Point size is not a number!");
		if (!(this._errorState > 2)) {
			var n = this.font, r = this._prepState;
			if (!r || r.ppem !== t) {
				var i = this._fpgmState;
				if (!i) {
					Ju.prototype = gh, i = this._fpgmState = new Ju("fpgm", n.tables.fpgm), i.funcs = [], i.font = n, exports.DEBUG && (console.log("---EXEC FPGM---"), i.step = -1);
					try {
						lh(i);
					} catch (e) {
						console.log("Hinting error in FPGM:" + e), this._errorState = 3;
						return;
					}
				}
				Ju.prototype = i, r = this._prepState = new Ju("prep", n.tables.prep), r.ppem = t;
				var a = n.tables.cvt;
				if (a) for (var o = r.cvt = Array(a.length), s = t / n.unitsPerEm, c = 0; c < a.length; c++) o[c] = a[c] * s;
				else r.cvt = [];
				exports.DEBUG && (console.log("---EXEC PREP---"), r.step = -1);
				try {
					lh(r);
				} catch (e) {
					this._errorState < 2 && console.log("Hinting error in PREP:" + e), this._errorState = 2;
				}
			}
			if (!(this._errorState > 1)) try {
				return uh(e, r);
			} catch (e) {
				this._errorState < 1 && (console.log("Hinting error:" + e), console.log("Note: further hinting errors are silenced")), this._errorState = 1;
				return;
			}
		}
	}, uh = function(e, t) {
		var n = t.ppem / t.font.unitsPerEm, r = n, i = e.components, a, o, s;
		if (Ju.prototype = t, !i) s = new Ju("glyf", e.instructions), exports.DEBUG && (console.log("---EXEC GLYPH---"), s.step = -1), dh(e, s, n, r), o = s.gZone;
		else {
			var c = t.font;
			o = [], a = [];
			for (var l = 0; l < i.length; l++) {
				var u = i[l], d = c.glyphs.get(u.glyphIndex);
				s = new Ju("glyf", d.instructions), exports.DEBUG && (console.log("---EXEC COMP " + l + "---"), s.step = -1), dh(d, s, n, r);
				for (var f = Math.round(u.dx * n), p = Math.round(u.dy * r), m = s.gZone, h = s.contours, g = 0; g < m.length; g++) {
					var _ = m[g];
					_.xTouched = _.yTouched = !1, _.xo = _.x += f, _.yo = _.y += p;
				}
				var v = o.length;
				o.push.apply(o, m);
				for (var y = 0; y < h.length; y++) a.push(h[y] + v);
			}
			e.instructions && !s.inhibitGridFit && (s = new Ju("glyf", e.instructions), s.gZone = s.z0 = s.z1 = s.z2 = o, s.contours = a, o.push(new qu(0, 0), new qu(Math.round(e.advanceWidth * n), 0)), exports.DEBUG && (console.log("---EXEC COMPOSITE---"), s.step = -1), lh(s), o.length -= 2);
		}
		return o;
	}, dh = function(e, t, n, r) {
		for (var i = e.points || [], a = i.length, o = t.gZone = t.z0 = t.z1 = t.z2 = [], s = t.contours = [], c, l = 0; l < a; l++) c = i[l], o[l] = new qu(c.x * n, c.y * r, c.lastPointOfContour, c.onCurve);
		for (var u, d, f = 0; f < a; f++) c = o[f], u || (u = c, s.push(f)), c.lastPointOfContour ? (c.nextPointOnContour = u, u.prevPointOnContour = c, u = void 0) : (d = o[f + 1], c.nextPointOnContour = d, d.prevPointOnContour = c);
		if (!t.inhibitGridFit) {
			if (exports.DEBUG) {
				console.log("PROCESSING GLYPH", t.stack);
				for (var p = 0; p < a; p++) console.log(p, o[p].x, o[p].y);
			}
			if (o.push(new qu(0, 0), new qu(Math.round(e.advanceWidth * n), 0)), lh(t), o.length -= 2, exports.DEBUG) {
				console.log("FINISHED GLYPH", t.stack);
				for (var m = 0; m < a; m++) console.log(m, o[m].x, o[m].y);
			}
		}
	}, lh = function(e) {
		var t = e.prog;
		if (t) {
			var n = t.length, r;
			for (e.ip = 0; e.ip < n; e.ip++) {
				if (exports.DEBUG && e.step++, r = ch[t[e.ip]], !r) throw Error("unknown instruction: 0x" + Number(t[e.ip]).toString(16));
				r(e);
			}
		}
	}, ch = [
		Zu.bind(void 0, mh),
		Zu.bind(void 0, ph),
		Qu.bind(void 0, mh),
		Qu.bind(void 0, ph),
		$u.bind(void 0, mh),
		$u.bind(void 0, ph),
		ed.bind(void 0, 0),
		ed.bind(void 0, 1),
		td.bind(void 0, 0),
		td.bind(void 0, 1),
		nd,
		rd,
		id,
		ad,
		od,
		sd,
		cd,
		ld,
		ud,
		dd,
		fd,
		pd,
		md,
		hd,
		gd,
		_d,
		vd,
		yd,
		bd,
		xd,
		void 0,
		void 0,
		Sd,
		Cd,
		wd,
		Td,
		Ed,
		kd,
		Ad,
		void 0,
		void 0,
		void 0,
		Dd,
		Od,
		jd,
		void 0,
		Md.bind(void 0, 0),
		Md.bind(void 0, 1),
		Nd.bind(void 0, mh),
		Nd.bind(void 0, ph),
		Pd.bind(void 0, 0),
		Pd.bind(void 0, 1),
		Fd.bind(void 0, 0),
		Fd.bind(void 0, 1),
		Id.bind(void 0, 0),
		Id.bind(void 0, 1),
		Ld,
		Rd,
		zd.bind(void 0, 0),
		zd.bind(void 0, 1),
		Bd,
		Vd,
		Hd.bind(void 0, 0),
		Hd.bind(void 0, 1),
		Ud,
		Wd,
		Gd,
		Kd,
		qd,
		Jd,
		Yd.bind(void 0, 0),
		Yd.bind(void 0, 1),
		void 0,
		Xd.bind(void 0, 0),
		Xd.bind(void 0, 1),
		Zd,
		void 0,
		Qd,
		void 0,
		void 0,
		$d,
		ef,
		tf,
		nf,
		rf,
		af,
		of,
		sf,
		cf,
		lf,
		uf,
		df,
		ff,
		pf.bind(void 0, 1),
		mf,
		hf,
		gf,
		_f,
		vf,
		yf,
		bf,
		xf,
		Sf,
		Cf,
		wf.bind(void 0, 0),
		wf.bind(void 0, 1),
		wf.bind(void 0, 2),
		wf.bind(void 0, 3),
		void 0,
		void 0,
		void 0,
		void 0,
		Tf,
		pf.bind(void 0, 2),
		pf.bind(void 0, 3),
		Ef.bind(void 0, 1),
		Ef.bind(void 0, 2),
		Ef.bind(void 0, 3),
		Df,
		Of,
		void 0,
		void 0,
		kf,
		void 0,
		Af,
		jf,
		Cd,
		Cd,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		Mf,
		Nf.bind(void 0, 0),
		Nf.bind(void 0, 1),
		Pf,
		void 0,
		Ff,
		If,
		Lf,
		Rf,
		zf,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		void 0,
		Bf.bind(void 0, 1),
		Bf.bind(void 0, 2),
		Bf.bind(void 0, 3),
		Bf.bind(void 0, 4),
		Bf.bind(void 0, 5),
		Bf.bind(void 0, 6),
		Bf.bind(void 0, 7),
		Bf.bind(void 0, 8),
		Vf.bind(void 0, 1),
		Vf.bind(void 0, 2),
		Vf.bind(void 0, 3),
		Vf.bind(void 0, 4),
		Vf.bind(void 0, 5),
		Vf.bind(void 0, 6),
		Vf.bind(void 0, 7),
		Vf.bind(void 0, 8),
		q.bind(void 0, 0, 0, 0, 0, 0),
		q.bind(void 0, 0, 0, 0, 0, 1),
		q.bind(void 0, 0, 0, 0, 0, 2),
		q.bind(void 0, 0, 0, 0, 0, 3),
		q.bind(void 0, 0, 0, 0, 1, 0),
		q.bind(void 0, 0, 0, 0, 1, 1),
		q.bind(void 0, 0, 0, 0, 1, 2),
		q.bind(void 0, 0, 0, 0, 1, 3),
		q.bind(void 0, 0, 0, 1, 0, 0),
		q.bind(void 0, 0, 0, 1, 0, 1),
		q.bind(void 0, 0, 0, 1, 0, 2),
		q.bind(void 0, 0, 0, 1, 0, 3),
		q.bind(void 0, 0, 0, 1, 1, 0),
		q.bind(void 0, 0, 0, 1, 1, 1),
		q.bind(void 0, 0, 0, 1, 1, 2),
		q.bind(void 0, 0, 0, 1, 1, 3),
		q.bind(void 0, 0, 1, 0, 0, 0),
		q.bind(void 0, 0, 1, 0, 0, 1),
		q.bind(void 0, 0, 1, 0, 0, 2),
		q.bind(void 0, 0, 1, 0, 0, 3),
		q.bind(void 0, 0, 1, 0, 1, 0),
		q.bind(void 0, 0, 1, 0, 1, 1),
		q.bind(void 0, 0, 1, 0, 1, 2),
		q.bind(void 0, 0, 1, 0, 1, 3),
		q.bind(void 0, 0, 1, 1, 0, 0),
		q.bind(void 0, 0, 1, 1, 0, 1),
		q.bind(void 0, 0, 1, 1, 0, 2),
		q.bind(void 0, 0, 1, 1, 0, 3),
		q.bind(void 0, 0, 1, 1, 1, 0),
		q.bind(void 0, 0, 1, 1, 1, 1),
		q.bind(void 0, 0, 1, 1, 1, 2),
		q.bind(void 0, 0, 1, 1, 1, 3),
		q.bind(void 0, 1, 0, 0, 0, 0),
		q.bind(void 0, 1, 0, 0, 0, 1),
		q.bind(void 0, 1, 0, 0, 0, 2),
		q.bind(void 0, 1, 0, 0, 0, 3),
		q.bind(void 0, 1, 0, 0, 1, 0),
		q.bind(void 0, 1, 0, 0, 1, 1),
		q.bind(void 0, 1, 0, 0, 1, 2),
		q.bind(void 0, 1, 0, 0, 1, 3),
		q.bind(void 0, 1, 0, 1, 0, 0),
		q.bind(void 0, 1, 0, 1, 0, 1),
		q.bind(void 0, 1, 0, 1, 0, 2),
		q.bind(void 0, 1, 0, 1, 0, 3),
		q.bind(void 0, 1, 0, 1, 1, 0),
		q.bind(void 0, 1, 0, 1, 1, 1),
		q.bind(void 0, 1, 0, 1, 1, 2),
		q.bind(void 0, 1, 0, 1, 1, 3),
		q.bind(void 0, 1, 1, 0, 0, 0),
		q.bind(void 0, 1, 1, 0, 0, 1),
		q.bind(void 0, 1, 1, 0, 0, 2),
		q.bind(void 0, 1, 1, 0, 0, 3),
		q.bind(void 0, 1, 1, 0, 1, 0),
		q.bind(void 0, 1, 1, 0, 1, 1),
		q.bind(void 0, 1, 1, 0, 1, 2),
		q.bind(void 0, 1, 1, 0, 1, 3),
		q.bind(void 0, 1, 1, 1, 0, 0),
		q.bind(void 0, 1, 1, 1, 0, 1),
		q.bind(void 0, 1, 1, 1, 0, 2),
		q.bind(void 0, 1, 1, 1, 0, 3),
		q.bind(void 0, 1, 1, 1, 1, 0),
		q.bind(void 0, 1, 1, 1, 1, 1),
		q.bind(void 0, 1, 1, 1, 1, 2),
		q.bind(void 0, 1, 1, 1, 1, 3)
	], Hf.prototype.setState = function(e, t) {
		return this.state[e] = t, this.activeState = {
			key: e,
			value: this.state[e]
		}, this.activeState;
	}, Hf.prototype.getState = function(e) {
		return this.state[e] || null;
	}, Jf.prototype.inboundIndex = function(e) {
		return e >= 0 && e < this.tokens.length;
	}, Jf.prototype.composeRUD = function(e) {
		var t = this, n = !0, r = e.map(function(e) {
			return t[e[0]].apply(t, e.slice(1).concat(n));
		}), i = function(e) {
			return typeof e == "object" && e.hasOwnProperty("FAIL");
		};
		if (r.every(i)) return {
			FAIL: "composeRUD: one or more operations hasn't completed successfully",
			report: r.filter(i)
		};
		this.dispatch("composeRUD", [r.filter(function(e) {
			return !i(e);
		})]);
	}, Jf.prototype.replaceRange = function(e, t, n, r) {
		t = t === null ? this.tokens.length : t;
		var i = n.every(function(e) {
			return e instanceof Hf;
		});
		if (!isNaN(e) && this.inboundIndex(e) && i) {
			var a = this.tokens.splice.apply(this.tokens, [e, t].concat(n));
			return r || this.dispatch("replaceToken", [
				e,
				t,
				n
			]), [a, n];
		} else return { FAIL: "replaceRange: invalid tokens or startIndex." };
	}, Jf.prototype.replaceToken = function(e, t, n) {
		if (!isNaN(e) && this.inboundIndex(e) && t instanceof Hf) {
			var r = this.tokens.splice(e, 1, t);
			return n || this.dispatch("replaceToken", [e, t]), [r[0], t];
		} else return { FAIL: "replaceToken: invalid token or index." };
	}, Jf.prototype.removeRange = function(e, t, n) {
		t = isNaN(t) ? this.tokens.length : t;
		var r = this.tokens.splice(e, t);
		return n || this.dispatch("removeRange", [
			r,
			e,
			t
		]), r;
	}, Jf.prototype.removeToken = function(e, t) {
		if (!isNaN(e) && this.inboundIndex(e)) {
			var n = this.tokens.splice(e, 1);
			return t || this.dispatch("removeToken", [n, e]), n;
		} else return { FAIL: "removeToken: invalid token index." };
	}, Jf.prototype.insertToken = function(e, t, n) {
		return e.every(function(e) {
			return e instanceof Hf;
		}) ? (this.tokens.splice.apply(this.tokens, [t, 0].concat(e)), n || this.dispatch("insertToken", [e, t]), e) : { FAIL: "insertToken: invalid token(s)." };
	}, Jf.prototype.registerModifier = function(e, t, n) {
		this.events.newToken.subscribe(function(r, i) {
			var a = [r, i], o = t === null || t.apply(this, a) === !0, s = [r, i];
			if (o) {
				var c = n.apply(this, s);
				r.setState(e, c);
			}
		}), this.registeredModifiers.push(e);
	}, Kf.prototype.subscribe = function(e) {
		return typeof e == "function" ? this.subscribers.push(e) - 1 : { FAIL: "invalid '" + this.eventId + "' event handler" };
	}, Kf.prototype.unsubscribe = function(e) {
		this.subscribers.splice(e, 1);
	}, Gf.prototype.setCurrentIndex = function(e) {
		this.index = e, this.current = this.context[e], this.backtrack = this.context.slice(0, e), this.lookahead = this.context.slice(e + 1);
	}, Gf.prototype.get = function(e) {
		switch (!0) {
			case e === 0: return this.current;
			case e < 0 && Math.abs(e) <= this.backtrack.length: return this.backtrack.slice(e)[0];
			case e > 0 && e <= this.lookahead.length: return this.lookahead[e - 1];
			default: return null;
		}
	}, Jf.prototype.rangeToText = function(e) {
		if (e instanceof Uf) return this.getRangeTokens(e).map(function(e) {
			return e.char;
		}).join("");
	}, Jf.prototype.getText = function() {
		return this.tokens.map(function(e) {
			return e.char;
		}).join("");
	}, Jf.prototype.getContext = function(e) {
		return this.registeredContexts[e] || null;
	}, Jf.prototype.on = function(e, t) {
		var n = this.events[e];
		return n ? n.subscribe(t) : null;
	}, Jf.prototype.dispatch = function(e, t) {
		var n = this, r = this.events[e];
		r instanceof Kf && r.subscribers.forEach(function(e) {
			e.apply(n, t || []);
		});
	}, Jf.prototype.registerContextChecker = function(e, t, n) {
		if (this.getContext(e)) return { FAIL: "context name '" + e + "' is already registered." };
		if (typeof t != "function") return { FAIL: "missing context start check." };
		if (typeof n != "function") return { FAIL: "missing context end check." };
		var r = new Wf(e, t, n);
		return this.registeredContexts[e] = r, this.contextCheckers.push(r), r;
	}, Jf.prototype.getRangeTokens = function(e) {
		var t = e.startIndex + e.endOffset;
		return [].concat(this.tokens.slice(e.startIndex, t));
	}, Jf.prototype.getContextRanges = function(e) {
		var t = this.getContext(e);
		return t ? t.ranges : { FAIL: "context checker '" + e + "' is not registered." };
	}, Jf.prototype.resetContextsRanges = function() {
		var e = this.registeredContexts;
		for (var t in e) if (e.hasOwnProperty(t)) {
			var n = e[t];
			n.ranges = [];
		}
	}, Jf.prototype.updateContextsRanges = function() {
		this.resetContextsRanges();
		for (var e = this.tokens.map(function(e) {
			return e.char;
		}), t = 0; t < e.length; t++) {
			var n = new Gf(e, t);
			this.runContextCheck(n);
		}
		this.dispatch("updateContextsRanges", [this.registeredContexts]);
	}, Jf.prototype.setEndOffset = function(e, t) {
		var n = this.getContext(t).openRange.startIndex, r = new Uf(n, e, t), i = this.getContext(t).ranges;
		return r.rangeId = t + "." + i.length, i.push(r), this.getContext(t).openRange = null, r;
	}, Jf.prototype.runContextCheck = function(e) {
		var t = this, n = e.index;
		this.contextCheckers.forEach(function(r) {
			var i = r.contextName, a = t.getContext(i).openRange;
			if (!a && r.checkStart(e) && (a = new Uf(n, null, i), t.getContext(i).openRange = a, t.dispatch("contextStart", [i, n])), a && r.checkEnd(e)) {
				var o = n - a.startIndex + 1, s = t.setEndOffset(o, i);
				t.dispatch("contextEnd", [i, s]);
			}
		});
	}, Jf.prototype.tokenize = function(e) {
		this.tokens = [], this.resetContextsRanges();
		var t = Array.from(e);
		this.dispatch("start");
		for (var n = 0; n < t.length; n++) {
			var r = t[n], i = new Gf(t, n);
			this.dispatch("next", [i]), this.runContextCheck(i);
			var a = new Hf(r);
			this.tokens.push(a), this.dispatch("newToken", [a, i]);
		}
		return this.dispatch("end", [this.tokens]), this.tokens;
	}, ep.prototype.getDefaultScriptFeaturesIndexes = function() {
		for (var e = this.font.tables.gsub.scripts, t = 0; t < e.length; t++) {
			var n = e[t];
			if (n.tag === "DFLT") return n.script.defaultLangSys.featureIndexes;
		}
		return [];
	}, ep.prototype.getScriptFeaturesIndexes = function(e) {
		if (!this.font.tables.gsub) return [];
		if (!e) return this.getDefaultScriptFeaturesIndexes();
		for (var t = this.font.tables.gsub.scripts, n = 0; n < t.length; n++) {
			var r = t[n];
			if (r.tag === e && r.script.defaultLangSys) return r.script.defaultLangSys.featureIndexes;
			var i = r.langSysRecords;
			if (i) for (var a = 0; a < i.length; a++) {
				var o = i[a];
				if (o.tag === e) return o.langSys.featureIndexes;
			}
		}
		return this.getDefaultScriptFeaturesIndexes();
	}, ep.prototype.mapTagsToFeatures = function(e, t) {
		for (var n = {}, r = 0; r < e.length; r++) {
			var i = e[r].tag;
			n[i] = e[r].feature;
		}
		this.features[t].tags = n;
	}, ep.prototype.getScriptFeatures = function(e) {
		var t = this.features[e];
		if (this.features.hasOwnProperty(e)) return t;
		var n = this.getScriptFeaturesIndexes(e);
		if (!n) return null;
		var r = this.font.tables.gsub;
		return t = n.map(function(e) {
			return r.features[e];
		}), this.features[e] = t, this.mapTagsToFeatures(t, e), t;
	}, ep.prototype.getSubstitutionType = function(e, t) {
		return e.lookupType.toString() + t.substFormat.toString();
	}, ep.prototype.getLookupMethod = function(e, t) {
		var n = this;
		switch (this.getSubstitutionType(e, t)) {
			case "11": return function(e) {
				return rp.apply(n, [e, t]);
			};
			case "12": return function(e) {
				return ip.apply(n, [e, t]);
			};
			case "63": return function(e) {
				return op.apply(n, [e, t]);
			};
			case "41": return function(e) {
				return sp.apply(n, [e, t]);
			};
			case "21": return function(e) {
				return cp.apply(n, [e, t]);
			};
			default: throw Error("lookupType: " + e.lookupType + " - substFormat: " + t.substFormat + " is not yet supported");
		}
	}, ep.prototype.lookupFeature = function(e) {
		var t = e.contextParams, n = t.index, r = this.getFeature({
			tag: e.tag,
			script: e.script
		});
		if (!r) return /* @__PURE__ */ Error("font '" + this.font.names.fullName.en + "' doesn't support feature '" + e.tag + "' for script '" + e.script + "'.");
		for (var i = this.getFeatureLookups(r), a = [].concat(t.context), o = 0; o < i.length; o++) for (var s = i[o], c = this.getLookupSubtables(s), l = 0; l < c.length; l++) {
			var u = c[l], d = this.getSubstitutionType(s, u), f = this.getLookupMethod(s, u), p = void 0;
			switch (d) {
				case "11":
					p = f(t.current), p && a.splice(n, 1, new tp({
						id: 11,
						tag: e.tag,
						substitution: p
					}));
					break;
				case "12":
					p = f(t.current), p && a.splice(n, 1, new tp({
						id: 12,
						tag: e.tag,
						substitution: p
					}));
					break;
				case "63":
					p = f(t), Array.isArray(p) && p.length && a.splice(n, 1, new tp({
						id: 63,
						tag: e.tag,
						substitution: p
					}));
					break;
				case "41":
					p = f(t), p && a.splice(n, 1, new tp({
						id: 41,
						tag: e.tag,
						substitution: p
					}));
					break;
				case "21":
					p = f(t.current), p && a.splice(n, 1, new tp({
						id: 21,
						tag: e.tag,
						substitution: p
					}));
					break;
			}
			t = new Gf(a, n), !(Array.isArray(p) && !p.length) && (p = null);
		}
		return a.length ? a : null;
	}, ep.prototype.supports = function(e) {
		if (!e.script) return !1;
		this.getScriptFeatures(e.script);
		var t = this.features.hasOwnProperty(e.script);
		if (!e.tag) return t;
		var n = this.features[e.script].some(function(t) {
			return t.tag === e.tag;
		});
		return t && n;
	}, ep.prototype.getLookupSubtables = function(e) {
		return e.subtables || null;
	}, ep.prototype.getLookupByIndex = function(e) {
		return this.font.tables.gsub.lookups[e] || null;
	}, ep.prototype.getFeatureLookups = function(e) {
		return e.lookupListIndexes.map(this.getLookupByIndex.bind(this));
	}, ep.prototype.getFeature = function(e) {
		if (!this.font) return { FAIL: "No font was found" };
		this.features.hasOwnProperty(e.script) || this.getScriptFeatures(e.script);
		var t = this.features[e.script];
		return t ? t.tags[e.tag] ? this.features[e.script].tags[e.tag] : null : { FAIL: "No feature for script " + e.script };
	}, _h = {
		startCheck: lp,
		endCheck: up
	}, vh = {
		startCheck: dp,
		endCheck: fp
	}, yh = {
		11: pp,
		12: mp,
		63: hp,
		41: gp
	}, bh = {
		startCheck: Cp,
		endCheck: wp
	}, Dp.prototype.setText = function(e) {
		this.text = e;
	}, Dp.prototype.contextChecks = {
		latinWordCheck: bh,
		arabicWordCheck: _h,
		arabicSentenceCheck: vh
	}, Dp.prototype.registerFeatures = function(e, t) {
		var n = this, r = t.filter(function(t) {
			return n.query.supports({
				script: e,
				tag: t
			});
		});
		this.featuresTags.hasOwnProperty(e) ? this.featuresTags[e] = this.featuresTags[e].concat(r) : this.featuresTags[e] = r;
	}, Dp.prototype.applyFeatures = function(e, t) {
		if (!e) throw Error("No valid font was provided to apply features");
		this.query ||= new ep(e);
		for (var n = 0; n < t.length; n++) {
			var r = t[n];
			this.query.supports({ script: r.script }) && this.registerFeatures(r.script, r.tags);
		}
	}, Dp.prototype.registerModifier = function(e, t, n) {
		this.tokenizer.registerModifier(e, t, n);
	}, Dp.prototype.checkContextReady = function(e) {
		return !!this.tokenizer.getContext(e);
	}, Dp.prototype.applyFeaturesToContexts = function() {
		this.checkContextReady("arabicWord") && (Mp.call(this), Np.call(this)), this.checkContextReady("latinWord") && Pp.call(this), this.checkContextReady("arabicSentence") && Ap.call(this);
	}, Dp.prototype.processText = function(e) {
		(!this.text || this.text !== e) && (this.setText(e), kp.call(this), this.applyFeaturesToContexts());
	}, Dp.prototype.getBidiText = function(e) {
		return this.processText(e), this.tokenizer.getText();
	}, Dp.prototype.getTextGlyphs = function(e) {
		this.processText(e);
		for (var t = [], n = 0; n < this.tokenizer.tokens.length; n++) {
			var r = this.tokenizer.tokens[n];
			if (!r.state.deleted) {
				var i = r.activeState.value;
				t.push(Array.isArray(i) ? i[0] : i);
			}
		}
		return t;
	}, Fp.prototype.hasChar = function(e) {
		return this.encoding.charToGlyphIndex(e) !== null;
	}, Fp.prototype.charToGlyphIndex = function(e) {
		return this.encoding.charToGlyphIndex(e);
	}, Fp.prototype.charToGlyph = function(e) {
		var t = this.charToGlyphIndex(e), n = this.glyphs.get(t);
		return n ||= this.glyphs.get(0), n;
	}, Fp.prototype.updateFeatures = function(e) {
		return this.defaultRenderOptions.features.map(function(t) {
			return t.script === "latn" ? {
				script: "latn",
				tags: t.tags.filter(function(t) {
					return e[t];
				})
			} : t;
		});
	}, Fp.prototype.stringToGlyphs = function(e, t) {
		var n = this, r = new Dp();
		r.registerModifier("glyphIndex", null, function(e) {
			return n.charToGlyphIndex(e.char);
		});
		var i = t ? this.updateFeatures(t.features) : this.defaultRenderOptions.features;
		r.applyFeatures(this, i);
		for (var a = r.getTextGlyphs(e), o = a.length, s = Array(o), c = this.glyphs.get(0), l = 0; l < o; l += 1) s[l] = this.glyphs.get(a[l]) || c;
		return s;
	}, Fp.prototype.nameToGlyphIndex = function(e) {
		return this.glyphNames.nameToGlyphIndex(e);
	}, Fp.prototype.nameToGlyph = function(e) {
		var t = this.nameToGlyphIndex(e), n = this.glyphs.get(t);
		return n ||= this.glyphs.get(0), n;
	}, Fp.prototype.glyphIndexToName = function(e) {
		return this.glyphNames.glyphIndexToName ? this.glyphNames.glyphIndexToName(e) : "";
	}, Fp.prototype.getKerningValue = function(e, t) {
		e = e.index || e, t = t.index || t;
		var n = this.position.defaultKerningTables;
		return n ? this.position.getKerningValue(n, e, t) : this.kerningPairs[e + "," + t] || 0;
	}, Fp.prototype.defaultRenderOptions = {
		kerning: !0,
		features: [{
			script: "arab",
			tags: [
				"init",
				"medi",
				"fina",
				"rlig"
			]
		}, {
			script: "latn",
			tags: ["liga", "rlig"]
		}]
	}, Fp.prototype.forEachGlyph = function(e, t, n, r, i, a) {
		t = t === void 0 ? 0 : t, n = n === void 0 ? 0 : n, r = r === void 0 ? 72 : r, i = Object.assign({}, this.defaultRenderOptions, i);
		var o = 1 / this.unitsPerEm * r, s = this.stringToGlyphs(e, i), c;
		if (i.kerning) {
			var l = i.script || this.position.getDefaultScriptName();
			c = this.position.getKerningTables(l, i.language);
		}
		for (var u = 0; u < s.length; u += 1) {
			var d = s[u];
			if (a.call(this, d, t, n, r, i), d.advanceWidth && (t += d.advanceWidth * o), i.kerning && u < s.length - 1) {
				var f = c ? this.position.getKerningValue(c, d.index, s[u + 1].index) : this.getKerningValue(d, s[u + 1]);
				t += f * o;
			}
			i.letterSpacing ? t += i.letterSpacing * r : i.tracking && (t += i.tracking / 1e3 * r);
		}
		return t;
	}, Fp.prototype.getPath = function(e, t, n, r, i) {
		var a = new dc();
		return this.forEachGlyph(e, t, n, r, i, function(e, t, n, r) {
			var o = e.getPath(t, n, r, i, this);
			a.extend(o);
		}), a;
	}, Fp.prototype.getPaths = function(e, t, n, r, i) {
		var a = [];
		return this.forEachGlyph(e, t, n, r, i, function(e, t, n, r) {
			var o = e.getPath(t, n, r, i, this);
			a.push(o);
		}), a;
	}, Fp.prototype.getAdvanceWidth = function(e, t, n) {
		return this.forEachGlyph(e, 0, 0, t, n, function() {});
	}, Fp.prototype.draw = function(e, t, n, r, i, a) {
		this.getPath(t, n, r, i, a).draw(e);
	}, Fp.prototype.drawPoints = function(e, t, n, r, i, a) {
		this.forEachGlyph(t, n, r, i, a, function(t, n, r, i) {
			t.drawPoints(e, n, r, i);
		});
	}, Fp.prototype.drawMetrics = function(e, t, n, r, i, a) {
		this.forEachGlyph(t, n, r, i, a, function(t, n, r, i) {
			t.drawMetrics(e, n, r, i);
		});
	}, Fp.prototype.getEnglishName = function(e) {
		var t = this.names[e];
		if (t) return t.en;
	}, Fp.prototype.validate = function() {
		var e = this;
		function t(t) {
			var n = e.getEnglishName(t);
			n && n.trim().length;
		}
		t("fontFamily"), t("weightName"), t("manufacturer"), t("copyright"), t("version"), this.unitsPerEm;
	}, Fp.prototype.toTables = function() {
		return oh.fontToTable(this);
	}, Fp.prototype.toBuffer = function() {
		return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."), this.toArrayBuffer();
	}, Fp.prototype.toArrayBuffer = function() {
		for (var e = this.toTables().encode(), t = new ArrayBuffer(e.length), n = new Uint8Array(t), r = 0; r < e.length; r++) n[r] = e[r];
		return t;
	}, Fp.prototype.download = function(e) {
		var t = this.getEnglishName("fontFamily"), n = this.getEnglishName("fontSubfamily");
		e ||= t.replace(/\s/g, "") + "-" + n + ".otf";
		var r = this.toArrayBuffer();
		if (Tu()) if (window.URL = window.URL || window.webkitURL, window.URL) {
			var i = new DataView(r), a = new Blob([i], { type: "font/opentype" }), o = document.createElement("a");
			o.href = window.URL.createObjectURL(a), o.download = e;
			var s = document.createEvent("MouseEvents");
			s.initEvent("click", !0, !1), o.dispatchEvent(s);
		} else console.warn("Font file could not be downloaded. Try using a different browser.");
		else {
			var c = Ys(), l = Du(r);
			c.writeFileSync(e, l);
		}
	}, Fp.prototype.fsSelectionValues = {
		ITALIC: 1,
		UNDERSCORE: 2,
		NEGATIVE: 4,
		OUTLINED: 8,
		STRIKEOUT: 16,
		BOLD: 32,
		REGULAR: 64,
		USER_TYPO_METRICS: 128,
		WWS: 256,
		OBLIQUE: 512
	}, Fp.prototype.usWidthClasses = {
		ULTRA_CONDENSED: 1,
		EXTRA_CONDENSED: 2,
		CONDENSED: 3,
		SEMI_CONDENSED: 4,
		MEDIUM: 5,
		SEMI_EXPANDED: 6,
		EXPANDED: 7,
		EXTRA_EXPANDED: 8,
		ULTRA_EXPANDED: 9
	}, Fp.prototype.usWeightClasses = {
		THIN: 100,
		EXTRA_LIGHT: 200,
		LIGHT: 300,
		NORMAL: 400,
		MEDIUM: 500,
		SEMI_BOLD: 600,
		BOLD: 700,
		EXTRA_BOLD: 800,
		BLACK: 900
	}, xh = {
		make: Vp,
		parse: Hp
	}, Sh = function() {
		return {
			coverage: this.parsePointer(G.coverage),
			attachPoints: this.parseList(G.pointer(G.uShortList))
		};
	}, Ch = function() {
		var e = this.parseUShort();
		if (_m.argument(e === 1 || e === 2 || e === 3, "Unsupported CaretValue table version."), e === 1) return { coordinate: this.parseShort() };
		if (e === 2) return { pointindex: this.parseShort() };
		if (e === 3) return { coordinate: this.parseShort() };
	}, Z = function() {
		return this.parseList(G.pointer(Ch));
	}, wh = function() {
		return {
			coverage: this.parsePointer(G.coverage),
			ligGlyphs: this.parseList(G.pointer(Z))
		};
	}, Th = function() {
		return this.parseUShort(), this.parseList(G.pointer(G.coverage));
	}, Eh = { parse: Up }, Dh = Array(10), Dh[1] = function() {
		var e = this.offset + this.relativeOffset, t = this.parseUShort();
		if (t === 1) return {
			posFormat: 1,
			coverage: this.parsePointer(G.coverage),
			value: this.parseValueRecord()
		};
		if (t === 2) return {
			posFormat: 2,
			coverage: this.parsePointer(G.coverage),
			values: this.parseValueRecordList()
		};
		_m.assert(!1, "0x" + e.toString(16) + ": GPOS lookup type 1 format must be 1 or 2.");
	}, Dh[2] = function() {
		var e = this.offset + this.relativeOffset, t = this.parseUShort();
		_m.assert(t === 1 || t === 2, "0x" + e.toString(16) + ": GPOS lookup type 2 format must be 1 or 2.");
		var n = this.parsePointer(G.coverage), r = this.parseUShort(), i = this.parseUShort();
		if (t === 1) return {
			posFormat: t,
			coverage: n,
			valueFormat1: r,
			valueFormat2: i,
			pairSets: this.parseList(G.pointer(G.list(function() {
				return {
					secondGlyph: this.parseUShort(),
					value1: this.parseValueRecord(r),
					value2: this.parseValueRecord(i)
				};
			})))
		};
		if (t === 2) {
			var a = this.parsePointer(G.classDef), o = this.parsePointer(G.classDef), s = this.parseUShort(), c = this.parseUShort();
			return {
				posFormat: t,
				coverage: n,
				valueFormat1: r,
				valueFormat2: i,
				classDef1: a,
				classDef2: o,
				class1Count: s,
				class2Count: c,
				classRecords: this.parseList(s, G.list(c, function() {
					return {
						value1: this.parseValueRecord(r),
						value2: this.parseValueRecord(i)
					};
				}))
			};
		}
	}, Dh[3] = function() {
		return { error: "GPOS Lookup 3 not supported" };
	}, Dh[4] = function() {
		return { error: "GPOS Lookup 4 not supported" };
	}, Dh[5] = function() {
		return { error: "GPOS Lookup 5 not supported" };
	}, Dh[6] = function() {
		return { error: "GPOS Lookup 6 not supported" };
	}, Dh[7] = function() {
		return { error: "GPOS Lookup 7 not supported" };
	}, Dh[8] = function() {
		return { error: "GPOS Lookup 8 not supported" };
	}, Dh[9] = function() {
		return { error: "GPOS Lookup 9 not supported" };
	}, Oh = Array(10), kh = {
		parse: Wp,
		make: Gp
	}, Ah = { parse: Jp }, jh = { parse: Yp }, Mh = /* @__PURE__ */ Object.freeze({
		__proto__: null,
		Font: Fp,
		Glyph: Xc,
		Path: dc,
		BoundingBox: uc,
		_parse: X,
		parse: tm,
		load: nm,
		loadSync: rm
	});
})), Ph = [
	{
		family: "Roboto",
		file: "Roboto-Regular.ttf"
	},
	{
		family: "Open Sans",
		file: "OpenSans-Regular.ttf"
	},
	{
		family: "Lato",
		file: "Lato-Regular.ttf"
	}
], Fh = /* @__PURE__ */ new Map(), Ih = /* @__PURE__ */ new Map();
function Lh() {
	return Ph;
}
function Rh(e) {
	let t = Ph.find((t) => t.family.toLowerCase() === e.toLowerCase());
	return `/fonts/${t ? t.file : Ph[0].file}`;
}
async function zh(e) {
	let t = Fh.get(e);
	if (t) return t;
	let n = Ih.get(e);
	if (n) return n;
	let r = (async () => {
		let t = await Promise.resolve().then(() => (Nh(), Xs)), n = await fetch(e);
		if (!n.ok) throw Error(`Failed to fetch font: ${e} (${n.status})`);
		let r = await n.arrayBuffer(), i = t.parse(r);
		return Fh.set(e, i), i;
	})();
	Ih.set(e, r);
	try {
		return await r;
	} finally {
		Ih.delete(e);
	}
}
async function Bh(e) {
	return zh(Rh(e));
}
async function Vh(e, t, n, r = 0) {
	let i = await Bh(t), a = n / i.unitsPerEm, o = 0, s = [];
	for (let t = 0; t < e.length; t++) {
		let n = i.charToGlyph(e[t]), c = n.getPath(o / a, 0, i.unitsPerEm);
		for (let e of c.commands) s.push(e);
		let l = (n.advanceWidth ?? 0) * a;
		o += l + r;
	}
	let c = i.ascender * a, l = "";
	for (let e of s) {
		let t = (e) => c - e * a, n = (e) => e * a;
		switch (e.type) {
			case "M":
				l += `M${Hh(n(e.x))} ${Hh(t(e.y))}`;
				break;
			case "L":
				l += `L${Hh(n(e.x))} ${Hh(t(e.y))}`;
				break;
			case "Q":
				l += `Q${Hh(n(e.x1))} ${Hh(t(e.y1))} ${Hh(n(e.x))} ${Hh(t(e.y))}`;
				break;
			case "C":
				l += `C${Hh(n(e.x1))} ${Hh(t(e.y1))} ${Hh(n(e.x2))} ${Hh(t(e.y2))} ${Hh(n(e.x))} ${Hh(t(e.y))}`;
				break;
			case "Z":
				l += "Z";
				break;
		}
	}
	let u = Math.abs(i.descender * a), d = o > 0 ? o - r : 0, f = c + u;
	return {
		pathData: l,
		width: Hh(d),
		height: Hh(f)
	};
}
function Hh(e) {
	return Math.round(e * 100) / 100;
}
//#endregion
//#region src/components/canvas/ShapeProperties.tsx
function Uh(e) {
	switch (e.type) {
		case "rect":
		case "image": return Math.round(e.width * 100) / 100;
		case "circle": return Math.round(e.radius * 2 * 100) / 100;
		case "ellipse": return Math.round(e.radiusX * 2 * 100) / 100;
		case "line": {
			let t = e.points.filter((e, t) => t % 2 == 0);
			return Math.round((Math.max(...t) - Math.min(...t)) * 100) / 100;
		}
		case "text": return Math.round(e.width * 100) / 100;
	}
}
function Wh(e) {
	switch (e.type) {
		case "rect":
		case "image": return Math.round(e.height * 100) / 100;
		case "circle": return Math.round(e.radius * 2 * 100) / 100;
		case "ellipse": return Math.round(e.radiusY * 2 * 100) / 100;
		case "line": {
			let t = e.points.filter((e, t) => t % 2 == 1);
			return Math.round((Math.max(...t) - Math.min(...t)) * 100) / 100;
		}
		case "text": return Math.round(e.fontSize * e.lineHeight * 100) / 100;
	}
}
var Gh = {
	solid: [],
	dashed: [10, 5],
	dotted: [2, 4]
};
function Kh({ object: e, onUpdate: t, onConvertToPath: n }) {
	let r = e.type !== "image", i = e.type === "rect" || e.type === "circle" || e.type === "ellipse" || e.type === "text", a = e.type === "line", o = e.type === "text", [s, c] = (0, S.useState)(!1), l = (0, S.useCallback)((n) => {
		t(e.id, n);
	}, [e.id, t]), u = (0, S.useCallback)(async () => {
		if (e.type !== "text" || !n || !window.confirm("Convert text to paths? This replaces the editable text with a vector image and cannot be undone.")) return;
		let t = e;
		c(!0);
		try {
			let e = await Vh(t.text, t.fontFamily, t.fontSize, t.letterSpacing), r = [
				`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${e.width} ${e.height}" width="${e.width}" height="${e.height}">`,
				`<path d="${e.pathData}" fill="${t.fill}" stroke="${t.stroke}" stroke-width="${t.strokeWidth}"/>`,
				"</svg>"
			].join(""), i = new Blob([r], { type: "image/svg+xml" }), a = URL.createObjectURL(i), o = {
				type: "image",
				id: `path-${Date.now()}`,
				name: `${t.name} (paths)`,
				x: t.x,
				y: t.y,
				width: e.width,
				height: e.height,
				rotation: t.rotation,
				visible: t.visible,
				locked: t.locked,
				opacity: t.opacity,
				src: a
			};
			n(t.id, o);
		} catch (e) {
			console.error("Convert to paths failed:", e);
		} finally {
			c(!1);
		}
	}, [e, n]);
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: "shape-properties",
		"data-testid": "shape-properties",
		children: [
			/* @__PURE__ */ (0, E.jsx)("div", {
				className: "shape-properties-header",
				children: "Properties"
			}),
			/* @__PURE__ */ (0, E.jsxs)("div", {
				className: "shape-prop-section",
				children: [/* @__PURE__ */ (0, E.jsx)("div", {
					className: "shape-prop-label",
					children: "Dimensions"
				}), /* @__PURE__ */ (0, E.jsxs)("div", {
					className: "shape-prop-dims",
					"data-testid": "shape-dims",
					children: [/* @__PURE__ */ (0, E.jsxs)("span", { children: ["W: ", Uh(e)] }), /* @__PURE__ */ (0, E.jsxs)("span", { children: ["H: ", Wh(e)] })]
				})]
			}),
			/* @__PURE__ */ (0, E.jsxs)("div", {
				className: "shape-prop-section",
				children: [/* @__PURE__ */ (0, E.jsx)("div", {
					className: "shape-prop-label",
					children: "Position"
				}), /* @__PURE__ */ (0, E.jsxs)("div", {
					className: "shape-prop-dims",
					children: [/* @__PURE__ */ (0, E.jsxs)("span", { children: ["X: ", Math.round(e.x * 100) / 100] }), /* @__PURE__ */ (0, E.jsxs)("span", { children: ["Y: ", Math.round(e.y * 100) / 100] })]
				})]
			}),
			o && e.type === "text" && /* @__PURE__ */ (0, E.jsxs)(E.Fragment, { children: [
				/* @__PURE__ */ (0, E.jsxs)("div", {
					className: "shape-prop-section",
					children: [/* @__PURE__ */ (0, E.jsx)("label", {
						className: "shape-prop-label",
						htmlFor: "text-content",
						children: "Text"
					}), /* @__PURE__ */ (0, E.jsx)("textarea", {
						id: "text-content",
						className: "shape-prop-textarea",
						rows: 3,
						value: e.text,
						onChange: (e) => l({ text: e.target.value }),
						"data-testid": "text-content-input"
					})]
				}),
				/* @__PURE__ */ (0, E.jsxs)("div", {
					className: "shape-prop-section",
					children: [/* @__PURE__ */ (0, E.jsx)("label", {
						className: "shape-prop-label",
						htmlFor: "font-family",
						children: "Font Family"
					}), /* @__PURE__ */ (0, E.jsx)("select", {
						id: "font-family",
						className: "shape-prop-select",
						value: e.fontFamily,
						onChange: (e) => l({ fontFamily: e.target.value }),
						"data-testid": "font-family-select",
						children: Lh().map((e) => /* @__PURE__ */ (0, E.jsx)("option", {
							value: e.family,
							children: e.family
						}, e.family))
					})]
				}),
				/* @__PURE__ */ (0, E.jsxs)("div", {
					className: "shape-prop-section",
					children: [/* @__PURE__ */ (0, E.jsx)("label", {
						className: "shape-prop-label",
						htmlFor: "font-size",
						children: "Font Size"
					}), /* @__PURE__ */ (0, E.jsx)("input", {
						id: "font-size",
						type: "number",
						className: "shape-prop-number-input",
						min: 8,
						max: 200,
						step: 1,
						value: e.fontSize,
						onChange: (e) => l({ fontSize: Number(e.target.value) }),
						"data-testid": "font-size-input"
					})]
				}),
				/* @__PURE__ */ (0, E.jsxs)("div", {
					className: "shape-prop-section",
					children: [/* @__PURE__ */ (0, E.jsx)("label", {
						className: "shape-prop-label",
						htmlFor: "letter-spacing",
						children: "Letter Spacing"
					}), /* @__PURE__ */ (0, E.jsx)("input", {
						id: "letter-spacing",
						type: "number",
						className: "shape-prop-number-input",
						min: -5,
						max: 20,
						step: .5,
						value: e.letterSpacing,
						onChange: (e) => l({ letterSpacing: Number(e.target.value) }),
						"data-testid": "letter-spacing-input"
					})]
				}),
				/* @__PURE__ */ (0, E.jsxs)("div", {
					className: "shape-prop-section",
					children: [/* @__PURE__ */ (0, E.jsx)("label", {
						className: "shape-prop-label",
						htmlFor: "line-height",
						children: "Line Height"
					}), /* @__PURE__ */ (0, E.jsx)("input", {
						id: "line-height",
						type: "number",
						className: "shape-prop-number-input",
						min: .5,
						max: 3,
						step: .1,
						value: e.lineHeight,
						onChange: (e) => l({ lineHeight: Number(e.target.value) }),
						"data-testid": "line-height-input"
					})]
				})
			] }),
			r && /* @__PURE__ */ (0, E.jsxs)("div", {
				className: "shape-prop-section",
				children: [/* @__PURE__ */ (0, E.jsx)("label", {
					className: "shape-prop-label",
					htmlFor: "stroke-color",
					children: "Stroke Color"
				}), /* @__PURE__ */ (0, E.jsx)("input", {
					id: "stroke-color",
					type: "color",
					className: "shape-prop-color-input",
					value: e.stroke ?? "#000000",
					onChange: (e) => l({ stroke: e.target.value }),
					"data-testid": "stroke-color-input"
				})]
			}),
			r && /* @__PURE__ */ (0, E.jsxs)("div", {
				className: "shape-prop-section",
				children: [/* @__PURE__ */ (0, E.jsx)("label", {
					className: "shape-prop-label",
					htmlFor: "stroke-width",
					children: "Stroke Weight"
				}), /* @__PURE__ */ (0, E.jsx)("input", {
					id: "stroke-width",
					type: "number",
					className: "shape-prop-number-input",
					min: 0,
					max: 50,
					step: .5,
					value: e.strokeWidth ?? 2,
					onChange: (e) => l({ strokeWidth: Number(e.target.value) }),
					"data-testid": "stroke-width-input"
				})]
			}),
			i && /* @__PURE__ */ (0, E.jsxs)("div", {
				className: "shape-prop-section",
				children: [/* @__PURE__ */ (0, E.jsx)("label", {
					className: "shape-prop-label",
					htmlFor: "fill-color",
					children: "Fill Color"
				}), /* @__PURE__ */ (0, E.jsxs)("div", {
					className: "shape-prop-fill-row",
					children: [/* @__PURE__ */ (0, E.jsx)("input", {
						id: "fill-color",
						type: "color",
						className: "shape-prop-color-input",
						value: e.fill === "transparent" ? "#ffffff" : e.fill ?? "#ffffff",
						onChange: (e) => l({ fill: e.target.value }),
						"data-testid": "fill-color-input"
					}), /* @__PURE__ */ (0, E.jsxs)("label", {
						className: "shape-prop-fill-toggle",
						title: "Toggle fill",
						children: [/* @__PURE__ */ (0, E.jsx)("input", {
							type: "checkbox",
							checked: e.fill !== "transparent",
							onChange: (e) => l({ fill: e.target.checked ? "#ffffff" : "transparent" }),
							"data-testid": "fill-toggle"
						}), "Fill"]
					})]
				})]
			}),
			a && e.type === "line" && /* @__PURE__ */ (0, E.jsxs)("div", {
				className: "shape-prop-section",
				children: [/* @__PURE__ */ (0, E.jsx)("label", {
					className: "shape-prop-label",
					htmlFor: "line-style",
					children: "Line Style"
				}), /* @__PURE__ */ (0, E.jsxs)("select", {
					id: "line-style",
					className: "shape-prop-select",
					value: e.lineStyle,
					onChange: (e) => {
						let t = e.target.value;
						l({
							lineStyle: t,
							dash: Gh[t]
						});
					},
					"data-testid": "line-style-select",
					children: [
						/* @__PURE__ */ (0, E.jsx)("option", {
							value: "solid",
							children: "Solid"
						}),
						/* @__PURE__ */ (0, E.jsx)("option", {
							value: "dashed",
							children: "Dashed"
						}),
						/* @__PURE__ */ (0, E.jsx)("option", {
							value: "dotted",
							children: "Dotted"
						})
					]
				})]
			}),
			/* @__PURE__ */ (0, E.jsxs)("div", {
				className: "shape-prop-section",
				children: [
					/* @__PURE__ */ (0, E.jsx)("label", {
						className: "shape-prop-label",
						htmlFor: "opacity",
						children: "Opacity"
					}),
					/* @__PURE__ */ (0, E.jsx)("input", {
						id: "opacity",
						type: "range",
						className: "shape-prop-range-input",
						min: 0,
						max: 1,
						step: .05,
						value: e.opacity,
						onChange: (e) => l({ opacity: Number(e.target.value) }),
						"data-testid": "opacity-input"
					}),
					/* @__PURE__ */ (0, E.jsxs)("span", {
						className: "shape-prop-range-value",
						children: [Math.round(e.opacity * 100), "%"]
					})
				]
			}),
			/* @__PURE__ */ (0, E.jsxs)("div", {
				className: "shape-prop-section",
				children: [/* @__PURE__ */ (0, E.jsx)("label", {
					className: "shape-prop-label",
					htmlFor: "rotation",
					children: "Rotation"
				}), /* @__PURE__ */ (0, E.jsx)("div", {
					className: "shape-prop-dims",
					children: /* @__PURE__ */ (0, E.jsxs)("span", { children: [Math.round(e.rotation), "°"] })
				})]
			}),
			o && n && /* @__PURE__ */ (0, E.jsx)("div", {
				className: "shape-prop-section",
				children: /* @__PURE__ */ (0, E.jsx)("button", {
					type: "button",
					className: "shape-prop-convert-btn",
					onClick: u,
					disabled: s,
					"data-testid": "convert-to-paths-btn",
					children: s ? "Converting…" : "Convert to Paths"
				})
			})
		]
	});
}
var qh = {
	container: "_container_16ibx_3",
	toolbar: "_toolbar_16ibx_11",
	toolGroup: "_toolGroup_16ibx_22",
	mainArea: "_mainArea_16ibx_27",
	canvasArea: "_canvasArea_16ibx_33",
	panelArea: "_panelArea_16ibx_41",
	panelPlaceholder: "_panelPlaceholder_16ibx_49"
};
//#endregion
//#region src/views/DesignCanvas.tsx
function Jh({ svgData: e, state: t, addObject: n, removeObject: r, updateObject: i, selectObjects: a, deselectAll: o, reorderObject: s, toggleVisibility: c, toggleLock: l, setArtboard: u, undo: d, redo: f, canUndo: p, canRedo: m, stageRef: h, onExport: g }) {
	let [_, v] = (0, S.useState)("pointer"), [y, b] = (0, S.useState)(!0), [x, ee] = (0, S.useState)(!1), [C, te] = (0, S.useState)(!1), [ne, w] = (0, S.useState)(1), T = (0, S.useRef)(null), [D, re] = (0, S.useState)({
		width: 800,
		height: 600
	});
	(0, S.useEffect)(() => {
		let e = T.current;
		if (!e) return;
		let t = () => {
			re({
				width: e.clientWidth,
				height: e.clientHeight
			});
		};
		t();
		let n = new ResizeObserver(t);
		return n.observe(e), () => n.disconnect();
	}, [y]);
	let O = (0, S.useCallback)((e) => {
		u(e), b(!1);
	}, [u]);
	(0, S.useEffect)(() => {
		if (!e || x || !t.artboard) return;
		let r = new Blob([e], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = new window.Image();
		a.onload = () => {
			let e = Ee(t.artboard.width, t.artboard.unit), r = Ee(t.artboard.height, t.artboard.unit), o = Math.min(e / a.width, r / a.height, 1), s = a.width * o, c = a.height * o;
			n({
				type: "image",
				id: `imported-svg-${Date.now()}`,
				name: "Imported SVG",
				x: (e - s) / 2,
				y: (r - c) / 2,
				width: s,
				height: c,
				rotation: 0,
				visible: !0,
				locked: !1,
				opacity: 1,
				src: i
			}), ee(!0);
		}, a.src = i;
	}, [
		e,
		x,
		t.artboard,
		n
	]);
	let k = (0, S.useCallback)((e, n) => {
		if (n) {
			let n = new Set(t.selectedIds);
			for (let t of e) n.has(t) ? n.delete(t) : n.add(t);
			a([...n]);
		} else a(e);
	}, [t.selectedIds, a]), A = (0, S.useCallback)((e, t) => {
		i(e, { name: t });
	}, [i]), ie = (0, S.useCallback)(() => {
		w((e) => Math.min(e + .25, 4));
	}, []), j = (0, S.useCallback)(() => {
		w((e) => Math.max(e - .25, .25));
	}, []), ae = (0, S.useCallback)(() => {
		w(1);
	}, []);
	(0, S.useEffect)(() => {
		let e = (e) => {
			let n = (document.activeElement?.tagName ?? "").toLowerCase();
			if (n === "input" || n === "textarea" || n === "select") return;
			let i = e.ctrlKey || e.metaKey;
			if (i && e.shiftKey && e.key.toLowerCase() === "z") {
				e.preventDefault(), f();
				return;
			}
			if (i && e.key.toLowerCase() === "z") {
				e.preventDefault(), d();
				return;
			}
			if (i && e.key.toLowerCase() === "y") {
				e.preventDefault(), f();
				return;
			}
			if (i && e.key.toLowerCase() === "a") {
				e.preventDefault(), a(t.objects.map((e) => e.id));
				return;
			}
			if (e.key === "Delete" || e.key === "Backspace") {
				e.preventDefault();
				for (let e of t.selectedIds) r(e);
				return;
			}
			if (e.key === "Escape") {
				e.preventDefault(), o();
				return;
			}
		};
		return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
	}, [
		d,
		f,
		r,
		a,
		o,
		t.objects,
		t.selectedIds
	]);
	let oe = (0, S.useCallback)((e, t) => {
		r(e), n(t), a([t.id]);
	}, [
		r,
		n,
		a
	]), se = (0, S.useMemo)(() => t.selectedIds.length === 1 ? t.objects.find((e) => e.id === t.selectedIds[0]) ?? null : null, [t.objects, t.selectedIds]);
	return y ? /* @__PURE__ */ (0, E.jsx)(ke, { onConfirm: O }) : /* @__PURE__ */ (0, E.jsxs)("div", {
		className: qh.container,
		children: [/* @__PURE__ */ (0, E.jsxs)("div", {
			className: qh.toolbar,
			children: [/* @__PURE__ */ (0, E.jsx)(Fs, {
				activeTool: _,
				onToolChange: v,
				canUndo: p,
				canRedo: m,
				onUndo: d,
				onRedo: f,
				showGrid: C,
				onToggleGrid: () => te((e) => !e),
				zoomLevel: ne,
				onZoomIn: ie,
				onZoomOut: j,
				onZoomFit: ae
			}), /* @__PURE__ */ (0, E.jsx)("button", {
				type: "button",
				className: "canvas-tool-btn",
				onClick: g,
				title: "Export design",
				"data-testid": "export-btn",
				children: "⤓ Export"
			})]
		}), /* @__PURE__ */ (0, E.jsxs)("div", {
			className: qh.mainArea,
			children: [/* @__PURE__ */ (0, E.jsx)("div", {
				className: qh.canvasArea,
				ref: T,
				"data-testid": "canvas-container",
				children: /* @__PURE__ */ (0, E.jsx)(ks, {
					width: D.width,
					height: D.height,
					artboard: t.artboard,
					objects: t.objects,
					selectedIds: t.selectedIds,
					activeTool: _,
					onSelect: k,
					onDeselectAll: o,
					onAddObject: n,
					onUpdateObject: i,
					stageRef: h
				})
			}), /* @__PURE__ */ (0, E.jsxs)("div", {
				className: qh.panelArea,
				"data-testid": "panel-area",
				children: [
					/* @__PURE__ */ (0, E.jsx)(Js, {
						objects: t.objects,
						selectedIds: t.selectedIds,
						artboard: t.artboard,
						onUpdateObject: i
					}),
					/* @__PURE__ */ (0, E.jsx)(Ls, {
						objects: t.objects,
						selectedIds: t.selectedIds,
						onSelect: k,
						onReorder: s,
						onToggleVisibility: c,
						onToggleLock: l,
						onRename: A
					}),
					se && /* @__PURE__ */ (0, E.jsx)(Kh, {
						object: se,
						onUpdate: i,
						onConvertToPath: oe
					})
				]
			})]
		})]
	});
}
//#endregion
//#region src/utils/exportService.ts
function Yh(e, t) {
	let n = [];
	t || n.push({
		severity: "error",
		message: "No artboard configured. Set up an artboard before exporting."
	});
	for (let t of e) t.visible && (t.type === "text" && n.push({
		severity: "error",
		message: `Text object "${t.name}" must be converted to paths before export.`,
		objectId: t.id,
		objectName: t.name
	}), t.type === "image" && (t.src.includes("image/svg+xml") || t.src.endsWith(".svg") || n.push({
		severity: "warning",
		message: `Image "${t.name}" is raster-only and will be skipped in vector export.`,
		objectId: t.id,
		objectName: t.name
	})));
	return {
		valid: !n.some((e) => e.severity === "error"),
		issues: n
	};
}
function Xh(e) {
	return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
}
function Zh(e) {
	return Number(e.toFixed(4)).toString();
}
function Qh(e) {
	let t = [
		`x="${Zh(e.x)}"`,
		`y="${Zh(e.y)}"`,
		`width="${Zh(e.width)}"`,
		`height="${Zh(e.height)}"`,
		`fill="${Xh(e.fill)}"`,
		`stroke="${Xh(e.stroke)}"`,
		`stroke-width="${Zh(e.strokeWidth)}"`,
		`opacity="${Zh(e.opacity)}"`
	];
	if (e.rotation !== 0) {
		let n = e.x + e.width / 2, r = e.y + e.height / 2;
		t.push(`transform="rotate(${Zh(e.rotation)} ${Zh(n)} ${Zh(r)})"`);
	}
	return `  <rect ${t.join(" ")} />`;
}
function $h(e) {
	let t = [
		`cx="${Zh(e.x)}"`,
		`cy="${Zh(e.y)}"`,
		`r="${Zh(e.radius)}"`,
		`fill="${Xh(e.fill)}"`,
		`stroke="${Xh(e.stroke)}"`,
		`stroke-width="${Zh(e.strokeWidth)}"`,
		`opacity="${Zh(e.opacity)}"`
	];
	return e.rotation !== 0 && t.push(`transform="rotate(${Zh(e.rotation)} ${Zh(e.x)} ${Zh(e.y)})"`), `  <circle ${t.join(" ")} />`;
}
function eg(e) {
	let t = [
		`cx="${Zh(e.x)}"`,
		`cy="${Zh(e.y)}"`,
		`rx="${Zh(e.radiusX)}"`,
		`ry="${Zh(e.radiusY)}"`,
		`fill="${Xh(e.fill)}"`,
		`stroke="${Xh(e.stroke)}"`,
		`stroke-width="${Zh(e.strokeWidth)}"`,
		`opacity="${Zh(e.opacity)}"`
	];
	return e.rotation !== 0 && t.push(`transform="rotate(${Zh(e.rotation)} ${Zh(e.x)} ${Zh(e.y)})"`), `  <ellipse ${t.join(" ")} />`;
}
function tg(e) {
	let t = [];
	for (let n = 0; n < e.points.length; n += 2) {
		let r = e.x + (e.points[n] ?? 0), i = e.y + (e.points[n + 1] ?? 0);
		t.push(`${Zh(r)},${Zh(i)}`);
	}
	let n = [
		`points="${t.join(" ")}"`,
		"fill=\"none\"",
		`stroke="${Xh(e.stroke)}"`,
		`stroke-width="${Zh(e.strokeWidth)}"`,
		`opacity="${Zh(e.opacity)}"`
	];
	return e.dash.length > 0 && n.push(`stroke-dasharray="${e.dash.map(Zh).join(" ")}"`), e.rotation !== 0 && n.push(`transform="rotate(${Zh(e.rotation)} ${Zh(e.x)} ${Zh(e.y)})"`), `  <polyline ${n.join(" ")} />`;
}
function ng(e) {
	let t = [
		`x="${Zh(e.x)}"`,
		`y="${Zh(e.y)}"`,
		`width="${Zh(e.width)}"`,
		`height="${Zh(e.height)}"`,
		`href="${Xh(e.src)}"`,
		`opacity="${Zh(e.opacity)}"`
	];
	if (e.rotation !== 0) {
		let n = e.x + e.width / 2, r = e.y + e.height / 2;
		t.push(`transform="rotate(${Zh(e.rotation)} ${Zh(n)} ${Zh(r)})"`);
	}
	return `  <image ${t.join(" ")} />`;
}
function rg(e) {
	if (!e.visible) return null;
	switch (e.type) {
		case "rect": return Qh(e);
		case "circle": return $h(e);
		case "ellipse": return eg(e);
		case "line": return tg(e);
		case "image": return e.src.includes("image/svg+xml") || e.src.endsWith(".svg") ? ng(e) : null;
		case "text": return null;
		default: return null;
	}
}
function ig(e, t) {
	let n = Ee(t.width, t.unit), r = Ee(t.height, t.unit), i = t.unit === "inches" ? "in" : "mm", a = `${Zh(t.width)}${i}`, o = `${Zh(t.height)}${i}`, s = e.map(rg).filter((e) => e !== null);
	return [
		`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${Zh(n)} ${Zh(r)}" width="${a}" height="${o}">`,
		...s,
		"</svg>"
	].join("\n");
}
function ag(e, t) {
	let n = URL.createObjectURL(e), r = document.createElement("a");
	r.href = n, r.download = t, r.style.display = "none", document.body.appendChild(r), r.click(), setTimeout(() => {
		document.body.removeChild(r), URL.revokeObjectURL(n);
	}, 100);
}
var og = {
	container: "_container_1clu0_3",
	header: "_header_1clu0_11",
	headerTitle: "_headerTitle_1clu0_22",
	backBtn: "_backBtn_1clu0_29",
	body: "_body_1clu0_49",
	mainPanel: "_mainPanel_1clu0_56",
	sidePanel: "_sidePanel_1clu0_67",
	previewSection: "_previewSection_1clu0_79",
	previewLabel: "_previewLabel_1clu0_88",
	previewImage: "_previewImage_1clu0_97",
	previewPlaceholder: "_previewPlaceholder_1clu0_106",
	sectionLabel: "_sectionLabel_1clu0_119",
	formatGrid: "_formatGrid_1clu0_128",
	formatCard: "_formatCard_1clu0_134",
	formatCardSelected: "_formatCardSelected_1clu0_153",
	formatName: "_formatName_1clu0_159",
	formatDesc: "_formatDesc_1clu0_165",
	unitSelector: "_unitSelector_1clu0_172",
	unitLabel: "_unitLabel_1clu0_178",
	validationPanel: "_validationPanel_1clu0_192",
	validationItem: "_validationItem_1clu0_198",
	validationError: "_validationError_1clu0_208",
	validationWarning: "_validationWarning_1clu0_214",
	validationIcon: "_validationIcon_1clu0_220",
	validationOk: "_validationOk_1clu0_226",
	downloadBtn: "_downloadBtn_1clu0_233",
	downloadBtnExporting: "_downloadBtnExporting_1clu0_260",
	exportError: "_exportError_1clu0_265"
}, sg = [
	{
		id: "dxf",
		name: "DXF",
		description: "AutoCAD / LightBurn — vector paths with real-world scale"
	},
	{
		id: "svg",
		name: "SVG",
		description: "Scalable vector — Inkscape, Illustrator, web"
	},
	{
		id: "png",
		name: "PNG",
		description: "Raster image — print preview, sharing"
	}
], cg = {
	inches: 1 / 96,
	mm: 25.4 / 96
};
function lg({ objects: e, artboard: t, pngDataUrl: n, onBack: r }) {
	let [i, a] = (0, S.useState)("dxf"), [o, s] = (0, S.useState)(t?.unit ?? "inches"), [c, l] = (0, S.useState)(!1), [u, d] = (0, S.useState)(null), f = (0, S.useMemo)(() => Yh(e, t), [e, t]), p = f.issues.some((e) => e.severity === "error");
	(0, S.useEffect)(() => {
		t && s(t.unit);
	}, [t]);
	let m = i === "dxf" || i === "svg", h = (0, S.useCallback)(async () => {
		if (!(!t && i !== "png")) {
			l(!0), d(null);
			try {
				switch (i) {
					case "dxf": {
						let n = ig(e, t), r = cg[o];
						ag(await ce(n, o, r), "export.dxf");
						break;
					}
					case "svg": {
						let n = ig(e, t);
						ag(new Blob([n], { type: "image/svg+xml" }), "export.svg");
						break;
					}
					case "png":
						if (!n) {
							d("No PNG preview available. Go back and try again.");
							break;
						}
						ag(await (await fetch(n)).blob(), "export.png");
						break;
				}
			} catch (e) {
				d(e instanceof Error ? e.message : "Export failed unexpectedly."), console.error("[ExportView] export error:", e);
			} finally {
				l(!1);
			}
		}
	}, [
		i,
		o,
		e,
		t,
		n
	]), g = c || i !== "png" && p || i === "png" && !n;
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		className: og.container,
		"data-testid": "export-view",
		children: [/* @__PURE__ */ (0, E.jsxs)("header", {
			className: og.header,
			children: [/* @__PURE__ */ (0, E.jsx)("h1", {
				className: og.headerTitle,
				children: "Export"
			}), /* @__PURE__ */ (0, E.jsx)("button", {
				type: "button",
				className: og.backBtn,
				onClick: r,
				"data-testid": "export-back-btn",
				children: "← Back to Design"
			})]
		}), /* @__PURE__ */ (0, E.jsxs)("div", {
			className: og.body,
			children: [/* @__PURE__ */ (0, E.jsx)("div", {
				className: og.mainPanel,
				children: /* @__PURE__ */ (0, E.jsxs)("div", {
					className: og.previewSection,
					children: [/* @__PURE__ */ (0, E.jsx)("span", {
						className: og.previewLabel,
						children: "Preview"
					}), n ? /* @__PURE__ */ (0, E.jsx)("img", {
						className: og.previewImage,
						src: n,
						alt: "Design preview",
						"data-testid": "export-preview"
					}) : /* @__PURE__ */ (0, E.jsx)("div", {
						className: og.previewPlaceholder,
						children: "No preview available"
					})]
				})
			}), /* @__PURE__ */ (0, E.jsxs)("aside", {
				className: og.sidePanel,
				children: [
					/* @__PURE__ */ (0, E.jsxs)("div", { children: [/* @__PURE__ */ (0, E.jsx)("p", {
						className: og.sectionLabel,
						children: "Format"
					}), /* @__PURE__ */ (0, E.jsx)("div", {
						className: og.formatGrid,
						"data-testid": "format-selector",
						children: sg.map((e) => /* @__PURE__ */ (0, E.jsxs)("button", {
							type: "button",
							className: `${og.formatCard}${i === e.id ? ` ${og.formatCardSelected}` : ""}`,
							onClick: () => {
								a(e.id), d(null);
							},
							"data-testid": `format-${e.id}`,
							children: [/* @__PURE__ */ (0, E.jsx)("span", {
								className: og.formatName,
								children: e.name
							}), /* @__PURE__ */ (0, E.jsx)("span", {
								className: og.formatDesc,
								children: e.description
							})]
						}, e.id))
					})] }),
					m && /* @__PURE__ */ (0, E.jsxs)("div", { children: [/* @__PURE__ */ (0, E.jsx)("p", {
						className: og.sectionLabel,
						children: "Units"
					}), /* @__PURE__ */ (0, E.jsxs)("div", {
						className: og.unitSelector,
						"data-testid": "unit-selector",
						children: [/* @__PURE__ */ (0, E.jsxs)("label", {
							className: og.unitLabel,
							children: [/* @__PURE__ */ (0, E.jsx)("input", {
								type: "radio",
								name: "export-unit",
								value: "inches",
								checked: o === "inches",
								onChange: () => s("inches")
							}), "Inches"]
						}), /* @__PURE__ */ (0, E.jsxs)("label", {
							className: og.unitLabel,
							children: [/* @__PURE__ */ (0, E.jsx)("input", {
								type: "radio",
								name: "export-unit",
								value: "mm",
								checked: o === "mm",
								onChange: () => s("mm")
							}), "Millimeters"]
						})]
					})] }),
					/* @__PURE__ */ (0, E.jsxs)("div", { children: [/* @__PURE__ */ (0, E.jsx)("p", {
						className: og.sectionLabel,
						children: "Validation"
					}), /* @__PURE__ */ (0, E.jsx)("div", {
						className: og.validationPanel,
						"data-testid": "validation-panel",
						children: f.issues.length === 0 ? /* @__PURE__ */ (0, E.jsx)("p", {
							className: og.validationOk,
							children: "✓ Ready to export"
						}) : f.issues.map((e, t) => /* @__PURE__ */ (0, E.jsxs)("div", {
							className: `${og.validationItem} ${e.severity === "error" ? og.validationError : og.validationWarning}`,
							"data-testid": `validation-${e.severity}`,
							children: [/* @__PURE__ */ (0, E.jsx)("span", {
								className: og.validationIcon,
								children: e.severity === "error" ? "✕" : "⚠"
							}), /* @__PURE__ */ (0, E.jsx)("span", { children: e.message })]
						}, `${e.objectId ?? "global"}-${t}`))
					})] }),
					u && /* @__PURE__ */ (0, E.jsx)("div", {
						className: og.exportError,
						"data-testid": "export-error",
						children: u
					}),
					/* @__PURE__ */ (0, E.jsx)("button", {
						type: "button",
						className: `${og.downloadBtn}${c ? ` ${og.downloadBtnExporting}` : ""}`,
						disabled: g,
						onClick: h,
						"data-testid": "download-btn",
						children: c ? "Exporting…" : `Download ${i.toUpperCase()}`
					})
				]
			})]
		})]
	});
}
//#endregion
//#region src/App.tsx
function ug() {
	let [e, t] = (0, S.useState)("import"), [n, r] = (0, S.useState)(null), [i, a] = (0, S.useState)(null), [o, s] = (0, S.useState)(null), c = ne(i), l = (0, S.useRef)(null), u = (e, n) => {
		r(e), a(n), t("canvas");
	}, d = (0, S.useCallback)(() => {
		l.current && s(l.current.toDataURL({ pixelRatio: 2 })), t("export");
	}, []), f = (0, S.useCallback)(() => {
		t("canvas");
	}, []);
	return /* @__PURE__ */ (0, E.jsxs)("div", {
		id: "app",
		children: [
			e === "import" && /* @__PURE__ */ (0, E.jsx)(be, { onUseThis: u }),
			e === "canvas" && /* @__PURE__ */ (0, E.jsx)(Jh, {
				svgData: n,
				stageRef: l,
				onExport: d,
				...c
			}),
			e === "export" && /* @__PURE__ */ (0, E.jsx)(lg, {
				objects: c.state.objects,
				artboard: c.state.artboard,
				pngDataUrl: o,
				onBack: f
			})
		]
	});
}
//#endregion
//#region src/index.css?inline
var dg = ":root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, \"Segoe UI\", Roboto, sans-serif;--heading:system-ui, \"Segoe UI\", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}", fg = "@font-face{font-family:Roboto;src:url(/fonts/Roboto-Regular.ttf)format(\"truetype\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Open Sans;src:url(/fonts/OpenSans-Regular.ttf)format(\"truetype\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Lato;src:url(/fonts/Lato-Regular.ttf)format(\"truetype\");font-weight:400;font-style:normal;font-display:swap}.file-upload-zone{border:2px dashed var(--border);text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:8px;padding:24px 16px;transition:border-color .15s,background-color .15s}.file-upload-zone:hover,.file-upload-zone--drag-over{border-color:var(--accent);background:var(--accent-bg)}.file-upload-zone:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.file-upload-prompt{flex-direction:column;align-items:center;gap:6px;display:flex}.file-upload-icon{font-size:28px}.file-upload-prompt p{color:var(--text-h);margin:0;font-size:15px}.file-upload-prompt small{color:var(--text);font-size:13px}.file-upload-preview{align-items:center;gap:12px;display:flex}.file-upload-thumb{object-fit:cover;border:1px solid var(--border);border-radius:4px;width:56px;height:56px}.file-upload-info{text-align:left;flex-direction:column;align-items:flex-start;gap:2px;display:flex}.file-upload-name{color:var(--text-h);word-break:break-all;font-size:14px;font-weight:500}.file-upload-size{color:var(--text);font-size:13px}.file-upload-badge{text-transform:uppercase;letter-spacing:.5px;color:var(--accent);background:var(--accent-bg);border-radius:3px;padding:2px 6px;font-size:11px;font-weight:600}.preset-selector{flex-direction:column;gap:8px;display:flex}.preset-heading{color:var(--text-h);text-transform:uppercase;letter-spacing:.5px;margin:0;font-size:14px;font-weight:600}.preset-loading,.preset-error{color:var(--text);margin:0;font-size:14px}.preset-error{color:#e74c3c}.preset-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.preset-card{border:1px solid var(--border);background:var(--bg);cursor:pointer;text-align:left;border-radius:6px;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;font-family:inherit;transition:border-color .12s,background-color .12s;display:flex}.preset-card:hover{border-color:var(--accent-border);background:var(--accent-bg)}.preset-card--selected{border-color:var(--accent);background:var(--accent-bg);box-shadow:0 0 0 1px var(--accent)}.preset-card-name{color:var(--text-h);text-transform:capitalize;font-size:14px;font-weight:600}.preset-card-desc{color:var(--text);font-size:12px;line-height:1.3}.parameter-sliders{flex-direction:column;gap:12px;display:flex}.parameter-heading{color:var(--text-h);text-transform:uppercase;letter-spacing:.5px;margin:0;font-size:14px;font-weight:600}.slider-row{grid-template-columns:120px 1fr 48px;align-items:center;gap:8px;display:grid}.slider-label{color:var(--text-h);white-space:nowrap;font-size:13px}.slider-input{cursor:pointer;width:100%;height:4px;accent-color:var(--accent)}.slider-value{color:var(--accent);text-align:right;font-variant-numeric:tabular-nums;font-size:13px;font-weight:500}.svg-preview{flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-height:300px;display:flex}.svg-preview--loading{gap:12px}.svg-preview-spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:32px;height:32px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.svg-preview-status{color:var(--text);margin:0;font-size:14px}.svg-preview--error{gap:4px}.svg-preview-error{color:#e74c3c;margin:0;font-size:14px}.svg-preview-hint{color:var(--text);margin:0;font-size:13px}.svg-preview--empty{opacity:.7}.svg-preview-placeholder{color:var(--text);text-align:center;margin:0;font-size:15px}.svg-preview--ready{justify-content:flex-start;gap:12px}.svg-preview-container{width:100%;max-height:70vh;overflow:auto}.svg-preview-container svg{width:100%;height:auto;display:block}.svg-preview-meta{color:var(--text);border-top:1px solid var(--border);gap:16px;width:100%;padding:6px 0;font-size:12px;display:flex}.svg-preview-warnings{color:#e67e22}.use-this-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:12px 24px;font-family:inherit;font-size:15px;font-weight:600;transition:opacity .15s;display:flex}.use-this-btn:hover{opacity:.9}.use-this-btn:disabled{opacity:.5;cursor:not-allowed}.output-info-bar{background:var(--code-bg);border:1px solid var(--border);border-radius:6px;flex-direction:column;gap:6px;padding:10px 12px;font-size:13px;display:flex}.output-info-bar--empty{opacity:.6}.output-info-placeholder{color:var(--text);font-size:13px}.output-info-stats{flex-wrap:wrap;gap:16px;display:flex}.output-stat{flex-direction:column;align-items:flex-start;gap:1px;display:flex}.output-stat-label{text-transform:uppercase;letter-spacing:.5px;color:var(--text);font-size:11px;font-weight:600}.output-stat-value{font-variant-numeric:tabular-nums;font-size:15px;font-weight:600}.output-stat--green .output-stat-value{color:#27ae60}.output-stat--yellow .output-stat-value{color:#f39c12}.output-stat--red .output-stat-value{color:#e74c3c}.output-info-warnings{flex-direction:column;gap:2px;display:flex}.output-info-warning{color:#e67e22;font-size:12px}.placeholder-view{min-height:60vh;color:var(--text);justify-content:center;align-items:center;font-size:20px;display:flex}.canvas-tool-btn{border:1px solid var(--border);background:var(--bg);color:var(--text-h);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:5px;align-items:center;gap:4px;padding:6px 10px;font-family:inherit;font-size:13px;transition:border-color .12s,background-color .12s;display:inline-flex}.canvas-tool-btn:hover{border-color:var(--accent-border);background:var(--accent-bg)}.canvas-tool-btn--active{border-color:var(--accent);background:var(--accent-bg);color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.canvas-tool-btn:disabled{opacity:.4;cursor:not-allowed}.canvas-tool-icon{font-size:16px;line-height:1}.canvas-tool-label{font-size:12px}#app:has([data-testid=canvas-container]){max-width:100%}.artboard-setup-overlay{justify-content:center;align-items:center;min-height:80vh;padding:24px;display:flex}.artboard-setup-modal{border:1px solid var(--border);background:var(--bg);width:100%;max-width:480px;box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:16px;padding:24px;display:flex}.artboard-setup-modal h2{margin:0 0 4px}.artboard-setup-shapes{border:none;margin:0;padding:0}.artboard-setup-shapes legend{color:var(--text-h);margin-bottom:8px;font-size:14px;font-weight:600}.artboard-shape-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:6px;display:grid}.artboard-shape-btn{border:1px solid var(--border);background:var(--bg);color:var(--text-h);cursor:pointer;border-radius:6px;padding:8px 10px;font-family:inherit;font-size:13px;transition:border-color .12s,background-color .12s}.artboard-shape-btn:hover{border-color:var(--accent-border);background:var(--accent-bg)}.artboard-shape-btn.active{border-color:var(--accent);background:var(--accent-bg);color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.artboard-setup-dimensions{gap:12px;display:flex}.artboard-setup-dimensions label{color:var(--text-h);flex-direction:column;flex:1;gap:4px;font-size:13px;font-weight:500;display:flex}.artboard-setup-dimensions input{border:1px solid var(--border);background:var(--bg);color:var(--text-h);border-radius:4px;padding:6px 8px;font-family:inherit;font-size:14px}.artboard-setup-dimensions input:disabled{opacity:.5}.artboard-setup-units{border:none;align-items:center;gap:16px;margin:0;padding:0;display:flex}.artboard-setup-units legend{color:var(--text-h);margin-right:8px;font-size:14px;font-weight:600}.artboard-setup-units label{color:var(--text-h);cursor:pointer;align-items:center;gap:4px;font-size:13px;display:flex}.artboard-setup-confirm{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;padding:10px 20px;font-family:inherit;font-size:14px;font-weight:600;transition:opacity .15s;display:flex}.artboard-setup-confirm:hover{opacity:.9}.canvas-toolbar{flex-wrap:wrap;align-items:center;gap:12px;width:100%;display:flex}.canvas-toolbar-group{align-items:center;gap:4px;display:flex}.canvas-toolbar-zoom-label{color:var(--text-h);text-align:center;font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;min-width:42px;font-size:12px;font-weight:600}.object-panel{flex-direction:column;gap:0;display:flex}.object-panel-header{text-transform:uppercase;letter-spacing:.5px;color:var(--text);border-bottom:1px solid var(--border);padding:8px 0 6px;font-size:12px;font-weight:700}.object-panel-empty{color:var(--text);opacity:.6;text-align:center;padding:12px 0;font-size:13px}.object-panel-list{flex-direction:column;display:flex}.object-panel-row{border-bottom:1px solid var(--border);cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--text-h);align-items:center;gap:6px;padding:6px 4px;font-size:13px;transition:background-color .1s;display:flex}.object-panel-row:hover{background:var(--accent-bg)}.object-panel-row--selected{background:var(--accent-bg);border-left:2px solid var(--accent);padding-left:2px}.object-panel-row--hidden{opacity:.4}.object-panel-drag{cursor:grab;color:var(--text);text-align:center;flex-shrink:0;width:16px;font-size:14px}.object-panel-type-icon{text-align:center;flex-shrink:0;width:18px;font-size:14px}.object-panel-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.object-panel-name-input{border:1px solid var(--accent);background:var(--bg);min-width:0;color:var(--text-h);border-radius:3px;outline:none;flex:1;padding:2px 4px;font-family:inherit;font-size:13px}.object-panel-icon-btn{cursor:pointer;background:0 0;border:none;border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:14px;transition:background-color .1s;display:inline-flex}.object-panel-icon-btn:hover{background:var(--accent-bg)}.object-panel-icon-btn--off{opacity:.35}.object-panel-icon-btn--on{color:var(--accent)}.alignment-bar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;display:flex}.alignment-bar-group{gap:2px;display:flex}.alignment-btn{border:1px solid var(--border);background:var(--bg);cursor:pointer;width:28px;height:28px;color:var(--text-h);border-radius:4px;justify-content:center;align-items:center;padding:0;font-size:14px;transition:border-color .1s,background-color .1s;display:inline-flex}.alignment-btn:hover{border-color:var(--accent-border);background:var(--accent-bg)}.alignment-btn:active{background:var(--accent-bg);border-color:var(--accent)}.shape-properties{border-top:1px solid var(--border);flex-direction:column;gap:0;padding-top:8px;display:flex}.shape-properties-header{text-transform:uppercase;letter-spacing:.5px;color:var(--text);padding:0 0 6px;font-size:12px;font-weight:700}.shape-prop-section{border-bottom:1px solid var(--border);flex-direction:column;gap:4px;padding:6px 0;display:flex}.shape-prop-section:last-child{border-bottom:none}.shape-prop-label{text-transform:uppercase;letter-spacing:.3px;color:var(--text);font-size:11px;font-weight:600}.shape-prop-dims{font-variant-numeric:tabular-nums;color:var(--text-h);gap:16px;font-size:13px;display:flex}.shape-prop-color-input{border:1px solid var(--border);cursor:pointer;background:var(--bg);border-radius:4px;width:100%;height:28px;padding:2px}.shape-prop-number-input{border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text-h);border-radius:4px;padding:4px 6px;font-family:inherit;font-size:13px}.shape-prop-fill-row{align-items:center;gap:8px;display:flex}.shape-prop-fill-row .shape-prop-color-input{flex:1}.shape-prop-fill-toggle{color:var(--text-h);cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;align-items:center;gap:4px;font-size:12px;display:flex}.shape-prop-select{border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text-h);cursor:pointer;border-radius:4px;padding:4px 6px;font-family:inherit;font-size:13px}.shape-prop-range-input{width:100%;accent-color:var(--accent)}.shape-prop-range-value{color:var(--accent);font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}";
//#endregion
//#region src/embed.tsx
function pg(e) {
	let t = [], n = /@font-face\s*\{[^}]*\}/g, r = e, i;
	for (; (i = n.exec(e)) !== null;) t.push(i[0]);
	return r = e.replace(n, "").trim(), [t.join("\n"), r];
}
function mg(e) {
	return e.replace(/:root/g, ":host");
}
function hg(e) {
	if (!e.trim()) return;
	let t = "kerf-embed-fonts";
	if (document.getElementById(t)) return;
	let n = document.createElement("style");
	n.id = t, n.textContent = e, document.head.appendChild(n);
}
var gg = class extends HTMLElement {
	_root = null;
	connectedCallback() {
		let e = this.getAttribute("engine-url");
		e && ie(e);
		let t = this.attachShadow({ mode: "open" }), [n, r] = pg(fg);
		hg(n);
		let i = mg(dg), a = document.createElement("style");
		a.textContent = `
${i}
${r}

/* Embed-specific overrides */
:host {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
`, t.appendChild(a);
		let o = document.createElement("div");
		o.id = "root", t.appendChild(o), this._root = (0, ee.createRoot)(o), this._root.render(/* @__PURE__ */ (0, E.jsx)(S.StrictMode, { children: /* @__PURE__ */ (0, E.jsx)(ug, {}) }));
	}
	disconnectedCallback() {
		this._root &&= (this._root.unmount(), null);
	}
};
customElements.get("kerf-embed") || customElements.define("kerf-embed", gg);
//#endregion
export { gg as KerfEmbed };
