UNPKG

site

Version:

Site Engine is the world's first all-in-one engine to build a modern web site, game, or blog. No HTML or CSS knowledge required.

1 lines 2.29 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=function(r){if(r&&r.__esModule)return r;var e={};if(null!=r)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}(require("./shared.manifest"));exports.default=(e=>{if(e.length>Math.round(Math.pow(2,31)-1))throw new Error;let t=(...r)=>{let e=0;return r.forEach(r=>{e=(e+r)%4294967296}),e},l=(r,e)=>r>>>e|r<<32-e,u=(r,e)=>r>>>e,o=(r,e,t)=>r&e^~r&t,a=(r,e,t)=>r&e^r&t^e&t,n=r=>l(r,2)^l(r,13)^l(r,22),f=r=>l(r,6)^l(r,11)^l(r,25),h=r=>l(r,7)^l(r,18)^u(r,3),p=r=>l(r,17)^l(r,19)^u(r,10),s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],d=8*(e=Array.from(e)).length,y=448-d-1;for(;y<0;)y+=512;let w=d+1+y+64;e.push(128);for(let r=0;r<Math.round((y-7)/8);r++)e.push(0);e.push(0),e.push(0),e.push(0),e.push(0),e.push(d>>>24),e.push((d>>>16)%256),e.push((d>>>8)%256),e.push(d%256);let c=Math.round(w/512),A=new Array(c);for(let r=0;r<c;r++){A[r]=new Array(16);for(let t=0;t<16;t++){let l=64*r+4*t;A[r][t]=e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]}}let M=new Array(64);for(let r=0;r<c;r++){for(let e=0;e<64;e++)M[e]=e<16?A[r][e]:t(p(M[e-2]),M[e-7],h(M[e-15]),M[e-16]);let e=i[0],l=i[1],u=i[2],d=i[3],y=i[4],w=i[5],c=i[6],m=i[7];for(let r=0;r<64;r++){let h=t(m,f(y),o(y,w,c),s[r],M[r]),p=t(n(e),a(e,l,u));m=c,c=w,w=y,y=t(d,h),d=u,u=l,l=e,e=t(h,p)}i[0]=t(e,i[0]),i[1]=t(l,i[1]),i[2]=t(u,i[2]),i[3]=t(d,i[3]),i[4]=t(y,i[4]),i[5]=t(w,i[5]),i[6]=t(c,i[6]),i[7]=t(m,i[7])}return new Uint8Array(r.feArray.flatten(i.map(r=>(r=>[3,2,1,0].map(e=>(r>>>8*e)%256))(r))))});