package k7;

import java.util.concurrent.TimeUnit;

/* JADX INFO: renamed from: k7.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1111c {

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final C1111c f14044n = new C1111c(true, false, -1, -1, false, false, false, -1, -1, false, false, false, null);

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public static final C1111c f14045o;

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

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

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

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

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public String f14057m;

    static {
        TimeUnit timeUnit = TimeUnit.SECONDS;
        P6.g.e(timeUnit, "timeUnit");
        long seconds = timeUnit.toSeconds(Integer.MAX_VALUE);
        f14045o = new C1111c(false, false, -1, -1, false, false, false, seconds <= 2147483647L ? (int) seconds : Integer.MAX_VALUE, -1, true, false, false, null);
    }

    public C1111c(boolean z8, boolean z9, int i, int i5, boolean z10, boolean z11, boolean z12, int i8, int i9, boolean z13, boolean z14, boolean z15, String str) {
        this.f14046a = z8;
        this.f14047b = z9;
        this.f14048c = i;
        this.f14049d = i5;
        this.f14050e = z10;
        this.f14051f = z11;
        this.f14052g = z12;
        this.f14053h = i8;
        this.i = i9;
        this.f14054j = z13;
        this.f14055k = z14;
        this.f14056l = z15;
        this.f14057m = str;
    }

    public final String toString() {
        String str = this.f14057m;
        if (str != null) {
            return str;
        }
        StringBuilder sb = new StringBuilder();
        if (this.f14046a) {
            sb.append("no-cache, ");
        }
        if (this.f14047b) {
            sb.append("no-store, ");
        }
        int i = this.f14048c;
        if (i != -1) {
            sb.append("max-age=");
            sb.append(i);
            sb.append(", ");
        }
        int i5 = this.f14049d;
        if (i5 != -1) {
            sb.append("s-maxage=");
            sb.append(i5);
            sb.append(", ");
        }
        if (this.f14050e) {
            sb.append("private, ");
        }
        if (this.f14051f) {
            sb.append("public, ");
        }
        if (this.f14052g) {
            sb.append("must-revalidate, ");
        }
        int i8 = this.f14053h;
        if (i8 != -1) {
            sb.append("max-stale=");
            sb.append(i8);
            sb.append(", ");
        }
        int i9 = this.i;
        if (i9 != -1) {
            sb.append("min-fresh=");
            sb.append(i9);
            sb.append(", ");
        }
        if (this.f14054j) {
            sb.append("only-if-cached, ");
        }
        if (this.f14055k) {
            sb.append("no-transform, ");
        }
        if (this.f14056l) {
            sb.append("immutable, ");
        }
        if (sb.length() == 0) {
            return "";
        }
        sb.delete(sb.length() - 2, sb.length());
        String string = sb.toString();
        P6.g.d(string, "StringBuilder().apply(builderAction).toString()");
        this.f14057m = string;
        return string;
    }
}
