package g7;

import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class g {

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public static final g f26280h = new g(320, 50, "320x50_mb");

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public static final g f26281i = new g(468, 60, "468x60_as");

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public static final g f26282j = new g(320, 100, "320x100_as");

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public static final g f26283k = new g(728, 90, "728x90_as");

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public static final g f26284l = new g(300, 250, "300x250_as");

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final g f26285m = new g(160, 600, "160x600_as");

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final g f26286n = new g(-1, -2, "smart_banner");

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public static final g f26287o = new g(-3, -4, "fluid");

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public static final g f26288p = new g(0, 0, "invalid");

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public static final g f26289q = new g(50, 50, "50x50_mb");

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public boolean f26293d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f26294e;

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

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

    static {
        new g(-3, 0, "search_v2");
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public g(int i10, int i11) {
        String strValueOf = i10 == -1 ? "FULL" : String.valueOf(i10);
        String strValueOf2 = i11 == -2 ? "AUTO" : String.valueOf(i11);
        this(i10, i11, com.bytedance.sdk.component.adexpress.dynamic.dynamicview.b.h(new StringBuilder(String.valueOf(strValueOf2).length() + String.valueOf(strValueOf).length() + 1 + 3), strValueOf, "x", strValueOf2, "_as"));
    }

    public boolean equals(@Nullable Object obj) {
        if (obj == null) {
            return false;
        }
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof g)) {
            return false;
        }
        g gVar = (g) obj;
        return this.f26290a == gVar.f26290a && this.f26291b == gVar.f26291b && this.f26292c.equals(gVar.f26292c);
    }

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

    public final String toString() {
        return this.f26292c;
    }

    public g(int i10, int i11, String str) {
        if (i10 < 0 && i10 != -1 && i10 != -3) {
            throw new IllegalArgumentException(defpackage.e.n(new StringBuilder(String.valueOf(i10).length() + 26), "Invalid width for AdSize: ", i10));
        }
        if (i11 < 0 && i11 != -2 && i11 != -4) {
            throw new IllegalArgumentException(defpackage.e.n(new StringBuilder(String.valueOf(i11).length() + 27), "Invalid height for AdSize: ", i11));
        }
        this.f26290a = i10;
        this.f26291b = i11;
        this.f26292c = str;
    }
}
