UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

15 lines 2.05 MB
/*! * * antd v3.25.3 * * 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"),require("moment")):"function"==typeof define&&define.amd?define(["react","react-dom","moment"],t):"object"==typeof exports?exports.antd=t(require("react"),require("react-dom"),require("moment")):e.antd=t(e.React,e.ReactDOM,e.moment)}(window,function(n,r,o){return c={},i.m=a=[function(e,t){e.exports=n},function(e,t,n){e.exports=n(323)()},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";var a={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"==r||"number"==r)e.push(n);else if(Array.isArray(n)&&n.length){var o=c.apply(null,n);o&&e.push(o)}else if("object"==r)for(var i in n)a.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(308),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(129),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0,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 l(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function s(n){this.setState(function(e){var t=this.constructor.getDerivedStateFromProps(n,e);return null!=t?t:null}.bind(this))}function u(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function r(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=l,t.componentWillReceiveProps=s),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=u;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return r}),u.__suppressDeprecationWarning=s.__suppressDeprecationWarning=l.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";var r,O=n(0),o=n(2),w=n.n(o),i=n(188),a=n(10),f=n.n(a),c=n(3),p=n.n(c),l=n(20),d=n.n(l),s=n(5),u=n.n(s),h=n(14),v=n.n(h),y=n(4),m=n.n(y),b=n(8),g=n.n(b),C=n(70),S={primaryColor:"#333",secondaryColor:"#E6E6E6"},E=(r=O.Component,g()(k,r),v()(k,[{key:"render",value:function(){var e,t=this.props,n=t.type,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,c=t.secondaryColor,l=d()(t,["type","className","onClick","style","primaryColor","secondaryColor"]),s=void 0,u=S;if(a&&(u={primaryColor:a,secondaryColor:c||Object(C.c)(a)}),Object(C.d)(n))s=n;else if("string"==typeof n&&!(s=k.get(n,u)))return null;return s?(s&&"function"==typeof s.icon&&(s=p()({},s,{icon:s.icon(u.primaryColor,u.secondaryColor)})),Object(C.b)(s.icon,"svg-"+s.name,p()((e={className:r,onClick:o,style:i},f()(e,"data-icon",s.name),f()(e,"width","1em"),f()(e,"height","1em"),f()(e,"fill","currentColor"),f()(e,"aria-hidden","true"),f()(e,"focusable","false"),e),l))):(Object(C.e)("type should be string or icon definiton, but got "+n),null)}}],[{key:"add",value:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(e){t.definitions.set(Object(C.f)(e.name,e.theme),e)})}},{key:"clear",value:function(){this.definitions.clear()}},{key:"get",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:S;if(e){var r=this.definitions.get(e);return r&&"function"==typeof r.icon&&(r=p()({},r,{icon:r.icon(n.primaryColor,n.secondaryColor)})),r}}},{key:"setTwoToneColors",value:function(e){var t=e.primaryColor,n=e.secondaryColor;S.primaryColor=t,S.secondaryColor=n||Object(C.c)(t)}},{key:"getTwoToneColors",value:function(){return p()({},S)}}]),k);function k(){return u()(this,k),m()(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}E.displayName="IconReact",E.definitions=new C.a;var x=E;function M(){return(M=Object.assign||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}).apply(this,arguments)}var P=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){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},z=new Set;var _=n(11),j={width:"1em",height:"1em",fill:"currentColor","aria-hidden":!0,focusable:"false"},T=/-fill$/,N=/-o$/,V=/-twotone$/;var L=n(24);function H(e){return x.setTwoToneColors({primaryColor:e})}function D(){return(D=Object.assign||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}).apply(this,arguments)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I,F=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){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};x.add.apply(x,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(I=Object.keys(i).map(function(e){return i[e]}))||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(I)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),H("#1890ff");var R,K="outlined";function B(e){var t,n=e.className,r=e.type,o=e.component,i=e.viewBox,a=e.spin,c=e.rotate,l=e.tabIndex,s=e.onClick,u=e.children,f=e.theme,p=e.twoToneColor,d=F(e,["className","type","component","viewBox","spin","rotate","tabIndex","onClick","children","theme","twoToneColor"]);Object(_.a)(Boolean(r||o||u),"Icon","Should have `type` prop or `component` prop or `children`.");var h=w()((A(t={},"anticon",!0),A(t,"anticon-".concat(r),Boolean(r)),t),n),v=w()(A({},"anticon-spin",!!a||"loading"===r)),y=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,m=D(D({},j),{className:v,style:y,viewBox:i});function b(){if(o)return O.createElement(o,m,u);if(u)return Object(_.a)(Boolean(i)||1===O.Children.count(u)&&O.isValidElement(u)&&"use"===O.Children.only(u).type,"Icon","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),O.createElement("svg",D({},m,{viewBox:i}),u);if("string"==typeof r){var e=r;if(f){var t=function(e){var t=null;return T.test(e)?t="filled":N.test(e)?t="outlined":V.test(e)&&(t="twoTone"),t}(r);Object(_.a)(!t||f===t,"Icon","The icon name '".concat(r,"' already specify a theme '").concat(t,"',")+" the 'theme' prop '".concat(f,"' will be ignored."))}return e=function(e,t){var n=e;return"filled"===t?n+="-fill":"outlined"===t?n+="-o":"twoTone"===t?n+="-twotone":Object(_.a)(!1,"Icon","This icon '".concat(e,"' has unknown theme '").concat(t,"'")),n}(function(e){return e.replace(T,"").replace(N,"").replace(V,"")}(function(e){var t=e;switch(e){case"cross":t="close";break;case"interation":t="interaction";break;case"canlendar":t="calendar";break;case"colum-height":t="column-height"}return Object(_.a)(t===e,"Icon","Icon '".concat(e,"' was a typo and is now deprecated, please use '").concat(t,"' instead.")),t}(e)),R||f||K),O.createElement(x,{className:v,type:e,primaryColor:p,style:y})}}i||delete m.viewBox;var g=l;return void 0===g&&s&&(g=-1),O.createElement(L.a,{componentName:"Icon"},function(e){return O.createElement("i",D({"aria-label":r&&"".concat(e.icon,": ").concat(r)},d,{tabIndex:g,onClick:s,className:h}),b())})}B.createFromIconfontCN=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,i=void 0===n?{}:n;if("undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&"string"==typeof t&&t.length&&!z.has(t)){var r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),z.add(t),document.body.appendChild(r)}function o(e){var t=e.type,n=e.children,r=P(e,["type","children"]),o=null;return e.type&&(o=O.createElement("use",{xlinkHref:"#".concat(t)})),n&&(o=n),O.createElement(W,M({},i,r),o)}return o.displayName="Iconfont",o},B.getTwoToneColor=function(){return x.getTwoToneColors().primaryColor},B.setTwoToneColor=H;var W=t.a=B},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(349)),o=a(n(353)),i=a(n(129));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t){e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(204),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(49);t.a=function(e,t,n){Object(r.a)(e,"[antd: ".concat(t,"] ").concat(n))}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var p=n(0),d=n(108),o=n(24),h=n(33);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||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}).apply(this,arguments)}function i(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),Object.defineProperty(e,r.key,r)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=["getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"],u=function(){function e(){var f;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(f=a(this,c(e).apply(this,arguments))).getPrefixCls=function(e,t){var n=f.props.prefixCls,r=void 0===n?"ant":n;return t||(e?"".concat(r,"-").concat(e):r)},f.renderProvider=function(e,t){var n=f.props,r=n.children,o=n.getPopupContainer,i=n.renderEmpty,a=n.csp,c=n.autoInsertSpaceInButton,l=n.locale,s=n.pageHeader,u=v(v({},e),{getPrefixCls:f.getPrefixCls,csp:a,autoInsertSpaceInButton:c});return o&&(u.getPopupContainer=o),i&&(u.renderEmpty=i),s&&(u.pageHeader=s),p.createElement(h.b.Provider,{value:u},p.createElement(d.b,{locale:l||t,_ANT_MARK__:d.a},r))},f}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(e,p["Component"]),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"render",value:function(){var r=this;return p.createElement(o.a,null,function(e,t,n){return p.createElement(h.a,null,function(e){return r.renderProvider(e,n)})})}}]),e}();t.b=u},function(e,t,n){"use strict";var r=n(3),o=n.n(r);t.a=function(e,t){for(var n=o()({},e),r=0;r<t.length;r++){delete n[t[r]]}return n}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(204),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}t.default=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}},function(e,t,n){"use strict";var r=n(496),o=n(104),i=n(42),a=n(512),c=n(75),l=n(171),s=n(174),u=n(244),f=n(513),p=n(246),d=n(126),h=n(40),v=n(242),y=n(28),m=n(182),b=n(260),g=n(90),O=n(573),w={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:v,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:l,SelectionState:g,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:s,DefaultDraftInlineStyle:u,convertFromHTML:n(258),convertFromRaw:n(576),convertToRaw:O,genKey:n(59),getDefaultKeyBinding:n(261),getVisibleSelectionRect:n(581)};e.exports=w},function(e,t,n){e.exports=function(){"use strict";var r=Array.prototype.slice;function e(e,t){if(t){e.prototype=Object.create(t.prototype)}e.prototype.constructor=e}function l(e){return u(e)?e:Y(e)}function c(e){return f(e)?e:G(e)}function s(e){return p(e)?e:X(e)}function o(e){return u(e)&&!d(e)?e:$(e)}function u(e){return!!(e&&e[t])}function f(e){return!!(e&&e[n])}function p(e){return!!(e&&e[i])}function d(e){return f(e)||p(e)}function h(e){return!!(e&&e[a])}e(c,l),e(s,l),e(o,l),l.isIterable=u,l.isKeyed=f,l.isIndexed=p,l.isAssociative=d,l.isOrdered=h,l.Keyed=c,l.Indexed=s,l.Set=o;var t="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_INDEXED__@@",a="@@__IMMUTABLE_ORDERED__@@",v="delete",g=5,y=1<<g,O=y-1,b={},m={value:false},w={value:false};function C(e){e.value=false;return e}function S(e){e&&(e.value=true)}function E(){}function k(e,t){t=t||0;var n=Math.max(0,e.length-t);var r=new Array(n);for(var o=0;o<n;o++){r[o]=e[o+t]}return r}function x(e){if(e.size===undefined){e.size=e.__iterate(P)}return e.size}function M(e,t){if(typeof t!=="number"){var n=t>>>0;if(""+n!==t||n===4294967295){return NaN}t=n}return t<0?x(e)+t:t}function P(){return true}function z(e,t,n){return(e===0||n!==undefined&&e<=-n)&&(t===undefined||n!==undefined&&t>=n)}function _(e,t){return T(e,t,0)}function j(e,t){return T(e,t,t)}function T(e,t,n){return e===undefined?n:e<0?Math.max(0,t+e):t===undefined?e:Math.min(t,e)}var N=0,V=1,L=2,H=typeof Symbol==="function"&&Symbol.iterator,D="@@iterator",A=H||D;function I(e){this.next=e}function F(e,t,n,r){var o=e===0?t:e===1?n:[t,n];r?r.value=o:r={value:o,done:false};return r}function R(){return{value:undefined,done:true}}function K(e){return!!U(e)}function B(e){return e&&typeof e.next==="function"}function W(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(H&&e[H]||e[D]);if(typeof t==="function"){return t}}function q(e){return e&&typeof e.length==="number"}function Y(e){return e===null||e===undefined?ae():u(e)?e.toSeq():se(e)}function G(e){return e===null||e===undefined?ae().toKeyedSeq():u(e)?f(e)?e.toSeq():e.fromEntrySeq():ce(e)}function X(e){return e===null||e===undefined?ae():!u(e)?le(e):f(e)?e.entrySeq():e.toIndexedSeq()}function $(e){return(e===null||e===undefined?ae():!u(e)?le(e):f(e)?e.entrySeq():e).toSetSeq()}I.prototype.toString=function(){return"[Iterator]"},I.KEYS=N,I.VALUES=V,I.ENTRIES=L,I.prototype.inspect=I.prototype.toSource=function(){return this.toString()},I.prototype[A]=function(){return this},e(Y,l),Y.of=function(){return Y(arguments)},Y.prototype.toSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq {","}")},Y.prototype.cacheResult=function(){if(!this._cache&&this.__iterateUncached){this._cache=this.entrySeq().toArray();this.size=this._cache.length}return this},Y.prototype.__iterate=function(e,t){return fe(this,e,t,true)},Y.prototype.__iterator=function(e,t){return pe(this,e,t,true)},e(G,Y),G.prototype.toKeyedSeq=function(){return this},e(X,Y),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return fe(this,e,t,false)},X.prototype.__iterator=function(e,t){return pe(this,e,t,false)},e($,Y),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},Y.isSeq=ie,Y.Keyed=G,Y.Set=$,Y.Indexed=X;var J="@@__IMMUTABLE_SEQ__@@",Q,Z,ee;function te(e){this._array=e;this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e;this._keys=t;this.size=t.length}function re(e){this._iterable=e;this.size=e.length||e.size}function oe(e){this._iterator=e;this._iteratorCache=[]}function ie(e){return!!(e&&e[J])}function ae(){return Q||(Q=new te([]))}function ce(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():B(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():typeof e==="object"?new ne(e):undefined;if(!t){throw new TypeError("Expected Array or iterable object of [k, v] entries, "+"or keyed object: "+e)}return t}function le(e){var t=ue(e);if(!t){throw new TypeError("Expected Array or iterable object of values: "+e)}return t}function se(e){var t=ue(e)||typeof e==="object"&&new ne(e);if(!t){throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e)}return t}function ue(e){return q(e)?new te(e):B(e)?new oe(e):K(e)?new re(e):undefined}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1;for(var a=0;a<=i;a++){var c=o[n?i-a:a];if(t(c[1],r?c[0]:a,e)===false){return a+1}}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1;var a=0;return new I(function(){var e=o[n?i-a:a];return a++>i?R():F(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ve(e)}function he(n,r,e,t){if(Array.isArray(r)){return n.call(t,e,X(r).map(function(e,t){return he(n,e,t,r)}))}if(ye(r)){return n.call(t,e,G(r).map(function(e,t){return he(n,e,t,r)}))}return r}function ve(e){if(Array.isArray(e)){return X(e).map(ve).toList()}if(ye(e)){return G(e).map(ve).toMap()}return e}function ye(e){return e&&(e.constructor===Object||e.constructor===undefined)}function me(e,t){if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}if(typeof e.valueOf==="function"&&typeof t.valueOf==="function"){e=e.valueOf();t=t.valueOf();if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}}if(typeof e.equals==="function"&&typeof t.equals==="function"&&e.equals(t)){return true}return false}function be(n,e){if(n===e){return true}if(!u(e)||n.size!==undefined&&e.size!==undefined&&n.size!==e.size||n.__hash!==undefined&&e.__hash!==undefined&&n.__hash!==e.__hash||f(n)!==f(e)||p(n)!==p(e)||h(n)!==h(e)){return false}if(n.size===0&&e.size===0){return true}var r=!d(n);if(h(n)){var o=n.entries();return e.every(function(e,t){var n=o.next().value;return n&&me(n[1],e)&&(r||me(n[0],t))})&&o.next().done}var i=false;if(n.size===undefined){if(e.size===undefined){if(typeof n.cacheResult==="function"){n.cacheResult()}}else{i=true;var t=n;n=e;e=t}}var a=true;var c=e.__iterate(function(e,t){if(r?!n.has(e):i?!me(e,n.get(t,b)):!me(n.get(t,b),e)){a=false;return false}});return a&&n.size===c}function ge(e,t){if(!(this instanceof ge)){return new ge(e,t)}this._value=e;this.size=t===undefined?Infinity:Math.max(0,t);if(this.size===0){if(Z){return Z}Z=this}}function Oe(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we)){return new we(e,t,n)}Oe(n!==0,"Cannot step a Range by 0");e=e||0;if(t===undefined){t=Infinity}n=n===undefined?1:Math.abs(n);if(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);if(this.size===0){if(ee){return ee}ee=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function Ee(){}function ke(){}Y.prototype[J]=true,e(te,X),te.prototype.get=function(e,t){return this.has(e)?this._array[M(this,e)]:t},te.prototype.__iterate=function(e,t){var n=this._array;var r=n.length-1;for(var o=0;o<=r;o++){if(e(n[t?r-o:o],o,this)===false){return o+1}}return o},te.prototype.__iterator=function(e,t){var n=this._array;var r=n.length-1;var o=0;return new I(function(){return o>r?R():F(e,o,n[t?r-o++:o++])})},e(ne,G),ne.prototype.get=function(e,t){if(t!==undefined&&!this.has(e)){return t}return this._object[e]},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){var n=this._object;var r=this._keys;var o=r.length-1;for(var i=0;i<=o;i++){var a=r[t?o-i:i];if(e(n[a],a,this)===false){return i+1}}return i},ne.prototype.__iterator=function(t,n){var r=this._object;var o=this._keys;var i=o.length-1;var a=0;return new I(function(){var e=o[n?i-a:a];return a++>i?R():F(t,e,r[e])})},ne.prototype[a]=true,e(re,X),re.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var n=this._iterable;var r=W(n);var o=0;if(B(r)){var i;while(!(i=r.next()).done){if(e(i.value,o++,this)===false){break}}}return o},re.prototype.__iteratorUncached=function(t,e){if(e){return this.cacheResult().__iterator(t,e)}var n=this._iterable;var r=W(n);if(!B(r)){return new I(R)}var o=0;return new I(function(){var e=r.next();return e.done?e:F(t,o++,e.value)})},e(oe,X),oe.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var n=this._iterator;var r=this._iteratorCache;var o=0;while(o<r.length){if(e(r[o],o++,this)===false){return o}}var i;while(!(i=n.next()).done){var a=i.value;r[o]=a;if(e(a,o++,this)===false){break}}return o},oe.prototype.__iteratorUncached=function(t,e){if(e){return this.cacheResult().__iterator(t,e)}var n=this._iterator;var r=this._iteratorCache;var o=0;return new I(function(){if(o>=r.length){var e=n.next();if(e.done){return e}r[o]=e.value}return F(t,o,r[o++])})},e(ge,X),ge.prototype.toString=function(){if(this.size===0){return"Repeat []"}return"Repeat [ "+this._value+" "+this.size+" times ]"},ge.prototype.get=function(e,t){return this.has(e)?this._value:t},ge.prototype.includes=function(e){return me(this._value,e)},ge.prototype.slice=function(e,t){var n=this.size;return z(e,t,n)?this:new ge(this._value,j(t,n)-_(e,n))},ge.prototype.reverse=function(){return this},ge.prototype.indexOf=function(e){if(me(this._value,e)){return 0}return-1},ge.prototype.lastIndexOf=function(e){if(me(this._value,e)){return this.size}return-1},ge.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++){if(e(this._value,n,this)===false){return n+1}}return n},ge.prototype.__iterator=function(e,t){var n=this;var r=0;return new I(function(){return r<n.size?F(e,r++,n._value):R()})},ge.prototype.equals=function(e){return e instanceof ge?me(this._value,e._value):be(e)},e(we,X),we.prototype.toString=function(){if(this.size===0){return"Range []"}return"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+M(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){if(z(e,t,this.size)){return this}e=_(e,this.size);t=j(t,this.size);if(t<=e){return new we(0,0)}return new we(this.get(e,this._end),this.get(t,this._end),this._step)},we.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},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){var n=this.size-1;var r=this._step;var o=t?this._start+n*r:this._start;for(var i=0;i<=n;i++){if(e(o,i,this)===false){return i+1}o+=t?-r:r}return i},we.prototype.__iterator=function(t,n){var r=this.size-1;var o=this._step;var i=n?this._start+r*o:this._start;var a=0;return new I(function(){var e=i;i+=n?-o:o;return a>r?R():F(t,a++,e)})},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:be(this,e)},e(Ce,l),e(Se,Ce),e(Ee,Ce),e(ke,Ce),Ce.Keyed=Se,Ce.Indexed=Ee,Ce.Set=ke;var xe=typeof Math.imul==="function"&&Math.imul(4294967295,2)===-2?Math.imul:function e(t,n){t=t|0;n=n|0;var r=t&65535;var o=n&65535;return r*o+((t>>>16)*o+r*(n>>>16)<<16>>>0)|0};function Me(e){return e>>>1&1073741824|e&3221225471}function Pe(e){if(e===false||e===null||e===undefined){return 0}if(typeof e.valueOf==="function"){e=e.valueOf();if(e===false||e===null||e===undefined){return 0}}if(e===true){return 1}var t=typeof e;if(t==="number"){var n=e|0;if(n!==e){n^=e*4294967295}while(e>4294967295){e/=4294967295;n^=e}return Me(n)}if(t==="string"){return e.length>Ie?ze(e):_e(e)}if(typeof e.hashCode==="function"){return e.hashCode()}if(t==="object"){return je(e)}if(typeof e.toString==="function"){return _e(e.toString())}throw new Error("Value type "+t+" cannot be hashed.")}function ze(e){var t=Ke[e];if(t===undefined){t=_e(e);if(Re===Fe){Re=0;Ke={}}Re++;Ke[e]=t}return t}function _e(e){var t=0;for(var n=0;n<e.length;n++){t=31*t+e.charCodeAt(n)|0}return Me(t)}function je(e){var t;if(Le){t=He.get(e);if(t!==undefined){return t}}t=e[Ae];if(t!==undefined){return t}if(!Ne){t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ae];if(t!==undefined){return t}t=Ve(e);if(t!==undefined){return t}}t=++De;if(De&1073741824){De=0}if(Le){He.set(e,t)}else if(Te!==undefined&&Te(e)===false){throw new Error("Non-extensible objects are not allowed as keys.")}else if(Ne){Object.defineProperty(e,Ae,{enumerable:false,configurable:false,writable:false,value:t})}else if(e.propertyIsEnumerable!==undefined&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable){e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)};e.propertyIsEnumerable[Ae]=t}else if(e.nodeType!==undefined){e[Ae]=t}else{throw new Error("Unable to set a non-enumerable property on object.")}return t}var Te=Object.isExtensible,Ne=function(){try{Object.defineProperty({},"@",{});return true}catch(e){return false}}();function Ve(e){if(e&&e.nodeType>0){switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}}var Le=typeof WeakMap==="function",He;if(Le){He=new WeakMap}var De=0,Ae="__immutablehash__";if(typeof Symbol==="function"){Ae=Symbol(Ae)}var Ie=16,Fe=255,Re=0,Ke={};function Be(e){Oe(e!==Infinity,"Cannot perform this action with an infinite size.")}function We(t){return t===null||t===undefined?ot():Ue(t)&&!h(t)?t:ot().withMutations(function(n){var e=c(t);Be(e.size);e.forEach(function(e,t){return n.set(t,e)})})}function Ue(e){return!!(e&&e[qe])}e(We,Se),We.prototype.toString=function(){return this.__toString("Map {","}")},We.prototype.get=function(e,t){return this._root?this._root.get(0,undefined,e,t):t},We.prototype.set=function(e,t){return it(this,e,t)},We.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},We.prototype.remove=function(e){return it(this,e,b)},We.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},We.prototype.update=function(e,t,n){return arguments.length===1?e(this):this.updateIn([e],t,n)},We.prototype.updateIn=function(e,t,n){if(!n){n=t;t=undefined}var r=yt(this,Cn(e),t,n);return r===b?undefined:r},We.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._root=null;this.__hash=undefined;this.__altered=true;return this}return ot()},We.prototype.merge=function(){return pt(this,undefined,arguments)},We.prototype.mergeWith=function(e){var t=r.call(arguments,1);return pt(this,e,t)},We.prototype.mergeIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,ot(),function(e){return typeof e.merge==="function"?e.merge.apply(e,t):t[t.length-1]})},We.prototype.mergeDeep=function(){return pt(this,dt,arguments)},We.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return pt(this,ht(e),t)},We.prototype.mergeDeepIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,ot(),function(e){return typeof e.mergeDeep==="function"?e.mergeDeep.apply(e,t):t[t.length-1]})},We.prototype.sort=function(e){return Kt(fn(this,e))},We.prototype.sortBy=function(e,t){return Kt(fn(this,t,e))},We.prototype.withMutations=function(e){var t=this.asMutable();e(t);return t.wasAltered()?t.__ensureOwner(this.__ownerID):this},We.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},We.prototype.asImmutable=function(){return this.__ensureOwner()},We.prototype.wasAltered=function(){return this.__altered},We.prototype.__iterator=function(e,t){return new et(this,e,t)},We.prototype.__iterate=function(t,e){var n=this;var r=0;this._root&&this._root.iterate(function(e){r++;return t(e[1],e[0],n)},e);return r},We.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;this.__altered=false;return this}return rt(this.size,this._root,e,this.__hash)},We.isMap=Ue;var qe="@@__IMMUTABLE_MAP__@@",Ye=We.prototype,Ge;function Xe(e,t){this.ownerID=e;this.entries=t}function $e(e,t,n){this.ownerID=e;this.bitmap=t;this.nodes=n}function Je(e,t,n){this.ownerID=e;this.count=t;this.nodes=n}function Qe(e,t,n){this.ownerID=e;this.keyHash=t;this.entries=n}function Ze(e,t,n){this.ownerID=e;this.keyHash=t;this.entry=n}function et(e,t,n){this._type=t;this._reverse=n;this._stack=e._root&&nt(e._root)}function tt(e,t){return F(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ye);o.size=e;o._root=t;o.__ownerID=n;o.__hash=r;o.__altered=false;return o}function ot(){return Ge||(Ge=rt(0))}function it(e,t,n){var r;var o;if(!e._root){if(n===b){return e}o=1;r=new Xe(e.__ownerID,[[t,n]])}else{var i=C(m);var a=C(w);r=at(e._root,e.__ownerID,0,undefined,t,n,i,a);if(!a.value){return e}o=e.size+(i.value?n===b?-1:1:0)}if(e.__ownerID){e.size=o;e._root=r;e.__hash=undefined;e.__altered=true;return e}return r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,c){if(!e){if(i===b){return e}S(c);S(a);return new Ze(t,r,[o,i])}return e.update(t,n,r,o,i,a,c)}function ct(e){return e.constructor===Ze||e.constructor===Qe}function lt(e,t,n,r,o){if(e.keyHash===r){return new Qe(t,r,[e.entry,o])}var i=(n===0?e.keyHash:e.keyHash>>>n)&O;var a=(n===0?r:r>>>n)&O;var c;var l=i===a?[lt(e,t,n+g,r,o)]:(c=new Ze(t,r,o),i<a?[e,c]:[c,e]);return new $e(t,1<<i|1<<a,l)}function st(e,t,n,r){if(!e){e=new E}var o=new Ze(e,Pe(n),[n,r]);for(var i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,undefined,a[0],a[1])}return o}function ut(e,t,n,r){var o=0;var i=0;var a=new Array(n);for(var c=0,l=1,s=t.length;c<s;c++,l<<=1){var u=t[c];if(u!==undefined&&c!==r){o|=l;a[i++]=u}}return new $e(e,o,a)}function ft(e,t,n,r,o){var i=0;var a=new Array(y);for(var c=0;n!==0;c++,n>>>=1){a[c]=n&1?t[i++]:undefined}a[r]=o;return new Je(e,i+1,a)}function pt(e,t,n){var r=[];for(var o=0;o<n.length;o++){var i=n[o];var a=c(i);if(!u(i)){a=a.map(function(e){return de(e)})}r.push(a)}return vt(e,t,r)}function dt(e,t,n){return e&&e.mergeDeep&&u(t)?e.mergeDeep(t):me(e,t)?e:t}function ht(o){return function(e,t,n){if(e&&e.mergeDeepWith&&u(t)){return e.mergeDeepWith(o,t)}var r=o(e,t,n);return me(e,r)?e:r}}function vt(e,o,n){n=n.filter(function(e){return e.size!==0});if(n.length===0){return e}if(e.size===0&&!e.__ownerID&&n.length===1){return e.constructor(n[0])}return e.withMutations(function(r){var e=o?function(t,n){r.update(n,b,function(e){return e===b?t:o(e,t,n)})}:function(e,t){r.set(t,e)};for(var t=0;t<n.length;t++){n[t].forEach(e)}})}function yt(e,t,n,r){var o=e===b;var i=t.next();if(i.done){var a=o?n:e;var c=r(a);return c===a?e:c}Oe(o||e&&e.set,"invalid keyPath");var l=i.value;var s=o?b:e.get(l,b);var u=yt(s,t,n,r);return u===s?e:u===b?e.remove(l):(o?ot():e).set(l,u)}function mt(e){e=e-(e>>1&1431655765);e=(e&858993459)+(e>>2&858993459);e=e+(e>>4)&252645135;e=e+(e>>8);e=e+(e>>16);return e&127}function bt(e,t,n,r){var o=r?e:k(e);o[t]=n;return o}function gt(e,t,n,r){var o=e.length+1;if(r&&t+1===o){e[t]=n;return e}var i=new Array(o);var a=0;for(var c=0;c<o;c++){if(c===t){i[c]=n;a=-1}else{i[c]=e[c+a]}}return i}function Ot(e,t,n){var r=e.length-1;if(n&&t===r){e.pop();return e}var o=new Array(r);var i=0;for(var a=0;a<r;a++){if(a===t){i=1}o[a]=e[a+i]}return o}Ye[qe]=true,Ye[v]=Ye.remove,Ye.removeIn=Ye.deleteIn,Xe.prototype.get=function(e,t,n,r){var o=this.entries;for(var i=0,a=o.length;i<a;i++){if(me(n,o[i][0])){return o[i][1]}}return r},Xe.prototype.update=function(e,t,n,r,o,i,a){var c=o===b;var l=this.entries;var s=0;for(var u=l.length;s<u;s++){if(me(r,l[s][0])){break}}var f=s<u;if(f?l[s][1]===o:c){return this}S(a);(c||!f)&&S(i);if(c&&l.length===1){return}if(!f&&!c&&l.length>=wt){return st(e,l,r,o)}var p=e&&e===this.ownerID;var d=p?l:k(l);if(f){if(c){s===u-1?d.pop():d[s]=d.pop()}else{d[s]=[r,o]}}else{d.push([r,o])}if(p){this.entries=d;return this}return new Xe(e,d)},$e.prototype.get=function(e,t,n,r){if(t===undefined){t=Pe(n)}var o=1<<((e===0?t:t>>>e)&O);var i=this.bitmap;return(i&o)===0?r:this.nodes[mt(i&o-1)].get(e+g,t,n,r)},$e.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Pe(r)}var c=(t===0?n:n>>>t)&O;var l=1<<c;var s=this.bitmap;var u=(s&l)!==0;if(!u&&o===b){return this}var f=mt(s&l-1);var p=this.nodes;var d=u?p[f]:undefined;var h=at(d,e,t+g,n,r,o,i,a);if(h===d){return this}if(!u&&h&&p.length>=Ct){return ft(e,p,s,c,h)}if(u&&!h&&p.length===2&&ct(p[f^1])){return p[f^1]}if(u&&h&&p.length===1&&ct(h)){return h}var v=e&&e===this.ownerID;var y=u?h?s:s^l:s|l;var m=u?h?bt(p,f,h,v):Ot(p,f,v):gt(p,f,h,v);if(v){this.bitmap=y;this.nodes=m;return this}return new $e(e,y,m)},Je.prototype.get=function(e,t,n,r){if(t===undefined){t=Pe(n)}var o=(e===0?t:t>>>e)&O;var i=this.nodes[o];return i?i.get(e+g,t,n,r):r},Je.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Pe(r)}var c=(t===0?n:n>>>t)&O;var l=o===b;var s=this.nodes;var u=s[c];if(l&&!u){return this}var f=at(u,e,t+g,n,r,o,i,a);if(f===u){return this}var p=this.count;if(!u){p++}else if(!f){p--;if(p<St){return ut(e,s,p,c)}}var d=e&&e===this.ownerID;var h=bt(s,c,f,d);if(d){this.count=p;this.nodes=h;return this}return new Je(e,p,h)},Qe.prototype.get=function(e,t,n,r){var o=this.entries;for(var i=0,a=o.length;i<a;i++){if(me(n,o[i][0])){return o[i][1]}}return r},Qe.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Pe(r)}var c=o===b;if(n!==this.keyHash){if(c){return this}S(a);S(i);return lt(this,e,t,n,[r,o])}var l=this.entries;var s=0;for(var u=l.length;s<u;s++){if(me(r,l[s][0])){break}}var f=s<u;if(f?l[s][1]===o:c){return this}S(a);(c||!f)&&S(i);if(c&&u===2){return new Ze(e,this.keyHash,l[s^1])}var p=e&&e===this.ownerID;var d=p?l:k(l);if(f){if(c){s===u-1?d.pop():d[s]=d.pop()}else{d[s]=[r,o]}}else{d.push([r,o])}if(p){this.entries=d;return this}return new Qe(e,this.keyHash,d)},Ze.prototype.get=function(e,t,n,r){return me(n,this.entry[0])?this.entry[1]:r},Ze.prototype.update=function(e,t,n,r,o,i,a){var c=o===b;var l=me(r,this.entry[0]);if(l?o===this.entry[1]:c){return this}S(a);if(c){S(i);return}if(l){if(e&&e===this.ownerID){this.entry[1]=o;return this}return new Ze(e,this.keyHash,[r,o])}S(i);return lt(this,e,t,Pe(r),[r,o])},Xe.prototype.iterate=Qe.prototype.iterate=function(e,t){var n=this.entries;for(var r=0,o=n.length-1;r<=o;r++){if(e(n[t?o-r:r])===false){return false}}},$e.prototype.iterate=Je.prototype.iterate=function(e,t){var n=this.nodes;for(var r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&i.iterate(e,t)===false){return false}}},Ze.prototype.iterate=function(e,t){return e(this.entry)},e(et,I),et.prototype.next=function(){var e=this._type;var t=this._stack;while(t){var n=t.node;var r=t.index++;var o;if(n.entry){if(r===0){return tt(e,n.entry)}}else if(n.entries){o=n.entries.length-1;if(r<=o){return tt(e,n.entries[this._reverse?o-r:r])}}else{o=n.nodes.length-1;if(r<=o){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry){return tt(e,i.entry)}t=this._stack=nt(i,t)}continue}}t=this._stack=this._stack.__prev}return R()};var wt=y/4,Ct=y/2,St=y/4;function Et(e){var t=Vt();if(e===null||e===undefined){return t}if(kt(e)){return e}var r=s(e);var o=r.size;if(o===0){return t}Be(o);if(o>0&&o<y){return Nt(0,o,g,null,new Pt(r.toArray()))}return t.withMutations(function(n){n.setSize(o);r.forEach(function(e,t){return n.set(t,e)})})}function kt(e){return!!(e&&e[xt])}e(Et,Ee),Et.of=function(){return this(arguments)},Et.prototype.toString=function(){return this.__toString("List [","]")},Et.prototype.get=function(e,t){e=M(this,e);if(e>=0&&e<this.size){e+=this._origin;var n=At(this,e);return n&&n.array[e&O]}return t},Et.prototype.set=function(e,t){return Lt(this,e,t)},Et.prototype.remove=function(e){return!this.has(e)?this:e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1)},Et.prototype.insert=function(e,t){return this.splice(e,0,t)},Et.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=this._origin=this._capacity=0;this._level=g;this._root=this._tail=null;this.__hash=undefined;this.__altered=true;return this}return Vt()},Et.prototype.push=function(){var n=arguments;var r=this.size;return this.withMutations(function(e){It(e,0,r+n.length);for(var t=0;t<n.length;t++){e.set(r+t,n[t])}})},Et.prototype.pop=function(){return It(this,0,-1)},Et.prototype.unshift=function(){var n=arguments;return this.withMutations(function(e){It(e,-n.length);for(var t=0;t<n.length;t++){e.set(t,n[t])}})},Et.prototype.shift=function(){return It(this,1)},Et.prototype.merge=function(){return Ft(this,undefined,arguments)},Et.prototype.mergeWith=function(e){var t=r.call(arguments,1);return Ft(this,e,t)},Et.prototype.mergeDeep=function(){return Ft(this,dt,arguments)},Et.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return Ft(this,ht(e),t)},Et.prototype.setSize=function(e){return It(this,0,e)},Et.prototype.slice=function(e,t){var n=this.size;if(z(e,t,n)){return this}return It(this,_(e,n),j(t,n))},Et.prototype.__iterator=function(t,e){var n=0;var r=Tt(this,e);return new I(function(){var e=r();return e===zt?R():F(t,n++,e)})},Et.prototype.__iterate=function(e,t){var n=0;var r=Tt(this,t);var o;while((o=r())!==zt){if(e(o,n++,this)===false){break}}return n},Et.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;return this}return Nt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash)},Et.isList=kt;var xt="@@__IMMUTABLE_LIST__@@",Mt=Et.prototype;function Pt(e,t){this.array=e;this.ownerID=t}Mt[xt]=true,Mt[v]=Mt.remove,Mt.setIn=Ye.setIn,Mt.deleteIn=Mt.removeIn=Ye.removeIn,Mt.update=Ye.update,Mt.updateIn=Ye.updateIn,Mt.mergeIn=Ye.mergeIn,Mt.mergeDeepIn=Ye.mergeDeepIn,Mt.withMutations=Ye.withMutations,Mt.asMutable=Ye.asMutable,Mt.asImmutable=Ye.asImmutable,Mt.wasAltered=Ye.wasAltered,Pt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:false||this.array.length===0){return this}var r=n>>>t&O;if(r>=this.array.length){return new Pt([],e)}var o=r===0;var i;if(t>0){var a=this.array[r];i=a&&a.removeBefore(e,t-g,n);if(i===a&&o){return this}}if(o&&!i){return this}var c=Dt(this,e);if(!o){for(var l=0;l<r;l++){c.array[l]=undefined}}if(i){c.array[r]=i}return c},Pt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||this.array.length===0){return this}var r=n-1>>>t&O;if(r>=this.array.length){return this}var o;if(t>0){var i=this.array[r];o=i&&i.removeAfter(e,t-g,n);if(o===i&&r===this.array.length-1){return this}}var a=Dt(this,e);a.array.splice(r+1);if(o){a.array[r]=o}return a};var zt={},_t,jt;function Tt(e,l){var s=e._origin;var u=e._capacity;var i=Rt(u);var a=e._tail;return f(e._root,e._level,0);function f(e,t,n){return t===0?r(e,n):o(e,t,n)}function r(e,t){var n=t===i?a&&a.array:e&&e.array;var r=t>s?0:s-t;var o=u-t;if(o>y){o=y}return function(){if(r===o){return zt}var e=l?--o:r++;return n&&n[e]}}function o(e,n,r){var o;var i=e&&e.array;var a=r>s?0:s-r>>n;var c=(u-r>>n)+1;if(c>y){c=y}return function(){do{if(o){var e=o();if(e!==zt){return e}o=null}if(a===c){return zt}var t=l?--c:a++;o=f(i&&i[t],n-g,r+(t<<n))}while(true)}}}function Nt(e,t,n,r,o,i,a){var c=Object.create(Mt);c.size=t-e;c._origin=e;c._capacity=t;c._level=n;c._root=r;c._tail=o;c.__ownerID=i;c.__hash=a;c.__altered=false;return c}function Vt(){return _t||(_t=Nt(0,0,g))}function Lt(e,t,n){t=M(e,t);if(t!==t){return e}if(t>=e.size||t<0){return e.withMutations(function(e){t<0?It(e,t).set(0,n):It(e,0,t+1).set(t,n)})}t+=e._origin;var r=e._tail;var o=e._root;var i=C(w);if(t>=Rt(e._capacity)){r=Ht(r,e.__ownerID,0,t,n,i)}else{o=Ht(o,e.__ownerID,e._level,t,n,i)}if(!i.value){return e}if(e.__ownerID){e._root=o;e._tail=r;e.__hash=undefined;e.__altered=true;return e}return Nt(e._origin,e._capacity,e._level,o,r)}function Ht(e,t,n,r,o,i){var a=r>>>n&O;var c=e&&a<e.array.length;if(!c&&o===undefined){return e}var l;if(n>0){var s=e&&e.array[a];var u=Ht(s,t,n-g,r,o,i);if(u===s){return e}l=Dt(e,t);l.array[a]=u;return l}if(c&&e.array[a]===o){return e}S(i);l=Dt(e,t);if(o===undefined&&a===l.array.length-1){l.array.pop()}else{l.array[a]=o}return l}function Dt(e,t){if(t&&e&&t===e.ownerID){return e}return new Pt(e?e.array.slice():[],t)}function At(e,t){if(t>=Rt(e._capacity)){return e._tail}if(t<1<<e._level+g){var n=e._root;var r=e._level;while(n&&r>0){n=n.array[t>>>r&O];r-=g}return n}}function It(e,t,n){if(t!==undefined){t=t|0}if(n!==undefined){n=n|0}var r=e.__ownerID||new E;var o=e._origin;var i=e._capacity;var a=o+t;var c=n===undefined?i:n<0?i+n:o+n;if(a===o&&c===i){return e}if(a>=c){return e.clear()}var l=e._level;var s=e._root;var u=0;while(a+u<0){s=new Pt(s&&s.array.length?[undefined,s]:[],r);l+=g;u+=1<<l}if(u){a+=u;o+=u;c+=u;i+=u}var f=Rt(i);var p=Rt(c);while(p>=1<<l+g){s=new Pt(s&&s.array.length?[s]:[],r);l+=g}var d=e._tail;var h=p<f?At(e,c-1):p>f?new Pt([],r):d;if(d&&p>f&&a<i&&d.array.length){s=Dt(s,r);var v=s;for(var y=l;y>g;y-=g){var m=f>>>y&O;v=v.array[m]=Dt(v.array[m],r)}v.array[f>>>g&O]=d}if(c<i){h=h&&h.removeAfter(r,0,c)}if(a>=p){a-=p;c-=p;l=g;s=null;h=h&&h.removeBefore(r,0,a)}else if(a>o||p<f){u=0;while(s){var b=a>>>l&O;if(b!==p>>>l&O){break}if(b){u+=(1<<l)*b}l-=g;s=s.array[b]}if(s&&a>o){s=s.removeBefore(r,l,a-u)}if(s&&p<f){s=s.removeAfter(r,l,p-u)}if(u){a-=u;c-=u}}if(e.__ownerID){e.size=c-a;e._origin=a;e._capacity=c;e._level=l;e._root=s;e._tail=h;e.__hash=undefined;e.__altered=true;return e}return Nt(a,c,l,s,h)}function Ft(e,t,n){var r=[];var o=0;for(var i=0;i<n.length;i++){var a=n[i];var c=s(a);if(c.size>o){o=c.size}if(!u(a)){c=c.map(function(e){return de(e)})}r.push(c)}if(o>e.size){e=e.setSize(o)}return vt(e,t,r)}function Rt(e){return e<y?0:e-1>>>g<<g}function Kt(t){return t===null||t===undefined?Ut():Bt(t)?t:Ut().withMutations(function(n){var e=c(t);Be(e.size);e.forEach(function(e,t){return n.set(t,e)})})}function Bt(e){return Ue(e)&&h(e)}function Wt(e,t,n,r){var o=Object.create(Kt.prototype);o.size=e?e.size:0;o._map=e;o._list=t;o.__ownerID=n;o.__hash=r;return o}function Ut(){return jt||(jt=Wt(ot(),Vt()))}function qt(e,t,n){var r=e._map;var o=e._list;var i=r.get(t);var a=i!==undefined;var c;var l;if(n===b){if(!a){return e}if(o.size>=y&&o.size>=r.size*2){l=o.filter(function(e,t){return e!==undefined&&i!==t});c=l.toKeyedSeq().map(function(e){return e[0]}).flip().toMap();if(e.__ownerID){c.__ownerID=l.__ownerID=e.__ownerID}}else{c=r.remove(t);l=i===o.size-1?o.pop():o.set(i,undefined)}}else{if(a){if(n===o.get(i)[1]){return e}c=r;l=o.set(i,[t,n])}else{c=r.set(t,o.size);l=o.set(o.size,[t,n])}}if(e.__ownerID){e.size=c.size;e._map=c;e._list=l;e.__hash=undefined;return e}return Wt(c,l)}function Yt(e,t){this._iter=e;this._useKeys=t;this.size=e.size}function Gt(e){this._iter=e;this.size=e.size}function Xt(e){this._iter=e;this.size=e.size}function $t(e){this._iter=e;this.size=e.size}function Jt(o){var e=gn(o);e._iter=o;e.size=o.size;e.flip=function(){return o};e.reverse=function(){var e=o.reverse.apply(this);e.flip=function(){return o.reverse()};return e};e.has=function(e){return o.includes(e)};e.includes=function(e){return o.has(e)};e.cacheResult=On;e.__iterateUncached=function(n,e){var r=this;return o.__iterate(function(e,t){return n(t,e,r)!==false},e)};e.__iteratorUncached=function(e,t){if(e===L){var n=o.__iterator(e,t);return new I(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1];e.value[1]=t}return e})}return o.__iterator(e===V?N:V,t)};return e}function Qt(i,a,c){var e=gn(i);e.size=i.size;e.has=function(e){return i.has(e)};e.get=function(e,t){var n=i.get(e,b);return n===b?t:a.call(c,n,e,i)};e.__iterateUncached=function(r,e){var o=this;return i.__iterate(function(e,t,n){return r(a.call(c,e,t,n),t,o)!==false},e)};e.__iteratorUncached=function(r,e){var o=i.__iterator(L,e);return new I(function(){var e=o.next();if(e.done){return e}var t=e.value;var n=t[0];return F(r,n,a.call(c,t[1],n,i),e)})};return e}function Zt(o,n){var e=gn(o);e._iter=o;e.size=o.size;e.reverse=function(){return o};if(o.flip){e.flip=function(){var e=Jt(o);e.reverse=function(){return o.flip()};return e}}e.get=function(e,t){return o.get(n?e:-1-e,t)};e.has=function(e){return o.has(n?e:-1-e)};e.includes=function(e){return o.includes(e)};e.cacheResult=On;e.__iterate=function(n,e){var r=this;return o.__iterate(function(e,t){return n(e,t,r)},!e)};e.__iterator=function(e,t){return o.__iterator(e,!t)};return e}function en(c,l,s,u){var e=gn(c);if(u){e.has=function(e){var t=c.get(e,b);return t!==b&&!!l.call(s,t,e,c)};e.get=function(e,t){var n=c.get(e,b);return n!==b&&l.call(s,n,e,c)?n:t}}e.__iterateUncached=function(r,e){var o=this;var i=0;c.__iterate(function(e,t,n){if(l.call(s,e,t,n)){i++;return r(e,u?t:i-1,o)}},e);return i};e.__iteratorUncached=function(o,e){var i=c.__iterator(L,e);var a=0;return new I(function(){while(true){var e=i.next();if(e.done){return e}var t=e.value;var n=t[0];var r=t[1];if(l.call(s,r,n,c)){return F(o,u?n:a++,r,e)}}})};return e}function tn(n,r,o){var i=We().asMutable();n.__iterate(function(e,t){i.update(r.call(o,e,t,n),0,function(e){return e+1})});return i.asImmutable()}function nn(r,e,o){var i=f(r);var a=(h(r)?Kt():We()).asMutable();r.__iterate(function(t,n){a.update(e.call(o,t,n,r),function(e){return e=e||[],e.push(i?[n,t]:t),e})});var t=bn(r);return a.map(function(e){return vn(r,t(e))})}function rn(c,e,t,l){var n=c.size;if(e!==undefined){e=e|0}if(t!==undefined){t=t|0}if(z(e,t,n)){return c}var s=_(e,n);var r=j(t,n);if(s!==s||r!==r){return rn(c.toSeq().cacheResult(),e,t,l)}var o=r-s;var u;if(o===o){u=o<0?0:o}var i=gn(c);i.size=u===0?u:c.size&&u||undefined;if(!l&&ie(c)&&u>=0){i.get=function(e,t){e=M(this,e);return e>=0&&e<u?c.get(e+s,t):t}}i.__iterateUncached=function(n,e){var r=this;if(u===0){return 0}if(e){return this.cacheResult().__iterate(n,e)}var o=0;var i=true;var a=0;c.__iterate(function(e,t){if(!(i&&(i=o++<s))){a++;return n(e,l?t:a-1,r)!==false&&a!==u}});return a};i.__iteratorUncached=function(t,e){if(u!==0&&e){return this.cacheResult().__iterator(t,e)}var n=u!==0&&c.__iterator(t,e);var r=0;var o=0;return new I(function(){while(r++<s){n.next()}if(++o>u){return R()}var e=n.next();if(l||t===V){return e}else if(t===N){return F(t,o-1,undefined,e)}else{return F(t,o-1,e.value[1],e)}})};return i}function on(t,l,s){var e=gn(t);e.__iterateUncached=function(r,e){var o=this;if(e){return this.cacheResult().__iterate(r,e)}var i=0;t.__iterate(function(e,t,n){return l.call(s,e,t,n)&&++i&&r(e,t,o)});return i};e.__iteratorUncached=function(o,e){var i=this;if(e){return this.cacheResult().__iterator(o,e)}var a=t.__iterator(L,e);var c=true;return new I(function(){if(!c){return R()}var e=a.next();if(e.done){return e}var t=e.value;var n=t[0];var r=t[1];if(!l.call(s,r,n,i)){c=false;return R()}return o===L?e:F(o,n,r,e)})};return e}function an(t,s,u,f){var e=gn(t);e.__iterateUncached=function(r,e){var o=this;if(e){return this.cacheResult().__iterate(r,e)}var i=true;var a=0;t.__iterate(function(e,t,n){if(!(i&&(i=s.call(u,e,t,n)))){a++;return r(e,f?t:a-1,o)}});return a};e.__iteratorUncached=function(o,e){var i=this;if(e){return this.cacheResult().__iterator(o,e)}var a=t.__iterator(L,e);var c=true;var l=0;return new I(