108 lines
3.6 KiB
React
108 lines
3.6 KiB
React
/* 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;
|
|
}
|
|
|