immutable 4.0.0-rc.11 → 4.0.0-rc.12
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/dist/immutable.es.js +39 -59
- package/dist/immutable.js +39 -59
- package/dist/immutable.js.flow +1 -1
- package/dist/immutable.min.js +12 -12
- package/package.json +3 -3
package/dist/immutable.es.js
CHANGED
|
@@ -124,7 +124,7 @@ var Collection = function Collection(value) {
|
|
|
124
124
|
return isCollection(value) ? value : Seq(value);
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
-
var KeyedCollection = (function (Collection) {
|
|
127
|
+
var KeyedCollection = /*@__PURE__*/(function (Collection) {
|
|
128
128
|
function KeyedCollection(value) {
|
|
129
129
|
return isKeyed(value) ? value : KeyedSeq(value);
|
|
130
130
|
}
|
|
@@ -136,7 +136,7 @@ var KeyedCollection = (function (Collection) {
|
|
|
136
136
|
return KeyedCollection;
|
|
137
137
|
}(Collection));
|
|
138
138
|
|
|
139
|
-
var IndexedCollection = (function (Collection) {
|
|
139
|
+
var IndexedCollection = /*@__PURE__*/(function (Collection) {
|
|
140
140
|
function IndexedCollection(value) {
|
|
141
141
|
return isIndexed(value) ? value : IndexedSeq(value);
|
|
142
142
|
}
|
|
@@ -148,7 +148,7 @@ var IndexedCollection = (function (Collection) {
|
|
|
148
148
|
return IndexedCollection;
|
|
149
149
|
}(Collection));
|
|
150
150
|
|
|
151
|
-
var SetCollection = (function (Collection) {
|
|
151
|
+
var SetCollection = /*@__PURE__*/(function (Collection) {
|
|
152
152
|
function SetCollection(value) {
|
|
153
153
|
return isCollection(value) && !isAssociative(value) ? value : SetSeq(value);
|
|
154
154
|
}
|
|
@@ -273,7 +273,7 @@ function isArrayLike(value) {
|
|
|
273
273
|
);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
var Seq = (function (Collection$$1) {
|
|
276
|
+
var Seq = /*@__PURE__*/(function (Collection$$1) {
|
|
277
277
|
function Seq(value) {
|
|
278
278
|
return value === null || value === undefined
|
|
279
279
|
? emptySequence()
|
|
@@ -305,15 +305,13 @@ var Seq = (function (Collection$$1) {
|
|
|
305
305
|
// abstract __iterateUncached(fn, reverse)
|
|
306
306
|
|
|
307
307
|
Seq.prototype.__iterate = function __iterate (fn, reverse) {
|
|
308
|
-
var this$1 = this;
|
|
309
|
-
|
|
310
308
|
var cache = this._cache;
|
|
311
309
|
if (cache) {
|
|
312
310
|
var size = cache.length;
|
|
313
311
|
var i = 0;
|
|
314
312
|
while (i !== size) {
|
|
315
313
|
var entry = cache[reverse ? size - ++i : i++];
|
|
316
|
-
if (fn(entry[1], entry[0], this
|
|
314
|
+
if (fn(entry[1], entry[0], this) === false) {
|
|
317
315
|
break;
|
|
318
316
|
}
|
|
319
317
|
}
|
|
@@ -343,7 +341,7 @@ var Seq = (function (Collection$$1) {
|
|
|
343
341
|
return Seq;
|
|
344
342
|
}(Collection));
|
|
345
343
|
|
|
346
|
-
var KeyedSeq = (function (Seq) {
|
|
344
|
+
var KeyedSeq = /*@__PURE__*/(function (Seq) {
|
|
347
345
|
function KeyedSeq(value) {
|
|
348
346
|
return value === null || value === undefined
|
|
349
347
|
? emptySequence().toKeyedSeq()
|
|
@@ -367,7 +365,7 @@ var KeyedSeq = (function (Seq) {
|
|
|
367
365
|
return KeyedSeq;
|
|
368
366
|
}(Seq));
|
|
369
367
|
|
|
370
|
-
var IndexedSeq = (function (Seq) {
|
|
368
|
+
var IndexedSeq = /*@__PURE__*/(function (Seq) {
|
|
371
369
|
function IndexedSeq(value) {
|
|
372
370
|
return value === null || value === undefined
|
|
373
371
|
? emptySequence()
|
|
@@ -399,7 +397,7 @@ var IndexedSeq = (function (Seq) {
|
|
|
399
397
|
return IndexedSeq;
|
|
400
398
|
}(Seq));
|
|
401
399
|
|
|
402
|
-
var SetSeq = (function (Seq) {
|
|
400
|
+
var SetSeq = /*@__PURE__*/(function (Seq) {
|
|
403
401
|
function SetSeq(value) {
|
|
404
402
|
return (isCollection(value) && !isAssociative(value)
|
|
405
403
|
? value
|
|
@@ -431,7 +429,7 @@ Seq.prototype[IS_SEQ_SYMBOL] = true;
|
|
|
431
429
|
|
|
432
430
|
// #pragma Root Sequences
|
|
433
431
|
|
|
434
|
-
var ArraySeq = (function (IndexedSeq) {
|
|
432
|
+
var ArraySeq = /*@__PURE__*/(function (IndexedSeq) {
|
|
435
433
|
function ArraySeq(array) {
|
|
436
434
|
this._array = array;
|
|
437
435
|
this.size = array.length;
|
|
@@ -446,14 +444,12 @@ var ArraySeq = (function (IndexedSeq) {
|
|
|
446
444
|
};
|
|
447
445
|
|
|
448
446
|
ArraySeq.prototype.__iterate = function __iterate (fn, reverse) {
|
|
449
|
-
var this$1 = this;
|
|
450
|
-
|
|
451
447
|
var array = this._array;
|
|
452
448
|
var size = array.length;
|
|
453
449
|
var i = 0;
|
|
454
450
|
while (i !== size) {
|
|
455
451
|
var ii = reverse ? size - ++i : i++;
|
|
456
|
-
if (fn(array[ii], ii, this
|
|
452
|
+
if (fn(array[ii], ii, this) === false) {
|
|
457
453
|
break;
|
|
458
454
|
}
|
|
459
455
|
}
|
|
@@ -476,7 +472,7 @@ var ArraySeq = (function (IndexedSeq) {
|
|
|
476
472
|
return ArraySeq;
|
|
477
473
|
}(IndexedSeq));
|
|
478
474
|
|
|
479
|
-
var ObjectSeq = (function (KeyedSeq) {
|
|
475
|
+
var ObjectSeq = /*@__PURE__*/(function (KeyedSeq) {
|
|
480
476
|
function ObjectSeq(object) {
|
|
481
477
|
var keys = Object.keys(object);
|
|
482
478
|
this._object = object;
|
|
@@ -500,15 +496,13 @@ var ObjectSeq = (function (KeyedSeq) {
|
|
|
500
496
|
};
|
|
501
497
|
|
|
502
498
|
ObjectSeq.prototype.__iterate = function __iterate (fn, reverse) {
|
|
503
|
-
var this$1 = this;
|
|
504
|
-
|
|
505
499
|
var object = this._object;
|
|
506
500
|
var keys = this._keys;
|
|
507
501
|
var size = keys.length;
|
|
508
502
|
var i = 0;
|
|
509
503
|
while (i !== size) {
|
|
510
504
|
var key = keys[reverse ? size - ++i : i++];
|
|
511
|
-
if (fn(object[key], key, this
|
|
505
|
+
if (fn(object[key], key, this) === false) {
|
|
512
506
|
break;
|
|
513
507
|
}
|
|
514
508
|
}
|
|
@@ -533,7 +527,7 @@ var ObjectSeq = (function (KeyedSeq) {
|
|
|
533
527
|
}(KeyedSeq));
|
|
534
528
|
ObjectSeq.prototype[IS_ORDERED_SYMBOL] = true;
|
|
535
529
|
|
|
536
|
-
var CollectionSeq = (function (IndexedSeq) {
|
|
530
|
+
var CollectionSeq = /*@__PURE__*/(function (IndexedSeq) {
|
|
537
531
|
function CollectionSeq(collection) {
|
|
538
532
|
this._collection = collection;
|
|
539
533
|
this.size = collection.length || collection.size;
|
|
@@ -544,8 +538,6 @@ var CollectionSeq = (function (IndexedSeq) {
|
|
|
544
538
|
CollectionSeq.prototype.constructor = CollectionSeq;
|
|
545
539
|
|
|
546
540
|
CollectionSeq.prototype.__iterateUncached = function __iterateUncached (fn, reverse) {
|
|
547
|
-
var this$1 = this;
|
|
548
|
-
|
|
549
541
|
if (reverse) {
|
|
550
542
|
return this.cacheResult().__iterate(fn, reverse);
|
|
551
543
|
}
|
|
@@ -555,7 +547,7 @@ var CollectionSeq = (function (IndexedSeq) {
|
|
|
555
547
|
if (isIterator(iterator)) {
|
|
556
548
|
var step;
|
|
557
549
|
while (!(step = iterator.next()).done) {
|
|
558
|
-
if (fn(step.value, iterations++, this
|
|
550
|
+
if (fn(step.value, iterations++, this) === false) {
|
|
559
551
|
break;
|
|
560
552
|
}
|
|
561
553
|
}
|
|
@@ -956,7 +948,7 @@ var STRING_HASH_CACHE_MAX_SIZE = 255;
|
|
|
956
948
|
var STRING_HASH_CACHE_SIZE = 0;
|
|
957
949
|
var stringHashCache = {};
|
|
958
950
|
|
|
959
|
-
var ToKeyedSequence = (function (KeyedSeq$$1) {
|
|
951
|
+
var ToKeyedSequence = /*@__PURE__*/(function (KeyedSeq$$1) {
|
|
960
952
|
function ToKeyedSequence(indexed, useKeys) {
|
|
961
953
|
this._iter = indexed;
|
|
962
954
|
this._useKeys = useKeys;
|
|
@@ -1013,7 +1005,7 @@ var ToKeyedSequence = (function (KeyedSeq$$1) {
|
|
|
1013
1005
|
}(KeyedSeq));
|
|
1014
1006
|
ToKeyedSequence.prototype[IS_ORDERED_SYMBOL] = true;
|
|
1015
1007
|
|
|
1016
|
-
var ToIndexedSequence = (function (IndexedSeq$$1) {
|
|
1008
|
+
var ToIndexedSequence = /*@__PURE__*/(function (IndexedSeq$$1) {
|
|
1017
1009
|
function ToIndexedSequence(iter) {
|
|
1018
1010
|
this._iter = iter;
|
|
1019
1011
|
this.size = iter.size;
|
|
@@ -1060,7 +1052,7 @@ var ToIndexedSequence = (function (IndexedSeq$$1) {
|
|
|
1060
1052
|
return ToIndexedSequence;
|
|
1061
1053
|
}(IndexedSeq));
|
|
1062
1054
|
|
|
1063
|
-
var ToSetSequence = (function (SetSeq$$1) {
|
|
1055
|
+
var ToSetSequence = /*@__PURE__*/(function (SetSeq$$1) {
|
|
1064
1056
|
function ToSetSequence(iter) {
|
|
1065
1057
|
this._iter = iter;
|
|
1066
1058
|
this.size = iter.size;
|
|
@@ -1093,7 +1085,7 @@ var ToSetSequence = (function (SetSeq$$1) {
|
|
|
1093
1085
|
return ToSetSequence;
|
|
1094
1086
|
}(SetSeq));
|
|
1095
1087
|
|
|
1096
|
-
var FromEntriesSequence = (function (KeyedSeq$$1) {
|
|
1088
|
+
var FromEntriesSequence = /*@__PURE__*/(function (KeyedSeq$$1) {
|
|
1097
1089
|
function FromEntriesSequence(entries) {
|
|
1098
1090
|
this._iter = entries;
|
|
1099
1091
|
this.size = entries.size;
|
|
@@ -1747,8 +1739,6 @@ function zipWithFactory(keyIter, zipper, iters, zipAll) {
|
|
|
1747
1739
|
// Note: this a generic base implementation of __iterate in terms of
|
|
1748
1740
|
// __iterator which may be more generically useful in the future.
|
|
1749
1741
|
zipSequence.__iterate = function(fn, reverse) {
|
|
1750
|
-
var this$1 = this;
|
|
1751
|
-
|
|
1752
1742
|
/* generic:
|
|
1753
1743
|
var iterator = this.__iterator(ITERATE_ENTRIES, reverse);
|
|
1754
1744
|
var step;
|
|
@@ -1766,7 +1756,7 @@ function zipWithFactory(keyIter, zipper, iters, zipAll) {
|
|
|
1766
1756
|
var step;
|
|
1767
1757
|
var iterations = 0;
|
|
1768
1758
|
while (!(step = iterator.next()).done) {
|
|
1769
|
-
if (fn(step.value, iterations++, this
|
|
1759
|
+
if (fn(step.value, iterations++, this) === false) {
|
|
1770
1760
|
break;
|
|
1771
1761
|
}
|
|
1772
1762
|
}
|
|
@@ -2269,7 +2259,7 @@ function wasAltered() {
|
|
|
2269
2259
|
return this.__altered;
|
|
2270
2260
|
}
|
|
2271
2261
|
|
|
2272
|
-
var Map = (function (KeyedCollection$$1) {
|
|
2262
|
+
var Map = /*@__PURE__*/(function (KeyedCollection$$1) {
|
|
2273
2263
|
function Map(value) {
|
|
2274
2264
|
return value === null || value === undefined
|
|
2275
2265
|
? emptyMap()
|
|
@@ -2796,7 +2786,7 @@ ValueNode.prototype.iterate = function(fn, reverse) {
|
|
|
2796
2786
|
return fn(this.entry);
|
|
2797
2787
|
};
|
|
2798
2788
|
|
|
2799
|
-
var MapIterator = (function (Iterator$$1) {
|
|
2789
|
+
var MapIterator = /*@__PURE__*/(function (Iterator$$1) {
|
|
2800
2790
|
function MapIterator(map, type, reverse) {
|
|
2801
2791
|
this._type = type;
|
|
2802
2792
|
this._reverse = reverse;
|
|
@@ -2808,8 +2798,6 @@ var MapIterator = (function (Iterator$$1) {
|
|
|
2808
2798
|
MapIterator.prototype.constructor = MapIterator;
|
|
2809
2799
|
|
|
2810
2800
|
MapIterator.prototype.next = function next () {
|
|
2811
|
-
var this$1 = this;
|
|
2812
|
-
|
|
2813
2801
|
var type = this._type;
|
|
2814
2802
|
var stack = this._stack;
|
|
2815
2803
|
while (stack) {
|
|
@@ -2825,23 +2813,23 @@ var MapIterator = (function (Iterator$$1) {
|
|
|
2825
2813
|
if (index <= maxIndex) {
|
|
2826
2814
|
return mapIteratorValue(
|
|
2827
2815
|
type,
|
|
2828
|
-
node.entries[this
|
|
2816
|
+
node.entries[this._reverse ? maxIndex - index : index]
|
|
2829
2817
|
);
|
|
2830
2818
|
}
|
|
2831
2819
|
} else {
|
|
2832
2820
|
maxIndex = node.nodes.length - 1;
|
|
2833
2821
|
if (index <= maxIndex) {
|
|
2834
|
-
var subNode = node.nodes[this
|
|
2822
|
+
var subNode = node.nodes[this._reverse ? maxIndex - index : index];
|
|
2835
2823
|
if (subNode) {
|
|
2836
2824
|
if (subNode.entry) {
|
|
2837
2825
|
return mapIteratorValue(type, subNode.entry);
|
|
2838
2826
|
}
|
|
2839
|
-
stack = this
|
|
2827
|
+
stack = this._stack = mapIteratorFrame(subNode, stack);
|
|
2840
2828
|
}
|
|
2841
2829
|
continue;
|
|
2842
2830
|
}
|
|
2843
2831
|
}
|
|
2844
|
-
stack = this
|
|
2832
|
+
stack = this._stack = this._stack.__prev;
|
|
2845
2833
|
}
|
|
2846
2834
|
return iteratorDone();
|
|
2847
2835
|
};
|
|
@@ -3063,7 +3051,7 @@ function isList(maybeList) {
|
|
|
3063
3051
|
return Boolean(maybeList && maybeList[IS_LIST_SYMBOL]);
|
|
3064
3052
|
}
|
|
3065
3053
|
|
|
3066
|
-
var List = (function (IndexedCollection$$1) {
|
|
3054
|
+
var List = /*@__PURE__*/(function (IndexedCollection$$1) {
|
|
3067
3055
|
function List(value) {
|
|
3068
3056
|
var empty = emptyList();
|
|
3069
3057
|
if (value === null || value === undefined) {
|
|
@@ -3243,13 +3231,11 @@ var List = (function (IndexedCollection$$1) {
|
|
|
3243
3231
|
};
|
|
3244
3232
|
|
|
3245
3233
|
List.prototype.__iterate = function __iterate (fn, reverse) {
|
|
3246
|
-
var this$1 = this;
|
|
3247
|
-
|
|
3248
3234
|
var index = reverse ? this.size : 0;
|
|
3249
3235
|
var values = iterateList(this, reverse);
|
|
3250
3236
|
var value;
|
|
3251
3237
|
while ((value = values()) !== DONE) {
|
|
3252
|
-
if (fn(value, reverse ? --index : index++, this
|
|
3238
|
+
if (fn(value, reverse ? --index : index++, this) === false) {
|
|
3253
3239
|
break;
|
|
3254
3240
|
}
|
|
3255
3241
|
}
|
|
@@ -3717,7 +3703,7 @@ function getTailOffset(size) {
|
|
|
3717
3703
|
return size < SIZE ? 0 : ((size - 1) >>> SHIFT) << SHIFT;
|
|
3718
3704
|
}
|
|
3719
3705
|
|
|
3720
|
-
var OrderedMap = (function (Map$$1) {
|
|
3706
|
+
var OrderedMap = /*@__PURE__*/(function (Map$$1) {
|
|
3721
3707
|
function OrderedMap(value) {
|
|
3722
3708
|
return value === null || value === undefined
|
|
3723
3709
|
? emptyOrderedMap()
|
|
@@ -3885,7 +3871,7 @@ function isStack(maybeStack) {
|
|
|
3885
3871
|
return Boolean(maybeStack && maybeStack[IS_STACK_SYMBOL]);
|
|
3886
3872
|
}
|
|
3887
3873
|
|
|
3888
|
-
var Stack = (function (IndexedCollection$$1) {
|
|
3874
|
+
var Stack = /*@__PURE__*/(function (IndexedCollection$$1) {
|
|
3889
3875
|
function Stack(value) {
|
|
3890
3876
|
return value === null || value === undefined
|
|
3891
3877
|
? emptyStack()
|
|
@@ -4049,7 +4035,7 @@ var Stack = (function (IndexedCollection$$1) {
|
|
|
4049
4035
|
var iterations = 0;
|
|
4050
4036
|
var node = this._head;
|
|
4051
4037
|
while (node) {
|
|
4052
|
-
if (fn(node.value, iterations++, this
|
|
4038
|
+
if (fn(node.value, iterations++, this) === false) {
|
|
4053
4039
|
break;
|
|
4054
4040
|
}
|
|
4055
4041
|
node = node.next;
|
|
@@ -4222,7 +4208,7 @@ function toJS(value) {
|
|
|
4222
4208
|
return result;
|
|
4223
4209
|
}
|
|
4224
4210
|
|
|
4225
|
-
var Set = (function (SetCollection$$1) {
|
|
4211
|
+
var Set = /*@__PURE__*/(function (SetCollection$$1) {
|
|
4226
4212
|
function Set(value) {
|
|
4227
4213
|
return value === null || value === undefined
|
|
4228
4214
|
? emptySet()
|
|
@@ -4458,7 +4444,7 @@ function emptySet() {
|
|
|
4458
4444
|
* (exclusive), by step, where start defaults to 0, step to 1, and end to
|
|
4459
4445
|
* infinity. When start is equal to end, returns empty list.
|
|
4460
4446
|
*/
|
|
4461
|
-
var Range = (function (IndexedSeq$$1) {
|
|
4447
|
+
var Range = /*@__PURE__*/(function (IndexedSeq$$1) {
|
|
4462
4448
|
function Range(start, end, step) {
|
|
4463
4449
|
if (!(this instanceof Range)) {
|
|
4464
4450
|
return new Range(start, end, step);
|
|
@@ -4549,14 +4535,12 @@ var Range = (function (IndexedSeq$$1) {
|
|
|
4549
4535
|
};
|
|
4550
4536
|
|
|
4551
4537
|
Range.prototype.__iterate = function __iterate (fn, reverse) {
|
|
4552
|
-
var this$1 = this;
|
|
4553
|
-
|
|
4554
4538
|
var size = this.size;
|
|
4555
4539
|
var step = this._step;
|
|
4556
4540
|
var value = reverse ? this._start + (size - 1) * step : this._start;
|
|
4557
4541
|
var i = 0;
|
|
4558
4542
|
while (i !== size) {
|
|
4559
|
-
if (fn(value, reverse ? size - ++i : i++, this
|
|
4543
|
+
if (fn(value, reverse ? size - ++i : i++, this) === false) {
|
|
4560
4544
|
break;
|
|
4561
4545
|
}
|
|
4562
4546
|
value += reverse ? -step : step;
|
|
@@ -5351,7 +5335,7 @@ function hashMerge(a, b) {
|
|
|
5351
5335
|
return (a ^ (b + 0x9e3779b9 + (a << 6) + (a >> 2))) | 0; // int
|
|
5352
5336
|
}
|
|
5353
5337
|
|
|
5354
|
-
var OrderedSet = (function (Set$$1) {
|
|
5338
|
+
var OrderedSet = /*@__PURE__*/(function (Set$$1) {
|
|
5355
5339
|
function OrderedSet(value) {
|
|
5356
5340
|
return value === null || value === undefined
|
|
5357
5341
|
? emptyOrderedSet()
|
|
@@ -5439,7 +5423,7 @@ var Record = function Record(defaultValues, name) {
|
|
|
5439
5423
|
console.warn &&
|
|
5440
5424
|
console.warn(
|
|
5441
5425
|
'Cannot define ' +
|
|
5442
|
-
recordName(this
|
|
5426
|
+
recordName(this) +
|
|
5443
5427
|
' with property "' +
|
|
5444
5428
|
propName +
|
|
5445
5429
|
'" since that property name is part of the Record API.'
|
|
@@ -5472,14 +5456,12 @@ var Record = function Record(defaultValues, name) {
|
|
|
5472
5456
|
};
|
|
5473
5457
|
|
|
5474
5458
|
Record.prototype.toString = function toString () {
|
|
5475
|
-
var this$1 = this;
|
|
5476
|
-
|
|
5477
5459
|
var str = recordName(this) + ' { ';
|
|
5478
5460
|
var keys = this._keys;
|
|
5479
5461
|
var k;
|
|
5480
5462
|
for (var i = 0, l = keys.length; i !== l; i++) {
|
|
5481
5463
|
k = keys[i];
|
|
5482
|
-
str += (i ? ', ' : '') + k + ': ' + quoteString(this
|
|
5464
|
+
str += (i ? ', ' : '') + k + ': ' + quoteString(this.get(k));
|
|
5483
5465
|
}
|
|
5484
5466
|
return str + ' }';
|
|
5485
5467
|
};
|
|
@@ -5635,7 +5617,7 @@ function setProp(prototype, name) {
|
|
|
5635
5617
|
* Returns a lazy Seq of `value` repeated `times` times. When `times` is
|
|
5636
5618
|
* undefined, returns an infinite sequence of `value`.
|
|
5637
5619
|
*/
|
|
5638
|
-
var Repeat = (function (IndexedSeq$$1) {
|
|
5620
|
+
var Repeat = /*@__PURE__*/(function (IndexedSeq$$1) {
|
|
5639
5621
|
function Repeat(value, times) {
|
|
5640
5622
|
if (!(this instanceof Repeat)) {
|
|
5641
5623
|
return new Repeat(value, times);
|
|
@@ -5698,12 +5680,10 @@ var Repeat = (function (IndexedSeq$$1) {
|
|
|
5698
5680
|
};
|
|
5699
5681
|
|
|
5700
5682
|
Repeat.prototype.__iterate = function __iterate (fn, reverse) {
|
|
5701
|
-
var this$1 = this;
|
|
5702
|
-
|
|
5703
5683
|
var size = this.size;
|
|
5704
5684
|
var i = 0;
|
|
5705
5685
|
while (i !== size) {
|
|
5706
|
-
if (fn(this
|
|
5686
|
+
if (fn(this._value, reverse ? size - ++i : i++, this) === false) {
|
|
5707
5687
|
break;
|
|
5708
5688
|
}
|
|
5709
5689
|
}
|
|
@@ -5774,7 +5754,7 @@ function defaultConverter(k, v) {
|
|
|
5774
5754
|
return isKeyed(v) ? v.toMap() : v.toList();
|
|
5775
5755
|
}
|
|
5776
5756
|
|
|
5777
|
-
var version = "4.0.0-rc.
|
|
5757
|
+
var version = "4.0.0-rc.11";
|
|
5778
5758
|
|
|
5779
5759
|
var Immutable = {
|
|
5780
5760
|
version: version,
|
package/dist/immutable.js
CHANGED
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
return isCollection(value) ? value : Seq(value);
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
var KeyedCollection = (function (Collection) {
|
|
133
|
+
var KeyedCollection = /*@__PURE__*/(function (Collection) {
|
|
134
134
|
function KeyedCollection(value) {
|
|
135
135
|
return isKeyed(value) ? value : KeyedSeq(value);
|
|
136
136
|
}
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
return KeyedCollection;
|
|
143
143
|
}(Collection));
|
|
144
144
|
|
|
145
|
-
var IndexedCollection = (function (Collection) {
|
|
145
|
+
var IndexedCollection = /*@__PURE__*/(function (Collection) {
|
|
146
146
|
function IndexedCollection(value) {
|
|
147
147
|
return isIndexed(value) ? value : IndexedSeq(value);
|
|
148
148
|
}
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
return IndexedCollection;
|
|
155
155
|
}(Collection));
|
|
156
156
|
|
|
157
|
-
var SetCollection = (function (Collection) {
|
|
157
|
+
var SetCollection = /*@__PURE__*/(function (Collection) {
|
|
158
158
|
function SetCollection(value) {
|
|
159
159
|
return isCollection(value) && !isAssociative(value) ? value : SetSeq(value);
|
|
160
160
|
}
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
var Seq = (function (Collection$$1) {
|
|
282
|
+
var Seq = /*@__PURE__*/(function (Collection$$1) {
|
|
283
283
|
function Seq(value) {
|
|
284
284
|
return value === null || value === undefined
|
|
285
285
|
? emptySequence()
|
|
@@ -311,15 +311,13 @@
|
|
|
311
311
|
// abstract __iterateUncached(fn, reverse)
|
|
312
312
|
|
|
313
313
|
Seq.prototype.__iterate = function __iterate (fn, reverse) {
|
|
314
|
-
var this$1 = this;
|
|
315
|
-
|
|
316
314
|
var cache = this._cache;
|
|
317
315
|
if (cache) {
|
|
318
316
|
var size = cache.length;
|
|
319
317
|
var i = 0;
|
|
320
318
|
while (i !== size) {
|
|
321
319
|
var entry = cache[reverse ? size - ++i : i++];
|
|
322
|
-
if (fn(entry[1], entry[0], this
|
|
320
|
+
if (fn(entry[1], entry[0], this) === false) {
|
|
323
321
|
break;
|
|
324
322
|
}
|
|
325
323
|
}
|
|
@@ -349,7 +347,7 @@
|
|
|
349
347
|
return Seq;
|
|
350
348
|
}(Collection));
|
|
351
349
|
|
|
352
|
-
var KeyedSeq = (function (Seq) {
|
|
350
|
+
var KeyedSeq = /*@__PURE__*/(function (Seq) {
|
|
353
351
|
function KeyedSeq(value) {
|
|
354
352
|
return value === null || value === undefined
|
|
355
353
|
? emptySequence().toKeyedSeq()
|
|
@@ -373,7 +371,7 @@
|
|
|
373
371
|
return KeyedSeq;
|
|
374
372
|
}(Seq));
|
|
375
373
|
|
|
376
|
-
var IndexedSeq = (function (Seq) {
|
|
374
|
+
var IndexedSeq = /*@__PURE__*/(function (Seq) {
|
|
377
375
|
function IndexedSeq(value) {
|
|
378
376
|
return value === null || value === undefined
|
|
379
377
|
? emptySequence()
|
|
@@ -405,7 +403,7 @@
|
|
|
405
403
|
return IndexedSeq;
|
|
406
404
|
}(Seq));
|
|
407
405
|
|
|
408
|
-
var SetSeq = (function (Seq) {
|
|
406
|
+
var SetSeq = /*@__PURE__*/(function (Seq) {
|
|
409
407
|
function SetSeq(value) {
|
|
410
408
|
return (isCollection(value) && !isAssociative(value)
|
|
411
409
|
? value
|
|
@@ -437,7 +435,7 @@
|
|
|
437
435
|
|
|
438
436
|
// #pragma Root Sequences
|
|
439
437
|
|
|
440
|
-
var ArraySeq = (function (IndexedSeq) {
|
|
438
|
+
var ArraySeq = /*@__PURE__*/(function (IndexedSeq) {
|
|
441
439
|
function ArraySeq(array) {
|
|
442
440
|
this._array = array;
|
|
443
441
|
this.size = array.length;
|
|
@@ -452,14 +450,12 @@
|
|
|
452
450
|
};
|
|
453
451
|
|
|
454
452
|
ArraySeq.prototype.__iterate = function __iterate (fn, reverse) {
|
|
455
|
-
var this$1 = this;
|
|
456
|
-
|
|
457
453
|
var array = this._array;
|
|
458
454
|
var size = array.length;
|
|
459
455
|
var i = 0;
|
|
460
456
|
while (i !== size) {
|
|
461
457
|
var ii = reverse ? size - ++i : i++;
|
|
462
|
-
if (fn(array[ii], ii, this
|
|
458
|
+
if (fn(array[ii], ii, this) === false) {
|
|
463
459
|
break;
|
|
464
460
|
}
|
|
465
461
|
}
|
|
@@ -482,7 +478,7 @@
|
|
|
482
478
|
return ArraySeq;
|
|
483
479
|
}(IndexedSeq));
|
|
484
480
|
|
|
485
|
-
var ObjectSeq = (function (KeyedSeq) {
|
|
481
|
+
var ObjectSeq = /*@__PURE__*/(function (KeyedSeq) {
|
|
486
482
|
function ObjectSeq(object) {
|
|
487
483
|
var keys = Object.keys(object);
|
|
488
484
|
this._object = object;
|
|
@@ -506,15 +502,13 @@
|
|
|
506
502
|
};
|
|
507
503
|
|
|
508
504
|
ObjectSeq.prototype.__iterate = function __iterate (fn, reverse) {
|
|
509
|
-
var this$1 = this;
|
|
510
|
-
|
|
511
505
|
var object = this._object;
|
|
512
506
|
var keys = this._keys;
|
|
513
507
|
var size = keys.length;
|
|
514
508
|
var i = 0;
|
|
515
509
|
while (i !== size) {
|
|
516
510
|
var key = keys[reverse ? size - ++i : i++];
|
|
517
|
-
if (fn(object[key], key, this
|
|
511
|
+
if (fn(object[key], key, this) === false) {
|
|
518
512
|
break;
|
|
519
513
|
}
|
|
520
514
|
}
|
|
@@ -539,7 +533,7 @@
|
|
|
539
533
|
}(KeyedSeq));
|
|
540
534
|
ObjectSeq.prototype[IS_ORDERED_SYMBOL] = true;
|
|
541
535
|
|
|
542
|
-
var CollectionSeq = (function (IndexedSeq) {
|
|
536
|
+
var CollectionSeq = /*@__PURE__*/(function (IndexedSeq) {
|
|
543
537
|
function CollectionSeq(collection) {
|
|
544
538
|
this._collection = collection;
|
|
545
539
|
this.size = collection.length || collection.size;
|
|
@@ -550,8 +544,6 @@
|
|
|
550
544
|
CollectionSeq.prototype.constructor = CollectionSeq;
|
|
551
545
|
|
|
552
546
|
CollectionSeq.prototype.__iterateUncached = function __iterateUncached (fn, reverse) {
|
|
553
|
-
var this$1 = this;
|
|
554
|
-
|
|
555
547
|
if (reverse) {
|
|
556
548
|
return this.cacheResult().__iterate(fn, reverse);
|
|
557
549
|
}
|
|
@@ -561,7 +553,7 @@
|
|
|
561
553
|
if (isIterator(iterator)) {
|
|
562
554
|
var step;
|
|
563
555
|
while (!(step = iterator.next()).done) {
|
|
564
|
-
if (fn(step.value, iterations++, this
|
|
556
|
+
if (fn(step.value, iterations++, this) === false) {
|
|
565
557
|
break;
|
|
566
558
|
}
|
|
567
559
|
}
|
|
@@ -962,7 +954,7 @@
|
|
|
962
954
|
var STRING_HASH_CACHE_SIZE = 0;
|
|
963
955
|
var stringHashCache = {};
|
|
964
956
|
|
|
965
|
-
var ToKeyedSequence = (function (KeyedSeq$$1) {
|
|
957
|
+
var ToKeyedSequence = /*@__PURE__*/(function (KeyedSeq$$1) {
|
|
966
958
|
function ToKeyedSequence(indexed, useKeys) {
|
|
967
959
|
this._iter = indexed;
|
|
968
960
|
this._useKeys = useKeys;
|
|
@@ -1019,7 +1011,7 @@
|
|
|
1019
1011
|
}(KeyedSeq));
|
|
1020
1012
|
ToKeyedSequence.prototype[IS_ORDERED_SYMBOL] = true;
|
|
1021
1013
|
|
|
1022
|
-
var ToIndexedSequence = (function (IndexedSeq$$1) {
|
|
1014
|
+
var ToIndexedSequence = /*@__PURE__*/(function (IndexedSeq$$1) {
|
|
1023
1015
|
function ToIndexedSequence(iter) {
|
|
1024
1016
|
this._iter = iter;
|
|
1025
1017
|
this.size = iter.size;
|
|
@@ -1066,7 +1058,7 @@
|
|
|
1066
1058
|
return ToIndexedSequence;
|
|
1067
1059
|
}(IndexedSeq));
|
|
1068
1060
|
|
|
1069
|
-
var ToSetSequence = (function (SetSeq$$1) {
|
|
1061
|
+
var ToSetSequence = /*@__PURE__*/(function (SetSeq$$1) {
|
|
1070
1062
|
function ToSetSequence(iter) {
|
|
1071
1063
|
this._iter = iter;
|
|
1072
1064
|
this.size = iter.size;
|
|
@@ -1099,7 +1091,7 @@
|
|
|
1099
1091
|
return ToSetSequence;
|
|
1100
1092
|
}(SetSeq));
|
|
1101
1093
|
|
|
1102
|
-
var FromEntriesSequence = (function (KeyedSeq$$1) {
|
|
1094
|
+
var FromEntriesSequence = /*@__PURE__*/(function (KeyedSeq$$1) {
|
|
1103
1095
|
function FromEntriesSequence(entries) {
|
|
1104
1096
|
this._iter = entries;
|
|
1105
1097
|
this.size = entries.size;
|
|
@@ -1753,8 +1745,6 @@
|
|
|
1753
1745
|
// Note: this a generic base implementation of __iterate in terms of
|
|
1754
1746
|
// __iterator which may be more generically useful in the future.
|
|
1755
1747
|
zipSequence.__iterate = function(fn, reverse) {
|
|
1756
|
-
var this$1 = this;
|
|
1757
|
-
|
|
1758
1748
|
/* generic:
|
|
1759
1749
|
var iterator = this.__iterator(ITERATE_ENTRIES, reverse);
|
|
1760
1750
|
var step;
|
|
@@ -1772,7 +1762,7 @@
|
|
|
1772
1762
|
var step;
|
|
1773
1763
|
var iterations = 0;
|
|
1774
1764
|
while (!(step = iterator.next()).done) {
|
|
1775
|
-
if (fn(step.value, iterations++, this
|
|
1765
|
+
if (fn(step.value, iterations++, this) === false) {
|
|
1776
1766
|
break;
|
|
1777
1767
|
}
|
|
1778
1768
|
}
|
|
@@ -2275,7 +2265,7 @@
|
|
|
2275
2265
|
return this.__altered;
|
|
2276
2266
|
}
|
|
2277
2267
|
|
|
2278
|
-
var Map = (function (KeyedCollection$$1) {
|
|
2268
|
+
var Map = /*@__PURE__*/(function (KeyedCollection$$1) {
|
|
2279
2269
|
function Map(value) {
|
|
2280
2270
|
return value === null || value === undefined
|
|
2281
2271
|
? emptyMap()
|
|
@@ -2802,7 +2792,7 @@
|
|
|
2802
2792
|
return fn(this.entry);
|
|
2803
2793
|
};
|
|
2804
2794
|
|
|
2805
|
-
var MapIterator = (function (Iterator$$1) {
|
|
2795
|
+
var MapIterator = /*@__PURE__*/(function (Iterator$$1) {
|
|
2806
2796
|
function MapIterator(map, type, reverse) {
|
|
2807
2797
|
this._type = type;
|
|
2808
2798
|
this._reverse = reverse;
|
|
@@ -2814,8 +2804,6 @@
|
|
|
2814
2804
|
MapIterator.prototype.constructor = MapIterator;
|
|
2815
2805
|
|
|
2816
2806
|
MapIterator.prototype.next = function next () {
|
|
2817
|
-
var this$1 = this;
|
|
2818
|
-
|
|
2819
2807
|
var type = this._type;
|
|
2820
2808
|
var stack = this._stack;
|
|
2821
2809
|
while (stack) {
|
|
@@ -2831,23 +2819,23 @@
|
|
|
2831
2819
|
if (index <= maxIndex) {
|
|
2832
2820
|
return mapIteratorValue(
|
|
2833
2821
|
type,
|
|
2834
|
-
node.entries[this
|
|
2822
|
+
node.entries[this._reverse ? maxIndex - index : index]
|
|
2835
2823
|
);
|
|
2836
2824
|
}
|
|
2837
2825
|
} else {
|
|
2838
2826
|
maxIndex = node.nodes.length - 1;
|
|
2839
2827
|
if (index <= maxIndex) {
|
|
2840
|
-
var subNode = node.nodes[this
|
|
2828
|
+
var subNode = node.nodes[this._reverse ? maxIndex - index : index];
|
|
2841
2829
|
if (subNode) {
|
|
2842
2830
|
if (subNode.entry) {
|
|
2843
2831
|
return mapIteratorValue(type, subNode.entry);
|
|
2844
2832
|
}
|
|
2845
|
-
stack = this
|
|
2833
|
+
stack = this._stack = mapIteratorFrame(subNode, stack);
|
|
2846
2834
|
}
|
|
2847
2835
|
continue;
|
|
2848
2836
|
}
|
|
2849
2837
|
}
|
|
2850
|
-
stack = this
|
|
2838
|
+
stack = this._stack = this._stack.__prev;
|
|
2851
2839
|
}
|
|
2852
2840
|
return iteratorDone();
|
|
2853
2841
|
};
|
|
@@ -3069,7 +3057,7 @@
|
|
|
3069
3057
|
return Boolean(maybeList && maybeList[IS_LIST_SYMBOL]);
|
|
3070
3058
|
}
|
|
3071
3059
|
|
|
3072
|
-
var List = (function (IndexedCollection$$1) {
|
|
3060
|
+
var List = /*@__PURE__*/(function (IndexedCollection$$1) {
|
|
3073
3061
|
function List(value) {
|
|
3074
3062
|
var empty = emptyList();
|
|
3075
3063
|
if (value === null || value === undefined) {
|
|
@@ -3249,13 +3237,11 @@
|
|
|
3249
3237
|
};
|
|
3250
3238
|
|
|
3251
3239
|
List.prototype.__iterate = function __iterate (fn, reverse) {
|
|
3252
|
-
var this$1 = this;
|
|
3253
|
-
|
|
3254
3240
|
var index = reverse ? this.size : 0;
|
|
3255
3241
|
var values = iterateList(this, reverse);
|
|
3256
3242
|
var value;
|
|
3257
3243
|
while ((value = values()) !== DONE) {
|
|
3258
|
-
if (fn(value, reverse ? --index : index++, this
|
|
3244
|
+
if (fn(value, reverse ? --index : index++, this) === false) {
|
|
3259
3245
|
break;
|
|
3260
3246
|
}
|
|
3261
3247
|
}
|
|
@@ -3723,7 +3709,7 @@
|
|
|
3723
3709
|
return size < SIZE ? 0 : ((size - 1) >>> SHIFT) << SHIFT;
|
|
3724
3710
|
}
|
|
3725
3711
|
|
|
3726
|
-
var OrderedMap = (function (Map$$1) {
|
|
3712
|
+
var OrderedMap = /*@__PURE__*/(function (Map$$1) {
|
|
3727
3713
|
function OrderedMap(value) {
|
|
3728
3714
|
return value === null || value === undefined
|
|
3729
3715
|
? emptyOrderedMap()
|
|
@@ -3891,7 +3877,7 @@
|
|
|
3891
3877
|
return Boolean(maybeStack && maybeStack[IS_STACK_SYMBOL]);
|
|
3892
3878
|
}
|
|
3893
3879
|
|
|
3894
|
-
var Stack = (function (IndexedCollection$$1) {
|
|
3880
|
+
var Stack = /*@__PURE__*/(function (IndexedCollection$$1) {
|
|
3895
3881
|
function Stack(value) {
|
|
3896
3882
|
return value === null || value === undefined
|
|
3897
3883
|
? emptyStack()
|
|
@@ -4055,7 +4041,7 @@
|
|
|
4055
4041
|
var iterations = 0;
|
|
4056
4042
|
var node = this._head;
|
|
4057
4043
|
while (node) {
|
|
4058
|
-
if (fn(node.value, iterations++, this
|
|
4044
|
+
if (fn(node.value, iterations++, this) === false) {
|
|
4059
4045
|
break;
|
|
4060
4046
|
}
|
|
4061
4047
|
node = node.next;
|
|
@@ -4228,7 +4214,7 @@
|
|
|
4228
4214
|
return result;
|
|
4229
4215
|
}
|
|
4230
4216
|
|
|
4231
|
-
var Set = (function (SetCollection$$1) {
|
|
4217
|
+
var Set = /*@__PURE__*/(function (SetCollection$$1) {
|
|
4232
4218
|
function Set(value) {
|
|
4233
4219
|
return value === null || value === undefined
|
|
4234
4220
|
? emptySet()
|
|
@@ -4464,7 +4450,7 @@
|
|
|
4464
4450
|
* (exclusive), by step, where start defaults to 0, step to 1, and end to
|
|
4465
4451
|
* infinity. When start is equal to end, returns empty list.
|
|
4466
4452
|
*/
|
|
4467
|
-
var Range = (function (IndexedSeq$$1) {
|
|
4453
|
+
var Range = /*@__PURE__*/(function (IndexedSeq$$1) {
|
|
4468
4454
|
function Range(start, end, step) {
|
|
4469
4455
|
if (!(this instanceof Range)) {
|
|
4470
4456
|
return new Range(start, end, step);
|
|
@@ -4555,14 +4541,12 @@
|
|
|
4555
4541
|
};
|
|
4556
4542
|
|
|
4557
4543
|
Range.prototype.__iterate = function __iterate (fn, reverse) {
|
|
4558
|
-
var this$1 = this;
|
|
4559
|
-
|
|
4560
4544
|
var size = this.size;
|
|
4561
4545
|
var step = this._step;
|
|
4562
4546
|
var value = reverse ? this._start + (size - 1) * step : this._start;
|
|
4563
4547
|
var i = 0;
|
|
4564
4548
|
while (i !== size) {
|
|
4565
|
-
if (fn(value, reverse ? size - ++i : i++, this
|
|
4549
|
+
if (fn(value, reverse ? size - ++i : i++, this) === false) {
|
|
4566
4550
|
break;
|
|
4567
4551
|
}
|
|
4568
4552
|
value += reverse ? -step : step;
|
|
@@ -5357,7 +5341,7 @@
|
|
|
5357
5341
|
return (a ^ (b + 0x9e3779b9 + (a << 6) + (a >> 2))) | 0; // int
|
|
5358
5342
|
}
|
|
5359
5343
|
|
|
5360
|
-
var OrderedSet = (function (Set$$1) {
|
|
5344
|
+
var OrderedSet = /*@__PURE__*/(function (Set$$1) {
|
|
5361
5345
|
function OrderedSet(value) {
|
|
5362
5346
|
return value === null || value === undefined
|
|
5363
5347
|
? emptyOrderedSet()
|
|
@@ -5445,7 +5429,7 @@
|
|
|
5445
5429
|
console.warn &&
|
|
5446
5430
|
console.warn(
|
|
5447
5431
|
'Cannot define ' +
|
|
5448
|
-
recordName(this
|
|
5432
|
+
recordName(this) +
|
|
5449
5433
|
' with property "' +
|
|
5450
5434
|
propName +
|
|
5451
5435
|
'" since that property name is part of the Record API.'
|
|
@@ -5478,14 +5462,12 @@
|
|
|
5478
5462
|
};
|
|
5479
5463
|
|
|
5480
5464
|
Record.prototype.toString = function toString () {
|
|
5481
|
-
var this$1 = this;
|
|
5482
|
-
|
|
5483
5465
|
var str = recordName(this) + ' { ';
|
|
5484
5466
|
var keys = this._keys;
|
|
5485
5467
|
var k;
|
|
5486
5468
|
for (var i = 0, l = keys.length; i !== l; i++) {
|
|
5487
5469
|
k = keys[i];
|
|
5488
|
-
str += (i ? ', ' : '') + k + ': ' + quoteString(this
|
|
5470
|
+
str += (i ? ', ' : '') + k + ': ' + quoteString(this.get(k));
|
|
5489
5471
|
}
|
|
5490
5472
|
return str + ' }';
|
|
5491
5473
|
};
|
|
@@ -5641,7 +5623,7 @@
|
|
|
5641
5623
|
* Returns a lazy Seq of `value` repeated `times` times. When `times` is
|
|
5642
5624
|
* undefined, returns an infinite sequence of `value`.
|
|
5643
5625
|
*/
|
|
5644
|
-
var Repeat = (function (IndexedSeq$$1) {
|
|
5626
|
+
var Repeat = /*@__PURE__*/(function (IndexedSeq$$1) {
|
|
5645
5627
|
function Repeat(value, times) {
|
|
5646
5628
|
if (!(this instanceof Repeat)) {
|
|
5647
5629
|
return new Repeat(value, times);
|
|
@@ -5704,12 +5686,10 @@
|
|
|
5704
5686
|
};
|
|
5705
5687
|
|
|
5706
5688
|
Repeat.prototype.__iterate = function __iterate (fn, reverse) {
|
|
5707
|
-
var this$1 = this;
|
|
5708
|
-
|
|
5709
5689
|
var size = this.size;
|
|
5710
5690
|
var i = 0;
|
|
5711
5691
|
while (i !== size) {
|
|
5712
|
-
if (fn(this
|
|
5692
|
+
if (fn(this._value, reverse ? size - ++i : i++, this) === false) {
|
|
5713
5693
|
break;
|
|
5714
5694
|
}
|
|
5715
5695
|
}
|
|
@@ -5780,7 +5760,7 @@
|
|
|
5780
5760
|
return isKeyed(v) ? v.toMap() : v.toList();
|
|
5781
5761
|
}
|
|
5782
5762
|
|
|
5783
|
-
var version = "4.0.0-rc.
|
|
5763
|
+
var version = "4.0.0-rc.11";
|
|
5784
5764
|
|
|
5785
5765
|
var Immutable = {
|
|
5786
5766
|
version: version,
|
package/dist/immutable.js.flow
CHANGED
|
@@ -1401,7 +1401,7 @@ declare class Record {
|
|
|
1401
1401
|
static getDescriptiveName(record: RecordInstance<any>): string;
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
|
-
declare class RecordInstance<T: Object> {
|
|
1404
|
+
declare class RecordInstance<T: Object = Object> {
|
|
1405
1405
|
static (values?: Iterable<[$Keys<T>, $ValOf<T>]> | $Shape<T>): RecordOf<T>;
|
|
1406
1406
|
// Note: a constructor can only create an instance of RecordInstance<T>,
|
|
1407
1407
|
// it's encouraged to not use `new` when creating Records.
|
package/dist/immutable.min.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[Hr]=e}}return e}function N(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function P(t){var e=ct(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=ft,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===Sr){var n=t.__iterator(e,r);return new Er(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===zr?wr:zr,r)},e}function H(t,e,r){var n=ct(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,cr);return o===cr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(Sr,i);return new Er(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return w(n,s,e.call(r,u[1],s,t),i)})},n}function J(t,e){var r=this,n=ct(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=P(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=ft,n.__iterate=function(r,n){var o=this,u=0;return n&&i(t),t.__iterate(function(t,i){return r(t,e?i:n?o.size-++u:u++,o)},!n)},n.__iterator=function(n,o){var u=0;o&&i(t);var s=t.__iterator(Sr,!o);return new Er(function(){var t=s.next();if(t.done)return t;var i=t.value;return w(n,e?i[0]:o?r.size-++u:u++,i[1],t)})},n}function V(t,e,r,n){var i=ct(t);return n&&(i.has=function(n){var i=t.get(n,cr)
|
|
10
10
|
;return i!==cr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,cr);return o!==cr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(Sr,o),s=0;return new Er(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(e.call(r,f,c,t))return w(i,n?c:s++,f,o)}})},i}function Y(t,e,r){var n=$r().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function Q(t,e,r){var n=_(t),i=(m(t)?gn():$r()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=at(t);return i.map(function(e){return ut(t,o(e))}).asImmutable()}function X(t,e,r,n){var i=t.size;if(s(e,r,i))return t;var u=a(e,i),f=c(r,i);if(u!==u||f!==f)return X(t.toSeq().cacheResult(),e,r,n);var h,p=f-u;p===p&&(h=p<0?0:p);var _=ct(t);return _.size=0===h?h:t.size&&h||void 0,!n&&y(t)&&h>=0&&(_.get=function(e,r){return e=o(this,e),e>=0&&e<h?t.get(e+u,r):r}),_.__iterateUncached=function(e,r){var i=this;if(0===h)return 0;if(r)return this.cacheResult().__iterate(e,r);var o=0,s=!0,a=0;return t.__iterate(function(t,r){if(!s||!(s=o++<u))return a++,e(t,n?r:a-1,i)!==!1&&a!==h}),a},_.__iteratorUncached=function(e,r){if(0!==h&&r)return this.cacheResult().__iterator(e,r);if(0===h)return new Er(z);var i=t.__iterator(e,r),o=0,s=0;return new Er(function(){for(;o++<u;)i.next();if(++s>h)return z();var t=i.next();return n||e===zr||t.done?t:e===wr?w(e,s-1,void 0,t):w(e,s-1,t.value[1],t)})},_}function F(t,e,r){var n=ct(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(Sr,i),s=!0;return new Er(function(){if(!s)return z()
|
|
11
11
|
;var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(r,c,a,o)?n===Sr?t:w(n,a,c,t):(s=!1,z())})},n}function G(t,e,r,n){var i=ct(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return a++,i(t,n?o:a-1,u)}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(Sr,o),a=!0,c=0;return new Er(function(){var t,o,f;do{if(t=s.next(),t.done)return n||i===zr?t:i===wr?w(i,c++,void 0,t):w(i,c++,t.value[1],t);var h=t.value;o=h[0],f=h[1],a&&(a=e.call(r,f,o,u))}while(a);return i===Sr?t:w(i,o,f,t)})},i}function Z(t,e){var r=_(t),n=[t].concat(e).map(function(t){return p(t)?r&&(t=lr(t)):t=r?q(t):D(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&_(i)||l(t)&&l(i))return i}var o=new xr(n);return r?o=o.toKeyedSeq():l(t)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}function $(t,e,r){var n=ct(t);return n.__iterateUncached=function(i,o){function u(t,c){t.__iterate(function(t,o){return(!e||c<e)&&p(t)?u(t,c+1):(s++,i(t,r?o:s-1,n)===!1&&(a=!0)),!a},o)}if(o)return this.cacheResult().__iterate(i,o);var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),u=[],s=0;return new Er(function(){for(;o;){var t=o.next();if(t.done===!1){var a=t.value;if(n===Sr&&(a=a[1]),e&&!(u.length<e)||!p(a))return r?t:w(n,s++,a,t);u.push(o),o=a.__iterator(n,i)}else o=u.pop()}return z()})},n}function tt(t,e,r){var n=at(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function et(t,e){var r=ct(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t){return(!o||r(e,o++,i)!==!1)&&r(t,o++,i)!==!1},n),o},r.__iteratorUncached=function(r,n){
|
|
12
|
-
var i,o=t.__iterator(zr,n),u=0;return new Er(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?w(r,u++,e):w(r,u++,i.value,i)})},r}function rt(t,e,r){e||(e=ht);var n=_(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).valueSeq().toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?Dr(o):l(t)?Ar(o):jr(o)}function nt(t,e,r){if(e||(e=ht),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return it(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return it(e,t,r)?r:t})}function it(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function ot(t,e,r,n){var i=ct(t),o=new xr(r).map(function(t){return t.size});return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this
|
|
12
|
+
var i,o=t.__iterator(zr,n),u=0;return new Er(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?w(r,u++,e):w(r,u++,i.value,i)})},r}function rt(t,e,r){e||(e=ht);var n=_(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).valueSeq().toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?Dr(o):l(t)?Ar(o):jr(o)}function nt(t,e,r){if(e||(e=ht),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return it(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return it(e,t,r)?r:t})}function it(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function ot(t,e,r,n){var i=ct(t),o=new xr(r).map(function(t){return t.size});return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(zr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=_r(t),b(i?t.reverse():t)}),u=0,s=!1;return new Er(function(){var r;return s||(r=o.map(function(t){return t.next()}),s=n?r.every(function(t){return t.done}):r.some(function(t){return t.done})),s?z():w(t,u++,e.apply(null,r.map(function(t){return t.value})))})},i}function ut(t,e){return t===e?t:y(t)?e:t.constructor(e)}function st(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function at(t){return _(t)?lr:l(t)?vr:yr}function ct(t){return Object.create((_(t)?Dr:l(t)?Ar:jr).prototype)}function ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):qr.prototype.cacheResult.call(this)}function ht(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function pt(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function _t(t,e){if(!t)throw Error(e)}function lt(t){_t(t!==1/0,"Cannot perform this action with an infinite size.")}function vt(t){if(E(t)&&"string"!=typeof t)return t;if(m(t))return t.toArray()
|
|
13
13
|
;throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}function yt(t){return t&&("function"!=typeof t.constructor||"Object"===t.constructor.name)}function dt(t){return"object"==typeof t&&(g(t)||Array.isArray(t)||yt(t))}function gt(t){try{return"string"==typeof t?JSON.stringify(t):t+""}catch(e){return JSON.stringify(t)}}function mt(t,e){return g(t)?t.has(e):dt(t)&&Mr.call(t,e)}function wt(t,e,r){return g(t)?t.get(e,r):mt(t,e)?"function"==typeof t.get?t.get(e):t[e]:r}function zt(t){if(Array.isArray(t))return pt(t);var e={};for(var r in t)Mr.call(t,r)&&(e[r]=t[r]);return e}function St(t,e){if(!dt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(g(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!Mr.call(t,e))return t;var r=zt(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}function It(t,e,r){if(!dt(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(g(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(Mr.call(t,e)&&r===t[e])return t;var n=zt(t);return n[e]=r,n}function bt(t,e,r,n){n||(n=r,r=void 0);var i=Ot(g(t),t,vt(e),0,r,n);return i===cr?r:i}function Ot(t,e,r,n,i,o){var u=e===cr;if(n===r.length){var s=u?i:e,a=o(s);return a===s?e:a}if(!u&&!dt(e))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,n).map(gt)+"]: "+e);var c=r[n],f=u?cr:wt(e,c,cr),h=Ot(f===cr?t:g(f),f,r,n+1,i,o);return h===f?e:h===cr?St(e,c):It(u?t?te():{}:e,c,h)}function Et(t,e,r){return bt(t,e,cr,function(){return r})}function Mt(t,e){return Et(this,t,e)}function qt(t,e){return bt(t,e,function(){return cr})}function Dt(t){return qt(this,t)}function At(t,e,r,n){return bt(t,[e],r,n)}function jt(t,e,r){return 1===arguments.length?t(this):At(this,t,e,r)}function xt(t,e,r){return bt(this,t,e,r)}function kt(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ut(this,t)}function Rt(t){
|
|
14
14
|
for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return Ut(this,e,t)}function Ut(t,e,r){for(var n=[],i=0;i<e.length;i++){var o=lr(e[i]);0!==o.size&&n.push(o)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var e=r?function(e,n){At(t,n,cr,function(t){return t===cr?e:r(t,e,n)})}:function(e,r){t.set(r,e)},i=0;i<n.length;i++)n[i].forEach(e)}):t.constructor(n[0])}function Kt(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Wt(t,e)}function Tt(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Wt(e,r,t)}function Lt(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Bt(t,e)}function Ct(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Bt(e,r,t)}function Bt(t,e,r){return Wt(t,e,Nt(r))}function Wt(t,e,r){if(!dt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(g(t))return"function"==typeof r&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),i=t,o=n?vr:lr,u=n?function(e){i===t&&(i=zt(i)),i.push(e)}:function(e,n){var o=Mr.call(i,n),u=o&&r?r(i[n],e,n):e;o&&u===i[n]||(i===t&&(i=zt(i)),i[n]=u)},s=0;s<e.length;s++)o(e[s]).forEach(u);return i}function Nt(t){function e(r,n,i){return dt(r)&&dt(n)?Wt(r,[n],e):t?t(r,n,i):n}return e}function Pt(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Bt(this,t)}function Ht(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Bt(this,e,t)}function Jt(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return bt(this,t,te(),function(t){return Wt(t,e)})}function Vt(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return bt(this,t,te(),function(t){return Bt(t,e)})}function Yt(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function Qt(){
|
|
15
15
|
return this.__ownerID?this:this.__ensureOwner(new n)}function Xt(){return this.__ensureOwner()}function Ft(){return this.__altered}function Gt(t,e){return w(t,e[0],e[1])}function Zt(t,e){return{node:t,index:0,__prev:e}}function $t(t,e,r,n){var i=Object.create(tn);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function te(){return sn||(sn=$t(0))}function ee(t,r,n){var i,o;if(t._root){var u=e(),s=e();if(i=re(t._root,t.__ownerID,0,void 0,r,n,u,s),!s.value)return t;o=t.size+(u.value?n===cr?-1:1:0)}else{if(n===cr)return t;o=1,i=new en(t.__ownerID,[[r,n]])}return t.__ownerID?(t.size=o,t._root=i,t.__hash=void 0,t.__altered=!0,t):i?$t(o,i):te()}function re(t,e,n,i,o,u,s,a){return t?t.update(e,n,i,o,u,s,a):u===cr?t:(r(a),r(s),new un(e,i,[o,u]))}function ne(t){return t.constructor===un||t.constructor===on}function ie(t,e,r,n,i){if(t.keyHash===n)return new on(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&ar,s=(0===r?n:n>>>r)&ar;return new rn(e,1<<u|1<<s,u===s?[ie(t,e,r+ur,n,i)]:(o=new un(e,n,i),u<s?[t,o]:[o,t]))}function oe(t,e,r,i){t||(t=new n);for(var o=new un(t,T(r),[r,i]),u=0;u<e.length;u++){var s=e[u];o=o.update(t,0,void 0,s[0],s[1])}return o}function ue(t,e,r,n){for(var i=0,o=0,u=Array(r),s=0,a=1,c=e.length;s<c;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new rn(t,i,u)}function se(t,e,r,n,i){for(var o=0,u=Array(sr),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new nn(t,o+1,u)}function ae(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function ce(t,e,r,n){var i=n?t:pt(t);return i[e]=r,i}function fe(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function he(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}function pe(t){return!(!t||!t[pn])}function _e(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){
|
|
@@ -17,22 +17,22 @@ var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,c=u-r;return c>sr&&(c=sr),function
|
|
|
17
17
|
;for(var y=f,d=c;d>ur;d-=ur){var g=p>>>d&ar;y=y.array[g]=ge(y.array[g],i)}y.array[p>>>ur&ar]=l}if(a<u&&(v=v&&v.removeAfter(i,0,a)),s>=_)s-=_,a-=_,c=ur,f=null,v=v&&v.removeBefore(i,0,s);else if(s>o||_<p){for(h=0;f;){var m=s>>>c&ar;if(m!==_>>>c&ar)break;m&&(h+=(1<<c)*m),c-=ur,f=f.array[m]}f&&s>o&&(f=f.removeBefore(i,c,s-h)),f&&_<p&&(f=f.removeAfter(i,c,_-h)),h&&(s-=h,a-=h)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=c,t._root=f,t._tail=v,t.__hash=void 0,t.__altered=!0,t):le(s,a,c,f,v)}function ze(t){return t<sr?0:t-1>>>ur<<ur}function Se(t,e,r,n){var i=Object.create(gn.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function Ie(){return mn||(mn=Se(te(),ve()))}function be(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===cr){if(!a)return t;u.size>=sr&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):Se(n,i)}function Oe(t){return!(!t||!t[wn])}function Ee(t,e,r,n){var i=Object.create(Sn);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Me(){return In||(In=Ee(0))}function qe(t){return!(!t||!t[bn])}function De(t){return qe(t)&&m(t)}function Ae(t,e){if(t===e)return!0;if(!p(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||_(t)!==_(e)||l(t)!==l(e)||m(t)!==m(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!v(t);if(m(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&U(i[1],t)&&(r||U(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var u=!0,s=e.__iterate(function(e,n){
|
|
18
18
|
if(r?!t.has(e):i?!U(e,t.get(n,cr)):!U(t.get(n,cr),e))return u=!1,!1});return u&&t.size===s}function je(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function xe(t){if(!t||"object"!=typeof t)return t;if(!p(t)){if(!dt(t))return t;t=qr(t)}if(_(t)){var e={};return t.__iterate(function(t,r){e[r]=xe(t)}),e}var r=[];return t.__iterate(function(t){r.push(xe(t))}),r}function ke(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Re(t,e){var r=Object.create(En);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ue(){return Mn||(Mn=Re(te()))}function Ke(t,e,r){for(var n=vt(e),i=0;i!==n.length;)if((t=wt(t,n[i++],cr))===cr)return r;return t}function Te(t,e){return Ke(this,t,e)}function Le(t,e){return Ke(t,e,cr)!==cr}function Ce(t){return Le(this,t)}function Be(){lt(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t}function We(t,e,r,n,i,o){return lt(t.size),t.__iterate(function(t,o,u){i?(i=!1,r=t):r=e.call(n,r,t,o,u)},o),r}function Ne(t,e){return e}function Pe(t,e){return[e,t]}function He(t){return function(){return!t.apply(this,arguments)}}function Je(t){return function(){return-t.apply(this,arguments)}}function Ve(){return pt(arguments)}function Ye(t,e){return t<e?1:t>e?-1:0}function Qe(t){if(t.size===1/0)return 0;var e=m(t),r=_(t),n=e?1:0;return Xe(t.__iterate(r?e?function(t,e){n=31*n+Fe(T(t),T(e))|0}:function(t,e){n=n+Fe(T(t),T(e))|0}:e?function(t){n=31*n+T(t)|0}:function(t){n=n+T(t)|0}),n)}function Xe(t,e){return e=Lr(e,3432918353),e=Lr(e<<15|e>>>-15,461845907),e=Lr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Lr(e^e>>>16,2246822507),e=Lr(e^e>>>13,3266489909),e=K(e^e>>>16)}function Fe(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}function Ge(t,e){var r=Object.create(Rn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ze(){return Un||(Un=Ge(Ie()))}function $e(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,
|
|
19
19
|
n.__ownerID=r,n}function tr(t){return t.constructor.displayName||t.constructor.name||"Record"}function er(t){return q(t._keys.map(function(e){return[e,t.get(e)]}))}function rr(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){_t(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}function nr(t,e){return ir([],e||or,t,"",e&&e.length>2?[]:void 0,{"":t})}function ir(t,e,r,n,i,o){var u=Array.isArray(r)?Ar:yt(r)?Dr:null;if(u){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&""!==n&&i.push(n);var s=e.call(o,n,u(r).map(function(n,o){return ir(t,e,n,o,i,r)}),i&&i.slice());return t.pop(),i&&i.pop(),s}return r}function or(t,e){return _(e)?e.toMap():e.toList()}var ur=5,sr=1<<ur,ar=sr-1,cr={},fr="@@__IMMUTABLE_ITERABLE__@@",hr="@@__IMMUTABLE_KEYED__@@",pr="@@__IMMUTABLE_INDEXED__@@",_r=function(t){return p(t)?t:qr(t)},lr=function(t){function e(t){return _(t)?t:Dr(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_r),vr=function(t){function e(t){return l(t)?t:Ar(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_r),yr=function(t){function e(t){return p(t)&&!v(t)?t:jr(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_r);_r.Keyed=lr,_r.Indexed=vr,_r.Set=yr;var dr="@@__IMMUTABLE_SEQ__@@",gr="@@__IMMUTABLE_RECORD__@@",mr="@@__IMMUTABLE_ORDERED__@@",wr=0,zr=1,Sr=2,Ir="function"==typeof Symbol&&Symbol.iterator,br="@@iterator",Or=Ir||br,Er=function(t){this.next=t};Er.prototype.toString=function(){return"[Iterator]"},Er.KEYS=wr,Er.VALUES=zr,Er.ENTRIES=Sr,Er.prototype.inspect=Er.prototype.toSource=function(){return""+this},Er.prototype[Or]=function(){return this};var Mr=Object.prototype.hasOwnProperty,qr=function(t){function e(t){return null===t||void 0===t?M():g(t)?t.toSeq():A(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),
|
|
20
|
-
e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this._cache;if(r){for(var n=r.length,i=0;i!==n;){var o=r[e?n-++i:i++];if(t(o[1],o[0],this)===!1)break}return i}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new Er(function(){if(i===n)return z();var o=r[e?n-++i:i++];return w(t,o[0],o[1])})}return this.__iteratorUncached(t,e)},e}(_r),Dr=function(t){function e(t){return null===t||void 0===t?M().toKeyedSeq():p(t)?_(t)?t.toSeq():t.fromEntrySeq():d(t)?t.toSeq():q(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(qr),Ar=function(t){function e(t){return null===t||void 0===t?M():p(t)?_(t)?t.entrySeq():t.toIndexedSeq():d(t)?t.toSeq().entrySeq():D(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(qr),jr=function(t){function e(t){return(p(t)&&!v(t)?t:Ar(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(qr);qr.isSeq=y,qr.Keyed=Dr,qr.Set=jr,qr.Indexed=Ar,qr.prototype[dr]=!0;var xr=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[o(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length,i=0;i!==n;){var o=e?n-++i:i++;if(t(r[o],o,this)===!1)break}
|
|
21
|
+
return i},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,i=0;return new Er(function(){if(i===n)return z();var o=e?n-++i:i++;return w(t,o,r[o])})},e}(Ar),kr=function(t){function e(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return Mr.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length,o=0;o!==i;){var u=n[e?i-++o:o++];if(t(r[u],u,this)===!1)break}return o},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new Er(function(){if(o===i)return z();var u=n[e?i-++o:o++];return w(t,u,r[u])})},e}(Dr);kr.prototype[mr]=!0;var Rr,Ur,Kr=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._collection,n=b(r),i=0;if(I(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._collection,n=b(r);if(!I(n))return new Er(z);var i=0;return new Er(function(){var e=n.next();return e.done?e:w(t,i++,e.value)})},e}(Ar),Tr="@@__IMMUTABLE_MAP__@@",Lr="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(t,e){t|=0,e|=0;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},Cr=Object.prototype.valueOf,Br=Object.isExtensible,Wr=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Nr="function"==typeof WeakMap;Nr&&(Ur=new WeakMap);var Pr=0,Hr="__immutablehash__";"function"==typeof Symbol&&(Hr=Symbol(Hr));var Jr=16,Vr=255,Yr=0,Qr={},Xr=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}
|
|
22
|
+
return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=J(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var r=this,n=H(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e,n){return t(e,n,r)},e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(Dr);Xr.prototype[mr]=!0;var Fr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this,n=0;return e&&i(this),this._iter.__iterate(function(i){return t(i,e?r.size-++n:n++,r)},e)},e.prototype.__iterator=function(t,e){var r=this,n=this._iter.__iterator(zr,e),o=0;return e&&i(this),new Er(function(){var i=n.next();return i.done?i:w(t,e?r.size-++o:o++,i.value,i)})},e}(Ar),Gr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(zr,e);return new Er(function(){var e=r.next();return e.done?e:w(t,e.value,e.value,e)})},e}(jr),Zr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var r=this
|
|
23
|
+
;return this._iter.__iterate(function(e){if(e){st(e);var n=p(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(zr,e);return new Er(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){st(n);var i=p(n);return w(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},e}(Dr);Fr.prototype.cacheResult=Xr.prototype.cacheResult=Gr.prototype.cacheResult=Zr.prototype.cacheResult=ft;var $r=function(t){function e(e){return null===e||void 0===e?te():x(e)&&!m(e)?e:te().withMutations(function(r){var n=t(e);lt(n.size),n.forEach(function(t,e){return r.set(e,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return te().withMutations(function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return ee(this,t,e)},e.prototype.remove=function(t){return ee(this,t,cr)},e.prototype.deleteAll=function(t){var e=_r(t);return 0===e.size?this:this.withMutations(function(t){e.forEach(function(e){return t.remove(e)})})},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):te()},e.prototype.sort=function(t){return gn(rt(this,t))},e.prototype.sortBy=function(t,e){return gn(rt(this,e,t))},e.prototype.map=function(t,e){return this.withMutations(function(r){r.forEach(function(n,i){r.set(i,t.call(e,n,i,r))})})},e.prototype.__iterator=function(t,e){return new an(this,t,e)},e.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},e.prototype.__ensureOwner=function(t){
|
|
24
24
|
return t===this.__ownerID?this:t?$t(this.size,this._root,t,this.__hash):0===this.size?te():(this.__ownerID=t,this.__altered=!1,this)},e}(lr);$r.isMap=x;var tn=$r.prototype;tn[Tr]=!0,tn.delete=tn.remove,tn.removeAll=tn.deleteAll,tn.setIn=Mt,tn.removeIn=tn.deleteIn=Dt,tn.update=jt,tn.updateIn=xt,tn.merge=tn.concat=kt,tn.mergeWith=Rt,tn.mergeDeep=Pt,tn.mergeDeepWith=Ht,tn.mergeIn=Jt,tn.mergeDeepIn=Vt,tn.withMutations=Yt,tn.wasAltered=Ft,tn.asImmutable=Xt,tn["@@transducer/init"]=tn.asMutable=Qt,tn["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},tn["@@transducer/result"]=function(t){return t.asImmutable()};var en=function(t,e){this.ownerID=t,this.entries=e};en.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(U(r,i[o][0]))return i[o][1];return n},en.prototype.update=function(t,e,n,i,o,u,s){for(var a=o===cr,c=this.entries,f=0,h=c.length;f<h&&!U(i,c[f][0]);f++);var p=f<h;if(p?c[f][1]===o:a)return this;if(r(s),(a||!p)&&r(u),!a||1!==c.length){if(!p&&!a&&c.length>=cn)return oe(t,c,i,o);var _=t&&t===this.ownerID,l=_?c:pt(c);return p?a?f===h-1?l.pop():l[f]=l.pop():l[f]=[i,o]:l.push([i,o]),_?(this.entries=l,this):new en(t,l)}};var rn=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};rn.prototype.get=function(t,e,r,n){void 0===e&&(e=T(r));var i=1<<((0===t?e:e>>>t)&ar),o=this.bitmap;return 0==(o&i)?n:this.nodes[ae(o&i-1)].get(t+ur,e,r,n)},rn.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=T(n));var s=(0===e?r:r>>>e)&ar,a=1<<s,c=this.bitmap,f=0!=(c&a);if(!f&&i===cr)return this;var h=ae(c&a-1),p=this.nodes,_=f?p[h]:void 0,l=re(_,t,e+ur,r,n,i,o,u);if(l===_)return this;if(!f&&l&&p.length>=fn)return se(t,p,c,s,l);if(f&&!l&&2===p.length&&ne(p[1^h]))return p[1^h];if(f&&l&&1===p.length&&ne(l))return l;var v=t&&t===this.ownerID,y=f?l?c:c^a:c|a,d=f?l?ce(p,h,l,v):he(p,h,v):fe(p,h,l,v);return v?(this.bitmap=y,this.nodes=d,this):new rn(t,y,d)};var nn=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};nn.prototype.get=function(t,e,r,n){void 0===e&&(e=T(r))
|
|
25
25
|
;var i=(0===t?e:e>>>t)&ar,o=this.nodes[i];return o?o.get(t+ur,e,r,n):n},nn.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=T(n));var s=(0===e?r:r>>>e)&ar,a=i===cr,c=this.nodes,f=c[s];if(a&&!f)return this;var h=re(f,t,e+ur,r,n,i,o,u);if(h===f)return this;var p=this.count;if(f){if(!h&&--p<hn)return ue(t,c,p,s)}else p++;var _=t&&t===this.ownerID,l=ce(c,s,h,_);return _?(this.count=p,this.nodes=l,this):new nn(t,p,l)};var on=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};on.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(U(r,i[o][0]))return i[o][1];return n},on.prototype.update=function(t,e,n,i,o,u,s){void 0===n&&(n=T(i));var a=o===cr;if(n!==this.keyHash)return a?this:(r(s),r(u),ie(this,t,e,n,[i,o]));for(var c=this.entries,f=0,h=c.length;f<h&&!U(i,c[f][0]);f++);var p=f<h;if(p?c[f][1]===o:a)return this;if(r(s),(a||!p)&&r(u),a&&2===h)return new un(t,this.keyHash,c[1^f]);var _=t&&t===this.ownerID,l=_?c:pt(c);return p?a?f===h-1?l.pop():l[f]=l.pop():l[f]=[i,o]:l.push([i,o]),_?(this.entries=l,this):new on(t,this.keyHash,l)};var un=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};un.prototype.get=function(t,e,r,n){return U(r,this.entry[0])?this.entry[1]:n},un.prototype.update=function(t,e,n,i,o,u,s){var a=o===cr,c=U(i,this.entry[0]);return(c?o===this.entry[1]:a)?this:(r(s),a?void r(u):c?t&&t===this.ownerID?(this.entry[1]=o,this):new un(t,this.keyHash,[i,o]):(r(u),ie(this,t,e,T(i),[i,o])))},en.prototype.iterate=on.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(t(r[e?i-n:n])===!1)return!1},rn.prototype.iterate=nn.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},un.prototype.iterate=function(t,e){return t(this.entry)};var sn,an=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Zt(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){
|
|
26
|
-
for(var t=this
|
|
27
|
-
return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations(function(t){r.forEach(function(e){return e.forEach(function(e){return t.push(e)})})}):this.constructor(r[0])},e.prototype.setSize=function(t){return we(this,0,t)},e.prototype.map=function(t,e){var r=this;return this.withMutations(function(n){for(var i=0;i<r.size;i++)n.set(i,t.call(e,n.get(i),i,n))})},e.prototype.slice=function(t,e){var r=this.size;return s(t,e,r)?this:we(this,a(t,r),c(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=_e(this,e);return new Er(function(){var i=n();return i===dn?z():w(t,e?--r:r++,i)})},e.prototype.__iterate=function(t,e){for(var r,n=
|
|
26
|
+
for(var t=this._type,e=this._stack;e;){var r=e.node,n=e.index++,i=void 0;if(r.entry){if(0===n)return Gt(t,r.entry)}else if(r.entries){if(i=r.entries.length-1,n<=i)return Gt(t,r.entries[this._reverse?i-n:n])}else if(i=r.nodes.length-1,n<=i){var o=r.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Gt(t,o.entry);e=this._stack=Zt(o,e)}continue}e=this._stack=this._stack.__prev}return z()},e}(Er),cn=sr/4,fn=sr/2,hn=sr/4,pn="@@__IMMUTABLE_LIST__@@",_n=function(t){function e(e){var r=ve();if(null===e||void 0===e)return r;if(pe(e))return e;var n=t(e),i=n.size;return 0===i?r:(lt(i),i>0&&i<sr?le(0,i,ur,null,new vn(n.toArray())):r.withMutations(function(t){t.setSize(i),n.forEach(function(e,r){return t.set(r,e)})}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=o(this,t))>=0&&t<this.size){t+=this._origin;var r=me(this,t);return r&&r.array[t&ar]}return e},e.prototype.set=function(t,e){return ye(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=ur,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ve()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){we(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},e.prototype.pop=function(){return we(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){we(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},e.prototype.shift=function(){return we(this,1)},e.prototype.concat=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++){var i=e[n],o=t("string"!=typeof i&&S(i)?i:[i]);0!==o.size&&r.push(o)}
|
|
27
|
+
return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations(function(t){r.forEach(function(e){return e.forEach(function(e){return t.push(e)})})}):this.constructor(r[0])},e.prototype.setSize=function(t){return we(this,0,t)},e.prototype.map=function(t,e){var r=this;return this.withMutations(function(n){for(var i=0;i<r.size;i++)n.set(i,t.call(e,n.get(i),i,n))})},e.prototype.slice=function(t,e){var r=this.size;return s(t,e,r)?this:we(this,a(t,r),c(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=_e(this,e);return new Er(function(){var i=n();return i===dn?z():w(t,e?--r:r++,i)})},e.prototype.__iterate=function(t,e){for(var r,n=e?this.size:0,i=_e(this,e);(r=i())!==dn&&t(r,e?--n:n++,this)!==!1;);return n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?le(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?ve():(this.__ownerID=t,this.__altered=!1,this)},e}(vr);_n.isList=pe;var ln=_n.prototype;ln[pn]=!0,ln.delete=ln.remove,ln.merge=ln.concat,ln.setIn=Mt,ln.deleteIn=ln.removeIn=Dt,ln.update=jt,ln.updateIn=xt,ln.mergeIn=Jt,ln.mergeDeepIn=Vt,ln.withMutations=Yt,ln.wasAltered=Ft,ln.asImmutable=Xt,ln["@@transducer/init"]=ln.asMutable=Qt,ln["@@transducer/step"]=function(t,e){return t.push(e)},ln["@@transducer/result"]=function(t){return t.asImmutable()};var vn=function(t,e){this.array=t,this.ownerID=e};vn.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&ar;if(n>=this.array.length)return new vn([],t);var i,o=0===n;if(e>0){var u=this.array[n];if((i=u&&u.removeBefore(t,e-ur,r))===u&&o)return this}if(o&&!i)return this;var s=ge(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},vn.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n=r-1>>>e&ar;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if((i=o&&o.removeAfter(t,e-ur,r))===o&&n===this.array.length-1)return this}var u=ge(this,t)
|
|
28
28
|
;return u.array.splice(n+1),i&&(u.array[n]=i),u};var yn,dn={},gn=function(t){function e(t){return null===t||void 0===t?Ie():k(t)?t:Ie().withMutations(function(e){var r=lr(t);lt(r.size),r.forEach(function(t,r){return e.set(r,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ie()},e.prototype.set=function(t,e){return be(this,t,e)},e.prototype.remove=function(t){return be(this,t,cr)},e.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?Se(e,r,t,this.__hash):0===this.size?Ie():(this.__ownerID=t,this._map=e,this._list=r,this)},e}($r);gn.isOrderedMap=k,gn.prototype[mr]=!0,gn.prototype.delete=gn.prototype.remove;var mn,wn="@@__IMMUTABLE_STACK__@@",zn=function(t){function e(t){return null===t||void 0===t?Me():Oe(t)?t:Me().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var r=this._head;for(t=o(this,t);r&&t--;)r=r.next;return r?r.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={
|
|
29
|
-
value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ee(e,r)},e.prototype.pushAll=function(e){if(e=t(e),0===e.size)return this;if(0===this.size&&Oe(e))return e;lt(e.size);var r=this.size,n=this._head;return e.__iterate(function(t){r++,n={value:t,next:n}},!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ee(r,n)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Me()},e.prototype.slice=function(e,r){if(s(e,r,this.size))return this;var n=a(e,this.size);if(c(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ee(i,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ee(this.size,this._head,t,this.__hash):0===this.size?Me():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var r=this;if(e)return new xr(this.toArray()).__iterate(function(e,n){return t(e,n,r)},e);for(var n=0,i=this._head;i&&t(i.value,n++,
|
|
29
|
+
value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ee(e,r)},e.prototype.pushAll=function(e){if(e=t(e),0===e.size)return this;if(0===this.size&&Oe(e))return e;lt(e.size);var r=this.size,n=this._head;return e.__iterate(function(t){r++,n={value:t,next:n}},!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ee(r,n)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Me()},e.prototype.slice=function(e,r){if(s(e,r,this.size))return this;var n=a(e,this.size);if(c(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ee(i,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ee(this.size,this._head,t,this.__hash):0===this.size?Me():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var r=this;if(e)return new xr(this.toArray()).__iterate(function(e,n){return t(e,n,r)},e);for(var n=0,i=this._head;i&&t(i.value,n++,this)!==!1;)i=i.next;return n},e.prototype.__iterator=function(t,e){if(e)return new xr(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new Er(function(){if(n){var e=n.value;return n=n.next,w(t,r++,e)}return z()})},e}(vr);zn.isStack=Oe;var Sn=zn.prototype;Sn[wn]=!0,Sn.shift=Sn.pop,Sn.unshift=Sn.push,Sn.unshiftAll=Sn.pushAll,Sn.withMutations=Yt,Sn.wasAltered=Ft,Sn.asImmutable=Xt,Sn["@@transducer/init"]=Sn.asMutable=Qt,Sn["@@transducer/step"]=function(t,e){return t.unshift(e)},Sn["@@transducer/result"]=function(t){return t.asImmutable()};var In,bn="@@__IMMUTABLE_SET__@@",On=function(t){function e(e){return null===e||void 0===e?Ue():qe(e)&&!m(e)?e:Ue().withMutations(function(r){var n=t(e);lt(n.size),n.forEach(function(t){return r.add(t)})})}return t&&(e.__proto__=t),
|
|
30
30
|
e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(lr(t).keySeq())},e.intersect=function(t){return t=_r(t).toArray(),t.length?En.intersect.apply(e(t.pop()),t):Ue()},e.union=function(t){return t=_r(t).toArray(),t.length?En.union.apply(e(t.pop()),t):Ue()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return ke(this,this._map.set(t,t))},e.prototype.remove=function(t){return ke(this,this._map.remove(t))},e.prototype.clear=function(){return ke(this,this._map.clear())},e.prototype.map=function(t,e){var r=this,n=[],i=[];return this.forEach(function(o){var u=t.call(e,o,o,r);u!==o&&(n.push(o),i.push(u))}),this.withMutations(function(t){n.forEach(function(e){return t.remove(e)}),i.forEach(function(e){return t.add(e)})})},e.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return e=e.filter(function(t){return 0!==t.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(r){for(var n=0;n<e.length;n++)t(e[n]).forEach(function(t){return r.add(t)})}):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.every(function(e){return e.includes(t)})||n.push(t)}),this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.subtract=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.some(function(e){return e.includes(t)})&&n.push(t)}),this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.sort=function(t){return kn(rt(this,t))},e.prototype.sortBy=function(t,e){return kn(rt(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()
|
|
31
|
-
},e.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(yr);On.isSet=qe;var En=On.prototype;En[bn]=!0,En.delete=En.remove,En.merge=En.concat=En.union,En.withMutations=Yt,En.asImmutable=Xt,En["@@transducer/init"]=En.asMutable=Qt,En["@@transducer/step"]=function(t,e){return t.add(e)},En["@@transducer/result"]=function(t){return t.asImmutable()},En.__empty=Ue,En.__make=Re;var Mn,qn,Dn=function(t){function e(t,r,n){if(!(this instanceof e))return new e(t,r,n);if(_t(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===r&&(r=1/0),n=void 0===n?1:Math.abs(n),r<t&&(n=-n),this._start=t,this._end=r,this._step=n,0===(this.size=Math.max(0,Math.ceil((r-t)/n-1)+1))){if(qn)return qn;qn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+o(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,r){return s(t,r,this.size)?this:(t=a(t,this.size),r=c(r,this.size),r<=t?new e(0,0):new e(this.get(t,this._end),this.get(r,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var r=this
|
|
31
|
+
},e.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(yr);On.isSet=qe;var En=On.prototype;En[bn]=!0,En.delete=En.remove,En.merge=En.concat=En.union,En.withMutations=Yt,En.asImmutable=Xt,En["@@transducer/init"]=En.asMutable=Qt,En["@@transducer/step"]=function(t,e){return t.add(e)},En["@@transducer/result"]=function(t){return t.asImmutable()},En.__empty=Ue,En.__make=Re;var Mn,qn,Dn=function(t){function e(t,r,n){if(!(this instanceof e))return new e(t,r,n);if(_t(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===r&&(r=1/0),n=void 0===n?1:Math.abs(n),r<t&&(n=-n),this._start=t,this._end=r,this._step=n,0===(this.size=Math.max(0,Math.ceil((r-t)/n-1)+1))){if(qn)return qn;qn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+o(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,r){return s(t,r,this.size)?this:(t=a(t,this.size),r=c(r,this.size),r<=t?new e(0,0):new e(this.get(t,this._end),this.get(r,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;o!==r&&t(i,e?r-++o:o++,this)!==!1;)i+=e?-n:n;return o},e.prototype.__iterator=function(t,e){
|
|
32
32
|
var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;return new Er(function(){if(o===r)return z();var u=i;return i+=e?-n:n,w(t,e?r-++o:o++,u)})},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:Ae(this,t)},e}(Ar);_r.isIterable=p,_r.isKeyed=_,_r.isIndexed=l,_r.isAssociative=v,_r.isOrdered=m,_r.Iterator=Er,je(_r,{toArray:function(){lt(this.size);var t=Array(this.size||0),e=_(this),r=0;return this.__iterate(function(n,i){t[r++]=e?[i,n]:n}),t},toIndexedSeq:function(){return new Fr(this)},toJS:function(){return xe(this)},toKeyedSeq:function(){return new Xr(this,!0)},toMap:function(){return $r(this.toKeyedSeq())},toObject:Be,toOrderedMap:function(){return gn(this.toKeyedSeq())},toOrderedSet:function(){return kn(_(this)?this.valueSeq():this)},toSet:function(){return On(_(this)?this.valueSeq():this)},toSetSeq:function(){return new Gr(this)},toSeq:function(){return l(this)?this.toIndexedSeq():_(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return zn(_(this)?this.valueSeq():this)},toList:function(){return _n(_(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return ut(this,Z(this,t))},includes:function(t){return this.some(function(e){return U(e,t)})},entries:function(){return this.__iterator(Sr)},every:function(t,e){lt(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return ut(this,V(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return lt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){lt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?""+n:""}),e},keys:function(){return this.__iterator(wr)},map:function(t,e){
|
|
33
33
|
return ut(this,H(this,t,e))},reduce:function(t,e,r){return We(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return We(this,t,e,r,arguments.length<2,!0)},reverse:function(){return ut(this,J(this,!0))},slice:function(t,e){return ut(this,X(this,t,e,!0))},some:function(t,e){return!this.every(He(t),e)},sort:function(t){return ut(this,rt(this,t))},values:function(){return this.__iterator(zr)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return i(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return Y(this,t,e)},equals:function(t){return Ae(this,t)},entrySeq:function(){var t=this;if(t._cache)return new xr(t._cache);var e=t.toSeq().map(Pe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(He(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(u,null,t)},flatMap:function(t,e){return ut(this,tt(this,t,e))},flatten:function(t){return ut(this,$(this,t,!0))},fromEntrySeq:function(){return new Zr(this)},get:function(t,e){return this.find(function(e,r){return U(r,t)},void 0,e)},getIn:Te,groupBy:function(t,e){return Q(this,t,e)},has:function(t){return this.get(t,cr)!==cr},hasIn:Ce,isSubset:function(t){return t="function"==typeof t.includes?t:_r(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:_r(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return U(e,t)})},keySeq:function(){return this.toSeq().map(Ne).toIndexedSeq()},last:function(t){
|
|
34
34
|
return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return nt(this,t)},maxBy:function(t,e){return nt(this,e,t)},min:function(t){return nt(this,t?Je(t):Ye)},minBy:function(t,e){return nt(this,e?Je(e):Ye,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return ut(this,G(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(He(t),e)},sortBy:function(t,e){return ut(this,rt(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return ut(this,F(this,t,e))},takeUntil:function(t,e){return this.takeWhile(He(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Qe(this))}});var An=_r.prototype;An[fr]=!0,An[Or]=An.values,An.toJSON=An.toArray,An.__toStringMapper=gt,An.inspect=An.toSource=function(){return""+this},An.chain=An.flatMap,An.contains=An.includes,je(lr,{flip:function(){return ut(this,P(this))},mapEntries:function(t,e){var r=this,n=0;return ut(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return ut(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var jn=lr.prototype;jn[hr]=!0,jn[Or]=An.entries,jn.toJSON=Be,jn.__toStringMapper=function(t,e){return gt(e)+": "+gt(t)},je(vr,{toKeyedSeq:function(){return new Xr(this,!1)},filter:function(t,e){return ut(this,V(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return ut(this,J(this,!1))},slice:function(t,e){return ut(this,X(this,t,e,!1))},splice:function(t,e){var r=arguments.length
|
|
35
35
|
;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=a(t,t<0?this.count():this.size);var n=this.slice(0,t);return ut(this,1===r?n:n.concat(pt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return ut(this,$(this,t,!1))},get:function(t,e){return t=o(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=o(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return ut(this,et(this,t))},interleave:function(){var t=[this].concat(pt(arguments)),e=ot(this.toSeq(),Ar.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),ut(this,r)},keySeq:function(){return Dn(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return ut(this,G(this,t,e,!1))},zip:function(){return ut(this,ot(this,Ve,[this].concat(pt(arguments))))},zipAll:function(){return ut(this,ot(this,Ve,[this].concat(pt(arguments)),!0))},zipWith:function(t){var e=pt(arguments);return e[0]=this,ut(this,ot(this,t,e))}});var xn=vr.prototype;xn[pr]=!0,xn[mr]=!0,je(yr,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),yr.prototype.has=An.includes,yr.prototype.contains=yr.prototype.includes,je(Dr,lr.prototype),je(Ar,vr.prototype),je(jr,yr.prototype);var kn=function(t){function e(t){return null===t||void 0===t?Ze():De(t)?t:Ze().withMutations(function(e){var r=yr(t);lt(r.size),r.forEach(function(t){return e.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(lr(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(On);kn.isOrderedSet=De;var Rn=kn.prototype;Rn[mr]=!0,Rn.zip=xn.zip,Rn.zipWith=xn.zipWith,Rn.__empty=Ze,Rn.__make=Ge
|
|
36
|
-
;var Un,Kn=function(t,e){var r,n=function(o){var u=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var s=Object.keys(t),a=i._indices={};i._name=e,i._keys=s,i._defaultValues=t;for(var c=0;c<s.length;c++){var f=s[c];a[f]=c,i[f]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+tr(
|
|
37
|
-
;var e=this._values.__ensureOwner(t);return t?$e(this,e,t):(this.__ownerID=t,this._values=e,this)},Kn.isRecord=d,Kn.getDescriptiveName=tr;var Tn=Kn.prototype;Tn[gr]=!0,Tn.delete=Tn.remove,Tn.deleteIn=Tn.removeIn=Dt,Tn.getIn=Te,Tn.hasIn=An.hasIn,Tn.merge=kt,Tn.mergeWith=Rt,Tn.mergeIn=Jt,Tn.mergeDeep=Pt,Tn.mergeDeepWith=Ht,Tn.mergeDeepIn=Vt,Tn.setIn=Mt,Tn.update=jt,Tn.updateIn=xt,Tn.withMutations=Yt,Tn.asMutable=Qt,Tn.asImmutable=Xt,Tn[Or]=Tn.entries,Tn.toJSON=Tn.toObject=An.toObject,Tn.inspect=Tn.toSource=function(){return""+this};var Ln,Cn=function(t){function e(t,r){if(!(this instanceof e))return new e(t,r);if(this._value=t,0===(this.size=void 0===r?1/0:Math.max(0,r))){if(Ln)return Ln;Ln=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return U(this._value,t)},e.prototype.slice=function(t,r){var n=this.size;return s(t,r,n)?this:new e(this._value,c(r,n)-a(t,n))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return U(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return U(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var r=this
|
|
38
|
-
merge:Kt,mergeDeep:Lt,mergeWith:Tt,mergeDeepWith:Ct,remove:St,removeIn:qt,set:It,setIn:Et,update:At,updateIn:bt},Wn=_r;t.default=Bn,t.version="4.0.0-rc.
|
|
36
|
+
;var Un,Kn=function(t,e){var r,n=function(o){var u=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var s=Object.keys(t),a=i._indices={};i._name=e,i._keys=s,i._defaultValues=t;for(var c=0;c<s.length;c++){var f=s[c];a[f]=c,i[f]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+tr(this)+' with property "'+f+'" since that property name is part of the Record API.'):rr(i,f)}}this.__ownerID=void 0,this._values=_n().withMutations(function(t){t.setSize(u._keys.length),lr(o).forEach(function(e,r){t.set(u._indices[r],e===u._defaultValues[r]?void 0:e)})})},i=n.prototype=Object.create(Tn);return i.constructor=n,e&&(n.displayName=e),n};Kn.prototype.toString=function(){for(var t,e=tr(this)+" { ",r=this._keys,n=0,i=r.length;n!==i;n++)t=r[n],e+=(n?", ":"")+t+": "+gt(this.get(t));return e+" }"},Kn.prototype.equals=function(t){return this===t||t&&this._keys===t._keys&&er(this).equals(er(t))},Kn.prototype.hashCode=function(){return er(this).hashCode()},Kn.prototype.has=function(t){return this._indices.hasOwnProperty(t)},Kn.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},Kn.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return $e(this,r)}return this},Kn.prototype.remove=function(t){return this.set(t)},Kn.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:$e(this,t)},Kn.prototype.wasAltered=function(){return this._values.wasAltered()},Kn.prototype.toSeq=function(){return er(this)},Kn.prototype.toJS=function(){return xe(this)},Kn.prototype.entries=function(){return this.__iterator(Sr)},Kn.prototype.__iterator=function(t,e){return er(this).__iterator(t,e)},Kn.prototype.__iterate=function(t,e){return er(this).__iterate(t,e)},Kn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this
|
|
37
|
+
;var e=this._values.__ensureOwner(t);return t?$e(this,e,t):(this.__ownerID=t,this._values=e,this)},Kn.isRecord=d,Kn.getDescriptiveName=tr;var Tn=Kn.prototype;Tn[gr]=!0,Tn.delete=Tn.remove,Tn.deleteIn=Tn.removeIn=Dt,Tn.getIn=Te,Tn.hasIn=An.hasIn,Tn.merge=kt,Tn.mergeWith=Rt,Tn.mergeIn=Jt,Tn.mergeDeep=Pt,Tn.mergeDeepWith=Ht,Tn.mergeDeepIn=Vt,Tn.setIn=Mt,Tn.update=jt,Tn.updateIn=xt,Tn.withMutations=Yt,Tn.asMutable=Qt,Tn.asImmutable=Xt,Tn[Or]=Tn.entries,Tn.toJSON=Tn.toObject=An.toObject,Tn.inspect=Tn.toSource=function(){return""+this};var Ln,Cn=function(t){function e(t,r){if(!(this instanceof e))return new e(t,r);if(this._value=t,0===(this.size=void 0===r?1/0:Math.max(0,r))){if(Ln)return Ln;Ln=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return U(this._value,t)},e.prototype.slice=function(t,r){var n=this.size;return s(t,r,n)?this:new e(this._value,c(r,n)-a(t,n))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return U(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return U(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var r=this.size,n=0;n!==r&&t(this._value,e?r-++n:n++,this)!==!1;);return n},e.prototype.__iterator=function(t,e){var r=this,n=this.size,i=0;return new Er(function(){return i===n?z():w(t,e?n-++i:i++,r._value)})},e.prototype.equals=function(t){return t instanceof e?U(this._value,t._value):Ae(t)},e}(Ar),Bn={version:"4.0.0-rc.11",Collection:_r,Iterable:_r,Seq:qr,Map:$r,OrderedMap:gn,List:_n,Stack:zn,Set:On,OrderedSet:kn,Record:Kn,Range:Dn,Repeat:Cn,is:U,fromJS:nr,hash:T,isImmutable:g,isCollection:p,isKeyed:_,isIndexed:l,isAssociative:v,isOrdered:m,isValueObject:R,isSeq:y,isList:pe,isMap:x,isOrderedMap:k,isStack:Oe,isSet:qe,isOrderedSet:De,isRecord:d,get:wt,getIn:Ke,has:mt,hasIn:Le,
|
|
38
|
+
merge:Kt,mergeDeep:Lt,mergeWith:Tt,mergeDeepWith:Ct,remove:St,removeIn:qt,set:It,setIn:Et,update:At,updateIn:bt},Wn=_r;t.default=Bn,t.version="4.0.0-rc.11",t.Collection=_r,t.Iterable=Wn,t.Seq=qr,t.Map=$r,t.OrderedMap=gn,t.List=_n,t.Stack=zn,t.Set=On,t.OrderedSet=kn,t.Record=Kn,t.Range=Dn,t.Repeat=Cn,t.is=U,t.fromJS=nr,t.hash=T,t.isImmutable=g,t.isCollection=p,t.isKeyed=_,t.isIndexed=l,t.isAssociative=v,t.isOrdered=m,t.isValueObject=R,t.get=wt,t.getIn=Ke,t.has=mt,t.hasIn=Le,t.merge=Kt,t.mergeDeep=Lt,t.mergeWith=Tt,t.mergeDeepWith=Ct,t.remove=St,t.removeIn=qt,t.set=It,t.setIn=Et,t.update=At,t.updateIn=bt,Object.defineProperty(t,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "immutable",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.12",
|
|
4
4
|
"description": "Immutable Data Collections",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://facebook.github.com/immutable-js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"benchmark": "2.1.4",
|
|
62
|
-
"browser-sync": "2.
|
|
62
|
+
"browser-sync": "^2.26.3",
|
|
63
63
|
"browserify": "16.2.2",
|
|
64
64
|
"colors": "1.2.5",
|
|
65
65
|
"del": "3.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"eslint-plugin-jsx-a11y": "6.0.3",
|
|
72
72
|
"eslint-plugin-prettier": "2.6.2",
|
|
73
73
|
"eslint-plugin-react": "7.8.2",
|
|
74
|
-
"flow-bin": "0.
|
|
74
|
+
"flow-bin": "0.85.0",
|
|
75
75
|
"gulp": "3.9.1",
|
|
76
76
|
"gulp-concat": "2.6.1",
|
|
77
77
|
"gulp-filter": "5.1.0",
|