package d3;

import android.os.Parcel;
import android.os.Parcelable;

/* JADX INFO: loaded from: classes.dex */
public final class T1 extends Q2.a {
    public static final Parcelable.Creator<T1> CREATOR = new com.google.android.material.datepicker.d(11);

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

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

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

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final Long f11725t;

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

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

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final Double f11728w;

    public T1(int i, String str, long j8, Long l8, Float f3, String str2, String str3, Double d8) {
        this.f11722q = i;
        this.f11723r = str;
        this.f11724s = j8;
        this.f11725t = l8;
        this.f11728w = i == 1 ? f3 != null ? Double.valueOf(f3.doubleValue()) : null : d8;
        this.f11726u = str2;
        this.f11727v = str3;
    }

    public final Object a() {
        Long l8 = this.f11725t;
        if (l8 != null) {
            return l8;
        }
        Double d8 = this.f11728w;
        if (d8 != null) {
            return d8;
        }
        String str = this.f11726u;
        if (str != null) {
            return str;
        }
        return null;
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        com.google.android.material.datepicker.d.b(this, parcel);
    }

    public T1(long j8, Object obj, String str, String str2) {
        P2.w.c(str);
        this.f11722q = 2;
        this.f11723r = str;
        this.f11724s = j8;
        this.f11727v = str2;
        if (obj == null) {
            this.f11725t = null;
            this.f11728w = null;
            this.f11726u = null;
            return;
        }
        if (obj instanceof Long) {
            this.f11725t = (Long) obj;
            this.f11728w = null;
            this.f11726u = null;
        } else if (obj instanceof String) {
            this.f11725t = null;
            this.f11728w = null;
            this.f11726u = (String) obj;
        } else {
            if (obj instanceof Double) {
                this.f11725t = null;
                this.f11728w = (Double) obj;
                this.f11726u = null;
                return;
            }
            throw new IllegalArgumentException("User attribute given of un-supported type");
        }
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public T1(U1 u12) {
        String str = u12.f11737c;
        this(u12.f11738d, u12.f11739e, str, u12.f11736b);
    }
}
