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

immutable

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immutable - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

32

dist/immutable.min.js

@@ -10,24 +10,24 @@ /**

function t(){function t(t,e,r,n){var i;if(n){var u=n.prototype;i=Re.create(u)}else i=t.prototype;return Re.keys(e).forEach(function(t){i[t]=e[t]}),Re.keys(r).forEach(function(e){t[e]=r[e]}),i.constructor=t,t.prototype=i,t}function e(t,e,r,n){return Re.getPrototypeOf(e)[r].apply(t,n)}function r(t,r,n){e(t,r,"constructor",n)}function n(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t?e!==e:t&&"function"==typeof t.equals?t.equals(e):!1}function i(t){return t.value=!1,t}function u(t){t&&(t.value=!0)}function a(){}function s(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;r>i;i++)n[i]=t[i+e];return n}function o(t,e){if(!t)throw Error(e)}function h(t){if(!t)return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){if((0|t)===t)return t&Ne;t=""+t,e="string"}return"string"===e?t.length>Ge?c(t):f(t):t.hashCode?h("function"==typeof t.hashCode?t.hashCode():t.hashCode):_(t)}function c(t){var e=Xe[t];return null==e&&(e=f(t),Qe===He&&(Qe=0,Xe={}),Qe++,Xe[t]=e),e}function f(t){for(var e=0,r=0;t.length>r;r++)e=31*e+t.charCodeAt(r)&Ne;return e}function _(t){var e=Le&&Le.get(t);if(e)return e;if(e=t[Fe])return e;if(!Ve){if(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Fe])return e;if(e=l(t))return e}if(Object.isExtensible&&!Object.isExtensible(t))throw Error("Non-extensible objects are not allowed as keys.");if(e=++Te&Ne,Le)Le.set(t,e);else if(Ve)Object.defineProperty(t,Fe,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Fe]=e;else{if(!t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[Fe]=e}return e}function l(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function v(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function g(){return{value:void 0,done:!0}
}function p(t){return!!y(t)}function m(t){return t&&"function"==typeof t.next}function d(t){var e=y(t);return e&&e.call(t)}function y(t){var e=t&&(er&&t[er]||t[tr]);return"function"==typeof e?e:void 0}function w(t){return null==t.length&&t.cacheResult(),o(1/0>t.length,"Cannot reverse infinite range."),t.length}function S(t,e,r){return(0===t||null!=r&&-r>=t)&&(null==e||null!=r&&e>=r)}function I(t,e){return b(t,e,0)}function q(t,e){return b(t,e,e)}function b(t,e,r){return null==t?r:0>t?Math.max(0,e+t):e?Math.min(e,t):t}function x(t){return t}function k(t,e){return[e,t]}function M(){return!0}function D(t){return function(){return!t.apply(this,arguments)}}function O(t){return"string"==typeof t?JSON.stringify(t):t}function C(t,e){return t>e?1:e>t?-1:0}function A(t,e){return 0>e?(null==t.length&&t.cacheResult(),t.length+e):e}function E(t){o(1/0!==t,"Cannot perform this action with an infinite sequence.")}function R(t,e,r,n){var i=t._cache;if(i){for(var u=i.length-1,a=0;u>=a;a++){var s=i[r?u-a:a];if(e(s[1],n?s[0]:a,t)===!1)return a+1}return a}return t.__iterateUncached(e,r)}function j(t,e,r,n){var i=t._cache;if(i){var u=i.length-1,a=0;return new nr(function(){var t=i[r?u-a:a];return a++>u?g():v(e,n?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,r)}function U(t){var e=t.__makeSequence();return e.length=t.length,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.contains(e)},e.contains=function(e){return t.has(e)},e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===$e){var n=t.__iterator(e,r);return new nr(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===Ze?Ye:Ze,r)},e}function W(t,e,r){var n=t.__makeSequence();return n.length=t.length,n.has=function(e){return t.has(e)},n.get=function(n,i){var u=t.get(n,Je);return u===Je?i:e.call(r,u,n,t)},n.__iterateUncached=function(n,i){var u=this;
}function p(t){return!!d(t)}function m(t){return t&&"function"==typeof t.next}function y(t){var e=d(t);return e&&e.call(t)}function d(t){var e=t&&(er&&t[er]||t[tr]);return"function"==typeof e?e:void 0}function w(t){return null==t.length&&t.cacheResult(),o(1/0>t.length,"Cannot reverse infinite range."),t.length}function S(t,e,r){return(0===t||null!=r&&-r>=t)&&(null==e||null!=r&&e>=r)}function I(t,e){return b(t,e,0)}function q(t,e){return b(t,e,e)}function b(t,e,r){return null==t?r:0>t?Math.max(0,e+t):null==e?t:Math.min(e,t)}function k(t){return t}function x(t,e){return[e,t]}function M(){return!0}function D(t){return function(){return!t.apply(this,arguments)}}function O(t){return"string"==typeof t?JSON.stringify(t):t}function C(t,e){return t>e?1:e>t?-1:0}function A(t,e){return 0>e?(null==t.length&&t.cacheResult(),t.length+e):e}function E(t){o(1/0!==t,"Cannot perform this action with an infinite sequence.")}function R(t,e,r,n){var i=t._cache;if(i){for(var u=i.length-1,a=0;u>=a;a++){var s=i[r?u-a:a];if(e(s[1],n?s[0]:a,t)===!1)return a+1}return a}return t.__iterateUncached(e,r)}function j(t,e,r,n){var i=t._cache;if(i){var u=i.length-1,a=0;return new nr(function(){var t=i[r?u-a:a];return a++>u?g():v(e,n?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,r)}function U(t){var e=t.__makeSequence();return e.length=t.length,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.contains(e)},e.contains=function(e){return t.has(e)},e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===$e){var n=t.__iterator(e,r);return new nr(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===Ze?Ye:Ze,r)},e}function W(t,e,r){var n=t.__makeSequence();return n.length=t.length,n.has=function(e){return t.has(e)},n.get=function(n,i){var u=t.get(n,Je);return u===Je?i:e.call(r,u,n,t)},n.__iterateUncached=function(n,i){var u=this;
return t.__iterate(function(t,i,a){return n(e.call(r,t,i,a),i,u)!==!1},i)},n.__iteratorUncached=function(n,i){var u=t.__iterator($e,i);return new nr(function(){var i=u.next();if(i.done)return i;var a=i.value,s=a[0];return v(n,s,e.call(r,a[1],s,t),i)})},n}function P(t,e){var r=t.__makeSequence();return r.length=t.length,r.reverse=function(){return t},r.flip=function(){var e=t.flip.apply(this);return e.reverse=function(){return t.flip()},e},r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.contains=function(e){return t.contains(e)},r.cacheResult=function(){return t.cacheResult(),this.length=t.length,this},r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function K(t,e,r,n){var i=t.__makeSequence();return n&&(i.has=function(n){var i=t.get(n,Je);return i!==Je&&!!e.call(r,i,n,t)},i.get=function(n,i){var u=t.get(n,Je);return u!==Je&&e.call(r,u,n,t)?u:i}),i.__iterateUncached=function(i,u){var a=this,s=0;return t.__iterate(function(t,u,o){return e.call(r,t,u,o)?(s++,i(t,n?u:s-1,a)):void 0},u),s},i.__iteratorUncached=function(i,u){var a=t.__iterator($e,u),s=0;return new nr(function(){for(;;){var u=a.next();if(u.done)return u;var o=u.value,h=o[0],c=o[1];if(e.call(r,c,h,t))return v(i,n?h:s++,c,u)}})},i}function J(t,e,r,n){var i={},u=[];return t.__iterate(function(a,s){var o=e.call(r,a,s,t),c=h(o),f=n?[s,a]:a;i.hasOwnProperty(c)?u[i[c]][1].push(f):(i[c]=u.length,u.push([o,[f]]))}),ur(u).fromEntrySeq().map(n?function(t){return ur(t).fromEntrySeq()}:function(t){return ur(t)})}function z(t,e){if(e>t.length)return t;0>e&&(e=0);var r=t.__makeSequence();return r.length=t.length&&Math.min(t.length,e),r.__iterateUncached=function(r,n){var i=this;if(0===e)return 0;if(n)return this.cacheResult().__iterate(r,n);var u=0;return t.__iterate(function(t,n){return++u&&r(t,n,i)!==!1&&e>u}),u},r.__iteratorUncached=function(r,n){if(n)return this.cacheResult().__iterator(r,n);var i=e&&t.__iterator(r,n),u=0;return new nr(function(){return u++>e?g():i.next()
})},r}function B(t,e,r){var n=t.__makeSequence();return n.__iterateUncached=function(n,i){var u=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++a&&n(t,i,u)}),a},n.__iteratorUncached=function(n,i){var u=this;if(i)return this.cacheResult().__iterator(n,i);var a=t.__iterator($e,i),s=!0;return new nr(function(){if(!s)return g();var t=a.next();if(t.done)return t;var i=t.value,o=i[0],h=i[1];return e.call(r,h,o,u)?n===$e?t:v(n,o,h,t):(s=!1,g())})},n}function V(t,e,r){if(0>=e)return t;var n=t.__makeSequence();return n.length=t.length&&Math.max(0,t.length-e),n.__iterateUncached=function(n,i){var u=this;if(i)return this.cacheResult().__iterate(n,i);var a=0,s=!0,o=0;return t.__iterate(function(t,i){return s&&(s=a++<e)?void 0:(o++,n(t,r?i:o-1,u))}),o},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var u=e&&t.__iterator(n,i),a=0,s=0;return new nr(function(){for(;e>a;)a++,u.next();var t=u.next();return r||n===Ze?t:n===Ye?v(n,s++,null,t):v(n,s++,t.value[1],t)})},n}function L(t,e,r,n){var i=t.__makeSequence();return i.__iterateUncached=function(i,u){var a=this;if(u)return this.cacheResult().__iterate(i,u);var s=!0,o=0;return t.__iterate(function(t,u,h){return s&&(s=e.call(r,t,u,h))?void 0:(o++,i(t,n?u:o-1,a))}),o},i.__iteratorUncached=function(i,u){var a=this;if(u)return this.cacheResult().__iterator(i,u);var s=t.__iterator($e,u),o=!0,h=0;return new nr(function(){var t,u,c;do{if(t=s.next(),t.done)return n||i===Ze?t:i===Ye?v(i,h++,null,t):v(i,h++,t.value[1],t);var f=t.value;u=f[0],c=f[1],o&&(o=e.call(r,c,u,a))}while(o);return i===$e?t:v(i,u,c,t)})},i}function N(t,e,r){var n=[t].concat(e),i=ur(n);return r&&(i=i.toKeyedSeq()),i=i.flatMap(x),i.length=n.reduce(function(t,e){if(void 0!==t){var r=ur(e).length;if(null!=r)return t+r}},0),i}function T(t,e,r){var n=t.__makeSequence();return n.__iterateUncached=function(n,i){function u(t,o){var h=this;t.__iterate(function(t,i){return(!e||e>o)&&F(t)?u(t,o+1):n(t,r?i:a++,h)===!1&&(s=!0),!s
},i)}var a=0,s=!1;return u(t,0),a},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),a=[],s=0;return new nr(function(){for(;u;){var t=u.next();if(t.done===!1){var o=t.value;if(n===$e&&(o=o[1]),e&&!(e>a.length)||!F(o))return r?t:v(n,s++,o,t);a.push(u),u=o.__iterator(n,i)}else u=a.pop()}return g()})},n}function F(t){return t&&"function"==typeof t.flatten&&"function"==typeof t.__iterate&&"function"==typeof t.__iterator}function G(t,e){var r=t.__makeSequence();return r.length=t.length&&2*t.length-1,r.__iterateUncached=function(r,n){var i=this,u=0;return t.__iterate(function(t){return(!u||r(e,u++,i)!==!1)&&r(t,u++,i)!==!1},n),u},r.__iteratorUncached=function(r,n){var i,u=t.__iterator(Ze,n),a=0;return new nr(function(){return(!i||a%2)&&(i=u.next(),i.done)?i:a%2?v(r,a++,e):v(r,a++,i.value,i)})},r}function H(t,e){return v(t,e[0],e[1])}function Q(t,e){return{node:t,index:0,__prev:e}}function X(t,e,r,n){var i=Object.create(wr);return i.length=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Y(t,e,r){var n=i(ze),u=i(Be),a=Z(t._root,t.__ownerID,0,h(e),e,r,n,u);if(!u.value)return t;var s=t.length+(n.value?r===Je?-1:1:0);return t.__ownerID?(t.length=s,t._root=a,t.__hash=void 0,t.__altered=!0,t):a?X(s,a):dr.empty()}function Z(t,e,r,n,i,a,s,o){return t?t.update(e,r,n,i,a,s,o):a===Je?t:(u(o),u(s),new Mr(e,n,[i,a]))}function $(t){return t.constructor===Mr||t.constructor===xr}function te(t,e,r,n,i){if(t.hash===n)return new xr(e,n,[t.entry,i]);var u,a=(0===r?t.hash:t.hash>>>r)&Ke,s=(0===r?n:n>>>r)&Ke,o=a===s?[te(t,e,r+We,n,i)]:(u=new Mr(e,n,i),s>a?[t,u]:[u,t]);return new Sr(e,1<<a|1<<s,o)}function ee(t,e,r,n){for(var i=0,u=0,a=Array(r),s=0,o=1,h=e.length;h>s;s++,o<<=1){var c=e[s];null!=c&&s!==n&&(i|=o,a[u++]=c)}return new Sr(t,i,a)}function re(t,e,r,n,i){for(var u=0,a=Array(Pe),s=0;0!==r;s++,r>>>=1)a[s]=1&r?e[u++]:null;return a[n]=i,new qr(t,u+1,a)}function ne(t,e,r){for(var n=[],i=0;r.length>i;i++){var u=r[i];u instanceof ur||(u=ur(u),u instanceof or&&(u=u.fromEntrySeq())),u&&n.push(u)}return ue(t,e,n)}function ie(t){return function(e,r){return e&&e.mergeDeepWith?e.mergeDeepWith(t,r):t?t(e,r):r
}}function ue(t,e,r){return 0===r.length?t:t.withMutations(function(t){for(var n=e?function(r,n){var i=t.get(n,Je);t.set(n,i===Je?r:e(i,r))}:function(e,r){t.set(r,e)},i=0;r.length>i;i++)r[i].forEach(n)})}function ae(t,e,r,n,i){o(!t||t.set,"updateIn with invalid keyPath");var u=e[i],a=t?t.get(u,Je):Je,s=a===Je?void 0:a,h=i===e.length-1?n(a===Je?r:a):ae(s,e,r,n,i+1);return h===s?t:h===Je?t&&t.remove(u):(t||dr.empty()).set(u,h)}function se(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function oe(t,e,r,n){var i=n?t:s(t);return i[e]=r,i}function he(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var u=Array(i),a=0,s=0;i>s;s++)s===e?(u[s]=r,a=-1):u[s]=t[s+a];return u}function ce(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),u=0,a=0;n>a;a++)a===e&&(u=1),i[a]=t[a+u];return i}function fe(t,e,r,n,i,u){var a,s=t&&t.array;if(0===e){var o=0>r?-r:0,h=n-r;for(h>Pe&&(h=Pe),a=o;h>a;a++)if(i(s&&s[u?o+h-1-a:a])===!1)return!1}else{var c=1<<e,f=e-We;for(a=0;Ke>=a;a++){var _=u?Ke-a:a,l=r+(_<<e);if(n>l&&l+c>0){var v=s&&s[_];if(!fe(v,f,l,n,i,u))return!1}}}return!0}function _e(t,e,r,n,i){return{array:t,level:e,offset:r,max:n,rawMax:n-r>>e,index:0,__prev:i}}function le(t,e,r,n,i,u,a){var s=Object.create(Ur);return s.length=e-t,s._origin=t,s._size=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=u,s.__hash=a,s.__altered=!1,s}function ve(t,e,r){if(e=A(t,e),e>=t.length||0>e)return r===Je?t:t.withMutations(function(t){0>e?de(t,e).set(0,r):de(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,u=t._root,a=i(Be);return e>=we(t._size)?n=ge(n,t.__ownerID,0,e,r,a):u=ge(u,t.__ownerID,t._level,e,r,a),a.value?t.__ownerID?(t._root=u,t._tail=n,t.__hash=void 0,t.__altered=!0,t):le(t._origin,t._size,t._level,u,n):t}function ge(t,e,r,n,i,a){var s,o=i===Je,h=n>>>r&Ke,c=t&&t.array.length>h;if(o&&!c)return t;if(r>0){var f=t&&t.array[h],_=ge(f,e,r-We,n,i,a);return _===f?t:(s=pe(t,e),s.array[h]=_,s)}return!o&&c&&t.array[h]===i?t:(u(a),s=pe(t,e),o&&h===s.array.length-1?s.array.pop():s.array[h]=o?void 0:i,s)
}function pe(t,e){return e&&t&&e===t.ownerID?t:new Wr(t?t.array.slice():[],e)}function me(t,e){if(e>=we(t._size))return t._tail;if(1<<t._level+We>e){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&Ke],n-=We;return r}}function de(t,e,r){var n=t.__ownerID||new a,i=t._origin,u=t._size,s=i+e,o=null==r?u:0>r?u+r:i+r;if(s===i&&o===u)return t;if(s>=o)return t.clear();for(var h=t._level,c=t._root,f=0;0>s+f;)c=new Wr(c&&c.array.length?[null,c]:[],n),h+=We,f+=1<<h;f&&(s+=f,i+=f,o+=f,u+=f);for(var _=we(u),l=we(o);l>=1<<h+We;)c=new Wr(c&&c.array.length?[c]:[],n),h+=We;var v=t._tail,g=_>l?me(t,o-1):l>_?new Wr([],n):v;if(v&&l>_&&u>s&&v.array.length){c=pe(c,n);for(var p=c,m=h;m>We;m-=We){var d=_>>>m&Ke;p=p.array[d]=pe(p.array[d],n)}p.array[_>>>We&Ke]=v}if(u>o&&(g=g&&g.removeAfter(n,0,o)),s>=l)s-=l,o-=l,h=We,c=null,g=g&&g.removeBefore(n,0,s);else if(s>i||_>l){var y,w;f=0;do y=s>>>h&Ke,w=l-1>>>h&Ke,y===w&&(y&&(f+=(1<<h)*y),h-=We,c=c&&c.array[y]);while(c&&y===w);c&&s>i&&(c=c&&c.removeBefore(n,h,s-f)),c&&_>l&&(c=c&&c.removeAfter(n,h,l-f)),f&&(s-=f,o-=f)}return t.__ownerID?(t.length=o-s,t._origin=s,t._size=o,t._level=h,t._root=c,t._tail=g,t.__hash=void 0,t.__altered=!0,t):le(s,o,h,c,g)}function ye(t,e,r){for(var n=[],i=0;r.length>i;i++){var u=r[i];u&&n.push(ur(u))}var a=Math.max.apply(null,n.map(function(t){return t.length||0}));return a>t.length&&(t=t.setLength(a)),ue(t,e,n)}function we(t){return Pe>t?0:t-1>>>We<<We}function Se(t,e,r,n){var i=Object.create(Vr);return i.length=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ie(t,e){var r=Object.create(Fr);return r.length=t?t.length:0,r._map=t,r.__ownerID=e,r}function qe(t,e,r,n){var i=Object.create(Hr.prototype);return i.length=t?t.length:0,i._map=t,i._vector=e,i.__ownerID=r,i.__hash=n,i}function be(t,e,r){var n=t._map,i=t._vector,u=n.get(e),a=void 0!==u,s=r===Je;if(!a&&s||a&&r===i.get(u)[1])return t;a||(u=i.length);var o=s?n.remove(e):a?n:n.set(e,u),h=s?i.remove(u):i.set(u,[e,r]);return t.__ownerID?(t.length=o.length,t._map=o,t._vector=h,t.__hash=void 0,t):qe(o,h)
}function xe(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function ke(t,e){return e?Me(e,t,"",{"":t}):De(t)}function Me(t,e,r,n){return e&&(Array.isArray(e)||e.constructor===Object)?t.call(n,r,ur(e).map(function(r,n){return Me(t,r,n,e)})):e}function De(t){if(t){if(Array.isArray(t))return ur(t).map(De).toVector();if(t.constructor===Object)return ur(t).map(De).toMap()}return t}function Oe(t,e,r,n){4>arguments.length&&(n=t.getIn(e));var i=n instanceof ur?n.length:null,u=n instanceof or?cn:on;return new u(t,e,r,i)}function Ce(t,e,r){return r instanceof ur?Ae(t,e,r):r}function Ae(t,e,r){return Oe(t._rootData,t._keyPath.concat(e),t._onChange,r)}function Ee(t,e,r){var n=t._rootData.updateIn(t._keyPath,r?dr.empty():void 0,e),i=t._keyPath||[];return t._onChange&&t._onChange.call(void 0,n,t._rootData,r?i.concat(r):i),Oe(n,t._keyPath,t._onChange)}var Re=Object,je={};je.createClass=t,je.superCall=e,je.defaultSuperCall=r;var Ue="delete",We=5,Pe=1<<We,Ke=Pe-1,Je={},ze={value:!1},Be={value:!1},Ve=function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}(),Le="function"==typeof WeakMap&&new WeakMap,Ne=2147483647,Te=0,Fe="__immutablehash__";"function"==typeof Symbol&&(Fe=Symbol(Fe));var Ge=16,He=255,Qe=0,Xe={},Ye=0,Ze=1,$e=2,tr="@@iterator",er="function"==typeof Symbol&&Symbol.iterator,rr=er||tr,nr=function(t){this.next=t};je.createClass(nr,{toString:function(){return"[Iterator]"}},{});var ir=nr.prototype;ir.inspect=ir.toSource=function(){return""+this},ir[rr]=function(){return this};var ur=function(t){return ar.from(1===arguments.length?t:Array.prototype.slice.call(arguments))},ar=ur;je.createClass(ur,{toArray:function(){E(this.length);var t=Array(this.length||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toJS:function(){return this.map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toMap:function(){return E(this.length),dr.from(this)},toObject:function(){E(this.length);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return E(this.length),Hr.from(this)
},toSet:function(){return E(this.length),Nr.from(this)},toStack:function(){return E(this.length),zr.from(this)},toVector:function(){return E(this.length),Rr.from(this)},toString:function(){return this.__toString("Seq {","}")},__toString:function(t,e){return 0===this.length?t+e:t+" "+this.map(this.__toStringMapper).join(", ")+" "+e},__toStringMapper:function(t,e){return e+": "+O(t)},concat:function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];return N(this,t,!0)},contains:function(t){return this.find(function(e){return n(e,t)},null,Je)!==Je},entries:function(){return this.__iterator($e)},every:function(t,e){var r=!0;return this.__iterate(function(n,i,u){return t.call(e,n,i,u)?void 0:(r=!1,!1)}),r},filter:function(t,e){return K(this,t,e,!0)},find:function(t,e,r){var n=r;return this.__iterate(function(r,i,u){return t.call(e,r,i,u)?(n=r,!1):void 0}),n},forEach:function(t,e){return this.__iterate(e?t.bind(e):t)},join:function(t){t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n:""}),e},keys:function(){return this.__iterator(Ye)},map:function(t,e){return W(this,t,e)},reduce:function(t,e,r){var n,i;return 2>arguments.length?i=!0:n=e,this.__iterate(function(e,u,a){i?(i=!1,n=e):n=t.call(r,n,e,u,a)}),n},reduceRight:function(){var t=this.toKeyedSeq().reverse();return t.reduce.apply(t,arguments)},reverse:function(){return P(this,!0)},slice:function(t,e){if(S(t,e,this.length))return this;var r=I(t,this.length),n=q(e,this.length);if(r!==r||n!==n)return this.cacheResult().slice(t,e);var i=0===r?this:this.skip(r);return null==n||n===this.length?i:i.take(n-r)},some:function(t,e){return!this.every(D(t),e)},sort:function(t){return this.sortBy(x,t)},values:function(){return this.__iterator(Ze)},butLast:function(){return this.slice(0,-1)},count:function(t,e){return t?this.filter(t,e).count():(null==this.length&&(this.length=this.__iterate(M)),this.length)},countBy:function(t,e){var r=this,n={},i=[];return this.__iterate(function(u,a){var s=t.call(e,u,a,r),o=h(s);n.hasOwnProperty(o)?i[n[o]][1]++:(n[o]=i.length,i.push([s,1]))
}),ar(i).fromEntrySeq()},equals:function(t){if(this===t)return!0;if(!t||"function"!=typeof t.equals)return!1;if(null!=this.length&&null!=t.length){if(this.length!==t.length)return!1;if(0===this.length&&0===t.length)return!0}return null!=this.__hash&&null!=t.__hash&&this.__hash!==t.__hash?!1:this.__deepEquals(t)},__deepEquals:function(t){var e=this.entries();return"function"==typeof t.every&&t.every(function(t,r){var i=e.next().value;return i&&n(i[0],r)&&n(i[1],t)})&&e.next().done},entrySeq:function(){var t=this;if(t._cache)return ar(t._cache);var e=t.toKeyedSeq().map(k).valueSeq();return e.fromEntrySeq=function(){return t},e},filterNot:function(t,e){return this.filter(D(t),e)},findKey:function(t,e){var r;return this.__iterate(function(n,i,u){return t.call(e,n,i,u)?(r=i,!1):void 0}),r},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(M)},flatMap:function(t,e){return this.map(function(r,n,i){return ar(t.call(e,r,n,i))}).flatten(!0)},flatten:function(t){return T(this,t,!0)},flip:function(){return U(this)},get:function(t,e){return this.find(function(e,r){return n(r,t)},null,e)},getIn:function(t,e){var r=this;if(t)for(var n=0;t.length>n;n++)if(r=r&&r.get?r.get(t[n],Je):Je,r===Je)return e;return r},groupBy:function(t,e){return J(this,t,e,!0)},has:function(t){return this.get(t,Je)!==Je},keySeq:function(){return this.flip().valueSeq()},last:function(){return this.reverse().first()},mapEntries:function(t,e){var r=this;return this.entrySeq().map(function(n,i){return t.call(e,n,i,r)}).fromEntrySeq()},mapKeys:function(t,e){var r=this;return this.flip().map(function(n,i){return t.call(e,n,i,r)}).flip()},max:function(t){return this.maxBy(x,t)},maxBy:function(t,e){e=e||C;var r=this,n=r.entrySeq().reduce(function(n,i){return e(t(i[1],i[0],r),t(n[1],n[0],r))>0?i:n});return n&&n[1]},min:function(t){return this.minBy(x,t)},minBy:function(t,e){e=e||C;var r=this,n=r.entrySeq().reduce(function(n,i){return e(t(i[1],i[0],r),t(n[1],n[0],r))<0?i:n
})},r}function B(t,e,r){var n=t.__makeSequence();return n.__iterateUncached=function(n,i){var u=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++a&&n(t,i,u)}),a},n.__iteratorUncached=function(n,i){var u=this;if(i)return this.cacheResult().__iterator(n,i);var a=t.__iterator($e,i),s=!0;return new nr(function(){if(!s)return g();var t=a.next();if(t.done)return t;var i=t.value,o=i[0],h=i[1];return e.call(r,h,o,u)?n===$e?t:v(n,o,h,t):(s=!1,g())})},n}function V(t,e,r){if(0>=e)return t;var n=t.__makeSequence();return n.length=t.length&&Math.max(0,t.length-e),n.__iterateUncached=function(n,i){var u=this;if(i)return this.cacheResult().__iterate(n,i);var a=0,s=!0,o=0;return t.__iterate(function(t,i){return s&&(s=a++<e)?void 0:(o++,n(t,r?i:o-1,u))}),o},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var u=e&&t.__iterator(n,i),a=0,s=0;return new nr(function(){for(;e>a;)a++,u.next();var t=u.next();return r||n===Ze?t:n===Ye?v(n,s++,null,t):v(n,s++,t.value[1],t)})},n}function L(t,e,r,n){var i=t.__makeSequence();return i.__iterateUncached=function(i,u){var a=this;if(u)return this.cacheResult().__iterate(i,u);var s=!0,o=0;return t.__iterate(function(t,u,h){return s&&(s=e.call(r,t,u,h))?void 0:(o++,i(t,n?u:o-1,a))}),o},i.__iteratorUncached=function(i,u){var a=this;if(u)return this.cacheResult().__iterator(i,u);var s=t.__iterator($e,u),o=!0,h=0;return new nr(function(){var t,u,c;do{if(t=s.next(),t.done)return n||i===Ze?t:i===Ye?v(i,h++,null,t):v(i,h++,t.value[1],t);var f=t.value;u=f[0],c=f[1],o&&(o=e.call(r,c,u,a))}while(o);return i===$e?t:v(i,u,c,t)})},i}function N(t,e,r){var n=[t].concat(e),i=ur(n);return r&&(i=i.toKeyedSeq()),i=i.flatMap(k),i.length=n.reduce(function(t,e){if(void 0!==t){var r=ur(e).length;if(null!=r)return t+r}},0),i}function T(t,e,r){var n=t.__makeSequence();return n.__iterateUncached=function(n,i){function u(t,o){var h=this;t.__iterate(function(t,i){return(!e||e>o)&&F(t)?u(t,o+1):n(t,r?i:a++,h)===!1&&(s=!0),!s
},i)}var a=0,s=!1;return u(t,0),a},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),a=[],s=0;return new nr(function(){for(;u;){var t=u.next();if(t.done===!1){var o=t.value;if(n===$e&&(o=o[1]),e&&!(e>a.length)||!F(o))return r?t:v(n,s++,o,t);a.push(u),u=o.__iterator(n,i)}else u=a.pop()}return g()})},n}function F(t){return t&&"function"==typeof t.flatten&&"function"==typeof t.__iterate&&"function"==typeof t.__iterator}function G(t,e){var r=t.__makeSequence();return r.length=t.length&&2*t.length-1,r.__iterateUncached=function(r,n){var i=this,u=0;return t.__iterate(function(t){return(!u||r(e,u++,i)!==!1)&&r(t,u++,i)!==!1},n),u},r.__iteratorUncached=function(r,n){var i,u=t.__iterator(Ze,n),a=0;return new nr(function(){return(!i||a%2)&&(i=u.next(),i.done)?i:a%2?v(r,a++,e):v(r,a++,i.value,i)})},r}function H(t,e){return v(t,e[0],e[1])}function Q(t,e){return{node:t,index:0,__prev:e}}function X(t,e,r,n){var i=Object.create(wr);return i.length=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Y(t,e,r){var n=i(ze),u=i(Be),a=Z(t._root,t.__ownerID,0,h(e),e,r,n,u);if(!u.value)return t;var s=t.length+(n.value?r===Je?-1:1:0);return t.__ownerID?(t.length=s,t._root=a,t.__hash=void 0,t.__altered=!0,t):a?X(s,a):yr.empty()}function Z(t,e,r,n,i,a,s,o){return t?t.update(e,r,n,i,a,s,o):a===Je?t:(u(o),u(s),new Mr(e,n,[i,a]))}function $(t){return t.constructor===Mr||t.constructor===kr}function te(t,e,r,n,i){if(t.hash===n)return new kr(e,n,[t.entry,i]);var u,a=(0===r?t.hash:t.hash>>>r)&Ke,s=(0===r?n:n>>>r)&Ke,o=a===s?[te(t,e,r+We,n,i)]:(u=new Mr(e,n,i),s>a?[t,u]:[u,t]);return new Sr(e,1<<a|1<<s,o)}function ee(t,e,r,n){for(var i=0,u=0,a=Array(r),s=0,o=1,h=e.length;h>s;s++,o<<=1){var c=e[s];null!=c&&s!==n&&(i|=o,a[u++]=c)}return new Sr(t,i,a)}function re(t,e,r,n,i){for(var u=0,a=Array(Pe),s=0;0!==r;s++,r>>>=1)a[s]=1&r?e[u++]:null;return a[n]=i,new qr(t,u+1,a)}function ne(t,e,r){for(var n=[],i=0;r.length>i;i++){var u=r[i];u instanceof ur||(u=ur(u),u instanceof or&&(u=u.fromEntrySeq())),u&&n.push(u)}return ue(t,e,n)}function ie(t){return function(e,r){return e&&e.mergeDeepWith?e.mergeDeepWith(t,r):t?t(e,r):r
}}function ue(t,e,r){return 0===r.length?t:t.withMutations(function(t){for(var n=e?function(r,n){var i=t.get(n,Je);t.set(n,i===Je?r:e(i,r))}:function(e,r){t.set(r,e)},i=0;r.length>i;i++)r[i].forEach(n)})}function ae(t,e,r,n,i){o(!t||t.set,"updateIn with invalid keyPath");var u=e[i],a=t?t.get(u,Je):Je,s=a===Je?void 0:a,h=i===e.length-1?n(a===Je?r:a):ae(s,e,r,n,i+1);return h===s?t:h===Je?t&&t.remove(u):(t||yr.empty()).set(u,h)}function se(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function oe(t,e,r,n){var i=n?t:s(t);return i[e]=r,i}function he(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var u=Array(i),a=0,s=0;i>s;s++)s===e?(u[s]=r,a=-1):u[s]=t[s+a];return u}function ce(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),u=0,a=0;n>a;a++)a===e&&(u=1),i[a]=t[a+u];return i}function fe(t,e,r,n,i,u){var a,s=t&&t.array;if(0===e){var o=0>r?-r:0,h=n-r;for(h>Pe&&(h=Pe),a=o;h>a;a++)if(i(s&&s[u?o+h-1-a:a])===!1)return!1}else{var c=1<<e,f=e-We;for(a=0;Ke>=a;a++){var _=u?Ke-a:a,l=r+(_<<e);if(n>l&&l+c>0){var v=s&&s[_];if(!fe(v,f,l,n,i,u))return!1}}}return!0}function _e(t,e,r,n,i){return{array:t,level:e,offset:r,max:n,rawMax:n-r>>e,index:0,__prev:i}}function le(t,e,r,n,i,u,a){var s=Object.create(Ur);return s.length=e-t,s._origin=t,s._size=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=u,s.__hash=a,s.__altered=!1,s}function ve(t,e,r){if(e=A(t,e),e>=t.length||0>e)return r===Je?t:t.withMutations(function(t){0>e?ye(t,e).set(0,r):ye(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,u=t._root,a=i(Be);return e>=we(t._size)?n=ge(n,t.__ownerID,0,e,r,a):u=ge(u,t.__ownerID,t._level,e,r,a),a.value?t.__ownerID?(t._root=u,t._tail=n,t.__hash=void 0,t.__altered=!0,t):le(t._origin,t._size,t._level,u,n):t}function ge(t,e,r,n,i,a){var s,o=i===Je,h=n>>>r&Ke,c=t&&t.array.length>h;if(o&&!c)return t;if(r>0){var f=t&&t.array[h],_=ge(f,e,r-We,n,i,a);return _===f?t:(s=pe(t,e),s.array[h]=_,s)}return!o&&c&&t.array[h]===i?t:(u(a),s=pe(t,e),o&&h===s.array.length-1?s.array.pop():s.array[h]=o?void 0:i,s)
}function pe(t,e){return e&&t&&e===t.ownerID?t:new Wr(t?t.array.slice():[],e)}function me(t,e){if(e>=we(t._size))return t._tail;if(1<<t._level+We>e){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&Ke],n-=We;return r}}function ye(t,e,r){var n=t.__ownerID||new a,i=t._origin,u=t._size,s=i+e,o=null==r?u:0>r?u+r:i+r;if(s===i&&o===u)return t;if(s>=o)return t.clear();for(var h=t._level,c=t._root,f=0;0>s+f;)c=new Wr(c&&c.array.length?[null,c]:[],n),h+=We,f+=1<<h;f&&(s+=f,i+=f,o+=f,u+=f);for(var _=we(u),l=we(o);l>=1<<h+We;)c=new Wr(c&&c.array.length?[c]:[],n),h+=We;var v=t._tail,g=_>l?me(t,o-1):l>_?new Wr([],n):v;if(v&&l>_&&u>s&&v.array.length){c=pe(c,n);for(var p=c,m=h;m>We;m-=We){var y=_>>>m&Ke;p=p.array[y]=pe(p.array[y],n)}p.array[_>>>We&Ke]=v}if(u>o&&(g=g&&g.removeAfter(n,0,o)),s>=l)s-=l,o-=l,h=We,c=null,g=g&&g.removeBefore(n,0,s);else if(s>i||_>l){for(f=0;c;){var d=s>>>h&Ke;if(d!==l>>>h&Ke)break;d&&(f+=(1<<h)*d),h-=We,c=c.array[d]}c&&s>i&&(c=c.removeBefore(n,h,s-f)),c&&_>l&&(c=c.removeAfter(n,h,l-f)),f&&(s-=f,o-=f)}return t.__ownerID?(t.length=o-s,t._origin=s,t._size=o,t._level=h,t._root=c,t._tail=g,t.__hash=void 0,t.__altered=!0,t):le(s,o,h,c,g)}function de(t,e,r){for(var n=[],i=0;r.length>i;i++){var u=r[i];u&&n.push(ur(u))}var a=Math.max.apply(null,n.map(function(t){return t.length||0}));return a>t.length&&(t=t.setLength(a)),ue(t,e,n)}function we(t){return Pe>t?0:t-1>>>We<<We}function Se(t,e,r,n){var i=Object.create(Vr);return i.length=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ie(t,e){var r=Object.create(Fr);return r.length=t?t.length:0,r._map=t,r.__ownerID=e,r}function qe(t,e,r,n){var i=Object.create(Hr.prototype);return i.length=t?t.length:0,i._map=t,i._vector=e,i.__ownerID=r,i.__hash=n,i}function be(t,e,r){var n=t._map,i=t._vector,u=n.get(e),a=void 0!==u,s=r===Je;if(!a&&s||a&&r===i.get(u)[1])return t;a||(u=i.length);var o=s?n.remove(e):a?n:n.set(e,u),h=s?i.remove(u):i.set(u,[e,r]);return t.__ownerID?(t.length=o.length,t._map=o,t._vector=h,t.__hash=void 0,t):qe(o,h)}function ke(t,e,r){var n=Object.create(Object.getPrototypeOf(t));
return n._map=e,n.__ownerID=r,n}function xe(t,e){return e?Me(e,t,"",{"":t}):De(t)}function Me(t,e,r,n){return e&&(Array.isArray(e)||e.constructor===Object)?t.call(n,r,ur(e).map(function(r,n){return Me(t,r,n,e)})):e}function De(t){if(t){if(Array.isArray(t))return ur(t).map(De).toVector();if(t.constructor===Object)return ur(t).map(De).toMap()}return t}function Oe(t,e,r,n){4>arguments.length&&(n=t.getIn(e));var i=n instanceof ur?n.length:null,u=n instanceof or?cn:on;return new u(t,e,r,i)}function Ce(t,e,r){return r instanceof ur?Ae(t,e,r):r}function Ae(t,e,r){return Oe(t._rootData,t._keyPath.concat(e),t._onChange,r)}function Ee(t,e,r){var n=t._rootData.updateIn(t._keyPath,r?yr.empty():void 0,e),i=t._keyPath||[];return t._onChange&&t._onChange.call(void 0,n,t._rootData,r?i.concat(r):i),Oe(n,t._keyPath,t._onChange)}var Re=Object,je={};je.createClass=t,je.superCall=e,je.defaultSuperCall=r;var Ue="delete",We=5,Pe=1<<We,Ke=Pe-1,Je={},ze={value:!1},Be={value:!1},Ve=function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}(),Le="function"==typeof WeakMap&&new WeakMap,Ne=2147483647,Te=0,Fe="__immutablehash__";"function"==typeof Symbol&&(Fe=Symbol(Fe));var Ge=16,He=255,Qe=0,Xe={},Ye=0,Ze=1,$e=2,tr="@@iterator",er="function"==typeof Symbol&&Symbol.iterator,rr=er||tr,nr=function(t){this.next=t};je.createClass(nr,{toString:function(){return"[Iterator]"}},{});var ir=nr.prototype;ir.inspect=ir.toSource=function(){return""+this},ir[rr]=function(){return this};var ur=function(t){return ar.from(1===arguments.length?t:Array.prototype.slice.call(arguments))},ar=ur;je.createClass(ur,{toArray:function(){E(this.length);var t=Array(this.length||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toJS:function(){return this.map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toMap:function(){return E(this.length),yr.from(this)},toObject:function(){E(this.length);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return E(this.length),Hr.from(this)},toSet:function(){return E(this.length),Nr.from(this)
},toStack:function(){return E(this.length),zr.from(this)},toVector:function(){return E(this.length),Rr.from(this)},toString:function(){return this.__toString("Seq {","}")},__toString:function(t,e){return 0===this.length?t+e:t+" "+this.map(this.__toStringMapper).join(", ")+" "+e},__toStringMapper:function(t,e){return e+": "+O(t)},concat:function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];return N(this,t,!0)},contains:function(t){return this.find(function(e){return n(e,t)},null,Je)!==Je},entries:function(){return this.__iterator($e)},every:function(t,e){var r=!0;return this.__iterate(function(n,i,u){return t.call(e,n,i,u)?void 0:(r=!1,!1)}),r},filter:function(t,e){return K(this,t,e,!0)},find:function(t,e,r){var n=r;return this.__iterate(function(r,i,u){return t.call(e,r,i,u)?(n=r,!1):void 0}),n},forEach:function(t,e){return this.__iterate(e?t.bind(e):t)},join:function(t){t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n:""}),e},keys:function(){return this.__iterator(Ye)},map:function(t,e){return W(this,t,e)},reduce:function(t,e,r){var n,i;return 2>arguments.length?i=!0:n=e,this.__iterate(function(e,u,a){i?(i=!1,n=e):n=t.call(r,n,e,u,a)}),n},reduceRight:function(){var t=this.toKeyedSeq().reverse();return t.reduce.apply(t,arguments)},reverse:function(){return P(this,!0)},slice:function(t,e){if(S(t,e,this.length))return this;var r=I(t,this.length),n=q(e,this.length);if(r!==r||n!==n)return this.cacheResult().slice(t,e);var i=0===r?this:this.skip(r);return null==n||n===this.length?i:i.take(n-r)},some:function(t,e){return!this.every(D(t),e)},sort:function(t){return this.sortBy(k,t)},values:function(){return this.__iterator(Ze)},butLast:function(){return this.slice(0,-1)},count:function(t,e){return t?this.filter(t,e).count():(null==this.length&&(this.length=this.__iterate(M)),this.length)},countBy:function(t,e){var r=this,n={},i=[];return this.__iterate(function(u,a){var s=t.call(e,u,a,r),o=h(s);n.hasOwnProperty(o)?i[n[o]][1]++:(n[o]=i.length,i.push([s,1]))}),ar(i).fromEntrySeq()
},equals:function(t){if(this===t)return!0;if(!t||"function"!=typeof t.equals)return!1;if(null!=this.length&&null!=t.length){if(this.length!==t.length)return!1;if(0===this.length&&0===t.length)return!0}return null!=this.__hash&&null!=t.__hash&&this.__hash!==t.__hash?!1:this.__deepEquals(t)},__deepEquals:function(t){var e=this.entries();return"function"==typeof t.every&&t.every(function(t,r){var i=e.next().value;return i&&n(i[0],r)&&n(i[1],t)})&&e.next().done},entrySeq:function(){var t=this;if(t._cache)return ar(t._cache);var e=t.toKeyedSeq().map(x).valueSeq();return e.fromEntrySeq=function(){return t},e},filterNot:function(t,e){return this.filter(D(t),e)},findKey:function(t,e){var r;return this.__iterate(function(n,i,u){return t.call(e,n,i,u)?(r=i,!1):void 0}),r},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(M)},flatMap:function(t,e){return this.map(function(r,n,i){return ar(t.call(e,r,n,i))}).flatten(!0)},flatten:function(t){return T(this,t,!0)},flip:function(){return U(this)},get:function(t,e){return this.find(function(e,r){return n(r,t)},null,e)},getIn:function(t,e){var r=this;if(t)for(var n=0;t.length>n;n++)if(r=r&&r.get?r.get(t[n],Je):Je,r===Je)return e;return r},groupBy:function(t,e){return J(this,t,e,!0)},has:function(t){return this.get(t,Je)!==Je},keySeq:function(){return this.flip().valueSeq()},last:function(){return this.reverse().first()},mapEntries:function(t,e){var r=this;return this.entrySeq().map(function(n,i){return t.call(e,n,i,r)}).fromEntrySeq()},mapKeys:function(t,e){var r=this;return this.flip().map(function(n,i){return t.call(e,n,i,r)}).flip()},max:function(t){return this.maxBy(k,t)},maxBy:function(t,e){e=e||C;var r=this,n=r.entrySeq().reduce(function(n,i){return e(t(i[1],i[0],r),t(n[1],n[0],r))>0?i:n});return n&&n[1]},min:function(t){return this.minBy(k,t)},minBy:function(t,e){e=e||C;var r=this,n=r.entrySeq().reduce(function(n,i){return e(t(i[1],i[0],r),t(n[1],n[0],r))<0?i:n
});return n&&n[1]},rest:function(){return this.slice(1)},skip:function(t){return V(this,t,!0)},skipLast:function(t){return this.reverse().skip(t).reverse()},skipWhile:function(t,e){return L(this,t,e,!0)},skipUntil:function(t,e){return this.skipWhile(D(t),e)},sortBy:function(t,e){e=e||C;var r=this;return ar(r.entrySeq().entrySeq().toArray().sort(function(n,i){return e(t(n[1][1],n[1][0],r),t(i[1][1],i[1][0],r))||n[0]-i[0]})).fromEntrySeq().valueSeq().fromEntrySeq()},take:function(t){return z(this,t)},takeLast:function(t){return this.reverse().take(t).reverse()},takeWhile:function(t,e){return B(this,t,e)},takeUntil:function(t,e){return this.takeWhile(D(t),e)},toKeyedSeq:function(){return this},valueSeq:function(){return new gr(this)},cacheResult:function(){return!this._cache&&this.__iterateUncached&&(E(this.length),this._cache=this.entrySeq().toArray(),null==this.length&&(this.length=this._cache.length)),this},hashCode:function(){return this.__hash||(this.__hash=1/0===this.length?0:this.reduce(function(t,e,r){return t+(h(e)^(e===r?0:h(r)))&Ne},0))},__makeSequence:function(){return Object.create(sr)},__iterate:function(t,e){return R(this,t,e,!0)},__iterator:function(t,e){return j(this,t,e,!0)}},{from:function(t){if(t instanceof ar)return t;if(!Array.isArray(t)){if(m(t))return new fr(t);if(p(t))return new _r(t);if(t&&t.constructor===Object)return new lr(t);t=[t]}return new vr(t)}});var sr=ur.prototype;sr[rr]=sr.entries,sr.toJSON=sr.toJS,sr.__toJS=sr.toObject,sr.inspect=sr.toSource=function(){return""+this},sr.chain=sr.flatMap;var or=function(){je.defaultSuperCall(this,hr.prototype,arguments)},hr=or;je.createClass(or,{toString:function(){return this.__toString("Seq [","]")},concat:function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];return N(this,t,!1)},filter:function(t,e){return K(this,t,e,!1)},findIndex:function(t,e){var r=this.findKey(t,e);return null==r?-1:r},indexOf:function(t){return this.findIndex(function(e){return n(e,t)})},lastIndexOf:function(t){return this.toKeyedSeq().reverse().indexOf(t)},reverse:function(){return P(this,!1)
},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=I(t,this.length);var n=this.slice(0,t);return 1===r?n:n.concat(s(arguments,2),this.slice(t+e))},findLastIndex:function(t,e){return this.toKeyedSeq().reverse().findIndex(t,e)},first:function(){return this.get(0)},flatten:function(t){return T(this,t,!1)},flip:function(){return U(this.toKeyedSeq())},fromEntrySeq:function(){return new mr(this)},get:function(t,e){return t=A(this,t),0>t||1/0===this.length||null!=this.length&&t>this.length?e:this.find(function(e,r){return r===t},null,e)},groupBy:function(t,e){return J(this,t,e,!1)},has:function(t){return t=A(this,t),t>=0&&(null!=this.length?1/0===this.length||this.length>t:-1!==this.indexOf(t))},interpose:function(t){return G(this,t)},last:function(){return this.get(-1)},skip:function(t){var e=this,r=V(e,t,!1);return r!==e&&(r.get=function(r,n){return r=A(this,r),r>=0?e.get(r+t,n):n}),r},skipWhile:function(t,e){return L(this,t,e,!1)},sortBy:function(t,e){e=e||C;var r=this;return ur(this.entrySeq().toArray().sort(function(n,i){return e(t(n[1],n[0],r),t(i[1],i[0],r))||n[0]-i[0]})).fromEntrySeq().valueSeq()},take:function(t){var e=this,r=z(e,t);return r!==e&&(r.get=function(r,n){return r=A(this,r),r>=0&&t>r?e.get(r,n):n}),r},toKeyedSeq:function(){return new pr(this)},valueSeq:function(){return this},__makeSequence:function(){return Object.create(cr)},__iterate:function(t,e){return R(this,t,e,!1)},__iterator:function(t,e){return j(this,t,e,!1)}},{},ur);var cr=or.prototype;cr[rr]=cr.values,cr.__toJS=cr.toArray,cr.__toStringMapper=O;var fr=function(t){this._iterator=t,this._iteratorCache=[]};je.createClass(fr,{__iterateUncached:function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=this._iterator,n=this._iteratorCache,i=0;n.length>i;)if(t(n[i],i++,this)===!1)return i;for(var u;!(u=r.next()).done;){var a=u.value;if(n[i]=a,t(a,i++,this)===!1)break}return i},__iteratorUncached:function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;
return new nr(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return v(t,i,n[i++])})}},{},or);var _r=function(t){this._iterable=t,this.length=t.length||t.size};je.createClass(_r,{__iterateUncached:function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=d(r),i=0;if(m(n))for(var u;!(u=n.next()).done&&t(u.value,i++,this)!==!1;);return i},__iteratorUncached:function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=d(r);if(!m(n))return new nr(function(){return g()});var i=0;return new nr(function(){var e=n.next();return e.done?e:v(t,i++,e.value)})}},{},or);var lr=function(t){var e=Object.keys(t);this._object=t,this._keys=e,this.length=e.length};je.createClass(lr,{get:function(t,e){return void 0===e||this.has(t)?this._object[t]:e},has:function(t){return this._object.hasOwnProperty(t)},__iterate:function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,u=0;i>=u;u++){var a=n[e?i-u:u];if(t(r[a],a,this)===!1)return u+1}return u},__iterator:function(t,e){var r=this._object,n=this._keys,i=n.length-1,u=0;return new nr(function(){var a=n[e?i-u:u];return u++>i?g():v(t,a,r[a])})}},{},ur);var vr=function(t){this._array=t,this.length=t.length};je.createClass(vr,{get:function(t,e){return this.has(t)?this._array[A(this,t)]:e},__iterate:function(t,e){for(var r=this._array,n=r.length-1,i=0;n>=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},__iterator:function(t,e){var r=this._array,n=r.length-1,i=0;return new nr(function(){return i>n?g():v(t,i,r[e?n-i++:i++])})}},{},or);var gr=function(t){this._seq=t,this.length=t.length};je.createClass(gr,{contains:function(t){return this._seq.contains(t)},cacheResult:function(){return this._seq.cacheResult(),this.length=this._seq.length,this},__iterate:function(t,e){var r=this,n=0;return this._seq.__iterate(function(e){return t(e,n++,r)},e)},__iterator:function(t,e){var r=this._seq.__iterator(Ze,e),n=0;return new nr(function(){var e=r.next();return e.done?e:v(t,n++,e.value,e)})}},{},or);var pr=function(t){this._seq=t,this.length=t.length
};je.createClass(pr,{get:function(t,e){return this._seq.get(t,e)},has:function(t){return this._seq.has(t)},valueSeq:function(){return this._seq},reverse:function(){var t=this,e=P(this,!0);return e.valueSeq=function(){return t._seq.reverse()},e},map:function(t,e){var r=this,n=W(this,t,e);return n.valueSeq=function(){return r._seq.map(t,e)},n},cacheResult:function(){return this._seq.cacheResult(),this.length=this._seq.length,this},__iterate:function(t,e){var r=this,n=e?w(this):0;return this._seq.__iterate(function(i){return t(i,e?--n:n++,r)},e)},__iterator:function(t,e){var r=this._seq.__iterator(Ze,e),n=e?w(this):0;return new nr(function(){var i=r.next();return i.done?i:v(t,e?--n:n++,i.value,i)})}},{},ur);var mr=function(t){this._seq=t,this.length=t.length};je.createClass(mr,{entrySeq:function(){return this._seq},cacheResult:function(){return this._seq.cacheResult(),this.length=this._seq.length,this},__iterate:function(t,e){var r=this;return this._seq.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},__iterator:function(t,e){var r=this._seq.__iterator(Ze,e);return new nr(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n)return t===$e?e:v(t,n[0],n[1],e)}})}},{},ur);var dr=function(t){var e=yr.empty();return t?t.constructor===yr?t:e.merge(t):e},yr=dr;je.createClass(dr,{toString:function(){return this.__toString("Map {","}")},get:function(t,e){return this._root?this._root.get(0,h(t),t,e):e},set:function(t,e){return Y(this,t,e)},setIn:function(t,e){return o(t.length>0,"Requires non-empty key path."),this.updateIn(t,function(){return e})},remove:function(t){return Y(this,t,Je)},removeIn:function(t){return o(t.length>0,"Requires non-empty key path."),this.updateIn(t,function(){return Je})},update:function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},updateIn:function(t,e,r){return r||(r=e,e=void 0),0===t.length?r(this):ae(this,t,e,r,0)},clear:function(){return 0===this.length?this:this.__ownerID?(this.length=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):yr.empty()
},merge:function(){return ne(this,null,arguments)},mergeWith:function(t){for(var e=[],r=1;arguments.length>r;r++)e[r-1]=arguments[r];return ne(this,t,e)},mergeDeep:function(){return ne(this,ie(null),arguments)},mergeDeepWith:function(t){for(var e=[],r=1;arguments.length>r;r++)e[r-1]=arguments[r];return ne(this,ie(t),e)},cursor:function(t,e){var r=0===arguments.length||"function"==typeof t&&(e=t)?[]:Array.isArray(t)?t:[t];return Oe(this,r,e)},withMutations:function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},asMutable:function(){return this.__ownerID?this:this.__ensureOwner(new a)},asImmutable:function(){return this.__ensureOwner()},wasAltered:function(){return this.__altered},__iterator:function(t,e){return new Or(this,t,e)},__iterate:function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},__ensureOwner:function(t){return t===this.__ownerID?this:t?X(this.length,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)}},{empty:function(){return Cr||(Cr=X(0))}},ur);var wr=dr.prototype;wr[Ue]=wr.remove,dr.from=dr;var Sr=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r},Ir=Sr;je.createClass(Sr,{get:function(t,e,r,n){var i=1<<((0===t?e:e>>>t)&Ke),u=this.bitmap;return 0===(u&i)?n:this.nodes[se(u&i-1)].get(t+We,e,r,n)},update:function(t,e,r,n,i,u,a){var s=(0===e?r:r>>>e)&Ke,o=1<<s,h=this.bitmap,c=0!==(h&o);if(!c&&i===Je)return this;var f=se(h&o-1),_=this.nodes,l=c?_[f]:null,v=Z(l,t,e+We,r,n,i,u,a);if(v===l)return this;if(!c&&v&&_.length>=Ar)return re(t,_,h,s,v);if(c&&!v&&2===_.length&&$(_[1^f]))return _[1^f];if(c&&v&&1===_.length&&$(v))return v;var g=t&&t===this.ownerID,p=c?v?h:h^o:h|o,m=c?v?oe(_,f,v,g):ce(_,f,g):he(_,f,v,g);return g?(this.bitmap=p,this.nodes=m,this):new Ir(t,p,m)},iterate:function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++)if(r[e?i-n:n].iterate(t,e)===!1)return!1}},{});var qr=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r},br=qr;je.createClass(qr,{get:function(t,e,r,n){var i=(0===t?e:e>>>t)&Ke,u=this.nodes[i];
return u?u.get(t+We,e,r,n):n},update:function(t,e,r,n,i,u,a){var s=(0===e?r:r>>>e)&Ke,o=i===Je,h=this.nodes,c=h[s];if(o&&!c)return this;var f=Z(c,t,e+We,r,n,i,u,a);if(f===c)return this;var _=this.count;if(c){if(!f&&(_--,Er>_))return ee(t,h,_,s)}else _++;var l=t&&t===this.ownerID,v=oe(h,s,f,l);return l?(this.count=_,this.nodes=v,this):new br(t,_,v)},iterate:function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++){var u=r[e?i-n:n];if(u&&u.iterate(t,e)===!1)return!1}}},{});var xr=function(t,e,r){this.ownerID=t,this.hash=e,this.entries=r},kr=xr;je.createClass(xr,{get:function(t,e,r,i){for(var u=this.entries,a=0,s=u.length;s>a;a++)if(n(r,u[a][0]))return u[a][1];return i},update:function(t,e,r,i,a,o,h){var c=a===Je;if(r!==this.hash)return c?this:(u(h),u(o),te(this,t,e,r,[i,a]));for(var f=this.entries,_=0,l=f.length;l>_&&!n(i,f[_][0]);_++);var v=l>_;if(c&&!v)return this;if(u(h),(c||!v)&&u(o),c&&2===l)return new Mr(t,this.hash,f[1^_]);var g=t&&t===this.ownerID,p=g?f:s(f);return v?c?_===l-1?p.pop():p[_]=p.pop():p[_]=[i,a]:p.push([i,a]),g?(this.entries=p,this):new kr(t,this.hash,p)},iterate:function(t,e){for(var r=this.entries,n=0,i=r.length-1;i>=n;n++)if(t(r[e?i-n:n])===!1)return!1}},{});var Mr=function(t,e,r){this.ownerID=t,this.hash=e,this.entry=r},Dr=Mr;je.createClass(Mr,{get:function(t,e,r,i){return n(r,this.entry[0])?this.entry[1]:i},update:function(t,e,r,i,a,s,o){var h=a===Je,c=n(i,this.entry[0]);return(c?a===this.entry[1]:h)?this:(u(o),h?(u(s),null):c?t&&t===this.ownerID?(this.entry[1]=a,this):new Dr(t,r,[i,a]):(u(s),te(this,t,e,r,[i,a])))},iterate:function(t){return t(this.entry)}},{});var Or=function(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Q(t._root)};je.createClass(Or,{next:function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return H(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,r>=i)return H(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,r>=i){var u=n.nodes[this._reverse?r-i:i];if(u){if(u.entry)return H(t,u.entry);e=this._stack=Q(u,e)
}continue}e=this._stack=this._stack.__prev}return g()}},{},nr);var Cr,Ar=Pe/2,Er=Pe/4,Rr=function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];return jr.from(t)},jr=Rr;je.createClass(Rr,{toString:function(){return this.__toString("Vector [","]")},get:function(t,e){if(t=A(this,t),0>t||t>=this.length)return e;t+=this._origin;var r=me(this,t);return r&&r.array[t&Ke]},set:function(t,e){return ve(this,t,e)},remove:function(t){return ve(this,t,Je)},clear:function(){return 0===this.length?this:this.__ownerID?(this.length=this._origin=this._size=0,this._level=We,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):jr.empty()},push:function(){var t=arguments,e=this.length;return this.withMutations(function(r){de(r,0,e+t.length);for(var n=0;t.length>n;n++)r.set(e+n,t[n])})},pop:function(){return de(this,0,-1)},unshift:function(){var t=arguments;return this.withMutations(function(e){de(e,-t.length);for(var r=0;t.length>r;r++)e.set(r,t[r])})},shift:function(){return de(this,1)},merge:function(){return ye(this,null,arguments)},mergeWith:function(t){for(var e=[],r=1;arguments.length>r;r++)e[r-1]=arguments[r];return ye(this,t,e)},mergeDeep:function(){return ye(this,ie(null),arguments)},mergeDeepWith:function(t){for(var e=[],r=1;arguments.length>r;r++)e[r-1]=arguments[r];return ye(this,ie(t),e)},setLength:function(t){return de(this,0,t)},slice:function(t,e){var r=je.superCall(this,jr.prototype,"slice",[t,e]);if(r!==this){var n=this,i=n.length;r.toVector=function(){return de(n,0>t?Math.max(0,i+t):i?Math.min(i,t):t,null==e?i:0>e?Math.max(0,i+e):i?Math.min(i,e):e)}}return r},__iterator:function(t,e){return new Kr(this,t,e)},__iterate:function(t,e){var r=this,n=0,i=function(e){return t(e,n++,r)},u=we(this._size);return e?fe(this._tail,0,u-this._origin,this._size-this._origin,i,e)&&fe(this._root,this._level,-this._origin,u-this._origin,i,e):fe(this._root,this._level,-this._origin,u-this._origin,i,e)&&fe(this._tail,0,u-this._origin,this._size-this._origin,i,e),n},__ensureOwner:function(t){return t===this.__ownerID?this:t?le(this._origin,this._size,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)
return new nr(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return v(t,i,n[i++])})}},{},or);var _r=function(t){this._iterable=t,this.length=t.length||t.size};je.createClass(_r,{__iterateUncached:function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=y(r),i=0;if(m(n))for(var u;!(u=n.next()).done&&t(u.value,i++,this)!==!1;);return i},__iteratorUncached:function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=y(r);if(!m(n))return new nr(function(){return g()});var i=0;return new nr(function(){var e=n.next();return e.done?e:v(t,i++,e.value)})}},{},or);var lr=function(t){var e=Object.keys(t);this._object=t,this._keys=e,this.length=e.length};je.createClass(lr,{get:function(t,e){return void 0===e||this.has(t)?this._object[t]:e},has:function(t){return this._object.hasOwnProperty(t)},__iterate:function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,u=0;i>=u;u++){var a=n[e?i-u:u];if(t(r[a],a,this)===!1)return u+1}return u},__iterator:function(t,e){var r=this._object,n=this._keys,i=n.length-1,u=0;return new nr(function(){var a=n[e?i-u:u];return u++>i?g():v(t,a,r[a])})}},{},ur);var vr=function(t){this._array=t,this.length=t.length};je.createClass(vr,{get:function(t,e){return this.has(t)?this._array[A(this,t)]:e},__iterate:function(t,e){for(var r=this._array,n=r.length-1,i=0;n>=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},__iterator:function(t,e){var r=this._array,n=r.length-1,i=0;return new nr(function(){return i>n?g():v(t,i,r[e?n-i++:i++])})}},{},or);var gr=function(t){this._seq=t,this.length=t.length};je.createClass(gr,{contains:function(t){return this._seq.contains(t)},cacheResult:function(){return this._seq.cacheResult(),this.length=this._seq.length,this},__iterate:function(t,e){var r=this,n=0;return this._seq.__iterate(function(e){return t(e,n++,r)},e)},__iterator:function(t,e){var r=this._seq.__iterator(Ze,e),n=0;return new nr(function(){var e=r.next();return e.done?e:v(t,n++,e.value,e)})}},{},or);var pr=function(t){this._seq=t,this.length=t.length
};je.createClass(pr,{get:function(t,e){return this._seq.get(t,e)},has:function(t){return this._seq.has(t)},valueSeq:function(){return this._seq},reverse:function(){var t=this,e=P(this,!0);return e.valueSeq=function(){return t._seq.reverse()},e},map:function(t,e){var r=this,n=W(this,t,e);return n.valueSeq=function(){return r._seq.map(t,e)},n},cacheResult:function(){return this._seq.cacheResult(),this.length=this._seq.length,this},__iterate:function(t,e){var r=this,n=e?w(this):0;return this._seq.__iterate(function(i){return t(i,e?--n:n++,r)},e)},__iterator:function(t,e){var r=this._seq.__iterator(Ze,e),n=e?w(this):0;return new nr(function(){var i=r.next();return i.done?i:v(t,e?--n:n++,i.value,i)})}},{},ur);var mr=function(t){this._seq=t,this.length=t.length};je.createClass(mr,{entrySeq:function(){return this._seq},cacheResult:function(){return this._seq.cacheResult(),this.length=this._seq.length,this},__iterate:function(t,e){var r=this;return this._seq.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},__iterator:function(t,e){var r=this._seq.__iterator(Ze,e);return new nr(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n)return t===$e?e:v(t,n[0],n[1],e)}})}},{},ur);var yr=function(t){var e=dr.empty();return t?t.constructor===dr?t:e.merge(t):e},dr=yr;je.createClass(yr,{toString:function(){return this.__toString("Map {","}")},get:function(t,e){return this._root?this._root.get(0,h(t),t,e):e},set:function(t,e){return Y(this,t,e)},setIn:function(t,e){return o(t.length>0,"Requires non-empty key path."),this.updateIn(t,function(){return e})},remove:function(t){return Y(this,t,Je)},removeIn:function(t){return o(t.length>0,"Requires non-empty key path."),this.updateIn(t,function(){return Je})},update:function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},updateIn:function(t,e,r){return r||(r=e,e=void 0),0===t.length?r(this):ae(this,t,e,r,0)},clear:function(){return 0===this.length?this:this.__ownerID?(this.length=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):dr.empty()
},merge:function(){return ne(this,null,arguments)},mergeWith:function(t){for(var e=[],r=1;arguments.length>r;r++)e[r-1]=arguments[r];return ne(this,t,e)},mergeDeep:function(){return ne(this,ie(null),arguments)},mergeDeepWith:function(t){for(var e=[],r=1;arguments.length>r;r++)e[r-1]=arguments[r];return ne(this,ie(t),e)},cursor:function(t,e){var r=0===arguments.length||"function"==typeof t&&(e=t)?[]:Array.isArray(t)?t:[t];return Oe(this,r,e)},withMutations:function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},asMutable:function(){return this.__ownerID?this:this.__ensureOwner(new a)},asImmutable:function(){return this.__ensureOwner()},wasAltered:function(){return this.__altered},__iterator:function(t,e){return new Or(this,t,e)},__iterate:function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},__ensureOwner:function(t){return t===this.__ownerID?this:t?X(this.length,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)}},{empty:function(){return Cr||(Cr=X(0))}},ur);var wr=yr.prototype;wr[Ue]=wr.remove,yr.from=yr;var Sr=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r},Ir=Sr;je.createClass(Sr,{get:function(t,e,r,n){var i=1<<((0===t?e:e>>>t)&Ke),u=this.bitmap;return 0===(u&i)?n:this.nodes[se(u&i-1)].get(t+We,e,r,n)},update:function(t,e,r,n,i,u,a){var s=(0===e?r:r>>>e)&Ke,o=1<<s,h=this.bitmap,c=0!==(h&o);if(!c&&i===Je)return this;var f=se(h&o-1),_=this.nodes,l=c?_[f]:null,v=Z(l,t,e+We,r,n,i,u,a);if(v===l)return this;if(!c&&v&&_.length>=Ar)return re(t,_,h,s,v);if(c&&!v&&2===_.length&&$(_[1^f]))return _[1^f];if(c&&v&&1===_.length&&$(v))return v;var g=t&&t===this.ownerID,p=c?v?h:h^o:h|o,m=c?v?oe(_,f,v,g):ce(_,f,g):he(_,f,v,g);return g?(this.bitmap=p,this.nodes=m,this):new Ir(t,p,m)},iterate:function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++)if(r[e?i-n:n].iterate(t,e)===!1)return!1}},{});var qr=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r},br=qr;je.createClass(qr,{get:function(t,e,r,n){var i=(0===t?e:e>>>t)&Ke,u=this.nodes[i];
return u?u.get(t+We,e,r,n):n},update:function(t,e,r,n,i,u,a){var s=(0===e?r:r>>>e)&Ke,o=i===Je,h=this.nodes,c=h[s];if(o&&!c)return this;var f=Z(c,t,e+We,r,n,i,u,a);if(f===c)return this;var _=this.count;if(c){if(!f&&(_--,Er>_))return ee(t,h,_,s)}else _++;var l=t&&t===this.ownerID,v=oe(h,s,f,l);return l?(this.count=_,this.nodes=v,this):new br(t,_,v)},iterate:function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++){var u=r[e?i-n:n];if(u&&u.iterate(t,e)===!1)return!1}}},{});var kr=function(t,e,r){this.ownerID=t,this.hash=e,this.entries=r},xr=kr;je.createClass(kr,{get:function(t,e,r,i){for(var u=this.entries,a=0,s=u.length;s>a;a++)if(n(r,u[a][0]))return u[a][1];return i},update:function(t,e,r,i,a,o,h){var c=a===Je;if(r!==this.hash)return c?this:(u(h),u(o),te(this,t,e,r,[i,a]));for(var f=this.entries,_=0,l=f.length;l>_&&!n(i,f[_][0]);_++);var v=l>_;if(c&&!v)return this;if(u(h),(c||!v)&&u(o),c&&2===l)return new Mr(t,this.hash,f[1^_]);var g=t&&t===this.ownerID,p=g?f:s(f);return v?c?_===l-1?p.pop():p[_]=p.pop():p[_]=[i,a]:p.push([i,a]),g?(this.entries=p,this):new xr(t,this.hash,p)},iterate:function(t,e){for(var r=this.entries,n=0,i=r.length-1;i>=n;n++)if(t(r[e?i-n:n])===!1)return!1}},{});var Mr=function(t,e,r){this.ownerID=t,this.hash=e,this.entry=r},Dr=Mr;je.createClass(Mr,{get:function(t,e,r,i){return n(r,this.entry[0])?this.entry[1]:i},update:function(t,e,r,i,a,s,o){var h=a===Je,c=n(i,this.entry[0]);return(c?a===this.entry[1]:h)?this:(u(o),h?(u(s),null):c?t&&t===this.ownerID?(this.entry[1]=a,this):new Dr(t,r,[i,a]):(u(s),te(this,t,e,r,[i,a])))},iterate:function(t){return t(this.entry)}},{});var Or=function(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Q(t._root)};je.createClass(Or,{next:function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return H(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,r>=i)return H(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,r>=i){var u=n.nodes[this._reverse?r-i:i];if(u){if(u.entry)return H(t,u.entry);e=this._stack=Q(u,e)
}continue}e=this._stack=this._stack.__prev}return g()}},{},nr);var Cr,Ar=Pe/2,Er=Pe/4,Rr=function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];return jr.from(t)},jr=Rr;je.createClass(Rr,{toString:function(){return this.__toString("Vector [","]")},get:function(t,e){if(t=A(this,t),0>t||t>=this.length)return e;t+=this._origin;var r=me(this,t);return r&&r.array[t&Ke]},set:function(t,e){return ve(this,t,e)},remove:function(t){return ve(this,t,Je)},clear:function(){return 0===this.length?this:this.__ownerID?(this.length=this._origin=this._size=0,this._level=We,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):jr.empty()},push:function(){var t=arguments,e=this.length;return this.withMutations(function(r){ye(r,0,e+t.length);for(var n=0;t.length>n;n++)r.set(e+n,t[n])})},pop:function(){return ye(this,0,-1)},unshift:function(){var t=arguments;return this.withMutations(function(e){ye(e,-t.length);for(var r=0;t.length>r;r++)e.set(r,t[r])})},shift:function(){return ye(this,1)},merge:function(){return de(this,null,arguments)},mergeWith:function(t){for(var e=[],r=1;arguments.length>r;r++)e[r-1]=arguments[r];return de(this,t,e)},mergeDeep:function(){return de(this,ie(null),arguments)},mergeDeepWith:function(t){for(var e=[],r=1;arguments.length>r;r++)e[r-1]=arguments[r];return de(this,ie(t),e)},setLength:function(t){return ye(this,0,t)},slice:function(t,e){var r=je.superCall(this,jr.prototype,"slice",[t,e]);if(r!==this){var n=this,i=n.length;r.toVector=function(){return ye(n,0>t?Math.max(0,i+t):i?Math.min(i,t):t,null==e?i:0>e?Math.max(0,i+e):i?Math.min(i,e):e)}}return r},__iterator:function(t,e){return new Kr(this,t,e)},__iterate:function(t,e){var r=this,n=0,i=function(e){return t(e,n++,r)},u=we(this._size);return e?fe(this._tail,0,u-this._origin,this._size-this._origin,i,e)&&fe(this._root,this._level,-this._origin,u-this._origin,i,e):fe(this._root,this._level,-this._origin,u-this._origin,i,e)&&fe(this._tail,0,u-this._origin,this._size-this._origin,i,e),n},__ensureOwner:function(t){return t===this.__ownerID?this:t?le(this._origin,this._size,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)
}},{empty:function(){return Jr||(Jr=le(0,0,We))},from:function(t){if(!t||0===t.length)return jr.empty();if(t.constructor===jr)return t;var e=Array.isArray(t);return t.length>0&&Pe>t.length?le(0,t.length,We,null,new Wr(e?s(t):ur(t).toArray())):(e||(t=ur(t).valueSeq()),jr.empty().merge(t))}},or);var Ur=Rr.prototype;Ur[Ue]=Ur.remove,Ur.setIn=wr.setIn,Ur.removeIn=wr.removeIn,Ur.update=wr.update,Ur.updateIn=wr.updateIn,Ur.cursor=wr.cursor,Ur.withMutations=wr.withMutations,Ur.asMutable=wr.asMutable,Ur.asImmutable=wr.asImmutable,Ur.wasAltered=wr.wasAltered;var Wr=function(t,e){this.array=t,this.ownerID=e},Pr=Wr;je.createClass(Wr,{removeBefore:function(t,e,r){if(r===e?1<<e:0||0===this.array.length)return this;var n=r>>>e&Ke;if(n>=this.array.length)return new Pr([],t);var i,u=0===n;if(e>0){var a=this.array[n];if(i=a&&a.removeBefore(t,e-We,r),i===a&&u)return this}if(u&&!i)return this;var s=pe(this,t);if(!u)for(var o=0;n>o;o++)s.array[o]=void 0;return i&&(s.array[n]=i),s},removeAfter:function(t,e,r){if(r===e?1<<e:0||0===this.array.length)return this;var n=r-1>>>e&Ke;if(n>=this.array.length)return this;var i,u=n===this.array.length-1;if(e>0){var a=this.array[n];if(i=a&&a.removeAfter(t,e-We,r),i===a&&u)return this}if(u&&!i)return this;var s=pe(this,t);return u||s.array.pop(),i&&(s.array[n]=i),s}},{});var Kr=function(t,e,r){this._type=e,this._reverse=!!r,this._maxIndex=t.length-1;var n=we(t._size),i=_e(t._root&&t._root.array,t._level,-t._origin,n-t._origin-1),u=_e(t._tail&&t._tail.array,0,n-t._origin,t._size-t._origin-1);this._stack=r?u:i,this._stack.__prev=r?i:u};je.createClass(Kr,{next:function(){for(var t=this._stack;t;){var e=t.array,r=t.index++;if(this._reverse&&(r=Ke-r,r>t.rawMax&&(r=t.rawMax,t.index=Pe-r)),r>=0&&Pe>r&&t.rawMax>=r){var n=e&&e[r];if(0===t.level){var i,u=this._type;return 1!==u&&(i=t.offset+(r<<t.level),this._reverse&&(i=this._maxIndex-i)),v(u,i,n)}this._stack=t=_e(n&&n.array,t.level-We,t.offset+(r<<t.level),t.max,t)}else t=this._stack=this._stack.__prev}return g()}},{},nr);var Jr,zr=function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];
return Br.from(t)},Br=zr;je.createClass(zr,{toString:function(){return this.__toString("Stack [","]")},get:function(t,e){for(var r=this._head;r&&t--;)r=r.next;return r?r.value:e},peek:function(){return this._head&&this._head.value},push:function(){if(0===arguments.length)return this;for(var t=this.length+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.length=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Se(t,e)},pushAll:function(t){if(t=ur(t),0===t.length)return this;var e=this.length,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.length=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Se(e,r)},pop:function(){return this.slice(1)},unshift:function(){return this.push.apply(this,arguments)},unshiftAll:function(t){return this.pushAll(t)},shift:function(){return this.pop.apply(this,arguments)},clear:function(){return 0===this.length?this:this.__ownerID?(this.length=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Br.empty()},slice:function(t,e){if(S(t,e,this.length))return this;var r=I(t,this.length),n=q(e,this.length);if(n!==this.length)return je.superCall(this,Br.prototype,"slice",[t,e]);for(var i=this.length-r,u=this._head;r--;)u=u.next;return this.__ownerID?(this.length=i,this._head=u,this.__hash=void 0,this.__altered=!0,this):Se(i,u)},__ensureOwner:function(t){return t===this.__ownerID?this:t?Se(this.length,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},__iterateUncached:function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=0,n=this._head;n&&t(n.value,r++,this)!==!1;)n=n.next;return r},__iteratorUncached:function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=0,n=this._head;return new nr(function(){if(n){var e=n.value;return n=n.next,v(t,r++,e)}return g()})}},{empty:function(){return Lr||(Lr=Se(0))},from:function(t){var e=Br.empty();return t?t.constructor===Br?t:e.unshiftAll(t):e}},or);var Vr=zr.prototype;Vr.withMutations=wr.withMutations,Vr.asMutable=wr.asMutable,Vr.asImmutable=wr.asImmutable,Vr.wasAltered=wr.wasAltered;
var Lr,Nr=function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];return Tr.from(t)},Tr=Nr;je.createClass(Nr,{toString:function(){return this.__toString("Set {","}")},get:function(t,e){return this._map.has(t)?t:e},contains:function(t){return this._map.has(t)},add:function(t){var e=this._map.set(t,null);return this.__ownerID?(this.length=e.length,this._map=e,this):e===this._map?this:Ie(e)},remove:function(t){var e=this._map.remove(t);return this.__ownerID?(this.length=e.length,this._map=e,this):e===this._map?this:0===e.length?Tr.empty():Ie(e)},clear:function(){return 0===this.length?this:this.__ownerID?(this.length=0,this._map.clear(),this):Tr.empty()},union:function(){var t=arguments;return 0===t.length?this:this.withMutations(function(e){for(var r=0;t.length>r;r++)ur(t[r]).forEach(function(t){return e.add(t)})})},intersect:function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];if(0===t.length)return this;t=t.map(function(t){return ur(t)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.every(function(t){return t.contains(r)})||e.remove(r)})})},subtract:function(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];if(0===t.length)return this;t=t.map(function(t){return ur(t)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.some(function(t){return t.contains(r)})&&e.remove(r)})})},isSubset:function(t){return t=ur(t),this.every(function(e){return t.contains(e)})},isSuperset:function(t){var e=this;return t=ur(t),t.every(function(t){return e.contains(t)})},merge:function(){return this.union.apply(this,arguments)},mergeWith:function(){for(var t=[],e=1;arguments.length>e;e++)t[e-1]=arguments[e];return this.union.apply(this,t)},wasAltered:function(){return this._map.wasAltered()},__iterate:function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},__iterator:function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},__ensureOwner:function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);
return t?Ie(e,t):(this.__ownerID=t,this._map=e,this)}},{empty:function(){return Gr||(Gr=Ie(dr.empty()))},from:function(t){var e=Tr.empty();return t?t.constructor===Tr?t:e.union(t):e},fromKeys:function(t){return Tr.from(ur(t).flip())}},ur);var Fr=Nr.prototype;Fr[Ue]=Fr.remove,Fr[rr]=Fr.values,Fr.mergeDeep=Fr.merge,Fr.mergeDeepWith=Fr.mergeWith,Fr.withMutations=wr.withMutations,Fr.asMutable=wr.asMutable,Fr.asImmutable=wr.asImmutable,Fr.__toJS=cr.__toJS,Fr.__toStringMapper=cr.__toStringMapper;var Gr,Hr=function(t){var e=Qr.empty();return t?t.constructor===Qr?t:e.merge(t):e},Qr=Hr;je.createClass(Hr,{toString:function(){return this.__toString("OrderedMap {","}")},get:function(t,e){var r=this._map.get(t);return null!=r?this._vector.get(r)[1]:e},clear:function(){return 0===this.length?this:this.__ownerID?(this.length=0,this._map.clear(),this._vector.clear(),this):Qr.empty()},set:function(t,e){return be(this,t,e)},remove:function(t){return be(this,t,Je)},wasAltered:function(){return this._map.wasAltered()||this._vector.wasAltered()},__iterate:function(t,e){var r=this;return this._vector.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},__iterator:function(t,e){return this._vector.fromEntrySeq().__iterator(t,e)},__ensureOwner:function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._vector.__ensureOwner(t);return t?qe(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._vector=r,this)}},{empty:function(){return Xr||(Xr=qe(dr.empty(),Rr.empty()))}},dr),Hr.from=Hr,Hr.prototype[Ue]=Hr.prototype.remove;var Xr,Yr=function(t,e){var r=function(t){return this instanceof r?void(this._map=dr(t)):new r(t)},n=Object.keys(t),i=r.prototype=Object.create(Zr);i.constructor=r,e&&(i._name=e),i._defaultValues=t,i._keys=n,i.length=n.length;try{ur(t).forEach(function(t,e){Object.defineProperty(r.prototype,e,{get:function(){return this.get(e)},set:function(t){o(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})})}catch(u){}return r};je.createClass(Yr,{toString:function(){return this.__toString(this._name+" {","}")
},has:function(t){return this._defaultValues.hasOwnProperty(t)},get:function(t,e){return void 0===e||this.has(t)?this._map.get(t,this._defaultValues[t]):e},clear:function(){if(this.__ownerID)return this._map.clear(),this;var t=Object.getPrototypeOf(this).constructor;return t._empty||(t._empty=xe(this,dr.empty()))},set:function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+this._name);var r=this._map.set(t,e);return this.__ownerID||r===this._map?this:xe(this,r)},remove:function(t){if(null==t||!this.has(t))return this;var e=this._map.remove(t);return this.__ownerID||e===this._map?this:xe(this,e)},keys:function(){return this._map.keys()},values:function(){return this._map.values()},entries:function(){return this._map.entries()},wasAltered:function(){return this._map.wasAltered()},__iterator:function(t,e){return this._map.__iterator(t,e)},__iterate:function(t,e){var r=this;return ur(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},__ensureOwner:function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?xe(this,e,t):(this.__ownerID=t,this._map=e,this)}},{},ur);var Zr=Yr.prototype;Zr._name="Record",Zr[Ue]=Zr.remove,Zr.merge=wr.merge,Zr.mergeWith=wr.mergeWith,Zr.mergeDeep=wr.mergeDeep,Zr.mergeDeepWith=wr.mergeDeepWith,Zr.update=wr.update,Zr.updateIn=wr.updateIn,Zr.cursor=wr.cursor,Zr.withMutations=wr.withMutations,Zr.asMutable=wr.asMutable,Zr.asImmutable=wr.asImmutable;var $r=function(t,e,r){return this instanceof tn?(o(0!==r,"Cannot step a Range by 0"),t=t||0,null==e&&(e=1/0),t===e&&rn?rn:(r=null==r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,void(this.length=Math.max(0,Math.ceil((e-t)/r-1)+1)))):new tn(t,e,r)},tn=$r;je.createClass($r,{toString:function(){return 0===this.length?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},get:function(t,e){return this.has(t)?this._start+A(this,t)*this._step:e},contains:function(t){var e=(t-this._start)/this._step;return e>=0&&this.length>e&&e===Math.floor(e)
return t?Ie(e,t):(this.__ownerID=t,this._map=e,this)}},{empty:function(){return Gr||(Gr=Ie(yr.empty()))},from:function(t){var e=Tr.empty();return t?t.constructor===Tr?t:e.union(t):e},fromKeys:function(t){return Tr.from(ur(t).flip())}},ur);var Fr=Nr.prototype;Fr[Ue]=Fr.remove,Fr[rr]=Fr.values,Fr.mergeDeep=Fr.merge,Fr.mergeDeepWith=Fr.mergeWith,Fr.withMutations=wr.withMutations,Fr.asMutable=wr.asMutable,Fr.asImmutable=wr.asImmutable,Fr.__toJS=cr.__toJS,Fr.__toStringMapper=cr.__toStringMapper;var Gr,Hr=function(t){var e=Qr.empty();return t?t.constructor===Qr?t:e.merge(t):e},Qr=Hr;je.createClass(Hr,{toString:function(){return this.__toString("OrderedMap {","}")},get:function(t,e){var r=this._map.get(t);return null!=r?this._vector.get(r)[1]:e},clear:function(){return 0===this.length?this:this.__ownerID?(this.length=0,this._map.clear(),this._vector.clear(),this):Qr.empty()},set:function(t,e){return be(this,t,e)},remove:function(t){return be(this,t,Je)},wasAltered:function(){return this._map.wasAltered()||this._vector.wasAltered()},__iterate:function(t,e){var r=this;return this._vector.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},__iterator:function(t,e){return this._vector.fromEntrySeq().__iterator(t,e)},__ensureOwner:function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._vector.__ensureOwner(t);return t?qe(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._vector=r,this)}},{empty:function(){return Xr||(Xr=qe(yr.empty(),Rr.empty()))}},yr),Hr.from=Hr,Hr.prototype[Ue]=Hr.prototype.remove;var Xr,Yr=function(t,e){var r=function(t){return this instanceof r?void(this._map=yr(t)):new r(t)},n=Object.keys(t),i=r.prototype=Object.create(Zr);i.constructor=r,e&&(i._name=e),i._defaultValues=t,i._keys=n,i.length=n.length;try{ur(t).forEach(function(t,e){Object.defineProperty(r.prototype,e,{get:function(){return this.get(e)},set:function(t){o(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})})}catch(u){}return r};je.createClass(Yr,{toString:function(){return this.__toString(this._name+" {","}")
},has:function(t){return this._defaultValues.hasOwnProperty(t)},get:function(t,e){return void 0===e||this.has(t)?this._map.get(t,this._defaultValues[t]):e},clear:function(){if(this.__ownerID)return this._map.clear(),this;var t=Object.getPrototypeOf(this).constructor;return t._empty||(t._empty=ke(this,yr.empty()))},set:function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+this._name);var r=this._map.set(t,e);return this.__ownerID||r===this._map?this:ke(this,r)},remove:function(t){if(null==t||!this.has(t))return this;var e=this._map.remove(t);return this.__ownerID||e===this._map?this:ke(this,e)},keys:function(){return this._map.keys()},values:function(){return this._map.values()},entries:function(){return this._map.entries()},wasAltered:function(){return this._map.wasAltered()},__iterator:function(t,e){return this._map.__iterator(t,e)},__iterate:function(t,e){var r=this;return ur(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},__ensureOwner:function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?ke(this,e,t):(this.__ownerID=t,this._map=e,this)}},{},ur);var Zr=Yr.prototype;Zr._name="Record",Zr[Ue]=Zr.remove,Zr.merge=wr.merge,Zr.mergeWith=wr.mergeWith,Zr.mergeDeep=wr.mergeDeep,Zr.mergeDeepWith=wr.mergeDeepWith,Zr.update=wr.update,Zr.updateIn=wr.updateIn,Zr.cursor=wr.cursor,Zr.withMutations=wr.withMutations,Zr.asMutable=wr.asMutable,Zr.asImmutable=wr.asImmutable;var $r=function(t,e,r){return this instanceof tn?(o(0!==r,"Cannot step a Range by 0"),t=t||0,null==e&&(e=1/0),t===e&&rn?rn:(r=null==r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,void(this.length=Math.max(0,Math.ceil((e-t)/r-1)+1)))):new tn(t,e,r)},tn=$r;je.createClass($r,{toString:function(){return 0===this.length?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},get:function(t,e){return this.has(t)?this._start+A(this,t)*this._step:e},contains:function(t){var e=(t-this._start)/this._step;return e>=0&&this.length>e&&e===Math.floor(e)
},slice:function(t,e){return S(t,e,this.length)?this:(t=I(t,this.length),e=q(e,this.length),t>=e?rn:new tn(this.get(t,this._end),this.get(e,this._end),this._step))},indexOf:function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&this.length>r)return r}return-1},lastIndexOf:function(t){return this.indexOf(t)},take:function(t){return this.slice(0,Math.max(0,t))},skip:function(t){return this.slice(Math.max(0,t))},__iterate:function(t,e){for(var r=this.length-1,n=this._step,i=e?this._start+r*n:this._start,u=0;r>=u;u++){if(t(i,u,this)===!1)return u+1;i+=e?-n:n}return u},__iterator:function(t,e){var r=this.length-1,n=this._step,i=e?this._start+r*n:this._start,u=0;return new nr(function(){var a=i;return i+=e?-n:n,u>r?g():v(t,u++,a)})},__deepEquals:function(t){return t instanceof tn?this._start===t._start&&this._end===t._end&&this._step===t._step:je.superCall(this,tn.prototype,"__deepEquals",[t])}},{},or);var en=$r.prototype;en.__toJS=en.toArray,en.first=Ur.first,en.last=Ur.last;var rn=$r(0,0),nn=function(t,e){return 0===e&&sn?sn:this instanceof un?(this._value=t,void(this.length=null==e?1/0:Math.max(0,e))):new un(t,e)},un=nn;je.createClass(nn,{toString:function(){return 0===this.length?"Repeat []":"Repeat [ "+this._value+" "+this.length+" times ]"},get:function(t,e){return this.has(t)?this._value:e},contains:function(t){return n(this._value,t)},slice:function(t,e){var r=this.length;return t=0>t?Math.max(0,r+t):Math.min(r,t),e=null==e?r:e>0?Math.min(r,e):Math.max(0,r+e),e>t?new un(this._value,e-t):sn},reverse:function(){return this},indexOf:function(t){return n(this._value,t)?0:-1},lastIndexOf:function(t){return n(this._value,t)?this.length:-1},__iterate:function(t){for(var e=0;this.length>e;e++)if(t(this._value,e,this)===!1)return e+1;return e},__iterator:function(t){var e=this,r=0;return new nr(function(){return e.length>r?v(t,r++,e._value):g()})},__deepEquals:function(t){return t instanceof un?n(this._value,t._value):je.superCall(this,un.prototype,"__deepEquals",[t])}},{},or);var an=nn.prototype;
an.last=an.first,an.has=en.has,an.take=en.take,an.skip=en.skip,an.__toJS=en.__toJS;var sn=new nn(void 0,0),on=function(t,e,r,n){this.length=n,this._rootData=t,this._keyPath=e,this._onChange=r};je.createClass(on,{equals:function(t){return n(this.deref(),t&&("function"==typeof t.deref?t.deref():t))},deref:function(t){return this._rootData.getIn(this._keyPath,t)},get:function(t,e){if(Array.isArray(t)&&0===t.length)return this;var r=this._rootData.getIn(this._keyPath.concat(t),Je);return r===Je?e:Ce(this,t,r)},set:function(t,e){return Ee(this,function(r){return r.set(t,e)},t)},remove:function(t){return Ee(this,function(e){return e.remove(t)},t)},clear:function(){return Ee(this,function(t){return t.clear()})},update:function(t,e,r){return 1===arguments.length?Ee(this,t):Ee(this,function(n){return n.update(t,e,r)},t)},withMutations:function(t){return Ee(this,function(e){return(e||dr.empty()).withMutations(t)})},cursor:function(t){return Array.isArray(t)&&0===t.length?this:Ae(this,t)},__iterate:function(t,e){var r=this,n=this.deref();return n&&n.__iterate?n.__iterate(function(e,n){return t(Ce(r,n,e),n,r)},e):0},__iterator:function(t,e){var r=this,n=this.deref(),i=n&&n.__iterator&&n.__iterator($e,e);return new nr(function(){if(!i)return g();var e=i.next();if(e.done)return e;var n=e.value,u=n[0],a=n[1];return v(t,u,Ce(r,u,a),e)})}},{},ur);var hn=on.prototype;hn[Ue]=hn.remove,hn.getIn=hn.get;var cn=function(t,e,r,n){this.length=n,this._rootData=t,this._keyPath=e,this._onChange=r};je.createClass(cn,{},{},or);var fn=cn.prototype;fn.equals=hn.equals,fn.deref=hn.deref,fn.get=hn.get,fn.getIn=hn.getIn,fn.set=hn.set,fn[Ue]=fn.remove=hn.remove,fn.clear=hn.clear,fn.update=hn.update,fn.withMutations=hn.withMutations,fn.cursor=hn.cursor,fn.__iterate=hn.__iterate,fn.__iterator=hn.__iterator;var _n={Sequence:ur,Map:dr,Vector:Rr,Stack:zr,Set:Nr,OrderedMap:Hr,Record:Yr,Range:$r,Repeat:nn,is:n,fromJS:ke};return _n}"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):Immutable=t();
an.last=an.first,an.has=en.has,an.take=en.take,an.skip=en.skip,an.__toJS=en.__toJS;var sn=new nn(void 0,0),on=function(t,e,r,n){this.length=n,this._rootData=t,this._keyPath=e,this._onChange=r};je.createClass(on,{equals:function(t){return n(this.deref(),t&&("function"==typeof t.deref?t.deref():t))},deref:function(t){return this._rootData.getIn(this._keyPath,t)},get:function(t,e){if(Array.isArray(t)&&0===t.length)return this;var r=this._rootData.getIn(this._keyPath.concat(t),Je);return r===Je?e:Ce(this,t,r)},set:function(t,e){return Ee(this,function(r){return r.set(t,e)},t)},remove:function(t){return Ee(this,function(e){return e.remove(t)},t)},clear:function(){return Ee(this,function(t){return t.clear()})},update:function(t,e,r){return 1===arguments.length?Ee(this,t):Ee(this,function(n){return n.update(t,e,r)},t)},withMutations:function(t){return Ee(this,function(e){return(e||yr.empty()).withMutations(t)})},cursor:function(t){return Array.isArray(t)&&0===t.length?this:Ae(this,t)},__iterate:function(t,e){var r=this,n=this.deref();return n&&n.__iterate?n.__iterate(function(e,n){return t(Ce(r,n,e),n,r)},e):0},__iterator:function(t,e){var r=this,n=this.deref(),i=n&&n.__iterator&&n.__iterator($e,e);return new nr(function(){if(!i)return g();var e=i.next();if(e.done)return e;var n=e.value,u=n[0],a=n[1];return v(t,u,Ce(r,u,a),e)})}},{},ur);var hn=on.prototype;hn[Ue]=hn.remove,hn.getIn=hn.get;var cn=function(t,e,r,n){this.length=n,this._rootData=t,this._keyPath=e,this._onChange=r};je.createClass(cn,{},{},or);var fn=cn.prototype;fn.equals=hn.equals,fn.deref=hn.deref,fn.get=hn.get,fn.getIn=hn.getIn,fn.set=hn.set,fn[Ue]=fn.remove=hn.remove,fn.clear=hn.clear,fn.update=hn.update,fn.withMutations=hn.withMutations,fn.cursor=hn.cursor,fn.__iterate=hn.__iterate,fn.__iterator=hn.__iterator;var _n={Sequence:ur,Map:yr,Vector:Rr,Stack:zr,Set:Nr,OrderedMap:Hr,Record:Yr,Range:$r,Repeat:nn,is:n,fromJS:xe};return _n}"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):Immutable=t();
{
"name": "immutable",
"version": "2.6.1",
"version": "2.6.2",
"description": "Immutable Data Collections",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/facebook/immutable-js",

@@ -34,5 +34,5 @@ Immutable Data Collections

To use `immutable` from a browser, download [dist/Immutable.min.js](./dist/Immutable.min.js)
or use a CDN hosted version such as [CDNJS](//cdnjs.cloudflare.com/ajax/libs/immutable/2.5.1/immutable.min.js)
or [jsDelivr](//cdn.jsdelivr.net/immutable.js/2.5.1/Immutable.min.js).
To use `immutable` from a browser, download [dist/immutable.min.js](./dist/immutable.min.js)
or use a CDN such as [CDNJS](https://cdnjs.com/libraries/immutable)
or [jsDelivr](http://www.jsdelivr.com/#!immutable.js).

@@ -42,3 +42,3 @@ Then, add it as a script tag to your page:

```html
<script src="Immutable.min.js"></script>
<script src="immutable.min.js"></script>
<script>

@@ -54,3 +54,3 @@ var map = Immutable.Map({a:1, b:2, c:3});

```javascript
require(['./Immutable.min.js'], function (Immutable) {
require(['./immutable.min.js'], function (Immutable) {
var map = Immutable.Map({a:1, b:2, c:3});

@@ -60,2 +60,4 @@ map = map.set('b', 20);

});
If you're using [browserify](http://browserify.org/), the `immutable` npm module also works from the browser.
```

@@ -97,3 +99,3 @@

This model of data flow aligns well with the architecture of [React](http://facebook.github.io/react/)
and especially well with an application designed using the ideas of [Flux](http://facebook.github.io/react/docs/flux-overview.html).
and especially well with an application designed using the ideas of [Flux](http://facebook.github.io/flux/docs/overview.html).

@@ -100,0 +102,0 @@ When data is passed from above rather than being subscribed to, and you're only

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

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