package lj;

import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.Outline;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Region;
import android.graphics.drawable.Drawable;
import android.os.Looper;
import android.util.AttributeSet;
import android.util.Log;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.perf.util.Constants;
import java.util.BitSet;
import lj.k;
import lj.l;
import lj.m;

/* loaded from: classes3.dex */
public class g extends Drawable implements n {
    private static final String M = "g";
    private static final Paint N;
    private final Region A;
    private k B;
    private final Paint C;
    private final Paint D;
    private final kj.a E;
    private final l.b F;
    private final l G;
    private PorterDuffColorFilter H;
    private PorterDuffColorFilter I;
    private int J;
    private final RectF K;
    private boolean L;

    /* renamed from: p, reason: collision with root package name */
    private c f28319p;

    /* renamed from: q, reason: collision with root package name */
    private final m.g[] f28320q;

    /* renamed from: r, reason: collision with root package name */
    private final m.g[] f28321r;

    /* renamed from: s, reason: collision with root package name */
    private final BitSet f28322s;

    /* renamed from: t, reason: collision with root package name */
    private boolean f28323t;

    /* renamed from: u, reason: collision with root package name */
    private final Matrix f28324u;

    /* renamed from: v, reason: collision with root package name */
    private final Path f28325v;

    /* renamed from: w, reason: collision with root package name */
    private final Path f28326w;

    /* renamed from: x, reason: collision with root package name */
    private final RectF f28327x;

    /* renamed from: y, reason: collision with root package name */
    private final RectF f28328y;

    /* renamed from: z, reason: collision with root package name */
    private final Region f28329z;

    /* loaded from: classes3.dex */
    class a implements l.b {
        a() {
        }

        @Override // lj.l.b
        public void a(m mVar, Matrix matrix, int i10) {
            g.this.f28322s.set(i10 + 4, mVar.e());
            g.this.f28321r[i10] = mVar.f(matrix);
        }

        @Override // lj.l.b
        public void b(m mVar, Matrix matrix, int i10) {
            g.this.f28322s.set(i10, mVar.e());
            g.this.f28320q[i10] = mVar.f(matrix);
        }
    }

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

        /* renamed from: a, reason: collision with root package name */
        final /* synthetic */ float f28331a;

        b(float f10) {
            this.f28331a = f10;
        }

        @Override // lj.k.c
        public lj.c a(lj.c cVar) {
            return cVar instanceof i ? cVar : new lj.b(this.f28331a, cVar);
        }
    }

    static {
        Paint paint = new Paint(1);
        N = paint;
        paint.setColor(-1);
        paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OUT));
    }

    /* synthetic */ g(c cVar, a aVar) {
        this(cVar);
    }

    private float D() {
        return K() ? this.D.getStrokeWidth() / 2.0f : BitmapDescriptorFactory.HUE_RED;
    }

    private boolean I() {
        c cVar = this.f28319p;
        int i10 = cVar.f28349q;
        return i10 != 1 && cVar.f28350r > 0 && (i10 == 2 || S());
    }

    private boolean J() {
        Paint.Style style = this.f28319p.f28354v;
        return style == Paint.Style.FILL_AND_STROKE || style == Paint.Style.FILL;
    }

    private boolean K() {
        Paint.Style style = this.f28319p.f28354v;
        return (style == Paint.Style.FILL_AND_STROKE || style == Paint.Style.STROKE) && this.D.getStrokeWidth() > BitmapDescriptorFactory.HUE_RED;
    }

    private void M() {
        super.invalidateSelf();
    }

    private void P(Canvas canvas) {
        if (I()) {
            canvas.save();
            R(canvas);
            if (!this.L) {
                n(canvas);
                canvas.restore();
                return;
            }
            int width = (int) (this.K.width() - getBounds().width());
            int height = (int) (this.K.height() - getBounds().height());
            if (width < 0 || height < 0) {
                throw new IllegalStateException("Invalid shadow bounds. Check that the treatments result in a valid path.");
            }
            Bitmap createBitmap = Bitmap.createBitmap(((int) this.K.width()) + (this.f28319p.f28350r * 2) + width, ((int) this.K.height()) + (this.f28319p.f28350r * 2) + height, Bitmap.Config.ARGB_8888);
            Canvas canvas2 = new Canvas(createBitmap);
            float f10 = (getBounds().left - this.f28319p.f28350r) - width;
            float f11 = (getBounds().top - this.f28319p.f28350r) - height;
            canvas2.translate(-f10, -f11);
            n(canvas2);
            canvas.drawBitmap(createBitmap, f10, f11, (Paint) null);
            createBitmap.recycle();
            canvas.restore();
        }
    }

    private static int Q(int i10, int i11) {
        return (i10 * (i11 + (i11 >>> 7))) >>> 8;
    }

    private void R(Canvas canvas) {
        canvas.translate(A(), B());
    }

    private boolean e0(int[] iArr) {
        boolean z10;
        int color;
        int colorForState;
        int color2;
        int colorForState2;
        if (this.f28319p.f28336d == null || color2 == (colorForState2 = this.f28319p.f28336d.getColorForState(iArr, (color2 = this.C.getColor())))) {
            z10 = false;
        } else {
            this.C.setColor(colorForState2);
            z10 = true;
        }
        if (this.f28319p.f28337e == null || color == (colorForState = this.f28319p.f28337e.getColorForState(iArr, (color = this.D.getColor())))) {
            return z10;
        }
        this.D.setColor(colorForState);
        return true;
    }

    private PorterDuffColorFilter f(Paint paint, boolean z10) {
        if (!z10) {
            return null;
        }
        int color = paint.getColor();
        int l10 = l(color);
        this.J = l10;
        if (l10 != color) {
            return new PorterDuffColorFilter(l10, PorterDuff.Mode.SRC_IN);
        }
        return null;
    }

    private boolean f0() {
        PorterDuffColorFilter porterDuffColorFilter = this.H;
        PorterDuffColorFilter porterDuffColorFilter2 = this.I;
        c cVar = this.f28319p;
        this.H = k(cVar.f28339g, cVar.f28340h, this.C, true);
        c cVar2 = this.f28319p;
        this.I = k(cVar2.f28338f, cVar2.f28340h, this.D, false);
        c cVar3 = this.f28319p;
        if (cVar3.f28353u) {
            this.E.d(cVar3.f28339g.getColorForState(getState(), 0));
        }
        return (s3.d.a(porterDuffColorFilter, this.H) && s3.d.a(porterDuffColorFilter2, this.I)) ? false : true;
    }

    private void g(RectF rectF, Path path) {
        h(rectF, path);
        if (this.f28319p.f28342j != 1.0f) {
            this.f28324u.reset();
            Matrix matrix = this.f28324u;
            float f10 = this.f28319p.f28342j;
            matrix.setScale(f10, f10, rectF.width() / 2.0f, rectF.height() / 2.0f);
            path.transform(this.f28324u);
        }
        path.computeBounds(this.K, true);
    }

    private void g0() {
        float H = H();
        this.f28319p.f28350r = (int) Math.ceil(0.75f * H);
        this.f28319p.f28351s = (int) Math.ceil(H * 0.25f);
        f0();
        M();
    }

    private void i() {
        k y10 = C().y(new b(-D()));
        this.B = y10;
        this.G.d(y10, this.f28319p.f28343k, v(), this.f28326w);
    }

    private PorterDuffColorFilter j(ColorStateList colorStateList, PorterDuff.Mode mode, boolean z10) {
        int colorForState = colorStateList.getColorForState(getState(), 0);
        if (z10) {
            colorForState = l(colorForState);
        }
        this.J = colorForState;
        return new PorterDuffColorFilter(colorForState, mode);
    }

    private PorterDuffColorFilter k(ColorStateList colorStateList, PorterDuff.Mode mode, Paint paint, boolean z10) {
        return (colorStateList == null || mode == null) ? f(paint, z10) : j(colorStateList, mode, z10);
    }

    public static g m(Context context, float f10) {
        int c10 = aj.a.c(context, vi.b.f39735q, g.class.getSimpleName());
        g gVar = new g();
        gVar.L(context);
        gVar.W(ColorStateList.valueOf(c10));
        gVar.V(f10);
        return gVar;
    }

    private void n(Canvas canvas) {
        if (this.f28322s.cardinality() > 0) {
            Log.w(M, "Compatibility shadow requested but can't be drawn for all operations in this shape.");
        }
        if (this.f28319p.f28351s != 0) {
            canvas.drawPath(this.f28325v, this.E.c());
        }
        for (int i10 = 0; i10 < 4; i10++) {
            this.f28320q[i10].b(this.E, this.f28319p.f28350r, canvas);
            this.f28321r[i10].b(this.E, this.f28319p.f28350r, canvas);
        }
        if (this.L) {
            int A = A();
            int B = B();
            canvas.translate(-A, -B);
            canvas.drawPath(this.f28325v, N);
            canvas.translate(A, B);
        }
    }

    private void o(Canvas canvas) {
        q(canvas, this.C, this.f28325v, this.f28319p.f28333a, u());
    }

    private void q(Canvas canvas, Paint paint, Path path, k kVar, RectF rectF) {
        if (!kVar.u(rectF)) {
            canvas.drawPath(path, paint);
        } else {
            float a10 = kVar.t().a(rectF) * this.f28319p.f28343k;
            canvas.drawRoundRect(rectF, a10, a10, paint);
        }
    }

    private RectF v() {
        this.f28328y.set(u());
        float D = D();
        this.f28328y.inset(D, D);
        return this.f28328y;
    }

    public int A() {
        c cVar = this.f28319p;
        return (int) (cVar.f28351s * Math.sin(Math.toRadians(cVar.f28352t)));
    }

    public int B() {
        c cVar = this.f28319p;
        return (int) (cVar.f28351s * Math.cos(Math.toRadians(cVar.f28352t)));
    }

    public k C() {
        return this.f28319p.f28333a;
    }

    public float E() {
        return this.f28319p.f28333a.r().a(u());
    }

    public float F() {
        return this.f28319p.f28333a.t().a(u());
    }

    public float G() {
        return this.f28319p.f28348p;
    }

    public float H() {
        return w() + G();
    }

    public void L(Context context) {
        this.f28319p.f28334b = new ej.a(context);
        g0();
    }

    public boolean N() {
        ej.a aVar = this.f28319p.f28334b;
        return aVar != null && aVar.e();
    }

    public boolean O() {
        return this.f28319p.f28333a.u(u());
    }

    public boolean S() {
        if (O()) {
            return false;
        }
        this.f28325v.isConvex();
        return false;
    }

    public void T(float f10) {
        setShapeAppearanceModel(this.f28319p.f28333a.w(f10));
    }

    public void U(lj.c cVar) {
        setShapeAppearanceModel(this.f28319p.f28333a.x(cVar));
    }

    public void V(float f10) {
        c cVar = this.f28319p;
        if (cVar.f28347o != f10) {
            cVar.f28347o = f10;
            g0();
        }
    }

    public void W(ColorStateList colorStateList) {
        c cVar = this.f28319p;
        if (cVar.f28336d != colorStateList) {
            cVar.f28336d = colorStateList;
            onStateChange(getState());
        }
    }

    public void X(float f10) {
        c cVar = this.f28319p;
        if (cVar.f28343k != f10) {
            cVar.f28343k = f10;
            this.f28323t = true;
            invalidateSelf();
        }
    }

    public void Y(int i10, int i11, int i12, int i13) {
        c cVar = this.f28319p;
        if (cVar.f28341i == null) {
            cVar.f28341i = new Rect();
        }
        this.f28319p.f28341i.set(i10, i11, i12, i13);
        invalidateSelf();
    }

    public void Z(float f10) {
        c cVar = this.f28319p;
        if (cVar.f28346n != f10) {
            cVar.f28346n = f10;
            g0();
        }
    }

    public void a0(float f10, int i10) {
        d0(f10);
        c0(ColorStateList.valueOf(i10));
    }

    public void b0(float f10, ColorStateList colorStateList) {
        d0(f10);
        c0(colorStateList);
    }

    public void c0(ColorStateList colorStateList) {
        c cVar = this.f28319p;
        if (cVar.f28337e != colorStateList) {
            cVar.f28337e = colorStateList;
            onStateChange(getState());
        }
    }

    public void d0(float f10) {
        this.f28319p.f28344l = f10;
        invalidateSelf();
    }

    @Override // android.graphics.drawable.Drawable
    public void draw(Canvas canvas) {
        this.C.setColorFilter(this.H);
        int alpha = this.C.getAlpha();
        this.C.setAlpha(Q(alpha, this.f28319p.f28345m));
        this.D.setColorFilter(this.I);
        this.D.setStrokeWidth(this.f28319p.f28344l);
        int alpha2 = this.D.getAlpha();
        this.D.setAlpha(Q(alpha2, this.f28319p.f28345m));
        if (this.f28323t) {
            i();
            g(u(), this.f28325v);
            this.f28323t = false;
        }
        P(canvas);
        if (J()) {
            o(canvas);
        }
        if (K()) {
            r(canvas);
        }
        this.C.setAlpha(alpha);
        this.D.setAlpha(alpha2);
    }

    @Override // android.graphics.drawable.Drawable
    public int getAlpha() {
        return this.f28319p.f28345m;
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable.ConstantState getConstantState() {
        return this.f28319p;
    }

    @Override // android.graphics.drawable.Drawable
    public int getOpacity() {
        return -3;
    }

    @Override // android.graphics.drawable.Drawable
    public void getOutline(Outline outline) {
        if (this.f28319p.f28349q == 2) {
            return;
        }
        if (O()) {
            outline.setRoundRect(getBounds(), E() * this.f28319p.f28343k);
        } else {
            g(u(), this.f28325v);
            this.f28325v.isConvex();
            try {
                outline.setConvexPath(this.f28325v);
            } catch (IllegalArgumentException unused) {
            }
        }
    }

    @Override // android.graphics.drawable.Drawable
    public boolean getPadding(Rect rect) {
        Rect rect2 = this.f28319p.f28341i;
        if (rect2 == null) {
            return super.getPadding(rect);
        }
        rect.set(rect2);
        return true;
    }

    @Override // android.graphics.drawable.Drawable
    public Region getTransparentRegion() {
        this.f28329z.set(getBounds());
        g(u(), this.f28325v);
        this.A.setPath(this.f28325v, this.f28329z);
        this.f28329z.op(this.A, Region.Op.DIFFERENCE);
        return this.f28329z;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public final void h(RectF rectF, Path path) {
        l lVar = this.G;
        c cVar = this.f28319p;
        lVar.e(cVar.f28333a, cVar.f28343k, rectF, this.F, path);
    }

    @Override // android.graphics.drawable.Drawable
    public void invalidateSelf() {
        this.f28323t = true;
        super.invalidateSelf();
    }

    @Override // android.graphics.drawable.Drawable
    public boolean isStateful() {
        ColorStateList colorStateList;
        ColorStateList colorStateList2;
        ColorStateList colorStateList3;
        ColorStateList colorStateList4;
        return super.isStateful() || ((colorStateList = this.f28319p.f28339g) != null && colorStateList.isStateful()) || (((colorStateList2 = this.f28319p.f28338f) != null && colorStateList2.isStateful()) || (((colorStateList3 = this.f28319p.f28337e) != null && colorStateList3.isStateful()) || ((colorStateList4 = this.f28319p.f28336d) != null && colorStateList4.isStateful())));
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public int l(int i10) {
        float H = H() + y();
        ej.a aVar = this.f28319p.f28334b;
        return aVar != null ? aVar.c(i10, H) : i10;
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable mutate() {
        this.f28319p = new c(this.f28319p);
        return this;
    }

    @Override // android.graphics.drawable.Drawable
    protected void onBoundsChange(Rect rect) {
        this.f28323t = true;
        super.onBoundsChange(rect);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // android.graphics.drawable.Drawable, com.google.android.material.internal.l.b
    public boolean onStateChange(int[] iArr) {
        boolean z10 = e0(iArr) || f0();
        if (z10) {
            invalidateSelf();
        }
        return z10;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public void p(Canvas canvas, Paint paint, Path path, RectF rectF) {
        q(canvas, paint, path, this.f28319p.f28333a, rectF);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public void r(Canvas canvas) {
        q(canvas, this.D, this.f28326w, this.B, v());
    }

    public float s() {
        return this.f28319p.f28333a.j().a(u());
    }

    @Override // android.graphics.drawable.Drawable
    public void setAlpha(int i10) {
        c cVar = this.f28319p;
        if (cVar.f28345m != i10) {
            cVar.f28345m = i10;
            M();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setColorFilter(ColorFilter colorFilter) {
        this.f28319p.f28335c = colorFilter;
        M();
    }

    @Override // lj.n
    public void setShapeAppearanceModel(k kVar) {
        this.f28319p.f28333a = kVar;
        invalidateSelf();
    }

    @Override // android.graphics.drawable.Drawable
    public void setTint(int i10) {
        setTintList(ColorStateList.valueOf(i10));
    }

    @Override // android.graphics.drawable.Drawable
    public void setTintList(ColorStateList colorStateList) {
        this.f28319p.f28339g = colorStateList;
        f0();
        M();
    }

    @Override // android.graphics.drawable.Drawable
    public void setTintMode(PorterDuff.Mode mode) {
        c cVar = this.f28319p;
        if (cVar.f28340h != mode) {
            cVar.f28340h = mode;
            f0();
            M();
        }
    }

    public float t() {
        return this.f28319p.f28333a.l().a(u());
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public RectF u() {
        this.f28327x.set(getBounds());
        return this.f28327x;
    }

    public float w() {
        return this.f28319p.f28347o;
    }

    public ColorStateList x() {
        return this.f28319p.f28336d;
    }

    public float y() {
        return this.f28319p.f28346n;
    }

    public int z() {
        return this.J;
    }

    public g() {
        this(new k());
    }

    public g(Context context, AttributeSet attributeSet, int i10, int i11) {
        this(k.e(context, attributeSet, i10, i11).m());
    }

    public g(k kVar) {
        this(new c(kVar, null));
    }

    private g(c cVar) {
        l lVar;
        this.f28320q = new m.g[4];
        this.f28321r = new m.g[4];
        this.f28322s = new BitSet(8);
        this.f28324u = new Matrix();
        this.f28325v = new Path();
        this.f28326w = new Path();
        this.f28327x = new RectF();
        this.f28328y = new RectF();
        this.f28329z = new Region();
        this.A = new Region();
        Paint paint = new Paint(1);
        this.C = paint;
        Paint paint2 = new Paint(1);
        this.D = paint2;
        this.E = new kj.a();
        if (Looper.getMainLooper().getThread() == Thread.currentThread()) {
            lVar = l.k();
        } else {
            lVar = new l();
        }
        this.G = lVar;
        this.K = new RectF();
        this.L = true;
        this.f28319p = cVar;
        paint2.setStyle(Paint.Style.STROKE);
        paint.setStyle(Paint.Style.FILL);
        f0();
        e0(getState());
        this.F = new a();
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes3.dex */
    public static final class c extends Drawable.ConstantState {

        /* renamed from: a, reason: collision with root package name */
        public k f28333a;

        /* renamed from: b, reason: collision with root package name */
        public ej.a f28334b;

        /* renamed from: c, reason: collision with root package name */
        public ColorFilter f28335c;

        /* renamed from: d, reason: collision with root package name */
        public ColorStateList f28336d;

        /* renamed from: e, reason: collision with root package name */
        public ColorStateList f28337e;

        /* renamed from: f, reason: collision with root package name */
        public ColorStateList f28338f;

        /* renamed from: g, reason: collision with root package name */
        public ColorStateList f28339g;

        /* renamed from: h, reason: collision with root package name */
        public PorterDuff.Mode f28340h;

        /* renamed from: i, reason: collision with root package name */
        public Rect f28341i;

        /* renamed from: j, reason: collision with root package name */
        public float f28342j;

        /* renamed from: k, reason: collision with root package name */
        public float f28343k;

        /* renamed from: l, reason: collision with root package name */
        public float f28344l;

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

        /* renamed from: n, reason: collision with root package name */
        public float f28346n;

        /* renamed from: o, reason: collision with root package name */
        public float f28347o;

        /* renamed from: p, reason: collision with root package name */
        public float f28348p;

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

        /* renamed from: r, reason: collision with root package name */
        public int f28350r;

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

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

        /* renamed from: u, reason: collision with root package name */
        public boolean f28353u;

        /* renamed from: v, reason: collision with root package name */
        public Paint.Style f28354v;

        public c(k kVar, ej.a aVar) {
            this.f28336d = null;
            this.f28337e = null;
            this.f28338f = null;
            this.f28339g = null;
            this.f28340h = PorterDuff.Mode.SRC_IN;
            this.f28341i = null;
            this.f28342j = 1.0f;
            this.f28343k = 1.0f;
            this.f28345m = Constants.MAX_HOST_LENGTH;
            this.f28346n = BitmapDescriptorFactory.HUE_RED;
            this.f28347o = BitmapDescriptorFactory.HUE_RED;
            this.f28348p = BitmapDescriptorFactory.HUE_RED;
            this.f28349q = 0;
            this.f28350r = 0;
            this.f28351s = 0;
            this.f28352t = 0;
            this.f28353u = false;
            this.f28354v = Paint.Style.FILL_AND_STROKE;
            this.f28333a = kVar;
            this.f28334b = aVar;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public int getChangingConfigurations() {
            return 0;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable() {
            g gVar = new g(this, null);
            gVar.f28323t = true;
            return gVar;
        }

        public c(c cVar) {
            this.f28336d = null;
            this.f28337e = null;
            this.f28338f = null;
            this.f28339g = null;
            this.f28340h = PorterDuff.Mode.SRC_IN;
            this.f28341i = null;
            this.f28342j = 1.0f;
            this.f28343k = 1.0f;
            this.f28345m = Constants.MAX_HOST_LENGTH;
            this.f28346n = BitmapDescriptorFactory.HUE_RED;
            this.f28347o = BitmapDescriptorFactory.HUE_RED;
            this.f28348p = BitmapDescriptorFactory.HUE_RED;
            this.f28349q = 0;
            this.f28350r = 0;
            this.f28351s = 0;
            this.f28352t = 0;
            this.f28353u = false;
            this.f28354v = Paint.Style.FILL_AND_STROKE;
            this.f28333a = cVar.f28333a;
            this.f28334b = cVar.f28334b;
            this.f28344l = cVar.f28344l;
            this.f28335c = cVar.f28335c;
            this.f28336d = cVar.f28336d;
            this.f28337e = cVar.f28337e;
            this.f28340h = cVar.f28340h;
            this.f28339g = cVar.f28339g;
            this.f28345m = cVar.f28345m;
            this.f28342j = cVar.f28342j;
            this.f28351s = cVar.f28351s;
            this.f28349q = cVar.f28349q;
            this.f28353u = cVar.f28353u;
            this.f28343k = cVar.f28343k;
            this.f28346n = cVar.f28346n;
            this.f28347o = cVar.f28347o;
            this.f28348p = cVar.f28348p;
            this.f28350r = cVar.f28350r;
            this.f28352t = cVar.f28352t;
            this.f28338f = cVar.f28338f;
            this.f28354v = cVar.f28354v;
            if (cVar.f28341i != null) {
                this.f28341i = new Rect(cVar.f28341i);
            }
        }
    }
}
