package defpackage;

import androidx.media3.container.NalUnitUtil;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@hc9
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\b\u0007\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Ldc9;", "", "supabase-kt_release"}, k = 1, mv = {2, 1, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final class dc9 {
    public final boolean a;
    public nt6 b;
    public long c;
    public final g45 d;
    public final ArrayList e;
    public final LinkedHashMap f;

    public dc9() {
        this.a = true;
        int i = pg2.d;
        this.c = tg2.g(10, xg2.e);
        this.d = new g45(rz4.a(new q78(10)));
        this.e = new ArrayList();
        this.f = new LinkedHashMap();
        String str = "realtime/v1";
        if (!n89.l("https://mnepsobmilyuodjgpcic.supabase.co", "realtime/v1", false)) {
            str = "auth/v1";
            if (!n89.l("https://mnepsobmilyuodjgpcic.supabase.co", "auth/v1", false)) {
                str = "storage/v1";
                if (!n89.l("https://mnepsobmilyuodjgpcic.supabase.co", "storage/v1", false)) {
                    str = "rest/v1";
                    if (!n89.l("https://mnepsobmilyuodjgpcic.supabase.co", "rest/v1", false)) {
                        str = null;
                    }
                }
            }
        }
        if (str == null) {
            if (n89.ar("https://mnepsobmilyuodjgpcic.supabase.co", "http://", false)) {
                this.a = false;
            }
        } else {
            throw new IllegalStateException(("The supabase url should not contain (" + str + "), supabase-kt handles the url endpoints. If you want to use a custom url for a module, specify it within their builder but that's not necessary for normal supabase projects").toString());
        }
    }

    public final void a(ud9 ud9Var, sq3 sq3Var) {
        cr4.g(ud9Var, "plugin");
        Object objA = ud9Var.a(sq3Var);
        ud9Var.c(this, objA);
        this.f.put(ud9Var.getKey(), new q2(ud9Var, objA, 20));
    }
}
