@number10/phaserjsx 0.4.1 → 0.4.2
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.
- package/README.md +1 -1
- package/dist/{TransformOriginView-Bx81YEUU.cjs → TransformOriginView-CrzevUOh.cjs} +429 -388
- package/dist/TransformOriginView-CrzevUOh.cjs.map +1 -0
- package/dist/{TransformOriginView-DCvId72M.js → TransformOriginView-TeXhLqNs.js} +393 -369
- package/dist/TransformOriginView-TeXhLqNs.js.map +1 -0
- package/dist/camera/use-camera-fx.d.ts +4 -1
- package/dist/camera/use-camera-fx.d.ts.map +1 -1
- package/dist/components/appliers/applyBackground.d.ts +5 -1
- package/dist/components/appliers/applyBackground.d.ts.map +1 -1
- package/dist/components/appliers/applyGestures.d.ts +1 -1
- package/dist/components/appliers/applyGestures.d.ts.map +1 -1
- package/dist/components/appliers/applyGraphics.d.ts +4 -1
- package/dist/components/appliers/applyGraphics.d.ts.map +1 -1
- package/dist/components/appliers/applyGraphicsLayout.d.ts +4 -1
- package/dist/components/appliers/applyGraphicsLayout.d.ts.map +1 -1
- package/dist/components/appliers/applyImage.d.ts +4 -1
- package/dist/components/appliers/applyImage.d.ts.map +1 -1
- package/dist/components/appliers/applyImageLayout.d.ts +4 -1
- package/dist/components/appliers/applyImageLayout.d.ts.map +1 -1
- package/dist/components/appliers/applyNineSlice.d.ts +4 -1
- package/dist/components/appliers/applyNineSlice.d.ts.map +1 -1
- package/dist/components/appliers/applyNineSliceLayout.d.ts +4 -1
- package/dist/components/appliers/applyNineSliceLayout.d.ts.map +1 -1
- package/dist/components/appliers/applySprite.d.ts +4 -1
- package/dist/components/appliers/applySprite.d.ts.map +1 -1
- package/dist/components/appliers/applySpriteLayout.d.ts +4 -1
- package/dist/components/appliers/applySpriteLayout.d.ts.map +1 -1
- package/dist/components/appliers/applyTextLayout.d.ts +4 -1
- package/dist/components/appliers/applyTextLayout.d.ts.map +1 -1
- package/dist/components/appliers/applyTooltip.d.ts +5 -1
- package/dist/components/appliers/applyTooltip.d.ts.map +1 -1
- package/dist/components/creators/createBackground.d.ts +5 -1
- package/dist/components/creators/createBackground.d.ts.map +1 -1
- package/dist/components/creators/createGestures.d.ts +1 -1
- package/dist/components/creators/createGestures.d.ts.map +1 -1
- package/dist/components/creators/createGraphicsLayout.d.ts +4 -1
- package/dist/components/creators/createGraphicsLayout.d.ts.map +1 -1
- package/dist/components/creators/createImageLayout.d.ts +4 -1
- package/dist/components/creators/createImageLayout.d.ts.map +1 -1
- package/dist/components/creators/createNineSliceLayout.d.ts +4 -1
- package/dist/components/creators/createNineSliceLayout.d.ts.map +1 -1
- package/dist/components/creators/createSpriteLayout.d.ts +4 -1
- package/dist/components/creators/createSpriteLayout.d.ts.map +1 -1
- package/dist/components/creators/createTextLayout.d.ts +4 -1
- package/dist/components/creators/createTextLayout.d.ts.map +1 -1
- package/dist/components/custom/Graphics.d.ts +6 -1
- package/dist/components/custom/Graphics.d.ts.map +1 -1
- package/dist/components/custom/Image.d.ts +6 -1
- package/dist/components/custom/Image.d.ts.map +1 -1
- package/dist/components/custom/NineSlice.d.ts +6 -1
- package/dist/components/custom/NineSlice.d.ts.map +1 -1
- package/dist/components/custom/Sprite.d.ts +1 -1
- package/dist/components/custom/Sprite.d.ts.map +1 -1
- package/dist/components/custom/Text.d.ts +6 -1
- package/dist/components/custom/Text.d.ts.map +1 -1
- package/dist/components/custom/TileSprite.d.ts +1 -1
- package/dist/components/custom/TileSprite.d.ts.map +1 -1
- package/dist/components/custom/View.d.ts +6 -1
- package/dist/components/custom/View.d.ts.map +1 -1
- package/dist/components/custom/index.cjs +1 -1
- package/dist/components/custom/index.js +1 -1
- package/dist/components/primitives/graphics.d.ts +107 -1
- package/dist/components/primitives/graphics.d.ts.map +1 -1
- package/dist/components/primitives/image.d.ts +114 -1
- package/dist/components/primitives/image.d.ts.map +1 -1
- package/dist/components/primitives/nineslice.d.ts +161 -1
- package/dist/components/primitives/nineslice.d.ts.map +1 -1
- package/dist/components/primitives/sprite.d.ts +90 -1
- package/dist/components/primitives/sprite.d.ts.map +1 -1
- package/dist/components/primitives/text.d.ts +130 -1
- package/dist/components/primitives/text.d.ts.map +1 -1
- package/dist/components/primitives/tilesprite.d.ts +115 -1
- package/dist/components/primitives/tilesprite.d.ts.map +1 -1
- package/dist/components/primitives/view.d.ts +107 -1
- package/dist/components/primitives/view.d.ts.map +1 -1
- package/dist/core-types.d.ts +5 -1
- package/dist/core-types.d.ts.map +1 -1
- package/dist/design-tokens/design-token-types.d.ts +5 -1
- package/dist/design-tokens/design-token-types.d.ts.map +1 -1
- package/dist/gestures/gesture-manager.d.ts +5 -1
- package/dist/gestures/gesture-manager.d.ts.map +1 -1
- package/dist/gestures/gesture-types.d.ts +4 -1
- package/dist/gestures/gesture-types.d.ts.map +1 -1
- package/dist/hooks-svg.d.ts +5 -1
- package/dist/hooks-svg.d.ts.map +1 -1
- package/dist/host.d.ts +5 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/index.cjs +28 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/layout/appliers/background-applier.d.ts +4 -1
- package/dist/layout/appliers/background-applier.d.ts.map +1 -1
- package/dist/layout/appliers/container-applier.d.ts +4 -1
- package/dist/layout/appliers/container-applier.d.ts.map +1 -1
- package/dist/layout/layout-engine-test-utils.d.ts +4 -1
- package/dist/layout/layout-engine-test-utils.d.ts.map +1 -1
- package/dist/layout/layout-engine.d.ts +5 -1
- package/dist/layout/layout-engine.d.ts.map +1 -1
- package/dist/layout/types.d.ts +4 -1
- package/dist/layout/types.d.ts.map +1 -1
- package/dist/layout/utils/child-utils.d.ts +4 -1
- package/dist/layout/utils/child-utils.d.ts.map +1 -1
- package/dist/particles/emit-zone.d.ts +4 -1
- package/dist/particles/emit-zone.d.ts.map +1 -1
- package/dist/particles/particle-types.d.ts +4 -1
- package/dist/particles/particle-types.d.ts.map +1 -1
- package/dist/particles/preset-registry.d.ts +4 -1
- package/dist/particles/preset-registry.d.ts.map +1 -1
- package/dist/plugin.d.ts +5 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/portal/portal-registry.d.ts +4 -1
- package/dist/portal/portal-registry.d.ts.map +1 -1
- package/dist/portal/portal-types.d.ts +5 -1
- package/dist/portal/portal-types.d.ts.map +1 -1
- package/dist/render-context.d.ts +5 -1
- package/dist/render-context.d.ts.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/dom-input-manager.d.ts +5 -1
- package/dist/utils/dom-input-manager.d.ts.map +1 -1
- package/dist/utils/fast-deep-equal.d.ts +4 -0
- package/dist/utils/fast-deep-equal.d.ts.map +1 -0
- package/dist/utils/svg-texture.d.ts +5 -1
- package/dist/utils/svg-texture.d.ts.map +1 -1
- package/dist/utils/texture-registry.d.ts +5 -1
- package/dist/utils/texture-registry.d.ts.map +1 -1
- package/dist/vdom.d.ts +1 -1
- package/dist/vdom.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/TransformOriginView-Bx81YEUU.cjs.map +0 -1
- package/dist/TransformOriginView-DCvId72M.js.map +0 -1
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "./jsx-runtime.js";
|
|
2
|
-
import Phaser$1 from "phaser";
|
|
2
|
+
import * as Phaser$1 from "phaser";
|
|
3
3
|
import { signal } from "@preact/signals-core";
|
|
4
|
+
function _mergeNamespaces(n, m) {
|
|
5
|
+
for (var i = 0; i < m.length; i++) {
|
|
6
|
+
const e = m[i];
|
|
7
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default" && !(k in n)) {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
if (d) {
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
22
|
+
}
|
|
4
23
|
const nodeRegistry = {};
|
|
5
24
|
function register(type, descriptor) {
|
|
6
25
|
nodeRegistry[type] = descriptor;
|
|
@@ -114,7 +133,12 @@ function requireFastDeepEqual() {
|
|
|
114
133
|
return fastDeepEqual;
|
|
115
134
|
}
|
|
116
135
|
var fastDeepEqualExports = requireFastDeepEqual();
|
|
117
|
-
const
|
|
136
|
+
const index = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);
|
|
137
|
+
const equalImport = /* @__PURE__ */ _mergeNamespaces({
|
|
138
|
+
__proto__: null,
|
|
139
|
+
default: index
|
|
140
|
+
}, [fastDeepEqualExports]);
|
|
141
|
+
const equal = typeof equalImport === "function" ? equalImport : index;
|
|
118
142
|
var lodash$1 = { exports: {} };
|
|
119
143
|
var lodash = lodash$1.exports;
|
|
120
144
|
var hasRequiredLodash;
|
|
@@ -478,17 +502,17 @@ function requireLodash() {
|
|
|
478
502
|
return func.apply(thisArg, args);
|
|
479
503
|
}
|
|
480
504
|
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
481
|
-
var
|
|
482
|
-
while (++
|
|
483
|
-
var value = array[
|
|
505
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
506
|
+
while (++index2 < length) {
|
|
507
|
+
var value = array[index2];
|
|
484
508
|
setter(accumulator, value, iteratee(value), array);
|
|
485
509
|
}
|
|
486
510
|
return accumulator;
|
|
487
511
|
}
|
|
488
512
|
function arrayEach(array, iteratee) {
|
|
489
|
-
var
|
|
490
|
-
while (++
|
|
491
|
-
if (iteratee(array[
|
|
513
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
514
|
+
while (++index2 < length) {
|
|
515
|
+
if (iteratee(array[index2], index2, array) === false) {
|
|
492
516
|
break;
|
|
493
517
|
}
|
|
494
518
|
}
|
|
@@ -504,19 +528,19 @@ function requireLodash() {
|
|
|
504
528
|
return array;
|
|
505
529
|
}
|
|
506
530
|
function arrayEvery(array, predicate) {
|
|
507
|
-
var
|
|
508
|
-
while (++
|
|
509
|
-
if (!predicate(array[
|
|
531
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
532
|
+
while (++index2 < length) {
|
|
533
|
+
if (!predicate(array[index2], index2, array)) {
|
|
510
534
|
return false;
|
|
511
535
|
}
|
|
512
536
|
}
|
|
513
537
|
return true;
|
|
514
538
|
}
|
|
515
539
|
function arrayFilter(array, predicate) {
|
|
516
|
-
var
|
|
517
|
-
while (++
|
|
518
|
-
var value = array[
|
|
519
|
-
if (predicate(value,
|
|
540
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
541
|
+
while (++index2 < length) {
|
|
542
|
+
var value = array[index2];
|
|
543
|
+
if (predicate(value, index2, array)) {
|
|
520
544
|
result[resIndex++] = value;
|
|
521
545
|
}
|
|
522
546
|
}
|
|
@@ -527,35 +551,35 @@ function requireLodash() {
|
|
|
527
551
|
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
528
552
|
}
|
|
529
553
|
function arrayIncludesWith(array, value, comparator) {
|
|
530
|
-
var
|
|
531
|
-
while (++
|
|
532
|
-
if (comparator(value, array[
|
|
554
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
555
|
+
while (++index2 < length) {
|
|
556
|
+
if (comparator(value, array[index2])) {
|
|
533
557
|
return true;
|
|
534
558
|
}
|
|
535
559
|
}
|
|
536
560
|
return false;
|
|
537
561
|
}
|
|
538
562
|
function arrayMap(array, iteratee) {
|
|
539
|
-
var
|
|
540
|
-
while (++
|
|
541
|
-
result[
|
|
563
|
+
var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
564
|
+
while (++index2 < length) {
|
|
565
|
+
result[index2] = iteratee(array[index2], index2, array);
|
|
542
566
|
}
|
|
543
567
|
return result;
|
|
544
568
|
}
|
|
545
569
|
function arrayPush(array, values) {
|
|
546
|
-
var
|
|
547
|
-
while (++
|
|
548
|
-
array[offset +
|
|
570
|
+
var index2 = -1, length = values.length, offset = array.length;
|
|
571
|
+
while (++index2 < length) {
|
|
572
|
+
array[offset + index2] = values[index2];
|
|
549
573
|
}
|
|
550
574
|
return array;
|
|
551
575
|
}
|
|
552
576
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
553
|
-
var
|
|
577
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
554
578
|
if (initAccum && length) {
|
|
555
|
-
accumulator = array[++
|
|
579
|
+
accumulator = array[++index2];
|
|
556
580
|
}
|
|
557
|
-
while (++
|
|
558
|
-
accumulator = iteratee(accumulator, array[
|
|
581
|
+
while (++index2 < length) {
|
|
582
|
+
accumulator = iteratee(accumulator, array[index2], index2, array);
|
|
559
583
|
}
|
|
560
584
|
return accumulator;
|
|
561
585
|
}
|
|
@@ -570,9 +594,9 @@ function requireLodash() {
|
|
|
570
594
|
return accumulator;
|
|
571
595
|
}
|
|
572
596
|
function arraySome(array, predicate) {
|
|
573
|
-
var
|
|
574
|
-
while (++
|
|
575
|
-
if (predicate(array[
|
|
597
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
598
|
+
while (++index2 < length) {
|
|
599
|
+
if (predicate(array[index2], index2, array)) {
|
|
576
600
|
return true;
|
|
577
601
|
}
|
|
578
602
|
}
|
|
@@ -596,10 +620,10 @@ function requireLodash() {
|
|
|
596
620
|
return result;
|
|
597
621
|
}
|
|
598
622
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
599
|
-
var length = array.length,
|
|
600
|
-
while (fromRight ?
|
|
601
|
-
if (predicate(array[
|
|
602
|
-
return
|
|
623
|
+
var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1);
|
|
624
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
625
|
+
if (predicate(array[index2], index2, array)) {
|
|
626
|
+
return index2;
|
|
603
627
|
}
|
|
604
628
|
}
|
|
605
629
|
return -1;
|
|
@@ -608,10 +632,10 @@ function requireLodash() {
|
|
|
608
632
|
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
609
633
|
}
|
|
610
634
|
function baseIndexOfWith(array, value, fromIndex, comparator) {
|
|
611
|
-
var
|
|
612
|
-
while (++
|
|
613
|
-
if (comparator(array[
|
|
614
|
-
return
|
|
635
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
636
|
+
while (++index2 < length) {
|
|
637
|
+
if (comparator(array[index2], value)) {
|
|
638
|
+
return index2;
|
|
615
639
|
}
|
|
616
640
|
}
|
|
617
641
|
return -1;
|
|
@@ -634,8 +658,8 @@ function requireLodash() {
|
|
|
634
658
|
};
|
|
635
659
|
}
|
|
636
660
|
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
637
|
-
eachFunc(collection, function(value,
|
|
638
|
-
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value,
|
|
661
|
+
eachFunc(collection, function(value, index2, collection2) {
|
|
662
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index2, collection2);
|
|
639
663
|
});
|
|
640
664
|
return accumulator;
|
|
641
665
|
}
|
|
@@ -648,9 +672,9 @@ function requireLodash() {
|
|
|
648
672
|
return array;
|
|
649
673
|
}
|
|
650
674
|
function baseSum(array, iteratee) {
|
|
651
|
-
var result,
|
|
652
|
-
while (++
|
|
653
|
-
var current = iteratee(array[
|
|
675
|
+
var result, index2 = -1, length = array.length;
|
|
676
|
+
while (++index2 < length) {
|
|
677
|
+
var current = iteratee(array[index2]);
|
|
654
678
|
if (current !== undefined$1) {
|
|
655
679
|
result = result === undefined$1 ? current : result + current;
|
|
656
680
|
}
|
|
@@ -658,9 +682,9 @@ function requireLodash() {
|
|
|
658
682
|
return result;
|
|
659
683
|
}
|
|
660
684
|
function baseTimes(n, iteratee) {
|
|
661
|
-
var
|
|
662
|
-
while (++
|
|
663
|
-
result[
|
|
685
|
+
var index2 = -1, result = Array(n);
|
|
686
|
+
while (++index2 < n) {
|
|
687
|
+
result[index2] = iteratee(index2);
|
|
664
688
|
}
|
|
665
689
|
return result;
|
|
666
690
|
}
|
|
@@ -686,16 +710,16 @@ function requireLodash() {
|
|
|
686
710
|
return cache.has(key);
|
|
687
711
|
}
|
|
688
712
|
function charsStartIndex(strSymbols, chrSymbols) {
|
|
689
|
-
var
|
|
690
|
-
while (++
|
|
713
|
+
var index2 = -1, length = strSymbols.length;
|
|
714
|
+
while (++index2 < length && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
|
691
715
|
}
|
|
692
|
-
return
|
|
716
|
+
return index2;
|
|
693
717
|
}
|
|
694
718
|
function charsEndIndex(strSymbols, chrSymbols) {
|
|
695
|
-
var
|
|
696
|
-
while (
|
|
719
|
+
var index2 = strSymbols.length;
|
|
720
|
+
while (index2-- && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) {
|
|
697
721
|
}
|
|
698
|
-
return
|
|
722
|
+
return index2;
|
|
699
723
|
}
|
|
700
724
|
function countHolders(array, placeholder) {
|
|
701
725
|
var length = array.length, result = 0;
|
|
@@ -728,9 +752,9 @@ function requireLodash() {
|
|
|
728
752
|
return result;
|
|
729
753
|
}
|
|
730
754
|
function mapToArray(map) {
|
|
731
|
-
var
|
|
755
|
+
var index2 = -1, result = Array(map.size);
|
|
732
756
|
map.forEach(function(value, key) {
|
|
733
|
-
result[++
|
|
757
|
+
result[++index2] = [key, value];
|
|
734
758
|
});
|
|
735
759
|
return result;
|
|
736
760
|
}
|
|
@@ -740,47 +764,47 @@ function requireLodash() {
|
|
|
740
764
|
};
|
|
741
765
|
}
|
|
742
766
|
function replaceHolders(array, placeholder) {
|
|
743
|
-
var
|
|
744
|
-
while (++
|
|
745
|
-
var value = array[
|
|
767
|
+
var index2 = -1, length = array.length, resIndex = 0, result = [];
|
|
768
|
+
while (++index2 < length) {
|
|
769
|
+
var value = array[index2];
|
|
746
770
|
if (value === placeholder || value === PLACEHOLDER) {
|
|
747
|
-
array[
|
|
748
|
-
result[resIndex++] =
|
|
771
|
+
array[index2] = PLACEHOLDER;
|
|
772
|
+
result[resIndex++] = index2;
|
|
749
773
|
}
|
|
750
774
|
}
|
|
751
775
|
return result;
|
|
752
776
|
}
|
|
753
777
|
function setToArray(set) {
|
|
754
|
-
var
|
|
778
|
+
var index2 = -1, result = Array(set.size);
|
|
755
779
|
set.forEach(function(value) {
|
|
756
|
-
result[++
|
|
780
|
+
result[++index2] = value;
|
|
757
781
|
});
|
|
758
782
|
return result;
|
|
759
783
|
}
|
|
760
784
|
function setToPairs(set) {
|
|
761
|
-
var
|
|
785
|
+
var index2 = -1, result = Array(set.size);
|
|
762
786
|
set.forEach(function(value) {
|
|
763
|
-
result[++
|
|
787
|
+
result[++index2] = [value, value];
|
|
764
788
|
});
|
|
765
789
|
return result;
|
|
766
790
|
}
|
|
767
791
|
function strictIndexOf(array, value, fromIndex) {
|
|
768
|
-
var
|
|
769
|
-
while (++
|
|
770
|
-
if (array[
|
|
771
|
-
return
|
|
792
|
+
var index2 = fromIndex - 1, length = array.length;
|
|
793
|
+
while (++index2 < length) {
|
|
794
|
+
if (array[index2] === value) {
|
|
795
|
+
return index2;
|
|
772
796
|
}
|
|
773
797
|
}
|
|
774
798
|
return -1;
|
|
775
799
|
}
|
|
776
800
|
function strictLastIndexOf(array, value, fromIndex) {
|
|
777
|
-
var
|
|
778
|
-
while (
|
|
779
|
-
if (array[
|
|
780
|
-
return
|
|
801
|
+
var index2 = fromIndex + 1;
|
|
802
|
+
while (index2--) {
|
|
803
|
+
if (array[index2] === value) {
|
|
804
|
+
return index2;
|
|
781
805
|
}
|
|
782
806
|
}
|
|
783
|
-
return
|
|
807
|
+
return index2;
|
|
784
808
|
}
|
|
785
809
|
function stringSize(string) {
|
|
786
810
|
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
|
@@ -789,10 +813,10 @@ function requireLodash() {
|
|
|
789
813
|
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
|
790
814
|
}
|
|
791
815
|
function trimmedEndIndex(string) {
|
|
792
|
-
var
|
|
793
|
-
while (
|
|
816
|
+
var index2 = string.length;
|
|
817
|
+
while (index2-- && reWhitespace.test(string.charAt(index2))) {
|
|
794
818
|
}
|
|
795
|
-
return
|
|
819
|
+
return index2;
|
|
796
820
|
}
|
|
797
821
|
var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
|
|
798
822
|
function unicodeSize(string) {
|
|
@@ -958,15 +982,15 @@ function requireLodash() {
|
|
|
958
982
|
return result2;
|
|
959
983
|
}
|
|
960
984
|
function lazyValue() {
|
|
961
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start,
|
|
985
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index2 = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
|
|
962
986
|
if (!isArr || !isRight && arrLength == length && takeCount == length) {
|
|
963
987
|
return baseWrapperValue(array, this.__actions__);
|
|
964
988
|
}
|
|
965
989
|
var result2 = [];
|
|
966
990
|
outer:
|
|
967
991
|
while (length-- && resIndex < takeCount) {
|
|
968
|
-
|
|
969
|
-
var iterIndex = -1, value = array[
|
|
992
|
+
index2 += dir;
|
|
993
|
+
var iterIndex = -1, value = array[index2];
|
|
970
994
|
while (++iterIndex < iterLength) {
|
|
971
995
|
var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
|
|
972
996
|
if (type == LAZY_MAP_FLAG) {
|
|
@@ -986,10 +1010,10 @@ function requireLodash() {
|
|
|
986
1010
|
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
|
987
1011
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
988
1012
|
function Hash(entries) {
|
|
989
|
-
var
|
|
1013
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
990
1014
|
this.clear();
|
|
991
|
-
while (++
|
|
992
|
-
var entry = entries[
|
|
1015
|
+
while (++index2 < length) {
|
|
1016
|
+
var entry = entries[index2];
|
|
993
1017
|
this.set(entry[0], entry[1]);
|
|
994
1018
|
}
|
|
995
1019
|
}
|
|
@@ -1026,10 +1050,10 @@ function requireLodash() {
|
|
|
1026
1050
|
Hash.prototype.has = hashHas;
|
|
1027
1051
|
Hash.prototype.set = hashSet;
|
|
1028
1052
|
function ListCache(entries) {
|
|
1029
|
-
var
|
|
1053
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1030
1054
|
this.clear();
|
|
1031
|
-
while (++
|
|
1032
|
-
var entry = entries[
|
|
1055
|
+
while (++index2 < length) {
|
|
1056
|
+
var entry = entries[index2];
|
|
1033
1057
|
this.set(entry[0], entry[1]);
|
|
1034
1058
|
}
|
|
1035
1059
|
}
|
|
@@ -1038,33 +1062,33 @@ function requireLodash() {
|
|
|
1038
1062
|
this.size = 0;
|
|
1039
1063
|
}
|
|
1040
1064
|
function listCacheDelete(key) {
|
|
1041
|
-
var data = this.__data__,
|
|
1042
|
-
if (
|
|
1065
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1066
|
+
if (index2 < 0) {
|
|
1043
1067
|
return false;
|
|
1044
1068
|
}
|
|
1045
1069
|
var lastIndex = data.length - 1;
|
|
1046
|
-
if (
|
|
1070
|
+
if (index2 == lastIndex) {
|
|
1047
1071
|
data.pop();
|
|
1048
1072
|
} else {
|
|
1049
|
-
splice.call(data,
|
|
1073
|
+
splice.call(data, index2, 1);
|
|
1050
1074
|
}
|
|
1051
1075
|
--this.size;
|
|
1052
1076
|
return true;
|
|
1053
1077
|
}
|
|
1054
1078
|
function listCacheGet(key) {
|
|
1055
|
-
var data = this.__data__,
|
|
1056
|
-
return
|
|
1079
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1080
|
+
return index2 < 0 ? undefined$1 : data[index2][1];
|
|
1057
1081
|
}
|
|
1058
1082
|
function listCacheHas(key) {
|
|
1059
1083
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1060
1084
|
}
|
|
1061
1085
|
function listCacheSet(key, value) {
|
|
1062
|
-
var data = this.__data__,
|
|
1063
|
-
if (
|
|
1086
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
1087
|
+
if (index2 < 0) {
|
|
1064
1088
|
++this.size;
|
|
1065
1089
|
data.push([key, value]);
|
|
1066
1090
|
} else {
|
|
1067
|
-
data[
|
|
1091
|
+
data[index2][1] = value;
|
|
1068
1092
|
}
|
|
1069
1093
|
return this;
|
|
1070
1094
|
}
|
|
@@ -1074,10 +1098,10 @@ function requireLodash() {
|
|
|
1074
1098
|
ListCache.prototype.has = listCacheHas;
|
|
1075
1099
|
ListCache.prototype.set = listCacheSet;
|
|
1076
1100
|
function MapCache(entries) {
|
|
1077
|
-
var
|
|
1101
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
1078
1102
|
this.clear();
|
|
1079
|
-
while (++
|
|
1080
|
-
var entry = entries[
|
|
1103
|
+
while (++index2 < length) {
|
|
1104
|
+
var entry = entries[index2];
|
|
1081
1105
|
this.set(entry[0], entry[1]);
|
|
1082
1106
|
}
|
|
1083
1107
|
}
|
|
@@ -1112,10 +1136,10 @@ function requireLodash() {
|
|
|
1112
1136
|
MapCache.prototype.has = mapCacheHas;
|
|
1113
1137
|
MapCache.prototype.set = mapCacheSet;
|
|
1114
1138
|
function SetCache(values2) {
|
|
1115
|
-
var
|
|
1139
|
+
var index2 = -1, length = values2 == null ? 0 : values2.length;
|
|
1116
1140
|
this.__data__ = new MapCache();
|
|
1117
|
-
while (++
|
|
1118
|
-
this.add(values2[
|
|
1141
|
+
while (++index2 < length) {
|
|
1142
|
+
this.add(values2[index2]);
|
|
1119
1143
|
}
|
|
1120
1144
|
}
|
|
1121
1145
|
function setCacheAdd(value) {
|
|
@@ -1234,9 +1258,9 @@ function requireLodash() {
|
|
|
1234
1258
|
}
|
|
1235
1259
|
}
|
|
1236
1260
|
function baseAt(object, paths) {
|
|
1237
|
-
var
|
|
1238
|
-
while (++
|
|
1239
|
-
result2[
|
|
1261
|
+
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null;
|
|
1262
|
+
while (++index2 < length) {
|
|
1263
|
+
result2[index2] = skip ? undefined$1 : get(object, paths[index2]);
|
|
1240
1264
|
}
|
|
1241
1265
|
return result2;
|
|
1242
1266
|
}
|
|
@@ -1340,7 +1364,7 @@ function requireLodash() {
|
|
|
1340
1364
|
}, wait);
|
|
1341
1365
|
}
|
|
1342
1366
|
function baseDifference(array, values2, iteratee2, comparator) {
|
|
1343
|
-
var
|
|
1367
|
+
var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length;
|
|
1344
1368
|
if (!length) {
|
|
1345
1369
|
return result2;
|
|
1346
1370
|
}
|
|
@@ -1356,8 +1380,8 @@ function requireLodash() {
|
|
|
1356
1380
|
values2 = new SetCache(values2);
|
|
1357
1381
|
}
|
|
1358
1382
|
outer:
|
|
1359
|
-
while (++
|
|
1360
|
-
var value = array[
|
|
1383
|
+
while (++index2 < length) {
|
|
1384
|
+
var value = array[index2], computed = iteratee2 == null ? value : iteratee2(value);
|
|
1361
1385
|
value = comparator || value !== 0 ? value : 0;
|
|
1362
1386
|
if (isCommon && computed === computed) {
|
|
1363
1387
|
var valuesIndex = valuesLength;
|
|
@@ -1377,16 +1401,16 @@ function requireLodash() {
|
|
|
1377
1401
|
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
|
1378
1402
|
function baseEvery(collection, predicate) {
|
|
1379
1403
|
var result2 = true;
|
|
1380
|
-
baseEach(collection, function(value,
|
|
1381
|
-
result2 = !!predicate(value,
|
|
1404
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
1405
|
+
result2 = !!predicate(value, index2, collection2);
|
|
1382
1406
|
return result2;
|
|
1383
1407
|
});
|
|
1384
1408
|
return result2;
|
|
1385
1409
|
}
|
|
1386
1410
|
function baseExtremum(array, iteratee2, comparator) {
|
|
1387
|
-
var
|
|
1388
|
-
while (++
|
|
1389
|
-
var value = array[
|
|
1411
|
+
var index2 = -1, length = array.length;
|
|
1412
|
+
while (++index2 < length) {
|
|
1413
|
+
var value = array[index2], current = iteratee2(value);
|
|
1390
1414
|
if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) {
|
|
1391
1415
|
var computed = current, result2 = value;
|
|
1392
1416
|
}
|
|
@@ -1411,19 +1435,19 @@ function requireLodash() {
|
|
|
1411
1435
|
}
|
|
1412
1436
|
function baseFilter(collection, predicate) {
|
|
1413
1437
|
var result2 = [];
|
|
1414
|
-
baseEach(collection, function(value,
|
|
1415
|
-
if (predicate(value,
|
|
1438
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
1439
|
+
if (predicate(value, index2, collection2)) {
|
|
1416
1440
|
result2.push(value);
|
|
1417
1441
|
}
|
|
1418
1442
|
});
|
|
1419
1443
|
return result2;
|
|
1420
1444
|
}
|
|
1421
1445
|
function baseFlatten(array, depth, predicate, isStrict, result2) {
|
|
1422
|
-
var
|
|
1446
|
+
var index2 = -1, length = array.length;
|
|
1423
1447
|
predicate || (predicate = isFlattenable);
|
|
1424
1448
|
result2 || (result2 = []);
|
|
1425
|
-
while (++
|
|
1426
|
-
var value = array[
|
|
1449
|
+
while (++index2 < length) {
|
|
1450
|
+
var value = array[index2];
|
|
1427
1451
|
if (depth > 0 && predicate(value)) {
|
|
1428
1452
|
if (depth > 1) {
|
|
1429
1453
|
baseFlatten(value, depth - 1, predicate, isStrict, result2);
|
|
@@ -1451,11 +1475,11 @@ function requireLodash() {
|
|
|
1451
1475
|
}
|
|
1452
1476
|
function baseGet(object, path) {
|
|
1453
1477
|
path = castPath(path, object);
|
|
1454
|
-
var
|
|
1455
|
-
while (object != null &&
|
|
1456
|
-
object = object[toKey(path[
|
|
1478
|
+
var index2 = 0, length = path.length;
|
|
1479
|
+
while (object != null && index2 < length) {
|
|
1480
|
+
object = object[toKey(path[index2++])];
|
|
1457
1481
|
}
|
|
1458
|
-
return
|
|
1482
|
+
return index2 && index2 == length ? object : undefined$1;
|
|
1459
1483
|
}
|
|
1460
1484
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1461
1485
|
var result2 = keysFunc(object);
|
|
@@ -1490,10 +1514,10 @@ function requireLodash() {
|
|
|
1490
1514
|
caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
|
|
1491
1515
|
}
|
|
1492
1516
|
array = arrays[0];
|
|
1493
|
-
var
|
|
1517
|
+
var index2 = -1, seen = caches[0];
|
|
1494
1518
|
outer:
|
|
1495
|
-
while (++
|
|
1496
|
-
var value = array[
|
|
1519
|
+
while (++index2 < length && result2.length < maxLength) {
|
|
1520
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
1497
1521
|
value = comparator || value !== 0 ? value : 0;
|
|
1498
1522
|
if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) {
|
|
1499
1523
|
othIndex = othLength;
|
|
@@ -1575,19 +1599,19 @@ function requireLodash() {
|
|
|
1575
1599
|
return isObjectLike(value) && getTag(value) == mapTag;
|
|
1576
1600
|
}
|
|
1577
1601
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
1578
|
-
var
|
|
1602
|
+
var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
|
1579
1603
|
if (object == null) {
|
|
1580
1604
|
return !length;
|
|
1581
1605
|
}
|
|
1582
1606
|
object = Object2(object);
|
|
1583
|
-
while (
|
|
1584
|
-
var data = matchData[
|
|
1607
|
+
while (index2--) {
|
|
1608
|
+
var data = matchData[index2];
|
|
1585
1609
|
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
1586
1610
|
return false;
|
|
1587
1611
|
}
|
|
1588
1612
|
}
|
|
1589
|
-
while (++
|
|
1590
|
-
data = matchData[
|
|
1613
|
+
while (++index2 < length) {
|
|
1614
|
+
data = matchData[index2];
|
|
1591
1615
|
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1592
1616
|
if (noCustomizer && data[2]) {
|
|
1593
1617
|
if (objValue === undefined$1 && !(key in object)) {
|
|
@@ -1661,9 +1685,9 @@ function requireLodash() {
|
|
|
1661
1685
|
return value < other;
|
|
1662
1686
|
}
|
|
1663
1687
|
function baseMap(collection, iteratee2) {
|
|
1664
|
-
var
|
|
1688
|
+
var index2 = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
1665
1689
|
baseEach(collection, function(value, key, collection2) {
|
|
1666
|
-
result2[++
|
|
1690
|
+
result2[++index2] = iteratee2(value, key, collection2);
|
|
1667
1691
|
});
|
|
1668
1692
|
return result2;
|
|
1669
1693
|
}
|
|
@@ -1766,13 +1790,13 @@ function requireLodash() {
|
|
|
1766
1790
|
} else {
|
|
1767
1791
|
iteratees = [identity];
|
|
1768
1792
|
}
|
|
1769
|
-
var
|
|
1793
|
+
var index2 = -1;
|
|
1770
1794
|
iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
|
|
1771
1795
|
var result2 = baseMap(collection, function(value, key, collection2) {
|
|
1772
1796
|
var criteria = arrayMap(iteratees, function(iteratee2) {
|
|
1773
1797
|
return iteratee2(value);
|
|
1774
1798
|
});
|
|
1775
|
-
return { "criteria": criteria, "index": ++
|
|
1799
|
+
return { "criteria": criteria, "index": ++index2, "value": value };
|
|
1776
1800
|
});
|
|
1777
1801
|
return baseSortBy(result2, function(object, other) {
|
|
1778
1802
|
return compareMultiple(object, other, orders);
|
|
@@ -1784,9 +1808,9 @@ function requireLodash() {
|
|
|
1784
1808
|
});
|
|
1785
1809
|
}
|
|
1786
1810
|
function basePickBy(object, paths, predicate) {
|
|
1787
|
-
var
|
|
1788
|
-
while (++
|
|
1789
|
-
var path = paths[
|
|
1811
|
+
var index2 = -1, length = paths.length, result2 = {};
|
|
1812
|
+
while (++index2 < length) {
|
|
1813
|
+
var path = paths[index2], value = baseGet(object, path);
|
|
1790
1814
|
if (predicate(value, path)) {
|
|
1791
1815
|
baseSet(result2, castPath(path, object), value);
|
|
1792
1816
|
}
|
|
@@ -1799,15 +1823,15 @@ function requireLodash() {
|
|
|
1799
1823
|
};
|
|
1800
1824
|
}
|
|
1801
1825
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
1802
|
-
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf,
|
|
1826
|
+
var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1, length = values2.length, seen = array;
|
|
1803
1827
|
if (array === values2) {
|
|
1804
1828
|
values2 = copyArray(values2);
|
|
1805
1829
|
}
|
|
1806
1830
|
if (iteratee2) {
|
|
1807
1831
|
seen = arrayMap(array, baseUnary(iteratee2));
|
|
1808
1832
|
}
|
|
1809
|
-
while (++
|
|
1810
|
-
var fromIndex = 0, value = values2[
|
|
1833
|
+
while (++index2 < length) {
|
|
1834
|
+
var fromIndex = 0, value = values2[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
1811
1835
|
while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
|
|
1812
1836
|
if (seen !== array) {
|
|
1813
1837
|
splice.call(seen, fromIndex, 1);
|
|
@@ -1820,13 +1844,13 @@ function requireLodash() {
|
|
|
1820
1844
|
function basePullAt(array, indexes) {
|
|
1821
1845
|
var length = array ? indexes.length : 0, lastIndex = length - 1;
|
|
1822
1846
|
while (length--) {
|
|
1823
|
-
var
|
|
1824
|
-
if (length == lastIndex ||
|
|
1825
|
-
var previous =
|
|
1826
|
-
if (isIndex(
|
|
1827
|
-
splice.call(array,
|
|
1847
|
+
var index2 = indexes[length];
|
|
1848
|
+
if (length == lastIndex || index2 !== previous) {
|
|
1849
|
+
var previous = index2;
|
|
1850
|
+
if (isIndex(index2)) {
|
|
1851
|
+
splice.call(array, index2, 1);
|
|
1828
1852
|
} else {
|
|
1829
|
-
baseUnset(array,
|
|
1853
|
+
baseUnset(array, index2);
|
|
1830
1854
|
}
|
|
1831
1855
|
}
|
|
1832
1856
|
}
|
|
@@ -1836,9 +1860,9 @@ function requireLodash() {
|
|
|
1836
1860
|
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
1837
1861
|
}
|
|
1838
1862
|
function baseRange(start, end, step, fromRight) {
|
|
1839
|
-
var
|
|
1863
|
+
var index2 = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length);
|
|
1840
1864
|
while (length--) {
|
|
1841
|
-
result2[fromRight ? length : ++
|
|
1865
|
+
result2[fromRight ? length : ++index2] = start;
|
|
1842
1866
|
start += step;
|
|
1843
1867
|
}
|
|
1844
1868
|
return result2;
|
|
@@ -1874,17 +1898,17 @@ function requireLodash() {
|
|
|
1874
1898
|
return object;
|
|
1875
1899
|
}
|
|
1876
1900
|
path = castPath(path, object);
|
|
1877
|
-
var
|
|
1878
|
-
while (nested != null && ++
|
|
1879
|
-
var key = toKey(path[
|
|
1901
|
+
var index2 = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
1902
|
+
while (nested != null && ++index2 < length) {
|
|
1903
|
+
var key = toKey(path[index2]), newValue = value;
|
|
1880
1904
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
1881
1905
|
return object;
|
|
1882
1906
|
}
|
|
1883
|
-
if (
|
|
1907
|
+
if (index2 != lastIndex) {
|
|
1884
1908
|
var objValue = nested[key];
|
|
1885
1909
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
1886
1910
|
if (newValue === undefined$1) {
|
|
1887
|
-
newValue = isObject(objValue) ? objValue : isIndex(path[
|
|
1911
|
+
newValue = isObject(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
|
|
1888
1912
|
}
|
|
1889
1913
|
}
|
|
1890
1914
|
assignValue(nested, key, newValue);
|
|
@@ -1908,7 +1932,7 @@ function requireLodash() {
|
|
|
1908
1932
|
return shuffleSelf(values(collection));
|
|
1909
1933
|
}
|
|
1910
1934
|
function baseSlice(array, start, end) {
|
|
1911
|
-
var
|
|
1935
|
+
var index2 = -1, length = array.length;
|
|
1912
1936
|
if (start < 0) {
|
|
1913
1937
|
start = -start > length ? 0 : length + start;
|
|
1914
1938
|
}
|
|
@@ -1919,15 +1943,15 @@ function requireLodash() {
|
|
|
1919
1943
|
length = start > end ? 0 : end - start >>> 0;
|
|
1920
1944
|
start >>>= 0;
|
|
1921
1945
|
var result2 = Array2(length);
|
|
1922
|
-
while (++
|
|
1923
|
-
result2[
|
|
1946
|
+
while (++index2 < length) {
|
|
1947
|
+
result2[index2] = array[index2 + start];
|
|
1924
1948
|
}
|
|
1925
1949
|
return result2;
|
|
1926
1950
|
}
|
|
1927
1951
|
function baseSome(collection, predicate) {
|
|
1928
1952
|
var result2;
|
|
1929
|
-
baseEach(collection, function(value,
|
|
1930
|
-
result2 = predicate(value,
|
|
1953
|
+
baseEach(collection, function(value, index2, collection2) {
|
|
1954
|
+
result2 = predicate(value, index2, collection2);
|
|
1931
1955
|
return !result2;
|
|
1932
1956
|
});
|
|
1933
1957
|
return !!result2;
|
|
@@ -1978,10 +2002,10 @@ function requireLodash() {
|
|
|
1978
2002
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
1979
2003
|
}
|
|
1980
2004
|
function baseSortedUniq(array, iteratee2) {
|
|
1981
|
-
var
|
|
1982
|
-
while (++
|
|
1983
|
-
var value = array[
|
|
1984
|
-
if (!
|
|
2005
|
+
var index2 = -1, length = array.length, resIndex = 0, result2 = [];
|
|
2006
|
+
while (++index2 < length) {
|
|
2007
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
2008
|
+
if (!index2 || !eq(computed, seen)) {
|
|
1985
2009
|
var seen = computed;
|
|
1986
2010
|
result2[resIndex++] = value === 0 ? 0 : value;
|
|
1987
2011
|
}
|
|
@@ -2011,7 +2035,7 @@ function requireLodash() {
|
|
|
2011
2035
|
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
|
2012
2036
|
}
|
|
2013
2037
|
function baseUniq(array, iteratee2, comparator) {
|
|
2014
|
-
var
|
|
2038
|
+
var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
|
|
2015
2039
|
if (comparator) {
|
|
2016
2040
|
isCommon = false;
|
|
2017
2041
|
includes2 = arrayIncludesWith;
|
|
@@ -2027,8 +2051,8 @@ function requireLodash() {
|
|
|
2027
2051
|
seen = iteratee2 ? [] : result2;
|
|
2028
2052
|
}
|
|
2029
2053
|
outer:
|
|
2030
|
-
while (++
|
|
2031
|
-
var value = array[
|
|
2054
|
+
while (++index2 < length) {
|
|
2055
|
+
var value = array[index2], computed = iteratee2 ? iteratee2(value) : value;
|
|
2032
2056
|
value = comparator || value !== 0 ? value : 0;
|
|
2033
2057
|
if (isCommon && computed === computed) {
|
|
2034
2058
|
var seenIndex = seen.length;
|
|
@@ -2059,10 +2083,10 @@ function requireLodash() {
|
|
|
2059
2083
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
|
2060
2084
|
}
|
|
2061
2085
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
2062
|
-
var length = array.length,
|
|
2063
|
-
while ((fromRight ?
|
|
2086
|
+
var length = array.length, index2 = fromRight ? length : -1;
|
|
2087
|
+
while ((fromRight ? index2-- : ++index2 < length) && predicate(array[index2], index2, array)) {
|
|
2064
2088
|
}
|
|
2065
|
-
return isDrop ? baseSlice(array, fromRight ? 0 :
|
|
2089
|
+
return isDrop ? baseSlice(array, fromRight ? 0 : index2, fromRight ? index2 + 1 : length) : baseSlice(array, fromRight ? index2 + 1 : 0, fromRight ? length : index2);
|
|
2066
2090
|
}
|
|
2067
2091
|
function baseWrapperValue(value, actions) {
|
|
2068
2092
|
var result2 = value;
|
|
@@ -2078,22 +2102,22 @@ function requireLodash() {
|
|
|
2078
2102
|
if (length < 2) {
|
|
2079
2103
|
return length ? baseUniq(arrays[0]) : [];
|
|
2080
2104
|
}
|
|
2081
|
-
var
|
|
2082
|
-
while (++
|
|
2083
|
-
var array = arrays[
|
|
2105
|
+
var index2 = -1, result2 = Array2(length);
|
|
2106
|
+
while (++index2 < length) {
|
|
2107
|
+
var array = arrays[index2], othIndex = -1;
|
|
2084
2108
|
while (++othIndex < length) {
|
|
2085
|
-
if (othIndex !=
|
|
2086
|
-
result2[
|
|
2109
|
+
if (othIndex != index2) {
|
|
2110
|
+
result2[index2] = baseDifference(result2[index2] || array, arrays[othIndex], iteratee2, comparator);
|
|
2087
2111
|
}
|
|
2088
2112
|
}
|
|
2089
2113
|
}
|
|
2090
2114
|
return baseUniq(baseFlatten(result2, 1), iteratee2, comparator);
|
|
2091
2115
|
}
|
|
2092
2116
|
function baseZipObject(props, values2, assignFunc) {
|
|
2093
|
-
var
|
|
2094
|
-
while (++
|
|
2095
|
-
var value =
|
|
2096
|
-
assignFunc(result2, props[
|
|
2117
|
+
var index2 = -1, length = props.length, valsLength = values2.length, result2 = {};
|
|
2118
|
+
while (++index2 < length) {
|
|
2119
|
+
var value = index2 < valsLength ? values2[index2] : undefined$1;
|
|
2120
|
+
assignFunc(result2, props[index2], value);
|
|
2097
2121
|
}
|
|
2098
2122
|
return result2;
|
|
2099
2123
|
}
|
|
@@ -2161,14 +2185,14 @@ function requireLodash() {
|
|
|
2161
2185
|
return 0;
|
|
2162
2186
|
}
|
|
2163
2187
|
function compareMultiple(object, other, orders) {
|
|
2164
|
-
var
|
|
2165
|
-
while (++
|
|
2166
|
-
var result2 = compareAscending(objCriteria[
|
|
2188
|
+
var index2 = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
2189
|
+
while (++index2 < length) {
|
|
2190
|
+
var result2 = compareAscending(objCriteria[index2], othCriteria[index2]);
|
|
2167
2191
|
if (result2) {
|
|
2168
|
-
if (
|
|
2192
|
+
if (index2 >= ordersLength) {
|
|
2169
2193
|
return result2;
|
|
2170
2194
|
}
|
|
2171
|
-
var order = orders[
|
|
2195
|
+
var order = orders[index2];
|
|
2172
2196
|
return result2 * (order == "desc" ? -1 : 1);
|
|
2173
2197
|
}
|
|
2174
2198
|
}
|
|
@@ -2206,19 +2230,19 @@ function requireLodash() {
|
|
|
2206
2230
|
return result2;
|
|
2207
2231
|
}
|
|
2208
2232
|
function copyArray(source, array) {
|
|
2209
|
-
var
|
|
2233
|
+
var index2 = -1, length = source.length;
|
|
2210
2234
|
array || (array = Array2(length));
|
|
2211
|
-
while (++
|
|
2212
|
-
array[
|
|
2235
|
+
while (++index2 < length) {
|
|
2236
|
+
array[index2] = source[index2];
|
|
2213
2237
|
}
|
|
2214
2238
|
return array;
|
|
2215
2239
|
}
|
|
2216
2240
|
function copyObject(source, props, object, customizer) {
|
|
2217
2241
|
var isNew = !object;
|
|
2218
2242
|
object || (object = {});
|
|
2219
|
-
var
|
|
2220
|
-
while (++
|
|
2221
|
-
var key = props[
|
|
2243
|
+
var index2 = -1, length = props.length;
|
|
2244
|
+
while (++index2 < length) {
|
|
2245
|
+
var key = props[index2];
|
|
2222
2246
|
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined$1;
|
|
2223
2247
|
if (newValue === undefined$1) {
|
|
2224
2248
|
newValue = source[key];
|
|
@@ -2245,17 +2269,17 @@ function requireLodash() {
|
|
|
2245
2269
|
}
|
|
2246
2270
|
function createAssigner(assigner) {
|
|
2247
2271
|
return baseRest(function(object, sources) {
|
|
2248
|
-
var
|
|
2272
|
+
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
|
|
2249
2273
|
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
|
|
2250
2274
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2251
2275
|
customizer = length < 3 ? undefined$1 : customizer;
|
|
2252
2276
|
length = 1;
|
|
2253
2277
|
}
|
|
2254
2278
|
object = Object2(object);
|
|
2255
|
-
while (++
|
|
2256
|
-
var source = sources[
|
|
2279
|
+
while (++index2 < length) {
|
|
2280
|
+
var source = sources[index2];
|
|
2257
2281
|
if (source) {
|
|
2258
|
-
assigner(object, source,
|
|
2282
|
+
assigner(object, source, index2, customizer);
|
|
2259
2283
|
}
|
|
2260
2284
|
}
|
|
2261
2285
|
return object;
|
|
@@ -2269,9 +2293,9 @@ function requireLodash() {
|
|
|
2269
2293
|
if (!isArrayLike(collection)) {
|
|
2270
2294
|
return eachFunc(collection, iteratee2);
|
|
2271
2295
|
}
|
|
2272
|
-
var length = collection.length,
|
|
2273
|
-
while (fromRight ?
|
|
2274
|
-
if (iteratee2(iterable[
|
|
2296
|
+
var length = collection.length, index2 = fromRight ? length : -1, iterable = Object2(collection);
|
|
2297
|
+
while (fromRight ? index2-- : ++index2 < length) {
|
|
2298
|
+
if (iteratee2(iterable[index2], index2, iterable) === false) {
|
|
2275
2299
|
break;
|
|
2276
2300
|
}
|
|
2277
2301
|
}
|
|
@@ -2280,9 +2304,9 @@ function requireLodash() {
|
|
|
2280
2304
|
}
|
|
2281
2305
|
function createBaseFor(fromRight) {
|
|
2282
2306
|
return function(object, iteratee2, keysFunc) {
|
|
2283
|
-
var
|
|
2307
|
+
var index2 = -1, iterable = Object2(object), props = keysFunc(object), length = props.length;
|
|
2284
2308
|
while (length--) {
|
|
2285
|
-
var key = props[fromRight ? length : ++
|
|
2309
|
+
var key = props[fromRight ? length : ++index2];
|
|
2286
2310
|
if (iteratee2(iterable[key], key, iterable) === false) {
|
|
2287
2311
|
break;
|
|
2288
2312
|
}
|
|
@@ -2340,9 +2364,9 @@ function requireLodash() {
|
|
|
2340
2364
|
function createCurry(func, bitmask, arity) {
|
|
2341
2365
|
var Ctor = createCtor(func);
|
|
2342
2366
|
function wrapper() {
|
|
2343
|
-
var length = arguments.length, args = Array2(length),
|
|
2344
|
-
while (
|
|
2345
|
-
args[
|
|
2367
|
+
var length = arguments.length, args = Array2(length), index2 = length, placeholder = getHolder(wrapper);
|
|
2368
|
+
while (index2--) {
|
|
2369
|
+
args[index2] = arguments[index2];
|
|
2346
2370
|
}
|
|
2347
2371
|
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
|
2348
2372
|
length -= holders.length;
|
|
@@ -2375,18 +2399,18 @@ function requireLodash() {
|
|
|
2375
2399
|
return iteratee2(iterable[key], key, iterable);
|
|
2376
2400
|
};
|
|
2377
2401
|
}
|
|
2378
|
-
var
|
|
2379
|
-
return
|
|
2402
|
+
var index2 = findIndexFunc(collection, predicate, fromIndex);
|
|
2403
|
+
return index2 > -1 ? iterable[iteratee2 ? collection[index2] : index2] : undefined$1;
|
|
2380
2404
|
};
|
|
2381
2405
|
}
|
|
2382
2406
|
function createFlow(fromRight) {
|
|
2383
2407
|
return flatRest(function(funcs) {
|
|
2384
|
-
var length = funcs.length,
|
|
2408
|
+
var length = funcs.length, index2 = length, prereq = LodashWrapper.prototype.thru;
|
|
2385
2409
|
if (fromRight) {
|
|
2386
2410
|
funcs.reverse();
|
|
2387
2411
|
}
|
|
2388
|
-
while (
|
|
2389
|
-
var func = funcs[
|
|
2412
|
+
while (index2--) {
|
|
2413
|
+
var func = funcs[index2];
|
|
2390
2414
|
if (typeof func != "function") {
|
|
2391
2415
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
2392
2416
|
}
|
|
@@ -2394,9 +2418,9 @@ function requireLodash() {
|
|
|
2394
2418
|
var wrapper = new LodashWrapper([], true);
|
|
2395
2419
|
}
|
|
2396
2420
|
}
|
|
2397
|
-
|
|
2398
|
-
while (++
|
|
2399
|
-
func = funcs[
|
|
2421
|
+
index2 = wrapper ? index2 : length;
|
|
2422
|
+
while (++index2 < length) {
|
|
2423
|
+
func = funcs[index2];
|
|
2400
2424
|
var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1;
|
|
2401
2425
|
if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
|
|
2402
2426
|
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
|
|
@@ -2409,9 +2433,9 @@ function requireLodash() {
|
|
|
2409
2433
|
if (wrapper && args.length == 1 && isArray(value)) {
|
|
2410
2434
|
return wrapper.plant(value).value();
|
|
2411
2435
|
}
|
|
2412
|
-
var
|
|
2413
|
-
while (++
|
|
2414
|
-
result2 = funcs[
|
|
2436
|
+
var index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value;
|
|
2437
|
+
while (++index3 < length) {
|
|
2438
|
+
result2 = funcs[index3].call(this, result2);
|
|
2415
2439
|
}
|
|
2416
2440
|
return result2;
|
|
2417
2441
|
};
|
|
@@ -2420,9 +2444,9 @@ function requireLodash() {
|
|
|
2420
2444
|
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
|
|
2421
2445
|
var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func);
|
|
2422
2446
|
function wrapper() {
|
|
2423
|
-
var length = arguments.length, args = Array2(length),
|
|
2424
|
-
while (
|
|
2425
|
-
args[
|
|
2447
|
+
var length = arguments.length, args = Array2(length), index2 = length;
|
|
2448
|
+
while (index2--) {
|
|
2449
|
+
args[index2] = arguments[index2];
|
|
2426
2450
|
}
|
|
2427
2451
|
if (isCurried) {
|
|
2428
2452
|
var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder);
|
|
@@ -2690,13 +2714,13 @@ function requireLodash() {
|
|
|
2690
2714
|
if (arrStacked && othStacked) {
|
|
2691
2715
|
return arrStacked == other && othStacked == array;
|
|
2692
2716
|
}
|
|
2693
|
-
var
|
|
2717
|
+
var index2 = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
|
|
2694
2718
|
stack.set(array, other);
|
|
2695
2719
|
stack.set(other, array);
|
|
2696
|
-
while (++
|
|
2697
|
-
var arrValue = array[
|
|
2720
|
+
while (++index2 < arrLength) {
|
|
2721
|
+
var arrValue = array[index2], othValue = other[index2];
|
|
2698
2722
|
if (customizer) {
|
|
2699
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
|
2723
|
+
var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
|
|
2700
2724
|
}
|
|
2701
2725
|
if (compared !== undefined$1) {
|
|
2702
2726
|
if (compared) {
|
|
@@ -2774,9 +2798,9 @@ function requireLodash() {
|
|
|
2774
2798
|
if (objLength != othLength && !isPartial) {
|
|
2775
2799
|
return false;
|
|
2776
2800
|
}
|
|
2777
|
-
var
|
|
2778
|
-
while (
|
|
2779
|
-
var key = objProps[
|
|
2801
|
+
var index2 = objLength;
|
|
2802
|
+
while (index2--) {
|
|
2803
|
+
var key = objProps[index2];
|
|
2780
2804
|
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
2781
2805
|
return false;
|
|
2782
2806
|
}
|
|
@@ -2790,8 +2814,8 @@ function requireLodash() {
|
|
|
2790
2814
|
stack.set(object, other);
|
|
2791
2815
|
stack.set(other, object);
|
|
2792
2816
|
var skipCtor = isPartial;
|
|
2793
|
-
while (++
|
|
2794
|
-
key = objProps[
|
|
2817
|
+
while (++index2 < objLength) {
|
|
2818
|
+
key = objProps[index2];
|
|
2795
2819
|
var objValue = object[key], othValue = other[key];
|
|
2796
2820
|
if (customizer) {
|
|
2797
2821
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
@@ -2915,9 +2939,9 @@ function requireLodash() {
|
|
|
2915
2939
|
};
|
|
2916
2940
|
}
|
|
2917
2941
|
function getView(start, end, transforms) {
|
|
2918
|
-
var
|
|
2919
|
-
while (++
|
|
2920
|
-
var data = transforms[
|
|
2942
|
+
var index2 = -1, length = transforms.length;
|
|
2943
|
+
while (++index2 < length) {
|
|
2944
|
+
var data = transforms[index2], size2 = data.size;
|
|
2921
2945
|
switch (data.type) {
|
|
2922
2946
|
case "drop":
|
|
2923
2947
|
start += size2;
|
|
@@ -2941,15 +2965,15 @@ function requireLodash() {
|
|
|
2941
2965
|
}
|
|
2942
2966
|
function hasPath(object, path, hasFunc) {
|
|
2943
2967
|
path = castPath(path, object);
|
|
2944
|
-
var
|
|
2945
|
-
while (++
|
|
2946
|
-
var key = toKey(path[
|
|
2968
|
+
var index2 = -1, length = path.length, result2 = false;
|
|
2969
|
+
while (++index2 < length) {
|
|
2970
|
+
var key = toKey(path[index2]);
|
|
2947
2971
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
2948
2972
|
break;
|
|
2949
2973
|
}
|
|
2950
2974
|
object = object[key];
|
|
2951
2975
|
}
|
|
2952
|
-
if (result2 || ++
|
|
2976
|
+
if (result2 || ++index2 != length) {
|
|
2953
2977
|
return result2;
|
|
2954
2978
|
}
|
|
2955
2979
|
length = object == null ? 0 : object.length;
|
|
@@ -3017,13 +3041,13 @@ function requireLodash() {
|
|
|
3017
3041
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
3018
3042
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
3019
3043
|
}
|
|
3020
|
-
function isIterateeCall(value,
|
|
3044
|
+
function isIterateeCall(value, index2, object) {
|
|
3021
3045
|
if (!isObject(object)) {
|
|
3022
3046
|
return false;
|
|
3023
3047
|
}
|
|
3024
|
-
var type = typeof
|
|
3025
|
-
if (type == "number" ? isArrayLike(object) && isIndex(
|
|
3026
|
-
return eq(object[
|
|
3048
|
+
var type = typeof index2;
|
|
3049
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type == "string" && index2 in object) {
|
|
3050
|
+
return eq(object[index2], value);
|
|
3027
3051
|
}
|
|
3028
3052
|
return false;
|
|
3029
3053
|
}
|
|
@@ -3132,14 +3156,14 @@ function requireLodash() {
|
|
|
3132
3156
|
function overRest(func, start, transform2) {
|
|
3133
3157
|
start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
|
|
3134
3158
|
return function() {
|
|
3135
|
-
var args = arguments,
|
|
3136
|
-
while (++
|
|
3137
|
-
array[
|
|
3159
|
+
var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
|
|
3160
|
+
while (++index2 < length) {
|
|
3161
|
+
array[index2] = args[start + index2];
|
|
3138
3162
|
}
|
|
3139
|
-
|
|
3163
|
+
index2 = -1;
|
|
3140
3164
|
var otherArgs = Array2(start + 1);
|
|
3141
|
-
while (++
|
|
3142
|
-
otherArgs[
|
|
3165
|
+
while (++index2 < start) {
|
|
3166
|
+
otherArgs[index2] = args[index2];
|
|
3143
3167
|
}
|
|
3144
3168
|
otherArgs[start] = transform2(array);
|
|
3145
3169
|
return apply(func, this, otherArgs);
|
|
@@ -3151,8 +3175,8 @@ function requireLodash() {
|
|
|
3151
3175
|
function reorder(array, indexes) {
|
|
3152
3176
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
3153
3177
|
while (length--) {
|
|
3154
|
-
var
|
|
3155
|
-
array[length] = isIndex(
|
|
3178
|
+
var index2 = indexes[length];
|
|
3179
|
+
array[length] = isIndex(index2, arrLength) ? oldArray[index2] : undefined$1;
|
|
3156
3180
|
}
|
|
3157
3181
|
return array;
|
|
3158
3182
|
}
|
|
@@ -3190,12 +3214,12 @@ function requireLodash() {
|
|
|
3190
3214
|
};
|
|
3191
3215
|
}
|
|
3192
3216
|
function shuffleSelf(array, size2) {
|
|
3193
|
-
var
|
|
3217
|
+
var index2 = -1, length = array.length, lastIndex = length - 1;
|
|
3194
3218
|
size2 = size2 === undefined$1 ? length : size2;
|
|
3195
|
-
while (++
|
|
3196
|
-
var rand = baseRandom(
|
|
3197
|
-
array[rand] = array[
|
|
3198
|
-
array[
|
|
3219
|
+
while (++index2 < size2) {
|
|
3220
|
+
var rand = baseRandom(index2, lastIndex), value = array[rand];
|
|
3221
|
+
array[rand] = array[index2];
|
|
3222
|
+
array[index2] = value;
|
|
3199
3223
|
}
|
|
3200
3224
|
array.length = size2;
|
|
3201
3225
|
return array;
|
|
@@ -3259,16 +3283,16 @@ function requireLodash() {
|
|
|
3259
3283
|
if (!length || size2 < 1) {
|
|
3260
3284
|
return [];
|
|
3261
3285
|
}
|
|
3262
|
-
var
|
|
3263
|
-
while (
|
|
3264
|
-
result2[resIndex++] = baseSlice(array,
|
|
3286
|
+
var index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2));
|
|
3287
|
+
while (index2 < length) {
|
|
3288
|
+
result2[resIndex++] = baseSlice(array, index2, index2 += size2);
|
|
3265
3289
|
}
|
|
3266
3290
|
return result2;
|
|
3267
3291
|
}
|
|
3268
3292
|
function compact(array) {
|
|
3269
|
-
var
|
|
3270
|
-
while (++
|
|
3271
|
-
var value = array[
|
|
3293
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = [];
|
|
3294
|
+
while (++index2 < length) {
|
|
3295
|
+
var value = array[index2];
|
|
3272
3296
|
if (value) {
|
|
3273
3297
|
result2[resIndex++] = value;
|
|
3274
3298
|
}
|
|
@@ -3280,9 +3304,9 @@ function requireLodash() {
|
|
|
3280
3304
|
if (!length) {
|
|
3281
3305
|
return [];
|
|
3282
3306
|
}
|
|
3283
|
-
var args = Array2(length - 1), array = arguments[0],
|
|
3284
|
-
while (
|
|
3285
|
-
args[
|
|
3307
|
+
var args = Array2(length - 1), array = arguments[0], index2 = length;
|
|
3308
|
+
while (index2--) {
|
|
3309
|
+
args[index2 - 1] = arguments[index2];
|
|
3286
3310
|
}
|
|
3287
3311
|
return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
|
3288
3312
|
}
|
|
@@ -3342,23 +3366,23 @@ function requireLodash() {
|
|
|
3342
3366
|
if (!length) {
|
|
3343
3367
|
return -1;
|
|
3344
3368
|
}
|
|
3345
|
-
var
|
|
3346
|
-
if (
|
|
3347
|
-
|
|
3369
|
+
var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
3370
|
+
if (index2 < 0) {
|
|
3371
|
+
index2 = nativeMax(length + index2, 0);
|
|
3348
3372
|
}
|
|
3349
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
|
3373
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index2);
|
|
3350
3374
|
}
|
|
3351
3375
|
function findLastIndex(array, predicate, fromIndex) {
|
|
3352
3376
|
var length = array == null ? 0 : array.length;
|
|
3353
3377
|
if (!length) {
|
|
3354
3378
|
return -1;
|
|
3355
3379
|
}
|
|
3356
|
-
var
|
|
3380
|
+
var index2 = length - 1;
|
|
3357
3381
|
if (fromIndex !== undefined$1) {
|
|
3358
|
-
|
|
3359
|
-
|
|
3382
|
+
index2 = toInteger(fromIndex);
|
|
3383
|
+
index2 = fromIndex < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
|
3360
3384
|
}
|
|
3361
|
-
return baseFindIndex(array, getIteratee(predicate, 3),
|
|
3385
|
+
return baseFindIndex(array, getIteratee(predicate, 3), index2, true);
|
|
3362
3386
|
}
|
|
3363
3387
|
function flatten(array) {
|
|
3364
3388
|
var length = array == null ? 0 : array.length;
|
|
@@ -3377,9 +3401,9 @@ function requireLodash() {
|
|
|
3377
3401
|
return baseFlatten(array, depth);
|
|
3378
3402
|
}
|
|
3379
3403
|
function fromPairs(pairs) {
|
|
3380
|
-
var
|
|
3381
|
-
while (++
|
|
3382
|
-
var pair = pairs[
|
|
3404
|
+
var index2 = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
3405
|
+
while (++index2 < length) {
|
|
3406
|
+
var pair = pairs[index2];
|
|
3383
3407
|
result2[pair[0]] = pair[1];
|
|
3384
3408
|
}
|
|
3385
3409
|
return result2;
|
|
@@ -3392,11 +3416,11 @@ function requireLodash() {
|
|
|
3392
3416
|
if (!length) {
|
|
3393
3417
|
return -1;
|
|
3394
3418
|
}
|
|
3395
|
-
var
|
|
3396
|
-
if (
|
|
3397
|
-
|
|
3419
|
+
var index2 = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
3420
|
+
if (index2 < 0) {
|
|
3421
|
+
index2 = nativeMax(length + index2, 0);
|
|
3398
3422
|
}
|
|
3399
|
-
return baseIndexOf(array, value,
|
|
3423
|
+
return baseIndexOf(array, value, index2);
|
|
3400
3424
|
}
|
|
3401
3425
|
function initial(array) {
|
|
3402
3426
|
var length = array == null ? 0 : array.length;
|
|
@@ -3435,12 +3459,12 @@ function requireLodash() {
|
|
|
3435
3459
|
if (!length) {
|
|
3436
3460
|
return -1;
|
|
3437
3461
|
}
|
|
3438
|
-
var
|
|
3462
|
+
var index2 = length;
|
|
3439
3463
|
if (fromIndex !== undefined$1) {
|
|
3440
|
-
|
|
3441
|
-
|
|
3464
|
+
index2 = toInteger(fromIndex);
|
|
3465
|
+
index2 = index2 < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1);
|
|
3442
3466
|
}
|
|
3443
|
-
return value === value ? strictLastIndexOf(array, value,
|
|
3467
|
+
return value === value ? strictLastIndexOf(array, value, index2) : baseFindIndex(array, baseIsNaN, index2, true);
|
|
3444
3468
|
}
|
|
3445
3469
|
function nth(array, n) {
|
|
3446
3470
|
return array && array.length ? baseNth(array, toInteger(n)) : undefined$1;
|
|
@@ -3457,8 +3481,8 @@ function requireLodash() {
|
|
|
3457
3481
|
}
|
|
3458
3482
|
var pullAt = flatRest(function(array, indexes) {
|
|
3459
3483
|
var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
|
|
3460
|
-
basePullAt(array, arrayMap(indexes, function(
|
|
3461
|
-
return isIndex(
|
|
3484
|
+
basePullAt(array, arrayMap(indexes, function(index2) {
|
|
3485
|
+
return isIndex(index2, length) ? +index2 : index2;
|
|
3462
3486
|
}).sort(compareAscending));
|
|
3463
3487
|
return result2;
|
|
3464
3488
|
});
|
|
@@ -3467,13 +3491,13 @@ function requireLodash() {
|
|
|
3467
3491
|
if (!(array && array.length)) {
|
|
3468
3492
|
return result2;
|
|
3469
3493
|
}
|
|
3470
|
-
var
|
|
3494
|
+
var index2 = -1, indexes = [], length = array.length;
|
|
3471
3495
|
predicate = getIteratee(predicate, 3);
|
|
3472
|
-
while (++
|
|
3473
|
-
var value = array[
|
|
3474
|
-
if (predicate(value,
|
|
3496
|
+
while (++index2 < length) {
|
|
3497
|
+
var value = array[index2];
|
|
3498
|
+
if (predicate(value, index2, array)) {
|
|
3475
3499
|
result2.push(value);
|
|
3476
|
-
indexes.push(
|
|
3500
|
+
indexes.push(index2);
|
|
3477
3501
|
}
|
|
3478
3502
|
}
|
|
3479
3503
|
basePullAt(array, indexes);
|
|
@@ -3505,9 +3529,9 @@ function requireLodash() {
|
|
|
3505
3529
|
function sortedIndexOf(array, value) {
|
|
3506
3530
|
var length = array == null ? 0 : array.length;
|
|
3507
3531
|
if (length) {
|
|
3508
|
-
var
|
|
3509
|
-
if (
|
|
3510
|
-
return
|
|
3532
|
+
var index2 = baseSortedIndex(array, value);
|
|
3533
|
+
if (index2 < length && eq(array[index2], value)) {
|
|
3534
|
+
return index2;
|
|
3511
3535
|
}
|
|
3512
3536
|
}
|
|
3513
3537
|
return -1;
|
|
@@ -3521,9 +3545,9 @@ function requireLodash() {
|
|
|
3521
3545
|
function sortedLastIndexOf(array, value) {
|
|
3522
3546
|
var length = array == null ? 0 : array.length;
|
|
3523
3547
|
if (length) {
|
|
3524
|
-
var
|
|
3525
|
-
if (eq(array[
|
|
3526
|
-
return
|
|
3548
|
+
var index2 = baseSortedIndex(array, value, true) - 1;
|
|
3549
|
+
if (eq(array[index2], value)) {
|
|
3550
|
+
return index2;
|
|
3527
3551
|
}
|
|
3528
3552
|
}
|
|
3529
3553
|
return -1;
|
|
@@ -3596,8 +3620,8 @@ function requireLodash() {
|
|
|
3596
3620
|
return true;
|
|
3597
3621
|
}
|
|
3598
3622
|
});
|
|
3599
|
-
return baseTimes(length, function(
|
|
3600
|
-
return arrayMap(array, baseProperty(
|
|
3623
|
+
return baseTimes(length, function(index2) {
|
|
3624
|
+
return arrayMap(array, baseProperty(index2));
|
|
3601
3625
|
});
|
|
3602
3626
|
}
|
|
3603
3627
|
function unzipWith(array, iteratee2) {
|
|
@@ -3782,9 +3806,9 @@ function requireLodash() {
|
|
|
3782
3806
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
3783
3807
|
}
|
|
3784
3808
|
var invokeMap = baseRest(function(collection, path, args) {
|
|
3785
|
-
var
|
|
3809
|
+
var index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
3786
3810
|
baseEach(collection, function(value) {
|
|
3787
|
-
result2[++
|
|
3811
|
+
result2[++index2] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
|
|
3788
3812
|
});
|
|
3789
3813
|
return result2;
|
|
3790
3814
|
});
|
|
@@ -4070,9 +4094,9 @@ function requireLodash() {
|
|
|
4070
4094
|
transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
|
|
4071
4095
|
var funcsLength = transforms.length;
|
|
4072
4096
|
return baseRest(function(args) {
|
|
4073
|
-
var
|
|
4074
|
-
while (++
|
|
4075
|
-
args[
|
|
4097
|
+
var index2 = -1, length = nativeMin(args.length, funcsLength);
|
|
4098
|
+
while (++index2 < length) {
|
|
4099
|
+
args[index2] = transforms[index2].call(this, args[index2]);
|
|
4076
4100
|
}
|
|
4077
4101
|
return apply(func, this, args);
|
|
4078
4102
|
});
|
|
@@ -4387,14 +4411,14 @@ function requireLodash() {
|
|
|
4387
4411
|
}
|
|
4388
4412
|
var defaults = baseRest(function(object, sources) {
|
|
4389
4413
|
object = Object2(object);
|
|
4390
|
-
var
|
|
4414
|
+
var index2 = -1;
|
|
4391
4415
|
var length = sources.length;
|
|
4392
4416
|
var guard = length > 2 ? sources[2] : undefined$1;
|
|
4393
4417
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
4394
4418
|
length = 1;
|
|
4395
4419
|
}
|
|
4396
|
-
while (++
|
|
4397
|
-
var source = sources[
|
|
4420
|
+
while (++index2 < length) {
|
|
4421
|
+
var source = sources[index2];
|
|
4398
4422
|
var props = keysIn(source);
|
|
4399
4423
|
var propsIndex = -1;
|
|
4400
4424
|
var propsLength = props.length;
|
|
@@ -4532,15 +4556,15 @@ function requireLodash() {
|
|
|
4532
4556
|
}
|
|
4533
4557
|
function result(object, path, defaultValue) {
|
|
4534
4558
|
path = castPath(path, object);
|
|
4535
|
-
var
|
|
4559
|
+
var index2 = -1, length = path.length;
|
|
4536
4560
|
if (!length) {
|
|
4537
4561
|
length = 1;
|
|
4538
4562
|
object = undefined$1;
|
|
4539
4563
|
}
|
|
4540
|
-
while (++
|
|
4541
|
-
var value = object == null ? undefined$1 : object[toKey(path[
|
|
4564
|
+
while (++index2 < length) {
|
|
4565
|
+
var value = object == null ? undefined$1 : object[toKey(path[index2])];
|
|
4542
4566
|
if (value === undefined$1) {
|
|
4543
|
-
|
|
4567
|
+
index2 = length;
|
|
4544
4568
|
value = defaultValue;
|
|
4545
4569
|
}
|
|
4546
4570
|
object = isFunction(value) ? value.call(object) : value;
|
|
@@ -4569,8 +4593,8 @@ function requireLodash() {
|
|
|
4569
4593
|
accumulator = {};
|
|
4570
4594
|
}
|
|
4571
4595
|
}
|
|
4572
|
-
(isArrLike ? arrayEach : baseForOwn)(object, function(value,
|
|
4573
|
-
return iteratee2(accumulator, value,
|
|
4596
|
+
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index2, object2) {
|
|
4597
|
+
return iteratee2(accumulator, value, index2, object2);
|
|
4574
4598
|
});
|
|
4575
4599
|
return accumulator;
|
|
4576
4600
|
}
|
|
@@ -4652,9 +4676,9 @@ function requireLodash() {
|
|
|
4652
4676
|
}
|
|
4653
4677
|
return baseRandom(lower, upper);
|
|
4654
4678
|
}
|
|
4655
|
-
var camelCase = createCompounder(function(result2, word,
|
|
4679
|
+
var camelCase = createCompounder(function(result2, word, index2) {
|
|
4656
4680
|
word = word.toLowerCase();
|
|
4657
|
-
return result2 + (
|
|
4681
|
+
return result2 + (index2 ? capitalize(word) : word);
|
|
4658
4682
|
});
|
|
4659
4683
|
function capitalize(string) {
|
|
4660
4684
|
return upperFirst(toString(string).toLowerCase());
|
|
@@ -4680,11 +4704,11 @@ function requireLodash() {
|
|
|
4680
4704
|
string = toString(string);
|
|
4681
4705
|
return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
|
|
4682
4706
|
}
|
|
4683
|
-
var kebabCase = createCompounder(function(result2, word,
|
|
4684
|
-
return result2 + (
|
|
4707
|
+
var kebabCase = createCompounder(function(result2, word, index2) {
|
|
4708
|
+
return result2 + (index2 ? "-" : "") + word.toLowerCase();
|
|
4685
4709
|
});
|
|
4686
|
-
var lowerCase = createCompounder(function(result2, word,
|
|
4687
|
-
return result2 + (
|
|
4710
|
+
var lowerCase = createCompounder(function(result2, word, index2) {
|
|
4711
|
+
return result2 + (index2 ? " " : "") + word.toLowerCase();
|
|
4688
4712
|
});
|
|
4689
4713
|
var lowerFirst = createCaseFirst("toLowerCase");
|
|
4690
4714
|
function pad(string, length, chars) {
|
|
@@ -4729,8 +4753,8 @@ function requireLodash() {
|
|
|
4729
4753
|
var args = arguments, string = toString(args[0]);
|
|
4730
4754
|
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
|
4731
4755
|
}
|
|
4732
|
-
var snakeCase = createCompounder(function(result2, word,
|
|
4733
|
-
return result2 + (
|
|
4756
|
+
var snakeCase = createCompounder(function(result2, word, index2) {
|
|
4757
|
+
return result2 + (index2 ? "_" : "") + word.toLowerCase();
|
|
4734
4758
|
});
|
|
4735
4759
|
function split(string, separator, limit) {
|
|
4736
4760
|
if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
|
|
@@ -4749,8 +4773,8 @@ function requireLodash() {
|
|
|
4749
4773
|
}
|
|
4750
4774
|
return string.split(separator, limit);
|
|
4751
4775
|
}
|
|
4752
|
-
var startCase = createCompounder(function(result2, word,
|
|
4753
|
-
return result2 + (
|
|
4776
|
+
var startCase = createCompounder(function(result2, word, index2) {
|
|
4777
|
+
return result2 + (index2 ? " " : "") + upperFirst(word);
|
|
4754
4778
|
});
|
|
4755
4779
|
function startsWith(string, target, position) {
|
|
4756
4780
|
string = toString(string);
|
|
@@ -4766,7 +4790,7 @@ function requireLodash() {
|
|
|
4766
4790
|
string = toString(string);
|
|
4767
4791
|
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
4768
4792
|
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
4769
|
-
var isEscaping, isEvaluating,
|
|
4793
|
+
var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
4770
4794
|
var reDelimiters = RegExp2(
|
|
4771
4795
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
4772
4796
|
"g"
|
|
@@ -4774,7 +4798,7 @@ function requireLodash() {
|
|
|
4774
4798
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
4775
4799
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
4776
4800
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
4777
|
-
source += string.slice(
|
|
4801
|
+
source += string.slice(index2, offset).replace(reUnescapedString, escapeStringChar);
|
|
4778
4802
|
if (escapeValue) {
|
|
4779
4803
|
isEscaping = true;
|
|
4780
4804
|
source += "' +\n__e(" + escapeValue + ") +\n'";
|
|
@@ -4786,7 +4810,7 @@ function requireLodash() {
|
|
|
4786
4810
|
if (interpolateValue) {
|
|
4787
4811
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
|
4788
4812
|
}
|
|
4789
|
-
|
|
4813
|
+
index2 = offset + match.length;
|
|
4790
4814
|
return match;
|
|
4791
4815
|
});
|
|
4792
4816
|
source += "';\n";
|
|
@@ -4886,9 +4910,9 @@ function requireLodash() {
|
|
|
4886
4910
|
result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd);
|
|
4887
4911
|
}
|
|
4888
4912
|
} else if (string.indexOf(baseToString(separator), end) != end) {
|
|
4889
|
-
var
|
|
4890
|
-
if (
|
|
4891
|
-
result2 = result2.slice(0,
|
|
4913
|
+
var index2 = result2.lastIndexOf(separator);
|
|
4914
|
+
if (index2 > -1) {
|
|
4915
|
+
result2 = result2.slice(0, index2);
|
|
4892
4916
|
}
|
|
4893
4917
|
}
|
|
4894
4918
|
return result2 + omission;
|
|
@@ -4897,8 +4921,8 @@ function requireLodash() {
|
|
|
4897
4921
|
string = toString(string);
|
|
4898
4922
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
4899
4923
|
}
|
|
4900
|
-
var upperCase = createCompounder(function(result2, word,
|
|
4901
|
-
return result2 + (
|
|
4924
|
+
var upperCase = createCompounder(function(result2, word, index2) {
|
|
4925
|
+
return result2 + (index2 ? " " : "") + word.toUpperCase();
|
|
4902
4926
|
});
|
|
4903
4927
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
4904
4928
|
function words(string, pattern, guard) {
|
|
@@ -4932,9 +4956,9 @@ function requireLodash() {
|
|
|
4932
4956
|
return [toIteratee(pair[0]), pair[1]];
|
|
4933
4957
|
});
|
|
4934
4958
|
return baseRest(function(args) {
|
|
4935
|
-
var
|
|
4936
|
-
while (++
|
|
4937
|
-
var pair = pairs[
|
|
4959
|
+
var index2 = -1;
|
|
4960
|
+
while (++index2 < length) {
|
|
4961
|
+
var pair = pairs[index2];
|
|
4938
4962
|
if (apply(pair[0], this, args)) {
|
|
4939
4963
|
return apply(pair[1], this, args);
|
|
4940
4964
|
}
|
|
@@ -5050,12 +5074,12 @@ function requireLodash() {
|
|
|
5050
5074
|
if (n < 1 || n > MAX_SAFE_INTEGER) {
|
|
5051
5075
|
return [];
|
|
5052
5076
|
}
|
|
5053
|
-
var
|
|
5077
|
+
var index2 = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
|
|
5054
5078
|
iteratee2 = getIteratee(iteratee2);
|
|
5055
5079
|
n -= MAX_ARRAY_LENGTH;
|
|
5056
5080
|
var result2 = baseTimes(length, iteratee2);
|
|
5057
|
-
while (++
|
|
5058
|
-
iteratee2(
|
|
5081
|
+
while (++index2 < n) {
|
|
5082
|
+
iteratee2(index2);
|
|
5059
5083
|
}
|
|
5060
5084
|
return result2;
|
|
5061
5085
|
}
|
|
@@ -5427,10 +5451,10 @@ function requireLodash() {
|
|
|
5427
5451
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
5428
5452
|
lodash2[methodName].placeholder = lodash2;
|
|
5429
5453
|
});
|
|
5430
|
-
arrayEach(["drop", "take"], function(methodName,
|
|
5454
|
+
arrayEach(["drop", "take"], function(methodName, index2) {
|
|
5431
5455
|
LazyWrapper.prototype[methodName] = function(n) {
|
|
5432
5456
|
n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
|
|
5433
|
-
var result2 = this.__filtered__ && !
|
|
5457
|
+
var result2 = this.__filtered__ && !index2 ? new LazyWrapper(this) : this.clone();
|
|
5434
5458
|
if (result2.__filtered__) {
|
|
5435
5459
|
result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
|
|
5436
5460
|
} else {
|
|
@@ -5445,8 +5469,8 @@ function requireLodash() {
|
|
|
5445
5469
|
return this.reverse()[methodName](n).reverse();
|
|
5446
5470
|
};
|
|
5447
5471
|
});
|
|
5448
|
-
arrayEach(["filter", "map", "takeWhile"], function(methodName,
|
|
5449
|
-
var type =
|
|
5472
|
+
arrayEach(["filter", "map", "takeWhile"], function(methodName, index2) {
|
|
5473
|
+
var type = index2 + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
|
|
5450
5474
|
LazyWrapper.prototype[methodName] = function(iteratee2) {
|
|
5451
5475
|
var result2 = this.clone();
|
|
5452
5476
|
result2.__iteratees__.push({
|
|
@@ -5457,14 +5481,14 @@ function requireLodash() {
|
|
|
5457
5481
|
return result2;
|
|
5458
5482
|
};
|
|
5459
5483
|
});
|
|
5460
|
-
arrayEach(["head", "last"], function(methodName,
|
|
5461
|
-
var takeName = "take" + (
|
|
5484
|
+
arrayEach(["head", "last"], function(methodName, index2) {
|
|
5485
|
+
var takeName = "take" + (index2 ? "Right" : "");
|
|
5462
5486
|
LazyWrapper.prototype[methodName] = function() {
|
|
5463
5487
|
return this[takeName](1).value()[0];
|
|
5464
5488
|
};
|
|
5465
5489
|
});
|
|
5466
|
-
arrayEach(["initial", "tail"], function(methodName,
|
|
5467
|
-
var dropName = "drop" + (
|
|
5490
|
+
arrayEach(["initial", "tail"], function(methodName, index2) {
|
|
5491
|
+
var dropName = "drop" + (index2 ? "" : "Right");
|
|
5468
5492
|
LazyWrapper.prototype[methodName] = function() {
|
|
5469
5493
|
return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
|
|
5470
5494
|
};
|
|
@@ -7600,7 +7624,7 @@ function distributeFlexSpace(children, availableSpace, direction) {
|
|
|
7600
7624
|
}
|
|
7601
7625
|
const flexItems = [];
|
|
7602
7626
|
let nonFlexSpace = 0;
|
|
7603
|
-
children.forEach((layoutChild,
|
|
7627
|
+
children.forEach((layoutChild, index2) => {
|
|
7604
7628
|
const props = layoutChild.child.__layoutProps;
|
|
7605
7629
|
const hasExplicitFlex = props?.flex !== void 0;
|
|
7606
7630
|
const hasExplicitShrink = props?.flexShrink !== void 0;
|
|
@@ -7627,7 +7651,7 @@ function distributeFlexSpace(children, availableSpace, direction) {
|
|
|
7627
7651
|
if (isFlexItem) {
|
|
7628
7652
|
flexItems.push({
|
|
7629
7653
|
child: layoutChild,
|
|
7630
|
-
index,
|
|
7654
|
+
index: index2,
|
|
7631
7655
|
flexGrow,
|
|
7632
7656
|
flexShrink,
|
|
7633
7657
|
flexBasis: basisSize,
|
|
@@ -10455,13 +10479,13 @@ function mount(parentOrScene, vnode) {
|
|
|
10455
10479
|
if (flatChildren.length > 0) {
|
|
10456
10480
|
warnMissingKeys(vnode, flatChildren);
|
|
10457
10481
|
}
|
|
10458
|
-
flatChildren.forEach((c,
|
|
10482
|
+
flatChildren.forEach((c, index2) => {
|
|
10459
10483
|
if (!shouldSkipChild(c)) {
|
|
10460
10484
|
let child = c;
|
|
10461
10485
|
if (!child || typeof child !== "object" || !child.type) {
|
|
10462
10486
|
const componentPath = buildComponentPath(vnode);
|
|
10463
10487
|
console.warn(
|
|
10464
|
-
`❌ Invalid child at index ${
|
|
10488
|
+
`❌ Invalid child at index ${index2}`,
|
|
10465
10489
|
`
|
|
10466
10490
|
📍 Component path: ${componentPath}`,
|
|
10467
10491
|
`
|
|
@@ -13684,9 +13708,9 @@ const getTextObject = (scene, container, textStyle, textObjectPool, activeTextOb
|
|
|
13684
13708
|
};
|
|
13685
13709
|
const returnToPool = (textObj, textObjectPool, activeTextObjects) => {
|
|
13686
13710
|
textObj.setVisible(false);
|
|
13687
|
-
const
|
|
13688
|
-
if (
|
|
13689
|
-
activeTextObjects.current.splice(
|
|
13711
|
+
const index2 = activeTextObjects.current.indexOf(textObj);
|
|
13712
|
+
if (index2 > -1) {
|
|
13713
|
+
activeTextObjects.current.splice(index2, 1);
|
|
13690
13714
|
}
|
|
13691
13715
|
textObjectPool.current.push(textObj);
|
|
13692
13716
|
};
|
|
@@ -13769,8 +13793,8 @@ function CharText(props) {
|
|
|
13769
13793
|
const textOverflow = props.textOverflow ?? "clip";
|
|
13770
13794
|
const wordWrap = props.wordWrap ?? themed.wordWrap ?? true;
|
|
13771
13795
|
const api = {
|
|
13772
|
-
insertChar: (char,
|
|
13773
|
-
const newText = displayedText.slice(0,
|
|
13796
|
+
insertChar: (char, index2) => {
|
|
13797
|
+
const newText = displayedText.slice(0, index2) + char + displayedText.slice(index2);
|
|
13774
13798
|
if (isControlled) {
|
|
13775
13799
|
props.onChange?.(newText);
|
|
13776
13800
|
} else {
|
|
@@ -13778,9 +13802,9 @@ function CharText(props) {
|
|
|
13778
13802
|
props.onChange?.(newText);
|
|
13779
13803
|
}
|
|
13780
13804
|
},
|
|
13781
|
-
deleteChar: (
|
|
13782
|
-
if (
|
|
13783
|
-
const newText = displayedText.slice(0,
|
|
13805
|
+
deleteChar: (index2) => {
|
|
13806
|
+
if (index2 < 0 || index2 >= displayedText.length) return;
|
|
13807
|
+
const newText = displayedText.slice(0, index2) + displayedText.slice(index2 + 1);
|
|
13784
13808
|
if (isControlled) {
|
|
13785
13809
|
props.onChange?.(newText);
|
|
13786
13810
|
} else {
|
|
@@ -13788,9 +13812,9 @@ function CharText(props) {
|
|
|
13788
13812
|
props.onChange?.(newText);
|
|
13789
13813
|
}
|
|
13790
13814
|
},
|
|
13791
|
-
replaceChar: (
|
|
13792
|
-
if (
|
|
13793
|
-
const newText = displayedText.slice(0,
|
|
13815
|
+
replaceChar: (index2, char) => {
|
|
13816
|
+
if (index2 < 0 || index2 >= displayedText.length) return;
|
|
13817
|
+
const newText = displayedText.slice(0, index2) + char + displayedText.slice(index2 + 1);
|
|
13794
13818
|
if (isControlled) {
|
|
13795
13819
|
props.onChange?.(newText);
|
|
13796
13820
|
} else {
|
|
@@ -14859,13 +14883,13 @@ function ScrollView(props) {
|
|
|
14859
14883
|
const sorted = [...snap.positions].sort((a, b) => a - b);
|
|
14860
14884
|
const inferredSizeY = sorted.length > 1 ? Math.max(0, (sorted[1] ?? 0) - (sorted[0] ?? 0)) : viewportHeightCurrent || 0;
|
|
14861
14885
|
const inferredSizeX = sorted.length > 1 ? Math.max(0, (sorted[1] ?? 0) - (sorted[0] ?? 0)) : viewportWidthCurrent || 0;
|
|
14862
|
-
const targetsX = sorted.map((position,
|
|
14863
|
-
const next = sorted[
|
|
14886
|
+
const targetsX = sorted.map((position, index2) => {
|
|
14887
|
+
const next = sorted[index2 + 1];
|
|
14864
14888
|
const size = next !== void 0 ? Math.max(0, next - position) : inferredSizeX > 0 ? inferredSizeX : viewportWidthCurrent || 0;
|
|
14865
14889
|
return { position, size };
|
|
14866
14890
|
});
|
|
14867
|
-
const targetsY = sorted.map((position,
|
|
14868
|
-
const next = sorted[
|
|
14891
|
+
const targetsY = sorted.map((position, index2) => {
|
|
14892
|
+
const next = sorted[index2 + 1];
|
|
14869
14893
|
const size = next !== void 0 ? Math.max(0, next - position) : inferredSizeY > 0 ? inferredSizeY : viewportHeightCurrent || 0;
|
|
14870
14894
|
return { position, size };
|
|
14871
14895
|
});
|
|
@@ -14878,8 +14902,8 @@ function ScrollView(props) {
|
|
|
14878
14902
|
let nearest = current;
|
|
14879
14903
|
let minDistance = Infinity;
|
|
14880
14904
|
let nearestIndex = -1;
|
|
14881
|
-
for (let
|
|
14882
|
-
const { position, size } = targets[
|
|
14905
|
+
for (let index2 = 0; index2 < targets.length; index2++) {
|
|
14906
|
+
const { position, size } = targets[index2] ?? { position: 0, size: 0 };
|
|
14883
14907
|
let adjustedPos = position;
|
|
14884
14908
|
if (snapAlignment === "center") {
|
|
14885
14909
|
adjustedPos = position + size / 2 - viewportSize / 2;
|
|
@@ -14891,11 +14915,11 @@ function ScrollView(props) {
|
|
|
14891
14915
|
if (distance < minDistance && distance <= effectiveSnapThreshold) {
|
|
14892
14916
|
minDistance = distance;
|
|
14893
14917
|
nearest = adjustedPos;
|
|
14894
|
-
nearestIndex =
|
|
14918
|
+
nearestIndex = index2;
|
|
14895
14919
|
} else if (distance < minDistance && effectiveSnapThreshold === Infinity) {
|
|
14896
14920
|
minDistance = distance;
|
|
14897
14921
|
nearest = adjustedPos;
|
|
14898
|
-
nearestIndex =
|
|
14922
|
+
nearestIndex = index2;
|
|
14899
14923
|
}
|
|
14900
14924
|
}
|
|
14901
14925
|
return { position: nearest, index: nearestIndex };
|
|
@@ -16085,14 +16109,14 @@ function Sidebar(props) {
|
|
|
16085
16109
|
const renderSections = () => {
|
|
16086
16110
|
if (!props.sections?.length) return null;
|
|
16087
16111
|
const lastSectionIndex = props.sections.length - 1;
|
|
16088
|
-
return props.sections.map((section,
|
|
16089
|
-
const sectionKey = section.key ?? `section-${
|
|
16112
|
+
return props.sections.map((section, index2) => {
|
|
16113
|
+
const sectionKey = section.key ?? `section-${index2}`;
|
|
16090
16114
|
return /* @__PURE__ */ jsxs(View, { direction: "column", gap: sectionGap, ...sectionContainer, children: [
|
|
16091
16115
|
renderTitle(section.title),
|
|
16092
16116
|
section.content ?? null,
|
|
16093
16117
|
renderItems(section.items, sectionKey),
|
|
16094
16118
|
section.footer ?? null,
|
|
16095
|
-
showDividers &&
|
|
16119
|
+
showDividers && index2 < lastSectionIndex ? /* @__PURE__ */ jsx(
|
|
16096
16120
|
Divider,
|
|
16097
16121
|
{
|
|
16098
16122
|
color: dividerColorValue,
|
|
@@ -16611,12 +16635,12 @@ function Tabs(props) {
|
|
|
16611
16635
|
}, [props.children]);
|
|
16612
16636
|
const panelCount = Math.min(tabs.length, panels.length);
|
|
16613
16637
|
const safeIndex = panelCount > 0 ? Math.min(Math.max(rawIndex, 0), panelCount - 1) : 0;
|
|
16614
|
-
const handleSelect = (
|
|
16638
|
+
const handleSelect = (index2) => {
|
|
16615
16639
|
if (props.activeIndex === void 0) {
|
|
16616
|
-
setInternalIndex(
|
|
16640
|
+
setInternalIndex(index2);
|
|
16617
16641
|
}
|
|
16618
|
-
if (
|
|
16619
|
-
props.onChange?.(
|
|
16642
|
+
if (index2 !== safeIndex) {
|
|
16643
|
+
props.onChange?.(index2);
|
|
16620
16644
|
}
|
|
16621
16645
|
};
|
|
16622
16646
|
const tabListStyle = themed.tabListStyle ?? {};
|
|
@@ -16637,18 +16661,18 @@ function Tabs(props) {
|
|
|
16637
16661
|
const { children: _panelChildren, ...panelViewProps } = activePanelProps;
|
|
16638
16662
|
const scrollableTabs = props.scrollableTabs ?? true;
|
|
16639
16663
|
const tabListScrollProps = props.tabListScrollProps ?? {};
|
|
16640
|
-
const tabListContent = /* @__PURE__ */ jsx(View, { ...tabListStyle, direction: "row", width: scrollableTabs ? "auto" : "100%", children: tabs.slice(0, panelCount).map((tab,
|
|
16664
|
+
const tabListContent = /* @__PURE__ */ jsx(View, { ...tabListStyle, direction: "row", width: scrollableTabs ? "auto" : "100%", children: tabs.slice(0, panelCount).map((tab, index2) => {
|
|
16641
16665
|
const tabProps = tab.props ?? {};
|
|
16642
16666
|
const { disabled, onTouch, enableGestures, ...tabViewProps } = tabProps;
|
|
16643
16667
|
const tabChildren = tab.children ?? tabProps.children;
|
|
16644
|
-
const isActive =
|
|
16668
|
+
const isActive = index2 === safeIndex;
|
|
16645
16669
|
const combinedTabStyle = {
|
|
16646
16670
|
...tabStyle,
|
|
16647
16671
|
...isActive ? tabActiveStyle : {},
|
|
16648
16672
|
...disabled ? tabDisabledStyle : {},
|
|
16649
16673
|
...tabViewProps
|
|
16650
16674
|
};
|
|
16651
|
-
const tabKey = tab.__key ?? tabProps.key ??
|
|
16675
|
+
const tabKey = tab.__key ?? tabProps.key ?? index2;
|
|
16652
16676
|
return /* @__PURE__ */ jsx(
|
|
16653
16677
|
View,
|
|
16654
16678
|
{
|
|
@@ -16656,7 +16680,7 @@ function Tabs(props) {
|
|
|
16656
16680
|
enableGestures: !disabled && (enableGestures ?? true),
|
|
16657
16681
|
onTouch: (data) => {
|
|
16658
16682
|
if (disabled) return;
|
|
16659
|
-
handleSelect(
|
|
16683
|
+
handleSelect(index2);
|
|
16660
16684
|
onTouch?.(data);
|
|
16661
16685
|
},
|
|
16662
16686
|
children: tabChildren
|
|
@@ -17080,4 +17104,4 @@ export {
|
|
|
17080
17104
|
getGestureManager as y,
|
|
17081
17105
|
calculateLayout as z
|
|
17082
17106
|
};
|
|
17083
|
-
//# sourceMappingURL=TransformOriginView-
|
|
17107
|
+
//# sourceMappingURL=TransformOriginView-TeXhLqNs.js.map
|