package z0;

import android.net.Uri;
import d5.AbstractC0844a;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import u0.AbstractC1589z;
import x0.AbstractC1709a;

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

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final byte[] f19140c;

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

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

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

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

    static {
        AbstractC1589z.a("media3.datasource");
    }

    public k(Uri uri, int i, byte[] bArr, Map map, long j8, long j9, int i5) {
        AbstractC1709a.d(j8 >= 0);
        AbstractC1709a.d(j8 >= 0);
        AbstractC1709a.d(j9 > 0 || j9 == -1);
        uri.getClass();
        this.f19138a = uri;
        this.f19139b = i;
        this.f19140c = (bArr == null || bArr.length == 0) ? null : bArr;
        this.f19141d = Collections.unmodifiableMap(new HashMap(map));
        this.f19142e = j8;
        this.f19143f = j9;
        this.f19144g = i5;
    }

    public final String toString() {
        String str;
        StringBuilder sb = new StringBuilder("DataSpec[");
        int i = this.f19139b;
        if (i == 1) {
            str = "GET";
        } else if (i == 2) {
            str = "POST";
        } else {
            if (i != 3) {
                throw new IllegalStateException();
            }
            str = "HEAD";
        }
        sb.append(str);
        sb.append(" ");
        sb.append(this.f19138a);
        sb.append(", ");
        sb.append(this.f19142e);
        sb.append(", ");
        sb.append(this.f19143f);
        sb.append(", null, ");
        return AbstractC0844a.n(sb, this.f19144g, "]");
    }
}
