package com.google.firebase.analytics.connector.internal;

import I2.g;
import K2.a;
import K2.b;
import K2.c;
import L1.A;
import N2.d;
import N2.k;
import N2.m;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Keep;
import com.google.android.gms.internal.measurement.C0399l0;
import com.google.android.gms.internal.measurement.C1;
import com.google.firebase.components.ComponentRegistrar;
import java.util.Arrays;
import java.util.List;
import s1.z;

/* JADX INFO: loaded from: classes.dex */
@Keep
public class AnalyticsConnectorRegistrar implements ComponentRegistrar {
    /* JADX INFO: Access modifiers changed from: private */
    public static a lambda$getComponents$0(d dVar) {
        g gVar = (g) dVar.get(g.class);
        Context context = (Context) dVar.get(Context.class);
        W2.d dVar2 = (W2.d) dVar.get(W2.d.class);
        z.g(gVar);
        z.g(context);
        z.g(dVar2);
        z.g(context.getApplicationContext());
        if (b.f1066b == null) {
            synchronized (b.class) {
                try {
                    if (b.f1066b == null) {
                        Bundle bundle = new Bundle(1);
                        gVar.a();
                        if ("[DEFAULT]".equals(gVar.f933b)) {
                            ((m) dVar2).b(F1.d.f642m, c.f1068a);
                            bundle.putBoolean("dataCollectionDefaultEnabled", gVar.j());
                        }
                        b.f1066b = new b(C0399l0.c(context, bundle).f5171b);
                    }
                } finally {
                }
            }
        }
        return b.f1066b;
    }

    @Override // com.google.firebase.components.ComponentRegistrar
    @Keep
    @SuppressLint({"MissingPermission"})
    public List<N2.c> getComponents() {
        N2.b bVarB = N2.c.b(a.class);
        bVarB.a(k.a(g.class));
        bVarB.a(k.a(Context.class));
        bVarB.a(k.a(W2.d.class));
        bVarB.f2187f = A.f1274A;
        if (bVarB.f2185d != 0) {
            throw new IllegalStateException("Instantiation type has already been set.");
        }
        bVarB.f2185d = 2;
        return Arrays.asList(bVarB.b(), C1.e("fire-analytics", "23.0.0"));
    }
}
