package androidx.constraintlayout.widget;

import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseArray;
import android.util.SparseIntArray;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.sessions.settings.RemoteSettings;
import i3.d;
import i3.e;
import i3.j;
import j3.b;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

/* loaded from: classes.dex */
public class ConstraintLayout extends ViewGroup {
    private static h M;
    private int A;
    private HashMap B;
    private int C;
    private int D;
    int E;
    int F;
    int G;
    int H;
    private SparseArray I;
    c J;
    private int K;
    private int L;

    /* renamed from: p, reason: collision with root package name */
    SparseArray f3048p;

    /* renamed from: q, reason: collision with root package name */
    private ArrayList f3049q;

    /* renamed from: r, reason: collision with root package name */
    protected i3.f f3050r;

    /* renamed from: s, reason: collision with root package name */
    private int f3051s;

    /* renamed from: t, reason: collision with root package name */
    private int f3052t;

    /* renamed from: u, reason: collision with root package name */
    private int f3053u;

    /* renamed from: v, reason: collision with root package name */
    private int f3054v;

    /* renamed from: w, reason: collision with root package name */
    protected boolean f3055w;

    /* renamed from: x, reason: collision with root package name */
    private int f3056x;

    /* renamed from: y, reason: collision with root package name */
    private d f3057y;

    /* renamed from: z, reason: collision with root package name */
    protected androidx.constraintlayout.widget.c f3058z;

    /* loaded from: classes.dex */
    static /* synthetic */ class a {

        /* renamed from: a, reason: collision with root package name */
        static final /* synthetic */ int[] f3059a;

        static {
            int[] iArr = new int[e.b.values().length];
            f3059a = iArr;
            try {
                iArr[e.b.FIXED.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                f3059a[e.b.WRAP_CONTENT.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                f3059a[e.b.MATCH_PARENT.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                f3059a[e.b.MATCH_CONSTRAINT.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public class c implements b.InterfaceC0509b {

        /* renamed from: a, reason: collision with root package name */
        ConstraintLayout f3110a;

        /* renamed from: b, reason: collision with root package name */
        int f3111b;

        /* renamed from: c, reason: collision with root package name */
        int f3112c;

        /* renamed from: d, reason: collision with root package name */
        int f3113d;

        /* renamed from: e, reason: collision with root package name */
        int f3114e;

        /* renamed from: f, reason: collision with root package name */
        int f3115f;

        /* renamed from: g, reason: collision with root package name */
        int f3116g;

        public c(ConstraintLayout constraintLayout) {
            this.f3110a = constraintLayout;
        }

        private boolean d(int i10, int i11, int i12) {
            if (i10 == i11) {
                return true;
            }
            int mode = View.MeasureSpec.getMode(i10);
            View.MeasureSpec.getSize(i10);
            int mode2 = View.MeasureSpec.getMode(i11);
            int size = View.MeasureSpec.getSize(i11);
            if (mode2 == 1073741824) {
                return (mode == Integer.MIN_VALUE || mode == 0) && i12 == size;
            }
            return false;
        }

        @Override // j3.b.InterfaceC0509b
        public final void a() {
            int childCount = this.f3110a.getChildCount();
            for (int i10 = 0; i10 < childCount; i10++) {
                this.f3110a.getChildAt(i10);
            }
            int size = this.f3110a.f3049q.size();
            if (size > 0) {
                for (int i11 = 0; i11 < size; i11++) {
                    ((androidx.constraintlayout.widget.b) this.f3110a.f3049q.get(i11)).j(this.f3110a);
                }
            }
        }

        @Override // j3.b.InterfaceC0509b
        public final void b(i3.e eVar, b.a aVar) {
            int makeMeasureSpec;
            int makeMeasureSpec2;
            int baseline;
            int max;
            int i10;
            int i11;
            int i12;
            if (eVar == null) {
                return;
            }
            if (eVar.T() == 8 && !eVar.h0()) {
                aVar.f23888e = 0;
                aVar.f23889f = 0;
                aVar.f23890g = 0;
                return;
            }
            if (eVar.I() == null) {
                return;
            }
            e.b bVar = aVar.f23884a;
            e.b bVar2 = aVar.f23885b;
            int i13 = aVar.f23886c;
            int i14 = aVar.f23887d;
            int i15 = this.f3111b + this.f3112c;
            int i16 = this.f3113d;
            View view = (View) eVar.q();
            int[] iArr = a.f3059a;
            int i17 = iArr[bVar.ordinal()];
            if (i17 == 1) {
                makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(i13, 1073741824);
            } else if (i17 == 2) {
                makeMeasureSpec = ViewGroup.getChildMeasureSpec(this.f3115f, i16, -2);
            } else if (i17 == 3) {
                makeMeasureSpec = ViewGroup.getChildMeasureSpec(this.f3115f, i16 + eVar.z(), -1);
            } else if (i17 != 4) {
                makeMeasureSpec = 0;
            } else {
                makeMeasureSpec = ViewGroup.getChildMeasureSpec(this.f3115f, i16, -2);
                boolean z10 = eVar.f22377w == 1;
                int i18 = aVar.f23893j;
                if (i18 == b.a.f23882l || i18 == b.a.f23883m) {
                    if (aVar.f23893j == b.a.f23883m || !z10 || (z10 && (view.getMeasuredHeight() == eVar.v())) || eVar.l0()) {
                        makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(eVar.U(), 1073741824);
                    }
                }
            }
            int i19 = iArr[bVar2.ordinal()];
            if (i19 == 1) {
                makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(i14, 1073741824);
            } else if (i19 == 2) {
                makeMeasureSpec2 = ViewGroup.getChildMeasureSpec(this.f3116g, i15, -2);
            } else if (i19 == 3) {
                makeMeasureSpec2 = ViewGroup.getChildMeasureSpec(this.f3116g, i15 + eVar.S(), -1);
            } else if (i19 != 4) {
                makeMeasureSpec2 = 0;
            } else {
                makeMeasureSpec2 = ViewGroup.getChildMeasureSpec(this.f3116g, i15, -2);
                boolean z11 = eVar.f22379x == 1;
                int i20 = aVar.f23893j;
                if (i20 == b.a.f23882l || i20 == b.a.f23883m) {
                    if (aVar.f23893j == b.a.f23883m || !z11 || (z11 && (view.getMeasuredWidth() == eVar.U())) || eVar.m0()) {
                        makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(eVar.v(), 1073741824);
                    }
                }
            }
            i3.f fVar = (i3.f) eVar.I();
            if (fVar != null && j.b(ConstraintLayout.this.f3056x, 256) && view.getMeasuredWidth() == eVar.U() && view.getMeasuredWidth() < fVar.U() && view.getMeasuredHeight() == eVar.v() && view.getMeasuredHeight() < fVar.v() && view.getBaseline() == eVar.n() && !eVar.k0()) {
                if (d(eVar.A(), makeMeasureSpec, eVar.U()) && d(eVar.B(), makeMeasureSpec2, eVar.v())) {
                    aVar.f23888e = eVar.U();
                    aVar.f23889f = eVar.v();
                    aVar.f23890g = eVar.n();
                    return;
                }
            }
            e.b bVar3 = e.b.MATCH_CONSTRAINT;
            boolean z12 = bVar == bVar3;
            boolean z13 = bVar2 == bVar3;
            e.b bVar4 = e.b.MATCH_PARENT;
            boolean z14 = bVar2 == bVar4 || bVar2 == e.b.FIXED;
            boolean z15 = bVar == bVar4 || bVar == e.b.FIXED;
            boolean z16 = z12 && eVar.f22340d0 > BitmapDescriptorFactory.HUE_RED;
            boolean z17 = z13 && eVar.f22340d0 > BitmapDescriptorFactory.HUE_RED;
            if (view == null) {
                return;
            }
            b bVar5 = (b) view.getLayoutParams();
            int i21 = aVar.f23893j;
            if (i21 != b.a.f23882l && i21 != b.a.f23883m && z12 && eVar.f22377w == 0 && z13 && eVar.f22379x == 0) {
                i12 = -1;
                i11 = 0;
                baseline = 0;
                max = 0;
            } else {
                view.measure(makeMeasureSpec, makeMeasureSpec2);
                eVar.R0(makeMeasureSpec, makeMeasureSpec2);
                int measuredWidth = view.getMeasuredWidth();
                int measuredHeight = view.getMeasuredHeight();
                baseline = view.getBaseline();
                int i22 = eVar.f22383z;
                max = i22 > 0 ? Math.max(i22, measuredWidth) : measuredWidth;
                int i23 = eVar.A;
                if (i23 > 0) {
                    max = Math.min(i23, max);
                }
                int i24 = eVar.C;
                if (i24 > 0) {
                    i11 = Math.max(i24, measuredHeight);
                    i10 = makeMeasureSpec;
                } else {
                    i10 = makeMeasureSpec;
                    i11 = measuredHeight;
                }
                int i25 = eVar.D;
                if (i25 > 0) {
                    i11 = Math.min(i25, i11);
                }
                if (!j.b(ConstraintLayout.this.f3056x, 1)) {
                    if (z16 && z14) {
                        max = (int) ((i11 * eVar.f22340d0) + 0.5f);
                    } else if (z17 && z15) {
                        i11 = (int) ((max / eVar.f22340d0) + 0.5f);
                    }
                }
                if (measuredWidth != max || measuredHeight != i11) {
                    int makeMeasureSpec3 = measuredWidth != max ? View.MeasureSpec.makeMeasureSpec(max, 1073741824) : i10;
                    if (measuredHeight != i11) {
                        makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(i11, 1073741824);
                    }
                    view.measure(makeMeasureSpec3, makeMeasureSpec2);
                    eVar.R0(makeMeasureSpec3, makeMeasureSpec2);
                    max = view.getMeasuredWidth();
                    i11 = view.getMeasuredHeight();
                    baseline = view.getBaseline();
                }
                i12 = -1;
            }
            boolean z18 = baseline != i12;
            aVar.f23892i = (max == aVar.f23886c && i11 == aVar.f23887d) ? false : true;
            if (bVar5.f3073g0) {
                z18 = true;
            }
            if (z18 && baseline != -1 && eVar.n() != baseline) {
                aVar.f23892i = true;
            }
            aVar.f23888e = max;
            aVar.f23889f = i11;
            aVar.f23891h = z18;
            aVar.f23890g = baseline;
        }

        public void c(int i10, int i11, int i12, int i13, int i14, int i15) {
            this.f3111b = i12;
            this.f3112c = i13;
            this.f3113d = i14;
            this.f3114e = i15;
            this.f3115f = i10;
            this.f3116g = i11;
        }
    }

    public ConstraintLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.f3048p = new SparseArray();
        this.f3049q = new ArrayList(4);
        this.f3050r = new i3.f();
        this.f3051s = 0;
        this.f3052t = 0;
        this.f3053u = Api.BaseClientBuilder.API_PRIORITY_OTHER;
        this.f3054v = Api.BaseClientBuilder.API_PRIORITY_OTHER;
        this.f3055w = true;
        this.f3056x = 257;
        this.f3057y = null;
        this.f3058z = null;
        this.A = -1;
        this.B = new HashMap();
        this.C = -1;
        this.D = -1;
        this.E = -1;
        this.F = -1;
        this.G = 0;
        this.H = 0;
        this.I = new SparseArray();
        this.J = new c(this);
        this.K = 0;
        this.L = 0;
        q(attributeSet, 0, 0);
    }

    private boolean A() {
        int childCount = getChildCount();
        boolean z10 = false;
        int i10 = 0;
        while (true) {
            if (i10 >= childCount) {
                break;
            }
            if (getChildAt(i10).isLayoutRequested()) {
                z10 = true;
                break;
            }
            i10++;
        }
        if (z10) {
            w();
        }
        return z10;
    }

    private int getPaddingWidth() {
        int max = Math.max(0, getPaddingLeft()) + Math.max(0, getPaddingRight());
        int max2 = Math.max(0, getPaddingStart()) + Math.max(0, getPaddingEnd());
        return max2 > 0 ? max2 : max;
    }

    public static h getSharedValues() {
        if (M == null) {
            M = new h();
        }
        return M;
    }

    private final i3.e i(int i10) {
        if (i10 == 0) {
            return this.f3050r;
        }
        View view = (View) this.f3048p.get(i10);
        if (view == null && (view = findViewById(i10)) != null && view != this && view.getParent() == this) {
            onViewAdded(view);
        }
        if (view == this) {
            return this.f3050r;
        }
        if (view == null) {
            return null;
        }
        return ((b) view.getLayoutParams()).f3103v0;
    }

    private void q(AttributeSet attributeSet, int i10, int i11) {
        this.f3050r.y0(this);
        this.f3050r.Q1(this.J);
        this.f3048p.put(getId(), this);
        this.f3057y = null;
        if (attributeSet != null) {
            TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, g.f3378n1, i10, i11);
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i12 = 0; i12 < indexCount; i12++) {
                int index = obtainStyledAttributes.getIndex(i12);
                if (index == g.f3414r1) {
                    this.f3051s = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3051s);
                } else if (index == g.f3423s1) {
                    this.f3052t = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3052t);
                } else if (index == g.f3396p1) {
                    this.f3053u = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3053u);
                } else if (index == g.f3405q1) {
                    this.f3054v = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3054v);
                } else if (index == g.F2) {
                    this.f3056x = obtainStyledAttributes.getInt(index, this.f3056x);
                } else if (index == g.A1) {
                    int resourceId = obtainStyledAttributes.getResourceId(index, 0);
                    if (resourceId != 0) {
                        try {
                            t(resourceId);
                        } catch (Resources.NotFoundException unused) {
                            this.f3058z = null;
                        }
                    }
                } else if (index == g.f3459w1) {
                    int resourceId2 = obtainStyledAttributes.getResourceId(index, 0);
                    try {
                        d dVar = new d();
                        this.f3057y = dVar;
                        dVar.l(getContext(), resourceId2);
                    } catch (Resources.NotFoundException unused2) {
                        this.f3057y = null;
                    }
                    this.A = resourceId2;
                }
            }
            obtainStyledAttributes.recycle();
        }
        this.f3050r.R1(this.f3056x);
    }

    private void s() {
        this.f3055w = true;
        this.C = -1;
        this.D = -1;
        this.E = -1;
        this.F = -1;
        this.G = 0;
        this.H = 0;
    }

    private void w() {
        boolean isInEditMode = isInEditMode();
        int childCount = getChildCount();
        for (int i10 = 0; i10 < childCount; i10++) {
            i3.e p10 = p(getChildAt(i10));
            if (p10 != null) {
                p10.r0();
            }
        }
        if (isInEditMode) {
            for (int i11 = 0; i11 < childCount; i11++) {
                View childAt = getChildAt(i11);
                try {
                    String resourceName = getResources().getResourceName(childAt.getId());
                    x(0, resourceName, Integer.valueOf(childAt.getId()));
                    int indexOf = resourceName.indexOf(47);
                    if (indexOf != -1) {
                        resourceName = resourceName.substring(indexOf + 1);
                    }
                    i(childAt.getId()).z0(resourceName);
                } catch (Resources.NotFoundException unused) {
                }
            }
        }
        if (this.A != -1) {
            for (int i12 = 0; i12 < childCount; i12++) {
                getChildAt(i12).getId();
                int i13 = this.A;
            }
        }
        d dVar = this.f3057y;
        if (dVar != null) {
            dVar.d(this, true);
        }
        this.f3050r.q1();
        int size = this.f3049q.size();
        if (size > 0) {
            for (int i14 = 0; i14 < size; i14++) {
                ((androidx.constraintlayout.widget.b) this.f3049q.get(i14)).l(this);
            }
        }
        for (int i15 = 0; i15 < childCount; i15++) {
            getChildAt(i15);
        }
        this.I.clear();
        this.I.put(0, this.f3050r);
        this.I.put(getId(), this.f3050r);
        for (int i16 = 0; i16 < childCount; i16++) {
            View childAt2 = getChildAt(i16);
            this.I.put(childAt2.getId(), p(childAt2));
        }
        for (int i17 = 0; i17 < childCount; i17++) {
            View childAt3 = getChildAt(i17);
            i3.e p11 = p(childAt3);
            if (p11 != null) {
                b bVar = (b) childAt3.getLayoutParams();
                this.f3050r.b(p11);
                e(isInEditMode, childAt3, p11, bVar, this.I);
            }
        }
    }

    private void z(i3.e eVar, b bVar, SparseArray sparseArray, int i10, d.b bVar2) {
        View view = (View) this.f3048p.get(i10);
        i3.e eVar2 = (i3.e) sparseArray.get(i10);
        if (eVar2 == null || view == null || !(view.getLayoutParams() instanceof b)) {
            return;
        }
        bVar.f3073g0 = true;
        d.b bVar3 = d.b.BASELINE;
        if (bVar2 == bVar3) {
            b bVar4 = (b) view.getLayoutParams();
            bVar4.f3073g0 = true;
            bVar4.f3103v0.H0(true);
        }
        eVar.m(bVar3).a(eVar2.m(bVar2), bVar.D, bVar.C, true);
        eVar.H0(true);
        eVar.m(d.b.TOP).p();
        eVar.m(d.b.BOTTOM).p();
    }

    @Override // android.view.ViewGroup
    protected boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return layoutParams instanceof b;
    }

    @Override // android.view.ViewGroup, android.view.View
    protected void dispatchDraw(Canvas canvas) {
        Object tag;
        int size;
        ArrayList arrayList = this.f3049q;
        if (arrayList != null && (size = arrayList.size()) > 0) {
            for (int i10 = 0; i10 < size; i10++) {
                ((androidx.constraintlayout.widget.b) this.f3049q.get(i10)).k(this);
            }
        }
        super.dispatchDraw(canvas);
        if (isInEditMode()) {
            float width = getWidth();
            float height = getHeight();
            int childCount = getChildCount();
            for (int i11 = 0; i11 < childCount; i11++) {
                View childAt = getChildAt(i11);
                if (childAt.getVisibility() != 8 && (tag = childAt.getTag()) != null && (tag instanceof String)) {
                    String[] split = ((String) tag).split(",");
                    if (split.length == 4) {
                        int parseInt = Integer.parseInt(split[0]);
                        int parseInt2 = Integer.parseInt(split[1]);
                        int parseInt3 = Integer.parseInt(split[2]);
                        int i12 = (int) ((parseInt / 1080.0f) * width);
                        int i13 = (int) ((parseInt2 / 1920.0f) * height);
                        Paint paint = new Paint();
                        paint.setColor(-65536);
                        float f10 = i12;
                        float f11 = i13;
                        float f12 = i12 + ((int) ((parseInt3 / 1080.0f) * width));
                        canvas.drawLine(f10, f11, f12, f11, paint);
                        float parseInt4 = i13 + ((int) ((Integer.parseInt(split[3]) / 1920.0f) * height));
                        canvas.drawLine(f12, f11, f12, parseInt4, paint);
                        canvas.drawLine(f12, parseInt4, f10, parseInt4, paint);
                        canvas.drawLine(f10, parseInt4, f10, f11, paint);
                        paint.setColor(-16711936);
                        canvas.drawLine(f10, f11, f12, parseInt4, paint);
                        canvas.drawLine(f10, parseInt4, f12, f11, paint);
                    }
                }
            }
        }
    }

    protected void e(boolean z10, View view, i3.e eVar, b bVar, SparseArray sparseArray) {
        i3.e eVar2;
        i3.e eVar3;
        i3.e eVar4;
        i3.e eVar5;
        int i10;
        bVar.a();
        bVar.f3105w0 = false;
        eVar.f1(view.getVisibility());
        if (bVar.f3079j0) {
            eVar.Q0(true);
            eVar.f1(8);
        }
        eVar.y0(view);
        if (view instanceof androidx.constraintlayout.widget.b) {
            ((androidx.constraintlayout.widget.b) view).h(eVar, this.f3050r.K1());
        }
        if (bVar.f3075h0) {
            i3.g gVar = (i3.g) eVar;
            int i11 = bVar.f3097s0;
            int i12 = bVar.f3099t0;
            float f10 = bVar.f3101u0;
            if (f10 != -1.0f) {
                gVar.v1(f10);
                return;
            } else if (i11 != -1) {
                gVar.t1(i11);
                return;
            } else {
                if (i12 != -1) {
                    gVar.u1(i12);
                    return;
                }
                return;
            }
        }
        int i13 = bVar.f3083l0;
        int i14 = bVar.f3085m0;
        int i15 = bVar.f3087n0;
        int i16 = bVar.f3089o0;
        int i17 = bVar.f3091p0;
        int i18 = bVar.f3093q0;
        float f11 = bVar.f3095r0;
        int i19 = bVar.f3090p;
        if (i19 != -1) {
            i3.e eVar6 = (i3.e) sparseArray.get(i19);
            if (eVar6 != null) {
                eVar.j(eVar6, bVar.f3094r, bVar.f3092q);
            }
        } else {
            if (i13 != -1) {
                i3.e eVar7 = (i3.e) sparseArray.get(i13);
                if (eVar7 != null) {
                    d.b bVar2 = d.b.LEFT;
                    eVar.c0(bVar2, eVar7, bVar2, ((ViewGroup.MarginLayoutParams) bVar).leftMargin, i17);
                }
            } else if (i14 != -1 && (eVar2 = (i3.e) sparseArray.get(i14)) != null) {
                eVar.c0(d.b.LEFT, eVar2, d.b.RIGHT, ((ViewGroup.MarginLayoutParams) bVar).leftMargin, i17);
            }
            if (i15 != -1) {
                i3.e eVar8 = (i3.e) sparseArray.get(i15);
                if (eVar8 != null) {
                    eVar.c0(d.b.RIGHT, eVar8, d.b.LEFT, ((ViewGroup.MarginLayoutParams) bVar).rightMargin, i18);
                }
            } else if (i16 != -1 && (eVar3 = (i3.e) sparseArray.get(i16)) != null) {
                d.b bVar3 = d.b.RIGHT;
                eVar.c0(bVar3, eVar3, bVar3, ((ViewGroup.MarginLayoutParams) bVar).rightMargin, i18);
            }
            int i20 = bVar.f3076i;
            if (i20 != -1) {
                i3.e eVar9 = (i3.e) sparseArray.get(i20);
                if (eVar9 != null) {
                    d.b bVar4 = d.b.TOP;
                    eVar.c0(bVar4, eVar9, bVar4, ((ViewGroup.MarginLayoutParams) bVar).topMargin, bVar.f3106x);
                }
            } else {
                int i21 = bVar.f3078j;
                if (i21 != -1 && (eVar4 = (i3.e) sparseArray.get(i21)) != null) {
                    eVar.c0(d.b.TOP, eVar4, d.b.BOTTOM, ((ViewGroup.MarginLayoutParams) bVar).topMargin, bVar.f3106x);
                }
            }
            int i22 = bVar.f3080k;
            if (i22 != -1) {
                i3.e eVar10 = (i3.e) sparseArray.get(i22);
                if (eVar10 != null) {
                    eVar.c0(d.b.BOTTOM, eVar10, d.b.TOP, ((ViewGroup.MarginLayoutParams) bVar).bottomMargin, bVar.f3108z);
                }
            } else {
                int i23 = bVar.f3082l;
                if (i23 != -1 && (eVar5 = (i3.e) sparseArray.get(i23)) != null) {
                    d.b bVar5 = d.b.BOTTOM;
                    eVar.c0(bVar5, eVar5, bVar5, ((ViewGroup.MarginLayoutParams) bVar).bottomMargin, bVar.f3108z);
                }
            }
            int i24 = bVar.f3084m;
            if (i24 != -1) {
                z(eVar, bVar, sparseArray, i24, d.b.BASELINE);
            } else {
                int i25 = bVar.f3086n;
                if (i25 != -1) {
                    z(eVar, bVar, sparseArray, i25, d.b.TOP);
                } else {
                    int i26 = bVar.f3088o;
                    if (i26 != -1) {
                        z(eVar, bVar, sparseArray, i26, d.b.BOTTOM);
                    }
                }
            }
            if (f11 >= BitmapDescriptorFactory.HUE_RED) {
                eVar.J0(f11);
            }
            float f12 = bVar.H;
            if (f12 >= BitmapDescriptorFactory.HUE_RED) {
                eVar.Z0(f12);
            }
        }
        if (z10 && ((i10 = bVar.X) != -1 || bVar.Y != -1)) {
            eVar.X0(i10, bVar.Y);
        }
        if (bVar.f3069e0) {
            eVar.M0(e.b.FIXED);
            eVar.g1(((ViewGroup.MarginLayoutParams) bVar).width);
            if (((ViewGroup.MarginLayoutParams) bVar).width == -2) {
                eVar.M0(e.b.WRAP_CONTENT);
            }
        } else if (((ViewGroup.MarginLayoutParams) bVar).width == -1) {
            if (bVar.f3061a0) {
                eVar.M0(e.b.MATCH_CONSTRAINT);
            } else {
                eVar.M0(e.b.MATCH_PARENT);
            }
            eVar.m(d.b.LEFT).f22329g = ((ViewGroup.MarginLayoutParams) bVar).leftMargin;
            eVar.m(d.b.RIGHT).f22329g = ((ViewGroup.MarginLayoutParams) bVar).rightMargin;
        } else {
            eVar.M0(e.b.MATCH_CONSTRAINT);
            eVar.g1(0);
        }
        if (bVar.f3071f0) {
            eVar.c1(e.b.FIXED);
            eVar.I0(((ViewGroup.MarginLayoutParams) bVar).height);
            if (((ViewGroup.MarginLayoutParams) bVar).height == -2) {
                eVar.c1(e.b.WRAP_CONTENT);
            }
        } else if (((ViewGroup.MarginLayoutParams) bVar).height == -1) {
            if (bVar.f3063b0) {
                eVar.c1(e.b.MATCH_CONSTRAINT);
            } else {
                eVar.c1(e.b.MATCH_PARENT);
            }
            eVar.m(d.b.TOP).f22329g = ((ViewGroup.MarginLayoutParams) bVar).topMargin;
            eVar.m(d.b.BOTTOM).f22329g = ((ViewGroup.MarginLayoutParams) bVar).bottomMargin;
        } else {
            eVar.c1(e.b.MATCH_CONSTRAINT);
            eVar.I0(0);
        }
        eVar.A0(bVar.I);
        eVar.O0(bVar.L);
        eVar.e1(bVar.M);
        eVar.K0(bVar.N);
        eVar.a1(bVar.O);
        eVar.h1(bVar.f3067d0);
        eVar.N0(bVar.P, bVar.R, bVar.T, bVar.V);
        eVar.d1(bVar.Q, bVar.S, bVar.U, bVar.W);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // android.view.ViewGroup
    /* renamed from: f, reason: merged with bridge method [inline-methods] */
    public b generateDefaultLayoutParams() {
        return new b(-2, -2);
    }

    @Override // android.view.View
    public void forceLayout() {
        s();
        super.forceLayout();
    }

    @Override // android.view.ViewGroup
    /* renamed from: g, reason: merged with bridge method [inline-methods] */
    public b generateLayoutParams(AttributeSet attributeSet) {
        return new b(getContext(), attributeSet);
    }

    public int getMaxHeight() {
        return this.f3054v;
    }

    public int getMaxWidth() {
        return this.f3053u;
    }

    public int getMinHeight() {
        return this.f3052t;
    }

    public int getMinWidth() {
        return this.f3051s;
    }

    public int getOptimizationLevel() {
        return this.f3050r.F1();
    }

    public String getSceneString() {
        int id2;
        StringBuilder sb2 = new StringBuilder();
        if (this.f3050r.f22361o == null) {
            int id3 = getId();
            if (id3 != -1) {
                this.f3050r.f22361o = getContext().getResources().getResourceEntryName(id3);
            } else {
                this.f3050r.f22361o = "parent";
            }
        }
        if (this.f3050r.r() == null) {
            i3.f fVar = this.f3050r;
            fVar.z0(fVar.f22361o);
            Log.v("ConstraintLayout", " setDebugName " + this.f3050r.r());
        }
        Iterator it = this.f3050r.n1().iterator();
        while (it.hasNext()) {
            i3.e eVar = (i3.e) it.next();
            View view = (View) eVar.q();
            if (view != null) {
                if (eVar.f22361o == null && (id2 = view.getId()) != -1) {
                    eVar.f22361o = getContext().getResources().getResourceEntryName(id2);
                }
                if (eVar.r() == null) {
                    eVar.z0(eVar.f22361o);
                    Log.v("ConstraintLayout", " setDebugName " + eVar.r());
                }
            }
        }
        this.f3050r.M(sb2);
        return sb2.toString();
    }

    public Object h(int i10, Object obj) {
        if (i10 != 0 || !(obj instanceof String)) {
            return null;
        }
        String str = (String) obj;
        HashMap hashMap = this.B;
        if (hashMap == null || !hashMap.containsKey(str)) {
            return null;
        }
        return this.B.get(str);
    }

    public View j(int i10) {
        return (View) this.f3048p.get(i10);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // android.view.ViewGroup, android.view.View
    public void onLayout(boolean z10, int i10, int i11, int i12, int i13) {
        int childCount = getChildCount();
        boolean isInEditMode = isInEditMode();
        for (int i14 = 0; i14 < childCount; i14++) {
            View childAt = getChildAt(i14);
            b bVar = (b) childAt.getLayoutParams();
            i3.e eVar = bVar.f3103v0;
            if ((childAt.getVisibility() != 8 || bVar.f3075h0 || bVar.f3077i0 || bVar.f3081k0 || isInEditMode) && !bVar.f3079j0) {
                int V = eVar.V();
                int W = eVar.W();
                childAt.layout(V, W, eVar.U() + V, eVar.v() + W);
            }
        }
        int size = this.f3049q.size();
        if (size > 0) {
            for (int i15 = 0; i15 < size; i15++) {
                ((androidx.constraintlayout.widget.b) this.f3049q.get(i15)).i(this);
            }
        }
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // android.view.View
    public void onMeasure(int i10, int i11) {
        if (this.K == i10) {
            int i12 = this.L;
        }
        if (!this.f3055w) {
            int childCount = getChildCount();
            int i13 = 0;
            while (true) {
                if (i13 >= childCount) {
                    break;
                }
                if (getChildAt(i13).isLayoutRequested()) {
                    this.f3055w = true;
                    break;
                }
                i13++;
            }
        }
        boolean z10 = this.f3055w;
        this.K = i10;
        this.L = i11;
        this.f3050r.T1(r());
        if (this.f3055w) {
            this.f3055w = false;
            if (A()) {
                this.f3050r.V1();
            }
        }
        v(this.f3050r, this.f3056x, i10, i11);
        u(i10, i11, this.f3050r.U(), this.f3050r.v(), this.f3050r.L1(), this.f3050r.J1());
    }

    @Override // android.view.ViewGroup
    public void onViewAdded(View view) {
        super.onViewAdded(view);
        i3.e p10 = p(view);
        if ((view instanceof Guideline) && !(p10 instanceof i3.g)) {
            b bVar = (b) view.getLayoutParams();
            i3.g gVar = new i3.g();
            bVar.f3103v0 = gVar;
            bVar.f3075h0 = true;
            gVar.w1(bVar.Z);
        }
        if (view instanceof androidx.constraintlayout.widget.b) {
            androidx.constraintlayout.widget.b bVar2 = (androidx.constraintlayout.widget.b) view;
            bVar2.m();
            ((b) view.getLayoutParams()).f3077i0 = true;
            if (!this.f3049q.contains(bVar2)) {
                this.f3049q.add(bVar2);
            }
        }
        this.f3048p.put(view.getId(), view);
        this.f3055w = true;
    }

    @Override // android.view.ViewGroup
    public void onViewRemoved(View view) {
        super.onViewRemoved(view);
        this.f3048p.remove(view.getId());
        this.f3050r.p1(p(view));
        this.f3049q.remove(view);
        this.f3055w = true;
    }

    public final i3.e p(View view) {
        if (view == this) {
            return this.f3050r;
        }
        if (view == null) {
            return null;
        }
        if (view.getLayoutParams() instanceof b) {
            return ((b) view.getLayoutParams()).f3103v0;
        }
        view.setLayoutParams(generateLayoutParams(view.getLayoutParams()));
        if (view.getLayoutParams() instanceof b) {
            return ((b) view.getLayoutParams()).f3103v0;
        }
        return null;
    }

    protected boolean r() {
        return ((getContext().getApplicationInfo().flags & 4194304) != 0) && 1 == getLayoutDirection();
    }

    @Override // android.view.View, android.view.ViewParent
    public void requestLayout() {
        s();
        super.requestLayout();
    }

    public void setConstraintSet(d dVar) {
        this.f3057y = dVar;
    }

    @Override // android.view.View
    public void setId(int i10) {
        this.f3048p.remove(getId());
        super.setId(i10);
        this.f3048p.put(getId(), this);
    }

    public void setMaxHeight(int i10) {
        if (i10 == this.f3054v) {
            return;
        }
        this.f3054v = i10;
        requestLayout();
    }

    public void setMaxWidth(int i10) {
        if (i10 == this.f3053u) {
            return;
        }
        this.f3053u = i10;
        requestLayout();
    }

    public void setMinHeight(int i10) {
        if (i10 == this.f3052t) {
            return;
        }
        this.f3052t = i10;
        requestLayout();
    }

    public void setMinWidth(int i10) {
        if (i10 == this.f3051s) {
            return;
        }
        this.f3051s = i10;
        requestLayout();
    }

    public void setOnConstraintsChanged(e eVar) {
        androidx.constraintlayout.widget.c cVar = this.f3058z;
        if (cVar != null) {
            cVar.c(eVar);
        }
    }

    public void setOptimizationLevel(int i10) {
        this.f3056x = i10;
        this.f3050r.R1(i10);
    }

    @Override // android.view.ViewGroup
    public boolean shouldDelayChildPressedState() {
        return false;
    }

    protected void t(int i10) {
        this.f3058z = new androidx.constraintlayout.widget.c(getContext(), this, i10);
    }

    protected void u(int i10, int i11, int i12, int i13, boolean z10, boolean z11) {
        c cVar = this.J;
        int i14 = cVar.f3114e;
        int resolveSizeAndState = View.resolveSizeAndState(i12 + cVar.f3113d, i10, 0);
        int resolveSizeAndState2 = View.resolveSizeAndState(i13 + i14, i11, 0) & 16777215;
        int min = Math.min(this.f3053u, resolveSizeAndState & 16777215);
        int min2 = Math.min(this.f3054v, resolveSizeAndState2);
        if (z10) {
            min |= 16777216;
        }
        if (z11) {
            min2 |= 16777216;
        }
        setMeasuredDimension(min, min2);
        this.C = min;
        this.D = min2;
    }

    protected void v(i3.f fVar, int i10, int i11, int i12) {
        int mode = View.MeasureSpec.getMode(i11);
        int size = View.MeasureSpec.getSize(i11);
        int mode2 = View.MeasureSpec.getMode(i12);
        int size2 = View.MeasureSpec.getSize(i12);
        int max = Math.max(0, getPaddingTop());
        int max2 = Math.max(0, getPaddingBottom());
        int i13 = max + max2;
        int paddingWidth = getPaddingWidth();
        this.J.c(i11, i12, max, max2, paddingWidth, i13);
        int max3 = Math.max(0, getPaddingStart());
        int max4 = Math.max(0, getPaddingEnd());
        if (max3 <= 0 && max4 <= 0) {
            max4 = Math.max(0, getPaddingLeft());
        } else if (!r()) {
            max4 = max3;
        }
        int i14 = size - paddingWidth;
        int i15 = size2 - i13;
        y(fVar, mode, i14, mode2, i15);
        fVar.M1(i10, mode, i14, mode2, i15, this.C, this.D, max4, max);
    }

    public void x(int i10, Object obj, Object obj2) {
        if (i10 == 0 && (obj instanceof String) && (obj2 instanceof Integer)) {
            if (this.B == null) {
                this.B = new HashMap();
            }
            String str = (String) obj;
            int indexOf = str.indexOf(RemoteSettings.FORWARD_SLASH_STRING);
            if (indexOf != -1) {
                str = str.substring(indexOf + 1);
            }
            this.B.put(str, Integer.valueOf(((Integer) obj2).intValue()));
        }
    }

    protected void y(i3.f fVar, int i10, int i11, int i12, int i13) {
        e.b bVar;
        c cVar = this.J;
        int i14 = cVar.f3114e;
        int i15 = cVar.f3113d;
        e.b bVar2 = e.b.FIXED;
        int childCount = getChildCount();
        if (i10 == Integer.MIN_VALUE) {
            bVar = e.b.WRAP_CONTENT;
            if (childCount == 0) {
                i11 = Math.max(0, this.f3051s);
            }
        } else if (i10 == 0) {
            bVar = e.b.WRAP_CONTENT;
            if (childCount == 0) {
                i11 = Math.max(0, this.f3051s);
            }
            i11 = 0;
        } else if (i10 != 1073741824) {
            bVar = bVar2;
            i11 = 0;
        } else {
            i11 = Math.min(this.f3053u - i15, i11);
            bVar = bVar2;
        }
        if (i12 == Integer.MIN_VALUE) {
            bVar2 = e.b.WRAP_CONTENT;
            if (childCount == 0) {
                i13 = Math.max(0, this.f3052t);
            }
        } else if (i12 != 0) {
            if (i12 == 1073741824) {
                i13 = Math.min(this.f3054v - i14, i13);
            }
            i13 = 0;
        } else {
            bVar2 = e.b.WRAP_CONTENT;
            if (childCount == 0) {
                i13 = Math.max(0, this.f3052t);
            }
            i13 = 0;
        }
        if (i11 != fVar.U() || i13 != fVar.v()) {
            fVar.I1();
        }
        fVar.i1(0);
        fVar.j1(0);
        fVar.T0(this.f3053u - i15);
        fVar.S0(this.f3054v - i14);
        fVar.W0(0);
        fVar.V0(0);
        fVar.M0(bVar);
        fVar.g1(i11);
        fVar.c1(bVar2);
        fVar.I0(i13);
        fVar.W0(this.f3051s - i15);
        fVar.V0(this.f3052t - i14);
    }

    @Override // android.view.ViewGroup
    protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return new b(layoutParams);
    }

    public ConstraintLayout(Context context, AttributeSet attributeSet, int i10) {
        super(context, attributeSet, i10);
        this.f3048p = new SparseArray();
        this.f3049q = new ArrayList(4);
        this.f3050r = new i3.f();
        this.f3051s = 0;
        this.f3052t = 0;
        this.f3053u = Api.BaseClientBuilder.API_PRIORITY_OTHER;
        this.f3054v = Api.BaseClientBuilder.API_PRIORITY_OTHER;
        this.f3055w = true;
        this.f3056x = 257;
        this.f3057y = null;
        this.f3058z = null;
        this.A = -1;
        this.B = new HashMap();
        this.C = -1;
        this.D = -1;
        this.E = -1;
        this.F = -1;
        this.G = 0;
        this.H = 0;
        this.I = new SparseArray();
        this.J = new c(this);
        this.K = 0;
        this.L = 0;
        q(attributeSet, i10, 0);
    }

    /* loaded from: classes.dex */
    public static class b extends ViewGroup.MarginLayoutParams {
        public int A;
        public int B;
        public int C;
        public int D;
        boolean E;
        boolean F;
        public float G;
        public float H;
        public String I;
        float J;
        int K;
        public float L;
        public float M;
        public int N;
        public int O;
        public int P;
        public int Q;
        public int R;
        public int S;
        public int T;
        public int U;
        public float V;
        public float W;
        public int X;
        public int Y;
        public int Z;

        /* renamed from: a, reason: collision with root package name */
        public int f3060a;

        /* renamed from: a0, reason: collision with root package name */
        public boolean f3061a0;

        /* renamed from: b, reason: collision with root package name */
        public int f3062b;

        /* renamed from: b0, reason: collision with root package name */
        public boolean f3063b0;

        /* renamed from: c, reason: collision with root package name */
        public float f3064c;

        /* renamed from: c0, reason: collision with root package name */
        public String f3065c0;

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

        /* renamed from: d0, reason: collision with root package name */
        public int f3067d0;

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

        /* renamed from: e0, reason: collision with root package name */
        boolean f3069e0;

        /* renamed from: f, reason: collision with root package name */
        public int f3070f;

        /* renamed from: f0, reason: collision with root package name */
        boolean f3071f0;

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

        /* renamed from: g0, reason: collision with root package name */
        boolean f3073g0;

        /* renamed from: h, reason: collision with root package name */
        public int f3074h;

        /* renamed from: h0, reason: collision with root package name */
        boolean f3075h0;

        /* renamed from: i, reason: collision with root package name */
        public int f3076i;

        /* renamed from: i0, reason: collision with root package name */
        boolean f3077i0;

        /* renamed from: j, reason: collision with root package name */
        public int f3078j;

        /* renamed from: j0, reason: collision with root package name */
        boolean f3079j0;

        /* renamed from: k, reason: collision with root package name */
        public int f3080k;

        /* renamed from: k0, reason: collision with root package name */
        boolean f3081k0;

        /* renamed from: l, reason: collision with root package name */
        public int f3082l;

        /* renamed from: l0, reason: collision with root package name */
        int f3083l0;

        /* renamed from: m, reason: collision with root package name */
        public int f3084m;

        /* renamed from: m0, reason: collision with root package name */
        int f3085m0;

        /* renamed from: n, reason: collision with root package name */
        public int f3086n;

        /* renamed from: n0, reason: collision with root package name */
        int f3087n0;

        /* renamed from: o, reason: collision with root package name */
        public int f3088o;

        /* renamed from: o0, reason: collision with root package name */
        int f3089o0;

        /* renamed from: p, reason: collision with root package name */
        public int f3090p;

        /* renamed from: p0, reason: collision with root package name */
        int f3091p0;

        /* renamed from: q, reason: collision with root package name */
        public int f3092q;

        /* renamed from: q0, reason: collision with root package name */
        int f3093q0;

        /* renamed from: r, reason: collision with root package name */
        public float f3094r;

        /* renamed from: r0, reason: collision with root package name */
        float f3095r0;

        /* renamed from: s, reason: collision with root package name */
        public int f3096s;

        /* renamed from: s0, reason: collision with root package name */
        int f3097s0;

        /* renamed from: t, reason: collision with root package name */
        public int f3098t;

        /* renamed from: t0, reason: collision with root package name */
        int f3099t0;

        /* renamed from: u, reason: collision with root package name */
        public int f3100u;

        /* renamed from: u0, reason: collision with root package name */
        float f3101u0;

        /* renamed from: v, reason: collision with root package name */
        public int f3102v;

        /* renamed from: v0, reason: collision with root package name */
        i3.e f3103v0;

        /* renamed from: w, reason: collision with root package name */
        public int f3104w;

        /* renamed from: w0, reason: collision with root package name */
        public boolean f3105w0;

        /* renamed from: x, reason: collision with root package name */
        public int f3106x;

        /* renamed from: y, reason: collision with root package name */
        public int f3107y;

        /* renamed from: z, reason: collision with root package name */
        public int f3108z;

        /* loaded from: classes.dex */
        private static class a {

            /* renamed from: a, reason: collision with root package name */
            public static final SparseIntArray f3109a;

            static {
                SparseIntArray sparseIntArray = new SparseIntArray();
                f3109a = sparseIntArray;
                sparseIntArray.append(g.f3406q2, 64);
                sparseIntArray.append(g.T1, 65);
                sparseIntArray.append(g.f3280c2, 8);
                sparseIntArray.append(g.f3289d2, 9);
                sparseIntArray.append(g.f3307f2, 10);
                sparseIntArray.append(g.f3316g2, 11);
                sparseIntArray.append(g.f3370m2, 12);
                sparseIntArray.append(g.f3361l2, 13);
                sparseIntArray.append(g.J1, 14);
                sparseIntArray.append(g.I1, 15);
                sparseIntArray.append(g.E1, 16);
                sparseIntArray.append(g.G1, 52);
                sparseIntArray.append(g.F1, 53);
                sparseIntArray.append(g.K1, 2);
                sparseIntArray.append(g.M1, 3);
                sparseIntArray.append(g.L1, 4);
                sparseIntArray.append(g.f3451v2, 49);
                sparseIntArray.append(g.f3460w2, 50);
                sparseIntArray.append(g.Q1, 5);
                sparseIntArray.append(g.R1, 6);
                sparseIntArray.append(g.S1, 7);
                sparseIntArray.append(g.f3486z1, 67);
                sparseIntArray.append(g.f3387o1, 1);
                sparseIntArray.append(g.f3325h2, 17);
                sparseIntArray.append(g.f3334i2, 18);
                sparseIntArray.append(g.P1, 19);
                sparseIntArray.append(g.O1, 20);
                sparseIntArray.append(g.A2, 21);
                sparseIntArray.append(g.D2, 22);
                sparseIntArray.append(g.B2, 23);
                sparseIntArray.append(g.f3478y2, 24);
                sparseIntArray.append(g.C2, 25);
                sparseIntArray.append(g.f3487z2, 26);
                sparseIntArray.append(g.f3469x2, 55);
                sparseIntArray.append(g.E2, 54);
                sparseIntArray.append(g.Y1, 29);
                sparseIntArray.append(g.f3379n2, 30);
                sparseIntArray.append(g.N1, 44);
                sparseIntArray.append(g.f3262a2, 45);
                sparseIntArray.append(g.f3397p2, 46);
                sparseIntArray.append(g.Z1, 47);
                sparseIntArray.append(g.f3388o2, 48);
                sparseIntArray.append(g.C1, 27);
                sparseIntArray.append(g.B1, 28);
                sparseIntArray.append(g.f3415r2, 31);
                sparseIntArray.append(g.U1, 32);
                sparseIntArray.append(g.f3433t2, 33);
                sparseIntArray.append(g.f3424s2, 34);
                sparseIntArray.append(g.f3442u2, 35);
                sparseIntArray.append(g.W1, 36);
                sparseIntArray.append(g.V1, 37);
                sparseIntArray.append(g.X1, 38);
                sparseIntArray.append(g.f3271b2, 39);
                sparseIntArray.append(g.f3352k2, 40);
                sparseIntArray.append(g.f3298e2, 41);
                sparseIntArray.append(g.H1, 42);
                sparseIntArray.append(g.D1, 43);
                sparseIntArray.append(g.f3343j2, 51);
                sparseIntArray.append(g.G2, 66);
            }
        }

        public b(Context context, AttributeSet attributeSet) {
            super(context, attributeSet);
            this.f3060a = -1;
            this.f3062b = -1;
            this.f3064c = -1.0f;
            this.f3066d = true;
            this.f3068e = -1;
            this.f3070f = -1;
            this.f3072g = -1;
            this.f3074h = -1;
            this.f3076i = -1;
            this.f3078j = -1;
            this.f3080k = -1;
            this.f3082l = -1;
            this.f3084m = -1;
            this.f3086n = -1;
            this.f3088o = -1;
            this.f3090p = -1;
            this.f3092q = 0;
            this.f3094r = BitmapDescriptorFactory.HUE_RED;
            this.f3096s = -1;
            this.f3098t = -1;
            this.f3100u = -1;
            this.f3102v = -1;
            this.f3104w = Integer.MIN_VALUE;
            this.f3106x = Integer.MIN_VALUE;
            this.f3107y = Integer.MIN_VALUE;
            this.f3108z = Integer.MIN_VALUE;
            this.A = Integer.MIN_VALUE;
            this.B = Integer.MIN_VALUE;
            this.C = Integer.MIN_VALUE;
            this.D = 0;
            this.E = true;
            this.F = true;
            this.G = 0.5f;
            this.H = 0.5f;
            this.I = null;
            this.J = BitmapDescriptorFactory.HUE_RED;
            this.K = 1;
            this.L = -1.0f;
            this.M = -1.0f;
            this.N = 0;
            this.O = 0;
            this.P = 0;
            this.Q = 0;
            this.R = 0;
            this.S = 0;
            this.T = 0;
            this.U = 0;
            this.V = 1.0f;
            this.W = 1.0f;
            this.X = -1;
            this.Y = -1;
            this.Z = -1;
            this.f3061a0 = false;
            this.f3063b0 = false;
            this.f3065c0 = null;
            this.f3067d0 = 0;
            this.f3069e0 = true;
            this.f3071f0 = true;
            this.f3073g0 = false;
            this.f3075h0 = false;
            this.f3077i0 = false;
            this.f3079j0 = false;
            this.f3081k0 = false;
            this.f3083l0 = -1;
            this.f3085m0 = -1;
            this.f3087n0 = -1;
            this.f3089o0 = -1;
            this.f3091p0 = Integer.MIN_VALUE;
            this.f3093q0 = Integer.MIN_VALUE;
            this.f3095r0 = 0.5f;
            this.f3103v0 = new i3.e();
            this.f3105w0 = false;
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, g.f3378n1);
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i10 = 0; i10 < indexCount; i10++) {
                int index = obtainStyledAttributes.getIndex(i10);
                int i11 = a.f3109a.get(index);
                switch (i11) {
                    case 1:
                        this.Z = obtainStyledAttributes.getInt(index, this.Z);
                        break;
                    case 2:
                        int resourceId = obtainStyledAttributes.getResourceId(index, this.f3090p);
                        this.f3090p = resourceId;
                        if (resourceId == -1) {
                            this.f3090p = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 3:
                        this.f3092q = obtainStyledAttributes.getDimensionPixelSize(index, this.f3092q);
                        break;
                    case 4:
                        float f10 = obtainStyledAttributes.getFloat(index, this.f3094r) % 360.0f;
                        this.f3094r = f10;
                        if (f10 < BitmapDescriptorFactory.HUE_RED) {
                            this.f3094r = (360.0f - f10) % 360.0f;
                            break;
                        } else {
                            break;
                        }
                    case 5:
                        this.f3060a = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3060a);
                        break;
                    case 6:
                        this.f3062b = obtainStyledAttributes.getDimensionPixelOffset(index, this.f3062b);
                        break;
                    case 7:
                        this.f3064c = obtainStyledAttributes.getFloat(index, this.f3064c);
                        break;
                    case 8:
                        int resourceId2 = obtainStyledAttributes.getResourceId(index, this.f3068e);
                        this.f3068e = resourceId2;
                        if (resourceId2 == -1) {
                            this.f3068e = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 9:
                        int resourceId3 = obtainStyledAttributes.getResourceId(index, this.f3070f);
                        this.f3070f = resourceId3;
                        if (resourceId3 == -1) {
                            this.f3070f = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 10:
                        int resourceId4 = obtainStyledAttributes.getResourceId(index, this.f3072g);
                        this.f3072g = resourceId4;
                        if (resourceId4 == -1) {
                            this.f3072g = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 11:
                        int resourceId5 = obtainStyledAttributes.getResourceId(index, this.f3074h);
                        this.f3074h = resourceId5;
                        if (resourceId5 == -1) {
                            this.f3074h = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 12:
                        int resourceId6 = obtainStyledAttributes.getResourceId(index, this.f3076i);
                        this.f3076i = resourceId6;
                        if (resourceId6 == -1) {
                            this.f3076i = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 13:
                        int resourceId7 = obtainStyledAttributes.getResourceId(index, this.f3078j);
                        this.f3078j = resourceId7;
                        if (resourceId7 == -1) {
                            this.f3078j = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 14:
                        int resourceId8 = obtainStyledAttributes.getResourceId(index, this.f3080k);
                        this.f3080k = resourceId8;
                        if (resourceId8 == -1) {
                            this.f3080k = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 15:
                        int resourceId9 = obtainStyledAttributes.getResourceId(index, this.f3082l);
                        this.f3082l = resourceId9;
                        if (resourceId9 == -1) {
                            this.f3082l = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 16:
                        int resourceId10 = obtainStyledAttributes.getResourceId(index, this.f3084m);
                        this.f3084m = resourceId10;
                        if (resourceId10 == -1) {
                            this.f3084m = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 17:
                        int resourceId11 = obtainStyledAttributes.getResourceId(index, this.f3096s);
                        this.f3096s = resourceId11;
                        if (resourceId11 == -1) {
                            this.f3096s = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 18:
                        int resourceId12 = obtainStyledAttributes.getResourceId(index, this.f3098t);
                        this.f3098t = resourceId12;
                        if (resourceId12 == -1) {
                            this.f3098t = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 19:
                        int resourceId13 = obtainStyledAttributes.getResourceId(index, this.f3100u);
                        this.f3100u = resourceId13;
                        if (resourceId13 == -1) {
                            this.f3100u = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 20:
                        int resourceId14 = obtainStyledAttributes.getResourceId(index, this.f3102v);
                        this.f3102v = resourceId14;
                        if (resourceId14 == -1) {
                            this.f3102v = obtainStyledAttributes.getInt(index, -1);
                            break;
                        } else {
                            break;
                        }
                    case 21:
                        this.f3104w = obtainStyledAttributes.getDimensionPixelSize(index, this.f3104w);
                        break;
                    case 22:
                        this.f3106x = obtainStyledAttributes.getDimensionPixelSize(index, this.f3106x);
                        break;
                    case 23:
                        this.f3107y = obtainStyledAttributes.getDimensionPixelSize(index, this.f3107y);
                        break;
                    case 24:
                        this.f3108z = obtainStyledAttributes.getDimensionPixelSize(index, this.f3108z);
                        break;
                    case 25:
                        this.A = obtainStyledAttributes.getDimensionPixelSize(index, this.A);
                        break;
                    case 26:
                        this.B = obtainStyledAttributes.getDimensionPixelSize(index, this.B);
                        break;
                    case 27:
                        this.f3061a0 = obtainStyledAttributes.getBoolean(index, this.f3061a0);
                        break;
                    case 28:
                        this.f3063b0 = obtainStyledAttributes.getBoolean(index, this.f3063b0);
                        break;
                    case 29:
                        this.G = obtainStyledAttributes.getFloat(index, this.G);
                        break;
                    case 30:
                        this.H = obtainStyledAttributes.getFloat(index, this.H);
                        break;
                    case 31:
                        int i12 = obtainStyledAttributes.getInt(index, 0);
                        this.P = i12;
                        if (i12 == 1) {
                            Log.e("ConstraintLayout", "layout_constraintWidth_default=\"wrap\" is deprecated.\nUse layout_width=\"WRAP_CONTENT\" and layout_constrainedWidth=\"true\" instead.");
                            break;
                        } else {
                            break;
                        }
                    case 32:
                        int i13 = obtainStyledAttributes.getInt(index, 0);
                        this.Q = i13;
                        if (i13 == 1) {
                            Log.e("ConstraintLayout", "layout_constraintHeight_default=\"wrap\" is deprecated.\nUse layout_height=\"WRAP_CONTENT\" and layout_constrainedHeight=\"true\" instead.");
                            break;
                        } else {
                            break;
                        }
                    case 33:
                        try {
                            this.R = obtainStyledAttributes.getDimensionPixelSize(index, this.R);
                            break;
                        } catch (Exception unused) {
                            if (obtainStyledAttributes.getInt(index, this.R) == -2) {
                                this.R = -2;
                                break;
                            } else {
                                break;
                            }
                        }
                    case 34:
                        try {
                            this.T = obtainStyledAttributes.getDimensionPixelSize(index, this.T);
                            break;
                        } catch (Exception unused2) {
                            if (obtainStyledAttributes.getInt(index, this.T) == -2) {
                                this.T = -2;
                                break;
                            } else {
                                break;
                            }
                        }
                    case 35:
                        this.V = Math.max(BitmapDescriptorFactory.HUE_RED, obtainStyledAttributes.getFloat(index, this.V));
                        this.P = 2;
                        break;
                    case 36:
                        try {
                            this.S = obtainStyledAttributes.getDimensionPixelSize(index, this.S);
                            break;
                        } catch (Exception unused3) {
                            if (obtainStyledAttributes.getInt(index, this.S) == -2) {
                                this.S = -2;
                                break;
                            } else {
                                break;
                            }
                        }
                    case 37:
                        try {
                            this.U = obtainStyledAttributes.getDimensionPixelSize(index, this.U);
                            break;
                        } catch (Exception unused4) {
                            if (obtainStyledAttributes.getInt(index, this.U) == -2) {
                                this.U = -2;
                                break;
                            } else {
                                break;
                            }
                        }
                    case 38:
                        this.W = Math.max(BitmapDescriptorFactory.HUE_RED, obtainStyledAttributes.getFloat(index, this.W));
                        this.Q = 2;
                        break;
                    default:
                        switch (i11) {
                            case 44:
                                d.q(this, obtainStyledAttributes.getString(index));
                                break;
                            case 45:
                                this.L = obtainStyledAttributes.getFloat(index, this.L);
                                break;
                            case 46:
                                this.M = obtainStyledAttributes.getFloat(index, this.M);
                                break;
                            case 47:
                                this.N = obtainStyledAttributes.getInt(index, 0);
                                break;
                            case 48:
                                this.O = obtainStyledAttributes.getInt(index, 0);
                                break;
                            case 49:
                                this.X = obtainStyledAttributes.getDimensionPixelOffset(index, this.X);
                                break;
                            case 50:
                                this.Y = obtainStyledAttributes.getDimensionPixelOffset(index, this.Y);
                                break;
                            case 51:
                                this.f3065c0 = obtainStyledAttributes.getString(index);
                                break;
                            case 52:
                                int resourceId15 = obtainStyledAttributes.getResourceId(index, this.f3086n);
                                this.f3086n = resourceId15;
                                if (resourceId15 == -1) {
                                    this.f3086n = obtainStyledAttributes.getInt(index, -1);
                                    break;
                                } else {
                                    break;
                                }
                            case 53:
                                int resourceId16 = obtainStyledAttributes.getResourceId(index, this.f3088o);
                                this.f3088o = resourceId16;
                                if (resourceId16 == -1) {
                                    this.f3088o = obtainStyledAttributes.getInt(index, -1);
                                    break;
                                } else {
                                    break;
                                }
                            case 54:
                                this.D = obtainStyledAttributes.getDimensionPixelSize(index, this.D);
                                break;
                            case 55:
                                this.C = obtainStyledAttributes.getDimensionPixelSize(index, this.C);
                                break;
                            default:
                                switch (i11) {
                                    case 64:
                                        d.o(this, obtainStyledAttributes, index, 0);
                                        this.E = true;
                                        break;
                                    case 65:
                                        d.o(this, obtainStyledAttributes, index, 1);
                                        this.F = true;
                                        break;
                                    case 66:
                                        this.f3067d0 = obtainStyledAttributes.getInt(index, this.f3067d0);
                                        break;
                                    case 67:
                                        this.f3066d = obtainStyledAttributes.getBoolean(index, this.f3066d);
                                        break;
                                }
                        }
                }
            }
            obtainStyledAttributes.recycle();
            a();
        }

        public void a() {
            this.f3075h0 = false;
            this.f3069e0 = true;
            this.f3071f0 = true;
            int i10 = ((ViewGroup.MarginLayoutParams) this).width;
            if (i10 == -2 && this.f3061a0) {
                this.f3069e0 = false;
                if (this.P == 0) {
                    this.P = 1;
                }
            }
            int i11 = ((ViewGroup.MarginLayoutParams) this).height;
            if (i11 == -2 && this.f3063b0) {
                this.f3071f0 = false;
                if (this.Q == 0) {
                    this.Q = 1;
                }
            }
            if (i10 == 0 || i10 == -1) {
                this.f3069e0 = false;
                if (i10 == 0 && this.P == 1) {
                    ((ViewGroup.MarginLayoutParams) this).width = -2;
                    this.f3061a0 = true;
                }
            }
            if (i11 == 0 || i11 == -1) {
                this.f3071f0 = false;
                if (i11 == 0 && this.Q == 1) {
                    ((ViewGroup.MarginLayoutParams) this).height = -2;
                    this.f3063b0 = true;
                }
            }
            if (this.f3064c == -1.0f && this.f3060a == -1 && this.f3062b == -1) {
                return;
            }
            this.f3075h0 = true;
            this.f3069e0 = true;
            this.f3071f0 = true;
            if (!(this.f3103v0 instanceof i3.g)) {
                this.f3103v0 = new i3.g();
            }
            ((i3.g) this.f3103v0).w1(this.Z);
        }

        /* JADX WARN: Removed duplicated region for block: B:12:0x004a  */
        /* JADX WARN: Removed duplicated region for block: B:15:0x0051  */
        /* JADX WARN: Removed duplicated region for block: B:18:0x0058  */
        /* JADX WARN: Removed duplicated region for block: B:21:0x005e  */
        /* JADX WARN: Removed duplicated region for block: B:24:0x0064  */
        /* JADX WARN: Removed duplicated region for block: B:33:0x007a  */
        /* JADX WARN: Removed duplicated region for block: B:34:0x0082  */
        @Override // android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.LayoutParams
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public void resolveLayoutDirection(int i10) {
            int i11;
            int i12;
            int i13;
            int i14;
            int i15 = ((ViewGroup.MarginLayoutParams) this).leftMargin;
            int i16 = ((ViewGroup.MarginLayoutParams) this).rightMargin;
            super.resolveLayoutDirection(i10);
            boolean z10 = false;
            boolean z11 = 1 == getLayoutDirection();
            this.f3087n0 = -1;
            this.f3089o0 = -1;
            this.f3083l0 = -1;
            this.f3085m0 = -1;
            this.f3091p0 = this.f3104w;
            this.f3093q0 = this.f3107y;
            float f10 = this.G;
            this.f3095r0 = f10;
            int i17 = this.f3060a;
            this.f3097s0 = i17;
            int i18 = this.f3062b;
            this.f3099t0 = i18;
            float f11 = this.f3064c;
            this.f3101u0 = f11;
            if (z11) {
                int i19 = this.f3096s;
                if (i19 != -1) {
                    this.f3087n0 = i19;
                } else {
                    int i20 = this.f3098t;
                    if (i20 != -1) {
                        this.f3089o0 = i20;
                    }
                    i11 = this.f3100u;
                    if (i11 != -1) {
                        this.f3085m0 = i11;
                        z10 = true;
                    }
                    i12 = this.f3102v;
                    if (i12 != -1) {
                        this.f3083l0 = i12;
                        z10 = true;
                    }
                    i13 = this.A;
                    if (i13 != Integer.MIN_VALUE) {
                        this.f3093q0 = i13;
                    }
                    i14 = this.B;
                    if (i14 != Integer.MIN_VALUE) {
                        this.f3091p0 = i14;
                    }
                    if (z10) {
                        this.f3095r0 = 1.0f - f10;
                    }
                    if (this.f3075h0 && this.Z == 1 && this.f3066d) {
                        if (f11 == -1.0f) {
                            this.f3101u0 = 1.0f - f11;
                            this.f3097s0 = -1;
                            this.f3099t0 = -1;
                        } else if (i17 != -1) {
                            this.f3099t0 = i17;
                            this.f3097s0 = -1;
                            this.f3101u0 = -1.0f;
                        } else if (i18 != -1) {
                            this.f3097s0 = i18;
                            this.f3099t0 = -1;
                            this.f3101u0 = -1.0f;
                        }
                    }
                }
                z10 = true;
                i11 = this.f3100u;
                if (i11 != -1) {
                }
                i12 = this.f3102v;
                if (i12 != -1) {
                }
                i13 = this.A;
                if (i13 != Integer.MIN_VALUE) {
                }
                i14 = this.B;
                if (i14 != Integer.MIN_VALUE) {
                }
                if (z10) {
                }
                if (this.f3075h0) {
                    if (f11 == -1.0f) {
                    }
                }
            } else {
                int i21 = this.f3096s;
                if (i21 != -1) {
                    this.f3085m0 = i21;
                }
                int i22 = this.f3098t;
                if (i22 != -1) {
                    this.f3083l0 = i22;
                }
                int i23 = this.f3100u;
                if (i23 != -1) {
                    this.f3087n0 = i23;
                }
                int i24 = this.f3102v;
                if (i24 != -1) {
                    this.f3089o0 = i24;
                }
                int i25 = this.A;
                if (i25 != Integer.MIN_VALUE) {
                    this.f3091p0 = i25;
                }
                int i26 = this.B;
                if (i26 != Integer.MIN_VALUE) {
                    this.f3093q0 = i26;
                }
            }
            if (this.f3100u == -1 && this.f3102v == -1 && this.f3098t == -1 && this.f3096s == -1) {
                int i27 = this.f3072g;
                if (i27 != -1) {
                    this.f3087n0 = i27;
                    if (((ViewGroup.MarginLayoutParams) this).rightMargin <= 0 && i16 > 0) {
                        ((ViewGroup.MarginLayoutParams) this).rightMargin = i16;
                    }
                } else {
                    int i28 = this.f3074h;
                    if (i28 != -1) {
                        this.f3089o0 = i28;
                        if (((ViewGroup.MarginLayoutParams) this).rightMargin <= 0 && i16 > 0) {
                            ((ViewGroup.MarginLayoutParams) this).rightMargin = i16;
                        }
                    }
                }
                int i29 = this.f3068e;
                if (i29 != -1) {
                    this.f3083l0 = i29;
                    if (((ViewGroup.MarginLayoutParams) this).leftMargin > 0 || i15 <= 0) {
                        return;
                    }
                    ((ViewGroup.MarginLayoutParams) this).leftMargin = i15;
                    return;
                }
                int i30 = this.f3070f;
                if (i30 != -1) {
                    this.f3085m0 = i30;
                    if (((ViewGroup.MarginLayoutParams) this).leftMargin > 0 || i15 <= 0) {
                        return;
                    }
                    ((ViewGroup.MarginLayoutParams) this).leftMargin = i15;
                }
            }
        }

        public b(int i10, int i11) {
            super(i10, i11);
            this.f3060a = -1;
            this.f3062b = -1;
            this.f3064c = -1.0f;
            this.f3066d = true;
            this.f3068e = -1;
            this.f3070f = -1;
            this.f3072g = -1;
            this.f3074h = -1;
            this.f3076i = -1;
            this.f3078j = -1;
            this.f3080k = -1;
            this.f3082l = -1;
            this.f3084m = -1;
            this.f3086n = -1;
            this.f3088o = -1;
            this.f3090p = -1;
            this.f3092q = 0;
            this.f3094r = BitmapDescriptorFactory.HUE_RED;
            this.f3096s = -1;
            this.f3098t = -1;
            this.f3100u = -1;
            this.f3102v = -1;
            this.f3104w = Integer.MIN_VALUE;
            this.f3106x = Integer.MIN_VALUE;
            this.f3107y = Integer.MIN_VALUE;
            this.f3108z = Integer.MIN_VALUE;
            this.A = Integer.MIN_VALUE;
            this.B = Integer.MIN_VALUE;
            this.C = Integer.MIN_VALUE;
            this.D = 0;
            this.E = true;
            this.F = true;
            this.G = 0.5f;
            this.H = 0.5f;
            this.I = null;
            this.J = BitmapDescriptorFactory.HUE_RED;
            this.K = 1;
            this.L = -1.0f;
            this.M = -1.0f;
            this.N = 0;
            this.O = 0;
            this.P = 0;
            this.Q = 0;
            this.R = 0;
            this.S = 0;
            this.T = 0;
            this.U = 0;
            this.V = 1.0f;
            this.W = 1.0f;
            this.X = -1;
            this.Y = -1;
            this.Z = -1;
            this.f3061a0 = false;
            this.f3063b0 = false;
            this.f3065c0 = null;
            this.f3067d0 = 0;
            this.f3069e0 = true;
            this.f3071f0 = true;
            this.f3073g0 = false;
            this.f3075h0 = false;
            this.f3077i0 = false;
            this.f3079j0 = false;
            this.f3081k0 = false;
            this.f3083l0 = -1;
            this.f3085m0 = -1;
            this.f3087n0 = -1;
            this.f3089o0 = -1;
            this.f3091p0 = Integer.MIN_VALUE;
            this.f3093q0 = Integer.MIN_VALUE;
            this.f3095r0 = 0.5f;
            this.f3103v0 = new i3.e();
            this.f3105w0 = false;
        }

        public b(ViewGroup.LayoutParams layoutParams) {
            super(layoutParams);
            this.f3060a = -1;
            this.f3062b = -1;
            this.f3064c = -1.0f;
            this.f3066d = true;
            this.f3068e = -1;
            this.f3070f = -1;
            this.f3072g = -1;
            this.f3074h = -1;
            this.f3076i = -1;
            this.f3078j = -1;
            this.f3080k = -1;
            this.f3082l = -1;
            this.f3084m = -1;
            this.f3086n = -1;
            this.f3088o = -1;
            this.f3090p = -1;
            this.f3092q = 0;
            this.f3094r = BitmapDescriptorFactory.HUE_RED;
            this.f3096s = -1;
            this.f3098t = -1;
            this.f3100u = -1;
            this.f3102v = -1;
            this.f3104w = Integer.MIN_VALUE;
            this.f3106x = Integer.MIN_VALUE;
            this.f3107y = Integer.MIN_VALUE;
            this.f3108z = Integer.MIN_VALUE;
            this.A = Integer.MIN_VALUE;
            this.B = Integer.MIN_VALUE;
            this.C = Integer.MIN_VALUE;
            this.D = 0;
            this.E = true;
            this.F = true;
            this.G = 0.5f;
            this.H = 0.5f;
            this.I = null;
            this.J = BitmapDescriptorFactory.HUE_RED;
            this.K = 1;
            this.L = -1.0f;
            this.M = -1.0f;
            this.N = 0;
            this.O = 0;
            this.P = 0;
            this.Q = 0;
            this.R = 0;
            this.S = 0;
            this.T = 0;
            this.U = 0;
            this.V = 1.0f;
            this.W = 1.0f;
            this.X = -1;
            this.Y = -1;
            this.Z = -1;
            this.f3061a0 = false;
            this.f3063b0 = false;
            this.f3065c0 = null;
            this.f3067d0 = 0;
            this.f3069e0 = true;
            this.f3071f0 = true;
            this.f3073g0 = false;
            this.f3075h0 = false;
            this.f3077i0 = false;
            this.f3079j0 = false;
            this.f3081k0 = false;
            this.f3083l0 = -1;
            this.f3085m0 = -1;
            this.f3087n0 = -1;
            this.f3089o0 = -1;
            this.f3091p0 = Integer.MIN_VALUE;
            this.f3093q0 = Integer.MIN_VALUE;
            this.f3095r0 = 0.5f;
            this.f3103v0 = new i3.e();
            this.f3105w0 = false;
        }
    }
}
