1125 lines
51 KiB
JavaScript
1125 lines
51 KiB
JavaScript
/* Metro module 1232; source: unknown; dependencies: [1233, 1235, 1237, 1238] */
|
|
import * as Module01233Module from './module-01233.js'; /* Metro dependency 1233 */
|
|
import * as Module01235Module from './module-01235.js'; /* Metro dependency 1235 */
|
|
import * as Module01237Module from './module-01237.js'; /* Metro dependency 1237 */
|
|
import * as Module01238Module from './module-01238.js'; /* Metro dependency 1238 */
|
|
|
|
function _fun13806(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6, offset: 0x00df5638, size: 487 bytes, params: 8, frame: 25
|
|
const closure = function(a0) {
|
|
var value = a0;
|
|
return value && (typeof value !== 'object' ? value : 'default' in value ? value.default : value);
|
|
};
|
|
const _extends = function() {
|
|
var r3;
|
|
r3 = global.Object.assign || _fun13809;
|
|
env0_8 = r3;
|
|
return r3.apply(this, arguments);
|
|
};
|
|
const closure2 = function(a0) {
|
|
var value = a0;
|
|
return value.charAt(0) === '/' ? value : '/' + value;
|
|
};
|
|
const closure3 = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value.charAt(0) !== '/') {
|
|
r0 = value;
|
|
} else {
|
|
value = value.substr(1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const stripBasename = function(a0, a1) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value.toLowerCase().indexOf(a1.toLowerCase()) === 0 && '/?#'.indexOf(value.charAt(a1.length)) !== -1) {
|
|
value = value.substr(a1.length);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const stripTrailingSlash = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value.charAt(value.length - 1) !== '/') {
|
|
r0 = value;
|
|
} else {
|
|
value = value.slice(0, -1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const parsePath2 = parsePath;
|
|
const createPath2 = createPath;
|
|
const createLocation2 = createLocation;
|
|
const createTransitionManager = function() {
|
|
var env0_0 = null;
|
|
var env0_1 = [];
|
|
return {setPrompt: _fun13818, confirmTransitionTo: _fun13820, appendListener: _fun13821,
|
|
notifyListeners: _fun13825};
|
|
};
|
|
const getConfirmation = function(a0, a1) {
|
|
a1(global.window.confirm(a0));
|
|
};
|
|
const getHistoryState = function() {
|
|
var r0;
|
|
var property;
|
|
var error;
|
|
try {
|
|
property = global.window;
|
|
property = property.history;
|
|
property = property.state;
|
|
r0 = property || ({});
|
|
} catch (error) {
|
|
return {};
|
|
}
|
|
return r0;
|
|
};
|
|
const stripHash = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
var value2 = value.indexOf('#');
|
|
if (value2 === -1) {
|
|
r0 = value;
|
|
} else {
|
|
value = value.slice(0, value2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const getHashPath = function() {
|
|
var r0;
|
|
var href = global.window.location.href;
|
|
var value = href.indexOf('#');
|
|
if (value === -1) {
|
|
r0 = '';
|
|
} else {
|
|
value = href.substring(value + 1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const clamp_13832 = function(a0, a1, a2) {
|
|
var Math = global.Math;
|
|
var Math2 = global.Math;
|
|
return Math.min(Math2.max(a0, 0), a2);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_0 = closure(Module01233Module);
|
|
let env0_1 = closure(Module01235Module);
|
|
Module01237Module;
|
|
const env0_2 = closure(Module01238Module);
|
|
let r6 = typeof global.window === 'undefined' || !global.window.document;
|
|
r6 = !r6 ? !global.window.document.createElement : r6;
|
|
const result = !r6;
|
|
object = {};
|
|
object.hashbang = {encodePath: encodePath_13833, decodePath: function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value.charAt(0) !== '!') {
|
|
r0 = value;
|
|
} else {
|
|
value = value.substr(1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}};
|
|
object.noslash = {encodePath: closure3, decodePath: closure2};
|
|
object.slash = {encodePath: closure2, decodePath: closure2};
|
|
exports.createBrowserHistory = createBrowserHistory;
|
|
exports.createHashHistory = createHashHistory;
|
|
exports.createMemoryHistory = createMemoryHistory;
|
|
exports.createLocation = createLocation2;
|
|
exports.locationsAreEqual = locationsAreEqual;
|
|
exports.parsePath = parsePath2;
|
|
exports.createPath = createPath2;
|
|
function _extends() { // fn#13808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:289, offset: 0x00df584b, 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 createLocation(a0, a1, a2, a3) { // fn#13816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:1282, offset: 0x00df5b18, size: 511 bytes, params: 5, frame: 19
|
|
var r1;
|
|
var r0;
|
|
var value;
|
|
var pathname;
|
|
var decodeURI;
|
|
var error;
|
|
var URIError;
|
|
var prototype;
|
|
var value6;
|
|
var uRIError;
|
|
if (typeof a0 === 'string') {
|
|
value = parsePath(a0);
|
|
value.state = a1;
|
|
r1 = value;
|
|
} else {
|
|
value = _extends({}, a0);
|
|
pathname = value.pathname;
|
|
if (pathname === undefined) {
|
|
value.pathname = '';
|
|
}
|
|
if (value.search) {
|
|
if (value.search.charAt(0) !== '?') {
|
|
value.search = '?' + value.search;
|
|
}
|
|
} else {
|
|
value.search = '';
|
|
}
|
|
if (value.hash) {
|
|
if (value.hash.charAt(0) !== '#') {
|
|
value.hash = '#' + value.hash;
|
|
}
|
|
} else {
|
|
value.hash = '';
|
|
}
|
|
if (a1 !== undefined && value.state === undefined) {
|
|
value.state = a1;
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
}
|
|
try {
|
|
decodeURI = global.decodeURI;
|
|
pathname = r1.pathname;
|
|
value = decodeURI(pathname);
|
|
r1.pathname = value;
|
|
} catch (error) {
|
|
URIError = global.URIError;
|
|
if (error instanceof URIError) {
|
|
URIError = global.URIError;
|
|
pathname = r1.pathname;
|
|
value = 'Pathname "' + pathname;
|
|
prototype = URIError.prototype;
|
|
value6 = Object.create(prototype, {constructor: {value: URIError}});
|
|
value += '" could not be decoded. This is likely caused by an invalid percent-encoding.';
|
|
uRIError = new URIError();
|
|
value = uRIError instanceof Object ? uRIError : value6;
|
|
r0 = value;
|
|
} else {
|
|
r0 = error;
|
|
}
|
|
throw r0;
|
|
}
|
|
if (a2) {
|
|
r1.key = a2;
|
|
}
|
|
pathname = r1.pathname;
|
|
if (a3) {
|
|
if (pathname) {
|
|
if (r1.pathname.charAt(0) !== '/') {
|
|
r1.pathname = env0_0(r1.pathname, a3.pathname);
|
|
}
|
|
} else {
|
|
r1.pathname = a3.pathname;
|
|
}
|
|
} else if (!pathname) {
|
|
r1.pathname = '/';
|
|
}
|
|
return r1;
|
|
}
|
|
|
|
function createTransitionManager() { // fn#13817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:1941, offset: 0x00df5d17, size: 60 bytes, params: 1, frame: 3
|
|
const env0_1 = [];
|
|
return {setPrompt: function(a0) {
|
|
var env0_0 = a0;
|
|
env0_0 = a0;
|
|
return _fun13819;
|
|
}, confirmTransitionTo: confirmTransitionTo, appendListener: function(a0) {
|
|
var env0_0 = a0;
|
|
var closure = _fun13822;
|
|
var env0_2 = closure;
|
|
true.push(closure);
|
|
return _fun13823;
|
|
}, notifyListeners: notifyListeners};
|
|
function setPrompt(a0) { // fn#13818, owner: createTransitionManager.setPrompt, offset: 0x00df5d53, size: 23 bytes, params: 2, frame: 3
|
|
let env0_0 = a0;
|
|
env0_0 = a0;
|
|
return _fun13819;
|
|
function _fun13819() { // fn#13819, offset: 0x00df5d6a, size: 28 bytes, params: 1, frame: 3
|
|
if (env1_0 !== env0_0) {
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function confirmTransitionTo(a0, a1, a2, a3) { // fn#13820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:2091, owner: createTransitionManager.confirmTransitionTo, offset: 0x00df5d86, size: 125 bytes, params: 5, frame: 17
|
|
var r1;
|
|
if (env0_0 != null) {
|
|
r1 = typeof env0_0 === 'function' ? env0_0(a0, a1) : env0_0;
|
|
if (typeof r1 === 'string') {
|
|
if (typeof a2 === 'function') {
|
|
a2(r1, a3);
|
|
} else {
|
|
a3(true);
|
|
}
|
|
} else {
|
|
a3(r1 !== false);
|
|
}
|
|
} else {
|
|
a3(true);
|
|
}
|
|
}
|
|
|
|
function appendListener(a0) { // fn#13821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:2267, owner: createTransitionManager.appendListener, offset: 0x00df5e03, size: 48 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
true.push(e);
|
|
return _fun13823;
|
|
function e() { // fn#13822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:2303, owner: createTransitionManager.appendListener.e, offset: 0x00df5e33, size: 33 bytes, params: 1, frame: 14
|
|
if (env0_1) {
|
|
env0_0.apply(undefined, arguments);
|
|
}
|
|
}
|
|
|
|
function _fun13823() { // fn#13823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:2362, offset: 0x00df5e54, size: 41 bytes, params: 1, frame: 12
|
|
env1_1 = env1_1.filter(function(a0) {
|
|
return a0 !== e;
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function notifyListeners() { // fn#13825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:2436, owner: createTransitionManager.notifyListeners, offset: 0x00df5e8d, size: 92 bytes, params: 1, frame: 15
|
|
var r2;
|
|
var value5;
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r2 = value4; true; r2 = value5) {
|
|
array[r2] = arguments[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
env0_1.forEach(_fun13826);
|
|
function _fun13826(a0) { // fn#13826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:2546, offset: 0x00ce172e, size: 25 bytes, params: 2, frame: 13
|
|
return a0.apply(undefined, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function replaceHashPath(a0) { // fn#13831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:3332, offset: 0x00df5fa0, size: 71 bytes, params: 2, frame: 13
|
|
global.window.location.replace(stripHash(global.window.location.href) + '#' + a0);
|
|
}
|
|
|
|
function encodePath_13833(a0) { // fn#13833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:2882, offset: 0x00df6015, size: 55 bytes, params: 2, frame: 12
|
|
var r0;
|
|
let value = a0;
|
|
if (value.charAt(0) === '!') {
|
|
r0 = value;
|
|
} else {
|
|
value = encodePath(value);
|
|
value = '!/' + value;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function createBrowserHistory(a0) { // fn#13835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:3502, offset: 0x00df6079, size: 616 bytes, params: 2, frame: 22
|
|
var value12;
|
|
let value = a0;
|
|
const l2 = l;
|
|
const P = function() {
|
|
createBrowserHistoryW(l(getHistoryState()));
|
|
};
|
|
const createHref2 = createHref;
|
|
const closure3 = function(a0) {
|
|
history.go(a0);
|
|
};
|
|
const r8 = value !== undefined ? value : {};
|
|
if (!result) {
|
|
env0_2(false);
|
|
}
|
|
const history = global.window.history;
|
|
let userAgent = global.window.navigator.userAgent;
|
|
let r10 = userAgent.indexOf('Android 2.') === -1 && userAgent.indexOf('Android 4.0') === -1;
|
|
r10 = !r10 ? userAgent.indexOf('Mobile Safari') === -1 : r10;
|
|
r10 = !r10 ? userAgent.indexOf('Chrome') !== -1 : r10;
|
|
r10 = (!r10 ? userAgent.indexOf('Windows Phone') !== -1 : r10) && global.window.history && 'pushState' in global.window.history;
|
|
userAgent = global.window.navigator.userAgent;
|
|
const result_2 = !(userAgent.indexOf('Trident') === -1);
|
|
const forceRefresh = r8.forceRefresh;
|
|
let r0 = forceRefresh !== undefined && forceRefresh;
|
|
const getUserConfirmation = r8.getUserConfirmation;
|
|
r0 = getUserConfirmation !== undefined ? getUserConfirmation : getConfirmation;
|
|
const keyLength = r8.keyLength;
|
|
r0 = keyLength === undefined ? 6 : keyLength;
|
|
if (r8.basename) {
|
|
value12 = stripTrailingSlash(decodePath(r8.basename));
|
|
}
|
|
const env0_7 = createTransitionManager();
|
|
value = l2(getHistoryState());
|
|
const object = [value.key];
|
|
return {length: history.length, action: 'POP', location: value, createHref: createHref2, push: push_13846,
|
|
replace: replace_13848, go: closure3, goBack: function() {
|
|
go(-1);
|
|
}, goForward: function() {
|
|
go(1);
|
|
}, block: block, listen: listen};
|
|
function l(a0) { // fn#13836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:4145, owner: createBrowserHistory.l, offset: 0x00df62e1, size: 106 bytes, params: 2, frame: 17
|
|
var r2;
|
|
var value3;
|
|
const {key, state} = a0 || ({});
|
|
const location = global.window.location;
|
|
value = location.pathname + location.search;
|
|
value += location.hash;
|
|
if (env0_6) {
|
|
value3 = environment.__proto__;
|
|
value = stripBasename(value, env0_6);
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
value = environment.__proto__;
|
|
return createLocation(r2, state, key);
|
|
}
|
|
|
|
function createBrowserHistoryD() { // fn#13837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:4291, owner: createBrowserHistory.d, offset: 0x00df634b, size: 55 bytes, params: 1, frame: 13
|
|
const Math = global.Math;
|
|
let value = Math.random();
|
|
value = value.toString(36);
|
|
return value.substr(2, env0_5);
|
|
}
|
|
|
|
function p(a0) { // fn#13838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:4382, owner: createBrowserHistory.p, offset: 0x00df6382, size: 80 bytes, params: 2, frame: 14
|
|
_extends(env0_12, a0);
|
|
let binding = env0_12;
|
|
binding.length = history.length;
|
|
binding = env0_7;
|
|
binding.notifyListeners(env0_12.location, env0_12.action);
|
|
}
|
|
|
|
function createBrowserHistoryG(a0) { // fn#13839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:4467, owner: createBrowserHistory.g, offset: 0x00df63d2, size: 89 bytes, params: 2, frame: 14
|
|
var r2;
|
|
let value = a0.state === undefined;
|
|
if (value) {
|
|
value = global.navigator.userAgent.indexOf('CriOS');
|
|
value = value === -1;
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
if (!r2) {
|
|
createBrowserHistoryW(l(a0.state));
|
|
}
|
|
}
|
|
|
|
function createBrowserHistoryW(a0) { // fn#13841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:4653, owner: createBrowserHistory.w, offset: 0x00df644f, size: 74 bytes, params: 2, frame: 18
|
|
var binding;
|
|
const env0_0 = a0;
|
|
if (env0_8) {
|
|
p();
|
|
} else {
|
|
binding = env0_7;
|
|
binding.confirmTransitionTo(a0, 'POP', env0_4, _fun13842);
|
|
}
|
|
function _fun13842(a0) { // fn#13842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:4713, offset: 0x00df6499, size: 142 bytes, params: 2, frame: 15
|
|
var r3;
|
|
var binding;
|
|
var location;
|
|
var binding2;
|
|
var indexOf;
|
|
var key;
|
|
var value3;
|
|
var binding3;
|
|
var value5;
|
|
var value7;
|
|
if (a0) {
|
|
p({action: 'POP', location: env0_0});
|
|
} else {
|
|
binding = env0_0;
|
|
location = env1_12.location;
|
|
binding2 = env1_9;
|
|
indexOf = binding2.indexOf;
|
|
key = location.key;
|
|
value3 = Reflect.apply(indexOf, binding2, [key]);
|
|
r3 = value3 !== -1 ? value3 : 0;
|
|
binding3 = env1_9;
|
|
indexOf = binding3.indexOf;
|
|
key = binding.key;
|
|
value5 = Reflect.apply(indexOf, binding3, [key]);
|
|
value7 = r3 - (value5 !== -1 ? value5 : 0);
|
|
if (value7) {
|
|
go(value7);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function createBrowserHistoryCreateHref(a0) { // fn#13843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:4924, owner: createBrowserHistory.createHref, offset: 0x00df6527, size: 30 bytes, params: 2, frame: 12
|
|
return env0_6 + createPath(a0);
|
|
}
|
|
|
|
function createBrowserHistoryE(a0) { // fn#13845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:4991, owner: createBrowserHistory.E, offset: 0x00df655e, size: 176 bytes, params: 2, frame: 16
|
|
var window;
|
|
var removeEventListener;
|
|
var value3;
|
|
var addEventListener;
|
|
var value4;
|
|
const value2 = env0_10 + a0;
|
|
env0_10 = value2;
|
|
if (value2 !== 1) {
|
|
if (env0_10 === 0) {
|
|
window = global.window;
|
|
removeEventListener = window.removeEventListener;
|
|
value3 = environment.__proto__;
|
|
Reflect.apply(removeEventListener, window, [env1_4, createBrowserHistoryG]);
|
|
if (result_2) {
|
|
window = global.window;
|
|
window.removeEventListener(env1_5, P);
|
|
}
|
|
}
|
|
} else if (a0 === 1) {
|
|
window = global.window;
|
|
addEventListener = window.addEventListener;
|
|
value4 = environment.__proto__;
|
|
Reflect.apply(addEventListener, window, [env1_4, createBrowserHistoryG]);
|
|
if (result_2) {
|
|
window = global.window;
|
|
window.addEventListener(env1_5, P);
|
|
}
|
|
} else if (env0_10 === 0) {
|
|
window = global.window;
|
|
removeEventListener = window.removeEventListener;
|
|
value3 = environment.__proto__;
|
|
Reflect.apply(removeEventListener, window, [env1_4, createBrowserHistoryG]);
|
|
if (result_2) {
|
|
window = global.window;
|
|
window.removeEventListener(env1_5, P);
|
|
}
|
|
}
|
|
}
|
|
|
|
function createBrowserHistoryPush(a0, a1) { // fn#13846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:5232, owner: createBrowserHistory.push, offset: 0x00df660e, size: 82 bytes, params: 3, frame: 19
|
|
const location2 = createLocation(a0, a1, createBrowserHistoryD(), env0_12.location);
|
|
const binding = env0_7;
|
|
binding.confirmTransitionTo(location2, 'PUSH', env0_4, _fun13847);
|
|
function _fun13847(a0) { // fn#13847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:5326, offset: 0x00df6660, size: 231 bytes, params: 2, frame: 19
|
|
var value;
|
|
var createHrefBinding;
|
|
var binding;
|
|
var href;
|
|
var key;
|
|
var historyBinding;
|
|
var indexOf;
|
|
var value3;
|
|
var value4;
|
|
var push;
|
|
if (a0) {
|
|
value = environment.__proto__;
|
|
createHrefBinding = createHref;
|
|
binding = env0_0;
|
|
href = createHrefBinding(binding);
|
|
key = binding.key;
|
|
if (env1_1) {
|
|
historyBinding = history;
|
|
historyBinding.pushState({key: key, state: binding.state}, null, href);
|
|
if (env1_3) {
|
|
global.window.location.href = href;
|
|
} else {
|
|
binding = env1_9;
|
|
indexOf = binding.indexOf;
|
|
key = env1_12.location.key;
|
|
value3 = Reflect.apply(indexOf, binding, [key]);
|
|
binding = env1_9;
|
|
value4 = binding.slice(0, value3 + 1);
|
|
push = value4.push;
|
|
binding = env0_0;
|
|
key = binding.key;
|
|
Reflect.apply(push, value4, [key]);
|
|
p({action: 'PUSH', location: binding});
|
|
}
|
|
} else {
|
|
global.window.location.href = href;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function createBrowserHistoryReplace(a0, a1) { // fn#13848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:5585, owner: createBrowserHistory.replace, offset: 0x00df6747, size: 84 bytes, params: 3, frame: 19
|
|
const location2 = createLocation(a0, a1, createBrowserHistoryD(), env0_12.location);
|
|
const binding = env0_7;
|
|
binding.confirmTransitionTo(location2, 'REPLACE', env0_4, _fun13849);
|
|
function _fun13849(a0) { // fn#13849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:5689, offset: 0x00df679b, size: 225 bytes, params: 2, frame: 19
|
|
var value;
|
|
var createHrefBinding;
|
|
var binding;
|
|
var href;
|
|
var historyBinding;
|
|
var value3;
|
|
if (a0) {
|
|
value = environment.__proto__;
|
|
createHrefBinding = createHref;
|
|
binding = env0_0;
|
|
href = createHrefBinding(binding);
|
|
if (env1_1) {
|
|
historyBinding = history;
|
|
historyBinding.replaceState({key: binding.key, state: binding.state}, null, href);
|
|
if (env1_3) {
|
|
global.window.location.replace(href);
|
|
} else {
|
|
binding = env1_9;
|
|
value3 = binding.indexOf(env1_12.location.key);
|
|
if (value3 !== -1) {
|
|
env1_9[value3] = env0_0.key;
|
|
}
|
|
p({action: 'REPLACE', location: env0_0});
|
|
}
|
|
} else {
|
|
global.window.location.replace(href);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function createBrowserHistoryBlock(a0) { // fn#13852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6012, owner: createBrowserHistory.block, offset: 0x00df68a5, size: 67 bytes, params: 2, frame: 14
|
|
const value = a0;
|
|
const env0_0 = env0_7.setPrompt(value !== undefined ? value : false);
|
|
if (!env0_11) {
|
|
createBrowserHistoryE(1);
|
|
}
|
|
return _fun13853;
|
|
function _fun13853() { // fn#13853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6092, offset: 0x00df68e8, size: 48 bytes, params: 1, frame: 11
|
|
if (env1_11) {
|
|
createBrowserHistoryE(-1);
|
|
}
|
|
return env0_0();
|
|
}
|
|
|
|
}
|
|
|
|
function createBrowserHistoryListen(a0) { // fn#13854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6139, owner: createBrowserHistory.listen, offset: 0x00df6918, size: 48 bytes, params: 2, frame: 13
|
|
const env0_0 = env0_7.appendListener(a0);
|
|
createBrowserHistoryE(1);
|
|
return _fun13855;
|
|
function _fun13855() { // fn#13855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6196, offset: 0x00df6948, size: 33 bytes, params: 1, frame: 11
|
|
createBrowserHistoryE(-1);
|
|
env0_0();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createHashHistory(a0) { // fn#13856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6251, offset: 0x00df6969, size: 427 bytes, params: 2, frame: 19
|
|
var value4;
|
|
const value = a0;
|
|
const createHashHistoryF2 = createHashHistoryF;
|
|
const closure2 = function(a0) {
|
|
history.go(a0);
|
|
};
|
|
const r8 = value !== undefined ? value : {};
|
|
if (!result) {
|
|
env0_2(false);
|
|
}
|
|
const history = global.window.history;
|
|
const userAgent = global.window.navigator.userAgent;
|
|
userAgent.indexOf('Firefox');
|
|
const getUserConfirmation = r8.getUserConfirmation;
|
|
const r0 = getUserConfirmation !== undefined ? getUserConfirmation : getConfirmation;
|
|
const hashType = r8.hashType;
|
|
const r7 = hashType === undefined ? 'slash' : hashType;
|
|
if (r8.basename) {
|
|
value4 = stripTrailingSlash(decodePath(r8.basename));
|
|
}
|
|
const property = env0_7[r7];
|
|
const encodePath = property.encodePath;
|
|
const env0_4 = property.decodePath;
|
|
const env0_5 = createTransitionManager();
|
|
const hashPath = getHashPath();
|
|
const value6 = encodePath(hashPath);
|
|
if (hashPath !== value6) {
|
|
replaceHashPath(value6);
|
|
}
|
|
const hashHistoryF2 = createHashHistoryF2();
|
|
const object = [createPath(hashHistoryF2)];
|
|
return {length: history.length, action: 'POP', location: hashHistoryF2, createHref: createHref, push: push_13865,
|
|
replace: replace_13867, go: closure2, goBack: function() {
|
|
go(-1);
|
|
}, goForward: function() {
|
|
go(1);
|
|
}, block: block, listen: listen};
|
|
function createHashHistoryF() { // fn#13857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6632, owner: createHashHistory.f, offset: 0x00df6b14, size: 60 bytes, params: 1, frame: 15
|
|
const value3 = decodePath(getHashPath());
|
|
return createLocation(env0_2 ? stripBasename(value3, env0_2) : value3);
|
|
}
|
|
|
|
function createHashHistoryD(a0) { // fn#13858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6751, owner: createHashHistory.d, offset: 0x00df6b50, size: 80 bytes, params: 2, frame: 14
|
|
_extends(env0_11, a0);
|
|
let binding = env0_11;
|
|
binding.length = history.length;
|
|
binding = env0_5;
|
|
binding.notifyListeners(env0_11.location, env0_11.action);
|
|
}
|
|
|
|
function createHashHistoryG() { // fn#13859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:6852, owner: createHashHistory.g, offset: 0x00df6ba0, size: 160 bytes, params: 1, frame: 17
|
|
var r3;
|
|
const hashPath = getHashPath();
|
|
const value4 = encodePath(hashPath);
|
|
if (hashPath !== value4) {
|
|
replaceHashPath(value4);
|
|
} else {
|
|
var hashHistoryF = createHashHistoryF();
|
|
var location = env0_11.location;
|
|
if (env0_6) {
|
|
if (env0_7 === createPath(hashHistoryF)) {
|
|
return undefined;
|
|
}
|
|
env0_7 = null;
|
|
_fun13860(hashHistoryF);
|
|
return undefined;
|
|
}
|
|
r3 = location.pathname === hashHistoryF.pathname && location.search === hashHistoryF.search;
|
|
r3 = r3 && location.hash === hashHistoryF.hash;
|
|
if (r3) {
|
|
return undefined;
|
|
}
|
|
if (env0_7 === createPath(hashHistoryF)) {
|
|
return undefined;
|
|
}
|
|
_fun13860(hashHistoryF);
|
|
}
|
|
function _fun13860(a0) { // fn#13860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:7086, offset: 0x00df6c40, size: 74 bytes, params: 2, frame: 18
|
|
var binding;
|
|
const env0_0 = a0;
|
|
if (env1_6) {
|
|
createHashHistoryD();
|
|
} else {
|
|
binding = env1_5;
|
|
binding.confirmTransitionTo(a0, 'POP', env1_1, _fun13861);
|
|
}
|
|
function _fun13861(a0) { // fn#13861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:7144, offset: 0x00df6c8a, size: 153 bytes, params: 2, frame: 17
|
|
var r3;
|
|
var binding;
|
|
var location;
|
|
var binding2;
|
|
var lastIndexOf;
|
|
var value3;
|
|
var value4;
|
|
var value6;
|
|
var value8;
|
|
if (a0) {
|
|
createHashHistoryD({action: 'POP', location: env0_0});
|
|
} else {
|
|
binding = env0_0;
|
|
location = env2_11.location;
|
|
binding2 = env2_8;
|
|
lastIndexOf = binding2.lastIndexOf;
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
value4 = Reflect.apply(lastIndexOf, binding2, [createPath(location)]);
|
|
r3 = value4 !== -1 ? value4 : 0;
|
|
value6 = env2_8.lastIndexOf(createPath(binding));
|
|
value8 = r3 - (value6 !== -1 ? value6 : 0);
|
|
if (value8) {
|
|
go(value8);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createHashHistoryL(a0) { // fn#13863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:7458, owner: createHashHistory.L, offset: 0x00df6d23, size: 107 bytes, params: 2, frame: 14
|
|
var window;
|
|
var removeEventListener;
|
|
var value3;
|
|
var addEventListener;
|
|
var value4;
|
|
const value2 = env0_9 + a0;
|
|
env0_9 = value2;
|
|
if (value2 !== 1) {
|
|
if (env0_9 === 0) {
|
|
window = global.window;
|
|
removeEventListener = window.removeEventListener;
|
|
value3 = environment.__proto__;
|
|
Reflect.apply(removeEventListener, window, [env1_6, createHashHistoryG]);
|
|
}
|
|
} else if (a0 === 1) {
|
|
window = global.window;
|
|
addEventListener = window.addEventListener;
|
|
value4 = environment.__proto__;
|
|
Reflect.apply(addEventListener, window, [env1_6, createHashHistoryG]);
|
|
} else if (env0_9 === 0) {
|
|
window = global.window;
|
|
removeEventListener = window.removeEventListener;
|
|
value3 = environment.__proto__;
|
|
Reflect.apply(removeEventListener, window, [env1_6, createHashHistoryG]);
|
|
}
|
|
}
|
|
|
|
function createHashHistoryCreateHref(a0) { // fn#13864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:7621, owner: createHashHistory.createHref, offset: 0x00df6d8e, size: 133 bytes, params: 2, frame: 14
|
|
var r2;
|
|
var r1;
|
|
let value = global.document.querySelector('base');
|
|
if (value) {
|
|
value = value.getAttribute('href');
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
value = '';
|
|
if (r2) {
|
|
value = environment.__proto__;
|
|
value = stripHash(global.window.location.href);
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return r1 + '#' + encodePath(env0_2 + createPath(a0));
|
|
}
|
|
|
|
function createHashHistoryPush(a0, a1) { // fn#13865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:7787, owner: createHashHistory.push, offset: 0x00df6e13, size: 75 bytes, params: 3, frame: 18
|
|
const location2 = createLocation(a0, undefined, undefined, env0_11.location);
|
|
const binding = env0_5;
|
|
binding.confirmTransitionTo(location2, 'PUSH', env0_1, _fun13866);
|
|
function _fun13866(a0) { // fn#13866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:7889, offset: 0x00df6e5e, size: 197 bytes, params: 2, frame: 17
|
|
var value;
|
|
var createPathBinding;
|
|
var path;
|
|
var value3;
|
|
var value4;
|
|
var location;
|
|
var binding;
|
|
var lastIndexOf;
|
|
if (a0) {
|
|
value = environment.__proto__.__proto__;
|
|
path = createPath(env0_0);
|
|
value3 = environment.__proto__;
|
|
value4 = encodePath(env1_2 + path);
|
|
if (getHashPath() !== value4) {
|
|
location = global.window.location;
|
|
location.hash = value4;
|
|
binding = env1_8;
|
|
lastIndexOf = binding.lastIndexOf;
|
|
createPathBinding = createPath;
|
|
location = env1_11.location;
|
|
value = Reflect.apply(lastIndexOf, binding, [createPathBinding(location)]);
|
|
binding = env1_8;
|
|
value = binding.slice(0, value + 1);
|
|
value.push(path);
|
|
createHashHistoryD({action: 'PUSH', location: env0_0});
|
|
} else {
|
|
createHashHistoryD();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function createHashHistoryReplace(a0, a1) { // fn#13867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:8141, owner: createHashHistory.replace, offset: 0x00df6f23, size: 77 bytes, params: 3, frame: 18
|
|
const location2 = createLocation(a0, undefined, undefined, env0_11.location);
|
|
const binding = env0_5;
|
|
binding.confirmTransitionTo(location2, 'REPLACE', env0_1, _fun13868);
|
|
function _fun13868(a0) { // fn#13868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:8253, offset: 0x00df6f70, size: 159 bytes, params: 2, frame: 16
|
|
var value;
|
|
var path;
|
|
var value3;
|
|
var value4;
|
|
var binding;
|
|
if (a0) {
|
|
value = environment.__proto__.__proto__;
|
|
path = createPath(env0_0);
|
|
value3 = environment.__proto__;
|
|
value4 = encodePath(env1_2 + path);
|
|
if (getHashPath() !== value4) {
|
|
replaceHashPath(value4);
|
|
}
|
|
binding = env1_8;
|
|
value = binding.indexOf(createPath(env1_11.location));
|
|
if (value !== -1) {
|
|
env1_8[value] = path;
|
|
}
|
|
createHashHistoryD({action: 'REPLACE', location: env0_0});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function createHashHistoryBlock(a0) { // fn#13871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:8511, owner: createHashHistory.block, offset: 0x00df7038, size: 67 bytes, params: 2, frame: 14
|
|
const value = a0;
|
|
const env0_0 = env0_5.setPrompt(value !== undefined ? value : false);
|
|
if (!env0_10) {
|
|
createHashHistoryL(1);
|
|
}
|
|
return _fun13872;
|
|
function _fun13872() { // fn#13872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:8591, offset: 0x00df707b, size: 48 bytes, params: 1, frame: 11
|
|
if (env1_10) {
|
|
createHashHistoryL(-1);
|
|
}
|
|
return env0_0();
|
|
}
|
|
|
|
}
|
|
|
|
function createHashHistoryListen(a0) { // fn#13873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:8638, owner: createHashHistory.listen, offset: 0x00df70ab, size: 48 bytes, params: 2, frame: 13
|
|
const env0_0 = env0_5.appendListener(a0);
|
|
createHashHistoryL(1);
|
|
return _fun13874;
|
|
function _fun13874() { // fn#13874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:8695, offset: 0x00df70db, size: 33 bytes, params: 1, frame: 11
|
|
createHashHistoryL(-1);
|
|
env0_0();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createMemoryHistory(a0) { // fn#13875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:8752, offset: 0x00df70fc, size: 286 bytes, params: 2, frame: 20
|
|
let value = a0;
|
|
const go2 = go;
|
|
let r0 = value !== undefined ? value : {};
|
|
const env0_0 = r0.getUserConfirmation;
|
|
const initialEntries = r0.initialEntries;
|
|
const r6 = initialEntries !== undefined ? initialEntries : ['/'];
|
|
const initialIndex = r0.initialIndex;
|
|
const r5 = initialIndex === undefined ? 0 : initialIndex;
|
|
const keyLength = r0.keyLength;
|
|
r0 = keyLength === undefined ? 6 : keyLength;
|
|
const env0_2 = createTransitionManager();
|
|
value = clamp_13832(r5, value, r6.length - 1);
|
|
const value4 = r6.map(_fun13880);
|
|
return {length: value4.length, action: 'POP', location: value4[value], index: value, entries: value4,
|
|
createHref: createPath, push: push_13881, replace: replace_13883, go: go2, goBack: function() {
|
|
go(-1);
|
|
}, goForward: function() {
|
|
go(1);
|
|
}, canGo: canGo, block: block, listen: listen};
|
|
function createMemoryHistoryU(a0) { // fn#13876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:8968, owner: createMemoryHistory.u, offset: 0x00df721a, size: 82 bytes, params: 2, frame: 14
|
|
_extends(env0_3, a0);
|
|
let binding = env0_3;
|
|
binding.length = binding.entries.length;
|
|
binding = env0_2;
|
|
binding.notifyListeners(env0_3.location, env0_3.action);
|
|
}
|
|
|
|
function createMemoryHistoryF() { // fn#13877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:9061, owner: createMemoryHistory.f, offset: 0x00df726c, size: 55 bytes, params: 1, frame: 13
|
|
const Math = global.Math;
|
|
let value = Math.random();
|
|
value = value.toString(36);
|
|
return value.substr(2, env0_1);
|
|
}
|
|
|
|
function createMemoryHistoryGo(a0) { // fn#13878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:9251, owner: createMemoryHistory.go, offset: 0x00df72a3, size: 118 bytes, params: 2, frame: 18
|
|
const property = env0_3.entries[clamp_13832(env0_3.index + a0, 0, env0_3.entries.length - 1)];
|
|
const binding = env0_2;
|
|
binding.confirmTransitionTo(property, 'POP', getUserConfirmation, _fun13879);
|
|
function _fun13879(a0) { // fn#13879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:9357, offset: 0x00df7319, size: 61 bytes, params: 2, frame: 12
|
|
const createMemoryHistoryUBinding = createMemoryHistoryU;
|
|
if (a0) {
|
|
createMemoryHistoryUBinding({action: 'POP', location: env0_1, index: env0_0});
|
|
} else {
|
|
createMemoryHistoryUBinding();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun13880(a0) { // fn#13880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:9157, offset: 0x00df7356, size: 68 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
return createLocation(a0, undefined,
|
|
typeof a0 === 'string' ? createMemoryHistoryF() : a0.key || createMemoryHistoryF());
|
|
}
|
|
|
|
function createMemoryHistoryPush(a0, a1) { // fn#13881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:9501, owner: createMemoryHistory.push, offset: 0x00df739a, size: 82 bytes, params: 3, frame: 19
|
|
const location2 = createLocation(a0, a1, createMemoryHistoryF(), env0_3.location);
|
|
const binding = env0_2;
|
|
binding.confirmTransitionTo(location2, 'PUSH', getUserConfirmation, _fun13882);
|
|
function _fun13882(a0) { // fn#13882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:9595, offset: 0x00df73ec, size: 152 bytes, params: 2, frame: 16
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
if (a0) {
|
|
value = environment.__proto__;
|
|
value2 = env1_3.index + 1;
|
|
value3 = env1_3.entries.slice(0);
|
|
if (value3.length > value2) {
|
|
value3.splice(value2, value3.length - value2, env0_0);
|
|
} else {
|
|
value3.push(env0_0);
|
|
}
|
|
createMemoryHistoryU({action: 'PUSH', location: env0_0, index: value2, entries: value3});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function createMemoryHistoryReplace(a0, a1) { // fn#13883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:9757, owner: createMemoryHistory.replace, offset: 0x00df7484, size: 84 bytes, params: 3, frame: 19
|
|
const location2 = createLocation(a0, a1, createMemoryHistoryF(), env0_3.location);
|
|
const binding = env0_2;
|
|
binding.confirmTransitionTo(location2, 'REPLACE', getUserConfirmation, _fun13884);
|
|
function _fun13884(a0) { // fn#13884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:9861, offset: 0x00df74d8, size: 70 bytes, params: 2, frame: 12
|
|
var value;
|
|
var entries;
|
|
var index;
|
|
var binding;
|
|
if (a0) {
|
|
value = environment.__proto__;
|
|
entries = env1_3.entries;
|
|
index = env1_3.index;
|
|
binding = env0_0;
|
|
entries[index] = binding;
|
|
createMemoryHistoryU({action: 'REPLACE', location: binding});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function canGo(a0) { // fn#13887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:10008, owner: createMemoryHistory.canGo, offset: 0x00df7547, size: 49 bytes, params: 2, frame: 4
|
|
const value2 = env0_3.index + a0;
|
|
return 0 <= value2 && value2 < env0_3.entries.length;
|
|
}
|
|
|
|
function createMemoryHistoryBlock(a0) { // fn#13888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:10081, owner: createMemoryHistory.block, offset: 0x00df7578, size: 31 bytes, params: 2, frame: 11
|
|
const value = a0;
|
|
return env0_2.setPrompt(value !== undefined ? value : false);
|
|
}
|
|
|
|
function createMemoryHistoryListen(a0) { // fn#13889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:10148, owner: createMemoryHistory.listen, offset: 0x00df7597, size: 23 bytes, params: 2, frame: 11
|
|
return env0_2.appendListener(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function locationsAreEqual(a0, a1) { // fn#13890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:10260, offset: 0x00df75ae, size: 105 bytes, params: 3, frame: 14
|
|
let r0 = a0.pathname === a1.pathname && a0.search === a1.search && a0.hash === a1.hash;
|
|
r0 = r0 && a0.key === a1.key && env0_1(a0.state, a1.state);
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun13809(a0) { // fn#13809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:340, offset: 0x00df5880, size: 117 bytes, params: 2, frame: 24
|
|
var r3;
|
|
var r8;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var call;
|
|
let value = 1;
|
|
if (value < arguments.length) {
|
|
r3 = value;
|
|
while (true) {
|
|
value = arguments[r3];
|
|
for (propertyName in value) {
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
call = hasOwnProperty.call;
|
|
if (!Reflect.apply(call, hasOwnProperty, [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;
|
|
}
|
|
|
|
function parsePath(a0) { // fn#13814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:898, offset: 0x00df59ec, size: 163 bytes, params: 2, frame: 20
|
|
var r4;
|
|
var r5;
|
|
var value3;
|
|
var value4;
|
|
let r2 = a0 || '/';
|
|
value = r2.indexOf('#');
|
|
const value2 = '';
|
|
if (value === -1) {
|
|
r4 = r2;
|
|
r2 = value2;
|
|
} else {
|
|
value3 = r2.substr(value);
|
|
value = r2.substr(0, value);
|
|
r2 = value3;
|
|
r4 = value;
|
|
}
|
|
value = r4.indexOf('?');
|
|
if (value === -1) {
|
|
r5 = value2;
|
|
} else {
|
|
value4 = r4.substr(value);
|
|
value = r4.substr(0, value);
|
|
r4 = value;
|
|
r5 = value4;
|
|
}
|
|
return {pathname: r4, search: r5 === '?' ? value2 : r5, hash: r2 === '#' ? value2 : r2};
|
|
}
|
|
|
|
function createPath({pathname, search, hash}) { // fn#13815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1359:1118, offset: 0x00df5a8f, size: 137 bytes, params: 2, frame: 15
|
|
var r0;
|
|
var r2;
|
|
var value;
|
|
pathname = !pathname ? '/' : pathname;
|
|
if (search && search !== '?') {
|
|
value = search.charAt(0);
|
|
value = pathname + (value === '?' ? search : '?' + search);
|
|
r2 = value;
|
|
} else {
|
|
r2 = pathname;
|
|
}
|
|
if (hash && hash !== '#') {
|
|
value = hash.charAt(0);
|
|
value = r2 + (value === '#' ? hash : '#' + hash);
|
|
r0 = value;
|
|
} else {
|
|
r0 = r2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
global.__d(_fun13806, 1232, [1233, 1235, 1237,
|
|
1238]) /* metro module 1232, dependencies: [1233, 1235, 1237, 1238] */;
|