'use strict';

// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

const Z_NO_FLUSH = 0;
const Z_PARTIAL_FLUSH = 1;
const Z_SYNC_FLUSH = 2;
const Z_FULL_FLUSH = 3;
const Z_FINISH = 4;
const Z_BLOCK = 5;
const Z_TREES = 6;

const Z_OK = 0;
const Z_STREAM_END = 1;
const Z_NEED_DICT = 2;
const Z_ERRNO = -1;
const Z_STREAM_ERROR = -2;
const Z_DATA_ERROR = -3;
const Z_MEM_ERROR = -4;
const Z_BUF_ERROR = -5;

const Z_NO_COMPRESSION = 0;
const Z_BEST_SPEED = 1;
const Z_BEST_COMPRESSION = 9;
const Z_DEFAULT_COMPRESSION = -1;

const Z_FILTERED = 1;
const Z_HUFFMAN_ONLY = 2;
const Z_RLE = 3;
const Z_FIXED = 4;
const Z_DEFAULT_STRATEGY = 0;

const Z_BINARY = 0;
const Z_TEXT = 1;
const Z_UNKNOWN = 2;

const Z_DEFLATED = 8;
window.Z_NO_FLUSH = Z_NO_FLUSH;
window.Z_PARTIAL_FLUSH = Z_PARTIAL_FLUSH;
window.Z_SYNC_FLUSH = Z_SYNC_FLUSH;
window.Z_FULL_FLUSH = Z_FULL_FLUSH;
window.Z_FINISH = Z_FINISH;
window.Z_BLOCK = Z_BLOCK;
window.Z_TREES = Z_TREES;
window.Z_OK = Z_OK;
window.Z_STREAM_END = Z_STREAM_END;
window.Z_NEED_DICT = Z_NEED_DICT;
window.Z_ERRNO = Z_ERRNO;
window.Z_STREAM_ERROR = Z_STREAM_ERROR;
window.Z_DATA_ERROR = Z_DATA_ERROR;
window.Z_MEM_ERROR = Z_MEM_ERROR;
window.Z_BUF_ERROR = Z_BUF_ERROR;
window.Z_NO_COMPRESSION = Z_NO_COMPRESSION;
window.Z_BEST_SPEED = Z_BEST_SPEED;
window.Z_BEST_COMPRESSION = Z_BEST_COMPRESSION;
window.Z_DEFAULT_COMPRESSION = Z_DEFAULT_COMPRESSION;
window.Z_FILTERED = Z_FILTERED;
window.Z_HUFFMAN_ONLY = Z_HUFFMAN_ONLY;
window.Z_RLE = Z_RLE;
window.Z_FIXED = Z_FIXED;
window.Z_DEFAULT_STRATEGY = Z_DEFAULT_STRATEGY;
window.Z_BINARY = Z_BINARY;
window.Z_TEXT = Z_TEXT;
window.Z_UNKNOWN = Z_UNKNOWN;
window.Z_DEFLATED = Z_DEFLATED;
