// Metro module 1183 (f1184). import { debug } from "./Module817"; export function safeFactory(a0) { let r1 = a0; let r3 = arguments[1]; if (r3 === void 0) { r3 = {}; } let c12886_1 = r3; if (typeof a0 === "function") { r1 = function(...args) { let r16; try { r16 = a0.apply(void 0, [...args]); } catch (r17) { debug.error(c12886_1.loggerMessage ? c12886_1.loggerMessage : `The ${a0.name} callback threw an error`, r17); return args[0]; } return r16; }; } return r1; } export function safeTracesSampler(a0) { let r0 = a0; if (a0) { r0 = function(...args) { let r14; try { r14 = a0.apply(void 0, [...args]); } catch ($e) { debug.error("The tracesSampler callback threw an error", $e); return 0; } return r14; }; } return r0; }