/* Metro module 1075; source: unknown; dependencies: [1047, 826, 1043] */ import * as Module00826Module from './module-00826.js'; /* Metro dependency 826 */ import * as DEBUG_BUILDModule from './module-01043-DEBUG_BUILD.js'; /* Metro dependency 1043 */ import * as WINDOWModule from './module-01047-WINDOW.js'; /* Metro dependency 1047 */ function _fun11244(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:6, offset: 0x00da6232, size: 121 bytes, params: 8, frame: 18 const env0_0 = require; const getNativeImplementation2 = getNativeImplementation; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); const env0_2 = {}; exports.clearCachedImplementation = clearCachedImplementation; exports.fetch = fetch_11247; exports.getNativeImplementation = getNativeImplementation2; exports.setTimeout = setTimeout_11248; function getNativeImplementation(a0) { // fn#11245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:102, offset: 0x00da62ab, size: 487 bytes, params: 2, frame: 25 var r11; var r4; var r3; var createElement; var element; var head; var appendChild; var contentWindow; var value2; var property2; var removeChild; var error; const DEBUG_BUILD = (DEBUG_BUILDModule).DEBUG_BUILD; const debug = (Module00826Module).debug; var binding; let value = environment; let property = env0_2[a0]; if (property) { return property; } const WINDOW = (WINDOWModule).WINDOW; property = WINDOW[a0]; if (Module00826Module.isNativeFunction(property)) { binding = env0_2; value = property.bind(WINDOW); binding[a0] = value; return value; } const document = WINDOW.document; if (document) { createElement = document.createElement; if (typeof createElement !== 'function') { r4 = property; } else { try { createElement = document.createElement; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { element = Reflect.apply(createElement, document, ['iframe']); } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { element.hidden = true; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { head = document.head; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { appendChild = head.appendChild; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(appendChild, head, [element]); } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { contentWindow = element.contentWindow; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { value2 = contentWindow != null; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } if (value2) { try { property2 = contentWindow[a0]; r11 = property2; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } if (r11) { try { property = contentWindow[a0]; r4 = property; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { head = document.head; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { removeChild = head.removeChild; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(removeChild, head, [element]); } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } } } else { r4 = property; try { head = document.head; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { removeChild = head.removeChild; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(removeChild, head, [element]); } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } } } } else if (value2) { try { property = contentWindow[a0]; r4 = property; } catch (error) { r4 = property; if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { head = document.head; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { removeChild = head.removeChild; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(removeChild, head, [element]); } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } } } else { r4 = property; try { head = document.head; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { removeChild = head.removeChild; } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } try { Reflect.apply(removeChild, head, [element]); } catch (error) { if (DEBUG_BUILD) { debug.warn('Could not create sandbox iframe for ' + a0 + ' check, bailing to window.' + a0 + ': ', error); } } } } } else { r4 = property; } if (r4) { binding = env0_2; value = r4.bind(WINDOW); binding[a0] = value; r3 = value; } else { r3 = r4; } return r3; } function clearCachedImplementation(a0) { // fn#11246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:657, offset: 0x00da6492, size: 18 bytes, params: 2, frame: 3 env0_2[a0] = undefined; } function fetch_11247() { // fn#11247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:717, offset: 0x00da64a4, size: 35 bytes, params: 1, frame: 14 return getNativeImplementation('fetch').apply(undefined, arguments); } function setTimeout_11248() { // fn#11248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1202:864, offset: 0x00da64c7, size: 35 bytes, params: 1, frame: 14 return getNativeImplementation('setTimeout').apply(undefined, arguments); } } global.__d(_fun11244, 1075, [1047, 826, 1043]) /* metro module 1075, dependencies: [1047, 826, 1043] */;