package h0;

import android.os.Parcel;
import android.os.Parcelable;
import androidx.lifecycle.EnumC0510o;

/* JADX INFO: loaded from: classes.dex */
public final class U implements Parcelable {
    public static final Parcelable.Creator<U> CREATOR = new com.google.android.material.datepicker.d(20);

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public final boolean f13107A;

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

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public final String f13109C;
    public final int D;

    /* JADX INFO: renamed from: E, reason: collision with root package name */
    public final boolean f13110E;

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final boolean f13118x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final boolean f13119y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final boolean f13120z;

    public U(ComponentCallbacksC1023x componentCallbacksC1023x) {
        this.f13111q = componentCallbacksC1023x.getClass().getName();
        this.f13112r = componentCallbacksC1023x.f13297u;
        this.f13113s = componentCallbacksC1023x.f13260E;
        this.f13114t = componentCallbacksC1023x.f13262G;
        this.f13115u = componentCallbacksC1023x.f13269O;
        this.f13116v = componentCallbacksC1023x.f13270P;
        this.f13117w = componentCallbacksC1023x.f13271Q;
        this.f13118x = componentCallbacksC1023x.f13274T;
        this.f13119y = componentCallbacksC1023x.f13258B;
        this.f13120z = componentCallbacksC1023x.f13273S;
        this.f13107A = componentCallbacksC1023x.f13272R;
        this.f13108B = componentCallbacksC1023x.f13284e0.ordinal();
        this.f13109C = componentCallbacksC1023x.f13300x;
        this.D = componentCallbacksC1023x.f13301y;
        this.f13110E = componentCallbacksC1023x.f13279Z;
    }

    public final ComponentCallbacksC1023x a(C1000H c1000h) {
        ComponentCallbacksC1023x componentCallbacksC1023xA = c1000h.a(this.f13111q);
        componentCallbacksC1023xA.f13297u = this.f13112r;
        componentCallbacksC1023xA.f13260E = this.f13113s;
        componentCallbacksC1023xA.f13262G = this.f13114t;
        componentCallbacksC1023xA.H = true;
        componentCallbacksC1023xA.f13269O = this.f13115u;
        componentCallbacksC1023xA.f13270P = this.f13116v;
        componentCallbacksC1023xA.f13271Q = this.f13117w;
        componentCallbacksC1023xA.f13274T = this.f13118x;
        componentCallbacksC1023xA.f13258B = this.f13119y;
        componentCallbacksC1023xA.f13273S = this.f13120z;
        componentCallbacksC1023xA.f13272R = this.f13107A;
        componentCallbacksC1023xA.f13284e0 = EnumC0510o.values()[this.f13108B];
        componentCallbacksC1023xA.f13300x = this.f13109C;
        componentCallbacksC1023xA.f13301y = this.D;
        componentCallbacksC1023xA.f13279Z = this.f13110E;
        return componentCallbacksC1023xA;
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder(128);
        sb.append("FragmentState{");
        sb.append(this.f13111q);
        sb.append(" (");
        sb.append(this.f13112r);
        sb.append(")}:");
        if (this.f13113s) {
            sb.append(" fromLayout");
        }
        if (this.f13114t) {
            sb.append(" dynamicContainer");
        }
        int i = this.f13116v;
        if (i != 0) {
            sb.append(" id=0x");
            sb.append(Integer.toHexString(i));
        }
        String str = this.f13117w;
        if (str != null && !str.isEmpty()) {
            sb.append(" tag=");
            sb.append(str);
        }
        if (this.f13118x) {
            sb.append(" retainInstance");
        }
        if (this.f13119y) {
            sb.append(" removing");
        }
        if (this.f13120z) {
            sb.append(" detached");
        }
        if (this.f13107A) {
            sb.append(" hidden");
        }
        String str2 = this.f13109C;
        if (str2 != null) {
            sb.append(" targetWho=");
            sb.append(str2);
            sb.append(" targetRequestCode=");
            sb.append(this.D);
        }
        if (this.f13110E) {
            sb.append(" userVisibleHint");
        }
        return sb.toString();
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.f13111q);
        parcel.writeString(this.f13112r);
        parcel.writeInt(this.f13113s ? 1 : 0);
        parcel.writeInt(this.f13114t ? 1 : 0);
        parcel.writeInt(this.f13115u);
        parcel.writeInt(this.f13116v);
        parcel.writeString(this.f13117w);
        parcel.writeInt(this.f13118x ? 1 : 0);
        parcel.writeInt(this.f13119y ? 1 : 0);
        parcel.writeInt(this.f13120z ? 1 : 0);
        parcel.writeInt(this.f13107A ? 1 : 0);
        parcel.writeInt(this.f13108B);
        parcel.writeString(this.f13109C);
        parcel.writeInt(this.D);
        parcel.writeInt(this.f13110E ? 1 : 0);
    }

    public U(Parcel parcel) {
        this.f13111q = parcel.readString();
        this.f13112r = parcel.readString();
        this.f13113s = parcel.readInt() != 0;
        this.f13114t = parcel.readInt() != 0;
        this.f13115u = parcel.readInt();
        this.f13116v = parcel.readInt();
        this.f13117w = parcel.readString();
        this.f13118x = parcel.readInt() != 0;
        this.f13119y = parcel.readInt() != 0;
        this.f13120z = parcel.readInt() != 0;
        this.f13107A = parcel.readInt() != 0;
        this.f13108B = parcel.readInt();
        this.f13109C = parcel.readString();
        this.D = parcel.readInt();
        this.f13110E = parcel.readInt() != 0;
    }
}
