immutable 4.3.3 → 5.0.0-beta.1

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.
Files changed (82) hide show
  1. package/README.md +3 -3
  2. package/dist/es/Collection.js +74 -0
  3. package/dist/es/CollectionImpl.js +781 -0
  4. package/dist/es/Hash.js +259 -0
  5. package/dist/es/Immutable.js +73 -0
  6. package/dist/es/Iterator.js +105 -0
  7. package/dist/es/List.js +691 -0
  8. package/dist/es/Map.js +832 -0
  9. package/dist/es/Math.js +44 -0
  10. package/dist/es/Operations.js +952 -0
  11. package/dist/es/OrderedMap.js +194 -0
  12. package/dist/es/OrderedSet.js +90 -0
  13. package/dist/es/PairSorting.js +29 -0
  14. package/dist/es/Range.js +167 -0
  15. package/dist/es/Record.js +290 -0
  16. package/dist/es/Repeat.js +129 -0
  17. package/dist/es/Seq.js +396 -0
  18. package/dist/es/Set.js +277 -0
  19. package/dist/es/Stack.js +259 -0
  20. package/dist/es/TrieUtils.js +115 -0
  21. package/dist/es/fromJS.js +73 -0
  22. package/dist/es/functional/get.js +37 -0
  23. package/dist/es/functional/getIn.js +40 -0
  24. package/dist/es/functional/has.js +34 -0
  25. package/dist/es/functional/hasIn.js +31 -0
  26. package/dist/es/functional/merge.js +136 -0
  27. package/dist/es/functional/remove.js +55 -0
  28. package/dist/es/functional/removeIn.js +31 -0
  29. package/dist/es/functional/set.js +51 -0
  30. package/dist/es/functional/setIn.js +31 -0
  31. package/dist/es/functional/update.js +30 -0
  32. package/dist/es/functional/updateIn.js +93 -0
  33. package/dist/es/is.js +107 -0
  34. package/dist/es/methods/asImmutable.js +28 -0
  35. package/dist/es/methods/asMutable.js +30 -0
  36. package/dist/es/methods/deleteIn.js +30 -0
  37. package/dist/es/methods/getIn.js +30 -0
  38. package/dist/es/methods/hasIn.js +30 -0
  39. package/dist/es/methods/merge.js +78 -0
  40. package/dist/es/methods/mergeDeep.js +40 -0
  41. package/dist/es/methods/mergeDeepIn.js +36 -0
  42. package/dist/es/methods/mergeIn.js +35 -0
  43. package/dist/es/methods/setIn.js +30 -0
  44. package/dist/es/methods/toObject.js +35 -0
  45. package/dist/es/methods/update.js +32 -0
  46. package/dist/es/methods/updateIn.js +30 -0
  47. package/dist/es/methods/wasAltered.js +28 -0
  48. package/dist/es/methods/withMutations.js +30 -0
  49. package/dist/es/package.json.js +26 -0
  50. package/dist/es/predicates/isAssociative.js +31 -0
  51. package/dist/es/predicates/isCollection.js +30 -0
  52. package/dist/es/predicates/isImmutable.js +31 -0
  53. package/dist/es/predicates/isIndexed.js +30 -0
  54. package/dist/es/predicates/isKeyed.js +30 -0
  55. package/dist/es/predicates/isList.js +30 -0
  56. package/dist/es/predicates/isMap.js +30 -0
  57. package/dist/es/predicates/isOrdered.js +30 -0
  58. package/dist/es/predicates/isOrderedMap.js +31 -0
  59. package/dist/es/predicates/isOrderedSet.js +31 -0
  60. package/dist/es/predicates/isRecord.js +30 -0
  61. package/dist/es/predicates/isSeq.js +30 -0
  62. package/dist/es/predicates/isSet.js +30 -0
  63. package/dist/es/predicates/isStack.js +30 -0
  64. package/dist/es/predicates/isValueObject.js +32 -0
  65. package/dist/es/toJS.js +53 -0
  66. package/dist/es/utils/arrCopy.js +34 -0
  67. package/dist/es/utils/assertNotInfinite.js +33 -0
  68. package/dist/es/utils/coerceKeyPath.js +39 -0
  69. package/dist/es/utils/deepEqual.js +98 -0
  70. package/dist/es/utils/hasOwnProperty.js +26 -0
  71. package/dist/es/utils/invariant.js +28 -0
  72. package/dist/es/utils/isArrayLike.js +43 -0
  73. package/dist/es/utils/isDataStructure.js +38 -0
  74. package/dist/es/utils/isPlainObj.js +51 -0
  75. package/dist/es/utils/mixin.js +34 -0
  76. package/dist/es/utils/quoteString.js +32 -0
  77. package/dist/es/utils/shallowCopy.js +40 -0
  78. package/dist/immutable.d.ts +131 -14
  79. package/dist/immutable.js +1 -59
  80. package/dist/immutable.min.js +32 -32
  81. package/package.json +5 -3
  82. package/dist/immutable.es.js +0 -5965
@@ -21,35 +21,35 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Immutable={})}(this,function(t){"use strict";var e="delete",d=5,l=1<<d,g=l-1,v={};function u(){return{value:!1}}function _(t){t&&(t.value=!0)}function m(){}function c(t){return void 0===t.size&&(t.size=t.__iterate(r)),t.size}function h(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295==r)return NaN;e=r}return e<0?c(t)+e:e}function r(){return!0}function p(t,e,r){return(0===t&&!i(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&r<=e)}function y(t,e){return n(t,e,0)}function w(t,e){return n(t,e,e)}function n(t,e,r){return void 0===t?r:i(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function i(t){return t<0||0===t&&1/t==-1/0}var o="@@__IMMUTABLE_ITERABLE__@@";function f(t){return!(!t||!t[o])}var s="@@__IMMUTABLE_KEYED__@@";function a(t){return!(!t||!t[s])}var S="@@__IMMUTABLE_INDEXED__@@";function z(t){return!(!t||!t[S])}function b(t){return a(t)||z(t)}function I(t){return f(t)?t:F(t)}var O=function(t){function e(t){return a(t)?t:G(t)}return e.__proto__=t,(e.prototype=Object.create(t.prototype)).constructor=e}(I),E=function(t){function e(t){return z(t)?t:Z(t)}return e.__proto__=t,(e.prototype=Object.create(t.prototype)).constructor=e}(I),j=function(t){function e(t){return f(t)&&!b(t)?t:$(t)}return e.__proto__=t,(e.prototype=Object.create(t.prototype)).constructor=e}(I);I.Keyed=O,I.Indexed=E,I.Set=j;var q="@@__IMMUTABLE_SEQ__@@";function M(t){return!(!t||!t[q])}var D="@@__IMMUTABLE_RECORD__@@";function x(t){return!(!t||!t[D])}function A(t){return f(t)||x(t)}var k="@@__IMMUTABLE_ORDERED__@@";function R(t){return!(!t||!t[k])}var U=0,T=1,K=2,L="function"==typeof Symbol&&Symbol.iterator,C="@@iterator",B=L||C,P=function(t){this.next=t};function W(t,e,r,n){r=0===t?e:1===t?r:[e,r];return n?n.value=r:n={value:r,done:!1},n}function N(){return{value:void 0,done:!0}}function H(t){return Array.isArray(t
25
- )||Y(t)}function J(t){return t&&"function"==typeof t.next}function V(t){var e=Y(t);return e&&e.call(t)}function Y(t){t=t&&(L&&t[L]||t[C]);if("function"==typeof t)return t}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=U,P.VALUES=T,P.ENTRIES=K,P.prototype.inspect=P.prototype.toSource=function(){return""+this},P.prototype[B]=function(){return this};var Q=Object.prototype.hasOwnProperty;function X(t){return Array.isArray(t)||"string"==typeof t||t&&"object"==typeof t&&Number.isInteger(t.length)&&0<=t.length&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var F=function(t){function e(t){return null==t?it():A(t)?t.toSeq():function(t){var e=st(t);if(e)return function(t){var e=Y(t);return e&&e===t.entries}(t)?e.fromEntrySeq():function(t){var e=Y(t);return e&&e===t.keys}(t)?e.toSetSeq():e;if("object"!=typeof t)throw new TypeError("Expected Array or collection object of values, or keyed object: "+t);return new et(t)}(t)}return e.__proto__=t,((e.prototype=Object.create(t.prototype)).constructor=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(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(e,r){var n=this._cache;if(n){var i=n.length,o=0;return new P(function(){if(o===i)return N();var t=n[r?i-++o:o++];return W(e,t[0],t[1])})}return this.__iteratorUncached(e,r)},e}(I),G=function(t){function e(t){return null==t?it().toKeyedSeq():f(t)?a(t)?t.toSeq():t.fromEntrySeq():x(t)?t.toSeq():ot(t)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.toKeyedSeq=function(){return this},e}(F),Z=function(t){function e(t){return null==t?it():f(t)?a(t)?t.entrySeq():t.toIndexedSeq():x(t
26
- )?t.toSeq().entrySeq():ut(t)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(F),$=function(t){function e(t){return(f(t)&&!b(t)?t:Z(t)).toSetSeq()}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(F);F.isSeq=M,F.Keyed=G,F.Set=$,F.Indexed=Z,F.prototype[q]=!0;var tt=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.get=function(t,e){return this.has(t)?this._array[h(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(!1===t(r[o],o,this))break}return i},e.prototype.__iterator=function(e,r){var n=this._array,i=n.length,o=0;return new P(function(){if(o===i)return N();var t=r?i-++o:o++;return W(e,t,n[t])})},e}(Z),et=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return Q.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(!1===t(r[u],u,this))break}return o},e.prototype.__iterator=function(e,r){var n=this._object,i=this._keys,o=i.length,u=0;return new P(function(){if(u===o)return N();var t=i[r?o-++u:u++];return W(e,t,n[t])})},e}(G);et.prototype[k]=!0;var rt,nt=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)).constructor=e).prototype.__iterateUncached=function(t,e){
27
- if(e)return this.cacheResult().__iterate(t,e);var r,n=V(this._collection),i=0;if(J(n))for(;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},e.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=V(this._collection);if(!J(r))return new P(N);var n=0;return new P(function(){var t=r.next();return t.done?t:W(e,n++,t.value)})},e}(Z);function it(){return rt=rt||new tt([])}function ot(t){var e=st(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new et(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function ut(t){var e=st(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function st(t){return X(t)?new tt(t):H(t)?new nt(t):void 0}var at="@@__IMMUTABLE_MAP__@@";function ct(t){return!(!t||!t[at])}function ft(t){return ct(t)&&R(t)}function ht(t){return!(!t||"function"!=typeof t.equals||"function"!=typeof t.hashCode)}function _t(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(ht(t)&&ht(e)&&t.equals(e))}var pt="function"==typeof Math.imul&&-2==Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function lt(t){return t>>>1&1073741824|3221225471&t}var vt=Object.prototype.valueOf;function yt(t){if(null==t)return dt(t);if("function"==typeof t.hashCode)return lt(t.hashCode(t));var e,r=(e=t).valueOf!==vt&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==r)return dt(r);switch(typeof r){case"boolean":return r?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;e!==t&&(e^=4294967295*t);for(;4294967295<t;)e^=t/=4294967295;return lt(e)}(r);case"string":return(jt<r.length?function(t){var e=Dt[t];void 0===e&&(e=gt(t),Mt===qt&&(Mt=0,Dt={}),Mt++,Dt[t]=e);return e}:gt)(r);case"object":case"function":return function(t){
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
- 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
- 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){
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
- ;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
- )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(
35
- )?e.__ensureOwner(this.__ownerID):this}function ke(){return this.__ownerID?this:this.__ensureOwner(new m)}function Re(){return this.__ensureOwner()}function Ue(){return this.__altered}var Te=function(n){function t(e){return null==e?Qe():ct(e)&&!R(e)?e:Qe().withMutations(function(r){var t=n(e);te(t.size),t.forEach(function(t,e){return r.set(e,t)})})}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).of=function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return Qe().withMutations(function(t){for(var e=0;e<r.length;e+=2){if(r.length<=e+1)throw Error("Missing value for key: "+r[e]);t.set(r[e],r[e+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},t.prototype.set=function(t,e){return Xe(this,t,e)},t.prototype.remove=function(t){return Xe(this,t,v)},t.prototype.deleteAll=function(t){var r=I(t);return 0===r.size?this:this.withMutations(function(e){r.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Qe()},t.prototype.sort=function(t){return wr(Wt(this,t))},t.prototype.sortBy=function(t,e){return wr(Wt(this,e,t))},t.prototype.map=function(n,i){var o=this;return this.withMutations(function(r){r.forEach(function(t,e){r.set(e,n.call(i,t,e,o))})})},t.prototype.__iterator=function(t,e){return new He(this,t,e)},t.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate(function(t){return n++,e(t[1],t[0],r)},t),n},t.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ye(this.size,this._root,t,this.__hash):0===this.size?Qe():(this.__ownerID=t,this.__altered=!1,this)},t}(O);Te.isMap=ct;var Ke=Te.prototype;Ke[at]=!0,Ke[e]=Ke.remove,Ke.removeAll=Ke.deleteAll,Ke.setIn=pe,Ke.removeIn=Ke.deleteIn=ve,Ke.update=de,Ke.updateIn=ge,Ke.merge=Ke.concat=me,Ke.mergeWith=we,Ke.mergeDeep=qe,Ke.mergeDeepWith=Me,
36
- Ke.mergeIn=De,Ke.mergeDeepIn=xe,Ke.withMutations=Ae,Ke.wasAltered=Ue,Ke.asImmutable=Re,Ke["@@transducer/init"]=Ke.asMutable=ke,Ke["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Ke["@@transducer/result"]=function(t){return t.asImmutable()};var Le=function(t,e){this.ownerID=t,this.entries=e};Le.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(r,i[o][0]))return i[o][1];return n},Le.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===v,a=this.entries,c=0,f=a.length;c<f&&!_t(n,a[c][0]);c++);var h=c<f;if(h?a[c][1]===i:s)return this;if(_(u),!s&&h||_(o),!s||1!==a.length){if(!h&&!s&&er<=a.length)return function(t,e,r,n){t=t||new m;for(var i=new We(t,yt(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,n,i);u=t&&t===this.ownerID,o=u?a:Zt(a);return h?s?c===f-1?o.pop():o[c]=o.pop():o[c]=[n,i]:o.push([n,i]),u?(this.entries=o,this):new Le(t,o)}};var Ce=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};Ce.prototype.get=function(t,e,r,n){void 0===e&&(e=yt(r));var i=1<<((0===t?e:e>>>t)&g),o=this.bitmap;return 0==(o&i)?n:this.nodes[$e(o&i-1)].get(t+d,e,r,n)},Ce.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=yt(n));var s=(0===e?r:r>>>e)&g,a=1<<s,c=this.bitmap,f=0!=(c&a);if(!f&&i===v)return this;var h=$e(c&a-1),_=this.nodes,p=f?_[h]:void 0,u=Fe(p,t,e+d,r,n,i,o,u);if(u===p)return this;if(!f&&u&&rr<=_.length)return function(t,e,r,n,i){for(var o=0,u=Array(l),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Be(t,o+1,u)}(t,_,c,s,u);if(f&&!u&&2===_.length&&Ge(_[1^h]))return _[1^h];if(f&&u&&1===_.length&&Ge(u))return u;s=t&&t===this.ownerID,a=f?u?c:c^a:c|a,u=f?u?tr(_,h,u,s):function(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}(_,h,s):function(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}(_,h,u,s);return s?(this.bitmap=a,this.nodes=u,this):new Ce(t,a,u)}
37
- ;var Be=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};Be.prototype.get=function(t,e,r,n){void 0===e&&(e=yt(r));var i=this.nodes[(0===t?e:e>>>t)&g];return i?i.get(t+d,e,r,n):n},Be.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=yt(n));var s=(0===e?r:r>>>e)&g,a=this.nodes,c=a[s];if(i===v&&!c)return this;o=Fe(c,t,e+d,r,n,i,o,u);if(o===c)return this;u=this.count;if(c){if(!o&&--u<nr)return function(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 Ce(t,i,u)}(t,a,u,s)}else u++;c=t&&t===this.ownerID,o=tr(a,s,o,c);return c?(this.count=u,this.nodes=o,this):new Be(t,u,o)};var Pe=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};Pe.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(r,i[o][0]))return i[o][1];return n},Pe.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=yt(n));var s=i===v;if(r!==this.keyHash)return s?this:(_(u),_(o),Ze(this,t,e,r,[n,i]));for(var a=this.entries,c=0,f=a.length;c<f&&!_t(n,a[c][0]);c++);r=c<f;if(r?a[c][1]===i:s)return this;if(_(u),!s&&r||_(o),s&&2===f)return new We(t,this.keyHash,a[1^c]);u=t&&t===this.ownerID,o=u?a:Zt(a);return r?s?c===f-1?o.pop():o[c]=o.pop():o[c]=[n,i]:o.push([n,i]),u?(this.entries=o,this):new Pe(t,this.keyHash,o)};var We=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};We.prototype.get=function(t,e,r,n){return _t(r,this.entry[0])?this.entry[1]:n},We.prototype.update=function(t,e,r,n,i,o,u){var s=i===v,a=_t(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(_(u),s?void _(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new We(t,this.keyHash,[n,i]):(_(o),Ze(this,t,e,yt(n),[n,i])))},Le.prototype.iterate=Pe.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Ce.prototype.iterate=Be.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&&!1===o.iterate(t,e))return!1}},We.prototype.iterate=function(t,e){return t(
38
- this.entry)};var Ne,He=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Ve(t._root)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.next=function(){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 Je(t,r.entry)}else if(r.entries){if(n<=(i=r.entries.length-1))return Je(t,r.entries[this._reverse?i-n:n])}else if(n<=(i=r.nodes.length-1)){n=r.nodes[this._reverse?i-n:n];if(n){if(n.entry)return Je(t,n.entry);e=this._stack=Ve(n,e)}continue}e=this._stack=this._stack.__prev}return N()},e}(P);function Je(t,e){return W(t,e[0],e[1])}function Ve(t,e){return{node:t,index:0,__prev:e}}function Ye(t,e,r,n){var i=Object.create(Ke);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Qe(){return Ne=Ne||Ye(0)}function Xe(t,e,r){if(t._root){var n=u(),i=u(),o=Fe(t._root,t.__ownerID,0,void 0,e,r,n,i);if(!i.value)return t;n=t.size+(n.value?r===v?-1:1:0)}else{if(r===v)return t;n=1,o=new Le(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=n,t._root=o,t.__hash=void 0,t.__altered=!0,t):o?Ye(n,o):Qe()}function Fe(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===v?t:(_(s),_(u),new We(e,n,[i,o]))}function Ge(t){return t.constructor===We||t.constructor===Pe}function Ze(t,e,r,n,i){if(t.keyHash===n)return new Pe(e,n,[t.entry,i]);var o=(0===r?t.keyHash:t.keyHash>>>r)&g,u=(0===r?n:n>>>r)&g,t=o==u?[Ze(t,e,r+d,n,i)]:(i=new We(e,n,i),o<u?[t,i]:[i,t]);return new Ce(e,1<<o|1<<u,t)}function $e(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function tr(t,e,r,n){t=n?t:Zt(t);return t[e]=r,t}var er=l/4,rr=l/2,nr=l/4,ir="@@__IMMUTABLE_LIST__@@";function or(t){return!(!t||!t[ir])}var ur=function(o){function t(t){var e=pr();if(null==t)return e;if(or(t))return t;var n=o(t),i=n.size;return 0===i?e:(te(i),0<i&&i<l?_r(0,i,d,null,new ar(n.toArray())):e.withMutations(function(r){r.setSize(i),n.forEach(function(t,e){return r.set(e,t)})}))}return o&&(
39
- t.__proto__=o),((t.prototype=Object.create(o&&o.prototype)).constructor=t).of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(t,e){if(0<=(t=h(this,t))&&t<this.size){var r=yr(this,t+=this._origin);return r&&r.array[t&g]}return e},t.prototype.set=function(t,e){return function(t,e,r){if((e=h(t,e))!==e)return t;if(t.size<=e||e<0)return t.withMutations(function(t){e<0?dr(t,e).set(0,r):dr(t,0,e+1).set(e,r)});var n=t._tail,i=t._root,o=u();(e+=t._origin)>=gr(t._capacity)?n=lr(n,t.__ownerID,0,e,r,o):i=lr(i,t.__ownerID,t._level,e,r,o);if(!o.value)return t;if(t.__ownerID)return t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t;return _r(t._origin,t._capacity,t._level,i,n)}(this,t,e)},t.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},t.prototype.insert=function(t,e){return this.splice(t,0,e)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=d,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):pr()},t.prototype.push=function(){var r=arguments,n=this.size;return this.withMutations(function(t){dr(t,0,n+r.length);for(var e=0;e<r.length;e++)t.set(n+e,r[e])})},t.prototype.pop=function(){return dr(this,0,-1)},t.prototype.unshift=function(){var r=arguments;return this.withMutations(function(t){dr(t,-r.length);for(var e=0;e<r.length;e++)t.set(e,r[e])})},t.prototype.shift=function(){return dr(this,1)},t.prototype.concat=function(){for(var t=arguments,r=[],e=0;e<arguments.length;e++){var n=t[e],n=o("string"!=typeof n&&H(n)?n:[n]);0!==n.size&&r.push(n)}return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations(function(e){r.forEach(function(t){return t.forEach(function(t){return e.push(t)})})}):this.constructor(r[0])},t.prototype.setSize=function(t){return dr(this,0,t)},t.prototype.map=function(r,n){var i=this;return this.withMutations(function(t){for(
40
- var e=0;e<i.size;e++)t.set(e,r.call(n,t.get(e),e,i))})},t.prototype.slice=function(t,e){var r=this.size;return p(t,e,r)?this:dr(this,y(t,r),w(e,r))},t.prototype.__iterator=function(e,r){var n=r?this.size:0,i=hr(this,r);return new P(function(){var t=i();return t===fr?N():W(e,r?--n:n++,t)})},t.prototype.__iterate=function(t,e){for(var r,n=e?this.size:0,i=hr(this,e);(r=i())!==fr&&!1!==t(r,e?--n:n++,this););return n},t.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?_r(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?pr():(this.__ownerID=t,this.__altered=!1,this)},t}(E);ur.isList=or;var sr=ur.prototype;sr[ir]=!0,sr[e]=sr.remove,sr.merge=sr.concat,sr.setIn=pe,sr.deleteIn=sr.removeIn=ve,sr.update=de,sr.updateIn=ge,sr.mergeIn=De,sr.mergeDeepIn=xe,sr.withMutations=Ae,sr.wasAltered=Ue,sr.asImmutable=Re,sr["@@transducer/init"]=sr.asMutable=ke,sr["@@transducer/step"]=function(t,e){return t.push(e)},sr["@@transducer/result"]=function(t){return t.asImmutable()};var ar=function(t,e){this.array=t,this.ownerID=e};ar.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&g;if(this.array.length<=n)return new ar([],t);var i=0==n;if(0<e){var o,u=this.array[n];if((o=u&&u.removeBefore(t,e-d,r))===u&&i)return this}if(i&&!o)return this;var s=vr(this,t);if(!i)for(var a=0;a<n;a++)s.array[a]=void 0;return o&&(s.array[n]=o),s},ar.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n=r-1>>>e&g;if(this.array.length<=n)return this;if(0<e){var i,o=this.array[n];if((i=o&&o.removeAfter(t,e-d,r))===o&&n==this.array.length-1)return this}t=vr(this,t);return t.array.splice(1+n),i&&(t.array[n]=i),t};var cr,fr={};function hr(t,s){var a=t._origin,c=t._capacity,o=gr(c),u=t._tail;return f(t._root,t._level,0);function f(t,e,r){return 0===e?function(t,e){var r=e===o?u&&u.array:t&&t.array,n=a<e?0:a-e,i=c-e;l<i&&(i=l);return function(){if(n===i)return fr;var t=s?--i:n++;return r&&r[t]}}(t,r):function(t,e,r){
41
- var n,i=t&&t.array,o=a<r?0:a-r>>e,u=1+(c-r>>e);l<u&&(u=l);return function(){for(;;){if(n){var t=n();if(t!==fr)return t;n=null}if(o===u)return fr;t=s?--u:o++;n=f(i&&i[t],e-d,r+(t<<e))}}}(t,e,r)}}function _r(t,e,r,n,i,o,u){var s=Object.create(sr);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function pr(){return cr=cr||_r(0,0,d)}function lr(t,e,r,n,i,o){var u,s=n>>>r&g,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(0<r){var c=t&&t.array[s],n=lr(c,e,r-d,n,i,o);return n===c?t:((u=vr(t,e)).array[s]=n,u)}return a&&t.array[s]===i?t:(o&&_(o),u=vr(t,e),void 0===i&&s==u.array.length-1?u.array.pop():u.array[s]=i,u)}function vr(t,e){return e&&t&&e===t.ownerID?t:new ar(t?t.array.slice():[],e)}function yr(t,e){if(e>=gr(t._capacity))return t._tail;if(e<1<<t._level+d){for(var r=t._root,n=t._level;r&&0<n;)r=r.array[e>>>n&g],n-=d;return r}}function dr(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new m,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:r<0?o+r:i+r;if(u===i&&s===o)return t;if(s<=u)return t.clear();for(var a=t._level,c=t._root,f=0;u+f<0;)c=new ar(c&&c.array.length?[void 0,c]:[],n),f+=1<<(a+=d);f&&(u+=f,i+=f,s+=f,o+=f);for(var h=gr(o),_=gr(s);1<<a+d<=_;)c=new ar(c&&c.array.length?[c]:[],n),a+=d;e=t._tail,r=_<h?yr(t,s-1):h<_?new ar([],n):e;if(e&&h<_&&u<o&&e.array.length){for(var p=c=vr(c,n),l=a;d<l;l-=d)var v=h>>>l&g,p=p.array[v]=vr(p.array[v],n);p.array[h>>>d&g]=e}if(s<o&&(r=r&&r.removeAfter(n,0,s)),_<=u)u-=_,s-=_,a=d,c=null,r=r&&r.removeBefore(n,0,u);else if(i<u||_<h){for(f=0;c;){var y=u>>>a&g;if(y!=_>>>a&g)break;y&&(f+=(1<<a)*y),a-=d,c=c.array[y]}c&&i<u&&(c=c.removeBefore(n,a,u-f)),c&&_<h&&(c=c.removeAfter(n,a,_-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=r,t.__hash=void 0,t.__altered=!0,t):_r(u,s,a,c,r)}function gr(t){return t<l?0:t-1>>>d<<d}var mr,wr=function(t){function e(e){return null==e?zr():ft(e)?e:zr().withMutations(function(r){var t=O(e);te(t.size),
42
- t.forEach(function(t,e){return r.set(e,t)})})}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){t=this._map.get(t);return void 0!==t?this._list.get(t)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):zr()},e.prototype.set=function(t,e){return br(this,t,e)},e.prototype.remove=function(t){return br(this,t,v)},e.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],r)},t)},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?Sr(e,r,t,this.__hash):0===this.size?zr():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=r,this)},e}(Te);function Sr(t,e,r,n){var i=Object.create(wr.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function zr(){return mr=mr||Sr(Qe(),pr())}function br(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===v){if(!a)return t;l<=u.size&&2*o.size<=u.size?(n=(i=u.filter(function(t,e){return void 0!==t&&s!==e})).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.__altered=!0,t):Sr(n,i)}wr.isOrderedMap=ft,wr.prototype[k]=!0,wr.prototype[e]=wr.prototype.remove;var Ir="@@__IMMUTABLE_STACK__@@";function Or(t){return!(!t||!t[Ir])}var Er=function(i){function t(t){return null==t?Dr():Or(t)?t:Dr().pushAll(t)}return i&&(t.__proto__=i),((
43
- t.prototype=Object.create(i&&i.prototype)).constructor=t).of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(t,e){var r=this._head;for(t=h(this,t);r&&t--;)r=r.next;return r?r.value:e},t.prototype.peek=function(){return this._head&&this._head.value},t.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;0<=n;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Mr(e,r)},t.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;if(0===this.size&&Or(t))return t;te(t.size);var e=this.size,r=this._head;return t.__iterate(function(t){e++,r={value:t,next:r}},!0),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Mr(e,r)},t.prototype.pop=function(){return this.slice(1)},t.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):Dr()},t.prototype.slice=function(t,e){if(p(t,e,this.size))return this;var r=y(t,this.size);if(w(e,this.size)!==this.size)return i.prototype.slice.call(this,t,e);for(var e=this.size-r,n=this._head;r--;)n=n.next;return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Mr(e,n)},t.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Mr(this.size,this._head,t,this.__hash):0===this.size?Dr():(this.__ownerID=t,this.__altered=!1,this)},t.prototype.__iterate=function(r,t){var n=this;if(t)return new tt(this.toArray()).__iterate(function(t,e){return r(t,e,n)},t);for(var e=0,i=this._head;i&&!1!==r(i.value,e++,this);)i=i.next;return e},t.prototype.__iterator=function(e,t){if(t)return new tt(this.toArray()).__iterator(e,t);var r=0,n=this._head;return new P(function(){if(n){var t=n.value;return n=n.next,W(e,r++,t)}return N()})},t}(E);Er.isStack=Or;var jr,qr=Er.prototype;function Mr(t,e,r,n){
44
- var i=Object.create(qr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Dr(){return jr=jr||Mr(0)}qr[Ir]=!0,qr.shift=qr.pop,qr.unshift=qr.push,qr.unshiftAll=qr.pushAll,qr.withMutations=Ae,qr.wasAltered=Ue,qr.asImmutable=Re,qr["@@transducer/init"]=qr.asMutable=ke,qr["@@transducer/step"]=function(t,e){return t.unshift(e)},qr["@@transducer/result"]=function(t){return t.asImmutable()};var xr="@@__IMMUTABLE_SET__@@";function Ar(t){return!(!t||!t[xr])}function kr(t){return Ar(t)&&R(t)}function Rr(r,t){if(r===t)return!0;if(!f(t)||void 0!==r.size&&void 0!==t.size&&r.size!==t.size||void 0!==r.__hash&&void 0!==t.__hash&&r.__hash!==t.__hash||a(r)!==a(t)||z(r)!==z(t)||R(r)!==R(t))return!1;if(0===r.size&&0===t.size)return!0;var n=!b(r);if(R(r)){var i=r.entries();return t.every(function(t,e){var r=i.next().value;return r&&_t(r[1],t)&&(n||_t(r[0],e))})&&i.next().done}var e,o=!1;void 0===r.size&&(void 0===t.size?"function"==typeof r.cacheResult&&r.cacheResult():(o=!0,e=r,r=t,t=e));var u=!0,t=t.__iterate(function(t,e){if(n?!r.has(t):o?!_t(t,r.get(e,v)):!_t(r.get(e,v),t))return u=!1});return u&&r.size===t}function Ur(e,r){function t(t){e.prototype[t]=r[t]}return Object.keys(r).forEach(t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(r).forEach(t),e}function Tr(t){if(!t||"object"!=typeof t)return t;if(!f(t)){if(!ie(t))return t;t=F(t)}if(a(t)){var r={};return t.__iterate(function(t,e){r[e]=Tr(t)}),r}var e=[];return t.__iterate(function(t){e.push(Tr(t))}),e}var Kr=function(n){function e(r){return null==r?Wr():Ar(r)&&!R(r)?r:Wr().withMutations(function(e){var t=n(r);te(t.size),t.forEach(function(t){return e.add(t)})})}return n&&(e.__proto__=n),((e.prototype=Object.create(n&&n.prototype)).constructor=e).of=function(){return this(arguments)},e.fromKeys=function(t){return this(O(t).keySeq())},e.intersect=function(t){return(t=I(t).toArray()).length?Cr.intersect.apply(e(t.pop()),t):Wr()},e.union=function(t){return(t=I(t).toArray()).length?Cr.union.apply(e(t.pop()),t):Wr()},
45
- e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return Br(this,this._map.set(t,t))},e.prototype.remove=function(t){return Br(this,this._map.remove(t))},e.prototype.clear=function(){return Br(this,this._map.clear())},e.prototype.map=function(r,n){var i=this,o=!1,t=Br(this,this._map.mapEntries(function(t){var e=t[1],t=r.call(n,e,e,i);return t!==e&&(o=!0),[t,t]},n));return o?t:this},e.prototype.union=function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 0===(r=r.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations(function(e){for(var t=0;t<r.length;t++)"string"==typeof r[t]?e.add(r[t]):n(r[t]).forEach(function(t){return e.add(t)})}):this.constructor(r[0])},e.prototype.intersect=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return this;t=t.map(function(t){return n(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},e.prototype.subtract=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return this;t=t.map(function(t){return n(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},e.prototype.sort=function(t){return an(Wt(this,t))},e.prototype.sortBy=function(t,e){return an(Wt(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate(function(t){return e(t,t,r)},t)},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}(j);Kr.isSet=Ar
46
- ;var Lr,Cr=Kr.prototype;function Br(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 Pr(t,e){var r=Object.create(Cr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Wr(){return Lr=Lr||Pr(Qe())}Cr[xr]=!0,Cr[e]=Cr.remove,Cr.merge=Cr.concat=Cr.union,Cr.withMutations=Ae,Cr.asImmutable=Re,Cr["@@transducer/init"]=Cr.asMutable=ke,Cr["@@transducer/step"]=function(t,e){return t.add(e)},Cr["@@transducer/result"]=function(t){return t.asImmutable()},Cr.__empty=Wr,Cr.__make=Pr;var Nr,Hr=function(t){function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);if($t(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,1+Math.ceil((e-t)/r-1)),0===this.size){if(Nr)return Nr;Nr=this}}return t&&(n.__proto__=t),((n.prototype=Object.create(t&&t.prototype)).constructor=n).prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},n.prototype.get=function(t,e){return this.has(t)?this._start+h(this,t)*this._step:e},n.prototype.includes=function(t){t=(t-this._start)/this._step;return 0<=t&&t<this.size&&t==Math.floor(t)},n.prototype.slice=function(t,e){return p(t,e,this.size)?this:(t=y(t,this.size),(e=w(e,this.size))<=t?new n(0,0):new n(this.get(t,this._end),this.get(e,this._end),this._step))},n.prototype.indexOf=function(t){t-=this._start;if(t%this._step==0){t=t/this._step;if(0<=t&&t<this.size)return t}return-1},n.prototype.lastIndexOf=function(t){return this.indexOf(t)},n.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&&!1!==t(i,e?r-++o:o++,this);)i+=e?-n:n;return o},n.prototype.__iterator=function(e,r){var n=this.size,i=this._step,o=r?this._start+(n-1)*i:this._start,u=0;return new P(function(){if(u===n)return N();var t=o;return o+=r?-i:i,W(e,r?n-++u:u++,t)})},n.prototype.equals=function(t){
47
- return t instanceof n?this._start===t._start&&this._end===t._end&&this._step===t._step:Rr(this,t)},n}(Z);function Jr(t,e,r){for(var n=ee(e),i=0;i!==n.length;)if((t=se(t,n[i++],v))===v)return r;return t}function Vr(t,e){return Jr(this,t,e)}function Yr(t,e){return Jr(t,e,v)!==v}function Qr(){te(this.size);var r={};return this.__iterate(function(t,e){r[e]=t}),r}I.isIterable=f,I.isKeyed=a,I.isIndexed=z,I.isAssociative=b,I.isOrdered=R,I.Iterator=P,Ur(I,{toArray:function(){te(this.size);var r=Array(this.size||0),n=a(this),i=0;return this.__iterate(function(t,e){r[i++]=n?[e,t]:t}),r},toIndexedSeq:function(){return new At(this)},toJS:function(){return Tr(this)},toKeyedSeq:function(){return new xt(this,!0)},toMap:function(){return Te(this.toKeyedSeq())},toObject:Qr,toOrderedMap:function(){return wr(this.toKeyedSeq())},toOrderedSet:function(){return an(a(this)?this.valueSeq():this)},toSet:function(){return Kr(a(this)?this.valueSeq():this)},toSetSeq:function(){return new kt(this)},toSeq:function(){return z(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Er(a(this)?this.valueSeq():this)},toList:function(){return ur(a(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 Vt(this,function(t,e){var r=a(t);if(0===(e=[t].concat(e).map(function(t){return f(t)?r&&(t=O(t)):t=r?ot(t):ut(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size})).length)return t;if(1===e.length){var n=e[0];if(n===t||r&&a(n)||z(t)&&z(n))return n}return n=new tt(e),r?n=n.toKeyedSeq():z(t)||(n=n.toSetSeq()),(n=n.flatten(!0)).size=e.reduce(function(t,e){if(void 0!==t){e=e.size;if(void 0!==e)return t+e}},0),n}(this,t))},includes:function(e){return this.some(function(t){return _t(t,e)})},entries:function(){return this.__iterator(K)},every:function(n,i){te(this.size);var o=!0
48
- ;return this.__iterate(function(t,e,r){if(!n.call(i,t,e,r))return o=!1}),o},filter:function(t,e){return Vt(this,Lt(this,t,e,!0))},partition:function(t,e){return function(r,n,i){var o=a(r),u=[[],[]];r.__iterate(function(t,e){u[n.call(i,t,e,r)?1:0].push(o?[e,t]:t)});var e=Qt(r);return u.map(function(t){return Vt(r,e(t))})}(this,t,e)},find:function(t,e,r){e=this.findEntry(t,e);return e?e[1]:r},forEach:function(t,e){return te(this.size),this.__iterate(e?t.bind(e):t)},join:function(e){te(this.size),e=void 0!==e?""+e:",";var r="",n=!0;return this.__iterate(function(t){n?n=!1:r+=e,r+=null!=t?""+t:""}),r},keys:function(){return this.__iterator(U)},map:function(t,e){return Vt(this,Tt(this,t,e))},reduce:function(t,e,r){return $r(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return $r(this,t,e,r,arguments.length<2,!0)},reverse:function(){return Vt(this,Kt(this,!0))},slice:function(t,e){return Vt(this,Ct(this,t,e,!0))},some:function(n,i){te(this.size);var o=!1;return this.__iterate(function(t,e,r){if(n.call(i,t,e,r))return!(o=!0)}),o},sort:function(t){return Vt(this,Wt(this,t))},values:function(){return this.__iterator(T)},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 c(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return r=this,n=t,i=e,o=Te().asMutable(),r.__iterate(function(t,e){o.update(n.call(i,t,e,r),0,function(t){return t+1})}),o.asImmutable();var r,n,i,o},equals:function(t){return Rr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var e=t.toSeq().map(en).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(rn(t),e)},findEntry:function(n,i,t){var o=t;return this.__iterate(function(t,e,r){if(n.call(i,t,e,r))return!(o=[e,t])}),o},findKey:function(t,e){e=this.findEntry(t,e);return e&&e[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){
49
- 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(r,null,t)},flatMap:function(t,e){return Vt(this,(n=t,i=e,o=Qt(r=this),r.toSeq().map(function(t,e){return o(n.call(i,t,e,r))}).flatten(!0)));var r,n,i,o},flatten:function(t){return Vt(this,Pt(this,t,!0))},fromEntrySeq:function(){return new Rt(this)},get:function(r,t){return this.find(function(t,e){return _t(e,r)},void 0,t)},getIn:Vr,groupBy:function(t,e){return function(n,t,i){var o=a(n),u=(R(n)?wr:Te)().asMutable();n.__iterate(function(e,r){u.update(t.call(i,e,r,n),function(t){return(t=t||[]).push(o?[r,e]:e),t})});var e=Qt(n);return u.map(function(t){return Vt(n,e(t))}).asImmutable()}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return Yr(this,t)},isSubset:function(e){return e="function"==typeof e.includes?e:I(e),this.every(function(t){return e.includes(t)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:I(t)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return _t(t,e)})},keySeq:function(){return this.toSeq().map(tn).toIndexedSeq()},last:function(t){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?nn(t):un)},minBy:function(t,e){return Nt(this,e?nn(e):un,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 Vt(this,Bt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(rn(t),e)},sortBy:function(t,e){return Vt(this,Wt(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 Vt(this,(s=t,a=e,(e=Xt(r=this)).__iterateUncached=function(n,t){var i=this;if(t)return this.cacheResult(
50
- ).__iterate(n,t);var o=0;return r.__iterate(function(t,e,r){return s.call(a,t,e,r)&&++o&&n(t,e,i)}),o},e.__iteratorUncached=function(n,t){var i=this;if(t)return this.cacheResult().__iterator(n,t);var o=r.__iterator(K,t),u=!0;return new P(function(){if(!u)return N();var t=o.next();if(t.done)return t;var e=t.value,r=e[0],e=e[1];return s.call(a,e,r,i)?n===K?t:W(n,r,e,t):(u=!1,N())})},e));var r,s,a},takeUntil:function(t,e){return this.takeWhile(rn(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=R(t),r=a(t),n=e?1:0;return function(t,e){return e=pt(e,3432918353),e=pt(e<<15|e>>>-15,461845907),e=pt(e<<13|e>>>-13,5),e=pt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=lt((e=pt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+sn(yt(t),yt(e))|0}:function(t,e){n=n+sn(yt(t),yt(e))|0}:e?function(t){n=31*n+yt(t)|0}:function(t){n=n+yt(t)|0}),n)}(this))}});var Xr=I.prototype;Xr[o]=!0,Xr[B]=Xr.values,Xr.toJSON=Xr.toArray,Xr.__toStringMapper=oe,Xr.inspect=Xr.toSource=function(){return""+this},Xr.chain=Xr.flatMap,Xr.contains=Xr.includes,Ur(O,{flip:function(){return Vt(this,Ut(this))},mapEntries:function(r,n){var i=this,o=0;return Vt(this,this.toSeq().map(function(t,e){return r.call(n,[e,t],o++,i)}).fromEntrySeq())},mapKeys:function(r,n){var i=this;return Vt(this,this.toSeq().flip().map(function(t,e){return r.call(n,t,e,i)}).flip())}});var Fr=O.prototype;Fr[s]=!0,Fr[B]=Xr.entries,Fr.toJSON=Qr,Fr.__toStringMapper=function(t,e){return oe(e)+": "+oe(t)},Ur(E,{toKeyedSeq:function(){return new xt(this,!1)},filter:function(t,e){return Vt(this,Lt(this,t,e,!1))},findIndex:function(t,e){e=this.findEntry(t,e);return e?e[0]:-1},indexOf:function(t){t=this.keyOf(t);return void 0===t?-1:t},lastIndexOf:function(t){t=this.lastKeyOf(t);return void 0===t?-1:t},reverse:function(){return Vt(this,Kt(this,!1))},slice:function(t,e){return Vt(this,Ct(this,t,e,!1))},splice:function(t,e){
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
- 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
- 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.3",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.3",Object.defineProperty(t,"__esModule",{value:!0})});
24
+ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).Immutable={})}(this,function(t){"use strict";var r="delete",d=5,l=1<<d,g=l-1,v={};function u(){return{value:!1}}function _(t){t&&(t.value=!0)}function m(){}function c(t){return void 0===t.size&&(t.size=t.__iterate(e)),t.size}function h(t,r){if("number"!=typeof r){var e=r>>>0;if(""+e!==r||4294967295==e)return NaN;r=e}return r<0?c(t)+r:r}function e(){return!0}function p(t,r,e){return(0===t&&!i(t)||void 0!==e&&t<=-e)&&(void 0===r||void 0!==e&&e<=r)}function y(t,r){return n(t,r,0)}function w(t,r){return n(t,r,r)}function n(t,r,e){return void 0===t?e:i(t)?r===1/0?r:0|Math.max(0,r+t):void 0===r||r===t?t:0|Math.min(r,t)}function i(t){return t<0||0===t&&1/t==-1/0}var o="@@__IMMUTABLE_ITERABLE__@@";function f(t){return!(!t||!t[o])}var s="@@__IMMUTABLE_KEYED__@@";function a(t){return!(!t||!t[s])}var z="@@__IMMUTABLE_INDEXED__@@";function S(t){return!(!t||!t[z])}function b(t){return a(t)||S(t)}function I(t){return f(t)?t:F(t)}var O=function(t){function r(t){return a(t)?t:G(t)}return r.__proto__=t,(r.prototype=Object.create(t.prototype)).constructor=r}(I),E=function(t){function r(t){return S(t)?t:Z(t)}return r.__proto__=t,(r.prototype=Object.create(t.prototype)).constructor=r}(I),j=function(t){function r(t){return f(t)&&!b(t)?t:$(t)}return r.__proto__=t,(r.prototype=Object.create(t.prototype)).constructor=r}(I);I.Keyed=O,I.Indexed=E,I.Set=j;var q="@@__IMMUTABLE_SEQ__@@";function M(t){return!(!t||!t[q])}var D="@@__IMMUTABLE_RECORD__@@";function x(t){return!(!t||!t[D])}function A(t){return f(t)||x(t)}var k="@@__IMMUTABLE_ORDERED__@@";function R(t){return!(!t||!t[k])}var U=0,T=1,K=2,L="function"==typeof Symbol&&Symbol.iterator,C="@@iterator",B=L||C,P=function(t){this.next=t};function W(t,r,e,n){e=0===t?r:1===t?e:[r,e];return n?n.value=e:n={value:e,done:!1},n}function N(){return{value:void 0,done:!0}}function H(t){return Array.isArray(t
25
+ )||Y(t)}function J(t){return t&&"function"==typeof t.next}function V(t){var r=Y(t);return r&&r.call(t)}function Y(t){t=t&&(L&&t[L]||t[C]);if("function"==typeof t)return t}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=U,P.VALUES=T,P.ENTRIES=K,P.prototype.inspect=P.prototype.toSource=function(){return""+this},P.prototype[B]=function(){return this};var Q=Object.prototype.hasOwnProperty;function X(t){return Array.isArray(t)||"string"==typeof t||t&&"object"==typeof t&&Number.isInteger(t.length)&&0<=t.length&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var F=function(t){function r(t){return null==t?it():A(t)?t.toSeq():function(t){var r=st(t);if(r)return function(t){var r=Y(t);return r&&r===t.entries}(t)?r.fromEntrySeq():function(t){var r=Y(t);return r&&r===t.keys}(t)?r.toSetSeq():r;if("object"!=typeof t)throw new TypeError("Expected Array or collection object of values, or keyed object: "+t);return new rt(t)}(t)}return r.__proto__=t,((r.prototype=Object.create(t.prototype)).constructor=r).prototype.toSeq=function(){return this},r.prototype.toString=function(){return this.__toString("Seq {","}")},r.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},r.prototype.__iterate=function(t,r){var e=this._cache;if(e){for(var n=e.length,i=0;i!==n;){var o=e[r?n-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,r)},r.prototype.__iterator=function(r,e){var n=this._cache;if(n){var i=n.length,o=0;return new P(function(){if(o===i)return N();var t=n[e?i-++o:o++];return W(r,t[0],t[1])})}return this.__iteratorUncached(r,e)},r}(I),G=function(t){function r(t){return null==t?it().toKeyedSeq():f(t)?a(t)?t.toSeq():t.fromEntrySeq():x(t)?t.toSeq():ot(t)}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.toKeyedSeq=function(){return this},r}(F),Z=function(t){function r(t){return null==t?it():f(t)?a(t)?t.entrySeq():t.toIndexedSeq():x(t
26
+ )?t.toSeq().entrySeq():ut(t)}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).of=function(){return r(arguments)},r.prototype.toIndexedSeq=function(){return this},r.prototype.toString=function(){return this.__toString("Seq [","]")},r}(F),$=function(t){function r(t){return(f(t)&&!b(t)?t:Z(t)).toSetSeq()}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).of=function(){return r(arguments)},r.prototype.toSetSeq=function(){return this},r}(F);F.isSeq=M,F.Keyed=G,F.Set=$,F.Indexed=Z,F.prototype[q]=!0;var tt=function(t){function r(t){this._array=t,this.size=t.length}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.get=function(t,r){return this.has(t)?this._array[h(this,t)]:r},r.prototype.__iterate=function(t,r){for(var e=this._array,n=e.length,i=0;i!==n;){var o=r?n-++i:i++;if(!1===t(e[o],o,this))break}return i},r.prototype.__iterator=function(r,e){var n=this._array,i=n.length,o=0;return new P(function(){if(o===i)return N();var t=e?i-++o:o++;return W(r,t,n[t])})},r}(Z),rt=function(t){function r(t){var r=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=r,this.size=r.length}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.get=function(t,r){return void 0===r||this.has(t)?this._object[t]:r},r.prototype.has=function(t){return Q.call(this._object,t)},r.prototype.__iterate=function(t,r){for(var e=this._object,n=this._keys,i=n.length,o=0;o!==i;){var u=n[r?i-++o:o++];if(!1===t(e[u],u,this))break}return o},r.prototype.__iterator=function(r,e){var n=this._object,i=this._keys,o=i.length,u=0;return new P(function(){if(u===o)return N();var t=i[e?o-++u:u++];return W(r,t,n[t])})},r}(G);rt.prototype[k]=!0;var et,nt=function(t){function r(t){this._collection=t,this.size=t.length||t.size}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.__iterateUncached=function(t,r){
27
+ if(r)return this.cacheResult().__iterate(t,r);var e,n=V(this._collection),i=0;if(J(n))for(;!(e=n.next()).done&&!1!==t(e.value,i++,this););return i},r.prototype.__iteratorUncached=function(r,t){if(t)return this.cacheResult().__iterator(r,t);var e=V(this._collection);if(!J(e))return new P(N);var n=0;return new P(function(){var t=e.next();return t.done?t:W(r,n++,t.value)})},r}(Z);function it(){return et=et||new tt([])}function ot(t){var r=st(t);if(r)return r.fromEntrySeq();if("object"==typeof t)return new rt(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function ut(t){var r=st(t);if(r)return r;throw new TypeError("Expected Array or collection object of values: "+t)}function st(t){return X(t)?new tt(t):H(t)?new nt(t):void 0}var at="@@__IMMUTABLE_MAP__@@";function ct(t){return!(!t||!t[at])}function ft(t){return ct(t)&&R(t)}function ht(t){return!(!t||"function"!=typeof t.equals||"function"!=typeof t.hashCode)}function _t(t,r){if(t===r||t!=t&&r!=r)return!0;if(!t||!r)return!1;if("function"==typeof t.valueOf&&"function"==typeof r.valueOf){if((t=t.valueOf())===(r=r.valueOf())||t!=t&&r!=r)return!0;if(!t||!r)return!1}return!!(ht(t)&&ht(r)&&t.equals(r))}var pt="function"==typeof Math.imul&&-2==Math.imul(4294967295,2)?Math.imul:function(t,r){var e=65535&(t|=0),n=65535&(r|=0);return e*n+((t>>>16)*n+e*(r>>>16)<<16>>>0)|0};function lt(t){return t>>>1&1073741824|3221225471&t}var vt=Object.prototype.valueOf;function yt(t){if(null==t)return dt(t);if("function"==typeof t.hashCode)return lt(t.hashCode(t));var r,e=(r=t).valueOf!==vt&&"function"==typeof r.valueOf?r.valueOf(r):r;if(null==e)return dt(e);switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var r=0|t;r!==t&&(r^=4294967295*t);for(;4294967295<t;)r^=t/=4294967295;return lt(r)}(e);case"string":return(jt<e.length?function(t){var r=Dt[t];void 0===r&&(r=gt(t),Mt===qt&&(Mt=0,Dt={}),Mt++,Dt[t]=r);return r}:gt)(e);case"object":case"function":return function(t){
28
+ var r;if(bt&&void 0!==(r=St.get(t)))return r;if(void 0!==(r=t[Et]))return r;if(!wt){if(void 0!==(r=t.propertyIsEnumerable&&t.propertyIsEnumerable[Et]))return r;if(void 0!==(r=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 r}if(r=zt(),bt)St.set(t,r);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:r});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]=r;else{if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[Et]=r}}return r}(e);case"symbol":return void 0===(r=It[t=e])?(r=zt(),It[t]=r):r;default:if("function"==typeof e.toString)return gt(""+e);throw Error("Value type "+typeof e+" cannot be hashed.")}}function dt(t){return null===t?1108378658:1108378659}function gt(t){for(var r=0,e=0;e<t.length;e++)r=31*r+t.charCodeAt(e)|0;return lt(r)}var mt=Object.isExtensible,wt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function zt(){var t=++Ot;return 1073741824&Ot&&(Ot=0),t}var St,bt="function"==typeof WeakMap;bt&&(St=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 r(t,r){this._iter=t,this._useKeys=r,this.size=t.size}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.get=function(t,r){return this._iter.get(t,r)},r.prototype.has=function(t){return this._iter.has(t)},r.prototype.valueSeq=function(){return this._iter.valueSeq()},r.prototype.reverse=function(){var t=this,r=Kt(this,!0);return this._useKeys||(r.valueSeq=function(){return t._iter.toSeq().reverse()}),r},
29
+ r.prototype.map=function(t,r){var e=this,n=Tt(this,t,r);return this._useKeys||(n.valueSeq=function(){return e._iter.toSeq().map(t,r)}),n},r.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},r.prototype.__iterator=function(t,r){return this._iter.__iterator(t,r)},r}(G);xt.prototype[k]=!0;var At=function(t){function r(t){this._iter=t,this.size=t.size}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.includes=function(t){return this._iter.includes(t)},r.prototype.__iterate=function(r,e){var n=this,i=0;return e&&c(this),this._iter.__iterate(function(t){return r(t,e?n.size-++i:i++,n)},e)},r.prototype.__iterator=function(r,e){var n=this,i=this._iter.__iterator(T,e),o=0;return e&&c(this),new P(function(){var t=i.next();return t.done?t:W(r,e?n.size-++o:o++,t.value,t)})},r}(Z),kt=function(t){function r(t){this._iter=t,this.size=t.size}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.has=function(t){return this._iter.includes(t)},r.prototype.__iterate=function(r,t){var e=this;return this._iter.__iterate(function(t){return r(t,t,e)},t)},r.prototype.__iterator=function(r,t){var e=this._iter.__iterator(T,t);return new P(function(){var t=e.next();return t.done?t:W(r,t.value,t.value,t)})},r}($),Rt=function(t){function r(t){this._iter=t,this.size=t.size}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.entrySeq=function(){return this._iter.toSeq()},r.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Yt(t);var r=f(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},r.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 r=t.value;if(r){Yt(r);var e=f(r);return W(n,e?r.get(0):r[0],e?r.get(1):r[1],t)}}})},r}(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
+ 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(e,t){var n=this;return i.__iterate(function(t,r){return!1!==e(r,t,n)},t)},t.__iteratorUncached=function(t,r){if(t!==K)return i.__iterator(t===T?U:T,r);var e=i.__iterator(t,r);return new P(function(){var t,r=e.next();return r.done||(t=r.value[0],r.value[0]=r.value[1],r.value[1]=t),r})},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,r){var e=o.get(t,v);return e===v?r:u.call(s,e,t,o)},t.__iterateUncached=function(n,t){var i=this;return o.__iterate(function(t,r,e){return!1!==n(u.call(s,t,r,e),r,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 r=t.value,e=r[0];return W(n,e,u.call(s,r[1],e,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,r){return u.get(s?t:-1-t,r)},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(e,n){var i=this,o=0;return n&&c(u),u.__iterate(function(t,r){return e(t,s?r:n?i.size-++o:o++,i)},!n)},t.__iterator=function(e,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 r=t.value;return W(e,s?r[0]:n?a.size-++i:i++,r[1],t)})},t}function Lt(u,s,a,c){var t=Xt(u);return c&&(t.has=function(t){var r=u.get(t,v);return r!==v&&!!s.call(a,r,t,u)},t.get=function(t,r){var e=u.get(t,v);return e!==v&&s.call(a,e,t,u)?e:r}),t.__iterateUncached=function(n,t){var i=this,o=0;return u.__iterate(function(t,r,e){if(s.call(a,t,r,e))return o++,n(t,c?r: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 r=t.value,e=r[0],r=r[1];if(s.call(a,r,e,u))return W(n,c?e:o++,r,t)}})},t}function Ct(s,t,r,a){var e=s.size;if(p(t,r,e))return s;var c=y(t,e),e=w(r,e);if(c!=c||e!=e)return Ct(s.toSeq().cacheResult(),t,r,a);var f,e=e-c;e==e&&(f=e<0?0:e);e=Xt(s);return e.size=0===f?f:s.size&&f||void 0,!a&&M(s)&&0<=f&&(e.get=function(t,r){return 0<=(t=h(this,t))&&t<f?s.get(t+c,r):r}),e.__iterateUncached=function(e,t){var n=this;if(0===f)return 0;if(t)return this.cacheResult().__iterate(e,t);var i=0,o=!0,u=0;return s.__iterate(function(t,r){if(!(o=o&&i++<c))return u++,!1!==e(t,a?r:u-1,n)&&u!==f}),u},e.__iteratorUncached=function(r,t){if(0!==f&&t)return this.cacheResult().__iterator(r,t);if(0===f)return new P(N);var e=s.__iterator(r,t),n=0,i=0;return new P(function(){for(;n++<c;)e.next();if(++i>f)return N();var t=e.next();return a||r===T||t.done?t:W(r,i-1,r===U?void 0:t.value[1],t)})},e}function Bt(r,c,f,h){var t=Xt(r);return t.__iterateUncached=function(n,t){var i=this;if(t)return this.cacheResult().__iterate(n,t);var o=!0,u=0;return r.__iterate(function(t,r,e){if(!(o=o&&c.call(f,t,r,e)))return u++,n(t,h?r:u-1,i)}),u},t.__iteratorUncached=function(i,t){var o=this;if(t)return this.cacheResult().__iterator(i,t);var u=r.__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 r=t.value,e=r[0],n=r[1];s=s&&c.call(f,n,e,o)}while(s);return i===K?t:W(i,e,n,t)})},t}function Pt(t,s,a){var c=Xt(t);return c.__iterateUncached=function(i,r){if(r)return this.cacheResult().__iterate(i,r);var o=0,u=!1;return function e(t,n){t.__iterate(function(t,r){return(!s||n<s)&&f(t)?e(t,n+1):(o++,!1===i(t,a?r:o-1,c)&&(u=!0)),!u},r)}(t,0),o},c.__iteratorUncached=function(e,n){if(n)return this.cacheResult().__iterator(e,n);var i=t.__iterator(e,n),o=[],u=0;return new P(function(){for(;i;){var t=i.next();if(!1===t.done){var r=t.value;if(e===K&&(r=r[1]),s&&!(o.length<s)||!f(r))return a?t:W(e,u++,r,t);o.push(i),i=r.__iterator(e,n)}else i=o.pop()}return N()})},c}function Wt(e,n,i){
32
+ n=n||Gt;var t=a(e),o=0,u=e.toSeq().map(function(t,r){return[r,t,o++,i?i(t,r,e):t]}).valueSeq().toArray();return u.sort(function(t,r){return n(t[3],r[3])||t[2]-r[2]}).forEach(t?function(t,r){u[r].length=2}:function(t,r){u[r]=t[1]}),(t?G:S(e)?Z:$)(u)}function Nt(e,n,i){if(n=n||Gt,i){var t=e.toSeq().map(function(t,r){return[t,i(t,r,e)]}).reduce(function(t,r){return Ht(n,t[1],r[1])?r:t});return t&&t[0]}return e.reduce(function(t,r){return Ht(n,t,r)?r:t})}function Ht(t,r,e){t=t(e,r);return 0===t&&e!==r&&(null==e||e!=e)||0<t}function Jt(t,u,s,a){var r=Xt(t),t=new tt(s).map(function(t){return t.size});return r.size=a?t.max():t.min(),r.__iterate=function(t,r){for(var e,n=this.__iterator(T,r),i=0;!(e=n.next()).done&&!1!==t(e.value,i++,this););return i},r.__iteratorUncached=function(r,e){var n=s.map(function(t){return t=I(t),V(e?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(r,i++,u.apply(null,t.map(function(t){return t.value})))})},r}function Vt(t,r){return t===r?t:M(t)?r:t.constructor(r)}function Yt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Qt(t){return a(t)?O:S(t)?E:j}function Xt(t){return Object.create((a(t)?G:S(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,r){return void 0===t&&void 0===r?0:void 0===t?1:void 0===r?-1:r<t?1:t<r?-1:0}function Zt(t,r){for(var e=Math.max(0,t.length-(r=r||0)),n=Array(e),i=0;i<e;i++)n[i]=t[i+r];return n}function $t(t,r){if(!t)throw Error(r)}function tr(t){$t(t!==1/0,"Cannot perform this action with an infinite size.")}function rr(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
+ ;var er=Object.prototype.toString;function nr(t){if(!t||"object"!=typeof t||"[object Object]"!==er.call(t))return!1;t=Object.getPrototypeOf(t);if(null===t)return!0;for(var r=t,e=Object.getPrototypeOf(t);null!==e;)e=Object.getPrototypeOf(r=e);return r===t}function ir(t){return"object"==typeof t&&(A(t)||Array.isArray(t)||nr(t))}function or(r){try{return"string"==typeof r?JSON.stringify(r):r+""}catch(t){return JSON.stringify(r)}}function ur(t,r){return A(t)?t.has(r):ir(t)&&Q.call(t,r)}function sr(t,r,e){return A(t)?t.get(r,e):ur(t,r)?"function"==typeof t.get?t.get(r):t[r]:e}function ar(t){if(Array.isArray(t))return Zt(t);var r,e={};for(r in t)Q.call(t,r)&&(e[r]=t[r]);return e}function cr(t,r){if(!ir(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(r)}if(!Q.call(t,r))return t;t=ar(t);return Array.isArray(t)?t.splice(r,1):delete t[r],t}function fr(t,r,e){if(!ir(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(r,e)}if(Q.call(t,r)&&e===t[r])return t;t=ar(t);return t[r]=e,t}function hr(t,r,e,n){n||(n=e,e=void 0);n=function t(r,e,n,i,o,u){var s=e===v;if(i===n.length){var a=s?o:e,c=u(a);return c===a?e:c}if(!s&&!ir(e))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,i).map(or)+"]: "+e);var a=n[i];var c=s?v:sr(e,a,v);var u=t(c===v?r:A(c),c,n,i+1,o,u);return u===c?e:u===v?cr(e,a):fr(s?r?Hr():{}:e,a,u)}(A(t),t,rr(r),0,e,n);return n===v?e:n}function _r(t,r,e){return hr(t,r,v,function(){return e})}function pr(t,r){return _r(this,t,r)}function lr(t,r){return hr(t,r,function(){return v})}function vr(t){return lr(this,t)}function yr(t,r,e,n){return hr(t,[r],e,n)}function dr(t,r,e){return 1===arguments.length?t(this):yr(this,t,r,e)}function gr(t,r,e){return hr(this,t,r,e)}function mr(){for(var t=[],r=arguments.length;r--;
34
+ )t[r]=arguments[r];return zr(this,t)}function wr(t){for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return zr(this,r,t)}function zr(t,r,i){for(var e=[],n=0;n<r.length;n++){var o=O(r[n]);0!==o.size&&e.push(o)}return 0===e.length?t:0!==t.toSeq().size||t.__ownerID||1!==e.length?t.withMutations(function(n){for(var t=i?function(r,e){yr(n,e,v,function(t){return t===v?r:i(t,r,e)})}:function(t,r){n.set(r,t)},r=0;r<e.length;r++)e[r].forEach(t)}):t.constructor(e[0])}function Sr(t,r,e){return br(t,r,(i=e,function t(r,e,n){return ir(r)&&ir(e)&&function(t,r){return t=F(t),r=F(r),S(t)===S(r)&&a(t)===a(r)}(r,e)?br(r,[e],t):i?i(r,e,n):e}));var i}function br(n,t,i){if(!ir(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 r=Array.isArray(n),o=n,e=r?E:O,u=r?function(t){o===n&&(o=ar(o)),o.push(t)}:function(t,r){var e=Q.call(o,r),t=e&&i?i(o[r],t,r):t;e&&t===o[r]||(o===n&&(o=ar(o)),o[r]=t)},s=0;s<t.length;s++)e(t[s]).forEach(u);return o}function Ir(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Sr(this,t)}function Or(t){for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1];return Sr(this,r,t)}function Er(t){for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1];return hr(this,t,Hr(),function(t){return br(t,r)})}function jr(t){for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1];return hr(this,t,Hr(),function(t){return Sr(t,r)})}function qr(t){var r=this.asMutable();return t(r),r.wasAltered()?r.__ensureOwner(this.__ownerID):this}function Mr(){return this.__ownerID?this:this.__ensureOwner(new m)}function Dr(){return this.__ensureOwner()}function xr(){return this.__altered}var Ar=function(n){function t(r){return null==r?Hr():ct(r)&&!R(r)?r:Hr().withMutations(function(e){var t=n(r);tr(t.size),t.forEach(function(t,r){return e.set(r,t)})})}return n&&(t.__proto__=n),((
35
+ t.prototype=Object.create(n&&n.prototype)).constructor=t).of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Hr().withMutations(function(t){for(var r=0;r<e.length;r+=2){if(e.length<=r+1)throw Error("Missing value for key: "+e[r]);t.set(e[r],e[r+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(t,r){return this._root?this._root.get(0,void 0,t,r):r},t.prototype.set=function(t,r){return Jr(this,t,r)},t.prototype.remove=function(t){return Jr(this,t,v)},t.prototype.deleteAll=function(t){var e=I(t);return 0===e.size?this:this.withMutations(function(r){e.forEach(function(t){return r.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Hr()},t.prototype.sort=function(t){return ye(Wt(this,t))},t.prototype.sortBy=function(t,r){return ye(Wt(this,r,t))},t.prototype.map=function(n,i){var o=this;return this.withMutations(function(e){e.forEach(function(t,r){e.set(r,n.call(i,t,r,o))})})},t.prototype.__iterator=function(t,r){return new Br(this,t,r)},t.prototype.__iterate=function(r,t){var e=this,n=0;return this._root&&this._root.iterate(function(t){return n++,r(t[1],t[0],e)},t),n},t.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Nr(this.size,this._root,t,this.__hash):0===this.size?Hr():(this.__ownerID=t,this.__altered=!1,this)},t}(O);Ar.isMap=ct;var kr=Ar.prototype;kr[at]=!0,kr[r]=kr.remove,kr.removeAll=kr.deleteAll,kr.setIn=pr,kr.removeIn=kr.deleteIn=vr,kr.update=dr,kr.updateIn=gr,kr.merge=kr.concat=mr,kr.mergeWith=wr,kr.mergeDeep=Ir,kr.mergeDeepWith=Or,kr.mergeIn=Er,kr.mergeDeepIn=jr,kr.withMutations=qr,kr.wasAltered=xr,kr.asImmutable=Dr,kr["@@transducer/init"]=kr.asMutable=Mr,kr["@@transducer/step"]=function(t,r){return t.set(r[0],r[1])},kr["@@transducer/result"]=function(t){return t.asImmutable()};var Rr=function(t,r){this.ownerID=t,this.entries=r};Rr.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,
36
+ u=i.length;o<u;o++)if(_t(e,i[o][0]))return i[o][1];return n},Rr.prototype.update=function(t,r,e,n,i,o,u){for(var s=i===v,a=this.entries,c=0,f=a.length;c<f&&!_t(n,a[c][0]);c++);var h=c<f;if(h?a[c][1]===i:s)return this;if(_(u),!s&&h||_(o),!s||1!==a.length){if(!h&&!s&&Gr<=a.length)return function(t,r,e,n){t=t||new m;for(var i=new Lr(t,yt(e),[e,n]),o=0;o<r.length;o++){var u=r[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,n,i);u=t&&t===this.ownerID,o=u?a:Zt(a);return h?s?c===f-1?o.pop():o[c]=o.pop():o[c]=[n,i]:o.push([n,i]),u?(this.entries=o,this):new Rr(t,o)}};var Ur=function(t,r,e){this.ownerID=t,this.bitmap=r,this.nodes=e};Ur.prototype.get=function(t,r,e,n){void 0===r&&(r=yt(e));var i=1<<((0===t?r:r>>>t)&g),o=this.bitmap;return 0==(o&i)?n:this.nodes[Xr(o&i-1)].get(t+d,r,e,n)},Ur.prototype.update=function(t,r,e,n,i,o,u){void 0===e&&(e=yt(n));var s=(0===r?e:e>>>r)&g,a=1<<s,c=this.bitmap,f=0!=(c&a);if(!f&&i===v)return this;var h=Xr(c&a-1),_=this.nodes,p=f?_[h]:void 0,u=Vr(p,t,r+d,e,n,i,o,u);if(u===p)return this;if(!f&&u&&Zr<=_.length)return function(t,r,e,n,i){for(var o=0,u=Array(l),s=0;0!==e;s++,e>>>=1)u[s]=1&e?r[o++]:void 0;return u[n]=i,new Tr(t,o+1,u)}(t,_,c,s,u);if(f&&!u&&2===_.length&&Yr(_[1^h]))return _[1^h];if(f&&u&&1===_.length&&Yr(u))return u;s=t&&t===this.ownerID,a=f?u?c:c^a:c|a,u=f?u?Fr(_,h,u,s):function(t,r,e){var n=t.length-1;if(e&&r===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;u<n;u++)u===r&&(o=1),i[u]=t[u+o];return i}(_,h,s):function(t,r,e,n){var i=t.length+1;if(n&&r+1===i)return t[r]=e,t;for(var o=Array(i),u=0,s=0;s<i;s++)s===r?(o[s]=e,u=-1):o[s]=t[s+u];return o}(_,h,u,s);return s?(this.bitmap=a,this.nodes=u,this):new Ur(t,a,u)};var Tr=function(t,r,e){this.ownerID=t,this.count=r,this.nodes=e};Tr.prototype.get=function(t,r,e,n){void 0===r&&(r=yt(e));var i=this.nodes[(0===t?r:r>>>t)&g];return i?i.get(t+d,r,e,n):n},Tr.prototype.update=function(t,r,e,n,i,o,u){void 0===e&&(e=yt(n));var s=(0===r?e:e>>>r)&g,a=this.nodes,c=a[s];if(i===v&&!c)return this;o=Vr(c,t,r+d,e,n,i,o,u);if(o===c)return this
37
+ ;u=this.count;if(c){if(!o&&--u<$r)return function(t,r,e,n){for(var i=0,o=0,u=Array(e),s=0,a=1,c=r.length;s<c;s++,a<<=1){var f=r[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new Ur(t,i,u)}(t,a,u,s)}else u++;c=t&&t===this.ownerID,o=Fr(a,s,o,c);return c?(this.count=u,this.nodes=o,this):new Tr(t,u,o)};var Kr=function(t,r,e){this.ownerID=t,this.keyHash=r,this.entries=e};Kr.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(e,i[o][0]))return i[o][1];return n},Kr.prototype.update=function(t,r,e,n,i,o,u){void 0===e&&(e=yt(n));var s=i===v;if(e!==this.keyHash)return s?this:(_(u),_(o),Qr(this,t,r,e,[n,i]));for(var a=this.entries,c=0,f=a.length;c<f&&!_t(n,a[c][0]);c++);e=c<f;if(e?a[c][1]===i:s)return this;if(_(u),!s&&e||_(o),s&&2===f)return new Lr(t,this.keyHash,a[1^c]);u=t&&t===this.ownerID,o=u?a:Zt(a);return e?s?c===f-1?o.pop():o[c]=o.pop():o[c]=[n,i]:o.push([n,i]),u?(this.entries=o,this):new Kr(t,this.keyHash,o)};var Lr=function(t,r,e){this.ownerID=t,this.keyHash=r,this.entry=e};Lr.prototype.get=function(t,r,e,n){return _t(e,this.entry[0])?this.entry[1]:n},Lr.prototype.update=function(t,r,e,n,i,o,u){var s=i===v,a=_t(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(_(u),s?void _(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Lr(t,this.keyHash,[n,i]):(_(o),Qr(this,t,r,yt(n),[n,i])))},Rr.prototype.iterate=Kr.prototype.iterate=function(t,r){for(var e=this.entries,n=0,i=e.length-1;n<=i;n++)if(!1===t(e[r?i-n:n]))return!1},Ur.prototype.iterate=Tr.prototype.iterate=function(t,r){for(var e=this.nodes,n=0,i=e.length-1;n<=i;n++){var o=e[r?i-n:n];if(o&&!1===o.iterate(t,r))return!1}},Lr.prototype.iterate=function(t,r){return t(this.entry)};var Cr,Br=function(t){function r(t,r,e){this._type=r,this._reverse=e,this._stack=t._root&&Wr(t._root)}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).prototype.next=function(){for(var t=this._type,r=this._stack;r;){var e=r.node,n=r.index++,i=void 0;if(e.entry){if(0==n)return Pr(t,e.entry)}else if(e.entries){if(n<=(
38
+ i=e.entries.length-1))return Pr(t,e.entries[this._reverse?i-n:n])}else if(n<=(i=e.nodes.length-1)){n=e.nodes[this._reverse?i-n:n];if(n){if(n.entry)return Pr(t,n.entry);r=this._stack=Wr(n,r)}continue}r=this._stack=this._stack.__prev}return N()},r}(P);function Pr(t,r){return W(t,r[0],r[1])}function Wr(t,r){return{node:t,index:0,__prev:r}}function Nr(t,r,e,n){var i=Object.create(kr);return i.size=t,i._root=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}function Hr(){return Cr=Cr||Nr(0)}function Jr(t,r,e){if(t._root){var n=u(),i=u(),o=Vr(t._root,t.__ownerID,0,void 0,r,e,n,i);if(!i.value)return t;n=t.size+(n.value?e===v?-1:1:0)}else{if(e===v)return t;n=1,o=new Rr(t.__ownerID,[[r,e]])}return t.__ownerID?(t.size=n,t._root=o,t.__hash=void 0,t.__altered=!0,t):o?Nr(n,o):Hr()}function Vr(t,r,e,n,i,o,u,s){return t?t.update(r,e,n,i,o,u,s):o===v?t:(_(s),_(u),new Lr(r,n,[i,o]))}function Yr(t){return t.constructor===Lr||t.constructor===Kr}function Qr(t,r,e,n,i){if(t.keyHash===n)return new Kr(r,n,[t.entry,i]);var o=(0===e?t.keyHash:t.keyHash>>>e)&g,u=(0===e?n:n>>>e)&g,t=o==u?[Qr(t,r,e+d,n,i)]:(i=new Lr(r,n,i),o<u?[t,i]:[i,t]);return new Ur(r,1<<o|1<<u,t)}function Xr(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Fr(t,r,e,n){t=n?t:Zt(t);return t[r]=e,t}var Gr=l/4,Zr=l/2,$r=l/4,te="@@__IMMUTABLE_LIST__@@";function re(t){return!(!t||!t[te])}var ee=function(o){function t(t){var r=ce();if(null==t)return r;if(re(t))return t;var n=o(t),i=n.size;return 0===i?r:(tr(i),0<i&&i<l?ae(0,i,d,null,new ie(n.toArray())):r.withMutations(function(e){e.setSize(i),n.forEach(function(t,r){return e.set(r,t)})}))}return o&&(t.__proto__=o),((t.prototype=Object.create(o&&o.prototype)).constructor=t).of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(t,r){if(0<=(t=h(this,t))&&t<this.size){var e=_e(this,t+=this._origin);return e&&e.array[t&g]}return r},t.prototype.set=function(t,r){return function(t,r,e){if((r=h(t
39
+ ,r))!==r)return t;if(t.size<=r||r<0)return t.withMutations(function(t){r<0?pe(t,r).set(0,e):pe(t,0,r+1).set(r,e)});var n=t._tail,i=t._root,o=u();(r+=t._origin)>=le(t._capacity)?n=fe(n,t.__ownerID,0,r,e,o):i=fe(i,t.__ownerID,t._level,r,e,o);if(!o.value)return t;if(t.__ownerID)return t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t;return ae(t._origin,t._capacity,t._level,i,n)}(this,t,r)},t.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},t.prototype.insert=function(t,r){return this.splice(t,0,r)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=d,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):ce()},t.prototype.push=function(){var e=arguments,n=this.size;return this.withMutations(function(t){pe(t,0,n+e.length);for(var r=0;r<e.length;r++)t.set(n+r,e[r])})},t.prototype.pop=function(){return pe(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){pe(t,-e.length);for(var r=0;r<e.length;r++)t.set(r,e[r])})},t.prototype.shift=function(){return pe(this,1)},t.prototype.concat=function(){for(var t=arguments,e=[],r=0;r<arguments.length;r++){var n=t[r],n=o("string"!=typeof n&&H(n)?n:[n]);0!==n.size&&e.push(n)}return 0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(r){e.forEach(function(t){return t.forEach(function(t){return r.push(t)})})}):this.constructor(e[0])},t.prototype.setSize=function(t){return pe(this,0,t)},t.prototype.map=function(e,n){var i=this;return this.withMutations(function(t){for(var r=0;r<i.size;r++)t.set(r,e.call(n,t.get(r),r,i))})},t.prototype.slice=function(t,r){var e=this.size;return p(t,r,e)?this:pe(this,y(t,e),w(r,e))},t.prototype.__iterator=function(r,e){var n=e?this.size:0,i=se(this,e);return new P(function(){var t=i();return t===ue?N():W(r,e?--n:n++,t)})},t.prototype.__iterate=function(t,r){for(var e,n=r?this.size:0,i=se(this,r);(e=i())!==ue&&!1!==t(e,
40
+ r?--n:n++,this););return n},t.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ae(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?ce():(this.__ownerID=t,this.__altered=!1,this)},t}(E);ee.isList=re;var ne=ee.prototype;ne[te]=!0,ne[r]=ne.remove,ne.merge=ne.concat,ne.setIn=pr,ne.deleteIn=ne.removeIn=vr,ne.update=dr,ne.updateIn=gr,ne.mergeIn=Er,ne.mergeDeepIn=jr,ne.withMutations=qr,ne.wasAltered=xr,ne.asImmutable=Dr,ne["@@transducer/init"]=ne.asMutable=Mr,ne["@@transducer/step"]=function(t,r){return t.push(r)},ne["@@transducer/result"]=function(t){return t.asImmutable()};var ie=function(t,r){this.array=t,this.ownerID=r};ie.prototype.removeBefore=function(t,r,e){if(e===r?1<<r:0===this.array.length)return this;var n=e>>>r&g;if(this.array.length<=n)return new ie([],t);var i=0==n;if(0<r){var o,u=this.array[n];if((o=u&&u.removeBefore(t,r-d,e))===u&&i)return this}if(i&&!o)return this;var s=he(this,t);if(!i)for(var a=0;a<n;a++)s.array[a]=void 0;return o&&(s.array[n]=o),s},ie.prototype.removeAfter=function(t,r,e){if(e===(r?1<<r:0)||0===this.array.length)return this;var n=e-1>>>r&g;if(this.array.length<=n)return this;if(0<r){var i,o=this.array[n];if((i=o&&o.removeAfter(t,r-d,e))===o&&n==this.array.length-1)return this}t=he(this,t);return t.array.splice(1+n),i&&(t.array[n]=i),t};var oe,ue={};function se(t,s){var a=t._origin,c=t._capacity,o=le(c),u=t._tail;return f(t._root,t._level,0);function f(t,r,e){return 0===r?function(t,r){var e=r===o?u&&u.array:t&&t.array,n=a<r?0:a-r,i=c-r;l<i&&(i=l);return function(){if(n===i)return ue;var t=s?--i:n++;return e&&e[t]}}(t,e):function(t,r,e){var n,i=t&&t.array,o=a<e?0:a-e>>r,u=1+(c-e>>r);l<u&&(u=l);return function(){for(;;){if(n){var t=n();if(t!==ue)return t;n=null}if(o===u)return ue;t=s?--u:o++;n=f(i&&i[t],r-d,e+(t<<r))}}}(t,r,e)}}function ae(t,r,e,n,i,o,u){var s=Object.create(ne);return s.size=r-t,s._origin=t,s._capacity=r,s._level=e,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function ce(){return oe=oe||ae(
41
+ 0,0,d)}function fe(t,r,e,n,i,o){var u,s=n>>>e&g,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(0<e){var c=t&&t.array[s],n=fe(c,r,e-d,n,i,o);return n===c?t:((u=he(t,r)).array[s]=n,u)}return a&&t.array[s]===i?t:(o&&_(o),u=he(t,r),void 0===i&&s==u.array.length-1?u.array.pop():u.array[s]=i,u)}function he(t,r){return r&&t&&r===t.ownerID?t:new ie(t?t.array.slice():[],r)}function _e(t,r){if(r>=le(t._capacity))return t._tail;if(r<1<<t._level+d){for(var e=t._root,n=t._level;e&&0<n;)e=e.array[r>>>n&g],n-=d;return e}}function pe(t,r,e){void 0!==r&&(r|=0),void 0!==e&&(e|=0);var n=t.__ownerID||new m,i=t._origin,o=t._capacity,u=i+r,s=void 0===e?o:e<0?o+e:i+e;if(u===i&&s===o)return t;if(s<=u)return t.clear();for(var a=t._level,c=t._root,f=0;u+f<0;)c=new ie(c&&c.array.length?[void 0,c]:[],n),f+=1<<(a+=d);f&&(u+=f,i+=f,s+=f,o+=f);for(var h=le(o),_=le(s);1<<a+d<=_;)c=new ie(c&&c.array.length?[c]:[],n),a+=d;r=t._tail,e=_<h?_e(t,s-1):h<_?new ie([],n):r;if(r&&h<_&&u<o&&r.array.length){for(var p=c=he(c,n),l=a;d<l;l-=d)var v=h>>>l&g,p=p.array[v]=he(p.array[v],n);p.array[h>>>d&g]=r}if(s<o&&(e=e&&e.removeAfter(n,0,s)),_<=u)u-=_,s-=_,a=d,c=null,e=e&&e.removeBefore(n,0,u);else if(i<u||_<h){for(f=0;c;){var y=u>>>a&g;if(y!=_>>>a&g)break;y&&(f+=(1<<a)*y),a-=d,c=c.array[y]}c&&i<u&&(c=c.removeBefore(n,a,u-f)),c&&_<h&&(c=c.removeAfter(n,a,_-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=e,t.__hash=void 0,t.__altered=!0,t):ae(u,s,a,c,e)}function le(t){return t<l?0:t-1>>>d<<d}var ve,ye=function(t){function r(r){return null==r?ge():ft(r)?r:ge().withMutations(function(e){var t=O(r);tr(t.size),t.forEach(function(t,r){return e.set(r,t)})})}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).of=function(){return this(arguments)},r.prototype.toString=function(){return this.__toString("OrderedMap {","}")},r.prototype.get=function(t,r){t=this._map.get(t);return void 0!==t?this._list.get(t)[1]:r},r.prototype.clear=function(){
42
+ return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ge()},r.prototype.set=function(t,r){return me(this,t,r)},r.prototype.remove=function(t){return me(this,t,v)},r.prototype.__iterate=function(r,t){var e=this;return this._list.__iterate(function(t){return t&&r(t[1],t[0],e)},t)},r.prototype.__iterator=function(t,r){return this._list.fromEntrySeq().__iterator(t,r)},r.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._map.__ensureOwner(t),e=this._list.__ensureOwner(t);return t?de(r,e,t,this.__hash):0===this.size?ge():(this.__ownerID=t,this.__altered=!1,this._map=r,this._list=e,this)},r}(Ar);function de(t,r,e,n){var i=Object.create(ye.prototype);return i.size=t?t.size:0,i._map=t,i._list=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}function ge(){return ve=ve||de(Hr(),ce())}function me(t,r,e){var n,i,o=t._map,u=t._list,s=o.get(r),a=void 0!==s;if(e===v){if(!a)return t;l<=u.size&&2*o.size<=u.size?(n=(i=u.filter(function(t,r){return void 0!==t&&s!==r})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(r),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(e===u.get(s)[1])return t;n=o,i=u.set(s,[r,e])}else n=o.set(r,u.size),i=u.set(u.size,[r,e]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t.__altered=!0,t):de(n,i)}ye.isOrderedMap=ft,ye.prototype[k]=!0,ye.prototype[r]=ye.prototype.remove;var we="@@__IMMUTABLE_STACK__@@";function ze(t){return!(!t||!t[we])}var Se=function(i){function t(t){return null==t?Ee():ze(t)?t:Ee().pushAll(t)}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(t,r){var e=this._head;for(t=h(this,t);e&&t--;)e=e.next;return e?e.value:r},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var t=arguments;if(
43
+ 0===arguments.length)return this;for(var r=this.size+arguments.length,e=this._head,n=arguments.length-1;0<=n;n--)e={value:t[n],next:e};return this.__ownerID?(this.size=r,this._head=e,this.__hash=void 0,this.__altered=!0,this):Oe(r,e)},t.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;if(0===this.size&&ze(t))return t;tr(t.size);var r=this.size,e=this._head;return t.__iterate(function(t){r++,e={value:t,next:e}},!0),this.__ownerID?(this.size=r,this._head=e,this.__hash=void 0,this.__altered=!0,this):Oe(r,e)},t.prototype.pop=function(){return this.slice(1)},t.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):Ee()},t.prototype.slice=function(t,r){if(p(t,r,this.size))return this;var e=y(t,this.size);if(w(r,this.size)!==this.size)return i.prototype.slice.call(this,t,r);for(var r=this.size-e,n=this._head;e--;)n=n.next;return this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):Oe(r,n)},t.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Oe(this.size,this._head,t,this.__hash):0===this.size?Ee():(this.__ownerID=t,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new tt(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(r,t){if(t)return new tt(this.toArray()).__iterator(r,t);var e=0,n=this._head;return new P(function(){if(n){var t=n.value;return n=n.next,W(r,e++,t)}return N()})},t}(E);Se.isStack=ze;var be,Ie=Se.prototype;function Oe(t,r,e,n){var i=Object.create(Ie);return i.size=t,i._head=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}function Ee(){return be=be||Oe(0)}Ie[we]=!0,Ie.shift=Ie.pop,Ie.unshift=Ie.push,Ie.unshiftAll=Ie.pushAll,Ie.withMutations=qr,Ie.wasAltered=xr,Ie.asImmutable=Dr,Ie["@@transducer/init"]=Ie.asMutable=Mr,Ie["@@transducer/step"]=function(t,r){return t.unshift(r)},Ie["@@transducer/result"]=function(t){
44
+ return t.asImmutable()};var je="@@__IMMUTABLE_SET__@@";function qe(t){return!(!t||!t[je])}function Me(t){return qe(t)&&R(t)}function De(e,t){if(e===t)return!0;if(!f(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||S(e)!==S(t)||R(e)!==R(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!b(e);if(R(e)){var i=e.entries();return t.every(function(t,r){var e=i.next().value;return e&&_t(e[1],t)&&(n||_t(e[0],r))})&&i.next().done}var r,o=!1;void 0===e.size&&(void 0===t.size?"function"==typeof e.cacheResult&&e.cacheResult():(o=!0,r=e,e=t,t=r));var u=!0,t=t.__iterate(function(t,r){if(n?!e.has(t):o?!_t(t,e.get(r,v)):!_t(e.get(r,v),t))return u=!1});return u&&e.size===t}function xe(r,e){function t(t){r.prototype[t]=e[t]}return Object.keys(e).forEach(t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(t),r}function Ae(t){if(!t||"object"!=typeof t)return t;if(!f(t)){if(!ir(t))return t;t=F(t)}if(a(t)){var e={};return t.__iterate(function(t,r){e[r]=Ae(t)}),e}var r=[];return t.__iterate(function(t){r.push(Ae(t))}),r}var ke=function(n){function r(e){return null==e?Le():qe(e)&&!R(e)?e:Le().withMutations(function(r){var t=n(e);tr(t.size),t.forEach(function(t){return r.add(t)})})}return n&&(r.__proto__=n),((r.prototype=Object.create(n&&n.prototype)).constructor=r).of=function(){return this(arguments)},r.fromKeys=function(t){return this(O(t).keySeq())},r.intersect=function(t){return(t=I(t).toArray()).length?Ue.intersect.apply(r(t.pop()),t):Le()},r.union=function(t){return(t=I(t).toArray()).length?Ue.union.apply(r(t.pop()),t):Le()},r.prototype.toString=function(){return this.__toString("Set {","}")},r.prototype.has=function(t){return this._map.has(t)},r.prototype.add=function(t){return Te(this,this._map.set(t,t))},r.prototype.remove=function(t){return Te(this,this._map.remove(t))},r.prototype.clear=function(){return Te(this,this._map.clear())},r.prototype.map=function(e,n){var i=this,o=!1,t=Te(this,this._map.mapEntries(function(t){
45
+ var r=t[1],t=e.call(n,r,r,i);return t!==r&&(o=!0),[t,t]},n));return o?t:this},r.prototype.union=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(r){for(var t=0;t<e.length;t++)"string"==typeof e[t]?r.add(e[t]):n(e[t]).forEach(function(t){return r.add(t)})}):this.constructor(e[0])},r.prototype.intersect=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(0===t.length)return this;t=t.map(function(t){return n(t)});var e=[];return this.forEach(function(r){t.every(function(t){return t.includes(r)})||e.push(r)}),this.withMutations(function(r){e.forEach(function(t){r.remove(t)})})},r.prototype.subtract=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(0===t.length)return this;t=t.map(function(t){return n(t)});var e=[];return this.forEach(function(r){t.some(function(t){return t.includes(r)})&&e.push(r)}),this.withMutations(function(r){e.forEach(function(t){r.remove(t)})})},r.prototype.sort=function(t){return nn(Wt(this,t))},r.prototype.sortBy=function(t,r){return nn(Wt(this,r,t))},r.prototype.wasAltered=function(){return this._map.wasAltered()},r.prototype.__iterate=function(r,t){var e=this;return this._map.__iterate(function(t){return r(t,t,e)},t)},r.prototype.__iterator=function(t,r){return this._map.__iterator(t,r)},r.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._map.__ensureOwner(t);return t?this.__make(r,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=r,this)},r}(j);ke.isSet=qe;var Re,Ue=ke.prototype;function Te(t,r){return t.__ownerID?(t.size=r.size,t._map=r,t):r===t._map?t:0===r.size?t.__empty():t.__make(r)}function Ke(t,r){var e=Object.create(Ue);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}function Le(){return Re=Re||Ke(Hr())}Ue[je]=!0,Ue[r]=Ue.remove,Ue.merge=Ue.concat=Ue.union,Ue.withMutations=qr,Ue.asImmutable=Dr,Ue["@@transducer/init"]=Ue.asMutable=Mr,
46
+ Ue["@@transducer/step"]=function(t,r){return t.add(r)},Ue["@@transducer/result"]=function(t){return t.asImmutable()},Ue.__empty=Le,Ue.__make=Ke;var Ce,Be=function(t){function n(t,r,e){if(!(this instanceof n))return new n(t,r,e);if($t(0!==e,"Cannot step a Range by 0"),t=t||0,void 0===r&&(r=1/0),e=void 0===e?1:Math.abs(e),r<t&&(e=-e),this._start=t,this._end=r,this._step=e,this.size=Math.max(0,1+Math.ceil((r-t)/e-1)),0===this.size){if(Ce)return Ce;Ce=this}}return t&&(n.__proto__=t),((n.prototype=Object.create(t&&t.prototype)).constructor=n).prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},n.prototype.get=function(t,r){return this.has(t)?this._start+h(this,t)*this._step:r},n.prototype.includes=function(t){t=(t-this._start)/this._step;return 0<=t&&t<this.size&&t==Math.floor(t)},n.prototype.slice=function(t,r){return p(t,r,this.size)?this:(t=y(t,this.size),(r=w(r,this.size))<=t?new n(0,0):new n(this.get(t,this._end),this.get(r,this._end),this._step))},n.prototype.indexOf=function(t){t-=this._start;if(t%this._step==0){t=t/this._step;if(0<=t&&t<this.size)return t}return-1},n.prototype.lastIndexOf=function(t){return this.indexOf(t)},n.prototype.__iterate=function(t,r){for(var e=this.size,n=this._step,i=r?this._start+(e-1)*n:this._start,o=0;o!==e&&!1!==t(i,r?e-++o:o++,this);)i+=r?-n:n;return o},n.prototype.__iterator=function(r,e){var n=this.size,i=this._step,o=e?this._start+(n-1)*i:this._start,u=0;return new P(function(){if(u===n)return N();var t=o;return o+=e?-i:i,W(r,e?n-++u:u++,t)})},n.prototype.equals=function(t){return t instanceof n?this._start===t._start&&this._end===t._end&&this._step===t._step:De(this,t)},n}(Z);function Pe(t,r,e){for(var n=rr(r),i=0;i!==n.length;)if((t=sr(t,n[i++],v))===v)return e;return t}function We(t,r){return Pe(this,t,r)}function Ne(t,r){return Pe(t,r,v)!==v}function He(){tr(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e}I.isIterable=f,I.isKeyed=a,I.isIndexed=S,
47
+ I.isAssociative=b,I.isOrdered=R,I.Iterator=P,xe(I,{toArray:function(){tr(this.size);var e=Array(this.size||0),n=a(this),i=0;return this.__iterate(function(t,r){e[i++]=n?[r,t]:t}),e},toIndexedSeq:function(){return new At(this)},toJS:function(){return Ae(this)},toKeyedSeq:function(){return new xt(this,!0)},toMap:function(){return Ar(this.toKeyedSeq())},toObject:He,toOrderedMap:function(){return ye(this.toKeyedSeq())},toOrderedSet:function(){return nn(a(this)?this.valueSeq():this)},toSet:function(){return ke(a(this)?this.valueSeq():this)},toSetSeq:function(){return new kt(this)},toSeq:function(){return S(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Se(a(this)?this.valueSeq():this)},toList:function(){return ee(a(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,r){return 0===this.size?t+r:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+r},concat:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Vt(this,function(t,r){var e=a(t);if(0===(r=[t].concat(r).map(function(t){return f(t)?e&&(t=O(t)):t=e?ot(t):ut(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size})).length)return t;if(1===r.length){var n=r[0];if(n===t||e&&a(n)||S(t)&&S(n))return n}return n=new tt(r),e?n=n.toKeyedSeq():S(t)||(n=n.toSetSeq()),(n=n.flatten(!0)).size=r.reduce(function(t,r){if(void 0!==t){r=r.size;if(void 0!==r)return t+r}},0),n}(this,t))},includes:function(r){return this.some(function(t){return _t(t,r)})},entries:function(){return this.__iterator(K)},every:function(n,i){tr(this.size);var o=!0;return this.__iterate(function(t,r,e){if(!n.call(i,t,r,e))return o=!1}),o},filter:function(t,r){return Vt(this,Lt(this,t,r,!0))},partition:function(t,r){return function(e,n,i){var o=a(e),u=[[],[]];e.__iterate(function(t,r){u[n.call(i,t,r,e)?1:0].push(o?[r,t]:t)});var r=Qt(e);return u.map(function(t){return Vt(e,r(t))})}(this,t,r)},find:function(t,r,e){r=this.findEntry(t,r);return r?r[1]:e},forEach:function(t,r){
48
+ return tr(this.size),this.__iterate(r?t.bind(r):t)},join:function(r){tr(this.size),r=void 0!==r?""+r:",";var e="",n=!0;return this.__iterate(function(t){n?n=!1:e+=r,e+=null!=t?""+t:""}),e},keys:function(){return this.__iterator(U)},map:function(t,r){return Vt(this,Tt(this,t,r))},reduce:function(t,r,e){return Xe(this,t,r,e,arguments.length<2,!1)},reduceRight:function(t,r,e){return Xe(this,t,r,e,arguments.length<2,!0)},reverse:function(){return Vt(this,Kt(this,!0))},slice:function(t,r){return Vt(this,Ct(this,t,r,!0))},some:function(n,i){tr(this.size);var o=!1;return this.__iterate(function(t,r,e){if(n.call(i,t,r,e))return!(o=!0)}),o},sort:function(t){return Vt(this,Wt(this,t))},values:function(){return this.__iterator(T)},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,r){return c(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return e=this,n=t,i=r,o=Ar().asMutable(),e.__iterate(function(t,r){o.update(n.call(i,t,r,e),0,function(t){return t+1})}),o.asImmutable();var e,n,i,o},equals:function(t){return De(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var r=t.toSeq().map(Ge).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(Ze(t),r)},findEntry:function(n,i,t){var o=t;return this.__iterate(function(t,r,e){if(n.call(i,t,r,e))return!(o=[r,t])}),o},findKey:function(t,r){r=this.findEntry(t,r);return r&&r[0]},findLast:function(t,r,e){return this.toKeyedSeq().reverse().find(t,r,e)},findLastEntry:function(t,r,e){return this.toKeyedSeq().reverse().findEntry(t,r,e)},findLastKey:function(t,r){return this.toKeyedSeq().reverse().findKey(t,r)},first:function(t){return this.find(e,null,t)},flatMap:function(t,r){return Vt(this,(n=t,i=r,o=Qt(e=this),e.toSeq().map(function(t,r){return o(n.call(i,t,r,e))}).flatten(!0)));var e,n,i,o},flatten:function(t){return Vt(this,Pt(this,t,!0))},fromEntrySeq:function(){return new Rt(this)},
49
+ get:function(e,t){return this.find(function(t,r){return _t(r,e)},void 0,t)},getIn:We,groupBy:function(t,r){return function(n,t,i){var o=a(n),u=(R(n)?ye:Ar)().asMutable();n.__iterate(function(r,e){u.update(t.call(i,r,e,n),function(t){return(t=t||[]).push(o?[e,r]:r),t})});var r=Qt(n);return u.map(function(t){return Vt(n,r(t))}).asImmutable()}(this,t,r)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return Ne(this,t)},isSubset:function(r){return r="function"==typeof r.includes?r:I(r),this.every(function(t){return r.includes(t)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:I(t)).isSubset(this)},keyOf:function(r){return this.findKey(function(t){return _t(t,r)})},keySeq:function(){return this.toSeq().map(Fe).toIndexedSeq()},last:function(t){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,r){return Nt(this,r,t)},min:function(t){return Nt(this,t?$e(t):rn)},minBy:function(t,r){return Nt(this,r?$e(r):rn,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,r){return Vt(this,Bt(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(Ze(t),r)},sortBy:function(t,r){return Vt(this,Wt(this,r,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,r){return Vt(this,(s=t,a=r,(r=Xt(e=this)).__iterateUncached=function(n,t){var i=this;if(t)return this.cacheResult().__iterate(n,t);var o=0;return e.__iterate(function(t,r,e){return s.call(a,t,r,e)&&++o&&n(t,r,i)}),o},r.__iteratorUncached=function(n,t){var i=this;if(t)return this.cacheResult().__iterator(n,t);var o=e.__iterator(K,t),u=!0;return new P(function(){if(!u)return N();var t=o.next();if(t.done)return t;var r=t.value,e=r[0],r=r[1];return s.call(a,r,e,i)?n===K?t:W(n,e,r,t):(u=!1,N())})},r));var e,s,a},
50
+ takeUntil:function(t,r){return this.takeWhile(Ze(t),r)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var r=R(t),e=a(t),n=r?1:0;return function(t,r){return r=pt(r,3432918353),r=pt(r<<15|r>>>-15,461845907),r=pt(r<<13|r>>>-13,5),r=pt((r=(r+3864292196|0)^t)^r>>>16,2246822507),r=lt((r=pt(r^r>>>13,3266489909))^r>>>16)}(t.__iterate(e?r?function(t,r){n=31*n+en(yt(t),yt(r))|0}:function(t,r){n=n+en(yt(t),yt(r))|0}:r?function(t){n=31*n+yt(t)|0}:function(t){n=n+yt(t)|0}),n)}(this))}});var Je=I.prototype;Je[o]=!0,Je[B]=Je.values,Je.toJSON=Je.toArray,Je.__toStringMapper=or,Je.inspect=Je.toSource=function(){return""+this},Je.chain=Je.flatMap,Je.contains=Je.includes,xe(O,{flip:function(){return Vt(this,Ut(this))},mapEntries:function(e,n){var i=this,o=0;return Vt(this,this.toSeq().map(function(t,r){return e.call(n,[r,t],o++,i)}).fromEntrySeq())},mapKeys:function(e,n){var i=this;return Vt(this,this.toSeq().flip().map(function(t,r){return e.call(n,t,r,i)}).flip())}});var Ve=O.prototype;Ve[s]=!0,Ve[B]=Je.entries,Ve.toJSON=He,Ve.__toStringMapper=function(t,r){return or(r)+": "+or(t)},xe(E,{toKeyedSeq:function(){return new xt(this,!1)},filter:function(t,r){return Vt(this,Lt(this,t,r,!1))},findIndex:function(t,r){r=this.findEntry(t,r);return r?r[0]:-1},indexOf:function(t){t=this.keyOf(t);return void 0===t?-1:t},lastIndexOf:function(t){t=this.lastKeyOf(t);return void 0===t?-1:t},reverse:function(){return Vt(this,Kt(this,!1))},slice:function(t,r){return Vt(this,Ct(this,t,r,!1))},splice:function(t,r){var e=arguments.length;if(r=Math.max(r||0,0),0===e||2===e&&!r)return this;t=y(t,t<0?this.count():this.size);var n=this.slice(0,t);return Vt(this,1===e?n:n.concat(Zt(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){r=this.findLastEntry(t,r);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Vt(this,Pt(this,t,!1))},get:function(e,t){return(e=h(this,e)
51
+ )<0||this.size===1/0||void 0!==this.size&&this.size<e?t:this.find(function(t,r){return r===e},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(r,t){var e=this,n=0;return o.__iterate(function(t){return(!n||!1!==r(u,n++,e))&&!1!==r(t,n++,e)},t),n},t.__iteratorUncached=function(t,r){var e,n=o.__iterator(T,r),i=0;return new P(function(){return(!e||i%2)&&(e=n.next()).done?e:i%2?W(t,i++,u):W(t,i++,e.value,e)})},t));var o,u},interleave:function(){var t=[this].concat(Zt(arguments)),r=Jt(this.toSeq(),Z.of,t),e=r.flatten(!0);return r.size&&(e.size=r.size*t.length),Vt(this,e)},keySeq:function(){return Be(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return Vt(this,Bt(this,t,r,!1))},zip:function(){var t=[this].concat(Zt(arguments));return Vt(this,Jt(this,tn,t))},zipAll:function(){var t=[this].concat(Zt(arguments));return Vt(this,Jt(this,tn,t,!0))},zipWith:function(t){var r=Zt(arguments);return Vt(r[0]=this,Jt(this,t,r))}});var Ye=E.prototype;Ye[z]=!0,Ye[k]=!0,xe(j,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Qe=j.prototype;function Xe(t,n,i,o,u,r){return tr(t.size),t.__iterate(function(t,r,e){i=u?(u=!1,t):n.call(o,i,t,r,e)},r),i}function Fe(t,r){return r}function Ge(t,r){return[r,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function $e(t){return function(){return-t.apply(this,arguments)}}function tn(){return Zt(arguments)}function rn(t,r){return t<r?1:r<t?-1:0}function en(t,r){return t^r+2654435769+(t<<6)+(t>>2)|0}Qe.has=Je.includes,Qe.contains=Qe.includes,Qe.keys=Qe.values,xe(G,Ve),xe(Z,Ye),xe($,Qe);var nn=function(t){function r(e){return null==e?an():Me(e)?e:an().withMutations(function(r){var t=j(e);tr(t.size),t.forEach(function(t){return r.add(t)})})}return t&&(r.__proto__=t),((
52
+ r.prototype=Object.create(t&&t.prototype)).constructor=r).of=function(){return this(arguments)},r.fromKeys=function(t){return this(O(t).keySeq())},r.prototype.toString=function(){return this.__toString("OrderedSet {","}")},r}(ke);nn.isOrderedSet=Me;var on,un=nn.prototype;function sn(t,r){var e=Object.create(un);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}function an(){return on=on||sn(ge())}un[k]=!0,un.zip=Ye.zip,un.zipWith=Ye.zipWith,un.zipAll=Ye.zipAll,un.__empty=an,un.__make=sn;Ye=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 r=Object.keys(u),e=f._indices={};f._name=s,f._keys=r,f._defaultValues=u;for(var i=0;i<r.length;i++){var o=r[i];e[o]=i,f[o]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+hn(this)+' with property "'+o+'" since that property name is part of the Record API.'):function(t,r){try{Object.defineProperty(t,r,{get:function(){return this.get(r)},set:function(t){$t(this.__ownerID,"Cannot set on an immutable record."),this.set(r,t)}})}catch(t){}}(f,o)}}return this.__ownerID=void 0,this._values=ee().withMutations(function(e){e.setSize(n._keys.length),O(t).forEach(function(t,r){e.set(n._indices[r],t===n._defaultValues[r]?void 0:t)})}),this},f=c.prototype=Object.create(cn);return f.constructor=c,s&&(c.displayName=s),c};Ye.prototype.toString=function(){for(var t,r=hn(this)+" { ",e=this._keys,n=0,i=e.length;n!==i;n++)r+=(n?", ":"")+(t=e[n])+": "+or(this.get(t));return r+" }"},Ye.prototype.equals=function(t){return this===t||x(t)&&_n(this).equals(_n(t))},
53
+ Ye.prototype.hashCode=function(){return _n(this).hashCode()},Ye.prototype.has=function(t){return this._indices.hasOwnProperty(t)},Ye.prototype.get=function(t,r){if(!this.has(t))return r;r=this._values.get(this._indices[t]);return void 0===r?this._defaultValues[t]:r},Ye.prototype.set=function(t,r){if(this.has(t)){r=this._values.set(this._indices[t],r===this._defaultValues[t]?void 0:r);if(r!==this._values&&!this.__ownerID)return fn(this,r)}return this},Ye.prototype.remove=function(t){return this.set(t)},Ye.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:fn(this,t)},Ye.prototype.wasAltered=function(){return this._values.wasAltered()},Ye.prototype.toSeq=function(){return _n(this)},Ye.prototype.toJS=function(){return Ae(this)},Ye.prototype.entries=function(){return this.__iterator(K)},Ye.prototype.__iterator=function(t,r){return _n(this).__iterator(t,r)},Ye.prototype.__iterate=function(t,r){return _n(this).__iterate(t,r)},Ye.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?fn(this,r,t):(this.__ownerID=t,this._values=r,this)},Ye.isRecord=x,Ye.getDescriptiveName=hn;var cn=Ye.prototype;function fn(t,r,e){t=Object.create(Object.getPrototypeOf(t));return t._values=r,t.__ownerID=e,t}function hn(t){return t.constructor.displayName||t.constructor.name||"Record"}function _n(r){return ot(r._keys.map(function(t){return[t,r.get(t)]}))}cn[D]=!0,cn[r]=cn.remove,cn.deleteIn=cn.removeIn=vr,cn.getIn=We,cn.hasIn=Je.hasIn,cn.merge=mr,cn.mergeWith=wr,cn.mergeIn=Er,cn.mergeDeep=Ir,cn.mergeDeepWith=Or,cn.mergeDeepIn=jr,cn.setIn=pr,cn.update=dr,cn.updateIn=gr,cn.withMutations=qr,cn.asMutable=Mr,cn.asImmutable=Dr,cn[B]=cn.entries,cn.toJSON=cn.toObject=Je.toObject,cn.inspect=cn.toSource=function(){return""+this};var pn,B=function(t){function n(t,r){if(!(this instanceof n))return new n(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(pn)return pn;pn=this}}return t&&(n.__proto__=t),((
54
+ 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,r){return this.has(t)?this._value:r},n.prototype.includes=function(t){return _t(this._value,t)},n.prototype.slice=function(t,r){var e=this.size;return p(t,r,e)?this:new n(this._value,w(r,e)-y(t,e))},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,r){for(var e=this.size,n=0;n!==e&&!1!==t(this._value,r?e-++n:n++,this););return n},n.prototype.__iterator=function(t,r){var e=this,n=this.size,i=0;return new P(function(){return i===n?N():W(t,r?n-++i:i++,e._value)})},n.prototype.equals=function(t){return t instanceof n?_t(this._value,t._value):De(t)},n}(Z);function ln(t,r){return S(r)?r.toList():a(r)?r.toMap():r.toSet()}Je=I;t.Collection=I,t.Iterable=Je,t.List=ee,t.Map=Ar,t.OrderedMap=ye,t.OrderedSet=nn,t.PairSorting={LeftThenRight:-1,RightThenLeft:1},t.Range=Be,t.Record=Ye,t.Repeat=B,t.Seq=F,t.Set=ke,t.Stack=Se,t.fromJS=function(t,r){return function e(n,i,o,t,u,r){if("string"!=typeof o&&!A(o)&&(X(o)||H(o)||nr(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(r,t,F(o).map(function(t,r){return e(n,i,t,r,u,o)}),u&&u.slice());return n.pop(),u&&u.pop(),t}return o}([],r||ln,t,"",r&&2<r.length?[]:void 0,{"":t})},t.get=sr,t.getIn=Pe,t.has=ur,t.hasIn=Ne,t.hash=yt,t.is=_t,t.isAssociative=b,t.isCollection=f,t.isImmutable=A,t.isIndexed=S,t.isKeyed=a,t.isList=re,t.isMap=ct,t.isOrdered=R,t.isOrderedMap=ft,t.isOrderedSet=Me,t.isPlainObject=nr,t.isRecord=x,t.isSeq=M,t.isSet=qe,t.isStack=ze,t.isValueObject=ht,t.merge=function(t){for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1];return br(t,r)},t.mergeDeep=function(t){for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1]
55
+ ;return Sr(t,r)},t.mergeDeepWith=function(t,r){for(var e=[],n=arguments.length-2;0<n--;)e[n]=arguments[n+2];return Sr(r,e,t)},t.mergeWith=function(t,r){for(var e=[],n=arguments.length-2;0<n--;)e[n]=arguments[n+2];return br(r,e,t)},t.remove=cr,t.removeIn=lr,t.set=fr,t.setIn=_r,t.update=yr,t.updateIn=hr,t.version="5.0.0-beta.1",Object.defineProperty(t,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "immutable",
3
- "version": "4.3.3",
3
+ "version": "5.0.0-beta.1",
4
4
  "description": "Immutable Data Collections",
5
5
  "license": "MIT",
6
6
  "homepage": "https://immutable-js.com",
@@ -16,9 +16,11 @@
16
16
  "url": "https://github.com/immutable-js/immutable-js/issues"
17
17
  },
18
18
  "main": "dist/immutable.js",
19
- "module": "dist/immutable.es.js",
20
- "sideEffects": false,
19
+ "module": "dist/es/Immutable.js",
21
20
  "types": "dist/immutable.d.ts",
21
+ "sideEffects": [
22
+ "./src/CollectionImpl.js"
23
+ ],
22
24
  "files": [
23
25
  "dist",
24
26
  "README.md",