* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
780 lines
56 KiB
Java
780 lines
56 KiB
Java
package kotlin.collections;
|
|
|
|
import android.R;
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.Comparator;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.NoSuchElementException;
|
|
import kotlin.Metadata;
|
|
import kotlin.OverloadResolutionByLambdaReturnType;
|
|
import kotlin.Pair;
|
|
import kotlin.SinceKotlin;
|
|
import kotlin.Unit;
|
|
import kotlin.internal.HidesMembers;
|
|
import kotlin.internal.InlineOnly;
|
|
import kotlin.jvm.JvmName;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.sequences.Sequence;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
@Metadata(d1 = {"\u0000z\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0002\u0010$\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010&\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001c\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u001f\n\u0002\b\b\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000f\n\u0002\b\u0004\n\u0002\u0010\u0006\n\u0002\u0010\u0007\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0015\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\u001a[\u0010\u0000\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\b\b\u0002\u0010\u0001*\u00020\u0004*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052 \u0010\u0006\u001a\u001c\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0006\u0012\u0004\u0018\u0001H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\t\u001a]\u0010\n\u001a\u0004\u0018\u0001H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\b\b\u0002\u0010\u0001*\u00020\u0004*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052 \u0010\u0006\u001a\u001c\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0006\u0012\u0004\u0018\u0001H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\t\u001a6\u0010\u000b\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\r0\f\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005\u001a\\\u0010\u000e\u001a\b\u0012\u0004\u0012\u0002H\u00010\f\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052$\u0010\u0006\u001a \u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00010\u000f0\u0007H\u0086\bø\u0001\u0000\u001aa\u0010\u000e\u001a\b\u0012\u0004\u0012\u0002H\u00010\f\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052$\u0010\u0006\u001a \u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00010\u00100\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\b\u0011\u001au\u0010\u0012\u001a\u0002H\u0013\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001\"\u0010\b\u0003\u0010\u0013*\n\u0012\u0006\b\u0000\u0012\u0002H\u00010\u0014*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u0006\u0010\u0015\u001a\u0002H\u00132$\u0010\u0006\u001a \u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00010\u000f0\u0007H\u0086\bø\u0001\u0000¢\u0006\u0002\u0010\u0016\u001aw\u0010\u0012\u001a\u0002H\u0013\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001\"\u0010\b\u0003\u0010\u0013*\n\u0012\u0006\b\u0000\u0012\u0002H\u00010\u0014*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u0006\u0010\u0015\u001a\u0002H\u00132$\u0010\u0006\u001a \u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00010\u00100\u0007H\u0087\bø\u0001\u0000¢\u0006\u0004\b\u0017\u0010\u0016\u001aV\u0010\u0018\u001a\b\u0012\u0004\u0012\u0002H\u00010\f\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010\u0006\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0086\bø\u0001\u0000\u001a\\\u0010\u0019\u001a\b\u0012\u0004\u0012\u0002H\u00010\f\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\b\b\u0002\u0010\u0001*\u00020\u0004*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052 \u0010\u0006\u001a\u001c\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0006\u0012\u0004\u0018\u0001H\u00010\u0007H\u0086\bø\u0001\u0000\u001au\u0010\u001a\u001a\u0002H\u0013\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\b\b\u0002\u0010\u0001*\u00020\u0004\"\u0010\b\u0003\u0010\u0013*\n\u0012\u0006\b\u0000\u0012\u0002H\u00010\u0014*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u0006\u0010\u0015\u001a\u0002H\u00132 \u0010\u0006\u001a\u001c\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0006\u0012\u0004\u0018\u0001H\u00010\u0007H\u0086\bø\u0001\u0000¢\u0006\u0002\u0010\u0016\u001ao\u0010\u001b\u001a\u0002H\u0013\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001\"\u0010\b\u0003\u0010\u0013*\n\u0012\u0006\b\u0000\u0012\u0002H\u00010\u0014*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u0006\u0010\u0015\u001a\u0002H\u00132\u001e\u0010\u0006\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0086\bø\u0001\u0000¢\u0006\u0002\u0010\u0016\u001aJ\u0010\u001c\u001a\u00020\u001d\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010\u001e\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020\u001d0\u0007H\u0086\bø\u0001\u0000\u001a$\u0010\u001f\u001a\u00020\u001d\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005\u001aJ\u0010\u001f\u001a\u00020\u001d\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010\u001e\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020\u001d0\u0007H\u0086\bø\u0001\u0000\u001a'\u0010 \u001a\u00020!\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005H\u0087\b\u001aJ\u0010 \u001a\u00020!\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010\u001e\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020\u001d0\u0007H\u0086\bø\u0001\u0000\u001aJ\u0010\"\u001a\u00020#\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010$\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020#0\u0007H\u0087\bø\u0001\u0000\u001ak\u0010%\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010&*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\b(\u001ah\u0010)\u001a\u0010\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0018\u00010\b\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010&*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000\u001aJ\u0010*\u001a\u00020+\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020+0\u0007H\u0087\bø\u0001\u0000\u001aJ\u0010*\u001a\u00020,\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020,0\u0007H\u0087\bø\u0001\u0000\u001a_\u0010*\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010&*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010-\u001aQ\u0010.\u001a\u0004\u0018\u00010+\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020+0\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010/\u001aQ\u0010.\u001a\u0004\u0018\u00010,\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020,0\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u00100\u001aa\u0010.\u001a\u0004\u0018\u0001H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010&*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010-\u001aq\u00101\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001a\u00102\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\u000103j\n\u0012\u0006\b\u0000\u0012\u0002H\u0001`42\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u00105\u001as\u00106\u001a\u0004\u0018\u0001H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001a\u00102\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\u000103j\n\u0012\u0006\b\u0000\u0012\u0002H\u0001`42\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u00105\u001an\u00107\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u000522\u00102\u001a.\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b03j\u0016\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b`4H\u0087\b¢\u0006\u0004\b8\u00109\u001an\u0010:\u001a\u0010\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0018\u00010\b\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u000522\u00102\u001a.\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b03j\u0016\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b`4H\u0087\b¢\u0006\u0002\u00109\u001ak\u0010;\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010&*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\b<\u001ah\u0010=\u001a\u0010\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0018\u00010\b\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010&*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000\u001aJ\u0010>\u001a\u00020+\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020+0\u0007H\u0087\bø\u0001\u0000\u001aJ\u0010>\u001a\u00020,\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020,0\u0007H\u0087\bø\u0001\u0000\u001a_\u0010>\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010&*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010-\u001aQ\u0010?\u001a\u0004\u0018\u00010+\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020+0\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010/\u001aQ\u0010?\u001a\u0004\u0018\u00010,\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020,0\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u00100\u001aa\u0010?\u001a\u0004\u0018\u0001H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u000e\b\u0002\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010&*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010-\u001aq\u0010@\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001a\u00102\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\u000103j\n\u0012\u0006\b\u0000\u0012\u0002H\u0001`42\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u00105\u001as\u0010A\u001a\u0004\u0018\u0001H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0004\b\u0002\u0010\u0001*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001a\u00102\u001a\u0016\u0012\u0006\b\u0000\u0012\u0002H\u000103j\n\u0012\u0006\b\u0000\u0012\u0002H\u0001`42\u001e\u0010'\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u0002H\u00010\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u00105\u001an\u0010B\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u000522\u00102\u001a.\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b03j\u0016\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b`4H\u0087\b¢\u0006\u0004\bC\u00109\u001an\u0010D\u001a\u0010\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0018\u00010\b\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u000522\u00102\u001a.\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b03j\u0016\u0012\u0012\b\u0000\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b`4H\u0087\b¢\u0006\u0002\u00109\u001a$\u0010E\u001a\u00020\u001d\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005\u001aJ\u0010E\u001a\u00020\u001d\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00052\u001e\u0010\u001e\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020\u001d0\u0007H\u0086\bø\u0001\u0000\u001aY\u0010F\u001a\u0002HG\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0016\b\u0002\u0010G*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005*\u0002HG2\u001e\u0010$\u001a\u001a\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020#0\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010H\u001an\u0010I\u001a\u0002HG\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003\"\u0016\b\u0002\u0010G*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005*\u0002HG23\u0010$\u001a/\u0012\u0013\u0012\u00110!¢\u0006\f\bK\u0012\b\bL\u0012\u0004\b\b(M\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b\u0012\u0004\u0012\u00020#0JH\u0087\bø\u0001\u0000¢\u0006\u0002\u0010N\u001a9\u0010O\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b0\u000f\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005H\u0087\b\u001a6\u0010P\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\b0\u0010\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006Q"}, d2 = {"firstNotNullOf", "R", "K", "V", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "transform", "Lkotlin/Function1;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;", "firstNotNullOfOrNull", "toList", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Lkotlin/Pair;", "flatMap", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Lkotlin/sequences/Sequence;", "flatMapSequence", "flatMapTo", "C", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "destination", "(Ljava/util/Map;Ljava/util/Collection;Lkotlin/jvm/functions/Function1;)Ljava/util/Collection;", "flatMapSequenceTo", "map", "mapNotNull", "mapNotNullTo", "mapTo", "all", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "predicate", "any", "count", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "forEach", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "action", "maxBy", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "selector", "maxByOrThrow", "maxByOrNull", "maxOf", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)Ljava/lang/Comparable;", "maxOfOrNull", "(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)Ljava/lang/Double;", "(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)Ljava/lang/Float;", "maxOfWith", "comparator", "Ljava/util/Comparator;", "Lkotlin/Comparator;", "(Ljava/util/Map;Ljava/util/Comparator;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;", "maxOfWithOrNull", "maxWith", "maxWithOrThrow", "(Ljava/util/Map;Ljava/util/Comparator;)Ljava/util/Map$Entry;", "maxWithOrNull", "minBy", "minByOrThrow", "minByOrNull", "minOf", "minOfOrNull", "minOfWith", "minOfWithOrNull", "minWith", "minWithOrThrow", "minWithOrNull", "none", "onEach", "M", "(Ljava/util/Map;Lkotlin/jvm/functions/Function1;)Ljava/util/Map;", "onEachIndexed", "Lkotlin/Function2;", "Lkotlin/ParameterName;", "name", "index", "(Ljava/util/Map;Lkotlin/jvm/functions/Function2;)Ljava/util/Map;", "asIterable", "asSequence", "kotlin-stdlib"}, k = 5, mv = {2, 2, 0}, xi = 49, xs = "kotlin/collections/MapsKt")
|
|
@SourceDebugExtension({"SMAP\n_Maps.kt\nKotlin\n*S Kotlin\n*F\n+ 1 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,671:1\n97#1,5:672\n112#1,5:677\n153#1,3:682\n144#1:685\n216#1:686\n217#1:688\n145#1:689\n216#1:690\n217#1:692\n1#2:687\n1#2:691\n1969#3,14:693\n1999#3,14:707\n2393#3,14:721\n2423#3,14:735\n1878#3,3:749\n*S KotlinDebug\n*F\n+ 1 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n*L\n77#1:672,5\n90#1:677,5\n126#1:682,3\n136#1:685\n136#1:686\n136#1:688\n136#1:689\n144#1:690\n144#1:692\n136#1:687\n238#1:693,14\n256#1:707,14\n436#1:721,14\n454#1:735,14\n651#1:749,3\n*E\n"})
|
|
/* loaded from: classes3.dex */
|
|
class MapsKt___MapsKt extends MapsKt___MapsJvmKt {
|
|
public static final <K, V> boolean all(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, Boolean> predicate) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
|
if (map.isEmpty()) {
|
|
return true;
|
|
}
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
if (!predicate.invoke(it.next()).booleanValue()) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public static final <K, V> boolean any(@NotNull Map<? extends K, ? extends V> map) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
return !map.isEmpty();
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final <K, V> Iterable<Map.Entry<K, V>> asIterable(Map<? extends K, ? extends V> map) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
return map.entrySet();
|
|
}
|
|
|
|
@NotNull
|
|
public static final <K, V> Sequence<Map.Entry<K, V>> asSequence(@NotNull Map<? extends K, ? extends V> map) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
return CollectionsKt___CollectionsKt.asSequence(map.entrySet());
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final <K, V> int count(Map<? extends K, ? extends V> map) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
return map.size();
|
|
}
|
|
|
|
@SinceKotlin(version = "1.5")
|
|
@InlineOnly
|
|
private static final <K, V, R> R firstNotNullOf(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> transform) {
|
|
R r;
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (true) {
|
|
if (it.hasNext()) {
|
|
r = transform.invoke(it.next());
|
|
if (r != null) {
|
|
break;
|
|
}
|
|
} else {
|
|
r = null;
|
|
break;
|
|
}
|
|
}
|
|
if (r != null) {
|
|
return r;
|
|
}
|
|
throw new NoSuchElementException("No element of the map was transformed to a non-null value.");
|
|
}
|
|
|
|
@SinceKotlin(version = "1.5")
|
|
@InlineOnly
|
|
private static final <K, V, R> R firstNotNullOfOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
R invoke = transform.invoke(it.next());
|
|
if (invoke != null) {
|
|
return invoke;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@NotNull
|
|
public static final <K, V, R> List<R> flatMap(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, ? extends Iterable<? extends R>> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
ArrayList arrayList = new ArrayList();
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
CollectionsKt__MutableCollectionsKt.addAll(arrayList, transform.invoke(it.next()));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@JvmName(name = "flatMapSequence")
|
|
@NotNull
|
|
@OverloadResolutionByLambdaReturnType
|
|
public static final <K, V, R> List<R> flatMapSequence(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, ? extends Sequence<? extends R>> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
ArrayList arrayList = new ArrayList();
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
CollectionsKt__MutableCollectionsKt.addAll(arrayList, transform.invoke(it.next()));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@JvmName(name = "flatMapSequenceTo")
|
|
@NotNull
|
|
@OverloadResolutionByLambdaReturnType
|
|
public static final <K, V, R, C extends Collection<? super R>> C flatMapSequenceTo(@NotNull Map<? extends K, ? extends V> map, @NotNull C destination, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, ? extends Sequence<? extends R>> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(destination, "destination");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
CollectionsKt__MutableCollectionsKt.addAll(destination, transform.invoke(it.next()));
|
|
}
|
|
return destination;
|
|
}
|
|
|
|
@NotNull
|
|
public static final <K, V, R, C extends Collection<? super R>> C flatMapTo(@NotNull Map<? extends K, ? extends V> map, @NotNull C destination, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, ? extends Iterable<? extends R>> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(destination, "destination");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
CollectionsKt__MutableCollectionsKt.addAll(destination, transform.invoke(it.next()));
|
|
}
|
|
return destination;
|
|
}
|
|
|
|
@HidesMembers
|
|
public static final <K, V> void forEach(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, Unit> action) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(action, "action");
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
action.invoke(it.next());
|
|
}
|
|
}
|
|
|
|
@NotNull
|
|
public static final <K, V, R> List<R> map(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
ArrayList arrayList = new ArrayList(map.size());
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
arrayList.add(transform.invoke(it.next()));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
@NotNull
|
|
public static final <K, V, R> List<R> mapNotNull(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
ArrayList arrayList = new ArrayList();
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
R invoke = transform.invoke(it.next());
|
|
if (invoke != null) {
|
|
arrayList.add(invoke);
|
|
}
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
@NotNull
|
|
public static final <K, V, R, C extends Collection<? super R>> C mapNotNullTo(@NotNull Map<? extends K, ? extends V> map, @NotNull C destination, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(destination, "destination");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
R invoke = transform.invoke(it.next());
|
|
if (invoke != null) {
|
|
destination.add(invoke);
|
|
}
|
|
}
|
|
return destination;
|
|
}
|
|
|
|
@NotNull
|
|
public static final <K, V, R, C extends Collection<? super R>> C mapTo(@NotNull Map<? extends K, ? extends V> map, @NotNull C destination, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> transform) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(destination, "destination");
|
|
Intrinsics.checkNotNullParameter(transform, "transform");
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
destination.add(transform.invoke(it.next()));
|
|
}
|
|
return destination;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@InlineOnly
|
|
private static final <K, V, R extends Comparable<? super R>> Map.Entry<K, V> maxByOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Map.Entry<K, V> entry;
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
entry = null;
|
|
} else {
|
|
Map.Entry<K, V> entry2 = (Object) it.next();
|
|
if (it.hasNext()) {
|
|
R invoke = selector.invoke(entry2);
|
|
do {
|
|
Map.Entry<K, V> entry3 = (Object) it.next();
|
|
R invoke2 = selector.invoke(entry3);
|
|
if (invoke.compareTo(invoke2) < 0) {
|
|
entry2 = entry3;
|
|
invoke = invoke2;
|
|
}
|
|
} while (it.hasNext());
|
|
}
|
|
entry = entry2;
|
|
}
|
|
return entry;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.7")
|
|
@InlineOnly
|
|
@JvmName(name = "maxByOrThrow")
|
|
private static final <K, V, R extends Comparable<? super R>> Map.Entry<K, V> maxByOrThrow(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (it.hasNext()) {
|
|
Map.Entry<K, V> entry = (Object) it.next();
|
|
if (it.hasNext()) {
|
|
R invoke = selector.invoke(entry);
|
|
do {
|
|
Map.Entry<K, V> entry2 = (Object) it.next();
|
|
R invoke2 = selector.invoke(entry2);
|
|
if (invoke.compareTo(invoke2) < 0) {
|
|
entry = entry2;
|
|
invoke = invoke2;
|
|
}
|
|
} while (it.hasNext());
|
|
}
|
|
return entry;
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
private static final <K, V> double maxOf(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, Double> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
double doubleValue = selector.invoke((Object) it.next()).doubleValue();
|
|
while (it.hasNext()) {
|
|
doubleValue = Math.max(doubleValue, selector.invoke((Object) it.next()).doubleValue());
|
|
}
|
|
return doubleValue;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
/* renamed from: maxOfOrNull, reason: collision with other method in class */
|
|
private static final <K, V> Double m479maxOfOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, Double> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return null;
|
|
}
|
|
double doubleValue = selector.invoke((Object) it.next()).doubleValue();
|
|
while (it.hasNext()) {
|
|
doubleValue = Math.max(doubleValue, selector.invoke((Object) it.next()).doubleValue());
|
|
}
|
|
return Double.valueOf(doubleValue);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
private static final <K, V, R> R maxOfWith(Map<? extends K, ? extends V> map, Comparator<? super R> comparator, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator it = map.entrySet().iterator();
|
|
if (it.hasNext()) {
|
|
Object obj = (R) selector.invoke((Object) it.next());
|
|
while (it.hasNext()) {
|
|
Object obj2 = (R) selector.invoke((Object) it.next());
|
|
if (comparator.compare(obj, obj2) < 0) {
|
|
obj = (R) obj2;
|
|
}
|
|
}
|
|
return (R) obj;
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
private static final <K, V, R> R maxOfWithOrNull(Map<? extends K, ? extends V> map, Comparator<? super R> comparator, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return null;
|
|
}
|
|
Object obj = (R) selector.invoke((Object) it.next());
|
|
while (it.hasNext()) {
|
|
Object obj2 = (R) selector.invoke((Object) it.next());
|
|
if (comparator.compare(obj, obj2) < 0) {
|
|
obj = (R) obj2;
|
|
}
|
|
}
|
|
return (R) obj;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@InlineOnly
|
|
private static final <K, V> Map.Entry<K, V> maxWithOrNull(Map<? extends K, ? extends V> map, Comparator<? super Map.Entry<? extends K, ? extends V>> comparator) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return (Map.Entry) CollectionsKt___CollectionsKt.maxWithOrNull(map.entrySet(), comparator);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.7")
|
|
@InlineOnly
|
|
@JvmName(name = "maxWithOrThrow")
|
|
private static final <K, V> Map.Entry<K, V> maxWithOrThrow(Map<? extends K, ? extends V> map, Comparator<? super Map.Entry<? extends K, ? extends V>> comparator) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return (Map.Entry) CollectionsKt___CollectionsKt.maxWithOrThrow(map.entrySet(), comparator);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@InlineOnly
|
|
private static final <K, V, R extends Comparable<? super R>> Map.Entry<K, V> minByOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Map.Entry<K, V> entry;
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
entry = null;
|
|
} else {
|
|
Map.Entry<K, V> entry2 = (Object) it.next();
|
|
if (it.hasNext()) {
|
|
R invoke = selector.invoke(entry2);
|
|
do {
|
|
Map.Entry<K, V> entry3 = (Object) it.next();
|
|
R invoke2 = selector.invoke(entry3);
|
|
if (invoke.compareTo(invoke2) > 0) {
|
|
entry2 = entry3;
|
|
invoke = invoke2;
|
|
}
|
|
} while (it.hasNext());
|
|
}
|
|
entry = entry2;
|
|
}
|
|
return entry;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.7")
|
|
@InlineOnly
|
|
@JvmName(name = "minByOrThrow")
|
|
private static final <K, V, R extends Comparable<? super R>> Map.Entry<K, V> minByOrThrow(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (it.hasNext()) {
|
|
Map.Entry<K, V> entry = (Object) it.next();
|
|
if (it.hasNext()) {
|
|
R invoke = selector.invoke(entry);
|
|
do {
|
|
Map.Entry<K, V> entry2 = (Object) it.next();
|
|
R invoke2 = selector.invoke(entry2);
|
|
if (invoke.compareTo(invoke2) > 0) {
|
|
entry = entry2;
|
|
invoke = invoke2;
|
|
}
|
|
} while (it.hasNext());
|
|
}
|
|
return entry;
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
private static final <K, V> double minOf(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, Double> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
double doubleValue = selector.invoke((Object) it.next()).doubleValue();
|
|
while (it.hasNext()) {
|
|
doubleValue = Math.min(doubleValue, selector.invoke((Object) it.next()).doubleValue());
|
|
}
|
|
return doubleValue;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
/* renamed from: minOfOrNull, reason: collision with other method in class */
|
|
private static final <K, V> Double m483minOfOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, Double> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return null;
|
|
}
|
|
double doubleValue = selector.invoke((Object) it.next()).doubleValue();
|
|
while (it.hasNext()) {
|
|
doubleValue = Math.min(doubleValue, selector.invoke((Object) it.next()).doubleValue());
|
|
}
|
|
return Double.valueOf(doubleValue);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
private static final <K, V, R> R minOfWith(Map<? extends K, ? extends V> map, Comparator<? super R> comparator, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator it = map.entrySet().iterator();
|
|
if (it.hasNext()) {
|
|
Object obj = (R) selector.invoke((Object) it.next());
|
|
while (it.hasNext()) {
|
|
Object obj2 = (R) selector.invoke((Object) it.next());
|
|
if (comparator.compare(obj, obj2) > 0) {
|
|
obj = (R) obj2;
|
|
}
|
|
}
|
|
return (R) obj;
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
private static final <K, V, R> R minOfWithOrNull(Map<? extends K, ? extends V> map, Comparator<? super R> comparator, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return null;
|
|
}
|
|
Object obj = (R) selector.invoke((Object) it.next());
|
|
while (it.hasNext()) {
|
|
Object obj2 = (R) selector.invoke((Object) it.next());
|
|
if (comparator.compare(obj, obj2) > 0) {
|
|
obj = (R) obj2;
|
|
}
|
|
}
|
|
return (R) obj;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@InlineOnly
|
|
private static final <K, V> Map.Entry<K, V> minWithOrNull(Map<? extends K, ? extends V> map, Comparator<? super Map.Entry<? extends K, ? extends V>> comparator) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return (Map.Entry) CollectionsKt___CollectionsKt.minWithOrNull(map.entrySet(), comparator);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.7")
|
|
@InlineOnly
|
|
@JvmName(name = "minWithOrThrow")
|
|
private static final <K, V> Map.Entry<K, V> minWithOrThrow(Map<? extends K, ? extends V> map, Comparator<? super Map.Entry<? extends K, ? extends V>> comparator) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return (Map.Entry) CollectionsKt___CollectionsKt.minWithOrThrow(map.entrySet(), comparator);
|
|
}
|
|
|
|
public static final <K, V> boolean none(@NotNull Map<? extends K, ? extends V> map) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
return map.isEmpty();
|
|
}
|
|
|
|
@SinceKotlin(version = "1.1")
|
|
@NotNull
|
|
public static final <K, V, M extends Map<? extends K, ? extends V>> M onEach(@NotNull M m, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, Unit> action) {
|
|
Intrinsics.checkNotNullParameter(m, "<this>");
|
|
Intrinsics.checkNotNullParameter(action, "action");
|
|
Iterator<Map.Entry<K, V>> it = m.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
action.invoke(it.next());
|
|
}
|
|
return m;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@NotNull
|
|
public static final <K, V, M extends Map<? extends K, ? extends V>> M onEachIndexed(@NotNull M m, @NotNull Function2<? super Integer, ? super Map.Entry<? extends K, ? extends V>, Unit> action) {
|
|
Intrinsics.checkNotNullParameter(m, "<this>");
|
|
Intrinsics.checkNotNullParameter(action, "action");
|
|
Iterator<T> it = m.entrySet().iterator();
|
|
int i = 0;
|
|
while (it.hasNext()) {
|
|
R.anim animVar = (Object) it.next();
|
|
int i2 = i + 1;
|
|
if (i < 0) {
|
|
CollectionsKt__CollectionsKt.throwIndexOverflow();
|
|
}
|
|
action.invoke(Integer.valueOf(i), animVar);
|
|
i = i2;
|
|
}
|
|
return m;
|
|
}
|
|
|
|
@NotNull
|
|
public static final <K, V> List<Pair<K, V>> toList(@NotNull Map<? extends K, ? extends V> map) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
if (map.size() == 0) {
|
|
return CollectionsKt__CollectionsKt.emptyList();
|
|
}
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return CollectionsKt__CollectionsKt.emptyList();
|
|
}
|
|
Map.Entry<? extends K, ? extends V> next = it.next();
|
|
if (!it.hasNext()) {
|
|
return CollectionsKt__CollectionsJVMKt.listOf(new Pair(next.getKey(), next.getValue()));
|
|
}
|
|
ArrayList arrayList = new ArrayList(map.size());
|
|
arrayList.add(new Pair(next.getKey(), next.getValue()));
|
|
do {
|
|
Map.Entry<? extends K, ? extends V> next2 = it.next();
|
|
arrayList.add(new Pair(next2.getKey(), next2.getValue()));
|
|
} while (it.hasNext());
|
|
return arrayList;
|
|
}
|
|
|
|
public static final <K, V> boolean any(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, Boolean> predicate) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
|
if (map.isEmpty()) {
|
|
return false;
|
|
}
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
if (predicate.invoke(it.next()).booleanValue()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static final <K, V> int count(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, Boolean> predicate) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
|
int i = 0;
|
|
if (map.isEmpty()) {
|
|
return 0;
|
|
}
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
if (predicate.invoke(it.next()).booleanValue()) {
|
|
i++;
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
/* renamed from: maxOf, reason: collision with other method in class */
|
|
private static final <K, V> float m477maxOf(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, Float> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
float floatValue = selector.invoke((Object) it.next()).floatValue();
|
|
while (it.hasNext()) {
|
|
floatValue = Math.max(floatValue, selector.invoke((Object) it.next()).floatValue());
|
|
}
|
|
return floatValue;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
/* renamed from: maxOfOrNull, reason: collision with other method in class */
|
|
private static final <K, V> Float m480maxOfOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, Float> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return null;
|
|
}
|
|
float floatValue = selector.invoke((Object) it.next()).floatValue();
|
|
while (it.hasNext()) {
|
|
floatValue = Math.max(floatValue, selector.invoke((Object) it.next()).floatValue());
|
|
}
|
|
return Float.valueOf(floatValue);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
/* renamed from: minOf, reason: collision with other method in class */
|
|
private static final <K, V> float m481minOf(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, Float> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
float floatValue = selector.invoke((Object) it.next()).floatValue();
|
|
while (it.hasNext()) {
|
|
floatValue = Math.min(floatValue, selector.invoke((Object) it.next()).floatValue());
|
|
}
|
|
return floatValue;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
/* renamed from: minOfOrNull, reason: collision with other method in class */
|
|
private static final <K, V> Float m484minOfOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, Float> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return null;
|
|
}
|
|
float floatValue = selector.invoke((Object) it.next()).floatValue();
|
|
while (it.hasNext()) {
|
|
floatValue = Math.min(floatValue, selector.invoke((Object) it.next()).floatValue());
|
|
}
|
|
return Float.valueOf(floatValue);
|
|
}
|
|
|
|
public static final <K, V> boolean none(@NotNull Map<? extends K, ? extends V> map, @NotNull Function1<? super Map.Entry<? extends K, ? extends V>, Boolean> predicate) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(predicate, "predicate");
|
|
if (map.isEmpty()) {
|
|
return true;
|
|
}
|
|
Iterator<Map.Entry<? extends K, ? extends V>> it = map.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
if (predicate.invoke(it.next()).booleanValue()) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
/* renamed from: maxOf, reason: collision with other method in class */
|
|
private static final <K, V, R extends Comparable<? super R>> R m478maxOf(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
R invoke = selector.invoke((Object) it.next());
|
|
while (it.hasNext()) {
|
|
R invoke2 = selector.invoke((Object) it.next());
|
|
if (invoke.compareTo(invoke2) < 0) {
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
return invoke;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
private static final <K, V, R extends Comparable<? super R>> R maxOfOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return null;
|
|
}
|
|
R invoke = selector.invoke((Object) it.next());
|
|
while (it.hasNext()) {
|
|
R invoke2 = selector.invoke((Object) it.next());
|
|
if (invoke.compareTo(invoke2) < 0) {
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
return invoke;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
/* renamed from: minOf, reason: collision with other method in class */
|
|
private static final <K, V, R extends Comparable<? super R>> R m482minOf(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
R invoke = selector.invoke((Object) it.next());
|
|
while (it.hasNext()) {
|
|
R invoke2 = selector.invoke((Object) it.next());
|
|
if (invoke.compareTo(invoke2) > 0) {
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
return invoke;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.4")
|
|
@OverloadResolutionByLambdaReturnType
|
|
@InlineOnly
|
|
private static final <K, V, R extends Comparable<? super R>> R minOfOrNull(Map<? extends K, ? extends V> map, Function1<? super Map.Entry<? extends K, ? extends V>, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(map, "<this>");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
Iterator<T> it = map.entrySet().iterator();
|
|
if (!it.hasNext()) {
|
|
return null;
|
|
}
|
|
R invoke = selector.invoke((Object) it.next());
|
|
while (it.hasNext()) {
|
|
R invoke2 = selector.invoke((Object) it.next());
|
|
if (invoke.compareTo(invoke2) > 0) {
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
return invoke;
|
|
}
|
|
}
|