UNPKG

hfs

Version:
2 lines (1 loc) 20.9 kB
function E(f,F){for(var a=0;a<F.length;a++){const d=F[a];if(typeof d!="string"&&!Array.isArray(d)){for(const _ in d)if(_!=="default"&&!(_ in f)){const u=Object.getOwnPropertyDescriptor(d,_);u&&Object.defineProperty(f,_,u.get?u:{enumerable:!0,get:()=>d[_]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var A={},C={exports:{}},T=C.exports,R;function S(){return R||(R=1,function(f){(function(F){a(Math.pow(36,5)),a(Math.pow(16,7)),a(Math.pow(10,9)),a(Math.pow(2,30)),a(36),a(16),a(10),a(2);function a(o,l){if(!(this instanceof a))return new a(o,l);if(this._low=0,this._high=0,this.remainder=null,typeof l=="undefined")return _.call(this,o);if(typeof o=="string")return u.call(this,o,l);d.call(this,o,l)}function d(o,l){return this._low=o|0,this._high=l|0,this}a.prototype.fromBits=d;function _(o){return this._low=o&65535,this._high=o>>>16,this}a.prototype.fromNumber=_;function u(o,l){var i=parseInt(o,l||10);return this._low=i&65535,this._high=i>>>16,this}a.prototype.fromString=u,a.prototype.toNumber=function(){return this._high*65536+this._low},a.prototype.toString=function(o){return this.toNumber().toString(o||10)},a.prototype.add=function(o){var l=this._low+o._low,i=l>>>16;return i+=this._high+o._high,this._low=l&65535,this._high=i&65535,this},a.prototype.subtract=function(o){return this.add(o.clone().negate())},a.prototype.multiply=function(o){var l=this._high,i=this._low,t=o._high,m=o._low,s,h;return h=i*m,s=h>>>16,s+=l*m,s&=65535,s+=i*t,this._low=h&65535,this._high=s&65535,this},a.prototype.div=function(o){if(o._low==0&&o._high==0)throw Error("division by zero");if(o._high==0&&o._low==1)return this.remainder=new a(0),this;if(o.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(o))return this.remainder=new a(0),this._low=1,this._high=0,this;for(var l=o.clone(),i=-1;!this.lt(l);)l.shiftLeft(1,!0),i++;for(this.remainder=this.clone(),this._low=0,this._high=0;i>=0;i--)l.shiftRight(1),this.remainder.lt(l)||(this.remainder.subtract(l),i>=16?this._high|=1<<i-16:this._low|=1<<i);return this},a.prototype.negate=function(){var o=(~this._low&65535)+1;return this._low=o&65535,this._high=~this._high+(o>>>16)&65535,this},a.prototype.equals=a.prototype.eq=function(o){return this._low==o._low&&this._high==o._high},a.prototype.greaterThan=a.prototype.gt=function(o){return this._high>o._high?!0:this._high<o._high?!1:this._low>o._low},a.prototype.lessThan=a.prototype.lt=function(o){return this._high<o._high?!0:this._high>o._high?!1:this._low<o._low},a.prototype.or=function(o){return this._low|=o._low,this._high|=o._high,this},a.prototype.and=function(o){return this._low&=o._low,this._high&=o._high,this},a.prototype.not=function(){return this._low=~this._low&65535,this._high=~this._high&65535,this},a.prototype.xor=function(o){return this._low^=o._low,this._high^=o._high,this},a.prototype.shiftRight=a.prototype.shiftr=function(o){return o>16?(this._low=this._high>>o-16,this._high=0):o==16?(this._low=this._high,this._high=0):(this._low=this._low>>o|this._high<<16-o&65535,this._high>>=o),this},a.prototype.shiftLeft=a.prototype.shiftl=function(o,l){return o>16?(this._high=this._low<<o-16,this._low=0,l||(this._high&=65535)):o==16?(this._high=this._low,this._low=0):(this._high=this._high<<o|this._low>>16-o,this._low=this._low<<o&65535,l||(this._high&=65535)),this},a.prototype.rotateLeft=a.prototype.rotl=function(o){var l=this._high<<16|this._low;return l=l<<o|l>>>32-o,this._low=l&65535,this._high=l>>>16,this},a.prototype.rotateRight=a.prototype.rotr=function(o){var l=this._high<<16|this._low;return l=l>>>o|l<<32-o,this._low=l&65535,this._high=l>>>16,this},a.prototype.clone=function(){return new a(this._low,this._high)},f.exports?f.exports=a:F.UINT32=a})(T)}(C)),C.exports}var w={exports:{}},P=w.exports,U;function L(){return U||(U=1,function(f){(function(F){var a={16:_(Math.pow(16,5)),10:_(Math.pow(10,5)),2:_(Math.pow(2,5))},d={16:_(16),10:_(10),2:_(2)};function _(i,t,m,s){if(!(this instanceof _))return new _(i,t,m,s);if(this.remainder=null,typeof i=="string")return l.call(this,i,t);if(typeof t=="undefined")return o.call(this,i);u.apply(this,arguments)}function u(i,t,m,s){return typeof m=="undefined"?(this._a00=i&65535,this._a16=i>>>16,this._a32=t&65535,this._a48=t>>>16,this):(this._a00=i|0,this._a16=t|0,this._a32=m|0,this._a48=s|0,this)}_.prototype.fromBits=u;function o(i){return this._a00=i&65535,this._a16=i>>>16,this._a32=0,this._a48=0,this}_.prototype.fromNumber=o;function l(i,t){t=t||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var m=a[t]||new _(Math.pow(t,5)),s=0,h=i.length;s<h;s+=5){var r=Math.min(5,h-s),n=parseInt(i.slice(s,s+r),t);this.multiply(r<5?new _(Math.pow(t,r)):m).add(new _(n))}return this}_.prototype.fromString=l,_.prototype.toNumber=function(){return this._a16*65536+this._a00},_.prototype.toString=function(i){i=i||10;var t=d[i]||new _(i);if(!this.gt(t))return this.toNumber().toString(i);for(var m=this.clone(),s=new Array(64),h=63;h>=0&&(m.div(t),s[h]=m.remainder.toNumber().toString(i),!!m.gt(t));h--);return s[h-1]=m.toNumber().toString(i),s.join("")},_.prototype.add=function(i){var t=this._a00+i._a00,m=t>>>16;m+=this._a16+i._a16;var s=m>>>16;s+=this._a32+i._a32;var h=s>>>16;return h+=this._a48+i._a48,this._a00=t&65535,this._a16=m&65535,this._a32=s&65535,this._a48=h&65535,this},_.prototype.subtract=function(i){return this.add(i.clone().negate())},_.prototype.multiply=function(i){var t=this._a00,m=this._a16,s=this._a32,h=this._a48,r=i._a00,n=i._a16,e=i._a32,y=i._a48,c=t*r,g=c>>>16;g+=t*n;var x=g>>>16;g&=65535,g+=m*r,x+=g>>>16,x+=t*e;var v=x>>>16;return x&=65535,x+=m*n,v+=x>>>16,x&=65535,x+=s*r,v+=x>>>16,v+=t*y,v&=65535,v+=m*e,v&=65535,v+=s*n,v&=65535,v+=h*r,this._a00=c&65535,this._a16=g&65535,this._a32=x&65535,this._a48=v&65535,this},_.prototype.div=function(i){if(i._a16==0&&i._a32==0&&i._a48==0){if(i._a00==0)throw Error("division by zero");if(i._a00==1)return this.remainder=new _(0),this}if(i.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(i))return this.remainder=new _(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var t=i.clone(),m=-1;!this.lt(t);)t.shiftLeft(1,!0),m++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;m>=0;m--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),m>=48?this._a48|=1<<m-48:m>=32?this._a32|=1<<m-32:m>=16?this._a16|=1<<m-16:this._a00|=1<<m);return this},_.prototype.negate=function(){var i=(~this._a00&65535)+1;return this._a00=i&65535,i=(~this._a16&65535)+(i>>>16),this._a16=i&65535,i=(~this._a32&65535)+(i>>>16),this._a32=i&65535,this._a48=~this._a48+(i>>>16)&65535,this},_.prototype.equals=_.prototype.eq=function(i){return this._a48==i._a48&&this._a00==i._a00&&this._a32==i._a32&&this._a16==i._a16},_.prototype.greaterThan=_.prototype.gt=function(i){return this._a48>i._a48?!0:this._a48<i._a48?!1:this._a32>i._a32?!0:this._a32<i._a32?!1:this._a16>i._a16?!0:this._a16<i._a16?!1:this._a00>i._a00},_.prototype.lessThan=_.prototype.lt=function(i){return this._a48<i._a48?!0:this._a48>i._a48?!1:this._a32<i._a32?!0:this._a32>i._a32?!1:this._a16<i._a16?!0:this._a16>i._a16?!1:this._a00<i._a00},_.prototype.or=function(i){return this._a00|=i._a00,this._a16|=i._a16,this._a32|=i._a32,this._a48|=i._a48,this},_.prototype.and=function(i){return this._a00&=i._a00,this._a16&=i._a16,this._a32&=i._a32,this._a48&=i._a48,this},_.prototype.xor=function(i){return this._a00^=i._a00,this._a16^=i._a16,this._a32^=i._a32,this._a48^=i._a48,this},_.prototype.not=function(){return this._a00=~this._a00&65535,this._a16=~this._a16&65535,this._a32=~this._a32&65535,this._a48=~this._a48&65535,this},_.prototype.shiftRight=_.prototype.shiftr=function(i){return i%=64,i>=48?(this._a00=this._a48>>i-48,this._a16=0,this._a32=0,this._a48=0):i>=32?(i-=32,this._a00=(this._a32>>i|this._a48<<16-i)&65535,this._a16=this._a48>>i&65535,this._a32=0,this._a48=0):i>=16?(i-=16,this._a00=(this._a16>>i|this._a32<<16-i)&65535,this._a16=(this._a32>>i|this._a48<<16-i)&65535,this._a32=this._a48>>i&65535,this._a48=0):(this._a00=(this._a00>>i|this._a16<<16-i)&65535,this._a16=(this._a16>>i|this._a32<<16-i)&65535,this._a32=(this._a32>>i|this._a48<<16-i)&65535,this._a48=this._a48>>i&65535),this},_.prototype.shiftLeft=_.prototype.shiftl=function(i,t){return i%=64,i>=48?(this._a48=this._a00<<i-48,this._a32=0,this._a16=0,this._a00=0):i>=32?(i-=32,this._a48=this._a16<<i|this._a00>>16-i,this._a32=this._a00<<i&65535,this._a16=0,this._a00=0):i>=16?(i-=16,this._a48=this._a32<<i|this._a16>>16-i,this._a32=(this._a16<<i|this._a00>>16-i)&65535,this._a16=this._a00<<i&65535,this._a00=0):(this._a48=this._a48<<i|this._a32>>16-i,this._a32=(this._a32<<i|this._a16>>16-i)&65535,this._a16=(this._a16<<i|this._a00>>16-i)&65535,this._a00=this._a00<<i&65535),t||(this._a48&=65535),this},_.prototype.rotateLeft=_.prototype.rotl=function(i){if(i%=64,i==0)return this;if(i>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,i==32)return this;i-=32}var m=this._a48<<16|this._a32,s=this._a16<<16|this._a00,h=m<<i|s>>>32-i,r=s<<i|m>>>32-i;return this._a00=r&65535,this._a16=r>>>16,this._a32=h&65535,this._a48=h>>>16,this},_.prototype.rotateRight=_.prototype.rotr=function(i){if(i%=64,i==0)return this;if(i>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,i==32)return this;i-=32}var m=this._a48<<16|this._a32,s=this._a16<<16|this._a00,h=m>>>i|s<<32-i,r=s>>>i|m<<32-i;return this._a00=r&65535,this._a16=r>>>16,this._a32=h&65535,this._a48=h>>>16,this},_.prototype.clone=function(){return new _(this._a00,this._a16,this._a32,this._a48)},f.exports?f.exports=_:F.UINT64=_})(P)}(w)),w.exports}var N;function q(){return N||(N=1,A.UINT32=S(),A.UINT64=L()),A}var b,I;function X(){if(I)return b;I=1;var f=q().UINT32;f.prototype.xxh_update=function(t,m){var s=a._low,h=a._high,r,n;n=t*s,r=n>>>16,r+=m*s,r&=65535,r+=t*h;var e=this._low+(n&65535),y=e>>>16;y+=this._high+(r&65535);var c=y<<16|e&65535;c=c<<13|c>>>19,e=c&65535,y=c>>>16,s=F._low,h=F._high,n=e*s,r=n>>>16,r+=y*s,r&=65535,r+=e*h,this._low=n&65535,this._high=r&65535};var F=f("2654435761"),a=f("2246822519"),d=f("3266489917"),_=f("668265263"),u=f("374761393");function o(t){for(var m=[],s=0,h=t.length;s<h;s++){var r=t.charCodeAt(s);r<128?m.push(r):r<2048?m.push(192|r>>6,128|r&63):r<55296||r>=57344?m.push(224|r>>12,128|r>>6&63,128|r&63):(s++,r=65536+((r&1023)<<10|t.charCodeAt(s)&1023),m.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63))}return new Uint8Array(m)}function l(){if(arguments.length==2)return new l(arguments[1]).update(arguments[0]).digest();if(!(this instanceof l))return new l(arguments[0]);i.call(this,arguments[0])}function i(t){return this.seed=t instanceof f?t.clone():f(t),this.v1=this.seed.clone().add(F).add(a),this.v2=this.seed.clone().add(a),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(F),this.total_len=0,this.memsize=0,this.memory=null,this}return l.prototype.init=i,l.prototype.update=function(t){var m=typeof t=="string",s;m&&(t=o(t),m=!1,s=!0),typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer&&(s=!0,t=new Uint8Array(t));var h=0,r=t.length,n=h+r;if(r==0)return this;if(this.total_len+=r,this.memsize==0&&(m?this.memory="":s?this.memory=new Uint8Array(16):this.memory=new Buffer(16)),this.memsize+r<16)return m?this.memory+=t:s?this.memory.set(t.subarray(0,r),this.memsize):t.copy(this.memory,this.memsize,0,r),this.memsize+=r,this;if(this.memsize>0){m?this.memory+=t.slice(0,16-this.memsize):s?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var e=0;m?(this.v1.xxh_update(this.memory.charCodeAt(e+1)<<8|this.memory.charCodeAt(e),this.memory.charCodeAt(e+3)<<8|this.memory.charCodeAt(e+2)),e+=4,this.v2.xxh_update(this.memory.charCodeAt(e+1)<<8|this.memory.charCodeAt(e),this.memory.charCodeAt(e+3)<<8|this.memory.charCodeAt(e+2)),e+=4,this.v3.xxh_update(this.memory.charCodeAt(e+1)<<8|this.memory.charCodeAt(e),this.memory.charCodeAt(e+3)<<8|this.memory.charCodeAt(e+2)),e+=4,this.v4.xxh_update(this.memory.charCodeAt(e+1)<<8|this.memory.charCodeAt(e),this.memory.charCodeAt(e+3)<<8|this.memory.charCodeAt(e+2))):(this.v1.xxh_update(this.memory[e+1]<<8|this.memory[e],this.memory[e+3]<<8|this.memory[e+2]),e+=4,this.v2.xxh_update(this.memory[e+1]<<8|this.memory[e],this.memory[e+3]<<8|this.memory[e+2]),e+=4,this.v3.xxh_update(this.memory[e+1]<<8|this.memory[e],this.memory[e+3]<<8|this.memory[e+2]),e+=4,this.v4.xxh_update(this.memory[e+1]<<8|this.memory[e],this.memory[e+3]<<8|this.memory[e+2])),h+=16-this.memsize,this.memsize=0,m&&(this.memory="")}if(h<=n-16){var y=n-16;do m?(this.v1.xxh_update(t.charCodeAt(h+1)<<8|t.charCodeAt(h),t.charCodeAt(h+3)<<8|t.charCodeAt(h+2)),h+=4,this.v2.xxh_update(t.charCodeAt(h+1)<<8|t.charCodeAt(h),t.charCodeAt(h+3)<<8|t.charCodeAt(h+2)),h+=4,this.v3.xxh_update(t.charCodeAt(h+1)<<8|t.charCodeAt(h),t.charCodeAt(h+3)<<8|t.charCodeAt(h+2)),h+=4,this.v4.xxh_update(t.charCodeAt(h+1)<<8|t.charCodeAt(h),t.charCodeAt(h+3)<<8|t.charCodeAt(h+2))):(this.v1.xxh_update(t[h+1]<<8|t[h],t[h+3]<<8|t[h+2]),h+=4,this.v2.xxh_update(t[h+1]<<8|t[h],t[h+3]<<8|t[h+2]),h+=4,this.v3.xxh_update(t[h+1]<<8|t[h],t[h+3]<<8|t[h+2]),h+=4,this.v4.xxh_update(t[h+1]<<8|t[h],t[h+3]<<8|t[h+2])),h+=4;while(h<=y)}return h<n&&(m?this.memory+=t.slice(h):s?this.memory.set(t.subarray(h,n),this.memsize):t.copy(this.memory,this.memsize,h,n),this.memsize=n-h),this},l.prototype.digest=function(){var t=this.memory,m=typeof t=="string",s=0,h=this.memsize,r,n,e=new f;for(this.total_len>=16?r=this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):r=this.seed.clone().add(u),r.add(e.fromNumber(this.total_len));s<=h-4;)m?e.fromBits(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)):e.fromBits(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),r.add(e.multiply(d)).rotl(17).multiply(_),s+=4;for(;s<h;)e.fromBits(m?t.charCodeAt(s++):t[s++],0),r.add(e.multiply(u)).rotl(11).multiply(F);return n=r.clone().shiftRight(15),r.xor(n).multiply(a),n=r.clone().shiftRight(13),r.xor(n).multiply(d),n=r.clone().shiftRight(16),r.xor(n),this.init(this.seed),r},b=l,b}var p,M;function j(){if(M)return p;M=1;var f=q().UINT64,F=f("11400714785074694791"),a=f("14029467366897019727"),d=f("1609587929392839161"),_=f("9650029242287828579"),u=f("2870177450012600261");function o(t){for(var m=[],s=0,h=t.length;s<h;s++){var r=t.charCodeAt(s);r<128?m.push(r):r<2048?m.push(192|r>>6,128|r&63):r<55296||r>=57344?m.push(224|r>>12,128|r>>6&63,128|r&63):(s++,r=65536+((r&1023)<<10|t.charCodeAt(s)&1023),m.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63))}return new Uint8Array(m)}function l(){if(arguments.length==2)return new l(arguments[1]).update(arguments[0]).digest();if(!(this instanceof l))return new l(arguments[0]);i.call(this,arguments[0])}function i(t){return this.seed=t instanceof f?t.clone():f(t),this.v1=this.seed.clone().add(F).add(a),this.v2=this.seed.clone().add(a),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(F),this.total_len=0,this.memsize=0,this.memory=null,this}return l.prototype.init=i,l.prototype.update=function(t){var m=typeof t=="string",s;m&&(t=o(t),m=!1,s=!0),typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer&&(s=!0,t=new Uint8Array(t));var h=0,r=t.length,n=h+r;if(r==0)return this;if(this.total_len+=r,this.memsize==0&&(m?this.memory="":s?this.memory=new Uint8Array(32):this.memory=new Buffer(32)),this.memsize+r<32)return m?this.memory+=t:s?this.memory.set(t.subarray(0,r),this.memsize):t.copy(this.memory,this.memsize,0,r),this.memsize+=r,this;if(this.memsize>0){m?this.memory+=t.slice(0,32-this.memsize):s?this.memory.set(t.subarray(0,32-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,32-this.memsize);var e=0;if(m){var y;y=f(this.memory.charCodeAt(e+1)<<8|this.memory.charCodeAt(e),this.memory.charCodeAt(e+3)<<8|this.memory.charCodeAt(e+2),this.memory.charCodeAt(e+5)<<8|this.memory.charCodeAt(e+4),this.memory.charCodeAt(e+7)<<8|this.memory.charCodeAt(e+6)),this.v1.add(y.multiply(a)).rotl(31).multiply(F),e+=8,y=f(this.memory.charCodeAt(e+1)<<8|this.memory.charCodeAt(e),this.memory.charCodeAt(e+3)<<8|this.memory.charCodeAt(e+2),this.memory.charCodeAt(e+5)<<8|this.memory.charCodeAt(e+4),this.memory.charCodeAt(e+7)<<8|this.memory.charCodeAt(e+6)),this.v2.add(y.multiply(a)).rotl(31).multiply(F),e+=8,y=f(this.memory.charCodeAt(e+1)<<8|this.memory.charCodeAt(e),this.memory.charCodeAt(e+3)<<8|this.memory.charCodeAt(e+2),this.memory.charCodeAt(e+5)<<8|this.memory.charCodeAt(e+4),this.memory.charCodeAt(e+7)<<8|this.memory.charCodeAt(e+6)),this.v3.add(y.multiply(a)).rotl(31).multiply(F),e+=8,y=f(this.memory.charCodeAt(e+1)<<8|this.memory.charCodeAt(e),this.memory.charCodeAt(e+3)<<8|this.memory.charCodeAt(e+2),this.memory.charCodeAt(e+5)<<8|this.memory.charCodeAt(e+4),this.memory.charCodeAt(e+7)<<8|this.memory.charCodeAt(e+6)),this.v4.add(y.multiply(a)).rotl(31).multiply(F)}else{var y;y=f(this.memory[e+1]<<8|this.memory[e],this.memory[e+3]<<8|this.memory[e+2],this.memory[e+5]<<8|this.memory[e+4],this.memory[e+7]<<8|this.memory[e+6]),this.v1.add(y.multiply(a)).rotl(31).multiply(F),e+=8,y=f(this.memory[e+1]<<8|this.memory[e],this.memory[e+3]<<8|this.memory[e+2],this.memory[e+5]<<8|this.memory[e+4],this.memory[e+7]<<8|this.memory[e+6]),this.v2.add(y.multiply(a)).rotl(31).multiply(F),e+=8,y=f(this.memory[e+1]<<8|this.memory[e],this.memory[e+3]<<8|this.memory[e+2],this.memory[e+5]<<8|this.memory[e+4],this.memory[e+7]<<8|this.memory[e+6]),this.v3.add(y.multiply(a)).rotl(31).multiply(F),e+=8,y=f(this.memory[e+1]<<8|this.memory[e],this.memory[e+3]<<8|this.memory[e+2],this.memory[e+5]<<8|this.memory[e+4],this.memory[e+7]<<8|this.memory[e+6]),this.v4.add(y.multiply(a)).rotl(31).multiply(F)}h+=32-this.memsize,this.memsize=0,m&&(this.memory="")}if(h<=n-32){var c=n-32;do{if(m){var y;y=f(t.charCodeAt(h+1)<<8|t.charCodeAt(h),t.charCodeAt(h+3)<<8|t.charCodeAt(h+2),t.charCodeAt(h+5)<<8|t.charCodeAt(h+4),t.charCodeAt(h+7)<<8|t.charCodeAt(h+6)),this.v1.add(y.multiply(a)).rotl(31).multiply(F),h+=8,y=f(t.charCodeAt(h+1)<<8|t.charCodeAt(h),t.charCodeAt(h+3)<<8|t.charCodeAt(h+2),t.charCodeAt(h+5)<<8|t.charCodeAt(h+4),t.charCodeAt(h+7)<<8|t.charCodeAt(h+6)),this.v2.add(y.multiply(a)).rotl(31).multiply(F),h+=8,y=f(t.charCodeAt(h+1)<<8|t.charCodeAt(h),t.charCodeAt(h+3)<<8|t.charCodeAt(h+2),t.charCodeAt(h+5)<<8|t.charCodeAt(h+4),t.charCodeAt(h+7)<<8|t.charCodeAt(h+6)),this.v3.add(y.multiply(a)).rotl(31).multiply(F),h+=8,y=f(t.charCodeAt(h+1)<<8|t.charCodeAt(h),t.charCodeAt(h+3)<<8|t.charCodeAt(h+2),t.charCodeAt(h+5)<<8|t.charCodeAt(h+4),t.charCodeAt(h+7)<<8|t.charCodeAt(h+6)),this.v4.add(y.multiply(a)).rotl(31).multiply(F)}else{var y;y=f(t[h+1]<<8|t[h],t[h+3]<<8|t[h+2],t[h+5]<<8|t[h+4],t[h+7]<<8|t[h+6]),this.v1.add(y.multiply(a)).rotl(31).multiply(F),h+=8,y=f(t[h+1]<<8|t[h],t[h+3]<<8|t[h+2],t[h+5]<<8|t[h+4],t[h+7]<<8|t[h+6]),this.v2.add(y.multiply(a)).rotl(31).multiply(F),h+=8,y=f(t[h+1]<<8|t[h],t[h+3]<<8|t[h+2],t[h+5]<<8|t[h+4],t[h+7]<<8|t[h+6]),this.v3.add(y.multiply(a)).rotl(31).multiply(F),h+=8,y=f(t[h+1]<<8|t[h],t[h+3]<<8|t[h+2],t[h+5]<<8|t[h+4],t[h+7]<<8|t[h+6]),this.v4.add(y.multiply(a)).rotl(31).multiply(F)}h+=8}while(h<=c)}return h<n&&(m?this.memory+=t.slice(h):s?this.memory.set(t.subarray(h,n),this.memsize):t.copy(this.memory,this.memsize,h,n),this.memsize=n-h),this},l.prototype.digest=function(){var t=this.memory,m=typeof t=="string",s=0,h=this.memsize,r,n,e=new f;for(this.total_len>=32?(r=this.v1.clone().rotl(1),r.add(this.v2.clone().rotl(7)),r.add(this.v3.clone().rotl(12)),r.add(this.v4.clone().rotl(18)),r.xor(this.v1.multiply(a).rotl(31).multiply(F)),r.multiply(F).add(_),r.xor(this.v2.multiply(a).rotl(31).multiply(F)),r.multiply(F).add(_),r.xor(this.v3.multiply(a).rotl(31).multiply(F)),r.multiply(F).add(_),r.xor(this.v4.multiply(a).rotl(31).multiply(F)),r.multiply(F).add(_)):r=this.seed.clone().add(u),r.add(e.fromNumber(this.total_len));s<=h-8;)m?e.fromBits(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2),t.charCodeAt(s+5)<<8|t.charCodeAt(s+4),t.charCodeAt(s+7)<<8|t.charCodeAt(s+6)):e.fromBits(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2],t[s+5]<<8|t[s+4],t[s+7]<<8|t[s+6]),e.multiply(a).rotl(31).multiply(F),r.xor(e).rotl(27).multiply(F).add(_),s+=8;for(s+4<=h&&(m?e.fromBits(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2),0,0):e.fromBits(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2],0,0),r.xor(e.multiply(F)).rotl(23).multiply(a).add(d),s+=4);s<h;)e.fromBits(m?t.charCodeAt(s++):t[s++],0,0,0),r.xor(e.multiply(u)).rotl(11).multiply(F);return n=r.clone().shiftRight(33),r.xor(n).multiply(a),n=r.clone().shiftRight(29),r.xor(n).multiply(d),n=r.clone().shiftRight(32),r.xor(n),this.init(this.seed),r},p=l,p}var z,B;function O(){return B||(B=1,z={h32:X(),h64:j()}),z}var k=O();const H=E({__proto__:null},[k]);export{H as i};