Skip to content

Instantly share code, notes, and snippets.

@trashhalo
Created December 4, 2013 02:29
Show Gist options
  • Save trashhalo/7781298 to your computer and use it in GitHub Desktop.
Save trashhalo/7781298 to your computer and use it in GitHub Desktop.
;(function(){
function f(a){return function(){return this[a]}}function n(a){return function(){return a}}var r;
function s(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}var aa="closure_uid_"+(1E9*Math.random()>>>0),ca=0;function da(a,b){null!=a&&this.append.apply(this,arguments)}da.prototype.ia="";da.prototype.append=function(a,b,c){this.ia+=a;if(null!=b)for(var d=1;d<arguments.length;d++)this.ia+=arguments[d];return this};da.prototype.toString=f("ia");function t(a){return null!=a&&!1!==a}function u(a,b){return a[s(null==b?null:b)]?!0:a._?!0:w?!1:null}function ea(a){return null==a?null:a.constructor}function x(a,b){var c=ea(b),c=t(t(c)?c.ab:c)?c.$a:s(b);return Error(["No protocol method ",a," defined for type ",c,": ",b].join(""))}function fa(a){var b=a.$a;return t(b)?b:""+y(a)}var ga={},ha={};function z(a){if(a?a.B:a)return a.B(a);var b;b=z[s(null==a?null:a)];if(!b&&(b=z._,!b))throw x("ICounted.-count",a);return b.call(null,a)}
function ia(a,b){if(a?a.v:a)return a.v(a,b);var c;c=ia[s(null==a?null:a)];if(!c&&(c=ia._,!c))throw x("ICollection.-conj",a);return c.call(null,a,b)}
var ja={},A=function(){function a(a,b,c){if(a?a.R:a)return a.R(a,b,c);var h;h=A[s(null==a?null:a)];if(!h&&(h=A._,!h))throw x("IIndexed.-nth",a);return h.call(null,a,b,c)}function b(a,b){if(a?a.K:a)return a.K(a,b);var c;c=A[s(null==a?null:a)];if(!c&&(c=A._,!c))throw x("IIndexed.-nth",a);return c.call(null,a,b)}var c=null,c=function(d,c,g){switch(arguments.length){case 2:return b.call(this,d,c);case 3:return a.call(this,d,c,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}(),
la={};function D(a){if(a?a.M:a)return a.M(a);var b;b=D[s(null==a?null:a)];if(!b&&(b=D._,!b))throw x("ISeq.-first",a);return b.call(null,a)}function E(a){if(a?a.O:a)return a.O(a);var b;b=E[s(null==a?null:a)];if(!b&&(b=E._,!b))throw x("ISeq.-rest",a);return b.call(null,a)}
var ma={},na=function(){function a(a,b,c){if(a?a.F:a)return a.F(a,b,c);var h;h=na[s(null==a?null:a)];if(!h&&(h=na._,!h))throw x("ILookup.-lookup",a);return h.call(null,a,b,c)}function b(a,b){if(a?a.D:a)return a.D(a,b);var c;c=na[s(null==a?null:a)];if(!c&&(c=na._,!c))throw x("ILookup.-lookup",a);return c.call(null,a,b)}var c=null,c=function(c,e,g){switch(arguments.length){case 2:return b.call(this,c,e);case 3:return a.call(this,c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}();
function oa(a,b,c){if(a?a.ja:a)return a.ja(a,b,c);var d;d=oa[s(null==a?null:a)];if(!d&&(d=oa._,!d))throw x("IAssociative.-assoc",a);return d.call(null,a,b,c)}var pa={},qa={};function ra(a){if(a?a.Qa:a)return a.Qa();var b;b=ra[s(null==a?null:a)];if(!b&&(b=ra._,!b))throw x("IMapEntry.-key",a);return b.call(null,a)}function sa(a){if(a?a.Ra:a)return a.Ra();var b;b=sa[s(null==a?null:a)];if(!b&&(b=sa._,!b))throw x("IMapEntry.-val",a);return b.call(null,a)}var ta={};
function ua(a,b,c){if(a?a.La:a)return a.La(a,b,c);var d;d=ua[s(null==a?null:a)];if(!d&&(d=ua._,!d))throw x("IVector.-assoc-n",a);return d.call(null,a,b,c)}var va={};function wa(a){if(a?a.L:a)return a.L(a);var b;b=wa[s(null==a?null:a)];if(!b&&(b=wa._,!b))throw x("IMeta.-meta",a);return b.call(null,a)}function xa(a,b){if(a?a.J:a)return a.J(a,b);var c;c=xa[s(null==a?null:a)];if(!c&&(c=xa._,!c))throw x("IWithMeta.-with-meta",a);return c.call(null,a,b)}
var ya={},za=function(){function a(a,b,c){if(a?a.I:a)return a.I(a,b,c);var h;h=za[s(null==a?null:a)];if(!h&&(h=za._,!h))throw x("IReduce.-reduce",a);return h.call(null,a,b,c)}function b(a,b){if(a?a.H:a)return a.H(a,b);var c;c=za[s(null==a?null:a)];if(!c&&(c=za._,!c))throw x("IReduce.-reduce",a);return c.call(null,a,b)}var c=null,c=function(c,e,g){switch(arguments.length){case 2:return b.call(this,c,e);case 3:return a.call(this,c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}();
function Aa(a,b){if(a?a.s:a)return a.s(a,b);var c;c=Aa[s(null==a?null:a)];if(!c&&(c=Aa._,!c))throw x("IEquiv.-equiv",a);return c.call(null,a,b)}function Ba(a){if(a?a.u:a)return a.u(a);var b;b=Ba[s(null==a?null:a)];if(!b&&(b=Ba._,!b))throw x("IHash.-hash",a);return b.call(null,a)}var Ca={};function Da(a){if(a?a.w:a)return a.w(a);var b;b=Da[s(null==a?null:a)];if(!b&&(b=Da._,!b))throw x("ISeqable.-seq",a);return b.call(null,a)}var Ea={};
function F(a,b){if(a?a.Ta:a)return a.Ta(0,b);var c;c=F[s(null==a?null:a)];if(!c&&(c=F._,!c))throw x("IWriter.-write",a);return c.call(null,a,b)}function Fa(a){if(a?a.Za:a)return null;var b;b=Fa[s(null==a?null:a)];if(!b&&(b=Fa._,!b))throw x("IWriter.-flush",a);return b.call(null,a)}var Ga={};function Ha(a,b,c){if(a?a.t:a)return a.t(a,b,c);var d;d=Ha[s(null==a?null:a)];if(!d&&(d=Ha._,!d))throw x("IPrintWithWriter.-pr-writer",a);return d.call(null,a,b,c)}
function Ia(a){if(a?a.na:a)return a.na(a);var b;b=Ia[s(null==a?null:a)];if(!b&&(b=Ia._,!b))throw x("IEditableCollection.-as-transient",a);return b.call(null,a)}function Ja(a,b){if(a?a.qa:a)return a.qa(a,b);var c;c=Ja[s(null==a?null:a)];if(!c&&(c=Ja._,!c))throw x("ITransientCollection.-conj!",a);return c.call(null,a,b)}function Ka(a){if(a?a.ra:a)return a.ra(a);var b;b=Ka[s(null==a?null:a)];if(!b&&(b=Ka._,!b))throw x("ITransientCollection.-persistent!",a);return b.call(null,a)}
function La(a,b,c){if(a?a.pa:a)return a.pa(a,b,c);var d;d=La[s(null==a?null:a)];if(!d&&(d=La._,!d))throw x("ITransientAssociative.-assoc!",a);return d.call(null,a,b,c)}function Ma(a,b,c){if(a?a.Sa:a)return a.Sa(0,b,c);var d;d=Ma[s(null==a?null:a)];if(!d&&(d=Ma._,!d))throw x("ITransientVector.-assoc-n!",a);return d.call(null,a,b,c)}function Na(a){if(a?a.Ma:a)return a.Ma();var b;b=Na[s(null==a?null:a)];if(!b&&(b=Na._,!b))throw x("IChunk.-drop-first",a);return b.call(null,a)}
function Oa(a){if(a?a.wa:a)return a.wa(a);var b;b=Oa[s(null==a?null:a)];if(!b&&(b=Oa._,!b))throw x("IChunkedSeq.-chunked-first",a);return b.call(null,a)}function Pa(a){if(a?a.xa:a)return a.xa(a);var b;b=Pa[s(null==a?null:a)];if(!b&&(b=Pa._,!b))throw x("IChunkedSeq.-chunked-rest",a);return b.call(null,a)}function Qa(a){if(a?a.va:a)return a.va(a);var b;b=Qa[s(null==a?null:a)];if(!b&&(b=Qa._,!b))throw x("IChunkedNext.-chunked-next",a);return b.call(null,a)}
function Ra(a){this.cb=a;this.o=0;this.f=1073741824}Ra.prototype.Ta=function(a,b){return this.cb.append(b)};Ra.prototype.Za=n(null);function G(a){var b=new da,c=new Ra(b);a.t(null,c,Sa());Fa(c);return""+y(b)}function H(a){if(null==a)return null;if(a&&(a.f&8388608||a.lb))return a.w(null);if(a instanceof Array||"string"===typeof a)return 0===a.length?null:new Ta(a,0);if(u(Ca,a))return Da(a);if(w)throw Error([y(a),y("is not ISeqable")].join(""));return null}
function J(a){if(null==a)return null;if(a&&(a.f&64||a.oa))return a.M(null);a=H(a);return null==a?null:D(a)}function L(a){return null!=a?a&&(a.f&64||a.oa)?a.O(null):(a=H(a))?E(a):M:M}function N(a){return null==a?null:a&&(a.f&128||a.kb)?a.Z(null):H(L(a))}
var Ua=function(){function a(a,b){return a===b||Aa(a,b)}var b=null,c=function(){function a(b,d,k){var l=null;2<arguments.length&&(l=O(Array.prototype.slice.call(arguments,2),0));return c.call(this,b,d,l)}function c(a,d,e){for(;;)if(b.b(a,d))if(N(e))a=d,d=J(e),e=N(e);else return b.b(d,J(e));else return!1}a.p=2;a.k=function(a){var b=J(a);a=N(a);var d=J(a);a=L(a);return c(b,d,a)};a.j=c;return a}(),b=function(b,e,g){switch(arguments.length){case 1:return!0;case 2:return a.call(this,b,e);default:return c.j(b,
e,O(arguments,2))}throw Error("Invalid arity: "+arguments.length);};b.p=2;b.k=c.k;b.e=n(!0);b.b=a;b.j=c.j;return b}();Ba["null"]=n(0);ha["null"]=!0;z["null"]=n(0);Aa["null"]=function(a,b){return null==b};xa["null"]=n(null);va["null"]=!0;wa["null"]=n(null);pa["null"]=!0;Date.prototype.s=function(a,b){return b instanceof Date&&this.toString()===b.toString()};Aa.number=function(a,b){return a===b};va["function"]=!0;wa["function"]=n(null);ga["function"]=!0;Ba._=function(a){return a[aa]||(a[aa]=++ca)};
var Va=function(){function a(a,b,c,d){for(var l=z(a);;)if(d<l)c=b.b?b.b(c,A.b(a,d)):b.call(null,c,A.b(a,d)),d+=1;else return c}function b(a,b,c){for(var d=z(a),l=0;;)if(l<d)c=b.b?b.b(c,A.b(a,l)):b.call(null,c,A.b(a,l)),l+=1;else return c}function c(a,b){var c=z(a);if(0===c)return b.ea?"":b.call(null);for(var d=A.b(a,0),l=1;;)if(l<c)d=b.b?b.b(d,A.b(a,l)):b.call(null,d,A.b(a,l)),l+=1;else return d}var d=null,d=function(d,g,h,k){switch(arguments.length){case 2:return c.call(this,d,g);case 3:return b.call(this,
d,g,h);case 4:return a.call(this,d,g,h,k)}throw Error("Invalid arity: "+arguments.length);};d.b=c;d.c=b;d.m=a;return d}(),Wa=function(){function a(a,b,c,d){for(var l=a.length;;)if(d<l)c=b.b?b.b(c,a[d]):b.call(null,c,a[d]),d+=1;else return c}function b(a,b,c){for(var d=a.length,l=0;;)if(l<d)c=b.b?b.b(c,a[l]):b.call(null,c,a[l]),l+=1;else return c}function c(a,b){var c=a.length;if(0===a.length)return b.ea?"":b.call(null);for(var d=a[0],l=1;;)if(l<c)d=b.b?b.b(d,a[l]):b.call(null,d,a[l]),l+=1;else return d}
var d=null,d=function(d,g,h,k){switch(arguments.length){case 2:return c.call(this,d,g);case 3:return b.call(this,d,g,h);case 4:return a.call(this,d,g,h,k)}throw Error("Invalid arity: "+arguments.length);};d.b=c;d.c=b;d.m=a;return d}();function Xa(a){return a?a.f&2||a.Ua?!0:a.f?!1:u(ha,a):u(ha,a)}function Ya(a){return a?a.f&16||a.Pa?!0:a.f?!1:u(ja,a):u(ja,a)}function Ta(a,b){this.a=a;this.g=b;this.o=0;this.f=166199550}r=Ta.prototype;r.u=function(){return P.e?P.e(this):P.call(null,this)};
r.Z=function(){return this.g+1<this.a.length?new Ta(this.a,this.g+1):null};r.v=function(a,b){return Q.b?Q.b(b,this):Q.call(null,b,this)};r.toString=function(){return G(this)};r.H=function(a,b){return Wa.m(this.a,b,this.a[this.g],this.g+1)};r.I=function(a,b,c){return Wa.m(this.a,b,c,this.g)};r.w=function(){return this};r.B=function(){return this.a.length-this.g};r.M=function(){return this.a[this.g]};r.O=function(){return this.g+1<this.a.length?new Ta(this.a,this.g+1):Za.ea?"":Za.call(null)};
r.s=function(a,b){return R.b?R.b(this,b):R.call(null,this,b)};r.K=function(a,b){var c=b+this.g;return c<this.a.length?this.a[c]:null};r.R=function(a,b,c){a=b+this.g;return a<this.a.length?this.a[a]:c};
var $a=function(){function a(a,b){return b<a.length?new Ta(a,b):null}function b(a){return c.b(a,0)}var c=null,c=function(c,e){switch(arguments.length){case 1:return b.call(this,c);case 2:return a.call(this,c,e)}throw Error("Invalid arity: "+arguments.length);};c.e=b;c.b=a;return c}(),O=function(){function a(a,b){return $a.b(a,b)}function b(a){return $a.b(a,0)}var c=null,c=function(c,e){switch(arguments.length){case 1:return b.call(this,c);case 2:return a.call(this,c,e)}throw Error("Invalid arity: "+
arguments.length);};c.e=b;c.b=a;return c}();Aa._=function(a,b){return a===b};
var ab=function(){function a(a,b){return null!=a?ia(a,b):Za.e?Za.e(b):Za.call(null,b)}var b=null,c=function(){function a(b,d,k){var l=null;2<arguments.length&&(l=O(Array.prototype.slice.call(arguments,2),0));return c.call(this,b,d,l)}function c(a,d,e){for(;;)if(t(e))a=b.b(a,d),d=J(e),e=N(e);else return b.b(a,d)}a.p=2;a.k=function(a){var b=J(a);a=N(a);var d=J(a);a=L(a);return c(b,d,a)};a.j=c;return a}(),b=function(b,e,g){switch(arguments.length){case 2:return a.call(this,b,e);default:return c.j(b,
e,O(arguments,2))}throw Error("Invalid arity: "+arguments.length);};b.p=2;b.k=c.k;b.b=a;b.j=c.j;return b}();function S(a){if(null!=a)if(a&&(a.f&2||a.Ua))a=a.B(null);else if(a instanceof Array)a=a.length;else if("string"===typeof a)a=a.length;else if(u(ha,a))a=z(a);else if(w)a:{a=H(a);for(var b=0;;){if(Xa(a)){a=b+z(a);break a}a=N(a);b+=1}a=void 0}else a=null;else a=0;return a}
var bb=function(){function a(a,b,c){for(;;){if(null==a)return c;if(0===b)return H(a)?J(a):c;if(Ya(a))return A.c(a,b,c);if(H(a))a=N(a),b-=1;else return w?c:null}}function b(a,b){for(;;){if(null==a)throw Error("Index out of bounds");if(0===b){if(H(a))return J(a);throw Error("Index out of bounds");}if(Ya(a))return A.b(a,b);if(H(a)){var c=N(a),h=b-1;a=c;b=h}else{if(w)throw Error("Index out of bounds");return null}}}var c=null,c=function(c,e,g){switch(arguments.length){case 2:return b.call(this,c,e);case 3:return a.call(this,
c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}(),cb=function(){function a(a,b,c){if(null!=a){if(a&&(a.f&16||a.Pa))return a.R(null,b,c);if(a instanceof Array||"string"===typeof a)return b<a.length?a[b]:c;if(u(ja,a))return A.b(a,b);if(w){if(a?a.f&64||a.oa||(a.f?0:u(la,a)):u(la,a))return bb.c(a,b,c);throw Error([y("nth not supported on this type "),y(fa(ea(a)))].join(""));}return null}return c}function b(a,b){if(null==a)return null;if(a&&(a.f&16||a.Pa))return a.K(null,
b);if(a instanceof Array||"string"===typeof a)return b<a.length?a[b]:null;if(u(ja,a))return A.b(a,b);if(w){if(a?a.f&64||a.oa||(a.f?0:u(la,a)):u(la,a))return bb.b(a,b);throw Error([y("nth not supported on this type "),y(fa(ea(a)))].join(""));}return null}var c=null,c=function(c,e,g){switch(arguments.length){case 2:return b.call(this,c,e);case 3:return a.call(this,c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}(),db=function(){function a(a,b,c){return null!=a?a&&(a.f&
256||a.Va)?a.F(null,b,c):a instanceof Array?b<a.length?a[b]:c:"string"===typeof a?b<a.length?a[b]:c:u(ma,a)?na.c(a,b,c):w?c:null:c}function b(a,b){return null==a?null:a&&(a.f&256||a.Va)?a.D(null,b):a instanceof Array?b<a.length?a[b]:null:"string"===typeof a?b<a.length?a[b]:null:u(ma,a)?na.b(a,b):null}var c=null,c=function(c,e,g){switch(arguments.length){case 2:return b.call(this,c,e);case 3:return a.call(this,c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}(),fb=function(){function a(a,
b,c){return null!=a?oa(a,b,c):eb.b?eb.b(b,c):eb.call(null,b,c)}var b=null,c=function(){function a(b,d,k,l){var m=null;3<arguments.length&&(m=O(Array.prototype.slice.call(arguments,3),0));return c.call(this,b,d,k,m)}function c(a,d,e,l){for(;;)if(a=b.c(a,d,e),t(l))d=J(l),e=J(N(l)),l=N(N(l));else return a}a.p=3;a.k=function(a){var b=J(a);a=N(a);var d=J(a);a=N(a);var l=J(a);a=L(a);return c(b,d,l,a)};a.j=c;return a}(),b=function(b,e,g,h){switch(arguments.length){case 3:return a.call(this,b,e,g);default:return c.j(b,
e,g,O(arguments,3))}throw Error("Invalid arity: "+arguments.length);};b.p=3;b.k=c.k;b.c=a;b.j=c.j;return b}();function hb(a){var b="function"==s(a);return b?b:a?t(t(null)?null:a.fb)?!0:a.pb?!1:u(ga,a):u(ga,a)}function ib(a){return(a?a.f&131072||a.Xa||(a.f?0:u(va,a)):u(va,a))?wa(a):null}var jb={},kb=0;
function U(a){if(a&&(a.f&4194304||a.ib))a=a.u(null);else if("number"===typeof a)a=Math.floor(a)%2147483647;else if(!0===a)a=1;else if(!1===a)a=0;else if("string"===typeof a){255<kb&&(jb={},kb=0);var b=jb[a];if("number"!==typeof b){for(var c=b=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;jb[a]=b;kb+=1}a=b}else a=w?Ba(a):null;return a}function lb(a){return a?a.f&16384||a.nb?!0:a.f?!1:u(ta,a):u(ta,a)}function mb(a){return a?a.o&512||a.gb?!0:!1:!1}
function nb(a,b,c,d,e){for(;0!==e;)c[d]=a[b],d+=1,e-=1,b+=1}function ob(a){return t(a)?!0:!1}function pb(a,b){if(a===b)return 0;if(null==a)return-1;if(null==b)return 1;if(ea(a)===ea(b))return a&&(a.o&2048||a.Na)?a.Oa(null,b):a>b?1:a<b?-1:0;if(w)throw Error("compare on non-nil objects of different types");return null}
var qb=function(){function a(a,b,c,h){for(;;){var k=pb(cb.b(a,h),cb.b(b,h));if(0===k&&h+1<c)h+=1;else return k}}function b(a,b){var g=S(a),h=S(b);return g<h?-1:g>h?1:w?c.m(a,b,g,0):null}var c=null,c=function(c,e,g,h){switch(arguments.length){case 2:return b.call(this,c,e);case 4:return a.call(this,c,e,g,h)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.m=a;return c}(),V=function(){function a(a,b,c){for(c=H(c);;)if(c)b=a.b?a.b(b,J(c)):a.call(null,b,J(c)),c=N(c);else return b}function b(a,
b){var c=H(b);return c?rb.c?rb.c(a,J(c),N(c)):rb.call(null,a,J(c),N(c)):a.ea?"":a.call(null)}var c=null,c=function(c,e,g){switch(arguments.length){case 2:return b.call(this,c,e);case 3:return a.call(this,c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}(),rb=function(){function a(a,b,c){return c&&(c.f&524288||c.Ya)?c.I(null,a,b):c instanceof Array?Wa.c(c,a,b):"string"===typeof c?Wa.c(c,a,b):u(ya,c)?za.c(c,a,b):w?V.c(a,b,c):null}function b(a,b){return b&&(b.f&524288||b.Ya)?
b.H(null,a):b instanceof Array?Wa.b(b,a):"string"===typeof b?Wa.b(b,a):u(ya,b)?za.b(b,a):w?V.b(a,b):null}var c=null,c=function(c,e,g){switch(arguments.length){case 2:return b.call(this,c,e);case 3:return a.call(this,c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}();function sb(a){return 0<=a?Math.floor.e?Math.floor.e(a):Math.floor.call(null,a):Math.ceil.e?Math.ceil.e(a):Math.ceil.call(null,a)}
function tb(a){a-=a>>1&1431655765;a=(a&858993459)+(a>>2&858993459);return 16843009*(a+(a>>4)&252645135)>>24}
var y=function(){function a(a){return null==a?"":a.toString()}var b=null,c=function(){function a(b,d){var k=null;1<arguments.length&&(k=O(Array.prototype.slice.call(arguments,1),0));return c.call(this,b,k)}function c(a,d){for(var e=new da(b.e(a)),l=d;;)if(t(l))e=e.append(b.e(J(l))),l=N(l);else return e.toString()}a.p=1;a.k=function(a){var b=J(a);a=L(a);return c(b,a)};a.j=c;return a}(),b=function(b,e){switch(arguments.length){case 0:return"";case 1:return a.call(this,b);default:return c.j(b,O(arguments,
1))}throw Error("Invalid arity: "+arguments.length);};b.p=1;b.k=c.k;b.ea=n("");b.e=a;b.j=c.j;return b}();function R(a,b){return ob((b?b.f&16777216||b.mb||(b.f?0:u(Ea,b)):u(Ea,b))?function(){for(var c=H(a),d=H(b);;){if(null==c)return null==d;if(null==d)return!1;if(Ua.b(J(c),J(d)))c=N(c),d=N(d);else return w?!1:null}}():null)}function ub(a,b){return a^b+2654435769+(a<<6)+(a>>2)}function P(a){if(H(a)){var b=U(J(a));for(a=N(a);;){if(null==a)return b;b=ub(b,U(J(a)));a=N(a)}}else return 0}
function vb(a){var b=0;for(a=H(a);;)if(a){var c=J(a),b=(b+(U(W.e?W.e(c):W.call(null,c))^U(X.e?X.e(c):X.call(null,c))))%4503599627370496;a=N(a)}else return b}function wb(a,b,c,d,e){this.i=a;this.ka=b;this.aa=c;this.count=d;this.h=e;this.o=0;this.f=65937646}r=wb.prototype;r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};r.Z=function(){return 1===this.count?null:this.aa};r.v=function(a,b){return new wb(this.i,b,this,this.count+1,null)};r.toString=function(){return G(this)};
r.H=function(a,b){return V.b(b,this)};r.I=function(a,b,c){return V.c(b,c,this)};r.w=function(){return this};r.B=f("count");r.M=f("ka");r.O=function(){return 1===this.count?M:this.aa};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new wb(b,this.ka,this.aa,this.count,this.h)};r.L=f("i");function xb(a){this.i=a;this.o=0;this.f=65937614}r=xb.prototype;r.u=n(0);r.Z=n(null);r.v=function(a,b){return new wb(this.i,b,null,1,null)};r.toString=function(){return G(this)};
r.H=function(a,b){return V.b(b,this)};r.I=function(a,b,c){return V.c(b,c,this)};r.w=n(null);r.B=n(0);r.M=n(null);r.O=function(){return M};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new xb(b)};r.L=f("i");
var M=new xb(null),Za=function(){function a(a){var d=null;0<arguments.length&&(d=O(Array.prototype.slice.call(arguments,0),0));return b.call(this,d)}function b(a){var b;if(a instanceof Ta)b=a.a;else a:{for(b=[];;)if(null!=a)b.push(a.M(null)),a=a.Z(null);else break a;b=void 0}a=b.length;for(var e=M;;)if(0<a){var g=a-1,e=e.v(null,b[a-1]);a=g}else return e}a.p=0;a.k=function(a){a=H(a);return b(a)};a.j=b;return a}();function yb(a,b,c,d){this.i=a;this.ka=b;this.aa=c;this.h=d;this.o=0;this.f=65929452}
r=yb.prototype;r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};r.Z=function(){return null==this.aa?null:H(this.aa)};r.v=function(a,b){return new yb(null,b,this,this.h)};r.toString=function(){return G(this)};r.H=function(a,b){return V.b(b,this)};r.I=function(a,b,c){return V.c(b,c,this)};r.w=function(){return this};r.M=f("ka");r.O=function(){return null==this.aa?M:this.aa};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new yb(b,this.ka,this.aa,this.h)};r.L=f("i");
function Q(a,b){var c=null==b;return(c?c:b&&(b.f&64||b.oa))?new yb(null,a,b,null):new yb(null,a,H(b),null)}function zb(a,b,c,d){this.bb=a;this.name=b;this.ca=c;this.sa=d;this.f=2153775105;this.o=4096}r=zb.prototype;r.t=function(a,b){return F(b,[y(":"),y(this.ca)].join(""))};r.u=function(){null==this.sa&&(this.sa=ub(U(this.bb),U(this.name))+2654435769);return this.sa};
r.call=function(){var a=null;return a=function(a,c,d){switch(arguments.length){case 2:return db.b(c,this);case 3:return db.c(c,this,d)}throw Error("Invalid arity: "+arguments.length);}}();r.apply=function(a,b){return this.call.apply(this,[this].concat(b.slice()))};r.e=function(a){return db.b(a,this)};r.b=function(a,b){return db.c(a,this,b)};r.s=function(a,b){return b instanceof zb?this.ca===b.ca:!1};r.toString=function(){return[y(":"),y(this.ca)].join("")};
function Ab(a,b,c,d){this.i=a;this.la=b;this.n=c;this.h=d;this.o=0;this.f=32374988}r=Ab.prototype;r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};r.Z=function(){Da(this);return null==this.n?null:N(this.n)};r.v=function(a,b){return Q(b,this)};r.toString=function(){return G(this)};function Bb(a){null!=a.la&&(a.n=a.la.ea?"":a.la.call(null),a.la=null);return a.n}r.H=function(a,b){return V.b(b,this)};r.I=function(a,b,c){return V.c(b,c,this)};
r.w=function(){Bb(this);if(null==this.n)return null;for(var a=this.n;;)if(a instanceof Ab)a=Bb(a);else return this.n=a,H(this.n)};r.M=function(){Da(this);return null==this.n?null:J(this.n)};r.O=function(){Da(this);return null!=this.n?L(this.n):M};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new Ab(b,this.la,this.n,this.h)};r.L=f("i");function Cb(a,b){this.ua=a;this.end=b;this.o=0;this.f=2}Cb.prototype.B=f("end");Cb.prototype.add=function(a){this.ua[this.end]=a;return this.end+=1};
Cb.prototype.X=function(){var a=new Db(this.ua,0,this.end);this.ua=null;return a};function Db(a,b,c){this.a=a;this.off=b;this.end=c;this.o=0;this.f=524306}r=Db.prototype;r.H=function(a,b){return Wa.m(this.a,b,this.a[this.off],this.off+1)};r.I=function(a,b,c){return Wa.m(this.a,b,c,this.off)};r.Ma=function(){if(this.off===this.end)throw Error("-drop-first of empty chunk");return new Db(this.a,this.off+1,this.end)};r.K=function(a,b){return this.a[this.off+b]};
r.R=function(a,b,c){return 0<=b&&b<this.end-this.off?this.a[this.off+b]:c};r.B=function(){return this.end-this.off};var Eb=function(){function a(a,b,c){return new Db(a,b,c)}function b(a,b){return new Db(a,b,a.length)}function c(a){return new Db(a,0,a.length)}var d=null,d=function(d,g,h){switch(arguments.length){case 1:return c.call(this,d);case 2:return b.call(this,d,g);case 3:return a.call(this,d,g,h)}throw Error("Invalid arity: "+arguments.length);};d.e=c;d.b=b;d.c=a;return d}();
function Fb(a,b,c,d){this.X=a;this.V=b;this.i=c;this.h=d;this.f=31850732;this.o=1536}r=Fb.prototype;r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};r.Z=function(){if(1<z(this.X))return new Fb(Na(this.X),this.V,this.i,null);var a=Da(this.V);return null==a?null:a};r.v=function(a,b){return Q(b,this)};r.toString=function(){return G(this)};r.w=function(){return this};r.M=function(){return A.b(this.X,0)};
r.O=function(){return 1<z(this.X)?new Fb(Na(this.X),this.V,this.i,null):null==this.V?M:this.V};r.va=function(){return null==this.V?null:this.V};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new Fb(this.X,this.V,b,this.h)};r.L=f("i");r.wa=f("X");r.xa=function(){return null==this.V?M:this.V};function Gb(a){for(var b=[];;)if(H(a))b.push(J(a)),a=N(a);else return b}function Hb(a,b){if(Xa(a))return S(a);for(var c=a,d=b,e=0;;)if(0<d&&H(c))c=N(c),d-=1,e+=1;else return e}
var Kb=function Ib(b){return null==b?null:null==N(b)?H(J(b)):w?Q(J(b),Ib(N(b))):null},Lb=function(){function a(a,b,c,d){return Q(a,Q(b,Q(c,d)))}function b(a,b,c){return Q(a,Q(b,c))}var c=null,d=function(){function a(c,d,e,m,p){var q=null;4<arguments.length&&(q=O(Array.prototype.slice.call(arguments,4),0));return b.call(this,c,d,e,m,q)}function b(a,c,d,e,g){return Q(a,Q(c,Q(d,Q(e,Kb(g)))))}a.p=4;a.k=function(a){var c=J(a);a=N(a);var d=J(a);a=N(a);var e=J(a);a=N(a);var p=J(a);a=L(a);return b(c,d,e,
p,a)};a.j=b;return a}(),c=function(c,g,h,k,l){switch(arguments.length){case 1:return H(c);case 2:return Q(c,g);case 3:return b.call(this,c,g,h);case 4:return a.call(this,c,g,h,k);default:return d.j(c,g,h,k,O(arguments,4))}throw Error("Invalid arity: "+arguments.length);};c.p=4;c.k=d.k;c.e=function(a){return H(a)};c.b=function(a,b){return Q(a,b)};c.c=b;c.m=a;c.j=d.j;return c}();
function Mb(a,b,c){var d=H(c);if(0===b)return a.ea?"":a.call(null);c=D(d);var e=E(d);if(1===b)return a.e?a.e(c):a.e?a.e(c):a.call(null,c);var d=D(e),g=E(e);if(2===b)return a.b?a.b(c,d):a.b?a.b(c,d):a.call(null,c,d);var e=D(g),h=E(g);if(3===b)return a.c?a.c(c,d,e):a.c?a.c(c,d,e):a.call(null,c,d,e);var g=D(h),k=E(h);if(4===b)return a.m?a.m(c,d,e,g):a.m?a.m(c,d,e,g):a.call(null,c,d,e,g);h=D(k);k=E(k);if(5===b)return a.C?a.C(c,d,e,g,h):a.C?a.C(c,d,e,g,h):a.call(null,c,d,e,g,h);a=D(k);var l=E(k);if(6===
b)return a.Y?a.Y(c,d,e,g,h,a):a.Y?a.Y(c,d,e,g,h,a):a.call(null,c,d,e,g,h,a);var k=D(l),m=E(l);if(7===b)return a.fa?a.fa(c,d,e,g,h,a,k):a.fa?a.fa(c,d,e,g,h,a,k):a.call(null,c,d,e,g,h,a,k);var l=D(m),p=E(m);if(8===b)return a.Ja?a.Ja(c,d,e,g,h,a,k,l):a.Ja?a.Ja(c,d,e,g,h,a,k,l):a.call(null,c,d,e,g,h,a,k,l);var m=D(p),q=E(p);if(9===b)return a.Ka?a.Ka(c,d,e,g,h,a,k,l,m):a.Ka?a.Ka(c,d,e,g,h,a,k,l,m):a.call(null,c,d,e,g,h,a,k,l,m);var p=D(q),v=E(q);if(10===b)return a.ya?a.ya(c,d,e,g,h,a,k,l,m,p):a.ya?a.ya(c,
d,e,g,h,a,k,l,m,p):a.call(null,c,d,e,g,h,a,k,l,m,p);var q=D(v),B=E(v);if(11===b)return a.za?a.za(c,d,e,g,h,a,k,l,m,p,q):a.za?a.za(c,d,e,g,h,a,k,l,m,p,q):a.call(null,c,d,e,g,h,a,k,l,m,p,q);var v=D(B),C=E(B);if(12===b)return a.Aa?a.Aa(c,d,e,g,h,a,k,l,m,p,q,v):a.Aa?a.Aa(c,d,e,g,h,a,k,l,m,p,q,v):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v);var B=D(C),I=E(C);if(13===b)return a.Ba?a.Ba(c,d,e,g,h,a,k,l,m,p,q,v,B):a.Ba?a.Ba(c,d,e,g,h,a,k,l,m,p,q,v,B):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v,B);var C=D(I),K=E(I);if(14===
b)return a.Ca?a.Ca(c,d,e,g,h,a,k,l,m,p,q,v,B,C):a.Ca?a.Ca(c,d,e,g,h,a,k,l,m,p,q,v,B,C):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v,B,C);var I=D(K),T=E(K);if(15===b)return a.Da?a.Da(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I):a.Da?a.Da(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v,B,C,I);var K=D(T),ba=E(T);if(16===b)return a.Ea?a.Ea(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K):a.Ea?a.Ea(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K);var T=D(ba),ka=E(ba);if(17===b)return a.Fa?a.Fa(c,
d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T):a.Fa?a.Fa(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T);var ba=D(ka),gb=E(ka);if(18===b)return a.Ga?a.Ga(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba):a.Ga?a.Ga(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba);ka=D(gb);gb=E(gb);if(19===b)return a.Ha?a.Ha(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba,ka):a.Ha?a.Ha(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba,ka):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba,ka);var Jb=
D(gb);E(gb);if(20===b)return a.Ia?a.Ia(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba,ka,Jb):a.Ia?a.Ia(c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba,ka,Jb):a.call(null,c,d,e,g,h,a,k,l,m,p,q,v,B,C,I,K,T,ba,ka,Jb);throw Error("Only up to 20 arguments supported on functions");}
var Nb=function(){function a(a,b,c,d,e){b=Lb.m(b,c,d,e);c=a.p;return a.k?(d=Hb(b,c+1),d<=c?Mb(a,d,b):a.k(b)):a.apply(a,Gb(b))}function b(a,b,c,d){b=Lb.c(b,c,d);c=a.p;return a.k?(d=Hb(b,c+1),d<=c?Mb(a,d,b):a.k(b)):a.apply(a,Gb(b))}function c(a,b,c){b=Lb.b(b,c);c=a.p;if(a.k){var d=Hb(b,c+1);return d<=c?Mb(a,d,b):a.k(b)}return a.apply(a,Gb(b))}function d(a,b){var c=a.p;if(a.k){var d=Hb(b,c+1);return d<=c?Mb(a,d,b):a.k(b)}return a.apply(a,Gb(b))}var e=null,g=function(){function a(c,d,e,g,h,B){var C=null;
5<arguments.length&&(C=O(Array.prototype.slice.call(arguments,5),0));return b.call(this,c,d,e,g,h,C)}function b(a,c,d,e,g,h){c=Q(c,Q(d,Q(e,Q(g,Kb(h)))));d=a.p;return a.k?(e=Hb(c,d+1),e<=d?Mb(a,e,c):a.k(c)):a.apply(a,Gb(c))}a.p=5;a.k=function(a){var c=J(a);a=N(a);var d=J(a);a=N(a);var e=J(a);a=N(a);var g=J(a);a=N(a);var h=J(a);a=L(a);return b(c,d,e,g,h,a)};a.j=b;return a}(),e=function(e,k,l,m,p,q){switch(arguments.length){case 2:return d.call(this,e,k);case 3:return c.call(this,e,k,l);case 4:return b.call(this,
e,k,l,m);case 5:return a.call(this,e,k,l,m,p);default:return g.j(e,k,l,m,p,O(arguments,5))}throw Error("Invalid arity: "+arguments.length);};e.p=5;e.k=g.k;e.b=d;e.c=c;e.m=b;e.C=a;e.j=g.j;return e}();function Ob(a,b){for(;;){if(null==H(b))return!0;if(t(a.e?a.e(J(b)):a.call(null,J(b)))){var c=a,d=N(b);a=c;b=d}else return w?!1:null}}function Pb(a){return a}
var Qb=function(){function a(a,b,c,e){return new Ab(null,function(){var m=H(b),p=H(c),q=H(e);return m&&p&&q?Q(a.c?a.c(J(m),J(p),J(q)):a.call(null,J(m),J(p),J(q)),d.m(a,L(m),L(p),L(q))):null},null,null)}function b(a,b,c){return new Ab(null,function(){var e=H(b),m=H(c);return e&&m?Q(a.b?a.b(J(e),J(m)):a.call(null,J(e),J(m)),d.c(a,L(e),L(m))):null},null,null)}function c(a,b){return new Ab(null,function(){var c=H(b);if(c){if(mb(c)){for(var e=Oa(c),m=S(e),p=new Cb(Array(m),0),q=0;;)if(q<m){var v=a.e?a.e(A.b(e,
q)):a.call(null,A.b(e,q));p.add(v);q+=1}else break;e=p.X();c=d.b(a,Pa(c));return 0===z(e)?c:new Fb(e,c,null,null)}return Q(a.e?a.e(J(c)):a.call(null,J(c)),d.b(a,L(c)))}return null},null,null)}var d=null,e=function(){function a(c,d,e,g,q){var v=null;4<arguments.length&&(v=O(Array.prototype.slice.call(arguments,4),0));return b.call(this,c,d,e,g,v)}function b(a,c,e,g,h){return d.b(function(b){return Nb.b(a,b)},function B(a){return new Ab(null,function(){var b=d.b(H,a);return Ob(Pb,b)?Q(d.b(J,b),B(d.b(L,
b))):null},null,null)}(ab.j(h,g,O([e,c],0))))}a.p=4;a.k=function(a){var c=J(a);a=N(a);var d=J(a);a=N(a);var e=J(a);a=N(a);var g=J(a);a=L(a);return b(c,d,e,g,a)};a.j=b;return a}(),d=function(d,h,k,l,m){switch(arguments.length){case 2:return c.call(this,d,h);case 3:return b.call(this,d,h,k);case 4:return a.call(this,d,h,k,l);default:return e.j(d,h,k,l,O(arguments,4))}throw Error("Invalid arity: "+arguments.length);};d.p=4;d.k=e.k;d.b=c;d.c=b;d.m=a;d.j=e.j;return d}();
function Rb(a,b){this.l=a;this.a=b}function Sb(a){a=a.d;return 32>a?0:a-1>>>5<<5}function Tb(a,b,c){for(;;){if(0===b)return c;var d=new Rb(a,Array(32));d.a[0]=c;c=d;b-=5}}var Vb=function Ub(b,c,d,e){var g=new Rb(d.l,d.a.slice()),h=b.d-1>>>c&31;5===c?g.a[h]=e:(d=d.a[h],b=null!=d?Ub(b,c-5,d,e):Tb(null,c-5,e),g.a[h]=b);return g};function Wb(a,b){throw Error([y("No item "),y(a),y(" in vector of length "),y(b)].join(""));}
function Xb(a,b){if(0<=b&&b<a.d){if(b>=Sb(a))return a.A;for(var c=a.root,d=a.shift;;)if(0<d)var e=d-5,c=c.a[b>>>d&31],d=e;else return c.a}else return Wb(b,a.d)}var Zb=function Yb(b,c,d,e,g){var h=new Rb(d.l,d.a.slice());if(0===c)h.a[e&31]=g;else{var k=e>>>c&31;b=Yb(b,c-5,d.a[k],e,g);h.a[k]=b}return h};function Y(a,b,c,d,e,g){this.i=a;this.d=b;this.shift=c;this.root=d;this.A=e;this.h=g;this.o=4;this.f=167668511}r=Y.prototype;
r.na=function(){return new $b(this.d,this.shift,ac.e?ac.e(this.root):ac.call(null,this.root),bc.e?bc.e(this.A):bc.call(null,this.A))};r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};r.D=function(a,b){return A.c(this,b,null)};r.F=function(a,b,c){return A.c(this,b,c)};
r.ja=function(a,b,c){if(0<=b&&b<this.d)return Sb(this)<=b?(a=this.A.slice(),a[b&31]=c,new Y(this.i,this.d,this.shift,this.root,a,null)):new Y(this.i,this.d,this.shift,Zb(this,this.shift,this.root,b,c),this.A,null);if(b===this.d)return ia(this,c);if(w)throw Error([y("Index "),y(b),y(" out of bounds [0,"),y(this.d),y("]")].join(""));return null};
r.call=function(){var a=null;return a=function(a,c,d){switch(arguments.length){case 2:return this.K(null,c);case 3:return this.R(null,c,d)}throw Error("Invalid arity: "+arguments.length);}}();r.apply=function(a,b){return this.call.apply(this,[this].concat(b.slice()))};r.e=function(a){return this.K(null,a)};r.b=function(a,b){return this.R(null,a,b)};
r.v=function(a,b){if(32>this.d-Sb(this)){var c=this.A.slice();c.push(b);return new Y(this.i,this.d+1,this.shift,this.root,c,null)}var d=this.d>>>5>1<<this.shift,c=d?this.shift+5:this.shift;if(d){d=new Rb(null,Array(32));d.a[0]=this.root;var e=Tb(null,this.shift,new Rb(null,this.A));d.a[1]=e}else d=Vb(this,this.shift,this.root,new Rb(null,this.A));return new Y(this.i,this.d+1,c,d,[b],null)};r.Qa=function(){return A.b(this,0)};r.Ra=function(){return A.b(this,1)};r.toString=function(){return G(this)};
r.H=function(a,b){return Va.b(this,b)};r.I=function(a,b,c){return Va.c(this,b,c)};r.w=function(){return 0===this.d?null:32>this.d?O.e(this.A):w?Z.c?Z.c(this,0,0):Z.call(null,this,0,0):null};r.B=f("d");r.La=function(a,b,c){return oa(this,b,c)};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new Y(b,this.d,this.shift,this.root,this.A,this.h)};r.L=f("i");r.K=function(a,b){return Xb(this,b)[b&31]};r.R=function(a,b,c){return 0<=b&&b<this.d?A.b(this,b):c};var cc=new Rb(null,Array(32));
function dc(a){var b=a.length;if(32>b)return new Y(null,b,5,cc,a,null);for(var c=a.slice(0,32),d=32,e=Ia(new Y(null,32,5,cc,c,null));;)if(d<b)c=d+1,e=Ja(e,a[d]),d=c;else return Ka(e)}function ec(a,b,c,d,e,g){this.r=a;this.Q=b;this.g=c;this.off=d;this.i=e;this.h=g;this.f=32243948;this.o=1536}r=ec.prototype;r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};
r.Z=function(){if(this.off+1<this.Q.length){var a=Z.m?Z.m(this.r,this.Q,this.g,this.off+1):Z.call(null,this.r,this.Q,this.g,this.off+1);return null==a?null:a}return Qa(this)};r.v=function(a,b){return Q(b,this)};r.toString=function(){return G(this)};r.H=function(a,b){return Va.b(fc.c?fc.c(this.r,this.g+this.off,S(this.r)):fc.call(null,this.r,this.g+this.off,S(this.r)),b)};r.I=function(a,b,c){return Va.c(fc.c?fc.c(this.r,this.g+this.off,S(this.r)):fc.call(null,this.r,this.g+this.off,S(this.r)),b,c)};
r.w=function(){return this};r.M=function(){return this.Q[this.off]};r.O=function(){if(this.off+1<this.Q.length){var a=Z.m?Z.m(this.r,this.Q,this.g,this.off+1):Z.call(null,this.r,this.Q,this.g,this.off+1);return null==a?M:a}return Pa(this)};r.va=function(){var a=this.Q.length,a=this.g+a<z(this.r)?Z.c?Z.c(this.r,this.g+a,0):Z.call(null,this.r,this.g+a,0):null;return null==a?null:a};r.s=function(a,b){return R(this,b)};
r.J=function(a,b){return Z.C?Z.C(this.r,this.Q,this.g,this.off,b):Z.call(null,this.r,this.Q,this.g,this.off,b)};r.wa=function(){return Eb.b(this.Q,this.off)};r.xa=function(){var a=this.Q.length,a=this.g+a<z(this.r)?Z.c?Z.c(this.r,this.g+a,0):Z.call(null,this.r,this.g+a,0):null;return null==a?M:a};
var Z=function(){function a(a,b,c,d,l){return new ec(a,b,c,d,l,null)}function b(a,b,c,d){return new ec(a,b,c,d,null,null)}function c(a,b,c){return new ec(a,Xb(a,b),b,c,null,null)}var d=null,d=function(d,g,h,k,l){switch(arguments.length){case 3:return c.call(this,d,g,h);case 4:return b.call(this,d,g,h,k);case 5:return a.call(this,d,g,h,k,l)}throw Error("Invalid arity: "+arguments.length);};d.c=c;d.m=b;d.C=a;return d}();
function gc(a,b,c,d,e){this.i=a;this.W=b;this.start=c;this.end=d;this.h=e;this.o=0;this.f=32400159}r=gc.prototype;r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};r.D=function(a,b){return A.c(this,b,null)};r.F=function(a,b,c){return A.c(this,b,c)};r.ja=function(a,b,c){var d=this,e=d.start+b;return hc.C?hc.C(d.i,fb.c(d.W,e,c),d.start,function(){var a=d.end,b=e+1;return a>b?a:b}(),null):hc.call(null,d.i,fb.c(d.W,e,c),d.start,function(){var a=d.end,b=e+1;return a>b?a:b}(),null)};
r.call=function(){var a=null;return a=function(a,c,d){switch(arguments.length){case 2:return this.K(null,c);case 3:return this.R(null,c,d)}throw Error("Invalid arity: "+arguments.length);}}();r.apply=function(a,b){return this.call.apply(this,[this].concat(b.slice()))};r.e=function(a){return this.K(null,a)};r.b=function(a,b){return this.R(null,a,b)};
r.v=function(a,b){return hc.C?hc.C(this.i,ua(this.W,this.end,b),this.start,this.end+1,null):hc.call(null,this.i,ua(this.W,this.end,b),this.start,this.end+1,null)};r.toString=function(){return G(this)};r.H=function(a,b){return Va.b(this,b)};r.I=function(a,b,c){return Va.c(this,b,c)};r.w=function(){var a=this;return function c(d){return d===a.end?null:Q(A.b(a.W,d),new Ab(null,function(){return c(d+1)},null,null))}(a.start)};r.B=function(){return this.end-this.start};
r.La=function(a,b,c){return oa(this,b,c)};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return hc.C?hc.C(b,this.W,this.start,this.end,this.h):hc.call(null,b,this.W,this.start,this.end,this.h)};r.L=f("i");r.K=function(a,b){return 0>b||this.end<=this.start+b?Wb(b,this.end-this.start):A.b(this.W,this.start+b)};r.R=function(a,b,c){return 0>b||this.end<=this.start+b?c:A.c(this.W,this.start+b,c)};
function hc(a,b,c,d,e){for(;;)if(b instanceof gc)c=b.start+c,d=b.start+d,b=b.W;else{var g=S(b);if(0>c||0>d||c>g||d>g)throw Error("Index out of bounds");return new gc(a,b,c,d,e)}}var fc=function(){function a(a,b,c){return hc(null,a,b,c,null)}function b(a,b){return c.c(a,b,S(a))}var c=null,c=function(c,e,g){switch(arguments.length){case 2:return b.call(this,c,e);case 3:return a.call(this,c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.b=b;c.c=a;return c}();
function ac(a){return new Rb({},a.a.slice())}function bc(a){var b=Array(32);nb(a,0,b,0,a.length);return b}var jc=function ic(b,c,d,e){d=b.root.l===d.l?d:new Rb(b.root.l,d.a.slice());var g=b.d-1>>>c&31;if(5===c)b=e;else{var h=d.a[g];b=null!=h?ic(b,c-5,h,e):Tb(b.root.l,c-5,e)}d.a[g]=b;return d};function $b(a,b,c,d){this.d=a;this.shift=b;this.root=c;this.A=d;this.f=275;this.o=88}r=$b.prototype;
r.call=function(){var a=null;return a=function(a,c,d){switch(arguments.length){case 2:return this.D(null,c);case 3:return this.F(null,c,d)}throw Error("Invalid arity: "+arguments.length);}}();r.apply=function(a,b){return this.call.apply(this,[this].concat(b.slice()))};r.e=function(a){return this.D(null,a)};r.b=function(a,b){return this.F(null,a,b)};r.D=function(a,b){return A.c(this,b,null)};r.F=function(a,b,c){return A.c(this,b,c)};
r.K=function(a,b){if(this.root.l)return Xb(this,b)[b&31];throw Error("nth after persistent!");};r.R=function(a,b,c){return 0<=b&&b<this.d?A.b(this,b):c};r.B=function(){if(this.root.l)return this.d;throw Error("count after persistent!");};
r.Sa=function(a,b,c){var d=this;if(d.root.l){if(0<=b&&b<d.d)return Sb(this)<=b?d.A[b&31]=c:(a=function g(a,k){var l=d.root.l===k.l?k:new Rb(d.root.l,k.a.slice());if(0===a)l.a[b&31]=c;else{var m=b>>>a&31,p=g(a-5,l.a[m]);l.a[m]=p}return l}.call(null,d.shift,d.root),d.root=a),this;if(b===d.d)return Ja(this,c);if(w)throw Error([y("Index "),y(b),y(" out of bounds for TransientVector of length"),y(d.d)].join(""));return null}throw Error("assoc! after persistent!");};
r.pa=function(a,b,c){return Ma(this,b,c)};r.qa=function(a,b){if(this.root.l){if(32>this.d-Sb(this))this.A[this.d&31]=b;else{var c=new Rb(this.root.l,this.A),d=Array(32);d[0]=b;this.A=d;if(this.d>>>5>1<<this.shift){var d=Array(32),e=this.shift+5;d[0]=this.root;d[1]=Tb(this.root.l,this.shift,c);this.root=new Rb(this.root.l,d);this.shift=e}else this.root=jc(this,this.shift,this.root,c)}this.d+=1;return this}throw Error("conj! after persistent!");};
r.ra=function(){if(this.root.l){this.root.l=null;var a=this.d-Sb(this),b=Array(a);nb(this.A,0,b,0,a);return new Y(null,this.d,this.shift,this.root,b,null)}throw Error("persistent! called twice");};function kc(){this.o=0;this.f=2097152}kc.prototype.s=n(!1);var lc=new kc;function mc(a,b){return ob((null==b?0:b?b.f&1024||b.jb||(b.f?0:u(pa,b)):u(pa,b))?S(a)===S(b)?Ob(Pb,Qb.b(function(a){return Ua.b(db.c(b,J(a),lc),J(N(a)))},a)):null:null)}
function nc(a,b){var c=a.a;if(b instanceof zb)a:{for(var d=c.length,e=b.ca,g=0;;){if(d<=g){c=-1;break a}var h=c[g];if(h instanceof zb&&e===h.ca){c=g;break a}if(w)g+=2;else{c=null;break a}}c=void 0}else if("string"==typeof b||"number"===typeof b)a:{d=c.length;for(e=0;;){if(d<=e){c=-1;break a}if(b===c[e]){c=e;break a}if(w)e+=2;else{c=null;break a}}c=void 0}else if(null==b)a:{d=c.length;for(e=0;;){if(d<=e){c=-1;break a}if(null==c[e]){c=e;break a}if(w)e+=2;else{c=null;break a}}c=void 0}else if(w)a:{d=
c.length;for(e=0;;){if(d<=e){c=-1;break a}if(Ua.b(b,c[e])){c=e;break a}if(w)e+=2;else{c=null;break a}}c=void 0}else c=null;return c}function oc(a,b,c){this.a=a;this.g=b;this.ta=c;this.o=0;this.f=32374990}r=oc.prototype;r.u=function(){return P(this)};r.Z=function(){return this.g<this.a.length-2?new oc(this.a,this.g+2,this.ta):null};r.v=function(a,b){return Q(b,this)};r.toString=function(){return G(this)};r.H=function(a,b){return V.b(b,this)};r.I=function(a,b,c){return V.c(b,c,this)};r.w=function(){return this};
r.B=function(){return(this.a.length-this.g)/2};r.M=function(){return dc([this.a[this.g],this.a[this.g+1]])};r.O=function(){return this.g<this.a.length-2?new oc(this.a,this.g+2,this.ta):M};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new oc(this.a,this.g,b)};r.L=f("ta");function pc(a,b,c,d){this.i=a;this.d=b;this.a=c;this.h=d;this.o=4;this.f=16123663}r=pc.prototype;r.na=function(){return new qc({},this.a.length,this.a.slice())};
r.u=function(){var a=this.h;return null!=a?a:this.h=a=vb(this)};r.D=function(a,b){return na.c(this,b,null)};r.F=function(a,b,c){a=nc(this,b);return-1===a?c:this.a[a+1]};
r.ja=function(a,b,c){a=nc(this,b);if(-1===a){if(this.d<rc){a=this.a;for(var d=a.length,e=Array(d+2),g=0;;)if(g<d)e[g]=a[g],g+=1;else break;e[d]=b;e[d+1]=c;return new pc(this.i,this.d+1,e,null)}a=xa;d=oa;e=sc;null!=e?e&&(e.o&4||e.hb)?(e=rb.c(Ja,Ia(e),this),e=Ka(e)):e=rb.c(ia,e,this):e=rb.c(ab,M,this);return a(d(e,b,c),this.i)}return c===this.a[a+1]?this:w?(b=this.a.slice(),b[a+1]=c,new pc(this.i,this.d,b,null)):null};
r.call=function(){var a=null;return a=function(a,c,d){switch(arguments.length){case 2:return this.D(null,c);case 3:return this.F(null,c,d)}throw Error("Invalid arity: "+arguments.length);}}();r.apply=function(a,b){return this.call.apply(this,[this].concat(b.slice()))};r.e=function(a){return this.D(null,a)};r.b=function(a,b){return this.F(null,a,b)};r.v=function(a,b){return lb(b)?oa(this,A.b(b,0),A.b(b,1)):rb.c(ia,this,b)};r.toString=function(){return G(this)};
r.w=function(){return 0<=this.a.length-2?new oc(this.a,0,null):null};r.B=f("d");r.s=function(a,b){return mc(this,b)};r.J=function(a,b){return new pc(b,this.d,this.a,this.h)};r.L=f("i");var rc=8;function Sa(){var a=[tc,!0,uc,!0,vc,!1,wc,!1];return new pc(null,a.length/2,a,null)}function qc(a,b,c){this.ga=a;this.$=b;this.a=c;this.o=56;this.f=258}r=qc.prototype;
r.pa=function(a,b,c){if(t(this.ga)){a=nc(this,b);if(-1===a){if(this.$+2<=2*rc)return this.$+=2,this.a.push(b),this.a.push(c),this;a=xc.b?xc.b(this.$,this.a):xc.call(null,this.$,this.a);return La(a,b,c)}c!==this.a[a+1]&&(this.a[a+1]=c);return this}throw Error("assoc! after persistent!");};
r.qa=function(a,b){if(t(this.ga)){if(b?b.f&2048||b.Wa||(b.f?0:u(qa,b)):u(qa,b))return La(this,W.e?W.e(b):W.call(null,b),X.e?X.e(b):X.call(null,b));for(var c=H(b),d=this;;){var e=J(c);if(t(e))c=N(c),d=La(d,W.e?W.e(e):W.call(null,e),X.e?X.e(e):X.call(null,e));else return d}}else throw Error("conj! after persistent!");};r.ra=function(){if(t(this.ga))return this.ga=!1,new pc(null,sb((this.$-this.$%2)/2),this.a,null);throw Error("persistent! called twice");};r.D=function(a,b){return na.c(this,b,null)};
r.F=function(a,b,c){if(t(this.ga))return a=nc(this,b),-1===a?c:this.a[a+1];throw Error("lookup after persistent!");};r.B=function(){if(t(this.ga))return sb((this.$-this.$%2)/2);throw Error("count after persistent!");};function xc(a,b){for(var c=Ia(sc),d=0;;)if(d<a)c=La(c,b[d],b[d+1]),d+=2;else return c}function yc(){this.val=!1}function zc(a,b){return a===b?!0:a===b||a instanceof zb&&b instanceof zb&&a.ca===b.ca?!0:w?Ua.b(a,b):null}
var Ac=function(){function a(a,b,c,h,k){a=a.slice();a[b]=c;a[h]=k;return a}function b(a,b,c){a=a.slice();a[b]=c;return a}var c=null,c=function(c,e,g,h,k){switch(arguments.length){case 3:return b.call(this,c,e,g);case 5:return a.call(this,c,e,g,h,k)}throw Error("Invalid arity: "+arguments.length);};c.c=b;c.C=a;return c}(),Bc=function(){function a(a,b,c,h,k,l){a=a.ha(b);a.a[c]=h;a.a[k]=l;return a}function b(a,b,c,h){a=a.ha(b);a.a[c]=h;return a}var c=null,c=function(c,e,g,h,k,l){switch(arguments.length){case 4:return b.call(this,
c,e,g,h);case 6:return a.call(this,c,e,g,h,k,l)}throw Error("Invalid arity: "+arguments.length);};c.m=b;c.Y=a;return c}();function Cc(a,b,c){this.l=a;this.q=b;this.a=c}r=Cc.prototype;
r.T=function(a,b,c,d,e,g){var h=1<<(c>>>b&31),k=tb(this.q&h-1);if(0===(this.q&h)){var l=tb(this.q);if(2*l<this.a.length){a=this.ha(a);b=a.a;g.val=!0;a:for(c=2*(l-k),g=2*k+(c-1),l=2*(k+1)+(c-1);;){if(0===c)break a;b[l]=b[g];l-=1;c-=1;g-=1}b[2*k]=d;b[2*k+1]=e;a.q|=h;return a}if(16<=l){k=Array(32);k[c>>>b&31]=Dc.T(a,b+5,c,d,e,g);for(e=d=0;;)if(32>d)0!==(this.q>>>d&1)&&(k[d]=null!=this.a[e]?Dc.T(a,b+5,U(this.a[e]),this.a[e],this.a[e+1],g):this.a[e+1],e+=2),d+=1;else break;return new Ec(a,l+1,k)}return w?
(b=Array(2*(l+4)),nb(this.a,0,b,0,2*k),b[2*k]=d,b[2*k+1]=e,nb(this.a,2*k,b,2*(k+1),2*(l-k)),g.val=!0,a=this.ha(a),a.a=b,a.q|=h,a):null}l=this.a[2*k];h=this.a[2*k+1];return null==l?(l=h.T(a,b+5,c,d,e,g),l===h?this:Bc.m(this,a,2*k+1,l)):zc(d,l)?e===h?this:Bc.m(this,a,2*k+1,e):w?(g.val=!0,Bc.Y(this,a,2*k,null,2*k+1,Fc.fa?Fc.fa(a,b+5,l,h,c,d,e):Fc.call(null,a,b+5,l,h,c,d,e))):null};r.ma=function(){return Gc.e?Gc.e(this.a):Gc.call(null,this.a)};
r.ha=function(a){if(a===this.l)return this;var b=tb(this.q),c=Array(0>b?4:2*(b+1));nb(this.a,0,c,0,2*b);return new Cc(a,this.q,c)};
r.S=function(a,b,c,d,e){var g=1<<(b>>>a&31),h=tb(this.q&g-1);if(0===(this.q&g)){var k=tb(this.q);if(16<=k){h=Array(32);h[b>>>a&31]=Dc.S(a+5,b,c,d,e);for(d=c=0;;)if(32>c)0!==(this.q>>>c&1)&&(h[c]=null!=this.a[d]?Dc.S(a+5,U(this.a[d]),this.a[d],this.a[d+1],e):this.a[d+1],d+=2),c+=1;else break;return new Ec(null,k+1,h)}a=Array(2*(k+1));nb(this.a,0,a,0,2*h);a[2*h]=c;a[2*h+1]=d;nb(this.a,2*h,a,2*(h+1),2*(k-h));e.val=!0;return new Cc(null,this.q|g,a)}k=this.a[2*h];g=this.a[2*h+1];return null==k?(k=g.S(a+
5,b,c,d,e),k===g?this:new Cc(null,this.q,Ac.c(this.a,2*h+1,k))):zc(c,k)?d===g?this:new Cc(null,this.q,Ac.c(this.a,2*h+1,d)):w?(e.val=!0,new Cc(null,this.q,Ac.C(this.a,2*h,null,2*h+1,Fc.Y?Fc.Y(a+5,k,g,b,c,d):Fc.call(null,a+5,k,g,b,c,d)))):null};r.da=function(a,b,c,d){var e=1<<(b>>>a&31);if(0===(this.q&e))return d;var g=tb(this.q&e-1),e=this.a[2*g],g=this.a[2*g+1];return null==e?g.da(a+5,b,c,d):zc(c,e)?g:w?d:null};var Dc=new Cc(null,0,[]);function Ec(a,b,c){this.l=a;this.d=b;this.a=c}r=Ec.prototype;
r.T=function(a,b,c,d,e,g){var h=c>>>b&31,k=this.a[h];if(null==k)return a=Bc.m(this,a,h,Dc.T(a,b+5,c,d,e,g)),a.d+=1,a;b=k.T(a,b+5,c,d,e,g);return b===k?this:Bc.m(this,a,h,b)};r.ma=function(){return Hc.e?Hc.e(this.a):Hc.call(null,this.a)};r.ha=function(a){return a===this.l?this:new Ec(a,this.d,this.a.slice())};
r.S=function(a,b,c,d,e){var g=b>>>a&31,h=this.a[g];if(null==h)return new Ec(null,this.d+1,Ac.c(this.a,g,Dc.S(a+5,b,c,d,e)));a=h.S(a+5,b,c,d,e);return a===h?this:new Ec(null,this.d,Ac.c(this.a,g,a))};r.da=function(a,b,c,d){var e=this.a[b>>>a&31];return null!=e?e.da(a+5,b,c,d):d};function Ic(a,b,c){b*=2;for(var d=0;;)if(d<b){if(zc(c,a[d]))return d;d+=2}else return-1}function Jc(a,b,c,d){this.l=a;this.ba=b;this.d=c;this.a=d}r=Jc.prototype;
r.T=function(a,b,c,d,e,g){if(c===this.ba){b=Ic(this.a,this.d,d);if(-1===b){if(this.a.length>2*this.d)return a=Bc.Y(this,a,2*this.d,d,2*this.d+1,e),g.val=!0,a.d+=1,a;c=this.a.length;b=Array(c+2);nb(this.a,0,b,0,c);b[c]=d;b[c+1]=e;g.val=!0;g=this.d+1;a===this.l?(this.a=b,this.d=g,a=this):a=new Jc(this.l,this.ba,g,b);return a}return this.a[b+1]===e?this:Bc.m(this,a,b+1,e)}return(new Cc(a,1<<(this.ba>>>b&31),[null,this,null,null])).T(a,b,c,d,e,g)};
r.ma=function(){return Gc.e?Gc.e(this.a):Gc.call(null,this.a)};r.ha=function(a){if(a===this.l)return this;var b=Array(2*(this.d+1));nb(this.a,0,b,0,2*this.d);return new Jc(a,this.ba,this.d,b)};r.S=function(a,b,c,d,e){return b===this.ba?(a=Ic(this.a,this.d,c),-1===a?(a=2*this.d,b=Array(a+2),nb(this.a,0,b,0,a),b[a]=c,b[a+1]=d,e.val=!0,new Jc(null,this.ba,this.d+1,b)):Ua.b(this.a[a],d)?this:new Jc(null,this.ba,this.d,Ac.c(this.a,a+1,d))):(new Cc(null,1<<(this.ba>>>a&31),[null,this])).S(a,b,c,d,e)};
r.da=function(a,b,c,d){a=Ic(this.a,this.d,c);return 0>a?d:zc(c,this.a[a])?this.a[a+1]:w?d:null};
var Fc=function(){function a(a,b,c,h,k,l,m){var p=U(c);if(p===k)return new Jc(null,p,2,[c,h,l,m]);var q=new yc;return Dc.T(a,b,p,c,h,q).T(a,b,k,l,m,q)}function b(a,b,c,h,k,l){var m=U(b);if(m===h)return new Jc(null,m,2,[b,c,k,l]);var p=new yc;return Dc.S(a,m,b,c,p).S(a,h,k,l,p)}var c=null,c=function(c,e,g,h,k,l,m){switch(arguments.length){case 6:return b.call(this,c,e,g,h,k,l);case 7:return a.call(this,c,e,g,h,k,l,m)}throw Error("Invalid arity: "+arguments.length);};c.Y=b;c.fa=a;return c}();
function Kc(a,b,c,d,e){this.i=a;this.U=b;this.g=c;this.n=d;this.h=e;this.o=0;this.f=32374860}r=Kc.prototype;r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};r.v=function(a,b){return Q(b,this)};r.toString=function(){return G(this)};r.H=function(a,b){return V.b(b,this)};r.I=function(a,b,c){return V.c(b,c,this)};r.w=function(){return this};r.M=function(){return null==this.n?dc([this.U[this.g],this.U[this.g+1]]):J(this.n)};
r.O=function(){return null==this.n?Gc.c?Gc.c(this.U,this.g+2,null):Gc.call(null,this.U,this.g+2,null):Gc.c?Gc.c(this.U,this.g,N(this.n)):Gc.call(null,this.U,this.g,N(this.n))};r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new Kc(b,this.U,this.g,this.n,this.h)};r.L=f("i");
var Gc=function(){function a(a,b,c){if(null==c)for(c=a.length;;)if(b<c){if(null!=a[b])return new Kc(null,a,b,null,null);var h=a[b+1];if(t(h)&&(h=h.ma(),t(h)))return new Kc(null,a,b+2,h,null);b+=2}else return null;else return new Kc(null,a,b,c,null)}function b(a){return c.c(a,0,null)}var c=null,c=function(c,e,g){switch(arguments.length){case 1:return b.call(this,c);case 3:return a.call(this,c,e,g)}throw Error("Invalid arity: "+arguments.length);};c.e=b;c.c=a;return c}();
function Lc(a,b,c,d,e){this.i=a;this.U=b;this.g=c;this.n=d;this.h=e;this.o=0;this.f=32374860}r=Lc.prototype;r.u=function(){var a=this.h;return null!=a?a:this.h=a=P(this)};r.v=function(a,b){return Q(b,this)};r.toString=function(){return G(this)};r.H=function(a,b){return V.b(b,this)};r.I=function(a,b,c){return V.c(b,c,this)};r.w=function(){return this};r.M=function(){return J(this.n)};r.O=function(){return Hc.m?Hc.m(null,this.U,this.g,N(this.n)):Hc.call(null,null,this.U,this.g,N(this.n))};
r.s=function(a,b){return R(this,b)};r.J=function(a,b){return new Lc(b,this.U,this.g,this.n,this.h)};r.L=f("i");
var Hc=function(){function a(a,b,c,h){if(null==h)for(h=b.length;;)if(c<h){var k=b[c];if(t(k)&&(k=k.ma(),t(k)))return new Lc(a,b,c+1,k,null);c+=1}else return null;else return new Lc(a,b,c,h,null)}function b(a){return c.m(null,a,0,null)}var c=null,c=function(c,e,g,h){switch(arguments.length){case 1:return b.call(this,c);case 4:return a.call(this,c,e,g,h)}throw Error("Invalid arity: "+arguments.length);};c.e=b;c.m=a;return c}();
function Mc(a,b,c,d,e,g){this.i=a;this.d=b;this.root=c;this.N=d;this.P=e;this.h=g;this.o=4;this.f=16123663}r=Mc.prototype;r.na=function(){return new Nc({},this.root,this.d,this.N,this.P)};r.u=function(){var a=this.h;return null!=a?a:this.h=a=vb(this)};r.D=function(a,b){return na.c(this,b,null)};r.F=function(a,b,c){return null==b?this.N?this.P:c:null==this.root?c:w?this.root.da(0,U(b),b,c):null};
r.ja=function(a,b,c){if(null==b)return this.N&&c===this.P?this:new Mc(this.i,this.N?this.d:this.d+1,this.root,!0,c,null);a=new yc;b=(null==this.root?Dc:this.root).S(0,U(b),b,c,a);return b===this.root?this:new Mc(this.i,a.val?this.d+1:this.d,b,this.N,this.P,null)};r.call=function(){var a=null;return a=function(a,c,d){switch(arguments.length){case 2:return this.D(null,c);case 3:return this.F(null,c,d)}throw Error("Invalid arity: "+arguments.length);}}();
r.apply=function(a,b){return this.call.apply(this,[this].concat(b.slice()))};r.e=function(a){return this.D(null,a)};r.b=function(a,b){return this.F(null,a,b)};r.v=function(a,b){return lb(b)?oa(this,A.b(b,0),A.b(b,1)):rb.c(ia,this,b)};r.toString=function(){return G(this)};r.w=function(){if(0<this.d){var a=null!=this.root?this.root.ma():null;return this.N?Q(dc([null,this.P]),a):a}return null};r.B=f("d");r.s=function(a,b){return mc(this,b)};
r.J=function(a,b){return new Mc(b,this.d,this.root,this.N,this.P,this.h)};r.L=f("i");var sc=new Mc(null,0,null,!1,null,0);function Nc(a,b,c,d,e){this.l=a;this.root=b;this.count=c;this.N=d;this.P=e;this.o=56;this.f=258}r=Nc.prototype;r.pa=function(a,b,c){return Oc(this,b,c)};
r.qa=function(a,b){var c;a:{if(this.l){if(b?b.f&2048||b.Wa||(b.f?0:u(qa,b)):u(qa,b)){c=Oc(this,W.e?W.e(b):W.call(null,b),X.e?X.e(b):X.call(null,b));break a}c=H(b);for(var d=this;;){var e=J(c);if(t(e))c=N(c),d=Oc(d,W.e?W.e(e):W.call(null,e),X.e?X.e(e):X.call(null,e));else{c=d;break a}}}else throw Error("conj! after persistent");c=void 0}return c};r.ra=function(){var a;if(this.l)this.l=null,a=new Mc(null,this.count,this.root,this.N,this.P,null);else throw Error("persistent! called twice");return a};
r.D=function(a,b){return null==b?this.N?this.P:null:null==this.root?null:this.root.da(0,U(b),b)};r.F=function(a,b,c){return null==b?this.N?this.P:c:null==this.root?c:this.root.da(0,U(b),b,c)};r.B=function(){if(this.l)return this.count;throw Error("count after persistent!");};
function Oc(a,b,c){if(a.l){if(null==b)a.P!==c&&(a.P=c),a.N||(a.count+=1,a.N=!0);else{var d=new yc;b=(null==a.root?Dc:a.root).T(a.l,0,U(b),b,c,d);b!==a.root&&(a.root=b);d.val&&(a.count+=1)}return a}throw Error("assoc! after persistent!");}
var eb=function(){function a(a){var d=null;0<arguments.length&&(d=O(Array.prototype.slice.call(arguments,0),0));return b.call(this,d)}function b(a){for(var b=H(a),e=Ia(sc);;)if(b){a=N(N(b));var g=J(b),b=J(N(b)),e=La(e,g,b),b=a}else return Ka(e)}a.p=0;a.k=function(a){a=H(a);return b(a)};a.j=b;return a}();function W(a){return ra(a)}function X(a){return sa(a)}
function $(a,b,c,d,e,g,h){F(a,c);H(h)&&(b.c?b.c(J(h),a,g):b.call(null,J(h),a,g));c=H(N(h));h=null;for(var k=0,l=0;;)if(l<k){var m=h.K(null,l);F(a,d);b.c?b.c(m,a,g):b.call(null,m,a,g);l+=1}else if(c=H(c))h=c,mb(h)?(c=Oa(h),l=Pa(h),h=c,k=S(c),c=l):(c=J(h),F(a,d),b.c?b.c(c,a,g):b.call(null,c,a,g),c=N(h),h=null,k=0),l=0;else break;return F(a,e)}
var Pc=function(){function a(a,d){var e=null;1<arguments.length&&(e=O(Array.prototype.slice.call(arguments,1),0));return b.call(this,a,e)}function b(a,b){for(var e=H(b),g=null,h=0,k=0;;)if(k<h){var l=g.K(null,k);F(a,l);k+=1}else if(e=H(e))g=e,mb(g)?(e=Oa(g),h=Pa(g),g=e,l=S(e),e=h,h=l):(l=J(g),F(a,l),e=N(g),g=null,h=0),k=0;else return null}a.p=1;a.k=function(a){var d=J(a);a=L(a);return b(d,a)};a.j=b;return a}(),Qc={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};
function Rc(a){return[y('"'),y(a.replace(RegExp('[\\\\"\b\f\n\r\t]',"g"),function(a){return Qc[a]})),y('"')].join("")}
var Tc=function Sc(b,c,d){if(null==b)return F(c,"nil");if(void 0===b)return F(c,"#\x3cundefined\x3e");if(w){t(function(){var c=db.b(d,vc);return t(c)?(c=b?b.f&131072||b.Xa?!0:b.f?!1:u(va,b):u(va,b))?ib(b):c:c}())&&(F(c,"^"),Sc(ib(b),c,d),F(c," "));if(null==b)return F(c,"nil");if(b.ab)return b.ob(c);if(b&&(b.f&2147483648||b.G))return b.t(null,c,d);if(ea(b)===Boolean||"number"===typeof b)return F(c,""+y(b));if(b instanceof Array)return $(c,Sc,"#\x3cArray [",", ","]\x3e",d,b);if("string"==typeof b)return t(uc.e(d))?
F(c,Rc(b)):F(c,b);if(hb(b))return Pc.j(c,O(["#\x3c",""+y(b),"\x3e"],0));if(b instanceof Date){var e=function(b,c){for(var d=""+y(b);;)if(S(d)<c)d=[y("0"),y(d)].join("");else return d};return Pc.j(c,O(['#inst "',""+y(b.getUTCFullYear()),"-",e(b.getUTCMonth()+1,2),"-",e(b.getUTCDate(),2),"T",e(b.getUTCHours(),2),":",e(b.getUTCMinutes(),2),":",e(b.getUTCSeconds(),2),".",e(b.getUTCMilliseconds(),3),"-",'00:00"'],0))}return t(b instanceof RegExp)?Pc.j(c,O(['#"',b.source,'"'],0)):(b?b.f&2147483648||b.G||
(b.f?0:u(Ga,b)):u(Ga,b))?Ha(b,c,d):w?Pc.j(c,O(["#\x3c",""+y(b),"\x3e"],0)):null}return null};Ta.prototype.G=!0;Ta.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};gc.prototype.G=!0;gc.prototype.t=function(a,b,c){return $(b,Tc,"["," ","]",c,this)};Fb.prototype.G=!0;Fb.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};pc.prototype.G=!0;pc.prototype.t=function(a,b,c){return $(b,function(a){return $(b,Tc,""," ","",c,a)},"{",", ","}",c,this)};Ab.prototype.G=!0;
Ab.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};Kc.prototype.G=!0;Kc.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};ec.prototype.G=!0;ec.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};Mc.prototype.G=!0;Mc.prototype.t=function(a,b,c){return $(b,function(a){return $(b,Tc,""," ","",c,a)},"{",", ","}",c,this)};Y.prototype.G=!0;Y.prototype.t=function(a,b,c){return $(b,Tc,"["," ","]",c,this)};wb.prototype.G=!0;
wb.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};oc.prototype.G=!0;oc.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};xb.prototype.G=!0;xb.prototype.t=function(a,b){return F(b,"()")};yb.prototype.G=!0;yb.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};Lc.prototype.G=!0;Lc.prototype.t=function(a,b,c){return $(b,Tc,"("," ",")",c,this)};Y.prototype.Na=!0;Y.prototype.Oa=function(a,b){return qb.b(this,b)};gc.prototype.Na=!0;
gc.prototype.Oa=function(a,b){return qb.b(this,b)};var wc=new zb(null,"dup","dup"),tc=new zb(null,"flush-on-newline","flush-on-newline"),w=new zb(null,"else","else"),uc=new zb(null,"readably","readably"),vc=new zb(null,"meta","meta");var Uc=console.log,Vc=[5];Uc.e?Uc.e(cb.b(Vc,0)):Uc.call(null,cb.b(Vc,0));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment