// Module ID: 48 // Function ID: 49 // Name: replacer // Dependencies: [38] // Module 48 (replacer) let c0 = arg2; let c1 = arg6; function replacer(arg0, props) { if (arr.length) { arr = tmp; if (this !== tmp[0]) { arr = arr.shift(); while (arr.length) { arr = tmp3; if (tmp2 === tmp3[0]) { break; } } } } if (typeof props === "string") { let text = props; if (props.length > POSITIVE_INFINITY2 + 17) { text = `${props.substring(0, tmp17)}...(truncated)...`; } return text; } else { if (typeof props === "object") { if (null !== props) { const _Array = Array; if (Array.isArray(props)) { if (arr.length >= POSITIVE_INFINITY) { const _HermesInternal3 = HermesInternal; let combined = "[ ... array with " + props.length + " values ... ]"; } else { combined = props; if (props.length > POSITIVE_INFINITY3) { const substr = props.slice(0, tmp14); const _HermesInternal2 = HermesInternal; const items = ["... extra " + props.length - tmp14 + " values truncated ..."]; combined = substr.concat(items); } } } else { POSITIVE_INFINITY(POSITIVE_INFINITY2[0])(typeof props === "object", "This was already found earlier"); const _Object = Object; const keys = Object.keys(props); if (arr.length >= POSITIVE_INFINITY) { const _HermesInternal = HermesInternal; combined = "{ ... object with " + keys.length + " keys ... }"; } else { combined = props; if (keys.length > POSITIVE_INFINITY4) { const obj = {}; const substr1 = keys.slice(0, tmp9); for (const item10028 of substr1) { obj[item10028] = arg1[item10028]; continue; } obj["...(truncated keys)..."] = keys.length - POSITIVE_INFINITY4; combined = obj; } } } arr = arr.unshift(combined); return combined; } } return props; } } c0 = 10; c1 = 100; let c2 = 50; let c3 = 50; let closure_4 = []; arg5.default = function stringifySafe(fn) { if (undefined === fn) { return "undefined"; } else if (null === fn) { return "null"; } else if (typeof fn === "function") { try { return fn.toString(); } catch (err) { return "[function unknown]"; } } else { const _Error = Error; if (fn instanceof Error) { return fn.name + ": " + fn.message; } else { try { const _JSON = JSON; const json = JSON.stringify(fn, replacer); let combined = json; if (undefined === json) { const _HermesInternal = HermesInternal; combined = "[\"" + typeof fn + "\" failed to stringify]"; } return combined; } catch (err) { if (typeof str.toString !== "function") { return "[\"" + typeof str + "\" failed to stringify]"; } else { try { return str.toString(); } catch (err) { } } } } } }; arg5.createStringifySafeWithLimits = function createStringifySafeWithLimits(maxDepth) { replacer = function replacer(arg0, props) { if (arr.length) { arr = tmp; if (this !== tmp[0]) { arr = arr.shift(); while (arr.length) { arr = tmp3; if (tmp2 === tmp3[0]) { break; } } } } if (typeof props === "string") { let text = props; if (props.length > POSITIVE_INFINITY2 + 17) { text = `${props.substring(0, tmp17)}...(truncated)...`; } return text; } else { if (typeof props === "object") { if (null !== props) { const _Array = Array; if (Array.isArray(props)) { if (arr.length >= POSITIVE_INFINITY) { const _HermesInternal3 = HermesInternal; let combined = "[ ... array with " + props.length + " values ... ]"; } else { combined = props; if (props.length > POSITIVE_INFINITY3) { const substr = props.slice(0, tmp14); const _HermesInternal2 = HermesInternal; const items = ["... extra " + props.length - tmp14 + " values truncated ..."]; combined = substr.concat(items); } } } else { POSITIVE_INFINITY(POSITIVE_INFINITY2[0])(typeof props === "object", "This was already found earlier"); const _Object = Object; const keys = Object.keys(props); if (arr.length >= POSITIVE_INFINITY) { const _HermesInternal = HermesInternal; combined = "{ ... object with " + keys.length + " keys ... }"; } else { combined = props; if (keys.length > POSITIVE_INFINITY4) { const obj = {}; const substr1 = keys.slice(0, tmp9); for (const item10028 of substr1) { obj[item10028] = arg1[item10028]; continue; } obj["...(truncated keys)..."] = keys.length - POSITIVE_INFINITY4; combined = obj; } } } arr = arr.unshift(combined); return combined; } } return props; } }; let POSITIVE_INFINITY = maxDepth.maxDepth; if (undefined === POSITIVE_INFINITY) { const _Number = Number; POSITIVE_INFINITY = Number.POSITIVE_INFINITY; } let POSITIVE_INFINITY2 = maxDepth.maxStringLimit; if (undefined === POSITIVE_INFINITY2) { const _Number2 = Number; POSITIVE_INFINITY2 = Number.POSITIVE_INFINITY; } let POSITIVE_INFINITY3 = maxDepth.maxArrayLimit; if (undefined === POSITIVE_INFINITY3) { const _Number3 = Number; POSITIVE_INFINITY3 = Number.POSITIVE_INFINITY; } let POSITIVE_INFINITY4 = maxDepth.maxObjectKeysLimit; if (undefined === POSITIVE_INFINITY4) { const _Number4 = Number; POSITIVE_INFINITY4 = Number.POSITIVE_INFINITY; } closure_4 = []; return function stringifySafe(fn) { if (undefined === fn) { return "undefined"; } else if (null === fn) { return "null"; } else if (typeof fn === "function") { try { return fn.toString(); } catch (err) { return "[function unknown]"; } } else { const _Error = Error; if (fn instanceof Error) { return fn.name + ": " + fn.message; } else { try { const _JSON = JSON; const json = JSON.stringify(fn, replacer); let combined = json; if (undefined === json) { const _HermesInternal = HermesInternal; combined = "[\"" + typeof fn + "\" failed to stringify]"; } return combined; } catch (err) { if (typeof str.toString !== "function") { return "[\"" + typeof str + "\" failed to stringify]"; } else { try { return str.toString(); } catch (err) { } } } } } }; };