immutable 4.3.5 → 4.3.6
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 +25 -2
- package/dist/immutable.js +25 -2
- package/dist/immutable.min.js +2 -2
- package/package.json +1 -1
package/dist/immutable.es.js
CHANGED
|
@@ -135,11 +135,13 @@ function isAssociative(maybeAssociative) {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
var Collection = function Collection(value) {
|
|
138
|
+
// eslint-disable-next-line no-constructor-return
|
|
138
139
|
return isCollection(value) ? value : Seq(value);
|
|
139
140
|
};
|
|
140
141
|
|
|
141
142
|
var KeyedCollection = /*@__PURE__*/(function (Collection) {
|
|
142
143
|
function KeyedCollection(value) {
|
|
144
|
+
// eslint-disable-next-line no-constructor-return
|
|
143
145
|
return isKeyed(value) ? value : KeyedSeq(value);
|
|
144
146
|
}
|
|
145
147
|
|
|
@@ -152,6 +154,7 @@ var KeyedCollection = /*@__PURE__*/(function (Collection) {
|
|
|
152
154
|
|
|
153
155
|
var IndexedCollection = /*@__PURE__*/(function (Collection) {
|
|
154
156
|
function IndexedCollection(value) {
|
|
157
|
+
// eslint-disable-next-line no-constructor-return
|
|
155
158
|
return isIndexed(value) ? value : IndexedSeq(value);
|
|
156
159
|
}
|
|
157
160
|
|
|
@@ -164,6 +167,7 @@ var IndexedCollection = /*@__PURE__*/(function (Collection) {
|
|
|
164
167
|
|
|
165
168
|
var SetCollection = /*@__PURE__*/(function (Collection) {
|
|
166
169
|
function SetCollection(value) {
|
|
170
|
+
// eslint-disable-next-line no-constructor-return
|
|
167
171
|
return isCollection(value) && !isAssociative(value) ? value : SetSeq(value);
|
|
168
172
|
}
|
|
169
173
|
|
|
@@ -304,6 +308,7 @@ function isArrayLike(value) {
|
|
|
304
308
|
|
|
305
309
|
var Seq = /*@__PURE__*/(function (Collection) {
|
|
306
310
|
function Seq(value) {
|
|
311
|
+
// eslint-disable-next-line no-constructor-return
|
|
307
312
|
return value === undefined || value === null
|
|
308
313
|
? emptySequence()
|
|
309
314
|
: isImmutable(value)
|
|
@@ -372,6 +377,7 @@ var Seq = /*@__PURE__*/(function (Collection) {
|
|
|
372
377
|
|
|
373
378
|
var KeyedSeq = /*@__PURE__*/(function (Seq) {
|
|
374
379
|
function KeyedSeq(value) {
|
|
380
|
+
// eslint-disable-next-line no-constructor-return
|
|
375
381
|
return value === undefined || value === null
|
|
376
382
|
? emptySequence().toKeyedSeq()
|
|
377
383
|
: isCollection(value)
|
|
@@ -396,6 +402,7 @@ var KeyedSeq = /*@__PURE__*/(function (Seq) {
|
|
|
396
402
|
|
|
397
403
|
var IndexedSeq = /*@__PURE__*/(function (Seq) {
|
|
398
404
|
function IndexedSeq(value) {
|
|
405
|
+
// eslint-disable-next-line no-constructor-return
|
|
399
406
|
return value === undefined || value === null
|
|
400
407
|
? emptySequence()
|
|
401
408
|
: isCollection(value)
|
|
@@ -428,6 +435,7 @@ var IndexedSeq = /*@__PURE__*/(function (Seq) {
|
|
|
428
435
|
|
|
429
436
|
var SetSeq = /*@__PURE__*/(function (Seq) {
|
|
430
437
|
function SetSeq(value) {
|
|
438
|
+
// eslint-disable-next-line no-constructor-return
|
|
431
439
|
return (
|
|
432
440
|
isCollection(value) && !isAssociative(value) ? value : IndexedSeq(value)
|
|
433
441
|
).toSetSeq();
|
|
@@ -2376,6 +2384,7 @@ function wasAltered() {
|
|
|
2376
2384
|
|
|
2377
2385
|
var Map = /*@__PURE__*/(function (KeyedCollection) {
|
|
2378
2386
|
function Map(value) {
|
|
2387
|
+
// eslint-disable-next-line no-constructor-return
|
|
2379
2388
|
return value === undefined || value === null
|
|
2380
2389
|
? emptyMap()
|
|
2381
2390
|
: isMap(value) && !isOrdered(value)
|
|
@@ -3168,20 +3177,25 @@ var List = /*@__PURE__*/(function (IndexedCollection) {
|
|
|
3168
3177
|
function List(value) {
|
|
3169
3178
|
var empty = emptyList();
|
|
3170
3179
|
if (value === undefined || value === null) {
|
|
3180
|
+
// eslint-disable-next-line no-constructor-return
|
|
3171
3181
|
return empty;
|
|
3172
3182
|
}
|
|
3173
3183
|
if (isList(value)) {
|
|
3184
|
+
// eslint-disable-next-line no-constructor-return
|
|
3174
3185
|
return value;
|
|
3175
3186
|
}
|
|
3176
3187
|
var iter = IndexedCollection(value);
|
|
3177
3188
|
var size = iter.size;
|
|
3178
3189
|
if (size === 0) {
|
|
3190
|
+
// eslint-disable-next-line no-constructor-return
|
|
3179
3191
|
return empty;
|
|
3180
3192
|
}
|
|
3181
3193
|
assertNotInfinite(size);
|
|
3182
3194
|
if (size > 0 && size < SIZE) {
|
|
3195
|
+
// eslint-disable-next-line no-constructor-return
|
|
3183
3196
|
return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));
|
|
3184
3197
|
}
|
|
3198
|
+
// eslint-disable-next-line no-constructor-return
|
|
3185
3199
|
return empty.withMutations(function (list) {
|
|
3186
3200
|
list.setSize(size);
|
|
3187
3201
|
iter.forEach(function (v, i) { return list.set(i, v); });
|
|
@@ -3817,6 +3831,7 @@ function getTailOffset(size) {
|
|
|
3817
3831
|
|
|
3818
3832
|
var OrderedMap = /*@__PURE__*/(function (Map) {
|
|
3819
3833
|
function OrderedMap(value) {
|
|
3834
|
+
// eslint-disable-next-line no-constructor-return
|
|
3820
3835
|
return value === undefined || value === null
|
|
3821
3836
|
? emptyOrderedMap()
|
|
3822
3837
|
: isOrderedMap(value)
|
|
@@ -3985,6 +4000,7 @@ function isStack(maybeStack) {
|
|
|
3985
4000
|
|
|
3986
4001
|
var Stack = /*@__PURE__*/(function (IndexedCollection) {
|
|
3987
4002
|
function Stack(value) {
|
|
4003
|
+
// eslint-disable-next-line no-constructor-return
|
|
3988
4004
|
return value === undefined || value === null
|
|
3989
4005
|
? emptyStack()
|
|
3990
4006
|
: isStack(value)
|
|
@@ -4319,6 +4335,7 @@ function toJS(value) {
|
|
|
4319
4335
|
|
|
4320
4336
|
var Set = /*@__PURE__*/(function (SetCollection) {
|
|
4321
4337
|
function Set(value) {
|
|
4338
|
+
// eslint-disable-next-line no-constructor-return
|
|
4322
4339
|
return value === undefined || value === null
|
|
4323
4340
|
? emptySet()
|
|
4324
4341
|
: isSet(value) && !isOrdered(value)
|
|
@@ -4566,6 +4583,7 @@ function emptySet() {
|
|
|
4566
4583
|
var Range = /*@__PURE__*/(function (IndexedSeq) {
|
|
4567
4584
|
function Range(start, end, step) {
|
|
4568
4585
|
if (!(this instanceof Range)) {
|
|
4586
|
+
// eslint-disable-next-line no-constructor-return
|
|
4569
4587
|
return new Range(start, end, step);
|
|
4570
4588
|
}
|
|
4571
4589
|
invariant(step !== 0, 'Cannot step a Range by 0');
|
|
@@ -4583,6 +4601,7 @@ var Range = /*@__PURE__*/(function (IndexedSeq) {
|
|
|
4583
4601
|
this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1);
|
|
4584
4602
|
if (this.size === 0) {
|
|
4585
4603
|
if (EMPTY_RANGE) {
|
|
4604
|
+
// eslint-disable-next-line no-constructor-return
|
|
4586
4605
|
return EMPTY_RANGE;
|
|
4587
4606
|
}
|
|
4588
4607
|
EMPTY_RANGE = this;
|
|
@@ -5456,6 +5475,7 @@ function hashMerge(a, b) {
|
|
|
5456
5475
|
|
|
5457
5476
|
var OrderedSet = /*@__PURE__*/(function (Set) {
|
|
5458
5477
|
function OrderedSet(value) {
|
|
5478
|
+
// eslint-disable-next-line no-constructor-return
|
|
5459
5479
|
return value === undefined || value === null
|
|
5460
5480
|
? emptyOrderedSet()
|
|
5461
5481
|
: isOrderedSet(value)
|
|
@@ -5599,6 +5619,7 @@ var Record = function Record(defaultValues, name) {
|
|
|
5599
5619
|
RecordType.displayName = name;
|
|
5600
5620
|
}
|
|
5601
5621
|
|
|
5622
|
+
// eslint-disable-next-line no-constructor-return
|
|
5602
5623
|
return RecordType;
|
|
5603
5624
|
};
|
|
5604
5625
|
|
|
@@ -5766,12 +5787,14 @@ function setProp(prototype, name) {
|
|
|
5766
5787
|
var Repeat = /*@__PURE__*/(function (IndexedSeq) {
|
|
5767
5788
|
function Repeat(value, times) {
|
|
5768
5789
|
if (!(this instanceof Repeat)) {
|
|
5790
|
+
// eslint-disable-next-line no-constructor-return
|
|
5769
5791
|
return new Repeat(value, times);
|
|
5770
5792
|
}
|
|
5771
5793
|
this._value = value;
|
|
5772
5794
|
this.size = times === undefined ? Infinity : Math.max(0, times);
|
|
5773
5795
|
if (this.size === 0) {
|
|
5774
5796
|
if (EMPTY_REPEAT) {
|
|
5797
|
+
// eslint-disable-next-line no-constructor-return
|
|
5775
5798
|
return EMPTY_REPEAT;
|
|
5776
5799
|
}
|
|
5777
5800
|
EMPTY_REPEAT = this;
|
|
@@ -5850,7 +5873,7 @@ var Repeat = /*@__PURE__*/(function (IndexedSeq) {
|
|
|
5850
5873
|
Repeat.prototype.equals = function equals (other) {
|
|
5851
5874
|
return other instanceof Repeat
|
|
5852
5875
|
? is(this._value, other._value)
|
|
5853
|
-
: deepEqual(other);
|
|
5876
|
+
: deepEqual(this, other);
|
|
5854
5877
|
};
|
|
5855
5878
|
|
|
5856
5879
|
return Repeat;
|
|
@@ -5899,7 +5922,7 @@ function defaultConverter(k, v) {
|
|
|
5899
5922
|
return isIndexed(v) ? v.toList() : isKeyed(v) ? v.toMap() : v.toSet();
|
|
5900
5923
|
}
|
|
5901
5924
|
|
|
5902
|
-
var version = "4.3.
|
|
5925
|
+
var version = "4.3.6";
|
|
5903
5926
|
|
|
5904
5927
|
var Immutable = {
|
|
5905
5928
|
version: version,
|
package/dist/immutable.js
CHANGED
|
@@ -141,11 +141,13 @@
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
var Collection = function Collection(value) {
|
|
144
|
+
// eslint-disable-next-line no-constructor-return
|
|
144
145
|
return isCollection(value) ? value : Seq(value);
|
|
145
146
|
};
|
|
146
147
|
|
|
147
148
|
var KeyedCollection = /*@__PURE__*/(function (Collection) {
|
|
148
149
|
function KeyedCollection(value) {
|
|
150
|
+
// eslint-disable-next-line no-constructor-return
|
|
149
151
|
return isKeyed(value) ? value : KeyedSeq(value);
|
|
150
152
|
}
|
|
151
153
|
|
|
@@ -158,6 +160,7 @@
|
|
|
158
160
|
|
|
159
161
|
var IndexedCollection = /*@__PURE__*/(function (Collection) {
|
|
160
162
|
function IndexedCollection(value) {
|
|
163
|
+
// eslint-disable-next-line no-constructor-return
|
|
161
164
|
return isIndexed(value) ? value : IndexedSeq(value);
|
|
162
165
|
}
|
|
163
166
|
|
|
@@ -170,6 +173,7 @@
|
|
|
170
173
|
|
|
171
174
|
var SetCollection = /*@__PURE__*/(function (Collection) {
|
|
172
175
|
function SetCollection(value) {
|
|
176
|
+
// eslint-disable-next-line no-constructor-return
|
|
173
177
|
return isCollection(value) && !isAssociative(value) ? value : SetSeq(value);
|
|
174
178
|
}
|
|
175
179
|
|
|
@@ -310,6 +314,7 @@
|
|
|
310
314
|
|
|
311
315
|
var Seq = /*@__PURE__*/(function (Collection) {
|
|
312
316
|
function Seq(value) {
|
|
317
|
+
// eslint-disable-next-line no-constructor-return
|
|
313
318
|
return value === undefined || value === null
|
|
314
319
|
? emptySequence()
|
|
315
320
|
: isImmutable(value)
|
|
@@ -378,6 +383,7 @@
|
|
|
378
383
|
|
|
379
384
|
var KeyedSeq = /*@__PURE__*/(function (Seq) {
|
|
380
385
|
function KeyedSeq(value) {
|
|
386
|
+
// eslint-disable-next-line no-constructor-return
|
|
381
387
|
return value === undefined || value === null
|
|
382
388
|
? emptySequence().toKeyedSeq()
|
|
383
389
|
: isCollection(value)
|
|
@@ -402,6 +408,7 @@
|
|
|
402
408
|
|
|
403
409
|
var IndexedSeq = /*@__PURE__*/(function (Seq) {
|
|
404
410
|
function IndexedSeq(value) {
|
|
411
|
+
// eslint-disable-next-line no-constructor-return
|
|
405
412
|
return value === undefined || value === null
|
|
406
413
|
? emptySequence()
|
|
407
414
|
: isCollection(value)
|
|
@@ -434,6 +441,7 @@
|
|
|
434
441
|
|
|
435
442
|
var SetSeq = /*@__PURE__*/(function (Seq) {
|
|
436
443
|
function SetSeq(value) {
|
|
444
|
+
// eslint-disable-next-line no-constructor-return
|
|
437
445
|
return (
|
|
438
446
|
isCollection(value) && !isAssociative(value) ? value : IndexedSeq(value)
|
|
439
447
|
).toSetSeq();
|
|
@@ -2382,6 +2390,7 @@
|
|
|
2382
2390
|
|
|
2383
2391
|
var Map = /*@__PURE__*/(function (KeyedCollection) {
|
|
2384
2392
|
function Map(value) {
|
|
2393
|
+
// eslint-disable-next-line no-constructor-return
|
|
2385
2394
|
return value === undefined || value === null
|
|
2386
2395
|
? emptyMap()
|
|
2387
2396
|
: isMap(value) && !isOrdered(value)
|
|
@@ -3174,20 +3183,25 @@
|
|
|
3174
3183
|
function List(value) {
|
|
3175
3184
|
var empty = emptyList();
|
|
3176
3185
|
if (value === undefined || value === null) {
|
|
3186
|
+
// eslint-disable-next-line no-constructor-return
|
|
3177
3187
|
return empty;
|
|
3178
3188
|
}
|
|
3179
3189
|
if (isList(value)) {
|
|
3190
|
+
// eslint-disable-next-line no-constructor-return
|
|
3180
3191
|
return value;
|
|
3181
3192
|
}
|
|
3182
3193
|
var iter = IndexedCollection(value);
|
|
3183
3194
|
var size = iter.size;
|
|
3184
3195
|
if (size === 0) {
|
|
3196
|
+
// eslint-disable-next-line no-constructor-return
|
|
3185
3197
|
return empty;
|
|
3186
3198
|
}
|
|
3187
3199
|
assertNotInfinite(size);
|
|
3188
3200
|
if (size > 0 && size < SIZE) {
|
|
3201
|
+
// eslint-disable-next-line no-constructor-return
|
|
3189
3202
|
return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));
|
|
3190
3203
|
}
|
|
3204
|
+
// eslint-disable-next-line no-constructor-return
|
|
3191
3205
|
return empty.withMutations(function (list) {
|
|
3192
3206
|
list.setSize(size);
|
|
3193
3207
|
iter.forEach(function (v, i) { return list.set(i, v); });
|
|
@@ -3823,6 +3837,7 @@
|
|
|
3823
3837
|
|
|
3824
3838
|
var OrderedMap = /*@__PURE__*/(function (Map) {
|
|
3825
3839
|
function OrderedMap(value) {
|
|
3840
|
+
// eslint-disable-next-line no-constructor-return
|
|
3826
3841
|
return value === undefined || value === null
|
|
3827
3842
|
? emptyOrderedMap()
|
|
3828
3843
|
: isOrderedMap(value)
|
|
@@ -3991,6 +4006,7 @@
|
|
|
3991
4006
|
|
|
3992
4007
|
var Stack = /*@__PURE__*/(function (IndexedCollection) {
|
|
3993
4008
|
function Stack(value) {
|
|
4009
|
+
// eslint-disable-next-line no-constructor-return
|
|
3994
4010
|
return value === undefined || value === null
|
|
3995
4011
|
? emptyStack()
|
|
3996
4012
|
: isStack(value)
|
|
@@ -4325,6 +4341,7 @@
|
|
|
4325
4341
|
|
|
4326
4342
|
var Set = /*@__PURE__*/(function (SetCollection) {
|
|
4327
4343
|
function Set(value) {
|
|
4344
|
+
// eslint-disable-next-line no-constructor-return
|
|
4328
4345
|
return value === undefined || value === null
|
|
4329
4346
|
? emptySet()
|
|
4330
4347
|
: isSet(value) && !isOrdered(value)
|
|
@@ -4572,6 +4589,7 @@
|
|
|
4572
4589
|
var Range = /*@__PURE__*/(function (IndexedSeq) {
|
|
4573
4590
|
function Range(start, end, step) {
|
|
4574
4591
|
if (!(this instanceof Range)) {
|
|
4592
|
+
// eslint-disable-next-line no-constructor-return
|
|
4575
4593
|
return new Range(start, end, step);
|
|
4576
4594
|
}
|
|
4577
4595
|
invariant(step !== 0, 'Cannot step a Range by 0');
|
|
@@ -4589,6 +4607,7 @@
|
|
|
4589
4607
|
this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1);
|
|
4590
4608
|
if (this.size === 0) {
|
|
4591
4609
|
if (EMPTY_RANGE) {
|
|
4610
|
+
// eslint-disable-next-line no-constructor-return
|
|
4592
4611
|
return EMPTY_RANGE;
|
|
4593
4612
|
}
|
|
4594
4613
|
EMPTY_RANGE = this;
|
|
@@ -5462,6 +5481,7 @@
|
|
|
5462
5481
|
|
|
5463
5482
|
var OrderedSet = /*@__PURE__*/(function (Set) {
|
|
5464
5483
|
function OrderedSet(value) {
|
|
5484
|
+
// eslint-disable-next-line no-constructor-return
|
|
5465
5485
|
return value === undefined || value === null
|
|
5466
5486
|
? emptyOrderedSet()
|
|
5467
5487
|
: isOrderedSet(value)
|
|
@@ -5605,6 +5625,7 @@
|
|
|
5605
5625
|
RecordType.displayName = name;
|
|
5606
5626
|
}
|
|
5607
5627
|
|
|
5628
|
+
// eslint-disable-next-line no-constructor-return
|
|
5608
5629
|
return RecordType;
|
|
5609
5630
|
};
|
|
5610
5631
|
|
|
@@ -5772,12 +5793,14 @@
|
|
|
5772
5793
|
var Repeat = /*@__PURE__*/(function (IndexedSeq) {
|
|
5773
5794
|
function Repeat(value, times) {
|
|
5774
5795
|
if (!(this instanceof Repeat)) {
|
|
5796
|
+
// eslint-disable-next-line no-constructor-return
|
|
5775
5797
|
return new Repeat(value, times);
|
|
5776
5798
|
}
|
|
5777
5799
|
this._value = value;
|
|
5778
5800
|
this.size = times === undefined ? Infinity : Math.max(0, times);
|
|
5779
5801
|
if (this.size === 0) {
|
|
5780
5802
|
if (EMPTY_REPEAT) {
|
|
5803
|
+
// eslint-disable-next-line no-constructor-return
|
|
5781
5804
|
return EMPTY_REPEAT;
|
|
5782
5805
|
}
|
|
5783
5806
|
EMPTY_REPEAT = this;
|
|
@@ -5856,7 +5879,7 @@
|
|
|
5856
5879
|
Repeat.prototype.equals = function equals (other) {
|
|
5857
5880
|
return other instanceof Repeat
|
|
5858
5881
|
? is(this._value, other._value)
|
|
5859
|
-
: deepEqual(other);
|
|
5882
|
+
: deepEqual(this, other);
|
|
5860
5883
|
};
|
|
5861
5884
|
|
|
5862
5885
|
return Repeat;
|
|
@@ -5905,7 +5928,7 @@
|
|
|
5905
5928
|
return isIndexed(v) ? v.toList() : isKeyed(v) ? v.toMap() : v.toSet();
|
|
5906
5929
|
}
|
|
5907
5930
|
|
|
5908
|
-
var version = "4.3.
|
|
5931
|
+
var version = "4.3.6";
|
|
5909
5932
|
|
|
5910
5933
|
var Immutable = {
|
|
5911
5934
|
version: version,
|
package/dist/immutable.min.js
CHANGED
|
@@ -51,5 +51,5 @@ return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){r
|
|
|
51
51
|
var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=y(t,t<0?this.count():this.size);var n=this.slice(0,t);return Vt(this,1===r?n:n.concat(Zt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){e=this.findLastEntry(t,e);return e?e[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Vt(this,Pt(this,t,!1))},get:function(r,t){return(r=h(this,r))<0||this.size===1/0||void 0!==this.size&&this.size<r?t:this.find(function(t,e){return e===r},void 0,t)},has:function(t){return 0<=(t=h(this,t))&&(void 0!==this.size?this.size===1/0||t<this.size:!!~this.indexOf(t))},interpose:function(t){return Vt(this,(u=t,(t=Xt(o=this)).size=o.size&&2*o.size-1,t.__iterateUncached=function(e,t){var r=this,n=0;return o.__iterate(function(t){return(!n||!1!==e(u,n++,r))&&!1!==e(t,n++,r)},t),n},t.__iteratorUncached=function(t,e){var r,n=o.__iterator(T,e),i=0;return new P(function(){return(!r||i%2)&&(r=n.next()).done?r:i%2?W(t,i++,u):W(t,i++,r.value,r)})},t));var o,u},interleave:function(){var t=[this].concat(Zt(arguments)),e=Jt(this.toSeq(),Z.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Vt(this,r)},keySeq:function(){return Hr(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Vt(this,Bt(this,t,e,!1))},zip:function(){var t=[this].concat(Zt(arguments));return Vt(this,Jt(this,on,t))},zipAll:function(){var t=[this].concat(Zt(arguments));return Vt(this,Jt(this,on,t,!0))},zipWith:function(t){var e=Zt(arguments);return Vt(e[0]=this,Jt(this,t,e))}});var Gr=E.prototype;Gr[S]=!0,Gr[k]=!0,Ur(j,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Zr=j.prototype;function $r(t,n,i,o,u,e){return te(t.size),t.__iterate(function(t,e,r){i=u?(u=!1,t):n.call(o,i,t,e,r)},e),i}function tn(t,e){return e}function en(t,e){return[e,t]}function rn(t){return function(){return!t.apply(this,arguments)}}function nn(t){return function(){return-t.apply(this,arguments)}}function on(){return Zt(
|
|
52
52
|
arguments)}function un(t,e){return t<e?1:e<t?-1:0}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}Zr.has=Xr.includes,Zr.contains=Zr.includes,Zr.keys=Zr.values,Ur(G,Fr),Ur(Z,Gr),Ur($,Zr);var an=function(t){function e(r){return null==r?_n():kr(r)?r:_n().withMutations(function(e){var t=j(r);te(t.size),t.forEach(function(t){return e.add(t)})})}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).of=function(){return this(arguments)},e.fromKeys=function(t){return this(O(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Kr);an.isOrderedSet=kr;var cn,fn=an.prototype;function hn(t,e){var r=Object.create(fn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function _n(){return cn=cn||hn(zr())}fn[k]=!0,fn.zip=Gr.zip,fn.zipWith=Gr.zipWith,fn.zipAll=Gr.zipAll,fn.__empty=_n,fn.__make=hn;Zr={LeftThenRight:-1,RightThenLeft:1};Gr=function(u,s){var a;!function(t){if(x(t))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(A(t))throw Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(u);var c=function(t){var n=this;if(t instanceof c)return t;if(!(this instanceof c))return new c(t);if(!a){a=!0;var e=Object.keys(u),r=f._indices={};f._name=s,f._keys=e,f._defaultValues=u;for(var i=0;i<e.length;i++){var o=e[i];r[o]=i,f[o]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+vn(this)+' with property "'+o+'" since that property name is part of the Record API.'):function(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){}}(f,o)}}return this.__ownerID=void 0,this._values=ur().withMutations(function(r){r.setSize(n._keys.length),O(t).forEach(
|
|
53
53
|
function(t,e){r.set(n._indices[e],t===n._defaultValues[e]?void 0:t)})}),this},f=c.prototype=Object.create(pn);return f.constructor=c,s&&(c.displayName=s),c};Gr.prototype.toString=function(){for(var t,e=vn(this)+" { ",r=this._keys,n=0,i=r.length;n!==i;n++)e+=(n?", ":"")+(t=r[n])+": "+oe(this.get(t));return e+" }"},Gr.prototype.equals=function(t){return this===t||x(t)&&yn(this).equals(yn(t))},Gr.prototype.hashCode=function(){return yn(this).hashCode()},Gr.prototype.has=function(t){return this._indices.hasOwnProperty(t)},Gr.prototype.get=function(t,e){if(!this.has(t))return e;e=this._values.get(this._indices[t]);return void 0===e?this._defaultValues[t]:e},Gr.prototype.set=function(t,e){if(this.has(t)){e=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(e!==this._values&&!this.__ownerID)return ln(this,e)}return this},Gr.prototype.remove=function(t){return this.set(t)},Gr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:ln(this,t)},Gr.prototype.wasAltered=function(){return this._values.wasAltered()},Gr.prototype.toSeq=function(){return yn(this)},Gr.prototype.toJS=function(){return Tr(this)},Gr.prototype.entries=function(){return this.__iterator(K)},Gr.prototype.__iterator=function(t,e){return yn(this).__iterator(t,e)},Gr.prototype.__iterate=function(t,e){return yn(this).__iterate(t,e)},Gr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?ln(this,e,t):(this.__ownerID=t,this._values=e,this)},Gr.isRecord=x,Gr.getDescriptiveName=vn;var pn=Gr.prototype;function ln(t,e,r){t=Object.create(Object.getPrototypeOf(t));return t._values=e,t.__ownerID=r,t}function vn(t){return t.constructor.displayName||t.constructor.name||"Record"}function yn(e){return ot(e._keys.map(function(t){return[t,e.get(t)]}))}pn[D]=!0,pn[e]=pn.remove,pn.deleteIn=pn.removeIn=ve,pn.getIn=Vr,pn.hasIn=Xr.hasIn,pn.merge=me,pn.mergeWith=we,pn.mergeIn=De,pn.mergeDeep=qe,pn.mergeDeepWith=Me,pn.mergeDeepIn=xe,
|
|
54
|
-
pn.setIn=pe,pn.update=de,pn.updateIn=ge,pn.withMutations=Ae,pn.asMutable=ke,pn.asImmutable=Re,pn[B]=pn.entries,pn.toJSON=pn.toObject=Xr.toObject,pn.inspect=pn.toSource=function(){return""+this};var dn,e=function(t){function n(t,e){if(!(this instanceof n))return new n(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(dn)return dn;dn=this}}return t&&(n.__proto__=t),((n.prototype=Object.create(t&&t.prototype)).constructor=n).prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},n.prototype.get=function(t,e){return this.has(t)?this._value:e},n.prototype.includes=function(t){return _t(this._value,t)},n.prototype.slice=function(t,e){var r=this.size;return p(t,e,r)?this:new n(this._value,w(e,r)-y(t,r))},n.prototype.reverse=function(){return this},n.prototype.indexOf=function(t){return _t(this._value,t)?0:-1},n.prototype.lastIndexOf=function(t){return _t(this._value,t)?this.size:-1},n.prototype.__iterate=function(t,e){for(var r=this.size,n=0;n!==r&&!1!==t(this._value,e?r-++n:n++,this););return n},n.prototype.__iterator=function(t,e){var r=this,n=this.size,i=0;return new P(function(){return i===n?N():W(t,e?n-++i:i++,r._value)})},n.prototype.equals=function(t){return t instanceof n?_t(this._value,t._value):Rr(t)},n}(Z);function gn(t,e){return function r(n,i,o,t,u,e){if("string"!=typeof o&&!A(o)&&(X(o)||H(o)||ne(o))){if(~n.indexOf(o))throw new TypeError("Cannot convert circular structure to Immutable");n.push(o),u&&""!==t&&u.push(t);var t=i.call(e,t,F(o).map(function(t,e){return r(n,i,t,e,u,o)}),u&&u.slice());return n.pop(),u&&u.pop(),t}return o}([],e||mn,t,"",e&&2<e.length?[]:void 0,{"":t})}function mn(t,e){return z(e)?e.toList():a(e)?e.toMap():e.toSet()}B={version:"4.3.
|
|
55
|
-
isPlainObject:ne,isSeq:M,isList:or,isMap:ct,isOrderedMap:ft,isStack:Or,isSet:Ar,isOrderedSet:kr,isRecord:x,get:se,getIn:Jr,has:ue,hasIn:Yr,merge:ze,mergeDeep:Ie,mergeWith:be,mergeDeepWith:Oe,remove:ce,removeIn:le,set:fe,setIn:_e,update:ye,updateIn:he},Xr=I;t.Collection=I,t.Iterable=Xr,t.List=ur,t.Map=Te,t.OrderedMap=wr,t.OrderedSet=an,t.PairSorting=Zr,t.Range=Hr,t.Record=Gr,t.Repeat=e,t.Seq=F,t.Set=Kr,t.Stack=Er,t.default=B,t.fromJS=gn,t.get=se,t.getIn=Jr,t.has=ue,t.hasIn=Yr,t.hash=yt,t.is=_t,t.isAssociative=b,t.isCollection=f,t.isImmutable=A,t.isIndexed=z,t.isKeyed=a,t.isList=or,t.isMap=ct,t.isOrdered=R,t.isOrderedMap=ft,t.isOrderedSet=kr,t.isPlainObject=ne,t.isRecord=x,t.isSeq=M,t.isSet=Ar,t.isStack=Or,t.isValueObject=ht,t.merge=ze,t.mergeDeep=Ie,t.mergeDeepWith=Oe,t.mergeWith=be,t.remove=ce,t.removeIn=le,t.set=fe,t.setIn=_e,t.update=ye,t.updateIn=he,t.version="4.3.
|
|
54
|
+
pn.setIn=pe,pn.update=de,pn.updateIn=ge,pn.withMutations=Ae,pn.asMutable=ke,pn.asImmutable=Re,pn[B]=pn.entries,pn.toJSON=pn.toObject=Xr.toObject,pn.inspect=pn.toSource=function(){return""+this};var dn,e=function(t){function n(t,e){if(!(this instanceof n))return new n(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(dn)return dn;dn=this}}return t&&(n.__proto__=t),((n.prototype=Object.create(t&&t.prototype)).constructor=n).prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},n.prototype.get=function(t,e){return this.has(t)?this._value:e},n.prototype.includes=function(t){return _t(this._value,t)},n.prototype.slice=function(t,e){var r=this.size;return p(t,e,r)?this:new n(this._value,w(e,r)-y(t,r))},n.prototype.reverse=function(){return this},n.prototype.indexOf=function(t){return _t(this._value,t)?0:-1},n.prototype.lastIndexOf=function(t){return _t(this._value,t)?this.size:-1},n.prototype.__iterate=function(t,e){for(var r=this.size,n=0;n!==r&&!1!==t(this._value,e?r-++n:n++,this););return n},n.prototype.__iterator=function(t,e){var r=this,n=this.size,i=0;return new P(function(){return i===n?N():W(t,e?n-++i:i++,r._value)})},n.prototype.equals=function(t){return t instanceof n?_t(this._value,t._value):Rr(this,t)},n}(Z);function gn(t,e){return function r(n,i,o,t,u,e){if("string"!=typeof o&&!A(o)&&(X(o)||H(o)||ne(o))){if(~n.indexOf(o))throw new TypeError("Cannot convert circular structure to Immutable");n.push(o),u&&""!==t&&u.push(t);var t=i.call(e,t,F(o).map(function(t,e){return r(n,i,t,e,u,o)}),u&&u.slice());return n.pop(),u&&u.pop(),t}return o}([],e||mn,t,"",e&&2<e.length?[]:void 0,{"":t})}function mn(t,e){return z(e)?e.toList():a(e)?e.toMap():e.toSet()}B={version:"4.3.6",Collection:I,Iterable:I,Seq:F,Map:Te,OrderedMap:wr,List:ur,Stack:Er,Set:Kr,OrderedSet:an,PairSorting:Zr,Record:Gr,Range:Hr,Repeat:e,is:_t,fromJS:gn,hash:yt,isImmutable:A,isCollection:f,isKeyed:a,isIndexed:z,isAssociative:b,isOrdered:R,isValueObject:ht,
|
|
55
|
+
isPlainObject:ne,isSeq:M,isList:or,isMap:ct,isOrderedMap:ft,isStack:Or,isSet:Ar,isOrderedSet:kr,isRecord:x,get:se,getIn:Jr,has:ue,hasIn:Yr,merge:ze,mergeDeep:Ie,mergeWith:be,mergeDeepWith:Oe,remove:ce,removeIn:le,set:fe,setIn:_e,update:ye,updateIn:he},Xr=I;t.Collection=I,t.Iterable=Xr,t.List=ur,t.Map=Te,t.OrderedMap=wr,t.OrderedSet=an,t.PairSorting=Zr,t.Range=Hr,t.Record=Gr,t.Repeat=e,t.Seq=F,t.Set=Kr,t.Stack=Er,t.default=B,t.fromJS=gn,t.get=se,t.getIn=Jr,t.has=ue,t.hasIn=Yr,t.hash=yt,t.is=_t,t.isAssociative=b,t.isCollection=f,t.isImmutable=A,t.isIndexed=z,t.isKeyed=a,t.isList=or,t.isMap=ct,t.isOrdered=R,t.isOrderedMap=ft,t.isOrderedSet=kr,t.isPlainObject=ne,t.isRecord=x,t.isSeq=M,t.isSet=Ar,t.isStack=Or,t.isValueObject=ht,t.merge=ze,t.mergeDeep=Ie,t.mergeDeepWith=Oe,t.mergeWith=be,t.remove=ce,t.removeIn=le,t.set=fe,t.setIn=_e,t.update=ye,t.updateIn=he,t.version="4.3.6",Object.defineProperty(t,"__esModule",{value:!0})});
|