mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-30 09:03:20 -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;if(a=r>>>16&65535,r&=65535,1==t)return r+=255&e.charCodeAt(o),c<=r&&(r-=c),c<=(a+=r)&&(a-=c),r|a<<16;if(null===e)return 1;if(t<16){for(;t--;)a+=r+=255&e.charCodeAt(o++);return c<=r&&(r-=c),r|(a%=c)<<16}for(;C<=t;){for(t-=C,d=347;a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),--d;);r%=c,a%=c}if(t){for(;16<=t;)t-=16,a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++),a+=r+=255&e.charCodeAt(o++);for(;t--;)a+=r+=255&e.charCodeAt(o++);r%=c,a%=c}return r|a<<16}(r,e,o,t):function(r,e,o,t){var a,d;if(a=r>>>16&65535,r&=65535,1==t)return r+=e[o],c<=r&&(r-=c),c<=(a+=r)&&(a-=c),r|a<<16;if(null===e)return 1;if(t<16){for(;t--;)a+=r+=e[o++];return c<=r&&(r-=c),r|(a%=c)<<16}for(;C<=t;){for(t-=C,d=347;a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],--d;);r%=c,a%=c}if(t){for(;16<=t;)t-=16,a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++],a+=r+=e[o++];for(;t--;)a+=r+=e[o++];r%=c,a%=c}return r|a<<16}(r,e,o,t)},ZLIB.adler32_combine=function(r,e,o){var t,a,d;return o<0?4294967295:(a=(d=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-d)&&(a-=c<<1),c<=a&&(a-=c),t|a<<16)}}() |