81 lines
2.8 KiB
Java
81 lines
2.8 KiB
Java
package c.i.a.b.i;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import c.i.a.b.b;
|
|
import c.i.a.b.j.d;
|
|
import com.adjust.sdk.Constants;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import java.nio.charset.Charset;
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
import java.util.regex.Pattern;
|
|
/* compiled from: CCTDestination */
|
|
public final class a implements d {
|
|
public static final String a = AnimatableValueParser.M1("hts/frbslgiggolai.o/0clgbthfra=snpoo", "tp:/ieaeogn.ogepscmvc/o/ac?omtjo_rt3");
|
|
public static final String b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public static final String f601c;
|
|
public static final Set<b> d = Collections.unmodifiableSet(new HashSet(Arrays.asList(new b("proto"), new b("json"))));
|
|
public static final a e;
|
|
@NonNull
|
|
public final String f;
|
|
@Nullable
|
|
public final String g;
|
|
|
|
static {
|
|
String M1 = AnimatableValueParser.M1("hts/frbslgigp.ogepscmv/ieo/eaybtho", "tp:/ieaeogn-agolai.o/1frlglgc/aclg");
|
|
b = M1;
|
|
String M12 = AnimatableValueParser.M1("AzSCki82AwsLzKd5O8zo", "IayckHiZRO1EFl1aGoK");
|
|
f601c = M12;
|
|
e = new a(M1, M12);
|
|
}
|
|
|
|
public a(@NonNull String str, @Nullable String str2) {
|
|
this.f = str;
|
|
this.g = str2;
|
|
}
|
|
|
|
@NonNull
|
|
public static a a(@NonNull byte[] bArr) {
|
|
String str = new String(bArr, Charset.forName(Constants.ENCODING));
|
|
if (str.startsWith("1$")) {
|
|
String[] split = str.substring(2).split(Pattern.quote("\\"), 2);
|
|
if (split.length == 2) {
|
|
String str2 = split[0];
|
|
if (!str2.isEmpty()) {
|
|
String str3 = split[1];
|
|
if (str3.isEmpty()) {
|
|
str3 = null;
|
|
}
|
|
return new a(str2, str3);
|
|
}
|
|
throw new IllegalArgumentException("Missing endpoint in CCTDestination extras");
|
|
}
|
|
throw new IllegalArgumentException("Extra is not a valid encoded LegacyFlgDestination");
|
|
}
|
|
throw new IllegalArgumentException("Version marker missing from extras");
|
|
}
|
|
|
|
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0021: APUT (r1v1 java.lang.Object[]), (3 ??[int, float, short, byte, char]), (r0v1 java.lang.String) */
|
|
@Nullable
|
|
public byte[] b() {
|
|
String str = this.g;
|
|
if (str == null && this.f == null) {
|
|
return null;
|
|
}
|
|
Object[] objArr = new Object[4];
|
|
objArr[0] = "1$";
|
|
objArr[1] = this.f;
|
|
objArr[2] = "\\";
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
objArr[3] = str;
|
|
return String.format("%s%s%s%s", objArr).getBytes(Charset.forName(Constants.ENCODING));
|
|
}
|
|
}
|