package androidx.fragment.app;

import android.animation.Animator;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Application;
import android.content.ComponentCallbacks;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.content.IntentSender;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import androidx.fragment.app.ab;
import androidx.lifecycle.at;
import androidx.lifecycle.k;
import com.strmr.ps.R;
import defpackage.bn3;
import defpackage.cr4;
import defpackage.de6;
import defpackage.dk;
import defpackage.g65;
import defpackage.gu3;
import defpackage.hl3;
import defpackage.hu3;
import defpackage.i85;
import defpackage.ika;
import defpackage.iu3;
import defpackage.j9;
import defpackage.jka;
import defpackage.k9;
import defpackage.m38;
import defpackage.n41;
import defpackage.or0;
import defpackage.p9;
import defpackage.re6;
import defpackage.rl8;
import defpackage.rn3;
import defpackage.rq6;
import defpackage.rr3;
import defpackage.s9;
import defpackage.savedstate_release;
import defpackage.sf1;
import defpackage.sl8;
import defpackage.sla;
import defpackage.t79;
import defpackage.tl8;
import defpackage.tp8;
import defpackage.ua8;
import defpackage.va8;
import defpackage.vm5;
import defpackage.vo6;
import defpackage.vw2;
import defpackage.wa8;
import defpackage.wm1;
import defpackage.x4a;
import defpackage.x9;
import defpackage.xp4;
import defpackage.y9;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Objects;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;

/* JADX INFO: loaded from: classes.dex */
public class o implements ComponentCallbacks, View.OnCreateContextMenuListener, i85, jka, androidx.lifecycle.h, wa8, k9 {
    static final int ACTIVITY_CREATED = 4;
    static final int ATTACHED = 0;
    static final int AWAITING_ENTER_EFFECTS = 6;
    static final int AWAITING_EXIT_EFFECTS = 3;
    static final int CREATED = 1;
    static final int INITIALIZING = -1;
    static final int RESUMED = 7;
    static final int STARTED = 5;
    static final Object USE_DEFAULT_TRANSITION = new Object();
    static final int VIEW_CREATED = 2;
    boolean mAdded;
    i mAnimationInfo;
    Bundle mArguments;
    int mBackStackNesting;
    boolean mBeingSaved;
    private boolean mCalled;

    @vo6
    ab mChildFragmentManager;
    ViewGroup mContainer;
    int mContainerId;

    @g65
    private int mContentLayoutId;
    at.c mDefaultFactory;
    boolean mDeferStart;
    boolean mDetached;
    int mFragmentId;
    ab mFragmentManager;
    boolean mFromLayout;
    boolean mHasMenu;
    boolean mHidden;
    boolean mHiddenChanged;
    w<?> mHost;
    boolean mInDynamicContainer;
    boolean mInLayout;
    boolean mIsCreated;
    private Boolean mIsPrimaryNavigationFragment;
    LayoutInflater mLayoutInflater;
    androidx.lifecycle.t mLifecycleRegistry;
    k.b mMaxState;
    boolean mMenuVisible;
    private final AtomicInteger mNextLocalRequestCode;
    private final ArrayList<k> mOnPreAttachedListeners;
    o mParentFragment;
    boolean mPerformedCreateView;
    Runnable mPostponedDurationRunnable;
    Handler mPostponedHandler;

    @m38
    @rq6
    public String mPreviousWho;
    boolean mRemoving;
    boolean mRestored;
    boolean mRetainInstance;
    boolean mRetainInstanceChangedWhileDetached;
    Bundle mSavedFragmentState;
    private final k mSavedStateAttachListener;
    va8 mSavedStateRegistryController;

    @rq6
    Boolean mSavedUserVisibleHint;
    Bundle mSavedViewRegistryState;
    SparseArray<Parcelable> mSavedViewState;
    int mState;
    String mTag;
    o mTarget;
    int mTargetRequestCode;
    String mTargetWho;
    boolean mTransitioning;
    boolean mUserVisibleHint;
    View mView;

    @rq6
    ao mViewLifecycleOwner;
    re6<i85> mViewLifecycleOwnerLiveData;

    @vo6
    String mWho;

    public class a implements Runnable {
        public a() {
        }

        @Override // java.lang.Runnable
        public final void run() {
            o.this.startPostponedEnterTransition();
        }
    }

    public class b extends k {
        public b() {
        }

        @Override // androidx.fragment.app.o.k
        public final void a() {
            o oVar = o.this;
            oVar.mSavedStateRegistryController.a();
            androidx.lifecycle.an.b(oVar);
            Bundle bundle = oVar.mSavedFragmentState;
            oVar.mSavedStateRegistryController.b(bundle != null ? bundle.getBundle("registryState") : null);
        }
    }

    public class c implements Runnable {
        public c() {
        }

        @Override // java.lang.Runnable
        public final void run() {
            o.this.callStartTransitionListener(false);
        }
    }

    public class d implements Runnable {
        public final /* synthetic */ ar a;

        public d(ar arVar) {
            this.a = arVar;
        }

        @Override // java.lang.Runnable
        public final void run() {
            ar arVar = this.a;
            if (arVar.b.isEmpty()) {
                return;
            }
            arVar.e();
        }
    }

    public class e extends hl3 {
        public e() {
        }

        @Override // defpackage.hl3
        public final View b(int i) {
            o oVar = o.this;
            View view = oVar.mView;
            if (view != null) {
                return view.findViewById(i);
            }
            throw new IllegalStateException("Fragment " + oVar + " does not have a view");
        }

        @Override // defpackage.hl3
        public final boolean c() {
            return o.this.mView != null;
        }
    }

    public class f implements androidx.lifecycle.p {
        public f() {
        }

        @Override // androidx.lifecycle.p
        public final void onStateChanged(i85 i85Var, k.a aVar) {
            View view;
            if (aVar != k.a.ON_STOP || (view = o.this.mView) == null) {
                return;
            }
            view.cancelPendingInputEvents();
        }
    }

    public class g implements rr3<Void, x9> {
        public g() {
        }

        @Override // defpackage.rr3
        public final Object apply(Object obj) {
            o oVar = o.this;
            Object obj2 = oVar.mHost;
            return obj2 instanceof y9 ? ((y9) obj2).getActivityResultRegistry() : oVar.requireActivity().getActivityResultRegistry();
        }
    }

    public class h implements rr3<Void, x9> {
        public final /* synthetic */ x9 a;

        public h(x9 x9Var) {
            this.a = x9Var;
        }

        @Override // defpackage.rr3
        public final Object apply(Object obj) {
            return this.a;
        }
    }

    public static class i {
        public boolean a;
        public int b;
        public int c;
        public int d;
        public int e;
        public int f;
        public ArrayList g;
        public ArrayList h;
        public Object i;
        public Object j;
        public Object k;
        public Object l;
        public Object m;
        public Object n;
        public Boolean o;
        public Boolean p;
        public tp8 q;
        public tp8 r;
        public float s;
        public View t;
        public boolean u;
    }

    public static class j extends RuntimeException {
    }

    public static abstract class k {
        public abstract void a();
    }

    @SuppressLint({"BanParcelableUsage, ParcelClassLoader"})
    public static class l implements Parcelable {

        @vo6
        public static final Parcelable.Creator<l> CREATOR = new a();
        public final Bundle a;

        public class a implements Parcelable.ClassLoaderCreator<l> {
            @Override // android.os.Parcelable.Creator
            public final Object createFromParcel(Parcel parcel) {
                return new l(parcel, null);
            }

            @Override // android.os.Parcelable.Creator
            public final Object[] newArray(int i) {
                return new l[i];
            }

            @Override // android.os.Parcelable.ClassLoaderCreator
            public final l createFromParcel(Parcel parcel, ClassLoader classLoader) {
                return new l(parcel, classLoader);
            }
        }

        public l(Parcel parcel, ClassLoader classLoader) {
            Bundle bundle = parcel.readBundle();
            this.a = bundle;
            if (classLoader == null || bundle == null) {
                return;
            }
            bundle.setClassLoader(classLoader);
        }

        @Override // android.os.Parcelable
        public final int describeContents() {
            return 0;
        }

        @Override // android.os.Parcelable
        public final void writeToParcel(Parcel parcel, int i) {
            parcel.writeBundle(this.a);
        }
    }

    public o() {
        this.mState = -1;
        this.mWho = UUID.randomUUID().toString();
        this.mTargetWho = null;
        this.mIsPrimaryNavigationFragment = null;
        this.mChildFragmentManager = new af();
        this.mMenuVisible = true;
        this.mUserVisibleHint = true;
        this.mPostponedDurationRunnable = new a();
        this.mMaxState = k.b.e;
        this.mViewLifecycleOwnerLiveData = new re6<>();
        this.mNextLocalRequestCode = new AtomicInteger();
        this.mOnPreAttachedListeners = new ArrayList<>();
        this.mSavedStateAttachListener = new b();
        h();
    }

    @vo6
    @Deprecated
    public static o instantiate(@vo6 Context context, @vo6 String str) {
        return instantiate(context, str, null);
    }

    public void callStartTransitionListener(boolean z) {
        ViewGroup viewGroup;
        ab abVar;
        i iVar = this.mAnimationInfo;
        if (iVar != null) {
            iVar.u = false;
        }
        if (this.mView == null || (viewGroup = this.mContainer) == null || (abVar = this.mFragmentManager) == null) {
            return;
        }
        ar arVarI = ar.i(viewGroup, abVar);
        arVarI.k();
        if (z) {
            this.mHost.c.post(new d(arVarI));
        } else {
            arVarI.e();
        }
        Handler handler = this.mPostponedHandler;
        if (handler != null) {
            handler.removeCallbacks(this.mPostponedDurationRunnable);
            this.mPostponedHandler = null;
        }
    }

    @vo6
    public hl3 createFragmentContainer() {
        return new e();
    }

    public void dump(@vo6 String str, @rq6 FileDescriptor fileDescriptor, @vo6 PrintWriter printWriter, @rq6 String[] strArr) {
        printWriter.print(str);
        printWriter.print("mFragmentId=#");
        printWriter.print(Integer.toHexString(this.mFragmentId));
        printWriter.print(" mContainerId=#");
        printWriter.print(Integer.toHexString(this.mContainerId));
        printWriter.print(" mTag=");
        printWriter.println(this.mTag);
        printWriter.print(str);
        printWriter.print("mState=");
        printWriter.print(this.mState);
        printWriter.print(" mWho=");
        printWriter.print(this.mWho);
        printWriter.print(" mBackStackNesting=");
        printWriter.println(this.mBackStackNesting);
        printWriter.print(str);
        printWriter.print("mAdded=");
        printWriter.print(this.mAdded);
        printWriter.print(" mRemoving=");
        printWriter.print(this.mRemoving);
        printWriter.print(" mFromLayout=");
        printWriter.print(this.mFromLayout);
        printWriter.print(" mInLayout=");
        printWriter.println(this.mInLayout);
        printWriter.print(str);
        printWriter.print("mHidden=");
        printWriter.print(this.mHidden);
        printWriter.print(" mDetached=");
        printWriter.print(this.mDetached);
        printWriter.print(" mMenuVisible=");
        printWriter.print(this.mMenuVisible);
        printWriter.print(" mHasMenu=");
        printWriter.println(this.mHasMenu);
        printWriter.print(str);
        printWriter.print("mRetainInstance=");
        printWriter.print(this.mRetainInstance);
        printWriter.print(" mUserVisibleHint=");
        printWriter.println(this.mUserVisibleHint);
        if (this.mFragmentManager != null) {
            printWriter.print(str);
            printWriter.print("mFragmentManager=");
            printWriter.println(this.mFragmentManager);
        }
        if (this.mHost != null) {
            printWriter.print(str);
            printWriter.print("mHost=");
            printWriter.println(this.mHost);
        }
        if (this.mParentFragment != null) {
            printWriter.print(str);
            printWriter.print("mParentFragment=");
            printWriter.println(this.mParentFragment);
        }
        if (this.mArguments != null) {
            printWriter.print(str);
            printWriter.print("mArguments=");
            printWriter.println(this.mArguments);
        }
        if (this.mSavedFragmentState != null) {
            printWriter.print(str);
            printWriter.print("mSavedFragmentState=");
            printWriter.println(this.mSavedFragmentState);
        }
        if (this.mSavedViewState != null) {
            printWriter.print(str);
            printWriter.print("mSavedViewState=");
            printWriter.println(this.mSavedViewState);
        }
        if (this.mSavedViewRegistryState != null) {
            printWriter.print(str);
            printWriter.print("mSavedViewRegistryState=");
            printWriter.println(this.mSavedViewRegistryState);
        }
        o oVarG = g(false);
        if (oVarG != null) {
            printWriter.print(str);
            printWriter.print("mTarget=");
            printWriter.print(oVarG);
            printWriter.print(" mTargetRequestCode=");
            printWriter.println(this.mTargetRequestCode);
        }
        printWriter.print(str);
        printWriter.print("mPopDirection=");
        printWriter.println(getPopDirection());
        if (getEnterAnim() != 0) {
            printWriter.print(str);
            printWriter.print("getEnterAnim=");
            printWriter.println(getEnterAnim());
        }
        if (getExitAnim() != 0) {
            printWriter.print(str);
            printWriter.print("getExitAnim=");
            printWriter.println(getExitAnim());
        }
        if (getPopEnterAnim() != 0) {
            printWriter.print(str);
            printWriter.print("getPopEnterAnim=");
            printWriter.println(getPopEnterAnim());
        }
        if (getPopExitAnim() != 0) {
            printWriter.print(str);
            printWriter.print("getPopExitAnim=");
            printWriter.println(getPopExitAnim());
        }
        if (this.mContainer != null) {
            printWriter.print(str);
            printWriter.print("mContainer=");
            printWriter.println(this.mContainer);
        }
        if (this.mView != null) {
            printWriter.print(str);
            printWriter.print("mView=");
            printWriter.println(this.mView);
        }
        if (getAnimatingAway() != null) {
            printWriter.print(str);
            printWriter.print("mAnimatingAway=");
            printWriter.println(getAnimatingAway());
        }
        if (getContext() != null) {
            androidx.loader.app.a.b(this).a(str, fileDescriptor, printWriter, strArr);
        }
        printWriter.print(str);
        printWriter.println("Child " + this.mChildFragmentManager + ":");
        this.mChildFragmentManager.w(vw2.k(str, "  "), fileDescriptor, printWriter, strArr);
    }

    public final i e() {
        if (this.mAnimationInfo == null) {
            i iVar = new i();
            iVar.i = null;
            Object obj = USE_DEFAULT_TRANSITION;
            iVar.j = obj;
            iVar.k = null;
            iVar.l = obj;
            iVar.m = null;
            iVar.n = obj;
            iVar.q = null;
            iVar.r = null;
            iVar.s = 1.0f;
            iVar.t = null;
            this.mAnimationInfo = iVar;
        }
        return this.mAnimationInfo;
    }

    public final boolean equals(@rq6 Object obj) {
        return super.equals(obj);
    }

    public final int f() {
        k.b bVar = this.mMaxState;
        return (bVar == k.b.b || this.mParentFragment == null) ? bVar.ordinal() : Math.min(bVar.ordinal(), this.mParentFragment.f());
    }

    @rq6
    public o findFragmentByWho(@vo6 String str) {
        return str.equals(this.mWho) ? this : this.mChildFragmentManager.c.c(str);
    }

    public final o g(boolean z) {
        String str;
        if (z) {
            rn3.c cVar = rn3.a;
            rn3.b(new iu3(this, "Attempting to get target fragment from fragment " + this));
            rn3.a(this).getClass();
        }
        o oVar = this.mTarget;
        if (oVar != null) {
            return oVar;
        }
        ab abVar = this.mFragmentManager;
        if (abVar == null || (str = this.mTargetWho) == null) {
            return null;
        }
        return abVar.c.b(str);
    }

    @vo6
    public String generateActivityResultKey() {
        return "fragment_" + this.mWho + "_rq#" + this.mNextLocalRequestCode.getAndIncrement();
    }

    @rq6
    public final t getActivity() {
        w<?> wVar = this.mHost;
        if (wVar == null) {
            return null;
        }
        return wVar.a;
    }

    public boolean getAllowEnterTransitionOverlap() {
        Boolean bool;
        i iVar = this.mAnimationInfo;
        if (iVar == null || (bool = iVar.p) == null) {
            return true;
        }
        return bool.booleanValue();
    }

    public boolean getAllowReturnTransitionOverlap() {
        Boolean bool;
        i iVar = this.mAnimationInfo;
        if (iVar == null || (bool = iVar.o) == null) {
            return true;
        }
        return bool.booleanValue();
    }

    public View getAnimatingAway() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        iVar.getClass();
        return null;
    }

    @rq6
    public final Bundle getArguments() {
        return this.mArguments;
    }

    @vo6
    public final ab getChildFragmentManager() {
        if (this.mHost != null) {
            return this.mChildFragmentManager;
        }
        throw new IllegalStateException(n41.m("Fragment ", this, " has not been attached yet."));
    }

    @rq6
    public Context getContext() {
        w<?> wVar = this.mHost;
        if (wVar == null) {
            return null;
        }
        return wVar.b;
    }

    @Override // androidx.lifecycle.h
    @vo6
    @or0
    public wm1 getDefaultViewModelCreationExtras() {
        Application application;
        Context applicationContext = requireContext().getApplicationContext();
        while (true) {
            if (!(applicationContext instanceof ContextWrapper)) {
                application = null;
                break;
            }
            if (applicationContext instanceof Application) {
                application = (Application) applicationContext;
                break;
            }
            applicationContext = ((ContextWrapper) applicationContext).getBaseContext();
        }
        if (application == null && ab.am(3)) {
            Objects.toString(requireContext().getApplicationContext());
        }
        de6 de6Var = new de6(0);
        LinkedHashMap linkedHashMap = de6Var.a;
        if (application != null) {
            linkedHashMap.put(at.a.d, application);
        }
        linkedHashMap.put(androidx.lifecycle.an.a, this);
        linkedHashMap.put(androidx.lifecycle.an.b, this);
        if (getArguments() != null) {
            linkedHashMap.put(androidx.lifecycle.an.c, getArguments());
        }
        return de6Var;
    }

    @vo6
    public at.c getDefaultViewModelProviderFactory() {
        Application application;
        if (this.mFragmentManager == null) {
            throw new IllegalStateException("Can't access ViewModels from detached fragment");
        }
        if (this.mDefaultFactory == null) {
            Context applicationContext = requireContext().getApplicationContext();
            while (true) {
                if (!(applicationContext instanceof ContextWrapper)) {
                    application = null;
                    break;
                }
                if (applicationContext instanceof Application) {
                    application = (Application) applicationContext;
                    break;
                }
                applicationContext = ((ContextWrapper) applicationContext).getBaseContext();
            }
            if (application == null && ab.am(3)) {
                Objects.toString(requireContext().getApplicationContext());
            }
            this.mDefaultFactory = new androidx.lifecycle.ap(application, this, getArguments());
        }
        return this.mDefaultFactory;
    }

    @dk
    public int getEnterAnim() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return 0;
        }
        return iVar.b;
    }

    @rq6
    public Object getEnterTransition() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        return iVar.i;
    }

    public tp8 getEnterTransitionCallback() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        return iVar.q;
    }

    @dk
    public int getExitAnim() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return 0;
        }
        return iVar.c;
    }

    @rq6
    public Object getExitTransition() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        return iVar.k;
    }

    public tp8 getExitTransitionCallback() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        return iVar.r;
    }

    public View getFocusedView() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        return iVar.t;
    }

    @rq6
    @Deprecated
    public final ab getFragmentManager() {
        return this.mFragmentManager;
    }

    @rq6
    public final Object getHost() {
        w<?> wVar = this.mHost;
        if (wVar == null) {
            return null;
        }
        return wVar.e();
    }

    public final int getId() {
        return this.mFragmentId;
    }

    @vo6
    public final LayoutInflater getLayoutInflater() {
        LayoutInflater layoutInflater = this.mLayoutInflater;
        return layoutInflater == null ? performGetLayoutInflater(null) : layoutInflater;
    }

    @Override // defpackage.i85
    @vo6
    public androidx.lifecycle.k getLifecycle() {
        return this.mLifecycleRegistry;
    }

    @vo6
    @Deprecated
    public androidx.loader.app.a getLoaderManager() {
        return androidx.loader.app.a.b(this);
    }

    public int getNextTransition() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return 0;
        }
        return iVar.f;
    }

    @rq6
    public final o getParentFragment() {
        return this.mParentFragment;
    }

    @vo6
    public final ab getParentFragmentManager() {
        ab abVar = this.mFragmentManager;
        if (abVar != null) {
            return abVar;
        }
        throw new IllegalStateException(n41.m("Fragment ", this, " not associated with a fragment manager."));
    }

    public boolean getPopDirection() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return false;
        }
        return iVar.a;
    }

    @dk
    public int getPopEnterAnim() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return 0;
        }
        return iVar.d;
    }

    @dk
    public int getPopExitAnim() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return 0;
        }
        return iVar.e;
    }

    public float getPostOnViewCreatedAlpha() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return 1.0f;
        }
        return iVar.s;
    }

    @rq6
    public Object getReenterTransition() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        Object obj = iVar.l;
        return obj == USE_DEFAULT_TRANSITION ? getExitTransition() : obj;
    }

    @vo6
    public final Resources getResources() {
        return requireContext().getResources();
    }

    @Deprecated
    public final boolean getRetainInstance() {
        rn3.c cVar = rn3.a;
        rn3.b(new gu3(this, "Attempting to get retain instance for fragment " + this));
        rn3.a(this).getClass();
        return this.mRetainInstance;
    }

    @rq6
    public Object getReturnTransition() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        Object obj = iVar.j;
        return obj == USE_DEFAULT_TRANSITION ? getEnterTransition() : obj;
    }

    @Override // defpackage.wa8
    @vo6
    public final ua8 getSavedStateRegistry() {
        return this.mSavedStateRegistryController.b;
    }

    @rq6
    public Object getSharedElementEnterTransition() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        return iVar.m;
    }

    @rq6
    public Object getSharedElementReturnTransition() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return null;
        }
        Object obj = iVar.n;
        return obj == USE_DEFAULT_TRANSITION ? getSharedElementEnterTransition() : obj;
    }

    @vo6
    public ArrayList<String> getSharedElementSourceNames() {
        ArrayList<String> arrayList;
        i iVar = this.mAnimationInfo;
        return (iVar == null || (arrayList = iVar.g) == null) ? new ArrayList<>() : arrayList;
    }

    @vo6
    public ArrayList<String> getSharedElementTargetNames() {
        ArrayList<String> arrayList;
        i iVar = this.mAnimationInfo;
        return (iVar == null || (arrayList = iVar.h) == null) ? new ArrayList<>() : arrayList;
    }

    @vo6
    public final String getString(@t79 int i2) {
        return getResources().getString(i2);
    }

    @rq6
    public final String getTag() {
        return this.mTag;
    }

    @rq6
    @Deprecated
    public final o getTargetFragment() {
        return g(true);
    }

    @Deprecated
    public final int getTargetRequestCode() {
        rn3.c cVar = rn3.a;
        rn3.b(new hu3(this, "Attempting to get target request code from fragment " + this));
        rn3.a(this).getClass();
        return this.mTargetRequestCode;
    }

    @vo6
    public final CharSequence getText(@t79 int i2) {
        return getResources().getText(i2);
    }

    @Deprecated
    public boolean getUserVisibleHint() {
        return this.mUserVisibleHint;
    }

    @rq6
    public View getView() {
        return this.mView;
    }

    @vo6
    @vm5
    public i85 getViewLifecycleOwner() {
        ao aoVar = this.mViewLifecycleOwner;
        if (aoVar != null) {
            return aoVar;
        }
        throw new IllegalStateException(n41.m("Can't access the Fragment View's LifecycleOwner for ", this, " when getView() is null i.e., before onCreateView() or after onDestroyView()"));
    }

    @vo6
    public androidx.lifecycle.v<i85> getViewLifecycleOwnerLiveData() {
        return this.mViewLifecycleOwnerLiveData;
    }

    @Override // defpackage.jka
    @vo6
    public ika getViewModelStore() {
        if (this.mFragmentManager == null) {
            throw new IllegalStateException("Can't access ViewModels from detached fragment");
        }
        if (f() == 1) {
            throw new IllegalStateException("Calling getViewModelStore() before a Fragment reaches onCreate() when using setMaxLifecycle(INITIALIZED) is not supported");
        }
        HashMap map = this.mFragmentManager.ap.c;
        ika ikaVar = (ika) map.get(this.mWho);
        if (ikaVar != null) {
            return ikaVar;
        }
        ika ikaVar2 = new ika();
        map.put(this.mWho, ikaVar2);
        return ikaVar2;
    }

    public final void h() {
        this.mLifecycleRegistry = new androidx.lifecycle.t(this);
        this.mSavedStateRegistryController = new va8(this);
        this.mDefaultFactory = null;
        if (this.mOnPreAttachedListeners.contains(this.mSavedStateAttachListener)) {
            return;
        }
        k kVar = this.mSavedStateAttachListener;
        if (this.mState >= 0) {
            kVar.a();
        } else {
            this.mOnPreAttachedListeners.add(kVar);
        }
    }

    @m38
    @SuppressLint({"KotlinPropertyAccess"})
    public final boolean hasOptionsMenu() {
        return this.mHasMenu;
    }

    public final int hashCode() {
        return super.hashCode();
    }

    public final s9 i(p9 p9Var, rr3 rr3Var, j9 j9Var) {
        if (this.mState > 1) {
            throw new IllegalStateException(n41.m("Fragment ", this, " is attempting to registerForActivityResult after being created. Fragments must call registerForActivityResult() before they are created (i.e. initialization, onAttach(), or onCreate())."));
        }
        AtomicReference atomicReference = new AtomicReference();
        p pVar = new p(this, rr3Var, atomicReference, p9Var, j9Var);
        if (this.mState >= 0) {
            pVar.a();
        } else {
            this.mOnPreAttachedListeners.add(pVar);
        }
        return new n(atomicReference);
    }

    public void initState() {
        h();
        this.mPreviousWho = this.mWho;
        this.mWho = UUID.randomUUID().toString();
        this.mAdded = false;
        this.mRemoving = false;
        this.mFromLayout = false;
        this.mInLayout = false;
        this.mRestored = false;
        this.mBackStackNesting = 0;
        this.mFragmentManager = null;
        this.mChildFragmentManager = new af();
        this.mHost = null;
        this.mFragmentId = 0;
        this.mContainerId = 0;
        this.mTag = null;
        this.mHidden = false;
        this.mDetached = false;
    }

    public final boolean isAdded() {
        return this.mHost != null && this.mAdded;
    }

    public final boolean isDetached() {
        return this.mDetached;
    }

    public final boolean isHidden() {
        if (this.mHidden) {
            return true;
        }
        ab abVar = this.mFragmentManager;
        if (abVar != null) {
            o oVar = this.mParentFragment;
            abVar.getClass();
            if (oVar == null ? false : oVar.isHidden()) {
                return true;
            }
        }
        return false;
    }

    public final boolean isInBackStack() {
        return this.mBackStackNesting > 0;
    }

    public final boolean isInLayout() {
        return this.mInLayout;
    }

    @m38
    public final boolean isMenuVisible() {
        if (!this.mMenuVisible) {
            return false;
        }
        if (this.mFragmentManager != null) {
            o oVar = this.mParentFragment;
            if (!(oVar == null ? true : oVar.isMenuVisible())) {
                return false;
            }
        }
        return true;
    }

    public boolean isPostponed() {
        i iVar = this.mAnimationInfo;
        if (iVar == null) {
            return false;
        }
        return iVar.u;
    }

    public final boolean isRemoving() {
        return this.mRemoving;
    }

    public final boolean isResumed() {
        return this.mState >= 7;
    }

    public final boolean isStateSaved() {
        ab abVar = this.mFragmentManager;
        if (abVar == null) {
            return false;
        }
        return abVar.aq();
    }

    public final boolean isVisible() {
        View view;
        return (!isAdded() || isHidden() || (view = this.mView) == null || view.getWindowToken() == null || this.mView.getVisibility() != 0) ? false : true;
    }

    public void noteStateNotSaved() {
        this.mChildFragmentManager.as();
    }

    @or0
    @Deprecated
    @vm5
    public void onActivityCreated(@rq6 Bundle bundle) {
        this.mCalled = true;
    }

    @Deprecated
    public void onActivityResult(int i2, int i3, @rq6 Intent intent) {
        if (ab.am(2)) {
            toString();
            Objects.toString(intent);
        }
    }

    @or0
    @vm5
    public void onAttach(@vo6 Context context) {
        this.mCalled = true;
        w<?> wVar = this.mHost;
        t tVar = wVar == null ? null : wVar.a;
        if (tVar != null) {
            this.mCalled = false;
            onAttach((Activity) tVar);
        }
    }

    @Deprecated
    @vm5
    public void onAttachFragment(@vo6 o oVar) {
    }

    @Override // android.content.ComponentCallbacks
    @or0
    public void onConfigurationChanged(@vo6 Configuration configuration) {
        this.mCalled = true;
    }

    @vm5
    public boolean onContextItemSelected(@vo6 MenuItem menuItem) {
        return false;
    }

    @or0
    @vm5
    public void onCreate(@rq6 Bundle bundle) {
        this.mCalled = true;
        restoreChildFragmentState();
        ab abVar = this.mChildFragmentManager;
        if (abVar.w >= 1) {
            return;
        }
        abVar.ai = false;
        abVar.aj = false;
        abVar.ap.f = false;
        abVar.v(1);
    }

    @rq6
    @vm5
    public Animation onCreateAnimation(int i2, boolean z, int i3) {
        return null;
    }

    @rq6
    @vm5
    public Animator onCreateAnimator(int i2, boolean z, int i3) {
        return null;
    }

    @Override // android.view.View.OnCreateContextMenuListener
    @vm5
    public void onCreateContextMenu(@vo6 ContextMenu contextMenu, @vo6 View view, @rq6 ContextMenu.ContextMenuInfo contextMenuInfo) {
        requireActivity().onCreateContextMenu(contextMenu, view, contextMenuInfo);
    }

    @Deprecated
    @vm5
    public void onCreateOptionsMenu(@vo6 Menu menu, @vo6 MenuInflater menuInflater) {
    }

    @rq6
    @vm5
    public View onCreateView(@vo6 LayoutInflater layoutInflater, @rq6 ViewGroup viewGroup, @rq6 Bundle bundle) {
        int i2 = this.mContentLayoutId;
        if (i2 != 0) {
            return layoutInflater.inflate(i2, viewGroup, false);
        }
        return null;
    }

    @or0
    @vm5
    public void onDestroy() {
        this.mCalled = true;
    }

    @Deprecated
    @vm5
    public void onDestroyOptionsMenu() {
    }

    @or0
    @vm5
    public void onDestroyView() {
        this.mCalled = true;
    }

    @or0
    @vm5
    public void onDetach() {
        this.mCalled = true;
    }

    @vo6
    public LayoutInflater onGetLayoutInflater(@rq6 Bundle bundle) {
        return getLayoutInflater(bundle);
    }

    @vm5
    public void onHiddenChanged(boolean z) {
    }

    @x4a
    @or0
    public void onInflate(@vo6 Context context, @vo6 AttributeSet attributeSet, @rq6 Bundle bundle) {
        this.mCalled = true;
        w<?> wVar = this.mHost;
        t tVar = wVar == null ? null : wVar.a;
        if (tVar != null) {
            this.mCalled = false;
            onInflate((Activity) tVar, attributeSet, bundle);
        }
    }

    @Override // android.content.ComponentCallbacks
    @or0
    @vm5
    public void onLowMemory() {
        this.mCalled = true;
    }

    public void onMultiWindowModeChanged(boolean z) {
    }

    @Deprecated
    @vm5
    public boolean onOptionsItemSelected(@vo6 MenuItem menuItem) {
        return false;
    }

    @Deprecated
    @vm5
    public void onOptionsMenuClosed(@vo6 Menu menu) {
    }

    @or0
    @vm5
    public void onPause() {
        this.mCalled = true;
    }

    public void onPictureInPictureModeChanged(boolean z) {
    }

    @Deprecated
    @vm5
    public void onPrepareOptionsMenu(@vo6 Menu menu) {
    }

    @vm5
    public void onPrimaryNavigationFragmentChanged(boolean z) {
    }

    @Deprecated
    public void onRequestPermissionsResult(int i2, @vo6 String[] strArr, @vo6 int[] iArr) {
    }

    @or0
    @vm5
    public void onResume() {
        this.mCalled = true;
    }

    @vm5
    public void onSaveInstanceState(@vo6 Bundle bundle) {
    }

    @or0
    @vm5
    public void onStart() {
        this.mCalled = true;
    }

    @or0
    @vm5
    public void onStop() {
        this.mCalled = true;
    }

    @vm5
    public void onViewCreated(@vo6 View view, @rq6 Bundle bundle) {
    }

    @or0
    @vm5
    public void onViewStateRestored(@rq6 Bundle bundle) {
        this.mCalled = true;
    }

    public void performActivityCreated(Bundle bundle) {
        this.mChildFragmentManager.as();
        this.mState = 3;
        this.mCalled = false;
        onActivityCreated(bundle);
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onActivityCreated()"));
        }
        if (ab.am(3)) {
            toString();
        }
        if (this.mView != null) {
            Bundle bundle2 = this.mSavedFragmentState;
            restoreViewState(bundle2 != null ? bundle2.getBundle("savedInstanceState") : null);
        }
        this.mSavedFragmentState = null;
        ab abVar = this.mChildFragmentManager;
        abVar.ai = false;
        abVar.aj = false;
        abVar.ap.f = false;
        abVar.v(4);
    }

    public void performAttach() {
        Iterator<k> it = this.mOnPreAttachedListeners.iterator();
        while (it.hasNext()) {
            it.next().a();
        }
        this.mOnPreAttachedListeners.clear();
        this.mChildFragmentManager.b(this.mHost, createFragmentContainer(), this);
        this.mState = 0;
        this.mCalled = false;
        onAttach((Context) this.mHost.b);
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onAttach()"));
        }
        ab abVar = this.mFragmentManager;
        Iterator it2 = abVar.q.iterator();
        while (it2.hasNext()) {
            ((bn3) it2.next()).a(abVar, this);
        }
        ab abVar2 = this.mChildFragmentManager;
        abVar2.ai = false;
        abVar2.aj = false;
        abVar2.ap.f = false;
        abVar2.v(0);
    }

    public void performConfigurationChanged(@vo6 Configuration configuration) {
        onConfigurationChanged(configuration);
    }

    public boolean performContextItemSelected(@vo6 MenuItem menuItem) {
        if (this.mHidden) {
            return false;
        }
        if (onContextItemSelected(menuItem)) {
            return true;
        }
        return this.mChildFragmentManager.k(menuItem);
    }

    public void performCreate(Bundle bundle) {
        this.mChildFragmentManager.as();
        this.mState = 1;
        this.mCalled = false;
        this.mLifecycleRegistry.a(new f());
        onCreate(bundle);
        this.mIsCreated = true;
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onCreate()"));
        }
        this.mLifecycleRegistry.f(k.a.ON_CREATE);
    }

    public boolean performCreateOptionsMenu(@vo6 Menu menu, @vo6 MenuInflater menuInflater) {
        boolean z = false;
        if (this.mHidden) {
            return false;
        }
        if (this.mHasMenu && this.mMenuVisible) {
            onCreateOptionsMenu(menu, menuInflater);
            z = true;
        }
        return this.mChildFragmentManager.l(menu, menuInflater) | z;
    }

    public void performCreateView(@vo6 LayoutInflater layoutInflater, @rq6 ViewGroup viewGroup, @rq6 Bundle bundle) {
        this.mChildFragmentManager.as();
        this.mPerformedCreateView = true;
        this.mViewLifecycleOwner = new ao(this, getViewModelStore(), new m(this));
        View viewOnCreateView = onCreateView(layoutInflater, viewGroup, bundle);
        this.mView = viewOnCreateView;
        if (viewOnCreateView == null) {
            if (this.mViewLifecycleOwner.e != null) {
                throw new IllegalStateException("Called getViewLifecycleOwner() but onCreateView() returned null");
            }
            this.mViewLifecycleOwner = null;
            return;
        }
        this.mViewLifecycleOwner.b();
        if (ab.am(3)) {
            Objects.toString(this.mView);
            toString();
        }
        sla.a(this.mView, this.mViewLifecycleOwner);
        View view = this.mView;
        ao aoVar = this.mViewLifecycleOwner;
        cr4.g(view, "<this>");
        view.setTag(R.id.view_tree_view_model_store_owner, aoVar);
        savedstate_release.a(this.mView, this.mViewLifecycleOwner);
        this.mViewLifecycleOwnerLiveData.l(this.mViewLifecycleOwner);
    }

    public void performDestroy() {
        this.mChildFragmentManager.m();
        this.mLifecycleRegistry.f(k.a.ON_DESTROY);
        this.mState = 0;
        this.mCalled = false;
        this.mIsCreated = false;
        onDestroy();
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onDestroy()"));
        }
    }

    public void performDestroyView() {
        this.mChildFragmentManager.v(1);
        if (this.mView != null) {
            ao aoVar = this.mViewLifecycleOwner;
            aoVar.b();
            if (aoVar.e.d.compareTo(k.b.c) >= 0) {
                this.mViewLifecycleOwner.a(k.a.ON_DESTROY);
            }
        }
        this.mState = 1;
        this.mCalled = false;
        onDestroyView();
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onDestroyView()"));
        }
        androidx.loader.app.a.b(this).d();
        this.mPerformedCreateView = false;
    }

    public void performDetach() {
        this.mState = -1;
        this.mCalled = false;
        onDetach();
        this.mLayoutInflater = null;
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onDetach()"));
        }
        ab abVar = this.mChildFragmentManager;
        if (abVar.ak) {
            return;
        }
        abVar.m();
        this.mChildFragmentManager = new af();
    }

    @vo6
    public LayoutInflater performGetLayoutInflater(@rq6 Bundle bundle) {
        LayoutInflater layoutInflaterOnGetLayoutInflater = onGetLayoutInflater(bundle);
        this.mLayoutInflater = layoutInflaterOnGetLayoutInflater;
        return layoutInflaterOnGetLayoutInflater;
    }

    public void performLowMemory() {
        onLowMemory();
    }

    public void performMultiWindowModeChanged(boolean z) {
        onMultiWindowModeChanged(z);
    }

    public boolean performOptionsItemSelected(@vo6 MenuItem menuItem) {
        if (this.mHidden) {
            return false;
        }
        if (this.mHasMenu && this.mMenuVisible && onOptionsItemSelected(menuItem)) {
            return true;
        }
        return this.mChildFragmentManager.q(menuItem);
    }

    public void performOptionsMenuClosed(@vo6 Menu menu) {
        if (this.mHidden) {
            return;
        }
        if (this.mHasMenu && this.mMenuVisible) {
            onOptionsMenuClosed(menu);
        }
        this.mChildFragmentManager.r(menu);
    }

    public void performPause() {
        this.mChildFragmentManager.v(5);
        if (this.mView != null) {
            this.mViewLifecycleOwner.a(k.a.ON_PAUSE);
        }
        this.mLifecycleRegistry.f(k.a.ON_PAUSE);
        this.mState = 6;
        this.mCalled = false;
        onPause();
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onPause()"));
        }
    }

    public void performPictureInPictureModeChanged(boolean z) {
        onPictureInPictureModeChanged(z);
    }

    public boolean performPrepareOptionsMenu(@vo6 Menu menu) {
        boolean z = false;
        if (this.mHidden) {
            return false;
        }
        if (this.mHasMenu && this.mMenuVisible) {
            onPrepareOptionsMenu(menu);
            z = true;
        }
        return this.mChildFragmentManager.u(menu) | z;
    }

    public void performPrimaryNavigationFragmentChanged() {
        this.mFragmentManager.getClass();
        boolean zAp = ab.ap(this);
        Boolean bool = this.mIsPrimaryNavigationFragment;
        if (bool == null || bool.booleanValue() != zAp) {
            this.mIsPrimaryNavigationFragment = Boolean.valueOf(zAp);
            onPrimaryNavigationFragmentChanged(zAp);
            ab abVar = this.mChildFragmentManager;
            abVar.bj();
            abVar.s(abVar.aa);
        }
    }

    public void performResume() {
        this.mChildFragmentManager.as();
        this.mChildFragmentManager.aa(true);
        this.mState = 7;
        this.mCalled = false;
        onResume();
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onResume()"));
        }
        androidx.lifecycle.t tVar = this.mLifecycleRegistry;
        k.a aVar = k.a.ON_RESUME;
        tVar.f(aVar);
        if (this.mView != null) {
            this.mViewLifecycleOwner.e.f(aVar);
        }
        ab abVar = this.mChildFragmentManager;
        abVar.ai = false;
        abVar.aj = false;
        abVar.ap.f = false;
        abVar.v(7);
    }

    public void performSaveInstanceState(Bundle bundle) {
        onSaveInstanceState(bundle);
    }

    public void performStart() {
        this.mChildFragmentManager.as();
        this.mChildFragmentManager.aa(true);
        this.mState = 5;
        this.mCalled = false;
        onStart();
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onStart()"));
        }
        androidx.lifecycle.t tVar = this.mLifecycleRegistry;
        k.a aVar = k.a.ON_START;
        tVar.f(aVar);
        if (this.mView != null) {
            this.mViewLifecycleOwner.e.f(aVar);
        }
        ab abVar = this.mChildFragmentManager;
        abVar.ai = false;
        abVar.aj = false;
        abVar.ap.f = false;
        abVar.v(5);
    }

    public void performStop() {
        ab abVar = this.mChildFragmentManager;
        abVar.aj = true;
        abVar.ap.f = true;
        abVar.v(4);
        if (this.mView != null) {
            this.mViewLifecycleOwner.a(k.a.ON_STOP);
        }
        this.mLifecycleRegistry.f(k.a.ON_STOP);
        this.mState = 4;
        this.mCalled = false;
        onStop();
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onStop()"));
        }
    }

    public void performViewCreated() {
        Bundle bundle = this.mSavedFragmentState;
        onViewCreated(this.mView, bundle != null ? bundle.getBundle("savedInstanceState") : null);
        this.mChildFragmentManager.v(2);
    }

    public void postponeEnterTransition() {
        e().u = true;
    }

    @vo6
    @vm5
    public final <I, O> s9<I> registerForActivityResult(@vo6 p9<I, O> p9Var, @vo6 j9<O> j9Var) {
        return i(p9Var, new g(), j9Var);
    }

    public void registerForContextMenu(@vo6 View view) {
        view.setOnCreateContextMenuListener(this);
    }

    @Deprecated
    public final void requestPermissions(@vo6 String[] strArr, int i2) {
        if (this.mHost == null) {
            throw new IllegalStateException(n41.m("Fragment ", this, " not attached to Activity"));
        }
        ab parentFragmentManager = getParentFragmentManager();
        if (parentFragmentManager.af == null) {
            parentFragmentManager.x.getClass();
            cr4.g(strArr, "permissions");
        } else {
            parentFragmentManager.ag.addLast(new ab.j(this.mWho, i2));
            parentFragmentManager.af.a(strArr);
        }
    }

    @vo6
    public final t requireActivity() {
        t activity = getActivity();
        if (activity != null) {
            return activity;
        }
        throw new IllegalStateException(n41.m("Fragment ", this, " not attached to an activity."));
    }

    @vo6
    public final Bundle requireArguments() {
        Bundle arguments = getArguments();
        if (arguments != null) {
            return arguments;
        }
        throw new IllegalStateException(n41.m("Fragment ", this, " does not have any arguments."));
    }

    @vo6
    public final Context requireContext() {
        Context context = getContext();
        if (context != null) {
            return context;
        }
        throw new IllegalStateException(n41.m("Fragment ", this, " not attached to a context."));
    }

    @vo6
    @Deprecated
    public final ab requireFragmentManager() {
        return getParentFragmentManager();
    }

    @vo6
    public final Object requireHost() {
        Object host = getHost();
        if (host != null) {
            return host;
        }
        throw new IllegalStateException(n41.m("Fragment ", this, " not attached to a host."));
    }

    @vo6
    public final o requireParentFragment() {
        o parentFragment = getParentFragment();
        if (parentFragment != null) {
            return parentFragment;
        }
        if (getContext() == null) {
            throw new IllegalStateException(n41.m("Fragment ", this, " is not attached to any Fragment or host"));
        }
        throw new IllegalStateException("Fragment " + this + " is not a child Fragment, it is directly attached to " + getContext());
    }

    @vo6
    public final View requireView() {
        View view = getView();
        if (view != null) {
            return view;
        }
        throw new IllegalStateException(n41.m("Fragment ", this, " did not return a View from onCreateView() or this was called before onCreateView()."));
    }

    public void restoreChildFragmentState() {
        Bundle bundle;
        Bundle bundle2 = this.mSavedFragmentState;
        if (bundle2 == null || (bundle = bundle2.getBundle("childFragmentManager")) == null) {
            return;
        }
        this.mChildFragmentManager.ba(bundle);
        ab abVar = this.mChildFragmentManager;
        abVar.ai = false;
        abVar.aj = false;
        abVar.ap.f = false;
        abVar.v(1);
    }

    public final void restoreViewState(Bundle bundle) {
        SparseArray<Parcelable> sparseArray = this.mSavedViewState;
        if (sparseArray != null) {
            this.mView.restoreHierarchyState(sparseArray);
            this.mSavedViewState = null;
        }
        this.mCalled = false;
        onViewStateRestored(bundle);
        if (!this.mCalled) {
            throw new at(n41.m("Fragment ", this, " did not call through to super.onViewStateRestored()"));
        }
        if (this.mView != null) {
            this.mViewLifecycleOwner.a(k.a.ON_CREATE);
        }
    }

    public void setAllowEnterTransitionOverlap(boolean z) {
        e().p = Boolean.valueOf(z);
    }

    public void setAllowReturnTransitionOverlap(boolean z) {
        e().o = Boolean.valueOf(z);
    }

    public void setAnimations(@dk int i2, @dk int i3, @dk int i4, @dk int i5) {
        if (this.mAnimationInfo == null && i2 == 0 && i3 == 0 && i4 == 0 && i5 == 0) {
            return;
        }
        e().b = i2;
        e().c = i3;
        e().d = i4;
        e().e = i5;
    }

    public void setArguments(@rq6 Bundle bundle) {
        if (this.mFragmentManager != null && isStateSaved()) {
            throw new IllegalStateException("Fragment already added and state has been saved");
        }
        this.mArguments = bundle;
    }

    public void setEnterSharedElementCallback(@rq6 tp8 tp8Var) {
        e().q = tp8Var;
    }

    public void setEnterTransition(@rq6 Object obj) {
        e().i = obj;
    }

    public void setExitSharedElementCallback(@rq6 tp8 tp8Var) {
        e().r = tp8Var;
    }

    public void setExitTransition(@rq6 Object obj) {
        e().k = obj;
    }

    public void setFocusedView(View view) {
        e().t = view;
    }

    @Deprecated
    public void setHasOptionsMenu(boolean z) {
        if (this.mHasMenu != z) {
            this.mHasMenu = z;
            if (!isAdded() || isHidden()) {
                return;
            }
            this.mHost.h();
        }
    }

    public void setInitialSavedState(@rq6 l lVar) {
        Bundle bundle;
        if (this.mFragmentManager != null) {
            throw new IllegalStateException("Fragment already added");
        }
        if (lVar == null || (bundle = lVar.a) == null) {
            bundle = null;
        }
        this.mSavedFragmentState = bundle;
    }

    public void setMenuVisibility(boolean z) {
        if (this.mMenuVisible != z) {
            this.mMenuVisible = z;
            if (this.mHasMenu && isAdded() && !isHidden()) {
                this.mHost.h();
            }
        }
    }

    public void setNextTransition(int i2) {
        if (this.mAnimationInfo == null && i2 == 0) {
            return;
        }
        e();
        this.mAnimationInfo.f = i2;
    }

    public void setPopDirection(boolean z) {
        if (this.mAnimationInfo == null) {
            return;
        }
        e().a = z;
    }

    public void setPostOnViewCreatedAlpha(float f2) {
        e().s = f2;
    }

    public void setReenterTransition(@rq6 Object obj) {
        e().l = obj;
    }

    @Deprecated
    public void setRetainInstance(boolean z) {
        rn3.c cVar = rn3.a;
        rn3.b(new rl8(this, "Attempting to set retain instance for fragment " + this));
        rn3.a(this).getClass();
        this.mRetainInstance = z;
        ab abVar = this.mFragmentManager;
        if (abVar == null) {
            this.mRetainInstanceChangedWhileDetached = true;
        } else if (z) {
            abVar.ap.b(this);
        } else {
            abVar.ap.d(this);
        }
    }

    public void setReturnTransition(@rq6 Object obj) {
        e().j = obj;
    }

    public void setSharedElementEnterTransition(@rq6 Object obj) {
        e().m = obj;
    }

    public void setSharedElementNames(@rq6 ArrayList<String> arrayList, @rq6 ArrayList<String> arrayList2) {
        e();
        i iVar = this.mAnimationInfo;
        iVar.g = arrayList;
        iVar.h = arrayList2;
    }

    public void setSharedElementReturnTransition(@rq6 Object obj) {
        e().n = obj;
    }

    @Deprecated
    public void setTargetFragment(@rq6 o oVar, int i2) {
        if (oVar != null) {
            rn3.c cVar = rn3.a;
            rn3.b(new sl8(this, "Attempting to set target fragment " + oVar + " with request code " + i2 + " for fragment " + this));
            rn3.a(this).getClass();
        }
        ab abVar = this.mFragmentManager;
        ab abVar2 = oVar != null ? oVar.mFragmentManager : null;
        if (abVar != null && abVar2 != null && abVar != abVar2) {
            throw new IllegalArgumentException(n41.m("Fragment ", oVar, " must share the same FragmentManager to be set as a target fragment"));
        }
        for (o oVarG = oVar; oVarG != null; oVarG = oVarG.g(false)) {
            if (oVarG.equals(this)) {
                throw new IllegalArgumentException("Setting " + oVar + " as the target of " + this + " would create a target cycle");
            }
        }
        if (oVar == null) {
            this.mTargetWho = null;
            this.mTarget = null;
        } else if (this.mFragmentManager == null || oVar.mFragmentManager == null) {
            this.mTargetWho = null;
            this.mTarget = oVar;
        } else {
            this.mTargetWho = oVar.mWho;
            this.mTarget = null;
        }
        this.mTargetRequestCode = i2;
    }

    @Deprecated
    public void setUserVisibleHint(boolean z) {
        rn3.c cVar = rn3.a;
        rn3.b(new tl8(this, "Attempting to set user visible hint to " + z + " for fragment " + this));
        rn3.a(this).getClass();
        boolean z2 = false;
        if (!this.mUserVisibleHint && z && this.mState < 5 && this.mFragmentManager != null && isAdded() && this.mIsCreated) {
            ab abVar = this.mFragmentManager;
            aj ajVarH = abVar.h(this);
            o oVar = ajVarH.c;
            if (oVar.mDeferStart) {
                if (abVar.b) {
                    abVar.al = true;
                } else {
                    oVar.mDeferStart = false;
                    ajVarH.i();
                }
            }
        }
        this.mUserVisibleHint = z;
        if (this.mState < 5 && !z) {
            z2 = true;
        }
        this.mDeferStart = z2;
        if (this.mSavedFragmentState != null) {
            this.mSavedUserVisibleHint = Boolean.valueOf(z);
        }
    }

    public boolean shouldShowRequestPermissionRationale(@vo6 String str) {
        w<?> wVar = this.mHost;
        if (wVar != null) {
            return wVar.g(str);
        }
        return false;
    }

    public void startActivity(@vo6 Intent intent) {
        startActivity(intent, null);
    }

    @Deprecated
    public void startActivityForResult(@vo6 Intent intent, int i2) {
        startActivityForResult(intent, i2, null);
    }

    @Deprecated
    public void startIntentSenderForResult(@vo6 IntentSender intentSender, int i2, @rq6 Intent intent, int i3, int i4, int i5, @rq6 Bundle bundle) throws IntentSender.SendIntentException {
        if (this.mHost == null) {
            throw new IllegalStateException(n41.m("Fragment ", this, " not attached to Activity"));
        }
        if (ab.am(2)) {
            toString();
            Objects.toString(intentSender);
            Objects.toString(intent);
            Objects.toString(bundle);
        }
        ab parentFragmentManager = getParentFragmentManager();
        if (parentFragmentManager.ae == null) {
            w wVar = parentFragmentManager.x;
            wVar.getClass();
            cr4.g(intentSender, "intent");
            if (i2 != -1) {
                throw new IllegalStateException("Starting intent sender with a requestCode requires a FragmentActivity host");
            }
            t tVar = wVar.a;
            if (tVar == null) {
                throw new IllegalStateException("Starting intent sender with a requestCode requires a FragmentActivity host");
            }
            tVar.startIntentSenderForResult(intentSender, i2, intent, i3, i4, i5, bundle);
            return;
        }
        if (bundle != null) {
            if (intent == null) {
                intent = new Intent();
                intent.putExtra("androidx.fragment.extra.ACTIVITY_OPTIONS_BUNDLE", true);
            }
            if (ab.am(2)) {
                bundle.toString();
                intent.toString();
                Objects.toString(this);
            }
            intent.putExtra("androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE", bundle);
        }
        xp4.a aVar = new xp4.a(intentSender);
        aVar.b = intent;
        aVar.d = i4;
        aVar.c = i3;
        xp4 xp4VarA = aVar.a();
        parentFragmentManager.ag.addLast(new ab.j(this.mWho, i2));
        if (ab.am(2)) {
            toString();
        }
        parentFragmentManager.ae.a(xp4VarA);
    }

    public void startPostponedEnterTransition() {
        if (this.mAnimationInfo == null || !e().u) {
            return;
        }
        if (this.mHost == null) {
            e().u = false;
        } else if (Looper.myLooper() != this.mHost.c.getLooper()) {
            this.mHost.c.postAtFrontOfQueue(new c());
        } else {
            callStartTransitionListener(true);
        }
    }

    @vo6
    public String toString() {
        StringBuilder sb = new StringBuilder(128);
        sb.append(getClass().getSimpleName());
        sb.append("{");
        sb.append(Integer.toHexString(System.identityHashCode(this)));
        sb.append("} (");
        sb.append(this.mWho);
        if (this.mFragmentId != 0) {
            sb.append(" id=0x");
            sb.append(Integer.toHexString(this.mFragmentId));
        }
        if (this.mTag != null) {
            sb.append(" tag=");
            sb.append(this.mTag);
        }
        sb.append(")");
        return sb.toString();
    }

    public void unregisterForContextMenu(@vo6 View view) {
        view.setOnCreateContextMenuListener(null);
    }

    @vo6
    @Deprecated
    public static o instantiate(@vo6 Context context, @vo6 String str, @rq6 Bundle bundle) {
        try {
            o oVar = (o) v.c(context.getClassLoader(), str).getConstructor(null).newInstance(null);
            if (bundle == null) {
                return oVar;
            }
            bundle.setClassLoader(oVar.getClass().getClassLoader());
            oVar.setArguments(bundle);
            return oVar;
        } catch (IllegalAccessException e2) {
            throw new j(vw2.ab("Unable to instantiate fragment ", str, ": make sure class name exists, is public, and has an empty constructor that is public"), e2);
        } catch (InstantiationException e3) {
            throw new j(vw2.ab("Unable to instantiate fragment ", str, ": make sure class name exists, is public, and has an empty constructor that is public"), e3);
        } catch (NoSuchMethodException e4) {
            throw new j(vw2.ab("Unable to instantiate fragment ", str, ": could not find Fragment constructor"), e4);
        } catch (InvocationTargetException e5) {
            throw new j(vw2.ab("Unable to instantiate fragment ", str, ": calling Fragment constructor caused an exception"), e5);
        }
    }

    @vo6
    public final String getString(@t79 int i2, @rq6 Object... objArr) {
        return getResources().getString(i2, objArr);
    }

    public final void postponeEnterTransition(long j2, @vo6 TimeUnit timeUnit) {
        e().u = true;
        Handler handler = this.mPostponedHandler;
        if (handler != null) {
            handler.removeCallbacks(this.mPostponedDurationRunnable);
        }
        ab abVar = this.mFragmentManager;
        if (abVar != null) {
            this.mPostponedHandler = abVar.x.c;
        } else {
            this.mPostponedHandler = new Handler(Looper.getMainLooper());
        }
        this.mPostponedHandler.removeCallbacks(this.mPostponedDurationRunnable);
        this.mPostponedHandler.postDelayed(this.mPostponedDurationRunnable, timeUnit.toMillis(j2));
    }

    @vo6
    @vm5
    public final <I, O> s9<I> registerForActivityResult(@vo6 p9<I, O> p9Var, @vo6 x9 x9Var, @vo6 j9<O> j9Var) {
        return i(p9Var, new h(x9Var), j9Var);
    }

    public void startActivity(@vo6 Intent intent, @rq6 Bundle bundle) {
        w<?> wVar = this.mHost;
        if (wVar == null) {
            throw new IllegalStateException(n41.m("Fragment ", this, " not attached to Activity"));
        }
        cr4.g(intent, "intent");
        sf1.startActivity(wVar.b, intent, bundle);
    }

    @Deprecated
    public void startActivityForResult(@vo6 Intent intent, int i2, @rq6 Bundle bundle) {
        if (this.mHost == null) {
            throw new IllegalStateException(n41.m("Fragment ", this, " not attached to Activity"));
        }
        ab parentFragmentManager = getParentFragmentManager();
        if (parentFragmentManager.ad != null) {
            parentFragmentManager.ag.addLast(new ab.j(this.mWho, i2));
            if (bundle != null) {
                intent.putExtra("androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE", bundle);
            }
            parentFragmentManager.ad.a(intent);
            return;
        }
        w wVar = parentFragmentManager.x;
        wVar.getClass();
        cr4.g(intent, "intent");
        if (i2 != -1) {
            throw new IllegalStateException("Starting activity with a requestCode requires a FragmentActivity host");
        }
        sf1.startActivity(wVar.b, intent, bundle);
    }

    @m38
    @vo6
    @Deprecated
    public LayoutInflater getLayoutInflater(@rq6 Bundle bundle) {
        w<?> wVar = this.mHost;
        if (wVar != null) {
            LayoutInflater layoutInflaterF = wVar.f();
            layoutInflaterF.setFactory2(this.mChildFragmentManager.f);
            return layoutInflaterF;
        }
        throw new IllegalStateException("onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager.");
    }

    @or0
    @Deprecated
    @vm5
    public void onAttach(@vo6 Activity activity) {
        this.mCalled = true;
    }

    @x4a
    @or0
    @Deprecated
    public void onInflate(@vo6 Activity activity, @vo6 AttributeSet attributeSet, @rq6 Bundle bundle) {
        this.mCalled = true;
    }

    public o(int i2) {
        this();
        this.mContentLayoutId = i2;
    }
}
