550 lines
25 KiB
React
550 lines
25 KiB
React
/* Metro module 4782; source: unknown; dependencies: [4754] */
|
|
function _fun41331(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4960:6, offset: 0x0111c0c3, size: 107 bytes, params: 8, frame: 16
|
|
const getTagValue_41332 = function(a0, a1, a2, a3) {
|
|
return a3 && a0[a1] && a0[a1][a2] ? a0[a1][a2].value : a3 ? undefined : a0[a2] ? a0[a2].value : undefined;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = {get: get_41333};
|
|
exports.FOCAL_PLANE_RESOLUTION_UNIT = {'INCHES': 2, 'CENTIMETERS': 3, 'MILLIMETERS': 4};
|
|
}
|
|
|
|
function get_41333(a0, a1) { // fn#41333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4960:160, offset: 0x0111c177, size: 703 bytes, params: 3, frame: 30
|
|
var r14;
|
|
var r2;
|
|
var r4;
|
|
var r3;
|
|
var binding;
|
|
var INCHES;
|
|
var value10;
|
|
var CENTIMETERS;
|
|
var value11;
|
|
var MILLIMETERS;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var property;
|
|
var property2;
|
|
var value16;
|
|
var value17;
|
|
var property3;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var Math;
|
|
var sqrt;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var property4;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var error;
|
|
var object5;
|
|
var FocalLengthIn35mmFilm;
|
|
var property5;
|
|
var object6;
|
|
var toFixed;
|
|
var atan;
|
|
var PI;
|
|
var value30;
|
|
var object7;
|
|
const object8 = {};
|
|
let value = environment;
|
|
const getTagValue_41332Binding = getTagValue_41332;
|
|
const value2 = undefined;
|
|
const tagValue_41332Binding = getTagValue_41332Binding(a0, 'exif', 'FocalLength', a1);
|
|
const tagValue_41332Binding2 = getTagValue_41332Binding(a0, 'exif', 'FocalPlaneXResolution', a1);
|
|
const tagValue_41332Binding3 = getTagValue_41332Binding(a0, 'exif', 'FocalPlaneYResolution', a1);
|
|
const tagValue_41332Binding4 = getTagValue_41332Binding(a0, 'exif', 'FocalPlaneResolutionUnit', a1);
|
|
const tagValue_41332Binding5 = getTagValue_41332Binding(a0, 'file', 'Image Width', a1);
|
|
const tagValue_41332Binding6 = getTagValue_41332Binding(a0, 'file', 'Image Height', a1);
|
|
const tagValue_41332Binding7 = getTagValue_41332Binding(a0, 'exif', 'FocalLengthIn35mmFilm', a1);
|
|
reducibleJoin48: while (true) {
|
|
if (tagValue_41332Binding7) {
|
|
r4 = tagValue_41332Binding7;
|
|
break reducibleJoin48;
|
|
}
|
|
reduciblePort47: while (true) {
|
|
exceptionLanding46: while (true) {
|
|
if (tagValue_41332Binding2) {
|
|
if (tagValue_41332Binding3) {
|
|
if (tagValue_41332Binding4) {
|
|
if (tagValue_41332Binding5) {
|
|
if (tagValue_41332Binding6) {
|
|
if (tagValue_41332Binding) {
|
|
try {
|
|
binding = env0_2;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
INCHES = binding.INCHES;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value10 = INCHES === tagValue_41332Binding4;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (value10) {
|
|
value15 = 25.4;
|
|
r14 = value15;
|
|
} else {
|
|
try {
|
|
binding = env0_2;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
CENTIMETERS = binding.CENTIMETERS;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value11 = CENTIMETERS === tagValue_41332Binding4;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (value11) {
|
|
value14 = 10;
|
|
r14 = value14;
|
|
} else {
|
|
try {
|
|
binding = env0_2;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
MILLIMETERS = binding.MILLIMETERS;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value12 = MILLIMETERS === tagValue_41332Binding4;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (!value12) {
|
|
r2 = value2;
|
|
break reduciblePort47;
|
|
}
|
|
value13 = 1;
|
|
r14 = value13;
|
|
}
|
|
}
|
|
try {
|
|
property = tagValue_41332Binding2[0];
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
property2 = tagValue_41332Binding2[1];
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value16 = property / property2;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value17 = value16 * r14;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
property = tagValue_41332Binding3[0];
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
property3 = tagValue_41332Binding3[1];
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value18 = property / property3;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value19 = value18 * r14;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value20 = tagValue_41332Binding5 / value17;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value21 = tagValue_41332Binding6 / value19;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
Math = global.Math;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
sqrt = Math.sqrt;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value22 = exponentiationOperator(value20, 2, 'FocalLengthIn35mmFilm');
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value23 = exponentiationOperator(value21, 2, 'FocalLengthIn35mmFilm');
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value24 = value22 + value23;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value25 = Reflect.apply(sqrt, Math, [value24]);
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
property = tagValue_41332Binding[0];
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
property4 = tagValue_41332Binding[1];
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value26 = property / property4;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value27 = 43.27 / value25;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value28 = value26 * value27;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
r2 = value28;
|
|
break reduciblePort47;
|
|
}
|
|
r2 = value2;
|
|
break reduciblePort47;
|
|
}
|
|
r2 = value2;
|
|
break reduciblePort47;
|
|
}
|
|
r2 = value2;
|
|
break reduciblePort47;
|
|
}
|
|
r2 = value2;
|
|
break reduciblePort47;
|
|
}
|
|
r2 = value2;
|
|
break reduciblePort47;
|
|
}
|
|
r2 = value2;
|
|
break reduciblePort47;
|
|
}
|
|
r2 = value2;
|
|
break reduciblePort47;
|
|
}
|
|
r4 = r2;
|
|
break reducibleJoin48;
|
|
}
|
|
reducibleJoin50: while (true) {
|
|
if (r4) {
|
|
object5 = {value: r4};
|
|
value = importDefault(4754) /* metro dependency 4754 */;
|
|
FocalLengthIn35mmFilm = value.FocalLengthIn35mmFilm;
|
|
object5.description = Reflect.apply(FocalLengthIn35mmFilm, value, [r4]);
|
|
object8.FocalLength35efl = object5;
|
|
value = true;
|
|
r2 = value;
|
|
break reducibleJoin50;
|
|
}
|
|
r2 = false;
|
|
break reducibleJoin50;
|
|
}
|
|
reducibleJoin90: while (true) {
|
|
reduciblePort89: while (true) {
|
|
exceptionLanding88: while (true) {
|
|
reducibleJoin65: while (true) {
|
|
reduciblePort64: while (true) {
|
|
exceptionLanding63: while (true) {
|
|
if (tagValue_41332Binding) {
|
|
if (r4) {
|
|
try {
|
|
property = tagValue_41332Binding[0];
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
try {
|
|
property5 = tagValue_41332Binding[1];
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
try {
|
|
value = property / property5;
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
try {
|
|
value = r4 / value;
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
try {
|
|
object6 = {};
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
try {
|
|
object6.value = value;
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
try {
|
|
toFixed = value.toFixed;
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
try {
|
|
value = Reflect.apply(toFixed, value, [1]);
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
try {
|
|
object6.description = value;
|
|
} catch (error) {
|
|
break exceptionLanding63;
|
|
}
|
|
r3 = object6;
|
|
break reduciblePort64;
|
|
}
|
|
r3 = value2;
|
|
break reduciblePort64;
|
|
}
|
|
r3 = value2;
|
|
break reduciblePort64;
|
|
}
|
|
r3 = value2;
|
|
break reduciblePort64;
|
|
}
|
|
reducibleJoin66: while (true) {
|
|
if (r3) {
|
|
break reducibleJoin65;
|
|
}
|
|
break reducibleJoin66;
|
|
}
|
|
if (r4) {
|
|
try {
|
|
Math = global.Math;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
atan = Math.atan;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = 2 * r4;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = 36 / value;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = Reflect.apply(atan, Math, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = 2 * value;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
Math = global.Math;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
PI = Math.PI;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value30 = 180 / PI;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value *= value30;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object7 = {};
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object7.value = value;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
toFixed = value.toFixed;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = Reflect.apply(toFixed, value, [1]);
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value += ' deg';
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object7.description = value;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
r3 = object7;
|
|
break reduciblePort89;
|
|
}
|
|
r3 = value2;
|
|
break reduciblePort89;
|
|
}
|
|
object8.ScaleFactorTo35mmEquivalent = r3;
|
|
value = true;
|
|
r2 = value;
|
|
if (r4) {
|
|
try {
|
|
Math = global.Math;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
atan = Math.atan;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = 2 * r4;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = 36 / value;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = Reflect.apply(atan, Math, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = 2 * value;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
Math = global.Math;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
PI = Math.PI;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value30 = 180 / PI;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value *= value30;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object7 = {};
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object7.value = value;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
toFixed = value.toFixed;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value = Reflect.apply(toFixed, value, [1]);
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
value += ' deg';
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object7.description = value;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
r3 = object7;
|
|
break reduciblePort89;
|
|
}
|
|
r3 = value2;
|
|
break reduciblePort89;
|
|
}
|
|
r3 = value2;
|
|
break reduciblePort89;
|
|
}
|
|
reducibleJoin91: while (true) {
|
|
if (r3) {
|
|
break reducibleJoin90;
|
|
}
|
|
break reducibleJoin91;
|
|
}
|
|
return r2 ? object8 : value2;
|
|
}
|
|
object8.FieldOfView = r3;
|
|
return object8;
|
|
}
|
|
|