raspberry_games_engine_helpers 1.8.505 → 1.8.507

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,12 +57,6 @@ if (typeof Math.clz32 === 'undefined') {
57
57
  };
58
58
  }(Math.log, Math.LN2);
59
59
  }
60
- if (typeof String.prototype.startsWith === 'undefined') {
61
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
62
- position = position || 0;
63
- return this.lastIndexOf(searchString, position) === position;
64
- }});
65
- }
66
60
  if (typeof String.prototype.endsWith === 'undefined') {
67
61
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
68
62
  var subjectString = this.toString();
@@ -74,6 +68,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
74
68
  return lastIndex !== -1 && lastIndex === position;
75
69
  }});
76
70
  }
71
+ if (typeof String.prototype.startsWith === 'undefined') {
72
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
73
+ position = position || 0;
74
+ return this.lastIndexOf(searchString, position) === position;
75
+ }});
76
+ }
77
77
  //endregion
78
78
  (function (factory) {
79
79
  if (typeof define === 'function' && define.amd)
@@ -534,6 +534,16 @@ if (typeof String.prototype.endsWith === 'undefined') {
534
534
  throw NoSuchElementException_init_$Create$_0('Array is empty.');
535
535
  return _this__u8e3s4[get_lastIndex_0(_this__u8e3s4)];
536
536
  }
537
+ function lastOrNull(_this__u8e3s4) {
538
+ var tmp;
539
+ // Inline function 'kotlin.collections.isEmpty' call
540
+ if (_this__u8e3s4.length === 0) {
541
+ tmp = null;
542
+ } else {
543
+ tmp = _this__u8e3s4[_this__u8e3s4.length - 1 | 0];
544
+ }
545
+ return tmp;
546
+ }
537
547
  function firstOrNull(_this__u8e3s4) {
538
548
  var tmp;
539
549
  // Inline function 'kotlin.collections.isEmpty' call
@@ -903,7 +913,7 @@ if (typeof String.prototype.endsWith === 'undefined') {
903
913
  }
904
914
  return optimizeReadOnlyList(list);
905
915
  }
906
- function lastOrNull(_this__u8e3s4) {
916
+ function lastOrNull_0(_this__u8e3s4) {
907
917
  return _this__u8e3s4.r() ? null : _this__u8e3s4.d1(_this__u8e3s4.c1() - 1 | 0);
908
918
  }
909
919
  function toHashSet(_this__u8e3s4) {
@@ -13482,213 +13492,214 @@ if (typeof String.prototype.endsWith === 'undefined') {
13482
13492
  _.$_$.d6 = joinTo_0;
13483
13493
  _.$_$.e6 = get_lastIndex;
13484
13494
  _.$_$.f6 = get_lastIndex_2;
13485
- _.$_$.g6 = lastOrNull;
13486
- _.$_$.h6 = last_0;
13487
- _.$_$.i6 = last;
13488
- _.$_$.j6 = listOfNotNull_0;
13489
- _.$_$.k6 = listOfNotNull;
13490
- _.$_$.l6 = listOf;
13491
- _.$_$.m6 = listOf_0;
13492
- _.$_$.n6 = mapCapacity;
13493
- _.$_$.o6 = mapOf;
13494
- _.$_$.p6 = mapOf_0;
13495
- _.$_$.q6 = mutableListOf;
13496
- _.$_$.r6 = plus_1;
13497
- _.$_$.s6 = plus_0;
13498
- _.$_$.t6 = plus;
13499
- _.$_$.u6 = removeLastOrNull;
13500
- _.$_$.v6 = removeLast;
13501
- _.$_$.w6 = setOf_0;
13502
- _.$_$.x6 = singleOrNull;
13503
- _.$_$.y6 = single_0;
13504
- _.$_$.z6 = sortWith_0;
13505
- _.$_$.a7 = sortedWith;
13506
- _.$_$.b7 = sorted;
13507
- _.$_$.c7 = sum;
13508
- _.$_$.d7 = take;
13509
- _.$_$.e7 = toBooleanArray;
13510
- _.$_$.f7 = toHashSet;
13511
- _.$_$.g7 = toList_0;
13512
- _.$_$.h7 = toList;
13513
- _.$_$.i7 = toMap;
13514
- _.$_$.j7 = toMutableList_0;
13515
- _.$_$.k7 = toMutableMap;
13516
- _.$_$.l7 = toSet_0;
13517
- _.$_$.m7 = withIndex;
13518
- _.$_$.n7 = zip;
13519
- _.$_$.o7 = compareValuesBy;
13520
- _.$_$.p7 = compareValues;
13521
- _.$_$.q7 = get_COROUTINE_SUSPENDED;
13522
- _.$_$.r7 = CoroutineImpl;
13523
- _.$_$.s7 = enumEntries;
13524
- _.$_$.t7 = get_ONE;
13525
- _.$_$.u7 = add;
13526
- _.$_$.v7 = bitwiseAnd;
13527
- _.$_$.w7 = bitwiseOr;
13528
- _.$_$.x7 = bitwiseXor;
13529
- _.$_$.y7 = compare;
13530
- _.$_$.z7 = convertToByte;
13531
- _.$_$.a8 = convertToInt;
13532
- _.$_$.b8 = convertToShort;
13533
- _.$_$.c8 = divide;
13534
- _.$_$.d8 = equalsLong;
13535
- _.$_$.e8 = fromInt;
13536
- _.$_$.f8 = invert;
13537
- _.$_$.g8 = isLongArray;
13538
- _.$_$.h8 = get_longArrayClass;
13539
- _.$_$.i8 = modulo;
13540
- _.$_$.j8 = multiply;
13541
- _.$_$.k8 = negate;
13542
- _.$_$.l8 = numberToLong;
13543
- _.$_$.m8 = shiftLeft;
13544
- _.$_$.n8 = shiftRightUnsigned;
13545
- _.$_$.o8 = shiftRight;
13546
- _.$_$.p8 = subtract;
13547
- _.$_$.q8 = toNumber;
13548
- _.$_$.r8 = FunctionAdapter;
13549
- _.$_$.s8 = arrayIterator;
13550
- _.$_$.t8 = booleanArray;
13551
- _.$_$.u8 = captureStack;
13552
- _.$_$.v8 = charArrayOf;
13553
- _.$_$.w8 = charArray;
13554
- _.$_$.x8 = charCodeAt;
13555
- _.$_$.y8 = charSequenceGet;
13556
- _.$_$.z8 = charSequenceLength;
13557
- _.$_$.a9 = charSequenceSubSequence;
13558
- _.$_$.b9 = compareTo;
13559
- _.$_$.c9 = defineProp;
13560
- _.$_$.d9 = equals;
13561
- _.$_$.e9 = getBooleanHashCode;
13562
- _.$_$.f9 = getNumberHashCode;
13563
- _.$_$.g9 = getPropertyCallableRef;
13564
- _.$_$.h9 = getStringHashCode;
13565
- _.$_$.i9 = hashCode_0;
13566
- _.$_$.j9 = initMetadataForClass;
13567
- _.$_$.k9 = initMetadataForCompanion;
13568
- _.$_$.l9 = initMetadataForCoroutine;
13569
- _.$_$.m9 = initMetadataForInterface;
13570
- _.$_$.n9 = initMetadataForLambda;
13571
- _.$_$.o9 = initMetadataForObject;
13572
- _.$_$.p9 = isArray;
13573
- _.$_$.q9 = isBooleanArray;
13574
- _.$_$.r9 = isByteArray;
13575
- _.$_$.s9 = isCharArray;
13576
- _.$_$.t9 = isDoubleArray;
13577
- _.$_$.u9 = isFloatArray;
13578
- _.$_$.v9 = isIntArray;
13579
- _.$_$.w9 = isInterface;
13580
- _.$_$.x9 = isShortArray;
13581
- _.$_$.y9 = get_js;
13582
- _.$_$.z9 = longArray;
13583
- _.$_$.aa = numberRangeToNumber;
13584
- _.$_$.ba = numberToChar;
13585
- _.$_$.ca = numberToInt;
13586
- _.$_$.da = objectCreate;
13587
- _.$_$.ea = protoOf;
13588
- _.$_$.fa = toByte;
13589
- _.$_$.ga = toString_1;
13590
- _.$_$.ha = abs_0;
13591
- _.$_$.ia = round;
13592
- _.$_$.ja = ClosedRange;
13593
- _.$_$.ka = coerceAtLeast;
13594
- _.$_$.la = coerceAtMost;
13595
- _.$_$.ma = contains_1;
13596
- _.$_$.na = step;
13597
- _.$_$.oa = until;
13598
- _.$_$.pa = createInvariantKTypeProjection;
13599
- _.$_$.qa = createKType;
13600
- _.$_$.ra = getKClassFromExpression;
13601
- _.$_$.sa = getKClass;
13602
- _.$_$.ta = KClass;
13603
- _.$_$.ua = KMutableProperty1;
13604
- _.$_$.va = KProperty0;
13605
- _.$_$.wa = KProperty1;
13606
- _.$_$.xa = KTypeParameter;
13607
- _.$_$.ya = filter;
13608
- _.$_$.za = firstOrNull_1;
13609
- _.$_$.ab = flatMap;
13610
- _.$_$.bb = mapNotNull;
13611
- _.$_$.cb = map;
13612
- _.$_$.db = toList_1;
13613
- _.$_$.eb = contains_2;
13614
- _.$_$.fb = equals_0;
13615
- _.$_$.gb = indexOf_1;
13616
- _.$_$.hb = indexOf_0;
13617
- _.$_$.ib = isBlank;
13618
- _.$_$.jb = get_lastIndex_3;
13619
- _.$_$.kb = lastIndexOf_0;
13620
- _.$_$.lb = padStart;
13621
- _.$_$.mb = removePrefix;
13622
- _.$_$.nb = removeSuffix;
13623
- _.$_$.ob = repeat;
13624
- _.$_$.pb = replace;
13625
- _.$_$.qb = single_1;
13626
- _.$_$.rb = split;
13627
- _.$_$.sb = startsWith;
13628
- _.$_$.tb = startsWith_1;
13629
- _.$_$.ub = substringAfter;
13630
- _.$_$.vb = substringBefore;
13631
- _.$_$.wb = substring_0;
13632
- _.$_$.xb = substring;
13633
- _.$_$.yb = take_0;
13634
- _.$_$.zb = toBooleanStrictOrNull;
13635
- _.$_$.ac = toDoubleOrNull;
13636
- _.$_$.bc = toDouble;
13637
- _.$_$.cc = toIntOrNull;
13638
- _.$_$.dc = toInt;
13639
- _.$_$.ec = toLongOrNull;
13640
- _.$_$.fc = toUByte;
13641
- _.$_$.gc = toUInt;
13642
- _.$_$.hc = toULongOrNull;
13643
- _.$_$.ic = toULong;
13644
- _.$_$.jc = toUShort;
13645
- _.$_$.kc = trimIndent;
13646
- _.$_$.lc = Duration;
13647
- _.$_$.mc = Instant;
13648
- _.$_$.nc = toDuration_0;
13649
- _.$_$.oc = toDuration;
13650
- _.$_$.pc = Uuid;
13651
- _.$_$.qc = ArithmeticException;
13652
- _.$_$.rc = Char;
13653
- _.$_$.sc = Comparable;
13654
- _.$_$.tc = Comparator;
13655
- _.$_$.uc = DeepRecursiveFunction;
13656
- _.$_$.vc = DeepRecursiveScope;
13657
- _.$_$.wc = Enum;
13658
- _.$_$.xc = Exception;
13659
- _.$_$.yc = IllegalArgumentException;
13660
- _.$_$.zc = Long;
13661
- _.$_$.ad = Pair;
13662
- _.$_$.bd = Result;
13663
- _.$_$.cd = RuntimeException;
13664
- _.$_$.dd = THROW_CCE;
13665
- _.$_$.ed = THROW_IAE;
13666
- _.$_$.fd = Triple;
13667
- _.$_$.gd = UByteArray;
13668
- _.$_$.hd = UByte;
13669
- _.$_$.id = UIntArray;
13670
- _.$_$.jd = UInt;
13671
- _.$_$.kd = ULongArray;
13672
- _.$_$.ld = ULong;
13673
- _.$_$.md = UShortArray;
13674
- _.$_$.nd = UShort;
13675
- _.$_$.od = Unit;
13676
- _.$_$.pd = arrayOf;
13677
- _.$_$.qd = countTrailingZeroBits;
13678
- _.$_$.rd = createFailure;
13679
- _.$_$.sd = ensureNotNull;
13680
- _.$_$.td = invoke;
13681
- _.$_$.ud = isFinite_0;
13682
- _.$_$.vd = isFinite;
13683
- _.$_$.wd = lazy;
13684
- _.$_$.xd = lazy_0;
13685
- _.$_$.yd = noWhenBranchMatchedException;
13686
- _.$_$.zd = plus_2;
13687
- _.$_$.ae = printStackTrace;
13688
- _.$_$.be = stackTraceToString;
13689
- _.$_$.ce = throwOnFailure;
13690
- _.$_$.de = toString_0;
13691
- _.$_$.ee = to;
13495
+ _.$_$.g6 = lastOrNull_0;
13496
+ _.$_$.h6 = lastOrNull;
13497
+ _.$_$.i6 = last_0;
13498
+ _.$_$.j6 = last;
13499
+ _.$_$.k6 = listOfNotNull_0;
13500
+ _.$_$.l6 = listOfNotNull;
13501
+ _.$_$.m6 = listOf;
13502
+ _.$_$.n6 = listOf_0;
13503
+ _.$_$.o6 = mapCapacity;
13504
+ _.$_$.p6 = mapOf;
13505
+ _.$_$.q6 = mapOf_0;
13506
+ _.$_$.r6 = mutableListOf;
13507
+ _.$_$.s6 = plus_1;
13508
+ _.$_$.t6 = plus_0;
13509
+ _.$_$.u6 = plus;
13510
+ _.$_$.v6 = removeLastOrNull;
13511
+ _.$_$.w6 = removeLast;
13512
+ _.$_$.x6 = setOf_0;
13513
+ _.$_$.y6 = singleOrNull;
13514
+ _.$_$.z6 = single_0;
13515
+ _.$_$.a7 = sortWith_0;
13516
+ _.$_$.b7 = sortedWith;
13517
+ _.$_$.c7 = sorted;
13518
+ _.$_$.d7 = sum;
13519
+ _.$_$.e7 = take;
13520
+ _.$_$.f7 = toBooleanArray;
13521
+ _.$_$.g7 = toHashSet;
13522
+ _.$_$.h7 = toList_0;
13523
+ _.$_$.i7 = toList;
13524
+ _.$_$.j7 = toMap;
13525
+ _.$_$.k7 = toMutableList_0;
13526
+ _.$_$.l7 = toMutableMap;
13527
+ _.$_$.m7 = toSet_0;
13528
+ _.$_$.n7 = withIndex;
13529
+ _.$_$.o7 = zip;
13530
+ _.$_$.p7 = compareValuesBy;
13531
+ _.$_$.q7 = compareValues;
13532
+ _.$_$.r7 = get_COROUTINE_SUSPENDED;
13533
+ _.$_$.s7 = CoroutineImpl;
13534
+ _.$_$.t7 = enumEntries;
13535
+ _.$_$.u7 = get_ONE;
13536
+ _.$_$.v7 = add;
13537
+ _.$_$.w7 = bitwiseAnd;
13538
+ _.$_$.x7 = bitwiseOr;
13539
+ _.$_$.y7 = bitwiseXor;
13540
+ _.$_$.z7 = compare;
13541
+ _.$_$.a8 = convertToByte;
13542
+ _.$_$.b8 = convertToInt;
13543
+ _.$_$.c8 = convertToShort;
13544
+ _.$_$.d8 = divide;
13545
+ _.$_$.e8 = equalsLong;
13546
+ _.$_$.f8 = fromInt;
13547
+ _.$_$.g8 = invert;
13548
+ _.$_$.h8 = isLongArray;
13549
+ _.$_$.i8 = get_longArrayClass;
13550
+ _.$_$.j8 = modulo;
13551
+ _.$_$.k8 = multiply;
13552
+ _.$_$.l8 = negate;
13553
+ _.$_$.m8 = numberToLong;
13554
+ _.$_$.n8 = shiftLeft;
13555
+ _.$_$.o8 = shiftRightUnsigned;
13556
+ _.$_$.p8 = shiftRight;
13557
+ _.$_$.q8 = subtract;
13558
+ _.$_$.r8 = toNumber;
13559
+ _.$_$.s8 = FunctionAdapter;
13560
+ _.$_$.t8 = arrayIterator;
13561
+ _.$_$.u8 = booleanArray;
13562
+ _.$_$.v8 = captureStack;
13563
+ _.$_$.w8 = charArrayOf;
13564
+ _.$_$.x8 = charArray;
13565
+ _.$_$.y8 = charCodeAt;
13566
+ _.$_$.z8 = charSequenceGet;
13567
+ _.$_$.a9 = charSequenceLength;
13568
+ _.$_$.b9 = charSequenceSubSequence;
13569
+ _.$_$.c9 = compareTo;
13570
+ _.$_$.d9 = defineProp;
13571
+ _.$_$.e9 = equals;
13572
+ _.$_$.f9 = getBooleanHashCode;
13573
+ _.$_$.g9 = getNumberHashCode;
13574
+ _.$_$.h9 = getPropertyCallableRef;
13575
+ _.$_$.i9 = getStringHashCode;
13576
+ _.$_$.j9 = hashCode_0;
13577
+ _.$_$.k9 = initMetadataForClass;
13578
+ _.$_$.l9 = initMetadataForCompanion;
13579
+ _.$_$.m9 = initMetadataForCoroutine;
13580
+ _.$_$.n9 = initMetadataForInterface;
13581
+ _.$_$.o9 = initMetadataForLambda;
13582
+ _.$_$.p9 = initMetadataForObject;
13583
+ _.$_$.q9 = isArray;
13584
+ _.$_$.r9 = isBooleanArray;
13585
+ _.$_$.s9 = isByteArray;
13586
+ _.$_$.t9 = isCharArray;
13587
+ _.$_$.u9 = isDoubleArray;
13588
+ _.$_$.v9 = isFloatArray;
13589
+ _.$_$.w9 = isIntArray;
13590
+ _.$_$.x9 = isInterface;
13591
+ _.$_$.y9 = isShortArray;
13592
+ _.$_$.z9 = get_js;
13593
+ _.$_$.aa = longArray;
13594
+ _.$_$.ba = numberRangeToNumber;
13595
+ _.$_$.ca = numberToChar;
13596
+ _.$_$.da = numberToInt;
13597
+ _.$_$.ea = objectCreate;
13598
+ _.$_$.fa = protoOf;
13599
+ _.$_$.ga = toByte;
13600
+ _.$_$.ha = toString_1;
13601
+ _.$_$.ia = abs_0;
13602
+ _.$_$.ja = round;
13603
+ _.$_$.ka = ClosedRange;
13604
+ _.$_$.la = coerceAtLeast;
13605
+ _.$_$.ma = coerceAtMost;
13606
+ _.$_$.na = contains_1;
13607
+ _.$_$.oa = step;
13608
+ _.$_$.pa = until;
13609
+ _.$_$.qa = createInvariantKTypeProjection;
13610
+ _.$_$.ra = createKType;
13611
+ _.$_$.sa = getKClassFromExpression;
13612
+ _.$_$.ta = getKClass;
13613
+ _.$_$.ua = KClass;
13614
+ _.$_$.va = KMutableProperty1;
13615
+ _.$_$.wa = KProperty0;
13616
+ _.$_$.xa = KProperty1;
13617
+ _.$_$.ya = KTypeParameter;
13618
+ _.$_$.za = filter;
13619
+ _.$_$.ab = firstOrNull_1;
13620
+ _.$_$.bb = flatMap;
13621
+ _.$_$.cb = mapNotNull;
13622
+ _.$_$.db = map;
13623
+ _.$_$.eb = toList_1;
13624
+ _.$_$.fb = contains_2;
13625
+ _.$_$.gb = equals_0;
13626
+ _.$_$.hb = indexOf_1;
13627
+ _.$_$.ib = indexOf_0;
13628
+ _.$_$.jb = isBlank;
13629
+ _.$_$.kb = get_lastIndex_3;
13630
+ _.$_$.lb = lastIndexOf_0;
13631
+ _.$_$.mb = padStart;
13632
+ _.$_$.nb = removePrefix;
13633
+ _.$_$.ob = removeSuffix;
13634
+ _.$_$.pb = repeat;
13635
+ _.$_$.qb = replace;
13636
+ _.$_$.rb = single_1;
13637
+ _.$_$.sb = split;
13638
+ _.$_$.tb = startsWith;
13639
+ _.$_$.ub = startsWith_1;
13640
+ _.$_$.vb = substringAfter;
13641
+ _.$_$.wb = substringBefore;
13642
+ _.$_$.xb = substring_0;
13643
+ _.$_$.yb = substring;
13644
+ _.$_$.zb = take_0;
13645
+ _.$_$.ac = toBooleanStrictOrNull;
13646
+ _.$_$.bc = toDoubleOrNull;
13647
+ _.$_$.cc = toDouble;
13648
+ _.$_$.dc = toIntOrNull;
13649
+ _.$_$.ec = toInt;
13650
+ _.$_$.fc = toLongOrNull;
13651
+ _.$_$.gc = toUByte;
13652
+ _.$_$.hc = toUInt;
13653
+ _.$_$.ic = toULongOrNull;
13654
+ _.$_$.jc = toULong;
13655
+ _.$_$.kc = toUShort;
13656
+ _.$_$.lc = trimIndent;
13657
+ _.$_$.mc = Duration;
13658
+ _.$_$.nc = Instant;
13659
+ _.$_$.oc = toDuration_0;
13660
+ _.$_$.pc = toDuration;
13661
+ _.$_$.qc = Uuid;
13662
+ _.$_$.rc = ArithmeticException;
13663
+ _.$_$.sc = Char;
13664
+ _.$_$.tc = Comparable;
13665
+ _.$_$.uc = Comparator;
13666
+ _.$_$.vc = DeepRecursiveFunction;
13667
+ _.$_$.wc = DeepRecursiveScope;
13668
+ _.$_$.xc = Enum;
13669
+ _.$_$.yc = Exception;
13670
+ _.$_$.zc = IllegalArgumentException;
13671
+ _.$_$.ad = Long;
13672
+ _.$_$.bd = Pair;
13673
+ _.$_$.cd = Result;
13674
+ _.$_$.dd = RuntimeException;
13675
+ _.$_$.ed = THROW_CCE;
13676
+ _.$_$.fd = THROW_IAE;
13677
+ _.$_$.gd = Triple;
13678
+ _.$_$.hd = UByteArray;
13679
+ _.$_$.id = UByte;
13680
+ _.$_$.jd = UIntArray;
13681
+ _.$_$.kd = UInt;
13682
+ _.$_$.ld = ULongArray;
13683
+ _.$_$.md = ULong;
13684
+ _.$_$.nd = UShortArray;
13685
+ _.$_$.od = UShort;
13686
+ _.$_$.pd = Unit;
13687
+ _.$_$.qd = arrayOf;
13688
+ _.$_$.rd = countTrailingZeroBits;
13689
+ _.$_$.sd = createFailure;
13690
+ _.$_$.td = ensureNotNull;
13691
+ _.$_$.ud = invoke;
13692
+ _.$_$.vd = isFinite_0;
13693
+ _.$_$.wd = isFinite;
13694
+ _.$_$.xd = lazy;
13695
+ _.$_$.yd = lazy_0;
13696
+ _.$_$.zd = noWhenBranchMatchedException;
13697
+ _.$_$.ae = plus_2;
13698
+ _.$_$.be = printStackTrace;
13699
+ _.$_$.ce = stackTraceToString;
13700
+ _.$_$.de = throwOnFailure;
13701
+ _.$_$.ee = toString_0;
13702
+ _.$_$.fe = to;
13692
13703
  //endregion
13693
13704
  return _;
13694
13705
  }));