package X2;

import L1.F;
import L1.InterfaceC0145w;
import android.content.Context;
import android.os.Looper;
import com.google.android.gms.internal.measurement.C0357c3;
import com.google.android.gms.internal.measurement.C0367e3;
import com.google.android.gms.internal.measurement.C0397k3;
import com.google.android.gms.internal.measurement.C3;
import com.google.android.gms.internal.measurement.M3;
import com.google.android.gms.internal.measurement.O3;
import com.google.android.gms.internal.measurement.m4;
import io.flutter.Build;
import io.flutter.embedding.android.AndroidTouchProcessor;
import io.flutter.plugin.editing.FlutterTextUtils;
import io.sentry.flutter.SentryFlutterPluginKt;
import java.security.Provider;
import java.util.List;
import javax.crypto.KeyAgreement;
import javax.crypto.Mac;

/* JADX INFO: loaded from: classes.dex */
public final class e implements A1.c, A1.e, r1.h, G2.j, InterfaceC0145w {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ int f3293k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public static final /* synthetic */ e f3280l = new e(7);

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final /* synthetic */ e f3281m = new e(8);

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final /* synthetic */ e f3282n = new e(9);

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public static final /* synthetic */ e f3283o = new e(10);
    public static final /* synthetic */ e p = new e(11);
    public static final /* synthetic */ e q = new e(12);

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public static final /* synthetic */ e f3284r = new e(13);

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public static final /* synthetic */ e f3285s = new e(14);

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public static final /* synthetic */ e f3286t = new e(15);

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public static final /* synthetic */ e f3287u = new e(16);

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public static final /* synthetic */ e f3288v = new e(17);

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public static final /* synthetic */ e f3289w = new e(18);

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public static final /* synthetic */ e f3290x = new e(19);

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public static final /* synthetic */ e f3291y = new e(20);

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public static final /* synthetic */ e f3292z = new e(21);

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public static final /* synthetic */ e f3272A = new e(22);

    /* JADX INFO: renamed from: B, reason: collision with root package name */
    public static final /* synthetic */ e f3273B = new e(23);

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public static final /* synthetic */ e f3274C = new e(24);

    /* JADX INFO: renamed from: D, reason: collision with root package name */
    public static final /* synthetic */ e f3275D = new e(25);

    /* JADX INFO: renamed from: E, reason: collision with root package name */
    public static final /* synthetic */ e f3276E = new e(26);

    /* JADX INFO: renamed from: F, reason: collision with root package name */
    public static final /* synthetic */ e f3277F = new e(27);

    /* JADX INFO: renamed from: G, reason: collision with root package name */
    public static final /* synthetic */ e f3278G = new e(28);

    /* JADX INFO: renamed from: H, reason: collision with root package name */
    public static final /* synthetic */ e f3279H = new e(29);

    public /* synthetic */ e(int i) {
        this.f3293k = i;
    }

    public static final boolean f() {
        return Looper.myLooper() == Looper.getMainLooper();
    }

    @Override // L1.InterfaceC0145w
    public Object a() {
        switch (this.f3293k) {
            case 7:
                return new Boolean(((Boolean) C0397k3.f5166b.b()).booleanValue());
            case 8:
                return new Boolean(((Boolean) C3.f4844a.b()).booleanValue());
            case AndroidTouchProcessor.PointerChange.PAN_ZOOM_END /* 9 */:
                List list = F.f1393a;
                Boolean bool = (Boolean) m4.f5180a.b();
                bool.getClass();
                return bool;
            case FlutterTextUtils.LINE_FEED /* 10 */:
                List list2 = F.f1393a;
                C0357c3.f5048l.get();
                return (String) C0367e3.f5104l.b();
            case 11:
                List list3 = F.f1393a;
                C0357c3.f5048l.get();
                return Integer.valueOf((int) ((Long) C0367e3.f5110o0.b()).longValue());
            case 12:
                List list4 = F.f1393a;
                C0357c3.f5048l.get();
                return Integer.valueOf((int) ((Long) C0367e3.f5113r.b()).longValue());
            case FlutterTextUtils.CARRIAGE_RETURN /* 13 */:
                List list5 = F.f1393a;
                C0357c3.f5048l.get();
                return (String) C0367e3.f5070M.b();
            case 14:
                List list6 = F.f1393a;
                C0357c3.f5048l.get();
                Long l5 = (Long) C0367e3.f5061A.b();
                l5.getClass();
                return l5;
            case 15:
                List list7 = F.f1393a;
                C0357c3.f5048l.get();
                Long l6 = (Long) C0367e3.f5069L.b();
                l6.getClass();
                return l6;
            case SentryFlutterPluginKt.VIDEO_BLOCK_SIZE /* 16 */:
                List list8 = F.f1393a;
                C0357c3.f5048l.get();
                return Integer.valueOf((int) ((Long) C0367e3.f5072O.b()).longValue());
            case 17:
                List list9 = F.f1393a;
                C0357c3.f5048l.get();
                Long l7 = (Long) C0367e3.f5074Q.b();
                l7.getClass();
                return l7;
            case 18:
                List list10 = F.f1393a;
                C0357c3.f5048l.get();
                Long l8 = (Long) C0367e3.f5094f0.b();
                l8.getClass();
                return l8;
            case 19:
                List list11 = F.f1393a;
                C0357c3.f5048l.get();
                Long l9 = (Long) C0367e3.f5065E.b();
                l9.getClass();
                return l9;
            case 20:
                List list12 = F.f1393a;
                C0357c3.f5048l.get();
                Long l10 = (Long) C0367e3.f5126y.b();
                l10.getClass();
                return l10;
            case Build.API_LEVELS.API_21 /* 21 */:
                List list13 = F.f1393a;
                C0357c3.f5048l.get();
                Long l11 = (Long) C0367e3.f5096g0.b();
                l11.getClass();
                return l11;
            case Build.API_LEVELS.API_22 /* 22 */:
                List list14 = F.f1393a;
                C0357c3.f5048l.get();
                return Integer.valueOf((int) ((Long) C0367e3.f5116s0.b()).longValue());
            case Build.API_LEVELS.API_23 /* 23 */:
                List list15 = F.f1393a;
                C0357c3.f5048l.get();
                return Integer.valueOf((int) ((Long) C0367e3.f5109o.b()).longValue());
            case 24:
                List list16 = F.f1393a;
                C0357c3.f5048l.get();
                Long l12 = (Long) C0367e3.f5068H.b();
                l12.getClass();
                return l12;
            case Build.API_LEVELS.API_25 /* 25 */:
                List list17 = F.f1393a;
                C0357c3.f5048l.get();
                return (String) C0367e3.f5095g.b();
            case Build.API_LEVELS.API_26 /* 26 */:
                List list18 = F.f1393a;
                M3.f4915l.get();
                return Integer.valueOf((int) ((Long) O3.f4931d.b()).longValue());
            case Build.API_LEVELS.API_27 /* 27 */:
                List list19 = F.f1393a;
                C0357c3.f5048l.get();
                return Integer.valueOf((int) ((Long) C0367e3.f5119u.b()).longValue());
            case Build.API_LEVELS.API_28 /* 28 */:
                List list20 = F.f1393a;
                C0357c3.f5048l.get();
                Long l13 = (Long) C0367e3.f5090d0.b();
                l13.getClass();
                return l13;
            default:
                List list21 = F.f1393a;
                C0357c3.f5048l.get();
                return Integer.valueOf((int) ((Long) C0367e3.f5125x.b()).longValue());
        }
    }

    @Override // G2.j
    public Object b(String str, Provider provider) {
        switch (this.f3293k) {
            case 4:
                return provider == null ? KeyAgreement.getInstance(str) : KeyAgreement.getInstance(str, provider);
            default:
                return provider == null ? Mac.getInstance(str) : Mac.getInstance(str, provider);
        }
    }

    @Override // A1.c
    public int c(Context context, String str) {
        return A1.f.a(context, str);
    }

    @Override // A1.e
    public A1.d d(Context context, String str, A1.c cVar) {
        int iE;
        A1.d dVar = new A1.d();
        int iC = cVar.c(context, str);
        dVar.f2a = iC;
        int i = 1;
        int i5 = 0;
        if (iC != 0) {
            iE = cVar.e(context, str, false);
            dVar.f3b = iE;
        } else {
            iE = cVar.e(context, str, true);
            dVar.f3b = iE;
        }
        int i6 = dVar.f2a;
        if (i6 == 0) {
            if (iE == 0) {
                i = 0;
            }
            dVar.f4c = i;
            return dVar;
        }
        i5 = i6;
        if (i5 >= iE) {
            i = -1;
        }
        dVar.f4c = i;
        return dVar;
    }

    @Override // A1.c
    public int e(Context context, String str, boolean z5) {
        return A1.f.d(context, str, z5);
    }

    @Override // r1.h
    public /* synthetic */ void g(Object obj) {
        ((V3.a) obj).getClass();
    }
}
