导航菜单

页面标题

页面副标题

Tasker v6.6.3 - m.java 源代码

正在查看: Tasker v6.6.3 应用的 m.java JAVA 源代码文件

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


package com.joaomgcd.taskerm.action.net;

import android.app.Activity;
import com.joaomgcd.taskerm.util.b7;
import df.s7;
import df.t7;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import kotlin.Pair;

public final class m {
    private static final HashMap<String, String> c(String str) {
        HashMap<String, String> hashMap = new HashMap<>();
        for (String str2 : sk.q.J0(str, new String[]{"\n"}, false, 0, 6, (Object) null)) {
            int g0 = sk.q.g0(str2, ":", 0, false, 6, (Object) null);
            if (g0 > 0) {
                String substring = str2.substring(0, g0);
                jk.p.h(substring, "substring(...)");
                String substring2 = str2.substring(g0 + 1);
                jk.p.h(substring2, "substring(...)");
                hashMap.put(substring, substring2);
            }
        }
        return hashMap;
    }

    public static final Pair d(sk.j jVar) {
        jk.p.i(jVar, "it");
        return new Pair(jVar.a().get(1), jVar.a().get(2));
    }

    public static final ti.r<String> g(final Activity activity) {
        return xg.e2.y1(new ik.a() {
            public final Object e() {
                String h;
                h = m.h(activity);
                return h;
            }
        });
    }

    public static final String h(Activity activity) {
        List C0;
        Set<String> keySet = k().keySet();
        jk.p.h(keySet, "<get-keys>(...)");
        String str = (String) ((t7) df.x0.c0(new s7(activity, 2131889666, kotlin.collections.t.O0(keySet), true, (ik.l) null, (Integer) null, (ik.l) null, (Boolean) null, (Boolean) null, (Integer) null, (Integer) null, (com.joaomgcd.taskerm.util.e0) null, (com.joaomgcd.taskerm.util.e0) null, (com.joaomgcd.taskerm.util.e0) null, (Boolean) null, (Boolean) null, 65520, (jk.h) null)).f()).c();
        if (str == null) {
            throw new RuntimeException("No header type selected");
        }
        g0[] g0VarArr = k().get(str);
        if (g0VarArr == null || (C0 = kotlin.collections.n.C0(g0VarArr)) == null) {
            throw new RuntimeException("Invalid header type " + str);
        }
        g0 g0Var = (g0) ((t7) df.x0.c0(new s7(activity, str, C0, true, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 262128, null)).f()).c();
        if (g0Var == null) {
            throw new RuntimeException("No header value selected");
        }
        return str + ":" + g0Var.a();
    }

    public static final boolean i(b0 b0Var) {
        return b0Var != null && b7.b1(b0Var, new Object[]{b0.q, b0.s, b0.t, b0.u, b0.v});
    }

    private static final g0[] j() {
        String[] strArr = {"audio/aac", "application/x-abiword", "application/octet-stream", "video/x-msvideo", "application/vnd.amazon.ebook", "application/x-bzip", "application/x-bzip2", "application/x-csh", "text/css", "text/csv", "application/msword", "application/vnd.ms-fontobject", "application/epub+zip", "image/gif", "text/html", "image/x-icon", "text/calendar", "application/java-archive", "image/jpeg", "application/javascript", "application/json", "audio/midi", "video/mpeg", "application/vnd.apple.installer+xml", "application/vnd.oasis.opendocument.presentation", "application/vnd.oasis.opendocument.spreadsheet", "application/vnd.oasis.opendocument.text", "audio/ogg", "video/ogg", "application/ogg", "font/otf", "image/png", "application/pdf", "application/vnd.ms-powerpoint", "application/x-rar-compressed", "application/rtf", "application/x-sh", "image/svg+xml", "application/x-shockwave-flash", "application/x-tar", "image/tiff", "application/typescript", "font/ttf", "application/vnd.visio", "audio/x-wav", "audio/webm", "video/webm", "image/webp", "font/woff", "font/woff2", "application/xhtml+xml", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/xml", "application/vnd.mozilla.xul+xml", "application/zip", "video/3gpp", "video/3gpp2", "application/x-7z-compressed"};
        ArrayList arrayList = new ArrayList(59);
        for (int i = 0; i < 59; i++) {
            arrayList.add(new g0(strArr[i]));
        }
        return (g0[]) arrayList.toArray(new g0[0]);
    }

    private static final HashMap<String, g0[]> k() {
        return kotlin.collections.m0.g(new Pair[]{new Pair("Accept", j()), new Pair("Content-Type", j()), new Pair("User-Agent", new g0[]{new g0("Google Chrome Desktop", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"), new g0("Mozilla Firefox Desktop", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0"), new g0("Microsoft Edge Desktop", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"), new g0("Microsoft Internet Explorer 6 / IE 6", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"), new g0("Microsoft Internet Explorer 7 / IE 7", "Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)"), new g0("Microsoft Internet Explorer 8 / IE 8", "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"), new g0("Microsoft Internet Explorer 9 / IE 9", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0;  Trident/5.0)"), new g0("Microsoft Internet Explorer 10 / IE 10", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; MDDCJS)"), new g0("Microsoft Internet Explorer 11 / IE 11", "Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko"), new g0("Apple iPad", "Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4"), new g0("Apple iPhone", "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1"), new g0("Googlebot (Google Search Engine Bot)", "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"), new g0("Bing Bot (Bing Search Engine Bot)", "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"), new g0("Samsung Phone", "Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-G570Y Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36"), new g0("Google Phone", "Mozilla/5.0 (Linux; U; Android-4.0.3; en-us; Galaxy Nexus Build/IML74K) AppleWebKit/535.7 (KHTML, like Gecko) CrMo/16.0.912.75 Mobile Safari/535.7"), new g0("HTC Phone", "Mozilla/5.0 (Linux; Android 7.0; HTC 10 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36"), new g0("Curl", "curl/7.35.0"), new g0("Wget", "Wget/1.15 (linux-gnu)")})});
    }

    public static final HashMap<String, String> l(String str) {
        jk.p.i(str, "<this>");
        try {
            Pair[] pairArr = (Pair[]) rk.k.G(rk.k.B(sk.n.f(new sk.n("(?ms)^([^:\\s]+):(.*?)(?=\\n[^:\\s]+:|\\Z)", kotlin.collections.t0.e(new sk.p[]{sk.p.s, sk.p.w})), str, 0, 2, (Object) null), new ik.l() {
                public final Object invoke(Object obj) {
                    Pair d;
                    d = m.d((sk.j) obj);
                    return d;
                }
            })).toArray(new Pair[0]);
            HashMap<String, String> g = kotlin.collections.m0.g((Pair[]) Arrays.copyOf(pairArr, pairArr.length));
            return g.keySet().size() != 0 ? g : c(str);
        } catch (Throwable unused) {
            return c(str);
        }
    }
}