;/*FB_PKG_DELIM*/ /** * License: https://www.facebook.com/legal/license/t3hOLs8wlXy/ */ __d("hamt_plus-1.0.2",[],(function(a,b,c,d,e,f){"use strict";b={};var g={exports:b};function h(){var a=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b={},c=5,d=Math.pow(2,c),e=d-1,f=d/2,h=d/4,i={},j=function(a){return function(){return a}},k=b.hash=function(b){var c=typeof b==="undefined"?"undefined":a(b);if(c==="number")return b;c!=="string"&&(b+="");c=0;for(var d=0,e=b.length;d>1&1431655765;a=(a&858993459)+(a>>2&858993459);a=a+(a>>4)&252645135;a+=a>>8;a+=a>>16;return a&127},m=function(a,b){return b>>>a&e},n=function(a){return 1<=b)d[a--]=d[a];d[b]=c;return d}a=0;var f=0,g=new Array(e+1);while(a>>=1;g[c]=d;return B(b,a+1,g)},E=function(b,a,c,d){a=new Array(a-1);var e=0,f=0;for(var g=0,h=d.length;g1?z(a,this.hash,h):h[0]}b=d();if(b===i)return this;++g.value;return F(a,c,this.hash,this,e,y(a,e,f,b))},K=function(a,b,d,e,g,h,i){var j=this.mask,k=this.children,l=m(d,g),s=n(l),t=o(j,s),u=j&s,v=u?k[t]:w;b=v._modify(a,b,d+c,e,g,h,i);if(v===b)return this;d=H(a,this);e=j;if(u&&x(b)){e&=~s;if(!e)return w;if(k.length<=2&&C(k[t^1]))return k[t^1];g=q(d,t,k)}else if(!u&&!x(b)){if(k.length>=f)return D(a,l,b,j,k);e|=s;g=r(d,t,b,k)}else g=p(d,t,b,k);if(d){this.mask=e;this.children=g;return this}return A(a,e,g)},L=function(b,d,e,f,g,i,j){var a=this.size,k=this.children,l=m(e,g),n=k[l];d=(n||w)._modify(b,d,e+c,f,g,i,j);if(n===d)return this;e=H(b,this);if(x(n)&&!x(d))++a,f=p(e,l,d,k);else if(!x(n)&&x(d)){--a;if(a<=h)return E(b,a,l,k);f=p(e,l,w,k)}else f=p(e,l,d,k);if(e){this.size=a;this.children=f;return this}return B(b,a,f)};w._modify=function(a,b,c,d,e,f,g){b=d();if(b===i)return w;++g.value;return y(a,e,f,b)};function M(a,b,c,d,e){this._editable=a,this._edit=b,this._config=c,this._root=d,this._size=e}M.prototype.setTree=function(a,b){if(this._editable){this._root=a;this._size=b;return this}return a===this._root?this:new M(this._editable,this._edit,this._config,a,b)};var N=b.tryGetHash=function(b,a,d,e){var f=e._root,g=0;e=e._config.keyEq;while(!0)switch(f.type){case s:return e(d,f.key)?f.value:b;case t:if(a===f.hash){var h=f.children;for(var i=0,j=h.length;i