/* Metro module 3976; source: unknown; dependencies: [31, 3977, 1237, 1238, 1231, 3980] */ function _fun32604(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:6, offset: 0x0101a196, size: 857 bytes, params: 8, frame: 23 let env0_0 = require; let closure = function(a0) { var value = a0; return value && (typeof value !== 'object' ? value : 'default' in value ? value.default : value); }; const _extends_32606 = function() { var r3; r3 = global.Object.assign || _fun32607; env0_12 = r3; return r3.apply(this, arguments); }; const _inheritsLoose = function(a0, a1) { var Object = global.Object; a0.prototype = Object.create(a1.prototype); var _setPrototypeOf_32609Binding = _setPrototypeOf_32609; a0.prototype.constructor = a0; _setPrototypeOf_32609Binding(a0, a1); }; const _setPrototypeOf_32609 = function(a0, a1) { var r3; r3 = global.Object.setPrototypeOf || _fun32610; env0_14 = r3; return r3(a0, a1); }; const _objectWithoutPropertiesLoose = function(a0, a1) { var r2; var value3; if (a0 == null) { return {}; } var object = {}; var property = global.Object; var value = property.keys(a0); var value2 = 0; if (value2 < value.length) { r2 = value2; while (true) { property = value[r2]; if (!(value2 <= a1.indexOf(property))) { object[property] = a0[property]; } value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value3 < value.length) { r2 = value3; continue; } break; } } return object; }; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = closure(require(31) /* metro dependency 31 */); require(3977) /* metro dependency 3977 */; require(1237) /* metro dependency 1237 */; const env0_3 = closure(require(1238) /* metro dependency 1238 */); let Component = value.Component; let value2 = ((a0) => { var env0_0 = a0; var closure = _fun32613; _inheritsLoose(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = _fun32614; return closure; })(Component); Component = value.Component; let value3 = ((a0) => { var env0_0 = a0; var closure = _fun32616; _inheritsLoose(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = _fun32617; return closure; })(Component); const resolveToLocation = function(a0, a1) { var r0; var value = a0; if (typeof value !== 'function') { r0 = value; } else { value = value(a1); r0 = value; } return r0; }; closure = function(a0) { return a0; }; let forwardRef = value.forwardRef; let r3 = forwardRef !== undefined ? forwardRef : closure; const env0_8 = r3(_fun32621); const value4 = r3(_fun32623); closure = function(a0) { return a0; }; forwardRef = value.forwardRef; value = (forwardRef !== undefined ? forwardRef : closure)(_fun32627); Object = global.Object; Object.defineProperty(exports, 'MemoryRouter', {enumerable: true, get: function() { return require(dependencyMap[5]).MemoryRouter; }}); Object = global.Object; Object.defineProperty(exports, 'Prompt', {enumerable: true, get: function() { return require(dependencyMap[5]).Prompt; }}); Object = global.Object; Object.defineProperty(exports, 'Redirect', {enumerable: true, get: function() { return require(dependencyMap[5]).Redirect; }}); Object = global.Object; Object.defineProperty(exports, 'Route', {enumerable: true, get: function() { return require(dependencyMap[5]).Route; }}); Object = global.Object; Object.defineProperty(exports, 'Router', {enumerable: true, get: function() { return require(dependencyMap[5]).Router; }}); Object = global.Object; Object.defineProperty(exports, 'StaticRouter', {enumerable: true, get: function() { return require(dependencyMap[5]).StaticRouter; }}); Object = global.Object; Object.defineProperty(exports, 'Switch', {enumerable: true, get: function() { return require(dependencyMap[5]).Switch; }}); Object = global.Object; Object.defineProperty(exports, 'generatePath', {enumerable: true, get: function() { return require(dependencyMap[5]).generatePath; }}); Object = global.Object; Object.defineProperty(exports, 'matchPath', {enumerable: true, get: function() { return require(dependencyMap[5]).matchPath; }}); Object = global.Object; Object.defineProperty(exports, 'useHistory', {enumerable: true, get: function() { return require(dependencyMap[5]).useHistory; }}); Object = global.Object; Object.defineProperty(exports, 'useLocation', {enumerable: true, get: function() { return require(dependencyMap[5]).useLocation; }}); Object = global.Object; Object.defineProperty(exports, 'useParams', {enumerable: true, get: function() { return require(dependencyMap[5]).useParams; }}); Object = global.Object; Object.defineProperty(exports, 'useRouteMatch', {enumerable: true, get: function() { return require(dependencyMap[5]).useRouteMatch; }}); Object = global.Object; Object.defineProperty(exports, 'withRouter', {enumerable: true, get: function() { return require(dependencyMap[5]).withRouter; }}); exports.BrowserRouter = value2; exports.HashRouter = value3; exports.Link = value4; exports.NavLink = value; } function _extends_32606() { // fn#32606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:270, offset: 0x0101a4ef, size: 53 bytes, params: 1, frame: 13 const Object = global.Object; return (Object.assign || (function(a0) { var r3; var r8; var propertyName; var propertyName2; var hasOwnProperty; var value = 1; if (value < arguments.length) { r3 = value; while (true) { value = arguments[r3]; for (propertyName in value) { hasOwnProperty = global.Object.prototype.hasOwnProperty; if (!hasOwnProperty.call(value, propertyName)) { r8 = propertyName2; continue; } a0[propertyName] = value[propertyName]; r8 = propertyName2; } value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value < arguments.length) { r3 = value; continue; } break; } } return a0; })).apply(this, arguments); } function _setPrototypeOf_32609(a0, a1) { // fn#32609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:604, offset: 0x0101a563, size: 47 bytes, params: 3, frame: 13 const Object = global.Object; return (Object.setPrototypeOf || (function(a0, a1) { a0.__proto__ = a1; return a0; }))(a0, a1); } function _fun32612(a0) { // fn#32612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:892, offset: 0x0101a5ef, size: 47 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = e_32613; _inheritsLoose(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = render_32614; return closure; } function _fun32615(a0) { // fn#32615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1259, offset: 0x0101a70c, size: 47 bytes, params: 2, frame: 14 const env0_0 = a0; const closure = e_32616; _inheritsLoose(closure, a0) /* class inheritance: closure extends a0 */; closure.prototype.render = render_32617; return closure; } function normalizeToLocation(a0, a1) { // fn#32619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1692, offset: 0x0101a7f7, size: 67 bytes, params: 3, frame: 17 var r0; let value = a0; if (typeof value !== 'string') { r0 = value; } else { value = (require(1231) /* metro dependency 1231 */).createLocation(value, null, null, a1); r0 = value; } return r0; } function _fun32621(a0, a1) { // fn#32621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1875, offset: 0x0101a83a, size: 146 bytes, params: 3, frame: 18 const value = a1; const innerRef = a0.innerRef; const env0_0 = a0.navigate; const env0_1 = a0.onClick; const value3 = _objectWithoutPropertiesLoose(a0, ['innerRef', 'navigate', 'onClick']); const env0_2 = value3.target; const value4 = _extends_32606({}, value3, {onClick: onClick}); let r1 = forwardRefShim !== env0_7 && value; r1 = !r1 ? innerRef : r1; value4.ref = r1; return env0_2.createElement('a', value4); } function _fun32623(a0, a1) { // fn#32623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2324, offset: 0x0101a985, size: 148 bytes, params: 3, frame: 17 const env0_0 = a1; const component = a0.component; const env0_1 = component !== undefined ? component : env0_8; const env0_2 = a0.replace; const env0_3 = a0.to; const env0_4 = a0.innerRef; const env0_5 = _objectWithoutPropertiesLoose(a0, ['component', 'replace', 'to', 'innerRef']); const binding = env0_2; const createElement = binding.createElement; const Consumer = (require(3980) /* metro dependency 3980 */).__RouterContext.Consumer; return Reflect.apply(createElement, binding, [Consumer, null, _fun32624]); } function _fun32627(a0, a1) { // fn#32627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2952, offset: 0x0101ab65, size: 240 bytes, params: 3, frame: 17 const env0_0 = a1; const property = a0['aria-current']; const r1 = property === undefined ? 'page' : property; const activeClassName = a0.activeClassName; const env0_2 = activeClassName === undefined ? 'active' : activeClassName; const env0_3 = a0.activeStyle; const env0_4 = a0.className; const env0_5 = a0.exact; const env0_6 = a0.isActive; const env0_7 = a0.location; const env0_8 = a0.sensitive; const env0_9 = a0.strict; const env0_10 = a0.style; const env0_11 = a0.to; const env0_12 = a0.innerRef; const env0_13 = _objectWithoutPropertiesLoose(a0, ['aria-current', 'activeClassName', 'activeStyle', 'className', 'exact', 'isActive', 'location', 'sensitive', 'strict', 'style', 'to', 'innerRef']); const binding = env0_2; const createElement = binding.createElement; const Consumer = (require(3980) /* metro dependency 3980 */).__RouterContext.Consumer; return Reflect.apply(createElement, binding, [Consumer, null, _fun32628]); } function e_32613() { // fn#32613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:904, offset: 0x0101a61e, size: 159 bytes, params: 1, frame: 17 var r0; var value6; let value = this; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value5 = 0; if (value5 < length) { r0 = value5; reducibleLoop1: while (true) { array[r0] = arguments[r0]; value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value6 < length) { r0 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const binding = env0_0; const call = binding.call; const apply = call.apply; const items2 = [value]; r0 = Reflect.apply(apply, call, [binding, items2.concat(array)]) || value; value = environment.__proto__; value = require(1231) /* metro dependency 1231 */; r0.history = value.createBrowserHistory(r0.props); return r0; } function render_32614() { // fn#32614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1136, offset: 0x0101a6bd, size: 79 bytes, params: 1, frame: 15 const binding = env1_2; const createElement = binding.createElement; const Router = (require(3980) /* metro dependency 3980 */).Router; return Reflect.apply(createElement, binding, [Router, {history: this.history, children: this.props.children}]); } function e_32616() { // fn#32616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:1271, offset: 0x0101a73b, size: 159 bytes, params: 1, frame: 17 var r0; var value6; let value = this; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value5 = 0; if (value5 < length) { r0 = value5; reducibleLoop1: while (true) { array[r0] = arguments[r0]; value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value6 < length) { r0 = value6; continue reducibleLoop1; } break reducibleLoop1; } } const binding = env0_0; const call = binding.call; const apply = call.apply; const items2 = [value]; r0 = Reflect.apply(apply, call, [binding, items2.concat(array)]) || value; value = environment.__proto__; value = require(1231) /* metro dependency 1231 */; r0.history = value.createHashHistory(r0.props); return r0; } function onClick(a0) { // fn#32622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2036, offset: 0x0101a8cc, size: 185 bytes, params: 2, frame: 15 var r2; var value; var error; try { value = environment; if (onClick) { onClick(a0); } } catch (error) { a0.preventDefault(); throw error; } let r3 = a0.defaultPrevented || a0.button !== 0 || target && target !== '_self'; if (r3) { r2 = r3; } else { r3 = a0.metaKey || a0.altKey; r3 = !r3 ? a0.ctrlKey : r3; r3 = !r3 ? a0.shiftKey : r3; r2 = !!r3; } if (!r2) { a0.preventDefault(); navigate(); } } function _fun32624(a0) { // fn#32624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2544, offset: 0x0101aa19, size: 195 bytes, params: 2, frame: 20 var environment; var value; const env0_0 = a0; if (!a0) { value = environment.__proto__; env1_3(false); } const history = a0.history; const env0_1 = history; const value3 = normalizeToLocation(resolveToLocation(to, a0.location), a0.location); const value5 = _extends_32606({}, env0_5, {href: value3 ? history.createHref(value3) : '', navigate: navigate_32625}); if (forwardRefShim !== env1_7) { value5.ref = require || innerRef; } else { value5.innerRef = innerRef; } return env1_2.createElement(env0_1, value5); } function _fun32628(a0) { // fn#32628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:3412, offset: 0x0101ac55, size: 423 bytes, params: 2, frame: 24 var environment; var r6; var r7; var value; var moduleValue; var value10; if (!a0) { value = environment.__proto__; env1_3(false); } const location2 = location || a0.location; let value3 = normalizeToLocation(resolveToLocation(to, location2), location2); const pathname = value3.pathname; let r11 = pathname && pathname.replace(RegExp('([.+*?=^!:${}()[\\]|/\\\\])', 'g'), '\\$1'); let value5 = null; if (r11) { moduleValue = require(3980) /* metro dependency 3980 */; r6 = moduleValue.matchPath(location2.pathname, {path: r11, exact: exact, sensitive: sensitive, strict: strict}); } else { r6 = value5; } const r3 = isActive ? isActive(r6, location2) : r6; const value7 = !!r3; r11 = typeof className === 'function' ? className(value7) : className; const r13 = typeof style === 'function' ? style(value7) : style; if (r3) { value10 = (function() { var r0; var value6; var value = arguments.length; var Array = global.Array; var value3 = new Array(value); var value5 = 0; if (value5 < value) { for (r0 = value5; true; r0 = value6) { value3[r0] = arguments[r0]; value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (!(value6 < value)) { break; } } } return value3.filter(_fun32630).join(' '); })(r11, env0_2); r6 = _extends_32606({}, r13, activeStyle); r7 = value10; } else { r6 = r13; r7 = r11; } const _extends_32606Binding = _extends_32606; let r8 = r3 ? env0_1 : value7; r8 = !r8 ? value5 : r8; const value12 = _extends_32606Binding({['aria-current']: r8, className: r7, style: r6, to: value3}, env0_13); if (forwardRefShim$1 !== env1_11) { value12.ref = require || innerRef; } else { value12.innerRef = innerRef; } return env1_2.createElement(env1_9, value12); } function navigate_32625() { // fn#32625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:2669, offset: 0x0101aadc, size: 137 bytes, params: 1, frame: 20 const value = environment.__proto__.__proto__; const resolveToLocationBinding = resolveToLocation; const toBinding = to; const binding = env0_0; const toLocation = resolveToLocationBinding(toBinding, binding.location); const moduleValue = require(1231) /* metro dependency 1231 */; const path = moduleValue.createPath(binding.location); const moduleValue2 = moduleValue; (replace || path === moduleValue2.createPath(normalizeToLocation(toLocation)) ? history.replace : history.push)(toLocation); } function joinClassnames() { // fn#32629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4125:3693, offset: 0x0101adfc, size: 95 bytes, params: 1, frame: 13 var r0; var value5; const length = arguments.length; const Array = global.Array; const array = new Array(length); const value4 = 0; if (value4 < length) { for (r0 = value4; true; r0 = value5) { array[r0] = arguments[r0]; value5 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (!(value5 < length)) { break; } } } return array.filter(function(a0) { return a0; }).join(' '); }