package j.u0;

import j.k0.e0;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: compiled from: Strings.kt */
/* JADX INFO: loaded from: classes.dex */
public class r extends q {

    /* JADX INFO: compiled from: Strings.kt */
    static final class a extends j.p0.d.s implements j.p0.c.p<CharSequence, Integer, j.p<? extends Integer, ? extends Integer>> {
        final /* synthetic */ char[] b;
        final /* synthetic */ boolean d;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(char[] cArr, boolean z) {
            super(2);
            this.b = cArr;
            this.d = z;
        }

        public final j.p<Integer, Integer> a(CharSequence charSequence, int i2) {
            j.p0.d.r.f(charSequence, "$this$$receiver");
            int iU = r.U(charSequence, this.b, i2, this.d);
            if (iU < 0) {
                return null;
            }
            return j.v.a(Integer.valueOf(iU), 1);
        }

        @Override // j.p0.c.p
        public /* bridge */ /* synthetic */ j.p<? extends Integer, ? extends Integer> d(CharSequence charSequence, Integer num) {
            return a(charSequence, num.intValue());
        }
    }

    /* JADX INFO: compiled from: Strings.kt */
    static final class b extends j.p0.d.s implements j.p0.c.p<CharSequence, Integer, j.p<? extends Integer, ? extends Integer>> {
        final /* synthetic */ List<String> b;
        final /* synthetic */ boolean d;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(List<String> list, boolean z) {
            super(2);
            this.b = list;
            this.d = z;
        }

        public final j.p<Integer, Integer> a(CharSequence charSequence, int i2) {
            j.p0.d.r.f(charSequence, "$this$$receiver");
            j.p pVarL = r.L(charSequence, this.b, i2, this.d, false);
            if (pVarL != null) {
                return j.v.a(pVarL.c(), Integer.valueOf(((String) pVarL.d()).length()));
            }
            return null;
        }

        @Override // j.p0.c.p
        public /* bridge */ /* synthetic */ j.p<? extends Integer, ? extends Integer> d(CharSequence charSequence, Integer num) {
            return a(charSequence, num.intValue());
        }
    }

    /* JADX INFO: compiled from: Strings.kt */
    static final class c extends j.p0.d.s implements j.p0.c.l<j.r0.h, String> {
        final /* synthetic */ CharSequence b;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(CharSequence charSequence) {
            super(1);
            this.b = charSequence;
        }

        @Override // j.p0.c.l
        /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
        public final String invoke(j.r0.h hVar) {
            j.p0.d.r.f(hVar, "it");
            return r.x0(this.b, hVar);
        }
    }

    public static /* synthetic */ String A0(String str, char c2, String str2, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            str2 = str;
        }
        return y0(str, c2, str2);
    }

    public static /* synthetic */ String B0(String str, String str2, String str3, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            str3 = str;
        }
        return z0(str, str2, str3);
    }

    public static final String C0(String str, char c2, String str2) {
        j.p0.d.r.f(str, "<this>");
        j.p0.d.r.f(str2, "missingDelimiterValue");
        int iX = X(str, c2, 0, false, 6, null);
        if (iX == -1) {
            return str2;
        }
        String strSubstring = str.substring(iX + 1, str.length());
        j.p0.d.r.e(strSubstring, "this as java.lang.String…ing(startIndex, endIndex)");
        return strSubstring;
    }

    public static /* synthetic */ String D0(String str, char c2, String str2, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            str2 = str;
        }
        return C0(str, c2, str2);
    }

    public static CharSequence E0(CharSequence charSequence) {
        j.p0.d.r.f(charSequence, "<this>");
        int length = charSequence.length() - 1;
        int i2 = 0;
        boolean z = false;
        while (i2 <= length) {
            boolean zC = j.u0.b.c(charSequence.charAt(!z ? i2 : length));
            if (z) {
                if (!zC) {
                    break;
                }
                length--;
            } else if (zC) {
                i2++;
            } else {
                z = true;
            }
        }
        return charSequence.subSequence(i2, length + 1);
    }

    public static final boolean F(CharSequence charSequence, char c2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        return S(charSequence, c2, 0, z, 2, null) >= 0;
    }

    public static boolean G(CharSequence charSequence, CharSequence charSequence2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(charSequence2, "other");
        if (charSequence2 instanceof String) {
            if (T(charSequence, (String) charSequence2, 0, z, 2, null) >= 0) {
                return true;
            }
        } else if (R(charSequence, charSequence2, 0, charSequence.length(), z, false, 16, null) >= 0) {
            return true;
        }
        return false;
    }

    public static /* synthetic */ boolean H(CharSequence charSequence, char c2, boolean z, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            z = false;
        }
        return F(charSequence, c2, z);
    }

    public static /* synthetic */ boolean I(CharSequence charSequence, CharSequence charSequence2, boolean z, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            z = false;
        }
        return G(charSequence, charSequence2, z);
    }

    public static final boolean J(CharSequence charSequence, CharSequence charSequence2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(charSequence2, "suffix");
        return (!z && (charSequence instanceof String) && (charSequence2 instanceof String)) ? q.p((String) charSequence, (String) charSequence2, false, 2, null) : i0(charSequence, charSequence.length() - charSequence2.length(), charSequence2, 0, charSequence2.length(), z);
    }

    public static /* synthetic */ boolean K(CharSequence charSequence, CharSequence charSequence2, boolean z, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            z = false;
        }
        return J(charSequence, charSequence2, z);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final j.p<Integer, String> L(CharSequence charSequence, Collection<String> collection, int i2, boolean z, boolean z2) {
        Object next;
        Object next2;
        if (!z && collection.size() == 1) {
            String str = (String) j.k0.m.H(collection);
            int iT = !z2 ? T(charSequence, str, i2, false, 4, null) : Y(charSequence, str, i2, false, 4, null);
            if (iT < 0) {
                return null;
            }
            return j.v.a(Integer.valueOf(iT), str);
        }
        j.r0.f hVar = !z2 ? new j.r0.h(j.r0.n.b(i2, 0), charSequence.length()) : j.r0.n.f(j.r0.n.c(i2, N(charSequence)), 0);
        if (charSequence instanceof String) {
            int iB = hVar.b();
            int iC = hVar.c();
            int iD = hVar.d();
            if ((iD > 0 && iB <= iC) || (iD < 0 && iC <= iB)) {
                while (true) {
                    Iterator<T> it = collection.iterator();
                    while (true) {
                        if (!it.hasNext()) {
                            next2 = null;
                            break;
                        }
                        next2 = it.next();
                        String str2 = (String) next2;
                        if (q.t(str2, 0, (String) charSequence, iB, str2.length(), z)) {
                            break;
                        }
                    }
                    String str3 = (String) next2;
                    if (str3 == null) {
                        if (iB == iC) {
                            break;
                        }
                        iB += iD;
                    } else {
                        return j.v.a(Integer.valueOf(iB), str3);
                    }
                }
            }
        } else {
            int iB2 = hVar.b();
            int iC2 = hVar.c();
            int iD2 = hVar.d();
            if ((iD2 > 0 && iB2 <= iC2) || (iD2 < 0 && iC2 <= iB2)) {
                while (true) {
                    Iterator<T> it2 = collection.iterator();
                    while (true) {
                        if (!it2.hasNext()) {
                            next = null;
                            break;
                        }
                        next = it2.next();
                        String str4 = (String) next;
                        if (i0(str4, 0, charSequence, iB2, str4.length(), z)) {
                            break;
                        }
                    }
                    String str5 = (String) next;
                    if (str5 == null) {
                        if (iB2 == iC2) {
                            break;
                        }
                        iB2 += iD2;
                    } else {
                        return j.v.a(Integer.valueOf(iB2), str5);
                    }
                }
            }
        }
        return null;
    }

    public static final j.r0.h M(CharSequence charSequence) {
        j.p0.d.r.f(charSequence, "<this>");
        return new j.r0.h(0, charSequence.length() - 1);
    }

    public static int N(CharSequence charSequence) {
        j.p0.d.r.f(charSequence, "<this>");
        return charSequence.length() - 1;
    }

    public static final int O(CharSequence charSequence, char c2, int i2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        return (z || !(charSequence instanceof String)) ? U(charSequence, new char[]{c2}, i2, z) : ((String) charSequence).indexOf(c2, i2);
    }

    public static final int P(CharSequence charSequence, String str, int i2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(str, "string");
        return (z || !(charSequence instanceof String)) ? R(charSequence, str, i2, charSequence.length(), z, false, 16, null) : ((String) charSequence).indexOf(str, i2);
    }

    private static final int Q(CharSequence charSequence, CharSequence charSequence2, int i2, int i3, boolean z, boolean z2) {
        j.r0.f hVar = !z2 ? new j.r0.h(j.r0.n.b(i2, 0), j.r0.n.c(i3, charSequence.length())) : j.r0.n.f(j.r0.n.c(i2, N(charSequence)), j.r0.n.b(i3, 0));
        if ((charSequence instanceof String) && (charSequence2 instanceof String)) {
            int iB = hVar.b();
            int iC = hVar.c();
            int iD = hVar.d();
            if ((iD <= 0 || iB > iC) && (iD >= 0 || iC > iB)) {
                return -1;
            }
            while (!q.t((String) charSequence2, 0, (String) charSequence, iB, charSequence2.length(), z)) {
                if (iB == iC) {
                    return -1;
                }
                iB += iD;
            }
            return iB;
        }
        int iB2 = hVar.b();
        int iC2 = hVar.c();
        int iD2 = hVar.d();
        if ((iD2 <= 0 || iB2 > iC2) && (iD2 >= 0 || iC2 > iB2)) {
            return -1;
        }
        while (!i0(charSequence2, 0, charSequence, iB2, charSequence2.length(), z)) {
            if (iB2 == iC2) {
                return -1;
            }
            iB2 += iD2;
        }
        return iB2;
    }

    static /* synthetic */ int R(CharSequence charSequence, CharSequence charSequence2, int i2, int i3, boolean z, boolean z2, int i4, Object obj) {
        if ((i4 & 16) != 0) {
            z2 = false;
        }
        return Q(charSequence, charSequence2, i2, i3, z, z2);
    }

    public static /* synthetic */ int S(CharSequence charSequence, char c2, int i2, boolean z, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            i2 = 0;
        }
        if ((i3 & 4) != 0) {
            z = false;
        }
        return O(charSequence, c2, i2, z);
    }

    public static /* synthetic */ int T(CharSequence charSequence, String str, int i2, boolean z, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            i2 = 0;
        }
        if ((i3 & 4) != 0) {
            z = false;
        }
        return P(charSequence, str, i2, z);
    }

    public static final int U(CharSequence charSequence, char[] cArr, int i2, boolean z) {
        boolean z2;
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(cArr, "chars");
        if (!z && cArr.length == 1 && (charSequence instanceof String)) {
            return ((String) charSequence).indexOf(j.k0.j.C(cArr), i2);
        }
        e0 e0VarE = new j.r0.h(j.r0.n.b(i2, 0), N(charSequence)).iterator();
        while (e0VarE.hasNext()) {
            int iB = e0VarE.b();
            char cCharAt = charSequence.charAt(iB);
            int length = cArr.length;
            int i3 = 0;
            while (true) {
                if (i3 >= length) {
                    z2 = false;
                    break;
                }
                if (j.u0.c.d(cArr[i3], cCharAt, z)) {
                    z2 = true;
                    break;
                }
                i3++;
            }
            if (z2) {
                return iB;
            }
        }
        return -1;
    }

    public static final int V(CharSequence charSequence, char c2, int i2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        return (z || !(charSequence instanceof String)) ? Z(charSequence, new char[]{c2}, i2, z) : ((String) charSequence).lastIndexOf(c2, i2);
    }

    public static final int W(CharSequence charSequence, String str, int i2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(str, "string");
        return (z || !(charSequence instanceof String)) ? Q(charSequence, str, i2, 0, z, true) : ((String) charSequence).lastIndexOf(str, i2);
    }

    public static /* synthetic */ int X(CharSequence charSequence, char c2, int i2, boolean z, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            i2 = N(charSequence);
        }
        if ((i3 & 4) != 0) {
            z = false;
        }
        return V(charSequence, c2, i2, z);
    }

    public static /* synthetic */ int Y(CharSequence charSequence, String str, int i2, boolean z, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            i2 = N(charSequence);
        }
        if ((i3 & 4) != 0) {
            z = false;
        }
        return W(charSequence, str, i2, z);
    }

    public static final int Z(CharSequence charSequence, char[] cArr, int i2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(cArr, "chars");
        if (!z && cArr.length == 1 && (charSequence instanceof String)) {
            return ((String) charSequence).lastIndexOf(j.k0.j.C(cArr), i2);
        }
        for (int iC = j.r0.n.c(i2, N(charSequence)); -1 < iC; iC--) {
            char cCharAt = charSequence.charAt(iC);
            int length = cArr.length;
            boolean z2 = false;
            int i3 = 0;
            while (true) {
                if (i3 >= length) {
                    break;
                }
                if (j.u0.c.d(cArr[i3], cCharAt, z)) {
                    z2 = true;
                    break;
                }
                i3++;
            }
            if (z2) {
                return iC;
            }
        }
        return -1;
    }

    public static final j.t0.c<String> a0(CharSequence charSequence) {
        j.p0.d.r.f(charSequence, "<this>");
        return s0(charSequence, new String[]{"\r\n", "\n", "\r"}, false, 0, 6, null);
    }

    public static final List<String> b0(CharSequence charSequence) {
        j.p0.d.r.f(charSequence, "<this>");
        return j.t0.i.h(a0(charSequence));
    }

    public static final CharSequence c0(CharSequence charSequence, int i2, char c2) {
        j.p0.d.r.f(charSequence, "<this>");
        if (i2 < 0) {
            throw new IllegalArgumentException("Desired length " + i2 + " is less than zero.");
        }
        if (i2 <= charSequence.length()) {
            return charSequence.subSequence(0, charSequence.length());
        }
        StringBuilder sb = new StringBuilder(i2);
        e0 e0VarE = new j.r0.h(1, i2 - charSequence.length()).iterator();
        while (e0VarE.hasNext()) {
            e0VarE.b();
            sb.append(c2);
        }
        sb.append(charSequence);
        return sb;
    }

    public static String d0(String str, int i2, char c2) {
        j.p0.d.r.f(str, "<this>");
        return c0(str, i2, c2).toString();
    }

    private static final j.t0.c<j.r0.h> e0(CharSequence charSequence, char[] cArr, int i2, boolean z, int i3) {
        l0(i3);
        return new e(charSequence, i2, i3, new a(cArr, z));
    }

    private static final j.t0.c<j.r0.h> f0(CharSequence charSequence, String[] strArr, int i2, boolean z, int i3) {
        l0(i3);
        return new e(charSequence, i2, i3, new b(j.k0.i.c(strArr), z));
    }

    static /* synthetic */ j.t0.c g0(CharSequence charSequence, char[] cArr, int i2, boolean z, int i3, int i4, Object obj) {
        if ((i4 & 2) != 0) {
            i2 = 0;
        }
        if ((i4 & 4) != 0) {
            z = false;
        }
        if ((i4 & 8) != 0) {
            i3 = 0;
        }
        return e0(charSequence, cArr, i2, z, i3);
    }

    static /* synthetic */ j.t0.c h0(CharSequence charSequence, String[] strArr, int i2, boolean z, int i3, int i4, Object obj) {
        if ((i4 & 2) != 0) {
            i2 = 0;
        }
        if ((i4 & 4) != 0) {
            z = false;
        }
        if ((i4 & 8) != 0) {
            i3 = 0;
        }
        return f0(charSequence, strArr, i2, z, i3);
    }

    public static final boolean i0(CharSequence charSequence, int i2, CharSequence charSequence2, int i3, int i4, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(charSequence2, "other");
        if (i3 < 0 || i2 < 0 || i2 > charSequence.length() - i4 || i3 > charSequence2.length() - i4) {
            return false;
        }
        for (int i5 = 0; i5 < i4; i5++) {
            if (!j.u0.c.d(charSequence.charAt(i2 + i5), charSequence2.charAt(i3 + i5), z)) {
                return false;
            }
        }
        return true;
    }

    public static String j0(String str, CharSequence charSequence) {
        j.p0.d.r.f(str, "<this>");
        j.p0.d.r.f(charSequence, "prefix");
        if (!w0(str, charSequence, false, 2, null)) {
            return str;
        }
        String strSubstring = str.substring(charSequence.length());
        j.p0.d.r.e(strSubstring, "this as java.lang.String).substring(startIndex)");
        return strSubstring;
    }

    public static String k0(String str, CharSequence charSequence) {
        j.p0.d.r.f(str, "<this>");
        j.p0.d.r.f(charSequence, "suffix");
        if (!K(str, charSequence, false, 2, null)) {
            return str;
        }
        String strSubstring = str.substring(0, str.length() - charSequence.length());
        j.p0.d.r.e(strSubstring, "this as java.lang.String…ing(startIndex, endIndex)");
        return strSubstring;
    }

    public static final void l0(int i2) {
        if (i2 >= 0) {
            return;
        }
        throw new IllegalArgumentException(("Limit must be non-negative, but was " + i2).toString());
    }

    public static final List<String> m0(CharSequence charSequence, char[] cArr, boolean z, int i2) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(cArr, "delimiters");
        if (cArr.length == 1) {
            return o0(charSequence, String.valueOf(cArr[0]), z, i2);
        }
        Iterable iterableA = j.t0.i.a(g0(charSequence, cArr, 0, z, i2, 2, null));
        ArrayList arrayList = new ArrayList(j.k0.p.p(iterableA, 10));
        Iterator it = iterableA.iterator();
        while (it.hasNext()) {
            arrayList.add(x0(charSequence, (j.r0.h) it.next()));
        }
        return arrayList;
    }

    public static final List<String> n0(CharSequence charSequence, String[] strArr, boolean z, int i2) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(strArr, "delimiters");
        if (strArr.length == 1) {
            String str = strArr[0];
            if (!(str.length() == 0)) {
                return o0(charSequence, str, z, i2);
            }
        }
        Iterable iterableA = j.t0.i.a(h0(charSequence, strArr, 0, z, i2, 2, null));
        ArrayList arrayList = new ArrayList(j.k0.p.p(iterableA, 10));
        Iterator it = iterableA.iterator();
        while (it.hasNext()) {
            arrayList.add(x0(charSequence, (j.r0.h) it.next()));
        }
        return arrayList;
    }

    private static final List<String> o0(CharSequence charSequence, String str, boolean z, int i2) {
        l0(i2);
        int length = 0;
        int iP = P(charSequence, str, 0, z);
        if (iP == -1 || i2 == 1) {
            return j.k0.n.b(charSequence.toString());
        }
        boolean z2 = i2 > 0;
        ArrayList arrayList = new ArrayList(z2 ? j.r0.n.c(i2, 10) : 10);
        do {
            arrayList.add(charSequence.subSequence(length, iP).toString());
            length = str.length() + iP;
            if (z2 && arrayList.size() == i2 - 1) {
                break;
            }
            iP = P(charSequence, str, length, z);
        } while (iP != -1);
        arrayList.add(charSequence.subSequence(length, charSequence.length()).toString());
        return arrayList;
    }

    public static /* synthetic */ List p0(CharSequence charSequence, char[] cArr, boolean z, int i2, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            z = false;
        }
        if ((i3 & 4) != 0) {
            i2 = 0;
        }
        return m0(charSequence, cArr, z, i2);
    }

    public static /* synthetic */ List q0(CharSequence charSequence, String[] strArr, boolean z, int i2, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            z = false;
        }
        if ((i3 & 4) != 0) {
            i2 = 0;
        }
        return n0(charSequence, strArr, z, i2);
    }

    public static final j.t0.c<String> r0(CharSequence charSequence, String[] strArr, boolean z, int i2) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(strArr, "delimiters");
        return j.t0.i.f(h0(charSequence, strArr, 0, z, i2, 2, null), new c(charSequence));
    }

    public static /* synthetic */ j.t0.c s0(CharSequence charSequence, String[] strArr, boolean z, int i2, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            z = false;
        }
        if ((i3 & 4) != 0) {
            i2 = 0;
        }
        return r0(charSequence, strArr, z, i2);
    }

    public static final boolean t0(CharSequence charSequence, char c2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        return charSequence.length() > 0 && j.u0.c.d(charSequence.charAt(0), c2, z);
    }

    public static final boolean u0(CharSequence charSequence, CharSequence charSequence2, boolean z) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(charSequence2, "prefix");
        return (!z && (charSequence instanceof String) && (charSequence2 instanceof String)) ? q.D((String) charSequence, (String) charSequence2, false, 2, null) : i0(charSequence, 0, charSequence2, 0, charSequence2.length(), z);
    }

    public static /* synthetic */ boolean v0(CharSequence charSequence, char c2, boolean z, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            z = false;
        }
        return t0(charSequence, c2, z);
    }

    public static /* synthetic */ boolean w0(CharSequence charSequence, CharSequence charSequence2, boolean z, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            z = false;
        }
        return u0(charSequence, charSequence2, z);
    }

    public static final String x0(CharSequence charSequence, j.r0.h hVar) {
        j.p0.d.r.f(charSequence, "<this>");
        j.p0.d.r.f(hVar, "range");
        return charSequence.subSequence(hVar.i().intValue(), hVar.h().intValue() + 1).toString();
    }

    public static final String y0(String str, char c2, String str2) {
        j.p0.d.r.f(str, "<this>");
        j.p0.d.r.f(str2, "missingDelimiterValue");
        int iS = S(str, c2, 0, false, 6, null);
        if (iS == -1) {
            return str2;
        }
        String strSubstring = str.substring(iS + 1, str.length());
        j.p0.d.r.e(strSubstring, "this as java.lang.String…ing(startIndex, endIndex)");
        return strSubstring;
    }

    public static final String z0(String str, String str2, String str3) {
        j.p0.d.r.f(str, "<this>");
        j.p0.d.r.f(str2, "delimiter");
        j.p0.d.r.f(str3, "missingDelimiterValue");
        int iT = T(str, str2, 0, false, 6, null);
        if (iT == -1) {
            return str3;
        }
        String strSubstring = str.substring(iT + str2.length(), str.length());
        j.p0.d.r.e(strSubstring, "this as java.lang.String…ing(startIndex, endIndex)");
        return strSubstring;
    }
}
