导航菜单

页面标题

页面副标题

Moneyman v2.316.0.0 - I.java 源代码

正在查看: Moneyman v2.316.0.0 应用的 I.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package z5;

import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcel;
import android.webkit.CookieManager;
import android.webkit.CookieSyncManager;
import com.exponea.sdk.services.inappcontentblock.ContentBlockCarouselViewController;
import com.facebook.AccessToken;
import com.facebook.FacebookException;
import com.facebook.FacebookRequestError;
import com.facebook.FacebookSdkNotInitializedException;
import com.facebook.GraphRequest;
import com.facebook.HttpMethod;
import java.io.BufferedInputStream;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.HttpURLConnection;
import java.net.URLDecoder;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;

public abstract class I {

    public static int f26719a = 0;

    public static long f26720b = -1;

    public static long f26721c = -1;

    public static long f26722d = -1;

    public static String f26723e = "";

    public static String f26724f = "";

    public static String f26725g = "NoCarrier";

    public static final int f26726h = 0;

    public static final ArrayList A(JSONArray jSONArray) {
        ArrayList arrayList = new ArrayList();
        int length = jSONArray.length();
        if (length > 0) {
            int i5 = 0;
            while (true) {
                int i7 = i5 + 1;
                arrayList.add(jSONArray.getString(i5));
                if (i7 >= length) {
                    break;
                }
                i5 = i7;
            }
        }
        return arrayList;
    }

    public static final HashMap B(String str) {
        if (str.length() == 0) {
            return new HashMap();
        }
        try {
            HashMap hashMap = new HashMap();
            JSONObject jSONObject = new JSONObject(str);
            Iterator<String> keys = jSONObject.keys();
            while (keys.hasNext()) {
                String next = keys.next();
                kotlin.jvm.internal.i.f(next, "key");
                String string = jSONObject.getString(next);
                kotlin.jvm.internal.i.f(string, "jsonObject.getString(key)");
                hashMap.put(next, string);
            }
            return hashMap;
        } catch (JSONException unused) {
            return new HashMap();
        }
    }

    public static final String C(Map map) {
        kotlin.jvm.internal.i.g(map, "map");
        boolean isEmpty = map.isEmpty();
        String str = ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID;
        if (isEmpty) {
            return ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID;
        }
        try {
            JSONObject jSONObject = new JSONObject();
            for (Map.Entry entry : map.entrySet()) {
                jSONObject.put((String) entry.getKey(), (String) entry.getValue());
            }
            str = jSONObject.toString();
        } catch (JSONException unused) {
        }
        kotlin.jvm.internal.i.f(str, "{\n      try {\n        val jsonObject = JSONObject()\n        for ((key, value) in map) {\n          jsonObject.put(key, value)\n        }\n        jsonObject.toString()\n      } catch (_e: JSONException) {\n        \"\"\n      }\n    }");
        return str;
    }

    public static final void D(String str, String str2) {
        if (str.length() <= 0) {
            throw new IllegalArgumentException(Z.l.p("Argument '", str2, "' cannot be empty").toString());
        }
    }

    public static final void E(k5.n nVar) {
        kotlin.jvm.internal.i.g(nVar, "container");
        Iterator it = nVar.iterator();
        while (it.hasNext()) {
            if (it.next() == null) {
                throw new NullPointerException("Container 'requests' cannot contain null values");
            }
        }
        if (nVar.isEmpty()) {
            throw new IllegalArgumentException("Container 'requests' cannot be empty".toString());
        }
    }

    public static final void F(String str, String str2) {
        if (str == null || str.length() <= 0) {
            throw new IllegalArgumentException(Z.l.p("Argument '", str2, "' cannot be null or empty").toString());
        }
    }

    public static final Bundle G(String str) {
        Bundle bundle = new Bundle();
        if (!y(str)) {
            if (str == null) {
                throw new IllegalStateException("Required value was null.");
            }
            Object[] array = Eh.A.Q(str, new String[]{"&"}, 0, 6).toArray(new String[0]);
            if (array == null) {
                throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
            }
            String[] strArr = (String[]) array;
            int length = strArr.length;
            int i5 = 0;
            while (i5 < length) {
                String str2 = strArr[i5];
                i5++;
                Object[] array2 = Eh.A.Q(str2, new String[]{"="}, 0, 6).toArray(new String[0]);
                if (array2 == null) {
                    throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
                }
                String[] strArr2 = (String[]) array2;
                try {
                    if (strArr2.length == 2) {
                        bundle.putString(URLDecoder.decode(strArr2[0], "UTF-8"), URLDecoder.decode(strArr2[1], "UTF-8"));
                    } else if (strArr2.length == 1) {
                        bundle.putString(URLDecoder.decode(strArr2[0], "UTF-8"), ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID);
                    }
                } catch (UnsupportedEncodingException unused) {
                    k5.i iVar = k5.i.f22350a;
                }
            }
        }
        return bundle;
    }

    public static final void H(Bundle bundle, JSONArray jSONArray) {
        kotlin.jvm.internal.i.g(bundle, "bundle");
        if (jSONArray instanceof boolean[]) {
            bundle.putBooleanArray("media", (boolean[]) jSONArray);
            return;
        }
        if (jSONArray instanceof double[]) {
            bundle.putDoubleArray("media", (double[]) jSONArray);
            return;
        }
        if (jSONArray instanceof int[]) {
            bundle.putIntArray("media", (int[]) jSONArray);
        } else if (jSONArray instanceof long[]) {
            bundle.putLongArray("media", (long[]) jSONArray);
        } else {
            bundle.putString("media", jSONArray.toString());
        }
    }

    public static final HashMap I(Parcel parcel) {
        int readInt = parcel.readInt();
        if (readInt < 0) {
            return null;
        }
        HashMap hashMap = new HashMap();
        if (readInt > 0) {
            int i5 = 0;
            do {
                i5++;
                String readString = parcel.readString();
                String readString2 = parcel.readString();
                if (readString != null && readString2 != null) {
                    hashMap.put(readString, readString2);
                }
            } while (i5 < readInt);
        }
        return hashMap;
    }

    public static final String J(InputStream inputStream) {
        BufferedInputStream bufferedInputStream;
        Throwable th;
        InputStreamReader inputStreamReader;
        try {
            bufferedInputStream = new BufferedInputStream(inputStream);
            try {
                inputStreamReader = new InputStreamReader(bufferedInputStream);
                try {
                    StringBuilder sb = new StringBuilder();
                    char[] cArr = new char[2048];
                    while (true) {
                        int read = inputStreamReader.read(cArr);
                        if (read == -1) {
                            String sb2 = sb.toString();
                            kotlin.jvm.internal.i.f(sb2, "{\n      bufferedInputStream = BufferedInputStream(inputStream)\n      reader = InputStreamReader(bufferedInputStream)\n      val stringBuilder = StringBuilder()\n      val bufferSize = 1024 * 2\n      val buffer = CharArray(bufferSize)\n      var n = 0\n      while (reader.read(buffer).also { n = it } != -1) {\n        stringBuilder.append(buffer, 0, n)\n      }\n      stringBuilder.toString()\n    }");
                            d(bufferedInputStream);
                            d(inputStreamReader);
                            return sb2;
                        }
                        sb.append(cArr, 0, read);
                    }
                } catch (Throwable th2) {
                    th = th2;
                    d(bufferedInputStream);
                    d(inputStreamReader);
                    throw th;
                }
            } catch (Throwable th3) {
                th = th3;
                inputStreamReader = null;
            }
        } catch (Throwable th4) {
            bufferedInputStream = null;
            th = th4;
            inputStreamReader = null;
        }
    }

    public static final void K(Runnable runnable) {
        try {
            k5.i.c().execute(runnable);
        } catch (Exception unused) {
        }
    }

    public static final void L() {
        if (!k5.i.f22364p.get()) {
            throw new FacebookSdkNotInitializedException("The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.");
        }
    }

    public static final void M(android.content.Context r11, org.json.JSONObject r12) {
        throw new UnsupportedOperationException("Method not decompiled: z5.I.M(android.content.Context, org.json.JSONObject):void");
    }

    public static final String N(String str) {
        if (str == null) {
            return null;
        }
        byte[] bytes = str.getBytes(Eh.c.a);
        kotlin.jvm.internal.i.f(bytes, "(this as java.lang.String).getBytes(charset)");
        return t("SHA-256", bytes);
    }

    public static final void O(Map map, Parcel parcel) {
        if (map == null) {
            parcel.writeInt(-1);
            return;
        }
        parcel.writeInt(map.size());
        for (Map.Entry entry : map.entrySet()) {
            String str = (String) entry.getKey();
            String str2 = (String) entry.getValue();
            parcel.writeString(str);
            parcel.writeString(str2);
        }
    }

    public static final Uri a(String str, String str2, Bundle bundle) {
        Uri.Builder builder = new Uri.Builder();
        builder.scheme("https");
        builder.authority(str);
        builder.path(str2);
        if (bundle != null) {
            for (String str3 : bundle.keySet()) {
                Object obj = bundle.get(str3);
                if (obj instanceof String) {
                    builder.appendQueryParameter(str3, (String) obj);
                }
            }
        }
        Uri build = builder.build();
        kotlin.jvm.internal.i.f(build, "builder.build()");
        return build;
    }

    public static void b(Context context, String str) {
        CookieSyncManager.createInstance(context).sync();
        CookieManager cookieManager = CookieManager.getInstance();
        String cookie = cookieManager.getCookie(str);
        if (cookie == null) {
            return;
        }
        Object[] array = Eh.A.Q(cookie, new String[]{";"}, 0, 6).toArray(new String[0]);
        if (array == null) {
            throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
        }
        String[] strArr = (String[]) array;
        int length = strArr.length;
        int i5 = 0;
        while (i5 < length) {
            String str2 = strArr[i5];
            i5++;
            Object[] array2 = Eh.A.Q(str2, new String[]{"="}, 0, 6).toArray(new String[0]);
            if (array2 == null) {
                throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
            }
            String[] strArr2 = (String[]) array2;
            if (strArr2.length > 0) {
                String str3 = strArr2[0];
                int length2 = str3.length() - 1;
                int i7 = 0;
                boolean z7 = false;
                while (i7 <= length2) {
                    boolean z8 = kotlin.jvm.internal.i.i(str3.charAt(!z7 ? i7 : length2), 32) <= 0;
                    if (z7) {
                        if (!z8) {
                            break;
                        } else {
                            length2--;
                        }
                    } else if (z8) {
                        i7++;
                    } else {
                        z7 = true;
                    }
                }
                cookieManager.setCookie(str, kotlin.jvm.internal.i.m("=;expires=Sat, 1 Jan 2000 00:00:01 UTC;", str3.subSequence(i7, length2 + 1).toString()));
            }
        }
        cookieManager.removeExpiredCookie();
    }

    public static final void c(Context context) {
        try {
            b(context, "facebook.com");
            b(context, ".facebook.com");
            b(context, "https://facebook.com");
            b(context, "https://.facebook.com");
        } catch (Exception unused) {
        }
    }

    public static final void d(Closeable closeable) {
        if (closeable == null) {
            return;
        }
        try {
            closeable.close();
        } catch (IOException unused) {
        }
    }

    public static final String e(String str) {
        return y(str) ? ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID : str;
    }

    public static final ArrayList f(JSONArray jSONArray) {
        try {
            ArrayList arrayList = new ArrayList();
            int length = jSONArray.length();
            if (length > 0) {
                int i5 = 0;
                while (true) {
                    int i7 = i5 + 1;
                    String string = jSONArray.getString(i5);
                    kotlin.jvm.internal.i.f(string, "jsonArray.getString(i)");
                    arrayList.add(string);
                    if (i7 >= length) {
                        break;
                    }
                    i5 = i7;
                }
            }
            return arrayList;
        } catch (JSONException unused) {
            return new ArrayList();
        }
    }

    public static final HashMap g(JSONObject jSONObject) {
        int length;
        kotlin.jvm.internal.i.g(jSONObject, "jsonObject");
        HashMap hashMap = new HashMap();
        JSONArray names = jSONObject.names();
        if (names != null && (length = names.length()) > 0) {
            int i5 = 0;
            while (true) {
                int i7 = i5 + 1;
                try {
                    String string = names.getString(i5);
                    kotlin.jvm.internal.i.f(string, "keys.getString(i)");
                    Object obj = jSONObject.get(string);
                    if (obj instanceof JSONObject) {
                        obj = g((JSONObject) obj);
                    }
                    kotlin.jvm.internal.i.f(obj, "value");
                    hashMap.put(string, obj);
                } catch (JSONException unused) {
                }
                if (i7 >= length) {
                    break;
                }
                i5 = i7;
            }
        }
        return hashMap;
    }

    public static final HashMap h(JSONObject jSONObject) {
        HashMap hashMap = new HashMap();
        Iterator<String> keys = jSONObject.keys();
        while (keys.hasNext()) {
            String next = keys.next();
            String optString = jSONObject.optString(next);
            if (optString != null) {
                kotlin.jvm.internal.i.f(next, "key");
                hashMap.put(next, optString);
            }
        }
        return hashMap;
    }

    public static final int i(InputStream inputStream, OutputStream outputStream) {
        BufferedInputStream bufferedInputStream;
        BufferedInputStream bufferedInputStream2 = null;
        try {
            bufferedInputStream = new BufferedInputStream(inputStream);
        } catch (Throwable th) {
            th = th;
        }
        try {
            byte[] bArr = new byte[8192];
            int i5 = 0;
            while (true) {
                int read = bufferedInputStream.read(bArr);
                if (read == -1) {
                    break;
                }
                outputStream.write(bArr, 0, read);
                i5 += read;
            }
            bufferedInputStream.close();
            if (inputStream == null) {
                return i5;
            }
            inputStream.close();
            return i5;
        } catch (Throwable th2) {
            th = th2;
            bufferedInputStream2 = bufferedInputStream;
            if (bufferedInputStream2 != null) {
                bufferedInputStream2.close();
            }
            if (inputStream != null) {
                inputStream.close();
            }
            throw th;
        }
    }

    public static final void j(HttpURLConnection httpURLConnection) {
        if (httpURLConnection != null) {
            httpURLConnection.disconnect();
        }
    }

    public static final String k(Context context) {
        return context == null ? "null" : context == context.getApplicationContext() ? "unknown" : context.getClass().getSimpleName();
    }

    public static final String l(Context context) {
        try {
            k5.i iVar = k5.i.f22350a;
            L();
            String str = k5.i.f22354e;
            if (str != null) {
                return str;
            }
            ApplicationInfo applicationInfo = context.getApplicationInfo();
            int i5 = applicationInfo.labelRes;
            if (i5 == 0) {
                return applicationInfo.nonLocalizedLabel.toString();
            }
            String string = context.getString(i5);
            kotlin.jvm.internal.i.f(string, "context.getString(stringId)");
            return string;
        } catch (Exception unused) {
            return ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID;
        }
    }

    public static final Date m(Bundle bundle, String str, Date date) {
        long parseLong;
        if (bundle == null) {
            return null;
        }
        Object obj = bundle.get(str);
        if (obj instanceof Long) {
            parseLong = ((Number) obj).longValue();
        } else {
            if (!(obj instanceof String)) {
                return null;
            }
            try {
                parseLong = Long.parseLong((String) obj);
            } catch (NumberFormatException unused) {
                return null;
            }
        }
        if (parseLong == 0) {
            return new Date(Long.MAX_VALUE);
        }
        return new Date((parseLong * 1000) + date.getTime());
    }

    public static final JSONObject n() {
        if (E5.a.b(I.class)) {
            return null;
        }
        try {
            String string = k5.i.a().getSharedPreferences("com.facebook.sdk.DataProcessingOptions", 0).getString("data_processing_options", null);
            if (string != null) {
                try {
                    return new JSONObject(string);
                } catch (JSONException unused) {
                }
            }
            return null;
        } catch (Throwable th) {
            E5.a.a(I.class, th);
            return null;
        }
    }

    public static final void o(final String str, final H h3) {
        String str2;
        kotlin.jvm.internal.i.g(str, "accessToken");
        ConcurrentHashMap concurrentHashMap = F.f26716a;
        JSONObject jSONObject = (JSONObject) F.f26716a.get(str);
        if (jSONObject != null) {
            h3.b(jSONObject);
            return;
        }
        k5.j jVar = new k5.j() {
            @Override
            public final void a(k5.o oVar) {
                H h7 = h3;
                String str3 = str;
                kotlin.jvm.internal.i.g(str3, "$accessToken");
                FacebookRequestError facebookRequestError = oVar.f22382c;
                if (facebookRequestError != null) {
                    h7.e(facebookRequestError.f18207i);
                    return;
                }
                ConcurrentHashMap concurrentHashMap2 = F.f26716a;
                JSONObject jSONObject2 = oVar.f22383d;
                if (jSONObject2 == null) {
                    throw new IllegalStateException("Required value was null.");
                }
                F.f26716a.put(str3, jSONObject2);
                h7.b(jSONObject2);
            }
        };
        Bundle bundle = new Bundle();
        AccessToken.f18128l.getClass();
        AccessToken b8 = AccessToken.a.b();
        if (b8 == null || (str2 = b8.k) == null) {
            str2 = "facebook";
        }
        bundle.putString("fields", str2.equals("instagram") ? "id,name,profile_picture" : "id,name,first_name,middle_name,last_name");
        bundle.putString("access_token", str);
        GraphRequest.k.getClass();
        GraphRequest graphRequest = new GraphRequest(null, "me", null, null, new k5.k(0), null, 32, null);
        graphRequest.f18222d = bundle;
        graphRequest.k(HttpMethod.f18237a);
        graphRequest.j(jVar);
        graphRequest.d();
    }

    public static final Method p(Class cls, String str, Class... clsArr) {
        kotlin.jvm.internal.i.g(clsArr, "parameterTypes");
        try {
            return cls.getMethod(str, (Class[]) Arrays.copyOf(clsArr, clsArr.length));
        } catch (NoSuchMethodException unused) {
            return null;
        }
    }

    public static final Method q(String str, String str2, Class... clsArr) {
        try {
            return p(Class.forName(str), str2, (Class[]) Arrays.copyOf(clsArr, clsArr.length));
        } catch (ClassNotFoundException unused) {
            return null;
        }
    }

    public static final Object r(String str, String str2, JSONObject jSONObject) {
        Object opt = jSONObject.opt(str);
        if (opt != null && (opt instanceof String)) {
            opt = new JSONTokener((String) opt).nextValue();
        }
        if (opt == null || (opt instanceof JSONObject) || (opt instanceof JSONArray)) {
            return opt;
        }
        if (str2 == null) {
            throw new FacebookException("Got an unexpected non-JSON object.");
        }
        JSONObject jSONObject2 = new JSONObject();
        jSONObject2.putOpt(str2, opt);
        return jSONObject2;
    }

    public static final boolean s(Context context, String str) {
        List<ResolveInfo> list;
        kotlin.jvm.internal.i.g(str, "redirectURI");
        PackageManager packageManager = context.getPackageManager();
        if (packageManager != null) {
            Intent intent = new Intent();
            intent.setAction("android.intent.action.VIEW");
            intent.addCategory("android.intent.category.DEFAULT");
            intent.addCategory("android.intent.category.BROWSABLE");
            intent.setData(Uri.parse(str));
            list = packageManager.queryIntentActivities(intent, 64);
        } else {
            list = null;
        }
        if (list != null) {
            Iterator<ResolveInfo> it = list.iterator();
            boolean z7 = false;
            while (it.hasNext()) {
                ActivityInfo activityInfo = it.next().activityInfo;
                if (kotlin.jvm.internal.i.b(activityInfo.name, "com.facebook.CustomTabActivity") && kotlin.jvm.internal.i.b(activityInfo.packageName, context.getPackageName())) {
                    z7 = true;
                }
            }
            return z7;
        }
        return false;
    }

    public static String t(String str, byte[] bArr) {
        try {
            MessageDigest messageDigest = MessageDigest.getInstance(str);
            kotlin.jvm.internal.i.f(messageDigest, "hash");
            messageDigest.update(bArr);
            byte[] digest = messageDigest.digest();
            StringBuilder sb = new StringBuilder();
            kotlin.jvm.internal.i.f(digest, "digest");
            int length = digest.length;
            int i5 = 0;
            while (i5 < length) {
                byte b8 = digest[i5];
                i5++;
                sb.append(Integer.toHexString((b8 >> 4) & 15));
                sb.append(Integer.toHexString(b8 & 15));
            }
            String sb2 = sb.toString();
            kotlin.jvm.internal.i.f(sb2, "builder.toString()");
            return sb2;
        } catch (NoSuchAlgorithmException unused) {
            return null;
        }
    }

    public static final Object u(Object obj, Method method, Object... objArr) {
        try {
            return method.invoke(obj, Arrays.copyOf(objArr, objArr.length));
        } catch (IllegalAccessException | InvocationTargetException unused) {
            return null;
        }
    }

    public static final boolean v() {
        try {
            Intent intent = new Intent("android.intent.action.VIEW");
            intent.setData(Uri.parse(String.format("fb%s://applinks", Arrays.copyOf(new Object[]{k5.i.b()}, 1))));
            Context a8 = k5.i.a();
            PackageManager packageManager = a8.getPackageManager();
            String packageName = a8.getPackageName();
            List<ResolveInfo> queryIntentActivities = packageManager.queryIntentActivities(intent, 65536);
            kotlin.jvm.internal.i.f(queryIntentActivities, "packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY)");
            Iterator<ResolveInfo> it = queryIntentActivities.iterator();
            while (it.hasNext()) {
                if (kotlin.jvm.internal.i.b(packageName, it.next().activityInfo.packageName)) {
                    return true;
                }
            }
            return false;
        } catch (Exception unused) {
            return false;
        }
    }

    public static final boolean w() {
        if (!E5.a.b(I.class)) {
            try {
                JSONObject n7 = n();
                if (n7 != null) {
                    try {
                        JSONArray jSONArray = n7.getJSONArray("data_processing_options");
                        int length = jSONArray.length();
                        if (length > 0) {
                            int i5 = 0;
                            while (true) {
                                int i7 = i5 + 1;
                                String string = jSONArray.getString(i5);
                                kotlin.jvm.internal.i.f(string, "options.getString(i)");
                                String lowerCase = string.toLowerCase();
                                kotlin.jvm.internal.i.f(lowerCase, "(this as java.lang.String).toLowerCase()");
                                if (lowerCase.equals("ldu")) {
                                    return true;
                                }
                                if (i7 >= length) {
                                    break;
                                }
                                i5 = i7;
                            }
                        }
                    } catch (Exception unused) {
                    }
                }
            } catch (Throwable th) {
                E5.a.a(I.class, th);
                return false;
            }
        }
        return false;
    }

    public static boolean x(Context context) {
        Method q2 = q("com.google.android.gms.common.GooglePlayServicesUtil", "isGooglePlayServicesAvailable", Context.class);
        if (q2 != null) {
            Object u7 = u(null, q2, context);
            if ((u7 instanceof Integer) && kotlin.jvm.internal.i.b(u7, 0)) {
                return true;
            }
        }
        return false;
    }

    public static final boolean y(String str) {
        return str == null || str.length() == 0;
    }

    public static final boolean z(Uri uri) {
        if (uri != null) {
            return "http".equalsIgnoreCase(uri.getScheme()) || "https".equalsIgnoreCase(uri.getScheme()) || "fbstaging".equalsIgnoreCase(uri.getScheme());
        }
        return false;
    }
}