/* Metro module 4747; source: unknown; dependencies: [4748] */ import Module04748 from './module-04748.js'; /* Metro dependency 4748 */ function _fun40950(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4925:6, offset: 0x011112ec, size: 127 bytes, params: 8, frame: 16 const getComponentIds = function(a0) { var env0_0 = {1: 'Y', 2: 'Cb', 3: 'Cr', 4: 'I', 5: 'Q'}; return a0.map(_fun40956).join(''); }; const getSamplingType = function(a0) { var object = {17: '4:4:4 (1 1)', 18: '4:4:0 (1 2)', 20: '4:4:1 (1 4)', 33: '4:2:2 (2 1)', 34: '4:2:0 (2 2)', 36: '4:2:1 (2 4)', 65: '4:1:1 (4 1)', 66: '4:1:0 (4 2)'}; return a0.length === 0 || a0[0][1] === undefined || object[a0[0][1]] === undefined ? '' : object[a0[0][1]]; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.default = {read: read_40958}; function getDataPrecision(a0, a1, a2) { // fn#40951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4925:522, offset: 0x0111136b, size: 78 bytes, params: 4, frame: 13 if (3 > a2) { return undefined; } let value = Module04748; value = value.getByteAt(a0, a1 + 2); return {value: value, description: String(value)}; } function getImageHeight(a0, a1, a2) { // fn#40952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4925:632, offset: 0x011113b9, size: 102 bytes, params: 4, frame: 14 if (5 > a2) { return undefined; } let value = Module04748; value = value.getShortAt(a0, a1 + 3); return {value: value, description: '' + value + 'px'}; } function getImageWidth(a0, a1, a2) { // fn#40953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4925:745, offset: 0x0111141f, size: 102 bytes, params: 4, frame: 14 if (7 > a2) { return undefined; } let value = Module04748; value = value.getShortAt(a0, a1 + 5); return {value: value, description: '' + value + 'px'}; } function getSubsampling(a0, a1, a2, a3) { // fn#40954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4925:857, offset: 0x01111485, size: 240 bytes, params: 5, frame: 29 var r0; var r1; var value3; var value4; var push; var defaultImport; var getByteAt; var value5; var items2; var defaultImport2; var defaultImport3; var value6; if (8 + 3 * a2 > a3) { return undefined; } const items3 = []; let value = 0; if (value < a2) { r0 = value; reducibleLoop2: while (true) { value3 = a1 + 8; value4 = value3 + 3 * r0; push = items3.push; defaultImport = importDefault(dependencyMap[value]); getByteAt = defaultImport.getByteAt; value5 = Reflect.apply(getByteAt, defaultImport, [a0, value4]); items2 = [value5]; defaultImport2 = importDefault(dependencyMap[value]); getByteAt = defaultImport2.getByteAt; items2[1] = Reflect.apply(getByteAt, defaultImport2, [a0, value4 + 1]); defaultImport3 = importDefault(dependencyMap[value]); getByteAt = defaultImport3.getByteAt; items2[2] = Reflect.apply(getByteAt, defaultImport3, [a0, value4 + 2]); Reflect.apply(push, items3, [items2]); value6 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1; if (value6 < a2) { r0 = value6; continue reducibleLoop2; } break reducibleLoop2; } } const object = {value: items3}; const length = items3.length; value = ''; reducibleJoin5: while (true) { if (length > 1) { value = getComponentIds(items3); value += getSamplingType(items3); r1 = value; break reducibleJoin5; } r1 = value; break reducibleJoin5; } object.description = r1; return object; } function getComponentIds(a0) { // fn#40955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4925:1112, offset: 0x01111575, size: 54 bytes, params: 2, frame: 11 const env0_0 = {1: 'Y', 2: 'Cb', 3: 'Cr', 4: 'I', 5: 'Q'}; return a0.map(_fun40956).join(''); function _fun40956(a0) { // fn#40956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4925:1194, offset: 0x011115ab, size: 22 bytes, params: 2, frame: 3 return env0_0[a0[0]]; } } function read_40958(a0, a1) { // fn#40958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4925:105, offset: 0x01111619, size: 204 bytes, params: 3, frame: 20 var r2; var r1; var byteAt; var getSubsamplingBinding; var value; const value2 = undefined; const shortAt = (importDefault(4748) /* metro dependency 4748 */).getShortAt(a0, a1); if (8 > shortAt) { r2 = value2; } else { byteAt = (importDefault(4748) /* metro dependency 4748 */).getByteAt(a0, a1 + 7); r2 = {value: byteAt, description: String(byteAt)}; } const object = {}; object['Bits Per Sample'] = getDataPrecision(a0, a1, shortAt); object['Image Height'] = getImageHeight(a0, a1, shortAt); object['Image Width'] = getImageWidth(a0, a1, shortAt); object['Color Components'] = r2; if (r2) { getSubsamplingBinding = getSubsampling; value = r2.value; value = getSubsamplingBinding(a0, a1, value, shortAt); r1 = value; } else { r1 = r2; } object.Subsampling = r1; return object; } } global.__d(_fun40950, 4747, [4748]) /* metro module 4747, dependencies: [4748] */;