@dgit/react-data-grid-addons
Version:
A set of addons for react-data-grid
2 lines • 573 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){e.exports=n(202)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(t,n){t.exports=e},function(e,t,n){e.exports=n(78)()},function(e,t,n){e.exports=n(473)},,,function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var u=t[o];"number"==typeof u[0]&&r[u[0]]||(n&&!u[2]?u[2]=n:n&&(u[2]="("+u[2]+") and ("+n+")"),e.push(u))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],t))}else{for(var u=[],i=0;i<r.parts.length;i++)u.push(l(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:u}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],u=o[1],a=o[2],s=o[3],l={css:u,media:a,sourceMap:s};n[i]?n[i].parts.push(l):t.push(n[i]={id:i,parts:[l]})}return t}function i(e,t){var n=g(),r=b[b.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function u(e){e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=m++;n=y||(y=a(t)),r=c.bind(null,n,i,!1),o=c.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=p.bind(null,n),o=function(){u(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=f.bind(null,n),o=function(){u(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),u=e.childNodes;u[t]&&e.removeChild(u[t]),u.length?e.insertBefore(i,u[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},v=h(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,m=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=v()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],u=0;u<n.length;u++){var a=n[u],s=d[a.id];s.refs--,i.push(s)}if(e){var l=o(e);r(l,t)}for(var u=0;u<i.length;u++){var s=i[u];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete d[s.id]}}}};var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,u,a){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,u,a],c=0;s=new Error(t.replace(/%s/g,function(){return l[c++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},,,,[1615,161],function(e,t){var n=Array.isArray;e.exports=n},,function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:R(e)}function n(e){return u(e)?e:k(e)}function r(e){return a(e)?e:M(e)}function o(e){return i(e)&&!s(e)?e:A(e)}function i(e){return!(!e||!e[ln])}function u(e){return!(!e||!e[cn])}function a(e){return!(!e||!e[fn])}function s(e){return u(e)||a(e)}function l(e){return!(!e||!e[pn])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function d(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 h(e){return void 0===e.size&&(e.size=e.__iterate(g)),e.size}function v(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?h(e)+t:t}function g(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function m(e,t){return w(e,t,0)}function b(e,t){return w(e,t,t)}function w(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function _(e){this.next=e}function C(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 x(){return{value:void 0,done:!0}}function S(e){return!!I(e)}function E(e){return e&&"function"==typeof e.next}function O(e){var t=I(e);return t&&t.call(e)}function I(e){var t=e&&(xn&&e[xn]||e[Sn]);if("function"==typeof t)return t}function D(e){return e&&"number"==typeof e.length}function R(e){return null===e||void 0===e?F():i(e)?e.toSeq():V(e)}function k(e){return null===e||void 0===e?F().toKeyedSeq():i(e)?u(e)?e.toSeq():e.fromEntrySeq():L(e)}function M(e){return null===e||void 0===e?F():i(e)?u(e)?e.entrySeq():e.toIndexedSeq():q(e)}function A(e){return(null===e||void 0===e?F():i(e)?u(e)?e.entrySeq():e:q(e)).toSetSeq()}function T(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function P(e){this._iterable=e,this.size=e.length||e.size}function N(e){this._iterator=e,this._iteratorCache=[]}function z(e){return!(!e||!e[On])}function F(){return In||(In=new T([]))}function L(e){var t=Array.isArray(e)?new T(e).fromEntrySeq():E(e)?new N(e).fromEntrySeq():S(e)?new P(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function q(e){var t=H(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function V(e){var t=H(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function H(e){return D(e)?new T(e):E(e)?new N(e):S(e)?new P(e):void 0}function B(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,u=0;u<=i;u++){var a=o[n?i-u:u];if(t(a[1],r?a[0]:u,e)===!1)return u+1}return u}return e.__iterateUncached(t,n)}function K(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,u=0;return new _(function(){var e=o[n?i-u:u];return u++>i?x():C(t,r?e[0]:u-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?W(t,e,"",{"":e}):G(e)}function W(e,t,n,r){return Array.isArray(t)?e.call(r,n,M(t).map(function(n,r){return W(e,n,r,t)})):Y(t)?e.call(r,n,k(t).map(function(n,r){return W(e,n,r,t)})):t}function G(e){return Array.isArray(e)?M(e).map(G).toList():Y(e)?k(e).map(G).toMap():e}function Y(e){return e&&(e.constructor===Object||void 0===e.constructor)}function J(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===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function X(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||u(e)!==u(t)||a(e)!==a(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!s(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&J(o[1],e)&&(n||J(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):o?!J(t,e.get(r,yn)):!J(e.get(r,yn),t))return f=!1,!1});return f&&e.size===p}function Z(e,t){if(!(this instanceof Z))return new Z(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Dn)return Dn;Dn=this}}function Q(e,t){if(!e)throw new Error(t)}function $(e,t,n){if(!(this instanceof $))return new $(e,t,n);if(Q(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(Rn)return Rn;Rn=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function oe(e){return e>>>1&1073741824|3221225471&e}function ie(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return oe(n)}if("string"===t)return e.length>zn?ue(e):ae(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return se(e);if("function"==typeof e.toString)return ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ue(e){var t=qn[e];return void 0===t&&(t=ae(e),Ln===Fn&&(Ln=0,qn={}),Ln++,qn[e]=t),t}function ae(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return oe(t)}function se(e){var t;if(jn&&(t=kn.get(e),void 0!==t))return t;if(t=e[Nn],void 0!==t)return t;if(!Tn){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Nn],void 0!==t)return t;if(t=le(e),void 0!==t)return t}if(t=++Pn,1073741824&Pn&&(Pn=0),jn)kn.set(e,t);else{if(void 0!==An&&An(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Tn)Object.defineProperty(e,Nn,{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[Nn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Nn]=t}}return t}function le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?Ce():pe(e)&&!l(e)?e:Ce().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function pe(e){return!(!e||!e[Vn])}function de(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function me(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&we(e._root)}function be(e,t){return C(e,t[0],t[1])}function we(e,t){return{node:e,index:0,__prev:t}}function _e(e,t,n,r){var o=Object.create(Hn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ce(){return Bn||(Bn=_e(0))}function xe(e,t,n){var r,o;if(e._root){var i=c(mn),u=c(bn);if(r=Se(e._root,e.__ownerID,0,void 0,t,n,i,u),!u.value)return e;o=e.size+(i.value?n===yn?-1:1:0)}else{if(n===yn)return e;o=1,r=new de(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?_e(o,r):Ce()}function Se(e,t,n,r,o,i,u,a){return e?e.update(t,n,r,o,i,u,a):i===yn?e:(f(a),f(u),new ye(t,r,[o,i]))}function Ee(e){return e.constructor===ye||e.constructor===ge}function Oe(e,t,n,r,o){if(e.keyHash===r)return new ge(t,r,[e.entry,o]);var i,u=(0===n?e.keyHash:e.keyHash>>>n)&gn,a=(0===n?r:r>>>n)&gn,s=u===a?[Oe(e,t,n+hn,r,o)]:(i=new ye(t,r,o),u<a?[e,i]:[i,e]);return new he(t,1<<u|1<<a,s)}function Ie(e,t,n,r){e||(e=new p);for(var o=new ye(e,ie(n),[n,r]),i=0;i<t.length;i++){var u=t[i];o=o.update(e,0,void 0,u[0],u[1])}return o}function De(e,t,n,r){for(var o=0,i=0,u=new Array(n),a=0,s=1,l=t.length;a<l;a++,s<<=1){var c=t[a];void 0!==c&&a!==r&&(o|=s,u[i++]=c)}return new he(e,o,u)}function Re(e,t,n,r,o){for(var i=0,u=new Array(vn),a=0;0!==n;a++,n>>>=1)u[a]=1&n?t[i++]:void 0;return u[r]=o,new ve(e,i+1,u)}function ke(e,t,r){for(var o=[],u=0;u<r.length;u++){var a=r[u],s=n(a);i(a)||(s=s.map(function(e){return U(e)})),o.push(s)}return Te(e,t,o)}function Me(e,t,n){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):J(e,t)?e:t}function Ae(e){return function(t,n,r){if(t&&t.mergeDeepWith&&i(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return J(t,o)?t:o}}function Te(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,yn,function(e){return e===yn?n:t(e,n,r)})}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)}):e.constructor(n[0])}function je(e,t,n,r){var o=e===yn,i=t.next();if(i.done){var u=o?n:e,a=r(u);return a===u?e:a}Q(o||e&&e.set,"invalid keyPath");var s=i.value,l=o?yn:e.get(s,yn),c=je(l,t,n,r);return c===l?e:c===yn?e.remove(s):(o?Ce():e).set(s,c)}function Pe(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Ne(e,t,n,r){var o=r?e:d(e);return o[t]=n,o}function ze(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),u=0,a=0;a<o;a++)a===t?(i[a]=n,u=-1):i[a]=e[a+u];return i}function Fe(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,u=0;u<r;u++)u===t&&(i=1),o[u]=e[u+i];return o}function Le(e){var t=Ke();if(null===e||void 0===e)return t;if(qe(e))return e;var n=r(e),o=n.size;return 0===o?t:(ce(o),o>0&&o<vn?Be(0,o,hn,null,new Ve(n.toArray())):t.withMutations(function(e){e.setSize(o),n.forEach(function(t,n){return e.set(n,t)})}))}function qe(e){return!(!e||!e[Gn])}function Ve(e,t){this.array=e,this.ownerID=t}function He(e,t){function n(e,t,n){return 0===t?r(e,n):o(e,t,n)}function r(e,n){var r=n===a?s&&s.array:e&&e.array,o=n>i?0:i-n,l=u-n;return l>vn&&(l=vn),function(){if(o===l)return Xn;var e=t?--l:o++;return r&&r[e]}}function o(e,r,o){var a,s=e&&e.array,l=o>i?0:i-o>>r,c=(u-o>>r)+1;return c>vn&&(c=vn),function(){for(;;){if(a){var e=a();if(e!==Xn)return e;a=null}if(l===c)return Xn;var i=t?--c:l++;a=n(s&&s[i],r-hn,o+(i<<r))}}}var i=e._origin,u=e._capacity,a=Ze(u),s=e._tail;return n(e._root,e._level,0)}function Be(e,t,n,r,o,i,u){var a=Object.create(Yn);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=o,a.__ownerID=i,a.__hash=u,a.__altered=!1,a}function Ke(){return Jn||(Jn=Be(0,0,hn))}function Ue(e,t,n){if(t=v(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Je(e,t).set(0,n):Je(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(bn);return t>=Ze(e._capacity)?r=We(r,e.__ownerID,0,t,n,i):o=We(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Be(e._origin,e._capacity,e._level,o,r):e}function We(e,t,n,r,o,i){var u=r>>>n&gn,a=e&&u<e.array.length;if(!a&&void 0===o)return e;var s;if(n>0){var l=e&&e.array[u],c=We(l,t,n-hn,r,o,i);return c===l?e:(s=Ge(e,t),s.array[u]=c,s)}return a&&e.array[u]===o?e:(f(i),s=Ge(e,t),void 0===o&&u===s.array.length-1?s.array.pop():s.array[u]=o,s)}function Ge(e,t){return t&&e&&t===e.ownerID?e:new Ve(e?e.array.slice():[],t)}function Ye(e,t){if(t>=Ze(e._capacity))return e._tail;if(t<1<<e._level+hn){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&gn],r-=hn;return n}}function Je(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,o=e._origin,i=e._capacity,u=o+t,a=void 0===n?i:n<0?i+n:o+n;if(u===o&&a===i)return e;if(u>=a)return e.clear();for(var s=e._level,l=e._root,c=0;u+c<0;)l=new Ve(l&&l.array.length?[void 0,l]:[],r),s+=hn,c+=1<<s;c&&(u+=c,o+=c,a+=c,i+=c);for(var f=Ze(i),d=Ze(a);d>=1<<s+hn;)l=new Ve(l&&l.array.length?[l]:[],r),s+=hn;var h=e._tail,v=d<f?Ye(e,a-1):d>f?new Ve([],r):h;if(h&&d>f&&u<i&&h.array.length){l=Ge(l,r);for(var g=l,y=s;y>hn;y-=hn){var m=f>>>y&gn;g=g.array[m]=Ge(g.array[m],r)}g.array[f>>>hn&gn]=h}if(a<i&&(v=v&&v.removeAfter(r,0,a)),u>=d)u-=d,a-=d,s=hn,l=null,v=v&&v.removeBefore(r,0,u);else if(u>o||d<f){for(c=0;l;){var b=u>>>s&gn;if(b!==d>>>s&gn)break;b&&(c+=(1<<s)*b),s-=hn,l=l.array[b]}l&&u>o&&(l=l.removeBefore(r,s,u-c)),l&&d<f&&(l=l.removeAfter(r,s,d-c)),c&&(u-=c,a-=c)}return e.__ownerID?(e.size=a-u,e._origin=u,e._capacity=a,e._level=s,e._root=l,e._tail=v,e.__hash=void 0,e.__altered=!0,e):Be(u,a,s,l,v)}function Xe(e,t,n){for(var o=[],u=0,a=0;a<n.length;a++){var s=n[a],l=r(s);l.size>u&&(u=l.size),i(s)||(l=l.map(function(e){return U(e)})),o.push(l)}return u>e.size&&(e=e.setSize(u)),Te(e,t,o)}function Ze(e){return e<vn?0:e-1>>>hn<<hn}function Qe(e){return null===e||void 0===e?tt():$e(e)?e:tt().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function $e(e){return pe(e)&&l(e)}function et(e,t,n,r){var o=Object.create(Qe.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function tt(){return Zn||(Zn=et(Ce(),Ke()))}function nt(e,t,n){var r,o,i=e._map,u=e._list,a=i.get(t),s=void 0!==a;if(n===yn){if(!s)return e;u.size>=vn&&u.size>=2*i.size?(o=u.filter(function(e,t){return void 0!==e&&a!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=a===u.size-1?u.pop():u.set(a,void 0))}else if(s){if(n===u.get(a)[1])return e;r=i,o=u.set(a,[t,n])}else r=i.set(t,u.size),o=u.set(u.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):et(r,o)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ut(e){this._iter=e,this.size=e.size}function at(e){var t=Dt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Rt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===Cn){var r=e.__iterator(t,n);return new _(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===_n?wn:_n,n)},t}function st(e,t,n){var r=Dt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,yn);return i===yn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,u){return r(t.call(n,e,o,u),o,i)!==!1},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Cn,o);return new _(function(){var o=i.next();if(o.done)return o;var u=o.value,a=u[0];return C(r,a,t.call(n,u[1],a,e),o)})},r}function lt(e,t){var n=Dt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=at(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Rt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var o=Dt(e);return r&&(o.has=function(r){var o=e.get(r,yn);return o!==yn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,yn);return i!==yn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var u=this,a=0;return e.__iterate(function(e,i,s){if(t.call(n,e,i,s))return a++,o(e,r?i:a-1,u)},i),a},o.__iteratorUncached=function(o,i){var u=e.__iterator(Cn,i),a=0;return new _(function(){for(;;){var i=u.next();if(i.done)return i;var s=i.value,l=s[0],c=s[1];if(t.call(n,c,l,e))return C(o,r?l:a++,c,i)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function pt(e,t,n){var r=u(e),o=(l(e)?Qe():fe()).asMutable();e.__iterate(function(i,u){o.update(t.call(n,i,u,e),function(e){return e=e||[],e.push(r?[u,i]:i),e})});var i=It(e);return o.map(function(t){return St(e,i(t))})}function dt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),y(t,n,o))return e;var i=m(t,o),u=b(n,o);if(i!==i||u!==u)return dt(e.toSeq().cacheResult(),t,n,r);var a,s=u-i;s===s&&(a=s<0?0:s);var l=Dt(e);return l.size=0===a?a:e.size&&a||void 0,!r&&z(e)&&a>=0&&(l.get=function(t,n){return t=v(this,t),t>=0&&t<a?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var u=0,s=!0,l=0;return e.__iterate(function(e,n){if(!s||!(s=u++<i))return l++,t(e,r?n:l-1,o)!==!1&&l!==a}),l},l.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);var o=0!==a&&e.__iterator(t,n),u=0,s=0;return new _(function(){for(;u++<i;)o.next();if(++s>a)return x();var e=o.next();return r||t===_n?e:t===wn?C(t,s-1,void 0,e):C(t,s-1,e.value[1],e)})},l}function ht(e,t,n){var r=Dt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var u=0;return e.__iterate(function(e,o,a){return t.call(n,e,o,a)&&++u&&r(e,o,i)}),u},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var u=e.__iterator(Cn,o),a=!0;return new _(function(){if(!a)return x();var e=u.next();if(e.done)return e;var o=e.value,s=o[0],l=o[1];return t.call(n,l,s,i)?r===Cn?e:C(r,s,l,e):(a=!1,x())})},r}function vt(e,t,n,r){var o=Dt(e);return o.__iterateUncached=function(o,i){var u=this;if(i)return this.cacheResult().__iterate(o,i);var a=!0,s=0;return e.__iterate(function(e,i,l){if(!a||!(a=t.call(n,e,i,l)))return s++,o(e,r?i:s-1,u)}),s},o.__iteratorUncached=function(o,i){var u=this;if(i)return this.cacheResult().__iterator(o,i);var a=e.__iterator(Cn,i),s=!0,l=0;return new _(function(){var e,i,c;do{if(e=a.next(),e.done)return r||o===_n?e:o===wn?C(o,l++,void 0,e):C(o,l++,e.value[1],e);var f=e.value;i=f[0],c=f[1],s&&(s=t.call(n,c,i,u))}while(s);return o===Cn?e:C(o,i,c,e)})},o}function gt(e,t){var r=u(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?L(e):q(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var s=o[0];if(s===e||r&&u(s)||a(e)&&a(s))return s}var l=new T(o);return r?l=l.toKeyedSeq():a(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function yt(e,t,n){var r=Dt(e);return r.__iterateUncached=function(r,o){function u(e,l){var c=this;e.__iterate(function(e,o){return(!t||l<t)&&i(e)?u(e,l+1):r(e,n?o:a++,c)===!1&&(s=!0),!s},o)}var a=0,s=!1;return u(e,0),a},r.__iteratorUncached=function(r,o){var u=e.__iterator(r,o),a=[],s=0;return new _(function(){for(;u;){var e=u.next();if(e.done===!1){var l=e.value;if(r===Cn&&(l=l[1]),t&&!(a.length<t)||!i(l))return n?e:C(r,s++,l,e);a.push(u),u=l.__iterator(r,o)}else u=a.pop()}return x()})},r}function mt(e,t,n){var r=It(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}function bt(e,t){var n=Dt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate(function(e,r){return(!i||n(t,i++,o)!==!1)&&n(e,i++,o)!==!1},r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(_n,r),u=0;return new _(function(){return(!o||u%2)&&(o=i.next(),o.done)?o:u%2?C(n,u++,t):C(n,u++,o.value,o)})},n}function wt(e,t,n){t||(t=kt);var r=u(e),o=0,i=e.toSeq().map(function(t,r){return[r,t,o++,n?n(t,r,e):t]}).toArray();return i.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?k(i):a(e)?M(i):A(i)}function _t(e,t,n){if(t||(t=kt),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Ct(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Ct(t,e,n)?n:e})}function Ct(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function xt(e,n,r){var o=Dt(e);return o.size=new T(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(_n,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),u=0,a=!1;return new _(function(){var t;return a||(t=i.map(function(e){return e.next()}),a=t.some(function(e){return e.done})),a?x():C(e,u++,n.apply(null,t.map(function(e){return e.value})))})},o}function St(e,t){return z(e)?t:e.constructor(t)}function Et(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ot(e){return ce(e.size),h(e)}function It(e){return u(e)?n:a(e)?r:o}function Dt(e){return Object.create((u(e)?k:a(e)?M:A).prototype)}function Rt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):R.prototype.cacheResult.call(this)}function kt(e,t){return e>t?1:e<t?-1:0}function Mt(e){var n=O(e);if(!n){if(!D(e))throw new TypeError("Expected iterable or array-like: "+e);n=O(t(e))}return n}function At(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var u=Object.keys(e);Pt(o,u),o.size=u.length,o._name=t,o._keys=u,o._defaultValues=e}this._map=fe(i)},o=r.prototype=Object.create(Qn);return o.constructor=r,r}function Tt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function jt(e){return e._name||e.constructor.name||"Record"}function Pt(e,t){try{t.forEach(Nt.bind(void 0,e))}catch(e){}}function Nt(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function zt(e){return null===e||void 0===e?Vt():Ft(e)&&!l(e)?e:Vt().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Ft(e){return!(!e||!e[$n])}function Lt(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 qt(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vt(){return tr||(tr=qt(Ce()))}function Ht(e){return null===e||void 0===e?Ut():Bt(e)?e:Ut().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Bt(e){return Ft(e)&&l(e)}function Kt(e,t){var n=Object.create(nr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ut(){return rr||(rr=Kt(tt()))}function Wt(e){return null===e||void 0===e?Jt():Gt(e)?e:Jt().unshiftAll(e)}function Gt(e){return!(!e||!e[or])}function Yt(e,t,n,r){var o=Object.create(ir);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Jt(){return ur||(ur=Yt(0))}function Xt(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Zt(e,t){return t}function Qt(e,t){return[t,e]}function $t(e){return function(){return!e.apply(this,arguments)}}function en(e){return function(){return-e.apply(this,arguments)}}function tn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function nn(){return d(arguments)}function rn(e,t){return e<t?1:e>t?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=u(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+an(ie(e),ie(t))|0}:function(e,t){r=r+an(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0});return un(o,r)}function un(e,t){return t=Mn(t,3432918353),t=Mn(t<<15|t>>>-15,461845907),t=Mn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Mn(t^t>>>16,2246822507),t=Mn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function an(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var sn=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=u,t.isIndexed=a,t.isAssociative=s,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",dn="delete",hn=5,vn=1<<hn,gn=vn-1,yn={},mn={value:!1},bn={value:!1},wn=0,_n=1,Cn=2,xn="function"==typeof Symbol&&Symbol.iterator,Sn="@@iterator",En=xn||Sn;_.prototype.toString=function(){return"[Iterator]"},_.KEYS=wn,_.VALUES=_n,_.ENTRIES=Cn,_.prototype.inspect=_.prototype.toSource=function(){return this.toString()},_.prototype[En]=function(){return this},e(R,t),R.of=function(){return R(arguments)},R.prototype.toSeq=function(){return this},R.prototype.toString=function(){return this.__toString("Seq {","}")},R.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},R.prototype.__iterate=function(e,t){return B(this,e,t,!0)},R.prototype.__iterator=function(e,t){return K(this,e,t,!0)},e(k,R),k.prototype.toKeyedSeq=function(){return this},e(M,R),M.of=function(){return M(arguments)},M.prototype.toIndexedSeq=function(){return this},M.prototype.toString=function(){return this.__toString("Seq [","]")},M.prototype.__iterate=function(e,t){return B(this,e,t,!1)},M.prototype.__iterator=function(e,t){return K(this,e,t,!1)},e(A,R),A.of=function(){return A(arguments)},A.prototype.toSetSeq=function(){return this},R.isSeq=z,R.Keyed=k,R.Set=A,R.Indexed=M;var On="@@__IMMUTABLE_SEQ__@@";R.prototype[On]=!0,e(T,M),T.prototype.get=function(e,t){return this.has(e)?this._array[v(this,e)]:t},T.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(e(n[t?r-o:o],o,this)===!1)return o+1;return o},T.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new _(function(){return o>r?x():C(e,o,n[t?r-o++:o++])})},e(j,k),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e)},j.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var u=r[t?o-i:i];if(e(n[u],u,this)===!1)return i+1}return i},j.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new _(function(){var u=r[t?o-i:i];return i++>o?x():C(e,u,n[u])})},j.prototype[pn]=!0,e(P,M),P.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(E(r))for(var i;!(i=r.next()).done&&e(i.value,o++,this)!==!1;);return o},P.prototype.__iteratorUncached=function(e,t){
if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!E(r))return new _(x);var o=0;return new _(function(){var t=r.next();return t.done?t:C(e,o++,t.value)})},e(N,M),N.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o<r.length;)if(e(r[o],o++,this)===!1)return o;for(var i;!(i=n.next()).done;){var u=i.value;if(r[o]=u,e(u,o++,this)===!1)break}return o},N.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new _(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return C(e,o,r[o++])})};var In;e(Z,M),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(e,t){return this.has(e)?this._value:t},Z.prototype.includes=function(e){return J(this._value,e)},Z.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new Z(this._value,b(t,n)-m(e,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(e){return J(this._value,e)?0:-1},Z.prototype.lastIndexOf=function(e){return J(this._value,e)?this.size:-1},Z.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(e(this._value,n,this)===!1)return n+1;return n},Z.prototype.__iterator=function(e,t){var n=this,r=0;return new _(function(){return r<n.size?C(e,r++,n._value):x()})},Z.prototype.equals=function(e){return e instanceof Z?J(this._value,e._value):X(e)};var Dn;e($,M),$.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},$.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},$.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},$.prototype.slice=function(e,t){return y(e,t,this.size)?this:(e=m(e,this.size),t=b(t,this.size),t<=e?new $(0,0):new $(this.get(e,this._end),this.get(t,this._end),this._step))},$.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},$.prototype.lastIndexOf=function(e){return this.indexOf(e)},$.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(e(o,i,this)===!1)return i+1;o+=t?-r:r}return i},$.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new _(function(){var u=o;return o+=t?-r:r,i>n?x():C(e,i++,u)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:X(this,e)};var Rn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var kn,Mn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},An=Object.isExtensible,Tn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),jn="function"==typeof WeakMap;jn&&(kn=new WeakMap);var Pn=0,Nn="__immutablehash__";"function"==typeof Symbol&&(Nn=Symbol(Nn));var zn=16,Fn=255,Ln=0,qn={};e(fe,te),fe.of=function(){var e=sn.call(arguments,0);return Ce().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return xe(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,yn,function(){return t})},fe.prototype.remove=function(e){return xe(this,e,yn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return yn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=je(this,Mt(e),t,n);return r===yn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ce()},fe.prototype.merge=function(){return ke(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var t=sn.call(arguments,1);return ke(this,e,t)},fe.prototype.mergeIn=function(e){var t=sn.call(arguments,1);return this.updateIn(e,Ce(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return ke(this,Me,arguments)},fe.prototype.mergeDeepWith=function(e){var t=sn.call(arguments,1);return ke(this,Ae(e),t)},fe.prototype.mergeDeepIn=function(e){var t=sn.call(arguments,1);return this.updateIn(e,Ce(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Qe(wt(this,e))},fe.prototype.sortBy=function(e,t){return Qe(wt(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new me(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=pe;var Vn="@@__IMMUTABLE_MAP__@@",Hn=fe.prototype;Hn[Vn]=!0,Hn[dn]=Hn.remove,Hn.removeIn=Hn.deleteIn,de.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,u=o.length;i<u;i++)if(J(n,o[i][0]))return o[i][1];return r},de.prototype.update=function(e,t,n,r,o,i,u){for(var a=o===yn,s=this.entries,l=0,c=s.length;l<c&&!J(r,s[l][0]);l++);var p=l<c;if(p?s[l][1]===o:a)return this;if(f(u),(a||!p)&&f(i),!a||1!==s.length){if(!p&&!a&&s.length>=Kn)return Ie(e,s,r,o);var h=e&&e===this.ownerID,v=h?s:d(s);return p?a?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new de(e,v)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=1<<((0===e?t:t>>>e)&gn),i=this.bitmap;return 0===(i&o)?r:this.nodes[Pe(i&o-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,o,i,u){void 0===n&&(n=ie(r));var a=(0===t?n:n>>>t)&gn,s=1<<a,l=this.bitmap,c=0!==(l&s);if(!c&&o===yn)return this;var f=Pe(l&s-1),p=this.nodes,d=c?p[f]:void 0,h=Se(d,e,t+hn,n,r,o,i,u);if(h===d)return this;if(!c&&h&&p.length>=Un)return Re(e,p,l,a,h);if(c&&!h&&2===p.length&&Ee(p[1^f]))return p[1^f];if(c&&h&&1===p.length&&Ee(h))return h;var v=e&&e===this.ownerID,g=c?h?l:l^s:l|s,y=c?h?Ne(p,f,h,v):Fe(p,f,v):ze(p,f,h,v);return v?(this.bitmap=g,this.nodes=y,this):new he(e,g,y)},ve.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=(0===e?t:t>>>e)&gn,i=this.nodes[o];return i?i.get(e+hn,t,n,r):r},ve.prototype.update=function(e,t,n,r,o,i,u){void 0===n&&(n=ie(r));var a=(0===t?n:n>>>t)&gn,s=o===yn,l=this.nodes,c=l[a];if(s&&!c)return this;var f=Se(c,e,t+hn,n,r,o,i,u);if(f===c)return this;var p=this.count;if(c){if(!f&&(p--,p<Wn))return De(e,l,p,a)}else p++;var d=e&&e===this.ownerID,h=Ne(l,a,f,d);return d?(this.count=p,this.nodes=h,this):new ve(e,p,h)},ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,u=o.length;i<u;i++)if(J(n,o[i][0]))return o[i][1];return r},ge.prototype.update=function(e,t,n,r,o,i,u){void 0===n&&(n=ie(r));var a=o===yn;if(n!==this.keyHash)return a?this:(f(u),f(i),Oe(this,e,t,n,[r,o]));for(var s=this.entries,l=0,c=s.length;l<c&&!J(r,s[l][0]);l++);var p=l<c;if(p?s[l][1]===o:a)return this;if(f(u),(a||!p)&&f(i),a&&2===c)return new ye(e,this.keyHash,s[1^l]);var h=e&&e===this.ownerID,v=h?s:d(s);return p?a?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new ge(e,this.keyHash,v)},ye.prototype.get=function(e,t,n,r){return J(n,this.entry[0])?this.entry[1]:r},ye.prototype.update=function(e,t,n,r,o,i,u){var a=o===yn,s=J(r,this.entry[0]);return(s?o===this.entry[1]:a)?this:(f(u),a?void f(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new ye(e,this.keyHash,[r,o]):(f(i),Oe(this,e,t,ie(r),[r,o])))},de.prototype.iterate=ge.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(e(n[t?o-r:r])===!1)return!1},he.prototype.iterate=ve.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&&i.iterate(e,t)===!1)return!1}},ye.prototype.iterate=function(e,t){return e(this.entry)},e(me,_),me.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 be(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,o<=n)return be(e,r.entries[this._reverse?n-o:o])}else if(n=r.nodes.length-1,o<=n){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return be(e,i.entry);t=this._stack=we(i,t)}continue}t=this._stack=this._stack.__prev}return x()};var Bn,Kn=vn/4,Un=vn/2,Wn=vn/4;e(Le,ne),Le.of=function(){return this(arguments)},Le.prototype.toString=function(){return this.__toString("List [","]")},Le.prototype.get=function(e,t){if(e=v(this,e),e>=0&&e<this.size){e+=this._origin;var n=Ye(this,e);return n&&n.array[e&gn]}return t},Le.prototype.set=function(e,t){return Ue(this,e,t)},Le.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Le.prototype.insert=function(e,t){return this.splice(e,0,t)},Le.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=hn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ke()},Le.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Je(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Le.prototype.pop=function(){return Je(this,0,-1)},Le.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Je(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Le.prototype.shift=function(){return Je(this,1)},Le.prototype.merge=function(){return Xe(this,void 0,arguments)},Le.prototype.mergeWith=function(e){var t=sn.call(arguments,1);return Xe(this,e,t)},Le.prototype.mergeDeep=function(){return Xe(this,Me,arguments)},Le.prototype.mergeDeepWith=function(e){var t=sn.call(arguments,1);return Xe(this,Ae(e),t)},Le.prototype.setSize=function(e){return Je(this,0,e)},Le.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:Je(this,m(e,n),b(t,n))},Le.prototype.__iterator=function(e,t){var n=0,r=He(this,t);return new _(function(){var t=r();return t===Xn?x():C(e,n++,t)})},Le.prototype.__iterate=function(e,t){for(var n,r=0,o=He(this,t);(n=o())!==Xn&&e(n,r++,this)!==!1;);return r},Le.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Be(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Le.isList=qe;var Gn="@@__IMMUTABLE_LIST__@@",Yn=Le.prototype;Yn[Gn]=!0,Yn[dn]=Yn.remove,Yn.setIn=Hn.setIn,Yn.deleteIn=Yn.removeIn=Hn.removeIn,Yn.update=Hn.update,Yn.updateIn=Hn.updateIn,Yn.mergeIn=Hn.mergeIn,Yn.mergeDeepIn=Hn.mergeDeepIn,Yn.withMutations=Hn.withMutations,Yn.asMutable=Hn.asMutable,Yn.asImmutable=Hn.asImmutable,Yn.wasAltered=Hn.wasAltered,Ve.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&gn;if(r>=this.array.length)return new Ve([],e);var o,i=0===r;if(t>0){var u=this.array[r];if(o=u&&u.removeBefore(e,t-hn,n),o===u&&i)return this}if(i&&!o)return this;var a=Ge(this,e);if(!i)for(var s=0;s<r;s++)a.array[s]=void 0;return o&&(a.array[r]=o),a},Ve.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&gn;if(r>=this.array.length)return this;var o;if(t>0){var i=this.array[r];if(o=i&&i.removeAfter(e,t-hn,n),o===i&&r===this.array.length-1)return this}var u=Ge(this,e);return u.array.splice(r+1),o&&(u.array[r]=o),u};var Jn,Xn={};e(Qe,fe),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return nt(this,e,t)},Qe.prototype.remove=function(e){return nt(this,e,yn)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Qe.isOrderedMap=$e,Qe.prototype[pn]=!0,Qe.prototype[dn]=Qe.prototype.remove;var Zn;e(rt,k),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=st(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Ot(this):0,function(o){return e(o,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(_n,t),r=t?Ot(this):0;return new _(function(){var o=n.next();return o.done?o:C(e,t?--r:r++,o.value,o)})},rt.prototype[pn]=!0,e(ot,M),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t),r=0;return new _(function(){var t=n.next();return t.done?t:C(e,r++,t.value,t)})},e(it,A),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){var t=n.next();return t.done?t:C(e,t.value,t.value,t)})},e(ut,k),ut.prototype.entrySeq=function(){return this._iter.toSeq()},ut.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Et(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},ut.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Et(r);var o=i(r);return C(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=it.prototype.cacheResult=ut.prototype.cacheResult=Rt,e(At,te),At.prototype.toString=function(){return this.__toString(jt(this)+" {","}")},At.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},At.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},At.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Tt(this,Ce()))},At.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+jt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:Tt(this,r)},At.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:Tt(this,t)},At.prototype.wasAltered=function(){return this._map.wasAltered()},At.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},At.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},At.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Tt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Qn=At.prototype;Qn[dn]=Qn.remove,Qn.deleteIn=Qn.removeIn=Hn.removeIn,Qn.merge=Hn.merge,Qn.mergeWith=Hn.mergeWith,Qn.mergeIn=Hn.mergeIn,Qn.mergeDeep=Hn.mergeDeep,Qn.mergeDeepWith=Hn.mergeDeepWith,Qn.mergeDeepIn=Hn.mergeDeepIn,Qn.setIn=Hn.setIn,Qn.update=Hn.update,Qn.updateIn=Hn.updateIn,Qn.withMutations=Hn.withMutations,Qn.asMutable=Hn.asMutable,Qn.asImmutable=Hn.asImmutable,e(zt,re),zt.of=function(){return this(arguments)},zt.fromKeys=function(e){return this(n(e).keySeq())},zt.prototype.toString=function(){return this.__toString("Set {","}")},zt.prototype.has=function(e){return this._map.has(e)},zt.prototype.add=function(e){return Lt(this,this._map.set(e,!0))},zt.prototype.remove=function(e){return Lt(this,this._map.remove(e))},zt.prototype.clear=function(){return Lt(this,this._map.clear())},zt.prototype.union=function(){var e=sn.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)o(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},zt.prototype.intersect=function(){var e=sn.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return o(e)});var t=this;return thi