正在查看: BetterTogether v3.0.0 应用的 l0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 l0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package xh;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcel;
import android.webkit.CookieManager;
import android.webkit.CookieSyncManager;
import cf.f;
import ci.a;
import com.facebook.AccessToken;
import cp.o0;
import cp.s0;
import cp.y1;
import hr.d0;
import i3.e;
import ih.a0;
import ih.h0;
import ih.o;
import j0.g0;
import java.io.BufferedInputStream;
import java.io.Closeable;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.HttpURLConnection;
import java.net.URLConnection;
import java.net.URLDecoder;
import java.security.GeneralSecurityException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ScheduledExecutorService;
import k0.d;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Charsets;
import kotlin.text.Regex;
import kotlin.text.u;
import n0.l;
import n0.p;
import n2.c;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;
import rk.r;
import s6.s;
import s6.t;
import uk.b;
import v1.o1;
import vs.IiM.qIRR;
public abstract class l0 {
public static int a = 0;
public static long b = -1;
public static long c = -1;
public static long f1011d = -1;
public static String f1012e = "";
public static String f = "";
public static String g = "NoCarrier";
public static String f1013h = "";
public static Locale i;
public static final int f1014k = 0;
public static final f j = new f(20);
public static final h0 l = new h0();
public static final c m = new c(1.0f, 1.0f);
public static final s n = new s(4);
public static final t o = new t(4);
public static String A(String str, byte[] bArr) {
try {
MessageDigest messageDigest = MessageDigest.getInstance(str);
Intrinsics.checkNotNullExpressionValue(messageDigest, "hash");
messageDigest.update(bArr);
byte[] digest = messageDigest.digest();
StringBuilder sb2 = new StringBuilder();
Intrinsics.checkNotNullExpressionValue(digest, "digest");
int length = digest.length;
int i2 = 0;
while (i2 < length) {
byte b4 = digest[i2];
i2++;
sb2.append(Integer.toHexString((b4 >> 4) & 15));
sb2.append(Integer.toHexString((b4 >> 0) & 15));
}
String sb3 = sb2.toString();
Intrinsics.checkNotNullExpressionValue(sb3, "builder.toString()");
return sb3;
} catch (NoSuchAlgorithmException unused) {
return null;
}
}
public static final Object B(Object obj, Method method, Object... objArr) {
Intrinsics.checkNotNullParameter(method, "method");
Intrinsics.checkNotNullParameter(objArr, "args");
try {
return method.invoke(obj, Arrays.copyOf(objArr, objArr.length));
} catch (IllegalAccessException | InvocationTargetException unused) {
return null;
}
}
public static final boolean C() {
try {
Intent intent = new Intent("android.intent.action.VIEW");
String format = String.format("fb%s://applinks", Arrays.copyOf(new Object[]{ih.t.b()}, 1));
Intrinsics.checkNotNullExpressionValue(format, "java.lang.String.format(format, *args)");
intent.setData(Uri.parse(format));
Context a3 = ih.t.a();
PackageManager packageManager = a3.getPackageManager();
String packageName = a3.getPackageName();
List<ResolveInfo> queryIntentActivities = packageManager.queryIntentActivities(intent, 65536);
Intrinsics.checkNotNullExpressionValue(queryIntentActivities, "packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY)");
Iterator<ResolveInfo> it = queryIntentActivities.iterator();
while (it.hasNext()) {
if (Intrinsics.c(packageName, it.next().activityInfo.packageName)) {
return true;
}
}
} catch (Exception unused) {
}
return false;
}
public static final boolean D(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
if (Build.VERSION.SDK_INT >= 27) {
return context.getPackageManager().hasSystemFeature("android.hardware.type.pc");
}
String str = Build.DEVICE;
if (str != null) {
Intrinsics.checkNotNullExpressionValue(str, "DEVICE");
if (new Regex(".+_cheets|cheets_.+").d(str)) {
return true;
}
}
return false;
}
public static final boolean E() {
if (a.b(l0.class)) {
return false;
}
try {
JSONObject r = r();
if (r == null) {
return false;
}
try {
JSONArray jSONArray = r.getJSONArray("data_processing_options");
int length = jSONArray.length();
if (length > 0) {
int i2 = 0;
while (true) {
int i3 = i2 + 1;
String string = jSONArray.getString(i2);
Intrinsics.checkNotNullExpressionValue(string, "options.getString(i)");
String lowerCase = string.toLowerCase();
Intrinsics.checkNotNullExpressionValue(lowerCase, "(this as java.lang.String).toLowerCase()");
if (Intrinsics.c(lowerCase, "ldu")) {
return true;
}
if (i3 >= length) {
break;
}
i2 = i3;
}
}
} catch (Exception unused) {
}
return false;
} catch (Throwable th2) {
a.a(l0.class, th2);
return false;
}
}
public static boolean F(Context context) {
Method v2 = v("com.google.android.gms.common.GooglePlayServicesUtil", "isGooglePlayServicesAvailable", Context.class);
if (v2 == null) {
return false;
}
Object B = B(null, v2, context);
return (B instanceof Integer) && Intrinsics.c(B, 0);
}
public static final boolean G(String str) {
if (str != null) {
return str.length() == 0;
}
return true;
}
public static final boolean H(Uri uri) {
return uri != null && (u.h("http", uri.getScheme(), true) || u.h("https", uri.getScheme(), true) || u.h("fbstaging", uri.getScheme(), true));
}
public static final ArrayList I(JSONArray jSONArray) {
Intrinsics.checkNotNullParameter(jSONArray, "jsonArray");
ArrayList arrayList = new ArrayList();
int length = jSONArray.length();
if (length > 0) {
int i2 = 0;
while (true) {
int i3 = i2 + 1;
arrayList.add(jSONArray.getString(i2));
if (i3 >= length) {
break;
}
i2 = i3;
}
}
return arrayList;
}
public static final HashMap J(String str) {
Intrinsics.checkNotNullParameter(str, "str");
if (str.length() == 0) {
return new HashMap();
}
try {
HashMap hashMap = new HashMap();
JSONObject jSONObject = new JSONObject(str);
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
Intrinsics.checkNotNullExpressionValue(next, "key");
String string = jSONObject.getString(next);
Intrinsics.checkNotNullExpressionValue(string, "jsonObject.getString(key)");
hashMap.put(next, string);
}
return hashMap;
} catch (JSONException unused) {
return new HashMap();
}
}
public static final String K(Map map) {
Intrinsics.checkNotNullParameter(map, "map");
String str = "";
if (!map.isEmpty()) {
try {
JSONObject jSONObject = new JSONObject();
for (Map.Entry entry : map.entrySet()) {
jSONObject.put((String) entry.getKey(), (String) entry.getValue());
}
str = jSONObject.toString();
} catch (JSONException unused) {
}
Intrinsics.checkNotNullExpressionValue(str, "{\n try {\n val jsonObject = JSONObject()\n for ((key, value) in map) {\n jsonObject.put(key, value)\n }\n jsonObject.toString()\n } catch (_e: JSONException) {\n \"\"\n }\n }");
}
return str;
}
public static void L(PackageInfo packageInfo, File file) {
try {
DataOutputStream dataOutputStream = new DataOutputStream(new FileOutputStream(new File(file, "profileinstaller_profileWrittenFor_lastUpdateTime.dat")));
try {
dataOutputStream.writeLong(packageInfo.lastUpdateTime);
dataOutputStream.close();
} finally {
}
} catch (IOException unused) {
}
}
public static final Bundle M(String str) {
Bundle bundle = new Bundle();
if (!G(str)) {
if (str == null) {
throw new IllegalStateException("Required value was null.".toString());
}
Object[] array = kotlin.text.y.O(str, new String[]{"&"}, 0, 6).toArray(new String[0]);
if (array == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
}
String[] strArr = (String[]) array;
int length = strArr.length;
int i2 = 0;
while (i2 < length) {
String str2 = strArr[i2];
i2++;
Object[] array2 = kotlin.text.y.O(str2, new String[]{"="}, 0, 6).toArray(new String[0]);
if (array2 == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
}
String[] strArr2 = (String[]) array2;
try {
if (strArr2.length == 2) {
bundle.putString(URLDecoder.decode(strArr2[0], "UTF-8"), URLDecoder.decode(strArr2[1], "UTF-8"));
} else if (strArr2.length == 1) {
bundle.putString(URLDecoder.decode(strArr2[0], "UTF-8"), "");
}
} catch (UnsupportedEncodingException unused) {
ih.t tVar = ih.t.a;
}
}
}
return bundle;
}
public static final void N(Bundle bundle, JSONArray jSONArray) {
Intrinsics.checkNotNullParameter(bundle, "bundle");
boolean z = jSONArray instanceof Boolean;
String str = qIRR.sYTGxu;
if (z) {
bundle.putBoolean(str, ((Boolean) jSONArray).booleanValue());
return;
}
if (jSONArray instanceof boolean[]) {
bundle.putBooleanArray(str, (boolean[]) jSONArray);
return;
}
if (jSONArray instanceof Double) {
bundle.putDouble(str, ((Number) jSONArray).doubleValue());
return;
}
if (jSONArray instanceof double[]) {
bundle.putDoubleArray(str, (double[]) jSONArray);
return;
}
if (jSONArray instanceof Integer) {
bundle.putInt(str, ((Number) jSONArray).intValue());
return;
}
if (jSONArray instanceof int[]) {
bundle.putIntArray(str, (int[]) jSONArray);
return;
}
if (jSONArray instanceof Long) {
bundle.putLong(str, ((Number) jSONArray).longValue());
return;
}
if (jSONArray instanceof long[]) {
bundle.putLongArray(str, (long[]) jSONArray);
} else if (jSONArray instanceof String) {
bundle.putString(str, (String) jSONArray);
} else {
bundle.putString(str, jSONArray.toString());
}
}
public static final HashMap O(Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
int readInt = parcel.readInt();
if (readInt < 0) {
return null;
}
HashMap hashMap = new HashMap();
if (readInt > 0) {
int i2 = 0;
do {
i2++;
String readString = parcel.readString();
String readString2 = parcel.readString();
if (readString != null && readString2 != null) {
hashMap.put(readString, readString2);
}
} while (i2 < readInt);
}
return hashMap;
}
public static final String P(InputStream inputStream) {
BufferedInputStream bufferedInputStream;
Throwable th2;
InputStreamReader inputStreamReader;
try {
bufferedInputStream = new BufferedInputStream(inputStream);
try {
inputStreamReader = new InputStreamReader(bufferedInputStream);
try {
StringBuilder sb2 = new StringBuilder();
char[] cArr = new char[2048];
while (true) {
int read = inputStreamReader.read(cArr);
if (read == -1) {
String sb3 = sb2.toString();
Intrinsics.checkNotNullExpressionValue(sb3, "{\n bufferedInputStream = BufferedInputStream(inputStream)\n reader = InputStreamReader(bufferedInputStream)\n val stringBuilder = StringBuilder()\n val bufferSize = 1024 * 2\n val buffer = CharArray(bufferSize)\n var n = 0\n while (reader.read(buffer).also { n = it } != -1) {\n stringBuilder.append(buffer, 0, n)\n }\n stringBuilder.toString()\n }");
e(bufferedInputStream);
e(inputStreamReader);
return sb3;
}
sb2.append(cArr, 0, read);
}
} catch (Throwable th3) {
th2 = th3;
e(bufferedInputStream);
e(inputStreamReader);
throw th2;
}
} catch (Throwable th4) {
th2 = th4;
inputStreamReader = null;
}
} catch (Throwable th5) {
bufferedInputStream = null;
th2 = th5;
inputStreamReader = null;
}
}
public static final o1 R(v1.f0 f0Var) {
o1 o1Var = f0Var.N;
if (o1Var != null) {
return o1Var;
}
r.i0("LayoutNode should be attached to an owner");
throw null;
}
public static final void S(android.content.Context r11, org.json.JSONObject r12) {
throw new UnsupportedOperationException("Method not decompiled: xh.l0.S(android.content.Context, org.json.JSONObject):void");
}
public static final String T(String str) {
if (str == null) {
return null;
}
byte[] bytes = str.getBytes(Charsets.UTF_8);
Intrinsics.checkNotNullExpressionValue(bytes, "(this as java.lang.String).getBytes(charset)");
return A("SHA-256", bytes);
}
public static bb.r U(int i2, gh.a aVar) {
return new bb.r(new e(i2), aVar, j, 6);
}
public static final void W(Parcel parcel, Map map) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
if (map == null) {
parcel.writeInt(-1);
return;
}
parcel.writeInt(map.size());
for (Map.Entry entry : map.entrySet()) {
String str = (String) entry.getKey();
String str2 = (String) entry.getValue();
parcel.writeString(str);
parcel.writeString(str2);
}
}
public static void X(android.content.Context r16, m.a r17, y6.d r18, boolean r19) {
throw new UnsupportedOperationException("Method not decompiled: xh.l0.X(android.content.Context, m.a, y6.d, boolean):void");
}
public static final boolean a(Object obj, Object obj2) {
return obj == null ? obj2 == null : Intrinsics.c(obj, obj2);
}
public static final Uri b(Bundle bundle, String str, String str2) {
Uri.Builder builder = new Uri.Builder();
builder.scheme("https");
builder.authority(str);
builder.path(str2);
if (bundle != null) {
for (String str3 : bundle.keySet()) {
Object obj = bundle.get(str3);
if (obj instanceof String) {
builder.appendQueryParameter(str3, (String) obj);
}
}
}
Uri build = builder.build();
Intrinsics.checkNotNullExpressionValue(build, "builder.build()");
return build;
}
public static void c(Context context, String str) {
CookieSyncManager.createInstance(context).sync();
CookieManager cookieManager = CookieManager.getInstance();
String cookie = cookieManager.getCookie(str);
if (cookie == null) {
return;
}
Object[] array = kotlin.text.y.O(cookie, new String[]{";"}, 0, 6).toArray(new String[0]);
if (array == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
}
String[] strArr = (String[]) array;
int length = strArr.length;
int i2 = 0;
while (i2 < length) {
String str2 = strArr[i2];
i2++;
Object[] array2 = kotlin.text.y.O(str2, new String[]{"="}, 0, 6).toArray(new String[0]);
if (array2 == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
}
String[] strArr2 = (String[]) array2;
if (strArr2.length > 0) {
String str3 = strArr2[0];
int length2 = str3.length() - 1;
int i3 = 0;
boolean z = false;
while (i3 <= length2) {
boolean z2 = Intrinsics.h(str3.charAt(!z ? i3 : length2), 32) <= 0;
if (z) {
if (!z2) {
break;
} else {
length2--;
}
} else if (z2) {
i3++;
} else {
z = true;
}
}
cookieManager.setCookie(str, Intrinsics.k("=;expires=Sat, 1 Jan 2000 00:00:01 UTC;", str3.subSequence(i3, length2 + 1).toString()));
}
}
cookieManager.removeExpiredCookie();
}
public static final void d(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
try {
c(context, "facebook.com");
c(context, ".facebook.com");
c(context, "https://facebook.com");
c(context, "https://.facebook.com");
} catch (Exception unused) {
}
}
public static final void e(Closeable closeable) {
if (closeable == null) {
return;
}
try {
closeable.close();
} catch (IOException unused) {
}
}
public static final String f(String str) {
return G(str) ? "" : str;
}
public static final ArrayList g(JSONArray jSONArray) {
Intrinsics.checkNotNullParameter(jSONArray, "jsonArray");
try {
ArrayList arrayList = new ArrayList();
int length = jSONArray.length();
if (length <= 0) {
return arrayList;
}
int i2 = 0;
while (true) {
int i3 = i2 + 1;
String string = jSONArray.getString(i2);
Intrinsics.checkNotNullExpressionValue(string, "jsonArray.getString(i)");
arrayList.add(string);
if (i3 >= length) {
return arrayList;
}
i2 = i3;
}
} catch (JSONException unused) {
return new ArrayList();
}
}
public static final HashMap h(JSONObject jSONObject) {
int length;
Intrinsics.checkNotNullParameter(jSONObject, "jsonObject");
HashMap hashMap = new HashMap();
JSONArray names = jSONObject.names();
if (names != null && (length = names.length()) > 0) {
int i2 = 0;
while (true) {
int i3 = i2 + 1;
try {
String string = names.getString(i2);
Intrinsics.checkNotNullExpressionValue(string, "keys.getString(i)");
Object obj = jSONObject.get(string);
if (obj instanceof JSONObject) {
obj = h((JSONObject) obj);
}
Intrinsics.checkNotNullExpressionValue(obj, "value");
hashMap.put(string, obj);
} catch (JSONException unused) {
}
if (i3 >= length) {
break;
}
i2 = i3;
}
}
return hashMap;
}
public static final HashMap i(JSONObject jSONObject) {
Intrinsics.checkNotNullParameter(jSONObject, "jsonObject");
HashMap hashMap = new HashMap();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
String optString = jSONObject.optString(next);
if (optString != null) {
Intrinsics.checkNotNullExpressionValue(next, "key");
hashMap.put(next, optString);
}
}
return hashMap;
}
public static final int j(InputStream inputStream, OutputStream outputStream) {
Intrinsics.checkNotNullParameter(outputStream, "outputStream");
BufferedInputStream bufferedInputStream = null;
try {
BufferedInputStream bufferedInputStream2 = new BufferedInputStream(inputStream);
try {
byte[] bArr = new byte[8192];
int i2 = 0;
while (true) {
int read = bufferedInputStream2.read(bArr);
if (read == -1) {
break;
}
outputStream.write(bArr, 0, read);
i2 += read;
}
bufferedInputStream2.close();
if (inputStream != null) {
inputStream.close();
}
return i2;
} catch (Throwable th2) {
th = th2;
bufferedInputStream = bufferedInputStream2;
if (bufferedInputStream != null) {
bufferedInputStream.close();
}
if (inputStream != null) {
inputStream.close();
}
throw th;
}
} catch (Throwable th3) {
th = th3;
}
}
public static final void l(URLConnection uRLConnection) {
if (uRLConnection == null || !(uRLConnection instanceof HttpURLConnection)) {
return;
}
((HttpURLConnection) uRLConnection).disconnect();
}
public static final String m(Context context) {
if (context == null) {
return "null";
}
if (context == context.getApplicationContext()) {
return "unknown";
}
String simpleName = context.getClass().getSimpleName();
Intrinsics.checkNotNullExpressionValue(simpleName, "{\n context.javaClass.simpleName\n }");
return simpleName;
}
public static final String n(Context context) {
String string;
Intrinsics.checkNotNullParameter(context, "context");
try {
ih.t tVar = ih.t.a;
sh.f.B();
String str = ih.t.e;
if (str != null) {
return str;
}
ApplicationInfo applicationInfo = context.getApplicationInfo();
int i2 = applicationInfo.labelRes;
if (i2 == 0) {
string = applicationInfo.nonLocalizedLabel.toString();
} else {
string = context.getString(i2);
Intrinsics.checkNotNullExpressionValue(string, "context.getString(stringId)");
}
return string;
} catch (Exception unused) {
return "";
}
}
public static final Date o(Bundle bundle, String str, Date date) {
long parseLong;
Intrinsics.checkNotNullParameter(date, "dateBase");
if (bundle == null) {
return null;
}
Object obj = bundle.get(str);
if (!(obj instanceof Long)) {
if (obj instanceof String) {
try {
parseLong = Long.parseLong((String) obj);
} catch (NumberFormatException unused) {
}
}
return null;
}
parseLong = ((Number) obj).longValue();
if (parseLong == 0) {
return new Date(Long.MAX_VALUE);
}
return new Date((parseLong * 1000) + date.getTime());
}
public static d q(l lVar) {
return (d) ((p) lVar).l(k0.e.a);
}
public static final JSONObject r() {
if (a.b(l0.class)) {
return null;
}
try {
String string = ih.t.a().getSharedPreferences("com.facebook.sdk.DataProcessingOptions", 0).getString("data_processing_options", null);
if (string != null) {
try {
return new JSONObject(string);
} catch (JSONException unused) {
}
}
return null;
} catch (Throwable th2) {
a.a(l0.class, th2);
return null;
}
}
public static final void s(k0 k0Var, String str) {
String str2;
Intrinsics.checkNotNullParameter(str, "accessToken");
Intrinsics.checkNotNullParameter(k0Var, "callback");
ConcurrentHashMap concurrentHashMap = g0.a;
Intrinsics.checkNotNullParameter(str, "accessToken");
JSONObject jSONObject = (JSONObject) g0.a.get(str);
if (jSONObject != null) {
k0Var.a(jSONObject);
return;
}
i0 i0Var = new i0(k0Var, str);
Bundle bundle = new Bundle();
Date date = AccessToken.Q;
AccessToken d2 = f.d();
if (d2 == null || (str2 = d2.P) == null) {
str2 = "facebook";
}
bundle.putString("fields", Intrinsics.c(str2, "instagram") ? "id,name,profile_picture" : "id,name,first_name,middle_name,last_name");
bundle.putString("access_token", str);
a0 a0Var = new a0((AccessToken) null, "me", (Bundle) null, (ih.f0) null, new ih.d((Object) null, 2));
Intrinsics.checkNotNullParameter(bundle, "<set-?>");
a0Var.d = bundle;
a0Var.k(ih.f0.d);
a0Var.j(i0Var);
a0Var.d();
}
public static final String t(Context context) {
int i2 = sh.f.d;
Intrinsics.checkNotNullParameter("context", "name");
return ih.t.b();
}
public static final Method u(Class cls, String str, Class... clsArr) {
Intrinsics.checkNotNullParameter(cls, "clazz");
Intrinsics.checkNotNullParameter(str, "methodName");
Intrinsics.checkNotNullParameter(clsArr, "parameterTypes");
try {
return cls.getMethod(str, (Class[]) Arrays.copyOf(clsArr, clsArr.length));
} catch (NoSuchMethodException unused) {
return null;
}
}
public static final Method v(String str, String str2, Class... clsArr) {
Intrinsics.checkNotNullParameter(str, "className");
Intrinsics.checkNotNullParameter(str2, "methodName");
Intrinsics.checkNotNullParameter(clsArr, "parameterTypes");
try {
Class<?> cls = Class.forName(str);
Intrinsics.checkNotNullExpressionValue(cls, "clazz");
return u(cls, str2, (Class[]) Arrays.copyOf(clsArr, clsArr.length));
} catch (ClassNotFoundException unused) {
return null;
}
}
public static void w(g0 g0Var) {
kk.e eVar;
bb.r rVar = new bb.r(16);
uk.a aVar = (uk.a) g0Var.f;
if (((ArrayList) rVar.f147e) == null) {
throw new IllegalStateException("setAnnotations cannot be called after build()");
}
rVar.i = aVar;
Iterator it = ((ConcurrentMap) g0Var.c).values().iterator();
while (it.hasNext()) {
for (kk.l lVar : (List) it.next()) {
int ordinal = lVar.d.ordinal();
if (ordinal == 1) {
eVar = kk.e.b;
} else if (ordinal == 2) {
eVar = kk.e.c;
} else {
if (ordinal != 3) {
throw new IllegalStateException("Unknown key status");
}
eVar = kk.e.d;
}
String str = lVar.g;
if (str.startsWith("type.googleapis.com/google.crypto.")) {
str = str.substring(34);
}
String name = lVar.e.name();
ArrayList arrayList = (ArrayList) rVar.f147e;
if (arrayList == null) {
throw new IllegalStateException("addEntry cannot be called after build()");
}
arrayList.add(new b(eVar, lVar.f, str, name));
}
}
kk.l lVar2 = (kk.l) g0Var.d;
if (lVar2 != null) {
int i2 = lVar2.f;
if (((ArrayList) rVar.f147e) == null) {
throw new IllegalStateException("setPrimaryKeyId cannot be called after build()");
}
rVar.f148v = Integer.valueOf(i2);
}
try {
rVar.t();
} catch (GeneralSecurityException e3) {
throw new IllegalStateException(e3);
}
}
public static final Object y(JSONObject jSONObject, String str, String str2) {
Intrinsics.checkNotNullParameter(jSONObject, "jsonObject");
Object opt = jSONObject.opt(str);
if (opt != null && (opt instanceof String)) {
opt = new JSONTokener((String) opt).nextValue();
}
if (opt == null || (opt instanceof JSONObject) || (opt instanceof JSONArray)) {
return opt;
}
if (str2 == null) {
throw new o("Got an unexpected non-JSON object.");
}
JSONObject jSONObject2 = new JSONObject();
jSONObject2.putOpt(str2, opt);
return jSONObject2;
}
public abstract void Q();
public abstract void V(cp.s sVar, d0 d0Var);
public abstract s0 k(o0 o0Var);
public abstract cp.g p();
public abstract ScheduledExecutorService x();
public abstract y1 z();
}