Live Football Updates v1.0.1版本的 MD5 值为:636649089335ebb37514551724606ad0

以下内容为反编译后的 w.java 源代码,内容仅作参考


package pa;

import android.os.Bundle;
import android.text.TextUtils;
import ck.b;
import com.google.android.gms.internal.measurement.ka;
import com.google.android.gms.tasks.SuccessContinuation;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.Tasks;
import com.ironsource.q2;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class w implements k2, r2.o, SuccessContinuation {
    public static final w f29209a = new w();
    public static final w f29210b = new w();

    public static void a(z.e eVar, x.d dVar, ArrayList arrayList, int i) {
        int i10;
        z.b[] bVarArr;
        int i11;
        int i12;
        boolean z10;
        boolean z11;
        boolean z12;
        boolean z13;
        boolean z14;
        boolean z15;
        boolean z16;
        boolean z17;
        boolean z18;
        boolean z19;
        z.c[] cVarArr;
        int i13;
        z.b[] bVarArr2;
        ArrayList<z.d> arrayList2;
        z.d dVar2;
        int i14;
        z.d dVar3;
        int i15;
        boolean z20;
        z.d dVar4;
        int i16;
        z.c cVar;
        z.c cVar2;
        z.c cVar3;
        z.d dVar5;
        int i17;
        int i18;
        z.d dVar6;
        int i19;
        int i20;
        z.d dVar7;
        z.d dVar8;
        x.h hVar;
        x.h hVar2;
        z.c cVar4;
        int i21;
        int i22;
        boolean z21;
        x.h hVar3;
        z.c cVar5;
        x.h hVar4;
        int i23;
        z.d dVar9;
        z.d dVar10;
        z.d dVar11;
        z.d dVar12;
        z.c cVar6;
        z.d dVar13;
        int i24;
        z.c cVar7;
        z.c cVar8;
        x.h hVar5;
        z.c cVar9;
        x.h hVar6;
        z.d dVar14;
        x.h hVar7;
        x.h hVar8;
        x.h hVar9;
        float f10;
        int size;
        float f11;
        int i25;
        ArrayList<z.d> arrayList3;
        int i26;
        float f12;
        z.d dVar15;
        boolean z22;
        int i27;
        boolean z23;
        z.d dVar16;
        z.b bVar;
        z.d dVar17;
        z.d dVar18;
        int i28;
        int i29;
        boolean z24;
        boolean z25;
        int i30;
        z.d dVar19;
        z.c cVar10;
        z.d dVar20;
        int i31;
        boolean z26;
        z.e eVar2 = eVar;
        ArrayList arrayList4 = arrayList;
        int i32 = 2;
        if (i == 0) {
            i10 = eVar2.B0;
            bVarArr = eVar2.E0;
            i11 = 0;
        } else {
            i10 = eVar2.C0;
            bVarArr = eVar2.D0;
            i11 = 2;
        }
        int i33 = 0;
        while (i33 < i10) {
            z.b bVar2 = bVarArr[i33];
            boolean z27 = bVar2.f34770q;
            int i34 = 3;
            int i35 = 8;
            int i36 = 1;
            z.d dVar21 = bVar2.f34755a;
            x.h hVar10 = null;
            if (!z27) {
                int i37 = bVar2.f34765l;
                int i38 = i37 * 2;
                z.d dVar22 = dVar21;
                z.d dVar23 = dVar22;
                boolean z28 = false;
                while (!z28) {
                    bVar2.i += i36;
                    dVar22.f34815p0[i37] = null;
                    dVar22.f34813o0[i37] = null;
                    int i39 = dVar22.f34803j0;
                    z.c[] cVarArr2 = dVar22.S;
                    if (i39 != i35) {
                        dVar22.k(i37);
                        cVarArr2[i38].e();
                        int i40 = i38 + 1;
                        cVarArr2[i40].e();
                        cVarArr2[i38].e();
                        cVarArr2[i40].e();
                        if (bVar2.f34756b == null) {
                            bVar2.f34756b = dVar22;
                        }
                        bVar2.f34758d = dVar22;
                        int i41 = dVar22.V[i37];
                        if (i41 == i34 && ((i31 = dVar22.f34821u[i37]) == 0 || i31 == i34 || i31 == i32)) {
                            bVar2.f34763j++;
                            float f13 = dVar22.f34811n0[i37];
                            if (f13 > 0.0f) {
                                bVar2.f34764k += f13;
                            }
                            i30 = i33;
                            if (dVar22.f34803j0 != 8 && i41 == 3 && (i31 == 0 || i31 == 3)) {
                                z26 = true;
                            } else {
                                z26 = false;
                            }
                            if (z26) {
                                if (f13 < 0.0f) {
                                    bVar2.f34767n = true;
                                } else {
                                    bVar2.f34768o = true;
                                }
                                if (bVar2.f34762h == null) {
                                    bVar2.f34762h = new ArrayList<>();
                                }
                                bVar2.f34762h.add(dVar22);
                            }
                            if (bVar2.f34760f == null) {
                                bVar2.f34760f = dVar22;
                            }
                            z.d dVar24 = bVar2.f34761g;
                            if (dVar24 != null) {
                                dVar24.f34813o0[i37] = dVar22;
                            }
                            bVar2.f34761g = dVar22;
                            dVar19 = dVar23;
                            if (dVar19 != dVar22) {
                                dVar19.f34815p0[i37] = dVar22;
                            }
                            cVar10 = cVarArr2[i38 + 1].f34776f;
                            if (cVar10 != null) {
                                dVar20 = cVar10.f34774d;
                                z.c cVar11 = dVar20.S[i38].f34776f;
                                if (cVar11 != null) {
                                }
                            }
                            dVar20 = null;
                            if (dVar20 != null) {
                                dVar20 = dVar22;
                                z28 = true;
                            }
                            dVar23 = dVar22;
                            i33 = i30;
                            i36 = 1;
                            i35 = 8;
                            i32 = 2;
                            dVar22 = dVar20;
                            i34 = 3;
                        }
                    }
                    i30 = i33;
                    dVar19 = dVar23;
                    if (dVar19 != dVar22) {
                    }
                    cVar10 = cVarArr2[i38 + 1].f34776f;
                    if (cVar10 != null) {
                    }
                    dVar20 = null;
                    if (dVar20 != null) {
                    }
                    dVar23 = dVar22;
                    i33 = i30;
                    i36 = 1;
                    i35 = 8;
                    i32 = 2;
                    dVar22 = dVar20;
                    i34 = 3;
                }
                i12 = i33;
                z.d dVar25 = bVar2.f34756b;
                if (dVar25 != null) {
                    dVar25.S[i38].e();
                }
                z.d dVar26 = bVar2.f34758d;
                if (dVar26 != null) {
                    dVar26.S[i38 + 1].e();
                }
                bVar2.f34757c = dVar22;
                if (i37 == 0 && bVar2.f34766m) {
                    bVar2.f34759e = dVar22;
                } else {
                    bVar2.f34759e = dVar21;
                }
                if (bVar2.f34768o && bVar2.f34767n) {
                    z25 = true;
                } else {
                    z25 = false;
                }
                bVar2.f34769p = z25;
                z10 = true;
            } else {
                i12 = i33;
                z10 = true;
            }
            bVar2.f34770q = z10;
            if (arrayList4 != null && !arrayList4.contains(dVar21)) {
                i13 = i10;
                bVarArr2 = bVarArr;
                i16 = i12;
            } else {
                z.d dVar27 = bVar2.f34757c;
                z.d dVar28 = bVar2.f34756b;
                z.d dVar29 = bVar2.f34758d;
                z.d dVar30 = bVar2.f34759e;
                float f14 = bVar2.f34764k;
                if (eVar2.V[i] == 2) {
                    z11 = true;
                } else {
                    z11 = false;
                }
                if (i == 0) {
                    int i42 = dVar30.f34807l0;
                    if (i42 == 0) {
                        z24 = true;
                    } else {
                        z24 = false;
                    }
                    if (i42 == 1) {
                        z15 = true;
                    } else {
                        z15 = false;
                    }
                    if (i42 == 2) {
                        z16 = z24;
                        z17 = z15;
                        z18 = z16;
                        z19 = true;
                    } else {
                        z14 = z24;
                        z17 = z15;
                        z18 = z14;
                        z19 = false;
                    }
                } else {
                    int i43 = dVar30.f34809m0;
                    if (i43 == 0) {
                        z12 = true;
                    } else {
                        z12 = false;
                    }
                    if (i43 == 1) {
                        z13 = true;
                    } else {
                        z13 = false;
                    }
                    if (i43 == 2) {
                        z16 = z12;
                        z15 = z13;
                        z17 = z15;
                        z18 = z16;
                        z19 = true;
                    } else {
                        z14 = z12;
                        z15 = z13;
                        z17 = z15;
                        z18 = z14;
                        z19 = false;
                    }
                }
                z.d dVar31 = dVar21;
                boolean z29 = false;
                while (true) {
                    cVarArr = eVar2.S;
                    if (z29) {
                        break;
                    }
                    boolean z30 = z29;
                    z.c cVar12 = dVar31.S[i11];
                    if (z19) {
                        i27 = 1;
                    } else {
                        i27 = 4;
                    }
                    int e10 = cVar12.e();
                    int[] iArr = dVar31.V;
                    int i44 = i10;
                    z.b[] bVarArr3 = bVarArr;
                    if (iArr[i] == 3 && dVar31.f34821u[i] == 0) {
                        z23 = true;
                    } else {
                        z23 = false;
                    }
                    z.c cVar13 = cVar12.f34776f;
                    if (cVar13 != null && dVar31 != dVar21) {
                        e10 = cVar13.e() + e10;
                    }
                    int i45 = e10;
                    if (z19 && dVar31 != dVar21 && dVar31 != dVar28) {
                        dVar16 = dVar30;
                        i27 = 8;
                    } else {
                        dVar16 = dVar30;
                    }
                    z.c cVar14 = cVar12.f34776f;
                    if (cVar14 != null) {
                        if (dVar31 == dVar28) {
                            dVar17 = dVar21;
                            bVar = bVar2;
                            dVar.f(cVar12.i, cVar14.i, i45, 6);
                        } else {
                            bVar = bVar2;
                            dVar17 = dVar21;
                            dVar.f(cVar12.i, cVar14.i, i45, 8);
                        }
                        if (z23 && !z19) {
                            i27 = 5;
                        }
                        if (dVar31 == dVar28 && z19 && dVar31.U[i]) {
                            i29 = 5;
                        } else {
                            i29 = i27;
                        }
                        dVar.e(cVar12.i, cVar12.f34776f.i, i45, i29);
                    } else {
                        bVar = bVar2;
                        dVar17 = dVar21;
                    }
                    z.c[] cVarArr3 = dVar31.S;
                    if (z11) {
                        if (dVar31.f34803j0 != 8 && iArr[i] == 3) {
                            i28 = 0;
                            dVar.f(cVarArr3[i11 + 1].i, cVarArr3[i11].i, 0, 5);
                        } else {
                            i28 = 0;
                        }
                        dVar.f(cVarArr3[i11].i, cVarArr[i11].i, i28, 8);
                    }
                    z.c cVar15 = cVarArr3[i11 + 1].f34776f;
                    if (cVar15 != null) {
                        dVar18 = cVar15.f34774d;
                        z.c cVar16 = dVar18.S[i11].f34776f;
                        if (cVar16 != null) {
                        }
                    }
                    dVar18 = null;
                    if (dVar18 != null) {
                        dVar31 = dVar18;
                        z29 = z30;
                    } else {
                        z29 = true;
                    }
                    dVar30 = dVar16;
                    i10 = i44;
                    bVarArr = bVarArr3;
                    dVar21 = dVar17;
                    bVar2 = bVar;
                }
                z.b bVar3 = bVar2;
                z.d dVar32 = dVar30;
                z.d dVar33 = dVar21;
                i13 = i10;
                bVarArr2 = bVarArr;
                if (dVar29 != null) {
                    int i46 = i11 + 1;
                    if (dVar27.S[i46].f34776f != null) {
                        z.c cVar17 = dVar29.S[i46];
                        if (dVar29.V[i] == 3 && dVar29.f34821u[i] == 0) {
                            z22 = true;
                        } else {
                            z22 = false;
                        }
                        if (z22 && !z19) {
                            z.c cVar18 = cVar17.f34776f;
                            if (cVar18.f34774d == eVar2) {
                                dVar.e(cVar17.i, cVar18.i, -cVar17.e(), 5);
                                dVar.g(cVar17.i, dVar27.S[i46].f34776f.i, -cVar17.e(), 6);
                                if (z11) {
                                    int i47 = i11 + 1;
                                    x.h hVar11 = cVarArr[i47].i;
                                    z.c cVar19 = dVar27.S[i47];
                                    dVar.f(hVar11, cVar19.i, cVar19.e(), 8);
                                }
                                arrayList2 = bVar3.f34762h;
                                if (arrayList2 != null && (size = arrayList2.size()) > 1) {
                                    if (!bVar3.f34767n && !bVar3.f34769p) {
                                        f11 = bVar3.f34763j;
                                    } else {
                                        f11 = f14;
                                    }
                                    z.d dVar34 = null;
                                    i25 = 0;
                                    float f15 = 0.0f;
                                    while (i25 < size) {
                                        z.d dVar35 = arrayList2.get(i25);
                                        float f16 = dVar35.f34811n0[i];
                                        int i48 = (f16 > 0.0f ? 1 : (f16 == 0.0f ? 0 : -1));
                                        z.c[] cVarArr4 = dVar35.S;
                                        if (i48 < 0) {
                                            if (bVar3.f34769p) {
                                                dVar.e(cVarArr4[i11 + 1].i, cVarArr4[i11].i, 0, 4);
                                                arrayList3 = arrayList2;
                                                i26 = size;
                                                i25++;
                                                size = i26;
                                                arrayList2 = arrayList3;
                                            } else {
                                                f16 = 1.0f;
                                            }
                                        }
                                        int i49 = (f16 > 0.0f ? 1 : (f16 == 0.0f ? 0 : -1));
                                        if (i49 == 0) {
                                            dVar.e(cVarArr4[i11 + 1].i, cVarArr4[i11].i, 0, 8);
                                            arrayList3 = arrayList2;
                                            i26 = size;
                                            i25++;
                                            size = i26;
                                            arrayList2 = arrayList3;
                                        } else {
                                            if (dVar34 != null) {
                                                z.c[] cVarArr5 = dVar34.S;
                                                x.h hVar12 = cVarArr5[i11].i;
                                                int i50 = i11 + 1;
                                                x.h hVar13 = cVarArr5[i50].i;
                                                arrayList3 = arrayList2;
                                                x.h hVar14 = cVarArr4[i11].i;
                                                x.h hVar15 = cVarArr4[i50].i;
                                                i26 = size;
                                                x.b l10 = dVar.l();
                                                dVar15 = dVar35;
                                                l10.f33177b = 0.0f;
                                                if (f11 != 0.0f && f15 != f16) {
                                                    if (f15 == 0.0f) {
                                                        l10.f33179d.c(hVar12, 1.0f);
                                                        l10.f33179d.c(hVar13, -1.0f);
                                                    } else if (i49 == 0) {
                                                        l10.f33179d.c(hVar14, 1.0f);
                                                        l10.f33179d.c(hVar15, -1.0f);
                                                    } else {
                                                        float f17 = (f15 / f11) / (f16 / f11);
                                                        f12 = f16;
                                                        l10.f33179d.c(hVar12, 1.0f);
                                                        l10.f33179d.c(hVar13, -1.0f);
                                                        l10.f33179d.c(hVar15, f17);
                                                        l10.f33179d.c(hVar14, -f17);
                                                    }
                                                    f12 = f16;
                                                } else {
                                                    f12 = f16;
                                                    l10.f33179d.c(hVar12, 1.0f);
                                                    l10.f33179d.c(hVar13, -1.0f);
                                                    l10.f33179d.c(hVar15, 1.0f);
                                                    l10.f33179d.c(hVar14, -1.0f);
                                                }
                                                dVar.c(l10);
                                            } else {
                                                arrayList3 = arrayList2;
                                                i26 = size;
                                                f12 = f16;
                                                dVar15 = dVar35;
                                            }
                                            f15 = f12;
                                            dVar34 = dVar15;
                                            i25++;
                                            size = i26;
                                            arrayList2 = arrayList3;
                                        }
                                    }
                                }
                                if (dVar28 == null && (dVar28 == dVar29 || z19)) {
                                    z.c cVar20 = dVar33.S[i11];
                                    int i51 = i11 + 1;
                                    z.c cVar21 = dVar27.S[i51];
                                    z.c cVar22 = cVar20.f34776f;
                                    if (cVar22 != null) {
                                        hVar8 = cVar22.i;
                                    } else {
                                        hVar8 = null;
                                    }
                                    z.c cVar23 = cVar21.f34776f;
                                    if (cVar23 != null) {
                                        hVar9 = cVar23.i;
                                    } else {
                                        hVar9 = null;
                                    }
                                    z.c cVar24 = dVar28.S[i11];
                                    if (dVar29 != null) {
                                        cVar21 = dVar29.S[i51];
                                    }
                                    if (hVar8 != null && hVar9 != null) {
                                        if (i == 0) {
                                            f10 = dVar32.f34798g0;
                                        } else {
                                            f10 = dVar32.f34800h0;
                                        }
                                        dVar2 = dVar29;
                                        i14 = i12;
                                        dVar.b(cVar24.i, hVar8, cVar24.e(), f10, hVar9, cVar21.i, cVar21.e(), 7);
                                    } else {
                                        dVar2 = dVar29;
                                        i14 = i12;
                                    }
                                } else {
                                    dVar2 = dVar29;
                                    i14 = i12;
                                    dVar3 = dVar33;
                                    if (!z18 && dVar28 != null) {
                                        int i52 = bVar3.f34763j;
                                        if (i52 > 0 && bVar3.i == i52) {
                                            z21 = true;
                                        } else {
                                            z21 = false;
                                        }
                                        z.d dVar36 = dVar28;
                                        for (z.d dVar37 = dVar36; dVar37 != null; dVar37 = dVar11) {
                                            z.d dVar38 = dVar37.f34815p0[i];
                                            while (dVar38 != null && dVar38.f34803j0 == 8) {
                                                dVar38 = dVar38.f34815p0[i];
                                            }
                                            if (dVar38 != null || dVar37 == dVar2) {
                                                z.c[] cVarArr6 = dVar37.S;
                                                z.c cVar25 = cVarArr6[i11];
                                                x.h hVar16 = cVar25.i;
                                                z.c cVar26 = cVar25.f34776f;
                                                if (cVar26 != null) {
                                                    hVar3 = cVar26.i;
                                                } else {
                                                    hVar3 = null;
                                                }
                                                if (dVar36 != dVar37) {
                                                    hVar3 = dVar36.S[i11 + 1].i;
                                                } else if (dVar37 == dVar28) {
                                                    z.c cVar27 = dVar3.S[i11].f34776f;
                                                    if (cVar27 != null) {
                                                        hVar3 = cVar27.i;
                                                    } else {
                                                        hVar3 = null;
                                                    }
                                                }
                                                int e11 = cVar25.e();
                                                int i53 = i11 + 1;
                                                int e12 = cVarArr6[i53].e();
                                                if (dVar38 != null) {
                                                    cVar5 = dVar38.S[i11];
                                                    hVar4 = cVar5.i;
                                                } else {
                                                    cVar5 = dVar27.S[i53].f34776f;
                                                    if (cVar5 != null) {
                                                        hVar4 = cVar5.i;
                                                    } else {
                                                        hVar4 = null;
                                                    }
                                                }
                                                x.h hVar17 = cVarArr6[i53].i;
                                                if (cVar5 != null) {
                                                    e12 = cVar5.e() + e12;
                                                }
                                                int e13 = dVar36.S[i53].e() + e11;
                                                if (hVar16 != null && hVar3 != null && hVar4 != null && hVar17 != null) {
                                                    if (dVar37 == dVar28) {
                                                        e13 = dVar28.S[i11].e();
                                                    }
                                                    if (dVar37 == dVar2) {
                                                        e12 = dVar2.S[i53].e();
                                                    }
                                                    if (z21) {
                                                        i23 = 8;
                                                    } else {
                                                        i23 = 5;
                                                    }
                                                    x.h hVar18 = hVar3;
                                                    int i54 = e13;
                                                    x.h hVar19 = hVar4;
                                                    dVar9 = dVar3;
                                                    dVar10 = dVar36;
                                                    int i55 = e12;
                                                    dVar11 = dVar38;
                                                    dVar12 = dVar37;
                                                    dVar.b(hVar16, hVar18, i54, 0.5f, hVar19, hVar17, i55, i23);
                                                    if (dVar12.f34803j0 == 8) {
                                                        dVar36 = dVar12;
                                                    } else {
                                                        dVar36 = dVar10;
                                                    }
                                                    dVar3 = dVar9;
                                                }
                                            }
                                            dVar9 = dVar3;
                                            dVar11 = dVar38;
                                            dVar10 = dVar36;
                                            dVar12 = dVar37;
                                            if (dVar12.f34803j0 == 8) {
                                            }
                                            dVar3 = dVar9;
                                        }
                                    } else {
                                        int i56 = 8;
                                        if (z17 && dVar28 != null) {
                                            i15 = bVar3.f34763j;
                                            if (i15 <= 0 && bVar3.i == i15) {
                                                z20 = true;
                                            } else {
                                                z20 = false;
                                            }
                                            dVar4 = dVar28;
                                            z.d dVar39 = dVar4;
                                            while (dVar4 != null) {
                                                z.d dVar40 = dVar4.f34815p0[i];
                                                while (dVar40 != null && dVar40.f34803j0 == i56) {
                                                    dVar40 = dVar40.f34815p0[i];
                                                }
                                                if (dVar4 != dVar28 && dVar4 != dVar2 && dVar40 != null) {
                                                    if (dVar40 == dVar2) {
                                                        dVar7 = null;
                                                    } else {
                                                        dVar7 = dVar40;
                                                    }
                                                    z.c[] cVarArr7 = dVar4.S;
                                                    z.c cVar28 = cVarArr7[i11];
                                                    x.h hVar20 = cVar28.i;
                                                    int i57 = i11 + 1;
                                                    x.h hVar21 = dVar39.S[i57].i;
                                                    int e14 = cVar28.e();
                                                    int e15 = cVarArr7[i57].e();
                                                    if (dVar7 != null) {
                                                        cVar4 = dVar7.S[i11];
                                                        hVar = cVar4.i;
                                                        dVar8 = dVar7;
                                                        z.c cVar29 = cVar4.f34776f;
                                                        if (cVar29 != null) {
                                                            hVar2 = cVar29.i;
                                                        } else {
                                                            hVar2 = null;
                                                        }
                                                    } else {
                                                        dVar8 = dVar7;
                                                        z.c cVar30 = dVar2.S[i11];
                                                        if (cVar30 != null) {
                                                            hVar = cVar30.i;
                                                        } else {
                                                            hVar = null;
                                                        }
                                                        hVar2 = cVarArr7[i57].i;
                                                        cVar4 = cVar30;
                                                    }
                                                    if (cVar4 != null) {
                                                        i21 = cVar4.e() + e15;
                                                    } else {
                                                        i21 = e15;
                                                    }
                                                    int e16 = dVar39.S[i57].e() + e14;
                                                    if (z20) {
                                                        i22 = 8;
                                                    } else {
                                                        i22 = 4;
                                                    }
                                                    if (hVar20 != null && hVar21 != null && hVar != null && hVar2 != null) {
                                                        dVar6 = dVar39;
                                                        int i58 = i21;
                                                        i19 = i14;
                                                        i20 = 8;
                                                        dVar.b(hVar20, hVar21, e16, 0.5f, hVar, hVar2, i58, i22);
                                                    } else {
                                                        dVar6 = dVar39;
                                                        i19 = i14;
                                                        i20 = 8;
                                                    }
                                                    dVar40 = dVar8;
                                                } else {
                                                    dVar6 = dVar39;
                                                    i19 = i14;
                                                    i20 = i56;
                                                }
                                                if (dVar4.f34803j0 != i20) {
                                                    dVar39 = dVar4;
                                                } else {
                                                    dVar39 = dVar6;
                                                }
                                                dVar4 = dVar40;
                                                i56 = i20;
                                                i14 = i19;
                                            }
                                            i16 = i14;
                                            z.c cVar31 = dVar28.S[i11];
                                            cVar = dVar3.S[i11].f34776f;
                                            int i59 = i11 + 1;
                                            cVar2 = dVar2.S[i59];
                                            cVar3 = dVar27.S[i59].f34776f;
                                            if (cVar == null) {
                                                if (dVar28 != dVar2) {
                                                    i18 = 5;
                                                    dVar.e(cVar31.i, cVar.i, cVar31.e(), 5);
                                                } else {
                                                    i18 = 5;
                                                    if (cVar3 != null) {
                                                        dVar5 = dVar27;
                                                        i17 = 5;
                                                        dVar.b(cVar31.i, cVar.i, cVar31.e(), 0.5f, cVar2.i, cVar3.i, cVar2.e(), 5);
                                                    }
                                                }
                                                dVar5 = dVar27;
                                                i17 = i18;
                                            } else {
                                                dVar5 = dVar27;
                                                i17 = 5;
                                            }
                                            if (cVar3 != null && dVar28 != dVar2) {
                                                dVar.e(cVar2.i, cVar3.i, -cVar2.e(), i17);
                                            }
                                            if ((!z18 || z17) && dVar28 != null && dVar28 != dVar2) {
                                                z.c[] cVarArr8 = dVar28.S;
                                                cVar6 = cVarArr8[i11];
                                                if (dVar2 == null) {
                                                    dVar13 = dVar28;
                                                } else {
                                                    dVar13 = dVar2;
                                                }
                                                i24 = i11 + 1;
                                                cVar7 = dVar13.S[i24];
                                                cVar8 = cVar6.f34776f;
                                                if (cVar8 != null) {
                                                    hVar5 = cVar8.i;
                                                } else {
                                                    hVar5 = null;
                                                }
                                                cVar9 = cVar7.f34776f;
                                                if (cVar9 != null) {
                                                    hVar6 = cVar9.i;
                                                } else {
                                                    hVar6 = null;
                                                }
                                                dVar14 = dVar5;
                                                if (dVar14 != dVar13) {
                                                    z.c cVar32 = dVar14.S[i24].f34776f;
                                                    if (cVar32 != null) {
                                                        hVar10 = cVar32.i;
                                                    }
                                                    hVar7 = hVar10;
                                                } else {
                                                    hVar7 = hVar6;
                                                }
                                                if (dVar28 == dVar13) {
                                                    cVar7 = cVarArr8[i24];
                                                }
                                                if (hVar5 == null && hVar7 != null) {
                                                    dVar.b(cVar6.i, hVar5, cVar6.e(), 0.5f, hVar7, cVar7.i, dVar13.S[i24].e(), 5);
                                                }
                                            }
                                        }
                                    }
                                }
                                dVar5 = dVar27;
                                i16 = i14;
                                if (!z18) {
                                }
                                z.c[] cVarArr82 = dVar28.S;
                                cVar6 = cVarArr82[i11];
                                if (dVar2 == null) {
                                }
                                i24 = i11 + 1;
                                cVar7 = dVar13.S[i24];
                                cVar8 = cVar6.f34776f;
                                if (cVar8 != null) {
                                }
                                cVar9 = cVar7.f34776f;
                                if (cVar9 != null) {
                                }
                                dVar14 = dVar5;
                                if (dVar14 != dVar13) {
                                }
                                if (dVar28 == dVar13) {
                                }
                                if (hVar5 == null) {
                                    dVar.b(cVar6.i, hVar5, cVar6.e(), 0.5f, hVar7, cVar7.i, dVar13.S[i24].e(), 5);
                                }
                            }
                        }
                        if (z19) {
                            z.c cVar33 = cVar17.f34776f;
                            if (cVar33.f34774d == eVar2) {
                                dVar.e(cVar17.i, cVar33.i, -cVar17.e(), 4);
                            }
                        }
                        dVar.g(cVar17.i, dVar27.S[i46].f34776f.i, -cVar17.e(), 6);
                        if (z11) {
                        }
                        arrayList2 = bVar3.f34762h;
                        if (arrayList2 != null) {
                            if (!bVar3.f34767n) {
                            }
                            f11 = f14;
                            z.d dVar342 = null;
                            i25 = 0;
                            float f152 = 0.0f;
                            while (i25 < size) {
                            }
                        }
                        if (dVar28 == null) {
                        }
                        dVar2 = dVar29;
                        i14 = i12;
                        dVar3 = dVar33;
                        if (!z18) {
                        }
                        int i562 = 8;
                        if (z17) {
                            i15 = bVar3.f34763j;
                            if (i15 <= 0) {
                            }
                            z20 = false;
                            dVar4 = dVar28;
                            z.d dVar392 = dVar4;
                            while (dVar4 != null) {
                            }
                            i16 = i14;
                            z.c cVar312 = dVar28.S[i11];
                            cVar = dVar3.S[i11].f34776f;
                            int i592 = i11 + 1;
                            cVar2 = dVar2.S[i592];
                            cVar3 = dVar27.S[i592].f34776f;
                            if (cVar == null) {
                            }
                            if (cVar3 != null) {
                                dVar.e(cVar2.i, cVar3.i, -cVar2.e(), i17);
                            }
                            if (!z18) {
                            }
                            z.c[] cVarArr822 = dVar28.S;
                            cVar6 = cVarArr822[i11];
                            if (dVar2 == null) {
                            }
                            i24 = i11 + 1;
                            cVar7 = dVar13.S[i24];
                            cVar8 = cVar6.f34776f;
                            if (cVar8 != null) {
                            }
                            cVar9 = cVar7.f34776f;
                            if (cVar9 != null) {
                            }
                            dVar14 = dVar5;
                            if (dVar14 != dVar13) {
                            }
                            if (dVar28 == dVar13) {
                            }
                            if (hVar5 == null) {
                            }
                        }
                        dVar5 = dVar27;
                        i16 = i14;
                        if (!z18) {
                        }
                        z.c[] cVarArr8222 = dVar28.S;
                        cVar6 = cVarArr8222[i11];
                        if (dVar2 == null) {
                        }
                        i24 = i11 + 1;
                        cVar7 = dVar13.S[i24];
                        cVar8 = cVar6.f34776f;
                        if (cVar8 != null) {
                        }
                        cVar9 = cVar7.f34776f;
                        if (cVar9 != null) {
                        }
                        dVar14 = dVar5;
                        if (dVar14 != dVar13) {
                        }
                        if (dVar28 == dVar13) {
                        }
                        if (hVar5 == null) {
                        }
                    }
                }
                if (z11) {
                }
                arrayList2 = bVar3.f34762h;
                if (arrayList2 != null) {
                }
                if (dVar28 == null) {
                }
                dVar2 = dVar29;
                i14 = i12;
                dVar3 = dVar33;
                if (!z18) {
                }
                int i5622 = 8;
                if (z17) {
                }
                dVar5 = dVar27;
                i16 = i14;
                if (!z18) {
                }
                z.c[] cVarArr82222 = dVar28.S;
                cVar6 = cVarArr82222[i11];
                if (dVar2 == null) {
                }
                i24 = i11 + 1;
                cVar7 = dVar13.S[i24];
                cVar8 = cVar6.f34776f;
                if (cVar8 != null) {
                }
                cVar9 = cVar7.f34776f;
                if (cVar9 != null) {
                }
                dVar14 = dVar5;
                if (dVar14 != dVar13) {
                }
                if (dVar28 == dVar13) {
                }
                if (hVar5 == null) {
                }
            }
            i33 = i16 + 1;
            i32 = 2;
            eVar2 = eVar;
            arrayList4 = arrayList;
            i10 = i13;
            bVarArr = bVarArr2;
        }
    }

    public static String b(String str) {
        String f10 = ae.d.d().f("youtube_iframe_api_url");
        if (TextUtils.isEmpty(f10)) {
            f10 = "https://www.youtube.com/iframe_api";
        }
        return "<!DOCTYPE html><html><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\"><link rel=\"stylesheet\" type=\"text/css\" href=\"file:///android_asset/style_video.css\"><script src=\"" + f10 + "\"></script><script>var player;function onYouTubeIframeAPIReady() {    player = new YT.Player('player', {        events: {            'onReady': onPlayerReady,            'onStateChange': onPlayerStateChange,            'onError': onPlayerError        }    });}function onPlayerReady(event) {    event.target.playVideo();}function onPlayerStateChange(event) {    notifyUI(event.data);}function onPlayerError(event) {    notifyUI(-100, event.data);}function notifyUI(state, errorMessage) {    if (window.MyJsInterface && window.MyJsInterface.notifyUI) {        window.MyJsInterface.notifyUI(state, errorMessage);    }}</script></head><body><div class=\"bodywrap_x\"><div class=\"content_x\"><div class=\"videoBox widescreen vimeo\"><iframe id=\"player\" src=\"" + str + "\" frameborder=\"0\" allowfullscreen></iframe></div></div></div></body></html>";
    }

    public static boolean c(String str, ck.o oVar) {
        try {
            ck.b h10 = oVar.h();
            h10.getClass();
            b.a aVar = new b.a();
            while (aVar.hasNext()) {
                if (i7.l.H(((ck.a) aVar.next()).f4272a, str)) {
                    return true;
                }
            }
            return false;
        } catch (Exception unused) {
            return false;
        }
    }

    public static boolean d(String str, ck.o oVar) {
        try {
            ck.b h10 = oVar.h();
            h10.getClass();
            b.a aVar = new b.a();
            while (aVar.hasNext()) {
                if (i7.l.H(((ck.a) aVar.next()).getValue(), str)) {
                    return true;
                }
            }
            return false;
        } catch (Exception unused) {
            return false;
        }
    }

    public static String e(String str) {
        Iterator<ck.o> it;
        String str2;
        String str3;
        ck.o oVar;
        String str4;
        String str5;
        Iterator<ck.o> it2;
        String str6;
        String str7;
        String str8;
        String str9;
        String str10;
        String str11;
        String str12;
        String str13;
        String str14;
        ck.s sVar;
        List<String> asList;
        List<String> asList2;
        String str15 = "script_tiktok_source";
        String str16 = "script_instagram_source";
        String str17 = "script_twitter_source";
        String str18 = "";
        ck.o q02 = dk.f.a().b(str, "").q0();
        String str19 = "noscript";
        String str20 = "cite";
        String str21 = "src";
        fk.c i02 = q02.i0("*");
        if (!i02.isEmpty()) {
            it = i02.iterator();
            while (it.hasNext()) {
                ck.o next = it.next();
                try {
                    if (next.q(str21)) {
                        String d10 = next.d(str21);
                        if (!d10.startsWith("//www") && !d10.startsWith("//")) {
                            if (d10.startsWith("www")) {
                                next.e(str21, "http://" + d10);
                            }
                        }
                        next.e(str21, "http:" + d10);
                    }
                } catch (Exception unused) {
                }
                try {
                } catch (Exception unused2) {
                    str2 = str16;
                    str3 = str17;
                    oVar = q02;
                    str4 = str18;
                    str5 = str20;
                    it2 = it;
                    str6 = str19;
                }
                if (!next.f4299d.f21833a.equals("iframe") && !next.f4299d.f21833a.equals("object") && !next.f4299d.f21833a.equals("embed")) {
                    it2 = it;
                    oVar = q02;
                    if (next.f4299d.f21833a.equals("video")) {
                        try {
                            next.h0("muted");
                            next.e("style", "width: 100%;");
                            next.e("controls", "controls");
                            next.e("preload", "none");
                            next.N("<div style='background-color: #000; display: block;'></div>");
                            next.N("<div class='videoBox widescreen vimeo'></div>");
                        } catch (Exception unused3) {
                        }
                        str2 = str16;
                        str3 = str17;
                        str4 = str18;
                        str6 = str19;
                        str5 = str20;
                    } else {
                        str9 = str18;
                        if (next.f4299d.f21833a.equals("audio")) {
                            next.h0("muted");
                            next.e("style", "width: 100%; margin-top: 3%;");
                            next.e("controls", "controls");
                            next.e("preload", "none");
                            str2 = str16;
                            str3 = str17;
                            str6 = str19;
                            str5 = str20;
                            str4 = str9;
                        } else if (next.f4299d.f21833a.equals("blockquote")) {
                            try {
                            } catch (Exception unused4) {
                                str2 = str16;
                                str10 = str19;
                                str7 = str15;
                                str3 = str17;
                                str5 = str20;
                                str8 = str21;
                            }
                            if (!next.d("class").contains("fb") && !next.d(str20).contains("facebook")) {
                                str10 = str19;
                                str12 = str21;
                                str13 = str15;
                                if (next.d("class").contains("instagram")) {
                                    try {
                                        if (i7.u.C()) {
                                            str14 = str20;
                                            try {
                                                next.e("style", ((("margin: 1px; padding:0; max-width:540px; min-width:326px; ") + "width:99.375%; ") + "width:-webkit-calc(100% - 2px); ") + "width:calc(100% - 2px);");
                                                next.h0("data-width");
                                            } catch (Exception unused5) {
                                            }
                                        } else {
                                            str14 = str20;
                                        }
                                        next.i0("svg").d();
                                        String f10 = ae.d.d().f(str16);
                                        String str22 = "https://www.instagram.com/embed.js";
                                        if (TextUtils.isEmpty(f10)) {
                                            f10 = "https://www.instagram.com/embed.js";
                                        }
                                        String g10 = g(f10);
                                        if (next.e0() != null) {
                                            if (next.e0().j0("script[src*=" + g10 + q2.i.f20147e) == null) {
                                                if (next.X("script[src*=" + g10 + q2.i.f20147e) == null) {
                                                    String f11 = ae.d.d().f(str16);
                                                    if (!TextUtils.isEmpty(f11)) {
                                                        str22 = f11;
                                                    }
                                                    next.P("<p><script async=\"\" src=\"" + str22 + "\"></script></p>");
                                                }
                                            }
                                        } else {
                                            String f12 = ae.d.d().f(str16);
                                            if (!TextUtils.isEmpty(f12)) {
                                                str22 = f12;
                                            }
                                            next.P("<p><script async=\"\" src=\"" + str22 + "\"></script></p>");
                                        }
                                    } catch (Exception unused6) {
                                        str14 = str20;
                                    }
                                } else {
                                    str14 = str20;
                                    try {
                                    } catch (Exception unused7) {
                                        str7 = str13;
                                        str11 = str14;
                                        str2 = str16;
                                    }
                                    if (next.d("class").contains("twitter")) {
                                        String f13 = ae.d.d().f(str17);
                                        String str23 = "https://platform.twitter.com/widgets.js";
                                        if (TextUtils.isEmpty(f13)) {
                                            f13 = "https://platform.twitter.com/widgets.js";
                                        }
                                        String g11 = g(f13);
                                        if (next.e0() != null) {
                                            if (next.e0().j0("script[src*=" + g11 + q2.i.f20147e) == null) {
                                                if (next.X("script[src*=" + g11 + q2.i.f20147e) == null) {
                                                    String f14 = ae.d.d().f(str17);
                                                    if (!TextUtils.isEmpty(f14)) {
                                                        str23 = f14;
                                                    }
                                                    next.P("<p><script async=\"\" src=\"" + str23 + "\" charset=\"utf-8\"></script></p>");
                                                }
                                            }
                                        } else {
                                            String f15 = ae.d.d().f(str17);
                                            if (!TextUtils.isEmpty(f15)) {
                                                str23 = f15;
                                            }
                                            next.P("<p><script async=\"\" src=\"" + str23 + "\" charset=\"utf-8\"></script></p>");
                                        }
                                    } else {
                                        if (!next.d("class").contains("tiktok")) {
                                            str11 = str14;
                                        } else {
                                            str11 = str14;
                                        }
                                        try {
                                            if (i7.u.D()) {
                                                str2 = str16;
                                                try {
                                                    next.e("style", ((("margin: 1px !important; padding: !important; max-width:540px !important; min-width:326px !important; ") + "width:99.375%; ") + "width:-webkit-calc(100% - 2px); ") + "width:calc(100% - 2px);");
                                                    next.h0("data-width");
                                                } catch (Exception unused8) {
                                                    str3 = str17;
                                                    str5 = str11;
                                                    str4 = str9;
                                                    str6 = str10;
                                                    str8 = str12;
                                                    str7 = str13;
                                                    str21 = str8;
                                                    str18 = str4;
                                                    str15 = str7;
                                                    str19 = str6;
                                                    q02 = oVar;
                                                    str16 = str2;
                                                    str20 = str5;
                                                    str17 = str3;
                                                    it = it2;
                                                }
                                            } else {
                                                str2 = str16;
                                            }
                                        } catch (Exception unused9) {
                                            str2 = str16;
                                        }
                                        try {
                                            str7 = str13;
                                            try {
                                                String f16 = ae.d.d().f(str7);
                                                String str24 = "https://www.tiktok.com/embed.js";
                                                if (TextUtils.isEmpty(f16)) {
                                                    f16 = "https://www.tiktok.com/embed.js";
                                                }
                                                String g12 = g(f16);
                                                if (next.e0() != null) {
                                                    if (next.e0().j0("script[src*=" + g12 + q2.i.f20147e) == null) {
                                                        if (next.X("script[src*=" + g12 + q2.i.f20147e) == null) {
                                                            String f17 = ae.d.d().f(str7);
                                                            if (!TextUtils.isEmpty(f17)) {
                                                                str24 = f17;
                                                            }
                                                            next.P("<p><script async=\"\" src=\"" + str24 + "\"></script></p>");
                                                        }
                                                    }
                                                } else {
                                                    String f18 = ae.d.d().f(str7);
                                                    if (!TextUtils.isEmpty(f18)) {
                                                        str24 = f18;
                                                    }
                                                    next.P("<p><script async=\"\" src=\"" + str24 + "\"></script></p>");
                                                }
                                            } catch (Exception unused10) {
                                            }
                                        } catch (Exception unused11) {
                                            str7 = str13;
                                            str3 = str17;
                                            str5 = str11;
                                            str4 = str9;
                                            str6 = str10;
                                            str8 = str12;
                                            str21 = str8;
                                            str18 = str4;
                                            str15 = str7;
                                            str19 = str6;
                                            q02 = oVar;
                                            str16 = str2;
                                            str20 = str5;
                                            str17 = str3;
                                            it = it2;
                                        }
                                        str3 = str17;
                                        str5 = str11;
                                        str4 = str9;
                                        str6 = str10;
                                        str8 = str12;
                                        str21 = str8;
                                        str18 = str4;
                                        str15 = str7;
                                        str19 = str6;
                                        q02 = oVar;
                                        str16 = str2;
                                        str20 = str5;
                                        str17 = str3;
                                        it = it2;
                                    }
                                }
                                str3 = str17;
                                str4 = str9;
                                str6 = str10;
                                str8 = str12;
                                str7 = str13;
                                str5 = str14;
                                str2 = str16;
                                str21 = str8;
                                str18 = str4;
                                str15 = str7;
                                str19 = str6;
                                q02 = oVar;
                                str16 = str2;
                                str20 = str5;
                                str17 = str3;
                                it = it2;
                            }
                            str2 = str16;
                            str10 = str19;
                            str11 = str20;
                            str12 = str21;
                            str7 = str15;
                            if (next.s()) {
                                ck.s sVar2 = next.f4318a;
                                if ((((ck.o) sVar2) != null && ((ck.o) sVar2).b0("fb-post")) || ((ck.o) next.f4318a).b0("fb-video")) {
                                    ((ck.o) next.f4318a).h0("data-width");
                                }
                            }
                            str3 = str17;
                            str5 = str11;
                            str4 = str9;
                            str6 = str10;
                            str8 = str12;
                            str21 = str8;
                            str18 = str4;
                            str15 = str7;
                            str19 = str6;
                            q02 = oVar;
                            str16 = str2;
                            str20 = str5;
                            str17 = str3;
                            it = it2;
                        } else {
                            str2 = str16;
                            str10 = str19;
                            str11 = str20;
                            str12 = str21;
                            str7 = str15;
                            if (next.f4299d.f21833a.equals("biembeddedobject")) {
                                m(next);
                            } else if (next.f4299d.f21833a.equals(com.ironsource.j4.O)) {
                                next.e("width", "100%");
                            } else if (next.f4299d.f21833a.equals("tbody")) {
                                Iterator<ck.o> it3 = next.i0("tr > td").iterator();
                                while (it3.hasNext()) {
                                    Iterator<ck.o> it4 = it3.next().i0("font").iterator();
                                    while (it4.hasNext()) {
                                        it4.next().h0(q2.h.S);
                                    }
                                }
                            } else if (next.f4299d.f21833a.equals("script")) {
                                String x10 = i7.u.x();
                                if (!c(x10, next) && !d(x10, next)) {
                                    next.I();
                                }
                            } else if (next.f4299d.f21833a.equals("img")) {
                                str8 = str12;
                                if (next.q(str8) || next.q("data-src") || next.q("srcset") || next.q("data-srcset")) {
                                    if (next.s()) {
                                        try {
                                            sVar = next.f4318a;
                                        } catch (Exception unused12) {
                                            str6 = str10;
                                        }
                                        if (((ck.o) sVar) != null) {
                                            str6 = str10;
                                            try {
                                                if (((ck.o) sVar).f4299d.f21833a.equals(str6)) {
                                                    ck.o oVar2 = (ck.o) next.f4318a;
                                                    String str25 = oVar2.f4299d.f21835c;
                                                    ak.g.e("div", "tagName");
                                                    ak.g.e(str25, "namespace");
                                                    oVar2.f4299d = dk.o.b("div", str25, ck.w.a(oVar2).f21830c);
                                                } else if (((ck.o) next.f4318a).s()) {
                                                    ck.s sVar3 = next.f4318a;
                                                    if (((ck.o) ((ck.o) sVar3).f4318a) != null && ((ck.o) ((ck.o) sVar3).f4318a).f4299d.f21833a.equals(str6)) {
                                                        ck.o oVar3 = (ck.o) ((ck.o) next.f4318a).f4318a;
                                                        String str26 = oVar3.f4299d.f21835c;
                                                        ak.g.e("div", "tagName");
                                                        ak.g.e(str26, "namespace");
                                                        oVar3.f4299d = dk.o.b("div", str26, ck.w.a(oVar3).f21830c);
                                                    }
                                                }
                                                if (next.q("data-src") && !next.q(str8)) {
                                                    next.e(str8, next.d("data-src"));
                                                    next.h0("data-src");
                                                }
                                            } catch (Exception unused13) {
                                                str3 = str17;
                                                str5 = str11;
                                                str4 = str9;
                                                str21 = str8;
                                                str18 = str4;
                                                str15 = str7;
                                                str19 = str6;
                                                q02 = oVar;
                                                str16 = str2;
                                                str20 = str5;
                                                str17 = str3;
                                                it = it2;
                                            }
                                            if (next.q("srcset") && next.d("srcset").startsWith("http")) {
                                                asList2 = Arrays.asList(TextUtils.split(next.d("srcset"), ","));
                                                if (!asList2.isEmpty()) {
                                                    ArrayList arrayList = new ArrayList();
                                                    for (String str27 : asList2) {
                                                        str3 = str17;
                                                        try {
                                                            str5 = str11;
                                                            str4 = str9;
                                                            try {
                                                                String replace = TextUtils.split(str27.trim(), " ")[1].replace("w", str4);
                                                                if (!TextUtils.isEmpty(replace) && TextUtils.isDigitsOnly(replace)) {
                                                                    arrayList.add(Integer.valueOf(Integer.parseInt(replace)));
                                                                }
                                                                str9 = str4;
                                                                str11 = str5;
                                                                str17 = str3;
                                                            } catch (Exception unused14) {
                                                            }
                                                        } catch (Exception unused15) {
                                                            str5 = str11;
                                                            str4 = str9;
                                                            str21 = str8;
                                                            str18 = str4;
                                                            str15 = str7;
                                                            str19 = str6;
                                                            q02 = oVar;
                                                            str16 = str2;
                                                            str20 = str5;
                                                            str17 = str3;
                                                            it = it2;
                                                        }
                                                    }
                                                    str3 = str17;
                                                    str5 = str11;
                                                    str4 = str9;
                                                    int size = asList2.size() - 1;
                                                    if (!arrayList.isEmpty()) {
                                                        size = arrayList.indexOf(Integer.valueOf(((Integer) Collections.max(arrayList)).intValue()));
                                                    }
                                                    String str28 = TextUtils.split(((String) asList2.get(size)).trim(), " ")[0];
                                                    if (!TextUtils.isEmpty(str28) && str28.startsWith("http")) {
                                                        next.e(str8, str28);
                                                        next.h0("srcset");
                                                        next.h0("data-srcset");
                                                    }
                                                    if (next.q("data-srcset") && next.d("data-srcset").startsWith("http")) {
                                                        asList = Arrays.asList(TextUtils.split(next.d("data-srcset"), ","));
                                                        if (!asList.isEmpty()) {
                                                            ArrayList arrayList2 = new ArrayList();
                                                            for (String str29 : asList) {
                                                                String replace2 = TextUtils.split(str29.trim(), " ")[1].replace("w", str4);
                                                                if (!TextUtils.isEmpty(replace2) && TextUtils.isDigitsOnly(replace2)) {
                                                                    arrayList2.add(Integer.valueOf(Integer.parseInt(replace2)));
                                                                }
                                                            }
                                                            int size2 = asList.size() - 1;
                                                            if (!arrayList2.isEmpty()) {
                                                                size2 = arrayList2.indexOf(Integer.valueOf(((Integer) Collections.max(arrayList2)).intValue()));
                                                            }
                                                            String str30 = TextUtils.split(((String) asList.get(size2)).trim(), " ")[0];
                                                            if (!TextUtils.isEmpty(str30) && str30.startsWith("http")) {
                                                                next.e(str8, str30);
                                                                next.h0("srcset");
                                                                next.h0("data-srcset");
                                                            }
                                                        }
                                                    }
                                                    if (i7.l.H(next.d(str8), ae.d.d().f("image_src_contains_json"))) {
                                                        next.I();
                                                    }
                                                    str21 = str8;
                                                    str18 = str4;
                                                    str15 = str7;
                                                    str19 = str6;
                                                    q02 = oVar;
                                                    str16 = str2;
                                                    str20 = str5;
                                                    str17 = str3;
                                                    it = it2;
                                                }
                                            }
                                            str3 = str17;
                                            str5 = str11;
                                            str4 = str9;
                                            if (next.q("data-srcset")) {
                                                asList = Arrays.asList(TextUtils.split(next.d("data-srcset"), ","));
                                                if (!asList.isEmpty()) {
                                                }
                                            }
                                            if (i7.l.H(next.d(str8), ae.d.d().f("image_src_contains_json"))) {
                                            }
                                            str21 = str8;
                                            str18 = str4;
                                            str15 = str7;
                                            str19 = str6;
                                            q02 = oVar;
                                            str16 = str2;
                                            str20 = str5;
                                            str17 = str3;
                                            it = it2;
                                        }
                                    }
                                    str6 = str10;
                                    if (next.q("data-src")) {
                                        next.e(str8, next.d("data-src"));
                                        next.h0("data-src");
                                    }
                                    if (next.q("srcset")) {
                                        asList2 = Arrays.asList(TextUtils.split(next.d("srcset"), ","));
                                        if (!asList2.isEmpty()) {
                                        }
                                    }
                                    str3 = str17;
                                    str5 = str11;
                                    str4 = str9;
                                    if (next.q("data-srcset")) {
                                    }
                                    if (i7.l.H(next.d(str8), ae.d.d().f("image_src_contains_json"))) {
                                    }
                                    str21 = str8;
                                    str18 = str4;
                                    str15 = str7;
                                    str19 = str6;
                                    q02 = oVar;
                                    str16 = str2;
                                    str20 = str5;
                                    str17 = str3;
                                    it = it2;
                                }
                                str3 = str17;
                                str5 = str11;
                                str4 = str9;
                                str6 = str10;
                                str21 = str8;
                                str18 = str4;
                                str15 = str7;
                                str19 = str6;
                                q02 = oVar;
                                str16 = str2;
                                str20 = str5;
                                str17 = str3;
                                it = it2;
                            }
                            str3 = str17;
                            str5 = str11;
                            str4 = str9;
                            str6 = str10;
                            str8 = str12;
                            str21 = str8;
                            str18 = str4;
                            str15 = str7;
                            str19 = str6;
                            q02 = oVar;
                            str16 = str2;
                            str20 = str5;
                            str17 = str3;
                            it = it2;
                        }
                    }
                    str7 = str15;
                    str8 = str21;
                    str21 = str8;
                    str18 = str4;
                    str15 = str7;
                    str19 = str6;
                    q02 = oVar;
                    str16 = str2;
                    str20 = str5;
                    str17 = str3;
                    it = it2;
                }
                str2 = str16;
                str3 = str17;
                oVar = q02;
                str4 = str18;
                str5 = str20;
                it2 = it;
                str6 = str19;
                str7 = str15;
                str8 = str21;
                n(next);
                str21 = str8;
                str18 = str4;
                str15 = str7;
                str19 = str6;
                q02 = oVar;
                str16 = str2;
                str20 = str5;
                str17 = str3;
                it = it2;
            }
        }
        return q02.c0();
        str2 = str16;
        str3 = str17;
        str5 = str11;
        str4 = str9;
        str6 = str10;
        str8 = str12;
        str7 = str13;
        str21 = str8;
        str18 = str4;
        str15 = str7;
        str19 = str6;
        q02 = oVar;
        str16 = str2;
        str20 = str5;
        str17 = str3;
        it = it2;
    }

    public static String g(String str) {
        try {
            if (str.startsWith("http://www")) {
                return str.substring(10);
            }
            if (str.startsWith("https://www")) {
                return str.substring(11);
            }
            if (str.startsWith("http://")) {
                return str.substring(7);
            }
            if (str.startsWith("https://")) {
                return str.substring(8);
            }
            return str;
        } catch (Exception unused) {
            return str;
        }
    }

    public static String h(String str) {
        try {
            ck.f b10 = dk.f.a().b(str, "");
            String f10 = ae.d.d().f("stream_data_css_query");
            if (TextUtils.isEmpty(f10)) {
                f10 = "script[id=__STR34M_X_D4T4__],script[src*=x_stream_data]";
            }
            fk.c i02 = b10.i0(f10);
            if (i02.isEmpty()) {
                return "";
            }
            ck.o oVar = i02.get(0);
            oVar.getClass();
            StringBuilder b11 = bk.d.b();
            cj.h0.f(new n3.o(b11), oVar);
            return bk.d.h(b11);
        } catch (Exception unused) {
            return "";
        }
    }

    public static String i(String str) {
        try {
            ck.o j02 = dk.f.a().b(str, "").q0().j0("img[src]");
            if (j02 == null) {
                return "";
            }
            String d10 = j02.d("src");
            if (i7.l.H(d10, ae.d.d().f("image_src_contains_json"))) {
                return "";
            }
            return d10;
        } catch (Exception unused) {
            return "";
        }
    }

    public static String j(String str) {
        try {
            Matcher matcher = Pattern.compile("^.*((youtu.be\\/)|(v\\/)|(\\/u\\/w\\/)|(embed\\/)|(watch\\?))\\??v?=?([^#\\&\\?]*).*", 2).matcher(str);
            if (matcher.matches()) {
                String group = matcher.group(7);
                if (group != null && group.trim().length() == 11) {
                    return group.trim();
                }
                return l(str);
            }
            return "";
        } catch (Exception unused) {
            return "";
        }
    }

    public static String l(String str) {
        String group;
        try {
            Matcher matcher = Pattern.compile("https?:\\/\\/(?:[0-9A-Z-]+\\.)?(?:youtu\\.be\\/|youtube\\.com\\S*[^\\w\\-\\s])([\\w\\-]{11})(?=[^\\w\\-]|$)(?![?=&+%\\w]*(?:['\"][^<>]*>|<\\/a>))[?=&+%\\w]*", 2).matcher(str);
            if (!matcher.matches()) {
                return "";
            }
            String group2 = matcher.group(1);
            if (group2 != null && group2.trim().length() == 11) {
                return group2.trim();
            }
            Matcher matcher2 = Pattern.compile("(?:youtube(?:-nocookie)?\\.com\\/(?:[^\\/\\n\\s]+\\/\\S+\\/|(?:v|e(?:mbed)?)\\/|\\S*?[?&]v=)|youtu\\.be\\/)([a-zA-Z0-9_-]{11})", 2).matcher(str);
            if (!matcher2.find() || (group = matcher2.group(1)) == null || group.trim().length() != 11) {
                return "";
            }
            return group.trim();
        } catch (Exception unused) {
            return "";
        }
    }

    public static void m(ck.o oVar) {
        try {
            List<ck.z> o02 = oVar.o0();
            if (!o02.isEmpty()) {
                for (ck.z zVar : o02) {
                    try {
                        String S = zVar.S();
                        if (S.matches("^http(s{0,1})://[a-zA-Z0-9_/\\-\\.]+\\.([A-Za-z/]{2,5})[a-zA-Z0-9_/\\&\\?\\=\\-\\.\\~\\%]*")) {
                            if (!S.contains("youtube") && !S.contains("youtu.be")) {
                                zVar.N("<a href=\"" + S + "\"></a>");
                            }
                            zVar.N("<div class='videoBox widescreen vimeo'></div>");
                            zVar.c(zVar.f4319b, "<a href='" + S + "' target='_top'><img style='display:none; box-shadow:none !important;' src='file:///android_asset/x_overlay_x.png'></a>");
                            zVar.c(zVar.f4319b + 1, " <a href='" + S + "' target='_top'><img id='overlayBtn' style='box-shadow:none !important;' src='file:///android_asset/x_overlay_x.png'></a>");
                            zVar.N("<iframe width=\"655\" height=\"368\" src=\"" + S + "\" frameborder=\"0\" allowfullscreen></iframe>");
                        }
                    } catch (Exception unused) {
                    }
                }
            }
        } catch (Exception unused2) {
        }
    }

    public static void n(ck.o oVar) {
        boolean z10;
        try {
            String d10 = oVar.d("src");
            if (oVar.f4299d.f21833a.equals("object")) {
                d10 = oVar.d("data");
            }
            if (TextUtils.isEmpty(d10) && oVar.q("data-src")) {
                d10 = oVar.d("data-src");
                if (!TextUtils.isEmpty(d10)) {
                    oVar.e("src", d10);
                }
            }
            try {
                z10 = Pattern.compile("https?:\\/\\/(?:[0-9A-Z-]+\\.)?(?:youtu\\.be\\/|youtube\\.com\\S*[^\\w\\-\\s])([\\w\\-]{11})(?=[^\\w\\-]|$)(?![?=&+%\\w]*(?:['\"][^<>]*>|<\\/a>))[?=&+%\\w]*", 2).matcher(d10).matches();
            } catch (Exception unused) {
                z10 = false;
            }
            if (!z10 && !d10.contains("youtube") && !d10.contains("youtu.be")) {
                String f10 = ae.d.d().f("iFrame_contains_json");
                String str = "{\"items\":[\"av-embeds\",\"drive.google.com\",\"jwplayer\",\"live\",\"player\",\"spotify\",\"stream\",\"tv\",\"vevo\",\"video\",\"vimeo\",\"vine\",\"watch\"]}";
                if (TextUtils.isEmpty(f10)) {
                    f10 = "{\"items\":[\"av-embeds\",\"drive.google.com\",\"jwplayer\",\"live\",\"player\",\"spotify\",\"stream\",\"tv\",\"vevo\",\"video\",\"vimeo\",\"vine\",\"watch\"]}";
                }
                if (!c(f10, oVar)) {
                    String f11 = ae.d.d().f("iFrame_contains_json");
                    if (!TextUtils.isEmpty(f11)) {
                        str = f11;
                    }
                    if (!d(str, oVar)) {
                        oVar.N("<div class='unknown_x'></div>");
                        return;
                    }
                }
                String f12 = ae.d.d().f("iFrame_src_contains_exclude_json");
                if (TextUtils.isEmpty(f12)) {
                    f12 = "{\"items\":[\"facebook\",\"instagram\",\"spotify\",\"tiktok\",\"twitter\"]}";
                }
                if (!i7.l.H(d10, f12)) {
                    oVar.N("<div class='videoBox widescreen vimeo'></div>");
                    return;
                } else {
                    oVar.N("<div class='unknown_x'></div>");
                    return;
                }
            }
            String j4 = j(d10);
            if (j4.trim().length() == 11 && !j4.contains("videoseries")) {
                oVar.c(oVar.f4319b + 1, "<div class='thumbnail'><img style='display:none;' src='http://img.youtube.com/vi/" + j4 + "/0.jpg'></div>");
            }
            oVar.N("<div class='videoBox widescreen vimeo'></div>");
            oVar.c(oVar.f4319b, "<a href='" + d10 + "' target='_top'><img style='display:none; box-shadow:none !important;' src='file:///android_asset/x_overlay_x.png'></a>");
            oVar.c(oVar.f4319b + 1, " <a href='" + d10 + "' target='_top'><img id='overlayBtn' style='box-shadow:none !important;' src='file:///android_asset/x_overlay_x.png'></a>");
        } catch (Exception unused2) {
        }
    }

    @Override
    public void f(r2.b0 b0Var) {
    }

    @Override
    public void k() {
    }

    @Override
    public r2.f0 r(int i, int i10) {
        return new r2.l();
    }

    @Override
    public Task then(Object obj) {
        boolean z10;
        Bundle bundle = (Bundle) obj;
        int i = u9.c.f31487h;
        if (bundle != null && bundle.containsKey("google.messenger")) {
            z10 = true;
        } else {
            z10 = false;
        }
        if (z10) {
            return Tasks.forResult(null);
        }
        return Tasks.forResult(bundle);
    }

    @Override
    public Object zza() {
        List list = m2.f28911a;
        return Long.valueOf(ka.f16436b.zza().f());
    }
}