package okhttp3;

import com.google.android.recaptcha.internal.a;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;

/* JADX INFO: loaded from: classes3.dex */
public final class Challenge {

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

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

    public Challenge(String str, Map map) {
        String strO;
        this.f21954a = str;
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        for (Map.Entry entry : map.entrySet()) {
            String str2 = (String) entry.getKey();
            String str3 = (String) entry.getValue();
            if (str2 != null) {
                Locale locale = Locale.US;
                strO = a.o(locale, "US", str2, locale, "this as java.lang.String).toLowerCase(locale)");
            } else {
                strO = null;
            }
            linkedHashMap.put(strO, str3);
        }
        Map mapUnmodifiableMap = Collections.unmodifiableMap(linkedHashMap);
        o.g(mapUnmodifiableMap, "unmodifiableMap<String?, String>(newAuthParams)");
        this.f21955b = mapUnmodifiableMap;
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof Challenge)) {
            return false;
        }
        Challenge challenge = (Challenge) obj;
        return o.c(challenge.f21954a, this.f21954a) && o.c(challenge.f21955b, this.f21955b);
    }

    public final int hashCode() {
        return this.f21955b.hashCode() + AbstractC2761L.b(899, 31, this.f21954a);
    }

    public final String toString() {
        return this.f21954a + " authParams=" + this.f21955b;
    }
}
