package com.google.android.gms.internal.ads;

import android.os.Bundle;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import java.util.List;
import org.json.JSONException;

/* JADX INFO: loaded from: classes2.dex */
public final class oe0 extends n7.k2 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f15040a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f15041b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final List f15042c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f15043d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final String f15044e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final Bundle f15045f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final double f15046g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final int f15047h;

    @Nullable
    private final String zzb;

    @Nullable
    private final String zzd;

    @Nullable
    private final zw0 zzh;

    /* JADX WARN: Removed duplicated region for block: B:42:0x00b1  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public oe0(@Nullable wa1 wa1Var, String str, zw0 zw0Var, @Nullable za1 za1Var, String str2) {
        String str3;
        Bundle bundle;
        super("com.google.android.gms.ads.internal.client.IResponseInfo");
        String string = null;
        this.zzb = wa1Var == null ? null : wa1Var.Y;
        this.f15041b = str2;
        this.zzd = za1Var == null ? null : za1Var.f19181b;
        if (("com.google.android.gms.ads.mediation.customevent.CustomEventAdapter".equals(str) || "com.google.ads.mediation.customevent.CustomEventAdapter".equals(str)) && wa1Var != null) {
            try {
                string = wa1Var.f18009t.getString("class_name");
            } catch (JSONException unused) {
            }
        }
        this.f15040a = string != null ? string : str;
        this.f15042c = zw0Var.f19406a;
        this.zzh = zw0Var;
        this.f15046g = wa1Var == null ? 0.0d : wa1Var.f18006r0;
        this.f15047h = wa1Var == null ? 2 : wa1Var.z0;
        m7.n.C.f30472k.getClass();
        this.f15043d = System.currentTimeMillis() / 1000;
        tn tnVar = ao.f9183z7;
        n7.y yVar = n7.y.f31093e;
        if (!((Boolean) yVar.f31096c.b(tnVar)).booleanValue() || za1Var == null) {
            this.f15045f = new Bundle();
        } else {
            this.f15045f = za1Var.f19189j;
        }
        tn tnVar2 = ao.A7;
        yn ynVar = yVar.f31096c;
        if (((Boolean) ynVar.b(tnVar2)).booleanValue() && wa1Var != null && (bundle = this.f15045f) != null) {
            bundle.putAll(wa1Var.f18018x0);
        }
        if (!((Boolean) ynVar.b(ao.f9137wa)).booleanValue() || za1Var == null) {
            str3 = "";
        } else {
            str3 = za1Var.f19188i;
            if (TextUtils.isEmpty(str3)) {
            }
        }
        this.f15044e = str3;
    }

    @Override // n7.m2
    public final String zze() {
        return this.f15040a;
    }

    @Override // n7.k2, n7.m2
    @Nullable
    public final String zzf() {
        return this.zzb;
    }

    @Override // n7.m2
    public final List zzg() {
        return this.f15042c;
    }

    @Override // n7.k2, n7.m2
    @Nullable
    public final n7.h4 zzh() {
        zw0 zw0Var = this.zzh;
        if (zw0Var != null) {
            return zw0Var.zzg();
        }
        return null;
    }

    @Override // n7.m2
    public final Bundle zzi() {
        return this.f15045f;
    }

    @Override // n7.m2
    public final String zzj() {
        return this.f15041b;
    }

    @Nullable
    public final String zzk() {
        return this.zzd;
    }
}
