UNPKG

ttk-app-core

Version:
1 lines 1.73 MB
var vendor_lib=function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=430)}([function(e,t,n){"use strict";e.exports=n(431)},function(e,t,n){e.exports=n(480)()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(441),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(503)),o=a(n(507)),i=a(n(22));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){var r;!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n))e.push(a.apply(null,n));else if("object"===r)for(var o in n)i.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=a:void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(275),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(275),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(432)},function(e,t,n){"use strict";var f=function(e){};e.exports=function(e,t,n,r,o,i,a,s){if(f(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";var r=n(0),o=n(584);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t,n){var r;r=function(){"use strict";var r=Array.prototype.slice;function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function l(e){return c(e)?e:q(e)}function s(e){return f(e)?e:G(e)}function u(e){return d(e)?e:X(e)}function o(e){return c(e)&&!p(e)?e:$(e)}function c(e){return!(!e||!e[t])}function f(e){return!(!e||!e[n])}function d(e){return!(!e||!e[i])}function p(e){return f(e)||d(e)}function h(e){return!(!e||!e[a])}e(s,l),e(u,l),e(o,l),l.isIterable=c,l.isKeyed=f,l.isIndexed=d,l.isAssociative=p,l.isOrdered=h,l.Keyed=s,l.Indexed=u,l.Set=o;var t="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_INDEXED__@@",a="@@__IMMUTABLE_ORDERED__@@",v="delete",b=5,g=1<<b,_=g-1,w={},m={value:!1},y={value:!1};function C(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function O(){}function x(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function T(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&n<=t)}function M(e,t){return D(e,t,0)}function N(e,t){return D(e,t,t)}function D(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var j=0,R=1,I=2,A="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",F=A||L;function K(e){this.next=e}function V(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function z(e){return!!U(e)}function B(e){return e&&"function"==typeof e.next}function W(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(A&&e[A]||e[L]);if("function"==typeof t)return t}function Y(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():c(e)?e.toSeq():function(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(t)return t;throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e)}(e)}function G(e){return null==e?ae().toKeyedSeq():c(e)?f(e)?e.toSeq():e.fromEntrySeq():se(e)}function X(e){return null==e?ae():c(e)?f(e)?e.entrySeq():e.toIndexedSeq():le(e)}function $(e){return(null==e?ae():c(e)?f(e)?e.entrySeq():e:le(e)).toSetSeq()}K.prototype.toString=function(){return"[Iterator]"},K.KEYS=j,K.VALUES=R,K.ENTRIES=I,K.prototype.inspect=K.prototype.toSource=function(){return this.toString()},K.prototype[F]=function(){return this},e(q,l),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return ce(this,e,t,!0)},q.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},e(G,q),G.prototype.toKeyedSeq=function(){return this},e(X,q),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return ce(this,e,t,!1)},X.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},e($,q),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=$,q.Indexed=X;var Z,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return Z||(Z=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():B(e)?new oe(e).fromEntrySeq():z(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){return Y(e)?new te(e):B(e)?new oe(e):z(e)?new re(e):void 0}function ce(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new K(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:V(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function de(e,t){return t?function n(r,o,e,t){if(Array.isArray(o))return r.call(t,e,X(o).map(function(e,t){return n(r,e,t,o)}));if(he(o))return r.call(t,e,G(o).map(function(e,t){return n(r,e,t,o)}));return o}(t,e,"",{"":e}):pe(e)}function pe(e){return Array.isArray(e)?X(e).map(pe).toList():he(e)?G(e).map(pe).toMap():e}function he(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(n,e){if(n===e)return!0;if(!c(e)||void 0!==n.size&&void 0!==e.size&&n.size!==e.size||void 0!==n.__hash&&void 0!==e.__hash&&n.__hash!==e.__hash||f(n)!==f(e)||d(n)!==d(e)||h(n)!==h(e))return!1;if(0===n.size&&0===e.size)return!0;var r=!p(n);if(h(n)){var o=n.entries();return e.every(function(e,t){var n=o.next().value;return n&&ve(n[1],e)&&(r||ve(n[0],t))})&&o.next().done}var i=!1;if(void 0===n.size)if(void 0===e.size)"function"==typeof n.cacheResult&&n.cacheResult();else{i=!0;var t=n;n=e,e=t}var a=!0,s=e.__iterate(function(e,t){if(r?!n.has(e):i?!ve(e,n.get(t,w)):!ve(n.get(t,w),e))return a=!1});return a&&n.size===s}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function ge(e,t){if(!e)throw new Error(t)}function be(e,t,n){if(!(this instanceof be))return new be(e,t,n);if(ge(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function we(){}function Ce(){}function Se(){}q.prototype[ee]=!0,e(te,X),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new K(function(){return r<o?{value:void 0,done:!0}:V(e,o,n[t?r-o++:o++])})},e(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(t,n){var r=this._object,o=this._keys,i=o.length-1,a=0;return new K(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:V(t,e,r[e])})},ne.prototype[a]=!0,e(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=W(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=W(this._iterable);if(!B(n))return new K(H);var r=0;return new K(function(){var e=n.next();return e.done?e:V(t,r++,e.value)})},e(oe,X),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(!1===e(o[i]=a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new K(function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return V(t,o,r[o++])})},e(ye,X),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return ve(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new ye(this._value,N(t,n)-M(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new K(function(){return r<n.size?V(e,r++,n._value):{value:void 0,done:!0}})},ye.prototype.equals=function(e){return e instanceof ye?ve(this._value,e._value):me(e)},e(be,X),be.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1<this._step?" by "+this._step:"")+" ]"},be.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},be.prototype.includes=function(e){var t=(e-this._start)/this._step;return 0<=t&&t<this.size&&t===Math.floor(t)},be.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=M(e,this.size),(t=N(t,this.size))<=e?new be(0,0):new be(this.get(e,this._end),this.get(t,this._end),this._step))},be.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(0<=n&&n<this.size)return n}return-1},be.prototype.lastIndexOf=function(e){return this.indexOf(e)},be.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},be.prototype.__iterator=function(t,n){var r=this.size-1,o=this._step,i=n?this._start+r*o:this._start,a=0;return new K(function(){var e=i;return i+=n?-o:o,r<a?{value:void 0,done:!0}:V(t,a++,e)})},be.prototype.equals=function(e){return e instanceof be?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},e(_e,l),e(we,_e),e(Ce,_e),e(Se,_e),_e.Keyed=we,_e.Indexed=Ce,_e.Set=Se;var Oe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function ke(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);4294967295<e;)n^=e/=4294967295;return xe(n)}if("string"===t)return e.length>Re?function(e){var t=Le[e];void 0===t&&(t=Ee(e),Ae===Ie&&(Ae=0,Le={}),Ae++,Le[e]=t);return t}(e):Ee(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ne&&void 0!==(t=Me.get(e)))return t;if(void 0!==(t=e[je]))return t;if(!Pe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[je]))return t;if(void 0!==(t=function(e){if(e&&0<e.nodeType)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++De,1073741824&De&&(De=0);if(Ne)Me.set(e,t);else{if(void 0!==Te&&!1===Te(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Pe)Object.defineProperty(e,je,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[je]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[je]=t}}return t}(e);if("function"==typeof e.toString)return Ee(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ee(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return xe(t)}var Te=Object.isExtensible,Pe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Me,Ne="function"==typeof WeakMap;Ne&&(Me=new WeakMap);var De=0,je="__immutablehash__";"function"==typeof Symbol&&(je=Symbol(je));var Re=16,Ie=255,Ae=0,Le={};function Fe(e){ge(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(t){return null==t?Qe():Ve(t)&&!h(t)?t:Qe().withMutations(function(n){var e=s(t);Fe(e.size),e.forEach(function(e,t){return n.set(t,e)})})}function Ve(e){return!(!e||!e[ze])}e(Ke,we),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return et(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,w,function(){return t})},Ke.prototype.remove=function(e){return et(this,e,w)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,function(){return w})},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===w;var a=n.next();if(a.done){var s=i?r:t,l=o(s);return l===s?t:l}ge(i||t&&t.set,"invalid keyPath");var u=a.value;var c=i?w:t.get(u,w);var f=e(c,n,r,o);return f===c?t:f===w?t.remove(u):(i?Qe():t).set(u,f)}(this,rn(e),t,n);return r===w?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Qe()},Ke.prototype.merge=function(){return ot(this,void 0,arguments)},Ke.prototype.mergeWith=function(e){return ot(this,e,r.call(arguments,1))},Ke.prototype.mergeIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,Qe(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},Ke.prototype.mergeDeep=function(){return ot(this,it,arguments)},Ke.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return ot(this,at(e),t)},Ke.prototype.mergeDeepIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,Qe(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},Ke.prototype.sort=function(e){return Mt(Yt(this,e))},Ke.prototype.sortBy=function(e,t){return Mt(Yt(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new O)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new Xe(this,e,t)},Ke.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Je(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=Ve;var He,ze="@@__IMMUTABLE_MAP__@@",Be=Ke.prototype;function We(e,t){this.ownerID=e,this.entries=t}function Ue(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ye(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Xe(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ze(e._root)}function $e(e,t){return V(e,t[0],t[1])}function Ze(e,t){return{node:e,index:0,__prev:t}}function Je(e,t,n,r){var o=Object.create(Be);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Qe(){return He||(He=Je(0))}function et(e,t,n){var r,o;if(e._root){var i=C(m),a=C(y);if(r=tt(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===w?-1:1:0)}else{if(n===w)return e;o=1,r=new We(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Je(o,r):Qe()}function tt(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===w?e:(S(s),S(a),new Ge(t,r,[o,i]))}function nt(e){return e.constructor===Ge||e.constructor===qe}function rt(e,t,n,r,o){if(e.keyHash===r)return new qe(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&_,s=(0===n?r:r>>>n)&_;return new Ue(t,1<<a|1<<s,a===s?[rt(e,t,n+b,r,o)]:(i=new Ge(t,r,o),a<s?[e,i]:[i,e]))}function ot(e,t,n){for(var r=[],o=0;o<n.length;o++){var i=n[o],a=s(i);c(i)||(a=a.map(function(e){return de(e)})),r.push(a)}return st(e,t,r)}function it(e,t,n){return e&&e.mergeDeep&&c(t)?e.mergeDeep(t):ve(e,t)?e:t}function at(o){return function(e,t,n){if(e&&e.mergeDeepWith&&c(t))return e.mergeDeepWith(o,t);var r=o(e,t,n);return ve(e,r)?e:r}}function st(e,o,n){return 0===(n=n.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(r){for(var e=o?function(t,n){r.update(n,w,function(e){return e===w?t:o(e,t,n)})}:function(e,t){r.set(t,e)},t=0;t<n.length;t++)n[t].forEach(e)}):e.constructor(n[0])}function lt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function ut(e,t,n,r){var o=r?e:x(e);return o[t]=n,o}Be[ze]=!0,Be[v]=Be.remove,Be.removeIn=Be.deleteIn,We.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},We.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===w,l=this.entries,u=0,c=l.length;u<c&&!ve(r,l[u][0]);u++);var f=u<c;if(f?l[u][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==l.length){if(!f&&!s&&l.length>=ct)return function(e,t,n,r){e||(e=new O);for(var o=new Ge(e,ke(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,l,r,o);var d=e&&e===this.ownerID,p=d?l:x(l);return f?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new We(e,p)}},Ue.prototype.get=function(e,t,n,r){void 0===t&&(t=ke(n));var o=1<<((0===e?t:t>>>e)&_),i=this.bitmap;return 0==(i&o)?r:this.nodes[lt(i&o-1)].get(e+b,t,n,r)},Ue.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ke(r));var s=(0===t?n:n>>>t)&_,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&o===w)return this;var f=lt(u&l-1),d=this.nodes,p=c?d[f]:void 0,h=tt(p,e,t+b,n,r,o,i,a);if(h===p)return this;if(!c&&h&&d.length>=ft)return function(e,t,n,r,o){for(var i=0,a=new Array(g),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Ye(e,i+1,a)}(e,d,u,s,h);if(c&&!h&&2===d.length&&nt(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&nt(h))return h;var v=e&&e===this.ownerID,m=c?h?u:u^l:u|l,y=c?h?ut(d,f,h,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(d,f,v):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(d,f,h,v);return v?(this.bitmap=m,this.nodes=y,this):new Ue(e,m,y)},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=ke(n));var o=(0===e?t:t>>>e)&_,i=this.nodes[o];return i?i.get(e+b,t,n,r):r},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ke(r));var s=(0===t?n:n>>>t)&_,l=o===w,u=this.nodes,c=u[s];if(l&&!c)return this;var f=tt(c,e,t+b,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d<dt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(o|=l,a[i++]=c)}return new Ue(e,o,a)}(e,u,d,s)}else d++;var p=e&&e===this.ownerID,h=ut(u,s,f,p);return p?(this.count=d,this.nodes=h,this):new Ye(e,d,h)},qe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},qe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ke(r));var s=o===w;if(n!==this.keyHash)return s?this:(S(a),S(i),rt(this,e,t,n,[r,o]));for(var l=this.entries,u=0,c=l.length;u<c&&!ve(r,l[u][0]);u++);var f=u<c;if(f?l[u][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===c)return new Ge(e,this.keyHash,l[1^u]);var d=e&&e===this.ownerID,p=d?l:x(l);return f?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new qe(e,this.keyHash,p)},Ge.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Ge.prototype.update=function(e,t,n,r,o,i,a){var s=o===w,l=ve(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(S(a),s?void S(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Ge(e,this.keyHash,[r,o]):(S(i),rt(this,e,t,ke(r),[r,o])))},We.prototype.iterate=qe.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ue.prototype.iterate=Ye.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Ge.prototype.iterate=function(e,t){return e(this.entry)},e(Xe,K),Xe.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return $e(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return $e(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return $e(e,i.entry);t=this._stack=Ze(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ct=g/4,ft=g/2,dt=g/4;function pt(e){var t=St();if(null==e)return t;if(ht(e))return e;var r=u(e),o=r.size;return 0===o?t:(Fe(o),0<o&&o<g?Ct(0,o,b,null,new yt(r.toArray())):t.withMutations(function(n){n.setSize(o),r.forEach(function(e,t){return n.set(t,e)})}))}function ht(e){return!(!e||!e[vt])}e(pt,Ce),pt.of=function(){return this(arguments)},pt.prototype.toString=function(){return this.__toString("List [","]")},pt.prototype.get=function(e,t){if(0<=(e=E(this,e))&&e<this.size){var n=kt(this,e+=this._origin);return n&&n.array[e&_]}return t},pt.prototype.set=function(e,t){return function(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Et(e,t).set(0,n):Et(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=C(y);t>=Pt(e._capacity)?r=Ot(r,e.__ownerID,0,t,n,i):o=Ot(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Ct(e._origin,e._capacity,e._level,o,r)}(this,e,t)},pt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},pt.prototype.insert=function(e,t){return this.splice(e,0,t)},pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=b,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):St()},pt.prototype.push=function(){var n=arguments,r=this.size;return this.withMutations(function(e){Et(e,0,r+n.length);for(var t=0;t<n.length;t++)e.set(r+t,n[t])})},pt.prototype.pop=function(){return Et(this,0,-1)},pt.prototype.unshift=function(){var n=arguments;return this.withMutations(function(e){Et(e,-n.length);for(var t=0;t<n.length;t++)e.set(t,n[t])})},pt.prototype.shift=function(){return Et(this,1)},pt.prototype.merge=function(){return Tt(this,void 0,arguments)},pt.prototype.mergeWith=function(e){return Tt(this,e,r.call(arguments,1))},pt.prototype.mergeDeep=function(){return Tt(this,it,arguments)},pt.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return Tt(this,at(e),t)},pt.prototype.setSize=function(e){return Et(this,0,e)},pt.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:Et(this,M(e,n),N(t,n))},pt.prototype.__iterator=function(t,e){var n=0,r=wt(this,e);return new K(function(){var e=r();return e===_t?{value:void 0,done:!0}:V(t,n++,e)})},pt.prototype.__iterate=function(e,t){for(var n,r=0,o=wt(this,t);(n=o())!==_t&&!1!==e(n,r++,this););return r},pt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},pt.isList=ht;var vt="@@__IMMUTABLE_LIST__@@",mt=pt.prototype;function yt(e,t){this.array=e,this.ownerID=t}mt[vt]=!0,mt[v]=mt.remove,mt.setIn=Be.setIn,mt.deleteIn=mt.removeIn=Be.removeIn,mt.update=Be.update,mt.updateIn=Be.updateIn,mt.mergeIn=Be.mergeIn,mt.mergeDeepIn=Be.mergeDeepIn,mt.withMutations=Be.withMutations,mt.asMutable=Be.asMutable,mt.asImmutable=Be.asImmutable,mt.wasAltered=Be.wasAltered,yt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&_;if(r>=this.array.length)return new yt([],e);var o,i=0===r;if(0<t){var a=this.array[r];if((o=a&&a.removeBefore(e,t-b,n))===a&&i)return this}if(i&&!o)return this;var s=xt(this,e);if(!i)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},yt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&_;if(o>=this.array.length)return this;if(0<t){var i=this.array[o];if((r=i&&i.removeAfter(e,t-b,n))===i&&o===this.array.length-1)return this}var a=xt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var gt,bt,_t={};function wt(e,l){var u=e._origin,c=e._capacity,i=Pt(c),a=e._tail;return f(e._root,e._level,0);function f(e,t,n){return 0===t?function(e,t){var n=t===i?a&&a.array:e&&e.array,r=u<t?0:u-t,o=c-t;g<o&&(o=g);return function(){if(r===o)return _t;var e=l?--o:r++;return n&&n[e]}}(e,n):function(e,n,r){var o,i=e&&e.array,a=u<r?0:u-r>>n,s=1+(c-r>>n);g<s&&(s=g);return function(){for(;;){if(o){var e=o();if(e!==_t)return e;o=null}if(a===s)return _t;var t=l?--s:a++;o=f(i&&i[t],n-b,r+(t<<n))}}}(e,t,n)}}function Ct(e,t,n,r,o,i,a){var s=Object.create(mt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function St(){return gt||(gt=Ct(0,0,b))}function Ot(e,t,n,r,o,i){var a,s=r>>>n&_,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(0<n){var u=e&&e.array[s],c=Ot(u,t,n-b,r,o,i);return c===u?e:((a=xt(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(S(i),a=xt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function xt(e,t){return t&&e&&t===e.ownerID?e:new yt(e?e.array.slice():[],t)}function kt(e,t){if(t>=Pt(e._capacity))return e._tail;if(t<1<<e._level+b){for(var n=e._root,r=e._level;n&&0<r;)n=n.array[t>>>r&_],r-=b;return n}}function Et(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new O,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(s<=a)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new yt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=b);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Pt(i),d=Pt(s);1<<l+b<=d;)u=new yt(u&&u.array.length?[u]:[],r),l+=b;var p=e._tail,h=d<f?kt(e,s-1):f<d?new yt([],r):p;if(p&&f<d&&a<i&&p.array.length){for(var v=u=xt(u,r),m=l;b<m;m-=b){var y=f>>>m&_;v=v.array[y]=xt(v.array[y],r)}v.array[f>>>b&_]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),d<=a)a-=d,s-=d,l=b,u=null,h=h&&h.removeBefore(r,0,a);else if(o<a||d<f){for(c=0;u;){var g=a>>>l&_;if(g!==d>>>l&_)break;g&&(c+=(1<<l)*g),l-=b,u=u.array[g]}u&&o<a&&(u=u.removeBefore(r,l,a-c)),u&&d<f&&(u=u.removeAfter(r,l,d-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Ct(a,s,l,u,h)}function Tt(e,t,n){for(var r=[],o=0,i=0;i<n.length;i++){var a=n[i],s=u(a);s.size>o&&(o=s.size),c(a)||(s=s.map(function(e){return de(e)})),r.push(s)}return o>e.size&&(e=e.setSize(o)),st(e,t,r)}function Pt(e){return e<g?0:e-1>>>b<<b}function Mt(t){return null==t?jt():Nt(t)?t:jt().withMutations(function(n){var e=s(t);Fe(e.size),e.forEach(function(e,t){return n.set(t,e)})})}function Nt(e){return Ve(e)&&h(e)}function Dt(e,t,n,r){var o=Object.create(Mt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function jt(){return bt||(bt=Dt(Qe(),St()))}function Rt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===w){if(!l)return e;a.size>=g&&a.size>=2*i.size?(r=(o=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Dt(r,o)}function It(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function Ft(e){this._iter=e,this.size=e.size}function Kt(o){var e=en(o);return e._iter=o,e.size=o.size,e.flip=function(){return o},e.reverse=function(){var e=o.reverse.apply(this);return e.flip=function(){return o.reverse()},e},e.has=function(e){return o.includes(e)},e.includes=function(e){return o.has(e)},e.cacheResult=tn,e.__iterateUncached=function(n,e){var r=this;return o.__iterate(function(e,t){return!1!==n(t,e,r)},e)},e.__iteratorUncached=function(e,t){if(e!==I)return o.__iterator(e===R?j:R,t);var n=o.__iterator(e,t);return new K(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})},e}function Vt(i,a,s){var e=en(i);return e.size=i.size,e.has=function(e){return i.has(e)},e.get=function(e,t){var n=i.get(e,w);return n===w?t:a.call(s,n,e,i)},e.__iterateUncached=function(r,e){var o=this;return i.__iterate(function(e,t,n){return!1!==r(a.call(s,e,t,n),t,o)},e)},e.__iteratorUncached=function(r,e){var o=i.__iterator(I,e);return new K(function(){var e=o.next();if(e.done)return e;var t=e.value,n=t[0];return V(r,n,a.call(s,t[1],n,i),e)})},e}function Ht(o,n){var e=en(o);return e._iter=o,e.size=o.size,e.reverse=function(){return o},o.flip&&(e.flip=function(){var e=Kt(o);return e.reverse=function(){return o.flip()},e}),e.get=function(e,t){return o.get(n?e:-1-e,t)},e.has=function(e){return o.has(n?e:-1-e)},e.includes=function(e){return o.includes(e)},e.cacheResult=tn,e.__iterate=function(n,e){var r=this;return o.__iterate(function(e,t){return n(e,t,r)},!e)},e.__iterator=function(e,t){return o.__iterator(e,!t)},e}function zt(s,l,u,c){var e=en(s);return c&&(e.has=function(e){var t=s.get(e,w);return t!==w&&!!l.call(u,t,e,s)},e.get=function(e,t){var n=s.get(e,w);return n!==w&&l.call(u,n,e,s)?n:t}),e.__iterateUncached=function(r,e){var o=this,i=0;return s.__iterate(function(e,t,n){if(l.call(u,e,t,n))return i++,r(e,c?t:i-1,o)},e),i},e.__iteratorUncached=function(o,e){var i=s.__iterator(I,e),a=0;return new K(function(){for(;;){var e=i.next();if(e.done)return e;var t=e.value,n=t[0],r=t[1];if(l.call(u,r,n,s))return V(o,c?n:a++,r,e)}})},e}function Bt(s,e,t,l){var n=s.size;if(void 0!==e&&(e|=0),void 0!==t&&(t|=0),P(e,t,n))return s;var u=M(e,n),r=N(t,n);if(u!=u||r!=r)return Bt(s.toSeq().cacheResult(),e,t,l);var c,o=r-u;o==o&&(c=o<0?0:o);var i=en(s);return i.size=0===c?c:s.size&&c||void 0,!l&&ie(s)&&0<=c&&(i.get=function(e,t){return 0<=(e=E(this,e))&&e<c?s.get(e+u,t):t}),i.__iterateUncached=function(n,e){var r=this;if(0===c)return 0;if(e)return this.cacheResult().__iterate(n,e);var o=0,i=!0,a=0;return s.__iterate(function(e,t){if(!i||!(i=o++<u))return a++,!1!==n(e,l?t:a-1,r)&&a!==c}),a},i.__iteratorUncached=function(t,e){if(0!==c&&e)return this.cacheResult().__iterator(t,e);var n=0!==c&&s.__iterator(t,e),r=0,o=0;return new K(function(){for(;r++<u;)n.next();if(++o>c)return{value:void 0,done:!0};var e=n.next();return l||t===R?e:V(t,o-1,t===j?void 0:e.value[1],e)})},i}function Wt(t,u,c,f){var e=en(t);return e.__iterateUncached=function(r,e){var o=this;if(e)return this.cacheResult().__iterate(r,e);var i=!0,a=0;return t.__iterate(function(e,t,n){if(!i||!(i=u.call(c,e,t,n)))return a++,r(e,f?t:a-1,o)}),a},e.__iteratorUncached=function(o,e){var i=this;if(e)return this.cacheResult().__iterator(o,e);var a=t.__iterator(I,e),s=!0,l=0;return new K(function(){var e,t,n;do{if((e=a.next()).done)return f||o===R?e:V(o,l++,o===j?void 0:e.value[1],e);var r=e.value;t=r[0],n=r[1],s&&(s=u.call(c,n,t,i))}while(s);return o===I?e:V(o,t,n,e)})},e}function Ut(e,l,u){var t=en(e);return t.__iterateUncached=function(i,t){var a=0,s=!1;return function n(e,r){var o=this;e.__iterate(function(e,t){return(!l||r<l)&&c(e)?n(e,r+1):!1===i(e,u?t:a++,o)&&(s=!0),!s},t)}(e,0),a},t.__iteratorUncached=function(n,r){var o=e.__iterator(n,r),i=[],a=0;return new K(function(){for(;o;){var e=o.next();if(!1===e.done){var t=e.value;if(n===I&&(t=t[1]),l&&!(i.length<l)||!c(t))return u?e:V(n,a++,t,e);i.push(o),o=t.__iterator(n,r)}else o=i.pop()}return{value:void 0,done:!0}})},t}function Yt(n,r,o){r||(r=nn);var e=f(n),i=0,a=n.toSeq().map(function(e,t){return[t,e,i++,o?o(e,t,n):e]}).toArray();return a.sort(function(e,t){return r(e[3],t[3])||e[2]-t[2]}).forEach(e?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),e?G(a):d(n)?X(a):$(a)}function qt(n,r,o){if(r||(r=nn),o){var e=n.toSeq().map(function(e,t){return[e,o(e,t,n)]}).reduce(function(e,t){return Gt(r,e[1],t[1])?t:e});return e&&e[0]}return n.reduce(function(e,t){return Gt(r,e,t)?t:e})}function Gt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||0<r}function Xt(e,a,s){var t=en(e);return t.size=new te(s).map(function(e){return e.size}).min(),t.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},t.__iteratorUncached=function(t,n){var r=s.map(function(e){return e=l(e),W(n?e.reverse():e)}),o=0,i=!1;return new K(function(){var e;return i||(e=r.map(function(e){return e.next()}),i=e.some(function(e){return e.done})),i?{value:void 0,done:!0}:V(t,o++,a.apply(null,e.map(function(e){return e.value})))})},t}function $t(e,t){return ie(e)?t:e.constructor(t)}function Zt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Jt(e){return Fe(e.size),k(e)}function Qt(e){return f(e)?s:d(e)?u:o}function en(e){return Object.create((f(e)?G:d(e)?X:$).prototype)}function tn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function nn(e,t){return t<e?1:e<t?-1:0}function rn(e){var t=W(e);if(!t){if(!Y(e))throw new TypeError("Expected iterable or array-like: "+e);t=W(l(e))}return t}function on(n,r){var o,i=function(e){if(e instanceof i)return e;if(!(this instanceof i))return new i(e);if(!o){o=!0;var t=Object.keys(n);!function(e,t){try{t.forEach(function(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ge(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}.bind(void 0,e))}catch(e){}}(a,t),a.size=t.length,a._name=r,a._keys=t,a._defaultValues=n}this._map=Ke(e)},a=i.prototype=Object.create(an);return a.constructor=i}e(Mt,Ke),Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Mt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):jt()},Mt.prototype.set=function(e,t){return Rt(this,e,t)},Mt.prototype.remove=function(e){return Rt(this,e,w)},Mt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Mt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Mt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Mt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Dt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Mt.isOrderedMap=Nt,Mt.prototype[a]=!0,Mt.prototype[v]=Mt.prototype.remove,e(It,G),It.prototype.get=function(e,t){return this._iter.get(e,t)},It.prototype.has=function(e){return this._iter.has(e)},It.prototype.valueSeq=function(){return this._iter.valueSeq()},It.prototype.reverse=function(){var e=this,t=Ht(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},It.prototype.map=function(e,t){var n=this,r=Vt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},It.prototype.__iterate=function(n,t){var r,o=this;return this._iter.__iterate(this._useKeys?function(e,t){return n(e,t,o)}:(r=t?Jt(this):0,function(e){return n(e,t?--r:r++,o)}),t)},It.prototype.__iterator=function(t,n){if(this._useKeys)return this._iter.__iterator(t,n);var r=this._iter.__iterator(R,n),o=n?Jt(this):0;return new K(function(){var e=r.next();return e.done?e:V(t,n?--o:o++,e.value,e)})},It.prototype[a]=!0,e(At,X),At.prototype.includes=function(e){return this._iter.includes(e)},At.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},At.prototype.__iterator=function(t,e){var n=this._iter.__iterator(R,e),r=0;return new K(function(){var e=n.next();return e.done?e:V(t,r++,e.value,e)})},e(Lt,$),Lt.prototype.has=function(e){return this._iter.includes(e)},Lt.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Lt.prototype.__iterator=function(t,e){var n=this._iter.__iterator(R,e);return new K(function(){var e=n.next();return e.done?e:V(t,e.value,e.value,e)})},e(Ft,G),Ft.prototype.entrySeq=function(){return this._iter.toSeq()},Ft.prototype.__iterate=function(n,e){var r=this;return this._iter.__iterate(function(e){if(e){Zt(e);var t=c(e);return n(t?e.get(1):e[1],t?e.get(0):e[0],r)}},e)},Ft.prototype.__iterator=function(r,e){var o=this._iter.__iterator(R,e);return new K(function(){for(;;){var e=o.next();if(e.done)return e;var t=e.value;if(t){Zt(t);var n=c(t);return V(r,n?t.get(0):t[0],n?t.get(1):t[1],e)}}})},At.prototype.cacheResult=It.prototype.cacheResult=Lt.prototype.cacheResult=Ft.prototype.cacheResult=tn,e(on,we),on.prototype.toString=function(){return this.__toString(ln(this)+" {","}")},on.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},on.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},on.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=sn(this,Qe()))},on.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+ln(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:sn(this,n)},on.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:sn(this,t)},on.prototype.wasAltered=function(){return this._map.wasAltered()},on.prototype.__iterator=function(e,t){var n=this;return s(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},on.prototype.__iterate=function(e,t){var n=this;return s(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},on.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?sn(this,t,e):(this.__ownerID=e,this._map=t,this)};var an=on.prototype;function sn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function ln(e){return e._name||e.constructor.name||"Record"}function un(n){return null==n?mn():cn(n)&&!h(n)?n:mn().withMutations(function(t){var e=o(n);Fe(e.size),e.forEach(function(e){return t.add(e)})})}function cn(e){return!(!e||!e[dn])}an[v]=an.remove,an.deleteIn=an.removeIn=Be.removeIn,an.merge=Be.merge,an.mergeWith=Be.mergeWith,an.mergeIn=Be.mergeIn,an.mergeDeep=Be.mergeDeep,an.mergeDeepWith=Be.mergeDeepWith,an.mergeDeepIn=Be.mergeDeepIn,an.setIn=Be.setIn,an.update=Be.update,an.updateIn=Be.updateIn,an.withMutations=Be.withMutations,an.asMutable=Be.asMutable,an.asImmutable=Be.asImmutable,e(un,Se),un.of=function(){return this(arguments)},un.fromKeys=function(e){return this(s(e).keySeq())},un.prototype.toString=function(){return this.__toString("Set {","}")},un.prototype.has=function(e){return this._map.has(e)},un.prototype.add=function(e){return hn(this,this._map.set(e,!0))},un.prototype.remove=function(e){return hn(this,this._map.remove(e))},un.prototype.clear=function(){return hn(this,this._map.clear())},un.prototype.union=function(){var n=r.call(arguments,0);return 0===(n=n.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(t){for(var e=0;e<n.length;e++)o(n[e]).forEach(function(e){return t.add(e)})}):this.constructor(n[0])},un.prototype.intersect=function(){var n=r.call(arguments,0);if(0===n.length)return this;n=n.map(function(e){return o(e)});var t=this;return this.withMutations(function(e){t.forEach(function(t){n.every(function(e){return e.includes(t)})||e.remove(t)})})},un.prototype.subtract=function(){var n=r.call(arguments,0);if(0===n.length)return this;n=n.map(function(e){return o(e)});var t=this;return this.withMutations(function(e){t.forEach(function(t){n.some(function(e){return e.includes(t)})&&e.remove(t)})})},un.prototype.merge=function(){return this.union.apply(this,arguments)},un.prototype.mergeWith=function(e){var t=r.call(arguments,1);return this.union.apply(this,t)},un.prototype.sort=function(e){return yn(Yt(this,e))},un.prototype.sortBy=function(e,t){return yn(Yt(this,t,e))},un.prototype.wasAltered=function(){return this._map.wasAltered()},un.prototype.__iterate=function(n,e){var r=this;return this._map.__iterate(function(e,t){return n(t,t,r)},e)},un.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},un.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},un.isSet=cn;var fn,dn="@@__IMMUTABLE_SET__@@",pn=un.prototype;function hn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function vn(e,t){var n=Object.create(pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function mn(){return fn||(fn=vn(Qe()))}function yn(n){return null==n?Cn():gn(n)?n:Cn().withMutations(function(t){var e=o(n);Fe(e.size),e.forEach(function(e){return t.add(e)})})}function gn(e){return cn(e)&&h(e)}pn[dn]=!0,pn[v]=pn.remove,pn.mergeDeep=pn.merge,pn.mergeDeepWith=pn.mergeWith,pn.withMutations=Be.withMutations,pn.asMutable=Be.asMutable,pn.asImmutable=Be.asImmutable,pn.__empty=mn,pn.__make=vn,e(yn,un),yn.of=function(){return this(arguments)},yn.fromKeys=function(e){return this(s(e).keySeq())},yn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},yn.isOrderedSet=gn;var bn,_n=yn.prototype;function wn(e,t){var n=Object.create(_n);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Cn(){return bn||(bn=wn(jt()))}function Sn(e){return null==e?Pn():On(e)?e:Pn().unshiftAll(e)}function On(e){return!(!e||!e[kn])}_n[a]=!0,_n.__empty=Cn,_n.__make=wn,e(Sn,Ce),Sn.of=function(){return this(arguments)},Sn.prototype.toString=function(){return this.__toString("Stack [","]")},Sn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Sn.prototype.peek=function(){return this._head&&this._head.value},Sn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;0<=n;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tn(e,t)},Sn.prototype.pushAll=function(e){if(0===(e=u(e)).size)return this;Fe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tn(t,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(e){return this.pushAll(e)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.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):Pn()},Sn.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var n=M(e,this.size);if(N(t,this.size)!==this.size)return Ce.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tn(r,o)},Sn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Sn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new K(function(){if(r){var e=r.value;return r=r.next,V(t,n++,e)}return{value:void 0,done:!0}})},Sn.isStack=On;var xn,kn="@@__IMMUTABLE_STACK__@@",En=Sn.prototype;function Tn(e,t,n,r){var o=Object.create(En);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Pn(){return xn||(xn=Tn(0))}function Mn(t,n){var e=function(e){t.prototype[e]=n[e]};return Object.keys(n).forEach(e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(e),t}En[kn]=!0,En.withMutations=Be.withMutations,En.asMutable=Be.asMutable,En.asImmutable=Be.asImmutable,En.wasAltered=Be.wasAltered,l.Iterator=K,Mn(l,{toArray:function(){Fe(this.size);var n=new Array(this.size||0);return this.valueSeq().__iterate(function(e,t){n[t]=e}),n},toIndexedSeq:function(){return new At(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typ