Fast Orange v3.5.3版本的 MD5 值为:33b91aba50c566533dfd683a85f79158
以下内容为反编译后的 WebsitesApi.java 源代码,内容仅作参考
package com.free.vpn.proxy.hotspot.data.remote.websites;
import androidx.compose.runtime.internal.StabilityInferred;
import com.free.vpn.proxy.hotspot.an1;
import com.free.vpn.proxy.hotspot.aq0;
import com.free.vpn.proxy.hotspot.bq0;
import com.free.vpn.proxy.hotspot.hz4;
import com.free.vpn.proxy.hotspot.jf2;
import com.free.vpn.proxy.hotspot.on0;
import com.free.vpn.proxy.hotspot.t00;
import com.free.vpn.proxy.hotspot.v74;
import com.free.vpn.proxy.hotspot.x74;
import com.free.vpn.proxy.hotspot.xt0;
import com.free.vpn.proxy.hotspot.zs4;
import com.google.android.gms.appindex.ThingPropertyKeys;
import java.util.Iterator;
import java.util.NoSuchElementException;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.coroutines.Continuation;
import kotlin.jvm.internal.Ref$ObjectRef;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.Dispatchers;
import okhttp3.internal.Util;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u0000 \u00152\u00020\u0001:\u0001\u0015B\t\b\u0007¢\u0006\u0004\b\u0013\u0010\u0014J\u001e\u0010\u0006\u001a\u0010\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0005\u0018\u00010\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u0018\u0010\t\u001a\u00020\u00022\u0006\u0010\u0007\u001a\u00020\u00022\u0006\u0010\b\u001a\u00020\u0002H\u0002J\u000e\u0010\u000b\u001a\u0004\u0018\u00010\u0002*\u00020\nH\u0002J\u000e\u0010\f\u001a\u0004\u0018\u00010\u0002*\u00020\nH\u0002J\u000e\u0010\r\u001a\u0004\u0018\u00010\u0002*\u00020\nH\u0002J\u0010\u0010\u000f\u001a\u00020\u00022\u0006\u0010\u000e\u001a\u00020\u0002H\u0016J\u001d\u0010\u0011\u001a\u0004\u0018\u00010\u00102\u0006\u0010\b\u001a\u00020\u0002H\u0096@ø\u0001\u0000¢\u0006\u0004\b\u0011\u0010\u0012\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0016"}, d2 = {"Lcom/free/vpn/proxy/hotspot/data/remote/websites/WebsitesApi;", "Lcom/free/vpn/proxy/hotspot/data/remote/websites/IWebsitesApi;", "", "queryURL", "Lkotlin/Pair;", "Lcom/free/vpn/proxy/hotspot/on0;", "resolveDocumentFromQueryUrl", "host", "url", "fixSubUrl", "Lcom/free/vpn/proxy/hotspot/aq0;", "tryFindFavIcon", "tryFindOGImage", "tryFindAppleIcon", "siteUrl", "defaultIconUrl", "Lcom/free/vpn/proxy/hotspot/hz4;", "retrieveTitleAndIcon", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "<init>", "()V", "Companion", "app_chinaSeoDirectBlackRelease"}, k = 1, mv = {1, 8, 0})
public final class WebsitesApi implements IWebsitesApi {
public static final int $stable = 0;
private static final String FAVICON_API_URL = "https://www.google.com/s2/favicons?sz=64&domain_url=%s";
public final String fixSubUrl(String host, String url) {
if (!x74.r1(url, "http", false)) {
return jf2.D("https://", host, url);
}
return url;
}
public final Pair<String, on0> resolveDocumentFromQueryUrl(String queryURL) {
Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef();
if (!x74.r1(queryURL, "http", false)) {
queryURL = "https://".concat(queryURL);
}
ref$ObjectRef.a = queryURL;
ref$ObjectRef.a = x74.E1(queryURL, '/');
WebsitesApi$resolveDocumentFromQueryUrl$connectBlock$1 websitesApi$resolveDocumentFromQueryUrl$connectBlock$1 = new WebsitesApi$resolveDocumentFromQueryUrl$connectBlock$1(ref$ObjectRef);
on0 on0Var = (on0) websitesApi$resolveDocumentFromQueryUrl$connectBlock$1.invoke();
if (on0Var != null) {
return TuplesKt.to(ref$ObjectRef.a, on0Var);
}
ref$ObjectRef.a = x74.l1((String) ref$ObjectRef.a, "https://", "http://");
on0 on0Var2 = (on0) websitesApi$resolveDocumentFromQueryUrl$connectBlock$1.invoke();
if (on0Var2 != null) {
return TuplesKt.to(ref$ObjectRef.a, on0Var2);
}
return null;
}
public final String tryFindAppleIcon(aq0 aq0Var) {
boolean z;
int i;
boolean z2;
int i2;
String str;
Integer J0;
String str2;
Integer J02;
aq0Var.getClass();
bq0 g = an1.g(aq0Var, new xt0("rel", "apple-touch-icon", 0));
int size = g.size();
if (size != 0) {
if (size != 1) {
Iterator it = g.iterator();
if (it.hasNext()) {
Object next = it.next();
if (it.hasNext()) {
String e = ((aq0) next).e("sizes");
zs4.n(e, "size");
if (e.length() == 0) {
z = true;
} else {
z = false;
}
if (!z && (str2 = (String) t00.c1(x74.p1(e, new String[]{"x"}))) != null && (J02 = v74.J0(str2)) != null) {
i = J02.intValue();
} else {
i = 0;
}
do {
Object next2 = it.next();
String e2 = ((aq0) next2).e("sizes");
zs4.n(e2, "size");
if (e2.length() == 0) {
z2 = true;
} else {
z2 = false;
}
if (!z2 && (str = (String) t00.c1(x74.p1(e2, new String[]{"x"}))) != null && (J0 = v74.J0(str)) != null) {
i2 = J0.intValue();
} else {
i2 = 0;
}
if (i < i2) {
next = next2;
i = i2;
}
} while (it.hasNext());
}
aq0 aq0Var2 = (aq0) next;
if (aq0Var2 != null) {
return aq0Var2.e("href");
}
} else {
throw new NoSuchElementException();
}
} else {
aq0 a = g.a();
if (a != null) {
return a.e("href");
}
}
}
return null;
}
public final String tryFindFavIcon(aq0 aq0Var) {
boolean z;
int i;
boolean z2;
int i2;
String str;
Integer J0;
String str2;
Integer J02;
aq0Var.getClass();
bq0 g = an1.g(aq0Var, new xt0("rel", "icon", 0));
int size = g.size();
if (size != 0) {
if (size != 1) {
Iterator it = g.iterator();
if (it.hasNext()) {
Object next = it.next();
if (it.hasNext()) {
String e = ((aq0) next).e("sizes");
zs4.n(e, "size");
if (e.length() == 0) {
z = true;
} else {
z = false;
}
if (!z && (str2 = (String) t00.c1(x74.p1(e, new String[]{"x"}))) != null && (J02 = v74.J0(str2)) != null) {
i = J02.intValue();
} else {
i = 0;
}
do {
Object next2 = it.next();
String e2 = ((aq0) next2).e("sizes");
zs4.n(e2, "size");
if (e2.length() == 0) {
z2 = true;
} else {
z2 = false;
}
if (!z2 && (str = (String) t00.c1(x74.p1(e2, new String[]{"x"}))) != null && (J0 = v74.J0(str)) != null) {
i2 = J0.intValue();
} else {
i2 = 0;
}
if (i < i2) {
next = next2;
i = i2;
}
} while (it.hasNext());
}
aq0 aq0Var2 = (aq0) next;
if (aq0Var2 != null) {
return aq0Var2.e("href");
}
} else {
throw new NoSuchElementException();
}
} else {
aq0 a = g.a();
if (a != null) {
return a.e("href");
}
}
}
return null;
}
public final String tryFindOGImage(aq0 aq0Var) {
boolean z;
int i;
boolean z2;
int i2;
String str;
Integer J0;
String str2;
Integer J02;
aq0Var.getClass();
bq0 g = an1.g(aq0Var, new xt0("property", "og:image", 0));
int size = g.size();
if (size != 0) {
if (size != 1) {
Iterator it = g.iterator();
if (it.hasNext()) {
Object next = it.next();
if (it.hasNext()) {
String e = ((aq0) next).e("sizes");
zs4.n(e, "size");
if (e.length() == 0) {
z = true;
} else {
z = false;
}
if (!z && (str2 = (String) t00.c1(x74.p1(e, new String[]{"x"}))) != null && (J02 = v74.J0(str2)) != null) {
i = J02.intValue();
} else {
i = 0;
}
do {
Object next2 = it.next();
String e2 = ((aq0) next2).e("sizes");
zs4.n(e2, "size");
if (e2.length() == 0) {
z2 = true;
} else {
z2 = false;
}
if (!z2 && (str = (String) t00.c1(x74.p1(e2, new String[]{"x"}))) != null && (J0 = v74.J0(str)) != null) {
i2 = J0.intValue();
} else {
i2 = 0;
}
if (i < i2) {
next = next2;
i = i2;
}
} while (it.hasNext());
}
aq0 aq0Var2 = (aq0) next;
if (aq0Var2 != null) {
return aq0Var2.e(ThingPropertyKeys.CONTENT);
}
} else {
throw new NoSuchElementException();
}
} else {
aq0 a = g.a();
if (a != null) {
return a.e(ThingPropertyKeys.CONTENT);
}
}
}
return null;
}
@Override
public String defaultIconUrl(String siteUrl) {
zs4.o(siteUrl, "siteUrl");
return Util.format(FAVICON_API_URL, siteUrl);
}
@Override
public Object retrieveTitleAndIcon(String str, Continuation<? super hz4> continuation) {
return BuildersKt.withContext(Dispatchers.getIO(), new WebsitesApi$retrieveTitleAndIcon$2(this, str, null), continuation);
}
}