igroot
Version:
An React-based implementation
13 lines • 1.94 MB
JavaScript
/*!
* igroot v1.6.6
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!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.igroot=t(require("react"),require("react-dom")):e.igroot=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){"use strict";var r=n(442),o=n(1053);r.locales={},o.keys().forEach(function(e){var t=e.match(/\/([^\/]+).tsx$/);r.locales[t[1]]=o(e).default}),e.exports=r},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(512),a=r(o);t.default=a.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){"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";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(516),a=r(o),i=n(513),l=r(i),u=n(19),c=r(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,c.default)(t)));e.prototype=(0,l.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(a.default?(0,a.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(19),a=r(o);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){e.exports=n(801)()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(233),a=r(o);t.default=function(){function e(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,a.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){var r,o;/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var i=n.apply(null,r);i&&e.push(i)}else if("object"===o)for(var l in r)a.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],o=function(){return n}.apply(t,r),!(void 0!==o&&(e.exports=o)))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(233),a=r(o);t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=o(a),l=n(9),u=o(l),c=n(20),s=o(c),d=n(1),f=r(d),p=n(8),h=o(p),v=n(372),m=r(v),y=n(199),g=o(y),b=n(439),_=o(b),C=n(441),M=n(21),x=o(M),S=n(440),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]]);return n};g.default.add.apply(g.default,(0,s.default)(Object.keys(m).map(function(e){return m[e]}))),(0,S.setTwoToneColor)("#1890ff");var O="outlined",k=void 0,T=function(e){var t,n=e.className,r=e.type,o=e.component,a=e.viewBox,l=e.spin,c=e.children,s=e.theme,d=e.twoToneColor,p=w(e,["className","type","component","viewBox","spin","children","theme","twoToneColor"]);(0,x.default)(Boolean(r||o||c),"Icon should have `type` prop or `component` prop or `children`.");var v=(0,h.default)((t={},(0,u.default)(t,"anticon",!0),(0,u.default)(t,"anticon-"+r,Boolean(r)),t),n),m=(0,h.default)((0,u.default)({},"anticon-spin",!!l||"loading"===r)),y=void 0;if(o){var b=(0,i.default)({},C.svgBaseProps,{className:m,viewBox:a});a||delete b.viewBox,y=f.createElement(o,b,c)}if(c){(0,x.default)(Boolean(a)||1===f.Children.count(c)&&f.isValidElement(c)&&"use"===f.Children.only(c).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.");var _=(0,i.default)({},C.svgBaseProps,{className:m});y=f.createElement("svg",(0,i.default)({},_,{viewBox:a}),c)}if("string"==typeof r){var M=r;if(s){var S=(0,C.getThemeFromTypeName)(r);(0,x.default)(!S,"This icon already has a theme '"+S+"'."+(" The prop 'theme' "+s+" will be ignored."))}M=(0,C.withThemeSuffix)((0,C.removeTypeTheme)(r),k||s||O),y=f.createElement(g.default,{className:m,type:M,primaryColor:d})}return f.createElement("i",(0,i.default)({},p,{className:v}),y)};T.displayName="Icon",T.createFromIconfontCN=_.default,T.getTwoToneColor=S.getTwoToneColor,T.setTwoToneColor=S.setTwoToneColor,t.default=T,e.exports=t.default},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 a(e)?e:E(e)}function n(e){return i(e)?e:P(e)}function r(e){return l(e)?e:z(e)}function o(e){return a(e)&&!u(e)?e:N(e)}function a(e){return!(!e||!e[cn])}function i(e){return!(!e||!e[sn])}function l(e){return!(!e||!e[dn])}function u(e){return i(e)||l(e)}function c(e){return!(!e||!e[fn])}function s(e){return e.value=!1,e}function d(e){e&&(e.value=!0)}function f(){}function p(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(m)),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 m(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function C(e){this.next=e}function M(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!!k(e)}function w(e){return e&&"function"==typeof e.next}function O(e){var t=k(e);return t&&t.call(e)}function k(e){var t=e&&(xn&&e[xn]||e[Sn]);if("function"==typeof t)return t}function T(e){return e&&"number"==typeof e.length}function E(e){return null===e||void 0===e?A():a(e)?e.toSeq():R(e)}function P(e){return null===e||void 0===e?A().toKeyedSeq():a(e)?i(e)?e.toSeq():e.fromEntrySeq():F(e)}function z(e){return null===e||void 0===e?A():a(e)?i(e)?e.entrySeq():e.toIndexedSeq():I(e)}function N(e){return(null===e||void 0===e?A():a(e)?i(e)?e.entrySeq():e:I(e)).toSetSeq()}function V(e){this._array=e,this.size=e.length}function H(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function D(e){this._iterable=e,this.size=e.length||e.size}function L(e){this._iterator=e,this._iteratorCache=[]}function j(e){return!(!e||!e[On])}function A(){return kn||(kn=new V([]))}function F(e){var t=Array.isArray(e)?new V(e).fromEntrySeq():w(e)?new L(e).fromEntrySeq():S(e)?new D(e).fromEntrySeq():"object"==typeof e?new H(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function I(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function R(e){var t=K(e)||"object"==typeof e&&new H(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function K(e){return T(e)?new V(e):w(e)?new L(e):S(e)?new D(e):void 0}function B(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var l=o[n?a-i:i];if(t(l[1],r?l[0]:i,e)===!1)return i+1}return i}return e.__iterateUncached(t,n)}function Y(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new C(function(){var e=o[n?a-i:i];return i++>a?x():M(t,r?e[0]:i-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?W(t,e,"",{"":e}):q(e)}function W(e,t,n,r){return Array.isArray(t)?e.call(r,n,z(t).map(function(n,r){return W(e,n,r,t)})):G(t)?e.call(r,n,P(t).map(function(n,r){return W(e,n,r,t)})):t}function q(e){return Array.isArray(e)?z(e).map(q).toList():G(e)?P(e).map(q).toMap():e}function G(e){return e&&(e.constructor===Object||void 0===e.constructor)}function X(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 $(e,t){if(e===t)return!0;if(!a(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||i(e)!==i(t)||l(e)!==l(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&X(o[1],e)&&(n||X(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 s=e;e=t,t=s}var d=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):o?!X(t,e.get(r,yn)):!X(e.get(r,yn),t))return d=!1,!1});return d&&e.size===f}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(Tn)return Tn;Tn=this}}function J(e,t){if(!e)throw new Error(t)}function Q(e,t,n){if(!(this instanceof Q))return new Q(e,t,n);if(J(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(En)return En;En=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function oe(e){return e>>>1&1073741824|3221225471&e}function ae(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){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>jn?ie(e):le(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return le(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ie(e){var t=In[e];return void 0===t&&(t=le(e),Fn===An&&(Fn=0,In={}),Fn++,In[e]=t),t}function le(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return oe(t)}function ue(e){var t;if(Hn&&(t=Pn.get(e),void 0!==t))return t;if(t=e[Ln],void 0!==t)return t;if(!Vn){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ln],void 0!==t)return t;if(t=ce(e),void 0!==t)return t}if(t=++Dn,1073741824&Dn&&(Dn=0),Hn)Pn.set(e,t);else{if(void 0!==Nn&&Nn(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Vn)Object.defineProperty(e,Ln,{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[Ln]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ln]=t}}return t}function ce(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function se(e){J(e!==1/0,"Cannot perform this action with an infinite size.")}function de(e){return null===e||void 0===e?Me():fe(e)&&!c(e)?e:Me().withMutations(function(t){var r=n(e);se(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function fe(e){return!(!e||!e[Rn])}function pe(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 me(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 ge(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&_e(e._root)}function be(e,t){return M(e,t[0],t[1])}function _e(e,t){return{node:e,index:0,__prev:t}}function Ce(e,t,n,r){var o=Object.create(Kn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Me(){return Bn||(Bn=Ce(0))}function xe(e,t,n){var r,o;if(e._root){var a=s(gn),i=s(bn);if(r=Se(e._root,e.__ownerID,0,void 0,t,n,a,i),!i.value)return e;o=e.size+(a.value?n===yn?-1:1:0)}else{if(n===yn)return e;o=1,r=new pe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ce(o,r):Me()}function Se(e,t,n,r,o,a,i,l){return e?e.update(t,n,r,o,a,i,l):a===yn?e:(d(l),d(i),new ye(t,r,[o,a]))}function we(e){return e.constructor===ye||e.constructor===me}function Oe(e,t,n,r,o){if(e.keyHash===r)return new me(t,r,[e.entry,o]);var a,i=(0===n?e.keyHash:e.keyHash>>>n)&mn,l=(0===n?r:r>>>n)&mn,u=i===l?[Oe(e,t,n+hn,r,o)]:(a=new ye(t,r,o),i<l?[e,a]:[a,e]);return new he(t,1<<i|1<<l,u)}function ke(e,t,n,r){e||(e=new f);for(var o=new ye(e,ae(n),[n,r]),a=0;a<t.length;a++){var i=t[a];o=o.update(e,0,void 0,i[0],i[1])}return o}function Te(e,t,n,r){for(var o=0,a=0,i=new Array(n),l=0,u=1,c=t.length;l<c;l++,u<<=1){var s=t[l];void 0!==s&&l!==r&&(o|=u,i[a++]=s)}return new he(e,o,i)}function Ee(e,t,n,r,o){for(var a=0,i=new Array(vn),l=0;0!==n;l++,n>>>=1)i[l]=1&n?t[a++]:void 0;return i[r]=o,new ve(e,a+1,i)}function Pe(e,t,r){for(var o=[],i=0;i<r.length;i++){var l=r[i],u=n(l);a(l)||(u=u.map(function(e){return U(e)})),o.push(u)}return Ve(e,t,o)}function ze(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):X(e,t)?e:t}function Ne(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return X(t,o)?t:o}}function Ve(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 He(e,t,n,r){var o=e===yn,a=t.next();if(a.done){var i=o?n:e,l=r(i);return l===i?e:l}J(o||e&&e.set,"invalid keyPath");var u=a.value,c=o?yn:e.get(u,yn),s=He(c,t,n,r);return s===c?e:s===yn?e.remove(u):(o?Me():e).set(u,s)}function De(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 Le(e,t,n,r){var o=r?e:p(e);return o[t]=n,o}function je(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var a=new Array(o),i=0,l=0;l<o;l++)l===t?(a[l]=n,i=-1):a[l]=e[l+i];return a}function Ae(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i<r;i++)i===t&&(a=1),o[i]=e[i+a];return o}function Fe(e){var t=Ye();if(null===e||void 0===e)return t;if(Ie(e))return e;var n=r(e),o=n.size;return 0===o?t:(se(o),o>0&&o<vn?Be(0,o,hn,null,new Re(n.toArray())):t.withMutations(function(e){e.setSize(o),n.forEach(function(t,n){return e.set(n,t)})}))}function Ie(e){return!(!e||!e[qn])}function Re(e,t){this.array=e,this.ownerID=t}function Ke(e,t){function n(e,t,n){return 0===t?r(e,n):o(e,t,n)}function r(e,n){var r=n===l?u&&u.array:e&&e.array,o=n>a?0:a-n,c=i-n;return c>vn&&(c=vn),function(){if(o===c)return $n;var e=t?--c:o++;return r&&r[e]}}function o(e,r,o){var l,u=e&&e.array,c=o>a?0:a-o>>r,s=(i-o>>r)+1;return s>vn&&(s=vn),function(){for(;;){if(l){var e=l();if(e!==$n)return e;l=null}if(c===s)return $n;var a=t?--s:c++;l=n(u&&u[a],r-hn,o+(a<<r))}}}var a=e._origin,i=e._capacity,l=Ze(i),u=e._tail;return n(e._root,e._level,0)}function Be(e,t,n,r,o,a,i){var l=Object.create(Gn);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=a,l.__hash=i,l.__altered=!1,l}function Ye(){return Xn||(Xn=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?Xe(e,t).set(0,n):Xe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,a=s(bn);return t>=Ze(e._capacity)?r=We(r,e.__ownerID,0,t,n,a):o=We(o,e.__ownerID,e._level,t,n,a),a.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,a){var i=r>>>n&mn,l=e&&i<e.array.length;if(!l&&void 0===o)return e;var u;if(n>0){var c=e&&e.array[i],s=We(c,t,n-hn,r,o,a);return s===c?e:(u=qe(e,t),u.array[i]=s,u)}return l&&e.array[i]===o?e:(d(a),u=qe(e,t),void 0===o&&i===u.array.length-1?u.array.pop():u.array[i]=o,u)}function qe(e,t){return t&&e&&t===e.ownerID?e:new Re(e?e.array.slice():[],t)}function Ge(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&mn],r-=hn;return n}}function Xe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new f,o=e._origin,a=e._capacity,i=o+t,l=void 0===n?a:n<0?a+n:o+n;if(i===o&&l===a)return e;if(i>=l)return e.clear();for(var u=e._level,c=e._root,s=0;i+s<0;)c=new Re(c&&c.array.length?[void 0,c]:[],r),u+=hn,s+=1<<u;s&&(i+=s,o+=s,l+=s,a+=s);for(var d=Ze(a),p=Ze(l);p>=1<<u+hn;)c=new Re(c&&c.array.length?[c]:[],r),u+=hn;var h=e._tail,v=p<d?Ge(e,l-1):p>d?new Re([],r):h;if(h&&p>d&&i<a&&h.array.length){c=qe(c,r);for(var m=c,y=u;y>hn;y-=hn){var g=d>>>y&mn;m=m.array[g]=qe(m.array[g],r)}m.array[d>>>hn&mn]=h}if(l<a&&(v=v&&v.removeAfter(r,0,l)),i>=p)i-=p,l-=p,u=hn,c=null,v=v&&v.removeBefore(r,0,i);else if(i>o||p<d){for(s=0;c;){var b=i>>>u&mn;if(b!==p>>>u&mn)break;b&&(s+=(1<<u)*b),u-=hn,c=c.array[b]}c&&i>o&&(c=c.removeBefore(r,u,i-s)),c&&p<d&&(c=c.removeAfter(r,u,p-s)),s&&(i-=s,l-=s)}return e.__ownerID?(e.size=l-i,e._origin=i,e._capacity=l,e._level=u,e._root=c,e._tail=v,e.__hash=void 0,e.__altered=!0,e):Be(i,l,u,c,v)}function $e(e,t,n){for(var o=[],i=0,l=0;l<n.length;l++){var u=n[l],c=r(u);c.size>i&&(i=c.size),a(u)||(c=c.map(function(e){return U(e)})),o.push(c)}return i>e.size&&(e=e.setSize(i)),Ve(e,t,o)}function Ze(e){return e<vn?0:e-1>>>hn<<hn}function Je(e){return null===e||void 0===e?tt():Qe(e)?e:tt().withMutations(function(t){var r=n(e);se(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function Qe(e){return fe(e)&&c(e)}function et(e,t,n,r){var o=Object.create(Je.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(Me(),Ye()))}function nt(e,t,n){var r,o,a=e._map,i=e._list,l=a.get(t),u=void 0!==l;if(n===yn){if(!u)return e;i.size>=vn&&i.size>=2*a.size?(o=i.filter(function(e,t){return void 0!==e&&l!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=l===i.size-1?i.pop():i.set(l,void 0))}else if(u){if(n===i.get(l)[1])return e;r=a,o=i.set(l,[t,n])}else r=a.set(t,i.size),o=i.set(i.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 at(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function lt(e){var t=Tt(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=Et,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===Mn){var r=e.__iterator(t,n);return new C(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===Cn?_n:Cn,n)},t}function ut(e,t,n){var r=Tt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,yn);return a===yn?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate(function(e,o,i){return r(t.call(n,e,o,i),o,a)!==!1},o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(Mn,o);return new C(function(){var o=a.next();if(o.done)return o;var i=o.value,l=i[0];return M(r,l,t.call(n,i[1],l,e),o)})},r}function ct(e,t){var n=Tt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=lt(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=Et,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 st(e,t,n,r){var o=Tt(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 a=e.get(r,yn);return a!==yn&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,l=0;return e.__iterate(function(e,a,u){if(t.call(n,e,a,u))return l++,o(e,r?a:l-1,i)},a),l},o.__iteratorUncached=function(o,a){var i=e.__iterator(Mn,a),l=0;return new C(function(){for(;;){var a=i.next();if(a.done)return a;var u=a.value,c=u[0],s=u[1];if(t.call(n,s,c,e))return M(o,r?c:l++,s,a)}})},o}function dt(e,t,n){var r=de().asMutable();return e.__iterate(function(o,a){r.update(t.call(n,o,a,e),0,function(e){return e+1})}),r.asImmutable()}function ft(e,t,n){var r=i(e),o=(c(e)?Je():de()).asMutable();e.__iterate(function(a,i){o.update(t.call(n,a,i,e),function(e){return e=e||[],e.push(r?[i,a]:a),e})});var a=kt(e);return o.map(function(t){return St(e,a(t))})}function pt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),y(t,n,o))return e;var a=g(t,o),i=b(n,o);if(a!==a||i!==i)return pt(e.toSeq().cacheResult(),t,n,r);var l,u=i-a;u===u&&(l=u<0?0:u);var c=Tt(e);return c.size=0===l?l:e.size&&l||void 0,!r&&j(e)&&l>=0&&(c.get=function(t,n){return t=v(this,t),t>=0&&t<l?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var i=0,u=!0,c=0;return e.__iterate(function(e,n){if(!u||!(u=i++<a))return c++,t(e,r?n:c-1,o)!==!1&&c!==l}),c},c.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),i=0,u=0;return new C(function(){for(;i++<a;)o.next();if(++u>l)return x();var e=o.next();return r||t===Cn?e:t===_n?M(t,u-1,void 0,e):M(t,u-1,e.value[1],e)})},c}function ht(e,t,n){var r=Tt(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate(function(e,o,l){return t.call(n,e,o,l)&&++i&&r(e,o,a)}),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(Mn,o),l=!0;return new C(function(){if(!l)return x();var e=i.next();if(e.done)return e;var o=e.value,u=o[0],c=o[1];return t.call(n,c,u,a)?r===Mn?e:M(r,u,c,e):(l=!1,x())})},r}function vt(e,t,n,r){var o=Tt(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var l=!0,u=0;return e.__iterate(function(e,a,c){if(!l||!(l=t.call(n,e,a,c)))return u++,o(e,r?a:u-1,i)}),u},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var l=e.__iterator(Mn,a),u=!0,c=0;return new C(function(){var e,a,s;do{if(e=l.next(),e.done)return r||o===Cn?e:o===_n?M(o,c++,void 0,e):M(o,c++,e.value[1],e);var d=e.value;a=d[0],s=d[1],u&&(u=t.call(n,s,a,i))}while(u);return o===Mn?e:M(o,a,s,e)})},o}function mt(e,t){var r=i(e),o=[e].concat(t).map(function(e){return a(e)?r&&(e=n(e)):e=r?F(e):I(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&i(u)||l(e)&&l(u))return u}var c=new V(o);return r?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),c=c.flatten(!0),c.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}function yt(e,t,n){var r=Tt(e);return r.__iterateUncached=function(r,o){function i(e,c){var s=this;e.__iterate(function(e,o){return(!t||c<t)&&a(e)?i(e,c+1):r(e,n?o:l++,s)===!1&&(u=!0),!u},o)}var l=0,u=!1;return i(e,0),l},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),l=[],u=0;return new C(function(){for(;i;){var e=i.next();if(e.done===!1){var c=e.value;if(r===Mn&&(c=c[1]),t&&!(l.length<t)||!a(c))return n?e:M(r,u++,c,e);l.push(i),i=c.__iterator(r,o)}else i=l.pop()}return x()})},r}function gt(e,t,n){var r=kt(e);return e.toSeq().map(function(o,a){return r(t.call(n,o,a,e))}).flatten(!0)}function bt(e,t){var n=Tt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,a=0;return e.__iterate(function(e,r){return(!a||n(t,a++,o)!==!1)&&n(e,a++,o)!==!1},r),a},n.__iteratorUncached=function(n,r){var o,a=e.__iterator(Cn,r),i=0;return new C(function(){return(!o||i%2)&&(o=a.next(),o.done)?o:i%2?M(n,i++,t):M(n,i++,o.value,o)})},n}function _t(e,t,n){t||(t=Pt);var r=i(e),o=0,a=e.toSeq().map(function(t,r){return[r,t,o++,n?n(t,r,e):t]}).toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?P(a):l(e)?z(a):N(a)}function Ct(e,t,n){if(t||(t=Pt),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Mt(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Mt(t,e,n)?n:e})}function Mt(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=Tt(e);return o.size=new V(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Cn,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var a=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),i=0,l=!1;return new C(function(){var t;return l||(t=a.map(function(e){return e.next()}),l=t.some(function(e){return e.done})),l?x():M(e,i++,n.apply(null,t.map(function(e){return e.value})))})},o}function St(e,t){return j(e)?t:e.constructor(t)}function wt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ot(e){return se(e.size),h(e)}function kt(e){return i(e)?n:l(e)?r:o}function Tt(e){return Object.create((i(e)?P:l(e)?z:N).prototype)}function Et(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):E.prototype.cacheResult.call(this)}function Pt(e,t){return e>t?1:e<t?-1:0}function zt(e){var n=O(e);if(!n){if(!T(e))throw new TypeError("Expected iterable or array-like: "+e);n=O(t(e))}return n}function Nt(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var i=Object.keys(e);Dt(o,i),o.size=i.length,o._name=t,o._keys=i,o._defaultValues=e}this._map=de(a)},o=r.prototype=Object.create(Jn);return o.constructor=r,r}function Vt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Ht(e){return e._name||e.constructor.name||"Record"}function Dt(e,t){try{t.forEach(Lt.bind(void 0,e))}catch(e){}}function Lt(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){J(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function jt(e){return null===e||void 0===e?Rt():At(e)&&!c(e)?e:Rt().withMutations(function(t){var n=o(e);se(n.size),n.forEach(function(e){return t.add(e)})})}function At(e){return!(!e||!e[Qn])}function Ft(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 It(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rt(){return tr||(tr=It(Me()))}function Kt(e){return null===e||void 0===e?Ut():Bt(e)?e:Ut().withMutations(function(t){var n=o(e);se(n.size),n.forEach(function(e){return t.add(e)})})}function Bt(e){return At(e)&&c(e)}function Yt(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=Yt(tt()))}function Wt(e){return null===e||void 0===e?Xt():qt(e)?e:Xt().unshiftAll(e)}function qt(e){return!(!e||!e[or])}function Gt(e,t,n,r){var o=Object.create(ar);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Xt(){return ir||(ir=Gt(0))}function $t(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 Jt(e,t){return[t,e]}function Qt(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):e}function nn(){return p(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=c(e),n=i(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+ln(ae(e),ae(t))|0}:function(e,t){r=r+ln(ae(e),ae(t))|0}:t?function(e){r=31*r+ae(e)|0}:function(e){r=r+ae(e)|0});return an(o,r)}function an(e,t){return t=zn(t,3432918353),t=zn(t<<15|t>>>-15,461845907),t=zn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=zn(t^t>>>16,2246822507),t=zn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function ln(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=a,t.isKeyed=i,t.isIndexed=l,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=o;var cn="@@__IMMUTABLE_ITERABLE__@@",sn="@@__IMMUTABLE_KEYED__@@",dn="@@__IMMUTABLE_INDEXED__@@",fn="@@__IMMUTABLE_ORDERED__@@",pn="delete",hn=5,vn=1<<hn,mn=vn-1,yn={},gn={value:!1},bn={value:!1},_n=0,Cn=1,Mn=2,xn="function"==typeof Symbol&&Symbol.iterator,Sn="@@iterator",wn=xn||Sn;C.prototype.toString=function(){return"[Iterator]"},C.KEYS=_n,C.VALUES=Cn,C.ENTRIES=Mn,C.prototype.inspect=C.prototype.toSource=function(){return this.toString()},C.prototype[wn]=function(){return this},e(E,t),E.of=function(){return E(arguments)},E.prototype.toSeq=function(){return this},E.prototype.toString=function(){return this.__toString("Seq {","}")},E.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},E.prototype.__iterate=function(e,t){return B(this,e,t,!0)},E.prototype.__iterator=function(e,t){return Y(this,e,t,!0)},e(P,E),P.prototype.toKeyedSeq=function(){return this},e(z,E),z.of=function(){return z(arguments)},z.prototype.toIndexedSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq [","]")},z.prototype.__iterate=function(e,t){return B(this,e,t,!1)},z.prototype.__iterator=function(e,t){return Y(this,e,t,!1)},e(N,E),N.of=function(){return N(arguments)},N.prototype.toSetSeq=function(){return this},E.isSeq=j,E.Keyed=P,E.Set=N,E.Indexed=z;var On="@@__IMMUTABLE_SEQ__@@";E.prototype[On]=!0,e(V,z),V.prototype.get=function(e,t){return this.has(e)?this._array[v(this,e)]:t},V.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},V.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new C(function(){return o>r?x():M(e,o,n[t?r-o++:o++])})},e(H,P),H.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},H.prototype.has=function(e){return this._object.hasOwnProperty(e)},H.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(e(n[i],i,this)===!1)return a+1}return a},H.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new C(function(){var i=r[t?o-a:a];return a++>o?x():M(e,i,n[i])})},H.prototype[fn]=!0,e(D,z),D.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(w(r))for(var a;!(a=r.next()).done&&e(a.value,o++,this)!==!1;);return o},D.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!w(r))return new C(x);var o=0;return new C(function(){var t=r.next();return t.done?t:M(e,o++,t.value)})},e(L,z),L.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 a;!(a=n.next()).done;){var i=a.value;if(r[o]=i,e(i,o++,this)===!1)break}return o},L.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new C(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return M(e,o,r[o++])})};var kn;e(Z,z),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 X(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)-g(e,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(e){return X(this._value,e)?0:-1},Z.prototype.lastIndexOf=function(e){return X(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 C(function(){return r<n.size?M(e,r++,n._value):x()})},Z.prototype.equals=function(e){return e instanceof Z?X(this._value,e._value):$(e)};var Tn;e(Q,z),Q.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Q.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Q.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Q.prototype.slice=function(e,t){return y(e,t,this.size)?this:(e=g(e,this.size),t=b(t,this.size),t<=e?new Q(0,0):new Q(this.get(e,this._end),this.get(t,this._end),this._step));
},Q.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},Q.prototype.lastIndexOf=function(e){return this.indexOf(e)},Q.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,a=0;a<=n;a++){if(e(o,a,this)===!1)return a+1;o+=t?-r:r}return a},Q.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,a=0;return new C(function(){var i=o;return o+=t?-r:r,a>n?x():M(e,a++,i)})},Q.prototype.equals=function(e){return e instanceof Q?this._start===e._start&&this._end===e._end&&this._step===e._step:$(this,e)};var En;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Pn,zn="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},Nn=Object.isExtensible,Vn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Hn="function"==typeof WeakMap;Hn&&(Pn=new WeakMap);var Dn=0,Ln="__immutablehash__";"function"==typeof Symbol&&(Ln=Symbol(Ln));var jn=16,An=255,Fn=0,In={};e(de,te),de.prototype.toString=function(){return this.__toString("Map {","}")},de.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},de.prototype.set=function(e,t){return xe(this,e,t)},de.prototype.setIn=function(e,t){return this.updateIn(e,yn,function(){return t})},de.prototype.remove=function(e){return xe(this,e,yn)},de.prototype.deleteIn=function(e){return this.updateIn(e,function(){return yn})},de.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},de.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=He(this,zt(e),t,n);return r===yn?void 0:r},de.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Me()},de.prototype.merge=function(){return Pe(this,void 0,arguments)},de.prototype.mergeWith=function(e){var t=un.call(arguments,1);return Pe(this,e,t)},de.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},de.prototype.mergeDeep=function(){return Pe(this,ze,arguments)},de.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Pe(this,Ne(e),t)},de.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},de.prototype.sort=function(e){return Je(_t(this,e))},de.prototype.sortBy=function(e,t){return Je(_t(this,t,e))},de.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},de.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new f)},de.prototype.asImmutable=function(){return this.__ensureOwner()},de.prototype.wasAltered=function(){return this.__altered},de.prototype.__iterator=function(e,t){return new ge(this,e,t)},de.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},de.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ce(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},de.isMap=fe;var Rn="@@__IMMUTABLE_MAP__@@",Kn=de.prototype;Kn[Rn]=!0,Kn[pn]=Kn.remove,Kn.removeIn=Kn.deleteIn,pe.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a<i;a++)if(X(n,o[a][0]))return o[a][1];return r},pe.prototype.update=function(e,t,n,r,o,a,i){for(var l=o===yn,u=this.entries,c=0,s=u.length;c<s&&!X(r,u[c][0]);c++);var f=c<s;if(f?u[c][1]===o:l)return this;if(d(i),(l||!f)&&d(a),!l||1!==u.length){if(!f&&!l&&u.length>=Yn)return ke(e,u,r,o);var h=e&&e===this.ownerID,v=h?u:p(u);return f?l?c===s-1?v.pop():v[c]=v.pop():v[c]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new pe(e,v)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=ae(n));var o=1<<((0===e?t:t>>>e)&mn),a=this.bitmap;return 0===(a&o)?r:this.nodes[De(a&o-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=ae(r));var l=(0===t?n:n>>>t)&mn,u=1<<l,c=this.bitmap,s=0!==(c&u);if(!s&&o===yn)return this;var d=De(c&u-1),f=this.nodes,p=s?f[d]:void 0,h=Se(p,e,t+hn,n,r,o,a,i);if(h===p)return this;if(!s&&h&&f.length>=Un)return Ee(e,f,c,l,h);if(s&&!h&&2===f.length&&we(f[1^d]))return f[1^d];if(s&&h&&1===f.length&&we(h))return h;var v=e&&e===this.ownerID,m=s?h?c:c^u:c|u,y=s?h?Le(f,d,h,v):Ae(f,d,v):je(f,d,h,v);return v?(this.bitmap=m,this.nodes=y,this):new he(e,m,y)},ve.prototype.get=function(e,t,n,r){void 0===t&&(t=ae(n));var o=(0===e?t:t>>>e)&mn,a=this.nodes[o];return a?a.get(e+hn,t,n,r):r},ve.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=ae(r));var l=(0===t?n:n>>>t)&mn,u=o===yn,c=this.nodes,s=c[l];if(u&&!s)return this;var d=Se(s,e,t+hn,n,r,o,a,i);if(d===s)return this;var f=this.count;if(s){if(!d&&(f--,f<Wn))return Te(e,c,f,l)}else f++;var p=e&&e===this.ownerID,h=Le(c,l,d,p);return p?(this.count=f,this.nodes=h,this):new ve(e,f,h)},me.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a<i;a++)if(X(n,o[a][0]))return o[a][1];return r},me.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=ae(r));var l=o===yn;if(n!==this.keyHash)return l?this:(d(i),d(a),Oe(this,e,t,n,[r,o]));for(var u=this.entries,c=0,s=u.length;c<s&&!X(r,u[c][0]);c++);var f=c<s;if(f?u[c][1]===o:l)return this;if(d(i),(l||!f)&&d(a),l&&2===s)return new ye(e,this.keyHash,u[1^c]);var h=e&&e===this.ownerID,v=h?u:p(u);return f?l?c===s-1?v.pop():v[c]=v.pop():v[c]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new me(e,this.keyHash,v)},ye.prototype.get=function(e,t,n,r){return X(n,this.entry[0])?this.entry[1]:r},ye.prototype.update=function(e,t,n,r,o,a,i){var l=o===yn,u=X(r,this.entry[0]);return(u?o===this.entry[1]:l)?this:(d(i),l?void d(a):u?e&&e===this.ownerID?(this.entry[1]=o,this):new ye(e,this.keyHash,[r,o]):(d(a),Oe(this,e,t,ae(r),[r,o])))},pe.prototype.iterate=me.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 a=n[t?o-r:r];if(a&&a.iterate(e,t)===!1)return!1}},ye.prototype.iterate=function(e,t){return e(this.entry)},e(ge,C),ge.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 a=r.nodes[this._reverse?n-o:o];if(a){if(a.entry)return be(e,a.entry);t=this._stack=_e(a,t)}continue}t=this._stack=this._stack.__prev}return x()};var Bn,Yn=vn/4,Un=vn/2,Wn=vn/4;e(Fe,ne),Fe.of=function(){return this(arguments)},Fe.prototype.toString=function(){return this.__toString("List [","]")},Fe.prototype.get=function(e,t){if(e=v(this,e),e>=0&&e<this.size){e+=this._origin;var n=Ge(this,e);return n&&n.array[e&mn]}return t},Fe.prototype.set=function(e,t){return Ue(this,e,t)},Fe.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Fe.prototype.insert=function(e,t){return this.splice(e,0,t)},Fe.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):Ye()},Fe.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Xe(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Fe.prototype.pop=function(){return Xe(this,0,-1)},Fe.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Xe(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Fe.prototype.shift=function(){return Xe(this,1)},Fe.prototype.merge=function(){return $e(this,void 0,arguments)},Fe.prototype.mergeWith=function(e){var t=un.call(arguments,1);return $e(this,e,t)},Fe.prototype.mergeDeep=function(){return $e(this,ze,arguments)},Fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return $e(this,Ne(e),t)},Fe.prototype.setSize=function(e){return Xe(this,0,e)},Fe.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:Xe(this,g(e,n),b(t,n))},Fe.prototype.__iterator=function(e,t){var n=0,r=Ke(this,t);return new C(function(){var t=r();return t===$n?x():M(e,n++,t)})},Fe.prototype.__iterate=function(e,t){for(var n,r=0,o=Ke(this,t);(n=o())!==$n&&e(n,r++,this)!==!1;);return r},Fe.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)},Fe.isList=Ie;var qn="@@__IMMUTABLE_LIST__@@",Gn=Fe.prototype;Gn[qn]=!0,Gn[pn]=Gn.remove,Gn.setIn=Kn.setIn,Gn.deleteIn=Gn.removeIn=Kn.removeIn,Gn.update=Kn.update,Gn.updateIn=Kn.updateIn,Gn.mergeIn=Kn.mergeIn,Gn.mergeDeepIn=Kn.mergeDeepIn,Gn.withMutations=Kn.withMutations,Gn.asMutable=Kn.asMutable,Gn.asImmutable=Kn.asImmutable,Gn.wasAltered=Kn.wasAltered,Re.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&mn;if(r>=this.array.length)return new Re([],e);var o,a=0===r;if(t>0){var i=this.array[r];if(o=i&&i.removeBefore(e,t-hn,n),o===i&&a)return this}if(a&&!o)return this;var l=qe(this,e);if(!a)for(var u=0;u<r;u++)l.array[u]=void 0;return o&&(l.array[r]=o),l},Re.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&mn;if(r>=this.array.length)return this;var o;if(t>0){var a=this.array[r];if(o=a&&a.removeAfter(e,t-hn,n),o===a&&r===this.array.length-1)return this}var i=qe(this,e);return i.array.splice(r+1),o&&(i.array[r]=o),i};var Xn,$n={};e(Je,de),Je.of=function(){return this(arguments)},Je.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Je.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Je.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Je.prototype.set=function(e,t){return nt(this,e,t)},Je.prototype.remove=function(e){return nt(this,e,yn)},Je.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Je.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Je.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Je.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)},Je.isOrderedMap=Qe,Je.prototype[fn]=!0,Je.prototype[pn]=Je.prototype.remove;var Zn;e(rt,P),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=ct(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(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(Cn,t),r=t?Ot(this):0;return new C(function(){var o=n.next();return o.done?o:M(e,t?--r:r++,o.value,o)})},rt.prototype[fn]=!0,e(ot,z),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(Cn,t),r=0;return new C(function(){var t=n.next();return t.done?t:M(e,r++,t.value,t)})},e(at,N),at.prototype.has=function(e){return this._iter.includes(e)},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Cn,t);return new C(function(){var t=n.next();return t.done?t:M(e,t.value,t.value,t)})},e(it,P),it.prototype.entrySeq=function(){return this._iter.toSeq()},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){wt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Cn,t);return new C(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){wt(r);var o=a(r);return M(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=at.prototype.cacheResult=it.prototype.cacheResult=Et,e(Nt,te),Nt.prototype.toString=function(){return this.__toString(Ht(this)+" {","}")},Nt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Nt.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},Nt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Vt(this,Me()))},Nt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Ht(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Vt(this,n)},Nt.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:Vt(this,t)},Nt.prototype.wasAltered=function(){return this._map.wasAltered()},Nt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Nt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Nt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Jn=Nt.prototype;Jn[pn]=Jn.remove,Jn.deleteIn=Jn.removeIn=Kn.removeIn,Jn.merge=Kn.merge,Jn.mergeWith=Kn.mergeWith,Jn.mergeIn=Kn.mergeIn,Jn.mergeDeep=Kn.mergeDeep,Jn.mergeDeepWith=Kn.mergeDeepWith,Jn.mergeDeepIn=Kn.mergeDeepIn,Jn.setIn=Kn.setIn,Jn.update=Kn.update,Jn.updateIn=Kn.updateIn,Jn.withMutations=Kn.withMutations,Jn.asMutable=Kn.asMutable,Jn.asImmutable=Kn.asImmutable,e(jt,re),jt.of=function(){return this(arguments)},jt.fromKeys=function(e){return this(n(e).keySeq())},jt.prototype.toString=function(){return this.__toString("Set {","}")},jt.prototype.has=function(e){return this._map.has(e)},jt.prototype.add=function(e){return Ft(this,this._map.set(e,!0))},jt.prototype.