package o;

import java.util.Arrays;
import java.util.Iterator;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class LE implements Iterable, InterfaceC2989yJ {
    public final String[] l;

    public LE(String[] strArr) {
        this.l = strArr;
    }

    public final String a(String str) {
        String[] strArr = this.l;
        int length = strArr.length - 2;
        int iR = AbstractC1155f00.r(length, 0, -2);
        if (iR > length) {
            return null;
        }
        while (!AbstractC1299gb0.I(str, strArr[length])) {
            if (length == iR) {
                return null;
            }
            length -= 2;
        }
        return strArr[length + 1];
    }

    public final String b(int i) {
        return this.l[i * 2];
    }

    public final KE c() {
        KE ke = new KE(0);
        ke.a.addAll(Arrays.asList(this.l));
        return ke;
    }

    public final String d(int i) {
        return this.l[(i * 2) + 1];
    }

    public final boolean equals(Object obj) {
        if (obj instanceof LE) {
            return Arrays.equals(this.l, ((LE) obj).l);
        }
        return false;
    }

    public final int hashCode() {
        return Arrays.hashCode(this.l);
    }

    @Override // java.lang.Iterable
    public final Iterator iterator() {
        int size = size();
        C3001yV[] c3001yVArr = new C3001yV[size];
        for (int i = 0; i < size; i++) {
            c3001yVArr[i] = new C3001yV(b(i), d(i));
        }
        return new N(1, c3001yVArr);
    }

    public final int size() {
        return this.l.length / 2;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        int size = size();
        for (int i = 0; i < size; i++) {
            String strB = b(i);
            String strD = d(i);
            sb.append(strB);
            sb.append(": ");
            if (AbstractC2264qi0.p(strB)) {
                strD = "██";
            }
            sb.append(strD);
            sb.append("\n");
        }
        return sb.toString();
    }
}
