UNPKG

real-name-pc

Version:
10 lines (7 loc) 409 kB
/** * @author: liuyang9 * @version: v1.0.33 * @description: 防沉迷pc端sdk */ /*! For license information please see real-name-pc.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.RealNamePc=t():e.RealNamePc=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=180)}([function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(6),o=n(16),i=n(24),u=n(20),a=n(31),c=function(e,t,n){var s,l,f,p,h=e&c.F,d=e&c.G,v=e&c.S,y=e&c.P,m=e&c.B,g=d?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=d?o:o[t]||(o[t]={}),_=b.prototype||(b.prototype={});for(s in d&&(n=t),n)f=((l=!h&&g&&void 0!==g[s])?g:n)[s],p=m&&l?a(f,r):y&&"function"==typeof f?a(Function.call,f):f,g&&u(g,s,f,e&c.U),b[s]!=f&&i(b,s,p),y&&_[s]!=f&&(_[s]=f)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){"use strict";e.exports=n(366)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(402),o=n(403),i=n(166),u=n(404);e.exports=function(e){return r(e)||o(e)||i(e)||u()}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(405);e.exports=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&&r(e,t)}},function(e,t,n){var r=n(151),o=n(406);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){var r=n(70)("wks"),o=n(43),i=n(6).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(33),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){!function(e){"use strict";var t={};function n(e){e&&(e.value=!0)}function r(){}function o(e){return void 0===e.size&&(e.size=e.__iterate(u)),e.size}function i(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?o(e)+t:t}function u(){return!0}function a(e,t,n){return(0===e&&!f(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function c(e,t){return l(e,t,0)}function s(e,t){return l(e,t,t)}function l(e,t,n){return void 0===e?n:f(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function f(e){return e<0||0===e&&1/e==-1/0}function p(e){return Boolean(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function h(e){return Boolean(e&&e["@@__IMMUTABLE_KEYED__@@"])}function d(e){return Boolean(e&&e["@@__IMMUTABLE_INDEXED__@@"])}function v(e){return h(e)||d(e)}var y=function(e){return p(e)?e:L(e)},m=function(e){function t(e){return h(e)?e:D(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(y),g=function(e){function t(e){return d(e)?e:F(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(y),b=function(e){function t(e){return p(e)&&!v(e)?e:z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(y);function _(e){return Boolean(e&&e["@@__IMMUTABLE_SEQ__@@"])}function w(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function x(e){return p(e)||w(e)}y.Keyed=m,y.Indexed=g,y.Set=b;var S="@@__IMMUTABLE_ORDERED__@@";function k(e){return Boolean(e&&e[S])}var E="function"==typeof Symbol&&Symbol.iterator,T=E||"@@iterator",P=function(e){this.next=e};function O(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 C(){return{value:void 0,done:!0}}function N(e){return!!R(e)}function I(e){return e&&"function"==typeof e.next}function M(e){var t=R(e);return t&&t.call(e)}function R(e){var t=e&&(E&&e[E]||e["@@iterator"]);if("function"==typeof t)return t}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[T]=function(){return this};var A=Object.prototype.hasOwnProperty;function j(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var L=function(e){function t(e){return null==e?H():x(e)?e.toSeq():function(e){var t=K(e);if(t)return t;if("object"==typeof e)return new U(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new P((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return O(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(y),D=function(e){function t(e){return null==e?H().toKeyedSeq():p(e)?h(e)?e.toSeq():e.fromEntrySeq():w(e)?e.toSeq():V(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(L),F=function(e){function t(e){return null==e?H():p(e)?h(e)?e.entrySeq():e.toIndexedSeq():w(e)?e.toSeq().entrySeq():$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(L),z=function(e){function t(e){return(p(e)&&!v(e)?e:F(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(L);L.isSeq=_,L.Keyed=D,L.Set=z,L.Indexed=F,L.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var B=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[i(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new P((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return O(e,i,n[i])}))},t}(F),U=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return A.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var u=r[t?o-++i:i++];if(!1===e(n[u],u,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new P((function(){if(i===o)return{value:void 0,done:!0};var u=r[t?o-++i:i++];return O(e,u,n[u])}))},t}(D);U.prototype[S]=!0;var q,W=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=M(this._collection),r=0;if(I(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=M(this._collection);if(!I(n))return new P(C);var r=0;return new P((function(){var t=n.next();return t.done?t:O(e,r++,t.value)}))},t}(F);function H(){return q||(q=new B([]))}function V(e){var t=Array.isArray(e)?new B(e):N(e)?new W(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new U(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function $(e){var t=K(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function K(e){return j(e)?new B(e):N(e)?new W(e):void 0}function Q(e){return Boolean(e&&e["@@__IMMUTABLE_MAP__@@"])}function G(e){return Q(e)&&k(e)}function Y(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function J(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(Y(e)&&Y(t)&&e.equals(t))}var X="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Z(e){return e>>>1&1073741824|3221225471&e}var ee=Object.prototype.valueOf;function te(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return Z(t)}(e);case"string":return e.length>se?(void 0===(n=pe[t=e])&&(n=ne(t),fe===le&&(fe=0,pe={}),fe++,pe[t]=n),n):ne(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?Z(e.hashCode(e)):(e.valueOf!==ee&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(ue&&void 0!==(t=re.get(e)))return t;if(void 0!==(t=e[ce]))return t;if(!ie){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ce]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++ae,1073741824&ae&&(ae=0),ue)re.set(e,t);else{if(void 0!==oe&&!1===oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ie)Object.defineProperty(e,ce,{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[ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ce]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return ne(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}var t,n}function ne(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Z(t)}var re,oe=Object.isExtensible,ie=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),ue="function"==typeof WeakMap;ue&&(re=new WeakMap);var ae=0,ce="__immutablehash__";"function"==typeof Symbol&&(ce=Symbol(ce));var se=16,le=255,fe=0,pe={},he=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=be(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=ge(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(D);he.prototype[S]=!0;var de=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&o(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&o(this),new P((function(){var o=r.next();return o.done?o:O(e,t?n.size-++i:i++,o.value,o)}))},t}(F),ve=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new P((function(){var t=n.next();return t.done?t:O(e,t.value,t.value,t)}))},t}(z),ye=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ne(t);var r=p(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new P((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ne(r);var o=p(r);return O(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(D);function me(e){var t=Me(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=Re,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new P((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(1===t?0:1,n)},t}function ge(e,n,r){var o=Me(e);return o.size=e.size,o.has=function(t){return e.has(t)},o.get=function(o,i){var u=e.get(o,t);return u===t?i:n.call(r,u,o,e)},o.__iterateUncached=function(t,o){var i=this;return e.__iterate((function(e,o,u){return!1!==t(n.call(r,e,o,u),o,i)}),o)},o.__iteratorUncached=function(t,o){var i=e.__iterator(2,o);return new P((function(){var o=i.next();if(o.done)return o;var u=o.value,a=u[0];return O(t,a,n.call(r,u[1],a,e),o)}))},o}function be(e,t){var n=this,r=Me(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=me(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Re,r.__iterate=function(n,r){var i=this,u=0;return r&&o(e),e.__iterate((function(e,o){return n(e,t?o:r?i.size-++u:u++,i)}),!r)},r.__iterator=function(r,i){var u=0;i&&o(e);var a=e.__iterator(2,!i);return new P((function(){var e=a.next();if(e.done)return e;var o=e.value;return O(r,t?o[0]:i?n.size-++u:u++,o[1],e)}))},r}function _e(e,n,r,o){var i=Me(e);return o&&(i.has=function(o){var i=e.get(o,t);return i!==t&&!!n.call(r,i,o,e)},i.get=function(o,i){var u=e.get(o,t);return u!==t&&n.call(r,u,o,e)?u:i}),i.__iterateUncached=function(t,i){var u=this,a=0;return e.__iterate((function(e,i,c){if(n.call(r,e,i,c))return a++,t(e,o?i:a-1,u)}),i),a},i.__iteratorUncached=function(t,i){var u=e.__iterator(2,i),a=0;return new P((function(){for(;;){var i=u.next();if(i.done)return i;var c=i.value,s=c[0],l=c[1];if(n.call(r,l,s,e))return O(t,o?s:a++,l,i)}}))},i}function we(e,t,n,r){var o=e.size;if(a(t,n,o))return e;var u=c(t,o),l=s(n,o);if(u!=u||l!=l)return we(e.toSeq().cacheResult(),t,n,r);var f,p=l-u;p==p&&(f=p<0?0:p);var h=Me(e);return h.size=0===f?f:e.size&&f||void 0,!r&&_(e)&&f>=0&&(h.get=function(t,n){return(t=i(this,t))>=0&&t<f?e.get(t+u,n):n}),h.__iterateUncached=function(t,n){var o=this;if(0===f)return 0;if(n)return this.cacheResult().__iterate(t,n);var i=0,a=!0,c=0;return e.__iterate((function(e,n){if(!a||!(a=i++<u))return c++,!1!==t(e,r?n:c-1,o)&&c!==f})),c},h.__iteratorUncached=function(t,n){if(0!==f&&n)return this.cacheResult().__iterator(t,n);if(0===f)return new P(C);var o=e.__iterator(t,n),i=0,a=0;return new P((function(){for(;i++<u;)o.next();if(++a>f)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:O(t,a-1,0===t?void 0:e.value[1],e)}))},h}function xe(e,t,n,r){var o=Me(e);return o.__iterateUncached=function(o,i){var u=this;if(i)return this.cacheResult().__iterate(o,i);var a=!0,c=0;return e.__iterate((function(e,i,s){if(!a||!(a=t.call(n,e,i,s)))return c++,o(e,r?i:c-1,u)})),c},o.__iteratorUncached=function(o,i){var u=this;if(i)return this.cacheResult().__iterator(o,i);var a=e.__iterator(2,i),c=!0,s=0;return new P((function(){var e,i,l;do{if((e=a.next()).done)return r||1===o?e:O(o,s++,0===o?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,u))}while(c);return 2===o?e:O(o,i,l,e)}))},o}function Se(e,t){var n=h(e),r=[e].concat(t).map((function(e){return p(e)?n&&(e=m(e)):e=n?V(e):$(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&h(o)||d(e)&&d(o))return o}var i=new B(r);return n?i=i.toKeyedSeq():d(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),i}function ke(e,t,n){var r=Me(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var u=0,a=!1;return function e(c,s){c.__iterate((function(i,c){return(!t||s<t)&&p(i)?e(i,s+1):(u++,!1===o(i,n?c:u-1,r)&&(a=!0)),!a}),i)}(e,0),u},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(r,o),u=[],a=0;return new P((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(2===r&&(c=c[1]),t&&!(u.length<t)||!p(c))return n?e:O(r,a++,c,e);u.push(i),i=c.__iterator(r,o)}else i=u.pop()}return{value:void 0,done:!0}}))},r}function Ee(e,t,n){t||(t=Ae);var r=h(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?D(i):d(e)?F(i):z(i)}function Te(e,t,n){if(t||(t=Ae),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Pe(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Pe(t,e,n)?n:e}))}function Pe(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Oe(e,t,n,r){var o=Me(e),i=new B(n).map((function(e){return e.size}));return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map((function(e){return e=y(e),M(o?e.reverse():e)})),u=0,a=!1;return new P((function(){var n;return a||(n=i.map((function(e){return e.next()})),a=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),a?{value:void 0,done:!0}:O(e,u++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Ce(e,t){return e===t?e:_(e)?t:e.constructor(t)}function Ne(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ie(e){return h(e)?m:d(e)?g:b}function Me(e){return Object.create((h(e)?D:d(e)?F:z).prototype)}function Re(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):L.prototype.cacheResult.call(this)}function Ae(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function je(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 Le(e,t){if(!e)throw new Error(t)}function De(e){Le(e!==1/0,"Cannot perform this action with an infinite size.")}function Fe(e){if(j(e)&&"string"!=typeof e)return e;if(k(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function ze(e){return e&&("function"!=typeof e.constructor||"Object"===e.constructor.name)}function Be(e){return"object"==typeof e&&(x(e)||Array.isArray(e)||ze(e))}function Ue(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function qe(e,t){return x(e)?e.has(t):Be(e)&&A.call(e,t)}function We(e,t,n){return x(e)?e.get(t,n):qe(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function He(e){if(Array.isArray(e))return je(e);var t={};for(var n in e)A.call(e,n)&&(t[n]=e[n]);return t}function Ve(e,t){if(!Be(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(x(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!A.call(e,t))return e;var n=He(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function $e(e,t,n){if(!Be(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(x(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(A.call(e,t)&&n===e[t])return e;var r=He(e);return r[t]=n,r}function Ke(e,n,r,o){o||(o=r,r=void 0);var i=function e(n,r,o,i,u,a){var c=r===t;if(i===o.length){var s=c?u:r,l=a(s);return l===s?r:l}if(!c&&!Be(r))throw new TypeError("Cannot update within non-data-structure value in path ["+o.slice(0,i).map(Ue)+"]: "+r);var f=o[i],p=c?t:We(r,f,t),h=e(p===t?n:x(p),p,o,i+1,u,a);return h===p?r:h===t?Ve(r,f):$e(c?n?Nt():{}:r,f,h)}(x(e),e,Fe(n),0,r,o);return i===t?r:i}function Qe(e,n,r){return Ke(e,n,t,(function(){return r}))}function Ge(e,t){return Qe(this,e,t)}function Ye(e,n){return Ke(e,n,(function(){return t}))}function Je(e){return Ye(this,e)}function Xe(e,t,n,r){return Ke(e,[t],n,r)}function Ze(e,t,n){return 1===arguments.length?e(this):Xe(this,e,t,n)}function et(e,t,n){return Ke(this,e,t,n)}function tt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return rt(this,e)}function nt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return rt(this,t,e)}function rt(e,n,r){for(var o=[],i=0;i<n.length;i++){var u=m(n[i]);0!==u.size&&o.push(u)}return 0===o.length?e:0!==e.toSeq().size||e.__ownerID||1!==o.length?e.withMutations((function(e){for(var n=r?function(n,o){Xe(e,o,t,(function(e){return e===t?n:r(e,n,o)}))}:function(t,n){e.set(n,t)},i=0;i<o.length;i++)o[i].forEach(n)})):e.constructor(o[0])}function ot(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(e,t)}function it(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return st(t,n,e)}function ut(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ct(e,t)}function at(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return ct(t,n,e)}function ct(e,t,n){return st(e,t,function(e){return function t(n,r,o){return Be(n)&&Be(r)?st(n,[r],t):e?e(n,r,o):r}}(n))}function st(e,t,n){if(!Be(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(x(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?g:m,u=r?function(t){o===e&&(o=He(o)),o.push(t)}:function(t,r){var i=A.call(o,r),u=i&&n?n(o[r],t,r):t;i&&u===o[r]||(o===e&&(o=He(o)),o[r]=u)},a=0;a<t.length;a++)i(t[a]).forEach(u);return o}function lt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ct(this,e)}function ft(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ct(this,t,e)}function pt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ke(this,e,Nt(),(function(e){return st(e,t)}))}function ht(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ke(this,e,Nt(),(function(e){return ct(e,t)}))}function dt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function vt(){return this.__ownerID?this:this.__ensureOwner(new r)}function yt(){return this.__ensureOwner()}function mt(){return this.__altered}de.prototype.cacheResult=he.prototype.cacheResult=ve.prototype.cacheResult=ye.prototype.cacheResult=Re;var gt=function(e){function n(t){return null==t?Nt():Q(t)&&!k(t)?t:Nt().withMutations((function(n){var r=e(t);De(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Nt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},n.prototype.toString=function(){return this.__toString("Map {","}")},n.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},n.prototype.set=function(e,t){return It(this,e,t)},n.prototype.remove=function(e){return It(this,e,t)},n.prototype.deleteAll=function(e){var t=y(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},n.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Nt()},n.prototype.sort=function(e){return tn(Ee(this,e))},n.prototype.sortBy=function(e,t){return tn(Ee(this,t,e))},n.prototype.map=function(e,t){return this.withMutations((function(n){n.forEach((function(r,o){n.set(o,e.call(t,r,o,n))}))}))},n.prototype.__iterator=function(e,t){return new Tt(this,e,t)},n.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},n.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ct(this.size,this._root,e,this.__hash):0===this.size?Nt():(this.__ownerID=e,this.__altered=!1,this)},n}(m);gt.isMap=Q;var bt=gt.prototype;bt["@@__IMMUTABLE_MAP__@@"]=!0,bt.delete=bt.remove,bt.removeAll=bt.deleteAll,bt.setIn=Ge,bt.removeIn=bt.deleteIn=Je,bt.update=Ze,bt.updateIn=et,bt.merge=bt.concat=tt,bt.mergeWith=nt,bt.mergeDeep=lt,bt.mergeDeepWith=ft,bt.mergeIn=pt,bt.mergeDeepIn=ht,bt.withMutations=dt,bt.wasAltered=mt,bt.asImmutable=yt,bt["@@transducer/init"]=bt.asMutable=vt,bt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},bt["@@transducer/result"]=function(e){return e.asImmutable()};var _t=function(e,t){this.ownerID=e,this.entries=t};_t.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,u=o.length;i<u;i++)if(J(n,o[i][0]))return o[i][1];return r},_t.prototype.update=function(e,o,i,u,a,c,s){for(var l=a===t,f=this.entries,p=0,h=f.length;p<h&&!J(u,f[p][0]);p++);var d=p<h;if(d?f[p][1]===a:l)return this;if(n(s),(l||!d)&&n(c),!l||1!==f.length){if(!d&&!l&&f.length>=Dt)return function(e,t,n,o){e||(e=new r);for(var i=new kt(e,te(n),[n,o]),u=0;u<t.length;u++){var a=t[u];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,f,u,a);var v=e&&e===this.ownerID,y=v?f:je(f);return d?l?p===h-1?y.pop():y[p]=y.pop():y[p]=[u,a]:y.push([u,a]),v?(this.entries=y,this):new _t(e,y)}};var wt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};wt.prototype.get=function(e,t,n,r){void 0===t&&(t=te(n));var o=1<<(31&(0===e?t:t>>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[jt(i&o-1)].get(e+5,t,n,r)},wt.prototype.update=function(e,n,r,o,i,u,a){void 0===r&&(r=te(o));var c=31&(0===n?r:r>>>n),s=1<<c,l=this.bitmap,f=0!=(l&s);if(!f&&i===t)return this;var p=jt(l&s-1),h=this.nodes,d=f?h[p]:void 0,v=Mt(d,e,n+5,r,o,i,u,a);if(v===d)return this;if(!f&&v&&h.length>=Ft)return function(e,t,n,r,o){for(var i=0,u=new Array(32),a=0;0!==n;a++,n>>>=1)u[a]=1&n?t[i++]:void 0;return u[r]=o,new xt(e,i+1,u)}(e,h,l,c,v);if(f&&!v&&2===h.length&&Rt(h[1^p]))return h[1^p];if(f&&v&&1===h.length&&Rt(v))return v;var y=e&&e===this.ownerID,m=f?v?l:l^s:l|s,g=f?v?Lt(h,p,v,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,u=0;u<r;u++)u===t&&(i=1),o[u]=e[u+i];return o}(h,p,y):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),u=0,a=0;a<o;a++)a===t?(i[a]=n,u=-1):i[a]=e[a+u];return i}(h,p,v,y);return y?(this.bitmap=m,this.nodes=g,this):new wt(e,m,g)};var xt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};xt.prototype.get=function(e,t,n,r){void 0===t&&(t=te(n));var o=31&(0===e?t:t>>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},xt.prototype.update=function(e,n,r,o,i,u,a){void 0===r&&(r=te(o));var c=31&(0===n?r:r>>>n),s=i===t,l=this.nodes,f=l[c];if(s&&!f)return this;var p=Mt(f,e,n+5,r,o,i,u,a);if(p===f)return this;var h=this.count;if(f){if(!p&&--h<zt)return function(e,t,n,r){for(var o=0,i=0,u=new Array(n),a=0,c=1,s=t.length;a<s;a++,c<<=1){var l=t[a];void 0!==l&&a!==r&&(o|=c,u[i++]=l)}return new wt(e,o,u)}(e,l,h,c)}else h++;var d=e&&e===this.ownerID,v=Lt(l,c,p,d);return d?(this.count=h,this.nodes=v,this):new xt(e,h,v)};var St=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};St.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,u=o.length;i<u;i++)if(J(n,o[i][0]))return o[i][1];return r},St.prototype.update=function(e,r,o,i,u,a,c){void 0===o&&(o=te(i));var s=u===t;if(o!==this.keyHash)return s?this:(n(c),n(a),At(this,e,r,o,[i,u]));for(var l=this.entries,f=0,p=l.length;f<p&&!J(i,l[f][0]);f++);var h=f<p;if(h?l[f][1]===u:s)return this;if(n(c),(s||!h)&&n(a),s&&2===p)return new kt(e,this.keyHash,l[1^f]);var d=e&&e===this.ownerID,v=d?l:je(l);return h?s?f===p-1?v.pop():v[f]=v.pop():v[f]=[i,u]:v.push([i,u]),d?(this.entries=v,this):new St(e,this.keyHash,v)};var kt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};kt.prototype.get=function(e,t,n,r){return J(n,this.entry[0])?this.entry[1]:r},kt.prototype.update=function(e,r,o,i,u,a,c){var s=u===t,l=J(i,this.entry[0]);return(l?u===this.entry[1]:s)?this:(n(c),s?void n(a):l?e&&e===this.ownerID?(this.entry[1]=u,this):new kt(e,this.keyHash,[i,u]):(n(a),At(this,e,r,te(i),[i,u])))},_t.prototype.iterate=St.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},wt.prototype.iterate=xt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},kt.prototype.iterate=function(e,t){return e(this.entry)};var Et,Tt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ot(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0===r)return Pt(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Pt(e,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry)return Pt(e,i.entry);t=this._stack=Ot(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(P);function Pt(e,t){return O(e,t[0],t[1])}function Ot(e,t){return{node:e,index:0,__prev:t}}function Ct(e,t,n,r){var o=Object.create(bt);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Nt(){return Et||(Et=Ct(0))}function It(e,n,r){var o,i;if(e._root){var u={value:!1},a={value:!1};if(o=Mt(e._root,e.__ownerID,0,void 0,n,r,u,a),!a.value)return e;i=e.size+(u.value?r===t?-1:1:0)}else{if(r===t)return e;i=1,o=new _t(e.__ownerID,[[n,r]])}return e.__ownerID?(e.size=i,e._root=o,e.__hash=void 0,e.__altered=!0,e):o?Ct(i,o):Nt()}function Mt(e,r,o,i,u,a,c,s){return e?e.update(r,o,i,u,a,c,s):a===t?e:(n(s),n(c),new kt(r,i,[u,a]))}function Rt(e){return e.constructor===kt||e.constructor===St}function At(e,t,n,r,o){if(e.keyHash===r)return new St(t,r,[e.entry,o]);var i,u=31&(0===n?e.keyHash:e.keyHash>>>n),a=31&(0===n?r:r>>>n),c=u===a?[At(e,t,n+5,r,o)]:(i=new kt(t,r,o),u<a?[e,i]:[i,e]);return new wt(t,1<<u|1<<a,c)}function jt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Lt(e,t,n,r){var o=r?e:je(e);return o[t]=n,o}var Dt=8,Ft=16,zt=8;function Bt(e){return Boolean(e&&e["@@__IMMUTABLE_LIST__@@"])}var Ut=function(e){function t(t){var n=Qt();if(null==t)return n;if(Bt(t))return t;var r=e(t),o=r.size;return 0===o?n:(De(o),o>0&&o<32?Kt(0,o,5,null,new Wt(r.toArray())):n.withMutations((function(e){e.setSize(o),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=i(this,e))>=0&&e<this.size){var n=Jt(this,e+=this._origin);return n&&n.array[31&e]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=i(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Xt(e,t).set(0,n):Xt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,u={value:!1};return t>=Zt(e._capacity)?r=Gt(r,e.__ownerID,0,t,n,u):o=Gt(o,e.__ownerID,e._level,t,n,u),u.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Kt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Qt()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Xt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return Xt(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Xt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return Xt(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],i=e("string"!=typeof o&&N(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return Xt(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,r))}))},t.prototype.slice=function(e,t){var n=this.size;return a(e,t,n)?this:Xt(this,c(e,n),s(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=$t(this,t);return new P((function(){var o=r();return o===Vt?{value:void 0,done:!0}:O(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=$t(this,t);(n=o())!==Vt&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?Qt():(this.__ownerID=e,this.__altered=!1,this)},t}(g);Ut.isList=Bt;var qt=Ut.prototype;qt["@@__IMMUTABLE_LIST__@@"]=!0,qt.delete=qt.remove,qt.merge=qt.concat,qt.setIn=Ge,qt.deleteIn=qt.removeIn=Je,qt.update=Ze,qt.updateIn=et,qt.mergeIn=pt,qt.mergeDeepIn=ht,qt.withMutations=dt,qt.wasAltered=mt,qt.asImmutable=yt,qt["@@transducer/init"]=qt.asMutable=vt,qt["@@transducer/step"]=function(e,t){return e.push(t)},qt["@@transducer/result"]=function(e){return e.asImmutable()};var Wt=function(e,t){this.array=e,this.ownerID=t};Wt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&31;if(r>=this.array.length)return new Wt([],e);var o,i=0===r;if(t>0){var u=this.array[r];if((o=u&&u.removeBefore(e,t-5,n))===u&&i)return this}if(i&&!o)return this;var a=Yt(this,e);if(!i)for(var c=0;c<r;c++)a.array[c]=void 0;return o&&(a.array[r]=o),a},Wt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var u=Yt(this,e);return u.array.splice(o+1),r&&(u.array[o]=r),u};var Ht,Vt={};function $t(e,t){var n=e._origin,r=e._capacity,o=Zt(r),i=e._tail;return u(e._root,e._level,0);function u(e,a,c){return 0===a?function(e,u){var a=u===o?i&&i.array:e&&e.array,c=u>n?0:n-u,s=r-u;return s>32&&(s=32),function(){if(c===s)return Vt;var e=t?--s:c++;return a&&a[e]}}(e,c):function(e,o,i){var a,c=e&&e.array,s=i>n?0:n-i>>o,l=1+(r-i>>o);return l>32&&(l=32),function(){for(;;){if(a){var e=a();if(e!==Vt)return e;a=null}if(s===l)return Vt;var n=t?--l:s++;a=u(c&&c[n],o-5,i+(n<<o))}}}(e,a,c)}}function Kt(e,t,n,r,o,i,u){var a=Object.create(qt);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=o,a.__ownerID=i,a.__hash=u,a.__altered=!1,a}function Qt(){return Ht||(Ht=Kt(0,0,5))}function Gt(e,t,r,o,i,u){var a,c=o>>>r&31,s=e&&c<e.array.length;if(!s&&void 0===i)return e;if(r>0){var l=e&&e.array[c],f=Gt(l,t,r-5,o,i,u);return f===l?e:((a=Yt(e,t)).array[c]=f,a)}return s&&e.array[c]===i?e:(u&&n(u),a=Yt(e,t),void 0===i&&c===a.array.length-1?a.array.pop():a.array[c]=i,a)}function Yt(e,t){return t&&e&&t===e.ownerID?e:new Wt(e?e.array.slice():[],t)}function Jt(e,t){if(t>=Zt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&31],r-=5;return n}}function Xt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var o=e.__ownerID||new r,i=e._origin,u=e._capacity,a=i+t,c=void 0===n?u:n<0?u+n:i+n;if(a===i&&c===u)return e;if(a>=c)return e.clear();for(var s=e._level,l=e._root,f=0;a+f<0;)l=new Wt(l&&l.array.length?[void 0,l]:[],o),f+=1<<(s+=5);f&&(a+=f,i+=f,c+=f,u+=f);for(var p=Zt(u),h=Zt(c);h>=1<<s+5;)l=new Wt(l&&l.array.length?[l]:[],o),s+=5;var d=e._tail,v=h<p?Jt(e,c-1):h>p?new Wt([],o):d;if(d&&h>p&&a<u&&d.array.length){for(var y=l=Yt(l,o),m=s;m>5;m-=5){var g=p>>>m&31;y=y.array[g]=Yt(y.array[g],o)}y.array[p>>>5&31]=d}if(c<u&&(v=v&&v.removeAfter(o,0,c)),a>=h)a-=h,c-=h,s=5,l=null,v=v&&v.removeBefore(o,0,a);else if(a>i||h<p){for(f=0;l;){var b=a>>>s&31;if(b!==h>>>s&31)break;b&&(f+=(1<<s)*b),s-=5,l=l.array[b]}l&&a>i&&(l=l.removeBefore(o,s,a-f)),l&&h<p&&(l=l.removeAfter(o,s,h-f)),f&&(a-=f,c-=f)}return e.__ownerID?(e.size=c-a,e._origin=a,e._capacity=c,e._level=s,e._root=l,e._tail=v,e.__hash=void 0,e.__altered=!0,e):Kt(a,c,s,l,v)}function Zt(e){return e<32?0:e-1>>>5<<5}var en,tn=function(e){function n(e){return null==e?rn():G(e)?e:rn().withMutations((function(t){var n=m(e);De(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.of=function(){return this(arguments)},n.prototype.toString=function(){return this.__toString("OrderedMap {","}")},n.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},n.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):rn()},n.prototype.set=function(e,t){return on(this,e,t)},n.prototype.remove=function(e){return on(this,e,t)},n.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},n.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},n.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},n.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?nn(t,n,e,this.__hash):0===this.size?rn():(this.__ownerID=e,this._map=t,this._list=n,this)},n}(gt);function nn(e,t,n,r){var o=Object.create(tn.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function rn(){return en||(en=nn(Nt(),Qt()))}function on(e,n,r){var o,i,u=e._map,a=e._list,c=u.get(n),s=void 0!==c;if(r===t){if(!s)return e;a.size>=32&&a.size>=2*u.size?(o=(i=a.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=i.__ownerID=e.__ownerID)):(o=u.remove(n),i=c===a.size-1?a.pop():a.set(c,void 0))}else if(s){if(r===a.get(c)[1])return e;o=u,i=a.set(c,[n,r])}else o=u.set(n,a.size),i=a.set(a.size,[n,r]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=i,e.__hash=void 0,e):nn(o,i)}function un(e){return Boolean(e&&e["@@__IMMUTABLE_STACK__@@"])}tn.isOrderedMap=G,tn.prototype[S]=!0,tn.prototype.delete=tn.prototype.remove;var an=function(e){function t(e){return null==e?fn():un(e)?e:fn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=i(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):ln(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&un(t))return t;De(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):ln(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):fn()},t.prototype.slice=function(t,n){if(a(t,n,this.size))return this;var r=c(t,this.size);if(s(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):ln(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ln(this.size,this._head,e,this.__hash):0===this.size?fn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new B(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new B(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new P((function(){if(r){var t=r.value;return r=r.next,O(e,n++,t)}return{value:void 0,done:!0}}))},t}(g);an.isStack=un;var cn,sn=an.prototype;function ln(e,t,n,r){var o=Object.create(sn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function fn(){return cn||(cn=ln(0))}function pn(e){return Boolean(e&&e["@@__IMMUTABLE_SET__@@"])}function hn(e){return pn(e)&&k(e)}function dn(e,n){if(e===n)return!0;if(!p(n)||void 0!==e.size&&void 0!==n.size&&e.size!==n.size||void 0!==e.__hash&&void 0!==n.__hash&&e.__hash!==n.__hash||h(e)!==h(n)||d(e)!==d(n)||k(e)!==k(n))return!1;if(0===e.size&&0===n.size)return!0;var r=!v(e);if(k(e)){var o=e.entries();return n.every((function(e,t){var n=o.next().value;return n&&J(n[1],e)&&(r||J(n[0],t))}))&&o.next().done}var i=!1;if(void 0===e.size)if(void 0===n.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var u=e;e=n,n=u}var a=!0,c=n.__iterate((function(n,o){if(r?!e.has(n):i?!J(n,e.get(o,t)):!J(e.get(o,t),n))return a=!1,!1}));return a&&e.size===c}function vn(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 yn(e){if(!e||"object"!=typeof e)return e;if(!p(e)){if(!Be(e))return e;e=L(e)}if(h(e)){var t={};return e.__iterate((function(e,n){t[n]=yn(e)})),t}var n=[];return e.__iterate((function(e){n.push(yn(e))})),n}sn["@@__IMMUTABLE_STACK__@@"]=!0,sn.shift=sn.pop,sn.unshift=sn.push,sn.unshiftAll=sn.pushAll,sn.withMutations=dt,sn.wasAltered=mt,sn.asImmutable=yt,sn["@@transducer/init"]=sn.asMutable=vt,sn["@@transducer/step"]=function(e,t){return e.unshift(t)},sn["@@transducer/result"]=function(e){return e.asImmutable()};var mn=function(e){function t(t){return null==t?xn():pn(t)&&!k(t)?t:xn().withMutations((function(n){var r=e(t);De(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(m(e).keySeq())},t.intersect=function(e){return(e=y(e).toArray()).length?bn.intersect.apply(t(e.pop()),e):xn()},t.union=function(e){return(e=y(e).toArray()).length?bn.union.apply(t(e.pop()),e):xn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return _n(this,this._map.set(e,e))},t.prototype.remove=function(e){return _n(this,this._map.remove(e))},t.prototype.clear=function(){return _n(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],o=[];return this.forEach((function(i){var u=e.call(t,i,i,n);u!==i&&(r.push(i),o.push(u))})),this.withMutations((function(e){r.forEach((function(t){return e.remove(t)})),o.forEach((function(t){return e.add(t)}))}))},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return Bn(Ee(this,e))},t.prototype.sortBy=function(e,t){return Bn(Ee(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(b);mn.isSet=pn;var gn,bn=mn.prototype;function _n(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 wn(e,t){var n=Object.create(bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function xn(){return gn||(gn=wn(Nt()))}bn["@@__IMMUTABLE_SET__@@"]=!0,bn.delete=bn.remove,bn.merge=bn.concat=bn.union,bn.withMutations=dt,bn.asImmutable=yt,bn["@@transducer/init"]=bn.asMutable=vt,bn["@@transducer/step"]=function(e,t){return e.add(t)},bn["@@transducer/result"]=function(e){return e.asImmutable()},bn.__empty=xn,bn.__make=wn;var Sn,kn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Le(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Sn)return Sn;Sn=this}}return e