Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@minadmin/redux-immutable-ts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@minadmin/redux-immutable-ts - npm Package Compare versions

Comparing version 0.1.1 to 0.2.1

2

dist/redux-immutable-ts.min.js

@@ -1,1 +0,1 @@

!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t=t||self).Redux={})}(this,(function(t){"use strict";var r=5,e=1<<r,n=e-1,i={};function o(t){t&&(t.value=!0)}function u(){}function s(t){return void 0===t.size&&(t.size=t.__iterate(c)),t.size}function a(t,r){if("number"!=typeof r){var e=r>>>0;if(""+e!==r||4294967295===e)return NaN;r=e}return 0>r?s(t)+r:r}function c(){return!0}function f(t,r,e){return(0===t&&!l(t)||void 0!==e&&-e>=t)&&(void 0===r||void 0!==e&&r>=e)}function h(t,r){return p(t,r,0)}function _(t,r){return p(t,r,r)}function p(t,r,e){return void 0===t?e:l(t)?r===1/0?r:0|Math.max(0,r+t):void 0===r||r===t?t:0|Math.min(r,t)}function l(t){return 0>t||0===t&&1/t==-1/0}var v="@@__IMMUTABLE_ITERABLE__@@";function y(t){return!(!t||!t[v])}var d="@@__IMMUTABLE_KEYED__@@";function g(t){return!(!t||!t[d])}var w="@@__IMMUTABLE_INDEXED__@@";function m(t){return!(!t||!t[w])}function z(t){return g(t)||m(t)}var S=function(t){return y(t)?t:Q(t)},I=function(t){function r(t){return g(t)?t:X(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r}(S),b=function(t){function r(t){return m(t)?t:F(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r}(S),O=function(t){function r(t){return y(t)&&!z(t)?t:G(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r}(S);S.Keyed=I,S.Indexed=b,S.Set=O;var E="@@__IMMUTABLE_SEQ__@@";function M(t){return!(!t||!t[E])}var q="@@__IMMUTABLE_RECORD__@@";function D(t){return!(!t||!t[q])}function A(t){return y(t)||D(t)}var x="@@__IMMUTABLE_ORDERED__@@";function j(t){return!(!t||!t[x])}var k=0,R=1,U=2,K="function"==typeof Symbol&&Symbol.iterator,T="@@iterator",L=K||T,C=function(t){this.next=t};function B(t,r,e,n){var i=0===t?r:1===t?e:[r,e];return n?n.value=i:n={value:i,done:!1},n}function W(){return{value:void 0,done:!0}}function N(t){return!!J(t)}function P(t){return t&&"function"==typeof t.next}function H(t){var r=J(t);return r&&r.call(t)}function J(t){var r=t&&(K&&t[K]||t[T]);if("function"==typeof r)return r}C.prototype.toString=function(){return"[Iterator]"},C.KEYS=k,C.VALUES=R,C.ENTRIES=U,C.prototype.inspect=C.prototype.toSource=function(){return""+this},C.prototype[L]=function(){return this};var V=Object.prototype.hasOwnProperty;function Y(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var Q=function(t){function r(t){return null==t?et():A(t)?t.toSeq():function(t){var r=ot(t);if(r)return r;if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,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(t,r){var e=this._cache;if(e){var n=e.length,i=0;return new C((function(){if(i===n)return{value:void 0,done:!0};var o=e[r?n-++i:i++];return B(t,o[0],o[1])}))}return this.__iteratorUncached(t,r)},r}(S),X=function(t){function r(t){return null==t?et().toKeyedSeq():y(t)?g(t)?t.toSeq():t.fromEntrySeq():D(t)?t.toSeq():nt(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.toKeyedSeq=function(){return this},r}(Q),F=function(t){function r(t){return null==t?et():y(t)?g(t)?t.entrySeq():t.toIndexedSeq():D(t)?t.toSeq().entrySeq():it(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return r(arguments)},r.prototype.toIndexedSeq=function(){return this},r.prototype.toString=function(){return this.__toString("Seq [","]")},r}(Q),G=function(t){function r(t){return(y(t)&&!z(t)?t:F(t)).toSetSeq()}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return r(arguments)},r.prototype.toSetSeq=function(){return this},r}(Q);Q.isSeq=M,Q.Keyed=X,Q.Set=G,Q.Indexed=F,Q.prototype[E]=!0;var Z=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,r.prototype.get=function(t,r){return this.has(t)?this._array[a(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(t,r){var e=this._array,n=e.length,i=0;return new C((function(){if(i===n)return{value:void 0,done:!0};var o=r?n-++i:i++;return B(t,o,e[o])}))},r}(F),$=function(t){function r(t){var r=Object.keys(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,r.prototype.get=function(t,r){return void 0===r||this.has(t)?this._object[t]:r},r.prototype.has=function(t){return V.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(t,r){var e=this._object,n=this._keys,i=n.length,o=0;return new C((function(){if(o===i)return{value:void 0,done:!0};var u=n[r?i-++o:o++];return B(t,u,e[u])}))},r}(X);$.prototype[x]=!0;var tt,rt=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,r.prototype.__iterateUncached=function(t,r){if(r)return this.cacheResult().__iterate(t,r);var e=H(this._collection),n=0;if(P(e))for(var i;!(i=e.next()).done&&!1!==t(i.value,n++,this););return n},r.prototype.__iteratorUncached=function(t,r){if(r)return this.cacheResult().__iterator(t,r);var e=H(this._collection);if(!P(e))return new C(W);var n=0;return new C((function(){var r=e.next();return r.done?r:B(t,n++,r.value)}))},r}(F);function et(){return tt||(tt=new Z([]))}function nt(t){var r=Array.isArray(t)?new Z(t):N(t)?new rt(t):void 0;if(r)return r.fromEntrySeq();if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function it(t){var r=ot(t);if(r)return r;throw new TypeError("Expected Array or collection object of values: "+t)}function ot(t){return Y(t)?new Z(t):N(t)?new rt(t):void 0}var ut="@@__IMMUTABLE_MAP__@@";function st(t){return!(!t||!t[ut])}function at(t){return st(t)&&j(t)}function ct(t){return!(!t||"function"!=typeof t.equals||"function"!=typeof t.hashCode)}function ft(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!!(ct(t)&&ct(r)&&t.equals(r))}var ht="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 _t(t){return t>>>1&1073741824|3221225471&t}var pt=Object.prototype.valueOf;function lt(t){switch(typeof t){case"boolean":return t?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(;t>4294967295;)r^=t/=4294967295;return _t(r)}(t);case"string":return t.length>St?function(t){var r=Ot[t];void 0===r&&(r=vt(t),bt===It&&(bt=0,Ot={}),bt++,Ot[t]=r);return r}(t):vt(t);case"object":case"function":return null===t?1108378658:"function"==typeof t.hashCode?_t(t.hashCode(t)):(t.valueOf!==pt&&"function"==typeof t.valueOf&&(t=t.valueOf(t)),function(t){var r;if(wt&&void 0!==(r=gt.get(t)))return r;if(void 0!==(r=t[zt]))return r;if(!dt){if(void 0!==(r=t.propertyIsEnumerable&&t.propertyIsEnumerable[zt]))return r;if(void 0!==(r=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return r}r=++mt,1073741824&mt&&(mt=0);if(wt)gt.set(t,r);else{if(void 0!==yt&&!1===yt(t))throw Error("Non-extensible objects are not allowed as keys.");if(dt)Object.defineProperty(t,zt,{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[zt]=r;else{if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[zt]=r}}return r}(t));case"undefined":return 1108378659;default:if("function"==typeof t.toString)return vt(""+t);throw Error("Value type "+typeof t+" cannot be hashed.")}}function vt(t){for(var r=0,e=0;t.length>e;e++)r=31*r+t.charCodeAt(e)|0;return _t(r)}var yt=Object.isExtensible,dt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();var gt,wt="function"==typeof WeakMap;wt&&(gt=new WeakMap);var mt=0,zt="__immutablehash__";"function"==typeof Symbol&&(zt=Symbol(zt));var St=16,It=255,bt=0,Ot={},Et=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,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=jt(this,!0);return this._useKeys||(r.valueSeq=function(){return t._iter.toSeq().reverse()}),r},r.prototype.map=function(t,r){var e=this,n=xt(this,t,r);return this._useKeys||(n.valueSeq=function(){return e._iter.toSeq().map(t,r)}),n},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r,n){return t(r,n,e)}),r)},r.prototype.__iterator=function(t,r){return this._iter.__iterator(t,r)},r}(X);Et.prototype[x]=!0;var Mt=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,r.prototype.includes=function(t){return this._iter.includes(t)},r.prototype.__iterate=function(t,r){var e=this,n=0;return r&&s(this),this._iter.__iterate((function(i){return t(i,r?e.size-++n:n++,e)}),r)},r.prototype.__iterator=function(t,r){var e=this,n=this._iter.__iterator(R,r),i=0;return r&&s(this),new C((function(){var o=n.next();return o.done?o:B(t,r?e.size-++i:i++,o.value,o)}))},r}(F),qt=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,r.prototype.has=function(t){return this._iter.includes(t)},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r){return t(r,r,e)}),r)},r.prototype.__iterator=function(t,r){var e=this._iter.__iterator(R,r);return new C((function(){var r=e.next();return r.done?r:B(t,r.value,r.value,r)}))},r}(G),Dt=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,r.prototype.entrySeq=function(){return this._iter.toSeq()},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r){if(r){Pt(r);var n=y(r);return t(n?r.get(1):r[1],n?r.get(0):r[0],e)}}),r)},r.prototype.__iterator=function(t,r){var e=this._iter.__iterator(R,r);return new C((function(){for(;;){var r=e.next();if(r.done)return r;var n=r.value;if(n){Pt(n);var i=y(n);return B(t,i?n.get(0):n[0],i?n.get(1):n[1],r)}}}))},r}(X);function At(t){var r=Jt(t);return r._iter=t,r.size=t.size,r.flip=function(){return t},r.reverse=function(){var r=t.reverse.apply(this);return r.flip=function(){return t.reverse()},r},r.has=function(r){return t.includes(r)},r.includes=function(r){return t.has(r)},r.cacheResult=Vt,r.__iterateUncached=function(r,e){var n=this;return t.__iterate((function(t,e){return!1!==r(e,t,n)}),e)},r.__iteratorUncached=function(r,e){if(r===U){var n=t.__iterator(r,e);return new C((function(){var t=n.next();if(!t.done){var r=t.value[0];t.value[0]=t.value[1],t.value[1]=r}return t}))}return t.__iterator(r===R?k:R,e)},r}function xt(t,r,e){var n=Jt(t);return n.size=t.size,n.has=function(r){return t.has(r)},n.get=function(n,o){var u=t.get(n,i);return u===i?o:r.call(e,u,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,u){return!1!==n(r.call(e,t,i,u),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(U,i);return new C((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return B(n,s,r.call(e,u[1],s,t),i)}))},n}function jt(t,r){var e=this,n=Jt(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var r=At(t);return r.reverse=function(){return t.flip()},r}),n.get=function(e,n){return t.get(r?e:-1-e,n)},n.has=function(e){return t.has(r?e:-1-e)},n.includes=function(r){return t.includes(r)},n.cacheResult=Vt,n.__iterate=function(e,n){var i=this,o=0;return n&&s(t),t.__iterate((function(t,u){return e(t,r?u:n?i.size-++o:o++,i)}),!n)},n.__iterator=function(n,i){var o=0;i&&s(t);var u=t.__iterator(U,!i);return new C((function(){var t=u.next();if(t.done)return t;var s=t.value;return B(n,r?s[0]:i?e.size-++o:o++,s[1],t)}))},n}function kt(t,r,e,n){var o=Jt(t);return n&&(o.has=function(n){var o=t.get(n,i);return o!==i&&!!r.call(e,o,n,t)},o.get=function(n,o){var u=t.get(n,i);return u!==i&&r.call(e,u,n,t)?u:o}),o.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate((function(t,o,a){if(r.call(e,t,o,a))return s++,i(t,n?o:s-1,u)}),o),s},o.__iteratorUncached=function(i,o){var u=t.__iterator(U,o),s=0;return new C((function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(r.call(e,f,c,t))return B(i,n?c:s++,f,o)}}))},o}function Rt(t,r,e,n){var i=t.size;if(f(r,e,i))return t;var o=h(r,i),u=_(e,i);if(o!=o||u!=u)return Rt(t.toSeq().cacheResult(),r,e,n);var s,c=u-o;c==c&&(s=0>c?0:c);var p=Jt(t);return p.size=0===s?s:t.size&&s||void 0,n||!M(t)||0>s||(p.get=function(r,e){return(r=a(this,r))>=0&&s>r?t.get(r+o,e):e}),p.__iterateUncached=function(r,e){var i=this;if(0===s)return 0;if(e)return this.cacheResult().__iterate(r,e);var u=0,a=!0,c=0;return t.__iterate((function(t,e){if(!a||!(a=u++<o))return c++,!1!==r(t,n?e:c-1,i)&&c!==s})),c},p.__iteratorUncached=function(r,e){if(0!==s&&e)return this.cacheResult().__iterator(r,e);if(0===s)return new C(W);var i=t.__iterator(r,e),u=0,a=0;return new C((function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return n||r===R||t.done?t:B(r,a-1,r===k?void 0:t.value[1],t)}))},p}function Ut(t,r,e,n){var i=Jt(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate((function(t,o,c){if(!s||!(s=r.call(e,t,o,c)))return a++,i(t,n?o:a-1,u)})),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(U,o),a=!0,c=0;return new C((function(){var t,o,f;do{if((t=s.next()).done)return n||i===R?t:B(i,c++,i===k?void 0:t.value[1],t);var h=t.value;o=h[0],f=h[1],a&&(a=r.call(e,f,o,u))}while(a);return i===U?t:B(i,o,f,t)}))},i}function Kt(t,r){var e=g(t),n=[t].concat(r).map((function(t){return y(t)?e&&(t=I(t)):t=e?nt(t):it(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||e&&g(i)||m(t)&&m(i))return i}var o=new Z(n);return e?o=o.toKeyedSeq():m(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce((function(t,r){if(void 0!==t){var e=r.size;if(void 0!==e)return t+e}}),0),o}function Tt(t,r,e){var n=Jt(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var u=0,s=!1;return function t(a,c){a.__iterate((function(o,a){return r&&c>=r||!y(o)?(u++,!1===i(o,e?a:u-1,n)&&(s=!0)):t(o,c+1),!s}),o)}(t,0),u},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),u=[],s=0;return new C((function(){for(;o;){var t=o.next();if(!1===t.done){var a=t.value;if(n===U&&(a=a[1]),r&&u.length>=r||!y(a))return e?t:B(n,s++,a,t);u.push(o),o=a.__iterator(n,i)}else o=u.pop()}return{value:void 0,done:!0}}))},n}function Lt(t,r,e){r||(r=Yt);var n=g(t),i=0,o=t.toSeq().map((function(r,n){return[n,r,i++,e?e(r,n,t):r]})).valueSeq().toArray();return o.sort((function(t,e){return r(t[3],e[3])||t[2]-e[2]})).forEach(n?function(t,r){o[r].length=2}:function(t,r){o[r]=t[1]}),n?X(o):m(t)?F(o):G(o)}function Ct(t,r,e){if(r||(r=Yt),e){var n=t.toSeq().map((function(r,n){return[r,e(r,n,t)]})).reduce((function(t,e){return Bt(r,t[1],e[1])?e:t}));return n&&n[0]}return t.reduce((function(t,e){return Bt(r,t,e)?e:t}))}function Bt(t,r,e){var n=t(e,r);return 0===n&&e!==r&&(null==e||e!=e)||n>0}function Wt(t,r,e,n){var i=Jt(t),o=new Z(e).map((function(t){return t.size}));return i.size=n?o.max():o.min(),i.__iterate=function(t,r){for(var e,n=this.__iterator(R,r),i=0;!(e=n.next()).done&&!1!==t(e.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=e.map((function(t){return t=S(t),H(i?t.reverse():t)})),u=0,s=!1;return new C((function(){var e;return s||(e=o.map((function(t){return t.next()})),s=n?e.every((function(t){return t.done})):e.some((function(t){return t.done}))),s?{value:void 0,done:!0}:B(t,u++,r.apply(null,e.map((function(t){return t.value}))))}))},i}function Nt(t,r){return t===r?t:M(t)?r:t.constructor(r)}function Pt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ht(t){return g(t)?I:m(t)?b:O}function Jt(t){return Object.create((g(t)?X:m(t)?F:G).prototype)}function Vt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function Yt(t,r){return void 0===t&&void 0===r?0:void 0===t?1:void 0===r?-1:t>r?1:r>t?-1:0}function Qt(t,r){for(var e=Math.max(0,t.length-(r=r||0)),n=Array(e),i=0;e>i;i++)n[i]=t[i+r];return n}function Xt(t,r){if(!t)throw Error(r)}function Ft(t){Xt(t!==1/0,"Cannot perform this action with an infinite size.")}function Gt(t){if(Y(t)&&"string"!=typeof t)return t;if(j(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}function Zt(t){return t&&("function"!=typeof t.constructor||"Object"===t.constructor.name)}function $t(t){return"object"==typeof t&&(A(t)||Array.isArray(t)||Zt(t))}function tr(t){try{return"string"==typeof t?JSON.stringify(t):t+""}catch(r){return JSON.stringify(t)}}function rr(t,r){return A(t)?t.has(r):$t(t)&&V.call(t,r)}function er(t,r,e){return A(t)?t.get(r,e):rr(t,r)?"function"==typeof t.get?t.get(r):t[r]:e}function nr(t){if(Array.isArray(t))return Qt(t);var r={};for(var e in t)V.call(t,e)&&(r[e]=t[e]);return r}function ir(t,r){if(!$t(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(!V.call(t,r))return t;var e=nr(t);return Array.isArray(e)?e.splice(r,1):delete e[r],e}function or(t,r,e){if(!$t(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(V.call(t,r)&&e===t[r])return t;var n=nr(t);return n[r]=e,n}function ur(t,r,e,n){n||(n=e,e=void 0);var o=function t(r,e,n,o,u,s){var a=e===i;if(o===n.length){var c=a?u:e,f=s(c);return f===c?e:f}if(!a&&!$t(e))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,o).map(tr)+"]: "+e);var h=n[o],_=a?i:er(e,h,i),p=t(_===i?r:A(_),_,n,o+1,u,s);return p===_?e:p===i?ir(e,h):or(a?r?Cr():{}:e,h,p)}(A(t),t,Gt(r),0,e,n);return o===i?e:o}function sr(t,r,e){return ur(t,r,i,(function(){return e}))}function ar(t,r){return sr(this,t,r)}function cr(t,r){return ur(t,r,(function(){return i}))}function fr(t){return cr(this,t)}function hr(t,r,e,n){return ur(t,[r],e,n)}function _r(t,r,e){return 1===arguments.length?t(this):hr(this,t,r,e)}function pr(t,r,e){return ur(this,t,r,e)}function lr(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return yr(this,t)}function vr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return yr(this,r,t)}function yr(t,r,e){for(var n=[],o=0;r.length>o;o++){var u=I(r[o]);0!==u.size&&n.push(u)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var r=e?function(r,n){hr(t,n,i,(function(t){return t===i?r:e(t,r,n)}))}:function(r,e){t.set(e,r)},o=0;n.length>o;o++)n[o].forEach(r)})):t.constructor(n[0])}function dr(t,r,e){return gr(t,r,function(t){return function r(e,n,i){return $t(e)&&$t(n)?gr(e,[n],r):t?t(e,n,i):n}}(e))}function gr(t,r,e){if(!$t(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(A(t))return"function"==typeof e&&t.mergeWith?t.mergeWith.apply(t,[e].concat(r)):t.merge?t.merge.apply(t,r):t.concat.apply(t,r);for(var n=Array.isArray(t),i=t,o=n?b:I,u=n?function(r){i===t&&(i=nr(i)),i.push(r)}:function(r,n){var o=V.call(i,n),u=o&&e?e(i[n],r,n):r;o&&u===i[n]||(i===t&&(i=nr(i)),i[n]=u)},s=0;r.length>s;s++)o(r[s]).forEach(u);return i}function wr(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return dr(this,t)}function mr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return dr(this,r,t)}function zr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return ur(this,t,Cr(),(function(t){return gr(t,r)}))}function Sr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return ur(this,t,Cr(),(function(t){return dr(t,r)}))}function Ir(t){var r=this.asMutable();return t(r),r.wasAltered()?r.__ensureOwner(this.__ownerID):this}function br(){return this.__ownerID?this:this.__ensureOwner(new u)}function Or(){return this.__ensureOwner()}function Er(){return this.__altered}Mt.prototype.cacheResult=Et.prototype.cacheResult=qt.prototype.cacheResult=Dt.prototype.cacheResult=Vt;var Mr=function(t){function r(r){return null==r?Cr():st(r)&&!j(r)?r:Cr().withMutations((function(e){var n=t(r);Ft(n.size),n.forEach((function(t,r){return e.set(r,t)}))}))}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Cr().withMutations((function(r){for(var e=0;t.length>e;e+=2){if(e+1>=t.length)throw Error("Missing value for key: "+t[e]);r.set(t[e],t[e+1])}}))},r.prototype.toString=function(){return this.__toString("Map {","}")},r.prototype.get=function(t,r){return this._root?this._root.get(0,void 0,t,r):r},r.prototype.set=function(t,r){return Br(this,t,r)},r.prototype.remove=function(t){return Br(this,t,i)},r.prototype.deleteAll=function(t){var r=S(t);return 0===r.size?this:this.withMutations((function(t){r.forEach((function(r){return t.remove(r)}))}))},r.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Cr()},r.prototype.sort=function(t){return he(Lt(this,t))},r.prototype.sortBy=function(t,r){return he(Lt(this,r,t))},r.prototype.map=function(t,r){return this.withMutations((function(e){e.forEach((function(n,i){e.set(i,t.call(r,n,i,e))}))}))},r.prototype.__iterator=function(t,r){return new Ur(this,t,r)},r.prototype.__iterate=function(t,r){var e=this,n=0;return this._root&&this._root.iterate((function(r){return n++,t(r[1],r[0],e)}),r),n},r.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Lr(this.size,this._root,t,this.__hash):0===this.size?Cr():(this.__ownerID=t,this.__altered=!1,this)},r}(I);Mr.isMap=st;var qr=Mr.prototype;qr[ut]=!0,qr.delete=qr.remove,qr.removeAll=qr.deleteAll,qr.setIn=ar,qr.removeIn=qr.deleteIn=fr,qr.update=_r,qr.updateIn=pr,qr.merge=qr.concat=lr,qr.mergeWith=vr,qr.mergeDeep=wr,qr.mergeDeepWith=mr,qr.mergeIn=zr,qr.mergeDeepIn=Sr,qr.withMutations=Ir,qr.wasAltered=Er,qr.asImmutable=Or,qr["@@transducer/init"]=qr.asMutable=br,qr["@@transducer/step"]=function(t,r){return t.set(r[0],r[1])},qr["@@transducer/result"]=function(t){return t.asImmutable()};var Dr=function(t,r){this.ownerID=t,this.entries=r};Dr.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(ft(e,i[o][0]))return i[o][1];return n},Dr.prototype.update=function(t,r,e,n,s,a,c){for(var f=s===i,h=this.entries,_=0,p=h.length;p>_&&!ft(n,h[_][0]);_++);var l=p>_;if(l?h[_][1]===s:f)return this;if(o(c),(f||!l)&&o(a),!f||1!==h.length){if(!l&&!f&&h.length>=Vr)return function(t,r,e,n){t||(t=new u);for(var i=new kr(t,lt(e),[e,n]),o=0;r.length>o;o++){var s=r[o];i=i.update(t,0,void 0,s[0],s[1])}return i}(t,h,n,s);var v=t&&t===this.ownerID,y=v?h:Qt(h);return l?f?_===p-1?y.pop():y[_]=y.pop():y[_]=[n,s]:y.push([n,s]),v?(this.entries=y,this):new Dr(t,y)}};var Ar=function(t,r,e){this.ownerID=t,this.bitmap=r,this.nodes=e};Ar.prototype.get=function(t,e,i,o){void 0===e&&(e=lt(i));var u=1<<((0===t?e:e>>>t)&n),s=this.bitmap;return 0==(s&u)?o:this.nodes[Hr(s&u-1)].get(t+r,e,i,o)},Ar.prototype.update=function(t,o,u,s,a,c,f){void 0===u&&(u=lt(s));var h=(0===o?u:u>>>o)&n,_=1<<h,p=this.bitmap,l=0!=(p&_);if(!l&&a===i)return this;var v=Hr(p&_-1),y=this.nodes,d=l?y[v]:void 0,g=Wr(d,t,o+r,u,s,a,c,f);if(g===d)return this;if(!l&&g&&y.length>=Yr)return function(t,r,n,i,o){for(var u=0,s=Array(e),a=0;0!==n;a++,n>>>=1)s[a]=1&n?r[u++]:void 0;return s[i]=o,new xr(t,u+1,s)}(t,y,p,h,g);if(l&&!g&&2===y.length&&Nr(y[1^v]))return y[1^v];if(l&&g&&1===y.length&&Nr(g))return g;var w=t&&t===this.ownerID,m=l?g?p:p^_:p|_,z=l?g?Jr(y,v,g,w):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;n>u;u++)u===r&&(o=1),i[u]=t[u+o];return i}(y,v,w):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;i>s;s++)s===r?(o[s]=e,u=-1):o[s]=t[s+u];return o}(y,v,g,w);return w?(this.bitmap=m,this.nodes=z,this):new Ar(t,m,z)};var xr=function(t,r,e){this.ownerID=t,this.count=r,this.nodes=e};xr.prototype.get=function(t,e,i,o){void 0===e&&(e=lt(i));var u=this.nodes[(0===t?e:e>>>t)&n];return u?u.get(t+r,e,i,o):o},xr.prototype.update=function(t,e,o,u,s,a,c){void 0===o&&(o=lt(u));var f=(0===e?o:o>>>e)&n,h=this.nodes,_=h[f];if(s===i&&!_)return this;var p=Wr(_,t,e+r,o,u,s,a,c);if(p===_)return this;var l=this.count;if(_){if(!p&&(l--,Qr>l))return function(t,r,e,n){for(var i=0,o=0,u=Array(e),s=0,a=1,c=r.length;c>s;s++,a<<=1){var f=r[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new Ar(t,i,u)}(t,h,l,f)}else l++;var v=t&&t===this.ownerID,y=Jr(h,f,p,v);return v?(this.count=l,this.nodes=y,this):new xr(t,l,y)};var jr=function(t,r,e){this.ownerID=t,this.keyHash=r,this.entries=e};jr.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(ft(e,i[o][0]))return i[o][1];return n},jr.prototype.update=function(t,r,e,n,u,s,a){void 0===e&&(e=lt(n));var c=u===i;if(e!==this.keyHash)return c?this:(o(a),o(s),Pr(this,t,r,e,[n,u]));for(var f=this.entries,h=0,_=f.length;_>h&&!ft(n,f[h][0]);h++);var p=_>h;if(p?f[h][1]===u:c)return this;if(o(a),(c||!p)&&o(s),c&&2===_)return new kr(t,this.keyHash,f[1^h]);var l=t&&t===this.ownerID,v=l?f:Qt(f);return p?c?h===_-1?v.pop():v[h]=v.pop():v[h]=[n,u]:v.push([n,u]),l?(this.entries=v,this):new jr(t,this.keyHash,v)};var kr=function(t,r,e){this.ownerID=t,this.keyHash=r,this.entry=e};kr.prototype.get=function(t,r,e,n){return ft(e,this.entry[0])?this.entry[1]:n},kr.prototype.update=function(t,r,e,n,u,s,a){var c=u===i,f=ft(n,this.entry[0]);return(f?u===this.entry[1]:c)?this:(o(a),c?void o(s):f?t&&t===this.ownerID?(this.entry[1]=u,this):new kr(t,this.keyHash,[n,u]):(o(s),Pr(this,t,r,lt(n),[n,u])))},Dr.prototype.iterate=jr.prototype.iterate=function(t,r){for(var e=this.entries,n=0,i=e.length-1;i>=n;n++)if(!1===t(e[r?i-n:n]))return!1},Ar.prototype.iterate=xr.prototype.iterate=function(t,r){for(var e=this.nodes,n=0,i=e.length-1;i>=n;n++){var o=e[r?i-n:n];if(o&&!1===o.iterate(t,r))return!1}},kr.prototype.iterate=function(t,r){return t(this.entry)};var Rr,Ur=function(t){function r(t,r,e){this._type=r,this._reverse=e,this._stack=t._root&&Tr(t._root)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,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 Kr(t,e.entry)}else if(e.entries){if((i=e.entries.length-1)>=n)return Kr(t,e.entries[this._reverse?i-n:n])}else if((i=e.nodes.length-1)>=n){var o=e.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Kr(t,o.entry);r=this._stack=Tr(o,r)}continue}r=this._stack=this._stack.__prev}return{value:void 0,done:!0}},r}(C);function Kr(t,r){return B(t,r[0],r[1])}function Tr(t,r){return{node:t,index:0,__prev:r}}function Lr(t,r,e,n){var i=Object.create(qr);return i.size=t,i._root=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}function Cr(){return Rr||(Rr=Lr(0))}function Br(t,r,e){var n,o;if(t._root){var u={value:!1},s={value:!1};if(n=Wr(t._root,t.__ownerID,0,void 0,r,e,u,s),!s.value)return t;o=t.size+(u.value?e===i?-1:1:0)}else{if(e===i)return t;o=1,n=new Dr(t.__ownerID,[[r,e]])}return t.__ownerID?(t.size=o,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Lr(o,n):Cr()}function Wr(t,r,e,n,u,s,a,c){return t?t.update(r,e,n,u,s,a,c):s===i?t:(o(c),o(a),new kr(r,n,[u,s]))}function Nr(t){return t.constructor===kr||t.constructor===jr}function Pr(t,e,i,o,u){if(t.keyHash===o)return new jr(e,o,[t.entry,u]);var s,a=(0===i?t.keyHash:t.keyHash>>>i)&n,c=(0===i?o:o>>>i)&n,f=a===c?[Pr(t,e,i+r,o,u)]:(s=new kr(e,o,u),c>a?[t,s]:[s,t]);return new Ar(e,1<<a|1<<c,f)}function Hr(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Jr(t,r,e,n){var i=n?t:Qt(t);return i[r]=e,i}var Vr=e/4,Yr=e/2,Qr=e/4,Xr="@@__IMMUTABLE_LIST__@@";function Fr(t){return!(!t||!t[Xr])}var Gr=function(t){function i(n){var i=ie();if(null==n)return i;if(Fr(n))return n;var o=t(n),u=o.size;return 0===u?i:(Ft(u),u>0&&e>u?ne(0,u,r,null,new $r(o.toArray())):i.withMutations((function(t){t.setSize(u),o.forEach((function(r,e){return t.set(e,r)}))})))}return t&&(i.__proto__=t),(i.prototype=Object.create(t&&t.prototype)).constructor=i,i.of=function(){return this(arguments)},i.prototype.toString=function(){return this.__toString("List [","]")},i.prototype.get=function(t,r){if((t=a(this,t))>=0&&this.size>t){var e=se(this,t+=this._origin);return e&&e.array[t&n]}return r},i.prototype.set=function(t,r){return function(t,r,e){if((r=a(t,r))!=r)return t;if(r>=t.size||0>r)return t.withMutations((function(t){0>r?ae(t,r).set(0,e):ae(t,0,r+1).set(r,e)}));r+=t._origin;var n=t._tail,i=t._root,o={value:!1};r<ce(t._capacity)?i=oe(i,t.__ownerID,t._level,r,e,o):n=oe(n,t.__ownerID,0,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 ne(t._origin,t._capacity,t._level,i,n)}(this,t,r)},i.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},i.prototype.insert=function(t,r){return this.splice(t,0,r)},i.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=r,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ie()},i.prototype.push=function(){var t=arguments,r=this.size;return this.withMutations((function(e){ae(e,0,r+t.length);for(var n=0;t.length>n;n++)e.set(r+n,t[n])}))},i.prototype.pop=function(){return ae(this,0,-1)},i.prototype.unshift=function(){var t=arguments;return this.withMutations((function(r){ae(r,-t.length);for(var e=0;t.length>e;e++)r.set(e,t[e])}))},i.prototype.shift=function(){return ae(this,1)},i.prototype.concat=function(){for(var r=arguments,e=[],n=0;arguments.length>n;n++){var i=r[n],o=t("string"!=typeof i&&N(i)?i:[i]);0!==o.size&&e.push(o)}return 0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){e.forEach((function(r){return r.forEach((function(r){return t.push(r)}))}))})):this.constructor(e[0])},i.prototype.setSize=function(t){return ae(this,0,t)},i.prototype.map=function(t,r){var e=this;return this.withMutations((function(n){for(var i=0;e.size>i;i++)n.set(i,t.call(r,n.get(i),i,n))}))},i.prototype.slice=function(t,r){var e=this.size;return f(t,r,e)?this:ae(this,h(t,e),_(r,e))},i.prototype.__iterator=function(t,r){var e=r?this.size:0,n=ee(this,r);return new C((function(){var i=n();return i===re?{value:void 0,done:!0}:B(t,r?--e:e++,i)}))},i.prototype.__iterate=function(t,r){for(var e,n=r?this.size:0,i=ee(this,r);(e=i())!==re&&!1!==t(e,r?--n:n++,this););return n},i.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ne(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?ie():(this.__ownerID=t,this.__altered=!1,this)},i}(b);Gr.isList=Fr;var Zr=Gr.prototype;Zr[Xr]=!0,Zr.delete=Zr.remove,Zr.merge=Zr.concat,Zr.setIn=ar,Zr.deleteIn=Zr.removeIn=fr,Zr.update=_r,Zr.updateIn=pr,Zr.mergeIn=zr,Zr.mergeDeepIn=Sr,Zr.withMutations=Ir,Zr.wasAltered=Er,Zr.asImmutable=Or,Zr["@@transducer/init"]=Zr.asMutable=br,Zr["@@transducer/step"]=function(t,r){return t.push(r)},Zr["@@transducer/result"]=function(t){return t.asImmutable()};var $r=function(t,r){this.array=t,this.ownerID=r};$r.prototype.removeBefore=function(t,e,i){if(i===e?1<<e:0===this.array.length)return this;var o=i>>>e&n;if(o>=this.array.length)return new $r([],t);var u,s=0===o;if(e>0){var a=this.array[o];if((u=a&&a.removeBefore(t,e-r,i))===a&&s)return this}if(s&&!u)return this;var c=ue(this,t);if(!s)for(var f=0;o>f;f++)c.array[f]=void 0;return u&&(c.array[o]=u),c},$r.prototype.removeAfter=function(t,e,i){if(i===(e?1<<e:0)||0===this.array.length)return this;var o,u=i-1>>>e&n;if(u>=this.array.length)return this;if(e>0){var s=this.array[u];if((o=s&&s.removeAfter(t,e-r,i))===s&&u===this.array.length-1)return this}var a=ue(this,t);return a.array.splice(u+1),o&&(a.array[u]=o),a};var te,re={};function ee(t,n){var i=t._origin,o=t._capacity,u=ce(o),s=t._tail;return a(t._root,t._level,0);function a(t,c,f){return 0===c?function(t,r){var a=r===u?s&&s.array:t&&t.array,c=r>i?0:i-r,f=o-r;f>e&&(f=e);return function(){if(c===f)return re;var t=n?--f:c++;return a&&a[t]}}(t,f):function(t,u,s){var c,f=t&&t.array,h=s>i?0:i-s>>u,_=1+(o-s>>u);_>e&&(_=e);return function(){for(;;){if(c){var t=c();if(t!==re)return t;c=null}if(h===_)return re;var e=n?--_:h++;c=a(f&&f[e],u-r,s+(e<<u))}}}(t,c,f)}}function ne(t,r,e,n,i,o,u){var s=Object.create(Zr);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 ie(){return te||(te=ne(0,0,r))}function oe(t,e,i,u,s,a){var c,f=u>>>i&n,h=t&&t.array.length>f;if(!h&&void 0===s)return t;if(i>0){var _=t&&t.array[f],p=oe(_,e,i-r,u,s,a);return p===_?t:((c=ue(t,e)).array[f]=p,c)}return h&&t.array[f]===s?t:(a&&o(a),c=ue(t,e),void 0===s&&f===c.array.length-1?c.array.pop():c.array[f]=s,c)}function ue(t,r){return r&&t&&r===t.ownerID?t:new $r(t?t.array.slice():[],r)}function se(t,e){if(e>=ce(t._capacity))return t._tail;if(1<<t._level+r>e){for(var i=t._root,o=t._level;i&&o>0;)i=i.array[e>>>o&n],o-=r;return i}}function ae(t,e,i){void 0!==e&&(e|=0),void 0!==i&&(i|=0);var o=t.__ownerID||new u,s=t._origin,a=t._capacity,c=s+e,f=void 0===i?a:0>i?a+i:s+i;if(c===s&&f===a)return t;if(c>=f)return t.clear();for(var h=t._level,_=t._root,p=0;0>c+p;)_=new $r(_&&_.array.length?[void 0,_]:[],o),p+=1<<(h+=r);p&&(c+=p,s+=p,f+=p,a+=p);for(var l=ce(a),v=ce(f);v>=1<<h+r;)_=new $r(_&&_.array.length?[_]:[],o),h+=r;var y=t._tail,d=l>v?se(t,f-1):v>l?new $r([],o):y;if(y&&v>l&&a>c&&y.array.length){for(var g=_=ue(_,o),w=h;w>r;w-=r){var m=l>>>w&n;g=g.array[m]=ue(g.array[m],o)}g.array[l>>>r&n]=y}if(a>f&&(d=d&&d.removeAfter(o,0,f)),v>c){if(c>s||l>v){for(p=0;_;){var z=c>>>h&n;if(z!==v>>>h&n)break;z&&(p+=(1<<h)*z),h-=r,_=_.array[z]}_&&c>s&&(_=_.removeBefore(o,h,c-p)),_&&l>v&&(_=_.removeAfter(o,h,v-p)),p&&(c-=p,f-=p)}}else c-=v,f-=v,h=r,_=null,d=d&&d.removeBefore(o,0,c);return t.__ownerID?(t.size=f-c,t._origin=c,t._capacity=f,t._level=h,t._root=_,t._tail=d,t.__hash=void 0,t.__altered=!0,t):ne(c,f,h,_,d)}function ce(t){return e>t?0:t-1>>>r<<r}var fe,he=function(t){function r(t){return null==t?pe():at(t)?t:pe().withMutations((function(r){var e=I(t);Ft(e.size),e.forEach((function(t,e){return r.set(e,t)}))}))}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return this(arguments)},r.prototype.toString=function(){return this.__toString("OrderedMap {","}")},r.prototype.get=function(t,r){var e=this._map.get(t);return void 0!==e?this._list.get(e)[1]:r},r.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):pe()},r.prototype.set=function(t,r){return le(this,t,r)},r.prototype.remove=function(t){return le(this,t,i)},r.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},r.prototype.__iterate=function(t,r){var e=this;return this._list.__iterate((function(r){return r&&t(r[1],r[0],e)}),r)},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?_e(r,e,t,this.__hash):0===this.size?pe():(this.__ownerID=t,this._map=r,this._list=e,this)},r}(Mr);function _e(t,r,e,n){var i=Object.create(he.prototype);return i.size=t?t.size:0,i._map=t,i._list=r,i.__ownerID=e,i.__hash=n,i}function pe(){return fe||(fe=_e(Cr(),ie()))}function le(t,r,n){var o,u,s=t._map,a=t._list,c=s.get(r),f=void 0!==c;if(n===i){if(!f)return t;e>a.size||2*s.size>a.size?(o=s.remove(r),u=c===a.size-1?a.pop():a.set(c,void 0)):(o=(u=a.filter((function(t,r){return void 0!==t&&c!==r}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(o.__ownerID=u.__ownerID=t.__ownerID))}else if(f){if(n===a.get(c)[1])return t;o=s,u=a.set(c,[r,n])}else o=s.set(r,a.size),u=a.set(a.size,[r,n]);return t.__ownerID?(t.size=o.size,t._map=o,t._list=u,t.__hash=void 0,t):_e(o,u)}he.isOrderedMap=at,he.prototype[x]=!0,he.prototype.delete=he.prototype.remove;var ve="@@__IMMUTABLE_STACK__@@";function ye(t){return!(!t||!t[ve])}var de=function(t){function r(t){return null==t?ze():ye(t)?t:ze().pushAll(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return this(arguments)},r.prototype.toString=function(){return this.__toString("Stack [","]")},r.prototype.get=function(t,r){var e=this._head;for(t=a(this,t);e&&t--;)e=e.next;return e?e.value:r},r.prototype.peek=function(){return this._head&&this._head.value},r.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var r=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:t[n],next:e};return this.__ownerID?(this.size=r,this._head=e,this.__hash=void 0,this.__altered=!0,this):me(r,e)},r.prototype.pushAll=function(r){if(0===(r=t(r)).size)return this;if(0===this.size&&ye(r))return r;Ft(r.size);var e=this.size,n=this._head;return r.__iterate((function(t){e++,n={value:t,next:n}}),!0),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):me(e,n)},r.prototype.pop=function(){return this.slice(1)},r.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):ze()},r.prototype.slice=function(r,e){if(f(r,e,this.size))return this;var n=h(r,this.size);if(_(e,this.size)!==this.size)return t.prototype.slice.call(this,r,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):me(i,o)},r.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?me(this.size,this._head,t,this.__hash):0===this.size?ze():(this.__ownerID=t,this.__altered=!1,this)},r.prototype.__iterate=function(t,r){var e=this;if(r)return new Z(this.toArray()).__iterate((function(r,n){return t(r,n,e)}),r);for(var n=0,i=this._head;i&&!1!==t(i.value,n++,this);)i=i.next;return n},r.prototype.__iterator=function(t,r){if(r)return new Z(this.toArray()).__iterator(t,r);var e=0,n=this._head;return new C((function(){if(n){var r=n.value;return n=n.next,B(t,e++,r)}return{value:void 0,done:!0}}))},r}(b);de.isStack=ye;var ge,we=de.prototype;function me(t,r,e,n){var i=Object.create(we);return i.size=t,i._head=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}function ze(){return ge||(ge=me(0))}we[ve]=!0,we.shift=we.pop,we.unshift=we.push,we.unshiftAll=we.pushAll,we.withMutations=Ir,we.wasAltered=Er,we.asImmutable=Or,we["@@transducer/init"]=we.asMutable=br,we["@@transducer/step"]=function(t,r){return t.unshift(r)},we["@@transducer/result"]=function(t){return t.asImmutable()};var Se="@@__IMMUTABLE_SET__@@";function Ie(t){return!(!t||!t[Se])}function be(t){return Ie(t)&&j(t)}function Oe(t,r){if(t===r)return!0;if(!y(r)||void 0!==t.size&&void 0!==r.size&&t.size!==r.size||void 0!==t.__hash&&void 0!==r.__hash&&t.__hash!==r.__hash||g(t)!==g(r)||m(t)!==m(r)||j(t)!==j(r))return!1;if(0===t.size&&0===r.size)return!0;var e=!z(t);if(j(t)){var n=t.entries();return r.every((function(t,r){var i=n.next().value;return i&&ft(i[1],t)&&(e||ft(i[0],r))}))&&n.next().done}var o=!1;if(void 0===t.size)if(void 0===r.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var u=t;t=r,r=u}var s=!0,a=r.__iterate((function(r,n){if(e?!t.has(r):o?!ft(r,t.get(n,i)):!ft(t.get(n,i),r))return s=!1,!1}));return s&&t.size===a}function Ee(t,r){var e=function(e){t.prototype[e]=r[e]};return Object.keys(r).forEach(e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(r).forEach(e),t}function Me(t){if(!t||"object"!=typeof t)return t;if(!y(t)){if(!$t(t))return t;t=Q(t)}if(g(t)){var r={};return t.__iterate((function(t,e){r[e]=Me(t)})),r}var e=[];return t.__iterate((function(t){e.push(Me(t))})),e}var qe=function(t){function r(r){return null==r?ke():Ie(r)&&!j(r)?r:ke().withMutations((function(e){var n=t(r);Ft(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return this(arguments)},r.fromKeys=function(t){return this(I(t).keySeq())},r.intersect=function(t){return(t=S(t).toArray()).length?Ae.intersect.apply(r(t.pop()),t):ke()},r.union=function(t){return(t=S(t).toArray()).length?Ae.union.apply(r(t.pop()),t):ke()},r.prototype.toString=function(){return this.__toString("Set {","}")},r.prototype.has=function(t){return this._map.has(t)},r.prototype.add=function(t){return xe(this,this._map.set(t,t))},r.prototype.remove=function(t){return xe(this,this._map.remove(t))},r.prototype.clear=function(){return xe(this,this._map.clear())},r.prototype.map=function(t,r){var e=this,n=[],i=[];return this.forEach((function(o){var u=t.call(r,o,o,e);u!==o&&(n.push(o),i.push(u))})),this.withMutations((function(t){n.forEach((function(r){return t.remove(r)})),i.forEach((function(r){return t.add(r)}))}))},r.prototype.union=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];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 n=0;r.length>n;n++)t(r[n]).forEach((function(t){return e.add(t)}))})):this.constructor(r[0])},r.prototype.intersect=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(0===r.length)return this;r=r.map((function(r){return t(r)}));var n=[];return this.forEach((function(t){r.every((function(r){return r.includes(t)}))||n.push(t)})),this.withMutations((function(t){n.forEach((function(r){t.remove(r)}))}))},r.prototype.subtract=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(0===r.length)return this;r=r.map((function(r){return t(r)}));var n=[];return this.forEach((function(t){r.some((function(r){return r.includes(t)}))&&n.push(t)})),this.withMutations((function(t){n.forEach((function(r){t.remove(r)}))}))},r.prototype.sort=function(t){return Ge(Lt(this,t))},r.prototype.sortBy=function(t,r){return Ge(Lt(this,r,t))},r.prototype.wasAltered=function(){return this._map.wasAltered()},r.prototype.__iterate=function(t,r){var e=this;return this._map.__iterate((function(r){return t(r,r,e)}),r)},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}(O);qe.isSet=Ie;var De,Ae=qe.prototype;function xe(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 je(t,r){var e=Object.create(Ae);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}function ke(){return De||(De=je(Cr()))}Ae[Se]=!0,Ae.delete=Ae.remove,Ae.merge=Ae.concat=Ae.union,Ae.withMutations=Ir,Ae.asImmutable=Or,Ae["@@transducer/init"]=Ae.asMutable=br,Ae["@@transducer/step"]=function(t,r){return t.add(r)},Ae["@@transducer/result"]=function(t){return t.asImmutable()},Ae.__empty=ke,Ae.__make=je;var Re,Ue=function(t){function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);if(Xt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),t>e&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Re)return Re;Re=this}}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},r.prototype.get=function(t,r){return this.has(t)?this._start+a(this,t)*this._step:r},r.prototype.includes=function(t){var r=(t-this._start)/this._step;return r>=0&&this.size>r&&r===Math.floor(r)},r.prototype.slice=function(t,e){return f(t,e,this.size)?this:(t=h(t,this.size),(e=_(e,this.size))>t?new r(this.get(t,this._end),this.get(e,this._end),this._step):new r(0,0))},r.prototype.indexOf=function(t){var r=t-this._start;if(r%this._step==0){var e=r/this._step;if(e>=0&&this.size>e)return e}return-1},r.prototype.lastIndexOf=function(t){return this.indexOf(t)},r.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},r.prototype.__iterator=function(t,r){var e=this.size,n=this._step,i=r?this._start+(e-1)*n:this._start,o=0;return new C((function(){if(o===e)return{value:void 0,done:!0};var u=i;return i+=r?-n:n,B(t,r?e-++o:o++,u)}))},r.prototype.equals=function(t){return t instanceof r?this._start===t._start&&this._end===t._end&&this._step===t._step:Oe(this,t)},r}(F);function Ke(t,r,e){for(var n=Gt(r),o=0;o!==n.length;)if((t=er(t,n[o++],i))===i)return e;return t}function Te(t,r){return Ke(this,t,r)}function Le(t,r){return Ke(t,r,i)!==i}function Ce(){Ft(this.size);var t={};return this.__iterate((function(r,e){t[e]=r})),t}S.isIterable=y,S.isKeyed=g,S.isIndexed=m,S.isAssociative=z,S.isOrdered=j,S.Iterator=C,Ee(S,{toArray:function(){Ft(this.size);var t=Array(this.size||0),r=g(this),e=0;return this.__iterate((function(n,i){t[e++]=r?[i,n]:n})),t},toIndexedSeq:function(){return new Mt(this)},toJS:function(){return Me(this)},toKeyedSeq:function(){return new Et(this,!0)},toMap:function(){return Mr(this.toKeyedSeq())},toObject:Ce,toOrderedMap:function(){return he(this.toKeyedSeq())},toOrderedSet:function(){return Ge(g(this)?this.valueSeq():this)},toSet:function(){return qe(g(this)?this.valueSeq():this)},toSetSeq:function(){return new qt(this)},toSeq:function(){return m(this)?this.toIndexedSeq():g(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return de(g(this)?this.valueSeq():this)},toList:function(){return Gr(g(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 Nt(this,Kt(this,t))},includes:function(t){return this.some((function(r){return ft(r,t)}))},entries:function(){return this.__iterator(U)},every:function(t,r){Ft(this.size);var e=!0;return this.__iterate((function(n,i,o){if(!t.call(r,n,i,o))return e=!1,!1})),e},filter:function(t,r){return Nt(this,kt(this,t,r,!0))},find:function(t,r,e){var n=this.findEntry(t,r);return n?n[1]:e},forEach:function(t,r){return Ft(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){Ft(this.size),t=void 0!==t?""+t:",";var r="",e=!0;return this.__iterate((function(n){e?e=!1:r+=t,r+=null!=n?""+n:""})),r},keys:function(){return this.__iterator(k)},map:function(t,r){return Nt(this,xt(this,t,r))},reduce:function(t,r,e){return Pe(this,t,r,e,2>arguments.length,!1)},reduceRight:function(t,r,e){return Pe(this,t,r,e,2>arguments.length,!0)},reverse:function(){return Nt(this,jt(this,!0))},slice:function(t,r){return Nt(this,Rt(this,t,r,!0))},some:function(t,r){return!this.every(Ve(t),r)},sort:function(t){return Nt(this,Lt(this,t))},values:function(){return this.__iterator(R)},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 s(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return function(t,r,e){var n=Mr().asMutable();return t.__iterate((function(i,o){n.update(r.call(e,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,r)},equals:function(t){return Oe(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Z(t._cache);var r=t.toSeq().map(Je).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(Ve(t),r)},findEntry:function(t,r,e){var n=e;return this.__iterate((function(e,i,o){if(t.call(r,e,i,o))return n=[i,e],!1})),n},findKey:function(t,r){var e=this.findEntry(t,r);return e&&e[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(c,null,t)},flatMap:function(t,r){return Nt(this,function(t,r,e){var n=Ht(t);return t.toSeq().map((function(i,o){return n(r.call(e,i,o,t))})).flatten(!0)}(this,t,r))},flatten:function(t){return Nt(this,Tt(this,t,!0))},fromEntrySeq:function(){return new Dt(this)},get:function(t,r){return this.find((function(r,e){return ft(e,t)}),void 0,r)},getIn:Te,groupBy:function(t,r){return function(t,r,e){var n=g(t),i=(j(t)?he():Mr()).asMutable();t.__iterate((function(o,u){i.update(r.call(e,o,u,t),(function(t){return(t=t||[]).push(n?[u,o]:o),t}))}));var o=Ht(t);return i.map((function(r){return Nt(t,o(r))})).asImmutable()}(this,t,r)},has:function(t){return this.get(t,i)!==i},hasIn:function(t){return Le(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:S(t),this.every((function(r){return t.includes(r)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:S(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(r){return ft(r,t)}))},keySeq:function(){return this.toSeq().map(He).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ct(this,t)},maxBy:function(t,r){return Ct(this,r,t)},min:function(t){return Ct(this,t?Ye(t):Xe)},minBy:function(t,r){return Ct(this,r?Ye(r):Xe,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 Nt(this,Ut(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(Ve(t),r)},sortBy:function(t,r){return Nt(this,Lt(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 Nt(this,function(t,r,e){var n=Jt(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate((function(t,i,s){return r.call(e,t,i,s)&&++u&&n(t,i,o)})),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(U,i),s=!0;return new C((function(){if(!s)return{value:void 0,done:!0};var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return r.call(e,c,a,o)?n===U?t:B(n,a,c,t):(s=!1,{value:void 0,done:!0})}))},n}(this,t,r))},takeUntil:function(t,r){return this.takeWhile(Ve(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=j(t),e=g(t),n=r?1:0;return function(t,r){return r=ht(r,3432918353),r=ht(r<<15|r>>>-15,461845907),r=ht(r<<13|r>>>-13,5),r=ht((r=(r+3864292196|0)^t)^r>>>16,2246822507),r=_t((r=ht(r^r>>>13,3266489909))^r>>>16)}(t.__iterate(e?r?function(t,r){n=31*n+Fe(lt(t),lt(r))|0}:function(t,r){n=n+Fe(lt(t),lt(r))|0}:r?function(t){n=31*n+lt(t)|0}:function(t){n=n+lt(t)|0}),n)}(this))}});var Be=S.prototype;Be[v]=!0,Be[L]=Be.values,Be.toJSON=Be.toArray,Be.__toStringMapper=tr,Be.inspect=Be.toSource=function(){return""+this},Be.chain=Be.flatMap,Be.contains=Be.includes,Ee(I,{flip:function(){return Nt(this,At(this))},mapEntries:function(t,r){var e=this,n=0;return Nt(this,this.toSeq().map((function(i,o){return t.call(r,[o,i],n++,e)})).fromEntrySeq())},mapKeys:function(t,r){var e=this;return Nt(this,this.toSeq().flip().map((function(n,i){return t.call(r,n,i,e)})).flip())}});var We=I.prototype;We[d]=!0,We[L]=Be.entries,We.toJSON=Ce,We.__toStringMapper=function(t,r){return tr(r)+": "+tr(t)},Ee(b,{toKeyedSeq:function(){return new Et(this,!1)},filter:function(t,r){return Nt(this,kt(this,t,r,!1))},findIndex:function(t,r){var e=this.findEntry(t,r);return e?e[0]:-1},indexOf:function(t){var r=this.keyOf(t);return void 0===r?-1:r},lastIndexOf:function(t){var r=this.lastKeyOf(t);return void 0===r?-1:r},reverse:function(){return Nt(this,jt(this,!1))},slice:function(t,r){return Nt(this,Rt(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=h(t,0>t?this.count():this.size);var n=this.slice(0,t);return Nt(this,1===e?n:n.concat(Qt(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){var e=this.findLastEntry(t,r);return e?e[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Nt(this,Tt(this,t,!1))},get:function(t,r){return 0>(t=a(this,t))||this.size===1/0||void 0!==this.size&&t>this.size?r:this.find((function(r,e){return e===t}),void 0,r)},has:function(t){return(t=a(this,t))>=0&&(void 0!==this.size?this.size===1/0||this.size>t:-1!==this.indexOf(t))},interpose:function(t){return Nt(this,function(t,r){var e=Jt(t);return e.size=t.size&&2*t.size-1,e.__iterateUncached=function(e,n){var i=this,o=0;return t.__iterate((function(t){return(!o||!1!==e(r,o++,i))&&!1!==e(t,o++,i)}),n),o},e.__iteratorUncached=function(e,n){var i,o=t.__iterator(R,n),u=0;return new C((function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?B(e,u++,r):B(e,u++,i.value,i)}))},e}(this,t))},interleave:function(){var t=[this].concat(Qt(arguments)),r=Wt(this.toSeq(),F.of,t),e=r.flatten(!0);return r.size&&(e.size=r.size*t.length),Nt(this,e)},keySeq:function(){return Ue(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return Nt(this,Ut(this,t,r,!1))},zip:function(){var t=[this].concat(Qt(arguments));return Nt(this,Wt(this,Qe,t))},zipAll:function(){var t=[this].concat(Qt(arguments));return Nt(this,Wt(this,Qe,t,!0))},zipWith:function(t){var r=Qt(arguments);return r[0]=this,Nt(this,Wt(this,t,r))}});var Ne=b.prototype;function Pe(t,r,e,n,i,o){return Ft(t.size),t.__iterate((function(t,o,u){i?(i=!1,e=t):e=r.call(n,e,t,o,u)}),o),e}function He(t,r){return r}function Je(t,r){return[r,t]}function Ve(t){return function(){return!t.apply(this,arguments)}}function Ye(t){return function(){return-t.apply(this,arguments)}}function Qe(){return Qt(arguments)}function Xe(t,r){return r>t?1:t>r?-1:0}function Fe(t,r){return t^r+2654435769+(t<<6)+(t>>2)|0}Ne[w]=!0,Ne[x]=!0,Ee(O,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),O.prototype.has=Be.includes,O.prototype.contains=O.prototype.includes,Ee(X,I.prototype),Ee(F,b.prototype),Ee(G,O.prototype);var Ge=function(t){function r(t){return null==t?rn():be(t)?t:rn().withMutations((function(r){var e=O(t);Ft(e.size),e.forEach((function(t){return r.add(t)}))}))}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return this(arguments)},r.fromKeys=function(t){return this(I(t).keySeq())},r.prototype.toString=function(){return this.__toString("OrderedSet {","}")},r}(qe);Ge.isOrderedSet=be;var Ze,$e=Ge.prototype;function tn(t,r){var e=Object.create($e);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}function rn(){return Ze||(Ze=tn(pe()))}$e[x]=!0,$e.zip=Ne.zip,$e.zipWith=Ne.zipWith,$e.__empty=rn,$e.__make=tn;var en=function(t,r){var e,n=function(o){var u=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!e){e=!0;var s=Object.keys(t),a=i._indices={};i._name=r,i._keys=s,i._defaultValues=t;for(var c=0;s.length>c;c++){var f=s[c];a[f]=c,i[f]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+sn(this)+' with property "'+f+'" since that property name is part of the Record API.'):cn(i,f)}}this.__ownerID=void 0,this._values=Gr().withMutations((function(t){t.setSize(u._keys.length),I(o).forEach((function(r,e){t.set(u._indices[e],r===u._defaultValues[e]?void 0:r)}))}))},i=n.prototype=Object.create(on);return i.constructor=n,r&&(n.displayName=r),n};en.prototype.toString=function(){for(var t,r=sn(this)+" { ",e=this._keys,n=0,i=e.length;n!==i;n++)r+=(n?", ":"")+(t=e[n])+": "+tr(this.get(t));return r+" }"},en.prototype.equals=function(t){return this===t||t&&this._keys===t._keys&&an(this).equals(an(t))},en.prototype.hashCode=function(){return an(this).hashCode()},en.prototype.has=function(t){return this._indices.hasOwnProperty(t)},en.prototype.get=function(t,r){if(!this.has(t))return r;var e=this._values.get(this._indices[t]);return void 0===e?this._defaultValues[t]:e},en.prototype.set=function(t,r){if(this.has(t)){var e=this._values.set(this._indices[t],r===this._defaultValues[t]?void 0:r);if(e!==this._values&&!this.__ownerID)return un(this,e)}return this},en.prototype.remove=function(t){return this.set(t)},en.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:un(this,t)},en.prototype.wasAltered=function(){return this._values.wasAltered()},en.prototype.toSeq=function(){return an(this)},en.prototype.toJS=function(){return Me(this)},en.prototype.entries=function(){return this.__iterator(U)},en.prototype.__iterator=function(t,r){return an(this).__iterator(t,r)},en.prototype.__iterate=function(t,r){return an(this).__iterate(t,r)},en.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?un(this,r,t):(this.__ownerID=t,this._values=r,this)},en.isRecord=D,en.getDescriptiveName=sn;var nn,on=en.prototype;function un(t,r,e){var n=Object.create(Object.getPrototypeOf(t));return n._values=r,n.__ownerID=e,n}function sn(t){return t.constructor.displayName||t.constructor.name||"Record"}function an(t){return nt(t._keys.map((function(r){return[r,t.get(r)]})))}function cn(t,r){try{Object.defineProperty(t,r,{get:function(){return this.get(r)},set:function(t){Xt(this.__ownerID,"Cannot set on an immutable record."),this.set(r,t)}})}catch(t){}}function fn(t,r){return g(r)?r.toMap():r.toList()}on[q]=!0,on.delete=on.remove,on.deleteIn=on.removeIn=fr,on.getIn=Te,on.hasIn=Be.hasIn,on.merge=lr,on.mergeWith=vr,on.mergeIn=zr,on.mergeDeep=wr,on.mergeDeepWith=mr,on.mergeDeepIn=Sr,on.setIn=ar,on.update=_r,on.updateIn=pr,on.withMutations=Ir,on.asMutable=br,on.asImmutable=Or,on[L]=on.entries,on.toJSON=on.toObject=Be.toObject,on.inspect=on.toSource=function(){return""+this};var hn={version:"4.0.0-rc.11",Collection:S,Iterable:S,Seq:Q,Map:Mr,OrderedMap:he,List:Gr,Stack:de,Set:qe,OrderedSet:Ge,Record:en,Range:Ue,Repeat:function(t){function r(t,e){if(!(this instanceof r))return new r(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(nn)return nn;nn=this}}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},r.prototype.get=function(t,r){return this.has(t)?this._value:r},r.prototype.includes=function(t){return ft(this._value,t)},r.prototype.slice=function(t,e){var n=this.size;return f(t,e,n)?this:new r(this._value,_(e,n)-h(t,n))},r.prototype.reverse=function(){return this},r.prototype.indexOf=function(t){return ft(this._value,t)?0:-1},r.prototype.lastIndexOf=function(t){return ft(this._value,t)?this.size:-1},r.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},r.prototype.__iterator=function(t,r){var e=this,n=this.size,i=0;return new C((function(){return i===n?{value:void 0,done:!0}:B(t,r?n-++i:i++,e._value)}))},r.prototype.equals=function(t){return t instanceof r?ft(this._value,t._value):Oe(t)},r}(F),is:ft,fromJS:function(t,r){return function t(r,e,n,i,o,u){var s=Array.isArray(n)?F:Zt(n)?X:null;if(s){if(~r.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");r.push(n),o&&""!==i&&o.push(i);var a=e.call(u,i,s(n).map((function(i,u){return t(r,e,i,u,o,n)})),o&&o.slice());return r.pop(),o&&o.pop(),a}return n}([],r||fn,t,"",r&&r.length>2?[]:void 0,{"":t})},hash:lt,isImmutable:A,isCollection:y,isKeyed:g,isIndexed:m,isAssociative:z,isOrdered:j,isValueObject:ct,isSeq:M,isList:Fr,isMap:st,isOrderedMap:at,isStack:ye,isSet:Ie,isOrderedSet:be,isRecord:D,get:er,getIn:Ke,has:rr,hasIn:Le,merge:function(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return gr(t,r)},mergeDeep:function(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return dr(t,r)},mergeWith:function(t,r){for(var e=[],n=arguments.length-2;n-- >0;)e[n]=arguments[n+2];return gr(r,e,t)},mergeDeepWith:function(t,r){for(var e=[],n=arguments.length-2;n-- >0;)e[n]=arguments[n+2];return dr(r,e,t)},remove:ir,removeIn:cr,set:or,setIn:sr,update:hr,updateIn:ur};t.combineReducers=function(t,r){void 0===r&&(r=hn.Map);var e=Object.keys(t),n=hn.Map();return void 0!==r&&(n=r()),function(r,i){return void 0===r&&(r=n),r.withMutations((function(r){e.forEach((function(e){var n=(0,t[e])(r.get(e),i);!function(t,r,e){if(void 0===t)throw Error('Reducer "'+r+'" returned undefined when handling "'+e.type+'" action. To ignore an action, you must explicitly return the previous state.')}(n,e,i),r.set(e,n)}))}))}},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t=t||self).Redux={})}(this,(function(t){"use strict";var r=5,e=1<<r,n=e-1,i={};function o(t){t&&(t.value=!0)}function u(){}function s(t){return void 0===t.size&&(t.size=t.__iterate(c)),t.size}function a(t,r){if("number"!=typeof r){var e=r>>>0;if(""+e!==r||4294967295===e)return NaN;r=e}return 0>r?s(t)+r:r}function c(){return!0}function f(t,r,e){return(0===t&&!l(t)||void 0!==e&&-e>=t)&&(void 0===r||void 0!==e&&r>=e)}function h(t,r){return p(t,r,0)}function _(t,r){return p(t,r,r)}function p(t,r,e){return void 0===t?e:l(t)?r===1/0?r:0|Math.max(0,r+t):void 0===r||r===t?t:0|Math.min(r,t)}function l(t){return 0>t||0===t&&1/t==-1/0}var v="@@__IMMUTABLE_ITERABLE__@@";function y(t){return!(!t||!t[v])}var d="@@__IMMUTABLE_KEYED__@@";function g(t){return!(!t||!t[d])}var w="@@__IMMUTABLE_INDEXED__@@";function m(t){return!(!t||!t[w])}function z(t){return g(t)||m(t)}var S=function(t){return y(t)?t:Q(t)},I=function(t){function r(t){return g(t)?t:X(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r}(S),b=function(t){function r(t){return m(t)?t:F(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r}(S),O=function(t){function r(t){return y(t)&&!z(t)?t:G(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r}(S);S.Keyed=I,S.Indexed=b,S.Set=O;var E="@@__IMMUTABLE_SEQ__@@";function q(t){return!(!t||!t[E])}var M="@@__IMMUTABLE_RECORD__@@";function D(t){return!(!t||!t[M])}function A(t){return y(t)||D(t)}var j="@@__IMMUTABLE_ORDERED__@@";function x(t){return!(!t||!t[j])}var k=0,R=1,U=2,K="function"==typeof Symbol&&Symbol.iterator,T="@@iterator",L=K||T,B=function(t){this.next=t};function C(t,r,e,n){var i=0===t?r:1===t?e:[r,e];return n?n.value=i:n={value:i,done:!1},n}function W(){return{value:void 0,done:!0}}function N(t){return!!J(t)}function P(t){return t&&"function"==typeof t.next}function H(t){var r=J(t);return r&&r.call(t)}function J(t){var r=t&&(K&&t[K]||t[T]);if("function"==typeof r)return r}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=k,B.VALUES=R,B.ENTRIES=U,B.prototype.inspect=B.prototype.toSource=function(){return""+this},B.prototype[L]=function(){return this};var V=Object.prototype.hasOwnProperty;function Y(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var Q=function(t){function r(t){return null==t?et():A(t)?t.toSeq():function(t){var r=ot(t);if(r)return r;if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,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(t,r){var e=this._cache;if(e){var n=e.length,i=0;return new B((function(){if(i===n)return{value:void 0,done:!0};var o=e[r?n-++i:i++];return C(t,o[0],o[1])}))}return this.__iteratorUncached(t,r)},r}(S),X=function(t){function r(t){return null==t?et().toKeyedSeq():y(t)?g(t)?t.toSeq():t.fromEntrySeq():D(t)?t.toSeq():nt(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.toKeyedSeq=function(){return this},r}(Q),F=function(t){function r(t){return null==t?et():y(t)?g(t)?t.entrySeq():t.toIndexedSeq():D(t)?t.toSeq().entrySeq():it(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return r(arguments)},r.prototype.toIndexedSeq=function(){return this},r.prototype.toString=function(){return this.__toString("Seq [","]")},r}(Q),G=function(t){function r(t){return(y(t)&&!z(t)?t:F(t)).toSetSeq()}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return r(arguments)},r.prototype.toSetSeq=function(){return this},r}(Q);Q.isSeq=q,Q.Keyed=X,Q.Set=G,Q.Indexed=F,Q.prototype[E]=!0;var Z=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,r.prototype.get=function(t,r){return this.has(t)?this._array[a(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(t,r){var e=this._array,n=e.length,i=0;return new B((function(){if(i===n)return{value:void 0,done:!0};var o=r?n-++i:i++;return C(t,o,e[o])}))},r}(F),$=function(t){function r(t){var r=Object.keys(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,r.prototype.get=function(t,r){return void 0===r||this.has(t)?this._object[t]:r},r.prototype.has=function(t){return V.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(t,r){var e=this._object,n=this._keys,i=n.length,o=0;return new B((function(){if(o===i)return{value:void 0,done:!0};var u=n[r?i-++o:o++];return C(t,u,e[u])}))},r}(X);$.prototype[j]=!0;var tt,rt=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,r.prototype.__iterateUncached=function(t,r){if(r)return this.cacheResult().__iterate(t,r);var e=H(this._collection),n=0;if(P(e))for(var i;!(i=e.next()).done&&!1!==t(i.value,n++,this););return n},r.prototype.__iteratorUncached=function(t,r){if(r)return this.cacheResult().__iterator(t,r);var e=H(this._collection);if(!P(e))return new B(W);var n=0;return new B((function(){var r=e.next();return r.done?r:C(t,n++,r.value)}))},r}(F);function et(){return tt||(tt=new Z([]))}function nt(t){var r=Array.isArray(t)?new Z(t):N(t)?new rt(t):void 0;if(r)return r.fromEntrySeq();if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function it(t){var r=ot(t);if(r)return r;throw new TypeError("Expected Array or collection object of values: "+t)}function ot(t){return Y(t)?new Z(t):N(t)?new rt(t):void 0}var ut="@@__IMMUTABLE_MAP__@@";function st(t){return!(!t||!t[ut])}function at(t){return st(t)&&x(t)}function ct(t){return!(!t||"function"!=typeof t.equals||"function"!=typeof t.hashCode)}function ft(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!!(ct(t)&&ct(r)&&t.equals(r))}var ht="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 _t(t){return t>>>1&1073741824|3221225471&t}var pt=Object.prototype.valueOf;function lt(t){switch(typeof t){case"boolean":return t?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(;t>4294967295;)r^=t/=4294967295;return _t(r)}(t);case"string":return t.length>St?function(t){var r=Ot[t];void 0===r&&(r=vt(t),bt===It&&(bt=0,Ot={}),bt++,Ot[t]=r);return r}(t):vt(t);case"object":case"function":return null===t?1108378658:"function"==typeof t.hashCode?_t(t.hashCode(t)):(t.valueOf!==pt&&"function"==typeof t.valueOf&&(t=t.valueOf(t)),function(t){var r;if(wt&&void 0!==(r=gt.get(t)))return r;if(void 0!==(r=t[zt]))return r;if(!dt){if(void 0!==(r=t.propertyIsEnumerable&&t.propertyIsEnumerable[zt]))return r;if(void 0!==(r=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return r}r=++mt,1073741824&mt&&(mt=0);if(wt)gt.set(t,r);else{if(void 0!==yt&&!1===yt(t))throw Error("Non-extensible objects are not allowed as keys.");if(dt)Object.defineProperty(t,zt,{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[zt]=r;else{if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[zt]=r}}return r}(t));case"undefined":return 1108378659;default:if("function"==typeof t.toString)return vt(""+t);throw Error("Value type "+typeof t+" cannot be hashed.")}}function vt(t){for(var r=0,e=0;t.length>e;e++)r=31*r+t.charCodeAt(e)|0;return _t(r)}var yt=Object.isExtensible,dt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();var gt,wt="function"==typeof WeakMap;wt&&(gt=new WeakMap);var mt=0,zt="__immutablehash__";"function"==typeof Symbol&&(zt=Symbol(zt));var St=16,It=255,bt=0,Ot={},Et=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,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=xt(this,!0);return this._useKeys||(r.valueSeq=function(){return t._iter.toSeq().reverse()}),r},r.prototype.map=function(t,r){var e=this,n=jt(this,t,r);return this._useKeys||(n.valueSeq=function(){return e._iter.toSeq().map(t,r)}),n},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r,n){return t(r,n,e)}),r)},r.prototype.__iterator=function(t,r){return this._iter.__iterator(t,r)},r}(X);Et.prototype[j]=!0;var qt=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,r.prototype.includes=function(t){return this._iter.includes(t)},r.prototype.__iterate=function(t,r){var e=this,n=0;return r&&s(this),this._iter.__iterate((function(i){return t(i,r?e.size-++n:n++,e)}),r)},r.prototype.__iterator=function(t,r){var e=this,n=this._iter.__iterator(R,r),i=0;return r&&s(this),new B((function(){var o=n.next();return o.done?o:C(t,r?e.size-++i:i++,o.value,o)}))},r}(F),Mt=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,r.prototype.has=function(t){return this._iter.includes(t)},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r){return t(r,r,e)}),r)},r.prototype.__iterator=function(t,r){var e=this._iter.__iterator(R,r);return new B((function(){var r=e.next();return r.done?r:C(t,r.value,r.value,r)}))},r}(G),Dt=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,r.prototype.entrySeq=function(){return this._iter.toSeq()},r.prototype.__iterate=function(t,r){var e=this;return this._iter.__iterate((function(r){if(r){Pt(r);var n=y(r);return t(n?r.get(1):r[1],n?r.get(0):r[0],e)}}),r)},r.prototype.__iterator=function(t,r){var e=this._iter.__iterator(R,r);return new B((function(){for(;;){var r=e.next();if(r.done)return r;var n=r.value;if(n){Pt(n);var i=y(n);return C(t,i?n.get(0):n[0],i?n.get(1):n[1],r)}}}))},r}(X);function At(t){var r=Jt(t);return r._iter=t,r.size=t.size,r.flip=function(){return t},r.reverse=function(){var r=t.reverse.apply(this);return r.flip=function(){return t.reverse()},r},r.has=function(r){return t.includes(r)},r.includes=function(r){return t.has(r)},r.cacheResult=Vt,r.__iterateUncached=function(r,e){var n=this;return t.__iterate((function(t,e){return!1!==r(e,t,n)}),e)},r.__iteratorUncached=function(r,e){if(r===U){var n=t.__iterator(r,e);return new B((function(){var t=n.next();if(!t.done){var r=t.value[0];t.value[0]=t.value[1],t.value[1]=r}return t}))}return t.__iterator(r===R?k:R,e)},r}function jt(t,r,e){var n=Jt(t);return n.size=t.size,n.has=function(r){return t.has(r)},n.get=function(n,o){var u=t.get(n,i);return u===i?o:r.call(e,u,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,u){return!1!==n(r.call(e,t,i,u),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(U,i);return new B((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return C(n,s,r.call(e,u[1],s,t),i)}))},n}function xt(t,r){var e=this,n=Jt(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var r=At(t);return r.reverse=function(){return t.flip()},r}),n.get=function(e,n){return t.get(r?e:-1-e,n)},n.has=function(e){return t.has(r?e:-1-e)},n.includes=function(r){return t.includes(r)},n.cacheResult=Vt,n.__iterate=function(e,n){var i=this,o=0;return n&&s(t),t.__iterate((function(t,u){return e(t,r?u:n?i.size-++o:o++,i)}),!n)},n.__iterator=function(n,i){var o=0;i&&s(t);var u=t.__iterator(U,!i);return new B((function(){var t=u.next();if(t.done)return t;var s=t.value;return C(n,r?s[0]:i?e.size-++o:o++,s[1],t)}))},n}function kt(t,r,e,n){var o=Jt(t);return n&&(o.has=function(n){var o=t.get(n,i);return o!==i&&!!r.call(e,o,n,t)},o.get=function(n,o){var u=t.get(n,i);return u!==i&&r.call(e,u,n,t)?u:o}),o.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate((function(t,o,a){if(r.call(e,t,o,a))return s++,i(t,n?o:s-1,u)}),o),s},o.__iteratorUncached=function(i,o){var u=t.__iterator(U,o),s=0;return new B((function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(r.call(e,f,c,t))return C(i,n?c:s++,f,o)}}))},o}function Rt(t,r,e,n){var i=t.size;if(f(r,e,i))return t;var o=h(r,i),u=_(e,i);if(o!=o||u!=u)return Rt(t.toSeq().cacheResult(),r,e,n);var s,c=u-o;c==c&&(s=0>c?0:c);var p=Jt(t);return p.size=0===s?s:t.size&&s||void 0,n||!q(t)||0>s||(p.get=function(r,e){return(r=a(this,r))>=0&&s>r?t.get(r+o,e):e}),p.__iterateUncached=function(r,e){var i=this;if(0===s)return 0;if(e)return this.cacheResult().__iterate(r,e);var u=0,a=!0,c=0;return t.__iterate((function(t,e){if(!a||!(a=u++<o))return c++,!1!==r(t,n?e:c-1,i)&&c!==s})),c},p.__iteratorUncached=function(r,e){if(0!==s&&e)return this.cacheResult().__iterator(r,e);if(0===s)return new B(W);var i=t.__iterator(r,e),u=0,a=0;return new B((function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return n||r===R||t.done?t:C(r,a-1,r===k?void 0:t.value[1],t)}))},p}function Ut(t,r,e,n){var i=Jt(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate((function(t,o,c){if(!s||!(s=r.call(e,t,o,c)))return a++,i(t,n?o:a-1,u)})),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(U,o),a=!0,c=0;return new B((function(){var t,o,f;do{if((t=s.next()).done)return n||i===R?t:C(i,c++,i===k?void 0:t.value[1],t);var h=t.value;o=h[0],f=h[1],a&&(a=r.call(e,f,o,u))}while(a);return i===U?t:C(i,o,f,t)}))},i}function Kt(t,r){var e=g(t),n=[t].concat(r).map((function(t){return y(t)?e&&(t=I(t)):t=e?nt(t):it(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||e&&g(i)||m(t)&&m(i))return i}var o=new Z(n);return e?o=o.toKeyedSeq():m(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce((function(t,r){if(void 0!==t){var e=r.size;if(void 0!==e)return t+e}}),0),o}function Tt(t,r,e){var n=Jt(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var u=0,s=!1;return function t(a,c){a.__iterate((function(o,a){return r&&c>=r||!y(o)?(u++,!1===i(o,e?a:u-1,n)&&(s=!0)):t(o,c+1),!s}),o)}(t,0),u},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),u=[],s=0;return new B((function(){for(;o;){var t=o.next();if(!1===t.done){var a=t.value;if(n===U&&(a=a[1]),r&&u.length>=r||!y(a))return e?t:C(n,s++,a,t);u.push(o),o=a.__iterator(n,i)}else o=u.pop()}return{value:void 0,done:!0}}))},n}function Lt(t,r,e){r||(r=Yt);var n=g(t),i=0,o=t.toSeq().map((function(r,n){return[n,r,i++,e?e(r,n,t):r]})).valueSeq().toArray();return o.sort((function(t,e){return r(t[3],e[3])||t[2]-e[2]})).forEach(n?function(t,r){o[r].length=2}:function(t,r){o[r]=t[1]}),n?X(o):m(t)?F(o):G(o)}function Bt(t,r,e){if(r||(r=Yt),e){var n=t.toSeq().map((function(r,n){return[r,e(r,n,t)]})).reduce((function(t,e){return Ct(r,t[1],e[1])?e:t}));return n&&n[0]}return t.reduce((function(t,e){return Ct(r,t,e)?e:t}))}function Ct(t,r,e){var n=t(e,r);return 0===n&&e!==r&&(null==e||e!=e)||n>0}function Wt(t,r,e,n){var i=Jt(t),o=new Z(e).map((function(t){return t.size}));return i.size=n?o.max():o.min(),i.__iterate=function(t,r){for(var e,n=this.__iterator(R,r),i=0;!(e=n.next()).done&&!1!==t(e.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=e.map((function(t){return t=S(t),H(i?t.reverse():t)})),u=0,s=!1;return new B((function(){var e;return s||(e=o.map((function(t){return t.next()})),s=n?e.every((function(t){return t.done})):e.some((function(t){return t.done}))),s?{value:void 0,done:!0}:C(t,u++,r.apply(null,e.map((function(t){return t.value}))))}))},i}function Nt(t,r){return t===r?t:q(t)?r:t.constructor(r)}function Pt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ht(t){return g(t)?I:m(t)?b:O}function Jt(t){return Object.create((g(t)?X:m(t)?F:G).prototype)}function Vt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function Yt(t,r){return void 0===t&&void 0===r?0:void 0===t?1:void 0===r?-1:t>r?1:r>t?-1:0}function Qt(t,r){for(var e=Math.max(0,t.length-(r=r||0)),n=Array(e),i=0;e>i;i++)n[i]=t[i+r];return n}function Xt(t,r){if(!t)throw Error(r)}function Ft(t){Xt(t!==1/0,"Cannot perform this action with an infinite size.")}function Gt(t){if(Y(t)&&"string"!=typeof t)return t;if(x(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}function Zt(t){return"object"==typeof t&&(A(t)||Array.isArray(t)||function(t){return t&&("function"!=typeof t.constructor||"Object"===t.constructor.name)}(t))}function $t(t){try{return"string"==typeof t?JSON.stringify(t):t+""}catch(r){return JSON.stringify(t)}}function tr(t,r,e){return A(t)?t.get(r,e):function(t,r){return A(t)?t.has(r):Zt(t)&&V.call(t,r)}(t,r)?"function"==typeof t.get?t.get(r):t[r]:e}function rr(t){if(Array.isArray(t))return Qt(t);var r={};for(var e in t)V.call(t,e)&&(r[e]=t[e]);return r}function er(t,r,e,n){n||(n=e,e=void 0);var o=function t(r,e,n,o,u,s){var a=e===i;if(o===n.length){var c=a?u:e,f=s(c);return f===c?e:f}if(!a&&!Zt(e))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,o).map($t)+"]: "+e);var h=n[o],_=a?i:tr(e,h,i),p=t(_===i?r:A(_),_,n,o+1,u,s);return p===_?e:p===i?function(t,r){if(!Zt(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(!V.call(t,r))return t;var e=rr(t);return Array.isArray(e)?e.splice(r,1):delete e[r],e}(e,h):function(t,r,e){if(!Zt(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(V.call(t,r)&&e===t[r])return t;var n=rr(t);return n[r]=e,n}(a?r?kr():{}:e,h,p)}(A(t),t,Gt(r),0,e,n);return o===i?e:o}function nr(t,r){return function(t,r,e){return er(t,r,i,(function(){return e}))}(this,t,r)}function ir(t){return function(t,r){return er(t,r,(function(){return i}))}(this,t)}function or(t,r,e,n){return er(t,[r],e,n)}function ur(t,r,e){return 1===arguments.length?t(this):or(this,t,r,e)}function sr(t,r,e){return er(this,t,r,e)}function ar(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return fr(this,t)}function cr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return fr(this,r,t)}function fr(t,r,e){for(var n=[],o=0;r.length>o;o++){var u=I(r[o]);0!==u.size&&n.push(u)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var r=e?function(r,n){or(t,n,i,(function(t){return t===i?r:e(t,r,n)}))}:function(r,e){t.set(e,r)},o=0;n.length>o;o++)n[o].forEach(r)})):t.constructor(n[0])}function hr(t,r,e){return _r(t,r,function(t){return function r(e,n,i){return Zt(e)&&Zt(n)?_r(e,[n],r):t?t(e,n,i):n}}(e))}function _r(t,r,e){if(!Zt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(A(t))return"function"==typeof e&&t.mergeWith?t.mergeWith.apply(t,[e].concat(r)):t.merge?t.merge.apply(t,r):t.concat.apply(t,r);for(var n=Array.isArray(t),i=t,o=n?b:I,u=n?function(r){i===t&&(i=rr(i)),i.push(r)}:function(r,n){var o=V.call(i,n),u=o&&e?e(i[n],r,n):r;o&&u===i[n]||(i===t&&(i=rr(i)),i[n]=u)},s=0;r.length>s;s++)o(r[s]).forEach(u);return i}function pr(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return hr(this,t)}function lr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return hr(this,r,t)}function vr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return er(this,t,kr(),(function(t){return _r(t,r)}))}function yr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return er(this,t,kr(),(function(t){return hr(t,r)}))}function dr(t){var r=this.asMutable();return t(r),r.wasAltered()?r.__ensureOwner(this.__ownerID):this}function gr(){return this.__ownerID?this:this.__ensureOwner(new u)}function wr(){return this.__ensureOwner()}function mr(){return this.__altered}qt.prototype.cacheResult=Et.prototype.cacheResult=Mt.prototype.cacheResult=Dt.prototype.cacheResult=Vt;var zr=function(t){function r(r){return null==r?kr():st(r)&&!x(r)?r:kr().withMutations((function(e){var n=t(r);Ft(n.size),n.forEach((function(t,r){return e.set(r,t)}))}))}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return kr().withMutations((function(r){for(var e=0;t.length>e;e+=2){if(e+1>=t.length)throw Error("Missing value for key: "+t[e]);r.set(t[e],t[e+1])}}))},r.prototype.toString=function(){return this.__toString("Map {","}")},r.prototype.get=function(t,r){return this._root?this._root.get(0,void 0,t,r):r},r.prototype.set=function(t,r){return Rr(this,t,r)},r.prototype.remove=function(t){return Rr(this,t,i)},r.prototype.deleteAll=function(t){var r=S(t);return 0===r.size?this:this.withMutations((function(t){r.forEach((function(r){return t.remove(r)}))}))},r.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):kr()},r.prototype.sort=function(t){return oe(Lt(this,t))},r.prototype.sortBy=function(t,r){return oe(Lt(this,r,t))},r.prototype.map=function(t,r){return this.withMutations((function(e){e.forEach((function(n,i){e.set(i,t.call(r,n,i,e))}))}))},r.prototype.__iterator=function(t,r){return new Dr(this,t,r)},r.prototype.__iterate=function(t,r){var e=this,n=0;return this._root&&this._root.iterate((function(r){return n++,t(r[1],r[0],e)}),r),n},r.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?xr(this.size,this._root,t,this.__hash):0===this.size?kr():(this.__ownerID=t,this.__altered=!1,this)},r}(I);zr.isMap=st;var Sr=zr.prototype;Sr[ut]=!0,Sr.delete=Sr.remove,Sr.removeAll=Sr.deleteAll,Sr.setIn=nr,Sr.removeIn=Sr.deleteIn=ir,Sr.update=ur,Sr.updateIn=sr,Sr.merge=Sr.concat=ar,Sr.mergeWith=cr,Sr.mergeDeep=pr,Sr.mergeDeepWith=lr,Sr.mergeIn=vr,Sr.mergeDeepIn=yr,Sr.withMutations=dr,Sr.wasAltered=mr,Sr.asImmutable=wr,Sr["@@transducer/init"]=Sr.asMutable=gr,Sr["@@transducer/step"]=function(t,r){return t.set(r[0],r[1])},Sr["@@transducer/result"]=function(t){return t.asImmutable()};var Ir=function(t,r){this.ownerID=t,this.entries=r};Ir.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(ft(e,i[o][0]))return i[o][1];return n},Ir.prototype.update=function(t,r,e,n,s,a,c){for(var f=s===i,h=this.entries,_=0,p=h.length;p>_&&!ft(n,h[_][0]);_++);var l=p>_;if(l?h[_][1]===s:f)return this;if(o(c),(f||!l)&&o(a),!f||1!==h.length){if(!l&&!f&&h.length>=Cr)return function(t,r,e,n){t||(t=new u);for(var i=new qr(t,lt(e),[e,n]),o=0;r.length>o;o++){var s=r[o];i=i.update(t,0,void 0,s[0],s[1])}return i}(t,h,n,s);var v=t&&t===this.ownerID,y=v?h:Qt(h);return l?f?_===p-1?y.pop():y[_]=y.pop():y[_]=[n,s]:y.push([n,s]),v?(this.entries=y,this):new Ir(t,y)}};var br=function(t,r,e){this.ownerID=t,this.bitmap=r,this.nodes=e};br.prototype.get=function(t,e,i,o){void 0===e&&(e=lt(i));var u=1<<((0===t?e:e>>>t)&n),s=this.bitmap;return 0==(s&u)?o:this.nodes[Lr(s&u-1)].get(t+r,e,i,o)},br.prototype.update=function(t,o,u,s,a,c,f){void 0===u&&(u=lt(s));var h=(0===o?u:u>>>o)&n,_=1<<h,p=this.bitmap,l=0!=(p&_);if(!l&&a===i)return this;var v=Lr(p&_-1),y=this.nodes,d=l?y[v]:void 0,g=Ur(d,t,o+r,u,s,a,c,f);if(g===d)return this;if(!l&&g&&y.length>=Wr)return function(t,r,n,i,o){for(var u=0,s=Array(e),a=0;0!==n;a++,n>>>=1)s[a]=1&n?r[u++]:void 0;return s[i]=o,new Or(t,u+1,s)}(t,y,p,h,g);if(l&&!g&&2===y.length&&Kr(y[1^v]))return y[1^v];if(l&&g&&1===y.length&&Kr(g))return g;var w=t&&t===this.ownerID,m=l?g?p:p^_:p|_,z=l?g?Br(y,v,g,w):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;n>u;u++)u===r&&(o=1),i[u]=t[u+o];return i}(y,v,w):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;i>s;s++)s===r?(o[s]=e,u=-1):o[s]=t[s+u];return o}(y,v,g,w);return w?(this.bitmap=m,this.nodes=z,this):new br(t,m,z)};var Or=function(t,r,e){this.ownerID=t,this.count=r,this.nodes=e};Or.prototype.get=function(t,e,i,o){void 0===e&&(e=lt(i));var u=this.nodes[(0===t?e:e>>>t)&n];return u?u.get(t+r,e,i,o):o},Or.prototype.update=function(t,e,o,u,s,a,c){void 0===o&&(o=lt(u));var f=(0===e?o:o>>>e)&n,h=this.nodes,_=h[f];if(s===i&&!_)return this;var p=Ur(_,t,e+r,o,u,s,a,c);if(p===_)return this;var l=this.count;if(_){if(!p&&(l--,Nr>l))return function(t,r,e,n){for(var i=0,o=0,u=Array(e),s=0,a=1,c=r.length;c>s;s++,a<<=1){var f=r[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new br(t,i,u)}(t,h,l,f)}else l++;var v=t&&t===this.ownerID,y=Br(h,f,p,v);return v?(this.count=l,this.nodes=y,this):new Or(t,l,y)};var Er=function(t,r,e){this.ownerID=t,this.keyHash=r,this.entries=e};Er.prototype.get=function(t,r,e,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(ft(e,i[o][0]))return i[o][1];return n},Er.prototype.update=function(t,r,e,n,u,s,a){void 0===e&&(e=lt(n));var c=u===i;if(e!==this.keyHash)return c?this:(o(a),o(s),Tr(this,t,r,e,[n,u]));for(var f=this.entries,h=0,_=f.length;_>h&&!ft(n,f[h][0]);h++);var p=_>h;if(p?f[h][1]===u:c)return this;if(o(a),(c||!p)&&o(s),c&&2===_)return new qr(t,this.keyHash,f[1^h]);var l=t&&t===this.ownerID,v=l?f:Qt(f);return p?c?h===_-1?v.pop():v[h]=v.pop():v[h]=[n,u]:v.push([n,u]),l?(this.entries=v,this):new Er(t,this.keyHash,v)};var qr=function(t,r,e){this.ownerID=t,this.keyHash=r,this.entry=e};qr.prototype.get=function(t,r,e,n){return ft(e,this.entry[0])?this.entry[1]:n},qr.prototype.update=function(t,r,e,n,u,s,a){var c=u===i,f=ft(n,this.entry[0]);return(f?u===this.entry[1]:c)?this:(o(a),c?void o(s):f?t&&t===this.ownerID?(this.entry[1]=u,this):new qr(t,this.keyHash,[n,u]):(o(s),Tr(this,t,r,lt(n),[n,u])))},Ir.prototype.iterate=Er.prototype.iterate=function(t,r){for(var e=this.entries,n=0,i=e.length-1;i>=n;n++)if(!1===t(e[r?i-n:n]))return!1},br.prototype.iterate=Or.prototype.iterate=function(t,r){for(var e=this.nodes,n=0,i=e.length-1;i>=n;n++){var o=e[r?i-n:n];if(o&&!1===o.iterate(t,r))return!1}},qr.prototype.iterate=function(t,r){return t(this.entry)};var Mr,Dr=function(t){function r(t,r,e){this._type=r,this._reverse=e,this._stack=t._root&&jr(t._root)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,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 Ar(t,e.entry)}else if(e.entries){if((i=e.entries.length-1)>=n)return Ar(t,e.entries[this._reverse?i-n:n])}else if((i=e.nodes.length-1)>=n){var o=e.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Ar(t,o.entry);r=this._stack=jr(o,r)}continue}r=this._stack=this._stack.__prev}return{value:void 0,done:!0}},r}(B);function Ar(t,r){return C(t,r[0],r[1])}function jr(t,r){return{node:t,index:0,__prev:r}}function xr(t,r,e,n){var i=Object.create(Sr);return i.size=t,i._root=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}function kr(){return Mr||(Mr=xr(0))}function Rr(t,r,e){var n,o;if(t._root){var u={value:!1},s={value:!1};if(n=Ur(t._root,t.__ownerID,0,void 0,r,e,u,s),!s.value)return t;o=t.size+(u.value?e===i?-1:1:0)}else{if(e===i)return t;o=1,n=new Ir(t.__ownerID,[[r,e]])}return t.__ownerID?(t.size=o,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?xr(o,n):kr()}function Ur(t,r,e,n,u,s,a,c){return t?t.update(r,e,n,u,s,a,c):s===i?t:(o(c),o(a),new qr(r,n,[u,s]))}function Kr(t){return t.constructor===qr||t.constructor===Er}function Tr(t,e,i,o,u){if(t.keyHash===o)return new Er(e,o,[t.entry,u]);var s,a=(0===i?t.keyHash:t.keyHash>>>i)&n,c=(0===i?o:o>>>i)&n,f=a===c?[Tr(t,e,i+r,o,u)]:(s=new qr(e,o,u),c>a?[t,s]:[s,t]);return new br(e,1<<a|1<<c,f)}function Lr(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Br(t,r,e,n){var i=n?t:Qt(t);return i[r]=e,i}var Cr=e/4,Wr=e/2,Nr=e/4,Pr="@@__IMMUTABLE_LIST__@@";function Hr(t){return!(!t||!t[Pr])}var Jr=function(t){function i(n){var i=Zr();if(null==n)return i;if(Hr(n))return n;var o=t(n),u=o.size;return 0===u?i:(Ft(u),u>0&&e>u?Gr(0,u,r,null,new Yr(o.toArray())):i.withMutations((function(t){t.setSize(u),o.forEach((function(r,e){return t.set(e,r)}))})))}return t&&(i.__proto__=t),(i.prototype=Object.create(t&&t.prototype)).constructor=i,i.of=function(){return this(arguments)},i.prototype.toString=function(){return this.__toString("List [","]")},i.prototype.get=function(t,r){if((t=a(this,t))>=0&&this.size>t){var e=re(this,t+=this._origin);return e&&e.array[t&n]}return r},i.prototype.set=function(t,r){return function(t,r,e){if((r=a(t,r))!=r)return t;if(r>=t.size||0>r)return t.withMutations((function(t){0>r?ee(t,r).set(0,e):ee(t,0,r+1).set(r,e)}));r+=t._origin;var n=t._tail,i=t._root,o={value:!1};r<ne(t._capacity)?i=$r(i,t.__ownerID,t._level,r,e,o):n=$r(n,t.__ownerID,0,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 Gr(t._origin,t._capacity,t._level,i,n)}(this,t,r)},i.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},i.prototype.insert=function(t,r){return this.splice(t,0,r)},i.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=r,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Zr()},i.prototype.push=function(){var t=arguments,r=this.size;return this.withMutations((function(e){ee(e,0,r+t.length);for(var n=0;t.length>n;n++)e.set(r+n,t[n])}))},i.prototype.pop=function(){return ee(this,0,-1)},i.prototype.unshift=function(){var t=arguments;return this.withMutations((function(r){ee(r,-t.length);for(var e=0;t.length>e;e++)r.set(e,t[e])}))},i.prototype.shift=function(){return ee(this,1)},i.prototype.concat=function(){for(var r=arguments,e=[],n=0;arguments.length>n;n++){var i=r[n],o=t("string"!=typeof i&&N(i)?i:[i]);0!==o.size&&e.push(o)}return 0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){e.forEach((function(r){return r.forEach((function(r){return t.push(r)}))}))})):this.constructor(e[0])},i.prototype.setSize=function(t){return ee(this,0,t)},i.prototype.map=function(t,r){var e=this;return this.withMutations((function(n){for(var i=0;e.size>i;i++)n.set(i,t.call(r,n.get(i),i,n))}))},i.prototype.slice=function(t,r){var e=this.size;return f(t,r,e)?this:ee(this,h(t,e),_(r,e))},i.prototype.__iterator=function(t,r){var e=r?this.size:0,n=Fr(this,r);return new B((function(){var i=n();return i===Xr?{value:void 0,done:!0}:C(t,r?--e:e++,i)}))},i.prototype.__iterate=function(t,r){for(var e,n=r?this.size:0,i=Fr(this,r);(e=i())!==Xr&&!1!==t(e,r?--n:n++,this););return n},i.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Gr(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?Zr():(this.__ownerID=t,this.__altered=!1,this)},i}(b);Jr.isList=Hr;var Vr=Jr.prototype;Vr[Pr]=!0,Vr.delete=Vr.remove,Vr.merge=Vr.concat,Vr.setIn=nr,Vr.deleteIn=Vr.removeIn=ir,Vr.update=ur,Vr.updateIn=sr,Vr.mergeIn=vr,Vr.mergeDeepIn=yr,Vr.withMutations=dr,Vr.wasAltered=mr,Vr.asImmutable=wr,Vr["@@transducer/init"]=Vr.asMutable=gr,Vr["@@transducer/step"]=function(t,r){return t.push(r)},Vr["@@transducer/result"]=function(t){return t.asImmutable()};var Yr=function(t,r){this.array=t,this.ownerID=r};Yr.prototype.removeBefore=function(t,e,i){if(i===e?1<<e:0===this.array.length)return this;var o=i>>>e&n;if(o>=this.array.length)return new Yr([],t);var u,s=0===o;if(e>0){var a=this.array[o];if((u=a&&a.removeBefore(t,e-r,i))===a&&s)return this}if(s&&!u)return this;var c=te(this,t);if(!s)for(var f=0;o>f;f++)c.array[f]=void 0;return u&&(c.array[o]=u),c},Yr.prototype.removeAfter=function(t,e,i){if(i===(e?1<<e:0)||0===this.array.length)return this;var o,u=i-1>>>e&n;if(u>=this.array.length)return this;if(e>0){var s=this.array[u];if((o=s&&s.removeAfter(t,e-r,i))===s&&u===this.array.length-1)return this}var a=te(this,t);return a.array.splice(u+1),o&&(a.array[u]=o),a};var Qr,Xr={};function Fr(t,n){var i=t._origin,o=t._capacity,u=ne(o),s=t._tail;return a(t._root,t._level,0);function a(t,c,f){return 0===c?function(t,r){var a=r===u?s&&s.array:t&&t.array,c=r>i?0:i-r,f=o-r;f>e&&(f=e);return function(){if(c===f)return Xr;var t=n?--f:c++;return a&&a[t]}}(t,f):function(t,u,s){var c,f=t&&t.array,h=s>i?0:i-s>>u,_=1+(o-s>>u);_>e&&(_=e);return function(){for(;;){if(c){var t=c();if(t!==Xr)return t;c=null}if(h===_)return Xr;var e=n?--_:h++;c=a(f&&f[e],u-r,s+(e<<u))}}}(t,c,f)}}function Gr(t,r,e,n,i,o,u){var s=Object.create(Vr);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 Zr(){return Qr||(Qr=Gr(0,0,r))}function $r(t,e,i,u,s,a){var c,f=u>>>i&n,h=t&&t.array.length>f;if(!h&&void 0===s)return t;if(i>0){var _=t&&t.array[f],p=$r(_,e,i-r,u,s,a);return p===_?t:((c=te(t,e)).array[f]=p,c)}return h&&t.array[f]===s?t:(a&&o(a),c=te(t,e),void 0===s&&f===c.array.length-1?c.array.pop():c.array[f]=s,c)}function te(t,r){return r&&t&&r===t.ownerID?t:new Yr(t?t.array.slice():[],r)}function re(t,e){if(e>=ne(t._capacity))return t._tail;if(1<<t._level+r>e){for(var i=t._root,o=t._level;i&&o>0;)i=i.array[e>>>o&n],o-=r;return i}}function ee(t,e,i){void 0!==e&&(e|=0),void 0!==i&&(i|=0);var o=t.__ownerID||new u,s=t._origin,a=t._capacity,c=s+e,f=void 0===i?a:0>i?a+i:s+i;if(c===s&&f===a)return t;if(c>=f)return t.clear();for(var h=t._level,_=t._root,p=0;0>c+p;)_=new Yr(_&&_.array.length?[void 0,_]:[],o),p+=1<<(h+=r);p&&(c+=p,s+=p,f+=p,a+=p);for(var l=ne(a),v=ne(f);v>=1<<h+r;)_=new Yr(_&&_.array.length?[_]:[],o),h+=r;var y=t._tail,d=l>v?re(t,f-1):v>l?new Yr([],o):y;if(y&&v>l&&a>c&&y.array.length){for(var g=_=te(_,o),w=h;w>r;w-=r){var m=l>>>w&n;g=g.array[m]=te(g.array[m],o)}g.array[l>>>r&n]=y}if(a>f&&(d=d&&d.removeAfter(o,0,f)),v>c){if(c>s||l>v){for(p=0;_;){var z=c>>>h&n;if(z!==v>>>h&n)break;z&&(p+=(1<<h)*z),h-=r,_=_.array[z]}_&&c>s&&(_=_.removeBefore(o,h,c-p)),_&&l>v&&(_=_.removeAfter(o,h,v-p)),p&&(c-=p,f-=p)}}else c-=v,f-=v,h=r,_=null,d=d&&d.removeBefore(o,0,c);return t.__ownerID?(t.size=f-c,t._origin=c,t._capacity=f,t._level=h,t._root=_,t._tail=d,t.__hash=void 0,t.__altered=!0,t):Gr(c,f,h,_,d)}function ne(t){return e>t?0:t-1>>>r<<r}var ie,oe=function(t){function r(t){return null==t?se():at(t)?t:se().withMutations((function(r){var e=I(t);Ft(e.size),e.forEach((function(t,e){return r.set(e,t)}))}))}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return this(arguments)},r.prototype.toString=function(){return this.__toString("OrderedMap {","}")},r.prototype.get=function(t,r){var e=this._map.get(t);return void 0!==e?this._list.get(e)[1]:r},r.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):se()},r.prototype.set=function(t,r){return ae(this,t,r)},r.prototype.remove=function(t){return ae(this,t,i)},r.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},r.prototype.__iterate=function(t,r){var e=this;return this._list.__iterate((function(r){return r&&t(r[1],r[0],e)}),r)},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?ue(r,e,t,this.__hash):0===this.size?se():(this.__ownerID=t,this._map=r,this._list=e,this)},r}(zr);function ue(t,r,e,n){var i=Object.create(oe.prototype);return i.size=t?t.size:0,i._map=t,i._list=r,i.__ownerID=e,i.__hash=n,i}function se(){return ie||(ie=ue(kr(),Zr()))}function ae(t,r,n){var o,u,s=t._map,a=t._list,c=s.get(r),f=void 0!==c;if(n===i){if(!f)return t;e>a.size||2*s.size>a.size?(o=s.remove(r),u=c===a.size-1?a.pop():a.set(c,void 0)):(o=(u=a.filter((function(t,r){return void 0!==t&&c!==r}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(o.__ownerID=u.__ownerID=t.__ownerID))}else if(f){if(n===a.get(c)[1])return t;o=s,u=a.set(c,[r,n])}else o=s.set(r,a.size),u=a.set(a.size,[r,n]);return t.__ownerID?(t.size=o.size,t._map=o,t._list=u,t.__hash=void 0,t):ue(o,u)}oe.isOrderedMap=at,oe.prototype[j]=!0,oe.prototype.delete=oe.prototype.remove;var ce="@@__IMMUTABLE_STACK__@@";function fe(t){return!(!t||!t[ce])}var he=function(t){function r(t){return null==t?ve():fe(t)?t:ve().pushAll(t)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return this(arguments)},r.prototype.toString=function(){return this.__toString("Stack [","]")},r.prototype.get=function(t,r){var e=this._head;for(t=a(this,t);e&&t--;)e=e.next;return e?e.value:r},r.prototype.peek=function(){return this._head&&this._head.value},r.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var r=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:t[n],next:e};return this.__ownerID?(this.size=r,this._head=e,this.__hash=void 0,this.__altered=!0,this):le(r,e)},r.prototype.pushAll=function(r){if(0===(r=t(r)).size)return this;if(0===this.size&&fe(r))return r;Ft(r.size);var e=this.size,n=this._head;return r.__iterate((function(t){e++,n={value:t,next:n}}),!0),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):le(e,n)},r.prototype.pop=function(){return this.slice(1)},r.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):ve()},r.prototype.slice=function(r,e){if(f(r,e,this.size))return this;var n=h(r,this.size);if(_(e,this.size)!==this.size)return t.prototype.slice.call(this,r,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):le(i,o)},r.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?le(this.size,this._head,t,this.__hash):0===this.size?ve():(this.__ownerID=t,this.__altered=!1,this)},r.prototype.__iterate=function(t,r){var e=this;if(r)return new Z(this.toArray()).__iterate((function(r,n){return t(r,n,e)}),r);for(var n=0,i=this._head;i&&!1!==t(i.value,n++,this);)i=i.next;return n},r.prototype.__iterator=function(t,r){if(r)return new Z(this.toArray()).__iterator(t,r);var e=0,n=this._head;return new B((function(){if(n){var r=n.value;return n=n.next,C(t,e++,r)}return{value:void 0,done:!0}}))},r}(b);he.isStack=fe;var _e,pe=he.prototype;function le(t,r,e,n){var i=Object.create(pe);return i.size=t,i._head=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}function ve(){return _e||(_e=le(0))}pe[ce]=!0,pe.shift=pe.pop,pe.unshift=pe.push,pe.unshiftAll=pe.pushAll,pe.withMutations=dr,pe.wasAltered=mr,pe.asImmutable=wr,pe["@@transducer/init"]=pe.asMutable=gr,pe["@@transducer/step"]=function(t,r){return t.unshift(r)},pe["@@transducer/result"]=function(t){return t.asImmutable()};var ye="@@__IMMUTABLE_SET__@@";function de(t){return!(!t||!t[ye])}function ge(t){return de(t)&&x(t)}function we(t,r){if(t===r)return!0;if(!y(r)||void 0!==t.size&&void 0!==r.size&&t.size!==r.size||void 0!==t.__hash&&void 0!==r.__hash&&t.__hash!==r.__hash||g(t)!==g(r)||m(t)!==m(r)||x(t)!==x(r))return!1;if(0===t.size&&0===r.size)return!0;var e=!z(t);if(x(t)){var n=t.entries();return r.every((function(t,r){var i=n.next().value;return i&&ft(i[1],t)&&(e||ft(i[0],r))}))&&n.next().done}var o=!1;if(void 0===t.size)if(void 0===r.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var u=t;t=r,r=u}var s=!0,a=r.__iterate((function(r,n){if(e?!t.has(r):o?!ft(r,t.get(n,i)):!ft(t.get(n,i),r))return s=!1,!1}));return s&&t.size===a}function me(t,r){var e=function(e){t.prototype[e]=r[e]};return Object.keys(r).forEach(e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(r).forEach(e),t}function ze(t){if(!t||"object"!=typeof t)return t;if(!y(t)){if(!Zt(t))return t;t=Q(t)}if(g(t)){var r={};return t.__iterate((function(t,e){r[e]=ze(t)})),r}var e=[];return t.__iterate((function(t){e.push(ze(t))})),e}var Se=function(t){function r(r){return null==r?qe():de(r)&&!x(r)?r:qe().withMutations((function(e){var n=t(r);Ft(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return this(arguments)},r.fromKeys=function(t){return this(I(t).keySeq())},r.intersect=function(t){return(t=S(t).toArray()).length?be.intersect.apply(r(t.pop()),t):qe()},r.union=function(t){return(t=S(t).toArray()).length?be.union.apply(r(t.pop()),t):qe()},r.prototype.toString=function(){return this.__toString("Set {","}")},r.prototype.has=function(t){return this._map.has(t)},r.prototype.add=function(t){return Oe(this,this._map.set(t,t))},r.prototype.remove=function(t){return Oe(this,this._map.remove(t))},r.prototype.clear=function(){return Oe(this,this._map.clear())},r.prototype.map=function(t,r){var e=this,n=[],i=[];return this.forEach((function(o){var u=t.call(r,o,o,e);u!==o&&(n.push(o),i.push(u))})),this.withMutations((function(t){n.forEach((function(r){return t.remove(r)})),i.forEach((function(r){return t.add(r)}))}))},r.prototype.union=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];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 n=0;r.length>n;n++)t(r[n]).forEach((function(t){return e.add(t)}))})):this.constructor(r[0])},r.prototype.intersect=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(0===r.length)return this;r=r.map((function(r){return t(r)}));var n=[];return this.forEach((function(t){r.every((function(r){return r.includes(t)}))||n.push(t)})),this.withMutations((function(t){n.forEach((function(r){t.remove(r)}))}))},r.prototype.subtract=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(0===r.length)return this;r=r.map((function(r){return t(r)}));var n=[];return this.forEach((function(t){r.some((function(r){return r.includes(t)}))&&n.push(t)})),this.withMutations((function(t){n.forEach((function(r){t.remove(r)}))}))},r.prototype.sort=function(t){return He(Lt(this,t))},r.prototype.sortBy=function(t,r){return He(Lt(this,r,t))},r.prototype.wasAltered=function(){return this._map.wasAltered()},r.prototype.__iterate=function(t,r){var e=this;return this._map.__iterate((function(r){return t(r,r,e)}),r)},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}(O);Se.isSet=de;var Ie,be=Se.prototype;function Oe(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 Ee(t,r){var e=Object.create(be);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}function qe(){return Ie||(Ie=Ee(kr()))}be[ye]=!0,be.delete=be.remove,be.merge=be.concat=be.union,be.withMutations=dr,be.asImmutable=wr,be["@@transducer/init"]=be.asMutable=gr,be["@@transducer/step"]=function(t,r){return t.add(r)},be["@@transducer/result"]=function(t){return t.asImmutable()},be.__empty=qe,be.__make=Ee;var Me,De=function(t){function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);if(Xt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),t>e&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Me)return Me;Me=this}}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},r.prototype.get=function(t,r){return this.has(t)?this._start+a(this,t)*this._step:r},r.prototype.includes=function(t){var r=(t-this._start)/this._step;return r>=0&&this.size>r&&r===Math.floor(r)},r.prototype.slice=function(t,e){return f(t,e,this.size)?this:(t=h(t,this.size),(e=_(e,this.size))>t?new r(this.get(t,this._end),this.get(e,this._end),this._step):new r(0,0))},r.prototype.indexOf=function(t){var r=t-this._start;if(r%this._step==0){var e=r/this._step;if(e>=0&&this.size>e)return e}return-1},r.prototype.lastIndexOf=function(t){return this.indexOf(t)},r.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},r.prototype.__iterator=function(t,r){var e=this.size,n=this._step,i=r?this._start+(e-1)*n:this._start,o=0;return new B((function(){if(o===e)return{value:void 0,done:!0};var u=i;return i+=r?-n:n,C(t,r?e-++o:o++,u)}))},r.prototype.equals=function(t){return t instanceof r?this._start===t._start&&this._end===t._end&&this._step===t._step:we(this,t)},r}(F);function Ae(t,r,e){for(var n=Gt(r),o=0;o!==n.length;)if((t=tr(t,n[o++],i))===i)return e;return t}function je(t,r){return Ae(this,t,r)}function xe(){Ft(this.size);var t={};return this.__iterate((function(r,e){t[e]=r})),t}S.isIterable=y,S.isKeyed=g,S.isIndexed=m,S.isAssociative=z,S.isOrdered=x,S.Iterator=B,me(S,{toArray:function(){Ft(this.size);var t=Array(this.size||0),r=g(this),e=0;return this.__iterate((function(n,i){t[e++]=r?[i,n]:n})),t},toIndexedSeq:function(){return new qt(this)},toJS:function(){return ze(this)},toKeyedSeq:function(){return new Et(this,!0)},toMap:function(){return zr(this.toKeyedSeq())},toObject:xe,toOrderedMap:function(){return oe(this.toKeyedSeq())},toOrderedSet:function(){return He(g(this)?this.valueSeq():this)},toSet:function(){return Se(g(this)?this.valueSeq():this)},toSetSeq:function(){return new Mt(this)},toSeq:function(){return m(this)?this.toIndexedSeq():g(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return he(g(this)?this.valueSeq():this)},toList:function(){return Jr(g(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 Nt(this,Kt(this,t))},includes:function(t){return this.some((function(r){return ft(r,t)}))},entries:function(){return this.__iterator(U)},every:function(t,r){Ft(this.size);var e=!0;return this.__iterate((function(n,i,o){if(!t.call(r,n,i,o))return e=!1,!1})),e},filter:function(t,r){return Nt(this,kt(this,t,r,!0))},find:function(t,r,e){var n=this.findEntry(t,r);return n?n[1]:e},forEach:function(t,r){return Ft(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){Ft(this.size),t=void 0!==t?""+t:",";var r="",e=!0;return this.__iterate((function(n){e?e=!1:r+=t,r+=null!=n?""+n:""})),r},keys:function(){return this.__iterator(k)},map:function(t,r){return Nt(this,jt(this,t,r))},reduce:function(t,r,e){return Ke(this,t,r,e,2>arguments.length,!1)},reduceRight:function(t,r,e){return Ke(this,t,r,e,2>arguments.length,!0)},reverse:function(){return Nt(this,xt(this,!0))},slice:function(t,r){return Nt(this,Rt(this,t,r,!0))},some:function(t,r){return!this.every(Be(t),r)},sort:function(t){return Nt(this,Lt(this,t))},values:function(){return this.__iterator(R)},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 s(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return function(t,r,e){var n=zr().asMutable();return t.__iterate((function(i,o){n.update(r.call(e,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,r)},equals:function(t){return we(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Z(t._cache);var r=t.toSeq().map(Le).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(Be(t),r)},findEntry:function(t,r,e){var n=e;return this.__iterate((function(e,i,o){if(t.call(r,e,i,o))return n=[i,e],!1})),n},findKey:function(t,r){var e=this.findEntry(t,r);return e&&e[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(c,null,t)},flatMap:function(t,r){return Nt(this,function(t,r,e){var n=Ht(t);return t.toSeq().map((function(i,o){return n(r.call(e,i,o,t))})).flatten(!0)}(this,t,r))},flatten:function(t){return Nt(this,Tt(this,t,!0))},fromEntrySeq:function(){return new Dt(this)},get:function(t,r){return this.find((function(r,e){return ft(e,t)}),void 0,r)},getIn:je,groupBy:function(t,r){return function(t,r,e){var n=g(t),i=(x(t)?oe():zr()).asMutable();t.__iterate((function(o,u){i.update(r.call(e,o,u,t),(function(t){return(t=t||[]).push(n?[u,o]:o),t}))}));var o=Ht(t);return i.map((function(r){return Nt(t,o(r))})).asImmutable()}(this,t,r)},has:function(t){return this.get(t,i)!==i},hasIn:function(t){return Ae(this,t,i)!==i},isSubset:function(t){return t="function"==typeof t.includes?t:S(t),this.every((function(r){return t.includes(r)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:S(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(r){return ft(r,t)}))},keySeq:function(){return this.toSeq().map(Te).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Bt(this,t)},maxBy:function(t,r){return Bt(this,r,t)},min:function(t){return Bt(this,t?Ce(t):Ne)},minBy:function(t,r){return Bt(this,r?Ce(r):Ne,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 Nt(this,Ut(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(Be(t),r)},sortBy:function(t,r){return Nt(this,Lt(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 Nt(this,function(t,r,e){var n=Jt(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate((function(t,i,s){return r.call(e,t,i,s)&&++u&&n(t,i,o)})),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(U,i),s=!0;return new B((function(){if(!s)return{value:void 0,done:!0};var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return r.call(e,c,a,o)?n===U?t:C(n,a,c,t):(s=!1,{value:void 0,done:!0})}))},n}(this,t,r))},takeUntil:function(t,r){return this.takeWhile(Be(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=x(t),e=g(t),n=r?1:0;return function(t,r){return r=ht(r,3432918353),r=ht(r<<15|r>>>-15,461845907),r=ht(r<<13|r>>>-13,5),r=ht((r=(r+3864292196|0)^t)^r>>>16,2246822507),r=_t((r=ht(r^r>>>13,3266489909))^r>>>16)}(t.__iterate(e?r?function(t,r){n=31*n+Pe(lt(t),lt(r))|0}:function(t,r){n=n+Pe(lt(t),lt(r))|0}:r?function(t){n=31*n+lt(t)|0}:function(t){n=n+lt(t)|0}),n)}(this))}});var ke=S.prototype;ke[v]=!0,ke[L]=ke.values,ke.toJSON=ke.toArray,ke.__toStringMapper=$t,ke.inspect=ke.toSource=function(){return""+this},ke.chain=ke.flatMap,ke.contains=ke.includes,me(I,{flip:function(){return Nt(this,At(this))},mapEntries:function(t,r){var e=this,n=0;return Nt(this,this.toSeq().map((function(i,o){return t.call(r,[o,i],n++,e)})).fromEntrySeq())},mapKeys:function(t,r){var e=this;return Nt(this,this.toSeq().flip().map((function(n,i){return t.call(r,n,i,e)})).flip())}});var Re=I.prototype;Re[d]=!0,Re[L]=ke.entries,Re.toJSON=xe,Re.__toStringMapper=function(t,r){return $t(r)+": "+$t(t)},me(b,{toKeyedSeq:function(){return new Et(this,!1)},filter:function(t,r){return Nt(this,kt(this,t,r,!1))},findIndex:function(t,r){var e=this.findEntry(t,r);return e?e[0]:-1},indexOf:function(t){var r=this.keyOf(t);return void 0===r?-1:r},lastIndexOf:function(t){var r=this.lastKeyOf(t);return void 0===r?-1:r},reverse:function(){return Nt(this,xt(this,!1))},slice:function(t,r){return Nt(this,Rt(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=h(t,0>t?this.count():this.size);var n=this.slice(0,t);return Nt(this,1===e?n:n.concat(Qt(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){var e=this.findLastEntry(t,r);return e?e[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Nt(this,Tt(this,t,!1))},get:function(t,r){return 0>(t=a(this,t))||this.size===1/0||void 0!==this.size&&t>this.size?r:this.find((function(r,e){return e===t}),void 0,r)},has:function(t){return(t=a(this,t))>=0&&(void 0!==this.size?this.size===1/0||this.size>t:-1!==this.indexOf(t))},interpose:function(t){return Nt(this,function(t,r){var e=Jt(t);return e.size=t.size&&2*t.size-1,e.__iterateUncached=function(e,n){var i=this,o=0;return t.__iterate((function(t){return(!o||!1!==e(r,o++,i))&&!1!==e(t,o++,i)}),n),o},e.__iteratorUncached=function(e,n){var i,o=t.__iterator(R,n),u=0;return new B((function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?C(e,u++,r):C(e,u++,i.value,i)}))},e}(this,t))},interleave:function(){var t=[this].concat(Qt(arguments)),r=Wt(this.toSeq(),F.of,t),e=r.flatten(!0);return r.size&&(e.size=r.size*t.length),Nt(this,e)},keySeq:function(){return De(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return Nt(this,Ut(this,t,r,!1))},zip:function(){var t=[this].concat(Qt(arguments));return Nt(this,Wt(this,We,t))},zipAll:function(){var t=[this].concat(Qt(arguments));return Nt(this,Wt(this,We,t,!0))},zipWith:function(t){var r=Qt(arguments);return r[0]=this,Nt(this,Wt(this,t,r))}});var Ue=b.prototype;function Ke(t,r,e,n,i,o){return Ft(t.size),t.__iterate((function(t,o,u){i?(i=!1,e=t):e=r.call(n,e,t,o,u)}),o),e}function Te(t,r){return r}function Le(t,r){return[r,t]}function Be(t){return function(){return!t.apply(this,arguments)}}function Ce(t){return function(){return-t.apply(this,arguments)}}function We(){return Qt(arguments)}function Ne(t,r){return r>t?1:t>r?-1:0}function Pe(t,r){return t^r+2654435769+(t<<6)+(t>>2)|0}Ue[w]=!0,Ue[j]=!0,me(O,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),O.prototype.has=ke.includes,O.prototype.contains=O.prototype.includes,me(X,I.prototype),me(F,b.prototype),me(G,O.prototype);var He=function(t){function r(t){return null==t?Qe():ge(t)?t:Qe().withMutations((function(r){var e=O(t);Ft(e.size),e.forEach((function(t){return r.add(t)}))}))}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.of=function(){return this(arguments)},r.fromKeys=function(t){return this(I(t).keySeq())},r.prototype.toString=function(){return this.__toString("OrderedSet {","}")},r}(Se);He.isOrderedSet=ge;var Je,Ve=He.prototype;function Ye(t,r){var e=Object.create(Ve);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}function Qe(){return Je||(Je=Ye(se()))}Ve[j]=!0,Ve.zip=Ue.zip,Ve.zipWith=Ue.zipWith,Ve.__empty=Qe,Ve.__make=Ye;var Xe=function(t,r){var e,n=function(o){var u=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!e){e=!0;var s=Object.keys(t),a=i._indices={};i._name=r,i._keys=s,i._defaultValues=t;for(var c=0;s.length>c;c++){var f=s[c];a[f]=c,i[f]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Ze(this)+' with property "'+f+'" since that property name is part of the Record API.'):tn(i,f)}}this.__ownerID=void 0,this._values=Jr().withMutations((function(t){t.setSize(u._keys.length),I(o).forEach((function(r,e){t.set(u._indices[e],r===u._defaultValues[e]?void 0:r)}))}))},i=n.prototype=Object.create(Fe);return i.constructor=n,r&&(n.displayName=r),n};Xe.prototype.toString=function(){for(var t,r=Ze(this)+" { ",e=this._keys,n=0,i=e.length;n!==i;n++)r+=(n?", ":"")+(t=e[n])+": "+$t(this.get(t));return r+" }"},Xe.prototype.equals=function(t){return this===t||t&&this._keys===t._keys&&$e(this).equals($e(t))},Xe.prototype.hashCode=function(){return $e(this).hashCode()},Xe.prototype.has=function(t){return this._indices.hasOwnProperty(t)},Xe.prototype.get=function(t,r){if(!this.has(t))return r;var e=this._values.get(this._indices[t]);return void 0===e?this._defaultValues[t]:e},Xe.prototype.set=function(t,r){if(this.has(t)){var e=this._values.set(this._indices[t],r===this._defaultValues[t]?void 0:r);if(e!==this._values&&!this.__ownerID)return Ge(this,e)}return this},Xe.prototype.remove=function(t){return this.set(t)},Xe.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Ge(this,t)},Xe.prototype.wasAltered=function(){return this._values.wasAltered()},Xe.prototype.toSeq=function(){return $e(this)},Xe.prototype.toJS=function(){return ze(this)},Xe.prototype.entries=function(){return this.__iterator(U)},Xe.prototype.__iterator=function(t,r){return $e(this).__iterator(t,r)},Xe.prototype.__iterate=function(t,r){return $e(this).__iterate(t,r)},Xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?Ge(this,r,t):(this.__ownerID=t,this._values=r,this)},Xe.isRecord=D,Xe.getDescriptiveName=Ze;var Fe=Xe.prototype;function Ge(t,r,e){var n=Object.create(Object.getPrototypeOf(t));return n._values=r,n.__ownerID=e,n}function Ze(t){return t.constructor.displayName||t.constructor.name||"Record"}function $e(t){return nt(t._keys.map((function(r){return[r,t.get(r)]})))}function tn(t,r){try{Object.defineProperty(t,r,{get:function(){return this.get(r)},set:function(t){Xt(this.__ownerID,"Cannot set on an immutable record."),this.set(r,t)}})}catch(t){}}Fe[M]=!0,Fe.delete=Fe.remove,Fe.deleteIn=Fe.removeIn=ir,Fe.getIn=je,Fe.hasIn=ke.hasIn,Fe.merge=ar,Fe.mergeWith=cr,Fe.mergeIn=vr,Fe.mergeDeep=pr,Fe.mergeDeepWith=lr,Fe.mergeDeepIn=yr,Fe.setIn=nr,Fe.update=ur,Fe.updateIn=sr,Fe.withMutations=dr,Fe.asMutable=gr,Fe.asImmutable=wr,Fe[L]=Fe.entries,Fe.toJSON=Fe.toObject=ke.toObject,Fe.inspect=Fe.toSource=function(){return""+this};t.combineReducers=function(t,r){var e=Object.keys(t);return function(n,i){return void 0===n&&(n=r()),n.withMutations((function(r){e.forEach((function(e){var n=(0,t[e])(r.get(e),i);if(void 0===n)throw Error('Reducer "'+e+'" returned undefined when handling "'+i.type+'" action. To ignore an action, you must explicitly return the previous state.');r.set(e,n)}))}))}},Object.defineProperty(t,"__esModule",{value:!0})}));

@@ -20,8 +20,11 @@ import Immutable from 'immutable';

var unexpectedStatePropertyNames = state.toSeq().keySeq().toArray().filter(function (name) {
return !reducers.hasOwnProperty(name);
});
if (Immutable.isMap(state)) {
var stateMap = state;
var unexpectedStatePropertyNames = stateMap.filter(function (_, name) {
return !reducers.hasOwnProperty(name);
});
if (unexpectedStatePropertyNames.length > 0) {
return "Unexpected " + (unexpectedStatePropertyNames.length === 1 ? "property" : "properties") + ' "' + unexpectedStatePropertyNames.join('", "') + '" found in ' + stateName + '. Expected to find one of the known reducer property names instead: "' + reducerNames.join('", "') + '". Unexpected properties will be ignored.';
if (unexpectedStatePropertyNames.size > 0) {
return "Unexpected " + (unexpectedStatePropertyNames.size === 1 ? "property" : "properties") + ' "' + [unexpectedStatePropertyNames.keys()].join('", "') + '" found in ' + stateName + '. Expected to find one of the known reducer property names instead: "' + reducerNames.join('", "') + '". Unexpected properties will be ignored.';
}
}

@@ -32,29 +35,11 @@

var validateNextState = (function (nextState, reducerName, action) {
// eslint-disable-next-line no-undefined
if (nextState === undefined) {
throw new Error('Reducer "' + reducerName + '" returned undefined when handling "' + action.type + '" action. To ignore an action, you must explicitly return the previous state.');
}
});
var combineReducers = (function (reducers, getDefaultState) {
if (getDefaultState === void 0) {
getDefaultState = Immutable.Map;
}
var reducerKeys = Object.keys(reducers); // eslint-disable-next-line space-infix-ops
var reducerKeys = Object.keys(reducers);
var defaultState = Immutable.Map();
var fn = getDefaultState;
return function (inputState, action) {
if (typeof inputState === "undefined") {
inputState = getDefaultState();
} // eslint-disable-next-line no-process-env
if (typeof getDefaultState !== "undefined") {
defaultState = fn();
} // eslint-disable-next-line space-infix-ops
return function (inputState, action) {
if (inputState === void 0) {
inputState = defaultState;
}
// eslint-disable-next-line no-process-env
if (process.env.NODE_ENV !== "production") {

@@ -74,3 +59,7 @@ var warningMessage = getUnexpectedInvocationParameterMessage(inputState, reducers, action);

var nextDomainState = reducer(currentDomainState, action);
validateNextState(nextDomainState, reducerName, action);
if (nextDomainState === undefined) {
throw new Error('Reducer "' + reducerName + '" returned undefined when handling "' + action.type + '" action. To ignore an action, you must explicitly return the previous state.');
}
temporaryState.set(reducerName, nextDomainState);

@@ -77,0 +66,0 @@ });

@@ -26,8 +26,11 @@ 'use strict';

var unexpectedStatePropertyNames = state.toSeq().keySeq().toArray().filter(function (name) {
return !reducers.hasOwnProperty(name);
});
if (Immutable.isMap(state)) {
var stateMap = state;
var unexpectedStatePropertyNames = stateMap.filter(function (_, name) {
return !reducers.hasOwnProperty(name);
});
if (unexpectedStatePropertyNames.length > 0) {
return "Unexpected " + (unexpectedStatePropertyNames.length === 1 ? "property" : "properties") + ' "' + unexpectedStatePropertyNames.join('", "') + '" found in ' + stateName + '. Expected to find one of the known reducer property names instead: "' + reducerNames.join('", "') + '". Unexpected properties will be ignored.';
if (unexpectedStatePropertyNames.size > 0) {
return "Unexpected " + (unexpectedStatePropertyNames.size === 1 ? "property" : "properties") + ' "' + [unexpectedStatePropertyNames.keys()].join('", "') + '" found in ' + stateName + '. Expected to find one of the known reducer property names instead: "' + reducerNames.join('", "') + '". Unexpected properties will be ignored.';
}
}

@@ -38,29 +41,11 @@

var validateNextState = (function (nextState, reducerName, action) {
// eslint-disable-next-line no-undefined
if (nextState === undefined) {
throw new Error('Reducer "' + reducerName + '" returned undefined when handling "' + action.type + '" action. To ignore an action, you must explicitly return the previous state.');
}
});
var combineReducers = (function (reducers, getDefaultState) {
if (getDefaultState === void 0) {
getDefaultState = Immutable.Map;
}
var reducerKeys = Object.keys(reducers); // eslint-disable-next-line space-infix-ops
var reducerKeys = Object.keys(reducers);
var defaultState = Immutable.Map();
var fn = getDefaultState;
return function (inputState, action) {
if (typeof inputState === "undefined") {
inputState = getDefaultState();
} // eslint-disable-next-line no-process-env
if (typeof getDefaultState !== "undefined") {
defaultState = fn();
} // eslint-disable-next-line space-infix-ops
return function (inputState, action) {
if (inputState === void 0) {
inputState = defaultState;
}
// eslint-disable-next-line no-process-env
if (process.env.NODE_ENV !== "production") {

@@ -80,3 +65,7 @@ var warningMessage = getUnexpectedInvocationParameterMessage(inputState, reducers, action);

var nextDomainState = reducer(currentDomainState, action);
validateNextState(nextDomainState, reducerName, action);
if (nextDomainState === undefined) {
throw new Error('Reducer "' + reducerName + '" returned undefined when handling "' + action.type + '" action. To ignore an action, you must explicitly return the previous state.');
}
temporaryState.set(reducerName, nextDomainState);

@@ -83,0 +72,0 @@ });

{
"name": "@minadmin/redux-immutable-ts",
"version": "0.1.1",
"version": "0.2.1",
"description": "redux-immutable-ts is used to create an equivalent function of Redux combineReducers that works with Immutable.js state which is written in typescript.",

@@ -54,2 +54,3 @@ "main": "lib/redux-immutable-ts.js",

"babel-plugin-add-module-exports": "^1.0.2",
"babel-preset-es2015": "^6.24.1",
"cross-env": "^6.0.3",

@@ -76,4 +77,3 @@ "eslint": "^6.8.0",

"rxjs": "^6.5.4",
"typescript": "^3.7.4",
"babel-preset-es2015": "^6.24.1"
"typescript": "^3.7.4"
},

@@ -80,0 +80,0 @@ "scripts": {

import { AnyAction, ReducersMapObject } from "redux";
import Immutable from "immutable";
import {
getUnexpectedInvocationParameterMessage,
validateNextState
} from "./utilities";
import { getUnexpectedInvocationParameterMessage } from "./utilities";
export default (
export default <S extends Immutable.Map<string, any>>(
reducers: ReducersMapObject<any, AnyAction>,
getDefaultState: () => Immutable.Map<any, any> = Immutable.Map
): Function => {
getDefaultState: () => S
): ((inputState: S | undefined, action: AnyAction) => S) => {
const reducerKeys = Object.keys(reducers);
let defaultState = Immutable.Map();
const fn = getDefaultState as Function;
if (typeof getDefaultState !== "undefined") {
defaultState = fn();
}
// eslint-disable-next-line space-infix-ops
return (inputState: S | undefined, action: AnyAction): S => {
if (typeof inputState === "undefined") {
inputState = getDefaultState();
}
// eslint-disable-next-line space-infix-ops
return (
inputState: Immutable.Map<any, any> = defaultState,
action: AnyAction
): Immutable.Map<any, any> => {
// eslint-disable-next-line no-process-env
if (process.env.NODE_ENV !== "production") {
const warningMessage = getUnexpectedInvocationParameterMessage(
const warningMessage = getUnexpectedInvocationParameterMessage<S>(
inputState,

@@ -45,3 +37,11 @@ reducers,

validateNextState(nextDomainState, reducerName, action);
if (nextDomainState === undefined) {
throw new Error(
'Reducer "' +
reducerName +
'" returned undefined when handling "' +
action.type +
'" action. To ignore an action, you must explicitly return the previous state.'
);
}

@@ -48,0 +48,0 @@ temporaryState.set(reducerName, nextDomainState);

@@ -5,4 +5,4 @@ import Immutable from "immutable";

export default (
state: Immutable.Map<any, any>,
export default <S extends Immutable.Map<string, any>>(
state: S | undefined | Object,
reducers: Object,

@@ -33,22 +33,21 @@ action: AnyAction

const unexpectedStatePropertyNames = state
.toSeq()
.keySeq()
.toArray()
.filter(name => {
return !reducers.hasOwnProperty(name);
});
if (Immutable.isMap(state)) {
let stateMap = state as Immutable.Map<string, unknown>;
const unexpectedStatePropertyNames = stateMap.filter(
(_, name) => !reducers.hasOwnProperty(name)
);
if (unexpectedStatePropertyNames.length > 0) {
return (
"Unexpected " +
(unexpectedStatePropertyNames.length === 1 ? "property" : "properties") +
' "' +
unexpectedStatePropertyNames.join('", "') +
'" found in ' +
stateName +
'. Expected to find one of the known reducer property names instead: "' +
reducerNames.join('", "') +
'". Unexpected properties will be ignored.'
);
if (unexpectedStatePropertyNames.size > 0) {
return (
"Unexpected " +
(unexpectedStatePropertyNames.size === 1 ? "property" : "properties") +
' "' +
[unexpectedStatePropertyNames.keys()].join('", "') +
'" found in ' +
stateName +
'. Expected to find one of the known reducer property names instead: "' +
reducerNames.join('", "') +
'". Unexpected properties will be ignored.'
);
}
}

@@ -55,0 +54,0 @@

import getStateName from "./getStateName";
import getUnexpectedInvocationParameterMessage from "./getUnexpectedInvocationParameterMessage";
import validateNextState from "./validateNextState";
export {
getStateName,
getUnexpectedInvocationParameterMessage,
validateNextState
};
export { getStateName, getUnexpectedInvocationParameterMessage };
import { AnyAction, ReducersMapObject } from "redux";
import Immutable from "immutable";
declare const _default: (reducers: ReducersMapObject<any, AnyAction>, getDefaultState?: () => Immutable.Map<any, any>) => Function;
declare const _default: <S extends Immutable.Map<string, any>>(reducers: ReducersMapObject<any, AnyAction>, getDefaultState: () => S) => (inputState: S | undefined, action: AnyAction) => S;
export default _default;
import Immutable from "immutable";
import { AnyAction } from "redux";
declare const _default: (state: Immutable.Map<any, any>, reducers: Object, action: AnyAction) => string | null;
declare const _default: <S extends Immutable.Map<string, any>>(state: Object | S | undefined, reducers: Object, action: AnyAction) => string | null;
export default _default;
import getStateName from "./getStateName";
import getUnexpectedInvocationParameterMessage from "./getUnexpectedInvocationParameterMessage";
import validateNextState from "./validateNextState";
export { getStateName, getUnexpectedInvocationParameterMessage, validateNextState };
export { getStateName, getUnexpectedInvocationParameterMessage };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc