ChatOn v1.35.366360版本的 MD5 值为:cde28447b38d5467efa95e48e7076155
以下内容为反编译后的 h.java 源代码,内容仅作参考
package a0;
import android.app.Application;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import androidx.fragment.app.b1;
import androidx.fragment.app.u1;
import com.aiby.feature_pdf_summary.presentation.UploadPdfBottomSheetFragment;
import com.google.firebase.crashlytics.CrashlyticsRegistrar;
import com.google.firebase.crashlytics.internal.common.DeliveryMechanism;
import com.google.firebase.encoders.EncodingException;
import com.google.firebase.sessions.api.SessionSubscriber$Name;
import com.itextpdf.text.pdf.PdfObject;
import com.qonversion.android.sdk.internal.Constants;
import com.qonversion.android.sdk.internal.api.ApiHeadersProvider;
import ic.f5;
import j.s3;
import j.v3;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.lang.Thread;
import java.net.ConnectException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Charsets;
import retrofit2.Converter;
import vk.r0;
public final class h implements b1, h0.e, fd.g, s3, fd.f, b.b, Converter, lc.e, gb.a, fb.l, m0.d, bf.a, lc.a, lc.f, wa.c, fe.e {
public final int f9d;
public final Object f10e;
public h(int i10, Object obj) {
this.f9d = i10;
this.f10e = obj;
}
@Override
public void a(String p02, Bundle p12) {
Function2 tmp0 = (Function2) this.f10e;
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
Intrinsics.checkNotNullParameter(p02, "p0");
Intrinsics.checkNotNullParameter(p12, "p1");
tmp0.invoke(p02, p12);
}
@Override
public Object apply(Object obj) {
URL url;
xa.c cVar;
int i10 = this.f9d;
Object obj2 = this.f10e;
switch (i10) {
case 11:
xa.d dVar = (xa.d) obj2;
xa.b bVar = (xa.b) obj;
dVar.getClass();
URL url2 = bVar.f21066a;
String concat = "TRuntime.".concat("CctTransportBackend");
if (Log.isLoggable(concat, 4)) {
Log.i(concat, String.format("Making request to: %s", url2));
}
HttpURLConnection httpURLConnection = (HttpURLConnection) bVar.f21066a.openConnection();
httpURLConnection.setConnectTimeout(30000);
httpURLConnection.setReadTimeout(dVar.f21078g);
httpURLConnection.setDoOutput(true);
httpURLConnection.setInstanceFollowRedirects(false);
httpURLConnection.setRequestMethod("POST");
httpURLConnection.setRequestProperty("User-Agent", String.format("datatransport/%s android/", "3.1.9"));
httpURLConnection.setRequestProperty("Content-Encoding", "gzip");
httpURLConnection.setRequestProperty(ApiHeadersProvider.CONTENT_TYPE, "application/json");
httpURLConnection.setRequestProperty("Accept-Encoding", "gzip");
String str = bVar.f21068c;
if (str != null) {
httpURLConnection.setRequestProperty("X-Goog-Api-Key", str);
}
try {
try {
try {
OutputStream outputStream = httpURLConnection.getOutputStream();
try {
GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream);
dVar.f21072a.p(bVar.f21067b, new BufferedWriter(new OutputStreamWriter(gZIPOutputStream)));
gZIPOutputStream.close();
if (outputStream != null) {
outputStream.close();
}
int responseCode = httpURLConnection.getResponseCode();
Integer valueOf = Integer.valueOf(responseCode);
String concat2 = "TRuntime.".concat("CctTransportBackend");
if (Log.isLoggable(concat2, 4)) {
Log.i(concat2, String.format("Status Code: %d", valueOf));
}
bc.c0.c("CctTransportBackend", "Content-Type: %s", httpURLConnection.getHeaderField(ApiHeadersProvider.CONTENT_TYPE));
bc.c0.c("CctTransportBackend", "Content-Encoding: %s", httpURLConnection.getHeaderField("Content-Encoding"));
if (responseCode == 302 || responseCode == 301 || responseCode == 307) {
cVar = new xa.c(responseCode, new URL(httpURLConnection.getHeaderField("Location")), 0L);
} else if (responseCode != 200) {
return new xa.c(responseCode, null, 0L);
} else {
InputStream inputStream = httpURLConnection.getInputStream();
try {
InputStream gZIPInputStream = "gzip".equals(httpURLConnection.getHeaderField("Content-Encoding")) ? new GZIPInputStream(inputStream) : inputStream;
cVar = new xa.c(responseCode, null, ya.n.a(new BufferedReader(new InputStreamReader(gZIPInputStream))).f21548a);
if (gZIPInputStream != null) {
gZIPInputStream.close();
}
if (inputStream != null) {
inputStream.close();
}
} catch (Throwable th2) {
if (inputStream != null) {
try {
inputStream.close();
} catch (Throwable th3) {
th2.addSuppressed(th3);
}
}
throw th2;
}
}
return cVar;
} catch (Throwable th4) {
if (outputStream != null) {
try {
outputStream.close();
} catch (Throwable th5) {
th4.addSuppressed(th5);
}
}
throw th4;
}
} catch (ConnectException | UnknownHostException e10) {
e = e10;
url = null;
bc.c0.d("CctTransportBackend", "Couldn't open connection, returning with 500", e);
return new xa.c(Constants.INTERNAL_SERVER_ERROR_MIN, url, 0L);
}
} catch (ConnectException | UnknownHostException e11) {
e = e11;
url = null;
bc.c0.d("CctTransportBackend", "Couldn't open connection, returning with 500", e);
return new xa.c(Constants.INTERNAL_SERVER_ERROR_MIN, url, 0L);
}
} catch (EncodingException | IOException e12) {
bc.c0.d("CctTransportBackend", "Couldn't encode request, returning with 400", e12);
return new xa.c(400, null, 0L);
}
case 18:
Map map = (Map) obj2;
Cursor cursor = (Cursor) obj;
wa.b bVar2 = fb.n.f10156w;
while (cursor.moveToNext()) {
long j10 = cursor.getLong(0);
Set set = (Set) map.get(Long.valueOf(j10));
if (set == null) {
set = new HashSet();
map.put(Long.valueOf(j10), set);
}
set.add(new fb.m(cursor.getString(1), cursor.getString(2)));
}
return null;
default:
((nf.j) obj2).getClass();
String o10 = nf.u.f17262b.o((nf.t) obj);
Intrinsics.checkNotNullExpressionValue(o10, "SessionEvents.SESSION_EVENT_ENCODER.encode(value)");
Log.d("EventGDTLogger", "Session Event: " + o10);
byte[] bytes = o10.getBytes(Charsets.UTF_8);
Intrinsics.checkNotNullExpressionValue(bytes, "this as java.lang.String).getBytes(charset)");
return bytes;
}
}
@Override
public Object b(lc.g gVar) {
boolean z8;
int i10 = this.f9d;
Object obj = this.f10e;
switch (i10) {
case 22:
((pe.b) obj).getClass();
if (gVar.k()) {
le.a aVar = (le.a) gVar.h();
ie.e eVar = ie.e.f12812a;
eVar.c("Crashlytics report successfully enqueued to DataTransport: " + aVar.f16363b);
File file = aVar.f16364c;
if (file.delete()) {
eVar.c("Deleted report file: " + file.getPath());
} else {
eVar.f("Crashlytics could not delete report file: " + file.getPath(), null);
}
z8 = true;
} else {
Log.w("FirebaseCrashlytics", "Crashlytics report could not be enqueued to DataTransport", gVar.g());
z8 = false;
}
return Boolean.valueOf(z8);
default:
ExecutorService executorService = le.x.f16446a;
((CountDownLatch) obj).countDown();
return null;
}
}
@Override
public void c(bf.c cVar) {
int i10 = this.f9d;
Object obj = this.f10e;
switch (i10) {
case 20:
ie.b bVar = (ie.b) obj;
bVar.getClass();
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", "Crashlytics native component now available.", null);
}
bVar.f12807b.set((ie.a) cVar.get());
return;
default:
ie.c cVar2 = (ie.c) obj;
h.h hVar = ((p000if.f) ((lf.a) cVar.get())).a().f12823j;
((Set) hVar.f11397d).add(cVar2);
lc.g b2 = ((jf.e) hVar.f11394a).b();
b2.d((Executor) hVar.f11396c, new db.a(hVar, b2, cVar2, 7));
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", "Registering RemoteConfig Rollouts subscriber", null);
return;
}
return;
}
}
@Override
public Object convert(Object obj) {
return com.aiby.lib_network.network.converter.a.a((Converter) this.f10e, (r0) obj);
}
@Override
public void d(Object obj) {
UploadPdfBottomSheetFragment.u((UploadPdfBottomSheetFragment) this.f10e, (Uri) obj);
}
@Override
public Object e(v3 v3Var) {
String str;
String str2;
String str3;
int i10;
?? r42;
String str4;
String packageName;
String c10;
String num;
String str5;
String str6;
String str7;
String str8;
String str9;
String str10;
bc.s sVar;
boolean z8;
String str11;
boolean z10;
String str12;
boolean exists;
Resources resources;
long longVersionCode;
String processName;
int i11 = this.f9d;
Object obj = this.f10e;
switch (i11) {
case 0:
case 1:
return obj;
default:
int i12 = CrashlyticsRegistrar.f8257a;
((CrashlyticsRegistrar) obj).getClass();
yd.h hVar = (yd.h) v3Var.a(yd.h.class);
bf.b k10 = v3Var.k(ie.a.class);
bf.b k11 = v3Var.k(ce.b.class);
cf.d dVar = (cf.d) v3Var.a(cf.d.class);
bf.b k12 = v3Var.k(lf.a.class);
hVar.a();
Context context = hVar.f21597a;
String packageName2 = context.getPackageName();
Log.i("FirebaseCrashlytics", "Initializing Firebase Crashlytics 18.6.0 for " + packageName2, null);
?? obj2 = new Object();
obj2.f18219d = context.getFilesDir();
if (Build.VERSION.SDK_INT >= 28) {
StringBuilder sb2 = new StringBuilder(".com.google.firebase.crashlytics.files.v2");
sb2.append(File.pathSeparator);
processName = Application.getProcessName();
sb2.append(processName.replaceAll("[^a-zA-Z0-9.]", Constants.USER_ID_SEPARATOR));
str = sb2.toString();
} else {
str = ".com.google.firebase.crashlytics.files.v1";
}
File file = new File((File) obj2.f18219d, str);
pe.b.q(file);
obj2.f18220e = file;
File file2 = new File((File) obj2.f18220e, "open-sessions");
pe.b.q(file2);
obj2.f18221i = file2;
File file3 = new File((File) obj2.f18220e, "reports");
pe.b.q(file3);
obj2.f18222n = file3;
File file4 = new File((File) obj2.f18220e, "priority-reports");
pe.b.q(file4);
obj2.f18223v = file4;
File file5 = new File((File) obj2.f18220e, "native-reports");
pe.b.q(file5);
obj2.f18224w = file5;
le.r rVar = new le.r(hVar);
le.u uVar = new le.u(context, packageName2, dVar, rVar);
ie.b bVar = new ie.b(k10);
he.b bVar2 = new he.b(k11);
ExecutorService g10 = f5.g("Crashlytics Exception Handler");
le.i subscriber = new le.i(rVar, obj2);
com.google.firebase.sessions.api.a aVar = com.google.firebase.sessions.api.a.f8385a;
Intrinsics.checkNotNullParameter(subscriber, "subscriber");
SessionSubscriber$Name sessionSubscriber$Name = SessionSubscriber$Name.f8382d;
com.google.firebase.sessions.api.a aVar2 = com.google.firebase.sessions.api.a.f8385a;
of.a a10 = com.google.firebase.sessions.api.a.a(sessionSubscriber$Name);
if (a10.f17556b != null) {
Log.d("SessionsDependencies", "Subscriber " + sessionSubscriber$Name + " already registered.");
str2 = null;
} else {
a10.f17556b = subscriber;
Log.d("SessionsDependencies", "Subscriber " + sessionSubscriber$Name + " registered.");
str2 = null;
((kotlinx.coroutines.sync.b) a10.f17555a).e(null);
}
String str13 = str2;
le.o oVar = new le.o(hVar, uVar, bVar, rVar, new he.a(bVar2), new he.a(bVar2), obj2, g10, subscriber, new hf.c(24, k12));
hVar.a();
String str14 = hVar.f21599c.f21613b;
int d10 = le.f.d(context, "com.google.firebase.crashlytics.mapping_file_id", "string");
String str15 = "com.crashlytics.android.build_id";
if (d10 == 0) {
d10 = le.f.d(context, "com.crashlytics.android.build_id", "string");
}
String string = d10 != 0 ? context.getResources().getString(d10) : str13;
ArrayList arrayList = new ArrayList();
int d11 = le.f.d(context, "com.google.firebase.crashlytics.build_ids_lib", "array");
int d12 = le.f.d(context, "com.google.firebase.crashlytics.build_ids_arch", "array");
int d13 = le.f.d(context, "com.google.firebase.crashlytics.build_ids_build_id", "array");
if (d11 == 0 || d12 == 0 || d13 == 0) {
str3 = "com.crashlytics.android.build_id";
String format = String.format("Could not find resources: %d %d %d", Integer.valueOf(d11), Integer.valueOf(d12), Integer.valueOf(d13));
i10 = 3;
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
r42 = 0;
Log.d("FirebaseCrashlytics", format, null);
}
r42 = 0;
} else {
String[] stringArray = context.getResources().getStringArray(d11);
String[] stringArray2 = context.getResources().getStringArray(d12);
String[] stringArray3 = context.getResources().getStringArray(d13);
if (stringArray.length == stringArray3.length && stringArray2.length == stringArray3.length) {
int i13 = 0;
while (i13 < stringArray3.length) {
arrayList.add(new le.d(stringArray[i13], stringArray2[i13], stringArray3[i13]));
i13++;
str15 = str15;
str13 = null;
}
str3 = str15;
r42 = str13;
i10 = 3;
} else {
str3 = "com.crashlytics.android.build_id";
String format2 = String.format("Lengths did not match: %d %d %d", Integer.valueOf(stringArray.length), Integer.valueOf(stringArray2.length), Integer.valueOf(stringArray3.length));
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", format2, null);
}
i10 = 3;
r42 = 0;
}
}
String k13 = ec.k0.k("Mapping file ID is: ", string);
if (Log.isLoggable("FirebaseCrashlytics", i10)) {
Log.d("FirebaseCrashlytics", k13, r42);
}
Iterator it = arrayList.iterator();
while (it.hasNext()) {
le.d dVar2 = (le.d) it.next();
String format3 = String.format("Build id for %s on %s: %s", dVar2.f16367a, dVar2.f16368b, dVar2.f16369c);
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", format3, null);
}
}
he.c cVar = new he.c(context);
try {
packageName = context.getPackageName();
c10 = uVar.c();
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName, 0);
if (Build.VERSION.SDK_INT >= 28) {
longVersionCode = packageInfo.getLongVersionCode();
num = Long.toString(longVersionCode);
} else {
num = Integer.toString(packageInfo.versionCode);
}
str5 = num;
String str16 = packageInfo.versionName;
if (str16 == null) {
str16 = "0.0";
}
str6 = str16;
str7 = str3;
} catch (PackageManager.NameNotFoundException e10) {
e = e10;
str4 = "FirebaseCrashlytics";
}
try {
bc.s sVar2 = new bc.s(str14, string, arrayList, c10, packageName, str5, str6, cVar);
ie.e eVar = ie.e.f12812a;
eVar.e("Installer package name is: " + c10);
ExecutorService g11 = f5.g("com.google.firebase.crashlytics.startup");
hb.d dVar3 = new hb.d(4);
String c11 = uVar.c();
fb.g gVar = new fb.g(4);
re.b bVar3 = new re.b(gVar);
re.b bVar4 = new re.b((pe.b) obj2);
Locale locale = Locale.US;
String format4 = String.format(locale, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str14);
?? obj3 = new Object();
if (format4 != null) {
obj3.f12811i = eVar;
obj3.f12810e = dVar3;
obj3.f12809d = format4;
String str17 = Build.MANUFACTURER;
String str18 = le.u.f16437h;
String format5 = String.format(locale, "%s/%s", str17.replaceAll(str18, PdfObject.NOTHING), Build.MODEL.replaceAll(str18, PdfObject.NOTHING));
String replaceAll = Build.VERSION.INCREMENTAL.replaceAll(str18, PdfObject.NOTHING);
String replaceAll2 = Build.VERSION.RELEASE.replaceAll(str18, PdfObject.NOTHING);
int d14 = le.f.d(context, "com.google.firebase.crashlytics.mapping_file_id", "string");
if (d14 == 0) {
d14 = le.f.d(context, str7, "string");
}
if (d14 != 0) {
str10 = context.getResources().getString(d14);
str8 = str6;
str9 = str5;
} else {
str8 = str6;
str9 = str5;
str10 = null;
}
String[] strArr = {str10, str14, str8, str9};
ArrayList arrayList2 = new ArrayList();
int i14 = 0;
while (i14 < 4) {
String str19 = strArr[i14];
String[] strArr2 = strArr;
if (str19 != null) {
arrayList2.add(str19.replace("-", PdfObject.NOTHING).toLowerCase(Locale.US));
}
i14++;
strArr = strArr2;
}
Collections.sort(arrayList2);
StringBuilder sb3 = new StringBuilder();
Iterator it2 = arrayList2.iterator();
while (it2.hasNext()) {
sb3.append((String) it2.next());
}
String sb4 = sb3.toString();
com.google.firebase.crashlytics.internal.settings.a aVar3 = new com.google.firebase.crashlytics.internal.settings.a(context, new h0(str14, format5, replaceAll, replaceAll2, uVar, sb4.length() > 0 ? le.f.h(sb4) : null, str8, str9, (c11 != null ? DeliveryMechanism.APP_STORE : DeliveryMechanism.DEVELOPER).f8264d), gVar, bVar3, bVar4, obj3, rVar);
aVar3.c(g11).e(g11, new Object());
h.h hVar2 = oVar.f16409m;
pe.b bVar5 = oVar.f16405i;
Context context2 = oVar.f16397a;
if (context2 != null && (resources = context2.getResources()) != null) {
int d15 = le.f.d(context2, "com.crashlytics.RequireBuildId", "bool");
if (d15 > 0) {
z8 = resources.getBoolean(d15);
} else {
int d16 = le.f.d(context2, "com.crashlytics.RequireBuildId", "string");
if (d16 > 0) {
z8 = Boolean.parseBoolean(context2.getString(d16));
}
}
sVar = sVar2;
String str20 = (String) sVar.f1980e;
if (z8) {
str11 = "FirebaseCrashlytics";
if (Log.isLoggable(str11, 2)) {
Log.v(str11, "Configured not to require a build ID.", null);
}
} else {
str11 = "FirebaseCrashlytics";
if (TextUtils.isEmpty(str20)) {
Log.e(str11, ".");
Log.e(str11, ". | | ");
Log.e(str11, ". | |");
Log.e(str11, ". | |");
Log.e(str11, ". \\ | | /");
Log.e(str11, ". \\ /");
Log.e(str11, ". \\ /");
Log.e(str11, ". \\/");
Log.e(str11, ".");
Log.e(str11, "The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin");
Log.e(str11, ".");
Log.e(str11, ". /\\");
Log.e(str11, ". / \\");
Log.e(str11, ". / \\");
Log.e(str11, ". / | | \\");
Log.e(str11, ". | |");
Log.e(str11, ". | |");
Log.e(str11, ". | |");
Log.e(str11, ".");
throw new IllegalStateException("The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin");
}
}
new le.e(oVar.f16404h);
String str21 = le.e.f16371b;
oVar.f16402f = new he.c("crash_marker", bVar5, 5);
oVar.f16401e = new he.c("initialization_marker", bVar5, 5);
v3 v3Var2 = new v3(str21, bVar5, hVar2);
me.e eVar2 = new me.e(bVar5);
d0.d dVar4 = new d0.d(new se.a[]{new o9.m(10, 4)});
hf.c cVar2 = oVar.f16412p;
cVar2.getClass();
((fe.o) ((bf.b) cVar2.f11800e)).a(new h(21, new ie.c(v3Var2)));
ExecutorService executorService = g11;
str12 = str11;
oVar.f16403g = new com.google.firebase.crashlytics.internal.common.a(oVar.f16397a, oVar.f16409m, oVar.f16404h, oVar.f16398b, oVar.f16405i, oVar.f16402f, sVar, v3Var2, eVar2, pe.b.j(oVar.f16397a, oVar.f16404h, oVar.f16405i, sVar, eVar2, v3Var2, dVar4, aVar3, oVar.f16399c, oVar.f16410n), oVar.f16411o, oVar.f16407k, oVar.f16410n);
he.c cVar3 = oVar.f16401e;
pe.b bVar6 = (pe.b) cVar3.f11792i;
bVar6.getClass();
exists = new File((File) bVar6.f18220e, (String) cVar3.f11791e).exists();
Boolean.TRUE.equals((Boolean) le.x.a(hVar2.t(new le.n(oVar, 1))));
com.google.firebase.crashlytics.internal.common.a aVar4 = oVar.f16403g;
Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
aVar4.getClass();
aVar4.f8270e.t(new h7.d(aVar4, 23, str21));
com.google.firebase.crashlytics.internal.settings.a aVar5 = aVar3;
le.q qVar = new le.q(new n9.b(24, aVar4), aVar5, defaultUncaughtExceptionHandler, aVar4.f8275j);
aVar4.f8279n = qVar;
Thread.setDefaultUncaughtExceptionHandler(qVar);
if (exists) {
if (context2.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE") == 0) {
NetworkInfo activeNetworkInfo = ((ConnectivityManager) context2.getSystemService("connectivity")).getActiveNetworkInfo();
if (activeNetworkInfo != null) {
if (activeNetworkInfo.isConnectedOrConnecting()) {
}
}
}
String str22 = str12;
try {
if (Log.isLoggable(str22, 3)) {
Log.d(str22, "Crashlytics did not finish previous background initialization. Initializing synchronously.", null);
}
oVar.b(aVar5);
} catch (Exception e11) {
e = e11;
Log.e(str22, "Crashlytics was not started due to an exception during initialization", e);
oVar.f16403g = null;
z10 = false;
lc.j.c(executorService, new nb.i(z10, oVar, aVar5, 1));
return new he.d(oVar);
}
z10 = false;
lc.j.c(executorService, new nb.i(z10, oVar, aVar5, 1));
return new he.d(oVar);
}
if (Log.isLoggable(str12, 3)) {
Log.d(str12, "Successfully configured exception handler.", null);
}
z10 = true;
lc.j.c(executorService, new nb.i(z10, oVar, aVar5, 1));
return new he.d(oVar);
}
sVar = sVar2;
z8 = true;
String str202 = (String) sVar.f1980e;
if (z8) {
}
new le.e(oVar.f16404h);
String str212 = le.e.f16371b;
oVar.f16402f = new he.c("crash_marker", bVar5, 5);
oVar.f16401e = new he.c("initialization_marker", bVar5, 5);
v3 v3Var22 = new v3(str212, bVar5, hVar2);
me.e eVar22 = new me.e(bVar5);
d0.d dVar42 = new d0.d(new se.a[]{new o9.m(10, 4)});
hf.c cVar22 = oVar.f16412p;
cVar22.getClass();
((fe.o) ((bf.b) cVar22.f11800e)).a(new h(21, new ie.c(v3Var22)));
ExecutorService executorService2 = g11;
str12 = str11;
oVar.f16403g = new com.google.firebase.crashlytics.internal.common.a(oVar.f16397a, oVar.f16409m, oVar.f16404h, oVar.f16398b, oVar.f16405i, oVar.f16402f, sVar, v3Var22, eVar22, pe.b.j(oVar.f16397a, oVar.f16404h, oVar.f16405i, sVar, eVar22, v3Var22, dVar42, aVar3, oVar.f16399c, oVar.f16410n), oVar.f16411o, oVar.f16407k, oVar.f16410n);
he.c cVar32 = oVar.f16401e;
pe.b bVar62 = (pe.b) cVar32.f11792i;
bVar62.getClass();
exists = new File((File) bVar62.f18220e, (String) cVar32.f11791e).exists();
Boolean.TRUE.equals((Boolean) le.x.a(hVar2.t(new le.n(oVar, 1))));
com.google.firebase.crashlytics.internal.common.a aVar42 = oVar.f16403g;
Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler2 = Thread.getDefaultUncaughtExceptionHandler();
aVar42.getClass();
aVar42.f8270e.t(new h7.d(aVar42, 23, str212));
com.google.firebase.crashlytics.internal.settings.a aVar52 = aVar3;
le.q qVar2 = new le.q(new n9.b(24, aVar42), aVar52, defaultUncaughtExceptionHandler2, aVar42.f8275j);
aVar42.f8279n = qVar2;
Thread.setDefaultUncaughtExceptionHandler(qVar2);
if (exists) {
}
if (Log.isLoggable(str12, 3)) {
}
z10 = true;
lc.j.c(executorService2, new nb.i(z10, oVar, aVar52, 1));
return new he.d(oVar);
}
throw new IllegalArgumentException("url must not be null.");
} catch (PackageManager.NameNotFoundException e12) {
e = e12;
str4 = "FirebaseCrashlytics";
Log.e(str4, "Error retrieving app package info.", e);
return null;
}
}
}
@Override
public Object execute() {
int i10 = this.f9d;
Object obj = this.f10e;
switch (i10) {
case 12:
fb.n nVar = (fb.n) ((fb.d) obj);
return Integer.valueOf(((Integer) nVar.f(new fb.h(nVar, ((hb.e) nVar.f10158e).a() - nVar.f10160n.f10134d))).intValue());
case 13:
fb.n nVar2 = (fb.n) ((eb.g) obj).f9560i;
nVar2.getClass();
nVar2.f(new fb.j(nVar2, 0));
return null;
case 14:
fb.n nVar3 = (fb.n) ((fb.c) obj);
nVar3.getClass();
int i11 = cb.a.f2281e;
h.h hVar = new h.h(7);
HashMap hashMap = new HashMap();
SQLiteDatabase b2 = nVar3.b();
b2.beginTransaction();
try {
cb.a aVar = (cb.a) fb.n.c0(b2.rawQuery("SELECT log_source, reason, events_dropped_count FROM log_event_dropped", new String[0]), new db.a(nVar3, hashMap, hVar, 4));
b2.setTransactionSuccessful();
return aVar;
} finally {
b2.endTransaction();
}
default:
eb.i iVar = (eb.i) obj;
fb.n nVar4 = (fb.n) iVar.f9570b;
nVar4.getClass();
for (za.i iVar2 : (Iterable) nVar4.f(new v2.o(9))) {
((eb.c) iVar.f9571c).a(iVar2, 1, false);
}
return null;
}
}
@Override
public void f() {
u1 this$0 = (u1) this.f10e;
Intrinsics.checkNotNullParameter(this$0, "this$0");
this$0.a();
}
@Override
public lc.g l(Object obj) {
jf.g gVar = (jf.g) obj;
int[] iArr = jf.j.f13470j;
return lc.j.e((jf.i) this.f10e);
}
@Override
public void n(Object obj) {
Function1 tmp0 = (Function1) this.f10e;
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
tmp0.invoke(obj);
}
}