导航菜单

页面标题

页面副标题

Tasker v6.5.11 - e.java 源代码

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

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


package qf;

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.Spinner;
import com.joaomgcd.taskerm.action.system.q1;
import com.joaomgcd.taskerm.dialog.l;
import com.joaomgcd.taskerm.location.MapType;
import com.joaomgcd.taskerm.settings.q0;
import com.joaomgcd.taskerm.util.ExtensionsContextKt;
import com.joaomgcd.taskerm.util.x2;
import com.joaomgcd.taskerm.util.z2;
import com.joaomgcd.taskerservercommon.ConstantsCommonTaskerServer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import jk.n0;
import kotlin.Pair;
import kotlin.collections.k0;
import lj.e0;
import net.dinglisch.android.taskerm.ActionEdit;
import net.dinglisch.android.taskerm.a1;
import net.dinglisch.android.taskerm.d6;
import net.dinglisch.android.taskerm.tn;
import net.dinglisch.android.taskerm.z0;
import pg.w0;
import we.l0;
import we.v1;
import we.w1;
import we.x;

public final class e extends com.joaomgcd.taskerm.helper.h<xd.a<?, ? extends qf.d<?>, ?>, net.dinglisch.android.taskerm.c, z0, xd.e, ActionEdit> {
    private final lj.j n;

    private abstract class a {
        private final String a;
        private final String b;
        final e c;

        public a(e eVar, String str, String str2) {
            yj.p.i(str, "title");
            this.c = eVar;
            this.a = str;
            this.b = str2;
        }

        public abstract String a(String str, String str2);

        public final String b() {
            String C;
            String str = this.b;
            if (str == null || (C = hk.o.C(str, "<", "&lt;", false, 4, null)) == null) {
                return null;
            }
            return hk.o.C(C, ">", "&gt;", false, 4, null);
        }

        public final String c() {
            return this.a;
        }

        public final String d(String str) {
            yj.p.i(str, "varName");
            return a(e(str), str);
        }

        public abstract String e(String str);
    }

    private abstract class b extends a {
        final e d;

        public b(e eVar, String str, String str2) {
            super(eVar, str, str2);
            yj.p.i(str, "title");
            this.d = eVar;
        }

        @Override
        public String a(String str, String str2) {
            String b;
            yj.p.i(str2, "varName");
            b = qf.f.b(str, str2);
            return b;
        }
    }

    private final class c extends b {
        private final String e;
        final e f;

        public c(e eVar, String str, String str2) {
            super(eVar, str, str2);
            yj.p.i(str, "title");
            yj.p.i(str2, "expression");
            this.f = eVar;
            this.e = str2;
        }

        @Override
        public String e(String str) {
            yj.p.i(str, "varName");
            return this.e;
        }
    }

    private final class d extends b {
        private final String e;
        private final List<String> f;
        private final boolean g;
        private final boolean h;
        private final Activity i;
        private final xj.l<String, String> j;
        private final int k;
        private final Integer l;
        final e m;

        public d(e eVar, String str, String str2, String str3, List<String> list, boolean z, boolean z2, Activity activity, xj.l<? super String, String> lVar) {
            super(eVar, str, str3);
            yj.p.i(str, "title");
            yj.p.i(activity, "activity");
            yj.p.i(lVar, "inputHandler");
            this.m = eVar;
            this.e = str2;
            this.f = list;
            this.g = z;
            this.h = z2;
            this.i = activity;
            this.j = lVar;
            this.k = z ? 20 : 4;
            this.l = z2 ? 3 : null;
        }

        @Override
        public String e(String str) {
            yj.p.i(str, "varName");
            Activity activity = this.i;
            com.joaomgcd.taskerm.util.s sVar = new com.joaomgcd.taskerm.util.s(c());
            String str2 = this.e;
            String str3 = (String) com.joaomgcd.taskerm.dialog.a.u0(activity, sVar, str2 != null ? new com.joaomgcd.taskerm.util.s(str2) : null, (com.joaomgcd.taskerm.util.q) null, Integer.valueOf(this.k), this.l, this.h ? null : this.f, 8, (Object) null).f();
            if (this.h) {
                yj.p.f(str3);
                List A0 = hk.o.A0(str3, new String[]{","}, false, 0, 6, null);
                ArrayList arrayList = new ArrayList(kotlin.collections.r.v(A0, 10));
                Iterator it = A0.iterator();
                while (it.hasNext()) {
                    arrayList.add(hk.o.m((String) it.next()));
                }
                if (!arrayList.isEmpty()) {
                    Iterator it2 = arrayList.iterator();
                    while (it2.hasNext()) {
                        if (((Integer) it2.next()) == null) {
                            String str4 = "Invalid input " + str3 + ". Must be numeric.";
                            z2.M0(str4, this.i);
                            throw new RuntimeException(str4);
                        }
                    }
                }
            }
            xj.l<String, String> lVar = this.j;
            yj.p.f(str3);
            return lVar.invoke(str3);
        }
    }

    private final class C0280e extends b {
        private final xj.a<String> e;
        final e f;

        public C0280e(e eVar, String str, xj.a<String> aVar, String str2) {
            super(eVar, str, str2);
            yj.p.i(str, "title");
            yj.p.i(aVar, "inputHandler");
            this.f = eVar;
            this.e = aVar;
        }

        @Override
        public String e(String str) {
            yj.p.i(str, "varName");
            return this.e.invoke();
        }
    }

    private final class f extends b {
        final e e;

        public f(e eVar, Context context, String str) {
            super(eVar, eVar.X2(str, context), null);
            yj.p.i(context, "context");
            this.e = eVar;
        }

        @Override
        public String e(String str) {
            return (String) f(str);
        }

        public Void f(String str) {
            yj.p.i(str, "varName");
            return null;
        }
    }

    private final class g extends a {
        private final String d;
        private final List<String> e;
        private final Activity f;
        private final Map<String, String> g;
        final e h;

        public g(e eVar, String str, String str2, List<String> list, Activity activity, Map<String, String> map) {
            super(eVar, str, null);
            yj.p.i(str, "title");
            yj.p.i(activity, "activity");
            this.h = eVar;
            this.d = str2;
            this.e = list;
            this.f = activity;
            this.g = map;
        }

        @Override
        public String a(String str, String str2) {
            String str3;
            yj.p.i(str2, "varName");
            if (str == null || str.length() == 0) {
                return null;
            }
            Map<String, String> map = this.g;
            if (map != null) {
                str3 = str;
                for (Pair pair : k0.t(map)) {
                    str3 = str3 != null ? hk.o.C(str3, (String) pair.getFirst(), (String) pair.getSecond(), false, 4, null) : null;
                }
            } else {
                str3 = str;
            }
            String str4 = str2 + "[" + str3 + "]";
            if (((l0) com.joaomgcd.taskerm.dialog.a.e3(new we.k(this.f, z2.m(c()), x2.G4(2131888056, this.f), x2.G4(2131888023, this.f), x2.G4(2131888923, this.f), (com.joaomgcd.taskerm.util.q) null, false, 4, (String) null, 0, (Integer) null, (List) null, (List) null, 8032, (yj.h) null)).f()).k()) {
                str4 = (String) this.h.j3(str4, true, this.e).f();
            }
            if (((l0) com.joaomgcd.taskerm.dialog.a.y3(this.f, 2131888370, 2131891067, (com.joaomgcd.taskerm.util.q) null, 8, (Object) null).f()).o()) {
                ExtensionsContextKt.q(this.f, "https://tasker.joaoapps.com/userguide/en/variables.html#json", true, false, true, 4, null);
            }
            return str4;
        }

        @Override
        public String e(String str) {
            yj.p.i(str, "varName");
            Activity activity = this.f;
            com.joaomgcd.taskerm.util.s sVar = new com.joaomgcd.taskerm.util.s(c());
            String str2 = this.d;
            String str3 = (String) com.joaomgcd.taskerm.dialog.a.u0(activity, sVar, str2 != null ? new com.joaomgcd.taskerm.util.s(str2) : null, (com.joaomgcd.taskerm.util.q) null, 4, (Integer) null, this.e, 40, (Object) null).f();
            yj.p.f(str3);
            return str3;
        }
    }

    static final class h extends yj.q implements xj.l<w1<tn>, e0> {
        h() {
            super(1);
        }

        public final void a(w1<tn> w1Var) {
            yj.p.i(w1Var, "it");
            tn tnVar = (tn) w1Var.c();
            String name = tnVar != null ? tnVar.getName() : null;
            if (name == null) {
                return;
            }
            e.a3(e.this, name);
        }

        @Override
        public e0 invoke(w1<tn> w1Var) {
            a(w1Var);
            return e0.a;
        }
    }

    static final class i extends yj.q implements xj.a<ji.r<HashMap<String, String>>> {
        final ActionEdit q;

        static final class a extends yj.q implements xj.a<HashMap<String, String>> {
            final e i;
            final ActionEdit q;

            a(e eVar, ActionEdit actionEdit) {
                super(0);
                this.i = eVar;
                this.q = actionEdit;
            }

            @Override
            public final HashMap<String, String> invoke() {
                String[] stringArray;
                HashMap<String, String> o;
                com.joaomgcd.taskerm.dialog.l e = l.a.e(com.joaomgcd.taskerm.dialog.l.c, this.i.u(), 2131888066, false, 4, (Object) null);
                try {
                    HashMap<String, String> hashMap = new HashMap<>();
                    ActionEdit actionEdit = this.q;
                    Bundle bundle = actionEdit.Q0;
                    actionEdit.L0().x(this.i.u(), bundle != null ? bundle.getInt("tid") : -1, hashMap);
                    if (bundle != null && (stringArray = bundle.getStringArray("jos")) != null && (o = d6.o(stringArray)) != null) {
                        hashMap.putAll(o);
                    }
                    com.joaomgcd.taskerm.dialog.l.e(e, (xj.a) null, 1, (Object) null);
                    return hashMap;
                } catch (Throwable th2) {
                    com.joaomgcd.taskerm.dialog.l.e(e, (xj.a) null, 1, (Object) null);
                    throw th2;
                }
            }
        }

        i(ActionEdit actionEdit) {
            super(0);
            this.q = actionEdit;
        }

        @Override
        public final ji.r<HashMap<String, String>> invoke() {
            e eVar = e.this;
            return eVar.C(new a(eVar, this.q)).g();
        }
    }

    @qj.f(c = "com.joaomgcd.taskerm.helper.actions.HelperActivityActionEdit$pickRemoteDevice$1", f = "HelperActivityActionEdit.kt", l = {392}, m = "invokeSuspend")
    static final class j extends qj.l implements xj.p<n0, oj.d<? super e0>, Object> {
        int t;
        final com.joaomgcd.taskerm.util.c<String> v;

        @qj.f(c = "com.joaomgcd.taskerm.helper.actions.HelperActivityActionEdit$pickRemoteDevice$1$1", f = "HelperActivityActionEdit.kt", l = {393, 394}, m = "invokeSuspend")
        static final class a extends qj.l implements xj.l<oj.d<? super e0>, Object> {
            int t;
            final e u;
            final com.joaomgcd.taskerm.util.c<String> v;

            static final class C0281a extends yj.q implements xj.a<e0> {
                final com.joaomgcd.taskerm.util.c<String> i;
                final String q;

                C0281a(com.joaomgcd.taskerm.util.c<String> cVar, String str) {
                    super(0);
                    this.i = cVar;
                    this.q = str;
                }

                public final void a() {
                    this.i.a(this.q);
                }

                @Override
                public e0 invoke() {
                    a();
                    return e0.a;
                }
            }

            a(e eVar, com.joaomgcd.taskerm.util.c<String> cVar, oj.d<? super a> dVar) {
                super(1, dVar);
                this.u = eVar;
                this.v = cVar;
            }

            @Override
            public final Object r(Object obj) {
                Object c = pj.b.c();
                int i = this.t;
                if (i == 0) {
                    lj.s.b(obj);
                    ?? w0 = this.u.w0();
                    this.t = 1;
                    obj = com.joaomgcd.taskerm.dialog.a.S1((Activity) w0, this);
                    if (obj == c) {
                        return c;
                    }
                } else {
                    if (i != 1) {
                        if (i != 2) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        lj.s.b(obj);
                        return e0.a;
                    }
                    lj.s.b(obj);
                }
                C0281a c0281a = new C0281a(this.v, (String) obj);
                this.t = 2;
                if (x2.Z(c0281a, this) == c) {
                    return c;
                }
                return e0.a;
            }

            public final oj.d<e0> u(oj.d<?> dVar) {
                return new a(this.u, this.v, dVar);
            }

            @Override
            public final Object invoke(oj.d<? super e0> dVar) {
                return ((a) u(dVar)).r(e0.a);
            }
        }

        j(com.joaomgcd.taskerm.util.c<String> cVar, oj.d<? super j> dVar) {
            super(2, dVar);
            this.v = cVar;
        }

        @Override
        public final oj.d<e0> k(Object obj, oj.d<?> dVar) {
            return e.this.new j(this.v, dVar);
        }

        @Override
        public final Object r(Object obj) {
            Object c = pj.b.c();
            int i = this.t;
            if (i == 0) {
                lj.s.b(obj);
                Context u = e.this.u();
                a aVar = new a(e.this, this.v, null);
                this.t = 1;
                if (x2.S4(u, aVar, this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                lj.s.b(obj);
            }
            return e0.a;
        }

        @Override
        public final Object l(n0 n0Var, oj.d<? super e0> dVar) {
            return ((j) k(n0Var, dVar)).r(e0.a);
        }
    }

    static final class k extends yj.q implements xj.a<e0> {
        final String i;
        final ActionEdit q;
        final int r;

        k(String str, ActionEdit actionEdit, int i) {
            super(0);
            this.i = str;
            this.q = actionEdit;
            this.r = i;
        }

        public final void a() {
            zf.m d = com.joaomgcd.taskerm.location.b.b(this.q, new zf.g(null, Boolean.TRUE, zf.m.d.a(this.i), MapType.Hybrid, 1, null)).f().d();
            if (d == null) {
                return;
            }
            Location c = d.c();
            this.q.N1(this.r, c.getLatitude() + "," + c.getLongitude() + "," + d.f());
        }

        @Override
        public e0 invoke() {
            a();
            return e0.a;
        }
    }

    static final class l extends yj.q implements xj.l<String, String> {
        public static final l i = new l();

        l() {
            super(1);
        }

        @Override
        public final String invoke(String str) {
            yj.p.i(str, "it");
            return "+" + str;
        }
    }

    static final class m extends yj.q implements xj.l<String, String> {
        public static final m i = new m();

        m() {
            super(1);
        }

        @Override
        public final String invoke(String str) {
            yj.p.i(str, "it");
            return str;
        }
    }

    static final class n extends yj.q implements xj.l<String, String> {
        public static final n i = new n();

        n() {
            super(1);
        }

        @Override
        public final String invoke(String str) {
            yj.p.i(str, "it");
            return "#?" + str;
        }
    }

    static final class o extends yj.q implements xj.l<String, String> {
        public static final o i = new o();

        o() {
            super(1);
        }

        @Override
        public final String invoke(String str) {
            yj.p.i(str, "it");
            return "#?~R" + str;
        }
    }

    static final class p extends yj.q implements xj.l<String, String> {
        public static final p i = new p();

        p() {
            super(1);
        }

        @Override
        public final String invoke(String str) {
            yj.p.i(str, "it");
            return str + ConstantsCommonTaskerServer.ID_SEPARATOR;
        }
    }

    static final class q extends yj.q implements xj.l<String, String> {
        public static final q i = new q();

        q() {
            super(1);
        }

        @Override
        public final String invoke(String str) {
            yj.p.i(str, "it");
            return ConstantsCommonTaskerServer.ID_SEPARATOR + str;
        }
    }

    static final class r extends yj.q implements xj.a<String> {
        final List<String> q;

        r(List<String> list) {
            super(0);
            this.q = list;
        }

        @Override
        public final String invoke() {
            String str = (String) com.joaomgcd.taskerm.dialog.a.t0((ActionEdit) e.this.w0(), 2131888298, (Integer) null, (com.joaomgcd.taskerm.util.q) null, 4, 2, (List) null, 76, (Object) null).f();
            String str2 = (String) com.joaomgcd.taskerm.dialog.a.t0((ActionEdit) e.this.w0(), 2131888295, (Integer) null, (com.joaomgcd.taskerm.util.q) null, 4, 2, (List) null, 76, (Object) null).f();
            String l3 = e.l3(e.this, this.q);
            if (l3.length() == 0) {
                return str + ConstantsCommonTaskerServer.ID_SEPARATOR + str2;
            }
            return "+" + l3 + "+" + str + ConstantsCommonTaskerServer.ID_SEPARATOR + str2;
        }
    }

    static final class s extends yj.q implements xj.a<String> {
        final String q;
        final ArrayList<a> r;

        static final class a extends yj.q implements xj.a<String> {
            final a i;
            final String q;

            a(a aVar, String str) {
                super(0);
                this.i = aVar;
                this.q = str;
            }

            @Override
            public final String invoke() {
                return this.i.d(this.q);
            }
        }

        static final class b extends yj.q implements xj.l<a, we.k0> {
            public static final b i = new b();

            b() {
                super(1);
            }

            @Override
            public final we.k0 invoke(a aVar) {
                String c;
                yj.p.i(aVar, "it");
                String b = aVar.b();
                if (b == null || b.length() == 0) {
                    c = aVar.c();
                } else {
                    c = "<b>" + b + "</b> - " + aVar.c();
                }
                return new we.k0(c, (net.dinglisch.android.taskerm.g) null, false, 6, (yj.h) null);
            }
        }

        s(String str, ArrayList<a> arrayList) {
            super(0);
            this.q = str;
            this.r = arrayList;
        }

        @Override
        public final String invoke() {
            String str;
            ?? w0 = e.this.w0();
            String Q4 = x2.Q4(2131891048, e.this.w0(), this.q);
            ArrayList<a> arrayList = this.r;
            b bVar = b.i;
            Boolean bool = Boolean.TRUE;
            a aVar = (a) ((w1) x.C(new v1((Activity) w0, Q4, arrayList, false, bVar, (Integer) null, (xj.l) null, bool, bool, (Integer) null, (Integer) null, (com.joaomgcd.taskerm.util.q) null, (com.joaomgcd.taskerm.util.q) null, (com.joaomgcd.taskerm.util.q) null, (Boolean) null, (Boolean) null, (String) null, (Boolean) null, 261728, (yj.h) null)).f()).c();
            if (aVar == null || (str = (String) x2.U4(null, new a(aVar, this.q), 1, null)) == null) {
                return "";
            }
            com.joaomgcd.taskerm.dialog.a.g3((Activity) e.this.w0(), 2131891049).f();
            return str;
        }
    }

    static final class t extends yj.q implements xj.a<String> {
        final List<String> q;

        t(List<String> list) {
            super(0);
            this.q = list;
        }

        @Override
        public final String invoke() {
            return (String) com.joaomgcd.taskerm.dialog.a.t0((Activity) e.this.w0(), 2131891046, 2131889315, (com.joaomgcd.taskerm.util.q) null, 20, (Integer) null, this.q, 40, (Object) null).f();
        }
    }

    static final class u extends yj.q implements xj.a<String> {
        final boolean i;
        final e q;
        final int r;
        final int s;
        final List<String> t;
        final xj.l<String, String> u;
        final boolean v;
        final String w;
        final String x;
        final String y;

        u(boolean z, e eVar, int i, int i2, List<String> list, xj.l<? super String, String> lVar, boolean z2, String str, String str2, String str3) {
            super(0);
            this.i = z;
            this.q = eVar;
            this.r = i;
            this.s = i2;
            this.t = list;
            this.u = lVar;
            this.v = z2;
            this.w = str;
            this.x = str2;
            this.y = str3;
        }

        @Override
        public final String invoke() {
            String str = (String) com.joaomgcd.taskerm.dialog.a.t0((ActionEdit) this.q.w0(), this.r, Integer.valueOf(this.s), (com.joaomgcd.taskerm.util.q) null, 4, this.i ? 3 : null, this.t, 8, (Object) null).f();
            String l3 = e.l3(this.q, this.t);
            xj.l<String, String> lVar = this.u;
            if (lVar != null) {
                yj.p.f(str);
                str = lVar.invoke(str);
            }
            if (!this.v && l3.length() == 0) {
                String str2 = this.w;
                return (str2 != null ? str2 : "") + str;
            }
            String str3 = this.x;
            String str4 = this.y;
            String str5 = this.w;
            return str3 + l3 + str4 + (str5 != null ? str5 : "") + str;
        }
    }

    public e(ActionEdit actionEdit) {
        super(actionEdit);
        yj.p.i(actionEdit, "activity");
        this.n = lj.k.b(new i(actionEdit));
    }

    private static final String A3(int i2, e eVar) {
        return x2.Q4(i2, eVar.w0(), new Object[0]);
    }

    private final ji.r<HashMap<String, String>> U2() {
        return (ji.r) this.n.getValue();
    }

    public final String X2(String str, Context context) {
        String str2;
        if (str == null) {
            return x2.Q4(2131890593, context, new Object[0]);
        }
        if (str.length() > 20) {
            String substring = str.substring(0, 19);
            yj.p.h(substring, "substring(...)");
            str2 = substring + "…";
        } else {
            str2 = str;
        }
        if (str2.length() != 0) {
            str = str2;
        }
        return "<b>" + x2.Q4(2131890653, context, new Object[0]) + "</b>: " + str;
    }

    private final void Z2(int i2, String str) {
        if (i2 != 130 || str == null || str.length() == 0 || x2.J3(x2.Q4(2131886505, w0(), new Object[0]), str)) {
            return;
        }
        ArrayList<tn> K = ((ActionEdit) w0()).L0().K(-2, tn.f.Alpha);
        yj.p.f(K);
        ArrayList arrayList = new ArrayList();
        for (Object obj : K) {
            if (x2.J3(((tn) obj).getName(), str)) {
                arrayList.add(obj);
            }
        }
        if (arrayList.isEmpty()) {
            return;
        }
        if (arrayList.size() == 1) {
            String name = ((tn) arrayList.get(0)).getName();
            yj.p.h(name, "getName(...)");
            a3(this, name);
        } else {
            ji.r W2 = com.joaomgcd.taskerm.dialog.a.W2((Activity) w0(), ((ActionEdit) w0()).L0(), (String) null, arrayList, false, 16, (Object) null);
            if (W2 != null) {
                w0.F1(W2, w0(), new h());
            }
        }
    }

    public static final void a3(e eVar, String str) {
        ((ActionEdit) eVar.w0()).N1(0, str);
    }

    public final ji.r<String> j3(String str, boolean z, List<String> list) {
        if (str == null || str.length() == 0) {
            ji.r<String> w = ji.r.w("");
            yj.p.h(w, "just(...)");
            return w;
        }
        String R1 = ((ActionEdit) w0()).A.R1(str);
        ArrayList arrayList = new ArrayList();
        if (!z) {
            if (R1 != null) {
                arrayList.addAll(kotlin.collections.r.d(v3(this, R1)));
            }
            arrayList.addAll(kotlin.collections.r.o(x3(2131888352, this, list, A3(2131888355, this), null, null, 24, null), x3(2131888249, this, list, A3(2131888250, this), null, x2.h1(sf.a.c.a()), 8, null), x3(2131887086, this, list, A3(2131887087, this), null, null, 24, null)));
        }
        arrayList.addAll(kotlin.collections.r.o(q3(2131889539, this, "#"), q3(2131886203, this, ""), s3(2131888350, this, list, A3(2131891095, this), null, "+", true, false, l.i, 72, null), s3(2131887581, this, list, A3(2131887580, this), null, "x", false, true, m.i, 40, null), z3(2131889181, this, list, 2131889182, "x,y,z", true, null, 32, null), u3(2131891046, this, null, "$?", p3(this, list, null, 4, null), 2, null), u3(2131891047, this, null, "$?~R", o3(this, list, "~R"), 2, null), s3(2131888299, this, list, A3(2131887754, this), null, "#?", false, false, n.i, 104, null), s3(2131888300, this, list, A3(2131890203, this), null, "#?~R", false, false, o.i, 104, null), q3(2131890179, this, "*"), q3(2131888024, this, ">"), q3(2131888364, this, "<"), q3(2131888296, this, "#>"), q3(2131888297, this, "#<"), y3(2131887584, this, list, 2131888298, "x:", true, p.i), y3(2131887583, this, list, 2131888295, ":x", true, q.i), u3(2131887585, this, null, "x:y", new r(list), 2, null)));
        return C(new s(str, arrayList));
    }

    private static final String k3(int i2, e eVar) {
        return x2.Q4(2131886715, eVar.w0(), x2.Q4(i2, eVar.w0(), new Object[0]));
    }

    public static final String l3(e eVar, List<String> list) {
        String str = (String) x2.U4(null, eVar.new t(list), 1, null);
        return str == null ? "" : str;
    }

    private static final xj.a<String> m3(e eVar, List<String> list, int i2, int i3, boolean z, String str, String str2, String str3, boolean z2, xj.l<? super String, String> lVar) {
        return new u(z, eVar, i2, i3, list, lVar, z2, str, str2, str3);
    }

    static xj.a n3(e eVar, List list, int i2, int i3, boolean z, String str, String str2, String str3, boolean z2, xj.l lVar, int i4, Object obj) {
        return m3(eVar, list, i2, i3, z, (i4 & 32) != 0 ? null : str, str2, str3, z2, (i4 & 512) != 0 ? null : lVar);
    }

    private static final xj.a<String> o3(e eVar, List<String> list, String str) {
        return n3(eVar, list, 2131891046, 2131887754, false, str, "$", "?", true, null, 512, null);
    }

    static xj.a p3(e eVar, List list, String str, int i2, Object obj) {
        if ((i2 & 4) != 0) {
            str = null;
        }
        return o3(eVar, list, str);
    }

    private static final c q3(int i2, e eVar, String str) {
        return new c(eVar, k3(i2, eVar), str);
    }

    private static final d r3(int i2, e eVar, List<String> list, String str, String str2, String str3, boolean z, boolean z2, xj.l<? super String, String> lVar) {
        return new d(eVar, str2, str, str3, list, z, z2, eVar.w0(), lVar);
    }

    static d s3(int i2, e eVar, List list, String str, String str2, String str3, boolean z, boolean z2, xj.l lVar, int i3, Object obj) {
        return r3(i2, eVar, list, (i3 & 4) != 0 ? null : str, (i3 & 8) != 0 ? k3(i2, eVar) : str2, str3, (i3 & 32) != 0 ? false : z, (i3 & 64) != 0 ? false : z2, lVar);
    }

    private static final C0280e t3(int i2, e eVar, String str, String str2, xj.a<String> aVar) {
        return new C0280e(eVar, str, aVar, str2);
    }

    static C0280e u3(int i2, e eVar, String str, String str2, xj.a aVar, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            str = k3(i2, eVar);
        }
        return t3(i2, eVar, str, str2, aVar);
    }

    private static final f v3(e eVar, String str) {
        return new f(eVar, eVar.w0(), str);
    }

    private static final g w3(int i2, e eVar, List<String> list, String str, String str2, Map<String, String> map) {
        return new g(eVar, str2, str, list, eVar.w0(), map);
    }

    static g x3(int i2, e eVar, List list, String str, String str2, Map map, int i3, Object obj) {
        String str3 = (i3 & 4) != 0 ? null : str;
        if ((i3 & 8) != 0) {
            str2 = A3(i2, eVar);
        }
        return w3(i2, eVar, list, str3, str2, (i3 & 16) != 0 ? null : map);
    }

    private static final C0280e y3(int i2, e eVar, List<String> list, int i3, String str, boolean z, xj.l<? super String, String> lVar) {
        return u3(i2, eVar, null, str, m3(eVar, list, i2, i3, z, null, "+", "+", false, lVar), 2, null);
    }

    static C0280e z3(int i2, e eVar, List list, int i3, String str, boolean z, xj.l lVar, int i4, Object obj) {
        if ((i4 & 32) != 0) {
            lVar = null;
        }
        return y3(i2, eVar, list, i3, str, z, lVar);
    }

    public final void B3() {
        k1(2131888251);
    }

    public final void C3(int i2, int i3) {
        Pair pair = (Pair) xd.d.e().get(Integer.valueOf(i2));
        if (pair != null && i3 == ((Number) pair.getSecond()).intValue()) {
            ((ActionEdit) w0()).x2(((Number) pair.getFirst()).intValue());
        }
    }

    @Override
    public String N1(int i2, int i3) {
        return a1.B(i2, i3);
    }

    @Override
    public boolean P1(int i2, int i3) {
        if (i2 == 47 && x2.e0(Integer.valueOf(i3), 9, 10)) {
            return true;
        }
        return a1.E(i2, i3);
    }

    public final boolean R2(int i2) {
        return J1(i2);
    }

    @Override
    public xd.e L1() {
        return xd.d.f();
    }

    @Override
    public com.joaomgcd.taskerm.helper.j<net.dinglisch.android.taskerm.c, ?, ActionEdit> Y1(ActionEdit actionEdit, xd.a<?, ? extends qf.d<?>, ?> aVar) {
        yj.p.i(actionEdit, "<this>");
        yj.p.i(aVar, "configurable");
        return aVar.i(actionEdit);
    }

    public final void V2(com.joaomgcd.taskerm.util.c<HashMap<String, String>> cVar) {
        yj.p.i(cVar, "action");
        ji.r<HashMap<String, String>> U2 = U2();
        yj.p.h(U2, "<get-javaNameHints>(...)");
        A(U2, cVar);
    }

    public final Integer[] W2() {
        com.joaomgcd.taskerm.helper.j<net.dinglisch.android.taskerm.c, ?, ActionEdit> X1 = X1();
        if (X1 != null) {
            return X1.K();
        }
        return null;
    }

    public final ji.r<String> Y2(String str, String str2, List<String> list) {
        return j3(str, false, list);
    }

    public final boolean b3(int i2, int i3) {
        Pair pair = (Pair) xd.d.e().get(Integer.valueOf(i2));
        if (pair != null && i3 == ((Number) pair.getFirst()).intValue()) {
            return !((ActionEdit) w0()).G0(((Number) pair.getSecond()).intValue()).booleanValue();
        }
        return false;
    }

    public final void c3(int i2) {
        h2(i2);
    }

    public final boolean d3(int i2) {
        return j2(i2);
    }

    public e0 e3(net.dinglisch.android.taskerm.c cVar, String str) {
        yj.p.i(cVar, "hasArgs");
        Z2(cVar.j(), str);
        return super.q2(cVar, str);
    }

    public final void f3(com.joaomgcd.taskerm.util.c<String> cVar) {
        yj.p.i(cVar, "callback");
        jk.k.d(v(), null, null, new j(cVar, null), 3, null);
    }

    public final void g3(int i2, int i3) {
        boolean z = i3 == 123;
        int l2 = q0.l(w0());
        String str = "localhost";
        if (!z) {
            com.joaomgcd.taskerm.helper.j<net.dinglisch.android.taskerm.c, ?, ActionEdit> X1 = X1();
            q1 q1Var = (q1) (X1 != null ? X1.G() : null);
            if (q1Var != null) {
                l2 = q1Var.getPortNotNull((Context) w0());
                String F = z2.F(q1Var.getHostNotNull());
                if (F != null) {
                    str = F;
                }
            }
        }
        ((ActionEdit) w0()).j5(i2, com.joaomgcd.taskerm.dialog.a.P((Activity) w0(), l2, str, z, (ie.l) null, 16, (Object) null));
    }

    public final void h3(Spinner[] spinnerArr, EditText[] editTextArr) {
        yj.p.i(spinnerArr, "argSpinners");
        yj.p.i(editTextArr, "argEditTextViews");
        com.joaomgcd.taskerm.helper.e.L0(this, spinnerArr, editTextArr, true, null, 8, null);
    }

    public final void i3(int i2) {
        ActionEdit actionEdit = (ActionEdit) w0();
        w0.m0(new k(actionEdit.M0(i2), actionEdit, i2));
    }
}