package nb;

import android.graphics.Paint;
import android.net.NetworkCapabilities;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.core.view.f3;
import androidx.core.view.l0;
import androidx.core.view.s1;
import androidx.datastore.preferences.protobuf.ByteString;
import androidx.fragment.app.d1;
import androidx.fragment.app.e0;
import androidx.fragment.app.z0;
import androidx.media3.exoplayer.dash.DashMediaSource;
import com.bumptech.glide.load.ImageHeaderParser$ImageType;
import com.bumptech.glide.load.resource.bitmap.DefaultImageHeaderParser$Reader$EndOfFileException;
import com.bytedance.sdk.openadsdk.api.interstitial.PAGInterstitialAdInteractionListener;
import com.google.android.datatransport.Priority;
import com.google.android.datatransport.runtime.scheduling.jobscheduling.SchedulerConfig$Flag;
import com.google.android.gms.internal.ads.e30;
import com.google.android.gms.internal.ads.jc;
import com.google.android.gms.internal.ads.zzash;
import com.google.android.material.bottomappbar.BottomAppBar;
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton;
import com.google.android.material.internal.u0;
import com.google.android.material.internal.v0;
import com.google.android.material.shape.k;
import com.google.android.material.shape.o;
import com.google.android.material.shape.r;
import com.google.zxing.ChecksumException;
import com.google.zxing.FormatException;
import com.google.zxing.common.reedsolomon.ReedSolomonException;
import e.m0;
import ed.m;
import j5.i;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
import java.util.concurrent.CountDownLatch;
import k.a0;
import k.p;
import w8.h;
import xyz.stream.utils.j0;
import xyz.stream.utils.t;
import xyz.stream.view.listener.OnDialogSelectListener;

/* JADX INFO: loaded from: classes2.dex */
public final class c implements a0, androidx.core.view.d, l0, androidx.activity.result.c, z3.b, a5.f, g5.e, i, x6.b, jc, w8.d, u0, com.google.android.material.floatingactionbutton.i, r, dd.b, PAGInterstitialAdInteractionListener, OnDialogSelectListener {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static volatile c f31181c;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f31182a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Object f31183b;

    public /* synthetic */ c(Object obj, int i10) {
        this.f31182a = i10;
        this.f31183b = obj;
    }

    public static ArrayList m(NetworkCapabilities networkCapabilities) {
        ArrayList arrayList = new ArrayList();
        if (networkCapabilities == null || !networkCapabilities.hasCapability(12)) {
            arrayList.add("none");
            return arrayList;
        }
        if (networkCapabilities.hasTransport(1) || networkCapabilities.hasTransport(5)) {
            arrayList.add("wifi");
        }
        if (networkCapabilities.hasTransport(3)) {
            arrayList.add("ethernet");
        }
        if (networkCapabilities.hasTransport(4)) {
            arrayList.add("vpn");
        }
        if (networkCapabilities.hasTransport(0)) {
            arrayList.add("mobile");
        }
        if (networkCapabilities.hasTransport(2)) {
            arrayList.add("bluetooth");
        }
        if (arrayList.isEmpty() && networkCapabilities.hasCapability(12)) {
            arrayList.add("other");
        }
        if (arrayList.isEmpty()) {
            arrayList.add("none");
        }
        return arrayList;
    }

    public static o5.a n(String str) {
        try {
            Class<?> cls = Class.forName(str);
            try {
                Object objNewInstance = cls.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
                if (objNewInstance instanceof o5.a) {
                    return (o5.a) objNewInstance;
                }
                throw new RuntimeException("Expected instanceof GlideModule, but found: " + objNewInstance);
            } catch (IllegalAccessException e10) {
                p(cls, e10);
                throw null;
            } catch (InstantiationException e11) {
                p(cls, e11);
                throw null;
            } catch (NoSuchMethodException e12) {
                p(cls, e12);
                throw null;
            } catch (InvocationTargetException e13) {
                p(cls, e13);
                throw null;
            }
        } catch (ClassNotFoundException e14) {
            throw new IllegalArgumentException("Unable to find GlideModule implementation", e14);
        }
    }

    public static void p(Class cls, ReflectiveOperationException reflectiveOperationException) {
        throw new RuntimeException("Unable to instantiate GlideModule implementation for " + cls, reflectiveOperationException);
    }

    @Override // g5.e
    public final Class a() {
        return ByteBuffer.class;
    }

    @Override // com.google.android.material.shape.r
    public final com.google.android.material.shape.d b(com.google.android.material.shape.d dVar) {
        if (dVar instanceof o) {
            return dVar;
        }
        k kVar = (k) this.f31183b;
        Paint paint = k.f23091c0;
        return new com.google.android.material.shape.b(-kVar.o(), dVar);
    }

    @Override // androidx.activity.result.c
    public final void c(Object obj) {
        e0 e0VarFindFragmentByWho;
        Map map = (Map) obj;
        String[] strArr = (String[]) map.keySet().toArray(new String[0]);
        ArrayList arrayList = new ArrayList(map.values());
        int[] iArr = new int[arrayList.size()];
        for (int i10 = 0; i10 < arrayList.size(); i10++) {
            iArr[i10] = ((Boolean) arrayList.get(i10)).booleanValue() ? 0 : -1;
        }
        d1 d1Var = (d1) this.f31183b;
        z0 z0Var = (z0) d1Var.E.pollFirst();
        if (z0Var == null || (e0VarFindFragmentByWho = d1Var.f2368c.findFragmentByWho(z0Var.f2627a)) == null) {
            return;
        }
        e0VarFindFragmentByWho.onRequestPermissionsResult(z0Var.f2628b, strArr, iArr);
    }

    @Override // com.google.android.gms.internal.ads.jc
    public final void d(zzash zzashVar) {
        ((e30) this.f31183b).a(zzashVar);
    }

    @Override // k.a0
    public final boolean e(p pVar) {
        Window.Callback callback;
        if (pVar != pVar.k()) {
            return true;
        }
        Object obj = this.f31183b;
        if (!((m0) obj).f25282i0 || (callback = ((m0) obj).f25287l.getCallback()) == null || ((m0) obj).f25297t0) {
            return true;
        }
        callback.onMenuOpened(108, pVar);
        return true;
    }

    @Override // j5.i
    public final int f() {
        return (g() << 8) | g();
    }

    @Override // j5.i
    public final short g() throws IOException {
        int i10 = ((InputStream) this.f31183b).read();
        if (i10 != -1) {
            return (short) i10;
        }
        throw new DefaultImageHeaderParser$Reader$EndOfFileException();
    }

    @Override // jd.a
    public final Object get() {
        e7.a aVar = (e7.a) ((jd.a) this.f31183b).get();
        xyz.stream.utils.f fVar = new xyz.stream.utils.f(10);
        Priority priority = Priority.f7714a;
        t tVar = new t(9);
        Set setEmptySet = Collections.emptySet();
        if (setEmptySet == null) {
            throw new NullPointerException("Null flags");
        }
        tVar.f36174d = setEmptySet;
        tVar.f36172b = Long.valueOf(DashMediaSource.DEFAULT_FALLBACK_TARGET_LIVE_OFFSET_MS);
        tVar.f36173c = 86400000L;
        ((Map) fVar.f36133c).put(priority, tVar.c());
        Priority priority2 = Priority.f7716c;
        t tVar2 = new t(9);
        Set setEmptySet2 = Collections.emptySet();
        if (setEmptySet2 == null) {
            throw new NullPointerException("Null flags");
        }
        tVar2.f36174d = setEmptySet2;
        tVar2.f36172b = 1000L;
        tVar2.f36173c = 86400000L;
        ((Map) fVar.f36133c).put(priority2, tVar2.c());
        Priority priority3 = Priority.f7715b;
        t tVar3 = new t(9);
        Set setEmptySet3 = Collections.emptySet();
        if (setEmptySet3 == null) {
            throw new NullPointerException("Null flags");
        }
        tVar3.f36174d = setEmptySet3;
        tVar3.f36172b = 86400000L;
        tVar3.f36173c = 86400000L;
        Set setUnmodifiableSet = Collections.unmodifiableSet(new HashSet(Arrays.asList(SchedulerConfig$Flag.f7764b)));
        if (setUnmodifiableSet == null) {
            throw new NullPointerException("Null flags");
        }
        tVar3.f36174d = setUnmodifiableSet;
        ((Map) fVar.f36133c).put(priority3, tVar3.c());
        fVar.f36132b = aVar;
        if (aVar == null) {
            throw new NullPointerException("missing required property: clock");
        }
        if (((Map) fVar.f36133c).keySet().size() < Priority.values().length) {
            throw new IllegalStateException("Not all priorities have been configured");
        }
        Map map = (Map) fVar.f36133c;
        fVar.f36133c = new HashMap();
        return new b7.b((e7.a) fVar.f36132b, map);
    }

    @Override // com.google.android.material.floatingactionbutton.i
    public final int getHeight() {
        return ((ExtendedFloatingActionButton) this.f31183b).getCollapsedSize();
    }

    @Override // com.google.android.material.floatingactionbutton.i
    public final ViewGroup.LayoutParams getLayoutParams() {
        return new ViewGroup.LayoutParams(getWidth(), getHeight());
    }

    @Override // com.google.android.material.floatingactionbutton.i
    public final int getPaddingEnd() {
        return ((ExtendedFloatingActionButton) this.f31183b).getCollapsedPadding();
    }

    @Override // com.google.android.material.floatingactionbutton.i
    public final int getPaddingStart() {
        return ((ExtendedFloatingActionButton) this.f31183b).getCollapsedPadding();
    }

    @Override // com.google.android.material.floatingactionbutton.i
    public final int getWidth() {
        return ((ExtendedFloatingActionButton) this.f31183b).getCollapsedSize();
    }

    @Override // com.google.android.material.internal.u0
    public final f3 h(View view, f3 f3Var, v0 v0Var) {
        boolean z10;
        BottomAppBar bottomAppBar = (BottomAppBar) this.f31183b;
        if (bottomAppBar.J0) {
            bottomAppBar.Q0 = f3Var.a();
        }
        boolean z11 = false;
        if (bottomAppBar.K0) {
            z10 = bottomAppBar.S0 != f3Var.b();
            bottomAppBar.S0 = f3Var.b();
        } else {
            z10 = false;
        }
        if (bottomAppBar.L0) {
            boolean z12 = bottomAppBar.R0 != f3Var.c();
            bottomAppBar.R0 = f3Var.c();
            z11 = z12;
        }
        if (z10 || z11) {
            bottomAppBar.G();
            bottomAppBar.M();
            bottomAppBar.L();
        }
        return f3Var;
    }

    @Override // androidx.core.view.l0
    public final f3 i(View view, f3 f3Var) {
        CoordinatorLayout coordinatorLayout = (CoordinatorLayout) this.f31183b;
        if (!p0.c.equals(coordinatorLayout.Q, f3Var)) {
            coordinatorLayout.Q = f3Var;
            boolean z10 = f3Var != null && f3Var.d() > 0;
            coordinatorLayout.R = z10;
            coordinatorLayout.setWillNotDraw(!z10 && coordinatorLayout.getBackground() == null);
            if (!f3Var.f1747a.m()) {
                int childCount = coordinatorLayout.getChildCount();
                for (int i10 = 0; i10 < childCount; i10++) {
                    View childAt = coordinatorLayout.getChildAt(i10);
                    WeakHashMap weakHashMap = s1.f1815a;
                    if (childAt.getFitsSystemWindows() && ((d0.d) childAt.getLayoutParams()).f24884a != null && f3Var.f1747a.m()) {
                        break;
                    }
                }
            }
            coordinatorLayout.requestLayout();
        }
        return f3Var;
    }

    @Override // g5.e
    public final Object j(byte[] bArr) {
        return ByteBuffer.wrap(bArr);
    }

    @Override // a5.f
    public final ImageHeaderParser$ImageType k(a5.c cVar) {
        return cVar.a((ByteBuffer) this.f31183b);
    }

    public final tb.c l(tb.b bVar) throws ChecksumException, FormatException {
        boolean z10;
        boolean z11;
        boolean z12;
        int i10;
        tb.d dVar = new tb.d(bVar);
        wb.b bVar2 = (wb.b) dVar.f33022d;
        int i11 = bVar2.f34269g;
        byte[] bArr = new byte[i11];
        tb.b bVar3 = (tb.b) dVar.f33020b;
        int i12 = bVar3.f33006b;
        int i13 = bVar3.f33005a;
        int i14 = 0;
        int i15 = 0;
        boolean z13 = false;
        int i16 = 0;
        boolean z14 = false;
        boolean z15 = false;
        boolean z16 = false;
        int i17 = 4;
        while (true) {
            if (i17 == i12 && i15 == 0 && !z13) {
                int i18 = i16 + 1;
                int i19 = i12 - 1;
                int i20 = (dVar.l(i19, i14, i12, i13) ? 1 : 0) << 1;
                if (dVar.l(i19, 1, i12, i13)) {
                    i20 |= 1;
                }
                int i21 = i20 << 1;
                if (dVar.l(i19, 2, i12, i13)) {
                    i21 |= 1;
                }
                int i22 = i21 << 1;
                if (dVar.l(0, i13 - 2, i12, i13)) {
                    i22 |= 1;
                }
                int i23 = i22 << 1;
                int i24 = i13 - 1;
                if (dVar.l(0, i24, i12, i13)) {
                    i23 |= 1;
                }
                int i25 = i23 << 1;
                if (dVar.l(1, i24, i12, i13)) {
                    i25 |= 1;
                }
                int i26 = i25 << 1;
                if (dVar.l(2, i24, i12, i13)) {
                    i26 |= 1;
                }
                int i27 = i26 << 1;
                if (dVar.l(3, i24, i12, i13)) {
                    i27 |= 1;
                }
                bArr[i16] = (byte) i27;
                i17 -= 2;
                i15 += 2;
                i16 = i18;
                z10 = true;
                z12 = z16;
            } else {
                int i28 = i12 - 2;
                if (i17 == i28 && i15 == 0 && (i13 & 3) != 0 && !z14) {
                    int i29 = i16 + 1;
                    int i30 = (dVar.l(i12 + (-3), 0, i12, i13) ? 1 : 0) << 1;
                    if (dVar.l(i28, 0, i12, i13)) {
                        i30 |= 1;
                    }
                    int i31 = i30 << 1;
                    if (dVar.l(i12 - 1, 0, i12, i13)) {
                        i31 |= 1;
                    }
                    int i32 = i31 << 1;
                    if (dVar.l(0, i13 - 4, i12, i13)) {
                        i32 |= 1;
                    }
                    int i33 = i32 << 1;
                    if (dVar.l(0, i13 - 3, i12, i13)) {
                        i33 |= 1;
                    }
                    int i34 = i33 << 1;
                    if (dVar.l(0, i13 - 2, i12, i13)) {
                        i34 |= 1;
                    }
                    int i35 = i34 << 1;
                    int i36 = i13 - 1;
                    if (dVar.l(0, i36, i12, i13)) {
                        i35 |= 1;
                    }
                    int i37 = i35 << 1;
                    if (dVar.l(1, i36, i12, i13)) {
                        i37 |= 1;
                    }
                    bArr[i16] = (byte) i37;
                    i17 -= 2;
                    i15 += 2;
                    z10 = z13;
                    i16 = i29;
                    z14 = true;
                } else if (i17 == i12 + 4 && i15 == 2 && (i13 & 7) == 0 && !z15) {
                    int i38 = i16 + 1;
                    int i39 = i12 - 1;
                    int i40 = (dVar.l(i39, 0, i12, i13) ? 1 : 0) << 1;
                    int i41 = i13 - 1;
                    if (dVar.l(i39, i41, i12, i13)) {
                        i40 |= 1;
                    }
                    int i42 = i40 << 1;
                    int i43 = i13 - 3;
                    if (dVar.l(0, i43, i12, i13)) {
                        i42 |= 1;
                    }
                    int i44 = i42 << 1;
                    int i45 = i13 - 2;
                    z10 = z13;
                    if (dVar.l(0, i45, i12, i13)) {
                        i44 |= 1;
                    }
                    boolean z17 = z14;
                    int i46 = i44 << 1;
                    if (dVar.l(0, i41, i12, i13)) {
                        i46 |= 1;
                    }
                    int i47 = i46 << 1;
                    if (dVar.l(1, i43, i12, i13)) {
                        i47 |= 1;
                    }
                    int i48 = i47 << 1;
                    if (dVar.l(1, i45, i12, i13)) {
                        i48 |= 1;
                    }
                    int i49 = i48 << 1;
                    if (dVar.l(1, i41, i12, i13)) {
                        i49 |= 1;
                    }
                    bArr[i16] = (byte) i49;
                    i17 -= 2;
                    i15 += 2;
                    i16 = i38;
                    z14 = z17;
                    z15 = true;
                } else {
                    z10 = z13;
                    boolean z18 = z14;
                    if (i17 == i28 && i15 == 0) {
                        if ((i13 & 7) == 4 && !z16) {
                            int i50 = i16 + 1;
                            int i51 = (dVar.l(i12 + (-3), 0, i12, i13) ? 1 : 0) << 1;
                            if (dVar.l(i28, 0, i12, i13)) {
                                i51 |= 1;
                            }
                            int i52 = i51 << 1;
                            if (dVar.l(i12 - 1, 0, i12, i13)) {
                                i52 |= 1;
                            }
                            int i53 = i52 << 1;
                            if (dVar.l(0, i13 - 2, i12, i13)) {
                                i53 |= 1;
                            }
                            int i54 = i53 << 1;
                            int i55 = i13 - 1;
                            if (dVar.l(0, i55, i12, i13)) {
                                i54 |= 1;
                            }
                            int i56 = i54 << 1;
                            if (dVar.l(1, i55, i12, i13)) {
                                i56 |= 1;
                            }
                            int i57 = i56 << 1;
                            if (dVar.l(2, i55, i12, i13)) {
                                i57 |= 1;
                            }
                            int i58 = i57 << 1;
                            if (dVar.l(3, i55, i12, i13)) {
                                i58 |= 1;
                            }
                            bArr[i16] = (byte) i58;
                            i17 -= 2;
                            i15 += 2;
                            i16 = i50;
                            z11 = true;
                        }
                        z14 = z18;
                        z12 = z11;
                    }
                    while (true) {
                        if (i17 < i12 && i15 >= 0 && !((tb.b) dVar.f33021c).b(i15, i17)) {
                            bArr[i16] = (byte) dVar.m(i17, i15, i12, i13);
                            i16++;
                        }
                        int i59 = i17 - 2;
                        int i60 = i15 + 2;
                        if (i59 < 0 || i60 >= i13) {
                            break;
                        }
                        i17 = i59;
                        i15 = i60;
                    }
                    int i61 = i17 - 1;
                    int i62 = i15 + 5;
                    while (true) {
                        if (i61 >= 0 && i62 < i13 && !((tb.b) dVar.f33021c).b(i62, i61)) {
                            bArr[i16] = (byte) dVar.m(i61, i62, i12, i13);
                            i16++;
                        }
                        int i63 = i61 + 2;
                        int i64 = i62 - 2;
                        if (i63 >= i12 || i64 < 0) {
                            break;
                        }
                        i61 = i63;
                        i62 = i64;
                    }
                    i17 = i61 + 5;
                    i15 = i62 - 1;
                    z11 = z16;
                    z14 = z18;
                    z12 = z11;
                }
                z12 = z16;
            }
            if (i17 >= i12 && i15 >= i13) {
                break;
            }
            i14 = 0;
            z13 = z10;
            z16 = z12;
        }
        if (i16 != ((wb.b) dVar.f33022d).f34269g) {
            throw FormatException.a();
        }
        j2.e eVar = bVar2.f34268f;
        v2.a[] aVarArr = (v2.a[]) eVar.f28617b;
        int iA = 0;
        for (v2.a aVar : aVarArr) {
            iA += aVar.a();
        }
        wb.a[] aVarArr2 = new wb.a[iA];
        int length = aVarArr.length;
        int i65 = 0;
        int i66 = 0;
        while (i66 < length) {
            v2.a aVar2 = aVarArr[i66];
            int i67 = 0;
            while (i67 < aVar2.a()) {
                switch (aVar2.f33651a) {
                    case 7:
                        i10 = aVar2.f33653c;
                        break;
                    default:
                        i10 = aVar2.f33653c;
                        break;
                }
                aVarArr2[i65] = new wb.a(i10, new byte[eVar.f28616a + i10], 0);
                i67++;
                aVarArr = aVarArr;
                i65++;
            }
            i66++;
            aVarArr = aVarArr;
        }
        int length2 = aVarArr2[0].f34261c.length - eVar.f28616a;
        int i68 = length2 - 1;
        int i69 = 0;
        for (int i70 = 0; i70 < i68; i70++) {
            int i71 = 0;
            while (i71 < i65) {
                aVarArr2[i71].f34261c[i70] = bArr[i69];
                i71++;
                i69++;
            }
        }
        boolean z19 = bVar2.f34263a == 24;
        int i72 = z19 ? 8 : i65;
        int i73 = 0;
        while (i73 < i72) {
            aVarArr2[i73].f34261c[i68] = bArr[i69];
            i73++;
            i69++;
        }
        int length3 = aVarArr2[0].f34261c.length;
        while (length2 < length3) {
            int i74 = 0;
            while (i74 < i65) {
                int i75 = z19 ? (i74 + 8) % i65 : i74;
                aVarArr2[i75].f34261c[(!z19 || i75 <= 7) ? length2 : length2 - 1] = bArr[i69];
                i74++;
                i69++;
            }
            length2++;
        }
        if (i69 != i11) {
            throw new IllegalArgumentException();
        }
        int i76 = 0;
        for (int i77 = 0; i77 < iA; i77++) {
            wb.a aVar3 = aVarArr2[i77];
            int i78 = aVar3.f34259a;
            i76 += aVar3.f34260b;
        }
        byte[] bArr2 = new byte[i76];
        int i79 = 0;
        for (int i80 = 0; i80 < iA; i80++) {
            wb.a aVar4 = aVarArr2[i80];
            int i81 = aVar4.f34259a;
            int i82 = aVar4.f34260b;
            byte[] bArr3 = aVar4.f34261c;
            int length4 = bArr3.length;
            int[] iArr = new int[length4];
            for (int i83 = 0; i83 < length4; i83++) {
                iArr[i83] = bArr3[i83] & 255;
            }
            try {
                int iJ = ((j0) this.f31183b).j(bArr3.length - i82, iArr);
                for (int i84 = 0; i84 < i82; i84++) {
                    bArr3[i84] = (byte) iArr[i84];
                }
                i79 += iJ;
                for (int i85 = 0; i85 < i82; i85++) {
                    bArr2[(i85 * iA) + i80] = bArr3[i85];
                }
            } catch (ReedSolomonException unused) {
                throw ChecksumException.a();
            }
        }
        tb.c cVarA = com.google.zxing.datamatrix.decoder.a.a(bArr2);
        cVarA.f33013e = Integer.valueOf(i79);
        return cVarA;
    }

    public final int o() {
        int i10 = this.f31182a;
        Object obj = this.f31183b;
        switch (i10) {
            case 5:
                return ((ByteString) obj).size();
            default:
                return ((com.google.crypto.tink.shaded.protobuf.ByteString) obj).size();
        }
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGAdListener
    public final void onAdClicked() {
        ((xyz.netfly.ads.o) this.f31183b).f34874c.getClass();
        xyz.netfly.ads.r.i("interstitial_ad", "Clicked");
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGAdListener
    public final void onAdDismissed() {
        xyz.netfly.ads.o oVar = (xyz.netfly.ads.o) this.f31183b;
        oVar.f34874c.getClass();
        xyz.netfly.ads.r.i("interstitial_ad", "Dismissed");
        oVar.f34874c.c(oVar.f34872a);
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGAdListener
    public final void onAdShowed() {
        ((xyz.netfly.ads.o) this.f31183b).f34874c.getClass();
        xyz.netfly.ads.r.i("interstitial_ad", "Showed");
    }

    @Override // xyz.stream.view.listener.OnDialogSelectListener
    public final void onCancelClick() {
        super.onCancelClick();
        ((me.c) this.f31183b).d();
    }

    @Override // k.a0
    public final void onCloseMenu(p pVar, boolean z10) {
        e.l0 l0Var;
        p pVarK = pVar.k();
        int i10 = 0;
        boolean z11 = pVarK != pVar;
        m0 m0Var = (m0) this.f31183b;
        if (z11) {
            pVar = pVarK;
        }
        e.l0[] l0VarArr = m0Var.f25292o0;
        int length = l0VarArr != null ? l0VarArr.length : 0;
        while (true) {
            if (i10 < length) {
                l0Var = l0VarArr[i10];
                if (l0Var != null && l0Var.f25264h == pVar) {
                    break;
                } else {
                    i10++;
                }
            } else {
                l0Var = null;
                break;
            }
        }
        if (l0Var != null) {
            if (!z11) {
                m0Var.q(l0Var, z10);
            } else {
                m0Var.o(l0Var.f25257a, l0Var, pVarK);
                m0Var.q(l0Var, true);
            }
        }
    }

    @Override // w8.d
    public final void onComplete(h hVar) {
        ((CountDownLatch) this.f31183b).countDown();
    }

    @Override // xyz.stream.view.listener.OnDialogSelectListener
    public final void onItemSelected(int i10) {
        Object obj = this.f31183b;
        ((me.c) obj).f30664g = i10;
        ((me.c) obj).f30661d.setSpeed(Float.parseFloat(((String) ((me.c) obj).f30663f.get(i10)).replace("x", "").replace("(Normal)", "")));
    }

    @Override // j5.i
    public final int read(byte[] bArr, int i10) throws DefaultImageHeaderParser$Reader$EndOfFileException {
        int i11 = 0;
        int i12 = 0;
        while (i11 < i10 && (i12 = ((InputStream) this.f31183b).read(bArr, i11, i10 - i11)) != -1) {
            i11 += i12;
        }
        if (i11 == 0 && i12 == -1) {
            throw new DefaultImageHeaderParser$Reader$EndOfFileException();
        }
        return i11;
    }

    @Override // j5.i
    public final long skip(long j10) throws IOException {
        if (j10 < 0) {
            return 0L;
        }
        long j11 = j10;
        while (j11 > 0) {
            Object obj = this.f31183b;
            long jSkip = ((InputStream) obj).skip(j11);
            if (jSkip > 0) {
                j11 -= jSkip;
            } else {
                if (((InputStream) obj).read() == -1) {
                    break;
                }
                j11--;
            }
        }
        return j10 - j11;
    }

    public c(int i10) {
        this.f31182a = i10;
        if (i10 != 24) {
            this.f31183b = new HashSet();
        } else {
            this.f31183b = new j0(ub.a.f33427m, 23);
        }
    }

    public c(ed.i iVar) {
        this.f31182a = 26;
        this.f31183b = new ed.e(iVar, "flutter/keyevent", m.f25840a, null);
    }
}
