package p138.p145.p146.p151.p158;

import android.net.Uri;
import android.text.TextUtils;
import java.net.URL;
import java.security.MessageDigest;
import p000.p001.p002.p003.p004.C0567;
import p138.p145.p146.p151.InterfaceC2844;

/* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ދ.ބ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C3015 implements InterfaceC2844 {

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final InterfaceC3016 f9175;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final URL f9176;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final String f9177;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public String f9178;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public URL f9179;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public volatile byte[] f9180;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public int f9181;

    public C3015(String str) {
        InterfaceC3016 interfaceC3016 = InterfaceC3016.f9182;
        this.f9176 = null;
        if (TextUtils.isEmpty(str)) {
            throw new IllegalArgumentException("Must not be null or empty");
        }
        this.f9177 = str;
        C0567.m1858(interfaceC3016, "Argument must not be null");
        this.f9175 = interfaceC3016;
    }

    public C3015(URL url) {
        InterfaceC3016 interfaceC3016 = InterfaceC3016.f9182;
        C0567.m1858(url, "Argument must not be null");
        this.f9176 = url;
        this.f9177 = null;
        C0567.m1858(interfaceC3016, "Argument must not be null");
        this.f9175 = interfaceC3016;
    }

    @Override // p138.p145.p146.p151.InterfaceC2844
    public boolean equals(Object obj) {
        if (!(obj instanceof C3015)) {
            return false;
        }
        C3015 c3015 = (C3015) obj;
        return m5140().equals(c3015.m5140()) && this.f9175.equals(c3015.f9175);
    }

    @Override // p138.p145.p146.p151.InterfaceC2844
    public int hashCode() {
        if (this.f9181 == 0) {
            int iHashCode = m5140().hashCode();
            this.f9181 = iHashCode;
            this.f9181 = this.f9175.hashCode() + (iHashCode * 31);
        }
        return this.f9181;
    }

    public String toString() {
        return m5140();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public String m5140() {
        String str = this.f9177;
        if (str != null) {
            return str;
        }
        URL url = this.f9176;
        C0567.m1858(url, "Argument must not be null");
        return url.toString();
    }

    @Override // p138.p145.p146.p151.InterfaceC2844
    /* JADX INFO: renamed from: ֏ */
    public void mo2526(MessageDigest messageDigest) {
        if (this.f9180 == null) {
            this.f9180 = m5140().getBytes(InterfaceC2844.f8810);
        }
        messageDigest.update(this.f9180);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final String m5141() {
        if (TextUtils.isEmpty(this.f9178)) {
            String string = this.f9177;
            if (TextUtils.isEmpty(string)) {
                URL url = this.f9176;
                C0567.m1858(url, "Argument must not be null");
                string = url.toString();
            }
            this.f9178 = Uri.encode(string, "@#&=*+-_.,:!?()/~'%;$");
        }
        return this.f9178;
    }
}
