package K4;

import java.util.concurrent.TimeUnit;
import r4.AbstractC0983h;

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

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final /* synthetic */ int f1084n = 0;

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

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

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

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

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

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

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

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

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

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

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

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

    static {
        TimeUnit timeUnit = TimeUnit.SECONDS;
        AbstractC0983h.e("timeUnit", timeUnit);
        timeUnit.toSeconds(Integer.MAX_VALUE);
    }

    public c(boolean z5, boolean z6, int i, int i5, boolean z7, boolean z8, boolean z9, int i6, int i7, boolean z10, boolean z11, boolean z12, String str) {
        this.f1085a = z5;
        this.f1086b = z6;
        this.f1087c = i;
        this.f1088d = i5;
        this.f1089e = z7;
        this.f1090f = z8;
        this.f1091g = z9;
        this.f1092h = i6;
        this.i = i7;
        this.f1093j = z10;
        this.f1094k = z11;
        this.f1095l = z12;
        this.f1096m = str;
    }

    public final String toString() {
        String str = this.f1096m;
        if (str != null) {
            return str;
        }
        StringBuilder sb = new StringBuilder();
        if (this.f1085a) {
            sb.append("no-cache, ");
        }
        if (this.f1086b) {
            sb.append("no-store, ");
        }
        int i = this.f1087c;
        if (i != -1) {
            sb.append("max-age=");
            sb.append(i);
            sb.append(", ");
        }
        int i5 = this.f1088d;
        if (i5 != -1) {
            sb.append("s-maxage=");
            sb.append(i5);
            sb.append(", ");
        }
        if (this.f1089e) {
            sb.append("private, ");
        }
        if (this.f1090f) {
            sb.append("public, ");
        }
        if (this.f1091g) {
            sb.append("must-revalidate, ");
        }
        int i6 = this.f1092h;
        if (i6 != -1) {
            sb.append("max-stale=");
            sb.append(i6);
            sb.append(", ");
        }
        int i7 = this.i;
        if (i7 != -1) {
            sb.append("min-fresh=");
            sb.append(i7);
            sb.append(", ");
        }
        if (this.f1093j) {
            sb.append("only-if-cached, ");
        }
        if (this.f1094k) {
            sb.append("no-transform, ");
        }
        if (this.f1095l) {
            sb.append("immutable, ");
        }
        if (sb.length() == 0) {
            return "";
        }
        sb.delete(sb.length() - 2, sb.length());
        String string = sb.toString();
        AbstractC0983h.d("StringBuilder().apply(builderAction).toString()", string);
        this.f1096m = string;
        return string;
    }
}
