ChatOn v1.35.366360版本的 MD5 值为:cde28447b38d5467efa95e48e7076155
以下内容为反编译后的 h.java 源代码,内容仅作参考
package eb;
import android.app.Application;
import android.content.Context;
import android.util.JsonReader;
import android.util.JsonWriter;
import android.webkit.WebSettings;
import bc.k0;
import bc.u;
import bc.v;
import bc.x;
import com.google.android.gms.internal.consent_sdk.zzcd;
import com.google.android.gms.internal.consent_sdk.zzg;
import com.itextpdf.text.html.HtmlTags;
import com.itextpdf.text.pdf.PdfObject;
import com.itextpdf.text.xml.xmp.XmpWriter;
import com.qonversion.android.sdk.internal.api.ApiHeadersProvider;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.StringReader;
import java.net.HttpURLConnection;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.concurrent.Executor;
import kotlin.jvm.internal.Intrinsics;
import ne.c0;
import u9.b0;
import wj.k;
import zj.q;
public final class h implements bb.b {
public Object A;
public Object f9561d;
public Object f9562e;
public Object f9563i;
public Object f9564n;
public Object f9565v;
public Object f9566w;
public Object f9567y;
public Object f9568z;
public h(int i10) {
if (i10 != 3 && i10 != 4) {
this.f9565v = Collections.emptyMap();
this.A = Collections.emptyList();
}
}
public h(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, k0 k0Var, Object obj8) {
this.f9561d = obj;
this.f9562e = obj2;
this.f9563i = obj3;
this.f9564n = obj4;
this.f9565v = obj5;
this.f9566w = obj6;
this.f9567y = obj7;
this.f9568z = k0Var;
this.A = obj8;
}
public h(k components, gj.f nameResolver, li.k containingDeclaration, gj.j typeTable, gj.k versionRequirementTable, gj.a metadataVersion, yj.e eVar, kotlin.reflect.jvm.internal.impl.serialization.deserialization.e eVar2, List typeParameters) {
Intrinsics.checkNotNullParameter(components, "components");
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
Intrinsics.checkNotNullParameter(containingDeclaration, "containingDeclaration");
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
Intrinsics.checkNotNullParameter(versionRequirementTable, "versionRequirementTable");
Intrinsics.checkNotNullParameter(metadataVersion, "metadataVersion");
Intrinsics.checkNotNullParameter(typeParameters, "typeParameters");
this.f9561d = components;
this.f9562e = nameResolver;
this.f9563i = containingDeclaration;
this.f9564n = typeTable;
this.f9565v = versionRequirementTable;
this.f9566w = metadataVersion;
this.f9567y = eVar;
String str = "Deserializer for \"" + ((li.k) this.f9563i).getName() + '\"';
yj.e eVar3 = (yj.e) this.f9567y;
this.f9568z = new kotlin.reflect.jvm.internal.impl.serialization.deserialization.e(this, eVar2, typeParameters, str, (eVar3 == null || (r2 = eVar3.b()) == null) ? "[container not found]" : "[container not found]");
this.A = new kotlin.reflect.jvm.internal.impl.serialization.deserialization.d(this);
}
public final c0 a() {
String str = ((Integer) this.f9561d) == null ? " pid" : PdfObject.NOTHING;
if (((String) this.f9562e) == null) {
str = str.concat(" processName");
}
if (((Integer) this.f9563i) == null) {
str = androidx.activity.h.j(str, " reasonCode");
}
if (((Integer) this.f9564n) == null) {
str = androidx.activity.h.j(str, " importance");
}
if (((Long) this.f9565v) == null) {
str = androidx.activity.h.j(str, " pss");
}
if (((Long) this.f9566w) == null) {
str = androidx.activity.h.j(str, " rss");
}
if (((Long) this.f9567y) == null) {
str = androidx.activity.h.j(str, " timestamp");
}
if (str.isEmpty()) {
return new c0(((Integer) this.f9561d).intValue(), (String) this.f9562e, ((Integer) this.f9563i).intValue(), ((Integer) this.f9564n).intValue(), ((Long) this.f9565v).longValue(), ((Long) this.f9566w).longValue(), ((Long) this.f9567y).longValue(), (String) this.f9568z, (List) this.A);
}
throw new IllegalStateException("Missing required properties:".concat(str));
}
public final ne.k0 b() {
String str = ((Integer) this.f9561d) == null ? " arch" : PdfObject.NOTHING;
if (((String) this.f9562e) == null) {
str = str.concat(" model");
}
if (((Integer) this.f9563i) == null) {
str = androidx.activity.h.j(str, " cores");
}
if (((Long) this.f9564n) == null) {
str = androidx.activity.h.j(str, " ram");
}
if (((Long) this.f9565v) == null) {
str = androidx.activity.h.j(str, " diskSpace");
}
if (((Boolean) this.f9566w) == null) {
str = androidx.activity.h.j(str, " simulator");
}
if (((Integer) this.f9567y) == null) {
str = androidx.activity.h.j(str, " state");
}
if (((String) this.f9568z) == null) {
str = androidx.activity.h.j(str, " manufacturer");
}
if (((String) this.A) == null) {
str = androidx.activity.h.j(str, " modelClass");
}
if (str.isEmpty()) {
return new ne.k0(((Integer) this.f9561d).intValue(), (String) this.f9562e, ((Integer) this.f9563i).intValue(), ((Long) this.f9564n).longValue(), ((Long) this.f9565v).longValue(), ((Boolean) this.f9566w).booleanValue(), ((Integer) this.f9567y).intValue(), (String) this.f9568z, (String) this.A);
}
throw new IllegalStateException("Missing required properties:".concat(str));
}
public final h c(li.k descriptor, List typeParameterProtos, gj.f nameResolver, gj.j typeTable, gj.k versionRequirementTable, gj.a version) {
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
Intrinsics.checkNotNullParameter(typeParameterProtos, "typeParameterProtos");
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
Intrinsics.checkNotNullParameter(versionRequirementTable, "versionRequirementTable");
Intrinsics.checkNotNullParameter(version, "metadataVersion");
k kVar = (k) this.f9561d;
Intrinsics.checkNotNullParameter(version, "version");
Intrinsics.checkNotNullParameter(version, "version");
int i10 = version.f11324b;
return new h(kVar, nameResolver, descriptor, typeTable, ((i10 != 1 || version.f11325c < 4) && i10 <= 1) ? (gj.k) this.f9565v : versionRequirementTable, version, (yj.e) this.f9567y, (kotlin.reflect.jvm.internal.impl.serialization.deserialization.e) this.f9568z, typeParameterProtos);
}
public final q e() {
return ((k) this.f9561d).f20876a;
}
public final x f(h hVar) {
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://fundingchoicesmessages.google.com/a/consent").openConnection();
httpURLConnection.setRequestProperty("User-Agent", WebSettings.getDefaultUserAgent((Application) this.f9561d));
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(30000);
httpURLConnection.setDoOutput(true);
httpURLConnection.setRequestMethod("POST");
httpURLConnection.setRequestProperty(ApiHeadersProvider.CONTENT_TYPE, "application/json");
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(httpURLConnection.getOutputStream(), XmpWriter.UTF8);
JsonWriter jsonWriter = new JsonWriter(outputStreamWriter);
jsonWriter.beginObject();
String str = (String) hVar.f9561d;
if (str != null) {
jsonWriter.name("admob_app_id");
jsonWriter.value(str);
}
d0.d dVar = (d0.d) hVar.f9562e;
if (dVar != null) {
jsonWriter.name("device_info");
jsonWriter.beginObject();
int i10 = dVar.f8874e;
if (i10 != 1) {
jsonWriter.name("os_type");
int i11 = i10 - 1;
if (i11 == 0) {
jsonWriter.value("UNKNOWN");
} else if (i11 == 1) {
jsonWriter.value("ANDROID");
}
}
String str2 = (String) dVar.f8875i;
if (str2 != null) {
jsonWriter.name("model");
jsonWriter.value(str2);
}
Integer num = (Integer) dVar.f8876n;
if (num != null) {
jsonWriter.name("android_api_level");
jsonWriter.value(num);
}
jsonWriter.endObject();
}
String str3 = (String) hVar.f9563i;
if (str3 != null) {
jsonWriter.name("language_code");
jsonWriter.value(str3);
}
Boolean bool = (Boolean) hVar.f9564n;
if (bool != null) {
jsonWriter.name("tag_for_under_age_of_consent");
jsonWriter.value(bool.booleanValue());
}
Map map = (Map) hVar.f9565v;
if (!map.isEmpty()) {
jsonWriter.name("stored_infos_map");
jsonWriter.beginObject();
for (Map.Entry entry : map.entrySet()) {
jsonWriter.name((String) entry.getKey());
jsonWriter.value((String) entry.getValue());
}
jsonWriter.endObject();
}
h.h hVar2 = (h.h) hVar.f9566w;
if (hVar2 != null) {
jsonWriter.name("screen_info");
jsonWriter.beginObject();
Integer num2 = (Integer) hVar2.f11394a;
if (num2 != null) {
jsonWriter.name(HtmlTags.WIDTH);
jsonWriter.value(num2);
}
Integer num3 = (Integer) hVar2.f11395b;
if (num3 != null) {
jsonWriter.name(HtmlTags.HEIGHT);
jsonWriter.value(num3);
}
Double d10 = (Double) hVar2.f11396c;
if (d10 != null) {
jsonWriter.name("density");
jsonWriter.value(d10);
}
List<v> list = (List) hVar2.f11397d;
if (!list.isEmpty()) {
jsonWriter.name("screen_insets");
jsonWriter.beginArray();
for (v vVar : list) {
jsonWriter.beginObject();
Integer num4 = vVar.f2000a;
if (num4 != null) {
jsonWriter.name(HtmlTags.ALIGN_TOP);
jsonWriter.value(num4);
}
Integer num5 = vVar.f2001b;
if (num5 != null) {
jsonWriter.name(HtmlTags.ALIGN_LEFT);
jsonWriter.value(num5);
}
Integer num6 = vVar.f2002c;
if (num6 != null) {
jsonWriter.name(HtmlTags.ALIGN_RIGHT);
jsonWriter.value(num6);
}
Integer num7 = vVar.f2003d;
if (num7 != null) {
jsonWriter.name(HtmlTags.ALIGN_BOTTOM);
jsonWriter.value(num7);
}
jsonWriter.endObject();
}
jsonWriter.endArray();
}
jsonWriter.endObject();
}
u uVar = (u) hVar.f9567y;
if (uVar != null) {
jsonWriter.name("app_info");
jsonWriter.beginObject();
String str4 = uVar.f1997a;
if (str4 != null) {
jsonWriter.name("package_name");
jsonWriter.value(str4);
}
String str5 = uVar.f1998b;
if (str5 != null) {
jsonWriter.name("publisher_display_name");
jsonWriter.value(str5);
}
String str6 = uVar.f1999c;
if (str6 != null) {
jsonWriter.name("version");
jsonWriter.value(str6);
}
jsonWriter.endObject();
}
b0 b0Var = (b0) hVar.f9568z;
if (b0Var != null) {
jsonWriter.name("sdk_info");
jsonWriter.beginObject();
String str7 = b0Var.f19925e;
if (str7 != null) {
jsonWriter.name("version");
jsonWriter.value(str7);
}
jsonWriter.endObject();
}
List<zzcd> list2 = (List) hVar.A;
if (!list2.isEmpty()) {
jsonWriter.name("debug_params");
jsonWriter.beginArray();
for (zzcd zzcdVar : list2) {
int ordinal = zzcdVar.ordinal();
if (ordinal == 0) {
jsonWriter.value("DEBUG_PARAM_UNKNOWN");
} else if (ordinal == 1) {
jsonWriter.value("ALWAYS_SHOW");
} else if (ordinal == 2) {
jsonWriter.value("GEO_OVERRIDE_EEA");
} else if (ordinal == 3) {
jsonWriter.value("GEO_OVERRIDE_NON_EEA");
} else if (ordinal == 4) {
jsonWriter.value("PREVIEWING_DEBUG_MESSAGES");
}
}
jsonWriter.endArray();
}
jsonWriter.endObject();
jsonWriter.close();
outputStreamWriter.close();
int responseCode = httpURLConnection.getResponseCode();
if (responseCode != 200) {
throw new IOException("Http error code - " + responseCode + ".\n" + new Scanner(httpURLConnection.getErrorStream()).useDelimiter("\\A").next());
}
String headerField = httpURLConnection.getHeaderField("x-ump-using-header");
if (headerField != null) {
x h10 = x.h(new JsonReader(new StringReader(headerField)));
h10.f2006a = new Scanner(httpURLConnection.getInputStream()).useDelimiter("\\A").next();
return h10;
}
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream(), XmpWriter.UTF8));
bufferedReader.readLine();
JsonReader jsonReader = new JsonReader(bufferedReader);
x h11 = x.h(jsonReader);
jsonReader.close();
bufferedReader.close();
return h11;
} catch (SocketTimeoutException e10) {
throw new zzg(4, "The server timed out.", e10);
} catch (IOException e11) {
throw new zzg(2, "Error making request.", e11);
}
}
@Override
public final Object get() {
return new g((Context) ((ih.a) this.f9561d).get(), (ab.f) ((ih.a) this.f9562e).get(), (fb.d) ((ih.a) this.f9563i).get(), (j) ((ih.a) this.f9564n).get(), (Executor) ((ih.a) this.f9565v).get(), (gb.b) ((ih.a) this.f9566w).get(), (hb.a) ((ih.a) this.f9567y).get(), (hb.a) ((ih.a) this.f9568z).get(), (fb.c) ((ih.a) this.A).get());
}
}