正在查看: OVO v3.139.0 应用的 tl4.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 tl4.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package o.i;
import android.content.Context;
import android.media.ImageReader;
import android.net.Uri;
import android.util.Base64;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.c;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.spec.X509EncodedKeySpec;
import java.util.List;
import javax.crypto.Cipher;
import zendesk.chat.WebSocket;
public final class tl4 implements fze, x2l {
public static final tl4 a = new tl4();
public static final tl4 b = new tl4();
public static final long b(float f, float f2) {
return (Float.floatToRawIntBits(f2) & 4294967295L) | (Float.floatToRawIntBits(f) << 32);
}
public static int d(String str, int i) {
return f1h.a(str, i, 31);
}
public static wo e(int i, int i2, int i3, int i4) {
return new wo(ImageReader.newInstance(i, i2, i3, i4));
}
public static String f(String str, String str2, String str3) {
String encodeToString;
vk7.f(str3, "value");
try {
PublicKey k = k(0, str2, str);
Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
cipher.init(1, k);
byte[] bytes = str3.getBytes(si1.b);
vk7.e(bytes, "this as java.lang.String).getBytes(charset)");
byte[] doFinal = cipher.doFinal(bytes);
vk7.e(doFinal, "encryptedBytes");
encodeToString = Base64.encodeToString(doFinal, 0);
} catch (Exception unused) {
}
return encodeToString == null ? "" : encodeToString;
}
public static final String g(CharSequence charSequence, boolean z) {
if (charSequence == null) {
charSequence = "";
}
Double a2 = rza.a(charSequence);
if (a2 == null) {
return "";
}
a2.doubleValue();
return h(a2, z);
}
public static final String h(Double d, boolean z) {
Number number = d;
if (d == null) {
number = 0;
}
return t(number, z);
}
public static final String i(Long l, boolean z) {
return t(Long.valueOf(l != null ? l.longValue() : 0L), z);
}
public static PublicKey k(int i, String str, String str2) {
KeyFactory keyFactory = KeyFactory.getInstance(str2);
byte[] decode = Base64.decode(fqe.E(jqe.a0("-----END PUBLIC KEY-----", jqe.Y("-----BEGIN PUBLIC KEY-----", jqe.r0(str).toString())), "\\n", ""), i);
vk7.e(decode, "decode(this, flags)");
PublicKey generatePublic = keyFactory.generatePublic(new X509EncodedKeySpec(decode));
vk7.e(generatePublic, "keyFactory.generatePublic(keySpec)");
return generatePublic;
}
public static String m(tl4 tl4Var, String str) {
tl4Var.getClass();
vk7.f(str, "drawableName");
return fqe.H(str, "rima", false) ? t61.a("https://static.ovo.id/mobile/ravier/assets/rima/png/", "x3", "/", str, ".png") : fqe.H(str, "rico", false) ? t61.a("https://static.ovo.id/mobile/ravier/assets/rico/png/", "x3", "/", str, ".png") : fqe.H(str, "rogo", false) ? t61.a("https://static.ovo.id/mobile/ravier/assets/rogo/png/", "x3", "/", str, ".png") : "";
}
public static void n(o.i.ez7 r5, java.lang.String r6, java.lang.String r7) {
throw new UnsupportedOperationException("Method not decompiled: o.i.tl4.n(o.i.ez7, java.lang.String, java.lang.String):void");
}
public static boolean o(Uri uri) {
return uri != null && "content".equals(uri.getScheme()) && "media".equals(uri.getAuthority());
}
public static yn9 p(yn9 yn9Var, String str, String str2, int i) {
Object obj;
boolean z = false;
boolean z3 = (i & 4) != 0;
if ((i & 8) != 0) {
str2 = null;
}
if (!yn9Var.b) {
String h = yn9Var.h();
vk7.e(h, "methodName.identifier");
if (fqe.H(h, str, false) && h.length() != str.length()) {
char charAt = h.charAt(str.length());
if (!('a' <= charAt && charAt < '{')) {
if (str2 != null) {
return yn9.j(str2.concat(jqe.Y(str, h)));
}
if (!z3) {
return yn9Var;
}
String Y = jqe.Y(str, h);
if (!(Y.length() == 0) && d.q(0, Y)) {
if (Y.length() == 1 || !d.q(1, Y)) {
if (!(Y.length() == 0)) {
char charAt2 = Y.charAt(0);
if ('A' <= charAt2 && charAt2 < '[') {
z = true;
}
if (z) {
char lowerCase = Character.toLowerCase(charAt2);
String substring = Y.substring(1);
vk7.e(substring, "this as java.lang.String).substring(startIndex)");
Y = lowerCase + substring;
}
}
} else {
wh7 i2 = new xh7(0, Y.length() - 1).i();
while (true) {
if (!i2.c) {
obj = null;
break;
}
obj = i2.next();
if (!d.q(((Number) obj).intValue(), Y)) {
break;
}
}
Integer num = (Integer) obj;
if (num != null) {
int intValue = num.intValue() - 1;
String substring2 = Y.substring(0, intValue);
vk7.e(substring2, "this as java.lang.String…ing(startIndex, endIndex)");
String t3 = d.t(substring2);
String substring3 = Y.substring(intValue);
vk7.e(substring3, "this as java.lang.String).substring(startIndex)");
Y = t3.concat(substring3);
} else {
Y = d.t(Y);
}
}
}
if (yn9.m(Y)) {
return yn9.j(Y);
}
}
}
}
return null;
}
public static String q(String str, ez7 ez7Var) {
jy7 z;
vk7.f(str, "path");
List f0 = jqe.f0(str, new String[]{"."});
for (String str2 : ru1.k0(f0)) {
if (ez7Var != null) {
jy7 z3 = ez7Var.z(str2);
if (!((z3 == null || (z3 instanceof ez7)) ? false : true)) {
jy7 z5 = ez7Var.z(str2);
ez7Var = z5 != null ? z5.j() : null;
}
}
return null;
}
if (ez7Var == null || (z = ez7Var.z((String) ru1.y0(f0))) == null) {
return null;
}
return z.p();
}
public static final int r(jrd jrdVar, int i) {
int i2;
vk7.f(jrdVar, "<this>");
int i3 = i + 1;
int length = jrdVar.e.length;
int[] iArr = jrdVar.f;
vk7.f(iArr, "<this>");
int i4 = length - 1;
int i5 = 0;
while (true) {
if (i5 <= i4) {
i2 = (i5 + i4) >>> 1;
int i6 = iArr[i2];
if (i6 >= i3) {
if (i6 <= i3) {
break;
}
i4 = i2 - 1;
} else {
i5 = i2 + 1;
}
} else {
i2 = (-i5) - 1;
break;
}
}
return i2 >= 0 ? i2 : ~i2;
}
public static Modifier s(Modifier modifier, List list, boolean z, float f, int i, int i2) {
os3 os3Var = (i2 & 1) != 0 ? os3.a : null;
List z3 = (i2 & 2) != 0 ? sh.z(new su1[]{new su1(su1.b(os3Var.b().J(), 0.0f)), new su1(su1.b(os3Var.b().J(), 1.0f)), new su1(su1.b(os3Var.b().J(), 0.0f))}) : list;
boolean z5 = (i2 & 4) != 0 ? true : z;
float f2 = (i2 & 8) != 0 ? l34.a : f;
int i3 = (i2 & 32) != 0 ? 0 : i;
int i4 = (i2 & 64) != 0 ? WebSocket.CLOSE_CODE_NORMAL : 0;
vk7.f(modifier, "$this$shimmer");
vk7.f(os3Var, "theme");
vk7.f(z3, "colors");
return c.b(modifier, new l4e(z5, i4, i3, z3, 0.0f, f2));
}
public static final String t(Number number, boolean z) {
vk7.f(number, "<this>");
String format = si2.a.format(number);
if (z) {
vk7.e(format, "currencyString");
format = fqe.H(format, "-", false) ? "-Rp".concat(jqe.Y("-", format)) : "Rp".concat(format);
}
vk7.e(format, "CURRENCY_FORMATTER.forma…ncyString\n }\n }");
return format;
}
public void a(Context context) {
}
public eze c() {
return new eze(0);
}
public Object l(Context context, String str) {
vk7.f(context, "context");
vk7.f(str, "drawableName");
if (!fqe.H(str, "rima", false) && !fqe.H(str, "rico", false) && !fqe.H(str, "rogo", false)) {
return str;
}
int identifier = context.getResources().getIdentifier(str, "drawable", context.getPackageName());
return identifier != 0 ? Integer.valueOf(identifier) : m(this, str);
}
public Object zza() {
List list = r3l.a;
return Boolean.valueOf(ypm.b.a().c());
}
}