content: /*
   * Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty).
   */
  package kotlin.collections;
  
  import java.util.Collections;
  import java.util.Comparator;
  import java.util.Map;
  import java.util.Properties;
  import java.util.SortedMap;
  import java.util.TreeMap;
  import java.util.concurrent.ConcurrentMap;
  import kotlin.ExperimentalStdlibApi;
  import kotlin.Metadata;
  import kotlin.Pair;
  import kotlin.PublishedApi;
  import kotlin.SinceKotlin;
  import kotlin.Unit;
  import kotlin.collections.MapsKt;
  import kotlin.collections.MapsKt__MapWithDefaultKt;
  import kotlin.collections.builders.MapBuilder;
  import kotlin.internal.InlineOnly;
  import kotlin.jvm.functions.Function0;
  import kotlin.jvm.functions.Function1;
  import kotlin.jvm.internal.Intrinsics;
  import org.jetbrains.annotations.NotNull;
  
  @Metadata(mv={1, 4, 0}, bv={1, 0, 3}, k=5, xi=1, d1={"\u0000d\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010$\n\u0002\b\u0003\n\u0002\u0010%\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0000\n\u0002\u0010\u000f\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\u001a4\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u00052\u0012\u0010\u0006\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0007H\u0001\u001aQ\u0010\b\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u00052\u0006\u0010\t\u001a\u00020\u00012#\u0010\n\u001a\u001f\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0007\u0012\u0004\u0012\u00020\f0\u000b\u00a2\u0006\u0002\b\rH\u0081\b\u00f8\u0001\u0000\u001aI\u0010\b\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u00052#\u0010\n\u001a\u001f\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0007\u0012\u0004\u0012\u00020\f0\u000b\u00a2\u0006\u0002\b\rH\u0081\b\u00f8\u0001\u0000\u001a \u0010\u000e\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0007\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u0005H\u0001\u001a(\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0007\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u00052\u0006\u0010\t\u001a\u00020\u0001H\u0001\u001a\u0010\u0010\u000f\u001a\u00020\u00012\u0006\u0010\u0010\u001a\u00020\u0001H\u0001\u001a2\u0010\u0011\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u00052\u0012\u0010\u0012\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0013\u001aa\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0015\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u00052\u000e\u0010\u0016\u001a\n\u0012\u0006\b\u0000\u0012\u0002H\u00040\u00172*\u0010\u0018\u001a\u0016\u0012\u0012\b\u0001\u0012\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u00130\u0019\"\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0013H\u0007\u00a2\u0006\u0002\u0010\u001a\u001aY\u0010\u0014\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0015\"\u000e\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u001b\"\u0004\b\u0001\u0010\u00052*\u0010\u0018\u001a\u0016\u0012\u0012\b\u0001\u0012\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u00130\u0019\"\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0013\u00a2\u0006\u0002\u0010\u001c\u001aC\u0010\u001d\u001a\u0002H\u0005\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u0005*\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u001e2\u0006\u0010\u001f\u001a\u0002H\u00042\f\u0010 \u001a\b\u0012\u0004\u0012\u0002H\u00050!H\u0086\b\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\"\u001a\u0019\u0010#\u001a\u00020$*\u000e\u0012\u0004\u0012\u00020%\u0012\u0004\u0012\u00020%0\u0003H\u0087\b\u001a2\u0010&\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u0005*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003H\u0000\u001a1\u0010'\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u0005*\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003H\u0081\b\u001a:\u0010(\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0015\"\u000e\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u001b\"\u0004\b\u0001\u0010\u0005*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0003\u001a@\u0010(\u001a\u000e\u0012\u0004\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u0015\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u0005*\u0010\u0012\u0006\b\u0001\u0012\u0002H\u0004\u0012\u0004\u0012\u0002H\u00050\u00032\u000e\u0010\u0016\u001a\n\u0012\u0006\b\u0000\u0012\u0002H\u00040\u0017\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T\u00a2\u0006\u0002\n\u0000\u0082\u0002\u0007\n\u0005\b\u009920\u0001\u00a8\u0006)"}, d2={"INT_MAX_POWER_OF_TWO", "", "build", "", "K", "V", "builder", "", "buildMapInternal", "capacity", "builderAction", "Lkotlin/Function1;", "", "Lkotlin/ExtensionFunctionType;", "createMapBuilder", "mapCapacity", "expectedSize", "mapOf", "pair", "Lkotlin/Pair;", "sortedMapOf", "Ljava/util/SortedMap;", "comparator", "Ljava/util/Comparator;", "pairs", "", "(Ljava/util/Comparator;[Lkotlin/Pair;)Ljava/util/SortedMap;", "", "([Lkotlin/Pair;)Ljava/util/SortedMap;", "getOrPut", "Ljava/util/concurrent/ConcurrentMap;", "key", "defaultValue", "Lkotlin/Function0;", "(Ljava/util/concurrent/ConcurrentMap;Ljava/lang/Object;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;", "toProperties", "Ljava/util/Properties;", "", "toSingletonMap", "toSingletonMapOrSelf", "toSortedMap", "kotlin-stdlib"}, xs="kotlin/collections/MapsKt")
  class MapsKt__MapsJVMKt
  extends MapsKt__MapWithDefaultKt {
      private static final int INT_MAX_POWER_OF_TWO = 0x40000000;
  
      @NotNull
      public static final <K, V> Map<K, V> mapOf(@NotNull Pair<? extends K, ? extends V> pair) {
          Intrinsics.checkNotNullParameter(pair, "pair");
          Map<K, V> map = Collections.singletonMap(pair.getFirst(), pair.getSecond());
          Intrinsics.checkNotNullExpressionValue(map, "java.util.Collections.si\u2026(pair.first, pair.second)");
          return map;
      }
  
      @PublishedApi
      @SinceKotlin(version="1.3")
      @ExperimentalStdlibApi
      @InlineOnly
      private static final <K, V> Map<K, V> buildMapInternal(Function1<? super Map<K, V>, Unit> builderAction) {
          int $i$f$buildMapInternal = 0;
          Map<K, V> map = MapsKt.createMapBuilder();
          boolean bl = false;
          boolean bl2 = false;
          builderAction.invoke(map);
          return MapsKt.build(map);
      }
  
      @PublishedApi
      @SinceKotlin(version="1.3")
      @ExperimentalStdlibApi
      @InlineOnly
      private static final <K, V> Map<K, V> buildMapInternal(int capacity, Function1<? super Map<K, V>, Unit> builderAction) {
          int $i$f$buildMapInternal = 0;
          Map<K, V> map = MapsKt.createMapBuilder(capacity);
          boolean bl = false;
          boolean bl2 = false;
          builderAction.invoke(map);
          return MapsKt.build(map);
      }
  
      @PublishedApi
      @SinceKotlin(version="1.3")
      @ExperimentalStdlibApi
      @NotNull
      public static final <K, V> Map<K, V> createMapBuilder() {
          return new MapBuilder();
      }
  
      @PublishedApi
      @SinceKotlin(version="1.3")
      @ExperimentalStdlibApi
      @NotNull
      public static final <K, V> Map<K, V> createMapBuilder(int capacity) {
          return new MapBuilder(capacity);
      }
  
      @PublishedApi
      @SinceKotlin(version="1.3")
      @ExperimentalStdlibApi
      @NotNull
      public static final <K, V> Map<K, V> build(@NotNull Map<K, V> builder) {
          Intrinsics.checkNotNullParameter(builder, "builder");
          return ((MapBuilder)builder).build();
      }
  
      public static final <K, V> V getOrPut(@NotNull ConcurrentMap<K, V> $this$getOrPut, K key, @NotNull Function0<? extends V> defaultValue) {
          int $i$f$getOrPut = 0;
          Intrinsics.checkNotNullParameter($this$getOrPut, "$this$getOrPut");
          Intrinsics.checkNotNullParameter(defaultValue, "defaultValue");
          Object v = $this$getOrPut.get(key);
          if (v == null) {
              V v2 = defaultValue.invoke();
              boolean bl = false;
              boolean bl2 = false;
              V v3 = v2;
              boolean bl3 = false;
              v = $this$getOrPut.putIfAbsent(key, v3);
              if (v == null) {
                  v = v3;
              }
          }
          return v;
      }
  
      @NotNull
      public static final <K extends Comparable<? super K>, V> SortedMap<K, V> toSortedMap(@NotNull Map<? extends K, ? extends V> $this$toSortedMap) {
          Intrinsics.checkNotNullParameter($this$toSortedMap, "$this$toSortedMap");
          return new TreeMap<K, V>($this$toSortedMap);
      }
  
      @NotNull
      public static final <K, V> SortedMap<K, V> toSortedMap(@NotNull Map<? extends K, ? extends V> $this$toSortedMap, @NotNull Comparator<? super K> comparator) {
          Intrinsics.checkNotNullParameter($this$toSortedMap, "$this$toSortedMap");
          Intrinsics.checkNotNullParameter(comparator, "comparator");
          TreeMap<? extends K, ? extends V> treeMap = new TreeMap<K, V>(comparator);
          boolean bl = false;
          boolean bl2 = false;
          TreeMap<? extends K, ? extends V> $this$apply = treeMap;
          boolean bl3 = false;
          $this$apply.putAll($this$toSortedMap);
          return treeMap;
      }
  
      @NotNull
      public static final <K extends Comparable<? super K>, V> SortedMap<K, V> sortedMapOf(@NotNull Pair<? extends K, ? extends V> ... pairs) {
          Intrinsics.checkNotNullParameter(pairs, "pairs");
          TreeMap treeMap = new TreeMap();
          boolean bl = false;
          boolean bl2 = false;
          TreeMap $this$apply = treeMap;
          boolean bl3 = false;
          MapsKt.putAll((Map)$this$apply, pairs);
          return treeMap;
      }
  
      @SinceKotlin(version="1.4")
      @NotNull
      public static final <K, V> SortedMap<K, V> sortedMapOf(@NotNull Comparator<? super K> comparator, @NotNull Pair<? extends K, ? extends V> ... pairs) {
          Intrinsics.checkNotNullParameter(comparator, "comparator");
          Intrinsics.checkNotNullParameter(pairs, "pairs");
          TreeMap treeMap = new TreeMap(comparator);
          boolean bl = false;
          boolean bl2 = false;
          TreeMap $this$apply = treeMap;
          boolean bl3 = false;
          MapsKt.putAll((Map)$this$apply, pairs);
          return treeMap;
      }
  
      @InlineOnly
      private static final Properties toProperties(Map<String, String> $this$toProperties) {
          int $i$f$toProperties = 0;
          Properties properties = new Properties();
          boolean bl = false;
          boolean bl2 = false;
          Properties $this$apply = properties;
          boolean bl3 = false;
          $this$apply.putAll($this$toProperties);
          return properties;
      }
  
      @InlineOnly
      private static final <K, V> Map<K, V> toSingletonMapOrSelf(Map<K, ? extends V> $this$toSingletonMapOrSelf) {
          int $i$f$toSingletonMapOrSelf = 0;
          return MapsKt.toSingletonMap($this$toSingletonMapOrSelf);
      }
  
      @NotNull
      public static final <K, V> Map<K, V> toSingletonMap(@NotNull Map<? extends K, ? extends V> $this$toSingletonMap) {
          Intrinsics.checkNotNullParameter($this$toSingletonMap, "$this$toSingletonMap");
          Map.Entry<K, V> entry = $this$toSingletonMap.entrySet().iterator().next();
          boolean bl = false;
          boolean bl2 = false;
          Map.Entry<K, V> $this$with = entry;
          boolean bl3 = false;
          Map<K, V> map = Collections.singletonMap($this$with.getKey(), $this$with.getValue());
          Intrinsics.checkNotNullExpressionValue(map, "with(entries.iterator().\u2026ingletonMap(key, value) }");
          return map;
      }
  
      @PublishedApi
      public static final int mapCapacity(int expectedSize) {
          return expectedSize < 0 ? expectedSize : (expectedSize < 3 ? expectedSize + 1 : (expectedSize < 0x40000000 ? (int)((float)expectedSize / 0.75f + 1.0f) : Integer.MAX_VALUE));
      }
  }
  
  