210 lines
7.6 KiB
JavaScript
210 lines
7.6 KiB
JavaScript
/* Metro module 6471; source: unknown; dependencies: [] */
|
|
function _fun50887(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:6, offset: 0x01224865, size: 56 bytes, params: 8, frame: 15
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = (() => {
|
|
var closure = _fun50889;
|
|
closure.prototype.putRecycledObject = _fun50890;
|
|
closure.prototype.getRecycledObject = _fun50891;
|
|
closure.prototype.removeFromPool = _fun50892;
|
|
closure.prototype.clearAll = _fun50893;
|
|
closure.prototype._getRelevantSet = _fun50894;
|
|
closure.prototype._stringify = _fun50895;
|
|
return closure;
|
|
})();
|
|
function _fun50888() { // fn#50888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:98, offset: 0x0122489d, size: 105 bytes, params: 1, frame: 4
|
|
const closure = function() {
|
|
this._recyclableObjectMap = {};
|
|
this._availabilitySet = {};
|
|
};
|
|
closure.prototype.putRecycledObject = function(a0, a1) {
|
|
var value = this._stringify(a0);
|
|
if (!this._availabilitySet[a1]) {
|
|
this._getRelevantSet(value)[a1] = null;
|
|
this._availabilitySet[a1] = value;
|
|
}
|
|
};
|
|
closure.prototype.getRecycledObject = function(a0) {
|
|
var r7;
|
|
var r0;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var value = this._stringify(a0);
|
|
value = this._getRelevantSet(value);
|
|
var value2 = undefined;
|
|
var properties = Object.keys(value);
|
|
var properties2 = 0;
|
|
var properties3 = properties.length;
|
|
if (properties === value2) {
|
|
r0 = value2;
|
|
} else {
|
|
r7 = properties2;
|
|
while (true) {
|
|
propertyName = properties[r7];
|
|
propertyName2 = r7 + 1;
|
|
if (propertyName === value2) {
|
|
r0 = value2;
|
|
break;
|
|
}
|
|
if (value.hasOwnProperty(propertyName)) {
|
|
r0 = propertyName;
|
|
break;
|
|
}
|
|
r7 = propertyName2;
|
|
continue;
|
|
}
|
|
}
|
|
if (r0) {
|
|
delete value[r0];
|
|
delete this._availabilitySet[r0];
|
|
}
|
|
return r0;
|
|
};
|
|
closure.prototype.removeFromPool = function(a0) {
|
|
var r0;
|
|
var property = this._availabilitySet[a0];
|
|
if (property) {
|
|
delete this._getRelevantSet(this._availabilitySet[a0])[a0];
|
|
delete this._availabilitySet[a0];
|
|
r0 = true;
|
|
} else {
|
|
r0 = !!property;
|
|
}
|
|
return r0;
|
|
};
|
|
closure.prototype.clearAll = function() {
|
|
this._recyclableObjectMap = {};
|
|
this._availabilitySet = {};
|
|
};
|
|
closure.prototype._getRelevantSet = function(a0) {
|
|
var r0;
|
|
var object;
|
|
var property = this._recyclableObjectMap[a0];
|
|
if (property) {
|
|
r0 = property;
|
|
} else {
|
|
object = {};
|
|
this._recyclableObjectMap[a0] = object;
|
|
r0 = object;
|
|
}
|
|
return r0;
|
|
};
|
|
closure.prototype._stringify = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (typeof value !== 'number') {
|
|
r0 = value;
|
|
} else {
|
|
value = value.toString();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
return closure;
|
|
}
|
|
|
|
}
|
|
|
|
function RecycleItemPool() { // fn#50889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:109, offset: 0x01224906, size: 23 bytes, params: 1, frame: 2
|
|
this._recyclableObjectMap = {};
|
|
this._availabilitySet = {};
|
|
}
|
|
|
|
function putRecycledObject(a0, a1) { // fn#50890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:241, offset: 0x0122491d, size: 64 bytes, params: 3, frame: 13
|
|
const value = this._stringify(a0);
|
|
if (!this._availabilitySet[a1]) {
|
|
this._getRelevantSet(value)[a1] = null;
|
|
this._availabilitySet[a1] = value;
|
|
}
|
|
}
|
|
|
|
function getRecycledObject(a0) { // fn#50891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:416, offset: 0x0122495d, size: 91 bytes, params: 2, frame: 19
|
|
var r7;
|
|
var r0;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty;
|
|
let value = this._stringify(a0);
|
|
value = this._getRelevantSet(value);
|
|
const value2 = undefined;
|
|
const properties = Object.keys(value);
|
|
const properties2 = 0;
|
|
const properties3 = properties.length;
|
|
if (properties === value2) {
|
|
r0 = value2;
|
|
} else {
|
|
r7 = properties2;
|
|
while (true) {
|
|
propertyName = properties[r7];
|
|
propertyName2 = r7 + 1;
|
|
if (propertyName === value2) {
|
|
r0 = value2;
|
|
break;
|
|
}
|
|
hasOwnProperty = value.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, value, [propertyName])) {
|
|
r0 = propertyName;
|
|
break;
|
|
}
|
|
r7 = propertyName2;
|
|
continue;
|
|
}
|
|
}
|
|
if (r0) {
|
|
delete value[r0];
|
|
delete this._availabilitySet[r0];
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function removeFromPool(a0) { // fn#50892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:630, offset: 0x012249b8, size: 64 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var _getRelevantSet;
|
|
let _availabilitySet = this._availabilitySet;
|
|
const property = _availabilitySet[a0];
|
|
if (property) {
|
|
_getRelevantSet = this._getRelevantSet;
|
|
_availabilitySet = this._availabilitySet;
|
|
delete Reflect.apply(_getRelevantSet, this, [_availabilitySet[a0]])[a0];
|
|
_availabilitySet = this._availabilitySet;
|
|
delete _availabilitySet[a0];
|
|
r0 = true;
|
|
} else {
|
|
r0 = !!property;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function clearAll() { // fn#50893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:806, offset: 0x01224906, size: 23 bytes, params: 1, frame: 2
|
|
this._recyclableObjectMap = {};
|
|
this._availabilitySet = {};
|
|
}
|
|
|
|
function _getRelevantSet(a0) { // fn#50894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:914, offset: 0x012249f8, size: 36 bytes, params: 2, frame: 4
|
|
var r0;
|
|
var object;
|
|
const property = this._recyclableObjectMap[a0];
|
|
if (property) {
|
|
r0 = property;
|
|
} else {
|
|
object = {};
|
|
this._recyclableObjectMap[a0] = object;
|
|
r0 = object;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _stringify(a0) { // fn#50895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6649:1049, offset: 0x01224a1c, size: 28 bytes, params: 2, frame: 11
|
|
var r0;
|
|
let value = a0;
|
|
if (typeof value !== 'number') {
|
|
r0 = value;
|
|
} else {
|
|
value = value.toString();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
global.__d(_fun50887, 6471, []) /* metro module 6471 */;
|