package X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9;

import java.util.ArrayList;
/* compiled from: WidgetContainer.java */
/* loaded from: classes.dex */
public class JZJr_16 extends IFxWkV_5 {
    public ArrayList<IFxWkV_5> QxJ9d_1 = new ArrayList<>();

    @Override // X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5
    public void FSaI4_7() {
        IFxWkV_5();
        ArrayList<IFxWkV_5> arrayList = this.QxJ9d_1;
        if (arrayList == null) {
            return;
        }
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            IFxWkV_5 iFxWkV_5 = this.QxJ9d_1.get(i);
            if (iFxWkV_5 instanceof JZJr_16) {
                ((JZJr_16) iFxWkV_5).FSaI4_7();
            }
        }
    }

    @Override // X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5
    public void IFxWkV_5() {
        super.m547IFxWkV_5();
        ArrayList<IFxWkV_5> arrayList = this.QxJ9d_1;
        if (arrayList == null) {
            return;
        }
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            IFxWkV_5 iFxWkV_5 = this.QxJ9d_1.get(i);
            iFxWkV_5.QxJ9d_1(PGPF6hQ_2(), Mqv2r_3());
            if (!(iFxWkV_5 instanceof IMuAHx_6)) {
                iFxWkV_5.m547IFxWkV_5();
            }
        }
    }

    @Override // X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5
    public IMuAHx_6 KQgRr5e_0() {
        IFxWkV_5 m554KQgRr5e_0 = m554KQgRr5e_0();
        IMuAHx_6 iMuAHx_6 = this instanceof IMuAHx_6 ? (IMuAHx_6) this : null;
        while (m554KQgRr5e_0 != null) {
            IFxWkV_5 m554KQgRr5e_02 = m554KQgRr5e_0.m554KQgRr5e_0();
            if (m554KQgRr5e_0 instanceof IMuAHx_6) {
                iMuAHx_6 = (IMuAHx_6) m554KQgRr5e_0;
            }
            m554KQgRr5e_0 = m554KQgRr5e_02;
        }
        return iMuAHx_6;
    }

    public void PGPF6hQ_2(IFxWkV_5 iFxWkV_5) {
        this.QxJ9d_1.remove(iFxWkV_5);
        iFxWkV_5.KQgRr5e_0((IFxWkV_5) null);
    }

    @Override // X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5
    public void QxJ9d_1() {
        this.QxJ9d_1.clear();
        super.m569QxJ9d_1();
    }

    @Override // X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5
    public void Xgtqvk_8() {
        this.QxJ9d_1.clear();
    }

    public void QxJ9d_1(IFxWkV_5 iFxWkV_5) {
        this.QxJ9d_1.add(iFxWkV_5);
        if (iFxWkV_5.m554KQgRr5e_0() != null) {
            ((JZJr_16) iFxWkV_5.m554KQgRr5e_0()).PGPF6hQ_2(iFxWkV_5);
        }
        iFxWkV_5.KQgRr5e_0((IFxWkV_5) this);
    }

    @Override // X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5
    public void KQgRr5e_0(X6FRs_4.X6FRs_4.KQgRr5e_0.PGPF6hQ_2 pGPF6hQ_2) {
        super.KQgRr5e_0(pGPF6hQ_2);
        int size = this.QxJ9d_1.size();
        for (int i = 0; i < size; i++) {
            this.QxJ9d_1.get(i).KQgRr5e_0(pGPF6hQ_2);
        }
    }

    @Override // X6FRs_4.X6FRs_4.KQgRr5e_0.XnFJ5_9.IFxWkV_5
    public void QxJ9d_1(int i, int i2) {
        super.QxJ9d_1(i, i2);
        int size = this.QxJ9d_1.size();
        for (int i3 = 0; i3 < size; i3++) {
            this.QxJ9d_1.get(i3).QxJ9d_1(IMuAHx_6(), FSaI4_7());
        }
    }
}
