immutable 4.3.5 → 4.3.7

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.
@@ -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();
@@ -1429,16 +1437,16 @@ function sliceFactory(collection, begin, end, useKeys) {
1429
1437
  return collection;
1430
1438
  }
1431
1439
 
1432
- var resolvedBegin = resolveBegin(begin, originalSize);
1433
- var resolvedEnd = resolveEnd(end, originalSize);
1434
-
1435
- // begin or end will be NaN if they were provided as negative numbers and
1440
+ // begin or end can not be resolved if they were provided as negative numbers and
1436
1441
  // this collection's size is unknown. In that case, cache first so there is
1437
1442
  // a known size and these do not resolve to NaN.
1438
- if (resolvedBegin !== resolvedBegin || resolvedEnd !== resolvedEnd) {
1443
+ if (typeof originalSize === 'undefined' && (begin < 0 || end < 0)) {
1439
1444
  return sliceFactory(collection.toSeq().cacheResult(), begin, end, useKeys);
1440
1445
  }
1441
1446
 
1447
+ var resolvedBegin = resolveBegin(begin, originalSize);
1448
+ var resolvedEnd = resolveEnd(end, originalSize);
1449
+
1442
1450
  // Note: resolvedEnd is undefined when the original sequence's length is
1443
1451
  // unknown and this slice did not supply an end and should contain all
1444
1452
  // elements after resolvedBegin.
@@ -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.5";
5925
+ var version = "4.3.7";
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();
@@ -1435,16 +1443,16 @@
1435
1443
  return collection;
1436
1444
  }
1437
1445
 
1438
- var resolvedBegin = resolveBegin(begin, originalSize);
1439
- var resolvedEnd = resolveEnd(end, originalSize);
1440
-
1441
- // begin or end will be NaN if they were provided as negative numbers and
1446
+ // begin or end can not be resolved if they were provided as negative numbers and
1442
1447
  // this collection's size is unknown. In that case, cache first so there is
1443
1448
  // a known size and these do not resolve to NaN.
1444
- if (resolvedBegin !== resolvedBegin || resolvedEnd !== resolvedEnd) {
1449
+ if (typeof originalSize === 'undefined' && (begin < 0 || end < 0)) {
1445
1450
  return sliceFactory(collection.toSeq().cacheResult(), begin, end, useKeys);
1446
1451
  }
1447
1452
 
1453
+ var resolvedBegin = resolveBegin(begin, originalSize);
1454
+ var resolvedEnd = resolveEnd(end, originalSize);
1455
+
1448
1456
  // Note: resolvedEnd is undefined when the original sequence's length is
1449
1457
  // unknown and this slice did not supply an end and should contain all
1450
1458
  // elements after resolvedBegin.
@@ -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.5";
5931
+ var version = "4.3.7";
5909
5932
 
5910
5933
  var Immutable = {
5911
5934
  version: version,
@@ -28,7 +28,7 @@ if(e)return this.cacheResult().__iterate(t,e);var r,n=V(this._collection),i=0;if
28
28
  var e;if(bt&&void 0!==(e=zt.get(t)))return e;if(void 0!==(e=t[Et]))return e;if(!wt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Et]))return e;if(void 0!==(e=function(t){if(t&&0<t.nodeType)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=St(),bt)zt.set(t,e);else{if(void 0!==mt&&!1===mt(t))throw Error("Non-extensible objects are not allowed as keys.");if(wt)Object.defineProperty(t,Et,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Et]=e;else{if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[Et]=e}}return e}(r);case"symbol":return void 0===(e=It[t=r])?(e=St(),It[t]=e):e;default:if("function"==typeof r.toString)return gt(""+r);throw Error("Value type "+typeof r+" cannot be hashed.")}}function dt(t){return null===t?1108378658:1108378659}function gt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return lt(e)}var mt=Object.isExtensible,wt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function St(){var t=++Ot;return 1073741824&Ot&&(Ot=0),t}var zt,bt="function"==typeof WeakMap;bt&&(zt=new WeakMap);var It=Object.create(null),Ot=0,Et="__immutablehash__";"function"==typeof Symbol&&(Et=Symbol(Et));var jt=16,qt=255,Mt=0,Dt={},xt=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=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=Kt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},
29
29
  e.prototype.map=function(t,e){var r=this,n=Tt(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(r,t){var n=this;return this._iter.__iterate(function(t,e){return r(t,e,n)},t)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(G);xt.prototype[k]=!0;var At=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(e,r){var n=this,i=0;return r&&c(this),this._iter.__iterate(function(t){return e(t,r?n.size-++i:i++,n)},r)},e.prototype.__iterator=function(e,r){var n=this,i=this._iter.__iterator(T,r),o=0;return r&&c(this),new P(function(){var t=i.next();return t.done?t:W(e,r?n.size-++o:o++,t.value,t)})},e}(Z),kt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){return e(t,t,r)},t)},e.prototype.__iterator=function(e,t){var r=this._iter.__iterator(T,t);return new P(function(){var t=r.next();return t.done?t:W(e,t.value,t.value,t)})},e}($),Rt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(r,t){var n=this;return this._iter.__iterate(function(t){if(t){Yt(t);var e=f(t);return r(e?t.get(1):t[1],e?t.get(0):t[0],n)}},t)},e.prototype.__iterator=function(n,t){var i=this._iter.__iterator(T,t);return new P(function(){for(;;){var t=i.next();if(t.done)return t;var e=t.value;if(e){Yt(e);var r=f(e);return W(n,r?e.get(0):e[0],r?e.get(1):e[1],t)}}})},e}(G);function Ut(i){var t=Xt(i);return t._iter=i,t.size=i.size,t.flip=function(){return i},t.reverse=function(){
30
30
  var t=i.reverse.apply(this);return t.flip=function(){return i.reverse()},t},t.has=function(t){return i.includes(t)},t.includes=function(t){return i.has(t)},t.cacheResult=Ft,t.__iterateUncached=function(r,t){var n=this;return i.__iterate(function(t,e){return!1!==r(e,t,n)},t)},t.__iteratorUncached=function(t,e){if(t!==K)return i.__iterator(t===T?U:T,e);var r=i.__iterator(t,e);return new P(function(){var t,e=r.next();return e.done||(t=e.value[0],e.value[0]=e.value[1],e.value[1]=t),e})},t}function Tt(o,u,s){var t=Xt(o);return t.size=o.size,t.has=function(t){return o.has(t)},t.get=function(t,e){var r=o.get(t,v);return r===v?e:u.call(s,r,t,o)},t.__iterateUncached=function(n,t){var i=this;return o.__iterate(function(t,e,r){return!1!==n(u.call(s,t,e,r),e,i)},t)},t.__iteratorUncached=function(n,t){var i=o.__iterator(K,t);return new P(function(){var t=i.next();if(t.done)return t;var e=t.value,r=e[0];return W(n,r,u.call(s,e[1],r,o),t)})},t}function Kt(u,s){var a=this,t=Xt(u);return t._iter=u,t.size=u.size,t.reverse=function(){return u},u.flip&&(t.flip=function(){var t=Ut(u);return t.reverse=function(){return u.flip()},t}),t.get=function(t,e){return u.get(s?t:-1-t,e)},t.has=function(t){return u.has(s?t:-1-t)},t.includes=function(t){return u.includes(t)},t.cacheResult=Ft,t.__iterate=function(r,n){var i=this,o=0;return n&&c(u),u.__iterate(function(t,e){return r(t,s?e:n?i.size-++o:o++,i)},!n)},t.__iterator=function(r,n){var i=0;n&&c(u);var o=u.__iterator(K,!n);return new P(function(){var t=o.next();if(t.done)return t;var e=t.value;return W(r,s?e[0]:n?a.size-++i:i++,e[1],t)})},t}function Lt(u,s,a,c){var t=Xt(u);return c&&(t.has=function(t){var e=u.get(t,v);return e!==v&&!!s.call(a,e,t,u)},t.get=function(t,e){var r=u.get(t,v);return r!==v&&s.call(a,r,t,u)?r:e}),t.__iterateUncached=function(n,t){var i=this,o=0;return u.__iterate(function(t,e,r){if(s.call(a,t,e,r))return o++,n(t,c?e:o-1,i)},t),o},t.__iteratorUncached=function(n,t){var i=u.__iterator(K,t),o=0;return new P(function(){for(;;){var t=i.next();if(t.done)return t
31
- ;var e=t.value,r=e[0],e=e[1];if(s.call(a,e,r,u))return W(n,c?r:o++,e,t)}})},t}function Ct(s,t,e,a){var r=s.size;if(p(t,e,r))return s;var c=y(t,r),r=w(e,r);if(c!=c||r!=r)return Ct(s.toSeq().cacheResult(),t,e,a);var f,r=r-c;r==r&&(f=r<0?0:r);r=Xt(s);return r.size=0===f?f:s.size&&f||void 0,!a&&M(s)&&0<=f&&(r.get=function(t,e){return 0<=(t=h(this,t))&&t<f?s.get(t+c,e):e}),r.__iterateUncached=function(r,t){var n=this;if(0===f)return 0;if(t)return this.cacheResult().__iterate(r,t);var i=0,o=!0,u=0;return s.__iterate(function(t,e){if(!(o=o&&i++<c))return u++,!1!==r(t,a?e:u-1,n)&&u!==f}),u},r.__iteratorUncached=function(e,t){if(0!==f&&t)return this.cacheResult().__iterator(e,t);if(0===f)return new P(N);var r=s.__iterator(e,t),n=0,i=0;return new P(function(){for(;n++<c;)r.next();if(++i>f)return N();var t=r.next();return a||e===T||t.done?t:W(e,i-1,e===U?void 0:t.value[1],t)})},r}function Bt(e,c,f,h){var t=Xt(e);return t.__iterateUncached=function(n,t){var i=this;if(t)return this.cacheResult().__iterate(n,t);var o=!0,u=0;return e.__iterate(function(t,e,r){if(!(o=o&&c.call(f,t,e,r)))return u++,n(t,h?e:u-1,i)}),u},t.__iteratorUncached=function(i,t){var o=this;if(t)return this.cacheResult().__iterator(i,t);var u=e.__iterator(K,t),s=!0,a=0;return new P(function(){var t;do{if((t=u.next()).done)return h||i===T?t:W(i,a++,i===U?void 0:t.value[1],t);var e=t.value,r=e[0],n=e[1];s=s&&c.call(f,n,r,o)}while(s);return i===K?t:W(i,r,n,t)})},t}function Pt(t,s,a){var c=Xt(t);return c.__iterateUncached=function(i,e){if(e)return this.cacheResult().__iterate(i,e);var o=0,u=!1;return function r(t,n){t.__iterate(function(t,e){return(!s||n<s)&&f(t)?r(t,n+1):(o++,!1===i(t,a?e:o-1,c)&&(u=!0)),!u},e)}(t,0),o},c.__iteratorUncached=function(r,n){if(n)return this.cacheResult().__iterator(r,n);var i=t.__iterator(r,n),o=[],u=0;return new P(function(){for(;i;){var t=i.next();if(!1===t.done){var e=t.value;if(r===K&&(e=e[1]),s&&!(o.length<s)||!f(e))return a?t:W(r,u++,e,t);o.push(i),i=e.__iterator(r,n)}else i=o.pop()}return N()})},c}function Wt(r,n,i){
31
+ ;var e=t.value,r=e[0],e=e[1];if(s.call(a,e,r,u))return W(n,c?r:o++,e,t)}})},t}function Ct(s,t,e,a){var r=s.size;if(p(t,e,r))return s;if(void 0===r&&(t<0||e<0))return Ct(s.toSeq().cacheResult(),t,e,a);var c,f=y(t,r),r=w(e,r)-f;r==r&&(c=r<0?0:r);r=Xt(s);return r.size=0===c?c:s.size&&c||void 0,!a&&M(s)&&0<=c&&(r.get=function(t,e){return 0<=(t=h(this,t))&&t<c?s.get(t+f,e):e}),r.__iterateUncached=function(r,t){var n=this;if(0===c)return 0;if(t)return this.cacheResult().__iterate(r,t);var i=0,o=!0,u=0;return s.__iterate(function(t,e){if(!(o=o&&i++<f))return u++,!1!==r(t,a?e:u-1,n)&&u!==c}),u},r.__iteratorUncached=function(e,t){if(0!==c&&t)return this.cacheResult().__iterator(e,t);if(0===c)return new P(N);var r=s.__iterator(e,t),n=0,i=0;return new P(function(){for(;n++<f;)r.next();if(++i>c)return N();var t=r.next();return a||e===T||t.done?t:W(e,i-1,e===U?void 0:t.value[1],t)})},r}function Bt(e,c,f,h){var t=Xt(e);return t.__iterateUncached=function(n,t){var i=this;if(t)return this.cacheResult().__iterate(n,t);var o=!0,u=0;return e.__iterate(function(t,e,r){if(!(o=o&&c.call(f,t,e,r)))return u++,n(t,h?e:u-1,i)}),u},t.__iteratorUncached=function(i,t){var o=this;if(t)return this.cacheResult().__iterator(i,t);var u=e.__iterator(K,t),s=!0,a=0;return new P(function(){var t;do{if((t=u.next()).done)return h||i===T?t:W(i,a++,i===U?void 0:t.value[1],t);var e=t.value,r=e[0],n=e[1];s=s&&c.call(f,n,r,o)}while(s);return i===K?t:W(i,r,n,t)})},t}function Pt(t,s,a){var c=Xt(t);return c.__iterateUncached=function(i,e){if(e)return this.cacheResult().__iterate(i,e);var o=0,u=!1;return function r(t,n){t.__iterate(function(t,e){return(!s||n<s)&&f(t)?r(t,n+1):(o++,!1===i(t,a?e:o-1,c)&&(u=!0)),!u},e)}(t,0),o},c.__iteratorUncached=function(r,n){if(n)return this.cacheResult().__iterator(r,n);var i=t.__iterator(r,n),o=[],u=0;return new P(function(){for(;i;){var t=i.next();if(!1===t.done){var e=t.value;if(r===K&&(e=e[1]),s&&!(o.length<s)||!f(e))return a?t:W(r,u++,e,t);o.push(i),i=e.__iterator(r,n)}else i=o.pop()}return N()})},c}function Wt(r,n,i){
32
32
  n=n||Gt;var t=a(r),o=0,u=r.toSeq().map(function(t,e){return[e,t,o++,i?i(t,e,r):t]}).valueSeq().toArray();return u.sort(function(t,e){return n(t[3],e[3])||t[2]-e[2]}).forEach(t?function(t,e){u[e].length=2}:function(t,e){u[e]=t[1]}),(t?G:z(r)?Z:$)(u)}function Nt(r,n,i){if(n=n||Gt,i){var t=r.toSeq().map(function(t,e){return[t,i(t,e,r)]}).reduce(function(t,e){return Ht(n,t[1],e[1])?e:t});return t&&t[0]}return r.reduce(function(t,e){return Ht(n,t,e)?e:t})}function Ht(t,e,r){t=t(r,e);return 0===t&&r!==e&&(null==r||r!=r)||0<t}function Jt(t,u,s,a){var e=Xt(t),t=new tt(s).map(function(t){return t.size});return e.size=a?t.max():t.min(),e.__iterate=function(t,e){for(var r,n=this.__iterator(T,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},e.__iteratorUncached=function(e,r){var n=s.map(function(t){return t=I(t),V(r?t.reverse():t)}),i=0,o=!1;return new P(function(){var t;return o||(t=n.map(function(t){return t.next()}),o=a?t.every(function(t){return t.done}):t.some(function(t){return t.done})),o?N():W(e,i++,u.apply(null,t.map(function(t){return t.value})))})},e}function Vt(t,e){return t===e?t:M(t)?e:t.constructor(e)}function Yt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Qt(t){return a(t)?O:z(t)?E:j}function Xt(t){return Object.create((a(t)?G:z(t)?Z:$).prototype)}function Ft(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):F.prototype.cacheResult.call(this)}function Gt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:e<t?1:t<e?-1:0}function Zt(t,e){for(var r=Math.max(0,t.length-(e=e||0)),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 te(t){$t(t!==1/0,"Cannot perform this action with an infinite size.")}function ee(t){if(X(t)&&"string"!=typeof t)return t;if(R(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}At.prototype.cacheResult=xt.prototype.cacheResult=kt.prototype.cacheResult=Rt.prototype.cacheResult=Ft
33
33
  ;var re=Object.prototype.toString;function ne(t){if(!t||"object"!=typeof t||"[object Object]"!==re.call(t))return!1;t=Object.getPrototypeOf(t);if(null===t)return!0;for(var e=t,r=Object.getPrototypeOf(t);null!==r;)r=Object.getPrototypeOf(e=r);return e===t}function ie(t){return"object"==typeof t&&(A(t)||Array.isArray(t)||ne(t))}function oe(e){try{return"string"==typeof e?JSON.stringify(e):e+""}catch(t){return JSON.stringify(e)}}function ue(t,e){return A(t)?t.has(e):ie(t)&&Q.call(t,e)}function se(t,e,r){return A(t)?t.get(e,r):ue(t,e)?"function"==typeof t.get?t.get(e):t[e]:r}function ae(t){if(Array.isArray(t))return Zt(t);var e,r={};for(e in t)Q.call(t,e)&&(r[e]=t[e]);return r}function ce(t,e){if(!ie(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(A(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!Q.call(t,e))return t;t=ae(t);return Array.isArray(t)?t.splice(e,1):delete t[e],t}function fe(t,e,r){if(!ie(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(A(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(Q.call(t,e)&&r===t[e])return t;t=ae(t);return t[e]=r,t}function he(t,e,r,n){n||(n=r,r=void 0);n=function t(e,r,n,i,o,u){var s=r===v;if(i===n.length){var a=s?o:r,c=u(a);return c===a?r:c}if(!s&&!ie(r))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,i).map(oe)+"]: "+r);var a=n[i];var c=s?v:se(r,a,v);var u=t(c===v?e:A(c),c,n,i+1,o,u);return u===c?r:u===v?ce(r,a):fe(s?e?Qe():{}:r,a,u)}(A(t),t,ee(e),0,r,n);return n===v?r:n}function _e(t,e,r){return he(t,e,v,function(){return r})}function pe(t,e){return _e(this,t,e)}function le(t,e){return he(t,e,function(){return v})}function ve(t){return le(this,t)}function ye(t,e,r,n){return he(t,[e],r,n)}function de(t,e,r){return 1===arguments.length?t(this):ye(this,t,e,r)}function ge(t,e,r){return he(this,t,e,r)}function me(){for(var t=[],e=arguments.length;e--;
34
34
  )t[e]=arguments[e];return Se(this,t)}function we(t){for(var e=[],r=arguments.length-1;0<r--;)e[r]=arguments[r+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return Se(this,e,t)}function Se(t,e,i){for(var r=[],n=0;n<e.length;n++){var o=O(e[n]);0!==o.size&&r.push(o)}return 0===r.length?t:0!==t.toSeq().size||t.__ownerID||1!==r.length?t.withMutations(function(n){for(var t=i?function(e,r){ye(n,r,v,function(t){return t===v?e:i(t,e,r)})}:function(t,e){n.set(e,t)},e=0;e<r.length;e++)r[e].forEach(t)}):t.constructor(r[0])}function ze(t){for(var e=[],r=arguments.length-1;0<r--;)e[r]=arguments[r+1];return je(t,e)}function be(t,e){for(var r=[],n=arguments.length-2;0<n--;)r[n]=arguments[n+2];return je(e,r,t)}function Ie(t){for(var e=[],r=arguments.length-1;0<r--;)e[r]=arguments[r+1];return Ee(t,e)}function Oe(t,e){for(var r=[],n=arguments.length-2;0<n--;)r[n]=arguments[n+2];return Ee(e,r,t)}function Ee(t,e,r){return je(t,e,(i=r,function t(e,r,n){return ie(e)&&ie(r)&&function(t,e){return t=F(t),e=F(e),z(t)===z(e)&&a(t)===a(e)}(e,r)?je(e,[r],t):i?i(e,r,n):r}));var i}function je(n,t,i){if(!ie(n))throw new TypeError("Cannot merge into non-data-structure value: "+n);if(A(n))return"function"==typeof i&&n.mergeWith?n.mergeWith.apply(n,[i].concat(t)):(n.merge?n.merge:n.concat).apply(n,t);for(var e=Array.isArray(n),o=n,r=e?E:O,u=e?function(t){o===n&&(o=ae(o)),o.push(t)}:function(t,e){var r=Q.call(o,e),t=r&&i?i(o[e],t,e):t;r&&t===o[e]||(o===n&&(o=ae(o)),o[e]=t)},s=0;s<t.length;s++)r(t[s]).forEach(u);return o}function qe(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ee(this,t)}function Me(t){for(var e=[],r=arguments.length-1;0<r--;)e[r]=arguments[r+1];return Ee(this,e,t)}function De(t){for(var e=[],r=arguments.length-1;0<r--;)e[r]=arguments[r+1];return he(this,t,Qe(),function(t){return je(t,e)})}function xe(t){for(var e=[],r=arguments.length-1;0<r--;)e[r]=arguments[r+1];return he(this,t,Qe(),function(t){return Ee(t,e)})}function Ae(t){var e=this.asMutable();return t(e),e.wasAltered(
@@ -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.5",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.5",Object.defineProperty(t,"__esModule",{value:!0})});
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.7",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.7",Object.defineProperty(t,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "immutable",
3
- "version": "4.3.5",
3
+ "version": "4.3.7",
4
4
  "description": "Immutable Data Collections",
5
5
  "license": "MIT",
6
6
  "homepage": "https://immutable-js.com",