Files
discord-decomp/sources/by-id/module-03557.jsx
T
2026-07-27 16:20:00 +03:00

273 lines
11 KiB
React

/* Metro module 3557; source: unknown; dependencies: [3543, 3544, 3541] */
function _fun27260(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#27260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:6, offset: 0x00f58dad, size: 158 bytes, params: 8, frame: 18
let env0_0 = require;
const _typeof_27261 = function(a0) {
var r2;
r2 = typeof global.Symbol !== 'function' ? _fun27263 : typeof global.Symbol.iterator === 'symbol' ? _fun27262 : _fun27263;
env0_2 = r2;
return r2(a0);
};
const _defineProperties_27264 = function(a0, a1) {
var r5;
var r0;
var property;
var enumerable;
var Object;
var value = 0;
if (value < a1.length) {
r5 = value;
while (true) {
property = a1[r5];
enumerable = property.enumerable;
r0 = enumerable || false;
property.enumerable = r0;
property.configurable = true;
if (!('value' in property)) {
continue;
}
property.writable = true;
Object = global.Object;
Object.defineProperty(a0, property.key, property);
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
if (value < a1.length) {
r5 = value;
continue;
}
break;
}
}
};
const _setPrototypeOf_27265 = function(a0, a1) {
var r3;
r3 = global.Object.setPrototypeOf || _fun27266;
env0_4 = r3;
return r3(a0, a1);
};
const _createSuper_27267 = function(a0) {
var env0_0 = a0;
var env0_1 = _fun27268();
return _fun27270;
};
const _assertThisInitialized_27271 = function(a0) {
if (a0 === undefined) {
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return a0;
};
const _getPrototypeOf_27272 = function(a0) {
var r2;
r2 = global.Object.setPrototypeOf ? global.Object.getPrototypeOf : _fun27273;
env0_7 = r2;
return r2(a0);
};
const _defineProperty_27274 = function(a0, a1, a2) {
if (a1 in a0) {
global.Object.defineProperty(a0, a1, {'value': null, 'enumerable': true, 'configurable': true,
'writable': true,
value: a2});
} else {
a0[a1] = a2;
}
return a0;
};
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.DayOfYearParser = undefined;
const Parser = (require(3541) /* metro dependency 3541 */).Parser;
exports.DayOfYearParser = _fun27275(Parser);
}
function _typeof_27261(a0) { // fn#27261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:45, offset: 0x00f58e4b, size: 74 bytes, params: 2, frame: 12
const Symbol = global.Symbol;
return (typeof Symbol !== 'function' ? function(a0) {
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
} : typeof global.Symbol.iterator === 'symbol' ? _typeof_27261_typeof : _typeof_27261_typeof_27263)(a0);
}
function _setPrototypeOf_27265(a0, a1) { // fn#27265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:491, offset: 0x00f58e95, 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 _createSuper_27267(a0) { // fn#27267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:642, offset: 0x00f58ec4, size: 31 bytes, params: 2, frame: 10
const env0_0 = a0;
const env0_1 = _createSuper_27267_isNativeReflectConstruct();
return _createSuper_27267_createSuperInternal;
}
function _getPrototypeOf_27272(a0) { // fn#27272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:1429, offset: 0x00f58f7e, size: 57 bytes, params: 2, frame: 11
const Object = global.Object;
return (Object.setPrototypeOf ? global.Object.getPrototypeOf : function(a0) {
return a0.__proto__ || global.Object.getPrototypeOf(a0);
})(a0);
}
function _fun27275(a0) { // fn#27275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:1833, offset: 0x00f58fb7, size: 254 bytes, params: 2, frame: 18
var environment;
var Object;
let value = a0;
const closure = value_27276;
if (typeof value === 'function') {
Object = global.Object;
closure.prototype = Object.create(value && value.prototype, {constructor: {'value': null, 'writable': true,
'configurable': true, value: closure}});
if (value) {
_setPrototypeOf_27265(closure, value);
}
value = environment;
var env0_0 = _createSuper_27267(closure);
_defineProperties_27264(closure.prototype, [{key: 'parse', value: value_27277}, {key: 'validate',
value: function(a0, a1) {
var value = a0.getUTCFullYear();
value = (0, require(dependencyMap[0]).isLeapYearIndex)(value);
var value3 = a1 >= 1;
return value ? value3 && a1 <= 366 : value3 && a1 <= 365;
}}, {key: 'set', value: value_27279}]) /* class methods: parse, validate, set */;
} else {
if (value !== null) {
throw new global.TypeError('Super expression must either be null or a function');
}
Object = global.Object;
closure.prototype = Object.create(value && value.prototype, {constructor: {'value': null, 'writable': true,
'configurable': true, value: closure}});
if (value) {
_setPrototypeOf_27265(closure, value);
}
var env0_0 = _createSuper_27267(closure);
_defineProperties_27264(closure.prototype, [{key: 'parse', value: value_27277}, {key: 'validate',
value: function(a0, a1) {
var value = a0.getUTCFullYear();
value = (0, require(dependencyMap[0]).isLeapYearIndex)(value);
var value3 = a1 >= 1;
return value ? value3 && a1 <= 366 : value3 && a1 <= 365;
}}, {key: 'set', value: function(a0, a1, a2) {
a0.setUTCMonth(0, a2);
a0.setUTCHours(0, 0, 0, 0);
return a0;
}}]) /* class methods: parse, validate, set */;
}
return closure;
}
function _createSuper_27267_isNativeReflectConstruct() { // fn#27268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:673, owner: _createSuper_27267._isNativeReflectConstruct, offset: 0x00f58ee3, size: 155 bytes, params: 1, frame: 17
var Boolean;
var prototype;
var valueOf;
var call;
var closure;
var value;
var error;
let Reflect = global.Reflect;
if (typeof Reflect !== 'undefined') {
Reflect = global.Reflect;
var construct = Reflect.construct;
if (construct) {
Reflect = global.Reflect;
construct = Reflect.construct;
if (construct.sham) {
return false;
}
if (typeof global.Proxy === 'function') {
return true;
}
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
Reflect.apply(call, valueOf, [value]);
} catch (error) {
return false;
}
return true;
}
}
return false;
}
function value_27276() { // fn#27276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:2152, offset: 0x00f590b5, size: 234 bytes, params: 1, frame: 19
var r1;
var length;
var array;
var value5;
var value6;
var value7;
var _defineProperty_27274Binding;
var _assertThisInitialized_27271Binding;
var call;
var apply;
var binding;
var items2;
var value;
if (this instanceof value_27276) {
length = arguments.length;
array = new global.Array();
value5 = 0;
if (value5 < length) {
r1 = value5;
reducibleLoop3: while (true) {
array[r1] = arguments[r1];
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (value6 < length) {
r1 = value6;
continue reducibleLoop3;
}
break reducibleLoop3;
}
}
value7 = environment.__proto__;
_defineProperty_27274Binding = _defineProperty_27274;
_assertThisInitialized_27271Binding = _assertThisInitialized_27271;
call = env0_0.call;
apply = call.apply;
binding = env0_0;
items2 = [this];
value = Reflect.apply(apply, call, [binding, items2.concat(array)]);
_assertThisInitialized_27271Binding(value);
_defineProperty_27274Binding(value, 'priority', 90);
_assertThisInitialized_27271Binding(value);
_defineProperty_27274Binding(value, 'subpriority', 1);
_assertThisInitialized_27271Binding(value);
_defineProperty_27274Binding(value, 'incompatibleTokens', ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E',
'i',
'e', 'c', 't', 'T']);
return value;
}
const TypeError = global.TypeError;
throw new TypeError('Cannot call a class as a function');
}
function value_27277(a0, a1, a2) { // fn#27277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:2817, offset: 0x00f5919f, size: 167 bytes, params: 4, frame: 15
var value;
const parseNumericPattern = (require(3543) /* metro dependency 3543 */).parseNumericPattern;
const numericPatterns = (require(3544) /* metro dependency 3544 */).numericPatterns;
if (a1 === 'D') {
value = environment.__proto__;
return parseNumericPattern(numericPatterns.dayOfYear, a0);
}
if (a1 === 'DD') {
value = environment.__proto__;
return parseNumericPattern(numericPatterns.dayOfYear, a0);
}
if (a1 === 'Do') {
return a2.ordinalNumber(a0, {unit: 'date'});
}
return (require(3543) /* metro dependency 3543 */).parseNDigits(a1.length, a0);
}
function value_27279(a0, a1, a2) { // fn#27279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3684:3196, offset: 0x00f592a7, size: 43 bytes, params: 4, frame: 15
a0.setUTCMonth(0, a2);
a0.setUTCHours(0, 0, 0, 0);
return a0;
}