// Metro module 1402 (f1403). let r18, r23; let c1162_0, c1162_1, apply, c1162_4, isES6ClassFunction, tryFunctionToStr, toString2, c1162_8, c1162_9, isDocumentDotAll2; const toString = Function.prototype.toString; const Reflect2 = globalThis.Reflect; const r6 = (typeof Reflect2 === "object" ? Reflect !== null : typeof Reflect2 === "object") && Reflect.apply; L10: { apply = r6; if (typeof r6 === "function" && typeof Object.defineProperty === "function") { try { const r21 = Object.defineProperty({}, "length", { get: function get() { throw c1162_1; } }); c1162_0 = r21; const r22 = {}; r23 = r22; c1162_1 = r22; r6(function() { throw 42; }, null, r21); r18 = r6; break L10; } catch (r27) { r18 = r6; if (r27 === r23) { break L10; } apply = null; r18 = null; break L10; } } r18 = null; apply = null; } c1162_4 = /^\s*class\b/; isES6ClassFunction = function isES6ClassFunction(a0) { let r7; try { const call = toString.call; r7 = c1162_4.test(toString.call(a0)); } catch ($e) { return false; } return r7; }; tryFunctionToStr = function tryFunctionToStr(a0) { let r5; try { const isES6ClassFunction2 = isES6ClassFunction(a0); r5 = !isES6ClassFunction2; if (!isES6ClassFunction2) { const call = toString.call; toString.call(a0); r5 = true; } } catch ($e) { return false; } return r5; }; toString2 = Object.prototype.toString; const Symbol2 = globalThis.Symbol; c1162_8 = typeof Symbol2 === "function" ? !!Symbol.toStringTag : typeof Symbol2 === "function"; const r40 = [,]; r40.length = 1; c1162_9 = !(0 in r40); isDocumentDotAll2 = function isDocumentDotAll() { return false; }; if (typeof globalThis.document === "object") { const all = document.all; const call = toString2.call; const r50 = toString2.call(all); const call2 = toString2.call; if (r50 === toString2.call(document.all)) { isDocumentDotAll2 = function isDocumentDotAll(a0) { let r11; L17: { if (!(!c1162_9 && a0) && !(a0 !== void 0 && typeof a0 !== "object")) { try { const call = toString2.call; const r8 = toString2.call(a0); r11 = (r8 === "[object HTMLAllCollection]" || r8 === "[object HTML document.all class]" || r8 === "[object HTMLCollection]" || r8 === "[object Object]") && a0("") == null; } catch ($e) { break L17; } return r11; } } return false; }; } } module.exports = r18 ? function isCallable(a0) { if (isDocumentDotAll2(a0)) { return true; } if (a0) { if (typeof a0 !== "function" && typeof a0 !== "object") { return false; } try { apply(a0, null, c1162_0); } catch ($e) { if ($e !== c1162_1) { return false; } } const isES6ClassFunction2 = isES6ClassFunction(a0); return isES6ClassFunction2 ? !isES6ClassFunction2 : tryFunctionToStr(a0); } return false; } : function isCallable(a0) { if (isDocumentDotAll2(a0)) { return true; } if (a0) { if (typeof a0 !== "function" && typeof a0 !== "object") { return false; } if (c1162_8) { return tryFunctionToStr(a0); } if (isES6ClassFunction(a0)) { return false; } const call = toString2.call; const r7 = toString2.call(a0); const r1 = r7 !== "[object Function]" && r7 !== "[object GeneratorFunction]" && !/^\[object HTML/.test(r7); return r1 ? !r1 : tryFunctionToStr(a0); } return false; };