Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 d.java 源代码,内容仅作参考
package k6;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.mbridge.msdk.MBridgeConstans;
import java.util.Arrays;
import kotlin.Metadata;
import kotlin.jvm.internal.s;
import kotlin.ranges.IntRange;
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\r\n\u0002\b\u0015\bÆ\u0002\u0018\u00002\u00020\u0001:\u0001\u0011B\t\b\u0002¢\u0006\u0004\b\u001f\u0010 J0\u0010\b\u001a\u00020\u00022\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u00042\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u0002J\u000e\u0010\n\u001a\u00020\u00022\u0006\u0010\t\u001a\u00020\u0002J \u0010\u000e\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u0018\u0010\u0010\u001a\u00020\u00022\u0006\u0010\u000f\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J \u0010\u0011\u001a\u00020\u00022\u0006\u0010\u000f\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u0005\u001a\u00020\u0004H\u0002R\"\u0010\u0017\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\b\u0010\u0012\u001a\u0004\b\u0013\u0010\u0014\"\u0004\b\u0015\u0010\u0016R\"\u0010\u001b\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0018\u0010\u0012\u001a\u0004\b\u0019\u0010\u0014\"\u0004\b\u001a\u0010\u0016R\"\u0010\u001e\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0010\u0010\u0012\u001a\u0004\b\u001c\u0010\u0014\"\u0004\b\u001d\u0010\u0016¨\u0006!"}, d2 = {"Lk6/d;", "", "", "id", "Lk6/d$a;", "format", "imageUploader", MBridgeConstans.DYNAMIC_VIEW_WX_PATH, "b", "youtubeVideoId", "f", "imageId", "", "categoryId", "e", "name", "d", "a", "Ljava/lang/String;", "g", "()Ljava/lang/String;", "setBLOCKET_CONTENT_URL", "(Ljava/lang/String;)V", "BLOCKET_CONTENT_URL", "c", "getYAMS_CONTENT_URL", "setYAMS_CONTENT_URL", "YAMS_CONTENT_URL", "getRMS_CONTENT_URL", "setRMS_CONTENT_URL", "RMS_CONTENT_URL", "<init>", "()V", "core-network"}, k = 1, mv = {1, 9, 0})
public final class d {
public static final d f81734a = new d();
public static String BLOCKET_CONTENT_URL = "https://content.kufar.by";
public static String YAMS_CONTENT_URL = "https://yams.kufar.by/api/v1/kufar-ads/images";
public static String RMS_CONTENT_URL = "https://rms.kufar.by/v1/%s/%s";
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\u0010\u000e\n\u0002\b\u000f\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0011\b\u0002\u0012\u0006\u0010\u0006\u001a\u00020\u0002¢\u0006\u0004\b\u0007\u0010\bR\u0017\u0010\u0006\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0003\u0010\u0005j\u0002\b\tj\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\rj\u0002\b\u000ej\u0002\b\u000fj\u0002\b\u0010¨\u0006\u0011"}, d2 = {"Lk6/d$a;", "", "", "b", "Ljava/lang/String;", "()Ljava/lang/String;", AppMeasurementSdk.ConditionalUserProperty.VALUE, "<init>", "(Ljava/lang/String;ILjava/lang/String;)V", "c", "d", "e", "f", "g", "h", "i", "j", "core-network"}, k = 1, mv = {1, 9, 0})
public static final class a {
public static final a f81738c = new a("LINE_THUMBS", 0, "line_thumbs");
public static final a f81739d = new a("LINE_THUMBS_2X", 1, "line_thumbs_2x");
public static final a f81740e = new a("LIST_THUMBS", 2, "list_thumbs");
public static final a f81741f = new a("LIST_THUMBS_2X", 3, "list_thumbs_2x");
public static final a f81742g = new a("AVATAR_THUMB", 4, "prc_thumbs");
public static final a f81743h = new a("GALLERY", 5, "gallery");
public static final a f81744i = new a("MOBILE_THUMBS", 6, "prc_thumbs");
public static final a f81745j = new a("ACCOUNT_COVERS", 7, "account_covers");
public static final a[] f81746k;
public static final m80.a f81747l;
public final String value;
static {
a[] a11 = a();
f81746k = a11;
f81747l = m80.b.a(a11);
}
public a(String str, int i11, String str2) {
this.value = str2;
}
public static final a[] a() {
return new a[]{f81738c, f81739d, f81740e, f81741f, f81742g, f81743h, f81744i, f81745j};
}
public static a valueOf(String str) {
return (a) Enum.valueOf(a.class, str);
}
public static a[] values() {
return (a[]) f81746k.clone();
}
public final String getValue() {
return this.value;
}
}
public static String c(d dVar, String str, a aVar, String str2, String str3, int i11, Object obj) {
if ((i11 & 4) != 0) {
str2 = null;
}
if ((i11 & 8) != 0) {
str3 = null;
}
return dVar.b(str, aVar, str2, str3);
}
public final String a(String name, CharSequence categoryId, a format) {
return BLOCKET_CONTENT_URL + "/" + format.getValue() + "/" + ((Object) categoryId) + "/" + name + ".jpg";
}
public final String b(String id2, a format, String imageUploader, String path) {
s.j(format, "format");
if (s.e(imageUploader, "rms")) {
if (path == null) {
return "";
}
return d(path, format);
}
if (s.e(imageUploader, "yams")) {
if (id2 == null || id2.length() < 2) {
return "";
}
return e(id2, a90.s.R0(id2, new IntRange(0, 1)), format);
}
if (id2 == null || id2.length() < 2) {
return "";
}
return a(id2, a90.s.R0(id2, new IntRange(0, 1)), format);
}
public final String d(String name, a format) {
String format2 = String.format(RMS_CONTENT_URL, Arrays.copyOf(new Object[]{format.getValue(), name}, 2));
s.i(format2, "format(this, *args)");
return format2;
}
public final String e(String imageId, CharSequence categoryId, a format) {
boolean z11;
if (a90.s.Z0(imageId, ".", "").length() == 0) {
z11 = true;
} else {
z11 = false;
}
if (z11) {
imageId = imageId + ".jpg";
}
return YAMS_CONTENT_URL + "/" + ((Object) categoryId) + "/" + imageId + "?rule=" + format.getValue();
}
public final String f(String youtubeVideoId) {
s.j(youtubeVideoId, "youtubeVideoId");
return "https://img.youtube.com/vi/" + youtubeVideoId + "/sddefault.jpg";
}
public final String g() {
return BLOCKET_CONTENT_URL;
}
}