Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5
以下内容为反编译后的 h.java 源代码,内容仅作参考
package ad;
import a5.a;
import af.k;
import af.m;
import ag.c;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Base64;
import android.view.View;
import android.view.WindowManager;
import androidx.activity.z;
import androidx.core.view.d1;
import bf.y0;
import com.alibaba.fastjson.JSON;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.google.android.exoplayer2.decoder.DecoderReuseEvaluation;
import com.google.android.exoplayer2.text.ttml.TtmlNode;
import com.google.android.exoplayer2.upstream.CmcdConfiguration;
import com.google.android.material.internal.ViewUtils;
import com.google.common.base.Ascii;
import com.hotspot.vpn.ads.self.PromotionBean;
import com.hotspot.vpn.allconnect.bean.ServerBean;
import com.hotspot.vpn.tls.TlsPlusManager;
import com.tenjin.android.config.TenjinConsts;
import com.unity3d.ads.metadata.PlayerMetaData;
import gc.p;
import he.s;
import he.t;
import id.x;
import j3.o;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.AbstractCollection;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.Spliterators;
import java.util.concurrent.CancellationException;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
import java.util.concurrent.locks.LockSupport;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import le.a1;
import le.c0;
import le.e0;
import le.e1;
import le.f0;
import le.i1;
import le.k1;
import le.l1;
import le.m0;
import le.m1;
import le.p0;
import le.p1;
import le.q1;
import le.r1;
import le.s1;
import le.t1;
import le.u1;
import le.w;
import le.y;
import me.b;
import me.r;
import n8.l;
import nd.p;
import oe.n;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import pc.w0;
import sc.o;
import tb.q;
import tb.u;
import te.a;
import u1.a;
import u2.k;
import uc.c;
import vc.b1;
import vc.c1;
import vc.d0;
import vc.g0;
import vc.i0;
import vc.s0;
import vc.v;
import vc.x0;
import vc.z0;
import wb.e;
import yc.u0;
import ye.a0;
import ye.b0;
import ye.c;
import ye.e2;
import ye.h1;
import ye.j0;
import ye.k0;
import ye.n1;
import ye.o0;
import ye.q0;
import ye.r0;
import ye.w1;
import ye.x1;
import ye.z1;
import yf.h;
import zf.l;
public class h implements t, d1, a.c, s, k, o, y2.a, h5.d {
public static final h f208b = new h();
public static final h f209c = new h();
public static final h f210d = new h();
public static final wb.d[] f211e = new wb.d[0];
public static final p.d f212f = new p.d("NO_OWNER", 6);
public static final h f213g = new h();
public static final be.a f214h = new be.a();
public static final int[] f215i = {0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 12, 16, 12, 12, 20, 12, 16, 24, 28, 12, 12, 32, 12, 36, 12, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 32, 32, 24, 40, 28, 12, 12, 48, 52, 52, 52, 48, 52, 52, 52, 48, 52, 52, 52, 52, 52, 48, 52, 52, 52, 52, 52, 48, 52, 52, 52, 52, 52, 24, 12, 28, 12, 12, 12, 56, 60, 60, 60, 56, 60, 60, 60, 56, 60, 60, 60, 60, 60, 56, 60, 60, 60, 60, 60, 56, 60, 60, 60, 60, 60, 24, 12, 28, 12, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 56, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 25, 25, 25, 25, 26, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 28, 29, 29, 29, 29, 30, 30, 30, 30, 31, 31, 31, 31, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, 36, 36, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 39, 39, 39, 40, 40, 40, 40, 41, 41, 41, 41, 42, 42, 42, 42, 43, 43, 43, 43, 44, 44, 44, 44, 45, 45, 45, 45, 46, 46, 46, 46, 47, 47, 47, 47, 48, 48, 48, 48, 49, 49, 49, 49, 50, 50, 50, 50, 51, 51, 51, 51, 52, 52, 52, 52, 53, 53, 53, 53, 54, 54, 54, 54, 55, 55, 55, 55, 56, 56, 56, 56, 57, 57, 57, 57, 58, 58, 58, 58, 59, 59, 59, 59, 60, 60, 60, 60, 61, 61, 61, 61, 62, 62, 62, 62, 63, 63, 63, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
public static final int[] f216j = {1024, 1536, 1280, 1536, 0, 256, ViewUtils.EDGE_TO_EDGE_FLAGS, 512};
public static void A(l lVar) {
if (!lVar.f28697f) {
throw new IllegalStateException("AdSession is not started");
}
q(lVar);
}
public static final ArrayList A0(m0 m0Var) {
?? Y0;
ArrayList arrayList = null;
if (xd.k.g(m0Var)) {
vc.h k8 = m0Var.H0().k();
kotlin.jvm.internal.k.c(k8, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
int i10 = be.b.f4351a;
z0<m0> R = ((vc.e) k8).R();
d0 d0Var = R instanceof d0 ? (d0) R : null;
kotlin.jvm.internal.k.b(d0Var);
arrayList = new ArrayList();
for (sb.j jVar : d0Var.f35601a) {
ud.f fVar = (ud.f) jVar.f31020b;
ArrayList A0 = A0((m0) jVar.f31021c);
if (A0 != null) {
Y0 = new ArrayList(tb.o.V1(A0, 10));
Iterator it = A0.iterator();
while (it.hasNext()) {
Y0.add(fVar.c() + '-' + ((String) it.next()));
}
} else {
Y0 = Y0(fVar.c());
}
q.b2(arrayList, (Iterable) Y0);
}
}
return arrayList;
}
public static boolean A1(n nVar, oe.h hVar, oe.h hVar2) {
if (hVar == hVar2) {
return true;
}
m0 a8 = nVar.a(hVar);
m0 a10 = nVar.a(hVar2);
if (a8 == null || a10 == null) {
y w8 = nVar.w(hVar);
y w9 = nVar.w(hVar2);
if (w8 == null || w9 == null) {
return false;
}
return z1(nVar, nVar.f(w8), nVar.f(w9)) && z1(nVar, nVar.d(w8), nVar.d(w9));
}
return z1(nVar, a8, a10);
}
public static final ub.b B(ub.b bVar) {
if (bVar.f35370f == null) {
bVar.l();
bVar.f35369e = true;
return bVar.f35368d > 0 ? bVar : ub.b.f35365h;
}
throw new IllegalStateException();
}
public static final ud.f B0(rd.c cVar, int i10) {
kotlin.jvm.internal.k.e(cVar, "<this>");
return ud.f.f(cVar.getString(i10));
}
public static p1 B1(List list, l1 l1Var, vc.k kVar, List list2) {
if (l1Var == null) {
k(1);
throw null;
} else if (kVar == null) {
k(2);
throw null;
} else if (list2 == null) {
k(3);
throw null;
} else {
p1 C1 = C1(list, l1Var, kVar, list2, null);
if (C1 != null) {
return C1;
}
throw new AssertionError("Substitution failed");
}
}
public static void C(StringBuilder sb2, Object obj) {
int lastIndexOf;
if (obj == null) {
sb2.append("null");
return;
}
String simpleName = obj.getClass().getSimpleName();
if (simpleName.length() <= 0 && (lastIndexOf = (simpleName = obj.getClass().getName()).lastIndexOf(46)) > 0) {
simpleName = simpleName.substring(lastIndexOf + 1);
}
sb2.append(simpleName);
sb2.append('{');
sb2.append(Integer.toHexString(System.identityHashCode(obj)));
}
public static final x C0(vc.e eVar) {
vc.e eVar2;
kotlin.jvm.internal.k.e(eVar, "<this>");
int i10 = be.b.f4351a;
Iterator<e0> it = eVar.l().H0().i().iterator();
while (true) {
if (!it.hasNext()) {
eVar2 = null;
break;
}
e0 next = it.next();
if (!sc.k.y(next)) {
vc.h k8 = next.H0().k();
int i11 = xd.i.f36614a;
if (xd.i.n(k8, vc.f.f35626b) || xd.i.n(k8, vc.f.f35628d)) {
kotlin.jvm.internal.k.c(k8, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
eVar2 = (vc.e) k8;
break;
}
}
}
if (eVar2 == null) {
return null;
}
ee.i k02 = eVar2.k0();
x xVar = k02 instanceof x ? (x) k02 : null;
return xVar == null ? C0(eVar2) : xVar;
}
public static p1 C1(List list, l1 l1Var, vc.k kVar, List list2, boolean[] zArr) {
p1 p1Var;
e0 k8;
if (l1Var == null) {
k(6);
throw null;
} else if (kVar == null) {
k(7);
throw null;
} else if (list2 == null) {
k(8);
throw null;
} else {
HashMap hashMap = new HashMap();
HashMap hashMap2 = new HashMap();
Iterator it = list.iterator();
int i10 = 0;
while (it.hasNext()) {
x0 x0Var = (x0) it.next();
u0 I0 = u0.I0(kVar, x0Var.getAnnotations(), x0Var.t(), x0Var.i(), x0Var.getName(), i10, x0Var.I());
hashMap.put(x0Var.g(), new k1(I0.l()));
hashMap2.put(x0Var, I0);
list2.add(I0);
i10++;
}
e1.a aVar = e1.f27914b;
le.d1 d1Var = new le.d1(hashMap, false);
p1 f10 = p1.f(l1Var, d1Var);
p1 f11 = p1.f(new m1(l1Var), d1Var);
Iterator it2 = list.iterator();
while (it2.hasNext()) {
x0 x0Var2 = (x0) it2.next();
u0 u0Var = (u0) hashMap2.get(x0Var2);
for (e0 e0Var : x0Var2.getUpperBounds()) {
vc.h k10 = e0Var.H0().k();
if (k10 instanceof x0) {
x0 typeParameter = (x0) k10;
kotlin.jvm.internal.k.e(typeParameter, "typeParameter");
if (a.b.M(typeParameter, null, null)) {
p1Var = f10;
k8 = p1Var.k(e0Var, u1.f27994f);
if (k8 != null) {
return null;
}
if (k8 != e0Var && zArr != null) {
zArr[0] = true;
}
u0Var.H0();
if (!a.b.P(k8)) {
u0Var.f37108m.add(k8);
}
}
}
p1Var = f11;
k8 = p1Var.k(e0Var, u1.f27994f);
if (k8 != null) {
}
}
u0Var.H0();
u0Var.f37109n = true;
}
return f10;
}
}
public static void D(l lVar) {
if (!(n8.i.NATIVE == lVar.f28693b.f28657a)) {
throw new IllegalStateException("Impression event is not expected from the Native AdSession");
}
}
public static final int D0(int i10, int i11, int i12) {
if (i12 > 0) {
if (i10 >= i11) {
return i11;
}
int i13 = i11 % i12;
if (i13 < 0) {
i13 += i12;
}
int i14 = i10 % i12;
if (i14 < 0) {
i14 += i12;
}
int i15 = (i13 - i14) % i12;
if (i15 < 0) {
i15 += i12;
}
return i11 - i15;
} else if (i12 < 0) {
if (i10 <= i11) {
return i11;
}
int i16 = -i12;
int i17 = i10 % i16;
if (i17 < 0) {
i17 += i16;
}
int i18 = i11 % i16;
if (i18 < 0) {
i18 += i16;
}
int i19 = (i17 - i18) % i16;
if (i19 < 0) {
i19 += i16;
}
return i11 + i19;
} else {
throw new IllegalArgumentException("Step is zero.");
}
}
public static final Integer D1(int i10) {
Integer valueOf = Integer.valueOf(i10);
valueOf.intValue();
if (i10 != Integer.MIN_VALUE) {
return valueOf;
}
return null;
}
public static final void E(gc.l lVar, Object obj, wb.f fVar) {
sb.i F = F(lVar, obj, null);
if (F != null) {
b0.a(fVar, F);
}
}
public static ArrayList E0() {
Integer status;
ArrayList arrayList = new ArrayList();
try {
String f10 = o7.a.f("pref_promote_list_config", "");
if (!TextUtils.isEmpty(f10)) {
List parseArray = JSON.parseArray(f10, PromotionBean.class);
kotlin.jvm.internal.k.b(parseArray);
ArrayList arrayList2 = new ArrayList();
Iterator it = parseArray.iterator();
while (it.hasNext()) {
Object next = it.next();
PromotionBean promotionBean = (PromotionBean) next;
boolean z6 = false;
if (!r7.a.h(promotionBean.getPackageName()) && (status = promotionBean.getStatus()) != null && status.intValue() == 1) {
String id2 = promotionBean.getId();
kotlin.jvm.internal.k.d(id2, "getId(...)");
int intValue = promotionBean.getShowsPreday().intValue() * 5;
sb.n nVar = o7.a.f29132a;
int c10 = o7.a.c("prefix_ads_show_count_".concat(id2), 0);
long d10 = o7.a.d("prefix_ads_show_ms_".concat(id2), 0L);
if (d10 > 0 && r7.l.b(3600000, d10) >= 24) {
c10 = 0;
}
if (c10 < intValue) {
z6 = true;
}
}
}
q.b2(arrayList, arrayList2);
}
} catch (Exception e10) {
e10.printStackTrace();
}
return arrayList;
}
public static final void E1() {
throw new ArithmeticException("Count overflow has happened.");
}
public static final sb.i F(gc.l lVar, Object obj, sb.i iVar) {
try {
lVar.invoke(obj);
} catch (Throwable th) {
if (iVar == null || iVar.getCause() == th) {
return new sb.i(android.support.v4.media.b.k("Exception in undelivered element handler for ", obj), th);
}
z.j(iVar, th);
}
return iVar;
}
public static final void F0(wb.f fVar, Throwable th) {
Throwable runtimeException;
for (a0 a0Var : df.e.f21910a) {
try {
a0Var.handleException(fVar, th);
} catch (Throwable th2) {
if (th == th2) {
runtimeException = th;
} else {
runtimeException = new RuntimeException("Exception while trying to handle coroutine exception", th2);
z.j(runtimeException, th);
}
Thread currentThread = Thread.currentThread();
currentThread.getUncaughtExceptionHandler().uncaughtException(currentThread, runtimeException);
}
}
try {
z.j(th, new df.f(fVar));
} catch (Throwable unused) {
}
Thread currentThread2 = Thread.currentThread();
currentThread2.getUncaughtExceptionHandler().uncaughtException(currentThread2, th);
}
public static final void F1() {
throw new ArithmeticException("Index overflow has happened.");
}
public static final void G(wb.f fVar, CancellationException cancellationException) {
int i10 = h1.f37241x1;
h1 h1Var = (h1) fVar.get(h1.b.f37242b);
if (h1Var != null) {
h1Var.a(cancellationException);
}
}
public static boolean G0(vc.b callableMemberDescriptor) {
kotlin.jvm.internal.k.e(callableMemberDescriptor, "callableMemberDescriptor");
if (ed.j.f22261d.contains(callableMemberDescriptor.getName())) {
if (u.i2(ed.j.f22260c, be.b.c(callableMemberDescriptor)) && callableMemberDescriptor.f().isEmpty()) {
return true;
}
if (sc.k.A(callableMemberDescriptor)) {
Collection<? extends vc.b> d10 = callableMemberDescriptor.d();
kotlin.jvm.internal.k.d(d10, "getOverriddenDescriptors(...)");
Collection<? extends vc.b> collection = d10;
if (collection.isEmpty()) {
return false;
}
for (vc.b bVar : collection) {
kotlin.jvm.internal.k.b(bVar);
if (G0(bVar)) {
return true;
}
}
return false;
}
return false;
}
return false;
}
public static jd.a G1(q1 q1Var, boolean z6, boolean z9, yc.l lVar, int i10) {
boolean z10 = (i10 & 1) != 0 ? false : z6;
boolean z11 = (i10 & 2) != 0 ? false : z9;
if ((i10 & 4) != 0) {
lVar = null;
}
return new jd.a(q1Var, z11, z10, lVar != null ? a.b.j0(lVar) : null, 34);
}
public static void H(boolean z6, String str) {
if (!z6) {
throw new IllegalArgumentException(str);
}
}
public static void H0(String str, String str2) {
c6.a.r().getClass();
if (o7.a.a("key_show_debug_log_2319")) {
if (c6.a.r().f4675e) {
U1("[AD][VPN]" + str + " " + str2);
return;
}
U1("[AD]" + str + " " + str2);
}
}
public static final Class H1(e0 e0Var) {
Class I1 = I1(e0Var.H0().k());
if (I1 == null) {
return null;
}
if (r1.g(e0Var)) {
m0 h10 = xd.k.h(e0Var);
if (h10 == null || r1.g(h10) || sc.k.H(h10)) {
return null;
}
return I1;
}
return I1;
}
public static void I(int i10) {
if (i10 < 0) {
throw new IllegalArgumentException();
}
}
public static LinkedHashSet I0(String internalName, String... signatures) {
kotlin.jvm.internal.k.e(internalName, "internalName");
kotlin.jvm.internal.k.e(signatures, "signatures");
LinkedHashSet linkedHashSet = new LinkedHashSet();
for (String str : signatures) {
linkedHashSet.add(internalName + '.' + str);
}
return linkedHashSet;
}
public static final Class I1(vc.k kVar) {
if ((kVar instanceof vc.e) && xd.k.b(kVar)) {
vc.e eVar = (vc.e) kVar;
Class<?> k8 = w0.k(eVar);
if (k8 != null) {
return k8;
}
throw new fc.a("Class object for the class " + eVar.getName() + " cannot be found (classId=" + be.b.f((vc.h) kVar) + ')', 1);
}
return null;
}
public static void J(Object obj, String str) {
if (obj == null) {
throw new NullPointerException(str);
}
}
public static LinkedHashSet J0(String str, String... signatures) {
kotlin.jvm.internal.k.e(signatures, "signatures");
return I0("java/lang/".concat(str), (String[]) Arrays.copyOf(signatures, signatures.length));
}
public static JSONObject J1(ServerBean serverBean) {
JSONObject jSONObject = new JSONObject();
if (serverBean != null) {
try {
jSONObject.putOpt(PlayerMetaData.KEY_SERVER_ID, Integer.valueOf(serverBean.f8264b));
jSONObject.putOpt("nut_port", Integer.valueOf(serverBean.J));
jSONObject.putOpt("proxy_port", Integer.valueOf(serverBean.K));
jSONObject.putOpt("open_tcp_port", Integer.valueOf(serverBean.L));
jSONObject.putOpt("open_udp_port", Integer.valueOf(serverBean.N));
jSONObject.putOpt("v2ray_port", Integer.valueOf(serverBean.P));
jSONObject.putOpt("nat_port", Integer.valueOf(serverBean.I));
jSONObject.putOpt("country", serverBean.f8266d);
jSONObject.putOpt("country_name", serverBean.d());
jSONObject.putOpt("alisa_name", serverBean.f8268f);
jSONObject.putOpt("load", Integer.valueOf(serverBean.f8265c));
jSONObject.putOpt("host", serverBean.f8269g);
jSONObject.putOpt("ori_host", serverBean.f8270h);
jSONObject.putOpt("seeds", !TextUtils.isEmpty(serverBean.f8271i) ? serverBean.f8271i : serverBean.f8269g);
jSONObject.putOpt("srate", Double.valueOf(serverBean.f8272j));
jSONObject.putOpt("enpass", serverBean.B);
jSONObject.putOpt("username", serverBean.C);
jSONObject.putOpt("remoteid", serverBean.D);
jSONObject.putOpt("conn_num_byip", Integer.valueOf(serverBean.f8273k));
jSONObject.putOpt("ca", serverBean.f8274l);
jSONObject.putOpt("envmess", serverBean.f8275m);
jSONObject.putOpt("direct_envmess", serverBean.f8276n);
jSONObject.putOpt("direct_envmess_http", serverBean.f8277o);
jSONObject.putOpt("direct_entrojan", serverBean.f8279q);
jSONObject.putOpt("direct_v2ray", serverBean.f8280r);
jSONObject.putOpt("direct_v2ray_insecure", serverBean.f8281s);
jSONObject.putOpt("direct_ss", serverBean.f8278p);
jSONObject.putOpt("envless", serverBean.f8282t);
jSONObject.putOpt("info", serverBean.H);
} catch (Exception e10) {
e10.printStackTrace();
}
}
return jSONObject;
}
public static void K(String str, float f10) {
if (f10 < 0.0f) {
throw new IllegalArgumentException(String.format(Locale.ENGLISH, "%s %d must be positive", str, Float.valueOf(f10)));
}
}
public static LinkedHashSet K0(String str, String... strArr) {
return I0("java/util/".concat(str), (String[]) Arrays.copyOf(strArr, strArr.length));
}
public static String K1(List list) {
JSONArray jSONArray = new JSONArray();
if (list != null && !list.isEmpty()) {
Iterator it = list.iterator();
while (it.hasNext()) {
jSONArray.put((Integer) it.next());
}
}
return jSONArray.toString();
}
public static final void L(Closeable closeable, Throwable th) {
if (closeable != null) {
if (th == null) {
closeable.close();
return;
}
try {
closeable.close();
} catch (Throwable th2) {
z.j(th, th2);
}
}
}
public static int L0(byte[] bArr, int i10, int i11) {
byte b6 = bArr[i10 - 1];
int i12 = i11 - i10;
if (i12 == 0) {
if (b6 > -12) {
return -1;
}
return b6;
} else if (i12 == 1) {
byte b10 = bArr[i10];
if (b6 > -12 || b10 > -65) {
return -1;
}
return b6 ^ (b10 << 8);
} else if (i12 == 2) {
byte b11 = bArr[i10];
byte b12 = bArr[i10 + 1];
if (b6 > -12 || b11 > -65 || b12 > -65) {
return -1;
}
return ((b11 << 8) ^ b6) ^ (b12 << Ascii.DLE);
} else {
throw new AssertionError();
}
}
public static String L1(List list) {
JSONArray jSONArray = new JSONArray();
if (list != null) {
try {
Iterator it = list.iterator();
while (it.hasNext()) {
jSONArray.put(J1((ServerBean) it.next()));
}
} catch (Exception e10) {
e10.printStackTrace();
}
}
return jSONArray.toString();
}
public static void M(Closeable... closeableArr) {
for (Closeable closeable : closeableArr) {
if (closeable != null) {
try {
closeable.close();
} catch (IOException unused) {
}
}
}
}
public static final t1 M0(t1 t1Var, e0 origin) {
kotlin.jvm.internal.k.e(t1Var, "<this>");
kotlin.jvm.internal.k.e(origin, "origin");
return S1(t1Var, q0(origin));
}
public static String M1(List list) {
JSONArray jSONArray = new JSONArray();
if (list != null && !list.isEmpty()) {
Iterator it = list.iterator();
while (it.hasNext()) {
jSONArray.put((String) it.next());
}
}
return jSONArray.toString();
}
public static final Object N(Object obj, vc.b bVar) {
e0 r02;
Class H1;
return (((bVar instanceof vc.m0) && xd.k.d((c1) bVar)) || (r02 = r0(bVar)) == null || (H1 = H1(r02)) == null) ? obj : t0(H1, bVar).invoke(obj, new Object[0]);
}
public static final wb.d N0(wb.d dVar) {
wb.d<Object> intercepted;
kotlin.jvm.internal.k.e(dVar, "<this>");
yb.c cVar = dVar instanceof yb.c ? (yb.c) dVar : null;
return (cVar == null || (intercepted = cVar.intercepted()) == null) ? dVar : intercepted;
}
public static final Class N1(ClassLoader classLoader, String fqName) {
kotlin.jvm.internal.k.e(classLoader, "<this>");
kotlin.jvm.internal.k.e(fqName, "fqName");
try {
return Class.forName(fqName, false, classLoader);
} catch (ClassNotFoundException unused) {
return null;
}
}
public static final void O(g0 g0Var, ud.c fqName, ArrayList arrayList) {
kotlin.jvm.internal.k.e(g0Var, "<this>");
kotlin.jvm.internal.k.e(fqName, "fqName");
if (g0Var instanceof i0) {
((i0) g0Var).b(fqName, arrayList);
} else {
arrayList.addAll(g0Var.c(fqName));
}
}
public static final t1 O0(ArrayList arrayList) {
m0 m0Var;
int size = arrayList.size();
if (size != 0) {
if (size != 1) {
ArrayList arrayList2 = new ArrayList(tb.o.V1(arrayList, 10));
Iterator it = arrayList.iterator();
boolean z6 = false;
boolean z9 = false;
while (it.hasNext()) {
t1 t1Var = (t1) it.next();
z6 = z6 || a.b.P(t1Var);
if (t1Var instanceof m0) {
m0Var = (m0) t1Var;
} else if (!(t1Var instanceof y)) {
throw new sb.i();
} else {
if (w.a(t1Var)) {
return t1Var;
}
m0Var = ((y) t1Var).f28006c;
z9 = true;
}
arrayList2.add(m0Var);
}
if (z6) {
return ne.k.c(ne.j.f28916y, arrayList.toString());
}
if (z9) {
ArrayList arrayList3 = new ArrayList(tb.o.V1(arrayList, 10));
Iterator it2 = arrayList.iterator();
while (it2.hasNext()) {
arrayList3.add(Q1((t1) it2.next()));
}
r rVar = r.f28432a;
return f0.c(rVar.b(arrayList2), rVar.b(arrayList3));
}
return r.f28432a.b(arrayList2);
}
return (t1) u.F2(arrayList);
}
throw new IllegalStateException("Expected some types".toString());
}
public static final void O1(af.u uVar, Object obj) {
Object q10 = uVar.q(obj);
if (q10 instanceof k.b) {
Object obj2 = ((af.k) y1(new m(uVar, obj, null))).f271a;
return;
}
sb.x xVar = (sb.x) q10;
sb.x xVar2 = sb.x.f31049a;
}
public static final List P(ArrayList arrayList) {
int size = arrayList.size();
if (size != 0) {
if (size != 1) {
arrayList.trimToSize();
return arrayList;
}
return Y0(u.o2(arrayList));
}
return tb.w.f34921b;
}
public static final boolean P0(g0 g0Var, ud.c fqName) {
kotlin.jvm.internal.k.e(g0Var, "<this>");
kotlin.jvm.internal.k.e(fqName, "fqName");
return g0Var instanceof i0 ? ((i0) g0Var).a(fqName) : f1(g0Var, fqName).isEmpty();
}
public static final boolean P1(String lower, String upper) {
kotlin.jvm.internal.k.e(lower, "lower");
kotlin.jvm.internal.k.e(upper, "upper");
if (!kotlin.jvm.internal.k.a(lower, we.m.X0(upper, "?", "", false)) && (!we.m.R0(upper, "?", false) || !kotlin.jvm.internal.k.a(lower.concat("?"), upper))) {
if (!kotlin.jvm.internal.k.a("(" + lower + ")?", upper)) {
return false;
}
}
return true;
}
public static final int Q(Comparable comparable, Comparable comparable2) {
if (comparable == comparable2) {
return 0;
}
if (comparable == null) {
return -1;
}
if (comparable2 == null) {
return 1;
}
return comparable.compareTo(comparable2);
}
public static boolean Q0(String str) {
a.b bVar = u1.r.f35178a;
Set<u1.j> unmodifiableSet = Collections.unmodifiableSet(u1.a.f35164c);
HashSet hashSet = new HashSet();
for (u1.j jVar : unmodifiableSet) {
if (jVar.a().equals(str)) {
hashSet.add(jVar);
}
}
if (hashSet.isEmpty()) {
throw new RuntimeException("Unknown feature ".concat(str));
}
Iterator it = hashSet.iterator();
while (it.hasNext()) {
if (((u1.j) it.next()).isSupported()) {
return true;
}
}
return false;
}
public static final m0 Q1(e0 e0Var) {
kotlin.jvm.internal.k.e(e0Var, "<this>");
t1 K0 = e0Var.K0();
if (K0 instanceof y) {
return ((y) K0).f28007d;
}
if (K0 instanceof m0) {
return (m0) K0;
}
throw new sb.i();
}
public static final wc.h R(wc.h first, wc.h second) {
kotlin.jvm.internal.k.e(first, "first");
kotlin.jvm.internal.k.e(second, "second");
return first.isEmpty() ? second : second.isEmpty() ? first : new wc.l(first, second);
}
public static final boolean R0(e0 e0Var) {
kotlin.jvm.internal.k.e(e0Var, "<this>");
return e0Var.K0() instanceof y;
}
public static final Object R1(wb.d dVar, wb.f fVar, p pVar) {
Object D0;
wb.f context = dVar.getContext();
boolean z6 = false;
wb.f plus = !((Boolean) fVar.fold(Boolean.FALSE, ye.y.f37313d)).booleanValue() ? context.plus(fVar) : ye.x.a(context, fVar, false);
c0(plus);
if (plus == context) {
df.s sVar = new df.s(dVar, plus);
D0 = z.x0(sVar, sVar, pVar);
} else {
e.a aVar = e.a.f36268b;
if (kotlin.jvm.internal.k.a(plus.get(aVar), context.get(aVar))) {
e2 e2Var = new e2(dVar, plus);
wb.f fVar2 = e2Var.f37181d;
Object c10 = df.w.c(fVar2, null);
try {
Object x02 = z.x0(e2Var, e2Var, pVar);
df.w.a(fVar2, c10);
D0 = x02;
} catch (Throwable th) {
df.w.a(fVar2, c10);
throw th;
}
} else {
o0 o0Var = new o0(dVar, plus);
try {
a.b.d0(N0(Y(o0Var, o0Var, pVar)), sb.x.f31049a, null);
while (true) {
AtomicIntegerFieldUpdater atomicIntegerFieldUpdater = o0.f37275f;
int i10 = atomicIntegerFieldUpdater.get(o0Var);
if (i10 == 0) {
if (atomicIntegerFieldUpdater.compareAndSet(o0Var, 0, 1)) {
z6 = true;
break;
}
} else if (i10 != 2) {
throw new IllegalStateException("Already suspended".toString());
}
}
if (z6) {
D0 = xb.a.f36594b;
} else {
D0 = ye.g0.D0(o0Var.W());
if (D0 instanceof ye.t) {
throw ((ye.t) D0).f37289a;
}
}
} catch (Throwable th2) {
o0Var.resumeWith(sb.l.a(th2));
throw th2;
}
}
}
xb.a aVar2 = xb.a.f36594b;
return D0;
}
public static final String S(vc.e klass, nd.a0 typeMappingConfiguration) {
kotlin.jvm.internal.k.e(klass, "klass");
kotlin.jvm.internal.k.e(typeMappingConfiguration, "typeMappingConfiguration");
typeMappingConfiguration.d(klass);
vc.k b6 = klass.b();
kotlin.jvm.internal.k.d(b6, "getContainingDeclaration(...)");
ud.f name = klass.getName();
if (name != null) {
ud.f fVar = ud.h.f35499a;
}
name = ud.h.f35501c;
String c10 = name.c();
kotlin.jvm.internal.k.d(c10, "getIdentifier(...)");
if (b6 instanceof vc.f0) {
ud.c e10 = ((vc.f0) b6).e();
if (e10.d()) {
return c10;
}
return we.m.Y0(e10.b(), '.', '/') + '/' + c10;
}
vc.e eVar = b6 instanceof vc.e ? (vc.e) b6 : null;
if (eVar == null) {
throw new IllegalArgumentException("Unexpected container: " + b6 + " for " + klass);
}
typeMappingConfiguration.j(eVar);
String S = S(eVar, typeMappingConfiguration);
return S + '$' + c10;
}
public static final boolean S0(vc.e eVar) {
LinkedHashSet linkedHashSet = sc.c.f31056a;
if (xd.i.l(eVar)) {
LinkedHashSet linkedHashSet2 = sc.c.f31056a;
ud.b f10 = be.b.f(eVar);
if (u.i2(linkedHashSet2, f10 != null ? f10.f() : null)) {
return true;
}
}
return false;
}
public static final t1 S1(t1 t1Var, e0 e0Var) {
kotlin.jvm.internal.k.e(t1Var, "<this>");
if (t1Var instanceof s1) {
return S1(((s1) t1Var).C0(), e0Var);
}
if (e0Var == null || kotlin.jvm.internal.k.a(e0Var, t1Var)) {
return t1Var;
}
if (t1Var instanceof m0) {
return new p0((m0) t1Var, e0Var);
}
if (t1Var instanceof y) {
return new le.a0((y) t1Var, e0Var);
}
throw new sb.i();
}
public static String[] T(String... strArr) {
ArrayList arrayList = new ArrayList(strArr.length);
for (String str : strArr) {
arrayList.add("<init>(" + str + ")V");
}
return (String[]) arrayList.toArray(new String[0]);
}
public static final boolean T0(e0 e0Var) {
vc.h k8 = e0Var.H0().k();
x0 x0Var = k8 instanceof x0 ? (x0) k8 : null;
return x0Var != null && t1(a.b.J(x0Var));
}
public static final Object T1(Object obj, wb.d dVar, p pVar) {
kotlin.jvm.internal.k.e(pVar, "<this>");
wb.f context = dVar.getContext();
yb.a eVar = context == wb.g.f36270b ? new xb.e(dVar) : new xb.f(dVar, context);
kotlin.jvm.internal.i0.d(2, pVar);
return pVar.invoke(obj, eVar);
}
public static final void U(Object[] objArr, StringBuilder sb2, ArrayList arrayList) {
if (arrayList.contains(objArr)) {
sb2.append("[...]");
return;
}
arrayList.add(objArr);
sb2.append('[');
int length = objArr.length;
for (int i10 = 0; i10 < length; i10++) {
if (i10 != 0) {
sb2.append(", ");
}
Object obj = objArr[i10];
if (obj == null) {
sb2.append("null");
} else if (obj instanceof Object[]) {
U((Object[]) obj, sb2, arrayList);
} else if (obj instanceof byte[]) {
String arrays = Arrays.toString((byte[]) obj);
kotlin.jvm.internal.k.d(arrays, "toString(...)");
sb2.append(arrays);
} else if (obj instanceof short[]) {
String arrays2 = Arrays.toString((short[]) obj);
kotlin.jvm.internal.k.d(arrays2, "toString(...)");
sb2.append(arrays2);
} else if (obj instanceof int[]) {
String arrays3 = Arrays.toString((int[]) obj);
kotlin.jvm.internal.k.d(arrays3, "toString(...)");
sb2.append(arrays3);
} else if (obj instanceof long[]) {
String arrays4 = Arrays.toString((long[]) obj);
kotlin.jvm.internal.k.d(arrays4, "toString(...)");
sb2.append(arrays4);
} else if (obj instanceof float[]) {
String arrays5 = Arrays.toString((float[]) obj);
kotlin.jvm.internal.k.d(arrays5, "toString(...)");
sb2.append(arrays5);
} else if (obj instanceof double[]) {
String arrays6 = Arrays.toString((double[]) obj);
kotlin.jvm.internal.k.d(arrays6, "toString(...)");
sb2.append(arrays6);
} else if (obj instanceof char[]) {
String arrays7 = Arrays.toString((char[]) obj);
kotlin.jvm.internal.k.d(arrays7, "toString(...)");
sb2.append(arrays7);
} else if (obj instanceof boolean[]) {
String arrays8 = Arrays.toString((boolean[]) obj);
kotlin.jvm.internal.k.d(arrays8, "toString(...)");
sb2.append(arrays8);
} else if (obj instanceof sb.q) {
byte[] bArr = ((sb.q) obj).f31034b;
sb2.append(bArr != null ? u.u2(new sb.q(bArr), ", ", "[", "]", null, 56) : "null");
} else if (obj instanceof sb.w) {
short[] sArr = ((sb.w) obj).f31046b;
sb2.append(sArr != null ? u.u2(new sb.w(sArr), ", ", "[", "]", null, 56) : "null");
} else if (obj instanceof sb.s) {
int[] iArr = ((sb.s) obj).f31038b;
sb2.append(iArr != null ? u.u2(new sb.s(iArr), ", ", "[", "]", null, 56) : "null");
} else if (obj instanceof sb.u) {
long[] jArr = ((sb.u) obj).f31042b;
sb2.append(jArr != null ? u.u2(new sb.u(jArr), ", ", "[", "]", null, 56) : "null");
} else {
sb2.append(obj.toString());
}
}
sb2.append(']');
arrayList.remove(x0(arrayList));
}
public static final kotlin.jvm.internal.b U0(Object[] array) {
kotlin.jvm.internal.k.e(array, "array");
return new kotlin.jvm.internal.b(array);
}
public static void U1(String str) {
File file = new File(r7.m.b().getFilesDir(), "ads_log.txt");
r7.f.e(file, r7.l.c(System.currentTimeMillis()) + " " + str + "\n", true);
}
public static final oe.q V(u1 u1Var) {
int ordinal = u1Var.ordinal();
if (ordinal != 0) {
if (ordinal != 1) {
if (ordinal == 2) {
return oe.q.f29243d;
}
throw new sb.i();
}
return oe.q.f29242c;
}
return oe.q.f29244e;
}
public static void V0(String str) {
c6.a.r().getClass();
if (o7.a.a("key_show_debug_log_2319")) {
if (c6.a.r().f4675e) {
U1("[AD][VPN][CONFIG] " + str);
return;
}
U1("[AD][CONFIG] " + str);
}
}
public static final void W(int i10, int i11) {
if (i10 > i11) {
throw new IndexOutOfBoundsException(android.support.v4.media.a.g("toIndex (", i10, ") is greater than size (", i11, ")."));
}
}
public static final td.e W0(he.m mVar) {
kotlin.jvm.internal.k.e(mVar, "<this>");
mVar.c();
return td.e.f34958g;
}
public static final ArrayList X(ArrayList arrayList, Collection oldValueParameters, vc.a newOwner) {
kotlin.jvm.internal.k.e(oldValueParameters, "oldValueParameters");
kotlin.jvm.internal.k.e(newOwner, "newOwner");
arrayList.size();
oldValueParameters.size();
ArrayList T2 = u.T2(arrayList, oldValueParameters);
ArrayList arrayList2 = new ArrayList(tb.o.V1(T2, 10));
Iterator it = T2.iterator();
while (it.hasNext()) {
sb.j jVar = (sb.j) it.next();
e0 e0Var = (e0) jVar.f31020b;
b1 b1Var = (b1) jVar.f31021c;
int index = b1Var.getIndex();
wc.h annotations = b1Var.getAnnotations();
ud.f name = b1Var.getName();
kotlin.jvm.internal.k.d(name, "getName(...)");
boolean w02 = b1Var.w0();
boolean o02 = b1Var.o0();
boolean n02 = b1Var.n0();
e0 g10 = b1Var.r0() != null ? be.b.j(newOwner).j().g(e0Var) : null;
s0 source = b1Var.getSource();
kotlin.jvm.internal.k.d(source, "getSource(...)");
arrayList2.add(new yc.w0(newOwner, null, index, annotations, name, e0Var, w02, o02, n02, g10, source));
}
return arrayList2;
}
public static w1 X0(ye.d0 d0Var, wb.a aVar, ye.f0 f0Var, p pVar, int i10) {
wb.f fVar = aVar;
if ((i10 & 1) != 0) {
fVar = wb.g.f36270b;
}
if ((i10 & 2) != 0) {
f0Var = ye.f0.f37209b;
}
wb.f b6 = ye.x.b(d0Var, fVar);
f0Var.getClass();
n1 n1Var = f0Var == ye.f0.f37210c ? new n1(b6, pVar) : new w1(b6, true);
n1Var.p0(f0Var, n1Var, pVar);
return n1Var;
}
public static final wb.d Y(Object obj, wb.d completion, p pVar) {
kotlin.jvm.internal.k.e(completion, "completion");
if (pVar instanceof yb.a) {
return ((yb.a) pVar).create(obj, completion);
}
wb.f context = completion.getContext();
return context == wb.g.f36270b ? new xb.c(obj, completion, pVar) : new xb.d(completion, context, pVar, obj);
}
public static final List Y0(Object obj) {
List singletonList = Collections.singletonList(obj);
kotlin.jvm.internal.k.d(singletonList, "singletonList(...)");
return singletonList;
}
public static final qc.f Z(qc.f fVar, v descriptor, boolean z6) {
boolean z9;
boolean z10;
boolean z11;
kotlin.jvm.internal.k.e(descriptor, "descriptor");
boolean z12 = true;
if (!xd.k.a(descriptor)) {
List<vc.p0> t02 = descriptor.t0();
kotlin.jvm.internal.k.d(t02, "getContextReceiverParameters(...)");
List<vc.p0> list = t02;
if (!(list instanceof Collection) || !list.isEmpty()) {
for (vc.p0 p0Var : list) {
e0 type = p0Var.getType();
kotlin.jvm.internal.k.d(type, "getType(...)");
if (xd.k.f(type)) {
z9 = true;
break;
}
}
}
z9 = false;
if (!z9) {
List<b1> f10 = descriptor.f();
kotlin.jvm.internal.k.d(f10, "getValueParameters(...)");
List<b1> list2 = f10;
if (!(list2 instanceof Collection) || !list2.isEmpty()) {
for (b1 b1Var : list2) {
e0 type2 = b1Var.getType();
kotlin.jvm.internal.k.d(type2, "getType(...)");
if (xd.k.f(type2)) {
z10 = true;
break;
}
}
}
z10 = false;
if (!z10) {
e0 returnType = descriptor.getReturnType();
if (returnType != null) {
vc.h k8 = returnType.H0().k();
if (k8 != null ? xd.k.b(k8) : false) {
z11 = true;
if (!z11) {
e0 r02 = r0(descriptor);
if (!(r02 != null && xd.k.f(r02))) {
z12 = false;
}
}
}
}
z11 = false;
if (!z11) {
}
}
}
}
return z12 ? new qc.j(fVar, descriptor, z6) : fVar;
}
public static final List Z0(Object... elements) {
kotlin.jvm.internal.k.e(elements, "elements");
return elements.length > 0 ? tb.j.V1(elements) : tb.w.f34921b;
}
public static AnimatorSet a0(float f10, float f11, View view) {
ObjectAnimator duration = ObjectAnimator.ofFloat(view, View.SCALE_X, 0.0f, 1.0f).setDuration(700L);
ObjectAnimator duration2 = ObjectAnimator.ofFloat(view, View.SCALE_Y, 0.0f, 1.0f).setDuration(700L);
float f12 = -f10;
ObjectAnimator duration3 = ObjectAnimator.ofFloat(view, View.TRANSLATION_X, 0.0f, f12).setDuration(700L);
float f13 = -f11;
ObjectAnimator duration4 = ObjectAnimator.ofFloat(view, View.TRANSLATION_Y, 0.0f, f13).setDuration(700L);
ObjectAnimator duration5 = ObjectAnimator.ofFloat(view, View.SCALE_X, 1.0f, 0.85f, 0.9f, 0.95f, 1.0f, 0.95f, 0.9f, 0.85f, 1.0f).setDuration(900L);
ObjectAnimator duration6 = ObjectAnimator.ofFloat(view, View.SCALE_Y, 1.0f, 0.85f, 0.9f, 0.95f, 1.0f, 0.95f, 0.9f, 0.85f, 1.0f).setDuration(900L);
ObjectAnimator duration7 = ObjectAnimator.ofFloat(view, View.ALPHA, 1.0f, 0.75f, 0.8f, 0.85f, 1.0f, 0.85f, 0.8f, 0.75f, 1.0f).setDuration(900L);
duration5.setStartDelay(700L);
duration6.setStartDelay(700L);
duration7.setStartDelay(700L);
ObjectAnimator duration8 = ObjectAnimator.ofFloat(view, View.SCALE_X, 1.0f, 0.0f).setDuration(700L);
ObjectAnimator duration9 = ObjectAnimator.ofFloat(view, View.SCALE_Y, 1.0f, 0.0f).setDuration(700L);
ObjectAnimator duration10 = ObjectAnimator.ofFloat(view, View.TRANSLATION_X, f12, 0.0f).setDuration(700L);
ObjectAnimator duration11 = ObjectAnimator.ofFloat(view, View.TRANSLATION_Y, f13, 0.0f).setDuration(700L);
duration8.setStartDelay(1600L);
duration9.setStartDelay(1600L);
duration10.setStartDelay(1600L);
duration11.setStartDelay(1600L);
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(duration, duration2, duration3, duration4, duration5, duration6, duration7, duration8, duration9, duration10, duration11);
return animatorSet;
}
public static final List a1(Object obj) {
return obj != null ? Y0(obj) : tb.w.f34921b;
}
public static final Object b0(bf.f fVar, af.q qVar, boolean z6, wb.d dVar) {
bf.h hVar;
int i10;
af.i it;
af.q qVar2;
af.i iVar;
bf.f fVar2;
Object a8;
try {
if (dVar instanceof bf.h) {
hVar = (bf.h) dVar;
int i11 = hVar.f4410g;
if ((i11 & Integer.MIN_VALUE) != 0) {
hVar.f4410g = i11 - Integer.MIN_VALUE;
Object obj = hVar.f4409f;
xb.a aVar = xb.a.f36594b;
i10 = hVar.f4410g;
if (i10 != 0) {
sb.l.b(obj);
if (fVar instanceof y0) {
throw ((y0) fVar).f4562b;
}
it = qVar.iterator();
qVar = qVar;
hVar.f4405b = fVar;
hVar.f4406c = qVar;
hVar.f4407d = it;
hVar.f4408e = z6;
hVar.f4410g = 1;
a8 = it.a(hVar);
if (a8 == aVar) {
}
} else if (i10 == 1) {
z6 = hVar.f4408e;
iVar = hVar.f4407d;
?? r82 = hVar.f4406c;
fVar2 = hVar.f4405b;
sb.l.b(obj);
qVar2 = r82;
if (((Boolean) obj).booleanValue()) {
}
} else if (i10 != 2) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
} else {
z6 = hVar.f4408e;
iVar = hVar.f4407d;
?? r83 = hVar.f4406c;
fVar2 = hVar.f4405b;
sb.l.b(obj);
af.q qVar3 = r83;
it = iVar;
fVar = fVar2;
qVar = qVar3;
hVar.f4405b = fVar;
hVar.f4406c = qVar;
hVar.f4407d = it;
hVar.f4408e = z6;
hVar.f4410g = 1;
a8 = it.a(hVar);
if (a8 == aVar) {
return aVar;
}
fVar2 = fVar;
iVar = it;
obj = a8;
qVar2 = qVar;
if (((Boolean) obj).booleanValue()) {
if (z6) {
qVar2.a(null);
}
return sb.x.f31049a;
}
Object next = iVar.next();
hVar.f4405b = fVar2;
hVar.f4406c = qVar2;
hVar.f4407d = iVar;
hVar.f4408e = z6;
hVar.f4410g = 2;
qVar3 = qVar2;
if (fVar2.emit(next, hVar) == aVar) {
return aVar;
}
it = iVar;
fVar = fVar2;
qVar = qVar3;
hVar.f4405b = fVar;
hVar.f4406c = qVar;
hVar.f4407d = it;
hVar.f4408e = z6;
hVar.f4410g = 1;
a8 = it.a(hVar);
if (a8 == aVar) {
}
}
}
}
if (i10 != 0) {
}
} catch (Throwable th) {
try {
throw th;
} catch (Throwable th2) {
if (z6) {
CancellationException cancellationException = th instanceof CancellationException ? th : null;
if (cancellationException == null) {
cancellationException = new CancellationException("Channel was consumed, consumer had failed");
cancellationException.initCause(th);
}
qVar.a(cancellationException);
}
throw th2;
}
}
hVar = new bf.h(dVar);
Object obj2 = hVar.f4409f;
xb.a aVar2 = xb.a.f36594b;
i10 = hVar.f4410g;
}
public static final m0 b1(e0 e0Var) {
kotlin.jvm.internal.k.e(e0Var, "<this>");
t1 K0 = e0Var.K0();
if (K0 instanceof y) {
return ((y) K0).f28006c;
}
if (K0 instanceof m0) {
return (m0) K0;
}
throw new sb.i();
}
public static final void c0(wb.f fVar) {
h1 h1Var = (h1) fVar.get(h1.b.f37242b);
if (h1Var != null && !h1Var.isActive()) {
throw h1Var.f();
}
}
public static final Object c1(e0 kotlinType, nd.b0 b0Var, gc.q writeGenericType) {
p.c cVar;
p.b b6;
e0 e0Var;
nd.b0 b0Var2;
Object c12;
int ordinal;
boolean z6;
boolean z9;
y g10;
nd.q qVar = nd.q.f28861a;
ye.g0 g0Var = ye.g0.f37221g;
kotlin.jvm.internal.k.e(kotlinType, "kotlinType");
kotlin.jvm.internal.k.e(writeGenericType, "writeGenericType");
if (sc.f.i(kotlinType)) {
yc.i0 i0Var = sc.p.f31140a;
sc.f.i(kotlinType);
sc.k B = a.b.B(kotlinType);
wc.h annotations = kotlinType.getAnnotations();
e0 f10 = sc.f.f(kotlinType);
List<e0> d10 = sc.f.d(kotlinType);
List<i1> g11 = sc.f.g(kotlinType);
ArrayList arrayList = new ArrayList(tb.o.V1(g11, 10));
for (i1 i1Var : g11) {
arrayList.add(i1Var.getType());
}
a1.f27879c.getClass();
a1 a1Var = a1.f27880d;
le.c1 g12 = sc.p.f31140a.g();
sc.f.h(kotlinType);
e0 type = ((i1) u.w2(kotlinType.F0())).getType();
kotlin.jvm.internal.k.d(type, "getType(...)");
ArrayList C2 = u.C2(arrayList, f0.f(a1Var, g12, Y0(a.b.i(type)), false, null));
m0 p10 = a.b.B(kotlinType).p();
kotlin.jvm.internal.k.d(p10, "getNullableAnyType(...)");
return c1(sc.f.b(B, annotations, f10, d10, C2, p10, false).L0(kotlinType.I0()), b0Var, writeGenericType);
}
m0 h10 = b.a.h(kotlinType);
if (h10 == null && ((g10 = b.a.g(kotlinType)) == null || (h10 = b.a.V(g10)) == null)) {
h10 = b.a.h(kotlinType);
kotlin.jvm.internal.k.b(h10);
}
le.c1 e02 = b.a.e0(h10);
if (b.a.F(e02)) {
sc.l s10 = b.a.s(e02);
if (s10 != null) {
p.c possiblyPrimitiveType = qVar.c(s10);
if (!b.a.O(kotlinType)) {
ud.c ENHANCED_NULLABILITY_ANNOTATION = ed.d0.f22220p;
kotlin.jvm.internal.k.d(ENHANCED_NULLABILITY_ANNOTATION, "ENHANCED_NULLABILITY_ANNOTATION");
if (!b.a.B(kotlinType, ENHANCED_NULLABILITY_ANNOTATION)) {
z9 = false;
kotlin.jvm.internal.k.e(possiblyPrimitiveType, "possiblyPrimitiveType");
cVar = possiblyPrimitiveType;
if (z9) {
ce.c cVar2 = possiblyPrimitiveType.f28860i;
cVar = possiblyPrimitiveType;
if (cVar2 != null) {
String e10 = ce.b.c(cVar2.g()).e();
kotlin.jvm.internal.k.d(e10, "getInternalName(...)");
cVar = new p.b(e10);
}
}
}
}
z9 = true;
kotlin.jvm.internal.k.e(possiblyPrimitiveType, "possiblyPrimitiveType");
cVar = possiblyPrimitiveType;
if (z9) {
}
} else {
sc.l r10 = b.a.r(e02);
if (r10 != null) {
StringBuilder sb2 = new StringBuilder("[");
ce.c cVar3 = (ce.c) ce.c.f4934p.get(r10);
if (cVar3 == null) {
ce.c.a(4);
throw null;
}
sb2.append(cVar3.c());
cVar = nd.q.a(sb2.toString());
} else if (b.a.U(e02)) {
ud.d o10 = b.a.o(e02);
String str = uc.c.f35403a;
ud.b g13 = uc.c.g(o10);
if (g13 != null) {
if (!b0Var.f28799g) {
List<c.a> list = uc.c.f35416n;
if (!(list instanceof Collection) || !list.isEmpty()) {
for (c.a aVar : list) {
if (kotlin.jvm.internal.k.a(aVar.f35417a, g13)) {
z6 = true;
break;
}
}
}
z6 = false;
}
String e11 = ce.b.b(g13).e();
kotlin.jvm.internal.k.d(e11, "getInternalName(...)");
cVar = qVar.b(e11);
}
}
}
if (cVar == null) {
p.b bVar = cVar;
if (b0Var.f28793a) {
boolean z10 = cVar instanceof p.c;
bVar = cVar;
if (z10) {
ce.c cVar4 = cVar.f28860i;
bVar = cVar;
if (cVar4 != null) {
String e12 = ce.b.c(cVar4.g()).e();
kotlin.jvm.internal.k.d(e12, "getInternalName(...)");
bVar = new p.b(e12);
}
}
}
writeGenericType.invoke(kotlinType, bVar, b0Var);
return bVar;
}
le.c1 H0 = kotlinType.H0();
if (H0 instanceof c0) {
c0 c0Var = (c0) H0;
e0 e0Var2 = c0Var.f27897a;
if (e0Var2 != null) {
return c1(a.b.Z(e0Var2), b0Var, writeGenericType);
}
g0Var.v(c0Var.f27898b);
throw null;
}
vc.h k8 = H0.k();
if (k8 == null) {
throw new UnsupportedOperationException("no descriptor for type constructor of " + kotlinType);
} else if (ne.k.f(k8)) {
vc.e eVar = (vc.e) k8;
return qVar.b("error/NonExistentClass");
} else {
boolean z11 = k8 instanceof vc.e;
boolean z12 = b0Var.f28795c;
if (z11 && sc.k.z(kotlinType)) {
if (kotlinType.F0().size() == 1) {
i1 i1Var2 = kotlinType.F0().get(0);
e0 type2 = i1Var2.getType();
kotlin.jvm.internal.k.d(type2, "getType(...)");
if (i1Var2.c() == u1.f27993e) {
c12 = qVar.b("java/lang/Object");
} else {
u1 c10 = i1Var2.c();
kotlin.jvm.internal.k.d(c10, "getProjectionKind(...)");
if (z12 || ((ordinal = c10.ordinal()) == 0 ? (b0Var2 = b0Var.f28801i) == null : !(ordinal == 1 ? (b0Var2 = b0Var.f28800h) != null : (b0Var2 = b0Var.f28798f) != null))) {
b0Var2 = b0Var;
}
c12 = c1(type2, b0Var2, writeGenericType);
}
return nd.q.a("[" + qVar.e(c12));
}
throw new UnsupportedOperationException("arrays must have one type argument");
} else if (!z11) {
if (k8 instanceof x0) {
e0 J = a.b.J((x0) k8);
if (kotlinType.I0()) {
J = a.b.S(J);
}
return c1(J, b0Var, te.b.f34970b);
} else if ((k8 instanceof vc.w0) && b0Var.f28802j) {
return c1(((vc.w0) k8).C(), b0Var, writeGenericType);
} else {
throw new UnsupportedOperationException("Unknown type " + kotlinType);
}
} else if (!xd.k.b(k8) || b0Var.f28794b || (e0Var = (e0) a.b.n(kotlinType, new HashSet())) == null) {
if (z12) {
ud.f fVar = sc.k.f31064e;
if (sc.k.c((vc.e) k8, o.a.P)) {
b6 = qVar.d();
writeGenericType.invoke(kotlinType, b6, b0Var);
return b6;
}
}
vc.e eVar2 = (vc.e) k8;
kotlin.jvm.internal.k.d(eVar2.a(), "getOriginal(...)");
if (eVar2.getKind() == vc.f.f35629e) {
vc.k b10 = eVar2.b();
kotlin.jvm.internal.k.c(b10, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
eVar2 = (vc.e) b10;
}
vc.e a8 = eVar2.a();
kotlin.jvm.internal.k.d(a8, "getOriginal(...)");
b6 = qVar.b(S(a8, g0Var));
writeGenericType.invoke(kotlinType, b6, b0Var);
return b6;
} else {
return c1(e0Var, new nd.b0(b0Var.f28793a, true, b0Var.f28795c, b0Var.f28796d, b0Var.f28797e, b0Var.f28798f, b0Var.f28799g, b0Var.f28800h, b0Var.f28801i, false, 512), writeGenericType);
}
}
}
cVar = null;
if (cVar == null) {
}
}
public static final zb.b d0(Enum[] entries) {
kotlin.jvm.internal.k.e(entries, "entries");
return new zb.b(entries);
}
public static final ArrayList d1(Object... elements) {
kotlin.jvm.internal.k.e(elements, "elements");
return elements.length == 0 ? new ArrayList() : new ArrayList(new tb.g(elements, true));
}
public static final bd.e e0(Annotation[] annotationArr, ud.c fqName) {
Annotation annotation;
kotlin.jvm.internal.k.e(annotationArr, "<this>");
kotlin.jvm.internal.k.e(fqName, "fqName");
int length = annotationArr.length;
int i10 = 0;
while (true) {
if (i10 >= length) {
annotation = null;
break;
}
annotation = annotationArr[i10];
if (kotlin.jvm.internal.k.a(bd.d.a(u0(h0(annotation))).b(), fqName)) {
break;
}
i10++;
}
if (annotation != null) {
return new bd.e(annotation);
}
return null;
}
public static final List e1(List list) {
int size = list.size();
return size != 0 ? size != 1 ? list : Y0(list.get(0)) : tb.w.f34921b;
}
public static final ye.z f0(Executor executor) {
ye.z zVar;
q0 q0Var = executor instanceof q0 ? (q0) executor : null;
return (q0Var == null || (zVar = q0Var.f37277b) == null) ? new ye.b1(executor) : zVar;
}
public static final ArrayList f1(g0 g0Var, ud.c fqName) {
kotlin.jvm.internal.k.e(g0Var, "<this>");
kotlin.jvm.internal.k.e(fqName, "fqName");
ArrayList arrayList = new ArrayList();
O(g0Var, fqName, arrayList);
return arrayList;
}
public static float g0(ValueAnimator valueAnimator) {
return valueAnimator.getInterpolator().getInterpolation(Math.min(((float) valueAnimator.getCurrentPlayTime()) / ((float) valueAnimator.getDuration()), 1.0f));
}
public static ArrayList g1(String str) {
ArrayList arrayList = new ArrayList();
try {
if (!TextUtils.isEmpty(str)) {
JSONArray jSONArray = new JSONArray(str);
for (int i10 = 0; i10 < jSONArray.length(); i10++) {
arrayList.add(Integer.valueOf(jSONArray.optInt(i10)));
}
}
} catch (Exception e10) {
e10.printStackTrace();
}
return arrayList;
}
public static final mc.d h0(Annotation annotation) {
kotlin.jvm.internal.k.e(annotation, "<this>");
Class<? extends Annotation> annotationType = annotation.annotationType();
kotlin.jvm.internal.k.d(annotationType, "annotationType(...)");
mc.d a8 = kotlin.jvm.internal.f0.a(annotationType);
kotlin.jvm.internal.k.c(a8, "null cannot be cast to non-null type kotlin.reflect.KClass<out T of kotlin.jvm.JvmClassMappingKt.<get-annotationClass>>");
return a8;
}
public static t7.a h1(String str) {
l.b bVar;
boolean z6;
zf.b bVar2 = new zf.b();
StringReader stringReader = new StringReader(str);
zf.f fVar = new zf.f(bVar2);
yf.f fVar2 = new yf.f("http://www.w3.org/1999/xhtml", "");
bVar2.f37731d = fVar2;
fVar2.f37333k = fVar;
bVar2.f37728a = fVar;
bVar2.f37735h = e5.a.f22105d;
zf.a aVar = new zf.a(stringReader, DecoderReuseEvaluation.DISCARD_REASON_AUDIO_BYPASS_POSSIBLE);
bVar2.f37729b = aVar;
zf.e eVar = fVar.f37620a;
boolean z9 = eVar.f37619b > 0;
if (z9 && aVar.f37546i == null) {
aVar.f37546i = new ArrayList<>(409);
aVar.z();
} else if (!z9) {
aVar.f37546i = null;
}
bVar2.f37734g = null;
bVar2.f37730c = new zf.m(bVar2.f37729b, eVar, false);
bVar2.f37732e = new ArrayList<>(32);
bVar2.f37736i = new HashMap();
bVar2.f37737j = new l.g(false, bVar2.f37729b);
bVar2.f37733f = "";
bVar2.f37554l = zf.c.f37566b;
bVar2.f37555m = null;
bVar2.f37556n = false;
bVar2.f37557o = null;
bVar2.f37558p = null;
bVar2.f37559q = new ArrayList<>();
bVar2.f37560r = new ArrayList<>();
bVar2.f37561s = new ArrayList();
bVar2.f37562t = new l.f();
bVar2.f37563u = true;
bVar2.f37564v = false;
zf.m mVar = bVar2.f37730c;
while (true) {
if (mVar.f37668e) {
StringBuilder sb2 = mVar.f37670g;
int length = sb2.length();
l.b bVar3 = mVar.f37675l;
if (length != 0) {
String sb3 = sb2.toString();
sb2.delete(0, sb2.length());
bVar3.f37637c = sb3;
mVar.f37669f = null;
bVar = bVar3;
} else {
String str2 = mVar.f37669f;
if (str2 != null) {
bVar3.f37637c = str2;
mVar.f37669f = null;
bVar = bVar3;
} else {
mVar.f37668e = false;
bVar = mVar.f37667d;
}
}
bVar2.f37734g = bVar;
bVar2.d(bVar);
if (bVar.f37636b == 6) {
break;
}
bVar.g();
} else {
mVar.f37666c.f(mVar, mVar.f37664a);
}
}
while (!bVar2.f37732e.isEmpty()) {
bVar2.c();
}
bVar2.f37729b.d();
bVar2.f37729b = null;
bVar2.f37730c = null;
bVar2.f37732e = null;
bVar2.f37736i = null;
final yf.f fVar3 = bVar2.f37731d;
fVar3.getClass();
wf.c.b(TtmlNode.TAG_SPAN);
final c.a aVar2 = new c.a(ye.g0.e0(TtmlNode.TAG_SPAN).trim());
Iterator<yf.h> it = ((ag.a) StreamSupport.stream(Spliterators.spliteratorUnknownSize(new yf.m(fVar3), (int) BaseQuickAdapter.HEADER_VIEW), false).filter(new Predicate(aVar2, fVar3) {
public final c f286a;
@Override
public final boolean test(Object obj) {
c cVar = this.f286a;
cVar.getClass();
return ((h) obj).f37345e.f37627c.equals(((c.a) cVar).f287a);
}
}).collect(Collectors.toCollection(new xf.a(1)))).iterator();
while (it.hasNext()) {
yf.h next = it.next();
next.getClass();
ArrayList arrayList = new ArrayList();
for (yf.l lVar : next.f37346f) {
if (lVar instanceof yf.o) {
arrayList.add((yf.o) lVar);
}
}
List unmodifiableList = Collections.unmodifiableList(arrayList);
if (unmodifiableList != null && !unmodifiableList.isEmpty()) {
String F = ((yf.o) unmodifiableList.get(0)).F();
if (TextUtils.isEmpty(F)) {
continue;
} else {
try {
try {
z6 = Base64.encodeToString(Base64.decode(F, 2), 2).equals(F);
} catch (Exception e10) {
e10.printStackTrace();
}
} catch (IllegalArgumentException unused) {
z6 = false;
}
if (z6) {
try {
return ye.g0.O(new String(Base64.decode(F, 2), StandardCharsets.UTF_8));
} catch (Exception e11) {
e11.printStackTrace();
}
} else {
continue;
}
}
}
}
return null;
}
public static final ArrayList i0(Annotation[] annotationArr) {
kotlin.jvm.internal.k.e(annotationArr, "<this>");
ArrayList arrayList = new ArrayList(annotationArr.length);
for (Annotation annotation : annotationArr) {
arrayList.add(new bd.e(annotation));
}
return arrayList;
}
public static HashMap i1(JSONObject jSONObject) {
HashMap hashMap = new HashMap();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
JSONObject optJSONObject = jSONObject.optJSONObject(next);
g6.b bVar = new g6.b();
try {
bVar.f22720a = optJSONObject.optInt("pg", 0);
bVar.f22721b = optJSONObject.optInt("ps", 0);
bVar.f22722c = optJSONObject.optString("am", TenjinConsts.AD_NETWORK_ADMOB);
bVar.f22723d = optJSONObject.optInt("cs", 0);
} catch (Exception e10) {
e10.printStackTrace();
}
hashMap.put(next, bVar);
}
return hashMap;
}
public static ArrayList j0(String str) {
String encode;
x7.a aVar;
ArrayList s02;
ArrayList o02;
ArrayList arrayList;
x7.a y02;
x7.a y03;
ArrayList arrayList2 = new ArrayList();
try {
encode = URLEncoder.encode(TlsPlusManager.e(r7.m.b(), s7.a.f()), StandardCharsets.UTF_8.name());
String d10 = s7.a.d();
String a8 = s7.a.a("https://raw.githubusercontent.com", d10, encode);
aVar = !TextUtils.isEmpty(a8) ? new x7.a(a8, "https://raw.githubusercontent.com", d10, true, 10L) : null;
s02 = s0();
o02 = o0(encode);
arrayList = new ArrayList();
try {
arrayList.addAll(p0(URLEncoder.encode(TlsPlusManager.e(r7.m.b(), s7.a.f()), StandardCharsets.UTF_8.name())));
} catch (Exception e10) {
e10.printStackTrace();
}
} catch (Exception e11) {
e11.printStackTrace();
}
if (!"RU".equals(str) && !"UA".equals(str) && !"IR".equals(str)) {
if ((!TextUtils.isEmpty(o7.a.e("last_success_ads_api_2319"))) && (y03 = y0(encode)) != null) {
arrayList2.add(y03);
}
if (aVar != null && !arrayList2.contains(aVar)) {
arrayList2.add(aVar);
}
Iterator it = o02.iterator();
while (it.hasNext()) {
x7.a aVar2 = (x7.a) it.next();
if (!arrayList2.contains(aVar2)) {
arrayList2.add(aVar2);
}
}
arrayList2.addAll(s02);
return arrayList2;
}
if ((!TextUtils.isEmpty(o7.a.e("last_success_ads_api_2319"))) && (y02 = y0(encode)) != null) {
arrayList2.add(y02);
}
if (aVar != null && !arrayList2.contains(aVar)) {
arrayList2.add(aVar);
}
Iterator it2 = arrayList.iterator();
while (it2.hasNext()) {
x7.a aVar3 = (x7.a) it2.next();
if (!arrayList2.contains(aVar3)) {
arrayList2.add(aVar3);
}
}
Iterator it3 = o02.iterator();
while (it3.hasNext()) {
x7.a aVar4 = (x7.a) it3.next();
if (!arrayList2.contains(aVar4)) {
arrayList2.add(aVar4);
}
}
arrayList2.addAll(s02);
return arrayList2;
}
public static HashMap j1(String str) {
try {
return k1(new JSONObject(str));
} catch (JSONException e10) {
StringBuilder u10 = a.a.u("js = ", str, " e = ");
u10.append(e10.getMessage());
ye.g0.H(u10.toString(), new Object[0]);
e10.printStackTrace();
return null;
}
}
public static void k(int i10) {
String str = i10 != 4 ? "Argument for @NotNull parameter '%s' of %s.%s must not be null" : "@NotNull method %s.%s must not return null";
Object[] objArr = new Object[i10 != 4 ? 3 : 2];
switch (i10) {
case 1:
case 6:
objArr[0] = "originalSubstitution";
break;
case 2:
case 7:
objArr[0] = "newContainingDeclaration";
break;
case 3:
case 8:
objArr[0] = "result";
break;
case 4:
objArr[0] = "kotlin/reflect/jvm/internal/impl/types/DescriptorSubstitutor";
break;
case 5:
default:
objArr[0] = "typeParameters";
break;
}
if (i10 != 4) {
objArr[1] = "kotlin/reflect/jvm/internal/impl/types/DescriptorSubstitutor";
} else {
objArr[1] = "substituteTypeParameters";
}
if (i10 != 4) {
objArr[2] = "substituteTypeParameters";
}
String format = String.format(str, objArr);
if (i10 == 4) {
throw new IllegalStateException(format);
}
}
public static String k0(String str) {
String str2;
InputStream open;
ByteArrayOutputStream byteArrayOutputStream;
try {
open = r7.m.b().getAssets().open(str);
byteArrayOutputStream = new ByteArrayOutputStream();
byte[] bArr = new byte[1024];
while (true) {
int read = open.read(bArr);
if (read == -1) {
break;
}
byteArrayOutputStream.write(bArr, 0, read);
}
str2 = new String(byteArrayOutputStream.toByteArray());
} catch (IOException e10) {
e = e10;
str2 = null;
}
try {
open.close();
byteArrayOutputStream.close();
} catch (IOException e11) {
e = e11;
e.printStackTrace();
return str2;
}
return str2;
}
public static HashMap k1(JSONObject jSONObject) {
HashMap hashMap = new HashMap();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
JSONObject optJSONObject = jSONObject.optJSONObject(next);
y6.b bVar = new y6.b();
try {
bVar.f36935a = optJSONObject.optInt("og", 0);
bVar.f36936b = optJSONObject.optInt(CmcdConfiguration.KEY_OBJECT_TYPE, 0);
} catch (Exception e10) {
e10.printStackTrace();
}
hashMap.put(next, bVar);
}
return hashMap;
}
public static String l(String str) {
StringBuffer stringBuffer = new StringBuffer();
int i10 = 0;
for (int i11 = 0; i11 < str.length(); i11++) {
char charAt = str.charAt(i11);
if (i10 > 0 && '\n' == stringBuffer.charAt(stringBuffer.length() - 1)) {
StringBuffer stringBuffer2 = new StringBuffer();
for (int i12 = 0; i12 < i10; i12++) {
stringBuffer2.append("\t");
}
stringBuffer.append(stringBuffer2.toString());
}
if (charAt != ',') {
if (charAt != '[') {
if (charAt != ']') {
if (charAt != '{') {
if (charAt != '}') {
stringBuffer.append(charAt);
}
}
}
stringBuffer.append("\n");
i10--;
StringBuffer stringBuffer3 = new StringBuffer();
for (int i13 = 0; i13 < i10; i13++) {
stringBuffer3.append("\t");
}
stringBuffer.append(stringBuffer3.toString());
stringBuffer.append(charAt);
}
stringBuffer.append(charAt + "\n");
i10++;
} else {
stringBuffer.append(charAt + "\n");
}
}
return stringBuffer.toString();
}
public static final ud.b l0(rd.c cVar, int i10) {
kotlin.jvm.internal.k.e(cVar, "<this>");
return ud.b.e(cVar.b(i10), cVar.a(i10));
}
public static int l1(byte[] bArr, int i10, int i11) {
while (i10 < i11 && bArr[i10] >= 0) {
i10++;
}
if (i10 >= i11) {
return 0;
}
while (i10 < i11) {
int i12 = i10 + 1;
byte b6 = bArr[i10];
if (b6 < 0) {
if (b6 < -32) {
if (i12 >= i11) {
return b6;
}
if (b6 >= -62) {
i10 = i12 + 1;
if (bArr[i12] > -65) {
}
}
return -1;
}
if (b6 < -16) {
if (i12 >= i11 - 1) {
return L0(bArr, i12, i11);
}
int i13 = i12 + 1;
byte b10 = bArr[i12];
if (b10 <= -65 && ((b6 != -32 || b10 >= -96) && (b6 != -19 || b10 < -96))) {
i10 = i13 + 1;
if (bArr[i13] > -65) {
}
}
} else if (i12 >= i11 - 2) {
return L0(bArr, i12, i11);
} else {
int i14 = i12 + 1;
byte b11 = bArr[i12];
if (b11 <= -65) {
if ((((b11 + 112) + (b6 << Ascii.FS)) >> 30) == 0) {
int i15 = i14 + 1;
if (bArr[i14] <= -65) {
i12 = i15 + 1;
if (bArr[i15] > -65) {
}
}
}
}
}
return -1;
}
i10 = i12;
}
return 0;
}
public static x1 m() {
return new x1(null);
}
public static ArrayList m0(ArrayList arrayList, List list) {
ArrayList arrayList2 = new ArrayList();
if (!list.isEmpty()) {
Iterator it = list.iterator();
while (it.hasNext()) {
ServerBean serverBean = (ServerBean) it.next();
Iterator it2 = arrayList.iterator();
while (it2.hasNext()) {
arrayList2.add(new v6.a((String) it2.next(), serverBean));
}
}
}
return arrayList2;
}
public static n0.c m1(String name, m0.a aVar) {
df.d a8 = ye.e0.a(r0.f37280b.plus(m()));
kotlin.jvm.internal.k.e(name, "name");
n0.a produceMigrations = n0.a.f28537d;
kotlin.jvm.internal.k.e(produceMigrations, "produceMigrations");
return new n0.c(name, aVar, produceMigrations, a8);
}
public static void n(Context context) {
be.a aVar = f214h;
Context applicationContext = context.getApplicationContext();
o(applicationContext, "Application Context cannot be null");
if (aVar.f4350b) {
return;
}
aVar.f4350b = true;
p8.f a8 = p8.f.a();
a8.f29449b = new m8.b(new Handler(), applicationContext, a8);
p8.b.f29433f.f29434a = applicationContext.getApplicationContext();
WindowManager windowManager = r8.a.f30648a;
r8.a.f30650c = applicationContext.getResources().getDisplayMetrics().density;
r8.a.f30648a = (WindowManager) applicationContext.getSystemService("window");
p8.d.f29443b.f29444a = applicationContext.getApplicationContext();
}
public static SharedPreferences n0(Context context) {
return context.getSharedPreferences(context.getPackageName() + "_preferences", 4);
}
public static List n1(int i10) {
return i10 == 0 ? Collections.emptyList() : new ArrayList(i10);
}
public static void o(Object obj, String str) {
if (obj == null) {
throw new IllegalArgumentException(str);
}
}
public static ArrayList o0(String str) {
ArrayList arrayList = new ArrayList();
ArrayList c10 = s7.a.c();
ArrayList e10 = s7.a.e();
Iterator it = c10.iterator();
while (it.hasNext()) {
String str2 = (String) it.next();
Iterator it2 = e10.iterator();
while (it2.hasNext()) {
String str3 = (String) it2.next();
arrayList.add(new x7.a(s7.a.a(str2, str3, str), str2, str3, true, 10L));
}
}
return arrayList;
}
public static ud.f o1(ud.f fVar, String str, String str2, int i10) {
Object obj;
boolean z6 = false;
boolean z9 = (i10 & 4) != 0;
if ((i10 & 8) != 0) {
str2 = null;
}
if (!fVar.f35496c) {
String c10 = fVar.c();
kotlin.jvm.internal.k.d(c10, "getIdentifier(...)");
if (we.m.b1(c10, str, false) && c10.length() != str.length()) {
char charAt = c10.charAt(str.length());
if (!('a' <= charAt && charAt < '{')) {
if (str2 != null) {
return ud.f.g(str2.concat(we.q.t1(c10, str)));
}
if (!z9) {
return fVar;
}
String t12 = we.q.t1(c10, str);
if (!(t12.length() == 0) && z.d0(t12, 0)) {
if (t12.length() == 1 || !z.d0(t12, 1)) {
if (!(t12.length() == 0)) {
char charAt2 = t12.charAt(0);
if ('A' <= charAt2 && charAt2 < '[') {
z6 = true;
}
if (z6) {
char lowerCase = Character.toLowerCase(charAt2);
String substring = t12.substring(1);
kotlin.jvm.internal.k.d(substring, "substring(...)");
t12 = lowerCase + substring;
}
}
} else {
lc.h it = new lc.i(0, t12.length() - 1).iterator();
while (true) {
if (!it.f27863d) {
obj = null;
break;
}
obj = it.next();
if (!z.d0(t12, ((Number) obj).intValue())) {
break;
}
}
Integer num = (Integer) obj;
if (num != null) {
int intValue = num.intValue() - 1;
String substring2 = t12.substring(0, intValue);
kotlin.jvm.internal.k.d(substring2, "substring(...)");
String I0 = z.I0(substring2);
String substring3 = t12.substring(intValue);
kotlin.jvm.internal.k.d(substring3, "substring(...)");
t12 = I0.concat(substring3);
} else {
t12 = z.I0(t12);
}
}
}
if (ud.f.h(t12)) {
return ud.f.g(t12);
}
}
}
}
return null;
}
public static void p(String str, String str2) {
if (TextUtils.isEmpty(str)) {
throw new IllegalArgumentException(str2);
}
}
public static ArrayList p0(String str) {
ArrayList arrayList = new ArrayList();
ArrayList h10 = s7.a.h();
ArrayList e10 = s7.a.e();
Iterator it = h10.iterator();
while (it.hasNext()) {
String str2 = (String) it.next();
Iterator it2 = e10.iterator();
while (it2.hasNext()) {
String str3 = (String) it2.next();
arrayList.add(new x7.a(s7.a.a(str2, str3, str), str2, str3, true, 10L));
}
}
return arrayList;
}
public static final Object p1(Object obj) {
return obj instanceof ye.t ? sb.l.a(((ye.t) obj).f37289a) : obj;
}
public static void q(n8.l lVar) {
if (lVar.f28698g) {
throw new IllegalStateException("AdSession is finished");
}
}
public static final e0 q0(e0 e0Var) {
kotlin.jvm.internal.k.e(e0Var, "<this>");
if (e0Var instanceof s1) {
return ((s1) e0Var).e0();
}
return null;
}
public static final String q1(ud.f fVar) {
boolean z6;
kotlin.jvm.internal.k.e(fVar, "<this>");
String b6 = fVar.b();
kotlin.jvm.internal.k.d(b6, "asString(...)");
boolean z9 = true;
if (!wd.n.f36413a.contains(b6)) {
int i10 = 0;
while (true) {
if (i10 >= b6.length()) {
z6 = false;
break;
}
char charAt = b6.charAt(i10);
if ((Character.isLetterOrDigit(charAt) || charAt == '_') ? false : true) {
z6 = true;
break;
}
i10++;
}
if (!z6) {
if (!(b6.length() == 0) && Character.isJavaIdentifierStart(b6.codePointAt(0))) {
z9 = false;
}
}
}
if (!z9) {
String b10 = fVar.b();
kotlin.jvm.internal.k.d(b10, "asString(...)");
return b10;
}
StringBuilder sb2 = new StringBuilder();
String b11 = fVar.b();
kotlin.jvm.internal.k.d(b11, "asString(...)");
sb2.append("`".concat(b11));
sb2.append('`');
return sb2.toString();
}
public static final ud.c r(ud.d dVar, String str) {
ud.c h10 = dVar.b(ud.f.g(str)).h();
kotlin.jvm.internal.k.d(h10, "toSafe(...)");
return h10;
}
public static final e0 r0(vc.b bVar) {
vc.p0 K = bVar.K();
vc.p0 H = bVar.H();
if (K != null) {
return K.getType();
}
if (H != null) {
if (bVar instanceof vc.j) {
return H.getType();
}
vc.k b6 = bVar.b();
vc.e eVar = b6 instanceof vc.e ? (vc.e) b6 : null;
if (eVar != null) {
return eVar.l();
}
}
return null;
}
public static final String r1(List list) {
StringBuilder sb2 = new StringBuilder();
Iterator it = list.iterator();
while (it.hasNext()) {
ud.f fVar = (ud.f) it.next();
if (sb2.length() > 0) {
sb2.append(".");
}
sb2.append(q1(fVar));
}
String sb3 = sb2.toString();
kotlin.jvm.internal.k.d(sb3, "toString(...)");
return sb3;
}
public static final void s(AbstractCollection abstractCollection, Object obj) {
if (obj != null) {
abstractCollection.add(obj);
}
}
public static ArrayList s0() {
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
ArrayList e10 = n7.e.e();
if (!e10.isEmpty() && e10.size() > 1) {
Iterator it = e10.subList(1, e10.size()).iterator();
while (it.hasNext()) {
arrayList2.add("https://raw.githubusercontent.com/" + ((String) it.next()) + "/main/ads/super4_v3.conf");
}
}
String d10 = s7.a.d();
Iterator it2 = arrayList2.iterator();
while (it2.hasNext()) {
arrayList.add(new x7.a((String) it2.next(), "https://raw.githubusercontent.com", d10, false, 10L));
}
return arrayList;
}
public static final String s1(String lowerRendered, String lowerPrefix, String upperRendered, String upperPrefix, String foldedPrefix) {
kotlin.jvm.internal.k.e(lowerRendered, "lowerRendered");
kotlin.jvm.internal.k.e(lowerPrefix, "lowerPrefix");
kotlin.jvm.internal.k.e(upperRendered, "upperRendered");
kotlin.jvm.internal.k.e(upperPrefix, "upperPrefix");
kotlin.jvm.internal.k.e(foldedPrefix, "foldedPrefix");
if (we.m.b1(lowerRendered, lowerPrefix, false) && we.m.b1(upperRendered, upperPrefix, false)) {
String substring = lowerRendered.substring(lowerPrefix.length());
kotlin.jvm.internal.k.d(substring, "substring(...)");
String substring2 = upperRendered.substring(upperPrefix.length());
kotlin.jvm.internal.k.d(substring2, "substring(...)");
String concat = foldedPrefix.concat(substring);
if (kotlin.jvm.internal.k.a(substring, substring2)) {
return concat;
}
if (P1(substring, substring2)) {
return concat + '!';
}
return null;
}
return null;
}
public static final ArrayList t(Object... objArr) {
return objArr.length == 0 ? new ArrayList() : new ArrayList(new tb.g(objArr, true));
}
public static final Method t0(Class cls, vc.b descriptor) {
kotlin.jvm.internal.k.e(descriptor, "descriptor");
try {
Method declaredMethod = cls.getDeclaredMethod("unbox-impl", new Class[0]);
kotlin.jvm.internal.k.b(declaredMethod);
return declaredMethod;
} catch (NoSuchMethodException unused) {
throw new fc.a("No unbox method found in inline class: " + cls + " (calling " + descriptor + ')', 1);
}
}
public static final boolean t1(e0 e0Var) {
boolean z6;
boolean z9;
vc.h k8 = e0Var.H0().k();
if (k8 != null) {
if (xd.k.b(k8)) {
}
if (!xd.k.g(e0Var)) {
z9 = false;
if (z9) {
z6 = true;
return !z6 || T0(e0Var);
}
}
z9 = true;
if (z9) {
}
}
z6 = false;
if (z6) {
}
}
public static final Object[] u(int i10) {
if (i10 >= 0) {
return new Object[i10];
}
throw new IllegalArgumentException("capacity must be non-negative.".toString());
}
public static final Class u0(mc.d dVar) {
kotlin.jvm.internal.k.e(dVar, "<this>");
Class<?> h10 = ((kotlin.jvm.internal.d) dVar).h();
kotlin.jvm.internal.k.c(h10, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-java>>");
return h10;
}
public static final void u1(int i10, int i11, Object[] objArr) {
kotlin.jvm.internal.k.e(objArr, "<this>");
while (i10 < i11) {
objArr[i10] = null;
i10++;
}
}
public static final Executor v(ye.z zVar) {
Executor A;
ye.a1 a1Var = zVar instanceof ye.a1 ? (ye.a1) zVar : null;
return (a1Var == null || (A = a1Var.A()) == null) ? new q0(zVar) : A;
}
public static final Class v0(mc.d dVar) {
kotlin.jvm.internal.k.e(dVar, "<this>");
Class<?> h10 = ((kotlin.jvm.internal.d) dVar).h();
if (h10.isPrimitive()) {
String name = h10.getName();
switch (name.hashCode()) {
case -1325958191:
return !name.equals("double") ? h10 : Double.class;
case 104431:
return !name.equals("int") ? h10 : Integer.class;
case 3039496:
return !name.equals("byte") ? h10 : Byte.class;
case 3052374:
return !name.equals("char") ? h10 : Character.class;
case 3327612:
return !name.equals("long") ? h10 : Long.class;
case 3625364:
return !name.equals("void") ? h10 : Void.class;
case 64711720:
return !name.equals("boolean") ? h10 : Boolean.class;
case 97526364:
return !name.equals("float") ? h10 : Float.class;
case 109413500:
return !name.equals("short") ? h10 : Short.class;
default:
return h10;
}
}
return h10;
}
public static final int v1(double d10) {
if (Double.isNaN(d10)) {
throw new IllegalArgumentException("Cannot round NaN value.");
}
if (d10 > 2.147483647E9d) {
return Integer.MAX_VALUE;
}
if (d10 < -2.147483648E9d) {
return Integer.MIN_VALUE;
}
return (int) Math.round(d10);
}
public static final y w(e0 e0Var) {
kotlin.jvm.internal.k.e(e0Var, "<this>");
t1 K0 = e0Var.K0();
kotlin.jvm.internal.k.c(K0, "null cannot be cast to non-null type org.jetbrains.kotlin.types.FlexibleType");
return (y) K0;
}
public static final Class w0(mc.d dVar) {
kotlin.jvm.internal.k.e(dVar, "<this>");
Class<?> h10 = ((kotlin.jvm.internal.d) dVar).h();
if (h10.isPrimitive()) {
return h10;
}
String name = h10.getName();
switch (name.hashCode()) {
case -2056817302:
if (name.equals("java.lang.Integer")) {
return Integer.TYPE;
}
break;
case -527879800:
if (name.equals("java.lang.Float")) {
return Float.TYPE;
}
break;
case -515992664:
if (name.equals("java.lang.Short")) {
return Short.TYPE;
}
break;
case 155276373:
if (name.equals("java.lang.Character")) {
return Character.TYPE;
}
break;
case 344809556:
if (name.equals("java.lang.Boolean")) {
return Boolean.TYPE;
}
break;
case 398507100:
if (name.equals("java.lang.Byte")) {
return Byte.TYPE;
}
break;
case 398795216:
if (name.equals("java.lang.Long")) {
return Long.TYPE;
}
break;
case 399092968:
if (name.equals("java.lang.Void")) {
return Void.TYPE;
}
break;
case 761287205:
if (name.equals("java.lang.Double")) {
return Double.TYPE;
}
break;
}
return null;
}
public static final int w1(float f10) {
if (Float.isNaN(f10)) {
throw new IllegalArgumentException("Cannot round NaN value.");
}
return Math.round(f10);
}
public static androidx.concurrent.futures.d x(k0 k0Var) {
androidx.concurrent.futures.b bVar = new androidx.concurrent.futures.b();
androidx.concurrent.futures.d<T> dVar = new androidx.concurrent.futures.d<>(bVar);
bVar.f1340b = dVar;
bVar.f1339a = androidx.fragment.app.d.class;
try {
k0Var.p(new c1.a(bVar, k0Var));
bVar.f1339a = "Deferred.asListenableFuture";
} catch (Exception e10) {
dVar.f1344c.setException(e10);
}
return dVar;
}
public static final int x0(List list) {
kotlin.jvm.internal.k.e(list, "<this>");
return list.size() - 1;
}
public static final Object x1(wb.f fVar, gc.p pVar) {
ye.w0 w0Var;
wb.f a8;
Thread currentThread = Thread.currentThread();
e.a aVar = e.a.f36268b;
wb.e eVar = (wb.e) fVar.get(aVar);
wb.g gVar = wb.g.f36270b;
if (eVar == null) {
w0Var = z1.a();
a8 = ye.x.a(gVar, fVar.plus(w0Var), true);
ef.c cVar = r0.f37279a;
if (a8 != cVar && a8.get(aVar) == null) {
a8 = a8.plus(cVar);
}
} else {
if (eVar instanceof ye.w0) {
ye.w0 w0Var2 = (ye.w0) eVar;
}
w0Var = z1.f37317a.get();
a8 = ye.x.a(gVar, fVar, true);
ef.c cVar2 = r0.f37279a;
if (a8 != cVar2 && a8.get(aVar) == null) {
a8 = a8.plus(cVar2);
}
}
ye.d dVar = new ye.d(a8, currentThread, w0Var);
dVar.p0(ye.f0.f37209b, dVar, pVar);
ye.w0 w0Var3 = dVar.f37202f;
if (w0Var3 != null) {
int i10 = ye.w0.f37297f;
w0Var3.B(false);
}
while (!Thread.interrupted()) {
long C = w0Var3 != null ? w0Var3.C() : Long.MAX_VALUE;
if (dVar.o()) {
if (w0Var3 != null) {
int i11 = ye.w0.f37297f;
w0Var3.A(false);
}
Object D0 = ye.g0.D0(dVar.W());
ye.t tVar = D0 instanceof ye.t ? (ye.t) D0 : null;
if (tVar == null) {
return D0;
}
throw tVar.f37289a;
}
LockSupport.parkNanos(dVar, C);
}
InterruptedException interruptedException = new InterruptedException();
dVar.J(interruptedException);
throw interruptedException;
}
public static k0 y(ye.d0 d0Var, gc.p pVar) {
wb.g gVar = wb.g.f36270b;
ye.f0 f0Var = ye.f0.f37209b;
wb.f b6 = ye.x.b(d0Var, gVar);
ye.f0 f0Var2 = ye.f0.f37209b;
k0 k0Var = new k0(b6, true);
k0Var.p0(f0Var, k0Var, pVar);
return k0Var;
}
public static x7.a y0(String str) {
String e10 = o7.a.e("last_success_ads_api_2319");
String e11 = o7.a.e("last_success_ads_path_2319");
if (TextUtils.isEmpty(e11)) {
e11 = s7.a.d();
}
String str2 = e11;
String a8 = s7.a.a(e10, str2, str);
if (TextUtils.isEmpty(a8) || TextUtils.isEmpty(e10)) {
return null;
}
return new x7.a(a8, e10, str2, true, 10L);
}
public static Object y1(gc.p pVar) {
return x1(wb.g.f36270b, pVar);
}
public static final Object z(ArrayList arrayList, wb.d dVar) {
if (arrayList.isEmpty()) {
return tb.w.f34921b;
}
j0[] j0VarArr = (j0[]) arrayList.toArray(new j0[0]);
ye.c cVar = new ye.c(j0VarArr);
ye.j jVar = new ye.j(1, N0(dVar));
jVar.s();
int length = j0VarArr.length;
c.a[] aVarArr = new c.a[length];
for (int i10 = 0; i10 < length; i10++) {
j0 j0Var = j0VarArr[i10];
j0Var.start();
c.a aVar = new c.a(jVar);
aVar.f37191g = j0Var.p(aVar);
sb.x xVar = sb.x.f31049a;
aVarArr[i10] = aVar;
}
c.b bVar = new c.b(aVarArr);
for (int i11 = 0; i11 < length; i11++) {
c.a aVar2 = aVarArr[i11];
aVar2.getClass();
c.a.f37189i.set(aVar2, bVar);
}
if (!(jVar.r() instanceof ye.s1)) {
bVar.d();
} else {
jVar.v(bVar);
}
Object q10 = jVar.q();
xb.a aVar3 = xb.a.f36594b;
return q10;
}
public static final ArrayList z0(m0 m0Var) {
ArrayList A0 = A0(le.n1.a(m0Var));
if (A0 != null) {
ArrayList arrayList = new ArrayList(tb.o.V1(A0, 10));
Iterator it = A0.iterator();
while (it.hasNext()) {
arrayList.add("unbox-impl-" + ((String) it.next()));
}
vc.h k8 = m0Var.H0().k();
kotlin.jvm.internal.k.c(k8, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
Class<?> k10 = w0.k((vc.e) k8);
kotlin.jvm.internal.k.b(k10);
ArrayList arrayList2 = new ArrayList(tb.o.V1(arrayList, 10));
Iterator it2 = arrayList.iterator();
while (it2.hasNext()) {
arrayList2.add(k10.getDeclaredMethod((String) it2.next(), new Class[0]));
}
return arrayList2;
}
return null;
}
public static boolean z1(n nVar, oe.i iVar, oe.i iVar2) {
if (nVar.R(iVar) == nVar.R(iVar2) && nVar.B(iVar) == nVar.B(iVar2)) {
if ((nVar.i0(iVar) == null) == (nVar.i0(iVar2) == null) && nVar.S(nVar.c(iVar), nVar.c(iVar2))) {
if (nVar.k0(iVar, iVar2)) {
return true;
}
int R = nVar.R(iVar);
for (int i10 = 0; i10 < R; i10++) {
oe.k h02 = nVar.h0(iVar, i10);
oe.k h03 = nVar.h0(iVar2, i10);
if (nVar.z(h02) != nVar.z(h03)) {
return false;
}
if (!nVar.z(h02) && (nVar.k(h02) != nVar.k(h03) || !A1(nVar, nVar.T(h02), nVar.T(h03)))) {
return false;
}
}
return true;
}
}
return false;
}
@Override
public void a(View view) {
}
@Override
public void b(vc.b descriptor) {
kotlin.jvm.internal.k.e(descriptor, "descriptor");
throw new IllegalStateException("Cannot infer visibility for " + descriptor);
}
@Override
public void c(yc.b descriptor, ArrayList arrayList) {
kotlin.jvm.internal.k.e(descriptor, "descriptor");
throw new IllegalStateException("Incomplete hierarchy for class " + descriptor.getName() + ", unresolved classes " + arrayList);
}
@Override
public void d(u2.f fVar, w2.g gVar) {
}
@Override
public Iterable e(Object obj) {
int i10 = be.b.f4351a;
Collection<b1> d10 = ((b1) obj).d();
ArrayList arrayList = new ArrayList(tb.o.V1(d10, 10));
for (b1 b1Var : d10) {
arrayList.add(b1Var.a());
}
return arrayList;
}
@Override
public void execute() {
f5.c cVar = f5.c.S;
if (cVar.f22522a && cVar.f22528g && f5.c.h()) {
c5.e.f4657c.f4663b = false;
boolean z6 = cVar.A;
if (z6) {
int i10 = a.C0005a.f169a;
}
if (z6) {
c5.e.f4658d++;
long c10 = f5.c.c() - cVar.f22540s;
if (c10 < 0) {
c10 = 0;
}
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("category", "session_end");
jSONObject.put("length", c10);
} catch (JSONException e10) {
e10.printStackTrace();
d5.a aVar = d5.a.f21556g;
c5.c cVar2 = c5.c.Json;
c5.b bVar = c5.b.SessionEnd;
c5.a aVar2 = c5.a.JsonError;
String obj = e10.toString();
f5.c cVar3 = f5.c.S;
aVar.d(cVar2, bVar, aVar2, obj, cVar3.G, cVar3.H);
}
c5.e.c(jSONObject);
c5.e.a(jSONObject, f5.c.k(f5.c.S.f22536o));
c5.e.e(jSONObject);
c5.e.g("", false);
}
f5.c.S.f22540s = 0L;
h5.c cVar4 = h5.c.f22928c;
if (cVar4.f22930b != null) {
synchronized (cVar4) {
cVar4.f22930b.cancel();
cVar4.f22930b = null;
}
}
}
}
@Override
public File f(u2.f fVar) {
return null;
}
@Override
public void g() {
}
@Override
public String getName() {
return "onStop";
}
@Override
public boolean h(Object obj, File file, u2.h hVar) {
try {
q3.a.d(((h3.c) ((w2.v) obj).get()).f22839b.f22849a.f22851a.getData().asReadOnlyBuffer(), file);
return true;
} catch (IOException unused) {
return false;
}
}
@Override
public u2.c i(u2.h hVar) {
return u2.c.SOURCE;
}
@Override
public Boolean j() {
return Boolean.TRUE;
}
}