mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
1 line
2.3 KiB
JavaScript
1 line
2.3 KiB
JavaScript
"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-adler32.js"),function(){var c=65521,C=5552;ZLIB.adler32=function(r,e,o,t){return("string"==typeof e?function(r,e,o,t){var a,d=r>>>16&65535;if(r&=65535,1==t)return r+=255&e.charCodeAt(o),c<=r&&(r-=c),c<=(d+=r)&&(d-=c),r|d<<16;if(null===e)return 1;if(t<16){for(;t--;)d+=r+=255&e.charCodeAt(o++);return c<=r&&(r-=c),r|(d%=c)<<16}for(;C<=t;){for(t-=C,a=347;d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),--a;);r%=c,d%=c}if(t){for(;16<=t;)t-=16,d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++),d+=r+=255&e.charCodeAt(o++);for(;t--;)d+=r+=255&e.charCodeAt(o++);r%=c,d%=c}return r|d<<16}:function(r,e,o,t){var a,d=r>>>16&65535;if(r&=65535,1==t)return r+=e[o],c<=r&&(r-=c),c<=(d+=r)&&(d-=c),r|d<<16;if(null===e)return 1;if(t<16){for(;t--;)d+=r+=e[o++];return c<=r&&(r-=c),r|(d%=c)<<16}for(;C<=t;){for(t-=C,a=347;d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],--a;);r%=c,d%=c}if(t){for(;16<=t;)t-=16,d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++],d+=r+=e[o++];for(;t--;)d+=r+=e[o++];r%=c,d%=c}return r|d<<16})(r,e,o,t)},ZLIB.adler32_combine=function(r,e,o){var t,a;return o<0?4294967295:(a=(o%=c)*(t=65535&r),a%=c,c<=(t+=(65535&e)+c-1)&&(t-=c),c<=t&&(t-=c),c<<1<=(a+=(r>>16&65535)+(e>>16&65535)+c-o)&&(a-=c<<1),c<=a&&(a-=c),t|a<<16)}}() |