package k7;

import d5.AbstractC0844a;
import java.text.DateFormat;
import java.util.Date;
import java.util.regex.Pattern;

/* JADX INFO: loaded from: classes.dex */
public final class k {

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public static final Pattern f14090j = Pattern.compile("(\\d{2,4})[^\\d]*");

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public static final Pattern f14091k = Pattern.compile("(?i)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*");

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public static final Pattern f14092l = Pattern.compile("(\\d{1,2})[^\\d]*");

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final Pattern f14093m = Pattern.compile("(\\d{1,2}):(\\d{1,2}):(\\d{1,2})[^\\d]*");

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final boolean f14101h;
    public final boolean i;

    public k(String str, String str2, long j8, String str3, String str4, boolean z8, boolean z9, boolean z10, boolean z11) {
        this.f14094a = str;
        this.f14095b = str2;
        this.f14096c = j8;
        this.f14097d = str3;
        this.f14098e = str4;
        this.f14099f = z8;
        this.f14100g = z9;
        this.f14101h = z10;
        this.i = z11;
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof k)) {
            return false;
        }
        k kVar = (k) obj;
        return P6.g.a(kVar.f14094a, this.f14094a) && P6.g.a(kVar.f14095b, this.f14095b) && kVar.f14096c == this.f14096c && P6.g.a(kVar.f14097d, this.f14097d) && P6.g.a(kVar.f14098e, this.f14098e) && kVar.f14099f == this.f14099f && kVar.f14100g == this.f14100g && kVar.f14101h == this.f14101h && kVar.i == this.i;
    }

    public final int hashCode() {
        int iG = AbstractC0844a.g(AbstractC0844a.g(527, 31, this.f14094a), 31, this.f14095b);
        long j8 = this.f14096c;
        return ((((((AbstractC0844a.g(AbstractC0844a.g((iG + ((int) (j8 ^ (j8 >>> 32)))) * 31, 31, this.f14097d), 31, this.f14098e) + (this.f14099f ? 1231 : 1237)) * 31) + (this.f14100g ? 1231 : 1237)) * 31) + (this.f14101h ? 1231 : 1237)) * 31) + (this.i ? 1231 : 1237);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.f14094a);
        sb.append('=');
        sb.append(this.f14095b);
        if (this.f14101h) {
            long j8 = this.f14096c;
            if (j8 == Long.MIN_VALUE) {
                sb.append("; max-age=0");
            } else {
                sb.append("; expires=");
                String str = ((DateFormat) p7.a.f16154a.get()).format(new Date(j8));
                P6.g.d(str, "STANDARD_DATE_FORMAT.get().format(this)");
                sb.append(str);
            }
        }
        if (!this.i) {
            sb.append("; domain=");
            sb.append(this.f14097d);
        }
        sb.append("; path=");
        sb.append(this.f14098e);
        if (this.f14099f) {
            sb.append("; secure");
        }
        if (this.f14100g) {
            sb.append("; httponly");
        }
        String string = sb.toString();
        P6.g.d(string, "toString()");
        return string;
    }
}
