- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
342 lines
13 KiB
Java
342 lines
13 KiB
Java
package com.ironsource.adqualitysdk.sdk.i;
|
||
|
||
import android.graphics.Color;
|
||
import android.graphics.PointF;
|
||
import android.os.Process;
|
||
import android.os.SystemClock;
|
||
import android.text.TextUtils;
|
||
import android.util.TypedValue;
|
||
import android.view.KeyEvent;
|
||
import android.view.View;
|
||
import android.view.ViewConfiguration;
|
||
import android.widget.ExpandableListView;
|
||
import com.vungle.ads.internal.signals.SignalKey;
|
||
import java.util.ArrayList;
|
||
import java.util.List;
|
||
import java.util.regex.Matcher;
|
||
import java.util.regex.Pattern;
|
||
import org.json.JSONArray;
|
||
|
||
/* loaded from: classes4.dex */
|
||
public final class kb {
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
private static char[] f2810 = {'[', '^', '0', '-', '9', '.', ']', '\\', 'a', 'z', 'A', 'Z', '*', '$', 's', 'S'};
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
private static int f2811 = 1;
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static char f2812 = 4;
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static int f2813;
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
public static int m3373(String str, String str2) {
|
||
int i = f2811 + 105;
|
||
f2813 = i % 128;
|
||
int i2 = i % 2;
|
||
int i3 = 0;
|
||
String[] split = str.replaceAll(m3369(8 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (byte) ((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 97), "\u0001\u0002\u0003\u0000\u0005\u0006¾").intern(), "").split(m3369(TextUtils.getOffsetBefore("", 0) + 2, (byte) (View.MeasureSpec.makeMeasureSpec(0, 0) + 68), "\u0004\u0006").intern());
|
||
String[] split2 = str2.replaceAll(m3369(7 - KeyEvent.getDeadChar(0, 0), (byte) (97 - (TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1))), "\u0001\u0002\u0003\u0000\u0005\u0006¾").intern(), "").split(m3369(Color.rgb(0, 0, 0) + 16777218, (byte) (68 - View.MeasureSpec.getMode(0)), "\u0004\u0006").intern());
|
||
while (i3 < split.length) {
|
||
int i4 = f2811 + 75;
|
||
int i5 = i4 % 128;
|
||
f2813 = i5;
|
||
int i6 = i4 % 2;
|
||
if (i3 >= split2.length) {
|
||
break;
|
||
}
|
||
int i7 = i5 + 117;
|
||
f2811 = i7 % 128;
|
||
if (i7 % 2 == 0) {
|
||
split[i3].equals(split2[i3]);
|
||
throw null;
|
||
}
|
||
if (!split[i3].equals(split2[i3])) {
|
||
break;
|
||
}
|
||
i3++;
|
||
int i8 = f2811 + 97;
|
||
f2813 = i8 % 128;
|
||
int i9 = i8 % 2;
|
||
}
|
||
return (i3 >= split.length || i3 >= split2.length) ? Integer.signum(split.length - split2.length) : Integer.signum(Integer.valueOf(split[i3]).compareTo(Integer.valueOf(split2[i3])));
|
||
}
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
public static List<String> m3367(String str, String str2) {
|
||
int i = f2811 + 53;
|
||
f2813 = i % 128;
|
||
List<String> m3377 = m3377(str, str2, i % 2 != 0);
|
||
int i2 = f2811 + 121;
|
||
f2813 = i2 % 128;
|
||
int i3 = i2 % 2;
|
||
return m3377;
|
||
}
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
public static List<String> m3371(String str, JSONArray jSONArray) {
|
||
ArrayList arrayList = new ArrayList();
|
||
int i = f2811 + 7;
|
||
f2813 = i % 128;
|
||
int i2 = i % 2;
|
||
for (int i3 = 0; i3 < jSONArray.length(); i3++) {
|
||
int i4 = f2813 + 91;
|
||
f2811 = i4 % 128;
|
||
int i5 = i4 % 2;
|
||
arrayList.addAll(m3377(str, jSONArray.optString(i3), false));
|
||
}
|
||
return arrayList;
|
||
}
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
public static String m3370(String str, JSONArray jSONArray, boolean z) {
|
||
String m3375;
|
||
int i = 0;
|
||
while (i < jSONArray.length()) {
|
||
int i2 = f2813 + 3;
|
||
f2811 = i2 % 128;
|
||
if (i2 % 2 == 0) {
|
||
m3375 = m3375(str, jSONArray.optString(i), z);
|
||
int i3 = 37 / 0;
|
||
if (m3375 != null) {
|
||
return m3375;
|
||
}
|
||
i++;
|
||
int i4 = f2811 + 63;
|
||
f2813 = i4 % 128;
|
||
int i5 = i4 % 2;
|
||
} else {
|
||
m3375 = m3375(str, jSONArray.optString(i), z);
|
||
if (m3375 != null) {
|
||
return m3375;
|
||
}
|
||
i++;
|
||
int i42 = f2811 + 63;
|
||
f2813 = i42 % 128;
|
||
int i52 = i42 % 2;
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
public static String m3375(String str, String str2, boolean z) {
|
||
int i = f2811 + 47;
|
||
f2813 = i % 128;
|
||
if (i % 2 != 0) {
|
||
throw null;
|
||
}
|
||
if (z) {
|
||
str2 = m3374(str2);
|
||
}
|
||
List<String> m3377 = m3377(str, str2, true);
|
||
if (m3377.size() <= 0) {
|
||
return null;
|
||
}
|
||
int i2 = f2813 + 77;
|
||
f2811 = i2 % 128;
|
||
return i2 % 2 == 0 ? m3377.get(1) : m3377.get(0);
|
||
}
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static List<String> m3377(String str, String str2, boolean z) {
|
||
ArrayList arrayList = new ArrayList();
|
||
Matcher matcher = Pattern.compile(str2).matcher(str);
|
||
while (true) {
|
||
if (!matcher.find()) {
|
||
return arrayList;
|
||
}
|
||
int i = f2811 + 11;
|
||
f2813 = i % 128;
|
||
if (i % 2 == 0) {
|
||
if (matcher.groupCount() != 0) {
|
||
for (int i2 = 1; i2 <= matcher.groupCount(); i2++) {
|
||
int i3 = f2813 + 85;
|
||
f2811 = i3 % 128;
|
||
if (i3 % 2 != 0) {
|
||
arrayList.add(matcher.group(i2));
|
||
if (z) {
|
||
return arrayList;
|
||
}
|
||
} else {
|
||
arrayList.add(matcher.group(i2));
|
||
throw null;
|
||
}
|
||
}
|
||
} else {
|
||
int i4 = f2813 + 23;
|
||
f2811 = i4 % 128;
|
||
if (i4 % 2 != 0) {
|
||
arrayList.add(matcher.group());
|
||
if (z) {
|
||
int i5 = f2811 + SignalKey.EVENT_ID;
|
||
f2813 = i5 % 128;
|
||
if (i5 % 2 != 0) {
|
||
int i6 = 39 / 0;
|
||
}
|
||
return arrayList;
|
||
}
|
||
} else {
|
||
arrayList.add(matcher.group());
|
||
throw null;
|
||
}
|
||
}
|
||
} else {
|
||
matcher.groupCount();
|
||
throw null;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
public static String m3376(String str, String str2) {
|
||
int i = f2813 + 111;
|
||
f2811 = i % 128;
|
||
return str.substring(0, i % 2 == 0 ? str.length() + str2.length() : str.length() - str2.length());
|
||
}
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
public static boolean m3368(String str) {
|
||
int i = f2813 + 71;
|
||
f2811 = i % 128;
|
||
if (i % 2 != 0) {
|
||
if (TextUtils.isEmpty(str)) {
|
||
int i2 = f2813 + 39;
|
||
f2811 = i2 % 128;
|
||
int i3 = i2 % 2;
|
||
return false;
|
||
}
|
||
boolean matches = str.matches(m3369(Color.blue(0) + 14, (byte) (63 - Color.alpha(0)), "\u0002\u0001\u000b\u0000\n\u000b\u0007\u000f\u0003\u0000\u0005\u0007\r\u000e").intern());
|
||
int i4 = f2811 + 27;
|
||
f2813 = i4 % 128;
|
||
int i5 = i4 % 2;
|
||
return matches;
|
||
}
|
||
TextUtils.isEmpty(str);
|
||
throw null;
|
||
}
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
public static boolean m3372(String str, int i) {
|
||
int i2 = f2811 + 11;
|
||
f2813 = i2 % 128;
|
||
int i3 = i2 % 2;
|
||
if (TextUtils.isEmpty(str)) {
|
||
return false;
|
||
}
|
||
int i4 = f2811 + 71;
|
||
f2813 = i4 % 128;
|
||
if (i4 % 2 != 0) {
|
||
str.length();
|
||
throw null;
|
||
}
|
||
if (str.length() <= 0 || str.length() > i) {
|
||
return false;
|
||
}
|
||
int i5 = f2811 + 47;
|
||
f2813 = i5 % 128;
|
||
int i6 = i5 % 2;
|
||
return true;
|
||
}
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static String m3374(String str) {
|
||
int i = f2813 + 65;
|
||
f2811 = i % 128;
|
||
if (i % 2 != 0) {
|
||
if (TextUtils.isEmpty(str)) {
|
||
return str;
|
||
}
|
||
int i2 = f2811 + 21;
|
||
f2813 = i2 % 128;
|
||
if (i2 % 2 == 0 ? !str.startsWith(m3369(TextUtils.getCapsMode("", 0, 0) + 1, (byte) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 11), "j").intern()) : !str.startsWith(m3369(1 % TextUtils.getCapsMode("", 1, 1), (byte) (113 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))), "j").intern())) {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(m3369((PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)) + 8, (byte) (85 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1))), "\u0002\u0001\u0006\u000f\u000b\u0003\u0004\u000e").intern());
|
||
sb.append(str);
|
||
str = sb.toString();
|
||
}
|
||
if (str.endsWith(m3369(1 - TextUtils.getOffsetBefore("", 0), (byte) (52 - (ViewConfiguration.getJumpTapTimeout() >> 16)), "X").intern())) {
|
||
return str;
|
||
}
|
||
StringBuilder sb2 = new StringBuilder();
|
||
sb2.append(str);
|
||
sb2.append(m3369(6 - TextUtils.lastIndexOf("", '0'), (byte) (ExpandableListView.getPackedPositionType(0L) + 109), "\u0003\u0004\u000f\u0006\u000e\u0007\u0097").intern());
|
||
return sb2.toString();
|
||
}
|
||
TextUtils.isEmpty(str);
|
||
throw null;
|
||
}
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
private static String m3369(int i, byte b, String str) {
|
||
String str2;
|
||
char[] cArr = str;
|
||
if (str != null) {
|
||
cArr = str.toCharArray();
|
||
}
|
||
char[] cArr2 = cArr;
|
||
synchronized (h.f2156) {
|
||
try {
|
||
char[] cArr3 = f2810;
|
||
char c = f2812;
|
||
char[] cArr4 = new char[i];
|
||
if (i % 2 != 0) {
|
||
i--;
|
||
cArr4[i] = (char) (cArr2[i] - b);
|
||
}
|
||
if (i > 1) {
|
||
h.f2159 = 0;
|
||
while (true) {
|
||
int i2 = h.f2159;
|
||
if (i2 >= i) {
|
||
break;
|
||
}
|
||
h.f2158 = cArr2[i2];
|
||
h.f2161 = cArr2[h.f2159 + 1];
|
||
if (h.f2158 == h.f2161) {
|
||
cArr4[h.f2159] = (char) (h.f2158 - b);
|
||
cArr4[h.f2159 + 1] = (char) (h.f2161 - b);
|
||
} else {
|
||
h.f2162 = h.f2158 / c;
|
||
h.f2157 = h.f2158 % c;
|
||
h.f2160 = h.f2161 / c;
|
||
h.f2155 = h.f2161 % c;
|
||
if (h.f2157 == h.f2155) {
|
||
h.f2162 = ((h.f2162 + c) - 1) % c;
|
||
h.f2160 = ((h.f2160 + c) - 1) % c;
|
||
int i3 = (h.f2162 * c) + h.f2157;
|
||
int i4 = (h.f2160 * c) + h.f2155;
|
||
int i5 = h.f2159;
|
||
cArr4[i5] = cArr3[i3];
|
||
cArr4[i5 + 1] = cArr3[i4];
|
||
} else if (h.f2162 == h.f2160) {
|
||
h.f2157 = ((h.f2157 + c) - 1) % c;
|
||
h.f2155 = ((h.f2155 + c) - 1) % c;
|
||
int i6 = (h.f2162 * c) + h.f2157;
|
||
int i7 = (h.f2160 * c) + h.f2155;
|
||
int i8 = h.f2159;
|
||
cArr4[i8] = cArr3[i6];
|
||
cArr4[i8 + 1] = cArr3[i7];
|
||
} else {
|
||
int i9 = (h.f2162 * c) + h.f2155;
|
||
int i10 = (h.f2160 * c) + h.f2157;
|
||
int i11 = h.f2159;
|
||
cArr4[i11] = cArr3[i9];
|
||
cArr4[i11 + 1] = cArr3[i10];
|
||
}
|
||
}
|
||
h.f2159 += 2;
|
||
}
|
||
}
|
||
str2 = new String(cArr4);
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
return str2;
|
||
}
|
||
}
|