cricket/all-data"), { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ id: e }) }); hr(t); return await t.json() } catch (t) { throw console.error("Error fetching top bar events:", t), t } }, gr = async function (e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null; try { const a = localStorage.getItem("token"); if (t) { const n = await fetch("".concat(pr, "/user/matchexposures/match"), { method: "POST", headers: { "Content-Type": "application/json", Authorization: "Bearer ".concat(a) }, body: JSON.stringify({ user_id: t, match_id: e }) }); hr(n); return await n.json() } { const t = await fetch("".concat(pr, "/user/matchexposures/match?match_id=").concat(e), { method: "GET", headers: { "Content-Type": "application/json",